@ktnpm_devops/react-component 0.2.1 → 0.3.0
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/index.cjs +34 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -33
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +15 -4
- package/dist/index10.cjs.map +1 -1
- package/dist/index10.js +15 -4
- package/dist/index10.js.map +1 -1
- package/dist/index11.cjs +4 -16
- package/dist/index11.cjs.map +1 -1
- package/dist/index11.js +4 -16
- package/dist/index11.js.map +1 -1
- package/dist/index12.cjs +16 -10
- package/dist/index12.cjs.map +1 -1
- package/dist/index12.js +16 -10
- package/dist/index12.js.map +1 -1
- package/dist/index13.cjs +10 -100
- package/dist/index13.cjs.map +1 -1
- package/dist/index13.js +11 -101
- package/dist/index13.js.map +1 -1
- package/dist/index14.cjs +100 -20
- package/dist/index14.cjs.map +1 -1
- package/dist/index14.js +101 -21
- package/dist/index14.js.map +1 -1
- package/dist/index15.cjs +20 -90
- package/dist/index15.cjs.map +1 -1
- package/dist/index15.js +21 -91
- package/dist/index15.js.map +1 -1
- package/dist/index16.cjs +85 -153
- package/dist/index16.cjs.map +1 -1
- package/dist/index16.js +87 -155
- package/dist/index16.js.map +1 -1
- package/dist/index17.cjs +150 -128
- package/dist/index17.cjs.map +1 -1
- package/dist/index17.js +150 -128
- package/dist/index17.js.map +1 -1
- package/dist/index18.cjs +121 -106
- package/dist/index18.cjs.map +1 -1
- package/dist/index18.js +122 -107
- package/dist/index18.js.map +1 -1
- package/dist/index19.cjs +121 -17
- package/dist/index19.cjs.map +1 -1
- package/dist/index19.js +121 -17
- package/dist/index19.js.map +1 -1
- package/dist/index20.cjs +17 -8
- package/dist/index20.cjs.map +1 -1
- package/dist/index20.js +18 -9
- package/dist/index20.js.map +1 -1
- package/dist/index21.cjs +7 -130
- package/dist/index21.cjs.map +1 -1
- package/dist/index21.js +9 -132
- package/dist/index21.js.map +1 -1
- package/dist/index22.cjs +128 -35
- package/dist/index22.cjs.map +1 -1
- package/dist/index22.js +129 -36
- package/dist/index22.js.map +1 -1
- package/dist/index23.cjs +36 -222
- package/dist/index23.cjs.map +1 -1
- package/dist/index23.js +37 -223
- package/dist/index23.js.map +1 -1
- package/dist/index24.cjs +218 -28
- package/dist/index24.cjs.map +1 -1
- package/dist/index24.js +220 -30
- package/dist/index24.js.map +1 -1
- package/dist/index25.cjs +29 -73
- package/dist/index25.cjs.map +1 -1
- package/dist/index25.js +31 -75
- package/dist/index25.js.map +1 -1
- package/dist/index26.cjs +69 -144
- package/dist/index26.cjs.map +1 -1
- package/dist/index26.js +70 -145
- package/dist/index26.js.map +1 -1
- package/dist/index27.cjs +152 -7
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +154 -9
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +8 -17
- package/dist/index28.cjs.map +1 -1
- package/dist/index28.js +9 -18
- package/dist/index28.js.map +1 -1
- package/dist/index29.cjs +15 -75
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +16 -76
- package/dist/index29.js.map +1 -1
- package/dist/index3.cjs +76 -16
- package/dist/index3.cjs.map +1 -1
- package/dist/index3.js +76 -16
- package/dist/index3.js.map +1 -1
- package/dist/index30.cjs +68 -134
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +70 -136
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +136 -98
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +137 -99
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +105 -6
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +106 -7
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +6 -216
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +7 -217
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +215 -7
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +217 -9
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +10 -16
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +9 -15
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +15 -6
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +15 -6
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +4 -1
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +4 -1
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +11 -2
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +11 -2
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +67 -21
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +66 -20
- package/dist/index39.js.map +1 -1
- package/dist/index4.cjs +12 -8
- package/dist/index4.cjs.map +1 -1
- package/dist/index4.js +12 -8
- package/dist/index4.js.map +1 -1
- package/dist/index40.cjs +39 -67
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +38 -66
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +15 -33
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +16 -34
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +52 -16
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +52 -16
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +13 -10
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +13 -10
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +29 -17
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +29 -17
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +19 -134
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +18 -133
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +13 -40
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +13 -40
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +2 -29
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +3 -30
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +2 -53
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +3 -54
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +3 -30
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +3 -30
- package/dist/index49.js.map +1 -1
- package/dist/index5.cjs +9 -16
- package/dist/index5.cjs.map +1 -1
- package/dist/index5.js +10 -17
- package/dist/index5.js.map +1 -1
- package/dist/index50.cjs +34 -34
- package/dist/index50.js +34 -34
- package/dist/index51.cjs +49 -19
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +50 -20
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +16 -13
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +16 -13
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +35 -32
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +35 -32
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +53 -5
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +54 -6
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +134 -19
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +133 -18
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +40 -10
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +40 -10
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +26 -8
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +27 -9
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +22 -19
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +22 -19
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +10 -79
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +10 -79
- package/dist/index59.js.map +1 -1
- package/dist/index6.cjs +19 -65
- package/dist/index6.cjs.map +1 -1
- package/dist/index6.js +19 -65
- package/dist/index6.js.map +1 -1
- package/dist/index60.cjs +19 -22
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +20 -23
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +54 -27
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +55 -28
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +37 -13
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +38 -14
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +16 -49
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +16 -49
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +16 -37
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +16 -37
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +18 -0
- package/dist/index65.cjs.map +1 -0
- package/dist/index65.js +18 -0
- package/dist/index65.js.map +1 -0
- package/dist/index7.cjs +58 -75
- package/dist/index7.cjs.map +1 -1
- package/dist/index7.js +58 -75
- package/dist/index7.js.map +1 -1
- package/dist/index8.cjs +82 -15
- package/dist/index8.cjs.map +1 -1
- package/dist/index8.js +82 -15
- package/dist/index8.js.map +1 -1
- package/dist/index9.cjs +14 -15
- package/dist/index9.cjs.map +1 -1
- package/dist/index9.js +15 -16
- package/dist/index9.js.map +1 -1
- package/dist/style.css +271 -0
- package/dist/tokens/semantic-tokens.css +21 -0
- package/dist/tokens/tokens.d.ts +35 -0
- package/dist/tokens/tokens.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index2.cjs +0 -44
- package/dist/index2.cjs.map +0 -1
- package/dist/index2.js +0 -44
- package/dist/index2.js.map +0 -1
package/dist/index58.js
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
1
|
+
const root = "krc-root-Kdtyn";
|
|
2
|
+
const primary = "krc-primary-6l6aH";
|
|
3
|
+
const secondary = "krc-secondary-29n8Y";
|
|
4
|
+
const outline = "krc-outline-U1Mlr";
|
|
5
|
+
const ghost = "krc-ghost-5wRsR";
|
|
6
|
+
const danger = "krc-danger-gL4NM";
|
|
7
|
+
const sm = "krc-sm-zP51s";
|
|
8
|
+
const lg = "krc-lg-ZefGA";
|
|
8
9
|
const styles = {
|
|
9
|
-
overlay,
|
|
10
10
|
root,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
primary,
|
|
12
|
+
secondary,
|
|
13
|
+
outline,
|
|
14
|
+
ghost,
|
|
15
|
+
danger,
|
|
16
|
+
sm,
|
|
17
|
+
lg
|
|
16
18
|
};
|
|
17
19
|
export {
|
|
18
|
-
|
|
19
|
-
closeBtn,
|
|
20
|
+
danger,
|
|
20
21
|
styles as default,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
ghost,
|
|
23
|
+
lg,
|
|
24
|
+
outline,
|
|
25
|
+
primary,
|
|
24
26
|
root,
|
|
25
|
-
|
|
27
|
+
secondary,
|
|
28
|
+
sm
|
|
26
29
|
};
|
|
27
30
|
//# sourceMappingURL=index58.js.map
|
package/dist/index58.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index58.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index58.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
package/dist/index59.cjs
CHANGED
|
@@ -1,87 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const chevron = "krc-chevron-NoNsI";
|
|
8
|
-
const label = "krc-label-RPlXR";
|
|
9
|
-
const valueGroup = "krc-valueGroup-xfNcx";
|
|
10
|
-
const value = "krc-value-aKdIW";
|
|
11
|
-
const badge = "krc-badge-yVq9o";
|
|
12
|
-
const clear = "krc-clear-11V9Q";
|
|
13
|
-
const panel = "krc-panel-xf2f8";
|
|
14
|
-
const header = "krc-header--VMR-";
|
|
15
|
-
const search = "krc-search-4gQgB";
|
|
16
|
-
const headerActions = "krc-headerActions-orxXD";
|
|
17
|
-
const chip = "krc-chip--n-9m";
|
|
18
|
-
const chipGhost = "krc-chipGhost-oayjh";
|
|
19
|
-
const list = "krc-list-NRoxf";
|
|
20
|
-
const status = "krc-status-j7xbM";
|
|
21
|
-
const statusError = "krc-statusError-u6rfB";
|
|
22
|
-
const option = "krc-option-ZAXum";
|
|
23
|
-
const optionLabel = "krc-optionLabel-MdDyI";
|
|
24
|
-
const optionCount = "krc-optionCount-JSQl9";
|
|
25
|
-
const create = "krc-create-hO8Cq";
|
|
26
|
-
const footer = "krc-footer-2yk6S";
|
|
27
|
-
const selection = "krc-selection-aYDH-";
|
|
28
|
-
const selectionDelta = "krc-selectionDelta-S1dV7";
|
|
29
|
-
const footerActions = "krc-footerActions-77iCX";
|
|
3
|
+
const root = "krc-root-GPZXT";
|
|
4
|
+
const sm = "krc-sm-QGnvH";
|
|
5
|
+
const md = "krc-md-rQKlJ";
|
|
6
|
+
const lg = "krc-lg-eC2yT";
|
|
30
7
|
const styles = {
|
|
31
8
|
root,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
chevron,
|
|
36
|
-
label,
|
|
37
|
-
valueGroup,
|
|
38
|
-
value,
|
|
39
|
-
badge,
|
|
40
|
-
clear,
|
|
41
|
-
panel,
|
|
42
|
-
header,
|
|
43
|
-
search,
|
|
44
|
-
headerActions,
|
|
45
|
-
chip,
|
|
46
|
-
chipGhost,
|
|
47
|
-
list,
|
|
48
|
-
status,
|
|
49
|
-
statusError,
|
|
50
|
-
option,
|
|
51
|
-
optionLabel,
|
|
52
|
-
optionCount,
|
|
53
|
-
create,
|
|
54
|
-
footer,
|
|
55
|
-
selection,
|
|
56
|
-
selectionDelta,
|
|
57
|
-
footerActions
|
|
9
|
+
sm,
|
|
10
|
+
md,
|
|
11
|
+
lg
|
|
58
12
|
};
|
|
59
|
-
exports.active = active;
|
|
60
|
-
exports.badge = badge;
|
|
61
|
-
exports.chevron = chevron;
|
|
62
|
-
exports.chip = chip;
|
|
63
|
-
exports.chipGhost = chipGhost;
|
|
64
|
-
exports.clear = clear;
|
|
65
|
-
exports.create = create;
|
|
66
13
|
exports.default = styles;
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.header = header;
|
|
70
|
-
exports.headerActions = headerActions;
|
|
71
|
-
exports.label = label;
|
|
72
|
-
exports.list = list;
|
|
73
|
-
exports.option = option;
|
|
74
|
-
exports.optionCount = optionCount;
|
|
75
|
-
exports.optionLabel = optionLabel;
|
|
76
|
-
exports.panel = panel;
|
|
14
|
+
exports.lg = lg;
|
|
15
|
+
exports.md = md;
|
|
77
16
|
exports.root = root;
|
|
78
|
-
exports.
|
|
79
|
-
exports.selection = selection;
|
|
80
|
-
exports.selectionDelta = selectionDelta;
|
|
81
|
-
exports.status = status;
|
|
82
|
-
exports.statusError = statusError;
|
|
83
|
-
exports.trigger = trigger;
|
|
84
|
-
exports.triggerContent = triggerContent;
|
|
85
|
-
exports.value = value;
|
|
86
|
-
exports.valueGroup = valueGroup;
|
|
17
|
+
exports.sm = sm;
|
|
87
18
|
//# sourceMappingURL=index59.cjs.map
|
package/dist/index59.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index59.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index59.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/dist/index59.js
CHANGED
|
@@ -1,87 +1,18 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const chevron = "krc-chevron-NoNsI";
|
|
6
|
-
const label = "krc-label-RPlXR";
|
|
7
|
-
const valueGroup = "krc-valueGroup-xfNcx";
|
|
8
|
-
const value = "krc-value-aKdIW";
|
|
9
|
-
const badge = "krc-badge-yVq9o";
|
|
10
|
-
const clear = "krc-clear-11V9Q";
|
|
11
|
-
const panel = "krc-panel-xf2f8";
|
|
12
|
-
const header = "krc-header--VMR-";
|
|
13
|
-
const search = "krc-search-4gQgB";
|
|
14
|
-
const headerActions = "krc-headerActions-orxXD";
|
|
15
|
-
const chip = "krc-chip--n-9m";
|
|
16
|
-
const chipGhost = "krc-chipGhost-oayjh";
|
|
17
|
-
const list = "krc-list-NRoxf";
|
|
18
|
-
const status = "krc-status-j7xbM";
|
|
19
|
-
const statusError = "krc-statusError-u6rfB";
|
|
20
|
-
const option = "krc-option-ZAXum";
|
|
21
|
-
const optionLabel = "krc-optionLabel-MdDyI";
|
|
22
|
-
const optionCount = "krc-optionCount-JSQl9";
|
|
23
|
-
const create = "krc-create-hO8Cq";
|
|
24
|
-
const footer = "krc-footer-2yk6S";
|
|
25
|
-
const selection = "krc-selection-aYDH-";
|
|
26
|
-
const selectionDelta = "krc-selectionDelta-S1dV7";
|
|
27
|
-
const footerActions = "krc-footerActions-77iCX";
|
|
1
|
+
const root = "krc-root-GPZXT";
|
|
2
|
+
const sm = "krc-sm-QGnvH";
|
|
3
|
+
const md = "krc-md-rQKlJ";
|
|
4
|
+
const lg = "krc-lg-eC2yT";
|
|
28
5
|
const styles = {
|
|
29
6
|
root,
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
chevron,
|
|
34
|
-
label,
|
|
35
|
-
valueGroup,
|
|
36
|
-
value,
|
|
37
|
-
badge,
|
|
38
|
-
clear,
|
|
39
|
-
panel,
|
|
40
|
-
header,
|
|
41
|
-
search,
|
|
42
|
-
headerActions,
|
|
43
|
-
chip,
|
|
44
|
-
chipGhost,
|
|
45
|
-
list,
|
|
46
|
-
status,
|
|
47
|
-
statusError,
|
|
48
|
-
option,
|
|
49
|
-
optionLabel,
|
|
50
|
-
optionCount,
|
|
51
|
-
create,
|
|
52
|
-
footer,
|
|
53
|
-
selection,
|
|
54
|
-
selectionDelta,
|
|
55
|
-
footerActions
|
|
7
|
+
sm,
|
|
8
|
+
md,
|
|
9
|
+
lg
|
|
56
10
|
};
|
|
57
11
|
export {
|
|
58
|
-
active,
|
|
59
|
-
badge,
|
|
60
|
-
chevron,
|
|
61
|
-
chip,
|
|
62
|
-
chipGhost,
|
|
63
|
-
clear,
|
|
64
|
-
create,
|
|
65
12
|
styles as default,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
header,
|
|
69
|
-
headerActions,
|
|
70
|
-
label,
|
|
71
|
-
list,
|
|
72
|
-
option,
|
|
73
|
-
optionCount,
|
|
74
|
-
optionLabel,
|
|
75
|
-
panel,
|
|
13
|
+
lg,
|
|
14
|
+
md,
|
|
76
15
|
root,
|
|
77
|
-
|
|
78
|
-
selection,
|
|
79
|
-
selectionDelta,
|
|
80
|
-
status,
|
|
81
|
-
statusError,
|
|
82
|
-
trigger,
|
|
83
|
-
triggerContent,
|
|
84
|
-
value,
|
|
85
|
-
valueGroup
|
|
16
|
+
sm
|
|
86
17
|
};
|
|
87
18
|
//# sourceMappingURL=index59.js.map
|
package/dist/index59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index59.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index59.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/dist/index6.cjs
CHANGED
|
@@ -1,68 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const getDateTimeFormatter = (timeZone, withSeconds) => {
|
|
23
|
-
const key = `${timeZone}-${withSeconds ? "s" : "n"}`;
|
|
24
|
-
const cached = DATETIME_FORMATTERS.get(key);
|
|
25
|
-
if (cached) return cached;
|
|
26
|
-
const formatter = new Intl.DateTimeFormat(void 0, {
|
|
27
|
-
year: "numeric",
|
|
28
|
-
month: "2-digit",
|
|
29
|
-
day: "2-digit",
|
|
30
|
-
hour: "2-digit",
|
|
31
|
-
minute: "2-digit",
|
|
32
|
-
second: withSeconds ? "2-digit" : void 0,
|
|
33
|
-
hour12: false,
|
|
34
|
-
timeZone
|
|
35
|
-
});
|
|
36
|
-
DATETIME_FORMATTERS.set(key, formatter);
|
|
37
|
-
return formatter;
|
|
38
|
-
};
|
|
39
|
-
const formatDataTimestamp = (value, options = {}) => {
|
|
40
|
-
const { fallback = "Unknown", withSeconds = false, timeZone = "UTC", showTimeZoneLabel = false } = options;
|
|
41
|
-
if (!value) return fallback;
|
|
42
|
-
const date = new Date(value);
|
|
43
|
-
if (Number.isNaN(date.getTime())) return typeof value === "string" ? value : fallback;
|
|
44
|
-
const formatter = getDateTimeFormatter(timeZone, withSeconds);
|
|
45
|
-
const formatted = formatter.format(date);
|
|
46
|
-
return showTimeZoneLabel ? `${formatted} ${timeZone}` : formatted;
|
|
47
|
-
};
|
|
48
|
-
const formatLocalISOString = (date) => {
|
|
49
|
-
const pad = (n) => `${n}`.padStart(2, "0");
|
|
50
|
-
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}`;
|
|
51
|
-
};
|
|
52
|
-
const generateUUID = () => {
|
|
53
|
-
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
54
|
-
return crypto.randomUUID();
|
|
55
|
-
}
|
|
56
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
57
|
-
const r = Math.random() * 16 | 0;
|
|
58
|
-
const v = c === "x" ? r : r & 3 | 8;
|
|
59
|
-
return v.toString(16);
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
exports.formatBytes = formatBytes;
|
|
63
|
-
exports.formatDataTimestamp = formatDataTimestamp;
|
|
64
|
-
exports.formatLocalISOString = formatLocalISOString;
|
|
65
|
-
exports.formatNumber = formatNumber;
|
|
66
|
-
exports.generateUUID = generateUUID;
|
|
67
|
-
exports.truncateWithEllipsis = truncateWithEllipsis;
|
|
3
|
+
const react = require("react");
|
|
4
|
+
function useResizeObserver(ref) {
|
|
5
|
+
const [size, setSize] = react.useState({ width: 0, height: 0 });
|
|
6
|
+
react.useEffect(() => {
|
|
7
|
+
const element = ref.current;
|
|
8
|
+
if (!element) return;
|
|
9
|
+
const observer = new ResizeObserver((entries) => {
|
|
10
|
+
const entry = entries[0];
|
|
11
|
+
if (entry) {
|
|
12
|
+
const { width, height } = entry.contentRect;
|
|
13
|
+
setSize({ width, height });
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
observer.observe(element);
|
|
17
|
+
return () => observer.disconnect();
|
|
18
|
+
}, [ref]);
|
|
19
|
+
return size;
|
|
20
|
+
}
|
|
21
|
+
exports.useResizeObserver = useResizeObserver;
|
|
68
22
|
//# sourceMappingURL=index6.cjs.map
|
package/dist/index6.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index6.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index6.cjs","sources":["../src/hooks/useResizeObserver.ts"],"sourcesContent":["import { useEffect, useState, type RefObject } from 'react';\n\ninterface Size {\n width: number;\n height: number;\n}\n\n/** Observes the size of the element referenced by `ref` via ResizeObserver. */\nexport function useResizeObserver<T extends HTMLElement>(ref: RefObject<T | null>): Size {\n const [size, setSize] = useState<Size>({ width: 0, height: 0 });\n\n useEffect(() => {\n const element = ref.current;\n if (!element) return;\n\n const observer = new ResizeObserver((entries) => {\n const entry = entries[0];\n if (entry) {\n const { width, height } = entry.contentRect;\n setSize({ width, height });\n }\n });\n\n observer.observe(element);\n return () => observer.disconnect();\n }, [ref]);\n\n return size;\n}\n"],"names":["useState","useEffect"],"mappings":";;;AAQO,SAAS,kBAAyC,KAAgC;AACvF,QAAM,CAAC,MAAM,OAAO,IAAIA,MAAAA,SAAe,EAAE,OAAO,GAAG,QAAQ,GAAG;AAE9DC,QAAAA,UAAU,MAAM;AACd,UAAM,UAAU,IAAI;AACpB,QAAI,CAAC,QAAS;AAEd,UAAM,WAAW,IAAI,eAAe,CAAC,YAAY;AAC/C,YAAM,QAAQ,QAAQ,CAAC;AACvB,UAAI,OAAO;AACT,cAAM,EAAE,OAAO,OAAA,IAAW,MAAM;AAChC,gBAAQ,EAAE,OAAO,QAAQ;AAAA,MAC3B;AAAA,IACF,CAAC;AAED,aAAS,QAAQ,OAAO;AACxB,WAAO,MAAM,SAAS,WAAA;AAAA,EACxB,GAAG,CAAC,GAAG,CAAC;AAER,SAAO;AACT;;"}
|
package/dist/index6.js
CHANGED
|
@@ -1,68 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
return
|
|
18
|
-
}
|
|
19
|
-
const DATETIME_FORMATTERS = /* @__PURE__ */ new Map();
|
|
20
|
-
const getDateTimeFormatter = (timeZone, withSeconds) => {
|
|
21
|
-
const key = `${timeZone}-${withSeconds ? "s" : "n"}`;
|
|
22
|
-
const cached = DATETIME_FORMATTERS.get(key);
|
|
23
|
-
if (cached) return cached;
|
|
24
|
-
const formatter = new Intl.DateTimeFormat(void 0, {
|
|
25
|
-
year: "numeric",
|
|
26
|
-
month: "2-digit",
|
|
27
|
-
day: "2-digit",
|
|
28
|
-
hour: "2-digit",
|
|
29
|
-
minute: "2-digit",
|
|
30
|
-
second: withSeconds ? "2-digit" : void 0,
|
|
31
|
-
hour12: false,
|
|
32
|
-
timeZone
|
|
33
|
-
});
|
|
34
|
-
DATETIME_FORMATTERS.set(key, formatter);
|
|
35
|
-
return formatter;
|
|
36
|
-
};
|
|
37
|
-
const formatDataTimestamp = (value, options = {}) => {
|
|
38
|
-
const { fallback = "Unknown", withSeconds = false, timeZone = "UTC", showTimeZoneLabel = false } = options;
|
|
39
|
-
if (!value) return fallback;
|
|
40
|
-
const date = new Date(value);
|
|
41
|
-
if (Number.isNaN(date.getTime())) return typeof value === "string" ? value : fallback;
|
|
42
|
-
const formatter = getDateTimeFormatter(timeZone, withSeconds);
|
|
43
|
-
const formatted = formatter.format(date);
|
|
44
|
-
return showTimeZoneLabel ? `${formatted} ${timeZone}` : formatted;
|
|
45
|
-
};
|
|
46
|
-
const formatLocalISOString = (date) => {
|
|
47
|
-
const pad = (n) => `${n}`.padStart(2, "0");
|
|
48
|
-
return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}T${pad(date.getHours())}:${pad(date.getMinutes())}:${pad(date.getSeconds())}`;
|
|
49
|
-
};
|
|
50
|
-
const generateUUID = () => {
|
|
51
|
-
if (typeof crypto !== "undefined" && typeof crypto.randomUUID === "function") {
|
|
52
|
-
return crypto.randomUUID();
|
|
53
|
-
}
|
|
54
|
-
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
55
|
-
const r = Math.random() * 16 | 0;
|
|
56
|
-
const v = c === "x" ? r : r & 3 | 8;
|
|
57
|
-
return v.toString(16);
|
|
58
|
-
});
|
|
59
|
-
};
|
|
1
|
+
import { useState, useEffect } from "react";
|
|
2
|
+
function useResizeObserver(ref) {
|
|
3
|
+
const [size, setSize] = useState({ width: 0, height: 0 });
|
|
4
|
+
useEffect(() => {
|
|
5
|
+
const element = ref.current;
|
|
6
|
+
if (!element) return;
|
|
7
|
+
const observer = new ResizeObserver((entries) => {
|
|
8
|
+
const entry = entries[0];
|
|
9
|
+
if (entry) {
|
|
10
|
+
const { width, height } = entry.contentRect;
|
|
11
|
+
setSize({ width, height });
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
observer.observe(element);
|
|
15
|
+
return () => observer.disconnect();
|
|
16
|
+
}, [ref]);
|
|
17
|
+
return size;
|
|
18
|
+
}
|
|
60
19
|
export {
|
|
61
|
-
|
|
62
|
-
formatDataTimestamp,
|
|
63
|
-
formatLocalISOString,
|
|
64
|
-
formatNumber,
|
|
65
|
-
generateUUID,
|
|
66
|
-
truncateWithEllipsis
|
|
20
|
+
useResizeObserver
|
|
67
21
|
};
|
|
68
22
|
//# sourceMappingURL=index6.js.map
|
package/dist/index6.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index6.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index6.js","sources":["../src/hooks/useResizeObserver.ts"],"sourcesContent":["import { useEffect, useState, type RefObject } from 'react';\n\ninterface Size {\n width: number;\n height: number;\n}\n\n/** Observes the size of the element referenced by `ref` via ResizeObserver. */\nexport function useResizeObserver<T extends HTMLElement>(ref: RefObject<T | null>): Size {\n const [size, setSize] = useState<Size>({ width: 0, height: 0 });\n\n useEffect(() => {\n const element = ref.current;\n if (!element) return;\n\n const observer = new ResizeObserver((entries) => {\n const entry = entries[0];\n if (entry) {\n const { width, height } = entry.contentRect;\n setSize({ width, height });\n }\n });\n\n observer.observe(element);\n return () => observer.disconnect();\n }, [ref]);\n\n return size;\n}\n"],"names":[],"mappings":";AAQO,SAAS,kBAAyC,KAAgC;AACvF,QAAM,CAAC,MAAM,OAAO,IAAI,SAAe,EAAE,OAAO,GAAG,QAAQ,GAAG;AAE9D,YAAU,MAAM;AACd,UAAM,UAAU,IAAI;AACpB,QAAI,CAAC,QAAS;AAEd,UAAM,WAAW,IAAI,eAAe,CAAC,YAAY;AAC/C,YAAM,QAAQ,QAAQ,CAAC;AACvB,UAAI,OAAO;AACT,cAAM,EAAE,OAAO,OAAA,IAAW,MAAM;AAChC,gBAAQ,EAAE,OAAO,QAAQ;AAAA,MAC3B;AAAA,IACF,CAAC;AAED,aAAS,QAAQ,OAAO;AACxB,WAAO,MAAM,SAAS,WAAA;AAAA,EACxB,GAAG,CAAC,GAAG,CAAC;AAER,SAAO;AACT;"}
|
package/dist/index60.cjs
CHANGED
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "krc-root-
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const lg = "krc-lg-ZefGA";
|
|
3
|
+
const root = "krc-root-cQSdQ";
|
|
4
|
+
const disabled = "krc-disabled-mXUpZ";
|
|
5
|
+
const active = "krc-active-c6Qv6";
|
|
6
|
+
const collapsed = "krc-collapsed-zZjr3";
|
|
7
|
+
const icon = "krc-icon-dmCQi";
|
|
8
|
+
const label = "krc-label-ohVFC";
|
|
9
|
+
const badge = "krc-badge-D8UnW";
|
|
11
10
|
const styles = {
|
|
12
11
|
root,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
lg
|
|
12
|
+
disabled,
|
|
13
|
+
active,
|
|
14
|
+
collapsed,
|
|
15
|
+
icon,
|
|
16
|
+
label,
|
|
17
|
+
badge
|
|
20
18
|
};
|
|
21
|
-
exports.
|
|
19
|
+
exports.active = active;
|
|
20
|
+
exports.badge = badge;
|
|
21
|
+
exports.collapsed = collapsed;
|
|
22
22
|
exports.default = styles;
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.primary = primary;
|
|
23
|
+
exports.disabled = disabled;
|
|
24
|
+
exports.icon = icon;
|
|
25
|
+
exports.label = label;
|
|
27
26
|
exports.root = root;
|
|
28
|
-
exports.secondary = secondary;
|
|
29
|
-
exports.sm = sm;
|
|
30
27
|
//# sourceMappingURL=index60.cjs.map
|
package/dist/index60.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index60.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index60.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index60.js
CHANGED
|
@@ -1,30 +1,27 @@
|
|
|
1
|
-
const root = "krc-root-
|
|
2
|
-
const
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const lg = "krc-lg-ZefGA";
|
|
1
|
+
const root = "krc-root-cQSdQ";
|
|
2
|
+
const disabled = "krc-disabled-mXUpZ";
|
|
3
|
+
const active = "krc-active-c6Qv6";
|
|
4
|
+
const collapsed = "krc-collapsed-zZjr3";
|
|
5
|
+
const icon = "krc-icon-dmCQi";
|
|
6
|
+
const label = "krc-label-ohVFC";
|
|
7
|
+
const badge = "krc-badge-D8UnW";
|
|
9
8
|
const styles = {
|
|
10
9
|
root,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
lg
|
|
10
|
+
disabled,
|
|
11
|
+
active,
|
|
12
|
+
collapsed,
|
|
13
|
+
icon,
|
|
14
|
+
label,
|
|
15
|
+
badge
|
|
18
16
|
};
|
|
19
17
|
export {
|
|
20
|
-
|
|
18
|
+
active,
|
|
19
|
+
badge,
|
|
20
|
+
collapsed,
|
|
21
21
|
styles as default,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
root,
|
|
27
|
-
secondary,
|
|
28
|
-
sm
|
|
22
|
+
disabled,
|
|
23
|
+
icon,
|
|
24
|
+
label,
|
|
25
|
+
root
|
|
29
26
|
};
|
|
30
27
|
//# sourceMappingURL=index60.js.map
|
package/dist/index60.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index60.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index60.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|