@ck-ui/component-library 1.0.1 → 1.0.3

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.
Files changed (97) hide show
  1. package/dist/DropdownFooter-CsDll1Tj.js +96 -0
  2. package/dist/{Grow-D08Iq1uH.js → Grow-wzNsNKt2.js} +41 -41
  3. package/dist/IconSlot-DvUwY6Do.js +33 -0
  4. package/dist/{OptionList-DN1xZbnV.js → OptionList-BM4AleXV.js} +361 -290
  5. package/dist/{Select-Cw96VEHD.js → Select-CiuwMSD7.js} +2366 -2427
  6. package/dist/assets/DropdownFooter-JrU15UnN.css +1 -0
  7. package/dist/assets/IconSlot-BWv5PQN_.css +1 -0
  8. package/dist/assets/ReactToastify-GNLSjkBZ.css +1 -0
  9. package/dist/assets/{ToastContent-PGkBxPUW.css → ToastContent-DpF5zCks.css} +1 -1
  10. package/dist/assets/index-0R9p-l95.css +1 -0
  11. package/dist/assets/index-BbJZjGLb.css +1 -0
  12. package/dist/assets/index-CDtSVOTj.css +1 -0
  13. package/dist/assets/{main-Dv8QUU_o.css → main-3OqLSdPm.css} +1 -1
  14. package/dist/assets/{styles-Chhklrps.css → styles-C5uYY4fL.css} +1 -1
  15. package/dist/assets/styles-CEyiQgVQ.css +1 -0
  16. package/dist/components/CKButton/_helper/ComboLayout.js +1 -1
  17. package/dist/components/CKButton/_helper/IconSlot.js +1 -1
  18. package/dist/components/CKButton/_helper/StandardLayout.js +1 -1
  19. package/dist/components/CKButton/index.js +1 -1
  20. package/dist/components/DateRangePicker/DateRangePicker.js +703 -680
  21. package/dist/components/EmptyState/index.js +7 -7
  22. package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
  23. package/dist/components/FusionChart/_config/builders.js +211 -194
  24. package/dist/components/FusionChart/_config/helpers.d.ts +3 -0
  25. package/dist/components/FusionChart/_config/helpers.d.ts.map +1 -1
  26. package/dist/components/FusionChart/_config/helpers.js +62 -46
  27. package/dist/components/FusionChart/_types/fusionChart.types.d.ts +4 -0
  28. package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -1
  29. package/dist/components/FusionChart/_utils/chartHelpers.js +1 -1
  30. package/dist/components/FusionChart/index.d.ts.map +1 -1
  31. package/dist/components/FusionChart/index.js +114 -81
  32. package/dist/components/MenuOptions/_utils/computeMenuPosition.js +1 -1
  33. package/dist/components/MenuOptions/_utils/computeSubmenuPosition.js +1 -1
  34. package/dist/components/MetricCards/Component/CardWithIconAndForecast/index.js +30 -30
  35. package/dist/components/MultiSelect/SimpleMultiSelect.d.ts +3 -1
  36. package/dist/components/MultiSelect/SimpleMultiSelect.d.ts.map +1 -1
  37. package/dist/components/MultiSelect/SimpleMultiSelect.js +150 -136
  38. package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
  39. package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
  40. package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
  41. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
  42. package/dist/components/MultiSelect/_helpers/SearchResult.d.ts +1 -1
  43. package/dist/components/MultiSelect/_helpers/SearchResult.d.ts.map +1 -1
  44. package/dist/components/MultiSelect/_helpers/SearchResult.js +31 -21
  45. package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
  46. package/dist/components/MultiSelect/_helpers/TriggerButton.d.ts.map +1 -1
  47. package/dist/components/MultiSelect/_helpers/TriggerButton.js +95 -74
  48. package/dist/components/MultiSelect/_types/type.d.ts +6 -2
  49. package/dist/components/MultiSelect/_types/type.d.ts.map +1 -1
  50. package/dist/components/MultiSelect/_utils/useDropdownDirection.d.ts +18 -0
  51. package/dist/components/MultiSelect/_utils/useDropdownDirection.d.ts.map +1 -0
  52. package/dist/components/MultiSelect/_utils/useDropdownDirection.js +23 -0
  53. package/dist/components/MultiSelect/index.d.ts +1 -1
  54. package/dist/components/MultiSelect/index.d.ts.map +1 -1
  55. package/dist/components/MultiSelect/index.js +162 -151
  56. package/dist/components/PopupAndDialogBox/components/DialogContent.js +1 -1
  57. package/dist/components/PopupAndDialogBox/components/DialogFooter.js +1 -1
  58. package/dist/components/PopupAndDialogBox/components/DialogHeader.js +1 -1
  59. package/dist/components/PopupAndDialogBox/index.js +1 -1
  60. package/dist/components/Search/index.d.ts.map +1 -1
  61. package/dist/components/Search/index.js +63 -61
  62. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +3 -3
  63. package/dist/components/SingleSelectDropdown/index.d.ts.map +1 -1
  64. package/dist/components/SingleSelectDropdown/index.js +83 -78
  65. package/dist/components/Table/_helpers/ColumnManager/index.js +3 -3
  66. package/dist/components/Table/_helpers/GroupedHeader/index.js +1 -1
  67. package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +1 -1
  68. package/dist/components/Table/_helpers/TableFilterModal/RangeSelector.js +133 -142
  69. package/dist/components/Table/_helpers/TableFilterModal/index.js +1 -1
  70. package/dist/components/Table/_helpers/TableRows.js +1 -1
  71. package/dist/components/Table/index.js +2 -2
  72. package/dist/components/TextField/index.js +331 -328
  73. package/dist/components/Toast/_helper/ToastContent.js +25 -25
  74. package/dist/components/Toast/_helper/ToastProvider.js +9 -9
  75. package/dist/components/Toast/_hooks/useToast.js +1 -1
  76. package/dist/components/Tooltip/index.js +772 -697
  77. package/dist/createSimplePaletteValueFilter-BqxST_wX.js +24 -0
  78. package/dist/index-BR6M9zUI.js +382 -0
  79. package/dist/{index-f7TB87Mf.js → index-Bcvmezbu.js} +23 -3
  80. package/dist/main.js +1 -1
  81. package/dist/styles.module-yIHBMSTk.js +53 -0
  82. package/dist/styles.module-yNDMDNO-.js +14 -0
  83. package/dist/{useSlot-ylt7_lTY.js → useSlot-BiMlGawc.js} +656 -623
  84. package/package.json +3 -3
  85. package/dist/DropdownFooter-Dm6aLDx8.js +0 -89
  86. package/dist/IconSlot-CPQsGPB-.js +0 -33
  87. package/dist/assets/DropdownFooter-DjdPf69A.css +0 -1
  88. package/dist/assets/IconSlot-D8WWEHKb.css +0 -1
  89. package/dist/assets/ReactToastify-tlSLHgLC.css +0 -1
  90. package/dist/assets/index-B81zpOpq.css +0 -1
  91. package/dist/assets/index-DNhNBxL9.css +0 -1
  92. package/dist/assets/index-YHUWVH17.css +0 -1
  93. package/dist/assets/styles-Bj-7zn37.css +0 -1
  94. package/dist/contains-kLLEGdNH.js +0 -41
  95. package/dist/index-C8cPPHJD.js +0 -1196
  96. package/dist/styles.module-BZaUJMlf.js +0 -14
  97. package/dist/styles.module-DakCndIP.js +0 -42
