@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/text-field.js
CHANGED
|
@@ -3,28 +3,21 @@ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
4
4
|
/******/ var __webpack_modules__ = ({
|
|
5
5
|
|
|
6
|
-
/***/
|
|
6
|
+
/***/ 8629
|
|
7
7
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
var
|
|
21
|
-
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
22
|
-
var classNames = __nuri_require__(3274);
|
|
23
|
-
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
24
|
-
var getMergedProps = __nuri_require__(7335);
|
|
25
|
-
// EXTERNAL MODULE: ./components/elements/text/text.tsx
|
|
26
|
-
var text_text = __nuri_require__(7739);
|
|
27
|
-
;// ./components/text-field/base-text-field.tsx
|
|
9
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
|
|
14
|
+
/* harmony import */ var _helpers_hooks_useFieldClear__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(7302);
|
|
15
|
+
/* harmony import */ var _helpers_hooks_useTrack__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(4560);
|
|
16
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(3274);
|
|
17
|
+
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(7335);
|
|
18
|
+
/* harmony import */ var _icon_icon__WEBPACK_IMPORTED_MODULE_6__ = __nuri_require__(3547);
|
|
19
|
+
/* harmony import */ var _base_text_field__WEBPACK_IMPORTED_MODULE_7__ = __nuri_require__(4709);
|
|
20
|
+
/* harmony import */ var _text_field_props__WEBPACK_IMPORTED_MODULE_8__ = __nuri_require__(244);
|
|
28
21
|
var __assign = undefined && undefined.__assign || function () {
|
|
29
22
|
__assign = Object.assign || function (t) {
|
|
30
23
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -47,174 +40,141 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
47
40
|
|
|
48
41
|
|
|
49
42
|
|
|
50
|
-
var TextFieldContext = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createContext)({
|
|
51
|
-
value: '',
|
|
52
|
-
onChange: function onChange() {}
|
|
53
|
-
});
|
|
54
|
-
// context 만 내려주고 DOM 을 그리지 않아 ref 를 받을 곳이 없다.
|
|
55
|
-
var TextFieldRootBase = function TextFieldRootBase(props) {
|
|
56
|
-
var children = props.children,
|
|
57
|
-
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 inputValue = 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
|
-
};
|
|
71
|
-
return (0,jsx_runtime_.jsx)(TextFieldContext.Provider, {
|
|
72
|
-
value: {
|
|
73
|
-
value: inputValue,
|
|
74
|
-
onChange: handleChange
|
|
75
|
-
},
|
|
76
|
-
children: children
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
TextFieldRootBase.displayName = 'TextFieldRoot';
|
|
80
|
-
var TextFieldLabel = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
81
|
-
var text = props.text,
|
|
82
|
-
className = props.className;
|
|
83
|
-
return typeof text === 'string' ? (0,jsx_runtime_.jsx)(text_text/* default */.A, {
|
|
84
|
-
ref: ref,
|
|
85
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-text-field label', className),
|
|
86
|
-
text: text,
|
|
87
|
-
size: 'sm',
|
|
88
|
-
weight: 'bold'
|
|
89
|
-
}) : text;
|
|
90
|
-
});
|
|
91
|
-
TextFieldLabel.displayName = 'TextFieldLabel';
|
|
92
|
-
var TextFieldInput = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
93
|
-
var className = props.className,
|
|
94
|
-
disabled = props.disabled,
|
|
95
|
-
restProps = __rest(props, ["className", "disabled"]);
|
|
96
|
-
var _a = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.useContext)(TextFieldContext),
|
|
97
|
-
value = _a.value,
|
|
98
|
-
onChange = _a.onChange;
|
|
99
|
-
return (0,jsx_runtime_.jsx)("input", __assign({
|
|
100
|
-
ref: ref,
|
|
101
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-text-field input', className),
|
|
102
|
-
disabled: disabled,
|
|
103
|
-
"data-disabled": disabled
|
|
104
|
-
}, restProps, {
|
|
105
|
-
// 값은 Root 가 쥔다. 넘겨받은 value·onChange 가 Root 상태를 덮지 않게 spread 뒤에 둔다.
|
|
106
|
-
value: value,
|
|
107
|
-
onChange: onChange
|
|
108
|
-
}));
|
|
109
|
-
});
|
|
110
|
-
TextFieldInput.displayName = 'TextFieldInput';
|
|
111
|
-
var TextFieldHelperText = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
112
|
-
var text = props.text,
|
|
113
|
-
className = props.className;
|
|
114
|
-
return typeof text === 'string' ? (0,jsx_runtime_.jsx)(text_text/* default */.A, {
|
|
115
|
-
ref: ref,
|
|
116
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-text-field helper-text', className),
|
|
117
|
-
text: text,
|
|
118
|
-
size: 'sm',
|
|
119
|
-
weight: 'regular'
|
|
120
|
-
}) : text;
|
|
121
|
-
});
|
|
122
|
-
TextFieldHelperText.displayName = 'TextFieldHelperText';
|
|
123
|
-
var TextFieldRoot = Object.assign(TextFieldRootBase, {
|
|
124
|
-
Label: TextFieldLabel,
|
|
125
|
-
Input: TextFieldInput,
|
|
126
|
-
HelperText: TextFieldHelperText
|
|
127
|
-
});
|
|
128
|
-
/* harmony default export */ const base_text_field = (TextFieldRoot);
|
|
129
|
-
// EXTERNAL MODULE: ./helpers/props/common-props.ts
|
|
130
|
-
var common_props = __nuri_require__(7298);
|
|
131
|
-
;// ./components/text-field/text-field-props.ts
|
|
132
43
|
|
|
133
|
-
var sizes = ['xs', 's', 'm', 'l', 'xl'];
|
|
134
|
-
var textFieldProps = {
|
|
135
|
-
size: (0,common_props/* sizeProp */.lw)(sizes, 's'),
|
|
136
|
-
width: (0,common_props/* widthProp */.Iw)('100%')
|
|
137
|
-
};
|
|
138
|
-
;// ./components/text-field/text-field.tsx
|
|
139
|
-
var text_field_assign = undefined && undefined.__assign || function () {
|
|
140
|
-
text_field_assign = Object.assign || function (t) {
|
|
141
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
142
|
-
s = arguments[i];
|
|
143
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
144
|
-
}
|
|
145
|
-
return t;
|
|
146
|
-
};
|
|
147
|
-
return text_field_assign.apply(this, arguments);
|
|
148
|
-
};
|
|
149
|
-
var text_field_rest = undefined && undefined.__rest || function (s, e) {
|
|
150
|
-
var t = {};
|
|
151
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
152
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
153
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
154
|
-
}
|
|
155
|
-
return t;
|
|
156
|
-
};
|
|
157
44
|
|
|
158
45
|
|
|
159
46
|
|
|
160
47
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
var TextField = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
165
|
-
var _a = (0,getMergedProps/* getMergedProps */.p)(props, textFieldProps),
|
|
48
|
+
var TextField = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
49
|
+
var _a = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_5__/* .getMergedProps */ .p)(props, _text_field_props__WEBPACK_IMPORTED_MODULE_8__/* .textFieldProps */ .g),
|
|
166
50
|
className = _a.className,
|
|
167
51
|
style = _a.style,
|
|
168
52
|
leftIcon = _a.leftIcon,
|
|
169
53
|
rightIcon = _a.rightIcon,
|
|
54
|
+
prefix = _a.prefix,
|
|
55
|
+
suffix = _a.suffix,
|
|
56
|
+
format = _a.format,
|
|
57
|
+
clearable = _a.clearable,
|
|
58
|
+
onClear = _a.onClear,
|
|
59
|
+
passwordToggle = _a.passwordToggle,
|
|
60
|
+
onVisibilityChange = _a.onVisibilityChange,
|
|
170
61
|
title = _a.title,
|
|
171
62
|
value = _a.value,
|
|
172
63
|
onChange = _a.onChange,
|
|
173
64
|
defaultValue = _a.defaultValue,
|
|
174
65
|
helperText = _a.helperText,
|
|
175
66
|
isError = _a.isError,
|
|
67
|
+
type = _a.type,
|
|
68
|
+
disabled = _a.disabled,
|
|
69
|
+
readOnly = _a.readOnly,
|
|
176
70
|
_onFocus = _a.onFocus,
|
|
177
71
|
_onBlur = _a.onBlur,
|
|
178
72
|
track = _a.track,
|
|
179
73
|
trackProps = _a.trackProps,
|
|
180
|
-
restProps =
|
|
181
|
-
var emit = (0,
|
|
74
|
+
restProps = __rest(_a, ["className", "style", "leftIcon", "rightIcon", "prefix", "suffix", "format", "clearable", "onClear", "passwordToggle", "onVisibilityChange", "title", "value", "onChange", "defaultValue", "helperText", "isError", "type", "disabled", "readOnly", "onFocus", "onBlur", "track", "trackProps"]);
|
|
75
|
+
var emit = (0,_helpers_hooks_useTrack__WEBPACK_IMPORTED_MODULE_3__/* .useTrack */ .n)('TextField', {
|
|
182
76
|
track: track,
|
|
183
77
|
trackProps: trackProps
|
|
184
78
|
});
|
|
185
|
-
var focusedValueRef = (0,
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
79
|
+
var focusedValueRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)('');
|
|
80
|
+
var _b = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(defaultValue !== null && defaultValue !== void 0 ? defaultValue : ''),
|
|
81
|
+
innerValue = _b[0],
|
|
82
|
+
setInnerValue = _b[1];
|
|
83
|
+
var raw = value !== null && value !== void 0 ? value : innerValue;
|
|
84
|
+
var _c = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(false),
|
|
85
|
+
passwordVisible = _c[0],
|
|
86
|
+
setPasswordVisible = _c[1];
|
|
87
|
+
var _d = (0,_helpers_hooks_useFieldClear__WEBPACK_IMPORTED_MODULE_2__/* .useFieldClear */ .h)(onClear),
|
|
88
|
+
fieldRef = _d.fieldRef,
|
|
89
|
+
engaged = _d.engaged,
|
|
90
|
+
wrapperProps = _d.wrapperProps,
|
|
91
|
+
clearProps = _d.clearProps;
|
|
92
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useImperativeHandle)(ref, function () {
|
|
93
|
+
return fieldRef.current;
|
|
94
|
+
});
|
|
95
|
+
var handleChange = function handleChange(e) {
|
|
96
|
+
if (value === undefined) setInnerValue(e.target.value);
|
|
97
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
98
|
+
};
|
|
99
|
+
var showClear = clearable && raw !== '' && engaged && !disabled && !readOnly;
|
|
100
|
+
var hasPasswordToggle = passwordToggle && type === 'password';
|
|
101
|
+
var actions = [];
|
|
102
|
+
if (showClear) {
|
|
103
|
+
actions.push(__assign({
|
|
104
|
+
id: 'clear',
|
|
105
|
+
'aria-label': '입력 지우기',
|
|
106
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_icon_icon__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, {
|
|
107
|
+
name: 'x',
|
|
108
|
+
size: 's'
|
|
109
|
+
})
|
|
110
|
+
}, clearProps));
|
|
111
|
+
}
|
|
112
|
+
if (hasPasswordToggle) {
|
|
113
|
+
actions.push({
|
|
114
|
+
id: 'password-toggle',
|
|
115
|
+
'aria-label': passwordVisible ? '비밀번호 숨기기' : '비밀번호 보기',
|
|
116
|
+
'aria-pressed': passwordVisible,
|
|
117
|
+
disabled: disabled,
|
|
118
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_icon_icon__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .A, {
|
|
119
|
+
name: 'eye',
|
|
120
|
+
size: 's',
|
|
121
|
+
weight: passwordVisible ? 'fill' : 'regular'
|
|
122
|
+
}),
|
|
123
|
+
onClick: function onClick() {
|
|
124
|
+
setPasswordVisible(!passwordVisible);
|
|
125
|
+
onVisibilityChange === null || onVisibilityChange === void 0 ? void 0 : onVisibilityChange(!passwordVisible);
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A, {
|
|
130
|
+
value: raw,
|
|
131
|
+
format: format,
|
|
132
|
+
onChange: handleChange,
|
|
133
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
|
|
191
134
|
className: 'text-field',
|
|
192
|
-
children: [title && (0,
|
|
135
|
+
children: [title && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Label, {
|
|
193
136
|
className: 'text-field-title',
|
|
194
137
|
text: title
|
|
195
|
-
}), (0,
|
|
196
|
-
className: (0,
|
|
197
|
-
style: style
|
|
198
|
-
|
|
199
|
-
|
|
138
|
+
}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", __assign({
|
|
139
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__/* .classNames */ .x)('nuri-theme text-field-input-wrapper', isError && 'error', className),
|
|
140
|
+
style: style
|
|
141
|
+
}, wrapperProps, {
|
|
142
|
+
children: [leftIcon, prefix != null && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Prefix, {
|
|
143
|
+
className: 'text-field-prefix',
|
|
144
|
+
children: prefix
|
|
145
|
+
}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Input, __assign({
|
|
146
|
+
ref: fieldRef,
|
|
147
|
+
type: hasPasswordToggle && passwordVisible ? 'text' : type,
|
|
148
|
+
disabled: disabled,
|
|
149
|
+
readOnly: readOnly,
|
|
150
|
+
"aria-invalid": isError || undefined,
|
|
200
151
|
onFocus: function onFocus(e) {
|
|
201
|
-
focusedValueRef.current =
|
|
152
|
+
focusedValueRef.current = raw;
|
|
202
153
|
_onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(e);
|
|
203
154
|
},
|
|
204
155
|
onBlur: function onBlur(e) {
|
|
205
|
-
if (
|
|
156
|
+
if (raw !== focusedValueRef.current) emit('change');
|
|
206
157
|
_onBlur === null || _onBlur === void 0 ? void 0 : _onBlur(e);
|
|
207
158
|
}
|
|
208
|
-
}, restProps)),
|
|
209
|
-
|
|
210
|
-
|
|
159
|
+
}, restProps)), suffix != null && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Suffix, {
|
|
160
|
+
className: 'text-field-suffix',
|
|
161
|
+
children: suffix
|
|
162
|
+
}), actions.map(function (_a) {
|
|
163
|
+
var id = _a.id,
|
|
164
|
+
action = __rest(_a, ["id"]);
|
|
165
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.Action, __assign({
|
|
166
|
+
className: 'text-field-action motion-press'
|
|
167
|
+
}, action), id);
|
|
168
|
+
}), rightIcon]
|
|
169
|
+
})), helperText && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text_field__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .A.HelperText, {
|
|
170
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_4__/* .classNames */ .x)('text-field-helper-text', isError && 'error'),
|
|
211
171
|
text: helperText
|
|
212
172
|
})]
|
|
213
173
|
})
|
|
214
174
|
});
|
|
215
175
|
});
|
|
216
176
|
TextField.displayName = 'TextField';
|
|
217
|
-
/* harmony default export */ const
|
|
177
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (TextField);
|
|
218
178
|
|
|
219
179
|
/***/ },
|
|
220
180
|
|
|
@@ -225,7 +185,7 @@ var x = (y) => {
|
|
|
225
185
|
var x = {}; __nuri_require__.d(x, y); return x
|
|
226
186
|
}
|
|
227
187
|
var y = (x) => (() => (x))
|
|
228
|
-
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) });
|
|
188
|
+
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) });
|
|
229
189
|
|
|
230
190
|
/***/ },
|
|
231
191
|
|
|
@@ -376,17 +336,27 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
376
336
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
377
337
|
/******/ import * as __webpack_chunk_3__ from "./chunk-4560.js";
|
|
378
338
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
379
|
-
/******/ import * as __webpack_chunk_4__ from "./chunk-
|
|
339
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-7653.js";
|
|
380
340
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
381
|
-
/******/ import * as __webpack_chunk_5__ from "./chunk-
|
|
341
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-3547.js";
|
|
382
342
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
383
|
-
/******/ import * as __webpack_chunk_6__ from "./chunk-
|
|
343
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-7232.js";
|
|
384
344
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
345
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-4917.js";
|
|
346
|
+
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
347
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-4558.js";
|
|
348
|
+
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
349
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-7739.js";
|
|
350
|
+
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
351
|
+
/******/ import * as __webpack_chunk_10__ from "./chunk-6096.js";
|
|
352
|
+
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
353
|
+
/******/ import * as __webpack_chunk_11__ from "./chunk-7302.js";
|
|
354
|
+
/******/ __nuri_require__.C(__webpack_chunk_11__);
|
|
385
355
|
/******/
|
|
386
356
|
/******/ // startup
|
|
387
357
|
/******/ // Load entry module and return exports
|
|
388
358
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
389
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,4917,4558,7739], () => (__nuri_require__(
|
|
359
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7653,3547,7232,4917,4558,7739,6096,7302], () => (__nuri_require__(8629)))
|
|
390
360
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
391
361
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
392
362
|
/******/ export { __webpack_exports__default as default };
|
package/dist/text.js
CHANGED
|
@@ -35,10 +35,6 @@ var styleClass = function styleClass(prefix, value) {
|
|
|
35
35
|
return c.toUpperCase();
|
|
36
36
|
})) : '';
|
|
37
37
|
};
|
|
38
|
-
// `2xl` 처럼 숫자로 시작하는 클래스는 선택자로 쓸 수 없어 `t-` 를 붙인다.
|
|
39
|
-
var sizeClass = function sizeClass(size) {
|
|
40
|
-
return /^\d+xl$/.test(size) ? "t-".concat(size) : size;
|
|
41
|
-
};
|
|
42
38
|
// onClick·id 같은 HTML 속성은 넘기지 않는다. className 과 style 만 요소에 간다.
|
|
43
39
|
var Text = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
44
40
|
var _a = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_3__/* .getMergedProps */ .p)(props, _text_props__WEBPACK_IMPORTED_MODULE_5__/* .textProps */ .em),
|
|
@@ -49,7 +45,7 @@ var Text = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(functi
|
|
|
49
45
|
className = _a.className,
|
|
50
46
|
style = _a.style,
|
|
51
47
|
restProps = __rest(_a, ["text", "size", "weight", "as", "className", "style"]);
|
|
52
|
-
var textClassName = (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__/* .classNames */ .x)(className,
|
|
48
|
+
var textClassName = (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__/* .classNames */ .x)(className, (0,_text_props__WEBPACK_IMPORTED_MODULE_5__/* .fontSizeClass */ .TU)(size), weight, _text_props__WEBPACK_IMPORTED_MODULE_5__/* .styleClassProps */ .Oc.map(function (key) {
|
|
53
49
|
return styleClass(key, restProps[key]);
|
|
54
50
|
}));
|
|
55
51
|
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_text__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {
|
|
@@ -222,13 +218,15 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
222
218
|
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
223
219
|
/******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
|
|
224
220
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
225
|
-
/******/ import * as __webpack_chunk_3__ from "./chunk-
|
|
221
|
+
/******/ import * as __webpack_chunk_3__ from "./chunk-7232.js";
|
|
226
222
|
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
223
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-4558.js";
|
|
224
|
+
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
227
225
|
/******/
|
|
228
226
|
/******/ // startup
|
|
229
227
|
/******/ // Load entry module and return exports
|
|
230
228
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
231
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4558], () => (__nuri_require__(7739)))
|
|
229
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,7232,4558], () => (__nuri_require__(7739)))
|
|
232
230
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
233
231
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
234
232
|
/******/ export { __webpack_exports__default as default };
|