@progress/kendo-react-common 8.3.0-develop.5 → 8.3.0-develop.6
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/index.d.mts +343 -14
- package/index.d.ts +343 -14
- package/index.js +1 -1
- package/index.mjs +151 -111
- package/package.json +1 -1
- package/unstyled/animations.js +1 -1
- package/unstyled/animations.mjs +1 -1
- package/unstyled/buttons.js +1 -1
- package/unstyled/buttons.mjs +66 -66
- package/unstyled/dropdowns.js +8 -0
- package/unstyled/dropdowns.mjs +233 -0
- package/unstyled/grid.js +1 -1
- package/unstyled/grid.mjs +70 -70
- package/unstyled/inputs.js +1 -1
- package/unstyled/inputs.mjs +191 -78
- package/unstyled/interfaces/common.js +8 -0
- package/unstyled/interfaces/common.mjs +17 -0
- package/unstyled/json-classes.js +1 -1
- package/unstyled/json-classes.mjs +109 -60
- package/unstyled/labels.js +8 -0
- package/unstyled/labels.mjs +99 -0
- package/unstyled/popup.js +1 -1
- package/unstyled/popup.mjs +1 -1
|
@@ -0,0 +1,99 @@
|
|
|
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 e, labels as t, states as n, themeColorMap as b, directionMap as o } from "./json-classes.mjs";
|
|
10
|
+
const x = `${e.prefix}-${t.label}`, $ = `${e.prefix}-${t.floatingLabel}`, f = `${e.prefix}-${t.error}`, m = `${e.prefix}-${t.hint}`, u = {
|
|
11
|
+
label: {
|
|
12
|
+
main: x,
|
|
13
|
+
empty: `${e.prefix}-${t.label}-${n.empty}`,
|
|
14
|
+
invalid: `${e.prefix}-${t.text}-${b.error}`,
|
|
15
|
+
disabled: `${e.prefix}-${t.text}-${n.disabled}`
|
|
16
|
+
}
|
|
17
|
+
}, v = {
|
|
18
|
+
label: (s) => {
|
|
19
|
+
const { empty: i, invalid: l, disabled: a, c: r = u } = s, d = r.label;
|
|
20
|
+
return {
|
|
21
|
+
[d.main]: !0,
|
|
22
|
+
[d.empty]: i,
|
|
23
|
+
[d.invalid]: l,
|
|
24
|
+
[d.disabled]: a
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
}, c = {
|
|
28
|
+
wrapper: {
|
|
29
|
+
main: `${$}-${t.container}`,
|
|
30
|
+
focused: `${e.prefix}-${n.focus}`,
|
|
31
|
+
empty: `${e.prefix}-${n.empty}`,
|
|
32
|
+
disabled: `${e.prefix}-${t.text}-${n.disabled}`,
|
|
33
|
+
isRtl: `${e.prefix}-${e.rtl}`
|
|
34
|
+
},
|
|
35
|
+
label: {
|
|
36
|
+
main: $,
|
|
37
|
+
invalid: `${e.prefix}-${t.text}-${b.error}`,
|
|
38
|
+
disabled: `${e.prefix}-${t.text}-${n.disabled}`
|
|
39
|
+
}
|
|
40
|
+
}, L = {
|
|
41
|
+
wrapper: (s) => {
|
|
42
|
+
const { focused: i, empty: l, disabled: a, isRtl: r, c: d = c } = s, p = d.wrapper;
|
|
43
|
+
return {
|
|
44
|
+
[p.main]: !0,
|
|
45
|
+
[p.focused]: i,
|
|
46
|
+
[p.empty]: l,
|
|
47
|
+
[p.disabled]: a,
|
|
48
|
+
[p.isRtl]: r
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
label: (s) => {
|
|
52
|
+
const { invalid: i, disabled: l, c: a = c } = s, r = a.label;
|
|
53
|
+
return {
|
|
54
|
+
[r.main]: !0,
|
|
55
|
+
[r.invalid]: i,
|
|
56
|
+
[r.disabled]: l
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
}, w = {
|
|
60
|
+
wrapper: {
|
|
61
|
+
main: f,
|
|
62
|
+
direction: {
|
|
63
|
+
start: `${e.prefix}-${t.text}-${o.start}`,
|
|
64
|
+
end: `${e.prefix}-${t.text}-${o.end}`
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}, g = {
|
|
68
|
+
wrapper: (s) => {
|
|
69
|
+
const { direction: i, c: l = w } = s, a = l.wrapper;
|
|
70
|
+
return {
|
|
71
|
+
[a.main]: !0,
|
|
72
|
+
[a.direction[i]]: a.direction[i]
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
}, C = {
|
|
76
|
+
wrapper: {
|
|
77
|
+
main: m,
|
|
78
|
+
direction: {
|
|
79
|
+
start: `${e.prefix}-${t.text}-${o.start}`,
|
|
80
|
+
end: `${e.prefix}-${t.text}-${o.end}`,
|
|
81
|
+
disabled: `${e.prefix}-${t.text}-${n.disabled}`
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}, h = {
|
|
85
|
+
wrapper: (s) => {
|
|
86
|
+
const { direction: i, disabled: l, c: a = C } = s, r = a.wrapper;
|
|
87
|
+
return {
|
|
88
|
+
[r.main]: !0,
|
|
89
|
+
[r.direction[i]]: r.direction[i],
|
|
90
|
+
[r.disabled]: l
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
export {
|
|
95
|
+
g as uError,
|
|
96
|
+
L as uFloatingLabel,
|
|
97
|
+
h as uHint,
|
|
98
|
+
v as uLabel
|
|
99
|
+
};
|
package/unstyled/popup.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 i=require("./json-classes.js"),a={animationContainer:`${i.base.prefix}-${i.
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./json-classes.js"),a={animationContainer:`${i.base.prefix}-${i.animationStyles.prefix}-${i.containers.container}`,animationContainerShown:`${i.base.prefix}-${i.animationStyles.prefix}-${i.containers.container}-${i.states.shown}`,animationChild:`${i.base.prefix}-${i.animationStyles.child}-${i.animationStyles.prefix}-${i.containers.container}`,popup:`${i.base.prefix}-${i.popup.prefix}`,slide:{up:{enter:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.up}-${i.animationStyles.enter}`,exit:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.up}-${i.animationStyles.exit}`},down:{enter:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.down}-${i.animationStyles.enter}`,exit:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.down}-${i.animationStyles.exit}`},left:{enter:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.left}-${i.animationStyles.enter}`,exit:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.left}-${i.animationStyles.exit}`},right:{enter:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.right}-${i.animationStyles.enter}`,exit:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.right}-${i.animationStyles.exit}`}},slideActive:{up:{enter:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.up}-${i.animationStyles.enter}-${i.animationStyles.active}`,exit:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.up}-${i.animationStyles.exit}-${i.animationStyles.active}`},down:{enter:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.down}-${i.animationStyles.enter}-${i.animationStyles.active}`,exit:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.down}-${i.animationStyles.exit}-${i.animationStyles.active}`},left:{enter:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.left}-${i.animationStyles.enter}-${i.animationStyles.active}`,exit:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.left}-${i.animationStyles.exit}-${i.animationStyles.active}`},right:{enter:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.right}-${i.animationStyles.enter}-${i.animationStyles.active}`,exit:`${i.base.prefix}-${i.animationStyles.slide}-${i.directionMap.right}-${i.animationStyles.exit}-${i.animationStyles.active}`}}},o={animationContainer:t=>{const{c:e=a}=t;return{[e.animationContainer]:!0}},animationContainerShown:t=>{const{c:e=a}=t;return{[e.animationContainerShown]:!0}},animationChild:t=>{const{c:e=a}=t;return{[e.animationChild]:!0}},popup:t=>{const{c:e=a}=t;return{[e.popup]:!0}},slide:t=>{const{direction:e,type:s,c:n=a}=t;return{[n.slide[e][s]]:n.slide[e]&&n.slide[e][s]}},slideActive:t=>{const{direction:e,type:s,c:n=a}=t;return{[n.slideActive[e][s]]:n.slideActive[e]&&n.slideActive[e][s]}}};exports.uPopup=o;
|
package/unstyled/popup.mjs
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
8
|
"use client";
|
|
9
|
-
import { base as i,
|
|
9
|
+
import { base as i, animationStyles as e, containers as s, states as a, popup as x, directionMap as t } from "./json-classes.mjs";
|
|
10
10
|
const p = {
|
|
11
11
|
animationContainer: `${i.prefix}-${e.prefix}-${s.container}`,
|
|
12
12
|
animationContainerShown: `${i.prefix}-${e.prefix}-${s.container}-${a.shown}`,
|