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