@axis-ds/ui-react 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion/index.js +9 -1
- package/dist/accordion/index.mjs +2 -2
- package/dist/alert/index.js +17 -6
- package/dist/alert/index.mjs +2 -2
- package/dist/avatar/index.d.mts +1 -1
- package/dist/avatar/index.d.ts +1 -1
- package/dist/avatar/index.js +9 -1
- package/dist/avatar/index.mjs +2 -2
- package/dist/badge/index.js +10 -2
- package/dist/badge/index.mjs +2 -2
- package/dist/breadcrumb/index.js +9 -1
- package/dist/breadcrumb/index.mjs +2 -2
- package/dist/button/index.d.mts +2 -2
- package/dist/button/index.d.ts +2 -2
- package/dist/button/index.js +9 -1
- package/dist/button/index.mjs +2 -2
- package/dist/card/index.js +10 -2
- package/dist/card/index.mjs +2 -2
- package/dist/checkbox/index.js +11 -3
- package/dist/checkbox/index.mjs +2 -2
- package/dist/{chunk-WVWKKHBP.mjs → chunk-22MWNPDF.mjs} +2 -2
- package/dist/{chunk-6TRDXC4W.mjs → chunk-2OEPKE4D.mjs} +1 -1
- package/dist/{chunk-ECF2JRI5.mjs → chunk-2XNUJNTG.mjs} +1 -1
- package/dist/{chunk-XHILRI24.mjs → chunk-4I2F2NLP.mjs} +1 -1
- package/dist/{chunk-ZU6FMFB5.mjs → chunk-4PT43LON.mjs} +2 -2
- package/dist/{chunk-SLQ756Q7.mjs → chunk-5NWFAQBM.mjs} +1 -1
- package/dist/{chunk-HQB5TO4N.mjs → chunk-5Z2R3IHJ.mjs} +4 -4
- package/dist/{chunk-YKZAU3UV.mjs → chunk-AY4B3RRN.mjs} +1 -1
- package/dist/{chunk-O5SM54HW.mjs → chunk-C5O47K7L.mjs} +2 -2
- package/dist/{chunk-S7LWOK76.mjs → chunk-CNU6645Y.mjs} +2 -2
- package/dist/{chunk-IXLVGZWU.mjs → chunk-CY72AGI2.mjs} +2 -2
- package/dist/{chunk-FMXB7UCT.mjs → chunk-DRFCNDVQ.mjs} +1 -1
- package/dist/{chunk-3H7DF7QZ.mjs → chunk-F2WSIT7F.mjs} +3 -3
- package/dist/{chunk-5PIG7LWJ.mjs → chunk-FZFREHAE.mjs} +3 -3
- package/dist/{chunk-YVJ7BL4T.mjs → chunk-HKYKDQ6C.mjs} +5 -5
- package/dist/{chunk-SCH6SFLB.mjs → chunk-IS7NER3O.mjs} +1 -1
- package/dist/{chunk-AJERK2UH.mjs → chunk-MOBW7BKD.mjs} +3 -3
- package/dist/{chunk-4AWNSTZH.mjs → chunk-OQGMQL2A.mjs} +1 -1
- package/dist/{chunk-4JQWQF3H.mjs → chunk-PJX5UF3Y.mjs} +1 -1
- package/dist/{chunk-MARIIZN7.mjs → chunk-QXQWVRXN.mjs} +1 -1
- package/dist/{chunk-E2C7WDLA.mjs → chunk-RFB4IABR.mjs} +1 -1
- package/dist/{chunk-NEZK6NO5.mjs → chunk-SO2QSRGV.mjs} +1 -1
- package/dist/{chunk-Q3KALTWT.mjs → chunk-TA62Q7YX.mjs} +2 -2
- package/dist/{chunk-JM45JPSK.mjs → chunk-TB33GTWS.mjs} +2 -2
- package/dist/{chunk-KAIB45YN.mjs → chunk-YI5OZRUB.mjs} +1 -1
- package/dist/{chunk-SR3JZW6T.mjs → chunk-YZDRNV46.mjs} +3 -3
- package/dist/{chunk-TD5OLTUB.mjs → chunk-Z4P43F5J.mjs} +9 -6
- package/dist/{chunk-XW4HTSUY.mjs → chunk-Z65ZMFDH.mjs} +2 -2
- package/dist/chunk-ZIF4PLK3.mjs +18 -0
- package/dist/{chunk-AEBHTW7E.mjs → chunk-ZW6GY5PO.mjs} +1 -1
- package/dist/command/index.d.mts +7 -7
- package/dist/command/index.d.ts +7 -7
- package/dist/command/index.js +10 -2
- package/dist/command/index.mjs +2 -2
- package/dist/dialog/index.js +10 -2
- package/dist/dialog/index.mjs +2 -2
- package/dist/dropdown-menu/index.js +11 -3
- package/dist/dropdown-menu/index.mjs +2 -2
- package/dist/index.js +40 -29
- package/dist/index.mjs +30 -30
- package/dist/input/index.js +9 -1
- package/dist/input/index.mjs +2 -2
- package/dist/label/index.js +9 -1
- package/dist/label/index.mjs +2 -2
- package/dist/popover/index.js +10 -2
- package/dist/popover/index.mjs +2 -2
- package/dist/progress/index.d.mts +1 -1
- package/dist/progress/index.d.ts +1 -1
- package/dist/progress/index.js +13 -5
- package/dist/progress/index.mjs +2 -2
- package/dist/radio-group/index.js +11 -3
- package/dist/radio-group/index.mjs +2 -2
- package/dist/scroll-area/index.js +9 -1
- package/dist/scroll-area/index.mjs +2 -2
- package/dist/select/index.js +9 -1
- package/dist/select/index.mjs +2 -2
- package/dist/separator/index.js +9 -1
- package/dist/separator/index.mjs +2 -2
- package/dist/sheet/index.d.mts +1 -1
- package/dist/sheet/index.d.ts +1 -1
- package/dist/sheet/index.js +11 -3
- package/dist/sheet/index.mjs +2 -2
- package/dist/skeleton/index.js +9 -1
- package/dist/skeleton/index.mjs +2 -2
- package/dist/slider/index.js +10 -2
- package/dist/slider/index.mjs +2 -2
- package/dist/switch/index.js +10 -2
- package/dist/switch/index.mjs +2 -2
- package/dist/table/index.js +9 -1
- package/dist/table/index.mjs +2 -2
- package/dist/tabs/index.js +9 -1
- package/dist/tabs/index.mjs +2 -2
- package/dist/textarea/index.js +12 -4
- package/dist/textarea/index.mjs +2 -2
- package/dist/toast/index.js +9 -1
- package/dist/toast/index.mjs +2 -2
- package/dist/toggle/index.d.mts +2 -2
- package/dist/toggle/index.d.ts +2 -2
- package/dist/toggle/index.js +10 -2
- package/dist/toggle/index.mjs +2 -2
- package/dist/tooltip/index.js +9 -1
- package/dist/tooltip/index.mjs +2 -2
- package/package.json +4 -3
- package/dist/chunk-PJO7WJ4G.mjs +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/switch/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -11,7 +11,7 @@ var Switch = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
11
11
|
{
|
|
12
12
|
className: cn(
|
|
13
13
|
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
|
|
14
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-
|
|
14
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--axis-surface-default)]",
|
|
15
15
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
16
16
|
"data-[state=checked]:bg-[var(--axis-interactive-primary)]",
|
|
17
17
|
"data-[state=unchecked]:bg-[var(--axis-surface-tertiary)]",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/toggle/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -8,7 +8,7 @@ import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
9
9
|
import { jsx } from "react/jsx-runtime";
|
|
10
10
|
var toggleVariants = cva(
|
|
11
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-[var(--axis-surface-
|
|
11
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-[var(--axis-surface-default)] transition-colors hover:bg-[var(--axis-surface-secondary)] hover:text-[var(--axis-text-secondary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-[var(--axis-surface-secondary)] data-[state=on]:text-[var(--axis-text-primary)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
12
12
|
{
|
|
13
13
|
variants: {
|
|
14
14
|
variant: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/dropdown-menu/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -52,7 +52,7 @@ var DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) =>
|
|
|
52
52
|
{
|
|
53
53
|
ref,
|
|
54
54
|
className: cn(
|
|
55
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
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
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
57
|
className
|
|
58
58
|
),
|
|
@@ -66,7 +66,7 @@ var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...prop
|
|
|
66
66
|
ref,
|
|
67
67
|
sideOffset,
|
|
68
68
|
className: cn(
|
|
69
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
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
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
71
|
className
|
|
72
72
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/alert/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -9,13 +9,16 @@ import { jsx } from "react/jsx-runtime";
|
|
|
9
9
|
var alertVariants = cva(
|
|
10
10
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-current",
|
|
11
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 이상).
|
|
12
15
|
variants: {
|
|
13
16
|
variant: {
|
|
14
|
-
default: "bg-[var(--axis-surface-
|
|
15
|
-
info: "bg-[var(--axis-
|
|
16
|
-
success: "bg-[var(--axis-
|
|
17
|
-
warning: "bg-[var(--axis-
|
|
18
|
-
destructive: "bg-[var(--axis-
|
|
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)]"
|
|
19
22
|
}
|
|
20
23
|
},
|
|
21
24
|
defaultVariants: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZIF4PLK3.mjs";
|
|
4
4
|
|
|
5
5
|
// src/command/index.tsx
|
|
6
6
|
import * as React from "react";
|
|
@@ -11,7 +11,7 @@ var Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
11
11
|
{
|
|
12
12
|
ref,
|
|
13
13
|
className: cn(
|
|
14
|
-
"flex h-full w-full flex-col overflow-hidden rounded-md bg-[var(--axis-surface-
|
|
14
|
+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-[var(--axis-surface-default)] text-[var(--axis-text-primary)]",
|
|
15
15
|
className
|
|
16
16
|
),
|
|
17
17
|
...props
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// src/utils.ts
|
|
2
|
+
import { clsx } from "clsx";
|
|
3
|
+
import { extendTailwindMerge } from "tailwind-merge";
|
|
4
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
5
|
+
var twMerge = extendTailwindMerge({
|
|
6
|
+
extend: {
|
|
7
|
+
classGroups: {
|
|
8
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
function cn(...inputs) {
|
|
13
|
+
return twMerge(clsx(inputs));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
cn
|
|
18
|
+
};
|
package/dist/command/index.d.mts
CHANGED
|
@@ -10,7 +10,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
10
10
|
ref?: React.Ref<HTMLDivElement>;
|
|
11
11
|
} & {
|
|
12
12
|
asChild?: boolean;
|
|
13
|
-
}, "
|
|
13
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
14
14
|
label?: string;
|
|
15
15
|
shouldFilter?: boolean;
|
|
16
16
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -26,7 +26,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
26
26
|
ref?: React.Ref<HTMLInputElement>;
|
|
27
27
|
} & {
|
|
28
28
|
asChild?: boolean;
|
|
29
|
-
}, "
|
|
29
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
30
30
|
value?: string;
|
|
31
31
|
onValueChange?: (search: string) => void;
|
|
32
32
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -37,7 +37,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
37
37
|
ref?: React.Ref<HTMLDivElement>;
|
|
38
38
|
} & {
|
|
39
39
|
asChild?: boolean;
|
|
40
|
-
}, "
|
|
40
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
41
41
|
label?: string;
|
|
42
42
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
43
|
/** 검색 결과가 없을 때 표시되는 빈 상태 컴포넌트 */
|
|
@@ -47,7 +47,7 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
47
47
|
ref?: React.Ref<HTMLDivElement>;
|
|
48
48
|
} & {
|
|
49
49
|
asChild?: boolean;
|
|
50
|
-
}, "
|
|
50
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
51
|
/** 관련 명령어 항목들을 그룹화하는 컴포넌트 */
|
|
52
52
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
53
53
|
children?: React.ReactNode;
|
|
@@ -55,7 +55,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
|
55
55
|
ref?: React.Ref<HTMLDivElement>;
|
|
56
56
|
} & {
|
|
57
57
|
asChild?: boolean;
|
|
58
|
-
}, "
|
|
58
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
|
59
59
|
heading?: React.ReactNode;
|
|
60
60
|
value?: string;
|
|
61
61
|
forceMount?: boolean;
|
|
@@ -65,7 +65,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
65
65
|
ref?: React.Ref<HTMLDivElement>;
|
|
66
66
|
} & {
|
|
67
67
|
asChild?: boolean;
|
|
68
|
-
}, "
|
|
68
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
69
69
|
alwaysRender?: boolean;
|
|
70
70
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
71
71
|
/** 명령어 팔레트의 개별 선택 가능한 항목 */
|
|
@@ -75,7 +75,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
75
75
|
ref?: React.Ref<HTMLDivElement>;
|
|
76
76
|
} & {
|
|
77
77
|
asChild?: boolean;
|
|
78
|
-
}, "
|
|
78
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
79
79
|
disabled?: boolean;
|
|
80
80
|
onSelect?: (value: string) => void;
|
|
81
81
|
value?: string;
|
package/dist/command/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
|
10
10
|
ref?: React.Ref<HTMLDivElement>;
|
|
11
11
|
} & {
|
|
12
12
|
asChild?: boolean;
|
|
13
|
-
}, "
|
|
13
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
14
14
|
label?: string;
|
|
15
15
|
shouldFilter?: boolean;
|
|
16
16
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -26,7 +26,7 @@ declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<
|
|
|
26
26
|
ref?: React.Ref<HTMLInputElement>;
|
|
27
27
|
} & {
|
|
28
28
|
asChild?: boolean;
|
|
29
|
-
}, "
|
|
29
|
+
}, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "value" | "type"> & {
|
|
30
30
|
value?: string;
|
|
31
31
|
onValueChange?: (search: string) => void;
|
|
32
32
|
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -37,7 +37,7 @@ declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
|
37
37
|
ref?: React.Ref<HTMLDivElement>;
|
|
38
38
|
} & {
|
|
39
39
|
asChild?: boolean;
|
|
40
|
-
}, "
|
|
40
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
41
41
|
label?: string;
|
|
42
42
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
43
|
/** 검색 결과가 없을 때 표시되는 빈 상태 컴포넌트 */
|
|
@@ -47,7 +47,7 @@ declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
|
47
47
|
ref?: React.Ref<HTMLDivElement>;
|
|
48
48
|
} & {
|
|
49
49
|
asChild?: boolean;
|
|
50
|
-
}, "
|
|
50
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
51
|
/** 관련 명령어 항목들을 그룹화하는 컴포넌트 */
|
|
52
52
|
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
53
53
|
children?: React.ReactNode;
|
|
@@ -55,7 +55,7 @@ declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
|
55
55
|
ref?: React.Ref<HTMLDivElement>;
|
|
56
56
|
} & {
|
|
57
57
|
asChild?: boolean;
|
|
58
|
-
}, "
|
|
58
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "heading" | "value"> & {
|
|
59
59
|
heading?: React.ReactNode;
|
|
60
60
|
value?: string;
|
|
61
61
|
forceMount?: boolean;
|
|
@@ -65,7 +65,7 @@ declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<R
|
|
|
65
65
|
ref?: React.Ref<HTMLDivElement>;
|
|
66
66
|
} & {
|
|
67
67
|
asChild?: boolean;
|
|
68
|
-
}, "
|
|
68
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild"> & {
|
|
69
69
|
alwaysRender?: boolean;
|
|
70
70
|
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
71
71
|
/** 명령어 팔레트의 개별 선택 가능한 항목 */
|
|
@@ -75,7 +75,7 @@ declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
|
75
75
|
ref?: React.Ref<HTMLDivElement>;
|
|
76
76
|
} & {
|
|
77
77
|
asChild?: boolean;
|
|
78
|
-
}, "
|
|
78
|
+
}, "key" | keyof React.HTMLAttributes<HTMLDivElement> | "asChild">, "onSelect" | "disabled" | "value"> & {
|
|
79
79
|
disabled?: boolean;
|
|
80
80
|
onSelect?: (value: string) => void;
|
|
81
81
|
value?: string;
|
package/dist/command/index.js
CHANGED
|
@@ -45,8 +45,16 @@ var import_cmdk = require("cmdk");
|
|
|
45
45
|
// src/utils.ts
|
|
46
46
|
var import_clsx = require("clsx");
|
|
47
47
|
var import_tailwind_merge = require("tailwind-merge");
|
|
48
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
49
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
50
|
+
extend: {
|
|
51
|
+
classGroups: {
|
|
52
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
48
56
|
function cn(...inputs) {
|
|
49
|
-
return
|
|
57
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
50
58
|
}
|
|
51
59
|
|
|
52
60
|
// src/command/index.tsx
|
|
@@ -56,7 +64,7 @@ var Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
56
64
|
{
|
|
57
65
|
ref,
|
|
58
66
|
className: cn(
|
|
59
|
-
"flex h-full w-full flex-col overflow-hidden rounded-md bg-[var(--axis-surface-
|
|
67
|
+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-[var(--axis-surface-default)] text-[var(--axis-text-primary)]",
|
|
60
68
|
className
|
|
61
69
|
),
|
|
62
70
|
...props
|
package/dist/command/index.mjs
CHANGED
package/dist/dialog/index.js
CHANGED
|
@@ -48,8 +48,16 @@ var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
|
48
48
|
// src/utils.ts
|
|
49
49
|
var import_clsx = require("clsx");
|
|
50
50
|
var import_tailwind_merge = require("tailwind-merge");
|
|
51
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
52
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
53
|
+
extend: {
|
|
54
|
+
classGroups: {
|
|
55
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
51
59
|
function cn(...inputs) {
|
|
52
|
-
return
|
|
60
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
53
61
|
}
|
|
54
62
|
|
|
55
63
|
// src/dialog/index.tsx
|
|
@@ -77,7 +85,7 @@ var DialogContent = React.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
77
85
|
{
|
|
78
86
|
ref,
|
|
79
87
|
className: cn(
|
|
80
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200",
|
|
88
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-[shadow:var(--axis-shadow-lg)] duration-200",
|
|
81
89
|
"bg-[var(--axis-dialog-content-bg)] border-[var(--axis-dialog-content-border)]",
|
|
82
90
|
"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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
83
91
|
"sm:rounded-lg",
|
package/dist/dialog/index.mjs
CHANGED
|
@@ -53,8 +53,16 @@ var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
|
|
|
53
53
|
// src/utils.ts
|
|
54
54
|
var import_clsx = require("clsx");
|
|
55
55
|
var import_tailwind_merge = require("tailwind-merge");
|
|
56
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
57
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
58
|
+
extend: {
|
|
59
|
+
classGroups: {
|
|
60
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
});
|
|
56
64
|
function cn(...inputs) {
|
|
57
|
-
return
|
|
65
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
58
66
|
}
|
|
59
67
|
|
|
60
68
|
// src/dropdown-menu/index.tsx
|
|
@@ -105,7 +113,7 @@ var DropdownMenuSubContent = React.forwardRef(({ className, ...props }, ref) =>
|
|
|
105
113
|
{
|
|
106
114
|
ref,
|
|
107
115
|
className: cn(
|
|
108
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
116
|
+
"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",
|
|
109
117
|
"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",
|
|
110
118
|
className
|
|
111
119
|
),
|
|
@@ -119,7 +127,7 @@ var DropdownMenuContent = React.forwardRef(({ className, sideOffset = 4, ...prop
|
|
|
119
127
|
ref,
|
|
120
128
|
sideOffset,
|
|
121
129
|
className: cn(
|
|
122
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
130
|
+
"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",
|
|
123
131
|
"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",
|
|
124
132
|
className
|
|
125
133
|
),
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
DropdownMenuSubContent,
|
|
15
15
|
DropdownMenuSubTrigger,
|
|
16
16
|
DropdownMenuTrigger
|
|
17
|
-
} from "../chunk-
|
|
18
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-YZDRNV46.mjs";
|
|
18
|
+
import "../chunk-ZIF4PLK3.mjs";
|
|
19
19
|
export {
|
|
20
20
|
DropdownMenu,
|
|
21
21
|
DropdownMenuCheckboxItem,
|
package/dist/index.js
CHANGED
|
@@ -158,8 +158,16 @@ module.exports = __toCommonJS(index_exports);
|
|
|
158
158
|
// src/utils.ts
|
|
159
159
|
var import_clsx = require("clsx");
|
|
160
160
|
var import_tailwind_merge = require("tailwind-merge");
|
|
161
|
+
var isArbitraryShadowWithHint = (value) => /^\[shadow:.+\]$/.test(value);
|
|
162
|
+
var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
|
|
163
|
+
extend: {
|
|
164
|
+
classGroups: {
|
|
165
|
+
shadow: [{ shadow: [isArbitraryShadowWithHint] }]
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
});
|
|
161
169
|
function cn(...inputs) {
|
|
162
|
-
return
|
|
170
|
+
return twMerge((0, import_clsx.clsx)(inputs));
|
|
163
171
|
}
|
|
164
172
|
|
|
165
173
|
// src/button/index.tsx
|
|
@@ -264,8 +272,8 @@ var Checkbox = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
264
272
|
ref,
|
|
265
273
|
className: cn(
|
|
266
274
|
"peer h-4 w-4 shrink-0 rounded-sm border border-[var(--axis-border-default)]",
|
|
267
|
-
"ring-offset-[var(--axis-surface-
|
|
268
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-
|
|
275
|
+
"ring-offset-[var(--axis-surface-default)]",
|
|
276
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
|
|
269
277
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
270
278
|
"data-[state=checked]:bg-[var(--axis-interactive-primary)] data-[state=checked]:border-[var(--axis-interactive-primary)] data-[state=checked]:text-white",
|
|
271
279
|
className
|
|
@@ -315,8 +323,8 @@ var RadioGroupItem = React5.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
315
323
|
ref,
|
|
316
324
|
className: cn(
|
|
317
325
|
"aspect-square h-4 w-4 rounded-full border border-[var(--axis-border-default)]",
|
|
318
|
-
"ring-offset-[var(--axis-surface-
|
|
319
|
-
"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-
|
|
326
|
+
"ring-offset-[var(--axis-surface-default)]",
|
|
327
|
+
"focus:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
|
|
320
328
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
321
329
|
"data-[state=checked]:border-[var(--axis-interactive-primary)] data-[state=checked]:text-[var(--axis-interactive-primary)]",
|
|
322
330
|
className
|
|
@@ -493,7 +501,7 @@ var Slider = React7.forwardRef(
|
|
|
493
501
|
{
|
|
494
502
|
"aria-label": ariaLabel,
|
|
495
503
|
"aria-labelledby": ariaLabelledby,
|
|
496
|
-
className: "block h-5 w-5 rounded-full border-2 border-[var(--axis-interactive-primary)] bg-[var(--axis-surface-
|
|
504
|
+
className: "block h-5 w-5 rounded-full border-2 border-[var(--axis-interactive-primary)] bg-[var(--axis-surface-default)] ring-offset-[var(--axis-surface-default)] transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"
|
|
497
505
|
}
|
|
498
506
|
)
|
|
499
507
|
]
|
|
@@ -511,7 +519,7 @@ var Switch = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
511
519
|
{
|
|
512
520
|
className: cn(
|
|
513
521
|
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors",
|
|
514
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-
|
|
522
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--axis-surface-default)]",
|
|
515
523
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
516
524
|
"data-[state=checked]:bg-[var(--axis-interactive-primary)]",
|
|
517
525
|
"data-[state=unchecked]:bg-[var(--axis-surface-tertiary)]",
|
|
@@ -539,11 +547,11 @@ var Textarea = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
539
547
|
"textarea",
|
|
540
548
|
{
|
|
541
549
|
className: cn(
|
|
542
|
-
"flex min-h-[80px] w-full rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
550
|
+
"flex min-h-[80px] w-full rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] px-3 py-2 text-sm",
|
|
543
551
|
"text-[var(--axis-text-primary)]",
|
|
544
|
-
"ring-offset-[var(--axis-surface-
|
|
552
|
+
"ring-offset-[var(--axis-surface-default)]",
|
|
545
553
|
"placeholder:text-[var(--axis-text-tertiary)]",
|
|
546
|
-
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-
|
|
554
|
+
"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2",
|
|
547
555
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
548
556
|
className
|
|
549
557
|
),
|
|
@@ -559,7 +567,7 @@ var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"));
|
|
|
559
567
|
var import_class_variance_authority3 = require("class-variance-authority");
|
|
560
568
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
561
569
|
var toggleVariants = (0, import_class_variance_authority3.cva)(
|
|
562
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-[var(--axis-surface-
|
|
570
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium ring-offset-[var(--axis-surface-default)] transition-colors hover:bg-[var(--axis-surface-secondary)] hover:text-[var(--axis-text-secondary)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--axis-border-focus)] focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-[var(--axis-surface-secondary)] data-[state=on]:text-[var(--axis-text-primary)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
563
571
|
{
|
|
564
572
|
variants: {
|
|
565
573
|
variant: {
|
|
@@ -656,7 +664,7 @@ var Card = React12.forwardRef(
|
|
|
656
664
|
{
|
|
657
665
|
ref,
|
|
658
666
|
className: cn(
|
|
659
|
-
"rounded-lg border bg-[var(--axis-card-bg-default)] border-[var(--axis-card-border-default)] shadow-
|
|
667
|
+
"rounded-lg border bg-[var(--axis-card-bg-default)] border-[var(--axis-card-border-default)] shadow-[shadow:var(--axis-card-shadow)]",
|
|
660
668
|
className
|
|
661
669
|
),
|
|
662
670
|
...props
|
|
@@ -1025,7 +1033,7 @@ var DialogContent = React17.forwardRef(({ className, children, ...props }, ref)
|
|
|
1025
1033
|
{
|
|
1026
1034
|
ref,
|
|
1027
1035
|
className: cn(
|
|
1028
|
-
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200",
|
|
1036
|
+
"fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-[shadow:var(--axis-shadow-lg)] duration-200",
|
|
1029
1037
|
"bg-[var(--axis-dialog-content-bg)] border-[var(--axis-dialog-content-border)]",
|
|
1030
1038
|
"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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",
|
|
1031
1039
|
"sm:rounded-lg",
|
|
@@ -1137,7 +1145,7 @@ var DropdownMenuSubContent = React18.forwardRef(({ className, ...props }, ref) =
|
|
|
1137
1145
|
{
|
|
1138
1146
|
ref,
|
|
1139
1147
|
className: cn(
|
|
1140
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
1148
|
+
"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",
|
|
1141
1149
|
"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",
|
|
1142
1150
|
className
|
|
1143
1151
|
),
|
|
@@ -1151,7 +1159,7 @@ var DropdownMenuContent = React18.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
1151
1159
|
ref,
|
|
1152
1160
|
sideOffset,
|
|
1153
1161
|
className: cn(
|
|
1154
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
1162
|
+
"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",
|
|
1155
1163
|
"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",
|
|
1156
1164
|
className
|
|
1157
1165
|
),
|
|
@@ -1289,7 +1297,7 @@ var PopoverContent = React19.forwardRef(({ className, align = "center", sideOffs
|
|
|
1289
1297
|
align,
|
|
1290
1298
|
sideOffset,
|
|
1291
1299
|
className: cn(
|
|
1292
|
-
"z-50 w-72 rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-
|
|
1300
|
+
"z-50 w-72 rounded-md border border-[var(--axis-border-default)] bg-[var(--axis-surface-default)] p-4 text-[var(--axis-text-primary)] shadow-md outline-none",
|
|
1293
1301
|
"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",
|
|
1294
1302
|
className
|
|
1295
1303
|
),
|
|
@@ -1320,7 +1328,7 @@ var SheetOverlay = React20.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
1320
1328
|
));
|
|
1321
1329
|
SheetOverlay.displayName = "SheetOverlay";
|
|
1322
1330
|
var sheetVariants = (0, import_class_variance_authority4.cva)(
|
|
1323
|
-
"fixed z-50 gap-4 bg-[var(--axis-surface-
|
|
1331
|
+
"fixed z-50 gap-4 bg-[var(--axis-surface-default)] border-[var(--axis-border-default)] p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
1324
1332
|
{
|
|
1325
1333
|
variants: {
|
|
1326
1334
|
side: {
|
|
@@ -1344,7 +1352,7 @@ var SheetContent = React20.forwardRef(({ side = "right", className, children, ..
|
|
|
1344
1352
|
className: cn(sheetVariants({ side }), className),
|
|
1345
1353
|
...props,
|
|
1346
1354
|
children: [
|
|
1347
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-[var(--axis-surface-
|
|
1355
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-[var(--axis-surface-default)] transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[var(--axis-border-focus)] focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
1348
1356
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
1349
1357
|
"svg",
|
|
1350
1358
|
{
|
|
@@ -1455,13 +1463,16 @@ var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
|
1455
1463
|
var alertVariants = (0, import_class_variance_authority5.cva)(
|
|
1456
1464
|
"relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-current",
|
|
1457
1465
|
{
|
|
1466
|
+
// 아이콘은 기본 클래스 [&>svg]:text-current로 변형의 글자색(text-*)을 따른다.
|
|
1467
|
+
// 라이트 icon-success(#22C55E) · icon-warning(#EAB308)은 상태 배경 대비가 2.18:1 · 1.85:1로
|
|
1468
|
+
// 비텍스트 기준 3:1에 못 미치므로 아이콘 색에 쓰지 않는다(글자색은 4.76:1 이상).
|
|
1458
1469
|
variants: {
|
|
1459
1470
|
variant: {
|
|
1460
|
-
default: "bg-[var(--axis-surface-
|
|
1461
|
-
info: "bg-[var(--axis-
|
|
1462
|
-
success: "bg-[var(--axis-
|
|
1463
|
-
warning: "bg-[var(--axis-
|
|
1464
|
-
destructive: "bg-[var(--axis-
|
|
1471
|
+
default: "bg-[var(--axis-surface-default)] text-[var(--axis-text-primary)] border-[var(--axis-border-default)]",
|
|
1472
|
+
info: "bg-[var(--axis-surface-info)] text-[var(--axis-text-info)] border-[var(--axis-border-info)]",
|
|
1473
|
+
success: "bg-[var(--axis-surface-success)] text-[var(--axis-text-success)] border-[var(--axis-border-success)]",
|
|
1474
|
+
warning: "bg-[var(--axis-surface-warning)] text-[var(--axis-text-warning)] border-[var(--axis-border-warning)]",
|
|
1475
|
+
destructive: "bg-[var(--axis-surface-error)] text-[var(--axis-text-error)] border-[var(--axis-border-error)]"
|
|
1465
1476
|
}
|
|
1466
1477
|
},
|
|
1467
1478
|
defaultVariants: {
|
|
@@ -1510,7 +1521,7 @@ var badgeVariants = (0, import_class_variance_authority6.cva)(
|
|
|
1510
1521
|
variants: {
|
|
1511
1522
|
variant: {
|
|
1512
1523
|
default: "border-transparent bg-[var(--axis-badge-default-bg)] text-[var(--axis-badge-default-text)]",
|
|
1513
|
-
secondary: "border-transparent bg-[var(--axis-
|
|
1524
|
+
secondary: "border-transparent bg-[var(--axis-surface-secondary)] text-[var(--axis-text-secondary)]",
|
|
1514
1525
|
destructive: "border-transparent bg-[var(--axis-badge-error-bg)] text-[var(--axis-badge-error-text)]",
|
|
1515
1526
|
success: "border-transparent bg-[var(--axis-badge-success-bg)] text-[var(--axis-badge-success-text)]",
|
|
1516
1527
|
warning: "border-transparent bg-[var(--axis-badge-warning-bg)] text-[var(--axis-badge-warning-text)]",
|
|
@@ -1560,10 +1571,10 @@ var progressIndicatorVariants = (0, import_class_variance_authority7.cva)(
|
|
|
1560
1571
|
{
|
|
1561
1572
|
variants: {
|
|
1562
1573
|
variant: {
|
|
1563
|
-
default: "bg-[var(--axis-brand
|
|
1564
|
-
success: "bg-[var(--axis-green-500)]",
|
|
1565
|
-
warning: "bg-[var(--axis-yellow-500)]",
|
|
1566
|
-
destructive: "bg-[var(--axis-red-500)]"
|
|
1574
|
+
default: "bg-[var(--axis-surface-brand)]",
|
|
1575
|
+
success: "bg-[var(--axis-color-green-500)]",
|
|
1576
|
+
warning: "bg-[var(--axis-color-yellow-500)]",
|
|
1577
|
+
destructive: "bg-[var(--axis-color-red-500)]"
|
|
1567
1578
|
}
|
|
1568
1579
|
},
|
|
1569
1580
|
defaultVariants: {
|
|
@@ -1816,7 +1827,7 @@ var Command = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1816
1827
|
{
|
|
1817
1828
|
ref,
|
|
1818
1829
|
className: cn(
|
|
1819
|
-
"flex h-full w-full flex-col overflow-hidden rounded-md bg-[var(--axis-surface-
|
|
1830
|
+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-[var(--axis-surface-default)] text-[var(--axis-text-primary)]",
|
|
1820
1831
|
className
|
|
1821
1832
|
),
|
|
1822
1833
|
...props
|