@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,178 @@
1
+ "use strict";
2
+ "use client";
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 __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
+ var __objRest = (source, exclude) => {
25
+ var target = {};
26
+ for (var prop in source)
27
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
+ target[prop] = source[prop];
29
+ if (source != null && __getOwnPropSymbols)
30
+ for (var prop of __getOwnPropSymbols(source)) {
31
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
+ target[prop] = source[prop];
33
+ }
34
+ return target;
35
+ };
36
+ var __export = (target, all) => {
37
+ for (var name in all)
38
+ __defProp(target, name, { get: all[name], enumerable: true });
39
+ };
40
+ var __copyProps = (to, from, except, desc) => {
41
+ if (from && typeof from === "object" || typeof from === "function") {
42
+ for (let key of __getOwnPropNames(from))
43
+ if (!__hasOwnProp.call(to, key) && key !== except)
44
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
45
+ }
46
+ return to;
47
+ };
48
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
49
+
50
+ // src/components/ui/switch.tsx
51
+ var switch_exports = {};
52
+ __export(switch_exports, {
53
+ Switch: () => Switch,
54
+ SwitchCard: () => SwitchCard
55
+ });
56
+ module.exports = __toCommonJS(switch_exports);
57
+ var import_react = require("react");
58
+ var import_switch = require("@base-ui/react/switch");
59
+
60
+ // src/lib/utils.ts
61
+ var import_clsx = require("clsx");
62
+ var import_tailwind_merge = require("tailwind-merge");
63
+ function cn(...inputs) {
64
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
65
+ }
66
+
67
+ // src/components/ui/switch.tsx
68
+ var import_jsx_runtime = require("react/jsx-runtime");
69
+ function Switch(_a) {
70
+ var _b = _a, {
71
+ className,
72
+ size = "default"
73
+ } = _b, props = __objRest(_b, [
74
+ "className",
75
+ "size"
76
+ ]);
77
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
78
+ import_switch.Switch.Root,
79
+ __spreadProps(__spreadValues({
80
+ className: cn(
81
+ "peer group/switch inline-flex shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none",
82
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
83
+ "disabled:cursor-not-allowed disabled:opacity-50",
84
+ "data-[size=default]:h-[1.15rem] data-[size=default]:w-8",
85
+ "data-[size=sm]:h-3.5 data-[size=sm]:w-6",
86
+ "data-checked:bg-primary data-unchecked:bg-input",
87
+ "aria-invalid:data-checked:bg-destructive aria-invalid:border-destructive",
88
+ "dark:data-unchecked:bg-input/80",
89
+ className
90
+ ),
91
+ "data-size": size,
92
+ "data-slot": "switch"
93
+ }, props), {
94
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
95
+ import_switch.Switch.Thumb,
96
+ {
97
+ className: cn(
98
+ "pointer-events-none block rounded-full bg-background ring-0 transition-transform",
99
+ "group-data-[size=default]/switch:size-4 group-data-[size=sm]/switch:size-3",
100
+ "data-checked:translate-x-[calc(100%-2px)] data-unchecked:translate-x-0",
101
+ "dark:data-checked:bg-primary-foreground dark:data-unchecked:bg-foreground"
102
+ ),
103
+ "data-slot": "switch-thumb"
104
+ }
105
+ )
106
+ })
107
+ );
108
+ }
109
+ function SwitchCard(_a) {
110
+ var _b = _a, {
111
+ className,
112
+ checked,
113
+ defaultChecked,
114
+ onCheckedChange,
115
+ disabled,
116
+ error,
117
+ label,
118
+ description,
119
+ switchPosition = "right",
120
+ size
121
+ } = _b, props = __objRest(_b, [
122
+ "className",
123
+ "checked",
124
+ "defaultChecked",
125
+ "onCheckedChange",
126
+ "disabled",
127
+ "error",
128
+ "label",
129
+ "description",
130
+ "switchPosition",
131
+ "size"
132
+ ]);
133
+ const [internalChecked, setInternalChecked] = (0, import_react.useState)(defaultChecked != null ? defaultChecked : false);
134
+ const isChecked = checked != null ? checked : internalChecked;
135
+ const switchElement = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
136
+ Switch,
137
+ __spreadValues({
138
+ "aria-invalid": error || void 0,
139
+ checked: isChecked,
140
+ className: "shrink-0",
141
+ disabled,
142
+ onCheckedChange: (value, event) => {
143
+ setInternalChecked(value);
144
+ onCheckedChange == null ? void 0 : onCheckedChange(value, event);
145
+ },
146
+ size
147
+ }, props)
148
+ );
149
+ const contentElement = /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-1", children: [
150
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm font-medium leading-none", children: label }),
151
+ description ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm text-muted-foreground", children: description }) : null
152
+ ] });
153
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
154
+ "label",
155
+ {
156
+ className: cn(
157
+ "flex items-center gap-3 border border-border p-4 font-sans transition-colors cursor-pointer",
158
+ switchPosition === "right" && "justify-between",
159
+ disabled && "cursor-not-allowed opacity-50",
160
+ error ? ["border-destructive", isChecked && "bg-destructive/5"] : isChecked && "border-primary bg-primary/5",
161
+ className
162
+ ),
163
+ "data-slot": "switch-card",
164
+ children: switchPosition === "left" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
165
+ switchElement,
166
+ contentElement
167
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
168
+ contentElement,
169
+ switchElement
170
+ ] })
171
+ }
172
+ );
173
+ }
174
+ // Annotate the CommonJS export names for ESM import in node:
175
+ 0 && (module.exports = {
176
+ Switch,
177
+ SwitchCard
178
+ });
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import {
3
+ Switch,
4
+ SwitchCard
5
+ } from "../../chunk-VYMHBV6D.mjs";
6
+ import "../../chunk-V7CNWJT3.mjs";
7
+ import "../../chunk-FWCSY2DS.mjs";
8
+ export {
9
+ Switch,
10
+ SwitchCard
11
+ };
@@ -0,0 +1,184 @@
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/table.tsx
47
+ var table_exports = {};
48
+ __export(table_exports, {
49
+ Table: () => Table,
50
+ TableBody: () => TableBody,
51
+ TableCaption: () => TableCaption,
52
+ TableCell: () => TableCell,
53
+ TableFooter: () => TableFooter,
54
+ TableHead: () => TableHead,
55
+ TableHeader: () => TableHeader,
56
+ TableRow: () => TableRow
57
+ });
58
+ module.exports = __toCommonJS(table_exports);
59
+
60
+ // src/lib/utils.ts
61
+ var import_clsx = require("clsx");
62
+ var import_tailwind_merge = require("tailwind-merge");
63
+ function cn(...inputs) {
64
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
65
+ }
66
+
67
+ // src/components/ui/table.tsx
68
+ var import_jsx_runtime = require("react/jsx-runtime");
69
+ function Table(_a) {
70
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
71
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
+ "div",
73
+ {
74
+ className: "relative w-full overflow-x-auto",
75
+ "data-slot": "table-container",
76
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
77
+ "table",
78
+ __spreadValues({
79
+ className: cn("w-full caption-bottom text-sm", className),
80
+ "data-slot": "table"
81
+ }, props)
82
+ )
83
+ }
84
+ );
85
+ }
86
+ function TableHeader(_a) {
87
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
88
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
89
+ "thead",
90
+ __spreadValues({
91
+ className: cn("[&_tr]:border-b", className),
92
+ "data-slot": "table-header"
93
+ }, props)
94
+ );
95
+ }
96
+ function TableBody(_a) {
97
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
98
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
99
+ "tbody",
100
+ __spreadValues({
101
+ className: cn("[&_tr:last-child]:border-0", className),
102
+ "data-slot": "table-body"
103
+ }, props)
104
+ );
105
+ }
106
+ function TableFooter(_a) {
107
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
108
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
109
+ "tfoot",
110
+ __spreadValues({
111
+ className: cn(
112
+ "border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
113
+ className
114
+ ),
115
+ "data-slot": "table-footer"
116
+ }, props)
117
+ );
118
+ }
119
+ function TableRow(_a) {
120
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
121
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
122
+ "tr",
123
+ __spreadValues({
124
+ className: cn(
125
+ "border-b transition-[background-color,opacity] hover:bg-muted/50 data-[state=selected]:bg-primary/10",
126
+ className
127
+ ),
128
+ "data-slot": "table-row"
129
+ }, props)
130
+ );
131
+ }
132
+ function TableHead(_a) {
133
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
134
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
135
+ "th",
136
+ __spreadValues({
137
+ className: cn(
138
+ "h-10 px-4 text-left align-middle font-medium whitespace-nowrap text-muted-foreground",
139
+ "[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
140
+ className
141
+ ),
142
+ "data-slot": "table-head"
143
+ }, props)
144
+ );
145
+ }
146
+ function TableCell(_a) {
147
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
148
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
149
+ "td",
150
+ __spreadValues({
151
+ className: cn(
152
+ "px-4 py-3 align-middle whitespace-nowrap",
153
+ "[&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",
154
+ className
155
+ ),
156
+ "data-slot": "table-cell"
157
+ }, props)
158
+ );
159
+ }
160
+ function TableCaption(_a) {
161
+ var _b = _a, {
162
+ className
163
+ } = _b, props = __objRest(_b, [
164
+ "className"
165
+ ]);
166
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
167
+ "caption",
168
+ __spreadValues({
169
+ className: cn("mt-4 text-sm text-muted-foreground", className),
170
+ "data-slot": "table-caption"
171
+ }, props)
172
+ );
173
+ }
174
+ // Annotate the CommonJS export names for ESM import in node:
175
+ 0 && (module.exports = {
176
+ Table,
177
+ TableBody,
178
+ TableCaption,
179
+ TableCell,
180
+ TableFooter,
181
+ TableHead,
182
+ TableHeader,
183
+ TableRow
184
+ });
@@ -0,0 +1,22 @@
1
+ import {
2
+ Table,
3
+ TableBody,
4
+ TableCaption,
5
+ TableCell,
6
+ TableFooter,
7
+ TableHead,
8
+ TableHeader,
9
+ TableRow
10
+ } from "../../chunk-BGP2N52Z.mjs";
11
+ import "../../chunk-V7CNWJT3.mjs";
12
+ import "../../chunk-FWCSY2DS.mjs";
13
+ export {
14
+ Table,
15
+ TableBody,
16
+ TableCaption,
17
+ TableCell,
18
+ TableFooter,
19
+ TableHead,
20
+ TableHeader,
21
+ TableRow
22
+ };
@@ -0,0 +1,181 @@
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/tabs.tsx
47
+ var tabs_exports = {};
48
+ __export(tabs_exports, {
49
+ Tabs: () => Tabs,
50
+ TabsContent: () => TabsContent,
51
+ TabsList: () => TabsList,
52
+ TabsTrigger: () => TabsTrigger,
53
+ tabsListVariants: () => tabsListVariants
54
+ });
55
+ module.exports = __toCommonJS(tabs_exports);
56
+ var import_class_variance_authority = require("class-variance-authority");
57
+ var import_tabs = require("@base-ui/react/tabs");
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/tabs.tsx
67
+ var import_jsx_runtime = require("react/jsx-runtime");
68
+ function Tabs(_a) {
69
+ var _b = _a, {
70
+ className,
71
+ orientation = "horizontal"
72
+ } = _b, props = __objRest(_b, [
73
+ "className",
74
+ "orientation"
75
+ ]);
76
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
77
+ import_tabs.Tabs.Root,
78
+ __spreadValues({
79
+ className: cn(
80
+ "group/tabs flex gap-2 data-[orientation=horizontal]:flex-col",
81
+ className
82
+ ),
83
+ "data-orientation": orientation,
84
+ "data-slot": "tabs"
85
+ }, props)
86
+ );
87
+ }
88
+ var tabsListVariants = (0, import_class_variance_authority.cva)(
89
+ "group/tabs-list inline-flex w-fit items-center justify-center gap-1 rounded-none p-[3px] text-muted-foreground group-data-[orientation=horizontal]/tabs:h-9 group-data-[orientation=vertical]/tabs:h-fit group-data-[orientation=vertical]/tabs:flex-col",
90
+ {
91
+ variants: {
92
+ variant: {
93
+ default: "bg-muted",
94
+ line: "bg-transparent p-0"
95
+ }
96
+ },
97
+ defaultVariants: {
98
+ variant: "default"
99
+ }
100
+ }
101
+ );
102
+ function TabsList(_a) {
103
+ var _b = _a, {
104
+ className,
105
+ variant = "default"
106
+ } = _b, props = __objRest(_b, [
107
+ "className",
108
+ "variant"
109
+ ]);
110
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
111
+ import_tabs.Tabs.List,
112
+ __spreadValues({
113
+ className: cn(tabsListVariants({ variant }), className),
114
+ "data-slot": "tabs-list",
115
+ "data-variant": variant
116
+ }, props)
117
+ );
118
+ }
119
+ function TabsTrigger(_a) {
120
+ var _b = _a, {
121
+ className
122
+ } = _b, props = __objRest(_b, [
123
+ "className"
124
+ ]);
125
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
126
+ import_tabs.Tabs.Tab,
127
+ __spreadValues({
128
+ className: cn(
129
+ // Base layout & typography
130
+ "relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap",
131
+ "rounded-none border border-transparent px-1.5 py-1 text-sm font-medium",
132
+ "text-muted-foreground transition-all",
133
+ // Vertical orientation
134
+ "group-data-[orientation=vertical]/tabs:w-full group-data-[orientation=vertical]/tabs:justify-start",
135
+ // Hover & focus
136
+ "hover:text-foreground",
137
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 focus-visible:outline-1 focus-visible:outline-ring",
138
+ // Disabled
139
+ "disabled:pointer-events-none disabled:opacity-50",
140
+ // Active state — Default variant: primary/10 bg + subtle shadow
141
+ // Base UI uses data-active attribute for the active/selected tab
142
+ "data-active:bg-primary/10 data-active:text-foreground",
143
+ "group-data-[variant=default]/tabs-list:data-active:shadow-sm",
144
+ // Active state — Line variant: suppress bg & shadow
145
+ "group-data-[variant=line]/tabs-list:data-active:bg-transparent",
146
+ "group-data-[variant=line]/tabs-list:data-active:shadow-none",
147
+ // Indicator pseudo-element (visible only for Line variant, active state)
148
+ "after:absolute after:bg-primary after:opacity-0 after:transition-opacity",
149
+ "group-data-[orientation=horizontal]/tabs:after:inset-x-0 group-data-[orientation=horizontal]/tabs:after:bottom-[-5px] group-data-[orientation=horizontal]/tabs:after:h-0.5",
150
+ "group-data-[orientation=vertical]/tabs:after:inset-y-0 group-data-[orientation=vertical]/tabs:after:-right-1 group-data-[orientation=vertical]/tabs:after:w-0.5",
151
+ "group-data-[variant=line]/tabs-list:data-active:after:opacity-100",
152
+ // SVG icons
153
+ "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
154
+ className
155
+ ),
156
+ "data-slot": "tabs-trigger"
157
+ }, props)
158
+ );
159
+ }
160
+ function TabsContent(_a) {
161
+ var _b = _a, {
162
+ className
163
+ } = _b, props = __objRest(_b, [
164
+ "className"
165
+ ]);
166
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
167
+ import_tabs.Tabs.Panel,
168
+ __spreadValues({
169
+ className: cn("flex-1 outline-none", className),
170
+ "data-slot": "tabs-content"
171
+ }, props)
172
+ );
173
+ }
174
+ // Annotate the CommonJS export names for ESM import in node:
175
+ 0 && (module.exports = {
176
+ Tabs,
177
+ TabsContent,
178
+ TabsList,
179
+ TabsTrigger,
180
+ tabsListVariants
181
+ });
@@ -0,0 +1,16 @@
1
+ import {
2
+ Tabs,
3
+ TabsContent,
4
+ TabsList,
5
+ TabsTrigger,
6
+ tabsListVariants
7
+ } from "../../chunk-RL772EH7.mjs";
8
+ import "../../chunk-V7CNWJT3.mjs";
9
+ import "../../chunk-FWCSY2DS.mjs";
10
+ export {
11
+ Tabs,
12
+ TabsContent,
13
+ TabsList,
14
+ TabsTrigger,
15
+ tabsListVariants
16
+ };
@@ -0,0 +1,79 @@
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/textarea.tsx
47
+ var textarea_exports = {};
48
+ __export(textarea_exports, {
49
+ Textarea: () => Textarea
50
+ });
51
+ module.exports = __toCommonJS(textarea_exports);
52
+
53
+ // src/lib/utils.ts
54
+ var import_clsx = require("clsx");
55
+ var import_tailwind_merge = require("tailwind-merge");
56
+ function cn(...inputs) {
57
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
58
+ }
59
+
60
+ // src/components/ui/textarea.tsx
61
+ var import_jsx_runtime = require("react/jsx-runtime");
62
+ function Textarea(_a) {
63
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
64
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
65
+ "textarea",
66
+ __spreadValues({
67
+ className: cn(
68
+ // WealthX: removed shadow-xs (flat panels), added font-sans
69
+ "flex field-sizing-content min-h-16 w-full border border-input bg-transparent px-3 py-2 text-base font-sans transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/20 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
70
+ className
71
+ ),
72
+ "data-slot": "textarea"
73
+ }, props)
74
+ );
75
+ }
76
+ // Annotate the CommonJS export names for ESM import in node:
77
+ 0 && (module.exports = {
78
+ Textarea
79
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ Textarea
3
+ } from "../../chunk-GPRJQ24C.mjs";
4
+ import "../../chunk-V7CNWJT3.mjs";
5
+ import "../../chunk-FWCSY2DS.mjs";
6
+ export {
7
+ Textarea
8
+ };