@wealthx/shadcn 0.0.2 → 1.0.1
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 +135 -11
- package/CHANGELOG.md +12 -0
- package/CHANGES.md +345 -0
- package/README.md +128 -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 +4312 -90
- package/dist/index.mjs +459 -158
- 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 +1 -1
- 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/dist/index.d.mts +0 -27
- package/dist/index.d.ts +0 -27
- package/src/provider/ShadcnProvider.tsx +0 -89
- package/src/provider/index.ts +0 -2
|
@@ -0,0 +1,443 @@
|
|
|
1
|
+
export {
|
|
2
|
+
Accordion,
|
|
3
|
+
AccordionItem,
|
|
4
|
+
AccordionTrigger,
|
|
5
|
+
AccordionContent,
|
|
6
|
+
} from "./ui/accordion";
|
|
7
|
+
export type {
|
|
8
|
+
AccordionProps,
|
|
9
|
+
AccordionItemProps,
|
|
10
|
+
AccordionTriggerProps,
|
|
11
|
+
AccordionContentProps,
|
|
12
|
+
} from "./ui/accordion";
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
AlertDialog,
|
|
16
|
+
AlertDialogAction,
|
|
17
|
+
AlertDialogCancel,
|
|
18
|
+
AlertDialogContent,
|
|
19
|
+
AlertDialogDescription,
|
|
20
|
+
AlertDialogFooter,
|
|
21
|
+
AlertDialogHeader,
|
|
22
|
+
AlertDialogMedia,
|
|
23
|
+
AlertDialogOverlay,
|
|
24
|
+
AlertDialogPortal,
|
|
25
|
+
AlertDialogTitle,
|
|
26
|
+
AlertDialogTrigger,
|
|
27
|
+
} from "./ui/alert-dialog";
|
|
28
|
+
export type {
|
|
29
|
+
AlertDialogProps,
|
|
30
|
+
AlertDialogActionProps,
|
|
31
|
+
AlertDialogCancelProps,
|
|
32
|
+
AlertDialogContentProps,
|
|
33
|
+
AlertDialogDescriptionProps,
|
|
34
|
+
AlertDialogFooterProps,
|
|
35
|
+
AlertDialogHeaderProps,
|
|
36
|
+
AlertDialogMediaProps,
|
|
37
|
+
AlertDialogOverlayProps,
|
|
38
|
+
AlertDialogPortalProps,
|
|
39
|
+
AlertDialogTitleProps,
|
|
40
|
+
AlertDialogTriggerProps,
|
|
41
|
+
} from "./ui/alert-dialog";
|
|
42
|
+
|
|
43
|
+
export { Alert, AlertTitle, AlertDescription } from "./ui/alert";
|
|
44
|
+
export type {
|
|
45
|
+
AlertProps,
|
|
46
|
+
AlertTitleProps,
|
|
47
|
+
AlertDescriptionProps,
|
|
48
|
+
} from "./ui/alert";
|
|
49
|
+
|
|
50
|
+
export {
|
|
51
|
+
Avatar,
|
|
52
|
+
AvatarImage,
|
|
53
|
+
AvatarFallback,
|
|
54
|
+
AvatarBadge,
|
|
55
|
+
AvatarGroup,
|
|
56
|
+
AvatarGroupCount,
|
|
57
|
+
} from "./ui/avatar";
|
|
58
|
+
export type {
|
|
59
|
+
AvatarProps,
|
|
60
|
+
AvatarImageProps,
|
|
61
|
+
AvatarFallbackProps,
|
|
62
|
+
AvatarBadgeProps,
|
|
63
|
+
AvatarGroupProps,
|
|
64
|
+
AvatarGroupCountProps,
|
|
65
|
+
} from "./ui/avatar";
|
|
66
|
+
|
|
67
|
+
export { Badge, badgeVariants } from "./ui/badge";
|
|
68
|
+
export type { BadgeProps } from "./ui/badge";
|
|
69
|
+
|
|
70
|
+
export { Button, buttonVariants } from "./ui/button";
|
|
71
|
+
export type { ButtonProps } from "./ui/button";
|
|
72
|
+
|
|
73
|
+
export { Calendar, CalendarDayButton } from "./ui/calendar";
|
|
74
|
+
export type { CalendarProps, CalendarDayButtonProps } from "./ui/calendar";
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
Card,
|
|
78
|
+
CardHeader,
|
|
79
|
+
CardFooter,
|
|
80
|
+
CardTitle,
|
|
81
|
+
CardAction,
|
|
82
|
+
CardDescription,
|
|
83
|
+
CardContent,
|
|
84
|
+
} from "./ui/card";
|
|
85
|
+
export type {
|
|
86
|
+
CardProps,
|
|
87
|
+
CardHeaderProps,
|
|
88
|
+
CardFooterProps,
|
|
89
|
+
CardTitleProps,
|
|
90
|
+
CardActionProps,
|
|
91
|
+
CardDescriptionProps,
|
|
92
|
+
CardContentProps,
|
|
93
|
+
} from "./ui/card";
|
|
94
|
+
|
|
95
|
+
export { Checkbox, CheckboxCard } from "./ui/checkbox";
|
|
96
|
+
export type { CheckboxProps, CheckboxCardProps } from "./ui/checkbox";
|
|
97
|
+
|
|
98
|
+
export { Chip } from "./ui/chip";
|
|
99
|
+
export type { ChipProps } from "./ui/chip";
|
|
100
|
+
|
|
101
|
+
export {
|
|
102
|
+
DataTable,
|
|
103
|
+
DataTableToolbar,
|
|
104
|
+
DataTablePagination,
|
|
105
|
+
DataTableSkeleton,
|
|
106
|
+
DataTableColumnHeader,
|
|
107
|
+
getSelectionColumn,
|
|
108
|
+
} from "./ui/data-table";
|
|
109
|
+
export type {
|
|
110
|
+
DataTableProps,
|
|
111
|
+
ColumnDef,
|
|
112
|
+
SortingState,
|
|
113
|
+
ColumnFiltersState,
|
|
114
|
+
VisibilityState,
|
|
115
|
+
RowSelectionState,
|
|
116
|
+
} from "./ui/data-table";
|
|
117
|
+
|
|
118
|
+
export { DatePicker } from "./ui/date-picker";
|
|
119
|
+
export type { DatePickerProps } from "./ui/date-picker";
|
|
120
|
+
|
|
121
|
+
export {
|
|
122
|
+
Dialog,
|
|
123
|
+
DialogClose,
|
|
124
|
+
DialogContent,
|
|
125
|
+
DialogDescription,
|
|
126
|
+
DialogFooter,
|
|
127
|
+
DialogHeader,
|
|
128
|
+
DialogOverlay,
|
|
129
|
+
DialogPortal,
|
|
130
|
+
DialogTitle,
|
|
131
|
+
DialogTrigger,
|
|
132
|
+
} from "./ui/dialog";
|
|
133
|
+
export type {
|
|
134
|
+
DialogProps,
|
|
135
|
+
DialogCloseProps,
|
|
136
|
+
DialogContentProps,
|
|
137
|
+
DialogDescriptionProps,
|
|
138
|
+
DialogFooterProps,
|
|
139
|
+
DialogHeaderProps,
|
|
140
|
+
DialogOverlayProps,
|
|
141
|
+
DialogPortalProps,
|
|
142
|
+
DialogTitleProps,
|
|
143
|
+
DialogTriggerProps,
|
|
144
|
+
} from "./ui/dialog";
|
|
145
|
+
|
|
146
|
+
export {
|
|
147
|
+
Drawer,
|
|
148
|
+
DrawerPortal,
|
|
149
|
+
DrawerOverlay,
|
|
150
|
+
DrawerTrigger,
|
|
151
|
+
DrawerClose,
|
|
152
|
+
DrawerContent,
|
|
153
|
+
DrawerHeader,
|
|
154
|
+
DrawerFooter,
|
|
155
|
+
DrawerTitle,
|
|
156
|
+
DrawerDescription,
|
|
157
|
+
} from "./ui/drawer";
|
|
158
|
+
export type {
|
|
159
|
+
DrawerProps,
|
|
160
|
+
DrawerPortalProps,
|
|
161
|
+
DrawerOverlayProps,
|
|
162
|
+
DrawerTriggerProps,
|
|
163
|
+
DrawerCloseProps,
|
|
164
|
+
DrawerContentProps,
|
|
165
|
+
DrawerHeaderProps,
|
|
166
|
+
DrawerFooterProps,
|
|
167
|
+
DrawerTitleProps,
|
|
168
|
+
DrawerDescriptionProps,
|
|
169
|
+
} from "./ui/drawer";
|
|
170
|
+
|
|
171
|
+
export {
|
|
172
|
+
DropdownMenu,
|
|
173
|
+
DropdownMenuPortal,
|
|
174
|
+
DropdownMenuTrigger,
|
|
175
|
+
DropdownMenuContent,
|
|
176
|
+
DropdownMenuGroup,
|
|
177
|
+
DropdownMenuLabel,
|
|
178
|
+
DropdownMenuItem,
|
|
179
|
+
DropdownMenuCheckboxItem,
|
|
180
|
+
DropdownMenuRadioGroup,
|
|
181
|
+
DropdownMenuRadioItem,
|
|
182
|
+
DropdownMenuSeparator,
|
|
183
|
+
DropdownMenuShortcut,
|
|
184
|
+
DropdownMenuSub,
|
|
185
|
+
DropdownMenuSubTrigger,
|
|
186
|
+
DropdownMenuSubContent,
|
|
187
|
+
} from "./ui/dropdown-menu";
|
|
188
|
+
export type {
|
|
189
|
+
DropdownMenuProps,
|
|
190
|
+
DropdownMenuPortalProps,
|
|
191
|
+
DropdownMenuTriggerProps,
|
|
192
|
+
DropdownMenuContentProps,
|
|
193
|
+
DropdownMenuGroupProps,
|
|
194
|
+
DropdownMenuLabelProps,
|
|
195
|
+
DropdownMenuItemProps,
|
|
196
|
+
DropdownMenuCheckboxItemProps,
|
|
197
|
+
DropdownMenuRadioGroupProps,
|
|
198
|
+
DropdownMenuRadioItemProps,
|
|
199
|
+
DropdownMenuSeparatorProps,
|
|
200
|
+
DropdownMenuShortcutProps,
|
|
201
|
+
DropdownMenuSubProps,
|
|
202
|
+
DropdownMenuSubTriggerProps,
|
|
203
|
+
DropdownMenuSubContentProps,
|
|
204
|
+
} from "./ui/dropdown-menu";
|
|
205
|
+
|
|
206
|
+
export {
|
|
207
|
+
Empty,
|
|
208
|
+
EmptyHeader,
|
|
209
|
+
EmptyTitle,
|
|
210
|
+
EmptyDescription,
|
|
211
|
+
EmptyContent,
|
|
212
|
+
EmptyMedia,
|
|
213
|
+
} from "./ui/empty";
|
|
214
|
+
export type {
|
|
215
|
+
EmptyProps,
|
|
216
|
+
EmptyHeaderProps,
|
|
217
|
+
EmptyTitleProps,
|
|
218
|
+
EmptyDescriptionProps,
|
|
219
|
+
EmptyContentProps,
|
|
220
|
+
EmptyMediaProps,
|
|
221
|
+
} from "./ui/empty";
|
|
222
|
+
|
|
223
|
+
export {
|
|
224
|
+
Field,
|
|
225
|
+
FieldLabel,
|
|
226
|
+
FieldDescription,
|
|
227
|
+
FieldError,
|
|
228
|
+
FieldGroup,
|
|
229
|
+
FieldLegend,
|
|
230
|
+
FieldSeparator,
|
|
231
|
+
FieldSet,
|
|
232
|
+
FieldContent,
|
|
233
|
+
FieldTitle,
|
|
234
|
+
} from "./ui/field";
|
|
235
|
+
export type {
|
|
236
|
+
FieldProps,
|
|
237
|
+
FieldLabelProps,
|
|
238
|
+
FieldDescriptionProps,
|
|
239
|
+
FieldErrorProps,
|
|
240
|
+
FieldGroupProps,
|
|
241
|
+
FieldLegendProps,
|
|
242
|
+
FieldSeparatorProps,
|
|
243
|
+
FieldSetProps,
|
|
244
|
+
FieldContentProps,
|
|
245
|
+
FieldTitleProps,
|
|
246
|
+
} from "./ui/field";
|
|
247
|
+
|
|
248
|
+
export {
|
|
249
|
+
InputGroup,
|
|
250
|
+
InputGroupAddon,
|
|
251
|
+
InputGroupButton,
|
|
252
|
+
InputGroupText,
|
|
253
|
+
InputGroupInput,
|
|
254
|
+
InputGroupTextarea,
|
|
255
|
+
} from "./ui/input-group";
|
|
256
|
+
export type {
|
|
257
|
+
InputGroupProps,
|
|
258
|
+
InputGroupAddonProps,
|
|
259
|
+
InputGroupButtonProps,
|
|
260
|
+
InputGroupTextProps,
|
|
261
|
+
InputGroupInputProps,
|
|
262
|
+
InputGroupTextareaProps,
|
|
263
|
+
} from "./ui/input-group";
|
|
264
|
+
|
|
265
|
+
export {
|
|
266
|
+
InputOTP,
|
|
267
|
+
InputOTPGroup,
|
|
268
|
+
InputOTPSlot,
|
|
269
|
+
InputOTPSeparator,
|
|
270
|
+
} from "./ui/input-otp";
|
|
271
|
+
export type {
|
|
272
|
+
InputOTPProps,
|
|
273
|
+
InputOTPGroupProps,
|
|
274
|
+
InputOTPSlotProps,
|
|
275
|
+
InputOTPSeparatorProps,
|
|
276
|
+
} from "./ui/input-otp";
|
|
277
|
+
|
|
278
|
+
export { Input } from "./ui/input";
|
|
279
|
+
export type { InputProps } from "./ui/input";
|
|
280
|
+
|
|
281
|
+
export { Label } from "./ui/label";
|
|
282
|
+
export type { LabelProps } from "./ui/label";
|
|
283
|
+
|
|
284
|
+
export {
|
|
285
|
+
Pagination,
|
|
286
|
+
PaginationContent,
|
|
287
|
+
PaginationLink,
|
|
288
|
+
PaginationItem,
|
|
289
|
+
PaginationPrevious,
|
|
290
|
+
PaginationNext,
|
|
291
|
+
PaginationEllipsis,
|
|
292
|
+
} from "./ui/pagination";
|
|
293
|
+
export type {
|
|
294
|
+
PaginationProps,
|
|
295
|
+
PaginationContentProps,
|
|
296
|
+
PaginationLinkProps,
|
|
297
|
+
PaginationItemProps,
|
|
298
|
+
PaginationPreviousProps,
|
|
299
|
+
PaginationNextProps,
|
|
300
|
+
PaginationEllipsisProps,
|
|
301
|
+
} from "./ui/pagination";
|
|
302
|
+
|
|
303
|
+
export {
|
|
304
|
+
Popover,
|
|
305
|
+
PopoverTrigger,
|
|
306
|
+
PopoverContent,
|
|
307
|
+
PopoverAnchor,
|
|
308
|
+
PopoverHeader,
|
|
309
|
+
PopoverTitle,
|
|
310
|
+
PopoverDescription,
|
|
311
|
+
} from "./ui/popover";
|
|
312
|
+
export type {
|
|
313
|
+
PopoverProps,
|
|
314
|
+
PopoverTriggerProps,
|
|
315
|
+
PopoverContentProps,
|
|
316
|
+
PopoverAnchorProps,
|
|
317
|
+
PopoverHeaderProps,
|
|
318
|
+
PopoverTitleProps,
|
|
319
|
+
PopoverDescriptionProps,
|
|
320
|
+
} from "./ui/popover";
|
|
321
|
+
|
|
322
|
+
export { Progress } from "./ui/progress";
|
|
323
|
+
export type { ProgressProps } from "./ui/progress";
|
|
324
|
+
|
|
325
|
+
export { RadioGroup, RadioGroupItem, RadioGroupCard } from "./ui/radio-group";
|
|
326
|
+
export type {
|
|
327
|
+
RadioGroupProps,
|
|
328
|
+
RadioGroupItemProps,
|
|
329
|
+
RadioGroupCardProps,
|
|
330
|
+
} from "./ui/radio-group";
|
|
331
|
+
|
|
332
|
+
export {
|
|
333
|
+
Select,
|
|
334
|
+
SelectContent,
|
|
335
|
+
SelectGroup,
|
|
336
|
+
SelectItem,
|
|
337
|
+
SelectLabel,
|
|
338
|
+
SelectScrollDownButton,
|
|
339
|
+
SelectScrollUpButton,
|
|
340
|
+
SelectSeparator,
|
|
341
|
+
SelectTrigger,
|
|
342
|
+
SelectValue,
|
|
343
|
+
} from "./ui/select";
|
|
344
|
+
export type {
|
|
345
|
+
SelectProps,
|
|
346
|
+
SelectContentProps,
|
|
347
|
+
SelectGroupProps,
|
|
348
|
+
SelectItemProps,
|
|
349
|
+
SelectLabelProps,
|
|
350
|
+
SelectScrollDownButtonProps,
|
|
351
|
+
SelectScrollUpButtonProps,
|
|
352
|
+
SelectSeparatorProps,
|
|
353
|
+
SelectTriggerProps,
|
|
354
|
+
SelectValueProps,
|
|
355
|
+
} from "./ui/select";
|
|
356
|
+
|
|
357
|
+
export { Separator } from "./ui/separator";
|
|
358
|
+
export type { SeparatorProps } from "./ui/separator";
|
|
359
|
+
|
|
360
|
+
export {
|
|
361
|
+
Sheet,
|
|
362
|
+
SheetClose,
|
|
363
|
+
SheetContent,
|
|
364
|
+
SheetDescription,
|
|
365
|
+
SheetFooter,
|
|
366
|
+
SheetHeader,
|
|
367
|
+
SheetPortal,
|
|
368
|
+
SheetTitle,
|
|
369
|
+
SheetTrigger,
|
|
370
|
+
} from "./ui/sheet";
|
|
371
|
+
export type {
|
|
372
|
+
SheetProps,
|
|
373
|
+
SheetCloseProps,
|
|
374
|
+
SheetContentProps,
|
|
375
|
+
SheetDescriptionProps,
|
|
376
|
+
SheetFooterProps,
|
|
377
|
+
SheetHeaderProps,
|
|
378
|
+
SheetPortalProps,
|
|
379
|
+
SheetTitleProps,
|
|
380
|
+
SheetTriggerProps,
|
|
381
|
+
} from "./ui/sheet";
|
|
382
|
+
|
|
383
|
+
export { Skeleton } from "./ui/skeleton";
|
|
384
|
+
export type { SkeletonProps } from "./ui/skeleton";
|
|
385
|
+
|
|
386
|
+
export { Toaster } from "./ui/sonner";
|
|
387
|
+
|
|
388
|
+
export { Spinner, spinnerVariants } from "./ui/spinner";
|
|
389
|
+
export type { SpinnerProps } from "./ui/spinner";
|
|
390
|
+
|
|
391
|
+
export { Switch, SwitchCard } from "./ui/switch";
|
|
392
|
+
export type { SwitchProps, SwitchCardProps } from "./ui/switch";
|
|
393
|
+
|
|
394
|
+
export {
|
|
395
|
+
Table,
|
|
396
|
+
TableHeader,
|
|
397
|
+
TableBody,
|
|
398
|
+
TableFooter,
|
|
399
|
+
TableHead,
|
|
400
|
+
TableRow,
|
|
401
|
+
TableCell,
|
|
402
|
+
TableCaption,
|
|
403
|
+
} from "./ui/table";
|
|
404
|
+
export type {
|
|
405
|
+
TableProps,
|
|
406
|
+
TableHeaderProps,
|
|
407
|
+
TableBodyProps,
|
|
408
|
+
TableFooterProps,
|
|
409
|
+
TableHeadProps,
|
|
410
|
+
TableRowProps,
|
|
411
|
+
TableCellProps,
|
|
412
|
+
TableCaptionProps,
|
|
413
|
+
} from "./ui/table";
|
|
414
|
+
|
|
415
|
+
export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants } from "./ui/tabs";
|
|
416
|
+
export type {
|
|
417
|
+
TabsProps,
|
|
418
|
+
TabsListProps,
|
|
419
|
+
TabsTriggerProps,
|
|
420
|
+
TabsContentProps,
|
|
421
|
+
} from "./ui/tabs";
|
|
422
|
+
|
|
423
|
+
export { Textarea } from "./ui/textarea";
|
|
424
|
+
export type { TextareaProps } from "./ui/textarea";
|
|
425
|
+
|
|
426
|
+
export { ToggleGroup, ToggleGroupItem } from "./ui/toggle-group";
|
|
427
|
+
export type { ToggleGroupProps, ToggleGroupItemProps } from "./ui/toggle-group";
|
|
428
|
+
|
|
429
|
+
export { Toggle, toggleVariants } from "./ui/toggle";
|
|
430
|
+
export type { ToggleProps } from "./ui/toggle";
|
|
431
|
+
|
|
432
|
+
export {
|
|
433
|
+
Tooltip,
|
|
434
|
+
TooltipTrigger,
|
|
435
|
+
TooltipContent,
|
|
436
|
+
TooltipProvider,
|
|
437
|
+
} from "./ui/tooltip";
|
|
438
|
+
export type {
|
|
439
|
+
TooltipProps,
|
|
440
|
+
TooltipTriggerProps,
|
|
441
|
+
TooltipContentProps,
|
|
442
|
+
TooltipProviderProps,
|
|
443
|
+
} from "./ui/tooltip";
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accordion — WealthX DS overrides (shadcn base)
|
|
3
|
+
*
|
|
4
|
+
* Changes from shadcn default:
|
|
5
|
+
* - AccordionItem: removed `last:border-b-0` — consistent separator on every item
|
|
6
|
+
* - AccordionTrigger: `rounded-md` → `rounded-none` — WealthX sharp corners
|
|
7
|
+
* - AccordionTrigger: `items-start` → `items-center` — single-line trigger alignment
|
|
8
|
+
* - AccordionTrigger: `transition-all` → `transition-[color,opacity]` — scoped animation
|
|
9
|
+
* - AccordionTrigger: focus ring uses `foreground/30` instead of `ring/50` — no brand color
|
|
10
|
+
* - AccordionContent: inner wrapper uses `pb-4 text-muted-foreground`
|
|
11
|
+
*/
|
|
12
|
+
import { type ReactElement } from "react";
|
|
13
|
+
import * as React from "react";
|
|
14
|
+
import { ChevronDownIcon } from "lucide-react";
|
|
15
|
+
import { Accordion as AccordionPrimitive } from "@base-ui/react/accordion";
|
|
16
|
+
import { cn } from "@/lib/utils";
|
|
17
|
+
|
|
18
|
+
export type AccordionProps = React.ComponentProps<
|
|
19
|
+
typeof AccordionPrimitive.Root
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
function Accordion(props: AccordionProps): ReactElement {
|
|
23
|
+
return <AccordionPrimitive.Root data-slot="accordion" {...props} />;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type AccordionItemProps = React.ComponentProps<
|
|
27
|
+
typeof AccordionPrimitive.Item
|
|
28
|
+
>;
|
|
29
|
+
|
|
30
|
+
function AccordionItem({ className, ...props }: AccordionItemProps): ReactElement {
|
|
31
|
+
return (
|
|
32
|
+
<AccordionPrimitive.Item
|
|
33
|
+
className={cn("border-b", className)}
|
|
34
|
+
data-slot="accordion-item"
|
|
35
|
+
{...props}
|
|
36
|
+
/>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type AccordionTriggerProps = React.ComponentProps<
|
|
41
|
+
typeof AccordionPrimitive.Trigger
|
|
42
|
+
>;
|
|
43
|
+
|
|
44
|
+
function AccordionTrigger({
|
|
45
|
+
className,
|
|
46
|
+
children,
|
|
47
|
+
...props
|
|
48
|
+
}: AccordionTriggerProps): ReactElement {
|
|
49
|
+
return (
|
|
50
|
+
<AccordionPrimitive.Header className="flex">
|
|
51
|
+
<AccordionPrimitive.Trigger
|
|
52
|
+
className={cn(
|
|
53
|
+
// layout
|
|
54
|
+
"flex flex-1 items-center justify-between gap-4 py-4 text-left",
|
|
55
|
+
// typography
|
|
56
|
+
"text-sm font-medium",
|
|
57
|
+
// base
|
|
58
|
+
"rounded-none outline-none transition-[color,opacity]",
|
|
59
|
+
// interactive states
|
|
60
|
+
"hover:underline",
|
|
61
|
+
"focus-visible:ring-2 focus-visible:ring-foreground/30",
|
|
62
|
+
"disabled:pointer-events-none disabled:opacity-50",
|
|
63
|
+
// chevron rotation when open
|
|
64
|
+
"[&[data-panel-open]>svg]:rotate-180",
|
|
65
|
+
className,
|
|
66
|
+
)}
|
|
67
|
+
data-slot="accordion-trigger"
|
|
68
|
+
{...props}
|
|
69
|
+
>
|
|
70
|
+
{children}
|
|
71
|
+
<ChevronDownIcon className="pointer-events-none size-4 shrink-0 text-muted-foreground transition-transform duration-200" />
|
|
72
|
+
</AccordionPrimitive.Trigger>
|
|
73
|
+
</AccordionPrimitive.Header>
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type AccordionContentProps = React.ComponentProps<
|
|
78
|
+
typeof AccordionPrimitive.Panel
|
|
79
|
+
>;
|
|
80
|
+
|
|
81
|
+
function AccordionContent({
|
|
82
|
+
className,
|
|
83
|
+
children,
|
|
84
|
+
...props
|
|
85
|
+
}: AccordionContentProps): ReactElement {
|
|
86
|
+
return (
|
|
87
|
+
<AccordionPrimitive.Panel
|
|
88
|
+
className="overflow-hidden text-sm h-(--accordion-panel-height) transition-[height] duration-200 ease-out data-starting-style:h-0 data-ending-style:h-0"
|
|
89
|
+
data-slot="accordion-content"
|
|
90
|
+
{...props}
|
|
91
|
+
>
|
|
92
|
+
<div className={cn("pb-4 text-muted-foreground", className)}>
|
|
93
|
+
{children}
|
|
94
|
+
</div>
|
|
95
|
+
</AccordionPrimitive.Panel>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|