@krosoft/react 0.0.231 → 0.0.233

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 (66) hide show
  1. package/dist/{AppActions-QHJ6CP5w.js → AppActions-BFwztl-1.js} +2 -2
  2. package/dist/{AppSubTitle-BlwAxtMX.js → AppSubTitle-BTN0YAc7.js} +1 -1
  3. package/dist/{AppVerticalTabs-C6MH4a0M.js → AppVerticalTabs-B7XXtAVj.js} +19 -18
  4. package/dist/{ConfirmationDialog-CK65nSle.js → ConfirmationDialog-Dj4WdnHg.js} +5 -5
  5. package/dist/{DataTable-DYp_uFEn.js → DataTable-CjrR27Di.js} +3 -3
  6. package/dist/{ErrorAlert-BIQ2Te6B.js → ErrorAlert-B99Xb_Hg.js} +1 -1
  7. package/dist/{ErrorState-ZtWe5C0s.js → ErrorState-CkeS_IBT.js} +1 -1
  8. package/dist/{GenericForm-B7L7NkrE.js → GenericForm-CydibLHU.js} +6 -6
  9. package/dist/{ImageInput-CBDkCEho.js → ImageInput-DoOOvvth.js} +3 -3
  10. package/dist/{KpiCardsLayout-CUDfA-AP.js → KpiCardsLayout-Ca6otKVw.js} +5 -5
  11. package/dist/LanguageSelector-D5Ly1SFC.js +46 -0
  12. package/dist/{MultiSelect-DWNOCqe1.js → MultiSelect-DbH7LrsD.js} +3 -3
  13. package/dist/{PieChart-gP2QNrAQ.js → PieChart-uozNJtEx.js} +1 -1
  14. package/dist/{SearchInput-Dkvaei9K.js → SearchInput-DIZ5Yt6L.js} +4 -4
  15. package/dist/{SkeletonCards-CQKcSQW3.js → SkeletonCards-B9C4cNMr.js} +2 -2
  16. package/dist/{TableFilter-BXD7Es8j.js → TableFilter-CmEVF5Bo.js} +25 -25
  17. package/dist/{ThemeSelector-BtQNjlYA.js → ThemeSelector-DKhn02V2.js} +2 -2
  18. package/dist/Topbar-CPWjqOBF.js +429 -0
  19. package/dist/components/core/cards/index.js +1 -1
  20. package/dist/components/core/charts/index.js +1 -1
  21. package/dist/components/core/dialogs/index.js +3 -3
  22. package/dist/components/core/filters/index.js +1 -1
  23. package/dist/components/core/forms/index.js +1 -1
  24. package/dist/components/core/index.d.ts +1 -0
  25. package/dist/components/core/index.d.ts.map +1 -1
  26. package/dist/components/core/index.js +68 -65
  27. package/dist/components/core/inputs/index.js +3 -3
  28. package/dist/components/core/language/LanguageSelector.d.ts +9 -0
  29. package/dist/components/core/language/LanguageSelector.d.ts.map +1 -0
  30. package/dist/components/core/language/index.d.ts +3 -0
  31. package/dist/components/core/language/index.d.ts.map +1 -0
  32. package/dist/components/core/language/index.js +4 -0
  33. package/dist/components/core/layouts/index.js +3 -3
  34. package/dist/components/core/navbar/NotificationsBell.d.ts +64 -0
  35. package/dist/components/core/navbar/NotificationsBell.d.ts.map +1 -0
  36. package/dist/components/core/navbar/index.d.ts +2 -0
  37. package/dist/components/core/navbar/index.d.ts.map +1 -1
  38. package/dist/components/core/navbar/index.js +5 -4
  39. package/dist/components/core/states/index.js +2 -2
  40. package/dist/components/core/table/index.js +1 -1
  41. package/dist/components/core/tabs/index.js +1 -1
  42. package/dist/components/core/theme/index.js +1 -1
  43. package/dist/components/index.js +248 -245
  44. package/dist/components/ui/index.js +104 -104
  45. package/dist/hooks/behavior/index.js +1 -1
  46. package/dist/hooks/index.js +16 -14
  47. package/dist/hooks/ui/index.d.ts +2 -0
  48. package/dist/hooks/ui/index.d.ts.map +1 -1
  49. package/dist/hooks/ui/index.js +17 -15
  50. package/dist/hooks/ui/useLanguage.d.ts +29 -0
  51. package/dist/hooks/ui/useLanguage.d.ts.map +1 -0
  52. package/dist/i18n/index.js +2 -2
  53. package/dist/i18n/krosoftLocales.d.ts +26 -0
  54. package/dist/i18n/krosoftLocales.d.ts.map +1 -1
  55. package/dist/sheet-XYI-ezvY.js +292 -0
  56. package/dist/{toaster-B1J0puB_.js → toaster-CyzB1m5z.js} +26 -26
  57. package/dist/{toggle-group-DLLrEwv2.js → toggle-group-iZqnrTj7.js} +519 -566
  58. package/dist/{useDateFnsLocale-C4oFFUWO.js → useDateFnsLocale-D6VExZ8U.js} +1 -1
  59. package/dist/useKrosoftTranslation-BTp46G94.js +47 -0
  60. package/dist/useLanguage-C9jI2nwn.js +19 -0
  61. package/dist/{usePage-D3WXYmjl.js → usePage-BQm6tdJD.js} +1 -1
  62. package/dist/{useTheme-DyeQyPDL.js → useTheme-DS6ZjdzM.js} +1 -1
  63. package/package.json +1 -1
  64. package/dist/Topbar-DYim779_.js +0 -319
  65. package/dist/sheet-tuC_C3M3.js +0 -245
  66. package/dist/useKrosoftTranslation-DtdbUewZ.js +0 -43
