@baton8/general-components 1.0.0
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/.babelrc.json +16 -0
- package/.eslintrc.json +11 -0
- package/.github/workflows/chromatic.yml +43 -0
- package/.github/workflows/doc.yml +53 -0
- package/.github/workflows/review.yml +18 -0
- package/README.md +11 -0
- package/dist/components/atoms/asyncSelect/asyncSelect.d.ts +67 -0
- package/dist/components/atoms/asyncSelect/asyncSelect.stories.d.ts +6 -0
- package/dist/components/atoms/asyncSelect/asyncSelectOption.d.ts +26 -0
- package/dist/components/atoms/asyncSelect/index.d.ts +2 -0
- package/dist/components/atoms/avatar/avatar.d.ts +27 -0
- package/dist/components/atoms/avatar/avatar.stories.d.ts +7 -0
- package/dist/components/atoms/avatar/avatarFallbackIcon.d.ts +15 -0
- package/dist/components/atoms/avatar/avatarFallbackLetter.d.ts +20 -0
- package/dist/components/atoms/avatar/index.d.ts +3 -0
- package/dist/components/atoms/badge/badge.d.ts +34 -0
- package/dist/components/atoms/badge/badge.stories.d.ts +11 -0
- package/dist/components/atoms/badge/badgeIconContainer.d.ts +16 -0
- package/dist/components/atoms/badge/index.d.ts +2 -0
- package/dist/components/atoms/barMeter/barMeter.d.ts +45 -0
- package/dist/components/atoms/barMeter/barMeter.stories.d.ts +10 -0
- package/dist/components/atoms/barMeter/barMeterValue.d.ts +32 -0
- package/dist/components/atoms/barMeter/barMeterValue.stories.d.ts +7 -0
- package/dist/components/atoms/barMeter/barMeterValueIconContainer.d.ts +17 -0
- package/dist/components/atoms/barMeter/context.d.ts +8 -0
- package/dist/components/atoms/barMeter/index.d.ts +3 -0
- package/dist/components/atoms/barProgress/barProgress.d.ts +38 -0
- package/dist/components/atoms/barProgress/barProgress.stories.d.ts +8 -0
- package/dist/components/atoms/barProgress/index.d.ts +1 -0
- package/dist/components/atoms/button/button.d.ts +79 -0
- package/dist/components/atoms/button/button.stories.d.ts +13 -0
- package/dist/components/atoms/button/buttonIconContainer.d.ts +16 -0
- package/dist/components/atoms/button/hotkeyView.d.ts +6 -0
- package/dist/components/atoms/button/index.d.ts +2 -0
- package/dist/components/atoms/buttonLink/buttonLink.d.ts +83 -0
- package/dist/components/atoms/buttonLink/buttonLink.stories.d.ts +13 -0
- package/dist/components/atoms/buttonLink/buttonLinkIconContainer.d.ts +16 -0
- package/dist/components/atoms/buttonLink/index.d.ts +2 -0
- package/dist/components/atoms/checkableContainer/checkableContainer.d.ts +37 -0
- package/dist/components/atoms/checkableContainer/checkableContainer.stories.d.ts +9 -0
- package/dist/components/atoms/checkableContainer/checkableLabel.d.ts +29 -0
- package/dist/components/atoms/checkableContainer/checkableLabel.stories.d.ts +7 -0
- package/dist/components/atoms/checkableContainer/index.d.ts +2 -0
- package/dist/components/atoms/checkbox/checkbox.d.ts +56 -0
- package/dist/components/atoms/checkbox/checkbox.stories.d.ts +15 -0
- package/dist/components/atoms/checkbox/index.d.ts +1 -0
- package/dist/components/atoms/controlContainer/controlContainer.d.ts +56 -0
- package/dist/components/atoms/controlContainer/controlContainer.stories.d.ts +13 -0
- package/dist/components/atoms/controlContainer/controlErrorMessage.d.ts +20 -0
- package/dist/components/atoms/controlContainer/controlErrorMessage.stories.d.ts +7 -0
- package/dist/components/atoms/controlContainer/controlHelper.d.ts +20 -0
- package/dist/components/atoms/controlContainer/controlHelper.stories.d.ts +7 -0
- package/dist/components/atoms/controlContainer/controlLabel.d.ts +20 -0
- package/dist/components/atoms/controlContainer/controlLabel.stories.d.ts +7 -0
- package/dist/components/atoms/controlContainer/index.d.ts +4 -0
- package/dist/components/atoms/divider/divider.d.ts +15 -0
- package/dist/components/atoms/divider/divider.stories.d.ts +8 -0
- package/dist/components/atoms/divider/index.d.ts +1 -0
- package/dist/components/atoms/fileInput/fileInput.d.ts +57 -0
- package/dist/components/atoms/fileInput/fileInput.stories.d.ts +10 -0
- package/dist/components/atoms/fileInput/index.d.ts +1 -0
- package/dist/components/atoms/generalIcon/generalIcon.d.ts +58 -0
- package/dist/components/atoms/generalIcon/generalIcon.stories.d.ts +7 -0
- package/dist/components/atoms/generalIcon/index.d.ts +1 -0
- package/dist/components/atoms/heading/heading.d.ts +21 -0
- package/dist/components/atoms/heading/heading.stories.d.ts +7 -0
- package/dist/components/atoms/heading/index.d.ts +1 -0
- package/dist/components/atoms/icon/icon.d.ts +28 -0
- package/dist/components/atoms/icon/icon.stories.d.ts +7 -0
- package/dist/components/atoms/icon/iconData.d.ts +33 -0
- package/dist/components/atoms/icon/iconDefinitions.d.ts +8 -0
- package/dist/components/atoms/icon/index.d.ts +1 -0
- package/dist/components/atoms/iconButton/iconButton.d.ts +71 -0
- package/dist/components/atoms/iconButton/iconButton.stories.d.ts +11 -0
- package/dist/components/atoms/iconButton/index.d.ts +1 -0
- package/dist/components/atoms/input/index.d.ts +3 -0
- package/dist/components/atoms/input/input.d.ts +80 -0
- package/dist/components/atoms/input/input.stories.d.ts +20 -0
- package/dist/components/atoms/input/inputLeftAddon.d.ts +16 -0
- package/dist/components/atoms/input/inputRightAddon.d.ts +16 -0
- package/dist/components/atoms/link/index.d.ts +2 -0
- package/dist/components/atoms/link/link.d.ts +79 -0
- package/dist/components/atoms/link/link.stories.d.ts +8 -0
- package/dist/components/atoms/link/linkIconContainer.d.ts +16 -0
- package/dist/components/atoms/loadingIcon/index.d.ts +1 -0
- package/dist/components/atoms/loadingIcon/loadingIcon.d.ts +20 -0
- package/dist/components/atoms/loadingIcon/loadingIcon.stories.d.ts +7 -0
- package/dist/components/atoms/modal/index.d.ts +1 -0
- package/dist/components/atoms/modal/modal.d.ts +27 -0
- package/dist/components/atoms/modal/modal.stories.d.ts +7 -0
- package/dist/components/atoms/multiLineText/index.d.ts +1 -0
- package/dist/components/atoms/multiLineText/multiLineText.d.ts +49 -0
- package/dist/components/atoms/multiLineText/multiLineText.stories.d.ts +9 -0
- package/dist/components/atoms/numberInput/index.d.ts +2 -0
- package/dist/components/atoms/numberInput/numberInput.d.ts +58 -0
- package/dist/components/atoms/numberInput/numberInput.stories.d.ts +10 -0
- package/dist/components/atoms/numberInput/numberInputLeftAddon.d.ts +15 -0
- package/dist/components/atoms/passwordInput/index.d.ts +3 -0
- package/dist/components/atoms/passwordInput/passwordInput.d.ts +60 -0
- package/dist/components/atoms/passwordInput/passwordInput.stories.d.ts +13 -0
- package/dist/components/atoms/passwordInput/passwordInputLeftAddon.d.ts +16 -0
- package/dist/components/atoms/passwordInput/passwordInputRightAddon.d.ts +16 -0
- package/dist/components/atoms/radio/index.d.ts +1 -0
- package/dist/components/atoms/radio/radio.d.ts +53 -0
- package/dist/components/atoms/radio/radio.stories.d.ts +13 -0
- package/dist/components/atoms/radioGroup/alignedRadioGroup.d.ts +15 -0
- package/dist/components/atoms/radioGroup/index.d.ts +2 -0
- package/dist/components/atoms/radioGroup/radioGroup.d.ts +15 -0
- package/dist/components/atoms/radioGroup/radioGroup.stories.d.ts +8 -0
- package/dist/components/atoms/root/index.d.ts +1 -0
- package/dist/components/atoms/root/root.d.ts +76 -0
- package/dist/components/atoms/root/root.stories.d.ts +7 -0
- package/dist/components/atoms/root/scrollGlobalStyle.d.ts +1 -0
- package/dist/components/atoms/root/svgDefinition.d.ts +8 -0
- package/dist/components/atoms/scroll/index.d.ts +1 -0
- package/dist/components/atoms/scroll/scroll.d.ts +31 -0
- package/dist/components/atoms/scroll/scroll.stories.d.ts +8 -0
- package/dist/components/atoms/secondaryHeading/index.d.ts +1 -0
- package/dist/components/atoms/secondaryHeading/secondaryHeading.d.ts +20 -0
- package/dist/components/atoms/secondaryHeading/secondaryHeading.stories.d.ts +7 -0
- package/dist/components/atoms/select/context.d.ts +10 -0
- package/dist/components/atoms/select/index.d.ts +7 -0
- package/dist/components/atoms/select/pageSizeSelect.d.ts +35 -0
- package/dist/components/atoms/select/pageSizeSelect.stories.d.ts +7 -0
- package/dist/components/atoms/select/pageSizeSelectAuto.d.ts +11 -0
- package/dist/components/atoms/select/select.d.ts +109 -0
- package/dist/components/atoms/select/select.stories.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentClearIndicator.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentControl.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentDropdownIndicator.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentIndicatorsContainer.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentInput.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentLoadingMessage.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentMenu.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentMenuList.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentMenuPortal.d.ts +8 -0
- package/dist/components/atoms/select/selectComponentNoOptionMessage.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentOption.d.ts +13 -0
- package/dist/components/atoms/select/selectComponentPlacement.d.ts +13 -0
- package/dist/components/atoms/select/selectHook.d.ts +8 -0
- package/dist/components/atoms/select/selectOption.d.ts +36 -0
- package/dist/components/atoms/select/selectOption.stories.d.ts +7 -0
- package/dist/components/atoms/select/selectOptionIconContainer.d.ts +16 -0
- package/dist/components/atoms/select/sortOrderSelect.d.ts +34 -0
- package/dist/components/atoms/select/sortOrderSelect.stories.d.ts +8 -0
- package/dist/components/atoms/singleLineText/index.d.ts +1 -0
- package/dist/components/atoms/singleLineText/singleLineText.d.ts +27 -0
- package/dist/components/atoms/singleLineText/singleLineText.stories.d.ts +8 -0
- package/dist/components/atoms/switch/index.d.ts +1 -0
- package/dist/components/atoms/switch/switch.d.ts +53 -0
- package/dist/components/atoms/switch/switch.stories.d.ts +13 -0
- package/dist/components/atoms/tag/index.d.ts +2 -0
- package/dist/components/atoms/tag/tag.d.ts +24 -0
- package/dist/components/atoms/tag/tag.stories.d.ts +8 -0
- package/dist/components/atoms/tag/tagIconContainer.d.ts +15 -0
- package/dist/components/atoms/tagList/index.d.ts +1 -0
- package/dist/components/atoms/tagList/tagList.d.ts +19 -0
- package/dist/components/atoms/tagList/tagList.stories.d.ts +8 -0
- package/dist/components/atoms/textButton/index.d.ts +2 -0
- package/dist/components/atoms/textButton/textButton.d.ts +43 -0
- package/dist/components/atoms/textButton/textButton.stories.d.ts +8 -0
- package/dist/components/atoms/textButton/textButtonIconContainer.d.ts +16 -0
- package/dist/components/atoms/textarea/index.d.ts +1 -0
- package/dist/components/atoms/textarea/textarea.d.ts +57 -0
- package/dist/components/atoms/textarea/textarea.stories.d.ts +11 -0
- package/dist/components/atoms/visuallyHidden/index.d.ts +1 -0
- package/dist/components/atoms/visuallyHidden/visuallyHidden.d.ts +20 -0
- package/dist/components/atoms/visuallyHidden/visuallyHidden.stories.d.ts +7 -0
- package/dist/components/functions/shorthands.d.ts +43 -0
- package/dist/components/functions/utilities.d.ts +94 -0
- package/dist/components/index.d.ts +52 -0
- package/dist/components/modules/bulkOperationContainer/bulkOperationButton.d.ts +17 -0
- package/dist/components/modules/bulkOperationContainer/bulkOperationButton.stories.d.ts +8 -0
- package/dist/components/modules/bulkOperationContainer/bulkOperationContainer.d.ts +16 -0
- package/dist/components/modules/bulkOperationContainer/index.d.ts +2 -0
- package/dist/components/modules/card/card.d.ts +59 -0
- package/dist/components/modules/card/card.stories.d.ts +17 -0
- package/dist/components/modules/card/cardBody.d.ts +15 -0
- package/dist/components/modules/card/cardBody.stories.d.ts +7 -0
- package/dist/components/modules/card/cardButton.d.ts +55 -0
- package/dist/components/modules/card/cardButton.stories.d.ts +7 -0
- package/dist/components/modules/card/cardButtonList.d.ts +15 -0
- package/dist/components/modules/card/cardButtonList.stories.d.ts +7 -0
- package/dist/components/modules/card/cardControlContainer.d.ts +15 -0
- package/dist/components/modules/card/cardControlContainer.stories.d.ts +7 -0
- package/dist/components/modules/card/cardHeadnote.d.ts +15 -0
- package/dist/components/modules/card/cardHeadnote.stories.d.ts +7 -0
- package/dist/components/modules/card/cardTitle.d.ts +25 -0
- package/dist/components/modules/card/cardTitle.stories.d.ts +7 -0
- package/dist/components/modules/card/context.d.ts +11 -0
- package/dist/components/modules/card/index.d.ts +7 -0
- package/dist/components/modules/cardList/cardList.d.ts +73 -0
- package/dist/components/modules/cardList/cardList.stories.d.ts +7 -0
- package/dist/components/modules/cardList/cardListAuto.d.ts +163 -0
- package/dist/components/modules/cardList/cardListAuto.stories.d.ts +5 -0
- package/dist/components/modules/cardList/cardListAutoHook.d.ts +13 -0
- package/dist/components/modules/cardList/cardListBody.d.ts +21 -0
- package/dist/components/modules/cardList/cardListBody.stories.d.ts +7 -0
- package/dist/components/modules/cardList/cardListBodyAuto.d.ts +24 -0
- package/dist/components/modules/cardList/cardListEmpty.d.ts +18 -0
- package/dist/components/modules/cardList/cardListEmpty.stories.d.ts +7 -0
- package/dist/components/modules/cardList/cardListFooter.d.ts +13 -0
- package/dist/components/modules/cardList/cardListFooter.stories.d.ts +7 -0
- package/dist/components/modules/cardList/cardListFooterAuto.d.ts +13 -0
- package/dist/components/modules/cardList/cardListHeader.d.ts +15 -0
- package/dist/components/modules/cardList/cardListHeader.stories.d.ts +7 -0
- package/dist/components/modules/cardList/cardListHeaderLeft.d.ts +15 -0
- package/dist/components/modules/cardList/cardListHeaderLeft.stories.d.ts +7 -0
- package/dist/components/modules/cardList/cardListHeaderRight.d.ts +15 -0
- package/dist/components/modules/cardList/cardListHeaderRight.stories.d.ts +7 -0
- package/dist/components/modules/cardList/cardListLoading.d.ts +18 -0
- package/dist/components/modules/cardList/cardListLoading.stories.d.ts +7 -0
- package/dist/components/modules/cardList/index.d.ts +11 -0
- package/dist/components/modules/contentHeader/contentHeader.d.ts +16 -0
- package/dist/components/modules/contentHeader/contentHeader.stories.d.ts +8 -0
- package/dist/components/modules/contentHeader/contentTitle.d.ts +15 -0
- package/dist/components/modules/contentHeader/index.d.ts +2 -0
- package/dist/components/modules/countIndicator/countIndicator.d.ts +32 -0
- package/dist/components/modules/countIndicator/countIndicator.stories.d.ts +14 -0
- package/dist/components/modules/countIndicator/index.d.ts +1 -0
- package/dist/components/modules/dialog/context.d.ts +9 -0
- package/dist/components/modules/dialog/dialog.d.ts +77 -0
- package/dist/components/modules/dialog/dialog.stories.d.ts +16 -0
- package/dist/components/modules/dialog/dialogBody.d.ts +18 -0
- package/dist/components/modules/dialog/dialogBody.stories.d.ts +7 -0
- package/dist/components/modules/dialog/dialogButton.d.ts +40 -0
- package/dist/components/modules/dialog/dialogButton.stories.d.ts +8 -0
- package/dist/components/modules/dialog/dialogCloseButton.d.ts +13 -0
- package/dist/components/modules/dialog/dialogCloseButton.stories.d.ts +7 -0
- package/dist/components/modules/dialog/dialogFooter.d.ts +15 -0
- package/dist/components/modules/dialog/dialogFooter.stories.d.ts +7 -0
- package/dist/components/modules/dialog/dialogHeader.d.ts +15 -0
- package/dist/components/modules/dialog/dialogHeader.stories.d.ts +7 -0
- package/dist/components/modules/dialog/dialogTitle.d.ts +20 -0
- package/dist/components/modules/dialog/dialogTitle.stories.d.ts +7 -0
- package/dist/components/modules/dialog/index.d.ts +7 -0
- package/dist/components/modules/drawer/context.d.ts +9 -0
- package/dist/components/modules/drawer/drawer.d.ts +32 -0
- package/dist/components/modules/drawer/drawer.stories.d.ts +13 -0
- package/dist/components/modules/drawer/drawerBody.d.ts +15 -0
- package/dist/components/modules/drawer/drawerBody.stories.d.ts +7 -0
- package/dist/components/modules/drawer/drawerButton.d.ts +42 -0
- package/dist/components/modules/drawer/drawerButton.stories.d.ts +7 -0
- package/dist/components/modules/drawer/drawerCaption.d.ts +15 -0
- package/dist/components/modules/drawer/drawerCaption.stories.d.ts +7 -0
- package/dist/components/modules/drawer/drawerFooter.d.ts +15 -0
- package/dist/components/modules/drawer/drawerFooter.stories.d.ts +7 -0
- package/dist/components/modules/drawer/drawerHeader.d.ts +15 -0
- package/dist/components/modules/drawer/drawerHeader.stories.d.ts +7 -0
- package/dist/components/modules/drawer/drawerTitle.d.ts +20 -0
- package/dist/components/modules/drawer/drawerTitle.stories.d.ts +7 -0
- package/dist/components/modules/drawer/index.d.ts +7 -0
- package/dist/components/modules/footnote/footnote.d.ts +26 -0
- package/dist/components/modules/footnote/footnote.stories.d.ts +9 -0
- package/dist/components/modules/footnote/footnoteIconContainer.d.ts +15 -0
- package/dist/components/modules/footnote/index.d.ts +2 -0
- package/dist/components/modules/footnoteList/footnoteList.d.ts +38 -0
- package/dist/components/modules/footnoteList/footnoteList.stories.d.ts +9 -0
- package/dist/components/modules/footnoteList/footnoteListRow.d.ts +19 -0
- package/dist/components/modules/footnoteList/footnoteListRow.stories.d.ts +7 -0
- package/dist/components/modules/footnoteList/index.d.ts +2 -0
- package/dist/components/modules/fractionView/context.d.ts +7 -0
- package/dist/components/modules/fractionView/fractionView.d.ts +28 -0
- package/dist/components/modules/fractionView/fractionView.stories.d.ts +8 -0
- package/dist/components/modules/fractionView/fractionViewDenominator.d.ts +15 -0
- package/dist/components/modules/fractionView/fractionViewNumerator.d.ts +15 -0
- package/dist/components/modules/fractionView/index.d.ts +3 -0
- package/dist/components/modules/header/header.d.ts +15 -0
- package/dist/components/modules/header/header.stories.d.ts +7 -0
- package/dist/components/modules/header/headerLeft.d.ts +15 -0
- package/dist/components/modules/header/headerMenu.d.ts +16 -0
- package/dist/components/modules/header/headerMenuItem.d.ts +21 -0
- package/dist/components/modules/header/headerMenuItemIconContainer.d.ts +16 -0
- package/dist/components/modules/header/index.d.ts +5 -0
- package/dist/components/modules/menu/context.d.ts +10 -0
- package/dist/components/modules/menu/index.d.ts +4 -0
- package/dist/components/modules/menu/menu.d.ts +42 -0
- package/dist/components/modules/menu/menu.stories.d.ts +9 -0
- package/dist/components/modules/menu/menuDivider.d.ts +23 -0
- package/dist/components/modules/menu/menuItem.d.ts +23 -0
- package/dist/components/modules/menu/menuItem.stories.d.ts +7 -0
- package/dist/components/modules/menu/menuItemIconContainer.d.ts +15 -0
- package/dist/components/modules/menu/menuList.d.ts +22 -0
- package/dist/components/modules/pagination/index.d.ts +2 -0
- package/dist/components/modules/pagination/pagination.d.ts +25 -0
- package/dist/components/modules/pagination/pagination.stories.d.ts +7 -0
- package/dist/components/modules/pagination/paginationAuto.d.ts +13 -0
- package/dist/components/modules/rankView/index.d.ts +1 -0
- package/dist/components/modules/rankView/rankView.d.ts +29 -0
- package/dist/components/modules/rankView/rankView.stories.d.ts +13 -0
- package/dist/components/modules/stepper/context.d.ts +13 -0
- package/dist/components/modules/stepper/index.d.ts +5 -0
- package/dist/components/modules/stepper/stepper.d.ts +22 -0
- package/dist/components/modules/stepper/stepper.stories.d.ts +8 -0
- package/dist/components/modules/stepper/stepperBody.d.ts +15 -0
- package/dist/components/modules/stepper/stepperItem.d.ts +17 -0
- package/dist/components/modules/stepper/stepperNumber.d.ts +15 -0
- package/dist/components/modules/stepper/stepperTitle.d.ts +20 -0
- package/dist/components/modules/tabList/index.d.ts +3 -0
- package/dist/components/modules/tabList/tab.d.ts +21 -0
- package/dist/components/modules/tabList/tabIconContainer.d.ts +15 -0
- package/dist/components/modules/tabList/tabList.d.ts +15 -0
- package/dist/components/modules/tabList/tabList.stories.d.ts +7 -0
- package/dist/components/modules/toast/index.d.ts +5 -0
- package/dist/components/modules/toast/simpleToast.d.ts +36 -0
- package/dist/components/modules/toast/simpleToast.stories.d.ts +9 -0
- package/dist/components/modules/toast/toast.d.ts +74 -0
- package/dist/components/modules/toast/toast.stories.d.ts +10 -0
- package/dist/components/modules/toast/toastBody.d.ts +16 -0
- package/dist/components/modules/toast/toastMessage.d.ts +15 -0
- package/dist/components/modules/toast/toastSupplement.d.ts +15 -0
- package/dist/components/modules/toast/toastViewport.d.ts +8 -0
- package/dist/components/tests/samples/dialog.stories.d.ts +7 -0
- package/dist/components/tests/samples/forms.stories.d.ts +6 -0
- package/dist/components/tests/samples/playableDeckList.stories.d.ts +6 -0
- package/dist/components/tests/samples/quizList.stories.d.ts +6 -0
- package/dist/components/utils/modalBase/index.d.ts +1 -0
- package/dist/components/utils/modalBase/modalBase.d.ts +14 -0
- package/dist/components/utils/storyContainer/index.d.ts +1 -0
- package/dist/components/utils/storyContainer/storyContainer.d.ts +12 -0
- package/dist/contexts/dialog/context.d.ts +13 -0
- package/dist/contexts/dialog/hook.d.ts +3 -0
- package/dist/contexts/footenoteList/context.d.ts +7 -0
- package/dist/contexts/index.d.ts +3 -0
- package/dist/contexts/pageProps/context.d.ts +9 -0
- package/dist/contexts/radioGroup/context.d.ts +9 -0
- package/dist/contexts/radioGroup/hook.d.ts +4 -0
- package/dist/contexts/root/context.d.ts +9 -0
- package/dist/contexts/toast/context.d.ts +12 -0
- package/dist/contexts/toast/hook.d.ts +3 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2566 -0
- package/dist/index.js.map +1 -0
- package/dist/messages/index.d.ts +4 -0
- package/dist/modules/color.d.ts +19 -0
- package/dist/modules/data.d.ts +12 -0
- package/dist/modules/genre.d.ts +3 -0
- package/dist/modules/message.d.ts +7 -0
- package/dist/modules/responsive.d.ts +17 -0
- package/dist/modules/subject.d.ts +21 -0
- package/dist/modules/translation.d.ts +53 -0
- package/dist/stories/atoms/asyncSelect/asyncSelect.stories.d.ts +6 -0
- package/dist/stories/atoms/avatar/avatar.stories.d.ts +7 -0
- package/dist/stories/atoms/badge/badge.stories.d.ts +11 -0
- package/dist/stories/atoms/barMeter/barMeter.stories.d.ts +10 -0
- package/dist/stories/atoms/barMeter/barMeterValue.stories.d.ts +7 -0
- package/dist/stories/atoms/barProgress/barProgress.stories.d.ts +8 -0
- package/dist/stories/atoms/button/button.stories.d.ts +17 -0
- package/dist/stories/atoms/buttonLink/buttonLink.stories.d.ts +13 -0
- package/dist/stories/atoms/checkableContainer/checkableContainer.stories.d.ts +9 -0
- package/dist/stories/atoms/checkableContainer/checkableLabel.stories.d.ts +7 -0
- package/dist/stories/atoms/checkbox/checkbox.stories.d.ts +15 -0
- package/dist/stories/atoms/controlContainer/controlContainer.stories.d.ts +13 -0
- package/dist/stories/atoms/controlContainer/controlErrorMessage.stories.d.ts +7 -0
- package/dist/stories/atoms/controlContainer/controlHelper.stories.d.ts +7 -0
- package/dist/stories/atoms/controlContainer/controlLabel.stories.d.ts +7 -0
- package/dist/stories/atoms/divider/divider.stories.d.ts +8 -0
- package/dist/stories/atoms/fileInput/fileInput.stories.d.ts +10 -0
- package/dist/stories/atoms/generalIcon/generalIcon.stories.d.ts +7 -0
- package/dist/stories/atoms/heading/heading.stories.d.ts +7 -0
- package/dist/stories/atoms/iconButton/iconButton.stories.d.ts +11 -0
- package/dist/stories/atoms/input/input.stories.d.ts +21 -0
- package/dist/stories/atoms/link/link.stories.d.ts +9 -0
- package/dist/stories/atoms/loadingIcon/loadingIcon.stories.d.ts +7 -0
- package/dist/stories/atoms/modal/modal.stories.d.ts +7 -0
- package/dist/stories/atoms/multiLineText/multiLineText.stories.d.ts +9 -0
- package/dist/stories/atoms/numberInput/numberInput.stories.d.ts +10 -0
- package/dist/stories/atoms/passwordInput/passwordInput.stories.d.ts +13 -0
- package/dist/stories/atoms/radio/radio.stories.d.ts +13 -0
- package/dist/stories/atoms/radioGroup/radioGroup.stories.d.ts +8 -0
- package/dist/stories/atoms/root/root.stories.d.ts +7 -0
- package/dist/stories/atoms/scroll/scroll.stories.d.ts +8 -0
- package/dist/stories/atoms/secondaryHeading/secondaryHeading.stories.d.ts +7 -0
- package/dist/stories/atoms/select/pageSizeSelect.stories.d.ts +7 -0
- package/dist/stories/atoms/select/select.stories.d.ts +13 -0
- package/dist/stories/atoms/select/selectOption.stories.d.ts +7 -0
- package/dist/stories/atoms/select/sortOrderSelect.stories.d.ts +8 -0
- package/dist/stories/atoms/singleLineText/singleLineText.stories.d.ts +8 -0
- package/dist/stories/atoms/switch/switch.stories.d.ts +13 -0
- package/dist/stories/atoms/tag/tag.stories.d.ts +8 -0
- package/dist/stories/atoms/tagList/tagList.stories.d.ts +8 -0
- package/dist/stories/atoms/textButton/textButton.stories.d.ts +8 -0
- package/dist/stories/atoms/textarea/textarea.stories.d.ts +11 -0
- package/dist/stories/atoms/visuallyHidden/visuallyHidden.stories.d.ts +7 -0
- package/dist/stories/modules/bulkOperationContainer/bulkOperationButton.stories.d.ts +8 -0
- package/dist/stories/modules/card/card.stories.d.ts +17 -0
- package/dist/stories/modules/card/cardBody.stories.d.ts +7 -0
- package/dist/stories/modules/card/cardButton.stories.d.ts +7 -0
- package/dist/stories/modules/card/cardButtonList.stories.d.ts +7 -0
- package/dist/stories/modules/card/cardControlContainer.stories.d.ts +7 -0
- package/dist/stories/modules/card/cardHeadnote.stories.d.ts +7 -0
- package/dist/stories/modules/card/cardTitle.stories.d.ts +7 -0
- package/dist/stories/modules/cardList/cardList.stories.d.ts +7 -0
- package/dist/stories/modules/cardList/cardListBody.stories.d.ts +7 -0
- package/dist/stories/modules/cardList/cardListEmpty.stories.d.ts +7 -0
- package/dist/stories/modules/cardList/cardListFooter.stories.d.ts +7 -0
- package/dist/stories/modules/cardList/cardListHeader.stories.d.ts +7 -0
- package/dist/stories/modules/cardList/cardListHeaderLeft.stories.d.ts +7 -0
- package/dist/stories/modules/cardList/cardListHeaderRight.stories.d.ts +7 -0
- package/dist/stories/modules/cardList/cardListLoading.stories.d.ts +7 -0
- package/dist/stories/modules/contentHeader/contentHeader.stories.d.ts +8 -0
- package/dist/stories/modules/countIndicator/countIndicator.stories.d.ts +14 -0
- package/dist/stories/modules/dialog/dialog.stories.d.ts +16 -0
- package/dist/stories/modules/dialog/dialogBody.stories.d.ts +7 -0
- package/dist/stories/modules/dialog/dialogButton.stories.d.ts +8 -0
- package/dist/stories/modules/dialog/dialogCloseButton.stories.d.ts +7 -0
- package/dist/stories/modules/dialog/dialogFooter.stories.d.ts +7 -0
- package/dist/stories/modules/dialog/dialogHeader.stories.d.ts +7 -0
- package/dist/stories/modules/dialog/dialogTitle.stories.d.ts +7 -0
- package/dist/stories/modules/drawer/drawer.stories.d.ts +13 -0
- package/dist/stories/modules/drawer/drawerBody.stories.d.ts +7 -0
- package/dist/stories/modules/drawer/drawerButton.stories.d.ts +7 -0
- package/dist/stories/modules/drawer/drawerCaption.stories.d.ts +7 -0
- package/dist/stories/modules/drawer/drawerFooter.stories.d.ts +7 -0
- package/dist/stories/modules/drawer/drawerHeader.stories.d.ts +7 -0
- package/dist/stories/modules/drawer/drawerTitle.stories.d.ts +7 -0
- package/dist/stories/modules/footnote/footnote.stories.d.ts +9 -0
- package/dist/stories/modules/footnoteList/footnoteList.stories.d.ts +9 -0
- package/dist/stories/modules/footnoteList/footnoteListRow.stories.d.ts +7 -0
- package/dist/stories/modules/fractionView/fractionView.stories.d.ts +8 -0
- package/dist/stories/modules/header/header.stories.d.ts +7 -0
- package/dist/stories/modules/menu/menu.stories.d.ts +9 -0
- package/dist/stories/modules/menu/menuItem.stories.d.ts +7 -0
- package/dist/stories/modules/pagination/pagination.stories.d.ts +7 -0
- package/dist/stories/modules/rankView/rankView.stories.d.ts +13 -0
- package/dist/stories/modules/stepper/stepper.stories.d.ts +8 -0
- package/dist/stories/modules/tabList/tabList.stories.d.ts +7 -0
- package/dist/stories/modules/toast/simpleToast.stories.d.ts +9 -0
- package/dist/stories/modules/toast/toast.stories.d.ts +11 -0
- package/dist/stories/tests/samples/dialog.stories.d.ts +7 -0
- package/dist/stories/tests/samples/forms.stories.d.ts +6 -0
- package/dist/utils/children.d.ts +2 -0
- package/dist/utils/color.d.ts +5 -0
- package/dist/utils/debug.d.ts +1 -0
- package/dist/utils/event.d.ts +2 -0
- package/dist/utils/node.d.ts +4 -0
- package/dist/utils/translation.d.ts +2 -0
- package/dist/utils/types.d.ts +9 -0
- package/package.json +123 -0
- package/tsconfig.json +33 -0
- package/typedoc.json +26 -0
- package/webpack.config.ts +55 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { AriaAttributes, ReactNode } from "react";
|
|
2
|
+
import { KeyboardEvent, MouseEvent } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* ### ボタン
|
|
5
|
+
* @group React コンポーネント
|
|
6
|
+
* @category React コンポーネント
|
|
7
|
+
*/
|
|
8
|
+
export declare const Button: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
9
|
+
className?: string | undefined;
|
|
10
|
+
id?: string | undefined;
|
|
11
|
+
style?: import("react").CSSProperties | undefined;
|
|
12
|
+
} & AriaAttributes & {
|
|
13
|
+
/**
|
|
14
|
+
* カラースキーム。
|
|
15
|
+
* @defaultValue `"primary"`
|
|
16
|
+
*/
|
|
17
|
+
scheme?: "primary" | "secondary" | "blue" | "red" | "green" | "pink" | "yellow" | "purple" | "orange" | "gray" | "gold" | "silver" | "bronze" | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* 見た目のバリアント。
|
|
20
|
+
* - `"solid"` — ボタン状, ボタンの背景が濃い
|
|
21
|
+
* - `"light"` — ボタン状, ボタンの背景が薄い
|
|
22
|
+
* - `"underline"` — テキスト状, ホバー時に下線が付く
|
|
23
|
+
* - `"simple"` — テキスト状, ホバー時でも下線は付かない
|
|
24
|
+
* - `"unstyledUnderline"` — スタイルなし, ホバー時に下線が付く
|
|
25
|
+
* - `"unstyledSimple"` — スタイルなし, ホバー時でも下線は付かない
|
|
26
|
+
* @defaultValue `"solid"`
|
|
27
|
+
*/
|
|
28
|
+
variant?: "solid" | "light" | "underline" | "simple" | "unstyledUnderline" | "unstyledSimple" | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* 全体のサイズ。
|
|
31
|
+
*
|
|
32
|
+
* `variant` の値が `"solid"` か `"light"` の場合にのみ効果があります。
|
|
33
|
+
* @defaultValue `"medium"`
|
|
34
|
+
*/
|
|
35
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* 内部の余白を少なくし、全体を少し小さめに表示するかどうか。
|
|
38
|
+
* 基本的には `false` (デフォルト値) で使うことを推奨しますが、フォームの一部として使う場合など、省スペースで表示したいときには `true` にしてください。
|
|
39
|
+
*
|
|
40
|
+
* `variant` の値が `"solid"` か `"light"` の場合にのみ効果があります。
|
|
41
|
+
* @defaultValue `false`
|
|
42
|
+
*/
|
|
43
|
+
isCompact?: boolean | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* ボタンの種類。
|
|
46
|
+
* HTML と違ってデフォルト値が `"button"` になっているので、フォームの送信ボタンとして使う場合は明示的に `"submit"` を指定してください。
|
|
47
|
+
* @defaultValue `"button"`
|
|
48
|
+
*/
|
|
49
|
+
type?: "button" | "reset" | "submit" | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* 無効にするかどうか。
|
|
52
|
+
* @defaultValue `false`
|
|
53
|
+
*/
|
|
54
|
+
isDisabled?: boolean | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* ローディング中かどうか。
|
|
57
|
+
* これが `true` の間は、ボタンがローディング表示され無効になります。
|
|
58
|
+
* @defaultValue `false`
|
|
59
|
+
*/
|
|
60
|
+
isLoading?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* クリックされたりショートカットキーが押されたりしたときに実行する関数。
|
|
63
|
+
*/
|
|
64
|
+
onClick?: ((event: MouseEvent<HTMLButtonElement>) => unknown) | undefined;
|
|
65
|
+
/** */
|
|
66
|
+
onKeyDown?: ((event: KeyboardEvent<HTMLButtonElement>) => unknown) | undefined;
|
|
67
|
+
/** */
|
|
68
|
+
onKeyUp?: ((event: KeyboardEvent<HTMLButtonElement>) => unknown) | undefined;
|
|
69
|
+
/** */
|
|
70
|
+
onMouseDown?: ((event: MouseEvent<HTMLButtonElement>) => unknown) | undefined;
|
|
71
|
+
/** */
|
|
72
|
+
onPointerDown?: ((event: MouseEvent<HTMLButtonElement>) => unknown) | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* ボタンの内部に表示する内容。
|
|
75
|
+
*/
|
|
76
|
+
children?: ReactNode;
|
|
77
|
+
/** */
|
|
78
|
+
className?: string | undefined;
|
|
79
|
+
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { Button } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof Button>;
|
|
4
|
+
type Story = RawStory<typeof Button>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const Solid: Story;
|
|
7
|
+
export declare const Light: Story;
|
|
8
|
+
export declare const SizeSmall: Story;
|
|
9
|
+
export declare const SizeLarge: Story;
|
|
10
|
+
export declare const Compact: Story;
|
|
11
|
+
export declare const WithIcon: Story;
|
|
12
|
+
export declare const Loading: Story;
|
|
13
|
+
export default meta;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* ### ボタン内のアイコン
|
|
4
|
+
* @group React コンポーネント
|
|
5
|
+
* @category React コンポーネント
|
|
6
|
+
*/
|
|
7
|
+
export declare const ButtonIconContainer: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
8
|
+
className?: string | undefined;
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
style?: import("react").CSSProperties | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
/** */
|
|
13
|
+
children?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
14
|
+
/** */
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
} & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { AriaAttributes, HTMLAttributeAnchorTarget, ReactNode } from "react";
|
|
2
|
+
import { KeyboardEvent, MouseEvent } from "react";
|
|
3
|
+
/**
|
|
4
|
+
* ### ボタンリンク
|
|
5
|
+
*
|
|
6
|
+
* #### Next.js での注意
|
|
7
|
+
* Next.js を使っている場合は、以下のように `next/link` パッケージが提供するコンポーネントで囲み、`passHref` 属性に `true` を設定してください。
|
|
8
|
+
* Next.js 13 以降では、さらに `legacyBehavior` 属性に `true` を設定する必要があります。
|
|
9
|
+
* 詳細は [Next.js のドキュメント](https://nextjs-ja-translation-docs.vercel.app/docs/api-reference/next/link)も参照してください。
|
|
10
|
+
*
|
|
11
|
+
* ```tsx
|
|
12
|
+
* import NextLink from "next/link";
|
|
13
|
+
*
|
|
14
|
+
* <NextLink href="(リンク先)" passHref={true} legacyBehavior={true}>
|
|
15
|
+
* <ButtonLink>リンク</ButtonLink>
|
|
16
|
+
* </NextLink>
|
|
17
|
+
* ```
|
|
18
|
+
* @group React コンポーネント
|
|
19
|
+
* @category React コンポーネント
|
|
20
|
+
*/
|
|
21
|
+
export declare const ButtonLink: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
22
|
+
className?: string | undefined;
|
|
23
|
+
id?: string | undefined;
|
|
24
|
+
style?: import("react").CSSProperties | undefined;
|
|
25
|
+
} & AriaAttributes & {
|
|
26
|
+
/**
|
|
27
|
+
* リンク先の URL。
|
|
28
|
+
*/
|
|
29
|
+
href?: string | undefined;
|
|
30
|
+
/** */
|
|
31
|
+
target?: HTMLAttributeAnchorTarget | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* カラースキーム。
|
|
34
|
+
* @defaultValue `"primary"`
|
|
35
|
+
*/
|
|
36
|
+
colorScheme?: "primary" | "secondary" | "blue" | "red" | "green" | "pink" | "yellow" | "purple" | "orange" | "gray" | "gold" | "silver" | "bronze" | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* 見た目のバリアント。
|
|
39
|
+
* - `"solid"` — ボタンの背景が濃い
|
|
40
|
+
* - `"outline"` — ボタンの背景が薄い上に罫線が付く
|
|
41
|
+
* @defaultValue `"solid"`
|
|
42
|
+
*/
|
|
43
|
+
variant?: "outline" | "solid" | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* 全体のサイズ。
|
|
46
|
+
* @defaultValue `"medium"`
|
|
47
|
+
*/
|
|
48
|
+
size?: "small" | "medium" | "large" | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* 内部の余白を少なくし、全体を少し小さめに表示するかどうか。
|
|
51
|
+
* 基本的には `false` (デフォルト値) で使うことを推奨しますが、フォームの一部として使う場合など、省スペースで表示したいときには `true` にしてください。
|
|
52
|
+
* @defaultValue `false`
|
|
53
|
+
*/
|
|
54
|
+
isCompact?: boolean | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* 無効にするかどうか。
|
|
57
|
+
* これが `true` のときは、`<a>` 要素の代わりに `<span>` 要素として描画されます。
|
|
58
|
+
* @defaultValue `false`
|
|
59
|
+
*/
|
|
60
|
+
isDisabled?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* ローディング中かどうか。
|
|
63
|
+
* これが `true` の間は、ボタンがローディング表示され無効になります。
|
|
64
|
+
* @defaultValue `false`
|
|
65
|
+
*/
|
|
66
|
+
isLoading?: boolean | undefined;
|
|
67
|
+
/** */
|
|
68
|
+
onClick?: ((event: MouseEvent<HTMLAnchorElement>) => unknown) | undefined;
|
|
69
|
+
/** */
|
|
70
|
+
onKeyDown?: ((event: KeyboardEvent<HTMLAnchorElement>) => unknown) | undefined;
|
|
71
|
+
/** */
|
|
72
|
+
onKeyUp?: ((event: KeyboardEvent<HTMLAnchorElement>) => unknown) | undefined;
|
|
73
|
+
/** */
|
|
74
|
+
onMouseDown?: ((event: MouseEvent<HTMLAnchorElement>) => unknown) | undefined;
|
|
75
|
+
/** */
|
|
76
|
+
onPointerDown?: ((event: MouseEvent<HTMLAnchorElement>) => unknown) | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* ボタンの内部に表示する内容。
|
|
79
|
+
*/
|
|
80
|
+
children?: ReactNode;
|
|
81
|
+
/** */
|
|
82
|
+
className?: string | undefined;
|
|
83
|
+
} & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { ButtonLink } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof ButtonLink>;
|
|
4
|
+
type Story = RawStory<typeof ButtonLink>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const Solid: Story;
|
|
7
|
+
export declare const Light: Story;
|
|
8
|
+
export declare const SizeSmall: Story;
|
|
9
|
+
export declare const SizeLarge: Story;
|
|
10
|
+
export declare const Compact: Story;
|
|
11
|
+
export declare const WithIcon: Story;
|
|
12
|
+
export declare const Loading: Story;
|
|
13
|
+
export default meta;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* ### ボタンリンク内のアイコン
|
|
4
|
+
* @group React コンポーネント
|
|
5
|
+
* @category React コンポーネント
|
|
6
|
+
*/
|
|
7
|
+
export declare const ButtonLinkIconContainer: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
8
|
+
className?: string | undefined; /** */
|
|
9
|
+
id?: string | undefined;
|
|
10
|
+
style?: import("react").CSSProperties | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
/** */
|
|
13
|
+
children?: ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
14
|
+
/** */
|
|
15
|
+
className?: string | undefined;
|
|
16
|
+
} & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* ### チェック系コントロールにラベルを付けるためのコンテナ
|
|
4
|
+
*
|
|
5
|
+
* #### 構成
|
|
6
|
+
* 以下のようなコンポーネント構成で利用してください。
|
|
7
|
+
* - **`CheckableContainer`**
|
|
8
|
+
* - コントロール (必須)
|
|
9
|
+
* - [`CheckableLabel`](/docs/atoms-CheckableContainer-CheckableLabel--ドキュメント) (必須)
|
|
10
|
+
*
|
|
11
|
+
* 子要素に置くコントロールとしては、[`Checkbox`](/docs/atoms-Checkbox-Checkbox--ドキュメント), [`Radio`](/docs/atoms-Radio-Radio--ドキュメント), [`Switch`](/docs/atoms-Switch-Switch--ドキュメント) が適切です。
|
|
12
|
+
*
|
|
13
|
+
* #### 例
|
|
14
|
+
* 以下はチェックボックスにラベルを付けた例です。
|
|
15
|
+
*
|
|
16
|
+
* ```tsx
|
|
17
|
+
* <CheckableContainer>
|
|
18
|
+
* <Checkbox/>
|
|
19
|
+
* <CheckableLabel>ラベル</CheckableLabel>
|
|
20
|
+
* </CheckableContainer>
|
|
21
|
+
* ```
|
|
22
|
+
* @group React コンポーネント
|
|
23
|
+
* @category React コンポーネント
|
|
24
|
+
*/
|
|
25
|
+
export declare const CheckableContainer: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
26
|
+
className?: string | undefined;
|
|
27
|
+
id?: string | undefined;
|
|
28
|
+
style?: import("react").CSSProperties | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
/**
|
|
31
|
+
* 表示する内容。
|
|
32
|
+
* コントロールと `CheckableLabel` を 1 つずつ置いてください。
|
|
33
|
+
*/
|
|
34
|
+
children: ReactNode;
|
|
35
|
+
/** */
|
|
36
|
+
className?: string | undefined;
|
|
37
|
+
} & import("react").RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { CheckableContainer } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof CheckableContainer>;
|
|
4
|
+
type Story = RawStory<typeof CheckableContainer>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const WithCheckbox: Story;
|
|
7
|
+
export declare const WithRadio: Story;
|
|
8
|
+
export declare const WithSwitch: Story;
|
|
9
|
+
export default meta;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* ### チェック系コントロール用のラベル
|
|
4
|
+
*
|
|
5
|
+
* #### 内部使用のみ
|
|
6
|
+
* このコンポーネントは [`CheckableContainer`](/docs/atoms-CheckableContainer-CheckableContainer--ドキュメント) の子要素に配置することを想定しているため、単独では使わないでください。
|
|
7
|
+
* 詳細は [`CheckableContainer`](/docs/atoms-CheckableContainer-CheckableContainer--ドキュメント) のドキュメントを参照してください。
|
|
8
|
+
* @group React コンポーネント
|
|
9
|
+
* @category React コンポーネント
|
|
10
|
+
*/
|
|
11
|
+
export declare const CheckableLabel: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
12
|
+
className?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* ### チェック系コントロール用のラベル
|
|
15
|
+
*
|
|
16
|
+
* #### 内部使用のみ
|
|
17
|
+
* このコンポーネントは [`CheckableContainer`](/docs/atoms-CheckableContainer-CheckableContainer--ドキュメント) の子要素に配置することを想定しているため、単独では使わないでください。
|
|
18
|
+
* 詳細は [`CheckableContainer`](/docs/atoms-CheckableContainer-CheckableContainer--ドキュメント) のドキュメントを参照してください。
|
|
19
|
+
* @group React コンポーネント
|
|
20
|
+
* @category React コンポーネント
|
|
21
|
+
*/
|
|
22
|
+
id?: string | undefined;
|
|
23
|
+
style?: import("react").CSSProperties | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
/** */
|
|
26
|
+
children: ReactNode;
|
|
27
|
+
/** */
|
|
28
|
+
className?: string | undefined;
|
|
29
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { CheckableLabel } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof CheckableLabel>;
|
|
4
|
+
type Story = RawStory<typeof CheckableLabel>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { AriaAttributes, ChangeEvent } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* ### チェックボックス
|
|
4
|
+
*
|
|
5
|
+
* #### 注意
|
|
6
|
+
* このコンポーネントはチェックボックスのみを表示します。
|
|
7
|
+
* 一緒にラベルを表示したい場合は、[`CheckableContainer`](/docs/atoms-CheckableContainer-CheckableContainer--ドキュメント) と [`CheckableLabel`](/docs/atoms-CheckableContainer-CheckableLabel--ドキュメント) を利用して、以下のようにしてください。
|
|
8
|
+
*
|
|
9
|
+
* ```tsx
|
|
10
|
+
* <CheckableContainer>
|
|
11
|
+
* <Checkbox/>
|
|
12
|
+
* <CheckableLabel>ラベル</CheckableLabel>
|
|
13
|
+
* </CheckableContainer>
|
|
14
|
+
* ```
|
|
15
|
+
* @group React コンポーネント
|
|
16
|
+
* @category React コンポーネント
|
|
17
|
+
*/
|
|
18
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
id?: string | undefined;
|
|
21
|
+
style?: import("react").CSSProperties | undefined;
|
|
22
|
+
} & AriaAttributes & {
|
|
23
|
+
/**
|
|
24
|
+
* チェック状態。
|
|
25
|
+
* `"indeterminate"` は不定の状態を表します。
|
|
26
|
+
*/
|
|
27
|
+
isChecked?: boolean | "indeterminate" | undefined;
|
|
28
|
+
/** */
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
/** */
|
|
31
|
+
value?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* バリデーションエラーがあるかどうか。
|
|
34
|
+
* これが `true` のときは警告表示になります。
|
|
35
|
+
* @defaultValue `false`
|
|
36
|
+
*/
|
|
37
|
+
isError?: boolean | undefined;
|
|
38
|
+
/** */
|
|
39
|
+
isRequired?: boolean | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* 無効にするかどうか。
|
|
42
|
+
* @defaultValue `false`
|
|
43
|
+
*/
|
|
44
|
+
isDisabled?: boolean | undefined;
|
|
45
|
+
/** */
|
|
46
|
+
onSet?: ((isChecked: true | false) => void) | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* `<input>` 要素の `change` イベントのリスナー。
|
|
49
|
+
* チェック状態を取得したいだけの場合は、`onSet` prop を利用する方が便利です。
|
|
50
|
+
*/
|
|
51
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>) => unknown) | undefined;
|
|
52
|
+
/** */
|
|
53
|
+
onBlur?: ((event: ChangeEvent<HTMLInputElement>) => unknown) | undefined;
|
|
54
|
+
/** */
|
|
55
|
+
className?: string | undefined;
|
|
56
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { Checkbox } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof Checkbox>;
|
|
4
|
+
type Story = RawStory<typeof Checkbox>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const Unchecked: Story;
|
|
7
|
+
export declare const Checked: Story;
|
|
8
|
+
export declare const Indeterminate: Story;
|
|
9
|
+
export declare const ErrorUnchecked: Story;
|
|
10
|
+
export declare const ErrorChecked: Story;
|
|
11
|
+
export declare const ErrorIndeterminate: Story;
|
|
12
|
+
export declare const TestUncontrolled: Story;
|
|
13
|
+
export declare const TestControlled: Story;
|
|
14
|
+
export declare const TestHook: Story;
|
|
15
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./checkbox";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* ### コントロールにラベルなどを付けるためのコンテナ
|
|
4
|
+
*
|
|
5
|
+
* #### 構成
|
|
6
|
+
* 以下のようなコンポーネント構成で利用してください。
|
|
7
|
+
* - **`ControlContainer`**
|
|
8
|
+
* - [`ControlLabel`](/docs/atoms-ControlContainer-ControlLabel--ドキュメント) (必須)
|
|
9
|
+
* - [`ControlHelper`](/docs/atoms-ControlContainer-ControlHelper--ドキュメント) (任意)
|
|
10
|
+
* - コントロール (必須)
|
|
11
|
+
* - [`ControlErrorMessage`](/docs/atoms-ControlContainer-ControlErrorMessage--ドキュメント) (任意)
|
|
12
|
+
*
|
|
13
|
+
* #### 例
|
|
14
|
+
* 以下は全てを表示した例です。
|
|
15
|
+
* 実際には、`ControlErrorMessage` がバリデーションエラー時のみ表示されるようにするなどの処理を追加することになります。
|
|
16
|
+
*
|
|
17
|
+
* ```tsx
|
|
18
|
+
* <ControlContainer>
|
|
19
|
+
* <ControlLabel>テキスト欄</ControlLabel>
|
|
20
|
+
* <ControlHelper>
|
|
21
|
+
* コントロールの説明文をここに入れます。
|
|
22
|
+
* </ControlHelper>
|
|
23
|
+
* <Input/>
|
|
24
|
+
* <ControlErrorMessage>
|
|
25
|
+
* この欄は必須です。
|
|
26
|
+
* </ControlErrorMessage>
|
|
27
|
+
* </ControlContainer>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* コントロールとしてチェックボックスやラジオボタンを使いたい場合は、[`CheckableContainer`](/docs/atoms-CheckableContainer-CheckableContainer--ドキュメント) を用いることで、チェックボックスやラジオボタンの右にラベルを表示できます。
|
|
31
|
+
*
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <ControlContainer>
|
|
34
|
+
* <ControlLabel>利用規約の同意</ControlLabel>
|
|
35
|
+
* <ControlHelper>
|
|
36
|
+
* 会員登録をするには利用規約に同意する必要があります。
|
|
37
|
+
* </ControlHelper>
|
|
38
|
+
* <CheckableContainer>
|
|
39
|
+
* <Checkbox/>
|
|
40
|
+
* <CheckableLabel>同意する</CheckableLabel>
|
|
41
|
+
* </CheckableContainer>
|
|
42
|
+
* </ControlContainer>
|
|
43
|
+
* ```
|
|
44
|
+
* @group React コンポーネント
|
|
45
|
+
* @category React コンポーネント
|
|
46
|
+
*/
|
|
47
|
+
export declare const ControlContainer: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
48
|
+
className?: string | undefined;
|
|
49
|
+
id?: string | undefined;
|
|
50
|
+
style?: import("react").CSSProperties | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
/** */
|
|
53
|
+
children: ReactNode;
|
|
54
|
+
/** */
|
|
55
|
+
className?: string | undefined;
|
|
56
|
+
} & import("react").RefAttributes<HTMLLabelElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { ControlContainer } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof ControlContainer>;
|
|
4
|
+
type Story = RawStory<typeof ControlContainer>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const WithInput: Story;
|
|
7
|
+
export declare const WithInputAndHelper: Story;
|
|
8
|
+
export declare const WithInputAndHelperAndErrorMessage: Story;
|
|
9
|
+
export declare const WithRadio: Story;
|
|
10
|
+
export declare const WithRadioAndHelper: Story;
|
|
11
|
+
export declare const WithRadioAndHelperAndErrorMessage: Story;
|
|
12
|
+
export declare const TestForm: Story;
|
|
13
|
+
export default meta;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* ### コントロールに対するエラーメッセージ
|
|
4
|
+
*
|
|
5
|
+
* #### 内部使用のみ
|
|
6
|
+
* このコンポーネントは [`ControlContainer`](/docs/atoms-ControlContainer-ControlContainer--ドキュメント) の子要素に配置することを想定しているため、単独では使わないでください。
|
|
7
|
+
* 詳細は [`ControlContainer`](/docs/atoms-ControlContainer-ControlContainer--ドキュメント) のドキュメントを参照してください。
|
|
8
|
+
* @group React コンポーネント
|
|
9
|
+
* @category React コンポーネント
|
|
10
|
+
*/
|
|
11
|
+
export declare const ControlErrorMessage: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
12
|
+
className?: string | undefined;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
style?: import("react").CSSProperties | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
/** */
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
/** */
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
} & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { ControlErrorMessage } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof ControlErrorMessage>;
|
|
4
|
+
type Story = RawStory<typeof ControlErrorMessage>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* ### コントロールの説明文
|
|
4
|
+
*
|
|
5
|
+
* #### 内部使用のみ
|
|
6
|
+
* このコンポーネントは [`ControlContainer`](/docs/atoms-ControlContainer-ControlContainer--ドキュメント) の子要素に配置することを想定しているため、単独では使わないでください。
|
|
7
|
+
* 詳細は [`ControlContainer`](/docs/atoms-ControlContainer-ControlContainer--ドキュメント) のドキュメントを参照してください。
|
|
8
|
+
* @group React コンポーネント
|
|
9
|
+
* @category React コンポーネント
|
|
10
|
+
*/
|
|
11
|
+
export declare const ControlHelper: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
12
|
+
className?: string | undefined;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
style?: import("react").CSSProperties | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
/** */
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
/** */
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
} & import("react").RefAttributes<HTMLParagraphElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { ControlHelper } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof ControlHelper>;
|
|
4
|
+
type Story = RawStory<typeof ControlHelper>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* ### コントロールのラベル
|
|
4
|
+
*
|
|
5
|
+
* #### 内部使用のみ
|
|
6
|
+
* このコンポーネントは [`ControlContainer`](/docs/atoms-ControlContainer-ControlContainer--ドキュメント) の子要素に配置することを想定しているため、単独では使わないでください。
|
|
7
|
+
* 詳細は [`ControlContainer`](/docs/atoms-ControlContainer-ControlContainer--ドキュメント) のドキュメントを参照してください。
|
|
8
|
+
* @group React コンポーネント
|
|
9
|
+
* @category React コンポーネント
|
|
10
|
+
*/
|
|
11
|
+
export declare const ControlLabel: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
12
|
+
className?: string | undefined;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
style?: import("react").CSSProperties | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
/** */
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
/** */
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { ControlLabel } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof ControlLabel>;
|
|
4
|
+
type Story = RawStory<typeof ControlLabel>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const Basic: Story;
|
|
7
|
+
export default meta;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
/**
|
|
3
|
+
* @group React コンポーネント
|
|
4
|
+
* @category React コンポーネント
|
|
5
|
+
*/
|
|
6
|
+
export declare const Divider: import("react").ForwardRefExoticComponent<import("../../../modules/data").DataProps<string> & {
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
id?: string | undefined;
|
|
9
|
+
style?: import("react").CSSProperties | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
/** */
|
|
12
|
+
orientation: "horizontal" | "vertical";
|
|
13
|
+
/** */
|
|
14
|
+
className?: string | undefined;
|
|
15
|
+
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta as RawMeta, StoryObj as RawStory } from "@storybook/react";
|
|
2
|
+
import { Divider } from "../../../components";
|
|
3
|
+
type Meta = RawMeta<typeof Divider>;
|
|
4
|
+
type Story = RawStory<typeof Divider>;
|
|
5
|
+
declare const meta: Meta;
|
|
6
|
+
export declare const Vertical: Story;
|
|
7
|
+
export declare const Horizontal: Story;
|
|
8
|
+
export default meta;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./divider";
|