@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,413 @@
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/alert-dialog.tsx
60
+ var alert_dialog_exports = {};
61
+ __export(alert_dialog_exports, {
62
+ AlertDialog: () => AlertDialog,
63
+ AlertDialogAction: () => AlertDialogAction,
64
+ AlertDialogCancel: () => AlertDialogCancel,
65
+ AlertDialogContent: () => AlertDialogContent,
66
+ AlertDialogDescription: () => AlertDialogDescription,
67
+ AlertDialogFooter: () => AlertDialogFooter,
68
+ AlertDialogHeader: () => AlertDialogHeader,
69
+ AlertDialogMedia: () => AlertDialogMedia,
70
+ AlertDialogOverlay: () => AlertDialogOverlay,
71
+ AlertDialogPortal: () => AlertDialogPortal,
72
+ AlertDialogTitle: () => AlertDialogTitle,
73
+ AlertDialogTrigger: () => AlertDialogTrigger
74
+ });
75
+ module.exports = __toCommonJS(alert_dialog_exports);
76
+ var import_alert_dialog = require("@base-ui/react/alert-dialog");
77
+
78
+ // src/lib/utils.ts
79
+ var import_clsx = require("clsx");
80
+ var import_tailwind_merge = require("tailwind-merge");
81
+ function cn(...inputs) {
82
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
83
+ }
84
+
85
+ // src/lib/theme-provider.tsx
86
+ var import_react = require("react");
87
+ var import_jsx_runtime = require("react/jsx-runtime");
88
+ var ThemeVarsContext = (0, import_react.createContext)({});
89
+ function useThemeVars() {
90
+ return (0, import_react.useContext)(ThemeVarsContext);
91
+ }
92
+
93
+ // src/components/ui/button.tsx
94
+ var import_react2 = require("react");
95
+ var import_class_variance_authority = require("class-variance-authority");
96
+ var import_lucide_react = require("lucide-react");
97
+
98
+ // src/lib/slot.tsx
99
+ var React2 = __toESM(require("react"));
100
+ function mergeRefs(...refs) {
101
+ return (value) => {
102
+ for (const ref of refs) {
103
+ if (typeof ref === "function") ref(value);
104
+ else if (ref !== null)
105
+ ref.current = value;
106
+ }
107
+ };
108
+ }
109
+ var Slot = React2.forwardRef(
110
+ (_a, forwardedRef) => {
111
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
112
+ const child = React2.Children.only(children);
113
+ if (!React2.isValidElement(child)) return null;
114
+ const childProps = child.props;
115
+ const merged = __spreadValues({}, props);
116
+ for (const key of Object.keys(childProps)) {
117
+ if (key === "className") {
118
+ merged.className = [props.className, childProps.className].filter(Boolean).join(" ");
119
+ } else if (key === "style") {
120
+ merged.style = __spreadValues(__spreadValues({}, props.style), childProps.style);
121
+ } else if (key.startsWith("on") && typeof childProps[key] === "function") {
122
+ const parentHandler = props[key];
123
+ if (typeof parentHandler === "function") {
124
+ merged[key] = (...args) => {
125
+ childProps[key](...args);
126
+ parentHandler(...args);
127
+ };
128
+ } else {
129
+ merged[key] = childProps[key];
130
+ }
131
+ } else {
132
+ merged[key] = childProps[key];
133
+ }
134
+ }
135
+ const childRef = child.ref;
136
+ merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
137
+ return React2.cloneElement(
138
+ child,
139
+ merged
140
+ );
141
+ }
142
+ );
143
+ Slot.displayName = "Slot";
144
+
145
+ // src/components/ui/button.tsx
146
+ var import_jsx_runtime2 = require("react/jsx-runtime");
147
+ var buttonVariants = (0, import_class_variance_authority.cva)(
148
+ "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",
149
+ {
150
+ variants: {
151
+ variant: {
152
+ default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
153
+ secondary: "bg-brand-secondary text-brand-secondary-foreground shadow-xs hover:bg-brand-secondary/80 focus-visible:ring-brand-secondary/30",
154
+ 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",
155
+ 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",
156
+ "outline-primary": "border border-primary text-foreground bg-transparent shadow-xs hover:bg-primary/5 focus-visible:ring-primary/50",
157
+ "outline-secondary": "border border-brand-secondary text-brand-secondary bg-transparent shadow-xs hover:bg-brand-secondary/10 focus-visible:ring-brand-secondary/30",
158
+ ghost: "hover:bg-accent hover:text-accent-foreground hover:shadow-xs dark:hover:bg-accent/50",
159
+ link: "text-primary underline-offset-4 hover:underline"
160
+ },
161
+ size: {
162
+ default: "h-9 px-4 py-2 has-[>svg]:px-3",
163
+ xs: "h-6 gap-1 px-2 text-xs has-[>svg]:px-1.5 [&_svg:not([class*='size-'])]:size-3",
164
+ sm: "h-8 gap-1.5 px-3 has-[>svg]:px-2.5",
165
+ lg: "h-10 px-6 has-[>svg]:px-4",
166
+ icon: "size-9",
167
+ "icon-xs": "size-6 [&_svg:not([class*='size-'])]:size-3",
168
+ "icon-sm": "size-8",
169
+ "icon-lg": "size-10"
170
+ }
171
+ },
172
+ defaultVariants: {
173
+ variant: "default",
174
+ size: "default"
175
+ }
176
+ }
177
+ );
178
+ var Button = (0, import_react2.forwardRef)(function Button2(_a, ref) {
179
+ var _b = _a, {
180
+ className,
181
+ variant,
182
+ size,
183
+ asChild = false,
184
+ loading = false,
185
+ disabled,
186
+ children
187
+ } = _b, props = __objRest(_b, [
188
+ "className",
189
+ "variant",
190
+ "size",
191
+ "asChild",
192
+ "loading",
193
+ "disabled",
194
+ "children"
195
+ ]);
196
+ const Comp = asChild ? Slot : "button";
197
+ const isIconOnly = size === "icon" || size === "icon-xs" || size === "icon-sm" || size === "icon-lg";
198
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
199
+ Comp,
200
+ __spreadProps(__spreadValues({
201
+ className: cn(buttonVariants({ variant, size, className })),
202
+ "data-size": size,
203
+ "data-slot": "button",
204
+ "data-variant": variant,
205
+ disabled: loading || disabled,
206
+ ref
207
+ }, props), {
208
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_jsx_runtime2.Fragment, { children: [
209
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.Loader2, { "aria-hidden": "true", className: "animate-spin" }),
210
+ !isIconOnly && children
211
+ ] }) : children
212
+ })
213
+ );
214
+ });
215
+
216
+ // src/components/ui/alert-dialog.tsx
217
+ var import_jsx_runtime3 = require("react/jsx-runtime");
218
+ function AlertDialog(_a) {
219
+ var props = __objRest(_a, []);
220
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_alert_dialog.AlertDialog.Root, __spreadValues({ "data-slot": "alert-dialog" }, props));
221
+ }
222
+ function AlertDialogTrigger(_a) {
223
+ var props = __objRest(_a, []);
224
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_alert_dialog.AlertDialog.Trigger, __spreadValues({ "data-slot": "alert-dialog-trigger" }, props));
225
+ }
226
+ function AlertDialogPortal(_a) {
227
+ var props = __objRest(_a, []);
228
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_alert_dialog.AlertDialog.Portal, __spreadValues({ "data-slot": "alert-dialog-portal" }, props));
229
+ }
230
+ function AlertDialogOverlay(_a) {
231
+ var _b = _a, {
232
+ className
233
+ } = _b, props = __objRest(_b, [
234
+ "className"
235
+ ]);
236
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
237
+ import_alert_dialog.AlertDialog.Backdrop,
238
+ __spreadValues({
239
+ className: cn(
240
+ // WealthX: foreground/50 scrim — matches Figma foreground token at 50% opacity
241
+ "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",
242
+ className
243
+ ),
244
+ "data-slot": "alert-dialog-overlay"
245
+ }, props)
246
+ );
247
+ }
248
+ function AlertDialogContent(_a) {
249
+ var _b = _a, {
250
+ className,
251
+ size = "default",
252
+ style
253
+ } = _b, props = __objRest(_b, [
254
+ "className",
255
+ "size",
256
+ "style"
257
+ ]);
258
+ const themeVars = useThemeVars();
259
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(AlertDialogPortal, { children: [
260
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(AlertDialogOverlay, {}),
261
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
262
+ import_alert_dialog.AlertDialog.Popup,
263
+ __spreadValues({
264
+ className: cn(
265
+ // WealthX: removed rounded-lg (sharp corners), shadow-lg (flat panels)
266
+ "group/alert-dialog-content fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 duration-200 data-[size=sm]:max-w-xs 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 data-[size=default]:sm:max-w-lg",
267
+ className
268
+ ),
269
+ "data-size": size,
270
+ "data-slot": "alert-dialog-content",
271
+ style: __spreadValues(__spreadValues({}, themeVars), style)
272
+ }, props)
273
+ )
274
+ ] });
275
+ }
276
+ function AlertDialogHeader(_a) {
277
+ var _b = _a, {
278
+ className
279
+ } = _b, props = __objRest(_b, [
280
+ "className"
281
+ ]);
282
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
283
+ "div",
284
+ __spreadValues({
285
+ className: cn(
286
+ "grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",
287
+ className
288
+ ),
289
+ "data-slot": "alert-dialog-header"
290
+ }, props)
291
+ );
292
+ }
293
+ function AlertDialogFooter(_a) {
294
+ var _b = _a, {
295
+ className
296
+ } = _b, props = __objRest(_b, [
297
+ "className"
298
+ ]);
299
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
300
+ "div",
301
+ __spreadValues({
302
+ className: cn(
303
+ // WealthX: always row, right-aligned, separator above footer (matches Figma)
304
+ "flex flex-row justify-end gap-2 border-t border-border pt-4",
305
+ className
306
+ ),
307
+ "data-slot": "alert-dialog-footer"
308
+ }, props)
309
+ );
310
+ }
311
+ function AlertDialogTitle(_a) {
312
+ var _b = _a, {
313
+ className
314
+ } = _b, props = __objRest(_b, [
315
+ "className"
316
+ ]);
317
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
318
+ import_alert_dialog.AlertDialog.Title,
319
+ __spreadValues({
320
+ className: cn(
321
+ "text-lg font-semibold sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
322
+ className
323
+ ),
324
+ "data-slot": "alert-dialog-title"
325
+ }, props)
326
+ );
327
+ }
328
+ function AlertDialogDescription(_a) {
329
+ var _b = _a, {
330
+ className
331
+ } = _b, props = __objRest(_b, [
332
+ "className"
333
+ ]);
334
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
335
+ import_alert_dialog.AlertDialog.Description,
336
+ __spreadValues({
337
+ className: cn(
338
+ "text-sm text-muted-foreground sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
339
+ className
340
+ ),
341
+ "data-slot": "alert-dialog-description"
342
+ }, props)
343
+ );
344
+ }
345
+ function AlertDialogMedia(_a) {
346
+ var _b = _a, {
347
+ className
348
+ } = _b, props = __objRest(_b, [
349
+ "className"
350
+ ]);
351
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
352
+ "div",
353
+ __spreadValues({
354
+ className: cn(
355
+ // WealthX: borderless icon slot — size-10 default, size-8 sm
356
+ "mb-2 inline-flex size-10 items-center justify-center group-data-[size=sm]/alert-dialog-content:size-8 sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-5",
357
+ className
358
+ ),
359
+ "data-slot": "alert-dialog-media"
360
+ }, props)
361
+ );
362
+ }
363
+ function AlertDialogAction(_a) {
364
+ var _b = _a, {
365
+ className,
366
+ variant = "default",
367
+ size = "default"
368
+ } = _b, props = __objRest(_b, [
369
+ "className",
370
+ "variant",
371
+ "size"
372
+ ]);
373
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
374
+ import_alert_dialog.AlertDialog.Close,
375
+ __spreadValues({
376
+ className: cn(buttonVariants({ variant, size }), className),
377
+ "data-slot": "alert-dialog-action"
378
+ }, props)
379
+ );
380
+ }
381
+ function AlertDialogCancel(_a) {
382
+ var _b = _a, {
383
+ className,
384
+ variant = "outline",
385
+ size = "default"
386
+ } = _b, props = __objRest(_b, [
387
+ "className",
388
+ "variant",
389
+ "size"
390
+ ]);
391
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
392
+ import_alert_dialog.AlertDialog.Close,
393
+ __spreadValues({
394
+ className: cn(buttonVariants({ variant, size }), className),
395
+ "data-slot": "alert-dialog-cancel"
396
+ }, props)
397
+ );
398
+ }
399
+ // Annotate the CommonJS export names for ESM import in node:
400
+ 0 && (module.exports = {
401
+ AlertDialog,
402
+ AlertDialogAction,
403
+ AlertDialogCancel,
404
+ AlertDialogContent,
405
+ AlertDialogDescription,
406
+ AlertDialogFooter,
407
+ AlertDialogHeader,
408
+ AlertDialogMedia,
409
+ AlertDialogOverlay,
410
+ AlertDialogPortal,
411
+ AlertDialogTitle,
412
+ AlertDialogTrigger
413
+ });
@@ -0,0 +1,34 @@
1
+ import {
2
+ AlertDialog,
3
+ AlertDialogAction,
4
+ AlertDialogCancel,
5
+ AlertDialogContent,
6
+ AlertDialogDescription,
7
+ AlertDialogFooter,
8
+ AlertDialogHeader,
9
+ AlertDialogMedia,
10
+ AlertDialogOverlay,
11
+ AlertDialogPortal,
12
+ AlertDialogTitle,
13
+ AlertDialogTrigger
14
+ } from "../../chunk-NWZ46DJL.mjs";
15
+ import "../../chunk-IAOOZCUY.mjs";
16
+ import "../../chunk-DBHJ5KC3.mjs";
17
+ import "../../chunk-OXQQNQZI.mjs";
18
+ import "../../chunk-QOJ2DQD6.mjs";
19
+ import "../../chunk-V7CNWJT3.mjs";
20
+ import "../../chunk-FWCSY2DS.mjs";
21
+ export {
22
+ AlertDialog,
23
+ AlertDialogAction,
24
+ AlertDialogCancel,
25
+ AlertDialogContent,
26
+ AlertDialogDescription,
27
+ AlertDialogFooter,
28
+ AlertDialogHeader,
29
+ AlertDialogMedia,
30
+ AlertDialogOverlay,
31
+ AlertDialogPortal,
32
+ AlertDialogTitle,
33
+ AlertDialogTrigger
34
+ };
@@ -0,0 +1,134 @@
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/alert.tsx
47
+ var alert_exports = {};
48
+ __export(alert_exports, {
49
+ Alert: () => Alert,
50
+ AlertDescription: () => AlertDescription,
51
+ AlertTitle: () => AlertTitle
52
+ });
53
+ module.exports = __toCommonJS(alert_exports);
54
+ var import_class_variance_authority = require("class-variance-authority");
55
+
56
+ // src/lib/utils.ts
57
+ var import_clsx = require("clsx");
58
+ var import_tailwind_merge = require("tailwind-merge");
59
+ function cn(...inputs) {
60
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
61
+ }
62
+
63
+ // src/components/ui/alert.tsx
64
+ var import_jsx_runtime = require("react/jsx-runtime");
65
+ var alertVariants = (0, import_class_variance_authority.cva)(
66
+ "relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
67
+ {
68
+ variants: {
69
+ variant: {
70
+ default: "border-border bg-card text-card-foreground",
71
+ destructive: "border-destructive/40 bg-destructive/10 text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-destructive",
72
+ warning: "border-warning/40 bg-warning/10 text-warning *:data-[slot=alert-description]:text-warning/90 [&>svg]:text-warning",
73
+ success: "border-success/40 bg-success/10 text-success *:data-[slot=alert-description]:text-success/90 [&>svg]:text-success",
74
+ info: "border-info/40 bg-info/10 text-info *:data-[slot=alert-description]:text-info/90 [&>svg]:text-info"
75
+ }
76
+ },
77
+ defaultVariants: {
78
+ variant: "default"
79
+ }
80
+ }
81
+ );
82
+ function Alert(_a) {
83
+ var _b = _a, {
84
+ className,
85
+ variant
86
+ } = _b, props = __objRest(_b, [
87
+ "className",
88
+ "variant"
89
+ ]);
90
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
91
+ "div",
92
+ __spreadValues({
93
+ className: cn(alertVariants({ variant }), className),
94
+ "data-slot": "alert",
95
+ role: "alert"
96
+ }, props)
97
+ );
98
+ }
99
+ function AlertTitle(_a) {
100
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
101
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
102
+ "div",
103
+ __spreadValues({
104
+ className: cn(
105
+ "col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",
106
+ className
107
+ ),
108
+ "data-slot": "alert-title"
109
+ }, props)
110
+ );
111
+ }
112
+ function AlertDescription(_a) {
113
+ var _b = _a, {
114
+ className
115
+ } = _b, props = __objRest(_b, [
116
+ "className"
117
+ ]);
118
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
119
+ "div",
120
+ __spreadValues({
121
+ className: cn(
122
+ "col-start-2 grid justify-items-start gap-1 text-sm text-muted-foreground [&_p]:leading-relaxed",
123
+ className
124
+ ),
125
+ "data-slot": "alert-description"
126
+ }, props)
127
+ );
128
+ }
129
+ // Annotate the CommonJS export names for ESM import in node:
130
+ 0 && (module.exports = {
131
+ Alert,
132
+ AlertDescription,
133
+ AlertTitle
134
+ });
@@ -0,0 +1,12 @@
1
+ import {
2
+ Alert,
3
+ AlertDescription,
4
+ AlertTitle
5
+ } from "../../chunk-CZ3BW5GL.mjs";
6
+ import "../../chunk-V7CNWJT3.mjs";
7
+ import "../../chunk-FWCSY2DS.mjs";
8
+ export {
9
+ Alert,
10
+ AlertDescription,
11
+ AlertTitle
12
+ };