@ncds/ui-admin-mcp 1.6.4-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.
Files changed (72) hide show
  1. package/bin/server.d.ts +1 -0
  2. package/bin/server.js +67 -0
  3. package/bin/server.mjs +8 -0
  4. package/bin/tools/getComponentHtml.d.ts +3 -0
  5. package/bin/tools/getComponentHtml.js +30 -0
  6. package/bin/tools/getComponentProps.d.ts +3 -0
  7. package/bin/tools/getComponentProps.js +16 -0
  8. package/bin/tools/listComponents.d.ts +3 -0
  9. package/bin/tools/listComponents.js +15 -0
  10. package/bin/tools/ping.d.ts +11 -0
  11. package/bin/tools/ping.js +30 -0
  12. package/bin/tools/searchComponent.d.ts +3 -0
  13. package/bin/tools/searchComponent.js +20 -0
  14. package/bin/tools/validateHtml.d.ts +10 -0
  15. package/bin/tools/validateHtml.js +142 -0
  16. package/bin/types.d.ts +28 -0
  17. package/bin/types.js +5 -0
  18. package/bin/utils/dataLoader.d.ts +11 -0
  19. package/bin/utils/dataLoader.js +68 -0
  20. package/bin/utils/logger.d.ts +18 -0
  21. package/bin/utils/logger.js +27 -0
  22. package/bin/utils/response.d.ts +23 -0
  23. package/bin/utils/response.js +31 -0
  24. package/bin/version.d.ts +1 -0
  25. package/bin/version.js +4 -0
  26. package/data/_meta.json +7 -0
  27. package/data/badge-group.json +81 -0
  28. package/data/badge.json +101 -0
  29. package/data/bread-crumb.json +22 -0
  30. package/data/breadcrumb.json +31 -0
  31. package/data/button-group.json +70 -0
  32. package/data/button.json +119 -0
  33. package/data/carousel-arrow.json +65 -0
  34. package/data/carousel-number-group.json +62 -0
  35. package/data/carousel.json +22 -0
  36. package/data/checkbox.json +31 -0
  37. package/data/combobox.json +117 -0
  38. package/data/date-picker.json +80 -0
  39. package/data/divider.json +66 -0
  40. package/data/dot.json +67 -0
  41. package/data/dropdown.json +84 -0
  42. package/data/empty-state.json +34 -0
  43. package/data/featured-icon.json +98 -0
  44. package/data/file-input.json +76 -0
  45. package/data/horizontal-tab.json +80 -0
  46. package/data/image-file-input.json +97 -0
  47. package/data/input.json +107 -0
  48. package/data/modal.json +91 -0
  49. package/data/notification.json +126 -0
  50. package/data/number-input.json +134 -0
  51. package/data/pagination.json +68 -0
  52. package/data/password-input.json +47 -0
  53. package/data/progress-bar.json +56 -0
  54. package/data/progress-circle.json +63 -0
  55. package/data/radio.json +31 -0
  56. package/data/range-date-picker-with-buttons.json +64 -0
  57. package/data/range-date-picker.json +58 -0
  58. package/data/select-dropdown.json +32 -0
  59. package/data/select.json +77 -0
  60. package/data/selectbox.json +139 -0
  61. package/data/slider.json +62 -0
  62. package/data/spinner.json +60 -0
  63. package/data/switch.json +71 -0
  64. package/data/tab.json +140 -0
  65. package/data/tag.json +69 -0
  66. package/data/textarea.json +91 -0
  67. package/data/toggle.json +62 -0
  68. package/data/tooltip.json +148 -0
  69. package/data/vertical-tab.json +71 -0
  70. package/package.json +35 -0
  71. package/templates/.mcp.json.example +8 -0
  72. package/templates/README.md +31 -0
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "horizontal-tab",
3
+ "description": "NCDS Horizontal Tab 컴포넌트",
4
+ "aliases": [],
5
+ "props": {
6
+ "activeTab": {
7
+ "type": "string",
8
+ "required": false
9
+ },
10
+ "fullWidth": {
11
+ "type": "string",
12
+ "required": false,
13
+ "default": false
14
+ },
15
+ "menus": {
16
+ "type": "string",
17
+ "required": false,
18
+ "default": "[]"
19
+ },
20
+ "size": {
21
+ "type": "enum",
22
+ "required": false,
23
+ "values": [
24
+ "lg",
25
+ "md",
26
+ "sm"
27
+ ],
28
+ "default": "sm"
29
+ },
30
+ "type": {
31
+ "type": "enum",
32
+ "required": false,
33
+ "values": [
34
+ "button-primary",
35
+ "button-white",
36
+ "underline",
37
+ "underline-fill"
38
+ ],
39
+ "default": "button-primary"
40
+ }
41
+ },
42
+ "html": {
43
+ "default": "<div class=\"ncua-horizontal-tab\"></div>",
44
+ "size:lg": "<div class=\"ncua-horizontal-tab ncua-horizontal-tab--lg\"></div>",
45
+ "size:md": "<div class=\"ncua-horizontal-tab ncua-horizontal-tab--md\"></div>",
46
+ "size:sm": "<div class=\"ncua-horizontal-tab ncua-horizontal-tab--sm\"></div>",
47
+ "type:button-primary": "<div class=\"ncua-horizontal-tab ncua-horizontal-tab--button-primary\"></div>",
48
+ "type:button-white": "<div class=\"ncua-horizontal-tab ncua-horizontal-tab--button-white\"></div>",
49
+ "type:underline": "<div class=\"ncua-horizontal-tab ncua-horizontal-tab--underline\"></div>",
50
+ "type:underline-fill": "<div class=\"ncua-horizontal-tab ncua-horizontal-tab--underline-fill\"></div>"
51
+ },
52
+ "bemClasses": [
53
+ "ncua-horizontal-tab",
54
+ "ncua-horizontal-tab--button-primary",
55
+ "ncua-horizontal-tab--button-white",
56
+ "ncua-horizontal-tab--fullWidth",
57
+ "ncua-horizontal-tab--lg",
58
+ "ncua-horizontal-tab--md",
59
+ "ncua-horizontal-tab--sm",
60
+ "ncua-horizontal-tab--underline",
61
+ "ncua-horizontal-tab--underline-fill",
62
+ "ncua-horizontal-tab__item",
63
+ "ncua-tab-button",
64
+ "ncua-tab-close",
65
+ "ncua-vertical-tab"
66
+ ],
67
+ "usage": {
68
+ "import": "import { HorizontalTab } from '@ncds/ui-admin';",
69
+ "react": {
70
+ "default": "<HorizontalTab />",
71
+ "size:lg": "<HorizontalTab size=\"lg\" />",
72
+ "size:md": "<HorizontalTab size=\"md\" />",
73
+ "size:sm": "<HorizontalTab size=\"sm\" />",
74
+ "type:button-primary": "<HorizontalTab type=\"button-primary\" />",
75
+ "type:button-white": "<HorizontalTab type=\"button-white\" />",
76
+ "type:underline": "<HorizontalTab type=\"underline\" />",
77
+ "type:underline-fill": "<HorizontalTab type=\"underline-fill\" />"
78
+ }
79
+ }
80
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "name": "image-file-input",
3
+ "description": "NCDS Image File Input 컴포넌트",
4
+ "aliases": [],
5
+ "props": {
6
+ "accept": {
7
+ "type": "string",
8
+ "required": false
9
+ },
10
+ "buttonLabel": {
11
+ "type": "string",
12
+ "required": false,
13
+ "default": "파일 찾기"
14
+ },
15
+ "hintItems": {
16
+ "type": "string",
17
+ "required": false
18
+ },
19
+ "hintText": {
20
+ "type": "string",
21
+ "required": false
22
+ },
23
+ "imagePreviewTooltipLabel": {
24
+ "type": "string",
25
+ "required": false,
26
+ "default": "이미지 업로드"
27
+ },
28
+ "isRequired": {
29
+ "type": "string",
30
+ "required": false
31
+ },
32
+ "maxFileCount": {
33
+ "type": "string",
34
+ "required": false
35
+ },
36
+ "maxFileSize": {
37
+ "type": "string",
38
+ "required": false
39
+ },
40
+ "onChange": {
41
+ "type": "string",
42
+ "required": false
43
+ },
44
+ "onFail": {
45
+ "type": "string",
46
+ "required": false
47
+ },
48
+ "onFileSelect": {
49
+ "type": "string",
50
+ "required": false
51
+ },
52
+ "showFileInput": {
53
+ "type": "string",
54
+ "required": false,
55
+ "default": true
56
+ },
57
+ "showFileTagList": {
58
+ "type": "string",
59
+ "required": false,
60
+ "default": true
61
+ },
62
+ "showHelpIcon": {
63
+ "type": "string",
64
+ "required": false
65
+ },
66
+ "showHintText": {
67
+ "type": "string",
68
+ "required": false,
69
+ "default": true
70
+ },
71
+ "value": {
72
+ "type": "string",
73
+ "required": false
74
+ }
75
+ },
76
+ "html": {
77
+ "default": "<div class=\"ncua-file-input\"></div>"
78
+ },
79
+ "bemClasses": [
80
+ "ncua-file-input",
81
+ "ncua-file-input__hint-item",
82
+ "ncua-file-input__hint-list",
83
+ "ncua-file-input__input-container",
84
+ "ncua-file-input__label",
85
+ "ncua-image-file-input",
86
+ "ncua-image-file-input__empty-slot-wrapper",
87
+ "ncua-image-file-input__preview-container",
88
+ "ncua-image-file-input__previews",
89
+ "ncua-input__help-icon"
90
+ ],
91
+ "usage": {
92
+ "import": "import { ImageFileInput } from '@ncds/ui-admin';",
93
+ "react": {
94
+ "default": "<ImageFileInput />"
95
+ }
96
+ }
97
+ }
@@ -0,0 +1,107 @@
1
+ {
2
+ "name": "input",
3
+ "description": "NCDS Input 컴포넌트",
4
+ "aliases": [],
5
+ "props": {
6
+ "destructive": {
7
+ "type": "string",
8
+ "required": false
9
+ },
10
+ "disabled": {
11
+ "type": "string",
12
+ "required": false
13
+ },
14
+ "hintText": {
15
+ "type": "string",
16
+ "required": false
17
+ },
18
+ "label": {
19
+ "type": "string",
20
+ "required": false
21
+ },
22
+ "leadingElement": {
23
+ "type": "string",
24
+ "required": false
25
+ },
26
+ "maxLength": {
27
+ "type": "string",
28
+ "required": false
29
+ },
30
+ "required": {
31
+ "type": "string",
32
+ "required": false
33
+ },
34
+ "showHelpIcon": {
35
+ "type": "string",
36
+ "required": false
37
+ },
38
+ "showTextCount": {
39
+ "type": "string",
40
+ "required": false
41
+ },
42
+ "size": {
43
+ "type": "enum",
44
+ "required": false,
45
+ "values": [
46
+ "sm",
47
+ "xs"
48
+ ],
49
+ "default": "xs"
50
+ },
51
+ "trailingElement": {
52
+ "type": "string",
53
+ "required": false
54
+ },
55
+ "validation": {
56
+ "type": "string",
57
+ "required": false
58
+ }
59
+ },
60
+ "html": {
61
+ "default": "<div class=\"ncua-input ncua-input--xs\"><div class=\"ncua-input__content-wrap\"><div class=\"ncua-input__content\"><div class=\"ncua-input__field ncua-input__field--xs\"><input type=\"text\" placeholder=\"텍스트를 입력하세요\"/></div></div></div></div>",
62
+ "size:sm": "<div class=\"ncua-input ncua-input--sm\"><div class=\"ncua-input__content-wrap\"><div class=\"ncua-input__content\"><div class=\"ncua-input__field ncua-input__field--sm\"><input type=\"text\" placeholder=\"텍스트를 입력하세요\"/></div></div></div></div>",
63
+ "size:md": "<div class=\"ncua-input ncua-input--md\"><div class=\"ncua-input__content-wrap\"><div class=\"ncua-input__content\"><div class=\"ncua-input__field ncua-input__field--md\"><input type=\"text\" placeholder=\"텍스트를 입력하세요\"/></div></div></div></div>"
64
+ },
65
+ "bemClasses": [
66
+ "ncua-input",
67
+ "ncua-input--sm",
68
+ "ncua-input--textarea",
69
+ "ncua-input--xs",
70
+ "ncua-input__",
71
+ "ncua-input__button",
72
+ "ncua-input__clear",
73
+ "ncua-input__clear-icon",
74
+ "ncua-input__content",
75
+ "ncua-input__content-wrap",
76
+ "ncua-input__destructive-icon",
77
+ "ncua-input__field",
78
+ "ncua-input__field-text-count",
79
+ "ncua-input__field-text-count-current",
80
+ "ncua-input__help-icon",
81
+ "ncua-input__hint-text",
82
+ "ncua-input__icon-wrap",
83
+ "ncua-input__icon-wrap ncua-input__right-icon",
84
+ "ncua-input__label",
85
+ "ncua-input__leading-text",
86
+ "ncua-input__leading-text-wrap",
87
+ "ncua-input__number",
88
+ "ncua-input__password-icon",
89
+ "ncua-input__right-icon",
90
+ "ncua-input__stepper-button-group",
91
+ "ncua-input__text-count",
92
+ "ncua-input__text-count-text",
93
+ "ncua-input__text-count-text-count",
94
+ "ncua-input__text-count-wrap",
95
+ "ncua-input__textarea",
96
+ "ncua-input__trailing-button",
97
+ "ncua-input__validation-icon"
98
+ ],
99
+ "usage": {
100
+ "import": "import { Input } from '@ncds/ui-admin';",
101
+ "react": {
102
+ "default": "<Input />",
103
+ "size:sm": "<Input size=\"sm\" />",
104
+ "size:xs": "<Input size=\"xs\" />"
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,91 @@
1
+ {
2
+ "name": "modal",
3
+ "description": "NCDS Modal 컴포넌트",
4
+ "aliases": [],
5
+ "props": {
6
+ "children": {
7
+ "type": "ReactNode",
8
+ "required": true
9
+ },
10
+ "className": {
11
+ "type": "string",
12
+ "required": false
13
+ },
14
+ "closeOnBackdropClick": {
15
+ "type": "string",
16
+ "required": false,
17
+ "default": false
18
+ },
19
+ "closeOnEsc": {
20
+ "type": "string",
21
+ "required": false,
22
+ "default": true
23
+ },
24
+ "isOpen": {
25
+ "type": "boolean",
26
+ "required": true
27
+ },
28
+ "onClose": {
29
+ "type": "string",
30
+ "required": true
31
+ },
32
+ "size": {
33
+ "type": "enum",
34
+ "required": false,
35
+ "values": [
36
+ "2xl",
37
+ "lg",
38
+ "md",
39
+ "sm",
40
+ "xl"
41
+ ],
42
+ "default": "md"
43
+ },
44
+ "zIndex": {
45
+ "type": "string",
46
+ "required": false
47
+ }
48
+ },
49
+ "html": {
50
+ "default": "<div class=\"ncua-modal\"></div>",
51
+ "size:2xl": "<div class=\"ncua-modal ncua-modal--2xl\"></div>",
52
+ "size:lg": "<div class=\"ncua-modal ncua-modal--lg\"></div>",
53
+ "size:md": "<div class=\"ncua-modal ncua-modal--md\"></div>",
54
+ "size:sm": "<div class=\"ncua-modal ncua-modal--sm\"></div>",
55
+ "size:xl": "<div class=\"ncua-modal ncua-modal--xl\"></div>"
56
+ },
57
+ "bemClasses": [
58
+ "ncua-modal",
59
+ "ncua-modal--2xl",
60
+ "ncua-modal--lg",
61
+ "ncua-modal--md",
62
+ "ncua-modal--sm",
63
+ "ncua-modal--xl",
64
+ "ncua-modal-backdrop",
65
+ "ncua-modal__actions",
66
+ "ncua-modal__actions-checkbox",
67
+ "ncua-modal__actions-checkbox-content",
68
+ "ncua-modal__actions-divider",
69
+ "ncua-modal__actions-wrapper",
70
+ "ncua-modal__actions-wrapper--checkbox",
71
+ "ncua-modal__close-button",
72
+ "ncua-modal__content",
73
+ "ncua-modal__header",
74
+ "ncua-modal__header--close-button",
75
+ "ncua-modal__header-divider",
76
+ "ncua-modal__title",
77
+ "ncua-modal__title-subtitle",
78
+ "ncua-modal__title-text"
79
+ ],
80
+ "usage": {
81
+ "import": "import { Modal } from '@ncds/ui-admin';",
82
+ "react": {
83
+ "default": "<Modal children=\"예시\" isOpen onClose=\"\" />",
84
+ "size:2xl": "<Modal size=\"2xl\" children=\"예시\" isOpen onClose=\"\" />",
85
+ "size:lg": "<Modal size=\"lg\" children=\"예시\" isOpen onClose=\"\" />",
86
+ "size:md": "<Modal size=\"md\" children=\"예시\" isOpen onClose=\"\" />",
87
+ "size:sm": "<Modal size=\"sm\" children=\"예시\" isOpen onClose=\"\" />",
88
+ "size:xl": "<Modal size=\"xl\" children=\"예시\" isOpen onClose=\"\" />"
89
+ }
90
+ }
91
+ }
@@ -0,0 +1,126 @@
1
+ {
2
+ "name": "notification",
3
+ "description": "NCDS Notification 컴포넌트",
4
+ "aliases": [],
5
+ "props": {
6
+ "actions": {
7
+ "type": "string",
8
+ "required": false
9
+ },
10
+ "autoClose": {
11
+ "type": "string",
12
+ "required": false,
13
+ "default": 0
14
+ },
15
+ "className": {
16
+ "type": "string",
17
+ "required": false
18
+ },
19
+ "color": {
20
+ "type": "enum",
21
+ "required": false,
22
+ "values": [
23
+ "error",
24
+ "info",
25
+ "neutral",
26
+ "success",
27
+ "warning"
28
+ ],
29
+ "default": "neutral"
30
+ },
31
+ "icon": {
32
+ "type": "string",
33
+ "required": false
34
+ },
35
+ "onClose": {
36
+ "type": "string",
37
+ "required": false
38
+ },
39
+ "onHidePermanently": {
40
+ "type": "string",
41
+ "required": false
42
+ },
43
+ "supportingText": {
44
+ "type": "string",
45
+ "required": false
46
+ },
47
+ "title": {
48
+ "type": "ReactNode",
49
+ "required": true
50
+ },
51
+ "type": {
52
+ "type": "enum",
53
+ "required": false,
54
+ "values": [
55
+ "floating",
56
+ "full-width",
57
+ "message"
58
+ ],
59
+ "default": "floating"
60
+ }
61
+ },
62
+ "html": {
63
+ "default": "<div class=\"ncua-floating-notification ncua-floating-notification--neutral\" role=\"alert\" message=\"알림 메시지\"><div class=\"ncua-floating-notification__content\"><div class=\"ncua-floating-notification__container\"><div class=\"ncua-featured-icon ncua-featured-icon--dark-circle ncua-featured-icon--neutral ncua-featured-icon--sm\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"none\"><path stroke=\"currentColor\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"2\" d=\"M8.377 15.616 2.72 21.273m8.974-14.631-1.56 1.56a2 2 0 0 1-.264.242 1 1 0 0 1-.207.111c-.082.032-.17.05-.347.085l-3.665.733c-.952.19-1.428.286-1.65.537a1 1 0 0 0-.243.8c.046.333.39.677 1.076 1.363l7.086 7.086c.686.687 1.03 1.03 1.362 1.076a1 1 0 0 0 .801-.242c.251-.223.346-.7.537-1.651l.733-3.665c.035-.176.053-.265.085-.347a1 1 0 0 1 .11-.207c.051-.072.115-.136.242-.263l1.561-1.561c.082-.082.122-.122.167-.158q.06-.047.126-.085c.05-.029.103-.051.208-.097l2.495-1.069c.727-.312 1.091-.467 1.256-.72a1 1 0 0 0 .144-.747c-.06-.295-.34-.575-.9-1.135l-5.142-5.143c-.56-.56-.84-.84-1.135-.9a1 1 0 0 0-.748.145c-.252.165-.407.529-.72 1.256l-1.068 2.495a2 2 0 0 1-.097.208 1 1 0 0 1-.085.126 2 2 0 0 1-.158.167\"></path></svg></div><div class=\"ncua-floating-notification__text-container\"><div class=\"ncua-floating-notification__title-wrapper\"><span class=\"ncua-floating-notification__title\"></span></div></div></div></div></div>"
64
+ },
65
+ "bemClasses": [
66
+ "ncua-floating-notification",
67
+ "ncua-floating-notification--error",
68
+ "ncua-floating-notification--floating",
69
+ "ncua-floating-notification--full-width",
70
+ "ncua-floating-notification--info",
71
+ "ncua-floating-notification--message",
72
+ "ncua-floating-notification--neutral",
73
+ "ncua-floating-notification--success",
74
+ "ncua-floating-notification--warning",
75
+ "ncua-floating-notification__actions",
76
+ "ncua-floating-notification__close-button",
77
+ "ncua-floating-notification__container",
78
+ "ncua-floating-notification__content",
79
+ "ncua-floating-notification__supporting-text",
80
+ "ncua-floating-notification__text-container",
81
+ "ncua-floating-notification__title",
82
+ "ncua-floating-notification__title-wrapper",
83
+ "ncua-full-width-notification",
84
+ "ncua-full-width-notification__actions",
85
+ "ncua-full-width-notification__actions-container",
86
+ "ncua-full-width-notification__close-button",
87
+ "ncua-full-width-notification__container",
88
+ "ncua-full-width-notification__content",
89
+ "ncua-full-width-notification__content-wrapper",
90
+ "ncua-full-width-notification__icon",
91
+ "ncua-full-width-notification__link",
92
+ "ncua-full-width-notification__supporting-text",
93
+ "ncua-full-width-notification__text-container",
94
+ "ncua-full-width-notification__title",
95
+ "ncua-message-notification",
96
+ "ncua-message-notification__actions",
97
+ "ncua-message-notification__actions-container",
98
+ "ncua-message-notification__close-button",
99
+ "ncua-message-notification__container",
100
+ "ncua-message-notification__content",
101
+ "ncua-message-notification__content-wrapper",
102
+ "ncua-message-notification__footer-container",
103
+ "ncua-message-notification__hide-link",
104
+ "ncua-message-notification__icon",
105
+ "ncua-message-notification__supporting-text",
106
+ "ncua-message-notification__text-container",
107
+ "ncua-message-notification__title",
108
+ "ncua-notification__action-button",
109
+ "ncua-notification__action-button--link",
110
+ "ncua-notification__action-button--text"
111
+ ],
112
+ "usage": {
113
+ "import": "import { Notification } from '@ncds/ui-admin';",
114
+ "react": {
115
+ "default": "<Notification title=\"예시\" />",
116
+ "color:error": "<Notification color=\"error\" title=\"예시\" />",
117
+ "color:info": "<Notification color=\"info\" title=\"예시\" />",
118
+ "color:neutral": "<Notification color=\"neutral\" title=\"예시\" />",
119
+ "color:success": "<Notification color=\"success\" title=\"예시\" />",
120
+ "color:warning": "<Notification color=\"warning\" title=\"예시\" />",
121
+ "type:floating": "<Notification type=\"floating\" title=\"예시\" />",
122
+ "type:full-width": "<Notification type=\"full-width\" title=\"예시\" />",
123
+ "type:message": "<Notification type=\"message\" title=\"예시\" />"
124
+ }
125
+ }
126
+ }
@@ -0,0 +1,134 @@
1
+ {
2
+ "name": "number-input",
3
+ "description": "NCDS Number Input 컴포넌트",
4
+ "aliases": [],
5
+ "props": {
6
+ "destructive": {
7
+ "type": "string",
8
+ "required": false
9
+ },
10
+ "disabled": {
11
+ "type": "string",
12
+ "required": false
13
+ },
14
+ "hintText": {
15
+ "type": "string",
16
+ "required": false
17
+ },
18
+ "label": {
19
+ "type": "string",
20
+ "required": false
21
+ },
22
+ "leadingElement": {
23
+ "type": "string",
24
+ "required": false
25
+ },
26
+ "maxLength": {
27
+ "type": "string",
28
+ "required": false
29
+ },
30
+ "maxValue": {
31
+ "type": "string",
32
+ "required": false
33
+ },
34
+ "minValue": {
35
+ "type": "string",
36
+ "required": false
37
+ },
38
+ "required": {
39
+ "type": "string",
40
+ "required": false
41
+ },
42
+ "showHelpIcon": {
43
+ "type": "string",
44
+ "required": false
45
+ },
46
+ "showTextCount": {
47
+ "type": "string",
48
+ "required": false
49
+ },
50
+ "size": {
51
+ "type": "enum",
52
+ "required": false,
53
+ "values": [
54
+ "sm",
55
+ "xs"
56
+ ],
57
+ "default": "xs"
58
+ },
59
+ "step": {
60
+ "type": "string",
61
+ "required": false,
62
+ "default": 1
63
+ },
64
+ "stepperPosition": {
65
+ "type": "enum",
66
+ "required": true,
67
+ "values": [
68
+ "leading",
69
+ "trailing"
70
+ ]
71
+ },
72
+ "trailingElement": {
73
+ "type": "string",
74
+ "required": false
75
+ },
76
+ "validation": {
77
+ "type": "string",
78
+ "required": false
79
+ }
80
+ },
81
+ "html": {
82
+ "default": "<div class=\"ncua-input\"></div>",
83
+ "size:sm": "<div class=\"ncua-input ncua-input--sm\"></div>",
84
+ "size:xs": "<div class=\"ncua-input ncua-input--xs\"></div>",
85
+ "stepperPosition:leading": "<div class=\"ncua-input ncua-input--leading\"></div>",
86
+ "stepperPosition:trailing": "<div class=\"ncua-input ncua-input--trailing\"></div>"
87
+ },
88
+ "bemClasses": [
89
+ "ncua-input",
90
+ "ncua-input--leading",
91
+ "ncua-input--sm",
92
+ "ncua-input--textarea",
93
+ "ncua-input--trailing",
94
+ "ncua-input--xs",
95
+ "ncua-input__",
96
+ "ncua-input__button",
97
+ "ncua-input__clear",
98
+ "ncua-input__clear-icon",
99
+ "ncua-input__content",
100
+ "ncua-input__content-wrap",
101
+ "ncua-input__destructive-icon",
102
+ "ncua-input__field",
103
+ "ncua-input__field-text-count",
104
+ "ncua-input__field-text-count-current",
105
+ "ncua-input__help-icon",
106
+ "ncua-input__hint-text",
107
+ "ncua-input__icon-wrap",
108
+ "ncua-input__icon-wrap ncua-input__right-icon",
109
+ "ncua-input__label",
110
+ "ncua-input__leading-text",
111
+ "ncua-input__leading-text-wrap",
112
+ "ncua-input__number",
113
+ "ncua-input__password-icon",
114
+ "ncua-input__right-icon",
115
+ "ncua-input__stepper-button-group",
116
+ "ncua-input__text-count",
117
+ "ncua-input__text-count-text",
118
+ "ncua-input__text-count-text-count",
119
+ "ncua-input__text-count-wrap",
120
+ "ncua-input__textarea",
121
+ "ncua-input__trailing-button",
122
+ "ncua-input__validation-icon"
123
+ ],
124
+ "usage": {
125
+ "import": "import { NumberInput } from '@ncds/ui-admin';",
126
+ "react": {
127
+ "default": "<NumberInput stepperPosition=\"leading\" />",
128
+ "size:sm": "<NumberInput size=\"sm\" stepperPosition=\"leading\" />",
129
+ "size:xs": "<NumberInput size=\"xs\" stepperPosition=\"leading\" />",
130
+ "stepperPosition:leading": "<NumberInput stepperPosition=\"leading\" />",
131
+ "stepperPosition:trailing": "<NumberInput stepperPosition=\"trailing\" />"
132
+ }
133
+ }
134
+ }