@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/icon-button.js
CHANGED
|
@@ -3,32 +3,22 @@ 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
|
+
/***/ 4955
|
|
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
|
-
|
|
22
|
-
var classNames = __nuri_require__(3274);
|
|
23
|
-
// EXTERNAL MODULE: ./helpers/utils/fillLinkChild.ts
|
|
24
|
-
var fillLinkChild = __nuri_require__(1176);
|
|
25
|
-
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
26
|
-
var getMergedProps = __nuri_require__(7335);
|
|
27
|
-
// EXTERNAL MODULE: ./components/icon/icon.tsx
|
|
28
|
-
var icon_icon = __nuri_require__(3547);
|
|
29
|
-
// EXTERNAL MODULE: ./components/core/composer/index.tsx
|
|
30
|
-
var composer = __nuri_require__(2777);
|
|
31
|
-
;// ./components/icon-button/base-icon-button.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_useTrack__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(4560);
|
|
15
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(3274);
|
|
16
|
+
/* harmony import */ var _helpers_utils_fillLinkChild__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(1176);
|
|
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 _loading_spinner_spinner__WEBPACK_IMPORTED_MODULE_7__ = __nuri_require__(6302);
|
|
20
|
+
/* harmony import */ var _base_icon_button__WEBPACK_IMPORTED_MODULE_8__ = __nuri_require__(595);
|
|
21
|
+
/* harmony import */ var _icon_button_props__WEBPACK_IMPORTED_MODULE_9__ = __nuri_require__(8770);
|
|
32
22
|
var __assign = undefined && undefined.__assign || function () {
|
|
33
23
|
__assign = Object.assign || function (t) {
|
|
34
24
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -51,62 +41,6 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
51
41
|
|
|
52
42
|
|
|
53
43
|
|
|
54
|
-
var BaseIconButton = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
55
|
-
var _a = props.asChild,
|
|
56
|
-
asChild = _a === void 0 ? false : _a,
|
|
57
|
-
className = props.className,
|
|
58
|
-
disabled = props.disabled,
|
|
59
|
-
restProps = __rest(props, ["asChild", "className", "disabled"]);
|
|
60
|
-
var Comp = asChild ? composer/* default */.A : 'button';
|
|
61
|
-
return (0,jsx_runtime_.jsx)(Comp, __assign({
|
|
62
|
-
ref: ref,
|
|
63
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-icon-button', className),
|
|
64
|
-
type: asChild ? undefined : 'button',
|
|
65
|
-
disabled: disabled,
|
|
66
|
-
"data-disabled": disabled || undefined
|
|
67
|
-
}, restProps));
|
|
68
|
-
});
|
|
69
|
-
BaseIconButton.displayName = 'BaseIconButton';
|
|
70
|
-
/* harmony default export */ const base_icon_button = (BaseIconButton);
|
|
71
|
-
// EXTERNAL MODULE: ./helpers/props/common-props.ts
|
|
72
|
-
var common_props = __nuri_require__(7298);
|
|
73
|
-
;// ./components/icon-button/icon-button-props.ts
|
|
74
|
-
|
|
75
|
-
var variant = ['ghost', 'secondary', 'primary'];
|
|
76
|
-
var sizes = ['s', 'm', 'l'];
|
|
77
|
-
// 아이콘 크기도 이 값으로 고르므로 기본 크기를 한 곳에 둔다
|
|
78
|
-
var defaultSize = 'm';
|
|
79
|
-
var iconButtonProps = {
|
|
80
|
-
variant: {
|
|
81
|
-
type: 'className',
|
|
82
|
-
className: 'variant',
|
|
83
|
-
values: variant,
|
|
84
|
-
"default": 'ghost'
|
|
85
|
-
},
|
|
86
|
-
size: (0,common_props/* sizeProp */.lw)(sizes, defaultSize)
|
|
87
|
-
};
|
|
88
|
-
;// ./components/icon-button/icon-button.tsx
|
|
89
|
-
var icon_button_assign = undefined && undefined.__assign || function () {
|
|
90
|
-
icon_button_assign = Object.assign || function (t) {
|
|
91
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
92
|
-
s = arguments[i];
|
|
93
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
94
|
-
}
|
|
95
|
-
return t;
|
|
96
|
-
};
|
|
97
|
-
return icon_button_assign.apply(this, arguments);
|
|
98
|
-
};
|
|
99
|
-
var icon_button_rest = undefined && undefined.__rest || function (s, e) {
|
|
100
|
-
var t = {};
|
|
101
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
102
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
103
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
104
|
-
}
|
|
105
|
-
return t;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
44
|
|
|
111
45
|
|
|
112
46
|
|
|
@@ -120,44 +54,61 @@ var ICON_SIZE = {
|
|
|
120
54
|
l: 'xl'
|
|
121
55
|
};
|
|
122
56
|
/** 아이콘 하나뿐인 버튼. 누르는 자리는 늘 터치 44 이상이다 */
|
|
123
|
-
var IconButton = /*#__PURE__*/(0,
|
|
57
|
+
var IconButton = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
124
58
|
var _a;
|
|
125
|
-
var _b = (0,
|
|
59
|
+
var _b = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_5__/* .getMergedProps */ .p)(props, _icon_button_props__WEBPACK_IMPORTED_MODULE_9__/* .iconButtonProps */ .Ei),
|
|
126
60
|
className = _b.className,
|
|
127
61
|
icon = _b.icon,
|
|
128
62
|
label = _b.label,
|
|
129
63
|
asChild = _b.asChild,
|
|
130
64
|
children = _b.children,
|
|
65
|
+
loading = _b.loading,
|
|
131
66
|
_onClick = _b.onClick,
|
|
132
67
|
_c = _b.pressEffect,
|
|
133
68
|
pressEffect = _c === void 0 ? true : _c,
|
|
134
69
|
track = _b.track,
|
|
135
70
|
trackProps = _b.trackProps,
|
|
136
|
-
restProps =
|
|
137
|
-
var
|
|
71
|
+
restProps = __rest(_b, ["className", "icon", "label", "asChild", "children", "loading", "onClick", "pressEffect", "track", "trackProps"]);
|
|
72
|
+
var size = (_a = props.size) !== null && _a !== void 0 ? _a : _icon_button_props__WEBPACK_IMPORTED_MODULE_9__/* .defaultSize */ .R7;
|
|
73
|
+
var emit = (0,_helpers_hooks_useTrack__WEBPACK_IMPORTED_MODULE_2__/* .useTrack */ .n)('IconButton', {
|
|
138
74
|
track: track,
|
|
139
75
|
trackProps: trackProps
|
|
140
76
|
});
|
|
141
|
-
var content = (0,
|
|
77
|
+
var content = (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_icon_icon__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, {
|
|
142
78
|
name: icon,
|
|
143
|
-
size: ICON_SIZE[
|
|
79
|
+
size: ICON_SIZE[size]
|
|
80
|
+
});
|
|
81
|
+
var link = (0,_helpers_utils_fillLinkChild__WEBPACK_IMPORTED_MODULE_4__/* .fillLinkChild */ .Q)(asChild, children, content);
|
|
82
|
+
// 링크는 로딩을 그리지 않는다(CTAButton 과 같다)
|
|
83
|
+
var busy = link ? undefined : loading;
|
|
84
|
+
// 링 지름은 로딩 가족의 같은 이름 크기(s 16·m 20·l 40)라 아이콘(18·24·32)에 가장 가깝다.
|
|
85
|
+
// 짙은 보라 바탕(primary)만 흰 링이고 나머지는 회색이다. 누른 직후라 늦게 보이기는 끈다
|
|
86
|
+
var spinner = (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_loading_spinner_spinner__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A, {
|
|
87
|
+
size: size,
|
|
88
|
+
variant: props.variant === 'primary' ? 'inverse' : 'neutral',
|
|
89
|
+
delay: false
|
|
144
90
|
});
|
|
145
|
-
|
|
146
|
-
return (0,jsx_runtime_.jsx)(base_icon_button, icon_button_assign({
|
|
91
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_icon_button__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A, __assign({
|
|
147
92
|
ref: ref,
|
|
148
|
-
className: (0,
|
|
93
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__/* .classNames */ .x)(className, 'icon-button', pressEffect && !busy && 'motion-press'),
|
|
149
94
|
"aria-label": label,
|
|
95
|
+
"aria-busy": busy || undefined,
|
|
150
96
|
asChild: link !== null,
|
|
151
97
|
onClick: function onClick(event) {
|
|
98
|
+
// 폼 안의 submit 버튼이 로딩 중에 다시 제출하지 않게 기본 동작까지 막는다
|
|
99
|
+
if (busy) {
|
|
100
|
+
event.preventDefault();
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
152
103
|
emit('click');
|
|
153
104
|
_onClick === null || _onClick === void 0 ? void 0 : _onClick(event);
|
|
154
105
|
}
|
|
155
106
|
}, restProps, {
|
|
156
|
-
children: link !== null && link !== void 0 ? link : content
|
|
107
|
+
children: link !== null && link !== void 0 ? link : busy ? spinner : content
|
|
157
108
|
}));
|
|
158
109
|
});
|
|
159
110
|
IconButton.displayName = 'IconButton';
|
|
160
|
-
/* harmony default export */ const
|
|
111
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (IconButton);
|
|
161
112
|
|
|
162
113
|
/***/ },
|
|
163
114
|
|
|
@@ -321,19 +272,25 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
321
272
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
322
273
|
/******/ import * as __webpack_chunk_4__ from "./chunk-7298.js";
|
|
323
274
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
324
|
-
/******/ import * as __webpack_chunk_5__ from "./chunk-
|
|
275
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-7653.js";
|
|
325
276
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
326
|
-
/******/ import * as __webpack_chunk_6__ from "./chunk-
|
|
277
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-3547.js";
|
|
327
278
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
328
|
-
/******/ import * as __webpack_chunk_7__ from "./chunk-
|
|
279
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-2777.js";
|
|
329
280
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
330
|
-
/******/ import * as __webpack_chunk_8__ from "./chunk-
|
|
281
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-8734.js";
|
|
331
282
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
283
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-1176.js";
|
|
284
|
+
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
285
|
+
/******/ import * as __webpack_chunk_10__ from "./chunk-6302.js";
|
|
286
|
+
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
287
|
+
/******/ import * as __webpack_chunk_11__ from "./chunk-6616.js";
|
|
288
|
+
/******/ __nuri_require__.C(__webpack_chunk_11__);
|
|
332
289
|
/******/
|
|
333
290
|
/******/ // startup
|
|
334
291
|
/******/ // Load entry module and return exports
|
|
335
292
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
336
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,
|
|
293
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,7653,3547,2777,8734,1176,6302,6616], () => (__nuri_require__(4955)))
|
|
337
294
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
338
295
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
339
296
|
/******/ export { __webpack_exports__default as default };
|
package/dist/icon-text-badge.js
CHANGED
|
@@ -283,7 +283,7 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
283
283
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
284
284
|
/******/ import * as __webpack_chunk_4__ from "./chunk-2777.js";
|
|
285
285
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
286
|
-
/******/ import * as __webpack_chunk_5__ from "./chunk-
|
|
286
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-1768.js";
|
|
287
287
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
288
288
|
/******/ import * as __webpack_chunk_6__ from "./chunk-3640.js";
|
|
289
289
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
@@ -291,17 +291,19 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
291
291
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
292
292
|
/******/ import * as __webpack_chunk_8__ from "./chunk-4917.js";
|
|
293
293
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
294
|
-
/******/ import * as __webpack_chunk_9__ from "./chunk-
|
|
294
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-7589.js";
|
|
295
295
|
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
296
296
|
/******/ import * as __webpack_chunk_10__ from "./chunk-8690.js";
|
|
297
297
|
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
298
298
|
/******/ import * as __webpack_chunk_11__ from "./chunk-1563.js";
|
|
299
299
|
/******/ __nuri_require__.C(__webpack_chunk_11__);
|
|
300
|
+
/******/ import * as __webpack_chunk_12__ from "./chunk-6149.js";
|
|
301
|
+
/******/ __nuri_require__.C(__webpack_chunk_12__);
|
|
300
302
|
/******/
|
|
301
303
|
/******/ // startup
|
|
302
304
|
/******/ // Load entry module and return exports
|
|
303
305
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
304
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,2777,
|
|
306
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,2777,1768,3640,6706,4917,7589,8690,1563,6149], () => (__nuri_require__(6477)))
|
|
305
307
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
306
308
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
307
309
|
/******/ export { __webpack_exports__default as default };
|
|
@@ -265,13 +265,15 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
265
265
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
266
266
|
/******/ import * as __webpack_chunk_5__ from "./chunk-4917.js";
|
|
267
267
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
268
|
-
/******/ import * as __webpack_chunk_6__ from "./chunk-
|
|
268
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-7589.js";
|
|
269
269
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
270
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-6149.js";
|
|
271
|
+
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
270
272
|
/******/
|
|
271
273
|
/******/ // startup
|
|
272
274
|
/******/ // Load entry module and return exports
|
|
273
275
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
274
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,2777,3640,4917,
|
|
276
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,2777,3640,4917,7589,6149], () => (__nuri_require__(9891)))
|
|
275
277
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
276
278
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
277
279
|
/******/ export { __webpack_exports__default as default };
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export { default as Asset } from './components/asset/asset';
|
|
|
2
2
|
export { default as Avatar } from './components/avatar/avatar';
|
|
3
3
|
export { default as CTAButton } from './components/button/cta-button';
|
|
4
4
|
export { default as IconButton } from './components/icon-button/icon-button';
|
|
5
|
+
export { default as TextButton } from './components/text-button/text-button';
|
|
5
6
|
export { default as Callout } from './components/callout/callout';
|
|
6
7
|
export { default as OptionBadge } from './components/badge/option-badge';
|
|
7
8
|
export { default as IconTextBadge } from './components/badge/icon-text-badge';
|
|
@@ -30,10 +31,20 @@ export { default as Icon } from './components/icon/icon';
|
|
|
30
31
|
export { default as BottomNav } from './components/bottom-nav/bottom-nav';
|
|
31
32
|
export { default as StepProgress } from './components/step-progress/step-progress';
|
|
32
33
|
export { default as ChipGroup } from './components/chip-group/chip-group';
|
|
34
|
+
export { default as SegmentedControl } from './components/segmented-control/segmented-control';
|
|
35
|
+
export { default as Slider } from './components/slider/slider';
|
|
36
|
+
export { default as Rating } from './components/rating/rating';
|
|
37
|
+
export { default as NumericSpinner } from './components/numeric-spinner/numeric-spinner';
|
|
33
38
|
export { default as Card } from './components/card/card';
|
|
34
39
|
export { default as ListGroup } from './components/list/list-group';
|
|
35
40
|
export { default as ListRow } from './components/list/list-row';
|
|
41
|
+
export { default as ListHeader } from './components/list/list-header';
|
|
42
|
+
export { default as ListFooter } from './components/list/list-footer';
|
|
36
43
|
export { default as DescriptionList } from './components/description-list/description-list';
|
|
44
|
+
export { default as GridList } from './components/grid-list/grid-list';
|
|
45
|
+
export { default as BoardRow } from './components/board-row/board-row';
|
|
46
|
+
export { default as Border } from './components/border/border';
|
|
47
|
+
export { default as TableRow } from './components/table-row/table-row';
|
|
37
48
|
export { default as Notice } from './components/notice/notice';
|
|
38
49
|
export { default as EmptyState } from './components/empty-state/empty-state';
|
|
39
50
|
export { default as Tag } from './components/tag/tag';
|
|
@@ -42,15 +53,31 @@ export { default as Message } from './components/message/message';
|
|
|
42
53
|
export { default as MessageEvent } from './components/message/message-event';
|
|
43
54
|
export { default as MessageComposer } from './components/message-composer/message-composer';
|
|
44
55
|
export { default as BottomBar } from './components/bottom-bar/bottom-bar';
|
|
56
|
+
export { default as Top } from './components/top/top';
|
|
57
|
+
export { default as BottomCTA } from './components/bottom-cta/bottom-cta';
|
|
45
58
|
export { default as MediaThumbnail } from './components/media/media-thumbnail';
|
|
46
59
|
export { default as MediaViewer } from './components/media/media-viewer';
|
|
60
|
+
export { default as Paragraph } from './components/paragraph/paragraph';
|
|
61
|
+
export { default as Post } from './components/post/post';
|
|
62
|
+
export { default as BottomInfo } from './components/bottom-info/bottom-info';
|
|
63
|
+
export { default as BarChart } from './components/bar-chart/bar-chart';
|
|
64
|
+
export { default as Agreement } from './components/agreement/agreement';
|
|
65
|
+
export { default as SearchField } from './components/search-field/search-field';
|
|
66
|
+
export { default as SplitTextField } from './components/split-text-field/split-text-field';
|
|
67
|
+
export { default as NumberKeypad } from './components/keypad/number-keypad';
|
|
68
|
+
export { default as AlphabetKeypad } from './components/keypad/alphabet-keypad';
|
|
69
|
+
export { default as FullSecureKeypad } from './components/keypad/full-secure-keypad';
|
|
70
|
+
export { default as BottomSheet } from './components/bottom-sheet/bottom-sheet';
|
|
71
|
+
export { default as Menu } from './components/menu/menu';
|
|
72
|
+
export { default as Highlight } from './components/highlight/highlight';
|
|
47
73
|
export { LogProvider, useLog } from './components/logging/logging';
|
|
48
74
|
export { MotionProvider } from './components/motion/motion';
|
|
49
|
-
export { OverlayProvider, useDialog, useToast } from './components/overlay/overlay';
|
|
50
|
-
export type { AssetFrameProps, AssetFrameSize, AssetIconProps, AssetImageProps, AssetShape, AssetTextProps, } from './components/asset/asset-type';
|
|
75
|
+
export { OverlayProvider, useBottomSheet, useDialog, useToast } from './components/overlay/overlay';
|
|
76
|
+
export type { AssetFrameProps, AssetFrameSize, AssetIconProps, AssetImageProps, AssetLottiePlayerProps, AssetLottieProps, AssetShape, AssetTextProps, AssetVideoProps, } from './components/asset/asset-type';
|
|
51
77
|
export type { AvatarProps } from './components/avatar/avatar-type';
|
|
52
78
|
export type { CTAButtonProps, Color as CTAButtonColor, Variant as CTAButtonVariant, } from './components/button/button-type';
|
|
53
79
|
export type { IconButtonProps } from './components/icon-button/icon-button-type';
|
|
80
|
+
export type { TextButtonProps } from './components/text-button/text-button-type';
|
|
54
81
|
export type { CalloutProps } from './components/callout/callout-type';
|
|
55
82
|
export type { OptionBadgeProps, IconTextBadgeProps, IconTextOptionBadgeProps, } from './components/badge/badge-type';
|
|
56
83
|
export type { DataTableProps, RowItem } from './components/table/table-type';
|
|
@@ -77,8 +104,16 @@ export type { IconName, IconProps, IconWeight } from './components/icon/icon-typ
|
|
|
77
104
|
export type { BottomNavProps, BottomNavItem, BottomNavLinkProps, BottomNavBadge, } from './components/bottom-nav/bottom-nav-type';
|
|
78
105
|
export type { StepItem, StepProgressProps } from './components/step-progress/step-progress-type';
|
|
79
106
|
export type { ChipGroupProps, ChipGroupItem } from './components/chip-group/chip-group-type';
|
|
107
|
+
export type { SegmentedControlProps, SegmentedControlItem, } from './components/segmented-control/segmented-control-type';
|
|
108
|
+
export type { SliderProps, SliderLabel } from './components/slider/slider-type';
|
|
109
|
+
export type { RatingProps, RatingInteractiveProps, RatingReadOnlyProps, RatingVariant, } from './components/rating/rating-type';
|
|
110
|
+
export type { NumericSpinnerProps } from './components/numeric-spinner/numeric-spinner-type';
|
|
80
111
|
export type { CardProps } from './components/card/card-type';
|
|
81
|
-
export type { ListGroupProps, ListRowProps } from './components/list/list-type';
|
|
112
|
+
export type { ListFooterProps, ListGroupProps, ListHeaderProps, ListRowBorder, ListRowLoaderProps, ListRowProps, ListRowSize, } from './components/list/list-type';
|
|
113
|
+
export type { TableRowProps } from './components/table-row/table-row-type';
|
|
114
|
+
export type { BorderProps } from './components/border/border-type';
|
|
115
|
+
export type { BoardRowGroupProps, BoardRowProps } from './components/board-row/board-row-type';
|
|
116
|
+
export type { GridListItemProps, GridListProps } from './components/grid-list/grid-list-type';
|
|
82
117
|
export type { DescriptionListProps, DescriptionListItem, } from './components/description-list/description-list-type';
|
|
83
118
|
export type { NoticeProps } from './components/notice/notice-type';
|
|
84
119
|
export type { EmptyStateProps } from './components/empty-state/empty-state-type';
|
|
@@ -86,10 +121,23 @@ export type { TagProps } from './components/tag/tag-type';
|
|
|
86
121
|
export type { MessageThreadProps, MessageProps, MessageEventProps, } from './components/message/message-type';
|
|
87
122
|
export type { MessageComposerProps } from './components/message-composer/message-composer-type';
|
|
88
123
|
export type { BottomBarProps } from './components/bottom-bar/bottom-bar-type';
|
|
124
|
+
export type { TopProps, TopTitleLevel } from './components/top/top-type';
|
|
125
|
+
export type { BottomCTAProps, BottomCTADoubleProps } from './components/bottom-cta/bottom-cta-type';
|
|
89
126
|
export type { MediaThumbnailProps, MediaViewerProps } from './components/media/media-type';
|
|
127
|
+
export type { ParagraphProps, ParagraphTextProps, ParagraphIconProps, ParagraphBadgeProps, ParagraphLinkProps, } from './components/paragraph/paragraph-type';
|
|
128
|
+
export type { PostProps, PostSpacingProps, PostHeadingProps, PostParagraphProps, PostUlProps, PostOlProps, PostLiProps, PostHrProps, } from './components/post/post-type';
|
|
129
|
+
export type { BottomInfoProps } from './components/bottom-info/bottom-info-type';
|
|
130
|
+
export type { SearchFieldProps } from './components/search-field/search-field-type';
|
|
131
|
+
export type { SplitTextFieldPartProps, SplitTextFieldProps, } from './components/split-text-field/split-text-field-type';
|
|
132
|
+
export type { AlphabetKeypadProps, FullSecureKeypadHandle, FullSecureKeypadProps, NumberKeypadProps, } from './components/keypad/keypad-type';
|
|
133
|
+
export type { BarChartDatum, BarChartFill, BarChartProps, BarVariant, } from './components/bar-chart/bar-chart-type';
|
|
134
|
+
export type { AgreementProps, AgreementPressableProps, AgreementHeaderProps, AgreementGroupProps, AgreementCheckboxProps, AgreementTextProps, AgreementNecessityProps, AgreementBadgeProps, AgreementRightArrowProps, AgreementDescriptionProps, AgreementCollapsibleProps, AgreementCollapsibleTriggerProps, AgreementCollapsibleContentProps, } from './components/agreement/agreement-type';
|
|
135
|
+
export type { BottomSheetProps, SnapPoint } from './components/bottom-sheet/bottom-sheet-type';
|
|
136
|
+
export type { MenuAlign, MenuCheckItemProps, MenuItemProps, MenuProps, MenuSeparatorItemProps, MenuSide, } from './components/menu/menu-type';
|
|
137
|
+
export type { HighlightAlignX, HighlightAlignY, HighlightMessageState, HighlightProps, } from './components/highlight/highlight-type';
|
|
90
138
|
export type { LogEvent, LogAction, LogProviderProps, TrackProps, } from './components/logging/logging-type';
|
|
91
139
|
export type { MotionProviderProps } from './components/motion/motion-type';
|
|
92
|
-
export type { OverlayProviderProps, ConfirmResult, DialogAlertOptions, DialogConfirmOptions, UseDialogReturn, ToastShowOptions, UseToastReturn, } from './components/overlay/overlay-type';
|
|
140
|
+
export type { OverlayProviderProps, ConfirmResult, DialogAlertOptions, DialogConfirmOptions, UseDialogReturn, ToastShowOptions, UseToastReturn, BottomSheetOpenOptions, BottomSheetRenderState, UseBottomSheetReturn, } from './components/overlay/overlay-type';
|
|
93
141
|
export type { MotionStrength, AppearAnimation, AttentionHandle, } from './helpers/motion/motion-props';
|
|
94
142
|
export type { Size } from './helpers/props/common-props';
|
|
95
143
|
export { colors, primitive, semanticApp, semanticAdmin, motionTokens, motionPresets, } from './tokens/generated';
|