@nurihaus/web-design-system 3.9.2 → 3.9.4
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/preview.d.ts +49 -0
- package/dist/.storybook/usage.d.ts +23 -0
- package/dist/agreement.js +1110 -0
- package/dist/ai/components.md +4159 -335
- package/dist/ai/motion.md +209 -135
- package/dist/ai/tokens.md +331 -145
- package/dist/alphabet-keypad.js +446 -0
- package/dist/asset.js +370 -0
- package/dist/avatar.js +251 -34
- 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 +33 -5
- package/dist/bottom-sheet.js +608 -0
- package/dist/breadcrumb.js +6 -3
- package/dist/card.js +5 -2
- package/dist/check-box.js +43 -140
- package/dist/chip-group.js +50 -12
- package/dist/chunk-1563.js +42 -18
- package/dist/chunk-1657.js +7 -3
- package/dist/{chunk-9387.js → chunk-1768.js} +2 -2
- package/dist/chunk-1983.js +136 -0
- 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-3297.js +130 -0
- package/dist/chunk-3640.js +94 -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 +18 -118
- package/dist/chunk-4577.js +35 -0
- package/dist/chunk-4917.js +1 -1
- package/dist/chunk-5302.js +111 -0
- package/dist/chunk-5670.js +94 -0
- package/dist/chunk-6096.js +176 -0
- package/dist/chunk-6302.js +10 -10
- package/dist/chunk-6478.js +155 -0
- package/dist/chunk-6499.js +39 -0
- package/dist/{chunk-5226.js → chunk-6616.js} +47 -42
- package/dist/chunk-6706.js +64 -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-7302.js +66 -0
- package/dist/chunk-7460.js +204 -0
- 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-8734.js +33 -0
- package/dist/chunk-8787.js +80 -0
- package/dist/chunk-8933.js +14 -2
- package/dist/chunk-8982.js +186 -0
- package/dist/chunk-910.js +82 -27
- package/dist/chunk-948.js +166 -0
- package/dist/chunk-9497.js +11 -1
- package/dist/collapsible-menu.js +39 -14
- 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-props.d.ts +43 -0
- package/dist/components/asset/asset-type.d.ts +71 -0
- package/dist/components/asset/asset.d.ts +23 -0
- package/dist/components/asset/asset.stories.d.ts +71 -0
- package/dist/components/asset/base-asset.d.ts +11 -0
- package/dist/components/avatar/avatar-props.d.ts +1 -0
- package/dist/components/avatar/avatar-type.d.ts +6 -4
- package/dist/components/avatar/avatar.stories.d.ts +10 -0
- package/dist/components/badge/badge-type.d.ts +10 -4
- package/dist/components/badge/badge.stories.d.ts +15 -0
- 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 +12 -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-nav/bottom-nav-type.d.ts +2 -1
- package/dist/components/bottom-nav/bottom-nav.stories.d.ts +16 -1
- 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/breadcrumb/breadcrumb-type.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb.stories.d.ts +15 -0
- package/dist/components/button/button-appearance.d.ts +50 -0
- package/dist/components/button/button-props.d.ts +12 -3
- package/dist/components/button/button-type.d.ts +14 -4
- package/dist/components/button/button.stories.d.ts +34 -3
- package/dist/components/button/cta-button.d.ts +1 -1
- package/dist/components/callout/callout.stories.d.ts +11 -0
- package/dist/components/card/card-type.d.ts +2 -1
- package/dist/components/card/card.stories.d.ts +9 -0
- package/dist/components/check-box/check-box-props.d.ts +8 -0
- package/dist/components/check-box/check-box-type.d.ts +10 -3
- package/dist/components/check-box/check-box.stories.d.ts +32 -1
- package/dist/components/chip-group/chip-group-props.d.ts +13 -1
- package/dist/components/chip-group/chip-group-type.d.ts +5 -1
- package/dist/components/chip-group/chip-group.stories.d.ts +30 -0
- package/dist/components/collapsible-menu/collapsible-menu-type.d.ts +6 -2
- package/dist/components/collapsible-menu/collapsible-menu.stories.d.ts +12 -0
- package/dist/components/core/composer/index.d.ts +2 -0
- package/dist/components/description-list/description-list.stories.d.ts +7 -0
- package/dist/components/drawer/base-drawer.d.ts +2 -4
- package/dist/components/drawer/drawer-type.d.ts +17 -2
- package/dist/components/drawer/drawer.stories.d.ts +21 -0
- package/dist/components/drop-down/drop-down-type.d.ts +4 -2
- package/dist/components/drop-down/drop-down.stories.d.ts +16 -0
- package/dist/components/elements/text/text-props.d.ts +4 -3
- package/dist/components/elements/text/text-type.d.ts +3 -2
- package/dist/components/elements/text/text.stories.d.ts +13 -1
- 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 +328 -11
- 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 +11 -1
- package/dist/components/icon-button/icon-button-type.d.ts +4 -1
- package/dist/components/icon-button/icon-button.stories.d.ts +11 -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 +9 -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 +33 -9
- package/dist/components/list/list-type.d.ts +46 -3
- package/dist/components/loading/index.d.ts +4 -0
- package/dist/components/loading/inline-loading/base-inline-loading.d.ts +3 -2
- package/dist/components/loading/inline-loading/inline-loading-props.d.ts +3 -0
- package/dist/components/loading/inline-loading/inline-loading-type.d.ts +6 -6
- package/dist/components/loading/inline-loading/inline-loading.stories.d.ts +28 -2
- package/dist/components/loading/loading-dots/base-loading-dots.d.ts +4 -0
- package/dist/components/loading/loading-dots/loading-dots-props.d.ts +4 -0
- package/dist/components/loading/loading-dots/loading-dots-type.d.ts +6 -0
- package/dist/components/loading/loading-dots/loading-dots.d.ts +4 -0
- package/dist/components/loading/loading-dots/loading-dots.stories.d.ts +37 -0
- package/dist/components/loading/loading-props.d.ts +9 -0
- package/dist/components/loading/loading-type.d.ts +9 -0
- package/dist/components/loading/loading.stories.d.ts +15 -0
- package/dist/components/loading/overlay-loading/overlay-loading-type.d.ts +4 -0
- package/dist/components/loading/overlay-loading/overlay-loading.stories.d.ts +17 -0
- package/dist/components/loading/progress-bar/base-progress-bar.d.ts +3 -0
- package/dist/components/loading/progress-bar/progress-bar-props.d.ts +4 -0
- package/dist/components/loading/progress-bar/progress-bar-type.d.ts +19 -0
- package/dist/components/loading/progress-bar/progress-bar.d.ts +4 -0
- package/dist/components/loading/progress-bar/progress-bar.stories.d.ts +63 -0
- package/dist/components/loading/spinner/spinner-props.d.ts +4 -1
- package/dist/components/loading/spinner/spinner-type.d.ts +3 -1
- package/dist/components/loading/spinner/spinner.d.ts +2 -1
- package/dist/components/loading/spinner/spinner.stories.d.ts +30 -4
- package/dist/components/logging/logging-type.d.ts +1 -1
- package/dist/components/logging/logging.stories.d.ts +5 -0
- package/dist/components/media/media-thumbnail.stories.d.ts +9 -0
- package/dist/components/media/media-type.d.ts +2 -1
- package/dist/components/media/media-viewer.stories.d.ts +7 -0
- 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 +16 -9
- package/dist/components/message-composer/message-composer-type.d.ts +2 -1
- package/dist/components/message-composer/message-composer.stories.d.ts +10 -0
- package/dist/components/modal/modal-type.d.ts +22 -3
- package/dist/components/modal/modal-with-double-button.stories.d.ts +15 -0
- package/dist/components/modal/modal.stories.d.ts +16 -0
- package/dist/components/motion/motion.stories.d.ts +7 -0
- package/dist/components/notice/notice-type.d.ts +1 -1
- package/dist/components/notice/notice.stories.d.ts +12 -5
- 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 +44 -0
- package/dist/components/overlay/overlay-provider.d.ts +6 -0
- package/dist/components/overlay/overlay-type.d.ts +68 -0
- package/dist/components/overlay/overlay.d.ts +5 -0
- package/dist/components/overlay/overlay.stories.d.ts +36 -0
- package/dist/components/overlay/use-bottom-sheet.d.ts +3 -0
- package/dist/components/overlay/use-dialog.d.ts +3 -0
- package/dist/components/overlay/use-toast.d.ts +3 -0
- package/dist/components/pagination/pagination-type.d.ts +2 -1
- package/dist/components/pagination/pagination.stories.d.ts +15 -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/radio/base-radio.d.ts +5 -2
- package/dist/components/radio/radio-type.d.ts +11 -3
- package/dist/components/radio/radio.stories.d.ts +20 -2
- 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/base-skeleton.d.ts +7 -3
- package/dist/components/skeleton/skeleton-group-props.d.ts +4 -0
- package/dist/components/skeleton/skeleton-group-type.d.ts +47 -0
- package/dist/components/skeleton/skeleton-group.d.ts +4 -0
- package/dist/components/skeleton/skeleton-group.stories.d.ts +57 -0
- package/dist/components/skeleton/skeleton-type.d.ts +1 -0
- package/dist/components/skeleton/skeleton.stories.d.ts +18 -7
- 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/step-progress/step-progress-props.d.ts +10 -0
- package/dist/components/step-progress/step-progress-type.d.ts +22 -3
- package/dist/components/step-progress/step-progress.d.ts +1 -1
- package/dist/components/step-progress/step-progress.stories.d.ts +40 -0
- package/dist/components/switch/base-switch.d.ts +2 -4
- package/dist/components/switch/switch-type.d.ts +5 -2
- package/dist/components/switch/switch.stories.d.ts +22 -0
- package/dist/components/table/table-type.d.ts +2 -1
- package/dist/components/table/table.stories.d.ts +23 -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/tabs/tabs-type.d.ts +4 -1
- package/dist/components/tabs/tabs.stories.d.ts +17 -0
- package/dist/components/tag/tag-type.d.ts +2 -1
- package/dist/components/tag/tag.stories.d.ts +9 -0
- package/dist/components/text-area/base-text-area.d.ts +2 -1
- package/dist/components/text-area/text-area-type.d.ts +11 -3
- package/dist/components/text-area/text-area.stories.d.ts +15 -0
- 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/base-text-field.d.ts +12 -6
- package/dist/components/text-field/text-field-type.d.ts +39 -7
- package/dist/components/text-field/text-field.stories.d.ts +32 -5
- package/dist/components/toast/toast-type.d.ts +4 -1
- package/dist/components/toast/toast.stories.d.ts +22 -7
- package/dist/components/tooltip/tooltip-type.d.ts +4 -1
- package/dist/components/tooltip/tooltip.stories.d.ts +11 -0
- 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 +4192 -860
- package/dist/cta-button.js +96 -33
- package/dist/data-table.js +5 -3
- package/dist/drawer.js +90 -119
- package/dist/drop-down.js +19 -11
- 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/useCloseOnBackEvent.d.ts +12 -0
- package/dist/helpers/hooks/useFieldClear.d.ts +21 -0
- package/dist/helpers/hooks/useIndicatorPosition.d.ts +7 -0
- package/dist/helpers/hooks/useKeyboardInset.d.ts +5 -0
- package/dist/helpers/hooks/useReturnFocus.d.ts +9 -0
- package/dist/helpers/hooks/useScrollStart.d.ts +9 -0
- package/dist/helpers/motion/appear.d.ts +3 -0
- package/dist/helpers/motion/effects.d.ts +9 -0
- package/dist/helpers/motion/motion-props.d.ts +35 -0
- package/dist/helpers/motion/stagger.d.ts +3 -0
- package/dist/helpers/motion/use-appear.d.ts +12 -0
- package/dist/helpers/motion/use-attention-handle.d.ts +7 -0
- package/dist/helpers/motion/use-confirm-spring.d.ts +7 -0
- package/dist/helpers/motion/use-effect-trigger.d.ts +11 -0
- package/dist/helpers/motion/use-hide-on-scroll.d.ts +12 -0
- package/dist/helpers/motion/use-presence-callbacks.d.ts +13 -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 +55 -96
- package/dist/icon-text-badge.js +29 -17
- package/dist/icon-text-option-badge.js +21 -13
- package/dist/index.d.ts +60 -5
- package/dist/index.js +15039 -5437
- 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 +246 -26
- package/dist/loading.js +203 -40
- package/dist/media-thumbnail.js +11 -7
- package/dist/menu.js +527 -0
- package/dist/message-composer.js +15 -11
- package/dist/modal-with-double-button.js +76 -54
- package/dist/modal.js +97 -29
- package/dist/notice.js +19 -11
- package/dist/number-keypad.js +436 -0
- package/dist/numeric-spinner.js +396 -0
- package/dist/option-badge.js +29 -17
- package/dist/overlay.js +1747 -0
- package/dist/pagination.js +13 -9
- package/dist/paragraph.js +286 -0
- package/dist/post.js +568 -0
- package/dist/radio.js +119 -21
- package/dist/rating.js +437 -0
- package/dist/scripts/usage-doc.d.mts +83 -0
- package/dist/search-field.js +516 -0
- package/dist/segmented-control.js +409 -0
- package/dist/skeleton-group.js +322 -0
- package/dist/skeleton.js +26 -112
- package/dist/slider.js +419 -0
- package/dist/split-text-field.js +498 -0
- package/dist/step-progress.js +125 -16
- package/dist/styles.css +4063 -838
- package/dist/switch.js +91 -17
- package/dist/table-row.js +284 -0
- package/dist/tabs.js +62 -64
- package/dist/tag.js +4 -2
- package/dist/text-area.js +83 -31
- package/dist/text-button.js +357 -0
- package/dist/text-field.js +126 -156
- package/dist/text.js +5 -7
- package/dist/toast.js +100 -241
- package/dist/tokens/generated/motion.d.ts +21 -4
- package/dist/tokens/generated/semantic-admin.d.ts +103 -46
- package/dist/tokens/generated/semantic-app.d.ts +164 -16
- package/dist/tokens.css +636 -105
- package/dist/tokens.js +293 -71
- package/dist/tooltip.js +50 -22
- package/dist/top.js +312 -0
- package/package.json +120 -2
package/dist/tabs.js
CHANGED
|
@@ -17,14 +17,20 @@ __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
|
|
23
25
|
var classNames = __nuri_require__(3274);
|
|
24
26
|
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
25
27
|
var getMergedProps = __nuri_require__(7335);
|
|
28
|
+
// EXTERNAL MODULE: ./components/icon/icon.tsx
|
|
29
|
+
var icon = __nuri_require__(3547);
|
|
26
30
|
// EXTERNAL MODULE: external {"root":"RadixUI","commonjs2":"radix-ui","commonjs":"radix-ui","amd":"radix-ui","module":"radix-ui"}
|
|
27
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);
|
|
28
34
|
;// ./components/tabs/base-tabs.tsx
|
|
29
35
|
var __assign = undefined && undefined.__assign || function () {
|
|
30
36
|
__assign = Object.assign || function (t) {
|
|
@@ -48,6 +54,7 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
48
54
|
|
|
49
55
|
|
|
50
56
|
|
|
57
|
+
|
|
51
58
|
var TabsRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
52
59
|
var children = props.children,
|
|
53
60
|
className = props.className,
|
|
@@ -107,51 +114,11 @@ TabsContent.displayName = 'TabsContent';
|
|
|
107
114
|
var TabsIndicator = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
108
115
|
var className = props.className,
|
|
109
116
|
restProps = __rest(props, ["className"]);
|
|
110
|
-
var _a = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)({
|
|
111
|
-
left: 0,
|
|
112
|
-
width: 0
|
|
113
|
-
}),
|
|
114
|
-
position = _a[0],
|
|
115
|
-
setPosition = _a[1];
|
|
116
117
|
var indicatorRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)(null);
|
|
117
118
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useImperativeHandle)(ref, function () {
|
|
118
119
|
return indicatorRef.current;
|
|
119
120
|
});
|
|
120
|
-
(0,
|
|
121
|
-
var _a;
|
|
122
|
-
var listEl = (_a = indicatorRef.current) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
123
|
-
if (!listEl) return;
|
|
124
|
-
var update = function update() {
|
|
125
|
-
var activeTab = listEl.querySelector('[role="tab"][data-state="active"]');
|
|
126
|
-
if (activeTab) {
|
|
127
|
-
setPosition({
|
|
128
|
-
left: activeTab.offsetLeft,
|
|
129
|
-
width: activeTab.offsetWidth
|
|
130
|
-
});
|
|
131
|
-
} else {
|
|
132
|
-
setPosition({
|
|
133
|
-
left: 0,
|
|
134
|
-
width: 0
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
};
|
|
138
|
-
var observer = new MutationObserver(update);
|
|
139
|
-
observer.observe(listEl, {
|
|
140
|
-
attributes: true,
|
|
141
|
-
subtree: true,
|
|
142
|
-
attributeFilter: ['data-state']
|
|
143
|
-
});
|
|
144
|
-
update();
|
|
145
|
-
window.addEventListener('resize', update);
|
|
146
|
-
return function () {
|
|
147
|
-
observer.disconnect();
|
|
148
|
-
window.removeEventListener('resize', update);
|
|
149
|
-
};
|
|
150
|
-
}, []);
|
|
151
|
-
var positionStyle = {
|
|
152
|
-
left: "".concat(position.left, "px"),
|
|
153
|
-
width: "".concat(position.width, "px")
|
|
154
|
-
};
|
|
121
|
+
var positionStyle = (0,useIndicatorPosition/* useIndicatorPosition */.C)(indicatorRef, '[role="tab"][data-state="active"]');
|
|
155
122
|
return (0,jsx_runtime_.jsx)("div", __assign({
|
|
156
123
|
ref: indicatorRef,
|
|
157
124
|
className: (0,classNames/* classNames */.x)('nuri-theme base-tabs indicator', className),
|
|
@@ -202,6 +169,8 @@ var tabs_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
202
169
|
|
|
203
170
|
|
|
204
171
|
|
|
172
|
+
|
|
173
|
+
|
|
205
174
|
var Tabs = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
206
175
|
var rootClassName = (0,getMergedProps/* getMergedProps */.p)(props, {}).className;
|
|
207
176
|
var _a = (0,getMergedProps/* getMergedProps */.p)(props, tabsProps),
|
|
@@ -210,12 +179,20 @@ var Tabs = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_am
|
|
|
210
179
|
_onValueChange = _a.onValueChange,
|
|
211
180
|
track = _a.track,
|
|
212
181
|
trackProps = _a.trackProps,
|
|
213
|
-
|
|
182
|
+
_b = _a.pressEffect,
|
|
183
|
+
pressEffect = _b === void 0 ? true : _b,
|
|
184
|
+
_c = _a.fullWidth,
|
|
185
|
+
fullWidth = _c === void 0 ? false : _c,
|
|
186
|
+
restProps = tabs_rest(_a, ["items", "className", "onValueChange", "track", "trackProps", "pressEffect", "fullWidth"]);
|
|
214
187
|
var emit = (0,useTrack/* useTrack */.n)('Tabs', {
|
|
215
188
|
track: track,
|
|
216
189
|
trackProps: trackProps
|
|
217
190
|
});
|
|
218
|
-
var
|
|
191
|
+
var listRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)(null);
|
|
192
|
+
var _d = (0,useScrollStart/* useScrollStart */.L)(listRef),
|
|
193
|
+
scrolled = _d.scrolled,
|
|
194
|
+
scrollToStart = _d.scrollToStart;
|
|
195
|
+
var tabsTriggerClassName = (0,classNames/* classNames */.x)(tabClassName, 'tabs-trigger', pressEffect && 'motion-press-dim', fullWidth && 'full-width');
|
|
219
196
|
var tabsContentClassName = (0,classNames/* classNames */.x)(tabClassName, 'tabs-content');
|
|
220
197
|
return (0,jsx_runtime_.jsxs)(base_tabs, tabs_assign({
|
|
221
198
|
ref: ref,
|
|
@@ -225,25 +202,38 @@ var Tabs = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_am
|
|
|
225
202
|
_onValueChange === null || _onValueChange === void 0 ? void 0 : _onValueChange(id);
|
|
226
203
|
}
|
|
227
204
|
}, restProps, {
|
|
228
|
-
children: [(0,jsx_runtime_.jsxs)(
|
|
229
|
-
className:
|
|
230
|
-
children: [
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
205
|
+
children: [(0,jsx_runtime_.jsxs)("div", {
|
|
206
|
+
className: 'tabs-list-frame',
|
|
207
|
+
children: [(0,jsx_runtime_.jsxs)(base_tabs.List, {
|
|
208
|
+
ref: listRef,
|
|
209
|
+
className: (0,classNames/* classNames */.x)(tabClassName, 'tabs-list'),
|
|
210
|
+
children: [items.map(function (item) {
|
|
211
|
+
return (0,jsx_runtime_.jsx)(base_tabs.Trigger, {
|
|
212
|
+
className: tabsTriggerClassName,
|
|
213
|
+
id: item.id,
|
|
214
|
+
disabled: item.disabled,
|
|
215
|
+
children: (0,jsx_runtime_.jsxs)("span", {
|
|
216
|
+
className: 'tabs-trigger-content',
|
|
217
|
+
children: [(0,jsx_runtime_.jsx)("span", {
|
|
218
|
+
className: 'tabs-trigger-icon',
|
|
219
|
+
children: item.leftIcon
|
|
220
|
+
}), (0,jsx_runtime_.jsx)("span", {
|
|
221
|
+
children: item.label
|
|
222
|
+
})]
|
|
223
|
+
})
|
|
224
|
+
}, item.id);
|
|
225
|
+
}), (0,jsx_runtime_.jsx)(base_tabs.Indicator, {
|
|
226
|
+
className: (0,classNames/* classNames */.x)(tabClassName, 'tabs-indicator')
|
|
227
|
+
})]
|
|
228
|
+
}), scrolled && (0,jsx_runtime_.jsx)("button", {
|
|
229
|
+
type: 'button',
|
|
230
|
+
className: 'tabs-scroll-start',
|
|
231
|
+
"aria-label": "\uCC98\uC74C \uD0ED\uC73C\uB85C",
|
|
232
|
+
onClick: scrollToStart,
|
|
233
|
+
children: (0,jsx_runtime_.jsx)(icon/* default */.A, {
|
|
234
|
+
name: 'caret-left',
|
|
235
|
+
size: 's'
|
|
236
|
+
})
|
|
247
237
|
})]
|
|
248
238
|
}), items.map(function (item) {
|
|
249
239
|
return (0,jsx_runtime_.jsx)(base_tabs.Content, {
|
|
@@ -277,7 +267,7 @@ var x = (y) => {
|
|
|
277
267
|
var x = {}; __nuri_require__.d(x, y); return x
|
|
278
268
|
}
|
|
279
269
|
var y = (x) => (() => (x))
|
|
280
|
-
module.exports = x({ ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useImperativeHandle"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useImperativeHandle), ["useLayoutEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useLayoutEffect), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
|
|
270
|
+
module.exports = x({ ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useEffect), ["useImperativeHandle"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useImperativeHandle), ["useLayoutEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useLayoutEffect), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
|
|
281
271
|
|
|
282
272
|
/***/ },
|
|
283
273
|
|
|
@@ -428,11 +418,19 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
428
418
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
429
419
|
/******/ import * as __webpack_chunk_3__ from "./chunk-4560.js";
|
|
430
420
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
421
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-7298.js";
|
|
422
|
+
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
423
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-7653.js";
|
|
424
|
+
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
425
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-3547.js";
|
|
426
|
+
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
427
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-4324.js";
|
|
428
|
+
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
431
429
|
/******/
|
|
432
430
|
/******/ // startup
|
|
433
431
|
/******/ // Load entry module and return exports
|
|
434
432
|
/******/ // 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], () => (__nuri_require__(3973)))
|
|
433
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,7653,3547,4324], () => (__nuri_require__(3973)))
|
|
436
434
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
437
435
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
438
436
|
/******/ export { __webpack_exports__default as default };
|
package/dist/tag.js
CHANGED
|
@@ -106,9 +106,11 @@ var Tag = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
106
106
|
text = _a.text,
|
|
107
107
|
onRemove = _a.onRemove,
|
|
108
108
|
removeLabel = _a.removeLabel,
|
|
109
|
+
_b = _a.pressEffect,
|
|
110
|
+
pressEffect = _b === void 0 ? true : _b,
|
|
109
111
|
track = _a.track,
|
|
110
112
|
trackProps = _a.trackProps,
|
|
111
|
-
restProps = tag_rest(_a, ["className", "text", "onRemove", "removeLabel", "track", "trackProps"]);
|
|
113
|
+
restProps = tag_rest(_a, ["className", "text", "onRemove", "removeLabel", "pressEffect", "track", "trackProps"]);
|
|
112
114
|
var emit = (0,useTrack/* useTrack */.n)('Tag', {
|
|
113
115
|
track: track,
|
|
114
116
|
trackProps: trackProps
|
|
@@ -118,7 +120,7 @@ var Tag = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd
|
|
|
118
120
|
className: (0,classNames/* classNames */.x)(className, 'tag', onRemove ? 'removable' : undefined)
|
|
119
121
|
}, restProps, {
|
|
120
122
|
children: [text, onRemove && (0,jsx_runtime_.jsx)(base_tag.Remove, {
|
|
121
|
-
className: 'tag-remove',
|
|
123
|
+
className: (0,classNames/* classNames */.x)('tag-remove', pressEffect && 'motion-press'),
|
|
122
124
|
"aria-label": removeLabel,
|
|
123
125
|
onClick: function onClick() {
|
|
124
126
|
emit('click');
|
package/dist/text-area.js
CHANGED
|
@@ -16,12 +16,16 @@ __nuri_require__.d(__webpack_exports__, {
|
|
|
16
16
|
var jsx_runtime_ = __nuri_require__(612);
|
|
17
17
|
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
|
|
18
18
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
19
|
+
// EXTERNAL MODULE: ./helpers/hooks/useFieldClear.ts
|
|
20
|
+
var useFieldClear = __nuri_require__(7302);
|
|
19
21
|
// EXTERNAL MODULE: ./helpers/hooks/useTrack.ts
|
|
20
22
|
var useTrack = __nuri_require__(4560);
|
|
21
23
|
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
22
24
|
var classNames = __nuri_require__(3274);
|
|
23
25
|
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
24
26
|
var getMergedProps = __nuri_require__(7335);
|
|
27
|
+
// EXTERNAL MODULE: ./components/icon/icon.tsx
|
|
28
|
+
var icon = __nuri_require__(3547);
|
|
25
29
|
// EXTERNAL MODULE: ./components/elements/text/text.tsx
|
|
26
30
|
var text_text = __nuri_require__(7739);
|
|
27
31
|
;// ./components/text-area/base-text-area.tsx
|
|
@@ -55,23 +59,11 @@ var TextAreaContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_common
|
|
|
55
59
|
var TextAreaRootBase = function TextAreaRootBase(props) {
|
|
56
60
|
var children = props.children,
|
|
57
61
|
value = props.value,
|
|
58
|
-
onChange = props.onChange
|
|
59
|
-
defaultValue = props.defaultValue;
|
|
60
|
-
var isControlled = value !== undefined;
|
|
61
|
-
var _a = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : ''),
|
|
62
|
-
innerValue = _a[0],
|
|
63
|
-
setInnerValue = _a[1];
|
|
64
|
-
var textareaValue = isControlled ? value !== null && value !== void 0 ? value : '' : innerValue;
|
|
65
|
-
var handleChange = function handleChange(e) {
|
|
66
|
-
if (!isControlled) {
|
|
67
|
-
setInnerValue(e.target.value);
|
|
68
|
-
}
|
|
69
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
70
|
-
};
|
|
62
|
+
onChange = props.onChange;
|
|
71
63
|
return (0,jsx_runtime_.jsx)(TextAreaContext.Provider, {
|
|
72
64
|
value: {
|
|
73
|
-
value:
|
|
74
|
-
onChange:
|
|
65
|
+
value: value,
|
|
66
|
+
onChange: onChange
|
|
75
67
|
},
|
|
76
68
|
children: children
|
|
77
69
|
});
|
|
@@ -108,6 +100,23 @@ var TextAreaTextarea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commo
|
|
|
108
100
|
}));
|
|
109
101
|
});
|
|
110
102
|
TextAreaTextarea.displayName = 'TextAreaTextarea';
|
|
103
|
+
var TextAreaAction = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
104
|
+
var className = props.className,
|
|
105
|
+
_onMouseDown = props.onMouseDown,
|
|
106
|
+
restProps = __rest(props, ["className", "onMouseDown"]);
|
|
107
|
+
return (0,jsx_runtime_.jsx)("button", __assign({
|
|
108
|
+
ref: ref,
|
|
109
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-text-area action', className),
|
|
110
|
+
type: 'button'
|
|
111
|
+
}, restProps, {
|
|
112
|
+
// 눌러도 포커스가 textarea 에 남아야 자판이 닫히지 않는다. 넘겨받은 onMouseDown 이 덮지 않게 spread 뒤에 둔다.
|
|
113
|
+
onMouseDown: function onMouseDown(e) {
|
|
114
|
+
e.preventDefault();
|
|
115
|
+
_onMouseDown === null || _onMouseDown === void 0 ? void 0 : _onMouseDown(e);
|
|
116
|
+
}
|
|
117
|
+
}));
|
|
118
|
+
});
|
|
119
|
+
TextAreaAction.displayName = 'TextAreaAction';
|
|
111
120
|
var TextAreaHelperText = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
112
121
|
var text = props.text,
|
|
113
122
|
className = props.className;
|
|
@@ -123,6 +132,7 @@ TextAreaHelperText.displayName = 'TextAreaHelperText';
|
|
|
123
132
|
var TextAreaRoot = Object.assign(TextAreaRootBase, {
|
|
124
133
|
Label: TextAreaLabel,
|
|
125
134
|
Textarea: TextAreaTextarea,
|
|
135
|
+
Action: TextAreaAction,
|
|
126
136
|
HelperText: TextAreaHelperText
|
|
127
137
|
});
|
|
128
138
|
/* harmony default export */ const base_text_area = (TextAreaRoot);
|
|
@@ -168,6 +178,8 @@ var text_area_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
168
178
|
|
|
169
179
|
|
|
170
180
|
|
|
181
|
+
|
|
182
|
+
|
|
171
183
|
var TextArea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
172
184
|
var _a = (0,getMergedProps/* getMergedProps */.p)(props, textAreaProps),
|
|
173
185
|
className = _a.className,
|
|
@@ -178,30 +190,54 @@ var TextArea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
|
|
|
178
190
|
defaultValue = _a.defaultValue,
|
|
179
191
|
helperText = _a.helperText,
|
|
180
192
|
isError = _a.isError,
|
|
193
|
+
clearable = _a.clearable,
|
|
194
|
+
onClear = _a.onClear,
|
|
195
|
+
disabled = _a.disabled,
|
|
196
|
+
readOnly = _a.readOnly,
|
|
181
197
|
_onFocus = _a.onFocus,
|
|
182
198
|
_onBlur = _a.onBlur,
|
|
183
199
|
track = _a.track,
|
|
184
200
|
trackProps = _a.trackProps,
|
|
185
|
-
restProps = text_area_rest(_a, ["className", "style", "title", "value", "onChange", "defaultValue", "helperText", "isError", "onFocus", "onBlur", "track", "trackProps"]);
|
|
201
|
+
restProps = text_area_rest(_a, ["className", "style", "title", "value", "onChange", "defaultValue", "helperText", "isError", "clearable", "onClear", "disabled", "readOnly", "onFocus", "onBlur", "track", "trackProps"]);
|
|
186
202
|
var emit = (0,useTrack/* useTrack */.n)('TextArea', {
|
|
187
203
|
track: track,
|
|
188
204
|
trackProps: trackProps
|
|
189
205
|
});
|
|
190
206
|
var focusedValueRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useRef)('');
|
|
207
|
+
var _b = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : ''),
|
|
208
|
+
innerValue = _b[0],
|
|
209
|
+
setInnerValue = _b[1];
|
|
210
|
+
var currentValue = value !== null && value !== void 0 ? value : innerValue;
|
|
211
|
+
var _c = (0,useFieldClear/* useFieldClear */.h)(onClear),
|
|
212
|
+
fieldRef = _c.fieldRef,
|
|
213
|
+
engaged = _c.engaged,
|
|
214
|
+
wrapperProps = _c.wrapperProps,
|
|
215
|
+
clearProps = _c.clearProps;
|
|
216
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useImperativeHandle)(ref, function () {
|
|
217
|
+
return fieldRef.current;
|
|
218
|
+
});
|
|
219
|
+
var handleChange = function handleChange(e) {
|
|
220
|
+
if (value === undefined) setInnerValue(e.target.value);
|
|
221
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
222
|
+
};
|
|
223
|
+
var showClear = clearable && currentValue !== '' && engaged && !disabled && !readOnly;
|
|
191
224
|
return (0,jsx_runtime_.jsx)(base_text_area, {
|
|
192
|
-
value:
|
|
193
|
-
onChange:
|
|
194
|
-
defaultValue: defaultValue,
|
|
225
|
+
value: currentValue,
|
|
226
|
+
onChange: handleChange,
|
|
195
227
|
children: (0,jsx_runtime_.jsxs)("div", {
|
|
196
228
|
className: 'text-area',
|
|
197
229
|
children: [title && (0,jsx_runtime_.jsx)(base_text_area.Label, {
|
|
198
230
|
className: 'text-area-title',
|
|
199
231
|
text: title
|
|
200
|
-
}), (0,jsx_runtime_.
|
|
201
|
-
className: (0,classNames/* classNames */.x)('nuri-theme text-area-input-wrapper', className),
|
|
202
|
-
style: style
|
|
203
|
-
|
|
204
|
-
|
|
232
|
+
}), (0,jsx_runtime_.jsxs)("div", text_area_assign({
|
|
233
|
+
className: (0,classNames/* classNames */.x)('nuri-theme text-area-input-wrapper', isError && 'error', className),
|
|
234
|
+
style: style
|
|
235
|
+
}, wrapperProps, {
|
|
236
|
+
children: [(0,jsx_runtime_.jsx)(base_text_area.Textarea, text_area_assign({
|
|
237
|
+
ref: fieldRef,
|
|
238
|
+
disabled: disabled,
|
|
239
|
+
readOnly: readOnly,
|
|
240
|
+
"aria-invalid": isError || undefined,
|
|
205
241
|
onFocus: function onFocus(e) {
|
|
206
242
|
focusedValueRef.current = e.target.value;
|
|
207
243
|
_onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(e);
|
|
@@ -210,8 +246,16 @@ var TextArea = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
|
|
|
210
246
|
if (e.target.value !== focusedValueRef.current) emit('change');
|
|
211
247
|
_onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e);
|
|
212
248
|
}
|
|
213
|
-
}, restProps))
|
|
214
|
-
|
|
249
|
+
}, restProps)), showClear && (0,jsx_runtime_.jsx)(base_text_area.Action, text_area_assign({
|
|
250
|
+
className: 'text-area-action motion-press',
|
|
251
|
+
"aria-label": "\uC785\uB825 \uC9C0\uC6B0\uAE30"
|
|
252
|
+
}, clearProps, {
|
|
253
|
+
children: (0,jsx_runtime_.jsx)(icon/* default */.A, {
|
|
254
|
+
name: 'x',
|
|
255
|
+
size: 's'
|
|
256
|
+
})
|
|
257
|
+
}))]
|
|
258
|
+
})), helperText && (0,jsx_runtime_.jsx)(base_text_area.HelperText, {
|
|
215
259
|
className: (0,classNames/* classNames */.x)('text-area-helper-text', isError && 'error'),
|
|
216
260
|
text: helperText
|
|
217
261
|
})]
|
|
@@ -230,7 +274,7 @@ var x = (y) => {
|
|
|
230
274
|
var x = {}; __nuri_require__.d(x, y); return x
|
|
231
275
|
}
|
|
232
276
|
var y = (x) => (() => (x))
|
|
233
|
-
module.exports = x({ ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
|
|
277
|
+
module.exports = x({ ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useImperativeHandle"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useImperativeHandle), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
|
|
234
278
|
|
|
235
279
|
/***/ },
|
|
236
280
|
|
|
@@ -381,17 +425,25 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
381
425
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
382
426
|
/******/ import * as __webpack_chunk_3__ from "./chunk-4560.js";
|
|
383
427
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
384
|
-
/******/ import * as __webpack_chunk_4__ from "./chunk-
|
|
428
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-7653.js";
|
|
385
429
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
386
|
-
/******/ import * as __webpack_chunk_5__ from "./chunk-
|
|
430
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-3547.js";
|
|
387
431
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
388
|
-
/******/ import * as __webpack_chunk_6__ from "./chunk-
|
|
432
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-7232.js";
|
|
389
433
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
434
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-4917.js";
|
|
435
|
+
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
436
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-4558.js";
|
|
437
|
+
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
438
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-7739.js";
|
|
439
|
+
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
440
|
+
/******/ import * as __webpack_chunk_10__ from "./chunk-7302.js";
|
|
441
|
+
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
390
442
|
/******/
|
|
391
443
|
/******/ // startup
|
|
392
444
|
/******/ // Load entry module and return exports
|
|
393
445
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
394
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,4917,4558,7739], () => (__nuri_require__(4794)))
|
|
446
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7653,3547,7232,4917,4558,7739,7302], () => (__nuri_require__(4794)))
|
|
395
447
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
396
448
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
397
449
|
/******/ export { __webpack_exports__default as default };
|