@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
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 명령어 팔레트 루트 컴포넌트
|
|
5
|
+
* cmdk 라이브러리를 기반으로 검색 가능한 명령 목록을 제공한다.
|
|
6
|
+
*/
|
|
7
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
11
|
+
} & {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
14
|
+
label?: string;
|
|
15
|
+
shouldFilter?: boolean;
|
|
16
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
17
|
+
defaultValue?: string;
|
|
18
|
+
value?: string;
|
|
19
|
+
onValueChange?: (value: string) => void;
|
|
20
|
+
loop?: boolean;
|
|
21
|
+
disablePointerSelection?: boolean;
|
|
22
|
+
vimBindings?: boolean;
|
|
23
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
/** 명령어 팔레트의 검색 입력 필드 */
|
|
25
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
26
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
27
|
+
} & {
|
|
28
|
+
asChild?: boolean;
|
|
29
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
30
|
+
value?: string;
|
|
31
|
+
onValueChange?: (search: string) => void;
|
|
32
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
33
|
+
/** 명령어 항목들을 표시하는 스크롤 가능한 목록 영역 */
|
|
34
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
37
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
38
|
+
} & {
|
|
39
|
+
asChild?: boolean;
|
|
40
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
41
|
+
label?: string;
|
|
42
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
/** 검색 결과가 없을 때 표시되는 빈 상태 컴포넌트 */
|
|
44
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
45
|
+
children?: React.ReactNode;
|
|
46
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
47
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
48
|
+
} & {
|
|
49
|
+
asChild?: boolean;
|
|
50
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
/** 관련 명령어 항목들을 그룹화하는 컴포넌트 */
|
|
52
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
55
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
56
|
+
} & {
|
|
57
|
+
asChild?: boolean;
|
|
58
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
59
|
+
heading?: React.ReactNode;
|
|
60
|
+
value?: string;
|
|
61
|
+
forceMount?: boolean;
|
|
62
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
/** 명령어 그룹 사이의 시각적 구분선 */
|
|
64
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
65
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
66
|
+
} & {
|
|
67
|
+
asChild?: boolean;
|
|
68
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
69
|
+
alwaysRender?: boolean;
|
|
70
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
71
|
+
/** 명령어 팔레트의 개별 선택 가능한 항목 */
|
|
72
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
73
|
+
children?: React.ReactNode;
|
|
74
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
75
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
76
|
+
} & {
|
|
77
|
+
asChild?: boolean;
|
|
78
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
onSelect?: (value: string) => void;
|
|
81
|
+
value?: string;
|
|
82
|
+
keywords?: string[];
|
|
83
|
+
forceMount?: boolean;
|
|
84
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
|
|
86
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 명령어 팔레트 루트 컴포넌트
|
|
5
|
+
* cmdk 라이브러리를 기반으로 검색 가능한 명령 목록을 제공한다.
|
|
6
|
+
*/
|
|
7
|
+
declare const Command: React.ForwardRefExoticComponent<Omit<{
|
|
8
|
+
children?: React.ReactNode;
|
|
9
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
10
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
11
|
+
} & {
|
|
12
|
+
asChild?: boolean;
|
|
13
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
14
|
+
label?: string;
|
|
15
|
+
shouldFilter?: boolean;
|
|
16
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
17
|
+
defaultValue?: string;
|
|
18
|
+
value?: string;
|
|
19
|
+
onValueChange?: (value: string) => void;
|
|
20
|
+
loop?: boolean;
|
|
21
|
+
disablePointerSelection?: boolean;
|
|
22
|
+
vimBindings?: boolean;
|
|
23
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
/** 명령어 팔레트의 검색 입력 필드 */
|
|
25
|
+
declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
|
|
26
|
+
ref?: React.Ref<HTMLInputElement>;
|
|
27
|
+
} & {
|
|
28
|
+
asChild?: boolean;
|
|
29
|
+
}, "asChild" | "key" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "onChange" | "type" | "value"> & {
|
|
30
|
+
value?: string;
|
|
31
|
+
onValueChange?: (search: string) => void;
|
|
32
|
+
} & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
33
|
+
/** 명령어 항목들을 표시하는 스크롤 가능한 목록 영역 */
|
|
34
|
+
declare const CommandList: React.ForwardRefExoticComponent<Omit<{
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
37
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
38
|
+
} & {
|
|
39
|
+
asChild?: boolean;
|
|
40
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
41
|
+
label?: string;
|
|
42
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
/** 검색 결과가 없을 때 표시되는 빈 상태 컴포넌트 */
|
|
44
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
|
|
45
|
+
children?: React.ReactNode;
|
|
46
|
+
} & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
47
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
48
|
+
} & {
|
|
49
|
+
asChild?: boolean;
|
|
50
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
/** 관련 명령어 항목들을 그룹화하는 컴포넌트 */
|
|
52
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
|
|
53
|
+
children?: React.ReactNode;
|
|
54
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
55
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
56
|
+
} & {
|
|
57
|
+
asChild?: boolean;
|
|
58
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
|
|
59
|
+
heading?: React.ReactNode;
|
|
60
|
+
value?: string;
|
|
61
|
+
forceMount?: boolean;
|
|
62
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
63
|
+
/** 명령어 그룹 사이의 시각적 구분선 */
|
|
64
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
65
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
66
|
+
} & {
|
|
67
|
+
asChild?: boolean;
|
|
68
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
69
|
+
alwaysRender?: boolean;
|
|
70
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
71
|
+
/** 명령어 팔레트의 개별 선택 가능한 항목 */
|
|
72
|
+
declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
|
|
73
|
+
children?: React.ReactNode;
|
|
74
|
+
} & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
|
|
75
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
76
|
+
} & {
|
|
77
|
+
asChild?: boolean;
|
|
78
|
+
}, "asChild" | "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
onSelect?: (value: string) => void;
|
|
81
|
+
value?: string;
|
|
82
|
+
keywords?: string[];
|
|
83
|
+
forceMount?: boolean;
|
|
84
|
+
} & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
+
|
|
86
|
+
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator };
|
|
@@ -0,0 +1,168 @@
|
|
|
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/command/index.tsx
|
|
31
|
+
var command_exports = {};
|
|
32
|
+
__export(command_exports, {
|
|
33
|
+
Command: () => Command,
|
|
34
|
+
CommandEmpty: () => CommandEmpty,
|
|
35
|
+
CommandGroup: () => CommandGroup,
|
|
36
|
+
CommandInput: () => CommandInput,
|
|
37
|
+
CommandItem: () => CommandItem,
|
|
38
|
+
CommandList: () => CommandList,
|
|
39
|
+
CommandSeparator: () => CommandSeparator
|
|
40
|
+
});
|
|
41
|
+
module.exports = __toCommonJS(command_exports);
|
|
42
|
+
var React = __toESM(require("react"));
|
|
43
|
+
var import_cmdk = require("cmdk");
|
|
44
|
+
|
|
45
|
+
// src/utils.ts
|
|
46
|
+
var import_clsx = require("clsx");
|
|
47
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
48
|
+
function cn(...inputs) {
|
|
49
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// src/command/index.tsx
|
|
53
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
54
|
+
var Command = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
55
|
+
import_cmdk.Command,
|
|
56
|
+
{
|
|
57
|
+
ref,
|
|
58
|
+
className: cn(
|
|
59
|
+
"flex h-full w-full flex-col overflow-hidden rounded-md bg-[var(--axis-surface-primary)] text-[var(--axis-text-primary)]",
|
|
60
|
+
className
|
|
61
|
+
),
|
|
62
|
+
...props
|
|
63
|
+
}
|
|
64
|
+
));
|
|
65
|
+
Command.displayName = "Command";
|
|
66
|
+
var CommandInput = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center border-b border-[var(--axis-border-default)] px-3", children: [
|
|
67
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
68
|
+
"svg",
|
|
69
|
+
{
|
|
70
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
71
|
+
width: "16",
|
|
72
|
+
height: "16",
|
|
73
|
+
viewBox: "0 0 24 24",
|
|
74
|
+
fill: "none",
|
|
75
|
+
stroke: "currentColor",
|
|
76
|
+
strokeWidth: "2",
|
|
77
|
+
strokeLinecap: "round",
|
|
78
|
+
strokeLinejoin: "round",
|
|
79
|
+
className: "mr-2 h-4 w-4 shrink-0 opacity-50",
|
|
80
|
+
children: [
|
|
81
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { cx: "11", cy: "11", r: "8" }),
|
|
82
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "m21 21-4.3-4.3" })
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
87
|
+
import_cmdk.Command.Input,
|
|
88
|
+
{
|
|
89
|
+
ref,
|
|
90
|
+
className: cn(
|
|
91
|
+
"flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none",
|
|
92
|
+
"placeholder:text-[var(--axis-text-tertiary)]",
|
|
93
|
+
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
94
|
+
className
|
|
95
|
+
),
|
|
96
|
+
...props
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
] }));
|
|
100
|
+
CommandInput.displayName = "CommandInput";
|
|
101
|
+
var CommandList = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
102
|
+
import_cmdk.Command.List,
|
|
103
|
+
{
|
|
104
|
+
ref,
|
|
105
|
+
className: cn(
|
|
106
|
+
"max-h-[300px] overflow-y-auto overflow-x-hidden",
|
|
107
|
+
className
|
|
108
|
+
),
|
|
109
|
+
...props
|
|
110
|
+
}
|
|
111
|
+
));
|
|
112
|
+
CommandList.displayName = "CommandList";
|
|
113
|
+
var CommandEmpty = React.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
114
|
+
import_cmdk.Command.Empty,
|
|
115
|
+
{
|
|
116
|
+
ref,
|
|
117
|
+
className: "py-6 text-center text-sm text-[var(--axis-text-secondary)]",
|
|
118
|
+
...props
|
|
119
|
+
}
|
|
120
|
+
));
|
|
121
|
+
CommandEmpty.displayName = "CommandEmpty";
|
|
122
|
+
var CommandGroup = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
123
|
+
import_cmdk.Command.Group,
|
|
124
|
+
{
|
|
125
|
+
ref,
|
|
126
|
+
className: cn(
|
|
127
|
+
"overflow-hidden p-1 text-[var(--axis-text-primary)]",
|
|
128
|
+
"[&_[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)]",
|
|
129
|
+
className
|
|
130
|
+
),
|
|
131
|
+
...props
|
|
132
|
+
}
|
|
133
|
+
));
|
|
134
|
+
CommandGroup.displayName = "CommandGroup";
|
|
135
|
+
var CommandSeparator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
136
|
+
import_cmdk.Command.Separator,
|
|
137
|
+
{
|
|
138
|
+
ref,
|
|
139
|
+
className: cn("-mx-1 h-px bg-[var(--axis-border-default)]", className),
|
|
140
|
+
...props
|
|
141
|
+
}
|
|
142
|
+
));
|
|
143
|
+
CommandSeparator.displayName = "CommandSeparator";
|
|
144
|
+
var CommandItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
145
|
+
import_cmdk.Command.Item,
|
|
146
|
+
{
|
|
147
|
+
ref,
|
|
148
|
+
className: cn(
|
|
149
|
+
"relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none",
|
|
150
|
+
"data-[selected=true]:bg-[var(--axis-surface-secondary)] data-[selected=true]:text-[var(--axis-text-primary)]",
|
|
151
|
+
"data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",
|
|
152
|
+
"[&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
153
|
+
className
|
|
154
|
+
),
|
|
155
|
+
...props
|
|
156
|
+
}
|
|
157
|
+
));
|
|
158
|
+
CommandItem.displayName = "CommandItem";
|
|
159
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
160
|
+
0 && (module.exports = {
|
|
161
|
+
Command,
|
|
162
|
+
CommandEmpty,
|
|
163
|
+
CommandGroup,
|
|
164
|
+
CommandInput,
|
|
165
|
+
CommandItem,
|
|
166
|
+
CommandList,
|
|
167
|
+
CommandSeparator
|
|
168
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Command,
|
|
3
|
+
CommandEmpty,
|
|
4
|
+
CommandGroup,
|
|
5
|
+
CommandInput,
|
|
6
|
+
CommandItem,
|
|
7
|
+
CommandList,
|
|
8
|
+
CommandSeparator
|
|
9
|
+
} from "../chunk-XW4HTSUY.mjs";
|
|
10
|
+
import "../chunk-PJO7WJ4G.mjs";
|
|
11
|
+
export {
|
|
12
|
+
Command,
|
|
13
|
+
CommandEmpty,
|
|
14
|
+
CommandGroup,
|
|
15
|
+
CommandInput,
|
|
16
|
+
CommandItem,
|
|
17
|
+
CommandList,
|
|
18
|
+
CommandSeparator
|
|
19
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
|
|
5
|
+
/** 다이얼로그의 루트 컴포넌트. 열림/닫힘 상태를 관리한다. */
|
|
6
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
7
|
+
/** 다이얼로그를 여는 트리거 버튼 컴포넌트 */
|
|
8
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
/** 다이얼로그 콘텐츠를 포털로 렌더링하는 컴포넌트 */
|
|
10
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
11
|
+
/** 다이얼로그를 닫는 버튼 컴포넌트 */
|
|
12
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
/** 다이얼로그가 열릴 때 배경을 덮는 오버레이 컴포넌트. 페이드 인/아웃 애니메이션을 포함한다. */
|
|
14
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
/** 다이얼로그의 본문 콘텐츠 컴포넌트. 화면 중앙에 위치하며, 오버레이와 함께 포털로 렌더링된다. */
|
|
16
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
/** 다이얼로그 상단 헤더 영역. 제목과 설명을 포함하는 레이아웃 컴포넌트이다. */
|
|
18
|
+
declare const DialogHeader: {
|
|
19
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
/** 다이얼로그 하단 푸터 영역. 액션 버튼들을 배치하는 레이아웃 컴포넌트이다. */
|
|
23
|
+
declare const DialogFooter: {
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
/** 다이얼로그의 제목 컴포넌트. 접근성을 위해 aria-labelledby로 연결된다. */
|
|
28
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
29
|
+
/** 다이얼로그의 설명 텍스트 컴포넌트. 접근성을 위해 aria-describedby로 연결된다. */
|
|
30
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
31
|
+
|
|
32
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
|
+
|
|
5
|
+
/** 다이얼로그의 루트 컴포넌트. 열림/닫힘 상태를 관리한다. */
|
|
6
|
+
declare const Dialog: React.FC<DialogPrimitive.DialogProps>;
|
|
7
|
+
/** 다이얼로그를 여는 트리거 버튼 컴포넌트 */
|
|
8
|
+
declare const DialogTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
/** 다이얼로그 콘텐츠를 포털로 렌더링하는 컴포넌트 */
|
|
10
|
+
declare const DialogPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
11
|
+
/** 다이얼로그를 닫는 버튼 컴포넌트 */
|
|
12
|
+
declare const DialogClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
/** 다이얼로그가 열릴 때 배경을 덮는 오버레이 컴포넌트. 페이드 인/아웃 애니메이션을 포함한다. */
|
|
14
|
+
declare const DialogOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
/** 다이얼로그의 본문 콘텐츠 컴포넌트. 화면 중앙에 위치하며, 오버레이와 함께 포털로 렌더링된다. */
|
|
16
|
+
declare const DialogContent: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
/** 다이얼로그 상단 헤더 영역. 제목과 설명을 포함하는 레이아웃 컴포넌트이다. */
|
|
18
|
+
declare const DialogHeader: {
|
|
19
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
/** 다이얼로그 하단 푸터 영역. 액션 버튼들을 배치하는 레이아웃 컴포넌트이다. */
|
|
23
|
+
declare const DialogFooter: {
|
|
24
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
25
|
+
displayName: string;
|
|
26
|
+
};
|
|
27
|
+
/** 다이얼로그의 제목 컴포넌트. 접근성을 위해 aria-labelledby로 연결된다. */
|
|
28
|
+
declare const DialogTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
29
|
+
/** 다이얼로그의 설명 텍스트 컴포넌트. 접근성을 위해 aria-describedby로 연결된다. */
|
|
30
|
+
declare const DialogDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
31
|
+
|
|
32
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -0,0 +1,153 @@
|
|
|
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/dialog/index.tsx
|
|
31
|
+
var dialog_exports = {};
|
|
32
|
+
__export(dialog_exports, {
|
|
33
|
+
Dialog: () => Dialog,
|
|
34
|
+
DialogClose: () => DialogClose,
|
|
35
|
+
DialogContent: () => DialogContent,
|
|
36
|
+
DialogDescription: () => DialogDescription,
|
|
37
|
+
DialogFooter: () => DialogFooter,
|
|
38
|
+
DialogHeader: () => DialogHeader,
|
|
39
|
+
DialogOverlay: () => DialogOverlay,
|
|
40
|
+
DialogPortal: () => DialogPortal,
|
|
41
|
+
DialogTitle: () => DialogTitle,
|
|
42
|
+
DialogTrigger: () => DialogTrigger
|
|
43
|
+
});
|
|
44
|
+
module.exports = __toCommonJS(dialog_exports);
|
|
45
|
+
var React = __toESM(require("react"));
|
|
46
|
+
var DialogPrimitive = __toESM(require("@radix-ui/react-dialog"));
|
|
47
|
+
|
|
48
|
+
// src/utils.ts
|
|
49
|
+
var import_clsx = require("clsx");
|
|
50
|
+
var import_tailwind_merge = require("tailwind-merge");
|
|
51
|
+
function cn(...inputs) {
|
|
52
|
+
return (0, import_tailwind_merge.twMerge)((0, import_clsx.clsx)(inputs));
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// src/dialog/index.tsx
|
|
56
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
|
+
var Dialog = DialogPrimitive.Root;
|
|
58
|
+
var DialogTrigger = DialogPrimitive.Trigger;
|
|
59
|
+
var DialogPortal = DialogPrimitive.Portal;
|
|
60
|
+
var DialogClose = DialogPrimitive.Close;
|
|
61
|
+
var DialogOverlay = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
62
|
+
DialogPrimitive.Overlay,
|
|
63
|
+
{
|
|
64
|
+
ref,
|
|
65
|
+
className: cn(
|
|
66
|
+
"fixed inset-0 z-50 bg-[var(--axis-dialog-overlay-bg)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
67
|
+
className
|
|
68
|
+
),
|
|
69
|
+
...props
|
|
70
|
+
}
|
|
71
|
+
));
|
|
72
|
+
DialogOverlay.displayName = "DialogOverlay";
|
|
73
|
+
var DialogContent = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogPortal, { children: [
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogOverlay, {}),
|
|
75
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
76
|
+
DialogPrimitive.Content,
|
|
77
|
+
{
|
|
78
|
+
ref,
|
|
79
|
+
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",
|
|
81
|
+
"bg-[var(--axis-dialog-content-bg)] border-[var(--axis-dialog-content-border)]",
|
|
82
|
+
"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
|
+
"sm:rounded-lg",
|
|
84
|
+
className
|
|
85
|
+
),
|
|
86
|
+
...props,
|
|
87
|
+
children
|
|
88
|
+
}
|
|
89
|
+
)
|
|
90
|
+
] }));
|
|
91
|
+
DialogContent.displayName = "DialogContent";
|
|
92
|
+
var DialogHeader = ({
|
|
93
|
+
className,
|
|
94
|
+
...props
|
|
95
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
96
|
+
"div",
|
|
97
|
+
{
|
|
98
|
+
className: cn(
|
|
99
|
+
"flex flex-col space-y-1.5 text-center sm:text-left",
|
|
100
|
+
className
|
|
101
|
+
),
|
|
102
|
+
...props
|
|
103
|
+
}
|
|
104
|
+
);
|
|
105
|
+
DialogHeader.displayName = "DialogHeader";
|
|
106
|
+
var DialogFooter = ({
|
|
107
|
+
className,
|
|
108
|
+
...props
|
|
109
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
110
|
+
"div",
|
|
111
|
+
{
|
|
112
|
+
className: cn(
|
|
113
|
+
"flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
|
|
114
|
+
className
|
|
115
|
+
),
|
|
116
|
+
...props
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
DialogFooter.displayName = "DialogFooter";
|
|
120
|
+
var DialogTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
121
|
+
DialogPrimitive.Title,
|
|
122
|
+
{
|
|
123
|
+
ref,
|
|
124
|
+
className: cn(
|
|
125
|
+
"text-lg font-semibold leading-none tracking-tight text-[var(--axis-text-primary)]",
|
|
126
|
+
className
|
|
127
|
+
),
|
|
128
|
+
...props
|
|
129
|
+
}
|
|
130
|
+
));
|
|
131
|
+
DialogTitle.displayName = "DialogTitle";
|
|
132
|
+
var DialogDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
133
|
+
DialogPrimitive.Description,
|
|
134
|
+
{
|
|
135
|
+
ref,
|
|
136
|
+
className: cn("text-sm text-[var(--axis-text-secondary)]", className),
|
|
137
|
+
...props
|
|
138
|
+
}
|
|
139
|
+
));
|
|
140
|
+
DialogDescription.displayName = "DialogDescription";
|
|
141
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
142
|
+
0 && (module.exports = {
|
|
143
|
+
Dialog,
|
|
144
|
+
DialogClose,
|
|
145
|
+
DialogContent,
|
|
146
|
+
DialogDescription,
|
|
147
|
+
DialogFooter,
|
|
148
|
+
DialogHeader,
|
|
149
|
+
DialogOverlay,
|
|
150
|
+
DialogPortal,
|
|
151
|
+
DialogTitle,
|
|
152
|
+
DialogTrigger
|
|
153
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Dialog,
|
|
3
|
+
DialogClose,
|
|
4
|
+
DialogContent,
|
|
5
|
+
DialogDescription,
|
|
6
|
+
DialogFooter,
|
|
7
|
+
DialogHeader,
|
|
8
|
+
DialogOverlay,
|
|
9
|
+
DialogPortal,
|
|
10
|
+
DialogTitle,
|
|
11
|
+
DialogTrigger
|
|
12
|
+
} from "../chunk-IXLVGZWU.mjs";
|
|
13
|
+
import "../chunk-PJO7WJ4G.mjs";
|
|
14
|
+
export {
|
|
15
|
+
Dialog,
|
|
16
|
+
DialogClose,
|
|
17
|
+
DialogContent,
|
|
18
|
+
DialogDescription,
|
|
19
|
+
DialogFooter,
|
|
20
|
+
DialogHeader,
|
|
21
|
+
DialogOverlay,
|
|
22
|
+
DialogPortal,
|
|
23
|
+
DialogTitle,
|
|
24
|
+
DialogTrigger
|
|
25
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
|
+
|
|
5
|
+
/** 드롭다운 메뉴의 루트 컴포넌트. 열림/닫힘 상태를 관리한다. */
|
|
6
|
+
declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
|
|
7
|
+
/** 드롭다운 메뉴를 여는 트리거 버튼 컴포넌트 */
|
|
8
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
/** 메뉴 항목들을 논리적으로 그룹화하는 컴포넌트 */
|
|
10
|
+
declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
/** 드롭다운 콘텐츠를 포털로 렌더링하는 컴포넌트 */
|
|
12
|
+
declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
|
|
13
|
+
/** 중첩 서브 메뉴의 루트 컴포넌트 */
|
|
14
|
+
declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
15
|
+
/** 라디오 선택 항목들을 그룹화하는 컴포넌트 */
|
|
16
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
+
/**
|
|
18
|
+
* 서브 메뉴를 여는 트리거 항목 컴포넌트. 우측에 화살표 아이콘이 표시된다.
|
|
19
|
+
* @param inset - true일 경우 좌측 패딩을 추가하여 아이콘 없는 항목과 정렬을 맞춘다
|
|
20
|
+
*/
|
|
21
|
+
declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
22
|
+
/** true일 경우 좌측 패딩을 추가하여 정렬을 맞춘다 */
|
|
23
|
+
inset?: boolean;
|
|
24
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
/** 서브 메뉴의 콘텐츠 영역 컴포넌트. 진입/퇴장 애니메이션을 포함한다. */
|
|
26
|
+
declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
/** 드롭다운 메뉴의 본문 콘텐츠 컴포넌트. 포털을 통해 렌더링되며 위치 애니메이션을 포함한다. */
|
|
28
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
/**
|
|
30
|
+
* 드롭다운 메뉴의 개별 항목 컴포넌트. 키보드 네비게이션과 포커스 스타일을 지원한다.
|
|
31
|
+
* @param inset - true일 경우 좌측 패딩을 추가하여 정렬을 맞춘다
|
|
32
|
+
*/
|
|
33
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
34
|
+
/** true일 경우 좌측 패딩을 추가하여 정렬을 맞춘다 */
|
|
35
|
+
inset?: boolean;
|
|
36
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
/** 체크박스 기능이 포함된 메뉴 항목 컴포넌트. 선택 시 좌측에 체크 아이콘이 표시된다. */
|
|
38
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
39
|
+
/** 라디오 선택 기능이 포함된 메뉴 항목 컴포넌트. 선택 시 좌측에 원형 인디케이터가 표시된다. */
|
|
40
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
/**
|
|
42
|
+
* 메뉴 그룹의 레이블 컴포넌트. 비선택 텍스트로 그룹 제목을 표시한다.
|
|
43
|
+
* @param inset - true일 경우 좌측 패딩을 추가하여 정렬을 맞춘다
|
|
44
|
+
*/
|
|
45
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
46
|
+
/** true일 경우 좌측 패딩을 추가하여 정렬을 맞춘다 */
|
|
47
|
+
inset?: boolean;
|
|
48
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
49
|
+
/** 메뉴 항목 사이의 구분선 컴포넌트 */
|
|
50
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
51
|
+
/** 메뉴 항목의 키보드 단축키를 표시하는 보조 텍스트 컴포넌트 */
|
|
52
|
+
declare const DropdownMenuShortcut: {
|
|
53
|
+
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
|
|
54
|
+
displayName: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
|