@axis-ds/ui-react 1.3.0 → 1.5.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/README.md +74 -0
- 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 +8 -6
- package/tailwind.css +10 -0
- 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
package/dist/chunk-YZDRNV46.mjs
DELETED
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
|
-
|
|
5
|
-
// src/dropdown-menu/index.tsx
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
10
|
-
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
11
|
-
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
12
|
-
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
13
|
-
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
14
|
-
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
15
|
-
var DropdownMenuSubTrigger = React.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
16
|
-
DropdownMenuPrimitive.SubTrigger,
|
|
17
|
-
{
|
|
18
|
-
ref,
|
|
19
|
-
className: cn(
|
|
20
|
-
"flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none",
|
|
21
|
-
"focus:bg-[var(--axis-surface-secondary)]",
|
|
22
|
-
"data-[state=open]:bg-[var(--axis-surface-secondary)]",
|
|
23
|
-
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
24
|
-
inset && "pl-8",
|
|
25
|
-
className
|
|
26
|
-
),
|
|
27
|
-
...props,
|
|
28
|
-
children: [
|
|
29
|
-
children,
|
|
30
|
-
/* @__PURE__ */ jsx(
|
|
31
|
-
"svg",
|
|
32
|
-
{
|
|
33
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
34
|
-
width: "16",
|
|
35
|
-
height: "16",
|
|
36
|
-
viewBox: "0 0 24 24",
|
|
37
|
-
fill: "none",
|
|
38
|
-
stroke: "currentColor",
|
|
39
|
-
strokeWidth: "2",
|
|
40
|
-
strokeLinecap: "round",
|
|
41
|
-
strokeLinejoin: "round",
|
|
42
|
-
className: "ml-auto",
|
|
43
|
-
children: /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" })
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
));
|
|
49
|
-
DropdownMenuSubTrigger.displayName = "DropdownMenuSubTrigger";
|
|
50
|
-
var DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
51
|
-
DropdownMenuPrimitive.SubContent,
|
|
52
|
-
{
|
|
53
|
-
ref,
|
|
54
|
-
className: cn(
|
|
55
|
-
"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",
|
|
56
|
-
"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",
|
|
57
|
-
className
|
|
58
|
-
),
|
|
59
|
-
...props
|
|
60
|
-
}
|
|
61
|
-
));
|
|
62
|
-
DropdownMenuSubContent.displayName = "DropdownMenuSubContent";
|
|
63
|
-
var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
64
|
-
DropdownMenuPrimitive.Content,
|
|
65
|
-
{
|
|
66
|
-
ref,
|
|
67
|
-
sideOffset,
|
|
68
|
-
className: cn(
|
|
69
|
-
"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",
|
|
70
|
-
"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",
|
|
71
|
-
className
|
|
72
|
-
),
|
|
73
|
-
...props
|
|
74
|
-
}
|
|
75
|
-
) }));
|
|
76
|
-
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
77
|
-
var DropdownMenuItem = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
78
|
-
DropdownMenuPrimitive.Item,
|
|
79
|
-
{
|
|
80
|
-
ref,
|
|
81
|
-
className: cn(
|
|
82
|
-
"relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors",
|
|
83
|
-
"focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
|
|
84
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
85
|
-
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
86
|
-
inset && "pl-8",
|
|
87
|
-
className
|
|
88
|
-
),
|
|
89
|
-
...props
|
|
90
|
-
}
|
|
91
|
-
));
|
|
92
|
-
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
93
|
-
var DropdownMenuCheckboxItem = React.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
94
|
-
DropdownMenuPrimitive.CheckboxItem,
|
|
95
|
-
{
|
|
96
|
-
ref,
|
|
97
|
-
className: cn(
|
|
98
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors",
|
|
99
|
-
"focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
|
|
100
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
101
|
-
className
|
|
102
|
-
),
|
|
103
|
-
checked,
|
|
104
|
-
...props,
|
|
105
|
-
children: [
|
|
106
|
-
/* @__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(
|
|
107
|
-
"svg",
|
|
108
|
-
{
|
|
109
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
110
|
-
width: "16",
|
|
111
|
-
height: "16",
|
|
112
|
-
viewBox: "0 0 24 24",
|
|
113
|
-
fill: "none",
|
|
114
|
-
stroke: "currentColor",
|
|
115
|
-
strokeWidth: "2",
|
|
116
|
-
strokeLinecap: "round",
|
|
117
|
-
strokeLinejoin: "round",
|
|
118
|
-
children: /* @__PURE__ */ jsx("path", { d: "M20 6 9 17l-5-5" })
|
|
119
|
-
}
|
|
120
|
-
) }) }),
|
|
121
|
-
children
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
));
|
|
125
|
-
DropdownMenuCheckboxItem.displayName = "DropdownMenuCheckboxItem";
|
|
126
|
-
var DropdownMenuRadioItem = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
|
|
127
|
-
DropdownMenuPrimitive.RadioItem,
|
|
128
|
-
{
|
|
129
|
-
ref,
|
|
130
|
-
className: cn(
|
|
131
|
-
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors",
|
|
132
|
-
"focus:bg-[var(--axis-surface-secondary)] focus:text-[var(--axis-text-primary)]",
|
|
133
|
-
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
134
|
-
className
|
|
135
|
-
),
|
|
136
|
-
...props,
|
|
137
|
-
children: [
|
|
138
|
-
/* @__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(
|
|
139
|
-
"svg",
|
|
140
|
-
{
|
|
141
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
142
|
-
width: "8",
|
|
143
|
-
height: "8",
|
|
144
|
-
viewBox: "0 0 8 8",
|
|
145
|
-
fill: "currentColor",
|
|
146
|
-
children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "4" })
|
|
147
|
-
}
|
|
148
|
-
) }) }),
|
|
149
|
-
children
|
|
150
|
-
]
|
|
151
|
-
}
|
|
152
|
-
));
|
|
153
|
-
DropdownMenuRadioItem.displayName = "DropdownMenuRadioItem";
|
|
154
|
-
var DropdownMenuLabel = React.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
155
|
-
DropdownMenuPrimitive.Label,
|
|
156
|
-
{
|
|
157
|
-
ref,
|
|
158
|
-
className: cn(
|
|
159
|
-
"px-2 py-1.5 text-sm font-semibold",
|
|
160
|
-
inset && "pl-8",
|
|
161
|
-
className
|
|
162
|
-
),
|
|
163
|
-
...props
|
|
164
|
-
}
|
|
165
|
-
));
|
|
166
|
-
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
167
|
-
var DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
168
|
-
DropdownMenuPrimitive.Separator,
|
|
169
|
-
{
|
|
170
|
-
ref,
|
|
171
|
-
className: cn(
|
|
172
|
-
"-mx-1 my-1 h-px bg-[var(--axis-border-default)]",
|
|
173
|
-
className
|
|
174
|
-
),
|
|
175
|
-
...props
|
|
176
|
-
}
|
|
177
|
-
));
|
|
178
|
-
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
179
|
-
var DropdownMenuShortcut = ({
|
|
180
|
-
className,
|
|
181
|
-
...props
|
|
182
|
-
}) => /* @__PURE__ */ jsx(
|
|
183
|
-
"span",
|
|
184
|
-
{
|
|
185
|
-
className: cn(
|
|
186
|
-
"ml-auto text-xs tracking-widest text-[var(--axis-text-tertiary)]",
|
|
187
|
-
className
|
|
188
|
-
),
|
|
189
|
-
...props
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
|
-
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
193
|
-
|
|
194
|
-
export {
|
|
195
|
-
DropdownMenu,
|
|
196
|
-
DropdownMenuTrigger,
|
|
197
|
-
DropdownMenuGroup,
|
|
198
|
-
DropdownMenuPortal,
|
|
199
|
-
DropdownMenuSub,
|
|
200
|
-
DropdownMenuRadioGroup,
|
|
201
|
-
DropdownMenuSubTrigger,
|
|
202
|
-
DropdownMenuSubContent,
|
|
203
|
-
DropdownMenuContent,
|
|
204
|
-
DropdownMenuItem,
|
|
205
|
-
DropdownMenuCheckboxItem,
|
|
206
|
-
DropdownMenuRadioItem,
|
|
207
|
-
DropdownMenuLabel,
|
|
208
|
-
DropdownMenuSeparator,
|
|
209
|
-
DropdownMenuShortcut
|
|
210
|
-
};
|
package/dist/chunk-Z4P43F5J.mjs
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
|
-
|
|
5
|
-
// src/alert/index.tsx
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import { cva } from "class-variance-authority";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
var alertVariants = cva(
|
|
10
|
-
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-current",
|
|
11
|
-
{
|
|
12
|
-
// 아이콘은 기본 클래스 [&>svg]:text-current로 변형의 글자색(text-*)을 따른다.
|
|
13
|
-
// 라이트 icon-success(#22C55E) · icon-warning(#EAB308)은 상태 배경 대비가 2.18:1 · 1.85:1로
|
|
14
|
-
// 비텍스트 기준 3:1에 못 미치므로 아이콘 색에 쓰지 않는다(글자색은 4.76:1 이상).
|
|
15
|
-
variants: {
|
|
16
|
-
variant: {
|
|
17
|
-
default: "bg-[var(--axis-surface-default)] text-[var(--axis-text-primary)] border-[var(--axis-border-default)]",
|
|
18
|
-
info: "bg-[var(--axis-surface-info)] text-[var(--axis-text-info)] border-[var(--axis-border-info)]",
|
|
19
|
-
success: "bg-[var(--axis-surface-success)] text-[var(--axis-text-success)] border-[var(--axis-border-success)]",
|
|
20
|
-
warning: "bg-[var(--axis-surface-warning)] text-[var(--axis-text-warning)] border-[var(--axis-border-warning)]",
|
|
21
|
-
destructive: "bg-[var(--axis-surface-error)] text-[var(--axis-text-error)] border-[var(--axis-border-error)]"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
defaultVariants: {
|
|
25
|
-
variant: "default"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
var Alert = React.forwardRef(
|
|
30
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
31
|
-
"div",
|
|
32
|
-
{
|
|
33
|
-
ref,
|
|
34
|
-
role: "alert",
|
|
35
|
-
className: cn(alertVariants({ variant }), className),
|
|
36
|
-
...props
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
);
|
|
40
|
-
Alert.displayName = "Alert";
|
|
41
|
-
var AlertTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
42
|
-
"h5",
|
|
43
|
-
{
|
|
44
|
-
ref,
|
|
45
|
-
className: cn("mb-1 font-medium leading-none tracking-tight", className),
|
|
46
|
-
...props
|
|
47
|
-
}
|
|
48
|
-
));
|
|
49
|
-
AlertTitle.displayName = "AlertTitle";
|
|
50
|
-
var AlertDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
51
|
-
"div",
|
|
52
|
-
{
|
|
53
|
-
ref,
|
|
54
|
-
className: cn("text-sm [&_p]:leading-relaxed", className),
|
|
55
|
-
...props
|
|
56
|
-
}
|
|
57
|
-
));
|
|
58
|
-
AlertDescription.displayName = "AlertDescription";
|
|
59
|
-
|
|
60
|
-
export {
|
|
61
|
-
alertVariants,
|
|
62
|
-
Alert,
|
|
63
|
-
AlertTitle,
|
|
64
|
-
AlertDescription
|
|
65
|
-
};
|
package/dist/chunk-Z65ZMFDH.mjs
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
|
-
|
|
5
|
-
// src/command/index.tsx
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import { Command as CommandPrimitive } from "cmdk";
|
|
8
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
var Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
10
|
-
CommandPrimitive,
|
|
11
|
-
{
|
|
12
|
-
ref,
|
|
13
|
-
className: cn(
|
|
14
|
-
"flex h-full w-full flex-col overflow-hidden rounded-md bg-[var(--axis-surface-default)] text-[var(--axis-text-primary)]",
|
|
15
|
-
className
|
|
16
|
-
),
|
|
17
|
-
...props
|
|
18
|
-
}
|
|
19
|
-
));
|
|
20
|
-
Command.displayName = "Command";
|
|
21
|
-
var CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs("div", { className: "flex items-center border-b border-[var(--axis-border-default)] px-3", children: [
|
|
22
|
-
/* @__PURE__ */ jsxs(
|
|
23
|
-
"svg",
|
|
24
|
-
{
|
|
25
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
-
width: "16",
|
|
27
|
-
height: "16",
|
|
28
|
-
viewBox: "0 0 24 24",
|
|
29
|
-
fill: "none",
|
|
30
|
-
stroke: "currentColor",
|
|
31
|
-
strokeWidth: "2",
|
|
32
|
-
strokeLinecap: "round",
|
|
33
|
-
strokeLinejoin: "round",
|
|
34
|
-
className: "mr-2 h-4 w-4 shrink-0 opacity-50",
|
|
35
|
-
children: [
|
|
36
|
-
/* @__PURE__ */ jsx("circle", { cx: "11", cy: "11", r: "8" }),
|
|
37
|
-
/* @__PURE__ */ jsx("path", { d: "m21 21-4.3-4.3" })
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
),
|
|
41
|
-
/* @__PURE__ */ jsx(
|
|
42
|
-
CommandPrimitive.Input,
|
|
43
|
-
{
|
|
44
|
-
ref,
|
|
45
|
-
className: cn(
|
|
46
|
-
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none",
|
|
47
|
-
"placeholder:text-[var(--axis-text-tertiary)]",
|
|
48
|
-
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
49
|
-
className
|
|
50
|
-
),
|
|
51
|
-
...props
|
|
52
|
-
}
|
|
53
|
-
)
|
|
54
|
-
] }));
|
|
55
|
-
CommandInput.displayName = "CommandInput";
|
|
56
|
-
var CommandList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
57
|
-
CommandPrimitive.List,
|
|
58
|
-
{
|
|
59
|
-
ref,
|
|
60
|
-
className: cn(
|
|
61
|
-
"max-h-[300px] overflow-y-auto overflow-x-hidden",
|
|
62
|
-
className
|
|
63
|
-
),
|
|
64
|
-
...props
|
|
65
|
-
}
|
|
66
|
-
));
|
|
67
|
-
CommandList.displayName = "CommandList";
|
|
68
|
-
var CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ jsx(
|
|
69
|
-
CommandPrimitive.Empty,
|
|
70
|
-
{
|
|
71
|
-
ref,
|
|
72
|
-
className: "py-6 text-center text-sm text-[var(--axis-text-secondary)]",
|
|
73
|
-
...props
|
|
74
|
-
}
|
|
75
|
-
));
|
|
76
|
-
CommandEmpty.displayName = "CommandEmpty";
|
|
77
|
-
var CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
78
|
-
CommandPrimitive.Group,
|
|
79
|
-
{
|
|
80
|
-
ref,
|
|
81
|
-
className: cn(
|
|
82
|
-
"overflow-hidden p-1 text-[var(--axis-text-primary)]",
|
|
83
|
-
"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-[var(--axis-text-secondary)]",
|
|
84
|
-
className
|
|
85
|
-
),
|
|
86
|
-
...props
|
|
87
|
-
}
|
|
88
|
-
));
|
|
89
|
-
CommandGroup.displayName = "CommandGroup";
|
|
90
|
-
var CommandSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
91
|
-
CommandPrimitive.Separator,
|
|
92
|
-
{
|
|
93
|
-
ref,
|
|
94
|
-
className: cn("-mx-1 h-px bg-[var(--axis-border-default)]", className),
|
|
95
|
-
...props
|
|
96
|
-
}
|
|
97
|
-
));
|
|
98
|
-
CommandSeparator.displayName = "CommandSeparator";
|
|
99
|
-
var CommandItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
100
|
-
CommandPrimitive.Item,
|
|
101
|
-
{
|
|
102
|
-
ref,
|
|
103
|
-
className: cn(
|
|
104
|
-
"relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",
|
|
105
|
-
"data-[selected=true]:bg-[var(--axis-surface-secondary)] data-[selected=true]:text-[var(--axis-text-primary)]",
|
|
106
|
-
"data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
|
|
107
|
-
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
108
|
-
className
|
|
109
|
-
),
|
|
110
|
-
...props
|
|
111
|
-
}
|
|
112
|
-
));
|
|
113
|
-
CommandItem.displayName = "CommandItem";
|
|
114
|
-
|
|
115
|
-
export {
|
|
116
|
-
Command,
|
|
117
|
-
CommandInput,
|
|
118
|
-
CommandList,
|
|
119
|
-
CommandEmpty,
|
|
120
|
-
CommandGroup,
|
|
121
|
-
CommandSeparator,
|
|
122
|
-
CommandItem
|
|
123
|
-
};
|
package/dist/chunk-ZW6GY5PO.mjs
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
cn
|
|
3
|
-
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
|
-
|
|
5
|
-
// src/separator/index.tsx
|
|
6
|
-
import * as React from "react";
|
|
7
|
-
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
8
|
-
import { jsx } from "react/jsx-runtime";
|
|
9
|
-
var Separator = React.forwardRef(
|
|
10
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
11
|
-
SeparatorPrimitive.Root,
|
|
12
|
-
{
|
|
13
|
-
ref,
|
|
14
|
-
decorative,
|
|
15
|
-
orientation,
|
|
16
|
-
className: cn(
|
|
17
|
-
"shrink-0 bg-[var(--axis-border-default)]",
|
|
18
|
-
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
|
|
19
|
-
className
|
|
20
|
-
),
|
|
21
|
-
...props
|
|
22
|
-
}
|
|
23
|
-
)
|
|
24
|
-
);
|
|
25
|
-
Separator.displayName = "Separator";
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
Separator
|
|
29
|
-
};
|