@progress/kendo-react-common 8.3.0-develop.1 → 8.3.0-develop.11
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.
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/hocs/use-unstyled-hoc.js +8 -0
- package/hocs/use-unstyled-hoc.mjs +17 -0
- package/icons/SvgIcon.js +1 -1
- package/icons/SvgIcon.mjs +52 -56
- package/index.d.mts +635 -0
- package/index.d.ts +635 -0
- package/index.js +1 -1
- package/index.mjs +194 -118
- package/package.json +1 -1
- package/unstyled/animations.js +8 -0
- package/unstyled/animations.mjs +185 -0
- package/unstyled/buttons.js +8 -0
- package/unstyled/buttons.mjs +253 -0
- package/unstyled/dateinputs.js +8 -0
- package/unstyled/dateinputs.mjs +556 -0
- package/unstyled/dropdowns.js +8 -0
- package/unstyled/dropdowns.mjs +231 -0
- package/unstyled/form.js +8 -0
- package/unstyled/form.mjs +50 -0
- package/unstyled/grid.js +8 -0
- package/unstyled/grid.mjs +319 -0
- package/unstyled/icons.js +8 -0
- package/unstyled/icons.mjs +53 -0
- package/unstyled/inputs.js +8 -0
- package/unstyled/inputs.mjs +262 -0
- package/unstyled/interfaces/common.js +8 -0
- package/unstyled/interfaces/common.mjs +17 -0
- package/unstyled/json-classes.js +8 -0
- package/unstyled/json-classes.mjs +315 -0
- package/unstyled/labels.js +8 -0
- package/unstyled/labels.mjs +99 -0
- package/unstyled/main.js +8 -0
- package/unstyled/main.mjs +14 -0
- package/unstyled/popup.js +8 -0
- package/unstyled/popup.mjs +91 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./json-classes.js"),M={wrapper:{main:e.buttonPrefix,size:{small:`${e.buttonPrefix}-${e.sizeMap.small}`,medium:`${e.buttonPrefix}-${e.sizeMap.medium}`,large:`${e.buttonPrefix}-${e.sizeMap.large}`},fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}`},themeColor:{base:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.base}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.base}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.base}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.base}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.base}`}},primary:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.primary}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.primary}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.primary}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.primary}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.primary}`}},secondary:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.secondary}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.secondary}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.secondary}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.secondary}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.secondary}`}},tertiary:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.tertiary}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.tertiary}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.tertiary}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.tertiary}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.tertiary}`}},info:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.info}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.info}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.info}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.info}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.info}`}},success:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.success}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.success}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.success}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.success}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.success}`}},warning:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.warning}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.warning}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.warning}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.warning}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.warning}`}},error:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.error}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.error}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.error}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.error}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.error}`}},dark:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.dark}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.dark}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.dark}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.dark}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.dark}`}},light:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.light}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.light}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.light}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.light}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.light}`}},inverse:{fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}-${e.themeColorMap.inverse}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}-${e.themeColorMap.inverse}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}-${e.themeColorMap.inverse}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}-${e.themeColorMap.inverse}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}-${e.themeColorMap.inverse}`}}},rounded:{small:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.small}`,medium:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.medium}`,large:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.large}`},iconButton:`${e.base.prefix}-${e.elements.icon}-${e.elements.button}`,disabled:`${e.base.prefix}-${e.states.disabled}`,selected:`${e.base.prefix}-${e.states.selected}`,isRtl:`${e.base.prefix}-${e.base.rtl}`},text:`${e.buttonPrefix}-${e.elements.text}`,icon:`${e.buttonPrefix}-${e.elements.icon}`},c={wrapper:l=>{const{isRtl:o,selected:a,disabled:t,size:i,fillMode:d,rounded:f,themeColor:p,iconButton:u,c:b=M}=l,r=b.wrapper,n=r.themeColor[p],s=n.fillMode[d];return{[r.main]:!0,[r.size[i]]:r.size[i],[`${e.buttonPrefix}-${i}`]:i&&!r.size[i],[r.fillMode[d]]:r.fillMode[d],[s]:s,[r.rounded[f]]:r.rounded[f],[`${e.base.prefix}-${e.base.rounded}-${f}`]:f&&!r.rounded[f],[r.iconButton]:u,[n.disabled]:t&&n&&n.disabled,[n.selected]:a&&n&&n.selected,[r.disabled]:t,[r.selected]:a,[r.isRtl]:o}},text:l=>{const{c:o=M}=l;return{[o.text]:!0}},icon:l=>{const{c:o=M}=l;return{[o.icon]:!0}}},$={wrapper:{main:`${e.ddbPrefix}-${e.elements.button}`,focus:`${e.base.prefix}-${e.states.focus}`,disabled:`${e.base.prefix}-${e.states.disabled}`},ul:{group:`${e.ddbPrefix}-${e.containers.group}`,size:{small:`${e.ddbPrefix}-${e.containers.group}-${e.sizeMap.small}`,medium:`${e.ddbPrefix}-${e.containers.group}-${e.sizeMap.medium}`,large:`${e.ddbPrefix}-${e.containers.group}-${e.sizeMap.large}`}},li:{item:`${e.base.prefix}-${e.containers.item}`,focus:`${e.base.prefix}-${e.states.focus}`},item:`${e.ddbPrefix}-${e.containers.item}`,link:{main:`${e.base.prefix}-${e.elements.link}`,link:`${e.ddbPrefix}-${e.elements.link}`,selected:`${e.base.prefix}-${e.states.selected}`,disabled:`${e.base.prefix}-${e.states.disabled}`},popup:`${e.ddbPrefix}-${e.containers.popup}`},m={wrapper:l=>{const{focused:o,disabled:a,c:t=$}=l,i=t.wrapper;return{[i.main]:!0,[i.focus]:o,[i.disabled]:a}},ul:l=>{const{size:o,c:a=$}=l,t=a.ul;return{[t.group]:!0,[t.size[o]]:t.size[o],[`${e.ddbPrefix}-${e.containers.group}-${o}`]:o&&!t.size[o]}},li:l=>{const{focused:o,c:a=$}=l,t=a.li;return{[t.item]:!0,[t.focus]:o}},item:l=>{const{c:o=$}=l;return o.item},link:l=>{const{selected:o,disabled:a,c:t=$}=l,i=t.link;return{[i.main]:!0,[i.link]:!0,[i.selected]:o,[i.disabled]:a}},popup:l=>{const{c:o=$}=l;return{[o.popup]:!0}}};exports.uButton=c;exports.uDropDownButton=m;
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { buttonPrefix as e, sizeMap as k, fillModeMap as $, themeColorMap as l, base as r, roundedMap as x, elements as p, states as f, ddbPrefix as d, containers as c } from "./json-classes.mjs";
|
|
10
|
+
const M = {
|
|
11
|
+
wrapper: {
|
|
12
|
+
main: e,
|
|
13
|
+
size: {
|
|
14
|
+
small: `${e}-${k.small}`,
|
|
15
|
+
medium: `${e}-${k.medium}`,
|
|
16
|
+
large: `${e}-${k.large}`
|
|
17
|
+
},
|
|
18
|
+
fillMode: {
|
|
19
|
+
solid: `${e}-${$.solid}`,
|
|
20
|
+
outline: `${e}-${$.outline}`,
|
|
21
|
+
flat: `${e}-${$.flat}`,
|
|
22
|
+
link: `${e}-${$.link}`,
|
|
23
|
+
clear: `${e}-${$.clear}`
|
|
24
|
+
},
|
|
25
|
+
themeColor: {
|
|
26
|
+
// the bad part
|
|
27
|
+
base: {
|
|
28
|
+
fillMode: {
|
|
29
|
+
solid: `${e}-${$.solid}-${l.base}`,
|
|
30
|
+
outline: `${e}-${$.outline}-${l.base}`,
|
|
31
|
+
flat: `${e}-${$.flat}-${l.base}`,
|
|
32
|
+
link: `${e}-${$.link}-${l.base}`,
|
|
33
|
+
clear: `${e}-${$.clear}-${l.base}`
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
primary: {
|
|
37
|
+
fillMode: {
|
|
38
|
+
solid: `${e}-${$.solid}-${l.primary}`,
|
|
39
|
+
outline: `${e}-${$.outline}-${l.primary}`,
|
|
40
|
+
flat: `${e}-${$.flat}-${l.primary}`,
|
|
41
|
+
link: `${e}-${$.link}-${l.primary}`,
|
|
42
|
+
clear: `${e}-${$.clear}-${l.primary}`
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
secondary: {
|
|
46
|
+
fillMode: {
|
|
47
|
+
solid: `${e}-${$.solid}-${l.secondary}`,
|
|
48
|
+
outline: `${e}-${$.outline}-${l.secondary}`,
|
|
49
|
+
flat: `${e}-${$.flat}-${l.secondary}`,
|
|
50
|
+
link: `${e}-${$.link}-${l.secondary}`,
|
|
51
|
+
clear: `${e}-${$.clear}-${l.secondary}`
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
tertiary: {
|
|
55
|
+
fillMode: {
|
|
56
|
+
solid: `${e}-${$.solid}-${l.tertiary}`,
|
|
57
|
+
outline: `${e}-${$.outline}-${l.tertiary}`,
|
|
58
|
+
flat: `${e}-${$.flat}-${l.tertiary}`,
|
|
59
|
+
link: `${e}-${$.link}-${l.tertiary}`,
|
|
60
|
+
clear: `${e}-${$.clear}-${l.tertiary}`
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
info: {
|
|
64
|
+
fillMode: {
|
|
65
|
+
solid: `${e}-${$.solid}-${l.info}`,
|
|
66
|
+
outline: `${e}-${$.outline}-${l.info}`,
|
|
67
|
+
flat: `${e}-${$.flat}-${l.info}`,
|
|
68
|
+
link: `${e}-${$.link}-${l.info}`,
|
|
69
|
+
clear: `${e}-${$.clear}-${l.info}`
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
success: {
|
|
73
|
+
fillMode: {
|
|
74
|
+
solid: `${e}-${$.solid}-${l.success}`,
|
|
75
|
+
outline: `${e}-${$.outline}-${l.success}`,
|
|
76
|
+
flat: `${e}-${$.flat}-${l.success}`,
|
|
77
|
+
link: `${e}-${$.link}-${l.success}`,
|
|
78
|
+
clear: `${e}-${$.clear}-${l.success}`
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
warning: {
|
|
82
|
+
fillMode: {
|
|
83
|
+
solid: `${e}-${$.solid}-${l.warning}`,
|
|
84
|
+
outline: `${e}-${$.outline}-${l.warning}`,
|
|
85
|
+
flat: `${e}-${$.flat}-${l.warning}`,
|
|
86
|
+
link: `${e}-${$.link}-${l.warning}`,
|
|
87
|
+
clear: `${e}-${$.clear}-${l.warning}`
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
error: {
|
|
91
|
+
fillMode: {
|
|
92
|
+
solid: `${e}-${$.solid}-${l.error}`,
|
|
93
|
+
outline: `${e}-${$.outline}-${l.error}`,
|
|
94
|
+
flat: `${e}-${$.flat}-${l.error}`,
|
|
95
|
+
link: `${e}-${$.link}-${l.error}`,
|
|
96
|
+
clear: `${e}-${$.clear}-${l.error}`
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
dark: {
|
|
100
|
+
fillMode: {
|
|
101
|
+
solid: `${e}-${$.solid}-${l.dark}`,
|
|
102
|
+
outline: `${e}-${$.outline}-${l.dark}`,
|
|
103
|
+
flat: `${e}-${$.flat}-${l.dark}`,
|
|
104
|
+
link: `${e}-${$.link}-${l.dark}`,
|
|
105
|
+
clear: `${e}-${$.clear}-${l.dark}`
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
light: {
|
|
109
|
+
fillMode: {
|
|
110
|
+
solid: `${e}-${$.solid}-${l.light}`,
|
|
111
|
+
outline: `${e}-${$.outline}-${l.light}`,
|
|
112
|
+
flat: `${e}-${$.flat}-${l.light}`,
|
|
113
|
+
link: `${e}-${$.link}-${l.light}`,
|
|
114
|
+
clear: `${e}-${$.clear}-${l.light}`
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
inverse: {
|
|
118
|
+
fillMode: {
|
|
119
|
+
solid: `${e}-${$.solid}-${l.inverse}`,
|
|
120
|
+
outline: `${e}-${$.outline}-${l.inverse}`,
|
|
121
|
+
flat: `${e}-${$.flat}-${l.inverse}`,
|
|
122
|
+
link: `${e}-${$.link}-${l.inverse}`,
|
|
123
|
+
clear: `${e}-${$.clear}-${l.inverse}`
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
rounded: {
|
|
128
|
+
small: `${r.prefix}-${r.rounded}-${x.small}`,
|
|
129
|
+
medium: `${r.prefix}-${r.rounded}-${x.medium}`,
|
|
130
|
+
large: `${r.prefix}-${r.rounded}-${x.large}`
|
|
131
|
+
},
|
|
132
|
+
iconButton: `${r.prefix}-${p.icon}-${p.button}`,
|
|
133
|
+
disabled: `${r.prefix}-${f.disabled}`,
|
|
134
|
+
selected: `${r.prefix}-${f.selected}`,
|
|
135
|
+
isRtl: `${r.prefix}-${r.rtl}`
|
|
136
|
+
},
|
|
137
|
+
text: `${e}-${p.text}`,
|
|
138
|
+
icon: `${e}-${p.icon}`
|
|
139
|
+
}, v = {
|
|
140
|
+
wrapper: (o) => {
|
|
141
|
+
const {
|
|
142
|
+
isRtl: i,
|
|
143
|
+
selected: a,
|
|
144
|
+
disabled: t,
|
|
145
|
+
size: n,
|
|
146
|
+
fillMode: g,
|
|
147
|
+
rounded: b,
|
|
148
|
+
themeColor: w,
|
|
149
|
+
iconButton: h,
|
|
150
|
+
c: z = M
|
|
151
|
+
} = o, s = z.wrapper, u = s.themeColor[w], y = u.fillMode[g];
|
|
152
|
+
return {
|
|
153
|
+
[s.main]: !0,
|
|
154
|
+
[s.size[n]]: s.size[n],
|
|
155
|
+
[`${e}-${n}`]: n && !s.size[n],
|
|
156
|
+
[s.fillMode[g]]: s.fillMode[g],
|
|
157
|
+
[y]: y,
|
|
158
|
+
[s.rounded[b]]: s.rounded[b],
|
|
159
|
+
[`${r.prefix}-${r.rounded}-${b}`]: b && !s.rounded[b],
|
|
160
|
+
[s.iconButton]: h,
|
|
161
|
+
[u.disabled]: t && u && u.disabled,
|
|
162
|
+
[u.selected]: a && u && u.selected,
|
|
163
|
+
[s.disabled]: t,
|
|
164
|
+
[s.selected]: a,
|
|
165
|
+
[s.isRtl]: i
|
|
166
|
+
};
|
|
167
|
+
},
|
|
168
|
+
text: (o) => {
|
|
169
|
+
const { c: i = M } = o;
|
|
170
|
+
return {
|
|
171
|
+
[i.text]: !0
|
|
172
|
+
};
|
|
173
|
+
},
|
|
174
|
+
icon: (o) => {
|
|
175
|
+
const { c: i = M } = o;
|
|
176
|
+
return {
|
|
177
|
+
[i.icon]: !0
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
}, m = {
|
|
181
|
+
wrapper: {
|
|
182
|
+
main: `${d}-${p.button}`,
|
|
183
|
+
focus: `${r.prefix}-${f.focus}`,
|
|
184
|
+
disabled: `${r.prefix}-${f.disabled}`
|
|
185
|
+
},
|
|
186
|
+
ul: {
|
|
187
|
+
group: `${d}-${c.group}`,
|
|
188
|
+
size: {
|
|
189
|
+
small: `${d}-${c.group}-${k.small}`,
|
|
190
|
+
medium: `${d}-${c.group}-${k.medium}`,
|
|
191
|
+
large: `${d}-${c.group}-${k.large}`
|
|
192
|
+
}
|
|
193
|
+
},
|
|
194
|
+
li: {
|
|
195
|
+
item: `${r.prefix}-${c.item}`,
|
|
196
|
+
focus: `${r.prefix}-${f.focus}`
|
|
197
|
+
},
|
|
198
|
+
item: `${d}-${c.item}`,
|
|
199
|
+
link: {
|
|
200
|
+
main: `${r.prefix}-${p.link}`,
|
|
201
|
+
link: `${d}-${p.link}`,
|
|
202
|
+
selected: `${r.prefix}-${f.selected}`,
|
|
203
|
+
disabled: `${r.prefix}-${f.disabled}`
|
|
204
|
+
},
|
|
205
|
+
popup: `${d}-${c.popup}`
|
|
206
|
+
}, B = {
|
|
207
|
+
wrapper: (o) => {
|
|
208
|
+
const { focused: i, disabled: a, c: t = m } = o, n = t.wrapper;
|
|
209
|
+
return {
|
|
210
|
+
[n.main]: !0,
|
|
211
|
+
[n.focus]: i,
|
|
212
|
+
[n.disabled]: a
|
|
213
|
+
};
|
|
214
|
+
},
|
|
215
|
+
ul: (o) => {
|
|
216
|
+
const { size: i, c: a = m } = o, t = a.ul;
|
|
217
|
+
return {
|
|
218
|
+
[t.group]: !0,
|
|
219
|
+
[t.size[i]]: t.size[i],
|
|
220
|
+
[`${d}-${c.group}-${i}`]: i && !t.size[i]
|
|
221
|
+
};
|
|
222
|
+
},
|
|
223
|
+
li: (o) => {
|
|
224
|
+
const { focused: i, c: a = m } = o, t = a.li;
|
|
225
|
+
return {
|
|
226
|
+
[t.item]: !0,
|
|
227
|
+
[t.focus]: i
|
|
228
|
+
};
|
|
229
|
+
},
|
|
230
|
+
item: (o) => {
|
|
231
|
+
const { c: i = m } = o;
|
|
232
|
+
return i.item;
|
|
233
|
+
},
|
|
234
|
+
link: (o) => {
|
|
235
|
+
const { selected: i, disabled: a, c: t = m } = o, n = t.link;
|
|
236
|
+
return {
|
|
237
|
+
[n.main]: !0,
|
|
238
|
+
[n.link]: !0,
|
|
239
|
+
[n.selected]: i,
|
|
240
|
+
[n.disabled]: a
|
|
241
|
+
};
|
|
242
|
+
},
|
|
243
|
+
popup: (o) => {
|
|
244
|
+
const { c: i = m } = o;
|
|
245
|
+
return {
|
|
246
|
+
[i.popup]: !0
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
export {
|
|
251
|
+
v as uButton,
|
|
252
|
+
B as uDropDownButton
|
|
253
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./interfaces/common.js"),e=require("./json-classes.js"),$={footer:{main:`${e.base.prefix}-${e.dateInputs.time}-${e.elements.footer}`,actions:`${e.base.prefix}-${e.containers.actions}`,stretched:`${e.base.prefix}-${e.containers.actions}-${e.states.stretched}`,horizontal:`${e.base.prefix}-${e.containers.actions}-${e.orientationMap.horizontal}`},cancel:`${e.base.prefix}-${e.dateInputs.time}-${e.actions.cancel}`,accept:`${e.base.prefix}-${e.dateInputs.time}-${e.actions.accept}`,part:{main:`${e.base.prefix}-${e.dateInputs.time}-${e.containers.part}`,disabled:`${e.base.prefix}-${e.states.disabled}`},header:`${e.base.prefix}-${e.dateInputs.time}-${e.elements.header}`,now:`${e.base.prefix}-${e.dateInputs.time}-${e.dateInputs.now}`,listContainer:`${e.base.prefix}-${e.dateInputs.time}-${e.containers.list}-${e.containers.container}`,highlight:`${e.base.prefix}-${e.dateInputs.time}-${e.elements.header}`,listWrapper:{main:`${e.base.prefix}-${e.dateInputs.time}-${e.containers.list}-${e.containers.wrapper}`,focused:`${e.base.prefix}-${e.states.focus}`},list:`${e.base.prefix}-${e.dateInputs.time}-${e.containers.list}`,container:{main:`${e.base.prefix}-${e.dateInputs.time}-${e.containers.container}`,scrollable:`${e.base.prefix}-${e.states.scrollable}`,content:`${e.base.prefix}-${e.containers.content}`},separator:`${e.base.prefix}-${e.dateInputs.time}-${e.containers.separator}`,ul:`${e.base.prefix}-${e.base.reset}`,li:`${e.base.prefix}-${e.containers.item}`,title:`${e.base.prefix}-${e.elements.title}`,scrollablePlaceholder:`${e.base.prefix}-${e.states.scrollable}-${e.containers.placeholder}`},I={footer:i=>{const{c:r=$}=i,a=r.footer;return{[a.main]:!0,[a.actions]:!0,[a.stretched]:!0,[a.horizontal]:!0}},cancel:l.getClassByName($,"cancel"),accept:l.getClassByName($,"accept"),part:i=>{const{c:r=$,mobileMode:a,disabled:t}=i,n=r.part;return{[n.main]:a,[n.disabled]:t}},header:l.getClassByName($,"header"),now:l.getClassByName($,"now"),listContainer:l.getClassByName($,"listContainer"),highlight:l.getClassByName($,"highlight"),listWrapper:i=>{const{c:r=$,focused:a}=i,t=r.listWrapper;return{[t.main]:!0,[t.focused]:a}},list:l.getClassByName($,"list"),container:i=>{const{c:r=$,content:a,scrollable:t}=i,n=r.container;return{[n.main]:!0,[n.content]:a,[n.scrollable]:t}},separator:l.getClassByName($,"separator"),ul:l.getClassByName($,"ul"),li:l.getClassByName($,"li"),title:l.getClassByName($,"title"),scrollablePlaceholder:l.getClassByName($,"scrollablePlaceholder")},f={wrapper:{main:`${e.base.prefix}-${e.components.timepicker}`,input:`${e.inputPrefix}`,size:{small:`${e.inputPrefix}-${e.sizeMap.small}`,medium:`${e.inputPrefix}-${e.sizeMap.medium}`,large:`${e.inputPrefix}-${e.sizeMap.large}`},fillMode:{solid:`${e.inputPrefix}-${e.fillModeMap.solid}`,outline:`${e.inputPrefix}-${e.fillModeMap.outline}`,flat:`${e.inputPrefix}-${e.fillModeMap.flat}`},rounded:{small:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.small}`,medium:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.medium}`,large:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.large}`},disabled:`${e.base.prefix}-${e.states.disabled}`,required:`${e.base.prefix}-${e.states.required}`,invalid:`${e.base.prefix}-${e.states.invalid}`},inputButton:`${e.inputPrefix}-${e.elements.button}`,popup:{main:`${e.base.prefix}-${e.components.timepicker}-${e.containers.popup}`,container:`${e.base.prefix}-${e.containers.list}-${e.containers.container}`},timeSelector:{main:`${e.base.prefix}-${e.dateInputs.timeselector}`,size:{medium:`${e.base.prefix}-${e.dateInputs.timeselector}-${e.sizeMap.medium}`,large:`${e.base.prefix}-${e.dateInputs.timeselector}-${e.sizeMap.large}`},disabled:`${e.base.prefix}-${e.states.disabled}`,reset:`${e.base.prefix}-${e.base.reset}`}},w={wrapper:i=>{const{c:r=f,size:a,fillMode:t,rounded:n,disabled:o,required:c,invalid:m}=i,s=r.wrapper;return{[s.main]:!0,[s.input]:!0,[s.size[a]]:s.size[a],[`${e.inputPrefix}-${a}`]:a&&!s.size[a],[s.fillMode[t]]:s.fillMode[t],[s.rounded[n]]:s.rounded[n],[`${e.base.prefix}-${e.base.rounded}-${n}`]:n&&!s.rounded[n],[s.disabled]:o,[s.invalid]:m,[s.required]:c}},inputButton:l.getClassByName(f,"inputButton"),popup:i=>{const{c:r=f}=i,a=r.popup;return{[a.main]:!0,[a.container]:!0}},timeSelector:i=>{const{c:r=f,disabled:a,mobileMode:t}=i,n=r.timeSelector;return{[n.main]:!0,[n.size.large]:t,[n.reset]:t,[n.size.medium]:!t,[n.disabled]:a}}},d={wrapper:{main:`${e.calendarPrefix}`,infinite:`${e.calendarPrefix}-${e.base.infinite}`,disabled:`${e.base.prefix}-${e.states.disabled}`,weekNumber:`${e.base.prefix}-${e.dateInputs.week}-${e.dateInputs.number}`,size:{medium:`${e.calendarPrefix}-${e.sizeMap.medium}`,large:`${e.calendarPrefix}-${e.sizeMap.large}`}},view:{main:`${e.calendarPrefix}-${e.containers.view}`,vertical:`${e.base.prefix}-${e.cssUtils.vstack}`,month:`${e.calendarPrefix}-${e.dateInputs.month}${e.containers.view}`,year:`${e.calendarPrefix}-${e.dateInputs.year}${e.containers.view}`,decade:`${e.calendarPrefix}-${e.dateInputs.decade}${e.containers.view}`,century:`${e.calendarPrefix}-${e.dateInputs.century}${e.containers.view}`},navigation:`${e.calendarPrefix}-${e.dateInputs.navigation}`,navigationHighlight:`${e.calendarPrefix}-${e.dateInputs.navigation}-${e.states.highlight}`,table:{main:`${e.calendarPrefix}-${e.elements.table}`,weekdays:`${e.calendarPrefix}-${e.dateInputs.weekdays}`},thead:`${e.calendarPrefix}-${e.elements.thead}`,tr:`${e.calendarPrefix}-${e.elements.tr}`,th:`${e.calendarPrefix}-${e.elements.th}`,caption:`${e.calendarPrefix}-${e.elements.caption}`,tbody:`${e.calendarPrefix}-${e.elements.tbody}`,ul:`${e.base.prefix}-${e.base.reset}`,td:{main:`${e.calendarPrefix}-${e.elements.td}`,rangeStart:`${e.base.prefix}-${e.dateInputs.range}-${e.directionMap.start}`,rangeEnd:`${e.base.prefix}-${e.dateInputs.range}-${e.directionMap.end}`,rangeMid:`${e.base.prefix}-${e.dateInputs.range}-${e.directionMap.mid}`,rangeSplitEnd:`${e.base.prefix}-${e.dateInputs.range}-${e.actions.split}-${e.directionMap.end}`,rangeSplitStart:`${e.base.prefix}-${e.dateInputs.range}-${e.actions.split}-${e.directionMap.start}`,active:`${e.base.prefix}-${e.states.active}`,focused:`${e.base.prefix}-${e.base.state}-${e.states.pending}-${e.states.focus}`,selected:`${e.base.prefix}-${e.states.selected}`,today:`${e.base.prefix}-${e.dateInputs.today}`,weekend:`${e.base.prefix}-${e.dateInputs.weekend}`,disabled:`${e.base.prefix}-${e.states.disabled}`,isOtherMonth:`${e.base.prefix}-${e.dateInputs.other}-${e.dateInputs.month}`,isEmpty:`${e.base.prefix}-${e.states.empty}`,isWeek:`${e.base.prefix}-${e.states.alt}`},title:`${e.calendarPrefix}-${e.elements.title}`,header:{main:`${e.calendarPrefix}-${e.elements.header}`,vertical:`${e.base.prefix}-${e.cssUtils.vstack}`},spacer:`${e.base.prefix}-${e.containers.spacer}`,nav:`${e.calendarPrefix}-${e.containers.nav}`,today:{main:`${e.calendarPrefix}-${e.containers.nav}-${e.dateInputs.today}`,disabled:`${e.base.prefix}-${e.states.disabled}`},scrollable:{main:`${e.base.prefix}-${e.states.scrollable}`,content:`${e.base.prefix}-${e.containers.content}`,horizontal:`${e.base.prefix}-${e.states.scrollable}-${e.orientationMap.horizontal}`},scrollablePlaceholder:{main:`${e.base.prefix}-${e.states.scrollable}-${e.containers.placeholder}`,horizontal:`${e.base.prefix}-${e.states.scrollable}-${e.orientationMap.horizontal}-${e.containers.placeholder}`},link:`${e.base.prefix}-${e.elements.link}`,navigationMarker:`${e.calendarPrefix}-${e.dateInputs.navigation}-${e.dateInputs.marker}`},z={wrapper:i=>{const{c:r=d,disabled:a,weekNumber:t,mobileMode:n}=i,o=r.wrapper;return{[o.main]:!0,[o.infinite]:!0,[o.disabled]:a,[o.weekNumber]:t,[o.size.large]:n,[o.size.medium]:!n}},view:i=>{const{c:r=d,month:a,year:t,decade:n,century:o}=i,c=r.view;return{[c.main]:!0,[c.vertical]:!0,[c.month]:a,[c.year]:t,[c.decade]:n,[c.century]:o}},navigation:l.getClassByName(d,"navigation"),navigationHighlight:l.getClassByName(d,"navigationHighlight"),table:i=>{const{c:r=d,weekdays:a}=i,t=r.table;return{[t.main]:!0,[t.weekdays]:a}},thead:l.getClassByName(d,"thead"),tr:l.getClassByName(d,"tr"),th:l.getClassByName(d,"th"),tbody:l.getClassByName(d,"tbody"),title:l.getClassByName(d,"title"),header:i=>{const{c:r=d,vertical:a}=i,t=r.header;return{[t.main]:!0,[t.vertical]:a}},today:i=>{const{c:r=d,disabled:a}=i,t=r.today;return{[t.main]:!0,[t.disabled]:a}},spacer:l.getClassByName(d,"spacer"),nav:l.getClassByName(d,"nav"),caption:l.getClassByName(d,"caption"),ul:l.getClassByName(d,"ul"),td:i=>{const{c:r=d,rangeStart:a,rangeEnd:t,rangeMid:n,rangeSplitEnd:o,rangeSplitStart:c,active:m,focused:s,selected:M,today:h,weekend:P,disabled:y,isOtherMonth:v,isEmpty:x,isWeek:g}=i,p=r.td;return g?{[p.main]:!0,[p.isWeek]:g}:x?{[p.main]:!0,[p.isEmpty]:x}:{[p.main]:!0,[p.rangeStart]:a,[p.rangeEnd]:t,[p.rangeMid]:n,[p.rangeSplitEnd]:o,[p.rangeSplitStart]:c,[p.active]:m,[p.focused]:s,[p.selected]:M,[p.today]:h,[p.weekend]:P,[p.disabled]:y,[p.isOtherMonth]:v}},scrollable:i=>{const{c:r=d,horizontal:a}=i,t=r.scrollable;return{[t.main]:!0,[t.content]:!0,[t.horizontal]:a}},scrollablePlaceholder:i=>{const{c:r=d,horizontal:a}=i,t=r.scrollablePlaceholder;return{[t.main]:!0,[t.horizontal]:a}},link:l.getClassByName(d,"link"),navigationMarker:i=>{const{c:r=d,isRangeStart:a}=i;return{[r.navigationMarker]:a}}},b={wrapper:{main:`${e.base.prefix}-${e.components.dateinput}`,input:`${e.inputPrefix}`,size:{small:`${e.inputPrefix}-${e.sizeMap.small}`,medium:`${e.inputPrefix}-${e.sizeMap.medium}`,large:`${e.inputPrefix}-${e.sizeMap.large}`},fillMode:{solid:`${e.inputPrefix}-${e.fillModeMap.solid}`,outline:`${e.inputPrefix}-${e.fillModeMap.outline}`,flat:`${e.inputPrefix}-${e.fillModeMap.flat}`},rounded:{small:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.small}`,medium:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.medium}`,large:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.large}`},disabled:`${e.base.prefix}-${e.states.disabled}`,required:`${e.base.prefix}-${e.states.required}`,invalid:`${e.base.prefix}-${e.states.invalid}`},input:`${e.inputPrefix}-${e.inputs.inner}`,inputSpinner:{main:`${e.inputPrefix}-${e.inputs.spinner}`,button:`${e.base.prefix}-${e.inputs.spin}-${e.elements.button}`},spinnerIncrease:`${e.base.prefix}-${e.inputs.spinner}-${e.actions.increase}`,spinnerDecrease:`${e.base.prefix}-${e.inputs.spinner}-${e.actions.decrease}`,clearButton:`${e.base.prefix}-${e.base.clear}-${e.base.value}`},C={wrapper:i=>{const{c:r=b,size:a,fillMode:t,rounded:n,disabled:o,required:c,invalid:m}=i,s=r.wrapper;return{[s.main]:!0,[s.input]:!0,[s.size[a]]:s.size[a],[`${e.inputPrefix}-${a}`]:a&&!s.size[a],[s.fillMode[t]]:s.fillMode[t],[s.rounded[n]]:s.rounded[n],[`${e.base.prefix}-${e.base.rounded}-${n}`]:n&&!s.rounded[n],[s.disabled]:o,[s.invalid]:m,[s.required]:c}},input:l.getClassByName(b,"input"),inputSpinner:i=>{const{c:r=b}=i,a=r.inputSpinner;return{[a.main]:!0,[a.button]:!0}},spinnerIncrease:l.getClassByName(b,"spinnerIncrease"),spinnerDecrease:l.getClassByName(b,"spinnerDecrease"),clearButton:l.getClassByName(b,"clearButton")},u={wrapper:{main:`${e.base.prefix}-${e.components.datetimepicker}`,input:`${e.inputPrefix}`,size:{small:`${e.inputPrefix}-${e.sizeMap.small}`,medium:`${e.inputPrefix}-${e.sizeMap.medium}`,large:`${e.inputPrefix}-${e.sizeMap.large}`},fillMode:{solid:`${e.inputPrefix}-${e.fillModeMap.solid}`,outline:`${e.inputPrefix}-${e.fillModeMap.outline}`,flat:`${e.inputPrefix}-${e.fillModeMap.flat}`},rounded:{small:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.small}`,medium:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.medium}`,large:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.large}`},disabled:`${e.base.prefix}-${e.states.disabled}`,required:`${e.base.prefix}-${e.states.required}`,invalid:`${e.base.prefix}-${e.states.invalid}`},inputButton:`${e.inputPrefix}-${e.elements.button}`,popup:{main:`${e.base.prefix}-${e.components.datetime}-${e.containers.container}`,reset:`${e.base.prefix}-${e.base.reset}`},wrap:{main:`${e.base.prefix}-${e.components.datetime}-${e.containers.wrap}`,date:`${e.base.prefix}-${e.dateInputs.date}-${e.containers.tab}`,time:`${e.base.prefix}-${e.dateInputs.time}-${e.containers.tab}`,disabled:`${e.base.prefix}-${e.states.disabled}`},timeFooter:{main:`${e.base.prefix}-${e.components.datetime}-${e.elements.footer}`,actions:`${e.base.prefix}-${e.containers.actions}`,stretched:`${e.base.prefix}-${e.containers.actions}-${e.states.stretched}`},buttonGroup:`${e.base.prefix}-${e.components.datetime}-${e.components.buttongroup}`,selector:`${e.base.prefix}-${e.components.datetime}-${e.dateInputs.selector}`,calendarWrap:`${e.base.prefix}-${e.components.datetime}-${e.calendarPrefix}-${e.containers.wrap}`,timeWrap:`${e.base.prefix}-${e.components.datetime}-${e.dateInputs.time}-${e.containers.wrap}`,timeSelector:{main:`${e.base.prefix}-${e.dateInputs.timeselector}`,size:{medium:`${e.base.prefix}-${e.dateInputs.timeselector}-${e.sizeMap.medium}`,large:`${e.base.prefix}-${e.dateInputs.timeselector}-${e.sizeMap.large}`},disabled:`${e.base.prefix}-${e.states.disabled}`,reset:`${e.base.prefix}-${e.base.reset}`}},B={wrapper:i=>{const{c:r=u,size:a,fillMode:t,rounded:n,disabled:o,required:c,invalid:m}=i,s=r.wrapper;return{[s.main]:!0,[s.input]:!0,[s.size[a]]:s.size[a],[`${e.inputPrefix}-${a}`]:a&&!s.size[a],[s.fillMode[t]]:s.fillMode[t],[s.rounded[n]]:s.rounded[n],[`${e.base.prefix}-${e.base.rounded}-${n}`]:n&&!s.rounded[n],[s.disabled]:o,[s.invalid]:m,[s.required]:c}},inputButton:l.getClassByName(u,"inputButton"),popup:i=>{const{c:r=u}=i,a=r.popup;return{[a.main]:!0,[a.reset]:!0}},wrap:i=>{const{c:r=u,disabled:a,date:t,time:n}=i,o=r.wrap;return{[o.main]:!0,[o.time]:n,[o.date]:t,[o.disabled]:a}},timeFooter:i=>{const{c:r=u}=i,a=r.timeFooter;return{[a.main]:!0,[a.actions]:!0,[a.stretched]:!0}},buttonGroup:l.getClassByName(u,"buttonGroup"),selector:l.getClassByName(u,"selector"),calendarWrap:l.getClassByName(u,"calendarWrap"),timeWrap:l.getClassByName(u,"timeWrap"),timeSelector:i=>{const{c:r=u,mobileMode:a}=i,t=r.timeSelector;return{[t.main]:a,[t.size.large]:a,[t.reset]:a}}};exports.uCalendar=z;exports.uDateInput=C;exports.uDateTimePicker=B;exports.uTime=I;exports.uTimePicker=w;
|