impact-nova 2.1.0-alpha.4 → 2.1.0-alpha.6

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 (153) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.d.ts +3 -0
  2. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.js +6 -0
  3. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +15 -21
  4. package/dist/components/data/ag-grid-react/cell-renderers/date-display-renderer.js +1 -1
  5. package/dist/components/data/ag-grid-react/cell-renderers/default-text-cell-renderer.d.ts +1 -2
  6. package/dist/components/data/ag-grid-react/cell-renderers/default-text-cell-renderer.js +12 -6
  7. package/dist/components/data/ag-grid-react/cell-renderers/editors/textarea-cell-editor.js +19 -19
  8. package/dist/components/data/ag-grid-react/cell-renderers/select-display-renderer.js +1 -1
  9. package/dist/components/data/ag-grid-react/cell-renderers/switch-display-renderer.js +15 -15
  10. package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +1 -1
  11. package/dist/components/data/ag-grid-react/headers/advanced-filter/column-filter-section.js +33 -33
  12. package/dist/components/data/ag-grid-react/headers/components/header-info.js +66 -62
  13. package/dist/components/data/ag-grid-react/headers/components/info-modal.js +6 -6
  14. package/dist/components/data/ag-grid-react/headers/components/section-renderers.js +18 -18
  15. package/dist/components/data/ag-grid-react/headers/custom-header-group.js +40 -29
  16. package/dist/components/data/ag-grid-react/headers/custom-header.js +102 -98
  17. package/dist/components/data/ag-grid-react/index.d.ts +1 -1
  18. package/dist/components/data/ag-grid-react/index.js +136 -127
  19. package/dist/components/data/ag-grid-react/notify-column-indicator-sync.d.ts +7 -0
  20. package/dist/components/data/ag-grid-react/notify-column-indicator-sync.js +6 -0
  21. package/dist/components/data/ag-grid-react/theme.js +8 -4
  22. package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.d.ts +5 -0
  23. package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.js +13 -0
  24. package/dist/components/data/ag-grid-react/useGridAutoSizeStrategyOnResize.js +8 -5
  25. package/dist/components/data/data-table/build-column-tree-from-grid.d.ts +14 -0
  26. package/dist/components/data/data-table/build-column-tree-from-grid.js +95 -0
  27. package/dist/components/data/data-table/data-table-column-apply.d.ts +29 -0
  28. package/dist/components/data/data-table/data-table-column-apply.js +102 -0
  29. package/dist/components/data/data-table/data-table-column-def-pin.d.ts +25 -0
  30. package/dist/components/data/data-table/data-table-column-def-pin.js +66 -0
  31. package/dist/components/data/data-table/data-table-column-list-sync.d.ts +8 -0
  32. package/dist/components/data/data-table/data-table-column-list-sync.js +15 -0
  33. package/dist/components/data/data-table/data-table-column-list.d.ts +14 -4
  34. package/dist/components/data/data-table/data-table-column-list.js +74 -277
  35. package/dist/components/data/data-table/data-table-constants.d.ts +3 -4
  36. package/dist/components/data/data-table/data-table-context.d.ts +3 -6
  37. package/dist/components/data/data-table/data-table-context.js +21 -10
  38. package/dist/components/data/data-table/data-table-saved-views.js +26 -26
  39. package/dist/components/data/data-table/data-table-sheet-portal-store.d.ts +13 -0
  40. package/dist/components/data/data-table/data-table-sheet-portal-store.js +36 -0
  41. package/dist/components/data/data-table/data-table-sheet.d.ts +3 -6
  42. package/dist/components/data/data-table/data-table-sheet.js +4 -2
  43. package/dist/components/data/data-table/data-table-view-menu.js +40 -40
  44. package/dist/components/data/data-table/data-table.d.ts +8 -10
  45. package/dist/components/data/data-table/data-table.js +138 -111
  46. package/dist/components/data/data-table/data-table.types.d.ts +35 -0
  47. package/dist/components/data/data-table/index.js +28 -27
  48. package/dist/components/data/data-table/indicator-legend.js +6 -6
  49. package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +16 -0
  50. package/dist/components/data/data-table/use-data-table-column-list-sync.js +222 -0
  51. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.d.ts +8 -0
  52. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +72 -0
  53. package/dist/components/data/expandable-list-item/expandable-list-item-context.d.ts +13 -0
  54. package/dist/components/data/expandable-list-item/expandable-list-item-context.js +25 -0
  55. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.d.ts +6 -0
  56. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +41 -0
  57. package/dist/components/data/expandable-list-item/expandable-list-item-parts.d.ts +31 -0
  58. package/dist/components/data/expandable-list-item/expandable-list-item-parts.js +233 -0
  59. package/dist/components/data/expandable-list-item/expandable-list-item-preset.d.ts +18 -0
  60. package/dist/components/data/expandable-list-item/expandable-list-item-preset.js +133 -0
  61. package/dist/components/data/expandable-list-item/expandable-list-item.d.ts +5 -0
  62. package/dist/components/data/{expandable-sku/expandable-sku.types.d.ts → expandable-list-item/expandable-list-item.types.d.ts} +7 -7
  63. package/dist/components/data/expandable-list-item/index.d.ts +5 -0
  64. package/dist/components/data/expandable-list-item/index.js +19 -0
  65. package/dist/components/data/nested-list/components/NestedListHeader.js +11 -11
  66. package/dist/components/data/nested-list/components/SortableItem.js +2 -2
  67. package/dist/components/data-display/avatar/avatar.types.d.ts +2 -0
  68. package/dist/components/data-display/badge/badge.types.d.ts +2 -0
  69. package/dist/components/data-display/calendar/calendar-day-picker-classnames.js +11 -11
  70. package/dist/components/data-display/calendar/calendar-month-picker-panel.js +7 -7
  71. package/dist/components/data-display/calendar/calendar-week-number-cell.js +31 -31
  72. package/dist/components/data-display/card/card.js +8 -8
  73. package/dist/components/data-display/chart/chart.types.d.ts +9 -0
  74. package/dist/components/data-display/skeleton/skeleton.js +6 -6
  75. package/dist/components/data-display/statistics-card/statistics-card.js +14 -14
  76. package/dist/components/feedback/alert-dialog/alert-dialog.js +19 -19
  77. package/dist/components/feedback/dialog/dialog.js +1 -1
  78. package/dist/components/feedback/drawer/drawer.js +18 -18
  79. package/dist/components/feedback/dropdown-menu/dropdown-menu.js +70 -57
  80. package/dist/components/feedback/popover/popover.js +1 -1
  81. package/dist/components/feedback/sheet/sheet.js +1 -1
  82. package/dist/components/feedback/tooltip/tooltip.js +22 -22
  83. package/dist/components/feedback/tooltip/tooltip.variants.js +1 -1
  84. package/dist/components/flows/command-palette/command-palette.js +104 -104
  85. package/dist/components/flows/command-palette/shortcut-settings.js +34 -34
  86. package/dist/components/flows/filter-strip/filter-tag-list.js +4 -4
  87. package/dist/components/flows/notification-panel/notification-list.js +17 -17
  88. package/dist/components/flows/notification-panel/notification-panel.js +4 -4
  89. package/dist/components/flows/notification-panel/notification-panel.types.d.ts +3 -0
  90. package/dist/components/flows/wizard/wizard.js +8 -8
  91. package/dist/components/forms/combobox/combobox.js +20 -20
  92. package/dist/components/forms/date-picker/date-picker.js +17 -17
  93. package/dist/components/forms/date-picker/date-range-picker.js +3 -3
  94. package/dist/components/forms/date-picker/month-picker.js +1 -1
  95. package/dist/components/forms/date-picker/month-range-picker.js +42 -42
  96. package/dist/components/forms/date-picker/week-picker.js +15 -15
  97. package/dist/components/forms/date-picker/week-range-picker.js +3 -3
  98. package/dist/components/forms/file-upload/file-upload.js +33 -33
  99. package/dist/components/forms/input/input.js +8 -8
  100. package/dist/components/forms/input/input.variants.js +3 -3
  101. package/dist/components/forms/select/components/SelectMenuPanel.d.ts +1 -2
  102. package/dist/components/forms/select/components/SelectMenuPanel.js +18 -20
  103. package/dist/components/forms/select/components/SelectTrigger.d.ts +9 -6
  104. package/dist/components/forms/select/components/SelectTrigger.js +120 -122
  105. package/dist/components/forms/select/components/Submenu.js +8 -8
  106. package/dist/components/forms/select/hooks/useSelectKeyboardHandlers.d.ts +1 -1
  107. package/dist/components/forms/select/hooks/useSelectValueState.d.ts +19 -0
  108. package/dist/components/forms/select/hooks/useSelectValueState.js +41 -0
  109. package/dist/components/forms/select/index.js +4 -3
  110. package/dist/components/forms/select/select.js +180 -175
  111. package/dist/components/forms/select/select.types.d.ts +3 -2
  112. package/dist/components/forms/select/select.variants.js +4 -4
  113. package/dist/components/forms/select/utils/select.d.ts +2 -1
  114. package/dist/components/forms/select/utils/select.js +47 -37
  115. package/dist/components/layout/sidebar/sidebar.d.ts +7 -50
  116. package/dist/components/layout/sidebar/sidebar.js +12 -11
  117. package/dist/components/layout/sidebar/sidebar.types.d.ts +35 -1
  118. package/dist/components/primitives/button-group/button-group.js +32 -32
  119. package/dist/components/primitives/chips/chips.variants.js +5 -5
  120. package/dist/components/primitives/empty-container/empty-container.types.d.ts +3 -0
  121. package/dist/components/primitives/kbd/kbd.variants.js +3 -3
  122. package/dist/components/primitives/stepper/stepper.js +6 -6
  123. package/dist/impact-nova-components.css +113 -7
  124. package/dist/impact-nova-tokens.scss +2 -4
  125. package/dist/impact-nova.css +1 -1
  126. package/dist/index.d.ts +1 -1
  127. package/dist/index.js +467 -433
  128. package/dist/lib/compose-refs.d.ts +8 -0
  129. package/dist/lib/compose-refs.js +14 -0
  130. package/dist/lib/primitives/field.types.d.ts +8 -2
  131. package/dist/lib/virtualized/index.d.ts +3 -0
  132. package/dist/lib/virtualized/index.js +33 -16
  133. package/dist/lib/virtualized/useVirtualizedList.d.ts +2 -0
  134. package/dist/lib/virtualized/useVirtualizedList.js +115 -109
  135. package/dist/lib/virtualized/virtualized-list-context.d.ts +12 -0
  136. package/dist/lib/virtualized/virtualized-list-context.js +21 -0
  137. package/dist/lib/virtualized/virtualized-list-parts.d.ts +51 -0
  138. package/dist/lib/virtualized/virtualized-list-parts.js +175 -0
  139. package/dist/lib/virtualized/virtualized-list-utils.d.ts +5 -0
  140. package/dist/lib/virtualized/virtualized-list-utils.js +6 -0
  141. package/dist/llms/rules/ag-grid.js +1 -1
  142. package/dist/llms/rules/installation.js +1 -1
  143. package/dist/llms/rules/migration.js +1 -1
  144. package/dist/llms/rules/real-world-patterns.js +1 -1
  145. package/dist/llms/rules/requirements.js +1 -1
  146. package/package.json +24 -15
  147. package/tailwind.config.js +1 -0
  148. package/dist/components/data/ag-grid-react/headers/components/truncated-text.d.ts +0 -15
  149. package/dist/components/data/ag-grid-react/headers/components/truncated-text.js +0 -27
  150. package/dist/components/data/expandable-sku/expandable-sku.d.ts +0 -38
  151. package/dist/components/data/expandable-sku/expandable-sku.js +0 -245
  152. package/dist/components/data/expandable-sku/index.d.ts +0 -2
  153. package/dist/components/data/expandable-sku/index.js +0 -4
