@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
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
4
|
+
/******/ var __webpack_modules__ = ({
|
|
5
|
+
|
|
6
|
+
/***/ 2109
|
|
7
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// EXPORTS
|
|
11
|
+
__nuri_require__.d(__webpack_exports__, {
|
|
12
|
+
A: () => (/* binding */ grid_list)
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
// EXTERNAL MODULE: external {"root":"jsx-runtime","commonjs2":"react/jsx-runtime","commonjs":"react/jsx-runtime","amd":"react/jsx-runtime","module":"react/jsx-runtime"}
|
|
16
|
+
var jsx_runtime_ = __nuri_require__(612);
|
|
17
|
+
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react","module":"react"}
|
|
18
|
+
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
19
|
+
// EXTERNAL MODULE: ./helpers/hooks/useTrack.ts
|
|
20
|
+
var useTrack = __nuri_require__(4560);
|
|
21
|
+
// EXTERNAL MODULE: ./helpers/motion/use-reveal-children.ts
|
|
22
|
+
var use_reveal_children = __nuri_require__(3091);
|
|
23
|
+
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
24
|
+
var classNames = __nuri_require__(3274);
|
|
25
|
+
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
26
|
+
var getMergedProps = __nuri_require__(7335);
|
|
27
|
+
// EXTERNAL MODULE: ./components/core/composer/index.tsx
|
|
28
|
+
var composer = __nuri_require__(2777);
|
|
29
|
+
;// ./components/grid-list/base-grid-list.tsx
|
|
30
|
+
var __assign = undefined && undefined.__assign || function () {
|
|
31
|
+
__assign = Object.assign || function (t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
35
|
+
}
|
|
36
|
+
return t;
|
|
37
|
+
};
|
|
38
|
+
return __assign.apply(this, arguments);
|
|
39
|
+
};
|
|
40
|
+
var __rest = undefined && undefined.__rest || function (s, e) {
|
|
41
|
+
var t = {};
|
|
42
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
43
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
44
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
45
|
+
}
|
|
46
|
+
return t;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
var GridListRootBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
53
|
+
var className = props.className,
|
|
54
|
+
restProps = __rest(props, ["className"]);
|
|
55
|
+
return (
|
|
56
|
+
// 목록 스타일을 지우면 Safari 가 목록 의미를 버리므로 role 을 직접 단다
|
|
57
|
+
(0,jsx_runtime_.jsx)("ul", __assign({
|
|
58
|
+
ref: ref,
|
|
59
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-grid-list root', className),
|
|
60
|
+
role: 'list'
|
|
61
|
+
}, restProps))
|
|
62
|
+
);
|
|
63
|
+
});
|
|
64
|
+
GridListRootBase.displayName = 'GridListRoot';
|
|
65
|
+
var GridListItem = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
66
|
+
var className = props.className,
|
|
67
|
+
restProps = __rest(props, ["className"]);
|
|
68
|
+
return (0,jsx_runtime_.jsx)("li", __assign({
|
|
69
|
+
ref: ref,
|
|
70
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-grid-list item', className)
|
|
71
|
+
}, restProps));
|
|
72
|
+
});
|
|
73
|
+
GridListItem.displayName = 'GridListItem';
|
|
74
|
+
var GridListAction = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
75
|
+
var _a = props.asChild,
|
|
76
|
+
asChild = _a === void 0 ? false : _a,
|
|
77
|
+
className = props.className,
|
|
78
|
+
restProps = __rest(props, ["asChild", "className"]);
|
|
79
|
+
var Comp = asChild ? composer/* default */.A : 'div';
|
|
80
|
+
return (0,jsx_runtime_.jsx)(Comp, __assign({
|
|
81
|
+
ref: ref,
|
|
82
|
+
className: (0,classNames/* classNames */.x)('nuri-theme base-grid-list action', className)
|
|
83
|
+
}, restProps));
|
|
84
|
+
});
|
|
85
|
+
GridListAction.displayName = 'GridListAction';
|
|
86
|
+
var GridListRoot = Object.assign(GridListRootBase, {
|
|
87
|
+
Item: GridListItem,
|
|
88
|
+
Action: GridListAction
|
|
89
|
+
});
|
|
90
|
+
/* harmony default export */ const base_grid_list = (GridListRoot);
|
|
91
|
+
;// ./components/grid-list/grid-list-props.ts
|
|
92
|
+
/** 한 줄에 놓는 칸 수 */
|
|
93
|
+
var column = [1, 2, 3];
|
|
94
|
+
var gridListProps = {
|
|
95
|
+
column: {
|
|
96
|
+
type: 'css',
|
|
97
|
+
key: '--grid-list-column',
|
|
98
|
+
values: column,
|
|
99
|
+
"default": 2
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var gridListItemProps = {};
|
|
103
|
+
;// ./components/grid-list/grid-list.tsx
|
|
104
|
+
var grid_list_assign = undefined && undefined.__assign || function () {
|
|
105
|
+
grid_list_assign = Object.assign || function (t) {
|
|
106
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
107
|
+
s = arguments[i];
|
|
108
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
109
|
+
}
|
|
110
|
+
return t;
|
|
111
|
+
};
|
|
112
|
+
return grid_list_assign.apply(this, arguments);
|
|
113
|
+
};
|
|
114
|
+
var grid_list_rest = undefined && undefined.__rest || function (s, e) {
|
|
115
|
+
var t = {};
|
|
116
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
117
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
118
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
119
|
+
}
|
|
120
|
+
return t;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/** 그림과 글자로 된 칸을 격자로 놓는 목록. column 이 한 줄의 칸 수다 */
|
|
131
|
+
var GridListBase = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
132
|
+
var _a = (0,getMergedProps/* getMergedProps */.p)(props, gridListProps),
|
|
133
|
+
className = _a.className,
|
|
134
|
+
stagger = _a.stagger,
|
|
135
|
+
children = _a.children,
|
|
136
|
+
restProps = grid_list_rest(_a, ["className", "stagger", "children"]);
|
|
137
|
+
var items = (0,use_reveal_children/* useRevealChildren */.O)(children, stagger);
|
|
138
|
+
return (0,jsx_runtime_.jsx)(base_grid_list, grid_list_assign({
|
|
139
|
+
ref: ref,
|
|
140
|
+
className: (0,classNames/* classNames */.x)(className, 'grid-list')
|
|
141
|
+
}, restProps, {
|
|
142
|
+
children: items
|
|
143
|
+
}));
|
|
144
|
+
});
|
|
145
|
+
GridListBase.displayName = 'GridList';
|
|
146
|
+
/** 격자 한 칸. onClick 이면 칸 안이 button, asChild 면 넘긴 링크가 된다. 둘 다 없으면 보기만 한다 */
|
|
147
|
+
var grid_list_GridListItem = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
148
|
+
var _a = (0,getMergedProps/* getMergedProps */.p)(props, gridListItemProps),
|
|
149
|
+
className = _a.className,
|
|
150
|
+
image = _a.image,
|
|
151
|
+
children = _a.children,
|
|
152
|
+
asChild = _a.asChild,
|
|
153
|
+
onClick = _a.onClick,
|
|
154
|
+
_b = _a.pressEffect,
|
|
155
|
+
pressEffect = _b === void 0 ? true : _b,
|
|
156
|
+
track = _a.track,
|
|
157
|
+
trackProps = _a.trackProps,
|
|
158
|
+
restProps = grid_list_rest(_a, ["className", "image", "children", "asChild", "onClick", "pressEffect", "track", "trackProps"]);
|
|
159
|
+
var emit = (0,useTrack/* useTrack */.n)('GridListItem', {
|
|
160
|
+
track: track,
|
|
161
|
+
trackProps: trackProps
|
|
162
|
+
});
|
|
163
|
+
// asChild 면 링크가 자기 글자를 갖고 온다. 그 글자를 꺼내 그림과 함께 다시 채운다
|
|
164
|
+
var linkChild = asChild && /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.isValidElement)(children) ? children : null;
|
|
165
|
+
var text = linkChild ? linkChild.props.children : children;
|
|
166
|
+
var content = (0,jsx_runtime_.jsxs)(jsx_runtime_.Fragment, {
|
|
167
|
+
children: [(0,jsx_runtime_.jsx)("span", {
|
|
168
|
+
className: 'grid-list-item-image',
|
|
169
|
+
children: image
|
|
170
|
+
}), (0,jsx_runtime_.jsx)("span", {
|
|
171
|
+
className: 'grid-list-item-text',
|
|
172
|
+
children: text
|
|
173
|
+
})]
|
|
174
|
+
});
|
|
175
|
+
var buttonAction = onClick ? (0,jsx_runtime_.jsx)("button", {
|
|
176
|
+
type: 'button',
|
|
177
|
+
children: content
|
|
178
|
+
}) : null;
|
|
179
|
+
var actionElement = linkChild ? /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.cloneElement)(linkChild, undefined, content) : buttonAction;
|
|
180
|
+
return (0,jsx_runtime_.jsx)(base_grid_list.Item, grid_list_assign({
|
|
181
|
+
ref: ref,
|
|
182
|
+
className: (0,classNames/* classNames */.x)(className, 'grid-list-item')
|
|
183
|
+
}, restProps, {
|
|
184
|
+
children: (0,jsx_runtime_.jsx)(base_grid_list.Action
|
|
185
|
+
// 칸은 테두리가 닫힌 독립 물체라 눌림은 scale 이다(press form scale). 보기만 하는 칸은 받지 않는다
|
|
186
|
+
, {
|
|
187
|
+
// 칸은 테두리가 닫힌 독립 물체라 눌림은 scale 이다(press form scale). 보기만 하는 칸은 받지 않는다
|
|
188
|
+
className: (0,classNames/* classNames */.x)('grid-list-item-action', pressEffect && actionElement && 'motion-press'),
|
|
189
|
+
asChild: actionElement !== null,
|
|
190
|
+
onClick: actionElement ? function (event) {
|
|
191
|
+
emit(linkChild ? 'navigate' : 'click');
|
|
192
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(event);
|
|
193
|
+
} : undefined,
|
|
194
|
+
children: actionElement !== null && actionElement !== void 0 ? actionElement : content
|
|
195
|
+
})
|
|
196
|
+
}));
|
|
197
|
+
});
|
|
198
|
+
grid_list_GridListItem.displayName = 'GridListItem';
|
|
199
|
+
var GridList = Object.assign(GridListBase, {
|
|
200
|
+
Item: grid_list_GridListItem
|
|
201
|
+
});
|
|
202
|
+
/* harmony default export */ const grid_list = (GridList);
|
|
203
|
+
|
|
204
|
+
/***/ },
|
|
205
|
+
|
|
206
|
+
/***/ 1041
|
|
207
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
208
|
+
|
|
209
|
+
var x = (y) => {
|
|
210
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
211
|
+
}
|
|
212
|
+
var y = (x) => (() => (x))
|
|
213
|
+
module.exports = x({ ["Children"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.Children), ["cloneElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.cloneElement), ["createContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.createContext), ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef), ["isValidElement"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.isValidElement), ["useCallback"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useCallback), ["useContext"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useContext), ["useRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useRef), ["useState"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.useState) });
|
|
214
|
+
|
|
215
|
+
/***/ },
|
|
216
|
+
|
|
217
|
+
/***/ 612
|
|
218
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
219
|
+
|
|
220
|
+
var x = (y) => {
|
|
221
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
222
|
+
}
|
|
223
|
+
var y = (x) => (() => (x))
|
|
224
|
+
module.exports = x({ ["Fragment"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.Fragment), ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx), ["jsxs"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsxs) });
|
|
225
|
+
|
|
226
|
+
/***/ }
|
|
227
|
+
|
|
228
|
+
/******/ });
|
|
229
|
+
/************************************************************************/
|
|
230
|
+
/******/ // The module cache
|
|
231
|
+
/******/ var __webpack_module_cache__ = {};
|
|
232
|
+
/******/
|
|
233
|
+
/******/ // The require function
|
|
234
|
+
/******/ function __nuri_require__(moduleId) {
|
|
235
|
+
/******/ // Check if module is in cache
|
|
236
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
237
|
+
/******/ if (cachedModule !== undefined) {
|
|
238
|
+
/******/ return cachedModule.exports;
|
|
239
|
+
/******/ }
|
|
240
|
+
/******/ // Create a new module (and put it into the cache)
|
|
241
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
242
|
+
/******/ // no module.id needed
|
|
243
|
+
/******/ // no module.loaded needed
|
|
244
|
+
/******/ exports: {}
|
|
245
|
+
/******/ };
|
|
246
|
+
/******/
|
|
247
|
+
/******/ // Execute the module function
|
|
248
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
|
|
249
|
+
/******/
|
|
250
|
+
/******/ // Return the exports of the module
|
|
251
|
+
/******/ return module.exports;
|
|
252
|
+
/******/ }
|
|
253
|
+
/******/
|
|
254
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
255
|
+
/******/ __nuri_require__.m = __webpack_modules__;
|
|
256
|
+
/******/
|
|
257
|
+
/************************************************************************/
|
|
258
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
259
|
+
/******/ (() => {
|
|
260
|
+
/******/ var deferred = [];
|
|
261
|
+
/******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
|
|
262
|
+
/******/ if(chunkIds) {
|
|
263
|
+
/******/ priority = priority || 0;
|
|
264
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
265
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
266
|
+
/******/ return;
|
|
267
|
+
/******/ }
|
|
268
|
+
/******/ var notFulfilled = Infinity;
|
|
269
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
270
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
271
|
+
/******/ var fulfilled = true;
|
|
272
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
273
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
|
|
274
|
+
/******/ chunkIds.splice(j--, 1);
|
|
275
|
+
/******/ } else {
|
|
276
|
+
/******/ fulfilled = false;
|
|
277
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
278
|
+
/******/ }
|
|
279
|
+
/******/ }
|
|
280
|
+
/******/ if(fulfilled) {
|
|
281
|
+
/******/ deferred.splice(i--, 1)
|
|
282
|
+
/******/ var r = fn();
|
|
283
|
+
/******/ if (r !== undefined) result = r;
|
|
284
|
+
/******/ }
|
|
285
|
+
/******/ }
|
|
286
|
+
/******/ return result;
|
|
287
|
+
/******/ };
|
|
288
|
+
/******/ })();
|
|
289
|
+
/******/
|
|
290
|
+
/******/ /* webpack/runtime/define property getters */
|
|
291
|
+
/******/ (() => {
|
|
292
|
+
/******/ // define getter functions for harmony exports
|
|
293
|
+
/******/ __nuri_require__.d = (exports, definition) => {
|
|
294
|
+
/******/ for(var key in definition) {
|
|
295
|
+
/******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
|
|
296
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
297
|
+
/******/ }
|
|
298
|
+
/******/ }
|
|
299
|
+
/******/ };
|
|
300
|
+
/******/ })();
|
|
301
|
+
/******/
|
|
302
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
303
|
+
/******/ (() => {
|
|
304
|
+
/******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
305
|
+
/******/ })();
|
|
306
|
+
/******/
|
|
307
|
+
/******/ /* webpack/runtime/export webpack runtime */
|
|
308
|
+
/******/ export { __nuri_require__ };
|
|
309
|
+
/******/
|
|
310
|
+
/******/ /* webpack/runtime/import chunk loading */
|
|
311
|
+
/******/ (() => {
|
|
312
|
+
/******/ // no baseURI
|
|
313
|
+
/******/
|
|
314
|
+
/******/ // object to store loaded and loading chunks
|
|
315
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
316
|
+
/******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
|
|
317
|
+
/******/ var installedChunks = {
|
|
318
|
+
/******/ 9348: 0
|
|
319
|
+
/******/ };
|
|
320
|
+
/******/
|
|
321
|
+
/******/ var installChunk = (data) => {
|
|
322
|
+
/******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
|
|
323
|
+
/******/ // add "modules" to the modules object,
|
|
324
|
+
/******/ // then flag all "ids" as loaded and fire callback
|
|
325
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
326
|
+
/******/ for(moduleId in __webpack_esm_modules__) {
|
|
327
|
+
/******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
|
|
328
|
+
/******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
|
|
329
|
+
/******/ }
|
|
330
|
+
/******/ }
|
|
331
|
+
/******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
|
|
332
|
+
/******/ for(;i < __webpack_esm_ids__.length; i++) {
|
|
333
|
+
/******/ chunkId = __webpack_esm_ids__[i];
|
|
334
|
+
/******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
335
|
+
/******/ installedChunks[chunkId][0]();
|
|
336
|
+
/******/ }
|
|
337
|
+
/******/ installedChunks[__webpack_esm_ids__[i]] = 0;
|
|
338
|
+
/******/ }
|
|
339
|
+
/******/ __nuri_require__.O();
|
|
340
|
+
/******/ }
|
|
341
|
+
/******/
|
|
342
|
+
/******/ // no chunk on demand loading
|
|
343
|
+
/******/
|
|
344
|
+
/******/ // no prefetching
|
|
345
|
+
/******/
|
|
346
|
+
/******/ // no preloaded
|
|
347
|
+
/******/
|
|
348
|
+
/******/ __nuri_require__.C = installChunk;
|
|
349
|
+
/******/
|
|
350
|
+
/******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
351
|
+
/******/ // no HMR
|
|
352
|
+
/******/
|
|
353
|
+
/******/ // no HMR manifest
|
|
354
|
+
/******/ })();
|
|
355
|
+
/******/
|
|
356
|
+
/************************************************************************/
|
|
357
|
+
/******/
|
|
358
|
+
/******/ import * as __webpack_chunk_1__ from "./chunk-3274.js";
|
|
359
|
+
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
360
|
+
/******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
|
|
361
|
+
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
362
|
+
/******/ import * as __webpack_chunk_3__ from "./chunk-4560.js";
|
|
363
|
+
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
364
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-2777.js";
|
|
365
|
+
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
366
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-4577.js";
|
|
367
|
+
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
368
|
+
/******/ import * as __webpack_chunk_6__ from "./chunk-3091.js";
|
|
369
|
+
/******/ __nuri_require__.C(__webpack_chunk_6__);
|
|
370
|
+
/******/
|
|
371
|
+
/******/ // startup
|
|
372
|
+
/******/ // Load entry module and return exports
|
|
373
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
374
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,4560,2777,4577,3091], () => (__nuri_require__(2109)))
|
|
375
|
+
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
376
|
+
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
377
|
+
/******/ export { __webpack_exports__default as default };
|
|
378
|
+
/******/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface CloseOnBackEventOptions {
|
|
2
|
+
open: boolean;
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
/** 뒤로 가기로 닫힐 때만 부른다. 버튼·Esc 로 닫은 뒤 되돌리는 back 에서는 부르지 않는다 */
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* 열린 동안 history 항목을 하나 쌓아, 뒤로 가기가 페이지를 떠나지 않고 이 오버레이를 닫게 한다.
|
|
9
|
+
* 다른 길로 닫히면 쌓은 항목을 history.back() 으로 되돌린다.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useCloseOnBackEvent: ({ open, enabled, onClose }: CloseOnBackEventOptions) => void;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FocusEvent } from 'react';
|
|
2
|
+
type Field = HTMLInputElement | HTMLTextAreaElement;
|
|
3
|
+
/**
|
|
4
|
+
* 입력 상자 안 지우기 버튼(X)의 몫. 포커스가 상자 안에 있는지(버튼으로 옮겨가도 안이다)와
|
|
5
|
+
* 포인터가 버튼 위에 있는지를 들고, 지우기는 진짜 입력처럼 input 이벤트를 쏴서
|
|
6
|
+
* controlled·uncontrolled 어느 쪽이든 평소의 onChange 로 '' 가 가게 한다.
|
|
7
|
+
*/
|
|
8
|
+
export declare const useFieldClear: <T extends Field>(onClear?: () => void) => {
|
|
9
|
+
fieldRef: import("react").RefObject<T>;
|
|
10
|
+
engaged: boolean;
|
|
11
|
+
wrapperProps: {
|
|
12
|
+
onFocus: () => void;
|
|
13
|
+
onBlur: (e: FocusEvent<HTMLElement>) => void;
|
|
14
|
+
};
|
|
15
|
+
clearProps: {
|
|
16
|
+
onPointerEnter: () => void;
|
|
17
|
+
onPointerLeave: () => void;
|
|
18
|
+
onClick: () => void;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CSSProperties, RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 고른 항목 아래로 옮겨 가는 인디케이터의 left·width. 인디케이터는 항목들과 같은 부모 안에 둔다.
|
|
4
|
+
* selector 는 그 부모 안에서 고른 항목 하나를 찾는다(예 `[role="tab"][data-state="active"]`).
|
|
5
|
+
* Radix 가 data-state 를 바꾸는 것을 보고 다시 잰다.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useIndicatorPosition: (indicatorRef: RefObject<HTMLElement | null>, selector: string) => CSSProperties;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Radix 는 Dialog.Trigger 로 열었을 때만 포커스를 돌려준다. 부모가 연 경우를 위해 연 요소를 기억한다.
|
|
3
|
+
* `rememberOpener` 는 Content 의 onOpenAutoFocus, `returnFocus` 는 onCloseAutoFocus 에 단다.
|
|
4
|
+
* 연 요소가 그사이 사라졌으면 Radix 기본 동작에 맡긴다.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useReturnFocus: () => {
|
|
7
|
+
rememberOpener: () => void;
|
|
8
|
+
returnFocus: (event: Event) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 가로로 넘친 목록이 처음에서 밀려났는지와 처음으로 되돌리는 함수. 밀려났을 때만 "처음으로" 화살표를 그린다.
|
|
4
|
+
* Tabs·SegmentedControl(fluid) 이 쓴다.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useScrollStart: (listRef: RefObject<HTMLElement | null>) => {
|
|
7
|
+
scrolled: boolean;
|
|
8
|
+
scrollToStart: () => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** data-effect 이름 → 의미 토큰. styles/motion.css 의 키프레임 이름이 motion-{토큰}-{이름} 이다 */
|
|
2
|
+
export declare const effects: {
|
|
3
|
+
readonly shake: "reject";
|
|
4
|
+
readonly wiggle: "reject";
|
|
5
|
+
readonly shine: "attention";
|
|
6
|
+
readonly blink: "attention";
|
|
7
|
+
};
|
|
8
|
+
export type EffectName = keyof typeof effects;
|
|
9
|
+
export declare const effectAnimationName: (name: EffectName) => string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export type MotionStrength = 'weak' | 'strong';
|
|
2
|
+
export interface PressEffectProps {
|
|
3
|
+
/** 눌림 scale·딤. 기본 true */
|
|
4
|
+
pressEffect?: boolean;
|
|
5
|
+
}
|
|
6
|
+
export interface ConfirmMotionProps {
|
|
7
|
+
motion?: MotionStrength;
|
|
8
|
+
/** ms */
|
|
9
|
+
delay?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface EnterMotionProps {
|
|
12
|
+
motion?: MotionStrength;
|
|
13
|
+
}
|
|
14
|
+
export interface PresenceCallbackProps {
|
|
15
|
+
onEntered?: () => void;
|
|
16
|
+
onExited?: () => void;
|
|
17
|
+
}
|
|
18
|
+
export type AppearAnimation = 'fade' | 'scale' | 'slide';
|
|
19
|
+
export interface AppearProps {
|
|
20
|
+
/** delay 는 ms */
|
|
21
|
+
appear?: {
|
|
22
|
+
animation: AppearAnimation;
|
|
23
|
+
delay?: number;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export interface HideOnScrollProps {
|
|
27
|
+
hideOnScroll?: boolean;
|
|
28
|
+
/** px. 기본 1 */
|
|
29
|
+
hideOnScrollThreshold?: number;
|
|
30
|
+
}
|
|
31
|
+
/** effectRef 로 노출하는 명령형 attention 효과. times 는 반복 횟수, 기본 1 */
|
|
32
|
+
export interface AttentionHandle {
|
|
33
|
+
shine(times?: number): void;
|
|
34
|
+
blink(times?: number): void;
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { AnimationEvent } from 'react';
|
|
2
|
+
import type { AppearProps } from './motion-props';
|
|
3
|
+
/**
|
|
4
|
+
* appear 를 마운트 때 한 번 재생하고 끝나면 클래스를 뗀다.
|
|
5
|
+
* 남겨 두면 fill 이 transform 을 붙잡아 눌림·숨김이 먹지 않고, 같은 요소에 다른 animation 이 붙었다 떨어질 때 appear 가 처음부터 다시 돈다.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useAppear: (appear: AppearProps["appear"]) => {
|
|
8
|
+
className: string | undefined;
|
|
9
|
+
style: import("react").CSSProperties | undefined;
|
|
10
|
+
onAnimationEnd: (event: AnimationEvent<Element>) => void;
|
|
11
|
+
finish: () => void;
|
|
12
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
2
|
+
import type { AttentionHandle } from './motion-props';
|
|
3
|
+
/** effectRef 에 shine·blink 를 걸고, 효과를 받을 루트에 펼칠 data-effect·onAnimationEnd 를 돌려준다 */
|
|
4
|
+
export declare const useAttentionHandle: (effectRef: Ref<AttentionHandle> | undefined) => {
|
|
5
|
+
'data-effect': "blink" | "shake" | "wiggle" | "shine" | undefined;
|
|
6
|
+
onAnimationEnd: (event: import("react").AnimationEvent<Element>) => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ConfirmMotionProps } from './motion-props';
|
|
2
|
+
/**
|
|
3
|
+
* 켜짐(0·1)을 따라가는 스프링의 남은 거리. CSS 가 data-state 로 켜짐을 그리고 `켜짐 - lag` 을 쓴다.
|
|
4
|
+
* 쉴 때 lag 은 0 이라 MotionProvider 가 없어 m.* 가 값을 못 그려도 CSS 만으로 맞는 상태가 보인다.
|
|
5
|
+
* 바뀔 때마다 지금 보이는 위치·속도를 그대로 잇고 0 으로 돌아가므로 연타해도 끊기지 않는다.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useConfirmSpring: (on: boolean, options: ConfirmMotionProps) => import("motion-dom").MotionValue<number>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AnimationEvent } from 'react';
|
|
2
|
+
import type { EffectName } from './effects';
|
|
3
|
+
/**
|
|
4
|
+
* data-effect 로 거는 1회짜리 CSS 효과. 요소에 data-effect={effect} 와 onAnimationEnd 를 단다.
|
|
5
|
+
* trigger(name, times) 는 재생 중이어도 처음부터 다시 times 번 재생한다.
|
|
6
|
+
*/
|
|
7
|
+
export declare const useEffectTrigger: () => {
|
|
8
|
+
effect: "blink" | "shake" | "wiggle" | "shine" | undefined;
|
|
9
|
+
trigger: (name: EffectName, times?: number) => void;
|
|
10
|
+
onAnimationEnd: (event: AnimationEvent<Element>) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
type ScrollTarget = Window | HTMLElement;
|
|
3
|
+
interface HideOnScrollOptions {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
/** px. 이만큼 같은 방향으로 움직여야 바뀐다 */
|
|
6
|
+
threshold?: number;
|
|
7
|
+
/** 기본 window */
|
|
8
|
+
target?: ScrollTarget | RefObject<HTMLElement>;
|
|
9
|
+
}
|
|
10
|
+
/** 아래로 스크롤하면 true(숨김), 위로 스크롤하거나 꼭대기면 false */
|
|
11
|
+
export declare const useHideOnScroll: ({ enabled, threshold, target, }?: HideOnScrollOptions) => boolean;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AnimationEvent } from 'react';
|
|
2
|
+
import type { PresenceCallbackProps } from './motion-props';
|
|
3
|
+
interface PresenceCallbacksOptions extends PresenceCallbackProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Radix Content 에 onAnimationEnd 를 달면 motion-enter-* 가 끝날 때 onEntered, motion-exit-* 가 끝날 때 onExited 를 부른다.
|
|
8
|
+
* 열고 닫을 때마다 한 번씩만 부른다.
|
|
9
|
+
*/
|
|
10
|
+
export declare const usePresenceCallbacks: ({ open, onEntered, onExited }: PresenceCallbacksOptions) => {
|
|
11
|
+
onAnimationEnd: (event: AnimationEvent<Element>) => void;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* stagger 를 받은 목록이 자식 요소마다 .motion-reveal 과 순서(--i)를 단다. 자식은 className·style 을 자기 루트에 합치는 컴포넌트다.
|
|
4
|
+
* 첫 렌더에 있던 자식만 차례로 나타난다. 나중에 더해진 자식은 바로 보인다.
|
|
5
|
+
*/
|
|
6
|
+
export declare const useRevealChildren: (children: ReactNode, stagger: boolean | number | undefined) => (string | number | import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode>)[] | null | undefined;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'react';
|
|
2
|
+
/** 컴포넌트 CSS 가 var() 로 읽는 변수. 값은 단위 없이 그대로 들어간다(React 는 사용자 변수에 px 을 붙이지 않는다) */
|
|
3
|
+
export type CSSVariable = `--${string}`;
|
|
2
4
|
export type ClassNamePropsType<T extends readonly any[] = readonly any[]> = {
|
|
3
5
|
type: 'className';
|
|
4
6
|
className: string;
|
|
@@ -7,13 +9,13 @@ export type ClassNamePropsType<T extends readonly any[] = readonly any[]> = {
|
|
|
7
9
|
};
|
|
8
10
|
export type CSSPropsTypeWithValues<T extends readonly any[] = readonly any[]> = {
|
|
9
11
|
type: 'css';
|
|
10
|
-
key: keyof CSSProperties;
|
|
12
|
+
key: keyof CSSProperties | CSSVariable;
|
|
11
13
|
values: T;
|
|
12
14
|
default?: T[number];
|
|
13
15
|
};
|
|
14
16
|
export type CSSPropsTypeWithoutValues<T extends string | number> = {
|
|
15
17
|
type: 'css';
|
|
16
|
-
key: keyof CSSProperties;
|
|
18
|
+
key: keyof CSSProperties | CSSVariable;
|
|
17
19
|
default?: T;
|
|
18
20
|
};
|
|
19
21
|
export type StylePropsType<T extends readonly any[] = readonly any[]> = {
|