@progress/kendo-react-common 14.5.0-develop.13 → 14.5.0-develop.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,8 +5,8 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { getClassByName as z } from "./interfaces/common.mjs";
9
- import { buttonPrefix as e, elements as u, base as r, states as p, roundedMap as g, themeColorMap as d, fillModeMap as x, sizeMap as c, containers as l, directionMap as C, ddbPrefix as a } from "./json-classes.mjs";
8
+ import { getClassByName as C } from "./interfaces/common.mjs";
9
+ import { buttonPrefix as e, elements as u, base as r, states as p, roundedMap as g, themeColorMap as d, fillModeMap as x, sizeMap as c, containers as l, directionMap as M, ddbPrefix as a } from "./json-classes.mjs";
10
10
  const w = {
11
11
  wrapper: {
12
12
  main: e,
@@ -50,57 +50,56 @@ const w = {
50
50
  icon: `${e}-${u.icon}`
51
51
  }, R = {
52
52
  wrapper: (o) => {
53
- const { isRtl: i, selected: n, disabled: s, size: t, fillMode: b, rounded: m, themeColor: h, iconButton: B, c: y = w } = o, $ = y.wrapper, k = h && $.themeColor ? $.themeColor[h] : void 0;
53
+ const { isRtl: t, selected: $, disabled: s, size: i, fillMode: b, rounded: m, themeColor: h, iconButton: B, c: y = w } = o, n = y.wrapper, k = h && n.themeColor ? n.themeColor[h] : void 0;
54
54
  return {
55
- [$.main]: !0,
56
- [$.size[t]]: t && $.size[t],
57
- [`${e}-${t}`]: t && !$.size[t],
58
- [$.fillMode[b]]: b && $.fillMode[b],
55
+ [n.main]: !0,
56
+ [i ? n.size[i] || `${e}-${i}` : ""]: !!i,
57
+ [n.fillMode[b]]: b && n.fillMode[b],
59
58
  [k]: k,
60
- [$.rounded[m]]: m && $.rounded[m],
61
- [`${r.prefix}-${r.rounded}-${m}`]: m && !$.rounded[m],
62
- [$.iconButton]: B,
63
- [$.disabled]: s,
64
- [$.selected]: n,
65
- [$.isRtl]: i
59
+ [n.rounded[m]]: m && n.rounded[m],
60
+ [`${r.prefix}-${r.rounded}-${m}`]: m && !n.rounded[m],
61
+ [n.iconButton]: B,
62
+ [n.disabled]: s,
63
+ [n.selected]: $,
64
+ [n.isRtl]: t
66
65
  };
67
66
  },
68
67
  text: (o) => {
69
- const { c: i = w } = o;
68
+ const { c: t = w } = o;
70
69
  return {
71
- [i.text]: !0
70
+ [t.text]: !0
72
71
  };
73
72
  },
74
73
  icon: (o) => {
75
- const { c: i = w } = o;
74
+ const { c: t = w } = o;
76
75
  return {
77
- [i.icon]: !0
76
+ [t.icon]: !0
78
77
  };
79
78
  }
80
- }, M = {
79
+ }, z = {
81
80
  wrapper: {
82
81
  main: `${e}-${l.group}`,
83
82
  stretched: `${e}-${l.group}-${p.stretched}`,
84
83
  disabled: `${r.prefix}-${p.disabled}`
85
84
  },
86
85
  position: {
87
- start: `${r.prefix}-${l.group}-${C.start}`,
88
- end: `${r.prefix}-${l.group}-${C.end}`
86
+ start: `${r.prefix}-${l.group}-${M.start}`,
87
+ end: `${r.prefix}-${l.group}-${M.end}`
89
88
  }
90
89
  }, G = {
91
90
  wrapper: (o) => {
92
- const { stretched: i, disabled: n, c: s = M } = o, t = s.wrapper;
91
+ const { stretched: t, disabled: $, c: s = z } = o, i = s.wrapper;
93
92
  return {
94
- [t.main]: !0,
95
- [t.stretched]: i,
96
- [t.disabled]: n
93
+ [i.main]: !0,
94
+ [i.stretched]: t,
95
+ [i.disabled]: $
97
96
  };
98
97
  },
99
98
  position: (o) => {
100
- const { start: i, end: n, c: s = M } = o, t = s.position;
99
+ const { start: t, end: $, c: s = z } = o, i = s.position;
101
100
  return {
102
- [t.start]: i,
103
- [t.end]: n
101
+ [i.start]: t,
102
+ [i.end]: $
104
103
  };
105
104
  }
106
105
  }, f = {
@@ -131,39 +130,39 @@ const w = {
131
130
  popup: `${a}-${l.popup}`
132
131
  }, P = {
133
132
  wrapper: (o) => {
134
- const { focused: i, disabled: n, c: s = f } = o, t = s.wrapper;
133
+ const { focused: t, disabled: $, c: s = f } = o, i = s.wrapper;
135
134
  return {
136
- [t.main]: !0,
137
- [t.focus]: i,
138
- [t.disabled]: n
135
+ [i.main]: !0,
136
+ [i.focus]: t,
137
+ [i.disabled]: $
139
138
  };
140
139
  },
141
140
  ul: (o) => {
142
- const { size: i, c: n = f } = o, s = n.ul;
141
+ const { size: t, c: $ = f } = o, s = $.ul;
143
142
  return {
144
143
  [s.group]: !0,
145
- [s.size[i]]: s.size[i],
146
- [`${a}-${l.group}-${i}`]: i && !s.size[i]
144
+ [s.size[t]]: s.size[t],
145
+ [`${a}-${l.group}-${t}`]: t && !s.size[t]
147
146
  };
148
147
  },
149
148
  li: (o) => {
150
- const { focused: i, c: n = f } = o, s = n.li;
149
+ const { focused: t, c: $ = f } = o, s = $.li;
151
150
  return {
152
151
  [s.item]: !0,
153
- [s.focus]: i
152
+ [s.focus]: t
154
153
  };
155
154
  },
156
- item: z(f, "item"),
155
+ item: C(f, "item"),
157
156
  link: (o) => {
158
- const { selected: i, disabled: n, c: s = f } = o, t = s.link;
157
+ const { selected: t, disabled: $, c: s = f } = o, i = s.link;
159
158
  return {
160
- [t.main]: !0,
161
- [t.link]: !0,
162
- [t.selected]: i,
163
- [t.disabled]: n
159
+ [i.main]: !0,
160
+ [i.link]: !0,
161
+ [i.selected]: t,
162
+ [i.disabled]: $
164
163
  };
165
164
  },
166
- popup: z(f, "popup")
165
+ popup: C(f, "popup")
167
166
  };
168
167
  export {
169
168
  R as uButton,