@epilot/zenith-react 0.1.0 → 0.2.0-next.0
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/README.md +34 -0
- package/dist/components/alert-dialog/alert-dialog.js +48 -47
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -1
- package/dist/components/callout/callout.js +51 -49
- package/dist/components/callout/callout.js.map +1 -1
- package/dist/components/date-range-picker/date-range-picker.js +194 -184
- package/dist/components/date-range-picker/date-range-picker.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker-input.js +127 -114
- package/dist/components/date-time-picker/date-time-picker-input.js.map +1 -1
- package/dist/components/date-time-picker/date-time-picker.js +91 -88
- package/dist/components/date-time-picker/date-time-picker.js.map +1 -1
- package/dist/components/dialog/dialog.js +74 -72
- package/dist/components/dialog/dialog.js.map +1 -1
- package/dist/components/drawer/drawer.js +69 -67
- package/dist/components/drawer/drawer.js.map +1 -1
- package/dist/components/field/field.js +215 -184
- package/dist/components/field/field.js.map +1 -1
- package/dist/components/tabs/tabs.js +131 -76
- package/dist/components/tabs/tabs.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/tokens.json +1 -1
- package/package.json +3 -3
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as k, jsx as s } from "react/jsx-runtime";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import { createElement as
|
|
4
|
-
import { SLOT_ATTR as
|
|
5
|
-
import { Field as
|
|
6
|
-
import { Button as
|
|
7
|
-
import { Pill as
|
|
8
|
-
import { Popover as
|
|
9
|
-
import { makeZenithStyles as
|
|
10
|
-
import { gray6 as
|
|
11
|
-
import { RangeCalendar as
|
|
12
|
-
import { formatDateTimeDisplay as
|
|
13
|
-
const
|
|
3
|
+
import { createElement as ie } from "react";
|
|
4
|
+
import { SLOT_ATTR as c, mergeClasses as W, shorthands as p } from "@epilot/zenith-runtime/v1";
|
|
5
|
+
import { Field as oe, FieldLabel as le, FieldInputGroup as pe, FieldGroupAddon as ce, FieldError as ue } from "../field/field.js";
|
|
6
|
+
import { Button as ge } from "../button/button.js";
|
|
7
|
+
import { Pill as he } from "../pill/pill.js";
|
|
8
|
+
import { Popover as me, PopoverTrigger as fe, PopoverContent as Te } from "../popover/popover.js";
|
|
9
|
+
import { makeZenithStyles as ye } from "../../styles/make-styles.js";
|
|
10
|
+
import { gray6 as Ce, gray9 as qe, leadingSm as j, textSm as U, grayA8 as Se, grayA12 as be, spacingElement1 as ke, spacingGroup1 as Ie, spacingElement2 as xe } from "../../tokens/index.js";
|
|
11
|
+
import { RangeCalendar as we } from "./range-calendar.js";
|
|
12
|
+
import { formatDateTimeDisplay as d, parseDateTimeInput as E } from "../date-time-picker/date-time-picker-utils.js";
|
|
13
|
+
const ve = (I) => /* @__PURE__ */ s(
|
|
14
14
|
"svg",
|
|
15
15
|
{
|
|
16
16
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -18,10 +18,10 @@ const we = (x) => /* @__PURE__ */ s(
|
|
|
18
18
|
viewBox: "0 -960 960 960",
|
|
19
19
|
width: "18px",
|
|
20
20
|
fill: "currentColor",
|
|
21
|
-
...
|
|
21
|
+
...I,
|
|
22
22
|
children: /* @__PURE__ */ s("path", { d: "M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Zm0-480h560v-80H200v80Zm0 0v-80 80Zm280 240q-17 0-28.5-11.5T440-440q0-17 11.5-28.5T480-480q17 0 28.5 11.5T520-440q0 17-11.5 28.5T480-400Zm-160 0q-17 0-28.5-11.5T280-440q0-17 11.5-28.5T320-480q17 0 28.5 11.5T360-440q0 17-11.5 28.5T320-400Zm320 0q-17 0-28.5-11.5T600-440q0-17 11.5-28.5T640-480q17 0 28.5 11.5T680-440q0 17-11.5 28.5T640-400ZM480-240q-17 0-28.5-11.5T440-280q0-17 11.5-28.5T480-320q17 0 28.5 11.5T520-280q0 17-11.5 28.5T480-240Zm-160 0q-17 0-28.5-11.5T280-280q0-17 11.5-28.5T320-320q17 0 28.5 11.5T360-280q0 17-11.5 28.5T320-240Zm320 0q-17 0-28.5-11.5T600-280q0-17 11.5-28.5T640-320q17 0 28.5 11.5T680-280q0 17-11.5 28.5T640-240Z" })
|
|
23
23
|
}
|
|
24
|
-
), Re = "dd/MM/yyyy",
|
|
24
|
+
), Re = "dd/MM/yyyy", J = ye({
|
|
25
25
|
root: {
|
|
26
26
|
width: "100%"
|
|
27
27
|
},
|
|
@@ -46,7 +46,7 @@ const we = (x) => /* @__PURE__ */ s(
|
|
|
46
46
|
triggerRoot: {
|
|
47
47
|
display: "flex",
|
|
48
48
|
alignItems: "center",
|
|
49
|
-
...
|
|
49
|
+
...p.gap(xe),
|
|
50
50
|
flexGrow: 1,
|
|
51
51
|
flexShrink: 1,
|
|
52
52
|
flexBasis: "0%",
|
|
@@ -56,101 +56,106 @@ const we = (x) => /* @__PURE__ */ s(
|
|
|
56
56
|
input: {
|
|
57
57
|
width: "5.5rem",
|
|
58
58
|
outlineStyle: "none",
|
|
59
|
-
fontSize:
|
|
60
|
-
lineHeight:
|
|
61
|
-
color:
|
|
59
|
+
fontSize: U,
|
|
60
|
+
lineHeight: j,
|
|
61
|
+
color: be,
|
|
62
62
|
backgroundColor: "transparent",
|
|
63
63
|
textAlign: "center",
|
|
64
|
-
...
|
|
65
|
-
...
|
|
64
|
+
...p.border("0"),
|
|
65
|
+
...p.padding("0"),
|
|
66
66
|
"::placeholder": {
|
|
67
|
-
color:
|
|
67
|
+
color: Se
|
|
68
68
|
},
|
|
69
69
|
":disabled": {
|
|
70
70
|
cursor: "not-allowed"
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
separator: {
|
|
74
|
-
fontSize:
|
|
75
|
-
lineHeight:
|
|
76
|
-
color:
|
|
74
|
+
fontSize: U,
|
|
75
|
+
lineHeight: j,
|
|
76
|
+
color: qe,
|
|
77
77
|
flexShrink: 0,
|
|
78
78
|
userSelect: "none",
|
|
79
|
-
...
|
|
79
|
+
...p.padding("0", "0.125rem")
|
|
80
80
|
// v1 px-0.5
|
|
81
81
|
},
|
|
82
82
|
popoverContent: {
|
|
83
|
-
...
|
|
83
|
+
...p.overflow("hidden")
|
|
84
84
|
},
|
|
85
85
|
content: {
|
|
86
86
|
display: "flex",
|
|
87
87
|
flexDirection: "row",
|
|
88
|
-
...
|
|
89
|
-
...
|
|
88
|
+
...p.gap(Ie),
|
|
89
|
+
...p.padding("0.75rem")
|
|
90
90
|
// v1 p-3 (0.75rem)
|
|
91
91
|
},
|
|
92
92
|
presets: {
|
|
93
93
|
display: "flex",
|
|
94
94
|
flexDirection: "column",
|
|
95
|
-
...
|
|
95
|
+
...p.gap(ke),
|
|
96
96
|
width: "8rem",
|
|
97
97
|
// v1 w-32
|
|
98
98
|
borderLeftWidth: "1px",
|
|
99
99
|
borderLeftStyle: "solid",
|
|
100
|
-
borderLeftColor:
|
|
100
|
+
borderLeftColor: Ce,
|
|
101
101
|
paddingLeft: "0.75rem"
|
|
102
102
|
// v1 pl-3 (0.75rem)
|
|
103
103
|
},
|
|
104
104
|
presetPill: {
|
|
105
105
|
alignSelf: "flex-start"
|
|
106
106
|
}
|
|
107
|
-
}),
|
|
107
|
+
}), Ee = a.forwardRef((I, t) => {
|
|
108
108
|
const {
|
|
109
109
|
startValue: o,
|
|
110
|
-
endValue:
|
|
111
|
-
startPlaceholder:
|
|
112
|
-
endPlaceholder:
|
|
113
|
-
disabled:
|
|
110
|
+
endValue: i,
|
|
111
|
+
startPlaceholder: x,
|
|
112
|
+
endPlaceholder: N,
|
|
113
|
+
disabled: g,
|
|
114
114
|
onStartChange: q,
|
|
115
|
-
onEndChange:
|
|
116
|
-
onStartBlur:
|
|
115
|
+
onEndChange: P,
|
|
116
|
+
onStartBlur: V,
|
|
117
117
|
onEndBlur: n,
|
|
118
118
|
testId: e,
|
|
119
|
-
inputAriaLabel:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
inputAriaLabel: Z,
|
|
120
|
+
startId: w,
|
|
121
|
+
endId: v,
|
|
122
|
+
labelId: h,
|
|
123
|
+
className: M,
|
|
124
|
+
"data-slot": H,
|
|
125
|
+
...A
|
|
126
|
+
} = I, m = J();
|
|
124
127
|
return /* @__PURE__ */ k(
|
|
125
128
|
"div",
|
|
126
129
|
{
|
|
127
130
|
ref: t,
|
|
128
|
-
...
|
|
129
|
-
className:
|
|
131
|
+
...A,
|
|
132
|
+
className: W(m.triggerRoot, M),
|
|
130
133
|
"data-slot": "date-range-input",
|
|
131
|
-
[
|
|
134
|
+
[c]: "date-range-input",
|
|
132
135
|
children: [
|
|
133
136
|
/* @__PURE__ */ s(
|
|
134
137
|
"input",
|
|
135
138
|
{
|
|
136
|
-
"aria-label":
|
|
137
|
-
|
|
139
|
+
"aria-label": Z || "Start date",
|
|
140
|
+
id: w,
|
|
141
|
+
"aria-labelledby": h ? `${h} ${w}` : void 0,
|
|
142
|
+
className: m.input,
|
|
138
143
|
"data-slot": "date-range-start-input",
|
|
139
|
-
[
|
|
144
|
+
[c]: "date-range-start-input",
|
|
140
145
|
"data-testid": e ? `${e}-start` : void 0,
|
|
141
|
-
disabled:
|
|
142
|
-
onBlur:
|
|
146
|
+
disabled: g,
|
|
147
|
+
onBlur: V,
|
|
143
148
|
onChange: q,
|
|
144
|
-
placeholder:
|
|
149
|
+
placeholder: x,
|
|
145
150
|
value: o
|
|
146
151
|
}
|
|
147
152
|
),
|
|
148
153
|
/* @__PURE__ */ s(
|
|
149
154
|
"span",
|
|
150
155
|
{
|
|
151
|
-
className:
|
|
156
|
+
className: m.separator,
|
|
152
157
|
"data-slot": "date-range-separator",
|
|
153
|
-
[
|
|
158
|
+
[c]: "date-range-separator",
|
|
154
159
|
children: "–"
|
|
155
160
|
}
|
|
156
161
|
),
|
|
@@ -158,218 +163,223 @@ const we = (x) => /* @__PURE__ */ s(
|
|
|
158
163
|
"input",
|
|
159
164
|
{
|
|
160
165
|
"aria-label": "End date",
|
|
161
|
-
|
|
166
|
+
id: v,
|
|
167
|
+
"aria-labelledby": h ? `${h} ${v}` : void 0,
|
|
168
|
+
className: m.input,
|
|
162
169
|
"data-slot": "date-range-end-input",
|
|
163
|
-
[
|
|
170
|
+
[c]: "date-range-end-input",
|
|
164
171
|
"data-testid": e ? `${e}-end` : void 0,
|
|
165
|
-
disabled:
|
|
172
|
+
disabled: g,
|
|
166
173
|
onBlur: n,
|
|
167
|
-
onChange:
|
|
168
|
-
placeholder:
|
|
169
|
-
value:
|
|
174
|
+
onChange: P,
|
|
175
|
+
placeholder: N,
|
|
176
|
+
value: i
|
|
170
177
|
}
|
|
171
178
|
)
|
|
172
179
|
]
|
|
173
180
|
}
|
|
174
181
|
);
|
|
175
|
-
}),
|
|
182
|
+
}), $e = a.forwardRef(function({
|
|
176
183
|
value: t,
|
|
177
184
|
onChange: o,
|
|
178
|
-
onBlur:
|
|
179
|
-
disabled:
|
|
180
|
-
disablePast:
|
|
181
|
-
label:
|
|
185
|
+
onBlur: i,
|
|
186
|
+
disabled: x = !1,
|
|
187
|
+
disablePast: N = !1,
|
|
188
|
+
label: g,
|
|
182
189
|
error: q,
|
|
183
|
-
startPlaceholder:
|
|
184
|
-
endPlaceholder:
|
|
190
|
+
startPlaceholder: P = "dd/MM/yyyy",
|
|
191
|
+
endPlaceholder: V = "dd/MM/yyyy",
|
|
185
192
|
format: n = Re,
|
|
186
193
|
locale: e = "de",
|
|
187
|
-
className:
|
|
188
|
-
keyboardIcon:
|
|
189
|
-
inputAriaLabel:
|
|
190
|
-
openPickerAriaLabel:
|
|
191
|
-
previousMonthLabel:
|
|
192
|
-
nextMonthLabel:
|
|
193
|
-
testId:
|
|
194
|
-
currentTimeInTimezone:
|
|
195
|
-
showWeekNumbers:
|
|
196
|
-
presets:
|
|
197
|
-
},
|
|
198
|
-
const
|
|
199
|
-
() => t.start ?
|
|
200
|
-
), [
|
|
201
|
-
() => t.end ?
|
|
202
|
-
), [R,
|
|
194
|
+
className: Z,
|
|
195
|
+
keyboardIcon: w,
|
|
196
|
+
inputAriaLabel: v,
|
|
197
|
+
openPickerAriaLabel: h = "Open date picker",
|
|
198
|
+
previousMonthLabel: M = "Previous month",
|
|
199
|
+
nextMonthLabel: H = "Next month",
|
|
200
|
+
testId: A,
|
|
201
|
+
currentTimeInTimezone: m,
|
|
202
|
+
showWeekNumbers: K = !1,
|
|
203
|
+
presets: D
|
|
204
|
+
}, Q) {
|
|
205
|
+
const l = J(), [F, L] = a.useState(!1), [O, f] = a.useState(
|
|
206
|
+
() => t.start ? d(t.start, n, e) : ""
|
|
207
|
+
), [G, T] = a.useState(
|
|
208
|
+
() => t.end ? d(t.end, n, e) : ""
|
|
209
|
+
), [R, S] = a.useState(t), y = a.useRef(t), C = a.useRef(
|
|
203
210
|
void 0
|
|
204
211
|
);
|
|
205
212
|
a.useEffect(
|
|
206
213
|
() => () => {
|
|
207
|
-
|
|
214
|
+
C.current !== void 0 && clearTimeout(C.current);
|
|
208
215
|
},
|
|
209
216
|
[]
|
|
210
217
|
), a.useEffect(() => {
|
|
211
|
-
|
|
212
|
-
t.start ?
|
|
213
|
-
),
|
|
214
|
-
t.end ?
|
|
215
|
-
),
|
|
218
|
+
f(
|
|
219
|
+
t.start ? d(t.start, n, e) : ""
|
|
220
|
+
), T(
|
|
221
|
+
t.end ? d(t.end, n, e) : ""
|
|
222
|
+
), S(t);
|
|
216
223
|
}, [t, n, e]), a.useEffect(() => {
|
|
217
|
-
|
|
218
|
-
}, [
|
|
219
|
-
const
|
|
224
|
+
F && (y.current = t, S(t));
|
|
225
|
+
}, [F, t]);
|
|
226
|
+
const X = a.useCallback(
|
|
220
227
|
(r) => {
|
|
221
|
-
const
|
|
222
|
-
|
|
223
|
-
const
|
|
224
|
-
if (
|
|
225
|
-
const
|
|
226
|
-
o(
|
|
228
|
+
const u = r.target.value;
|
|
229
|
+
f(u);
|
|
230
|
+
const b = E(u, n, e);
|
|
231
|
+
if (b) {
|
|
232
|
+
const $ = { ...t, start: b };
|
|
233
|
+
o($);
|
|
227
234
|
}
|
|
228
235
|
},
|
|
229
236
|
[o, t, n, e]
|
|
230
|
-
),
|
|
237
|
+
), Y = a.useCallback(
|
|
231
238
|
(r) => {
|
|
232
|
-
const
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
236
|
-
const
|
|
237
|
-
o(
|
|
239
|
+
const u = r.target.value;
|
|
240
|
+
T(u);
|
|
241
|
+
const b = E(u, n, e);
|
|
242
|
+
if (b) {
|
|
243
|
+
const $ = { ...t, end: b };
|
|
244
|
+
o($);
|
|
238
245
|
}
|
|
239
246
|
},
|
|
240
247
|
[o, t, n, e]
|
|
241
|
-
),
|
|
242
|
-
|
|
243
|
-
t.start ?
|
|
244
|
-
),
|
|
245
|
-
}, [
|
|
246
|
-
|
|
247
|
-
t.end ?
|
|
248
|
-
),
|
|
249
|
-
}, [
|
|
248
|
+
), ee = a.useCallback(() => {
|
|
249
|
+
E(O, n, e) || f(
|
|
250
|
+
t.start ? d(t.start, n, e) : ""
|
|
251
|
+
), i == null || i();
|
|
252
|
+
}, [O, t.start, n, e, i]), te = a.useCallback(() => {
|
|
253
|
+
E(G, n, e) || T(
|
|
254
|
+
t.end ? d(t.end, n, e) : ""
|
|
255
|
+
), i == null || i();
|
|
256
|
+
}, [G, t.end, n, e, i]), ne = a.useCallback(
|
|
250
257
|
(r) => {
|
|
251
|
-
|
|
252
|
-
r.start ?
|
|
253
|
-
),
|
|
254
|
-
r.end ?
|
|
258
|
+
S(r), f(
|
|
259
|
+
r.start ? d(r.start, n, e) : ""
|
|
260
|
+
), T(
|
|
261
|
+
r.end ? d(r.end, n, e) : ""
|
|
255
262
|
);
|
|
256
263
|
},
|
|
257
264
|
[n, e]
|
|
258
|
-
),
|
|
265
|
+
), z = a.useCallback(
|
|
259
266
|
(r) => {
|
|
260
|
-
o(r),
|
|
261
|
-
r.start ?
|
|
262
|
-
),
|
|
263
|
-
r.end ?
|
|
264
|
-
),
|
|
265
|
-
|
|
267
|
+
o(r), S(r), f(
|
|
268
|
+
r.start ? d(r.start, n, e) : ""
|
|
269
|
+
), T(
|
|
270
|
+
r.end ? d(r.end, n, e) : ""
|
|
271
|
+
), C.current !== void 0 && clearTimeout(C.current), C.current = setTimeout(() => {
|
|
272
|
+
C.current = void 0, L(!1);
|
|
266
273
|
}, 150);
|
|
267
274
|
},
|
|
268
275
|
[o, n, e]
|
|
269
|
-
),
|
|
276
|
+
), re = a.useCallback(
|
|
270
277
|
(r) => {
|
|
271
|
-
r || (!R.start || !R.end) && (y
|
|
272
|
-
|
|
273
|
-
|
|
278
|
+
r || (!R.start || !R.end) && (S(y.current), f(
|
|
279
|
+
y.current.start ? d(
|
|
280
|
+
y.current.start,
|
|
274
281
|
n,
|
|
275
282
|
e
|
|
276
283
|
) : ""
|
|
277
|
-
),
|
|
278
|
-
|
|
279
|
-
|
|
284
|
+
), T(
|
|
285
|
+
y.current.end ? d(
|
|
286
|
+
y.current.end,
|
|
280
287
|
n,
|
|
281
288
|
e
|
|
282
289
|
) : ""
|
|
283
|
-
)),
|
|
290
|
+
)), L(r);
|
|
284
291
|
},
|
|
285
292
|
[R, n, e]
|
|
286
|
-
),
|
|
293
|
+
), ae = w || /* @__PURE__ */ s(ve, {}), se = q ? "destructive" : "highlight", B = a.useId(), _ = a.useId(), de = a.useId();
|
|
287
294
|
return /* @__PURE__ */ k(
|
|
288
|
-
|
|
295
|
+
oe,
|
|
289
296
|
{
|
|
290
|
-
className:
|
|
297
|
+
className: W(l.root, Z),
|
|
291
298
|
"data-slot": "daterangepicker",
|
|
292
|
-
[
|
|
293
|
-
ref:
|
|
294
|
-
variant:
|
|
299
|
+
[c]: "daterangepicker",
|
|
300
|
+
ref: Q,
|
|
301
|
+
variant: se,
|
|
295
302
|
children: [
|
|
296
|
-
|
|
297
|
-
/* @__PURE__ */ k(
|
|
298
|
-
/* @__PURE__ */ k(
|
|
299
|
-
/* @__PURE__ */ s(
|
|
300
|
-
|
|
303
|
+
g && /* @__PURE__ */ s(le, { id: B, htmlFor: _, children: g }),
|
|
304
|
+
/* @__PURE__ */ k(me, { modal: !0, onOpenChange: re, open: F, children: [
|
|
305
|
+
/* @__PURE__ */ k(pe, { className: l.inputGroup, children: [
|
|
306
|
+
/* @__PURE__ */ s(fe, { asChild: !0, className: l.popoverTrigger, children: /* @__PURE__ */ s(
|
|
307
|
+
Ee,
|
|
301
308
|
{
|
|
302
|
-
disabled:
|
|
303
|
-
endPlaceholder:
|
|
304
|
-
endValue:
|
|
305
|
-
inputAriaLabel:
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
309
|
+
disabled: x,
|
|
310
|
+
endPlaceholder: V,
|
|
311
|
+
endValue: G,
|
|
312
|
+
inputAriaLabel: v,
|
|
313
|
+
startId: _,
|
|
314
|
+
endId: de,
|
|
315
|
+
labelId: g ? B : void 0,
|
|
316
|
+
onEndBlur: te,
|
|
317
|
+
onEndChange: Y,
|
|
318
|
+
onStartBlur: ee,
|
|
319
|
+
onStartChange: X,
|
|
320
|
+
startPlaceholder: P,
|
|
321
|
+
startValue: O,
|
|
322
|
+
testId: A
|
|
313
323
|
}
|
|
314
324
|
) }),
|
|
315
|
-
/* @__PURE__ */ s(
|
|
316
|
-
|
|
325
|
+
/* @__PURE__ */ s(ce, { align: "end", children: /* @__PURE__ */ s(
|
|
326
|
+
ge,
|
|
317
327
|
{
|
|
318
|
-
"aria-label":
|
|
319
|
-
disabled:
|
|
320
|
-
onClick: () =>
|
|
321
|
-
className:
|
|
328
|
+
"aria-label": h,
|
|
329
|
+
disabled: x,
|
|
330
|
+
onClick: () => L(!0),
|
|
331
|
+
className: l.addonButton,
|
|
322
332
|
size: "icon-sm",
|
|
323
333
|
variant: "tertiary",
|
|
324
|
-
children:
|
|
334
|
+
children: ae
|
|
325
335
|
}
|
|
326
336
|
) })
|
|
327
337
|
] }),
|
|
328
338
|
/* @__PURE__ */ s(
|
|
329
|
-
|
|
339
|
+
Te,
|
|
330
340
|
{
|
|
331
341
|
align: "start",
|
|
332
|
-
className:
|
|
342
|
+
className: l.popoverContent,
|
|
333
343
|
flush: !0,
|
|
334
344
|
side: "bottom",
|
|
335
345
|
sideOffset: 4,
|
|
336
346
|
children: /* @__PURE__ */ k(
|
|
337
347
|
"div",
|
|
338
348
|
{
|
|
339
|
-
className:
|
|
349
|
+
className: l.content,
|
|
340
350
|
"data-slot": "daterangepicker-content",
|
|
341
|
-
[
|
|
351
|
+
[c]: "daterangepicker-content",
|
|
342
352
|
children: [
|
|
343
353
|
/* @__PURE__ */ s(
|
|
344
|
-
|
|
354
|
+
we,
|
|
345
355
|
{
|
|
346
|
-
currentTimeInTimezone:
|
|
347
|
-
disablePast:
|
|
356
|
+
currentTimeInTimezone: m,
|
|
357
|
+
disablePast: N,
|
|
348
358
|
locale: e,
|
|
349
|
-
nextMonthLabel:
|
|
350
|
-
onChange:
|
|
351
|
-
onRangeComplete:
|
|
352
|
-
previousMonthLabel:
|
|
353
|
-
showWeekNumbers:
|
|
359
|
+
nextMonthLabel: H,
|
|
360
|
+
onChange: ne,
|
|
361
|
+
onRangeComplete: z,
|
|
362
|
+
previousMonthLabel: M,
|
|
363
|
+
showWeekNumbers: K,
|
|
354
364
|
value: R
|
|
355
365
|
}
|
|
356
366
|
),
|
|
357
|
-
|
|
367
|
+
D && D.length > 0 && /* @__PURE__ */ s(
|
|
358
368
|
"aside",
|
|
359
369
|
{
|
|
360
|
-
className:
|
|
370
|
+
className: l.presets,
|
|
361
371
|
"data-slot": "daterangepicker-presets",
|
|
362
|
-
[
|
|
363
|
-
children:
|
|
364
|
-
|
|
372
|
+
[c]: "daterangepicker-presets",
|
|
373
|
+
children: D.map((r) => /* @__PURE__ */ ie(
|
|
374
|
+
he,
|
|
365
375
|
{
|
|
366
|
-
className:
|
|
376
|
+
className: l.presetPill,
|
|
367
377
|
"data-slot": "daterangepicker-preset",
|
|
368
|
-
[
|
|
378
|
+
[c]: "daterangepicker-preset",
|
|
369
379
|
key: r.label,
|
|
370
380
|
onClick: () => {
|
|
371
|
-
const
|
|
372
|
-
|
|
381
|
+
const u = r.getValue();
|
|
382
|
+
z(u);
|
|
373
383
|
},
|
|
374
384
|
variant: "surface"
|
|
375
385
|
},
|
|
@@ -383,13 +393,13 @@ const we = (x) => /* @__PURE__ */ s(
|
|
|
383
393
|
}
|
|
384
394
|
)
|
|
385
395
|
] }),
|
|
386
|
-
q && /* @__PURE__ */ s(
|
|
396
|
+
q && /* @__PURE__ */ s(ue, { children: q })
|
|
387
397
|
]
|
|
388
398
|
}
|
|
389
399
|
);
|
|
390
400
|
});
|
|
391
401
|
export {
|
|
392
|
-
|
|
393
|
-
|
|
402
|
+
$e as DateRangePicker,
|
|
403
|
+
we as RangeCalendar
|
|
394
404
|
};
|
|
395
405
|
//# sourceMappingURL=date-range-picker.js.map
|