@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/switch.js
CHANGED
|
@@ -422,17 +422,19 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
422
422
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
423
423
|
/******/ import * as __webpack_chunk_5__ from "./chunk-2777.js";
|
|
424
424
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
425
|
-
/******/ import * as __webpack_chunk_6__ from "./chunk-
|
|
425
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-1768.js";
|
|
426
426
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
427
427
|
/******/ import * as __webpack_chunk_7__ from "./chunk-3640.js";
|
|
428
428
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
429
|
-
/******/ import * as __webpack_chunk_8__ from "./chunk-
|
|
429
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-8982.js";
|
|
430
430
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
431
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-8787.js";
|
|
432
|
+
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
431
433
|
/******/
|
|
432
434
|
/******/ // startup
|
|
433
435
|
/******/ // Load entry module and return exports
|
|
434
436
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
435
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,
|
|
437
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,1768,3640,8982,8787], () => (__nuri_require__(8614)))
|
|
436
438
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
437
439
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
438
440
|
/******/ export { __webpack_exports__default as default };
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
4
|
+
/******/ var __webpack_modules__ = ({
|
|
5
|
+
|
|
6
|
+
/***/ 3811
|
|
7
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// EXPORTS
|
|
11
|
+
__nuri_require__.d(__webpack_exports__, {
|
|
12
|
+
A: () => (/* binding */ table_row)
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
|
|
16
|
+
var jsx_runtime_ = __nuri_require__(612);
|
|
17
|
+
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
|
|
18
|
+
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
19
|
+
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
20
|
+
var classNames = __nuri_require__(3274);
|
|
21
|
+
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
22
|
+
var getMergedProps = __nuri_require__(7335);
|
|
23
|
+
;// ./components/table-row/base-table-row.tsx
|
|
24
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
25
|
+
__assign = Object.assign || function (t) {
|
|
26
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
27
|
+
s = arguments[i];
|
|
28
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
29
|
+
}
|
|
30
|
+
return t;
|
|
31
|
+
};
|
|
32
|
+
return __assign.apply(this, arguments);
|
|
33
|
+
};
|
|
34
|
+
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
35
|
+
var t = {};
|
|
36
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
37
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
39
|
+
}
|
|
40
|
+
return t;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
var BaseTableRow = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
46
|
+
var className = props.className,
|
|
47
|
+
restProps = __rest(props, ["className"]);
|
|
48
|
+
return (0,jsx_runtime_.jsx)("div", __assign({
|
|
49
|
+
ref: ref,
|
|
50
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-table-row', className)
|
|
51
|
+
}, restProps));
|
|
52
|
+
});
|
|
53
|
+
BaseTableRow.displayName = 'BaseTableRow';
|
|
54
|
+
/* harmony default export */ const base_table_row = (BaseTableRow);
|
|
55
|
+
;// ./components/table-row/table-row-props.ts
|
|
56
|
+
/** space-between 은 값을 오른쪽 끝에, left 는 라벨 바로 뒤에 붙인다 */
|
|
57
|
+
var align = ['space-between', 'left'];
|
|
58
|
+
var tableRowProps = {
|
|
59
|
+
align: {
|
|
60
|
+
type: 'className',
|
|
61
|
+
className: 'align',
|
|
62
|
+
values: align,
|
|
63
|
+
"default": 'space-between'
|
|
64
|
+
},
|
|
65
|
+
leftRatio: {
|
|
66
|
+
type: 'css',
|
|
67
|
+
key: '--table-row-left-ratio'
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
;// ./components/table-row/table-row.tsx
|
|
71
|
+
var table_row_assign = undefined && undefined.__assign || function () {
|
|
72
|
+
table_row_assign = Object.assign || function (t) {
|
|
73
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
74
|
+
s = arguments[i];
|
|
75
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
76
|
+
}
|
|
77
|
+
return t;
|
|
78
|
+
};
|
|
79
|
+
return table_row_assign.apply(this, arguments);
|
|
80
|
+
};
|
|
81
|
+
var table_row_rest = undefined && undefined.__rest || function (s, e) {
|
|
82
|
+
var t = {};
|
|
83
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
84
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
85
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
86
|
+
}
|
|
87
|
+
return t;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
/** 요약 화면의 이름–값 한 줄. 라벨은 왼쪽, 값은 오른쪽 끝이나 라벨 바로 뒤 */
|
|
96
|
+
var TableRow = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
97
|
+
var _a = (0,getMergedProps/* getMergedProps */.p)(props, tableRowProps),
|
|
98
|
+
className = _a.className,
|
|
99
|
+
left = _a.left,
|
|
100
|
+
right = _a.right,
|
|
101
|
+
restProps = table_row_rest(_a, ["className", "left", "right"]);
|
|
102
|
+
return (0,jsx_runtime_.jsxs)(base_table_row, table_row_assign({
|
|
103
|
+
ref: ref,
|
|
104
|
+
className: (0,classNames/* classNames */.x)(className, 'table-row')
|
|
105
|
+
}, restProps, {
|
|
106
|
+
children: [(0,jsx_runtime_.jsx)("div", {
|
|
107
|
+
className: 'table-row-left',
|
|
108
|
+
children: left
|
|
109
|
+
}), (0,jsx_runtime_.jsx)("div", {
|
|
110
|
+
className: 'table-row-right',
|
|
111
|
+
children: right
|
|
112
|
+
})]
|
|
113
|
+
}));
|
|
114
|
+
});
|
|
115
|
+
TableRow.displayName = 'TableRow';
|
|
116
|
+
/* harmony default export */ const table_row = (TableRow);
|
|
117
|
+
|
|
118
|
+
/***/ },
|
|
119
|
+
|
|
120
|
+
/***/ 1041
|
|
121
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
122
|
+
|
|
123
|
+
var x = (y) => {
|
|
124
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
125
|
+
}
|
|
126
|
+
var y = (x) => (() => (x))
|
|
127
|
+
module.exports = x({ ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef) });
|
|
128
|
+
|
|
129
|
+
/***/ },
|
|
130
|
+
|
|
131
|
+
/***/ 612
|
|
132
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
133
|
+
|
|
134
|
+
var x = (y) => {
|
|
135
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
136
|
+
}
|
|
137
|
+
var y = (x) => (() => (x))
|
|
138
|
+
module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
|
|
139
|
+
|
|
140
|
+
/***/ }
|
|
141
|
+
|
|
142
|
+
/******/ });
|
|
143
|
+
/************************************************************************/
|
|
144
|
+
/******/ // The module cache
|
|
145
|
+
/******/ var __webpack_module_cache__ = {};
|
|
146
|
+
/******/
|
|
147
|
+
/******/ // The require function
|
|
148
|
+
/******/ function __nuri_require__(moduleId) {
|
|
149
|
+
/******/ // Check if module is in cache
|
|
150
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
151
|
+
/******/ if (cachedModule !== undefined) {
|
|
152
|
+
/******/ return cachedModule.exports;
|
|
153
|
+
/******/ }
|
|
154
|
+
/******/ // Create a new module (and put it into the cache)
|
|
155
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
156
|
+
/******/ // no module.id needed
|
|
157
|
+
/******/ // no module.loaded needed
|
|
158
|
+
/******/ exports: {}
|
|
159
|
+
/******/ };
|
|
160
|
+
/******/
|
|
161
|
+
/******/ // Execute the module function
|
|
162
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
|
|
163
|
+
/******/
|
|
164
|
+
/******/ // Return the exports of the module
|
|
165
|
+
/******/ return module.exports;
|
|
166
|
+
/******/ }
|
|
167
|
+
/******/
|
|
168
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
169
|
+
/******/ __nuri_require__.m = __webpack_modules__;
|
|
170
|
+
/******/
|
|
171
|
+
/************************************************************************/
|
|
172
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
173
|
+
/******/ (() => {
|
|
174
|
+
/******/ var deferred = [];
|
|
175
|
+
/******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
|
|
176
|
+
/******/ if(chunkIds) {
|
|
177
|
+
/******/ priority = priority || 0;
|
|
178
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
179
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
180
|
+
/******/ return;
|
|
181
|
+
/******/ }
|
|
182
|
+
/******/ var notFulfilled = Infinity;
|
|
183
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
184
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
185
|
+
/******/ var fulfilled = true;
|
|
186
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
187
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
|
|
188
|
+
/******/ chunkIds.splice(j--, 1);
|
|
189
|
+
/******/ } else {
|
|
190
|
+
/******/ fulfilled = false;
|
|
191
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
192
|
+
/******/ }
|
|
193
|
+
/******/ }
|
|
194
|
+
/******/ if(fulfilled) {
|
|
195
|
+
/******/ deferred.splice(i--, 1)
|
|
196
|
+
/******/ var r = fn();
|
|
197
|
+
/******/ if (r !== undefined) result = r;
|
|
198
|
+
/******/ }
|
|
199
|
+
/******/ }
|
|
200
|
+
/******/ return result;
|
|
201
|
+
/******/ };
|
|
202
|
+
/******/ })();
|
|
203
|
+
/******/
|
|
204
|
+
/******/ /* webpack/runtime/define property getters */
|
|
205
|
+
/******/ (() => {
|
|
206
|
+
/******/ // define getter functions for harmony exports
|
|
207
|
+
/******/ __nuri_require__.d = (exports, definition) => {
|
|
208
|
+
/******/ for(var key in definition) {
|
|
209
|
+
/******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
|
|
210
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
211
|
+
/******/ }
|
|
212
|
+
/******/ }
|
|
213
|
+
/******/ };
|
|
214
|
+
/******/ })();
|
|
215
|
+
/******/
|
|
216
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
217
|
+
/******/ (() => {
|
|
218
|
+
/******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
219
|
+
/******/ })();
|
|
220
|
+
/******/
|
|
221
|
+
/******/ /* webpack/runtime/export webpack runtime */
|
|
222
|
+
/******/ export { __nuri_require__ };
|
|
223
|
+
/******/
|
|
224
|
+
/******/ /* webpack/runtime/import chunk loading */
|
|
225
|
+
/******/ (() => {
|
|
226
|
+
/******/ // no baseURI
|
|
227
|
+
/******/
|
|
228
|
+
/******/ // object to store loaded and loading chunks
|
|
229
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
230
|
+
/******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
|
|
231
|
+
/******/ var installedChunks = {
|
|
232
|
+
/******/ 1774: 0
|
|
233
|
+
/******/ };
|
|
234
|
+
/******/
|
|
235
|
+
/******/ var installChunk = (data) => {
|
|
236
|
+
/******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
|
|
237
|
+
/******/ // add "modules" to the modules object,
|
|
238
|
+
/******/ // then flag all "ids" as loaded and fire callback
|
|
239
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
240
|
+
/******/ for(moduleId in __webpack_esm_modules__) {
|
|
241
|
+
/******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
|
|
242
|
+
/******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
|
|
243
|
+
/******/ }
|
|
244
|
+
/******/ }
|
|
245
|
+
/******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
|
|
246
|
+
/******/ for(;i < __webpack_esm_ids__.length; i++) {
|
|
247
|
+
/******/ chunkId = __webpack_esm_ids__[i];
|
|
248
|
+
/******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
249
|
+
/******/ installedChunks[chunkId][0]();
|
|
250
|
+
/******/ }
|
|
251
|
+
/******/ installedChunks[__webpack_esm_ids__[i]] = 0;
|
|
252
|
+
/******/ }
|
|
253
|
+
/******/ __nuri_require__.O();
|
|
254
|
+
/******/ }
|
|
255
|
+
/******/
|
|
256
|
+
/******/ // no chunk on demand loading
|
|
257
|
+
/******/
|
|
258
|
+
/******/ // no prefetching
|
|
259
|
+
/******/
|
|
260
|
+
/******/ // no preloaded
|
|
261
|
+
/******/
|
|
262
|
+
/******/ __nuri_require__.C = installChunk;
|
|
263
|
+
/******/
|
|
264
|
+
/******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
265
|
+
/******/ // no HMR
|
|
266
|
+
/******/
|
|
267
|
+
/******/ // no HMR manifest
|
|
268
|
+
/******/ })();
|
|
269
|
+
/******/
|
|
270
|
+
/************************************************************************/
|
|
271
|
+
/******/
|
|
272
|
+
/******/ import * as __webpack_chunk_1__ from "./chunk-3274.js";
|
|
273
|
+
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
274
|
+
/******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
|
|
275
|
+
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
276
|
+
/******/
|
|
277
|
+
/******/ // startup
|
|
278
|
+
/******/ // Load entry module and return exports
|
|
279
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
280
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335], () => (__nuri_require__(3811)))
|
|
281
|
+
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
282
|
+
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
283
|
+
/******/ export { __webpack_exports__default as default };
|
|
284
|
+
/******/
|
package/dist/tabs.js
CHANGED
|
@@ -17,6 +17,8 @@ __nuri_require__.d(__webpack_exports__, {
|
|
|
17
17
|
var jsx_runtime_ = __nuri_require__(612);
|
|
18
18
|
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
|
|
19
19
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
20
|
+
// EXTERNAL MODULE: ./helpers/hooks/useScrollStart.ts
|
|
21
|
+
var useScrollStart = __nuri_require__(2344);
|
|
20
22
|
// EXTERNAL MODULE: ./helpers/hooks/useTrack.ts
|
|
21
23
|
var useTrack = __nuri_require__(4560);
|
|
22
24
|
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
@@ -27,6 +29,8 @@ var getMergedProps = __nuri_require__(7335);
|
|
|
27
29
|
var icon = __nuri_require__(3547);
|
|
28
30
|
// EXTERNAL MODULE: external {"root":"RadixUI","commonjs2":"radix-ui","commonjs":"radix-ui","amd":"radix-ui","module":"radix-ui"}
|
|
29
31
|
var external_root_RadixUI_commonjs2_radix_ui_commonjs_radix_ui_amd_radix_ui_module_radix_ui_ = __nuri_require__(0);
|
|
32
|
+
// EXTERNAL MODULE: ./helpers/hooks/useIndicatorPosition.ts
|
|
33
|
+
var useIndicatorPosition = __nuri_require__(5949);
|
|
30
34
|
;// ./components/tabs/base-tabs.tsx
|
|
31
35
|
var __assign = undefined && undefined.__assign || function () {
|
|
32
36
|
__assign = Object.assign || function (t) {
|
|
@@ -50,6 +54,7 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
50
54
|
|
|
51
55
|
|
|
52
56
|
|
|
57
|
+
|
|
53
58
|
var TabsRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
54
59
|
var children = props.children,
|
|
55
60
|
className = props.className,
|
|
@@ -109,51 +114,11 @@ TabsContent.displayName = 'TabsContent';
|
|
|
109
114
|
var TabsIndicator = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
110
115
|
var className = props.className,
|
|
111
116
|
restProps = __rest(props, ["className"]);
|
|
112
|
-
var _a = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)({
|
|
113
|
-
left: 0,
|
|
114
|
-
width: 0
|
|
115
|
-
}),
|
|
116
|
-
position = _a[0],
|
|
117
|
-
setPosition = _a[1];
|
|
118
117
|
var indicatorRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)(null);
|
|
119
118
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useImperativeHandle)(ref, function () {
|
|
120
119
|
return indicatorRef.current;
|
|
121
120
|
});
|
|
122
|
-
(0,
|
|
123
|
-
var _a;
|
|
124
|
-
var listEl = (_a = indicatorRef.current) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
125
|
-
if (!listEl) return;
|
|
126
|
-
var update = function update() {
|
|
127
|
-
var activeTab = listEl.querySelector('[role="tab"][data-state="active"]');
|
|
128
|
-
if (activeTab) {
|
|
129
|
-
setPosition({
|
|
130
|
-
left: activeTab.offsetLeft,
|
|
131
|
-
width: activeTab.offsetWidth
|
|
132
|
-
});
|
|
133
|
-
} else {
|
|
134
|
-
setPosition({
|
|
135
|
-
left: 0,
|
|
136
|
-
width: 0
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
};
|
|
140
|
-
var observer = new MutationObserver(update);
|
|
141
|
-
observer.observe(listEl, {
|
|
142
|
-
attributes: true,
|
|
143
|
-
subtree: true,
|
|
144
|
-
attributeFilter: ['data-state']
|
|
145
|
-
});
|
|
146
|
-
update();
|
|
147
|
-
window.addEventListener('resize', update);
|
|
148
|
-
return function () {
|
|
149
|
-
observer.disconnect();
|
|
150
|
-
window.removeEventListener('resize', update);
|
|
151
|
-
};
|
|
152
|
-
}, []);
|
|
153
|
-
var positionStyle = {
|
|
154
|
-
left: "".concat(position.left, "px"),
|
|
155
|
-
width: "".concat(position.width, "px")
|
|
156
|
-
};
|
|
121
|
+
var positionStyle = (0,useIndicatorPosition/* useIndicatorPosition */.C)(indicatorRef, '[role="tab"][data-state="active"]');
|
|
157
122
|
return (0,jsx_runtime_.jsx)("div", __assign({
|
|
158
123
|
ref: indicatorRef,
|
|
159
124
|
className: (0,classNames/* classNames */.x)('nuri-theme base-tabs indicator', className),
|
|
@@ -205,9 +170,7 @@ var tabs_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
205
170
|
|
|
206
171
|
|
|
207
172
|
|
|
208
|
-
|
|
209
|
-
return typeof window.matchMedia === 'function' && window.matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
210
|
-
};
|
|
173
|
+
|
|
211
174
|
var Tabs = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
212
175
|
var rootClassName = (0,getMergedProps/* getMergedProps */.p)(props, {}).className;
|
|
213
176
|
var _a = (0,getMergedProps/* getMergedProps */.p)(props, tabsProps),
|
|
@@ -226,30 +189,9 @@ var Tabs = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_am
|
|
|
226
189
|
trackProps: trackProps
|
|
227
190
|
});
|
|
228
191
|
var listRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)(null);
|
|
229
|
-
var _d = (0,
|
|
230
|
-
scrolled = _d
|
|
231
|
-
|
|
232
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useEffect)(function () {
|
|
233
|
-
var list = listRef.current;
|
|
234
|
-
if (!list) return undefined;
|
|
235
|
-
var update = function update() {
|
|
236
|
-
return setScrolled(list.scrollLeft > 0);
|
|
237
|
-
};
|
|
238
|
-
update();
|
|
239
|
-
list.addEventListener('scroll', update, {
|
|
240
|
-
passive: true
|
|
241
|
-
});
|
|
242
|
-
return function () {
|
|
243
|
-
return list.removeEventListener('scroll', update);
|
|
244
|
-
};
|
|
245
|
-
}, []);
|
|
246
|
-
var scrollToStart = function scrollToStart() {
|
|
247
|
-
var _a;
|
|
248
|
-
(_a = listRef.current) === null || _a === void 0 ? void 0 : _a.scrollTo({
|
|
249
|
-
left: 0,
|
|
250
|
-
behavior: prefersReducedMotion() ? 'auto' : 'smooth'
|
|
251
|
-
});
|
|
252
|
-
};
|
|
192
|
+
var _d = (0,useScrollStart/* useScrollStart */.L)(listRef),
|
|
193
|
+
scrolled = _d.scrolled,
|
|
194
|
+
scrollToStart = _d.scrollToStart;
|
|
253
195
|
var tabsTriggerClassName = (0,classNames/* classNames */.x)(tabClassName, 'tabs-trigger', pressEffect && 'motion-press-dim', fullWidth && 'full-width');
|
|
254
196
|
var tabsContentClassName = (0,classNames/* classNames */.x)(tabClassName, 'tabs-content');
|
|
255
197
|
return (0,jsx_runtime_.jsxs)(base_tabs, tabs_assign({
|
|
@@ -482,11 +424,13 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
482
424
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
483
425
|
/******/ import * as __webpack_chunk_6__ from "./chunk-3547.js";
|
|
484
426
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
427
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-4324.js";
|
|
428
|
+
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
485
429
|
/******/
|
|
486
430
|
/******/ // startup
|
|
487
431
|
/******/ // Load entry module and return exports
|
|
488
432
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
489
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,7653,3547], () => (__nuri_require__(3973)))
|
|
433
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,7653,3547,4324], () => (__nuri_require__(3973)))
|
|
490
434
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
491
435
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
492
436
|
/******/ export { __webpack_exports__default as default };
|
package/dist/text-area.js
CHANGED
|
@@ -52,21 +52,25 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
52
52
|
|
|
53
53
|
|
|
54
54
|
var TextAreaContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createContext)({
|
|
55
|
-
value: '',
|
|
56
55
|
onChange: function onChange() {}
|
|
57
56
|
});
|
|
58
57
|
// context 만 내려주고 DOM 을 그리지 않아 ref 를 받을 곳이 없다.
|
|
59
58
|
var TextAreaRootBase = function TextAreaRootBase(props) {
|
|
60
59
|
var children = props.children,
|
|
61
60
|
value = props.value,
|
|
61
|
+
defaultValue = props.defaultValue,
|
|
62
62
|
onChange = props.onChange;
|
|
63
|
-
return (
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
63
|
+
return (
|
|
64
|
+
// controlled 면 defaultValue 를 textarea 에 같이 주지 않는다 (React 가 둘 다 있다고 경고한다)
|
|
65
|
+
(0,jsx_runtime_.jsx)(TextAreaContext.Provider, {
|
|
66
|
+
value: {
|
|
67
|
+
value: value,
|
|
68
|
+
defaultValue: value === undefined ? defaultValue : undefined,
|
|
69
|
+
onChange: onChange
|
|
70
|
+
},
|
|
71
|
+
children: children
|
|
72
|
+
})
|
|
73
|
+
);
|
|
70
74
|
};
|
|
71
75
|
TextAreaRootBase.displayName = 'TextAreaRoot';
|
|
72
76
|
var TextAreaLabel = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
@@ -87,6 +91,7 @@ var TextAreaTextarea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commo
|
|
|
87
91
|
restProps = __rest(props, ["className", "disabled"]);
|
|
88
92
|
var _a = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useContext)(TextAreaContext),
|
|
89
93
|
value = _a.value,
|
|
94
|
+
defaultValue = _a.defaultValue,
|
|
90
95
|
onChange = _a.onChange;
|
|
91
96
|
return (0,jsx_runtime_.jsx)("textarea", __assign({
|
|
92
97
|
ref: ref,
|
|
@@ -94,8 +99,9 @@ var TextAreaTextarea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commo
|
|
|
94
99
|
disabled: disabled,
|
|
95
100
|
"data-disabled": disabled || undefined
|
|
96
101
|
}, restProps, {
|
|
97
|
-
// 값은 Root 가
|
|
102
|
+
// 값은 Root 가 정한다. 넘겨받은 value·onChange 가 Root 를 덮지 않게 spread 뒤에 둔다.
|
|
98
103
|
value: value,
|
|
104
|
+
defaultValue: defaultValue,
|
|
99
105
|
onChange: onChange
|
|
100
106
|
}));
|
|
101
107
|
});
|
|
@@ -222,7 +228,8 @@ var TextArea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
|
|
|
222
228
|
};
|
|
223
229
|
var showClear = clearable && currentValue !== '' && engaged && !disabled && !readOnly;
|
|
224
230
|
return (0,jsx_runtime_.jsx)(base_text_area, {
|
|
225
|
-
value:
|
|
231
|
+
value: value,
|
|
232
|
+
defaultValue: defaultValue,
|
|
226
233
|
onChange: handleChange,
|
|
227
234
|
children: (0,jsx_runtime_.jsxs)("div", {
|
|
228
235
|
className: 'text-area',
|
|
@@ -239,6 +246,8 @@ var TextArea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
|
|
|
239
246
|
readOnly: readOnly,
|
|
240
247
|
"aria-invalid": isError || undefined,
|
|
241
248
|
onFocus: function onFocus(e) {
|
|
249
|
+
// uncontrolled 면 ref 로 바뀐 값(react-hook-form)을 여기서 읽어 지우기 버튼에 맞춘다
|
|
250
|
+
if (value === undefined) setInnerValue(e.target.value);
|
|
242
251
|
focusedValueRef.current = e.target.value;
|
|
243
252
|
_onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(e);
|
|
244
253
|
},
|
|
@@ -429,19 +438,21 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
429
438
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
430
439
|
/******/ import * as __webpack_chunk_5__ from "./chunk-3547.js";
|
|
431
440
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
432
|
-
/******/ import * as __webpack_chunk_6__ from "./chunk-
|
|
441
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-7232.js";
|
|
433
442
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
434
|
-
/******/ import * as __webpack_chunk_7__ from "./chunk-
|
|
443
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-4917.js";
|
|
435
444
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
436
|
-
/******/ import * as __webpack_chunk_8__ from "./chunk-
|
|
445
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-4558.js";
|
|
437
446
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
438
|
-
/******/ import * as __webpack_chunk_9__ from "./chunk-
|
|
447
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-7739.js";
|
|
439
448
|
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
449
|
+
/******/ import * as __webpack_chunk_10__ from "./chunk-7302.js";
|
|
450
|
+
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
440
451
|
/******/
|
|
441
452
|
/******/ // startup
|
|
442
453
|
/******/ // Load entry module and return exports
|
|
443
454
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
444
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7653,3547,4917,4558,7739,7302], () => (__nuri_require__(4794)))
|
|
455
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7653,3547,7232,4917,4558,7739,7302], () => (__nuri_require__(4794)))
|
|
445
456
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
446
457
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
447
458
|
/******/ export { __webpack_exports__default as default };
|