impact-nova 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid-header-dom.d.ts +8 -0
  2. package/dist/components/data/ag-grid-react/ag-grid-header-dom.js +11 -0
  3. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.d.ts +4 -1
  4. package/dist/components/data/ag-grid-react/ag-grid-tooltip-overflow.js +14 -3
  5. package/dist/components/data/ag-grid-react/headers/column-menu/column-header-settings-menu.d.ts +19 -0
  6. package/dist/components/data/ag-grid-react/headers/column-menu/column-header-settings-menu.js +74 -0
  7. package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.d.ts +4 -5
  8. package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +110 -144
  9. package/dist/components/data/ag-grid-react/headers/components/header-info.d.ts +2 -1
  10. package/dist/components/data/ag-grid-react/headers/components/header-info.js +73 -70
  11. package/dist/components/data/ag-grid-react/headers/context/grid-header-context.d.ts +0 -8
  12. package/dist/components/data/ag-grid-react/headers/custom-header.js +112 -118
  13. package/dist/components/data/ag-grid-react/headers/custom-inner-header-group.js +27 -23
  14. package/dist/components/data/ag-grid-react/headers/resolve-header-info-params.d.ts +10 -0
  15. package/dist/components/data/ag-grid-react/headers/resolve-header-info-params.js +19 -0
  16. package/dist/components/data/ag-grid-react/index.js +169 -210
  17. package/dist/components/data/ag-grid-react/info-system-story-columns.d.ts +12 -0
  18. package/dist/components/data/ag-grid-react/merge-column-group-defs.d.ts +3 -0
  19. package/dist/components/data/ag-grid-react/merge-column-group-defs.js +27 -0
  20. package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.d.ts +2 -1
  21. package/dist/components/data/ag-grid-react/use-ag-grid-truncation-tooltip.js +7 -7
  22. package/dist/components/data/data-table/data-table-view-menu.d.ts +1 -0
  23. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +6 -7
  24. package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +3 -2
  25. package/dist/components/data-display/calendar/calendar-day-picker-view.js +70 -68
  26. package/dist/components/data-display/calendar/calendar-week-number-cell.js +29 -29
  27. package/dist/components/data-display/calendar/calendar.js +96 -94
  28. package/dist/components/data-display/calendar/calendar.types.d.ts +2 -0
  29. package/dist/components/feedback/dialog/dialog.js +107 -61
  30. package/dist/components/feedback/dropdown-menu/dropdown-menu.d.ts +1 -0
  31. package/dist/components/feedback/dropdown-menu/dropdown-menu.js +83 -76
  32. package/dist/components/feedback/popover/popover.d.ts +5 -2
  33. package/dist/components/feedback/popover/popover.js +43 -40
  34. package/dist/components/feedback/sheet/sheet.js +149 -102
  35. package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
  36. package/dist/components/flows/filter-panel/filter-panel.js +79 -76
  37. package/dist/components/forms/date-picker/date-input-behavior.d.ts +10 -4
  38. package/dist/components/forms/date-picker/date-input-behavior.js +86 -67
  39. package/dist/components/forms/date-picker/date-picker.js +59 -52
  40. package/dist/components/forms/date-picker/date-range-picker.js +26 -25
  41. package/dist/components/forms/date-picker/month-picker.js +76 -69
  42. package/dist/components/forms/date-picker/month-range-picker.js +41 -40
  43. package/dist/components/forms/date-picker/multi-date-picker.js +31 -31
  44. package/dist/components/forms/date-picker/multi-month-picker.js +27 -27
  45. package/dist/components/forms/date-picker/multi-week-picker.js +37 -37
  46. package/dist/components/forms/date-picker/week-picker.js +85 -78
  47. package/dist/components/forms/date-picker/week-range-picker.js +67 -66
  48. package/dist/components/forms/select/components/SelectMenuPanel.js +19 -15
  49. package/dist/components/forms/select/components/SelectOptionRow.js +110 -90
  50. package/dist/components/forms/select/components/Submenu.js +39 -34
  51. package/dist/components/forms/select/hooks/useSelectOpenEffects.js +65 -70
  52. package/dist/components/forms/select/select.js +228 -223
  53. package/dist/components/forms/select/select.types.d.ts +8 -0
  54. package/dist/impact-nova-components.css +59 -15
  55. package/dist/impact-nova.css +1 -1
  56. package/dist/lib/overlay/merge-element-refs.d.ts +2 -0
  57. package/dist/lib/overlay/merge-element-refs.js +17 -0
  58. package/dist/lib/overlay/overlay-host.constants.d.ts +4 -0
  59. package/dist/lib/overlay/overlay-host.constants.js +5 -0
  60. package/dist/lib/overlay/overlay-portal-context.d.ts +26 -0
  61. package/dist/lib/overlay/overlay-portal-context.js +65 -0
  62. package/dist/lib/overlay/use-overlay-portal-container-state.d.ts +5 -0
  63. package/dist/lib/overlay/use-overlay-portal-container-state.js +13 -0
  64. package/dist/llms/rules/installation.js +1 -1
  65. package/dist/llms/rules/requirements.js +1 -1
  66. package/package.json +23 -8
  67. package/dist/components/forms/select/components/LabelWithSequence.d.ts +0 -13
  68. package/dist/components/forms/select/components/LabelWithSequence.js +0 -18
