impact-nova 2.5.11 → 2.5.13

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 (111) hide show
  1. package/dist/components/data/data-table/build-column-tree-from-grid.d.ts +1 -0
  2. package/dist/components/data/data-table/build-column-tree-from-grid.js +55 -50
  3. package/dist/components/data/data-table/column-picker-authority.d.ts +34 -0
  4. package/dist/components/data/data-table/column-picker-authority.js +116 -0
  5. package/dist/components/data/data-table/column-picker-drop-validation.d.ts +7 -0
  6. package/dist/components/data/data-table/column-picker-drop-validation.js +37 -0
  7. package/dist/components/data/data-table/data-table-column-apply.d.ts +2 -0
  8. package/dist/components/data/data-table/data-table-column-apply.js +84 -73
  9. package/dist/components/data/data-table/data-table-column-list-tree-apply.d.ts +10 -0
  10. package/dist/components/data/data-table/data-table-column-list-tree-apply.js +79 -0
  11. package/dist/components/data/data-table/data-table-column-list.js +94 -64
  12. package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +12 -6
  13. package/dist/components/data/data-table/data-table-column-tree-cache.js +250 -131
  14. package/dist/components/data/data-table/data-table-flat-column-virtual-rows.d.ts +26 -0
  15. package/dist/components/data/data-table/data-table-flat-column-virtual-rows.js +195 -0
  16. package/dist/components/data/data-table/data-table-picker-column-eligibility.d.ts +1 -0
  17. package/dist/components/data/data-table/data-table-picker-column-eligibility.js +7 -0
  18. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.d.ts +5 -0
  19. package/dist/components/data/data-table/patch-column-tree-indicators-from-grid.js +28 -11
  20. package/dist/components/data/data-table/reconcile-column-tree-from-grid.d.ts +12 -0
  21. package/dist/components/data/data-table/reconcile-column-tree-from-grid.js +12 -0
  22. package/dist/components/data/data-table/use-data-table-column-list-sync.d.ts +10 -0
  23. package/dist/components/data/data-table/use-data-table-column-list-sync.js +250 -196
  24. package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
  25. package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
  26. package/dist/components/data/nested-list/components/NestedListContent.d.ts +10 -2
  27. package/dist/components/data/nested-list/components/NestedListContent.js +253 -138
  28. package/dist/components/data/nested-list/components/SortableItem.d.ts +2 -1
  29. package/dist/components/data/nested-list/components/SortableItem.js +62 -60
  30. package/dist/components/data/nested-list/hooks/useNestedListDragDrop.d.ts +10 -20
  31. package/dist/components/data/nested-list/hooks/useNestedListDragDrop.js +44 -233
  32. package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.d.ts +24 -0
  33. package/dist/components/data/nested-list/hooks/useVirtualNestedListDrag.js +128 -0
  34. package/dist/components/data/nested-list/nested-list-constants.d.ts +4 -1
  35. package/dist/components/data/nested-list/nested-list-constants.js +10 -4
  36. package/dist/components/data/nested-list/nested-list-display-utils.d.ts +11 -0
  37. package/dist/components/data/nested-list/nested-list-display-utils.js +74 -0
  38. package/dist/components/data/nested-list/nested-list-drop-engine.d.ts +31 -0
  39. package/dist/components/data/nested-list/nested-list-drop-engine.js +209 -0
  40. package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.d.ts +26 -0
  41. package/dist/components/data/nested-list/nested-list-flat-virtual-handlers.js +67 -0
  42. package/dist/components/data/nested-list/nested-list-item-tree-mutations.d.ts +4 -0
  43. package/dist/components/data/nested-list/nested-list-item-tree-mutations.js +43 -0
  44. package/dist/components/data/nested-list/nested-list-lazy-flat-rows.d.ts +3 -0
  45. package/dist/components/data/nested-list/nested-list-lazy-flat-rows.js +34 -0
  46. package/dist/components/data/nested-list/nested-list-row-estimates.d.ts +9 -0
  47. package/dist/components/data/nested-list/nested-list-row-estimates.js +14 -0
  48. package/dist/components/data/nested-list/nested-list-scroll-anchor.d.ts +36 -0
  49. package/dist/components/data/nested-list/nested-list-scroll-anchor.js +47 -0
  50. package/dist/components/data/nested-list/nested-list-virtual-drop.d.ts +59 -0
  51. package/dist/components/data/nested-list/nested-list-virtual-drop.js +341 -0
  52. package/dist/components/data/nested-list/nested-list.js +322 -336
  53. package/dist/components/data/nested-list/nested-list.types.d.ts +17 -0
  54. package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +0 -2
  55. package/dist/components/data-display/calendar/calendar-apply-validation.js +67 -64
  56. package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +2 -4
  57. package/dist/components/data-display/calendar/calendar-day-picker-components.js +152 -163
  58. package/dist/components/data-display/calendar/calendar-day-picker-view.js +76 -77
  59. package/dist/components/data-display/calendar/calendar-fiscal-period-nav.d.ts +0 -6
  60. package/dist/components/data-display/calendar/calendar-fiscal-period-nav.js +18 -34
  61. package/dist/components/data-display/calendar/calendar-month-utils.d.ts +0 -5
  62. package/dist/components/data-display/calendar/calendar-month-utils.js +64 -85
  63. package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +0 -1
  64. package/dist/components/data-display/calendar/calendar-selection-appearance.js +30 -31
  65. package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +1 -2
  66. package/dist/components/data-display/calendar/calendar-week-number-cell.js +41 -55
  67. package/dist/components/data-display/calendar/calendar-year-panes.d.ts +0 -2
  68. package/dist/components/data-display/calendar/calendar-year-panes.js +1 -3
  69. package/dist/components/data-display/calendar/calendar.js +143 -146
  70. package/dist/components/data-display/calendar/calendar.types.d.ts +0 -5
  71. package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +1 -2
  72. package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +74 -79
  73. package/dist/components/data-display/calendar/use-calendar-state.d.ts +1 -3
  74. package/dist/components/data-display/calendar/use-calendar-state.js +325 -403
  75. package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
  76. package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
  77. package/dist/components/flows/filter-panel/filter-panel.js +4 -4
  78. package/dist/components/forms/date-picker/date-picker.js +58 -60
  79. package/dist/components/forms/date-picker/date-picker.types.d.ts +0 -5
  80. package/dist/components/forms/date-picker/date-range-picker.js +64 -66
  81. package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +0 -1
  82. package/dist/components/forms/date-picker/fiscal-pass-through.js +2 -3
  83. package/dist/components/forms/date-picker/month-picker.js +59 -61
  84. package/dist/components/forms/date-picker/month-range-picker.js +61 -63
  85. package/dist/components/forms/date-picker/multi-date-picker.js +49 -51
  86. package/dist/components/forms/date-picker/multi-month-picker.js +47 -49
  87. package/dist/components/forms/date-picker/multi-quarter-picker.js +44 -46
  88. package/dist/components/forms/date-picker/multi-week-picker.js +51 -53
  89. package/dist/components/forms/date-picker/multi-year-picker.js +46 -48
  90. package/dist/components/forms/date-picker/quarter-picker.js +44 -46
  91. package/dist/components/forms/date-picker/quarter-range-picker.js +43 -45
  92. package/dist/components/forms/date-picker/week-picker.js +66 -68
  93. package/dist/components/forms/date-picker/week-range-picker.js +80 -82
  94. package/dist/components/forms/date-picker/year-picker.js +45 -47
  95. package/dist/components/forms/date-picker/year-range-picker.js +45 -47
  96. package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
  97. package/dist/components/forms/select/components/Submenu.js +2 -3
  98. package/dist/form-react/Fields/DateInputField.js +50 -51
  99. package/dist/form-react/Fields/DateRangeField.js +13 -14
  100. package/dist/form-react/Fields/MonthRangeField.js +28 -29
  101. package/dist/form-react/Fields/MultiMonthPickerField.js +12 -13
  102. package/dist/form-react/Fields/MultiWeekPickerField.js +17 -18
  103. package/dist/form-react/Fields/WeekRangePicker.js +21 -22
  104. package/dist/form-react/types/fields.types.d.ts +0 -12
  105. package/dist/impact-nova.css +1 -1
  106. package/dist/lib/hash/fnv1a128.d.ts +16 -0
  107. package/dist/lib/hash/fnv1a128.js +21 -0
  108. package/dist/llms/rules/ag-grid.js +1 -1
  109. package/package.json +1 -1
  110. package/dist/components/data-display/calendar/calendar-available-view.d.ts +0 -27
  111. package/dist/components/data-display/calendar/calendar-available-view.js +0 -85
