@ncds/ui-admin 1.0.1 → 1.1.0
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/dist/cjs/src/components/button/ButtonGroup.js +8 -8
- package/dist/cjs/src/components/checkbox/Checkbox.js +1 -1
- package/dist/cjs/src/components/checkbox/CheckboxInput.js +1 -1
- package/dist/cjs/src/components/date-picker/DatePicker.js +2 -3
- package/dist/cjs/src/components/input/InputBase.js +5 -5
- package/dist/cjs/src/components/input/PasswordInput.js +4 -4
- package/dist/cjs/src/components/input/Textarea.js +2 -2
- package/dist/cjs/src/components/radio/Radio.js +1 -1
- package/dist/cjs/src/components/radio/RadioInput.js +1 -1
- package/dist/cjs/src/components/tab/HorizontalTab.js +6 -6
- package/dist/cjs/src/components/tab/TabButton.js +1 -1
- package/dist/cjs/src/components/tab/VerticalTab.js +1 -1
- package/dist/esm/src/components/button/ButtonGroup.js +8 -8
- package/dist/esm/src/components/checkbox/Checkbox.js +1 -1
- package/dist/esm/src/components/checkbox/CheckboxInput.js +1 -1
- package/dist/esm/src/components/date-picker/DatePicker.js +2 -3
- package/dist/esm/src/components/input/InputBase.js +5 -5
- package/dist/esm/src/components/input/PasswordInput.js +4 -4
- package/dist/esm/src/components/input/Textarea.js +2 -2
- package/dist/esm/src/components/radio/Radio.js +1 -1
- package/dist/esm/src/components/radio/RadioInput.js +1 -1
- package/dist/esm/src/components/tab/HorizontalTab.js +6 -6
- package/dist/esm/src/components/tab/TabButton.js +1 -1
- package/dist/esm/src/components/tab/VerticalTab.js +1 -1
- package/dist/types/src/components/button/ButtonGroup.d.ts +1 -1
- package/dist/types/src/components/checkbox/CheckboxInput.d.ts +1 -1
- package/dist/types/src/components/date-picker/DatePicker.d.ts +2 -3
- package/dist/types/src/components/input/InputBase.d.ts +1 -1
- package/dist/types/src/components/input/Textarea.d.ts +1 -1
- package/dist/types/src/components/radio/RadioInput.d.ts +1 -1
- package/dist/types/src/components/tab/HorizontalTab.d.ts +2 -3
- package/dist/types/src/components/tab/TabButton.d.ts +1 -1
- package/dist/ui-admin/assets/styles/style.css +1291 -64
- package/package.json +1 -1
|
@@ -32,16 +32,16 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
32
32
|
return t;
|
|
33
33
|
};
|
|
34
34
|
var svgSize = {
|
|
35
|
-
|
|
35
|
+
xxs: 12,
|
|
36
|
+
xs: 16,
|
|
36
37
|
sm: 16,
|
|
37
|
-
md:
|
|
38
|
-
lg: 20
|
|
38
|
+
md: 20
|
|
39
39
|
};
|
|
40
40
|
var dotSize = {
|
|
41
|
+
xxs: 'sm',
|
|
41
42
|
xs: 'sm',
|
|
42
|
-
sm: '
|
|
43
|
-
md: 'md'
|
|
44
|
-
lg: 'md'
|
|
43
|
+
sm: 'md',
|
|
44
|
+
md: 'md'
|
|
45
45
|
};
|
|
46
46
|
var ButtonGroup = function (_a) {
|
|
47
47
|
var children = _a.children,
|
|
@@ -49,7 +49,7 @@ var ButtonGroup = function (_a) {
|
|
|
49
49
|
_b = _a.hasBorder,
|
|
50
50
|
hasBorder = _b === void 0 ? true : _b,
|
|
51
51
|
_c = _a.size,
|
|
52
|
-
size = _c === void 0 ? '
|
|
52
|
+
size = _c === void 0 ? 'xs' : _c,
|
|
53
53
|
_d = _a.onlyIcon,
|
|
54
54
|
onlyIcon = _d === void 0 ? false : _d,
|
|
55
55
|
_e = _a.disabled,
|
|
@@ -78,7 +78,7 @@ ButtonGroup.Item = function (_a) {
|
|
|
78
78
|
as = _c === void 0 ? 'button' : _c,
|
|
79
79
|
label = _a.label,
|
|
80
80
|
_d = _a.size,
|
|
81
|
-
size = _d === void 0 ? '
|
|
81
|
+
size = _d === void 0 ? 'xs' : _d,
|
|
82
82
|
onlyIcon = _a.onlyIcon,
|
|
83
83
|
icon = _a.icon,
|
|
84
84
|
disabled = _a.disabled,
|
|
@@ -28,7 +28,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
28
28
|
};
|
|
29
29
|
var Checkbox = function (_a) {
|
|
30
30
|
var _b = _a.size,
|
|
31
|
-
size = _b === void 0 ? '
|
|
31
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
32
32
|
_c = _a.indeterminate,
|
|
33
33
|
indeterminate = _c === void 0 ? false : _c,
|
|
34
34
|
text = _a.text,
|
|
@@ -31,7 +31,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
31
31
|
*/
|
|
32
32
|
var CheckboxInput = exports.CheckboxInput = /*#__PURE__*/(0, _react.forwardRef)(function (_a, ref) {
|
|
33
33
|
var _b = _a.size,
|
|
34
|
-
size = _b === void 0 ? '
|
|
34
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
35
35
|
_c = _a.indeterminate,
|
|
36
36
|
indeterminate = _c === void 0 ? false : _c,
|
|
37
37
|
disabled = _a.disabled,
|
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.DatePicker = void 0;
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
8
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
|
-
require("flatpickr/dist/flatpickr.css");
|
|
10
9
|
var _ko = require("flatpickr/dist/l10n/ko");
|
|
11
10
|
var _react = require("react");
|
|
12
11
|
var _reactFlatpickr = _interopRequireDefault(require("react-flatpickr"));
|
|
@@ -35,7 +34,7 @@ var DatePicker = exports.DatePicker = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
35
34
|
shouldFocus = _b === void 0 ? true : _b,
|
|
36
35
|
currentDate = _a.currentDate,
|
|
37
36
|
_c = _a.size,
|
|
38
|
-
size = _c === void 0 ? '
|
|
37
|
+
size = _c === void 0 ? 'xs' : _c,
|
|
39
38
|
onChangeDate = _a.onChangeDate,
|
|
40
39
|
datePickerOptions = _a.datePickerOptions,
|
|
41
40
|
attrs = __rest(_a, ["shouldFocus", "currentDate", "size", "onChangeDate", "datePickerOptions"]);
|
|
@@ -51,7 +50,7 @@ var DatePicker = exports.DatePicker = /*#__PURE__*/(0, _react.forwardRef)(functi
|
|
|
51
50
|
onChange: onChangeDateHandler,
|
|
52
51
|
allowInvalidPreload: true
|
|
53
52
|
}, datePickerOptions);
|
|
54
|
-
var svgSize = size === '
|
|
53
|
+
var svgSize = size === 'xs' ? 14 : 16;
|
|
55
54
|
return (0, _jsxRuntime.jsxs)("div", __assign({
|
|
56
55
|
className: (0, _classnames.default)('ncua-date-picker', "ncua-date-picker--".concat(size), {
|
|
57
56
|
'ncua-date-picker--disabled': attrs.disabled
|
|
@@ -6,11 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.InputBase = void 0;
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
8
|
var _uiAdminIcon = _interopRequireDefault(require("@ncds/ui-admin-icon"));
|
|
9
|
-
var _react = require("react");
|
|
10
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
+
var _react = require("react");
|
|
11
11
|
var _color = require("../../../constant/color");
|
|
12
|
-
var _Label = require("../shared/label/Label");
|
|
13
12
|
var _HintText = require("../shared/hintText/HintText");
|
|
13
|
+
var _Label = require("../shared/label/Label");
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
16
16
|
__assign = Object.assign || function (t) {
|
|
@@ -32,15 +32,15 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
32
32
|
};
|
|
33
33
|
var validationSvgSize = {
|
|
34
34
|
xs: 14,
|
|
35
|
-
|
|
35
|
+
sm: 16
|
|
36
36
|
};
|
|
37
37
|
var generalSvgSize = {
|
|
38
38
|
xs: 14,
|
|
39
|
-
|
|
39
|
+
sm: 20
|
|
40
40
|
};
|
|
41
41
|
var InputBase = exports.InputBase = /*#__PURE__*/(0, _react.forwardRef)(function (_a, ref) {
|
|
42
42
|
var _b = _a.size,
|
|
43
|
-
size = _b === void 0 ? '
|
|
43
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
44
44
|
required = _a.required,
|
|
45
45
|
label = _a.label,
|
|
46
46
|
hintText = _a.hintText,
|
|
@@ -5,10 +5,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.PasswordInput = void 0;
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
-
var _react = require("react");
|
|
9
|
-
var _InputBase = require("./InputBase");
|
|
10
8
|
var _uiAdminIcon = require("@ncds/ui-admin-icon");
|
|
11
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
|
+
var _react = require("react");
|
|
11
|
+
var _InputBase = require("./InputBase");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
14
14
|
__assign = Object.assign || function (t) {
|
|
@@ -30,11 +30,11 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
30
30
|
};
|
|
31
31
|
var svgSize = {
|
|
32
32
|
xs: 14,
|
|
33
|
-
|
|
33
|
+
sm: 20
|
|
34
34
|
};
|
|
35
35
|
var PasswordInput = exports.PasswordInput = /*#__PURE__*/(0, _react.forwardRef)(function (_a, ref) {
|
|
36
36
|
var _b = _a.size,
|
|
37
|
-
size = _b === void 0 ? '
|
|
37
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
38
38
|
props = __rest(_a, ["size"]);
|
|
39
39
|
var inputRef = (0, _react.useRef)(null);
|
|
40
40
|
var _c = (0, _react.useState)(false),
|
|
@@ -7,8 +7,8 @@ exports.Textarea = void 0;
|
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
8
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
9
|
var _react = require("react");
|
|
10
|
-
var _Label = require("../shared/label/Label");
|
|
11
10
|
var _HintText = require("../shared/hintText/HintText");
|
|
11
|
+
var _Label = require("../shared/label/Label");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
14
14
|
__assign = Object.assign || function (t) {
|
|
@@ -32,7 +32,7 @@ var Textarea = exports.Textarea = /*#__PURE__*/(0, _react.forwardRef)(function (
|
|
|
32
32
|
var _b;
|
|
33
33
|
var className = _a.className,
|
|
34
34
|
_c = _a.size,
|
|
35
|
-
size = _c === void 0 ? '
|
|
35
|
+
size = _c === void 0 ? 'xs' : _c,
|
|
36
36
|
label = _a.label,
|
|
37
37
|
required = _a.required,
|
|
38
38
|
disabled = _a.disabled,
|
|
@@ -28,7 +28,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
28
28
|
};
|
|
29
29
|
var Radio = function (_a) {
|
|
30
30
|
var _b = _a.size,
|
|
31
|
-
size = _b === void 0 ? '
|
|
31
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
32
32
|
text = _a.text,
|
|
33
33
|
supportText = _a.supportText,
|
|
34
34
|
disabled = _a.disabled,
|
|
@@ -28,7 +28,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
28
28
|
};
|
|
29
29
|
var RadioInput = exports.RadioInput = /*#__PURE__*/(0, _react.forwardRef)(function (_a, ref) {
|
|
30
30
|
var _b = _a.size,
|
|
31
|
-
size = _b === void 0 ? '
|
|
31
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
32
32
|
disabled = _a.disabled,
|
|
33
33
|
className = _a.className,
|
|
34
34
|
_c = _a.destructive,
|
|
@@ -7,7 +7,6 @@ exports.HorizontalTab = void 0;
|
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
8
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
9
9
|
var _lodash = require("lodash");
|
|
10
|
-
require("swiper/css");
|
|
11
10
|
var _react = require("swiper/react");
|
|
12
11
|
var _TabButton = require("./TabButton");
|
|
13
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -24,13 +23,14 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
24
23
|
var HorizontalTab = function (_a) {
|
|
25
24
|
var _b = _a.type,
|
|
26
25
|
type = _b === void 0 ? 'button-primary' : _b,
|
|
27
|
-
|
|
26
|
+
_c = _a.size,
|
|
27
|
+
size = _c === void 0 ? 'sm' : _c,
|
|
28
28
|
activeTab = _a.activeTab,
|
|
29
29
|
onClick = _a.onClick,
|
|
30
|
-
|
|
31
|
-
fullWidth =
|
|
32
|
-
|
|
33
|
-
menus =
|
|
30
|
+
_d = _a.fullWidth,
|
|
31
|
+
fullWidth = _d === void 0 ? false : _d,
|
|
32
|
+
_e = _a.menus,
|
|
33
|
+
menus = _e === void 0 ? [] : _e;
|
|
34
34
|
var getTabGap = function (type) {
|
|
35
35
|
var _a;
|
|
36
36
|
var gap = {
|
|
@@ -29,7 +29,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
29
29
|
var TabButton = function (_a) {
|
|
30
30
|
var label = _a.label,
|
|
31
31
|
_b = _a.size,
|
|
32
|
-
size = _b === void 0 ? '
|
|
32
|
+
size = _b === void 0 ? 'sm' : _b,
|
|
33
33
|
tabButtonType = _a.tabButtonType,
|
|
34
34
|
type = _a.type,
|
|
35
35
|
_c = _a.isActive,
|
|
@@ -57,7 +57,7 @@ var VerticalTab = function (_a) {
|
|
|
57
57
|
badgeInfo: menu.badgeInfo,
|
|
58
58
|
isActive: isActive,
|
|
59
59
|
tabButtonType: type,
|
|
60
|
-
size: '
|
|
60
|
+
size: 'md',
|
|
61
61
|
onClick: function () {
|
|
62
62
|
var _a;
|
|
63
63
|
return onClick === null || onClick === void 0 ? void 0 : onClick((_a = menu.id) !== null && _a !== void 0 ? _a : '');
|
|
@@ -23,16 +23,16 @@ import React, { createElement } from 'react';
|
|
|
23
23
|
import { COLOR } from '../../../constant/color';
|
|
24
24
|
import { Dot } from '../dot';
|
|
25
25
|
var svgSize = {
|
|
26
|
-
|
|
26
|
+
xxs: 12,
|
|
27
|
+
xs: 16,
|
|
27
28
|
sm: 16,
|
|
28
|
-
md:
|
|
29
|
-
lg: 20
|
|
29
|
+
md: 20
|
|
30
30
|
};
|
|
31
31
|
var dotSize = {
|
|
32
|
+
xxs: 'sm',
|
|
32
33
|
xs: 'sm',
|
|
33
|
-
sm: '
|
|
34
|
-
md: 'md'
|
|
35
|
-
lg: 'md'
|
|
34
|
+
sm: 'md',
|
|
35
|
+
md: 'md'
|
|
36
36
|
};
|
|
37
37
|
export var ButtonGroup = function (_a) {
|
|
38
38
|
var children = _a.children,
|
|
@@ -40,7 +40,7 @@ export var ButtonGroup = function (_a) {
|
|
|
40
40
|
_b = _a.hasBorder,
|
|
41
41
|
hasBorder = _b === void 0 ? true : _b,
|
|
42
42
|
_c = _a.size,
|
|
43
|
-
size = _c === void 0 ? '
|
|
43
|
+
size = _c === void 0 ? 'xs' : _c,
|
|
44
44
|
_d = _a.onlyIcon,
|
|
45
45
|
onlyIcon = _d === void 0 ? false : _d,
|
|
46
46
|
_e = _a.disabled,
|
|
@@ -68,7 +68,7 @@ ButtonGroup.Item = function (_a) {
|
|
|
68
68
|
as = _c === void 0 ? 'button' : _c,
|
|
69
69
|
label = _a.label,
|
|
70
70
|
_d = _a.size,
|
|
71
|
-
size = _d === void 0 ? '
|
|
71
|
+
size = _d === void 0 ? 'xs' : _d,
|
|
72
72
|
onlyIcon = _a.onlyIcon,
|
|
73
73
|
icon = _a.icon,
|
|
74
74
|
disabled = _a.disabled,
|
|
@@ -21,7 +21,7 @@ import classNames from 'classnames';
|
|
|
21
21
|
import { CheckboxInput } from './CheckboxInput';
|
|
22
22
|
export var Checkbox = function (_a) {
|
|
23
23
|
var _b = _a.size,
|
|
24
|
-
size = _b === void 0 ? '
|
|
24
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
25
25
|
_c = _a.indeterminate,
|
|
26
26
|
indeterminate = _c === void 0 ? false : _c,
|
|
27
27
|
text = _a.text,
|
|
@@ -24,7 +24,7 @@ import { forwardRef } from 'react';
|
|
|
24
24
|
*/
|
|
25
25
|
export var CheckboxInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
26
26
|
var _b = _a.size,
|
|
27
|
-
size = _b === void 0 ? '
|
|
27
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
28
28
|
_c = _a.indeterminate,
|
|
29
29
|
indeterminate = _c === void 0 ? false : _c,
|
|
30
30
|
disabled = _a.disabled,
|
|
@@ -18,7 +18,6 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
18
18
|
};
|
|
19
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
20
|
import classNames from 'classnames';
|
|
21
|
-
import 'flatpickr/dist/flatpickr.css';
|
|
22
21
|
import { Korean } from 'flatpickr/dist/l10n/ko';
|
|
23
22
|
import { forwardRef } from 'react';
|
|
24
23
|
import Flatpickr from 'react-flatpickr';
|
|
@@ -28,7 +27,7 @@ export var DatePicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
28
27
|
shouldFocus = _b === void 0 ? true : _b,
|
|
29
28
|
currentDate = _a.currentDate,
|
|
30
29
|
_c = _a.size,
|
|
31
|
-
size = _c === void 0 ? '
|
|
30
|
+
size = _c === void 0 ? 'xs' : _c,
|
|
32
31
|
onChangeDate = _a.onChangeDate,
|
|
33
32
|
datePickerOptions = _a.datePickerOptions,
|
|
34
33
|
attrs = __rest(_a, ["shouldFocus", "currentDate", "size", "onChangeDate", "datePickerOptions"]);
|
|
@@ -44,7 +43,7 @@ export var DatePicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
44
43
|
onChange: onChangeDateHandler,
|
|
45
44
|
allowInvalidPreload: true
|
|
46
45
|
}, datePickerOptions);
|
|
47
|
-
var svgSize = size === '
|
|
46
|
+
var svgSize = size === 'xs' ? 14 : 16;
|
|
48
47
|
return _jsxs("div", __assign({
|
|
49
48
|
className: classNames('ncua-date-picker', "ncua-date-picker--".concat(size), {
|
|
50
49
|
'ncua-date-picker--disabled': attrs.disabled
|
|
@@ -18,22 +18,22 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
18
18
|
};
|
|
19
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
20
|
import Icon from '@ncds/ui-admin-icon';
|
|
21
|
-
import { forwardRef } from 'react';
|
|
22
21
|
import classNames from 'classnames';
|
|
22
|
+
import { forwardRef } from 'react';
|
|
23
23
|
import { COLOR } from '../../../constant/color';
|
|
24
|
-
import { Label } from '../shared/label/Label';
|
|
25
24
|
import { HintText } from '../shared/hintText/HintText';
|
|
25
|
+
import { Label } from '../shared/label/Label';
|
|
26
26
|
var validationSvgSize = {
|
|
27
27
|
xs: 14,
|
|
28
|
-
|
|
28
|
+
sm: 16
|
|
29
29
|
};
|
|
30
30
|
var generalSvgSize = {
|
|
31
31
|
xs: 14,
|
|
32
|
-
|
|
32
|
+
sm: 20
|
|
33
33
|
};
|
|
34
34
|
export var InputBase = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
35
35
|
var _b = _a.size,
|
|
36
|
-
size = _b === void 0 ? '
|
|
36
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
37
37
|
required = _a.required,
|
|
38
38
|
label = _a.label,
|
|
39
39
|
hintText = _a.hintText,
|
|
@@ -17,17 +17,17 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
17
17
|
return t;
|
|
18
18
|
};
|
|
19
19
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
21
|
-
import { InputBase } from './InputBase';
|
|
22
20
|
import { Eye, EyeOff } from '@ncds/ui-admin-icon';
|
|
23
21
|
import classNames from 'classnames';
|
|
22
|
+
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
23
|
+
import { InputBase } from './InputBase';
|
|
24
24
|
var svgSize = {
|
|
25
25
|
xs: 14,
|
|
26
|
-
|
|
26
|
+
sm: 20
|
|
27
27
|
};
|
|
28
28
|
export var PasswordInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
29
29
|
var _b = _a.size,
|
|
30
|
-
size = _b === void 0 ? '
|
|
30
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
31
31
|
props = __rest(_a, ["size"]);
|
|
32
32
|
var inputRef = useRef(null);
|
|
33
33
|
var _c = useState(false),
|
|
@@ -19,13 +19,13 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
19
19
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
20
|
import classNames from 'classnames';
|
|
21
21
|
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
22
|
-
import { Label } from '../shared/label/Label';
|
|
23
22
|
import { HintText } from '../shared/hintText/HintText';
|
|
23
|
+
import { Label } from '../shared/label/Label';
|
|
24
24
|
export var Textarea = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
25
25
|
var _b;
|
|
26
26
|
var className = _a.className,
|
|
27
27
|
_c = _a.size,
|
|
28
|
-
size = _c === void 0 ? '
|
|
28
|
+
size = _c === void 0 ? 'xs' : _c,
|
|
29
29
|
label = _a.label,
|
|
30
30
|
required = _a.required,
|
|
31
31
|
disabled = _a.disabled,
|
|
@@ -21,7 +21,7 @@ import classNames from 'classnames';
|
|
|
21
21
|
import { RadioInput } from './RadioInput';
|
|
22
22
|
export var Radio = function (_a) {
|
|
23
23
|
var _b = _a.size,
|
|
24
|
-
size = _b === void 0 ? '
|
|
24
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
25
25
|
text = _a.text,
|
|
26
26
|
supportText = _a.supportText,
|
|
27
27
|
disabled = _a.disabled,
|
|
@@ -21,7 +21,7 @@ import classNames from 'classnames';
|
|
|
21
21
|
import { forwardRef } from 'react';
|
|
22
22
|
export var RadioInput = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
23
23
|
var _b = _a.size,
|
|
24
|
-
size = _b === void 0 ? '
|
|
24
|
+
size = _b === void 0 ? 'xs' : _b,
|
|
25
25
|
disabled = _a.disabled,
|
|
26
26
|
className = _a.className,
|
|
27
27
|
_c = _a.destructive,
|
|
@@ -11,19 +11,19 @@ var __assign = this && this.__assign || function () {
|
|
|
11
11
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
12
12
|
import classNames from 'classnames';
|
|
13
13
|
import { uniqueId } from 'lodash';
|
|
14
|
-
import 'swiper/css';
|
|
15
14
|
import { Swiper, SwiperSlide } from 'swiper/react';
|
|
16
15
|
import { TabButton } from './TabButton';
|
|
17
16
|
export var HorizontalTab = function (_a) {
|
|
18
17
|
var _b = _a.type,
|
|
19
18
|
type = _b === void 0 ? 'button-primary' : _b,
|
|
20
|
-
|
|
19
|
+
_c = _a.size,
|
|
20
|
+
size = _c === void 0 ? 'sm' : _c,
|
|
21
21
|
activeTab = _a.activeTab,
|
|
22
22
|
onClick = _a.onClick,
|
|
23
|
-
|
|
24
|
-
fullWidth =
|
|
25
|
-
|
|
26
|
-
menus =
|
|
23
|
+
_d = _a.fullWidth,
|
|
24
|
+
fullWidth = _d === void 0 ? false : _d,
|
|
25
|
+
_e = _a.menus,
|
|
26
|
+
menus = _e === void 0 ? [] : _e;
|
|
27
27
|
var getTabGap = function (type) {
|
|
28
28
|
var _a;
|
|
29
29
|
var gap = {
|
|
@@ -22,7 +22,7 @@ import { Badge } from '../badge/Badge';
|
|
|
22
22
|
export var TabButton = function (_a) {
|
|
23
23
|
var label = _a.label,
|
|
24
24
|
_b = _a.size,
|
|
25
|
-
size = _b === void 0 ? '
|
|
25
|
+
size = _b === void 0 ? 'sm' : _b,
|
|
26
26
|
tabButtonType = _a.tabButtonType,
|
|
27
27
|
type = _a.type,
|
|
28
28
|
_c = _a.isActive,
|
|
@@ -50,7 +50,7 @@ export var VerticalTab = function (_a) {
|
|
|
50
50
|
badgeInfo: menu.badgeInfo,
|
|
51
51
|
isActive: isActive,
|
|
52
52
|
tabButtonType: type,
|
|
53
|
-
size: '
|
|
53
|
+
size: 'md',
|
|
54
54
|
onClick: function () {
|
|
55
55
|
var _a;
|
|
56
56
|
return onClick === null || onClick === void 0 ? void 0 : onClick((_a = menu.id) !== null && _a !== void 0 ? _a : '');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ComponentProps } from 'react';
|
|
2
2
|
import { Size } from '../../../constant/size';
|
|
3
3
|
import { SideSlotType } from '../../types/side-slot';
|
|
4
|
-
export type ButtonGroupSize = Extract<Size, '
|
|
4
|
+
export type ButtonGroupSize = Extract<Size, 'xxs' | 'xs' | 'sm' | 'md'>;
|
|
5
5
|
interface SideCommon {
|
|
6
6
|
position?: 'leading' | 'trailing';
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeEvent, ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { Size } from '../../../constant/size';
|
|
3
3
|
export interface CheckboxInputProps extends Omit<ComponentPropsWithRef<'input'>, 'size' | 'ref'> {
|
|
4
|
-
size?: Extract<Size, '
|
|
4
|
+
size?: Extract<Size, 'xs' | 'sm'>;
|
|
5
5
|
indeterminate?: boolean;
|
|
6
6
|
destructive?: boolean;
|
|
7
7
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import 'flatpickr/dist/flatpickr.css';
|
|
2
1
|
import { Options } from 'flatpickr/dist/types/options';
|
|
3
|
-
import {
|
|
2
|
+
import { DateTimePickerHandle, DateTimePickerProps } from 'react-flatpickr';
|
|
4
3
|
import { Size } from '../../../constant/size';
|
|
5
4
|
export type DatePickerProps = {
|
|
6
|
-
size?: Extract<Size, '
|
|
5
|
+
size?: Extract<Size, 'xs' | 'sm'>;
|
|
7
6
|
shouldFocus?: boolean;
|
|
8
7
|
currentDate: string;
|
|
9
8
|
datePickerOptions?: Options;
|
|
@@ -30,7 +30,7 @@ interface InputBaseCommonProps extends Omit<React.InputHTMLAttributes<HTMLInputE
|
|
|
30
30
|
required?: boolean;
|
|
31
31
|
label?: string;
|
|
32
32
|
hintText?: string;
|
|
33
|
-
size?: Extract<Size, 'xs' | '
|
|
33
|
+
size?: Extract<Size, 'xs' | 'sm'>;
|
|
34
34
|
disabled?: boolean;
|
|
35
35
|
validation?: boolean;
|
|
36
36
|
destructive?: boolean;
|
|
@@ -2,7 +2,7 @@ import { ComponentPropsWithRef } from 'react';
|
|
|
2
2
|
import { Size } from '../../../constant/size';
|
|
3
3
|
interface TextareaProps extends ComponentPropsWithRef<'textarea'> {
|
|
4
4
|
className?: string;
|
|
5
|
-
size?: Extract<Size, '
|
|
5
|
+
size?: Extract<Size, 'xs' | 'sm'>;
|
|
6
6
|
label?: string;
|
|
7
7
|
hintText?: string;
|
|
8
8
|
required?: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ChangeEvent, ComponentPropsWithRef } from 'react';
|
|
2
2
|
import { Size } from '../../../constant/size';
|
|
3
3
|
export interface RadioInputProps extends Omit<ComponentPropsWithRef<'input'>, 'size' | 'ref'> {
|
|
4
|
-
size?: Extract<Size, '
|
|
4
|
+
size?: Extract<Size, 'xs' | 'sm'>;
|
|
5
5
|
destructive?: boolean;
|
|
6
6
|
onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
7
7
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import { TabButtonProps, TabType } from './TabButton';
|
|
1
|
+
import { TabButtonProps, TabSize, TabType } from './TabButton';
|
|
3
2
|
export type HorizontalTabProps = {
|
|
4
3
|
type?: Exclude<TabType, 'line-vertical'>;
|
|
5
|
-
size?:
|
|
4
|
+
size?: TabSize;
|
|
6
5
|
activeTab?: string;
|
|
7
6
|
fullWidth?: boolean;
|
|
8
7
|
menus?: Array<TabButtonProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnchorHTMLAttributes, ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { BadgeProps } from '../badge/Badge';
|
|
3
|
-
export type TabSize = '
|
|
3
|
+
export type TabSize = 'sm' | 'md' | 'lg';
|
|
4
4
|
export type TabType = 'button-primary' | 'button-white' | 'underline' | 'underline-fill' | 'line-vertical';
|
|
5
5
|
interface CommonProps {
|
|
6
6
|
id?: string;
|