@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.
Files changed (62) hide show
  1. package/dist/{DropdownFooter-B1d0HFxd.js → DropdownFooter-BmXLYRcE.js} +4 -3
  2. package/dist/{OptionList-BM4AleXV.js → OptionList-DU0iA8Y4.js} +206 -198
  3. package/dist/assets/index-CRlPQn7l.css +1 -0
  4. package/dist/assets/index-xlbz19JS.css +1 -0
  5. package/dist/assets/{index-CtR-jzNi.css → index-zWDnehqu.css} +1 -1
  6. package/dist/assets/styles-0GdZsGyi.css +1 -0
  7. package/dist/assets/styles-C9rG0Alp.css +1 -0
  8. package/dist/assets/styles-CwZG1jzB.css +1 -0
  9. package/dist/assets/{styles-DAqMiQ0N.css → styles-D2n8YjU_.css} +1 -1
  10. package/dist/components/Breadcrumb/index.js +39 -39
  11. package/dist/components/FusionChart/_config/builders.d.ts.map +1 -1
  12. package/dist/components/FusionChart/_config/builders.js +147 -110
  13. package/dist/components/FusionChart/_config/events.d.ts.map +1 -1
  14. package/dist/components/FusionChart/_config/events.js +52 -37
  15. package/dist/components/FusionChart/_types/fusionChart.types.d.ts +3 -0
  16. package/dist/components/FusionChart/_types/fusionChart.types.d.ts.map +1 -1
  17. package/dist/components/FusionChart/index.d.ts.map +1 -1
  18. package/dist/components/FusionChart/index.js +524 -506
  19. package/dist/components/MultiSelect/SimpleMultiSelect.js +1 -1
  20. package/dist/components/MultiSelect/_helpers/DropdownFooter.js +1 -1
  21. package/dist/components/MultiSelect/_helpers/OptionRow.js +1 -1
  22. package/dist/components/MultiSelect/_helpers/OverflowMenu.js +1 -1
  23. package/dist/components/MultiSelect/_helpers/OverflowMenuItem.js +1 -1
  24. package/dist/components/MultiSelect/_helpers/SearchResult.js +1 -1
  25. package/dist/components/MultiSelect/_helpers/TagContent.js +1 -1
  26. package/dist/components/MultiSelect/_helpers/TriggerButton.js +1 -1
  27. package/dist/components/MultiSelect/index.js +1 -1
  28. package/dist/components/Search/index.js +60 -60
  29. package/dist/components/SingleSelectDropdown/_helpers/DropdownFooter.js +4 -3
  30. package/dist/components/SingleSelectDropdown/index.js +12 -11
  31. package/dist/components/Table/_helpers/ColumnManager/index.d.ts +1 -1
  32. package/dist/components/Table/_helpers/ColumnManager/index.d.ts.map +1 -1
  33. package/dist/components/Table/_helpers/ColumnManager/index.js +803 -696
  34. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts +3 -2
  35. package/dist/components/Table/_helpers/GroupedHeader/index.d.ts.map +1 -1
  36. package/dist/components/Table/_helpers/GroupedHeader/index.js +148 -147
  37. package/dist/components/Table/_helpers/TableFilterModal/OptionList.d.ts.map +1 -1
  38. package/dist/components/Table/_helpers/TableFilterModal/OptionList.js +3 -3
  39. package/dist/components/Table/_helpers/TableFilterModal/index.d.ts.map +1 -1
  40. package/dist/components/Table/_helpers/TableFilterModal/index.js +52 -50
  41. package/dist/components/Table/_helpers/TableRows.d.ts +1 -1
  42. package/dist/components/Table/_helpers/TableRows.d.ts.map +1 -1
  43. package/dist/components/Table/_helpers/TableRows.js +242 -243
  44. package/dist/components/Table/_hooks/useOverlayScrollbar.d.ts.map +1 -1
  45. package/dist/components/Table/_hooks/useOverlayScrollbar.js +63 -58
  46. package/dist/components/Table/_types/table.types.d.ts +1 -1
  47. package/dist/components/Table/_types/table.types.d.ts.map +1 -1
  48. package/dist/components/Table/_utils/table.utils.d.ts +1 -1
  49. package/dist/components/Table/_utils/table.utils.d.ts.map +1 -1
  50. package/dist/components/Table/_utils/table.utils.js +84 -46
  51. package/dist/components/Table/index.d.ts.map +1 -1
  52. package/dist/components/Table/index.js +395 -324
  53. package/dist/components/TextField/index.js +165 -165
  54. package/dist/styles.module-DSbSTQeV.js +56 -0
  55. package/package.json +1 -1
  56. package/dist/assets/index-C8gvpfKZ.css +0 -1
  57. package/dist/assets/index-DewFIgpp.css +0 -1
  58. package/dist/assets/styles-BATmGmYA.css +0 -1
  59. package/dist/assets/styles-DLJzdWsF.css +0 -1
  60. package/dist/assets/styles-O-5pBCak.css +0 -1
  61. package/dist/search-B_cup-NN.js +0 -5
  62. package/dist/styles.module-BJEFZA32.js +0 -56
