@ncds/ui-admin-mcp 1.0.0-alpha.2
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 +113 -0
- package/bin/components.bundle.js +21 -0
- package/bin/definitions/compliance-rules.json +64 -0
- package/bin/definitions/instructions.md +96 -0
- package/bin/definitions/rules.json +57 -0
- package/bin/definitions/token-descriptions.json +27 -0
- package/bin/definitions/tool-definitions.json +42 -0
- package/bin/instructions.d.ts +1 -0
- package/bin/instructions.js +14 -0
- package/bin/server.d.ts +1 -0
- package/bin/server.js +164 -0
- package/bin/server.mjs +8 -0
- package/bin/tools/getComponentHtml.d.ts +3 -0
- package/bin/tools/getComponentHtml.js +30 -0
- package/bin/tools/getComponentProps.d.ts +4 -0
- package/bin/tools/getComponentProps.js +17 -0
- package/bin/tools/getDesignTokens.d.ts +13 -0
- package/bin/tools/getDesignTokens.js +20 -0
- package/bin/tools/listComponents.d.ts +16 -0
- package/bin/tools/listComponents.js +24 -0
- package/bin/tools/listIcons.d.ts +22 -0
- package/bin/tools/listIcons.js +23 -0
- package/bin/tools/ping.d.ts +17 -0
- package/bin/tools/ping.js +20 -0
- package/bin/tools/renderToHtml.d.ts +21 -0
- package/bin/tools/renderToHtml.js +177 -0
- package/bin/tools/searchComponent.d.ts +4 -0
- package/bin/tools/searchComponent.js +33 -0
- package/bin/tools/searchIcon.d.ts +7 -0
- package/bin/tools/searchIcon.js +19 -0
- package/bin/tools/validateHtml.d.ts +18 -0
- package/bin/tools/validateHtml.js +85 -0
- package/bin/types.d.ts +111 -0
- package/bin/types.js +5 -0
- package/bin/utils/bemValidator.d.ts +36 -0
- package/bin/utils/bemValidator.js +198 -0
- package/bin/utils/compliance.d.ts +52 -0
- package/bin/utils/compliance.js +199 -0
- package/bin/utils/dataLoader.d.ts +33 -0
- package/bin/utils/dataLoader.js +174 -0
- package/bin/utils/domEnvironment.d.ts +9 -0
- package/bin/utils/domEnvironment.js +25 -0
- package/bin/utils/fuzzyMatch.d.ts +21 -0
- package/bin/utils/fuzzyMatch.js +110 -0
- package/bin/utils/logger.d.ts +18 -0
- package/bin/utils/logger.js +27 -0
- package/bin/utils/response.d.ts +26 -0
- package/bin/utils/response.js +28 -0
- package/bin/utils/tokenValidator.d.ts +24 -0
- package/bin/utils/tokenValidator.js +162 -0
- package/bin/version.d.ts +4 -0
- package/bin/version.js +7 -0
- package/data/_icons.json +12361 -0
- package/data/_meta.json +12 -0
- package/data/_tokens.json +661 -0
- package/data/badge-group.json +121 -0
- package/data/badge.json +130 -0
- package/data/bread-crumb.json +51 -0
- package/data/button-group.json +94 -0
- package/data/button.json +143 -0
- package/data/carousel-arrow.json +87 -0
- package/data/carousel-number-group.json +87 -0
- package/data/checkbox.json +99 -0
- package/data/combo-box.json +157 -0
- package/data/date-picker.json +109 -0
- package/data/divider.json +91 -0
- package/data/dot.json +103 -0
- package/data/dropdown.json +123 -0
- package/data/empty-state.json +64 -0
- package/data/featured-icon.json +125 -0
- package/data/file-input.json +161 -0
- package/data/horizontal-tab.json +114 -0
- package/data/image-file-input.json +185 -0
- package/data/input-base.json +145 -0
- package/data/modal.json +131 -0
- package/data/notification.json +176 -0
- package/data/number-input.json +141 -0
- package/data/pagination.json +101 -0
- package/data/password-input.json +45 -0
- package/data/progress-bar.json +90 -0
- package/data/progress-circle.json +96 -0
- package/data/radio.json +86 -0
- package/data/range-date-picker-with-buttons.json +101 -0
- package/data/range-date-picker.json +87 -0
- package/data/select-box.json +177 -0
- package/data/select.json +116 -0
- package/data/slider.json +100 -0
- package/data/spinner.json +94 -0
- package/data/switch.json +109 -0
- package/data/tag.json +101 -0
- package/data/textarea.json +96 -0
- package/data/toggle.json +102 -0
- package/data/tooltip.json +185 -0
- package/data/vertical-tab.json +99 -0
- package/package.json +71 -0
- package/templates/.mcp.json.example +8 -0
- package/templates/README.md +30 -0
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "image-file-input",
|
|
3
|
+
"exportName": "ImageFileInput",
|
|
4
|
+
"importPath": "@ncds/ui-admin",
|
|
5
|
+
"jsRequired": true,
|
|
6
|
+
"category": "input",
|
|
7
|
+
"description": "상품 이미지 등 시각적으로 참조되어야 하는 이미지 업로드 영역에 사용되는 컴포넌트입니다",
|
|
8
|
+
"aliases": [
|
|
9
|
+
"이미지파일인풋",
|
|
10
|
+
"ImageFileInput",
|
|
11
|
+
"이미지업로드",
|
|
12
|
+
"썸네일",
|
|
13
|
+
"미리보기",
|
|
14
|
+
"이미지첨부",
|
|
15
|
+
"파일찾기",
|
|
16
|
+
"업로드",
|
|
17
|
+
"accept",
|
|
18
|
+
"maxFileCount",
|
|
19
|
+
"maxFileSize",
|
|
20
|
+
"onFail",
|
|
21
|
+
"multiple",
|
|
22
|
+
"hintText",
|
|
23
|
+
"hintItems",
|
|
24
|
+
"destructive",
|
|
25
|
+
"NCDS"
|
|
26
|
+
],
|
|
27
|
+
"hasChildren": false,
|
|
28
|
+
"whenToUse": [
|
|
29
|
+
"썸네일 중심 UI를 기본으로 하며 이미지 비율 왜곡 없이 중앙 정렬하고 삭제는 Hover 시에만 노출해야 하는 경우",
|
|
30
|
+
"이미지 업로드와 미리보기가 필요한 경우",
|
|
31
|
+
"일반 파일이 아닌 이미지 전용 업로드 영역"
|
|
32
|
+
],
|
|
33
|
+
"forbiddenRules": [
|
|
34
|
+
"단일 영역에서 다중 이미지 누적 금지",
|
|
35
|
+
"최대 등록 수 초과 시 무반응 처리 금지",
|
|
36
|
+
"Hover 없이 삭제 기능 항상 노출 금지",
|
|
37
|
+
"이미지 비율 왜곡 노출 금지",
|
|
38
|
+
"파일명 중심 UI로 구성 금지",
|
|
39
|
+
"제한 정책 안내 없이 업로드 허용 금지"
|
|
40
|
+
],
|
|
41
|
+
"seeAlso": [
|
|
42
|
+
"file-input"
|
|
43
|
+
],
|
|
44
|
+
"props": {
|
|
45
|
+
"accept": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"required": false
|
|
48
|
+
},
|
|
49
|
+
"buttonLabel": {
|
|
50
|
+
"type": "string",
|
|
51
|
+
"required": false,
|
|
52
|
+
"default": "파일 찾기"
|
|
53
|
+
},
|
|
54
|
+
"destructive": {
|
|
55
|
+
"type": "boolean",
|
|
56
|
+
"required": false
|
|
57
|
+
},
|
|
58
|
+
"disabled": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"required": false
|
|
61
|
+
},
|
|
62
|
+
"hintItems": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"required": false,
|
|
65
|
+
"rawType": "string[] | undefined"
|
|
66
|
+
},
|
|
67
|
+
"hintText": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"required": false
|
|
70
|
+
},
|
|
71
|
+
"imagePreviewTooltipLabel": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"required": false,
|
|
74
|
+
"default": "이미지 업로드"
|
|
75
|
+
},
|
|
76
|
+
"isRequired": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"required": false
|
|
79
|
+
},
|
|
80
|
+
"label": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"required": false
|
|
83
|
+
},
|
|
84
|
+
"leadingElement": {
|
|
85
|
+
"type": "object",
|
|
86
|
+
"required": false
|
|
87
|
+
},
|
|
88
|
+
"maxFileCount": {
|
|
89
|
+
"type": "number",
|
|
90
|
+
"required": false
|
|
91
|
+
},
|
|
92
|
+
"maxFileSize": {
|
|
93
|
+
"type": "number",
|
|
94
|
+
"required": false
|
|
95
|
+
},
|
|
96
|
+
"maxLength": {
|
|
97
|
+
"type": "number",
|
|
98
|
+
"required": false
|
|
99
|
+
},
|
|
100
|
+
"onChange": {
|
|
101
|
+
"type": "function",
|
|
102
|
+
"required": false
|
|
103
|
+
},
|
|
104
|
+
"onFail": {
|
|
105
|
+
"type": "function",
|
|
106
|
+
"required": false
|
|
107
|
+
},
|
|
108
|
+
"onFileSelect": {
|
|
109
|
+
"type": "function",
|
|
110
|
+
"required": false
|
|
111
|
+
},
|
|
112
|
+
"required": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"required": false
|
|
115
|
+
},
|
|
116
|
+
"showFileInput": {
|
|
117
|
+
"type": "boolean",
|
|
118
|
+
"required": false,
|
|
119
|
+
"default": true
|
|
120
|
+
},
|
|
121
|
+
"showFileTagList": {
|
|
122
|
+
"type": "boolean",
|
|
123
|
+
"required": false,
|
|
124
|
+
"default": true
|
|
125
|
+
},
|
|
126
|
+
"showHelpIcon": {
|
|
127
|
+
"type": "boolean",
|
|
128
|
+
"required": false
|
|
129
|
+
},
|
|
130
|
+
"showHintText": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"required": false,
|
|
133
|
+
"default": true
|
|
134
|
+
},
|
|
135
|
+
"showTextCount": {
|
|
136
|
+
"type": "boolean",
|
|
137
|
+
"required": false
|
|
138
|
+
},
|
|
139
|
+
"size": {
|
|
140
|
+
"type": "enum",
|
|
141
|
+
"required": false,
|
|
142
|
+
"values": [
|
|
143
|
+
"sm",
|
|
144
|
+
"xs"
|
|
145
|
+
],
|
|
146
|
+
"default": "sm"
|
|
147
|
+
},
|
|
148
|
+
"trailingElement": {
|
|
149
|
+
"type": "object",
|
|
150
|
+
"required": false
|
|
151
|
+
},
|
|
152
|
+
"validation": {
|
|
153
|
+
"type": "boolean",
|
|
154
|
+
"required": false
|
|
155
|
+
},
|
|
156
|
+
"value": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"required": false,
|
|
159
|
+
"rawType": "File[] | undefined"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"html": {},
|
|
163
|
+
"bemClasses": [
|
|
164
|
+
"ncua-file-input",
|
|
165
|
+
"ncua-file-input--sm",
|
|
166
|
+
"ncua-file-input--xs",
|
|
167
|
+
"ncua-file-input__hint-item",
|
|
168
|
+
"ncua-file-input__hint-list",
|
|
169
|
+
"ncua-file-input__input-container",
|
|
170
|
+
"ncua-file-input__label",
|
|
171
|
+
"ncua-image-file-input",
|
|
172
|
+
"ncua-image-file-input__empty-slot-wrapper",
|
|
173
|
+
"ncua-image-file-input__preview-container",
|
|
174
|
+
"ncua-image-file-input__previews",
|
|
175
|
+
"ncua-input__help-icon"
|
|
176
|
+
],
|
|
177
|
+
"usage": {
|
|
178
|
+
"import": "import { ImageFileInput } from '@ncds/ui-admin';",
|
|
179
|
+
"react": {
|
|
180
|
+
"default": "<ImageFileInput />",
|
|
181
|
+
"size:sm": "<ImageFileInput size=\"sm\" />",
|
|
182
|
+
"size:xs": "<ImageFileInput size=\"xs\" />"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "input-base",
|
|
3
|
+
"exportName": "InputBase",
|
|
4
|
+
"importPath": "@ncds/ui-admin",
|
|
5
|
+
"jsRequired": false,
|
|
6
|
+
"category": "input",
|
|
7
|
+
"description": "Input은 사용자에게 텍스트 데이터를 입력받는 UI 요소로, 다양한 사이즈와 상태를 지원하며 입력 필드 앞뒤로 아이콘, 텍스트, 버튼 등의 요소를 배치할 수 있습니다.",
|
|
8
|
+
"aliases": [
|
|
9
|
+
"인풋",
|
|
10
|
+
"InputBase",
|
|
11
|
+
"InputBase",
|
|
12
|
+
"PasswordInput",
|
|
13
|
+
"텍스트입력",
|
|
14
|
+
"비밀번호",
|
|
15
|
+
"이메일",
|
|
16
|
+
"드롭다운",
|
|
17
|
+
"리딩텍스트",
|
|
18
|
+
"트레일링버튼",
|
|
19
|
+
"clearText",
|
|
20
|
+
"showTextCount",
|
|
21
|
+
"maxLength",
|
|
22
|
+
"leadingElement",
|
|
23
|
+
"trailingElement",
|
|
24
|
+
"validation",
|
|
25
|
+
"destructive",
|
|
26
|
+
"NCDS"
|
|
27
|
+
],
|
|
28
|
+
"hasChildren": false,
|
|
29
|
+
"whenToUse": [
|
|
30
|
+
"Input은 명확한 레이블, 입력 예시(Placeholder), 유효성 안내(Helper Text)와 함께 제공되어야 하며, 사용자가 입력 가능한 형식과 제한 조건을 입력 전에 인지할 수 있어야 한다"
|
|
31
|
+
],
|
|
32
|
+
"forbiddenRules": [
|
|
33
|
+
"Label 없는 단독 Input 사용 금지",
|
|
34
|
+
"Placeholder를 Label 대체로 사용 금지",
|
|
35
|
+
"50자 이상 필드에 Text Field 사용 금지",
|
|
36
|
+
"Max 초과 입력 허용 금지",
|
|
37
|
+
"Error 상태를 실시간 남용 금지"
|
|
38
|
+
],
|
|
39
|
+
"seeAlso": [
|
|
40
|
+
"textarea",
|
|
41
|
+
"button",
|
|
42
|
+
"dropdown",
|
|
43
|
+
"tooltip",
|
|
44
|
+
"file-input",
|
|
45
|
+
"image-file-input"
|
|
46
|
+
],
|
|
47
|
+
"htmlElement": "input",
|
|
48
|
+
"props": {
|
|
49
|
+
"clearText": {
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"required": false
|
|
52
|
+
},
|
|
53
|
+
"destructive": {
|
|
54
|
+
"type": "boolean",
|
|
55
|
+
"required": false
|
|
56
|
+
},
|
|
57
|
+
"disabled": {
|
|
58
|
+
"type": "boolean",
|
|
59
|
+
"required": false
|
|
60
|
+
},
|
|
61
|
+
"hintText": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"required": false
|
|
64
|
+
},
|
|
65
|
+
"label": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"required": false
|
|
68
|
+
},
|
|
69
|
+
"leadingElement": {
|
|
70
|
+
"type": "object",
|
|
71
|
+
"required": false
|
|
72
|
+
},
|
|
73
|
+
"maxLength": {
|
|
74
|
+
"type": "number",
|
|
75
|
+
"required": false
|
|
76
|
+
},
|
|
77
|
+
"onClearText": {
|
|
78
|
+
"type": "function",
|
|
79
|
+
"required": false
|
|
80
|
+
},
|
|
81
|
+
"required": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"required": false
|
|
84
|
+
},
|
|
85
|
+
"showHelpIcon": {
|
|
86
|
+
"type": "boolean",
|
|
87
|
+
"required": false
|
|
88
|
+
},
|
|
89
|
+
"showTextCount": {
|
|
90
|
+
"type": "boolean",
|
|
91
|
+
"required": false
|
|
92
|
+
},
|
|
93
|
+
"size": {
|
|
94
|
+
"type": "enum",
|
|
95
|
+
"required": false,
|
|
96
|
+
"values": [
|
|
97
|
+
"sm",
|
|
98
|
+
"xs"
|
|
99
|
+
],
|
|
100
|
+
"default": "xs"
|
|
101
|
+
},
|
|
102
|
+
"trailingElement": {
|
|
103
|
+
"type": "object",
|
|
104
|
+
"required": false
|
|
105
|
+
},
|
|
106
|
+
"validation": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"required": false
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"html": {},
|
|
112
|
+
"bemClasses": [
|
|
113
|
+
"ncua-input",
|
|
114
|
+
"ncua-input--sm",
|
|
115
|
+
"ncua-input--xs",
|
|
116
|
+
"ncua-input__",
|
|
117
|
+
"ncua-input__button",
|
|
118
|
+
"ncua-input__clear",
|
|
119
|
+
"ncua-input__clear-icon",
|
|
120
|
+
"ncua-input__content",
|
|
121
|
+
"ncua-input__content-wrap",
|
|
122
|
+
"ncua-input__destructive-icon",
|
|
123
|
+
"ncua-input__field",
|
|
124
|
+
"ncua-input__field-text-count",
|
|
125
|
+
"ncua-input__field-text-count-current",
|
|
126
|
+
"ncua-input__help-icon",
|
|
127
|
+
"ncua-input__hint-text",
|
|
128
|
+
"ncua-input__icon-wrap",
|
|
129
|
+
"ncua-input__icon-wrap ncua-input__right-icon",
|
|
130
|
+
"ncua-input__label",
|
|
131
|
+
"ncua-input__leading-text",
|
|
132
|
+
"ncua-input__leading-text-wrap",
|
|
133
|
+
"ncua-input__right-icon",
|
|
134
|
+
"ncua-input__trailing-button",
|
|
135
|
+
"ncua-input__validation-icon"
|
|
136
|
+
],
|
|
137
|
+
"usage": {
|
|
138
|
+
"import": "import { InputBase } from '@ncds/ui-admin';",
|
|
139
|
+
"react": {
|
|
140
|
+
"default": "<InputBase />",
|
|
141
|
+
"size:sm": "<InputBase size=\"sm\" />",
|
|
142
|
+
"size:xs": "<InputBase size=\"xs\" />"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
package/data/modal.json
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "modal",
|
|
3
|
+
"exportName": "Modal",
|
|
4
|
+
"importPath": "@ncds/ui-admin",
|
|
5
|
+
"jsRequired": true,
|
|
6
|
+
"category": "overlay",
|
|
7
|
+
"description": "Modal은 사용자가 현재 페이지를 이탈하지 않고도 집중이 필요한 중요 정보 제공 또는 복잡한 입력/처리 작업을 수행하도록 하기 위한 오버레이 UI 컴포넌트입니다.",
|
|
8
|
+
"aliases": [
|
|
9
|
+
"Modal",
|
|
10
|
+
"모달",
|
|
11
|
+
"Dialog",
|
|
12
|
+
"다이얼로그",
|
|
13
|
+
"Overlay",
|
|
14
|
+
"오버레이",
|
|
15
|
+
"Dim",
|
|
16
|
+
"Header",
|
|
17
|
+
"Content",
|
|
18
|
+
"Actions",
|
|
19
|
+
"Footer",
|
|
20
|
+
"Destructive",
|
|
21
|
+
"Primary",
|
|
22
|
+
"Secondary",
|
|
23
|
+
"sm",
|
|
24
|
+
"md",
|
|
25
|
+
"lg",
|
|
26
|
+
"xl",
|
|
27
|
+
"2xl",
|
|
28
|
+
"onClose",
|
|
29
|
+
"closeOnEsc",
|
|
30
|
+
"closeOnBackdropClick",
|
|
31
|
+
"NCDS"
|
|
32
|
+
],
|
|
33
|
+
"hasChildren": true,
|
|
34
|
+
"whenToUse": [
|
|
35
|
+
"현재 흐름을 중단하고 사용자 집중을 요구하는 UI 패턴입니다",
|
|
36
|
+
"정보 확인/입력/처리성 작업에만 한정하여 사용합니다"
|
|
37
|
+
],
|
|
38
|
+
"forbiddenRules": [
|
|
39
|
+
"단순 알림에 과도한 Modal 사용 금지",
|
|
40
|
+
"버튼 3개 이상 구성 금지",
|
|
41
|
+
"페이지 이동 대체용 사용 금지",
|
|
42
|
+
"화면 전환을 모두 Modal로 처리 금지",
|
|
43
|
+
"좌/우 스크롤 구조 금지",
|
|
44
|
+
"배경 스크롤 허용 금지"
|
|
45
|
+
],
|
|
46
|
+
"seeAlso": [
|
|
47
|
+
"button",
|
|
48
|
+
"featured-icon",
|
|
49
|
+
"icon",
|
|
50
|
+
"toast"
|
|
51
|
+
],
|
|
52
|
+
"props": {
|
|
53
|
+
"children": {
|
|
54
|
+
"type": "ReactNode",
|
|
55
|
+
"required": true
|
|
56
|
+
},
|
|
57
|
+
"className": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"required": false
|
|
60
|
+
},
|
|
61
|
+
"closeOnBackdropClick": {
|
|
62
|
+
"type": "boolean",
|
|
63
|
+
"required": false,
|
|
64
|
+
"default": false
|
|
65
|
+
},
|
|
66
|
+
"closeOnEsc": {
|
|
67
|
+
"type": "boolean",
|
|
68
|
+
"required": false,
|
|
69
|
+
"default": true
|
|
70
|
+
},
|
|
71
|
+
"isOpen": {
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"required": true
|
|
74
|
+
},
|
|
75
|
+
"onClose": {
|
|
76
|
+
"type": "function",
|
|
77
|
+
"required": true
|
|
78
|
+
},
|
|
79
|
+
"size": {
|
|
80
|
+
"type": "enum",
|
|
81
|
+
"required": false,
|
|
82
|
+
"values": [
|
|
83
|
+
"2xl",
|
|
84
|
+
"lg",
|
|
85
|
+
"md",
|
|
86
|
+
"sm",
|
|
87
|
+
"xl"
|
|
88
|
+
],
|
|
89
|
+
"default": "md"
|
|
90
|
+
},
|
|
91
|
+
"zIndex": {
|
|
92
|
+
"type": "number",
|
|
93
|
+
"required": false
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"html": {},
|
|
97
|
+
"bemClasses": [
|
|
98
|
+
"ncua-modal",
|
|
99
|
+
"ncua-modal--2xl",
|
|
100
|
+
"ncua-modal--lg",
|
|
101
|
+
"ncua-modal--md",
|
|
102
|
+
"ncua-modal--sm",
|
|
103
|
+
"ncua-modal--xl",
|
|
104
|
+
"ncua-modal-backdrop",
|
|
105
|
+
"ncua-modal__actions",
|
|
106
|
+
"ncua-modal__actions-checkbox",
|
|
107
|
+
"ncua-modal__actions-checkbox-content",
|
|
108
|
+
"ncua-modal__actions-divider",
|
|
109
|
+
"ncua-modal__actions-wrapper",
|
|
110
|
+
"ncua-modal__actions-wrapper--checkbox",
|
|
111
|
+
"ncua-modal__close-button",
|
|
112
|
+
"ncua-modal__content",
|
|
113
|
+
"ncua-modal__header",
|
|
114
|
+
"ncua-modal__header--close-button",
|
|
115
|
+
"ncua-modal__header-divider",
|
|
116
|
+
"ncua-modal__title",
|
|
117
|
+
"ncua-modal__title-subtitle",
|
|
118
|
+
"ncua-modal__title-text"
|
|
119
|
+
],
|
|
120
|
+
"usage": {
|
|
121
|
+
"import": "import { Modal } from '@ncds/ui-admin';",
|
|
122
|
+
"react": {
|
|
123
|
+
"default": "<Modal children=\"예시\" isOpen onClose=\"\" />",
|
|
124
|
+
"size:2xl": "<Modal size=\"2xl\" children=\"예시\" isOpen onClose=\"\" />",
|
|
125
|
+
"size:lg": "<Modal size=\"lg\" children=\"예시\" isOpen onClose=\"\" />",
|
|
126
|
+
"size:md": "<Modal size=\"md\" children=\"예시\" isOpen onClose=\"\" />",
|
|
127
|
+
"size:sm": "<Modal size=\"sm\" children=\"예시\" isOpen onClose=\"\" />",
|
|
128
|
+
"size:xl": "<Modal size=\"xl\" children=\"예시\" isOpen onClose=\"\" />"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "notification",
|
|
3
|
+
"exportName": "Notification",
|
|
4
|
+
"importPath": "@ncds/ui-admin",
|
|
5
|
+
"jsRequired": true,
|
|
6
|
+
"category": "overlay",
|
|
7
|
+
"description": "Notification 컴포넌트는 현재 작업과 관련된 상태 정보, 경고, 확인 요청, 처리 결과를 사용자에게 전달하는 UI입니다.",
|
|
8
|
+
"aliases": [
|
|
9
|
+
"Notification",
|
|
10
|
+
"알림",
|
|
11
|
+
"푸시알림",
|
|
12
|
+
"Confirm Alert",
|
|
13
|
+
"Alert",
|
|
14
|
+
"Toast Alert",
|
|
15
|
+
"Toast",
|
|
16
|
+
"Floating",
|
|
17
|
+
"Full-width",
|
|
18
|
+
"Message",
|
|
19
|
+
"onClose",
|
|
20
|
+
"autoClose",
|
|
21
|
+
"actions",
|
|
22
|
+
"color",
|
|
23
|
+
"neutral",
|
|
24
|
+
"error",
|
|
25
|
+
"warning",
|
|
26
|
+
"success",
|
|
27
|
+
"info",
|
|
28
|
+
"Dim",
|
|
29
|
+
"Destructive",
|
|
30
|
+
"aria-live",
|
|
31
|
+
"NCDS"
|
|
32
|
+
],
|
|
33
|
+
"hasChildren": false,
|
|
34
|
+
"whenToUse": [
|
|
35
|
+
"사용자 액션의 영향도 및 시스템 상태 변화에 따라 적절한 유형을 선택하여 사용해야 합니다",
|
|
36
|
+
"과도하거나 잘못된 유형 사용은 사용자 경험을 저해합니다"
|
|
37
|
+
],
|
|
38
|
+
"forbiddenRules": [
|
|
39
|
+
"Confirm Alert에 단일 버튼 구성 금지",
|
|
40
|
+
"Confirm Alert에 취소 버튼 미제공 금지",
|
|
41
|
+
"파괴적 액션에 일반 버튼 사용 금지",
|
|
42
|
+
"Alert에 2개 이상의 버튼 금지",
|
|
43
|
+
"Alert에 Destructive 스타일 남용 금지",
|
|
44
|
+
"Toast에 Dim 처리 금지",
|
|
45
|
+
"Confirm 대신 Toast 사용 금지",
|
|
46
|
+
"시스템 영향 큰 작업에 Toast 사용 금지",
|
|
47
|
+
"Message type에 info 컬러 사용 금지"
|
|
48
|
+
],
|
|
49
|
+
"seeAlso": [
|
|
50
|
+
"modal",
|
|
51
|
+
"button",
|
|
52
|
+
"featured-icon",
|
|
53
|
+
"icon"
|
|
54
|
+
],
|
|
55
|
+
"htmlElement": "div",
|
|
56
|
+
"props": {
|
|
57
|
+
"actions": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"required": false,
|
|
60
|
+
"rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/components/notification/Notification\").NotificationAction[] | undefined"
|
|
61
|
+
},
|
|
62
|
+
"autoClose": {
|
|
63
|
+
"type": "number",
|
|
64
|
+
"required": false,
|
|
65
|
+
"default": 0
|
|
66
|
+
},
|
|
67
|
+
"className": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"required": false
|
|
70
|
+
},
|
|
71
|
+
"color": {
|
|
72
|
+
"type": "enum",
|
|
73
|
+
"required": false,
|
|
74
|
+
"values": [
|
|
75
|
+
"error",
|
|
76
|
+
"info",
|
|
77
|
+
"neutral",
|
|
78
|
+
"success",
|
|
79
|
+
"warning"
|
|
80
|
+
],
|
|
81
|
+
"default": "neutral"
|
|
82
|
+
},
|
|
83
|
+
"icon": {
|
|
84
|
+
"type": "object",
|
|
85
|
+
"required": false
|
|
86
|
+
},
|
|
87
|
+
"onClose": {
|
|
88
|
+
"type": "function",
|
|
89
|
+
"required": false
|
|
90
|
+
},
|
|
91
|
+
"onHidePermanently": {
|
|
92
|
+
"type": "function",
|
|
93
|
+
"required": false
|
|
94
|
+
},
|
|
95
|
+
"supportingText": {
|
|
96
|
+
"type": "ReactNode",
|
|
97
|
+
"required": false
|
|
98
|
+
},
|
|
99
|
+
"title": {
|
|
100
|
+
"type": "ReactNode",
|
|
101
|
+
"required": true
|
|
102
|
+
},
|
|
103
|
+
"type": {
|
|
104
|
+
"type": "enum",
|
|
105
|
+
"required": false,
|
|
106
|
+
"values": [
|
|
107
|
+
"floating",
|
|
108
|
+
"full-width",
|
|
109
|
+
"message"
|
|
110
|
+
],
|
|
111
|
+
"default": "floating"
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"html": {},
|
|
115
|
+
"bemClasses": [
|
|
116
|
+
"ncua-floating-notification",
|
|
117
|
+
"ncua-floating-notification--error",
|
|
118
|
+
"ncua-floating-notification--floating",
|
|
119
|
+
"ncua-floating-notification--full-width",
|
|
120
|
+
"ncua-floating-notification--info",
|
|
121
|
+
"ncua-floating-notification--message",
|
|
122
|
+
"ncua-floating-notification--neutral",
|
|
123
|
+
"ncua-floating-notification--success",
|
|
124
|
+
"ncua-floating-notification--warning",
|
|
125
|
+
"ncua-floating-notification__actions",
|
|
126
|
+
"ncua-floating-notification__close-button",
|
|
127
|
+
"ncua-floating-notification__container",
|
|
128
|
+
"ncua-floating-notification__content",
|
|
129
|
+
"ncua-floating-notification__supporting-text",
|
|
130
|
+
"ncua-floating-notification__text-container",
|
|
131
|
+
"ncua-floating-notification__title",
|
|
132
|
+
"ncua-floating-notification__title-wrapper",
|
|
133
|
+
"ncua-full-width-notification",
|
|
134
|
+
"ncua-full-width-notification__actions",
|
|
135
|
+
"ncua-full-width-notification__actions-container",
|
|
136
|
+
"ncua-full-width-notification__close-button",
|
|
137
|
+
"ncua-full-width-notification__container",
|
|
138
|
+
"ncua-full-width-notification__content",
|
|
139
|
+
"ncua-full-width-notification__content-wrapper",
|
|
140
|
+
"ncua-full-width-notification__icon",
|
|
141
|
+
"ncua-full-width-notification__link",
|
|
142
|
+
"ncua-full-width-notification__supporting-text",
|
|
143
|
+
"ncua-full-width-notification__text-container",
|
|
144
|
+
"ncua-full-width-notification__title",
|
|
145
|
+
"ncua-message-notification",
|
|
146
|
+
"ncua-message-notification__actions",
|
|
147
|
+
"ncua-message-notification__actions-container",
|
|
148
|
+
"ncua-message-notification__close-button",
|
|
149
|
+
"ncua-message-notification__container",
|
|
150
|
+
"ncua-message-notification__content",
|
|
151
|
+
"ncua-message-notification__content-wrapper",
|
|
152
|
+
"ncua-message-notification__footer-container",
|
|
153
|
+
"ncua-message-notification__hide-link",
|
|
154
|
+
"ncua-message-notification__icon",
|
|
155
|
+
"ncua-message-notification__supporting-text",
|
|
156
|
+
"ncua-message-notification__text-container",
|
|
157
|
+
"ncua-message-notification__title",
|
|
158
|
+
"ncua-notification__action-button",
|
|
159
|
+
"ncua-notification__action-button--link",
|
|
160
|
+
"ncua-notification__action-button--text"
|
|
161
|
+
],
|
|
162
|
+
"usage": {
|
|
163
|
+
"import": "import { Notification } from '@ncds/ui-admin';",
|
|
164
|
+
"react": {
|
|
165
|
+
"default": "<Notification title=\"예시\" />",
|
|
166
|
+
"color:error": "<Notification color=\"error\" title=\"예시\" />",
|
|
167
|
+
"color:info": "<Notification color=\"info\" title=\"예시\" />",
|
|
168
|
+
"color:neutral": "<Notification color=\"neutral\" title=\"예시\" />",
|
|
169
|
+
"color:success": "<Notification color=\"success\" title=\"예시\" />",
|
|
170
|
+
"color:warning": "<Notification color=\"warning\" title=\"예시\" />",
|
|
171
|
+
"type:floating": "<Notification type=\"floating\" title=\"예시\" />",
|
|
172
|
+
"type:full-width": "<Notification type=\"full-width\" title=\"예시\" />",
|
|
173
|
+
"type:message": "<Notification type=\"message\" title=\"예시\" />"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|