@@ -1,73 +1,67 @@
1
- import { jsx as i, jsxs as M } from "react/jsx-runtime";
2
- import * as k from "react";
3
- import { useDayPicker as ue } from "react-day-picker";
4
- import { ChevronRight as Q } from "impact-nova-icons";
1
+ import { jsx as i, jsxs as q } from "react/jsx-runtime";
2
+ import * as v from "react";
3
+ import { useDayPicker as le } from "react-day-picker";
4
+ import { ChevronRight as J } from "impact-nova-icons";
5
5
  import { cn as y } from "../../../lib/utils.js";
6
- import { Button as U } from "../../primitives/button/button.js";
7
- import { Select as X } from "../../forms/select/select.js";
8
- import { CalendarCaptionHeader as me } from "./calendar-caption-header.js";
9
- import { CalendarDayButton as pe } from "./calendar-day-button.js";
10
- import { PanelIndexContext as D } from "./calendar-panel-context.js";
11
- import { CalendarWeekNumberCell as he } from "./calendar-week-number-cell.js";
12
- import { paneCivilMonthIndex as ve } from "./calendar-week-number-header.js";
13
- import { buildFiscalYear as xe } from "../../../lib/fiscal-calendar/build-year.js";
14
- import { civilMonthAtOffset as N, midMonthDate as g, periodForFiscalYearChange as ke, visibleMonthForPeriod as Z, periodsAvailableInBounds as Pe, periodForCivilMonth as $ } from "./calendar-fiscal-period-nav.js";
15
- import { getAvailableMonths as ye, isWeekSelectableInBounds as De } from "./calendar-month-utils.js";
16
- import { isCalendarPaddingWeek as L, weekHasInMonthSelection as Se, weekIntervalContinues as We } from "./calendar-padding-week.utils.js";
17
- import { isForeignFiscalWeekRow as T, fiscalPeriodForWeek as V } from "./calendar-week-utils.js";
18
- import { FiscalPeriodCaptionSelect as be } from "./fiscal-period-caption-select.js";
19
- function C(h, f, l) {
20
- if (f != null && h)
6
+ import { Button as M } from "../../primitives/button/button.js";
7
+ import { Select as Q } from "../../forms/select/select.js";
8
+ import { CalendarCaptionHeader as ce } from "./calendar-caption-header.js";
9
+ import { CalendarDayButton as de } from "./calendar-day-button.js";
10
+ import { PanelIndexContext as P } from "./calendar-panel-context.js";
11
+ import { CalendarWeekNumberCell as me } from "./calendar-week-number-cell.js";
12
+ import { paneCivilMonthIndex as fe } from "./calendar-week-number-header.js";
13
+ import { buildFiscalYear as ue } from "../../../lib/fiscal-calendar/build-year.js";
14
+ import { civilMonthAtOffset as N, midMonthDate as F, visibleMonthForPeriod as U, periodForCivilMonth as X } from "./calendar-fiscal-period-nav.js";
15
+ import { getAvailableMonths as pe } from "./calendar-month-utils.js";
16
+ import { isCalendarPaddingWeek as Z, weekHasInMonthSelection as he, weekIntervalContinues as ve } from "./calendar-padding-week.utils.js";
17
+ import { isForeignFiscalWeekRow as $, fiscalPeriodForWeek as L } from "./calendar-week-utils.js";
18
+ import { FiscalPeriodCaptionSelect as xe } from "./fiscal-period-caption-select.js";
19
+ function I(D, h, d) {
20
+ if (h != null && D)
21
21
  try {
22
- return xe(h, f).periods;
22
+ return ue(D, h).periods;
23
23
  } catch {
24
24
  }
25
- return l ?? [];
25
+ return d ?? [];
26
26
  }
27
- function K(h, f, l) {
28
- const S = h.days[0]?.date, m = h.days[h.days.length - 1]?.date;
29
- return !S || !m ? !1 : De(S, m, f, l);
30
- }
31
- function Je({
32
- buttonVariant: h,
33
- pickerType: f,
34
- calendarKind: l,
35
- granularity: S,
36
- currentMonth: m,
37
- monthsFull: A,
38
- monthsShort: ee,
39
- resolvedStartMonth: te,
40
- resolvedEndMonth: oe,
41
- availableYears: Y,
42
- fiscalPeriods: F,
27
+ function ze({
28
+ buttonVariant: D,
29
+ pickerType: h,
30
+ calendarKind: d,
31
+ currentMonth: x,
32
+ monthsFull: g,
33
+ monthsShort: T,
34
+ resolvedStartMonth: V,
35
+ resolvedEndMonth: K,
36
+ availableYears: C,
37
+ fiscalPeriods: S,
43
38
  fiscalConfig: W,
44
- weekStartsOn: ne,
45
- previousMonthLabel: B,
46
- nextMonthLabel: j,
47
- monthPlaceholder: O,
48
- yearPlaceholder: re,
49
- weekNumberLabel: ie,
50
- weekNumberHeader: R,
51
- weekLabel: se,
52
- fiscalWeekNumberLabel: ae,
53
- fiscalWeekAriaLabel: le,
54
- getCellMeta: d,
55
- onMonthChange: P,
56
- onWeekSelect: z,
57
- periodRowHover: _ = !1,
58
- weekMode: E = "single",
59
- showPeriodBoundaries: ce = !1,
60
- disabled: w,
61
- components: de
39
+ weekStartsOn: ee,
40
+ previousMonthLabel: A,
41
+ nextMonthLabel: Y,
42
+ monthPlaceholder: j,
43
+ yearPlaceholder: te,
44
+ weekNumberLabel: oe,
45
+ weekNumberHeader: O,
46
+ weekLabel: ne,
47
+ fiscalWeekNumberLabel: re,
48
+ fiscalWeekAriaLabel: ie,
49
+ getCellMeta: c,
50
+ onMonthChange: k,
51
+ onWeekSelect: R,
52
+ periodRowHover: z = !1,
53
+ weekMode: B = "single",
54
+ showPeriodBoundaries: se = !1,
55
+ components: ae
62
56
  }) {
63
- function G(e) {
64
- if (l !== "fiscal") return;
65
- const t = N(m, e);
66
- return $(
67
- C(
57
+ function _(e) {
58
+ if (d !== "fiscal") return;
59
+ const t = N(x, e);
60
+ return X(
61
+ I(
68
62
  W,
69
- d?.(g(t))?.fy ?? d?.(t)?.fy,
70
- F
63
+ c?.(F(t))?.fy ?? c?.(t)?.fy,
64
+ S
71
65
  ),
72
66
  t.getFullYear(),
73
67
  t.getMonth()
@@ -76,231 +70,226 @@ function Je({
76
70
  return {
77
71
  Root: ({ className: e, rootRef: t, ...o }) => /* @__PURE__ */ i("div", { "data-slot": "calendar", ref: t, className: y(e), ...o }),
78
72
  Chevron: ({ className: e, orientation: t, ...o }) => t === "left" ? /* @__PURE__ */ i(
79
- Q,
73
+ J,
80
74
  {
81
75
  size: 16,
82
76
  className: y("rotate-180 text-content", e),
83
77
  ...o
84
78
  }
85
- ) : t === "right" ? /* @__PURE__ */ i(Q, { size: 16, className: y("text-content", e), ...o }) : /* @__PURE__ */ i("span", {}),
79
+ ) : t === "right" ? /* @__PURE__ */ i(J, { size: 16, className: y("text-content", e), ...o }) : /* @__PURE__ */ i("span", {}),
86
80
  PreviousMonthButton: (e) => /* @__PURE__ */ i(
87
- U,
81
+ M,
88
82
  {
89
- variant: h,
83
+ variant: D,
90
84
  size: "icon",
91
85
  className: "h-7 w-7",
92
- "aria-label": B,
93
- title: B,
86
+ "aria-label": A,
87
+ title: A,
94
88
  ...e
95
89
  }
96
90
  ),
97
91
  NextMonthButton: (e) => /* @__PURE__ */ i(
98
- U,
92
+ M,
99
93
  {
100
- variant: h,
94
+ variant: D,
101
95
  size: "icon",
102
96
  className: "h-7 w-7",
103
- "aria-label": j,
104
- title: j,
97
+ "aria-label": Y,
98
+ title: Y,
105
99
  ...e
106
100
  }
107
101
  ),
108
102
  MonthCaption: ({ displayIndex: e, calendarMonth: t, ...o }) => /* @__PURE__ */ i("div", { ...o }),
109
103
  Month: ({ calendarMonth: e, displayIndex: t, className: o, children: r, ...s }) => {
110
- const c = k.Children.toArray(r), p = c[c.length - 1], a = c.slice(0, -1);
111
- return /* @__PURE__ */ i(D.Provider, { value: t, children: /* @__PURE__ */ M("div", { className: y(o), ...s, children: [
112
- a.length > 0 ? /* @__PURE__ */ i(me, { children: a }) : null,
113
- p
104
+ const l = v.Children.toArray(r), f = l[l.length - 1], a = l.slice(0, -1);
105
+ return /* @__PURE__ */ i(P.Provider, { value: t, children: /* @__PURE__ */ q("div", { className: y(o), ...s, children: [
106
+ a.length > 0 ? /* @__PURE__ */ i(ce, { children: a }) : null,
107
+ f
114
108
  ] }) });
115
109
  },
116
110
  Months: ({ className: e, children: t, ...o }) => /* @__PURE__ */ i(
117
111
  "div",
118
112
  {
119
113
  "data-slot": "day-months",
120
- "data-period-row-hover": _ ? "true" : void 0,
121
- "data-week-gutter-track": f === "week" ? "true" : void 0,
114
+ "data-period-row-hover": z ? "true" : void 0,
115
+ "data-week-gutter-track": h === "week" ? "true" : void 0,
122
116
  className: y(e),
123
117
  ...o,
124
118
  children: t
125
119
  }
126
120
  ),
127
121
  DropdownNav: ({ children: e, className: t, ...o }) => {
128
- if (l !== "fiscal")
122
+ if (d !== "fiscal")
129
123
  return /* @__PURE__ */ i("div", { className: t, ...o, children: e });
130
- const r = k.Children.toArray(e), s = (n) => k.isValidElement(n) && n.key != null ? String(n.key) : "", c = r.find((n) => s(n).endsWith("year")), p = r.find((n) => s(n).endsWith("month")), a = r.filter((n) => {
131
- const u = s(n);
132
- return !u.endsWith("year") && !u.endsWith("month");
124
+ const r = v.Children.toArray(e), s = (n) => v.isValidElement(n) && n.key != null ? String(n.key) : "", l = r.find((n) => s(n).endsWith("year")), f = r.find((n) => s(n).endsWith("month")), a = r.filter((n) => {
125
+ const m = s(n);
126
+ return !m.endsWith("year") && !m.endsWith("month");
133
127
  });
134
- return /* @__PURE__ */ M("div", { className: t, ...o, children: [
135
- c,
136
- p,
128
+ return /* @__PURE__ */ q("div", { className: t, ...o, children: [
129
+ l,
130
+ f,
137
131
  a
138
132
  ] });
139
133
  },
140
134
  MonthsDropdown: ({ value: e }) => {
141
- const t = k.useContext(D), o = t > 0, r = N(m, t), s = r.getFullYear();
142
- if (l === "fiscal" && W) {
143
- const a = d?.(g(r)) ?? d?.(r), n = C(W, a?.fy, F), u = Pe(n, w), v = $(
135
+ const t = v.useContext(P), o = t > 0, r = N(x, t), s = r.getFullYear();
136
+ if (d === "fiscal" && W) {
137
+ const a = c?.(F(r)) ?? c?.(r), n = I(W, a?.fy, S), m = X(
144
138
  n,
145
139
  r.getFullYear(),
146
140
  r.getMonth()
147
141
  );
148
142
  return /* @__PURE__ */ i(
149
- be,
143
+ xe,
150
144
  {
151
- periods: u,
152
- selectedPeriod: v,
153
- placeholder: O,
154
- onPeriodChange: (x) => {
155
- P(Z(x, o));
145
+ periods: n,
146
+ selectedPeriod: m,
147
+ placeholder: j,
148
+ onPeriodChange: (u) => {
149
+ k(U(u, o));
156
150
  }
157
151
  }
158
152
  );
159
153
  }
160
- const p = ye(
154
+ const f = pe(
161
155
  s,
162
- A,
163
- te,
164
- oe
156
+ g,
157
+ V,
158
+ K
165
159
  );
166
160
  return /* @__PURE__ */ i(
167
- X,
161
+ Q,
168
162
  {
169
- value: p.find((a) => a.value === e?.toString()),
163
+ value: f.find((a) => a.value === e?.toString()),
170
164
  onChange: (a) => {
171
165
  if (a && "value" in a) {
172
166
  const n = parseInt(a.value);
173
- P(o ? new Date(s, n - 1, 1) : new Date(s, n, 1));
167
+ k(o ? new Date(s, n - 1, 1) : new Date(s, n, 1));
174
168
  }
175
169
  },
176
170
  scrollToSelectedOnOpen: !0,
177
- options: p,
171
+ options: f,
178
172
  className: "w-[116px] shrink-0",
179
173
  menuWidth: "160px",
180
174
  isSearchable: !0,
181
175
  isClearable: !1,
182
- placeholder: O
176
+ placeholder: j
183
177
  }
184
178
  );
185
179
  },
186
180
  YearsDropdown: ({ value: e }) => {
187
- const t = k.useContext(D), o = t > 0, r = l === "fiscal" && W, s = N(m, t), c = r ? d?.(g(s)) ?? d?.(s) : void 0, p = r && c?.fy != null ? String(c.fy) : e?.toString();
181
+ const t = v.useContext(P), o = t > 0, r = d === "fiscal" && W, s = N(x, t), l = r ? c?.(F(s)) ?? c?.(s) : void 0, f = r && l?.fy != null ? String(l.fy) : e?.toString();
188
182
  return /* @__PURE__ */ i(
189
- X,
183
+ Q,
190
184
  {
191
- value: Y.find((n) => n.value === p),
185
+ value: C.find((n) => n.value === f),
192
186
  onChange: (n) => {
193
187
  if (n && "value" in n) {
194
- const u = parseInt(n.value);
188
+ const m = parseInt(n.value);
195
189
  if (r) {
196
- const v = ke({
197
- periods: C(W, u, F),
198
- preferredPeriod: c?.fiscalPeriod,
199
- disabled: w
200
- });
201
- v && P(Z(v, o));
190
+ const u = I(W, m, S), p = u.find((b) => b.period === l?.fiscalPeriod) ?? u[0];
191
+ p && k(U(p, o));
202
192
  return;
203
193
  }
204
194
  if (o) {
205
- const v = new Date(
206
- m.getFullYear(),
207
- m.getMonth() + 1,
195
+ const u = new Date(
196
+ x.getFullYear(),
197
+ x.getMonth() + 1,
208
198
  1
209
199
  ).getMonth();
210
- P(new Date(u, v - 1, 1));
200
+ k(new Date(m, u - 1, 1));
211
201
  } else
212
- P(new Date(u, m.getMonth(), 1));
202
+ k(new Date(m, x.getMonth(), 1));
213
203
  }
214
204
  },
215
205
  scrollToSelectedOnOpen: !0,
216
- options: Y,
206
+ options: C,
217
207
  className: "w-[116px] shrink-0",
218
208
  menuWidth: "140px",
219
209
  isSearchable: !0,
220
210
  isClearable: !1,
221
- placeholder: re
211
+ placeholder: te
222
212
  }
223
213
  );
224
214
  },
225
215
  DayButton: (e) => /* @__PURE__ */ i(
226
- pe,
216
+ de,
227
217
  {
228
218
  ...e,
229
- pickerType: f,
219
+ pickerType: h,
230
220
  modifiers: {
231
221
  ...e.modifiers,
232
- ...ce ? {
233
- fiscal_period_start: !!d?.(e.day.date)?.isPeriodStart,
234
- fiscal_period_end: !!d?.(e.day.date)?.isPeriodEnd
222
+ ...se ? {
223
+ fiscal_period_start: !!c?.(e.day.date)?.isPeriodStart,
224
+ fiscal_period_end: !!c?.(e.day.date)?.isPeriodEnd
235
225
  } : {}
236
226
  }
237
227
  }
238
228
  ),
239
229
  Week: ({ week: e, className: t, children: o, onClick: r, ...s }) => {
240
- const { isSelected: c } = ue(), p = k.useContext(D), a = L(e), n = f === "week", u = V(e, d), v = G(p), x = a || T({
241
- calendarKind: l,
242
- weekPeriod: u,
243
- panePeriod: v
244
- }), fe = _ && !x ? u : void 0, I = n && !x && !K(e, w, S), H = !x && !I && Se(e, c), q = f === "week" && E !== "multiple" && E !== "multi-range" && H ? We(e, c, {
245
- joinAdjacentWeek: l === "fiscal",
246
- panePeriod: v,
247
- periodForDate: (b) => d?.(b)?.fiscalPeriod
230
+ const { isSelected: l } = le(), f = v.useContext(P), a = Z(e), n = h === "week", m = L(e, c), u = _(f), p = a || $({
231
+ calendarKind: d,
232
+ weekPeriod: m,
233
+ panePeriod: u
234
+ }), b = z && !p ? m : void 0, E = !p && he(e, l), G = h === "week" && B !== "multiple" && B !== "multi-range" && E ? ve(e, l, {
235
+ joinAdjacentWeek: d === "fiscal",
236
+ panePeriod: u,
237
+ periodForDate: (w) => c?.(w)?.fiscalPeriod
248
238
  }) : { prev: !1, next: !1 };
249
239
  return /* @__PURE__ */ i(
250
240
  "tr",
251
241
  {
252
242
  className: y(
253
243
  t,
254
- x && "invisible order-last",
255
- n && !x && !I && "cursor-pointer"
244
+ p && "invisible order-last",
245
+ n && !p && "cursor-pointer"
256
246
  ),
257
247
  ...s,
258
- "aria-hidden": x || void 0,
259
- "data-fiscal-period": fe,
260
- "data-week-selected": H ? !0 : void 0,
261
- "data-week-continues-next": q.next || void 0,
262
- "data-week-continues-prev": q.prev || void 0,
263
- onClick: n && !x && !I ? (b) => {
264
- if (r?.(b), b.defaultPrevented) return;
265
- const J = b.target;
266
- J.closest("button") || J.closest("[data-week-number]") || z(e);
248
+ "aria-hidden": p || void 0,
249
+ "data-fiscal-period": b,
250
+ "data-week-selected": E ? !0 : void 0,
251
+ "data-week-continues-next": G.next || void 0,
252
+ "data-week-continues-prev": G.prev || void 0,
253
+ onClick: n && !p ? (w) => {
254
+ if (r?.(w), w.defaultPrevented) return;
255
+ const H = w.target;
256
+ H.closest("button") || H.closest("[data-week-number]") || R(e);
267
257
  } : r,
268
258
  children: o
269
259
  }
270
260
  );
271
261
  },
272
262
  WeekNumber: ({ week: e, ...t }) => {
273
- const o = k.useContext(D), r = L(e) || T({
274
- calendarKind: l,
275
- weekPeriod: V(e, d),
276
- panePeriod: G(o)
263
+ const o = v.useContext(P), r = Z(e) || $({
264
+ calendarKind: d,
265
+ weekPeriod: L(e, c),
266
+ panePeriod: _(o)
277
267
  });
278
268
  return /* @__PURE__ */ i(
279
- he,
269
+ me,
280
270
  {
281
271
  week: e,
282
- weekStartsOn: ne,
283
- pickerType: f,
284
- calendarKind: l,
285
- weekNumberLabel: ie,
286
- weekLabel: se,
287
- fiscalWeekNumberLabel: ae,
288
- fiscalWeekAriaLabel: le,
289
- getCellMeta: d,
290
- onWeekSelect: z,
272
+ weekStartsOn: ee,
273
+ pickerType: h,
274
+ calendarKind: d,
275
+ weekNumberLabel: oe,
276
+ weekLabel: ne,
277
+ fiscalWeekNumberLabel: re,
278
+ fiscalWeekAriaLabel: ie,
279
+ getCellMeta: c,
280
+ onWeekSelect: R,
291
281
  ...t,
292
- blank: r,
293
- blocked: f === "week" && !K(e, w, S)
282
+ blank: r
294
283
  }
295
284
  );
296
285
  },
297
286
  WeekNumberHeader: (e) => {
298
- const t = k.useContext(D), o = ve(l, m, t), r = o === void 0 ? R : ee[o], s = o === void 0 ? R : A[o];
287
+ const t = v.useContext(P), o = fe(d, x, t), r = o === void 0 ? O : T[o], s = o === void 0 ? O : g[o];
299
288
  return /* @__PURE__ */ i("th", { ...e, "aria-label": s, children: r });
300
289
  },
301
- ...de
290
+ ...ae
302
291
  };
303
292
  }
304
293
  export {
305
- Je as buildCalendarDayPickerComponents
294
+ ze as buildCalendarDayPickerComponents
306
295
  };