@wealthx/shadcn 0.0.1 → 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 (186) hide show
  1. package/.turbo/turbo-build.log +160 -0
  2. package/CHANGELOG.md +13 -0
  3. package/CHANGES.md +345 -0
  4. package/dist/chunk-2WZVSBAY.mjs +232 -0
  5. package/dist/chunk-2Y7YJKPE.mjs +47 -0
  6. package/dist/chunk-3U7SD3MS.mjs +55 -0
  7. package/dist/chunk-3VQNJ235.mjs +114 -0
  8. package/dist/chunk-55CEW76V.mjs +35 -0
  9. package/dist/chunk-6AFMNC42.mjs +146 -0
  10. package/dist/chunk-6OJF6XRN.mjs +117 -0
  11. package/dist/chunk-7LDIMXGM.mjs +181 -0
  12. package/dist/chunk-AMJ23O53.mjs +122 -0
  13. package/dist/chunk-BBJBJSXQ.mjs +44 -0
  14. package/dist/chunk-BGP2N52Z.mjs +126 -0
  15. package/dist/chunk-BMFN37JH.mjs +41 -0
  16. package/dist/chunk-CGOKTPXU.mjs +79 -0
  17. package/dist/chunk-CZ3BW5GL.mjs +81 -0
  18. package/dist/chunk-DBHJ5KC3.mjs +55 -0
  19. package/dist/chunk-DDPA2XXS.mjs +97 -0
  20. package/dist/chunk-DS2AMHN2.mjs +30 -0
  21. package/dist/chunk-E3K6O4FZ.mjs +57 -0
  22. package/dist/chunk-FWCSY2DS.mjs +37 -0
  23. package/dist/chunk-GPRJQ24C.mjs +28 -0
  24. package/dist/chunk-HS7TFG7V.mjs +24 -0
  25. package/dist/chunk-HUVTPUV2.mjs +256 -0
  26. package/dist/chunk-IAOOZCUY.mjs +90 -0
  27. package/dist/chunk-JF4PHPD5.mjs +111 -0
  28. package/dist/chunk-JU2RUWHF.mjs +123 -0
  29. package/dist/chunk-KKHTJNMM.mjs +86 -0
  30. package/dist/chunk-MJIEMGRD.mjs +266 -0
  31. package/dist/chunk-MKFL5MNH.mjs +372 -0
  32. package/dist/chunk-MQ72DIBH.mjs +105 -0
  33. package/dist/chunk-NGYG2EA6.mjs +148 -0
  34. package/dist/chunk-NWZ46DJL.mjs +213 -0
  35. package/dist/chunk-OXQQNQZI.mjs +75 -0
  36. package/dist/chunk-PMKODV6M.mjs +161 -0
  37. package/dist/chunk-QOJ2DQD6.mjs +57 -0
  38. package/dist/chunk-RL772EH7.mjs +126 -0
  39. package/dist/chunk-SLWCCURD.mjs +99 -0
  40. package/dist/chunk-V7CNWJT3.mjs +10 -0
  41. package/dist/chunk-VG6UF6UT.mjs +68 -0
  42. package/dist/chunk-VYMHBV6D.mjs +123 -0
  43. package/dist/chunk-VZ2NR7L3.mjs +195 -0
  44. package/dist/chunk-YN5SYTOO.mjs +117 -0
  45. package/dist/chunk-Z3MK2KKZ.mjs +83 -0
  46. package/dist/chunk-ZN2QKLF6.mjs +187 -0
  47. package/dist/chunk-ZZV5JVNW.mjs +34 -0
  48. package/dist/components/ui/accordion.js +142 -0
  49. package/dist/components/ui/accordion.mjs +14 -0
  50. package/dist/components/ui/alert-dialog.js +413 -0
  51. package/dist/components/ui/alert-dialog.mjs +34 -0
  52. package/dist/components/ui/alert.js +134 -0
  53. package/dist/components/ui/alert.mjs +12 -0
  54. package/dist/components/ui/avatar.js +173 -0
  55. package/dist/components/ui/avatar.mjs +18 -0
  56. package/dist/components/ui/badge.js +163 -0
  57. package/dist/components/ui/badge.mjs +11 -0
  58. package/dist/components/ui/button.js +198 -0
  59. package/dist/components/ui/button.mjs +11 -0
  60. package/dist/components/ui/calendar.js +408 -0
  61. package/dist/components/ui/calendar.mjs +12 -0
  62. package/dist/components/ui/card.js +156 -0
  63. package/dist/components/ui/card.mjs +20 -0
  64. package/dist/components/ui/checkbox.js +166 -0
  65. package/dist/components/ui/checkbox.mjs +11 -0
  66. package/dist/components/ui/chip.js +199 -0
  67. package/dist/components/ui/chip.mjs +10 -0
  68. package/dist/components/ui/data-table.js +925 -0
  69. package/dist/components/ui/data-table.mjs +29 -0
  70. package/dist/components/ui/date-picker.js +561 -0
  71. package/dist/components/ui/date-picker.mjs +15 -0
  72. package/dist/components/ui/dialog.js +378 -0
  73. package/dist/components/ui/dialog.mjs +30 -0
  74. package/dist/components/ui/drawer.js +213 -0
  75. package/dist/components/ui/drawer.mjs +28 -0
  76. package/dist/components/ui/dropdown-menu.js +338 -0
  77. package/dist/components/ui/dropdown-menu.mjs +38 -0
  78. package/dist/components/ui/empty.js +173 -0
  79. package/dist/components/ui/empty.mjs +18 -0
  80. package/dist/components/ui/field.js +359 -0
  81. package/dist/components/ui/field.mjs +28 -0
  82. package/dist/components/ui/input-group.js +406 -0
  83. package/dist/components/ui/input-group.mjs +22 -0
  84. package/dist/components/ui/input-otp.js +149 -0
  85. package/dist/components/ui/input-otp.mjs +14 -0
  86. package/dist/components/ui/input.js +81 -0
  87. package/dist/components/ui/input.mjs +8 -0
  88. package/dist/components/ui/label.js +85 -0
  89. package/dist/components/ui/label.mjs +8 -0
  90. package/dist/components/ui/pagination.js +333 -0
  91. package/dist/components/ui/pagination.mjs +22 -0
  92. package/dist/components/ui/popover.js +167 -0
  93. package/dist/components/ui/popover.mjs +22 -0
  94. package/dist/components/ui/progress.js +97 -0
  95. package/dist/components/ui/progress.mjs +8 -0
  96. package/dist/components/ui/radio-group.js +178 -0
  97. package/dist/components/ui/radio-group.mjs +12 -0
  98. package/dist/components/ui/select.js +262 -0
  99. package/dist/components/ui/select.mjs +28 -0
  100. package/dist/components/ui/separator.js +86 -0
  101. package/dist/components/ui/separator.mjs +8 -0
  102. package/dist/components/ui/sheet.js +227 -0
  103. package/dist/components/ui/sheet.mjs +26 -0
  104. package/dist/components/ui/skeleton.js +75 -0
  105. package/dist/components/ui/skeleton.mjs +8 -0
  106. package/dist/components/ui/sonner.js +86 -0
  107. package/dist/components/ui/sonner.mjs +7 -0
  108. package/dist/components/ui/spinner.js +93 -0
  109. package/dist/components/ui/spinner.mjs +10 -0
  110. package/dist/components/ui/switch.js +178 -0
  111. package/dist/components/ui/switch.mjs +11 -0
  112. package/dist/components/ui/table.js +184 -0
  113. package/dist/components/ui/table.mjs +22 -0
  114. package/dist/components/ui/tabs.js +181 -0
  115. package/dist/components/ui/tabs.mjs +16 -0
  116. package/dist/components/ui/textarea.js +79 -0
  117. package/dist/components/ui/textarea.mjs +8 -0
  118. package/dist/components/ui/toggle-group.js +184 -0
  119. package/dist/components/ui/toggle-group.mjs +12 -0
  120. package/dist/components/ui/toggle.js +108 -0
  121. package/dist/components/ui/toggle.mjs +11 -0
  122. package/dist/components/ui/tooltip.js +140 -0
  123. package/dist/components/ui/tooltip.mjs +16 -0
  124. package/dist/index.js +4409 -0
  125. package/dist/index.mjs +462 -0
  126. package/dist/lib/colors.js +84 -0
  127. package/dist/lib/colors.mjs +13 -0
  128. package/dist/lib/theme-provider.js +150 -0
  129. package/dist/lib/theme-provider.mjs +13 -0
  130. package/dist/lib/typography.js +157 -0
  131. package/dist/lib/typography.mjs +25 -0
  132. package/dist/lib/utils.js +34 -0
  133. package/dist/lib/utils.mjs +7 -0
  134. package/dist/styles.css +2 -0
  135. package/package.json +228 -11
  136. package/scripts/build-css.ts +15 -9
  137. package/src/components/index.tsx +443 -0
  138. package/src/components/ui/accordion.tsx +99 -0
  139. package/src/components/ui/alert-dialog.tsx +239 -0
  140. package/src/components/ui/alert.tsx +81 -0
  141. package/src/components/ui/avatar.tsx +130 -0
  142. package/src/components/ui/badge.tsx +57 -0
  143. package/src/components/ui/button.tsx +69 -37
  144. package/src/components/ui/calendar.tsx +252 -0
  145. package/src/components/ui/card.tsx +106 -0
  146. package/src/components/ui/checkbox.tsx +111 -0
  147. package/src/components/ui/chip.tsx +65 -0
  148. package/src/components/ui/data-table.tsx +490 -0
  149. package/src/components/ui/date-picker.tsx +133 -0
  150. package/src/components/ui/dialog.tsx +195 -0
  151. package/src/components/ui/drawer.tsx +169 -0
  152. package/src/components/ui/dropdown-menu.tsx +315 -0
  153. package/src/components/ui/empty.tsx +128 -0
  154. package/src/components/ui/field.tsx +273 -0
  155. package/src/components/ui/input-group.tsx +190 -0
  156. package/src/components/ui/input-otp.tsx +90 -0
  157. package/src/components/ui/input.tsx +28 -0
  158. package/src/components/ui/label.tsx +24 -0
  159. package/src/components/ui/pagination.tsx +148 -0
  160. package/src/components/ui/popover.tsx +112 -0
  161. package/src/components/ui/progress.tsx +40 -0
  162. package/src/components/ui/radio-group.tsx +129 -0
  163. package/src/components/ui/select.tsx +201 -0
  164. package/src/components/ui/separator.tsx +26 -0
  165. package/src/components/ui/sheet.tsx +182 -0
  166. package/src/components/ui/skeleton.tsx +22 -0
  167. package/src/components/ui/sonner.tsx +48 -0
  168. package/src/components/ui/spinner.tsx +41 -0
  169. package/src/components/ui/switch.tsx +126 -0
  170. package/src/components/ui/table.tsx +143 -0
  171. package/src/components/ui/tabs.tsx +119 -0
  172. package/src/components/ui/textarea.tsx +28 -0
  173. package/src/components/ui/toggle-group.tsx +94 -0
  174. package/src/components/ui/toggle.tsx +59 -0
  175. package/src/components/ui/tooltip.tsx +80 -0
  176. package/src/index.ts +15 -3
  177. package/src/lib/colors.ts +74 -0
  178. package/src/lib/slot.tsx +68 -0
  179. package/src/lib/theme-provider.tsx +134 -0
  180. package/src/lib/typography.ts +153 -0
  181. package/src/lib/utils.ts +1 -1
  182. package/src/styles/globals.css +377 -107
  183. package/src/styles/styles-css.ts +1 -1
  184. package/tsup.config.ts +48 -2
  185. package/src/provider/ShadcnProvider.tsx +0 -89
  186. package/src/provider/index.ts +0 -2
