@nurihaus/web-design-system 3.9.3 → 3.9.5
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/README.md +2 -0
- package/dist/.storybook/migration.d.ts +1 -0
- package/dist/.storybook/usage.d.ts +23 -0
- package/dist/agreement.js +1110 -0
- package/dist/ai/components.md +3506 -250
- package/dist/ai/motion.md +58 -6
- package/dist/ai/tokens.md +53 -25
- package/dist/alphabet-keypad.js +446 -0
- package/dist/asset.js +47 -5
- package/dist/avatar.js +50 -8
- package/dist/bar-chart.js +478 -0
- package/dist/board-row.js +379 -0
- package/dist/border.js +223 -0
- package/dist/bottom-cta.js +378 -0
- package/dist/bottom-info.js +253 -0
- package/dist/bottom-nav.js +12 -64
- package/dist/bottom-sheet.js +608 -0
- package/dist/check-box.js +29 -162
- package/dist/chip-group.js +2 -2
- package/dist/{chunk-5589.js → chunk-1657.js} +2 -34
- package/dist/{chunk-9387.js → chunk-1768.js} +2 -2
- package/dist/chunk-1983.js +37 -1
- package/dist/chunk-2046.js +73 -0
- package/dist/chunk-2060.js +34 -0
- package/dist/chunk-2308.js +184 -0
- package/dist/chunk-2777.js +1 -0
- package/dist/chunk-3091.js +54 -0
- package/dist/chunk-4109.js +115 -0
- package/dist/chunk-4205.js +47 -0
- package/dist/chunk-4324.js +109 -0
- package/dist/chunk-4328.js +69 -0
- package/dist/chunk-4558.js +5 -116
- package/dist/chunk-4917.js +1 -1
- package/dist/chunk-5670.js +1 -29
- package/dist/chunk-6096.js +183 -0
- package/dist/{chunk-8377.js → chunk-6149.js} +2 -36
- package/dist/chunk-6478.js +155 -0
- package/dist/chunk-6499.js +39 -0
- package/dist/chunk-6616.js +84 -0
- package/dist/chunk-674.js +133 -0
- package/dist/chunk-7024.js +152 -0
- package/dist/chunk-7232.js +122 -0
- package/dist/chunk-7298.js +1 -1
- package/dist/chunk-7589.js +40 -0
- package/dist/chunk-7593.js +85 -0
- package/dist/chunk-7653.js +16 -0
- package/dist/chunk-7737.js +21 -0
- package/dist/chunk-7739.js +1 -5
- package/dist/chunk-829.js +38 -0
- package/dist/chunk-8491.js +43 -0
- package/dist/chunk-8787.js +0 -180
- package/dist/chunk-8982.js +186 -0
- package/dist/chunk-910.js +1 -1
- package/dist/chunk-9497.js +11 -1
- package/dist/collapsible-menu.js +3 -3
- package/dist/components/agreement/agreement-props.d.ts +44 -0
- package/dist/components/agreement/agreement-type.d.ts +107 -0
- package/dist/components/agreement/agreement.d.ts +26 -0
- package/dist/components/agreement/agreement.stories.d.ts +72 -0
- package/dist/components/agreement/base-agreement.d.ts +40 -0
- package/dist/components/asset/asset-type.d.ts +34 -1
- package/dist/components/asset/asset.d.ts +4 -2
- package/dist/components/asset/asset.stories.d.ts +6 -0
- package/dist/components/asset/base-asset.d.ts +5 -1
- package/dist/components/bar-chart/bar-chart-fill.d.ts +6 -0
- package/dist/components/bar-chart/bar-chart-props.d.ts +17 -0
- package/dist/components/bar-chart/bar-chart-type.d.ts +52 -0
- package/dist/components/bar-chart/bar-chart.d.ts +4 -0
- package/dist/components/bar-chart/bar-chart.stories.d.ts +65 -0
- package/dist/components/bar-chart/base-bar-chart.d.ts +17 -0
- package/dist/components/board-row/base-board-row.d.ts +13 -0
- package/dist/components/board-row/board-row-props.d.ts +2 -0
- package/dist/components/board-row/board-row-type.d.ts +22 -0
- package/dist/components/board-row/board-row.d.ts +8 -0
- package/dist/components/board-row/board-row.stories.d.ts +32 -0
- package/dist/components/border/base-border.d.ts +4 -0
- package/dist/components/border/border-props.d.ts +10 -0
- package/dist/components/border/border-type.d.ts +7 -0
- package/dist/components/border/border.d.ts +5 -0
- package/dist/components/border/border.stories.d.ts +19 -0
- package/dist/components/bottom-bar/bottom-bar.stories.d.ts +5 -5
- package/dist/components/bottom-cta/base-bottom-cta.d.ts +4 -0
- package/dist/components/bottom-cta/bottom-cta-props.d.ts +10 -0
- package/dist/components/bottom-cta/bottom-cta-type.d.ts +39 -0
- package/dist/components/bottom-cta/bottom-cta.d.ts +35 -0
- package/dist/components/bottom-cta/bottom-cta.stories.d.ts +79 -0
- package/dist/components/bottom-info/base-bottom-info.d.ts +4 -0
- package/dist/components/bottom-info/bottom-info-props.d.ts +1 -0
- package/dist/components/bottom-info/bottom-info-type.d.ts +6 -0
- package/dist/components/bottom-info/bottom-info.d.ts +4 -0
- package/dist/components/bottom-info/bottom-info.stories.d.ts +22 -0
- package/dist/components/bottom-sheet/base-bottom-sheet.d.ts +17 -0
- package/dist/components/bottom-sheet/bottom-sheet-props.d.ts +1 -0
- package/dist/components/bottom-sheet/bottom-sheet-snap.d.ts +15 -0
- package/dist/components/bottom-sheet/bottom-sheet-type.d.ts +55 -0
- package/dist/components/bottom-sheet/bottom-sheet.d.ts +4 -0
- package/dist/components/bottom-sheet/bottom-sheet.stories.d.ts +47 -0
- package/dist/components/check-box/check-box-type.d.ts +3 -0
- package/dist/components/core/composer/index.d.ts +2 -0
- package/dist/components/elements/text/text-props.d.ts +1 -0
- package/dist/components/empty-state/empty-state-props.d.ts +5 -3
- package/dist/components/empty-state/empty-state-type.d.ts +17 -5
- package/dist/components/empty-state/empty-state.d.ts +8 -3
- package/dist/components/empty-state/empty-state.stories.d.ts +301 -9
- package/dist/components/grid-list/base-grid-list.d.ts +10 -0
- package/dist/components/grid-list/grid-list-props.d.ts +11 -0
- package/dist/components/grid-list/grid-list-type.d.ts +24 -0
- package/dist/components/grid-list/grid-list.d.ts +6 -0
- package/dist/components/grid-list/grid-list.stories.d.ts +30 -0
- package/dist/components/highlight/base-highlight.d.ts +14 -0
- package/dist/components/highlight/highlight-props.d.ts +2 -0
- package/dist/components/highlight/highlight-type.d.ts +42 -0
- package/dist/components/highlight/highlight.d.ts +4 -0
- package/dist/components/highlight/highlight.stories.d.ts +31 -0
- package/dist/components/icon/icon-paths.d.ts +16 -0
- package/dist/components/icon/icon.stories.d.ts +1 -1
- package/dist/components/icon-button/icon-button-type.d.ts +2 -0
- package/dist/components/icon-button/icon-button.stories.d.ts +2 -0
- package/dist/components/keypad/alphabet-keypad.d.ts +4 -0
- package/dist/components/keypad/alphabet-keypad.stories.d.ts +24 -0
- package/dist/components/keypad/base-keypad.d.ts +6 -0
- package/dist/components/keypad/full-secure-keypad.d.ts +4 -0
- package/dist/components/keypad/full-secure-keypad.stories.d.ts +26 -0
- package/dist/components/keypad/keypad-layout.d.ts +16 -0
- package/dist/components/keypad/keypad-props.d.ts +16 -0
- package/dist/components/keypad/keypad-type.d.ts +66 -0
- package/dist/components/keypad/number-keypad.d.ts +4 -0
- package/dist/components/keypad/number-keypad.stories.d.ts +26 -0
- package/dist/components/keypad/use-keypad-decoys.d.ts +10 -0
- package/dist/components/list/base-list.d.ts +3 -0
- package/dist/components/list/list-footer.d.ts +5 -0
- package/dist/components/list/list-footer.stories.d.ts +304 -0
- package/dist/components/list/list-group.d.ts +1 -1
- package/dist/components/list/list-group.stories.d.ts +2 -0
- package/dist/components/list/list-header.d.ts +5 -0
- package/dist/components/list/list-header.stories.d.ts +302 -0
- package/dist/components/list/list-props.d.ts +33 -1
- package/dist/components/list/list-row.d.ts +5 -4
- package/dist/components/list/list-row.stories.d.ts +22 -8
- package/dist/components/list/list-type.d.ts +44 -2
- package/dist/components/logging/logging-type.d.ts +1 -1
- package/dist/components/menu/base-menu.d.ts +21 -0
- package/dist/components/menu/menu-props.d.ts +2 -0
- package/dist/components/menu/menu-type.d.ts +70 -0
- package/dist/components/menu/menu.d.ts +8 -0
- package/dist/components/menu/menu.stories.d.ts +54 -0
- package/dist/components/message/message.stories.d.ts +9 -9
- package/dist/components/notice/notice.stories.d.ts +6 -6
- package/dist/components/numeric-spinner/base-numeric-spinner.d.ts +8 -0
- package/dist/components/numeric-spinner/numeric-spinner-props.d.ts +5 -0
- package/dist/components/numeric-spinner/numeric-spinner-type.d.ts +29 -0
- package/dist/components/numeric-spinner/numeric-spinner.d.ts +4 -0
- package/dist/components/numeric-spinner/numeric-spinner.stories.d.ts +36 -0
- package/dist/components/overlay/overlay-context.d.ts +10 -0
- package/dist/components/overlay/overlay-provider.d.ts +1 -1
- package/dist/components/overlay/overlay-type.d.ts +23 -0
- package/dist/components/overlay/overlay.d.ts +2 -1
- package/dist/components/overlay/overlay.stories.d.ts +3 -1
- package/dist/components/overlay/use-bottom-sheet.d.ts +3 -0
- package/dist/components/paragraph/base-paragraph.d.ts +14 -0
- package/dist/components/paragraph/paragraph-props.d.ts +25 -0
- package/dist/components/paragraph/paragraph-type.d.ts +33 -0
- package/dist/components/paragraph/paragraph.d.ts +9 -0
- package/dist/components/paragraph/paragraph.stories.d.ts +54 -0
- package/dist/components/post/base-post.d.ts +19 -0
- package/dist/components/post/post-props.d.ts +31 -0
- package/dist/components/post/post-type.d.ts +34 -0
- package/dist/components/post/post.d.ts +16 -0
- package/dist/components/post/post.stories.d.ts +35 -0
- package/dist/components/rating/base-rating.d.ts +11 -0
- package/dist/components/rating/rating-props.d.ts +11 -0
- package/dist/components/rating/rating-type.d.ts +46 -0
- package/dist/components/rating/rating.d.ts +4 -0
- package/dist/components/rating/rating.stories.d.ts +35 -0
- package/dist/components/search-field/base-search-field.d.ts +4 -0
- package/dist/components/search-field/search-field-props.d.ts +2 -0
- package/dist/components/search-field/search-field-type.d.ts +25 -0
- package/dist/components/search-field/search-field.d.ts +8 -0
- package/dist/components/search-field/search-field.stories.d.ts +39 -0
- package/dist/components/segmented-control/base-segmented-control.d.ts +8 -0
- package/dist/components/segmented-control/segmented-control-props.d.ts +5 -0
- package/dist/components/segmented-control/segmented-control-type.d.ts +31 -0
- package/dist/components/segmented-control/segmented-control.d.ts +4 -0
- package/dist/components/segmented-control/segmented-control.stories.d.ts +39 -0
- package/dist/components/skeleton/skeleton-group.stories.d.ts +1 -1
- package/dist/components/skeleton/skeleton.stories.d.ts +6 -6
- package/dist/components/slider/base-slider.d.ts +13 -0
- package/dist/components/slider/slider-props.d.ts +10 -0
- package/dist/components/slider/slider-type.d.ts +46 -0
- package/dist/components/slider/slider.d.ts +4 -0
- package/dist/components/slider/slider.stories.d.ts +38 -0
- package/dist/components/split-text-field/base-split-text-field.d.ts +4 -0
- package/dist/components/split-text-field/split-text-field-props.d.ts +23 -0
- package/dist/components/split-text-field/split-text-field-type.d.ts +46 -0
- package/dist/components/split-text-field/split-text-field.d.ts +7 -0
- package/dist/components/split-text-field/split-text-field.stories.d.ts +38 -0
- package/dist/components/table-row/base-table-row.d.ts +4 -0
- package/dist/components/table-row/table-row-props.d.ts +14 -0
- package/dist/components/table-row/table-row-type.d.ts +13 -0
- package/dist/components/table-row/table-row.d.ts +5 -0
- package/dist/components/table-row/table-row.stories.d.ts +24 -0
- package/dist/components/text-area/text-area-type.d.ts +3 -2
- package/dist/components/text-button/base-text-button.d.ts +3 -0
- package/dist/components/text-button/text-button-props.d.ts +19 -0
- package/dist/components/text-button/text-button-type.d.ts +17 -0
- package/dist/components/text-button/text-button.d.ts +5 -0
- package/dist/components/text-button/text-button.stories.d.ts +47 -0
- package/dist/components/text-field/text-field-type.d.ts +5 -3
- package/dist/components/toast/toast.stories.d.ts +5 -5
- package/dist/components/top/base-top.d.ts +4 -0
- package/dist/components/top/top-props.d.ts +12 -0
- package/dist/components/top/top-type.d.ts +20 -0
- package/dist/components/top/top.d.ts +5 -0
- package/dist/components/top/top.stories.d.ts +320 -0
- package/dist/components.css +2221 -116
- package/dist/cta-button.js +11 -9
- package/dist/drawer.js +18 -113
- package/dist/drop-down.js +4 -4
- package/dist/empty-state.js +16 -7
- package/dist/full-secure-keypad.js +524 -0
- package/dist/grid-list.js +378 -0
- package/dist/helpers/hooks/useIndicatorPosition.d.ts +7 -0
- package/dist/helpers/hooks/useKeyboardInset.d.ts +5 -0
- package/dist/helpers/hooks/useScrollStart.d.ts +9 -0
- package/dist/helpers/motion/use-reveal-children.d.ts +6 -0
- package/dist/helpers/types/propsDef.d.ts +4 -2
- package/dist/highlight.js +492 -0
- package/dist/icon-button.js +53 -96
- package/dist/icon-text-badge.js +5 -3
- package/dist/icon-text-option-badge.js +4 -2
- package/dist/index.d.ts +52 -4
- package/dist/index.js +11271 -4671
- package/dist/list-footer.js +339 -0
- package/dist/list-group.js +61 -18
- package/dist/list-header.js +293 -0
- package/dist/list-row.js +243 -26
- package/dist/loading.js +7 -5
- package/dist/media-thumbnail.js +6 -6
- package/dist/menu.js +527 -0
- package/dist/message-composer.js +2 -2
- package/dist/modal-with-double-button.js +17 -13
- package/dist/modal.js +9 -7
- package/dist/notice.js +14 -12
- package/dist/number-keypad.js +436 -0
- package/dist/numeric-spinner.js +396 -0
- package/dist/option-badge.js +5 -3
- package/dist/overlay.js +555 -21
- package/dist/pagination.js +2 -2
- package/dist/paragraph.js +286 -0
- package/dist/post.js +568 -0
- package/dist/radio.js +5 -3
- package/dist/rating.js +437 -0
- package/dist/scripts/usage-doc.d.mts +83 -0
- package/dist/search-field.js +523 -0
- package/dist/segmented-control.js +409 -0
- package/dist/skeleton-group.js +28 -151
- package/dist/skeleton.js +3 -1
- package/dist/slider.js +419 -0
- package/dist/split-text-field.js +498 -0
- package/dist/styles.css +1926 -159
- package/dist/switch.js +5 -3
- package/dist/table-row.js +284 -0
- package/dist/tabs.js +13 -69
- package/dist/text-area.js +26 -15
- package/dist/text-button.js +357 -0
- package/dist/text-field.js +56 -206
- package/dist/text.js +5 -7
- package/dist/toast.js +15 -13
- package/dist/tokens.css +66 -10
- package/dist/tooltip.js +2 -2
- package/dist/top.js +312 -0
- package/package.json +107 -2
- package/dist/chunk-3839.js +0 -54
package/dist/text-field.js
CHANGED
|
@@ -3,32 +3,21 @@ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
4
4
|
/******/ var __webpack_modules__ = ({
|
|
5
5
|
|
|
6
|
-
/***/
|
|
6
|
+
/***/ 8629
|
|
7
7
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
// EXTERNAL MODULE: ./helpers/hooks/useTrack.ts
|
|
22
|
-
var useTrack = __nuri_require__(4560);
|
|
23
|
-
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
24
|
-
var classNames = __nuri_require__(3274);
|
|
25
|
-
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
26
|
-
var getMergedProps = __nuri_require__(7335);
|
|
27
|
-
// EXTERNAL MODULE: ./components/icon/icon.tsx
|
|
28
|
-
var icon = __nuri_require__(3547);
|
|
29
|
-
// EXTERNAL MODULE: ./components/elements/text/text.tsx
|
|
30
|
-
var text_text = __nuri_require__(7739);
|
|
31
|
-
;// ./components/text-field/base-text-field.tsx
|
|
9
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
|
|
14
|
+
/* harmony import */ var _helpers_hooks_useFieldClear__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(7302);
|
|
15
|
+
/* harmony import */ var _helpers_hooks_useTrack__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(4560);
|
|
16
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(3274);
|
|
17
|
+
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(7335);
|
|
18
|
+
/* harmony import */ var _icon_icon__WEBPACK_IMPORTED_MODULE_6__ = __nuri_require__(3547);
|
|
19
|
+
/* harmony import */ var _base_text_field__WEBPACK_IMPORTED_MODULE_7__ = __nuri_require__(4709);
|
|
20
|
+
/* harmony import */ var _text_field_props__WEBPACK_IMPORTED_MODULE_8__ = __nuri_require__(244);
|
|
32
21
|
var __assign = undefined && undefined.__assign || function () {
|
|
33
22
|
__assign = Object.assign || function (t) {
|
|
34
23
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -51,163 +40,13 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
51
40
|
|
|
52
41
|
|
|
53
42
|
|
|
54
|
-
var identity = function identity(text) {
|
|
55
|
-
return text;
|
|
56
|
-
};
|
|
57
|
-
var TextFieldContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createContext)({
|
|
58
|
-
display: '',
|
|
59
|
-
onChange: function onChange() {}
|
|
60
|
-
});
|
|
61
|
-
// context 만 내려주고 DOM 을 그리지 않아 ref 를 받을 곳이 없다.
|
|
62
|
-
var TextFieldRootBase = function TextFieldRootBase(props) {
|
|
63
|
-
var _a, _b;
|
|
64
|
-
var children = props.children,
|
|
65
|
-
value = props.value,
|
|
66
|
-
format = props.format,
|
|
67
|
-
onChange = props.onChange;
|
|
68
|
-
var transform = (_a = format === null || format === void 0 ? void 0 : format.transform) !== null && _a !== void 0 ? _a : identity;
|
|
69
|
-
var reset = (_b = format === null || format === void 0 ? void 0 : format.reset) !== null && _b !== void 0 ? _b : identity;
|
|
70
|
-
var handleChange = function handleChange(e) {
|
|
71
|
-
var raw = reset(e.target.value);
|
|
72
|
-
// DOM 값을 raw 로 맞춰야 받는 쪽이 raw 를 읽고, React 가 다음 렌더에서 transform(raw) 로 다시 그린다
|
|
73
|
-
if (raw !== e.target.value) e.target.value = raw;
|
|
74
|
-
onChange(e);
|
|
75
|
-
};
|
|
76
|
-
return (0,jsx_runtime_.jsx)(TextFieldContext.Provider, {
|
|
77
|
-
value: {
|
|
78
|
-
display: transform(value),
|
|
79
|
-
onChange: handleChange
|
|
80
|
-
},
|
|
81
|
-
children: children
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
TextFieldRootBase.displayName = 'TextFieldRoot';
|
|
85
|
-
var TextFieldLabel = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
86
|
-
var text = props.text,
|
|
87
|
-
className = props.className;
|
|
88
|
-
return typeof text === 'string' ? (0,jsx_runtime_.jsx)(text_text/* default */.A, {
|
|
89
|
-
ref: ref,
|
|
90
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-text-field label', className),
|
|
91
|
-
text: text,
|
|
92
|
-
size: 'sm',
|
|
93
|
-
weight: 'bold'
|
|
94
|
-
}) : text;
|
|
95
|
-
});
|
|
96
|
-
TextFieldLabel.displayName = 'TextFieldLabel';
|
|
97
|
-
var TextFieldInput = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
98
|
-
var className = props.className,
|
|
99
|
-
disabled = props.disabled,
|
|
100
|
-
restProps = __rest(props, ["className", "disabled"]);
|
|
101
|
-
var _a = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useContext)(TextFieldContext),
|
|
102
|
-
display = _a.display,
|
|
103
|
-
onChange = _a.onChange;
|
|
104
|
-
return (0,jsx_runtime_.jsx)("input", __assign({
|
|
105
|
-
ref: ref,
|
|
106
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-text-field input', className),
|
|
107
|
-
disabled: disabled,
|
|
108
|
-
"data-disabled": disabled
|
|
109
|
-
}, restProps, {
|
|
110
|
-
// 값은 Root 가 쥔다. 넘겨받은 value·onChange 가 Root 상태를 덮지 않게 spread 뒤에 둔다.
|
|
111
|
-
value: display,
|
|
112
|
-
onChange: onChange
|
|
113
|
-
}));
|
|
114
|
-
});
|
|
115
|
-
TextFieldInput.displayName = 'TextFieldInput';
|
|
116
|
-
var TextFieldPrefix = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
117
|
-
var className = props.className,
|
|
118
|
-
restProps = __rest(props, ["className"]);
|
|
119
|
-
return (0,jsx_runtime_.jsx)("span", __assign({
|
|
120
|
-
ref: ref,
|
|
121
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-text-field prefix', className)
|
|
122
|
-
}, restProps));
|
|
123
|
-
});
|
|
124
|
-
TextFieldPrefix.displayName = 'TextFieldPrefix';
|
|
125
|
-
var TextFieldSuffix = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
126
|
-
var className = props.className,
|
|
127
|
-
restProps = __rest(props, ["className"]);
|
|
128
|
-
return (0,jsx_runtime_.jsx)("span", __assign({
|
|
129
|
-
ref: ref,
|
|
130
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-text-field suffix', className)
|
|
131
|
-
}, restProps));
|
|
132
|
-
});
|
|
133
|
-
TextFieldSuffix.displayName = 'TextFieldSuffix';
|
|
134
|
-
var TextFieldAction = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
135
|
-
var className = props.className,
|
|
136
|
-
_onMouseDown = props.onMouseDown,
|
|
137
|
-
restProps = __rest(props, ["className", "onMouseDown"]);
|
|
138
|
-
return (0,jsx_runtime_.jsx)("button", __assign({
|
|
139
|
-
ref: ref,
|
|
140
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-text-field action', className),
|
|
141
|
-
type: 'button'
|
|
142
|
-
}, restProps, {
|
|
143
|
-
// 눌러도 포커스가 input 에 남아야 자판이 닫히지 않는다. 넘겨받은 onMouseDown 이 덮지 않게 spread 뒤에 둔다.
|
|
144
|
-
onMouseDown: function onMouseDown(e) {
|
|
145
|
-
e.preventDefault();
|
|
146
|
-
_onMouseDown === null || _onMouseDown === void 0 ? void 0 : _onMouseDown(e);
|
|
147
|
-
}
|
|
148
|
-
}));
|
|
149
|
-
});
|
|
150
|
-
TextFieldAction.displayName = 'TextFieldAction';
|
|
151
|
-
var TextFieldHelperText = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
152
|
-
var text = props.text,
|
|
153
|
-
className = props.className;
|
|
154
|
-
return typeof text === 'string' ? (0,jsx_runtime_.jsx)(text_text/* default */.A, {
|
|
155
|
-
ref: ref,
|
|
156
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-text-field helper-text', className),
|
|
157
|
-
text: text,
|
|
158
|
-
size: 'sm',
|
|
159
|
-
weight: 'regular'
|
|
160
|
-
}) : text;
|
|
161
|
-
});
|
|
162
|
-
TextFieldHelperText.displayName = 'TextFieldHelperText';
|
|
163
|
-
var TextFieldRoot = Object.assign(TextFieldRootBase, {
|
|
164
|
-
Label: TextFieldLabel,
|
|
165
|
-
Input: TextFieldInput,
|
|
166
|
-
Prefix: TextFieldPrefix,
|
|
167
|
-
Suffix: TextFieldSuffix,
|
|
168
|
-
Action: TextFieldAction,
|
|
169
|
-
HelperText: TextFieldHelperText
|
|
170
|
-
});
|
|
171
|
-
/* harmony default export */ const base_text_field = (TextFieldRoot);
|
|
172
|
-
// EXTERNAL MODULE: ./helpers/props/common-props.ts
|
|
173
|
-
var common_props = __nuri_require__(7298);
|
|
174
|
-
;// ./components/text-field/text-field-props.ts
|
|
175
|
-
|
|
176
|
-
var sizes = ['xs', 's', 'm', 'l', 'xl'];
|
|
177
|
-
var textFieldProps = {
|
|
178
|
-
size: (0,common_props/* sizeProp */.lw)(sizes, 's'),
|
|
179
|
-
width: (0,common_props/* widthProp */.Iw)('100%')
|
|
180
|
-
};
|
|
181
|
-
;// ./components/text-field/text-field.tsx
|
|
182
|
-
var text_field_assign = undefined && undefined.__assign || function () {
|
|
183
|
-
text_field_assign = Object.assign || function (t) {
|
|
184
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
185
|
-
s = arguments[i];
|
|
186
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
187
|
-
}
|
|
188
|
-
return t;
|
|
189
|
-
};
|
|
190
|
-
return text_field_assign.apply(this, arguments);
|
|
191
|
-
};
|
|
192
|
-
var text_field_rest = undefined && undefined.__rest || function (s, e) {
|
|
193
|
-
var t = {};
|
|
194
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
195
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
196
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
197
|
-
}
|
|
198
|
-
return t;
|
|
199
|
-
};
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
43
|
|
|
205
44
|
|
|
206
45
|
|
|
207
46
|
|
|
208
47
|
|
|
209
|
-
var TextField = /*#__PURE__*/(0,
|
|
210
|
-
var _a = (0,
|
|
48
|
+
var TextField = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
49
|
+
var _a = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_5__/* .getMergedProps */ .p)(props, _text_field_props__WEBPACK_IMPORTED_MODULE_8__/* .textFieldProps */ .g),
|
|
211
50
|
className = _a.className,
|
|
212
51
|
style = _a.style,
|
|
213
52
|
leftIcon = _a.leftIcon,
|
|
@@ -232,25 +71,25 @@ var TextField = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_rea
|
|
|
232
71
|
_onBlur = _a.onBlur,
|
|
233
72
|
track = _a.track,
|
|
234
73
|
trackProps = _a.trackProps,
|
|
235
|
-
restProps =
|
|
236
|
-
var emit = (0,
|
|
74
|
+
restProps = __rest(_a, ["className", "style", "leftIcon", "rightIcon", "prefix", "suffix", "format", "clearable", "onClear", "passwordToggle", "onVisibilityChange", "title", "value", "onChange", "defaultValue", "helperText", "isError", "type", "disabled", "readOnly", "onFocus", "onBlur", "track", "trackProps"]);
|
|
75
|
+
var emit = (0,_helpers_hooks_useTrack__WEBPACK_IMPORTED_MODULE_3__/* .useTrack */ .n)('TextField', {
|
|
237
76
|
track: track,
|
|
238
77
|
trackProps: trackProps
|
|
239
78
|
});
|
|
240
|
-
var focusedValueRef = (0,
|
|
241
|
-
var _b = (0,
|
|
79
|
+
var focusedValueRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)('');
|
|
80
|
+
var _b = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : ''),
|
|
242
81
|
innerValue = _b[0],
|
|
243
82
|
setInnerValue = _b[1];
|
|
244
83
|
var raw = value !== null && value !== void 0 ? value : innerValue;
|
|
245
|
-
var _c = (0,
|
|
84
|
+
var _c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
|
246
85
|
passwordVisible = _c[0],
|
|
247
86
|
setPasswordVisible = _c[1];
|
|
248
|
-
var _d = (0,
|
|
87
|
+
var _d = (0,_helpers_hooks_useFieldClear__WEBPACK_IMPORTED_MODULE_2__/* .useFieldClear */ .h)(onClear),
|
|
249
88
|
fieldRef = _d.fieldRef,
|
|
250
89
|
engaged = _d.engaged,
|
|
251
90
|
wrapperProps = _d.wrapperProps,
|
|
252
91
|
clearProps = _d.clearProps;
|
|
253
|
-
(0,
|
|
92
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle)(ref, function () {
|
|
254
93
|
return fieldRef.current;
|
|
255
94
|
});
|
|
256
95
|
var handleChange = function handleChange(e) {
|
|
@@ -261,10 +100,10 @@ var TextField = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_rea
|
|
|
261
100
|
var hasPasswordToggle = passwordToggle && type === 'password';
|
|
262
101
|
var actions = [];
|
|
263
102
|
if (showClear) {
|
|
264
|
-
actions.push(
|
|
103
|
+
actions.push(__assign({
|
|
265
104
|
id: 'clear',
|
|
266
105
|
'aria-label': '입력 지우기',
|
|
267
|
-
children: (0,
|
|
106
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_icon_icon__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, {
|
|
268
107
|
name: 'x',
|
|
269
108
|
size: 's'
|
|
270
109
|
})
|
|
@@ -276,7 +115,7 @@ var TextField = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_rea
|
|
|
276
115
|
'aria-label': passwordVisible ? '비밀번호 숨기기' : '비밀번호 보기',
|
|
277
116
|
'aria-pressed': passwordVisible,
|
|
278
117
|
disabled: disabled,
|
|
279
|
-
children: (0,
|
|
118
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_icon_icon__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, {
|
|
280
119
|
name: 'eye',
|
|
281
120
|
size: 's',
|
|
282
121
|
weight: passwordVisible ? 'fill' : 'regular'
|
|
@@ -287,55 +126,62 @@ var TextField = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_rea
|
|
|
287
126
|
}
|
|
288
127
|
});
|
|
289
128
|
}
|
|
290
|
-
return (0,
|
|
291
|
-
value:
|
|
129
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A, {
|
|
130
|
+
value: value,
|
|
131
|
+
defaultValue: defaultValue,
|
|
292
132
|
format: format,
|
|
293
133
|
onChange: handleChange,
|
|
294
|
-
children: (0,
|
|
134
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
|
|
295
135
|
className: 'text-field',
|
|
296
|
-
children: [title && (0,
|
|
136
|
+
children: [title && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Label, {
|
|
297
137
|
className: 'text-field-title',
|
|
298
138
|
text: title
|
|
299
|
-
}), (0,
|
|
300
|
-
className: (0,
|
|
139
|
+
}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", __assign({
|
|
140
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__/* .classNames */ .x)('nuri-theme text-field-input-wrapper', isError && 'error', className),
|
|
301
141
|
style: style
|
|
302
142
|
}, wrapperProps, {
|
|
303
|
-
children: [leftIcon, prefix != null && (0,
|
|
143
|
+
children: [leftIcon, prefix != null && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Prefix, {
|
|
304
144
|
className: 'text-field-prefix',
|
|
305
145
|
children: prefix
|
|
306
|
-
}), (0,
|
|
146
|
+
}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Input, __assign({
|
|
307
147
|
ref: fieldRef,
|
|
308
148
|
type: hasPasswordToggle && passwordVisible ? 'text' : type,
|
|
309
149
|
disabled: disabled,
|
|
310
150
|
readOnly: readOnly,
|
|
311
151
|
"aria-invalid": isError || undefined,
|
|
312
152
|
onFocus: function onFocus(e) {
|
|
313
|
-
|
|
153
|
+
// uncontrolled 면 ref 로 바뀐 값(react-hook-form)을 여기서 읽어 지우기 버튼에 맞춘다
|
|
154
|
+
var now = raw;
|
|
155
|
+
if (value === undefined) {
|
|
156
|
+
now = (format === null || format === void 0 ? void 0 : format.reset) ? format.reset(e.target.value) : e.target.value;
|
|
157
|
+
setInnerValue(now);
|
|
158
|
+
}
|
|
159
|
+
focusedValueRef.current = now;
|
|
314
160
|
_onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(e);
|
|
315
161
|
},
|
|
316
162
|
onBlur: function onBlur(e) {
|
|
317
163
|
if (raw !== focusedValueRef.current) emit('change');
|
|
318
164
|
_onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e);
|
|
319
165
|
}
|
|
320
|
-
}, restProps)), suffix != null && (0,
|
|
166
|
+
}, restProps)), suffix != null && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Suffix, {
|
|
321
167
|
className: 'text-field-suffix',
|
|
322
168
|
children: suffix
|
|
323
169
|
}), actions.map(function (_a) {
|
|
324
170
|
var id = _a.id,
|
|
325
|
-
action =
|
|
326
|
-
return (0,
|
|
171
|
+
action = __rest(_a, ["id"]);
|
|
172
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Action, __assign({
|
|
327
173
|
className: 'text-field-action motion-press'
|
|
328
174
|
}, action), id);
|
|
329
175
|
}), rightIcon]
|
|
330
|
-
})), helperText && (0,
|
|
331
|
-
className: (0,
|
|
176
|
+
})), helperText && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.HelperText, {
|
|
177
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__/* .classNames */ .x)('text-field-helper-text', isError && 'error'),
|
|
332
178
|
text: helperText
|
|
333
179
|
})]
|
|
334
180
|
})
|
|
335
181
|
});
|
|
336
182
|
});
|
|
337
183
|
TextField.displayName = 'TextField';
|
|
338
|
-
/* harmony default export */ const
|
|
184
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TextField);
|
|
339
185
|
|
|
340
186
|
/***/ },
|
|
341
187
|
|
|
@@ -501,19 +347,23 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
501
347
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
502
348
|
/******/ import * as __webpack_chunk_5__ from "./chunk-3547.js";
|
|
503
349
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
504
|
-
/******/ import * as __webpack_chunk_6__ from "./chunk-
|
|
350
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-7232.js";
|
|
505
351
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
506
|
-
/******/ import * as __webpack_chunk_7__ from "./chunk-
|
|
352
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-4917.js";
|
|
507
353
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
508
|
-
/******/ import * as __webpack_chunk_8__ from "./chunk-
|
|
354
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-4558.js";
|
|
509
355
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
510
|
-
/******/ import * as __webpack_chunk_9__ from "./chunk-
|
|
356
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-7739.js";
|
|
511
357
|
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
358
|
+
/******/ import * as __webpack_chunk_10__ from "./chunk-6096.js";
|
|
359
|
+
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
360
|
+
/******/ import * as __webpack_chunk_11__ from "./chunk-7302.js";
|
|
361
|
+
/******/ __nuri_require__.C(__webpack_chunk_11__);
|
|
512
362
|
/******/
|
|
513
363
|
/******/ // startup
|
|
514
364
|
/******/ // Load entry module and return exports
|
|
515
365
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
516
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7653,3547,4917,4558,7739,7302], () => (__nuri_require__(
|
|
366
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7653,3547,7232,4917,4558,7739,6096,7302], () => (__nuri_require__(8629)))
|
|
517
367
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
518
368
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
519
369
|
/******/ export { __webpack_exports__default as default };
|
package/dist/text.js
CHANGED
|
@@ -35,10 +35,6 @@ var styleClass = function styleClass(prefix, value) {
|
|
|
35
35
|
return c.toUpperCase();
|
|
36
36
|
})) : '';
|
|
37
37
|
};
|
|
38
|
-
// `2xl` 처럼 숫자로 시작하는 클래스는 선택자로 쓸 수 없어 `t-` 를 붙인다.
|
|
39
|
-
var sizeClass = function sizeClass(size) {
|
|
40
|
-
return /^\d+xl$/.test(size) ? "t-".concat(size) : size;
|
|
41
|
-
};
|
|
42
38
|
// onClick·id 같은 HTML 속성은 넘기지 않는다. className 과 style 만 요소에 간다.
|
|
43
39
|
var Text = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
44
40
|
var _a = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_3__/* .getMergedProps */ .p)(props, _text_props__WEBPACK_IMPORTED_MODULE_5__/* .textProps */ .em),
|
|
@@ -49,7 +45,7 @@ var Text = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(functi
|
|
|
49
45
|
className = _a.className,
|
|
50
46
|
style = _a.style,
|
|
51
47
|
restProps = __rest(_a, ["text", "size", "weight", "as", "className", "style"]);
|
|
52
|
-
var textClassName = (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__/* .classNames */ .x)(className,
|
|
48
|
+
var textClassName = (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__/* .classNames */ .x)(className, (0,_text_props__WEBPACK_IMPORTED_MODULE_5__/* .fontSizeClass */ .TU)(size), weight, _text_props__WEBPACK_IMPORTED_MODULE_5__/* .styleClassProps */ .Oc.map(function (key) {
|
|
53
49
|
return styleClass(key, restProps[key]);
|
|
54
50
|
}));
|
|
55
51
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {
|
|
@@ -222,13 +218,15 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
222
218
|
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
223
219
|
/******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
|
|
224
220
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
225
|
-
/******/ import * as __webpack_chunk_3__ from "./chunk-
|
|
221
|
+
/******/ import * as __webpack_chunk_3__ from "./chunk-7232.js";
|
|
226
222
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
223
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-4558.js";
|
|
224
|
+
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
227
225
|
/******/
|
|
228
226
|
/******/ // startup
|
|
229
227
|
/******/ // Load entry module and return exports
|
|
230
228
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
231
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4558], () => (__nuri_require__(7739)))
|
|
229
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,7232,4558], () => (__nuri_require__(7739)))
|
|
232
230
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
233
231
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
234
232
|
/******/ export { __webpack_exports__default as default };
|
package/dist/toast.js
CHANGED
|
@@ -337,39 +337,41 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
337
337
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
338
338
|
/******/ import * as __webpack_chunk_5__ from "./chunk-2777.js";
|
|
339
339
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
340
|
-
/******/ import * as __webpack_chunk_6__ from "./chunk-
|
|
340
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-1768.js";
|
|
341
341
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
342
342
|
/******/ import * as __webpack_chunk_7__ from "./chunk-3640.js";
|
|
343
343
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
344
|
-
/******/ import * as __webpack_chunk_8__ from "./chunk-
|
|
344
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-6706.js";
|
|
345
345
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
346
|
-
/******/ import * as __webpack_chunk_9__ from "./chunk-
|
|
346
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-8734.js";
|
|
347
347
|
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
348
|
-
/******/ import * as __webpack_chunk_10__ from "./chunk-
|
|
348
|
+
/******/ import * as __webpack_chunk_10__ from "./chunk-1176.js";
|
|
349
349
|
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
350
|
-
/******/ import * as __webpack_chunk_11__ from "./chunk-
|
|
350
|
+
/******/ import * as __webpack_chunk_11__ from "./chunk-8933.js";
|
|
351
351
|
/******/ __nuri_require__.C(__webpack_chunk_11__);
|
|
352
|
-
/******/ import * as __webpack_chunk_12__ from "./chunk-
|
|
352
|
+
/******/ import * as __webpack_chunk_12__ from "./chunk-7737.js";
|
|
353
353
|
/******/ __nuri_require__.C(__webpack_chunk_12__);
|
|
354
|
-
/******/ import * as __webpack_chunk_13__ from "./chunk-
|
|
354
|
+
/******/ import * as __webpack_chunk_13__ from "./chunk-5302.js";
|
|
355
355
|
/******/ __nuri_require__.C(__webpack_chunk_13__);
|
|
356
|
-
/******/ import * as __webpack_chunk_14__ from "./chunk-
|
|
356
|
+
/******/ import * as __webpack_chunk_14__ from "./chunk-8491.js";
|
|
357
357
|
/******/ __nuri_require__.C(__webpack_chunk_14__);
|
|
358
|
-
/******/ import * as __webpack_chunk_15__ from "./chunk-
|
|
358
|
+
/******/ import * as __webpack_chunk_15__ from "./chunk-2496.js";
|
|
359
359
|
/******/ __nuri_require__.C(__webpack_chunk_15__);
|
|
360
|
-
/******/ import * as __webpack_chunk_16__ from "./chunk-
|
|
360
|
+
/******/ import * as __webpack_chunk_16__ from "./chunk-948.js";
|
|
361
361
|
/******/ __nuri_require__.C(__webpack_chunk_16__);
|
|
362
362
|
/******/ import * as __webpack_chunk_17__ from "./chunk-910.js";
|
|
363
363
|
/******/ __nuri_require__.C(__webpack_chunk_17__);
|
|
364
|
-
/******/ import * as __webpack_chunk_18__ from "./chunk-
|
|
364
|
+
/******/ import * as __webpack_chunk_18__ from "./chunk-6713.js";
|
|
365
365
|
/******/ __nuri_require__.C(__webpack_chunk_18__);
|
|
366
|
-
/******/ import * as __webpack_chunk_19__ from "./chunk-
|
|
366
|
+
/******/ import * as __webpack_chunk_19__ from "./chunk-5077.js";
|
|
367
367
|
/******/ __nuri_require__.C(__webpack_chunk_19__);
|
|
368
|
+
/******/ import * as __webpack_chunk_20__ from "./chunk-7460.js";
|
|
369
|
+
/******/ __nuri_require__.C(__webpack_chunk_20__);
|
|
368
370
|
/******/
|
|
369
371
|
/******/ // startup
|
|
370
372
|
/******/ // Load entry module and return exports
|
|
371
373
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
372
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,
|
|
374
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,1768,3640,6706,8734,1176,8933,7737,5302,8491,2496,948,910,6713,5077,7460], () => (__nuri_require__(1771)))
|
|
373
375
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
374
376
|
/******/ const __webpack_exports__ToastProvider = __webpack_exports__.t;
|
|
375
377
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
package/dist/tokens.css
CHANGED
|
@@ -314,6 +314,15 @@
|
|
|
314
314
|
--modal-width-m: 450px;
|
|
315
315
|
--modal-width-l: 500px;
|
|
316
316
|
|
|
317
|
+
/* 아래 시트(BottomSheet): 손잡이 크기와 가장 큰 높이. 위 8% 는 시트 뒤 화면이 보이게 남긴다 */
|
|
318
|
+
--sheet-handle-width: 40px;
|
|
319
|
+
--sheet-handle-height: 4px;
|
|
320
|
+
--sheet-max-height: 92dvh; /* raw-value */
|
|
321
|
+
/* 행동 메뉴(Menu) 목록의 가장 좁은 폭 */
|
|
322
|
+
--menu-min-width: 180px;
|
|
323
|
+
/* 코치마크(Highlight) 메시지 상자의 가장 넓은 폭 */
|
|
324
|
+
--highlight-message-max-width: 280px;
|
|
325
|
+
|
|
317
326
|
/* 하단 탭 바: 화면 아래에 떠 있는 유리 캡슐. 화면은 아래를 --bottom-nav-space(+ 안전 영역)만큼 비운다 */
|
|
318
327
|
--bottom-nav-height: 62px;
|
|
319
328
|
--bottom-nav-padding: 5px;
|
|
@@ -340,13 +349,24 @@
|
|
|
340
349
|
--progress-thickness-m: 4px;
|
|
341
350
|
--progress-thickness-l: 8px;
|
|
342
351
|
|
|
352
|
+
/* 막대 차트: bar-chart. 높이는 라벨까지 포함한 차트 전체, 막대 폭은 칸이 넓어도 이 값을 넘지 않는다 */
|
|
353
|
+
--bar-chart-height: 160px;
|
|
354
|
+
--bar-chart-bar-max-width: 32px;
|
|
355
|
+
|
|
343
356
|
/* 진행 단계 둥근 표시: step-progress variant='icon'. 안의 아이콘은 --icon-size-* */
|
|
344
357
|
--step-marker-size-s: 24px;
|
|
345
358
|
--step-marker-size-m: 32px;
|
|
346
359
|
--step-marker-size-l: 40px;
|
|
347
360
|
|
|
348
|
-
/* 목록 행: list-row. 한 줄 이름에 보조 글이 붙어도 이
|
|
349
|
-
--list-row-height:
|
|
361
|
+
/* 목록 행: list-row 의 size. 한 줄 이름에 보조 글이 붙어도 이 높이부터. s 는 ListFooter 의 높이 */
|
|
362
|
+
--list-row-height-s: 48px;
|
|
363
|
+
--list-row-height-m: 56px;
|
|
364
|
+
--list-row-height-l: 64px;
|
|
365
|
+
/* size 가 생기기 전 이름. 쓰는 쪽 CSS 가 읽고 있어 m 을 가리킨 채 둔다 */
|
|
366
|
+
--list-row-height: var(--list-row-height-m);
|
|
367
|
+
|
|
368
|
+
/* 구분 띠: border variant='section'. 화면 안 두 덩어리 사이의 회색 띠 두께 */
|
|
369
|
+
--border-section-height: 8px;
|
|
350
370
|
|
|
351
371
|
/* 손가락 터치 영역. 보이는 크기가 작은 버튼(아이콘 버튼·빼기·보내기)이 이만큼 눌린다 */
|
|
352
372
|
--touch-target: 44px;
|
|
@@ -368,12 +388,48 @@
|
|
|
368
388
|
--icon-button-size-m: 44px;
|
|
369
389
|
--icon-button-size-l: 56px;
|
|
370
390
|
|
|
391
|
+
/* 글자 버튼: text-button. 보이는 높이는 컨트롤 한 단계 아래(글자 sm·base·lg 에 맞춘다). 누르는 자리는 --touch-target */
|
|
392
|
+
--text-button-height-s: var(--control-height-xs);
|
|
393
|
+
--text-button-height-m: var(--control-height-s);
|
|
394
|
+
--text-button-height-l: var(--control-height-m);
|
|
395
|
+
|
|
371
396
|
/* 입력 상자 안 버튼: text-field·text-area 의 지우기·비밀번호 보기. 아이콘 s 와 같고 누르는 자리는 --touch-target */
|
|
372
397
|
--text-field-action-size: var(--icon-size-s);
|
|
373
398
|
|
|
399
|
+
/* 화면 아래 주 버튼 바: bottom-cta. 높이 최소값은 버튼(control xl) + 위 여백 12 + 아래 여백 20 이다.
|
|
400
|
+
takeSpace 자리가 바를 재기 전에 이 높이로 잡히고, 바를 직접 비우는 화면도 이 값을 읽는다 */
|
|
401
|
+
--bottom-cta-height-min: calc(var(--control-height-xl) + var(--spacing-12) + var(--spacing-20));
|
|
402
|
+
/* fixed 바 위에 얹는, 바탕색으로 녹아드는 띠의 높이 */
|
|
403
|
+
--bottom-cta-fade-height: 24px;
|
|
404
|
+
|
|
374
405
|
/* 빈 화면: empty-state 아이콘 원 */
|
|
375
406
|
--empty-state-icon-box: 64px;
|
|
376
407
|
|
|
408
|
+
/* 약관 동의 행: agreement 의 size 와 indent 한 단계 */
|
|
409
|
+
--agreement-row-height-s: 44px;
|
|
410
|
+
--agreement-row-height-m: 52px;
|
|
411
|
+
--agreement-row-height-l: 60px;
|
|
412
|
+
--agreement-indent: 24px;
|
|
413
|
+
|
|
414
|
+
/* 뷰 전환 칸 묶음: segmented-control. 바탕 판의 높이(안쪽 여백 포함). s 는 카드·시트 안, m 은 화면 위 */
|
|
415
|
+
--segmented-height-s: 32px;
|
|
416
|
+
--segmented-height-m: 40px;
|
|
417
|
+
|
|
418
|
+
/* 슬라이더: slider. 트랙 두께와 손잡이 지름 */
|
|
419
|
+
--slider-track-thickness: 4px;
|
|
420
|
+
--slider-thumb-size: 24px;
|
|
421
|
+
|
|
422
|
+
/* 두 칸 숫자 입력: split-text-field. RRNFirst7 의 성별 한 자리 칸 폭(숫자 하나 + 여유) */
|
|
423
|
+
--split-text-field-digit-width: 2ch;
|
|
424
|
+
|
|
425
|
+
/* 화면 자판: keypad 의 키 높이. 손가락 터치(44) 보다 조금 크게 둔다 */
|
|
426
|
+
--keypad-key-height: 48px;
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
/* 문단 줄 안 조각: paragraph. 아이콘은 글자 크기를 따른다.
|
|
430
|
+
뱃지는 20px 이되 줄 높이(1lh, 문단의 것을 물려받는다)를 넘지 않는다. xsm·sm(18px 줄)에서 줄 간격이 벌어지지 않게 한다 */
|
|
431
|
+
--inline-icon-size: 1em;
|
|
432
|
+
--inline-badge-height: min(20px, 1lh);
|
|
377
433
|
|
|
378
434
|
/* 그 밖의 치수 */
|
|
379
435
|
--icon-size-xs: 16px;
|
|
@@ -747,12 +803,12 @@
|
|
|
747
803
|
--icon-tertiary: var(--color-grey-scale-300);
|
|
748
804
|
--icon-disabled: var(--color-grey-scale-600);
|
|
749
805
|
--icon-brand: var(--color-purple-300);
|
|
750
|
-
--border-subtle: var(--color-grey-scale-
|
|
751
|
-
--border-default: var(--color-grey-scale-
|
|
752
|
-
--border-hover: var(--color-grey-scale-
|
|
806
|
+
--border-subtle: var(--color-grey-scale-700);
|
|
807
|
+
--border-default: var(--color-grey-scale-600);
|
|
808
|
+
--border-hover: var(--color-grey-scale-500);
|
|
753
809
|
--border-accent: var(--color-purple-400);
|
|
754
810
|
--border-error: var(--color-accent-red-400);
|
|
755
|
-
--border-disabled: var(--color-grey-scale-
|
|
811
|
+
--border-disabled: var(--color-grey-scale-700);
|
|
756
812
|
--focus-ring-color: var(--color-purple-400);
|
|
757
813
|
--focus-halo-color: var(--color-purple-900);
|
|
758
814
|
--focus-halo-error-color: var(--color-accent-red-900);
|
|
@@ -865,12 +921,12 @@
|
|
|
865
921
|
--icon-tertiary: var(--color-grey-scale-300);
|
|
866
922
|
--icon-disabled: var(--color-grey-scale-600);
|
|
867
923
|
--icon-brand: var(--color-purple-300);
|
|
868
|
-
--border-subtle: var(--color-grey-scale-
|
|
869
|
-
--border-default: var(--color-grey-scale-
|
|
870
|
-
--border-hover: var(--color-grey-scale-
|
|
924
|
+
--border-subtle: var(--color-grey-scale-700);
|
|
925
|
+
--border-default: var(--color-grey-scale-600);
|
|
926
|
+
--border-hover: var(--color-grey-scale-500);
|
|
871
927
|
--border-accent: var(--color-purple-400);
|
|
872
928
|
--border-error: var(--color-accent-red-400);
|
|
873
|
-
--border-disabled: var(--color-grey-scale-
|
|
929
|
+
--border-disabled: var(--color-grey-scale-700);
|
|
874
930
|
--focus-ring-color: var(--color-purple-400);
|
|
875
931
|
--focus-halo-color: var(--color-purple-900);
|
|
876
932
|
--focus-halo-error-color: var(--color-accent-red-900);
|
package/dist/tooltip.js
CHANGED
|
@@ -387,7 +387,7 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
387
387
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
388
388
|
/******/ import * as __webpack_chunk_3__ from "./chunk-4560.js";
|
|
389
389
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
390
|
-
/******/ import * as __webpack_chunk_4__ from "./chunk-
|
|
390
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-1768.js";
|
|
391
391
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
392
392
|
/******/ import * as __webpack_chunk_5__ from "./chunk-6706.js";
|
|
393
393
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
@@ -397,7 +397,7 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
397
397
|
/******/ // startup
|
|
398
398
|
/******/ // Load entry module and return exports
|
|
399
399
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
400
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,
|
|
400
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,1768,6706,8690], () => (__nuri_require__(1563)))
|
|
401
401
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
402
402
|
/******/ const __webpack_exports__TooltipProvider = __webpack_exports__.B;
|
|
403
403
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|