@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
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
description: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
component: import("react").ForwardRefExoticComponent<import("./badge-type").IconTextBadgeProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
12
|
argTypes: {
|
|
6
13
|
variant: {
|
|
@@ -23,9 +30,17 @@ declare const meta: {
|
|
|
23
30
|
};
|
|
24
31
|
export default meta;
|
|
25
32
|
type Story = StoryObj<typeof meta>;
|
|
33
|
+
/** 아이콘·텍스트·툴팁을 단 IconTextBadge 다. 마우스를 올리면 왼쪽에 툴팁이 뜬다. */
|
|
26
34
|
export declare const Default: Story;
|
|
35
|
+
/** IconTextBadge 를 크기별로 늘어놓았다. 크기마다 높이와 글자 크기 차이를 본다. */
|
|
27
36
|
export declare const IconText: Story;
|
|
37
|
+
/** OptionBadge 를 크기별로 늘어놓았다. 크기마다 높이와 글자 크기 차이를 본다. */
|
|
28
38
|
export declare const Option: Story;
|
|
39
|
+
/** IconTextOptionBadge 를 크기별로 늘어놓았다. 오른쪽 부가 값(2.4K)이 크기마다 어떻게 맞춰지는지 본다. */
|
|
29
40
|
export declare const IconTextOption: Story;
|
|
41
|
+
/** variant 마다 세 배지를 한 줄에 그렸다. 같은 variant 에서 세 배지의 색이 맞는지 본다. */
|
|
30
42
|
export declare const Variants: Story;
|
|
43
|
+
/** 툴팁을 단 IconTextBadge 와 OptionBadge 다. 각각에 마우스를 올려 툴팁이 뜨는 방향을 본다. */
|
|
31
44
|
export declare const WithTooltip: Story;
|
|
45
|
+
/** effectRef 의 shine·blink 를 버튼으로 부른다. 재생 중에 다시 누르면 처음부터 다시 재생한다 */
|
|
46
|
+
export declare const MotionAttention: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BarChartDatum, BarChartFill, BarVariant } from './bar-chart-type';
|
|
2
|
+
export declare const DEFAULT_FILL: BarChartFill;
|
|
3
|
+
/** 막대마다 색. 막대의 variant 가 fill 규칙보다 먼저다 */
|
|
4
|
+
export declare const resolveBarVariants: (data: readonly BarChartDatum[], fill?: BarChartFill) => BarVariant[];
|
|
5
|
+
/** 막대마다 높이 비율(0~1). 기준은 막대의 maxValue, 없으면 data 의 가장 큰 value */
|
|
6
|
+
export declare const resolveBarRatios: (data: readonly BarChartDatum[]) => number[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** 막대 색. success·danger 는 진한 surface 역할이 없어(subtle 뿐) 두지 않는다 */
|
|
2
|
+
export declare const variants: readonly ["brand", "neutral"];
|
|
3
|
+
/** 이 수를 넘으면 첫·끝 라벨만 그린다 */
|
|
4
|
+
export declare const MAX_LABELS = 12;
|
|
5
|
+
export declare const barChartProps: {
|
|
6
|
+
height: {
|
|
7
|
+
type: "css";
|
|
8
|
+
key: "height";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const barChartBarProps: {
|
|
12
|
+
variant: {
|
|
13
|
+
type: "className";
|
|
14
|
+
className: string;
|
|
15
|
+
values: readonly ["brand", "neutral"];
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { StyleProps } from '../../helpers/types/common-props';
|
|
3
|
+
import { variants } from './bar-chart-props';
|
|
4
|
+
export type BarVariant = (typeof variants)[number];
|
|
5
|
+
export interface BarChartDatum {
|
|
6
|
+
value: number;
|
|
7
|
+
/** 이 막대의 100%. 없으면 data 의 가장 큰 value 가 100% 다 */
|
|
8
|
+
maxValue?: number;
|
|
9
|
+
/** 막대 아래 글. data 가 12개를 넘으면 첫·끝 라벨만 그린다 */
|
|
10
|
+
label?: ReactNode;
|
|
11
|
+
/** 막대 바로 위 글(값, "이번 달" 같은 표시) */
|
|
12
|
+
annotation?: ReactNode;
|
|
13
|
+
/** 이 막대만 fill 과 다른 색 */
|
|
14
|
+
variant?: BarVariant;
|
|
15
|
+
}
|
|
16
|
+
/** 막대 색을 정하는 규칙. 막대 하나의 variant 가 있으면 그것이 이긴다 */
|
|
17
|
+
export type BarChartFill = {
|
|
18
|
+
type: 'all-bar';
|
|
19
|
+
variant: BarVariant;
|
|
20
|
+
} | {
|
|
21
|
+
type: 'single-bar';
|
|
22
|
+
index: number;
|
|
23
|
+
} | {
|
|
24
|
+
type: 'auto';
|
|
25
|
+
count: number;
|
|
26
|
+
};
|
|
27
|
+
export type BaseBarChartRootProps = ComponentPropsWithRef<'div'>;
|
|
28
|
+
export interface BaseBarChartPlotProps extends ComponentPropsWithRef<'div'> {
|
|
29
|
+
'aria-label': string;
|
|
30
|
+
}
|
|
31
|
+
export interface BaseBarChartColumnProps extends ComponentPropsWithRef<'div'> {
|
|
32
|
+
annotation?: ReactNode;
|
|
33
|
+
barClassName?: string;
|
|
34
|
+
}
|
|
35
|
+
export type BaseBarChartLabelsProps = ComponentPropsWithRef<'div'>;
|
|
36
|
+
export type BaseBarChartLabelProps = ComponentPropsWithRef<'span'>;
|
|
37
|
+
export type BaseBarChartDescriptionProps = ComponentPropsWithRef<'div'>;
|
|
38
|
+
export interface BarChartProps extends StyleProps {
|
|
39
|
+
data: readonly BarChartDatum[];
|
|
40
|
+
/** 기본 { type: 'all-bar', variant: 'brand' } */
|
|
41
|
+
fill?: BarChartFill;
|
|
42
|
+
/** 차트 전체 높이(라벨 포함). 숫자는 px. 기본 --bar-chart-height */
|
|
43
|
+
height?: number | string;
|
|
44
|
+
/** 막대가 아래에서 차오른다. 기본 true */
|
|
45
|
+
animated?: boolean;
|
|
46
|
+
/** 처음 그릴 때 막대가 차례로 나타난다. true 면 토큰 간격, 숫자면 막대 사이 간격(ms). animated 일 때만 */
|
|
47
|
+
stagger?: boolean | number;
|
|
48
|
+
/** 차트 요약. 낭독기가 그림 이름으로 읽는다 */
|
|
49
|
+
'aria-label': string;
|
|
50
|
+
/** 값을 글로 옮긴 대체 글. 화면에는 보이지 않는다. 없으면 label·value 로 문장을 만든다 */
|
|
51
|
+
description?: ReactNode;
|
|
52
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BarChartProps } from './bar-chart-type';
|
|
2
|
+
declare const BarChart: import("react").ForwardRefExoticComponent<BarChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export default BarChart;
|
|
4
|
+
export type { BarChartDatum, BarChartFill, BarChartProps, BarVariant } from './bar-chart-type';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
import { BarChartFill } from './bar-chart-type';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
component: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
component: import("react").ForwardRefExoticComponent<import("./bar-chart-type").BarChartProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
argTypes: {
|
|
14
|
+
animated: {
|
|
15
|
+
control: {
|
|
16
|
+
type: "boolean";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
height: {
|
|
20
|
+
control: {
|
|
21
|
+
type: "text";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
args: {
|
|
26
|
+
data: {
|
|
27
|
+
value: number;
|
|
28
|
+
label: string;
|
|
29
|
+
}[];
|
|
30
|
+
'aria-label': string;
|
|
31
|
+
};
|
|
32
|
+
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
33
|
+
data: readonly import("./bar-chart-type").BarChartDatum[];
|
|
34
|
+
fill?: BarChartFill | undefined;
|
|
35
|
+
height?: number | string | undefined;
|
|
36
|
+
animated?: boolean | undefined;
|
|
37
|
+
stagger?: boolean | number | undefined;
|
|
38
|
+
'aria-label': string;
|
|
39
|
+
description?: import("react").ReactNode;
|
|
40
|
+
className?: string | undefined;
|
|
41
|
+
style?: import("react").CSSProperties | undefined;
|
|
42
|
+
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
43
|
+
key?: import("react").Key | null | undefined;
|
|
44
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
45
|
+
};
|
|
46
|
+
export default meta;
|
|
47
|
+
type Story = StoryObj<typeof meta>;
|
|
48
|
+
/** 모든 막대가 brand 색이고 마운트 때 아래에서 차오른다. */
|
|
49
|
+
export declare const Default: Story;
|
|
50
|
+
/** fill 세 종류. single-bar 는 한 막대만, auto 는 오른쪽부터 count 개를 brand 로 칠한다. */
|
|
51
|
+
export declare const Fills: Story;
|
|
52
|
+
/** 막대 위 글. 가장 높은 막대 위에도 글이 들어가게 차트 위가 한 줄 비워진다. */
|
|
53
|
+
export declare const Annotation: Story;
|
|
54
|
+
/** 막대가 차례로 나타나고 그 순서대로 차오른다. 숫자면 막대 사이 간격(ms)이다. */
|
|
55
|
+
export declare const Stagger: Story;
|
|
56
|
+
/** animated={false} 면 처음부터 끝 높이로 그린다. */
|
|
57
|
+
export declare const NotAnimated: Story;
|
|
58
|
+
/** 12개를 넘으면 첫·끝 라벨만 그린다. 값은 낭독기용 설명 글에 모두 있다. */
|
|
59
|
+
export declare const ManyBars: Story;
|
|
60
|
+
/** 막대마다 다른 기준(maxValue). 목표 대비 달성률을 견줄 때. */
|
|
61
|
+
export declare const MaxValue: Story;
|
|
62
|
+
/** 값이 모두 0 이면 막대가 보이지 않는다. 라벨은 남는다. */
|
|
63
|
+
export declare const Empty: Story;
|
|
64
|
+
/** 긴 라벨은 칸 폭에서 말줄임된다. */
|
|
65
|
+
export declare const LongLabels: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BaseBarChartColumnProps, BaseBarChartPlotProps } from './bar-chart-type';
|
|
2
|
+
declare const BarChartRoot: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
5
|
+
Plot: import("react").ForwardRefExoticComponent<Omit<BaseBarChartPlotProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
Column: import("react").ForwardRefExoticComponent<Omit<BaseBarChartColumnProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
|
+
Labels: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
8
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
9
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
|
+
Label: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
11
|
+
ref?: ((instance: HTMLSpanElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
12
|
+
}, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
13
|
+
Description: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
};
|
|
17
|
+
export default BarChartRoot;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BoardRowRootProps } from './board-row-type';
|
|
2
|
+
declare const BoardRowRoot: import("react").ForwardRefExoticComponent<Omit<BoardRowRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
|
+
Trigger: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
|
|
5
|
+
}, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
Content: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
+
Group: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
};
|
|
13
|
+
export default BoardRowRoot;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { PressEffectProps } from '../../helpers/motion/motion-props';
|
|
3
|
+
import { TrackProps } from '../logging/logging-type';
|
|
4
|
+
export interface BoardRowRootProps extends ComponentPropsWithRef<'div'> {
|
|
5
|
+
open?: boolean;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
}
|
|
9
|
+
export type BoardRowTriggerProps = ComponentPropsWithRef<'button'>;
|
|
10
|
+
export type BoardRowContentProps = ComponentPropsWithRef<'div'>;
|
|
11
|
+
export type BoardRowGroupProps = ComponentPropsWithRef<'div'>;
|
|
12
|
+
export interface BoardRowProps extends Omit<ComponentPropsWithRef<'div'>, 'title' | 'prefix' | 'children'>, TrackProps, PressEffectProps {
|
|
13
|
+
/** 행 제목. 누르면 본문이 열리고 닫힌다 */
|
|
14
|
+
title: ReactNode;
|
|
15
|
+
/** 제목 앞 머리글. 예: "Q" */
|
|
16
|
+
prefix?: ReactNode;
|
|
17
|
+
open?: boolean;
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
onOpenChange?: (open: boolean) => void;
|
|
20
|
+
/** 열렸을 때 보이는 본문. 보통 Post */
|
|
21
|
+
children: ReactNode;
|
|
22
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BoardRowProps } from './board-row-type';
|
|
2
|
+
declare const BoardRow: import("react").ForwardRefExoticComponent<Omit<BoardRowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
3
|
+
Group: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
4
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
5
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
+
};
|
|
7
|
+
export default BoardRow;
|
|
8
|
+
export type { BoardRowGroupProps, BoardRowProps } from './board-row-type';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
description: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("./board-row-type").BoardRowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
13
|
+
Group: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
14
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
15
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
16
|
+
};
|
|
17
|
+
args: {
|
|
18
|
+
title: string;
|
|
19
|
+
prefix: string;
|
|
20
|
+
children: string;
|
|
21
|
+
};
|
|
22
|
+
render: (args: Omit<import("./board-row-type").BoardRowProps, "ref"> & import("react").RefAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export default meta;
|
|
25
|
+
type Story = StoryObj<typeof meta>;
|
|
26
|
+
export declare const Default: Story;
|
|
27
|
+
export declare const DefaultOpen: Story;
|
|
28
|
+
export declare const WithoutPrefix: Story;
|
|
29
|
+
/** BoardRow.Group 은 행 사이에 선을 긋는다 */
|
|
30
|
+
export declare const Group: Story;
|
|
31
|
+
/** 누르고 있으면 배경이 어두워진다. 아래 행은 pressEffect={false} */
|
|
32
|
+
export declare const MotionPress: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const BaseBorder: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLHRElement>, HTMLHRElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLHRElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLHRElement> | null | undefined;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLHRElement>>;
|
|
4
|
+
export default BaseBorder;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** full 은 끝까지, inset 은 좌우를 안쪽 여백만큼 띄운 선, section 은 묶음 사이의 두꺼운 띠 */
|
|
2
|
+
export declare const variant: readonly ["full", "inset", "section"];
|
|
3
|
+
export declare const borderProps: {
|
|
4
|
+
variant: {
|
|
5
|
+
type: "className";
|
|
6
|
+
className: string;
|
|
7
|
+
values: readonly ["full", "inset", "section"];
|
|
8
|
+
default: "full";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import { variant } from './border-props';
|
|
3
|
+
export type BaseBorderProps = ComponentPropsWithRef<'hr'>;
|
|
4
|
+
export interface BorderProps extends ComponentPropsWithRef<'hr'> {
|
|
5
|
+
/** 기본 full */
|
|
6
|
+
variant?: (typeof variant)[number];
|
|
7
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { BorderProps } from './border-type';
|
|
2
|
+
/** 내용 사이를 가르는 선. section 은 묶음 사이의 두꺼운 띠다 */
|
|
3
|
+
declare const Border: import("react").ForwardRefExoticComponent<Omit<BorderProps, "ref"> & import("react").RefAttributes<HTMLHRElement>>;
|
|
4
|
+
export default Border;
|
|
5
|
+
export type { BorderProps } from './border-type';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
description: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("./border-type").BorderProps, "ref"> & import("react").RefAttributes<HTMLHRElement>>;
|
|
13
|
+
args: {};
|
|
14
|
+
render: (args: Omit<import("./border-type").BorderProps, "ref"> & import("react").RefAttributes<HTMLHRElement>) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
export default meta;
|
|
17
|
+
type Story = StoryObj<typeof meta>;
|
|
18
|
+
export declare const Default: Story;
|
|
19
|
+
export declare const Variants: Story;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
description: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
4
11
|
component: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
12
|
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
6
13
|
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
7
14
|
decorators: ((Story: import("storybook/internal/csf").PartialStoryFn<import("@storybook/react-webpack5").ReactRenderer, {
|
|
8
|
-
|
|
15
|
+
slot?: string | undefined | undefined;
|
|
9
16
|
style?: import("react").CSSProperties | undefined;
|
|
10
|
-
|
|
17
|
+
title?: string | undefined | undefined;
|
|
18
|
+
key?: import("react").Key | null | undefined;
|
|
11
19
|
defaultChecked?: boolean | undefined | undefined;
|
|
12
20
|
defaultValue?: string | number | readonly string[] | undefined;
|
|
13
21
|
suppressContentEditableWarning?: boolean | undefined | undefined;
|
|
@@ -15,6 +23,7 @@ declare const meta: {
|
|
|
15
23
|
accessKey?: string | undefined | undefined;
|
|
16
24
|
autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
|
|
17
25
|
autoFocus?: boolean | undefined | undefined;
|
|
26
|
+
className?: string | undefined | undefined;
|
|
18
27
|
contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
|
|
19
28
|
contextMenu?: string | undefined | undefined;
|
|
20
29
|
dir?: string | undefined | undefined;
|
|
@@ -24,10 +33,8 @@ declare const meta: {
|
|
|
24
33
|
id?: string | undefined | undefined;
|
|
25
34
|
lang?: string | undefined | undefined;
|
|
26
35
|
nonce?: string | undefined | undefined;
|
|
27
|
-
slot?: string | undefined | undefined;
|
|
28
36
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
29
37
|
tabIndex?: number | undefined | undefined;
|
|
30
|
-
title?: string | undefined | undefined;
|
|
31
38
|
translate?: "yes" | "no" | undefined | undefined;
|
|
32
39
|
radioGroup?: string | undefined | undefined;
|
|
33
40
|
role?: import("react").AriaRole | undefined;
|
|
@@ -110,6 +117,7 @@ declare const meta: {
|
|
|
110
117
|
"aria-valuemin"?: number | undefined | undefined;
|
|
111
118
|
"aria-valuenow"?: number | undefined | undefined;
|
|
112
119
|
"aria-valuetext"?: string | undefined | undefined;
|
|
120
|
+
children?: import("react").ReactNode;
|
|
113
121
|
dangerouslySetInnerHTML?: {
|
|
114
122
|
__html: string | TrustedHTML;
|
|
115
123
|
} | undefined | undefined;
|
|
@@ -271,7 +279,6 @@ declare const meta: {
|
|
|
271
279
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
272
280
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
273
281
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
274
|
-
key?: import("react").Key | null | undefined;
|
|
275
282
|
ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
|
|
276
283
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
277
284
|
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const BaseBottomCTA: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export default BaseBottomCTA;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** default 는 바탕색을 깔고 fixed 면 위에 바탕색으로 녹아드는 띠를 얹는다. none 은 바탕 없이 버튼만 */
|
|
2
|
+
export declare const background: readonly ["default", "none"];
|
|
3
|
+
export declare const bottomCTAProps: {
|
|
4
|
+
background: {
|
|
5
|
+
type: "className";
|
|
6
|
+
className: string;
|
|
7
|
+
values: readonly ["default", "none"];
|
|
8
|
+
default: "default";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { AppearProps, HideOnScrollProps } from '../../helpers/motion/motion-props';
|
|
3
|
+
import { background } from './bottom-cta-props';
|
|
4
|
+
export type BaseBottomCTAProps = ComponentPropsWithRef<'div'>;
|
|
5
|
+
export interface BottomCTACommonProps extends Omit<ComponentPropsWithRef<'div'>, 'children'>, AppearProps {
|
|
6
|
+
/** 기본 true. 기기 홈 막대가 아래 여백보다 크면 그만큼 비운다 */
|
|
7
|
+
hasSafeAreaPadding?: boolean;
|
|
8
|
+
background?: (typeof background)[number];
|
|
9
|
+
/** 버튼 위. 짧은 안내 글이나 동의 체크 */
|
|
10
|
+
topAccessory?: ReactNode;
|
|
11
|
+
/** 버튼 아래. 작은 보조 글 */
|
|
12
|
+
bottomAccessory?: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/** 화면 아래 고정에만 뜻이 있는 prop 은 fixed 일 때만 받는다 */
|
|
15
|
+
export type BottomCTAPlacement = {
|
|
16
|
+
/** 기본 false. 흐름 안에 그린다 */
|
|
17
|
+
fixed?: false;
|
|
18
|
+
takeSpace?: never;
|
|
19
|
+
fixedAboveKeyboard?: never;
|
|
20
|
+
hideOnScroll?: never;
|
|
21
|
+
hideOnScrollThreshold?: never;
|
|
22
|
+
} | ({
|
|
23
|
+
/** 화면 아래에 붙인다 */
|
|
24
|
+
fixed: true;
|
|
25
|
+
/** 바와 같은 높이의 빈 자리를 흐름에 남겨 마지막 내용이 바에 가리지 않게 한다 */
|
|
26
|
+
takeSpace?: boolean;
|
|
27
|
+
/** 화면 키보드가 열리면 그 위로 올라간다 */
|
|
28
|
+
fixedAboveKeyboard?: boolean;
|
|
29
|
+
} & HideOnScrollProps);
|
|
30
|
+
export type BottomCTAProps = BottomCTACommonProps & BottomCTAPlacement & {
|
|
31
|
+
/** 버튼 하나. 보통 CTAButton */
|
|
32
|
+
children: ReactNode;
|
|
33
|
+
};
|
|
34
|
+
export type BottomCTADoubleProps = BottomCTACommonProps & BottomCTAPlacement & {
|
|
35
|
+
/** 왼쪽 버튼. 보통 덜 센 행동(취소·이전) */
|
|
36
|
+
left: ReactNode;
|
|
37
|
+
/** 오른쪽 버튼. 주 행동 */
|
|
38
|
+
right: ReactNode;
|
|
39
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const BottomCTA: import("react").ForwardRefExoticComponent<(Omit<import("./bottom-cta-type").BottomCTACommonProps & {
|
|
2
|
+
fixed?: false;
|
|
3
|
+
takeSpace?: never;
|
|
4
|
+
fixedAboveKeyboard?: never;
|
|
5
|
+
hideOnScroll?: never;
|
|
6
|
+
hideOnScrollThreshold?: never;
|
|
7
|
+
} & {
|
|
8
|
+
children: import("react").ReactNode;
|
|
9
|
+
}, "ref"> | Omit<import("./bottom-cta-type").BottomCTACommonProps & {
|
|
10
|
+
fixed: true;
|
|
11
|
+
takeSpace?: boolean;
|
|
12
|
+
fixedAboveKeyboard?: boolean;
|
|
13
|
+
} & import("../../helpers/motion/motion-props").HideOnScrollProps & {
|
|
14
|
+
children: import("react").ReactNode;
|
|
15
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>> & {
|
|
16
|
+
Double: import("react").ForwardRefExoticComponent<(Omit<import("./bottom-cta-type").BottomCTACommonProps & {
|
|
17
|
+
fixed?: false;
|
|
18
|
+
takeSpace?: never;
|
|
19
|
+
fixedAboveKeyboard?: never;
|
|
20
|
+
hideOnScroll?: never;
|
|
21
|
+
hideOnScrollThreshold?: never;
|
|
22
|
+
} & {
|
|
23
|
+
left: import("react").ReactNode;
|
|
24
|
+
right: import("react").ReactNode;
|
|
25
|
+
}, "ref"> | Omit<import("./bottom-cta-type").BottomCTACommonProps & {
|
|
26
|
+
fixed: true;
|
|
27
|
+
takeSpace?: boolean;
|
|
28
|
+
fixedAboveKeyboard?: boolean;
|
|
29
|
+
} & import("../../helpers/motion/motion-props").HideOnScrollProps & {
|
|
30
|
+
left: import("react").ReactNode;
|
|
31
|
+
right: import("react").ReactNode;
|
|
32
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
33
|
+
};
|
|
34
|
+
export default BottomCTA;
|
|
35
|
+
export type { BottomCTAProps, BottomCTADoubleProps } from './bottom-cta-type';
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<(Omit<import("./bottom-cta-type").BottomCTACommonProps & {
|
|
6
|
+
fixed?: false;
|
|
7
|
+
takeSpace?: never;
|
|
8
|
+
fixedAboveKeyboard?: never;
|
|
9
|
+
hideOnScroll?: never;
|
|
10
|
+
hideOnScrollThreshold?: never;
|
|
11
|
+
} & {
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}, "ref"> | Omit<import("./bottom-cta-type").BottomCTACommonProps & {
|
|
14
|
+
fixed: true;
|
|
15
|
+
takeSpace?: boolean;
|
|
16
|
+
fixedAboveKeyboard?: boolean;
|
|
17
|
+
} & import("../../helpers/motion/motion-props").HideOnScrollProps & {
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>> & {
|
|
20
|
+
Double: import("react").ForwardRefExoticComponent<(Omit<import("./bottom-cta-type").BottomCTACommonProps & {
|
|
21
|
+
fixed?: false;
|
|
22
|
+
takeSpace?: never;
|
|
23
|
+
fixedAboveKeyboard?: never;
|
|
24
|
+
hideOnScroll?: never;
|
|
25
|
+
hideOnScrollThreshold?: never;
|
|
26
|
+
} & {
|
|
27
|
+
left: ReactNode;
|
|
28
|
+
right: ReactNode;
|
|
29
|
+
}, "ref"> | Omit<import("./bottom-cta-type").BottomCTACommonProps & {
|
|
30
|
+
fixed: true;
|
|
31
|
+
takeSpace?: boolean;
|
|
32
|
+
fixedAboveKeyboard?: boolean;
|
|
33
|
+
} & import("../../helpers/motion/motion-props").HideOnScrollProps & {
|
|
34
|
+
left: ReactNode;
|
|
35
|
+
right: ReactNode;
|
|
36
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
|
+
};
|
|
38
|
+
parameters: {
|
|
39
|
+
layout: string;
|
|
40
|
+
docs: {
|
|
41
|
+
description: {
|
|
42
|
+
component: string;
|
|
43
|
+
};
|
|
44
|
+
story: {
|
|
45
|
+
inline: boolean;
|
|
46
|
+
height: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
argTypes: {
|
|
51
|
+
background: {
|
|
52
|
+
control: {
|
|
53
|
+
type: "select";
|
|
54
|
+
};
|
|
55
|
+
options: readonly ["default", "none"];
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
args: {
|
|
59
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export default meta;
|
|
63
|
+
type Story = StoryObj<typeof meta>;
|
|
64
|
+
/** 흐름 안. 내용 끝에 놓인다 */
|
|
65
|
+
export declare const Default: Story;
|
|
66
|
+
/** 화면 아래에 붙고, 흐름에 같은 높이의 빈 자리를 남겨 마지막 내용이 가리지 않는다 */
|
|
67
|
+
export declare const FixedTakeSpace: Story;
|
|
68
|
+
/** 버튼 둘이 폭을 반씩 나눈다 */
|
|
69
|
+
export declare const Double: Story;
|
|
70
|
+
/** 버튼 위에 동의 체크, 아래에 작은 안내 */
|
|
71
|
+
export declare const Accessories: Story;
|
|
72
|
+
/** 바탕 없이 버튼만. 바탕색과 녹아드는 띠도 없다 */
|
|
73
|
+
export declare const BackgroundNone: Story;
|
|
74
|
+
/** 아래로 스크롤하면 숨고 위로 스크롤하면 돌아온다 */
|
|
75
|
+
export declare const HideOnScroll: Story;
|
|
76
|
+
/** 처음 그릴 때 아래에서 올라온다 */
|
|
77
|
+
export declare const Appear: Story;
|
|
78
|
+
/** 휴대폰에서 입력 칸을 누르면 키보드 위로 올라온다. 데스크톱 브라우저에는 화면 키보드가 없어 그대로다 */
|
|
79
|
+
export declare const FixedAboveKeyboard: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
declare const BaseBottomInfo: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
2
|
+
ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
3
|
+
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export default BaseBottomInfo;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const bottomInfoProps: {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { BottomInfoProps } from './bottom-info-type';
|
|
2
|
+
declare const BottomInfo: import("react").ForwardRefExoticComponent<Omit<BottomInfoProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export default BottomInfo;
|
|
4
|
+
export type { BottomInfoProps } from './bottom-info-type';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react-webpack5';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
docs: {
|
|
6
|
+
description: {
|
|
7
|
+
component: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
layout: string;
|
|
11
|
+
};
|
|
12
|
+
component: import("react").ForwardRefExoticComponent<Omit<import("./bottom-info-type").BottomInfoProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
13
|
+
args: {
|
|
14
|
+
gradient: true;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof meta>;
|
|
19
|
+
/** 본문 아래 붙은 유의사항이다. 위 가장자리가 흰 바탕으로 사라진다. 컨트롤로 gradient 를 꺼 본다. */
|
|
20
|
+
export declare const Default: Story;
|
|
21
|
+
/** gradient 를 끄면 위 가장자리가 선처럼 보인다. 회색 바탕 위에 이어 붙일 때 쓴다. */
|
|
22
|
+
export declare const WithoutGradient: Story;
|