@@ -133,7 +133,7 @@ const ve = m.forwardRef(
133
133
  "data-field": "start",
134
134
  className: A(
135
135
  "flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
136
- De ? "text-destructive" : ge ? "text-content-muted" : ""
136
+ De ? "text-destructive" : ge ? "text-content-placeholder" : ""
137
137
  ),
138
138
  ...le
139
139
  }
@@ -161,7 +161,7 @@ const ve = m.forwardRef(
161
161
  "data-field": "end",
162
162
  className: A(
163
163
  "flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
164
- be ? "text-destructive" : ye ? "text-content-muted" : ""
164
+ be ? "text-destructive" : ye ? "text-content-placeholder" : ""
165
165
  )
166
166
  }
167
167
  )
@@ -181,7 +181,7 @@ const ve = m.forwardRef(
181
181
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), v());
182
182
  },
183
183
  className: "inline-flex size-4 items-center justify-center bg-transparent border-none p-0 cursor-pointer",
184
- children: /* @__PURE__ */ d(we, { className: "size-3 hover:text-content text-content-muted" })
184
+ children: /* @__PURE__ */ d(we, { className: "size-3 hover:text-content text-content-icon" })
185
185
  }
186
186
  ) }),
187
187
  /* @__PURE__ */ d(Q, { variant: "tertiary", side: "top", children: P("calendar.clear") })
