@bfrs/agentic-components 0.9.0 → 0.9.2
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/BFRS_AGENTIC_COMPONENTS.md +4 -4
- package/README.md +26 -3
- package/dist/components/data-display/DataTable/DataTable.d.ts +1 -1
- package/dist/components/data-display/DataTable/DataTable.js +326 -298
- package/dist/components/data-display/DataTable/DataTable.js.map +1 -1
- package/dist/components/data-display/DataTable/DataTable.types.d.ts +24 -0
- package/dist/components/data-display/DataTable/TableColumnVisibility.js +7 -2
- package/dist/components/data-display/DataTable/TableColumnVisibility.js.map +1 -1
- package/dist/components/data-display/DataTable/TablePagination.js +126 -75
- package/dist/components/data-display/DataTable/TablePagination.js.map +1 -1
- package/dist/components/data-display/DataTable/TableSaveView.js +7 -5
- package/dist/components/data-display/DataTable/TableSaveView.js.map +1 -1
- package/dist/components/data-display/DataTable/TableViewSelector.js +80 -71
- package/dist/components/data-display/DataTable/TableViewSelector.js.map +1 -1
- package/dist/components/data-display/Table/Table.js +23 -16
- package/dist/components/data-display/Table/Table.js.map +1 -1
- package/dist/components/filters/DateRangePicker/DateRangePicker.js +254 -243
- package/dist/components/filters/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/components/filters/FilterBar/FilterBar.js +18 -17
- package/dist/components/filters/FilterBar/FilterBar.js.map +1 -1
- package/dist/components/layout/ListPageLayout/ListPageLayout.js +28 -26
- package/dist/components/layout/ListPageLayout/ListPageLayout.js.map +1 -1
- package/dist/components/layout/PageHeader/PageHeader.js +6 -4
- package/dist/components/layout/PageHeader/PageHeader.js.map +1 -1
- package/dist/components/navigation/ActionMenu/ActionMenu.js +13 -6
- package/dist/components/navigation/ActionMenu/ActionMenu.js.map +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +20 -19
- package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
- package/dist/components/primitives/Button/Button.js +70 -57
- package/dist/components/primitives/Button/Button.js.map +1 -1
- package/dist/components/primitives/Chip/Chip.js +3 -1
- package/dist/components/primitives/Chip/Chip.js.map +1 -1
- package/dist/components/ui/feedback/warningVisual.d.ts +4 -4
- package/dist/components/ui/feedback/warningVisual.js +20 -20
- package/dist/components/ui/feedback/warningVisual.js.map +1 -1
- package/dist/components/ui/forms/Checkbox/Checkbox.js +9 -6
- package/dist/components/ui/forms/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/ui/forms/MultiSelect/MultiSelect.js +15 -4
- package/dist/components/ui/forms/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/components/ui/forms/SearchableSelect/SearchableSelect.js +38 -28
- package/dist/components/ui/forms/SearchableSelect/SearchableSelect.js.map +1 -1
- package/dist/components/ui/forms/Select/Select.js +89 -80
- package/dist/components/ui/forms/Select/Select.js.map +1 -1
- package/dist/components/ui/forms/SuggestInput/SuggestInput.js +22 -10
- package/dist/components/ui/forms/SuggestInput/SuggestInput.js.map +1 -1
- package/dist/components/ui/forms/TagInput/TagInput.js +15 -10
- package/dist/components/ui/forms/TagInput/TagInput.js.map +1 -1
- package/dist/components/ui/index.d.ts +2 -1
- package/dist/components/ui/overlays/Dropdown/Dropdown.js +31 -19
- package/dist/components/ui/overlays/Dropdown/Dropdown.js.map +1 -1
- package/dist/components/ui/overlays/Tooltip/Tooltip.js +21 -21
- package/dist/components/ui/overlays/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.js +14 -12
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.js.map +1 -1
- package/dist/components/ui/patterns/CommandMenu/CommandMenu.js +28 -18
- package/dist/components/ui/patterns/CommandMenu/CommandMenu.js.map +1 -1
- package/dist/components/ui/patterns/SidePanel/SidePanel.d.ts +94 -0
- package/dist/components/ui/patterns/SidePanel/SidePanel.js +265 -0
- package/dist/components/ui/patterns/SidePanel/SidePanel.js.map +1 -0
- package/dist/components/ui/patterns/SidePanel/index.d.ts +1 -0
- package/dist/components/ui/providers/BfrsProvider/BfrsProvider.d.ts +10 -0
- package/dist/components/ui/providers/BfrsProvider/BfrsProvider.js +63 -42
- package/dist/components/ui/providers/BfrsProvider/BfrsProvider.js.map +1 -1
- package/dist/custom-elements.d.ts +1 -0
- package/dist/custom-elements.js +10463 -10102
- package/dist/custom-elements.js.map +1 -1
- package/dist/index.js +284 -280
- package/dist/index.js.map +1 -1
- package/dist/lib/useMediaQuery.d.ts +4 -0
- package/dist/lib/useMediaQuery.js +23 -0
- package/dist/lib/useMediaQuery.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/styles/globals.css2.js +1 -1
- package/dist/theme/overrides.d.ts +202 -4
- package/dist/theme/overrides.js +213 -97
- package/dist/theme/overrides.js.map +1 -1
- package/dist/theme.js +21 -20
- package/dist/tokens/colors.d.ts +13 -0
- package/dist/tokens/colors.js +13 -0
- package/dist/tokens/colors.js.map +1 -1
- package/dist/tokens/shadows.d.ts +1 -0
- package/dist/tokens/shadows.js +4 -3
- package/dist/tokens/shadows.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { Root as
|
|
3
|
-
import { CalendarBlank as
|
|
4
|
-
import { CaretDown as
|
|
1
|
+
import { jsxs as s, jsx as r, Fragment as ft } from "react/jsx-runtime";
|
|
2
|
+
import { Root as Ft, Trigger as It, Portal as Lt, Content as Yt } from "../../../node_modules/@radix-ui/react-popover/dist/index.js";
|
|
3
|
+
import { CalendarBlank as Et } from "../../../node_modules/@phosphor-icons/react/dist/csr/CalendarBlank.es.js";
|
|
4
|
+
import { CaretDown as ht } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretDown.es.js";
|
|
5
5
|
import { CaretLeft as Qe } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretLeft.es.js";
|
|
6
6
|
import { CaretRight as Ze } from "../../../node_modules/@phosphor-icons/react/dist/csr/CaretRight.es.js";
|
|
7
7
|
import { Check as et } from "../../../node_modules/@phosphor-icons/react/dist/csr/Check.es.js";
|
|
8
|
-
import { X as
|
|
9
|
-
import { useState as S, useMemo as x, useRef as
|
|
8
|
+
import { X as Ht } from "../../../node_modules/@phosphor-icons/react/dist/csr/X.es.js";
|
|
9
|
+
import { useState as S, useMemo as x, useRef as Nt, useCallback as De, useEffect as mt } from "react";
|
|
10
10
|
import o from "@emotion/styled";
|
|
11
|
-
import { twRing as Ve, twTransform as
|
|
11
|
+
import { twRing as Ve, twTransform as bt, kfContentIn as _t } from "../../../lib/emotionTw.js";
|
|
12
12
|
import { Button as Ne } from "../../primitives/Button/Button.js";
|
|
13
|
-
import { WarningAlertIcon as
|
|
14
|
-
import { floatingCollisionPadding as
|
|
15
|
-
import { coerceDateRangeValue as tt, CUSTOM_PRESET_ID as f, buildDayWindowOptions as
|
|
16
|
-
import { BfrsPortalScope as
|
|
17
|
-
import { Select as
|
|
13
|
+
import { WarningAlertIcon as Ot, warningSurfaceTextStyle as Vt } from "../../ui/feedback/warningVisual.js";
|
|
14
|
+
import { floatingCollisionPadding as $t } from "../../ui/overlays/overlayPositioning.js";
|
|
15
|
+
import { coerceDateRangeValue as tt, CUSTOM_PRESET_ID as f, buildDayWindowOptions as jt, YEAR_LAST_30_DAYS as Gt, dayWindowValueForSpan as Ut, YEAR_LAST_ONE as ue, getInitialCalendar as _e, shiftMonth as B, startOfDay as v, addDays as Ce, computeYearRange as rt, compareDay as z, hasCompleteRange as C, sameDay as Ae, dayWindowValue as Xt, differenceInCalendarDays as ot, BASE_YEAR as ut, getPresetLabel as qt, defaultDateRangePresets as Jt, defaultFormatDate as wt, clampYearRange as Kt, YEAR_OPTIONS as nt, RESTRICTED_WINDOW_DAYS as Qt, normalizeRange as $e, daysInMonth as Zt, MONTH_NAMES as er, SHORT_MONTH_NAMES as at, DAY_HEADS as tr } from "./DateRangePicker.utils.js";
|
|
16
|
+
import { BfrsPortalScope as rr } from "../../ui/providers/BfrsProvider/BfrsProvider.js";
|
|
17
|
+
import { Select as or } from "../../ui/forms/Select/Select.js";
|
|
18
18
|
const je = (e) => e ? Ve("2px", `hsl(var(--bfrs-color-border-focus) / ${e})`) : {
|
|
19
19
|
...Ve("2px", "hsl(var(--bfrs-color-border-focus) / var(--tw-ring-opacity, 1))"),
|
|
20
20
|
"--tw-ring-opacity": "1"
|
|
21
|
-
},
|
|
21
|
+
}, O = {
|
|
22
22
|
"--tw-text-opacity": "1",
|
|
23
23
|
color: "hsl(var(--bfrs-color-text-muted) / var(--tw-text-opacity, 1))"
|
|
24
|
-
},
|
|
24
|
+
}, W = {
|
|
25
25
|
"--tw-text-opacity": "1",
|
|
26
26
|
color: "hsl(var(--bfrs-color-text-primary) / var(--tw-text-opacity, 1))"
|
|
27
27
|
}, Te = {
|
|
28
28
|
"--tw-text-opacity": "1",
|
|
29
29
|
color: "hsl(var(--bfrs-color-text-secondary) / var(--tw-text-opacity, 1))"
|
|
30
|
-
},
|
|
30
|
+
}, _ = {
|
|
31
31
|
"--tw-text-opacity": "1",
|
|
32
32
|
color: "hsl(var(--bfrs-color-text-disabled) / var(--tw-text-opacity, 1))"
|
|
33
33
|
}, we = {
|
|
@@ -36,7 +36,7 @@ const je = (e) => e ? Ve("2px", `hsl(var(--bfrs-color-border-focus) / ${e})`) :
|
|
|
36
36
|
}, it = {
|
|
37
37
|
"--tw-bg-opacity": "1",
|
|
38
38
|
backgroundColor: "hsl(var(--bfrs-color-option-hover) / var(--tw-bg-opacity, 1))"
|
|
39
|
-
},
|
|
39
|
+
}, nr = {
|
|
40
40
|
"--tw-bg-opacity": "1",
|
|
41
41
|
backgroundColor: "hsl(var(--bfrs-color-option-selected) / var(--tw-bg-opacity, 1))"
|
|
42
42
|
}, Z = {
|
|
@@ -46,30 +46,30 @@ const je = (e) => e ? Ve("2px", `hsl(var(--bfrs-color-border-focus) / ${e})`) :
|
|
|
46
46
|
"--tw-border-opacity": "1",
|
|
47
47
|
borderColor: "hsl(var(--bfrs-color-border) / var(--tw-border-opacity, 1))"
|
|
48
48
|
};
|
|
49
|
-
function N(e,
|
|
50
|
-
const h = Date.UTC(e.year, e.month, 1), d = Date.UTC(
|
|
49
|
+
function N(e, c) {
|
|
50
|
+
const h = Date.UTC(e.year, e.month, 1), d = Date.UTC(c.year, c.month, 1);
|
|
51
51
|
return h === d ? 0 : h < d ? -1 : 1;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return N(e,
|
|
53
|
+
function ar(e, c, h) {
|
|
54
|
+
return N(e, c) < 0 || N(e, h) > 0;
|
|
55
55
|
}
|
|
56
56
|
function lt(e) {
|
|
57
57
|
return { year: e.getFullYear(), month: e.getMonth() };
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function ir(e, c, h) {
|
|
60
60
|
const d = B(e.year, e.month, 1);
|
|
61
61
|
if (!h || N(d, h) <= 0)
|
|
62
62
|
return { left: e, right: d };
|
|
63
63
|
const m = B(e.year, e.month, -1);
|
|
64
|
-
return !
|
|
64
|
+
return !c || N(m, c) >= 0 ? { left: m, right: e } : { left: e, right: d };
|
|
65
65
|
}
|
|
66
|
-
function Oe(e,
|
|
66
|
+
function Oe(e, c, h, d) {
|
|
67
67
|
const m = lt(e);
|
|
68
68
|
if (h === 1) return { left: m, right: m };
|
|
69
|
-
const
|
|
70
|
-
return N(m,
|
|
69
|
+
const V = lt(c);
|
|
70
|
+
return N(m, V) < 0 ? { left: m, right: V } : ir(m, d == null ? void 0 : d.minMonth, d == null ? void 0 : d.maxMonth);
|
|
71
71
|
}
|
|
72
|
-
const
|
|
72
|
+
const lr = /* @__PURE__ */ o("div", {
|
|
73
73
|
label: "AgenticDateRangePicker-calendar"
|
|
74
74
|
})({
|
|
75
75
|
width: "252px",
|
|
@@ -81,7 +81,7 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
81
81
|
"--tw-shadow": "var(--bfrs-shadow-low)",
|
|
82
82
|
"--tw-shadow-colored": "var(--bfrs-shadow-low)",
|
|
83
83
|
boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)"
|
|
84
|
-
}),
|
|
84
|
+
}), cr = /* @__PURE__ */ o("div", {
|
|
85
85
|
label: "AgenticDateRangePicker-calendarHeader"
|
|
86
86
|
})({
|
|
87
87
|
marginBottom: ".5rem",
|
|
@@ -99,12 +99,12 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
99
99
|
alignItems: "center",
|
|
100
100
|
justifyContent: "center",
|
|
101
101
|
borderRadius: "var(--bfrs-radius-md)",
|
|
102
|
-
...
|
|
102
|
+
...O,
|
|
103
103
|
outline: "2px solid transparent",
|
|
104
104
|
outlineOffset: "2px",
|
|
105
105
|
"&:hover": {
|
|
106
106
|
...we,
|
|
107
|
-
...
|
|
107
|
+
...W
|
|
108
108
|
},
|
|
109
109
|
"&:focus-visible": je()
|
|
110
110
|
},
|
|
@@ -119,7 +119,7 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
119
119
|
})({
|
|
120
120
|
width: "1.75rem",
|
|
121
121
|
height: "1.75rem"
|
|
122
|
-
}),
|
|
122
|
+
}), sr = /* @__PURE__ */ o("button", {
|
|
123
123
|
label: "AgenticDateRangePicker-titleButton"
|
|
124
124
|
})({
|
|
125
125
|
display: "flex",
|
|
@@ -128,7 +128,7 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
128
128
|
fontSize: ".875rem",
|
|
129
129
|
lineHeight: "1.25rem",
|
|
130
130
|
fontWeight: 700,
|
|
131
|
-
...
|
|
131
|
+
...W,
|
|
132
132
|
outline: "2px solid transparent",
|
|
133
133
|
outlineOffset: "2px",
|
|
134
134
|
"&:hover": {
|
|
@@ -138,18 +138,18 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
138
138
|
transitionProperty: "color,background-color,border-color,text-decoration-color,fill,stroke",
|
|
139
139
|
transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
|
|
140
140
|
transitionDuration: ".15s"
|
|
141
|
-
}),
|
|
141
|
+
}), dr = /* @__PURE__ */ o(ht, {
|
|
142
142
|
label: "AgenticDateRangePicker-titleCaret",
|
|
143
143
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
144
144
|
})(({ ownerState: e }) => [
|
|
145
145
|
{
|
|
146
|
-
...
|
|
146
|
+
...O,
|
|
147
147
|
transitionProperty: "transform",
|
|
148
148
|
transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
|
|
149
149
|
transitionDuration: ".15s"
|
|
150
150
|
},
|
|
151
|
-
e.open &&
|
|
152
|
-
]),
|
|
151
|
+
e.open && bt({ "--tw-rotate": "180deg" })
|
|
152
|
+
]), gr = /* @__PURE__ */ o("div", {
|
|
153
153
|
label: "AgenticDateRangePicker-monthGrid"
|
|
154
154
|
})({
|
|
155
155
|
display: "grid",
|
|
@@ -157,7 +157,7 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
157
157
|
gap: ".375rem",
|
|
158
158
|
paddingTop: ".25rem",
|
|
159
159
|
paddingBottom: ".25rem"
|
|
160
|
-
}),
|
|
160
|
+
}), pr = /* @__PURE__ */ o("button", {
|
|
161
161
|
label: "AgenticDateRangePicker-monthButton",
|
|
162
162
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
163
163
|
})(({ ownerState: e }) => [
|
|
@@ -177,7 +177,7 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
177
177
|
transitionDuration: ".15s",
|
|
178
178
|
"&:hover": {
|
|
179
179
|
...we,
|
|
180
|
-
...
|
|
180
|
+
...W
|
|
181
181
|
},
|
|
182
182
|
"&:focus-visible": je()
|
|
183
183
|
},
|
|
@@ -196,14 +196,14 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
196
196
|
},
|
|
197
197
|
e.disabled && {
|
|
198
198
|
cursor: "not-allowed",
|
|
199
|
-
...
|
|
199
|
+
..._,
|
|
200
200
|
opacity: ".45",
|
|
201
201
|
"&:hover": {
|
|
202
202
|
backgroundColor: "transparent",
|
|
203
|
-
...
|
|
203
|
+
..._
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
]),
|
|
206
|
+
]), fr = /* @__PURE__ */ o("div", {
|
|
207
207
|
label: "AgenticDateRangePicker-dayHeads"
|
|
208
208
|
})({
|
|
209
209
|
marginBottom: ".125rem",
|
|
@@ -212,20 +212,20 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
212
212
|
borderBottomWidth: "1px",
|
|
213
213
|
...ee,
|
|
214
214
|
paddingBottom: ".375rem"
|
|
215
|
-
}),
|
|
215
|
+
}), hr = /* @__PURE__ */ o("div", {
|
|
216
216
|
label: "AgenticDateRangePicker-dayHead"
|
|
217
217
|
})({
|
|
218
218
|
textAlign: "center",
|
|
219
219
|
fontSize: ".75rem",
|
|
220
220
|
lineHeight: "1rem",
|
|
221
221
|
fontWeight: 600,
|
|
222
|
-
...
|
|
223
|
-
}),
|
|
222
|
+
..._
|
|
223
|
+
}), mr = /* @__PURE__ */ o("div", {
|
|
224
224
|
label: "AgenticDateRangePicker-daysGrid"
|
|
225
225
|
})({
|
|
226
226
|
display: "grid",
|
|
227
227
|
gridTemplateColumns: "repeat(7,minmax(0,1fr))"
|
|
228
|
-
}),
|
|
228
|
+
}), br = /* @__PURE__ */ o("div", {
|
|
229
229
|
label: "AgenticDateRangePicker-monthLabel"
|
|
230
230
|
})({
|
|
231
231
|
gridColumn: "span 7 / span 7",
|
|
@@ -236,12 +236,12 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
236
236
|
fontSize: "11px",
|
|
237
237
|
fontWeight: 700,
|
|
238
238
|
letterSpacing: ".12em",
|
|
239
|
-
...
|
|
240
|
-
}),
|
|
239
|
+
..._
|
|
240
|
+
}), ur = /* @__PURE__ */ o("div", {
|
|
241
241
|
label: "AgenticDateRangePicker-blankCell"
|
|
242
242
|
})({
|
|
243
243
|
height: "2rem"
|
|
244
|
-
}),
|
|
244
|
+
}), wr = /* @__PURE__ */ o("div", {
|
|
245
245
|
label: "AgenticDateRangePicker-dayCell"
|
|
246
246
|
})({
|
|
247
247
|
position: "relative",
|
|
@@ -249,7 +249,7 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
249
249
|
height: "2rem",
|
|
250
250
|
alignItems: "center",
|
|
251
251
|
justifyContent: "center"
|
|
252
|
-
}),
|
|
252
|
+
}), vr = /* @__PURE__ */ o("div", {
|
|
253
253
|
label: "AgenticDateRangePicker-rangeBand",
|
|
254
254
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
255
255
|
})(({ ownerState: e }) => [
|
|
@@ -271,7 +271,7 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
271
271
|
borderTopRightRadius: "var(--bfrs-radius-lg)",
|
|
272
272
|
borderBottomRightRadius: "var(--bfrs-radius-lg)"
|
|
273
273
|
}
|
|
274
|
-
]),
|
|
274
|
+
]), yr = /* @__PURE__ */ o("button", {
|
|
275
275
|
label: "AgenticDateRangePicker-dayButton",
|
|
276
276
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
277
277
|
})(({ ownerState: e }) => [
|
|
@@ -309,34 +309,34 @@ const ir = /* @__PURE__ */ o("div", {
|
|
|
309
309
|
"--tw-shadow-colored": "var(--bfrs-shadow-low)",
|
|
310
310
|
boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)"
|
|
311
311
|
},
|
|
312
|
-
!e.selected && e.inRange && { fontWeight: 500, ...
|
|
312
|
+
!e.selected && e.inRange && { fontWeight: 500, ...W },
|
|
313
313
|
!e.selected && !e.inRange && {
|
|
314
314
|
...Te,
|
|
315
315
|
"&:hover": {
|
|
316
316
|
...we,
|
|
317
|
-
...
|
|
317
|
+
...W
|
|
318
318
|
}
|
|
319
319
|
},
|
|
320
320
|
e.disabled && {
|
|
321
321
|
cursor: "not-allowed",
|
|
322
|
-
...
|
|
322
|
+
..._,
|
|
323
323
|
opacity: ".4",
|
|
324
324
|
"&:hover": {
|
|
325
325
|
backgroundColor: "transparent",
|
|
326
|
-
...
|
|
326
|
+
..._
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
]);
|
|
330
330
|
function st({
|
|
331
331
|
year: e,
|
|
332
|
-
month:
|
|
332
|
+
month: c,
|
|
333
333
|
from: h,
|
|
334
334
|
to: d,
|
|
335
335
|
hovered: m,
|
|
336
|
-
awaitingTo:
|
|
336
|
+
awaitingTo: V,
|
|
337
337
|
isDateDisabled: ve,
|
|
338
338
|
onSelectDate: ye,
|
|
339
|
-
onHoverDate:
|
|
339
|
+
onHoverDate: $,
|
|
340
340
|
onPrev: Be,
|
|
341
341
|
onNext: Me,
|
|
342
342
|
showPrev: F = !0,
|
|
@@ -347,38 +347,38 @@ function st({
|
|
|
347
347
|
className: We
|
|
348
348
|
}) {
|
|
349
349
|
const [k, xe] = S(!1), [R, te] = S(e), Fe = (/* @__PURE__ */ new Date()).getFullYear();
|
|
350
|
-
|
|
350
|
+
mt(() => {
|
|
351
351
|
k || te(e);
|
|
352
352
|
}, [e, k]);
|
|
353
|
-
const de = new Date(e,
|
|
353
|
+
const de = new Date(e, c, 1).getDay(), ke = Zt(e, c), re = Array(de).fill(null);
|
|
354
354
|
for (let l = 1; l <= ke; l += 1)
|
|
355
355
|
re.push(l);
|
|
356
356
|
for (; re.length % 7 !== 0; )
|
|
357
357
|
re.push(null);
|
|
358
|
-
const Re = d ?? (
|
|
359
|
-
return /* @__PURE__ */
|
|
360
|
-
/* @__PURE__ */
|
|
358
|
+
const Re = d ?? (V ? m : void 0), g = h && Re ? $e(h, Re) : void 0;
|
|
359
|
+
return /* @__PURE__ */ s(lr, { className: We, children: [
|
|
360
|
+
/* @__PURE__ */ s(cr, { children: [
|
|
361
361
|
k ? /* @__PURE__ */ r(
|
|
362
362
|
Se,
|
|
363
363
|
{
|
|
364
364
|
type: "button",
|
|
365
365
|
ownerState: { disableable: !0 },
|
|
366
366
|
onClick: () => te((l) => l - 1),
|
|
367
|
-
disabled: R <=
|
|
367
|
+
disabled: R <= ut,
|
|
368
368
|
"aria-label": "Previous year",
|
|
369
369
|
children: /* @__PURE__ */ r(Qe, { size: 14, weight: "bold" })
|
|
370
370
|
}
|
|
371
371
|
) : F ? /* @__PURE__ */ r(Se, { type: "button", ownerState: { disableable: !1 }, onClick: Be, "aria-label": "Previous month", children: /* @__PURE__ */ r(Qe, { size: 14, weight: "bold" }) }) : /* @__PURE__ */ r(ct, { "aria-hidden": "true" }),
|
|
372
|
-
/* @__PURE__ */
|
|
373
|
-
|
|
372
|
+
/* @__PURE__ */ s(
|
|
373
|
+
sr,
|
|
374
374
|
{
|
|
375
375
|
type: "button",
|
|
376
376
|
onClick: () => {
|
|
377
377
|
te(e), xe((l) => !l);
|
|
378
378
|
},
|
|
379
379
|
children: [
|
|
380
|
-
k ? R : `${
|
|
381
|
-
/* @__PURE__ */ r(
|
|
380
|
+
k ? R : `${er[c]}, ${e}`,
|
|
381
|
+
/* @__PURE__ */ r(dr, { size: 11, weight: "bold", ownerState: { open: k } })
|
|
382
382
|
]
|
|
383
383
|
}
|
|
384
384
|
),
|
|
@@ -394,10 +394,10 @@ function st({
|
|
|
394
394
|
}
|
|
395
395
|
) : I ? /* @__PURE__ */ r(Se, { type: "button", ownerState: { disableable: !1 }, onClick: Me, "aria-label": "Next month", children: /* @__PURE__ */ r(Ze, { size: 14, weight: "bold" }) }) : /* @__PURE__ */ r(ct, { "aria-hidden": "true" })
|
|
396
396
|
] }),
|
|
397
|
-
k ? /* @__PURE__ */ r(
|
|
398
|
-
const y = P ===
|
|
397
|
+
k ? /* @__PURE__ */ r(gr, { children: at.map((l, P) => {
|
|
398
|
+
const y = P === c && R === e, A = ar({ year: R, month: P }, b, ze);
|
|
399
399
|
return /* @__PURE__ */ r(
|
|
400
|
-
|
|
400
|
+
pr,
|
|
401
401
|
{
|
|
402
402
|
type: "button",
|
|
403
403
|
disabled: A,
|
|
@@ -409,25 +409,25 @@ function st({
|
|
|
409
409
|
},
|
|
410
410
|
P
|
|
411
411
|
);
|
|
412
|
-
}) }) : /* @__PURE__ */
|
|
413
|
-
/* @__PURE__ */ r(
|
|
414
|
-
/* @__PURE__ */
|
|
415
|
-
/* @__PURE__ */ r(
|
|
412
|
+
}) }) : /* @__PURE__ */ s(ft, { children: [
|
|
413
|
+
/* @__PURE__ */ r(fr, { children: tr.map((l, P) => /* @__PURE__ */ r(hr, { children: l }, `${l}-${P}`)) }),
|
|
414
|
+
/* @__PURE__ */ s(mr, { children: [
|
|
415
|
+
/* @__PURE__ */ r(br, { children: at[c] }),
|
|
416
416
|
re.map((l, P) => {
|
|
417
417
|
if (!l)
|
|
418
|
-
return /* @__PURE__ */ r(
|
|
419
|
-
const y = new Date(e,
|
|
420
|
-
return /* @__PURE__ */
|
|
421
|
-
|
|
418
|
+
return /* @__PURE__ */ r(ur, {}, `blank-${P}`);
|
|
419
|
+
const y = new Date(e, c, l), A = Ae(y, (g == null ? void 0 : g.from) ?? h), ge = Ae(y, (g == null ? void 0 : g.to) ?? d), u = A || ge, T = !!(g && z(y, g.from) > 0 && z(y, g.to) < 0), M = ve(y), L = P % 7, j = !!(g && z(g.from, g.to) !== 0);
|
|
420
|
+
return /* @__PURE__ */ s(
|
|
421
|
+
wr,
|
|
422
422
|
{
|
|
423
|
-
onMouseEnter: () =>
|
|
424
|
-
onMouseLeave: () =>
|
|
423
|
+
onMouseEnter: () => $(y),
|
|
424
|
+
onMouseLeave: () => $(void 0),
|
|
425
425
|
children: [
|
|
426
|
-
(T ||
|
|
427
|
-
|
|
426
|
+
(T || j && u) && /* @__PURE__ */ r(
|
|
427
|
+
vr,
|
|
428
428
|
{
|
|
429
429
|
ownerState: {
|
|
430
|
-
shape:
|
|
430
|
+
shape: j && A ? "start" : j && ge ? "end" : "middle",
|
|
431
431
|
roundLeft: L === 0 || l === 1,
|
|
432
432
|
roundRight: L === 6 || l === ke
|
|
433
433
|
},
|
|
@@ -435,20 +435,20 @@ function st({
|
|
|
435
435
|
}
|
|
436
436
|
),
|
|
437
437
|
/* @__PURE__ */ r(
|
|
438
|
-
|
|
438
|
+
yr,
|
|
439
439
|
{
|
|
440
440
|
type: "button",
|
|
441
|
-
disabled:
|
|
441
|
+
disabled: M,
|
|
442
442
|
onClick: () => ye(y),
|
|
443
443
|
"aria-pressed": u,
|
|
444
|
-
"aria-label":
|
|
444
|
+
"aria-label": wt(y),
|
|
445
445
|
ownerState: {
|
|
446
446
|
// Range endpoints square off the side that meets the band so they sit flush
|
|
447
447
|
// with it; the start keeps its left corners, the end keeps its right corners.
|
|
448
|
-
shape:
|
|
448
|
+
shape: j && A ? "start" : j && ge ? "end" : "single",
|
|
449
449
|
selected: u,
|
|
450
450
|
inRange: T,
|
|
451
|
-
disabled:
|
|
451
|
+
disabled: M
|
|
452
452
|
},
|
|
453
453
|
children: l
|
|
454
454
|
}
|
|
@@ -462,19 +462,19 @@ function st({
|
|
|
462
462
|
] })
|
|
463
463
|
] });
|
|
464
464
|
}
|
|
465
|
-
const
|
|
465
|
+
const xr = /* @__PURE__ */ o("div", {
|
|
466
466
|
label: "AgenticDateRangePicker-root"
|
|
467
467
|
})({
|
|
468
468
|
display: "inline-flex",
|
|
469
469
|
flexDirection: "column",
|
|
470
470
|
gap: ".375rem"
|
|
471
|
-
}),
|
|
471
|
+
}), kr = /* @__PURE__ */ o("div", {
|
|
472
472
|
label: "AgenticDateRangePicker-label"
|
|
473
473
|
})({
|
|
474
474
|
fontSize: "12px",
|
|
475
475
|
fontWeight: 600,
|
|
476
|
-
...
|
|
477
|
-
}),
|
|
476
|
+
...W
|
|
477
|
+
}), Rr = /* @__PURE__ */ o("button", {
|
|
478
478
|
label: "AgenticDateRangePicker-trigger",
|
|
479
479
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
480
480
|
})(({ ownerState: e }) => [
|
|
@@ -491,7 +491,7 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
491
491
|
...Z,
|
|
492
492
|
fontSize: "12px",
|
|
493
493
|
fontWeight: 400,
|
|
494
|
-
...
|
|
494
|
+
...W,
|
|
495
495
|
outline: "2px solid transparent",
|
|
496
496
|
outlineOffset: "2px",
|
|
497
497
|
transitionProperty: "color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter",
|
|
@@ -509,17 +509,17 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
509
509
|
}
|
|
510
510
|
},
|
|
511
511
|
e.md ? { height: "2.25rem", paddingLeft: ".75rem", paddingRight: ".75rem" } : { height: "1.75rem", paddingLeft: ".75rem", paddingRight: ".75rem" },
|
|
512
|
-
e.empty ?
|
|
512
|
+
e.empty ? O : W,
|
|
513
513
|
e.smFilled && {
|
|
514
514
|
"--tw-border-opacity": "1",
|
|
515
515
|
borderColor: "hsl(var(--bfrs-color-border-focus) / var(--tw-border-opacity, 1))"
|
|
516
516
|
}
|
|
517
|
-
]),
|
|
517
|
+
]), Pr = /* @__PURE__ */ o(Et, {
|
|
518
518
|
label: "AgenticDateRangePicker-triggerIcon"
|
|
519
519
|
})({
|
|
520
520
|
flexShrink: 0,
|
|
521
|
-
...
|
|
522
|
-
}),
|
|
521
|
+
...O
|
|
522
|
+
}), Dr = /* @__PURE__ */ o("span", {
|
|
523
523
|
label: "AgenticDateRangePicker-triggerLabel"
|
|
524
524
|
})({
|
|
525
525
|
flex: "1 1 0%",
|
|
@@ -527,19 +527,19 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
527
527
|
textOverflow: "ellipsis",
|
|
528
528
|
whiteSpace: "nowrap",
|
|
529
529
|
textAlign: "left"
|
|
530
|
-
}),
|
|
530
|
+
}), Cr = /* @__PURE__ */ o(ht, {
|
|
531
531
|
label: "AgenticDateRangePicker-caret",
|
|
532
532
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
533
533
|
})(({ ownerState: e }) => [
|
|
534
534
|
{
|
|
535
535
|
flexShrink: 0,
|
|
536
|
-
...
|
|
536
|
+
...O,
|
|
537
537
|
transitionProperty: "transform",
|
|
538
538
|
transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
|
|
539
539
|
transitionDuration: ".15s"
|
|
540
540
|
},
|
|
541
|
-
e.open &&
|
|
542
|
-
]),
|
|
541
|
+
e.open && bt({ "--tw-rotate": "180deg" })
|
|
542
|
+
]), Sr = /* @__PURE__ */ o(Yt, {
|
|
543
543
|
label: "AgenticDateRangePicker-content",
|
|
544
544
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
545
545
|
})(({ ownerState: e }) => [
|
|
@@ -558,13 +558,13 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
558
558
|
boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)",
|
|
559
559
|
outline: "2px solid transparent",
|
|
560
560
|
outlineOffset: "2px",
|
|
561
|
-
...
|
|
561
|
+
..._t,
|
|
562
562
|
animation: "bfrs-bfrs-content-in var(--bfrs-motion-normal) var(--bfrs-ease-out)"
|
|
563
563
|
},
|
|
564
564
|
e.widthMode === "presets" && { width: "14rem" },
|
|
565
565
|
e.widthMode === "one" && { width: "min(calc(100vw - 1rem),420px)" },
|
|
566
566
|
e.widthMode === "two" && { width: "min(calc(100vw - 1rem),700px)" }
|
|
567
|
-
]),
|
|
567
|
+
]), Ar = /* @__PURE__ */ o("div", {
|
|
568
568
|
label: "AgenticDateRangePicker-scroll",
|
|
569
569
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
570
570
|
})(({ ownerState: e }) => [
|
|
@@ -579,7 +579,7 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
579
579
|
flexDirection: "column",
|
|
580
580
|
"@media (min-width:768px)": { flexDirection: "row" }
|
|
581
581
|
}
|
|
582
|
-
]),
|
|
582
|
+
]), Tr = /* @__PURE__ */ o("div", {
|
|
583
583
|
label: "AgenticDateRangePicker-presetColumn",
|
|
584
584
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
585
585
|
})(({ ownerState: e }) => [
|
|
@@ -597,13 +597,22 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
597
597
|
borderRightWidth: "1px"
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
]),
|
|
600
|
+
]), Br = /* @__PURE__ */ o("div", {
|
|
601
601
|
label: "AgenticDateRangePicker-presetList"
|
|
602
602
|
})({
|
|
603
603
|
flex: "1 1 0%",
|
|
604
604
|
paddingTop: ".5rem",
|
|
605
605
|
paddingBottom: ".5rem"
|
|
606
|
-
}), dt =
|
|
606
|
+
}), dt = (e) => {
|
|
607
|
+
const c = {
|
|
608
|
+
"--tw-text-opacity": "1",
|
|
609
|
+
color: `hsl(var(--bfrs-color-option-hover-text, var(--bfrs-color-${e})) / var(--tw-text-opacity, 1))`
|
|
610
|
+
};
|
|
611
|
+
return { "&:hover": c, "&:focus-visible": c };
|
|
612
|
+
}, Mr = {
|
|
613
|
+
"--tw-text-opacity": "1",
|
|
614
|
+
color: "hsl(var(--bfrs-color-option-selected-text, var(--bfrs-color-text-primary)) / var(--tw-text-opacity, 1))"
|
|
615
|
+
}, gt = /* @__PURE__ */ o("button", {
|
|
607
616
|
label: "AgenticDateRangePicker-presetButton",
|
|
608
617
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
609
618
|
})(({ ownerState: e }) => [
|
|
@@ -625,14 +634,16 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
625
634
|
"&:focus-visible": it
|
|
626
635
|
},
|
|
627
636
|
e.md ? { height: "2.25rem", paddingLeft: ".75rem", paddingRight: ".75rem" } : { height: "1.75rem", paddingLeft: ".625rem", paddingRight: ".625rem" },
|
|
628
|
-
e.selected ? { ...
|
|
637
|
+
e.selected ? { ...nr, fontWeight: 700, ...Mr, ...dt("text-primary") } : { fontWeight: 500, ...Te, ...dt("text-secondary") },
|
|
638
|
+
// A disabled preset cannot take focus, but :hover still matches it, so its
|
|
639
|
+
// hover rule (declared last) pins the disabled label.
|
|
629
640
|
e.presetDisabled && {
|
|
630
641
|
cursor: "not-allowed",
|
|
631
|
-
...
|
|
642
|
+
..._,
|
|
632
643
|
opacity: ".6",
|
|
633
|
-
"&:hover": { backgroundColor: "transparent" }
|
|
644
|
+
"&:hover": { backgroundColor: "transparent", ..._ }
|
|
634
645
|
}
|
|
635
|
-
]),
|
|
646
|
+
]), zr = /* @__PURE__ */ o("div", {
|
|
636
647
|
label: "AgenticDateRangePicker-rangeLimit"
|
|
637
648
|
})({
|
|
638
649
|
position: "sticky",
|
|
@@ -649,26 +660,26 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
649
660
|
paddingBottom: ".75rem",
|
|
650
661
|
fontSize: ".75rem",
|
|
651
662
|
lineHeight: "1.25rem",
|
|
652
|
-
...
|
|
653
|
-
}),
|
|
663
|
+
...O
|
|
664
|
+
}), Wr = /* @__PURE__ */ o("span", {
|
|
654
665
|
label: "AgenticDateRangePicker-rangeLimitIcon"
|
|
655
666
|
})({
|
|
656
667
|
marginTop: ".125rem",
|
|
657
668
|
display: "flex",
|
|
658
669
|
flexShrink: 0
|
|
659
|
-
}),
|
|
670
|
+
}), Fr = /* @__PURE__ */ o("div", {
|
|
660
671
|
label: "AgenticDateRangePicker-customArea"
|
|
661
672
|
})({
|
|
662
673
|
minWidth: "0px",
|
|
663
674
|
flex: "1 1 0%",
|
|
664
675
|
...Z
|
|
665
|
-
}),
|
|
676
|
+
}), Ir = /* @__PURE__ */ o("div", {
|
|
666
677
|
label: "AgenticDateRangePicker-yearRow"
|
|
667
678
|
})({
|
|
668
679
|
paddingLeft: "1rem",
|
|
669
680
|
paddingRight: "1rem",
|
|
670
681
|
paddingTop: "1rem"
|
|
671
|
-
}),
|
|
682
|
+
}), Lr = /* @__PURE__ */ o("div", {
|
|
672
683
|
label: "AgenticDateRangePicker-yearBanner"
|
|
673
684
|
})({
|
|
674
685
|
display: "flex",
|
|
@@ -679,21 +690,21 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
679
690
|
paddingRight: ".75rem",
|
|
680
691
|
paddingTop: ".5rem",
|
|
681
692
|
paddingBottom: ".5rem"
|
|
682
|
-
}),
|
|
693
|
+
}), Yr = /* @__PURE__ */ o("span", {
|
|
683
694
|
label: "AgenticDateRangePicker-yearText"
|
|
684
695
|
})({
|
|
685
696
|
flex: "1 1 0%",
|
|
686
697
|
fontSize: "12.5px",
|
|
687
698
|
fontWeight: 500,
|
|
688
|
-
...
|
|
689
|
-
}),
|
|
699
|
+
...W
|
|
700
|
+
}), Er = /* @__PURE__ */ o(or, {
|
|
690
701
|
label: "AgenticDateRangePicker-yearSelect"
|
|
691
702
|
})({
|
|
692
703
|
"&&": {
|
|
693
704
|
width: "8rem",
|
|
694
705
|
flexShrink: 0
|
|
695
706
|
}
|
|
696
|
-
}),
|
|
707
|
+
}), Hr = /* @__PURE__ */ o("div", {
|
|
697
708
|
label: "AgenticDateRangePicker-calendarGrid",
|
|
698
709
|
shouldForwardProp: (e) => e !== "ownerState"
|
|
699
710
|
})(({ ownerState: e }) => [
|
|
@@ -704,7 +715,7 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
704
715
|
padding: "1rem"
|
|
705
716
|
},
|
|
706
717
|
e.two ? { "@media (min-width:768px)": { gridTemplateColumns: "repeat(2,minmax(0,1fr))" } } : { gridTemplateColumns: "repeat(1,minmax(0,1fr))" }
|
|
707
|
-
]),
|
|
718
|
+
]), Nr = /* @__PURE__ */ o("div", {
|
|
708
719
|
label: "AgenticDateRangePicker-footer"
|
|
709
720
|
})({
|
|
710
721
|
display: "flex",
|
|
@@ -712,7 +723,7 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
712
723
|
alignItems: "stretch",
|
|
713
724
|
borderTopWidth: "1px",
|
|
714
725
|
...ee
|
|
715
|
-
}),
|
|
726
|
+
}), _r = /* @__PURE__ */ o("div", {
|
|
716
727
|
label: "AgenticDateRangePicker-footerInner"
|
|
717
728
|
})({
|
|
718
729
|
display: "flex",
|
|
@@ -729,59 +740,59 @@ const yr = /* @__PURE__ */ o("div", {
|
|
|
729
740
|
alignItems: "center",
|
|
730
741
|
justifyContent: "space-between"
|
|
731
742
|
}
|
|
732
|
-
}),
|
|
743
|
+
}), Or = /* @__PURE__ */ o("div", {
|
|
733
744
|
label: "AgenticDateRangePicker-selectedBlock"
|
|
734
745
|
})({
|
|
735
746
|
display: "flex",
|
|
736
747
|
flexDirection: "column",
|
|
737
748
|
gap: ".125rem"
|
|
738
|
-
}),
|
|
749
|
+
}), Vr = /* @__PURE__ */ o("div", {
|
|
739
750
|
label: "AgenticDateRangePicker-selectedText"
|
|
740
751
|
})({
|
|
741
752
|
fontSize: "13px",
|
|
742
753
|
...Te
|
|
743
|
-
}),
|
|
754
|
+
}), $r = /* @__PURE__ */ o("span", {
|
|
744
755
|
label: "AgenticDateRangePicker-selectedLabel"
|
|
745
756
|
})({
|
|
746
757
|
fontWeight: 600,
|
|
747
758
|
"--tw-text-opacity": "1",
|
|
748
759
|
color: "hsl(var(--bfrs-color-primary) / var(--tw-text-opacity, 1))"
|
|
749
|
-
}),
|
|
760
|
+
}), pt = /* @__PURE__ */ o("span", {
|
|
750
761
|
label: "AgenticDateRangePicker-selectedValue"
|
|
751
762
|
})({
|
|
752
763
|
fontWeight: 500
|
|
753
|
-
}),
|
|
764
|
+
}), jr = /* @__PURE__ */ o("span", {
|
|
754
765
|
label: "AgenticDateRangePicker-selectedTo"
|
|
755
|
-
})(
|
|
766
|
+
})(O), Gr = /* @__PURE__ */ o("div", {
|
|
756
767
|
label: "AgenticDateRangePicker-incomplete"
|
|
757
768
|
})({
|
|
758
769
|
fontSize: "12px",
|
|
759
770
|
"--tw-text-opacity": "1",
|
|
760
771
|
color: "hsl(var(--bfrs-color-danger) / var(--tw-text-opacity, 1))"
|
|
761
|
-
}),
|
|
772
|
+
}), Ur = /* @__PURE__ */ o("div", {
|
|
762
773
|
label: "AgenticDateRangePicker-footerActions"
|
|
763
774
|
})({
|
|
764
775
|
display: "flex",
|
|
765
776
|
flexWrap: "wrap",
|
|
766
777
|
justifyContent: "flex-end",
|
|
767
778
|
gap: ".5rem"
|
|
768
|
-
}),
|
|
779
|
+
}), Xr = /* @__PURE__ */ o("div", {
|
|
769
780
|
label: "AgenticDateRangePicker-helper"
|
|
770
781
|
})({
|
|
771
782
|
fontSize: ".75rem",
|
|
772
783
|
lineHeight: "1.25rem",
|
|
773
|
-
...
|
|
784
|
+
...O
|
|
774
785
|
});
|
|
775
|
-
function
|
|
786
|
+
function ho({
|
|
776
787
|
className: e,
|
|
777
|
-
value:
|
|
788
|
+
value: c,
|
|
778
789
|
defaultValue: h,
|
|
779
790
|
onChange: d,
|
|
780
|
-
presets: m =
|
|
781
|
-
placeholder:
|
|
791
|
+
presets: m = Jt,
|
|
792
|
+
placeholder: V = "Select date range",
|
|
782
793
|
label: ve,
|
|
783
794
|
helperText: ye,
|
|
784
|
-
size:
|
|
795
|
+
size: $ = "md",
|
|
785
796
|
disabled: Be,
|
|
786
797
|
clearable: Me,
|
|
787
798
|
minDate: F,
|
|
@@ -799,7 +810,7 @@ function po({
|
|
|
799
810
|
applyLabel: ke = "Apply",
|
|
800
811
|
cancelLabel: re = "Cancel",
|
|
801
812
|
clearLabel: Re = "Clear",
|
|
802
|
-
formatDate: g =
|
|
813
|
+
formatDate: g = wt,
|
|
803
814
|
formatRange: l,
|
|
804
815
|
triggerClassName: P,
|
|
805
816
|
contentClassName: y,
|
|
@@ -807,72 +818,72 @@ function po({
|
|
|
807
818
|
rangeLimitClassName: ge,
|
|
808
819
|
restrictToLast3Months: u = !1,
|
|
809
820
|
singleDateMode: T = !1,
|
|
810
|
-
allowedFutureDate:
|
|
821
|
+
allowedFutureDate: M = !1,
|
|
811
822
|
showLastOneYearOnly: L = !1,
|
|
812
|
-
|
|
823
|
+
...j
|
|
813
824
|
}) {
|
|
814
|
-
const D = T ? 1 : ze, [Ie,
|
|
815
|
-
() =>
|
|
825
|
+
const D = T ? 1 : ze, [Ie, vt] = S(() => tt(h ?? {})), n = x(() => tt(c ?? Ie), [c, Ie]), [yt, xt] = S(xe), pe = k ?? yt, [Ge, oe] = S(n.preset ?? f), [p, Y] = S(n), [Ue, ne] = S(), [ae, G] = S(!1), fe = x(
|
|
826
|
+
() => jt(b ?? Qt),
|
|
816
827
|
[b]
|
|
817
828
|
), Le = x(() => {
|
|
818
829
|
const t = de > 0 ? Math.floor(de) : 30;
|
|
819
830
|
return b ? Math.min(t, b) : t;
|
|
820
831
|
}, [de, b]), he = x(
|
|
821
|
-
() => u ?
|
|
832
|
+
() => u ? Ut(Le, fe) : Gt,
|
|
822
833
|
[u, Le, fe]
|
|
823
834
|
), [Ye, ie] = S(
|
|
824
835
|
L ? ue : he
|
|
825
|
-
), [
|
|
836
|
+
), [U, X] = S(() => _e(n, D)), [le, q] = S(() => {
|
|
826
837
|
const t = _e(n, D);
|
|
827
838
|
return B(t.year, t.month, 1);
|
|
828
|
-
}), Xe =
|
|
839
|
+
}), Xe = Nt(!1), J = D, Pe = x(() => {
|
|
829
840
|
if (u) {
|
|
830
841
|
const t = v(/* @__PURE__ */ new Date());
|
|
831
842
|
return { min: Ce(t, -90), max: t };
|
|
832
843
|
}
|
|
833
844
|
return rt(Ye);
|
|
834
|
-
}, [u, Ye]),
|
|
835
|
-
if (
|
|
845
|
+
}, [u, Ye]), K = x(() => {
|
|
846
|
+
if (M)
|
|
836
847
|
return Ce(v(/* @__PURE__ */ new Date()), 1);
|
|
837
848
|
const t = Pe.min;
|
|
838
|
-
return F &&
|
|
839
|
-
}, [
|
|
840
|
-
if (
|
|
849
|
+
return F && z(v(F), t) > 0 ? v(F) : t;
|
|
850
|
+
}, [M, Pe, F]), Q = x(() => {
|
|
851
|
+
if (M)
|
|
841
852
|
return Ce(v(/* @__PURE__ */ new Date()), 365);
|
|
842
853
|
const t = Pe.max;
|
|
843
|
-
return I &&
|
|
844
|
-
}, [
|
|
845
|
-
() => ({ year: J.getFullYear(), month: J.getMonth() }),
|
|
846
|
-
[J]
|
|
847
|
-
), E = x(
|
|
854
|
+
return I && z(v(I), t) < 0 ? v(I) : t;
|
|
855
|
+
}, [M, Pe, I]), me = x(
|
|
848
856
|
() => ({ year: K.getFullYear(), month: K.getMonth() }),
|
|
849
857
|
[K]
|
|
850
|
-
),
|
|
858
|
+
), E = x(
|
|
859
|
+
() => ({ year: Q.getFullYear(), month: Q.getMonth() }),
|
|
860
|
+
[Q]
|
|
861
|
+
), kt = x(() => J !== 2 ? E : B(le.year, le.month, -1), [E, le, J]), Rt = x(() => B(U.year, U.month, 1), [U]), be = De(
|
|
851
862
|
(t) => {
|
|
852
|
-
k === void 0 &&
|
|
863
|
+
k === void 0 && xt(t), R == null || R(t);
|
|
853
864
|
},
|
|
854
865
|
[k, R]
|
|
855
866
|
), Ee = De(
|
|
856
867
|
(t) => {
|
|
857
|
-
|
|
868
|
+
c === void 0 && vt(t), d == null || d(t);
|
|
858
869
|
},
|
|
859
|
-
[d,
|
|
870
|
+
[d, c]
|
|
860
871
|
);
|
|
861
|
-
|
|
872
|
+
mt(() => {
|
|
862
873
|
const t = pe && !Xe.current;
|
|
863
874
|
if (Xe.current = pe, !t) return;
|
|
864
|
-
if (Y(n), oe(n.preset ?? (C(n) ? f : "")), ne(void 0),
|
|
875
|
+
if (Y(n), oe(n.preset ?? (C(n) ? f : "")), ne(void 0), G(!1), C(n) && D === 2) {
|
|
865
876
|
const a = Oe(n.from, n.to, D, {
|
|
866
877
|
minMonth: me,
|
|
867
878
|
maxMonth: E
|
|
868
879
|
});
|
|
869
|
-
|
|
880
|
+
X(a.left), q(a.right);
|
|
870
881
|
} else {
|
|
871
882
|
const a = _e(n, D);
|
|
872
|
-
|
|
883
|
+
X(a), q(B(a.year, a.month, 1));
|
|
873
884
|
}
|
|
874
885
|
if (u) {
|
|
875
|
-
const a = C(n) && n.preset === f && Ae(n.to, v(/* @__PURE__ */ new Date())) ?
|
|
886
|
+
const a = C(n) && n.preset === f && Ae(n.to, v(/* @__PURE__ */ new Date())) ? Xt(ot(n.to, n.from) + 1) : void 0;
|
|
876
887
|
ie(
|
|
877
888
|
a && fe.some((w) => w.value === a) ? a : he
|
|
878
889
|
);
|
|
@@ -881,7 +892,7 @@ function po({
|
|
|
881
892
|
const i = (/* @__PURE__ */ new Date()).getFullYear();
|
|
882
893
|
if (C(n) && n.preset === f) {
|
|
883
894
|
const a = n.from.getFullYear(), w = n.to.getFullYear();
|
|
884
|
-
a === w && a >=
|
|
895
|
+
a === w && a >= ut && a < i ? ie(String(a)) : ie(ue);
|
|
885
896
|
} else
|
|
886
897
|
ie(L ? ue : he);
|
|
887
898
|
}, [
|
|
@@ -895,42 +906,42 @@ function po({
|
|
|
895
906
|
u,
|
|
896
907
|
L
|
|
897
908
|
]);
|
|
898
|
-
const
|
|
909
|
+
const Pt = x(() => {
|
|
899
910
|
if (l)
|
|
900
911
|
return l(n);
|
|
901
|
-
const t =
|
|
902
|
-
return t && n.preset !== f ? t : C(n) ? Ae(n.from, n.to) ? g(n.from) : `${g(n.from)} - ${g(n.to)}` :
|
|
903
|
-
}, [n, g, l,
|
|
912
|
+
const t = qt(m, n.preset);
|
|
913
|
+
return t && n.preset !== f ? t : C(n) ? Ae(n.from, n.to) ? g(n.from) : `${g(n.from)} - ${g(n.to)}` : V;
|
|
914
|
+
}, [n, g, l, V, m]), Dt = De(
|
|
904
915
|
(t) => {
|
|
905
916
|
ie(t);
|
|
906
|
-
const i = rt(t), { from: a, to: w } =
|
|
917
|
+
const i = rt(t), { from: a, to: w } = Kt(i, { minDate: F, maxDate: I, maxRangeDays: b });
|
|
907
918
|
Y({ preset: f, from: a, to: w });
|
|
908
919
|
const ce = Oe(a, w, D, {
|
|
909
920
|
minMonth: { year: a.getFullYear(), month: a.getMonth() },
|
|
910
921
|
maxMonth: { year: w.getFullYear(), month: w.getMonth() }
|
|
911
922
|
});
|
|
912
|
-
|
|
923
|
+
X(ce.left), q(ce.right), G(!1), ne(void 0);
|
|
913
924
|
},
|
|
914
925
|
[D, F, I, b]
|
|
915
926
|
), He = De(
|
|
916
927
|
(t) => {
|
|
917
|
-
const i = v(t), a = v(
|
|
918
|
-
return !!(
|
|
928
|
+
const i = v(t), a = v(K), w = v(Q);
|
|
929
|
+
return !!(z(i, a) < 0 || z(i, w) > 0 || ae && p.from && b && ot(i, p.from) + 1 > b);
|
|
919
930
|
},
|
|
920
|
-
[ae, p.from,
|
|
921
|
-
),
|
|
931
|
+
[ae, p.from, K, Q, b]
|
|
932
|
+
), Ct = (t) => {
|
|
922
933
|
if (t.disabled) return;
|
|
923
934
|
const i = t.getRange(), a = $e(i.from, i.to);
|
|
924
935
|
Ee({ preset: t.id, ...a }), be(!1);
|
|
925
|
-
},
|
|
936
|
+
}, St = () => {
|
|
926
937
|
oe(f), ie(L ? ue : he);
|
|
927
|
-
const t = (ce) =>
|
|
938
|
+
const t = (ce) => z(ce, K) < 0 ? K : z(ce, Q) > 0 ? Q : ce, i = t(v(/* @__PURE__ */ new Date())), a = t(Ce(i, -(Le - 1)));
|
|
928
939
|
Y({ preset: f, from: a, to: i });
|
|
929
940
|
const w = Oe(a, i, D, {
|
|
930
941
|
minMonth: me,
|
|
931
942
|
maxMonth: E
|
|
932
943
|
});
|
|
933
|
-
|
|
944
|
+
X(w.left), q(w.right), G(!1), ne(void 0);
|
|
934
945
|
}, qe = (t) => {
|
|
935
946
|
if (He(t)) return;
|
|
936
947
|
const i = v(t);
|
|
@@ -939,62 +950,62 @@ function po({
|
|
|
939
950
|
return;
|
|
940
951
|
}
|
|
941
952
|
if (!ae || !p.from || p.to) {
|
|
942
|
-
Y({ preset: f, from: i, to: void 0 }), oe(f),
|
|
953
|
+
Y({ preset: f, from: i, to: void 0 }), oe(f), G(!0);
|
|
943
954
|
return;
|
|
944
955
|
}
|
|
945
956
|
const a = $e(p.from, i);
|
|
946
|
-
Y({ preset: f, ...a }),
|
|
947
|
-
}, St = () => {
|
|
948
|
-
C(p) && (Ee({ preset: f, from: p.from, to: p.to }), be(!1));
|
|
957
|
+
Y({ preset: f, ...a }), G(!1);
|
|
949
958
|
}, At = () => {
|
|
950
|
-
|
|
959
|
+
C(p) && (Ee({ preset: f, from: p.from, to: p.to }), be(!1));
|
|
951
960
|
}, Tt = () => {
|
|
952
|
-
|
|
953
|
-
}, Bt =
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
961
|
+
Y(n), oe(n.preset ?? (C(n) ? f : "")), G(!1), ne(void 0), be(!1);
|
|
962
|
+
}, Bt = () => {
|
|
963
|
+
Ee({}), Y({}), oe(""), G(!1), be(!1);
|
|
964
|
+
}, Mt = C(p), H = Ge === f, zt = T ? !!p.from : Mt, Je = te ?? (b ? `Date range can be selected for up to ${b} days.` : u ? "Date can be viewed only for the last 90 days." : T && M ? "Date can be viewed only for a period of future date." : "Date can be viewed only for a period of up to 1 year."), Wt = N(U, me) > 0, Ke = J === 2 ? N(le, E) < 0 : N(U, E) < 0;
|
|
965
|
+
return /* @__PURE__ */ s(xr, { className: e, ...j, children: [
|
|
966
|
+
ve && /* @__PURE__ */ r(kr, { children: ve }),
|
|
967
|
+
/* @__PURE__ */ s(Ft, { open: pe, onOpenChange: be, children: [
|
|
968
|
+
/* @__PURE__ */ r(It, { asChild: !0, children: /* @__PURE__ */ s(
|
|
969
|
+
Rr,
|
|
959
970
|
{
|
|
960
971
|
type: "button",
|
|
961
972
|
disabled: Be,
|
|
962
973
|
"data-filled": C(n) || n.preset ? "" : void 0,
|
|
963
974
|
ownerState: {
|
|
964
|
-
md:
|
|
975
|
+
md: $ === "md",
|
|
965
976
|
empty: !C(n) && !n.preset,
|
|
966
|
-
smFilled:
|
|
977
|
+
smFilled: $ === "sm" && (C(n) || !!n.preset)
|
|
967
978
|
},
|
|
968
979
|
className: P,
|
|
969
980
|
children: [
|
|
970
|
-
/* @__PURE__ */ r(
|
|
971
|
-
/* @__PURE__ */ r(
|
|
972
|
-
/* @__PURE__ */ r(
|
|
981
|
+
/* @__PURE__ */ r(Pr, { size: 13 }),
|
|
982
|
+
/* @__PURE__ */ r(Dr, { children: Pt }),
|
|
983
|
+
/* @__PURE__ */ r(Cr, { size: 10, weight: "bold", ownerState: { open: pe } })
|
|
973
984
|
]
|
|
974
985
|
}
|
|
975
986
|
) }),
|
|
976
|
-
/* @__PURE__ */ r(
|
|
977
|
-
|
|
987
|
+
/* @__PURE__ */ r(Lt, { children: /* @__PURE__ */ r(rr, { children: /* @__PURE__ */ s(
|
|
988
|
+
Sr,
|
|
978
989
|
{
|
|
979
990
|
align: se,
|
|
980
991
|
side: We,
|
|
981
992
|
sideOffset: 6,
|
|
982
|
-
collisionPadding:
|
|
983
|
-
ownerState: { widthMode: H ?
|
|
993
|
+
collisionPadding: $t,
|
|
994
|
+
ownerState: { widthMode: H ? J === 1 ? "one" : "two" : "presets" },
|
|
984
995
|
className: y,
|
|
985
996
|
children: [
|
|
986
|
-
/* @__PURE__ */
|
|
987
|
-
/* @__PURE__ */
|
|
988
|
-
/* @__PURE__ */
|
|
997
|
+
/* @__PURE__ */ s(Ar, { ownerState: { customPanel: H }, children: [
|
|
998
|
+
/* @__PURE__ */ s(Tr, { ownerState: { customPanel: H }, children: [
|
|
999
|
+
/* @__PURE__ */ s(Br, { children: [
|
|
989
1000
|
m.map((t) => {
|
|
990
1001
|
const i = Ge === t.id;
|
|
991
|
-
return /* @__PURE__ */
|
|
992
|
-
|
|
1002
|
+
return /* @__PURE__ */ s(
|
|
1003
|
+
gt,
|
|
993
1004
|
{
|
|
994
1005
|
type: "button",
|
|
995
1006
|
disabled: t.disabled,
|
|
996
|
-
onClick: () =>
|
|
997
|
-
ownerState: { md:
|
|
1007
|
+
onClick: () => Ct(t),
|
|
1008
|
+
ownerState: { md: $ === "md", selected: i, presetDisabled: !!t.disabled },
|
|
998
1009
|
children: [
|
|
999
1010
|
/* @__PURE__ */ r("span", { children: t.label }),
|
|
1000
1011
|
i && /* @__PURE__ */ r(et, { size: 14, weight: "bold" })
|
|
@@ -1003,12 +1014,12 @@ function po({
|
|
|
1003
1014
|
t.id
|
|
1004
1015
|
);
|
|
1005
1016
|
}),
|
|
1006
|
-
/* @__PURE__ */
|
|
1007
|
-
|
|
1017
|
+
/* @__PURE__ */ s(
|
|
1018
|
+
gt,
|
|
1008
1019
|
{
|
|
1009
1020
|
type: "button",
|
|
1010
|
-
onClick:
|
|
1011
|
-
ownerState: { md:
|
|
1021
|
+
onClick: St,
|
|
1022
|
+
ownerState: { md: $ === "md", selected: H, presetDisabled: !1 },
|
|
1012
1023
|
children: [
|
|
1013
1024
|
/* @__PURE__ */ r("span", { children: Fe }),
|
|
1014
1025
|
H && /* @__PURE__ */ r(et, { size: 14, weight: "bold" })
|
|
@@ -1016,30 +1027,30 @@ function po({
|
|
|
1016
1027
|
}
|
|
1017
1028
|
)
|
|
1018
1029
|
] }),
|
|
1019
|
-
Je && H && /* @__PURE__ */
|
|
1020
|
-
/* @__PURE__ */ r(
|
|
1030
|
+
Je && H && /* @__PURE__ */ s(zr, { className: ge, children: [
|
|
1031
|
+
/* @__PURE__ */ r(Wr, { children: /* @__PURE__ */ r(Ot, {}) }),
|
|
1021
1032
|
/* @__PURE__ */ r("span", { children: Je })
|
|
1022
1033
|
] })
|
|
1023
1034
|
] }),
|
|
1024
|
-
H && /* @__PURE__ */
|
|
1025
|
-
!
|
|
1026
|
-
/* @__PURE__ */ r(
|
|
1035
|
+
H && /* @__PURE__ */ s(Fr, { children: [
|
|
1036
|
+
!M && !T && /* @__PURE__ */ r(Ir, { children: /* @__PURE__ */ s(Lr, { style: Vt, children: [
|
|
1037
|
+
/* @__PURE__ */ r(Yr, { children: u ? "Please select the period you want to view data for" : "Please select the year you want to view data for" }),
|
|
1027
1038
|
/* @__PURE__ */ r(
|
|
1028
|
-
|
|
1039
|
+
Er,
|
|
1029
1040
|
{
|
|
1030
1041
|
size: "sm",
|
|
1031
1042
|
value: Ye,
|
|
1032
|
-
onValueChange:
|
|
1043
|
+
onValueChange: Dt,
|
|
1033
1044
|
options: u ? fe : L ? nt.filter((t) => t.value === ue) : nt
|
|
1034
1045
|
}
|
|
1035
1046
|
)
|
|
1036
1047
|
] }) }),
|
|
1037
|
-
/* @__PURE__ */
|
|
1048
|
+
/* @__PURE__ */ s(Hr, { ownerState: { two: J === 2 }, children: [
|
|
1038
1049
|
/* @__PURE__ */ r(
|
|
1039
1050
|
st,
|
|
1040
1051
|
{
|
|
1041
|
-
year:
|
|
1042
|
-
month:
|
|
1052
|
+
year: U.year,
|
|
1053
|
+
month: U.month,
|
|
1043
1054
|
from: p.from,
|
|
1044
1055
|
to: p.to,
|
|
1045
1056
|
hovered: Ue,
|
|
@@ -1047,17 +1058,17 @@ function po({
|
|
|
1047
1058
|
isDateDisabled: He,
|
|
1048
1059
|
onSelectDate: qe,
|
|
1049
1060
|
onHoverDate: ne,
|
|
1050
|
-
onPrev: () =>
|
|
1051
|
-
onNext: () =>
|
|
1052
|
-
onNavigateTo: (t, i) =>
|
|
1061
|
+
onPrev: () => X((t) => B(t.year, t.month, -1)),
|
|
1062
|
+
onNext: () => X((t) => B(t.year, t.month, 1)),
|
|
1063
|
+
onNavigateTo: (t, i) => X({ year: t, month: i }),
|
|
1053
1064
|
minMonth: me,
|
|
1054
|
-
maxMonth:
|
|
1055
|
-
showPrev:
|
|
1056
|
-
showNext:
|
|
1065
|
+
maxMonth: kt,
|
|
1066
|
+
showPrev: Wt,
|
|
1067
|
+
showNext: J !== 2 && Ke,
|
|
1057
1068
|
className: A
|
|
1058
1069
|
}
|
|
1059
1070
|
),
|
|
1060
|
-
|
|
1071
|
+
J === 2 && /* @__PURE__ */ r(
|
|
1061
1072
|
st,
|
|
1062
1073
|
{
|
|
1063
1074
|
year: le.year,
|
|
@@ -1069,10 +1080,10 @@ function po({
|
|
|
1069
1080
|
isDateDisabled: He,
|
|
1070
1081
|
onSelectDate: qe,
|
|
1071
1082
|
onHoverDate: ne,
|
|
1072
|
-
onPrev: () =>
|
|
1073
|
-
onNext: () =>
|
|
1074
|
-
onNavigateTo: (t, i) =>
|
|
1075
|
-
minMonth:
|
|
1083
|
+
onPrev: () => q((t) => B(t.year, t.month, -1)),
|
|
1084
|
+
onNext: () => q((t) => B(t.year, t.month, 1)),
|
|
1085
|
+
onNavigateTo: (t, i) => q({ year: t, month: i }),
|
|
1086
|
+
minMonth: Rt,
|
|
1076
1087
|
maxMonth: E,
|
|
1077
1088
|
showPrev: !1,
|
|
1078
1089
|
showNext: Ke,
|
|
@@ -1082,35 +1093,35 @@ function po({
|
|
|
1082
1093
|
] })
|
|
1083
1094
|
] })
|
|
1084
1095
|
] }),
|
|
1085
|
-
H && /* @__PURE__ */ r(
|
|
1086
|
-
/* @__PURE__ */
|
|
1087
|
-
/* @__PURE__ */
|
|
1088
|
-
/* @__PURE__ */ r(
|
|
1096
|
+
H && /* @__PURE__ */ r(Nr, { children: /* @__PURE__ */ s(_r, { children: [
|
|
1097
|
+
/* @__PURE__ */ s(Or, { children: [
|
|
1098
|
+
/* @__PURE__ */ s(Vr, { children: [
|
|
1099
|
+
/* @__PURE__ */ r($r, { children: "Selected:" }),
|
|
1089
1100
|
" ",
|
|
1090
|
-
/* @__PURE__ */ r(
|
|
1091
|
-
!T && /* @__PURE__ */
|
|
1101
|
+
/* @__PURE__ */ r(pt, { children: p.from ? g(p.from) : "--/--/----" }),
|
|
1102
|
+
!T && /* @__PURE__ */ s(ft, { children: [
|
|
1092
1103
|
" ",
|
|
1093
|
-
/* @__PURE__ */ r(
|
|
1104
|
+
/* @__PURE__ */ r(jr, { children: "To" }),
|
|
1094
1105
|
" ",
|
|
1095
|
-
/* @__PURE__ */ r(
|
|
1106
|
+
/* @__PURE__ */ r(pt, { children: p.to ? g(p.to) : "--/--/----" })
|
|
1096
1107
|
] })
|
|
1097
1108
|
] }),
|
|
1098
|
-
ae && !T && /* @__PURE__ */ r(
|
|
1109
|
+
ae && !T && /* @__PURE__ */ r(Gr, { children: "Date range incomplete. Select both Start and End dates." })
|
|
1099
1110
|
] }),
|
|
1100
|
-
/* @__PURE__ */
|
|
1101
|
-
Me && /* @__PURE__ */ r(Ne, { variant: "ghost", size: "sm", leftIcon: /* @__PURE__ */ r(
|
|
1102
|
-
/* @__PURE__ */ r(Ne, { variant: "outline", size: "sm", onClick:
|
|
1103
|
-
/* @__PURE__ */ r(Ne, { size: "sm", disabled: !
|
|
1111
|
+
/* @__PURE__ */ s(Ur, { children: [
|
|
1112
|
+
Me && /* @__PURE__ */ r(Ne, { variant: "ghost", size: "sm", leftIcon: /* @__PURE__ */ r(Ht, { size: 13, weight: "bold" }), onClick: Bt, children: Re }),
|
|
1113
|
+
/* @__PURE__ */ r(Ne, { variant: "outline", size: "sm", onClick: Tt, children: re }),
|
|
1114
|
+
/* @__PURE__ */ r(Ne, { size: "sm", disabled: !zt, onClick: At, children: ke })
|
|
1104
1115
|
] })
|
|
1105
1116
|
] }) })
|
|
1106
1117
|
]
|
|
1107
1118
|
}
|
|
1108
1119
|
) }) })
|
|
1109
1120
|
] }),
|
|
1110
|
-
ye && /* @__PURE__ */ r(
|
|
1121
|
+
ye && /* @__PURE__ */ r(Xr, { children: ye })
|
|
1111
1122
|
] });
|
|
1112
1123
|
}
|
|
1113
1124
|
export {
|
|
1114
|
-
|
|
1125
|
+
ho as DateRangePicker
|
|
1115
1126
|
};
|
|
1116
1127
|
//# sourceMappingURL=DateRangePicker.js.map
|