@@ -1,19 +1,19 @@
1
1
  import { jsxs as x, jsx as i } from "react/jsx-runtime";
2
2
  import * as r from "react";
3
- import { Cross as se, CalendarMonth as ce } from "impact-nova-icons";
3
+ import { Cross as se, CalendarMonth as le } from "impact-nova-icons";
4
4
  import { format as S } from "date-fns";
5
- import { cn as le } from "../../../lib/utils.js";
6
- import { usePickerDismissActionsRef as ae, usePickerFooterDismissNudge as pe, isDateInputInvalid as ue, maskDateInput as fe, parseDateInput as de, resolveDateInputOnBlur as me, resolveDateInputOnEnter as he } from "./date-input-behavior.js";
7
- import { Input as De } from "../input/input.js";
8
- import { Popover as ge, PopoverAnchor as ye, PopoverContent as ke } from "../../feedback/popover/popover.js";
9
- import { Calendar as ve } from "../../data-display/calendar/calendar.js";
5
+ import { cn as ce } from "../../../lib/utils.js";
6
+ import { usePickerDismissActionsRef as ae, usePickerFooterDismissNudge as pe, isDateInputInvalid as ue, resolveSingleValueDismissFlash as de, maskDateInput as fe, parseDateInput as me, resolveDateInputOnBlur as he, resolveDateInputOnEnter as De } from "./date-input-behavior.js";
7
+ import { Input as ge } from "../input/input.js";
8
+ import { Popover as ye, PopoverAnchor as ve, PopoverContent as ke } from "../../feedback/popover/popover.js";
9
+ import { Calendar as Ce } from "../../data-display/calendar/calendar.js";
10
10
  import { Tooltip as j, TooltipTrigger as B, TooltipContent as K } from "../../feedback/tooltip/tooltip.js";
