impact-nova 2.5.8 → 2.5.10
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/data-table/column-runtime-state-guard.js +42 -42
- package/dist/components/data/data-table/data-table-column-tree-cache.d.ts +15 -0
- package/dist/components/data/data-table/data-table-column-tree-cache.js +109 -80
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +65 -62
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +2 -3
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +2 -3
- package/dist/components/data-display/calendar/calendar-day-picker-classnames.d.ts +6 -1
- package/dist/components/data-display/calendar/calendar-day-picker-classnames.js +31 -23
- package/dist/components/data-display/calendar/calendar-day-picker-components.d.ts +2 -1
- package/dist/components/data-display/calendar/calendar-day-picker-components.js +197 -164
- package/dist/components/data-display/calendar/calendar-day-picker-view.d.ts +3 -2
- package/dist/components/data-display/calendar/calendar-day-picker-view.js +130 -129
- package/dist/components/data-display/calendar/calendar-fiscal-labels.js +6 -6
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.d.ts +16 -0
- package/dist/components/data-display/calendar/calendar-fiscal-period-nav.js +41 -0
- package/dist/components/data-display/calendar/calendar-padding-week.utils.d.ts +5 -1
- package/dist/components/data-display/calendar/calendar-padding-week.utils.js +20 -16
- package/dist/components/data-display/calendar/calendar-week-number-cell.d.ts +2 -1
- package/dist/components/data-display/calendar/calendar-week-number-cell.js +43 -42
- package/dist/components/data-display/calendar/calendar-week-utils.d.ts +6 -0
- package/dist/components/data-display/calendar/calendar-week-utils.js +51 -47
- package/dist/components/data-display/calendar/calendar.js +102 -100
- package/dist/components/data-display/calendar/calendar.types.d.ts +2 -0
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.d.ts +4 -2
- package/dist/components/data-display/calendar/use-calendar-day-picker-config.js +77 -72
- package/dist/components/data-display/calendar/use-fiscal-calendar.js +16 -15
- package/dist/components/feedback/dialog/dialog.js +12 -12
- package/dist/components/feedback/sheet/sheet.js +22 -22
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +2 -3
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/forms/date-picker/calendar-selection-adapters.d.ts +2 -0
- package/dist/components/forms/date-picker/calendar-selection-adapters.js +36 -31
- package/dist/components/forms/date-picker/date-input-behavior.d.ts +10 -0
- package/dist/components/forms/date-picker/date-input-behavior.js +111 -90
- package/dist/components/forms/date-picker/date-picker.js +71 -69
- package/dist/components/forms/date-picker/date-picker.types.d.ts +2 -0
- package/dist/components/forms/date-picker/date-range-picker.js +146 -144
- package/dist/components/forms/date-picker/fiscal-pass-through.d.ts +1 -0
- package/dist/components/forms/date-picker/fiscal-pass-through.js +1 -0
- package/dist/components/forms/date-picker/month-picker.js +82 -80
- package/dist/components/forms/date-picker/month-range-picker.js +145 -143
- package/dist/components/forms/date-picker/multi-date-picker.js +51 -49
- package/dist/components/forms/date-picker/multi-month-picker.js +49 -47
- package/dist/components/forms/date-picker/multi-quarter-picker.js +46 -44
- package/dist/components/forms/date-picker/multi-week-picker.js +53 -51
- package/dist/components/forms/date-picker/multi-year-picker.js +48 -46
- package/dist/components/forms/date-picker/picker-story-layout.d.ts +2 -0
- package/dist/components/forms/date-picker/quarter-picker.js +46 -44
- package/dist/components/forms/date-picker/quarter-range-picker.js +45 -43
- package/dist/components/forms/date-picker/week-picker.js +82 -80
- package/dist/components/forms/date-picker/week-range-picker.js +169 -164
- package/dist/components/forms/date-picker/year-picker.js +47 -45
- package/dist/components/forms/date-picker/year-range-picker.js +47 -45
- package/dist/components/forms/select/components/SelectMenuPanel.js +3 -2
- package/dist/components/forms/select/components/SelectTriggerValue.js +2 -3
- package/dist/components/forms/select/components/Submenu.js +2 -3
- package/dist/components/forms/select/select.js +1 -0
- package/dist/components/forms/smart-input/smart-input.js +106 -85
- package/dist/components/forms/smart-input/smart-input.types.d.ts +5 -0
- package/dist/components/forms/textarea/textarea.js +29 -28
- package/dist/components/forms/textarea/textarea.types.d.ts +1 -0
- package/dist/form-react/Fields/TextField.js +25 -24
- package/dist/form-react/Fields/WeekRangePicker.js +47 -48
- package/dist/form-react/types/fields.types.d.ts +8 -0
- package/dist/impact-nova.css +1 -1
- package/dist/lib/fiscal-calendar/civil-date.js +18 -18
- package/dist/lib/overlay/overlay-portal-context.js +16 -16
- package/dist/llms/rules/best-practices.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/real-world-patterns.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as r, jsxs as y } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import { Cross as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Input as
|
|
6
|
-
import { Calendar as
|
|
3
|
+
import { Cross as X, CalendarMonth as Z } from "impact-nova-icons";
|
|
4
|
+
import { cn as _ } from "../../../lib/utils.js";
|
|
5
|
+
import { Input as $ } from "../input/input.js";
|
|
6
|
+
import { Calendar as ee } from "../../data-display/calendar/calendar.js";
|
|
7
7
|
import { Tooltip as x, TooltipTrigger as R, TooltipContent as D } from "../../feedback/tooltip/tooltip.js";
|
|
8
|
-
import { useImpactNovaI18n as
|
|
9
|
-
import { buildDateBoundsMatcher as
|
|
10
|
-
import { fiscalCalendarPassThrough as
|
|
11
|
-
import { DatePickerShell as
|
|
12
|
-
import { usePickerDismissActionsRef as
|
|
13
|
-
import { formatYearInput as
|
|
14
|
-
import { viewMonthFromYear as
|
|
15
|
-
const
|
|
8
|
+
import { useImpactNovaI18n as re } from "../../../i18n/use-impact-nova-i18n.js";
|
|
9
|
+
import { buildDateBoundsMatcher as te } from "../../../lib/date-bounds-matcher.js";
|
|
10
|
+
import { fiscalCalendarPassThrough as ne } from "./fiscal-pass-through.js";
|
|
11
|
+
import { DatePickerShell as oe } from "./date-picker-shell.js";
|
|
12
|
+
import { usePickerDismissActionsRef as ae, usePickerFooterDismissNudge as ie, handleReadonlyPickerKeyDown as ce, handlePickerSurfacePointerDown as se } from "./date-input-behavior.js";
|
|
13
|
+
import { formatYearInput as le } from "../../data-display/calendar/calendar-fiscal-labels.js";
|
|
14
|
+
import { viewMonthFromYear as pe } from "../../data-display/calendar/calendar-year-utils.js";
|
|
15
|
+
const fe = t.forwardRef(
|
|
16
16
|
({
|
|
17
17
|
value: n,
|
|
18
18
|
onChange: d,
|
|
@@ -31,27 +31,29 @@ const pe = t.forwardRef(
|
|
|
31
31
|
fiscalYearStartMonth: K,
|
|
32
32
|
fiscalConfig: k,
|
|
33
33
|
showPresets: j,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
t
|
|
39
|
-
|
|
34
|
+
showPeriodBoundaries: F,
|
|
35
|
+
showIntervalCaption: L = !1,
|
|
36
|
+
...z
|
|
37
|
+
}, E) => {
|
|
38
|
+
const { t: a } = re(), H = Y ?? a("datePicker.selectYear"), m = t.useRef(null), P = t.useRef(null);
|
|
39
|
+
t.useImperativeHandle(E, () => m.current);
|
|
40
|
+
const [i, c] = t.useState(!1), u = t.useRef(!1), g = ae(), { footerFlashKey: V, footerFlashTarget: B, popoverHandlers: q } = ie(s, i, g, P), [C, l] = t.useState(n), [G, J] = t.useState(pe(n));
|
|
40
41
|
t.useEffect(() => {
|
|
41
42
|
i || l(n);
|
|
42
43
|
}, [i, n]);
|
|
43
|
-
const p = t.useCallback(() => c(!1), []),
|
|
44
|
+
const p = t.useCallback(() => c(!1), []), Q = ne({
|
|
44
45
|
calendarKind: O,
|
|
45
46
|
fiscalMode: T,
|
|
46
47
|
granularity: w,
|
|
47
48
|
fiscalMonthPattern: M,
|
|
48
49
|
fiscalYearStartMonth: K,
|
|
49
50
|
fiscalConfig: k,
|
|
50
|
-
showPresets: j
|
|
51
|
-
|
|
51
|
+
showPresets: j,
|
|
52
|
+
showPeriodBoundaries: F
|
|
53
|
+
}), U = (e) => {
|
|
52
54
|
const f = e && !Array.isArray(e) && !("from" in e) && !("to" in e) ? e : void 0;
|
|
53
55
|
l(f), s || (d?.(f), p());
|
|
54
|
-
},
|
|
56
|
+
}, W = () => {
|
|
55
57
|
d?.(C), p();
|
|
56
58
|
}, h = () => {
|
|
57
59
|
l(n), p();
|
|
@@ -61,7 +63,7 @@ const pe = t.forwardRef(
|
|
|
61
63
|
return t.useLayoutEffect(() => {
|
|
62
64
|
g.current = { onDismiss: h, resolveFlash: () => "cancel" };
|
|
63
65
|
}), /* @__PURE__ */ r(
|
|
64
|
-
|
|
66
|
+
oe,
|
|
65
67
|
{
|
|
66
68
|
open: i,
|
|
67
69
|
disabled: o,
|
|
@@ -72,26 +74,26 @@ const pe = t.forwardRef(
|
|
|
72
74
|
onOpenAutoFocus: (e) => {
|
|
73
75
|
u.current || e.preventDefault(), u.current = !1;
|
|
74
76
|
},
|
|
75
|
-
popoverHandlers:
|
|
77
|
+
popoverHandlers: q,
|
|
76
78
|
trigger: /* @__PURE__ */ r(
|
|
77
79
|
"div",
|
|
78
80
|
{
|
|
79
81
|
ref: P,
|
|
80
82
|
"data-component": "year-picker",
|
|
81
83
|
"data-state": i ? "open" : "closed",
|
|
82
|
-
onPointerDown: (e) =>
|
|
84
|
+
onPointerDown: (e) => se({
|
|
83
85
|
disabled: o,
|
|
84
86
|
event: e,
|
|
85
87
|
onOpen: () => c(!0),
|
|
86
88
|
focusField: () => m.current?.focus()
|
|
87
89
|
}),
|
|
88
90
|
children: /* @__PURE__ */ r(
|
|
89
|
-
|
|
91
|
+
$,
|
|
90
92
|
{
|
|
91
93
|
ref: m,
|
|
92
|
-
value: n ?
|
|
94
|
+
value: n ? le(n, k?.fyLabel ?? "fy-long") : "",
|
|
93
95
|
readOnly: !0,
|
|
94
|
-
onKeyDown: (e) =>
|
|
96
|
+
onKeyDown: (e) => ce(e, {
|
|
95
97
|
disabled: o,
|
|
96
98
|
open: i,
|
|
97
99
|
onOpen: () => c(!0),
|
|
@@ -101,10 +103,10 @@ const pe = t.forwardRef(
|
|
|
101
103
|
}
|
|
102
104
|
}),
|
|
103
105
|
onClick: () => !o && c(!0),
|
|
104
|
-
placeholder:
|
|
106
|
+
placeholder: H,
|
|
105
107
|
disabled: o,
|
|
106
108
|
"data-form-control": "input",
|
|
107
|
-
className:
|
|
109
|
+
className: _("cursor-pointer", I),
|
|
108
110
|
suffix: /* @__PURE__ */ y("div", { className: "flex items-center gap-1", children: [
|
|
109
111
|
n && !o ? /* @__PURE__ */ y(x, { children: [
|
|
110
112
|
/* @__PURE__ */ r(R, { asChild: !0, children: /* @__PURE__ */ r(
|
|
@@ -117,7 +119,7 @@ const pe = t.forwardRef(
|
|
|
117
119
|
e.stopPropagation(), b();
|
|
118
120
|
},
|
|
119
121
|
className: "inline-flex size-4 items-center justify-center border-none bg-transparent p-0",
|
|
120
|
-
children: /* @__PURE__ */ r(
|
|
122
|
+
children: /* @__PURE__ */ r(X, { className: "size-3 hover:text-content" })
|
|
121
123
|
}
|
|
122
124
|
) }),
|
|
123
125
|
/* @__PURE__ */ r(D, { variant: "tertiary", side: "top", children: a("calendar.clear") })
|
|
@@ -134,43 +136,43 @@ const pe = t.forwardRef(
|
|
|
134
136
|
e.stopPropagation(), o || c((f) => !f);
|
|
135
137
|
},
|
|
136
138
|
className: "inline-flex items-center justify-center border-none bg-transparent p-0",
|
|
137
|
-
children: /* @__PURE__ */ r(
|
|
139
|
+
children: /* @__PURE__ */ r(Z, { className: "h-4 w-4 text-secondary-foreground" })
|
|
138
140
|
}
|
|
139
141
|
) }),
|
|
140
142
|
/* @__PURE__ */ r(D, { variant: "tertiary", side: "top", children: a("datePicker.selectYear") })
|
|
141
143
|
] })
|
|
142
144
|
] }),
|
|
143
|
-
...
|
|
145
|
+
...z
|
|
144
146
|
}
|
|
145
147
|
)
|
|
146
148
|
}
|
|
147
149
|
),
|
|
148
150
|
children: /* @__PURE__ */ r(
|
|
149
|
-
|
|
151
|
+
ee,
|
|
150
152
|
{
|
|
151
153
|
pickerType: "year",
|
|
152
154
|
selectedYear: C,
|
|
153
|
-
footerFlashKey:
|
|
154
|
-
footerFlashTarget:
|
|
155
|
-
onYearSelect:
|
|
156
|
-
month:
|
|
157
|
-
onMonthChange:
|
|
158
|
-
disabled:
|
|
155
|
+
footerFlashKey: V,
|
|
156
|
+
footerFlashTarget: B,
|
|
157
|
+
onYearSelect: U,
|
|
158
|
+
month: G,
|
|
159
|
+
onMonthChange: J,
|
|
160
|
+
disabled: te(v, N),
|
|
159
161
|
startMonth: S,
|
|
160
162
|
endMonth: A,
|
|
161
163
|
showFooter: s,
|
|
162
|
-
onApply:
|
|
164
|
+
onApply: W,
|
|
163
165
|
onCancel: h,
|
|
164
166
|
onClear: b,
|
|
165
|
-
showIntervalCaption:
|
|
166
|
-
...
|
|
167
|
+
showIntervalCaption: L,
|
|
168
|
+
...Q
|
|
167
169
|
}
|
|
168
170
|
)
|
|
169
171
|
}
|
|
170
172
|
);
|
|
171
173
|
}
|
|
172
174
|
);
|
|
173
|
-
|
|
175
|
+
fe.displayName = "YearPicker";
|
|
174
176
|
export {
|
|
175
|
-
|
|
177
|
+
fe as YearPicker
|
|
176
178
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { jsx as r, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
|
-
import { Cross as
|
|
4
|
-
import { cn as
|
|
5
|
-
import { Input as
|
|
6
|
-
import { Calendar as
|
|
3
|
+
import { Cross as _, CalendarMonth as ee } from "impact-nova-icons";
|
|
4
|
+
import { cn as re } from "../../../lib/utils.js";
|
|
5
|
+
import { Input as te } from "../input/input.js";
|
|
6
|
+
import { Calendar as ne } from "../../data-display/calendar/calendar.js";
|
|
7
7
|
import { Tooltip as x, TooltipTrigger as D, TooltipContent as Y } from "../../feedback/tooltip/tooltip.js";
|
|
8
|
-
import { useImpactNovaI18n as
|
|
9
|
-
import { buildDateBoundsMatcher as
|
|
10
|
-
import { fiscalCalendarPassThrough as
|
|
11
|
-
import { DatePickerShell as
|
|
12
|
-
import { usePickerDismissActionsRef as
|
|
8
|
+
import { useImpactNovaI18n as oe } from "../../../i18n/use-impact-nova-i18n.js";
|
|
9
|
+
import { buildDateBoundsMatcher as ae } from "../../../lib/date-bounds-matcher.js";
|
|
10
|
+
import { fiscalCalendarPassThrough as ie } from "./fiscal-pass-through.js";
|
|
11
|
+
import { DatePickerShell as ce } from "./date-picker-shell.js";
|
|
12
|
+
import { usePickerDismissActionsRef as se, usePickerFooterDismissNudge as le, handleReadonlyPickerKeyDown as fe, handlePickerSurfacePointerDown as pe } from "./date-input-behavior.js";
|
|
13
13
|
import { formatYearInput as N } from "../../data-display/calendar/calendar-fiscal-labels.js";
|
|
14
|
-
import { viewMonthFromYear as
|
|
15
|
-
const
|
|
14
|
+
import { viewMonthFromYear as de } from "../../data-display/calendar/calendar-year-utils.js";
|
|
15
|
+
const me = t.forwardRef(
|
|
16
16
|
({
|
|
17
17
|
value: n,
|
|
18
18
|
onChange: d,
|
|
@@ -31,27 +31,29 @@ const de = t.forwardRef(
|
|
|
31
31
|
fiscalYearStartMonth: F,
|
|
32
32
|
fiscalConfig: y,
|
|
33
33
|
showPresets: L,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
t
|
|
39
|
-
|
|
34
|
+
showPeriodBoundaries: $,
|
|
35
|
+
showIntervalCaption: z = !1,
|
|
36
|
+
...E
|
|
37
|
+
}, H) => {
|
|
38
|
+
const { t: a } = oe(), V = S ?? a("datePicker.selectYearRange"), k = y?.fyLabel ?? "fy-long", m = t.useRef(null), P = t.useRef(null);
|
|
39
|
+
t.useImperativeHandle(H, () => m.current);
|
|
40
|
+
const [i, c] = t.useState(!1), u = t.useRef(!1), R = se(), { footerFlashKey: B, footerFlashTarget: q, popoverHandlers: G } = le(l, i, R, P), [C, f] = t.useState(n), [J, Q] = t.useState(de(n?.from));
|
|
40
41
|
t.useEffect(() => {
|
|
41
42
|
i || f(n);
|
|
42
43
|
}, [i, n]);
|
|
43
|
-
const p = t.useCallback(() => c(!1), []),
|
|
44
|
+
const p = t.useCallback(() => c(!1), []), U = ie({
|
|
44
45
|
calendarKind: T,
|
|
45
46
|
fiscalMode: w,
|
|
46
47
|
granularity: K,
|
|
47
48
|
fiscalMonthPattern: j,
|
|
48
49
|
fiscalYearStartMonth: F,
|
|
49
50
|
fiscalConfig: y,
|
|
50
|
-
showPresets: L
|
|
51
|
-
|
|
51
|
+
showPresets: L,
|
|
52
|
+
showPeriodBoundaries: $
|
|
53
|
+
}), W = (e) => {
|
|
52
54
|
const s = e && !Array.isArray(e) && ("from" in e || "to" in e) ? e : void 0;
|
|
53
55
|
f(s), l || (d?.(s), s?.to && p());
|
|
54
|
-
},
|
|
56
|
+
}, X = () => {
|
|
55
57
|
d?.(C), p();
|
|
56
58
|
}, h = () => {
|
|
57
59
|
f(n), p();
|
|
@@ -61,9 +63,9 @@ const de = t.forwardRef(
|
|
|
61
63
|
t.useLayoutEffect(() => {
|
|
62
64
|
R.current = { onDismiss: h, resolveFlash: () => "cancel" };
|
|
63
65
|
});
|
|
64
|
-
const
|
|
66
|
+
const Z = n?.from ? `${N(n.from, k)}${n.to ? ` – ${N(n.to, k)}` : ""}` : "";
|
|
65
67
|
return /* @__PURE__ */ r(
|
|
66
|
-
|
|
68
|
+
ce,
|
|
67
69
|
{
|
|
68
70
|
open: i,
|
|
69
71
|
disabled: o,
|
|
@@ -74,26 +76,26 @@ const de = t.forwardRef(
|
|
|
74
76
|
onOpenAutoFocus: (e) => {
|
|
75
77
|
u.current || e.preventDefault(), u.current = !1;
|
|
76
78
|
},
|
|
77
|
-
popoverHandlers:
|
|
79
|
+
popoverHandlers: G,
|
|
78
80
|
trigger: /* @__PURE__ */ r(
|
|
79
81
|
"div",
|
|
80
82
|
{
|
|
81
83
|
ref: P,
|
|
82
84
|
"data-component": "year-range-picker",
|
|
83
85
|
"data-state": i ? "open" : "closed",
|
|
84
|
-
onPointerDown: (e) =>
|
|
86
|
+
onPointerDown: (e) => pe({
|
|
85
87
|
disabled: o,
|
|
86
88
|
event: e,
|
|
87
89
|
onOpen: () => c(!0),
|
|
88
90
|
focusField: () => m.current?.focus()
|
|
89
91
|
}),
|
|
90
92
|
children: /* @__PURE__ */ r(
|
|
91
|
-
|
|
93
|
+
te,
|
|
92
94
|
{
|
|
93
95
|
ref: m,
|
|
94
|
-
value:
|
|
96
|
+
value: Z,
|
|
95
97
|
readOnly: !0,
|
|
96
|
-
onKeyDown: (e) =>
|
|
98
|
+
onKeyDown: (e) => fe(e, {
|
|
97
99
|
disabled: o,
|
|
98
100
|
open: i,
|
|
99
101
|
onOpen: () => c(!0),
|
|
@@ -103,10 +105,10 @@ const de = t.forwardRef(
|
|
|
103
105
|
}
|
|
104
106
|
}),
|
|
105
107
|
onClick: () => !o && c(!0),
|
|
106
|
-
placeholder:
|
|
108
|
+
placeholder: V,
|
|
107
109
|
disabled: o,
|
|
108
110
|
"data-form-control": "input",
|
|
109
|
-
className:
|
|
111
|
+
className: re("cursor-pointer", O),
|
|
110
112
|
suffix: /* @__PURE__ */ g("div", { className: "flex items-center gap-1", children: [
|
|
111
113
|
n?.from && !o ? /* @__PURE__ */ g(x, { children: [
|
|
112
114
|
/* @__PURE__ */ r(D, { asChild: !0, children: /* @__PURE__ */ r(
|
|
@@ -119,7 +121,7 @@ const de = t.forwardRef(
|
|
|
119
121
|
e.stopPropagation(), b();
|
|
120
122
|
},
|
|
121
123
|
className: "inline-flex size-4 items-center justify-center border-none bg-transparent p-0",
|
|
122
|
-
children: /* @__PURE__ */ r(
|
|
124
|
+
children: /* @__PURE__ */ r(_, { className: "size-3 hover:text-content" })
|
|
123
125
|
}
|
|
124
126
|
) }),
|
|
125
127
|
/* @__PURE__ */ r(Y, { variant: "tertiary", side: "top", children: a("calendar.clear") })
|
|
@@ -136,44 +138,44 @@ const de = t.forwardRef(
|
|
|
136
138
|
e.stopPropagation(), o || c((s) => !s);
|
|
137
139
|
},
|
|
138
140
|
className: "inline-flex items-center justify-center border-none bg-transparent p-0",
|
|
139
|
-
children: /* @__PURE__ */ r(
|
|
141
|
+
children: /* @__PURE__ */ r(ee, { className: "h-4 w-4 text-secondary-foreground" })
|
|
140
142
|
}
|
|
141
143
|
) }),
|
|
142
144
|
/* @__PURE__ */ r(Y, { variant: "tertiary", side: "top", children: a("datePicker.selectYearRange") })
|
|
143
145
|
] })
|
|
144
146
|
] }),
|
|
145
|
-
...
|
|
147
|
+
...E
|
|
146
148
|
}
|
|
147
149
|
)
|
|
148
150
|
}
|
|
149
151
|
),
|
|
150
152
|
children: /* @__PURE__ */ r(
|
|
151
|
-
|
|
153
|
+
ne,
|
|
152
154
|
{
|
|
153
155
|
pickerType: "year",
|
|
154
156
|
yearMode: "range",
|
|
155
157
|
selectedYear: C,
|
|
156
|
-
footerFlashKey:
|
|
157
|
-
footerFlashTarget:
|
|
158
|
-
onYearSelect:
|
|
159
|
-
month:
|
|
160
|
-
onMonthChange:
|
|
161
|
-
disabled:
|
|
158
|
+
footerFlashKey: B,
|
|
159
|
+
footerFlashTarget: q,
|
|
160
|
+
onYearSelect: W,
|
|
161
|
+
month: J,
|
|
162
|
+
onMonthChange: Q,
|
|
163
|
+
disabled: ae(v, A),
|
|
162
164
|
startMonth: I,
|
|
163
165
|
endMonth: M,
|
|
164
166
|
showFooter: l,
|
|
165
|
-
onApply:
|
|
167
|
+
onApply: X,
|
|
166
168
|
onCancel: h,
|
|
167
169
|
onClear: b,
|
|
168
|
-
showIntervalCaption:
|
|
169
|
-
...
|
|
170
|
+
showIntervalCaption: z,
|
|
171
|
+
...U
|
|
170
172
|
}
|
|
171
173
|
)
|
|
172
174
|
}
|
|
173
175
|
);
|
|
174
176
|
}
|
|
175
177
|
);
|
|
176
|
-
|
|
178
|
+
me.displayName = "YearRangePicker";
|
|
177
179
|
export {
|
|
178
|
-
|
|
180
|
+
me as YearRangePicker
|
|
179
181
|
};
|
|
@@ -4,7 +4,7 @@ import { cn as a } from "../../../../lib/utils.js";
|
|
|
4
4
|
import { preventDismissOnTooltipOutside as t } from "../../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
|
|
5
5
|
import { useOverlayPortalContainer as v } from "../../../../lib/overlay/overlay-portal-context.js";
|
|
6
6
|
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as f } from "../../../../lib/overlay/overlay-host.constants.js";
|
|
7
|
-
function
|
|
7
|
+
function P({
|
|
8
8
|
menuRef: l,
|
|
9
9
|
menuMinHeight: i,
|
|
10
10
|
menuWidth: s,
|
|
@@ -25,6 +25,7 @@ function O({
|
|
|
25
25
|
collisionPadding: 8,
|
|
26
26
|
"aria-label": p,
|
|
27
27
|
onOpenAutoFocus: (e) => e.preventDefault(),
|
|
28
|
+
onPointerDown: (e) => e.stopPropagation(),
|
|
28
29
|
onPointerDownOutside: t,
|
|
29
30
|
onInteractOutside: t,
|
|
30
31
|
onFocusOutside: t,
|
|
@@ -58,5 +59,5 @@ function O({
|
|
|
58
59
|
) });
|
|
59
60
|
}
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
P as SelectMenuPanel
|
|
62
63
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { cn as x } from "../../../../lib/utils.js";
|
|
3
|
-
import "react";
|
|
4
3
|
import { OverflowTooltip as m } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
5
4
|
import { isInvertedSelection as h, isOptionArray as d } from "../utils/select.js";
|
|
6
|
-
function
|
|
5
|
+
function w({
|
|
7
6
|
isMulti: u,
|
|
8
7
|
isDisabled: p,
|
|
9
8
|
internalValue: o,
|
|
@@ -53,5 +52,5 @@ function C({
|
|
|
53
52
|
);
|
|
54
53
|
}
|
|
55
54
|
export {
|
|
56
|
-
|
|
55
|
+
w as SelectTriggerValue
|
|
57
56
|
};
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import * as i from "@radix-ui/react-popover";
|
|
3
3
|
import { Checkbox as P } from "../../checkbox/checkbox.js";
|
|
4
|
-
import "react";
|
|
5
4
|
import { OverflowTooltip as y } from "../../../feedback/tooltip/overflow-tooltip.js";
|
|
6
5
|
import { ChevronRight as A, Checkmark as O } from "impact-nova-icons";
|
|
7
6
|
import { cn as v } from "../../../../lib/utils.js";
|
|
8
7
|
import { useOverlayPortalContainer as T } from "../../../../lib/overlay/overlay-portal-context.js";
|
|
9
8
|
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as _ } from "../../../../lib/overlay/overlay-host.constants.js";
|
|
10
9
|
import { useSuppressOptionClickForTextSelection as E } from "../hooks/useSuppressOptionClickForTextSelection.js";
|
|
11
|
-
const
|
|
10
|
+
const G = ({
|
|
12
11
|
parentOption: n,
|
|
13
12
|
isMulti: u,
|
|
14
13
|
isReadOnly: l,
|
|
@@ -106,5 +105,5 @@ const R = ({
|
|
|
106
105
|
] });
|
|
107
106
|
};
|
|
108
107
|
export {
|
|
109
|
-
|
|
108
|
+
G as Submenu
|
|
110
109
|
};
|
|
@@ -126,6 +126,7 @@ function ne(R) {
|
|
|
126
126
|
), V = dt({
|
|
127
127
|
count: o.length,
|
|
128
128
|
getScrollElement: () => T.current,
|
|
129
|
+
enabled: l,
|
|
129
130
|
// Estimates only seed unmeasured rows — mounted rows self-measure via
|
|
130
131
|
// `measureElement` refs. Consumers rendering taller custom `renderOption`
|
|
131
132
|
// rows should pass `estimateRowSize` to keep scroll offsets sane.
|