@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,322 @@
|
|
|
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
|
+
/***/ 3769
|
|
7
|
+
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
|
+
|
|
9
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
|
|
14
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(3274);
|
|
15
|
+
/* harmony import */ var _base_skeleton__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(2241);
|
|
16
|
+
/* harmony import */ var _skeleton__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(7687);
|
|
17
|
+
/* harmony import */ var _skeleton_group_props__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(3008);
|
|
18
|
+
var __spreadArray = undefined && undefined.__spreadArray || function (to, from, pack) {
|
|
19
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
20
|
+
if (ar || !(i in from)) {
|
|
21
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
22
|
+
ar[i] = from[i];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
var SPACER = 'spacer:';
|
|
34
|
+
var isSpacer = function isSpacer(token) {
|
|
35
|
+
return token.startsWith(SPACER);
|
|
36
|
+
};
|
|
37
|
+
var parseToken = function parseToken(token) {
|
|
38
|
+
// 접두사 뒤는 타입이 SpacingToken 으로 정해 둔 자리다
|
|
39
|
+
if (isSpacer(token)) return {
|
|
40
|
+
kind: 'spacer',
|
|
41
|
+
size: token.slice(SPACER.length)
|
|
42
|
+
};
|
|
43
|
+
if (token === 'text') return {
|
|
44
|
+
kind: 'text',
|
|
45
|
+
lines: 1
|
|
46
|
+
};
|
|
47
|
+
return {
|
|
48
|
+
kind: token
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
var repeatLast = function repeatLast(blocks, repeat) {
|
|
52
|
+
var last = blocks[blocks.length - 1];
|
|
53
|
+
if (!last) return blocks;
|
|
54
|
+
return __spreadArray(__spreadArray([], blocks.slice(0, -1), true), Array.from({
|
|
55
|
+
length: repeat
|
|
56
|
+
}, function () {
|
|
57
|
+
return last;
|
|
58
|
+
}), true);
|
|
59
|
+
};
|
|
60
|
+
var SkeletonGroup = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
61
|
+
var className = props.className,
|
|
62
|
+
style = props.style,
|
|
63
|
+
_a = props.pattern,
|
|
64
|
+
pattern = _a === void 0 ? 'list' : _a,
|
|
65
|
+
custom = props.custom,
|
|
66
|
+
_b = props.repeat,
|
|
67
|
+
repeat = _b === void 0 ? 3 : _b,
|
|
68
|
+
_c = props.animated,
|
|
69
|
+
animated = _c === void 0 ? true : _c,
|
|
70
|
+
_d = props["aria-label"],
|
|
71
|
+
ariaLabel = _d === void 0 ? '불러오는 중' : _d;
|
|
72
|
+
var blocks = repeatLast(custom ? custom.map(parseToken) : _skeleton_group_props__WEBPACK_IMPORTED_MODULE_5__/* .PATTERNS */ .G[pattern], repeat);
|
|
73
|
+
var _renderBlock = function renderBlock(block, index) {
|
|
74
|
+
switch (block.kind) {
|
|
75
|
+
case 'title':
|
|
76
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_skeleton__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {
|
|
77
|
+
className: 'skeleton-block-title',
|
|
78
|
+
width: 'var(--skeleton-block-title-width)',
|
|
79
|
+
height: 'var(--skeleton-block-title-height)',
|
|
80
|
+
animated: animated
|
|
81
|
+
}, index);
|
|
82
|
+
case 'subtitle':
|
|
83
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_skeleton__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {
|
|
84
|
+
className: 'skeleton-block-subtitle',
|
|
85
|
+
width: 'var(--skeleton-block-subtitle-width)',
|
|
86
|
+
height: 'var(--skeleton-block-subtitle-height)',
|
|
87
|
+
animated: animated
|
|
88
|
+
}, index);
|
|
89
|
+
case 'text':
|
|
90
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_skeleton__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {
|
|
91
|
+
className: 'skeleton-block-text',
|
|
92
|
+
lines: block.lines,
|
|
93
|
+
animated: animated
|
|
94
|
+
}, index);
|
|
95
|
+
case 'circle':
|
|
96
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_skeleton__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {
|
|
97
|
+
className: 'skeleton-block-circle',
|
|
98
|
+
shape: 'circle',
|
|
99
|
+
width: 'var(--skeleton-block-circle-width)',
|
|
100
|
+
animated: animated
|
|
101
|
+
}, index);
|
|
102
|
+
case 'rect':
|
|
103
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_skeleton__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {
|
|
104
|
+
className: 'skeleton-block-rect',
|
|
105
|
+
shape: 'rect',
|
|
106
|
+
height: 'var(--skeleton-block-rect-height)',
|
|
107
|
+
animated: animated
|
|
108
|
+
}, index);
|
|
109
|
+
case 'card':
|
|
110
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_skeleton__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, {
|
|
111
|
+
className: 'skeleton-block-card',
|
|
112
|
+
shape: 'rect',
|
|
113
|
+
height: 'var(--skeleton-block-card-height)',
|
|
114
|
+
animated: animated
|
|
115
|
+
}, index);
|
|
116
|
+
case 'spacer':
|
|
117
|
+
{
|
|
118
|
+
var spacerStyle = {
|
|
119
|
+
'--skeleton-spacer-size': "var(--spacing-".concat(block.size, ")")
|
|
120
|
+
};
|
|
121
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", {
|
|
122
|
+
className: 'skeleton-block-spacer',
|
|
123
|
+
style: spacerStyle,
|
|
124
|
+
"aria-hidden": true
|
|
125
|
+
}, index);
|
|
126
|
+
}
|
|
127
|
+
case 'row':
|
|
128
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
|
|
129
|
+
className: 'skeleton-block-row',
|
|
130
|
+
children: block.items.map(_renderBlock)
|
|
131
|
+
}, index);
|
|
132
|
+
default:
|
|
133
|
+
{
|
|
134
|
+
var unhandled = block;
|
|
135
|
+
return unhandled;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
};
|
|
139
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_skeleton__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A.Group, {
|
|
140
|
+
ref: ref,
|
|
141
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__/* .classNames */ .x)(className, 'skeleton-group'),
|
|
142
|
+
style: style,
|
|
143
|
+
"aria-label": ariaLabel,
|
|
144
|
+
children: blocks.map(_renderBlock)
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
SkeletonGroup.displayName = 'SkeletonGroup';
|
|
148
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (SkeletonGroup);
|
|
149
|
+
|
|
150
|
+
/***/ },
|
|
151
|
+
|
|
152
|
+
/***/ 1041
|
|
153
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
154
|
+
|
|
155
|
+
var x = (y) => {
|
|
156
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
157
|
+
}
|
|
158
|
+
var y = (x) => (() => (x))
|
|
159
|
+
module.exports = x({ ["forwardRef"]: () => (__WEBPACK_EXTERNAL_MODULE_react__.forwardRef) });
|
|
160
|
+
|
|
161
|
+
/***/ },
|
|
162
|
+
|
|
163
|
+
/***/ 612
|
|
164
|
+
(module, __unused_webpack_exports, __nuri_require__) {
|
|
165
|
+
|
|
166
|
+
var x = (y) => {
|
|
167
|
+
var x = {}; __nuri_require__.d(x, y); return x
|
|
168
|
+
}
|
|
169
|
+
var y = (x) => (() => (x))
|
|
170
|
+
module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__.jsx) });
|
|
171
|
+
|
|
172
|
+
/***/ }
|
|
173
|
+
|
|
174
|
+
/******/ });
|
|
175
|
+
/************************************************************************/
|
|
176
|
+
/******/ // The module cache
|
|
177
|
+
/******/ var __webpack_module_cache__ = {};
|
|
178
|
+
/******/
|
|
179
|
+
/******/ // The require function
|
|
180
|
+
/******/ function __nuri_require__(moduleId) {
|
|
181
|
+
/******/ // Check if module is in cache
|
|
182
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
183
|
+
/******/ if (cachedModule !== undefined) {
|
|
184
|
+
/******/ return cachedModule.exports;
|
|
185
|
+
/******/ }
|
|
186
|
+
/******/ // Create a new module (and put it into the cache)
|
|
187
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
188
|
+
/******/ // no module.id needed
|
|
189
|
+
/******/ // no module.loaded needed
|
|
190
|
+
/******/ exports: {}
|
|
191
|
+
/******/ };
|
|
192
|
+
/******/
|
|
193
|
+
/******/ // Execute the module function
|
|
194
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __nuri_require__);
|
|
195
|
+
/******/
|
|
196
|
+
/******/ // Return the exports of the module
|
|
197
|
+
/******/ return module.exports;
|
|
198
|
+
/******/ }
|
|
199
|
+
/******/
|
|
200
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
201
|
+
/******/ __nuri_require__.m = __webpack_modules__;
|
|
202
|
+
/******/
|
|
203
|
+
/************************************************************************/
|
|
204
|
+
/******/ /* webpack/runtime/chunk loaded */
|
|
205
|
+
/******/ (() => {
|
|
206
|
+
/******/ var deferred = [];
|
|
207
|
+
/******/ __nuri_require__.O = (result, chunkIds, fn, priority) => {
|
|
208
|
+
/******/ if(chunkIds) {
|
|
209
|
+
/******/ priority = priority || 0;
|
|
210
|
+
/******/ for(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];
|
|
211
|
+
/******/ deferred[i] = [chunkIds, fn, priority];
|
|
212
|
+
/******/ return;
|
|
213
|
+
/******/ }
|
|
214
|
+
/******/ var notFulfilled = Infinity;
|
|
215
|
+
/******/ for (var i = 0; i < deferred.length; i++) {
|
|
216
|
+
/******/ var [chunkIds, fn, priority] = deferred[i];
|
|
217
|
+
/******/ var fulfilled = true;
|
|
218
|
+
/******/ for (var j = 0; j < chunkIds.length; j++) {
|
|
219
|
+
/******/ if ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__nuri_require__.O).every((key) => (__nuri_require__.O[key](chunkIds[j])))) {
|
|
220
|
+
/******/ chunkIds.splice(j--, 1);
|
|
221
|
+
/******/ } else {
|
|
222
|
+
/******/ fulfilled = false;
|
|
223
|
+
/******/ if(priority < notFulfilled) notFulfilled = priority;
|
|
224
|
+
/******/ }
|
|
225
|
+
/******/ }
|
|
226
|
+
/******/ if(fulfilled) {
|
|
227
|
+
/******/ deferred.splice(i--, 1)
|
|
228
|
+
/******/ var r = fn();
|
|
229
|
+
/******/ if (r !== undefined) result = r;
|
|
230
|
+
/******/ }
|
|
231
|
+
/******/ }
|
|
232
|
+
/******/ return result;
|
|
233
|
+
/******/ };
|
|
234
|
+
/******/ })();
|
|
235
|
+
/******/
|
|
236
|
+
/******/ /* webpack/runtime/define property getters */
|
|
237
|
+
/******/ (() => {
|
|
238
|
+
/******/ // define getter functions for harmony exports
|
|
239
|
+
/******/ __nuri_require__.d = (exports, definition) => {
|
|
240
|
+
/******/ for(var key in definition) {
|
|
241
|
+
/******/ if(__nuri_require__.o(definition, key) && !__nuri_require__.o(exports, key)) {
|
|
242
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
243
|
+
/******/ }
|
|
244
|
+
/******/ }
|
|
245
|
+
/******/ };
|
|
246
|
+
/******/ })();
|
|
247
|
+
/******/
|
|
248
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
249
|
+
/******/ (() => {
|
|
250
|
+
/******/ __nuri_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
251
|
+
/******/ })();
|
|
252
|
+
/******/
|
|
253
|
+
/******/ /* webpack/runtime/export webpack runtime */
|
|
254
|
+
/******/ export { __nuri_require__ };
|
|
255
|
+
/******/
|
|
256
|
+
/******/ /* webpack/runtime/import chunk loading */
|
|
257
|
+
/******/ (() => {
|
|
258
|
+
/******/ // no baseURI
|
|
259
|
+
/******/
|
|
260
|
+
/******/ // object to store loaded and loading chunks
|
|
261
|
+
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
262
|
+
/******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
|
|
263
|
+
/******/ var installedChunks = {
|
|
264
|
+
/******/ 8240: 0
|
|
265
|
+
/******/ };
|
|
266
|
+
/******/
|
|
267
|
+
/******/ var installChunk = (data) => {
|
|
268
|
+
/******/ var {__webpack_esm_ids__, __webpack_esm_modules__, __webpack_esm_runtime__} = data;
|
|
269
|
+
/******/ // add "modules" to the modules object,
|
|
270
|
+
/******/ // then flag all "ids" as loaded and fire callback
|
|
271
|
+
/******/ var moduleId, chunkId, i = 0;
|
|
272
|
+
/******/ for(moduleId in __webpack_esm_modules__) {
|
|
273
|
+
/******/ if(__nuri_require__.o(__webpack_esm_modules__, moduleId)) {
|
|
274
|
+
/******/ __nuri_require__.m[moduleId] = __webpack_esm_modules__[moduleId];
|
|
275
|
+
/******/ }
|
|
276
|
+
/******/ }
|
|
277
|
+
/******/ if(__webpack_esm_runtime__) __webpack_esm_runtime__(__nuri_require__);
|
|
278
|
+
/******/ for(;i < __webpack_esm_ids__.length; i++) {
|
|
279
|
+
/******/ chunkId = __webpack_esm_ids__[i];
|
|
280
|
+
/******/ if(__nuri_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
|
|
281
|
+
/******/ installedChunks[chunkId][0]();
|
|
282
|
+
/******/ }
|
|
283
|
+
/******/ installedChunks[__webpack_esm_ids__[i]] = 0;
|
|
284
|
+
/******/ }
|
|
285
|
+
/******/ __nuri_require__.O();
|
|
286
|
+
/******/ }
|
|
287
|
+
/******/
|
|
288
|
+
/******/ // no chunk on demand loading
|
|
289
|
+
/******/
|
|
290
|
+
/******/ // no prefetching
|
|
291
|
+
/******/
|
|
292
|
+
/******/ // no preloaded
|
|
293
|
+
/******/
|
|
294
|
+
/******/ __nuri_require__.C = installChunk;
|
|
295
|
+
/******/
|
|
296
|
+
/******/ __nuri_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);
|
|
297
|
+
/******/ // no HMR
|
|
298
|
+
/******/
|
|
299
|
+
/******/ // no HMR manifest
|
|
300
|
+
/******/ })();
|
|
301
|
+
/******/
|
|
302
|
+
/************************************************************************/
|
|
303
|
+
/******/
|
|
304
|
+
/******/ import * as __webpack_chunk_1__ from "./chunk-3274.js";
|
|
305
|
+
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
306
|
+
/******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
|
|
307
|
+
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
308
|
+
/******/ import * as __webpack_chunk_3__ from "./chunk-5670.js";
|
|
309
|
+
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
310
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-674.js";
|
|
311
|
+
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
312
|
+
/******/ import * as __webpack_chunk_5__ from "./chunk-2060.js";
|
|
313
|
+
/******/ __nuri_require__.C(__webpack_chunk_5__);
|
|
314
|
+
/******/
|
|
315
|
+
/******/ // startup
|
|
316
|
+
/******/ // Load entry module and return exports
|
|
317
|
+
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
318
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,5670,674,2060], () => (__nuri_require__(3769)))
|
|
319
|
+
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
320
|
+
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
321
|
+
/******/ export { __webpack_exports__default as default };
|
|
322
|
+
/******/
|
package/dist/skeleton.js
CHANGED
|
@@ -3,24 +3,18 @@ import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_179142b8__ from "react/jsx-runtime";
|
|
4
4
|
/******/ var __webpack_modules__ = ({
|
|
5
5
|
|
|
6
|
-
/***/
|
|
6
|
+
/***/ 7687
|
|
7
7
|
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
|
|
18
|
-
var external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_ = __nuri_require__(1041);
|
|
19
|
-
// EXTERNAL MODULE: ./helpers/utils/classNames.js
|
|
20
|
-
var classNames = __nuri_require__(3274);
|
|
21
|
-
// EXTERNAL MODULE: ./helpers/utils/getMergedProps.ts
|
|
22
|
-
var getMergedProps = __nuri_require__(7335);
|
|
23
|
-
;// ./components/skeleton/base-skeleton.tsx
|
|
9
|
+
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
10
|
+
/* harmony export */ A: () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
11
|
+
/* harmony export */ });
|
|
12
|
+
/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __nuri_require__(612);
|
|
13
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __nuri_require__(1041);
|
|
14
|
+
/* harmony import */ var _helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__ = __nuri_require__(3274);
|
|
15
|
+
/* harmony import */ var _helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_3__ = __nuri_require__(7335);
|
|
16
|
+
/* harmony import */ var _base_skeleton__WEBPACK_IMPORTED_MODULE_4__ = __nuri_require__(2241);
|
|
17
|
+
/* harmony import */ var _skeleton_props__WEBPACK_IMPORTED_MODULE_5__ = __nuri_require__(1542);
|
|
24
18
|
var __assign = undefined && undefined.__assign || function () {
|
|
25
19
|
__assign = Object.assign || function (t) {
|
|
26
20
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -42,64 +36,10 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
42
36
|
|
|
43
37
|
|
|
44
38
|
|
|
45
|
-
var BaseSkeleton = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_module_react_.forwardRef)(function (props, ref) {
|
|
46
|
-
var className = props.className,
|
|
47
|
-
_a = props["aria-hidden"],
|
|
48
|
-
ariaHidden = _a === void 0 ? true : _a,
|
|
49
|
-
restProps = __rest(props, ["className", 'aria-hidden']);
|
|
50
|
-
return (0,jsx_runtime_.jsx)("span", __assign({
|
|
51
|
-
ref: ref,
|
|
52
|
-
className: (0,classNames/* classNames */.x)('nuri-theme base-skeleton', className),
|
|
53
|
-
"aria-hidden": ariaHidden,
|
|
54
|
-
"aria-busy": true
|
|
55
|
-
}, restProps));
|
|
56
|
-
});
|
|
57
|
-
BaseSkeleton.displayName = 'BaseSkeleton';
|
|
58
|
-
/* harmony default export */ const base_skeleton = (BaseSkeleton);
|
|
59
|
-
// EXTERNAL MODULE: ./helpers/props/common-props.ts
|
|
60
|
-
var common_props = __nuri_require__(7298);
|
|
61
|
-
;// ./components/skeleton/skeleton-props.ts
|
|
62
|
-
|
|
63
|
-
var shapes = ['text', 'rect', 'circle'];
|
|
64
|
-
var skeletonProps = {
|
|
65
|
-
shape: {
|
|
66
|
-
type: 'className',
|
|
67
|
-
className: 'shape',
|
|
68
|
-
values: shapes,
|
|
69
|
-
"default": 'text'
|
|
70
|
-
},
|
|
71
|
-
width: (0,common_props/* widthProp */.Iw)('100%'),
|
|
72
|
-
height: {
|
|
73
|
-
type: 'css',
|
|
74
|
-
key: 'height'
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
;// ./components/skeleton/skeleton.tsx
|
|
78
|
-
var skeleton_assign = undefined && undefined.__assign || function () {
|
|
79
|
-
skeleton_assign = Object.assign || function (t) {
|
|
80
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
81
|
-
s = arguments[i];
|
|
82
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
83
|
-
}
|
|
84
|
-
return t;
|
|
85
|
-
};
|
|
86
|
-
return skeleton_assign.apply(this, arguments);
|
|
87
|
-
};
|
|
88
|
-
var skeleton_rest = undefined && undefined.__rest || function (s, e) {
|
|
89
|
-
var t = {};
|
|
90
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
91
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
92
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
93
|
-
}
|
|
94
|
-
return t;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
39
|
|
|
100
40
|
|
|
101
41
|
|
|
102
|
-
var Skeleton = /*#__PURE__*/(0,
|
|
42
|
+
var Skeleton = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(function (props, ref) {
|
|
103
43
|
var shape = props.shape,
|
|
104
44
|
width = props.width,
|
|
105
45
|
height = props.height,
|
|
@@ -107,60 +47,32 @@ var Skeleton = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_reac
|
|
|
107
47
|
lines = _a === void 0 ? 1 : _a,
|
|
108
48
|
_b = props.animated,
|
|
109
49
|
animated = _b === void 0 ? true : _b,
|
|
110
|
-
rest =
|
|
50
|
+
rest = __rest(props, ["shape", "width", "height", "lines", "animated"]);
|
|
111
51
|
var isCircle = shape === 'circle';
|
|
112
|
-
var _c = (0,
|
|
52
|
+
var _c = (0,_helpers_utils_getMergedProps__WEBPACK_IMPORTED_MODULE_3__/* .getMergedProps */ .p)(__assign(__assign({}, rest), {
|
|
113
53
|
shape: shape,
|
|
114
54
|
width: width,
|
|
115
55
|
// 원은 높이를 따로 주지 않으면 폭과 같다.
|
|
116
|
-
height: height !== null && height !== void 0 ? height : isCircle ? width !== null && width !== void 0 ? width : skeletonProps.width["default"] : undefined
|
|
117
|
-
}), skeletonProps),
|
|
56
|
+
height: height !== null && height !== void 0 ? height : isCircle ? width !== null && width !== void 0 ? width : _skeleton_props__WEBPACK_IMPORTED_MODULE_5__/* .skeletonProps */ .Q.width["default"] : undefined
|
|
57
|
+
}), _skeleton_props__WEBPACK_IMPORTED_MODULE_5__/* .skeletonProps */ .Q),
|
|
118
58
|
className = _c.className,
|
|
119
|
-
restProps =
|
|
59
|
+
restProps = __rest(_c, ["className"]);
|
|
120
60
|
var isMultiline = !isCircle && shape !== 'rect' && lines > 1;
|
|
121
|
-
return (0,
|
|
61
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_base_skeleton__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A, __assign({
|
|
122
62
|
ref: ref,
|
|
123
|
-
className: (0,
|
|
63
|
+
className: (0,_helpers_utils_classNames__WEBPACK_IMPORTED_MODULE_2__/* .classNames */ .x)(className, 'skeleton', animated && 'animated', isMultiline && 'multiline')
|
|
124
64
|
}, restProps, {
|
|
125
65
|
children: isMultiline && Array.from({
|
|
126
66
|
length: lines
|
|
127
67
|
}, function (_, index) {
|
|
128
|
-
return (0,
|
|
68
|
+
return (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("span", {
|
|
129
69
|
className: 'skeleton-line'
|
|
130
70
|
}, index);
|
|
131
71
|
})
|
|
132
72
|
}));
|
|
133
73
|
});
|
|
134
74
|
Skeleton.displayName = 'Skeleton';
|
|
135
|
-
/* harmony default export */ const
|
|
136
|
-
|
|
137
|
-
/***/ },
|
|
138
|
-
|
|
139
|
-
/***/ 7298
|
|
140
|
-
(__unused_webpack_module, __webpack_exports__, __nuri_require__) {
|
|
141
|
-
|
|
142
|
-
/* harmony export */ __nuri_require__.d(__webpack_exports__, {
|
|
143
|
-
/* harmony export */ Iw: () => (/* binding */ widthProp)
|
|
144
|
-
/* harmony export */ });
|
|
145
|
-
/* unused harmony exports size, sizeProp */
|
|
146
|
-
/** 모든 컴포넌트가 함께 쓰는 크기 이름. px 은 styles/token/size.css 에 있다. */
|
|
147
|
-
var size = (/* unused pure expression or super */ null && (['xs', 's', 'm', 'l', 'xl']));
|
|
148
|
-
/** 컴포넌트는 다섯 이름 중 지원하는 것만 고른다. `size-{값}` 클래스가 붙는다. */
|
|
149
|
-
var sizeProp = function sizeProp(values, defaultValue) {
|
|
150
|
-
return {
|
|
151
|
-
type: 'className',
|
|
152
|
-
className: 'size',
|
|
153
|
-
values: values,
|
|
154
|
-
"default": defaultValue
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
var widthProp = function widthProp(defaultValue) {
|
|
158
|
-
return {
|
|
159
|
-
type: 'css',
|
|
160
|
-
key: 'width',
|
|
161
|
-
"default": defaultValue
|
|
162
|
-
};
|
|
163
|
-
};
|
|
75
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Skeleton);
|
|
164
76
|
|
|
165
77
|
/***/ },
|
|
166
78
|
|
|
@@ -276,9 +188,7 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
276
188
|
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
|
277
189
|
/******/ // [resolve, Promise] = chunk loading, 0 = chunk loaded
|
|
278
190
|
/******/ var installedChunks = {
|
|
279
|
-
/******/ 74: 0
|
|
280
|
-
/******/ 4917: 0,
|
|
281
|
-
/******/ 7298: 0
|
|
191
|
+
/******/ 74: 0
|
|
282
192
|
/******/ };
|
|
283
193
|
/******/
|
|
284
194
|
/******/ var installChunk = (data) => {
|
|
@@ -322,11 +232,15 @@ module.exports = x({ ["jsx"]: () => (__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime
|
|
|
322
232
|
/******/ __nuri_require__.C(__webpack_chunk_1__);
|
|
323
233
|
/******/ import * as __webpack_chunk_2__ from "./chunk-7335.js";
|
|
324
234
|
/******/ __nuri_require__.C(__webpack_chunk_2__);
|
|
235
|
+
/******/ import * as __webpack_chunk_3__ from "./chunk-5670.js";
|
|
236
|
+
/******/ __nuri_require__.C(__webpack_chunk_3__);
|
|
237
|
+
/******/ import * as __webpack_chunk_4__ from "./chunk-2060.js";
|
|
238
|
+
/******/ __nuri_require__.C(__webpack_chunk_4__);
|
|
325
239
|
/******/
|
|
326
240
|
/******/ // startup
|
|
327
241
|
/******/ // Load entry module and return exports
|
|
328
242
|
/******/ // This entry module depends on other loaded chunks and execution need to be delayed
|
|
329
|
-
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335], () => (__nuri_require__(
|
|
243
|
+
/******/ var __webpack_exports__ = __nuri_require__.O(undefined, [3274,7335,5670,2060], () => (__nuri_require__(7687)))
|
|
330
244
|
/******/ __webpack_exports__ = __nuri_require__.O(__webpack_exports__);
|
|
331
245
|
/******/ const __webpack_exports__default = __webpack_exports__.A;
|
|
332
246
|
/******/ export { __webpack_exports__default as default };
|