@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/toast.js
CHANGED
|
@@ -1,22 +1,30 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_radix_ui_3bc96d1b__ from "radix-ui";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee__ from "react-dom";
|
|
4
5
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
5
6
|
/******/ var __webpack_modules__ = ({
|
|
6
7
|
|
|
7
|
-
/***/
|
|
8
|
+
/***/ 1771
|
|
8
9
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
9
10
|
|
|
10
11
|
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
11
12
|
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__),
|
|
12
|
-
/* harmony export */ t: () => (/*
|
|
13
|
+
/* harmony export */ t: () => (/* reexport safe */ _base_toast__WEBPACK_IMPORTED_MODULE_11__.t)
|
|
13
14
|
/* harmony export */ });
|
|
14
15
|
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
|
|
15
16
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
|
|
16
|
-
/* harmony import */ var
|
|
17
|
-
/* harmony import */ var
|
|
18
|
-
/* harmony import */ var
|
|
19
|
-
/* harmony import */ var
|
|
17
|
+
/* harmony import */ var _assets_icons_check_svg__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(5077);
|
|
18
|
+
/* harmony import */ var _assets_icons_exclamation_svg__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(6386);
|
|
19
|
+
/* harmony import */ var _assets_icons_multifly_svg__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(6713);
|
|
20
|
+
/* harmony import */ var _helpers_hooks_useExternalState__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(9387);
|
|
21
|
+
/* harmony import */ var _helpers_hooks_useTrack__WEBPACK_IMPORTED_MODULE_6__ = __nuri_require__(4560);
|
|
22
|
+
/* harmony import */ var _helpers_motion_use_presence_callbacks__WEBPACK_IMPORTED_MODULE_7__ = __nuri_require__(6706);
|
|
23
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_8__ = __nuri_require__(3274);
|
|
24
|
+
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_9__ = __nuri_require__(7335);
|
|
25
|
+
/* harmony import */ var _button_cta_button__WEBPACK_IMPORTED_MODULE_10__ = __nuri_require__(910);
|
|
26
|
+
/* harmony import */ var _base_toast__WEBPACK_IMPORTED_MODULE_11__ = __nuri_require__(7413);
|
|
27
|
+
/* harmony import */ var _toast_props__WEBPACK_IMPORTED_MODULE_12__ = __nuri_require__(5618);
|
|
20
28
|
var __assign = undefined && undefined.__assign || function () {
|
|
21
29
|
__assign = Object.assign || function (t) {
|
|
22
30
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -41,206 +49,6 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
41
49
|
|
|
42
50
|
|
|
43
51
|
|
|
44
|
-
// Toast.Provider 는 DOM 을 그리지 않는다. Viewport(ol) 가 토스트가 쌓이는 자리다.
|
|
45
|
-
var ToastViewport = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
46
|
-
var className = props.className,
|
|
47
|
-
position = props.position,
|
|
48
|
-
restProps = __rest(props, ["className", "position"]);
|
|
49
|
-
var positionClassName = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_4__/* .getMergedProps */ .p)({
|
|
50
|
-
position: position
|
|
51
|
-
}, _toast_props__WEBPACK_IMPORTED_MODULE_5__/* .toastViewportProps */ .Cc).className;
|
|
52
|
-
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_2__.Toast.Viewport, __assign({
|
|
53
|
-
ref: ref,
|
|
54
|
-
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__/* .classNames */ .x)('nuri-theme base-toast viewport', positionClassName, className)
|
|
55
|
-
}, restProps));
|
|
56
|
-
});
|
|
57
|
-
ToastViewport.displayName = 'ToastViewport';
|
|
58
|
-
// Radix Toast 는 Provider 없이 쓰면 오류를 낸다. 쓰는 쪽이 앱 루트에 한 번 둔다.
|
|
59
|
-
// radix-ui 는 peerDependency 라 진입점(`/toast`, 루트)이 달라도 Radix context 하나를 같이 쓴다.
|
|
60
|
-
var ToastProvider = function ToastProvider(props) {
|
|
61
|
-
var children = props.children,
|
|
62
|
-
duration = props.duration,
|
|
63
|
-
position = props.position,
|
|
64
|
-
_a = props.label,
|
|
65
|
-
label = _a === void 0 ? '알림' : _a;
|
|
66
|
-
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(radix_ui__WEBPACK_IMPORTED_MODULE_2__.Toast.Provider, {
|
|
67
|
-
duration: duration,
|
|
68
|
-
label: label,
|
|
69
|
-
children: [children, (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(ToastViewport, {
|
|
70
|
-
position: position,
|
|
71
|
-
label: "".concat(label, " ({hotkey})")
|
|
72
|
-
})]
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
ToastProvider.displayName = 'ToastProvider';
|
|
76
|
-
var ToastRootBase = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
77
|
-
var children = props.children,
|
|
78
|
-
className = props.className,
|
|
79
|
-
restProps = __rest(props, ["children", "className"]);
|
|
80
|
-
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_2__.Toast.Root, __assign({
|
|
81
|
-
ref: ref,
|
|
82
|
-
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__/* .classNames */ .x)('nuri-theme base-toast', className)
|
|
83
|
-
}, restProps, {
|
|
84
|
-
children: children
|
|
85
|
-
}));
|
|
86
|
-
});
|
|
87
|
-
ToastRootBase.displayName = 'ToastRoot';
|
|
88
|
-
var ToastTitle = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
89
|
-
var className = props.className,
|
|
90
|
-
restProps = __rest(props, ["className"]);
|
|
91
|
-
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_2__.Toast.Title, __assign({
|
|
92
|
-
ref: ref,
|
|
93
|
-
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__/* .classNames */ .x)('nuri-theme base-toast title', className)
|
|
94
|
-
}, restProps));
|
|
95
|
-
});
|
|
96
|
-
ToastTitle.displayName = 'ToastTitle';
|
|
97
|
-
var ToastDescription = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
98
|
-
var className = props.className,
|
|
99
|
-
restProps = __rest(props, ["className"]);
|
|
100
|
-
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_2__.Toast.Description, __assign({
|
|
101
|
-
ref: ref,
|
|
102
|
-
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__/* .classNames */ .x)('nuri-theme base-toast description', className)
|
|
103
|
-
}, restProps));
|
|
104
|
-
});
|
|
105
|
-
ToastDescription.displayName = 'ToastDescription';
|
|
106
|
-
// 누르면 Radix 가 토스트를 닫는다(onOpenChange(false)).
|
|
107
|
-
var ToastAction = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
108
|
-
var className = props.className,
|
|
109
|
-
restProps = __rest(props, ["className"]);
|
|
110
|
-
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_2__.Toast.Action, __assign({
|
|
111
|
-
ref: ref,
|
|
112
|
-
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__/* .classNames */ .x)('nuri-theme base-toast action', className),
|
|
113
|
-
type: 'button'
|
|
114
|
-
}, restProps));
|
|
115
|
-
});
|
|
116
|
-
ToastAction.displayName = 'ToastAction';
|
|
117
|
-
var ToastClose = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
118
|
-
var className = props.className,
|
|
119
|
-
restProps = __rest(props, ["className"]);
|
|
120
|
-
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(radix_ui__WEBPACK_IMPORTED_MODULE_2__.Toast.Close, __assign({
|
|
121
|
-
ref: ref,
|
|
122
|
-
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_3__/* .classNames */ .x)('nuri-theme base-toast close', className),
|
|
123
|
-
type: 'button'
|
|
124
|
-
}, restProps));
|
|
125
|
-
});
|
|
126
|
-
ToastClose.displayName = 'ToastClose';
|
|
127
|
-
var ToastRoot = Object.assign(ToastRootBase, {
|
|
128
|
-
Viewport: ToastViewport,
|
|
129
|
-
Title: ToastTitle,
|
|
130
|
-
Description: ToastDescription,
|
|
131
|
-
Action: ToastAction,
|
|
132
|
-
Close: ToastClose
|
|
133
|
-
});
|
|
134
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ToastRoot);
|
|
135
|
-
|
|
136
|
-
/***/ },
|
|
137
|
-
|
|
138
|
-
/***/ 5618
|
|
139
|
-
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
140
|
-
|
|
141
|
-
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
142
|
-
/* harmony export */ Cc: () => (/* binding */ toastViewportProps),
|
|
143
|
-
/* harmony export */ Eg: () => (/* binding */ toastProps)
|
|
144
|
-
/* harmony export */ });
|
|
145
|
-
/* unused harmony exports variants, positions */
|
|
146
|
-
var variants = ['default', 'secondary', 'success', 'warning', 'error'];
|
|
147
|
-
var positions = ['top-right', 'bottom-right', 'bottom-center'];
|
|
148
|
-
var toastProps = {
|
|
149
|
-
variant: {
|
|
150
|
-
type: 'className',
|
|
151
|
-
className: 'variant',
|
|
152
|
-
values: variants,
|
|
153
|
-
"default": 'default'
|
|
154
|
-
}
|
|
155
|
-
};
|
|
156
|
-
var toastViewportProps = {
|
|
157
|
-
position: {
|
|
158
|
-
type: 'className',
|
|
159
|
-
className: 'position',
|
|
160
|
-
values: positions,
|
|
161
|
-
"default": 'bottom-right'
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
/***/ },
|
|
166
|
-
|
|
167
|
-
/***/ 4012
|
|
168
|
-
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
// EXPORTS
|
|
172
|
-
__nuri_require__.d(__webpack_exports__, {
|
|
173
|
-
t: () => (/* reexport */ base_toast/* ToastProvider */.t),
|
|
174
|
-
A: () => (/* binding */ toast)
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
// EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
|
|
178
|
-
var jsx_runtime_ = __nuri_require__(612);
|
|
179
|
-
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
|
|
180
|
-
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
181
|
-
// EXTERNAL MODULE: ./assets/icons/check.svg
|
|
182
|
-
var check = __nuri_require__(5077);
|
|
183
|
-
;// ./assets/icons/exclamation.svg
|
|
184
|
-
var _path, _path2;
|
|
185
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
186
|
-
|
|
187
|
-
var SvgExclamation = function SvgExclamation(props) {
|
|
188
|
-
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createElement("svg", _extends({
|
|
189
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
190
|
-
width: 16,
|
|
191
|
-
height: 16,
|
|
192
|
-
fill: "none",
|
|
193
|
-
viewBox: "0 0 16 16"
|
|
194
|
-
}, props), _path || (_path = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createElement("path", {
|
|
195
|
-
stroke: "#fff",
|
|
196
|
-
strokeLinecap: "round",
|
|
197
|
-
strokeWidth: 1.5,
|
|
198
|
-
d: "M8 3.5V9"
|
|
199
|
-
})), _path2 || (_path2 = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.createElement("path", {
|
|
200
|
-
stroke: "#fff",
|
|
201
|
-
strokeLinecap: "round",
|
|
202
|
-
strokeWidth: 2,
|
|
203
|
-
d: "M8 12h.01"
|
|
204
|
-
})));
|
|
205
|
-
};
|
|
206
|
-
/* harmony default export */ const exclamation = (SvgExclamation);
|
|
207
|
-
// EXTERNAL MODULE: ./assets/icons/multifly.svg
|
|
208
|
-
var multifly = __nuri_require__(6713);
|
|
209
|
-
// EXTERNAL MODULE: ./helpers/hooks/useTrack.ts
|
|
210
|
-
var useTrack = __nuri_require__(4560);
|
|
211
|
-
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
212
|
-
var classNames = __nuri_require__(3274);
|
|
213
|
-
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
214
|
-
var getMergedProps = __nuri_require__(7335);
|
|
215
|
-
// EXTERNAL MODULE: ./components/button/cta-button.tsx
|
|
216
|
-
var cta_button = __nuri_require__(910);
|
|
217
|
-
// EXTERNAL MODULE: ./components/toast/base-toast.tsx
|
|
218
|
-
var base_toast = __nuri_require__(7413);
|
|
219
|
-
// EXTERNAL MODULE: ./components/toast/toast-props.ts
|
|
220
|
-
var toast_props = __nuri_require__(5618);
|
|
221
|
-
;// ./components/toast/toast.tsx
|
|
222
|
-
var __assign = undefined && undefined.__assign || function () {
|
|
223
|
-
__assign = Object.assign || function (t) {
|
|
224
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
225
|
-
s = arguments[i];
|
|
226
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
227
|
-
}
|
|
228
|
-
return t;
|
|
229
|
-
};
|
|
230
|
-
return __assign.apply(this, arguments);
|
|
231
|
-
};
|
|
232
|
-
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
233
|
-
var t = {};
|
|
234
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
235
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
236
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
237
|
-
}
|
|
238
|
-
return t;
|
|
239
|
-
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
52
|
|
|
245
53
|
|
|
246
54
|
|
|
@@ -251,71 +59,97 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
251
59
|
|
|
252
60
|
// 상태를 뜻하는 variant 는 앞에 아이콘을 둔다. error 는 닫기와 같은 X 를 쓴다
|
|
253
61
|
var VARIANT_ICON = {
|
|
254
|
-
success:
|
|
255
|
-
warning:
|
|
256
|
-
error:
|
|
62
|
+
success: _assets_icons_check_svg__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A,
|
|
63
|
+
warning: _assets_icons_exclamation_svg__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A,
|
|
64
|
+
error: _assets_icons_multifly_svg__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A
|
|
257
65
|
};
|
|
258
|
-
var Toast = /*#__PURE__*/(0,
|
|
259
|
-
var _a
|
|
66
|
+
var Toast = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
67
|
+
var _a;
|
|
260
68
|
var className = props.className,
|
|
261
69
|
title = props.title,
|
|
262
70
|
description = props.description,
|
|
263
71
|
variant = props.variant,
|
|
264
72
|
action = props.action,
|
|
265
|
-
|
|
266
|
-
showClose =
|
|
73
|
+
_b = props.showClose,
|
|
74
|
+
showClose = _b === void 0 ? true : _b,
|
|
267
75
|
track = props.track,
|
|
268
76
|
trackProps = props.trackProps,
|
|
269
|
-
|
|
270
|
-
|
|
77
|
+
openProp = props.open,
|
|
78
|
+
defaultOpen = props.defaultOpen,
|
|
79
|
+
onOpenChange = props.onOpenChange,
|
|
80
|
+
onEntered = props.onEntered,
|
|
81
|
+
onExited = props.onExited,
|
|
82
|
+
_onAnimationEnd = props.onAnimationEnd,
|
|
83
|
+
restProps = __rest(props, ["className", "title", "description", "variant", "action", "showClose", "track", "trackProps", "open", "defaultOpen", "onOpenChange", "onEntered", "onExited", "onAnimationEnd"]);
|
|
84
|
+
var emit = (0,_helpers_hooks_useTrack__WEBPACK_IMPORTED_MODULE_6__/* .useTrack */ .n)('Toast', {
|
|
271
85
|
track: track,
|
|
272
86
|
trackProps: trackProps
|
|
273
87
|
});
|
|
274
88
|
// Radix 는 open·defaultOpen 이 없으면 연 채로 시작한다. Radix 가 스스로 닫는 것은 이 값에 보이지 않아 다시 보내지 않는다.
|
|
275
|
-
var shown = (
|
|
276
|
-
|
|
89
|
+
var shown = (_a = openProp !== null && openProp !== void 0 ? openProp : defaultOpen) !== null && _a !== void 0 ? _a : true;
|
|
90
|
+
// 시간이 다 되거나 밀어서 Radix 가 스스로 닫는 것까지 알아야 onExited 를 부른다
|
|
91
|
+
var _c = (0,_helpers_hooks_useExternalState__WEBPACK_IMPORTED_MODULE_5__/* .useExternalState */ .C)({
|
|
92
|
+
prop: openProp,
|
|
93
|
+
handler: onOpenChange,
|
|
94
|
+
defaultProp: defaultOpen !== null && defaultOpen !== void 0 ? defaultOpen : true
|
|
95
|
+
}),
|
|
96
|
+
open = _c[0],
|
|
97
|
+
setOpen = _c[1];
|
|
98
|
+
var presence = (0,_helpers_motion_use_presence_callbacks__WEBPACK_IMPORTED_MODULE_7__/* .usePresenceCallbacks */ .r)({
|
|
99
|
+
open: open,
|
|
100
|
+
onEntered: onEntered,
|
|
101
|
+
onExited: onExited
|
|
102
|
+
});
|
|
103
|
+
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
|
277
104
|
if (shown) emit('show');
|
|
278
105
|
}, [shown]);
|
|
279
|
-
var variantClassName = (0,
|
|
106
|
+
var variantClassName = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_9__/* .getMergedProps */ .p)({
|
|
280
107
|
className: className,
|
|
281
108
|
variant: variant
|
|
282
|
-
},
|
|
109
|
+
}, _toast_props__WEBPACK_IMPORTED_MODULE_12__/* .toastProps */ .Eg).className;
|
|
283
110
|
var Icon = variant && variant in VARIANT_ICON ? VARIANT_ICON[variant] : null;
|
|
284
|
-
return (0,
|
|
111
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)(_base_toast__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A, __assign({
|
|
285
112
|
ref: ref,
|
|
286
|
-
className: (0,
|
|
113
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_8__/* .classNames */ .x)(variantClassName, 'toast')
|
|
287
114
|
}, restProps, {
|
|
288
|
-
|
|
115
|
+
open: open,
|
|
116
|
+
onOpenChange: setOpen,
|
|
117
|
+
onAnimationEnd: function onAnimationEnd(event) {
|
|
118
|
+
presence.onAnimationEnd(event);
|
|
119
|
+
_onAnimationEnd === null || _onAnimationEnd === void 0 ? void 0 : _onAnimationEnd(event);
|
|
120
|
+
},
|
|
121
|
+
children: [Icon && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(Icon, {
|
|
289
122
|
className: 'toast-icon',
|
|
290
123
|
"aria-hidden": true
|
|
291
|
-
}), (0,
|
|
124
|
+
}), (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxs)("div", {
|
|
292
125
|
className: 'toast-body',
|
|
293
|
-
children: [(0,
|
|
126
|
+
children: [(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_toast__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A.Title, {
|
|
294
127
|
className: 'toast-title',
|
|
295
128
|
children: title
|
|
296
|
-
}), description && (0,
|
|
129
|
+
}), description && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_toast__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A.Description, {
|
|
297
130
|
className: 'toast-description',
|
|
298
131
|
children: description
|
|
299
132
|
})]
|
|
300
|
-
}), action && (0,
|
|
133
|
+
}), action && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_toast__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A.Action, {
|
|
301
134
|
className: 'toast-action',
|
|
302
135
|
altText: action.altText,
|
|
303
136
|
asChild: true,
|
|
304
|
-
children: (0,
|
|
137
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_button_cta_button__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .A, {
|
|
305
138
|
size: 'xs',
|
|
306
|
-
|
|
139
|
+
color: 'neutral',
|
|
140
|
+
variant: 'fill',
|
|
307
141
|
text: action.label,
|
|
308
142
|
onClick: action.onClick
|
|
309
143
|
})
|
|
310
|
-
}), showClose && (0,
|
|
144
|
+
}), showClose && (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_toast__WEBPACK_IMPORTED_MODULE_11__/* ["default"] */ .A.Close, {
|
|
311
145
|
className: 'toast-close',
|
|
312
146
|
"aria-label": "\uB2EB\uAE30",
|
|
313
|
-
children: (0,
|
|
147
|
+
children: (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_assets_icons_multifly_svg__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {})
|
|
314
148
|
})]
|
|
315
149
|
}));
|
|
316
150
|
});
|
|
317
151
|
Toast.displayName = 'Toast';
|
|
318
|
-
/* harmony default export */ const
|
|
152
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Toast);
|
|
319
153
|
|
|
320
154
|
/***/ },
|
|
321
155
|
|
|
@@ -337,7 +171,18 @@ var x = (y) => {
|
|
|
337
171
|
var x = {}; __nuri_require__.d(x, y); return x
|
|
338
172
|
}
|
|
339
173
|
var y = (x) => (() => (x))
|
|
340
|
-
module.exports = x({ ["Children"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.Children), ["cloneElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.cloneElement), ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["createElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createElement), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["isValidElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.isValidElement), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useEffect), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef) });
|
|
174
|
+
module.exports = x({ ["Children"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.Children), ["cloneElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.cloneElement), ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["createElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createElement), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["isValidElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.isValidElement), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useEffect"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useEffect), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
|
|
175
|
+
|
|
176
|
+
/***/ },
|
|
177
|
+
|
|
178
|
+
/***/ 4377
|
|
179
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
180
|
+
|
|
181
|
+
var x = (y) => {
|
|
182
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
183
|
+
}
|
|
184
|
+
var y = (x) => (() => (x))
|
|
185
|
+
module.exports = x({ ["createPortal"]: () => (__WEBPACK_EXTERNAL_MODULE_react_dom_7dac9eee__.createPortal) });
|
|
341
186
|
|
|
342
187
|
/***/ },
|
|
343
188
|
|
|
@@ -492,27 +337,41 @@ module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_ru
|
|
|
492
337
|
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
493
338
|
/******/ import * as __webpack_chunk_5__ from "./chunk-2777.js";
|
|
494
339
|
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
495
|
-
/******/ import * as __webpack_chunk_6__ from "./chunk-
|
|
340
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-1768.js";
|
|
496
341
|
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
497
|
-
/******/ import * as __webpack_chunk_7__ from "./chunk-
|
|
342
|
+
/******/ import * as __webpack_chunk_7__ from "./chunk-3640.js";
|
|
498
343
|
/******/ __nuri_require__.C(__webpack_chunk_7__);
|
|
499
|
-
/******/ import * as __webpack_chunk_8__ from "./chunk-
|
|
344
|
+
/******/ import * as __webpack_chunk_8__ from "./chunk-6706.js";
|
|
500
345
|
/******/ __nuri_require__.C(__webpack_chunk_8__);
|
|
501
|
-
/******/ import * as __webpack_chunk_9__ from "./chunk-
|
|
346
|
+
/******/ import * as __webpack_chunk_9__ from "./chunk-8734.js";
|
|
502
347
|
/******/ __nuri_require__.C(__webpack_chunk_9__);
|
|
503
|
-
/******/ import * as __webpack_chunk_10__ from "./chunk-
|
|
348
|
+
/******/ import * as __webpack_chunk_10__ from "./chunk-1176.js";
|
|
504
349
|
/******/ __nuri_require__.C(__webpack_chunk_10__);
|
|
505
|
-
/******/ import * as __webpack_chunk_11__ from "./chunk-
|
|
350
|
+
/******/ import * as __webpack_chunk_11__ from "./chunk-8933.js";
|
|
506
351
|
/******/ __nuri_require__.C(__webpack_chunk_11__);
|
|
507
|
-
/******/ import * as __webpack_chunk_12__ from "./chunk-
|
|
352
|
+
/******/ import * as __webpack_chunk_12__ from "./chunk-7737.js";
|
|
508
353
|
/******/ __nuri_require__.C(__webpack_chunk_12__);
|
|
509
|
-
/******/ import * as __webpack_chunk_13__ from "./chunk-
|
|
354
|
+
/******/ import * as __webpack_chunk_13__ from "./chunk-5302.js";
|
|
510
355
|
/******/ __nuri_require__.C(__webpack_chunk_13__);
|
|
356
|
+
/******/ import * as __webpack_chunk_14__ from "./chunk-8491.js";
|
|
357
|
+
/******/ __nuri_require__.C(__webpack_chunk_14__);
|
|
358
|
+
/******/ import * as __webpack_chunk_15__ from "./chunk-2496.js";
|
|
359
|
+
/******/ __nuri_require__.C(__webpack_chunk_15__);
|
|
360
|
+
/******/ import * as __webpack_chunk_16__ from "./chunk-948.js";
|
|
361
|
+
/******/ __nuri_require__.C(__webpack_chunk_16__);
|
|
362
|
+
/******/ import * as __webpack_chunk_17__ from "./chunk-910.js";
|
|
363
|
+
/******/ __nuri_require__.C(__webpack_chunk_17__);
|
|
364
|
+
/******/ import * as __webpack_chunk_18__ from "./chunk-6713.js";
|
|
365
|
+
/******/ __nuri_require__.C(__webpack_chunk_18__);
|
|
366
|
+
/******/ import * as __webpack_chunk_19__ from "./chunk-5077.js";
|
|
367
|
+
/******/ __nuri_require__.C(__webpack_chunk_19__);
|
|
368
|
+
/******/ import * as __webpack_chunk_20__ from "./chunk-7460.js";
|
|
369
|
+
/******/ __nuri_require__.C(__webpack_chunk_20__);
|
|
511
370
|
/******/
|
|
512
371
|
/******/ // startup
|
|
513
372
|
/******/ // Load entry module and return exports
|
|
514
373
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
515
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,
|
|
374
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,7298,2777,1768,3640,6706,8734,1176,8933,7737,5302,8491,2496,948,910,6713,5077,7460], () => (__nuri_require__(1771)))
|
|
516
375
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
517
376
|
/******/ const __webpack_exports__ToastProvider = __webpack_exports__.t;
|
|
518
377
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
@@ -71,7 +71,7 @@ export declare const motionTokens: {
|
|
|
71
71
|
readonly press: {
|
|
72
72
|
readonly duration: 0.12;
|
|
73
73
|
readonly ease: readonly [0.25, 0.1, 0.25, 1];
|
|
74
|
-
readonly scale: 0.
|
|
74
|
+
readonly scale: 0.9;
|
|
75
75
|
readonly dim: 0.12;
|
|
76
76
|
};
|
|
77
77
|
readonly confirm: {
|
|
@@ -87,6 +87,8 @@ export declare const motionTokens: {
|
|
|
87
87
|
readonly damping: 15;
|
|
88
88
|
readonly mass: 1;
|
|
89
89
|
};
|
|
90
|
+
readonly "fade-duration": 0.12;
|
|
91
|
+
readonly "fade-ease": readonly [0.25, 0.1, 0.25, 1];
|
|
90
92
|
};
|
|
91
93
|
readonly reject: {
|
|
92
94
|
readonly duration: 0.35;
|
|
@@ -121,10 +123,13 @@ export declare const motionTokens: {
|
|
|
121
123
|
};
|
|
122
124
|
readonly progress: {
|
|
123
125
|
readonly duration: 0.24;
|
|
126
|
+
readonly ease: readonly [0.25, 0.1, 0.25, 1];
|
|
127
|
+
};
|
|
128
|
+
readonly indicate: {
|
|
124
129
|
readonly spring: {
|
|
125
130
|
readonly type: "spring";
|
|
126
|
-
readonly stiffness:
|
|
127
|
-
readonly damping:
|
|
131
|
+
readonly stiffness: 800;
|
|
132
|
+
readonly damping: 55;
|
|
128
133
|
readonly mass: 1;
|
|
129
134
|
};
|
|
130
135
|
};
|
|
@@ -133,6 +138,13 @@ export declare const motionTokens: {
|
|
|
133
138
|
readonly ease: readonly [0.25, 0.1, 0.25, 1];
|
|
134
139
|
readonly rotate: "180deg";
|
|
135
140
|
};
|
|
141
|
+
readonly unfold: {
|
|
142
|
+
readonly duration: 0.24;
|
|
143
|
+
readonly ease: readonly [0.25, 0.1, 0.25, 1];
|
|
144
|
+
readonly gap: 0.03;
|
|
145
|
+
readonly "scale-from": 0.94;
|
|
146
|
+
readonly offset: "-6px";
|
|
147
|
+
};
|
|
136
148
|
readonly "dismiss-on-scroll": {
|
|
137
149
|
readonly duration: 0.24;
|
|
138
150
|
readonly ease: readonly [0.25, 0.1, 0.25, 1];
|
|
@@ -146,8 +158,13 @@ export declare const motionTokens: {
|
|
|
146
158
|
readonly busy: {
|
|
147
159
|
readonly ring: 1.2;
|
|
148
160
|
readonly "ring-ease": readonly [0.5, 0, 0.5, 1];
|
|
161
|
+
readonly bar: 1.5;
|
|
162
|
+
readonly "bar-ease": readonly [0.5, 0, 0.5, 1];
|
|
149
163
|
readonly shimmer: 1.5;
|
|
150
|
-
readonly dots:
|
|
164
|
+
readonly dots: 1.2;
|
|
165
|
+
readonly delay: 0.3;
|
|
166
|
+
readonly "fade-duration": 0.16;
|
|
167
|
+
readonly "fade-ease": readonly [0.25, 0.1, 0.25, 1];
|
|
151
168
|
};
|
|
152
169
|
};
|
|
153
170
|
export type MotionToken = keyof typeof motionTokens;
|