@progress/kendo-react-common 8.3.0-develop.9 → 8.4.0-develop.1
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/icons/SvgIcon.js +1 -1
- package/icons/SvgIcon.mjs +67 -61
- package/index.d.mts +15 -0
- package/index.d.ts +15 -0
- package/index.js +1 -1
- package/index.mjs +86 -84
- package/package.json +1 -1
- package/unstyled/dateinputs.js +1 -1
- package/unstyled/dateinputs.mjs +37 -37
- package/unstyled/dropdowns.js +1 -1
- package/unstyled/dropdowns.mjs +277 -145
- package/unstyled/form.js +1 -1
- package/unstyled/form.mjs +21 -20
- package/unstyled/icons.js +1 -1
- package/unstyled/icons.mjs +51 -34
- package/unstyled/inputs.js +1 -1
- package/unstyled/inputs.mjs +146 -180
- package/unstyled/interfaces/common.js +1 -1
- package/unstyled/interfaces/common.mjs +1 -1
- package/unstyled/json-classes.js +1 -1
- package/unstyled/json-classes.mjs +27 -22
- package/unstyled/labels.js +1 -1
- package/unstyled/labels.mjs +67 -59
package/unstyled/icons.mjs
CHANGED
|
@@ -7,47 +7,64 @@
|
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
9
|
import { base as e, icon as r, themeColorMap as i, sizeMap as p } from "./json-classes.mjs";
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
10
|
+
const n = {
|
|
11
|
+
wrapper: {
|
|
12
|
+
main: `${e.prefix}-${r.prefix}`,
|
|
13
|
+
svgPrefix: `${e.prefix}-${r.svg}-${r.prefix}`,
|
|
14
|
+
namePrefix: `${e.prefix}-${r.svg}-${r.i}-`,
|
|
15
|
+
flipH: `${e.prefix}-${r.flipH}`,
|
|
16
|
+
flipV: `${e.prefix}-${r.flipV}`,
|
|
17
|
+
themeColor: {
|
|
18
|
+
inherit: `${e.prefix}-${r.color}-${i.inherit}`,
|
|
19
|
+
primary: `${e.prefix}-${r.color}-${i.primary}`,
|
|
20
|
+
secondary: `${e.prefix}-${r.color}-${i.secondary}`,
|
|
21
|
+
tertiary: `${e.prefix}-${r.color}-${i.tertiary}`,
|
|
22
|
+
info: `${e.prefix}-${r.color}-${i.info}`,
|
|
23
|
+
success: `${e.prefix}-${r.color}-${i.success}`,
|
|
24
|
+
warning: `${e.prefix}-${r.color}-${i.warning}`,
|
|
25
|
+
error: `${e.prefix}-${r.color}-${i.error}`,
|
|
26
|
+
dark: `${e.prefix}-${r.color}-${i.dark}`,
|
|
27
|
+
light: `${e.prefix}-${r.color}-${i.light}`,
|
|
28
|
+
inverse: `${e.prefix}-${r.color}-${i.inverse}`
|
|
29
|
+
},
|
|
30
|
+
size: {
|
|
31
|
+
default: "",
|
|
32
|
+
xsmall: `${e.prefix}-${r.prefix}-${p.xsmall}`,
|
|
33
|
+
small: `${e.prefix}-${r.prefix}-${p.small}`,
|
|
34
|
+
medium: `${e.prefix}-${r.prefix}-${p.medium}`,
|
|
35
|
+
large: `${e.prefix}-${r.prefix}-${p.large}`,
|
|
36
|
+
xlarge: `${e.prefix}-${r.prefix}-${p.xlarge}`,
|
|
37
|
+
xxlarge: `${e.prefix}-${r.prefix}-${p.xxlarge}`,
|
|
38
|
+
xxxlarge: `${e.prefix}-${r.prefix}-${p.xxxlarge}`
|
|
39
|
+
}
|
|
27
40
|
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
large: `${e.prefix}-${r.prefix}-${p.large}`,
|
|
33
|
-
xlarge: `${e.prefix}-${r.prefix}-${p.xlarge}`,
|
|
34
|
-
xxlarge: `${e.prefix}-${r.prefix}-${p.xxlarge}`,
|
|
35
|
-
xxxlarge: `${e.prefix}-${r.prefix}-${p.xxxlarge}`
|
|
41
|
+
svg: {
|
|
42
|
+
main: "",
|
|
43
|
+
flipH: "",
|
|
44
|
+
flipV: ""
|
|
36
45
|
}
|
|
37
|
-
},
|
|
38
|
-
wrapper: (
|
|
39
|
-
const { iconNameProp: x, themeColor:
|
|
46
|
+
}, m = {
|
|
47
|
+
wrapper: (o) => {
|
|
48
|
+
const { iconNameProp: x, themeColor: l, flipH: s, flipV: f, size: a, c = n } = o, $ = c.wrapper;
|
|
40
49
|
return {
|
|
41
|
-
[$.
|
|
50
|
+
[$.main]: !0,
|
|
42
51
|
[$.svgPrefix]: !0,
|
|
43
|
-
[`${
|
|
44
|
-
[$.themeColor[
|
|
52
|
+
[`${$.namePrefix || ""}${x}`]: x,
|
|
53
|
+
[$.themeColor[l]]: l,
|
|
45
54
|
[$.flipH]: s,
|
|
46
|
-
[$.flipV]:
|
|
47
|
-
[$.size[
|
|
55
|
+
[$.flipV]: f,
|
|
56
|
+
[$.size[a]]: $.size[a]
|
|
57
|
+
};
|
|
58
|
+
},
|
|
59
|
+
svg: (o) => {
|
|
60
|
+
const { flipH: x, flipV: l, c: s = n } = o, f = s.svg;
|
|
61
|
+
return {
|
|
62
|
+
[f.main]: !0,
|
|
63
|
+
[f.flipH]: x,
|
|
64
|
+
[f.flipV]: l
|
|
48
65
|
};
|
|
49
66
|
}
|
|
50
67
|
};
|
|
51
68
|
export {
|
|
52
|
-
|
|
69
|
+
m as uSvgIcon
|
|
53
70
|
};
|
package/unstyled/inputs.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./json-classes.js"),
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("./interfaces/common.js"),e=require("./json-classes.js"),o=`${e.base.prefix}-${e.inputs.input}`,C=`${e.base.prefix}-${e.inputs.maskedtextbox}`,u=`${e.base.prefix}-${e.inputs.radio}`,g=`${e.base.prefix}-${e.inputs.textbox}`,f=`${e.base.prefix}-${e.inputs.input}-${e.inputs.prefix}`,x=`${e.base.prefix}-${e.inputs.input}-${e.inputs.suffix}`,b={input:{radio:u,size:{prefix:`${u}-`,small:`${u}-${e.sizeMap.small}`,medium:`${u}-${e.sizeMap.medium}`,large:`${u}-${e.sizeMap.large}`},invalid:`${e.base.prefix}-${e.states.invalid}`,checked:`${e.base.prefix}-${e.states.checked}`},wrap:`${u}-${e.containers.wrap}`,label:`${u}-${e.elements.label}`},h={input:n=>{var l;const{size:t,invalid:r,checked:a,c:d=b}=n,s=d.input;return{[s==null?void 0:s.radio]:!0,[s==null?void 0:s.size[t]]:s==null?void 0:s.size[t],[`${(l=s==null?void 0:s.size)==null?void 0:l.prefix}${t}`]:t&&!(s!=null&&s.size[t]),[s==null?void 0:s.invalid]:r,[s==null?void 0:s.checked]:a}},label:n=>{const{c:t=b}=n;return{[t==null?void 0:t.label]:!0}},wrap:n=>{const{c:t=b}=n;return{[t==null?void 0:t.wrap]:!0}}},m={ul:{main:`${u}-${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:`${u}-${e.containers.list}-${e.containers.item}`,disabled:`${e.base.prefix}-${e.states.disabled}`}},R={ul:n=>{const{horizontal:t,vertical:r,c:a=m}=n,d=a.ul;return{[d==null?void 0:d.main]:!0,[d==null?void 0:d.horizontal]:t,[d==null?void 0:d.vertical]:r}},item:n=>{const{disabled:t,c:r=m}=n,a=r.item;return{[a==null?void 0:a.main]:!0,[a==null?void 0:a.disabled]:t}}},p={wrapper:{main:C,input:o,size:{small:`${o}-${e.sizeMap.small}`,medium:`${o}-${e.sizeMap.medium}`,large:`${o}-${e.sizeMap.large}`},fillMode:{solid:`${o}-${e.fillModeMap.solid}`,outline:`${o}-${e.fillModeMap.outline}`,flat:`${o}-${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:`${o}-${e.inputs.inner}`},q={wrapper:n=>{const{invalid:t,disabled:r,size:a,fillMode:d,rounded:s,c:l=p}=n,$=l.wrapper;return{[$.main]:!0,[$.input]:!0,[$.size[a]]:$.size[a],[`${o}-${a}`]:!$.size[a],[$.fillMode[d]]:$.fillMode[d],[$.rounded[s]]:$.rounded[s],[`${e.base.prefix}-${e.base.rounded}-${s}`]:s&&!$.rounded[s],[$.disabled]:r,[$.invalid]:t}},input:n=>{const{c:t=p}=n;return{[t.input]:!0}}},c={wrapper:{main:g,input:o,size:{small:`${o}-${e.sizeMap.small}`,medium:`${o}-${e.sizeMap.medium}`,large:`${o}-${e.sizeMap.large}`},fillMode:{solid:`${o}-${e.fillModeMap.solid}`,outline:`${o}-${e.fillModeMap.outline}`,flat:`${o}-${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:`${o}-${e.inputs.inner}`,prefix:{main:f,orientation:{horizontal:`${f}-${e.orientationMap.horizontal}`,vertical:`${f}-${e.orientationMap.vertical}`}},suffix:{main:x,orientation:{horizontal:`${x}-${e.orientationMap.horizontal}`,vertical:`${x}-${e.orientationMap.vertical}`}}},k={wrapper:n=>{const{disabled:t,invalid:r,focused:a,required:d,size:s,fillMode:l,rounded:$,isRtl:z,c:v=c}=n,i=v.wrapper;return{[i==null?void 0:i.main]:!0,[i==null?void 0:i.input]:!0,[i==null?void 0:i.size[s]]:i==null?void 0:i.size[s],[`${o}-${s}`]:s&&!(i!=null&&i.size[s]),[i==null?void 0:i.fillMode[l]]:i==null?void 0:i.fillMode[l],[i==null?void 0:i.rounded[$]]:i==null?void 0:i.rounded[$],[`${e.base.prefix}-${e.base.rounded}-${$}`]:$&&!(i!=null&&i.rounded[$]),[i==null?void 0:i.disabled]:t,[i==null?void 0:i.focused]:a,[i==null?void 0:i.required]:d,[i==null?void 0:i.invalid]:r,[i==null?void 0:i.isRtl]:z}},input:n=>{const{c:t=c}=n;return{[t.input]:!0}},prefix:n=>{const{orientation:t,c:r=c}=n,a=r.prefix;return{[a.main]:!0,[a.orientation[t]]:a.orientation[t]}},suffix:n=>{const{orientation:t,c:r=c}=n,a=r.suffix;return{[a==null?void 0:a.main]:!0,[a==null?void 0:a.orientation[t]]:a==null?void 0:a.orientation[t]}}},M={input:{main:`${o} ${o}-${e.sizeMap.medium} ${e.base.prefix}-${e.base.rounded}-${e.roundedMap.medium} ${o}-${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}`},clearButton:`${e.base.prefix}-${e.base.clear}-${e.base.value}`},T={input:n=>{const{disabled:t,invalid:r,required:a,isRtl:d,c:s=M}=n,l=s.input;return{[l==null?void 0:l.main]:!0,[l==null?void 0:l.disabled]:t,[l==null?void 0:l.required]:a,[l==null?void 0:l.invalid]:r,[l==null?void 0:l.isRtl]:d}},clearButton:B.getClassByName(M,"clearButton")};exports.radioButtonClasses=b;exports.radioGroupClasses=m;exports.uInput=T;exports.uMaskedTextBox=q;exports.uRadioButton=h;exports.uRadioGroup=R;exports.uTextBox=k;
|
package/unstyled/inputs.mjs
CHANGED
|
@@ -6,257 +6,223 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import {
|
|
10
|
-
|
|
9
|
+
import { getClassByName as T } from "./interfaces/common.mjs";
|
|
10
|
+
import { base as i, inputs as f, sizeMap as c, states as u, containers as z, elements as G, fillModeMap as x, roundedMap as v, orientationMap as b } from "./json-classes.mjs";
|
|
11
|
+
const d = `${i.prefix}-${f.input}`, y = `${i.prefix}-${f.maskedtextbox}`, m = `${i.prefix}-${f.radio}`, N = `${i.prefix}-${f.textbox}`, h = `${i.prefix}-${f.input}-${f.prefix}`, p = `${i.prefix}-${f.input}-${f.suffix}`, C = {
|
|
11
12
|
input: {
|
|
12
|
-
radio:
|
|
13
|
+
radio: m,
|
|
13
14
|
size: {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
prefix: `${m}-`,
|
|
16
|
+
small: `${m}-${c.small}`,
|
|
17
|
+
medium: `${m}-${c.medium}`,
|
|
18
|
+
large: `${m}-${c.large}`
|
|
17
19
|
},
|
|
18
|
-
invalid: `${i.prefix}-${
|
|
19
|
-
checked: `${i.prefix}-${
|
|
20
|
+
invalid: `${i.prefix}-${u.invalid}`,
|
|
21
|
+
checked: `${i.prefix}-${u.checked}`
|
|
20
22
|
},
|
|
21
|
-
wrap: `${
|
|
22
|
-
label: `${
|
|
23
|
-
},
|
|
24
|
-
input: (
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
invalid: d,
|
|
28
|
-
checked: t,
|
|
29
|
-
c: o = w
|
|
30
|
-
} = r, l = o.input;
|
|
23
|
+
wrap: `${m}-${z.wrap}`,
|
|
24
|
+
label: `${m}-${G.label}`
|
|
25
|
+
}, j = {
|
|
26
|
+
input: ($) => {
|
|
27
|
+
var s;
|
|
28
|
+
const { size: l, invalid: a, checked: n, c: o = C } = $, t = o.input;
|
|
31
29
|
return {
|
|
32
|
-
[
|
|
33
|
-
[
|
|
34
|
-
[`${
|
|
35
|
-
[
|
|
36
|
-
[
|
|
30
|
+
[t == null ? void 0 : t.radio]: !0,
|
|
31
|
+
[t == null ? void 0 : t.size[l]]: t == null ? void 0 : t.size[l],
|
|
32
|
+
[`${(s = t == null ? void 0 : t.size) == null ? void 0 : s.prefix}${l}`]: l && !(t != null && t.size[l]),
|
|
33
|
+
[t == null ? void 0 : t.invalid]: a,
|
|
34
|
+
[t == null ? void 0 : t.checked]: n
|
|
37
35
|
};
|
|
38
36
|
},
|
|
39
|
-
label: (
|
|
40
|
-
const {
|
|
41
|
-
c: e = w
|
|
42
|
-
} = r;
|
|
37
|
+
label: ($) => {
|
|
38
|
+
const { c: l = C } = $;
|
|
43
39
|
return {
|
|
44
|
-
[
|
|
40
|
+
[l == null ? void 0 : l.label]: !0
|
|
45
41
|
};
|
|
46
42
|
},
|
|
47
|
-
wrap: (
|
|
48
|
-
const {
|
|
49
|
-
c: e = w
|
|
50
|
-
} = r;
|
|
43
|
+
wrap: ($) => {
|
|
44
|
+
const { c: l = C } = $;
|
|
51
45
|
return {
|
|
52
|
-
[
|
|
46
|
+
[l == null ? void 0 : l.wrap]: !0
|
|
53
47
|
};
|
|
54
48
|
}
|
|
55
|
-
},
|
|
49
|
+
}, g = {
|
|
56
50
|
ul: {
|
|
57
|
-
main: `${
|
|
58
|
-
horizontal: `${i.prefix}-${
|
|
59
|
-
vertical: `${i.prefix}-${
|
|
51
|
+
main: `${m}-${z.list}`,
|
|
52
|
+
horizontal: `${i.prefix}-${z.list}-${u.horizontal}`,
|
|
53
|
+
vertical: `${i.prefix}-${z.list}-${u.vertical}`
|
|
60
54
|
},
|
|
61
55
|
item: {
|
|
62
|
-
main: `${
|
|
63
|
-
disabled: `${i.prefix}-${
|
|
56
|
+
main: `${m}-${z.list}-${z.item}`,
|
|
57
|
+
disabled: `${i.prefix}-${u.disabled}`
|
|
64
58
|
}
|
|
65
|
-
},
|
|
66
|
-
ul: (
|
|
67
|
-
const {
|
|
68
|
-
horizontal: e,
|
|
69
|
-
vertical: d,
|
|
70
|
-
c: t = C
|
|
71
|
-
} = r, o = t.ul;
|
|
59
|
+
}, A = {
|
|
60
|
+
ul: ($) => {
|
|
61
|
+
const { horizontal: l, vertical: a, c: n = g } = $, o = n.ul;
|
|
72
62
|
return {
|
|
73
|
-
[o.main]: !0,
|
|
74
|
-
[o.horizontal]:
|
|
75
|
-
[o.vertical]:
|
|
63
|
+
[o == null ? void 0 : o.main]: !0,
|
|
64
|
+
[o == null ? void 0 : o.horizontal]: l,
|
|
65
|
+
[o == null ? void 0 : o.vertical]: a
|
|
76
66
|
};
|
|
77
67
|
},
|
|
78
|
-
item: (
|
|
79
|
-
const {
|
|
80
|
-
disabled: e,
|
|
81
|
-
c: d = C
|
|
82
|
-
} = r, t = d.item;
|
|
68
|
+
item: ($) => {
|
|
69
|
+
const { disabled: l, c: a = g } = $, n = a.item;
|
|
83
70
|
return {
|
|
84
|
-
[
|
|
85
|
-
[
|
|
71
|
+
[n == null ? void 0 : n.main]: !0,
|
|
72
|
+
[n == null ? void 0 : n.disabled]: l
|
|
86
73
|
};
|
|
87
74
|
}
|
|
88
|
-
},
|
|
75
|
+
}, B = {
|
|
89
76
|
wrapper: {
|
|
90
|
-
main:
|
|
91
|
-
input:
|
|
77
|
+
main: y,
|
|
78
|
+
input: d,
|
|
92
79
|
size: {
|
|
93
|
-
small: `${
|
|
94
|
-
medium: `${
|
|
95
|
-
large: `${
|
|
80
|
+
small: `${d}-${c.small}`,
|
|
81
|
+
medium: `${d}-${c.medium}`,
|
|
82
|
+
large: `${d}-${c.large}`
|
|
96
83
|
},
|
|
97
84
|
fillMode: {
|
|
98
|
-
solid: `${
|
|
99
|
-
outline: `${
|
|
100
|
-
flat: `${
|
|
85
|
+
solid: `${d}-${x.solid}`,
|
|
86
|
+
outline: `${d}-${x.outline}`,
|
|
87
|
+
flat: `${d}-${x.flat}`
|
|
101
88
|
},
|
|
102
89
|
rounded: {
|
|
103
|
-
small: `${i.prefix}-${i.rounded}-${
|
|
104
|
-
medium: `${i.prefix}-${i.rounded}-${
|
|
105
|
-
large: `${i.prefix}-${i.rounded}-${
|
|
90
|
+
small: `${i.prefix}-${i.rounded}-${v.small}`,
|
|
91
|
+
medium: `${i.prefix}-${i.rounded}-${v.medium}`,
|
|
92
|
+
large: `${i.prefix}-${i.rounded}-${v.large}`
|
|
106
93
|
},
|
|
107
|
-
disabled: `${i.prefix}-${
|
|
108
|
-
invalid: `${i.prefix}-${
|
|
94
|
+
disabled: `${i.prefix}-${u.disabled}`,
|
|
95
|
+
invalid: `${i.prefix}-${u.invalid}`,
|
|
109
96
|
isRtl: `${i.prefix}-${i.rtl}`
|
|
110
97
|
},
|
|
111
|
-
input: `${
|
|
112
|
-
},
|
|
113
|
-
wrapper: (
|
|
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;
|
|
98
|
+
input: `${d}-${f.inner}`
|
|
99
|
+
}, D = {
|
|
100
|
+
wrapper: ($) => {
|
|
101
|
+
const { invalid: l, disabled: a, size: n, fillMode: o, rounded: t, c: s = B } = $, r = s.wrapper;
|
|
122
102
|
return {
|
|
123
|
-
[
|
|
124
|
-
[
|
|
125
|
-
[
|
|
126
|
-
[`${
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[`${i.prefix}-${i.rounded}-${
|
|
130
|
-
[
|
|
131
|
-
[
|
|
103
|
+
[r.main]: !0,
|
|
104
|
+
[r.input]: !0,
|
|
105
|
+
[r.size[n]]: r.size[n],
|
|
106
|
+
[`${d}-${n}`]: !r.size[n],
|
|
107
|
+
[r.fillMode[o]]: r.fillMode[o],
|
|
108
|
+
[r.rounded[t]]: r.rounded[t],
|
|
109
|
+
[`${i.prefix}-${i.rounded}-${t}`]: t && !r.rounded[t],
|
|
110
|
+
[r.disabled]: a,
|
|
111
|
+
[r.invalid]: l
|
|
132
112
|
};
|
|
133
113
|
},
|
|
134
|
-
input: (
|
|
135
|
-
const { c:
|
|
114
|
+
input: ($) => {
|
|
115
|
+
const { c: l = B } = $;
|
|
136
116
|
return {
|
|
137
|
-
[
|
|
117
|
+
[l.input]: !0
|
|
138
118
|
};
|
|
139
119
|
}
|
|
140
|
-
},
|
|
120
|
+
}, M = {
|
|
141
121
|
wrapper: {
|
|
142
|
-
main:
|
|
143
|
-
input:
|
|
122
|
+
main: N,
|
|
123
|
+
input: d,
|
|
144
124
|
size: {
|
|
145
|
-
small: `${
|
|
146
|
-
medium: `${
|
|
147
|
-
large: `${
|
|
125
|
+
small: `${d}-${c.small}`,
|
|
126
|
+
medium: `${d}-${c.medium}`,
|
|
127
|
+
large: `${d}-${c.large}`
|
|
148
128
|
},
|
|
149
129
|
fillMode: {
|
|
150
|
-
solid: `${
|
|
151
|
-
outline: `${
|
|
152
|
-
flat: `${
|
|
130
|
+
solid: `${d}-${x.solid}`,
|
|
131
|
+
outline: `${d}-${x.outline}`,
|
|
132
|
+
flat: `${d}-${x.flat}`
|
|
153
133
|
},
|
|
154
134
|
rounded: {
|
|
155
|
-
small: `${i.prefix}-${i.rounded}-${
|
|
156
|
-
medium: `${i.prefix}-${i.rounded}-${
|
|
157
|
-
large: `${i.prefix}-${i.rounded}-${
|
|
135
|
+
small: `${i.prefix}-${i.rounded}-${v.small}`,
|
|
136
|
+
medium: `${i.prefix}-${i.rounded}-${v.medium}`,
|
|
137
|
+
large: `${i.prefix}-${i.rounded}-${v.large}`
|
|
158
138
|
},
|
|
159
|
-
disabled: `${i.prefix}-${
|
|
160
|
-
focused: `${i.prefix}-${
|
|
161
|
-
required: `${i.prefix}-${
|
|
162
|
-
invalid: `${i.prefix}-${
|
|
139
|
+
disabled: `${i.prefix}-${u.disabled}`,
|
|
140
|
+
focused: `${i.prefix}-${u.focus}`,
|
|
141
|
+
required: `${i.prefix}-${u.required}`,
|
|
142
|
+
invalid: `${i.prefix}-${u.invalid}`,
|
|
163
143
|
isRtl: `${i.prefix}-${i.rtl}`
|
|
164
144
|
},
|
|
165
|
-
input: `${
|
|
145
|
+
input: `${d}-${f.inner}`,
|
|
166
146
|
prefix: {
|
|
167
|
-
main:
|
|
147
|
+
main: h,
|
|
168
148
|
orientation: {
|
|
169
|
-
horizontal: `${
|
|
170
|
-
vertical: `${
|
|
149
|
+
horizontal: `${h}-${b.horizontal}`,
|
|
150
|
+
vertical: `${h}-${b.vertical}`
|
|
171
151
|
}
|
|
172
152
|
},
|
|
173
153
|
suffix: {
|
|
174
|
-
main:
|
|
154
|
+
main: p,
|
|
175
155
|
orientation: {
|
|
176
|
-
horizontal: `${
|
|
177
|
-
vertical: `${
|
|
156
|
+
horizontal: `${p}-${b.horizontal}`,
|
|
157
|
+
vertical: `${p}-${b.vertical}`
|
|
178
158
|
}
|
|
179
159
|
}
|
|
180
|
-
},
|
|
181
|
-
wrapper: (
|
|
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;
|
|
160
|
+
}, E = {
|
|
161
|
+
wrapper: ($) => {
|
|
162
|
+
const { disabled: l, invalid: a, focused: n, required: o, size: t, fillMode: s, rounded: r, isRtl: k, c: q = M } = $, e = q.wrapper;
|
|
193
163
|
return {
|
|
194
|
-
[
|
|
195
|
-
[
|
|
196
|
-
[
|
|
197
|
-
[`${
|
|
198
|
-
[
|
|
199
|
-
[
|
|
200
|
-
[`${i.prefix}-${i.rounded}-${
|
|
201
|
-
[
|
|
202
|
-
[
|
|
203
|
-
[
|
|
204
|
-
[
|
|
205
|
-
[
|
|
164
|
+
[e == null ? void 0 : e.main]: !0,
|
|
165
|
+
[e == null ? void 0 : e.input]: !0,
|
|
166
|
+
[e == null ? void 0 : e.size[t]]: e == null ? void 0 : e.size[t],
|
|
167
|
+
[`${d}-${t}`]: t && !(e != null && e.size[t]),
|
|
168
|
+
[e == null ? void 0 : e.fillMode[s]]: e == null ? void 0 : e.fillMode[s],
|
|
169
|
+
[e == null ? void 0 : e.rounded[r]]: e == null ? void 0 : e.rounded[r],
|
|
170
|
+
[`${i.prefix}-${i.rounded}-${r}`]: r && !(e != null && e.rounded[r]),
|
|
171
|
+
[e == null ? void 0 : e.disabled]: l,
|
|
172
|
+
[e == null ? void 0 : e.focused]: n,
|
|
173
|
+
[e == null ? void 0 : e.required]: o,
|
|
174
|
+
[e == null ? void 0 : e.invalid]: a,
|
|
175
|
+
[e == null ? void 0 : e.isRtl]: k
|
|
206
176
|
};
|
|
207
177
|
},
|
|
208
|
-
input: (
|
|
209
|
-
const { c:
|
|
178
|
+
input: ($) => {
|
|
179
|
+
const { c: l = M } = $;
|
|
210
180
|
return {
|
|
211
|
-
[
|
|
181
|
+
[l.input]: !0
|
|
212
182
|
};
|
|
213
183
|
},
|
|
214
|
-
prefix: (
|
|
215
|
-
const { orientation:
|
|
184
|
+
prefix: ($) => {
|
|
185
|
+
const { orientation: l, c: a = M } = $, n = a.prefix;
|
|
216
186
|
return {
|
|
217
|
-
[
|
|
218
|
-
[
|
|
187
|
+
[n.main]: !0,
|
|
188
|
+
[n.orientation[l]]: n.orientation[l]
|
|
219
189
|
};
|
|
220
190
|
},
|
|
221
|
-
suffix: (
|
|
222
|
-
const { orientation:
|
|
191
|
+
suffix: ($) => {
|
|
192
|
+
const { orientation: l, c: a = M } = $, n = a.suffix;
|
|
223
193
|
return {
|
|
224
|
-
[
|
|
225
|
-
[
|
|
194
|
+
[n == null ? void 0 : n.main]: !0,
|
|
195
|
+
[n == null ? void 0 : n.orientation[l]]: n == null ? void 0 : n.orientation[l]
|
|
226
196
|
};
|
|
227
197
|
}
|
|
228
|
-
},
|
|
198
|
+
}, R = {
|
|
229
199
|
input: {
|
|
230
|
-
main: `${
|
|
231
|
-
disabled: `${i.prefix}-${
|
|
232
|
-
required: `${i.prefix}-${
|
|
233
|
-
invalid: `${i.prefix}-${
|
|
200
|
+
main: `${d} ${d}-${c.medium} ${i.prefix}-${i.rounded}-${v.medium} ${d}-${x.solid}`,
|
|
201
|
+
disabled: `${i.prefix}-${u.disabled}`,
|
|
202
|
+
required: `${i.prefix}-${u.required}`,
|
|
203
|
+
invalid: `${i.prefix}-${u.invalid}`,
|
|
234
204
|
isRtl: `${i.prefix}-${i.rtl}`
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
invalid: d,
|
|
241
|
-
required: t,
|
|
242
|
-
isRtl: o,
|
|
243
|
-
c: l = G
|
|
244
|
-
} = r, u = l.input;
|
|
205
|
+
},
|
|
206
|
+
clearButton: `${i.prefix}-${i.clear}-${i.value}`
|
|
207
|
+
}, F = {
|
|
208
|
+
input: ($) => {
|
|
209
|
+
const { disabled: l, invalid: a, required: n, isRtl: o, c: t = R } = $, s = t.input;
|
|
245
210
|
return {
|
|
246
|
-
[
|
|
247
|
-
[
|
|
248
|
-
[
|
|
249
|
-
[
|
|
250
|
-
[
|
|
211
|
+
[s == null ? void 0 : s.main]: !0,
|
|
212
|
+
[s == null ? void 0 : s.disabled]: l,
|
|
213
|
+
[s == null ? void 0 : s.required]: n,
|
|
214
|
+
[s == null ? void 0 : s.invalid]: a,
|
|
215
|
+
[s == null ? void 0 : s.isRtl]: o
|
|
251
216
|
};
|
|
252
|
-
}
|
|
217
|
+
},
|
|
218
|
+
clearButton: T(R, "clearButton")
|
|
253
219
|
};
|
|
254
220
|
export {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
221
|
+
C as radioButtonClasses,
|
|
222
|
+
g as radioGroupClasses,
|
|
223
|
+
F as uInput,
|
|
224
|
+
D as uMaskedTextBox,
|
|
225
|
+
j as uRadioButton,
|
|
226
|
+
A as uRadioGroup,
|
|
227
|
+
E as uTextBox
|
|
262
228
|
};
|
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
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;
|
|
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;
|
package/unstyled/json-classes.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
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"},
|
|
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",data:"data",nodata:"nodata",scroller:"scroller"},n={center:"center",hbox:"hbox",vstack:"vstack",overflow:"overflow"},t={actionsheet:"actionsheet",calendar:"calendar",buttongroup:"buttongroup",dateinput:"dateinput",datetime:"datetime",datetimepicker:"datetimepicker",dropdownlist:"dropdownlist",combobox:"combobox",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"},m={height:"height",width:"width"},f={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"},o={table:"table",text:"text",button:"button",tbody:"tbody",thead:"thead",tr:"tr",th:"th",td:"td",header:"header",footer:"footer",icon:"icon",title:"title",subtitle:"subtitle",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"},a={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}-${o.button}`,L=`${e.prefix}-${t.menu}`,D=`${e.prefix}-${r.picker}`,R=`${e.prefix}-${t.dropdownlist}`,S=`${e.prefix}-${t.combobox}`,U=`${e.prefix}-${a.prefix}`,j={base:e,actions:x,animation:b,sizeMap:l,components:t,cssUtils:n,directionMap:u,fillModeMap:s,themeColorMap:c,roundedMap:d,orientationMap:p,elements:o,states:h,dimensions:m,containers:r,cursor:f,inputs:i,dateInputs:g,labels:w,forms:k,popup:y,icon:v,grid:a};exports.actions=x;exports.animationStyles=b;exports.base=e;exports.buttonPrefix=I;exports.calendarPrefix=$;exports.comboBoxPrefix=S;exports.components=t;exports.containers=r;exports.cssUtils=n;exports.cursor=f;exports.dateInputs=g;exports.ddbPrefix=L;exports.dimensions=m;exports.directionMap=u;exports.dropDownListPrefix=R;exports.elements=o;exports.fillModeMap=s;exports.forms=k;exports.grid=a;exports.gridPrefix=U;exports.icon=v;exports.inputPrefix=P;exports.inputs=i;exports.jsonTheme=j;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;
|