impact-nova 1.3.0 → 1.5.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.
Files changed (117) hide show
  1. package/README.md +49 -0
  2. package/dist/components/layout/dashboard-layout.d.ts +15 -1
  3. package/dist/components/ui/accordion-nested-list/accordion-nested-list.js +65 -64
  4. package/dist/components/ui/accordion.js +38 -34
  5. package/dist/components/ui/ag-grid-react/cell-renderers/badge-cell-renderer.js +1 -1
  6. package/dist/components/ui/ag-grid-react/cell-renderers/cell-renderer-utils.d.ts +58 -0
  7. package/dist/components/ui/ag-grid-react/cell-renderers/cell-renderer-utils.js +104 -0
  8. package/dist/components/ui/ag-grid-react/cell-renderers/editors/input-cell-editor.js +62 -54
  9. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.d.ts +4 -6
  10. package/dist/components/ui/ag-grid-react/cell-renderers/editors/split-cell-editor.js +54 -68
  11. package/dist/components/ui/ag-grid-react/cell-renderers/index.d.ts +3 -1
  12. package/dist/components/ui/ag-grid-react/cell-renderers/index.js +33 -27
  13. package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.d.ts +3 -0
  14. package/dist/components/ui/ag-grid-react/cell-renderers/input-display-renderer.js +28 -12
  15. package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.d.ts +2 -0
  16. package/dist/components/ui/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +45 -44
  17. package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.d.ts +4 -6
  18. package/dist/components/ui/ag-grid-react/cell-renderers/split-cell-renderer.js +23 -37
  19. package/dist/components/ui/ag-grid-react/cell-renderers/types.d.ts +33 -17
  20. package/dist/components/ui/ag-grid-react/editable-utils.d.ts +27 -0
  21. package/dist/components/ui/ag-grid-react/editable-utils.js +62 -0
  22. package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +99 -98
  23. package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +110 -143
  24. package/dist/components/ui/ag-grid-react/headers/column-menu/column-settings-menu.js +72 -69
  25. package/dist/components/ui/ag-grid-react/headers/components/header-info.js +36 -35
  26. package/dist/components/ui/ag-grid-react/headers/components/info-modal.js +14 -12
  27. package/dist/components/ui/ag-grid-react/headers/custom-header.js +111 -110
  28. package/dist/components/ui/ag-grid-react/headers/header-search-input.js +204 -203
  29. package/dist/components/ui/alert.js +62 -58
  30. package/dist/components/ui/breadcrumb.js +81 -74
  31. package/dist/components/ui/calendar.js +354 -354
  32. package/dist/components/ui/chart/chart.js +63 -62
  33. package/dist/components/ui/chips.js +42 -38
  34. package/dist/components/ui/command-palette/command-palette-context.d.ts +52 -0
  35. package/dist/components/ui/command-palette/command-palette-context.js +110 -0
  36. package/dist/components/ui/command-palette/command-palette.d.ts +67 -0
  37. package/dist/components/ui/command-palette/command-palette.js +402 -0
  38. package/dist/components/ui/command-palette/index.d.ts +23 -0
  39. package/dist/components/ui/command-palette/index.js +44 -0
  40. package/dist/components/ui/command-palette/kbd.d.ts +28 -0
  41. package/dist/components/ui/command-palette/kbd.js +52 -0
  42. package/dist/components/ui/command-palette/shortcut-registry.d.ts +68 -0
  43. package/dist/components/ui/command-palette/shortcut-registry.js +183 -0
  44. package/dist/components/ui/command-palette/shortcut-scope-provider.d.ts +55 -0
  45. package/dist/components/ui/command-palette/shortcut-scope-provider.js +55 -0
  46. package/dist/components/ui/command-palette/shortcut-settings.d.ts +27 -0
  47. package/dist/components/ui/command-palette/shortcut-settings.js +266 -0
  48. package/dist/components/ui/command-palette/use-browser-shortcuts.d.ts +32 -0
  49. package/dist/components/ui/command-palette/use-browser-shortcuts.js +48 -0
  50. package/dist/components/ui/command-palette/use-global-shortcut.d.ts +3 -0
  51. package/dist/components/ui/command-palette/use-global-shortcut.js +7 -0
  52. package/dist/components/ui/command-palette/use-shortcut.d.ts +47 -0
  53. package/dist/components/ui/command-palette/use-shortcut.js +49 -0
  54. package/dist/components/ui/command-palette/utils.d.ts +119 -0
  55. package/dist/components/ui/command-palette/utils.js +248 -0
  56. package/dist/components/ui/data-table/data-table-column-list.js +87 -86
  57. package/dist/components/ui/data-table/data-table-format-options.js +45 -44
  58. package/dist/components/ui/data-table/data-table-view-options.js +39 -38
  59. package/dist/components/ui/date-picker/date-picker.js +89 -87
  60. package/dist/components/ui/date-picker/date-range-picker.js +140 -138
  61. package/dist/components/ui/date-picker/month-picker.js +82 -81
  62. package/dist/components/ui/date-picker/month-range-picker.js +108 -105
  63. package/dist/components/ui/date-picker/multi-date-picker.js +68 -66
  64. package/dist/components/ui/date-picker/multi-month-picker.js +59 -58
  65. package/dist/components/ui/date-picker/multi-week-picker.js +80 -78
  66. package/dist/components/ui/date-picker/week-picker.js +117 -115
  67. package/dist/components/ui/date-picker/week-range-picker.js +166 -164
  68. package/dist/components/ui/dialog.js +78 -73
  69. package/dist/components/ui/drawer.js +71 -66
  70. package/dist/components/ui/file-upload.js +131 -127
  71. package/dist/components/ui/filter-panel/filter-panel.js +98 -94
  72. package/dist/components/ui/filter-strip/filter-strip.js +95 -91
  73. package/dist/components/ui/filter-strip/filter-summary.js +91 -90
  74. package/dist/components/ui/header.js +57 -53
  75. package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +78 -76
  76. package/dist/components/ui/loader.js +17 -16
  77. package/dist/components/ui/nested-list/components/NestedListHeader.d.ts +1 -0
  78. package/dist/components/ui/nested-list/components/NestedListHeader.js +51 -48
  79. package/dist/components/ui/nested-list/components/SortableItem.js +60 -59
  80. package/dist/components/ui/nested-list/nested-list.js +184 -182
  81. package/dist/components/ui/notification-panel/notification-panel.js +60 -53
  82. package/dist/components/ui/popover.js +45 -40
  83. package/dist/components/ui/prompt.js +90 -86
  84. package/dist/components/ui/select/select.js +206 -209
  85. package/dist/components/ui/sheet.d.ts +1 -0
  86. package/dist/components/ui/sheet.js +50 -48
  87. package/dist/components/ui/sidebar.js +273 -267
  88. package/dist/components/ui/stepper.js +75 -63
  89. package/dist/components/ui/tag.js +48 -44
  90. package/dist/components/ui/toast.js +46 -41
  91. package/dist/i18n/ImpactNovaI18nContext.d.ts +21 -0
  92. package/dist/i18n/ImpactNovaI18nContext.js +76 -0
  93. package/dist/i18n/defaultMessages.d.ts +231 -0
  94. package/dist/i18n/defaultMessages.js +206 -0
  95. package/dist/i18n/getDateFnsLocale.d.ts +11 -0
  96. package/dist/i18n/getDateFnsLocale.js +21 -0
  97. package/dist/i18n/index.d.ts +5 -0
  98. package/dist/i18n/locales/de.d.ts +2 -0
  99. package/dist/i18n/locales/de.js +206 -0
  100. package/dist/i18n/locales/es.d.ts +2 -0
  101. package/dist/i18n/locales/es.js +206 -0
  102. package/dist/i18n/locales/hi.d.ts +2 -0
  103. package/dist/i18n/locales/hi.js +206 -0
  104. package/dist/i18n/locales/index.d.ts +4 -0
  105. package/dist/i18n/locales/kn.d.ts +2 -0
  106. package/dist/i18n/locales/kn.js +206 -0
  107. package/dist/icons/assets/boxAdd.svg.js +5 -0
  108. package/dist/icons/assets/boxed.svg.js +5 -0
  109. package/dist/icons/assets/trolley.svg.js +5 -0
  110. package/dist/icons/assets/unlocked.svg.js +5 -0
  111. package/dist/icons/index.d.ts +4 -0
  112. package/dist/icons/index.js +179 -171
  113. package/dist/impact-nova.css +1 -1
  114. package/dist/index.d.ts +4 -0
  115. package/dist/index.js +232 -172
  116. package/package.json +36 -4
  117. package/dist/components/ui/ag-grid-react/cell-renderers/types.js +0 -74
