@dilipod/ui 0.2.14 → 0.3.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/dist/components/alert-dialog.d.ts +34 -0
- package/dist/components/alert-dialog.d.ts.map +1 -0
- package/dist/components/breadcrumbs.d.ts +30 -0
- package/dist/components/breadcrumbs.d.ts.map +1 -0
- package/dist/components/date-range-picker.d.ts +36 -0
- package/dist/components/date-range-picker.d.ts.map +1 -0
- package/dist/components/pagination.d.ts +29 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/popover.d.ts +10 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/radio-group.d.ts +17 -0
- package/dist/components/radio-group.d.ts.map +1 -0
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/settings-nav.d.ts +35 -0
- package/dist/components/settings-nav.d.ts.map +1 -0
- package/dist/components/skeleton.d.ts +28 -0
- package/dist/components/skeleton.d.ts.map +1 -0
- package/dist/components/step-progress.d.ts +28 -0
- package/dist/components/step-progress.d.ts.map +1 -0
- package/dist/components/switch.d.ts +15 -0
- package/dist/components/switch.d.ts.map +1 -0
- package/dist/components/tabs.d.ts +10 -0
- package/dist/components/tabs.d.ts.map +1 -0
- package/dist/components/toast.d.ts +2 -2
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/components/tooltip.d.ts +17 -0
- package/dist/components/tooltip.d.ts.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1273 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1219 -95
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -2
- package/src/components/alert-dialog.tsx +203 -0
- package/src/components/breadcrumbs.tsx +160 -0
- package/src/components/date-range-picker.tsx +183 -0
- package/src/components/dialog.stories.tsx +91 -0
- package/src/components/dialog.tsx +2 -2
- package/src/components/dropdown-menu.stories.tsx +102 -0
- package/src/components/dropdown-menu.tsx +2 -2
- package/src/components/pagination.tsx +220 -0
- package/src/components/popover.tsx +53 -0
- package/src/components/radio-group.tsx +125 -0
- package/src/components/select.tsx +2 -1
- package/src/components/settings-nav.tsx +137 -0
- package/src/components/skeleton.tsx +103 -0
- package/src/components/step-progress.tsx +205 -0
- package/src/components/switch.tsx +95 -0
- package/src/components/tabs.tsx +92 -0
- package/src/components/toast.tsx +4 -1
- package/src/components/tooltip.tsx +78 -0
- package/src/index.ts +78 -0
- package/src/styles/globals.css +99 -0
package/src/index.ts
CHANGED
|
@@ -68,6 +68,12 @@ export type { SelectProps } from './components/select'
|
|
|
68
68
|
export { Checkbox } from './components/checkbox'
|
|
69
69
|
export type { CheckboxProps } from './components/checkbox'
|
|
70
70
|
|
|
71
|
+
export { Switch, LabeledSwitch } from './components/switch'
|
|
72
|
+
export type { SwitchProps, LabeledSwitchProps } from './components/switch'
|
|
73
|
+
|
|
74
|
+
export { RadioGroup, RadioGroupItem, RadioGroupOption, RadioGroupCard } from './components/radio-group'
|
|
75
|
+
export type { RadioGroupOptionProps, RadioGroupCardProps } from './components/radio-group'
|
|
76
|
+
|
|
71
77
|
// Navigation & Layout Components
|
|
72
78
|
export {
|
|
73
79
|
Accordion,
|
|
@@ -151,6 +157,16 @@ export {
|
|
|
151
157
|
export { Divider } from './components/divider'
|
|
152
158
|
export type { DividerProps } from './components/divider'
|
|
153
159
|
|
|
160
|
+
// Tabs Components
|
|
161
|
+
export {
|
|
162
|
+
Tabs,
|
|
163
|
+
TabsList,
|
|
164
|
+
TabsTrigger,
|
|
165
|
+
TabsContent,
|
|
166
|
+
TabsListUnderline,
|
|
167
|
+
TabsTriggerUnderline,
|
|
168
|
+
} from './components/tabs'
|
|
169
|
+
|
|
154
170
|
// Dialog Components
|
|
155
171
|
export {
|
|
156
172
|
Dialog,
|
|
@@ -165,6 +181,44 @@ export {
|
|
|
165
181
|
DialogDescription,
|
|
166
182
|
} from './components/dialog'
|
|
167
183
|
|
|
184
|
+
// Alert Dialog Components
|
|
185
|
+
export {
|
|
186
|
+
AlertDialog,
|
|
187
|
+
AlertDialogPortal,
|
|
188
|
+
AlertDialogOverlay,
|
|
189
|
+
AlertDialogTrigger,
|
|
190
|
+
AlertDialogContent,
|
|
191
|
+
AlertDialogHeader,
|
|
192
|
+
AlertDialogFooter,
|
|
193
|
+
AlertDialogTitle,
|
|
194
|
+
AlertDialogDescription,
|
|
195
|
+
AlertDialogAction,
|
|
196
|
+
AlertDialogCancel,
|
|
197
|
+
ConfirmDialog,
|
|
198
|
+
} from './components/alert-dialog'
|
|
199
|
+
export type { ConfirmDialogProps } from './components/alert-dialog'
|
|
200
|
+
|
|
201
|
+
// Popover Components
|
|
202
|
+
export {
|
|
203
|
+
Popover,
|
|
204
|
+
PopoverTrigger,
|
|
205
|
+
PopoverContent,
|
|
206
|
+
PopoverAnchor,
|
|
207
|
+
PopoverClose,
|
|
208
|
+
PopoverArrow,
|
|
209
|
+
} from './components/popover'
|
|
210
|
+
|
|
211
|
+
// Tooltip Components
|
|
212
|
+
export {
|
|
213
|
+
Tooltip,
|
|
214
|
+
TooltipTrigger,
|
|
215
|
+
TooltipContent,
|
|
216
|
+
TooltipProvider,
|
|
217
|
+
TooltipArrow,
|
|
218
|
+
SimpleTooltip,
|
|
219
|
+
} from './components/tooltip'
|
|
220
|
+
export type { SimpleTooltipProps } from './components/tooltip'
|
|
221
|
+
|
|
168
222
|
// Toast Components
|
|
169
223
|
export {
|
|
170
224
|
ToastProvider,
|
|
@@ -181,6 +235,30 @@ export type { ToastProps, ToastActionElement } from './components/toast'
|
|
|
181
235
|
export { Toaster } from './components/toaster'
|
|
182
236
|
export { useToast, toast } from './components/use-toast'
|
|
183
237
|
|
|
238
|
+
// Skeleton/Loading Components
|
|
239
|
+
export { Skeleton, SkeletonText, SkeletonCard } from './components/skeleton'
|
|
240
|
+
export type { SkeletonProps, SkeletonTextProps, SkeletonCardProps } from './components/skeleton'
|
|
241
|
+
|
|
242
|
+
// Pagination Components
|
|
243
|
+
export { Pagination, SimplePagination } from './components/pagination'
|
|
244
|
+
export type { PaginationProps, SimplePaginationProps } from './components/pagination'
|
|
245
|
+
|
|
246
|
+
// Step Progress Components
|
|
247
|
+
export { StepProgress, StepDots } from './components/step-progress'
|
|
248
|
+
export type { Step, StepProgressProps, StepDotsProps } from './components/step-progress'
|
|
249
|
+
|
|
250
|
+
// Breadcrumb Components
|
|
251
|
+
export { Breadcrumbs, BreadcrumbLink } from './components/breadcrumbs'
|
|
252
|
+
export type { BreadcrumbItem, BreadcrumbsProps, BreadcrumbLinkProps } from './components/breadcrumbs'
|
|
253
|
+
|
|
254
|
+
// Date Range Picker Components
|
|
255
|
+
export { DateRangePicker, DateRangeSelect, getDateRangeFromPreset } from './components/date-range-picker'
|
|
256
|
+
export type { DateRangePreset, DateRangePickerProps, DateRangeSelectProps } from './components/date-range-picker'
|
|
257
|
+
|
|
258
|
+
// Settings Navigation Components
|
|
259
|
+
export { SettingsNav, SettingsNavLink } from './components/settings-nav'
|
|
260
|
+
export type { SettingsNavItem, SettingsNavGroup, SettingsNavProps, SettingsNavLinkProps } from './components/settings-nav'
|
|
261
|
+
|
|
184
262
|
// Utilities
|
|
185
263
|
export { cn } from './lib/utils'
|
|
186
264
|
|
package/src/styles/globals.css
CHANGED
|
@@ -1,5 +1,104 @@
|
|
|
1
1
|
@import "tailwindcss";
|
|
2
2
|
|
|
3
|
+
/* Animation keyframes for dialogs, dropdowns, popovers */
|
|
4
|
+
@keyframes dialogFadeIn {
|
|
5
|
+
from {
|
|
6
|
+
opacity: 0;
|
|
7
|
+
transform: translate(-50%, -50%) scale(0.98);
|
|
8
|
+
}
|
|
9
|
+
to {
|
|
10
|
+
opacity: 1;
|
|
11
|
+
transform: translate(-50%, -50%) scale(1);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@keyframes dialogFadeOut {
|
|
16
|
+
from {
|
|
17
|
+
opacity: 1;
|
|
18
|
+
transform: translate(-50%, -50%) scale(1);
|
|
19
|
+
}
|
|
20
|
+
to {
|
|
21
|
+
opacity: 0;
|
|
22
|
+
transform: translate(-50%, -50%) scale(0.98);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@keyframes overlayFadeIn {
|
|
27
|
+
from { opacity: 0; }
|
|
28
|
+
to { opacity: 1; }
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes overlayFadeOut {
|
|
32
|
+
from { opacity: 1; }
|
|
33
|
+
to { opacity: 0; }
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@keyframes popoverFadeIn {
|
|
37
|
+
from {
|
|
38
|
+
opacity: 0;
|
|
39
|
+
transform: scale(0.98);
|
|
40
|
+
}
|
|
41
|
+
to {
|
|
42
|
+
opacity: 1;
|
|
43
|
+
transform: scale(1);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@keyframes popoverFadeOut {
|
|
48
|
+
from {
|
|
49
|
+
opacity: 1;
|
|
50
|
+
transform: scale(1);
|
|
51
|
+
}
|
|
52
|
+
to {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
transform: scale(0.98);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Dialog overlay animations */
|
|
59
|
+
[data-radix-dialog-overlay][data-state="open"] {
|
|
60
|
+
animation: overlayFadeIn 100ms ease-out;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
[data-radix-dialog-overlay][data-state="closed"] {
|
|
64
|
+
animation: overlayFadeOut 100ms ease-in;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Dialog content animations */
|
|
68
|
+
[data-radix-dialog-content][data-state="open"],
|
|
69
|
+
[role="dialog"][data-state="open"] {
|
|
70
|
+
animation: dialogFadeIn 100ms ease-out;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
[data-radix-dialog-content][data-state="closed"],
|
|
74
|
+
[role="dialog"][data-state="closed"] {
|
|
75
|
+
animation: dialogFadeOut 100ms ease-in;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/* Dropdown menu animations */
|
|
79
|
+
[data-radix-dropdown-menu-content][data-state="open"],
|
|
80
|
+
[role="menu"][data-state="open"] {
|
|
81
|
+
animation: popoverFadeIn 100ms ease-out;
|
|
82
|
+
transform-origin: var(--radix-dropdown-menu-content-transform-origin, top);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
[data-radix-dropdown-menu-content][data-state="closed"],
|
|
86
|
+
[role="menu"][data-state="closed"] {
|
|
87
|
+
animation: popoverFadeOut 100ms ease-in;
|
|
88
|
+
transform-origin: var(--radix-dropdown-menu-content-transform-origin, top);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/* Sub-menu animations */
|
|
92
|
+
[data-radix-dropdown-menu-sub-content][data-state="open"] {
|
|
93
|
+
animation: popoverFadeIn 100ms ease-out;
|
|
94
|
+
transform-origin: var(--radix-dropdown-menu-content-transform-origin, top);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
[data-radix-dropdown-menu-sub-content][data-state="closed"] {
|
|
98
|
+
animation: popoverFadeOut 100ms ease-in;
|
|
99
|
+
transform-origin: var(--radix-dropdown-menu-content-transform-origin, top);
|
|
100
|
+
}
|
|
101
|
+
|
|
3
102
|
:root {
|
|
4
103
|
/* ===========================================
|
|
5
104
|
DILIPOD COLOR SYSTEM
|