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.
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +2 -2
- package/dist/components/data/ag-grid-react/headers/components/date-filter-picker.d.ts +4 -2
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +65 -65
- package/dist/components/data/ag-grid-react/headers/utils/date-utils.js +55 -48
- package/dist/components/data-display/calendar/calendar-apply-validation.d.ts +4 -2
- package/dist/components/data-display/calendar/calendar-apply-validation.js +80 -61
- package/dist/components/data-display/calendar/calendar-config.d.ts +13 -5
- package/dist/components/data-display/calendar/calendar-config.js +31 -20
- package/dist/components/data-display/calendar/calendar-day-button.js +43 -35
- package/dist/components/data-display/calendar/calendar-day-hover.d.ts +8 -0
- package/dist/components/data-display/calendar/calendar-day-hover.js +20 -0
- package/dist/components/data-display/calendar/calendar-day-picker-classnames.d.ts +8 -1
- package/dist/components/data-display/calendar/calendar-day-picker-classnames.js +40 -20
- package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +12 -1
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +201 -108
- package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +11 -3
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +136 -92
- package/dist/components/data-display/calendar/calendar-fiscal-labels.d.ts +38 -0
- package/dist/components/data-display/calendar/calendar-fiscal-labels.js +90 -0
- package/dist/components/data-display/calendar/calendar-footer-summary.d.ts +13 -4
- package/dist/components/data-display/calendar/calendar-footer-summary.js +101 -50
- package/dist/components/data-display/calendar/calendar-footer.d.ts +16 -7
- package/dist/components/data-display/calendar/calendar-footer.js +88 -66
- package/dist/components/data-display/calendar/calendar-gregorian-presets.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-gregorian-presets.js +26 -0
- package/dist/components/data-display/calendar/calendar-interval-caption.d.ts +1 -0
- package/dist/components/data-display/calendar/calendar-interval-caption.js +10 -0
- package/dist/components/data-display/calendar/calendar-interval-utils.d.ts +23 -0
- package/dist/components/data-display/calendar/calendar-interval-utils.js +154 -0
- package/dist/components/data-display/calendar/calendar-month-panes.d.ts +5 -1
- package/dist/components/data-display/calendar/calendar-month-panes.js +9 -7
- package/dist/components/data-display/calendar/calendar-month-picker-panel.d.ts +5 -1
- package/dist/components/data-display/calendar/calendar-month-picker-panel.js +76 -77
- package/dist/components/data-display/calendar/calendar-month-utils.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-month-utils.js +69 -60
- package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +15 -0
- package/dist/components/data-display/calendar/calendar-padding-week.utils.js +22 -3
- package/dist/components/data-display/calendar/calendar-panel-context.d.ts +1 -1
- package/dist/components/data-display/calendar/calendar-period-cell.d.ts +18 -0
- package/dist/components/data-display/calendar/calendar-period-cell.js +89 -0
- package/dist/components/data-display/calendar/calendar-period-keyboard.d.ts +2 -0
- package/dist/components/data-display/calendar/calendar-period-keyboard.js +18 -0
- package/dist/components/data-display/calendar/calendar-preset-strip.d.ts +6 -0
- package/dist/components/data-display/calendar/calendar-preset-strip.js +26 -0
- package/dist/components/data-display/calendar/calendar-quarter-panes.d.ts +24 -0
- package/dist/components/data-display/calendar/calendar-quarter-panes.js +115 -0
- package/dist/components/data-display/calendar/calendar-quarter-utils.d.ts +19 -0
- package/dist/components/data-display/calendar/calendar-quarter-utils.js +95 -0
- package/dist/components/data-display/calendar/calendar-selection-appearance.d.ts +38 -0
- package/dist/components/data-display/calendar/calendar-selection-appearance.js +72 -0
- package/dist/components/data-display/calendar/calendar-selection.d.ts +20 -0
- package/dist/components/data-display/calendar/calendar-selection.js +31 -0
- package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +6 -1
- package/dist/components/data-display/calendar/calendar-week-number-cell.js +53 -38
- package/dist/components/data-display/calendar/calendar-week-number-header.d.ts +4 -0
- package/dist/components/data-display/calendar/calendar-week-number-header.js +15 -0
- package/dist/components/data-display/calendar/calendar-week-utils.d.ts +11 -3
- package/dist/components/data-display/calendar/calendar-week-utils.js +49 -42
- package/dist/components/data-display/calendar/calendar-year-panes.d.ts +18 -0
- package/dist/components/data-display/calendar/calendar-year-panes.js +98 -0
- package/dist/components/data-display/calendar/calendar-year-utils.d.ts +17 -0
- package/dist/components/data-display/calendar/calendar-year-utils.js +75 -0
- package/dist/components/data-display/calendar/calendar.d.ts +1 -1
- package/dist/components/data-display/calendar/calendar.js +303 -181
- package/dist/components/data-display/calendar/calendar.types.d.ts +53 -16
- package/dist/components/data-display/calendar/fiscal-period-caption-select.d.ts +7 -0
- package/dist/components/data-display/calendar/fiscal-period-caption-select.js +63 -0
- package/dist/components/data-display/calendar/index.d.ts +1 -1
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +12 -2
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +92 -62
- package/dist/components/data-display/calendar/use-calendar-state.d.ts +31 -11
- package/dist/components/data-display/calendar/use-calendar-state.js +370 -163
- package/dist/components/data-display/calendar/use-fiscal-calendar.d.ts +5 -0
- package/dist/components/data-display/calendar/use-fiscal-calendar.js +24 -0
- package/dist/components/feedback/tooltip/overflow-tooltip.js +57 -57
- package/dist/components/forms/date-picker/date-input-behavior.d.ts +7 -0
- package/dist/components/forms/date-picker/date-input-behavior.js +28 -24
- package/dist/components/forms/date-picker/date-picker-shell.d.ts +13 -0
- package/dist/components/forms/date-picker/date-picker-shell.js +31 -0
- package/dist/components/forms/date-picker/date-picker.js +187 -167
- package/dist/components/forms/date-picker/date-picker.types.d.ts +90 -43
- package/dist/components/forms/date-picker/date-range-picker.js +273 -224
- package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +13 -0
- package/dist/components/forms/date-picker/fiscal-pass-through.js +17 -0
- package/dist/components/forms/date-picker/fiscal-period-format.d.ts +9 -0
- package/dist/components/forms/date-picker/fiscal-period-format.js +50 -0
- package/dist/components/forms/date-picker/index.d.ts +12 -0
- package/dist/components/forms/date-picker/index.js +19 -7
- package/dist/components/forms/date-picker/month-picker.js +225 -182
- package/dist/components/forms/date-picker/month-range-picker.js +134 -110
- package/dist/components/forms/date-picker/multi-date-picker.js +77 -56
- package/dist/components/forms/date-picker/multi-month-picker.js +78 -57
- package/dist/components/forms/date-picker/multi-quarter-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/multi-quarter-picker.js +177 -0
- package/dist/components/forms/date-picker/multi-week-picker.js +81 -70
- package/dist/components/forms/date-picker/multi-year-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/multi-year-picker.js +179 -0
- package/dist/components/forms/date-picker/quarter-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/quarter-picker.js +176 -0
- package/dist/components/forms/date-picker/quarter-range-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/quarter-range-picker.js +177 -0
- package/dist/components/forms/date-picker/week-picker.js +148 -137
- package/dist/components/forms/date-picker/week-range-picker.js +216 -205
- package/dist/components/forms/date-picker/year-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/year-picker.js +176 -0
- package/dist/components/forms/date-picker/year-range-picker.d.ts +3 -0
- package/dist/components/forms/date-picker/year-range-picker.js +179 -0
- package/dist/form-react/Fields/DateInputField.js +63 -58
- package/dist/form-react/Fields/DateRangeField.js +42 -37
- package/dist/form-react/Fields/MonthRangeField.js +50 -45
- package/dist/form-react/Fields/MultiWeekPickerField.js +7 -7
- package/dist/form-react/Fields/WeekRangePicker.js +44 -45
- package/dist/form-react/components/FieldRenderer.js +21 -23
- package/dist/form-react/registry/defaultFieldRegistrations.d.ts +9 -1
- package/dist/form-react/registry/defaultFieldRegistrations.js +27 -36
- package/dist/form-react/registry/resolveFieldComponent.d.ts +3 -2
- package/dist/form-react/registry/resolveFieldComponent.js +9 -133
- package/dist/form-react/types/fields.types.d.ts +19 -4
- package/dist/form-react/utils/date.utils.d.ts +1 -1
- package/dist/form-react/utils/date.utils.js +38 -38
- package/dist/i18n/defaultMessages.d.ts +19 -1
- package/dist/i18n/defaultMessages.js +37 -20
- package/dist/i18n/locales/de.js +18 -1
- package/dist/i18n/locales/es.js +18 -1
- package/dist/i18n/locales/hi.js +18 -1
- package/dist/i18n/locales/kn.js +18 -1
- package/dist/impact-nova-components.css +379 -3
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +528 -516
- package/dist/lib/fiscal-calendar/build-year.d.ts +8 -0
- package/dist/lib/fiscal-calendar/build-year.js +173 -0
- package/dist/lib/fiscal-calendar/civil-date.d.ts +21 -0
- package/dist/lib/fiscal-calendar/civil-date.js +94 -0
- package/dist/lib/fiscal-calendar/index.d.ts +10 -0
- package/dist/lib/fiscal-calendar/index.js +40 -0
- package/dist/lib/fiscal-calendar/lookup.d.ts +4 -0
- package/dist/lib/fiscal-calendar/lookup.js +70 -0
- package/dist/lib/fiscal-calendar/presets.d.ts +8 -0
- package/dist/lib/fiscal-calendar/presets.js +99 -0
- package/dist/lib/fiscal-calendar/selection.d.ts +18 -0
- package/dist/lib/fiscal-calendar/selection.js +32 -0
- package/dist/lib/fiscal-calendar/types.d.ts +145 -0
- package/dist/lib/fiscal-calendar/types.js +10 -0
- package/dist/lib/fiscal-calendar/week-selection.d.ts +22 -0
- package/dist/lib/fiscal-calendar/week-selection.js +107 -0
- package/package.json +5 -1
- package/dist/lib/fiscal-calendar.d.ts +0 -62
- package/dist/lib/fiscal-calendar.js +0 -99
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
import { jsx as n, jsxs as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { Tooltip as
|
|
4
|
-
import { useOverflowTooltip as
|
|
5
|
-
function
|
|
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:
|
|
9
|
-
side:
|
|
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:
|
|
15
|
-
alwaysShow:
|
|
14
|
+
as: C = "span",
|
|
15
|
+
alwaysShow: w = !1,
|
|
16
16
|
disabled: p = !1,
|
|
17
|
-
focusable:
|
|
17
|
+
focusable: d = !1
|
|
18
18
|
}) {
|
|
19
|
-
const a =
|
|
20
|
-
setTriggerRef:
|
|
21
|
-
onTriggerPointerEnter:
|
|
22
|
-
onTriggerPointerLeave:
|
|
23
|
-
onTriggerFocus:
|
|
24
|
-
onContentPointerEnter:
|
|
25
|
-
onContentPointerDown:
|
|
26
|
-
onContentPointerLeave:
|
|
27
|
-
onContentPointerUp:
|
|
28
|
-
triggerTabIndex:
|
|
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:
|
|
31
|
-
tooltipContent:
|
|
32
|
-
handleTooltipOpenChange:
|
|
33
|
-
} =
|
|
30
|
+
isTooltipOpen: j,
|
|
31
|
+
tooltipContent: U,
|
|
32
|
+
handleTooltipOpenChange: $
|
|
33
|
+
} = z(o, {
|
|
34
34
|
content: i,
|
|
35
|
-
overflowMode:
|
|
36
|
-
alwaysShow:
|
|
35
|
+
overflowMode: P,
|
|
36
|
+
alwaysShow: w,
|
|
37
37
|
disabled: p,
|
|
38
|
-
focusable:
|
|
39
|
-
contentDependency:
|
|
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),
|
|
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:
|
|
50
|
-
|
|
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 &&
|
|
54
|
-
onOpenChange:
|
|
65
|
+
open: c && j,
|
|
66
|
+
onOpenChange: $,
|
|
55
67
|
children: [
|
|
56
|
-
/* @__PURE__ */ n(
|
|
57
|
-
|
|
68
|
+
/* @__PURE__ */ n(R, { asChild: !0, children: b }),
|
|
69
|
+
/* @__PURE__ */ n(
|
|
70
|
+
q,
|
|
58
71
|
{
|
|
59
|
-
|
|
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:
|
|
76
|
-
onPointerLeave:
|
|
75
|
+
onPointerEnter: F,
|
|
76
|
+
onPointerLeave: y,
|
|
77
77
|
onPointerDown: () => {
|
|
78
|
-
|
|
78
|
+
k();
|
|
79
79
|
},
|
|
80
80
|
onPointerUp: () => {
|
|
81
|
-
|
|
81
|
+
D();
|
|
82
82
|
},
|
|
83
|
-
children:
|
|
83
|
+
children: U
|
|
84
84
|
}
|
|
85
|
-
)
|
|
85
|
+
)
|
|
86
86
|
]
|
|
87
87
|
}
|
|
88
|
-
);
|
|
88
|
+
) : b;
|
|
89
89
|
}
|
|
90
90
|
export {
|
|
91
|
-
|
|
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
|
|
4
|
-
import { padValidDateString as
|
|
5
|
-
function
|
|
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 =
|
|
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
|
|
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
|
|
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
|
|
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" :
|
|
95
|
+
return !c && !g ? "dismiss" : y(
|
|
93
96
|
c ? l : p
|
|
94
97
|
) === "apply" ? "apply" : "cancel";
|
|
95
98
|
}
|
|
96
|
-
function
|
|
99
|
+
function M() {
|
|
97
100
|
return d.useRef({
|
|
98
101
|
onDismiss: () => {
|
|
99
102
|
},
|
|
100
103
|
resolveFlash: () => "cancel"
|
|
101
104
|
});
|
|
102
105
|
}
|
|
103
|
-
function
|
|
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
|
|
158
|
+
function L(e, t) {
|
|
156
159
|
return e.year * 12 + e.month - (t.year * 12 + t.month);
|
|
157
160
|
}
|
|
158
|
-
function
|
|
161
|
+
function z(e, t) {
|
|
159
162
|
return e.getTime() - t.getTime();
|
|
160
163
|
}
|
|
161
|
-
function
|
|
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
|
-
|
|
177
|
-
|
|
179
|
+
z as compareDates,
|
|
180
|
+
L as compareMonthSelection,
|
|
178
181
|
S as createRangePickerOpenChangeHandler,
|
|
179
182
|
N as deferRangeInputBlur,
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
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
|
+
};
|