@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.
Files changed (94) hide show
  1. package/README.md +113 -0
  2. package/bin/components.bundle.js +1 -0
  3. package/bin/definitions/compliance-rules.json +64 -0
  4. package/bin/definitions/instructions.md +164 -0
  5. package/bin/definitions/js-api.json +165 -0
  6. package/bin/definitions/rules.json +59 -0
  7. package/bin/definitions/token-descriptions.json +27 -0
  8. package/bin/definitions/tool-definitions.json +58 -0
  9. package/bin/server.d.ts +1 -0
  10. package/bin/server.js +217 -0
  11. package/bin/server.mjs +8 -0
  12. package/bin/tools/getComponentProps.d.ts +4 -0
  13. package/bin/tools/getComponentProps.js +20 -0
  14. package/bin/tools/getDesignTokens.d.ts +13 -0
  15. package/bin/tools/getDesignTokens.js +20 -0
  16. package/bin/tools/listComponents.d.ts +16 -0
  17. package/bin/tools/listComponents.js +24 -0
  18. package/bin/tools/listIcons.d.ts +22 -0
  19. package/bin/tools/listIcons.js +23 -0
  20. package/bin/tools/ping.d.ts +17 -0
  21. package/bin/tools/ping.js +20 -0
  22. package/bin/tools/renderToHtml.d.ts +23 -0
  23. package/bin/tools/renderToHtml.js +267 -0
  24. package/bin/tools/searchComponent.d.ts +4 -0
  25. package/bin/tools/searchComponent.js +33 -0
  26. package/bin/tools/searchIcon.d.ts +7 -0
  27. package/bin/tools/searchIcon.js +19 -0
  28. package/bin/tools/validateHtml.d.ts +18 -0
  29. package/bin/tools/validateHtml.js +85 -0
  30. package/bin/types.d.ts +123 -0
  31. package/bin/types.js +5 -0
  32. package/bin/utils/bemValidator.d.ts +36 -0
  33. package/bin/utils/bemValidator.js +198 -0
  34. package/bin/utils/compliance.d.ts +52 -0
  35. package/bin/utils/compliance.js +199 -0
  36. package/bin/utils/dataLoader.d.ts +35 -0
  37. package/bin/utils/dataLoader.js +192 -0
  38. package/bin/utils/domEnvironment.d.ts +9 -0
  39. package/bin/utils/domEnvironment.js +75 -0
  40. package/bin/utils/fuzzyMatch.d.ts +21 -0
  41. package/bin/utils/fuzzyMatch.js +110 -0
  42. package/bin/utils/logger.d.ts +18 -0
  43. package/bin/utils/logger.js +27 -0
  44. package/bin/utils/response.d.ts +28 -0
  45. package/bin/utils/response.js +39 -0
  46. package/bin/utils/tokenValidator.d.ts +24 -0
  47. package/bin/utils/tokenValidator.js +162 -0
  48. package/bin/version.d.ts +4 -0
  49. package/bin/version.js +7 -0
  50. package/data/_icons.json +12401 -0
  51. package/data/_meta.json +12 -0
  52. package/data/_tokens.json +661 -0
  53. package/data/badge-group.json +295 -0
  54. package/data/badge.json +246 -0
  55. package/data/bread-crumb.json +87 -0
  56. package/data/button-group.json +94 -0
  57. package/data/button.json +259 -0
  58. package/data/carousel-arrow.json +87 -0
  59. package/data/carousel-number-group.json +87 -0
  60. package/data/checkbox.json +99 -0
  61. package/data/combo-box.json +173 -0
  62. package/data/date-picker.json +123 -0
  63. package/data/divider.json +91 -0
  64. package/data/dot.json +103 -0
  65. package/data/dropdown.json +258 -0
  66. package/data/empty-state.json +227 -0
  67. package/data/featured-icon.json +139 -0
  68. package/data/file-input.json +315 -0
  69. package/data/horizontal-tab.json +329 -0
  70. package/data/image-file-input.json +339 -0
  71. package/data/input-base.json +299 -0
  72. package/data/modal.json +143 -0
  73. package/data/notification.json +194 -0
  74. package/data/number-input.json +295 -0
  75. package/data/pagination.json +101 -0
  76. package/data/password-input.json +263 -0
  77. package/data/progress-bar.json +109 -0
  78. package/data/progress-circle.json +96 -0
  79. package/data/radio.json +86 -0
  80. package/data/range-date-picker-with-buttons.json +273 -0
  81. package/data/range-date-picker.json +259 -0
  82. package/data/select-box.json +193 -0
  83. package/data/select.json +132 -0
  84. package/data/slider.json +100 -0
  85. package/data/spinner.json +93 -0
  86. package/data/switch.json +156 -0
  87. package/data/tag.json +159 -0
  88. package/data/textarea.json +96 -0
  89. package/data/toggle.json +102 -0
  90. package/data/tooltip.json +185 -0
  91. package/data/vertical-tab.json +314 -0
  92. package/package.json +61 -0
  93. package/templates/.mcp.json.example +8 -0
  94. package/templates/README.md +30 -0