@@ -79,7 +79,7 @@ const l = (t) => `${(t.month + 1).toString().padStart(2, "0")}/${t.year}`, at =
79
79
  "data-form-control": "input",
80
80
  className: U(
81
81
  "cursor-pointer",
82
- K ? "text-destructive" : D ? "text-content-muted" : "",
82
+ K ? "text-destructive" : D ? "text-content-placeholder" : "",
83
83
  B
84
84
  ),
85
85
  suffix: /* @__PURE__ */ u("div", { className: "flex items-center gap-1", children: [
@@ -1,5 +1,5 @@
1
- import { jsx as m, jsxs as P } from "react/jsx-runtime";
2
- import * as u from "react";
1
+ import { jsx as p, jsxs as P } from "react/jsx-runtime";
2
+ import * as h from "react";
3
3
  import { Cross as we, CalendarMonth as Ye } from "impact-nova-icons";
4
4
  import { isValid as w, parse as Y } from "date-fns";
5
5
  import { cn as v, padValidDateString as R, maskDate as q } from "../../../lib/utils.js";
@@ -10,14 +10,14 @@ import { Tooltip as G, TooltipTrigger as J, TooltipContent as L } from "../../fe
10
10
  import { useImpactNovaI18n as Se } from "../../../i18n/use-impact-nova-i18n.js";
11
11
  import { coerceMonthRangeApply as Ee, isMonthRangeSelection as Pe } from "./calendar-selection-adapters.js";
12
12
  import { buildDateBoundsMatcher as Re } from "../../../lib/date-bounds-matcher.js";
13
- const p = (e, i = "MM/YYYY") => {
13
+ const m = (e, i = "MM/YYYY") => {
14
14
  const A = (e.month + 1).toString().padStart(2, "0");
15
15
  return i === "YYYY/MM" ? `${e.year}/${A}` : `${A}/${e.year}`;
16
16
  };
17
- function h(e) {
17
+ function u(e) {
18
18
  return { month: e.getMonth(), year: e.getFullYear() };
19
19
  }
20
- const Ie = u.forwardRef(
20
+ const Ie = h.forwardRef(
21
21
  ({
22
22
  value: e,
23
23
  onChange: i,
@@ -49,25 +49,25 @@ const Ie = u.forwardRef(
49
49
  required: ne,
50
50
  disabled: l ?? void 0,
51
51
  rootClassName: "w-full min-w-[240px]"
52
- }), { t: b } = Se(), $ = u.useRef(null), se = u.useRef(null), c = u.useMemo(
52
+ }), { t: b } = Se(), $ = h.useRef(null), se = h.useRef(null), c = h.useMemo(
53
53
  () => a === "YYYY/MM" ? "yyyy/MM" : "MM/yyyy",
54
54
  [a]
55
55
  );
56
- u.useImperativeHandle(oe, () => $.current);
57
- const [d, g] = u.useState(!1), V = u.useRef(!1), [E, x] = u.useState(e), [y, D] = u.useState(e?.from ? p(e.from, a) : ""), [k, S] = u.useState(e?.to ? p(e.to, a) : ""), [ie, N] = u.useState(() => e?.from ? new Date(e.from.year, e.from.month, 1) : I || /* @__PURE__ */ new Date());
58
- u.useEffect(() => {
59
- d || (D(e?.from ? p(e.from, a) : ""), S(e?.to ? p(e.to, a) : ""), x(e));
60
- }, [d, e, a]), u.useEffect(() => {
61
- d && (x(e), D(e?.from ? p(e.from, a) : ""), S(e?.to ? p(e.to, a) : ""), N(e?.from ? new Date(e.from.year, e.from.month, 1) : I || /* @__PURE__ */ new Date()));
56
+ h.useImperativeHandle(oe, () => $.current);
57
+ const [d, g] = h.useState(!1), V = h.useRef(!1), [E, x] = h.useState(e), [y, D] = h.useState(e?.from ? m(e.from, a) : ""), [k, S] = h.useState(e?.to ? m(e.to, a) : ""), [ie, N] = h.useState(() => e?.from ? new Date(e.from.year, e.from.month, 1) : I || /* @__PURE__ */ new Date());
58
+ h.useEffect(() => {
59
+ d || (D(e?.from ? m(e.from, a) : ""), S(e?.to ? m(e.to, a) : ""), x(e));
60
+ }, [d, e, a]), h.useEffect(() => {
61
+ d && (x(e), D(e?.from ? m(e.from, a) : ""), S(e?.to ? m(e.to, a) : ""), N(e?.from ? new Date(e.from.year, e.from.month, 1) : I || /* @__PURE__ */ new Date()));
62
62
  }, [d, e, a, I]);
63
63
  const ce = (t) => {
64
64
  const n = Pe(t) ? t : void 0;
65
- x(n), n?.from && D(p(n.from, a)), n?.to && S(p(n.to, a)), !M && n?.from && n?.to && (n.from.month !== n.to.month || n.from.year !== n.to.year) && (i?.(n), g(!1));
65
+ x(n), n?.from && D(m(n.from, a)), n?.to && S(m(n.to, a)), !M && n?.from && n?.to && (n.from.month !== n.to.month || n.from.year !== n.to.year) && (i?.(n), g(!1));
66
66
  }, de = (t) => {
67
67
  const n = Ee(t, E);
68
68
  i?.(n), g(!1);
69
69
  }, T = () => {
70
- x(e), D(e?.from ? p(e.from, a) : ""), S(e?.to ? p(e.to, a) : ""), g(!1);
70
+ x(e), D(e?.from ? m(e.from, a) : ""), S(e?.to ? m(e.to, a) : ""), g(!1);
71
71
  }, j = () => {
72
72
  x(void 0), D(""), S(""), i?.(void 0), M || g(!1);
73
73
  }, fe = (t) => {
@@ -97,22 +97,22 @@ const Ie = u.forwardRef(
97
97
  }, O = () => {
98
98
  if (d) return;
99
99
  const t = R(y, c), n = R(k, c), s = Y(t, c, /* @__PURE__ */ new Date()), r = Y(n, c, /* @__PURE__ */ new Date()), o = w(s) && t.length === 7, f = w(r) && n.length === 7;
100
- y && !o ? D(e?.from ? p(e.from, a) : "") : o && D(t), k && !f ? S(e?.to ? p(e.to, a) : "") : f && S(n), o && f && !M ? i?.({
101
- from: h(s),
102
- to: h(r)
100
+ y && !o ? D(e?.from ? m(e.from, a) : "") : o && D(t), k && !f ? S(e?.to ? m(e.to, a) : "") : f && S(n), o && f && !M ? i?.({
101
+ from: u(s),
102
+ to: u(r)
103
103
  }) : o && !M ? i?.({
104
- from: h(s),
104
+ from: u(s),
105
105
  to: e?.to
106
106
  }) : f && !M && i?.({
107
107
  from: e?.from,
108
- to: h(r)
108
+ to: u(r)
109
109
  });
110
- }, me = e?.from ? p(e.from, a) : "", pe = e?.to ? p(e.to, a) : "", ue = y !== me, he = k !== pe, ge = y.length === 7 && !w(Y(y, c, /* @__PURE__ */ new Date())), Me = k.length === 7 && !w(Y(k, c, /* @__PURE__ */ new Date())), z = b("datePicker.startMonth"), H = b("datePicker.endMonth");
111
- return /* @__PURE__ */ m("div", { "data-component": "month-range-picker", "data-disabled": l || void 0, children: ae.wrapControl(
110
+ }, pe = e?.from ? m(e.from, a) : "", me = e?.to ? m(e.to, a) : "", he = y !== pe, ue = k !== me, ge = y.length === 7 && !w(Y(y, c, /* @__PURE__ */ new Date())), Me = k.length === 7 && !w(Y(k, c, /* @__PURE__ */ new Date())), z = b("datePicker.startMonth"), H = b("datePicker.endMonth");
111
+ return /* @__PURE__ */ p("div", { "data-component": "month-range-picker", "data-disabled": l || void 0, children: ae.wrapControl(
112
112
  /* @__PURE__ */ P(xe, { open: l ? !1 : d, onOpenChange: (t) => {
113
113
  l || g(t);
114
114
  }, children: [
115
- /* @__PURE__ */ m(ye, { asChild: !0, children: /* @__PURE__ */ P(
115
+ /* @__PURE__ */ p(ye, { asChild: !0, children: /* @__PURE__ */ P(
116
116
  "div",
117
117
  {
118
118
  "data-state": d ? "open" : "closed",
@@ -126,7 +126,7 @@ const Ie = u.forwardRef(
126
126
  ),
127
127
  children: [
128
128
  /* @__PURE__ */ P("div", { className: "flex items-center gap-4 flex-1 min-w-0", children: [
129
- /* @__PURE__ */ m(
129
+ /* @__PURE__ */ p(
130
130
  "input",
131
131
  {
132
132
  ref: $,
@@ -140,14 +140,14 @@ const Ie = u.forwardRef(
140
140
  t.preventDefault();
141
141
  const n = R(y, c), s = R(k, c), r = Y(n, c, /* @__PURE__ */ new Date()), o = Y(s, c, /* @__PURE__ */ new Date()), f = w(r) && n.length === 7, C = w(o) && s.length === 7;
142
142
  f && C ? i?.({
143
- from: h(r),
144
- to: h(o)
143
+ from: u(r),
144
+ to: u(o)
145
145
  }) : f ? i?.({
146
- from: h(r),
146
+ from: u(r),
147
147
  to: e?.to
148
148
  }) : C && i?.({
149
149
  from: e?.from,
150
- to: h(o)
150
+ to: u(o)
151
151
  });
152
152
  }
153
153
  t.key === "ArrowDown" && !d && !l && (t.preventDefault(), V.current = !0, g(!0)), t.key === "Escape" && d && (t.preventDefault(), T());
@@ -158,12 +158,12 @@ const Ie = u.forwardRef(
158
158
  "data-field": "start",
159
159
  className: v(
160
160
  "flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
161
- ge ? "text-destructive" : ue ? "text-content-muted" : ""
161
+ ge ? "text-destructive" : he ? "text-content-placeholder" : ""
162
162
  ),
163
163
  ...re
164
164
  }
165
165
  ),
166
- /* @__PURE__ */ m(
166
+ /* @__PURE__ */ p(
167
167
  "input",
168
168
  {
169
169
  ref: se,
@@ -177,14 +177,14 @@ const Ie = u.forwardRef(
177
177
  t.preventDefault();
178
178
  const n = R(y, c), s = R(k, c), r = Y(n, c, /* @__PURE__ */ new Date()), o = Y(s, c, /* @__PURE__ */ new Date()), f = w(r) && n.length === 7, C = w(o) && s.length === 7;
179
179
  f && C ? i?.({
180
- from: h(r),
181
- to: h(o)
180
+ from: u(r),
181
+ to: u(o)
182
182
  }) : f ? i?.({
183
- from: h(r),
183
+ from: u(r),
184
184
  to: e?.to
185
185
  }) : C && i?.({
186
186
  from: e?.from,
187
- to: h(o)
187
+ to: u(o)
188
188
  });
189
189
  }
190
190
  t.key === "ArrowDown" && !d && !l && (t.preventDefault(), V.current = !0, g(!0)), t.key === "Escape" && d && (t.preventDefault(), T());
@@ -195,14 +195,14 @@ const Ie = u.forwardRef(
195
195
  "data-field": "end",
196
196
  className: v(
197
197
  "flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
198
- Me ? "text-destructive" : he ? "text-content-muted" : ""
198
+ Me ? "text-destructive" : ue ? "text-content-placeholder" : ""
199
199
  )
200
200
  }
201
201
  )
202
202
  ] }),
203
203
  /* @__PURE__ */ P("div", { className: "flex items-center gap-1 shrink-0", children: [
204
204
  e?.from && !l && /* @__PURE__ */ P(G, { children: [
205
- /* @__PURE__ */ m(J, { asChild: !0, children: /* @__PURE__ */ m(
205
+ /* @__PURE__ */ p(J, { asChild: !0, children: /* @__PURE__ */ p(
206
206
  "button",
207
207
  {
208
208
  type: "button",
@@ -215,24 +215,24 @@ const Ie = u.forwardRef(
215
215
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), j());
216
216
  },
217
217
  className: "inline-flex size-4 items-center justify-center bg-transparent border-none p-0 cursor-pointer",
218
- children: /* @__PURE__ */ m(we, { className: "size-3 hover:text-content text-content-muted" })
218
+ children: /* @__PURE__ */ p(we, { className: "size-3 hover:text-content text-content-icon" })
219
219
  }
220
220
  ) }),
221
- /* @__PURE__ */ m(L, { variant: "tertiary", side: "top", children: b("calendar.clear") })
221
+ /* @__PURE__ */ p(L, { variant: "tertiary", side: "top", children: b("calendar.clear") })
222
222
  ] }),
223
223
  /* @__PURE__ */ P(G, { children: [
224
- /* @__PURE__ */ m(J, { asChild: !0, children: /* @__PURE__ */ m("button", { type: "button", tabIndex: 0, "aria-label": b("datePicker.selectMonthRange"), onClick: (t) => {
224
+ /* @__PURE__ */ p(J, { asChild: !0, children: /* @__PURE__ */ p("button", { type: "button", tabIndex: 0, "aria-label": b("datePicker.selectMonthRange"), onClick: (t) => {
225
225
  t.stopPropagation(), l || g(!d);
226
226
  }, onKeyDown: (t) => {
227
227
  (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.stopPropagation(), l || (V.current = !0, g(!d)));
228
- }, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ m(Ye, { className: "h-4 w-4 text-secondary-foreground" }) }) }),
229
- /* @__PURE__ */ m(L, { variant: "tertiary", side: "top", children: b("datePicker.selectMonthRange") })
228
+ }, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ p(Ye, { className: "h-4 w-4 text-secondary-foreground" }) }) }),
229
+ /* @__PURE__ */ p(L, { variant: "tertiary", side: "top", children: b("datePicker.selectMonthRange") })
230
230
  ] })
231
231
  ] })
232
232
  ]
233
233
  }
234
234
  ) }),
235
- /* @__PURE__ */ m(
235
+ /* @__PURE__ */ p(
236
236
  ke,
237
237
  {
238
238
  className: "w-auto p-0",
@@ -241,7 +241,7 @@ const Ie = u.forwardRef(
241
241
  onOpenAutoFocus: (t) => {
242
242
  V.current || t.preventDefault(), V.current = !1;
243
243
  },
244
- children: /* @__PURE__ */ m(
244
+ children: /* @__PURE__ */ p(
245
245
  De,
246
246
  {
247
247
  pickerType: "month",
@@ -10,7 +10,7 @@ import { Tooltip as E, TooltipTrigger as O, TooltipContent as $ } from "../../fe
10
10
  import { resolveWeekSelection as fe } from "../../../lib/fiscal-calendar.js";
11
11
  import { useImpactNovaI18n as he } from "../../../i18n/use-impact-nova-i18n.js";
12
12
  import { getDateFnsLocale as ue } from "../../../i18n/getDateFnsLocale.js";
13
- import { coerceSingleWeekApply as me, coerceSingleWeek as ke } from "./calendar-selection-adapters.js";
13
+ import { coerceSingleWeekApply as ke, coerceSingleWeek as me } from "./calendar-selection-adapters.js";
14
14
  import { buildDateBoundsMatcher as ge } from "../../../lib/date-bounds-matcher.js";
15
15
  const d = (e, s = "MM/dd/yyyy", n) => {
16
16
  const W = z(e.startDate, s, n ? { locale: n } : {}), D = z(e.endDate, s, n ? { locale: n } : {});
@@ -36,7 +36,7 @@ const d = (e, s = "MM/dd/yyyy", n) => {
36
36
  className: J,
37
37
  ...K
38
38
  }, Q) => {
39
- const { locale: A, t: k } = he(), r = i.useMemo(() => ue(A), [A]), U = W ?? k("datePicker.selectWeek"), L = i.useRef(null);
39
+ const { locale: A, t: m } = he(), r = i.useMemo(() => ue(A), [A]), U = W ?? m("datePicker.selectWeek"), L = i.useRef(null);
40
40
  i.useImperativeHandle(Q, () => L.current);
41
41
  const [l, h] = i.useState(!1), [T, a] = i.useState(e), [u, p] = i.useState(e ? d(e, n, r) : ""), [X, C] = i.useState(e?.startDate || /* @__PURE__ */ new Date());
42
42
  i.useEffect(() => {
@@ -45,10 +45,10 @@ const d = (e, s = "MM/dd/yyyy", n) => {
45
45
  l && (a(e), C(e?.startDate || /* @__PURE__ */ new Date()), p(e ? d(e, n, r) : ""));
46
46
  }, [l, e, n, r]);
47
47
  const Z = (t) => {
48
- const c = ke(t);
48
+ const c = me(t);
49
49
  a(c), c && p(d(c, n, r)), f || (s?.(c), h(!1));
50
50
  }, _ = (t) => {
51
- const c = me(t, T);
51
+ const c = ke(t, T);
52
52
  s?.(c), h(!1);
53
53
  }, Y = () => {
54
54
  a(e), p(e ? d(e, n, r) : ""), h(!1);
@@ -62,13 +62,13 @@ const d = (e, s = "MM/dd/yyyy", n) => {
62
62
  fiscalYearStartMonth: M,
63
63
  weekStartsOn: V
64
64
  }), F = (t) => {
65
- const c = t.target.value, m = ie(c, n, u);
66
- if (p(m), m === "") {
65
+ const c = t.target.value, k = ie(c, n, u);
66
+ if (p(k), k === "") {
67
67
  a(void 0), f || s?.(void 0);
68
68
  return;
69
69
  }
70
- const w = S(m, n, /* @__PURE__ */ new Date(), { locale: r });
71
- if (x(w) && m.length === n.length) {
70
+ const w = S(k, n, /* @__PURE__ */ new Date(), { locale: r });
71
+ if (x(w) && k.length === n.length) {
72
72
  const v = j(w);
73
73
  a(v), C(w), f || s?.(v);
74
74
  }
@@ -78,8 +78,8 @@ const d = (e, s = "MM/dd/yyyy", n) => {
78
78
  if (!x(c) || t.length !== n.length)
79
79
  p(e ? d(e, n, r) : ""), a(e);
80
80
  else if (p(t), !f) {
81
- const m = j(c);
82
- s?.(m);
81
+ const k = j(c);
82
+ s?.(k);
83
83
  }
84
84
  }, B = (e ? d(e, n, r) : "") !== u, ne = u.length === n.length && !x(S(u, n, /* @__PURE__ */ new Date(), { locale: r }));
85
85
  return /* @__PURE__ */ y(le, { open: l, onOpenChange: (t) => !g && h(t), children: [
@@ -96,7 +96,7 @@ const d = (e, s = "MM/dd/yyyy", n) => {
96
96
  "data-form-control": "input",
97
97
  className: oe(
98
98
  "cursor-pointer",
99
- ne ? "text-destructive" : B ? "text-content-muted" : "",
99
+ ne ? "text-destructive" : B ? "text-content-placeholder" : "",
100
100
  J
101
101
  ),
102
102
  suffix: /* @__PURE__ */ y("div", { className: "flex items-center gap-1", children: [
@@ -106,7 +106,7 @@ const d = (e, s = "MM/dd/yyyy", n) => {
106
106
  {
107
107
  type: "button",
108
108
  tabIndex: 0,
109
- "aria-label": k("calendar.clear"),
109
+ "aria-label": m("calendar.clear"),
110
110
  onClick: (t) => {
111
111
  t.stopPropagation(), R();
112
112
  },
@@ -114,11 +114,11 @@ const d = (e, s = "MM/dd/yyyy", n) => {
114
114
  children: /* @__PURE__ */ o(te, { className: "size-3 hover:text-content" })
115
115
  }
116
116
  ) }),
117
- /* @__PURE__ */ o($, { variant: "tertiary", side: "top", children: k("calendar.clear") })
117
+ /* @__PURE__ */ o($, { variant: "tertiary", side: "top", children: m("calendar.clear") })
118
118
  ] }),
119
119
  /* @__PURE__ */ y(E, { children: [
120
120
  /* @__PURE__ */ o(O, { asChild: !0, children: /* @__PURE__ */ o(re, { className: "h-4 w-4 text-secondary-foreground" }) }),
121
- /* @__PURE__ */ o($, { variant: "tertiary", side: "top", children: k("datePicker.selectWeek") })
121
+ /* @__PURE__ */ o($, { variant: "tertiary", side: "top", children: m("datePicker.selectWeek") })
122
122
  ] })
123
123
  ] }),
124
124
  ...K
@@ -129,7 +129,7 @@ const d = (e, s = "MM/dd/yyyy", n) => {
129
129
  {
130
130
  className: "w-auto p-0",
131
131
  align: "start",
132
- "aria-label": k("datePicker.selectWeek"),
132
+ "aria-label": m("datePicker.selectWeek"),
133
133
  onOpenAutoFocus: (t) => t.preventDefault(),
134
134
  children: /* @__PURE__ */ o(
135
135
  de,
@@ -145,7 +145,7 @@ const i = (e) => e?.from ? e.to ? e.to.endDate : e.from.endDate : void 0, I = (e
145
145
  "data-field": "start",
146
146
  className: A(
147
147
  "flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
148
- Re ? "text-destructive" : ye ? "text-content-muted" : ""
148
+ Re ? "text-destructive" : ye ? "text-content-placeholder" : ""
149
149
  ),
150
150
  ...de
151
151
  }
@@ -168,7 +168,7 @@ const i = (e) => e?.from ? e.to ? e.to.endDate : e.from.endDate : void 0, I = (e
168
168
  "data-field": "end",
169
169
  className: A(
170
170
  "flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
171
- Ce ? "text-destructive" : xe ? "text-content-muted" : ""
171
+ Ce ? "text-destructive" : xe ? "text-content-placeholder" : ""
172
172
  )
173
173
  }
174
174
  )
@@ -185,7 +185,7 @@ const i = (e) => e?.from ? e.to ? e.to.endDate : e.from.endDate : void 0, I = (e
185
185
  t.stopPropagation(), J();
186
186
  },
187
187
  className: "inline-flex size-4 items-center justify-center bg-transparent border-none p-0 cursor-pointer",
188
- children: /* @__PURE__ */ a(Pe, { className: "size-3 hover:text-content text-content-muted" })
188
+ children: /* @__PURE__ */ a(Pe, { className: "size-3 hover:text-content text-content-icon" })
189
189
  }
190
190
  ) }),
191
191
  /* @__PURE__ */ a($, { variant: "tertiary", side: "top", children: x("calendar.clear") })
@@ -1,16 +1,16 @@
1
1
  import { jsx as e, jsxs as c, Fragment as k } from "react/jsx-runtime";
2
- import * as n from "react";
2
+ import * as o from "react";
3
3
  import { cn as f } from "../../../lib/utils.js";
4
4
  import { Cross as T, Eye as I, Delete as L, Document as B } from "impact-nova-icons";
5
5
  import { FileUpload as M, Text as A, Csv as E, Excel as O } from "../../ui/local-raster-icons/rasterIcons.js";
6
6
  import { Tooltip as U, TooltipTrigger as C, TooltipContent as D } from "../../feedback/tooltip/tooltip.js";
7
7
  import { useImpactNovaI18n as z } from "../../../i18n/use-impact-nova-i18n.js";
8
- const R = n.createContext(void 0), j = () => {
9
- const a = n.useContext(R);
8
+ const R = o.createContext(void 0), j = () => {
9
+ const a = o.useContext(R);
10
10
  if (!a)
11
11
  throw new Error("useFileUpload must be used within a FileUpload component");
12
12
  return a;
13
- }, S = n.forwardRef(
13
+ }, S = o.forwardRef(
14
14
  ({
15
15
  className: a,
16
16
  children: t,
@@ -21,13 +21,13 @@ const R = n.createContext(void 0), j = () => {
21
21
  value: u = [],
22
22
  ...p
23
23
  }, b) => {
24
- const [h, x] = n.useState(u);
25
- n.useEffect(() => {
24
+ const [h, x] = o.useState(u);
25
+ o.useEffect(() => {
26
26
  x(u);
27
27
  }, [u]);
28
- const g = (o) => {
28
+ const g = (n) => {
29
29
  if (m) return;
30
- let s = o;
30
+ let s = n;
31
31
  d.length > 0 && (s = s.filter((y) => {
32
32
  const w = y.name.split(".").pop()?.toLowerCase();
33
33
  return w && d.includes(w);
@@ -39,9 +39,9 @@ const R = n.createContext(void 0), j = () => {
39
39
  const y = [...h, ...F];
40
40
  x(y), l?.(y);
41
41
  }
42
- }, N = (o) => {
42
+ }, N = (n) => {
43
43
  if (m) return;
44
- const s = h.filter((v) => v !== o);
44
+ const s = h.filter((v) => v !== n);
45
45
  x(s), l?.(s);
46
46
  };
47
47
  return /* @__PURE__ */ e(
@@ -64,7 +64,7 @@ const R = n.createContext(void 0), j = () => {
64
64
  }
65
65
  );
66
66
  S.displayName = "FileUpload";
67
- const P = n.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e(
67
+ const P = o.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e(
68
68
  "div",
69
69
  {
70
70
  ref: r,
@@ -77,7 +77,7 @@ const P = n.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__
77
77
  }
78
78
  ));
79
79
  P.displayName = "FileUploadContent";
80
- const H = n.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e(
80
+ const H = o.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e(
81
81
  "div",
82
82
  {
83
83
  ref: r,
@@ -87,7 +87,7 @@ const H = n.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__
87
87
  }
88
88
  ));
89
89
  H.displayName = "FileUploadHeader";
90
- const Z = n.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e(
90
+ const Z = o.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e(
91
91
  "h3",
92
92
  {
93
93
  ref: r,
@@ -97,7 +97,7 @@ const Z = n.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__
97
97
  }
98
98
  ));
99
99
  Z.displayName = "FileUploadTitle";
100
- const $ = n.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e(
100
+ const $ = o.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e(
101
101
  "p",
102
102
  {
103
103
  ref: r,
@@ -110,7 +110,7 @@ const $ = n.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__
110
110
  }
111
111
  ));
112
112
  $.displayName = "FileUploadDescription";
113
- const G = n.forwardRef(({ className: a, ...t }, l) => {
113
+ const G = o.forwardRef(({ className: a, ...t }, l) => {
114
114
  const { t: r } = z(), d = r("aria.close");
115
115
  return /* @__PURE__ */ c(U, { children: [
116
116
  /* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ e(
@@ -131,11 +131,11 @@ const G = n.forwardRef(({ className: a, ...t }, l) => {
131
131
  ] });
132
132
  });
133
133
  G.displayName = "FileUploadClose";
134
- const K = n.forwardRef(({ className: a, label: t, subLabel: l, ...r }, d) => {
135
- const { addFiles: m, accept: u, disabled: p, files: b, maxFiles: h } = j(), [x, g] = n.useState(!1), N = n.useRef(null);
134
+ const K = o.forwardRef(({ className: a, label: t, subLabel: l, ...r }, d) => {
135
+ const { addFiles: m, accept: u, disabled: p, files: b, maxFiles: h } = j(), [x, g] = o.useState(!1), N = o.useRef(null);
136
136
  if (b.length >= h)
137
137
  return null;
138
- const o = (i) => {
138
+ const n = (i) => {
139
139
  i.preventDefault(), p || g(!0);
140
140
  }, s = (i) => {
141
141
  i.preventDefault(), g(!1);
@@ -151,7 +151,7 @@ const K = n.forwardRef(({ className: a, label: t, subLabel: l, ...r }, d) => {
151
151
  {
152
152
  ref: d,
153
153
  onClick: F,
154
- onDragOver: o,
154
+ onDragOver: n,
155
155
  onDragLeave: s,
156
156
  onDrop: v,
157
157
  className: f(
@@ -190,18 +190,18 @@ const K = n.forwardRef(({ className: a, label: t, subLabel: l, ...r }, d) => {
190
190
  );
191
191
  });
192
192
  K.displayName = "FileUploadDropZone";
193
- const V = n.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e("div", { ref: r, className: f("flex flex-col gap-3", a), ...l, children: t }));
193
+ const V = o.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e("div", { ref: r, className: f("flex flex-col gap-3", a), ...l, children: t }));
194
194
  V.displayName = "FileUploadList";
195
- const q = n.forwardRef(
195
+ const q = o.forwardRef(
196
196
  ({ className: a, file: t, onRemove: l, onView: r, onClick: d, ...m }, u) => {
197
- const { t: p } = z(), { removeFile: b, disabled: h } = j(), x = (o) => {
198
- o.stopPropagation(), l ? l() : b(t);
199
- }, g = (o) => {
200
- if (o === 0) return "0 B";
201
- const s = 1024, v = ["B", "KB", "MB", "GB"], F = Math.floor(Math.log(o) / Math.log(s));
202
- return parseFloat((o / Math.pow(s, F)).toFixed(2)) + " " + v[F];
203
- }, N = (o) => {
204
- switch (o.split(".").pop()?.toLowerCase()) {
197
+ const { t: p } = z(), { removeFile: b, disabled: h } = j(), x = (n) => {
198
+ n.stopPropagation(), l ? l() : b(t);
199
+ }, g = (n) => {
200
+ if (n === 0) return "0 B";
201
+ const s = 1024, v = ["B", "KB", "MB", "GB"], F = Math.floor(Math.log(n) / Math.log(s));
202
+ return parseFloat((n / Math.pow(s, F)).toFixed(2)) + " " + v[F];
203
+ }, N = (n) => {
204
+ switch (n.split(".").pop()?.toLowerCase()) {
205
205
  case "xls":
206
206
  case "xlsx":
207
207
  return /* @__PURE__ */ e(O, { size: 36 });
@@ -235,7 +235,7 @@ const q = n.forwardRef(
235
235
  /* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "text-xs font-bold text-content leading-[18px] line-clamp-1 break-all cursor-default", children: t.name }) }),
236
236
  /* @__PURE__ */ e(D, { side: "top", variant: "tertiary", children: t.name })
237
237
  ] }),
238
- /* @__PURE__ */ e("span", { className: "text-xs font-medium text-content-muted leading-[16px]", children: g(t.size) })
238
+ /* @__PURE__ */ e("span", { className: "text-xs font-medium text-secondary-foreground leading-[16px]", children: g(t.size) })
239
239
  ] })
240
240
  ] }),
241
241
  /* @__PURE__ */ c("div", { className: "flex items-center gap-4 shrink-0", children: [
@@ -243,8 +243,8 @@ const q = n.forwardRef(
243
243
  /* @__PURE__ */ e(C, { asChild: !0, children: /* @__PURE__ */ e(
244
244
  "button",
245
245
  {
246
- onClick: (o) => {
247
- o.stopPropagation(), r();
246
+ onClick: (n) => {
247
+ n.stopPropagation(), r();
248
248
  },
249
249
  className: "flex items-center justify-center text-content-tertiary hover:text-content transition-colors",
250
250
  type: "button",
@@ -274,7 +274,7 @@ const q = n.forwardRef(
274
274
  }
275
275
  );
276
276
  q.displayName = "FileUploadItem";
277
- const J = n.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e(
277
+ const J = o.forwardRef(({ className: a, children: t, ...l }, r) => /* @__PURE__ */ e(
278
278
  "div",
279
279
  {
280
280
  ref: r,
@@ -10,13 +10,13 @@ const V = C(
10
10
  type: f,
11
11
  label: i,
12
12
  helperText: a,
13
- helperTextPosition: d = "absolute",
13
+ helperTextPosition: l = "absolute",
14
14
  labelOrientation: b,
15
15
  error: h,
16
16
  isError: x,
17
17
  size: y,
18
18
  disabled: e,
19
- prefix: l,
19
+ prefix: d,
20
20
  suffix: c,
21
21
  prefixClick: s,
22
22
  suffixClick: m,
@@ -26,7 +26,7 @@ const V = C(
26
26
  const t = h ?? x, j = !!(i || a || t), n = B({
27
27
  label: i,
28
28
  helperText: a,
29
- helperTextPosition: d,
29
+ helperTextPosition: l,
30
30
  labelOrientation: b,
31
31
  error: t,
32
32
  required: u.required === !0 ? !0 : void 0,
@@ -36,7 +36,7 @@ const V = C(
36
36
  "div",
37
37
  {
38
38
  className: r(
39
- a && d === "absolute" && "relative"
39
+ a && l === "absolute" && "relative"
40
40
  ),
41
41
  children: /* @__PURE__ */ w(
42
42
  "div",
@@ -53,15 +53,15 @@ const V = C(
53
53
  e && "bg-disabled-surface"
54
54
  ),
55
55
  children: [
56
- l ? /* @__PURE__ */ o(
56
+ d ? /* @__PURE__ */ o(
57
57
  "div",
58
58
  {
59
59
  onClick: s,
60
60
  className: r(
61
- "flex shrink-0 items-center justify-center text-content-muted pointer-events-auto",
61
+ "flex shrink-0 items-center justify-center text-content-icon pointer-events-auto",
62
62
  s && "cursor-pointer"
63
63
  ),
64
- children: l
64
+ children: d
65
65
  }
66
66
  ) : null,
67
67
  /* @__PURE__ */ o(
@@ -86,7 +86,7 @@ const V = C(
86
86
  {
87
87
  onClick: m,
88
88
  className: r(
89
- "flex shrink-0 items-center justify-center text-content-muted pointer-events-auto",
89
+ "flex shrink-0 items-center justify-center text-content-icon pointer-events-auto",
90
90
  m && "cursor-pointer"
91
91
  ),
92
92
  children: c
@@ -1,6 +1,6 @@
1
1
  import { cva as e } from "class-variance-authority";
2
- const t = e(
3
- "flex w-full items-center gap-1 rounded-md border bg-transparent px-3 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-content-muted focus-within:outline-none focus-within:border-brand hover:border-brand disabled:cursor-not-allowed disabled:bg-disabled-surface disabled:text-disabled-foreground disabled:border-stroke",
2
+ const d = e(
3
+ "flex w-full items-center gap-1 rounded-md border bg-transparent px-3 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-content-placeholder focus-within:outline-none focus-within:border-brand hover:border-brand disabled:cursor-not-allowed disabled:bg-disabled-surface disabled:text-disabled-foreground disabled:border-stroke",
4
4
  {
5
5
  variants: {
6
6
  error: {
@@ -25,5 +25,5 @@ const t = e(
25
25
  }
26
26
  );
27
27
  export {
28
- t as inputVariants
28
+ d as inputVariants
29
29
  };
@@ -6,7 +6,6 @@ export interface SelectMenuPanelProps {
6
6
  isReadOnly: boolean;
7
7
  id?: string;
8
8
  menuLabel: string;
9
- onClose: () => void;
10
9
  children: ReactNode;
11
10
  }
12
- export declare function SelectMenuPanel({ menuRef, menuMinHeight, menuWidth, isReadOnly, id, menuLabel, onClose, children, }: SelectMenuPanelProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function SelectMenuPanel({ menuRef, menuMinHeight, menuWidth, isReadOnly, id, menuLabel, children, }: SelectMenuPanelProps): import("react/jsx-runtime").JSX.Element;