@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"),t=`${e.base.prefix}-${e.inputs.input}`,v=`${e.base.prefix}-${e.inputs.maskedtextbox}`,$=`${e.base.prefix}-${e.inputs.radio}`,C=`${e.base.prefix}-${e.inputs.textbox}`,f=`${e.base.prefix}-${e.inputs.input}-${e.inputs.prefix}`,b=`${e.base.prefix}-${e.inputs.input}-${e.inputs.suffix}`,c={input:{radio:$,size:{small:`${$}-${e.sizeMap.small}`,medium:`${$}-${e.sizeMap.medium}`,large:`${$}-${e.sizeMap.large}`},invalid:`${e.base.prefix}-${e.states.invalid}`,checked:`${e.base.prefix}-${e.states.checked}`},wrap:`${$}-${e.containers.wrap}`,label:`${$}-${e.elements.label}`},g={input:s=>{const{size:i,invalid:o,checked:a,c:l=c}=s,r=l.input;return{[r.radio]:!0,[r.size[i]]:r.size[i],[`${$}-${i}`]:i&&!r.size[i],[r.invalid]:o,[r.checked]:a}},label:s=>{const{c:i=c}=s;return{[i.label]:!0}},wrap:s=>{const{c:i=c}=s;return{[i.wrap]:!0}}},x={ul:{main:`${$}-${e.containers.list}`,horizontal:`${e.base.prefix}-${e.containers.list}-${e.states.horizontal}`,vertical:`${e.base.prefix}-${e.containers.list}-${e.states.vertical}`},item:{main:`${$}-${e.containers.list}-${e.containers.item}`,disabled:`${e.base.prefix}-${e.states.disabled}`}},h={ul:s=>{const{horizontal:i,vertical:o,c:a=x}=s,l=a.ul;return{[l.main]:!0,[l.horizontal]:i,[l.vertical]:o}},item:s=>{const{disabled:i,c:o=x}=s,a=o.item;return{[a.main]:!0,[a.disabled]:i}}},m={wrapper:{main:v,input:t,size:{small:`${t}-${e.sizeMap.small}`,medium:`${t}-${e.sizeMap.medium}`,large:`${t}-${e.sizeMap.large}`},fillMode:{solid:`${t}-${e.fillModeMap.solid}`,outline:`${t}-${e.fillModeMap.outline}`,flat:`${t}-${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}`,invalid:`${e.base.prefix}-${e.states.invalid}`,isRtl:`${e.base.prefix}-${e.base.rtl}`},input:`${t}-${e.inputs.inner}`},w={wrapper:s=>{const{invalid:i,disabled:o,size:a,fillMode:l,rounded:r,c:u=m}=s,n=u.wrapper;return{[n.main]:!0,[n.input]:!0,[n.size[a]]:n.size[a],[`${t}-${a}`]:!n.size[a],[n.fillMode[l]]:n.fillMode[l],[n.rounded[r]]:n.rounded[r],[`${e.base.prefix}-${e.base.rounded}-${r}`]:r&&!n.rounded[r],[n.disabled]:o,[n.invalid]:i}},input:s=>{const{c:i=m}=s;return{[i.input]:!0}}},p={wrapper:{main:C,input:t,size:{small:`${t}-${e.sizeMap.small}`,medium:`${t}-${e.sizeMap.medium}`,large:`${t}-${e.sizeMap.large}`},fillMode:{solid:`${t}-${e.fillModeMap.solid}`,outline:`${t}-${e.fillModeMap.outline}`,flat:`${t}-${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}`,focused:`${e.base.prefix}-${e.states.focus}`,required:`${e.base.prefix}-${e.states.required}`,invalid:`${e.base.prefix}-${e.states.invalid}`,isRtl:`${e.base.prefix}-${e.base.rtl}`},input:`${t}-${e.inputs.inner}`,prefix:{main:f,orientation:{horizontal:`${f}-${e.orientationMap.horizontal}`,vertical:`${f}-${e.orientationMap.vertical}`}},suffix:{main:b,orientation:{horizontal:`${b}-${e.orientationMap.horizontal}`,vertical:`${b}-${e.orientationMap.vertical}`}}},B={wrapper:s=>{const{disabled:i,invalid:o,focused:a,required:l,size:r,fillMode:u,rounded:n,isRtl:M,c:z=p}=s,d=z.wrapper;return{[d.main]:!0,[d.input]:!0,[d.size[r]]:d.size[r],[`${t}-${r}`]:r&&!d.size[r],[d.fillMode[u]]:d.fillMode[u],[d.rounded[n]]:d.rounded[n],[`${e.base.prefix}-${e.base.rounded}-${n}`]:n&&!d.rounded[n],[d.disabled]:i,[d.focused]:a,[d.required]:l,[d.invalid]:o,[d.isRtl]:M}},input:s=>{const{c:i=p}=s;return{[i.input]:!0}},prefix:s=>{const{orientation:i,c:o=p}=s,a=o.prefix;return{[a.main]:!0,[a.orientation[i]]:a.orientation[i]}},suffix:s=>{const{orientation:i,c:o=p}=s,a=o.suffix;return{[a.main]:!0,[a.orientation[i]]:a.orientation[i]}}},R={input:{main:`${t} ${t}-${e.sizeMap.medium} ${e.base.prefix}-${e.base.rounded}-${e.roundedMap.medium} ${t}-${e.fillModeMap.solid}`,disabled:`${e.base.prefix}-${e.states.disabled}`,required:`${e.base.prefix}-${e.states.required}`,invalid:`${e.base.prefix}-${e.states.invalid}`,isRtl:`${e.base.prefix}-${e.base.rtl}`}},k={input:s=>{const{disabled:i,invalid:o,required:a,isRtl:l,c:r=R}=s,u=r.input;return{[u.main]:!0,[u.disabled]:i,[u.required]:a,[u.invalid]:o,[u.isRtl]:l}}};exports.radioButtonClasses=c;exports.radioGroupClasses=x;exports.uInput=k;exports.uMaskedTextBox=w;exports.uRadioButton=g;exports.uRadioGroup=h;exports.uTextBox=B;
|
|
@@ -0,0 +1,262 @@
|
|
|
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 { base as i, inputs as c, sizeMap as p, states as $, containers as v, elements as q, fillModeMap as m, roundedMap as x, orientationMap as z } from "./json-classes.mjs";
|
|
10
|
+
const n = `${i.prefix}-${c.input}`, B = `${i.prefix}-${c.maskedtextbox}`, f = `${i.prefix}-${c.radio}`, T = `${i.prefix}-${c.textbox}`, M = `${i.prefix}-${c.input}-${c.prefix}`, h = `${i.prefix}-${c.input}-${c.suffix}`, w = {
|
|
11
|
+
input: {
|
|
12
|
+
radio: f,
|
|
13
|
+
size: {
|
|
14
|
+
small: `${f}-${p.small}`,
|
|
15
|
+
medium: `${f}-${p.medium}`,
|
|
16
|
+
large: `${f}-${p.large}`
|
|
17
|
+
},
|
|
18
|
+
invalid: `${i.prefix}-${$.invalid}`,
|
|
19
|
+
checked: `${i.prefix}-${$.checked}`
|
|
20
|
+
},
|
|
21
|
+
wrap: `${f}-${v.wrap}`,
|
|
22
|
+
label: `${f}-${q.label}`
|
|
23
|
+
}, P = {
|
|
24
|
+
input: (r) => {
|
|
25
|
+
const {
|
|
26
|
+
size: e,
|
|
27
|
+
invalid: d,
|
|
28
|
+
checked: t,
|
|
29
|
+
c: o = w
|
|
30
|
+
} = r, l = o.input;
|
|
31
|
+
return {
|
|
32
|
+
[l.radio]: !0,
|
|
33
|
+
[l.size[e]]: l.size[e],
|
|
34
|
+
[`${f}-${e}`]: e && !l.size[e],
|
|
35
|
+
[l.invalid]: d,
|
|
36
|
+
[l.checked]: t
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
label: (r) => {
|
|
40
|
+
const {
|
|
41
|
+
c: e = w
|
|
42
|
+
} = r;
|
|
43
|
+
return {
|
|
44
|
+
[e.label]: !0
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
wrap: (r) => {
|
|
48
|
+
const {
|
|
49
|
+
c: e = w
|
|
50
|
+
} = r;
|
|
51
|
+
return {
|
|
52
|
+
[e.wrap]: !0
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}, C = {
|
|
56
|
+
ul: {
|
|
57
|
+
main: `${f}-${v.list}`,
|
|
58
|
+
horizontal: `${i.prefix}-${v.list}-${$.horizontal}`,
|
|
59
|
+
vertical: `${i.prefix}-${v.list}-${$.vertical}`
|
|
60
|
+
},
|
|
61
|
+
item: {
|
|
62
|
+
main: `${f}-${v.list}-${v.item}`,
|
|
63
|
+
disabled: `${i.prefix}-${$.disabled}`
|
|
64
|
+
}
|
|
65
|
+
}, S = {
|
|
66
|
+
ul: (r) => {
|
|
67
|
+
const {
|
|
68
|
+
horizontal: e,
|
|
69
|
+
vertical: d,
|
|
70
|
+
c: t = C
|
|
71
|
+
} = r, o = t.ul;
|
|
72
|
+
return {
|
|
73
|
+
[o.main]: !0,
|
|
74
|
+
[o.horizontal]: e,
|
|
75
|
+
[o.vertical]: d
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
item: (r) => {
|
|
79
|
+
const {
|
|
80
|
+
disabled: e,
|
|
81
|
+
c: d = C
|
|
82
|
+
} = r, t = d.item;
|
|
83
|
+
return {
|
|
84
|
+
[t.main]: !0,
|
|
85
|
+
[t.disabled]: e
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}, g = {
|
|
89
|
+
wrapper: {
|
|
90
|
+
main: B,
|
|
91
|
+
input: n,
|
|
92
|
+
size: {
|
|
93
|
+
small: `${n}-${p.small}`,
|
|
94
|
+
medium: `${n}-${p.medium}`,
|
|
95
|
+
large: `${n}-${p.large}`
|
|
96
|
+
},
|
|
97
|
+
fillMode: {
|
|
98
|
+
solid: `${n}-${m.solid}`,
|
|
99
|
+
outline: `${n}-${m.outline}`,
|
|
100
|
+
flat: `${n}-${m.flat}`
|
|
101
|
+
},
|
|
102
|
+
rounded: {
|
|
103
|
+
small: `${i.prefix}-${i.rounded}-${x.small}`,
|
|
104
|
+
medium: `${i.prefix}-${i.rounded}-${x.medium}`,
|
|
105
|
+
large: `${i.prefix}-${i.rounded}-${x.large}`
|
|
106
|
+
},
|
|
107
|
+
disabled: `${i.prefix}-${$.disabled}`,
|
|
108
|
+
invalid: `${i.prefix}-${$.invalid}`,
|
|
109
|
+
isRtl: `${i.prefix}-${i.rtl}`
|
|
110
|
+
},
|
|
111
|
+
input: `${n}-${c.inner}`
|
|
112
|
+
}, j = {
|
|
113
|
+
wrapper: (r) => {
|
|
114
|
+
const {
|
|
115
|
+
invalid: e,
|
|
116
|
+
disabled: d,
|
|
117
|
+
size: t,
|
|
118
|
+
fillMode: o,
|
|
119
|
+
rounded: l,
|
|
120
|
+
c: u = g
|
|
121
|
+
} = r, a = u.wrapper;
|
|
122
|
+
return {
|
|
123
|
+
[a.main]: !0,
|
|
124
|
+
[a.input]: !0,
|
|
125
|
+
[a.size[t]]: a.size[t],
|
|
126
|
+
[`${n}-${t}`]: !a.size[t],
|
|
127
|
+
[a.fillMode[o]]: a.fillMode[o],
|
|
128
|
+
[a.rounded[l]]: a.rounded[l],
|
|
129
|
+
[`${i.prefix}-${i.rounded}-${l}`]: l && !a.rounded[l],
|
|
130
|
+
[a.disabled]: d,
|
|
131
|
+
[a.invalid]: e
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
input: (r) => {
|
|
135
|
+
const { c: e = g } = r;
|
|
136
|
+
return {
|
|
137
|
+
[e.input]: !0
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}, b = {
|
|
141
|
+
wrapper: {
|
|
142
|
+
main: T,
|
|
143
|
+
input: n,
|
|
144
|
+
size: {
|
|
145
|
+
small: `${n}-${p.small}`,
|
|
146
|
+
medium: `${n}-${p.medium}`,
|
|
147
|
+
large: `${n}-${p.large}`
|
|
148
|
+
},
|
|
149
|
+
fillMode: {
|
|
150
|
+
solid: `${n}-${m.solid}`,
|
|
151
|
+
outline: `${n}-${m.outline}`,
|
|
152
|
+
flat: `${n}-${m.flat}`
|
|
153
|
+
},
|
|
154
|
+
rounded: {
|
|
155
|
+
small: `${i.prefix}-${i.rounded}-${x.small}`,
|
|
156
|
+
medium: `${i.prefix}-${i.rounded}-${x.medium}`,
|
|
157
|
+
large: `${i.prefix}-${i.rounded}-${x.large}`
|
|
158
|
+
},
|
|
159
|
+
disabled: `${i.prefix}-${$.disabled}`,
|
|
160
|
+
focused: `${i.prefix}-${$.focus}`,
|
|
161
|
+
required: `${i.prefix}-${$.required}`,
|
|
162
|
+
invalid: `${i.prefix}-${$.invalid}`,
|
|
163
|
+
isRtl: `${i.prefix}-${i.rtl}`
|
|
164
|
+
},
|
|
165
|
+
input: `${n}-${c.inner}`,
|
|
166
|
+
prefix: {
|
|
167
|
+
main: M,
|
|
168
|
+
orientation: {
|
|
169
|
+
horizontal: `${M}-${z.horizontal}`,
|
|
170
|
+
vertical: `${M}-${z.vertical}`
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
suffix: {
|
|
174
|
+
main: h,
|
|
175
|
+
orientation: {
|
|
176
|
+
horizontal: `${h}-${z.horizontal}`,
|
|
177
|
+
vertical: `${h}-${z.vertical}`
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}, y = {
|
|
181
|
+
wrapper: (r) => {
|
|
182
|
+
const {
|
|
183
|
+
disabled: e,
|
|
184
|
+
invalid: d,
|
|
185
|
+
focused: t,
|
|
186
|
+
required: o,
|
|
187
|
+
size: l,
|
|
188
|
+
fillMode: u,
|
|
189
|
+
rounded: a,
|
|
190
|
+
isRtl: R,
|
|
191
|
+
c: k = b
|
|
192
|
+
} = r, s = k.wrapper;
|
|
193
|
+
return {
|
|
194
|
+
[s.main]: !0,
|
|
195
|
+
[s.input]: !0,
|
|
196
|
+
[s.size[l]]: s.size[l],
|
|
197
|
+
[`${n}-${l}`]: l && !s.size[l],
|
|
198
|
+
[s.fillMode[u]]: s.fillMode[u],
|
|
199
|
+
[s.rounded[a]]: s.rounded[a],
|
|
200
|
+
[`${i.prefix}-${i.rounded}-${a}`]: a && !s.rounded[a],
|
|
201
|
+
[s.disabled]: e,
|
|
202
|
+
[s.focused]: t,
|
|
203
|
+
[s.required]: o,
|
|
204
|
+
[s.invalid]: d,
|
|
205
|
+
[s.isRtl]: R
|
|
206
|
+
};
|
|
207
|
+
},
|
|
208
|
+
input: (r) => {
|
|
209
|
+
const { c: e = b } = r;
|
|
210
|
+
return {
|
|
211
|
+
[e.input]: !0
|
|
212
|
+
};
|
|
213
|
+
},
|
|
214
|
+
prefix: (r) => {
|
|
215
|
+
const { orientation: e, c: d = b } = r, t = d.prefix;
|
|
216
|
+
return {
|
|
217
|
+
[t.main]: !0,
|
|
218
|
+
[t.orientation[e]]: t.orientation[e]
|
|
219
|
+
};
|
|
220
|
+
},
|
|
221
|
+
suffix: (r) => {
|
|
222
|
+
const { orientation: e, c: d = b } = r, t = d.suffix;
|
|
223
|
+
return {
|
|
224
|
+
[t.main]: !0,
|
|
225
|
+
[t.orientation[e]]: t.orientation[e]
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
}, G = {
|
|
229
|
+
input: {
|
|
230
|
+
main: `${n} ${n}-${p.medium} ${i.prefix}-${i.rounded}-${x.medium} ${n}-${m.solid}`,
|
|
231
|
+
disabled: `${i.prefix}-${$.disabled}`,
|
|
232
|
+
required: `${i.prefix}-${$.required}`,
|
|
233
|
+
invalid: `${i.prefix}-${$.invalid}`,
|
|
234
|
+
isRtl: `${i.prefix}-${i.rtl}`
|
|
235
|
+
}
|
|
236
|
+
}, A = {
|
|
237
|
+
input: (r) => {
|
|
238
|
+
const {
|
|
239
|
+
disabled: e,
|
|
240
|
+
invalid: d,
|
|
241
|
+
required: t,
|
|
242
|
+
isRtl: o,
|
|
243
|
+
c: l = G
|
|
244
|
+
} = r, u = l.input;
|
|
245
|
+
return {
|
|
246
|
+
[u.main]: !0,
|
|
247
|
+
[u.disabled]: e,
|
|
248
|
+
[u.required]: t,
|
|
249
|
+
[u.invalid]: d,
|
|
250
|
+
[u.isRtl]: o
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
export {
|
|
255
|
+
w as radioButtonClasses,
|
|
256
|
+
C as radioGroupClasses,
|
|
257
|
+
A as uInput,
|
|
258
|
+
j as uMaskedTextBox,
|
|
259
|
+
P as uRadioButton,
|
|
260
|
+
S as uRadioGroup,
|
|
261
|
+
y as uTextBox
|
|
262
|
+
};
|
|
@@ -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 n=(e,t)=>r=>{const{c:s=e}=r;return{[s[t]]:!0}};exports.getClassByName=n;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
const s = (e, t) => (r) => {
|
|
10
|
+
const { c: n = e } = r;
|
|
11
|
+
return {
|
|
12
|
+
[n[t]]: !0
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
s as getClassByName
|
|
17
|
+
};
|
|
@@ -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={prefix:"k",important:"!",rtl:"rtl",rounded:"rounded",value:"value",state:"state",filter:"filter",virtual:"virtual",infinite:"infinite",clear:"clear",reset:"reset",nodata:"nodata"},o={center:"center",hbox:"hbox",vstack:"vstack",overflow:"overflow"},t={actionsheet:"actionsheet",calendar:"calendar",buttongroup:"buttongroup",dateinput:"dateinput",datetime:"datetime",datetimepicker:"datetimepicker",dropdownlist:"dropdownlist",maskedtextbox:"maskedtextbox",menu:"menu",searchbox:"searchbox",timepicker:"timepicker"},l={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",xxlarge:"xxl",xxxlarge:"xxxl"},s={solid:"solid",outline:"outline",flat:"flat",link:"link",clear:"clear"},c={base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inherit:"inherit",inverse:"inverse"},d={small:"sm",medium:"md",large:"lg",full:"full"},p={vertical:"vertical",horizontal:"horizontal"},f={height:"height",width:"width"},m={default:"cursor-default"},u={up:"up",down:"down",left:"left",right:"right",start:"start",mid:"mid",end:"end"},r={actions:"actions",container:"container",content:"content",group:"group",row:"row",nav:"nav",wrap:"wrap",wrapper:"wrapper",list:"list",placeholder:"placeholder",popup:"popup",item:"item",part:"part",picker:"picker",separator:"separator",spacer:"spacer",tab:"tab",titlebar:"titlebar",optionlabel:"optionlabel",view:"view"},a={table:"table",text:"text",button:"button",tbody:"tbody",thead:"thead",tr:"tr",th:"th",td:"td",header:"header",footer:"footer",icon:"icon",title:"title",link:"link",label:"label",ul:"ul",caption:"caption"},x={increase:"increase",decrease:"decrease",cancel:"cancel",accept:"accept",split:"split"},h={active:"active",adaptive:"adaptive",first:"first",focus:"focus",pending:"pending",last:"last",draggable:"draggable",filterable:"filterable",grouping:"grouping",selected:"selected",disabled:"disabled",hidden:"hidden",highlight:"highlight",invalid:"invalid",loading:"loading",required:"required",checked:"checked",empty:"empty",scrollable:"scrollable",sorted:"sorted",sort:"sort",sticky:"sticky",stretched:"stretched",order:"order",alt:"alt",edit:"edit",template:"template",shown:"shown",horizontal:"horizontal",vertical:"vertical",fullscreen:"fullscreen",bottom:"bottom"},b={prefix:"animation",child:"child",relative:"relative",slide:"slide",appear:"appear",active:"active",enter:"enter",exit:"exit",pushRight:"push-right",pushLeft:"push-left",pushDown:"push-down",pushUp:"push-up",expandVertical:"expand-vertical",expandHorizontal:"expand-horizontal",fade:"fade",zoomIn:"zoom-in",zoomOut:"zoom-out",slideIn:"slide-in",slideDown:"slide-down",slideUp:"slide-up",slideRight:"slide-right",slideLeft:"slide-left",revealVertical:"reveal-vertical",revealHorizontal:"reveal-horizontal","animation-container":"animation-container","animation-container-shown":"animation-container-shown","animation-container-relative":"animation-container-relative","animation-container-fixed":"animation-container-fixed","child-animation-container":"child-animation-container"},i={input:"input",inner:"inner",spin:"spin",spinner:"spinner",maskedtextbox:"maskedtextbox",radio:"radio",textbox:"textbox",prefix:"prefix",suffix:"suffix"},g={week:"week",weekdays:"weekdays",weekend:"weekend",month:"month",year:"year",decade:"decade",century:"century",number:"number",navigation:"navigation",marker:"marker",now:"now",range:"range",today:"today",other:"other",date:"date",time:"time",selector:"selector",timeselector:"timeselector"},v={prefix:"icon",svg:"svg",i:"i",color:"color",flipH:"flip-h",flipV:"flip-v"},w={label:"label",text:"text",floatingLabel:"floating-label",container:"container",hint:"form-hint",error:"form-error"},k={form:"form",field:"field"},y={prefix:"popup"},n={prefix:"grid",ariaRoot:"aria-root",tableWrap:"table-wrap",master:"master",column:"column",cell:"cell",cellInner:"cell-inner",row:"row",group:"group",hierarchy:"hierarchy",detail:"detail",noRecords:"norecords",pager:"pager"},P=`${e.prefix}-${i.input}`,$=`${e.prefix}-${t.calendar}`,M=`${e.prefix}-${t.maskedtextbox}`,z=`${e.prefix}-${i.radio}`,I=`${e.prefix}-${a.button}`,L=`${e.prefix}-${t.menu}`,D=`${e.prefix}-${r.picker}`,R=`${e.prefix}-${t.dropdownlist}`,S=`${e.prefix}-${n.prefix}`,U={base:e,actions:x,animation:b,sizeMap:l,components:t,cssUtils:o,directionMap:u,fillModeMap:s,themeColorMap:c,roundedMap:d,orientationMap:p,elements:a,states:h,dimensions:f,containers:r,cursor:m,inputs:i,dateInputs:g,labels:w,forms:k,popup:y,icon:v,grid:n};exports.actions=x;exports.animationStyles=b;exports.base=e;exports.buttonPrefix=I;exports.calendarPrefix=$;exports.components=t;exports.containers=r;exports.cssUtils=o;exports.cursor=m;exports.dateInputs=g;exports.ddbPrefix=L;exports.dimensions=f;exports.directionMap=u;exports.dropDownListPrefix=R;exports.elements=a;exports.fillModeMap=s;exports.forms=k;exports.grid=n;exports.gridPrefix=S;exports.icon=v;exports.inputPrefix=P;exports.inputs=i;exports.jsonTheme=U;exports.labels=w;exports.maskedPrefix=M;exports.orientationMap=p;exports.pickerPrefix=D;exports.popup=y;exports.radioPrefix=z;exports.roundedMap=d;exports.sizeMap=l;exports.states=h;exports.themeColorMap=c;
|
|
@@ -0,0 +1,315 @@
|
|
|
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
|
+
const e = {
|
|
10
|
+
prefix: "k",
|
|
11
|
+
important: "!",
|
|
12
|
+
rtl: "rtl",
|
|
13
|
+
rounded: "rounded",
|
|
14
|
+
value: "value",
|
|
15
|
+
state: "state",
|
|
16
|
+
filter: "filter",
|
|
17
|
+
virtual: "virtual",
|
|
18
|
+
infinite: "infinite",
|
|
19
|
+
clear: "clear",
|
|
20
|
+
reset: "reset",
|
|
21
|
+
nodata: "nodata"
|
|
22
|
+
}, o = {
|
|
23
|
+
center: "center",
|
|
24
|
+
hbox: "hbox",
|
|
25
|
+
vstack: "vstack",
|
|
26
|
+
overflow: "overflow"
|
|
27
|
+
}, t = {
|
|
28
|
+
actionsheet: "actionsheet",
|
|
29
|
+
calendar: "calendar",
|
|
30
|
+
buttongroup: "buttongroup",
|
|
31
|
+
dateinput: "dateinput",
|
|
32
|
+
datetime: "datetime",
|
|
33
|
+
datetimepicker: "datetimepicker",
|
|
34
|
+
dropdownlist: "dropdownlist",
|
|
35
|
+
maskedtextbox: "maskedtextbox",
|
|
36
|
+
menu: "menu",
|
|
37
|
+
searchbox: "searchbox",
|
|
38
|
+
timepicker: "timepicker"
|
|
39
|
+
}, l = {
|
|
40
|
+
xsmall: "xs",
|
|
41
|
+
small: "sm",
|
|
42
|
+
medium: "md",
|
|
43
|
+
large: "lg",
|
|
44
|
+
xlarge: "xl",
|
|
45
|
+
xxlarge: "xxl",
|
|
46
|
+
xxxlarge: "xxxl"
|
|
47
|
+
}, s = {
|
|
48
|
+
solid: "solid",
|
|
49
|
+
outline: "outline",
|
|
50
|
+
flat: "flat",
|
|
51
|
+
link: "link",
|
|
52
|
+
clear: "clear"
|
|
53
|
+
}, c = {
|
|
54
|
+
base: "base",
|
|
55
|
+
primary: "primary",
|
|
56
|
+
secondary: "secondary",
|
|
57
|
+
tertiary: "tertiary",
|
|
58
|
+
info: "info",
|
|
59
|
+
success: "success",
|
|
60
|
+
warning: "warning",
|
|
61
|
+
error: "error",
|
|
62
|
+
dark: "dark",
|
|
63
|
+
light: "light",
|
|
64
|
+
inherit: "inherit",
|
|
65
|
+
inverse: "inverse"
|
|
66
|
+
}, d = {
|
|
67
|
+
small: "sm",
|
|
68
|
+
medium: "md",
|
|
69
|
+
large: "lg",
|
|
70
|
+
full: "full"
|
|
71
|
+
}, p = {
|
|
72
|
+
vertical: "vertical",
|
|
73
|
+
horizontal: "horizontal"
|
|
74
|
+
}, m = {
|
|
75
|
+
height: "height",
|
|
76
|
+
width: "width"
|
|
77
|
+
}, u = {
|
|
78
|
+
default: "cursor-default"
|
|
79
|
+
}, f = {
|
|
80
|
+
up: "up",
|
|
81
|
+
down: "down",
|
|
82
|
+
left: "left",
|
|
83
|
+
right: "right",
|
|
84
|
+
start: "start",
|
|
85
|
+
mid: "mid",
|
|
86
|
+
end: "end"
|
|
87
|
+
}, r = {
|
|
88
|
+
actions: "actions",
|
|
89
|
+
container: "container",
|
|
90
|
+
content: "content",
|
|
91
|
+
group: "group",
|
|
92
|
+
row: "row",
|
|
93
|
+
nav: "nav",
|
|
94
|
+
wrap: "wrap",
|
|
95
|
+
wrapper: "wrapper",
|
|
96
|
+
list: "list",
|
|
97
|
+
placeholder: "placeholder",
|
|
98
|
+
popup: "popup",
|
|
99
|
+
item: "item",
|
|
100
|
+
part: "part",
|
|
101
|
+
picker: "picker",
|
|
102
|
+
separator: "separator",
|
|
103
|
+
spacer: "spacer",
|
|
104
|
+
tab: "tab",
|
|
105
|
+
titlebar: "titlebar",
|
|
106
|
+
optionlabel: "optionlabel",
|
|
107
|
+
view: "view"
|
|
108
|
+
}, a = {
|
|
109
|
+
table: "table",
|
|
110
|
+
text: "text",
|
|
111
|
+
button: "button",
|
|
112
|
+
tbody: "tbody",
|
|
113
|
+
thead: "thead",
|
|
114
|
+
tr: "tr",
|
|
115
|
+
th: "th",
|
|
116
|
+
td: "td",
|
|
117
|
+
header: "header",
|
|
118
|
+
footer: "footer",
|
|
119
|
+
icon: "icon",
|
|
120
|
+
title: "title",
|
|
121
|
+
link: "link",
|
|
122
|
+
label: "label",
|
|
123
|
+
ul: "ul",
|
|
124
|
+
caption: "caption"
|
|
125
|
+
}, h = {
|
|
126
|
+
increase: "increase",
|
|
127
|
+
decrease: "decrease",
|
|
128
|
+
cancel: "cancel",
|
|
129
|
+
accept: "accept",
|
|
130
|
+
split: "split"
|
|
131
|
+
}, x = {
|
|
132
|
+
active: "active",
|
|
133
|
+
adaptive: "adaptive",
|
|
134
|
+
first: "first",
|
|
135
|
+
focus: "focus",
|
|
136
|
+
pending: "pending",
|
|
137
|
+
last: "last",
|
|
138
|
+
draggable: "draggable",
|
|
139
|
+
filterable: "filterable",
|
|
140
|
+
grouping: "grouping",
|
|
141
|
+
selected: "selected",
|
|
142
|
+
disabled: "disabled",
|
|
143
|
+
hidden: "hidden",
|
|
144
|
+
highlight: "highlight",
|
|
145
|
+
invalid: "invalid",
|
|
146
|
+
loading: "loading",
|
|
147
|
+
required: "required",
|
|
148
|
+
checked: "checked",
|
|
149
|
+
empty: "empty",
|
|
150
|
+
scrollable: "scrollable",
|
|
151
|
+
sorted: "sorted",
|
|
152
|
+
sort: "sort",
|
|
153
|
+
sticky: "sticky",
|
|
154
|
+
stretched: "stretched",
|
|
155
|
+
order: "order",
|
|
156
|
+
alt: "alt",
|
|
157
|
+
edit: "edit",
|
|
158
|
+
template: "template",
|
|
159
|
+
shown: "shown",
|
|
160
|
+
horizontal: "horizontal",
|
|
161
|
+
vertical: "vertical",
|
|
162
|
+
fullscreen: "fullscreen",
|
|
163
|
+
bottom: "bottom"
|
|
164
|
+
}, g = {
|
|
165
|
+
prefix: "animation",
|
|
166
|
+
child: "child",
|
|
167
|
+
relative: "relative",
|
|
168
|
+
slide: "slide",
|
|
169
|
+
appear: "appear",
|
|
170
|
+
active: "active",
|
|
171
|
+
enter: "enter",
|
|
172
|
+
exit: "exit",
|
|
173
|
+
pushRight: "push-right",
|
|
174
|
+
pushLeft: "push-left",
|
|
175
|
+
pushDown: "push-down",
|
|
176
|
+
pushUp: "push-up",
|
|
177
|
+
expandVertical: "expand-vertical",
|
|
178
|
+
expandHorizontal: "expand-horizontal",
|
|
179
|
+
fade: "fade",
|
|
180
|
+
zoomIn: "zoom-in",
|
|
181
|
+
zoomOut: "zoom-out",
|
|
182
|
+
slideIn: "slide-in",
|
|
183
|
+
slideDown: "slide-down",
|
|
184
|
+
slideUp: "slide-up",
|
|
185
|
+
slideRight: "slide-right",
|
|
186
|
+
slideLeft: "slide-left",
|
|
187
|
+
revealVertical: "reveal-vertical",
|
|
188
|
+
revealHorizontal: "reveal-horizontal",
|
|
189
|
+
"animation-container": "animation-container",
|
|
190
|
+
"animation-container-shown": "animation-container-shown",
|
|
191
|
+
"animation-container-relative": "animation-container-relative",
|
|
192
|
+
"animation-container-fixed": "animation-container-fixed",
|
|
193
|
+
"child-animation-container": "child-animation-container"
|
|
194
|
+
}, i = {
|
|
195
|
+
input: "input",
|
|
196
|
+
inner: "inner",
|
|
197
|
+
spin: "spin",
|
|
198
|
+
spinner: "spinner",
|
|
199
|
+
maskedtextbox: "maskedtextbox",
|
|
200
|
+
radio: "radio",
|
|
201
|
+
textbox: "textbox",
|
|
202
|
+
prefix: "prefix",
|
|
203
|
+
suffix: "suffix"
|
|
204
|
+
}, b = {
|
|
205
|
+
week: "week",
|
|
206
|
+
weekdays: "weekdays",
|
|
207
|
+
weekend: "weekend",
|
|
208
|
+
month: "month",
|
|
209
|
+
year: "year",
|
|
210
|
+
decade: "decade",
|
|
211
|
+
century: "century",
|
|
212
|
+
number: "number",
|
|
213
|
+
navigation: "navigation",
|
|
214
|
+
marker: "marker",
|
|
215
|
+
now: "now",
|
|
216
|
+
range: "range",
|
|
217
|
+
today: "today",
|
|
218
|
+
other: "other",
|
|
219
|
+
date: "date",
|
|
220
|
+
time: "time",
|
|
221
|
+
selector: "selector",
|
|
222
|
+
timeselector: "timeselector"
|
|
223
|
+
}, v = {
|
|
224
|
+
prefix: "icon",
|
|
225
|
+
svg: "svg",
|
|
226
|
+
i: "i",
|
|
227
|
+
color: "color",
|
|
228
|
+
flipH: "flip-h",
|
|
229
|
+
flipV: "flip-v"
|
|
230
|
+
}, w = {
|
|
231
|
+
label: "label",
|
|
232
|
+
text: "text",
|
|
233
|
+
floatingLabel: "floating-label",
|
|
234
|
+
container: "container",
|
|
235
|
+
hint: "form-hint",
|
|
236
|
+
error: "form-error"
|
|
237
|
+
}, k = {
|
|
238
|
+
form: "form",
|
|
239
|
+
field: "field"
|
|
240
|
+
}, y = {
|
|
241
|
+
prefix: "popup"
|
|
242
|
+
}, n = {
|
|
243
|
+
prefix: "grid",
|
|
244
|
+
ariaRoot: "aria-root",
|
|
245
|
+
tableWrap: "table-wrap",
|
|
246
|
+
master: "master",
|
|
247
|
+
column: "column",
|
|
248
|
+
cell: "cell",
|
|
249
|
+
cellInner: "cell-inner",
|
|
250
|
+
row: "row",
|
|
251
|
+
group: "group",
|
|
252
|
+
hierarchy: "hierarchy",
|
|
253
|
+
detail: "detail",
|
|
254
|
+
noRecords: "norecords",
|
|
255
|
+
pager: "pager"
|
|
256
|
+
}, $ = `${e.prefix}-${i.input}`, z = `${e.prefix}-${t.calendar}`, P = `${e.prefix}-${t.maskedtextbox}`, M = `${e.prefix}-${i.radio}`, I = `${e.prefix}-${a.button}`, L = `${e.prefix}-${t.menu}`, R = `${e.prefix}-${r.picker}`, D = `${e.prefix}-${t.dropdownlist}`, H = `${e.prefix}-${n.prefix}`, U = {
|
|
257
|
+
base: e,
|
|
258
|
+
actions: h,
|
|
259
|
+
animation: g,
|
|
260
|
+
sizeMap: l,
|
|
261
|
+
components: t,
|
|
262
|
+
cssUtils: o,
|
|
263
|
+
directionMap: f,
|
|
264
|
+
fillModeMap: s,
|
|
265
|
+
themeColorMap: c,
|
|
266
|
+
roundedMap: d,
|
|
267
|
+
orientationMap: p,
|
|
268
|
+
elements: a,
|
|
269
|
+
states: x,
|
|
270
|
+
dimensions: m,
|
|
271
|
+
containers: r,
|
|
272
|
+
cursor: u,
|
|
273
|
+
inputs: i,
|
|
274
|
+
dateInputs: b,
|
|
275
|
+
labels: w,
|
|
276
|
+
forms: k,
|
|
277
|
+
popup: y,
|
|
278
|
+
icon: v,
|
|
279
|
+
grid: n
|
|
280
|
+
};
|
|
281
|
+
export {
|
|
282
|
+
h as actions,
|
|
283
|
+
g as animationStyles,
|
|
284
|
+
e as base,
|
|
285
|
+
I as buttonPrefix,
|
|
286
|
+
z as calendarPrefix,
|
|
287
|
+
t as components,
|
|
288
|
+
r as containers,
|
|
289
|
+
o as cssUtils,
|
|
290
|
+
u as cursor,
|
|
291
|
+
b as dateInputs,
|
|
292
|
+
L as ddbPrefix,
|
|
293
|
+
m as dimensions,
|
|
294
|
+
f as directionMap,
|
|
295
|
+
D as dropDownListPrefix,
|
|
296
|
+
a as elements,
|
|
297
|
+
s as fillModeMap,
|
|
298
|
+
k as forms,
|
|
299
|
+
n as grid,
|
|
300
|
+
H as gridPrefix,
|
|
301
|
+
v as icon,
|
|
302
|
+
$ as inputPrefix,
|
|
303
|
+
i as inputs,
|
|
304
|
+
U as jsonTheme,
|
|
305
|
+
w as labels,
|
|
306
|
+
P as maskedPrefix,
|
|
307
|
+
p as orientationMap,
|
|
308
|
+
R as pickerPrefix,
|
|
309
|
+
y as popup,
|
|
310
|
+
M as radioPrefix,
|
|
311
|
+
d as roundedMap,
|
|
312
|
+
l as sizeMap,
|
|
313
|
+
x as states,
|
|
314
|
+
c as themeColorMap
|
|
315
|
+
};
|
|
@@ -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"),d=`${e.base.prefix}-${e.labels.label}`,b=`${e.base.prefix}-${e.labels.floatingLabel}`,p=`${e.base.prefix}-${e.labels.error}`,$=`${e.base.prefix}-${e.labels.hint}`,c={label:{main:d,empty:`${e.base.prefix}-${e.labels.label}-${e.states.empty}`,invalid:`${e.base.prefix}-${e.labels.text}-${e.themeColorMap.error}`,disabled:`${e.base.prefix}-${e.labels.text}-${e.states.disabled}`}},x={label:l=>{const{empty:s,invalid:r,disabled:t,c:a=c}=l,i=a.label;return{[i.main]:!0,[i.empty]:s,[i.invalid]:r,[i.disabled]:t}}},o={wrapper:{main:`${b}-${e.labels.container}`,focused:`${e.base.prefix}-${e.states.focus}`,empty:`${e.base.prefix}-${e.states.empty}`,disabled:`${e.base.prefix}-${e.labels.text}-${e.states.disabled}`,isRtl:`${e.base.prefix}-${e.base.rtl}`},label:{main:b,invalid:`${e.base.prefix}-${e.labels.text}-${e.themeColorMap.error}`,disabled:`${e.base.prefix}-${e.labels.text}-${e.states.disabled}`}},u={wrapper:l=>{const{focused:s,empty:r,disabled:t,isRtl:a,c:i=o}=l,n=i.wrapper;return{[n.main]:!0,[n.focused]:s,[n.empty]:r,[n.disabled]:t,[n.isRtl]:a}},label:l=>{const{invalid:s,disabled:r,c:t=o}=l,a=t.label;return{[a.main]:!0,[a.invalid]:s,[a.disabled]:r}}},f={wrapper:{main:p,direction:{start:`${e.base.prefix}-${e.labels.text}-${e.directionMap.start}`,end:`${e.base.prefix}-${e.labels.text}-${e.directionMap.end}`}}},m={wrapper:l=>{const{direction:s,c:r=f}=l,t=r.wrapper;return{[t.main]:!0,[t.direction[s]]:t.direction[s]}}},w={wrapper:{main:$,direction:{start:`${e.base.prefix}-${e.labels.text}-${e.directionMap.start}`,end:`${e.base.prefix}-${e.labels.text}-${e.directionMap.end}`,disabled:`${e.base.prefix}-${e.labels.text}-${e.states.disabled}`}}},C={wrapper:l=>{const{direction:s,disabled:r,c:t=w}=l,a=t.wrapper;return{[a.main]:!0,[a.direction[s]]:a.direction[s],[a.disabled]:r}}};exports.uError=m;exports.uFloatingLabel=u;exports.uHint=C;exports.uLabel=x;
|