@axis-ds/ui-react 1.4.0 → 1.5.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/README.md +46 -1
- package/dist/accordion/index.js +9 -27
- package/dist/accordion/index.mjs +58 -7
- package/dist/alert/index.js +9 -27
- package/dist/alert/index.mjs +54 -7
- package/dist/avatar/avatar.d.mts +24 -0
- package/dist/avatar/avatar.d.ts +24 -0
- package/dist/avatar/avatar.js +70 -0
- package/dist/{chunk-OQGMQL2A.mjs → avatar/avatar.mjs} +5 -26
- package/dist/avatar/index.d.mts +5 -26
- package/dist/avatar/index.d.ts +5 -26
- package/dist/avatar/index.js +4 -78
- package/dist/avatar/index.mjs +2 -5
- package/dist/avatar/variants.d.mts +14 -0
- package/dist/avatar/variants.d.ts +14 -0
- package/dist/avatar/variants.js +44 -0
- package/dist/avatar/variants.mjs +20 -0
- package/dist/badge/index.js +5 -23
- package/dist/badge/index.mjs +35 -5
- package/dist/breadcrumb/index.js +15 -33
- package/dist/breadcrumb/index.mjs +118 -10
- package/dist/button/index.js +5 -23
- package/dist/button/index.mjs +44 -5
- package/dist/card/index.js +13 -31
- package/dist/card/index.mjs +58 -9
- package/dist/checkbox/index.js +5 -23
- package/dist/checkbox/index.mjs +41 -4
- package/dist/collapsible/index.js +3 -5
- package/dist/collapsible/index.mjs +4 -5
- package/dist/command/index.d.mts +7 -7
- package/dist/command/index.d.ts +7 -7
- package/dist/command/index.js +16 -33
- package/dist/command/index.mjs +110 -10
- package/dist/dialog/index.js +18 -36
- package/dist/dialog/index.mjs +88 -13
- package/dist/dropdown-menu/index.js +26 -44
- package/dist/dropdown-menu/index.mjs +188 -18
- package/dist/index.d.mts +4 -10
- package/dist/index.d.ts +4 -10
- package/dist/index.js +153 -1907
- package/dist/index.mjs +105 -150
- package/dist/input/index.js +4 -22
- package/dist/input/index.mjs +28 -4
- package/dist/label/index.js +5 -23
- package/dist/label/index.mjs +17 -4
- package/dist/popover/index.js +6 -24
- package/dist/popover/index.mjs +21 -6
- package/dist/progress/index.js +7 -25
- package/dist/progress/index.mjs +71 -6
- package/dist/radio-group/index.js +6 -24
- package/dist/radio-group/index.mjs +40 -5
- package/dist/scroll-area/index.js +6 -24
- package/dist/scroll-area/index.mjs +34 -5
- package/dist/select/index.js +16 -34
- package/dist/select/index.mjs +129 -11
- package/dist/separator/index.js +4 -22
- package/dist/separator/index.mjs +21 -4
- package/dist/sheet/index.js +19 -37
- package/dist/sheet/index.mjs +122 -13
- package/dist/skeleton/index.js +4 -22
- package/dist/skeleton/index.mjs +19 -4
- package/dist/slider/index.js +4 -22
- package/dist/slider/index.mjs +34 -4
- package/dist/switch/index.js +5 -23
- package/dist/switch/index.mjs +29 -4
- package/dist/table/index.js +18 -36
- package/dist/table/index.mjs +96 -11
- package/dist/tabs/index.js +9 -27
- package/dist/tabs/index.mjs +47 -7
- package/dist/textarea/index.js +4 -22
- package/dist/textarea/index.mjs +20 -4
- package/dist/toast/index.js +16 -34
- package/dist/toast/index.mjs +94 -10
- package/dist/toggle/index.js +5 -23
- package/dist/toggle/index.mjs +34 -5
- package/dist/tooltip/index.js +7 -25
- package/dist/tooltip/index.mjs +26 -7
- package/dist/utils.d.mts +9 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.js +40 -0
- package/dist/{chunk-ZIF4PLK3.mjs → utils.mjs} +2 -4
- package/package.json +99 -5
- package/dist/chunk-22MWNPDF.mjs +0 -44
- package/dist/chunk-2OEPKE4D.mjs +0 -69
- package/dist/chunk-2XNUJNTG.mjs +0 -43
- package/dist/chunk-3N6NG7VT.mjs +0 -11
- package/dist/chunk-4I2F2NLP.mjs +0 -111
- package/dist/chunk-4PT43LON.mjs +0 -31
- package/dist/chunk-5NWFAQBM.mjs +0 -36
- package/dist/chunk-5Z2R3IHJ.mjs +0 -28
- package/dist/chunk-AY4B3RRN.mjs +0 -144
- package/dist/chunk-C5O47K7L.mjs +0 -71
- package/dist/chunk-CNU6645Y.mjs +0 -42
- package/dist/chunk-CY72AGI2.mjs +0 -105
- package/dist/chunk-DRFCNDVQ.mjs +0 -27
- package/dist/chunk-F2WSIT7F.mjs +0 -49
- package/dist/chunk-FZFREHAE.mjs +0 -139
- package/dist/chunk-HKYKDQ6C.mjs +0 -81
- package/dist/chunk-IS7NER3O.mjs +0 -37
- package/dist/chunk-MOBW7BKD.mjs +0 -49
- package/dist/chunk-PJX5UF3Y.mjs +0 -25
- package/dist/chunk-QXQWVRXN.mjs +0 -53
- package/dist/chunk-RFB4IABR.mjs +0 -108
- package/dist/chunk-SO2QSRGV.mjs +0 -58
- package/dist/chunk-TA62Q7YX.mjs +0 -37
- package/dist/chunk-TB33GTWS.mjs +0 -43
- package/dist/chunk-YI5OZRUB.mjs +0 -132
- package/dist/chunk-YZDRNV46.mjs +0 -210
- package/dist/chunk-Z4P43F5J.mjs +0 -65
- package/dist/chunk-Z65ZMFDH.mjs +0 -123
- package/dist/chunk-ZW6GY5PO.mjs +0 -29
|
@@ -1,21 +1,191 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
4
|
+
import { cn } from "../utils.mjs";
|
|
5
|
+
const DropdownMenu = DropdownMenuPrimitive.Root;
|
|
6
|
+
const DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
7
|
+
const DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
8
|
+
const DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
9
|
+
const DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
10
|
+
const DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
11
|
+
const DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
12
|
+
DropdownMenuPrimitive.SubTrigger,
|
|
13
|
+
{
|
|
14
|
+
ref,
|
|
15
|
+
className: cn(
|
|
16
|
+
"flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none",
|
|
17
|
+
"focus:bg-[var(--axis-surface-secondary)]",
|
|
18
|
+
"data-[state=open]:bg-[var(--axis-surface-secondary)]",
|
|
19
|
+
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
20
|
+
inset && "pl-8",
|
|
21
|
+
className
|
|
22
|
+
),
|
|
23
|
+
...props,
|
|
24
|
+
children: [
|
|
25
|
+
children,
|
|
26
|
+
/* @__PURE__ */ jsx(
|
|
27
|
+
"svg",
|
|
28
|
+
{
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
30
|
+
width: "16",
|
|
31
|
+
height: "16",
|
|
32
|
+
viewBox: "0 0 24 24",
|
|
33
|
+
fill: "none",
|
|
34
|
+
stroke: "currentColor",
|
|
35
|
+
strokeWidth: "2",
|
|
36
|
+
strokeLinecap: "round",
|
|
37
|
+
strokeLinejoin: "round",
|
|
38
|
+
className: "ml-auto",
|
|
39
|
+
children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
|
|
40
|
+
}
|
|
41
|
+
)
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
));
|
|
45
|
+
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
46
|
+
const DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
47
|
+
DropdownMenuPrimitive.SubContent,
|
|
48
|
+
{
|
|
49
|
+
ref,
|
|
50
|
+
className: cn(
|
|
51
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] p-1 text-[var(--axis-text-primary)] shadow-lg",
|
|
52
|
+
"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",
|
|
53
|
+
className
|
|
54
|
+
),
|
|
55
|
+
...props
|
|
56
|
+
}
|
|
57
|
+
));
|
|
58
|
+
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
59
|
+
const DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
60
|
+
DropdownMenuPrimitive.Content,
|
|
61
|
+
{
|
|
62
|
+
ref,
|
|
63
|
+
sideOffset,
|
|
64
|
+
className: cn(
|
|
65
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] p-1 text-[var(--axis-text-primary)] shadow-md",
|
|
66
|
+
"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",
|
|
67
|
+
className
|
|
68
|
+
),
|
|
69
|
+
...props
|
|
70
|
+
}
|
|
71
|
+
) }));
|
|
72
|
+
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
73
|
+
const DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
74
|
+
DropdownMenuPrimitive.Item,
|
|
75
|
+
{
|
|
76
|
+
ref,
|
|
77
|
+
className: cn(
|
|
78
|
+
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors",
|
|
79
|
+
"focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
|
|
80
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
81
|
+
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
82
|
+
inset && "pl-8",
|
|
83
|
+
className
|
|
84
|
+
),
|
|
85
|
+
...props
|
|
86
|
+
}
|
|
87
|
+
));
|
|
88
|
+
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
89
|
+
const DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
90
|
+
DropdownMenuPrimitive.CheckboxItem,
|
|
91
|
+
{
|
|
92
|
+
ref,
|
|
93
|
+
className: cn(
|
|
94
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors",
|
|
95
|
+
"focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
|
|
96
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
97
|
+
className
|
|
98
|
+
),
|
|
99
|
+
checked,
|
|
100
|
+
...props,
|
|
101
|
+
children: [
|
|
102
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
103
|
+
"svg",
|
|
104
|
+
{
|
|
105
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
106
|
+
width: "16",
|
|
107
|
+
height: "16",
|
|
108
|
+
viewBox: "0 0 24 24",
|
|
109
|
+
fill: "none",
|
|
110
|
+
stroke: "currentColor",
|
|
111
|
+
strokeWidth: "2",
|
|
112
|
+
strokeLinecap: "round",
|
|
113
|
+
strokeLinejoin: "round",
|
|
114
|
+
children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
|
|
115
|
+
}
|
|
116
|
+
) }) }),
|
|
117
|
+
children
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
));
|
|
121
|
+
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
122
|
+
const DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
123
|
+
DropdownMenuPrimitive.RadioItem,
|
|
124
|
+
{
|
|
125
|
+
ref,
|
|
126
|
+
className: cn(
|
|
127
|
+
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors",
|
|
128
|
+
"focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
|
|
129
|
+
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
130
|
+
className
|
|
131
|
+
),
|
|
132
|
+
...props,
|
|
133
|
+
children: [
|
|
134
|
+
/* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(
|
|
135
|
+
"svg",
|
|
136
|
+
{
|
|
137
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
138
|
+
width: "8",
|
|
139
|
+
height: "8",
|
|
140
|
+
viewBox: "0 0 8 8",
|
|
141
|
+
fill: "currentColor",
|
|
142
|
+
children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "4" })
|
|
143
|
+
}
|
|
144
|
+
) }) }),
|
|
145
|
+
children
|
|
146
|
+
]
|
|
147
|
+
}
|
|
148
|
+
));
|
|
149
|
+
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
150
|
+
const DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
151
|
+
DropdownMenuPrimitive.Label,
|
|
152
|
+
{
|
|
153
|
+
ref,
|
|
154
|
+
className: cn(
|
|
155
|
+
"px-2 py-1.5 text-sm font-semibold",
|
|
156
|
+
inset && "pl-8",
|
|
157
|
+
className
|
|
158
|
+
),
|
|
159
|
+
...props
|
|
160
|
+
}
|
|
161
|
+
));
|
|
162
|
+
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
163
|
+
const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
164
|
+
DropdownMenuPrimitive.Separator,
|
|
165
|
+
{
|
|
166
|
+
ref,
|
|
167
|
+
className: cn(
|
|
168
|
+
"-mx-1 my-1 h-px bg-[var(--axis-border-default)]",
|
|
169
|
+
className
|
|
170
|
+
),
|
|
171
|
+
...props
|
|
172
|
+
}
|
|
173
|
+
));
|
|
174
|
+
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
175
|
+
const DropdownMenuShortcut = ({
|
|
176
|
+
className,
|
|
177
|
+
...props
|
|
178
|
+
}) => /* @__PURE__ */ jsx(
|
|
179
|
+
"span",
|
|
180
|
+
{
|
|
181
|
+
className: cn(
|
|
182
|
+
"ml-auto text-xs tracking-widest text-[var(--axis-text-tertiary)]",
|
|
183
|
+
className
|
|
184
|
+
),
|
|
185
|
+
...props
|
|
186
|
+
}
|
|
187
|
+
);
|
|
188
|
+
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
19
189
|
export {
|
|
20
190
|
DropdownMenu,
|
|
21
191
|
DropdownMenuCheckboxItem,
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export { cn } from './utils.mjs';
|
|
2
2
|
export { Button, ButtonProps, buttonVariants } from './button/index.mjs';
|
|
3
3
|
export { Input, InputProps } from './input/index.mjs';
|
|
4
4
|
export { Label, LabelProps } from './label/index.mjs';
|
|
@@ -26,9 +26,11 @@ export { Badge, BadgeProps, badgeVariants } from './badge/index.mjs';
|
|
|
26
26
|
export { Progress, ProgressProps, progressIndicatorVariants, progressVariants } from './progress/index.mjs';
|
|
27
27
|
export { Skeleton, SkeletonProps } from './skeleton/index.mjs';
|
|
28
28
|
export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './toast/index.mjs';
|
|
29
|
-
export { Avatar, AvatarProps
|
|
29
|
+
export { Avatar, AvatarProps } from './avatar/avatar.mjs';
|
|
30
|
+
export { avatarVariants } from './avatar/variants.mjs';
|
|
30
31
|
export { ScrollArea, ScrollBar } from './scroll-area/index.mjs';
|
|
31
32
|
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator } from './command/index.mjs';
|
|
33
|
+
import 'clsx';
|
|
32
34
|
import 'class-variance-authority/types';
|
|
33
35
|
import 'react';
|
|
34
36
|
import 'class-variance-authority';
|
|
@@ -50,11 +52,3 @@ import '@radix-ui/react-popover';
|
|
|
50
52
|
import '@radix-ui/react-tooltip';
|
|
51
53
|
import '@radix-ui/react-toast';
|
|
52
54
|
import '@radix-ui/react-scroll-area';
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Tailwind CSS 클래스를 병합하는 유틸리티 함수
|
|
56
|
-
* clsx로 조건부 클래스를 처리하고 tailwind-merge로 충돌을 해결
|
|
57
|
-
*/
|
|
58
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
59
|
-
|
|
60
|
-
export { cn };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export { cn } from './utils.js';
|
|
2
2
|
export { Button, ButtonProps, buttonVariants } from './button/index.js';
|
|
3
3
|
export { Input, InputProps } from './input/index.js';
|
|
4
4
|
export { Label, LabelProps } from './label/index.js';
|
|
@@ -26,9 +26,11 @@ export { Badge, BadgeProps, badgeVariants } from './badge/index.js';
|
|
|
26
26
|
export { Progress, ProgressProps, progressIndicatorVariants, progressVariants } from './progress/index.js';
|
|
27
27
|
export { Skeleton, SkeletonProps } from './skeleton/index.js';
|
|
28
28
|
export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastTitle, ToastViewport } from './toast/index.js';
|
|
29
|
-
export { Avatar, AvatarProps
|
|
29
|
+
export { Avatar, AvatarProps } from './avatar/avatar.js';
|
|
30
|
+
export { avatarVariants } from './avatar/variants.js';
|
|
30
31
|
export { ScrollArea, ScrollBar } from './scroll-area/index.js';
|
|
31
32
|
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator } from './command/index.js';
|
|
33
|
+
import 'clsx';
|
|
32
34
|
import 'class-variance-authority/types';
|
|
33
35
|
import 'react';
|
|
34
36
|
import 'class-variance-authority';
|
|
@@ -50,11 +52,3 @@ import '@radix-ui/react-popover';
|
|
|
50
52
|
import '@radix-ui/react-tooltip';
|
|
51
53
|
import '@radix-ui/react-toast';
|
|
52
54
|
import '@radix-ui/react-scroll-area';
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Tailwind CSS 클래스를 병합하는 유틸리티 함수
|
|
56
|
-
* clsx로 조건부 클래스를 처리하고 tailwind-merge로 충돌을 해결
|
|
57
|
-
*/
|
|
58
|
-
declare function cn(...inputs: ClassValue[]): string;
|
|
59
|
-
|
|
60
|
-
export { cn };
|