@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,97 @@
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/progress.tsx
50
+ var progress_exports = {};
51
+ __export(progress_exports, {
52
+ Progress: () => Progress
53
+ });
54
+ module.exports = __toCommonJS(progress_exports);
55
+ var import_progress = require("@base-ui/react/progress");
56
+
57
+ // src/lib/utils.ts
58
+ var import_clsx = require("clsx");
59
+ var import_tailwind_merge = require("tailwind-merge");
60
+ function cn(...inputs) {
61
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
62
+ }
63
+
64
+ // src/components/ui/progress.tsx
65
+ var import_jsx_runtime = require("react/jsx-runtime");
66
+ function Progress(_a) {
67
+ var _b = _a, {
68
+ className,
69
+ value
70
+ } = _b, props = __objRest(_b, [
71
+ "className",
72
+ "value"
73
+ ]);
74
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
75
+ import_progress.Progress.Root,
76
+ __spreadProps(__spreadValues({
77
+ className: cn(
78
+ "relative h-2 w-full overflow-hidden bg-muted",
79
+ className
80
+ ),
81
+ "data-slot": "progress",
82
+ value
83
+ }, props), {
84
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_progress.Progress.Track, { className: "h-full", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
85
+ import_progress.Progress.Indicator,
86
+ {
87
+ className: "h-full bg-primary transition-all",
88
+ "data-slot": "progress-indicator"
89
+ }
90
+ ) })
91
+ })
92
+ );
93
+ }
94
+ // Annotate the CommonJS export names for ESM import in node:
95
+ 0 && (module.exports = {
96
+ Progress
97
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ Progress
3
+ } from "../../chunk-BBJBJSXQ.mjs";
4
+ import "../../chunk-V7CNWJT3.mjs";
5
+ import "../../chunk-FWCSY2DS.mjs";
6
+ export {
7
+ Progress
8
+ };
@@ -0,0 +1,178 @@
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/radio-group.tsx
50
+ var radio_group_exports = {};
51
+ __export(radio_group_exports, {
52
+ RadioGroup: () => RadioGroup,
53
+ RadioGroupCard: () => RadioGroupCard,
54
+ RadioGroupItem: () => RadioGroupItem
55
+ });
56
+ module.exports = __toCommonJS(radio_group_exports);
57
+ var import_lucide_react = require("lucide-react");
58
+ var import_radio_group = require("@base-ui/react/radio-group");
59
+ var import_radio = require("@base-ui/react/radio");
60
+
61
+ // src/lib/utils.ts
62
+ var import_clsx = require("clsx");
63
+ var import_tailwind_merge = require("tailwind-merge");
64
+ function cn(...inputs) {
65
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
66
+ }
67
+
68
+ // src/components/ui/radio-group.tsx
69
+ var import_jsx_runtime = require("react/jsx-runtime");
70
+ var CIRCLE_BASE = "inline-flex items-center justify-center aspect-square size-4 shrink-0 rounded-full border border-primary bg-background";
71
+ var INDICATOR_DOT = "size-2 fill-background text-background";
72
+ function RadioGroup(_a) {
73
+ var _b = _a, {
74
+ className
75
+ } = _b, props = __objRest(_b, [
76
+ "className"
77
+ ]);
78
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
79
+ import_radio_group.RadioGroup,
80
+ __spreadValues({
81
+ className: cn("grid gap-3", className),
82
+ "data-slot": "radio-group"
83
+ }, props)
84
+ );
85
+ }
86
+ function RadioGroupItem(_a) {
87
+ var _b = _a, {
88
+ className
89
+ } = _b, props = __objRest(_b, [
90
+ "className"
91
+ ]);
92
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
93
+ import_radio.Radio.Root,
94
+ __spreadProps(__spreadValues({
95
+ className: cn(
96
+ CIRCLE_BASE,
97
+ "transition-all outline-none",
98
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
99
+ "disabled:cursor-not-allowed disabled:opacity-50",
100
+ "data-checked:bg-primary",
101
+ "aria-invalid:border-destructive aria-invalid:ring-destructive/20",
102
+ "aria-invalid:data-checked:border-destructive aria-invalid:data-checked:bg-destructive",
103
+ "dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
104
+ className
105
+ ),
106
+ "data-slot": "radio-group-item"
107
+ }, props), {
108
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
109
+ import_radio.Radio.Indicator,
110
+ {
111
+ "data-slot": "radio-group-indicator",
112
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CircleIcon, { className: INDICATOR_DOT })
113
+ }
114
+ )
115
+ })
116
+ );
117
+ }
118
+ function RadioGroupCard(_a) {
119
+ var _b = _a, {
120
+ className,
121
+ value,
122
+ disabled,
123
+ error,
124
+ label,
125
+ description
126
+ } = _b, props = __objRest(_b, [
127
+ "className",
128
+ "value",
129
+ "disabled",
130
+ "error",
131
+ "label",
132
+ "description"
133
+ ]);
134
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
135
+ import_radio.Radio.Root,
136
+ __spreadProps(__spreadValues({
137
+ "aria-invalid": error || void 0,
138
+ className: cn(
139
+ "group/card flex items-center gap-3 border border-border p-4 font-sans transition-colors text-left cursor-pointer outline-none",
140
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50",
141
+ "disabled:cursor-not-allowed disabled:opacity-50",
142
+ "data-checked:border-primary data-checked:bg-primary/5",
143
+ "aria-invalid:border-destructive",
144
+ "aria-invalid:data-checked:border-destructive aria-invalid:data-checked:bg-destructive/5",
145
+ className
146
+ ),
147
+ "data-slot": "radio-group-card",
148
+ disabled,
149
+ value
150
+ }, props), {
151
+ children: [
152
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
153
+ "div",
154
+ {
155
+ className: cn(
156
+ CIRCLE_BASE,
157
+ "transition-colors",
158
+ "group-data-[checked]/card:bg-primary",
159
+ "group-aria-invalid/card:border-destructive",
160
+ "group-aria-invalid/card:group-data-[checked]/card:border-destructive group-aria-invalid/card:group-data-[checked]/card:bg-destructive"
161
+ ),
162
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_radio.Radio.Indicator, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_lucide_react.CircleIcon, { className: INDICATOR_DOT }) })
163
+ }
164
+ ),
165
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col gap-1", children: [
166
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm font-medium leading-none", children: label }),
167
+ description ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-sm text-muted-foreground", children: description }) : null
168
+ ] })
169
+ ]
170
+ })
171
+ );
172
+ }
173
+ // Annotate the CommonJS export names for ESM import in node:
174
+ 0 && (module.exports = {
175
+ RadioGroup,
176
+ RadioGroupCard,
177
+ RadioGroupItem
178
+ });
@@ -0,0 +1,12 @@
1
+ import {
2
+ RadioGroup,
3
+ RadioGroupCard,
4
+ RadioGroupItem
5
+ } from "../../chunk-JU2RUWHF.mjs";
6
+ import "../../chunk-V7CNWJT3.mjs";
7
+ import "../../chunk-FWCSY2DS.mjs";
8
+ export {
9
+ RadioGroup,
10
+ RadioGroupCard,
11
+ RadioGroupItem
12
+ };
@@ -0,0 +1,262 @@
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/select.tsx
50
+ var select_exports = {};
51
+ __export(select_exports, {
52
+ Select: () => Select,
53
+ SelectContent: () => SelectContent,
54
+ SelectGroup: () => SelectGroup,
55
+ SelectItem: () => SelectItem,
56
+ SelectLabel: () => SelectLabel,
57
+ SelectScrollDownButton: () => SelectScrollDownButton,
58
+ SelectScrollUpButton: () => SelectScrollUpButton,
59
+ SelectSeparator: () => SelectSeparator,
60
+ SelectTrigger: () => SelectTrigger,
61
+ SelectValue: () => SelectValue
62
+ });
63
+ module.exports = __toCommonJS(select_exports);
64
+ var import_lucide_react = require("lucide-react");
65
+ var import_select = require("@base-ui/react/select");
66
+
67
+ // src/lib/utils.ts
68
+ var import_clsx = require("clsx");
69
+ var import_tailwind_merge = require("tailwind-merge");
70
+ function cn(...inputs) {
71
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
72
+ }
73
+
74
+ // src/lib/theme-provider.tsx
75
+ var import_react = require("react");
76
+ var import_jsx_runtime = require("react/jsx-runtime");
77
+ var ThemeVarsContext = (0, import_react.createContext)({});
78
+ function useThemeVars() {
79
+ return (0, import_react.useContext)(ThemeVarsContext);
80
+ }
81
+
82
+ // src/components/ui/select.tsx
83
+ var import_jsx_runtime2 = require("react/jsx-runtime");
84
+ function Select(_a) {
85
+ var props = __objRest(_a, []);
86
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_select.Select.Root, __spreadValues({ "data-slot": "select" }, props));
87
+ }
88
+ function SelectGroup(_a) {
89
+ var props = __objRest(_a, []);
90
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_select.Select.Group, __spreadValues({ "data-slot": "select-group" }, props));
91
+ }
92
+ function SelectValue(_a) {
93
+ var props = __objRest(_a, []);
94
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_select.Select.Value, __spreadValues({ "data-slot": "select-value" }, props));
95
+ }
96
+ function SelectTrigger(_a) {
97
+ var _b = _a, {
98
+ className,
99
+ size = "default",
100
+ children
101
+ } = _b, props = __objRest(_b, [
102
+ "className",
103
+ "size",
104
+ "children"
105
+ ]);
106
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
107
+ import_select.Select.Trigger,
108
+ __spreadProps(__spreadValues({
109
+ className: cn(
110
+ "flex w-fit items-center justify-between gap-2 border border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:border-primary focus-visible:ring-[3px] focus-visible:ring-primary/20 data-popup-open:border-primary data-popup-open:ring-[3px] data-popup-open:ring-primary/20 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground",
111
+ className
112
+ ),
113
+ "data-size": size,
114
+ "data-slot": "select-trigger"
115
+ }, props), {
116
+ children: [
117
+ children,
118
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_select.Select.Icon, { className: "transition-transform duration-200 data-popup-open:rotate-180", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.ChevronDownIcon, { className: "size-4 opacity-50" }) })
119
+ ]
120
+ })
121
+ );
122
+ }
123
+ function SelectContent(_a) {
124
+ var _b = _a, {
125
+ className,
126
+ children,
127
+ style
128
+ } = _b, props = __objRest(_b, [
129
+ "className",
130
+ "children",
131
+ "style"
132
+ ]);
133
+ const themeVars = useThemeVars();
134
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_select.Select.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_select.Select.Positioner, { align: "start", alignItemWithTrigger: false, sideOffset: 4, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
135
+ import_select.Select.Popup,
136
+ __spreadProps(__spreadValues({
137
+ className: cn(
138
+ "relative z-50 max-h-[var(--available-height)] min-w-[8rem] overflow-x-hidden overflow-y-auto border bg-popover p-1 text-popover-foreground shadow-md data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-ending-style:animate-out data-ending-style:fade-out-0 data-ending-style:zoom-out-95 data-ending-style:fill-mode-forwards data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95",
139
+ className
140
+ ),
141
+ "data-slot": "select-content",
142
+ style: __spreadValues(__spreadValues({}, themeVars), style)
143
+ }, props), {
144
+ children: [
145
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SelectScrollUpButton, {}),
146
+ children,
147
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(SelectScrollDownButton, {})
148
+ ]
149
+ })
150
+ ) }) });
151
+ }
152
+ function SelectLabel(_a) {
153
+ var _b = _a, {
154
+ className
155
+ } = _b, props = __objRest(_b, [
156
+ "className"
157
+ ]);
158
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
159
+ import_select.Select.GroupLabel,
160
+ __spreadValues({
161
+ className: cn("px-2 py-1.5 text-xs font-semibold text-muted-foreground", className),
162
+ "data-slot": "select-label"
163
+ }, props)
164
+ );
165
+ }
166
+ function SelectItem(_a) {
167
+ var _b = _a, {
168
+ className,
169
+ children
170
+ } = _b, props = __objRest(_b, [
171
+ "className",
172
+ "children"
173
+ ]);
174
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
175
+ import_select.Select.Item,
176
+ __spreadProps(__spreadValues({
177
+ className: cn(
178
+ "relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-highlighted:bg-primary/5 data-highlighted:text-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
179
+ className
180
+ ),
181
+ "data-slot": "select-item"
182
+ }, props), {
183
+ children: [
184
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
185
+ "span",
186
+ {
187
+ className: "absolute right-2 flex size-3.5 items-center justify-center",
188
+ "data-slot": "select-item-indicator",
189
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_select.Select.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.CheckIcon, { className: "size-4" }) })
190
+ }
191
+ ),
192
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_select.Select.ItemText, { children })
193
+ ]
194
+ })
195
+ );
196
+ }
197
+ function SelectSeparator(_a) {
198
+ var _b = _a, {
199
+ className
200
+ } = _b, props = __objRest(_b, [
201
+ "className"
202
+ ]);
203
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
204
+ "div",
205
+ __spreadValues({
206
+ className: cn("pointer-events-none -mx-1 my-1 h-px bg-border", className),
207
+ "data-slot": "select-separator",
208
+ role: "separator"
209
+ }, props)
210
+ );
211
+ }
212
+ function SelectScrollUpButton(_a) {
213
+ var _b = _a, {
214
+ className
215
+ } = _b, props = __objRest(_b, [
216
+ "className"
217
+ ]);
218
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
219
+ import_select.Select.ScrollUpArrow,
220
+ __spreadProps(__spreadValues({
221
+ className: cn(
222
+ "flex cursor-default items-center justify-center py-1",
223
+ className
224
+ ),
225
+ "data-slot": "select-scroll-up-button"
226
+ }, props), {
227
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.ChevronUpIcon, { className: "size-4" })
228
+ })
229
+ );
230
+ }
231
+ function SelectScrollDownButton(_a) {
232
+ var _b = _a, {
233
+ className
234
+ } = _b, props = __objRest(_b, [
235
+ "className"
236
+ ]);
237
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
238
+ import_select.Select.ScrollDownArrow,
239
+ __spreadProps(__spreadValues({
240
+ className: cn(
241
+ "flex cursor-default items-center justify-center py-1",
242
+ className
243
+ ),
244
+ "data-slot": "select-scroll-down-button"
245
+ }, props), {
246
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_lucide_react.ChevronDownIcon, { className: "size-4" })
247
+ })
248
+ );
249
+ }
250
+ // Annotate the CommonJS export names for ESM import in node:
251
+ 0 && (module.exports = {
252
+ Select,
253
+ SelectContent,
254
+ SelectGroup,
255
+ SelectItem,
256
+ SelectLabel,
257
+ SelectScrollDownButton,
258
+ SelectScrollUpButton,
259
+ SelectSeparator,
260
+ SelectTrigger,
261
+ SelectValue
262
+ });
@@ -0,0 +1,28 @@
1
+ import {
2
+ Select,
3
+ SelectContent,
4
+ SelectGroup,
5
+ SelectItem,
6
+ SelectLabel,
7
+ SelectScrollDownButton,
8
+ SelectScrollUpButton,
9
+ SelectSeparator,
10
+ SelectTrigger,
11
+ SelectValue
12
+ } from "../../chunk-VZ2NR7L3.mjs";
13
+ import "../../chunk-OXQQNQZI.mjs";
14
+ import "../../chunk-QOJ2DQD6.mjs";
15
+ import "../../chunk-V7CNWJT3.mjs";
16
+ import "../../chunk-FWCSY2DS.mjs";
17
+ export {
18
+ Select,
19
+ SelectContent,
20
+ SelectGroup,
21
+ SelectItem,
22
+ SelectLabel,
23
+ SelectScrollDownButton,
24
+ SelectScrollUpButton,
25
+ SelectSeparator,
26
+ SelectTrigger,
27
+ SelectValue
28
+ };
@@ -0,0 +1,86 @@
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/separator.tsx
47
+ var separator_exports = {};
48
+ __export(separator_exports, {
49
+ Separator: () => Separator
50
+ });
51
+ module.exports = __toCommonJS(separator_exports);
52
+ var import_separator = require("@base-ui/react/separator");
53
+
54
+ // src/lib/utils.ts
55
+ var import_clsx = require("clsx");
56
+ var import_tailwind_merge = require("tailwind-merge");
57
+ function cn(...inputs) {
58
+ return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
59
+ }
60
+
61
+ // src/components/ui/separator.tsx
62
+ var import_jsx_runtime = require("react/jsx-runtime");
63
+ function Separator(_a) {
64
+ var _b = _a, {
65
+ className,
66
+ orientation = "horizontal"
67
+ } = _b, props = __objRest(_b, [
68
+ "className",
69
+ "orientation"
70
+ ]);
71
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
72
+ import_separator.Separator,
73
+ __spreadValues({
74
+ className: cn(
75
+ "shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
76
+ className
77
+ ),
78
+ "data-orientation": orientation,
79
+ "data-slot": "separator"
80
+ }, props)
81
+ );
82
+ }
83
+ // Annotate the CommonJS export names for ESM import in node:
84
+ 0 && (module.exports = {
85
+ Separator
86
+ });
@@ -0,0 +1,8 @@
1
+ import {
2
+ Separator
3
+ } from "../../chunk-55CEW76V.mjs";
4
+ import "../../chunk-V7CNWJT3.mjs";
5
+ import "../../chunk-FWCSY2DS.mjs";
6
+ export {
7
+ Separator
8
+ };