@ncds/ui-admin-mcp 1.0.0-alpha.10
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 +1 -0
- package/bin/definitions/compliance-rules.json +64 -0
- package/bin/definitions/instructions.md +164 -0
- package/bin/definitions/js-api.json +165 -0
- package/bin/definitions/rules.json +59 -0
- package/bin/definitions/token-descriptions.json +27 -0
- package/bin/definitions/tool-definitions.json +58 -0
- package/bin/server.d.ts +1 -0
- package/bin/server.js +217 -0
- package/bin/server.mjs +8 -0
- package/bin/tools/getComponentProps.d.ts +4 -0
- package/bin/tools/getComponentProps.js +20 -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 +23 -0
- package/bin/tools/renderToHtml.js +267 -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 +123 -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 +35 -0
- package/bin/utils/dataLoader.js +192 -0
- package/bin/utils/domEnvironment.d.ts +9 -0
- package/bin/utils/domEnvironment.js +75 -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 +28 -0
- package/bin/utils/response.js +39 -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 +12401 -0
- package/data/_meta.json +12 -0
- package/data/_tokens.json +661 -0
- package/data/badge-group.json +295 -0
- package/data/badge.json +246 -0
- package/data/bread-crumb.json +87 -0
- package/data/button-group.json +94 -0
- package/data/button.json +259 -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 +173 -0
- package/data/date-picker.json +123 -0
- package/data/divider.json +91 -0
- package/data/dot.json +103 -0
- package/data/dropdown.json +258 -0
- package/data/empty-state.json +227 -0
- package/data/featured-icon.json +139 -0
- package/data/file-input.json +315 -0
- package/data/horizontal-tab.json +329 -0
- package/data/image-file-input.json +339 -0
- package/data/input-base.json +299 -0
- package/data/modal.json +143 -0
- package/data/notification.json +194 -0
- package/data/number-input.json +295 -0
- package/data/pagination.json +101 -0
- package/data/password-input.json +263 -0
- package/data/progress-bar.json +109 -0
- package/data/progress-circle.json +96 -0
- package/data/radio.json +86 -0
- package/data/range-date-picker-with-buttons.json +273 -0
- package/data/range-date-picker.json +259 -0
- package/data/select-box.json +193 -0
- package/data/select.json +132 -0
- package/data/slider.json +100 -0
- package/data/spinner.json +93 -0
- package/data/switch.json +156 -0
- package/data/tag.json +159 -0
- package/data/textarea.json +96 -0
- package/data/toggle.json +102 -0
- package/data/tooltip.json +185 -0
- package/data/vertical-tab.json +314 -0
- package/package.json +61 -0
- package/templates/.mcp.json.example +8 -0
- package/templates/README.md +30 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "badge-group",
|
|
3
|
+
"exportName": "BadgeGroup",
|
|
4
|
+
"importPath": "@ncds/ui-admin",
|
|
5
|
+
"jsRequired": false,
|
|
6
|
+
"category": "feedback",
|
|
7
|
+
"description": "BadgeGroup은 Badge 컴포넌트를 그룹화하여 표시하는 컴포넌트입니다. 주로 Badge와 함께 추가적인 라벨과 아이콘을 표시하여 액션유도할 수 있는 아이템으로 활용할 수 있습니다.",
|
|
8
|
+
"aliases": [
|
|
9
|
+
"BadgeGroup",
|
|
10
|
+
"배지그룹",
|
|
11
|
+
"뱃지그룹",
|
|
12
|
+
"Badge",
|
|
13
|
+
"groupLabel",
|
|
14
|
+
"groupIcon",
|
|
15
|
+
"pill",
|
|
16
|
+
"액션유도",
|
|
17
|
+
"링크",
|
|
18
|
+
"상태표시",
|
|
19
|
+
"NCDS"
|
|
20
|
+
],
|
|
21
|
+
"hasChildren": false,
|
|
22
|
+
"whenToUse": [
|
|
23
|
+
"Badge + groupLabel + groupIcon을 조합하여 상태 정보와 함께 추가 설명 및 액션을 유도",
|
|
24
|
+
"Badge(읽기 전용)와 달리 Hover 상태와 링크 기능을 지원"
|
|
25
|
+
],
|
|
26
|
+
"forbiddenRules": [
|
|
27
|
+
"의미 없는 그룹 사용 금지(groupLabel 없이 Badge만 사용할 경우 Badge 직접 사용)",
|
|
28
|
+
"과도한 groupLabel 금지(간결한 한 문장)",
|
|
29
|
+
"컬러 의미 혼용 금지",
|
|
30
|
+
"커스텀 아이콘 금지(SideSlotType 정의에 따른 구조체만 사용)",
|
|
31
|
+
"과도한 중첩 금지",
|
|
32
|
+
"이미지 삽입 금지"
|
|
33
|
+
],
|
|
34
|
+
"seeAlso": [
|
|
35
|
+
"badge",
|
|
36
|
+
"horizontal-tab",
|
|
37
|
+
"vertical-tab"
|
|
38
|
+
],
|
|
39
|
+
"props": {
|
|
40
|
+
"className": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"required": false
|
|
43
|
+
},
|
|
44
|
+
"color": {
|
|
45
|
+
"type": "enum",
|
|
46
|
+
"required": false,
|
|
47
|
+
"values": [
|
|
48
|
+
"error",
|
|
49
|
+
"neutral",
|
|
50
|
+
"success",
|
|
51
|
+
"warning"
|
|
52
|
+
],
|
|
53
|
+
"default": "neutral"
|
|
54
|
+
},
|
|
55
|
+
"groupClassName": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"required": false
|
|
58
|
+
},
|
|
59
|
+
"groupIcon": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"required": false,
|
|
62
|
+
"rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/types/side-slot\").SideSlotType | undefined",
|
|
63
|
+
"properties": {
|
|
64
|
+
"type": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"required": true,
|
|
67
|
+
"rawType": "\"icon\""
|
|
68
|
+
},
|
|
69
|
+
"icon": {
|
|
70
|
+
"type": "function",
|
|
71
|
+
"required": false
|
|
72
|
+
},
|
|
73
|
+
"color": {
|
|
74
|
+
"type": "enum",
|
|
75
|
+
"required": false,
|
|
76
|
+
"values": [
|
|
77
|
+
"black",
|
|
78
|
+
"blue500",
|
|
79
|
+
"blue600",
|
|
80
|
+
"currentColor",
|
|
81
|
+
"gray100",
|
|
82
|
+
"gray200",
|
|
83
|
+
"gray300",
|
|
84
|
+
"gray400",
|
|
85
|
+
"gray500",
|
|
86
|
+
"gray600",
|
|
87
|
+
"gray700",
|
|
88
|
+
"green500",
|
|
89
|
+
"green600",
|
|
90
|
+
"orange500",
|
|
91
|
+
"orange600",
|
|
92
|
+
"pink100",
|
|
93
|
+
"pink600",
|
|
94
|
+
"red500",
|
|
95
|
+
"red600",
|
|
96
|
+
"secondary-gray-blue-100",
|
|
97
|
+
"secondary-gray-blue-200",
|
|
98
|
+
"secondary-gray-blue-300",
|
|
99
|
+
"secondary-gray-blue-400",
|
|
100
|
+
"secondary-gray-blue-450",
|
|
101
|
+
"secondary-gray-blue-50",
|
|
102
|
+
"secondary-gray-blue-500",
|
|
103
|
+
"secondary-gray-blue-600",
|
|
104
|
+
"secondary-gray-blue-700",
|
|
105
|
+
"violet300",
|
|
106
|
+
"violet600",
|
|
107
|
+
"white",
|
|
108
|
+
"yellow600"
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"size": {
|
|
112
|
+
"type": "number",
|
|
113
|
+
"required": false
|
|
114
|
+
},
|
|
115
|
+
"children": {
|
|
116
|
+
"type": "ReactNode",
|
|
117
|
+
"required": false
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"groupLabel": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"required": true
|
|
124
|
+
},
|
|
125
|
+
"href": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"required": false
|
|
128
|
+
},
|
|
129
|
+
"label": {
|
|
130
|
+
"type": "string",
|
|
131
|
+
"required": true
|
|
132
|
+
},
|
|
133
|
+
"leadingIcon": {
|
|
134
|
+
"type": "object",
|
|
135
|
+
"required": false,
|
|
136
|
+
"rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/types/side-slot\").SideSlotType | undefined",
|
|
137
|
+
"properties": {
|
|
138
|
+
"type": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"required": true,
|
|
141
|
+
"rawType": "\"icon\""
|
|
142
|
+
},
|
|
143
|
+
"icon": {
|
|
144
|
+
"type": "function",
|
|
145
|
+
"required": false
|
|
146
|
+
},
|
|
147
|
+
"color": {
|
|
148
|
+
"type": "enum",
|
|
149
|
+
"required": false,
|
|
150
|
+
"values": [
|
|
151
|
+
"black",
|
|
152
|
+
"blue500",
|
|
153
|
+
"blue600",
|
|
154
|
+
"currentColor",
|
|
155
|
+
"gray100",
|
|
156
|
+
"gray200",
|
|
157
|
+
"gray300",
|
|
158
|
+
"gray400",
|
|
159
|
+
"gray500",
|
|
160
|
+
"gray600",
|
|
161
|
+
"gray700",
|
|
162
|
+
"green500",
|
|
163
|
+
"green600",
|
|
164
|
+
"orange500",
|
|
165
|
+
"orange600",
|
|
166
|
+
"pink100",
|
|
167
|
+
"pink600",
|
|
168
|
+
"red500",
|
|
169
|
+
"red600",
|
|
170
|
+
"secondary-gray-blue-100",
|
|
171
|
+
"secondary-gray-blue-200",
|
|
172
|
+
"secondary-gray-blue-300",
|
|
173
|
+
"secondary-gray-blue-400",
|
|
174
|
+
"secondary-gray-blue-450",
|
|
175
|
+
"secondary-gray-blue-50",
|
|
176
|
+
"secondary-gray-blue-500",
|
|
177
|
+
"secondary-gray-blue-600",
|
|
178
|
+
"secondary-gray-blue-700",
|
|
179
|
+
"violet300",
|
|
180
|
+
"violet600",
|
|
181
|
+
"white",
|
|
182
|
+
"yellow600"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
"size": {
|
|
186
|
+
"type": "number",
|
|
187
|
+
"required": false
|
|
188
|
+
},
|
|
189
|
+
"children": {
|
|
190
|
+
"type": "ReactNode",
|
|
191
|
+
"required": false
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"size": {
|
|
196
|
+
"type": "enum",
|
|
197
|
+
"required": false,
|
|
198
|
+
"values": [
|
|
199
|
+
"sm",
|
|
200
|
+
"xs"
|
|
201
|
+
],
|
|
202
|
+
"default": "sm"
|
|
203
|
+
},
|
|
204
|
+
"target": {
|
|
205
|
+
"type": "string",
|
|
206
|
+
"required": false,
|
|
207
|
+
"default": "_blank"
|
|
208
|
+
},
|
|
209
|
+
"trailingIcon": {
|
|
210
|
+
"type": "object",
|
|
211
|
+
"required": false,
|
|
212
|
+
"rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/types/side-slot\").SideSlotType | undefined",
|
|
213
|
+
"properties": {
|
|
214
|
+
"type": {
|
|
215
|
+
"type": "string",
|
|
216
|
+
"required": true,
|
|
217
|
+
"rawType": "\"icon\""
|
|
218
|
+
},
|
|
219
|
+
"icon": {
|
|
220
|
+
"type": "function",
|
|
221
|
+
"required": false
|
|
222
|
+
},
|
|
223
|
+
"color": {
|
|
224
|
+
"type": "enum",
|
|
225
|
+
"required": false,
|
|
226
|
+
"values": [
|
|
227
|
+
"black",
|
|
228
|
+
"blue500",
|
|
229
|
+
"blue600",
|
|
230
|
+
"currentColor",
|
|
231
|
+
"gray100",
|
|
232
|
+
"gray200",
|
|
233
|
+
"gray300",
|
|
234
|
+
"gray400",
|
|
235
|
+
"gray500",
|
|
236
|
+
"gray600",
|
|
237
|
+
"gray700",
|
|
238
|
+
"green500",
|
|
239
|
+
"green600",
|
|
240
|
+
"orange500",
|
|
241
|
+
"orange600",
|
|
242
|
+
"pink100",
|
|
243
|
+
"pink600",
|
|
244
|
+
"red500",
|
|
245
|
+
"red600",
|
|
246
|
+
"secondary-gray-blue-100",
|
|
247
|
+
"secondary-gray-blue-200",
|
|
248
|
+
"secondary-gray-blue-300",
|
|
249
|
+
"secondary-gray-blue-400",
|
|
250
|
+
"secondary-gray-blue-450",
|
|
251
|
+
"secondary-gray-blue-50",
|
|
252
|
+
"secondary-gray-blue-500",
|
|
253
|
+
"secondary-gray-blue-600",
|
|
254
|
+
"secondary-gray-blue-700",
|
|
255
|
+
"violet300",
|
|
256
|
+
"violet600",
|
|
257
|
+
"white",
|
|
258
|
+
"yellow600"
|
|
259
|
+
]
|
|
260
|
+
},
|
|
261
|
+
"size": {
|
|
262
|
+
"type": "number",
|
|
263
|
+
"required": false
|
|
264
|
+
},
|
|
265
|
+
"children": {
|
|
266
|
+
"type": "ReactNode",
|
|
267
|
+
"required": false
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
"html": {},
|
|
273
|
+
"bemClasses": [
|
|
274
|
+
"ncua-badge-group",
|
|
275
|
+
"ncua-badge-group--error",
|
|
276
|
+
"ncua-badge-group--neutral",
|
|
277
|
+
"ncua-badge-group--sm",
|
|
278
|
+
"ncua-badge-group--success",
|
|
279
|
+
"ncua-badge-group--warning",
|
|
280
|
+
"ncua-badge-group--xs",
|
|
281
|
+
"ncua-badge-group__label"
|
|
282
|
+
],
|
|
283
|
+
"usage": {
|
|
284
|
+
"import": "import { BadgeGroup } from '@ncds/ui-admin';",
|
|
285
|
+
"react": {
|
|
286
|
+
"default": "<BadgeGroup groupLabel=\"\" label=\"\" />",
|
|
287
|
+
"color:error": "<BadgeGroup color=\"error\" groupLabel=\"\" label=\"\" />",
|
|
288
|
+
"color:neutral": "<BadgeGroup color=\"neutral\" groupLabel=\"\" label=\"\" />",
|
|
289
|
+
"color:success": "<BadgeGroup color=\"success\" groupLabel=\"\" label=\"\" />",
|
|
290
|
+
"color:warning": "<BadgeGroup color=\"warning\" groupLabel=\"\" label=\"\" />",
|
|
291
|
+
"size:sm": "<BadgeGroup size=\"sm\" groupLabel=\"\" label=\"\" />",
|
|
292
|
+
"size:xs": "<BadgeGroup size=\"xs\" groupLabel=\"\" label=\"\" />"
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
}
|
package/data/badge.json
ADDED
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "badge",
|
|
3
|
+
"exportName": "Badge",
|
|
4
|
+
"importPath": "@ncds/ui-admin",
|
|
5
|
+
"jsRequired": false,
|
|
6
|
+
"category": "feedback",
|
|
7
|
+
"description": "Badge는 상태나 중요성 및 이벤트 강조를 나타내는 레이블이며 빠른 인식을 제공해야 합니다.",
|
|
8
|
+
"aliases": [
|
|
9
|
+
"Badge",
|
|
10
|
+
"뱃지",
|
|
11
|
+
"배지",
|
|
12
|
+
"라벨",
|
|
13
|
+
"상태표시",
|
|
14
|
+
"pill-outline",
|
|
15
|
+
"pill-dark-color",
|
|
16
|
+
"leadingIcon",
|
|
17
|
+
"trailingIcon",
|
|
18
|
+
"SideSlotType",
|
|
19
|
+
"dot",
|
|
20
|
+
"강조",
|
|
21
|
+
"읽기전용",
|
|
22
|
+
"NCDS"
|
|
23
|
+
],
|
|
24
|
+
"hasChildren": false,
|
|
25
|
+
"whenToUse": [
|
|
26
|
+
"읽기 전용 상태 표시 레이블",
|
|
27
|
+
"정보의 상태/중요도/이벤트를 시각적으로 빠르게 전달"
|
|
28
|
+
],
|
|
29
|
+
"forbiddenRules": [
|
|
30
|
+
"클릭 액션 부여 금지",
|
|
31
|
+
"과도한 컬러 남용 금지",
|
|
32
|
+
"의미 없는 Badge 사용 금지",
|
|
33
|
+
"텍스트 과다 금지(2~4자 권장)",
|
|
34
|
+
"이미지 삽입 금지",
|
|
35
|
+
"임의 아이콘 금지(SideSlotType 구조체만 사용)",
|
|
36
|
+
"컬러 의미 혼용 금지"
|
|
37
|
+
],
|
|
38
|
+
"seeAlso": [
|
|
39
|
+
"horizontal-tab",
|
|
40
|
+
"vertical-tab",
|
|
41
|
+
"badge-group",
|
|
42
|
+
"tag"
|
|
43
|
+
],
|
|
44
|
+
"props": {
|
|
45
|
+
"className": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"required": false
|
|
48
|
+
},
|
|
49
|
+
"color": {
|
|
50
|
+
"type": "enum",
|
|
51
|
+
"required": false,
|
|
52
|
+
"values": [
|
|
53
|
+
"blue",
|
|
54
|
+
"disabled",
|
|
55
|
+
"error",
|
|
56
|
+
"neutral",
|
|
57
|
+
"pink",
|
|
58
|
+
"success",
|
|
59
|
+
"warning"
|
|
60
|
+
],
|
|
61
|
+
"default": "neutral"
|
|
62
|
+
},
|
|
63
|
+
"label": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"required": true
|
|
66
|
+
},
|
|
67
|
+
"leadingIcon": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"required": false,
|
|
70
|
+
"rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/types/side-slot\").SideSlotType | undefined",
|
|
71
|
+
"properties": {
|
|
72
|
+
"type": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"required": true,
|
|
75
|
+
"rawType": "\"icon\""
|
|
76
|
+
},
|
|
77
|
+
"icon": {
|
|
78
|
+
"type": "function",
|
|
79
|
+
"required": false
|
|
80
|
+
},
|
|
81
|
+
"color": {
|
|
82
|
+
"type": "enum",
|
|
83
|
+
"required": false,
|
|
84
|
+
"values": [
|
|
85
|
+
"black",
|
|
86
|
+
"blue500",
|
|
87
|
+
"blue600",
|
|
88
|
+
"currentColor",
|
|
89
|
+
"gray100",
|
|
90
|
+
"gray200",
|
|
91
|
+
"gray300",
|
|
92
|
+
"gray400",
|
|
93
|
+
"gray500",
|
|
94
|
+
"gray600",
|
|
95
|
+
"gray700",
|
|
96
|
+
"green500",
|
|
97
|
+
"green600",
|
|
98
|
+
"orange500",
|
|
99
|
+
"orange600",
|
|
100
|
+
"pink100",
|
|
101
|
+
"pink600",
|
|
102
|
+
"red500",
|
|
103
|
+
"red600",
|
|
104
|
+
"secondary-gray-blue-100",
|
|
105
|
+
"secondary-gray-blue-200",
|
|
106
|
+
"secondary-gray-blue-300",
|
|
107
|
+
"secondary-gray-blue-400",
|
|
108
|
+
"secondary-gray-blue-450",
|
|
109
|
+
"secondary-gray-blue-50",
|
|
110
|
+
"secondary-gray-blue-500",
|
|
111
|
+
"secondary-gray-blue-600",
|
|
112
|
+
"secondary-gray-blue-700",
|
|
113
|
+
"violet300",
|
|
114
|
+
"violet600",
|
|
115
|
+
"white",
|
|
116
|
+
"yellow600"
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
"size": {
|
|
120
|
+
"type": "number",
|
|
121
|
+
"required": false
|
|
122
|
+
},
|
|
123
|
+
"children": {
|
|
124
|
+
"type": "ReactNode",
|
|
125
|
+
"required": false
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"size": {
|
|
130
|
+
"type": "enum",
|
|
131
|
+
"required": false,
|
|
132
|
+
"values": [
|
|
133
|
+
"md",
|
|
134
|
+
"sm",
|
|
135
|
+
"xs"
|
|
136
|
+
],
|
|
137
|
+
"default": "sm"
|
|
138
|
+
},
|
|
139
|
+
"trailingIcon": {
|
|
140
|
+
"type": "object",
|
|
141
|
+
"required": false,
|
|
142
|
+
"rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/types/side-slot\").SideSlotType | undefined",
|
|
143
|
+
"properties": {
|
|
144
|
+
"type": {
|
|
145
|
+
"type": "string",
|
|
146
|
+
"required": true,
|
|
147
|
+
"rawType": "\"icon\""
|
|
148
|
+
},
|
|
149
|
+
"icon": {
|
|
150
|
+
"type": "function",
|
|
151
|
+
"required": false
|
|
152
|
+
},
|
|
153
|
+
"color": {
|
|
154
|
+
"type": "enum",
|
|
155
|
+
"required": false,
|
|
156
|
+
"values": [
|
|
157
|
+
"black",
|
|
158
|
+
"blue500",
|
|
159
|
+
"blue600",
|
|
160
|
+
"currentColor",
|
|
161
|
+
"gray100",
|
|
162
|
+
"gray200",
|
|
163
|
+
"gray300",
|
|
164
|
+
"gray400",
|
|
165
|
+
"gray500",
|
|
166
|
+
"gray600",
|
|
167
|
+
"gray700",
|
|
168
|
+
"green500",
|
|
169
|
+
"green600",
|
|
170
|
+
"orange500",
|
|
171
|
+
"orange600",
|
|
172
|
+
"pink100",
|
|
173
|
+
"pink600",
|
|
174
|
+
"red500",
|
|
175
|
+
"red600",
|
|
176
|
+
"secondary-gray-blue-100",
|
|
177
|
+
"secondary-gray-blue-200",
|
|
178
|
+
"secondary-gray-blue-300",
|
|
179
|
+
"secondary-gray-blue-400",
|
|
180
|
+
"secondary-gray-blue-450",
|
|
181
|
+
"secondary-gray-blue-50",
|
|
182
|
+
"secondary-gray-blue-500",
|
|
183
|
+
"secondary-gray-blue-600",
|
|
184
|
+
"secondary-gray-blue-700",
|
|
185
|
+
"violet300",
|
|
186
|
+
"violet600",
|
|
187
|
+
"white",
|
|
188
|
+
"yellow600"
|
|
189
|
+
]
|
|
190
|
+
},
|
|
191
|
+
"size": {
|
|
192
|
+
"type": "number",
|
|
193
|
+
"required": false
|
|
194
|
+
},
|
|
195
|
+
"children": {
|
|
196
|
+
"type": "ReactNode",
|
|
197
|
+
"required": false
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"type": {
|
|
202
|
+
"type": "enum",
|
|
203
|
+
"required": false,
|
|
204
|
+
"values": [
|
|
205
|
+
"pill-dark-color",
|
|
206
|
+
"pill-outline"
|
|
207
|
+
],
|
|
208
|
+
"default": "pill-outline"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"html": {},
|
|
212
|
+
"bemClasses": [
|
|
213
|
+
"ncua-badge",
|
|
214
|
+
"ncua-badge--blue",
|
|
215
|
+
"ncua-badge--disabled",
|
|
216
|
+
"ncua-badge--error",
|
|
217
|
+
"ncua-badge--md",
|
|
218
|
+
"ncua-badge--neutral",
|
|
219
|
+
"ncua-badge--pill-dark-color",
|
|
220
|
+
"ncua-badge--pill-outline",
|
|
221
|
+
"ncua-badge--pink",
|
|
222
|
+
"ncua-badge--sm",
|
|
223
|
+
"ncua-badge--success",
|
|
224
|
+
"ncua-badge--warning",
|
|
225
|
+
"ncua-badge--xs",
|
|
226
|
+
"ncua-badge__label"
|
|
227
|
+
],
|
|
228
|
+
"usage": {
|
|
229
|
+
"import": "import { Badge } from '@ncds/ui-admin';",
|
|
230
|
+
"react": {
|
|
231
|
+
"default": "<Badge label=\"\" />",
|
|
232
|
+
"color:blue": "<Badge color=\"blue\" label=\"\" />",
|
|
233
|
+
"color:disabled": "<Badge color=\"disabled\" label=\"\" />",
|
|
234
|
+
"color:error": "<Badge color=\"error\" label=\"\" />",
|
|
235
|
+
"color:neutral": "<Badge color=\"neutral\" label=\"\" />",
|
|
236
|
+
"color:pink": "<Badge color=\"pink\" label=\"\" />",
|
|
237
|
+
"color:success": "<Badge color=\"success\" label=\"\" />",
|
|
238
|
+
"color:warning": "<Badge color=\"warning\" label=\"\" />",
|
|
239
|
+
"size:md": "<Badge size=\"md\" label=\"\" />",
|
|
240
|
+
"size:sm": "<Badge size=\"sm\" label=\"\" />",
|
|
241
|
+
"size:xs": "<Badge size=\"xs\" label=\"\" />",
|
|
242
|
+
"type:pill-dark-color": "<Badge type=\"pill-dark-color\" label=\"\" />",
|
|
243
|
+
"type:pill-outline": "<Badge type=\"pill-outline\" label=\"\" />"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bread-crumb",
|
|
3
|
+
"exportName": "BreadCrumb",
|
|
4
|
+
"importPath": "@ncds/ui-admin",
|
|
5
|
+
"jsRequired": false,
|
|
6
|
+
"category": "navigation",
|
|
7
|
+
"description": "BreadCrumb은 현재 사용자의 위치를 상위 구조 기준으로 알려주는 계층 네비게이션 경로(보조) UI 컴포넌트입니다.",
|
|
8
|
+
"aliases": [
|
|
9
|
+
"BreadCrumb",
|
|
10
|
+
"브레드크럼",
|
|
11
|
+
"경로탐색",
|
|
12
|
+
"계층구조",
|
|
13
|
+
"Depth",
|
|
14
|
+
"네비게이션",
|
|
15
|
+
"Home",
|
|
16
|
+
"축약",
|
|
17
|
+
"구분자",
|
|
18
|
+
"GNB",
|
|
19
|
+
"페이지위치",
|
|
20
|
+
"NCDS"
|
|
21
|
+
],
|
|
22
|
+
"hasChildren": false,
|
|
23
|
+
"whenToUse": [
|
|
24
|
+
"페이지 계층 구조를 한눈에 파악하고 상위 메뉴로 빠르게 이동할 수 있도록 보조하는 네비게이션",
|
|
25
|
+
"과도한 Depth 노출이나 불필요한 강조는 지양"
|
|
26
|
+
],
|
|
27
|
+
"forbiddenRules": [
|
|
28
|
+
"5 Depth 이상 그대로 노출 금지",
|
|
29
|
+
"마지막(Current) 항목 클릭 허용 금지",
|
|
30
|
+
"모든 Depth를 버튼처럼 동일 강조 금지",
|
|
31
|
+
"BreadCrumb을 필수 네비게이션으로 오해하게 만들지 않음"
|
|
32
|
+
],
|
|
33
|
+
"seeAlso": [
|
|
34
|
+
"icon"
|
|
35
|
+
],
|
|
36
|
+
"usageExamples": {
|
|
37
|
+
"default": {
|
|
38
|
+
"items": [
|
|
39
|
+
{
|
|
40
|
+
"label": "대시보드"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"label": "상품",
|
|
44
|
+
"href": "/products"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"label": "상품 상세"
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"props": {
|
|
53
|
+
"className": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"required": false
|
|
56
|
+
},
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"required": true,
|
|
60
|
+
"rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/components/bread-crumb/BreadCrumb\").BreadCrumbItemProps[]",
|
|
61
|
+
"properties": {
|
|
62
|
+
"href": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"required": false
|
|
65
|
+
},
|
|
66
|
+
"label": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"required": true
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"html": {},
|
|
74
|
+
"bemClasses": [
|
|
75
|
+
"ncua-breadcrumb",
|
|
76
|
+
"ncua-breadcrumb__item",
|
|
77
|
+
"ncua-breadcrumb__list",
|
|
78
|
+
"ncua-breadcrumb__list-item",
|
|
79
|
+
"ncua-breadcrumb__list-item--active"
|
|
80
|
+
],
|
|
81
|
+
"usage": {
|
|
82
|
+
"import": "import { BreadCrumb } from '@ncds/ui-admin';",
|
|
83
|
+
"react": {
|
|
84
|
+
"default": "<BreadCrumb items=\"\" />"
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|