@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.
- package/bin/server.d.ts +1 -0
- package/bin/server.js +67 -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 +3 -0
- package/bin/tools/getComponentProps.js +16 -0
- package/bin/tools/listComponents.d.ts +3 -0
- package/bin/tools/listComponents.js +15 -0
- package/bin/tools/ping.d.ts +11 -0
- package/bin/tools/ping.js +30 -0
- package/bin/tools/searchComponent.d.ts +3 -0
- package/bin/tools/searchComponent.js +20 -0
- package/bin/tools/validateHtml.d.ts +10 -0
- package/bin/tools/validateHtml.js +142 -0
- package/bin/types.d.ts +28 -0
- package/bin/types.js +5 -0
- package/bin/utils/dataLoader.d.ts +11 -0
- package/bin/utils/dataLoader.js +68 -0
- package/bin/utils/logger.d.ts +18 -0
- package/bin/utils/logger.js +27 -0
- package/bin/utils/response.d.ts +23 -0
- package/bin/utils/response.js +31 -0
- package/bin/version.d.ts +1 -0
- package/bin/version.js +4 -0
- package/data/_meta.json +7 -0
- package/data/badge-group.json +81 -0
- package/data/badge.json +101 -0
- package/data/bread-crumb.json +22 -0
- package/data/breadcrumb.json +31 -0
- package/data/button-group.json +70 -0
- package/data/button.json +119 -0
- package/data/carousel-arrow.json +65 -0
- package/data/carousel-number-group.json +62 -0
- package/data/carousel.json +22 -0
- package/data/checkbox.json +31 -0
- package/data/combobox.json +117 -0
- package/data/date-picker.json +80 -0
- package/data/divider.json +66 -0
- package/data/dot.json +67 -0
- package/data/dropdown.json +84 -0
- package/data/empty-state.json +34 -0
- package/data/featured-icon.json +98 -0
- package/data/file-input.json +76 -0
- package/data/horizontal-tab.json +80 -0
- package/data/image-file-input.json +97 -0
- package/data/input.json +107 -0
- package/data/modal.json +91 -0
- package/data/notification.json +126 -0
- package/data/number-input.json +134 -0
- package/data/pagination.json +68 -0
- package/data/password-input.json +47 -0
- package/data/progress-bar.json +56 -0
- package/data/progress-circle.json +63 -0
- package/data/radio.json +31 -0
- package/data/range-date-picker-with-buttons.json +64 -0
- package/data/range-date-picker.json +58 -0
- package/data/select-dropdown.json +32 -0
- package/data/select.json +77 -0
- package/data/selectbox.json +139 -0
- package/data/slider.json +62 -0
- package/data/spinner.json +60 -0
- package/data/switch.json +71 -0
- package/data/tab.json +140 -0
- package/data/tag.json +69 -0
- package/data/textarea.json +91 -0
- package/data/toggle.json +62 -0
- package/data/tooltip.json +148 -0
- package/data/vertical-tab.json +71 -0
- package/package.json +35 -0
- package/templates/.mcp.json.example +8 -0
- package/templates/README.md +31 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "pagination",
|
|
3
|
+
"description": "NCDS Pagination 컴포넌트",
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"props": {
|
|
6
|
+
"breakPoint": {
|
|
7
|
+
"type": "enum",
|
|
8
|
+
"required": false,
|
|
9
|
+
"values": [
|
|
10
|
+
"mo",
|
|
11
|
+
"pc"
|
|
12
|
+
],
|
|
13
|
+
"default": "pc"
|
|
14
|
+
},
|
|
15
|
+
"className": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"required": false,
|
|
18
|
+
"default": ""
|
|
19
|
+
},
|
|
20
|
+
"currentPage": {
|
|
21
|
+
"type": "number",
|
|
22
|
+
"required": true
|
|
23
|
+
},
|
|
24
|
+
"itemCountPerPage": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"required": false,
|
|
27
|
+
"default": 10
|
|
28
|
+
},
|
|
29
|
+
"onPageChange": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"required": false
|
|
32
|
+
},
|
|
33
|
+
"pageCount": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"required": false,
|
|
36
|
+
"default": 10
|
|
37
|
+
},
|
|
38
|
+
"totalCount": {
|
|
39
|
+
"type": "number",
|
|
40
|
+
"required": true
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"html": {
|
|
44
|
+
"default": "<div class=\"ncua-pagination ncua-pagination--pc\"><ul class=\"ncua-pagination__list\"><li class=\"ncua-pagination__item\"><button class=\"ncua-pagination__page-num is-current\">1</button></li><li class=\"ncua-pagination__item\"><button class=\"ncua-pagination__page-num\">2</button></li><li class=\"ncua-pagination__item\"><button class=\"ncua-pagination__page-num\">3</button></li><li class=\"ncua-pagination__item\"><button class=\"ncua-pagination__page-num\">4</button></li><li class=\"ncua-pagination__item\"><button class=\"ncua-pagination__page-num\">5</button></li><li class=\"ncua-pagination__item\"><button class=\"ncua-pagination__page-num\">6</button></li><li class=\"ncua-pagination__item\"><button class=\"ncua-pagination__page-num\">7</button></li><li class=\"ncua-pagination__item\"><button class=\"ncua-pagination__page-num\">8</button></li><li class=\"ncua-pagination__item\"><button class=\"ncua-pagination__page-num\">9</button></li><li class=\"ncua-pagination__item\"><button class=\"ncua-pagination__page-num\">10</button></li></ul><p class=\"ncua-pagination__page-info\"><em class=\"ncua-pagination__current-num\">1</em> / 10</p></div>"
|
|
45
|
+
},
|
|
46
|
+
"bemClasses": [
|
|
47
|
+
"ncua-pagination",
|
|
48
|
+
"ncua-pagination--mo",
|
|
49
|
+
"ncua-pagination--pc",
|
|
50
|
+
"ncua-pagination__before",
|
|
51
|
+
"ncua-pagination__current-num",
|
|
52
|
+
"ncua-pagination__first",
|
|
53
|
+
"ncua-pagination__item",
|
|
54
|
+
"ncua-pagination__last",
|
|
55
|
+
"ncua-pagination__list",
|
|
56
|
+
"ncua-pagination__next",
|
|
57
|
+
"ncua-pagination__page-info",
|
|
58
|
+
"ncua-pagination__page-num"
|
|
59
|
+
],
|
|
60
|
+
"usage": {
|
|
61
|
+
"import": "import { Pagination } from '@ncds/ui-admin';",
|
|
62
|
+
"react": {
|
|
63
|
+
"default": "<Pagination currentPage={0} totalCount={0} />",
|
|
64
|
+
"breakPoint:mo": "<Pagination breakPoint=\"mo\" currentPage={0} totalCount={0} />",
|
|
65
|
+
"breakPoint:pc": "<Pagination breakPoint=\"pc\" currentPage={0} totalCount={0} />"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "password-input",
|
|
3
|
+
"description": "NCDS Password Input 컴포넌트",
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"props": {},
|
|
6
|
+
"html": {
|
|
7
|
+
"default": "<div class=\"ncua-input\"></div>"
|
|
8
|
+
},
|
|
9
|
+
"bemClasses": [
|
|
10
|
+
"ncua-input",
|
|
11
|
+
"ncua-input--textarea",
|
|
12
|
+
"ncua-input__",
|
|
13
|
+
"ncua-input__button",
|
|
14
|
+
"ncua-input__clear",
|
|
15
|
+
"ncua-input__clear-icon",
|
|
16
|
+
"ncua-input__content",
|
|
17
|
+
"ncua-input__content-wrap",
|
|
18
|
+
"ncua-input__destructive-icon",
|
|
19
|
+
"ncua-input__field",
|
|
20
|
+
"ncua-input__field-text-count",
|
|
21
|
+
"ncua-input__field-text-count-current",
|
|
22
|
+
"ncua-input__help-icon",
|
|
23
|
+
"ncua-input__hint-text",
|
|
24
|
+
"ncua-input__icon-wrap",
|
|
25
|
+
"ncua-input__icon-wrap ncua-input__right-icon",
|
|
26
|
+
"ncua-input__label",
|
|
27
|
+
"ncua-input__leading-text",
|
|
28
|
+
"ncua-input__leading-text-wrap",
|
|
29
|
+
"ncua-input__number",
|
|
30
|
+
"ncua-input__password-icon",
|
|
31
|
+
"ncua-input__right-icon",
|
|
32
|
+
"ncua-input__stepper-button-group",
|
|
33
|
+
"ncua-input__text-count",
|
|
34
|
+
"ncua-input__text-count-text",
|
|
35
|
+
"ncua-input__text-count-text-count",
|
|
36
|
+
"ncua-input__text-count-wrap",
|
|
37
|
+
"ncua-input__textarea",
|
|
38
|
+
"ncua-input__trailing-button",
|
|
39
|
+
"ncua-input__validation-icon"
|
|
40
|
+
],
|
|
41
|
+
"usage": {
|
|
42
|
+
"import": "import { PasswordInput } from '@ncds/ui-admin';",
|
|
43
|
+
"react": {
|
|
44
|
+
"default": "<PasswordInput />"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "progress-bar",
|
|
3
|
+
"description": "NCDS Progress Bar 컴포넌트",
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"props": {
|
|
6
|
+
"label": {
|
|
7
|
+
"type": "enum",
|
|
8
|
+
"required": false,
|
|
9
|
+
"values": [
|
|
10
|
+
"bottom",
|
|
11
|
+
"bottom-float",
|
|
12
|
+
"right",
|
|
13
|
+
"top-float"
|
|
14
|
+
]
|
|
15
|
+
},
|
|
16
|
+
"segments": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"required": false
|
|
19
|
+
},
|
|
20
|
+
"showZeroLabel": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"required": false,
|
|
23
|
+
"default": false
|
|
24
|
+
},
|
|
25
|
+
"value": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"required": false
|
|
28
|
+
},
|
|
29
|
+
"valueToPercent": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"required": false,
|
|
32
|
+
"default": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"html": {
|
|
36
|
+
"default": "<div class=\"ncua-progress-bar ncua-progress-bar-\"><div class=\"ncua-progress-bar__content\"><div class=\"ncua-progress-bar__bar \"><div class=\"ncua-progress-bar__fill\" style=\"width:50%\" aria-valuenow=\"50\" aria-valuemin=\"0\" aria-valuemax=\"100\"></div></div></div></div>"
|
|
37
|
+
},
|
|
38
|
+
"bemClasses": [
|
|
39
|
+
"ncua-progress-bar",
|
|
40
|
+
"ncua-progress-bar-",
|
|
41
|
+
"ncua-progress-bar__bar",
|
|
42
|
+
"ncua-progress-bar__bar--segments",
|
|
43
|
+
"ncua-progress-bar__content",
|
|
44
|
+
"ncua-progress-bar__fill"
|
|
45
|
+
],
|
|
46
|
+
"usage": {
|
|
47
|
+
"import": "import { ProgressBar } from '@ncds/ui-admin';",
|
|
48
|
+
"react": {
|
|
49
|
+
"default": "<ProgressBar />",
|
|
50
|
+
"label:bottom": "<ProgressBar label=\"bottom\" />",
|
|
51
|
+
"label:bottom-float": "<ProgressBar label=\"bottom-float\" />",
|
|
52
|
+
"label:right": "<ProgressBar label=\"right\" />",
|
|
53
|
+
"label:top-float": "<ProgressBar label=\"top-float\" />"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "progress-circle",
|
|
3
|
+
"description": "NCDS Progress Circle 컴포넌트",
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"props": {
|
|
6
|
+
"label": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"required": false
|
|
9
|
+
},
|
|
10
|
+
"size": {
|
|
11
|
+
"type": "enum",
|
|
12
|
+
"required": true,
|
|
13
|
+
"values": [
|
|
14
|
+
"lg",
|
|
15
|
+
"md",
|
|
16
|
+
"sm",
|
|
17
|
+
"xs",
|
|
18
|
+
"xxs"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"theme": {
|
|
22
|
+
"type": "enum",
|
|
23
|
+
"required": false,
|
|
24
|
+
"values": [
|
|
25
|
+
"circle",
|
|
26
|
+
"half-circle"
|
|
27
|
+
],
|
|
28
|
+
"default": "circle"
|
|
29
|
+
},
|
|
30
|
+
"value": {
|
|
31
|
+
"type": "number",
|
|
32
|
+
"required": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"html": {
|
|
36
|
+
"default": "<div class=\"ncua-progress-circle ncua-progress-circle-undefined ncua-progress-circle-circle\"><div class=\"ncua-progress-circle__content\"><svg class=\"ncua-progress-circle__svg\" viewBox=\"0 0 100 100\"><circle class=\"ncua-progress-circle__background\" cx=\"50\" cy=\"50\" r=\"45\" stroke-width=\"10\" fill=\"none\"></circle><circle class=\"ncua-progress-circle__progress\" cx=\"50\" cy=\"50\" r=\"45\" stroke-width=\"10\" fill=\"none\" stroke-dasharray=\"var(--circle-circumference)\" stroke-dashoffset=\"calc(var(--circle-circumference) * (1 - 50 / 100))\" transform=\"rotate(-90 50 50)\" stroke-linecap=\"round\"></circle></svg><div class=\"ncua-progress-circle__label-container\"><div class=\"ncua-progress-circle__label\">50%</div></div></div></div>"
|
|
37
|
+
},
|
|
38
|
+
"bemClasses": [
|
|
39
|
+
"ncua-progress-circle",
|
|
40
|
+
"ncua-progress-circle-",
|
|
41
|
+
"ncua-progress-circle__background",
|
|
42
|
+
"ncua-progress-circle__content",
|
|
43
|
+
"ncua-progress-circle__label",
|
|
44
|
+
"ncua-progress-circle__label-container",
|
|
45
|
+
"ncua-progress-circle__label-text",
|
|
46
|
+
"ncua-progress-circle__outside-label",
|
|
47
|
+
"ncua-progress-circle__progress",
|
|
48
|
+
"ncua-progress-circle__svg"
|
|
49
|
+
],
|
|
50
|
+
"usage": {
|
|
51
|
+
"import": "import { ProgressCircle } from '@ncds/ui-admin';",
|
|
52
|
+
"react": {
|
|
53
|
+
"default": "<ProgressCircle size=\"lg\" value={0} />",
|
|
54
|
+
"size:lg": "<ProgressCircle size=\"lg\" value={0} />",
|
|
55
|
+
"size:md": "<ProgressCircle size=\"md\" value={0} />",
|
|
56
|
+
"size:sm": "<ProgressCircle size=\"sm\" value={0} />",
|
|
57
|
+
"size:xs": "<ProgressCircle size=\"xs\" value={0} />",
|
|
58
|
+
"size:xxs": "<ProgressCircle size=\"xxs\" value={0} />",
|
|
59
|
+
"theme:circle": "<ProgressCircle theme=\"circle\" size=\"lg\" value={0} />",
|
|
60
|
+
"theme:half-circle": "<ProgressCircle theme=\"half-circle\" size=\"lg\" value={0} />"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
package/data/radio.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "radio",
|
|
3
|
+
"description": "NCDS Radio 컴포넌트",
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"props": {
|
|
6
|
+
"supportText": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"required": false
|
|
9
|
+
},
|
|
10
|
+
"text": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"required": false
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"html": {
|
|
16
|
+
"default": "<label class=\"ncua-radio-field ncua-radio-field--xs\"><span class=\"ncua-radio-input ncua-radio-input--xs ncua-radio-field__input\"><input type=\"radio\" label=\"라디오\" name=\"radio-group\"/></span><span></span></label>"
|
|
17
|
+
},
|
|
18
|
+
"bemClasses": [
|
|
19
|
+
"ncua-radio-field",
|
|
20
|
+
"ncua-radio-field__input",
|
|
21
|
+
"ncua-radio-field__support-text",
|
|
22
|
+
"ncua-radio-field__text",
|
|
23
|
+
"ncua-radio-input"
|
|
24
|
+
],
|
|
25
|
+
"usage": {
|
|
26
|
+
"import": "import { Radio } from '@ncds/ui-admin';",
|
|
27
|
+
"react": {
|
|
28
|
+
"default": "<Radio />"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "range-date-picker-with-buttons",
|
|
3
|
+
"description": "NCDS Range Date Picker With Buttons 컴포넌트",
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"props": {
|
|
6
|
+
"currentButtonId": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"required": true
|
|
9
|
+
},
|
|
10
|
+
"endDateOptions": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"required": true
|
|
13
|
+
},
|
|
14
|
+
"onDateValidation": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"required": false
|
|
17
|
+
},
|
|
18
|
+
"periodItems": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"required": false
|
|
21
|
+
},
|
|
22
|
+
"periodKeys": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"required": true
|
|
25
|
+
},
|
|
26
|
+
"setCurrentButtonId": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"required": true
|
|
29
|
+
},
|
|
30
|
+
"startDateOptions": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"required": true
|
|
33
|
+
},
|
|
34
|
+
"useYesterdayAsEndDate": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"required": false,
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
39
|
+
"validationOption": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"required": false
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"html": {
|
|
45
|
+
"default": "<div class=\"ncua-date-picker\"></div>"
|
|
46
|
+
},
|
|
47
|
+
"bemClasses": [
|
|
48
|
+
"ncua-date-picker",
|
|
49
|
+
"ncua-date-picker--destructive",
|
|
50
|
+
"ncua-date-picker--disabled",
|
|
51
|
+
"ncua-date-picker--has-time",
|
|
52
|
+
"ncua-date-picker__destructive",
|
|
53
|
+
"ncua-date-picker__ico",
|
|
54
|
+
"ncua-date-picker__input",
|
|
55
|
+
"ncua-range-date-picker",
|
|
56
|
+
"ncua-range-date-picker-with-buttons"
|
|
57
|
+
],
|
|
58
|
+
"usage": {
|
|
59
|
+
"import": "import { RangeDatePickerWithButtons } from '@ncds/ui-admin';",
|
|
60
|
+
"react": {
|
|
61
|
+
"default": "<RangeDatePickerWithButtons currentButtonId=\"\" endDateOptions=\"\" periodKeys=\"\" setCurrentButtonId=\"\" startDateOptions=\"\" />"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "range-date-picker",
|
|
3
|
+
"description": "NCDS Range Date Picker 컴포넌트",
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"props": {
|
|
6
|
+
"endDateOptions": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"required": true
|
|
9
|
+
},
|
|
10
|
+
"onDateValidation": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"required": false
|
|
13
|
+
},
|
|
14
|
+
"size": {
|
|
15
|
+
"type": "enum",
|
|
16
|
+
"required": false,
|
|
17
|
+
"values": [
|
|
18
|
+
"sm",
|
|
19
|
+
"xs"
|
|
20
|
+
],
|
|
21
|
+
"default": "xs"
|
|
22
|
+
},
|
|
23
|
+
"startDateOptions": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"required": true
|
|
26
|
+
},
|
|
27
|
+
"validationOption": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"required": false
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"html": {
|
|
33
|
+
"default": "<div class=\"ncua-date-picker\"></div>",
|
|
34
|
+
"size:sm": "<div class=\"ncua-date-picker ncua-date-picker--sm\"></div>",
|
|
35
|
+
"size:xs": "<div class=\"ncua-date-picker ncua-date-picker--xs\"></div>"
|
|
36
|
+
},
|
|
37
|
+
"bemClasses": [
|
|
38
|
+
"ncua-date-picker",
|
|
39
|
+
"ncua-date-picker--destructive",
|
|
40
|
+
"ncua-date-picker--disabled",
|
|
41
|
+
"ncua-date-picker--has-time",
|
|
42
|
+
"ncua-date-picker--sm",
|
|
43
|
+
"ncua-date-picker--xs",
|
|
44
|
+
"ncua-date-picker__destructive",
|
|
45
|
+
"ncua-date-picker__ico",
|
|
46
|
+
"ncua-date-picker__input",
|
|
47
|
+
"ncua-range-date-picker",
|
|
48
|
+
"ncua-range-date-picker-with-buttons"
|
|
49
|
+
],
|
|
50
|
+
"usage": {
|
|
51
|
+
"import": "import { RangeDatePicker } from '@ncds/ui-admin';",
|
|
52
|
+
"react": {
|
|
53
|
+
"default": "<RangeDatePicker endDateOptions=\"\" startDateOptions=\"\" />",
|
|
54
|
+
"size:sm": "<RangeDatePicker size=\"sm\" endDateOptions=\"\" startDateOptions=\"\" />",
|
|
55
|
+
"size:xs": "<RangeDatePicker size=\"xs\" endDateOptions=\"\" startDateOptions=\"\" />"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "select-dropdown",
|
|
3
|
+
"description": "NCDS Select Dropdown 컴포넌트",
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"props": {},
|
|
6
|
+
"html": {
|
|
7
|
+
"default": "<div class=\"ncua-select-dropdown\"></div>"
|
|
8
|
+
},
|
|
9
|
+
"bemClasses": [
|
|
10
|
+
"ncua-select-dropdown",
|
|
11
|
+
"ncua-select-dropdown--align-right",
|
|
12
|
+
"ncua-select-dropdown--multiple",
|
|
13
|
+
"ncua-select-dropdown--selectbox-single",
|
|
14
|
+
"ncua-select-dropdown__content",
|
|
15
|
+
"ncua-select-dropdown__footer",
|
|
16
|
+
"ncua-select-dropdown__footer-buttons",
|
|
17
|
+
"ncua-select-dropdown__footer-left",
|
|
18
|
+
"ncua-select-dropdown__footer-right",
|
|
19
|
+
"ncua-select-dropdown__option",
|
|
20
|
+
"ncua-select-dropdown__option--focused",
|
|
21
|
+
"ncua-select-dropdown__option--selected",
|
|
22
|
+
"ncua-select-dropdown__option-icon",
|
|
23
|
+
"ncua-select-dropdown__option-text",
|
|
24
|
+
"ncua-select-dropdown__options"
|
|
25
|
+
],
|
|
26
|
+
"usage": {
|
|
27
|
+
"import": "import { SelectDropdown } from '@ncds/ui-admin';",
|
|
28
|
+
"react": {
|
|
29
|
+
"default": "<SelectDropdown />"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
package/data/select.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "select",
|
|
3
|
+
"description": "NCDS Select 컴포넌트",
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"props": {
|
|
6
|
+
"children": {
|
|
7
|
+
"type": "string",
|
|
8
|
+
"required": false
|
|
9
|
+
},
|
|
10
|
+
"destructive": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"required": false,
|
|
13
|
+
"default": false
|
|
14
|
+
},
|
|
15
|
+
"disabledPlaceholder": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"required": false,
|
|
18
|
+
"default": false
|
|
19
|
+
},
|
|
20
|
+
"hintText": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"required": false
|
|
23
|
+
},
|
|
24
|
+
"optionItems": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"required": false
|
|
27
|
+
},
|
|
28
|
+
"placeholder": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"required": false
|
|
31
|
+
},
|
|
32
|
+
"register": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"required": false
|
|
35
|
+
},
|
|
36
|
+
"size": {
|
|
37
|
+
"type": "enum",
|
|
38
|
+
"required": false,
|
|
39
|
+
"values": [
|
|
40
|
+
"md",
|
|
41
|
+
"sm",
|
|
42
|
+
"xs"
|
|
43
|
+
],
|
|
44
|
+
"default": "md"
|
|
45
|
+
},
|
|
46
|
+
"type": {
|
|
47
|
+
"type": "enum",
|
|
48
|
+
"required": false,
|
|
49
|
+
"values": [
|
|
50
|
+
"default",
|
|
51
|
+
"simple"
|
|
52
|
+
],
|
|
53
|
+
"default": "default"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"html": {
|
|
57
|
+
"default": "<span class=\"ncua-select ncua-select--md\"><span class=\"ncua-select__content\"><select class=\"ncua-select__tag\"><option value=\"\" selected=\"\">선택하세요</option></select></span></span>"
|
|
58
|
+
},
|
|
59
|
+
"bemClasses": [
|
|
60
|
+
"ncua-hint-text",
|
|
61
|
+
"ncua-select",
|
|
62
|
+
"ncua-select--simple",
|
|
63
|
+
"ncua-select__content",
|
|
64
|
+
"ncua-select__tag"
|
|
65
|
+
],
|
|
66
|
+
"usage": {
|
|
67
|
+
"import": "import { Select } from '@ncds/ui-admin';",
|
|
68
|
+
"react": {
|
|
69
|
+
"default": "<Select />",
|
|
70
|
+
"size:md": "<Select size=\"md\" />",
|
|
71
|
+
"size:sm": "<Select size=\"sm\" />",
|
|
72
|
+
"size:xs": "<Select size=\"xs\" />",
|
|
73
|
+
"type:default": "<Select type=\"default\" />",
|
|
74
|
+
"type:simple": "<Select type=\"simple\" />"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "selectbox",
|
|
3
|
+
"description": "NCDS Selectbox 컴포넌트",
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"props": {
|
|
6
|
+
"align": {
|
|
7
|
+
"type": "enum",
|
|
8
|
+
"required": false,
|
|
9
|
+
"values": [
|
|
10
|
+
"left",
|
|
11
|
+
"right"
|
|
12
|
+
],
|
|
13
|
+
"default": "left"
|
|
14
|
+
},
|
|
15
|
+
"autoWidth": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"required": false,
|
|
18
|
+
"default": true
|
|
19
|
+
},
|
|
20
|
+
"children": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"required": false
|
|
23
|
+
},
|
|
24
|
+
"destructive": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"required": false,
|
|
27
|
+
"default": false
|
|
28
|
+
},
|
|
29
|
+
"disabled": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"required": false,
|
|
32
|
+
"default": false
|
|
33
|
+
},
|
|
34
|
+
"disabledPlaceholder": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"required": false,
|
|
37
|
+
"default": false
|
|
38
|
+
},
|
|
39
|
+
"hintText": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"required": false
|
|
42
|
+
},
|
|
43
|
+
"maxHeight": {
|
|
44
|
+
"type": "string",
|
|
45
|
+
"required": false,
|
|
46
|
+
"default": "DEFAULT_MAX_HEIGHT"
|
|
47
|
+
},
|
|
48
|
+
"multiple": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"required": false,
|
|
51
|
+
"default": false
|
|
52
|
+
},
|
|
53
|
+
"onChange": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"required": false
|
|
56
|
+
},
|
|
57
|
+
"onEdit": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"required": false
|
|
60
|
+
},
|
|
61
|
+
"optionItems": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"required": false,
|
|
64
|
+
"default": "[]"
|
|
65
|
+
},
|
|
66
|
+
"placeholder": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"required": false,
|
|
69
|
+
"default": "선택하세요"
|
|
70
|
+
},
|
|
71
|
+
"register": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"required": false
|
|
74
|
+
},
|
|
75
|
+
"size": {
|
|
76
|
+
"type": "enum",
|
|
77
|
+
"required": false,
|
|
78
|
+
"values": [
|
|
79
|
+
"md",
|
|
80
|
+
"sm",
|
|
81
|
+
"xs"
|
|
82
|
+
],
|
|
83
|
+
"default": "xs"
|
|
84
|
+
},
|
|
85
|
+
"type": {
|
|
86
|
+
"type": "enum",
|
|
87
|
+
"required": false,
|
|
88
|
+
"values": [
|
|
89
|
+
"default",
|
|
90
|
+
"simple"
|
|
91
|
+
],
|
|
92
|
+
"default": "default"
|
|
93
|
+
},
|
|
94
|
+
"value": {
|
|
95
|
+
"type": "string",
|
|
96
|
+
"required": false
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"html": {
|
|
100
|
+
"default": "<div class=\"ncua-hint-text\"></div>",
|
|
101
|
+
"align:left": "<div class=\"ncua-hint-text ncua-hint-text--left\"></div>",
|
|
102
|
+
"align:right": "<div class=\"ncua-hint-text ncua-hint-text--right\"></div>",
|
|
103
|
+
"size:md": "<div class=\"ncua-hint-text ncua-hint-text--md\"></div>",
|
|
104
|
+
"size:sm": "<div class=\"ncua-hint-text ncua-hint-text--sm\"></div>",
|
|
105
|
+
"size:xs": "<div class=\"ncua-hint-text ncua-hint-text--xs\"></div>",
|
|
106
|
+
"type:default": "<div class=\"ncua-hint-text ncua-hint-text--default\"></div>",
|
|
107
|
+
"type:simple": "<div class=\"ncua-hint-text ncua-hint-text--simple\"></div>"
|
|
108
|
+
},
|
|
109
|
+
"bemClasses": [
|
|
110
|
+
"ncua-hint-text",
|
|
111
|
+
"ncua-selectbox",
|
|
112
|
+
"ncua-selectbox--disabled",
|
|
113
|
+
"ncua-selectbox--multiple",
|
|
114
|
+
"ncua-selectbox--open",
|
|
115
|
+
"ncua-selectbox--simple",
|
|
116
|
+
"ncua-selectbox__arrow",
|
|
117
|
+
"ncua-selectbox__arrow--up",
|
|
118
|
+
"ncua-selectbox__content",
|
|
119
|
+
"ncua-selectbox__content-inner",
|
|
120
|
+
"ncua-selectbox__tags",
|
|
121
|
+
"ncua-selectbox__value",
|
|
122
|
+
"ncua-selectbox__value-container",
|
|
123
|
+
"ncua-selectbox__value-icon",
|
|
124
|
+
"ncua-selectbox__value-text"
|
|
125
|
+
],
|
|
126
|
+
"usage": {
|
|
127
|
+
"import": "import { Selectbox } from '@ncds/ui-admin';",
|
|
128
|
+
"react": {
|
|
129
|
+
"default": "<Selectbox />",
|
|
130
|
+
"align:left": "<Selectbox align=\"left\" />",
|
|
131
|
+
"align:right": "<Selectbox align=\"right\" />",
|
|
132
|
+
"size:md": "<Selectbox size=\"md\" />",
|
|
133
|
+
"size:sm": "<Selectbox size=\"sm\" />",
|
|
134
|
+
"size:xs": "<Selectbox size=\"xs\" />",
|
|
135
|
+
"type:default": "<Selectbox type=\"default\" />",
|
|
136
|
+
"type:simple": "<Selectbox type=\"simple\" />"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|