@sth87/shadcn-design-system 0.0.15 → 0.0.17
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/cjs/components/Button/ButtonGroup.cjs +1 -1
- package/dist/cjs/components/Calendar/Calendar.cjs +1 -1
- package/dist/cjs/components/Calendar/Calendar.cjs.map +1 -1
- package/dist/cjs/components/DatePicker/DatePicker.cjs.map +1 -1
- package/dist/cjs/components/DatePicker/RangePicker.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/packages/ui/src/components/button-group.cjs +1 -1
- package/dist/cjs/packages/ui/src/components/button-group.cjs.map +1 -1
- package/dist/esm/components/Button/ButtonGroup.js +28 -25
- package/dist/esm/components/Button/ButtonGroup.js.map +1 -1
- package/dist/esm/components/Calendar/Calendar.js +13 -11
- package/dist/esm/components/Calendar/Calendar.js.map +1 -1
- package/dist/esm/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/esm/components/DatePicker/RangePicker.js.map +1 -1
- package/dist/esm/index.js +225 -222
- package/dist/esm/packages/ui/src/components/button-group.js +47 -11
- package/dist/esm/packages/ui/src/components/button-group.js.map +1 -1
- package/dist/esm/packages/ui/src/components/calendar.js +1 -1
- package/dist/types/components/Button/index.d.ts +1 -1
- package/dist/types/components/Button/index.d.ts.map +1 -1
- package/dist/types/components/Calendar/index.d.ts +1 -1
- package/dist/types/components/Calendar/index.d.ts.map +1 -1
- package/dist/types/components/DatePicker/DatePicker.d.ts +0 -2
- package/dist/types/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/DatePicker/RangePicker.d.ts +0 -2
- package/dist/types/components/DatePicker/RangePicker.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { Command as
|
|
2
|
-
import { Popover as
|
|
3
|
-
import { Tour as
|
|
4
|
-
import { QRCode as
|
|
5
|
-
import { Stepper as
|
|
6
|
-
import { Pagination as
|
|
7
|
-
import { DropdownMenu as
|
|
8
|
-
import { ContextMenu as
|
|
9
|
-
import { FloatingLabel as
|
|
10
|
-
import { TimeGridView as
|
|
11
|
-
import { TimeColumnwheel as
|
|
12
|
-
import { Marquee as
|
|
1
|
+
import { Command as v } from "./components/Command/index.js";
|
|
2
|
+
import { Popover as D } from "./components/Popover/index.js";
|
|
3
|
+
import { Tour as z } from "./components/Tour/index.js";
|
|
4
|
+
import { QRCode as E, QRCode as L } from "./components/QrCode/index.js";
|
|
5
|
+
import { Stepper as Q } from "./components/Stepper/index.js";
|
|
6
|
+
import { Pagination as W } from "./components/Pagination/index.js";
|
|
7
|
+
import { DropdownMenu as q } from "./components/DropdownMenu/index.js";
|
|
8
|
+
import { ContextMenu as _ } from "./components/ContextMenu/index.js";
|
|
9
|
+
import { FloatingLabel as J } from "./components/FloatLabel.js";
|
|
10
|
+
import { TimeGridView as X } from "./components/TimeGridView.js";
|
|
11
|
+
import { TimeColumnwheel as Z } from "./components/WheelColumn.js";
|
|
12
|
+
import { Marquee as rr } from "./components/Marquee/index.js";
|
|
13
13
|
import "@radix-ui/react-slot";
|
|
14
14
|
import "./packages/ui/src/components/button.js";
|
|
15
|
-
import "./packages/ui/src/components/button-group.js";
|
|
15
|
+
import { ButtonGroupSeparator as or, ButtonGroupText as tr } from "./packages/ui/src/components/button-group.js";
|
|
16
16
|
import "./packages/ui/src/components/input.js";
|
|
17
17
|
import "./packages/ui/src/components/textarea.js";
|
|
18
|
-
import { Label as
|
|
18
|
+
import { Label as pr } from "./packages/ui/src/components/label.js";
|
|
19
19
|
import "./packages/ui/src/components/select.js";
|
|
20
20
|
import "./packages/ui/src/components/combobox.js";
|
|
21
21
|
import "react/jsx-runtime";
|
|
22
22
|
import "@radix-ui/react-tooltip";
|
|
23
|
-
import { cn as
|
|
23
|
+
import { cn as fr } from "./packages/ui/src/lib/utils.js";
|
|
24
24
|
import "react";
|
|
25
25
|
import "lucide-react";
|
|
26
26
|
import "react-day-picker";
|
|
@@ -29,7 +29,7 @@ import "@radix-ui/react-separator";
|
|
|
29
29
|
import "./packages/ui/src/components/switch.js";
|
|
30
30
|
import "vaul";
|
|
31
31
|
import "@radix-ui/react-scroll-area";
|
|
32
|
-
import { TreeView as
|
|
32
|
+
import { TreeView as xr } from "./packages/ui/src/components/tree-view.js";
|
|
33
33
|
import "@radix-ui/react-alert-dialog";
|
|
34
34
|
import "@radix-ui/react-avatar";
|
|
35
35
|
import "./packages/ui/src/components/badge.js";
|
|
@@ -40,215 +40,218 @@ import "@radix-ui/react-dialog";
|
|
|
40
40
|
import "@radix-ui/react-dropdown-menu";
|
|
41
41
|
import "./packages/ui/src/components/input-otp.js";
|
|
42
42
|
import "./packages/ui/src/components/radio-group.js";
|
|
43
|
-
import { useSidebar as
|
|
43
|
+
import { useSidebar as lr } from "./packages/ui/src/components/sidebar.js";
|
|
44
44
|
import "@radix-ui/react-slider";
|
|
45
45
|
import "./packages/ui/src/components/tabs.js";
|
|
46
46
|
import "./packages/ui/src/components/toggle.js";
|
|
47
|
-
import { useCallbackRef as
|
|
48
|
-
import { useDebouncedCallback as
|
|
49
|
-
import { useDebounceValue as
|
|
50
|
-
import { useIntersectionObserver as
|
|
51
|
-
import { useScript as
|
|
52
|
-
import { useScrollLock as
|
|
53
|
-
import { useOnClickOutside as
|
|
54
|
-
import { useEventListener as
|
|
55
|
-
import { useMediaQuery as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { ScrollArea as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { Handle as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { DataTable as
|
|
85
|
-
import { Avatar as
|
|
86
|
-
import { Calendar as
|
|
87
|
-
import { DatePicker as
|
|
88
|
-
import { RangePicker as
|
|
89
|
-
import { TimePicker as
|
|
90
|
-
import { Sidebar as
|
|
91
|
-
import { toast as
|
|
92
|
-
import { Tooltip as
|
|
93
|
-
import { Upload as
|
|
94
|
-
import { useQRCode as
|
|
95
|
-
import { useStepper as
|
|
96
|
-
import { ResizableHandle as
|
|
97
|
-
import { AccordionContent as
|
|
98
|
-
import { ImageViewer as
|
|
99
|
-
import { Carousel as
|
|
100
|
-
import { Root as
|
|
101
|
-
import { CropperTool as
|
|
102
|
-
import { base64ToBlob as
|
|
103
|
-
import { Cursor as
|
|
104
|
-
import { Item as
|
|
105
|
-
import { Masonry as
|
|
106
|
-
import { RotatingText as
|
|
107
|
-
import { FlipWords as
|
|
108
|
-
import { GradientText as
|
|
109
|
-
import { RollingText as
|
|
110
|
-
import { ShimmeringText as
|
|
111
|
-
import { SplittingText as
|
|
112
|
-
import { TextGenerateEffect as
|
|
113
|
-
import { TextHoverEffect as
|
|
114
|
-
import { WritingText as
|
|
47
|
+
import { useCallbackRef as sr } from "./hooks/use-callback-ref.js";
|
|
48
|
+
import { useDebouncedCallback as br } from "./hooks/use-debounced-callback.js";
|
|
49
|
+
import { useDebounceValue as Tr } from "./hooks/use-debounced-value.js";
|
|
50
|
+
import { useIntersectionObserver as cr } from "./hooks/use-intersection-observer.js";
|
|
51
|
+
import { useScript as Ir } from "./hooks/use-script.js";
|
|
52
|
+
import { useScrollLock as Mr } from "./hooks/use-scroll-lock.js";
|
|
53
|
+
import { useOnClickOutside as Pr } from "./hooks/use-on-click-outside.js";
|
|
54
|
+
import { useEventListener as wr } from "./hooks/use-event-listener.js";
|
|
55
|
+
import { useMediaQuery as kr } from "./hooks/use-media-query.js";
|
|
56
|
+
import { default as vr } from "./components/Badge/Badge.js";
|
|
57
|
+
import { default as Dr } from "./components/Breadcrumb/Breadcrumb.js";
|
|
58
|
+
import { default as zr } from "./components/Button/Button.js";
|
|
59
|
+
import { default as Er } from "./components/Button/ButtonGroup.js";
|
|
60
|
+
import { default as Or } from "./components/Checkbox/Checkbox.js";
|
|
61
|
+
import { default as Hr } from "./components/Collapsible/Collapsible.js";
|
|
62
|
+
import { default as Nr } from "./components/Dialog/Dialog.js";
|
|
63
|
+
import { default as Ur } from "./components/Glass/Glass.js";
|
|
64
|
+
import { default as jr } from "./components/Input/Input.js";
|
|
65
|
+
import { default as Kr } from "./components/InputOTP/InputOTP.js";
|
|
66
|
+
import { default as Yr } from "./components/Radio/Radio.js";
|
|
67
|
+
import { ScrollArea as $r } from "./components/ScrollArea/ScrollArea.js";
|
|
68
|
+
import { default as ee } from "./components/Select/Select.js";
|
|
69
|
+
import { default as te } from "./components/Separator/Separator.js";
|
|
70
|
+
import { default as pe } from "./components/Sheet/Sheet.js";
|
|
71
|
+
import { default as fe } from "./components/Skeleton/Skeleton.js";
|
|
72
|
+
import { default as xe } from "./components/Slider/Slider.js";
|
|
73
|
+
import { default as le } from "./components/Switch/Switch.js";
|
|
74
|
+
import { default as se } from "./components/Tabs/Tabs.js";
|
|
75
|
+
import { default as be } from "./components/Textarea/Textarea.js";
|
|
76
|
+
import { default as Te } from "./components/Toggle/Toggle.js";
|
|
77
|
+
import { default as ce } from "./components/Rate/Rate.js";
|
|
78
|
+
import { Handle as Ie, Panel as Re, default as Me, ResizableWrapper as Ge } from "./components/Resizable/Resizable.js";
|
|
79
|
+
import { default as Be } from "./components/Accordion/Accordion.js";
|
|
80
|
+
import { default as Ae } from "./lib/TextAnimation/BlurText.js";
|
|
81
|
+
import { default as Ve } from "./lib/TextAnimation/CircularText.js";
|
|
82
|
+
import { default as ye } from "./lib/TextAnimation/TextPressureEffect.js";
|
|
83
|
+
import { default as he } from "./lib/TextAnimation/TypingText.js";
|
|
84
|
+
import { DataTable as Fe } from "./components/Table/data-table.js";
|
|
85
|
+
import { Avatar as Le } from "./components/Avatar/Avatar.js";
|
|
86
|
+
import { Calendar as Qe, CalendarDayButton as He } from "./components/Calendar/Calendar.js";
|
|
87
|
+
import { DatePicker as Ne } from "./components/DatePicker/DatePicker.js";
|
|
88
|
+
import { RangePicker as Ue } from "./components/DatePicker/RangePicker.js";
|
|
89
|
+
import { TimePicker as je } from "./components/DatePicker/TimePicker.js";
|
|
90
|
+
import { Sidebar as Ke, SidebarContent as Xe, SidebarFooter as Ye, SidebarGroup as Ze, SidebarGroupAction as $e, SidebarGroupContent as ro, SidebarGroupLabel as eo, SidebarHeader as oo, SidebarInput as to, SidebarInset as ao, SidebarMenu as po, SidebarMenuAction as mo, SidebarMenuBadge as fo, SidebarMenuButton as io, SidebarMenuItem as xo, SidebarMenuSkeleton as uo, SidebarMenuSub as lo, SidebarMenuSubButton as so, SidebarMenuSubItem as no, SidebarProvider as bo, SidebarRail as So, SidebarSeparator as To, SidebarTrigger as Co } from "./components/Sidebar/Sidebar.js";
|
|
91
|
+
import { toast as go, Toaster as Io, toast as Ro } from "./components/Toast/Toast.js";
|
|
92
|
+
import { Tooltip as Go } from "./components/Tooltip/Tooltip.js";
|
|
93
|
+
import { Upload as Bo } from "./components/Upload/Upload.js";
|
|
94
|
+
import { useQRCode as Ao } from "./components/QrCode/QrCode.js";
|
|
95
|
+
import { useStepper as Vo } from "./components/Stepper/Stepper.js";
|
|
96
|
+
import { ResizableHandle as yo, ResizablePanel as Do, ResizablePanelGroup as ho } from "./packages/ui/src/components/resizable.js";
|
|
97
|
+
import { AccordionContent as Fo, AccordionItem as Eo, AccordionTrigger as Lo } from "./packages/ui/src/components/accordion.js";
|
|
98
|
+
import { ImageViewer as Qo, ImageViewerGroup as Ho, ImageViewerImage as Wo } from "./components/ImageViewer/ImageViewer.js";
|
|
99
|
+
import { Carousel as qo, CarouselSlide as Uo } from "./components/Carousel/Carousel.js";
|
|
100
|
+
import { Root as jo, Area as Jo, Image as Ko, Video as Xo, useCropper as Yo } from "./components/Cropper/Cropper.js";
|
|
101
|
+
import { CropperTool as $o, useCropperTool as rt } from "./components/Cropper/CropperTool.js";
|
|
102
|
+
import { base64ToBlob as ot, base64ToFile as tt, downloadImage as at, getCroppedImg as pt, rotateSize as mt } from "./components/Cropper/utils.js";
|
|
103
|
+
import { Cursor as it, CursorFollow as xt, CursorProvider as ut, TRANSITION_PRESETS as lt, useCursor as dt, useCursorFollow as st } from "./components/Interactive/CursorFollow.js";
|
|
104
|
+
import { Item as bt, MasonryItem as St, MasonryRoot as Tt, Root as Ct } from "./components/Masonry/Masonry.js";
|
|
105
|
+
import { Masonry as gt, MasonryComponent as It } from "./components/Masonry/MasonryWrapper.js";
|
|
106
|
+
import { RotatingText as Mt } from "./lib/TextAnimation/RotatingText.js";
|
|
107
|
+
import { FlipWords as Pt } from "./lib/TextAnimation/FlipWords.js";
|
|
108
|
+
import { GradientText as wt } from "./lib/TextAnimation/GradientText.js";
|
|
109
|
+
import { RollingText as kt } from "./lib/TextAnimation/RollingText.js";
|
|
110
|
+
import { ShimmeringText as vt } from "./lib/TextAnimation/ShimmeringText.js";
|
|
111
|
+
import { SplittingText as Dt } from "./lib/TextAnimation/SplittingText.js";
|
|
112
|
+
import { TextGenerateEffect as zt } from "./lib/TextAnimation/TextGenerateEffect.js";
|
|
113
|
+
import { TextHoverEffect as Et } from "./lib/TextAnimation/TextHoverEffect.js";
|
|
114
|
+
import { WritingText as Ot } from "./lib/TextAnimation/WritingText.js";
|
|
115
115
|
export {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
Pt as
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
$
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
oo as
|
|
194
|
-
to as
|
|
195
|
-
ao as
|
|
196
|
-
po as
|
|
197
|
-
mo as
|
|
198
|
-
fo as
|
|
199
|
-
io as
|
|
200
|
-
xo as
|
|
201
|
-
uo as
|
|
202
|
-
lo as
|
|
203
|
-
so as
|
|
204
|
-
no as
|
|
205
|
-
bo as
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
116
|
+
Be as Accordion,
|
|
117
|
+
Fo as AccordionContent,
|
|
118
|
+
Eo as AccordionItem,
|
|
119
|
+
Lo as AccordionTrigger,
|
|
120
|
+
Le as Avatar,
|
|
121
|
+
vr as Badge,
|
|
122
|
+
Ae as BlurText,
|
|
123
|
+
Dr as Breadcrumb,
|
|
124
|
+
zr as Button,
|
|
125
|
+
Er as ButtonGroup,
|
|
126
|
+
or as ButtonGroupSeparator,
|
|
127
|
+
tr as ButtonGroupText,
|
|
128
|
+
Qe as Calendar,
|
|
129
|
+
He as CalendarDayButton,
|
|
130
|
+
qo as Carousel,
|
|
131
|
+
Uo as CarouselSlide,
|
|
132
|
+
Or as Checkbox,
|
|
133
|
+
Ve as CircularText,
|
|
134
|
+
Hr as Collapsible,
|
|
135
|
+
v as Command,
|
|
136
|
+
_ as ContextMenu,
|
|
137
|
+
jo as Cropper,
|
|
138
|
+
Jo as CropperArea,
|
|
139
|
+
Ko as CropperImage,
|
|
140
|
+
$o as CropperTool,
|
|
141
|
+
Xo as CropperVideo,
|
|
142
|
+
it as Cursor,
|
|
143
|
+
xt as CursorFollow,
|
|
144
|
+
ut as CursorProvider,
|
|
145
|
+
Ne as DatePicker,
|
|
146
|
+
Nr as Dialog,
|
|
147
|
+
q as DropdownMenu,
|
|
148
|
+
Pt as FlipWords,
|
|
149
|
+
J as FloatingLabel,
|
|
150
|
+
Ur as Glass,
|
|
151
|
+
wt as GradientText,
|
|
152
|
+
Ie as Handle,
|
|
153
|
+
Qo as ImageViewer,
|
|
154
|
+
Ho as ImageViewerGroup,
|
|
155
|
+
Wo as ImageViewerImage,
|
|
156
|
+
jr as Input,
|
|
157
|
+
Kr as InputOTP,
|
|
158
|
+
bt as Item,
|
|
159
|
+
pr as Label,
|
|
160
|
+
rr as Marquee,
|
|
161
|
+
gt as Masonry,
|
|
162
|
+
It as MasonryComponent,
|
|
163
|
+
St as MasonryItem,
|
|
164
|
+
Tt as MasonryRoot,
|
|
165
|
+
W as Pagination,
|
|
166
|
+
Re as Panel,
|
|
167
|
+
D as Popover,
|
|
168
|
+
E as QRCode,
|
|
169
|
+
L as QrCode,
|
|
170
|
+
Yr as Radio,
|
|
171
|
+
Ue as RangePicker,
|
|
172
|
+
ce as Rate,
|
|
173
|
+
Me as Resizable,
|
|
174
|
+
yo as ResizableHandle,
|
|
175
|
+
Do as ResizablePanel,
|
|
176
|
+
ho as ResizablePanelGroup,
|
|
177
|
+
Ge as ResizableWrapper,
|
|
178
|
+
kt as RollingText,
|
|
179
|
+
Ct as Root,
|
|
180
|
+
Mt as RotatingText,
|
|
181
|
+
$r as ScrollArea,
|
|
182
|
+
ee as Select,
|
|
183
|
+
te as Separator,
|
|
184
|
+
pe as Sheet,
|
|
185
|
+
vt as ShimmeringText,
|
|
186
|
+
Ke as Sidebar,
|
|
187
|
+
Xe as SidebarContent,
|
|
188
|
+
Ye as SidebarFooter,
|
|
189
|
+
Ze as SidebarGroup,
|
|
190
|
+
$e as SidebarGroupAction,
|
|
191
|
+
ro as SidebarGroupContent,
|
|
192
|
+
eo as SidebarGroupLabel,
|
|
193
|
+
oo as SidebarHeader,
|
|
194
|
+
to as SidebarInput,
|
|
195
|
+
ao as SidebarInset,
|
|
196
|
+
po as SidebarMenu,
|
|
197
|
+
mo as SidebarMenuAction,
|
|
198
|
+
fo as SidebarMenuBadge,
|
|
199
|
+
io as SidebarMenuButton,
|
|
200
|
+
xo as SidebarMenuItem,
|
|
201
|
+
uo as SidebarMenuSkeleton,
|
|
202
|
+
lo as SidebarMenuSub,
|
|
203
|
+
so as SidebarMenuSubButton,
|
|
204
|
+
no as SidebarMenuSubItem,
|
|
205
|
+
bo as SidebarProvider,
|
|
206
|
+
So as SidebarRail,
|
|
207
|
+
To as SidebarSeparator,
|
|
208
|
+
Co as SidebarTrigger,
|
|
209
|
+
fe as Skeleton,
|
|
210
|
+
xe as Slider,
|
|
211
|
+
Dt as SplittingText,
|
|
212
|
+
Q as Stepper,
|
|
213
|
+
le as Switch,
|
|
214
|
+
lt as TRANSITION_PRESETS,
|
|
215
|
+
Fe as Table,
|
|
216
|
+
se as Tabs,
|
|
217
|
+
zt as TextGenerateEffect,
|
|
218
|
+
Et as TextHoverEffect,
|
|
219
|
+
ye as TextPressure,
|
|
220
|
+
be as Textarea,
|
|
221
|
+
X as TimeGridView,
|
|
222
|
+
je as TimePicker,
|
|
223
|
+
go as Toast,
|
|
224
|
+
Io as Toaster,
|
|
225
|
+
Te as Toggle,
|
|
226
|
+
Go as Tooltip,
|
|
227
|
+
z as Tour,
|
|
228
|
+
xr as TreeSelect,
|
|
229
|
+
he as TypingText,
|
|
230
|
+
Bo as Upload,
|
|
231
|
+
Z as WheelColumn,
|
|
232
|
+
Ot as WritingText,
|
|
233
|
+
ot as base64ToBlob,
|
|
234
|
+
tt as base64ToFile,
|
|
235
|
+
fr as cn,
|
|
236
|
+
at as downloadImage,
|
|
237
|
+
pt as getCroppedImg,
|
|
238
|
+
mt as rotateSize,
|
|
239
|
+
Ro as toast,
|
|
240
|
+
sr as useCallbackRef,
|
|
241
|
+
Yo as useCropper,
|
|
242
|
+
rt as useCropperTool,
|
|
243
|
+
dt as useCursor,
|
|
244
|
+
st as useCursorFollow,
|
|
245
|
+
Tr as useDebounceValue,
|
|
246
|
+
br as useDebouncedCallback,
|
|
247
|
+
wr as useEventListener,
|
|
248
|
+
cr as useIntersectionObserver,
|
|
249
|
+
kr as useMediaQuery,
|
|
250
|
+
Pr as useOnClickOutside,
|
|
251
|
+
Ao as useQRCode,
|
|
252
|
+
Ir as useScript,
|
|
253
|
+
Mr as useScrollLock,
|
|
254
|
+
lr as useSidebar,
|
|
255
|
+
Vo as useStepper
|
|
253
256
|
};
|
|
254
257
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import "@radix-ui/react-slot";
|
|
3
|
-
import { cva as
|
|
4
|
-
import { cn as
|
|
5
|
-
import "
|
|
6
|
-
const
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Slot as a } from "@radix-ui/react-slot";
|
|
3
|
+
import { cva as i } from "class-variance-authority";
|
|
4
|
+
import { cn as n } from "../lib/utils.js";
|
|
5
|
+
import { Separator as s } from "./separator.js";
|
|
6
|
+
const l = i(
|
|
7
7
|
"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
@@ -17,24 +17,60 @@ const a = n(
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
);
|
|
20
|
-
function
|
|
20
|
+
function h({
|
|
21
21
|
className: o,
|
|
22
22
|
orientation: t,
|
|
23
23
|
...r
|
|
24
24
|
}) {
|
|
25
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ e(
|
|
26
26
|
"div",
|
|
27
27
|
{
|
|
28
28
|
role: "group",
|
|
29
29
|
"data-slot": "button-group",
|
|
30
30
|
"data-orientation": t,
|
|
31
|
-
className:
|
|
31
|
+
className: n(l({ orientation: t }), o),
|
|
32
|
+
...r
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function g({
|
|
37
|
+
className: o,
|
|
38
|
+
asChild: t = !1,
|
|
39
|
+
...r
|
|
40
|
+
}) {
|
|
41
|
+
return /* @__PURE__ */ e(
|
|
42
|
+
t ? a : "div",
|
|
43
|
+
{
|
|
44
|
+
className: n(
|
|
45
|
+
"bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
|
|
46
|
+
o
|
|
47
|
+
),
|
|
48
|
+
...r
|
|
49
|
+
}
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
function v({
|
|
53
|
+
className: o,
|
|
54
|
+
orientation: t = "vertical",
|
|
55
|
+
...r
|
|
56
|
+
}) {
|
|
57
|
+
return /* @__PURE__ */ e(
|
|
58
|
+
s,
|
|
59
|
+
{
|
|
60
|
+
"data-slot": "button-group-separator",
|
|
61
|
+
orientation: t,
|
|
62
|
+
className: n(
|
|
63
|
+
"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
|
|
64
|
+
o
|
|
65
|
+
),
|
|
32
66
|
...r
|
|
33
67
|
}
|
|
34
68
|
);
|
|
35
69
|
}
|
|
36
70
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
71
|
+
h as ButtonGroup,
|
|
72
|
+
v as ButtonGroupSeparator,
|
|
73
|
+
g as ButtonGroupText,
|
|
74
|
+
l as buttonGroupVariants
|
|
39
75
|
};
|
|
40
76
|
//# sourceMappingURL=button-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-group.js","sources":["../../../../../../../../packages/ui/src/components/button-group.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@dsui/ui/lib/utils\";\nimport { Separator } from \"@dsui/ui/components/separator\";\n\nconst buttonGroupVariants = cva(\n \"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2\",\n {\n variants: {\n orientation: {\n horizontal:\n \"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\n vertical:\n \"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n }\n);\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupText({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<\"div\"> & {\n asChild?: boolean;\n}) {\n const Comp = asChild ? Slot : \"div\";\n\n return (\n <Comp\n className={cn(\n \"bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n \"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto\",\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n ButtonGroup,\n ButtonGroupSeparator,\n ButtonGroupText,\n buttonGroupVariants,\n};\n"],"names":["buttonGroupVariants","cva","ButtonGroup","className","orientation","props","jsx","cn"],"mappings":";;;;;AAMA,MAAMA,IAAsBC;AAAA,EAC1B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,aAAa;AAAA,QACX,YACE;AAAA,QACF,UACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,iBAAiB;AAAA,MACf,aAAa;AAAA,IAAA;AAAA,EACf;AAEJ;AAEA,SAASC,EAAY;AAAA,EACnB,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAGC;AACL,GAA2E;AACzE,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,aAAU;AAAA,MACV,oBAAkBF;AAAA,MAClB,WAAWG,EAAGP,EAAoB,EAAE,aAAAI,EAAA,CAAa,GAAGD,CAAS;AAAA,MAC5D,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
1
|
+
{"version":3,"file":"button-group.js","sources":["../../../../../../../../packages/ui/src/components/button-group.tsx"],"sourcesContent":["import { Slot } from \"@radix-ui/react-slot\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\n\nimport { cn } from \"@dsui/ui/lib/utils\";\nimport { Separator } from \"@dsui/ui/components/separator\";\n\nconst buttonGroupVariants = cva(\n \"flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2\",\n {\n variants: {\n orientation: {\n horizontal:\n \"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none\",\n vertical:\n \"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none\",\n },\n },\n defaultVariants: {\n orientation: \"horizontal\",\n },\n }\n);\n\nfunction ButtonGroup({\n className,\n orientation,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps<typeof buttonGroupVariants>) {\n return (\n <div\n role=\"group\"\n data-slot=\"button-group\"\n data-orientation={orientation}\n className={cn(buttonGroupVariants({ orientation }), className)}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupText({\n className,\n asChild = false,\n ...props\n}: React.ComponentProps<\"div\"> & {\n asChild?: boolean;\n}) {\n const Comp = asChild ? Slot : \"div\";\n\n return (\n <Comp\n className={cn(\n \"bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4\",\n className\n )}\n {...props}\n />\n );\n}\n\nfunction ButtonGroupSeparator({\n className,\n orientation = \"vertical\",\n ...props\n}: React.ComponentProps<typeof Separator>) {\n return (\n <Separator\n data-slot=\"button-group-separator\"\n orientation={orientation}\n className={cn(\n \"bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto\",\n className\n )}\n {...props}\n />\n );\n}\n\nexport {\n ButtonGroup,\n ButtonGroupSeparator,\n ButtonGroupText,\n buttonGroupVariants,\n};\n"],"names":["buttonGroupVariants","cva","ButtonGroup","className","orientation","props","jsx","cn","ButtonGroupText","asChild","Slot","ButtonGroupSeparator","Separator"],"mappings":";;;;;AAMA,MAAMA,IAAsBC;AAAA,EAC1B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,aAAa;AAAA,QACX,YACE;AAAA,QACF,UACE;AAAA,MAAA;AAAA,IACJ;AAAA,IAEF,iBAAiB;AAAA,MACf,aAAa;AAAA,IAAA;AAAA,EACf;AAEJ;AAEA,SAASC,EAAY;AAAA,EACnB,WAAAC;AAAA,EACA,aAAAC;AAAA,EACA,GAAGC;AACL,GAA2E;AACzE,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,MAAK;AAAA,MACL,aAAU;AAAA,MACV,oBAAkBF;AAAA,MAClB,WAAWG,EAAGP,EAAoB,EAAE,aAAAI,EAAA,CAAa,GAAGD,CAAS;AAAA,MAC5D,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASG,EAAgB;AAAA,EACvB,WAAAL;AAAA,EACA,SAAAM,IAAU;AAAA,EACV,GAAGJ;AACL,GAEG;AAGD,SACE,gBAAAC;AAAA,IAHWG,IAAUC,IAAO;AAAA,IAG3B;AAAA,MACC,WAAWH;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;AAEA,SAASM,EAAqB;AAAA,EAC5B,WAAAR;AAAA,EACA,aAAAC,IAAc;AAAA,EACd,GAAGC;AACL,GAA2C;AACzC,SACE,gBAAAC;AAAA,IAACM;AAAA,IAAA;AAAA,MACC,aAAU;AAAA,MACV,aAAAR;AAAA,MACA,WAAWG;AAAA,QACT;AAAA,QACAJ;AAAA,MAAA;AAAA,MAED,GAAGE;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
|
@@ -3,7 +3,7 @@ import * as x from "react";
|
|
|
3
3
|
import { ChevronLeftIcon as y, ChevronRightIcon as w, ChevronDownIcon as k } from "lucide-react";
|
|
4
4
|
import { getDefaultClassNames as v, DayPicker as z } from "react-day-picker";
|
|
5
5
|
import { cn as e } from "../lib/utils.js";
|
|
6
|
-
import {
|
|
6
|
+
import { Button as B, buttonVariants as _ } from "./button.js";
|
|
7
7
|
function j({
|
|
8
8
|
className: u,
|
|
9
9
|
classNames: l,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as Button, type ButtonProps } from "./Button";
|
|
2
|
-
export { default as ButtonGroup, type ButtonGroupProps } from "./ButtonGroup";
|
|
2
|
+
export { default as ButtonGroup, ButtonGroupSeparator, ButtonGroupText, type ButtonGroupProps, } from "./ButtonGroup";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Button/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAG/D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Button/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAG/D,OAAO,EACL,OAAO,IAAI,WAAW,EACtB,oBAAoB,EACpB,eAAe,EACf,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/Calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACzD,mBAAmB,YAAY,CAAC"}
|
|
@@ -50,6 +50,4 @@ export type DatePickerProps = Omit<InputProps, "value" | "onChange" | "onSelect"
|
|
|
50
50
|
};
|
|
51
51
|
};
|
|
52
52
|
export declare function DatePicker({ value, onChange, onSelect, calendarClassName, side, align, format, language, mask, closeOnSelect, calendarConfig, desktopMode, mobileMode, showOutsideDays, children, showTime, timeFormat, hideDate, numberOfMonths, variant, color, timePickerMode, hourInterval, minuteInterval, secondInterval, disabledTimes, disabledTimeRanges, showNowButton, nowButtonLabel, timePickerLabel, ...props }: DatePickerProps): import("react/jsx-runtime").JSX.Element;
|
|
53
|
-
export declare const CalendarDayButton: typeof SCalendarDayButton;
|
|
54
|
-
export type CalendarDayButtonProps = SCalendarDayButtonProps;
|
|
55
53
|
//# sourceMappingURL=DatePicker.d.ts.map
|