@middag-io/react 0.32.0 → 0.34.0

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 (211) hide show
  1. package/README.md +2 -2
  2. package/dist-lib/base/blocks/ActivityTimelineBlock.d.ts.map +1 -1
  3. package/dist-lib/base/shell/AuthShell.js +39 -0
  4. package/dist-lib/base/shell/BasicShell.js +207 -0
  5. package/dist-lib/base/shell/ImmersiveShell.js +55 -0
  6. package/dist-lib/base/shell/partials/InspectorContext.d.ts.map +1 -1
  7. package/dist-lib/base/shell/partials/InspectorContext.js +60 -0
  8. package/dist-lib/base/shell/partials/InspectorPanel.js +22 -0
  9. package/dist-lib/base/shell/partials/NavErrorBoundary.js +66 -0
  10. package/dist-lib/base/shell/partials/OverlayScreen.js +36 -0
  11. package/dist-lib/base/shell/partials/PageActionButton.js +4 -0
  12. package/dist-lib/base/theme/appearance.js +39 -0
  13. package/dist-lib/base/theme/host-layout-detector.js +39 -0
  14. package/dist-lib/base/theme/host-theme-detector.js +131 -0
  15. package/dist-lib/base/theme/sidebar-safelist.txt +20 -0
  16. package/dist-lib/base/theme/theme-bridge.css +164 -0
  17. package/dist-lib/base/theme/theme-context.js +103 -0
  18. package/dist-lib/base/theme/themes/classic.css +174 -0
  19. package/dist-lib/base/theme/tokens.css +290 -0
  20. package/dist-lib/base/theme/useHostTheme.js +34 -0
  21. package/dist-lib/base/utils/clipboard.js +16 -0
  22. package/dist-lib/base/utils/conditions.js +13 -0
  23. package/dist-lib/base/utils/icon-registry.js +16 -0
  24. package/dist-lib/base/utils/icons.js +11 -0
  25. package/dist-lib/base/utils/interpolate.js +6 -0
  26. package/dist-lib/base/utils/register-default-icons.js +9 -0
  27. package/dist-lib/base/utils/storage.js +30 -0
  28. package/dist-lib/base/utils/time.js +59 -0
  29. package/dist-lib/chunks/subpath-BD_PKGUX.js +146 -0
  30. package/dist-lib/chunks/subpath-DLFO_UGQ.js +604 -0
  31. package/dist-lib/components/reui/accordion.js +43 -0
  32. package/dist-lib/components/reui/alert-dialog.js +101 -0
  33. package/dist-lib/components/reui/alert.js +55 -0
  34. package/dist-lib/components/reui/aspect-ratio.js +11 -0
  35. package/dist-lib/components/reui/autocomplete.js +170 -0
  36. package/dist-lib/components/reui/avatar.js +51 -0
  37. package/dist-lib/components/reui/badge.js +64 -0
  38. package/dist-lib/components/reui/breadcrumb.js +69 -0
  39. package/dist-lib/components/reui/button-group.js +38 -0
  40. package/dist-lib/components/reui/button.js +47 -0
  41. package/dist-lib/components/reui/calendar.js +89 -0
  42. package/dist-lib/components/reui/card.js +55 -0
  43. package/dist-lib/components/reui/carousel.js +110 -0
  44. package/dist-lib/components/reui/chart.js +130 -0
  45. package/dist-lib/components/reui/checkbox.js +20 -0
  46. package/dist-lib/components/reui/collapsible.js +23 -0
  47. package/dist-lib/components/reui/combobox.js +166 -0
  48. package/dist-lib/components/reui/command.js +85 -0
  49. package/dist-lib/components/reui/context-menu.js +121 -0
  50. package/dist-lib/components/reui/data-grid/data-grid-column-filter.js +108 -0
  51. package/dist-lib/components/reui/data-grid/data-grid-column-header.js +217 -0
  52. package/dist-lib/components/reui/data-grid/data-grid-column-visibility.js +25 -0
  53. package/dist-lib/components/reui/data-grid/data-grid-pagination.js +132 -0
  54. package/dist-lib/components/reui/data-grid/data-grid-scroll-area.js +183 -0
  55. package/dist-lib/components/reui/data-grid/data-grid-table-dnd-rows.js +125 -0
  56. package/dist-lib/components/reui/data-grid/data-grid-table-dnd.js +130 -0
  57. package/dist-lib/components/reui/data-grid/data-grid-table-virtual.js +156 -0
  58. package/dist-lib/components/reui/data-grid/data-grid-table.js +546 -0
  59. package/dist-lib/components/reui/data-grid/data-grid.js +113 -0
  60. package/dist-lib/components/reui/data-grid-pagination.js +131 -0
  61. package/dist-lib/components/reui/date-selector.js +642 -0
  62. package/dist-lib/components/reui/dialog.js +94 -0
  63. package/dist-lib/components/reui/drawer.js +77 -0
  64. package/dist-lib/components/reui/dropdown-menu.js +123 -0
  65. package/dist-lib/components/reui/empty.js +59 -0
  66. package/dist-lib/components/reui/field.js +115 -0
  67. package/dist-lib/components/reui/filters.js +873 -0
  68. package/dist-lib/components/reui/frame.js +97 -0
  69. package/dist-lib/components/reui/hover-card.js +31 -0
  70. package/dist-lib/components/reui/icon-placeholder.js +14 -0
  71. package/dist-lib/components/reui/index.js +18 -0
  72. package/dist-lib/components/reui/input-group.js +78 -0
  73. package/dist-lib/components/reui/input-otp.js +44 -0
  74. package/dist-lib/components/reui/input.js +14 -0
  75. package/dist-lib/components/reui/item.js +116 -0
  76. package/dist-lib/components/reui/kanban.js +316 -0
  77. package/dist-lib/components/reui/kbd.js +19 -0
  78. package/dist-lib/components/reui/label.js +14 -0
  79. package/dist-lib/components/reui/menubar.js +132 -0
  80. package/dist-lib/components/reui/native-select.js +37 -0
  81. package/dist-lib/components/reui/navigation-menu.js +80 -0
  82. package/dist-lib/components/reui/number-field.js +126 -0
  83. package/dist-lib/components/reui/pagination.js +78 -0
  84. package/dist-lib/components/reui/phone-input.js +124 -0
  85. package/dist-lib/components/reui/popover.js +55 -0
  86. package/dist-lib/components/reui/progress.js +20 -0
  87. package/dist-lib/components/reui/radio-group.js +27 -0
  88. package/dist-lib/components/reui/rating.js +81 -0
  89. package/dist-lib/components/reui/resizable.js +31 -0
  90. package/dist-lib/components/reui/scroll-area.js +36 -0
  91. package/dist-lib/components/reui/scrollspy.js +104 -0
  92. package/dist-lib/components/reui/select.js +97 -0
  93. package/dist-lib/components/reui/separator.js +17 -0
  94. package/dist-lib/components/reui/sheet.js +81 -0
  95. package/dist-lib/components/reui/sidebar.js +350 -0
  96. package/dist-lib/components/reui/skeleton.js +12 -0
  97. package/dist-lib/components/reui/slider.js +35 -0
  98. package/dist-lib/components/reui/sonner.js +28 -0
  99. package/dist-lib/components/reui/sortable.js +172 -0
  100. package/dist-lib/components/reui/spinner.js +14 -0
  101. package/dist-lib/components/reui/stepper.js +193 -0
  102. package/dist-lib/components/reui/svgs/claudeAiIcon.js +13 -0
  103. package/dist-lib/components/reui/svgs/gemini.js +257 -0
  104. package/dist-lib/components/reui/svgs/openai.js +10 -0
  105. package/dist-lib/components/reui/svgs/openaiDark.js +13 -0
  106. package/dist-lib/components/reui/switch.js +19 -0
  107. package/dist-lib/components/reui/table.js +66 -0
  108. package/dist-lib/components/reui/tabs.js +47 -0
  109. package/dist-lib/components/reui/textarea.js +13 -0
  110. package/dist-lib/components/reui/timeline.js +84 -0
  111. package/dist-lib/components/reui/toggle-group.js +48 -0
  112. package/dist-lib/components/reui/toggle.js +36 -0
  113. package/dist-lib/components/reui/tooltip.js +35 -0
  114. package/dist-lib/components/reui/tree.js +102 -0
  115. package/dist-lib/contracts/block-data/data-display.d.ts +8 -0
  116. package/dist-lib/contracts/block-data/data-display.d.ts.map +1 -1
  117. package/dist-lib/i18n/I18nProvider.js +23 -0
  118. package/dist-lib/i18n/host-resolver.js +10 -0
  119. package/dist-lib/i18n/instance.js +2 -0
  120. package/dist-lib/i18n/locales/en/ui.json +266 -0
  121. package/dist-lib/i18n/locales/en/validators.json +13 -0
  122. package/dist-lib/i18n/locales/pt-BR/ui.json +266 -0
  123. package/dist-lib/i18n/locales/pt-BR/validators.json +13 -0
  124. package/dist-lib/i18n/register-strings.js +7 -0
  125. package/dist-lib/i18n/render-label.js +13 -0
  126. package/dist-lib/i18n/resolve-field-error.js +10 -0
  127. package/dist-lib/i18n/useHostString.js +31 -0
  128. package/dist-lib/i18n/useTranslation.js +48 -0
  129. package/dist-lib/lib/actions/resolve-action-target.js +48 -0
  130. package/dist-lib/lib/hooks/use-copy-to-clipboard.js +18 -0
  131. package/dist-lib/lib/hooks/use-file-upload.js +171 -0
  132. package/dist-lib/lib/hooks/use-mobile.js +18 -0
  133. package/dist-lib/lib/portal-container.js +7 -0
  134. package/dist-lib/lib/utils.js +8 -0
  135. package/dist-lib/middag-react.css +1 -1
  136. package/dist-lib/middag-react.js +26 -5
  137. package/package.json +39 -7
  138. package/dist-lib/_redirects +0 -1
  139. package/dist-lib/api/example/moodle/get/books.json +0 -209
  140. package/dist-lib/api/example/moodle/get/dashboard.json +0 -203
  141. package/dist-lib/api/example/wordpress/get/products.json +0 -165
  142. package/dist-lib/api/index.json +0 -66
  143. package/dist-lib/api/inspector/connectors/canvas.json +0 -18
  144. package/dist-lib/api/inspector/connectors/moodle.json +0 -18
  145. package/dist-lib/api/inspector/connectors/n8n.json +0 -18
  146. package/dist-lib/api/inspector/connectors/open-edx.json +0 -18
  147. package/dist-lib/api/inspector/offerings/off-1.json +0 -18
  148. package/dist-lib/api/inspector/offerings/off-2.json +0 -18
  149. package/dist-lib/api/inspector/offerings/off-3.json +0 -18
  150. package/dist-lib/api/inspector/offerings/off-4.json +0 -18
  151. package/dist-lib/api/inspector/offerings/off-5.json +0 -18
  152. package/dist-lib/api/inspector/offerings/off-6.json +0 -17
  153. package/dist-lib/lottie/calendar/schedule-1.json +0 -1
  154. package/dist-lib/lottie/calendar/schedule-2.json +0 -1
  155. package/dist-lib/lottie/celebration/confetti-1.json +0 -1
  156. package/dist-lib/lottie/celebration/confetti-2.json +0 -1
  157. package/dist-lib/lottie/celebration/confetti-3.json +0 -1
  158. package/dist-lib/lottie/cloud/cloud-1.json +0 -1
  159. package/dist-lib/lottie/cloud/cloud-2.json +0 -1
  160. package/dist-lib/lottie/connection/network-1.json +0 -1
  161. package/dist-lib/lottie/connection/network-2.json +0 -1
  162. package/dist-lib/lottie/connection/network-3.json +0 -1
  163. package/dist-lib/lottie/dashboard/analytics-1.json +0 -1
  164. package/dist-lib/lottie/dashboard/analytics-2.json +0 -1
  165. package/dist-lib/lottie/dashboard/analytics-3.json +0 -1
  166. package/dist-lib/lottie/email/mail-1.json +0 -1
  167. package/dist-lib/lottie/email/mail-2.json +0 -1
  168. package/dist-lib/lottie/email/mail-3.json +0 -1
  169. package/dist-lib/lottie/empty-state/empty-1.json +0 -1
  170. package/dist-lib/lottie/empty-state/empty-2.json +0 -1
  171. package/dist-lib/lottie/empty-state/empty-3.json +0 -1
  172. package/dist-lib/lottie/error/warning-1.json +0 -1
  173. package/dist-lib/lottie/error/warning-2.json +0 -1
  174. package/dist-lib/lottie/error/warning-3.json +0 -1
  175. package/dist-lib/lottie/index.ts +0 -49
  176. package/dist-lib/lottie/loading/spinner-1.json +0 -1
  177. package/dist-lib/lottie/loading/spinner-2.json +0 -1
  178. package/dist-lib/lottie/loading/spinner-3.json +0 -1
  179. package/dist-lib/lottie/maintenance/construction-1.json +0 -1
  180. package/dist-lib/lottie/maintenance/construction-2.json +0 -1
  181. package/dist-lib/lottie/maintenance/construction-3.json +0 -1
  182. package/dist-lib/lottie/not-found/404-1.json +0 -1
  183. package/dist-lib/lottie/not-found/404-2.json +0 -1
  184. package/dist-lib/lottie/not-found/404-3.json +0 -1
  185. package/dist-lib/lottie/notification/bell-1.json +0 -1
  186. package/dist-lib/lottie/notification/bell-2.json +0 -1
  187. package/dist-lib/lottie/notification/bell-3.json +0 -1
  188. package/dist-lib/lottie/onboarding/welcome-1.json +0 -1
  189. package/dist-lib/lottie/onboarding/welcome-2.json +0 -1
  190. package/dist-lib/lottie/onboarding/welcome-3.json +0 -1
  191. package/dist-lib/lottie/payment/wallet-1.json +0 -1
  192. package/dist-lib/lottie/payment/wallet-2.json +0 -1
  193. package/dist-lib/lottie/payment/wallet-3.json +0 -1
  194. package/dist-lib/lottie/search/search-1.json +0 -1
  195. package/dist-lib/lottie/search/search-2.json +0 -1
  196. package/dist-lib/lottie/search/search-3.json +0 -1
  197. package/dist-lib/lottie/security/lock-1.json +0 -1
  198. package/dist-lib/lottie/security/lock-2.json +0 -1
  199. package/dist-lib/lottie/security/lock-3.json +0 -1
  200. package/dist-lib/lottie/settings/gear-1.json +0 -1
  201. package/dist-lib/lottie/settings/gear-2.json +0 -1
  202. package/dist-lib/lottie/settings/gear-3.json +0 -1
  203. package/dist-lib/lottie/success/check-1.json +0 -1
  204. package/dist-lib/lottie/success/check-2.json +0 -1
  205. package/dist-lib/lottie/success/check-3.json +0 -1
  206. package/dist-lib/lottie/upload/upload-1.json +0 -1
  207. package/dist-lib/lottie/upload/upload-2.json +0 -1
  208. package/dist-lib/lottie/upload/upload-3.json +0 -1
  209. package/dist-lib/lottie/user/profile-1.json +0 -1
  210. package/dist-lib/lottie/user/profile-2.json +0 -1
  211. package/dist-lib/lottie/user/profile-3.json +0 -1