@@ -0,0 +1,315 @@
1
+ {
2
+ "name": "file-input",
3
+ "exportName": "FileInput",
4
+ "importPath": "@ncds/ui-admin",
5
+ "jsRequired": true,
6
+ "category": "input",
7
+ "description": "File Upload가 필요한 영역에서 공통 UI/UX를 적용하는 입력 컴포넌트입니다",
8
+ "aliases": [
9
+ "파일인풋",
10
+ "FileInput",
11
+ "파일업로드",
12
+ "파일첨부",
13
+ "파일찾기",
14
+ "업로드",
15
+ "accept",
16
+ "maxFileCount",
17
+ "maxFileSize",
18
+ "onFail",
19
+ "multiple",
20
+ "hintText",
21
+ "hintItems",
22
+ "destructive",
23
+ "NCDS"
24
+ ],
25
+ "hasChildren": false,
26
+ "whenToUse": [
27
+ "제한 정책 안내문을 항상 노출하며 파일명 텍스트 중심 UI를 기본으로 하고 삭제 기능을 필수 제공해야 하는 경우",
28
+ "단일 파일 또는 다중 파일 업로드가 필요한 경우",
29
+ "이미지가 아닌 일반 파일 업로드 영역"
30
+ ],
31
+ "forbiddenRules": [
32
+ "제한 정책 안내 없이 업로드 허용 금지",
33
+ "최대 등록 수 초과 시 무반응 처리 금지",
34
+ "파일명 34자 초과 그대로 노출 금지",
35
+ "단일 파일 영역에서 다중 파일 누적 금지",
36
+ "삭제 기능 없는 업로드 UI 제공 금지"
37
+ ],
38
+ "seeAlso": [
39
+ "image-file-input"
40
+ ],
41
+ "props": {
42
+ "accept": {
43
+ "type": "string",
44
+ "required": false
45
+ },
46
+ "buttonLabel": {
47
+ "type": "string",
48
+ "required": false,
49
+ "default": "파일 찾기"
50
+ },
51
+ "destructive": {
52
+ "type": "boolean",
53
+ "required": false
54
+ },
55
+ "disabled": {
56
+ "type": "boolean",
57
+ "required": false
58
+ },
59
+ "hintItems": {
60
+ "type": "object",
61
+ "required": false,
62
+ "rawType": "string[] | undefined"
63
+ },
64
+ "hintText": {
65
+ "type": "string",
66
+ "required": false
67
+ },
68
+ "isRequired": {
69
+ "type": "boolean",
70
+ "required": false
71
+ },
72
+ "label": {
73
+ "type": "string",
74
+ "required": false
75
+ },
76
+ "leadingElement": {
77
+ "type": "object",
78
+ "required": false,
79
+ "properties": {
80
+ "type": {
81
+ "type": "string",
82
+ "required": true,
83
+ "rawType": "\"text\""
84
+ },
85
+ "text": {
86
+ "type": "string",
87
+ "required": false
88
+ },
89
+ "icon": {
90
+ "type": "function",
91
+ "required": false
92
+ },
93
+ "size": {
94
+ "type": "number",
95
+ "required": false
96
+ },
97
+ "color": {
98
+ "type": "enum",
99
+ "required": false,
100
+ "values": [
101
+ "black",
102
+ "blue500",
103
+ "blue600",
104
+ "currentColor",
105
+ "gray100",
106
+ "gray200",
107
+ "gray300",
108
+ "gray400",
109
+ "gray500",
110
+ "gray600",
111
+ "gray700",
112
+ "green500",
113
+ "green600",
114
+ "orange500",
115
+ "orange600",
116
+ "pink100",
117
+ "pink600",
118
+ "red500",
119
+ "red600",
120
+ "secondary-gray-blue-100",
121
+ "secondary-gray-blue-200",
122
+ "secondary-gray-blue-300",
123
+ "secondary-gray-blue-400",
124
+ "secondary-gray-blue-450",
125
+ "secondary-gray-blue-50",
126
+ "secondary-gray-blue-500",
127
+ "secondary-gray-blue-600",
128
+ "secondary-gray-blue-700",
129
+ "violet300",
130
+ "violet600",
131
+ "white",
132
+ "yellow600"
133
+ ]
134
+ },
135
+ "className": {
136
+ "type": "string",
137
+ "required": false
138
+ },
139
+ "children": {
140
+ "type": "ReactNode",
141
+ "required": false
142
+ },
143
+ "placement": {
144
+ "type": "enum",
145
+ "required": false,
146
+ "values": [
147
+ "inside",
148
+ "outside"
149
+ ]
150
+ }
151
+ }
152
+ },
153
+ "maxFileCount": {
154
+ "type": "number",
155
+ "required": false
156
+ },
157
+ "maxFileSize": {
158
+ "type": "number",
159
+ "required": false
160
+ },
161
+ "maxLength": {
162
+ "type": "number",
163
+ "required": false
164
+ },
165
+ "onChange": {
166
+ "type": "function",
167
+ "required": false
168
+ },
169
+ "onFail": {
170
+ "type": "function",
171
+ "required": false
172
+ },
173
+ "onFileSelect": {
174
+ "type": "function",
175
+ "required": false
176
+ },
177
+ "required": {
178
+ "type": "boolean",
179
+ "required": false
180
+ },
181
+ "showHelpIcon": {
182
+ "type": "boolean",
183
+ "required": false
184
+ },
185
+ "showTextCount": {
186
+ "type": "boolean",
187
+ "required": false
188
+ },
189
+ "size": {
190
+ "type": "enum",
191
+ "required": false,
192
+ "values": [
193
+ "sm",
194
+ "xs"
195
+ ],
196
+ "default": "xs"
197
+ },
198
+ "trailingElement": {
199
+ "type": "object",
200
+ "required": false,
201
+ "properties": {
202
+ "type": {
203
+ "type": "string",
204
+ "required": true,
205
+ "rawType": "\"icon\""
206
+ },
207
+ "icon": {
208
+ "type": "function",
209
+ "required": false
210
+ },
211
+ "size": {
212
+ "type": "number",
213
+ "required": false
214
+ },
215
+ "color": {
216
+ "type": "enum",
217
+ "required": false,
218
+ "values": [
219
+ "black",
220
+ "blue500",
221
+ "blue600",
222
+ "currentColor",
223
+ "gray100",
224
+ "gray200",
225
+ "gray300",
226
+ "gray400",
227
+ "gray500",
228
+ "gray600",
229
+ "gray700",
230
+ "green500",
231
+ "green600",
232
+ "orange500",
233
+ "orange600",
234
+ "pink100",
235
+ "pink600",
236
+ "red500",
237
+ "red600",
238
+ "secondary-gray-blue-100",
239
+ "secondary-gray-blue-200",
240
+ "secondary-gray-blue-300",
241
+ "secondary-gray-blue-400",
242
+ "secondary-gray-blue-450",
243
+ "secondary-gray-blue-50",
244
+ "secondary-gray-blue-500",
245
+ "secondary-gray-blue-600",
246
+ "secondary-gray-blue-700",
247
+ "violet300",
248
+ "violet600",
249
+ "white",
250
+ "yellow600"
251
+ ]
252
+ },
253
+ "className": {
254
+ "type": "string",
255
+ "required": false
256
+ },
257
+ "children": {
258
+ "type": "ReactNode",
259
+ "required": false
260
+ },
261
+ "placement": {
262
+ "type": "enum",
263
+ "required": false,
264
+ "values": [
265
+ "inside",
266
+ "outside"
267
+ ]
268
+ },
269
+ "label": {
270
+ "type": "string",
271
+ "required": false
272
+ },
273
+ "isSubmit": {
274
+ "type": "boolean",
275
+ "required": false
276
+ },
277
+ "onClick": {
278
+ "type": "function",
279
+ "required": false
280
+ }
281
+ }
282
+ },
283
+ "validation": {
284
+ "type": "boolean",
285
+ "required": false
286
+ },
287
+ "value": {
288
+ "type": "object",
289
+ "required": false,
290
+ "rawType": "File[] | undefined"
291
+ }
292
+ },
293
+ "html": {},
294
+ "bemClasses": [
295
+ "ncua-file-input",
296
+ "ncua-file-input--sm",
297
+ "ncua-file-input--xs",
298
+ "ncua-file-input__file-image",
299
+ "ncua-file-input__file-tag-container",
300
+ "ncua-file-input__file-tags",
301
+ "ncua-file-input__hint-item",
302
+ "ncua-file-input__hint-list",
303
+ "ncua-file-input__input-container",
304
+ "ncua-file-input__label",
305
+ "ncua-input__help-icon"
306
+ ],
307
+ "usage": {
308
+ "import": "import { FileInput } from '@ncds/ui-admin';",
309
+ "react": {
310
+ "default": "<FileInput />",
311
+ "size:sm": "<FileInput size=\"sm\" />",
312
+ "size:xs": "<FileInput size=\"xs\" />"
313
+ }
314
+ }
315
+ }
@@ -0,0 +1,329 @@
1
+ {
2
+ "name": "horizontal-tab",
3
+ "exportName": "HorizontalTab",
4
+ "importPath": "@ncds/ui-admin",
5
+ "jsRequired": true,
6
+ "category": "navigation",
7
+ "description": "HorizontalTab은 동일한 계층 구조의 관련 콘텐츠를 그룹화하여 탭 메뉴 사이를 전환하는 내비게이션 UI 컴포넌트입니다.",
8
+ "aliases": [
9
+ "HorizontalTab",
10
+ "가로탭",
11
+ "탭",
12
+ "Tab",
13
+ "수평탭",
14
+ "콘텐츠전환",
15
+ "Underline",
16
+ "Button",
17
+ "Badge",
18
+ "Closable",
19
+ "Slider",
20
+ "SPA",
21
+ "네비게이션",
22
+ "NCDS"
23
+ ],
24
+ "hasChildren": false,
25
+ "whenToUse": [
26
+ "동일 페이지 내에서 콘텐츠를 전환하는 수평 내비게이션",
27
+ "페이지 리로드 없이 SPA 기준 라우팅 변경으로 동작",
28
+ "동등한 중요도의 섹션을 구분"
29
+ ],
30
+ "forbiddenRules": [
31
+ "아이콘 장식 사용 금지",
32
+ "이미지 사용 금지",
33
+ "서로 다른 계층 혼합 금지",
34
+ "과도한 개수 구성 지양(7개 이상 지양, 권장 2~6개)",
35
+ "페이지 리로드 금지",
36
+ "1개 탭 단독 노출 금지",
37
+ "탭 높이 변형 금지",
38
+ "배지를 클릭 액션으로 사용 금지",
39
+ "New 배지 영구 고정 금지",
40
+ "일반 페이지 구조 탭에 Close Button 사용 금지"
41
+ ],
42
+ "seeAlso": [
43
+ "badge",
44
+ "vertical-tab"
45
+ ],
46
+ "props": {
47
+ "activeTab": {
48
+ "type": "string",
49
+ "required": false
50
+ },
51
+ "className": {
52
+ "type": "string",
53
+ "required": false
54
+ },
55
+ "fullWidth": {
56
+ "type": "boolean",
57
+ "required": false,
58
+ "default": false
59
+ },
60
+ "menus": {
61
+ "type": "object",
62
+ "required": false,
63
+ "rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/components/tab/TabButton\").TabButtonProps[] | undefined",
64
+ "properties": {
65
+ "id": {
66
+ "type": "string",
67
+ "required": false
68
+ },
69
+ "label": {
70
+ "type": "string",
71
+ "required": false
72
+ },
73
+ "size": {
74
+ "type": "enum",
75
+ "required": false,
76
+ "values": [
77
+ "lg",
78
+ "md",
79
+ "sm"
80
+ ]
81
+ },
82
+ "tabButtonType": {
83
+ "type": "enum",
84
+ "required": false,
85
+ "values": [
86
+ "button-primary",
87
+ "button-white",
88
+ "line-vertical",
89
+ "underline",
90
+ "underline-fill"
91
+ ]
92
+ },
93
+ "isActive": {
94
+ "type": "boolean",
95
+ "required": false
96
+ },
97
+ "badgeInfo": {
98
+ "type": "object",
99
+ "required": false,
100
+ "rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/components/badge/Badge\").BadgeProps | undefined",
101
+ "properties": {
102
+ "label": {
103
+ "type": "string",
104
+ "required": true
105
+ },
106
+ "type": {
107
+ "type": "enum",
108
+ "required": false,
109
+ "values": [
110
+ "pill-dark-color",
111
+ "pill-outline"
112
+ ]
113
+ },
114
+ "color": {
115
+ "type": "enum",
116
+ "required": false,
117
+ "values": [
118
+ "blue",
119
+ "disabled",
120
+ "error",
121
+ "neutral",
122
+ "pink",
123
+ "success",
124
+ "warning"
125
+ ]
126
+ },
127
+ "className": {
128
+ "type": "string",
129
+ "required": false
130
+ },
131
+ "leadingIcon": {
132
+ "type": "object",
133
+ "required": false,
134
+ "rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/types/side-slot\").SideSlotType | undefined",
135
+ "properties": {
136
+ "type": {
137
+ "type": "string",
138
+ "required": true,
139
+ "rawType": "\"icon\""
140
+ },
141
+ "icon": {
142
+ "type": "function",
143
+ "required": false
144
+ },
145
+ "color": {
146
+ "type": "enum",
147
+ "required": false,
148
+ "values": [
149
+ "black",
150
+ "blue500",
151
+ "blue600",
152
+ "currentColor",
153
+ "gray100",
154
+ "gray200",
155
+ "gray300",
156
+ "gray400",
157
+ "gray500",
158
+ "gray600",
159
+ "gray700",
160
+ "green500",
161
+ "green600",
162
+ "orange500",
163
+ "orange600",
164
+ "pink100",
165
+ "pink600",
166
+ "red500",
167
+ "red600",
168
+ "secondary-gray-blue-100",
169
+ "secondary-gray-blue-200",
170
+ "secondary-gray-blue-300",
171
+ "secondary-gray-blue-400",
172
+ "secondary-gray-blue-450",
173
+ "secondary-gray-blue-50",
174
+ "secondary-gray-blue-500",
175
+ "secondary-gray-blue-600",
176
+ "secondary-gray-blue-700",
177
+ "violet300",
178
+ "violet600",
179
+ "white",
180
+ "yellow600"
181
+ ]
182
+ },
183
+ "size": {
184
+ "type": "number",
185
+ "required": false
186
+ },
187
+ "children": {
188
+ "type": "ReactNode",
189
+ "required": false
190
+ }
191
+ }
192
+ },
193
+ "trailingIcon": {
194
+ "type": "object",
195
+ "required": false,
196
+ "rawType": "import(\"/Users/nhncommerce/Desktop/company/ai-driven-ncds/packages/ui-admin/src/types/side-slot\").SideSlotType | undefined",
197
+ "properties": {
198
+ "type": {
199
+ "type": "string",
200
+ "required": true,
201
+ "rawType": "\"icon\""
202
+ },
203
+ "icon": {
204
+ "type": "function",
205
+ "required": false
206
+ },
207
+ "color": {
208
+ "type": "enum",
209
+ "required": false,
210
+ "values": [
211
+ "black",
212
+ "blue500",
213
+ "blue600",
214
+ "currentColor",
215
+ "gray100",
216
+ "gray200",
217
+ "gray300",
218
+ "gray400",
219
+ "gray500",
220
+ "gray600",
221
+ "gray700",
222
+ "green500",
223
+ "green600",
224
+ "orange500",
225
+ "orange600",
226
+ "pink100",
227
+ "pink600",
228
+ "red500",
229
+ "red600",
230
+ "secondary-gray-blue-100",
231
+ "secondary-gray-blue-200",
232
+ "secondary-gray-blue-300",
233
+ "secondary-gray-blue-400",
234
+ "secondary-gray-blue-450",
235
+ "secondary-gray-blue-50",
236
+ "secondary-gray-blue-500",
237
+ "secondary-gray-blue-600",
238
+ "secondary-gray-blue-700",
239
+ "violet300",
240
+ "violet600",
241
+ "white",
242
+ "yellow600"
243
+ ]
244
+ },
245
+ "size": {
246
+ "type": "number",
247
+ "required": false
248
+ },
249
+ "children": {
250
+ "type": "ReactNode",
251
+ "required": false
252
+ }
253
+ }
254
+ },
255
+ "size": {
256
+ "type": "enum",
257
+ "required": false,
258
+ "values": [
259
+ "md",
260
+ "sm",
261
+ "xs"
262
+ ]
263
+ }
264
+ }
265
+ },
266
+ "className": {
267
+ "type": "string",
268
+ "required": false
269
+ },
270
+ "children": {
271
+ "type": "ReactNode",
272
+ "required": false
273
+ },
274
+ "onClick": {
275
+ "type": "function",
276
+ "required": false
277
+ }
278
+ },
279
+ "default": "[]"
280
+ },
281
+ "size": {
282
+ "type": "enum",
283
+ "required": false,
284
+ "values": [
285
+ "lg",
286
+ "md",
287
+ "sm"
288
+ ],
289
+ "default": "sm"
290
+ },
291
+ "type": {
292
+ "type": "enum",
293
+ "required": false,
294
+ "values": [
295
+ "button-primary",
296
+ "button-white",
297
+ "underline",
298
+ "underline-fill"
299
+ ],
300
+ "default": "button-primary"
301
+ }
302
+ },
303
+ "html": {},
304
+ "bemClasses": [
305
+ "ncua-horizontal-tab",
306
+ "ncua-horizontal-tab--button-primary",
307
+ "ncua-horizontal-tab--button-white",
308
+ "ncua-horizontal-tab--fullWidth",
309
+ "ncua-horizontal-tab--lg",
310
+ "ncua-horizontal-tab--md",
311
+ "ncua-horizontal-tab--sm",
312
+ "ncua-horizontal-tab--underline",
313
+ "ncua-horizontal-tab--underline-fill",
314
+ "ncua-horizontal-tab__item"
315
+ ],
316
+ "usage": {
317
+ "import": "import { HorizontalTab } from '@ncds/ui-admin';",
318
+ "react": {
319
+ "default": "<HorizontalTab />",
320
+ "size:lg": "<HorizontalTab size=\"lg\" />",
321
+ "size:md": "<HorizontalTab size=\"md\" />",
322
+ "size:sm": "<HorizontalTab size=\"sm\" />",
323
+ "type:button-primary": "<HorizontalTab type=\"button-primary\" />",
324
+ "type:button-white": "<HorizontalTab type=\"button-white\" />",
325
+ "type:underline": "<HorizontalTab type=\"underline\" />",
326
+ "type:underline-fill": "<HorizontalTab type=\"underline-fill\" />"
327
+ }
328
+ }
329
+ }