impact-nova 2.5.7 → 2.5.8

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 (148) hide show
  1. package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +2 -2
  2. package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +4 -2
  3. package/dist/components/data/ag-grid-react/headers/header-search-input.js +65 -65
  4. package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +55 -48
  5. package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +4 -2
  6. package/dist/components/data-display/calendar/calendar-apply-validation.js +80 -61
  7. package/dist/components/data-display/calendar/calendar-config.d.ts +13 -5
  8. package/dist/components/data-display/calendar/calendar-config.js +31 -20
  9. package/dist/components/data-display/calendar/calendar-day-button.js +43 -35
  10. package/dist/components/data-display/calendar/calendar-day-hover.d.ts +8 -0
  11. package/dist/components/data-display/calendar/calendar-day-hover.js +20 -0
  12. package/dist/components/data-display/calendar/calendar-day-picker-classnames.d.ts +8 -1
  13. package/dist/components/data-display/calendar/calendar-day-picker-classnames.js +40 -20
  14. package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +12 -1
  15. package/dist/components/data-display/calendar/calendar-day-picker-components.js +201 -108
  16. package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +11 -3
  17. package/dist/components/data-display/calendar/calendar-day-picker-view.js +136 -92
  18. package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +38 -0
  19. package/dist/components/data-display/calendar/calendar-fiscal-labels.js +90 -0
  20. package/dist/components/data-display/calendar/calendar-footer-summary.d.ts +13 -4
  21. package/dist/components/data-display/calendar/calendar-footer-summary.js +101 -50
  22. package/dist/components/data-display/calendar/calendar-footer.d.ts +16 -7
  23. package/dist/components/data-display/calendar/calendar-footer.js +88 -66
  24. package/dist/components/data-display/calendar/calendar-gregorian-presets.d.ts +2 -0
  25. package/dist/components/data-display/calendar/calendar-gregorian-presets.js +26 -0
  26. package/dist/components/data-display/calendar/calendar-interval-caption.d.ts +1 -0
  27. package/dist/components/data-display/calendar/calendar-interval-caption.js +10 -0
  28. package/dist/components/data-display/calendar/calendar-interval-utils.d.ts +23 -0
  29. package/dist/components/data-display/calendar/calendar-interval-utils.js +154 -0
  30. package/dist/components/data-display/calendar/calendar-month-panes.d.ts +5 -1
  31. package/dist/components/data-display/calendar/calendar-month-panes.js +9 -7
  32. package/dist/components/data-display/calendar/calendar-month-picker-panel.d.ts +5 -1
  33. package/dist/components/data-display/calendar/calendar-month-picker-panel.js +76 -77
  34. package/dist/components/data-display/calendar/calendar-month-utils.d.ts +2 -0
  35. package/dist/components/data-display/calendar/calendar-month-utils.js +69 -60
  36. package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +15 -0
  37. package/dist/components/data-display/calendar/calendar-padding-week.utils.js +22 -3
  38. package/dist/components/data-display/calendar/calendar-panel-context.d.ts +1 -1
  39. package/dist/components/data-display/calendar/calendar-period-cell.d.ts +18 -0
  40. package/dist/components/data-display/calendar/calendar-period-cell.js +89 -0
  41. package/dist/components/data-display/calendar/calendar-period-keyboard.d.ts +2 -0
  42. package/dist/components/data-display/calendar/calendar-period-keyboard.js +18 -0
  43. package/dist/components/data-display/calendar/calendar-preset-strip.d.ts +6 -0
  44. package/dist/components/data-display/calendar/calendar-preset-strip.js +26 -0
  45. package/dist/components/data-display/calendar/calendar-quarter-panes.d.ts +24 -0
  46. package/dist/components/data-display/calendar/calendar-quarter-panes.js +115 -0
  47. package/dist/components/data-display/calendar/calendar-quarter-utils.d.ts +19 -0
  48. package/dist/components/data-display/calendar/calendar-quarter-utils.js +95 -0
  49. package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +38 -0
  50. package/dist/components/data-display/calendar/calendar-selection-appearance.js +72 -0
  51. package/dist/components/data-display/calendar/calendar-selection.d.ts +20 -0
  52. package/dist/components/data-display/calendar/calendar-selection.js +31 -0
  53. package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +6 -1
  54. package/dist/components/data-display/calendar/calendar-week-number-cell.js +53 -38
  55. package/dist/components/data-display/calendar/calendar-week-number-header.d.ts +4 -0
  56. package/dist/components/data-display/calendar/calendar-week-number-header.js +15 -0
  57. package/dist/components/data-display/calendar/calendar-week-utils.d.ts +11 -3
  58. package/dist/components/data-display/calendar/calendar-week-utils.js +49 -42
  59. package/dist/components/data-display/calendar/calendar-year-panes.d.ts +18 -0
  60. package/dist/components/data-display/calendar/calendar-year-panes.js +98 -0
  61. package/dist/components/data-display/calendar/calendar-year-utils.d.ts +17 -0
  62. package/dist/components/data-display/calendar/calendar-year-utils.js +75 -0
  63. package/dist/components/data-display/calendar/calendar.d.ts +1 -1
  64. package/dist/components/data-display/calendar/calendar.js +303 -181
  65. package/dist/components/data-display/calendar/calendar.types.d.ts +53 -16
  66. package/dist/components/data-display/calendar/fiscal-period-caption-select.d.ts +7 -0
  67. package/dist/components/data-display/calendar/fiscal-period-caption-select.js +63 -0
  68. package/dist/components/data-display/calendar/index.d.ts +1 -1
  69. package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +12 -2
  70. package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +92 -62
  71. package/dist/components/data-display/calendar/use-calendar-state.d.ts +31 -11
  72. package/dist/components/data-display/calendar/use-calendar-state.js +370 -163
  73. package/dist/components/data-display/calendar/use-fiscal-calendar.d.ts +5 -0
  74. package/dist/components/data-display/calendar/use-fiscal-calendar.js +24 -0
  75. package/dist/components/feedback/tooltip/overflow-tooltip.js +57 -57
  76. package/dist/components/forms/date-picker/date-input-behavior.d.ts +7 -0
  77. package/dist/components/forms/date-picker/date-input-behavior.js +28 -24
  78. package/dist/components/forms/date-picker/date-picker-shell.d.ts +13 -0
  79. package/dist/components/forms/date-picker/date-picker-shell.js +31 -0
  80. package/dist/components/forms/date-picker/date-picker.js +187 -167
  81. package/dist/components/forms/date-picker/date-picker.types.d.ts +90 -43
  82. package/dist/components/forms/date-picker/date-range-picker.js +273 -224
  83. package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +13 -0
  84. package/dist/components/forms/date-picker/fiscal-pass-through.js +17 -0
  85. package/dist/components/forms/date-picker/fiscal-period-format.d.ts +9 -0
  86. package/dist/components/forms/date-picker/fiscal-period-format.js +50 -0
  87. package/dist/components/forms/date-picker/index.d.ts +12 -0
  88. package/dist/components/forms/date-picker/index.js +19 -7
  89. package/dist/components/forms/date-picker/month-picker.js +225 -182
  90. package/dist/components/forms/date-picker/month-range-picker.js +134 -110
  91. package/dist/components/forms/date-picker/multi-date-picker.js +77 -56
  92. package/dist/components/forms/date-picker/multi-month-picker.js +78 -57
  93. package/dist/components/forms/date-picker/multi-quarter-picker.d.ts +3 -0
  94. package/dist/components/forms/date-picker/multi-quarter-picker.js +177 -0
  95. package/dist/components/forms/date-picker/multi-week-picker.js +81 -70
  96. package/dist/components/forms/date-picker/multi-year-picker.d.ts +3 -0
  97. package/dist/components/forms/date-picker/multi-year-picker.js +179 -0
  98. package/dist/components/forms/date-picker/quarter-picker.d.ts +3 -0
  99. package/dist/components/forms/date-picker/quarter-picker.js +176 -0
  100. package/dist/components/forms/date-picker/quarter-range-picker.d.ts +3 -0
  101. package/dist/components/forms/date-picker/quarter-range-picker.js +177 -0
  102. package/dist/components/forms/date-picker/week-picker.js +148 -137
  103. package/dist/components/forms/date-picker/week-range-picker.js +216 -205
  104. package/dist/components/forms/date-picker/year-picker.d.ts +3 -0
  105. package/dist/components/forms/date-picker/year-picker.js +176 -0
  106. package/dist/components/forms/date-picker/year-range-picker.d.ts +3 -0
  107. package/dist/components/forms/date-picker/year-range-picker.js +179 -0
  108. package/dist/form-react/Fields/DateInputField.js +63 -58
  109. package/dist/form-react/Fields/DateRangeField.js +42 -37
  110. package/dist/form-react/Fields/MonthRangeField.js +50 -45
  111. package/dist/form-react/Fields/MultiWeekPickerField.js +7 -7
  112. package/dist/form-react/Fields/WeekRangePicker.js +44 -45
  113. package/dist/form-react/components/FieldRenderer.js +21 -23
  114. package/dist/form-react/registry/defaultFieldRegistrations.d.ts +9 -1
  115. package/dist/form-react/registry/defaultFieldRegistrations.js +27 -36
  116. package/dist/form-react/registry/resolveFieldComponent.d.ts +3 -2
  117. package/dist/form-react/registry/resolveFieldComponent.js +9 -133
  118. package/dist/form-react/types/fields.types.d.ts +19 -4
  119. package/dist/form-react/utils/date.utils.d.ts +1 -1
  120. package/dist/form-react/utils/date.utils.js +38 -38
  121. package/dist/i18n/defaultMessages.d.ts +19 -1
  122. package/dist/i18n/defaultMessages.js +37 -20
  123. package/dist/i18n/locales/de.js +18 -1
  124. package/dist/i18n/locales/es.js +18 -1
  125. package/dist/i18n/locales/hi.js +18 -1
  126. package/dist/i18n/locales/kn.js +18 -1
  127. package/dist/impact-nova-components.css +379 -3
  128. package/dist/impact-nova.css +1 -1
  129. package/dist/index.js +528 -516
  130. package/dist/lib/fiscal-calendar/build-year.d.ts +8 -0
  131. package/dist/lib/fiscal-calendar/build-year.js +173 -0
  132. package/dist/lib/fiscal-calendar/civil-date.d.ts +21 -0
  133. package/dist/lib/fiscal-calendar/civil-date.js +94 -0
  134. package/dist/lib/fiscal-calendar/index.d.ts +10 -0
  135. package/dist/lib/fiscal-calendar/index.js +40 -0
  136. package/dist/lib/fiscal-calendar/lookup.d.ts +4 -0
  137. package/dist/lib/fiscal-calendar/lookup.js +70 -0
  138. package/dist/lib/fiscal-calendar/presets.d.ts +8 -0
  139. package/dist/lib/fiscal-calendar/presets.js +99 -0
  140. package/dist/lib/fiscal-calendar/selection.d.ts +18 -0
  141. package/dist/lib/fiscal-calendar/selection.js +32 -0
  142. package/dist/lib/fiscal-calendar/types.d.ts +145 -0
  143. package/dist/lib/fiscal-calendar/types.js +10 -0
  144. package/dist/lib/fiscal-calendar/week-selection.d.ts +22 -0
  145. package/dist/lib/fiscal-calendar/week-selection.js +107 -0
  146. package/package.json +5 -1
  147. package/dist/lib/fiscal-calendar.d.ts +0 -62
  148. package/dist/lib/fiscal-calendar.js +0 -99
