@ck-ui/component-library 1.0.1 → 1.0.2
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-CsDll1Tj.js +96 -0
- package/dist/{Grow-D08Iq1uH.js → Grow-wzNsNKt2.js} +41 -41
- package/dist/IconSlot-DvUwY6Do.js +33 -0
- package/dist/{OptionList-DN1xZbnV.js → OptionList-BM4AleXV.js} +361 -290
- package/dist/{Select-Cw96VEHD.js → Select-CiuwMSD7.js} +2366 -2427
- package/dist/assets/DropdownFooter-JrU15UnN.css +1 -0
- package/dist/assets/IconSlot-BWv5PQN_.css +1 -0
- package/dist/assets/ReactToastify-GNLSjkBZ.css +1 -0
- package/dist/assets/{ToastContent-PGkBxPUW.css → ToastContent-DpF5zCks.css} +1 -1
- package/dist/assets/index-0R9p-l95.css +1 -0
- package/dist/assets/index-B3yBTtVQ.css +1 -0
- package/dist/assets/index-BbJZjGLb.css +1 -0
- package/dist/assets/{main-Dv8QUU_o.css → main-3OqLSdPm.css} +1 -1
- package/dist/assets/{styles-Chhklrps.css → styles-C5uYY4fL.css} +1 -1
- package/dist/assets/styles-CEyiQgVQ.css +1 -0
- package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
- package/dist/components/CKButton/_helper/IconSlot.js +1 -1
- package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
- package/dist/components/CKButton/index.js +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +703 -680
- package/dist/components/EmptyState/index.js +7 -7
- package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/builders.js +207 -192
- package/dist/components/FusionChart/_config/helpers.d.ts +3 -0
- package/dist/components/FusionChart/_config/helpers.d.ts.map +1 -1
- package/dist/components/FusionChart/_config/helpers.js +61 -45
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts +2 -0
- package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -1
- package/dist/components/FusionChart/_utils/chartHelpers.js +1 -1
- package/dist/components/FusionChart/index.d.ts.map +1 -1
- package/dist/components/FusionChart/index.js +163 -130
- package/dist/components/MenuOptions/_utils/computeMenuPosition.js +1 -1
- package/dist/components/MenuOptions/_utils/computeSubmenuPosition.js +1 -1
- package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +30 -30
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts +3 -1
- package/dist/components/MultiSelect/SimpleMultiSelect.d.ts.map +1 -1
- package/dist/components/MultiSelect/SimpleMultiSelect.js +150 -136
- 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.d.ts +1 -1
- package/dist/components/MultiSelect/_helpers/SearchResult.d.ts.map +1 -1
- package/dist/components/MultiSelect/_helpers/SearchResult.js +31 -21
- package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
- package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
- package/dist/components/MultiSelect/_helpers/TriggerButton.js +95 -74
- package/dist/components/MultiSelect/_types/type.d.ts +6 -2
- package/dist/components/MultiSelect/_types/type.d.ts.map +1 -1
- package/dist/components/MultiSelect/_utils/useDropdownDirection.d.ts +18 -0
- package/dist/components/MultiSelect/_utils/useDropdownDirection.d.ts.map +1 -0
- package/dist/components/MultiSelect/_utils/useDropdownDirection.js +23 -0
- package/dist/components/MultiSelect/index.d.ts +1 -1
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.js +162 -151
- package/dist/components/PopupAndDialogBox/components/DialogContent.js +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogFooter.js +1 -1
- package/dist/components/PopupAndDialogBox/components/DialogHeader.js +1 -1
- package/dist/components/PopupAndDialogBox/index.js +1 -1
- package/dist/components/Search/index.d.ts.map +1 -1
- package/dist/components/Search/index.js +63 -61
- package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +3 -3
- package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -1
- package/dist/components/SingleSelectDropdown/index.js +83 -78
- package/dist/components/Table/_helpers/ColumnManager/index.js +3 -3
- package/dist/components/Table/_helpers/GroupedHeader/index.js +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +1 -1
- package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.js +133 -142
- package/dist/components/Table/_helpers/TableFilterModal/index.js +1 -1
- package/dist/components/Table/_helpers/TableRows.js +1 -1
- package/dist/components/Table/index.js +2 -2
- package/dist/components/TextField/index.js +331 -328
- package/dist/components/Toast/_helper/ToastContent.js +25 -25
- package/dist/components/Toast/_helper/ToastProvider.js +9 -9
- package/dist/components/Toast/_hooks/useToast.js +1 -1
- package/dist/components/Tooltip/index.js +772 -697
- package/dist/createSimplePaletteValueFilter-BqxST_wX.js +24 -0
- package/dist/index-BR6M9zUI.js +382 -0
- package/dist/{index-f7TB87Mf.js → index-Bcvmezbu.js} +23 -3
- package/dist/main.js +1 -1
- package/dist/styles.module-yIHBMSTk.js +53 -0
- package/dist/styles.module-yNDMDNO-.js +14 -0
- package/dist/{useSlot-ylt7_lTY.js → useSlot-BiMlGawc.js} +656 -623
- package/package.json +3 -3
- package/dist/DropdownFooter-Dm6aLDx8.js +0 -89
- package/dist/IconSlot-CPQsGPB-.js +0 -33
- package/dist/assets/DropdownFooter-DjdPf69A.css +0 -1
- package/dist/assets/IconSlot-D8WWEHKb.css +0 -1
- package/dist/assets/ReactToastify-tlSLHgLC.css +0 -1
- package/dist/assets/index-B81zpOpq.css +0 -1
- package/dist/assets/index-DNhNBxL9.css +0 -1
- package/dist/assets/index-YHUWVH17.css +0 -1
- package/dist/assets/styles-Bj-7zn37.css +0 -1
- package/dist/contains-kLLEGdNH.js +0 -41
- package/dist/index-C8cPPHJD.js +0 -1196
- package/dist/styles.module-BZaUJMlf.js +0 -14
- package/dist/styles.module-DakCndIP.js +0 -42
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as d, useRef as g, useMemo as
|
|
3
|
-
import { s as
|
|
4
|
-
import { S as
|
|
5
|
-
import { S as
|
|
1
|
+
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useState as d, useRef as g, useMemo as V, useEffect as D } from "react";
|
|
3
|
+
import { s as e, D as A } from "../../DropdownFooter-CsDll1Tj.js";
|
|
4
|
+
import { S as M } from "../../chevron-down-Cm9R64Fe.js";
|
|
5
|
+
import { S as q } from "../../info-icon-ooYw3va_.js";
|
|
6
6
|
import "../Avatar/index.js";
|
|
7
7
|
import "../CKButton/index.js";
|
|
8
8
|
import "../IconButton/index.js";
|
|
9
9
|
import "../Stepper/index.js";
|
|
10
|
-
import { Tooltip as
|
|
11
|
-
import "../../index-
|
|
12
|
-
import '../../assets/theme-gJHYUL9y.css';import '../../assets/styles-DngCqCGW.css';import '../../assets/styles-DLJzdWsF.css';import '../../assets/styles-O-5pBCak.css';import '../../assets/ReactToastify-
|
|
13
|
-
import { RadioButton as
|
|
14
|
-
import { Search as
|
|
10
|
+
import { Tooltip as G } from "../Tooltip/index.js";
|
|
11
|
+
import "../../index-BR6M9zUI.js";
|
|
12
|
+
import '../../assets/theme-gJHYUL9y.css';import '../../assets/styles-DngCqCGW.css';import '../../assets/styles-DLJzdWsF.css';import '../../assets/styles-O-5pBCak.css';import '../../assets/ReactToastify-GNLSjkBZ.css';/* empty css */
|
|
13
|
+
import { RadioButton as H } from "../RadioButton/index.js";
|
|
14
|
+
import { Search as J } from "../Search/index.js";
|
|
15
15
|
import "../GroupedMultiSelect/_helpers/TagContent.js";
|
|
16
16
|
import "../GroupedMultiSelect/_helpers/OptionRow.js";
|
|
17
17
|
import "../GroupedSingleSelect/_helpers/OptionRow.js";
|
|
@@ -23,133 +23,138 @@ import "../Loader/index.js";
|
|
|
23
23
|
/* empty css */
|
|
24
24
|
import "../MultiSelect/_helpers/TagContent.js";
|
|
25
25
|
import "../MultiSelect/_helpers/OptionRow.js";
|
|
26
|
+
import { useDropdownDirection as K } from "../MultiSelect/_utils/useDropdownDirection.js";
|
|
26
27
|
import "../ProfileDropdown/index.js";
|
|
27
28
|
import "../MAVDropdown/index.js";
|
|
28
29
|
/* empty css */
|
|
29
30
|
import "../FusionChart/index.js";
|
|
30
|
-
function
|
|
31
|
+
function ge({
|
|
31
32
|
options: u,
|
|
32
|
-
value:
|
|
33
|
-
onChange:
|
|
34
|
-
label:
|
|
33
|
+
value: t = null,
|
|
34
|
+
onChange: y,
|
|
35
|
+
label: N,
|
|
35
36
|
placeholder: O = "Select",
|
|
36
|
-
helperText:
|
|
37
|
-
disabled:
|
|
37
|
+
helperText: w,
|
|
38
|
+
disabled: n = !1,
|
|
38
39
|
searchable: k = !0,
|
|
39
40
|
showClearButton: x = !0,
|
|
40
41
|
className: I = "",
|
|
41
42
|
mandatory: L = !1,
|
|
42
43
|
width: b = ""
|
|
43
44
|
}) {
|
|
44
|
-
const [
|
|
45
|
-
(
|
|
46
|
-
), [h, u]), W = (
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
|
|
50
|
-
}, z = () => {
|
|
51
|
-
D?.(f), c(!1);
|
|
45
|
+
const [l, c] = d(!1), [h, i] = d(""), [f, p] = d(t), v = g(null), { vertical: R, horizontal: j } = K(v, l), C = g(null), [z, E] = d(!1), a = u.find((r) => r.value === t), S = V(() => u.filter(
|
|
46
|
+
(r) => r.label.toLowerCase().includes(h.toLowerCase())
|
|
47
|
+
), [h, u]), W = (r) => {
|
|
48
|
+
p?.(r);
|
|
49
|
+
}, B = () => {
|
|
50
|
+
p(null);
|
|
52
51
|
}, F = () => {
|
|
53
|
-
|
|
52
|
+
y?.(f), c(!1);
|
|
53
|
+
}, T = () => {
|
|
54
|
+
p(t), c(!1), i("");
|
|
54
55
|
};
|
|
55
|
-
return
|
|
56
|
-
const
|
|
57
|
-
|
|
56
|
+
return D(() => {
|
|
57
|
+
const r = (m) => {
|
|
58
|
+
v.current?.contains(m.target) || (c(!1), p(t), i(""));
|
|
58
59
|
};
|
|
59
|
-
return document.addEventListener("mousedown",
|
|
60
|
-
}, [
|
|
61
|
-
const
|
|
62
|
-
if (!
|
|
63
|
-
const
|
|
64
|
-
E(
|
|
60
|
+
return document.addEventListener("mousedown", r), () => document.removeEventListener("mousedown", r);
|
|
61
|
+
}, [t]), D(() => {
|
|
62
|
+
const r = C.current;
|
|
63
|
+
if (!r) return;
|
|
64
|
+
const m = () => {
|
|
65
|
+
E(r.scrollWidth > r.clientWidth);
|
|
65
66
|
};
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
return
|
|
69
|
-
}, [
|
|
67
|
+
m();
|
|
68
|
+
const $ = new ResizeObserver(m);
|
|
69
|
+
return $.observe(r), () => $.disconnect();
|
|
70
|
+
}, [a?.label, b]), /* @__PURE__ */ s(
|
|
70
71
|
"div",
|
|
71
72
|
{
|
|
72
|
-
ref:
|
|
73
|
+
ref: v,
|
|
73
74
|
style: { width: b },
|
|
74
|
-
className: `${
|
|
75
|
+
className: `${e["ckds-single-select"]} ${n ? e.disabled : ""} ${I}`,
|
|
75
76
|
children: [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
L && /* @__PURE__ */
|
|
77
|
+
N && /* @__PURE__ */ s("label", { className: `${e.label} ${n ? e.disabled : ""}`, children: [
|
|
78
|
+
N,
|
|
79
|
+
L && /* @__PURE__ */ o("span", { className: e.mandatory, children: "*" })
|
|
79
80
|
] }),
|
|
80
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ s(
|
|
81
82
|
"button",
|
|
82
83
|
{
|
|
83
84
|
type: "button",
|
|
84
|
-
className: `${
|
|
85
|
-
onClick: () => !
|
|
85
|
+
className: `${e.trigger} ${l ? e.active : ""}`,
|
|
86
|
+
onClick: () => !n && c((r) => !r),
|
|
86
87
|
"aria-haspopup": "listbox",
|
|
87
|
-
"aria-expanded":
|
|
88
|
-
disabled:
|
|
88
|
+
"aria-expanded": l,
|
|
89
|
+
disabled: n,
|
|
89
90
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
91
|
-
|
|
91
|
+
/* @__PURE__ */ o(
|
|
92
|
+
G,
|
|
92
93
|
{
|
|
93
|
-
title:
|
|
94
|
+
title: z ? a?.label : "",
|
|
94
95
|
placement: "bottom",
|
|
95
|
-
children: /* @__PURE__ */
|
|
96
|
+
children: /* @__PURE__ */ o(
|
|
96
97
|
"span",
|
|
97
98
|
{
|
|
98
|
-
ref:
|
|
99
|
-
className: `${
|
|
100
|
-
children:
|
|
99
|
+
ref: C,
|
|
100
|
+
className: `${a ? e.value : e.placeholder} ${n ? e.disabled : ""}`,
|
|
101
|
+
children: a ? a.label : O
|
|
101
102
|
}
|
|
102
103
|
)
|
|
103
104
|
}
|
|
104
105
|
),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ o("span", { className: `${e.arrow} ${l ? e.open : ""}`, children: /* @__PURE__ */ o(M, {}) })
|
|
106
107
|
]
|
|
107
108
|
}
|
|
108
109
|
),
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
l && /* @__PURE__ */ s("div", { className: [
|
|
111
|
+
e.dropdown,
|
|
112
|
+
e[`dropdown-align-${j}`],
|
|
113
|
+
R === "up" ? e["dropdown-up"] : ""
|
|
114
|
+
].filter(Boolean).join(" "), children: [
|
|
115
|
+
/* @__PURE__ */ s("div", { children: [
|
|
116
|
+
k && /* @__PURE__ */ o("div", { className: e["search-wrapper"], children: /* @__PURE__ */ o(
|
|
117
|
+
J,
|
|
113
118
|
{
|
|
114
119
|
value: h,
|
|
115
120
|
placeholder: "Search",
|
|
116
121
|
autoFocus: !1,
|
|
117
|
-
onChange: (
|
|
122
|
+
onChange: (r) => i(r),
|
|
118
123
|
onClear: () => i(""),
|
|
119
|
-
wrapperClassName:
|
|
120
|
-
inputClassName:
|
|
124
|
+
wrapperClassName: e.searchWrapper,
|
|
125
|
+
inputClassName: e.searchInput
|
|
121
126
|
}
|
|
122
127
|
) }),
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
|
|
128
|
+
/* @__PURE__ */ o("div", { className: e.options, children: S.length === 0 ? /* @__PURE__ */ o("span", { className: e.noData, children: "0 results" }) : S.map((r) => /* @__PURE__ */ o(
|
|
129
|
+
H,
|
|
125
130
|
{
|
|
126
|
-
label:
|
|
131
|
+
label: r.label,
|
|
127
132
|
color: "",
|
|
128
|
-
selected: f ===
|
|
129
|
-
onChange: () => W(
|
|
133
|
+
selected: f === r.value,
|
|
134
|
+
onChange: () => W(r.value)
|
|
130
135
|
}
|
|
131
136
|
)) })
|
|
132
137
|
] }),
|
|
133
|
-
/* @__PURE__ */
|
|
134
|
-
|
|
138
|
+
/* @__PURE__ */ o(
|
|
139
|
+
A,
|
|
135
140
|
{
|
|
136
|
-
value:
|
|
141
|
+
value: t,
|
|
137
142
|
selectedValue: f,
|
|
138
143
|
showClearButton: x,
|
|
139
|
-
onClear:
|
|
140
|
-
onCancel:
|
|
141
|
-
onApply:
|
|
144
|
+
onClear: B,
|
|
145
|
+
onCancel: T,
|
|
146
|
+
onApply: F
|
|
142
147
|
}
|
|
143
148
|
)
|
|
144
149
|
] }),
|
|
145
|
-
|
|
146
|
-
/* @__PURE__ */
|
|
147
|
-
/* @__PURE__ */
|
|
150
|
+
w && /* @__PURE__ */ s("div", { className: e.helper, children: [
|
|
151
|
+
/* @__PURE__ */ o("div", { className: e["helper-icon"], children: /* @__PURE__ */ o(q, {}) }),
|
|
152
|
+
/* @__PURE__ */ o("div", { className: `${n ? e.disabled : ""}`, children: w })
|
|
148
153
|
] })
|
|
149
154
|
]
|
|
150
155
|
}
|
|
151
156
|
);
|
|
152
157
|
}
|
|
153
158
|
export {
|
|
154
|
-
|
|
159
|
+
ge as SingleSelectDropdown
|
|
155
160
|
};
|
|
@@ -16,9 +16,9 @@ const Ie = $e({
|
|
|
16
16
|
function O(t) {
|
|
17
17
|
return "Minified Redux error #" + t + "; visit https://redux.js.org/Errors?code=" + t + " for the full message or use the non-minified dev environment for full errors. ";
|
|
18
18
|
}
|
|
19
|
-
var ue =
|
|
19
|
+
var ue = function() {
|
|
20
20
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
21
|
-
}
|
|
21
|
+
}(), le = function() {
|
|
22
22
|
return Math.random().toString(36).substring(7).split("").join(".");
|
|
23
23
|
}, de = {
|
|
24
24
|
INIT: "@@redux/INIT" + le(),
|
|
@@ -1071,7 +1071,7 @@ function Sr(t, e) {
|
|
|
1071
1071
|
return r;
|
|
1072
1072
|
}
|
|
1073
1073
|
let ve = 0;
|
|
1074
|
-
const L =
|
|
1074
|
+
const L = Symbol.for("__REACT_DND_CONTEXT_INSTANCE__");
|
|
1075
1075
|
var Or = /* @__PURE__ */ Ge(function(e) {
|
|
1076
1076
|
var { children: r } = e, n = yr(e, [
|
|
1077
1077
|
"children"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as r, jsx as o, Fragment as y } from "react/jsx-runtime";
|
|
2
|
-
import { f as S } from "../../../../index-
|
|
2
|
+
import { f as S } from "../../../../index-Bcvmezbu.js";
|
|
3
3
|
import { columnLayoutStyle as x, columnsLayoutStyle as T } from "../../_utils/table.utils.js";
|
|
4
4
|
function K({
|
|
5
5
|
headerGroups: I,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { O as d } from "../../../../OptionList-
|
|
3
|
+
import { O as d } from "../../../../OptionList-BM4AleXV.js";
|
|
4
4
|
import "../../../CKCheckbox/index.js";
|
|
5
5
|
import "./OptionListItems.js";
|
|
6
6
|
import "../../../../search-B_cup-NN.js";
|