@@ -1,19 +1,19 @@
1
- import { jsxs as x, jsx as y } from "react/jsx-runtime";
2
- import * as M from "react";
3
- import { useState as W, useRef as j, useEffect as F, useMemo as V } from "react";
4
- import { flushSync as K } from "react-dom";
5
- import { CKCheckbox as P } from "./components/CKCheckbox/index.js";
6
- import B from "./components/Table/_helpers/TableFilterModal/OptionListItems.js";
7
- import { S as H } from "./search-B_cup-NN.js";
8
- import { Typography as T } from "./components/Typography/index.js";
9
- import { Switch as $ } from "./components/Switch/index.js";
10
- function J(l, u, t) {
1
+ import { jsxs as x, jsx as y, Fragment as W } from "react/jsx-runtime";
2
+ import * as C from "react";
3
+ import { useState as F, useRef as j, useEffect as V, useMemo as K } from "react";
4
+ import { flushSync as P } from "react-dom";
5
+ import { CKCheckbox as B } from "./components/CKCheckbox/index.js";
6
+ import H from "./components/Table/_helpers/TableFilterModal/OptionListItems.js";
7
+ import { Typography as w } from "./components/Typography/index.js";
8
+ import { Toggle as $ } from "./components/Toggle/index.js";
9
+ import { Search as J } from "./components/Search/index.js";
10
+ function q(l, u, t) {
11
11
  const e = new Array(l);
12
12
  return new Proxy(e, {
13
- get(s, n, o) {
13
+ get(s, n, i) {
14
14
  if (typeof n == "string") {
15
- const i = n.charCodeAt(0);
16
- if (i >= 48 && i <= 57) {
15
+ const o = n.charCodeAt(0);
16
+ if (o >= 48 && o <= 57) {
17
17
  const r = +n;
18
18
  if (Number.isInteger(r) && r >= 0 && r < l) {
19
19
  let a = s[r];
@@ -33,15 +33,15 @@ function J(l, u, t) {
33
33
  }
34
34
  if (n === "length") return l;
35
35
  }
36
- return Reflect.get(s, n, o);
36
+ return Reflect.get(s, n, i);
37
37
  }
38
38
  });
39
39
  }
40
40
  function z(l, u, t) {
41
41
  let e = t.initialDeps ?? [], s, n = !0;
42
- function o() {
43
- var i;
44
- const r = process.env.NODE_ENV !== "production" && !!t.key && !!((i = t.debug) != null && i.call(t));
42
+ function i() {
43
+ var o;
44
+ const r = process.env.NODE_ENV !== "production" && !!t.key && !!((o = t.debug) != null && o.call(t));
45
45
  let a = 0;
46
46
  r && (a = Date.now());
47
47
  const h = l();
@@ -69,53 +69,53 @@ function z(l, u, t) {
69
69
  }
70
70
  return t?.onChange && !(n && t.skipInitialOnChange) && t.onChange(s), n = !1, s;
71
71
  }
72
- return o.updateDeps = (i) => {
73
- e = i;
74
- }, o;
72
+ return i.updateDeps = (o) => {
73
+ e = o;
74
+ }, i;
75
75
  }
76
76
  function D(l, u) {
77
77
  if (l === void 0)
78
78
  throw new Error("Unexpected undefined");
79
79
  return l;
80
80
  }
81
- const q = (l, u) => Math.abs(l - u) < 1.01, U = (l, u, t) => {
81
+ const U = (l, u) => Math.abs(l - u) < 1.01, X = (l, u, t) => {
82
82
  let e;
83
83
  return function(...s) {
84
84
  l.clearTimeout(e), e = l.setTimeout(() => u.apply(this, s), t);
85
85
  };
86
86
  };
87
- let I;
87
+ let M;
88
88
  const A = () => {
89
- if (I !== void 0) return I;
90
- if (typeof navigator > "u") return I = !1;
91
- if (/iP(hone|od|ad)/.test(navigator.userAgent)) return I = !0;
89
+ if (M !== void 0) return M;
90
+ if (typeof navigator > "u") return M = !1;
91
+ if (/iP(hone|od|ad)/.test(navigator.userAgent)) return M = !0;
92
92
  const l = navigator.maxTouchPoints;
93
- return I = navigator.platform === "MacIntel" && l !== void 0 && l > 0;
93
+ return M = navigator.platform === "MacIntel" && l !== void 0 && l > 0;
94
94
  }, L = (l) => {
95
95
  const { offsetWidth: u, offsetHeight: t } = l;
96
96
  return { width: u, height: t };
97
- }, X = (l) => l, G = (l) => {
97
+ }, G = (l) => l, Q = (l) => {
98
98
  const u = Math.max(l.startIndex - l.overscan, 0), e = Math.min(l.endIndex + l.overscan, l.count - 1) - u + 1, s = new Array(e);
99
99
  for (let n = 0; n < e; n++)
100
100
  s[n] = u + n;
101
101
  return s;
102
- }, Q = (l, u) => {
102
+ }, Y = (l, u) => {
103
103
  const t = l.scrollElement;
104
104
  if (!t)
105
105
  return;
106
106
  const e = l.targetWindow;
107
107
  if (!e)
108
108
  return;
109
- const s = (o) => {
110
- const { width: i, height: r } = o;
111
- u({ width: Math.round(i), height: Math.round(r) });
109
+ const s = (i) => {
110
+ const { width: o, height: r } = i;
111
+ u({ width: Math.round(o), height: Math.round(r) });
112
112
  };
113
113
  if (s(L(t)), !e.ResizeObserver)
114
114
  return () => {
115
115
  };
116
- const n = new e.ResizeObserver((o) => {
117
- const i = () => {
118
- const r = o[0];
116
+ const n = new e.ResizeObserver((i) => {
117
+ const o = () => {
118
+ const r = i[0];
119
119
  if (r?.borderBoxSize) {
120
120
  const a = r.borderBoxSize[0];
121
121
  if (a) {
@@ -125,36 +125,36 @@ const A = () => {
125
125
  }
126
126
  s(L(t));
127
127
  };
128
- l.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(i) : i();
128
+ l.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(o) : o();
129
129
  });
130
130
  return n.observe(t, { box: "border-box" }), () => {
131
131
  n.unobserve(t);
132
132
  };
133
- }, C = {
133
+ }, T = {
134
134
  passive: !0
135
- }, Y = typeof window > "u" ? !0 : "onscrollend" in window, Z = (l, u, t) => {
135
+ }, Z = typeof window > "u" ? !0 : "onscrollend" in window, tt = (l, u, t) => {
136
136
  const e = l.scrollElement;
137
137
  if (!e)
138
138
  return;
139
139
  const s = l.targetWindow;
140
140
  if (!s)
141
141
  return;
142
- const n = l.options.useScrollendEvent && Y;
143
- let o = 0;
144
- const i = n ? null : U(
142
+ const n = l.options.useScrollendEvent && Z;
143
+ let i = 0;
144
+ const o = n ? null : X(
145
145
  s,
146
- () => u(o, !1),
146
+ () => u(i, !1),
147
147
  l.options.isScrollingResetDelay
148
148
  ), r = (p) => () => {
149
- o = t(e), i?.(), u(o, p);
149
+ i = t(e), o?.(), u(i, p);
150
150
  }, a = r(!0), h = r(!1);
151
- return e.addEventListener("scroll", a, C), n && e.addEventListener("scrollend", h, C), () => {
151
+ return e.addEventListener("scroll", a, T), n && e.addEventListener("scrollend", h, T), () => {
152
152
  e.removeEventListener("scroll", a), n && e.removeEventListener("scrollend", h);
153
153
  };
154
- }, tt = (l, u) => Z(l, u, (t) => {
154
+ }, et = (l, u) => tt(l, u, (t) => {
155
155
  const { horizontal: e, isRtl: s } = l.options;
156
156
  return e ? t.scrollLeft * (s && -1 || 1) : t.scrollTop;
157
- }), et = (l, u, t) => {
157
+ }), st = (l, u, t) => {
158
158
  if (t.options.useCachedMeasurements) {
159
159
  const e = t.indexFromElement(l), s = t.options.getItemKey(e);
160
160
  return t.itemSizeCache.get(s) ?? t.options.estimateSize(e);
@@ -172,7 +172,7 @@ const A = () => {
172
172
  return n;
173
173
  }
174
174
  return l[t.options.horizontal ? "offsetWidth" : "offsetHeight"];
175
- }, st = (l, {
175
+ }, nt = (l, {
176
176
  adjustments: u = 0,
177
177
  behavior: t
178
178
  }, e) => {
@@ -181,8 +181,8 @@ const A = () => {
181
181
  [e.options.horizontal ? "left" : "top"]: l + u,
182
182
  behavior: t
183
183
  });
184
- }, nt = st;
185
- class it {
184
+ }, it = nt;
185
+ class ot {
186
186
  constructor(u) {
187
187
  this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this._flatMeasurements = null, this.itemSizeCache = /* @__PURE__ */ new Map(), this.itemSizeCacheVersion = 0, this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMin = null, this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.pendingScrollAnchor = null, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this._iosDeferredAdjustment = 0, this._iosTouching = !1, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._intendedScrollOffset = null, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
188
188
  var t, e, s;
@@ -191,12 +191,12 @@ class it {
191
191
  let t = null;
192
192
  const e = () => t || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : t = new this.targetWindow.ResizeObserver((s) => {
193
193
  s.forEach((n) => {
194
- const o = () => {
195
- const i = n.target, r = this.indexFromElement(i);
196
- if (!i.isConnected) {
197
- this.observer.unobserve(i);
194
+ const i = () => {
195
+ const o = n.target, r = this.indexFromElement(o);
196
+ if (!o.isConnected) {
197
+ this.observer.unobserve(o);
198
198
  for (const [a, h] of this.elementsCache)
199
- if (h === i) {
199
+ if (h === o) {
200
200
  this.elementsCache.delete(a);
201
201
  break;
202
202
  }
@@ -204,10 +204,10 @@ class it {
204
204
  }
205
205
  this.shouldMeasureDuringScroll(r) && this.resizeItem(
206
206
  r,
207
- this.options.measureElement(i, n, this)
207
+ this.options.measureElement(o, n, this)
208
208
  );
209
209
  };
210
- this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(o) : o();
210
+ this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(i) : i();
211
211
  });
212
212
  }));
213
213
  return {
@@ -235,11 +235,11 @@ class it {
235
235
  scrollPaddingStart: 0,
236
236
  scrollPaddingEnd: 0,
237
237
  horizontal: !1,
238
- getItemKey: X,
239
- rangeExtractor: G,
238
+ getItemKey: G,
239
+ rangeExtractor: Q,
240
240
  onChange: () => {
241
241
  },
242
- measureElement: et,
242
+ measureElement: st,
243
243
  initialRect: { width: 0, height: 0 },
244
244
  scrollMargin: 0,
245
245
  gap: 0,
@@ -261,22 +261,22 @@ class it {
261
261
  const v = t[c];
262
262
  v !== void 0 && (n[c] = v);
263
263
  }
264
- const o = this.options;
265
- let i = null, r = null, a = !1;
266
- if (o !== void 0 && o.enabled && n.enabled && n.anchorTo === "end" && this.scrollElement !== null) {
267
- const c = o.count, v = n.count, d = this.getMeasurements(), f = c > 0 ? ((e = d[0]) == null ? void 0 : e.key) ?? o.getItemKey(0) : null, S = c > 0 ? ((s = d[c - 1]) == null ? void 0 : s.key) ?? o.getItemKey(c - 1) : null;
264
+ const i = this.options;
265
+ let o = null, r = null, a = !1;
266
+ if (i !== void 0 && i.enabled && n.enabled && n.anchorTo === "end" && this.scrollElement !== null) {
267
+ const c = i.count, v = n.count, d = this.getMeasurements(), f = c > 0 ? ((e = d[0]) == null ? void 0 : e.key) ?? i.getItemKey(0) : null, S = c > 0 ? ((s = d[c - 1]) == null ? void 0 : s.key) ?? i.getItemKey(c - 1) : null;
268
268
  if (v !== c || c > 0 && v > 0 && (n.getItemKey(0) !== f || n.getItemKey(v - 1) !== S)) {
269
269
  a = !0;
270
270
  const m = c > 0 ? this.getVirtualItemForOffset(this.getScrollOffset()) ?? d[0] : null;
271
- m && (i = [m.key, this.getScrollOffset() - m.start]);
271
+ m && (o = [m.key, this.getScrollOffset() - m.start]);
272
272
  const E = n.followOnAppend === !0 ? "auto" : n.followOnAppend || null;
273
- E && v > c && this.isAtEnd(o.scrollEndThreshold) && (c === 0 || n.getItemKey(v - 1) !== S) && (r = E);
273
+ E && v > c && this.isAtEnd(i.scrollEndThreshold) && (c === 0 || n.getItemKey(v - 1) !== S) && (r = E);
274
274
  }
275
275
  }
276
276
  this.options = n, a && (this.pendingMin = 0, this.itemSizeCacheVersion++);
277
277
  let h = !1, p = 0;
278
- if (i && this.scrollOffset !== null) {
279
- const [c, v] = i, d = this.getMeasurements(), { count: f, getItemKey: S } = this.options;
278
+ if (o && this.scrollOffset !== null) {
279
+ const [c, v] = o, d = this.getMeasurements(), { count: f, getItemKey: S } = this.options;
280
280
  let g = 0;
281
281
  for (; g < f && S(g) !== c; )
282
282
  g++;
@@ -289,8 +289,8 @@ class it {
289
289
  }
290
290
  }
291
291
  (h || r) && (this.pendingScrollAnchor = [
292
- h ? i[0] : null,
293
- h ? i[1] : 0,
292
+ h ? o[0] : null,
293
+ h ? o[1] : 0,
294
294
  r,
295
295
  p
296
296
  ]);
@@ -334,27 +334,27 @@ class it {
334
334
  this.scrollRect = n, this.maybeNotify();
335
335
  })
336
336
  ), this.unsubs.push(
337
- this.options.observeElementOffset(this, (n, o) => {
338
- this._intendedScrollOffset !== null && Math.abs(n - this._intendedScrollOffset) < 1.5 && (n = this._intendedScrollOffset), this._intendedScrollOffset = null, this.scrollAdjustments = 0, this.scrollDirection = o ? this.getScrollOffset() < n ? "forward" : "backward" : null, this.scrollOffset = n, this.isScrolling = o, this._flushIosDeferredIfReady(), this.scrollState && this.scheduleScrollReconcile(), this.maybeNotify();
337
+ this.options.observeElementOffset(this, (n, i) => {
338
+ this._intendedScrollOffset !== null && Math.abs(n - this._intendedScrollOffset) < 1.5 && (n = this._intendedScrollOffset), this._intendedScrollOffset = null, this.scrollAdjustments = 0, this.scrollDirection = i ? this.getScrollOffset() < n ? "forward" : "backward" : null, this.scrollOffset = n, this.isScrolling = i, this._flushIosDeferredIfReady(), this.scrollState && this.scheduleScrollReconcile(), this.maybeNotify();
339
339
  })
340
340
  ), "addEventListener" in this.scrollElement) {
341
- const n = this.scrollElement, o = () => {
341
+ const n = this.scrollElement, i = () => {
342
342
  this._iosTouching = !0, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
343
- }, i = () => {
343
+ }, o = () => {
344
344
  this._iosTouching = !1, !(!A() || this.targetWindow == null) && (this._iosJustTouchEnded = !0, this._iosTouchEndTimerId = this.targetWindow.setTimeout(() => {
345
345
  this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._flushIosDeferredIfReady();
346
346
  }, 150));
347
347
  };
348
348
  n.addEventListener(
349
349
  "touchstart",
350
- o,
351
- C
350
+ i,
351
+ T
352
352
  ), n.addEventListener(
353
353
  "touchend",
354
- i,
355
- C
354
+ o,
355
+ T
356
356
  ), this.unsubs.push(() => {
357
- n.removeEventListener("touchstart", o), n.removeEventListener("touchend", i), this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
357
+ n.removeEventListener("touchstart", i), n.removeEventListener("touchend", o), this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
358
358
  });
359
359
  }
360
360
  this._scrollToOffset(this.getScrollOffset(), {
@@ -364,11 +364,11 @@ class it {
364
364
  }
365
365
  const s = this.pendingScrollAnchor;
366
366
  if (this.pendingScrollAnchor = null, s && this.scrollElement && this.options.enabled) {
367
- const [n, o, i, r] = s;
368
- n !== null && !i && (A() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? r !== 0 && (this._iosDeferredAdjustment += r) : this._scrollToOffset(this.getScrollOffset(), {
367
+ const [n, i, o, r] = s;
368
+ n !== null && !o && (A() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? r !== 0 && (this._iosDeferredAdjustment += r) : this._scrollToOffset(this.getScrollOffset(), {
369
369
  adjustments: void 0,
370
370
  behavior: void 0
371
- })), i && this.scrollToEnd({ behavior: i });
371
+ })), o && this.scrollToEnd({ behavior: o });
372
372
  }
373
373
  }, this._flushIosDeferredIfReady = () => {
374
374
  if (this._iosDeferredAdjustment === 0 || this.isScrolling || this._iosTouching || this._iosJustTouchEnded) return;
@@ -381,17 +381,17 @@ class it {
381
381
  });
382
382
  }, this.rafId = null, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (t, e) => {
383
383
  const s = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ new Map();
384
- for (let o = e - 1; o >= 0; o--) {
385
- const i = t[o];
386
- if (s.has(i.lane))
384
+ for (let i = e - 1; i >= 0; i--) {
385
+ const o = t[i];
386
+ if (s.has(o.lane))
387
387
  continue;
388
388
  const r = n.get(
389
- i.lane
389
+ o.lane
390
390
  );
391
- if (r == null || i.end > r.end ? n.set(i.lane, i) : i.end < r.end && s.set(i.lane, !0), s.size === this.options.lanes)
391
+ if (r == null || o.end > r.end ? n.set(o.lane, o) : o.end < r.end && s.set(o.lane, !0), s.size === this.options.lanes)
392
392
  break;
393
393
  }
394
- return n.size === this.options.lanes ? Array.from(n.values()).sort((o, i) => o.end === i.end ? o.index - i.index : o.end - i.end)[0] : void 0;
394
+ return n.size === this.options.lanes ? Array.from(n.values()).sort((i, o) => i.end === o.end ? i.index - o.index : i.end - o.end)[0] : void 0;
395
395
  }, this.getMeasurementOptions = z(
396
396
  () => [
397
397
  this.options.count,
@@ -402,13 +402,13 @@ class it {
402
402
  this.options.lanes,
403
403
  this.options.laneAssignmentMode
404
404
  ],
405
- (t, e, s, n, o, i, r) => (this.prevLanes !== void 0 && this.prevLanes !== i && (this.lanesChangedFlag = !0), this.prevLanes = i, this.pendingMin = null, {
405
+ (t, e, s, n, i, o, r) => (this.prevLanes !== void 0 && this.prevLanes !== o && (this.lanesChangedFlag = !0), this.prevLanes = o, this.pendingMin = null, {
406
406
  count: t,
407
407
  paddingStart: e,
408
408
  scrollMargin: s,
409
409
  getItemKey: n,
410
- enabled: o,
411
- lanes: i,
410
+ enabled: i,
411
+ lanes: o,
412
412
  laneAssignmentMode: r
413
413
  }),
414
414
  {
@@ -421,12 +421,12 @@ class it {
421
421
  paddingStart: e,
422
422
  scrollMargin: s,
423
423
  getItemKey: n,
424
- enabled: o,
425
- lanes: i,
424
+ enabled: i,
425
+ lanes: o,
426
426
  laneAssignmentMode: r
427
427
  }, a) => {
428
428
  const h = this.itemSizeCache;
429
- if (!o)
429
+ if (!i)
430
430
  return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
431
431
  if (this.laneAssignments.size > t)
432
432
  for (const d of this.laneAssignments.keys())
@@ -435,7 +435,7 @@ class it {
435
435
  this.itemSizeCache.set(d.key, d.size);
436
436
  }));
437
437
  const p = this.lanesSettling ? 0 : this.pendingMin ?? 0;
438
- if (this.pendingMin = null, this.lanesSettling && this.measurementsCache.length === t && (this.lanesSettling = !1), i === 1) {
438
+ if (this.pendingMin = null, this.lanesSettling && this.measurementsCache.length === t && (this.lanesSettling = !1), o === 1) {
439
439
  const d = this.options.gap, f = t * 2;
440
440
  let S = this._flatMeasurements;
441
441
  if (!S || S.length < f) {
@@ -450,13 +450,13 @@ class it {
450
450
  g = S[m * 2] + S[m * 2 + 1] + d;
451
451
  }
452
452
  for (let m = p; m < t; m++) {
453
- const E = n(m), w = h.get(E), _ = typeof w == "number" ? w : this.options.estimateSize(m);
453
+ const E = n(m), I = h.get(E), _ = typeof I == "number" ? I : this.options.estimateSize(m);
454
454
  S[m * 2] = g, S[m * 2 + 1] = _, g += _ + d;
455
455
  }
456
- const b = J(t, S, n);
456
+ const b = q(t, S, n);
457
457
  return this.measurementsCache = b, b;
458
458
  }
459
- const c = this.measurementsCache.slice(0, p), v = new Array(i).fill(
459
+ const c = this.measurementsCache.slice(0, p), v = new Array(o).fill(
460
460
  void 0
461
461
  );
462
462
  for (let d = 0; d < p; d++) {
@@ -469,17 +469,17 @@ class it {
469
469
  const m = r === "estimate" || h.has(f);
470
470
  if (S !== void 0 && this.options.lanes > 1) {
471
471
  g = S;
472
- const O = v[g], R = O !== void 0 ? c[O] : void 0;
473
- b = R ? R.end + this.options.gap : e + s;
472
+ const O = v[g], k = O !== void 0 ? c[O] : void 0;
473
+ b = k ? k.end + this.options.gap : e + s;
474
474
  } else {
475
475
  const O = this.options.lanes === 1 ? c[d - 1] : this.getFurthestMeasurement(c, d);
476
476
  b = O ? O.end + this.options.gap : e + s, g = O ? O.lane : d % this.options.lanes, this.options.lanes > 1 && m && this.laneAssignments.set(d, g);
477
477
  }
478
- const E = h.get(f), w = typeof E == "number" ? E : this.options.estimateSize(d), _ = b + w;
478
+ const E = h.get(f), I = typeof E == "number" ? E : this.options.estimateSize(d), _ = b + I;
479
479
  c[d] = {
480
480
  index: d,
481
481
  start: b,
482
- size: w,
482
+ size: I,
483
483
  end: _,
484
484
  key: f,
485
485
  lane: g
@@ -498,7 +498,7 @@ class it {
498
498
  this.getScrollOffset(),
499
499
  this.options.lanes
500
500
  ],
501
- (t, e, s, n) => this.range = t.length > 0 && e > 0 ? ot({
501
+ (t, e, s, n) => this.range = t.length > 0 && e > 0 ? lt({
502
502
  measurements: t,
503
503
  outerSize: e,
504
504
  scrollOffset: s,
@@ -524,9 +524,9 @@ class it {
524
524
  e
525
525
  ];
526
526
  },
527
- (t, e, s, n, o) => n === null || o === null ? [] : t({
527
+ (t, e, s, n, i) => n === null || i === null ? [] : t({
528
528
  startIndex: n,
529
- endIndex: o,
529
+ endIndex: i,
530
530
  overscan: e,
531
531
  count: s
532
532
  }),
@@ -548,17 +548,17 @@ class it {
548
548
  const n = Math.max(
549
549
  this.options.overscan,
550
550
  Math.ceil((this.range.endIndex - this.range.startIndex) / 2)
551
- ), o = Math.max(0, s - n), i = Math.min(
551
+ ), i = Math.max(0, s - n), o = Math.min(
552
552
  this.options.count - 1,
553
553
  s + n
554
554
  );
555
- return t >= o && t <= i;
555
+ return t >= i && t <= o;
556
556
  }
557
557
  return !0;
558
558
  }, this.measureElement = (t) => {
559
559
  if (!t) {
560
- this.elementsCache.forEach((o, i) => {
561
- o.isConnected || (this.observer.unobserve(o), this.elementsCache.delete(i));
560
+ this.elementsCache.forEach((i, o) => {
561
+ i.isConnected || (this.observer.unobserve(i), this.elementsCache.delete(o));
562
562
  });
563
563
  return;
564
564
  }
@@ -567,16 +567,16 @@ class it {
567
567
  }, this.resizeItem = (t, e) => {
568
568
  var s, n;
569
569
  if (t < 0 || t >= this.options.count) return;
570
- let o, i, r;
570
+ let i, o, r;
571
571
  const a = this._flatMeasurements;
572
572
  if (this.options.lanes === 1 && a !== null)
573
- r = this.options.getItemKey(t), i = a[t * 2], o = a[t * 2 + 1];
573
+ r = this.options.getItemKey(t), o = a[t * 2], i = a[t * 2 + 1];
574
574
  else {
575
575
  const c = this.measurementsCache[t];
576
576
  if (!c) return;
577
- r = c.key, i = c.start, o = c.size;
577
+ r = c.key, o = c.start, i = c.size;
578
578
  }
579
- const h = this.itemSizeCache.get(r) ?? o, p = e - h;
579
+ const h = this.itemSizeCache.get(r) ?? i, p = e - h;
580
580
  if (p !== 0) {
581
581
  const c = this.options.anchorTo === "end" && ((s = this.scrollState) == null ? void 0 : s.behavior) !== "smooth" && this.getVirtualDistanceFromEnd() <= this.options.scrollEndThreshold, v = c ? this.getTotalSize() : 0, d = ((n = this.scrollState) == null ? void 0 : n.behavior) !== "smooth" && (this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(
582
582
  // The callback expects a VirtualItem; build one lazily only
@@ -584,9 +584,9 @@ class it {
584
584
  this.measurementsCache[t] ?? {
585
585
  index: t,
586
586
  key: r,
587
- start: i,
588
- size: o,
589
- end: i + o,
587
+ start: o,
588
+ size: i,
589
+ end: o + i,
590
590
  lane: 0
591
591
  },
592
592
  p,
@@ -598,7 +598,7 @@ class it {
598
598
  // direction and produces the "items jump while scrolling up"
599
599
  // jank reported across many issues. Users who want the old
600
600
  // behavior can pass shouldAdjustScrollPositionOnItemSizeChange.
601
- i < this.getScrollOffset() + this.scrollAdjustments && this.scrollDirection !== "backward"
601
+ o < this.getScrollOffset() + this.scrollAdjustments && this.scrollDirection !== "backward"
602
602
  ));
603
603
  (this.pendingMin === null || t < this.pendingMin) && (this.pendingMin = t), this.itemSizeCache.set(r, e), this.itemSizeCacheVersion++, c ? this.applyScrollAdjustment(this.getTotalSize() - v) : d && this.applyScrollAdjustment(p), this.notify(!1);
604
604
  }
@@ -606,8 +606,8 @@ class it {
606
606
  () => [this.getVirtualIndexes(), this.getMeasurements()],
607
607
  (t, e) => {
608
608
  const s = [];
609
- for (let n = 0, o = t.length; n < o; n++) {
610
- const i = t[n], r = e[i];
609
+ for (let n = 0, i = t.length; n < i; n++) {
610
+ const o = t[n], r = e[o];
611
611
  s.push(r);
612
612
  }
613
613
  return s;
@@ -620,13 +620,13 @@ class it {
620
620
  const e = this.getMeasurements();
621
621
  if (e.length === 0)
622
622
  return;
623
- const s = this._flatMeasurements, n = this.options.lanes === 1 && s != null, o = N(
623
+ const s = this._flatMeasurements, n = this.options.lanes === 1 && s != null, i = N(
624
624
  0,
625
625
  e.length - 1,
626
- n ? (i) => s[i * 2] : (i) => D(e[i]).start,
626
+ n ? (o) => s[o * 2] : (o) => D(e[o]).start,
627
627
  t
628
628
  );
629
- return D(e[o]);
629
+ return D(e[i]);
630
630
  }, this.getMaxScrollOffset = () => {
631
631
  if (!this.scrollElement) return 0;
632
632
  if ("scrollHeight" in this.scrollElement)
@@ -640,35 +640,35 @@ class it {
640
640
  0
641
641
  ), this.getDistanceFromEnd = () => Math.max(this.getMaxScrollOffset() - this.getScrollOffset(), 0), this.isAtEnd = (t = this.options.scrollEndThreshold) => this.getDistanceFromEnd() <= t, this.getOffsetForAlignment = (t, e, s = 0) => {
642
642
  if (!this.scrollElement) return 0;
643
- const n = this.getSize(), o = this.getScrollOffset();
644
- e === "auto" && (e = t >= o + n ? "end" : "start"), e === "center" ? t += (s - n) / 2 : e === "end" && (t -= n);
645
- const i = this.getMaxScrollOffset();
646
- return Math.max(Math.min(i, t), 0);
643
+ const n = this.getSize(), i = this.getScrollOffset();
644
+ e === "auto" && (e = t >= i + n ? "end" : "start"), e === "center" ? t += (s - n) / 2 : e === "end" && (t -= n);
645
+ const o = this.getMaxScrollOffset();
646
+ return Math.max(Math.min(o, t), 0);
647
647
  }, this.getOffsetForIndex = (t, e = "auto") => {
648
648
  t = Math.max(0, Math.min(t, this.options.count - 1));
649
- const s = this.getSize(), n = this.getScrollOffset(), o = this.measurementsCache[t];
650
- if (!o) return;
649
+ const s = this.getSize(), n = this.getScrollOffset(), i = this.measurementsCache[t];
650
+ if (!i) return;
651
651
  if (e === "auto")
652
- if (o.end >= n + s - this.options.scrollPaddingEnd)
652
+ if (i.end >= n + s - this.options.scrollPaddingEnd)
653
653
  e = "end";
654
- else if (o.start <= n + this.options.scrollPaddingStart)
654
+ else if (i.start <= n + this.options.scrollPaddingStart)
655
655
  e = "start";
656
656
  else
657
657
  return [n, e];
658
658
  if (e === "end" && t === this.options.count - 1)
659
659
  return [this.getMaxScrollOffset(), e];
660
- const i = e === "end" ? o.end + this.options.scrollPaddingEnd : o.start - this.options.scrollPaddingStart;
660
+ const o = e === "end" ? i.end + this.options.scrollPaddingEnd : i.start - this.options.scrollPaddingStart;
661
661
  return [
662
- this.getOffsetForAlignment(i, e, o.size),
662
+ this.getOffsetForAlignment(o, e, i.size),
663
663
  e
664
664
  ];
665
665
  }, this.scrollToOffset = (t, { align: e = "start", behavior: s = "auto" } = {}) => {
666
- const n = this.getOffsetForAlignment(t, e), o = this.now();
666
+ const n = this.getOffsetForAlignment(t, e), i = this.now();
667
667
  this.scrollState = {
668
668
  index: null,
669
669
  align: e,
670
670
  behavior: s,
671
- startedAt: o,
671
+ startedAt: i,
672
672
  lastTargetOffset: n,
673
673
  stableFrames: 0
674
674
  }, this._scrollToOffset(n, { adjustments: void 0, behavior: s }), this.scheduleScrollReconcile();
@@ -680,15 +680,15 @@ class it {
680
680
  const n = this.getOffsetForIndex(t, e);
681
681
  if (!n)
682
682
  return;
683
- const [o, i] = n, r = this.now();
683
+ const [i, o] = n, r = this.now();
684
684
  this.scrollState = {
685
685
  index: t,
686
- align: i,
686
+ align: o,
687
687
  behavior: s,
688
688
  startedAt: r,
689
- lastTargetOffset: o,
689
+ lastTargetOffset: i,
690
690
  stableFrames: 0
691
- }, this._scrollToOffset(o, { adjustments: void 0, behavior: s }), this.scheduleScrollReconcile();
691
+ }, this._scrollToOffset(i, { adjustments: void 0, behavior: s }), this.scheduleScrollReconcile();
692
692
  }, this.scrollBy = (t, { behavior: e = "auto" } = {}) => {
693
693
  const s = this.getScrollOffset() + t, n = this.now();
694
694
  this.scrollState = {
@@ -717,16 +717,16 @@ class it {
717
717
  if (e.length === 0)
718
718
  s = this.options.paddingStart;
719
719
  else if (this.options.lanes === 1) {
720
- const n = e.length - 1, o = this._flatMeasurements;
721
- o != null ? s = o[n * 2] + o[n * 2 + 1] : s = ((t = e[n]) == null ? void 0 : t.end) ?? 0;
720
+ const n = e.length - 1, i = this._flatMeasurements;
721
+ i != null ? s = i[n * 2] + i[n * 2 + 1] : s = ((t = e[n]) == null ? void 0 : t.end) ?? 0;
722
722
  } else {
723
723
  const n = Array(this.options.lanes).fill(null);
724
- let o = e.length - 1;
725
- for (; o >= 0 && n.some((i) => i === null); ) {
726
- const i = e[o];
727
- n[i.lane] === null && (n[i.lane] = i.end), o--;
724
+ let i = e.length - 1;
725
+ for (; i >= 0 && n.some((o) => o === null); ) {
726
+ const o = e[i];
727
+ n[o.lane] === null && (n[o.lane] = o.end), i--;
728
728
  }
729
- s = Math.max(...n.filter((i) => i !== null));
729
+ s = Math.max(...n.filter((o) => o !== null));
730
730
  }
731
731
  return Math.max(
732
732
  s - this.options.scrollMargin + this.options.paddingEnd,
@@ -776,8 +776,8 @@ class it {
776
776
  this.scrollState = null;
777
777
  return;
778
778
  }
779
- const e = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, s = e ? e[0] : this.scrollState.lastTargetOffset, n = 1, o = s !== this.scrollState.lastTargetOffset;
780
- if (!o && q(s, this.getScrollOffset())) {
779
+ const e = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, s = e ? e[0] : this.scrollState.lastTargetOffset, n = 1, i = s !== this.scrollState.lastTargetOffset;
780
+ if (!i && U(s, this.getScrollOffset())) {
781
781
  if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= n) {
782
782
  this.getScrollOffset() !== s && this._scrollToOffset(s, {
783
783
  adjustments: void 0,
@@ -785,8 +785,8 @@ class it {
785
785
  }), this.scrollState = null;
786
786
  return;
787
787
  }
788
- } else if (this.scrollState.stableFrames = 0, o) {
789
- const i = this.getSize() || 600, r = Math.abs(s - this.getScrollOffset()), a = this.scrollState.behavior === "smooth" && r > i;
788
+ } else if (this.scrollState.stableFrames = 0, i) {
789
+ const o = this.getSize() || 600, r = Math.abs(s - this.getScrollOffset()), a = this.scrollState.behavior === "smooth" && r > o;
790
790
  this.scrollState.lastTargetOffset = s, a || (this.scrollState.behavior = "auto"), this._scrollToOffset(s, {
791
791
  adjustments: void 0,
792
792
  behavior: a ? "smooth" : "auto"
@@ -807,22 +807,22 @@ const N = (l, u, t, e) => {
807
807
  }
808
808
  return l > 0 ? l - 1 : 0;
809
809
  };
810
- function ot({
810
+ function lt({
811
811
  measurements: l,
812
812
  outerSize: u,
813
813
  scrollOffset: t,
814
814
  lanes: e,
815
815
  flat: s
816
816
  }) {
817
- const n = l.length - 1, o = s ? (h) => s[h * 2] : (h) => l[h].start, i = s ? (h) => s[h * 2] + s[h * 2 + 1] : (h) => l[h].end;
817
+ const n = l.length - 1, i = s ? (h) => s[h * 2] : (h) => l[h].start, o = s ? (h) => s[h * 2] + s[h * 2 + 1] : (h) => l[h].end;
818
818
  if (l.length <= e)
819
819
  return {
820
820
  startIndex: 0,
821
821
  endIndex: n
822
822
  };
823
- let r = N(0, n, o, t), a = r;
823
+ let r = N(0, n, i, t), a = r;
824
824
  if (e === 1)
825
- for (; a < n && i(a) < t + u; )
825
+ for (; a < n && o(a) < t + u; )
826
826
  a++;
827
827
  else if (e > 1) {
828
828
  const h = Array(e).fill(0);
@@ -839,14 +839,14 @@ function ot({
839
839
  }
840
840
  return { startIndex: r, endIndex: a };
841
841
  }
842
- const k = typeof document < "u" ? M.useLayoutEffect : M.useEffect;
843
- function lt({
842
+ const R = typeof document < "u" ? C.useLayoutEffect : C.useEffect;
843
+ function rt({
844
844
  useFlushSync: l = !0,
845
845
  directDomUpdates: u = !1,
846
846
  directDomUpdatesMode: t = "transform",
847
847
  ...e
848
848
  }) {
849
- const s = M.useReducer((a) => a + 1, 0)[1], n = M.useRef({
849
+ const s = C.useReducer((a) => a + 1, 0)[1], n = C.useRef({
850
850
  enabled: u,
851
851
  mode: t,
852
852
  container: null,
@@ -858,7 +858,7 @@ function lt({
858
858
  prevRange: null
859
859
  });
860
860
  n.current.enabled = u, n.current.mode = t;
861
- const o = (a) => {
861
+ const i = (a) => {
862
862
  const h = n.current;
863
863
  if (!h.enabled) return;
864
864
  const p = a.getTotalSize();
@@ -872,14 +872,14 @@ function lt({
872
872
  const b = g.start - f, m = a.elementsCache.get(g.key);
873
873
  m && h.lastPositions.get(m) !== b && (h.lastPositions.set(m, b), v ? m.style.transform = c ? `translate3d(${b}px, 0, 0)` : `translate3d(0, ${b}px, 0)` : m.style[d] = `${b}px`);
874
874
  }
875
- }, i = {
875
+ }, o = {
876
876
  ...e,
877
877
  onChange: (a, h) => {
878
878
  var p;
879
879
  const c = n.current;
880
880
  let v = !0;
881
881
  if (c.enabled) {
882
- o(a);
882
+ i(a);
883
883
  const d = a.range, f = c.prevRange;
884
884
  v = !f || f.isScrolling !== a.isScrolling || f.startIndex !== d?.startIndex || f.endIndex !== d?.endIndex, v && (c.prevRange = d ? {
885
885
  startIndex: d.startIndex,
@@ -887,10 +887,10 @@ function lt({
887
887
  isScrolling: a.isScrolling
888
888
  } : null);
889
889
  }
890
- v && (l && h ? K(s) : s()), (p = e.onChange) == null || p.call(e, a, h);
890
+ v && (l && h ? P(s) : s()), (p = e.onChange) == null || p.call(e, a, h);
891
891
  }
892
- }, [r] = M.useState(() => {
893
- const a = new it(i);
892
+ }, [r] = C.useState(() => {
893
+ const a = new ot(o);
894
894
  return Object.assign(a, {
895
895
  containerRef: (h) => {
896
896
  const p = n.current;
@@ -903,37 +903,37 @@ function lt({
903
903
  }
904
904
  });
905
905
  });
906
- return r.setOptions(i), k(() => r._didMount(), []), k(() => r._willUpdate()), k(() => {
907
- o(r);
906
+ return r.setOptions(o), R(() => r._didMount(), []), R(() => r._willUpdate()), R(() => {
907
+ i(r);
908
908
  }), r;
909
909
  }
910
- function rt(l) {
911
- return lt({
912
- observeElementRect: Q,
913
- observeElementOffset: tt,
914
- scrollToFn: nt,
910
+ function at(l) {
911
+ return rt({
912
+ observeElementRect: Y,
913
+ observeElementOffset: et,
914
+ scrollToFn: it,
915
915
  ...l
916
916
  });
917
917
  }
918
- function pt({
918
+ function St({
919
919
  selectedFilter: l,
920
920
  currentVal: u,
921
921
  exclude: t,
922
922
  setDraftColumnFilters: e,
923
923
  virtualization: s
924
924
  }) {
925
- const [n, o] = W(""), i = j(null), r = 32;
926
- F(() => {
927
- o("");
925
+ const [n, i] = F(""), o = j(null), r = 32;
926
+ V(() => {
927
+ i("");
928
928
  }, [l?.key]);
929
- const a = u || [], h = V(
929
+ const a = u || [], h = K(
930
930
  () => (l?.type === "checkbox" ? l.options : []).filter(
931
931
  (f) => f.toLowerCase().includes(n.toLowerCase())
932
932
  ),
933
933
  [l, n]
934
- ), p = rt({
934
+ ), p = at({
935
935
  count: h.length,
936
- getScrollElement: () => i.current,
936
+ getScrollElement: () => o.current,
937
937
  estimateSize: () => r,
938
938
  overscan: 5
939
939
  }), c = (f, S) => {
@@ -961,49 +961,57 @@ function pt({
961
961
  ]);
962
962
  };
963
963
  return /* @__PURE__ */ x("div", { children: [
964
- /* @__PURE__ */ y("div", { children: /* @__PURE__ */ x("div", { className: "ckds-filter-search-wrapper", children: [
965
- /* @__PURE__ */ y(H, {}),
966
- /* @__PURE__ */ y(
967
- "input",
968
- {
969
- placeholder: "Search here",
970
- className: "ckds-table-search-input",
971
- value: n,
972
- onChange: (f) => o(f.target.value)
973
- }
974
- )
975
- ] }) }),
964
+ /* @__PURE__ */ y("div", { children: /* @__PURE__ */ y(
965
+ J,
966
+ {
967
+ value: n,
968
+ placeholder: "Search",
969
+ onChange: (f) => i(f),
970
+ onClear: () => i(""),
971
+ size: "medium"
972
+ }
973
+ ) }),
976
974
  /* @__PURE__ */ x("div", { className: "ckds-filter-results-bar", children: [
977
- /* @__PURE__ */ x(T, { variant: "caption", color: "secondary", children: [
978
- h.length,
979
- " ",
980
- h.length === 1 ? "Result" : "Results"
975
+ /* @__PURE__ */ x("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: [
976
+ /* @__PURE__ */ x(w, { variant: "caption", color: "secondary", children: [
977
+ h.length,
978
+ " ",
979
+ h.length === 1 ? "Result" : "Results"
980
+ ] }),
981
+ a.length > 0 && /* @__PURE__ */ x(W, { children: [
982
+ /* @__PURE__ */ y("span", { style: { width: "1px", height: "12px", backgroundColor: "#DCDCDC" } }),
983
+ /* @__PURE__ */ x(w, { variant: "caption", color: "secondary", children: [
984
+ a.length,
985
+ " Selected"
986
+ ] })
987
+ ] })
981
988
  ] }),
982
989
  /* @__PURE__ */ x("label", { className: "ckds-filter-exclude-label", children: [
983
- /* @__PURE__ */ y(T, { variant: "caption", children: "Exclude" }),
990
+ /* @__PURE__ */ y(w, { variant: "caption", children: "Exclude" }),
984
991
  /* @__PURE__ */ y(
985
992
  $,
986
993
  {
987
994
  checked: !!t,
988
- onChange: d
995
+ onChange: d,
996
+ size: "small"
989
997
  }
990
998
  )
991
999
  ] })
992
1000
  ] }),
993
- h.length === 0 ? /* @__PURE__ */ y("div", { className: "ckds-filter-empty-state", children: /* @__PURE__ */ y(T, { variant: "caption", children: l?.type === "checkbox" && l.options.length === 0 ? "There are no values available for this filter." : "No matching results found for your search." }) }) : /* @__PURE__ */ x("div", { ref: i, className: "ckds-filter-multiselect-wr ckds-custom-scrollbar", children: [
1001
+ h.length === 0 ? /* @__PURE__ */ y("div", { className: "ckds-filter-empty-state", children: /* @__PURE__ */ y(w, { variant: "caption", children: l?.type === "checkbox" && l.options.length === 0 ? "There are no values available for this filter." : "No matching results found for your search." }) }) : /* @__PURE__ */ x("div", { ref: o, className: "ckds-filter-multiselect-wr ckds-custom-scrollbar", children: [
994
1002
  /* @__PURE__ */ x("label", { className: "ckds-filter-option-label", children: [
995
1003
  /* @__PURE__ */ y(
996
- P,
1004
+ B,
997
1005
  {
998
1006
  checked: h.length > 0 && h.every((f) => a.includes(f)),
999
1007
  indeterminate: h.some((f) => a.includes(f)) && !h.every((f) => a.includes(f)),
1000
1008
  onChange: (f) => v(f)
1001
1009
  }
1002
1010
  ),
1003
- /* @__PURE__ */ y(T, { variant: "body-sm", children: "Select All" })
1011
+ /* @__PURE__ */ y(w, { variant: "body-sm", children: "Select All" })
1004
1012
  ] }),
1005
1013
  /* @__PURE__ */ y(
1006
- B,
1014
+ H,
1007
1015
  {
1008
1016
  virtualization: s,
1009
1017
  rowVirtualizer: p,
@@ -1017,6 +1025,6 @@ function pt({
1017
1025
  ] });
1018
1026
  }
1019
1027
  export {
1020
- pt as O,
1021
- rt as u
1028
+ St as O,
1029
+ at as u
1022
1030
  };