11
- import { useImpactNovaI18n as Ce } from "../../../i18n/use-impact-nova-i18n.js";
12
- import { getDateFnsLocale as Ie } from "../../../i18n/getDateFnsLocale.js";
13
- import { createComponent as Pe } from "../../../lib/primitives/create-component.js";
14
- import { coerceSingleDateApply as Me, coerceSingleDate as xe } from "./calendar-selection-adapters.js";
15
- import { buildDateBoundsMatcher as Re } from "../../../lib/date-bounds-matcher.js";
16
- const He = Pe(
11
+ import { useImpactNovaI18n as Ie } from "../../../i18n/use-impact-nova-i18n.js";
12
+ import { getDateFnsLocale as Pe } from "../../../i18n/getDateFnsLocale.js";
13
+ import { createComponent as Me } from "../../../lib/primitives/create-component.js";
14
+ import { coerceSingleDateApply as xe, coerceSingleDate as Re } from "./calendar-selection-adapters.js";
15
+ import { buildDateBoundsMatcher as be } from "../../../lib/date-bounds-matcher.js";
16
+ const qe = Me(
17
17
  "DatePicker",
18
18
  ({
19
19
  value: n,
@@ -25,14 +25,14 @@ const He = Pe(
25
25
  startMonth: G,
26
26
  endMonth: J,
27
27
  showFooter: c = !0,
28
- weekStartsOn: T,
28
+ weekStartsOn: w,
29
29
  disabled: a,
30
30
  className: Q,
31
31
  ...U
32
32
  }, W) => {
33
- const { locale: w, t: m } = Ce(), f = r.useMemo(() => Ie(w), [w]), X = z ?? m("datePicker.selectDate"), I = r.useRef(null), A = r.useRef(null), P = r.useRef(null);
34
- r.useImperativeHandle(W, () => I.current);
35
- const [o, E] = r.useState(!1), N = ae(), { footerFlashKey: Y, footerFlashTarget: Z, popoverHandlers: _ } = pe(c, o, N, A), g = r.useRef(!1), [R, s] = r.useState(null), y = n ? S(n, l, { locale: f }) : "", d = R?.input ?? y, k = o ? R?.pending ?? n : n, $ = R?.viewMonth ?? n ?? /* @__PURE__ */ new Date(), p = r.useCallback(() => {
33
+ const { locale: T, t: m } = Ie(), d = r.useMemo(() => Pe(T), [T]), X = z ?? m("datePicker.selectDate"), C = r.useRef(null), A = r.useRef(null), I = r.useRef(null);
34
+ r.useImperativeHandle(W, () => C.current);
35
+ const [o, E] = r.useState(!1), N = ae(), { footerFlashKey: Y, footerFlashTarget: Z, popoverHandlers: _ } = pe(c, o, N, A), g = r.useRef(!1), [R, s] = r.useState(null), y = n ? S(n, l, { locale: d }) : "", f = R?.input ?? y, P = o ? R?.pending ?? n : n, $ = R?.viewMonth ?? n ?? /* @__PURE__ */ new Date(), p = r.useCallback(() => {
36
36
  s(null), E(!1);
37
37
  }, []), h = (e) => {
38
38
  if (!a) {
@@ -44,23 +44,23 @@ const He = Pe(
44
44
  }), E(!0);
45
45
  return;
46
46
  }
47
- c || p();
47
+ p();
48
48
  }
49
49
  };
50
50
  r.useEffect(() => {
51
- I.current && P.current !== null && (I.current.setSelectionRange(P.current, P.current), P.current = null);
52
- }, [d]);
51
+ C.current && I.current !== null && (C.current.setSelectionRange(I.current, I.current), I.current = null);
52
+ }, [f]);
53
53
  const F = (e) => {
54
- const t = xe(e), D = t ? S(t, l, { locale: f }) : "";
54
+ const t = Re(e), D = t ? S(t, l, { locale: d }) : "";
55
55
  s(
56
56
  (v) => v ? { ...v, pending: t, input: D, viewMonth: t ?? v.viewMonth } : null
57
57
  ), t && !c && (u?.(t), p());
58
- }, L = (e) => {
59
- const t = Me(e, k);
58
+ }, V = (e) => {
59
+ const t = xe(e, P);
60
60
  u?.(t), p();
61
61
  }, b = () => {
62
62
  p();
63
- }, O = () => {
63
+ }, L = () => {
64
64
  u?.(void 0), c ? s(
65
65
  (e) => e ? { ...e, pending: void 0, input: "" } : null
66
66
  ) : p();
@@ -72,14 +72,14 @@ const He = Pe(
72
72
  }),
73
73
  [y, n]
74
74
  ), ee = (e) => {
75
- const t = fe(e.target.value, l, d);
76
- if (s((C) => ({ ...C ?? M(), input: t })), t === "") {
77
- s((C) => ({ ...C ?? M(), input: "", pending: void 0 })), c || u?.(void 0);
75
+ const t = fe(e.target.value, l, f);
76
+ if (s((k) => ({ ...k ?? M(), input: t })), t === "") {
77
+ s((k) => ({ ...k ?? M(), input: "", pending: void 0 })), c || u?.(void 0);
78
78
  return;
79
79
  }
80
- const { parsed: D, isValid: v } = de(t, l, f);
81
- v && D && (s((C) => ({
82
- ...C ?? M(),
80
+ const { parsed: D, isValid: v } = me(t, l, d);
81
+ v && D && (s((k) => ({
82
+ ...k ?? M(),
83
83
  input: t,
84
84
  pending: D,
85
85
  viewMonth: D
@@ -91,11 +91,11 @@ const He = Pe(
91
91
  [u, p]
92
92
  ), ne = () => {
93
93
  if (o) return;
94
- const e = me(
95
- d,
94
+ const e = he(
95
+ f,
96
96
  l,
97
97
  y,
98
- f
98
+ d
99
99
  );
100
100
  if (e.resetToCommitted) {
101
101
  s(null);
@@ -113,34 +113,41 @@ const He = Pe(
113
113
  s(null);
114
114
  }, re = () => {
115
115
  if (o && c) {
116
- L();
116
+ V();
117
117
  return;
118
118
  }
119
- const e = he(d, l, f);
119
+ const e = De(f, l, d);
120
120
  if (e.parsed) {
121
121
  c && te(e.parsed);
122
122
  return;
123
123
  }
124
124
  o || (g.current = !0, h(!0));
125
- }, V = (n ? S(n, l, { locale: f }) : "") !== d, ie = ue(d, l, f), oe = r.useCallback(() => k && (!n || k.getTime() !== n.getTime()) ? "apply" : "cancel", [k, n]);
125
+ }, O = (n ? S(n, l, { locale: d }) : "") !== f, ie = ue(f, l, d), oe = r.useCallback(
126
+ () => de(
127
+ P,
128
+ n,
129
+ (e, t) => e.getTime() === t.getTime()
130
+ ),
131
+ [P, n]
132
+ );
126
133
  return r.useLayoutEffect(() => {
127
134
  N.current = {
128
135
  onDismiss: b,
129
136
  resolveFlash: oe
130
137
  };
131
- }), /* @__PURE__ */ x(ge, { open: a ? !1 : o, onOpenChange: h, children: [
132
- /* @__PURE__ */ i(ye, { asChild: !0, children: /* @__PURE__ */ i(
138
+ }), /* @__PURE__ */ x(ye, { open: a ? !1 : o, onOpenChange: h, children: [
139
+ /* @__PURE__ */ i(ve, { asChild: !0, children: /* @__PURE__ */ i(
133
140
  "div",
134
141
  {
135
142
  ref: A,
136
143
  "data-component": "date-picker",
137
144
  "data-state": o ? "open" : "closed",
138
- "data-pending": V || void 0,
145
+ "data-pending": O || void 0,
139
146
  children: /* @__PURE__ */ i(
140
- De,
147
+ ge,
141
148
  {
142
- ref: I,
143
- value: d,
149
+ ref: C,
150
+ value: f,
144
151
  onChange: ee,
145
152
  onBlur: ne,
146
153
  onClick: () => !a && h(!0),
@@ -150,9 +157,9 @@ const He = Pe(
150
157
  placeholder: o ? l : X,
151
158
  disabled: a,
152
159
  "data-form-control": "input",
153
- className: le(
160
+ className: ce(
154
161
  "cursor-pointer",
155
- ie ? "text-destructive" : V ? "text-content-placeholder" : "",
162
+ ie ? "text-destructive" : O ? "text-content-placeholder" : "",
156
163
  Q
157
164
  ),
158
165
  suffix: /* @__PURE__ */ x("div", { className: "flex items-center gap-1", children: [
@@ -164,7 +171,7 @@ const He = Pe(
164
171
  tabIndex: 0,
165
172
  "aria-label": m("calendar.clear"),
166
173
  onClick: (e) => {
167
- e.stopPropagation(), O();
174
+ e.stopPropagation(), L();
168
175
  },
169
176
  className: "inline-flex size-4 items-center justify-center bg-transparent border-none p-0 cursor-pointer",
170
177
  children: /* @__PURE__ */ i(se, { className: "size-3 hover:text-content" })
@@ -177,7 +184,7 @@ const He = Pe(
177
184
  e.stopPropagation(), a || (o ? p() : h(!0));
178
185
  }, onKeyDown: (e) => {
179
186
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), a || (g.current = !0, o ? p() : h(!0)));
180
- }, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ i(ce, { className: "h-4 w-4 text-secondary-foreground" }) }) }),
187
+ }, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ i(le, { className: "h-4 w-4 text-secondary-foreground" }) }) }),
181
188
  /* @__PURE__ */ i(K, { variant: "tertiary", side: "top", children: m("datePicker.selectDate") })
182
189
  ] })
183
190
  ] }),
@@ -197,10 +204,10 @@ const He = Pe(
197
204
  },
198
205
  ..._,
199
206
  children: /* @__PURE__ */ i(
200
- ve,
207
+ Ce,
201
208
  {
202
209
  mode: "single",
203
- selected: k,
210
+ selected: P,
204
211
  footerFlashKey: Y,
205
212
  footerFlashTarget: Z,
206
213
  onSelect: F,
@@ -208,15 +215,15 @@ const He = Pe(
208
215
  onMonthChange: (e) => s(
209
216
  (t) => t ? { ...t, viewMonth: e } : null
210
217
  ),
211
- disabled: Re(H, q),
218
+ disabled: be(H, q),
212
219
  startMonth: G,
213
220
  endMonth: J,
214
221
  showFooter: c,
215
- onApply: L,
222
+ onApply: V,
216
223
  onCancel: b,
217
- onClear: O,
224
+ onClear: L,
218
225
  captionLayout: "dropdown",
219
- ...T !== void 0 ? { weekStartsOn: T } : {}
226
+ ...w !== void 0 ? { weekStartsOn: w } : {}
220
227
  }
221
228
  )
222
229
  }
@@ -225,5 +232,5 @@ const He = Pe(
225
232
  }
226
233
  );
227
234
  export {
228
- He as DatePicker
235
+ qe as DatePicker
229
236
  };
@@ -54,7 +54,7 @@ const tt = a.forwardRef(
54
54
  rootClassName: "w-full min-w-[240px]"
55
55
  }), Q = a.useRef(null), Re = a.useRef(null), U = a.useRef(null), T = a.useRef(null), M = a.useRef(null);
56
56
  a.useImperativeHandle(he, () => Q.current);
57
- const [d, h] = a.useState(!1), W = Ke(), { footerFlashKey: xe, footerFlashTarget: De, popoverHandlers: ke } = je(g, d, W, U), I = a.useRef(!1), [p, y] = a.useState(r), [m, D] = a.useState(r?.from ? x(r.from, n, { locale: s }) : ""), [R, k] = a.useState(r?.to ? x(r.to, n, { locale: s }) : ""), [ve, P] = a.useState(r?.from || /* @__PURE__ */ new Date()), v = r?.from ? x(r.from, n, { locale: s }) : "", C = r?.to ? x(r.to, n, { locale: s }) : "";
57
+ const [p, h] = a.useState(!1), W = Ke(), { footerFlashKey: xe, footerFlashTarget: De, popoverHandlers: ke } = je(g, p, W, U), I = a.useRef(!1), [d, y] = a.useState(r), [m, D] = a.useState(r?.from ? x(r.from, n, { locale: s }) : ""), [R, k] = a.useState(r?.to ? x(r.to, n, { locale: s }) : ""), [ve, P] = a.useState(r?.from || /* @__PURE__ */ new Date()), v = r?.from ? x(r.from, n, { locale: s }) : "", C = r?.to ? x(r.to, n, { locale: s }) : "";
58
58
  a.useEffect(() => {
59
59
  D(r?.from ? x(r.from, n, { locale: s }) : ""), k(r?.to ? x(r.to, n, { locale: s }) : ""), y(r);
60
60
  }, [r, n, s]);
@@ -69,12 +69,12 @@ const tt = a.forwardRef(
69
69
  [f, g]
70
70
  ), X = a.useRef(!1);
71
71
  a.useEffect(() => {
72
- if (d && !X.current) {
72
+ if (p && !X.current) {
73
73
  const e = K(m, n, s);
74
- e.parsed ? P(e.parsed) : p?.from ? P(p.from) : r?.from && P(r.from);
74
+ e.parsed ? P(e.parsed) : d?.from ? P(d.from) : r?.from && P(r.from);
75
75
  }
76
- X.current = d;
77
- }, [d, m, n, s, p?.from, r?.from]);
76
+ X.current = p;
77
+ }, [p, m, n, s, d?.from, r?.from]);
78
78
  const be = (e) => {
79
79
  const t = $e(e);
80
80
  y(t), t?.from && D(x(t.from, n, { locale: s })), t?.to && k(x(t.to, n, { locale: s })), g || t?.from && t?.to && t.from.getTime() !== t.to.getTime() && (c?.(t), h(!1));
@@ -82,7 +82,7 @@ const tt = a.forwardRef(
82
82
  const o = qe(e, t, j);
83
83
  return o.swapped && (o.from && D(x(o.from, n, { locale: s })), o.to && k(x(o.to, n, { locale: s })), ze(T.current)), { from: o.from, to: o.to };
84
84
  }, [n, s]), Y = (e) => {
85
- let t = _e(e, p);
85
+ let t = _e(e, d);
86
86
  t?.from && !t.to && (t = { from: t.from, to: t.from });
87
87
  const o = w(t?.from, t?.to);
88
88
  y({ from: o.from, to: o.to }), c?.({ from: o.from, to: o.to }), h(!1);
@@ -93,25 +93,25 @@ const tt = a.forwardRef(
93
93
  }, Ie = (e) => {
94
94
  const t = F(e.target.value, n, m);
95
95
  if (D(t), t === "") {
96
- const l = { from: void 0, to: p?.to };
96
+ const l = { from: void 0, to: d?.to };
97
97
  y(l), g || c?.(l);
98
98
  return;
99
99
  }
100
100
  const { parsed: o, isValid: i } = K(t, n, s);
101
101
  if (i && o) {
102
- const l = { from: o, to: p?.to };
102
+ const l = { from: o, to: d?.to };
103
103
  y(l), P(o), g || c?.(l);
104
104
  }
105
105
  }, Pe = (e) => {
106
106
  const t = F(e.target.value, n, R);
107
107
  if (k(t), t === "") {
108
- const l = { from: p?.from, to: void 0 };
108
+ const l = { from: d?.from, to: void 0 };
109
109
  y(l), g || c?.(l);
110
110
  return;
111
111
  }
112
112
  const { parsed: o, isValid: i } = K(t, n, s);
113
113
  if (i && o) {
114
- const l = { from: p?.from, to: o };
114
+ const l = { from: d?.from, to: o };
115
115
  y(l), P(o), g || c?.(l);
116
116
  }
117
117
  }, Z = () => {
@@ -121,7 +121,7 @@ const tt = a.forwardRef(
121
121
  () => {
122
122
  const e = N(m, n, v, s), t = N(R, n, C, s);
123
123
  e.resetToCommitted ? D(v) : e.parsed && D(e.display), t.resetToCommitted ? k(C) : t.parsed && k(t.display);
124
- let o = e.parsed ? e.parsed : e.resetToCommitted ? r?.from : p?.from, i = t.parsed ? t.parsed : t.resetToCommitted ? r?.to : p?.to;
124
+ let o = e.parsed ? e.parsed : e.resetToCommitted ? r?.from : d?.from, i = t.parsed ? t.parsed : t.resetToCommitted ? r?.to : d?.to;
125
125
  o && i && ({ from: o, to: i } = w(o, i));
126
126
  const l = o || i ? { from: o, to: i } : void 0;
127
127
  y(l), g || (l ? c?.(l) : !m && !R && c?.(void 0));
@@ -130,16 +130,16 @@ const tt = a.forwardRef(
130
130
  }, Ee = () => {
131
131
  const e = S(m, n, v, s), t = S(R, n, C, s);
132
132
  e.resetToCommitted ? D(v) : e.parsed && D(e.display), t.resetToCommitted ? k(C) : t.parsed && k(t.display);
133
- let o = e.parsed ?? p?.from ?? r?.from, i = t.parsed ?? p?.to ?? r?.to;
133
+ let o = e.parsed ?? d?.from ?? r?.from, i = t.parsed ?? d?.to ?? r?.to;
134
134
  o && i && ({ from: o, to: i } = w(o, i));
135
135
  const l = o || i ? { from: o, to: i } : void 0;
136
136
  l ? (y(l), c?.(l)) : !m && !R && (y(void 0), c?.(void 0));
137
137
  }, _ = () => {
138
- if (d && g) {
138
+ if (p && g) {
139
139
  Y();
140
140
  return;
141
141
  }
142
- if (!d) {
142
+ if (!p) {
143
143
  if (g) {
144
144
  Ee();
145
145
  return;
@@ -150,7 +150,7 @@ const tt = a.forwardRef(
150
150
  }
151
151
  }, we = m !== v, Te = R !== C, Be = $(m, n, s), Ne = $(R, n, s), Se = a.useCallback(() => {
152
152
  const e = N(m, n, v, s), t = N(R, n, C, s);
153
- let o = e.parsed ? e.parsed : e.resetToCommitted ? r?.from : p?.from, i = t.parsed ? t.parsed : t.resetToCommitted ? r?.to : p?.to;
153
+ let o = e.parsed ? e.parsed : e.resetToCommitted ? r?.from : d?.from, i = t.parsed ? t.parsed : t.resetToCommitted ? r?.to : d?.to;
154
154
  o && i && ({ from: o, to: i } = w(o, i));
155
155
  const l = o || i ? { from: o, to: i } : void 0;
156
156
  return He({
@@ -159,6 +159,7 @@ const tt = a.forwardRef(
159
159
  committedStart: v,
160
160
  committedEnd: C,
161
161
  committedRange: r,
162
+ pendingRange: d,
162
163
  computeEffectiveRange: () => l,
163
164
  rangesEqual: (Ae, Me) => et(Ae, Me)
164
165
  });
@@ -168,7 +169,7 @@ const tt = a.forwardRef(
168
169
  v,
169
170
  C,
170
171
  r,
171
- p,
172
+ d,
172
173
  n,
173
174
  s,
174
175
  w
@@ -185,12 +186,12 @@ const tt = a.forwardRef(
185
186
  "data-component": "date-range-picker",
186
187
  "data-disabled": f || void 0,
187
188
  children: ye.wrapControl(
188
- /* @__PURE__ */ E(Qe, { open: f ? !1 : d, onOpenChange: Ce, children: [
189
+ /* @__PURE__ */ E(Qe, { open: f ? !1 : p, onOpenChange: Ce, children: [
189
190
  /* @__PURE__ */ u(Ue, { asChild: !0, children: /* @__PURE__ */ E(
190
191
  "div",
191
192
  {
192
193
  ref: T,
193
- "data-state": d ? "open" : "closed",
194
+ "data-state": p ? "open" : "closed",
194
195
  className: O(
195
196
  "flex w-full items-center justify-between gap-2 rounded-md border bg-canvas-elevated px-3 text-sm shadow-sm transition-colors hover:border-brand disabled:cursor-not-allowed disabled:bg-disabled-surface disabled:text-disabled-foreground disabled:border-stroke",
196
197
  J ? "border-destructive hover:border-destructive" : "border-field",
@@ -211,9 +212,9 @@ const tt = a.forwardRef(
211
212
  onBlur: Z,
212
213
  onClick: () => !f && h(!0),
213
214
  onKeyDown: (e) => {
214
- e.key === "Enter" && !f && (e.preventDefault(), _()), e.key === "ArrowDown" && !d && !f && (e.preventDefault(), I.current = !0, h(!0)), e.key === "Escape" && d && (e.preventDefault(), B());
215
+ e.key === "Enter" && !f && (e.preventDefault(), _()), e.key === "ArrowDown" && !p && !f && (e.preventDefault(), I.current = !0, h(!0)), e.key === "Escape" && p && (e.preventDefault(), B());
215
216
  },
216
- placeholder: d ? n : H,
217
+ placeholder: p ? n : H,
217
218
  disabled: !!f,
218
219
  "aria-label": H,
219
220
  "data-field": "start",
@@ -234,9 +235,9 @@ const tt = a.forwardRef(
234
235
  onBlur: Z,
235
236
  onClick: () => !f && h(!0),
236
237
  onKeyDown: (e) => {
237
- e.key === "Enter" && !f && (e.preventDefault(), _()), e.key === "ArrowDown" && !d && !f && (e.preventDefault(), I.current = !0, h(!0)), e.key === "Escape" && d && (e.preventDefault(), B());
238
+ e.key === "Enter" && !f && (e.preventDefault(), _()), e.key === "ArrowDown" && !p && !f && (e.preventDefault(), I.current = !0, h(!0)), e.key === "Escape" && p && (e.preventDefault(), B());
238
239
  },
239
- placeholder: d ? n : G,
240
+ placeholder: p ? n : G,
240
241
  disabled: !!f,
241
242
  "aria-label": G,
242
243
  "data-field": "end",
@@ -269,9 +270,9 @@ const tt = a.forwardRef(
269
270
  ] }),
270
271
  /* @__PURE__ */ E(ee, { children: [
271
272
  /* @__PURE__ */ u(te, { asChild: !0, children: /* @__PURE__ */ u("button", { type: "button", tabIndex: 0, "aria-label": b("datePicker.selectMonthRange"), onClick: (e) => {
272
- e.stopPropagation(), f || h(!d);
273
+ e.stopPropagation(), f || h(!p);
273
274
  }, onKeyDown: (e) => {
274
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), f || (I.current = !0, h(!d)));
275
+ (e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), f || (I.current = !0, h(!p)));
275
276
  }, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ u(Oe, { className: "h-4 w-4 text-secondary-foreground" }) }) }),
276
277
  /* @__PURE__ */ u(re, { variant: "tertiary", side: "top", children: b("datePicker.selectMonthRange") })
277
278
  ] })
@@ -294,7 +295,7 @@ const tt = a.forwardRef(
294
295
  Xe,
295
296
  {
296
297
  mode: "range",
297
- selected: p,
298
+ selected: d,
298
299
  footerFlashKey: xe,
299
300
  footerFlashTarget: De,
300
301
  onSelect: be,