impact-nova 1.7.30 → 1.7.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.d.ts +2 -0
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +69 -67
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.d.ts +2 -0
- package/dist/components/ui/ag-grid-react/headers/advanced-filter/column-filter-section.js +107 -71
- package/dist/components/ui/ag-grid-react/headers/header-search-input.js +277 -213
- package/dist/components/ui/ag-grid-react/headers/utils/date-utils.d.ts +11 -1
- package/dist/components/ui/ag-grid-react/headers/utils/date-utils.js +34 -20
- package/dist/components/ui/ag-grid-react/index.js +16 -15
- package/dist/components/ui/date-picker/date-range-picker.js +182 -165
- package/dist/components/ui/date-picker/month-range-picker.js +221 -166
- package/dist/components/ui/horizontal-scroller/horizontal-scroller.js +98 -93
- package/dist/components/ui/nested-list/components/SortableItem.d.ts +1 -0
- package/dist/components/ui/nested-list/components/SortableItem.js +37 -36
- package/dist/components/ui/nested-list/hooks/useNestedListDragDrop.d.ts +2 -1
- package/dist/components/ui/nested-list/hooks/useNestedListDragDrop.js +173 -160
- package/dist/components/ui/nested-list/nested-list.js +200 -196
- package/dist/components/ui/types/ag-grid.types.d.ts +2 -0
- package/dist/components/ui/types/horizontal-scroller.types.d.ts +4 -0
- package/dist/components/ui/types/nested-list.types.d.ts +1 -0
- package/dist/impact-nova.css +1 -1
- package/package.json +1 -1
|
@@ -1,243 +1,260 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import * as
|
|
3
|
-
import { X as
|
|
4
|
-
import { CalendarMonth as
|
|
5
|
-
import { format as
|
|
6
|
-
import { cn as
|
|
7
|
-
import { Popover as
|
|
1
|
+
import { jsxs as m, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import * as f from "react";
|
|
3
|
+
import { X as ge } from "lucide-react";
|
|
4
|
+
import { CalendarMonth as be, Info as G } from "../../../icons/index.js";
|
|
5
|
+
import { format as p, isValid as g, parse as b } from "date-fns";
|
|
6
|
+
import { cn as u, padValidDateString as E, maskDate as J } from "../../../lib/utils.js";
|
|
7
|
+
import { Popover as ye, PopoverTrigger as we, PopoverContent as De } from "../popover.js";
|
|
8
8
|
import { Calendar as ke } from "../calendar.js";
|
|
9
|
-
import { Tooltip as
|
|
10
|
-
import { getDateFnsLocale as
|
|
11
|
-
import { useImpactNovaI18n as
|
|
12
|
-
const
|
|
9
|
+
import { Tooltip as Q, TooltipTrigger as U, TooltipContent as W } from "../tooltip.js";
|
|
10
|
+
import { getDateFnsLocale as ve } from "../../../i18n/getDateFnsLocale.js";
|
|
11
|
+
import { useImpactNovaI18n as Ne } from "../../../i18n/ImpactNovaI18nContext.js";
|
|
12
|
+
const Se = f.forwardRef(
|
|
13
13
|
({
|
|
14
|
-
value:
|
|
15
|
-
onChange:
|
|
16
|
-
format:
|
|
17
|
-
startPlaceholder:
|
|
18
|
-
endPlaceholder:
|
|
19
|
-
minDate:
|
|
20
|
-
maxDate:
|
|
21
|
-
startMonth:
|
|
22
|
-
endMonth:
|
|
23
|
-
showFooter:
|
|
24
|
-
disabled:
|
|
25
|
-
label:
|
|
26
|
-
helperText:
|
|
27
|
-
helperTextPosition:
|
|
14
|
+
value: n,
|
|
15
|
+
onChange: d,
|
|
16
|
+
format: t = "MM/dd/yyyy",
|
|
17
|
+
startPlaceholder: Y,
|
|
18
|
+
endPlaceholder: Z,
|
|
19
|
+
minDate: $,
|
|
20
|
+
maxDate: _,
|
|
21
|
+
startMonth: F,
|
|
22
|
+
endMonth: ee,
|
|
23
|
+
showFooter: x = !0,
|
|
24
|
+
disabled: P,
|
|
25
|
+
label: z,
|
|
26
|
+
helperText: V,
|
|
27
|
+
helperTextPosition: j = "absolute",
|
|
28
28
|
prefix: Pe,
|
|
29
29
|
prefixClick: Re,
|
|
30
|
-
isError:
|
|
31
|
-
size:
|
|
32
|
-
required:
|
|
33
|
-
className:
|
|
34
|
-
...
|
|
35
|
-
},
|
|
36
|
-
const { locale:
|
|
37
|
-
|
|
38
|
-
const [
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}, [
|
|
42
|
-
|
|
43
|
-
}, [
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
},
|
|
47
|
-
let s = e !== void 0 ? e :
|
|
48
|
-
s?.from && !s.to && (s = { from: s.from, to: s.from }),
|
|
49
|
-
},
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
const s = e.target.value,
|
|
55
|
-
if (
|
|
56
|
-
const
|
|
57
|
-
|
|
30
|
+
isError: v,
|
|
31
|
+
size: B,
|
|
32
|
+
required: te,
|
|
33
|
+
className: ne,
|
|
34
|
+
...oe
|
|
35
|
+
}, le) => {
|
|
36
|
+
const { locale: O, t: R } = Ne(), o = f.useMemo(() => ve(O), [O]), T = Y ?? R("datePicker.startDate"), H = Z ?? R("datePicker.endDate"), X = f.useRef(null), se = f.useRef(null);
|
|
37
|
+
f.useRef(null), f.useRef(null), f.useImperativeHandle(le, () => X.current);
|
|
38
|
+
const [i, y] = f.useState(!1), C = f.useRef(!1), [I, w] = f.useState(n), [D, N] = f.useState(n?.from ? p(n.from, t, { locale: o }) : ""), [k, S] = f.useState(n?.to ? p(n.to, t, { locale: o }) : ""), [re, A] = f.useState(n?.from || /* @__PURE__ */ new Date());
|
|
39
|
+
f.useEffect(() => {
|
|
40
|
+
i || (N(n?.from ? p(n.from, t, { locale: o }) : ""), S(n?.to ? p(n.to, t, { locale: o }) : ""), w(n));
|
|
41
|
+
}, [n, t, i, o]), f.useEffect(() => {
|
|
42
|
+
i && (w(n), N(n?.from ? p(n.from, t, { locale: o }) : ""), S(n?.to ? p(n.to, t, { locale: o }) : ""), A(n?.from || /* @__PURE__ */ new Date()));
|
|
43
|
+
}, [i, n, t, o]);
|
|
44
|
+
const ie = (e) => {
|
|
45
|
+
w(e), e?.from && N(p(e.from, t, { locale: o })), e?.to && S(p(e.to, t, { locale: o })), x || e?.from && e?.to && e.from.getTime() !== e.to.getTime() && (d?.(e), y(!1));
|
|
46
|
+
}, ce = (e) => {
|
|
47
|
+
let s = e !== void 0 ? e : I;
|
|
48
|
+
s?.from && !s.to && (s = { from: s.from, to: s.from }), d?.(s), y(!1);
|
|
49
|
+
}, K = () => {
|
|
50
|
+
w(n), N(n?.from ? p(n.from, t, { locale: o }) : ""), S(n?.to ? p(n.to, t, { locale: o }) : ""), y(!1);
|
|
51
|
+
}, L = () => {
|
|
52
|
+
w(void 0), N(""), S(""), d?.(void 0), x || y(!1);
|
|
53
|
+
}, ae = (e) => {
|
|
54
|
+
const s = e.target.value, c = J(s, t, D);
|
|
55
|
+
if (N(c), c === "") {
|
|
56
|
+
const l = { from: void 0, to: I?.to };
|
|
57
|
+
w(l), x || d?.(l);
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
const
|
|
61
|
-
if (
|
|
62
|
-
const
|
|
63
|
-
|
|
60
|
+
const r = b(c, t, /* @__PURE__ */ new Date(), { locale: o });
|
|
61
|
+
if (g(r) && c.length === t.length) {
|
|
62
|
+
const l = { from: r, to: I?.to };
|
|
63
|
+
w(l), A(r), x || d?.(l);
|
|
64
64
|
}
|
|
65
|
-
},
|
|
66
|
-
const s = e.target.value,
|
|
67
|
-
if (
|
|
68
|
-
const
|
|
69
|
-
|
|
65
|
+
}, de = (e) => {
|
|
66
|
+
const s = e.target.value, c = J(s, t, k);
|
|
67
|
+
if (S(c), c === "") {
|
|
68
|
+
const l = { from: I?.from, to: void 0 };
|
|
69
|
+
w(l), x || d?.(l);
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
const
|
|
73
|
-
if (
|
|
74
|
-
const
|
|
75
|
-
|
|
72
|
+
const r = b(c, t, /* @__PURE__ */ new Date(), { locale: o });
|
|
73
|
+
if (g(r) && c.length === t.length) {
|
|
74
|
+
const l = { from: I?.from, to: r };
|
|
75
|
+
w(l), r && A(r), x || d?.(l);
|
|
76
76
|
}
|
|
77
|
-
},
|
|
78
|
-
if (
|
|
79
|
-
const e =
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
/* @__PURE__ */
|
|
84
|
-
|
|
77
|
+
}, q = () => {
|
|
78
|
+
if (i) return;
|
|
79
|
+
const e = E(D, t), s = E(k, t), c = b(e, t, /* @__PURE__ */ new Date(), { locale: o }), r = b(s, t, /* @__PURE__ */ new Date(), { locale: o }), l = g(c) && e.length === t.length, h = g(r) && s.length === t.length;
|
|
80
|
+
D && !l ? N(n?.from ? p(n.from, t, { locale: o }) : "") : l && N(e), k && !h ? S(n?.to ? p(n.to, t, { locale: o }) : "") : h && S(s), l && h && !x ? d?.({ from: c, to: r }) : l && !x ? d?.({ from: c, to: n?.to }) : h && !x && d?.({ from: n?.from, to: r });
|
|
81
|
+
}, fe = n?.from ? p(n.from, t, { locale: o }) : "", pe = n?.to ? p(n.to, t, { locale: o }) : "", me = D !== fe, ue = k !== pe, xe = D.length === t.length && !g(b(D, t, /* @__PURE__ */ new Date(), { locale: o })), he = k.length === t.length && !g(b(k, t, /* @__PURE__ */ new Date(), { locale: o }));
|
|
82
|
+
return /* @__PURE__ */ m("div", { className: "flex w-full min-w-[240px] flex-col gap-[6px]", "data-component": "date-range-picker", "data-disabled": P || void 0, children: [
|
|
83
|
+
/* @__PURE__ */ m("div", { className: "flex flex-col gap-[6px]", children: [
|
|
84
|
+
z && /* @__PURE__ */ m(
|
|
85
85
|
"label",
|
|
86
86
|
{
|
|
87
|
-
className:
|
|
87
|
+
className: u(
|
|
88
88
|
"text-xs font-medium leading-[18px] text-content-tertiary",
|
|
89
|
-
|
|
90
|
-
|
|
89
|
+
P && "opacity-70",
|
|
90
|
+
v && "text-destructive"
|
|
91
91
|
),
|
|
92
92
|
children: [
|
|
93
|
-
|
|
93
|
+
z,
|
|
94
94
|
" ",
|
|
95
|
-
|
|
95
|
+
te && /* @__PURE__ */ a("span", { className: "text-destructive", children: "*" })
|
|
96
96
|
]
|
|
97
97
|
}
|
|
98
98
|
),
|
|
99
|
-
/* @__PURE__ */
|
|
99
|
+
/* @__PURE__ */ m(
|
|
100
100
|
"div",
|
|
101
101
|
{
|
|
102
|
-
className:
|
|
102
|
+
className: u(
|
|
103
103
|
"w-full",
|
|
104
|
-
|
|
104
|
+
V && j === "absolute" && "relative"
|
|
105
105
|
),
|
|
106
106
|
children: [
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
/* @__PURE__ */
|
|
107
|
+
/* @__PURE__ */ m(ye, { open: i, onOpenChange: y, children: [
|
|
108
|
+
/* @__PURE__ */ a(we, { asChild: !0, children: /* @__PURE__ */ m(
|
|
109
109
|
"div",
|
|
110
110
|
{
|
|
111
|
-
"data-state":
|
|
112
|
-
className:
|
|
111
|
+
"data-state": i ? "open" : "closed",
|
|
112
|
+
className: u(
|
|
113
113
|
"flex w-full items-center justify-between gap-2 rounded-md border bg-canvas-elevated px-3 text-sm shadow-sm transition-colors hover:border-brand disabled:cursor-not-allowed disabled:bg-disabled-surface disabled:text-disabled-foreground disabled:border-stroke",
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
v ? "border-destructive hover:border-destructive" : "border-field",
|
|
115
|
+
B === "sm" ? "h-6" : B === "md" ? "h-[28px]" : "h-8",
|
|
116
|
+
P && "pointer-events-none opacity-100 bg-disabled-surface border-stroke text-disabled-foreground hover:border-stroke",
|
|
117
117
|
"cursor-pointer",
|
|
118
|
-
|
|
118
|
+
ne
|
|
119
119
|
),
|
|
120
120
|
children: [
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
/* @__PURE__ */
|
|
121
|
+
/* @__PURE__ */ m("div", { className: "flex items-center gap-4 flex-1 min-w-0", children: [
|
|
122
|
+
/* @__PURE__ */ a(
|
|
123
123
|
"input",
|
|
124
124
|
{
|
|
125
|
-
ref:
|
|
125
|
+
ref: X,
|
|
126
126
|
type: "text",
|
|
127
|
-
value:
|
|
128
|
-
onChange:
|
|
129
|
-
onBlur:
|
|
130
|
-
onClick: (e) =>
|
|
127
|
+
value: D,
|
|
128
|
+
onChange: ae,
|
|
129
|
+
onBlur: q,
|
|
130
|
+
onClick: (e) => i && e.stopPropagation(),
|
|
131
131
|
onKeyDown: (e) => {
|
|
132
|
-
(e.key === "Enter"
|
|
132
|
+
if (e.key === "Enter" && !i) {
|
|
133
|
+
e.preventDefault();
|
|
134
|
+
const s = E(D, t), c = E(k, t), r = b(s, t, /* @__PURE__ */ new Date(), { locale: o }), l = b(c, t, /* @__PURE__ */ new Date(), { locale: o }), h = g(r) && s.length === t.length, M = g(l) && c.length === t.length;
|
|
135
|
+
h && M ? d?.({ from: r, to: l }) : h ? d?.({ from: r, to: n?.to }) : M && d?.({ from: n?.from, to: l });
|
|
136
|
+
}
|
|
137
|
+
e.key === "ArrowDown" && !i && (e.preventDefault(), C.current = !0, y(!0)), e.key === "Escape" && i && (e.preventDefault(), K());
|
|
133
138
|
},
|
|
134
|
-
placeholder:
|
|
135
|
-
disabled: !!
|
|
136
|
-
"aria-label":
|
|
139
|
+
placeholder: i ? t : T,
|
|
140
|
+
disabled: !!P,
|
|
141
|
+
"aria-label": T,
|
|
137
142
|
"data-field": "start",
|
|
138
|
-
className:
|
|
143
|
+
className: u(
|
|
139
144
|
"flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
140
|
-
|
|
145
|
+
xe ? "text-destructive" : me ? "text-content-muted" : ""
|
|
141
146
|
),
|
|
142
|
-
...
|
|
147
|
+
...oe
|
|
143
148
|
}
|
|
144
149
|
),
|
|
145
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ a(
|
|
146
151
|
"input",
|
|
147
152
|
{
|
|
148
|
-
ref:
|
|
153
|
+
ref: se,
|
|
149
154
|
type: "text",
|
|
150
|
-
value:
|
|
151
|
-
onChange:
|
|
152
|
-
onBlur:
|
|
153
|
-
onClick: (e) =>
|
|
155
|
+
value: k,
|
|
156
|
+
onChange: de,
|
|
157
|
+
onBlur: q,
|
|
158
|
+
onClick: (e) => i && e.stopPropagation(),
|
|
154
159
|
onKeyDown: (e) => {
|
|
155
|
-
(e.key === "Enter"
|
|
160
|
+
if (e.key === "Enter" && !i) {
|
|
161
|
+
e.preventDefault();
|
|
162
|
+
const s = E(D, t), c = E(k, t), r = b(s, t, /* @__PURE__ */ new Date(), { locale: o }), l = b(c, t, /* @__PURE__ */ new Date(), { locale: o }), h = g(r) && s.length === t.length, M = g(l) && c.length === t.length;
|
|
163
|
+
h && M ? d?.({ from: r, to: l }) : h ? d?.({ from: r, to: n?.to }) : M && d?.({ from: n?.from, to: l });
|
|
164
|
+
}
|
|
165
|
+
e.key === "ArrowDown" && !i && (e.preventDefault(), C.current = !0, y(!0)), e.key === "Escape" && i && (e.preventDefault(), K());
|
|
156
166
|
},
|
|
157
|
-
placeholder:
|
|
158
|
-
disabled: !!
|
|
159
|
-
"aria-label":
|
|
167
|
+
placeholder: i ? t : H,
|
|
168
|
+
disabled: !!P,
|
|
169
|
+
"aria-label": H,
|
|
160
170
|
"data-field": "end",
|
|
161
|
-
className:
|
|
171
|
+
className: u(
|
|
162
172
|
"flex-1 min-w-0 bg-transparent p-0 text-sm font-medium outline-none placeholder:font-medium placeholder:text-content-empty disabled:cursor-not-allowed disabled:opacity-50",
|
|
163
|
-
|
|
173
|
+
he ? "text-destructive" : ue ? "text-content-muted" : ""
|
|
164
174
|
)
|
|
165
175
|
}
|
|
166
176
|
)
|
|
167
177
|
] }),
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
|
|
170
|
-
/* @__PURE__ */
|
|
171
|
-
|
|
178
|
+
/* @__PURE__ */ m("div", { className: "flex items-center gap-1 shrink-0", children: [
|
|
179
|
+
n?.from && !P && /* @__PURE__ */ m(Q, { children: [
|
|
180
|
+
/* @__PURE__ */ a(U, { asChild: !0, children: /* @__PURE__ */ a(
|
|
181
|
+
"button",
|
|
172
182
|
{
|
|
173
|
-
|
|
183
|
+
type: "button",
|
|
184
|
+
tabIndex: 0,
|
|
185
|
+
"aria-label": R("calendar.clear"),
|
|
174
186
|
onClick: (e) => {
|
|
175
|
-
e.stopPropagation(),
|
|
176
|
-
}
|
|
187
|
+
e.stopPropagation(), L();
|
|
188
|
+
},
|
|
189
|
+
onKeyDown: (e) => {
|
|
190
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), L());
|
|
191
|
+
},
|
|
192
|
+
className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer",
|
|
193
|
+
children: /* @__PURE__ */ a(ge, { className: "h-4 w-4 hover:text-content text-content-muted" })
|
|
177
194
|
}
|
|
178
195
|
) }),
|
|
179
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ a(W, { variant: "tertiary", side: "top", children: R("calendar.clear") })
|
|
180
197
|
] }),
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
/* @__PURE__ */
|
|
183
|
-
e.stopPropagation(),
|
|
198
|
+
/* @__PURE__ */ m(Q, { children: [
|
|
199
|
+
/* @__PURE__ */ a(U, { asChild: !0, children: /* @__PURE__ */ a("button", { type: "button", tabIndex: 0, "aria-label": R("datePicker.selectMonthRange"), onClick: (e) => {
|
|
200
|
+
e.stopPropagation(), y(!i);
|
|
184
201
|
}, onKeyDown: (e) => {
|
|
185
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(),
|
|
186
|
-
}, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */
|
|
187
|
-
/* @__PURE__ */
|
|
202
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), e.stopPropagation(), C.current = !0, y(!i));
|
|
203
|
+
}, className: "inline-flex items-center justify-center bg-transparent border-none p-0 cursor-pointer", children: /* @__PURE__ */ a(be, { className: "h-4 w-4 text-secondary-foreground" }) }) }),
|
|
204
|
+
/* @__PURE__ */ a(W, { variant: "tertiary", side: "top", children: R("datePicker.selectMonthRange") })
|
|
188
205
|
] })
|
|
189
206
|
] })
|
|
190
207
|
]
|
|
191
208
|
}
|
|
192
209
|
) }),
|
|
193
|
-
/* @__PURE__ */
|
|
194
|
-
|
|
210
|
+
/* @__PURE__ */ a(
|
|
211
|
+
De,
|
|
195
212
|
{
|
|
196
213
|
className: "w-auto p-0",
|
|
197
214
|
align: "start",
|
|
198
215
|
onOpenAutoFocus: (e) => {
|
|
199
|
-
|
|
216
|
+
C.current || e.preventDefault(), C.current = !1;
|
|
200
217
|
},
|
|
201
|
-
children: /* @__PURE__ */
|
|
218
|
+
children: /* @__PURE__ */ a(
|
|
202
219
|
ke,
|
|
203
220
|
{
|
|
204
221
|
mode: "range",
|
|
205
|
-
selected:
|
|
206
|
-
onSelect:
|
|
207
|
-
month:
|
|
208
|
-
onMonthChange:
|
|
209
|
-
disabled: { before:
|
|
210
|
-
startMonth:
|
|
211
|
-
endMonth:
|
|
212
|
-
showFooter:
|
|
213
|
-
onApply:
|
|
214
|
-
onCancel:
|
|
215
|
-
onClear:
|
|
222
|
+
selected: I,
|
|
223
|
+
onSelect: ie,
|
|
224
|
+
month: re,
|
|
225
|
+
onMonthChange: A,
|
|
226
|
+
disabled: { before: $, after: _ },
|
|
227
|
+
startMonth: F,
|
|
228
|
+
endMonth: ee,
|
|
229
|
+
showFooter: x,
|
|
230
|
+
onApply: ce,
|
|
231
|
+
onCancel: K,
|
|
232
|
+
onClear: L,
|
|
216
233
|
captionLayout: "dropdown"
|
|
217
234
|
}
|
|
218
235
|
)
|
|
219
236
|
}
|
|
220
237
|
)
|
|
221
238
|
] }),
|
|
222
|
-
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
|
|
239
|
+
V && j === "absolute" && /* @__PURE__ */ m("div", { className: u("absolute left-0 top-full z-10 mt-1 flex min-w-0 max-w-full items-center gap-[6px]", v && "text-destructive"), children: [
|
|
240
|
+
/* @__PURE__ */ a(
|
|
241
|
+
G,
|
|
225
242
|
{
|
|
226
243
|
size: "xs",
|
|
227
|
-
className:
|
|
244
|
+
className: u(
|
|
228
245
|
"shrink-0",
|
|
229
|
-
|
|
246
|
+
v ? "text-destructive" : "text-content-muted"
|
|
230
247
|
)
|
|
231
248
|
}
|
|
232
249
|
),
|
|
233
|
-
/* @__PURE__ */
|
|
250
|
+
/* @__PURE__ */ a(
|
|
234
251
|
"p",
|
|
235
252
|
{
|
|
236
|
-
className:
|
|
253
|
+
className: u(
|
|
237
254
|
"min-w-0 text-[12px] font-medium leading-[18px] text-navigation-muted",
|
|
238
|
-
|
|
255
|
+
v && "text-destructive"
|
|
239
256
|
),
|
|
240
|
-
children:
|
|
257
|
+
children: V
|
|
241
258
|
}
|
|
242
259
|
)
|
|
243
260
|
] })
|
|
@@ -245,32 +262,32 @@ const Ne = i.forwardRef(
|
|
|
245
262
|
}
|
|
246
263
|
)
|
|
247
264
|
] }),
|
|
248
|
-
|
|
249
|
-
/* @__PURE__ */
|
|
250
|
-
|
|
265
|
+
V && j === "flow" && /* @__PURE__ */ m("div", { className: u("flex items-center gap-[6px]", v && "text-destructive"), children: [
|
|
266
|
+
/* @__PURE__ */ a(
|
|
267
|
+
G,
|
|
251
268
|
{
|
|
252
269
|
size: "xs",
|
|
253
|
-
className:
|
|
270
|
+
className: u(
|
|
254
271
|
"shrink-0",
|
|
255
|
-
|
|
272
|
+
v ? "text-destructive" : "text-content-muted"
|
|
256
273
|
)
|
|
257
274
|
}
|
|
258
275
|
),
|
|
259
|
-
/* @__PURE__ */
|
|
276
|
+
/* @__PURE__ */ a(
|
|
260
277
|
"p",
|
|
261
278
|
{
|
|
262
|
-
className:
|
|
279
|
+
className: u(
|
|
263
280
|
"text-[12px] font-medium leading-[18px] text-navigation-muted",
|
|
264
|
-
|
|
281
|
+
v && "text-destructive"
|
|
265
282
|
),
|
|
266
|
-
children:
|
|
283
|
+
children: V
|
|
267
284
|
}
|
|
268
285
|
)
|
|
269
286
|
] })
|
|
270
287
|
] });
|
|
271
288
|
}
|
|
272
289
|
);
|
|
273
|
-
|
|
290
|
+
Se.displayName = "DateRangePicker";
|
|
274
291
|
export {
|
|
275
|
-
|
|
292
|
+
Se as DateRangePicker
|
|
276
293
|
};
|