@web-my-money/primitives 1.0.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 (196) hide show
  1. package/dist/accordion/index.d.mts +9 -0
  2. package/dist/accordion/index.d.ts +9 -0
  3. package/dist/accordion/index.js +99 -0
  4. package/dist/accordion/index.mjs +14 -0
  5. package/dist/alert-dialog/index.d.mts +22 -0
  6. package/dist/alert-dialog/index.d.ts +22 -0
  7. package/dist/alert-dialog/index.js +206 -0
  8. package/dist/alert-dialog/index.mjs +29 -0
  9. package/dist/avatar/index.d.mts +23 -0
  10. package/dist/avatar/index.d.ts +23 -0
  11. package/dist/avatar/index.js +133 -0
  12. package/dist/avatar/index.mjs +10 -0
  13. package/dist/badge/index.d.mts +15 -0
  14. package/dist/badge/index.d.ts +15 -0
  15. package/dist/badge/index.js +96 -0
  16. package/dist/badge/index.mjs +10 -0
  17. package/dist/breadcrumb/index.d.mts +20 -0
  18. package/dist/breadcrumb/index.d.ts +20 -0
  19. package/dist/breadcrumb/index.js +126 -0
  20. package/dist/breadcrumb/index.mjs +20 -0
  21. package/dist/button/index.d.mts +12 -0
  22. package/dist/button/index.d.ts +12 -0
  23. package/dist/button/index.js +88 -0
  24. package/dist/button/index.mjs +10 -0
  25. package/dist/calendar/index.d.mts +29 -0
  26. package/dist/calendar/index.d.ts +29 -0
  27. package/dist/calendar/index.js +191 -0
  28. package/dist/calendar/index.mjs +9 -0
  29. package/dist/card/index.d.mts +13 -0
  30. package/dist/card/index.d.ts +13 -0
  31. package/dist/card/index.js +141 -0
  32. package/dist/card/index.mjs +19 -0
  33. package/dist/carousel/index.d.mts +20 -0
  34. package/dist/carousel/index.d.ts +20 -0
  35. package/dist/carousel/index.js +236 -0
  36. package/dist/carousel/index.mjs +19 -0
  37. package/dist/checkbox/index.d.mts +6 -0
  38. package/dist/checkbox/index.d.ts +6 -0
  39. package/dist/checkbox/index.js +63 -0
  40. package/dist/checkbox/index.mjs +8 -0
  41. package/dist/chunk-32LEHNCH.mjs +155 -0
  42. package/dist/chunk-3ZJ4L43B.mjs +92 -0
  43. package/dist/chunk-4KQNZMKT.mjs +47 -0
  44. package/dist/chunk-4W6U222X.mjs +113 -0
  45. package/dist/chunk-556SM2PJ.mjs +40 -0
  46. package/dist/chunk-5LYTCNI6.mjs +127 -0
  47. package/dist/chunk-5N7LGYZK.mjs +137 -0
  48. package/dist/chunk-6OG237U6.mjs +54 -0
  49. package/dist/chunk-7TMIJ7HZ.mjs +149 -0
  50. package/dist/chunk-DTENOVQN.mjs +44 -0
  51. package/dist/chunk-DUGW62XX.mjs +143 -0
  52. package/dist/chunk-DWLKKYIU.mjs +156 -0
  53. package/dist/chunk-DYCSGLM5.mjs +32 -0
  54. package/dist/chunk-DZPJV6MN.mjs +66 -0
  55. package/dist/chunk-FT72MNAV.mjs +25 -0
  56. package/dist/chunk-FV6JTZAK.mjs +30 -0
  57. package/dist/chunk-GLD4KQD3.mjs +90 -0
  58. package/dist/chunk-GWVW5OI6.mjs +106 -0
  59. package/dist/chunk-JWCA4M7E.mjs +160 -0
  60. package/dist/chunk-K4UYYX45.mjs +199 -0
  61. package/dist/chunk-KVQKOJNU.mjs +52 -0
  62. package/dist/chunk-LPMRBQLR.mjs +120 -0
  63. package/dist/chunk-M6HSM6GV.mjs +68 -0
  64. package/dist/chunk-NE5LEVMC.mjs +201 -0
  65. package/dist/chunk-NGWDLZ6E.mjs +33 -0
  66. package/dist/chunk-NH5ZVHAV.mjs +36 -0
  67. package/dist/chunk-PFXSPRVI.mjs +65 -0
  68. package/dist/chunk-PJO7WJ4G.mjs +10 -0
  69. package/dist/chunk-PTXZWR7Y.mjs +76 -0
  70. package/dist/chunk-SG747CBC.mjs +34 -0
  71. package/dist/chunk-UDQDW22Y.mjs +71 -0
  72. package/dist/chunk-UGOA6M4S.mjs +120 -0
  73. package/dist/chunk-UXU54FBX.mjs +63 -0
  74. package/dist/chunk-WYBX5VJ4.mjs +49 -0
  75. package/dist/chunk-Y7DNVOKO.mjs +57 -0
  76. package/dist/chunk-YNOS3JA2.mjs +29 -0
  77. package/dist/chunk-YPTARV3T.mjs +57 -0
  78. package/dist/chunk-YYFQVSPV.mjs +17 -0
  79. package/dist/chunk-ZR3J34NX.mjs +85 -0
  80. package/dist/collapsible/index.d.mts +8 -0
  81. package/dist/collapsible/index.d.ts +8 -0
  82. package/dist/collapsible/index.js +64 -0
  83. package/dist/collapsible/index.mjs +12 -0
  84. package/dist/combobox/index.d.mts +18 -0
  85. package/dist/combobox/index.d.ts +18 -0
  86. package/dist/combobox/index.js +198 -0
  87. package/dist/combobox/index.mjs +32 -0
  88. package/dist/context-menu/index.d.mts +16 -0
  89. package/dist/context-menu/index.d.ts +16 -0
  90. package/dist/context-menu/index.js +177 -0
  91. package/dist/context-menu/index.mjs +28 -0
  92. package/dist/date-range-input/index.d.mts +17 -0
  93. package/dist/date-range-input/index.d.ts +17 -0
  94. package/dist/date-range-input/index.js +284 -0
  95. package/dist/date-range-input/index.mjs +11 -0
  96. package/dist/dialog/index.d.mts +19 -0
  97. package/dist/dialog/index.d.ts +19 -0
  98. package/dist/dialog/index.js +240 -0
  99. package/dist/dialog/index.mjs +27 -0
  100. package/dist/dropdown-menu/index.d.mts +16 -0
  101. package/dist/dropdown-menu/index.d.ts +16 -0
  102. package/dist/dropdown-menu/index.js +189 -0
  103. package/dist/dropdown-menu/index.mjs +28 -0
  104. package/dist/field/index.d.mts +24 -0
  105. package/dist/field/index.d.ts +24 -0
  106. package/dist/field/index.js +88 -0
  107. package/dist/field/index.mjs +16 -0
  108. package/dist/hover-card/index.d.mts +8 -0
  109. package/dist/hover-card/index.d.ts +8 -0
  110. package/dist/hover-card/index.js +79 -0
  111. package/dist/hover-card/index.mjs +12 -0
  112. package/dist/index.d.mts +73 -0
  113. package/dist/index.d.ts +73 -0
  114. package/dist/index.js +3167 -0
  115. package/dist/index.mjs +452 -0
  116. package/dist/input/index.d.mts +5 -0
  117. package/dist/input/index.d.ts +5 -0
  118. package/dist/input/index.js +54 -0
  119. package/dist/input/index.mjs +7 -0
  120. package/dist/kbd/index.d.mts +8 -0
  121. package/dist/kbd/index.d.ts +8 -0
  122. package/dist/kbd/index.js +64 -0
  123. package/dist/kbd/index.mjs +9 -0
  124. package/dist/lightbox/index.d.mts +17 -0
  125. package/dist/lightbox/index.d.ts +17 -0
  126. package/dist/lightbox/index.js +151 -0
  127. package/dist/lightbox/index.mjs +24 -0
  128. package/dist/pagination/index.d.mts +33 -0
  129. package/dist/pagination/index.d.ts +33 -0
  130. package/dist/pagination/index.js +212 -0
  131. package/dist/pagination/index.mjs +25 -0
  132. package/dist/popover/index.d.mts +11 -0
  133. package/dist/popover/index.d.ts +11 -0
  134. package/dist/popover/index.js +120 -0
  135. package/dist/popover/index.mjs +18 -0
  136. package/dist/progress/index.d.mts +6 -0
  137. package/dist/progress/index.d.ts +6 -0
  138. package/dist/progress/index.js +60 -0
  139. package/dist/progress/index.mjs +8 -0
  140. package/dist/radio-group/index.d.mts +8 -0
  141. package/dist/radio-group/index.d.ts +8 -0
  142. package/dist/radio-group/index.js +71 -0
  143. package/dist/radio-group/index.mjs +10 -0
  144. package/dist/resizable/index.d.mts +10 -0
  145. package/dist/resizable/index.d.ts +10 -0
  146. package/dist/resizable/index.js +80 -0
  147. package/dist/resizable/index.mjs +12 -0
  148. package/dist/scroll-area/index.d.mts +6 -0
  149. package/dist/scroll-area/index.d.ts +6 -0
  150. package/dist/scroll-area/index.js +74 -0
  151. package/dist/scroll-area/index.mjs +8 -0
  152. package/dist/select/index.d.mts +17 -0
  153. package/dist/select/index.d.ts +17 -0
  154. package/dist/select/index.js +238 -0
  155. package/dist/select/index.mjs +26 -0
  156. package/dist/separator/index.d.mts +6 -0
  157. package/dist/separator/index.d.ts +6 -0
  158. package/dist/separator/index.js +59 -0
  159. package/dist/separator/index.mjs +8 -0
  160. package/dist/sheet/index.d.mts +38 -0
  161. package/dist/sheet/index.d.ts +38 -0
  162. package/dist/sheet/index.js +212 -0
  163. package/dist/sheet/index.mjs +27 -0
  164. package/dist/skeleton/index.d.mts +17 -0
  165. package/dist/skeleton/index.d.ts +17 -0
  166. package/dist/skeleton/index.js +80 -0
  167. package/dist/skeleton/index.mjs +11 -0
  168. package/dist/slide-over/index.d.mts +92 -0
  169. package/dist/slide-over/index.d.ts +92 -0
  170. package/dist/slide-over/index.js +298 -0
  171. package/dist/slide-over/index.mjs +31 -0
  172. package/dist/slider/index.d.mts +6 -0
  173. package/dist/slider/index.d.ts +6 -0
  174. package/dist/slider/index.js +47 -0
  175. package/dist/slider/index.mjs +8 -0
  176. package/dist/switch/index.d.mts +8 -0
  177. package/dist/switch/index.d.ts +8 -0
  178. package/dist/switch/index.js +66 -0
  179. package/dist/switch/index.mjs +8 -0
  180. package/dist/tabs/index.d.mts +9 -0
  181. package/dist/tabs/index.d.ts +9 -0
  182. package/dist/tabs/index.js +96 -0
  183. package/dist/tabs/index.mjs +14 -0
  184. package/dist/toast/index.d.mts +19 -0
  185. package/dist/toast/index.d.ts +19 -0
  186. package/dist/toast/index.js +107 -0
  187. package/dist/toast/index.mjs +10 -0
  188. package/dist/toggle/index.d.mts +14 -0
  189. package/dist/toggle/index.d.ts +14 -0
  190. package/dist/toggle/index.js +89 -0
  191. package/dist/toggle/index.mjs +12 -0
  192. package/dist/tooltip/index.d.mts +9 -0
  193. package/dist/tooltip/index.d.ts +9 -0
  194. package/dist/tooltip/index.js +101 -0
  195. package/dist/tooltip/index.mjs +14 -0
  196. package/package.json +235 -0
