@ck-ui/component-library 1.0.7 → 1.0.9
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/{DropdownFooter-B1d0HFxd.js → DropdownFooter-BmXLYRcE.js} +4 -3
- package/dist/{OptionList-BM4AleXV.js → OptionList-DU0iA8Y4.js} +206 -198
- package/dist/assets/index-CRlPQn7l.css +1 -0
- package/dist/assets/index-xlbz19JS.css +1 -0
- package/dist/assets/{index-CtR-jzNi.css → index-zWDnehqu.css} +1 -1
- package/dist/assets/styles-0GdZsGyi.css +1 -0
- package/dist/assets/styles-C9rG0Alp.css +1 -0
- package/dist/assets/styles-CwZG1jzB.css +1 -0
- package/dist/assets/{styles-DAqMiQ0N.css → styles-D2n8YjU_.css} +1 -1
- package/dist/components/Breadcrumb/index.js +39 -39
- package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/builders.js +147 -110
- package/dist/components/FusionChart/_config/events.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/events.js +52 -37
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts +3 -0
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -1
- package/dist/components/FusionChart/index.d.ts.map +1 -1
- package/dist/components/FusionChart/index.js +524 -506
- package/dist/components/MultiSelect/SimpleMultiSelect.js +1 -1
- package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
- package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
- package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
- package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
- package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
- package/dist/components/MultiSelect/_helpers/TriggerButton.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/Search/index.js +60 -60
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +4 -3
- package/dist/components/SingleSelectDropdown/index.js +12 -11
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts +1 -1
- package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/ColumnManager/index.js +803 -696
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +3 -2
- package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/GroupedHeader/index.js +148 -147
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +3 -3
- package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/index.js +52 -50
- package/dist/components/Table/_helpers/TableRows.d.ts +1 -1
- package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
- package/dist/components/Table/_helpers/TableRows.js +242 -243
- package/dist/components/Table/_hooks/useOverlayScrollbar.d.ts.map +1 -1
- package/dist/components/Table/_hooks/useOverlayScrollbar.js +63 -58
- package/dist/components/Table/_types/table.types.d.ts +1 -1
- package/dist/components/Table/_types/table.types.d.ts.map +1 -1
- package/dist/components/Table/_utils/table.utils.d.ts +1 -1
- package/dist/components/Table/_utils/table.utils.d.ts.map +1 -1
- package/dist/components/Table/_utils/table.utils.js +84 -46
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/index.js +395 -324
- package/dist/components/TextField/index.js +165 -165
- package/dist/styles.module-DSbSTQeV.js +56 -0
- package/package.json +1 -1
- package/dist/assets/index-C8gvpfKZ.css +0 -1
- package/dist/assets/index-DewFIgpp.css +0 -1
- package/dist/assets/styles-BATmGmYA.css +0 -1
- package/dist/assets/styles-DLJzdWsF.css +0 -1
- package/dist/assets/styles-O-5pBCak.css +0 -1
- package/dist/search-B_cup-NN.js +0 -5
- package/dist/styles.module-BJEFZA32.js +0 -56
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { jsx as a, jsxs as $, Fragment as
|
|
1
|
+
import { jsx as a, jsxs as $, Fragment as Oe } from "react/jsx-runtime";
|
|
2
2
|
import { CKButton as Ce } from "../CKButton/index.js";
|
|
3
3
|
import * as V from "react";
|
|
4
4
|
import { g as ne, f as le, h as D, s as M, l as K, m as G, n as J, P as e, r as $e, j as S } from "../../useSlot-BiMlGawc.js";
|
|
5
5
|
import { c as Q } from "../../clsx-OuTLNxxd.js";
|
|
6
6
|
import { u as Ne, r as Se } from "../../Grow-wzNsNKt2.js";
|
|
7
|
-
import { u as ae, f as ie, g as
|
|
7
|
+
import { u as ae, f as ie, g as Re, S as ze, O as qe, F as Ie, I as Pe, a as Le } from "../../Select-CiuwMSD7.js";
|
|
8
8
|
import { c as Me } from "../../createSimplePaletteValueFilter-BqxST_wX.js";
|
|
9
|
-
import '../../assets/index-
|
|
9
|
+
import '../../assets/index-xlbz19JS.css';function je(o) {
|
|
10
10
|
return le("MuiFormHelperText", o);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const ce = ne("MuiFormHelperText", ["root", "error", "disabled", "sizeSmall", "sizeMedium", "contained", "focused", "filled", "required"]);
|
|
13
13
|
var pe;
|
|
14
14
|
const Ee = (o) => {
|
|
15
15
|
const {
|
|
16
16
|
classes: r,
|
|
17
17
|
contained: t,
|
|
18
18
|
size: s,
|
|
19
|
-
disabled:
|
|
19
|
+
disabled: d,
|
|
20
20
|
error: l,
|
|
21
|
-
filled:
|
|
21
|
+
filled: c,
|
|
22
22
|
focused: u,
|
|
23
23
|
required: f
|
|
24
|
-
} = o,
|
|
25
|
-
root: ["root",
|
|
24
|
+
} = o, _ = {
|
|
25
|
+
root: ["root", d && "disabled", l && "error", s && `size${K(s)}`, t && "contained", u && "focused", c && "filled", f && "required"]
|
|
26
26
|
};
|
|
27
|
-
return G(
|
|
27
|
+
return G(_, je, r);
|
|
28
28
|
}, He = M("p", {
|
|
29
29
|
name: "MuiFormHelperText",
|
|
30
30
|
slot: "Root",
|
|
@@ -44,10 +44,10 @@ const Ee = (o) => {
|
|
|
44
44
|
marginRight: 0,
|
|
45
45
|
marginBottom: 0,
|
|
46
46
|
marginLeft: 0,
|
|
47
|
-
[`&.${
|
|
47
|
+
[`&.${ce.disabled}`]: {
|
|
48
48
|
color: (o.vars || o).palette.text.disabled
|
|
49
49
|
},
|
|
50
|
-
[`&.${
|
|
50
|
+
[`&.${ce.error}`]: {
|
|
51
51
|
color: (o.vars || o).palette.error.main
|
|
52
52
|
},
|
|
53
53
|
variants: [{
|
|
@@ -71,24 +71,24 @@ const Ee = (o) => {
|
|
|
71
71
|
props: r,
|
|
72
72
|
name: "MuiFormHelperText"
|
|
73
73
|
}), {
|
|
74
|
-
children:
|
|
74
|
+
children: d,
|
|
75
75
|
className: l,
|
|
76
|
-
component:
|
|
76
|
+
component: c = "p",
|
|
77
77
|
disabled: u,
|
|
78
78
|
error: f,
|
|
79
|
-
filled:
|
|
79
|
+
filled: _,
|
|
80
80
|
focused: m,
|
|
81
81
|
margin: b,
|
|
82
82
|
required: p,
|
|
83
83
|
variant: T,
|
|
84
|
-
...
|
|
85
|
-
} = s,
|
|
84
|
+
...x
|
|
85
|
+
} = s, h = ae(), n = ie({
|
|
86
86
|
props: s,
|
|
87
|
-
muiFormControl:
|
|
87
|
+
muiFormControl: h,
|
|
88
88
|
states: ["variant", "size", "disabled", "error", "filled", "focused", "required"]
|
|
89
|
-
}),
|
|
89
|
+
}), y = {
|
|
90
90
|
...s,
|
|
91
|
-
component:
|
|
91
|
+
component: c,
|
|
92
92
|
contained: n.variant === "filled" || n.variant === "outlined",
|
|
93
93
|
variant: n.variant,
|
|
94
94
|
size: n.size,
|
|
@@ -98,22 +98,22 @@ const Ee = (o) => {
|
|
|
98
98
|
focused: n.focused,
|
|
99
99
|
required: n.required
|
|
100
100
|
};
|
|
101
|
-
delete
|
|
102
|
-
const
|
|
101
|
+
delete y.ownerState;
|
|
102
|
+
const O = Ee(y);
|
|
103
103
|
return /* @__PURE__ */ a(He, {
|
|
104
|
-
as:
|
|
105
|
-
className: Q(
|
|
104
|
+
as: c,
|
|
105
|
+
className: Q(O.root, l),
|
|
106
106
|
ref: t,
|
|
107
|
-
...
|
|
108
|
-
ownerState:
|
|
109
|
-
children:
|
|
107
|
+
...x,
|
|
108
|
+
ownerState: y,
|
|
109
|
+
children: d === " " ? (
|
|
110
110
|
// notranslate needed while Google Translate will not fix zero-width space issue
|
|
111
111
|
pe || (pe = /* @__PURE__ */ a("span", {
|
|
112
112
|
className: "notranslate",
|
|
113
113
|
"aria-hidden": !0,
|
|
114
114
|
children: ""
|
|
115
115
|
}))
|
|
116
|
-
) :
|
|
116
|
+
) : d
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
119
|
process.env.NODE_ENV !== "production" && (ue.propTypes = {
|
|
@@ -182,12 +182,12 @@ const L = ne("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "
|
|
|
182
182
|
classes: r,
|
|
183
183
|
color: t,
|
|
184
184
|
focused: s,
|
|
185
|
-
disabled:
|
|
185
|
+
disabled: d,
|
|
186
186
|
error: l,
|
|
187
|
-
filled:
|
|
187
|
+
filled: c,
|
|
188
188
|
required: u
|
|
189
189
|
} = o, f = {
|
|
190
|
-
root: ["root", `color${K(t)}`,
|
|
190
|
+
root: ["root", `color${K(t)}`, d && "disabled", l && "error", c && "filled", s && "focused", u && "required"],
|
|
191
191
|
asterisk: ["asterisk", l && "error"]
|
|
192
192
|
};
|
|
193
193
|
return G(f, Ue, r);
|
|
@@ -242,40 +242,40 @@ const L = ne("MuiFormLabel", ["root", "colorSecondary", "focused", "disabled", "
|
|
|
242
242
|
props: r,
|
|
243
243
|
name: "MuiFormLabel"
|
|
244
244
|
}), {
|
|
245
|
-
children:
|
|
245
|
+
children: d,
|
|
246
246
|
className: l,
|
|
247
|
-
color:
|
|
247
|
+
color: c,
|
|
248
248
|
component: u = "label",
|
|
249
249
|
disabled: f,
|
|
250
|
-
error:
|
|
250
|
+
error: _,
|
|
251
251
|
filled: m,
|
|
252
252
|
focused: b,
|
|
253
253
|
required: p,
|
|
254
254
|
...T
|
|
255
|
-
} = s,
|
|
255
|
+
} = s, x = ae(), h = ie({
|
|
256
256
|
props: s,
|
|
257
|
-
muiFormControl:
|
|
257
|
+
muiFormControl: x,
|
|
258
258
|
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
|
259
259
|
}), n = {
|
|
260
260
|
...s,
|
|
261
|
-
color:
|
|
261
|
+
color: h.color || "primary",
|
|
262
262
|
component: u,
|
|
263
|
-
disabled:
|
|
264
|
-
error:
|
|
265
|
-
filled:
|
|
266
|
-
focused:
|
|
267
|
-
required:
|
|
268
|
-
},
|
|
263
|
+
disabled: h.disabled,
|
|
264
|
+
error: h.error,
|
|
265
|
+
filled: h.filled,
|
|
266
|
+
focused: h.focused,
|
|
267
|
+
required: h.required
|
|
268
|
+
}, y = We(n);
|
|
269
269
|
return /* @__PURE__ */ $(Ae, {
|
|
270
270
|
as: u,
|
|
271
271
|
ownerState: n,
|
|
272
|
-
className: Q(
|
|
272
|
+
className: Q(y.root, l),
|
|
273
273
|
ref: t,
|
|
274
274
|
...T,
|
|
275
|
-
children: [
|
|
275
|
+
children: [d, h.required && /* @__PURE__ */ $(Be, {
|
|
276
276
|
ownerState: n,
|
|
277
277
|
"aria-hidden": !0,
|
|
278
|
-
className:
|
|
278
|
+
className: y.asterisk,
|
|
279
279
|
children: [" ", "*"]
|
|
280
280
|
})]
|
|
281
281
|
});
|
|
@@ -338,18 +338,18 @@ const Ve = (o) => {
|
|
|
338
338
|
classes: r,
|
|
339
339
|
formControl: t,
|
|
340
340
|
size: s,
|
|
341
|
-
shrink:
|
|
341
|
+
shrink: d,
|
|
342
342
|
disableAnimation: l,
|
|
343
|
-
variant:
|
|
343
|
+
variant: c,
|
|
344
344
|
required: u
|
|
345
345
|
} = o, f = {
|
|
346
|
-
root: ["root", t && "formControl", !l && "animated",
|
|
346
|
+
root: ["root", t && "formControl", !l && "animated", d && "shrink", s && s !== "medium" && `size${K(s)}`, c],
|
|
347
347
|
asterisk: [u && "asterisk"]
|
|
348
|
-
},
|
|
348
|
+
}, _ = G(f, Re, r);
|
|
349
349
|
return {
|
|
350
350
|
...r,
|
|
351
351
|
// forward the focused, disabled, etc. classes to the FormLabel
|
|
352
|
-
...
|
|
352
|
+
..._
|
|
353
353
|
};
|
|
354
354
|
}, De = M(fe, {
|
|
355
355
|
shouldForwardProp: (o) => $e(o) || o === "classes",
|
|
@@ -490,14 +490,14 @@ const Ve = (o) => {
|
|
|
490
490
|
name: "MuiInputLabel",
|
|
491
491
|
props: r
|
|
492
492
|
}), {
|
|
493
|
-
disableAnimation:
|
|
493
|
+
disableAnimation: d = !1,
|
|
494
494
|
margin: l,
|
|
495
|
-
shrink:
|
|
495
|
+
shrink: c,
|
|
496
496
|
variant: u,
|
|
497
497
|
className: f,
|
|
498
|
-
...
|
|
498
|
+
..._
|
|
499
499
|
} = s, m = ae();
|
|
500
|
-
let b =
|
|
500
|
+
let b = c;
|
|
501
501
|
typeof b > "u" && m && (b = m.filled || m.focused || m.adornedStart);
|
|
502
502
|
const p = ie({
|
|
503
503
|
props: s,
|
|
@@ -505,21 +505,21 @@ const Ve = (o) => {
|
|
|
505
505
|
states: ["size", "variant", "required", "focused"]
|
|
506
506
|
}), T = {
|
|
507
507
|
...s,
|
|
508
|
-
disableAnimation:
|
|
508
|
+
disableAnimation: d,
|
|
509
509
|
formControl: m,
|
|
510
510
|
shrink: b,
|
|
511
511
|
size: p.size,
|
|
512
512
|
variant: p.variant,
|
|
513
513
|
required: p.required,
|
|
514
514
|
focused: p.focused
|
|
515
|
-
},
|
|
515
|
+
}, x = Ve(T);
|
|
516
516
|
return /* @__PURE__ */ a(De, {
|
|
517
517
|
"data-shrink": b,
|
|
518
518
|
ref: t,
|
|
519
|
-
className: Q(
|
|
520
|
-
...
|
|
519
|
+
className: Q(x.root, f),
|
|
520
|
+
..._,
|
|
521
521
|
ownerState: T,
|
|
522
|
-
classes:
|
|
522
|
+
classes: x
|
|
523
523
|
});
|
|
524
524
|
});
|
|
525
525
|
process.env.NODE_ENV !== "production" && (me.propTypes = {
|
|
@@ -596,7 +596,7 @@ ne("MuiTextField", ["root"]);
|
|
|
596
596
|
const Ge = {
|
|
597
597
|
standard: Pe,
|
|
598
598
|
filled: Ie,
|
|
599
|
-
outlined:
|
|
599
|
+
outlined: qe
|
|
600
600
|
}, Je = (o) => {
|
|
601
601
|
const {
|
|
602
602
|
classes: r
|
|
@@ -612,37 +612,37 @@ const Ge = {
|
|
|
612
612
|
props: r,
|
|
613
613
|
name: "MuiTextField"
|
|
614
614
|
}), {
|
|
615
|
-
autoComplete:
|
|
615
|
+
autoComplete: d,
|
|
616
616
|
autoFocus: l = !1,
|
|
617
|
-
children:
|
|
617
|
+
children: c,
|
|
618
618
|
className: u,
|
|
619
619
|
color: f = "primary",
|
|
620
|
-
defaultValue:
|
|
620
|
+
defaultValue: _,
|
|
621
621
|
disabled: m = !1,
|
|
622
622
|
error: b = !1,
|
|
623
623
|
fullWidth: p = !1,
|
|
624
624
|
helperText: T,
|
|
625
|
-
id:
|
|
626
|
-
inputRef:
|
|
625
|
+
id: x,
|
|
626
|
+
inputRef: h,
|
|
627
627
|
label: n,
|
|
628
|
-
maxRows:
|
|
629
|
-
minRows:
|
|
628
|
+
maxRows: y,
|
|
629
|
+
minRows: O,
|
|
630
630
|
multiline: j = !1,
|
|
631
|
-
name:
|
|
631
|
+
name: F,
|
|
632
632
|
onBlur: E,
|
|
633
633
|
onChange: X,
|
|
634
634
|
onFocus: Y,
|
|
635
|
-
placeholder:
|
|
635
|
+
placeholder: R,
|
|
636
636
|
required: H = !1,
|
|
637
|
-
rows:
|
|
637
|
+
rows: z,
|
|
638
638
|
select: v = !1,
|
|
639
639
|
slots: U = {},
|
|
640
|
-
slotProps:
|
|
640
|
+
slotProps: q = {},
|
|
641
641
|
type: Z,
|
|
642
642
|
value: W,
|
|
643
643
|
variant: N = "outlined",
|
|
644
644
|
...ee
|
|
645
|
-
} = s,
|
|
645
|
+
} = s, g = {
|
|
646
646
|
...s,
|
|
647
647
|
autoFocus: l,
|
|
648
648
|
color: f,
|
|
@@ -653,25 +653,25 @@ const Ge = {
|
|
|
653
653
|
required: H,
|
|
654
654
|
select: v,
|
|
655
655
|
variant: N
|
|
656
|
-
}, oe = Je(
|
|
657
|
-
process.env.NODE_ENV !== "production" && v && !
|
|
658
|
-
const w = Ne(
|
|
656
|
+
}, oe = Je(g);
|
|
657
|
+
process.env.NODE_ENV !== "production" && v && !c && console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");
|
|
658
|
+
const w = Ne(x), I = T && w ? `${w}-helper-text` : void 0, A = n && w ? `${w}-label` : void 0, re = Ge[N], k = {
|
|
659
659
|
slots: U,
|
|
660
|
-
slotProps:
|
|
660
|
+
slotProps: q
|
|
661
661
|
}, [te, B] = S("select", {
|
|
662
|
-
elementType:
|
|
663
|
-
externalForwardedProps:
|
|
664
|
-
ownerState:
|
|
665
|
-
}), P = v && B.native, C = {}, se =
|
|
662
|
+
elementType: ze,
|
|
663
|
+
externalForwardedProps: k,
|
|
664
|
+
ownerState: g
|
|
665
|
+
}), P = v && B.native, C = {}, se = k.slotProps.inputLabel;
|
|
666
666
|
N === "outlined" && (se && typeof se.shrink < "u" && (C.notched = se.shrink), C.label = n), v && (P || (C.id = void 0), C["aria-describedby"] = void 0);
|
|
667
|
-
const [
|
|
667
|
+
const [xe, he] = S("root", {
|
|
668
668
|
elementType: Qe,
|
|
669
669
|
shouldForwardComponentProp: !0,
|
|
670
670
|
externalForwardedProps: {
|
|
671
|
-
...
|
|
671
|
+
...k,
|
|
672
672
|
...ee
|
|
673
673
|
},
|
|
674
|
-
ownerState:
|
|
674
|
+
ownerState: g,
|
|
675
675
|
className: Q(oe.root, u),
|
|
676
676
|
ref: t,
|
|
677
677
|
additionalProps: {
|
|
@@ -682,51 +682,51 @@ const Ge = {
|
|
|
682
682
|
color: f,
|
|
683
683
|
variant: N
|
|
684
684
|
}
|
|
685
|
-
}), [
|
|
685
|
+
}), [ye, ge] = S("input", {
|
|
686
686
|
elementType: re,
|
|
687
|
-
externalForwardedProps:
|
|
687
|
+
externalForwardedProps: k,
|
|
688
688
|
additionalProps: C,
|
|
689
|
-
ownerState:
|
|
690
|
-
}), [
|
|
689
|
+
ownerState: g
|
|
690
|
+
}), [_e, Te] = S("inputLabel", {
|
|
691
691
|
elementType: me,
|
|
692
|
-
externalForwardedProps:
|
|
693
|
-
ownerState:
|
|
692
|
+
externalForwardedProps: k,
|
|
693
|
+
ownerState: g
|
|
694
694
|
}), [ve, we] = S("htmlInput", {
|
|
695
695
|
elementType: "input",
|
|
696
|
-
externalForwardedProps:
|
|
697
|
-
ownerState:
|
|
698
|
-
}), [
|
|
696
|
+
externalForwardedProps: k,
|
|
697
|
+
ownerState: g
|
|
698
|
+
}), [ke, Fe] = S("formHelperText", {
|
|
699
699
|
elementType: ue,
|
|
700
|
-
externalForwardedProps:
|
|
701
|
-
ownerState:
|
|
702
|
-
}),
|
|
700
|
+
externalForwardedProps: k,
|
|
701
|
+
ownerState: g
|
|
702
|
+
}), de = /* @__PURE__ */ a(ye, {
|
|
703
703
|
"aria-describedby": I,
|
|
704
|
-
autoComplete:
|
|
704
|
+
autoComplete: d,
|
|
705
705
|
autoFocus: l,
|
|
706
|
-
defaultValue:
|
|
706
|
+
defaultValue: _,
|
|
707
707
|
fullWidth: p,
|
|
708
708
|
multiline: j,
|
|
709
|
-
name:
|
|
710
|
-
rows:
|
|
711
|
-
maxRows:
|
|
712
|
-
minRows:
|
|
709
|
+
name: F,
|
|
710
|
+
rows: z,
|
|
711
|
+
maxRows: y,
|
|
712
|
+
minRows: O,
|
|
713
713
|
type: Z,
|
|
714
714
|
value: W,
|
|
715
715
|
id: w,
|
|
716
|
-
inputRef:
|
|
716
|
+
inputRef: h,
|
|
717
717
|
onBlur: E,
|
|
718
718
|
onChange: X,
|
|
719
719
|
onFocus: Y,
|
|
720
|
-
placeholder:
|
|
720
|
+
placeholder: R,
|
|
721
721
|
inputProps: we,
|
|
722
722
|
slots: {
|
|
723
723
|
input: U.htmlInput ? ve : void 0
|
|
724
724
|
},
|
|
725
|
-
...
|
|
725
|
+
...ge
|
|
726
726
|
});
|
|
727
|
-
return /* @__PURE__ */ $(
|
|
728
|
-
...
|
|
729
|
-
children: [n != null && n !== "" && /* @__PURE__ */ a(
|
|
727
|
+
return /* @__PURE__ */ $(xe, {
|
|
728
|
+
...he,
|
|
729
|
+
children: [n != null && n !== "" && /* @__PURE__ */ a(_e, {
|
|
730
730
|
htmlFor: v && !P ? void 0 : w,
|
|
731
731
|
id: A,
|
|
732
732
|
...v && !P && {
|
|
@@ -739,12 +739,12 @@ const Ge = {
|
|
|
739
739
|
id: w,
|
|
740
740
|
labelId: A,
|
|
741
741
|
value: W,
|
|
742
|
-
input:
|
|
742
|
+
input: de,
|
|
743
743
|
...B,
|
|
744
|
-
children:
|
|
745
|
-
}) :
|
|
744
|
+
children: c
|
|
745
|
+
}) : de, T && /* @__PURE__ */ a(ke, {
|
|
746
746
|
id: I,
|
|
747
|
-
...
|
|
747
|
+
...Fe,
|
|
748
748
|
children: T
|
|
749
749
|
})]
|
|
750
750
|
});
|
|
@@ -922,30 +922,30 @@ process.env.NODE_ENV !== "production" && (be.propTypes = {
|
|
|
922
922
|
*/
|
|
923
923
|
variant: e.oneOf(["filled", "outlined", "standard"])
|
|
924
924
|
});
|
|
925
|
-
const Xe = "
|
|
926
|
-
"ckds-input-field-container": "_ckds-input-field-
|
|
925
|
+
const Xe = "_label_kg5rx_6", Ye = "_mandatory_kg5rx_18", Ze = "_icon_kg5rx_27", eo = "_small_kg5rx_86", oo = "_medium_kg5rx_94", ro = "_large_kg5rx_102", to = "_filled_kg5rx_110", so = "_suffix_kg5rx_167", no = "_disabled_kg5rx_189", i = {
|
|
926
|
+
"ckds-input-field-container": "_ckds-input-field-container_kg5rx_1",
|
|
927
927
|
label: Xe,
|
|
928
928
|
mandatory: Ye,
|
|
929
929
|
icon: Ze,
|
|
930
|
-
"icon-with-label": "_icon-with-
|
|
931
|
-
"text-field": "_text-
|
|
932
|
-
"Mui-focused": "_Mui-
|
|
933
|
-
"Mui-disabled": "_Mui-
|
|
934
|
-
"Mui-error": "_Mui-
|
|
930
|
+
"icon-with-label": "_icon-with-label_kg5rx_42",
|
|
931
|
+
"text-field": "_text-field_kg5rx_46",
|
|
932
|
+
"Mui-focused": "_Mui-focused_kg5rx_59",
|
|
933
|
+
"Mui-disabled": "_Mui-disabled_kg5rx_62",
|
|
934
|
+
"Mui-error": "_Mui-error_kg5rx_66",
|
|
935
935
|
small: eo,
|
|
936
936
|
medium: oo,
|
|
937
937
|
large: ro,
|
|
938
938
|
filled: to,
|
|
939
|
-
"show-hide-password": "_show-hide-
|
|
940
|
-
"clear-icon": "_clear-
|
|
941
|
-
"end-icon": "_end-
|
|
942
|
-
"show-hide-password-with-label": "_show-hide-password-with-
|
|
943
|
-
"clear-icon-with-label": "_clear-icon-with-
|
|
944
|
-
"end-icon-with-label": "_end-icon-with-
|
|
945
|
-
"action-button": "_action-
|
|
939
|
+
"show-hide-password": "_show-hide-password_kg5rx_114",
|
|
940
|
+
"clear-icon": "_clear-icon_kg5rx_115",
|
|
941
|
+
"end-icon": "_end-icon_kg5rx_116",
|
|
942
|
+
"show-hide-password-with-label": "_show-hide-password-with-label_kg5rx_153",
|
|
943
|
+
"clear-icon-with-label": "_clear-icon-with-label_kg5rx_154",
|
|
944
|
+
"end-icon-with-label": "_end-icon-with-label_kg5rx_155",
|
|
945
|
+
"action-button": "_action-button_kg5rx_159",
|
|
946
946
|
suffix: so,
|
|
947
|
-
"error-text": "_error-
|
|
948
|
-
"helper-text": "_helper-
|
|
947
|
+
"error-text": "_error-text_kg5rx_177",
|
|
948
|
+
"helper-text": "_helper-text_kg5rx_182",
|
|
949
949
|
disabled: no
|
|
950
950
|
};
|
|
951
951
|
function mo({
|
|
@@ -953,37 +953,37 @@ function mo({
|
|
|
953
953
|
name: r,
|
|
954
954
|
handleChange: t,
|
|
955
955
|
value: s = "",
|
|
956
|
-
label:
|
|
956
|
+
label: d = "",
|
|
957
957
|
error: l,
|
|
958
|
-
placeHolder:
|
|
958
|
+
placeHolder: c,
|
|
959
959
|
toggleIcon: u,
|
|
960
960
|
toggleActionButton: f,
|
|
961
|
-
toggleCallback:
|
|
961
|
+
toggleCallback: _,
|
|
962
962
|
toggleActionBtnCallback: m,
|
|
963
963
|
selectedVisibilityIcon: b,
|
|
964
964
|
inputIcon: p,
|
|
965
965
|
inputClass: T = "",
|
|
966
|
-
suffix:
|
|
967
|
-
prefixIcon:
|
|
966
|
+
suffix: x,
|
|
967
|
+
prefixIcon: h,
|
|
968
968
|
parentClass: n = "",
|
|
969
|
-
showLabel:
|
|
970
|
-
touched:
|
|
969
|
+
showLabel: y = !0,
|
|
970
|
+
touched: O,
|
|
971
971
|
onBlurHandler: j,
|
|
972
|
-
disabled:
|
|
972
|
+
disabled: F = !1,
|
|
973
973
|
disabledClass: E = "",
|
|
974
974
|
filledStyle: X = "",
|
|
975
975
|
autoComplete: Y = "on",
|
|
976
|
-
toolTip:
|
|
976
|
+
toolTip: R,
|
|
977
977
|
maxLength: H = null,
|
|
978
|
-
prefix:
|
|
978
|
+
prefix: z,
|
|
979
979
|
showInfoMessage: v = {},
|
|
980
980
|
actionButtonConfig: U = {},
|
|
981
|
-
labelDescription:
|
|
981
|
+
labelDescription: q = "",
|
|
982
982
|
disableOnWheel: Z = !1,
|
|
983
983
|
onFocusHandler: W,
|
|
984
984
|
onKeyDownHandler: N,
|
|
985
985
|
mandatory: ee = !1,
|
|
986
|
-
helperText:
|
|
986
|
+
helperText: g,
|
|
987
987
|
readOnly: oe = !1,
|
|
988
988
|
clearable: w = !1,
|
|
989
989
|
onClear: I,
|
|
@@ -991,32 +991,32 @@ function mo({
|
|
|
991
991
|
}) {
|
|
992
992
|
const {
|
|
993
993
|
isEnabled: re,
|
|
994
|
-
component:
|
|
994
|
+
component: k
|
|
995
995
|
} = v, {
|
|
996
996
|
buttonText: te = "",
|
|
997
997
|
btnVariant: B = "primary",
|
|
998
998
|
btnsize: P = "small"
|
|
999
999
|
} = U;
|
|
1000
1000
|
return /* @__PURE__ */ $("div", { className: `${i["ckds-input-field-container"]} ${n}`, children: [
|
|
1001
|
-
|
|
1001
|
+
y && /* @__PURE__ */ $(Oe, { children: [
|
|
1002
1002
|
/* @__PURE__ */ $(
|
|
1003
1003
|
"span",
|
|
1004
1004
|
{
|
|
1005
1005
|
className: `${i.label} ${ee ? i.mandatory : ""}`,
|
|
1006
1006
|
children: [
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
typeof
|
|
1007
|
+
h,
|
|
1008
|
+
d,
|
|
1009
|
+
typeof q == "function" ? q() : q
|
|
1010
1010
|
]
|
|
1011
1011
|
}
|
|
1012
1012
|
),
|
|
1013
|
-
|
|
1013
|
+
z && /* @__PURE__ */ a("span", { className: z.style, children: z.text })
|
|
1014
1014
|
] }),
|
|
1015
|
-
re &&
|
|
1015
|
+
re && k,
|
|
1016
1016
|
p && /* @__PURE__ */ a(
|
|
1017
1017
|
"div",
|
|
1018
1018
|
{
|
|
1019
|
-
className: `${i.icon} ${
|
|
1019
|
+
className: `${i.icon} ${y ? i["icon-with-label"] : ""}`,
|
|
1020
1020
|
children: typeof p == "string" ? /* @__PURE__ */ a(
|
|
1021
1021
|
"img",
|
|
1022
1022
|
{
|
|
@@ -1034,14 +1034,14 @@ function mo({
|
|
|
1034
1034
|
name: r,
|
|
1035
1035
|
type: o,
|
|
1036
1036
|
value: s,
|
|
1037
|
-
placeholder: E ? "" :
|
|
1037
|
+
placeholder: E ? "" : c,
|
|
1038
1038
|
onChange: t,
|
|
1039
1039
|
onBlur: j,
|
|
1040
1040
|
onFocus: W,
|
|
1041
|
-
disabled:
|
|
1041
|
+
disabled: F,
|
|
1042
1042
|
autoComplete: Y,
|
|
1043
|
-
error: !!(
|
|
1044
|
-
helperText:
|
|
1043
|
+
error: !!(O && l),
|
|
1044
|
+
helperText: O && l ? l : "",
|
|
1045
1045
|
slotProps: {
|
|
1046
1046
|
htmlInput: {
|
|
1047
1047
|
maxLength: H || void 0,
|
|
@@ -1061,22 +1061,22 @@ function mo({
|
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
),
|
|
1064
|
-
|
|
1064
|
+
x && /* @__PURE__ */ $(
|
|
1065
1065
|
"span",
|
|
1066
1066
|
{
|
|
1067
|
-
className: `${
|
|
1067
|
+
className: `${x.style} ${O && l ? i["error-text"] : ""}`,
|
|
1068
1068
|
children: [
|
|
1069
|
-
|
|
1070
|
-
|
|
1069
|
+
x.text,
|
|
1070
|
+
x.icon
|
|
1071
1071
|
]
|
|
1072
1072
|
}
|
|
1073
1073
|
),
|
|
1074
|
-
|
|
1075
|
-
w && s && !
|
|
1074
|
+
R && /* @__PURE__ */ a("div", { className: R.label, children: R.component }),
|
|
1075
|
+
w && s && !F && /* @__PURE__ */ a(
|
|
1076
1076
|
"span",
|
|
1077
1077
|
{
|
|
1078
1078
|
"aria-hidden": "true",
|
|
1079
|
-
className: `${i["clear-icon"]} ${
|
|
1079
|
+
className: `${i["clear-icon"]} ${y ? i["clear-icon-with-label"] : ""}`,
|
|
1080
1080
|
onClick: () => I?.(o, r),
|
|
1081
1081
|
children: "✕"
|
|
1082
1082
|
}
|
|
@@ -1085,8 +1085,8 @@ function mo({
|
|
|
1085
1085
|
"span",
|
|
1086
1086
|
{
|
|
1087
1087
|
"aria-hidden": "true",
|
|
1088
|
-
className: `${i["show-hide-password"]} ${
|
|
1089
|
-
onClick: () => !
|
|
1088
|
+
className: `${i["show-hide-password"]} ${y ? i["show-hide-password-with-label"] : ""} ${F || !s ? i.disabled : ""}`,
|
|
1089
|
+
onClick: () => !F && _?.(o, r),
|
|
1090
1090
|
children: typeof b == "string" ? /* @__PURE__ */ a(
|
|
1091
1091
|
"img",
|
|
1092
1092
|
{
|
|
@@ -1103,20 +1103,20 @@ function mo({
|
|
|
1103
1103
|
variant: B,
|
|
1104
1104
|
size: P,
|
|
1105
1105
|
className: "rounded-[3px] !font-bold ml-[10px]",
|
|
1106
|
-
disabled:
|
|
1106
|
+
disabled: F || !s || !!l,
|
|
1107
1107
|
onChange: () => m?.(
|
|
1108
1108
|
o,
|
|
1109
1109
|
r
|
|
1110
1110
|
)
|
|
1111
1111
|
}
|
|
1112
1112
|
) }),
|
|
1113
|
-
|
|
1113
|
+
g && (typeof g == "string" ? /* @__PURE__ */ a(
|
|
1114
1114
|
"span",
|
|
1115
1115
|
{
|
|
1116
|
-
className: `${i["helper-text"]} ${
|
|
1117
|
-
children:
|
|
1116
|
+
className: `${i["helper-text"]} ${F ? i.disabled : ""}`,
|
|
1117
|
+
children: g
|
|
1118
1118
|
}
|
|
1119
|
-
) :
|
|
1119
|
+
) : g)
|
|
1120
1120
|
] });
|
|
1121
1121
|
}
|
|
1122
1122
|
export {
|