@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.
- package/.turbo/turbo-build.log +160 -0
- package/CHANGELOG.md +13 -0
- package/CHANGES.md +345 -0
- package/dist/chunk-2WZVSBAY.mjs +232 -0
- package/dist/chunk-2Y7YJKPE.mjs +47 -0
- package/dist/chunk-3U7SD3MS.mjs +55 -0
- package/dist/chunk-3VQNJ235.mjs +114 -0
- package/dist/chunk-55CEW76V.mjs +35 -0
- package/dist/chunk-6AFMNC42.mjs +146 -0
- package/dist/chunk-6OJF6XRN.mjs +117 -0
- package/dist/chunk-7LDIMXGM.mjs +181 -0
- package/dist/chunk-AMJ23O53.mjs +122 -0
- package/dist/chunk-BBJBJSXQ.mjs +44 -0
- package/dist/chunk-BGP2N52Z.mjs +126 -0
- package/dist/chunk-BMFN37JH.mjs +41 -0
- package/dist/chunk-CGOKTPXU.mjs +79 -0
- package/dist/chunk-CZ3BW5GL.mjs +81 -0
- package/dist/chunk-DBHJ5KC3.mjs +55 -0
- package/dist/chunk-DDPA2XXS.mjs +97 -0
- package/dist/chunk-DS2AMHN2.mjs +30 -0
- package/dist/chunk-E3K6O4FZ.mjs +57 -0
- package/dist/chunk-FWCSY2DS.mjs +37 -0
- package/dist/chunk-GPRJQ24C.mjs +28 -0
- package/dist/chunk-HS7TFG7V.mjs +24 -0
- package/dist/chunk-HUVTPUV2.mjs +256 -0
- package/dist/chunk-IAOOZCUY.mjs +90 -0
- package/dist/chunk-JF4PHPD5.mjs +111 -0
- package/dist/chunk-JU2RUWHF.mjs +123 -0
- package/dist/chunk-KKHTJNMM.mjs +86 -0
- package/dist/chunk-MJIEMGRD.mjs +266 -0
- package/dist/chunk-MKFL5MNH.mjs +372 -0
- package/dist/chunk-MQ72DIBH.mjs +105 -0
- package/dist/chunk-NGYG2EA6.mjs +148 -0
- package/dist/chunk-NWZ46DJL.mjs +213 -0
- package/dist/chunk-OXQQNQZI.mjs +75 -0
- package/dist/chunk-PMKODV6M.mjs +161 -0
- package/dist/chunk-QOJ2DQD6.mjs +57 -0
- package/dist/chunk-RL772EH7.mjs +126 -0
- package/dist/chunk-SLWCCURD.mjs +99 -0
- package/dist/chunk-V7CNWJT3.mjs +10 -0
- package/dist/chunk-VG6UF6UT.mjs +68 -0
- package/dist/chunk-VYMHBV6D.mjs +123 -0
- package/dist/chunk-VZ2NR7L3.mjs +195 -0
- package/dist/chunk-YN5SYTOO.mjs +117 -0
- package/dist/chunk-Z3MK2KKZ.mjs +83 -0
- package/dist/chunk-ZN2QKLF6.mjs +187 -0
- package/dist/chunk-ZZV5JVNW.mjs +34 -0
- package/dist/components/ui/accordion.js +142 -0
- package/dist/components/ui/accordion.mjs +14 -0
- package/dist/components/ui/alert-dialog.js +413 -0
- package/dist/components/ui/alert-dialog.mjs +34 -0
- package/dist/components/ui/alert.js +134 -0
- package/dist/components/ui/alert.mjs +12 -0
- package/dist/components/ui/avatar.js +173 -0
- package/dist/components/ui/avatar.mjs +18 -0
- package/dist/components/ui/badge.js +163 -0
- package/dist/components/ui/badge.mjs +11 -0
- package/dist/components/ui/button.js +198 -0
- package/dist/components/ui/button.mjs +11 -0
- package/dist/components/ui/calendar.js +408 -0
- package/dist/components/ui/calendar.mjs +12 -0
- package/dist/components/ui/card.js +156 -0
- package/dist/components/ui/card.mjs +20 -0
- package/dist/components/ui/checkbox.js +166 -0
- package/dist/components/ui/checkbox.mjs +11 -0
- package/dist/components/ui/chip.js +199 -0
- package/dist/components/ui/chip.mjs +10 -0
- package/dist/components/ui/data-table.js +925 -0
- package/dist/components/ui/data-table.mjs +29 -0
- package/dist/components/ui/date-picker.js +561 -0
- package/dist/components/ui/date-picker.mjs +15 -0
- package/dist/components/ui/dialog.js +378 -0
- package/dist/components/ui/dialog.mjs +30 -0
- package/dist/components/ui/drawer.js +213 -0
- package/dist/components/ui/drawer.mjs +28 -0
- package/dist/components/ui/dropdown-menu.js +338 -0
- package/dist/components/ui/dropdown-menu.mjs +38 -0
- package/dist/components/ui/empty.js +173 -0
- package/dist/components/ui/empty.mjs +18 -0
- package/dist/components/ui/field.js +359 -0
- package/dist/components/ui/field.mjs +28 -0
- package/dist/components/ui/input-group.js +406 -0
- package/dist/components/ui/input-group.mjs +22 -0
- package/dist/components/ui/input-otp.js +149 -0
- package/dist/components/ui/input-otp.mjs +14 -0
- package/dist/components/ui/input.js +81 -0
- package/dist/components/ui/input.mjs +8 -0
- package/dist/components/ui/label.js +85 -0
- package/dist/components/ui/label.mjs +8 -0
- package/dist/components/ui/pagination.js +333 -0
- package/dist/components/ui/pagination.mjs +22 -0
- package/dist/components/ui/popover.js +167 -0
- package/dist/components/ui/popover.mjs +22 -0
- package/dist/components/ui/progress.js +97 -0
- package/dist/components/ui/progress.mjs +8 -0
- package/dist/components/ui/radio-group.js +178 -0
- package/dist/components/ui/radio-group.mjs +12 -0
- package/dist/components/ui/select.js +262 -0
- package/dist/components/ui/select.mjs +28 -0
- package/dist/components/ui/separator.js +86 -0
- package/dist/components/ui/separator.mjs +8 -0
- package/dist/components/ui/sheet.js +227 -0
- package/dist/components/ui/sheet.mjs +26 -0
- package/dist/components/ui/skeleton.js +75 -0
- package/dist/components/ui/skeleton.mjs +8 -0
- package/dist/components/ui/sonner.js +86 -0
- package/dist/components/ui/sonner.mjs +7 -0
- package/dist/components/ui/spinner.js +93 -0
- package/dist/components/ui/spinner.mjs +10 -0
- package/dist/components/ui/switch.js +178 -0
- package/dist/components/ui/switch.mjs +11 -0
- package/dist/components/ui/table.js +184 -0
- package/dist/components/ui/table.mjs +22 -0
- package/dist/components/ui/tabs.js +181 -0
- package/dist/components/ui/tabs.mjs +16 -0
- package/dist/components/ui/textarea.js +79 -0
- package/dist/components/ui/textarea.mjs +8 -0
- package/dist/components/ui/toggle-group.js +184 -0
- package/dist/components/ui/toggle-group.mjs +12 -0
- package/dist/components/ui/toggle.js +108 -0
- package/dist/components/ui/toggle.mjs +11 -0
- package/dist/components/ui/tooltip.js +140 -0
- package/dist/components/ui/tooltip.mjs +16 -0
- package/dist/index.js +4409 -0
- package/dist/index.mjs +462 -0
- package/dist/lib/colors.js +84 -0
- package/dist/lib/colors.mjs +13 -0
- package/dist/lib/theme-provider.js +150 -0
- package/dist/lib/theme-provider.mjs +13 -0
- package/dist/lib/typography.js +157 -0
- package/dist/lib/typography.mjs +25 -0
- package/dist/lib/utils.js +34 -0
- package/dist/lib/utils.mjs +7 -0
- package/dist/styles.css +2 -0
- package/package.json +228 -11
- package/scripts/build-css.ts +15 -9
- package/src/components/index.tsx +443 -0
- package/src/components/ui/accordion.tsx +99 -0
- package/src/components/ui/alert-dialog.tsx +239 -0
- package/src/components/ui/alert.tsx +81 -0
- package/src/components/ui/avatar.tsx +130 -0
- package/src/components/ui/badge.tsx +57 -0
- package/src/components/ui/button.tsx +69 -37
- package/src/components/ui/calendar.tsx +252 -0
- package/src/components/ui/card.tsx +106 -0
- package/src/components/ui/checkbox.tsx +111 -0
- package/src/components/ui/chip.tsx +65 -0
- package/src/components/ui/data-table.tsx +490 -0
- package/src/components/ui/date-picker.tsx +133 -0
- package/src/components/ui/dialog.tsx +195 -0
- package/src/components/ui/drawer.tsx +169 -0
- package/src/components/ui/dropdown-menu.tsx +315 -0
- package/src/components/ui/empty.tsx +128 -0
- package/src/components/ui/field.tsx +273 -0
- package/src/components/ui/input-group.tsx +190 -0
- package/src/components/ui/input-otp.tsx +90 -0
- package/src/components/ui/input.tsx +28 -0
- package/src/components/ui/label.tsx +24 -0
- package/src/components/ui/pagination.tsx +148 -0
- package/src/components/ui/popover.tsx +112 -0
- package/src/components/ui/progress.tsx +40 -0
- package/src/components/ui/radio-group.tsx +129 -0
- package/src/components/ui/select.tsx +201 -0
- package/src/components/ui/separator.tsx +26 -0
- package/src/components/ui/sheet.tsx +182 -0
- package/src/components/ui/skeleton.tsx +22 -0
- package/src/components/ui/sonner.tsx +48 -0
- package/src/components/ui/spinner.tsx +41 -0
- package/src/components/ui/switch.tsx +126 -0
- package/src/components/ui/table.tsx +143 -0
- package/src/components/ui/tabs.tsx +119 -0
- package/src/components/ui/textarea.tsx +28 -0
- package/src/components/ui/toggle-group.tsx +94 -0
- package/src/components/ui/toggle.tsx +59 -0
- package/src/components/ui/tooltip.tsx +80 -0
- package/src/index.ts +15 -3
- package/src/lib/colors.ts +74 -0
- package/src/lib/slot.tsx +68 -0
- package/src/lib/theme-provider.tsx +134 -0
- package/src/lib/typography.ts +153 -0
- package/src/lib/utils.ts +1 -1
- package/src/styles/globals.css +377 -107
- package/src/styles/styles-css.ts +1 -1
- package/tsup.config.ts +48 -2
- package/src/provider/ShadcnProvider.tsx +0 -89
- package/src/provider/index.ts +0 -2
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,462 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ToggleGroup,
|
|
3
|
+
ToggleGroupItem
|
|
4
|
+
} from "./chunk-DDPA2XXS.mjs";
|
|
5
|
+
import {
|
|
6
|
+
Toggle,
|
|
7
|
+
toggleVariants
|
|
8
|
+
} from "./chunk-3U7SD3MS.mjs";
|
|
9
|
+
import {
|
|
10
|
+
Tooltip,
|
|
11
|
+
TooltipContent,
|
|
12
|
+
TooltipProvider,
|
|
13
|
+
TooltipTrigger
|
|
14
|
+
} from "./chunk-CGOKTPXU.mjs";
|
|
15
|
+
import {
|
|
16
|
+
Sheet,
|
|
17
|
+
SheetClose,
|
|
18
|
+
SheetContent,
|
|
19
|
+
SheetDescription,
|
|
20
|
+
SheetFooter,
|
|
21
|
+
SheetHeader,
|
|
22
|
+
SheetPortal,
|
|
23
|
+
SheetTitle,
|
|
24
|
+
SheetTrigger
|
|
25
|
+
} from "./chunk-PMKODV6M.mjs";
|
|
26
|
+
import {
|
|
27
|
+
Toaster
|
|
28
|
+
} from "./chunk-2Y7YJKPE.mjs";
|
|
29
|
+
import {
|
|
30
|
+
Spinner,
|
|
31
|
+
spinnerVariants
|
|
32
|
+
} from "./chunk-BMFN37JH.mjs";
|
|
33
|
+
import {
|
|
34
|
+
Switch,
|
|
35
|
+
SwitchCard
|
|
36
|
+
} from "./chunk-VYMHBV6D.mjs";
|
|
37
|
+
import {
|
|
38
|
+
Tabs,
|
|
39
|
+
TabsContent,
|
|
40
|
+
TabsList,
|
|
41
|
+
TabsTrigger,
|
|
42
|
+
tabsListVariants
|
|
43
|
+
} from "./chunk-RL772EH7.mjs";
|
|
44
|
+
import {
|
|
45
|
+
Pagination,
|
|
46
|
+
PaginationContent,
|
|
47
|
+
PaginationEllipsis,
|
|
48
|
+
PaginationItem,
|
|
49
|
+
PaginationLink,
|
|
50
|
+
PaginationNext,
|
|
51
|
+
PaginationPrevious
|
|
52
|
+
} from "./chunk-NGYG2EA6.mjs";
|
|
53
|
+
import {
|
|
54
|
+
Progress
|
|
55
|
+
} from "./chunk-BBJBJSXQ.mjs";
|
|
56
|
+
import {
|
|
57
|
+
RadioGroup,
|
|
58
|
+
RadioGroupCard,
|
|
59
|
+
RadioGroupItem
|
|
60
|
+
} from "./chunk-JU2RUWHF.mjs";
|
|
61
|
+
import {
|
|
62
|
+
DatePicker
|
|
63
|
+
} from "./chunk-AMJ23O53.mjs";
|
|
64
|
+
import {
|
|
65
|
+
Popover,
|
|
66
|
+
PopoverAnchor,
|
|
67
|
+
PopoverContent,
|
|
68
|
+
PopoverDescription,
|
|
69
|
+
PopoverHeader,
|
|
70
|
+
PopoverTitle,
|
|
71
|
+
PopoverTrigger
|
|
72
|
+
} from "./chunk-MQ72DIBH.mjs";
|
|
73
|
+
import {
|
|
74
|
+
Dialog,
|
|
75
|
+
DialogClose,
|
|
76
|
+
DialogContent,
|
|
77
|
+
DialogDescription,
|
|
78
|
+
DialogFooter,
|
|
79
|
+
DialogHeader,
|
|
80
|
+
DialogOverlay,
|
|
81
|
+
DialogPortal,
|
|
82
|
+
DialogTitle,
|
|
83
|
+
DialogTrigger
|
|
84
|
+
} from "./chunk-7LDIMXGM.mjs";
|
|
85
|
+
import {
|
|
86
|
+
Drawer,
|
|
87
|
+
DrawerClose,
|
|
88
|
+
DrawerContent,
|
|
89
|
+
DrawerDescription,
|
|
90
|
+
DrawerFooter,
|
|
91
|
+
DrawerHeader,
|
|
92
|
+
DrawerOverlay,
|
|
93
|
+
DrawerPortal,
|
|
94
|
+
DrawerTitle,
|
|
95
|
+
DrawerTrigger
|
|
96
|
+
} from "./chunk-6AFMNC42.mjs";
|
|
97
|
+
import {
|
|
98
|
+
Empty,
|
|
99
|
+
EmptyContent,
|
|
100
|
+
EmptyDescription,
|
|
101
|
+
EmptyHeader,
|
|
102
|
+
EmptyMedia,
|
|
103
|
+
EmptyTitle
|
|
104
|
+
} from "./chunk-YN5SYTOO.mjs";
|
|
105
|
+
import {
|
|
106
|
+
Field,
|
|
107
|
+
FieldContent,
|
|
108
|
+
FieldDescription,
|
|
109
|
+
FieldError,
|
|
110
|
+
FieldGroup,
|
|
111
|
+
FieldLabel,
|
|
112
|
+
FieldLegend,
|
|
113
|
+
FieldSeparator,
|
|
114
|
+
FieldSet,
|
|
115
|
+
FieldTitle
|
|
116
|
+
} from "./chunk-HUVTPUV2.mjs";
|
|
117
|
+
import {
|
|
118
|
+
Label
|
|
119
|
+
} from "./chunk-ZZV5JVNW.mjs";
|
|
120
|
+
import {
|
|
121
|
+
Separator
|
|
122
|
+
} from "./chunk-55CEW76V.mjs";
|
|
123
|
+
import {
|
|
124
|
+
InputGroup,
|
|
125
|
+
InputGroupAddon,
|
|
126
|
+
InputGroupButton,
|
|
127
|
+
InputGroupInput,
|
|
128
|
+
InputGroupText,
|
|
129
|
+
InputGroupTextarea
|
|
130
|
+
} from "./chunk-ZN2QKLF6.mjs";
|
|
131
|
+
import {
|
|
132
|
+
Textarea
|
|
133
|
+
} from "./chunk-GPRJQ24C.mjs";
|
|
134
|
+
import {
|
|
135
|
+
InputOTP,
|
|
136
|
+
InputOTPGroup,
|
|
137
|
+
InputOTPSeparator,
|
|
138
|
+
InputOTPSlot
|
|
139
|
+
} from "./chunk-Z3MK2KKZ.mjs";
|
|
140
|
+
import {
|
|
141
|
+
Avatar,
|
|
142
|
+
AvatarBadge,
|
|
143
|
+
AvatarFallback,
|
|
144
|
+
AvatarGroup,
|
|
145
|
+
AvatarGroupCount,
|
|
146
|
+
AvatarImage
|
|
147
|
+
} from "./chunk-6OJF6XRN.mjs";
|
|
148
|
+
import {
|
|
149
|
+
Calendar,
|
|
150
|
+
CalendarDayButton
|
|
151
|
+
} from "./chunk-2WZVSBAY.mjs";
|
|
152
|
+
import {
|
|
153
|
+
Card,
|
|
154
|
+
CardAction,
|
|
155
|
+
CardContent,
|
|
156
|
+
CardDescription,
|
|
157
|
+
CardFooter,
|
|
158
|
+
CardHeader,
|
|
159
|
+
CardTitle
|
|
160
|
+
} from "./chunk-SLWCCURD.mjs";
|
|
161
|
+
import {
|
|
162
|
+
Chip
|
|
163
|
+
} from "./chunk-VG6UF6UT.mjs";
|
|
164
|
+
import {
|
|
165
|
+
Badge,
|
|
166
|
+
badgeVariants
|
|
167
|
+
} from "./chunk-E3K6O4FZ.mjs";
|
|
168
|
+
import {
|
|
169
|
+
DataTable,
|
|
170
|
+
DataTableColumnHeader,
|
|
171
|
+
DataTablePagination,
|
|
172
|
+
DataTableSkeleton,
|
|
173
|
+
DataTableToolbar,
|
|
174
|
+
getSelectionColumn
|
|
175
|
+
} from "./chunk-MKFL5MNH.mjs";
|
|
176
|
+
import {
|
|
177
|
+
Skeleton
|
|
178
|
+
} from "./chunk-HS7TFG7V.mjs";
|
|
179
|
+
import {
|
|
180
|
+
Table,
|
|
181
|
+
TableBody,
|
|
182
|
+
TableCaption,
|
|
183
|
+
TableCell,
|
|
184
|
+
TableFooter,
|
|
185
|
+
TableHead,
|
|
186
|
+
TableHeader,
|
|
187
|
+
TableRow
|
|
188
|
+
} from "./chunk-BGP2N52Z.mjs";
|
|
189
|
+
import {
|
|
190
|
+
Select,
|
|
191
|
+
SelectContent,
|
|
192
|
+
SelectGroup,
|
|
193
|
+
SelectItem,
|
|
194
|
+
SelectLabel,
|
|
195
|
+
SelectScrollDownButton,
|
|
196
|
+
SelectScrollUpButton,
|
|
197
|
+
SelectSeparator,
|
|
198
|
+
SelectTrigger,
|
|
199
|
+
SelectValue
|
|
200
|
+
} from "./chunk-VZ2NR7L3.mjs";
|
|
201
|
+
import {
|
|
202
|
+
DropdownMenu,
|
|
203
|
+
DropdownMenuCheckboxItem,
|
|
204
|
+
DropdownMenuContent,
|
|
205
|
+
DropdownMenuGroup,
|
|
206
|
+
DropdownMenuItem,
|
|
207
|
+
DropdownMenuLabel,
|
|
208
|
+
DropdownMenuPortal,
|
|
209
|
+
DropdownMenuRadioGroup,
|
|
210
|
+
DropdownMenuRadioItem,
|
|
211
|
+
DropdownMenuSeparator,
|
|
212
|
+
DropdownMenuShortcut,
|
|
213
|
+
DropdownMenuSub,
|
|
214
|
+
DropdownMenuSubContent,
|
|
215
|
+
DropdownMenuSubTrigger,
|
|
216
|
+
DropdownMenuTrigger
|
|
217
|
+
} from "./chunk-MJIEMGRD.mjs";
|
|
218
|
+
import {
|
|
219
|
+
Input
|
|
220
|
+
} from "./chunk-DS2AMHN2.mjs";
|
|
221
|
+
import {
|
|
222
|
+
Checkbox,
|
|
223
|
+
CheckboxCard
|
|
224
|
+
} from "./chunk-JF4PHPD5.mjs";
|
|
225
|
+
import {
|
|
226
|
+
FONT_FAMILY_SANS,
|
|
227
|
+
TYPOGRAPHY,
|
|
228
|
+
TYPOGRAPHY_BODY,
|
|
229
|
+
TYPOGRAPHY_DISPLAY,
|
|
230
|
+
TYPOGRAPHY_HEADING,
|
|
231
|
+
TYPOGRAPHY_LABEL,
|
|
232
|
+
TYPOGRAPHY_RESPONSIVE,
|
|
233
|
+
TYPOGRAPHY_UTILITY,
|
|
234
|
+
getResponsiveTypographyCssVars,
|
|
235
|
+
getTypographyCssVars
|
|
236
|
+
} from "./chunk-3VQNJ235.mjs";
|
|
237
|
+
import {
|
|
238
|
+
Accordion,
|
|
239
|
+
AccordionContent,
|
|
240
|
+
AccordionItem,
|
|
241
|
+
AccordionTrigger
|
|
242
|
+
} from "./chunk-KKHTJNMM.mjs";
|
|
243
|
+
import {
|
|
244
|
+
AlertDialog,
|
|
245
|
+
AlertDialogAction,
|
|
246
|
+
AlertDialogCancel,
|
|
247
|
+
AlertDialogContent,
|
|
248
|
+
AlertDialogDescription,
|
|
249
|
+
AlertDialogFooter,
|
|
250
|
+
AlertDialogHeader,
|
|
251
|
+
AlertDialogMedia,
|
|
252
|
+
AlertDialogOverlay,
|
|
253
|
+
AlertDialogPortal,
|
|
254
|
+
AlertDialogTitle,
|
|
255
|
+
AlertDialogTrigger
|
|
256
|
+
} from "./chunk-NWZ46DJL.mjs";
|
|
257
|
+
import {
|
|
258
|
+
Button,
|
|
259
|
+
buttonVariants
|
|
260
|
+
} from "./chunk-IAOOZCUY.mjs";
|
|
261
|
+
import "./chunk-DBHJ5KC3.mjs";
|
|
262
|
+
import "./chunk-OXQQNQZI.mjs";
|
|
263
|
+
import "./chunk-QOJ2DQD6.mjs";
|
|
264
|
+
import {
|
|
265
|
+
Alert,
|
|
266
|
+
AlertDescription,
|
|
267
|
+
AlertTitle
|
|
268
|
+
} from "./chunk-CZ3BW5GL.mjs";
|
|
269
|
+
import {
|
|
270
|
+
cn
|
|
271
|
+
} from "./chunk-V7CNWJT3.mjs";
|
|
272
|
+
import "./chunk-FWCSY2DS.mjs";
|
|
273
|
+
export {
|
|
274
|
+
Accordion,
|
|
275
|
+
AccordionContent,
|
|
276
|
+
AccordionItem,
|
|
277
|
+
AccordionTrigger,
|
|
278
|
+
Alert,
|
|
279
|
+
AlertDescription,
|
|
280
|
+
AlertDialog,
|
|
281
|
+
AlertDialogAction,
|
|
282
|
+
AlertDialogCancel,
|
|
283
|
+
AlertDialogContent,
|
|
284
|
+
AlertDialogDescription,
|
|
285
|
+
AlertDialogFooter,
|
|
286
|
+
AlertDialogHeader,
|
|
287
|
+
AlertDialogMedia,
|
|
288
|
+
AlertDialogOverlay,
|
|
289
|
+
AlertDialogPortal,
|
|
290
|
+
AlertDialogTitle,
|
|
291
|
+
AlertDialogTrigger,
|
|
292
|
+
AlertTitle,
|
|
293
|
+
Avatar,
|
|
294
|
+
AvatarBadge,
|
|
295
|
+
AvatarFallback,
|
|
296
|
+
AvatarGroup,
|
|
297
|
+
AvatarGroupCount,
|
|
298
|
+
AvatarImage,
|
|
299
|
+
Badge,
|
|
300
|
+
Button,
|
|
301
|
+
Calendar,
|
|
302
|
+
CalendarDayButton,
|
|
303
|
+
Card,
|
|
304
|
+
CardAction,
|
|
305
|
+
CardContent,
|
|
306
|
+
CardDescription,
|
|
307
|
+
CardFooter,
|
|
308
|
+
CardHeader,
|
|
309
|
+
CardTitle,
|
|
310
|
+
Checkbox,
|
|
311
|
+
CheckboxCard,
|
|
312
|
+
Chip,
|
|
313
|
+
DataTable,
|
|
314
|
+
DataTableColumnHeader,
|
|
315
|
+
DataTablePagination,
|
|
316
|
+
DataTableSkeleton,
|
|
317
|
+
DataTableToolbar,
|
|
318
|
+
DatePicker,
|
|
319
|
+
Dialog,
|
|
320
|
+
DialogClose,
|
|
321
|
+
DialogContent,
|
|
322
|
+
DialogDescription,
|
|
323
|
+
DialogFooter,
|
|
324
|
+
DialogHeader,
|
|
325
|
+
DialogOverlay,
|
|
326
|
+
DialogPortal,
|
|
327
|
+
DialogTitle,
|
|
328
|
+
DialogTrigger,
|
|
329
|
+
Drawer,
|
|
330
|
+
DrawerClose,
|
|
331
|
+
DrawerContent,
|
|
332
|
+
DrawerDescription,
|
|
333
|
+
DrawerFooter,
|
|
334
|
+
DrawerHeader,
|
|
335
|
+
DrawerOverlay,
|
|
336
|
+
DrawerPortal,
|
|
337
|
+
DrawerTitle,
|
|
338
|
+
DrawerTrigger,
|
|
339
|
+
DropdownMenu,
|
|
340
|
+
DropdownMenuCheckboxItem,
|
|
341
|
+
DropdownMenuContent,
|
|
342
|
+
DropdownMenuGroup,
|
|
343
|
+
DropdownMenuItem,
|
|
344
|
+
DropdownMenuLabel,
|
|
345
|
+
DropdownMenuPortal,
|
|
346
|
+
DropdownMenuRadioGroup,
|
|
347
|
+
DropdownMenuRadioItem,
|
|
348
|
+
DropdownMenuSeparator,
|
|
349
|
+
DropdownMenuShortcut,
|
|
350
|
+
DropdownMenuSub,
|
|
351
|
+
DropdownMenuSubContent,
|
|
352
|
+
DropdownMenuSubTrigger,
|
|
353
|
+
DropdownMenuTrigger,
|
|
354
|
+
Empty,
|
|
355
|
+
EmptyContent,
|
|
356
|
+
EmptyDescription,
|
|
357
|
+
EmptyHeader,
|
|
358
|
+
EmptyMedia,
|
|
359
|
+
EmptyTitle,
|
|
360
|
+
FONT_FAMILY_SANS,
|
|
361
|
+
Field,
|
|
362
|
+
FieldContent,
|
|
363
|
+
FieldDescription,
|
|
364
|
+
FieldError,
|
|
365
|
+
FieldGroup,
|
|
366
|
+
FieldLabel,
|
|
367
|
+
FieldLegend,
|
|
368
|
+
FieldSeparator,
|
|
369
|
+
FieldSet,
|
|
370
|
+
FieldTitle,
|
|
371
|
+
Input,
|
|
372
|
+
InputGroup,
|
|
373
|
+
InputGroupAddon,
|
|
374
|
+
InputGroupButton,
|
|
375
|
+
InputGroupInput,
|
|
376
|
+
InputGroupText,
|
|
377
|
+
InputGroupTextarea,
|
|
378
|
+
InputOTP,
|
|
379
|
+
InputOTPGroup,
|
|
380
|
+
InputOTPSeparator,
|
|
381
|
+
InputOTPSlot,
|
|
382
|
+
Label,
|
|
383
|
+
Pagination,
|
|
384
|
+
PaginationContent,
|
|
385
|
+
PaginationEllipsis,
|
|
386
|
+
PaginationItem,
|
|
387
|
+
PaginationLink,
|
|
388
|
+
PaginationNext,
|
|
389
|
+
PaginationPrevious,
|
|
390
|
+
Popover,
|
|
391
|
+
PopoverAnchor,
|
|
392
|
+
PopoverContent,
|
|
393
|
+
PopoverDescription,
|
|
394
|
+
PopoverHeader,
|
|
395
|
+
PopoverTitle,
|
|
396
|
+
PopoverTrigger,
|
|
397
|
+
Progress,
|
|
398
|
+
RadioGroup,
|
|
399
|
+
RadioGroupCard,
|
|
400
|
+
RadioGroupItem,
|
|
401
|
+
Select,
|
|
402
|
+
SelectContent,
|
|
403
|
+
SelectGroup,
|
|
404
|
+
SelectItem,
|
|
405
|
+
SelectLabel,
|
|
406
|
+
SelectScrollDownButton,
|
|
407
|
+
SelectScrollUpButton,
|
|
408
|
+
SelectSeparator,
|
|
409
|
+
SelectTrigger,
|
|
410
|
+
SelectValue,
|
|
411
|
+
Separator,
|
|
412
|
+
Sheet,
|
|
413
|
+
SheetClose,
|
|
414
|
+
SheetContent,
|
|
415
|
+
SheetDescription,
|
|
416
|
+
SheetFooter,
|
|
417
|
+
SheetHeader,
|
|
418
|
+
SheetPortal,
|
|
419
|
+
SheetTitle,
|
|
420
|
+
SheetTrigger,
|
|
421
|
+
Skeleton,
|
|
422
|
+
Spinner,
|
|
423
|
+
Switch,
|
|
424
|
+
SwitchCard,
|
|
425
|
+
TYPOGRAPHY,
|
|
426
|
+
TYPOGRAPHY_BODY,
|
|
427
|
+
TYPOGRAPHY_DISPLAY,
|
|
428
|
+
TYPOGRAPHY_HEADING,
|
|
429
|
+
TYPOGRAPHY_LABEL,
|
|
430
|
+
TYPOGRAPHY_RESPONSIVE,
|
|
431
|
+
TYPOGRAPHY_UTILITY,
|
|
432
|
+
Table,
|
|
433
|
+
TableBody,
|
|
434
|
+
TableCaption,
|
|
435
|
+
TableCell,
|
|
436
|
+
TableFooter,
|
|
437
|
+
TableHead,
|
|
438
|
+
TableHeader,
|
|
439
|
+
TableRow,
|
|
440
|
+
Tabs,
|
|
441
|
+
TabsContent,
|
|
442
|
+
TabsList,
|
|
443
|
+
TabsTrigger,
|
|
444
|
+
Textarea,
|
|
445
|
+
Toaster,
|
|
446
|
+
Toggle,
|
|
447
|
+
ToggleGroup,
|
|
448
|
+
ToggleGroupItem,
|
|
449
|
+
Tooltip,
|
|
450
|
+
TooltipContent,
|
|
451
|
+
TooltipProvider,
|
|
452
|
+
TooltipTrigger,
|
|
453
|
+
badgeVariants,
|
|
454
|
+
buttonVariants,
|
|
455
|
+
cn,
|
|
456
|
+
getResponsiveTypographyCssVars,
|
|
457
|
+
getSelectionColumn,
|
|
458
|
+
getTypographyCssVars,
|
|
459
|
+
spinnerVariants,
|
|
460
|
+
tabsListVariants,
|
|
461
|
+
toggleVariants
|
|
462
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/lib/colors.ts
|
|
21
|
+
var colors_exports = {};
|
|
22
|
+
__export(colors_exports, {
|
|
23
|
+
getContrastText: () => getContrastText,
|
|
24
|
+
getLuminance: () => getLuminance,
|
|
25
|
+
hexToOklch: () => hexToOklch,
|
|
26
|
+
hexToRgb: () => hexToRgb
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(colors_exports);
|
|
29
|
+
var CONTRAST_DARK = "#040D13";
|
|
30
|
+
var CONTRAST_LIGHT = "#FFFFFF";
|
|
31
|
+
function hexToRgb(hex) {
|
|
32
|
+
const normalized = hex.replace(/^#/, "");
|
|
33
|
+
if (normalized.length === 3) {
|
|
34
|
+
const r = parseInt(normalized[0] + normalized[0], 16);
|
|
35
|
+
const g = parseInt(normalized[1] + normalized[1], 16);
|
|
36
|
+
const b = parseInt(normalized[2] + normalized[2], 16);
|
|
37
|
+
return [r, g, b];
|
|
38
|
+
}
|
|
39
|
+
if (normalized.length === 6 || normalized.length === 8) {
|
|
40
|
+
const r = parseInt(normalized.slice(0, 2), 16);
|
|
41
|
+
const g = parseInt(normalized.slice(2, 4), 16);
|
|
42
|
+
const b = parseInt(normalized.slice(4, 6), 16);
|
|
43
|
+
return [r, g, b];
|
|
44
|
+
}
|
|
45
|
+
throw new Error(`Invalid hex color: ${hex}`);
|
|
46
|
+
}
|
|
47
|
+
function linearizeSrgb(c) {
|
|
48
|
+
const n = c / 255;
|
|
49
|
+
return n <= 0.03928 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
|
|
50
|
+
}
|
|
51
|
+
function getLuminance(hex) {
|
|
52
|
+
const [r, g, b] = hexToRgb(hex);
|
|
53
|
+
return 0.2126 * linearizeSrgb(r) + 0.7152 * linearizeSrgb(g) + 0.0722 * linearizeSrgb(b);
|
|
54
|
+
}
|
|
55
|
+
function getContrastText(backgroundColor) {
|
|
56
|
+
const luminance = getLuminance(backgroundColor);
|
|
57
|
+
return luminance > 0.179 ? CONTRAST_DARK : CONTRAST_LIGHT;
|
|
58
|
+
}
|
|
59
|
+
function hexToOklch(hex) {
|
|
60
|
+
const [r, g, b] = hexToRgb(hex);
|
|
61
|
+
const rl = linearizeSrgb(r);
|
|
62
|
+
const gl = linearizeSrgb(g);
|
|
63
|
+
const bl = linearizeSrgb(b);
|
|
64
|
+
const l = 0.4122214708 * rl + 0.5363325363 * gl + 0.0514459929 * bl;
|
|
65
|
+
const m = 0.2119034982 * rl + 0.6806995451 * gl + 0.1073969566 * bl;
|
|
66
|
+
const s = 0.0883024619 * rl + 0.2817188376 * gl + 0.6299787005 * bl;
|
|
67
|
+
const l_ = l > 0 ? Math.cbrt(l) : 0;
|
|
68
|
+
const m_ = m > 0 ? Math.cbrt(m) : 0;
|
|
69
|
+
const s_ = s > 0 ? Math.cbrt(s) : 0;
|
|
70
|
+
const L = 0.2104542553 * l_ + 0.793617785 * m_ - 0.0040720468 * s_;
|
|
71
|
+
const a = 1.9779984951 * l_ - 2.428592205 * m_ + 0.4505937099 * s_;
|
|
72
|
+
const bv = 0.0259040371 * l_ + 0.7827717662 * m_ - 0.808675766 * s_;
|
|
73
|
+
const C = Math.sqrt(a * a + bv * bv);
|
|
74
|
+
const h = (Math.atan2(bv, a) * 180 / Math.PI + 360) % 360;
|
|
75
|
+
if (C < 1e-3) return `oklch(${L.toFixed(3)} 0 0)`;
|
|
76
|
+
return `oklch(${L.toFixed(3)} ${C.toFixed(3)} ${h.toFixed(1)})`;
|
|
77
|
+
}
|
|
78
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
79
|
+
0 && (module.exports = {
|
|
80
|
+
getContrastText,
|
|
81
|
+
getLuminance,
|
|
82
|
+
hexToOklch,
|
|
83
|
+
hexToRgb
|
|
84
|
+
});
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
"use client";
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/lib/theme-provider.tsx
|
|
22
|
+
var theme_provider_exports = {};
|
|
23
|
+
__export(theme_provider_exports, {
|
|
24
|
+
ThemeProvider: () => ThemeProvider,
|
|
25
|
+
buildCssVariables: () => buildCssVariables,
|
|
26
|
+
useThemeVars: () => useThemeVars
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(theme_provider_exports);
|
|
29
|
+
var import_react = require("react");
|
|
30
|
+
|
|
31
|
+
// src/lib/colors.ts
|
|
32
|
+
var CONTRAST_DARK = "#040D13";
|
|
33
|
+
var CONTRAST_LIGHT = "#FFFFFF";
|
|
34
|
+
function hexToRgb(hex) {
|
|
35
|
+
const normalized = hex.replace(/^#/, "");
|
|
36
|
+
if (normalized.length === 3) {
|
|
37
|
+
const r = parseInt(normalized[0] + normalized[0], 16);
|
|
38
|
+
const g = parseInt(normalized[1] + normalized[1], 16);
|
|
39
|
+
const b = parseInt(normalized[2] + normalized[2], 16);
|
|
40
|
+
return [r, g, b];
|
|
41
|
+
}
|
|
42
|
+
if (normalized.length === 6 || normalized.length === 8) {
|
|
43
|
+
const r = parseInt(normalized.slice(0, 2), 16);
|
|
44
|
+
const g = parseInt(normalized.slice(2, 4), 16);
|
|
45
|
+
const b = parseInt(normalized.slice(4, 6), 16);
|
|
46
|
+
return [r, g, b];
|
|
47
|
+
}
|
|
48
|
+
throw new Error(`Invalid hex color: ${hex}`);
|
|
49
|
+
}
|
|
50
|
+
function linearizeSrgb(c) {
|
|
51
|
+
const n = c / 255;
|
|
52
|
+
return n <= 0.03928 ? n / 12.92 : Math.pow((n + 0.055) / 1.055, 2.4);
|
|
53
|
+
}
|
|
54
|
+
function getLuminance(hex) {
|
|
55
|
+
const [r, g, b] = hexToRgb(hex);
|
|
56
|
+
return 0.2126 * linearizeSrgb(r) + 0.7152 * linearizeSrgb(g) + 0.0722 * linearizeSrgb(b);
|
|
57
|
+
}
|
|
58
|
+
function getContrastText(backgroundColor) {
|
|
59
|
+
const luminance = getLuminance(backgroundColor);
|
|
60
|
+
return luminance > 0.179 ? CONTRAST_DARK : CONTRAST_LIGHT;
|
|
61
|
+
}
|
|
62
|
+
function hexToOklch(hex) {
|
|
63
|
+
const [r, g, b] = hexToRgb(hex);
|
|
64
|
+
const rl = linearizeSrgb(r);
|
|
65
|
+
const gl = linearizeSrgb(g);
|
|
66
|
+
const bl = linearizeSrgb(b);
|
|
67
|
+
const l = 0.4122214708 * rl + 0.5363325363 * gl + 0.0514459929 * bl;
|
|
68
|
+
const m = 0.2119034982 * rl + 0.6806995451 * gl + 0.1073969566 * bl;
|
|
69
|
+
const s = 0.0883024619 * rl + 0.2817188376 * gl + 0.6299787005 * bl;
|
|
70
|
+
const l_ = l > 0 ? Math.cbrt(l) : 0;
|
|
71
|
+
const m_ = m > 0 ? Math.cbrt(m) : 0;
|
|
72
|
+
const s_ = s > 0 ? Math.cbrt(s) : 0;
|
|
73
|
+
const L = 0.2104542553 * l_ + 0.793617785 * m_ - 0.0040720468 * s_;
|
|
74
|
+
const a = 1.9779984951 * l_ - 2.428592205 * m_ + 0.4505937099 * s_;
|
|
75
|
+
const bv = 0.0259040371 * l_ + 0.7827717662 * m_ - 0.808675766 * s_;
|
|
76
|
+
const C = Math.sqrt(a * a + bv * bv);
|
|
77
|
+
const h = (Math.atan2(bv, a) * 180 / Math.PI + 360) % 360;
|
|
78
|
+
if (C < 1e-3) return `oklch(${L.toFixed(3)} 0 0)`;
|
|
79
|
+
return `oklch(${L.toFixed(3)} ${C.toFixed(3)} ${h.toFixed(1)})`;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
// src/lib/theme-provider.tsx
|
|
83
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
84
|
+
var ThemeVarsContext = (0, import_react.createContext)({});
|
|
85
|
+
function useThemeVars() {
|
|
86
|
+
return (0, import_react.useContext)(ThemeVarsContext);
|
|
87
|
+
}
|
|
88
|
+
var DEFAULT_PRIMARY = "#33FF99";
|
|
89
|
+
var DEFAULT_SECONDARY = "#162029";
|
|
90
|
+
var DEFAULT_FONT = '"Figtree", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"';
|
|
91
|
+
function ThemeProvider({
|
|
92
|
+
children,
|
|
93
|
+
primary = DEFAULT_PRIMARY,
|
|
94
|
+
secondary = DEFAULT_SECONDARY,
|
|
95
|
+
fontFamily = DEFAULT_FONT,
|
|
96
|
+
injectCssVariables = true
|
|
97
|
+
}) {
|
|
98
|
+
const vars = (0, import_react.useMemo)(() => {
|
|
99
|
+
if (!injectCssVariables) return {};
|
|
100
|
+
const primaryOklch = hexToOklch(primary);
|
|
101
|
+
const primaryFgOklch = hexToOklch(getContrastText(primary));
|
|
102
|
+
const secondaryOklch = hexToOklch(secondary);
|
|
103
|
+
const secondaryFgOklch = hexToOklch(getContrastText(secondary));
|
|
104
|
+
return {
|
|
105
|
+
// Brand primary — used by buttons, links, focus rings, active states
|
|
106
|
+
"--primary": primaryOklch,
|
|
107
|
+
"--primary-foreground": primaryFgOklch,
|
|
108
|
+
"--ring": primaryOklch,
|
|
109
|
+
// Sidebar uses primary for active navigation
|
|
110
|
+
"--sidebar-primary": primaryOklch,
|
|
111
|
+
"--sidebar-primary-foreground": primaryFgOklch,
|
|
112
|
+
// Brand secondary — tenant navy used by Secondary button variant
|
|
113
|
+
// NOTE: --secondary is reserved for paper/surface (#F5F8FA), so we use --brand-secondary
|
|
114
|
+
"--brand-secondary": secondaryOklch,
|
|
115
|
+
"--brand-secondary-foreground": secondaryFgOklch,
|
|
116
|
+
// Font family — applies to all components + typography utility classes
|
|
117
|
+
"--font-sans": fontFamily,
|
|
118
|
+
"--font-family-sans": fontFamily,
|
|
119
|
+
// Legacy compat (used by existing WealthX apps)
|
|
120
|
+
"--theme-primary": primary,
|
|
121
|
+
"--theme-secondary": secondary
|
|
122
|
+
};
|
|
123
|
+
}, [primary, secondary, fontFamily, injectCssVariables]);
|
|
124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ThemeVarsContext.Provider, { value: vars, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { "data-wealthx-theme": true, style: vars, children }) });
|
|
125
|
+
}
|
|
126
|
+
function buildCssVariables(options) {
|
|
127
|
+
var _a, _b, _c;
|
|
128
|
+
const primary = (_a = options.primary) != null ? _a : DEFAULT_PRIMARY;
|
|
129
|
+
const secondary = (_b = options.secondary) != null ? _b : DEFAULT_SECONDARY;
|
|
130
|
+
const fontFamily = (_c = options.fontFamily) != null ? _c : DEFAULT_FONT;
|
|
131
|
+
return {
|
|
132
|
+
"--primary": hexToOklch(primary),
|
|
133
|
+
"--primary-foreground": hexToOklch(getContrastText(primary)),
|
|
134
|
+
"--ring": hexToOklch(primary),
|
|
135
|
+
"--sidebar-primary": hexToOklch(primary),
|
|
136
|
+
"--sidebar-primary-foreground": hexToOklch(getContrastText(primary)),
|
|
137
|
+
"--brand-secondary": hexToOklch(secondary),
|
|
138
|
+
"--brand-secondary-foreground": hexToOklch(getContrastText(secondary)),
|
|
139
|
+
"--font-sans": fontFamily,
|
|
140
|
+
"--font-family-sans": fontFamily,
|
|
141
|
+
"--theme-primary": primary,
|
|
142
|
+
"--theme-secondary": secondary
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
146
|
+
0 && (module.exports = {
|
|
147
|
+
ThemeProvider,
|
|
148
|
+
buildCssVariables,
|
|
149
|
+
useThemeVars
|
|
150
|
+
});
|