@@ -0,0 +1,101 @@
1
+ "use client";
2
+ import { cn as e } from "../../lib/utils.js";
3
+ import { Button as t } from "./button.js";
4
+ import "react";
5
+ import { AlertDialog as n } from "radix-ui";
6
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
7
+ //#region src/components/reui/alert-dialog.tsx
8
+ function a({ ...e }) {
9
+ return /* @__PURE__ */ r(n.Root, {
10
+ "data-slot": "alert-dialog",
11
+ ...e
12
+ });
13
+ }
14
+ function o({ ...e }) {
15
+ return /* @__PURE__ */ r(n.Trigger, {
16
+ "data-slot": "alert-dialog-trigger",
17
+ ...e
18
+ });
19
+ }
20
+ function s({ ...e }) {
21
+ return /* @__PURE__ */ r(n.Portal, {
22
+ "data-slot": "alert-dialog-portal",
23
+ ...e
24
+ });
25
+ }
26
+ function c({ className: t, ...i }) {
27
+ return /* @__PURE__ */ r(n.Overlay, {
28
+ "data-slot": "alert-dialog-overlay",
29
+ className: e("fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0", t),
30
+ ...i
31
+ });
32
+ }
33
+ function l({ className: t, size: a = "default", ...o }) {
34
+ return /* @__PURE__ */ i(s, { children: [/* @__PURE__ */ r(c, {}), /* @__PURE__ */ r(n.Content, {
35
+ "data-slot": "alert-dialog-content",
36
+ "data-size": a,
37
+ className: e("group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[size=sm]:max-w-xs data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 data-[size=default]:sm:max-w-lg", t),
38
+ ...o
39
+ })] });
40
+ }
41
+ function u({ className: t, ...n }) {
42
+ return /* @__PURE__ */ r("div", {
43
+ "data-slot": "alert-dialog-header",
44
+ className: e("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", t),
45
+ ...n
46
+ });
47
+ }
48
+ function d({ className: t, ...n }) {
49
+ return /* @__PURE__ */ r("div", {
50
+ "data-slot": "alert-dialog-footer",
51
+ className: e("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", t),
52
+ ...n
53
+ });
54
+ }
55
+ function f({ className: t, ...i }) {
56
+ return /* @__PURE__ */ r(n.Title, {
57
+ "data-slot": "alert-dialog-title",
58
+ className: e("text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", t),
59
+ ...i
60
+ });
61
+ }
62
+ function p({ className: t, ...i }) {
63
+ return /* @__PURE__ */ r(n.Description, {
64
+ "data-slot": "alert-dialog-description",
65
+ className: e("text-sm text-muted-foreground", t),
66
+ ...i
67
+ });
68
+ }
69
+ function m({ className: t, ...n }) {
70
+ return /* @__PURE__ */ r("div", {
71
+ "data-slot": "alert-dialog-media",
72
+ className: e("mb-2 inline-flex size-16 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", t),
73
+ ...n
74
+ });
75
+ }
76
+ function h({ className: i, variant: a = "default", size: o = "default", ...s }) {
77
+ return /* @__PURE__ */ r(t, {
78
+ variant: a,
79
+ size: o,
80
+ asChild: !0,
81
+ children: /* @__PURE__ */ r(n.Action, {
82
+ "data-slot": "alert-dialog-action",
83
+ className: e(i),
84
+ ...s
85
+ })
86
+ });
87
+ }
88
+ function g({ className: i, variant: a = "outline", size: o = "default", ...s }) {
89
+ return /* @__PURE__ */ r(t, {
90
+ variant: a,
91
+ size: o,
92
+ asChild: !0,
93
+ children: /* @__PURE__ */ r(n.Cancel, {
94
+ "data-slot": "alert-dialog-cancel",
95
+ className: e(i),
96
+ ...s
97
+ })
98
+ });
99
+ }
100
+ //#endregion
101
+ export { a as AlertDialog, h as AlertDialogAction, g as AlertDialogCancel, l as AlertDialogContent, p as AlertDialogDescription, d as AlertDialogFooter, u as AlertDialogHeader, m as AlertDialogMedia, c as AlertDialogOverlay, s as AlertDialogPortal, f as AlertDialogTitle, o as AlertDialogTrigger };
@@ -0,0 +1,55 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { cva as n } from "class-variance-authority";
4
+ //#region src/components/reui/alert.tsx
5
+ var r = n([
6
+ "relative w-full text-sm border has-[>svg]:grid-cols-[calc(var(--spacing)*3)_1fr] grid-cols-[0_1fr] grid gap-y-0.5 items-center [&>svg:not([class*=size-])]:size-4",
7
+ "has-[>[data-slot=alert-title]+[data-slot=alert-description]]:[&_[data-slot=alert-action]]:sm:row-end-3",
8
+ "has-[>[data-slot=alert-title]+[data-slot=alert-description]]:items-start",
9
+ "has-[>[data-slot=alert-title]+[data-slot=alert-description]]:[&_svg]:translate-y-0.5",
10
+ "rounded-2xl",
11
+ "px-3",
12
+ "py-3",
13
+ "has-[>svg]:gap-x-2.5"
14
+ ], {
15
+ variants: { variant: {
16
+ default: "bg-card text-card-foreground",
17
+ destructive: "border-destructive/30 bg-destructive/4 [&>svg]:text-destructive",
18
+ info: "border-info/30 bg-info/4 [&>svg]:text-info",
19
+ success: "border-success/30 bg-success/4 [&>svg]:text-success",
20
+ warning: "border-warning/30 bg-warning/4 [&>svg]:text-warning",
21
+ invert: "border-invert bg-invert text-invert-foreground [&_[data-slot=alert-description]]:text-invert-foreground/70"
22
+ } },
23
+ defaultVariants: { variant: "default" }
24
+ });
25
+ function i({ className: n, variant: i, ...a }) {
26
+ return /* @__PURE__ */ t("div", {
27
+ "data-slot": "alert",
28
+ role: "alert",
29
+ className: e(r({ variant: i }), n),
30
+ ...a
31
+ });
32
+ }
33
+ function a({ className: n, ...r }) {
34
+ return /* @__PURE__ */ t("div", {
35
+ "data-slot": "alert-title",
36
+ className: e("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", n),
37
+ ...r
38
+ });
39
+ }
40
+ function o({ className: n, ...r }) {
41
+ return /* @__PURE__ */ t("div", {
42
+ "data-slot": "alert-description",
43
+ className: e("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed", n),
44
+ ...r
45
+ });
46
+ }
47
+ function s({ className: n, ...r }) {
48
+ return /* @__PURE__ */ t("div", {
49
+ "data-slot": "alert-action",
50
+ className: e("flex gap-1.5 max-sm:col-start-2 max-sm:mt-2 max-sm:justify-start sm:col-start-3 sm:row-start-1 sm:justify-end sm:self-center", n),
51
+ ...r
52
+ });
53
+ }
54
+ //#endregion
55
+ export { i as Alert, s as AlertAction, o as AlertDescription, a as AlertTitle };
@@ -0,0 +1,11 @@
1
+ import { AspectRatio as e } from "radix-ui";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ //#region src/components/reui/aspect-ratio.tsx
4
+ function n({ ...n }) {
5
+ return /* @__PURE__ */ t(e.Root, {
6
+ "data-slot": "aspect-ratio",
7
+ ...n
8
+ });
9
+ }
10
+ //#endregion
11
+ export { n as AspectRatio };
@@ -0,0 +1,170 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import { ScrollArea as t } from "./scroll-area.js";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
+ import { cva as i } from "class-variance-authority";
5
+ import { Autocomplete as a } from "@base-ui/react/autocomplete";
6
+ import { HugeiconsIcon as o } from "@hugeicons/react";
7
+ import { Cancel01Icon as s, UnfoldMoreIcon as c } from "@hugeicons/core-free-icons";
8
+ //#region src/components/reui/autocomplete.tsx
9
+ var l = i("outline-none flex w-full text-foreground placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 [[readonly]]:bg-muted/80 [[readonly]]:cursor-not-allowed border border-input focus-visible:border-ring aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-4xl bg-input/30 text-sm transition-colors focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-[3px]", {
10
+ variants: { size: {
11
+ sm: "h-8 px-3 [&~[data-slot=autocomplete-clear]]:end-2.5 [&~[data-slot=autocomplete-trigger]]:end-2.5",
12
+ default: "h-9 px-3 [&~[data-slot=autocomplete-clear]]:end-2.5 [&~[data-slot=autocomplete-trigger]]:end-2.5",
13
+ lg: "h-10 px-4 [&~[data-slot=autocomplete-clear]]:end-3 [&~[data-slot=autocomplete-trigger]]:end-3"
14
+ } },
15
+ defaultVariants: { size: "default" }
16
+ }), u = a.Root;
17
+ function d({ ...e }) {
18
+ return /* @__PURE__ */ n(a.Value, {
19
+ "data-slot": "autocomplete-value",
20
+ ...e
21
+ });
22
+ }
23
+ function f({ className: t, size: i = "default", showClear: o = !1, showTrigger: s = !1, ...c }) {
24
+ return /* @__PURE__ */ r("div", {
25
+ className: "relative w-full",
26
+ children: [
27
+ /* @__PURE__ */ n(a.Input, {
28
+ "data-slot": "autocomplete-input",
29
+ "data-size": i,
30
+ className: e(l({ size: i }), t),
31
+ ...c
32
+ }),
33
+ s && /* @__PURE__ */ n(E, {}),
34
+ o && /* @__PURE__ */ n(T, {})
35
+ ]
36
+ });
37
+ }
38
+ function p({ className: t, ...r }) {
39
+ return /* @__PURE__ */ n(a.Status, {
40
+ "data-slot": "autocomplete-status",
41
+ className: e("text-muted-foreground px-3 py-2 text-sm empty:m-0 empty:p-0", t),
42
+ ...r
43
+ });
44
+ }
45
+ function m({ ...e }) {
46
+ return /* @__PURE__ */ n(a.Portal, {
47
+ "data-slot": "autocomplete-portal",
48
+ ...e
49
+ });
50
+ }
51
+ function h({ ...e }) {
52
+ return /* @__PURE__ */ n(a.Backdrop, {
53
+ "data-slot": "autocomplete-backdrop",
54
+ ...e
55
+ });
56
+ }
57
+ function g({ className: t, ...r }) {
58
+ return /* @__PURE__ */ n(a.Positioner, {
59
+ "data-slot": "autocomplete-positioner",
60
+ className: e("z-50 outline-none", t),
61
+ ...r
62
+ });
63
+ }
64
+ function _({ className: r, scrollAreaClassName: i, ...o }) {
65
+ return /* @__PURE__ */ n(t, {
66
+ className: e("size-full min-h-0 **:data-[slot=scroll-area-viewport]:h-full **:data-[slot=scroll-area-viewport]:overscroll-contain", i),
67
+ children: /* @__PURE__ */ n(a.List, {
68
+ "data-slot": "autocomplete-list",
69
+ className: e("not-empty:px-1 not-empty:py-1 not-empty:scroll-py-1 in-data-has-overflow-y:me-3", r),
70
+ ...o
71
+ })
72
+ });
73
+ }
74
+ function v({ ...e }) {
75
+ return /* @__PURE__ */ n(a.Collection, {
76
+ "data-slot": "autocomplete-collection",
77
+ ...e
78
+ });
79
+ }
80
+ function y({ className: t, ...r }) {
81
+ return /* @__PURE__ */ n(a.Row, {
82
+ "data-slot": "autocomplete-row",
83
+ className: e("flex items-center gap-2", t),
84
+ ...r
85
+ });
86
+ }
87
+ function b({ className: t, ...r }) {
88
+ return /* @__PURE__ */ n(a.Item, {
89
+ "data-slot": "autocomplete-item",
90
+ className: e("text-foreground data-highlighted:text-foreground data-highlighted:before:bg-accent gap-2.5 rounded-xl px-3 py-2 text-sm data-highlighted:before:rounded-lg [&_svg:not([class*='size-'])]:size-4 relative flex cursor-default items-center outline-hidden transition-colors select-none data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:relative data-highlighted:z-0 data-highlighted:before:absolute data-highlighted:before:inset-x-0 data-highlighted:before:inset-y-0 data-highlighted:before:z-[-1] [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([role=img]):not([class*=text-])]:opacity-60", t),
91
+ ...r
92
+ });
93
+ }
94
+ function x({ className: t, children: i, showBackdrop: o = !1, align: s = "start", sideOffset: c = 4, alignOffset: l = 0, side: u = "bottom", anchor: d, ...f }) {
95
+ return /* @__PURE__ */ r(m, { children: [o && /* @__PURE__ */ n(h, {}), /* @__PURE__ */ n(g, {
96
+ align: s,
97
+ sideOffset: c,
98
+ alignOffset: l,
99
+ side: u,
100
+ anchor: d,
101
+ children: /* @__PURE__ */ n("div", {
102
+ className: "relative flex max-h-full",
103
+ children: /* @__PURE__ */ n(a.Popup, {
104
+ "data-slot": "autocomplete-popup",
105
+ className: e("bg-popover text-popover-foreground rounded-2xl shadow-2xl ring-foreground/5 flex max-h-[min(var(--available-height),24rem)] w-(--anchor-width) max-w-(--available-width) origin-(--transform-origin) scroll-pt-2 scroll-pb-2 flex-col overscroll-contain py-0.5 ring-1 transition-[scale,opacity] has-data-starting-style:scale-98 has-data-starting-style:opacity-0 has-data-[side=none]:scale-100 has-data-[side=none]:transition-none", t),
106
+ ...f,
107
+ children: i
108
+ })
109
+ })
110
+ })] });
111
+ }
112
+ function S({ ...e }) {
113
+ return /* @__PURE__ */ n(a.Group, {
114
+ "data-slot": "autocomplete-group",
115
+ ...e
116
+ });
117
+ }
118
+ function C({ className: t, ...r }) {
119
+ return /* @__PURE__ */ n(a.GroupLabel, {
120
+ "data-slot": "autocomplete-group-label",
121
+ className: e("text-muted-foreground px-3 py-2.5 text-xs font-medium", t),
122
+ ...r
123
+ });
124
+ }
125
+ function w({ className: t, ...r }) {
126
+ return /* @__PURE__ */ n(a.Empty, {
127
+ "data-slot": "autocomplete-empty",
128
+ className: e("text-muted-foreground px-3 py-2 text-sm text-center empty:m-0 empty:p-0", t),
129
+ ...r
130
+ });
131
+ }
132
+ function T({ className: t, ...r }) {
133
+ return /* @__PURE__ */ n(a.Clear, {
134
+ "data-slot": "autocomplete-clear",
135
+ className: e("ring-offset-background focus:ring-ring absolute top-1/2 -translate-y-1/2 cursor-pointer opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none data-disabled:pointer-events-none", t),
136
+ ...r,
137
+ children: /* @__PURE__ */ n(o, {
138
+ icon: s,
139
+ strokeWidth: 2,
140
+ className: "size-4"
141
+ })
142
+ });
143
+ }
144
+ function E({ className: t, ...r }) {
145
+ return /* @__PURE__ */ n(a.Trigger, {
146
+ "data-slot": "autocomplete-trigger",
147
+ className: e("focus:ring-ring ring-offset-background absolute top-1/2 -translate-y-1/2 cursor-pointer focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none has-[+[data-slot=autocomplete-clear]]:hidden data-disabled:pointer-events-none", t),
148
+ ...r,
149
+ children: /* @__PURE__ */ n(o, {
150
+ icon: c,
151
+ strokeWidth: 2,
152
+ className: "size-4 opacity-70"
153
+ })
154
+ });
155
+ }
156
+ function D({ ...e }) {
157
+ return /* @__PURE__ */ n(a.Arrow, {
158
+ "data-slot": "autocomplete-arrow",
159
+ ...e
160
+ });
161
+ }
162
+ function O({ className: t, ...r }) {
163
+ return /* @__PURE__ */ n(a.Separator, {
164
+ "data-slot": "autocomplete-separator",
165
+ className: e("bg-border/50 my-1.5 h-px", t),
166
+ ...r
167
+ });
168
+ }
169
+ //#endregion
170
+ export { u as Autocomplete, D as AutocompleteArrow, h as AutocompleteBackdrop, T as AutocompleteClear, v as AutocompleteCollection, x as AutocompleteContent, w as AutocompleteEmpty, S as AutocompleteGroup, C as AutocompleteGroupLabel, f as AutocompleteInput, b as AutocompleteItem, _ as AutocompleteList, m as AutocompletePortal, g as AutocompletePositioner, y as AutocompleteRow, O as AutocompleteSeparator, p as AutocompleteStatus, E as AutocompleteTrigger, d as AutocompleteValue };
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import { cn as e } from "../../lib/utils.js";
3
+ import "react";
4
+ import { Avatar as t } from "radix-ui";
5
+ import { jsx as n } from "react/jsx-runtime";
6
+ //#region src/components/reui/avatar.tsx
7
+ function r({ className: r, size: i = "default", ...a }) {
8
+ return /* @__PURE__ */ n(t.Root, {
9
+ "data-slot": "avatar",
10
+ "data-size": i,
11
+ className: e("group/avatar relative flex size-8 shrink-0 overflow-hidden rounded-full select-none data-[size=lg]:size-10 data-[size=sm]:size-6", r),
12
+ ...a
13
+ });
14
+ }
15
+ function i({ className: r, ...i }) {
16
+ return /* @__PURE__ */ n(t.Image, {
17
+ "data-slot": "avatar-image",
18
+ className: e("aspect-square size-full", r),
19
+ ...i
20
+ });
21
+ }
22
+ function a({ className: r, ...i }) {
23
+ return /* @__PURE__ */ n(t.Fallback, {
24
+ "data-slot": "avatar-fallback",
25
+ className: e("flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs", r),
26
+ ...i
27
+ });
28
+ }
29
+ function o({ className: t, ...r }) {
30
+ return /* @__PURE__ */ n("span", {
31
+ "data-slot": "avatar-badge",
32
+ className: e("absolute right-0 bottom-0 z-10 inline-flex items-center justify-center rounded-full bg-primary text-primary-foreground ring-2 ring-background select-none", "group-data-[size=sm]/avatar:size-2 group-data-[size=sm]/avatar:[&>svg]:hidden", "group-data-[size=default]/avatar:size-2.5 group-data-[size=default]/avatar:[&>svg]:size-2", "group-data-[size=lg]/avatar:size-3 group-data-[size=lg]/avatar:[&>svg]:size-2", t),
33
+ ...r
34
+ });
35
+ }
36
+ function s({ className: t, ...r }) {
37
+ return /* @__PURE__ */ n("div", {
38
+ "data-slot": "avatar-group",
39
+ className: e("group/avatar-group flex -space-x-2 *:data-[slot=avatar]:ring-2 *:data-[slot=avatar]:ring-background", t),
40
+ ...r
41
+ });
42
+ }
43
+ function c({ className: t, ...r }) {
44
+ return /* @__PURE__ */ n("div", {
45
+ "data-slot": "avatar-group-count",
46
+ className: e("relative flex size-8 shrink-0 items-center justify-center rounded-full bg-muted text-sm text-muted-foreground ring-2 ring-background group-has-data-[size=lg]/avatar-group:size-10 group-has-data-[size=sm]/avatar-group:size-6 [&>svg]:size-4 group-has-data-[size=lg]/avatar-group:[&>svg]:size-5 group-has-data-[size=sm]/avatar-group:[&>svg]:size-3", t),
47
+ ...r
48
+ });
49
+ }
50
+ //#endregion
51
+ export { r as Avatar, o as AvatarBadge, a as AvatarFallback, s as AvatarGroup, c as AvatarGroupCount, i as AvatarImage };
@@ -0,0 +1,64 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import { Slot as t } from "radix-ui";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { cva as r } from "class-variance-authority";
5
+ //#region src/components/reui/badge.tsx
6
+ var i = r("relative inline-flex shrink-0 items-center justify-center w-fit border border-transparent font-medium whitespace-nowrap outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-3", {
7
+ variants: {
8
+ variant: {
9
+ default: "bg-primary text-primary-foreground",
10
+ outline: "border-border bg-transparent dark:bg-input/32",
11
+ secondary: "bg-secondary text-secondary-foreground",
12
+ info: "bg-info text-white",
13
+ success: "bg-success text-white",
14
+ warning: "bg-warning text-white",
15
+ destructive: "bg-destructive text-white",
16
+ focus: "bg-focus text-focus-foreground",
17
+ invert: "bg-invert text-invert-foreground",
18
+ "primary-light": "bg-primary/10 border-none text-primary dark:bg-primary/20",
19
+ "warning-light": "bg-warning/10 border-none text-warning-foreground dark:bg-warning/20",
20
+ "success-light": "bg-success/10 border-none text-success-foreground dark:bg-success/20",
21
+ "info-light": "bg-info/10 border-none text-info-foreground dark:bg-info/20",
22
+ "destructive-light": "bg-destructive/10 border-none text-destructive-foreground dark:bg-destructive/20",
23
+ "invert-light": "bg-invert/10 border-none text-foreground dark:bg-invert/20",
24
+ "focus-light": "bg-focus/10 border-none text-focus-foreground dark:bg-focus/20",
25
+ "primary-outline": "bg-background border-border text-primary dark:bg-input/30",
26
+ "warning-outline": "bg-background border-border text-warning-foreground dark:bg-input/30",
27
+ "success-outline": "bg-background border-border text-success-foreground dark:bg-input/30",
28
+ "info-outline": "bg-background border-border text-info-foreground dark:bg-input/30",
29
+ "destructive-outline": "bg-background border-border text-destructive-foreground dark:bg-input/30",
30
+ "invert-outline": "bg-background border-border text-invert-foreground dark:bg-input/30",
31
+ "focus-outline": "bg-background border-border text-focus-foreground dark:bg-input/30"
32
+ },
33
+ size: {
34
+ xs: "px-1 py-0.25 text-[0.6rem] leading-none h-4 min-w-4 gap-1",
35
+ sm: "px-1 py-0.25 text-[0.625rem] leading-none h-4.5 min-w-4.5 gap-1",
36
+ default: "px-1.25 py-0.5 text-xs h-5 min-w-5 gap-1",
37
+ lg: "px-1.5 py-0.5 text-xs h-5.5 min-w-5.5 gap-1",
38
+ xl: "px-2 py-0.75 text-sm h-6 min-w-6 gap-1.5"
39
+ },
40
+ radius: {
41
+ default: "rounded-4xl",
42
+ full: "rounded-full"
43
+ }
44
+ },
45
+ defaultVariants: {
46
+ variant: "default",
47
+ size: "default",
48
+ radius: "default"
49
+ }
50
+ });
51
+ function a({ className: r, variant: a, size: o, radius: s, asChild: c = !1, ...l }) {
52
+ return /* @__PURE__ */ n(c ? t.Root : "span", {
53
+ "data-slot": "badge",
54
+ className: e(i({
55
+ variant: a,
56
+ size: o,
57
+ radius: s,
58
+ className: r
59
+ })),
60
+ ...l
61
+ });
62
+ }
63
+ //#endregion
64
+ export { a as Badge, i as badgeVariants };
@@ -0,0 +1,69 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import "react";
3
+ import { ChevronRight as t, MoreHorizontal as n } from "lucide-react";
4
+ import { Slot as r } from "radix-ui";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ //#region src/components/reui/breadcrumb.tsx
7
+ function o({ ...e }) {
8
+ return /* @__PURE__ */ i("nav", {
9
+ "aria-label": "breadcrumb",
10
+ "data-slot": "breadcrumb",
11
+ ...e
12
+ });
13
+ }
14
+ function s({ className: t, ...n }) {
15
+ return /* @__PURE__ */ i("ol", {
16
+ "data-slot": "breadcrumb-list",
17
+ className: e("flex flex-wrap items-center gap-1.5 text-sm break-words text-muted-foreground sm:gap-2.5", t),
18
+ ...n
19
+ });
20
+ }
21
+ function c({ className: t, ...n }) {
22
+ return /* @__PURE__ */ i("li", {
23
+ "data-slot": "breadcrumb-item",
24
+ className: e("inline-flex items-center gap-1.5", t),
25
+ ...n
26
+ });
27
+ }
28
+ function l({ asChild: t, className: n, ...a }) {
29
+ return /* @__PURE__ */ i(t ? r.Root : "a", {
30
+ "data-slot": "breadcrumb-link",
31
+ className: e("transition-colors hover:text-foreground", n),
32
+ ...a
33
+ });
34
+ }
35
+ function u({ className: t, ...n }) {
36
+ return /* @__PURE__ */ i("span", {
37
+ "data-slot": "breadcrumb-page",
38
+ role: "link",
39
+ "aria-disabled": "true",
40
+ "aria-current": "page",
41
+ className: e("font-normal text-foreground", t),
42
+ ...n
43
+ });
44
+ }
45
+ function d({ children: n, className: r, ...a }) {
46
+ return /* @__PURE__ */ i("li", {
47
+ "data-slot": "breadcrumb-separator",
48
+ role: "presentation",
49
+ "aria-hidden": "true",
50
+ className: e("[&>svg]:size-3.5", r),
51
+ ...a,
52
+ children: n ?? /* @__PURE__ */ i(t, {})
53
+ });
54
+ }
55
+ function f({ className: t, ...r }) {
56
+ return /* @__PURE__ */ a("span", {
57
+ "data-slot": "breadcrumb-ellipsis",
58
+ role: "presentation",
59
+ "aria-hidden": "true",
60
+ className: e("flex size-9 items-center justify-center", t),
61
+ ...r,
62
+ children: [/* @__PURE__ */ i(n, { className: "size-4" }), /* @__PURE__ */ i("span", {
63
+ className: "sr-only",
64
+ children: "More"
65
+ })]
66
+ });
67
+ }
68
+ //#endregion
69
+ export { o as Breadcrumb, f as BreadcrumbEllipsis, c as BreadcrumbItem, l as BreadcrumbLink, s as BreadcrumbList, u as BreadcrumbPage, d as BreadcrumbSeparator };
@@ -0,0 +1,38 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import { Separator as t } from "./separator.js";
3
+ import { Slot as n } from "radix-ui";
4
+ import { jsx as r } from "react/jsx-runtime";
5
+ import { cva as i } from "class-variance-authority";
6
+ //#region src/components/reui/button-group.tsx
7
+ var a = i("flex w-fit items-stretch has-[>[data-slot=button-group]]:gap-2 [&>*]:focus-visible:relative [&>*]:focus-visible:z-10 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1", {
8
+ variants: { orientation: {
9
+ horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
10
+ vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
11
+ } },
12
+ defaultVariants: { orientation: "horizontal" }
13
+ });
14
+ function o({ className: t, orientation: n, ...i }) {
15
+ return /* @__PURE__ */ r("div", {
16
+ role: "group",
17
+ "data-slot": "button-group",
18
+ "data-orientation": n,
19
+ className: e(a({ orientation: n }), t),
20
+ ...i
21
+ });
22
+ }
23
+ function s({ className: t, asChild: i = !1, ...a }) {
24
+ return /* @__PURE__ */ r(i ? n.Root : "div", {
25
+ className: e("flex items-center gap-2 rounded-md border bg-muted px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", t),
26
+ ...a
27
+ });
28
+ }
29
+ function c({ className: n, orientation: i = "vertical", ...a }) {
30
+ return /* @__PURE__ */ r(t, {
31
+ "data-slot": "button-group-separator",
32
+ orientation: i,
33
+ className: e("relative m-0! self-stretch bg-input data-[orientation=vertical]:h-auto", n),
34
+ ...a
35
+ });
36
+ }
37
+ //#endregion
38
+ export { o as ButtonGroup, c as ButtonGroupSeparator, s as ButtonGroupText, a as buttonGroupVariants };
@@ -0,0 +1,47 @@
1
+ import { cn as e } from "../../lib/utils.js";
2
+ import "react";
3
+ import { Slot as t } from "radix-ui";
4
+ import { jsx as n } from "react/jsx-runtime";
5
+ import { cva as r } from "class-variance-authority";
6
+ //#region src/components/reui/button.tsx
7
+ var i = r("inline-flex shrink-0 items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-all outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
8
+ variants: {
9
+ variant: {
10
+ default: "bg-primary text-primary-foreground hover:bg-primary/90",
11
+ destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
12
+ outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
13
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
14
+ ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
15
+ link: "text-primary underline-offset-4 hover:underline"
16
+ },
17
+ size: {
18
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
19
+ xs: "h-6 gap-1 rounded-md px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
20
+ sm: "h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",
21
+ lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
22
+ icon: "size-9",
23
+ "icon-xs": "size-6 rounded-md [&_svg:not([class*='size-'])]:size-3",
24
+ "icon-sm": "size-8",
25
+ "icon-lg": "size-10"
26
+ }
27
+ },
28
+ defaultVariants: {
29
+ variant: "default",
30
+ size: "default"
31
+ }
32
+ });
33
+ function a({ className: r, variant: a = "default", size: o = "default", asChild: s = !1, ...c }) {
34
+ return /* @__PURE__ */ n(s ? t.Root : "button", {
35
+ "data-slot": "button",
36
+ "data-variant": a,
37
+ "data-size": o,
38
+ className: e(i({
39
+ variant: a,
40
+ size: o,
41
+ className: r
42
+ })),
43
+ ...c
44
+ });
45
+ }
46
+ //#endregion
47
+ export { a as Button, i as buttonVariants };