@@ -0,0 +1,292 @@
1
+ import { jsx as o, jsxs as i } from "react/jsx-runtime";
2
+ import "date-fns/locale";
3
+ import "react-i18next";
4
+ import { u as C } from "./useKrosoftTranslation-BTp46G94.js";
5
+ import { c as r } from "./tailwind.helper-B6yFEsav.js";
6
+ import { Command as n } from "cmdk";
7
+ import { X as u, SearchIcon as k } from "lucide-react";
8
+ import * as d from "react";
9
+ import * as s from "@radix-ui/react-dialog";
10
+ import { e as S } from "./tooltip-DVeqVwqV.js";
11
+ import * as p from "@radix-ui/react-popover";
12
+ import * as m from "@radix-ui/react-scroll-area";
13
+ import { cva as R } from "class-variance-authority";
14
+ const D = s.Root, se = s.Trigger, _ = s.Portal, re = s.Close, g = d.forwardRef(
15
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o(
16
+ s.Overlay,
17
+ {
18
+ ref: t,
19
+ className: r(
20
+ "fixed inset-0 z-[70] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
21
+ a
22
+ ),
23
+ ...e
24
+ }
25
+ )
26
+ );
27
+ g.displayName = s.Overlay.displayName;
28
+ const z = "w-full max-w-none h-[100dvh] max-h-[100dvh] content-start rounded-none sm:h-auto sm:max-h-[95vh] sm:max-w-lg sm:rounded-surface", h = d.forwardRef(
29
+ ({ className: a, children: e, ...t }, l) => /* @__PURE__ */ i(_, { children: [
30
+ /* @__PURE__ */ o(g, {}),
31
+ /* @__PURE__ */ i(
32
+ s.Content,
33
+ {
34
+ ref: l,
35
+ className: r(
36
+ "fixed left-[50%] top-[50%] z-[70] grid overflow-y-auto translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
37
+ z,
38
+ a
39
+ ),
40
+ ...t,
41
+ children: [
42
+ e,
43
+ /* @__PURE__ */ i(s.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
44
+ /* @__PURE__ */ o(u, { className: "size-4" }),
45
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
46
+ ] })
47
+ ]
48
+ }
49
+ )
50
+ ] })
51
+ );
52
+ h.displayName = s.Content.displayName;
53
+ const T = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col space-y-1.5 text-center sm:text-left", a), ...e });
54
+ T.displayName = "DialogHeader";
55
+ const P = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
56
+ P.displayName = "DialogFooter";
57
+ const x = d.forwardRef(
58
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o(s.Title, { ref: t, className: r("text-lg font-semibold leading-none tracking-tight", a), ...e })
59
+ );
60
+ x.displayName = s.Title.displayName;
61
+ const y = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(s.Description, { ref: t, className: r("text-sm text-muted-foreground", a), ...e }));
62
+ y.displayName = s.Description.displayName;
63
+ const N = d.forwardRef(
64
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o(
65
+ n,
66
+ {
67
+ ref: t,
68
+ className: r("flex h-full w-full flex-col overflow-hidden rounded-surface bg-popover text-popover-foreground", a),
69
+ ...e
70
+ }
71
+ )
72
+ );
73
+ N.displayName = n.displayName;
74
+ const de = ({ title: a, description: e, shouldFilter: t, className: l, children: c, ...w }) => {
75
+ const { t: f } = C();
76
+ return /* @__PURE__ */ o(D, { ...w, children: /* @__PURE__ */ i(h, { className: "flex flex-col overflow-hidden p-0 shadow-lg", children: [
77
+ /* @__PURE__ */ o(x, { className: "sr-only", children: a ?? f("search.commandTitle") }),
78
+ /* @__PURE__ */ o(y, { className: "sr-only", children: e ?? f("search.commandDescription") }),
79
+ /* @__PURE__ */ o(
80
+ N,
81
+ {
82
+ shouldFilter: t,
83
+ className: r(
84
+ "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:size-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3",
85
+ "[&_[cmdk-list]]:max-h-none [&_[cmdk-list]]:min-h-0 [&_[cmdk-list]]:flex-1 sm:[&_[cmdk-list]]:max-h-[300px] sm:[&_[cmdk-list]]:flex-none",
86
+ l
87
+ ),
88
+ children: c
89
+ }
90
+ )
91
+ ] }) });
92
+ }, I = d.forwardRef(
93
+ ({ className: a, ...e }, t) => /* @__PURE__ */ i("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "", children: [
94
+ /* @__PURE__ */ o(k, { className: "mr-2 size-4 shrink-0 opacity-50" }),
95
+ /* @__PURE__ */ o(
96
+ n.Input,
97
+ {
98
+ ref: t,
99
+ className: r(
100
+ "flex h-11 w-full rounded-control bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
101
+ a
102
+ ),
103
+ ...e
104
+ }
105
+ )
106
+ ] })
107
+ );
108
+ I.displayName = n.Input.displayName;
109
+ const A = d.forwardRef(
110
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o(n.List, { ref: t, className: r("max-h-[300px] overflow-y-auto overflow-x-hidden", a), ...e })
111
+ );
112
+ A.displayName = n.List.displayName;
113
+ const O = d.forwardRef(
114
+ (a, e) => /* @__PURE__ */ o(n.Empty, { ref: e, className: "py-6 text-center text-sm", ...a })
115
+ );
116
+ O.displayName = n.Empty.displayName;
117
+ const j = d.forwardRef(
118
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o(
119
+ n.Group,
120
+ {
121
+ ref: t,
122
+ className: r(
123
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
124
+ a
125
+ ),
126
+ ...e
127
+ }
128
+ )
129
+ );
130
+ j.displayName = n.Group.displayName;
131
+ const F = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(n.Separator, { ref: t, className: r("-mx-1 h-px bg-border", a), ...e }));
132
+ F.displayName = n.Separator.displayName;
133
+ const E = d.forwardRef(
134
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o(
135
+ n.Item,
136
+ {
137
+ ref: t,
138
+ className: r(
139
+ "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",
140
+ a
141
+ ),
142
+ ...e
143
+ }
144
+ )
145
+ );
146
+ E.displayName = n.Item.displayName;
147
+ const H = ({ className: a, ...e }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", a), ...e });
148
+ H.displayName = "CommandShortcut";
149
+ const B = d.forwardRef(({ className: a, type: e, ...t }, l) => /* @__PURE__ */ o(
150
+ "input",
151
+ {
152
+ type: e,
153
+ className: r(
154
+ S,
155
+ // text-base sur mobile : évite le zoom automatique d'iOS à la prise de focus.
156
+ "flex w-full text-base file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 md:text-sm",
157
+ a
158
+ ),
159
+ ref: l,
160
+ ...t
161
+ }
162
+ ));
163
+ B.displayName = "Input";
164
+ const ne = p.Root, le = p.Trigger, G = d.forwardRef(
165
+ ({ className: a, align: e = "center", sideOffset: t = 4, ...l }, c) => /* @__PURE__ */ o(p.Portal, { children: /* @__PURE__ */ o(
166
+ p.Content,
167
+ {
168
+ ref: c,
169
+ align: e,
170
+ sideOffset: t,
171
+ className: r(
172
+ "z-[100] w-72 rounded-surface border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
173
+ a
174
+ ),
175
+ ...l
176
+ }
177
+ ) })
178
+ );
179
+ G.displayName = p.Content.displayName;
180
+ const L = d.forwardRef(
181
+ ({ className: a, children: e, ...t }, l) => /* @__PURE__ */ i(m.Root, { ref: l, className: r("relative overflow-hidden", a), ...t, children: [
182
+ /* @__PURE__ */ o(m.Viewport, { className: "h-full w-full rounded-[inherit]", children: e }),
183
+ /* @__PURE__ */ o(b, {}),
184
+ /* @__PURE__ */ o(m.Corner, {})
185
+ ] })
186
+ );
187
+ L.displayName = m.Root.displayName;
188
+ const b = d.forwardRef(({ className: a, orientation: e = "vertical", ...t }, l) => /* @__PURE__ */ o(
189
+ m.ScrollAreaScrollbar,
190
+ {
191
+ ref: l,
192
+ orientation: e,
193
+ className: r(
194
+ "flex touch-none select-none transition-colors",
195
+ e === "vertical" && "h-full w-2.5 border-l border-l-transparent p-[1px]",
196
+ e === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-[1px]",
197
+ a
198
+ ),
199
+ ...t,
200
+ children: /* @__PURE__ */ o(m.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
201
+ }
202
+ ));
203
+ b.displayName = m.ScrollAreaScrollbar.displayName;
204
+ const ie = s.Root, me = s.Trigger, ce = s.Close, V = s.Portal, v = d.forwardRef(
205
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o(
206
+ s.Overlay,
207
+ {
208
+ className: r(
209
+ "fixed inset-0 z-[70] bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
210
+ a
211
+ ),
212
+ ...e,
213
+ ref: t
214
+ }
215
+ )
216
+ );
217
+ v.displayName = s.Overlay.displayName;
218
+ const q = R(
219
+ "fixed z-[70] gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
220
+ {
221
+ variants: {
222
+ side: {
223
+ top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
224
+ bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
225
+ left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
226
+ right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
227
+ }
228
+ },
229
+ defaultVariants: {
230
+ side: "right"
231
+ }
232
+ }
233
+ ), K = d.forwardRef(
234
+ ({ side: a = "right", className: e, children: t, ...l }, c) => /* @__PURE__ */ i(V, { children: [
235
+ /* @__PURE__ */ o(v, {}),
236
+ /* @__PURE__ */ i(s.Content, { ref: c, className: r(q({ side: a }), e), ...l, children: [
237
+ t,
238
+ /* @__PURE__ */ i(s.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
239
+ /* @__PURE__ */ o(u, { className: "size-4" }),
240
+ /* @__PURE__ */ o("span", { className: "sr-only", children: "Close" })
241
+ ] })
242
+ ] })
243
+ ] })
244
+ );
245
+ K.displayName = s.Content.displayName;
246
+ const X = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", a), ...e });
247
+ X.displayName = "SheetHeader";
248
+ const $ = ({ className: a, ...e }) => /* @__PURE__ */ o("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", a), ...e });
249
+ $.displayName = "SheetFooter";
250
+ const J = d.forwardRef(
251
+ ({ className: a, ...e }, t) => /* @__PURE__ */ o(s.Title, { ref: t, className: r("text-lg font-semibold text-foreground", a), ...e })
252
+ );
253
+ J.displayName = s.Title.displayName;
254
+ const M = d.forwardRef(({ className: a, ...e }, t) => /* @__PURE__ */ o(s.Description, { ref: t, className: r("text-sm text-muted-foreground", a), ...e }));
255
+ M.displayName = s.Description.displayName;
256
+ export {
257
+ v as A,
258
+ V as B,
259
+ N as C,
260
+ D,
261
+ J as E,
262
+ me as F,
263
+ B as I,
264
+ ne as P,
265
+ L as S,
266
+ re as a,
267
+ h as b,
268
+ y as c,
269
+ P as d,
270
+ T as e,
271
+ g as f,
272
+ _ as g,
273
+ x as h,
274
+ se as i,
275
+ de as j,
276
+ O as k,
277
+ j as l,
278
+ I as m,
279
+ E as n,
280
+ A as o,
281
+ F as p,
282
+ H as q,
283
+ G as r,
284
+ le as s,
285
+ b as t,
286
+ ie as u,
287
+ ce as v,
288
+ K as w,
289
+ M as x,
290
+ $ as y,
291
+ X as z
292
+ };
@@ -1,18 +1,18 @@
1
- import * as p from "@radix-ui/react-aspect-ratio";
1
+ import * as m from "@radix-ui/react-aspect-ratio";
2
2
  import * as s from "@radix-ui/react-collapsible";