@@ -1,107 +1,108 @@
1
- import { jsxs as p, jsx as a, Fragment as st } from "react/jsx-runtime";
2
- import { useState as H, useRef as E, useEffect as R } from "react";
3
- import * as Y from "@radix-ui/react-popover";
4
- import { useVirtualizer as it } from "@tanstack/react-virtual";
5
- import at from "./components/LabelWithSequence.js";
6
- import rt from "./components/Submenu.js";
7
- import { LoadingSpinner as ot, Cross as ct, ChevronRight as Ne, Search as ut, Info as ie } from "../../../icons/index.js";
8
- import { Checkbox as Pe } from "../checkbox.js";
9
- import { Button as dt } from "../button.js";
1
+ import { jsxs as h, jsx as a, Fragment as at } from "react/jsx-runtime";
2
+ import { useState as q, useRef as E, useEffect as R } from "react";
3
+ import * as J from "@radix-ui/react-popover";
4
+ import { useVirtualizer as rt } from "@tanstack/react-virtual";
5
+ import ot from "./components/LabelWithSequence.js";
6
+ import ct from "./components/Submenu.js";
7
+ import { LoadingSpinner as ut, Cross as dt, ChevronRight as Pe, Search as ft, Info as ae } from "../../../icons/index.js";
8
+ import { Checkbox as Oe } from "../checkbox.js";
9
+ import { Button as mt } from "../button.js";
10
10
  import { cn as O } from "../../../lib/utils.js";
