@krosoft/react 0.0.237 → 0.0.239

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 (109) hide show
  1. package/dist/AppActions-C_0YI75w.js +60 -0
  2. package/dist/AppSubTitle-tqqV9nuT.js +19 -0
  3. package/dist/AppTitle-BR4JFZfp.js +19 -0
  4. package/dist/ErrorAlert-BDqDHUUc.js +27 -0
  5. package/dist/GenericForm-CWXT5wiv.js +310 -0
  6. package/dist/ImageInput-CN2ozjpc.js +80 -0
  7. package/dist/MultiSelect-BF0zL0B0.js +134 -0
  8. package/dist/SearchInput-BJPT0SbB.js +255 -0
  9. package/dist/alert-REQGK9bR.js +32 -0
  10. package/dist/behavior-BR_V9Rpe.js +76 -0
  11. package/dist/cards-Cta6x49J.js +126 -0
  12. package/dist/chart-Dq3AIrue.js +166 -0
  13. package/dist/charts-CXhVUqLH.js +328 -0
  14. package/dist/components/core/cards/index.js +2 -10
  15. package/dist/components/core/charts/index.js +2 -11
  16. package/dist/components/core/dialogs/index.js +4 -19
  17. package/dist/components/core/filters/index.js +426 -7
  18. package/dist/components/core/forms/index.js +2 -4
  19. package/dist/components/core/index.js +24 -97
  20. package/dist/components/core/inputs/index.js +4 -11
  21. package/dist/components/core/language/index.js +2 -4
  22. package/dist/components/core/layouts/index.js +50 -11
  23. package/dist/components/core/navbar/index.js +2 -9
  24. package/dist/components/core/states/index.js +3 -8
  25. package/dist/components/core/table/index.js +2 -15
  26. package/dist/components/core/tabs/index.js +188 -6
  27. package/dist/components/core/theme/index.js +2 -4
  28. package/dist/components/index.js +28 -322
  29. package/dist/components/ui/index.js +8 -240
  30. package/dist/contexts/index.js +2 -5
  31. package/dist/dialogs-BGHSClsq.js +208 -0
  32. package/dist/helpers/index.js +39 -46
  33. package/dist/hooks/behavior/index.js +2 -10
  34. package/dist/hooks/index.js +11 -30
  35. package/dist/hooks/ui/index.js +10 -22
  36. package/dist/i18n/index.js +2 -10
  37. package/dist/i18n-Dw99bRmg.js +190 -0
  38. package/dist/language-DxHhlpgN.js +58 -0
  39. package/dist/navbar-Bc5OQWRI.js +385 -0
  40. package/dist/providers/index.js +42 -49
  41. package/dist/pwa/index.js +32 -34
  42. package/dist/select-ULiTPOr5.js +81 -0
  43. package/dist/sheet-CRrYTZrl.js +226 -0
  44. package/dist/sidebar.context-BahtU6hE.js +5 -0
  45. package/dist/skeleton-D6Ga4BLw.js +11 -0
  46. package/dist/states-N8-LjFng.js +26 -0
  47. package/dist/table-muUyiaK6.js +571 -0
  48. package/dist/tailwind/index.js +126 -156
  49. package/dist/tailwind.helper-CJaRYBmL.js +8 -0
  50. package/dist/theme-B_n0F6R4.js +57 -0
  51. package/dist/tokens/index.js +37 -46
  52. package/dist/tooltip-B2dzyfs9.js +50 -0
  53. package/dist/types/forms/index.js +0 -1
  54. package/dist/types/index.js +1 -1
  55. package/dist/ui-CiX0E_bn.js +1165 -0
  56. package/dist/ui-DSVBO3iM.js +46 -0
  57. package/dist/useDocumentTitle-D7MywIeB.js +19 -0
  58. package/dist/useFixedColumns-DfAX30tT.js +147 -0
  59. package/dist/useLanguage-DN3CuBv5.js +19 -0
  60. package/dist/useMobile-pTQ8lWvt.js +16 -0
  61. package/dist/useNotifications-CyhTruIG.js +20 -0
  62. package/dist/useScrollFade-D9kqJBDh.js +27 -0
  63. package/dist/useTheme-DVfcJ-Qd.js +25 -0
  64. package/dist/useToast-UeDRLovh.js +103 -0
  65. package/package.json +3 -3
  66. package/dist/AppActions-BFwztl-1.js +0 -76
  67. package/dist/AppSubTitle-BTN0YAc7.js +0 -13
  68. package/dist/AppTitle-D15YXeMx.js +0 -13
  69. package/dist/AppVerticalTabs-B7XXtAVj.js +0 -103
  70. package/dist/ConfirmationDialog-Dj4WdnHg.js +0 -188
  71. package/dist/DataTable-CjrR27Di.js +0 -638
  72. package/dist/ErrorAlert-B99Xb_Hg.js +0 -23
  73. package/dist/ErrorState-CkeS_IBT.js +0 -14
  74. package/dist/GenericForm-CydibLHU.js +0 -343
  75. package/dist/ImageInput-DoOOvvth.js +0 -70
  76. package/dist/KpiCardsLayout-Bq4xQ3i8.js +0 -43
  77. package/dist/LanguageSelector-C7E51rCQ.js +0 -47
  78. package/dist/LoadingState-BN0YaPSs.js +0 -9
  79. package/dist/MetricCard-B0xnFyim.js +0 -53
  80. package/dist/MultiSelect-DbH7LrsD.js +0 -149
  81. package/dist/PieChart-uozNJtEx.js +0 -295
  82. package/dist/SearchInput-DIZ5Yt6L.js +0 -246
  83. package/dist/SkeletonCards-B9C4cNMr.js +0 -75
  84. package/dist/TableFilter-CmEVF5Bo.js +0 -422
  85. package/dist/ThemeSelector-CLi4_epH.js +0 -52
  86. package/dist/Topbar-Clby5_uj.js +0 -431
  87. package/dist/alert-B9F1N9Qk.js +0 -30
  88. package/dist/chart-DntJZGxB.js +0 -181
  89. package/dist/select-BpjFWqAY.js +0 -96
  90. package/dist/sheet-XYI-ezvY.js +0 -292
  91. package/dist/sidebar.context-D5nywlmP.js +0 -6
  92. package/dist/skeleton-BX4RcsiK.js +0 -8
  93. package/dist/tailwind.helper-B6yFEsav.js +0 -8
  94. package/dist/toaster-CyzB1m5z.js +0 -75
  95. package/dist/toggle-group-iZqnrTj7.js +0 -1276
  96. package/dist/tooltip-DVeqVwqV.js +0 -61
  97. package/dist/useDateFnsLocale-D6VExZ8U.js +0 -11
  98. package/dist/useDocumentTitle-WNwdPz-I.js +0 -14
  99. package/dist/useFixedColumns-CKZyu4PD.js +0 -161
  100. package/dist/useKrosoftTranslation-BTp46G94.js +0 -47
  101. package/dist/useLanguage-C9jI2nwn.js +0 -19
  102. package/dist/useMobile-DN1_OMDB.js +0 -16
  103. package/dist/useNotifications-zbUhCvF_.js +0 -12
  104. package/dist/usePage-BQm6tdJD.js +0 -84
  105. package/dist/useScrollFade-BA4KqJYp.js +0 -23
  106. package/dist/useServerTable-UvTY6L1N.js +0 -38
  107. package/dist/useSidebar-BJuALHqQ.js +0 -11
  108. package/dist/useTheme-DS6ZjdzM.js +0 -27
  109. package/dist/useToast-BFTk4lWz.js +0 -100
