@wonderflow/react-components 2.40.0-next.1 → 3.0.0-beta.2
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/.changeset/README.md +8 -0
- package/.changeset/config.json +13 -0
- package/.changeset/moody-otters-leave.md +5 -0
- package/.changeset/nice-starfishes-deny.md +5 -0
- package/.changeset/pre.json +12 -0
- package/.changeset/tender-chicken-serve.md +5 -0
- package/.commitlintrc.json +3 -0
- package/.cz.json +3 -0
- package/.editorconfig +9 -0
- package/.eslintrc.json +5 -0
- package/.github/workflows/continous-integration.yml +105 -0
- package/.github/workflows/pull-request.yml +23 -0
- package/.github/workflows/release.yml +49 -0
- package/.husky/commit-msg +4 -0
- package/.husky/pre-commit +4 -0
- package/.husky/prepare-commit-msg +4 -0
- package/.releaserc.json +24 -0
- package/.storybook/main.js +36 -0
- package/.storybook/manager.js +9 -0
- package/.storybook/overrides.css +72 -0
- package/.storybook/preview.js +36 -0
- package/.storybook/wonderflow-theme.js +22 -0
- package/.stylelintrc.json +10 -0
- package/.vscode/css.code-snippets +42 -0
- package/.vscode/extensions.json +15 -0
- package/.vscode/settings.json +30 -0
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +26 -0
- package/LICENSE +21 -0
- package/README.md +11 -0
- package/package.json +42 -30
- package/postcss.config.js +3 -0
- package/{avatar → src/avatar}/avatar.module.css +4 -1
- package/src/avatar/avatar.stories.tsx +21 -0
- package/src/avatar/avatar.tsx +58 -0
- package/src/avatar/index.ts +2 -0
- package/{button → src/button}/button.module.css +5 -2
- package/src/button/button.stories.tsx +69 -0
- package/src/button/button.tsx +140 -0
- package/src/button/index.ts +2 -0
- package/{card → src/card}/card.module.css +1 -1
- package/src/card/card.stories.tsx +62 -0
- package/src/card/card.tsx +110 -0
- package/src/card/index.ts +2 -0
- package/{chip → src/chip}/chip.module.css +0 -0
- package/src/chip/chip.stories.tsx +34 -0
- package/src/chip/chip.tsx +69 -0
- package/src/chip/index.ts +2 -0
- package/{circular-progress → src/circular-progress}/circular-progress.module.css +0 -0
- package/src/circular-progress/circular-progress.stories.tsx +32 -0
- package/src/circular-progress/circular-progress.tsx +64 -0
- package/{circular-progress/index.d.ts → src/circular-progress/index.ts} +2 -2
- package/{clamp-text → src/clamp-text}/clamp-text.module.css +0 -0
- package/src/clamp-text/clamp-text.stories.tsx +30 -0
- package/src/clamp-text/clamp-text.tsx +42 -0
- package/src/clamp-text/index.ts +2 -0
- package/{container → src/container}/container.module.css +1 -1
- package/src/container/container.stories.tsx +55 -0
- package/src/container/container.tsx +38 -0
- package/src/container/index.ts +2 -0
- package/{core → src/core}/basic.css +0 -0
- package/{core → src/core}/elevations.css +0 -0
- package/src/core/elevations.stories.tsx +34 -0
- package/{core → src/core}/typography.css +1 -1
- package/src/core/typography.stories.tsx +173 -0
- package/{core → src/core/utils}/media.css +0 -0
- package/{core → src/core/utils}/vibrancy.css +0 -0
- package/{core.css → src/core.css} +2 -2
- package/{disclosure → src/disclosure}/disclosure.module.css +0 -0
- package/src/disclosure/disclosure.stories.tsx +36 -0
- package/src/disclosure/disclosure.tsx +138 -0
- package/src/disclosure/index.ts +2 -0
- package/{dropdown → src/dropdown}/dropdown.module.css +0 -0
- package/src/dropdown/dropdown.stories.tsx +108 -0
- package/src/dropdown/dropdown.tsx +145 -0
- package/src/dropdown/index.ts +4 -0
- package/{dropdown → src/dropdown/item}/dropdown-item.module.css +0 -0
- package/src/dropdown/item/dropdown-item.tsx +132 -0
- package/src/dropdown/item-checkbox/dropdown-item-checkbox.tsx +25 -0
- package/{dropdown → src/dropdown/menu}/dropdown-menu.module.css +0 -0
- package/src/dropdown/menu/dropdown-menu.tsx +49 -0
- package/src/elevator/elevator.stories.tsx +23 -0
- package/src/elevator/elevator.tsx +36 -0
- package/src/elevator/index.ts +2 -0
- package/{grid → src/grid}/grid.module.css +0 -9
- package/src/grid/grid.stories.tsx +42 -0
- package/src/grid/grid.tsx +89 -0
- package/src/grid/index.ts +3 -0
- package/src/grid/item/grid-item.module.css +9 -0
- package/src/grid/item/grid-item.tsx +53 -0
- package/src/icon/icon.stories.tsx +18 -0
- package/src/icon/icon.tsx +51 -0
- package/src/icon/index.ts +2 -0
- package/{icon-button → src/icon-button}/icon-button.module.css +0 -0
- package/src/icon-button/icon-button.stories.tsx +42 -0
- package/src/icon-button/icon-button.tsx +35 -0
- package/src/icon-button/index.ts +2 -0
- package/src/icons/sprites.js +54 -0
- package/src/icons/svgo.config.js +39 -0
- package/src/icons/svgs/16/arrow-down-16.svg +3 -0
- package/src/icons/svgs/16/arrow-down-left-16.svg +3 -0
- package/src/icons/svgs/16/arrow-down-right-16.svg +3 -0
- package/src/icons/svgs/16/arrow-down-to-bracket-16.svg +3 -0
- package/src/icons/svgs/16/arrow-left-16.svg +3 -0
- package/src/icons/svgs/16/arrow-right-16.svg +3 -0
- package/src/icons/svgs/16/arrow-rotate-right-16.svg +3 -0
- package/src/icons/svgs/16/arrow-trend-down-16.svg +3 -0
- package/src/icons/svgs/16/arrow-trend-up-16.svg +3 -0
- package/src/icons/svgs/16/arrow-up-16.svg +3 -0
- package/src/icons/svgs/16/arrow-up-left-16.svg +3 -0
- package/src/icons/svgs/16/arrow-up-right-16.svg +3 -0
- package/src/icons/svgs/16/backward-step-16.svg +3 -0
- package/src/icons/svgs/16/ban-16.svg +3 -0
- package/src/icons/svgs/16/bars-16.svg +3 -0
- package/src/icons/svgs/16/bars-sort-down-16.svg +3 -0
- package/src/icons/svgs/16/bars-sort-up-16.svg +3 -0
- package/src/icons/svgs/16/bell-16.svg +3 -0
- package/src/icons/svgs/16/bookmark-16.svg +3 -0
- package/src/icons/svgs/16/calendar-16.svg +3 -0
- package/src/icons/svgs/16/calendar-plus-16.svg +3 -0
- package/src/icons/svgs/16/cart-shopping-16.svg +3 -0
- package/src/icons/svgs/16/check-16.svg +3 -0
- package/src/icons/svgs/16/chevron-down-16.svg +3 -0
- package/src/icons/svgs/16/chevron-left-16.svg +3 -0
- package/src/icons/svgs/16/chevron-right-16.svg +3 -0
- package/src/icons/svgs/16/chevron-up-16.svg +3 -0
- package/src/icons/svgs/16/circle-16.svg +3 -0
- package/src/icons/svgs/16/circle-check-16.svg +3 -0
- package/src/icons/svgs/16/circle-exclamation-16.svg +3 -0
- package/src/icons/svgs/16/circle-info-16.svg +3 -0
- package/src/icons/svgs/16/circle-question-16.svg +3 -0
- package/src/icons/svgs/16/circle-x-16.svg +3 -0
- package/src/icons/svgs/16/clock-rotate-left-16.svg +3 -0
- package/src/icons/svgs/16/code-16.svg +3 -0
- package/src/icons/svgs/16/comment-16.svg +3 -0
- package/src/icons/svgs/16/compass-16.svg +3 -0
- package/src/icons/svgs/16/crown-16.svg +3 -0
- package/src/icons/svgs/16/earth-europa-16.svg +3 -0
- package/src/icons/svgs/16/envelope-16.svg +3 -0
- package/src/icons/svgs/16/eye-16.svg +3 -0
- package/src/icons/svgs/16/eye-slash-16.svg +10 -0
- package/src/icons/svgs/16/facebook-16.svg +3 -0
- package/src/icons/svgs/16/file-16.svg +3 -0
- package/src/icons/svgs/16/file-alt-16.svg +3 -0
- package/src/icons/svgs/16/file-image-16.svg +3 -0
- package/src/icons/svgs/16/file-pdf-16.svg +3 -0
- package/src/icons/svgs/16/file-xmark-16.svg +3 -0
- package/src/icons/svgs/16/filter-16.svg +3 -0
- package/src/icons/svgs/16/forward-step-16.svg +3 -0
- package/src/icons/svgs/16/frown-16.svg +3 -0
- package/src/icons/svgs/16/gear-16.svg +3 -0
- package/src/icons/svgs/16/github-16.svg +3 -0
- package/src/icons/svgs/16/graduation-cap-16.svg +10 -0
- package/src/icons/svgs/16/grid-2-16.svg +3 -0
- package/src/icons/svgs/16/grip-vertical-16.svg +3 -0
- package/src/icons/svgs/16/hand-pointer-16.svg +3 -0
- package/src/icons/svgs/16/house-16.svg +3 -0
- package/src/icons/svgs/16/layer-group-16.svg +3 -0
- package/src/icons/svgs/16/link-16.svg +3 -0
- package/src/icons/svgs/16/linkedin-16.svg +3 -0
- package/src/icons/svgs/16/lock-16.svg +3 -0
- package/src/icons/svgs/16/lock-open-16.svg +10 -0
- package/src/icons/svgs/16/magnifying-glass-16.svg +3 -0
- package/src/icons/svgs/16/meh-16.svg +3 -0
- package/src/icons/svgs/16/message-16.svg +3 -0
- package/src/icons/svgs/16/minus-16.svg +3 -0
- package/src/icons/svgs/16/moon-16.svg +3 -0
- package/src/icons/svgs/16/nps-16.svg +3 -0
- package/src/icons/svgs/16/pause-16.svg +3 -0
- package/src/icons/svgs/16/pc-16.svg +3 -0
- package/src/icons/svgs/16/play-16.svg +3 -0
- package/src/icons/svgs/16/plus-16.svg +3 -0
- package/src/icons/svgs/16/rectangle-barcode-16.svg +3 -0
- package/src/icons/svgs/16/right-from-bracket-16.svg +3 -0
- package/src/icons/svgs/16/share-from-square-16.svg +10 -0
- package/src/icons/svgs/16/signal-stream-16.svg +3 -0
- package/src/icons/svgs/16/smile-16.svg +3 -0
- package/src/icons/svgs/16/smile-rotate-right-16.svg +10 -0
- package/src/icons/svgs/16/sort-16.svg +3 -0
- package/src/icons/svgs/16/sort-alt-16.svg +3 -0
- package/src/icons/svgs/16/sort-down-16.svg +3 -0
- package/src/icons/svgs/16/sort-left-16.svg +3 -0
- package/src/icons/svgs/16/sort-right-16.svg +3 -0
- package/src/icons/svgs/16/sort-up-16.svg +3 -0
- package/src/icons/svgs/16/star-16.svg +3 -0
- package/src/icons/svgs/16/stop-16.svg +3 -0
- package/src/icons/svgs/16/sun-bright-16.svg +3 -0
- package/src/icons/svgs/16/tags-16.svg +3 -0
- package/src/icons/svgs/16/text-slash-16.svg +10 -0
- package/src/icons/svgs/16/thumbs-down-16.svg +3 -0
- package/src/icons/svgs/16/thumbs-up-16.svg +3 -0
- package/src/icons/svgs/16/thumbtack-16.svg +3 -0
- package/src/icons/svgs/16/triangle-exclamation-16.svg +3 -0
- package/src/icons/svgs/16/turn-down-right-16.svg +3 -0
- package/src/icons/svgs/16/twitter-16.svg +10 -0
- package/src/icons/svgs/16/user-16.svg +3 -0
- package/src/icons/svgs/16/wave-sine-16.svg +3 -0
- package/src/icons/svgs/16/xmark-16.svg +3 -0
- package/src/icons/svgs/24/arrow-down-24.svg +3 -0
- package/src/icons/svgs/24/arrow-down-left-24.svg +3 -0
- package/src/icons/svgs/24/arrow-down-right-24.svg +3 -0
- package/src/icons/svgs/24/arrow-down-to-bracket-24.svg +3 -0
- package/src/icons/svgs/24/arrow-left-24.svg +3 -0
- package/src/icons/svgs/24/arrow-right-24.svg +3 -0
- package/src/icons/svgs/24/arrow-rotate-right-24.svg +3 -0
- package/src/icons/svgs/24/arrow-trend-down-24.svg +3 -0
- package/src/icons/svgs/24/arrow-trend-up-24.svg +3 -0
- package/src/icons/svgs/24/arrow-up-24.svg +3 -0
- package/src/icons/svgs/24/arrow-up-left-24.svg +3 -0
- package/src/icons/svgs/24/arrow-up-right-24.svg +3 -0
- package/src/icons/svgs/24/backward-step-24.svg +3 -0
- package/src/icons/svgs/24/ban-24.svg +3 -0
- package/src/icons/svgs/24/bars-24.svg +3 -0
- package/src/icons/svgs/24/bars-sort-down-24.svg +3 -0
- package/src/icons/svgs/24/bars-sort-up-24.svg +3 -0
- package/src/icons/svgs/24/bell-24.svg +3 -0
- package/src/icons/svgs/24/bookmark-24.svg +3 -0
- package/src/icons/svgs/24/calendar-24.svg +3 -0
- package/src/icons/svgs/24/calendar-plus-24.svg +3 -0
- package/src/icons/svgs/24/cart-shopping-24.svg +3 -0
- package/src/icons/svgs/24/check-24.svg +3 -0
- package/src/icons/svgs/24/chevron-down-24.svg +3 -0
- package/src/icons/svgs/24/chevron-left-24.svg +3 -0
- package/src/icons/svgs/24/chevron-right-24.svg +3 -0
- package/src/icons/svgs/24/chevron-up-24.svg +3 -0
- package/src/icons/svgs/24/circle-24.svg +3 -0
- package/src/icons/svgs/24/circle-check-24.svg +3 -0
- package/src/icons/svgs/24/circle-exclamation-24.svg +3 -0
- package/src/icons/svgs/24/circle-info-24.svg +3 -0
- package/src/icons/svgs/24/circle-question-24.svg +3 -0
- package/src/icons/svgs/24/circle-x-24.svg +3 -0
- package/src/icons/svgs/24/clock-rotate-left-24.svg +3 -0
- package/src/icons/svgs/24/code-24.svg +3 -0
- package/src/icons/svgs/24/comment-24.svg +3 -0
- package/src/icons/svgs/24/compass-24.svg +3 -0
- package/src/icons/svgs/24/crown-24.svg +3 -0
- package/src/icons/svgs/24/earth-europa-24.svg +3 -0
- package/src/icons/svgs/24/envelope-24.svg +3 -0
- package/src/icons/svgs/24/eye-24.svg +3 -0
- package/src/icons/svgs/24/eye-slash-24.svg +3 -0
- package/src/icons/svgs/24/facebook-24.svg +3 -0
- package/src/icons/svgs/24/file-24.svg +3 -0
- package/src/icons/svgs/24/file-alt-24.svg +3 -0
- package/src/icons/svgs/24/file-image-24.svg +3 -0
- package/src/icons/svgs/24/file-pdf-24.svg +3 -0
- package/src/icons/svgs/24/file-xmark-24.svg +3 -0
- package/src/icons/svgs/24/filter-24.svg +3 -0
- package/src/icons/svgs/24/forward-step-24.svg +3 -0
- package/src/icons/svgs/24/frown-24.svg +3 -0
- package/src/icons/svgs/24/gear-24.svg +3 -0
- package/src/icons/svgs/24/github-24.svg +3 -0
- package/src/icons/svgs/24/graduation-cap-24.svg +3 -0
- package/src/icons/svgs/24/grid-2-24.svg +3 -0
- package/src/icons/svgs/24/grip-vertical-24.svg +3 -0
- package/src/icons/svgs/24/hand-pointer-24.svg +3 -0
- package/src/icons/svgs/24/house-24.svg +3 -0
- package/src/icons/svgs/24/layer-group-24.svg +3 -0
- package/src/icons/svgs/24/link-24.svg +3 -0
- package/src/icons/svgs/24/linkedin-24.svg +3 -0
- package/src/icons/svgs/24/lock-24.svg +3 -0
- package/src/icons/svgs/24/lock-open-24.svg +3 -0
- package/src/icons/svgs/24/magnifying-glass-24.svg +3 -0
- package/src/icons/svgs/24/meh-24.svg +3 -0
- package/src/icons/svgs/24/message-24.svg +3 -0
- package/src/icons/svgs/24/minus-24.svg +3 -0
- package/src/icons/svgs/24/moon-24.svg +3 -0
- package/src/icons/svgs/24/nps-24.svg +3 -0
- package/src/icons/svgs/24/pause-24.svg +3 -0
- package/src/icons/svgs/24/pc-24.svg +3 -0
- package/src/icons/svgs/24/play-24.svg +3 -0
- package/src/icons/svgs/24/plus-24.svg +3 -0
- package/src/icons/svgs/24/rectangle-barcode-24.svg +3 -0
- package/src/icons/svgs/24/right-from-bracket-24.svg +3 -0
- package/src/icons/svgs/24/share-from-square-24.svg +3 -0
- package/src/icons/svgs/24/signal-stream-24.svg +3 -0
- package/src/icons/svgs/24/smile-24.svg +3 -0
- package/src/icons/svgs/24/smile-rotate-right-24.svg +3 -0
- package/src/icons/svgs/24/sort-24.svg +3 -0
- package/src/icons/svgs/24/sort-alt-24.svg +3 -0
- package/src/icons/svgs/24/sort-down-24.svg +3 -0
- package/src/icons/svgs/24/sort-left-24.svg +3 -0
- package/src/icons/svgs/24/sort-right-24.svg +3 -0
- package/src/icons/svgs/24/sort-up-24.svg +3 -0
- package/src/icons/svgs/24/star-24.svg +3 -0
- package/src/icons/svgs/24/stop-24.svg +3 -0
- package/src/icons/svgs/24/sun-bright-24.svg +3 -0
- package/src/icons/svgs/24/tags-24.svg +3 -0
- package/src/icons/svgs/24/text-slash-24.svg +3 -0
- package/src/icons/svgs/24/thumbs-down-24.svg +3 -0
- package/src/icons/svgs/24/thumbs-up-24.svg +3 -0
- package/src/icons/svgs/24/thumbtack-24.svg +3 -0
- package/src/icons/svgs/24/triangle-exclamation-24.svg +3 -0
- package/src/icons/svgs/24/turn-down-right-24.svg +3 -0
- package/src/icons/svgs/24/twitter-24.svg +3 -0
- package/src/icons/svgs/24/user-24.svg +3 -0
- package/src/icons/svgs/24/wave-sine-24.svg +3 -0
- package/src/icons/svgs/24/xmark-24.svg +3 -0
- package/src/index.ts +131 -0
- package/src/info-state/index.ts +2 -0
- package/{info-state → src/info-state}/info-state.module.css +4 -1
- package/src/info-state/info-state.stories.tsx +54 -0
- package/src/info-state/info-state.tsx +89 -0
- package/src/input-group/index.ts +2 -0
- package/{input-group → src/input-group}/input-group.module.css +0 -0
- package/src/input-group/input-group.stories.tsx +44 -0
- package/src/input-group/input-group.tsx +92 -0
- package/src/linear-progress/index.ts +2 -0
- package/{linear-progress → src/linear-progress}/linear-progress.module.css +0 -0
- package/src/linear-progress/linear-progress.stories.tsx +29 -0
- package/src/linear-progress/linear-progress.tsx +78 -0
- package/src/list/index.ts +2 -0
- package/{list → src/list}/list.module.css +0 -0
- package/src/list/list.stories.tsx +42 -0
- package/src/list/list.tsx +83 -0
- package/src/masonry/index.ts +2 -0
- package/{masonry → src/masonry}/masonry.module.css +0 -0
- package/src/masonry/masonry.stories.tsx +41 -0
- package/src/masonry/masonry.tsx +85 -0
- package/{modal → src/modal/content}/modal-content.module.css +1 -1
- package/src/modal/content/modal-content.tsx +47 -0
- package/src/modal/index.ts +3 -0
- package/src/modal/modal-context.tsx +39 -0
- package/{modal → src/modal}/modal.module.css +5 -2
- package/src/modal/modal.stories.tsx +72 -0
- package/src/modal/modal.tsx +85 -0
- package/src/overlay-container/index.ts +2 -0
- package/src/overlay-container/overlay-container.tsx +42 -0
- package/src/pagination/index.ts +2 -0
- package/{pagination → src/pagination}/pagination.module.css +0 -0
- package/src/pagination/pagination.stories.tsx +440 -0
- package/src/pagination/pagination.tsx +74 -0
- package/src/polymorphic/index.ts +1 -0
- package/src/polymorphic/polymorphic.ts +59 -0
- package/src/prose/index.ts +2 -0
- package/{prose → src/prose}/prose.module.css +0 -0
- package/src/prose/prose.stories.tsx +65 -0
- package/src/prose/prose.tsx +25 -0
- package/src/select/index.ts +2 -0
- package/{select → src/select}/select.module.css +1 -1
- package/src/select/select.stories.tsx +78 -0
- package/src/select/select.tsx +98 -0
- package/src/selection-controls/checkbox.stories.tsx +41 -0
- package/src/selection-controls/checkbox.tsx +49 -0
- package/src/selection-controls/index.ts +6 -0
- package/src/selection-controls/radio.stories.tsx +36 -0
- package/src/selection-controls/radio.tsx +42 -0
- package/{selection-controls → src/selection-controls}/selection-controls.module.css +1 -1
- package/src/selection-controls/toggle.stories.tsx +23 -0
- package/src/selection-controls/toggle.tsx +42 -0
- package/src/separator/index.ts +2 -0
- package/{separator → src/separator}/separator.module.css +0 -0
- package/src/separator/separator.stories.tsx +10 -0
- package/src/separator/separator.tsx +20 -0
- package/src/skeleton-block/index.ts +2 -0
- package/src/skeleton-block/skeleton-block.stories.tsx +33 -0
- package/src/skeleton-block/skeleton-block.tsx +27 -0
- package/{slider → src/slider}/_mixins.css +0 -0
- package/src/slider/index.ts +2 -0
- package/{slider → src/slider}/slider.module.css +0 -0
- package/src/slider/slider.stories.tsx +41 -0
- package/src/slider/slider.tsx +105 -0
- package/src/snackbar/index.ts +2 -0
- package/{snackbar → src/snackbar}/snackbar.module.css +0 -0
- package/src/snackbar/snackbar.stories.tsx +28 -0
- package/src/snackbar/snackbar.tsx +89 -0
- package/src/spinner/index.ts +2 -0
- package/src/spinner/spinner.stories.tsx +21 -0
- package/src/spinner/spinner.tsx +74 -0
- package/src/split-button/index.ts +2 -0
- package/{split-button → src/split-button}/split-button.module.css +0 -0
- package/src/split-button/split-button.stories.tsx +48 -0
- package/src/split-button/split-button.tsx +69 -0
- package/src/stack/index.ts +2 -0
- package/{stack → src/stack}/stack.module.css +0 -0
- package/src/stack/stack.stories.tsx +50 -0
- package/src/stack/stack.tsx +103 -0
- package/src/star-meter/index.ts +2 -0
- package/{star-meter → src/star-meter}/star-meter.module.css +0 -0
- package/src/star-meter/star-meter.stories.tsx +26 -0
- package/src/star-meter/star-meter.tsx +130 -0
- package/src/tab/index.ts +2 -0
- package/src/tab/primitive-tab.tsx +88 -0
- package/src/tab/tab-item.tsx +75 -0
- package/src/tab/tab-list.tsx +33 -0
- package/src/tab/tab-panel.tsx +53 -0
- package/{tab → src/tab}/tab.module.css +0 -0
- package/src/tab/tab.stories.tsx +103 -0
- package/src/tab/tab.tsx +122 -0
- package/src/tab/use-constant.ts +13 -0
- package/src/table/index.ts +2 -0
- package/{table → src/table}/table.module.css +0 -0
- package/src/table/table.stories.tsx +159 -0
- package/src/table/table.tsx +92 -0
- package/src/table/theme.ts +81 -0
- package/src/text/index.ts +2 -0
- package/{text → src/text}/text.module.css +13 -8
- package/src/text/text.stories.tsx +40 -0
- package/src/text/text.tsx +79 -0
- package/{textfield → src/textfield}/base-field/base-field.module.css +1 -1
- package/src/textfield/base-field/base-field.tsx +39 -0
- package/{textfield/base-field/index.d.ts → src/textfield/base-field/index.ts} +2 -2
- package/src/textfield/index.ts +2 -0
- package/{textfield → src/textfield}/textfield.module.css +0 -0
- package/src/textfield/textfield.stories.tsx +111 -0
- package/src/textfield/textfield.tsx +161 -0
- package/src/themes/combine.js +49 -0
- package/src/themes/dark.json +112 -0
- package/src/themes/index.js +7 -0
- package/src/themes/light.json +112 -0
- package/src/themes/themes.config.js +30 -0
- package/src/title/index.ts +2 -0
- package/{title → src/title}/title.module.css +42 -14
- package/src/title/title.stories.tsx +55 -0
- package/src/title/title.tsx +67 -0
- package/src/toggle-button/index.ts +2 -0
- package/{toggle-button → src/toggle-button}/toggle-button.module.css +0 -0
- package/src/toggle-button/toggle-button.stories.tsx +32 -0
- package/src/toggle-button/toggle-button.tsx +124 -0
- package/src/tooltip/index.ts +2 -0
- package/{tooltip → src/tooltip}/tooltip.module.css +0 -0
- package/src/tooltip/tooltip.stories.tsx +21 -0
- package/src/tooltip/tooltip.tsx +127 -0
- package/tsconfig.eslint.json +3 -0
- package/tsconfig.json +43 -0
- package/tsconfig.nocomments.json +7 -0
- package/types/main.d.ts +22 -0
- package/types/modules.d.ts +0 -0
- package/avatar/avatar.d.ts +0 -9
- package/avatar/avatar.js +0 -11
- package/avatar/index.d.ts +0 -2
- package/avatar/index.js +0 -1
- package/button/button.d.ts +0 -21
- package/button/button.js +0 -26
- package/button/index.d.ts +0 -2
- package/button/index.js +0 -1
- package/card/card.d.ts +0 -16
- package/card/card.js +0 -16
- package/card/index.d.ts +0 -2
- package/card/index.js +0 -1
- package/chip/chip.d.ts +0 -15
- package/chip/chip.js +0 -22
- package/chip/index.d.ts +0 -2
- package/chip/index.js +0 -1
- package/circular-progress/circular-progress.d.ts +0 -13
- package/circular-progress/circular-progress.js +0 -12
- package/circular-progress/index.js +0 -1
- package/clamp-text/clamp-text.d.ts +0 -9
- package/clamp-text/clamp-text.js +0 -9
- package/clamp-text/index.d.ts +0 -2
- package/clamp-text/index.js +0 -1
- package/container/container.d.ts +0 -8
- package/container/container.js +0 -6
- package/container/index.d.ts +0 -2
- package/container/index.js +0 -1
- package/disclosure/disclosure.d.ts +0 -19
- package/disclosure/disclosure.js +0 -33
- package/disclosure/index.d.ts +0 -2
- package/disclosure/index.js +0 -1
- package/dropdown/dropdown-item.d.ts +0 -21
- package/dropdown/dropdown-item.js +0 -26
- package/dropdown/dropdown-menu.d.ts +0 -7
- package/dropdown/dropdown-menu.js +0 -17
- package/dropdown/dropdown.d.ts +0 -17
- package/dropdown/dropdown.js +0 -53
- package/dropdown/index.d.ts +0 -3
- package/dropdown/index.js +0 -1
- package/elevator/elevator.d.ts +0 -7
- package/elevator/elevator.js +0 -7
- package/elevator/index.d.ts +0 -2
- package/elevator/index.js +0 -1
- package/grid/grid-item.d.ts +0 -11
- package/grid/grid-item.js +0 -11
- package/grid/grid.d.ts +0 -18
- package/grid/grid.js +0 -18
- package/grid/index.d.ts +0 -3
- package/grid/index.js +0 -1
- package/icon/icon.d.ts +0 -11
- package/icon/icon.js +0 -8
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -1
- package/icon-button/icon-button.d.ts +0 -5
- package/icon-button/icon-button.js +0 -5
- package/icon-button/index.d.ts +0 -2
- package/icon-button/index.js +0 -1
- package/icons/all.svg +0 -446
- package/icons/structure.json +0 -101
- package/icons/types.d.ts +0 -201
- package/index.d.ts +0 -42
- package/index.js +0 -42
- package/info-state/index.d.ts +0 -2
- package/info-state/index.js +0 -1
- package/info-state/info-state.d.ts +0 -21
- package/info-state/info-state.js +0 -15
- package/input-group/index.d.ts +0 -2
- package/input-group/index.js +0 -1
- package/input-group/input-group.d.ts +0 -15
- package/input-group/input-group.js +0 -22
- package/linear-progress/index.d.ts +0 -2
- package/linear-progress/index.js +0 -1
- package/linear-progress/linear-progress.d.ts +0 -13
- package/linear-progress/linear-progress.js +0 -15
- package/list/index.d.ts +0 -2
- package/list/index.js +0 -1
- package/list/list.d.ts +0 -11
- package/list/list.js +0 -24
- package/masonry/index.d.ts +0 -2
- package/masonry/index.js +0 -1
- package/masonry/masonry.d.ts +0 -14
- package/masonry/masonry.js +0 -25
- package/modal/index.d.ts +0 -3
- package/modal/index.js +0 -2
- package/modal/modal-content.d.ts +0 -7
- package/modal/modal-content.js +0 -15
- package/modal/modal-context.d.ts +0 -9
- package/modal/modal-context.js +0 -13
- package/modal/modal.d.ts +0 -13
- package/modal/modal.js +0 -30
- package/pagination/index.d.ts +0 -2
- package/pagination/index.js +0 -1
- package/pagination/pagination.d.ts +0 -10
- package/pagination/pagination.js +0 -16
- package/polymorphic/index.d.ts +0 -1
- package/polymorphic/index.js +0 -1
- package/polymorphic/polymorphic.d.ts +0 -17
- package/polymorphic/polymorphic.js +0 -1
- package/prose/index.d.ts +0 -2
- package/prose/index.js +0 -1
- package/prose/prose.d.ts +0 -5
- package/prose/prose.js +0 -6
- package/select/index.d.ts +0 -2
- package/select/index.js +0 -1
- package/select/select.d.ts +0 -20
- package/select/select.js +0 -19
- package/selection-controls/checkbox.d.ts +0 -13
- package/selection-controls/checkbox.js +0 -7
- package/selection-controls/index.d.ts +0 -6
- package/selection-controls/index.js +0 -3
- package/selection-controls/radio.d.ts +0 -11
- package/selection-controls/radio.js +0 -7
- package/selection-controls/toggle.d.ts +0 -11
- package/selection-controls/toggle.js +0 -7
- package/separator/index.d.ts +0 -2
- package/separator/index.js +0 -1
- package/separator/separator.d.ts +0 -3
- package/separator/separator.js +0 -7
- package/skeleton-block/index.d.ts +0 -2
- package/skeleton-block/index.js +0 -1
- package/skeleton-block/skeleton-block.d.ts +0 -8
- package/skeleton-block/skeleton-block.js +0 -6
- package/slider/index.d.ts +0 -2
- package/slider/index.js +0 -1
- package/slider/slider.d.ts +0 -24
- package/slider/slider.js +0 -19
- package/snackbar/index.d.ts +0 -2
- package/snackbar/index.js +0 -1
- package/snackbar/snackbar.d.ts +0 -15
- package/snackbar/snackbar.js +0 -22
- package/spinner/index.d.ts +0 -2
- package/spinner/index.js +0 -1
- package/spinner/spinner.d.ts +0 -9
- package/spinner/spinner.js +0 -26
- package/split-button/index.d.ts +0 -2
- package/split-button/index.js +0 -1
- package/split-button/split-button.d.ts +0 -8
- package/split-button/split-button.js +0 -13
- package/stack/index.d.ts +0 -2
- package/stack/index.js +0 -1
- package/stack/stack.d.ts +0 -17
- package/stack/stack.js +0 -21
- package/star-meter/index.d.ts +0 -2
- package/star-meter/index.js +0 -1
- package/star-meter/star-meter.d.ts +0 -11
- package/star-meter/star-meter.js +0 -51
- package/tab/index.d.ts +0 -2
- package/tab/index.js +0 -1
- package/tab/primitive-tab.d.ts +0 -11
- package/tab/primitive-tab.js +0 -51
- package/tab/tab-item.d.ts +0 -8
- package/tab/tab-item.js +0 -20
- package/tab/tab-list.d.ts +0 -3
- package/tab/tab-list.js +0 -7
- package/tab/tab-panel.d.ts +0 -10
- package/tab/tab-panel.js +0 -11
- package/tab/tab.d.ts +0 -17
- package/tab/tab.js +0 -31
- package/tab/use-constant.d.ts +0 -1
- package/tab/use-constant.js +0 -8
- package/table/index.d.ts +0 -2
- package/table/index.js +0 -1
- package/table/table.d.ts +0 -12
- package/table/table.js +0 -20
- package/table/theme.d.ts +0 -2
- package/table/theme.js +0 -77
- package/text/index.d.ts +0 -2
- package/text/index.js +0 -1
- package/text/text.d.ts +0 -13
- package/text/text.js +0 -10
- package/textfield/base-field/base-field.d.ts +0 -9
- package/textfield/base-field/base-field.js +0 -7
- package/textfield/base-field/index.js +0 -1
- package/textfield/index.d.ts +0 -2
- package/textfield/index.js +0 -1
- package/textfield/textfield.d.ts +0 -27
- package/textfield/textfield.js +0 -39
- package/theme-switch/index.d.ts +0 -2
- package/theme-switch/index.js +0 -1
- package/theme-switch/theme-switch.d.ts +0 -9
- package/theme-switch/theme-switch.js +0 -14
- package/themes/dark.css +0 -41
- package/themes/dark.json +0 -36
- package/themes/light.css +0 -41
- package/themes/light.json +0 -36
- package/themes.css +0 -143
- package/title/index.d.ts +0 -2
- package/title/index.js +0 -1
- package/title/title.d.ts +0 -10
- package/title/title.js +0 -11
- package/toggle-button/index.d.ts +0 -2
- package/toggle-button/index.js +0 -1
- package/toggle-button/toggle-button.d.ts +0 -10
- package/toggle-button/toggle-button.js +0 -45
- package/tooltip/index.d.ts +0 -2
- package/tooltip/index.js +0 -1
- package/tooltip/tooltip.d.ts +0 -12
- package/tooltip/tooltip.js +0 -45
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M2.53 16.817v-6.434h.065L6.2 16.817h1.344v-9.62H6.008v6.4h-.066l-3.586-6.4H1v9.62h1.53Zm10.346-9.62H9.6v9.62h1.62v-3.228h1.643c1.769 0 2.777-1.374 2.777-3.185 0-1.797-.996-3.207-2.765-3.207Zm1.115 3.207c0 1.071-.534 1.691-1.427 1.691h-1.35V8.712h1.35c.893 0 1.427.614 1.427 1.692Zm2.603 3.791c.072 1.522 1.08 2.805 3.161 2.805C21.83 17 23 15.774 23 13.984c0-1.614-.876-2.361-2.201-2.713l-1.272-.346c-.72-.183-1.121-.564-1.121-1.141 0-.747.534-1.29 1.427-1.29.87 0 1.404.529 1.506 1.22h1.535C22.796 8.233 21.717 7 19.845 7c-1.805 0-3.059 1.149-3.059 2.91 0 1.46.804 2.319 2.075 2.657l1.266.346c.852.232 1.26.578 1.26 1.247 0 .79-.534 1.332-1.542 1.332-.965 0-1.577-.55-1.685-1.297h-1.566Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.125 3C6.504 3 6 3.504 6 4.125v15.75a1.124 1.124 0 1 0 2.25 0V4.125C8.25 3.504 7.746 3 7.125 3Zm9.75 0c-.621 0-1.125.504-1.125 1.125v15.75a1.125 1.125 0 0 0 2.25 0V4.125C18 3.504 17.498 3 16.875 3Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.373 4.65a.736.736 0 0 0-.723.75v7.65h14.7V5.4a.736.736 0 0 0-.723-.75H5.373Zm13.977 9.9H4.65v1.35c0 .428.336.75.723.75h13.254a.736.736 0 0 0 .723-.75v-1.35ZM3.15 15.9c0 1.23.982 2.25 2.223 2.25h5.877v1.2H7.5a.75.75 0 0 0 0 1.5h9a.75.75 0 0 0 0-1.5h-3.75v-1.2h5.877c1.241 0 2.223-1.02 2.223-2.25V5.4c0-1.23-.982-2.25-2.223-2.25H5.373C4.132 3.15 3.15 4.17 3.15 5.4v10.5Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="m20.042 10.353-12-7.07A2.055 2.055 0 0 0 6.999 3C5.85 3.002 5 3.91 5 4.93v14.142C5 20.1 5.858 21 7 21a2.06 2.06 0 0 0 1.043-.283l12-7.071c.595-.352.957-.974.957-1.645a1.92 1.92 0 0 0-.958-1.648ZM7 19.072 6.992 4.93 19 11.966 7 19.072Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M21 12c0 .575-.463 1.038-1.038 1.038h-6.923v6.923a1.04 1.04 0 0 1-2.078 0v-6.923H4.038a1.038 1.038 0 1 1 0-2.077h6.923V4.038a1.038 1.038 0 0 1 2.078 0v6.923h6.923c.575 0 1.038.467 1.038 1.039Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M19.778 5H4.222C2.995 5 2 5.895 2 7v10c0 1.105.995 2 2.222 2h15.556C21.005 19 22 18.105 22 17V7c0-1.105-.997-2-2.222-2Zm.555 12c0 .276-.249.5-.555.5H4.222c-.306 0-.555-.224-.555-.5V7c0-.276.249-.5.555-.5h15.556c.306 0 .555.224.555.5v10ZM6.167 8c-.459 0-.834.338-.834.722v6.5c0 .44.375.778.802.778.49 0 .865-.338.865-.75V8.722C7 8.338 6.625 8 6.167 8Zm2.5 0c-.306 0-.556.225-.556.472v7c0 .303.25.528.556.528.305 0 .555-.225.555-.5V8.472c0-.247-.25-.472-.555-.472Zm9.413 0c-.274 0-.524.225-.524.472v7c0 .303.25.528.524.528s.524-.225.524-.472v-7c.031-.303-.187-.528-.524-.528Zm-3.024 0c-.459 0-.833.338-.833.722v6.5c0 .412.374.722.833.722.458 0 .833-.338.833-.722v-6.5c0-.384-.375-.722-.833-.722Zm-3.89 0c-.458 0-.833.338-.833.722v6.5c0 .44.375.778.834.778.458 0 .833-.338.833-.722V8.722c0-.384-.375-.722-.833-.722Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8.563 19.071H5.75c-1.031 0-1.875-.867-1.875-1.928V6.857c0-1.06.844-1.928 1.875-1.928h2.813a.95.95 0 0 0 .937-.965A.95.95 0 0 0 8.562 3H5.75C3.679 3 2 4.727 2 6.857v10.286C2 19.273 3.679 21 5.75 21h2.813c.519 0 .937-.43.937-.964a.949.949 0 0 0-.938-.965Zm13.12-7.77L15.73 5.909a1.287 1.287 0 0 0-1.41-.22 1.32 1.32 0 0 0-.758 1.196v2.223H8.875c-.862 0-1.563.72-1.563 1.607v2.571c0 .886.701 1.607 1.563 1.607h4.688v2.223c0 .512.297.98.758 1.194a1.283 1.283 0 0 0 1.41-.22l5.953-5.348A.968.968 0 0 0 22 12.02a.958.958 0 0 0-.316-.72Zm-6.245 4.476v-2.849h-6.25V11h6.25V8.187l4.21 3.799-4.21 3.79Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="m23.727 7.267-5.25-5.023a.861.861 0 0 0-1.237.036.902.902 0 0 0 .036 1.26l3.65 3.516h-5.958c-1.486-.101-2.864.523-3.91 1.579a5.7 5.7 0 0 0-1.641 4.037v3.239c0 .492.392.858.875.858s.875-.33.875-.825v-3.272c0-1.054.399-2.038 1.122-2.77.712-.717 1.608-1.133 2.67-1.096h5.964l-3.65 3.515a.903.903 0 0 0-.035 1.261c.172.152.403.28.636.28.215 0 .432-.08.6-.244l5.25-5.023c.178-.202.276-.436.276-.681a.894.894 0 0 0-.273-.647Zm-7.602 8.974c-.483 0-.875.4-.875.86v1.75c0 .164-.131.264-.292.264H5.042c-.161 0-.292-.133-.292-.264V8.806c0-.164.131-.264.292-.264h2.041c.483 0 .875-.4.875-.859a.877.877 0 0 0-.875-.859H5.042A2.057 2.057 0 0 0 3 8.873v10.079C3 20.066 3.916 21 5.042 21h9.916A2.057 2.057 0 0 0 17 18.951v-1.75c0-.558-.39-.96-.875-.96Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M19.565 5.283a.807.807 0 0 0-1.179-.052.906.906 0 0 0-.049 1.237c2.675 3.05 2.675 8.013 0 11.065a.906.906 0 0 0 .05 1.236.807.807 0 0 0 1.178-.051c3.247-3.703 3.247-9.733 0-13.435Zm-3.944 2.82a.905.905 0 0 0-.076 1.235c1.214 1.45 1.214 3.81 0 5.26a.905.905 0 0 0 .076 1.235c.158.113.354.218.55.218.232 0 .462-.1.627-.297 1.747-2.088 1.747-5.484 0-7.573a.865.865 0 0 0-1.177-.078ZM5.614 5.232a.807.807 0 0 0-1.179.05c-3.247 3.705-3.247 9.732 0 13.436a.808.808 0 0 0 1.178.051.906.906 0 0 0 .05-1.237c-2.675-3.05-2.675-8.013 0-11.065a.906.906 0 0 0-.05-1.235Zm2.764 2.87a.836.836 0 0 0-1.177.114c-1.748 2.087-1.748 5.483 0 7.572a.81.81 0 0 0 1.177.08.905.905 0 0 0 .076-1.235c-1.214-1.45-1.214-3.81 0-5.261.306-.365.271-.92-.076-1.27Zm3.621 2.44c-.767 0-1.39.653-1.39 1.425 0 .773.623 1.491 1.39 1.491.768 0 1.39-.653 1.39-1.425 0-.773-.622-1.491-1.39-1.491Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M15.125 11.375c.69 0 1.25-.557 1.25-1.25s-.56-1.25-1.25-1.25c-.695 0-1.25.557-1.25 1.25s.555 1.25 1.25 1.25Zm-6.285 0c.695 0 1.25-.557 1.25-1.25s-.555-1.25-1.25-1.25c-.69 0-1.25.557-1.25 1.25s.594 1.25 1.25 1.25Zm6.441 2.836A4.263 4.263 0 0 1 12 15.75a4.25 4.25 0 0 1-3.283-1.538.939.939 0 0 0-1.32-.122.941.941 0 0 0-.12 1.32A6.132 6.132 0 0 0 12 17.626c1.828 0 3.552-.81 4.723-2.216a.932.932 0 0 0-.119-1.318.942.942 0 0 0-1.323.119ZM12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 18.125c-4.48 0-8.125-3.645-8.125-8.125S7.52 3.875 12 3.875 20.125 7.52 20.125 12 16.48 20.125 12 20.125Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 3.936a8.16 8.16 0 0 1 4.936 1.654l-1.7 1.577a.5.5 0 0 0 .271.862l5.248.728a.5.5 0 0 0 .567-.538l-.446-5.197a.5.5 0 0 0-.839-.323L18.28 4.335A9.97 9.97 0 0 0 12 2.132c-5.514 0-10 4.452-10 9.924 0 .281.02.557.043.832l1.803-.28-.006-.082c-.01-.155-.022-.31-.022-.47 0-4.477 3.67-8.12 8.182-8.12Zm8.177 8.128a.92.92 0 0 1 .914-.91.9.9 0 0 1 .904.91c-.02 1.234-.107 1.79-.461 2.963a.9.9 0 0 1-1.133.593.919.919 0 0 1-.597-1.145c.288-.96.357-1.405.373-2.41ZM6.015 18.931a.915.915 0 0 0 .045-1.289c-.65-.711-.893-1.063-1.33-1.922a.917.917 0 0 0-1.214-.418.899.899 0 0 0-.417 1.214c.534 1.05.84 1.49 1.644 2.37a.897.897 0 0 0 1.272.045Zm5.786 1.238c.498.02.893.431.88.93a.893.893 0 0 1-.924.873c-1.346-.054-1.951-.167-3.203-.596a.894.894 0 0 1-.544-1.155.913.913 0 0 1 1.157-.543c1.036.356 1.516.446 2.634.491Zm7.315-2.455c.36.35.368.93.009 1.282-.967.946-1.478 1.317-2.694 1.945a.894.894 0 0 1-1.206-.398.914.914 0 0 1 .404-1.221c.995-.514 1.403-.81 2.208-1.598a.916.916 0 0 1 1.28-.01Zm-9.618-6.957a1.25 1.25 0 1 1-2.502 0 1.25 1.25 0 0 1 2.502 0Zm7.506 0a1.25 1.25 0 1 1-2.502 0 1.25 1.25 0 0 1 2.502 0Zm-9.34 4.586a1 1 0 0 1 1-1h6.672a1 1 0 1 1 0 2H8.664a1 1 0 0 1-1-1Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M16.17 10.666H7.803c-1.6 0-2.41-2.157-1.271-3.413l4.199-4.667c.698-.781 1.843-.781 2.546 0l4.168 4.667c1.125 1.254.36 3.413-1.277 3.413ZM12 3.999 7.833 8.666h8.371l-4.202-4.667ZM7.8 13.37h8.397c1.6 0 2.41 2.157 1.271 3.413l-4.194 4.631c-.7.781-1.843.781-2.547 0l-4.168-4.667c-1.16-1.256-.363-3.377 1.24-3.377Zm4.2 6.631 4.168-4.667H7.8l4.2 4.667Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12 3c-.256 0-.512.1-.707.299l-5 5.102a1.035 1.035 0 0 0 0 1.443.985.985 0 0 0 1.414 0l4.292-4.382 4.294 4.381a.985.985 0 0 0 1.414 0c.39-.398.39-1.044 0-1.443l-5-5.102A.987.987 0 0 0 12 3Zm0 18a.986.986 0 0 1-.707-.299l-5-5.102a1.035 1.035 0 0 1 0-1.443.985.985 0 0 1 1.414 0l4.292 4.382 4.294-4.381a.985.985 0 0 1 1.414 0c.39.399.39 1.044 0 1.443l-5 5.102A.987.987 0 0 1 12 21Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M6.276 7h10.467c2.001 0 3.016 2.24 1.59 3.544l-5.252 4.847c-.874.812-2.306.812-3.186 0L4.64 10.544C3.272 9.242 4.229 7 6.276 7Zm5.257 6.924 5.256-4.847H6.276l5.257 4.847Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M16 17.724V7.257c0-2.001-2.24-3.016-3.544-1.59l-4.847 5.252c-.812.874-.812 2.306 0 3.186l4.847 5.256c1.302 1.367 3.544.41 3.544-1.637Zm-6.924-5.257 4.847-5.256v10.513l-4.847-5.257Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M8 17.724V7.257c0-2.001 2.24-3.016 3.544-1.59l4.847 5.252c.812.874.812 2.306 0 3.186l-4.847 5.256C10.242 20.728 8 19.771 8 17.724Zm6.924-5.257-4.847-5.256v10.513l4.847-5.257Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7.276 16h10.467c2.001 0 3.016-2.24 1.59-3.544l-5.252-4.847c-.874-.812-2.306-.812-3.186 0L5.64 12.456C4.272 13.758 5.229 16 7.276 16Zm5.257-6.924 5.256 4.847H7.276l5.257-4.847Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="m20.974 8.364-5.462-.79-2.442-4.913C12.855 2.22 12.426 2 11.967 2c-.392 0-.821.219-1.038.66L8.485 7.575l-5.46.79c-.98.141-1.373 1.34-.662 2.026l3.951 3.789-.933 5.433C5.246 20.38 5.866 21 6.56 21c.184 0 .373-.044.555-.14L12 18.313l4.885 2.55c.181.094.37.137.554.137.694 0 1.314-.616 1.181-1.388l-.935-5.4 3.952-3.788c.71-.72.319-1.919-.663-2.06Zm-5.16 5.533.836 4.828-4.373-2.282a.6.6 0 0 0-.555 0L7.35 18.725l.836-4.828c.033-.193-.064-.39-.172-.527L4.481 9.953l4.885-.707a.597.597 0 0 0 .448-.325L12 4.523l2.187 4.397a.595.595 0 0 0 .449.325l4.884.706-3.533 3.418a.592.592 0 0 0-.173.528Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M18 3H6C4.343 3 3 4.346 3 6.007v11.986A3.003 3.003 0 0 0 6 21h12c1.657 0 3-1.346 3-3.007V6.007A3.005 3.005 0 0 0 18 3Zm.75 15.035a.752.752 0 0 1-.75.752H6a.752.752 0 0 1-.75-.752V6.007c0-.414.336-.752.75-.752h12c.413 0 .75.338.75.752v12.028Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M12 7.625a4.375 4.375 0 1 0 0 8.75 4.375 4.375 0 0 0 0-8.75Zm0 6.875A2.503 2.503 0 0 1 9.5 12c0-1.379 1.121-2.5 2.5-2.5s2.5 1.121 2.5 2.5-1.121 2.5-2.5 2.5Zm0-8.125c.518 0 .938-.42.938-.938v-2.5a.937.937 0 1 0-1.876 0v2.5c0 .52.422.938.938.938Zm0 11.25a.938.938 0 0 0-.938.938v2.5a.938.938 0 0 0 1.876 0v-2.5a.938.938 0 0 0-.938-.938Zm9.063-6.563h-2.5a.938.938 0 0 0 0 1.876h2.5A.935.935 0 0 0 22 12a.935.935 0 0 0-.938-.938ZM6.374 12a.938.938 0 0 0-.938-.938h-2.5A.939.939 0 0 0 2 12c0 .516.42.938.938.938h2.5A.935.935 0 0 0 6.375 12Zm10.93 3.977a.937.937 0 0 0-1.326 1.325l1.768 1.769a.934.934 0 0 0 1.325 0 .937.937 0 0 0 0-1.326l-1.767-1.768ZM6.695 8.023a.939.939 0 0 0 1.328-1.325l-1.77-1.77a.937.937 0 1 0-1.325 1.326l1.767 1.77Zm9.946.274c.24 0 .48-.092.663-.275l1.767-1.769a.937.937 0 1 0-1.326-1.325l-1.767 1.768a.937.937 0 0 0 .663 1.6Zm-9.946 7.68-1.767 1.768a.937.937 0 1 0 1.326 1.326l1.767-1.769a.937.937 0 1 0-1.326-1.325Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M17.676 9.827 11.86 3.823C11.397 3.346 10.588 3 9.933 3H3.802C2.808 3 2 3.834 2 4.86v6.33c0 .673.335 1.508.797 1.985l5.816 6.006c.53.546 1.228.819 1.923.819.695 0 1.394-.273 1.924-.82l5.213-5.382a2.878 2.878 0 0 0 .003-3.971Zm-1.25 2.682-5.213 5.381a.936.936 0 0 1-1.353 0l-5.815-6.003c-.131-.135-.28-.507-.28-.697V4.86l.037-.038h6.132c.185 0 .544.153.676.289l5.815 6.003c.376.352.376 1.012 0 1.395ZM7 7.25c0 .503-.395.91-.883.91a.896.896 0 0 1-.882-.91c0-.505.395-.91.882-.91.488 0 .883.405.883.91Zm13.547 1.013-4.989-5.005a.864.864 0 0 0-1.248.019.932.932 0 0 0 .019 1.288l4.981 4.997c.599.617.928 1.438.928 2.31 0 .873-.33 1.694-.93 2.313L15.2 18.451a.931.931 0 0 0 .004 1.287.86.86 0 0 0 1.243-.007l4.107-4.261A5.142 5.142 0 0 0 22 11.87c0-1.36-.512-2.64-1.453-3.607Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M22.53 2.53a.75.75 0 0 0-1.06-1.06l-3.388 3.387H4a2 2 0 0 0-2 2V17a2 2 0 0 0 1.94 2l-2.47 2.47a.75.75 0 1 0 1.06 1.06l20-20ZM5.44 17.5l3.508-3.508H7.254l-.635 1.936H5l2.717-7.53h1.875L10.9 12.04l5.682-5.683H4a.5.5 0 0 0-.5.5V17a.5.5 0 0 0 .5.5h1.44Zm3.607 0H20a.5.5 0 0 0 .5-.5V6.857a.5.5 0 0 0-.359-.48l1.092-1.095c.467.367.767.936.767 1.575V17a2 2 0 0 1-2 2H7.55l1.497-1.5Zm1.567-1.572h1.683l-.446-1.24-1.237 1.24Zm2.578-2.584v.09c0 1.606.926 2.566 2.35 2.566.913 0 1.649-.414 1.844-1.01h.078v.938H19V8h-.477l-1.09 1.091v1.872h-.07c-.158-.388-.5-.68-.962-.836l-3.209 3.217Zm4.242-.76c0-.876-.57-1.428-1.353-1.428-.789 0-1.287.557-1.287 1.556v.568c0 1.004.504 1.567 1.311 1.567.795 0 1.329-.552 1.329-1.506v-.756Zm-7.795.299-.99-3.046h-.072l-.99 3.046h2.052Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M7 15.285v-9c0-.71-.56-1.249-1.25-1.249h-2.5c-.69 0-1.25.576-1.25 1.25v8.964c0 .71.56 1.25 1.25 1.25h2.5c.691.071 1.25-.504 1.25-1.215Zm13.809-2.366a2.735 2.735 0 0 0-1.07-2.85c.016-.122.024-.244.024-.367 0-.896-.432-1.711-1.126-2.203C18.542 6.105 17.407 5 16.027 5h-2.051a6.455 6.455 0 0 0-3.918 1.342L8.625 7.447a.966.966 0 0 0-.375.769c0 .512.402.966.939.966a.914.914 0 0 0 .562-.194l1.432-1.105a4.604 4.604 0 0 1 2.793-.957h2.051c.409 0 .741.342.741.762 0 .14-.043.198-.043.38 0 1.083 1.163.72 1.163 1.633 0 .371-.25.44-.25.894a.96.96 0 0 0 .765.948c.35.067.604.38.604.745 0 .524-.445.537-.445 1.162 0 .504.379.927.873.962.385-.007.69.359.69.716 0 .42-.333.761-.741.761h-5.376c-.486 0-.938.403-.938.928 0 .163.04.325.12.471.7 1.36.998 2.65.998 2.947 0 .324-.234.836-.862.836-.49 0-.558-.037-.974-1.128-.967-2.528-2.412-4.014-3.164-4.014-.539 0-.938.453-.938.964 0 .283.12.563.352.754C11.301 19.866 10.258 23 13.324 23c1.715 0 2.739-1.406 2.739-2.765 0-.51-.209-1.414-.58-2.383h3.901c1.409 0 2.616-1.205 2.616-2.723 0-.896-.473-1.732-1.191-2.21Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M5.75 8.392h-2.5c-.69 0-1.25.576-1.25 1.25v8.964c0 .71.56 1.25 1.25 1.25h2.5c.69 0 1.25-.576 1.25-1.25V9.678c0-.675-.559-1.286-1.25-1.286ZM22 9.834c0-1.482-1.174-2.688-2.616-2.688h-3.9c.371-1.004.579-1.872.579-2.382C16.063 3.406 15.038 2 13.325 2c-1.82 0-2.319 1.303-2.72 2.35C9.37 7.586 8.25 7.019 8.25 8.107c0 .516.405.964.938.964a.917.917 0 0 0 .585-.211c2.998-2.466 2.264-4.93 3.553-4.93.628 0 .861.512.861.835 0 .297-.296 1.59-.997 2.877a.982.982 0 0 0-.12.47c0 .56.446.929.937.929h5.375a.807.807 0 0 1 .743.794.751.751 0 0 1-.69.752.953.953 0 0 0-.874.962c0 .622.445.64.445 1.162 0 1.02-1.368.495-1.368 1.693 0 .451.25.524.25.894 0 .91-1.163.553-1.163 1.633 0 .182.043.24.043.38 0 .42-.333.762-.741.762h-2.052c-1 0-1.993-.34-2.793-.957L9.75 16.01a.915.915 0 0 0-.562-.194c-.54 0-.938.457-.938.966 0 .293.13.58.375.769l1.432 1.106A6.456 6.456 0 0 0 13.977 20h2.052c1.38 0 2.514-1.105 2.609-2.5a2.693 2.693 0 0 0 1.101-2.569 2.71 2.71 0 0 0 1.144-2.221c0-.213-.025-.424-.073-.628.717-.516 1.19-1.315 1.19-2.248Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="m16.236 11.52-.222-5.645h.944c.485 0 .875-.42.875-.973 0-.482-.39-.902-.875-.902H7.042c-.484 0-.875.42-.875.902 0 .553.391.973.875.973h1.134l-.394 5.633C6.03 12.547 5 14.19 5 15.992c0 .969.736 1.758 1.64 1.758h4.485v5.313c0 .519.394.937.875.937s.875-.42.875-.938V17.75h4.484c.904 0 1.641-.79 1.641-1.758 0-1.793-1.024-3.433-2.764-4.473Zm-3.361 4.355H6.753c.052-1.16.878-2.246 2.232-2.918l.465-.232.48-6.85h4.33l.268 6.84.483.24c1.357.674 2.184 1.76 2.235 2.92h-4.371Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M21.777 18.469 13.45 3.844A1.647 1.647 0 0 0 12.007 3c-.562 0-1.124.281-1.48.844l-8.32 14.625C1.6 19.589 2.399 21 3.683 21h16.651c1.279 0 2.08-1.406 1.443-2.531Zm-17.71.602 7.905-13.95 7.974 13.95H4.066Zm7.94-3.813c-.678 0-1.227.566-1.227 1.264 0 .697.55 1.263 1.229 1.263.678 0 1.225-.566 1.225-1.263-.001-.697-.548-1.263-1.227-1.263Zm-.937-6.15v3.856c0 .535.422.965.937.965.515 0 .937-.432.937-.965V9.107c0-.53-.418-.964-.937-.964-.52 0-.937.434-.937.964Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="m16.727 19.695 5-5.021a.811.811 0 0 0 .273-.632.937.937 0 0 0-.275-.666l-5-5.02a.935.935 0 0 0-1.325 0 .944.944 0 0 0 0 1.33l3.4 3.415H3.874V4.94A.941.941 0 0 0 2.937 4 .941.941 0 0 0 2 4.941v9.101c0 .52.42.942.938.942h15.861l-3.4 3.414a.944.944 0 0 0 0 1.33.909.909 0 0 0 1.328-.033Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M24 5.204c-.863.384-1.725.671-2.683.767.958-.575 1.725-1.534 2.108-2.588-.958.575-1.917.959-2.97 1.15A4.64 4.64 0 0 0 17.004 3a4.704 4.704 0 0 0-4.697 4.696c0 .383 0 .767.096 1.054A13.232 13.232 0 0 1 2.63 3.767c-.479.766-.67 1.533-.67 2.395 0 1.63.862 3.067 2.108 3.93-.767 0-1.534-.192-2.109-.575v.096c0 2.3 1.63 4.216 3.738 4.6-.383.095-.767.191-1.246.191-.288 0-.575 0-.863-.096.575 1.917 2.3 3.259 4.409 3.259-1.63 1.245-3.642 2.012-5.846 2.012-.383 0-.767 0-1.15-.096a13.415 13.415 0 0 0 7.188 2.109c8.72 0 13.416-7.188 13.416-13.417V7.6c.959-.67 1.725-1.533 2.396-2.396Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.714 13.688h-3.428C6.814 13.688 4 16.457 4 19.875 4 20.496 4.512 21 5.143 21h13.714c.631 0 1.143-.504 1.143-1.125 0-3.417-2.814-6.188-6.286-6.188ZM5.75 19.311c.282-2.218 2.207-3.937 4.536-3.937h3.428c2.327 0 4.254 1.72 4.536 3.938H5.75ZM12 12c2.525 0 4.571-2.015 4.571-4.5S14.525 3 12 3 7.429 5.015 7.429 7.5C7.429 9.986 9.475 12 12 12Zm0-7.313c1.575 0 2.857 1.262 2.857 2.813 0 1.55-1.282 2.813-2.857 2.813-1.575 0-2.857-1.263-2.857-2.813 0-1.55 1.282-2.813 2.857-2.813Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M1.913 11.966a.956.956 0 0 0 .584.43.949.949 0 0 0 .264.035c.308 0 .762-.148.922-.614.299-.869.828-1.948 1.493-2.807.674-.87 1.446-1.46 2.224-1.46.848 0 1.534.575 2.14 1.492.603.913 1.09 2.113 1.556 3.261l.003.007c.545 1.345 1.14 2.81 1.976 3.938.845 1.137 1.954 1.952 3.525 1.952 1.812 0 3.159-1.272 4.06-2.558a12.676 12.676 0 0 0 1.495-2.936.8.8 0 0 0-.066-.67l-.001-.002a.951.951 0 0 0-.586-.43.95.95 0 0 0-.259-.034c-.31 0-.766.147-.926.613-.299.868-.828 1.948-1.493 2.807-.674.87-1.446 1.46-2.224 1.46-.848 0-1.534-.575-2.14-1.492-.603-.913-1.09-2.113-1.556-3.261l-.003-.007c-.545-1.345-1.139-2.81-1.976-3.938C10.08 6.615 8.97 5.8 7.4 5.8c-1.811 0-3.158 1.272-4.059 2.558a12.738 12.738 0 0 0-1.496 2.935.8.8 0 0 0 .068.673Zm19.33-.196Z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M19.707 5.707a1 1 0 0 0-1.414-1.414L12 10.586 5.707 4.293a1 1 0 0 0-1.414 1.414L10.586 12l-6.293 6.293a1 1 0 1 0 1.414 1.414L12 13.414l6.293 6.293a1 1 0 0 0 1.414-1.414L13.414 12l6.293-6.293Z"/>
|
|
3
|
+
</svg>
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/* -------------------------------------------------------------------------- */
|
|
2
|
+
/* Utilities */
|
|
3
|
+
/* -------------------------------------------------------------------------- */
|
|
4
|
+
|
|
5
|
+
export { UIDReset as IdProvider } from 'react-uid'
|
|
6
|
+
export * as Polymorphic from './polymorphic'
|
|
7
|
+
|
|
8
|
+
/* -------------------------------------------------------------------------- */
|
|
9
|
+
/* Components */
|
|
10
|
+
/* -------------------------------------------------------------------------- */
|
|
11
|
+
|
|
12
|
+
export { Avatar } from './avatar'
|
|
13
|
+
export type { AvatarProps } from './avatar'
|
|
14
|
+
|
|
15
|
+
export { Button, ButtonsGroup } from './button'
|
|
16
|
+
export type { ButtonProps, ButtonsGroupProps } from './button'
|
|
17
|
+
|
|
18
|
+
export { Card } from './card'
|
|
19
|
+
export type { CardProps } from './card'
|
|
20
|
+
|
|
21
|
+
export { Checkbox, Radio, Toggle } from './selection-controls'
|
|
22
|
+
export type { CheckboxProps, RadioProps, ToggleProps } from './selection-controls'
|
|
23
|
+
|
|
24
|
+
export { Chip } from './chip'
|
|
25
|
+
export type { ChipProps } from './chip'
|
|
26
|
+
|
|
27
|
+
export { CircularProgress } from './circular-progress'
|
|
28
|
+
export type { CircularProgressProps } from './circular-progress'
|
|
29
|
+
|
|
30
|
+
export { ClampText } from './clamp-text'
|
|
31
|
+
export type { ClampTextProps } from './clamp-text'
|
|
32
|
+
|
|
33
|
+
export { Container } from './container'
|
|
34
|
+
export type { ContainerProps } from './container'
|
|
35
|
+
|
|
36
|
+
export { Table } from './table'
|
|
37
|
+
export type { TableProps } from './table'
|
|
38
|
+
|
|
39
|
+
export { Disclosure } from './disclosure'
|
|
40
|
+
export type { DisclosureProps } from './disclosure'
|
|
41
|
+
|
|
42
|
+
export { Dropdown } from './dropdown'
|
|
43
|
+
export type { DropdownProps, DropdownItemProps, DropdownItemCheckboxProps } from './dropdown'
|
|
44
|
+
|
|
45
|
+
export { Elevator } from './elevator'
|
|
46
|
+
export type { ElevatorProps } from './elevator'
|
|
47
|
+
|
|
48
|
+
export { Icon } from './icon'
|
|
49
|
+
export type { IconProps } from './icon'
|
|
50
|
+
|
|
51
|
+
export { IconButton } from './icon-button'
|
|
52
|
+
export type { IconButtonProps } from './icon-button'
|
|
53
|
+
|
|
54
|
+
export { InfoState } from './info-state'
|
|
55
|
+
export type { InfoStateProps } from './info-state'
|
|
56
|
+
|
|
57
|
+
export { InputGroup } from './input-group'
|
|
58
|
+
export type { InputGroupProps } from './input-group'
|
|
59
|
+
|
|
60
|
+
export { List } from './list'
|
|
61
|
+
export type { ListProps } from './list'
|
|
62
|
+
|
|
63
|
+
export { SplitButton } from './split-button'
|
|
64
|
+
export type { SplitButtonProps } from './split-button'
|
|
65
|
+
|
|
66
|
+
export { Modal, useModalContext, ModalProvider } from './modal'
|
|
67
|
+
export type { ModalProps } from './modal'
|
|
68
|
+
|
|
69
|
+
export { LinearProgress } from './linear-progress'
|
|
70
|
+
export type { LinearProgressProps } from './linear-progress'
|
|
71
|
+
|
|
72
|
+
export { OverlayContainer } from './overlay-container'
|
|
73
|
+
export type { OverlayContainerProps } from './overlay-container'
|
|
74
|
+
|
|
75
|
+
export { Prose } from './prose'
|
|
76
|
+
export type { ProseProps } from './prose'
|
|
77
|
+
|
|
78
|
+
export { Pagination } from './pagination'
|
|
79
|
+
export type { PaginationProps } from './pagination'
|
|
80
|
+
|
|
81
|
+
export { Select } from './select'
|
|
82
|
+
export type { SelectProps } from './select'
|
|
83
|
+
|
|
84
|
+
export { Separator } from './separator'
|
|
85
|
+
export type { SeparatorProps } from './separator'
|
|
86
|
+
|
|
87
|
+
export { SkeletonBlock } from './skeleton-block'
|
|
88
|
+
export type { SkeletonBlockProps } from './skeleton-block'
|
|
89
|
+
|
|
90
|
+
export { Slider } from './slider'
|
|
91
|
+
export type { SliderProps } from './slider'
|
|
92
|
+
|
|
93
|
+
export { Snackbar } from './snackbar'
|
|
94
|
+
export type { SnackbarProps } from './snackbar'
|
|
95
|
+
|
|
96
|
+
export { Spinner } from './spinner'
|
|
97
|
+
export type { SpinnerProps } from './spinner'
|
|
98
|
+
|
|
99
|
+
export { Stack } from './stack'
|
|
100
|
+
export type{ StackProps } from './stack'
|
|
101
|
+
|
|
102
|
+
export { StarMeter } from './star-meter'
|
|
103
|
+
export type { StarMeterProps } from './star-meter'
|
|
104
|
+
|
|
105
|
+
export { Tab } from './tab'
|
|
106
|
+
export type { TabProps } from './tab'
|
|
107
|
+
|
|
108
|
+
export { Text } from './text'
|
|
109
|
+
export type { TextProps } from './text'
|
|
110
|
+
|
|
111
|
+
export { Textfield } from './textfield'
|
|
112
|
+
export type { TextfieldProps } from './textfield'
|
|
113
|
+
|
|
114
|
+
export { Title } from './title'
|
|
115
|
+
export type { TitleProps } from './title'
|
|
116
|
+
|
|
117
|
+
export { ToggleButton } from './toggle-button'
|
|
118
|
+
export type { ToggleButtonProps } from './toggle-button'
|
|
119
|
+
|
|
120
|
+
export { Tooltip } from './tooltip'
|
|
121
|
+
export type { TooltipProps } from './tooltip'
|
|
122
|
+
|
|
123
|
+
/* -------------------------------------------------------------------------- */
|
|
124
|
+
/* Layouts */
|
|
125
|
+
/* -------------------------------------------------------------------------- */
|
|
126
|
+
|
|
127
|
+
export { Masonry } from './masonry'
|
|
128
|
+
export type { MasonryProps } from './masonry'
|
|
129
|
+
|
|
130
|
+
export { Grid } from './grid'
|
|
131
|
+
export type { GridProps, GridItemProps } from './grid'
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import React from 'react'
|
|
3
|
+
import { InfoState } from './info-state'
|
|
4
|
+
import { Button } from '../button'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Components/Dialogs/InfoState',
|
|
8
|
+
component: InfoState,
|
|
9
|
+
args: {
|
|
10
|
+
title: 'Sample very long title'
|
|
11
|
+
},
|
|
12
|
+
argTypes: {
|
|
13
|
+
iconColor: {
|
|
14
|
+
options: ['gray', 'cyan', 'green', 'purple', 'yellow', 'red', 'blue'],
|
|
15
|
+
control: { type: 'select' }
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const Template = (args) => (
|
|
21
|
+
<InfoState {...args}>
|
|
22
|
+
Cras ultricies, elit sit amet cursus consectetur, risus felis ullamcorper nulla, ut scelerisque sapien lorem non sem.
|
|
23
|
+
</InfoState>
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
export const Default = Template.bind({})
|
|
27
|
+
Default.args = {
|
|
28
|
+
icon: 'compass'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const Horizontal = Template.bind({})
|
|
32
|
+
Horizontal.args = {
|
|
33
|
+
direction: 'row',
|
|
34
|
+
icon: 'compass'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const WithImage = Template.bind({})
|
|
38
|
+
WithImage.args = {
|
|
39
|
+
image: 'https://svgshare.com/i/b5f.svg'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const WithImageHorizontal = Template.bind({})
|
|
43
|
+
WithImageHorizontal.args = {
|
|
44
|
+
direction: 'row',
|
|
45
|
+
image: 'https://svgshare.com/i/b5f.svg'
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export const WithActions = Template.bind({})
|
|
49
|
+
WithActions.args = {
|
|
50
|
+
actions: <>
|
|
51
|
+
<Button>Primary</Button>
|
|
52
|
+
<Button kind="flat">Secondary</Button>
|
|
53
|
+
</>
|
|
54
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { forwardRef, PropsWithChildren, ReactNode } from 'react'
|
|
2
|
+
import { IconNames } from '../icons/types'
|
|
3
|
+
import { Stack, StackProps, Icon, Title, Text } from '../'
|
|
4
|
+
import { IconWrapper, Image } from './info-state.module.css'
|
|
5
|
+
|
|
6
|
+
export type InfoStateProps = PropsWithChildren<PropsWithClass> & {
|
|
7
|
+
/**
|
|
8
|
+
* Set the main tagline of the info state. This should be catchy and short
|
|
9
|
+
* as much as possible.
|
|
10
|
+
*/
|
|
11
|
+
title: ReactNode
|
|
12
|
+
/**
|
|
13
|
+
* The icon to display. This is used to enforce the message of the info state.
|
|
14
|
+
* This is not displayed if `image` is set.
|
|
15
|
+
*/
|
|
16
|
+
icon?: IconNames
|
|
17
|
+
/**
|
|
18
|
+
* Set the icon color. Please use the correct color based on the type of the message.
|
|
19
|
+
* Eg. Don't use `green` for negative informations.
|
|
20
|
+
*/
|
|
21
|
+
iconColor?: 'gray' | 'cyan' | 'green' | 'purple' | 'yellow' | 'red' | 'blue'
|
|
22
|
+
/**
|
|
23
|
+
* An image may be used instead of an icon. The image is centered and scaled.
|
|
24
|
+
*/
|
|
25
|
+
image?: string
|
|
26
|
+
/**
|
|
27
|
+
* Set the direction of the content (column or row).
|
|
28
|
+
*/
|
|
29
|
+
direction?: StackProps['direction'];
|
|
30
|
+
/**
|
|
31
|
+
* Pass the suplementary actions to the info state. Even if you can pass
|
|
32
|
+
* as many elements as you want, we suggest to add no more than two actions.
|
|
33
|
+
*/
|
|
34
|
+
actions?: ReactNode;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const InfoState = forwardRef<HTMLDivElement, InfoStateProps>(({
|
|
38
|
+
className,
|
|
39
|
+
children,
|
|
40
|
+
title,
|
|
41
|
+
icon,
|
|
42
|
+
image,
|
|
43
|
+
direction = 'column',
|
|
44
|
+
iconColor = 'blue',
|
|
45
|
+
actions,
|
|
46
|
+
...otherProps
|
|
47
|
+
}, forwardedRef) => {
|
|
48
|
+
const isHorizontal = direction === 'row'
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<Stack
|
|
52
|
+
ref={forwardedRef}
|
|
53
|
+
direction={direction}
|
|
54
|
+
rowGap={24}
|
|
55
|
+
columnGap={32}
|
|
56
|
+
className={className}
|
|
57
|
+
horizontalAlign={isHorizontal ? 'start' : 'center'}
|
|
58
|
+
verticalAlign={(isHorizontal && image) ? 'center' : 'start'}
|
|
59
|
+
fill={false}
|
|
60
|
+
wrap={!!image}
|
|
61
|
+
{...otherProps}
|
|
62
|
+
>
|
|
63
|
+
{(!image && icon) && (
|
|
64
|
+
<span data-info-state-icon-color={iconColor} className={IconWrapper}>
|
|
65
|
+
<Icon name={icon} dimension={48} />
|
|
66
|
+
</span>
|
|
67
|
+
)}
|
|
68
|
+
|
|
69
|
+
{(image && !icon) && <img className={Image} alt="" width="400" src={image} loading="lazy" decoding="async" />}
|
|
70
|
+
|
|
71
|
+
<Stack
|
|
72
|
+
rowGap={16}
|
|
73
|
+
horizontalAlign={isHorizontal ? 'start' : 'center'}
|
|
74
|
+
verticalAlign="center"
|
|
75
|
+
fill={false}
|
|
76
|
+
>
|
|
77
|
+
<Title maxWidth="20ch" textAlign={isHorizontal ? 'start' : 'center'} level="4">{title}</Title>
|
|
78
|
+
<Text maxWidth="60ch" dimmed={6} textAlign={isHorizontal ? 'start' : 'center'}>{children}</Text>
|
|
79
|
+
{actions && (
|
|
80
|
+
<Stack verticalPadding={16} inline direction="row" columnGap={16} rowGap={16} wrap>
|
|
81
|
+
{actions}
|
|
82
|
+
</Stack>
|
|
83
|
+
)}
|
|
84
|
+
</Stack>
|
|
85
|
+
</Stack>
|
|
86
|
+
)
|
|
87
|
+
})
|
|
88
|
+
|
|
89
|
+
InfoState.displayName = 'InfoState'
|
|
File without changes
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import { Stack } from '../stack'
|
|
3
|
+
import { Button } from '../button'
|
|
4
|
+
import { Select } from '../select'
|
|
5
|
+
import { Textfield } from '../textfield'
|
|
6
|
+
import { InputGroup } from './input-group'
|
|
7
|
+
|
|
8
|
+
export default {
|
|
9
|
+
title: 'Components/Inputs/Input group',
|
|
10
|
+
component: InputGroup
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const Default = (args) => (
|
|
14
|
+
<Stack inline fill={false} horizontalAlign="start" rowGap={32}>
|
|
15
|
+
<InputGroup
|
|
16
|
+
input={<Textfield type="text" defaultValue="cicc" />}
|
|
17
|
+
end={<Button>Confirm</Button>}
|
|
18
|
+
{...args}
|
|
19
|
+
/>
|
|
20
|
+
<InputGroup
|
|
21
|
+
input={<Textfield type="text" defaultValue="sample" />}
|
|
22
|
+
end={<Textfield disabled size={9} placeholder="@mail.com" />}
|
|
23
|
+
{...args}
|
|
24
|
+
/>
|
|
25
|
+
<InputGroup
|
|
26
|
+
dimension="big"
|
|
27
|
+
label="Sample label"
|
|
28
|
+
start={<Textfield readOnly size={6} defaultValue="https://" />}
|
|
29
|
+
input={<Textfield type="text" defaultValue="sample-domain" />}
|
|
30
|
+
end={(
|
|
31
|
+
<Select defaultValue={1}>
|
|
32
|
+
<option value="1">.com</option>
|
|
33
|
+
<option value="2">.it</option>
|
|
34
|
+
<option value="3">.org</option>
|
|
35
|
+
<option value="4">.dev</option>
|
|
36
|
+
<option value="5">.io</option>
|
|
37
|
+
</Select>
|
|
38
|
+
)}
|
|
39
|
+
{...args}
|
|
40
|
+
/>
|
|
41
|
+
</Stack>
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
export const Single = Default.bind({})
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import clsx from 'clsx'
|
|
2
|
+
import { Children, cloneElement, forwardRef, ReactElement, ReactNode } from 'react'
|
|
3
|
+
import { Stack, Text } from '../'
|
|
4
|
+
import { useUIDSeed } from 'react-uid'
|
|
5
|
+
import { End, InputField, Start, InputGroup as InputGroupClass } from './input-group.module.css'
|
|
6
|
+
|
|
7
|
+
export type InputGroupProps = PropsWithClass & {
|
|
8
|
+
/**
|
|
9
|
+
* Pas the input element to decorate
|
|
10
|
+
*/
|
|
11
|
+
input: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Add a decoration element before the input.
|
|
14
|
+
*/
|
|
15
|
+
end?: ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* Add a decoration element after the input.
|
|
18
|
+
*/
|
|
19
|
+
start?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Add an accessible label to the componsed input group
|
|
22
|
+
*/
|
|
23
|
+
label?: ReactNode;
|
|
24
|
+
/**
|
|
25
|
+
* Pass the dimension down to the imput element.
|
|
26
|
+
*/
|
|
27
|
+
dimension?: 'small' | 'big' | 'regular';
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const InputGroup = forwardRef<HTMLFieldSetElement, InputGroupProps>(({
|
|
31
|
+
className,
|
|
32
|
+
input,
|
|
33
|
+
end,
|
|
34
|
+
start,
|
|
35
|
+
label,
|
|
36
|
+
dimension = 'regular',
|
|
37
|
+
...otherProps
|
|
38
|
+
}, forwardedRef) => {
|
|
39
|
+
const uid = useUIDSeed()
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<Stack
|
|
43
|
+
rowGap={4}
|
|
44
|
+
horizontalAlign="stretch"
|
|
45
|
+
verticalAlign="start"
|
|
46
|
+
fill={false}
|
|
47
|
+
>
|
|
48
|
+
{label && <Text as="label" size={dimension === 'small' ? 14 : 16} htmlFor={uid('field')}>{label}</Text>}
|
|
49
|
+
<Stack
|
|
50
|
+
as="fieldset"
|
|
51
|
+
direction="row"
|
|
52
|
+
verticalAlign="start"
|
|
53
|
+
horizontalAlign="start"
|
|
54
|
+
fill={false}
|
|
55
|
+
inline
|
|
56
|
+
ref={forwardedRef}
|
|
57
|
+
className={clsx(InputGroupClass, className)}
|
|
58
|
+
data-input-group-has-end={Boolean(end)}
|
|
59
|
+
data-input-group-has-start={!!start}
|
|
60
|
+
{...otherProps}
|
|
61
|
+
>
|
|
62
|
+
<div className={Start}>
|
|
63
|
+
{Children.map(start, (child: ReactElement) => cloneElement(
|
|
64
|
+
child,
|
|
65
|
+
{
|
|
66
|
+
dimension
|
|
67
|
+
}
|
|
68
|
+
))}
|
|
69
|
+
</div>
|
|
70
|
+
<div className={InputField}>
|
|
71
|
+
{Children.map(input, (child: ReactElement) => cloneElement(
|
|
72
|
+
child,
|
|
73
|
+
{
|
|
74
|
+
id: uid('field'),
|
|
75
|
+
dimension
|
|
76
|
+
}
|
|
77
|
+
))}
|
|
78
|
+
</div>
|
|
79
|
+
<div className={End}>
|
|
80
|
+
{Children.map(end, (child: ReactElement) => cloneElement(
|
|
81
|
+
child,
|
|
82
|
+
{
|
|
83
|
+
dimension
|
|
84
|
+
}
|
|
85
|
+
))}
|
|
86
|
+
</div>
|
|
87
|
+
</Stack>
|
|
88
|
+
</Stack>
|
|
89
|
+
)
|
|
90
|
+
})
|
|
91
|
+
|
|
92
|
+
InputGroup.displayName = 'InputGroup'
|
|
File without changes
|