11
- import { isInvertedSelection as k, isOptionArray as y, isSelected as ft, getSequence as mt, getLeafOptions as pt } from "./utils/select.js";
12
- import { useFlattenOptions as ht } from "./hooks/useFlattenOptions.js";
13
- import { useSelectionModel as xt } from "./hooks/useSelectionModel.js";
14
- import { useVisibleStats as bt } from "./hooks/useVisibleStats.js";
15
- const gt = (ae) => {
11
+ import { isInvertedSelection as k, isOptionArray as y, isSelected as pt, getSequence as ht, getLeafOptions as xt } from "./utils/select.js";
12
+ import { useFlattenOptions as bt } from "./hooks/useFlattenOptions.js";
13
+ import { useSelectionModel as gt } from "./hooks/useSelectionModel.js";
14
+ import { useVisibleStats as vt } from "./hooks/useVisibleStats.js";
15
+ import { useImpactNovaI18n as St } from "../../../i18n/ImpactNovaI18nContext.js";
16
+ const wt = (re) => {
16
17
  const {
17
- options: T,
18
- value: J,
19
- defaultValue: Oe,
18
+ options: I,
19
+ value: K,
20
+ defaultValue: Ce,
20
21
  onChange: u,
21
22
  isMulti: f,
22
23
  isDisabled: C,
23
24
  isLoading: A,
24
- isClearable: Ce = !0,
25
+ isClearable: ke = !0,
25
26
  isSearchable: F = !0,
26
- placeholder: ke = "Select...",
27
+ placeholder: Ae,
27
28
  // menuPortalTarget is kept for API compatibility but no longer used (Radix handles portalling)
28
- menuPortalTarget: vt,
29
- autoFocus: Ae,
30
- closeMenuOnSelect: De = !f,
31
- defaultMenuIsOpen: $e = !1,
32
- scrollToSelectedOnOpen: re = !1,
33
- maxSelectableOptions: h,
34
- showSequence: oe,
29
+ menuPortalTarget: yt,
30
+ autoFocus: De,
31
+ closeMenuOnSelect: $e = !f,
32
+ defaultMenuIsOpen: Ie = !1,
33
+ scrollToSelectedOnOpen: oe = !1,
34
+ maxSelectableOptions: p,
35
+ showSequence: ce,
35
36
  selectionOrder: Te,
36
- label: ce,
37
+ label: ue,
37
38
  isRequired: Ge,
38
- error: K,
39
- helperText: ue,
39
+ error: Q,
40
+ helperText: de,
40
41
  id: V,
41
42
  className: Me,
42
43
  parentClassName: ze,
43
- onMenuScrollToBottom: Q,
44
- name: Ie,
45
- isSelectAllEnabled: de = !0,
44
+ onMenuScrollToBottom: X,
45
+ name: Ee,
46
+ isSelectAllEnabled: fe = !0,
46
47
  isReadOnly: b = !1,
47
48
  searchPosition: L = "menu",
48
- footerContent: fe,
49
- onInputChange: Ee,
50
- getOptionLabel: me,
51
- renderOption: pe,
52
- onMenuOpen: Re,
53
- onMenuClose: he,
54
- labelOrientation: xe = "top",
55
- leftContent: be,
56
- ignoreCase: Fe,
57
- ignoreAccents: Le,
49
+ footerContent: me,
50
+ onInputChange: Re,
51
+ getOptionLabel: pe,
52
+ renderOption: he,
53
+ onMenuOpen: Fe,
54
+ onMenuClose: xe,
55
+ labelOrientation: be = "top",
56
+ leftContent: ge,
57
+ ignoreCase: Le,
58
+ ignoreAccents: He,
58
59
  matchFrom: je,
59
- stringify: He,
60
- trim: qe,
61
- filterOption: _e,
60
+ stringify: qe,
61
+ trim: _e,
62
+ filterOption: Be,
62
63
  enableSubMenus: v = !1,
63
64
  enableGroups: N = !1,
64
- fetchError: q,
65
- onRefetch: ge,
66
- menuWidth: Be,
67
- onClearAll: ve,
68
- onFocus: We,
69
- onBlur: Ue
70
- } = ae, [S, Se] = H($e), [G, _] = H(""), [we, X] = H(void 0), [d, g] = H(Oe || (f ? [] : null)), [Ye, Z] = H(null), Je = E(null), ee = E(null), Ke = E(null), j = E(null), te = E(null);
65
+ fetchError: _,
66
+ onRefetch: ve,
67
+ menuWidth: We,
68
+ onClearAll: Se,
69
+ onFocus: Ue,
70
+ onBlur: Ye
71
+ } = re, { t: H } = St(), Je = Ae ?? H("select.placeholder"), [S, we] = q(Ie), [T, B] = q(""), [ye, Z] = q(void 0), [d, g] = q(Ce || (f ? [] : null)), [Ke, ee] = q(null), Qe = E(null), te = E(null), Xe = E(null), j = E(null), le = E(null);
71
72
  R(() => {
72
- J !== void 0 && g(J);
73
- }, [J]), R(() => {
73
+ K !== void 0 && g(K);
74
+ }, [K]), R(() => {
74
75
  let e;
75
- return S && F && L === "menu" && te.current && (e = setTimeout(() => {
76
- te.current?.focus();
76
+ return S && F && L === "menu" && le.current && (e = setTimeout(() => {
77
+ le.current?.focus();
77
78
  }, 50)), () => {
78
79
  e && clearTimeout(e);
79
80
  };
80
81
  }, [S, F, L]);
81
- const { flatOptions: x, isProcessing: P, totalOptionsCount: ye, workerSelectAll: Qe } = ht(T, G, {
82
- ignoreCase: Fe,
83
- ignoreAccents: Le,
82
+ const { flatOptions: x, isProcessing: P, totalOptionsCount: Ve, workerSelectAll: Ze } = bt(I, T, {
83
+ ignoreCase: Le,
84
+ ignoreAccents: He,
84
85
  matchFrom: je,
85
- stringify: He,
86
- trim: qe,
87
- filterOption: _e,
86
+ stringify: qe,
87
+ trim: _e,
88
+ filterOption: Be,
88
89
  enableSubMenus: v,
89
90
  enableGroups: N
90
- }), w = xt(d, f ?? !1), { stats: M, getGroupStats: le } = bt(
91
+ }), w = gt(d, f ?? !1), { stats: G, getGroupStats: ne } = vt(
91
92
  x,
92
- ye,
93
- G,
93
+ Ve,
94
+ T,
94
95
  w,
95
96
  d,
96
97
  f ?? !1
97
- ), D = it({
98
+ ), D = rt({
98
99
  count: x.length,
99
100
  getScrollElement: () => j.current,
100
101
  estimateSize: () => 34,
101
102
  overscan: 5
102
103
  });
103
104
  R(() => {
104
- S || X(void 0);
105
+ S || Z(void 0);
105
106
  }, [S]), R(() => {
106
107
  if (!S) return;
107
108
  const e = requestAnimationFrame(() => {
@@ -109,7 +110,7 @@ const gt = (ae) => {
109
110
  });
110
111
  return () => cancelAnimationFrame(e);
111
112
  }, [S, D]), R(() => {
112
- if (S && re && !P && x.length > 0) {
113
+ if (S && oe && !P && x.length > 0) {
113
114
  const e = x.findIndex((t) => f ? w.mode === "exclude" ? !w.set.has(t.value) : w.set.has(t.value) : d?.value === t.value);
114
115
  if (e !== -1) {
115
116
  const t = setTimeout(() => {
@@ -118,44 +119,44 @@ const gt = (ae) => {
118
119
  return () => clearTimeout(t);
119
120
  }
120
121
  }
121
- }, [S, re, P, x.length, f, w.mode, w.set, d, D]);
122
- const z = E(null);
122
+ }, [S, oe, P, x.length, f, w.mode, w.set, d, D]);
123
+ const M = E(null);
123
124
  R(() => {
124
- if (!j.current || !Q) return;
125
+ if (!j.current || !X) return;
125
126
  const e = () => {
126
127
  if (A || P) return;
127
128
  const { scrollTop: n, scrollHeight: r, clientHeight: s } = j.current;
128
129
  if (r - n - s <= 10) {
129
- if (z.current) return;
130
- Q(), z.current = setTimeout(() => {
131
- z.current = null;
130
+ if (M.current) return;
131
+ X(), M.current = setTimeout(() => {
132
+ M.current = null;
132
133
  }, 500);
133
134
  }
134
135
  }, t = j.current;
135
136
  return t.addEventListener("scroll", e), !A && !P && e(), () => {
136
- t.removeEventListener("scroll", e), z.current && (clearTimeout(z.current), z.current = null);
137
+ t.removeEventListener("scroll", e), M.current && (clearTimeout(M.current), M.current = null);
137
138
  };
138
139
  }, [
139
- Q,
140
+ X,
140
141
  x.length,
141
142
  S,
142
143
  A,
143
144
  P
144
145
  ]);
145
- const Xe = (e) => {
146
+ const et = (e) => {
146
147
  if (!C)
147
- if (Se(e), e)
148
- Re?.();
148
+ if (we(e), e)
149
+ Fe?.();
149
150
  else {
150
151
  const t = d, n = f && y(d) ? d.map((r) => r.value) : void 0;
151
- he?.(t, n), _(""), Z(null);
152
+ xe?.(t, n), B(""), ee(null);
152
153
  }
153
- }, Ve = (e) => {
154
+ }, Ne = (e) => {
154
155
  if (!(C || b || e.isDisabled || ("children" in e || "options" in e) && e.isParentSelectable === !1))
155
156
  if (f) {
156
157
  const n = d || [];
157
158
  if ("children" in e || "options" in e) {
158
- const s = pt(
159
+ const s = xt(
159
160
  e,
160
161
  v,
161
162
  N
@@ -168,7 +169,7 @@ const gt = (ae) => {
168
169
  i ? s.forEach((m) => {
169
170
  c.includes(m.value) || c.push(m.value);
170
171
  }) : c = c.filter(
171
- (m) => !s.some((W) => W.value === m)
172
+ (m) => !s.some((U) => U.value === m)
172
173
  );
173
174
  const o = {
174
175
  isAllSelected: !0,
@@ -187,7 +188,7 @@ const gt = (ae) => {
187
188
  (o) => !s.some((m) => m.value === o.value)
188
189
  ) : s.forEach((o) => {
189
190
  c.some((m) => m.value === o.value) || c.push(o);
190
- }), h && c.length > h)
191
+ }), p && c.length > p)
191
192
  return;
192
193
  g(c), u && u(c, {
193
194
  action: "select-option",
@@ -212,7 +213,7 @@ const gt = (ae) => {
212
213
  if (s)
213
214
  l = r.filter((i) => i.value !== e.value);
214
215
  else {
215
- if (h && n.length >= h)
216
+ if (p && n.length >= p)
216
217
  return;
217
218
  l = [...r, e];
218
219
  }
@@ -225,22 +226,22 @@ const gt = (ae) => {
225
226
  g(e), u && u(e, {
226
227
  action: "select-option",
227
228
  option: e
228
- }), De && (Se(!1), he?.(e, void 0), _(""));
229
- }, Ze = async () => {
229
+ }), $e && (we(!1), xe?.(e, void 0), B(""));
230
+ }, tt = async () => {
230
231
  if (!(!f || C || b)) {
231
- if (T.length > 3e3) {
232
+ if (I.length > 3e3) {
232
233
  try {
233
- const e = await Qe(
234
+ const e = await Ze(
234
235
  d,
235
236
  k(d),
236
- h
237
+ p
237
238
  );
238
239
  g(e), u && u(e, { action: "select-option" });
239
240
  } catch {
240
241
  }
241
242
  return;
242
243
  }
243
- if (G) {
244
+ if (T) {
244
245
  let e = !1;
245
246
  for (const n of x)
246
247
  if (!n.isGroup && !n.isSubmenuParent && !n.isDisabled) {
@@ -251,7 +252,7 @@ const gt = (ae) => {
251
252
  return;
252
253
  const t = d || [];
253
254
  if (k(t)) {
254
- const n = t.excludedValues, { totalVisible: r, selectedVisible: s } = M, l = r > 0 && r === s;
255
+ const n = t.excludedValues, { totalVisible: r, selectedVisible: s } = G, l = r > 0 && r === s;
255
256
  let i = [...n];
256
257
  if (l)
257
258
  for (const o of x)
@@ -268,7 +269,7 @@ const gt = (ae) => {
268
269
  };
269
270
  g(c), u && u(c, { action: "select-option" });
270
271
  } else if (y(t)) {
271
- const n = t, { totalVisible: r, selectedVisible: s } = M, l = r > 0 && r === s;
272
+ const n = t, { totalVisible: r, selectedVisible: s } = G, l = r > 0 && r === s;
272
273
  let i = [...n];
273
274
  if (l) {
274
275
  const c = /* @__PURE__ */ new Set();
@@ -280,12 +281,12 @@ const gt = (ae) => {
280
281
  for (const o of x)
281
282
  !o.isGroup && !o.isSubmenuParent && !o.isDisabled && (c.has(o.value) || (i.push(o), c.add(o.value)));
282
283
  }
283
- if (h && i.length > h)
284
+ if (p && i.length > p)
284
285
  return;
285
286
  g(i), u && u(i, { action: "select-option" });
286
287
  }
287
- } else if (h) {
288
- const e = d, { totalVisible: t } = M, n = y(e) ? e.length : 0, r = Math.min(t, h);
288
+ } else if (p) {
289
+ const e = d, { totalVisible: t } = G, n = y(e) ? e.length : 0, r = Math.min(t, p);
289
290
  if (y(e) && n >= r && n > 0) {
290
291
  const s = e.filter((l) => l.isDisabled);
291
292
  g(s), u && u(s, {
@@ -297,7 +298,7 @@ const gt = (ae) => {
297
298
  );
298
299
  let l = s.length;
299
300
  for (const i of x)
300
- if (!i.isGroup && !i.isSubmenuParent && !i.isDisabled && (s.push(i), l++, l >= h))
301
+ if (!i.isGroup && !i.isSubmenuParent && !i.isDisabled && (s.push(i), l++, l >= p))
301
302
  break;
302
303
  g(s), u && u(s, {
303
304
  action: "select-option"
@@ -305,7 +306,7 @@ const gt = (ae) => {
305
306
  }
306
307
  } else {
307
308
  const e = d, t = k(e) && e.excludedValues.length === 0;
308
- if (ae.enableInvertedSelection)
309
+ if (re.enableInvertedSelection)
309
310
  if (t) {
310
311
  const n = y(e) ? e.filter((r) => r.isDisabled) : [];
311
312
  g(n), u && u(n, {
@@ -321,7 +322,7 @@ const gt = (ae) => {
321
322
  g(r), u && u(r, { action: "select-option" });
322
323
  }
323
324
  else {
324
- const { totalVisible: n, selectedVisible: r } = M;
325
+ const { totalVisible: n, selectedVisible: r } = G;
325
326
  if (n > 0 && n === r) {
326
327
  const s = y(e) ? e.filter((l) => l.isDisabled) : [];
327
328
  g(s), u && u(s, {
@@ -338,7 +339,7 @@ const gt = (ae) => {
338
339
  }
339
340
  }
340
341
  }
341
- }, et = (e) => {
342
+ }, lt = (e) => {
342
343
  if (e.stopPropagation(), !b)
343
344
  if (f) {
344
345
  const t = [], n = (s) => {
@@ -357,9 +358,9 @@ const gt = (ae) => {
357
358
  i.isDisabled && (w.mode === "exclude" ? !w.set.has(i.value) : w.set.has(i.value)) && t.push(i);
358
359
  }
359
360
  };
360
- n(T);
361
+ n(I);
361
362
  const r = t;
362
- g(r), u && u(r, { action: "clear" }), ve?.();
363
+ g(r), u && u(r, { action: "clear" }), Se?.();
363
364
  } else {
364
365
  const t = d;
365
366
  if (t) {
@@ -386,68 +387,64 @@ const gt = (ae) => {
386
387
  }
387
388
  }
388
389
  };
389
- if (s(T), r?.isDisabled)
390
+ if (s(I), r?.isDisabled)
390
391
  return;
391
392
  }
392
393
  const n = null;
393
- g(n), u && u(n, { action: "clear" }), ve?.();
394
+ g(n), u && u(n, { action: "clear" }), Se?.();
394
395
  }
395
- }, tt = (e) => mt(
396
+ }, nt = (e) => ht(
396
397
  e,
397
- oe ?? !1,
398
+ ce ?? !1,
398
399
  f ?? !1,
399
400
  Te,
400
401
  d
401
- ), B = (e) => me ? me(e) : e.label, lt = () => {
402
+ ), W = (e) => pe ? pe(e) : e.label, st = () => {
402
403
  if (f) {
403
404
  const e = d || [];
404
405
  let t = 0;
405
- return k(e) ? t = ye - e.excludedValues.length : y(e) && (t = e.length), t === 0 ? null : t === 1 && y(e) ? /* @__PURE__ */ a("span", { className: "text-[#1f2b4d] text-[14px] font-medium truncate min-w-0 block", children: B(e[0]) }) : /* @__PURE__ */ p("span", { className: "text-[#1f2b4d] text-[14px] font-medium truncate min-w-0 block", children: [
406
- "Selected (",
407
- t,
408
- ")"
409
- ] });
406
+ return k(e) ? t = Ve - e.excludedValues.length : y(e) && (t = e.length), t === 0 ? null : t === 1 && y(e) ? /* @__PURE__ */ a("span", { className: "text-[#1f2b4d] text-[14px] font-medium truncate min-w-0 block", children: W(e[0]) }) : /* @__PURE__ */ a("span", { className: "text-[#1f2b4d] text-[14px] font-medium truncate min-w-0 block", children: H("select.selectedCount", { count: t }) });
410
407
  } else {
411
408
  const e = d;
412
- return e ? /* @__PURE__ */ a("span", { className: "text-[#1f2b4d] text-[14px] font-medium truncate min-w-0 block", children: B(e) }) : null;
409
+ return e ? /* @__PURE__ */ a("span", { className: "text-[#1f2b4d] text-[14px] font-medium truncate min-w-0 block", children: W(e) }) : null;
413
410
  }
414
411
  };
415
- return /* @__PURE__ */ p(
412
+ return /* @__PURE__ */ h(
416
413
  "div",
417
414
  {
418
415
  className: O(
419
416
  "flex gap-[6px]",
420
- xe === "left" ? "w-fit flex-row items-center" : "w-full flex-col",
417
+ be === "left" ? "w-fit flex-row items-center" : "w-full flex-col",
421
418
  ze
422
419
  ),
423
- onFocus: We,
424
- onBlur: Ue,
420
+ onFocus: Ue,
421
+ onBlur: Ye,
425
422
  tabIndex: C ? -1 : 0,
426
423
  "data-testid": `select-${V || "default"}`,
427
424
  "data-component": "select",
428
425
  children: [
429
- ce && /* @__PURE__ */ p(
426
+ ue && /* @__PURE__ */ h(
430
427
  "label",
431
428
  {
432
429
  className: O(
433
430
  "text-[12px] font-medium text-[#60697d] leading-[18px]",
434
- xe === "left" ? "shrink-0" : ""
431
+ be === "left" ? "shrink-0" : ""
435
432
  ),
436
433
  children: [
437
- ce,
434
+ ue,
438
435
  " ",
439
436
  Ge && /* @__PURE__ */ a("span", { className: "text-[red]", children: "*" })
440
437
  ]
441
438
  }
442
439
  ),
443
- /* @__PURE__ */ p(Y.Root, { open: S, onOpenChange: Xe, children: [
444
- /* @__PURE__ */ a(Y.Trigger, { asChild: !0, children: /* @__PURE__ */ a(
440
+ /* @__PURE__ */ h(J.Root, { open: S, onOpenChange: et, children: [
441
+ /* @__PURE__ */ a(J.Trigger, { asChild: !0, children: /* @__PURE__ */ a(
445
442
  "div",
446
443
  {
447
- ref: Je,
444
+ ref: Qe,
448
445
  className: O(
449
446
  "relative h-[32px] w-full cursor-pointer rounded-[8px] border border-solid px-3 py-1 text-left shadow-sm focus:outline-none sm:text-sm transition-all flex items-center overflow-hidden",
450
- K ? "border-[#e15554] focus:ring-[#e15554]" : "border-[#c3c8d4] hover:border-gray-400 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500",
447
+ Q ? "border-[#e15554] focus:ring-[#e15554]" : "border-[#c3c8d4] hover:border-gray-400 focus:border-indigo-500 focus:ring-1 focus:ring-indigo-500",
451
448
  C ? "bg-[#f2f4fb] cursor-not-allowed opacity-75" : "",
452
449
  b ? "cursor-default bg-[#f2f4fb]" : "",
453
450
  S ? "ring-1 ring-indigo-500 border-indigo-500" : "",
@@ -458,53 +455,53 @@ const gt = (ae) => {
458
455
  "data-component": "select-trigger",
459
456
  "data-disabled": C || void 0,
460
457
  "data-state": S ? "open" : "closed",
461
- children: /* @__PURE__ */ p("div", { className: "flex items-center justify-between w-full min-w-0 max-w-full", children: [
462
- be && /* @__PURE__ */ a("div", { className: "flex items-center text-gray-500 shrink-0", children: be }),
463
- /* @__PURE__ */ p(
458
+ children: /* @__PURE__ */ h("div", { className: "flex items-center justify-between w-full min-w-0 max-w-full", children: [
459
+ ge && /* @__PURE__ */ a("div", { className: "flex items-center text-gray-500 shrink-0", children: ge }),
460
+ /* @__PURE__ */ h(
464
461
  "div",
465
462
  {
466
463
  className: "flex-1 flex items-center overflow-hidden min-w-0 max-w-full",
467
464
  "data-testid": `select-value-${V || "default"}`,
468
465
  children: [
469
- lt() || /* @__PURE__ */ a(
466
+ st() || /* @__PURE__ */ a(
470
467
  "span",
471
468
  {
472
469
  className: "text-[#b4bac7] font-normal text-[14px] truncate min-w-0 block",
473
470
  "data-testid": `select-placeholder-${V || "default"}`,
474
471
  "data-has-value": !1,
475
- children: ke
472
+ children: Je
476
473
  }
477
474
  ),
478
475
  F && S && L === "trigger" && !b && /* @__PURE__ */ a(
479
476
  "input",
480
477
  {
481
- ref: Ke,
478
+ ref: Xe,
482
479
  type: "text",
483
480
  className: "flex-1 min-w-[50px] border-none p-0 focus:ring-0 text-sm outline-none h-full",
484
- value: G,
485
- onChange: (e) => _(e.target.value),
481
+ value: T,
482
+ onChange: (e) => B(e.target.value),
486
483
  onClick: (e) => e.stopPropagation(),
487
- autoFocus: Ae,
488
- name: Ie || void 0
484
+ autoFocus: De,
485
+ name: Ee || void 0
489
486
  }
490
487
  )
491
488
  ]
492
489
  }
493
490
  ),
494
- /* @__PURE__ */ a("div", { className: "flex items-center gap-1 text-gray-400 shrink-0", children: !S && (A || P) ? /* @__PURE__ */ a(ot, { size: "14px" }) : /* @__PURE__ */ p(st, { children: [
495
- Ce && !b && (f && (k(
491
+ /* @__PURE__ */ a("div", { className: "flex items-center gap-1 text-gray-400 shrink-0", children: !S && (A || P) ? /* @__PURE__ */ a(ut, { size: "14px" }) : /* @__PURE__ */ h(at, { children: [
492
+ ke && !b && (f && (k(
496
493
  d
497
494
  ) && d.isAllSelected || y(d) && d.length > 0) || !f && d) && /* @__PURE__ */ a(
498
495
  "div",
499
496
  {
500
497
  role: "button",
501
- onClick: et,
498
+ onClick: lt,
502
499
  className: "hover:text-gray-600 p-0.5",
503
- children: /* @__PURE__ */ a(ct, { size: "11px", color: "#758490" })
500
+ children: /* @__PURE__ */ a(dt, { size: "11px", color: "#758490" })
504
501
  }
505
502
  ),
506
503
  /* @__PURE__ */ a(
507
- Ne,
504
+ Pe,
508
505
  {
509
506
  size: "16px",
510
507
  className: O(
@@ -517,10 +514,10 @@ const gt = (ae) => {
517
514
  ] })
518
515
  }
519
516
  ) }),
520
- /* @__PURE__ */ a(Y.Portal, { children: /* @__PURE__ */ p(
521
- Y.Content,
517
+ /* @__PURE__ */ a(J.Portal, { children: /* @__PURE__ */ h(
518
+ J.Content,
522
519
  {
523
- ref: ee,
520
+ ref: te,
524
521
  side: "bottom",
525
522
  sideOffset: 4,
526
523
  align: "start",
@@ -532,9 +529,9 @@ const gt = (ae) => {
532
529
  onWheel: (e) => e.stopPropagation(),
533
530
  onPointerDown: (e) => e.stopPropagation(),
534
531
  style: {
535
- width: Be || "var(--radix-popover-trigger-width)",
532
+ width: We || "var(--radix-popover-trigger-width)",
536
533
  maxHeight: "var(--radix-popover-content-available-height)",
537
- minHeight: we ? `${we}px` : void 0
534
+ minHeight: ye ? `${ye}px` : void 0
538
535
  },
539
536
  className: O(
540
537
  "z-50 overflow-hidden rounded-[12px] text-base shadow-[0px_1px_6px_0px_rgba(26,39,124,0.14)] focus:outline-none sm:text-sm flex flex-col border-none pointer-events-auto",
@@ -543,33 +540,33 @@ const gt = (ae) => {
543
540
  "data-testid": `select-menu-${V || "default"}`,
544
541
  "data-component": "select-menu",
545
542
  children: [
546
- /* @__PURE__ */ p(
543
+ /* @__PURE__ */ h(
547
544
  "div",
548
545
  {
549
546
  className: O(
550
547
  "flex flex-col z-10 sticky top-0 px-[6px] pt-[8px]",
551
548
  b ? "bg-[#f5f5f5]" : "bg-white",
552
- !q && (F && L === "menu" && !b || f && de && !b && x.length > 0) ? "border-b border-solid border-gray-100" : ""
549
+ !_ && (F && L === "menu" && !b || f && fe && !b && x.length > 0) ? "border-b border-solid border-gray-100" : ""
553
550
  ),
554
551
  children: [
555
- F && L === "menu" && !b && !q && /* @__PURE__ */ a(
552
+ F && L === "menu" && !b && !_ && /* @__PURE__ */ a(
556
553
  "div",
557
554
  {
558
555
  className: "p-0",
559
556
  "data-testid": `select-search-container-${V || "default"}`,
560
- children: /* @__PURE__ */ p("div", { className: "relative", children: [
561
- /* @__PURE__ */ a("div", { className: "absolute inset-y-0 left-[12px] flex items-center pointer-events-none", children: /* @__PURE__ */ a(ut, { size: "14px", color: "#AFAFAF" }) }),
557
+ children: /* @__PURE__ */ h("div", { className: "relative", children: [
558
+ /* @__PURE__ */ a("div", { className: "absolute inset-y-0 left-[12px] flex items-center pointer-events-none", children: /* @__PURE__ */ a(ft, { size: "14px", color: "#AFAFAF" }) }),
562
559
  /* @__PURE__ */ a(
563
560
  "input",
564
561
  {
565
- ref: te,
562
+ ref: le,
566
563
  type: "text",
567
564
  className: "block w-full pl-[34px] pr-4 h-[35px] border-none border-b border-primary text-sm outline-none focus:ring-0",
568
- placeholder: "Search here...",
569
- value: G,
565
+ placeholder: H("select.searchHere"),
566
+ value: T,
570
567
  onChange: (e) => {
571
568
  const t = e.target.value;
572
- G === "" && t !== "" ? ee.current && X(ee.current.offsetHeight) : t === "" && X(void 0), _(t), Ee?.(t);
569
+ T === "" && t !== "" ? te.current && Z(te.current.offsetHeight) : t === "" && Z(void 0), B(t), Re?.(t);
573
570
  },
574
571
  onClick: (e) => e.stopPropagation(),
575
572
  "data-testid": `select-search-input-${V || "default"}`
@@ -578,7 +575,7 @@ const gt = (ae) => {
578
575
  ] })
579
576
  }
580
577
  ),
581
- !A && !P && !q && f && de && !b && x.length > 0 && /* @__PURE__ */ a(
578
+ !A && !P && !_ && f && fe && !b && x.length > 0 && /* @__PURE__ */ a(
582
579
  "div",
583
580
  {
584
581
  className: "pb-1",
@@ -587,16 +584,16 @@ const gt = (ae) => {
587
584
  "div",
588
585
  {
589
586
  className: "flex items-center justify-between cursor-pointer rounded-md hover:bg-gray-100 transition-colors py-[6px] px-3 w-full",
590
- onClick: Ze,
587
+ onClick: tt,
591
588
  "data-testid": `select-select-all-button-${V || "default"}`,
592
- children: /* @__PURE__ */ p("div", { className: "flex items-center flex-1", children: [
589
+ children: /* @__PURE__ */ h("div", { className: "flex items-center flex-1", children: [
593
590
  /* @__PURE__ */ a("div", { className: "pointer-events-none flex", children: /* @__PURE__ */ a(
594
- Pe,
591
+ Oe,
595
592
  {
596
593
  checked: (() => {
597
- const { totalVisible: e, selectedVisible: t } = M;
594
+ const { totalVisible: e, selectedVisible: t } = G;
598
595
  if (e === 0) return !1;
599
- const n = h ? Math.min(e, h) : e;
596
+ const n = p ? Math.min(e, p) : e;
600
597
  return t > 0 && t < n ? "indeterminate" : t >= n;
601
598
  })(),
602
599
  disabled: C || b,
@@ -611,8 +608,8 @@ const gt = (ae) => {
611
608
  className: "text-sm font-medium text-gray-700",
612
609
  "data-testid": `select-select-all-label-${V || "default"}`,
613
610
  children: (() => {
614
- const { totalVisible: e, selectedVisible: t } = M, n = h ? Math.min(e, h) : e;
615
- return e > 0 && t >= n ? "Unselect All" : "Select All";
611
+ const { totalVisible: e, selectedVisible: t } = G, n = p ? Math.min(e, p) : e, r = e > 0 && t >= n;
612
+ return H(r ? "select.unselectAll" : "select.selectAll");
616
613
  })()
617
614
  }
618
615
  )
@@ -635,18 +632,18 @@ const gt = (ae) => {
635
632
  },
636
633
  onWheel: (e) => e.stopPropagation(),
637
634
  onPointerDown: (e) => e.stopPropagation(),
638
- children: q ? /* @__PURE__ */ p("div", { className: "flex flex-col items-center justify-center py-8 px-4 text-center", children: [
635
+ children: _ ? /* @__PURE__ */ h("div", { className: "flex flex-col items-center justify-center py-8 px-4 text-center", children: [
639
636
  /* @__PURE__ */ a("p", { className: "text-sm text-gray-500 font-medium mb-3", children: "Something went wrong" }),
640
- ge && /* @__PURE__ */ a(
641
- dt,
637
+ ve && /* @__PURE__ */ a(
638
+ mt,
642
639
  {
643
640
  size: "sm",
644
641
  variant: "outline",
645
- onClick: () => ge(),
642
+ onClick: () => ve(),
646
643
  children: "Refetch"
647
644
  }
648
645
  )
649
- ] }) : x.length === 0 && !A && !P ? /* @__PURE__ */ a("div", { className: "flex items-center justify-center py-8 text-sm text-gray-500", children: "No options found" }) : A || P ? /* @__PURE__ */ a("div", { className: "px-1 py-1 space-y-1", children: Array.from({ length: 6 }).map((e, t) => /* @__PURE__ */ p(
646
+ ] }) : x.length === 0 && !A && !P ? /* @__PURE__ */ a("div", { className: "flex items-center justify-center py-8 text-sm text-gray-500", children: "No options found" }) : A || P ? /* @__PURE__ */ a("div", { className: "px-1 py-1 space-y-1", children: Array.from({ length: 6 }).map((e, t) => /* @__PURE__ */ h(
650
647
  "div",
651
648
  {
652
649
  className: "flex items-center gap-2 px-3 py-2 animate-pulse",
@@ -665,10 +662,10 @@ const gt = (ae) => {
665
662
  position: "relative"
666
663
  },
667
664
  children: D.getVirtualItems().map((e) => {
668
- const t = x[e.index], n = f ? w.mode === "exclude" ? !w.set.has(t.value) : w.set.has(t.value) : d?.value === t.value, r = d || [], s = f && h ? k(r) ? !1 : y(r) && r.length >= h : !1, l = t.isDisabled || s && !n && !(N && t.isGroup) && !(v && t.isSubmenuParent), i = N && t.isGroup || v && t.isSubmenuParent ? le(t.original) : void 0, c = i?.selected || 0, o = i?.total || 0, m = c > 0 && c < o, W = t.isParentSelectable !== !1, ne = V || "default", U = String(t.value || ""), se = B(
665
+ const t = x[e.index], n = f ? w.mode === "exclude" ? !w.set.has(t.value) : w.set.has(t.value) : d?.value === t.value, r = d || [], s = f && p ? k(r) ? !1 : y(r) && r.length >= p : !1, l = t.isDisabled || s && !n && !(N && t.isGroup) && !(v && t.isSubmenuParent), i = N && t.isGroup || v && t.isSubmenuParent ? ne(t.original) : void 0, c = i?.selected || 0, o = i?.total || 0, m = c > 0 && c < o, U = t.isParentSelectable !== !1, se = V || "default", Y = String(t.value || ""), ie = W(
669
666
  t
670
- ), nt = typeof se == "string" ? se : U;
671
- return /* @__PURE__ */ p(
667
+ ), it = typeof ie == "string" ? ie : Y;
668
+ return /* @__PURE__ */ h(
672
669
  "div",
673
670
  {
674
671
  "data-index": e.index,
@@ -678,7 +675,7 @@ const gt = (ae) => {
678
675
  transform: `translateY(${e.start}px)`,
679
676
  width: "100%"
680
677
  },
681
- "data-testid": `select-option-wrapper-${ne}-${U}`,
678
+ "data-testid": `select-option-wrapper-${se}-${Y}`,
682
679
  children: [
683
680
  /* @__PURE__ */ a(
684
681
  "div",
@@ -692,21 +689,21 @@ const gt = (ae) => {
692
689
  paddingLeft: `${t.depth * 16 + 12}px`
693
690
  },
694
691
  onClick: () => {
695
- l || (N && t.isGroup || v && t.isSubmenuParent) && !W || Ve(t);
692
+ l || (N && t.isGroup || v && t.isSubmenuParent) && !U || Ne(t);
696
693
  },
697
694
  onMouseEnter: ($) => {
698
695
  if (v && t.isSubmenuParent) {
699
- Z(t.value);
700
- const I = $.currentTarget.getBoundingClientRect();
701
- t.rect = I;
696
+ ee(t.value);
697
+ const z = $.currentTarget.getBoundingClientRect();
698
+ t.rect = z;
702
699
  } else
703
- Z(null);
700
+ ee(null);
704
701
  },
705
- "data-testid": `select-option-${ne}-${U}`,
702
+ "data-testid": `select-option-${se}-${Y}`,
706
703
  "data-state": n ? "checked" : "unchecked",
707
704
  "data-disabled": l || void 0,
708
705
  "data-component": "select-option",
709
- children: pe ? pe(
706
+ children: he ? he(
710
707
  {
711
708
  onClick: () => {
712
709
  },
@@ -715,9 +712,9 @@ const gt = (ae) => {
715
712
  disabled: l
716
713
  },
717
714
  t
718
- ) : /* @__PURE__ */ p("div", { className: "flex items-center flex-1 overflow-hidden", children: [
719
- f && (N && t.isGroup || v && t.isSubmenuParent ? W : !0) && /* @__PURE__ */ a(
720
- Pe,
715
+ ) : /* @__PURE__ */ h("div", { className: "flex items-center flex-1 overflow-hidden", children: [
716
+ f && (N && t.isGroup || v && t.isSubmenuParent ? U : !0) && /* @__PURE__ */ a(
717
+ Oe,
721
718
  {
722
719
  checked: m ? "indeterminate" : n,
723
720
  disabled: l || b,
@@ -725,15 +722,15 @@ const gt = (ae) => {
725
722
  }
726
723
  }
727
724
  ),
728
- oe && !(N && t.isGroup) && !(v && t.isSubmenuParent) ? /* @__PURE__ */ a(
729
- at,
725
+ ce && !(N && t.isGroup) && !(v && t.isSubmenuParent) ? /* @__PURE__ */ a(
726
+ ot,
730
727
  {
731
- label: B(
728
+ label: W(
732
729
  t
733
730
  ),
734
- sequence: tt(t)
731
+ sequence: nt(t)
735
732
  }
736
- ) : /* @__PURE__ */ p("div", { className: "flex items-center gap-2 overflow-hidden w-full", children: [
733
+ ) : /* @__PURE__ */ h("div", { className: "flex items-center gap-2 overflow-hidden w-full", children: [
737
734
  /* @__PURE__ */ a(
738
735
  "span",
739
736
  {
@@ -742,16 +739,16 @@ const gt = (ae) => {
742
739
  N && t.isGroup ? "text-xs font-semibold text-gray-400 uppercase tracking-wider" : n && !(v && t.isSubmenuParent) ? "font-medium" : "font-normal",
743
740
  !(N && t.isGroup) && "text-[14px]"
744
741
  ),
745
- "data-testid": `select-option-label-${ne}-${U}`,
742
+ "data-testid": `select-option-label-${se}-${Y}`,
746
743
  "data-state": n ? "checked" : "unchecked",
747
- title: nt,
748
- children: se
744
+ title: it,
745
+ children: ie
749
746
  }
750
747
  ),
751
748
  (N && t.isGroup || v && t.isSubmenuParent) && c > 0 && /* @__PURE__ */ a("span", { className: "inline-flex items-center justify-center px-1.5 py-0.5 rounded-full text-xs font-medium bg-indigo-100 text-indigo-800", children: c })
752
749
  ] }),
753
750
  v && t.isSubmenuParent && /* @__PURE__ */ a(
754
- Ne,
751
+ Pe,
755
752
  {
756
753
  size: "12px",
757
754
  className: "text-gray-400"
@@ -760,19 +757,19 @@ const gt = (ae) => {
760
757
  ] })
761
758
  }
762
759
  ),
763
- v && Ye === t.value && t.isSubmenuParent && t.rect && /* @__PURE__ */ a(
764
- rt,
760
+ v && Ke === t.value && t.isSubmenuParent && t.rect && /* @__PURE__ */ a(
761
+ ct,
765
762
  {
766
763
  parentOption: t,
767
764
  isMulti: !!f,
768
765
  isReadOnly: !!b,
769
- isSelected: ($) => ft($, d, !!f),
766
+ isSelected: ($) => pt($, d, !!f),
770
767
  getIndeterminateState: ($) => {
771
- const I = le($);
772
- return I ? I.selected > 0 && I.selected < I.total : !1;
768
+ const z = ne($);
769
+ return z ? z.selected > 0 && z.selected < z.total : !1;
773
770
  },
774
- getSelectedCount: ($) => le($)?.selected || 0,
775
- handleSelect: Ve,
771
+ getSelectedCount: ($) => ne($)?.selected || 0,
772
+ handleSelect: Ne,
776
773
  id: V
777
774
  }
778
775
  )
@@ -785,31 +782,31 @@ const gt = (ae) => {
785
782
  )
786
783
  }
787
784
  ),
788
- (fe || h || T.length > 5e3) && /* @__PURE__ */ a("div", { className: "px-3 py-[10px] border-t border-solid border-gray-100 z-10 sticky bottom-0 bg-white", children: h ? /* @__PURE__ */ p("div", { className: "flex items-center gap-2 text-gray-500 px-2", children: [
789
- /* @__PURE__ */ a(ie, { size: "12px", className: "text-gray-400" }),
790
- /* @__PURE__ */ p("span", { className: "text-xs font-medium leading-4 text-[#60697d]", children: [
785
+ (me || p || I.length > 5e3) && /* @__PURE__ */ a("div", { className: "px-3 py-[10px] border-t border-solid border-gray-100 z-10 sticky bottom-0 bg-white", children: p ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2 text-gray-500 px-2", children: [
786
+ /* @__PURE__ */ a(ae, { size: "12px", className: "text-gray-400" }),
787
+ /* @__PURE__ */ h("span", { className: "text-xs font-medium leading-4 text-[#60697d]", children: [
791
788
  "Maximum ",
792
- h,
789
+ p,
793
790
  " selections"
794
791
  ] })
795
- ] }) : T.length > 5e3 ? /* @__PURE__ */ p("div", { className: "flex items-center gap-2 text-gray-500 px-2", children: [
796
- /* @__PURE__ */ a(ie, { size: "12px", className: "text-gray-400" }),
792
+ ] }) : I.length > 5e3 ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2 text-gray-500 px-2", children: [
793
+ /* @__PURE__ */ a(ae, { size: "12px", className: "text-gray-400" }),
797
794
  /* @__PURE__ */ a("span", { className: "text-xs font-medium leading-4 text-[#60697d]", children: "Large dataset detected. Operations might be slower." })
798
- ] }) : fe })
795
+ ] }) : me })
799
796
  ]
800
797
  }
801
798
  ) })
802
799
  ] }),
803
- ue && /* @__PURE__ */ p(
800
+ de && /* @__PURE__ */ h(
804
801
  "p",
805
802
  {
806
803
  className: O(
807
804
  "text-[12px] mt-1 flex items-center gap-1",
808
- K ? "text-[#e15554]" : "text-gray-500"
805
+ Q ? "text-[#e15554]" : "text-gray-500"
809
806
  ),
810
807
  children: [
811
- K && /* @__PURE__ */ a(ie, { size: "12px" }),
812
- ue
808
+ Q && /* @__PURE__ */ a(ae, { size: "12px" }),
809
+ de
813
810
  ]
814
811
  }
815
812
  )
@@ -817,7 +814,7 @@ const gt = (ae) => {
817
814
  }
818
815
  );
819
816
  };
820
- gt.displayName = "Select";
817
+ wt.displayName = "Select";
821
818
  export {
822
- gt as default
819
+ wt as default
823
820
  };