@@ -1,1276 +0,0 @@
1
- import { jsx as o, jsxs as u } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import * as h from "@radix-ui/react-accordion";
4
- import { ChevronDown as V, MoreHorizontal as ce, ChevronRight as P, ChevronLeft as me, ArrowLeft as ue, ArrowRight as fe, CheckIcon as _, Check as E, Circle as O, ChevronRightIcon as $, CircleIcon as pe, Dot as ge, MoreHorizontalIcon as be, ChevronLeftIcon as Ne, XIcon as xe } from "lucide-react";
5
- import { c as r } from "./tailwind.helper-B6yFEsav.js";
6
- import * as g from "@radix-ui/react-alert-dialog";
7
- import { d as R, B as q } from "./tooltip-DVeqVwqV.js";
8
- import * as C from "@radix-ui/react-avatar";
9
- import { cva as S } from "class-variance-authority";
10
- import { Slot as K } from "@radix-ui/react-slot";
11
- import { DayPicker as ye } from "react-day-picker";
12
- import ve from "embla-carousel-react";
13
- import * as L from "@radix-ui/react-checkbox";
14
- import * as c from "@radix-ui/react-context-menu";
15
- import { Drawer as y } from "vaul";
16
- import * as m from "@radix-ui/react-dropdown-menu";
17
- import { useFormContext as he, FormProvider as we, Controller as Re } from "react-hook-form";
18
- import * as Ce from "@radix-ui/react-label";
19
- import * as z from "@radix-ui/react-hover-card";
20
- import { OTPInput as Ie, OTPInputContext as Te } from "input-otp";
21
- import * as d from "@radix-ui/react-menubar";
22
- import * as b from "@radix-ui/react-navigation-menu";
23
- import * as G from "@radix-ui/react-progress";
24
- import * as k from "@radix-ui/react-radio-group";
25
- import * as X from "@radix-ui/react-separator";
26
- import * as T from "@radix-ui/react-slider";
27
- import * as B from "@radix-ui/react-switch";
28
- import * as w from "@radix-ui/react-tabs";
29
- import { u as ke } from "./useScrollFade-BA4KqJYp.js";
30
- import * as N from "@radix-ui/react-toast";
31
- import * as M from "@radix-ui/react-toggle-group";
32
- import * as W from "@radix-ui/react-toggle";
33
- const Wt = h.Root, Se = s.forwardRef(
34
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(h.Item, { ref: t, className: r("border-b", e), ...a })
35
- );
36
- Se.displayName = "AccordionItem";
37
- const Pe = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ o(h.Header, { className: "flex", children: /* @__PURE__ */ u(
38
- h.Trigger,
39
- {
40
- ref: n,
41
- className: r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180", e),
42
- ...t,
43
- children: [
44
- a,
45
- /* @__PURE__ */ o(V, { className: "size-4 shrink-0 transition-transform duration-200" })
46
- ]
47
- }
48
- ) }));
49
- Pe.displayName = h.Trigger.displayName;
50
- const ze = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ o(
51
- h.Content,
52
- {
53
- ref: n,
54
- className: "overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
55
- ...t,
56
- children: /* @__PURE__ */ o("div", { className: r("pb-4 pt-0", e), children: a })
57
- }
58
- ));
59
- ze.displayName = h.Content.displayName;
60
- const Jt = g.Root, Qt = g.Trigger, Me = g.Portal, J = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
61
- g.Overlay,
62
- {
63
- className: r(
64
- "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",
65
- e
66
- ),
67
- ...a,
68
- ref: t
69
- }
70
- ));
71
- J.displayName = g.Overlay.displayName;
72
- const De = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ u(Me, { children: [
73
- /* @__PURE__ */ o(J, {}),
74
- /* @__PURE__ */ o(
75
- g.Content,
76
- {
77
- ref: t,
78
- className: r(
79
- "fixed left-[50%] top-[50%] z-70 grid w-full max-w-lg 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%] sm:rounded-surface",
80
- e
81
- ),
82
- ...a
83
- }
84
- )
85
- ] }));
86
- De.displayName = g.Content.displayName;
87
- const Fe = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
88
- Fe.displayName = "AlertDialogHeader";
89
- const je = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
90
- je.displayName = "AlertDialogFooter";
91
- const Ae = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(g.Title, { ref: t, className: r("text-lg font-semibold", e), ...a }));
92
- Ae.displayName = g.Title.displayName;
93
- const Le = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(g.Description, { ref: t, className: r("text-sm text-muted-foreground", e), ...a }));
94
- Le.displayName = g.Description.displayName;
95
- const Ge = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(g.Action, { ref: t, className: r(R(), e), ...a }));
96
- Ge.displayName = g.Action.displayName;
97
- const Be = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(g.Cancel, { ref: t, className: r(R({ variant: "outline" }), "mt-2 sm:mt-0", e), ...a }));
98
- Be.displayName = g.Cancel.displayName;
99
- const Oe = s.forwardRef(
100
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(C.Root, { ref: t, className: r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e), ...a })
101
- );
102
- Oe.displayName = C.Root.displayName;
103
- const He = s.forwardRef(
104
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(C.Image, { ref: t, className: r("aspect-square h-full w-full", e), ...a })
105
- );
106
- He.displayName = C.Image.displayName;
107
- const Ve = s.forwardRef(
108
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(C.Fallback, { ref: t, className: r("flex h-full w-full items-center justify-center rounded-full bg-muted", e), ...a })
109
- );
110
- Ve.displayName = C.Fallback.displayName;
111
- const _e = S(
112
- "inline-flex items-center rounded-control border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
113
- {
114
- variants: {
115
- variant: {
116
- default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/80",
117
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
118
- destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
119
- outline: "text-foreground"
120
- }
121
- },
122
- defaultVariants: {
123
- variant: "default"
124
- }
125
- }
126
- );
127
- function Ut({ className: e, variant: a, ...t }) {
128
- return /* @__PURE__ */ o("div", { className: r(_e({ variant: a }), e), ...t });
129
- }
130
- const Ee = s.forwardRef(({ ...e }, a) => /* @__PURE__ */ o("nav", { ref: a, "aria-label": "breadcrumb", ...e }));
131
- Ee.displayName = "Breadcrumb";
132
- const $e = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("ol", { ref: t, className: r("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5", e), ...a }));
133
- $e.displayName = "BreadcrumbList";
134
- const qe = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("li", { ref: t, className: r("inline-flex items-center gap-1.5", e), ...a }));
135
- qe.displayName = "BreadcrumbItem";
136
- const Ke = s.forwardRef(({ asChild: e, className: a, ...t }, n) => /* @__PURE__ */ o(e ? K : "a", { ref: n, className: r("transition-colors hover:text-foreground", a), ...t }));
137
- Ke.displayName = "BreadcrumbLink";
138
- const Xe = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("span", { ref: t, role: "link", "aria-disabled": "true", "aria-current": "page", className: r("font-normal text-foreground", e), ...a }));
139
- Xe.displayName = "BreadcrumbPage";
140
- const We = ({ children: e, className: a, ...t }) => /* @__PURE__ */ o("li", { role: "presentation", "aria-hidden": "true", className: r("[&>svg]:size-3.5", a), ...t, children: e ?? /* @__PURE__ */ o(P, {}) });
141
- We.displayName = "BreadcrumbSeparator";
142
- const Je = ({ className: e, ...a }) => /* @__PURE__ */ u("span", { role: "presentation", "aria-hidden": "true", className: r("flex h-9 w-9 items-center justify-center", e), ...a, children: [
143
- /* @__PURE__ */ o(ce, { className: "size-4" }),
144
- /* @__PURE__ */ o("span", { className: "sr-only", children: "More" })
145
- ] });
146
- Je.displayName = "BreadcrumbElipssis";
147
- function Qe({ className: e, classNames: a, showOutsideDays: t = !0, ...n }) {
148
- return /* @__PURE__ */ o(
149
- ye,
150
- {
151
- showOutsideDays: t,
152
- className: r("p-3 pointer-events-auto", e),
153
- classNames: {
154
- months: "flex flex-col gap-2 relative sm:flex-row",
155
- month: "flex flex-col gap-4",
156
- month_caption: "flex justify-center pt-1 relative items-center w-full",
157
- caption_label: "text-sm font-medium",
158
- nav: "flex items-center gap-1 absolute h-7 w-full z-10",
159
- button_previous: r(R({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute left-1"),
160
- button_next: r(R({ variant: "outline" }), "h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100", "absolute right-1"),
161
- weekdays: "flex justify-center",
162
- weekday: "text-muted-foreground rounded-control w-9 font-normal text-[0.8rem] text-center flex items-center justify-center",
163
- week: "flex w-full mt-2",
164
- day: r(
165
- "group relative size-9 p-0 text-center text-sm focus-within:relative focus-within:z-20",
166
- "[&:has([aria-selected].day-range-end)]:rounded-r-control",
167
- "[&:has([aria-selected])]:bg-accent",
168
- "first:[&:has([aria-selected])]:rounded-l-control",
169
- "last:[&:has([aria-selected])]:rounded-r-control",
170
- "[&:has([aria-selected].day-outside)]:bg-accent/50"
171
- ),
172
- day_button: r(R({ variant: "ghost" }), "size-9 p-0 font-normal aria-selected:opacity-100"),
173
- range_start: "day-range-start rounded-l-control",
174
- range_end: "day-range-end rounded-r-control",
175
- selected: "bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",
176
- today: "bg-accent text-accent-foreground",
177
- outside: "day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",
178
- disabled: "text-muted-foreground opacity-50",
179
- range_middle: "aria-selected:bg-accent aria-selected:text-accent-foreground",
180
- hidden: "invisible",
181
- ...a
182
- },
183
- components: {
184
- Chevron: ({ orientation: i, ...l }) => /* @__PURE__ */ o(i === "left" ? me : P, { className: "size-4", ...l })
185
- },
186
- ...n
187
- }
188
- );
189
- }
190
- Qe.displayName = "Calendar";
191
- const Q = s.createContext(null);
192
- function D() {
193
- const e = s.useContext(Q);
194
- if (!e)
195
- throw new Error("useCarousel must be used within a <Carousel />");
196
- return e;
197
- }
198
- const Ue = s.forwardRef(
199
- ({ orientation: e = "horizontal", opts: a, setApi: t, plugins: n, className: i, children: l, ...p }, x) => {
200
- const [re, f] = ve(
201
- {
202
- ...a,
203
- axis: e === "horizontal" ? "x" : "y"
204
- },
205
- n
206
- ), [se, ne] = s.useState(!1), [ie, de] = s.useState(!1), I = s.useCallback((v) => {
207
- v && (ne(v.canScrollPrev()), de(v.canScrollNext()));
208
- }, []), j = s.useCallback(() => {
209
- f == null || f.scrollPrev();
210
- }, [f]), A = s.useCallback(() => {
211
- f == null || f.scrollNext();
212
- }, [f]), le = s.useCallback(
213
- (v) => {
214
- v.key === "ArrowLeft" ? (v.preventDefault(), j()) : v.key === "ArrowRight" && (v.preventDefault(), A());
215
- },
216
- [j, A]
217
- );
218
- return s.useEffect(() => {
219
- !f || !t || t(f);
220
- }, [f, t]), s.useEffect(() => {
221
- if (f)
222
- return I(f), f.on("reInit", I), f.on("select", I), () => {
223
- f == null || f.off("select", I);
224
- };
225
- }, [f, I]), /* @__PURE__ */ o(
226
- Q.Provider,
227
- {
228
- value: {
229
- carouselRef: re,
230
- api: f,
231
- opts: a,
232
- orientation: e || ((a == null ? void 0 : a.axis) === "y" ? "vertical" : "horizontal"),
233
- scrollPrev: j,
234
- scrollNext: A,
235
- canScrollPrev: se,
236
- canScrollNext: ie
237
- },
238
- children: /* @__PURE__ */ o("div", { ref: x, onKeyDownCapture: le, className: r("relative", i), role: "region", "aria-roledescription": "carousel", ...p, children: l })
239
- }
240
- );
241
- }
242
- );
243
- Ue.displayName = "Carousel";
244
- const Ye = s.forwardRef(({ className: e, ...a }, t) => {
245
- const { carouselRef: n, orientation: i } = D();
246
- return /* @__PURE__ */ o("div", { ref: n, className: "overflow-hidden", children: /* @__PURE__ */ o("div", { ref: t, className: r("flex", i === "horizontal" ? "-ml-4" : "-mt-4 flex-col", e), ...a }) });
247
- });
248
- Ye.displayName = "CarouselContent";
249
- const Ze = s.forwardRef(({ className: e, ...a }, t) => {
250
- const { orientation: n } = D();
251
- return /* @__PURE__ */ o(
252
- "div",
253
- {
254
- ref: t,
255
- role: "group",
256
- "aria-roledescription": "slide",
257
- className: r("min-w-0 shrink-0 grow-0 basis-full", n === "horizontal" ? "pl-4" : "pt-4", e),
258
- ...a
259
- }
260
- );
261
- });
262
- Ze.displayName = "CarouselItem";
263
- const ea = s.forwardRef(
264
- ({ className: e, variant: a = "outline", size: t = "icon", ...n }, i) => {
265
- const { orientation: l, scrollPrev: p, canScrollPrev: x } = D();
266
- return /* @__PURE__ */ u(
267
- q,
268
- {
269
- ref: i,
270
- variant: a,
271
- size: t,
272
- className: r(
273
- "absolute h-8 w-8 rounded-control",
274
- l === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
275
- e
276
- ),
277
- disabled: !x,
278
- onClick: p,
279
- ...n,
280
- children: [
281
- /* @__PURE__ */ o(ue, { className: "size-4" }),
282
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Previous slide" })
283
- ]
284
- }
285
- );
286
- }
287
- );
288
- ea.displayName = "CarouselPrevious";
289
- const aa = s.forwardRef(
290
- ({ className: e, variant: a = "outline", size: t = "icon", ...n }, i) => {
291
- const { orientation: l, scrollNext: p, canScrollNext: x } = D();
292
- return /* @__PURE__ */ u(
293
- q,
294
- {
295
- ref: i,
296
- variant: a,
297
- size: t,
298
- className: r(
299
- "absolute h-8 w-8 rounded-control",
300
- l === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
301
- e
302
- ),
303
- disabled: !x,
304
- onClick: p,
305
- ...n,
306
- children: [
307
- /* @__PURE__ */ o(fe, { className: "size-4" }),
308
- /* @__PURE__ */ o("span", { className: "sr-only", children: "Next slide" })
309
- ]
310
- }
311
- );
312
- }
313
- );
314
- aa.displayName = "CarouselNext";
315
- const ta = s.forwardRef(
316
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
317
- L.Root,
318
- {
319
- ref: t,
320
- className: r(
321
- "peer size-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-primary data-[state=indeterminate]:text-primary-foreground",
322
- e
323
- ),
324
- ...a,
325
- children: /* @__PURE__ */ o(L.Indicator, { className: r("flex items-center justify-center text-current"), children: a.checked === "indeterminate" ? /* @__PURE__ */ o("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: 3, className: "size-3", children: /* @__PURE__ */ o("line", { x1: "5", y1: "12", x2: "19", y2: "12" }) }) : /* @__PURE__ */ o(_, { className: "size-3" }) })
326
- }
327
- )
328
- );
329
- ta.displayName = L.Root.displayName;
330
- const Yt = c.Root, Zt = c.Trigger, eo = c.Group, ao = c.Portal, to = c.Sub, oo = c.RadioGroup, oa = s.forwardRef(({ className: e, inset: a, children: t, ...n }, i) => /* @__PURE__ */ u(
331
- c.SubTrigger,
332
- {
333
- ref: i,
334
- className: r(
335
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
336
- a && "pl-8",
337
- e
338
- ),
339
- ...n,
340
- children: [
341
- t,
342
- /* @__PURE__ */ o(P, { className: "ml-auto size-4" })
343
- ]
344
- }
345
- ));
346
- oa.displayName = c.SubTrigger.displayName;
347
- const ra = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
348
- c.SubContent,
349
- {
350
- ref: t,
351
- className: r(
352
- "z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md 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",
353
- e
354
- ),
355
- ...a
356
- }
357
- ));
358
- ra.displayName = c.SubContent.displayName;
359
- const sa = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(c.Portal, { children: /* @__PURE__ */ o(
360
- c.Content,
361
- {
362
- ref: t,
363
- className: r(
364
- "z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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",
365
- e
366
- ),
367
- ...a
368
- }
369
- ) }));
370
- sa.displayName = c.Content.displayName;
371
- const na = s.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */ o(
372
- c.Item,
373
- {
374
- ref: n,
375
- className: r(
376
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
377
- a && "pl-8",
378
- e
379
- ),
380
- ...t
381
- }
382
- ));
383
- na.displayName = c.Item.displayName;
384
- const ia = s.forwardRef(({ className: e, children: a, checked: t, ...n }, i) => /* @__PURE__ */ u(
385
- c.CheckboxItem,
386
- {
387
- ref: i,
388
- className: r(
389
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
390
- e
391
- ),
392
- checked: t,
393
- ...n,
394
- children: [
395
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(c.ItemIndicator, { children: /* @__PURE__ */ o(E, { className: "size-4" }) }) }),
396
- a
397
- ]
398
- }
399
- ));
400
- ia.displayName = c.CheckboxItem.displayName;
401
- const da = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ u(
402
- c.RadioItem,
403
- {
404
- ref: n,
405
- className: r(
406
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
407
- e
408
- ),
409
- ...t,
410
- children: [
411
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(c.ItemIndicator, { children: /* @__PURE__ */ o(O, { className: "h-2 w-2 fill-current" }) }) }),
412
- a
413
- ]
414
- }
415
- ));
416
- da.displayName = c.RadioItem.displayName;
417
- const la = s.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */ o(c.Label, { ref: n, className: r("px-2 py-1.5 text-sm font-semibold text-foreground", a && "pl-8", e), ...t }));
418
- la.displayName = c.Label.displayName;
419
- const ca = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(c.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-border", e), ...a }));
420
- ca.displayName = c.Separator.displayName;
421
- const ma = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
422
- ma.displayName = "ContextMenuShortcut";
423
- const ua = ({ shouldScaleBackground: e = !0, ...a }) => /* @__PURE__ */ o(y.Root, { shouldScaleBackground: e, ...a });
424
- ua.displayName = "Drawer";
425
- const ro = y.Trigger, fa = y.Portal, so = y.Close, U = s.forwardRef(
426
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(y.Overlay, { ref: t, className: r("fixed inset-0 z-50 bg-black/80", e), ...a })
427
- );
428
- U.displayName = y.Overlay.displayName;
429
- const pa = s.forwardRef(
430
- ({ className: e, children: a, ...t }, n) => /* @__PURE__ */ u(fa, { children: [
431
- /* @__PURE__ */ o(U, {}),
432
- /* @__PURE__ */ u(
433
- y.Content,
434
- {
435
- ref: n,
436
- className: r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-surface border bg-background", e),
437
- ...t,
438
- children: [
439
- /* @__PURE__ */ o("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
440
- a
441
- ]
442
- }
443
- )
444
- ] })
445
- );
446
- pa.displayName = "DrawerContent";
447
- const ga = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: r("grid gap-1.5 p-4 text-center sm:text-left", e), ...a });
448
- ga.displayName = "DrawerHeader";
449
- const ba = ({ className: e, ...a }) => /* @__PURE__ */ o("div", { className: r("mt-auto flex flex-col gap-2 p-4", e), ...a });
450
- ba.displayName = "DrawerFooter";
451
- const Na = s.forwardRef(
452
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(y.Title, { ref: t, className: r("text-lg font-semibold leading-none tracking-tight", e), ...a })
453
- );
454
- Na.displayName = y.Title.displayName;
455
- const xa = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(y.Description, { ref: t, className: r("text-sm text-muted-foreground", e), ...a }));
456
- xa.displayName = y.Description.displayName;
457
- const no = m.Root, io = m.Trigger, lo = m.Group, co = m.Portal, mo = m.Sub, uo = m.RadioGroup, ya = s.forwardRef(({ className: e, inset: a, children: t, ...n }, i) => /* @__PURE__ */ u(
458
- m.SubTrigger,
459
- {
460
- ref: i,
461
- className: r(
462
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",
463
- a === !0 && "pl-8",
464
- e
465
- ),
466
- ...n,
467
- children: [
468
- t,
469
- /* @__PURE__ */ o($, { className: "ml-auto size-4" })
470
- ]
471
- }
472
- ));
473
- ya.displayName = m.SubTrigger.displayName;
474
- const va = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
475
- m.SubContent,
476
- {
477
- ref: t,
478
- className: r(
479
- "z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-lg 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",
480
- e
481
- ),
482
- ...a
483
- }
484
- ));
485
- va.displayName = m.SubContent.displayName;
486
- const ha = s.forwardRef(({ className: e, sideOffset: a = 4, ...t }, n) => /* @__PURE__ */ o(m.Portal, { children: /* @__PURE__ */ o(
487
- m.Content,
488
- {
489
- ref: n,
490
- sideOffset: a,
491
- className: r(
492
- "z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md 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",
493
- e
494
- ),
495
- ...t
496
- }
497
- ) }));
498
- ha.displayName = m.Content.displayName;
499
- const wa = s.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */ o(
500
- m.Item,
501
- {
502
- ref: n,
503
- className: r(
504
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
505
- a === !0 && "pl-8",
506
- e
507
- ),
508
- ...t
509
- }
510
- ));
511
- wa.displayName = m.Item.displayName;
512
- const Ra = s.forwardRef(({ className: e, children: a, checked: t, ...n }, i) => /* @__PURE__ */ u(
513
- m.CheckboxItem,
514
- {
515
- ref: i,
516
- className: r(
517
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
518
- e
519
- ),
520
- checked: t,
521
- ...n,
522
- children: [
523
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(m.ItemIndicator, { children: /* @__PURE__ */ o(_, { className: "size-4" }) }) }),
524
- a
525
- ]
526
- }
527
- ));
528
- Ra.displayName = m.CheckboxItem.displayName;
529
- const Ca = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ u(
530
- m.RadioItem,
531
- {
532
- ref: n,
533
- className: r(
534
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",
535
- e
536
- ),
537
- ...t,
538
- children: [
539
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(m.ItemIndicator, { children: /* @__PURE__ */ o(pe, { className: "h-2 w-2 fill-current" }) }) }),
540
- a
541
- ]
542
- }
543
- ));
544
- Ca.displayName = m.RadioItem.displayName;
545
- const Ia = s.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */ o(m.Label, { ref: n, className: r("px-2 py-1.5 text-sm font-semibold", a === !0 && "pl-8", e), ...t }));
546
- Ia.displayName = m.Label.displayName;
547
- const Ta = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(m.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-muted", e), ...a }));
548
- Ta.displayName = m.Separator.displayName;
549
- const ka = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest opacity-60", e), ...a });
550
- ka.displayName = "DropdownMenuShortcut";
551
- const Sa = S("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), Y = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(Ce.Root, { ref: t, className: r(Sa(), e), ...a }));
552
- Y.displayName = "Label";
553
- const fo = we, Z = s.createContext({}), po = ({
554
- ...e
555
- }) => /* @__PURE__ */ o(Z.Provider, { value: { name: e.name }, children: /* @__PURE__ */ o(Re, { ...e }) }), F = () => {
556
- const e = s.useContext(Z), a = s.useContext(ee), { getFieldState: t, formState: n } = he(), i = t(e.name, n);
557
- if (!e)
558
- throw new Error("useFormField should be used within <FormField>");
559
- const { id: l } = a;
560
- return {
561
- id: l,
562
- name: e.name,
563
- formItemId: `${l}-form-item`,
564
- formDescriptionId: `${l}-form-item-description`,
565
- formMessageId: `${l}-form-item-message`,
566
- ...i
567
- };
568
- }, ee = s.createContext({}), Pa = s.forwardRef(({ className: e, ...a }, t) => {
569
- const n = s.useId();
570
- return /* @__PURE__ */ o(ee.Provider, { value: { id: n }, children: /* @__PURE__ */ o("div", { ref: t, className: r("space-y-2", e), ...a }) });
571
- });
572
- Pa.displayName = "FormItem";
573
- const za = s.forwardRef(
574
- ({ className: e, ...a }, t) => {
575
- const { error: n, formItemId: i } = F();
576
- return /* @__PURE__ */ o(Y, { ref: t, className: r(n && "text-destructive", e), htmlFor: i, ...a });
577
- }
578
- );
579
- za.displayName = "FormLabel";
580
- const Ma = s.forwardRef(({ ...e }, a) => {
581
- const { error: t, formItemId: n, formDescriptionId: i, formMessageId: l } = F();
582
- return /* @__PURE__ */ o(
583
- K,
584
- {
585
- ref: a,
586
- id: n,
587
- "aria-describedby": t ? `${i} ${l}` : `${i}`,
588
- "aria-invalid": !!t,
589
- ...e
590
- }
591
- );
592
- });
593
- Ma.displayName = "FormControl";
594
- const Da = s.forwardRef(({ className: e, ...a }, t) => {
595
- const { formDescriptionId: n } = F();
596
- return /* @__PURE__ */ o("p", { ref: t, id: n, className: r("text-sm text-muted-foreground", e), ...a });
597
- });
598
- Da.displayName = "FormDescription";
599
- const Fa = s.forwardRef(({ className: e, children: a, ...t }, n) => {
600
- const { error: i, formMessageId: l } = F(), p = i ? String(i == null ? void 0 : i.message) : a;
601
- return p ? /* @__PURE__ */ o("p", { ref: n, id: l, className: r("text-sm font-medium text-destructive", e), ...t, children: p }) : null;
602
- });
603
- Fa.displayName = "FormMessage";
604
- const go = z.Root, bo = z.Trigger, ja = s.forwardRef(({ className: e, align: a = "center", sideOffset: t = 4, ...n }, i) => /* @__PURE__ */ o(
605
- z.Content,
606
- {
607
- ref: i,
608
- align: a,
609
- sideOffset: t,
610
- className: r(
611
- "z-50 w-64 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",
612
- e
613
- ),
614
- ...n
615
- }
616
- ));
617
- ja.displayName = z.Content.displayName;
618
- const Aa = s.forwardRef(
619
- ({ className: e, containerClassName: a, ...t }, n) => /* @__PURE__ */ o(
620
- Ie,
621
- {
622
- ref: n,
623
- containerClassName: r("flex items-center gap-2 has-[:disabled]:opacity-50", a),
624
- className: r("disabled:cursor-not-allowed", e),
625
- ...t
626
- }
627
- )
628
- );
629
- Aa.displayName = "InputOTP";
630
- const La = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { ref: t, className: r("flex items-center", e), ...a }));
631
- La.displayName = "InputOTPGroup";
632
- const Ga = s.forwardRef(
633
- ({ index: e, className: a, ...t }, n) => {
634
- const i = s.useContext(Te), { char: l, hasFakeCaret: p, isActive: x } = i.slots[e];
635
- return /* @__PURE__ */ u(
636
- "div",
637
- {
638
- ref: n,
639
- className: r(
640
- "relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-control first:border-l last:rounded-r-control",
641
- x && "z-10 ring-2 ring-ring ring-offset-background",
642
- a
643
- ),
644
- ...t,
645
- children: [
646
- l,
647
- p && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ o("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
648
- ]
649
- }
650
- );
651
- }
652
- );
653
- Ga.displayName = "InputOTPSlot";
654
- const Ba = s.forwardRef(({ ...e }, a) => /* @__PURE__ */ o("div", { ref: a, role: "separator", ...e, children: /* @__PURE__ */ o(ge, {}) }));
655
- Ba.displayName = "InputOTPSeparator";
656
- const No = d.Menu, xo = d.Group, yo = d.Portal, vo = d.Sub, ho = d.RadioGroup, Oa = s.forwardRef(
657
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(d.Root, { ref: t, className: r("flex h-10 items-center space-x-1 rounded-surface border bg-background p-1", e), ...a })
658
- );
659
- Oa.displayName = d.Root.displayName;
660
- const Ha = s.forwardRef(
661
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
662
- d.Trigger,
663
- {
664
- ref: t,
665
- className: r(
666
- "flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
667
- e
668
- ),
669
- ...a
670
- }
671
- )
672
- );
673
- Ha.displayName = d.Trigger.displayName;
674
- const Va = s.forwardRef(({ className: e, inset: a, children: t, ...n }, i) => /* @__PURE__ */ u(
675
- d.SubTrigger,
676
- {
677
- ref: i,
678
- className: r(
679
- "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
680
- a && "pl-8",
681
- e
682
- ),
683
- ...n,
684
- children: [
685
- t,
686
- /* @__PURE__ */ o(P, { className: "ml-auto size-4" })
687
- ]
688
- }
689
- ));
690
- Va.displayName = d.SubTrigger.displayName;
691
- const _a = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
692
- d.SubContent,
693
- {
694
- ref: t,
695
- className: r(
696
- "z-50 min-w-[8rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground 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",
697
- e
698
- ),
699
- ...a
700
- }
701
- ));
702
- _a.displayName = d.SubContent.displayName;
703
- const Ea = s.forwardRef(
704
- ({ className: e, align: a = "start", alignOffset: t = -4, sideOffset: n = 8, ...i }, l) => /* @__PURE__ */ o(d.Portal, { children: /* @__PURE__ */ o(
705
- d.Content,
706
- {
707
- ref: l,
708
- align: a,
709
- alignOffset: t,
710
- sideOffset: n,
711
- className: r(
712
- "z-50 min-w-[12rem] overflow-hidden rounded-surface border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in 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",
713
- e
714
- ),
715
- ...i
716
- }
717
- ) })
718
- );
719
- Ea.displayName = d.Content.displayName;
720
- const $a = s.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */ o(
721
- d.Item,
722
- {
723
- ref: n,
724
- className: r(
725
- "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
726
- a && "pl-8",
727
- e
728
- ),
729
- ...t
730
- }
731
- ));
732
- $a.displayName = d.Item.displayName;
733
- const qa = s.forwardRef(({ className: e, children: a, checked: t, ...n }, i) => /* @__PURE__ */ u(
734
- d.CheckboxItem,
735
- {
736
- ref: i,
737
- className: r(
738
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
739
- e
740
- ),
741
- checked: t,
742
- ...n,
743
- children: [
744
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(d.ItemIndicator, { children: /* @__PURE__ */ o(E, { className: "size-4" }) }) }),
745
- a
746
- ]
747
- }
748
- ));
749
- qa.displayName = d.CheckboxItem.displayName;
750
- const Ka = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ u(
751
- d.RadioItem,
752
- {
753
- ref: n,
754
- className: r(
755
- "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
756
- e
757
- ),
758
- ...t,
759
- children: [
760
- /* @__PURE__ */ o("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o(d.ItemIndicator, { children: /* @__PURE__ */ o(O, { className: "h-2 w-2 fill-current" }) }) }),
761
- a
762
- ]
763
- }
764
- ));
765
- Ka.displayName = d.RadioItem.displayName;
766
- const Xa = s.forwardRef(({ className: e, inset: a, ...t }, n) => /* @__PURE__ */ o(d.Label, { ref: n, className: r("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e), ...t }));
767
- Xa.displayName = d.Label.displayName;
768
- const Wa = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(d.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-muted", e), ...a }));
769
- Wa.displayName = d.Separator.displayName;
770
- const Ja = ({ className: e, ...a }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
771
- Ja.displayname = "MenubarShortcut";
772
- const Qa = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ u(b.Root, { ref: n, className: r("relative z-10 flex max-w-max flex-1 items-center justify-center", e), ...t, children: [
773
- a,
774
- /* @__PURE__ */ o(ae, {})
775
- ] }));
776
- Qa.displayName = b.Root.displayName;
777
- const Ua = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(b.List, { ref: t, className: r("group flex flex-1 list-none items-center justify-center space-x-1", e), ...a }));
778
- Ua.displayName = b.List.displayName;
779
- const wo = b.Item, Ya = S(
780
- "group inline-flex h-10 w-max items-center justify-center rounded-control bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
781
- ), Za = s.forwardRef(({ className: e, children: a, ...t }, n) => /* @__PURE__ */ u(b.Trigger, { ref: n, className: r(Ya(), "group", e), ...t, children: [
782
- a,
783
- " ",
784
- /* @__PURE__ */ o(V, { className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180", "aria-hidden": "true" })
785
- ] }));
786
- Za.displayName = b.Trigger.displayName;
787
- const et = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
788
- b.Content,
789
- {
790
- ref: t,
791
- className: r(
792
- "left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",
793
- e
794
- ),
795
- ...a
796
- }
797
- ));
798
- et.displayName = b.Content.displayName;
799
- const Ro = b.Link, ae = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { className: r("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ o(
800
- b.Viewport,
801
- {
802
- className: r(
803
- "origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-surface border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
804
- e
805
- ),
806
- ref: t,
807
- ...a
808
- }
809
- ) }));
810
- ae.displayName = b.Viewport.displayName;
811
- const at = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
812
- b.Indicator,
813
- {
814
- ref: t,
815
- className: r(
816
- "top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",
817
- e
818
- ),
819
- ...a,
820
- children: /* @__PURE__ */ o("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
821
- }
822
- ));
823
- at.displayName = b.Indicator.displayName;
824
- const tt = ({ className: e, ...a }) => /* @__PURE__ */ o("nav", { role: "navigation", "aria-label": "pagination", className: r("mx-auto flex w-full justify-center", e), ...a });
825
- tt.displayName = "Pagination";
826
- const ot = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("ul", { ref: t, className: r("flex flex-row items-center gap-1", e), ...a }));
827
- ot.displayName = "PaginationContent";
828
- const rt = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("li", { ref: t, className: r("", e), ...a }));
829
- rt.displayName = "PaginationItem";
830
- const H = ({ className: e, isActive: a, size: t = "icon", ...n }) => /* @__PURE__ */ o(
831
- "a",
832
- {
833
- "aria-current": a ? "page" : void 0,
834
- className: r(
835
- R({
836
- variant: a ? "outline" : "ghost",
837
- size: t
838
- }),
839
- e
840
- ),
841
- ...n
842
- }
843
- );
844
- H.displayName = "PaginationLink";
845
- const st = ({ className: e, label: a = "Previous", ...t }) => /* @__PURE__ */ u(H, { "aria-label": "Go to previous page", size: "default", className: r("gap-1 pl-2.5", e), ...t, children: [
846
- /* @__PURE__ */ o(Ne, { className: "size-4" }),
847
- /* @__PURE__ */ o("span", { children: a })
848
- ] });
849
- st.displayName = "PaginationPrevious";
850
- const nt = ({ className: e, label: a = "Next", ...t }) => /* @__PURE__ */ u(H, { "aria-label": "Go to next page", size: "default", className: r("gap-1 pr-2.5", e), ...t, children: [
851
- /* @__PURE__ */ o("span", { children: a }),
852
- /* @__PURE__ */ o($, { className: "size-4" })
853
- ] });
854
- nt.displayName = "PaginationNext";
855
- const it = ({ className: e, ...a }) => /* @__PURE__ */ u("span", { "aria-hidden": !0, className: r("flex h-9 w-9 items-center justify-center", e), ...a, children: [
856
- /* @__PURE__ */ o(be, { className: "size-4" }),
857
- /* @__PURE__ */ o("span", { className: "sr-only", children: "More pages" })
858
- ] });
859
- it.displayName = "PaginationEllipsis";
860
- const dt = s.forwardRef(
861
- ({ className: e, value: a, indeterminate: t = !1, ...n }, i) => /* @__PURE__ */ o(G.Root, { ref: i, className: r("relative h-4 w-full overflow-hidden rounded-full bg-secondary", e), ...n, children: /* @__PURE__ */ o(
862
- G.Indicator,
863
- {
864
- className: r("h-full w-full flex-1 bg-primary transition-all", t && "animate-progress origin-left"),
865
- style: t ? void 0 : { transform: `translateX(-${(100 - (a ?? 0)).toString()}%)` }
866
- }
867
- ) })
868
- );
869
- dt.displayName = G.Root.displayName;
870
- const lt = s.forwardRef(
871
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(k.Root, { className: r("grid gap-2", e), ...a, ref: t })
872
- );
873
- lt.displayName = k.Root.displayName;
874
- const ct = s.forwardRef(
875
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
876
- k.Item,
877
- {
878
- ref: t,
879
- className: r(
880
- "aspect-square size-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
881
- e
882
- ),
883
- ...a,
884
- children: /* @__PURE__ */ o(k.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ o(O, { className: "h-2.5 w-2.5 fill-current text-current" }) })
885
- }
886
- )
887
- );
888
- ct.displayName = k.Item.displayName;
889
- const mt = s.forwardRef(
890
- ({ className: e, orientation: a = "horizontal", decorative: t = !0, ...n }, i) => /* @__PURE__ */ o(
891
- X.Root,
892
- {
893
- ref: i,
894
- decorative: t,
895
- orientation: a,
896
- className: r("shrink-0 bg-border", a === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e),
897
- ...n
898
- }
899
- )
900
- );
901
- mt.displayName = X.Root.displayName;
902
- const ut = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("div", { className: "relative w-full max-w-full overflow-auto", children: /* @__PURE__ */ o("table", { ref: t, className: r("w-full caption-bottom text-sm", e), ...a }) }));
903
- ut.displayName = "SimpleTable";
904
- const ft = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("thead", { ref: t, className: r("[&_tr]:border-b", e), ...a }));
905
- ft.displayName = "SimpleTableHeader";
906
- const pt = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("tbody", { ref: t, className: r("[&_tr:last-child]:border-0", e), ...a }));
907
- pt.displayName = "SimpleTableBody";
908
- const gt = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("tfoot", { ref: t, className: r("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", e), ...a }));
909
- gt.displayName = "SimpleTableFooter";
910
- const bt = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("tr", { ref: t, className: r("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", e), ...a }));
911
- bt.displayName = "SimpleTableRow";
912
- const Nt = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("th", { ref: t, className: r("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", e), ...a }));
913
- Nt.displayName = "SimpleTableHead";
914
- const xt = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("td", { ref: t, className: r("p-4 align-middle [&:has([role=checkbox])]:pr-0", e), ...a }));
915
- xt.displayName = "SimpleTableCell";
916
- const yt = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o("caption", { ref: t, className: r("mt-4 text-sm text-muted-foreground", e), ...a }));
917
- yt.displayName = "SimpleTableCaption";
918
- const vt = s.forwardRef(
919
- ({ className: e, ...a }, t) => /* @__PURE__ */ u(T.Root, { ref: t, className: r("relative flex w-full touch-none select-none items-center", e), ...a, children: [
920
- /* @__PURE__ */ o(T.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-secondary", children: /* @__PURE__ */ o(T.Range, { className: "absolute h-full bg-primary" }) }),
921
- /* @__PURE__ */ o(T.Thumb, { className: "block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50" })
922
- ] })
923
- );
924
- vt.displayName = T.Root.displayName;
925
- const ht = s.forwardRef(
926
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
927
- B.Root,
928
- {
929
- className: r(
930
- "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
931
- e
932
- ),
933
- ...a,
934
- ref: t,
935
- children: /* @__PURE__ */ o(
936
- B.Thumb,
937
- {
938
- className: r(
939
- "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
940
- )
941
- }
942
- )
943
- }
944
- )
945
- );
946
- ht.displayName = B.Root.displayName;
947
- const Co = w.Root, wt = s.forwardRef(
948
- ({ className: e, style: a, ...t }, n) => {
949
- const i = s.useRef(null), l = s.useCallback(
950
- (x) => {
951
- i.current = x, typeof n == "function" ? n(x) : n && (n.current = x);
952
- },
953
- [n]
954
- ), p = ke(i);
955
- return /* @__PURE__ */ o(
956
- w.List,
957
- {
958
- ref: l,
959
- style: { ...a, ...p },
960
- className: r(
961
- // Les onglets qui ne tiennent pas dans la largeur défilent dans la liste au lieu d'élargir
962
- // la page : sur mobile, une liste plus large que l'écran rendait tout le layout scrollable
963
- // horizontalement (en-tête et contenu compris). overscroll-x-contain évite en plus que le
964
- // swipe sur les onglets déclenche le retour arrière du navigateur.
965
- // La scrollbar est masquée : haute de ~15px sur Windows, elle rognerait la barre (h-10).
966
- "inline-flex h-10 items-center justify-start gap-6 overflow-x-auto overscroll-x-contain border-b border-border bg-transparent p-0 text-muted-foreground w-full [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",
967
- e
968
- ),
969
- ...t
970
- }
971
- );
972
- }
973
- );
974
- wt.displayName = w.List.displayName;
975
- const Rt = s.forwardRef(
976
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
977
- w.Trigger,
978
- {
979
- ref: t,
980
- className: r(
981
- "relative inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-none border-b-2 border-transparent bg-transparent px-1 pb-2.5 pt-2 -mb-px text-sm font-medium text-muted-foreground ring-offset-background cursor-pointer transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-primary data-[state=active]:text-foreground data-[state=active]:shadow-none [&_svg]:h-4 [&_svg]:w-4",
982
- e
983
- ),
984
- ...a
985
- }
986
- )
987
- );
988
- Rt.displayName = w.Trigger.displayName;
989
- const Ct = s.forwardRef(
990
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
991
- w.Content,
992
- {
993
- ref: t,
994
- className: r(
995
- "mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
996
- e
997
- ),
998
- ...a
999
- }
1000
- )
1001
- );
1002
- Ct.displayName = w.Content.displayName;
1003
- const It = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(
1004
- "textarea",
1005
- {
1006
- className: r(
1007
- "flex min-h-[80px] w-full rounded-control border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
1008
- e
1009
- ),
1010
- ref: t,
1011
- ...a
1012
- }
1013
- ));
1014
- It.displayName = "Textarea";
1015
- const Io = N.Provider, Tt = s.forwardRef(
1016
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
1017
- N.Viewport,
1018
- {
1019
- ref: t,
1020
- className: r(
1021
- "fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",
1022
- e
1023
- ),
1024
- ...a
1025
- }
1026
- )
1027
- );
1028
- Tt.displayName = N.Viewport.displayName;
1029
- const kt = S(
1030
- "group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-surface border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
1031
- {
1032
- variants: {
1033
- variant: {
1034
- default: "border bg-background text-foreground",
1035
- destructive: "destructive group border-destructive bg-destructive text-destructive-foreground"
1036
- }
1037
- },
1038
- defaultVariants: {
1039
- variant: "default"
1040
- }
1041
- }
1042
- ), St = s.forwardRef(({ className: e, variant: a, ...t }, n) => /* @__PURE__ */ o(N.Root, { ref: n, className: r(kt({ variant: a }), e), ...t }));
1043
- St.displayName = N.Root.displayName;
1044
- const Pt = s.forwardRef(
1045
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
1046
- N.Action,
1047
- {
1048
- ref: t,
1049
- className: r(
1050
- "inline-flex h-8 shrink-0 items-center justify-center rounded-control border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors group-[.destructive]:border-muted/40 hover:bg-secondary group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",
1051
- e
1052
- ),
1053
- ...a
1054
- }
1055
- )
1056
- );
1057
- Pt.displayName = N.Action.displayName;
1058
- const zt = s.forwardRef(
1059
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(
1060
- N.Close,
1061
- {
1062
- ref: t,
1063
- className: r(
1064
- "absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity group-hover:opacity-100 group-[.destructive]:text-red-300 hover:text-foreground group-[.destructive]:hover:text-red-50 focus:opacity-100 focus:outline-none focus:ring-2 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",
1065
- e
1066
- ),
1067
- "toast-close": "",
1068
- ...a,
1069
- children: /* @__PURE__ */ o(xe, { className: "size-4" })
1070
- }
1071
- )
1072
- );
1073
- zt.displayName = N.Close.displayName;
1074
- const Mt = s.forwardRef(
1075
- ({ className: e, ...a }, t) => /* @__PURE__ */ o(N.Title, { ref: t, className: r("text-sm font-semibold", e), ...a })
1076
- );
1077
- Mt.displayName = N.Title.displayName;
1078
- const Dt = s.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o(N.Description, { ref: t, className: r("text-sm opacity-90", e), ...a }));
1079
- Dt.displayName = N.Description.displayName;
1080
- const te = S(
1081
- "inline-flex items-center justify-center rounded-control text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
1082
- {
1083
- variants: {
1084
- variant: {
1085
- default: "bg-transparent",
1086
- outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
1087
- },
1088
- size: {
1089
- default: "h-10 px-3",
1090
- sm: "h-9 px-2.5",
1091
- lg: "h-11 px-5"
1092
- }
1093
- },
1094
- defaultVariants: {
1095
- variant: "default",
1096
- size: "default"
1097
- }
1098
- }
1099
- ), Ft = s.forwardRef(({ className: e, variant: a, size: t, ...n }, i) => /* @__PURE__ */ o(W.Root, { ref: i, className: r(te({ variant: a, size: t, className: e })), ...n }));
1100
- Ft.displayName = W.Root.displayName;
1101
- const oe = s.createContext({
1102
- size: "default",
1103
- variant: "default"
1104
- }), jt = s.forwardRef(({ className: e, variant: a, size: t, children: n, ...i }, l) => /* @__PURE__ */ o(M.Root, { ref: l, className: r("flex items-center justify-center gap-1", e), ...i, children: /* @__PURE__ */ o(oe.Provider, { value: { variant: a, size: t }, children: n }) }));
1105
- jt.displayName = M.Root.displayName;
1106
- const At = s.forwardRef(({ className: e, children: a, variant: t, size: n, ...i }, l) => {
1107
- const p = s.useContext(oe);
1108
- return /* @__PURE__ */ o(
1109
- M.Item,
1110
- {
1111
- ref: l,
1112
- className: r(
1113
- te({
1114
- variant: p.variant || t,
1115
- size: p.size || n
1116
- }),
1117
- e
1118
- ),
1119
- ...i,
1120
- children: a
1121
- }
1122
- );
1123
- });
1124
- At.displayName = M.Item.displayName;
1125
- export {
1126
- U as $,
1127
- Wt as A,
1128
- Ut as B,
1129
- Qe as C,
1130
- ea as D,
1131
- ta as E,
1132
- Yt as F,
1133
- ia as G,
1134
- sa as H,
1135
- eo as I,
1136
- na as J,
1137
- la as K,
1138
- ao as L,
1139
- oo as M,
1140
- da as N,
1141
- ca as O,
1142
- dt as P,
1143
- ma as Q,
1144
- to as R,
1145
- ra as S,
1146
- oa as T,
1147
- Zt as U,
1148
- ua as V,
1149
- so as W,
1150
- pa as X,
1151
- xa as Y,
1152
- ba as Z,
1153
- ga as _,
1154
- ze as a,
1155
- st as a$,
1156
- fa as a0,
1157
- Na as a1,
1158
- ro as a2,
1159
- no as a3,
1160
- Ra as a4,
1161
- ha as a5,
1162
- lo as a6,
1163
- wa as a7,
1164
- Ia as a8,
1165
- co as a9,
1166
- xo as aA,
1167
- $a as aB,
1168
- Xa as aC,
1169
- No as aD,
1170
- yo as aE,
1171
- ho as aF,
1172
- Ka as aG,
1173
- Wa as aH,
1174
- Ja as aI,
1175
- vo as aJ,
1176
- _a as aK,
1177
- Va as aL,
1178
- Ha as aM,
1179
- Qa as aN,
1180
- et as aO,
1181
- at as aP,
1182
- wo as aQ,
1183
- Ro as aR,
1184
- Ua as aS,
1185
- Za as aT,
1186
- ae as aU,
1187
- tt as aV,
1188
- ot as aW,
1189
- it as aX,
1190
- rt as aY,
1191
- H as aZ,
1192
- nt as a_,
1193
- uo as aa,
1194
- Ca as ab,
1195
- Ta as ac,
1196
- ka as ad,
1197
- mo as ae,
1198
- va as af,
1199
- ya as ag,
1200
- io as ah,
1201
- fo as ai,
1202
- Ma as aj,
1203
- Da as ak,
1204
- po as al,
1205
- Pa as am,
1206
- za as an,
1207
- Fa as ao,
1208
- go as ap,
1209
- ja as aq,
1210
- bo as ar,
1211
- Aa as as,
1212
- La as at,
1213
- Ba as au,
1214
- Ga as av,
1215
- Y as aw,
1216
- Oa as ax,
1217
- qa as ay,
1218
- Ea as az,
1219
- Se as b,
1220
- lt as b0,
1221
- ct as b1,
1222
- mt as b2,
1223
- ut as b3,
1224
- pt as b4,
1225
- yt as b5,
1226
- xt as b6,
1227
- gt as b7,
1228
- Nt as b8,
1229
- ft as b9,
1230
- bt as ba,
1231
- vt as bb,
1232
- ht as bc,
1233
- Co as bd,
1234
- Ct as be,
1235
- wt as bf,
1236
- Rt as bg,
1237
- It as bh,
1238
- St as bi,
1239
- Pt as bj,
1240
- zt as bk,
1241
- Dt as bl,
1242
- Io as bm,
1243
- Mt as bn,
1244
- Tt as bo,
1245
- Ft as bp,
1246
- jt as bq,
1247
- At as br,
1248
- _e as bs,
1249
- Ya as bt,
1250
- te as bu,
1251
- F as bv,
1252
- Pe as c,
1253
- Jt as d,
1254
- Ge as e,
1255
- Be as f,
1256
- De as g,
1257
- Le as h,
1258
- je as i,
1259
- Fe as j,
1260
- Ae as k,
1261
- Qt as l,
1262
- Oe as m,
1263
- Ve as n,
1264
- He as o,
1265
- Ee as p,
1266
- Je as q,
1267
- qe as r,
1268
- Ke as s,
1269
- $e as t,
1270
- Xe as u,
1271
- We as v,
1272
- Ue as w,
1273
- Ye as x,
1274
- Ze as y,
1275
- aa as z
1276
- };