@@ -1,92 +1,92 @@
1
- import { jsx as n, jsxs as A } from "react/jsx-runtime";
2
- import { cn as b } from "../../../lib/utils.js";
3
- import { Tooltip as G, TooltipTrigger as H, TooltipContent as R } from "./tooltip.js";
4
- import { useOverflowTooltip as q } from "./use-overflow-tooltip.js";
5
- function M({
1
+ import { jsx as n, jsxs as G } from "react/jsx-runtime";
2
+ import { cn as m } from "../../../lib/utils.js";
3
+ import { Tooltip as H, TooltipTrigger as R, TooltipContent as q } from "./tooltip.js";
4
+ import { useOverflowTooltip as z } from "./use-overflow-tooltip.js";
5
+ function N({
6
6
  children: o,
7
7
  content: i,
8
- overflowMode: m = "ellipsis",
9
- side: P = "top",
8
+ overflowMode: P = "ellipsis",
9
+ side: x = "top",
10
10
  align: l,
11
11
  variant: s,
12
12
  className: t,
13
13
  triggerClassName: r,
14
- as: x = "span",
15
- alwaysShow: C = !1,
14
+ as: C = "span",
15
+ alwaysShow: w = !1,
16
16
  disabled: p = !1,
17
- focusable: w = !1
17
+ focusable: d = !1
18
18
  }) {
19
- const a = x, d = i ?? o, {
20
- setTriggerRef: v,
21
- onTriggerPointerEnter: h,
22
- onTriggerPointerLeave: L,
23
- onTriggerFocus: E,
24
- onContentPointerEnter: O,
25
- onContentPointerDown: F,
26
- onContentPointerLeave: k,
27
- onContentPointerUp: y,
28
- triggerTabIndex: D,
19
+ const a = C, v = i ?? o, {
20
+ setTriggerRef: h,
21
+ onTriggerPointerEnter: L,
22
+ onTriggerPointerLeave: E,
23
+ onTriggerFocus: O,
24
+ onContentPointerEnter: F,
25
+ onContentPointerDown: k,
26
+ onContentPointerLeave: y,
27
+ onContentPointerUp: D,
28
+ triggerTabIndex: I,
29
29
  isTooltipArmed: c,
30
- isTooltipOpen: I,
31
- tooltipContent: j,
32
- handleTooltipOpenChange: U
33
- } = q(o, {
30
+ isTooltipOpen: j,
31
+ tooltipContent: U,
32
+ handleTooltipOpenChange: $
33
+ } = z(o, {
34
34
  content: i,
35
- overflowMode: m,
36
- alwaysShow: C,
35
+ overflowMode: P,
36
+ alwaysShow: w,
37
37
  disabled: p,
38
- focusable: w,
39
- contentDependency: d
38
+ focusable: d,
39
+ contentDependency: v
40
40
  }), e = `${r ?? ""} ${t ?? ""}`, f = /\btruncate\b/.test(e), g = /\b(inline-block|inline-flex|inline)\b/.test(
41
41
  e
42
- ), T = /\bflex\b/.test(e), u = /\bflex-1\b/.test(e), $ = b(
42
+ ), T = /\bflex\b/.test(e), u = /\bflex-1\b/.test(e), A = m(
43
43
  "outline-none min-w-0 max-w-full",
44
44
  f && !g && !T && !u && "block w-full",
45
45
  f && !g && !T && u && "block",
46
46
  r,
47
47
  t
48
+ ), b = /* @__PURE__ */ n(
49
+ a,
50
+ {
51
+ ref: h,
52
+ "data-component": "overflow-tooltip-trigger",
53
+ className: A,
54
+ onPointerEnter: L,
55
+ onPointerLeave: E,
56
+ tabIndex: I,
57
+ onFocus: O,
58
+ children: o
59
+ }
48
60
  );
49
- return p ? /* @__PURE__ */ n(a, { className: b(r, t), children: o }) : /* @__PURE__ */ A(
50
- G,
61
+ return p ? /* @__PURE__ */ n(a, { className: m(r, t), children: o }) : c ? /* @__PURE__ */ G(
62
+ H,
51
63
  {
52
64
  disableHoverableContent: !1,
53
- open: c && I,
54
- onOpenChange: U,
65
+ open: c && j,
66
+ onOpenChange: $,
55
67
  children: [
56
- /* @__PURE__ */ n(H, { asChild: !0, children: /* @__PURE__ */ n(
57
- a,
68
+ /* @__PURE__ */ n(R, { asChild: !0, children: b }),
69
+ /* @__PURE__ */ n(
70
+ q,
58
71
  {
59
- ref: v,
60
- "data-component": "overflow-tooltip-trigger",
61
- className: $,
62
- onPointerEnter: h,
63
- onPointerLeave: L,
64
- tabIndex: D,
65
- onFocus: E,
66
- children: o
67
- }
68
- ) }),
69
- c ? /* @__PURE__ */ n(
70
- R,
71
- {
72
- side: P,
72
+ side: x,
73
73
  ...l ? { align: l } : {},
74
74
  ...s ? { variant: s } : {},
75
- onPointerEnter: O,
76
- onPointerLeave: k,
75
+ onPointerEnter: F,
76
+ onPointerLeave: y,
77
77
  onPointerDown: () => {
78
- F();
78
+ k();
79
79
  },
80
80
  onPointerUp: () => {
81
- y();
81
+ D();
82
82
  },
83
- children: j
83
+ children: U
84
84
  }
85
- ) : null
85
+ )
86
86
  ]
87
87
  }
88
- );
88
+ ) : b;
89
89
  }
90
90
  export {
91
- M as OverflowTooltip
91
+ N as OverflowTooltip
92
92
  };
@@ -34,6 +34,13 @@ export interface PickerSurfacePointerDownOptions {
34
34
  onOpen: () => void;
35
35
  focusField?: (field: PickerSurfaceField) => void;
36
36
  }
37
+ export declare function handleReadonlyPickerKeyDown(event: React.KeyboardEvent, options: {
38
+ disabled?: boolean | null;
39
+ open: boolean;
40
+ onOpen: () => void;
41
+ onCancel: () => void;
42
+ onKeyboardOpen?: () => void;
43
+ }): void;
37
44
  /** Opens the picker when clicking dead zones on the field shell (padding, gaps, icon gutter). */
38
45
  export declare function handlePickerSurfacePointerDown({ disabled, event, onOpen, focusField, }: PickerSurfacePointerDownOptions): void;
39
46
  /** Block Radix outside-dismiss when the calendar footer requires explicit Apply/Cancel. */
@@ -1,12 +1,12 @@
1
1
  import { parse as h, isValid as D } from "date-fns";
2
2
  import * as d from "react";
3
- import { resolveRangeFooterFlashTarget as v } from "../../data-display/calendar/calendar-footer-emphasis.js";
4
- import { padValidDateString as y, maskDate as k } from "../../../lib/utils.js";
5
- function T(e, t, n) {
3
+ import { resolveRangeFooterFlashTarget as y } from "../../data-display/calendar/calendar-footer-emphasis.js";
4
+ import { padValidDateString as v, maskDate as k } from "../../../lib/utils.js";
5
+ function I(e, t, n) {
6
6
  return k(e, t, n);
7
7
  }
8
8
  function f(e, t, n) {
9
- const r = y(e, t), s = h(r, t, /* @__PURE__ */ new Date(), n ? { locale: n } : {}), a = D(s) && r.length === t.length;
9
+ const r = v(e, t), s = h(r, t, /* @__PURE__ */ new Date(), n ? { locale: n } : {}), a = D(s) && r.length === t.length;
10
10
  return {
11
11
  padded: r,
12
12
  parsed: a ? s : void 0,
@@ -14,7 +14,7 @@ function f(e, t, n) {
14
14
  isValid: a
15
15
  };
16
16
  }
17
- function C(e, t, n) {
17
+ function T(e, t, n) {
18
18
  return !e || e.length !== t.length ? !1 : !f(e, t, n).isValid;
19
19
  }
20
20
  function m(e, t) {
@@ -42,7 +42,10 @@ function O(e, t) {
42
42
  const n = e.target;
43
43
  return n instanceof Node ? !!t.current?.contains(n) : !1;
44
44
  }
45
- function V({
45
+ function V(e, t) {
46
+ t.disabled || (e.key === "ArrowDown" && !t.open && (e.preventDefault(), t.onKeyboardOpen?.(), t.onOpen()), e.key === "Escape" && t.open && (e.preventDefault(), t.onCancel()));
47
+ }
48
+ function b({
46
49
  disabled: e,
47
50
  event: t,
48
51
  onOpen: n,
@@ -74,11 +77,11 @@ function F(e, t, n, r) {
74
77
  } : void 0
75
78
  } : {};
76
79
  }
77
- function b(e, t, n) {
80
+ function B(e, t, n) {
78
81
  const r = e == null, s = t == null;
79
82
  return r && s || !r && !s && n(e, t) ? "dismiss" : r ? "cancel" : "apply";
80
83
  }
81
- function B(e) {
84
+ function q(e) {
82
85
  const {
83
86
  startInput: t,
84
87
  endInput: n,
@@ -89,18 +92,18 @@ function B(e) {
89
92
  computeEffectiveRange: u,
90
93
  rangesEqual: o
91
94
  } = e, c = t !== r || n !== s, l = u(), p = !c && i !== void 0 ? i : l, g = !o(p, a);
92
- return !c && !g ? "dismiss" : v(
95
+ return !c && !g ? "dismiss" : y(
93
96
  c ? l : p
94
97
  ) === "apply" ? "apply" : "cancel";
95
98
  }
96
- function q() {
99
+ function M() {
97
100
  return d.useRef({
98
101
  onDismiss: () => {
99
102
  },
100
103
  resolveFlash: () => "cancel"
101
104
  });
102
105
  }
103
- function M(e, t, n, r) {
106
+ function K(e, t, n, r) {
104
107
  const [s, a] = d.useState({ key: 0, target: "cancel" }), i = d.useRef(t);
105
108
  d.useLayoutEffect(() => {
106
109
  i.current !== t && (i.current = t, a({ key: 0, target: "cancel" }));
@@ -152,13 +155,13 @@ function x(e, t, n) {
152
155
  function H(e, t, n) {
153
156
  return e === void 0 || t === void 0 ? { from: e, to: t, swapped: !1 } : n(e, t) <= 0 ? { from: e, to: t, swapped: !1 } : { from: t, to: e, swapped: !0 };
154
157
  }
155
- function K(e, t) {
158
+ function L(e, t) {
156
159
  return e.year * 12 + e.month - (t.year * 12 + t.month);
157
160
  }
158
- function L(e, t) {
161
+ function z(e, t) {
159
162
  return e.getTime() - t.getTime();
160
163
  }
161
- function z(e) {
164
+ function W(e) {
162
165
  if (!e || typeof window < "u" && window.matchMedia("(prefers-reduced-motion: reduce)").matches)
163
166
  return;
164
167
  const t = e.querySelector('[data-field="start"]'), n = e.querySelector('[data-field="end"]');
@@ -173,24 +176,25 @@ function z(e) {
173
176
  ));
174
177
  }
175
178
  export {
176
- L as compareDates,
177
- K as compareMonthSelection,
179
+ z as compareDates,
180
+ L as compareMonthSelection,
178
181
  S as createRangePickerOpenChangeHandler,
179
182
  N as deferRangeInputBlur,
180
- z as flashRangeReorder,
181
- V as handlePickerSurfacePointerDown,
182
- C as isDateInputInvalid,
183
+ W as flashRangeReorder,
184
+ b as handlePickerSurfacePointerDown,
185
+ V as handleReadonlyPickerKeyDown,
186
+ T as isDateInputInvalid,
183
187
  O as isEventOnPickerSurface,
184
188
  m as isFocusInsidePicker,
185
- T as maskDateInput,
189
+ I as maskDateInput,
186
190
  H as normalizeOrderedRange,
187
191
  f as parseDateInput,
188
192
  F as preventOutsideDismissWhenFooter,
189
193
  P as resolveDateInputOnBlur,
190
194
  x as resolveDateInputOnEnter,
191
195
  X as resolveRangeFieldBlur,
192
- B as resolveRangePickerDismissFlash,
193
- b as resolveSingleValueDismissFlash,
194
- q as usePickerDismissActionsRef,
195
- M as usePickerFooterDismissNudge
196
+ q as resolveRangePickerDismissFlash,
197
+ B as resolveSingleValueDismissFlash,
198
+ M as usePickerDismissActionsRef,
199
+ K as usePickerFooterDismissNudge
196
200
  };
@@ -0,0 +1,13 @@
1
+ import { PopoverContent } from '../../feedback/popover';
2
+ import * as React from "react";
3
+ export interface DatePickerShellProps {
4
+ open: boolean;
5
+ disabled?: boolean | null;
6
+ ariaLabel: string;
7
+ onOpenChange: (open: boolean) => void;
8
+ onOpenAutoFocus?: (event: Event) => void;
9
+ popoverHandlers?: React.ComponentProps<typeof PopoverContent>;
10
+ children: React.ReactNode;
11
+ trigger: React.ReactNode;
12
+ }
13
+ export declare function DatePickerShell({ open, disabled, ariaLabel, onOpenChange, onOpenAutoFocus, popoverHandlers, children, trigger, }: DatePickerShellProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,31 @@
1
+ import { jsxs as s, jsx as r } from "react/jsx-runtime";
2
+ import "react";
3
+ import { Popover as c, PopoverAnchor as m, PopoverContent as h } from "../../feedback/popover/popover.js";
4
+ function d({
5
+ open: o,
6
+ disabled: e,
7
+ ariaLabel: t,
8
+ onOpenChange: a,
9
+ onOpenAutoFocus: i,
10
+ popoverHandlers: l,
11
+ children: n,
12
+ trigger: p
13
+ }) {
14
+ return /* @__PURE__ */ s(c, { open: e ? !1 : o, onOpenChange: a, children: [
15
+ /* @__PURE__ */ r(m, { asChild: !0, children: p }),
16
+ /* @__PURE__ */ r(
17
+ h,
18
+ {
19
+ className: "w-auto p-0",
20
+ align: "start",
21
+ "aria-label": t,
22
+ onOpenAutoFocus: i,
23
+ ...l,
24
+ children: n
25
+ }
26
+ )
27
+ ] });
28
+ }
29
+ export {
30
+ d as DatePickerShell
31
+ };