@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,7 +1,28 @@
|
|
|
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("./chip-group-type").ChipGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
+
argTypes: {
|
|
13
|
+
variant: {
|
|
14
|
+
control: {
|
|
15
|
+
type: "select";
|
|
16
|
+
};
|
|
17
|
+
options: readonly ["filled", "outlined", "ghost"];
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
control: {
|
|
21
|
+
type: "select";
|
|
22
|
+
};
|
|
23
|
+
options: readonly ["xs", "s"];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
5
26
|
args: {
|
|
6
27
|
label: string;
|
|
7
28
|
items: ({
|
|
@@ -24,4 +45,13 @@ declare const meta: {
|
|
|
24
45
|
};
|
|
25
46
|
export default meta;
|
|
26
47
|
type Story = StoryObj<typeof meta>;
|
|
48
|
+
/** 캠페인 종류를 고르는 칩 묶음이다. 누르면 선택이 옮겨간다. 칩 옆 개수와 비활성인 이벤트 칩을 본다. */
|
|
27
49
|
export declare const Default: Story;
|
|
50
|
+
/** 바탕의 무게별 세 variant 를 같은 항목으로 나란히 놓았다. 고른 칩의 모양 차이를 본다. */
|
|
51
|
+
export declare const Variants: Story;
|
|
52
|
+
/** 두 크기. s 는 페이지 바탕 위, xs 는 카드·시트 안에 들어가는 크기다. */
|
|
53
|
+
export declare const Sizes: Story;
|
|
54
|
+
/** 카드 안에 들어간 outlined xs. 상자 안에서 채움 없이 가볍게 보이는지 본다. */
|
|
55
|
+
export declare const InCard: Story;
|
|
56
|
+
/** 칩을 누르고 있으면 줄어들고 어두워진다. 아래는 pressEffect={false} */
|
|
57
|
+
export declare const MotionPress: Story;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ComponentType, MouseEvent, ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ComponentType, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
import { PressEffectProps } from '../../helpers/motion/motion-props';
|
|
2
3
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
3
4
|
import { TrackProps } from '../logging/logging-type';
|
|
4
5
|
import { sizes } from './collapsible-menu-props';
|
|
@@ -41,12 +42,14 @@ export interface CollapsibleMenuSection {
|
|
|
41
42
|
export interface CollapsibleMenuLinkProps {
|
|
42
43
|
href: string;
|
|
43
44
|
className: string;
|
|
45
|
+
/** 펼침 순서(`--i`). className 처럼 링크 요소에 그대로 넘긴다 */
|
|
46
|
+
style?: CSSProperties;
|
|
44
47
|
children: ReactNode;
|
|
45
48
|
onClick: (e: MouseEvent) => void;
|
|
46
49
|
'aria-current'?: 'page';
|
|
47
50
|
'aria-disabled'?: 'true';
|
|
48
51
|
}
|
|
49
|
-
export interface CollapsibleMenuProps extends StyleProps, TrackProps {
|
|
52
|
+
export interface CollapsibleMenuProps extends StyleProps, TrackProps, PressEffectProps {
|
|
50
53
|
size?: (typeof sizes)[number];
|
|
51
54
|
/** 섹션 없는 항목. `sections` 와 함께 주면 `sections` 앞에 그린다. 섹션만 쓰면 `[]`. */
|
|
52
55
|
items: CollapsibleMenuItem[];
|
|
@@ -55,6 +58,7 @@ export interface CollapsibleMenuProps extends StyleProps, TrackProps {
|
|
|
55
58
|
activeKey?: string;
|
|
56
59
|
onActiveKeyChange?: (key: string) => void;
|
|
57
60
|
indent?: number;
|
|
61
|
+
/** 하위 메뉴가 있는 행 오른쪽의 화살표. 열리면 돈다. 기본은 아래 화살표 */
|
|
58
62
|
chevron?: ReactNode;
|
|
59
63
|
width?: number | string;
|
|
60
64
|
linkComponent?: ComponentType<CollapsibleMenuLinkProps>;
|
|
@@ -2,6 +2,13 @@ import type { StoryObj } from '@storybook/react-webpack5';
|
|
|
2
2
|
import { CollapsibleMenuItem } from './collapsible-menu-type';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
docs: {
|
|
7
|
+
description: {
|
|
8
|
+
component: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
};
|
|
5
12
|
component: import("react").ForwardRefExoticComponent<import("./collapsible-menu-type").CollapsibleMenuProps & import("react").RefAttributes<HTMLElement>>;
|
|
6
13
|
argTypes: {
|
|
7
14
|
size: {
|
|
@@ -18,10 +25,15 @@ declare const meta: {
|
|
|
18
25
|
};
|
|
19
26
|
export default meta;
|
|
20
27
|
type Story = StoryObj<typeof meta>;
|
|
28
|
+
/** 하위 메뉴가 있는 접이식 메뉴다. 그룹을 펼치고 접으며 현재 항목 표시가 따라가는지 본다. */
|
|
21
29
|
export declare const Default: Story;
|
|
30
|
+
/** 크기별 메뉴를 나란히 놓았다. 줄 높이와 글자 크기 차이를 본다. */
|
|
22
31
|
export declare const Sizes: Story;
|
|
23
32
|
/** 자식이 있는 항목에 disabled 를 주면 그룹(Radix Collapsible root)이 접히지도 펼쳐지지도 않는다. */
|
|
24
33
|
export declare const Disabled: Story;
|
|
34
|
+
/** 직접 만든 링크 컴포넌트로 그린 메뉴다. Users 그룹이 펼쳐진 채 시작하고 User List 는 비활성이다. */
|
|
25
35
|
export declare const CustomLink: Story;
|
|
26
36
|
/** 섹션 제목 + 목록 묶음. 그룹은 `open`·`onOpenChange` 로 밖에서 열고, 접힌 사이드바 흉내로 Alt+클릭은 열지 않는다. */
|
|
27
37
|
export declare const Sections: Story;
|
|
38
|
+
/** 그룹을 열고 닫으면 화살표가 돌고 하위 메뉴 높이가 늘고 준다. 빠르게 연타해 중간에 뒤집혀도 끊기지 않는지 본다. 행을 누르고 있으면 배경이 한 단계 진해진다(크기는 줄지 않는다). 오른쪽은 pressEffect={false}. */
|
|
39
|
+
export declare const MotionExpand: Story;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { Ref } from 'react';
|
|
1
2
|
interface ComposerProps extends React.HTMLAttributes<HTMLElement> {
|
|
2
3
|
children?: React.ReactNode;
|
|
3
4
|
}
|
|
4
5
|
declare const Composer: import("react").ForwardRefExoticComponent<ComposerProps & import("react").RefAttributes<HTMLElement>>;
|
|
6
|
+
export declare const composeRefs: <T>(...refs: (Ref<T> | undefined)[]) => (node: T) => void;
|
|
5
7
|
export default Composer;
|
|
@@ -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("./description-list-type").DescriptionListProps & import("react").RefAttributes<HTMLDListElement>>;
|
|
5
12
|
args: {
|
|
6
13
|
items: {
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
|
-
import { DrawerCloseProps, DrawerDescriptionProps, DrawerRootProps, DrawerTitleProps, DrawerTriggerProps } from './drawer-type';
|
|
2
|
+
import { DrawerCloseProps, DrawerContentProps, DrawerDescriptionProps, DrawerRootProps, DrawerTitleProps, DrawerTriggerProps } from './drawer-type';
|
|
3
3
|
declare const DrawerRoot: {
|
|
4
4
|
(props: PropsWithChildren<DrawerRootProps>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
} & {
|
|
7
7
|
Trigger: import("react").ForwardRefExoticComponent<Omit<DrawerTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
8
|
-
Content: import("react").ForwardRefExoticComponent<Omit<
|
|
9
|
-
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;
|
|
10
|
-
}, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
|
+
Content: import("react").ForwardRefExoticComponent<Omit<DrawerContentProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
9
|
Title: import("react").ForwardRefExoticComponent<Omit<DrawerTitleProps, "ref"> & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
12
10
|
Description: import("react").ForwardRefExoticComponent<Omit<DrawerDescriptionProps, "ref"> & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
13
11
|
Close: import("react").ForwardRefExoticComponent<Omit<DrawerCloseProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { EnterMotionProps, PresenceCallbackProps } from '../../helpers/motion/motion-props';
|
|
2
3
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
3
4
|
import { TrackProps } from '../logging/logging-type';
|
|
4
5
|
import { sides, sizes } from './drawer-props';
|
|
@@ -9,14 +10,20 @@ export interface DrawerRootProps {
|
|
|
9
10
|
}
|
|
10
11
|
export interface DrawerTriggerProps extends ComponentPropsWithRef<'button'>, AsChildProps {
|
|
11
12
|
}
|
|
12
|
-
export
|
|
13
|
+
export interface DrawerContentProps extends ComponentPropsWithRef<'div'> {
|
|
14
|
+
/** 패널을 그릴 요소. Radix `Dialog.Portal` 의 container. 없으면 document.body */
|
|
15
|
+
portalContainer?: HTMLElement;
|
|
16
|
+
/** 바깥 누름·Esc 로 닫히기 직전. `preventDefault()` 하면 열린 채로 남는다 */
|
|
17
|
+
onPointerDownOutside?: (event: Event) => void;
|
|
18
|
+
onEscapeKeyDown?: (event: KeyboardEvent) => void;
|
|
19
|
+
}
|
|
13
20
|
export interface DrawerTitleProps extends ComponentPropsWithRef<'h2'>, AsChildProps {
|
|
14
21
|
}
|
|
15
22
|
export interface DrawerDescriptionProps extends ComponentPropsWithRef<'p'>, AsChildProps {
|
|
16
23
|
}
|
|
17
24
|
export interface DrawerCloseProps extends ComponentPropsWithRef<'button'>, AsChildProps {
|
|
18
25
|
}
|
|
19
|
-
export interface DrawerProps extends DrawerRootProps, StyleProps, TrackProps {
|
|
26
|
+
export interface DrawerProps extends DrawerRootProps, StyleProps, TrackProps, EnterMotionProps, PresenceCallbackProps {
|
|
20
27
|
/** asChild 로 감싸 클릭하면 열리는 요소. 없으면 open·defaultOpen 으로만 연다 */
|
|
21
28
|
trigger?: ReactElement;
|
|
22
29
|
title: ReactNode;
|
|
@@ -26,4 +33,12 @@ export interface DrawerProps extends DrawerRootProps, StyleProps, TrackProps {
|
|
|
26
33
|
side?: (typeof sides)[number];
|
|
27
34
|
size?: (typeof sizes)[number];
|
|
28
35
|
showCloseIcon?: boolean;
|
|
36
|
+
/** false 면 바깥을 눌러도 닫히지 않고 패널이 좌우로 흔들린다. 기본 true */
|
|
37
|
+
closeOnOverlayClick?: boolean;
|
|
38
|
+
/** false 면 Esc 로 닫히지 않는다. 기본 true */
|
|
39
|
+
closeOnEscape?: boolean;
|
|
40
|
+
/** 패널을 그릴 요소. 없으면 document.body */
|
|
41
|
+
portalContainer?: HTMLElement;
|
|
42
|
+
/** 열린 동안 history 항목을 하나 쌓아 브라우저·기기의 뒤로 가기가 페이지 대신 패널을 닫는다. 기본 true */
|
|
43
|
+
closeOnBackEvent?: boolean;
|
|
29
44
|
}
|
|
@@ -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("./drawer-type").DrawerProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
12
|
argTypes: {
|
|
6
13
|
side: {
|
|
@@ -24,11 +31,25 @@ declare const meta: {
|
|
|
24
31
|
};
|
|
25
32
|
export default meta;
|
|
26
33
|
type Story = StoryObj<typeof meta>;
|
|
34
|
+
/** 열기 버튼을 누르면 상세 정보 서랍이 열린다. */
|
|
27
35
|
export declare const Default: Story;
|
|
36
|
+
/** 방향별 열기 버튼이다. 버튼마다 서랍이 어느 쪽에서 나오는지 본다. */
|
|
28
37
|
export declare const Sides: Story;
|
|
38
|
+
/** 크기별 열기 버튼이다. 서랍 폭 차이를 본다. */
|
|
29
39
|
export declare const Sizes: Story;
|
|
40
|
+
/** 화면 아래에서 올라오는 서랍이다. */
|
|
30
41
|
export declare const Bottom: Story;
|
|
42
|
+
/** 설명 문구와 취소·저장 버튼 줄을 단 서랍이다. 제목 아래 설명과 아래쪽 버튼 줄 배치를 본다. */
|
|
31
43
|
export declare const WithDescriptionAndFooter: Story;
|
|
44
|
+
/** 닫기 아이콘이 없는 서랍이다. 바깥을 누르거나 Esc 로 닫히는지 본다. */
|
|
32
45
|
export declare const WithoutCloseIcon: Story;
|
|
46
|
+
/** 본문이 40줄인 서랍이다. 본문만 스크롤되고 제목과 아래 버튼이 제자리에 있는지 본다. */
|
|
33
47
|
export declare const LongContent: Story;
|
|
48
|
+
/** 바깥 버튼으로 열고 닫는 서랍이다. 서랍 안에서 닫아도 버튼 문구가 열기로 돌아오는지 본다. */
|
|
34
49
|
export declare const Controlled: Story;
|
|
50
|
+
/** 같은 방향의 weak·strong 을 나란히 열어 본다. strong 은 스프링이라 끝에서 한 번 튄다. 퇴장은 둘이 같다. */
|
|
51
|
+
export declare const MotionStrength: Story;
|
|
52
|
+
/** 바깥을 눌러도 닫히지 않고 패널이 좌우로 흔들린다. Esc 도 막았다. 닫기는 X 나 버튼으로만 한다. */
|
|
53
|
+
export declare const MotionCloseOnOverlayClick: Story;
|
|
54
|
+
/** 열고 닫으면 애니메이션이 끝난 뒤 onEntered·onExited 가 불린다. */
|
|
55
|
+
export declare const MotionEnterExit: Story;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
+
import { PressEffectProps } from '../../helpers/motion/motion-props';
|
|
2
3
|
import { AsChildProps, StyleProps } from '../../helpers/types/common-props';
|
|
3
4
|
import { TrackProps } from '../logging/logging-type';
|
|
4
5
|
import { sizes } from './drop-down-props';
|
|
@@ -24,11 +25,12 @@ export interface DropDownContentProps extends AsChildProps, StyleProps {
|
|
|
24
25
|
}
|
|
25
26
|
export interface DropDownItemProps extends AsChildProps {
|
|
26
27
|
className?: string;
|
|
28
|
+
style?: CSSProperties;
|
|
27
29
|
value: string;
|
|
28
30
|
disabled?: boolean;
|
|
29
31
|
onClick?: () => void;
|
|
30
32
|
}
|
|
31
|
-
export interface DropDownProps extends StyleProps, TrackProps {
|
|
33
|
+
export interface DropDownProps extends StyleProps, TrackProps, PressEffectProps {
|
|
32
34
|
size?: (typeof sizes)[number];
|
|
33
35
|
defaultValue?: string;
|
|
34
36
|
value?: string;
|
|
@@ -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("./drop-down-type").DropDownProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
5
12
|
argTypes: {
|
|
6
13
|
size: {
|
|
@@ -17,12 +24,21 @@ declare const meta: {
|
|
|
17
24
|
};
|
|
18
25
|
export default meta;
|
|
19
26
|
type Story = StoryObj<typeof meta>;
|
|
27
|
+
/** 옵션이 많은 드롭다운이다. 펼쳤을 때 목록이 스크롤되는지 본다. */
|
|
20
28
|
export declare const Default: Story;
|
|
21
29
|
/** renderOption 을 쓰면 항목 선택과 닫기(close)를 직접 처리한다. */
|
|
22
30
|
export declare const CustomOptionRender: Story;
|
|
31
|
+
/** 왼쪽과 오른쪽에 아이콘을 단 드롭다운이다. */
|
|
23
32
|
export declare const WithIcons: Story;
|
|
33
|
+
/** 크기별 드롭다운이다. 높이와 글자 크기 차이를 본다. */
|
|
24
34
|
export declare const Sizes: Story;
|
|
35
|
+
/** 두 번째 옵션이 골라진 채 시작하는 드롭다운이다. 고른 값이 버튼에 보이는지 본다. */
|
|
25
36
|
export declare const Selected: Story;
|
|
37
|
+
/** disabled 드롭다운이다. 눌러도 펼쳐지지 않는다. */
|
|
26
38
|
export declare const Disabled: Story;
|
|
27
39
|
/** 세 번째 항목은 disabled 라 고를 수 없다. */
|
|
28
40
|
export declare const Open: Story;
|
|
41
|
+
/** 열면 목록이 트리거 쪽에서 펼쳐지고 선택지가 위에서부터 30ms 간격으로 차례로 나타난다(unfold) */
|
|
42
|
+
export declare const MotionUnfold: Story;
|
|
43
|
+
/** pressEffect 를 켠 드롭다운과 끈 드롭다운이다. 선택지를 누르고 있으면 켠 쪽만 배경이 한 단계 진해진다. 크기는 줄지 않는다. 트리거는 어느 쪽도 눌림이 없다. */
|
|
44
|
+
export declare const MotionPress: Story;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { colors } from '../../../styles/token/colors';
|
|
2
1
|
export declare const fontSize: readonly ["xsm", "sm", "base", "lg", "xl", "2xl", "3xl", "4xl", "5xl", "6xl"];
|
|
3
2
|
export declare const weight: readonly ["regular", "medium", "semibold", "bold", "extrabold"];
|
|
4
|
-
export declare const
|
|
3
|
+
export declare const fontSizeClass: (size: (typeof fontSize)[number]) => string;
|
|
4
|
+
export declare const semanticColor: readonly ["text-primary", "text-body", "text-secondary", "text-tertiary", "text-muted", "text-placeholder", "text-disabled", "text-inverse", "text-on-brand", "text-on-brand-subtle", "text-on-overlay", "text-on-disabled", "text-brand", "text-brand-active", "text-brand-emphasis", "text-brand-secondary", "text-danger", "text-error", "text-success", "text-warning"];
|
|
5
|
+
export declare const color: readonly ["text-primary", "text-body", "text-secondary", "text-tertiary", "text-muted", "text-placeholder", "text-disabled", "text-inverse", "text-on-brand", "text-on-brand-subtle", "text-on-overlay", "text-on-disabled", "text-brand", "text-brand-active", "text-brand-emphasis", "text-brand-secondary", "text-danger", "text-error", "text-success", "text-warning", ...("black" | "white" | "transparent" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "grey-scale-50" | "grey-scale-100" | "grey-scale-200" | "grey-scale-300" | "grey-scale-400" | "grey-scale-500" | "grey-scale-600" | "grey-scale-700" | "grey-scale-800" | "grey-scale-900" | "accent-red-50" | "accent-red-100" | "accent-red-200" | "accent-red-300" | "accent-red-400" | "accent-red-500" | "accent-red-600" | "accent-red-700" | "accent-red-800" | "accent-red-900" | "accent-pink-50" | "accent-pink-100" | "accent-pink-200" | "accent-pink-300" | "accent-pink-400" | "accent-pink-500" | "accent-pink-600" | "accent-pink-700" | "accent-pink-800" | "accent-pink-900" | "accent-magenta-50" | "accent-magenta-100" | "accent-magenta-200" | "accent-magenta-300" | "accent-magenta-400" | "accent-magenta-500" | "accent-magenta-600" | "accent-magenta-700" | "accent-magenta-800" | "accent-magenta-900" | "accent-blue-50" | "accent-blue-100" | "accent-blue-200" | "accent-blue-300" | "accent-blue-400" | "accent-blue-500" | "accent-blue-600" | "accent-blue-700" | "accent-blue-800" | "accent-blue-900" | "accent-mint-50" | "accent-mint-100" | "accent-mint-200" | "accent-mint-300" | "accent-mint-400" | "accent-mint-500" | "accent-mint-600" | "accent-mint-700" | "accent-mint-800" | "accent-mint-900" | "accent-green-50" | "accent-green-100" | "accent-green-200" | "accent-green-300" | "accent-green-400" | "accent-green-500" | "accent-green-600" | "accent-green-700" | "accent-green-800" | "accent-green-900" | "accent-yellow-50" | "accent-yellow-100" | "accent-yellow-200" | "accent-yellow-300" | "accent-yellow-400" | "accent-yellow-500" | "accent-yellow-600" | "accent-yellow-700" | "accent-yellow-800" | "accent-yellow-900" | "accent-orange-50" | "accent-orange-100" | "accent-orange-200" | "accent-orange-300" | "accent-orange-400" | "accent-orange-500" | "accent-orange-600" | "accent-orange-700" | "accent-orange-800" | "accent-orange-900")[]];
|
|
5
6
|
export declare const textAlign: readonly ["left", "center"];
|
|
6
7
|
export declare const textDecoration: readonly ["underline", "none", "line-through", "overline", "blink"];
|
|
7
8
|
export declare const wordBreak: readonly ["normal", "break-all", "break-word", "keep-all"];
|
|
@@ -11,6 +12,6 @@ export declare const textProps: {
|
|
|
11
12
|
color: {
|
|
12
13
|
type: "className";
|
|
13
14
|
className: string;
|
|
14
|
-
values: ("black" | "white" | "transparent" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "grey-scale-50" | "grey-scale-100" | "grey-scale-200" | "grey-scale-300" | "grey-scale-400" | "grey-scale-500" | "grey-scale-600" | "grey-scale-700" | "grey-scale-800" | "grey-scale-900" | "accent-red-50" | "accent-red-100" | "accent-red-200" | "accent-red-300" | "accent-red-400" | "accent-red-500" | "accent-red-600" | "accent-red-700" | "accent-red-800" | "accent-red-900" | "accent-pink-50" | "accent-pink-100" | "accent-pink-200" | "accent-pink-300" | "accent-pink-400" | "accent-pink-500" | "accent-pink-600" | "accent-pink-700" | "accent-pink-800" | "accent-pink-900" | "accent-magenta-50" | "accent-magenta-100" | "accent-magenta-200" | "accent-magenta-300" | "accent-magenta-400" | "accent-magenta-500" | "accent-magenta-600" | "accent-magenta-700" | "accent-magenta-800" | "accent-magenta-900" | "accent-blue-50" | "accent-blue-100" | "accent-blue-200" | "accent-blue-300" | "accent-blue-400" | "accent-blue-500" | "accent-blue-600" | "accent-blue-700" | "accent-blue-800" | "accent-blue-900" | "accent-mint-50" | "accent-mint-100" | "accent-mint-200" | "accent-mint-300" | "accent-mint-400" | "accent-mint-500" | "accent-mint-600" | "accent-mint-700" | "accent-mint-800" | "accent-mint-900" | "accent-green-50" | "accent-green-100" | "accent-green-200" | "accent-green-300" | "accent-green-400" | "accent-green-500" | "accent-green-600" | "accent-green-700" | "accent-green-800" | "accent-green-900" | "accent-yellow-50" | "accent-yellow-100" | "accent-yellow-200" | "accent-yellow-300" | "accent-yellow-400" | "accent-yellow-500" | "accent-yellow-600" | "accent-yellow-700" | "accent-yellow-800" | "accent-yellow-900" | "accent-orange-50" | "accent-orange-100" | "accent-orange-200" | "accent-orange-300" | "accent-orange-400" | "accent-orange-500" | "accent-orange-600" | "accent-orange-700" | "accent-orange-800" | "accent-orange-900")[];
|
|
15
|
+
values: readonly ["text-primary", "text-body", "text-secondary", "text-tertiary", "text-muted", "text-placeholder", "text-disabled", "text-inverse", "text-on-brand", "text-on-brand-subtle", "text-on-overlay", "text-on-disabled", "text-brand", "text-brand-active", "text-brand-emphasis", "text-brand-secondary", "text-danger", "text-error", "text-success", "text-warning", ...("black" | "white" | "transparent" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "grey-scale-50" | "grey-scale-100" | "grey-scale-200" | "grey-scale-300" | "grey-scale-400" | "grey-scale-500" | "grey-scale-600" | "grey-scale-700" | "grey-scale-800" | "grey-scale-900" | "accent-red-50" | "accent-red-100" | "accent-red-200" | "accent-red-300" | "accent-red-400" | "accent-red-500" | "accent-red-600" | "accent-red-700" | "accent-red-800" | "accent-red-900" | "accent-pink-50" | "accent-pink-100" | "accent-pink-200" | "accent-pink-300" | "accent-pink-400" | "accent-pink-500" | "accent-pink-600" | "accent-pink-700" | "accent-pink-800" | "accent-pink-900" | "accent-magenta-50" | "accent-magenta-100" | "accent-magenta-200" | "accent-magenta-300" | "accent-magenta-400" | "accent-magenta-500" | "accent-magenta-600" | "accent-magenta-700" | "accent-magenta-800" | "accent-magenta-900" | "accent-blue-50" | "accent-blue-100" | "accent-blue-200" | "accent-blue-300" | "accent-blue-400" | "accent-blue-500" | "accent-blue-600" | "accent-blue-700" | "accent-blue-800" | "accent-blue-900" | "accent-mint-50" | "accent-mint-100" | "accent-mint-200" | "accent-mint-300" | "accent-mint-400" | "accent-mint-500" | "accent-mint-600" | "accent-mint-700" | "accent-mint-800" | "accent-mint-900" | "accent-green-50" | "accent-green-100" | "accent-green-200" | "accent-green-300" | "accent-green-400" | "accent-green-500" | "accent-green-600" | "accent-green-700" | "accent-green-800" | "accent-green-900" | "accent-yellow-50" | "accent-yellow-100" | "accent-yellow-200" | "accent-yellow-300" | "accent-yellow-400" | "accent-yellow-500" | "accent-yellow-600" | "accent-yellow-700" | "accent-yellow-800" | "accent-yellow-900" | "accent-orange-50" | "accent-orange-100" | "accent-orange-200" | "accent-orange-300" | "accent-orange-400" | "accent-orange-500" | "accent-orange-600" | "accent-orange-700" | "accent-orange-800" | "accent-orange-900")[]];
|
|
15
16
|
};
|
|
16
17
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { CSSProperties, HTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import { colors } from '../../../styles/token/colors';
|
|
3
|
-
import { fontSize, weight } from './text-props';
|
|
3
|
+
import { fontSize, semanticColor, weight } from './text-props';
|
|
4
4
|
export interface TextProps extends HTMLAttributes<HTMLElement> {
|
|
5
5
|
text: ReactNode;
|
|
6
6
|
size: (typeof fontSize)[number];
|
|
7
7
|
weight: (typeof weight)[number];
|
|
8
|
-
|
|
8
|
+
/** 의미 이름(`text-primary` 등)은 다크를 따라간다. 원시 이름(`grey-scale-900` 등)은 라이트 값에 묶인다 */
|
|
9
|
+
color?: (typeof semanticColor)[number] | keyof typeof colors;
|
|
9
10
|
textDecoration?: CSSProperties['textDecoration'];
|
|
10
11
|
textAlign?: CSSProperties['textAlign'];
|
|
11
12
|
wordBreak?: CSSProperties['wordBreak'];
|
|
@@ -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("./text-type").TextProps & import("react").RefAttributes<HTMLElement>>;
|
|
5
12
|
argTypes: {
|
|
6
13
|
size: {
|
|
@@ -31,7 +38,7 @@ declare const meta: {
|
|
|
31
38
|
control: {
|
|
32
39
|
type: "select";
|
|
33
40
|
};
|
|
34
|
-
options: ("black" | "white" | "transparent" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "grey-scale-50" | "grey-scale-100" | "grey-scale-200" | "grey-scale-300" | "grey-scale-400" | "grey-scale-500" | "grey-scale-600" | "grey-scale-700" | "grey-scale-800" | "grey-scale-900" | "accent-red-50" | "accent-red-100" | "accent-red-200" | "accent-red-300" | "accent-red-400" | "accent-red-500" | "accent-red-600" | "accent-red-700" | "accent-red-800" | "accent-red-900" | "accent-pink-50" | "accent-pink-100" | "accent-pink-200" | "accent-pink-300" | "accent-pink-400" | "accent-pink-500" | "accent-pink-600" | "accent-pink-700" | "accent-pink-800" | "accent-pink-900" | "accent-magenta-50" | "accent-magenta-100" | "accent-magenta-200" | "accent-magenta-300" | "accent-magenta-400" | "accent-magenta-500" | "accent-magenta-600" | "accent-magenta-700" | "accent-magenta-800" | "accent-magenta-900" | "accent-blue-50" | "accent-blue-100" | "accent-blue-200" | "accent-blue-300" | "accent-blue-400" | "accent-blue-500" | "accent-blue-600" | "accent-blue-700" | "accent-blue-800" | "accent-blue-900" | "accent-mint-50" | "accent-mint-100" | "accent-mint-200" | "accent-mint-300" | "accent-mint-400" | "accent-mint-500" | "accent-mint-600" | "accent-mint-700" | "accent-mint-800" | "accent-mint-900" | "accent-green-50" | "accent-green-100" | "accent-green-200" | "accent-green-300" | "accent-green-400" | "accent-green-500" | "accent-green-600" | "accent-green-700" | "accent-green-800" | "accent-green-900" | "accent-yellow-50" | "accent-yellow-100" | "accent-yellow-200" | "accent-yellow-300" | "accent-yellow-400" | "accent-yellow-500" | "accent-yellow-600" | "accent-yellow-700" | "accent-yellow-800" | "accent-yellow-900" | "accent-orange-50" | "accent-orange-100" | "accent-orange-200" | "accent-orange-300" | "accent-orange-400" | "accent-orange-500" | "accent-orange-600" | "accent-orange-700" | "accent-orange-800" | "accent-orange-900")[];
|
|
41
|
+
options: readonly ["text-primary", "text-body", "text-secondary", "text-tertiary", "text-muted", "text-placeholder", "text-disabled", "text-inverse", "text-on-brand", "text-on-brand-subtle", "text-on-overlay", "text-on-disabled", "text-brand", "text-brand-active", "text-brand-emphasis", "text-brand-secondary", "text-danger", "text-error", "text-success", "text-warning", ...("black" | "white" | "transparent" | "purple-50" | "purple-100" | "purple-200" | "purple-300" | "purple-400" | "purple-500" | "purple-600" | "purple-700" | "purple-800" | "purple-900" | "grey-scale-50" | "grey-scale-100" | "grey-scale-200" | "grey-scale-300" | "grey-scale-400" | "grey-scale-500" | "grey-scale-600" | "grey-scale-700" | "grey-scale-800" | "grey-scale-900" | "accent-red-50" | "accent-red-100" | "accent-red-200" | "accent-red-300" | "accent-red-400" | "accent-red-500" | "accent-red-600" | "accent-red-700" | "accent-red-800" | "accent-red-900" | "accent-pink-50" | "accent-pink-100" | "accent-pink-200" | "accent-pink-300" | "accent-pink-400" | "accent-pink-500" | "accent-pink-600" | "accent-pink-700" | "accent-pink-800" | "accent-pink-900" | "accent-magenta-50" | "accent-magenta-100" | "accent-magenta-200" | "accent-magenta-300" | "accent-magenta-400" | "accent-magenta-500" | "accent-magenta-600" | "accent-magenta-700" | "accent-magenta-800" | "accent-magenta-900" | "accent-blue-50" | "accent-blue-100" | "accent-blue-200" | "accent-blue-300" | "accent-blue-400" | "accent-blue-500" | "accent-blue-600" | "accent-blue-700" | "accent-blue-800" | "accent-blue-900" | "accent-mint-50" | "accent-mint-100" | "accent-mint-200" | "accent-mint-300" | "accent-mint-400" | "accent-mint-500" | "accent-mint-600" | "accent-mint-700" | "accent-mint-800" | "accent-mint-900" | "accent-green-50" | "accent-green-100" | "accent-green-200" | "accent-green-300" | "accent-green-400" | "accent-green-500" | "accent-green-600" | "accent-green-700" | "accent-green-800" | "accent-green-900" | "accent-yellow-50" | "accent-yellow-100" | "accent-yellow-200" | "accent-yellow-300" | "accent-yellow-400" | "accent-yellow-500" | "accent-yellow-600" | "accent-yellow-700" | "accent-yellow-800" | "accent-yellow-900" | "accent-orange-50" | "accent-orange-100" | "accent-orange-200" | "accent-orange-300" | "accent-orange-400" | "accent-orange-500" | "accent-orange-600" | "accent-orange-700" | "accent-orange-800" | "accent-orange-900")[]];
|
|
35
42
|
};
|
|
36
43
|
};
|
|
37
44
|
args: {
|
|
@@ -42,8 +49,13 @@ declare const meta: {
|
|
|
42
49
|
};
|
|
43
50
|
export default meta;
|
|
44
51
|
type Story = StoryObj<typeof meta>;
|
|
52
|
+
/** xl 크기 굵은 글씨의 기본 텍스트다. 컨트롤에서 props 를 바꿔 본다. */
|
|
45
53
|
export declare const Default: Story;
|
|
54
|
+
/** 글자 크기 값별 텍스트다. */
|
|
46
55
|
export declare const Sizes: Story;
|
|
56
|
+
/** 굵기 값별 텍스트다. */
|
|
47
57
|
export declare const Weights: Story;
|
|
58
|
+
/** 색 토큰 다섯 개로 그린 텍스트다. */
|
|
48
59
|
export declare const Colors: Story;
|
|
60
|
+
/** 정렬과 밑줄·취소선·윗줄 조합이다. 320px 틀 안에서 정렬 위치와 선 위치를 본다. */
|
|
49
61
|
export declare const AlignAndDecoration: Story;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
/** 아이콘 원의 색. default 는 연보라, neutral 은 회색(오류·준비 중처럼 힘을 뺄 때) */
|
|
2
|
-
export declare const variant: readonly ["default", "neutral"];
|
|
1
|
+
/** 아이콘 원의 색. default 는 연보라, neutral 은 회색(오류·준비 중처럼 힘을 뺄 때), success 는 초록(끝냈을 때) */
|
|
2
|
+
export declare const variant: readonly ["default", "neutral", "success"];
|
|
3
|
+
/** 제목 태그. 기본 p 는 제목 단계를 정하지 않는다 */
|
|
4
|
+
export declare const titleAs: readonly ["p", "h1", "h2", "h3"];
|
|
3
5
|
export declare const emptyStateProps: {
|
|
4
6
|
variant: {
|
|
5
7
|
type: "className";
|
|
6
8
|
className: string;
|
|
7
|
-
values: readonly ["default", "neutral"];
|
|
9
|
+
values: readonly ["default", "neutral", "success"];
|
|
8
10
|
default: "default";
|
|
9
11
|
};
|
|
10
12
|
};
|
|
@@ -1,14 +1,26 @@
|
|
|
1
1
|
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
2
|
import { IconName } from '../icon/icon-type';
|
|
3
|
-
import { variant } from './empty-state-props';
|
|
3
|
+
import { titleAs, variant } from './empty-state-props';
|
|
4
4
|
export type BaseEmptyStateProps = ComponentPropsWithRef<'div'>;
|
|
5
|
-
export interface
|
|
6
|
-
/**
|
|
7
|
-
icon: IconName;
|
|
8
|
-
/** 제목 한 줄. 제목 단계(h1~h6)를 정하지 않으려고 p 로 그린다 */
|
|
5
|
+
export interface EmptyStateCommonProps extends Omit<ComponentPropsWithRef<'div'>, 'title' | 'children'> {
|
|
6
|
+
/** 제목 한 줄 */
|
|
9
7
|
title: ReactNode;
|
|
8
|
+
/** 제목 태그. 기본 p 는 제목 단계(h1~h6)를 정하지 않는다 */
|
|
9
|
+
titleAs?: (typeof titleAs)[number];
|
|
10
10
|
description?: ReactNode;
|
|
11
11
|
/** 다시 시도 같은 버튼. 보통 CTAButton 을 준다 */
|
|
12
12
|
action?: ReactNode;
|
|
13
|
+
/** 아이콘 원의 색. figure 에는 붙지 않는다 */
|
|
13
14
|
variant?: (typeof variant)[number];
|
|
14
15
|
}
|
|
16
|
+
/** 위 그림은 아이콘 원(icon)이나 쓰는 쪽이 그린 그림(figure) 중 하나다 */
|
|
17
|
+
export type EmptyStateFigureProps = {
|
|
18
|
+
/** 원 안에 그릴 Icon 이름 */
|
|
19
|
+
icon: IconName;
|
|
20
|
+
figure?: never;
|
|
21
|
+
} | {
|
|
22
|
+
/** 아이콘 원 대신 그대로 그린다. 보통 Asset.Frame */
|
|
23
|
+
figure: ReactNode;
|
|
24
|
+
icon?: never;
|
|
25
|
+
};
|
|
26
|
+
export type EmptyStateProps = EmptyStateCommonProps & EmptyStateFigureProps;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
/** 빈 목록·오류 뒤 다시 시도·찾을 수 없음·준비 중·모두 완료 화면 */
|
|
2
|
+
declare const EmptyState: import("react").ForwardRefExoticComponent<(Omit<import("./empty-state-type").EmptyStateCommonProps & {
|
|
3
|
+
icon: import("../icon/icon-type").IconName;
|
|
4
|
+
figure?: never;
|
|
5
|
+
}, "ref"> | Omit<import("./empty-state-type").EmptyStateCommonProps & {
|
|
6
|
+
figure: import("react").ReactNode;
|
|
7
|
+
icon?: never;
|
|
8
|
+
}, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
|
|
4
9
|
export default EmptyState;
|
|
5
10
|
export type { EmptyStateProps } from './empty-state-type';
|