@progress/kendo-react-common 8.2.1-develop.5 → 8.3.0-develop.10
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,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/main.js
ADDED
|
@@ -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("react"),t=e.createContext(void 0),n=()=>e.useContext(t);exports.UnstyledContext=t;exports.useUnstyled=n;
|
|
@@ -0,0 +1,14 @@
|
|
|
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 t from "react";
|
|
10
|
+
const e = t.createContext(void 0), n = () => t.useContext(e);
|
|
11
|
+
export {
|
|
12
|
+
e as UnstyledContext,
|
|
13
|
+
n as useUnstyled
|
|
14
|
+
};
|
|
@@ -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 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;
|
|
@@ -0,0 +1,91 @@
|
|
|
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, animationStyles as e, containers as s, states as a, popup as x, directionMap as t } from "./json-classes.mjs";
|
|
10
|
+
const p = {
|
|
11
|
+
animationContainer: `${i.prefix}-${e.prefix}-${s.container}`,
|
|
12
|
+
animationContainerShown: `${i.prefix}-${e.prefix}-${s.container}-${a.shown}`,
|
|
13
|
+
animationChild: `${i.prefix}-${e.child}-${e.prefix}-${s.container}`,
|
|
14
|
+
popup: `${i.prefix}-${x.prefix}`,
|
|
15
|
+
slide: {
|
|
16
|
+
up: {
|
|
17
|
+
enter: `${i.prefix}-${e.slide}-${t.up}-${e.enter}`,
|
|
18
|
+
exit: `${i.prefix}-${e.slide}-${t.up}-${e.exit}`
|
|
19
|
+
},
|
|
20
|
+
down: {
|
|
21
|
+
enter: `${i.prefix}-${e.slide}-${t.down}-${e.enter}`,
|
|
22
|
+
exit: `${i.prefix}-${e.slide}-${t.down}-${e.exit}`
|
|
23
|
+
},
|
|
24
|
+
left: {
|
|
25
|
+
enter: `${i.prefix}-${e.slide}-${t.left}-${e.enter}`,
|
|
26
|
+
exit: `${i.prefix}-${e.slide}-${t.left}-${e.exit}`
|
|
27
|
+
},
|
|
28
|
+
right: {
|
|
29
|
+
enter: `${i.prefix}-${e.slide}-${t.right}-${e.enter}`,
|
|
30
|
+
exit: `${i.prefix}-${e.slide}-${t.right}-${e.exit}`
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
slideActive: {
|
|
34
|
+
up: {
|
|
35
|
+
enter: `${i.prefix}-${e.slide}-${t.up}-${e.enter}-${e.active}`,
|
|
36
|
+
exit: `${i.prefix}-${e.slide}-${t.up}-${e.exit}-${e.active}`
|
|
37
|
+
},
|
|
38
|
+
down: {
|
|
39
|
+
enter: `${i.prefix}-${e.slide}-${t.down}-${e.enter}-${e.active}`,
|
|
40
|
+
exit: `${i.prefix}-${e.slide}-${t.down}-${e.exit}-${e.active}`
|
|
41
|
+
},
|
|
42
|
+
left: {
|
|
43
|
+
enter: `${i.prefix}-${e.slide}-${t.left}-${e.enter}-${e.active}`,
|
|
44
|
+
exit: `${i.prefix}-${e.slide}-${t.left}-${e.exit}-${e.active}`
|
|
45
|
+
},
|
|
46
|
+
right: {
|
|
47
|
+
enter: `${i.prefix}-${e.slide}-${t.right}-${e.enter}-${e.active}`,
|
|
48
|
+
exit: `${i.prefix}-${e.slide}-${t.right}-${e.exit}-${e.active}`
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, l = {
|
|
52
|
+
animationContainer: (n) => {
|
|
53
|
+
const { c: $ = p } = n;
|
|
54
|
+
return {
|
|
55
|
+
[$.animationContainer]: !0
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
animationContainerShown: (n) => {
|
|
59
|
+
const { c: $ = p } = n;
|
|
60
|
+
return {
|
|
61
|
+
[$.animationContainerShown]: !0
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
animationChild: (n) => {
|
|
65
|
+
const { c: $ = p } = n;
|
|
66
|
+
return {
|
|
67
|
+
[$.animationChild]: !0
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
popup: (n) => {
|
|
71
|
+
const { c: $ = p } = n;
|
|
72
|
+
return {
|
|
73
|
+
[$.popup]: !0
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
slide: (n) => {
|
|
77
|
+
const { direction: $, type: o, c: r = p } = n;
|
|
78
|
+
return {
|
|
79
|
+
[r.slide[$][o]]: r.slide[$] && r.slide[$][o]
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
slideActive: (n) => {
|
|
83
|
+
const { direction: $, type: o, c: r = p } = n;
|
|
84
|
+
return {
|
|
85
|
+
[r.slideActive[$][o]]: r.slideActive[$] && r.slideActive[$][o]
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
l as uPopup
|
|
91
|
+
};
|