3
- import { jsx as t, jsxs as a } from "react/jsx-runtime";
4
- import { GripVertical as f, XIcon as m } from "lucide-react";
3
+ import { jsx as o, jsxs as a } from "react/jsx-runtime";
4
+ import { GripVertical as f, XIcon as p } from "lucide-react";
5
5
  import * as i from "react-resizable-panels";
6
6
  import { c as l } from "./tailwind.helper-B6yFEsav.js";
7
7
  import { useTheme as g } from "next-themes";
8
8
  import { Toaster as b } from "sonner";
9
9
  import { u as d } from "./useToast-BFTk4lWz.js";
10
- import { br as h, bn as v, bs as T, bq as x, bp as z, bt as C } from "./toggle-group-DLLrEwv2.js";
11
- const B = p.Root, G = s.Root, V = s.CollapsibleTrigger, $ = s.CollapsibleContent, k = ({ className: o, ...r }) => /* @__PURE__ */ t(i.Group, { className: l(o), ...r }), q = i.Panel, D = ({
12
- withHandle: o,
10
+ import { bm as h, bi as v, bn as T, bl as x, bk as z, bo as C } from "./toggle-group-iZqnrTj7.js";
11
+ const B = m.Root, G = s.Root, k = s.CollapsibleTrigger, V = s.CollapsibleContent, $ = ({ className: t, ...r }) => /* @__PURE__ */ o(i.Group, { className: l(t), ...r }), D = i.Panel, H = ({
12
+ withHandle: t,
13
13
  className: r,
14
14
  ...e
15
- }) => /* @__PURE__ */ t(
15
+ }) => /* @__PURE__ */ o(
16
16
  i.Separator,
17
17
  {
18
18
  className: l(
@@ -20,16 +20,16 @@ const B = p.Root, G = s.Root, V = s.CollapsibleTrigger, $ = s.CollapsibleContent
20
20
  r
21
21
  ),
22
22
  ...e,
23
- children: o && /* @__PURE__ */ t("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ t(f, { className: "h-2.5 w-2.5" }) })
23
+ children: t && /* @__PURE__ */ o("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ o(f, { className: "h-2.5 w-2.5" }) })
24
24
  }
25
- ), H = ({ ...o }) => {
25
+ ), I = ({ ...t }) => {
26
26
  const { theme: r = "system" } = g();
27
- return /* @__PURE__ */ t(
27
+ return /* @__PURE__ */ o(
28
28
  b,
29
29
  {
30
30
  theme: r,
31
31
  className: "toaster group",
32
- icons: { close: /* @__PURE__ */ t(m, { className: "size-4" }) },
32
+ icons: { close: /* @__PURE__ */ o(p, { className: "size-4" }) },
33
33
  toastOptions: {
34
34
  classNames: {
35
35
  toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
@@ -42,34 +42,34 @@ const B = p.Root, G = s.Root, V = s.CollapsibleTrigger, $ = s.CollapsibleContent
42
42
  closeButton: "!static !order-last !size-6 !transform-none !rounded-control !border-0 !bg-transparent !text-foreground/60 !opacity-100 hover:!bg-muted hover:!text-foreground focus-visible:!ring-2 focus-visible:!ring-ring"
43
43
  }
44
44
  },
45
- ...o
45
+ ...t
46
46
  }
47
47
  );
48
48
  };
49
- function I() {
50
- const { toasts: o } = d();
49
+ function O() {
50
+ const { toasts: t } = d();
51
51
  return /* @__PURE__ */ a(h, { children: [
52
- o.map(function({ id: r, title: e, description: n, action: c, ...u }) {
52
+ t.map(function({ id: r, title: e, description: n, action: c, ...u }) {
53
53
  return /* @__PURE__ */ a(v, { ...u, children: [
54
54
  /* @__PURE__ */ a("div", { className: "grid gap-1", children: [
55
- e && /* @__PURE__ */ t(T, { children: e }),
56
- n && /* @__PURE__ */ t(x, { children: n })
55
+ e && /* @__PURE__ */ o(T, { children: e }),
56
+ n && /* @__PURE__ */ o(x, { children: n })
57
57
  ] }),
58
58
  c,
59
- /* @__PURE__ */ t(z, {})
59
+ /* @__PURE__ */ o(z, {})
60
60
  ] }, r);
61
61
  }),
62
- /* @__PURE__ */ t(C, {})
62
+ /* @__PURE__ */ o(C, {})
63
63
  ] });
64
64
  }
65
65
  export {
66
66
  B as A,
67
67
  G as C,
68
- D as R,
69
- H as T,
70
- $ as a,
71
- V as b,
72
- q as c,
73
- k as d,
74
- I as e
68
+ H as R,
69
+ I as T,
70
+ V as a,
71
+ k as b,
72
+ D as c,
73
+ $ as d,
74
+ O as e
75
75
  };