@@ -0,0 +1,338 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
35
+ var __export = (target, all) => {
36
+ for (var name in all)
37
+ __defProp(target, name, { get: all[name], enumerable: true });
38
+ };
39
+ var __copyProps = (to, from, except, desc) => {
40
+ if (from && typeof from === "object" || typeof from === "function") {
41
+ for (let key of __getOwnPropNames(from))
42
+ if (!__hasOwnProp.call(to, key) && key !== except)
43
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
44
+ }
45
+ return to;
46
+ };
47
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
48
+
49
+ // src/components/ui/dropdown-menu.tsx
50
+ var dropdown_menu_exports = {};
51
+ __export(dropdown_menu_exports, {
52
+ DropdownMenu: () => DropdownMenu,
53
+ DropdownMenuCheckboxItem: () => DropdownMenuCheckboxItem,
54
+ DropdownMenuContent: () => DropdownMenuContent,
55
+ DropdownMenuGroup: () => DropdownMenuGroup,
56
+ DropdownMenuItem: () => DropdownMenuItem,
57
+ DropdownMenuLabel: () => DropdownMenuLabel,
58
+ DropdownMenuPortal: () => DropdownMenuPortal,
59
+ DropdownMenuRadioGroup: () => DropdownMenuRadioGroup,
60
+ DropdownMenuRadioItem: () => DropdownMenuRadioItem,
61
+ DropdownMenuSeparator: () => DropdownMenuSeparator,
62
+ DropdownMenuShortcut: () => DropdownMenuShortcut,
63
+ DropdownMenuSub: () => DropdownMenuSub,
64
+ DropdownMenuSubContent: () => DropdownMenuSubContent,
65
+ DropdownMenuSubTrigger: () => DropdownMenuSubTrigger,
66
+ DropdownMenuTrigger: () => DropdownMenuTrigger
67
+ });
68
+ module.exports = __toCommonJS(dropdown_menu_exports);
69
+ var import_lucide_react = require("lucide-react");
70
+ var import_menu = require("@base-ui/react/menu");
71
+
72
+ // src/lib/utils.ts
73
+ var import_clsx = require("clsx");
74
+ var import_tailwind_merge = require("tailwind-merge");
75
+ function cn(...inputs) {
76
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
77
+ }
78
+
79
+ // src/lib/theme-provider.tsx
80
+ var import_react = require("react");
81
+ var import_jsx_runtime = require("react/jsx-runtime");
82
+ var ThemeVarsContext = (0, import_react.createContext)({});
83
+ function useThemeVars() {
84
+ return (0, import_react.useContext)(ThemeVarsContext);
85
+ }
86
+
87
+ // src/components/ui/dropdown-menu.tsx
88
+ var import_jsx_runtime2 = require("react/jsx-runtime");
89
+ function DropdownMenu(_a) {
90
+ var props = __objRest(_a, []);
91
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_menu.Menu.Root, __spreadValues({ "data-slot": "dropdown-menu" }, props));
92
+ }
93
+ function DropdownMenuPortal(_a) {
94
+ var props = __objRest(_a, []);
95
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_menu.Menu.Portal, __spreadValues({ "data-slot": "dropdown-menu-portal" }, props));
96
+ }
97
+ function DropdownMenuTrigger(_a) {
98
+ var props = __objRest(_a, []);
99
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
100
+ import_menu.Menu.Trigger,
101
+ __spreadValues({
102
+ "data-slot": "dropdown-menu-trigger"
103
+ }, props)
104
+ );
105
+ }
106
+ function DropdownMenuContent(_a) {
107
+ var _b = _a, {
108
+ className,
109
+ sideOffset = 4,
110
+ style
111
+ } = _b, props = __objRest(_b, [
112
+ "className",
113
+ "sideOffset",
114
+ "style"
115
+ ]);
116
+ const themeVars = useThemeVars();
117
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_menu.Menu.Positioner, { sideOffset, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
118
+ import_menu.Menu.Popup,
119
+ __spreadValues({
120
+ className: cn(
121
+ "z-50 min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-none border bg-popover p-1 text-popover-foreground shadow-md 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 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
122
+ className
123
+ ),
124
+ "data-slot": "dropdown-menu-content",
125
+ style: __spreadValues(__spreadValues({}, themeVars), style)
126
+ }, props)
127
+ ) }) });
128
+ }
129
+ function DropdownMenuGroup(_a) {
130
+ var props = __objRest(_a, []);
131
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_menu.Menu.Group, __spreadValues({ "data-slot": "dropdown-menu-group" }, props));
132
+ }
133
+ function DropdownMenuItem(_a) {
134
+ var _b = _a, {
135
+ className,
136
+ inset,
137
+ variant = "default"
138
+ } = _b, props = __objRest(_b, [
139
+ "className",
140
+ "inset",
141
+ "variant"
142
+ ]);
143
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
144
+ import_menu.Menu.Item,
145
+ __spreadValues({
146
+ className: cn(
147
+ "relative flex cursor-default items-center gap-2 rounded-none px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 data-inset:pl-8 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:text-destructive!",
148
+ className
149
+ ),
150
+ "data-inset": inset,
151
+ "data-slot": "dropdown-menu-item",
152
+ "data-variant": variant
153
+ }, props)
154
+ );
155
+ }
156
+ function DropdownMenuCheckboxItem(_a) {
157
+ var _b = _a, {
158
+ className,
159
+ children,
160
+ checked
161
+ } = _b, props = __objRest(_b, [
162
+ "className",
163
+ "children",
164
+ "checked"
165
+ ]);
166
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
167
+ import_menu.Menu.CheckboxItem,
168
+ __spreadProps(__spreadValues({
169
+ checked,
170
+ className: cn(
171
+ "relative flex cursor-default items-center gap-2 rounded-none py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 data-checked:bg-primary/10 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
172
+ className
173
+ ),
174
+ "data-slot": "dropdown-menu-checkbox-item"
175
+ }, props), {
176
+ children: [
177
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_menu.Menu.CheckboxItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.CheckIcon, { className: "size-4" }) }) }),
178
+ children
179
+ ]
180
+ })
181
+ );
182
+ }
183
+ function DropdownMenuRadioGroup(_a) {
184
+ var props = __objRest(_a, []);
185
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
186
+ import_menu.Menu.RadioGroup,
187
+ __spreadValues({
188
+ "data-slot": "dropdown-menu-radio-group"
189
+ }, props)
190
+ );
191
+ }
192
+ function DropdownMenuRadioItem(_a) {
193
+ var _b = _a, {
194
+ className,
195
+ children
196
+ } = _b, props = __objRest(_b, [
197
+ "className",
198
+ "children"
199
+ ]);
200
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
201
+ import_menu.Menu.RadioItem,
202
+ __spreadProps(__spreadValues({
203
+ className: cn(
204
+ "relative flex cursor-default items-center gap-2 rounded-none py-1.5 pr-2 pl-8 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 data-checked:bg-primary/10 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
205
+ className
206
+ ),
207
+ "data-slot": "dropdown-menu-radio-item"
208
+ }, props), {
209
+ children: [
210
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_menu.Menu.RadioItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.CircleIcon, { className: "size-2 fill-current" }) }) }),
211
+ children
212
+ ]
213
+ })
214
+ );
215
+ }
216
+ function DropdownMenuLabel(_a) {
217
+ var _b = _a, {
218
+ className,
219
+ inset
220
+ } = _b, props = __objRest(_b, [
221
+ "className",
222
+ "inset"
223
+ ]);
224
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
225
+ import_menu.Menu.GroupLabel,
226
+ __spreadValues({
227
+ className: cn(
228
+ "px-2 py-1.5 text-sm font-medium data-inset:pl-8",
229
+ className
230
+ ),
231
+ "data-inset": inset,
232
+ "data-slot": "dropdown-menu-label"
233
+ }, props)
234
+ );
235
+ }
236
+ function DropdownMenuSeparator(_a) {
237
+ var _b = _a, {
238
+ className
239
+ } = _b, props = __objRest(_b, [
240
+ "className"
241
+ ]);
242
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
243
+ import_menu.Menu.Separator,
244
+ __spreadValues({
245
+ className: cn("-mx-1 my-1 h-px bg-border", className),
246
+ "data-slot": "dropdown-menu-separator"
247
+ }, props)
248
+ );
249
+ }
250
+ function DropdownMenuShortcut(_a) {
251
+ var _b = _a, {
252
+ className
253
+ } = _b, props = __objRest(_b, [
254
+ "className"
255
+ ]);
256
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
257
+ "span",
258
+ __spreadValues({
259
+ className: cn(
260
+ "ml-auto text-xs tracking-widest text-muted-foreground",
261
+ className
262
+ ),
263
+ "data-slot": "dropdown-menu-shortcut"
264
+ }, props)
265
+ );
266
+ }
267
+ function DropdownMenuSub(_a) {
268
+ var props = __objRest(_a, []);
269
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_menu.Menu.SubmenuRoot, __spreadValues({ "data-slot": "dropdown-menu-sub" }, props));
270
+ }
271
+ function DropdownMenuSubTrigger(_a) {
272
+ var _b = _a, {
273
+ className,
274
+ inset,
275
+ children
276
+ } = _b, props = __objRest(_b, [
277
+ "className",
278
+ "inset",
279
+ "children"
280
+ ]);
281
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
282
+ import_menu.Menu.SubmenuTrigger,
283
+ __spreadProps(__spreadValues({
284
+ className: cn(
285
+ "flex cursor-default items-center gap-2 rounded-none px-2 py-1.5 text-sm outline-hidden select-none focus:bg-accent focus:text-accent-foreground data-inset:pl-8 data-open:bg-accent data-open:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
286
+ className
287
+ ),
288
+ "data-inset": inset,
289
+ "data-slot": "dropdown-menu-sub-trigger"
290
+ }, props), {
291
+ children: [
292
+ children,
293
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.ChevronRightIcon, { className: "ml-auto size-4" })
294
+ ]
295
+ })
296
+ );
297
+ }
298
+ function DropdownMenuSubContent(_a) {
299
+ var _b = _a, {
300
+ className,
301
+ sideOffset = 0,
302
+ style
303
+ } = _b, props = __objRest(_b, [
304
+ "className",
305
+ "sideOffset",
306
+ "style"
307
+ ]);
308
+ const themeVars = useThemeVars();
309
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_menu.Menu.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_menu.Menu.Positioner, { sideOffset, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
310
+ import_menu.Menu.Popup,
311
+ __spreadValues({
312
+ className: cn(
313
+ "z-50 min-w-[8rem] overflow-hidden rounded-none border bg-popover p-1 text-popover-foreground shadow-lg 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 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
314
+ className
315
+ ),
316
+ "data-slot": "dropdown-menu-sub-content",
317
+ style: __spreadValues(__spreadValues({}, themeVars), style)
318
+ }, props)
319
+ ) }) });
320
+ }
321
+ // Annotate the CommonJS export names for ESM import in node:
322
+ 0 && (module.exports = {
323
+ DropdownMenu,
324
+ DropdownMenuCheckboxItem,
325
+ DropdownMenuContent,
326
+ DropdownMenuGroup,
327
+ DropdownMenuItem,
328
+ DropdownMenuLabel,
329
+ DropdownMenuPortal,
330
+ DropdownMenuRadioGroup,
331
+ DropdownMenuRadioItem,
332
+ DropdownMenuSeparator,
333
+ DropdownMenuShortcut,
334
+ DropdownMenuSub,
335
+ DropdownMenuSubContent,
336
+ DropdownMenuSubTrigger,
337
+ DropdownMenuTrigger
338
+ });
@@ -0,0 +1,38 @@
1
+ import {
2
+ DropdownMenu,
3
+ DropdownMenuCheckboxItem,
4
+ DropdownMenuContent,
5
+ DropdownMenuGroup,
6
+ DropdownMenuItem,
7
+ DropdownMenuLabel,
8
+ DropdownMenuPortal,
9
+ DropdownMenuRadioGroup,
10
+ DropdownMenuRadioItem,
11
+ DropdownMenuSeparator,
12
+ DropdownMenuShortcut,
13
+ DropdownMenuSub,
14
+ DropdownMenuSubContent,
15
+ DropdownMenuSubTrigger,
16
+ DropdownMenuTrigger
17
+ } from "../../chunk-MJIEMGRD.mjs";
18
+ import "../../chunk-OXQQNQZI.mjs";
19
+ import "../../chunk-QOJ2DQD6.mjs";
20
+ import "../../chunk-V7CNWJT3.mjs";
21
+ import "../../chunk-FWCSY2DS.mjs";
22
+ export {
23
+ DropdownMenu,
24
+ DropdownMenuCheckboxItem,
25
+ DropdownMenuContent,
26
+ DropdownMenuGroup,
27
+ DropdownMenuItem,
28
+ DropdownMenuLabel,
29
+ DropdownMenuPortal,
30
+ DropdownMenuRadioGroup,
31
+ DropdownMenuRadioItem,
32
+ DropdownMenuSeparator,
33
+ DropdownMenuShortcut,
34
+ DropdownMenuSub,
35
+ DropdownMenuSubContent,
36
+ DropdownMenuSubTrigger,
37
+ DropdownMenuTrigger
38
+ };
@@ -0,0 +1,173 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
+ var __spreadValues = (a, b) => {
10
+ for (var prop in b || (b = {}))
11
+ if (__hasOwnProp.call(b, prop))
12
+ __defNormalProp(a, prop, b[prop]);
13
+ if (__getOwnPropSymbols)
14
+ for (var prop of __getOwnPropSymbols(b)) {
15
+ if (__propIsEnum.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ }
18
+ return a;
19
+ };
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
32
+ var __export = (target, all) => {
33
+ for (var name in all)
34
+ __defProp(target, name, { get: all[name], enumerable: true });
35
+ };
36
+ var __copyProps = (to, from, except, desc) => {
37
+ if (from && typeof from === "object" || typeof from === "function") {
38
+ for (let key of __getOwnPropNames(from))
39
+ if (!__hasOwnProp.call(to, key) && key !== except)
40
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
41
+ }
42
+ return to;
43
+ };
44
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
45
+
46
+ // src/components/ui/empty.tsx
47
+ var empty_exports = {};
48
+ __export(empty_exports, {
49
+ Empty: () => Empty,
50
+ EmptyContent: () => EmptyContent,
51
+ EmptyDescription: () => EmptyDescription,
52
+ EmptyHeader: () => EmptyHeader,
53
+ EmptyMedia: () => EmptyMedia,
54
+ EmptyTitle: () => EmptyTitle
55
+ });
56
+ module.exports = __toCommonJS(empty_exports);
57
+ var import_class_variance_authority = require("class-variance-authority");
58
+
59
+ // src/lib/utils.ts
60
+ var import_clsx = require("clsx");
61
+ var import_tailwind_merge = require("tailwind-merge");
62
+ function cn(...inputs) {
63
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
64
+ }
65
+
66
+ // src/components/ui/empty.tsx
67
+ var import_jsx_runtime = require("react/jsx-runtime");
68
+ function Empty(_a) {
69
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
70
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
71
+ "div",
72
+ __spreadValues({
73
+ className: cn(
74
+ "flex min-w-0 flex-1 flex-col items-center justify-center gap-6 border border-dashed p-6 text-center text-balance md:p-12",
75
+ className
76
+ ),
77
+ "data-slot": "empty"
78
+ }, props)
79
+ );
80
+ }
81
+ function EmptyHeader(_a) {
82
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
83
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
84
+ "div",
85
+ __spreadValues({
86
+ className: cn(
87
+ "flex max-w-sm flex-col items-center gap-2 text-center",
88
+ className
89
+ ),
90
+ "data-slot": "empty-header"
91
+ }, props)
92
+ );
93
+ }
94
+ var emptyMediaVariants = (0, import_class_variance_authority.cva)(
95
+ "mb-2 flex shrink-0 items-center justify-center [&_svg]:pointer-events-none [&_svg]:shrink-0",
96
+ {
97
+ variants: {
98
+ variant: {
99
+ default: "[&_svg:not([class*='size-'])]:size-10",
100
+ icon: "flex size-10 shrink-0 items-center justify-center text-muted-foreground [&_svg:not([class*='size-'])]:size-6"
101
+ }
102
+ },
103
+ defaultVariants: {
104
+ variant: "default"
105
+ }
106
+ }
107
+ );
108
+ function EmptyMedia(_a) {
109
+ var _b = _a, {
110
+ className,
111
+ variant = "default"
112
+ } = _b, props = __objRest(_b, [
113
+ "className",
114
+ "variant"
115
+ ]);
116
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
117
+ "div",
118
+ __spreadValues({
119
+ className: cn(emptyMediaVariants({ variant, className })),
120
+ "data-slot": "empty-icon",
121
+ "data-variant": variant
122
+ }, props)
123
+ );
124
+ }
125
+ function EmptyTitle(_a) {
126
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
127
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
128
+ "div",
129
+ __spreadValues({
130
+ className: cn("text-lg font-medium tracking-tight", className),
131
+ "data-slot": "empty-title"
132
+ }, props)
133
+ );
134
+ }
135
+ function EmptyDescription(_a) {
136
+ var _b = _a, {
137
+ className
138
+ } = _b, props = __objRest(_b, [
139
+ "className"
140
+ ]);
141
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
142
+ "div",
143
+ __spreadValues({
144
+ className: cn(
145
+ "text-sm/relaxed text-muted-foreground [&>a]:underline [&>a]:underline-offset-4 [&>a:hover]:text-primary",
146
+ className
147
+ ),
148
+ "data-slot": "empty-description"
149
+ }, props)
150
+ );
151
+ }
152
+ function EmptyContent(_a) {
153
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
154
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
155
+ "div",
156
+ __spreadValues({
157
+ className: cn(
158
+ "flex w-full max-w-sm min-w-0 flex-col items-center gap-4 text-sm text-balance",
159
+ className
160
+ ),
161
+ "data-slot": "empty-content"
162
+ }, props)
163
+ );
164
+ }
165
+ // Annotate the CommonJS export names for ESM import in node:
166
+ 0 && (module.exports = {
167
+ Empty,
168
+ EmptyContent,
169
+ EmptyDescription,
170
+ EmptyHeader,
171
+ EmptyMedia,
172
+ EmptyTitle
173
+ });
@@ -0,0 +1,18 @@
1
+ import {
2
+ Empty,
3
+ EmptyContent,
4
+ EmptyDescription,
5
+ EmptyHeader,
6
+ EmptyMedia,
7
+ EmptyTitle
8
+ } from "../../chunk-YN5SYTOO.mjs";
9
+ import "../../chunk-V7CNWJT3.mjs";
10
+ import "../../chunk-FWCSY2DS.mjs";
11
+ export {
12
+ Empty,
13
+ EmptyContent,
14
+ EmptyDescription,
15
+ EmptyHeader,
16
+ EmptyMedia,
17
+ EmptyTitle
18
+ };