@box-kite/react 2.2.15 → 2.2.16
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/.claude/rules/box-kite-rules.md +1 -1
- package/.claude/skills/box-kite/SKILL.md +1 -1
- package/.claude/skills/box-kite/references/styling.md +1 -1
- package/.cursor/rules/box-kite.mdc +1 -1
- package/AGENTS.md +1 -1
- package/BOX_AI_CONTEXT.md +16 -0
- package/BOX_KITE_AI_CONTEXT.md +16 -0
- package/behavior.cjs +1 -1
- package/behavior.mjs +16 -16
- package/catalog.cjs +1 -1
- package/catalog.mjs +1 -1
- package/client.cjs +1 -1
- package/client.mjs +10 -10
- package/components/accordion.cjs +1 -1
- package/components/accordion.mjs +95 -91
- package/components/calendar.cjs +1 -1
- package/components/calendar.mjs +212 -210
- package/components/chart.cjs +1 -1
- package/components/chart.d.ts +8 -3
- package/components/chart.mjs +70 -65
- package/components/combobox.cjs +1 -1
- package/components/combobox.mjs +187 -186
- package/components/dashboard.cjs +1 -1
- package/components/dashboard.d.ts +1 -44
- package/components/dashboard.mjs +202 -201
- package/components/dataGrid/components/dataGridListLayout.d.ts +1 -1
- package/components/dataGrid/contracts/dataGridContract.d.ts +1 -1
- package/components/dataGrid/models/gridModel.d.ts +1 -1
- package/components/dataGrid.cjs +2 -2
- package/components/dataGrid.mjs +10 -10
- package/components/dateField.cjs +1 -1
- package/components/dateField.mjs +96 -96
- package/components/datePicker.cjs +1 -1
- package/components/datePicker.mjs +177 -179
- package/components/dialog.cjs +1 -1
- package/components/dialog.d.ts +2 -64
- package/components/dialog.mjs +130 -126
- package/components/form.cjs +1 -1
- package/components/form.d.ts +4 -3
- package/components/form.mjs +25 -22
- package/components/menu.cjs +1 -1
- package/components/menu.d.ts +2 -73
- package/components/menu.mjs +222 -218
- package/components/overlay.cjs +1 -1
- package/components/overlay.mjs +43 -43
- package/components/popover.cjs +1 -1
- package/components/popover.d.ts +1 -41
- package/components/popover.mjs +55 -51
- package/components/radioGroup.cjs +1 -1
- package/components/radioGroup.mjs +59 -55
- package/components/slider.cjs +1 -1
- package/components/slider.d.ts +1 -55
- package/components/slider.mjs +92 -90
- package/components/sortableList.cjs +1 -1
- package/components/sortableList.mjs +149 -148
- package/components/swipeItem.cjs +1 -1
- package/components/swipeItem.mjs +100 -100
- package/components/tabs.cjs +1 -1
- package/components/tabs.mjs +135 -132
- package/components/toaster.cjs +1 -1
- package/components/toaster.d.ts +1 -37
- package/components/toaster.mjs +130 -128
- package/components/tooltip.cjs +1 -1
- package/components/tooltip.d.ts +1 -34
- package/components/tooltip.mjs +73 -69
- package/components/virtualList.cjs +1 -1
- package/components/virtualList.mjs +88 -87
- package/interactionListening.cjs +1 -1
- package/interactionListening.mjs +3 -3
- package/layer.cjs +1 -1
- package/layer.mjs +1 -1
- package/package.json +31 -30
- package/placement.cjs +1 -1
- package/placement.mjs +1 -1
- package/platform.cjs +1 -1
- package/platform.mjs +17 -14
- package/react/componentsContext.d.ts +1 -1
- package/react-shared.cjs +1 -1
- package/react-shared.mjs +1 -1
- package/scrolling.cjs +1 -1
- package/scrolling.mjs +1 -1
- package/utils/chart/chartUtils.d.ts +3 -2
- package/utils/dashboard/dashboardUtils.d.ts +1 -1
- package/utils/dom/domUtils.d.ts +6 -0
- package/create/src/agents.d.ts +0 -22
- package/create/src/agents.test.d.ts +0 -1
- package/create/src/index.d.ts +0 -1
- package/create/src/options.d.ts +0 -31
- package/create/src/options.test.d.ts +0 -1
- package/create/src/packageManager.d.ts +0 -5
- package/create/src/project.d.ts +0 -27
- package/create/src/project.test.d.ts +0 -1
- package/create/templates/ts/designs/azure.d.ts +0 -5
- package/create/templates/ts/designs/ember.d.ts +0 -5
- package/create/templates/ts/designs/mono.d.ts +0 -5
- package/create/templates/ts/src/App.d.ts +0 -2
- package/create/templates/ts/src/design.d.ts +0 -5
- package/create/templates/ts/src/main.d.ts +0 -0
- package/mcp/src/data.d.ts +0 -90
- package/mcp/src/data.test.d.ts +0 -1
- package/mcp/src/engine.d.ts +0 -23
- package/mcp/src/index.d.ts +0 -1
- package/mcp/src/search.d.ts +0 -38
- package/mcp/src/search.test.d.ts +0 -1
- package/mcp/src/server.d.ts +0 -18
- package/mcp/src/server.test.d.ts +0 -1
- package/mcp/src/styles.d.ts +0 -27
- package/mcp/src/styles.test.d.ts +0 -1
- package/mcp/src/tools.d.ts +0 -18
- package/mcp/src/vocabulary.d.ts +0 -41
- package/registry/blocks/dashboard-shell/dashboard-shell.d.ts +0 -24
- package/registry/blocks/dashboard-shell/dashboard-stats.d.ts +0 -13
- package/registry/blocks/data-grid/invoice-rows.d.ts +0 -15
- package/registry/blocks/data-grid/invoices-grid.d.ts +0 -1
- package/registry/blocks/settings-form/settings-form.d.ts +0 -17
- package/registry/designs/store/address-form.d.ts +0 -11
- package/registry/designs/store/cart-items.d.ts +0 -10
- package/registry/designs/store/cart-page.d.ts +0 -4
- package/registry/designs/store/checkout-page.d.ts +0 -7
- package/registry/designs/store/credit-card-form.d.ts +0 -10
- package/registry/designs/store/form-field.d.ts +0 -19
- package/registry/designs/store/order-summary.d.ts +0 -18
- package/registry/designs/store/product-art.d.ts +0 -26
- package/registry/designs/store/product-card.d.ts +0 -11
- package/registry/designs/store/product-gallery.d.ts +0 -11
- package/registry/designs/store/product-grid.d.ts +0 -10
- package/registry/designs/store/product-page.d.ts +0 -5
- package/registry/designs/store/quantity-stepper.d.ts +0 -13
- package/registry/designs/store/shipping-method.d.ts +0 -14
- package/registry/designs/store/store-data.d.ts +0 -53
- package/registry/designs/store/store-design.d.ts +0 -63
- package/registry/designs/store/store-shell.d.ts +0 -12
- package/registry/designs/store/storefront-page.d.ts +0 -4
- package/registry/designs/store/variant-picker.d.ts +0 -15
- package/supabase/functions/collect/index.d.ts +0 -30
- package/supabase/functions/collect/index.test.d.ts +0 -1
|
@@ -1,28 +1,29 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { f as e } from "../react-shared.mjs";
|
|
3
|
-
import t from "../
|
|
4
|
-
import
|
|
5
|
-
import { t as i } from "../
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { l as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import ee from "
|
|
13
|
-
import
|
|
14
|
-
import S from "
|
|
15
|
-
import C from "./
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
3
|
+
import { l as t } from "../platform.mjs";
|
|
4
|
+
import n from "../box.mjs";
|
|
5
|
+
import { a as r, t as i } from "../behavior.mjs";
|
|
6
|
+
import { t as a } from "../placement.mjs";
|
|
7
|
+
import { n as o, s, t as c } from "../dates.mjs";
|
|
8
|
+
import { A as l, N as u, O as d, i as f, r as p, x as m } from "../date-math.mjs";
|
|
9
|
+
import { l as h, s as g } from "../date-input.mjs";
|
|
10
|
+
import { a as _, t as v } from "../reporting.mjs";
|
|
11
|
+
import { Path as y, Svg as b } from "./svg.mjs";
|
|
12
|
+
import { n as ee } from "../date-environment.mjs";
|
|
13
|
+
import x from "./calendar.mjs";
|
|
14
|
+
import { t as S } from "../layer.mjs";
|
|
15
|
+
import C from "./overlay.mjs";
|
|
16
|
+
import w from "./dateField.mjs";
|
|
17
|
+
import { useCallback as T, useEffect as E, useMemo as D, useRef as O, useState as te } from "react";
|
|
18
|
+
import { Fragment as ne, jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
18
19
|
//#region src/components/datePicker.tsx
|
|
19
|
-
function
|
|
20
|
-
return /* @__PURE__ */ k(
|
|
20
|
+
function re() {
|
|
21
|
+
return /* @__PURE__ */ k(b, {
|
|
21
22
|
viewBox: "0 0 16 16",
|
|
22
23
|
width: "1rem",
|
|
23
24
|
height: "1rem",
|
|
24
25
|
props: { fill: "none" },
|
|
25
|
-
children: /* @__PURE__ */ k(
|
|
26
|
+
children: /* @__PURE__ */ k(y, {
|
|
26
27
|
d: "M3 3.5h10a1 1 0 0 1 1 1V13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4.5a1 1 0 0 1 1-1ZM2 7h12M5.5 2v3M10.5 2v3",
|
|
27
28
|
stroke: "currentColor",
|
|
28
29
|
strokeWidth: 1.5,
|
|
@@ -30,13 +31,13 @@ function ne() {
|
|
|
30
31
|
})
|
|
31
32
|
});
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
return /* @__PURE__ */ k(
|
|
34
|
+
function ie() {
|
|
35
|
+
return /* @__PURE__ */ k(b, {
|
|
35
36
|
viewBox: "0 0 16 16",
|
|
36
37
|
width: "1rem",
|
|
37
38
|
height: "1rem",
|
|
38
39
|
props: { fill: "none" },
|
|
39
|
-
children: /* @__PURE__ */ k(
|
|
40
|
+
children: /* @__PURE__ */ k(y, {
|
|
40
41
|
d: "M8 14A6 6 0 1 0 8 2a6 6 0 0 0 0 12ZM8 5v3l2 1.5",
|
|
41
42
|
stroke: "currentColor",
|
|
42
43
|
strokeWidth: 1.5,
|
|
@@ -45,13 +46,13 @@ function re() {
|
|
|
45
46
|
})
|
|
46
47
|
});
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
-
return /* @__PURE__ */ k(
|
|
49
|
+
function ae() {
|
|
50
|
+
return /* @__PURE__ */ k(b, {
|
|
50
51
|
viewBox: "0 0 16 16",
|
|
51
52
|
width: "0.875rem",
|
|
52
53
|
height: "0.875rem",
|
|
53
54
|
props: { fill: "none" },
|
|
54
|
-
children: /* @__PURE__ */ k(
|
|
55
|
+
children: /* @__PURE__ */ k(y, {
|
|
55
56
|
d: "m4.5 4.5 7 7m0-7-7 7",
|
|
56
57
|
stroke: "currentColor",
|
|
57
58
|
strokeWidth: 1.5,
|
|
@@ -59,13 +60,10 @@ function ie() {
|
|
|
59
60
|
})
|
|
60
61
|
});
|
|
61
62
|
}
|
|
62
|
-
function
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
let [r, a] = O(null), o = e.ref, s = w((e) => {
|
|
67
|
-
a(e), j(o, e);
|
|
68
|
-
}, [o]), c = (e) => {
|
|
63
|
+
function oe(e) {
|
|
64
|
+
let [i, o] = te(null), s = e.ref, c = T((e) => {
|
|
65
|
+
o(e), t(s, e);
|
|
66
|
+
}, [s]), l = (e) => {
|
|
69
67
|
if (!e || e.contains(document.activeElement) && document.activeElement !== e) return;
|
|
70
68
|
let t = [
|
|
71
69
|
"[data-date][tabindex=\"0\"]",
|
|
@@ -73,7 +71,7 @@ function ae(e) {
|
|
|
73
71
|
"button:not([disabled])"
|
|
74
72
|
].map((t) => e.querySelector(t)).find(Boolean), n = e.querySelector("[role=\"listbox\"]"), r = n?.querySelector("[role=\"option\"][tabindex=\"0\"]");
|
|
75
73
|
n && r && (n.scrollTop = r.offsetTop - n.clientHeight / 2 + r.offsetHeight / 2), (t ?? e).focus({ preventScroll: !0 });
|
|
76
|
-
},
|
|
74
|
+
}, u = r((e) => l(e)), { platform: d, isOpen: f, id: p, setPanel: m, setOpen: h, trigger: g, triggerElement: _, panelElement: v } = S({
|
|
77
75
|
haspopup: "dialog",
|
|
78
76
|
idPrefix: "date-picker",
|
|
79
77
|
open: e.open,
|
|
@@ -83,84 +81,84 @@ function ae(e) {
|
|
|
83
81
|
component: "datePicker",
|
|
84
82
|
type: "openChange"
|
|
85
83
|
},
|
|
86
|
-
onOpened:
|
|
84
|
+
onOpened: u,
|
|
87
85
|
onClosing: (e, t) => {
|
|
88
86
|
e && t?.focus();
|
|
89
87
|
}
|
|
90
|
-
}),
|
|
88
|
+
}), y = a({
|
|
91
89
|
side: e.side,
|
|
92
90
|
align: e.align,
|
|
93
91
|
offset: 1,
|
|
94
92
|
flip: !0,
|
|
95
93
|
matchWidth: e.matchWidth,
|
|
96
|
-
anchor:
|
|
94
|
+
anchor: i
|
|
97
95
|
});
|
|
98
|
-
return
|
|
99
|
-
|
|
100
|
-
}, [
|
|
101
|
-
attachTrigger:
|
|
102
|
-
triggerAttributes:
|
|
103
|
-
triggerElement:
|
|
96
|
+
return E(() => {
|
|
97
|
+
f && l(v);
|
|
98
|
+
}, [f, v]), {
|
|
99
|
+
attachTrigger: g.ref,
|
|
100
|
+
triggerAttributes: g.props,
|
|
101
|
+
triggerElement: _,
|
|
104
102
|
closeOnChoice: (e) => {
|
|
105
|
-
|
|
103
|
+
_?.focus(), h(!1, {
|
|
106
104
|
reason: "select",
|
|
107
105
|
event: e
|
|
108
106
|
});
|
|
109
107
|
},
|
|
110
|
-
id:
|
|
111
|
-
attachField:
|
|
112
|
-
panel: (
|
|
113
|
-
let
|
|
108
|
+
id: p,
|
|
109
|
+
attachField: c,
|
|
110
|
+
panel: (t) => {
|
|
111
|
+
let r = {
|
|
114
112
|
role: "dialog",
|
|
115
113
|
"aria-label": e.label,
|
|
116
114
|
tabIndex: -1
|
|
117
115
|
};
|
|
118
|
-
return
|
|
119
|
-
ref:
|
|
116
|
+
return d ? /* @__PURE__ */ k(n, {
|
|
117
|
+
ref: m,
|
|
120
118
|
component: "popover",
|
|
121
119
|
variant: { topLayer: !0 },
|
|
122
120
|
p: 3,
|
|
123
|
-
...
|
|
124
|
-
id:
|
|
121
|
+
...y.layerProps,
|
|
122
|
+
id: p,
|
|
125
123
|
props: {
|
|
126
124
|
popover: "auto",
|
|
127
|
-
...
|
|
125
|
+
...r
|
|
128
126
|
},
|
|
129
|
-
children:
|
|
130
|
-
}) :
|
|
131
|
-
contentRef:
|
|
132
|
-
anchor:
|
|
127
|
+
children: f ? t : null
|
|
128
|
+
}) : f && /* @__PURE__ */ k(C, {
|
|
129
|
+
contentRef: m,
|
|
130
|
+
anchor: i,
|
|
133
131
|
side: e.side,
|
|
134
132
|
align: e.align,
|
|
135
133
|
offset: 1,
|
|
136
134
|
matchWidth: e.matchWidth,
|
|
137
135
|
component: "popover",
|
|
138
136
|
p: 3,
|
|
139
|
-
id:
|
|
140
|
-
props:
|
|
141
|
-
children:
|
|
137
|
+
id: p,
|
|
138
|
+
props: r,
|
|
139
|
+
children: t
|
|
142
140
|
});
|
|
143
141
|
}
|
|
144
142
|
};
|
|
145
143
|
}
|
|
146
|
-
function
|
|
147
|
-
let { value:
|
|
144
|
+
function se(e) {
|
|
145
|
+
let { value: t, step: r, locale: a, hourCycle: o, onSelect: s, label: l, min: u, max: d, emptyLabel: f, separated: p } = e, m = D(() => h(r, {
|
|
148
146
|
min: u,
|
|
149
147
|
max: d
|
|
150
148
|
}), [
|
|
151
|
-
|
|
149
|
+
r,
|
|
152
150
|
u,
|
|
153
151
|
d
|
|
154
|
-
]), _ =
|
|
155
|
-
count:
|
|
152
|
+
]), _ = g(t, r), v = Math.max(0, _ ? m.indexOf(_) : m.indexOf("09:00:00")), y = i({
|
|
153
|
+
count: m.length,
|
|
156
154
|
defaultActiveIndex: v,
|
|
157
155
|
loop: !1,
|
|
158
|
-
onSelect: (e, t) =>
|
|
156
|
+
onSelect: (e, t) => s(m[e], t)
|
|
159
157
|
}), b = p ? {
|
|
160
158
|
ps: 2,
|
|
161
159
|
bs: 1
|
|
162
160
|
} : {};
|
|
163
|
-
return
|
|
161
|
+
return m.length === 0 ? /* @__PURE__ */ k(n, {
|
|
164
162
|
component: "datePicker.empty",
|
|
165
163
|
flexGrow: 1,
|
|
166
164
|
px: 3,
|
|
@@ -169,7 +167,7 @@ function oe(e) {
|
|
|
169
167
|
...b,
|
|
170
168
|
props: { role: "status" },
|
|
171
169
|
children: f
|
|
172
|
-
}) : /* @__PURE__ */ k(
|
|
170
|
+
}) : /* @__PURE__ */ k(n, {
|
|
173
171
|
component: "datePicker.times",
|
|
174
172
|
position: "relative",
|
|
175
173
|
display: "flex",
|
|
@@ -185,7 +183,7 @@ function oe(e) {
|
|
|
185
183
|
"aria-label": l,
|
|
186
184
|
onKeyDown: y.onKeyDown
|
|
187
185
|
},
|
|
188
|
-
children:
|
|
186
|
+
children: m.map((e, t) => /* @__PURE__ */ k(n, {
|
|
189
187
|
component: "datePicker.time",
|
|
190
188
|
variant: { selected: e === _ },
|
|
191
189
|
px: 3,
|
|
@@ -198,10 +196,10 @@ function oe(e) {
|
|
|
198
196
|
props: {
|
|
199
197
|
role: "option",
|
|
200
198
|
"aria-selected": e === _,
|
|
201
|
-
...y.itemProps(
|
|
202
|
-
onClick: (t) =>
|
|
199
|
+
...y.itemProps(t),
|
|
200
|
+
onClick: (t) => s(e, t)
|
|
203
201
|
},
|
|
204
|
-
children:
|
|
202
|
+
children: c(e, {
|
|
205
203
|
locale: a,
|
|
206
204
|
hour: "numeric",
|
|
207
205
|
minute: "2-digit",
|
|
@@ -210,8 +208,8 @@ function oe(e) {
|
|
|
210
208
|
}, e))
|
|
211
209
|
});
|
|
212
210
|
}
|
|
213
|
-
function
|
|
214
|
-
return /* @__PURE__ */ k(
|
|
211
|
+
function ce(e) {
|
|
212
|
+
return /* @__PURE__ */ k(n, {
|
|
215
213
|
component: "datePicker.presets",
|
|
216
214
|
display: "flex",
|
|
217
215
|
d: "column",
|
|
@@ -219,10 +217,10 @@ function se(e) {
|
|
|
219
217
|
pe: 2,
|
|
220
218
|
be: 1,
|
|
221
219
|
props: { role: "group" },
|
|
222
|
-
children: e.presets.map((
|
|
220
|
+
children: e.presets.map((t) => /* @__PURE__ */ k(n, {
|
|
223
221
|
tag: "button",
|
|
224
222
|
component: "datePicker.preset",
|
|
225
|
-
variant: { selected: e.isSelected(
|
|
223
|
+
variant: { selected: e.isSelected(t.value) },
|
|
226
224
|
px: 3,
|
|
227
225
|
py: 1.5,
|
|
228
226
|
borderRadius: 2,
|
|
@@ -231,18 +229,18 @@ function se(e) {
|
|
|
231
229
|
whiteSpace: "nowrap",
|
|
232
230
|
props: {
|
|
233
231
|
type: "button",
|
|
234
|
-
onClick: (
|
|
232
|
+
onClick: (n) => e.onSelect(t.value, n)
|
|
235
233
|
},
|
|
236
|
-
children:
|
|
237
|
-
},
|
|
234
|
+
children: t.label
|
|
235
|
+
}, t.label))
|
|
238
236
|
});
|
|
239
237
|
}
|
|
240
|
-
function
|
|
241
|
-
let { frame:
|
|
242
|
-
return
|
|
238
|
+
function le(e) {
|
|
239
|
+
let { frame: t, attachField: i, attachTrigger: a, triggerAttributes: o, triggerElement: s, id: c, label: l, labelledBy: u, describedBy: d } = e, { text: f, placeholder: p, icon: m, clear: h, disabled: g, invalid: _, required: v = !1, tabIndex: y, inputs: b, onReset: ee } = e, x = O(null), S = l === void 0 ? void 0 : `${c}-label`, C = `${c}-value`, w = r(ee);
|
|
240
|
+
return E(() => {
|
|
243
241
|
let e = x.current?.form;
|
|
244
242
|
if (e) return e.addEventListener("reset", w), () => e.removeEventListener("reset", w);
|
|
245
|
-
}, [w]), /* @__PURE__ */ A(
|
|
243
|
+
}, [w]), /* @__PURE__ */ A(ne, { children: [l !== void 0 && /* @__PURE__ */ k(n, {
|
|
246
244
|
component: "dateField.label",
|
|
247
245
|
display: "block",
|
|
248
246
|
mb: 1.5,
|
|
@@ -250,7 +248,7 @@ function ce(e) {
|
|
|
250
248
|
id: S,
|
|
251
249
|
props: { onClick: () => s?.focus() },
|
|
252
250
|
children: l
|
|
253
|
-
}), /* @__PURE__ */ A(
|
|
251
|
+
}), /* @__PURE__ */ A(n, {
|
|
254
252
|
ref: i,
|
|
255
253
|
component: "dateField",
|
|
256
254
|
display: "inline-flex",
|
|
@@ -258,13 +256,13 @@ function ce(e) {
|
|
|
258
256
|
position: "relative",
|
|
259
257
|
cursor: "pointer",
|
|
260
258
|
css: { fontVariantNumeric: "tabular-nums" },
|
|
261
|
-
...
|
|
262
|
-
variant: [
|
|
259
|
+
...t,
|
|
260
|
+
variant: [t.variant, {
|
|
263
261
|
disabled: g,
|
|
264
262
|
invalid: _
|
|
265
263
|
}],
|
|
266
264
|
children: [
|
|
267
|
-
/* @__PURE__ */ k(
|
|
265
|
+
/* @__PURE__ */ k(n, {
|
|
268
266
|
tag: "button",
|
|
269
267
|
ref: a,
|
|
270
268
|
component: "datePicker.value",
|
|
@@ -295,12 +293,12 @@ function ce(e) {
|
|
|
295
293
|
children: f || p
|
|
296
294
|
})
|
|
297
295
|
}),
|
|
298
|
-
/* @__PURE__ */ A(
|
|
296
|
+
/* @__PURE__ */ A(n, {
|
|
299
297
|
display: "inline-flex",
|
|
300
298
|
ai: "center",
|
|
301
299
|
gap: 1,
|
|
302
300
|
ms: 2,
|
|
303
|
-
children: [h, /* @__PURE__ */ k(
|
|
301
|
+
children: [h, /* @__PURE__ */ k(n, {
|
|
304
302
|
component: "datePicker.icon",
|
|
305
303
|
display: "inline-flex",
|
|
306
304
|
ai: "center",
|
|
@@ -312,9 +310,9 @@ function ce(e) {
|
|
|
312
310
|
children: m
|
|
313
311
|
})]
|
|
314
312
|
}),
|
|
315
|
-
b.map((e,
|
|
313
|
+
b.map((e, t) => v ? /* @__PURE__ */ k(n, {
|
|
316
314
|
tag: "input",
|
|
317
|
-
ref:
|
|
315
|
+
ref: t === 0 ? x : void 0,
|
|
318
316
|
component: "dateField.validation",
|
|
319
317
|
required: !0,
|
|
320
318
|
disabled: g,
|
|
@@ -327,34 +325,34 @@ function ce(e) {
|
|
|
327
325
|
onChange: () => {},
|
|
328
326
|
onFocus: () => s?.focus()
|
|
329
327
|
}
|
|
330
|
-
},
|
|
331
|
-
ref:
|
|
328
|
+
}, t) : e.name === void 0 ? null : /* @__PURE__ */ k("input", {
|
|
329
|
+
ref: t === 0 ? x : void 0,
|
|
332
330
|
type: "hidden",
|
|
333
331
|
name: e.name,
|
|
334
332
|
value: e.value,
|
|
335
333
|
disabled: g
|
|
336
|
-
},
|
|
334
|
+
}, t))
|
|
337
335
|
]
|
|
338
336
|
})] });
|
|
339
337
|
}
|
|
340
|
-
function
|
|
341
|
-
let { type: r = "date", value: i, defaultValue: a = null, onValueChange:
|
|
342
|
-
locale:
|
|
338
|
+
function j(e, t) {
|
|
339
|
+
let { type: r = "date", value: i, defaultValue: a = null, onValueChange: o, zone: h, locale: g, hourCycle: y, granularity: b, disambiguation: S, min: C, max: T, isDateUnavailable: E, disabled: D = !1, readOnly: O = !1, required: te, invalid: j, name: M, label: N, labelledBy: P, describedBy: ue, open: de, defaultOpen: fe, onOpenChange: pe, closeOnSelect: F = !0, firstDayOfWeek: I, weekNumbers: me, side: L = "bottom", align: R = "start", matchWidth: he = r === "time", emptyTimesLabel: z = "No times available", clearable: ge = !1, pickOnly: B = !1, triggerLabel: _e, clearLabel: ve = "Clear", tabIndex: V, step: H = 30, defaultTime: U = "00:00", presets: W, showZone: G, ...ye } = e, K = ee({
|
|
340
|
+
locale: g,
|
|
343
341
|
zone: h === "none" ? void 0 : h
|
|
344
|
-
}), { locale: q } = K, J = r === "datetime" && h !== "none" ? K.zone : null, Y = J ?? K.zone, [X, Z] =
|
|
342
|
+
}), { locale: q } = K, J = r === "datetime" && h !== "none" ? K.zone : null, Y = J ?? K.zone, [X, Z] = _({
|
|
345
343
|
value: i,
|
|
346
344
|
defaultValue: a,
|
|
347
|
-
onChange: (e, t) =>
|
|
345
|
+
onChange: (e, t) => o?.(e, {
|
|
348
346
|
...t,
|
|
349
|
-
...
|
|
347
|
+
...m(e, Y)
|
|
350
348
|
}),
|
|
351
349
|
interaction: {
|
|
352
350
|
component: "datePicker",
|
|
353
351
|
type: "valueChange",
|
|
354
352
|
content: ["value"]
|
|
355
353
|
}
|
|
356
|
-
}), Q = _e ?? (r === "time" ? "Choose time" : "Choose date"), be = typeof
|
|
357
|
-
ref:
|
|
354
|
+
}), Q = _e ?? (r === "time" ? "Choose time" : "Choose date"), be = typeof N == "string" ? N : Q, { attachTrigger: xe, triggerAttributes: Se, triggerElement: Ce, closeOnChoice: we, id: Te, attachField: Ee, panel: De } = oe({
|
|
355
|
+
ref: t,
|
|
358
356
|
open: de,
|
|
359
357
|
defaultOpen: fe,
|
|
360
358
|
onOpenChange: pe,
|
|
@@ -362,7 +360,7 @@ function M(e, n) {
|
|
|
362
360
|
align: R,
|
|
363
361
|
matchWidth: he,
|
|
364
362
|
label: be
|
|
365
|
-
}), $ = X && r !== "time" ?
|
|
363
|
+
}), $ = X && r !== "time" ? d(X, { zone: Y }) : null, Oe = X && r !== "date" ? l(X, { zone: Y }) : null, ke = r === "datetime" ? $ ?? u(Y) : null, Ae = (e) => e && (ke === null || d(e, { zone: Y }) === ke) ? l(e, { zone: Y }) : null, je = X ? c(X, {
|
|
366
364
|
locale: q,
|
|
367
365
|
zone: Y,
|
|
368
366
|
hourCycle: y === void 0 ? void 0 : y === 12 ? "h12" : "h23",
|
|
@@ -370,11 +368,11 @@ function M(e, n) {
|
|
|
370
368
|
dateStyle: "medium",
|
|
371
369
|
timeStyle: "short"
|
|
372
370
|
}
|
|
373
|
-
}) : "", Me = B && X && J && (G ?? J !== K.readerZone) ?
|
|
371
|
+
}) : "", Me = B && X && J && (G ?? J !== K.readerZone) ? s(J, {
|
|
374
372
|
locale: q,
|
|
375
373
|
style: "short",
|
|
376
374
|
at: X
|
|
377
|
-
}) : null, Ne = we, Pe = (e, t) =>
|
|
375
|
+
}) : null, Ne = we, Pe = (e, t) => p(e, t, J ? {
|
|
378
376
|
zone: J,
|
|
379
377
|
disambiguation: S
|
|
380
378
|
} : {}), Fe = (e, t) => {
|
|
@@ -386,11 +384,11 @@ function M(e, n) {
|
|
|
386
384
|
event: t
|
|
387
385
|
}));
|
|
388
386
|
}, Ie = (e, t) => {
|
|
389
|
-
Z(r === "time" ? e : Pe($ ??
|
|
387
|
+
Z(r === "time" ? e : Pe($ ?? u(Y), e), {
|
|
390
388
|
reason: "select",
|
|
391
389
|
event: t
|
|
392
390
|
}), F && Ne(t);
|
|
393
|
-
}, Le = /* @__PURE__ */ k(
|
|
391
|
+
}, Le = /* @__PURE__ */ k(n, {
|
|
394
392
|
tag: "button",
|
|
395
393
|
ref: xe,
|
|
396
394
|
component: "datePicker.trigger",
|
|
@@ -409,8 +407,8 @@ function M(e, n) {
|
|
|
409
407
|
tabIndex: V,
|
|
410
408
|
...Se
|
|
411
409
|
},
|
|
412
|
-
children: k(r === "time" ?
|
|
413
|
-
}), Re = ge && X && !D && !O && /* @__PURE__ */ k(
|
|
410
|
+
children: k(r === "time" ? ie : re, {})
|
|
411
|
+
}), Re = ge && X && !D && !O && /* @__PURE__ */ k(n, {
|
|
414
412
|
tag: "button",
|
|
415
413
|
component: "datePicker.clear",
|
|
416
414
|
display: "inline-flex",
|
|
@@ -431,34 +429,34 @@ function M(e, n) {
|
|
|
431
429
|
event: e
|
|
432
430
|
})
|
|
433
431
|
},
|
|
434
|
-
children: /* @__PURE__ */ k(
|
|
435
|
-
}), ze = X !== null && (
|
|
432
|
+
children: /* @__PURE__ */ k(ae, {})
|
|
433
|
+
}), ze = X !== null && (C != null && f(X, C) < 0 || T != null && f(X, T) > 0), Be = B ? /* @__PURE__ */ k(le, {
|
|
436
434
|
frame: ye,
|
|
437
435
|
attachField: Ee,
|
|
438
436
|
attachTrigger: O ? void 0 : xe,
|
|
439
437
|
triggerAttributes: O ? void 0 : Se,
|
|
440
438
|
triggerElement: Ce,
|
|
441
439
|
id: Te,
|
|
442
|
-
label:
|
|
443
|
-
labelledBy:
|
|
440
|
+
label: N,
|
|
441
|
+
labelledBy: P,
|
|
444
442
|
describedBy: ue,
|
|
445
443
|
text: Me ? `${je} ${Me}` : je,
|
|
446
444
|
placeholder: Q,
|
|
447
|
-
icon: k(r === "time" ?
|
|
445
|
+
icon: k(r === "time" ? ie : re, {}),
|
|
448
446
|
clear: Re,
|
|
449
447
|
disabled: D,
|
|
450
|
-
invalid:
|
|
451
|
-
required:
|
|
448
|
+
invalid: j ?? (ze || $ !== null && !!E?.($)),
|
|
449
|
+
required: te,
|
|
452
450
|
tabIndex: V,
|
|
453
451
|
inputs: [{
|
|
454
|
-
name:
|
|
452
|
+
name: M,
|
|
455
453
|
value: X ?? ""
|
|
456
454
|
}],
|
|
457
455
|
onReset: (e) => Z(a, {
|
|
458
456
|
reason: "reset",
|
|
459
457
|
event: e
|
|
460
458
|
})
|
|
461
|
-
}) : /* @__PURE__ */ k(
|
|
459
|
+
}) : /* @__PURE__ */ k(w, {
|
|
462
460
|
ref: Ee,
|
|
463
461
|
...ye,
|
|
464
462
|
type: r,
|
|
@@ -468,33 +466,33 @@ function M(e, n) {
|
|
|
468
466
|
event: t.event
|
|
469
467
|
}),
|
|
470
468
|
zone: h,
|
|
471
|
-
locale:
|
|
469
|
+
locale: g,
|
|
472
470
|
hourCycle: y,
|
|
473
|
-
granularity:
|
|
471
|
+
granularity: b,
|
|
474
472
|
disambiguation: S,
|
|
475
|
-
min:
|
|
473
|
+
min: C,
|
|
476
474
|
max: T,
|
|
477
475
|
isDateUnavailable: E,
|
|
478
476
|
disabled: D,
|
|
479
477
|
readOnly: O,
|
|
480
|
-
required:
|
|
481
|
-
invalid:
|
|
482
|
-
name:
|
|
483
|
-
label:
|
|
484
|
-
labelledBy:
|
|
478
|
+
required: te,
|
|
479
|
+
invalid: j,
|
|
480
|
+
name: M,
|
|
481
|
+
label: N,
|
|
482
|
+
labelledBy: P,
|
|
485
483
|
describedBy: ue,
|
|
486
484
|
showZone: G,
|
|
487
485
|
tabIndex: V,
|
|
488
|
-
end: /* @__PURE__ */ A(
|
|
486
|
+
end: /* @__PURE__ */ A(ne, { children: [Re, Le] })
|
|
489
487
|
});
|
|
490
|
-
return /* @__PURE__ */ A(
|
|
488
|
+
return /* @__PURE__ */ A(v, { children: [Be, De(/* @__PURE__ */ A(n, {
|
|
491
489
|
display: "flex",
|
|
492
490
|
gap: 3,
|
|
493
491
|
ai: "stretch",
|
|
494
492
|
children: [
|
|
495
|
-
W && W.length > 0 && /* @__PURE__ */ k(
|
|
493
|
+
W && W.length > 0 && /* @__PURE__ */ k(ce, {
|
|
496
494
|
presets: W,
|
|
497
|
-
isSelected: (e) => X !== null &&
|
|
495
|
+
isSelected: (e) => X !== null && f(e, X, { zone: Y }) === 0,
|
|
498
496
|
onSelect: (e, t) => {
|
|
499
497
|
Z(e, {
|
|
500
498
|
reason: "preset",
|
|
@@ -502,24 +500,24 @@ function M(e, n) {
|
|
|
502
500
|
}), F && Ne(t);
|
|
503
501
|
}
|
|
504
502
|
}),
|
|
505
|
-
r !== "time" && /* @__PURE__ */ k(
|
|
503
|
+
r !== "time" && /* @__PURE__ */ k(x, {
|
|
506
504
|
value: $,
|
|
507
505
|
onValueChange: (e, t) => Fe(e, t.event),
|
|
508
|
-
min:
|
|
509
|
-
max: T ?
|
|
506
|
+
min: C ? d(C, { zone: Y }) : void 0,
|
|
507
|
+
max: T ? d(T, { zone: Y }) : void 0,
|
|
510
508
|
isDateUnavailable: E,
|
|
511
|
-
locale:
|
|
509
|
+
locale: g,
|
|
512
510
|
zone: h === "none" ? void 0 : h,
|
|
513
511
|
firstDayOfWeek: I,
|
|
514
512
|
weekNumbers: me
|
|
515
513
|
}),
|
|
516
|
-
r !== "date" && /* @__PURE__ */ k(
|
|
514
|
+
r !== "date" && /* @__PURE__ */ k(se, {
|
|
517
515
|
value: Oe,
|
|
518
516
|
step: H,
|
|
519
517
|
locale: q,
|
|
520
518
|
hourCycle: y,
|
|
521
519
|
label: r === "time" ? be : "Time",
|
|
522
|
-
min: Ae(
|
|
520
|
+
min: Ae(C),
|
|
523
521
|
max: Ae(T),
|
|
524
522
|
emptyLabel: z,
|
|
525
523
|
separated: r === "datetime",
|
|
@@ -528,17 +526,17 @@ function M(e, n) {
|
|
|
528
526
|
]
|
|
529
527
|
}))] });
|
|
530
528
|
}
|
|
531
|
-
function
|
|
532
|
-
let { value: r, defaultValue: i = null, onValueChange:
|
|
529
|
+
function M(e, t) {
|
|
530
|
+
let { value: r, defaultValue: i = null, onValueChange: a, locale: s, min: c, max: l, isDateUnavailable: u, disabled: d = !1, readOnly: p = !1, required: m, invalid: h, startName: g, endName: y, label: b, labelledBy: S, describedBy: C, startLabel: T = "Start date", endLabel: E = "End date", open: D, defaultOpen: O, onOpenChange: ie, closeOnSelect: se = !0, firstDayOfWeek: j, weekNumbers: M, months: N = 2, side: P = "bottom", align: ue = "start", matchWidth: de = !1, emptyTimesLabel: fe, clearable: pe = !1, pickOnly: F = !1, triggerLabel: I = "Choose dates", clearLabel: me = "Clear", tabIndex: L, presets: R, props: he, ...z } = e, { locale: ge } = ee({ locale: s }), [B, _e] = _({
|
|
533
531
|
value: r,
|
|
534
532
|
defaultValue: i,
|
|
535
|
-
onChange:
|
|
533
|
+
onChange: a,
|
|
536
534
|
interaction: {
|
|
537
535
|
component: "dateRangePicker",
|
|
538
536
|
type: "valueChange",
|
|
539
537
|
content: ["value"]
|
|
540
538
|
}
|
|
541
|
-
}), [ve, V] =
|
|
539
|
+
}), [ve, V] = te({
|
|
542
540
|
start: B?.start ?? null,
|
|
543
541
|
end: B?.end ?? null,
|
|
544
542
|
source: B
|
|
@@ -548,17 +546,17 @@ function N(e, n) {
|
|
|
548
546
|
end: U,
|
|
549
547
|
source: B
|
|
550
548
|
}));
|
|
551
|
-
let { attachTrigger: W, triggerAttributes: G, triggerElement: ye, closeOnChoice: K, id: q, attachField: J, panel: Y } =
|
|
552
|
-
ref:
|
|
549
|
+
let { attachTrigger: W, triggerAttributes: G, triggerElement: ye, closeOnChoice: K, id: q, attachField: J, panel: Y } = oe({
|
|
550
|
+
ref: t,
|
|
553
551
|
open: D,
|
|
554
|
-
defaultOpen:
|
|
555
|
-
onOpenChange:
|
|
556
|
-
side:
|
|
552
|
+
defaultOpen: O,
|
|
553
|
+
onOpenChange: ie,
|
|
554
|
+
side: P,
|
|
557
555
|
align: ue,
|
|
558
556
|
matchWidth: de,
|
|
559
|
-
label: typeof
|
|
560
|
-
}), X = B ?
|
|
561
|
-
let i = e && t &&
|
|
557
|
+
label: typeof b == "string" ? b : I
|
|
558
|
+
}), X = B ? o(B.start, B.end, { locale: ge }) : "", Z = H !== null && U !== null && f(H, U) > 0, Q = (e, t, n, r) => {
|
|
559
|
+
let i = e && t && f(e, t) <= 0 ? {
|
|
562
560
|
start: e,
|
|
563
561
|
end: t
|
|
564
562
|
} : null;
|
|
@@ -575,14 +573,14 @@ function N(e, n) {
|
|
|
575
573
|
min: c,
|
|
576
574
|
max: l,
|
|
577
575
|
isDateUnavailable: u,
|
|
578
|
-
disabled:
|
|
576
|
+
disabled: d,
|
|
579
577
|
readOnly: p,
|
|
580
578
|
required: m,
|
|
581
579
|
component: "datePicker.part",
|
|
582
580
|
px: 0,
|
|
583
581
|
py: 0,
|
|
584
582
|
tabIndex: L
|
|
585
|
-
}, Se = pe && B && !
|
|
583
|
+
}, Se = pe && B && !d && !p && /* @__PURE__ */ k(n, {
|
|
586
584
|
tag: "button",
|
|
587
585
|
component: "datePicker.clear",
|
|
588
586
|
display: "inline-flex",
|
|
@@ -599,8 +597,8 @@ function N(e, n) {
|
|
|
599
597
|
tabIndex: L,
|
|
600
598
|
onClick: (e) => Q(null, null, "clear", e)
|
|
601
599
|
},
|
|
602
|
-
children: /* @__PURE__ */ k(
|
|
603
|
-
}), Ce = B !== null && (c != null &&
|
|
600
|
+
children: /* @__PURE__ */ k(ae, {})
|
|
601
|
+
}), Ce = B !== null && (c != null && f(B.start, c) < 0 || l != null && f(B.end, l) > 0), we = F ? /* @__PURE__ */ k(le, {
|
|
604
602
|
frame: {
|
|
605
603
|
...z,
|
|
606
604
|
props: he
|
|
@@ -610,33 +608,33 @@ function N(e, n) {
|
|
|
610
608
|
triggerAttributes: p ? void 0 : G,
|
|
611
609
|
triggerElement: ye,
|
|
612
610
|
id: q,
|
|
613
|
-
label:
|
|
611
|
+
label: b,
|
|
614
612
|
labelledBy: S,
|
|
615
|
-
describedBy:
|
|
613
|
+
describedBy: C,
|
|
616
614
|
text: X,
|
|
617
615
|
placeholder: I,
|
|
618
|
-
icon: /* @__PURE__ */ k(
|
|
616
|
+
icon: /* @__PURE__ */ k(re, {}),
|
|
619
617
|
clear: Se,
|
|
620
|
-
disabled:
|
|
618
|
+
disabled: d,
|
|
621
619
|
invalid: h ?? Ce,
|
|
622
620
|
required: m,
|
|
623
621
|
tabIndex: L,
|
|
624
622
|
inputs: [{
|
|
625
|
-
name:
|
|
623
|
+
name: g,
|
|
626
624
|
value: B?.start ?? ""
|
|
627
625
|
}, {
|
|
628
626
|
name: y,
|
|
629
627
|
value: B?.end ?? ""
|
|
630
628
|
}],
|
|
631
629
|
onReset: (e) => Q(i?.start ?? null, i?.end ?? null, "reset", e)
|
|
632
|
-
}) : /* @__PURE__ */ A(
|
|
630
|
+
}) : /* @__PURE__ */ A(ne, { children: [b !== void 0 && /* @__PURE__ */ k(n, {
|
|
633
631
|
component: "dateField.label",
|
|
634
632
|
display: "block",
|
|
635
633
|
mb: 1.5,
|
|
636
634
|
fontSize: 14,
|
|
637
635
|
id: `${q}-label`,
|
|
638
|
-
children:
|
|
639
|
-
}), /* @__PURE__ */ A(
|
|
636
|
+
children: b
|
|
637
|
+
}), /* @__PURE__ */ A(n, {
|
|
640
638
|
ref: J,
|
|
641
639
|
component: "dateField",
|
|
642
640
|
display: "inline-flex",
|
|
@@ -646,31 +644,31 @@ function N(e, n) {
|
|
|
646
644
|
py: 2,
|
|
647
645
|
...z,
|
|
648
646
|
variant: [z.variant, {
|
|
649
|
-
disabled:
|
|
647
|
+
disabled: d,
|
|
650
648
|
invalid: h ?? Z
|
|
651
649
|
}],
|
|
652
650
|
props: {
|
|
653
651
|
role: "group",
|
|
654
|
-
"aria-labelledby": [
|
|
652
|
+
"aria-labelledby": [b === void 0 ? void 0 : `${q}-label`, S].filter(Boolean).join(" ") || void 0,
|
|
655
653
|
"aria-invalid": (h ?? Z) || void 0,
|
|
656
|
-
"aria-describedby":
|
|
654
|
+
"aria-describedby": C,
|
|
657
655
|
...he
|
|
658
656
|
},
|
|
659
657
|
children: [
|
|
660
|
-
/* @__PURE__ */ k(
|
|
658
|
+
/* @__PURE__ */ k(w, {
|
|
661
659
|
...xe,
|
|
662
660
|
value: H,
|
|
663
661
|
onValueChange: (e, t) => Q(e, U, t.reason, t.event),
|
|
664
|
-
name:
|
|
662
|
+
name: g,
|
|
665
663
|
props: { "aria-label": T },
|
|
666
664
|
invalid: h ?? Z
|
|
667
665
|
}),
|
|
668
|
-
/* @__PURE__ */ k(
|
|
666
|
+
/* @__PURE__ */ k(n, {
|
|
669
667
|
component: "dateField.literal",
|
|
670
668
|
props: { "aria-hidden": !0 },
|
|
671
669
|
children: "–"
|
|
672
670
|
}),
|
|
673
|
-
/* @__PURE__ */ k(
|
|
671
|
+
/* @__PURE__ */ k(w, {
|
|
674
672
|
...xe,
|
|
675
673
|
value: U,
|
|
676
674
|
onValueChange: (e, t) => Q(H, e, t.reason, t.event),
|
|
@@ -678,12 +676,12 @@ function N(e, n) {
|
|
|
678
676
|
props: { "aria-label": E },
|
|
679
677
|
invalid: h ?? Z
|
|
680
678
|
}),
|
|
681
|
-
/* @__PURE__ */ A(
|
|
679
|
+
/* @__PURE__ */ A(n, {
|
|
682
680
|
display: "inline-flex",
|
|
683
681
|
ai: "center",
|
|
684
682
|
gap: 2,
|
|
685
683
|
ms: "auto",
|
|
686
|
-
children: [Se, /* @__PURE__ */ k(
|
|
684
|
+
children: [Se, /* @__PURE__ */ k(n, {
|
|
687
685
|
tag: "button",
|
|
688
686
|
ref: W,
|
|
689
687
|
component: "datePicker.trigger",
|
|
@@ -694,45 +692,45 @@ function N(e, n) {
|
|
|
694
692
|
height: 7,
|
|
695
693
|
me: -1.5,
|
|
696
694
|
borderRadius: 1.5,
|
|
697
|
-
disabled:
|
|
695
|
+
disabled: d || p,
|
|
698
696
|
props: {
|
|
699
697
|
type: "button",
|
|
700
698
|
"aria-label": X ? `${I}, ${X}` : I,
|
|
701
699
|
tabIndex: L,
|
|
702
700
|
...G
|
|
703
701
|
},
|
|
704
|
-
children: /* @__PURE__ */ k(
|
|
702
|
+
children: /* @__PURE__ */ k(re, {})
|
|
705
703
|
})]
|
|
706
704
|
})
|
|
707
705
|
]
|
|
708
706
|
})] });
|
|
709
|
-
return /* @__PURE__ */ A(
|
|
707
|
+
return /* @__PURE__ */ A(v, { children: [we, Y(/* @__PURE__ */ A(n, {
|
|
710
708
|
display: "flex",
|
|
711
709
|
gap: 3,
|
|
712
710
|
ai: "stretch",
|
|
713
|
-
children: [R && R.length > 0 && /* @__PURE__ */ k(
|
|
711
|
+
children: [R && R.length > 0 && /* @__PURE__ */ k(ce, {
|
|
714
712
|
presets: R,
|
|
715
713
|
isSelected: (e) => B !== null && e.start === B.start && e.end === B.end,
|
|
716
714
|
onSelect: (e, t) => {
|
|
717
|
-
Q(e.start, e.end, "preset", t),
|
|
715
|
+
Q(e.start, e.end, "preset", t), se && be(t);
|
|
718
716
|
}
|
|
719
|
-
}), /* @__PURE__ */ k(
|
|
717
|
+
}), /* @__PURE__ */ k(x, {
|
|
720
718
|
mode: "range",
|
|
721
|
-
months:
|
|
719
|
+
months: N,
|
|
722
720
|
value: B,
|
|
723
721
|
defaultFocusedDate: H ?? void 0,
|
|
724
722
|
onValueChange: (e, t) => {
|
|
725
|
-
Q(e?.start ?? null, e?.end ?? null, "select", t.event),
|
|
723
|
+
Q(e?.start ?? null, e?.end ?? null, "select", t.event), se && e && t.event && be(t.event);
|
|
726
724
|
},
|
|
727
725
|
min: c,
|
|
728
726
|
max: l,
|
|
729
727
|
isDateUnavailable: u,
|
|
730
728
|
locale: s,
|
|
731
|
-
firstDayOfWeek:
|
|
732
|
-
weekNumbers:
|
|
729
|
+
firstDayOfWeek: j,
|
|
730
|
+
weekNumbers: M
|
|
733
731
|
})]
|
|
734
732
|
}))] });
|
|
735
733
|
}
|
|
736
|
-
var
|
|
734
|
+
var N = e(j, "DatePicker"), P = e(M, "DateRangePicker");
|
|
737
735
|
//#endregion
|
|
738
|
-
export {
|
|
736
|
+
export { P as DateRangePicker, N as default };
|