@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,378 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/components/ui/dialog.tsx
60
+ var dialog_exports = {};
61
+ __export(dialog_exports, {
62
+ Dialog: () => Dialog,
63
+ DialogClose: () => DialogClose,
64
+ DialogContent: () => DialogContent,
65
+ DialogDescription: () => DialogDescription,
66
+ DialogFooter: () => DialogFooter,
67
+ DialogHeader: () => DialogHeader,
68
+ DialogOverlay: () => DialogOverlay,
69
+ DialogPortal: () => DialogPortal,
70
+ DialogTitle: () => DialogTitle,
71
+ DialogTrigger: () => DialogTrigger
72
+ });
73
+ module.exports = __toCommonJS(dialog_exports);
74
+ var import_lucide_react2 = require("lucide-react");
75
+ var import_dialog = require("@base-ui/react/dialog");
76
+
77
+ // src/lib/utils.ts
78
+ var import_clsx = require("clsx");
79
+ var import_tailwind_merge = require("tailwind-merge");
80
+ function cn(...inputs) {
81
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
82
+ }
83
+
84
+ // src/lib/theme-provider.tsx
85
+ var import_react = require("react");
86
+ var import_jsx_runtime = require("react/jsx-runtime");
87
+ var ThemeVarsContext = (0, import_react.createContext)({});
88
+ function useThemeVars() {
89
+ return (0, import_react.useContext)(ThemeVarsContext);
90
+ }
91
+
92
+ // src/components/ui/button.tsx
93
+ var import_react2 = require("react");
94
+ var import_class_variance_authority = require("class-variance-authority");
95
+ var import_lucide_react = require("lucide-react");
96
+
97
+ // src/lib/slot.tsx
98
+ var React2 = __toESM(require("react"));
99
+ function mergeRefs(...refs) {
100
+ return (value) => {
101
+ for (const ref of refs) {
102
+ if (typeof ref === "function") ref(value);
103
+ else if (ref !== null)
104
+ ref.current = value;
105
+ }
106
+ };
107
+ }
108
+ var Slot = React2.forwardRef(
109
+ (_a, forwardedRef) => {
110
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
111
+ const child = React2.Children.only(children);
112
+ if (!React2.isValidElement(child)) return null;
113
+ const childProps = child.props;
114
+ const merged = __spreadValues({}, props);
115
+ for (const key of Object.keys(childProps)) {
116
+ if (key === "className") {
117
+ merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
118
+ } else if (key === "style") {
119
+ merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
120
+ } else if (key.startsWith("on") && typeof childProps[key] === "function") {
121
+ const parentHandler = props[key];
122
+ if (typeof parentHandler === "function") {
123
+ merged[key] = (...args) => {
124
+ childProps[key](...args);
125
+ parentHandler(...args);
126
+ };
127
+ } else {
128
+ merged[key] = childProps[key];
129
+ }
130
+ } else {
131
+ merged[key] = childProps[key];
132
+ }
133
+ }
134
+ const childRef = child.ref;
135
+ merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
136
+ return React2.cloneElement(
137
+ child,
138
+ merged
139
+ );
140
+ }
141
+ );
142
+ Slot.displayName = "Slot";
143
+
144
+ // src/components/ui/button.tsx
145
+ var import_jsx_runtime2 = require("react/jsx-runtime");
146
+ var buttonVariants = (0, import_class_variance_authority.cva)(
147
+ "inline-flex shrink-0 cursor-pointer items-center justify-center gap-2 font-sans text-sm font-medium whitespace-nowrap transition-all active:scale-[0.98] 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",
148
+ {
149
+ variants: {
150
+ variant: {
151
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
152
+ secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
153
+ destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",
154
+ outline: "border border-input bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
155
+ "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
156
+ "outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
157
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs dark:hover:bg-accent/50",
158
+ link: "text-primary underline-offset-4 hover:underline"
159
+ },
160
+ size: {
161
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
162
+ xs: "h-6 gap-1 px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
163
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
164
+ lg: "h-10 px-6 has-[>svg]:px-4",
165
+ icon: "size-9",
166
+ "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
167
+ "icon-sm": "size-8",
168
+ "icon-lg": "size-10"
169
+ }
170
+ },
171
+ defaultVariants: {
172
+ variant: "default",
173
+ size: "default"
174
+ }
175
+ }
176
+ );
177
+ var Button = (0, import_react2.forwardRef)(function Button2(_a, ref) {
178
+ var _b = _a, {
179
+ className,
180
+ variant,
181
+ size,
182
+ asChild = false,
183
+ loading = false,
184
+ disabled,
185
+ children
186
+ } = _b, props = __objRest(_b, [
187
+ "className",
188
+ "variant",
189
+ "size",
190
+ "asChild",
191
+ "loading",
192
+ "disabled",
193
+ "children"
194
+ ]);
195
+ const Comp = asChild ? Slot : "button";
196
+ const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
197
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
198
+ Comp,
199
+ __spreadProps(__spreadValues({
200
+ className: cn(buttonVariants({ variant, size, className })),
201
+ "data-size": size,
202
+ "data-slot": "button",
203
+ "data-variant": variant,
204
+ disabled: loading || disabled,
205
+ ref
206
+ }, props), {
207
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
208
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
209
+ !isIconOnly && children
210
+ ] }) : children
211
+ })
212
+ );
213
+ });
214
+
215
+ // src/components/ui/dialog.tsx
216
+ var import_jsx_runtime3 = require("react/jsx-runtime");
217
+ function Dialog(_a) {
218
+ var props = __objRest(_a, []);
219
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dialog.Dialog.Root, __spreadValues({ "data-slot": "dialog" }, props));
220
+ }
221
+ function DialogTrigger(_a) {
222
+ var props = __objRest(_a, []);
223
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dialog.Dialog.Trigger, __spreadValues({ "data-slot": "dialog-trigger" }, props));
224
+ }
225
+ function DialogPortal(_a) {
226
+ var props = __objRest(_a, []);
227
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dialog.Dialog.Portal, __spreadValues({ "data-slot": "dialog-portal" }, props));
228
+ }
229
+ function DialogClose(_a) {
230
+ var props = __objRest(_a, []);
231
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_dialog.Dialog.Close, __spreadValues({ "data-slot": "dialog-close" }, props));
232
+ }
233
+ function DialogOverlay(_a) {
234
+ var _b = _a, {
235
+ className
236
+ } = _b, props = __objRest(_b, [
237
+ "className"
238
+ ]);
239
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
240
+ import_dialog.Dialog.Backdrop,
241
+ __spreadValues({
242
+ className: cn(
243
+ // WealthX: foreground/50 scrim (matches Figma — foreground token at 50% opacity)
244
+ "fixed inset-0 z-50 bg-foreground/50 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0",
245
+ className
246
+ ),
247
+ "data-slot": "dialog-overlay"
248
+ }, props)
249
+ );
250
+ }
251
+ function DialogContent(_a) {
252
+ var _b = _a, {
253
+ className,
254
+ children,
255
+ showCloseButton = true,
256
+ style
257
+ } = _b, props = __objRest(_b, [
258
+ "className",
259
+ "children",
260
+ "showCloseButton",
261
+ "style"
262
+ ]);
263
+ const themeVars = useThemeVars();
264
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(DialogPortal, { children: [
265
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(DialogOverlay, {}),
266
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
267
+ import_dialog.Dialog.Popup,
268
+ __spreadProps(__spreadValues({
269
+ className: cn(
270
+ // WealthX: removed rounded-lg (sharp corners), shadow-lg (flat panels), foreground/50 scrim via DialogOverlay
271
+ "fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 duration-200 outline-none 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 sm:max-w-lg",
272
+ className
273
+ ),
274
+ "data-slot": "dialog-content",
275
+ style: __spreadValues(__spreadValues({}, themeVars), style)
276
+ }, props), {
277
+ children: [
278
+ children,
279
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
280
+ import_dialog.Dialog.Close,
281
+ {
282
+ className: "absolute top-4 right-4 transition-colors hover:bg-foreground/5 focus:outline-hidden focus:ring-2 focus:ring-border focus:ring-offset-0 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
283
+ "data-slot": "dialog-close",
284
+ children: [
285
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_lucide_react2.XIcon, {}),
286
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { className: "sr-only", children: "Close" })
287
+ ]
288
+ }
289
+ ) : null
290
+ ]
291
+ })
292
+ )
293
+ ] });
294
+ }
295
+ function DialogHeader(_a) {
296
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
297
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
298
+ "div",
299
+ __spreadValues({
300
+ className: cn("flex flex-col gap-1.5", className),
301
+ "data-slot": "dialog-header"
302
+ }, props)
303
+ );
304
+ }
305
+ function DialogFooter(_a) {
306
+ var _b = _a, {
307
+ className,
308
+ showCloseButton = false,
309
+ children
310
+ } = _b, props = __objRest(_b, [
311
+ "className",
312
+ "showCloseButton",
313
+ "children"
314
+ ]);
315
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
316
+ "div",
317
+ __spreadProps(__spreadValues({
318
+ className: cn(
319
+ // WealthX: always row layout, right-aligned, separator above footer
320
+ "flex flex-row justify-end gap-2 border-t border-border pt-4",
321
+ className
322
+ ),
323
+ "data-slot": "dialog-footer"
324
+ }, props), {
325
+ children: [
326
+ children,
327
+ showCloseButton ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
328
+ import_dialog.Dialog.Close,
329
+ {
330
+ className: cn(buttonVariants({ variant: "outline" })),
331
+ children: "Close"
332
+ }
333
+ ) : null
334
+ ]
335
+ })
336
+ );
337
+ }
338
+ function DialogTitle(_a) {
339
+ var _b = _a, {
340
+ className
341
+ } = _b, props = __objRest(_b, [
342
+ "className"
343
+ ]);
344
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
345
+ import_dialog.Dialog.Title,
346
+ __spreadValues({
347
+ className: cn("text-lg leading-none font-semibold", className),
348
+ "data-slot": "dialog-title"
349
+ }, props)
350
+ );
351
+ }
352
+ function DialogDescription(_a) {
353
+ var _b = _a, {
354
+ className
355
+ } = _b, props = __objRest(_b, [
356
+ "className"
357
+ ]);
358
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
359
+ import_dialog.Dialog.Description,
360
+ __spreadValues({
361
+ className: cn("text-sm text-muted-foreground", className),
362
+ "data-slot": "dialog-description"
363
+ }, props)
364
+ );
365
+ }
366
+ // Annotate the CommonJS export names for ESM import in node:
367
+ 0 && (module.exports = {
368
+ Dialog,
369
+ DialogClose,
370
+ DialogContent,
371
+ DialogDescription,
372
+ DialogFooter,
373
+ DialogHeader,
374
+ DialogOverlay,
375
+ DialogPortal,
376
+ DialogTitle,
377
+ DialogTrigger
378
+ });
@@ -0,0 +1,30 @@
1
+ import {
2
+ Dialog,
3
+ DialogClose,
4
+ DialogContent,
5
+ DialogDescription,
6
+ DialogFooter,
7
+ DialogHeader,
8
+ DialogOverlay,
9
+ DialogPortal,
10
+ DialogTitle,
11
+ DialogTrigger
12
+ } from "../../chunk-7LDIMXGM.mjs";
13
+ import "../../chunk-IAOOZCUY.mjs";
14
+ import "../../chunk-DBHJ5KC3.mjs";
15
+ import "../../chunk-OXQQNQZI.mjs";
16
+ import "../../chunk-QOJ2DQD6.mjs";
17
+ import "../../chunk-V7CNWJT3.mjs";
18
+ import "../../chunk-FWCSY2DS.mjs";
19
+ export {
20
+ Dialog,
21
+ DialogClose,
22
+ DialogContent,
23
+ DialogDescription,
24
+ DialogFooter,
25
+ DialogHeader,
26
+ DialogOverlay,
27
+ DialogPortal,
28
+ DialogTitle,
29
+ DialogTrigger
30
+ };
@@ -0,0 +1,213 @@
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/drawer.tsx
50
+ var drawer_exports = {};
51
+ __export(drawer_exports, {
52
+ Drawer: () => Drawer,
53
+ DrawerClose: () => DrawerClose,
54
+ DrawerContent: () => DrawerContent,
55
+ DrawerDescription: () => DrawerDescription,
56
+ DrawerFooter: () => DrawerFooter,
57
+ DrawerHeader: () => DrawerHeader,
58
+ DrawerOverlay: () => DrawerOverlay,
59
+ DrawerPortal: () => DrawerPortal,
60
+ DrawerTitle: () => DrawerTitle,
61
+ DrawerTrigger: () => DrawerTrigger
62
+ });
63
+ module.exports = __toCommonJS(drawer_exports);
64
+ var import_vaul = require("vaul");
65
+
66
+ // src/lib/utils.ts
67
+ var import_clsx = require("clsx");
68
+ var import_tailwind_merge = require("tailwind-merge");
69
+ function cn(...inputs) {
70
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
71
+ }
72
+
73
+ // src/lib/theme-provider.tsx
74
+ var import_react = require("react");
75
+ var import_jsx_runtime = require("react/jsx-runtime");
76
+ var ThemeVarsContext = (0, import_react.createContext)({});
77
+ function useThemeVars() {
78
+ return (0, import_react.useContext)(ThemeVarsContext);
79
+ }
80
+
81
+ // src/components/ui/drawer.tsx
82
+ var import_jsx_runtime2 = require("react/jsx-runtime");
83
+ function Drawer(_a) {
84
+ var props = __objRest(_a, []);
85
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_vaul.Drawer.Root, __spreadValues({ "data-slot": "drawer" }, props));
86
+ }
87
+ function DrawerTrigger(_a) {
88
+ var props = __objRest(_a, []);
89
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_vaul.Drawer.Trigger, __spreadValues({ "data-slot": "drawer-trigger" }, props));
90
+ }
91
+ function DrawerPortal(_a) {
92
+ var props = __objRest(_a, []);
93
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_vaul.Drawer.Portal, __spreadValues({ "data-slot": "drawer-portal" }, props));
94
+ }
95
+ function DrawerClose(_a) {
96
+ var props = __objRest(_a, []);
97
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_vaul.Drawer.Close, __spreadValues({ "data-slot": "drawer-close" }, props));
98
+ }
99
+ function DrawerOverlay(_a) {
100
+ var _b = _a, {
101
+ className
102
+ } = _b, props = __objRest(_b, [
103
+ "className"
104
+ ]);
105
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
106
+ import_vaul.Drawer.Overlay,
107
+ __spreadValues({
108
+ className: cn(
109
+ // WealthX: foreground/50 scrim — matches Figma overlay token
110
+ "fixed inset-0 z-50 bg-foreground/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:fill-mode-forwards data-[state=open]:animate-in data-[state=open]:fade-in-0",
111
+ className
112
+ ),
113
+ "data-slot": "drawer-overlay"
114
+ }, props)
115
+ );
116
+ }
117
+ function DrawerContent(_a) {
118
+ var _b = _a, {
119
+ className,
120
+ children,
121
+ style
122
+ } = _b, props = __objRest(_b, [
123
+ "className",
124
+ "children",
125
+ "style"
126
+ ]);
127
+ const themeVars = useThemeVars();
128
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(DrawerPortal, { "data-slot": "drawer-portal", children: [
129
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(DrawerOverlay, {}),
130
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
131
+ import_vaul.Drawer.Content,
132
+ __spreadProps(__spreadValues({
133
+ className: cn(
134
+ "group/drawer-content fixed z-50 flex h-auto flex-col bg-background",
135
+ // WealthX: no rounded corners (Figma: sharp edges)
136
+ "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:border-b",
137
+ "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:border-t",
138
+ "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
139
+ "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
140
+ className
141
+ ),
142
+ "data-slot": "drawer-content",
143
+ style: __spreadValues(__spreadValues({}, themeVars), style)
144
+ }, props), {
145
+ children: [
146
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("div", { className: "mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block group-data-[vaul-drawer-direction=top]/drawer-content:block" }),
147
+ children
148
+ ]
149
+ })
150
+ )
151
+ ] });
152
+ }
153
+ function DrawerHeader(_a) {
154
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
155
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
156
+ "div",
157
+ __spreadValues({
158
+ className: cn("flex flex-col gap-1 p-4", className),
159
+ "data-slot": "drawer-header"
160
+ }, props)
161
+ );
162
+ }
163
+ function DrawerFooter(_a) {
164
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
165
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
166
+ "div",
167
+ __spreadValues({
168
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
169
+ "data-slot": "drawer-footer"
170
+ }, props)
171
+ );
172
+ }
173
+ function DrawerTitle(_a) {
174
+ var _b = _a, {
175
+ className
176
+ } = _b, props = __objRest(_b, [
177
+ "className"
178
+ ]);
179
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
180
+ import_vaul.Drawer.Title,
181
+ __spreadValues({
182
+ className: cn("text-lg font-semibold text-foreground", className),
183
+ "data-slot": "drawer-title"
184
+ }, props)
185
+ );
186
+ }
187
+ function DrawerDescription(_a) {
188
+ var _b = _a, {
189
+ className
190
+ } = _b, props = __objRest(_b, [
191
+ "className"
192
+ ]);
193
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
194
+ import_vaul.Drawer.Description,
195
+ __spreadValues({
196
+ className: cn("text-sm text-muted-foreground", className),
197
+ "data-slot": "drawer-description"
198
+ }, props)
199
+ );
200
+ }
201
+ // Annotate the CommonJS export names for ESM import in node:
202
+ 0 && (module.exports = {
203
+ Drawer,
204
+ DrawerClose,
205
+ DrawerContent,
206
+ DrawerDescription,
207
+ DrawerFooter,
208
+ DrawerHeader,
209
+ DrawerOverlay,
210
+ DrawerPortal,
211
+ DrawerTitle,
212
+ DrawerTrigger
213
+ });
@@ -0,0 +1,28 @@
1
+ import {
2
+ Drawer,
3
+ DrawerClose,
4
+ DrawerContent,
5
+ DrawerDescription,
6
+ DrawerFooter,
7
+ DrawerHeader,
8
+ DrawerOverlay,
9
+ DrawerPortal,
10
+ DrawerTitle,
11
+ DrawerTrigger
12
+ } from "../../chunk-6AFMNC42.mjs";
13
+ import "../../chunk-OXQQNQZI.mjs";
14
+ import "../../chunk-QOJ2DQD6.mjs";
15
+ import "../../chunk-V7CNWJT3.mjs";
16
+ import "../../chunk-FWCSY2DS.mjs";
17
+ export {
18
+ Drawer,
19
+ DrawerClose,
20
+ DrawerContent,
21
+ DrawerDescription,
22
+ DrawerFooter,
23
+ DrawerHeader,
24
+ DrawerOverlay,
25
+ DrawerPortal,
26
+ DrawerTitle,
27
+ DrawerTrigger
28
+ };