@ncds/ui-admin 1.2.1 → 1.3.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/assets/scripts/datePicker.js +2 -2
- package/dist/cjs/src/components/date-picker/RangeDatePicker.js +8 -4
- package/dist/cjs/src/components/date-picker/RangeDatePickerWithButtons.js +12 -11
- package/dist/cjs/src/components/select/Select.js +6 -17
- package/dist/esm/assets/scripts/datePicker.js +2 -2
- package/dist/esm/src/components/date-picker/RangeDatePicker.js +8 -4
- package/dist/esm/src/components/date-picker/RangeDatePickerWithButtons.js +8 -7
- package/dist/esm/src/components/select/Select.js +7 -18
- package/dist/types/assets/scripts/datePicker.d.ts +1 -1
- package/dist/types/src/components/date-picker/RangeDatePicker.d.ts +1 -0
- package/dist/types/src/components/date-picker/RangeDatePickerWithButtons.d.ts +3 -4
- package/dist/types/src/components/select/Select.d.ts +0 -8
- package/dist/ui-admin/assets/styles/style.css +12 -34
- package/package.json +2 -2
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.RangeDatePicker = void 0;
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
-
var _react = require("react");
|
|
9
8
|
var _moment = _interopRequireDefault(require("moment"));
|
|
9
|
+
var _react = require("react");
|
|
10
10
|
var _DatePicker = require("./DatePicker");
|
|
11
11
|
var _utils = require("./utils");
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -24,7 +24,9 @@ var RangeDatePicker = exports.RangeDatePicker = /*#__PURE__*/(0, _react.forwardR
|
|
|
24
24
|
var startDateOptions = _a.startDateOptions,
|
|
25
25
|
endDateOptions = _a.endDateOptions,
|
|
26
26
|
validationOption = _a.validationOption,
|
|
27
|
-
onDateValidation = _a.onDateValidation
|
|
27
|
+
onDateValidation = _a.onDateValidation,
|
|
28
|
+
_b = _a.size,
|
|
29
|
+
size = _b === void 0 ? 'xs' : _b;
|
|
28
30
|
var changeSettingDateAndAlert = (0, _react.useCallback)(function (type, isOverPeriod) {
|
|
29
31
|
if (isOverPeriod === void 0) {
|
|
30
32
|
isOverPeriod = false;
|
|
@@ -130,9 +132,11 @@ var RangeDatePicker = exports.RangeDatePicker = /*#__PURE__*/(0, _react.forwardR
|
|
|
130
132
|
ref: ref || undefined
|
|
131
133
|
}, {
|
|
132
134
|
children: [(0, _jsxRuntime.jsx)(_DatePicker.DatePicker, __assign({}, startDateOptions, {
|
|
133
|
-
ref: undefined
|
|
135
|
+
ref: undefined,
|
|
136
|
+
size: size
|
|
134
137
|
})), "-", (0, _jsxRuntime.jsx)(_DatePicker.DatePicker, __assign({}, endDateOptions, {
|
|
135
|
-
ref: undefined
|
|
138
|
+
ref: undefined,
|
|
139
|
+
size: size
|
|
136
140
|
}))]
|
|
137
141
|
}));
|
|
138
142
|
});
|
|
@@ -6,10 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.RangeDatePickerWithButtons = void 0;
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
8
|
var _react = require("react");
|
|
9
|
-
var
|
|
9
|
+
var _datePicker = require("../../constant/date-picker");
|
|
10
|
+
var _datePicker2 = require("../../utils/date-picker");
|
|
10
11
|
var _button = require("../button");
|
|
11
|
-
var
|
|
12
|
-
var _datePicker2 = require("../../constant/date-picker");
|
|
12
|
+
var _RangeDatePicker = require("./RangeDatePicker");
|
|
13
13
|
var __assign = void 0 && (void 0).__assign || function () {
|
|
14
14
|
__assign = Object.assign || function (t) {
|
|
15
15
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -22,9 +22,9 @@ var __assign = void 0 && (void 0).__assign || function () {
|
|
|
22
22
|
};
|
|
23
23
|
var RangeDatePickerWithButtons = function (_a) {
|
|
24
24
|
var _b = _a.fixedEndDate,
|
|
25
|
-
fixedEndDate = _b === void 0 ? (0,
|
|
26
|
-
_c = _a.
|
|
27
|
-
|
|
25
|
+
fixedEndDate = _b === void 0 ? (0, _datePicker2.getDateFormat)() : _b,
|
|
26
|
+
_c = _a.size,
|
|
27
|
+
size = _c === void 0 ? 'xs' : _c,
|
|
28
28
|
currentButtonId = _a.currentButtonId,
|
|
29
29
|
setCurrentButtonId = _a.setCurrentButtonId,
|
|
30
30
|
startDateOptions = _a.startDateOptions,
|
|
@@ -33,7 +33,7 @@ var RangeDatePickerWithButtons = function (_a) {
|
|
|
33
33
|
periodKeys = _a.periodKeys,
|
|
34
34
|
onDateValidation = _a.onDateValidation;
|
|
35
35
|
var setCalculatedDate = function () {
|
|
36
|
-
var currentPeriodItem =
|
|
36
|
+
var currentPeriodItem = _datePicker.PERIOD_ITEM[currentButtonId];
|
|
37
37
|
if (!currentPeriodItem) {
|
|
38
38
|
return;
|
|
39
39
|
}
|
|
@@ -42,7 +42,7 @@ var RangeDatePickerWithButtons = function (_a) {
|
|
|
42
42
|
endDateOptions.onChangeDate('');
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
var startDate = (0,
|
|
45
|
+
var startDate = (0, _datePicker2.getDateFormat)((0, _datePicker2.getSubtractDate)({
|
|
46
46
|
period: currentPeriodItem.period,
|
|
47
47
|
unit: currentPeriodItem.unit
|
|
48
48
|
}));
|
|
@@ -62,12 +62,12 @@ var RangeDatePickerWithButtons = function (_a) {
|
|
|
62
62
|
className: "ncua-range-date-picker-with-buttons"
|
|
63
63
|
}, {
|
|
64
64
|
children: [(0, _jsxRuntime.jsx)(_button.ButtonGroup, __assign({
|
|
65
|
-
size:
|
|
65
|
+
size: size
|
|
66
66
|
}, {
|
|
67
67
|
children: periodKeys.map(function (key) {
|
|
68
68
|
return (0, _jsxRuntime.jsx)(_button.ButtonGroup.Item, {
|
|
69
69
|
isCurrent: currentButtonId === key,
|
|
70
|
-
label:
|
|
70
|
+
label: _datePicker.PERIOD_ITEM[key].text,
|
|
71
71
|
onClick: function () {
|
|
72
72
|
return setCurrentButtonId(key);
|
|
73
73
|
}
|
|
@@ -85,7 +85,8 @@ var RangeDatePickerWithButtons = function (_a) {
|
|
|
85
85
|
}
|
|
86
86
|
}),
|
|
87
87
|
validationOption: validationOption,
|
|
88
|
-
onDateValidation: onDateValidation
|
|
88
|
+
onDateValidation: onDateValidation,
|
|
89
|
+
size: size
|
|
89
90
|
})]
|
|
90
91
|
}));
|
|
91
92
|
};
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.Select = void 0;
|
|
7
7
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
8
|
-
var _dynamic = _interopRequireDefault(require("@ncds/ui-admin-icon/dynamic"));
|
|
9
8
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
9
|
var _react = require("react");
|
|
11
10
|
var _HintText = require("../shared/hintText/HintText");
|
|
@@ -32,8 +31,7 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
32
31
|
* 현재 icon 속성은 현재 디자인 시스템에 존재하지 않으니 사용하지 않는 것을 권장합니다.
|
|
33
32
|
*/
|
|
34
33
|
var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (_a, ref) {
|
|
35
|
-
var
|
|
36
|
-
placeholder = _a.placeholder,
|
|
34
|
+
var placeholder = _a.placeholder,
|
|
37
35
|
_b = _a.disabledPlaceholder,
|
|
38
36
|
disabledPlaceholder = _b === void 0 ? false : _b,
|
|
39
37
|
id = _a.id,
|
|
@@ -49,26 +47,17 @@ var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (_a,
|
|
|
49
47
|
value = _a.value,
|
|
50
48
|
optionItems = _a.optionItems,
|
|
51
49
|
register = _a.register,
|
|
52
|
-
props = __rest(_a, ["
|
|
53
|
-
return (0, _jsxRuntime.jsxs)("
|
|
50
|
+
props = __rest(_a, ["placeholder", "disabledPlaceholder", "id", "className", "hintText", "children", "size", "type", "destructive", "value", "optionItems", "register"]);
|
|
51
|
+
return (0, _jsxRuntime.jsxs)("span", __assign({
|
|
54
52
|
className: (0, _classnames.default)('ncua-select', {
|
|
55
53
|
destructive: destructive,
|
|
56
54
|
'ncua-select--simple': type === 'simple'
|
|
57
55
|
}, className)
|
|
58
56
|
}, {
|
|
59
|
-
children: [(0, _jsxRuntime.
|
|
57
|
+
children: [(0, _jsxRuntime.jsx)("span", __assign({
|
|
60
58
|
className: (0, _classnames.default)('ncua-select__content', "ncua-select--".concat(size))
|
|
61
59
|
}, {
|
|
62
|
-
children:
|
|
63
|
-
className: "ncua-select__icon"
|
|
64
|
-
}, {
|
|
65
|
-
children: (0, _jsxRuntime.jsx)(_dynamic.default, {
|
|
66
|
-
name: icon.icon,
|
|
67
|
-
width: icon.size,
|
|
68
|
-
height: icon.size,
|
|
69
|
-
color: icon.color
|
|
70
|
-
})
|
|
71
|
-
})) : (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {}), (0, _jsxRuntime.jsxs)("select", __assign({
|
|
60
|
+
children: (0, _jsxRuntime.jsxs)("select", __assign({
|
|
72
61
|
value: value,
|
|
73
62
|
ref: ref,
|
|
74
63
|
id: id,
|
|
@@ -87,7 +76,7 @@ var Select = exports.Select = /*#__PURE__*/(0, _react.forwardRef)(function (_a,
|
|
|
87
76
|
children: item.label
|
|
88
77
|
}), "option-".concat(index));
|
|
89
78
|
}), children]
|
|
90
|
-
}))
|
|
79
|
+
}))
|
|
91
80
|
})), hintText && (0, _jsxRuntime.jsx)(_HintText.HintText, __assign({
|
|
92
81
|
destructive: destructive,
|
|
93
82
|
className: "ncua-hint-text"
|
|
@@ -9,15 +9,17 @@ var __assign = this && this.__assign || function () {
|
|
|
9
9
|
return __assign.apply(this, arguments);
|
|
10
10
|
};
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
|
-
import { useCallback, useEffect, forwardRef } from 'react';
|
|
13
12
|
import moment from 'moment';
|
|
13
|
+
import { forwardRef, useCallback, useEffect } from 'react';
|
|
14
14
|
import { DatePicker } from './DatePicker';
|
|
15
15
|
import { getDateFormat } from './utils';
|
|
16
16
|
export var RangeDatePicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
17
17
|
var startDateOptions = _a.startDateOptions,
|
|
18
18
|
endDateOptions = _a.endDateOptions,
|
|
19
19
|
validationOption = _a.validationOption,
|
|
20
|
-
onDateValidation = _a.onDateValidation
|
|
20
|
+
onDateValidation = _a.onDateValidation,
|
|
21
|
+
_b = _a.size,
|
|
22
|
+
size = _b === void 0 ? 'xs' : _b;
|
|
21
23
|
var changeSettingDateAndAlert = useCallback(function (type, isOverPeriod) {
|
|
22
24
|
if (isOverPeriod === void 0) {
|
|
23
25
|
isOverPeriod = false;
|
|
@@ -123,9 +125,11 @@ export var RangeDatePicker = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
123
125
|
ref: ref || undefined
|
|
124
126
|
}, {
|
|
125
127
|
children: [_jsx(DatePicker, __assign({}, startDateOptions, {
|
|
126
|
-
ref: undefined
|
|
128
|
+
ref: undefined,
|
|
129
|
+
size: size
|
|
127
130
|
})), "-", _jsx(DatePicker, __assign({}, endDateOptions, {
|
|
128
|
-
ref: undefined
|
|
131
|
+
ref: undefined,
|
|
132
|
+
size: size
|
|
129
133
|
}))]
|
|
130
134
|
}));
|
|
131
135
|
});
|
|
@@ -10,15 +10,15 @@ var __assign = this && this.__assign || function () {
|
|
|
10
10
|
};
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { useEffect } from 'react';
|
|
13
|
-
import { RangeDatePicker } from './RangeDatePicker';
|
|
14
|
-
import { ButtonGroup } from '../button';
|
|
15
|
-
import { getDateFormat, getSubtractDate } from '../../utils/date-picker';
|
|
16
13
|
import { PERIOD_ITEM } from '../../constant/date-picker';
|
|
14
|
+
import { getDateFormat, getSubtractDate } from '../../utils/date-picker';
|
|
15
|
+
import { ButtonGroup } from '../button';
|
|
16
|
+
import { RangeDatePicker } from './RangeDatePicker';
|
|
17
17
|
export var RangeDatePickerWithButtons = function (_a) {
|
|
18
18
|
var _b = _a.fixedEndDate,
|
|
19
19
|
fixedEndDate = _b === void 0 ? getDateFormat() : _b,
|
|
20
|
-
_c = _a.
|
|
21
|
-
|
|
20
|
+
_c = _a.size,
|
|
21
|
+
size = _c === void 0 ? 'xs' : _c,
|
|
22
22
|
currentButtonId = _a.currentButtonId,
|
|
23
23
|
setCurrentButtonId = _a.setCurrentButtonId,
|
|
24
24
|
startDateOptions = _a.startDateOptions,
|
|
@@ -56,7 +56,7 @@ export var RangeDatePickerWithButtons = function (_a) {
|
|
|
56
56
|
className: "ncua-range-date-picker-with-buttons"
|
|
57
57
|
}, {
|
|
58
58
|
children: [_jsx(ButtonGroup, __assign({
|
|
59
|
-
size:
|
|
59
|
+
size: size
|
|
60
60
|
}, {
|
|
61
61
|
children: periodKeys.map(function (key) {
|
|
62
62
|
return _jsx(ButtonGroup.Item, {
|
|
@@ -79,7 +79,8 @@ export var RangeDatePickerWithButtons = function (_a) {
|
|
|
79
79
|
}
|
|
80
80
|
}),
|
|
81
81
|
validationOption: validationOption,
|
|
82
|
-
onDateValidation: onDateValidation
|
|
82
|
+
onDateValidation: onDateValidation,
|
|
83
|
+
size: size
|
|
83
84
|
})]
|
|
84
85
|
}));
|
|
85
86
|
};
|
|
@@ -16,8 +16,7 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
16
16
|
}
|
|
17
17
|
return t;
|
|
18
18
|
};
|
|
19
|
-
import { jsx as _jsx,
|
|
20
|
-
import Icon from '@ncds/ui-admin-icon/dynamic';
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
20
|
import classNames from 'classnames';
|
|
22
21
|
import { forwardRef } from 'react';
|
|
23
22
|
import { HintText } from '../shared/hintText/HintText';
|
|
@@ -25,8 +24,7 @@ import { HintText } from '../shared/hintText/HintText';
|
|
|
25
24
|
* 현재 icon 속성은 현재 디자인 시스템에 존재하지 않으니 사용하지 않는 것을 권장합니다.
|
|
26
25
|
*/
|
|
27
26
|
export var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
28
|
-
var
|
|
29
|
-
placeholder = _a.placeholder,
|
|
27
|
+
var placeholder = _a.placeholder,
|
|
30
28
|
_b = _a.disabledPlaceholder,
|
|
31
29
|
disabledPlaceholder = _b === void 0 ? false : _b,
|
|
32
30
|
id = _a.id,
|
|
@@ -42,26 +40,17 @@ export var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
42
40
|
value = _a.value,
|
|
43
41
|
optionItems = _a.optionItems,
|
|
44
42
|
register = _a.register,
|
|
45
|
-
props = __rest(_a, ["
|
|
46
|
-
return _jsxs("
|
|
43
|
+
props = __rest(_a, ["placeholder", "disabledPlaceholder", "id", "className", "hintText", "children", "size", "type", "destructive", "value", "optionItems", "register"]);
|
|
44
|
+
return _jsxs("span", __assign({
|
|
47
45
|
className: classNames('ncua-select', {
|
|
48
46
|
destructive: destructive,
|
|
49
47
|
'ncua-select--simple': type === 'simple'
|
|
50
48
|
}, className)
|
|
51
49
|
}, {
|
|
52
|
-
children: [
|
|
50
|
+
children: [_jsx("span", __assign({
|
|
53
51
|
className: classNames('ncua-select__content', "ncua-select--".concat(size))
|
|
54
52
|
}, {
|
|
55
|
-
children:
|
|
56
|
-
className: "ncua-select__icon"
|
|
57
|
-
}, {
|
|
58
|
-
children: _jsx(Icon, {
|
|
59
|
-
name: icon.icon,
|
|
60
|
-
width: icon.size,
|
|
61
|
-
height: icon.size,
|
|
62
|
-
color: icon.color
|
|
63
|
-
})
|
|
64
|
-
})) : _jsx(_Fragment, {}), _jsxs("select", __assign({
|
|
53
|
+
children: _jsxs("select", __assign({
|
|
65
54
|
value: value,
|
|
66
55
|
ref: ref,
|
|
67
56
|
id: id,
|
|
@@ -80,7 +69,7 @@ export var Select = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
80
69
|
children: item.label
|
|
81
70
|
}), "option-".concat(index));
|
|
82
71
|
}), children]
|
|
83
|
-
}))
|
|
72
|
+
}))
|
|
84
73
|
})), hintText && _jsx(HintText, __assign({
|
|
85
74
|
destructive: destructive,
|
|
86
75
|
className: "ncua-hint-text"
|
|
@@ -19,6 +19,7 @@ export type RangeDatePickerProps = {
|
|
|
19
19
|
newDate: string;
|
|
20
20
|
currentDate: string;
|
|
21
21
|
}) => void;
|
|
22
|
+
size?: 'xs' | 'sm';
|
|
22
23
|
};
|
|
23
24
|
export declare const RangeDatePicker: import("react").ForwardRefExoticComponent<RangeDatePickerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
24
25
|
//# sourceMappingURL=RangeDatePicker.d.ts.map
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
-
import { RangeDatePickerProps } from './RangeDatePicker';
|
|
3
|
-
import { ButtonGroupSize } from '../button';
|
|
4
2
|
import { PERIOD_ITEM } from '../../constant/date-picker';
|
|
3
|
+
import { RangeDatePickerProps } from './RangeDatePicker';
|
|
5
4
|
export type PeriodKeyType = keyof typeof PERIOD_ITEM;
|
|
6
5
|
type RangeDatePickerWithButtonsProps = {
|
|
7
6
|
fixedEndDate?: string;
|
|
8
|
-
buttonGroupSize?: ButtonGroupSize;
|
|
9
7
|
currentButtonId: PeriodKeyType;
|
|
10
8
|
setCurrentButtonId: Dispatch<SetStateAction<PeriodKeyType>>;
|
|
11
9
|
periodKeys: PeriodKeyType[];
|
|
10
|
+
size?: 'xs' | 'sm';
|
|
12
11
|
} & RangeDatePickerProps;
|
|
13
|
-
export declare const RangeDatePickerWithButtons: ({ fixedEndDate,
|
|
12
|
+
export declare const RangeDatePickerWithButtons: ({ fixedEndDate, size, currentButtonId, setCurrentButtonId, startDateOptions, endDateOptions, validationOption, periodKeys, onDateValidation, }: RangeDatePickerWithButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
13
|
export {};
|
|
15
14
|
//# sourceMappingURL=RangeDatePickerWithButtons.d.ts.map
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IconName } from '@ncds/ui-admin-icon/dynamic';
|
|
2
|
-
import { COLOR } from '@ncds/ui-admin/constant/color';
|
|
3
1
|
import { Size } from '@ncds/ui/constant/size';
|
|
4
2
|
import { ComponentPropsWithRef, PropsWithChildren } from 'react';
|
|
5
3
|
import { UseFormRegisterReturn } from 'react-hook-form';
|
|
@@ -8,13 +6,7 @@ export type OptionType = {
|
|
|
8
6
|
id: string | number;
|
|
9
7
|
label: string;
|
|
10
8
|
};
|
|
11
|
-
type IconSlot = {
|
|
12
|
-
icon: IconName;
|
|
13
|
-
color?: keyof typeof COLOR;
|
|
14
|
-
size?: number;
|
|
15
|
-
};
|
|
16
9
|
export interface SelectProps extends PropsWithChildren<BaseSelectProps> {
|
|
17
|
-
icon?: IconSlot;
|
|
18
10
|
placeholder?: string;
|
|
19
11
|
disabledPlaceholder?: boolean;
|
|
20
12
|
hintText?: string;
|
|
@@ -2375,40 +2375,27 @@ button {
|
|
|
2375
2375
|
--select-simple-height-md: 22px;
|
|
2376
2376
|
}
|
|
2377
2377
|
|
|
2378
|
+
.ncua-select {
|
|
2379
|
+
--icon-size: 14px;
|
|
2380
|
+
}
|
|
2378
2381
|
.ncua-select__content {
|
|
2382
|
+
position: relative;
|
|
2379
2383
|
display: flex;
|
|
2380
2384
|
align-items: center;
|
|
2381
|
-
padding-inline-start: 14px;
|
|
2382
2385
|
border: 1px solid var(--gray-200);
|
|
2383
2386
|
background-color: var(--base-white);
|
|
2384
2387
|
overflow: hidden;
|
|
2385
|
-
position: relative;
|
|
2386
|
-
}
|
|
2387
|
-
.ncua-select__content::after {
|
|
2388
|
-
width: 14px;
|
|
2389
|
-
height: 14px;
|
|
2390
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%23757678' stroke-width='1.16667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
2391
|
-
content: "";
|
|
2392
|
-
transform: translateY(-50%);
|
|
2393
|
-
position: absolute;
|
|
2394
|
-
top: 50%;
|
|
2395
|
-
right: 10px;
|
|
2396
|
-
}
|
|
2397
|
-
.ncua-select__icon {
|
|
2398
|
-
margin-right: 8px;
|
|
2399
|
-
}
|
|
2400
|
-
.ncua-select__icon svg {
|
|
2401
|
-
display: block;
|
|
2402
2388
|
}
|
|
2403
|
-
.ncua-
|
|
2389
|
+
.ncua-select__tag {
|
|
2404
2390
|
-webkit-appearance: none;
|
|
2405
2391
|
appearance: none;
|
|
2406
2392
|
border: 0;
|
|
2407
2393
|
height: 100%;
|
|
2408
2394
|
flex: 1;
|
|
2409
|
-
background-color: transparent;
|
|
2410
2395
|
outline: none;
|
|
2411
2396
|
color: var(--gray-700);
|
|
2397
|
+
background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='%23757678' stroke-width='1.16667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;
|
|
2398
|
+
background-size: var(--icon-size) var(--icon-size);
|
|
2412
2399
|
}
|
|
2413
2400
|
.ncua-select__content:focus-within {
|
|
2414
2401
|
border-color: var(--gray-400);
|
|
@@ -2423,9 +2410,9 @@ button {
|
|
|
2423
2410
|
.ncua-select--xs {
|
|
2424
2411
|
height: var(--select-height-xs);
|
|
2425
2412
|
border-radius: 6px;
|
|
2426
|
-
padding-inline: 10px 28px;
|
|
2427
2413
|
}
|
|
2428
2414
|
.ncua-select--xs > .ncua-select__tag {
|
|
2415
|
+
padding-inline: 10px 28px;
|
|
2429
2416
|
font-size: var(--font-size-xs);
|
|
2430
2417
|
font-weight: var(--font-weights-commerce-sans-0);
|
|
2431
2418
|
line-height: var(--line-heights-xs);
|
|
@@ -2438,9 +2425,10 @@ button {
|
|
|
2438
2425
|
.ncua-select--sm {
|
|
2439
2426
|
height: var(--select-height-sm);
|
|
2440
2427
|
border-radius: 6px;
|
|
2441
|
-
|
|
2428
|
+
--icon-size: 16px;
|
|
2442
2429
|
}
|
|
2443
2430
|
.ncua-select--sm > .ncua-select__tag {
|
|
2431
|
+
padding-inline: 12px 30px;
|
|
2444
2432
|
font-size: var(--font-size-sm);
|
|
2445
2433
|
font-weight: var(--font-weights-commerce-sans-0);
|
|
2446
2434
|
line-height: var(--line-heights-sm);
|
|
@@ -2450,18 +2438,14 @@ button {
|
|
|
2450
2438
|
font-size: var(--font-size-xs);
|
|
2451
2439
|
line-height: var(--line-heights-xs);
|
|
2452
2440
|
}
|
|
2453
|
-
.ncua-select--sm.ncua-select__content::after {
|
|
2454
|
-
width: 16px;
|
|
2455
|
-
height: 16px;
|
|
2456
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23757678' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
2457
|
-
}
|
|
2458
2441
|
.ncua-select--md {
|
|
2459
2442
|
min-width: 132px;
|
|
2460
2443
|
height: var(--select-height-md);
|
|
2461
2444
|
border-radius: 8px;
|
|
2462
|
-
|
|
2445
|
+
--icon-size: 16px;
|
|
2463
2446
|
}
|
|
2464
2447
|
.ncua-select--md > .ncua-select__tag {
|
|
2448
|
+
padding-inline: 12px 30px;
|
|
2465
2449
|
font-size: var(--font-size-sm);
|
|
2466
2450
|
font-weight: var(--font-weights-commerce-sans-1);
|
|
2467
2451
|
line-height: var(--line-heights-sm);
|
|
@@ -2471,13 +2455,7 @@ button {
|
|
|
2471
2455
|
font-size: var(--font-size-xs);
|
|
2472
2456
|
line-height: var(--line-heights-xs);
|
|
2473
2457
|
}
|
|
2474
|
-
.ncua-select--md.ncua-select__content::after {
|
|
2475
|
-
width: 16px;
|
|
2476
|
-
height: 16px;
|
|
2477
|
-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23757678' stroke-width='1.33333' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
|
|
2478
|
-
}
|
|
2479
2458
|
.ncua-select--simple .ncua-select__content {
|
|
2480
|
-
padding-inline-start: 0;
|
|
2481
2459
|
border: 0;
|
|
2482
2460
|
background-color: transparent;
|
|
2483
2461
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ncds/ui-admin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "nhn-commerce의 어드민 디자인 시스템입니다.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"barrel": "node barrel.js",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"react-dom": "18.2.0",
|
|
102
102
|
"react-hook-form": "^7.46.2",
|
|
103
103
|
"react-scripts": "^5.0.1",
|
|
104
|
-
"sass": "^1.
|
|
104
|
+
"sass": "^1.86.3",
|
|
105
105
|
"sass-loader": "^13.3.2",
|
|
106
106
|
"style-loader": "^3.3.3",
|
|
107
107
|
"ts-loader": "^9.4.4",
|