@axis-ds/ui-react 1.1.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/LICENSE +21 -0
- package/README.md +42 -0
- package/dist/accordion/index.d.mts +13 -0
- package/dist/accordion/index.d.ts +13 -0
- package/dist/accordion/index.js +111 -0
- package/dist/accordion/index.mjs +13 -0
- package/dist/alert/index.d.mts +21 -0
- package/dist/alert/index.d.ts +21 -0
- package/dist/alert/index.js +104 -0
- package/dist/alert/index.mjs +13 -0
- package/dist/avatar/index.d.mts +26 -0
- package/dist/avatar/index.d.ts +26 -0
- package/dist/avatar/index.js +97 -0
- package/dist/avatar/index.mjs +9 -0
- package/dist/badge/index.d.mts +17 -0
- package/dist/badge/index.d.ts +17 -0
- package/dist/badge/index.js +84 -0
- package/dist/badge/index.mjs +9 -0
- package/dist/breadcrumb/index.d.mts +34 -0
- package/dist/breadcrumb/index.d.ts +34 -0
- package/dist/breadcrumb/index.js +177 -0
- package/dist/breadcrumb/index.mjs +19 -0
- package/dist/button/index.d.mts +21 -0
- package/dist/button/index.d.ts +21 -0
- package/dist/button/index.js +93 -0
- package/dist/button/index.mjs +9 -0
- package/dist/card/index.d.mts +19 -0
- package/dist/card/index.d.ts +19 -0
- package/dist/card/index.js +115 -0
- package/dist/card/index.mjs +17 -0
- package/dist/checkbox/index.d.mts +10 -0
- package/dist/checkbox/index.d.ts +10 -0
- package/dist/checkbox/index.js +88 -0
- package/dist/checkbox/index.mjs +7 -0
- package/dist/chunk-3H7DF7QZ.mjs +49 -0
- package/dist/chunk-3I222KOY.mjs +123 -0
- package/dist/chunk-3N6NG7VT.mjs +11 -0
- package/dist/chunk-4AWNSTZH.mjs +57 -0
- package/dist/chunk-4JQWQF3H.mjs +25 -0
- package/dist/chunk-54Y3KUM5.mjs +28 -0
- package/dist/chunk-5PIG7LWJ.mjs +139 -0
- package/dist/chunk-6TRDXC4W.mjs +69 -0
- package/dist/chunk-7OPZAWBW.mjs +58 -0
- package/dist/chunk-A5FJHFJQ.mjs +210 -0
- package/dist/chunk-AEBHTW7E.mjs +29 -0
- package/dist/chunk-AJERK2UH.mjs +49 -0
- package/dist/chunk-APUPJHAQ.mjs +43 -0
- package/dist/chunk-AUXVXNU2.mjs +105 -0
- package/dist/chunk-B2GWR74O.mjs +144 -0
- package/dist/chunk-CTWUJDKA.mjs +49 -0
- package/dist/chunk-E2C7WDLA.mjs +108 -0
- package/dist/chunk-ECF2JRI5.mjs +43 -0
- package/dist/chunk-EJNQRWUO.mjs +29 -0
- package/dist/chunk-F6RLUX3E.mjs +37 -0
- package/dist/chunk-FMXB7UCT.mjs +27 -0
- package/dist/chunk-HQB5TO4N.mjs +28 -0
- package/dist/chunk-HYW3HTBA.mjs +31 -0
- package/dist/chunk-IOOOCHIG.mjs +49 -0
- package/dist/chunk-IXLVGZWU.mjs +105 -0
- package/dist/chunk-JJY2MCTX.mjs +25 -0
- package/dist/chunk-JM45JPSK.mjs +43 -0
- package/dist/chunk-JQV5IP5Z.mjs +28 -0
- package/dist/chunk-KAIB45YN.mjs +132 -0
- package/dist/chunk-MARIIZN7.mjs +53 -0
- package/dist/chunk-NEZK6NO5.mjs +58 -0
- package/dist/chunk-NFFXJB2O.mjs +11 -0
- package/dist/chunk-O5SM54HW.mjs +71 -0
- package/dist/chunk-OIQGWWAS.mjs +42 -0
- package/dist/chunk-PJO7WJ4G.mjs +10 -0
- package/dist/chunk-PUERRSNI.mjs +37 -0
- package/dist/chunk-Q3KALTWT.mjs +37 -0
- package/dist/chunk-Q4WL74ZY.mjs +43 -0
- package/dist/chunk-RBVNJKEQ.mjs +210 -0
- package/dist/chunk-SCH6SFLB.mjs +37 -0
- package/dist/chunk-SLQ756Q7.mjs +36 -0
- package/dist/chunk-SPUFU4HC.mjs +139 -0
- package/dist/chunk-SR3JZW6T.mjs +210 -0
- package/dist/chunk-TD5OLTUB.mjs +62 -0
- package/dist/chunk-WVWKKHBP.mjs +44 -0
- package/dist/chunk-XHILRI24.mjs +111 -0
- package/dist/chunk-XW4HTSUY.mjs +123 -0
- package/dist/chunk-YKZAU3UV.mjs +144 -0
- package/dist/chunk-YVJ7BL4T.mjs +81 -0
- package/dist/chunk-ZU6FMFB5.mjs +31 -0
- package/dist/collapsible/index.d.mts +11 -0
- package/dist/collapsible/index.d.ts +11 -0
- package/dist/collapsible/index.js +47 -0
- package/dist/collapsible/index.mjs +10 -0
- package/dist/command/index.d.mts +86 -0
- package/dist/command/index.d.ts +86 -0
- package/dist/command/index.js +168 -0
- package/dist/command/index.mjs +19 -0
- package/dist/dialog/index.d.mts +32 -0
- package/dist/dialog/index.d.ts +32 -0
- package/dist/dialog/index.js +153 -0
- package/dist/dialog/index.mjs +25 -0
- package/dist/dropdown-menu/index.d.mts +57 -0
- package/dist/dropdown-menu/index.d.ts +57 -0
- package/dist/dropdown-menu/index.js +263 -0
- package/dist/dropdown-menu/index.mjs +35 -0
- package/dist/index.d.mts +60 -0
- package/dist/index.d.ts +60 -0
- package/dist/index.js +2029 -0
- package/dist/index.mjs +308 -0
- package/dist/input/index.d.mts +14 -0
- package/dist/input/index.d.ts +14 -0
- package/dist/input/index.js +75 -0
- package/dist/input/index.mjs +7 -0
- package/dist/label/index.d.mts +16 -0
- package/dist/label/index.d.ts +16 -0
- package/dist/label/index.js +64 -0
- package/dist/label/index.mjs +7 -0
- package/dist/popover/index.d.mts +11 -0
- package/dist/popover/index.d.ts +11 -0
- package/dist/popover/index.js +72 -0
- package/dist/popover/index.mjs +11 -0
- package/dist/progress/index.d.mts +27 -0
- package/dist/progress/index.d.ts +27 -0
- package/dist/progress/index.js +122 -0
- package/dist/progress/index.mjs +11 -0
- package/dist/radio-group/index.d.mts +9 -0
- package/dist/radio-group/index.d.ts +9 -0
- package/dist/radio-group/index.js +89 -0
- package/dist/radio-group/index.mjs +9 -0
- package/dist/scroll-area/index.d.mts +9 -0
- package/dist/scroll-area/index.d.ts +9 -0
- package/dist/scroll-area/index.js +83 -0
- package/dist/scroll-area/index.mjs +9 -0
- package/dist/select/index.d.mts +21 -0
- package/dist/select/index.d.ts +21 -0
- package/dist/select/index.js +190 -0
- package/dist/select/index.mjs +21 -0
- package/dist/separator/index.d.mts +13 -0
- package/dist/separator/index.d.ts +13 -0
- package/dist/separator/index.js +68 -0
- package/dist/separator/index.mjs +7 -0
- package/dist/sheet/index.d.mts +43 -0
- package/dist/sheet/index.d.ts +43 -0
- package/dist/sheet/index.js +187 -0
- package/dist/sheet/index.mjs +25 -0
- package/dist/skeleton/index.d.mts +9 -0
- package/dist/skeleton/index.d.ts +9 -0
- package/dist/skeleton/index.js +66 -0
- package/dist/skeleton/index.mjs +7 -0
- package/dist/slider/index.d.mts +7 -0
- package/dist/slider/index.d.ts +7 -0
- package/dist/slider/index.js +67 -0
- package/dist/slider/index.mjs +7 -0
- package/dist/switch/index.d.mts +7 -0
- package/dist/switch/index.d.ts +7 -0
- package/dist/switch/index.js +76 -0
- package/dist/switch/index.mjs +7 -0
- package/dist/table/index.d.mts +20 -0
- package/dist/table/index.d.ts +20 -0
- package/dist/table/index.js +157 -0
- package/dist/table/index.mjs +21 -0
- package/dist/tabs/index.d.mts +13 -0
- package/dist/tabs/index.d.ts +13 -0
- package/dist/tabs/index.js +100 -0
- package/dist/tabs/index.mjs +13 -0
- package/dist/textarea/index.d.mts +6 -0
- package/dist/textarea/index.d.ts +6 -0
- package/dist/textarea/index.js +67 -0
- package/dist/textarea/index.mjs +7 -0
- package/dist/toast/index.d.mts +23 -0
- package/dist/toast/index.d.ts +23 -0
- package/dist/toast/index.js +153 -0
- package/dist/toast/index.mjs +19 -0
- package/dist/toggle/index.d.mts +16 -0
- package/dist/toggle/index.d.ts +16 -0
- package/dist/toggle/index.js +83 -0
- package/dist/toggle/index.mjs +9 -0
- package/dist/tooltip/index.d.mts +13 -0
- package/dist/tooltip/index.d.ts +13 -0
- package/dist/tooltip/index.js +79 -0
- package/dist/tooltip/index.mjs +13 -0
- package/package.json +206 -0
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Switch
|
|
3
|
+
} from "./chunk-Q3KALTWT.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Table,
|
|
6
|
+
TableBody,
|
|
7
|
+
TableCaption,
|
|
8
|
+
TableCell,
|
|
9
|
+
TableFooter,
|
|
10
|
+
TableHead,
|
|
11
|
+
TableHeader,
|
|
12
|
+
TableRow
|
|
13
|
+
} from "./chunk-XHILRI24.mjs";
|
|
14
|
+
import {
|
|
15
|
+
Tabs,
|
|
16
|
+
TabsContent,
|
|
17
|
+
TabsList,
|
|
18
|
+
TabsTrigger
|
|
19
|
+
} from "./chunk-NEZK6NO5.mjs";
|
|
20
|
+
import {
|
|
21
|
+
Textarea
|
|
22
|
+
} from "./chunk-HQB5TO4N.mjs";
|
|
23
|
+
import {
|
|
24
|
+
Toast,
|
|
25
|
+
ToastAction,
|
|
26
|
+
ToastClose,
|
|
27
|
+
ToastDescription,
|
|
28
|
+
ToastProvider,
|
|
29
|
+
ToastTitle,
|
|
30
|
+
ToastViewport
|
|
31
|
+
} from "./chunk-E2C7WDLA.mjs";
|
|
32
|
+
import {
|
|
33
|
+
Toggle,
|
|
34
|
+
toggleVariants
|
|
35
|
+
} from "./chunk-JM45JPSK.mjs";
|
|
36
|
+
import {
|
|
37
|
+
Tooltip,
|
|
38
|
+
TooltipContent,
|
|
39
|
+
TooltipProvider,
|
|
40
|
+
TooltipTrigger
|
|
41
|
+
} from "./chunk-SCH6SFLB.mjs";
|
|
42
|
+
import {
|
|
43
|
+
Progress,
|
|
44
|
+
progressIndicatorVariants,
|
|
45
|
+
progressVariants
|
|
46
|
+
} from "./chunk-YVJ7BL4T.mjs";
|
|
47
|
+
import {
|
|
48
|
+
RadioGroup,
|
|
49
|
+
RadioGroupItem
|
|
50
|
+
} from "./chunk-3H7DF7QZ.mjs";
|
|
51
|
+
import {
|
|
52
|
+
ScrollArea,
|
|
53
|
+
ScrollBar
|
|
54
|
+
} from "./chunk-ECF2JRI5.mjs";
|
|
55
|
+
import {
|
|
56
|
+
Separator
|
|
57
|
+
} from "./chunk-AEBHTW7E.mjs";
|
|
58
|
+
import {
|
|
59
|
+
Select,
|
|
60
|
+
SelectContent,
|
|
61
|
+
SelectGroup,
|
|
62
|
+
SelectItem,
|
|
63
|
+
SelectLabel,
|
|
64
|
+
SelectSeparator,
|
|
65
|
+
SelectTrigger,
|
|
66
|
+
SelectValue
|
|
67
|
+
} from "./chunk-YKZAU3UV.mjs";
|
|
68
|
+
import {
|
|
69
|
+
Sheet,
|
|
70
|
+
SheetClose,
|
|
71
|
+
SheetContent,
|
|
72
|
+
SheetDescription,
|
|
73
|
+
SheetFooter,
|
|
74
|
+
SheetHeader,
|
|
75
|
+
SheetOverlay,
|
|
76
|
+
SheetPortal,
|
|
77
|
+
SheetTitle,
|
|
78
|
+
SheetTrigger
|
|
79
|
+
} from "./chunk-5PIG7LWJ.mjs";
|
|
80
|
+
import {
|
|
81
|
+
Skeleton
|
|
82
|
+
} from "./chunk-FMXB7UCT.mjs";
|
|
83
|
+
import {
|
|
84
|
+
Slider
|
|
85
|
+
} from "./chunk-54Y3KUM5.mjs";
|
|
86
|
+
import {
|
|
87
|
+
Checkbox
|
|
88
|
+
} from "./chunk-AJERK2UH.mjs";
|
|
89
|
+
import {
|
|
90
|
+
Collapsible,
|
|
91
|
+
CollapsibleContent,
|
|
92
|
+
CollapsibleTrigger
|
|
93
|
+
} from "./chunk-3N6NG7VT.mjs";
|
|
94
|
+
import {
|
|
95
|
+
Dialog,
|
|
96
|
+
DialogClose,
|
|
97
|
+
DialogContent,
|
|
98
|
+
DialogDescription,
|
|
99
|
+
DialogFooter,
|
|
100
|
+
DialogHeader,
|
|
101
|
+
DialogTitle,
|
|
102
|
+
DialogTrigger
|
|
103
|
+
} from "./chunk-IXLVGZWU.mjs";
|
|
104
|
+
import {
|
|
105
|
+
Command,
|
|
106
|
+
CommandEmpty,
|
|
107
|
+
CommandGroup,
|
|
108
|
+
CommandInput,
|
|
109
|
+
CommandItem,
|
|
110
|
+
CommandList,
|
|
111
|
+
CommandSeparator
|
|
112
|
+
} from "./chunk-XW4HTSUY.mjs";
|
|
113
|
+
import {
|
|
114
|
+
DropdownMenu,
|
|
115
|
+
DropdownMenuCheckboxItem,
|
|
116
|
+
DropdownMenuContent,
|
|
117
|
+
DropdownMenuGroup,
|
|
118
|
+
DropdownMenuItem,
|
|
119
|
+
DropdownMenuLabel,
|
|
120
|
+
DropdownMenuPortal,
|
|
121
|
+
DropdownMenuRadioGroup,
|
|
122
|
+
DropdownMenuRadioItem,
|
|
123
|
+
DropdownMenuSeparator,
|
|
124
|
+
DropdownMenuShortcut,
|
|
125
|
+
DropdownMenuSub,
|
|
126
|
+
DropdownMenuSubContent,
|
|
127
|
+
DropdownMenuSubTrigger,
|
|
128
|
+
DropdownMenuTrigger
|
|
129
|
+
} from "./chunk-SR3JZW6T.mjs";
|
|
130
|
+
import {
|
|
131
|
+
Input
|
|
132
|
+
} from "./chunk-SLQ756Q7.mjs";
|
|
133
|
+
import {
|
|
134
|
+
Label
|
|
135
|
+
} from "./chunk-4JQWQF3H.mjs";
|
|
136
|
+
import {
|
|
137
|
+
Popover,
|
|
138
|
+
PopoverContent,
|
|
139
|
+
PopoverTrigger
|
|
140
|
+
} from "./chunk-ZU6FMFB5.mjs";
|
|
141
|
+
import {
|
|
142
|
+
Alert,
|
|
143
|
+
AlertDescription,
|
|
144
|
+
AlertTitle,
|
|
145
|
+
alertVariants
|
|
146
|
+
} from "./chunk-TD5OLTUB.mjs";
|
|
147
|
+
import {
|
|
148
|
+
Avatar,
|
|
149
|
+
avatarVariants
|
|
150
|
+
} from "./chunk-4AWNSTZH.mjs";
|
|
151
|
+
import {
|
|
152
|
+
Accordion,
|
|
153
|
+
AccordionContent,
|
|
154
|
+
AccordionItem,
|
|
155
|
+
AccordionTrigger
|
|
156
|
+
} from "./chunk-6TRDXC4W.mjs";
|
|
157
|
+
import {
|
|
158
|
+
Badge,
|
|
159
|
+
badgeVariants
|
|
160
|
+
} from "./chunk-WVWKKHBP.mjs";
|
|
161
|
+
import {
|
|
162
|
+
Card,
|
|
163
|
+
CardContent,
|
|
164
|
+
CardDescription,
|
|
165
|
+
CardFooter,
|
|
166
|
+
CardHeader,
|
|
167
|
+
CardTitle
|
|
168
|
+
} from "./chunk-O5SM54HW.mjs";
|
|
169
|
+
import {
|
|
170
|
+
Button,
|
|
171
|
+
buttonVariants
|
|
172
|
+
} from "./chunk-MARIIZN7.mjs";
|
|
173
|
+
import {
|
|
174
|
+
Breadcrumb,
|
|
175
|
+
BreadcrumbEllipsis,
|
|
176
|
+
BreadcrumbItem,
|
|
177
|
+
BreadcrumbLink,
|
|
178
|
+
BreadcrumbList,
|
|
179
|
+
BreadcrumbPage,
|
|
180
|
+
BreadcrumbSeparator
|
|
181
|
+
} from "./chunk-KAIB45YN.mjs";
|
|
182
|
+
import {
|
|
183
|
+
cn
|
|
184
|
+
} from "./chunk-PJO7WJ4G.mjs";
|
|
185
|
+
export {
|
|
186
|
+
Accordion,
|
|
187
|
+
AccordionContent,
|
|
188
|
+
AccordionItem,
|
|
189
|
+
AccordionTrigger,
|
|
190
|
+
Alert,
|
|
191
|
+
AlertDescription,
|
|
192
|
+
AlertTitle,
|
|
193
|
+
Avatar,
|
|
194
|
+
Badge,
|
|
195
|
+
Breadcrumb,
|
|
196
|
+
BreadcrumbEllipsis,
|
|
197
|
+
BreadcrumbItem,
|
|
198
|
+
BreadcrumbLink,
|
|
199
|
+
BreadcrumbList,
|
|
200
|
+
BreadcrumbPage,
|
|
201
|
+
BreadcrumbSeparator,
|
|
202
|
+
Button,
|
|
203
|
+
Card,
|
|
204
|
+
CardContent,
|
|
205
|
+
CardDescription,
|
|
206
|
+
CardFooter,
|
|
207
|
+
CardHeader,
|
|
208
|
+
CardTitle,
|
|
209
|
+
Checkbox,
|
|
210
|
+
Collapsible,
|
|
211
|
+
CollapsibleContent,
|
|
212
|
+
CollapsibleTrigger,
|
|
213
|
+
Command,
|
|
214
|
+
CommandEmpty,
|
|
215
|
+
CommandGroup,
|
|
216
|
+
CommandInput,
|
|
217
|
+
CommandItem,
|
|
218
|
+
CommandList,
|
|
219
|
+
CommandSeparator,
|
|
220
|
+
Dialog,
|
|
221
|
+
DialogClose,
|
|
222
|
+
DialogContent,
|
|
223
|
+
DialogDescription,
|
|
224
|
+
DialogFooter,
|
|
225
|
+
DialogHeader,
|
|
226
|
+
DialogTitle,
|
|
227
|
+
DialogTrigger,
|
|
228
|
+
DropdownMenu,
|
|
229
|
+
DropdownMenuCheckboxItem,
|
|
230
|
+
DropdownMenuContent,
|
|
231
|
+
DropdownMenuGroup,
|
|
232
|
+
DropdownMenuItem,
|
|
233
|
+
DropdownMenuLabel,
|
|
234
|
+
DropdownMenuPortal,
|
|
235
|
+
DropdownMenuRadioGroup,
|
|
236
|
+
DropdownMenuRadioItem,
|
|
237
|
+
DropdownMenuSeparator,
|
|
238
|
+
DropdownMenuShortcut,
|
|
239
|
+
DropdownMenuSub,
|
|
240
|
+
DropdownMenuSubContent,
|
|
241
|
+
DropdownMenuSubTrigger,
|
|
242
|
+
DropdownMenuTrigger,
|
|
243
|
+
Input,
|
|
244
|
+
Label,
|
|
245
|
+
Popover,
|
|
246
|
+
PopoverContent,
|
|
247
|
+
PopoverTrigger,
|
|
248
|
+
Progress,
|
|
249
|
+
RadioGroup,
|
|
250
|
+
RadioGroupItem,
|
|
251
|
+
ScrollArea,
|
|
252
|
+
ScrollBar,
|
|
253
|
+
Select,
|
|
254
|
+
SelectContent,
|
|
255
|
+
SelectGroup,
|
|
256
|
+
SelectItem,
|
|
257
|
+
SelectLabel,
|
|
258
|
+
SelectSeparator,
|
|
259
|
+
SelectTrigger,
|
|
260
|
+
SelectValue,
|
|
261
|
+
Separator,
|
|
262
|
+
Sheet,
|
|
263
|
+
SheetClose,
|
|
264
|
+
SheetContent,
|
|
265
|
+
SheetDescription,
|
|
266
|
+
SheetFooter,
|
|
267
|
+
SheetHeader,
|
|
268
|
+
SheetOverlay,
|
|
269
|
+
SheetPortal,
|
|
270
|
+
SheetTitle,
|
|
271
|
+
SheetTrigger,
|
|
272
|
+
Skeleton,
|
|
273
|
+
Slider,
|
|
274
|
+
Switch,
|
|
275
|
+
Table,
|
|
276
|
+
TableBody,
|
|
277
|
+
TableCaption,
|
|
278
|
+
TableCell,
|
|
279
|
+
TableFooter,
|
|
280
|
+
TableHead,
|
|
281
|
+
TableHeader,
|
|
282
|
+
TableRow,
|
|
283
|
+
Tabs,
|
|
284
|
+
TabsContent,
|
|
285
|
+
TabsList,
|
|
286
|
+
TabsTrigger,
|
|
287
|
+
Textarea,
|
|
288
|
+
Toast,
|
|
289
|
+
ToastAction,
|
|
290
|
+
ToastClose,
|
|
291
|
+
ToastDescription,
|
|
292
|
+
ToastProvider,
|
|
293
|
+
ToastTitle,
|
|
294
|
+
ToastViewport,
|
|
295
|
+
Toggle,
|
|
296
|
+
Tooltip,
|
|
297
|
+
TooltipContent,
|
|
298
|
+
TooltipProvider,
|
|
299
|
+
TooltipTrigger,
|
|
300
|
+
alertVariants,
|
|
301
|
+
avatarVariants,
|
|
302
|
+
badgeVariants,
|
|
303
|
+
buttonVariants,
|
|
304
|
+
cn,
|
|
305
|
+
progressIndicatorVariants,
|
|
306
|
+
progressVariants,
|
|
307
|
+
toggleVariants
|
|
308
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/** Input 컴포넌트의 Props 인터페이스 */
|
|
4
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
+
/** 에러 상태 표시. true일 경우 테두리와 포커스 링이 에러 색상으로 변경된다. */
|
|
6
|
+
error?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 텍스트 입력 필드 컴포넌트.
|
|
10
|
+
* 다양한 HTML input 타입을 지원하며, 에러 상태와 비활성화 상태 스타일을 포함한다.
|
|
11
|
+
*/
|
|
12
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
|
+
|
|
14
|
+
export { Input, type InputProps };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/** Input 컴포넌트의 Props 인터페이스 */
|
|
4
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
+
/** 에러 상태 표시. true일 경우 테두리와 포커스 링이 에러 색상으로 변경된다. */
|
|
6
|
+
error?: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* 텍스트 입력 필드 컴포넌트.
|
|
10
|
+
* 다양한 HTML input 타입을 지원하며, 에러 상태와 비활성화 상태 스타일을 포함한다.
|
|
11
|
+
*/
|
|
12
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
13
|
+
|
|
14
|
+
export { Input, type InputProps };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/input/index.tsx
|
|
31
|
+
var input_exports = {};
|
|
32
|
+
__export(input_exports, {
|
|
33
|
+
Input: () => Input
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(input_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
|
|
38
|
+
// src/utils.ts
|
|
39
|
+
var import_clsx = require("clsx");
|
|
40
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
41
|
+
function cn(...inputs) {
|
|
42
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// src/input/index.tsx
|
|
46
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
47
|
+
var Input = React.forwardRef(
|
|
48
|
+
({ className, type, error, ...props }, ref) => {
|
|
49
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
50
|
+
"input",
|
|
51
|
+
{
|
|
52
|
+
type,
|
|
53
|
+
className: cn(
|
|
54
|
+
"flex h-10 w-full rounded-md border px-3 py-2 text-sm transition-colors",
|
|
55
|
+
"bg-[var(--axis-input-bg-default)] text-[var(--axis-input-text-default)]",
|
|
56
|
+
"border-[var(--axis-input-border-default)]",
|
|
57
|
+
"placeholder:text-[var(--axis-input-text-placeholder)]",
|
|
58
|
+
"hover:border-[var(--axis-input-border-hover)]",
|
|
59
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-input-border-focus)] focus-visible:ring-offset-2",
|
|
60
|
+
"disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-[var(--axis-input-bg-disabled)]",
|
|
61
|
+
"file:border-0 file:bg-transparent file:text-sm file:font-medium",
|
|
62
|
+
error && "border-[var(--axis-input-border-error)] focus-visible:ring-[var(--axis-input-border-error)]",
|
|
63
|
+
className
|
|
64
|
+
),
|
|
65
|
+
ref,
|
|
66
|
+
...props
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
Input.displayName = "Input";
|
|
72
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
73
|
+
0 && (module.exports = {
|
|
74
|
+
Input
|
|
75
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const labelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
7
|
+
/** Label 컴포넌트의 Props 인터페이스. Radix Label 프리미티브의 속성을 확장한다. */
|
|
8
|
+
interface LabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 폼 요소에 연결되는 레이블 컴포넌트.
|
|
12
|
+
* 접근성을 위해 htmlFor 속성으로 폼 요소와 연결할 수 있으며, 연결된 요소가 비활성화되면 자동으로 시각적 피드백을 제공한다.
|
|
13
|
+
*/
|
|
14
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
15
|
+
|
|
16
|
+
export { Label, type LabelProps };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const labelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
7
|
+
/** Label 컴포넌트의 Props 인터페이스. Radix Label 프리미티브의 속성을 확장한다. */
|
|
8
|
+
interface LabelProps extends React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>, VariantProps<typeof labelVariants> {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 폼 요소에 연결되는 레이블 컴포넌트.
|
|
12
|
+
* 접근성을 위해 htmlFor 속성으로 폼 요소와 연결할 수 있으며, 연결된 요소가 비활성화되면 자동으로 시각적 피드백을 제공한다.
|
|
13
|
+
*/
|
|
14
|
+
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
15
|
+
|
|
16
|
+
export { Label, type LabelProps };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/label/index.tsx
|
|
31
|
+
var label_exports = {};
|
|
32
|
+
__export(label_exports, {
|
|
33
|
+
Label: () => Label
|
|
34
|
+
});
|
|
35
|
+
module.exports = __toCommonJS(label_exports);
|
|
36
|
+
var React = __toESM(require("react"));
|
|
37
|
+
var LabelPrimitive = __toESM(require("@radix-ui/react-label"));
|
|
38
|
+
var import_class_variance_authority = require("class-variance-authority");
|
|
39
|
+
|
|
40
|
+
// src/utils.ts
|
|
41
|
+
var import_clsx = require("clsx");
|
|
42
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
43
|
+
function cn(...inputs) {
|
|
44
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// src/label/index.tsx
|
|
48
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
49
|
+
var labelVariants = (0, import_class_variance_authority.cva)(
|
|
50
|
+
"text-sm font-medium leading-none text-[var(--axis-text-primary)] peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
51
|
+
);
|
|
52
|
+
var Label = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
53
|
+
LabelPrimitive.Root,
|
|
54
|
+
{
|
|
55
|
+
ref,
|
|
56
|
+
className: cn(labelVariants(), className),
|
|
57
|
+
...props
|
|
58
|
+
}
|
|
59
|
+
));
|
|
60
|
+
Label.displayName = "Label";
|
|
61
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
62
|
+
0 && (module.exports = {
|
|
63
|
+
Label
|
|
64
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
|
|
4
|
+
/** 팝오버의 루트 컴포넌트. 열림/닫힘 상태를 관리한다. */
|
|
5
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
6
|
+
/** 팝오버를 여는 트리거 요소 컴포넌트 */
|
|
7
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
/** 팝오버의 본문 콘텐츠 컴포넌트. 포털을 통해 렌더링되며 트리거 요소에 상대적으로 위치한다. */
|
|
9
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
|
|
11
|
+
export { Popover, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
3
|
+
|
|
4
|
+
/** 팝오버의 루트 컴포넌트. 열림/닫힘 상태를 관리한다. */
|
|
5
|
+
declare const Popover: React.FC<PopoverPrimitive.PopoverProps>;
|
|
6
|
+
/** 팝오버를 여는 트리거 요소 컴포넌트 */
|
|
7
|
+
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverPrimitive.PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
+
/** 팝오버의 본문 콘텐츠 컴포넌트. 포털을 통해 렌더링되며 트리거 요소에 상대적으로 위치한다. */
|
|
9
|
+
declare const PopoverContent: React.ForwardRefExoticComponent<Omit<PopoverPrimitive.PopoverContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
|
|
11
|
+
export { Popover, PopoverContent, PopoverTrigger };
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/popover/index.tsx
|
|
31
|
+
var popover_exports = {};
|
|
32
|
+
__export(popover_exports, {
|
|
33
|
+
Popover: () => Popover,
|
|
34
|
+
PopoverContent: () => PopoverContent,
|
|
35
|
+
PopoverTrigger: () => PopoverTrigger
|
|
36
|
+
});
|
|
37
|
+
module.exports = __toCommonJS(popover_exports);
|
|
38
|
+
var React = __toESM(require("react"));
|
|
39
|
+
var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"));
|
|
40
|
+
|
|
41
|
+
// src/utils.ts
|
|
42
|
+
var import_clsx = require("clsx");
|
|
43
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
44
|
+
function cn(...inputs) {
|
|
45
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// src/popover/index.tsx
|
|
49
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
|
+
var Popover = PopoverPrimitive.Root;
|
|
51
|
+
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
52
|
+
var PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
53
|
+
PopoverPrimitive.Content,
|
|
54
|
+
{
|
|
55
|
+
ref,
|
|
56
|
+
align,
|
|
57
|
+
sideOffset,
|
|
58
|
+
className: cn(
|
|
59
|
+
"z-50 w-72 rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-primary)] p-4 text-[var(--axis-text-primary)] shadow-md outline-none",
|
|
60
|
+
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
61
|
+
className
|
|
62
|
+
),
|
|
63
|
+
...props
|
|
64
|
+
}
|
|
65
|
+
) }));
|
|
66
|
+
PopoverContent.displayName = "PopoverContent";
|
|
67
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
68
|
+
0 && (module.exports = {
|
|
69
|
+
Popover,
|
|
70
|
+
PopoverContent,
|
|
71
|
+
PopoverTrigger
|
|
72
|
+
});
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
|
|
5
|
+
declare const progressVariants: (props?: ({
|
|
6
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
7
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
|
+
declare const progressIndicatorVariants: (props?: ({
|
|
9
|
+
variant?: "default" | "destructive" | "success" | "warning" | null | undefined;
|
|
10
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
|
+
/** Progress 컴포넌트의 Props 인터페이스. 크기 및 색상 변형과 불확정 상태를 지원한다. */
|
|
12
|
+
interface ProgressProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof progressVariants>, VariantProps<typeof progressIndicatorVariants> {
|
|
13
|
+
/** 진행률 값 (0부터 max까지). 기본값은 0이다. */
|
|
14
|
+
value?: number;
|
|
15
|
+
/** 진행률의 최대값. 기본값은 100이다. */
|
|
16
|
+
max?: number;
|
|
17
|
+
/** 불확정 상태 여부. true일 경우 진행률 대신 로딩 애니메이션을 표시한다. */
|
|
18
|
+
indeterminate?: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* 진행 상태를 시각적으로 표시하는 프로그레스 바 컴포넌트.
|
|
22
|
+
* progressbar 역할(role)과 ARIA 속성을 포함하여 접근성을 보장한다.
|
|
23
|
+
* 크기(sm, default, lg)와 색상(default, success, warning, destructive) 변형을 지원한다.
|
|
24
|
+
*/
|
|
25
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
|
|
27
|
+
export { Progress, type ProgressProps, progressIndicatorVariants, progressVariants };
|