@@ -1,10 +1,10 @@
1
1
  import { jsxs as O, jsx as w } from "react/jsx-runtime";
2
2
  import * as h from "react";
3
- import { S as ke, N as nt, f as le, U as at, Q as ot, A as ue, o as je, q as st, r as it, P as t, O as lt, W as ct, X as J, x as Ue, d as Re, g as ut, L as ae, y as de, J as Je, e as Ke } from "../../../../useSlot-ylt7_lTY.js";
3
+ import { u as ke, a as rt, c as le, b as nt, d as at, o as ue, e as je, g as ot, f as st, P as t, h as it, i as lt, j as G, s as ae, k as Ue, l as Re, m as ct, n as de, p as Ge, q as Ke } from "../../../../useSlot-BiMlGawc.js";
4
4
  import { c as xe } from "../../../../clsx-OuTLNxxd.js";
5
- import { a as Ye, c as Ge, b as qe } from "../../../../contains-kLLEGdNH.js";
5
+ import { a as Ye, c as qe } from "../../../../createSimplePaletteValueFilter-BqxST_wX.js";
6
6
  import { i as _e } from "../../../../isFocusVisible-BzX3wEi7.js";
7
- const dt = {
7
+ const ut = {
8
8
  border: 0,
9
9
  clip: "rect(0 0 0 0)",
10
10
  height: "1px",
@@ -15,14 +15,14 @@ const dt = {
15
15
  whiteSpace: "nowrap",
16
16
  width: "1px"
17
17
  };
18
- function pt(e, a, i = (c, p) => c === p) {
18
+ function dt(e, a, i = (c, p) => c === p) {
19
19
  return e.length === a.length && e.every((c, p) => i(c, a[p]));
20
20
  }
21
- const ft = 2, mt = [], Me = {};
21
+ const pt = 2, ft = [], Me = {};
22
22
  function ce(e, a, i, c, p) {
23
23
  return i === 1 ? Math.min(e + a, p) : Math.max(e - a, c);
24
24
  }
25
- function Qe(e, a) {
25
+ function Je(e, a) {
26
26
  return e - a;
27
27
  }
28
28
  function Be(e, a, i = -1) {
@@ -37,7 +37,7 @@ function Be(e, a, i = -1) {
37
37
  } = c;
38
38
  return p == null ? p : i >= 0 && e[i] === e[p] ? i : p;
39
39
  }
40
- function Ce(e, a) {
40
+ function Ne(e, a) {
41
41
  if (a.current != null && e.changedTouches) {
42
42
  const i = e;
43
43
  for (let c = 0; c < i.changedTouches.length; c += 1) {
@@ -58,10 +58,10 @@ function Ce(e, a) {
58
58
  function Pe(e, a, i) {
59
59
  return (e - a) * 100 / (i - a);
60
60
  }
61
- function bt(e, a, i) {
61
+ function mt(e, a, i) {
62
62
  return (i - a) * e + a;
63
63
  }
64
- function ht(e) {
64
+ function bt(e) {
65
65
  if (Math.abs(e) < 1) {
66
66
  const i = e.toExponential().split("e-"), c = i[0].split(".")[1];
67
67
  return (c ? c.length : 0) + parseInt(i[1], 10);
@@ -69,17 +69,17 @@ function ht(e) {
69
69
  const a = e.toString().split(".")[1];
70
70
  return a ? a.length : 0;
71
71
  }
72
- function gt(e, a, i) {
72
+ function ht(e, a, i) {
73
73
  const c = Math.round((e - i) / a) * a + i;
74
- return Number(c.toFixed(ht(a)));
74
+ return Number(c.toFixed(bt(a)));
75
75
  }
76
76
  function We(e, a, i) {
77
77
  const c = e.slice();
78
- return c[i] = a, c.sort(Qe);
78
+ return c[i] = a, c.sort(Je);
79
79
  }
80
80
  function Ae(e, a, i, c) {
81
81
  const p = ue(e.current), y = Ye(p);
82
- if (!Ge(e.current, y) || Number(y?.getAttribute("data-index")) !== a) {
82
+ if (!e.current?.contains(y) || Number(y?.getAttribute("data-index")) !== a) {
83
83
  const S = e.current?.querySelector(`[type="range"][data-index="${a}"]`);
84
84
  S != null && (c == null ? S.focus({
85
85
  preventScroll: !0
@@ -94,9 +94,9 @@ function Ae(e, a, i, c) {
94
94
  i && i(a);
95
95
  }
96
96
  function Ie(e, a) {
97
- return typeof e == "number" && typeof a == "number" ? e === a : typeof e == "object" && typeof a == "object" ? pt(e, a) : !1;
97
+ return typeof e == "number" && typeof a == "number" ? e === a : typeof e == "object" && typeof a == "object" ? dt(e, a) : !1;
98
98
  }
99
- const vt = {
99
+ const gt = {
100
100
  horizontal: {
101
101
  offset: (e) => ({
102
102
  left: `${e}%`
@@ -121,8 +121,8 @@ const vt = {
121
121
  height: `${e}%`
122
122
  })
123
123
  }
124
- }, yt = (e) => e;
125
- function kt(e) {
124
+ }, vt = (e) => e;
125
+ function yt(e) {
126
126
  const {
127
127
  "aria-labelledby": a,
128
128
  defaultValue: i,
@@ -135,16 +135,16 @@ function kt(e) {
135
135
  name: K,
136
136
  onChange: H,
137
137
  onChangeCommitted: _,
138
- orientation: z = "horizontal",
139
- rootRef: D,
140
- scale: v = yt,
138
+ orientation: D = "horizontal",
139
+ rootRef: z,
140
+ scale: v = vt,
141
141
  step: b = 1,
142
142
  shiftStep: k = 10,
143
143
  tabIndex: T,
144
144
  value: E
145
- } = e, M = h.useRef(void 0), oe = h.useRef(null), [B, G] = h.useState(-1), [Oe, Q] = h.useState(-1), [Z, we] = h.useState(!1), se = h.useRef(0), ie = h.useRef(-1), W = h.useRef(!1), pe = h.useRef(-1), $ = ke(() => {
145
+ } = e, M = h.useRef(void 0), oe = h.useRef(null), [B, J] = h.useState(-1), [Oe, Q] = h.useState(-1), [Z, we] = h.useState(!1), se = h.useRef(0), ie = h.useRef(-1), W = h.useRef(!1), pe = h.useRef(-1), $ = ke(() => {
146
146
  oe.current != null && (cancelAnimationFrame(oe.current), oe.current = null);
147
- }), F = h.useRef(null), [P, L] = nt({
147
+ }), F = h.useRef(null), [P, L] = rt({
148
148
  controlled: E,
149
149
  default: i ?? u,
150
150
  name: "Slider"
@@ -162,7 +162,7 @@ function kt(e) {
162
162
  return [le(P, u, f)];
163
163
  if (P == null)
164
164
  return [u];
165
- const n = P.slice().sort(Qe);
165
+ const n = P.slice().sort(Je);
166
166
  for (let r = 0; r < n.length; r += 1) {
167
167
  const o = n[r];
168
168
  n[r] = o == null ? u : le(o, u, f);
@@ -177,23 +177,23 @@ function kt(e) {
177
177
  };
178
178
  return n;
179
179
  }
180
- return Array.isArray(S) ? S : mt;
181
- }, [S, b, u, f]), N = h.useMemo(() => {
180
+ return Array.isArray(S) ? S : ft;
181
+ }, [S, b, u, f]), C = h.useMemo(() => {
182
182
  const n = new Array(U.length);
183
183
  for (let r = 0; r < U.length; r += 1)
184
184
  n[r] = U[r].value;
185
185
  return n;
186
- }, [U]), [fe, Y] = h.useState(-1), x = h.useRef(null), me = at(D, x), Ve = (n) => (r) => {
186
+ }, [U]), [fe, Y] = h.useState(-1), x = h.useRef(null), me = nt(z, x), Ve = (n) => (r) => {
187
187
  const o = Number(r.currentTarget.getAttribute("data-index"));
188
188
  _e(r.target) && Y(o), Q(o), n?.onFocus?.(r);
189
189
  }, be = (n) => (r) => {
190
190
  _e(r.target) || Y(-1), Q(-1), n?.onBlur?.(r);
191
191
  }, I = (n, r) => {
192
- const o = Number(n.currentTarget.getAttribute("data-index")), l = A[o], s = N.indexOf(l);
192
+ const o = Number(n.currentTarget.getAttribute("data-index")), l = A[o], s = C.indexOf(l);
193
193
  let d = r;
194
194
  if (U && b == null) {
195
- const m = N[N.length - 1];
196
- d >= m ? d = m : d <= N[0] ? d = N[0] : d = d < l ? N[s - 1] : N[s + 1];
195
+ const m = C[C.length - 1];
196
+ d >= m ? d = m : d <= C[0] ? d = C[0] : d = d < l ? C[s - 1] : C[s + 1];
197
197
  }
198
198
  if (d = le(d, u, f), ee) {
199
199
  p && (d = le(d, A[o - 1] || -1 / 0, A[o + 1] || 1 / 0));
@@ -203,7 +203,7 @@ function kt(e) {
203
203
  p || (g = d.indexOf(m)), Ae(x, g);
204
204
  }
205
205
  L(d), Y(o), H && !Ie(d, P) && j(n, d, o), _ && _(n, F.current ?? d);
206
- }, ze = (n) => (r) => {
206
+ }, De = (n) => (r) => {
207
207
  if (["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "PageUp", "PageDown", "Home", "End"].includes(r.key)) {
208
208
  r.preventDefault();
209
209
  const o = Number(r.currentTarget.getAttribute("data-index")), l = A[o];
@@ -237,22 +237,22 @@ function kt(e) {
237
237
  break;
238
238
  }
239
239
  } else if (U) {
240
- const d = N[N.length - 1], m = N.indexOf(l), g = [y ? "ArrowRight" : "ArrowLeft", "ArrowDown", "PageDown", "Home"], q = [y ? "ArrowLeft" : "ArrowRight", "ArrowUp", "PageUp", "End"];
241
- g.includes(r.key) ? m === 0 ? s = N[0] : s = N[m - 1] : q.includes(r.key) && (m === N.length - 1 ? s = d : s = N[m + 1]);
240
+ const d = C[C.length - 1], m = C.indexOf(l), g = [y ? "ArrowRight" : "ArrowLeft", "ArrowDown", "PageDown", "Home"], q = [y ? "ArrowLeft" : "ArrowRight", "ArrowUp", "PageUp", "End"];
241
+ g.includes(r.key) ? m === 0 ? s = C[0] : s = C[m - 1] : q.includes(r.key) && (m === C.length - 1 ? s = d : s = C[m + 1]);
242
242
  }
243
243
  s != null && I(r, s);
244
244
  }
245
245
  n?.onKeyDown?.(r);
246
246
  };
247
- ot(() => {
247
+ at(() => {
248
248
  const n = Ye(ue(x.current));
249
- c && Ge(x.current, n) && n != null && "blur" in n && n.blur();
250
- }, [c]), c && B !== -1 && G(-1), c && fe !== -1 && Y(-1);
251
- const De = (n) => (r) => {
249
+ c && x.current?.contains(n) && n != null && "blur" in n && n.blur();
250
+ }, [c]), c && B !== -1 && J(-1), c && fe !== -1 && Y(-1);
251
+ const ze = (n) => (r) => {
252
252
  n.onChange?.(r), I(r, r.currentTarget.valueAsNumber);
253
253
  }, te = h.useRef(void 0);
254
- let C = z;
255
- y && z === "horizontal" && (C += "-reverse");
254
+ let N = D;
255
+ y && D === "horizontal" && (N += "-reverse");
256
256
  const R = (n) => {
257
257
  const {
258
258
  current: r
@@ -266,21 +266,21 @@ function kt(e) {
266
266
  left: d
267
267
  } = r.getBoundingClientRect();
268
268
  let m;
269
- C.startsWith("vertical") ? m = (s - n.y) / l : m = (n.x - d) / o, C.includes("-reverse") && (m = 1 - m);
269
+ N.startsWith("vertical") ? m = (s - n.y) / l : m = (n.x - d) / o, N.includes("-reverse") && (m = 1 - m);
270
270
  let g;
271
- if (g = bt(m, u, f), b)
272
- g = gt(g, b, u);
271
+ if (g = mt(m, u, f), b)
272
+ g = ht(g, b, u);
273
273
  else {
274
- const Ne = Be(N, g);
275
- g = N[Ne];
274
+ const Ce = Be(C, g);
275
+ g = C[Ce];
276
276
  }
277
277
  g = le(g, u, f);
278
278
  let q = 0;
279
279
  if (ee) {
280
- const Ne = te.current !== -1;
281
- q = Ne ? te.current : Be(A, g, ie.current), p && (g = le(g, A[q - 1] || -1 / 0, A[q + 1] || 1 / 0));
282
- const rt = g;
283
- g = We(A, g, q), p && Ne || (q = g.indexOf(rt), te.current = q);
280
+ const Ce = te.current !== -1;
281
+ q = Ce ? te.current : Be(A, g, ie.current), p && (g = le(g, A[q - 1] || -1 / 0, A[q + 1] || 1 / 0));
282
+ const tt = g;
283
+ g = We(A, g, q), p && Ce || (q = g.indexOf(tt), te.current = q);
284
284
  }
285
285
  return {
286
286
  newValue: g,
@@ -289,7 +289,7 @@ function kt(e) {
289
289
  }, re = ke((n) => {
290
290
  if ("pointerId" in n && n.pointerId !== pe.current)
291
291
  return;
292
- const r = Ce(n, M);
292
+ const r = Ne(n, M);
293
293
  if (!r)
294
294
  return;
295
295
  if (se.current += 1, n.type === "pointermove" && n.buttons === 0) {
@@ -297,15 +297,15 @@ function kt(e) {
297
297
  return;
298
298
  }
299
299
  const o = R(r);
300
- o && (Ae(x, o.activeIndex, G, !1), ie.current = o.activeIndex, L(o.newValue), !Z && se.current > ft && we(!0), H && !Ie(o.newValue, P) && j(n, o.newValue, o.activeIndex));
300
+ o && (Ae(x, o.activeIndex, J, !1), ie.current = o.activeIndex, L(o.newValue), !Z && se.current > pt && we(!0), H && !Ie(o.newValue, P) && j(n, o.newValue, o.activeIndex));
301
301
  }), X = ke((n) => {
302
302
  if ("pointerId" in n && n.pointerId !== pe.current)
303
303
  return;
304
- const r = Ce(n, M);
304
+ const r = Ne(n, M);
305
305
  if (we(!1), !r)
306
306
  return;
307
307
  const o = R(r);
308
- G(-1), n.type === "touchend" && Q(-1), o && _ && _(n, F.current ?? o.newValue), "pointerType" in n && x.current?.hasPointerCapture(n.pointerId) && x.current.releasePointerCapture(n.pointerId), M.current = void 0, pe.current = -1, ne();
308
+ J(-1), n.type === "touchend" && Q(-1), o && _ && _(n, F.current ?? o.newValue), "pointerType" in n && x.current?.hasPointerCapture(n.pointerId) && x.current.releasePointerCapture(n.pointerId), M.current = void 0, pe.current = -1, ne();
309
309
  }), he = ke((n) => {
310
310
  if (c)
311
311
  return;
@@ -317,11 +317,11 @@ function kt(e) {
317
317
  }
318
318
  const r = n.changedTouches[0];
319
319
  r != null && (M.current = r.identifier);
320
- const o = Ce(n, M);
320
+ const o = Ne(n, M);
321
321
  if (o !== !1) {
322
322
  te.current = -1;
323
323
  const s = R(o);
324
- s && (Ae(x, s.activeIndex, G, !1), ie.current = s.activeIndex, L(s.newValue), H && !Ie(s.newValue, P) && j(n, s.newValue, s.activeIndex));
324
+ s && (Ae(x, s.activeIndex, J, !1), ie.current = s.activeIndex, L(s.newValue), H && !Ie(s.newValue, P) && j(n, s.newValue, s.activeIndex));
325
325
  }
326
326
  se.current = 0;
327
327
  const l = ue(x.current);
@@ -348,13 +348,13 @@ function kt(e) {
348
348
  const Ee = (n) => (r) => {
349
349
  if (n.onPointerDown?.(r), r.pointerType === "touch" && (W.current = !0), c || r.defaultPrevented || r.button !== 0)
350
350
  return;
351
- const o = Ce(r, M);
351
+ const o = Ne(r, M);
352
352
  if (o !== !1) {
353
353
  te.current = -1;
354
354
  const s = R(o);
355
355
  if (s) {
356
356
  const d = x.current?.querySelector(`input[type="range"][data-index="${s.activeIndex}"]`), m = ue(x.current), g = d != null && d === Ye(m);
357
- G(s.activeIndex), ie.current = s.activeIndex, g ? r.preventDefault() : ($(), oe.current = requestAnimationFrame(() => {
357
+ J(s.activeIndex), ie.current = s.activeIndex, g ? r.preventDefault() : ($(), oe.current = requestAnimationFrame(() => {
358
358
  oe.current = null, Ae(x, s.activeIndex, void 0, !1);
359
359
  })), L(s.newValue), H && !Ie(s.newValue, P) && j(r, s.newValue, s.activeIndex);
360
360
  }
@@ -405,18 +405,18 @@ function kt(e) {
405
405
  };
406
406
  };
407
407
  let ye;
408
- return z === "vertical" && (ye = y ? "vertical-rl" : "vertical-lr"), {
408
+ return D === "vertical" && (ye = y ? "vertical-rl" : "vertical-lr"), {
409
409
  active: B,
410
- axis: C,
411
- axisProps: vt,
410
+ axis: N,
411
+ axisProps: gt,
412
412
  dragging: Z,
413
413
  focusedThumbIndex: fe,
414
414
  getHiddenInputProps: (n = Me) => {
415
415
  const r = je(n), o = {
416
- onChange: De(r),
416
+ onChange: ze(r),
417
417
  onFocus: Ve(r),
418
418
  onBlur: be(r),
419
- onKeyDown: ze(r)
419
+ onKeyDown: De(r)
420
420
  }, l = {
421
421
  ...r,
422
422
  ...o
@@ -424,7 +424,7 @@ function kt(e) {
424
424
  return {
425
425
  tabIndex: T,
426
426
  "aria-labelledby": a,
427
- "aria-orientation": z,
427
+ "aria-orientation": D,
428
428
  "aria-valuemax": v(f),
429
429
  "aria-valuemin": v(u),
430
430
  name: K,
@@ -436,7 +436,7 @@ function kt(e) {
436
436
  ...n,
437
437
  ...l,
438
438
  style: {
439
- ...dt,
439
+ ...ut,
440
440
  direction: y ? "rtl" : "ltr",
441
441
  // So that VoiceOver's focus indicator matches the thumb's dimensions
442
442
  width: "100%",
@@ -457,10 +457,10 @@ function kt(e) {
457
457
  getThumbStyle: ve
458
458
  };
459
459
  }
460
- function xt(e) {
460
+ function kt(e) {
461
461
  return st("MuiSlider", e);
462
462
  }
463
- const V = it("MuiSlider", ["root", "active", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "disabled", "dragging", "focusVisible", "mark", "markActive", "marked", "markLabel", "markLabelActive", "rail", "sizeSmall", "thumb", "track", "trackInverted", "trackFalse", "valueLabel", "valueLabelOpen", "valueLabelCircle", "valueLabelLabel", "vertical"]), wt = (e) => {
463
+ const V = ot("MuiSlider", ["root", "active", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "disabled", "dragging", "focusVisible", "mark", "markActive", "marked", "markLabel", "markLabelActive", "rail", "sizeSmall", "thumb", "track", "trackInverted", "trackFalse", "valueLabel", "valueLabelOpen", "valueLabelCircle", "valueLabelLabel", "vertical"]), xt = (e) => {
464
464
  const {
465
465
  open: a
466
466
  } = e;
@@ -470,12 +470,12 @@ const V = it("MuiSlider", ["root", "active", "colorPrimary", "colorSecondary", "
470
470
  label: V.valueLabelLabel
471
471
  };
472
472
  };
473
- function Ze(e) {
473
+ function Qe(e) {
474
474
  const {
475
475
  children: a,
476
476
  className: i,
477
477
  value: c
478
- } = e, p = wt(e);
478
+ } = e, p = xt(e);
479
479
  return a ? /* @__PURE__ */ h.cloneElement(a, {
480
480
  className: a.props.className
481
481
  }, /* @__PURE__ */ O(h.Fragment, {
@@ -492,7 +492,7 @@ function Ze(e) {
492
492
  })]
493
493
  })) : null;
494
494
  }
495
- process.env.NODE_ENV !== "production" && (Ze.propTypes = {
495
+ process.env.NODE_ENV !== "production" && (Qe.propTypes = {
496
496
  children: t.element.isRequired,
497
497
  className: t.string,
498
498
  value: t.node
@@ -500,7 +500,7 @@ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
500
500
  function Xe(e) {
501
501
  return e;
502
502
  }
503
- const St = ae("span", {
503
+ const wt = ae("span", {
504
504
  name: "MuiSlider",
505
505
  slot: "Root",
506
506
  overridesResolver: (e, a) => {
@@ -600,7 +600,7 @@ const St = ae("span", {
600
600
  marginRight: 44
601
601
  }
602
602
  }]
603
- }))), Tt = ae("span", {
603
+ }))), St = ae("span", {
604
604
  name: "MuiSlider",
605
605
  slot: "Rail"
606
606
  })({
@@ -609,10 +609,6 @@ const St = ae("span", {
609
609
  borderRadius: "inherit",
610
610
  backgroundColor: "currentColor",
611
611
  opacity: 0.38,
612
- "@media (forced-colors: active)": {
613
- border: "1px solid transparent",
614
- boxSizing: "border-box"
615
- },
616
612
  variants: [{
617
613
  props: {
618
614
  orientation: "horizontal"
@@ -641,7 +637,7 @@ const St = ae("span", {
641
637
  opacity: 1
642
638
  }
643
639
  }]
644
- }), Lt = ae("span", {
640
+ }), Tt = ae("span", {
645
641
  name: "MuiSlider",
646
642
  slot: "Track"
647
643
  })(de(({
@@ -660,9 +656,7 @@ const St = ae("span", {
660
656
  size: "small"
661
657
  },
662
658
  style: {
663
- "@media (forced-colors: none)": {
664
- border: "none"
665
- }
659
+ border: "none"
666
660
  }
667
661
  }, {
668
662
  props: {
@@ -710,7 +704,7 @@ const St = ae("span", {
710
704
  }
711
705
  }
712
706
  }))]
713
- }))), Nt = ae("span", {
707
+ }))), Lt = ae("span", {
714
708
  name: "MuiSlider",
715
709
  slot: "Thumb"
716
710
  })(de(({
@@ -729,9 +723,6 @@ const St = ae("span", {
729
723
  transition: e.transitions.create(["box-shadow", "left", "bottom"], {
730
724
  duration: e.transitions.duration.shortest
731
725
  }),
732
- "@media (forced-colors: active)": {
733
- border: "1px solid ButtonBorder"
734
- },
735
726
  "&::before": {
736
727
  position: "absolute",
737
728
  content: '""',
@@ -799,7 +790,7 @@ const St = ae("span", {
799
790
  }
800
791
  }
801
792
  }))]
802
- }))), et = ae(Ze, {
793
+ }))), Ze = ae(Qe, {
803
794
  name: "MuiSlider",
804
795
  slot: "ValueLabel"
805
796
  })(de(({
@@ -883,7 +874,7 @@ const St = ae("span", {
883
874
  }
884
875
  }]
885
876
  })));
886
- process.env.NODE_ENV !== "production" && (et.propTypes = {
877
+ process.env.NODE_ENV !== "production" && (Ze.propTypes = {
887
878
  // ┌────────────────────────────── Warning ──────────────────────────────┐
888
879
  // │ These PropTypes are generated from the TypeScript type definitions. │
889
880
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -908,7 +899,7 @@ process.env.NODE_ENV !== "production" && (et.propTypes = {
908
899
  const Ct = ae("span", {
909
900
  name: "MuiSlider",
910
901
  slot: "Mark",
911
- shouldForwardProp: (e) => Je(e) && e !== "markActive",
902
+ shouldForwardProp: (e) => Ge(e) && e !== "markActive",
912
903
  overridesResolver: (e, a) => {
913
904
  const {
914
905
  markActive: i
@@ -948,10 +939,10 @@ const Ct = ae("span", {
948
939
  opacity: 0.8
949
940
  }
950
941
  }]
951
- }))), At = ae("span", {
942
+ }))), Nt = ae("span", {
952
943
  name: "MuiSlider",
953
944
  slot: "MarkLabel",
954
- shouldForwardProp: (e) => Je(e) && e !== "markLabelActive"
945
+ shouldForwardProp: (e) => Ge(e) && e !== "markLabelActive"
955
946
  })(de(({
956
947
  theme: e
957
948
  }) => ({
@@ -989,7 +980,7 @@ const Ct = ae("span", {
989
980
  color: (e.vars || e).palette.text.primary
990
981
  }
991
982
  }]
992
- }))), It = (e) => {
983
+ }))), At = (e) => {
993
984
  const {
994
985
  disabled: a,
995
986
  dragging: i,
@@ -1013,14 +1004,14 @@ const Ct = ae("span", {
1013
1004
  disabled: ["disabled"],
1014
1005
  focusVisible: ["focusVisible"]
1015
1006
  };
1016
- return ut(K, xt, S);
1017
- }, Mt = ({
1007
+ return ct(K, kt, S);
1008
+ }, It = ({
1018
1009
  children: e
1019
- }) => e, tt = /* @__PURE__ */ h.forwardRef(function(a, i) {
1020
- const c = lt({
1010
+ }) => e, et = /* @__PURE__ */ h.forwardRef(function(a, i) {
1011
+ const c = it({
1021
1012
  props: a,
1022
1013
  name: "MuiSlider"
1023
- }), p = ct(), {
1014
+ }), p = lt(), {
1024
1015
  "aria-label": y,
1025
1016
  "aria-valuetext": S,
1026
1017
  "aria-labelledby": f,
@@ -1028,8 +1019,8 @@ const Ct = ae("span", {
1028
1019
  classes: K,
1029
1020
  className: H,
1030
1021
  disableSwap: _ = !1,
1031
- disabled: z = !1,
1032
- getAriaLabel: D,
1022
+ disabled: D = !1,
1023
+ getAriaLabel: z,
1033
1024
  getAriaValueText: v,
1034
1025
  marks: b = !1,
1035
1026
  max: k = 100,
@@ -1038,7 +1029,7 @@ const Ct = ae("span", {
1038
1029
  onChange: M,
1039
1030
  onChangeCommitted: oe,
1040
1031
  orientation: B = "horizontal",
1041
- shiftStep: G = 10,
1032
+ shiftStep: J = 10,
1042
1033
  size: Oe = "medium",
1043
1034
  step: Q = 1,
1044
1035
  scale: Z = Xe,
@@ -1056,14 +1047,14 @@ const Ct = ae("span", {
1056
1047
  max: k,
1057
1048
  min: T,
1058
1049
  classes: K,
1059
- disabled: z,
1050
+ disabled: D,
1060
1051
  disableSwap: _,
1061
1052
  orientation: B,
1062
1053
  marks: b,
1063
1054
  color: u,
1064
1055
  size: Oe,
1065
1056
  step: Q,
1066
- shiftStep: G,
1057
+ shiftStep: J,
1067
1058
  scale: Z,
1068
1059
  track: W,
1069
1060
  valueLabelDisplay: $,
@@ -1073,7 +1064,7 @@ const Ct = ae("span", {
1073
1064
  getRootProps: ee,
1074
1065
  getHiddenInputProps: A,
1075
1066
  getThumbProps: U,
1076
- open: N,
1067
+ open: C,
1077
1068
  active: fe,
1078
1069
  axis: Y,
1079
1070
  focusedThumbIndex: x,
@@ -1081,64 +1072,64 @@ const Ct = ae("span", {
1081
1072
  dragging: Ve,
1082
1073
  marks: be,
1083
1074
  values: I,
1084
- trackOffset: ze,
1085
- trackLeap: De,
1075
+ trackOffset: De,
1076
+ trackLeap: ze,
1086
1077
  getThumbStyle: te
1087
- } = kt({
1078
+ } = yt({
1088
1079
  ...L,
1089
1080
  rootRef: i
1090
1081
  });
1091
1082
  L.marked = be.length > 0 && be.some((o) => o.label), L.dragging = Ve, L.focusedThumbIndex = x;
1092
- const C = It(L), R = {
1083
+ const N = At(L), R = {
1093
1084
  slots: se,
1094
1085
  slotProps: we
1095
- }, [re, X] = J("root", {
1096
- elementType: St,
1086
+ }, [re, X] = G("root", {
1087
+ elementType: wt,
1097
1088
  getSlotProps: ee,
1098
1089
  externalForwardedProps: {
1099
1090
  ...R,
1100
1091
  ...P
1101
1092
  },
1102
1093
  ownerState: L,
1103
- className: [C.root, H]
1104
- }), [he, ne] = J("rail", {
1105
- elementType: Tt,
1094
+ className: [N.root, H]
1095
+ }), [he, ne] = G("rail", {
1096
+ elementType: St,
1106
1097
  externalForwardedProps: R,
1107
1098
  ownerState: L,
1108
- className: C.rail
1109
- }), [Ee, Se] = J("track", {
1110
- elementType: Lt,
1099
+ className: N.rail
1100
+ }), [Ee, Se] = G("track", {
1101
+ elementType: Tt,
1111
1102
  externalForwardedProps: R,
1112
1103
  additionalProps: {
1113
1104
  style: {
1114
- ...j[Y].offset(ze),
1115
- ...j[Y].leap(De)
1105
+ ...j[Y].offset(De),
1106
+ ...j[Y].leap(ze)
1116
1107
  }
1117
1108
  },
1118
1109
  ownerState: L,
1119
- className: C.track
1120
- }), [$e, ge] = J("thumb", {
1121
- elementType: Nt,
1110
+ className: N.track
1111
+ }), [$e, ge] = G("thumb", {
1112
+ elementType: Lt,
1122
1113
  getSlotProps: U,
1123
1114
  externalForwardedProps: R,
1124
1115
  ownerState: L,
1125
- className: C.thumb
1126
- }), [He, Fe] = J("valueLabel", {
1127
- elementType: et,
1116
+ className: N.thumb
1117
+ }), [He, Fe] = G("valueLabel", {
1118
+ elementType: Ze,
1128
1119
  externalForwardedProps: R,
1129
1120
  ownerState: L,
1130
- className: C.valueLabel
1131
- }), [Te, ve] = J("mark", {
1121
+ className: N.valueLabel
1122
+ }), [Te, ve] = G("mark", {
1132
1123
  elementType: Ct,
1133
1124
  externalForwardedProps: R,
1134
1125
  ownerState: L,
1135
- className: C.mark
1136
- }), [ye, Le] = J("markLabel", {
1137
- elementType: At,
1126
+ className: N.mark
1127
+ }), [ye, Le] = G("markLabel", {
1128
+ elementType: Nt,
1138
1129
  externalForwardedProps: R,
1139
1130
  ownerState: L,
1140
- className: C.markLabel
1141
- }), [n, r] = J("input", {
1131
+ className: N.markLabel
1132
+ }), [n, r] = G("input", {
1142
1133
  elementType: "input",
1143
1134
  getSlotProps: A,
1144
1135
  externalForwardedProps: R,
@@ -1164,7 +1155,7 @@ const Ct = ae("span", {
1164
1155
  ...d,
1165
1156
  ...ve.style
1166
1157
  },
1167
- className: xe(ve.className, m && C.markActive)
1158
+ className: xe(ve.className, m && N.markActive)
1168
1159
  }), o.label != null ? /* @__PURE__ */ w(ye, {
1169
1160
  "aria-hidden": !0,
1170
1161
  "data-index": l,
@@ -1176,12 +1167,12 @@ const Ct = ae("span", {
1176
1167
  ...d,
1177
1168
  ...Le.style
1178
1169
  },
1179
- className: xe(C.markLabel, Le.className, m && C.markLabelActive),
1170
+ className: xe(N.markLabel, Le.className, m && N.markLabelActive),
1180
1171
  children: o.label
1181
1172
  }) : null]
1182
1173
  }, l);
1183
1174
  }), I.map((o, l) => {
1184
- const s = Pe(o, T, k), d = j[Y].offset(s), m = $ === "off" ? Mt : He;
1175
+ const s = Pe(o, T, k), d = j[Y].offset(s), m = $ === "off" ? It : He;
1185
1176
  return (
1186
1177
  /* TODO v6: Change component structure. It will help in avoiding the complicated React.cloneElement API added in SliderValueLabel component. Should be: Thumb -> Input, ValueLabel. Follow Joy UI's Slider structure. */
1187
1178
  /* @__PURE__ */ w(m, {
@@ -1190,14 +1181,14 @@ const Ct = ae("span", {
1190
1181
  valueLabelDisplay: $,
1191
1182
  value: typeof F == "function" ? F(Z(o), l) : F,
1192
1183
  index: l,
1193
- open: N === l || fe === l || $ === "on",
1194
- disabled: z
1184
+ open: C === l || fe === l || $ === "on",
1185
+ disabled: D
1195
1186
  },
1196
1187
  ...Fe,
1197
1188
  children: /* @__PURE__ */ w($e, {
1198
1189
  "data-index": l,
1199
1190
  ...ge,
1200
- className: xe(C.thumb, ge.className, fe === l && C.active, x === l && C.focusVisible),
1191
+ className: xe(N.thumb, ge.className, fe === l && N.active, x === l && N.focusVisible),
1201
1192
  style: {
1202
1193
  ...d,
1203
1194
  ...te(l),
@@ -1205,7 +1196,7 @@ const Ct = ae("span", {
1205
1196
  },
1206
1197
  children: /* @__PURE__ */ w(n, {
1207
1198
  "data-index": l,
1208
- "aria-label": D ? D(l) : y,
1199
+ "aria-label": z ? z(l) : y,
1209
1200
  "aria-valuenow": Z(o),
1210
1201
  "aria-labelledby": f,
1211
1202
  "aria-valuetext": v ? v(Z(o), l) : S,
@@ -1218,7 +1209,7 @@ const Ct = ae("span", {
1218
1209
  })]
1219
1210
  });
1220
1211
  });
1221
- process.env.NODE_ENV !== "production" && (tt.propTypes = {
1212
+ process.env.NODE_ENV !== "production" && (et.propTypes = {
1222
1213
  // ┌────────────────────────────── Warning ──────────────────────────────┐
1223
1214
  // │ These PropTypes are generated from the TypeScript type definitions. │
1224
1215
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -1472,7 +1463,7 @@ function Dt({
1472
1463
  const T = a || u();
1473
1464
  let E;
1474
1465
  k === 0 ? E = { ...T, min: Math.min(b[0], T.max - 0) } : E = { ...T, max: Math.max(b[1], T.min + 0) }, S(E);
1475
- }, z = u(), D = a || z;
1466
+ }, D = u(), z = a || D;
1476
1467
  return /* @__PURE__ */ O("div", { children: [
1477
1468
  /* @__PURE__ */ O("div", { className: `ckds-filter-detail ${c ? "" : "mb-6"}`, children: [
1478
1469
  /* @__PURE__ */ O("div", { className: "ckds-filter-slider-values", children: [
@@ -1484,7 +1475,7 @@ function Dt({
1484
1475
  {
1485
1476
  type: "number",
1486
1477
  name: "min",
1487
- value: D.min,
1478
+ value: z.min,
1488
1479
  onChange: K,
1489
1480
  className: "ckds-currency-input-field",
1490
1481
  placeholder: "0",
@@ -1502,7 +1493,7 @@ function Dt({
1502
1493
  {
1503
1494
  type: "number",
1504
1495
  name: "max",
1505
- value: D.max,
1496
+ value: z.max,
1506
1497
  onChange: H,
1507
1498
  className: "ckds-currency-input-field",
1508
1499
  placeholder: "0",
@@ -1514,12 +1505,12 @@ function Dt({
1514
1505
  ] }),
1515
1506
  c && /* @__PURE__ */ w("div", { className: "ckds-filter-error", children: c }),
1516
1507
  /* @__PURE__ */ w("div", { style: { width: "100%", paddingInline: 14, boxSizing: "border-box" }, children: /* @__PURE__ */ w(
1517
- tt,
1508
+ et,
1518
1509
  {
1519
1510
  className: "slider",
1520
- min: z.min,
1521
- max: z.max,
1522
- value: [D.min, D.max],
1511
+ min: D.min,
1512
+ max: D.max,
1513
+ value: [z.min, z.max],
1523
1514
  onChange: _,
1524
1515
  disableSwap: !0,
1525
1516
  valueLabelDisplay: "auto"
@@ -1528,12 +1519,12 @@ function Dt({
1528
1519
  /* @__PURE__ */ O("div", { className: "ckds-slider-input-display", children: [
1529
1520
  /* @__PURE__ */ O("span", { children: [
1530
1521
  "$",
1531
- Number(D.min),
1522
+ Number(z.min),
1532
1523
  " "
1533
1524
  ] }),
1534
1525
  /* @__PURE__ */ O("span", { children: [
1535
1526
  "$",
1536
- Number(D.max),
1527
+ Number(z.max),
1537
1528
  " "
1538
1529
  ] })
1539
1530
  ] })