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