@@ -0,0 +1,240 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/dialog/index.tsx
22
+ var dialog_exports = {};
23
+ __export(dialog_exports, {
24
+ Dialog: () => Dialog,
25
+ DialogClose: () => DialogClose,
26
+ DialogContent: () => DialogContent,
27
+ DialogDescription: () => DialogDescription,
28
+ DialogFooter: () => DialogFooter,
29
+ DialogHeader: () => DialogHeader,
30
+ DialogOverlay: () => DialogOverlay,
31
+ DialogPortal: () => DialogPortal,
32
+ DialogTitle: () => DialogTitle,
33
+ DialogTrigger: () => DialogTrigger
34
+ });
35
+ module.exports = __toCommonJS(dialog_exports);
36
+ var import_dialog = require("@base-ui/react/dialog");
37
+
38
+ // src/utils.ts
39
+ var import_clsx = require("clsx");
40
+ var import_tailwind_merge = require("tailwind-merge");
41
+ function cn(...inputs) {
42
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
43
+ }
44
+
45
+ // src/button/index.tsx
46
+ var import_button = require("@base-ui/react/button");
47
+ var import_class_variance_authority = require("class-variance-authority");
48
+ var import_jsx_runtime = require("react/jsx-runtime");
49
+ var buttonVariants = (0, import_class_variance_authority.cva)(
50
+ "group/button inline-flex shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
51
+ {
52
+ variants: {
53
+ variant: {
54
+ default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
55
+ outline: "border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",
56
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
57
+ ghost: "hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",
58
+ destructive: "bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",
59
+ link: "text-primary underline-offset-4 hover:underline"
60
+ },
61
+ size: {
62
+ default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
63
+ xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
64
+ sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
65
+ lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",
66
+ icon: "size-8",
67
+ "icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
68
+ "icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
69
+ "icon-lg": "size-9"
70
+ }
71
+ },
72
+ defaultVariants: {
73
+ variant: "default",
74
+ size: "default"
75
+ }
76
+ }
77
+ );
78
+ function Button({
79
+ className,
80
+ variant = "default",
81
+ size = "default",
82
+ ...props
83
+ }) {
84
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
+ import_button.Button,
86
+ {
87
+ "data-slot": "button",
88
+ className: cn(buttonVariants({ variant, size, className })),
89
+ ...props
90
+ }
91
+ );
92
+ }
93
+
94
+ // src/dialog/index.tsx
95
+ var import_lucide_react = require("lucide-react");
96
+ var import_jsx_runtime2 = require("react/jsx-runtime");
97
+ function Dialog({ ...props }) {
98
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dialog.Dialog.Root, { "data-slot": "dialog", ...props });
99
+ }
100
+ function DialogTrigger({ ...props }) {
101
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dialog.Dialog.Trigger, { "data-slot": "dialog-trigger", ...props });
102
+ }
103
+ function DialogPortal({ ...props }) {
104
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dialog.Dialog.Portal, { "data-slot": "dialog-portal", ...props });
105
+ }
106
+ function DialogClose({ ...props }) {
107
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dialog.Dialog.Close, { "data-slot": "dialog-close", ...props });
108
+ }
109
+ function DialogOverlay({
110
+ className,
111
+ ...props
112
+ }) {
113
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
114
+ import_dialog.Dialog.Backdrop,
115
+ {
116
+ "data-slot": "dialog-overlay",
117
+ className: cn(
118
+ "fixed inset-0 isolate z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
119
+ className
120
+ ),
121
+ ...props
122
+ }
123
+ );
124
+ }
125
+ function DialogContent({
126
+ className,
127
+ children,
128
+ showCloseButton = true,
129
+ ...props
130
+ }) {
131
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(DialogPortal, { children: [
132
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(DialogOverlay, {}),
133
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
134
+ import_dialog.Dialog.Popup,
135
+ {
136
+ "data-slot": "dialog-content",
137
+ className: cn(
138
+ "fixed top-1/2 left-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
139
+ className
140
+ ),
141
+ ...props,
142
+ children: [
143
+ children,
144
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
145
+ import_dialog.Dialog.Close,
146
+ {
147
+ "data-slot": "dialog-close",
148
+ render: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
149
+ Button,
150
+ {
151
+ variant: "ghost",
152
+ className: "absolute top-2 right-2",
153
+ size: "icon-sm"
154
+ }
155
+ ),
156
+ children: [
157
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.XIcon, {}),
158
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "sr-only", children: "Close" })
159
+ ]
160
+ }
161
+ )
162
+ ]
163
+ }
164
+ )
165
+ ] });
166
+ }
167
+ function DialogHeader({ className, ...props }) {
168
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
169
+ "div",
170
+ {
171
+ "data-slot": "dialog-header",
172
+ className: cn("flex flex-col gap-2", className),
173
+ ...props
174
+ }
175
+ );
176
+ }
177
+ function DialogFooter({
178
+ className,
179
+ showCloseButton = false,
180
+ children,
181
+ ...props
182
+ }) {
183
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
184
+ "div",
185
+ {
186
+ "data-slot": "dialog-footer",
187
+ className: cn(
188
+ "-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 sm:flex-row sm:justify-end",
189
+ className
190
+ ),
191
+ ...props,
192
+ children: [
193
+ children,
194
+ showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_dialog.Dialog.Close, { render: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(Button, { variant: "outline" }), children: "Close" })
195
+ ]
196
+ }
197
+ );
198
+ }
199
+ function DialogTitle({ className, ...props }) {
200
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
201
+ import_dialog.Dialog.Title,
202
+ {
203
+ "data-slot": "dialog-title",
204
+ className: cn(
205
+ "font-heading text-base leading-none font-medium",
206
+ className
207
+ ),
208
+ ...props
209
+ }
210
+ );
211
+ }
212
+ function DialogDescription({
213
+ className,
214
+ ...props
215
+ }) {
216
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
217
+ import_dialog.Dialog.Description,
218
+ {
219
+ "data-slot": "dialog-description",
220
+ className: cn(
221
+ "text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
222
+ className
223
+ ),
224
+ ...props
225
+ }
226
+ );
227
+ }
228
+ // Annotate the CommonJS export names for ESM import in node:
229
+ 0 && (module.exports = {
230
+ Dialog,
231
+ DialogClose,
232
+ DialogContent,
233
+ DialogDescription,
234
+ DialogFooter,
235
+ DialogHeader,
236
+ DialogOverlay,
237
+ DialogPortal,
238
+ DialogTitle,
239
+ DialogTrigger
240
+ });
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import {
3
+ Dialog,
4
+ DialogClose,
5
+ DialogContent,
6
+ DialogDescription,
7
+ DialogFooter,
8
+ DialogHeader,
9
+ DialogOverlay,
10
+ DialogPortal,
11
+ DialogTitle,
12
+ DialogTrigger
13
+ } from "../chunk-32LEHNCH.mjs";
14
+ import "../chunk-YPTARV3T.mjs";
15
+ import "../chunk-PJO7WJ4G.mjs";
16
+ export {
17
+ Dialog,
18
+ DialogClose,
19
+ DialogContent,
20
+ DialogDescription,
21
+ DialogFooter,
22
+ DialogHeader,
23
+ DialogOverlay,
24
+ DialogPortal,
25
+ DialogTitle,
26
+ DialogTrigger
27
+ };
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { Menu } from '@base-ui/react/menu';
3
+
4
+ declare function DropdownMenu({ ...props }: Menu.Root.Props): React.JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: Menu.Trigger.Props): React.JSX.Element;
6
+ declare function DropdownMenuGroup({ ...props }: Menu.Group.Props): React.JSX.Element;
7
+ declare function DropdownMenuContent({ className, align, sideOffset, side, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "sideOffset" | "side">): React.JSX.Element;
8
+ declare function DropdownMenuItem({ className, ...props }: Menu.Item.Props): React.JSX.Element;
9
+ declare function DropdownMenuCheckboxItem({ className, children, ...props }: Menu.CheckboxItem.Props): React.JSX.Element;
10
+ declare function DropdownMenuLabel({ className, ...props }: Menu.GroupLabel.Props): React.JSX.Element;
11
+ declare function DropdownMenuSeparator({ className, ...props }: Menu.Separator.Props): React.JSX.Element;
12
+ declare function DropdownMenuSub({ ...props }: Menu.SubmenuRoot.Props): React.JSX.Element;
13
+ declare function DropdownMenuSubTrigger({ className, children, ...props }: Menu.SubmenuTrigger.Props): React.JSX.Element;
14
+ declare function DropdownMenuSubContent({ className, ...props }: Menu.Popup.Props): React.JSX.Element;
15
+
16
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ import { Menu } from '@base-ui/react/menu';
3
+
4
+ declare function DropdownMenu({ ...props }: Menu.Root.Props): React.JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: Menu.Trigger.Props): React.JSX.Element;
6
+ declare function DropdownMenuGroup({ ...props }: Menu.Group.Props): React.JSX.Element;
7
+ declare function DropdownMenuContent({ className, align, sideOffset, side, ...props }: Menu.Popup.Props & Pick<Menu.Positioner.Props, "align" | "sideOffset" | "side">): React.JSX.Element;
8
+ declare function DropdownMenuItem({ className, ...props }: Menu.Item.Props): React.JSX.Element;
9
+ declare function DropdownMenuCheckboxItem({ className, children, ...props }: Menu.CheckboxItem.Props): React.JSX.Element;
10
+ declare function DropdownMenuLabel({ className, ...props }: Menu.GroupLabel.Props): React.JSX.Element;
11
+ declare function DropdownMenuSeparator({ className, ...props }: Menu.Separator.Props): React.JSX.Element;
12
+ declare function DropdownMenuSub({ ...props }: Menu.SubmenuRoot.Props): React.JSX.Element;
13
+ declare function DropdownMenuSubTrigger({ className, children, ...props }: Menu.SubmenuTrigger.Props): React.JSX.Element;
14
+ declare function DropdownMenuSubContent({ className, ...props }: Menu.Popup.Props): React.JSX.Element;
15
+
16
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/dropdown-menu/index.tsx
22
+ var dropdown_menu_exports = {};
23
+ __export(dropdown_menu_exports, {
24
+ DropdownMenu: () => DropdownMenu,
25
+ DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
26
+ DropdownMenuContent: () => DropdownMenuContent,
27
+ DropdownMenuGroup: () => DropdownMenuGroup,
28
+ DropdownMenuItem: () => DropdownMenuItem,
29
+ DropdownMenuLabel: () => DropdownMenuLabel,
30
+ DropdownMenuSeparator: () => DropdownMenuSeparator,
31
+ DropdownMenuSub: () => DropdownMenuSub,
32
+ DropdownMenuSubContent: () => DropdownMenuSubContent,
33
+ DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
34
+ DropdownMenuTrigger: () => DropdownMenuTrigger
35
+ });
36
+ module.exports = __toCommonJS(dropdown_menu_exports);
37
+ var import_menu = require("@base-ui/react/menu");
38
+ var import_lucide_react = require("lucide-react");
39
+
40
+ // src/utils.ts
41
+ var import_clsx = require("clsx");
42
+ var import_tailwind_merge = require("tailwind-merge");
43
+ function cn(...inputs) {
44
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
45
+ }
46
+
47
+ // src/dropdown-menu/index.tsx
48
+ var import_jsx_runtime = require("react/jsx-runtime");
49
+ function DropdownMenu({ ...props }) {
50
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu.Root, { "data-slot": "dropdown-menu", ...props });
51
+ }
52
+ function DropdownMenuTrigger({ ...props }) {
53
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
54
+ }
55
+ function DropdownMenuGroup({ ...props }) {
56
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu.Group, { "data-slot": "dropdown-menu-group", ...props });
57
+ }
58
+ var popupClasses = "z-50 min-w-40 origin-(--transform-origin) rounded-lg bg-popover p-1 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95";
59
+ function DropdownMenuContent({
60
+ className,
61
+ align = "start",
62
+ sideOffset = 4,
63
+ side = "bottom",
64
+ ...props
65
+ }) {
66
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
+ import_menu.Menu.Positioner,
68
+ {
69
+ align,
70
+ sideOffset,
71
+ side,
72
+ className: "isolate z-50",
73
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
+ import_menu.Menu.Popup,
75
+ {
76
+ "data-slot": "dropdown-menu-content",
77
+ className: cn(popupClasses, className),
78
+ ...props
79
+ }
80
+ )
81
+ }
82
+ ) });
83
+ }
84
+ var itemClasses = "relative flex cursor-default select-none items-center gap-2 rounded-md px-2 py-1.5 text-sm outline-hidden data-highlighted:bg-muted data-highlighted:text-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:size-4 [&_svg]:shrink-0";
85
+ function DropdownMenuItem({
86
+ className,
87
+ ...props
88
+ }) {
89
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
90
+ import_menu.Menu.Item,
91
+ {
92
+ "data-slot": "dropdown-menu-item",
93
+ className: cn(itemClasses, className),
94
+ ...props
95
+ }
96
+ );
97
+ }
98
+ function DropdownMenuCheckboxItem({
99
+ className,
100
+ children,
101
+ ...props
102
+ }) {
103
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
104
+ import_menu.Menu.CheckboxItem,
105
+ {
106
+ "data-slot": "dropdown-menu-checkbox-item",
107
+ className: cn(itemClasses, "pl-7", className),
108
+ ...props,
109
+ children: [
110
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "absolute left-1.5 flex size-4 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu.CheckboxItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.Check, { className: "size-3.5" }) }) }),
111
+ children
112
+ ]
113
+ }
114
+ );
115
+ }
116
+ function DropdownMenuLabel({
117
+ className,
118
+ ...props
119
+ }) {
120
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
121
+ import_menu.Menu.GroupLabel,
122
+ {
123
+ "data-slot": "dropdown-menu-label",
124
+ className: cn("px-2 py-1.5 text-xs font-medium text-muted-foreground", className),
125
+ ...props
126
+ }
127
+ );
128
+ }
129
+ function DropdownMenuSeparator({
130
+ className,
131
+ ...props
132
+ }) {
133
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
134
+ import_menu.Menu.Separator,
135
+ {
136
+ "data-slot": "dropdown-menu-separator",
137
+ className: cn("-mx-1 my-1 h-px bg-border", className),
138
+ ...props
139
+ }
140
+ );
141
+ }
142
+ function DropdownMenuSub({ ...props }) {
143
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu.SubmenuRoot, { ...props });
144
+ }
145
+ function DropdownMenuSubTrigger({
146
+ className,
147
+ children,
148
+ ...props
149
+ }) {
150
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
151
+ import_menu.Menu.SubmenuTrigger,
152
+ {
153
+ "data-slot": "dropdown-menu-sub-trigger",
154
+ className: cn(itemClasses, "data-popup-open:bg-muted", className),
155
+ ...props,
156
+ children: [
157
+ children,
158
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.ChevronRight, { className: "ml-auto size-4" })
159
+ ]
160
+ }
161
+ );
162
+ }
163
+ function DropdownMenuSubContent({
164
+ className,
165
+ ...props
166
+ }) {
167
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_menu.Menu.Positioner, { className: "isolate z-50", side: "inline-end", sideOffset: 4, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
168
+ import_menu.Menu.Popup,
169
+ {
170
+ "data-slot": "dropdown-menu-sub-content",
171
+ className: cn(popupClasses, className),
172
+ ...props
173
+ }
174
+ ) }) });
175
+ }
176
+ // Annotate the CommonJS export names for ESM import in node:
177
+ 0 && (module.exports = {
178
+ DropdownMenu,
179
+ DropdownMenuCheckboxItem,
180
+ DropdownMenuContent,
181
+ DropdownMenuGroup,
182
+ DropdownMenuItem,
183
+ DropdownMenuLabel,
184
+ DropdownMenuSeparator,
185
+ DropdownMenuSub,
186
+ DropdownMenuSubContent,
187
+ DropdownMenuSubTrigger,
188
+ DropdownMenuTrigger
189
+ });
@@ -0,0 +1,28 @@
1
+ "use client";
2
+ import {
3
+ DropdownMenu,
4
+ DropdownMenuCheckboxItem,
5
+ DropdownMenuContent,
6
+ DropdownMenuGroup,
7
+ DropdownMenuItem,
8
+ DropdownMenuLabel,
9
+ DropdownMenuSeparator,
10
+ DropdownMenuSub,
11
+ DropdownMenuSubContent,
12
+ DropdownMenuSubTrigger,
13
+ DropdownMenuTrigger
14
+ } from "../chunk-7TMIJ7HZ.mjs";
15
+ import "../chunk-PJO7WJ4G.mjs";
16
+ export {
17
+ DropdownMenu,
18
+ DropdownMenuCheckboxItem,
19
+ DropdownMenuContent,
20
+ DropdownMenuGroup,
21
+ DropdownMenuItem,
22
+ DropdownMenuLabel,
23
+ DropdownMenuSeparator,
24
+ DropdownMenuSub,
25
+ DropdownMenuSubContent,
26
+ DropdownMenuSubTrigger,
27
+ DropdownMenuTrigger
28
+ };
@@ -0,0 +1,24 @@
1
+ import * as _base_ui_react from '@base-ui/react';
2
+ import * as React$1 from 'react';
3
+ import { Field as Field$1 } from '@base-ui/react/field';
4
+
5
+ /**
6
+ * Form field primitives — label + control + description + error, token-styled.
7
+ * Works with native validation OR react-hook-form (pass the RHF error message to
8
+ * <FieldError>, and register the control as usual).
9
+ *
10
+ * <Field>
11
+ * <FieldLabel>Email</FieldLabel>
12
+ * <Input {...register("email")} aria-invalid={!!errors.email} />
13
+ * <FieldDescription>We'll never share it.</FieldDescription>
14
+ * <FieldError>{errors.email?.message}</FieldError>
15
+ * </Field>
16
+ */
17
+ declare const Field: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Field$1.Root>) => React$1.JSX.Element;
18
+ declare const FieldLabel: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Field$1.Label>) => React$1.JSX.Element;
19
+ declare const FieldDescription: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Field$1.Description>) => React$1.JSX.Element;
20
+ declare const FieldError: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Field$1.Error>) => React$1.JSX.Element;
21
+ /** Base UI's control slot — wire native inputs into field validity when not using <Input>. */
22
+ declare const FieldControl: React$1.ForwardRefExoticComponent<Omit<_base_ui_react.FieldControlProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
23
+
24
+ export { Field, FieldControl, FieldDescription, FieldError, FieldLabel };
@@ -0,0 +1,24 @@
1
+ import * as _base_ui_react from '@base-ui/react';
2
+ import * as React$1 from 'react';
3
+ import { Field as Field$1 } from '@base-ui/react/field';
4
+
5
+ /**
6
+ * Form field primitives — label + control + description + error, token-styled.
7
+ * Works with native validation OR react-hook-form (pass the RHF error message to
8
+ * <FieldError>, and register the control as usual).
9
+ *
10
+ * <Field>
11
+ * <FieldLabel>Email</FieldLabel>
12
+ * <Input {...register("email")} aria-invalid={!!errors.email} />
13
+ * <FieldDescription>We'll never share it.</FieldDescription>
14
+ * <FieldError>{errors.email?.message}</FieldError>
15
+ * </Field>
16
+ */
17
+ declare const Field: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Field$1.Root>) => React$1.JSX.Element;
18
+ declare const FieldLabel: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Field$1.Label>) => React$1.JSX.Element;
19
+ declare const FieldDescription: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Field$1.Description>) => React$1.JSX.Element;
20
+ declare const FieldError: ({ className, ...props }: React.ComponentPropsWithoutRef<typeof Field$1.Error>) => React$1.JSX.Element;
21
+ /** Base UI's control slot — wire native inputs into field validity when not using <Input>. */
22
+ declare const FieldControl: React$1.ForwardRefExoticComponent<Omit<_base_ui_react.FieldControlProps, "ref"> & React$1.RefAttributes<HTMLElement>>;
23
+
24
+ export { Field, FieldControl, FieldDescription, FieldError, FieldLabel };
@@ -0,0 +1,88 @@
1
+ "use strict";
2
+ "use client";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/field/index.tsx
22
+ var field_exports = {};
23
+ __export(field_exports, {
24
+ Field: () => Field,
25
+ FieldControl: () => FieldControl,
26
+ FieldDescription: () => FieldDescription,
27
+ FieldError: () => FieldError,
28
+ FieldLabel: () => FieldLabel
29
+ });
30
+ module.exports = __toCommonJS(field_exports);
31
+ var import_field = require("@base-ui/react/field");
32
+
33
+ // src/utils.ts
34
+ var import_clsx = require("clsx");
35
+ var import_tailwind_merge = require("tailwind-merge");
36
+ function cn(...inputs) {
37
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
38
+ }
39
+
40
+ // src/field/index.tsx
41
+ var import_jsx_runtime = require("react/jsx-runtime");
42
+ var Field = ({
43
+ className,
44
+ ...props
45
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_field.Field.Root, { className: cn("flex flex-col gap-1.5", className), ...props });
46
+ var FieldLabel = ({
47
+ className,
48
+ ...props
49
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
50
+ import_field.Field.Label,
51
+ {
52
+ className: cn(
53
+ "text-sm font-medium text-foreground select-none",
54
+ "data-[disabled]:opacity-50",
55
+ className
56
+ ),
57
+ ...props
58
+ }
59
+ );
60
+ var FieldDescription = ({
61
+ className,
62
+ ...props
63
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
64
+ import_field.Field.Description,
65
+ {
66
+ className: cn("text-xs text-muted-foreground", className),
67
+ ...props
68
+ }
69
+ );
70
+ var FieldError = ({
71
+ className,
72
+ ...props
73
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
74
+ import_field.Field.Error,
75
+ {
76
+ className: cn("text-xs font-medium text-destructive", className),
77
+ ...props
78
+ }
79
+ );
80
+ var FieldControl = import_field.Field.Control;
81
+ // Annotate the CommonJS export names for ESM import in node:
82
+ 0 && (module.exports = {
83
+ Field,
84
+ FieldControl,
85
+ FieldDescription,
86
+ FieldError,
87
+ FieldLabel
88
+ });
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import {
3
+ Field,
4
+ FieldControl,
5
+ FieldDescription,
6
+ FieldError,
7
+ FieldLabel
8
+ } from "../chunk-6OG237U6.mjs";
9
+ import "../chunk-PJO7WJ4G.mjs";
10
+ export {
11
+ Field,
12
+ FieldControl,
13
+ FieldDescription,
14
+ FieldError,
15
+ FieldLabel
16
+ };