@progress/kendo-vue-common
Version:
Kendo UI for Vue Common Utilities package
68 lines (67 loc) • 2.27 kB
JavaScript
/**
* @license
*-------------------------------------------------------------------------------------------
* Copyright © 2026 Progress Software Corporation. All rights reserved.
* Licensed under commercial license. See LICENSE.md in the package root for more information
*-------------------------------------------------------------------------------------------
*/
import { base as e, icon as r, sizeMap as p, themeColorMap as i } from "./json-classes.mjs";
const n = {
wrapper: {
main: `${e.prefix}-${r.prefix}`,
svgPrefix: `${e.prefix}-${r.svg}-${r.prefix}`,
namePrefix: `${e.prefix}-${r.svg}-${r.i}-`,
flipH: `${e.prefix}-${r.flipH}`,
flipV: `${e.prefix}-${r.flipV}`,
themeColor: {
inherit: `${e.prefix}-${r.color}-${i.inherit}`,
primary: `${e.prefix}-${r.color}-${i.primary}`,
secondary: `${e.prefix}-${r.color}-${i.secondary}`,
tertiary: `${e.prefix}-${r.color}-${i.tertiary}`,
info: `${e.prefix}-${r.color}-${i.info}`,
success: `${e.prefix}-${r.color}-${i.success}`,
warning: `${e.prefix}-${r.color}-${i.warning}`,
error: `${e.prefix}-${r.color}-${i.error}`,
inverse: `${e.prefix}-${r.color}-${i.inverse}`
},
size: {
default: "",
xsmall: `${e.prefix}-${r.prefix}-${p.xsmall}`,
small: `${e.prefix}-${r.prefix}-${p.small}`,
medium: `${e.prefix}-${r.prefix}-${p.medium}`,
large: `${e.prefix}-${r.prefix}-${p.large}`,
xlarge: `${e.prefix}-${r.prefix}-${p.xlarge}`,
xxlarge: `${e.prefix}-${r.prefix}-${p.xxlarge}`,
xxxlarge: `${e.prefix}-${r.prefix}-${p.xxxlarge}`
}
},
svg: {
main: "",
flipH: "",
flipV: ""
}
}, m = {
wrapper: (l) => {
const { iconNameProp: x, themeColor: o, flipH: s, flipV: f, size: a, c = n } = l, $ = c.wrapper || {};
return {
[$.main || ""]: !0,
[$.svgPrefix || ""]: !0,
[`${$.namePrefix || ""}${x}`]: x,
[$.themeColor[o] || ""]: o,
[$.flipH || ""]: s,
[$.flipV || ""]: f,
[$.size[a] || ""]: $.size[a]
};
},
svg: (l) => {
const { flipH: x, flipV: o, c: s = n } = l, f = s.svg;
return {
[f.main || ""]: !0,
[f.flipH || ""]: x,
[f.flipV || ""]: o
};
}
};
export {
m as uSvgIcon
};