@aragon/gov-ui-kit 0.0.0-20250408144901
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/CHANGELOG.md +1129 -0
- package/LICENSE +674 -0
- package/README.md +54 -0
- package/build.css +5 -0
- package/dist/index.es.js +2 -0
- package/dist/index.es.js.map +1 -0
- package/dist/types/.storybook/components/docsPage/docsPage.d.ts +1 -0
- package/dist/types/.storybook/components/docsPage/index.d.ts +1 -0
- package/dist/types/.storybook/components/index.d.ts +2 -0
- package/dist/types/.storybook/components/styleBlock/index.d.ts +1 -0
- package/dist/types/.storybook/components/styleBlock/styleBlock.d.ts +15 -0
- package/dist/types/.storybook/main.d.ts +3 -0
- package/dist/types/.storybook/manager.d.ts +1 -0
- package/dist/types/.storybook/preview.d.ts +5 -0
- package/dist/types/.storybook/theme.d.ts +2 -0
- package/dist/types/src/core/assets/copy/coreCopy.d.ts +31 -0
- package/dist/types/src/core/assets/copy/index.d.ts +1 -0
- package/dist/types/src/core/assets/index.d.ts +1 -0
- package/dist/types/src/core/components/accordion/accordionContainer/accordionContainer.d.ts +22 -0
- package/dist/types/src/core/components/accordion/accordionContainer/index.d.ts +1 -0
- package/dist/types/src/core/components/accordion/accordionItem/accordionItem.d.ts +12 -0
- package/dist/types/src/core/components/accordion/accordionItem/index.d.ts +1 -0
- package/dist/types/src/core/components/accordion/accordionItemContent/accordionItemContent.d.ts +8 -0
- package/dist/types/src/core/components/accordion/accordionItemContent/index.d.ts +1 -0
- package/dist/types/src/core/components/accordion/accordionItemHeader/accordionItemHeader.d.ts +4 -0
- package/dist/types/src/core/components/accordion/accordionItemHeader/index.d.ts +1 -0
- package/dist/types/src/core/components/accordion/index.d.ts +10 -0
- package/dist/types/src/core/components/alerts/alertCard/alertCard.d.ts +15 -0
- package/dist/types/src/core/components/alerts/alertCard/index.d.ts +1 -0
- package/dist/types/src/core/components/alerts/alertInline/alertInline.d.ts +15 -0
- package/dist/types/src/core/components/alerts/alertInline/index.d.ts +1 -0
- package/dist/types/src/core/components/alerts/alertUtils.d.ts +3 -0
- package/dist/types/src/core/components/alerts/index.d.ts +3 -0
- package/dist/types/src/core/components/avatars/avatar/avatar.d.ts +20 -0
- package/dist/types/src/core/components/avatars/avatar/index.d.ts +1 -0
- package/dist/types/src/core/components/avatars/avatarBase/avatarBase.d.ts +4 -0
- package/dist/types/src/core/components/avatars/avatarBase/index.d.ts +1 -0
- package/dist/types/src/core/components/avatars/avatarIcon/avatarIcon.d.ts +31 -0
- package/dist/types/src/core/components/avatars/avatarIcon/index.d.ts +1 -0
- package/dist/types/src/core/components/avatars/index.d.ts +3 -0
- package/dist/types/src/core/components/breadcrumbs/breadcrumbs.d.ts +25 -0
- package/dist/types/src/core/components/breadcrumbs/index.d.ts +1 -0
- package/dist/types/src/core/components/button/button.api.d.ts +42 -0
- package/dist/types/src/core/components/button/button.d.ts +2 -0
- package/dist/types/src/core/components/button/index.d.ts +2 -0
- package/dist/types/src/core/components/cards/card/card.d.ts +4 -0
- package/dist/types/src/core/components/cards/card/index.d.ts +1 -0
- package/dist/types/src/core/components/cards/cardCollapsible/cardCollapsible.d.ts +8 -0
- package/dist/types/src/core/components/cards/cardCollapsible/index.d.ts +1 -0
- package/dist/types/src/core/components/cards/cardEmptyState/cardEmptyState.d.ts +2 -0
- package/dist/types/src/core/components/cards/cardEmptyState/index.d.ts +1 -0
- package/dist/types/src/core/components/cards/cardSummary/cardSummary.api.d.ts +39 -0
- package/dist/types/src/core/components/cards/cardSummary/cardSummary.d.ts +2 -0
- package/dist/types/src/core/components/cards/cardSummary/index.d.ts +2 -0
- package/dist/types/src/core/components/cards/index.d.ts +4 -0
- package/dist/types/src/core/components/collapsible/collapsible.api.d.ts +40 -0
- package/dist/types/src/core/components/collapsible/collapsible.d.ts +2 -0
- package/dist/types/src/core/components/collapsible/index.d.ts +2 -0
- package/dist/types/src/core/components/dataList/dataListContainer/dataListContainer.d.ts +28 -0
- package/dist/types/src/core/components/dataList/dataListContainer/dataListContainerSkeletonLoader.d.ts +3 -0
- package/dist/types/src/core/components/dataList/dataListContainer/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListContext/dataListContext.d.ts +22 -0
- package/dist/types/src/core/components/dataList/dataListContext/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListFilter/dataListFilter.d.ts +50 -0
- package/dist/types/src/core/components/dataList/dataListFilter/dataListFilterSort.d.ts +12 -0
- package/dist/types/src/core/components/dataList/dataListFilter/dataListFilterStatus.d.ts +7 -0
- package/dist/types/src/core/components/dataList/dataListFilter/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListItem/dataListItem.d.ts +3 -0
- package/dist/types/src/core/components/dataList/dataListItem/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListPagination/dataListPagination.d.ts +4 -0
- package/dist/types/src/core/components/dataList/dataListPagination/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListRoot/dataListRoot.d.ts +36 -0
- package/dist/types/src/core/components/dataList/dataListRoot/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListTestUtils.d.ts +6 -0
- package/dist/types/src/core/components/dataList/index.d.ts +12 -0
- package/dist/types/src/core/components/definitionList/definitionListContainer/definitionListContainer.d.ts +4 -0
- package/dist/types/src/core/components/definitionList/definitionListContainer/index.d.ts +1 -0
- package/dist/types/src/core/components/definitionList/definitionListItem/definitionListItem.d.ts +8 -0
- package/dist/types/src/core/components/definitionList/definitionListItem/index.d.ts +1 -0
- package/dist/types/src/core/components/definitionList/index.d.ts +6 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogContent/dialogContent.d.ts +14 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogContent/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogFooter/dialogFooter.d.ts +28 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogFooter/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogHeader/dialogHeader.d.ts +12 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogHeader/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/dialogRoot.api.d.ts +69 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/dialogRoot.d.ts +2 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/dialogRootHiddenElement.d.ts +11 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/index.d.ts +2 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogStoryComponent.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialog/index.d.ts +10 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContent/dialogAlertContent.d.ts +10 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContent/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContext/dialogAlertContext.d.ts +5 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContext/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertFooter/dialogAlertFooter.d.ts +19 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertFooter/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertHeader/dialogAlertHeader.d.ts +8 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertHeader/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRoot.api.d.ts +55 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRoot.d.ts +2 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRootHiddenElement.d.ts +11 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/index.d.ts +2 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertStoryComponent.d.ts +2 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/index.d.ts +10 -0
- package/dist/types/src/core/components/dialogs/dialogUtils.d.ts +29 -0
- package/dist/types/src/core/components/dialogs/index.d.ts +2 -0
- package/dist/types/src/core/components/documentParser/documentParser.d.ts +8 -0
- package/dist/types/src/core/components/documentParser/index.d.ts +1 -0
- package/dist/types/src/core/components/dropdown/dropdownContainer/dropdownContainer.d.ts +63 -0
- package/dist/types/src/core/components/dropdown/dropdownContainer/index.d.ts +1 -0
- package/dist/types/src/core/components/dropdown/dropdownItem/dropdownItem.d.ts +39 -0
- package/dist/types/src/core/components/dropdown/dropdownItem/index.d.ts +1 -0
- package/dist/types/src/core/components/dropdown/index.d.ts +6 -0
- package/dist/types/src/core/components/forms/checkbox/checkbox.d.ts +30 -0
- package/dist/types/src/core/components/forms/checkbox/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/checkboxCard/checkboxCard.d.ts +42 -0
- package/dist/types/src/core/components/forms/checkboxCard/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/checkboxGroup/checkboxGroup.d.ts +13 -0
- package/dist/types/src/core/components/forms/checkboxGroup/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/hooks/index.d.ts +2 -0
- package/dist/types/src/core/components/forms/hooks/useInputProps.d.ts +18 -0
- package/dist/types/src/core/components/forms/hooks/useNumberMask.d.ts +20 -0
- package/dist/types/src/core/components/forms/index.d.ts +18 -0
- package/dist/types/src/core/components/forms/inputContainer/index.d.ts +2 -0
- package/dist/types/src/core/components/forms/inputContainer/inputContainer.api.d.ts +78 -0
- package/dist/types/src/core/components/forms/inputContainer/inputContainer.d.ts +8 -0
- package/dist/types/src/core/components/forms/inputDate/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/inputDate/inputDate.d.ts +4 -0
- package/dist/types/src/core/components/forms/inputFileAvatar/index.d.ts +2 -0
- package/dist/types/src/core/components/forms/inputFileAvatar/inputFileAvatar.api.d.ts +62 -0
- package/dist/types/src/core/components/forms/inputFileAvatar/inputFileAvatar.d.ts +2 -0
- package/dist/types/src/core/components/forms/inputNumber/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/inputNumber/inputNumber.d.ts +33 -0
- package/dist/types/src/core/components/forms/inputNumberMax/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/inputNumberMax/inputNumberMax.d.ts +13 -0
- package/dist/types/src/core/components/forms/inputSearch/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/inputSearch/inputSearch.d.ts +8 -0
- package/dist/types/src/core/components/forms/inputText/index.d.ts +2 -0
- package/dist/types/src/core/components/forms/inputText/inputText.api.d.ts +12 -0
- package/dist/types/src/core/components/forms/inputText/inputText.d.ts +2 -0
- package/dist/types/src/core/components/forms/inputTime/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/inputTime/inputTime.d.ts +4 -0
- package/dist/types/src/core/components/forms/radio/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/radio/radio.d.ts +21 -0
- package/dist/types/src/core/components/forms/radioCard/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/radioCard/radioCard.d.ts +33 -0
- package/dist/types/src/core/components/forms/radioGroup/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/radioGroup/radioGroup.d.ts +33 -0
- package/dist/types/src/core/components/forms/switch/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/switch/switch.d.ts +39 -0
- package/dist/types/src/core/components/forms/textArea/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/textArea/textArea.d.ts +4 -0
- package/dist/types/src/core/components/forms/textAreaRichText/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/textAreaRichText/textAreaRichText.d.ts +24 -0
- package/dist/types/src/core/components/forms/textAreaRichText/textAreaRichTextActions.d.ts +31 -0
- package/dist/types/src/core/components/gukCoreProvider/gukCoreProvider.d.ts +30 -0
- package/dist/types/src/core/components/gukCoreProvider/index.d.ts +1 -0
- package/dist/types/src/core/components/heading/heading.d.ts +15 -0
- package/dist/types/src/core/components/heading/index.d.ts +1 -0
- package/dist/types/src/core/components/icon/icon.d.ts +20 -0
- package/dist/types/src/core/components/icon/iconList.d.ts +5 -0
- package/dist/types/src/core/components/icon/iconType.d.ts +65 -0
- package/dist/types/src/core/components/icon/index.d.ts +2 -0
- package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHuman.d.ts +35 -0
- package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHumanList.d.ts +9 -0
- package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHumanType.d.ts +5 -0
- package/dist/types/src/core/components/illustrations/illustrationHuman/index.d.ts +2 -0
- package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObject.d.ts +9 -0
- package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObjectList.d.ts +5 -0
- package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObjectType.d.ts +1 -0
- package/dist/types/src/core/components/illustrations/illustrationObject/index.d.ts +2 -0
- package/dist/types/src/core/components/illustrations/index.d.ts +2 -0
- package/dist/types/src/core/components/index.d.ts +26 -0
- package/dist/types/src/core/components/link/index.d.ts +2 -0
- package/dist/types/src/core/components/link/link/index.d.ts +2 -0
- package/dist/types/src/core/components/link/link/link.api.d.ts +26 -0
- package/dist/types/src/core/components/link/link/link.d.ts +3 -0
- package/dist/types/src/core/components/link/linkBase/index.d.ts +1 -0
- package/dist/types/src/core/components/link/linkBase/linkBase.d.ts +4 -0
- package/dist/types/src/core/components/progress/index.d.ts +2 -0
- package/dist/types/src/core/components/progress/progress.api.d.ts +28 -0
- package/dist/types/src/core/components/progress/progress.d.ts +2 -0
- package/dist/types/src/core/components/rerender/index.d.ts +1 -0
- package/dist/types/src/core/components/rerender/rerender.d.ts +20 -0
- package/dist/types/src/core/components/spinner/index.d.ts +1 -0
- package/dist/types/src/core/components/spinner/spinner.d.ts +29 -0
- package/dist/types/src/core/components/states/emptyState/emptyState.api.d.ts +50 -0
- package/dist/types/src/core/components/states/emptyState/emptyState.d.ts +2 -0
- package/dist/types/src/core/components/states/emptyState/index.d.ts +2 -0
- package/dist/types/src/core/components/states/index.d.ts +4 -0
- package/dist/types/src/core/components/states/statePingAnimation/index.d.ts +1 -0
- package/dist/types/src/core/components/states/statePingAnimation/statePingAnimation.d.ts +11 -0
- package/dist/types/src/core/components/states/stateSkeletonBar/index.d.ts +1 -0
- package/dist/types/src/core/components/states/stateSkeletonBar/stateSkeletonBar.d.ts +27 -0
- package/dist/types/src/core/components/states/stateSkeletonCircular/index.d.ts +1 -0
- package/dist/types/src/core/components/states/stateSkeletonCircular/stateSkeletonCircular.d.ts +15 -0
- package/dist/types/src/core/components/tabs/index.d.ts +10 -0
- package/dist/types/src/core/components/tabs/tabsContent/index.d.ts +1 -0
- package/dist/types/src/core/components/tabs/tabsContent/tabsContent.d.ts +12 -0
- package/dist/types/src/core/components/tabs/tabsList/index.d.ts +1 -0
- package/dist/types/src/core/components/tabs/tabsList/tabsList.d.ts +4 -0
- package/dist/types/src/core/components/tabs/tabsRoot/index.d.ts +1 -0
- package/dist/types/src/core/components/tabs/tabsRoot/tabsRoot.d.ts +28 -0
- package/dist/types/src/core/components/tabs/tabsTrigger/index.d.ts +1 -0
- package/dist/types/src/core/components/tabs/tabsTrigger/tabsTrigger.d.ts +17 -0
- package/dist/types/src/core/components/tag/index.d.ts +1 -0
- package/dist/types/src/core/components/tag/tag.d.ts +17 -0
- package/dist/types/src/core/components/toggles/index.d.ts +2 -0
- package/dist/types/src/core/components/toggles/toggle/index.d.ts +1 -0
- package/dist/types/src/core/components/toggles/toggle/toggle.d.ts +17 -0
- package/dist/types/src/core/components/toggles/toggleGroup/index.d.ts +1 -0
- package/dist/types/src/core/components/toggles/toggleGroup/toggleGroup.d.ts +27 -0
- package/dist/types/src/core/components/tooltip/index.d.ts +1 -0
- package/dist/types/src/core/components/tooltip/tooltip.d.ts +44 -0
- package/dist/types/src/core/hooks/index.d.ts +2 -0
- package/dist/types/src/core/hooks/useDebouncedValue/index.d.ts +1 -0
- package/dist/types/src/core/hooks/useDebouncedValue/useDebouncedValue.d.ts +18 -0
- package/dist/types/src/core/hooks/useRandomId/index.d.ts +1 -0
- package/dist/types/src/core/hooks/useRandomId/useRandomId.d.ts +1 -0
- package/dist/types/src/core/index.d.ts +5 -0
- package/dist/types/src/core/test/globalSetup.d.ts +2 -0
- package/dist/types/src/core/test/index.d.ts +1 -0
- package/dist/types/src/core/test/setup.d.ts +1 -0
- package/dist/types/src/core/test/utils/createRangeMock.d.ts +1 -0
- package/dist/types/src/core/test/utils/index.d.ts +2 -0
- package/dist/types/src/core/test/utils/testLogger.d.ts +11 -0
- package/dist/types/src/core/types/index.d.ts +1 -0
- package/dist/types/src/core/types/responsive.d.ts +33 -0
- package/dist/types/src/core/utils/clipboardUtils/clipboardUtils.d.ts +12 -0
- package/dist/types/src/core/utils/clipboardUtils/index.d.ts +1 -0
- package/dist/types/src/core/utils/formatterUtils/formatterUtils.d.ts +32 -0
- package/dist/types/src/core/utils/formatterUtils/formatterUtilsDefinitions.d.ts +82 -0
- package/dist/types/src/core/utils/formatterUtils/index.d.ts +2 -0
- package/dist/types/src/core/utils/index.d.ts +6 -0
- package/dist/types/src/core/utils/invariant/index.d.ts +1 -0
- package/dist/types/src/core/utils/invariant/invariant.d.ts +2 -0
- package/dist/types/src/core/utils/mergeRefs/index.d.ts +1 -0
- package/dist/types/src/core/utils/mergeRefs/mergeRefs.d.ts +5 -0
- package/dist/types/src/core/utils/responsiveUtils/index.d.ts +1 -0
- package/dist/types/src/core/utils/responsiveUtils/responsiveUtils.d.ts +6 -0
- package/dist/types/src/core/utils/ssrUtils/index.d.ts +1 -0
- package/dist/types/src/core/utils/ssrUtils/ssrUtils.d.ts +8 -0
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/modules/assets/copy/index.d.ts +1 -0
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +176 -0
- package/dist/types/src/modules/assets/index.d.ts +1 -0
- package/dist/types/src/modules/components/address/addressInput/addressInput.d.ts +29 -0
- package/dist/types/src/modules/components/address/addressInput/index.d.ts +1 -0
- package/dist/types/src/modules/components/address/index.d.ts +1 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemSkeleton/assetDataListItemSkeleton.d.ts +4 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemStructure/assetDataListItemStructure.d.ts +29 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/asset/assetTransfer/assetTransfer.d.ts +36 -0
- package/dist/types/src/modules/components/asset/assetTransfer/assetTransferAddress/assetTransferAddress.d.ts +17 -0
- package/dist/types/src/modules/components/asset/assetTransfer/assetTransferAddress/index.d.ts +1 -0
- package/dist/types/src/modules/components/asset/assetTransfer/index.d.ts +1 -0
- package/dist/types/src/modules/components/asset/index.d.ts +2 -0
- package/dist/types/src/modules/components/dao/daoAvatar/daoAvatar.d.ts +14 -0
- package/dist/types/src/modules/components/dao/daoAvatar/index.d.ts +1 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemSkeleton/daoDataListItemSkeleton.d.ts +4 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemStructure/daoDataListItemStructure.d.ts +33 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/dao/index.d.ts +2 -0
- package/dist/types/src/modules/components/gukModulesProvider/gukModulesProvider.d.ts +44 -0
- package/dist/types/src/modules/components/gukModulesProvider/index.d.ts +1 -0
- package/dist/types/src/modules/components/index.d.ts +9 -0
- package/dist/types/src/modules/components/member/index.d.ts +2 -0
- package/dist/types/src/modules/components/member/memberAvatar/index.d.ts +1 -0
- package/dist/types/src/modules/components/member/memberAvatar/memberAvatar.d.ts +18 -0
- package/dist/types/src/modules/components/member/memberDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemSkeleton/memberDataListItemSkeleton.d.ts +3 -0
- package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemStructure/memberDataListItemStructure.d.ts +36 -0
- package/dist/types/src/modules/components/proposal/index.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/index.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContainer/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContainer/proposalActionsContainer.d.ts +8 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContext/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContext/proposalActionsContext.d.ts +21 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/index.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoder.api.d.ts +36 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoder.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderField/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderField/proposalActionsDecoderField.d.ts +21 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderTextField/index.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderTextField/proposalActionsDecoderTextField.api.d.ts +30 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderTextField/proposalActionsDecoderTextField.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderTextField/proposalActionsDecoderTextFieldEdit.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderTextField/proposalActionsDecoderTextFieldWatch.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderUtils.d.ts +45 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDefinitions.d.ts +89 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsFooter/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsFooter/proposalActionsFooter.d.ts +8 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/index.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItem.api.d.ts +52 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItem.d.ts +8 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemBasicView.d.ts +8 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemUtils.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/index.d.ts +5 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeMembers/index.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeMembers/proposalActionChangeMembers.api.d.ts +18 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeMembers/proposalActionChangeMembers.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeMembers/proposalActionChangeMembers.testUtils.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/index.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.api.d.ts +23 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.testUtils.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionTokenMint/index.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionTokenMint/proposalActionTokenMint.api.d.ts +28 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionTokenMint/proposalActionTokenMint.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionTokenMint/proposalActionTokenMint.testUtils.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/index.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/proposalActionUpdateMetadata.api.d.ts +49 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/proposalActionUpdateMetadata.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/proposalActionUpdateMetadata.testUtils.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/index.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/proposalActionWithdrawToken.api.d.ts +52 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/proposalActionWithdrawToken.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/proposalActionWithdrawToken.testUtils.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsRoot/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsRoot/proposalActionsRoot.d.ts +19 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTestUtils.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemSkeleton/proposalDataListItemSkeleton.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStatus/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStatus/proposalDataListItemStatus.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/index.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/proposalDataListItemStructure.api.d.ts +48 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/proposalDataListItemStructure.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalUtils.d.ts +25 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/index.d.ts +28 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodyContent/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodyContent/proposalVotingBodyContent.d.ts +17 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummary/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummary/proposalVotingBodySummary.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryList/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryList/proposalVotingBodySummaryList.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryListItem/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryListItem/proposalVotingBodySummaryListItem.d.ts +13 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownMultisig/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownMultisig/proposalVotingBreakdownMultisig.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownToken/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownToken/proposalVotingBreakdownToken.d.ts +32 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContainer/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContainer/proposalVotingContainer.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDefinitions.d.ts +5 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDetails/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDetails/proposalVotingDetails.d.ts +18 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/index.d.ts +6 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/proposalVotingProgressContainer.d.ts +10 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/proposalVotingProgressItem.d.ts +31 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStage/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStage/proposalVotingStage.d.ts +33 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContext/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContext/proposalVotingStageContext.d.ts +17 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageStatus/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageStatus/proposalVotingStageStatus.d.ts +18 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/proposalVotingTabs.d.ts +15 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingVotes/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingVotes/proposalVotingVotes.d.ts +4 -0
- package/dist/types/src/modules/components/transaction/index.d.ts +1 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemSkeleton/transactionDataListItemSkeleton.d.ts +3 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/index.d.ts +2 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItemStructure.api.d.ts +48 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItemStructure.d.ts +2 -0
- package/dist/types/src/modules/components/vote/index.d.ts +3 -0
- package/dist/types/src/modules/components/vote/voteDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemSkeleton/voteDataListItemSkeleton.d.ts +3 -0
- package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemStructure/voteDataListItemStructure.d.ts +30 -0
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemSkeleton/voteProposalDataListItemSkeleton.d.ts +3 -0
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemStructure/voteProposalDataListItemStructure.d.ts +25 -0
- package/dist/types/src/modules/components/vote/voteUtils.d.ts +3 -0
- package/dist/types/src/modules/components/wallet/index.d.ts +1 -0
- package/dist/types/src/modules/components/wallet/wallet.d.ts +8 -0
- package/dist/types/src/modules/hooks/index.d.ts +2 -0
- package/dist/types/src/modules/hooks/useBlockExplorer/index.d.ts +2 -0
- package/dist/types/src/modules/hooks/useBlockExplorer/useBlockExplorer.api.d.ts +57 -0
- package/dist/types/src/modules/hooks/useBlockExplorer/useBlockExplorer.d.ts +2 -0
- package/dist/types/src/modules/hooks/useFormContext/index.d.ts +1 -0
- package/dist/types/src/modules/hooks/useFormContext/useFormContext.d.ts +3 -0
- package/dist/types/src/modules/index.d.ts +5 -0
- package/dist/types/src/modules/testUtils/generators/formContext.d.ts +2 -0
- package/dist/types/src/modules/testUtils/generators/index.d.ts +1 -0
- package/dist/types/src/modules/testUtils/index.d.ts +1 -0
- package/dist/types/src/modules/types/compositeAddress.d.ts +14 -0
- package/dist/types/src/modules/types/index.d.ts +2 -0
- package/dist/types/src/modules/types/web3ComponentConfig.d.ts +15 -0
- package/dist/types/src/modules/utils/addressUtils/addressUtils.d.ts +38 -0
- package/dist/types/src/modules/utils/addressUtils/index.d.ts +1 -0
- package/dist/types/src/modules/utils/ensUtils/ensUtils.d.ts +17 -0
- package/dist/types/src/modules/utils/ensUtils/index.d.ts +1 -0
- package/dist/types/src/modules/utils/index.d.ts +2 -0
- package/index.css +5 -0
- package/package.json +173 -0
- package/src/core/components/avatars/avatar/index.css +4 -0
- package/src/core/components/avatars/index.css +1 -0
- package/src/core/components/collapsible/index.css +4 -0
- package/src/core/components/dialogs/dialog/dialogRoot/index.css +7 -0
- package/src/core/components/dialogs/dialog/index.css +1 -0
- package/src/core/components/dialogs/dialogAlert/dialogAlertRoot/index.css +7 -0
- package/src/core/components/dialogs/dialogAlert/index.css +1 -0
- package/src/core/components/dialogs/index.css +2 -0
- package/src/core/components/dropdown/dropdownContainer/index.css +4 -0
- package/src/core/components/dropdown/index.css +1 -0
- package/src/core/components/forms/index.css +1 -0
- package/src/core/components/forms/textAreaRichText/index.css +4 -0
- package/src/core/components/illustrations/index.css +7 -0
- package/src/core/components/index.css +6 -0
- package/src/core/index.css +1 -0
- package/src/index.css +2 -0
- package/src/theme/fonts/Manrope-Regular.ttf +0 -0
- package/src/theme/fonts/Manrope-SemiBold.ttf +0 -0
- package/src/theme/index.css +1 -0
- package/src/theme/tokens/index.css +1 -0
- package/src/theme/tokens/primitives/borderRadius.css +9 -0
- package/src/theme/tokens/primitives/colors.css +73 -0
- package/src/theme/tokens/primitives/index.css +5 -0
- package/src/theme/tokens/primitives/shadows.css +52 -0
- package/src/theme/tokens/primitives/spacing.css +37 -0
- package/src/theme/tokens/primitives/typography.css +42 -0
- package/tailwind.config.js +376 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export type CheckboxState = boolean | 'indeterminate';
|
|
3
|
+
export interface ICheckboxProps extends ComponentProps<'button'> {
|
|
4
|
+
/**
|
|
5
|
+
* Label of the checkbox.
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
/**
|
|
9
|
+
* Position of the label.
|
|
10
|
+
* @default right
|
|
11
|
+
*/
|
|
12
|
+
labelPosition?: 'right' | 'left';
|
|
13
|
+
/**
|
|
14
|
+
* The checked state of the checkbox.
|
|
15
|
+
*/
|
|
16
|
+
checked?: CheckboxState;
|
|
17
|
+
/**
|
|
18
|
+
* Callback when the checked state changes.
|
|
19
|
+
*/
|
|
20
|
+
onCheckedChange?: (checked: CheckboxState) => void;
|
|
21
|
+
/**
|
|
22
|
+
* Indicates if the checkbox is disabled.
|
|
23
|
+
*/
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Id of the checkbox.
|
|
27
|
+
*/
|
|
28
|
+
id?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<ICheckboxProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Checkbox, type CheckboxState, type ICheckboxProps } from './checkbox';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
|
+
import { type ITagProps } from '../../tag';
|
|
3
|
+
import { type CheckboxState } from '../checkbox/checkbox';
|
|
4
|
+
export interface ICheckboxCardProps extends ComponentProps<'button'> {
|
|
5
|
+
/**
|
|
6
|
+
* Avatar of the checkbox card.
|
|
7
|
+
*/
|
|
8
|
+
avatar?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Label of the checkbox.
|
|
11
|
+
*/
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* Description of the checkbox.
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Optional tag for the checkbox.
|
|
19
|
+
*/
|
|
20
|
+
tag?: ITagProps;
|
|
21
|
+
/**
|
|
22
|
+
* The checked state of the checkbox.
|
|
23
|
+
*/
|
|
24
|
+
checked?: CheckboxState;
|
|
25
|
+
/**
|
|
26
|
+
* Callback when the checked state changes.
|
|
27
|
+
*/
|
|
28
|
+
onCheckedChange?: (checked: CheckboxState) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Indicates if the checkbox is disabled.
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Id of the checkbox.
|
|
35
|
+
*/
|
|
36
|
+
id?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Additional children to render when the checkbox is checked.
|
|
39
|
+
*/
|
|
40
|
+
children?: ReactNode;
|
|
41
|
+
}
|
|
42
|
+
export declare const CheckboxCard: import("react").ForwardRefExoticComponent<Omit<ICheckboxCardProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckboxCard, type ICheckboxCardProps } from './checkboxCard';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type IInputContainerBaseProps } from '../inputContainer';
|
|
3
|
+
export interface ICheckboxGroupProps extends Pick<IInputContainerBaseProps, 'alert' | 'label' | 'helpText' | 'isOptional'> {
|
|
4
|
+
/**
|
|
5
|
+
* Additional classes for the component.
|
|
6
|
+
*/
|
|
7
|
+
className?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Children of the component.
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare const CheckboxGroup: React.FC<ICheckboxGroupProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { CheckboxGroup, type ICheckboxGroupProps } from './checkboxGroup';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type InputHTMLAttributes } from 'react';
|
|
2
|
+
import type { IInputComponentProps, IInputContainerProps, InputComponentElement } from '../inputContainer';
|
|
3
|
+
export interface IUseInputPropsResult<TElement extends InputComponentElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Properties for the InputContainer component.
|
|
6
|
+
*/
|
|
7
|
+
containerProps: IInputContainerProps;
|
|
8
|
+
/**
|
|
9
|
+
* Properties for the input element.
|
|
10
|
+
*/
|
|
11
|
+
inputProps: InputHTMLAttributes<TElement>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Processes the InputComponent properties object to split it into container-specific and input-element-specific properties.
|
|
15
|
+
* @param props The InputComponent properties
|
|
16
|
+
* @returns The InputContainer and input element properties.
|
|
17
|
+
*/
|
|
18
|
+
export declare const useInputProps: <TElement extends InputComponentElement>(props: IInputComponentProps<TElement>) => IUseInputPropsResult<TElement>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { useIMask } from 'react-imask';
|
|
3
|
+
export interface IUseNumberMaskProps extends Pick<ComponentProps<'input'>, 'min' | 'max' | 'value'> {
|
|
4
|
+
/**
|
|
5
|
+
* Prefix for the number mask.
|
|
6
|
+
*/
|
|
7
|
+
prefix?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Suffix for the number mask.
|
|
10
|
+
*/
|
|
11
|
+
suffix?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Callback called on value change. Override the default onChange callback to only emit the updated value because
|
|
14
|
+
* the library in use formats the user input and emit the valid number when valid.
|
|
15
|
+
*/
|
|
16
|
+
onChange?: (value: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export interface IUseNumberMaskResult extends ReturnType<typeof useIMask<HTMLInputElement>> {
|
|
19
|
+
}
|
|
20
|
+
export declare const useNumberMask: (props: IUseNumberMaskProps) => IUseNumberMaskResult;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './checkbox';
|
|
2
|
+
export * from './checkboxCard';
|
|
3
|
+
export * from './checkboxGroup';
|
|
4
|
+
export * from './hooks';
|
|
5
|
+
export * from './inputContainer';
|
|
6
|
+
export * from './inputDate';
|
|
7
|
+
export * from './inputFileAvatar';
|
|
8
|
+
export * from './inputNumber';
|
|
9
|
+
export * from './inputNumberMax';
|
|
10
|
+
export * from './inputSearch';
|
|
11
|
+
export * from './inputText';
|
|
12
|
+
export * from './inputTime';
|
|
13
|
+
export * from './radio';
|
|
14
|
+
export * from './radioCard';
|
|
15
|
+
export * from './radioGroup';
|
|
16
|
+
export * from './switch';
|
|
17
|
+
export * from './textArea';
|
|
18
|
+
export * from './textAreaRichText';
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import type { AlertVariant } from '../../alerts';
|
|
3
|
+
export type InputVariant = 'default' | 'warning' | 'critical';
|
|
4
|
+
export interface IInputContainerAlert {
|
|
5
|
+
/**
|
|
6
|
+
* Message to be displayed.
|
|
7
|
+
*/
|
|
8
|
+
message: string;
|
|
9
|
+
/**
|
|
10
|
+
* Variant of the alert.
|
|
11
|
+
*/
|
|
12
|
+
variant: Exclude<AlertVariant, 'info' | 'success'>;
|
|
13
|
+
}
|
|
14
|
+
export interface IInputContainerBaseProps {
|
|
15
|
+
/**
|
|
16
|
+
* Label of the input.
|
|
17
|
+
*/
|
|
18
|
+
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Variant of the input.
|
|
21
|
+
* @default default
|
|
22
|
+
*/
|
|
23
|
+
variant?: InputVariant;
|
|
24
|
+
/**
|
|
25
|
+
* Help text displayed above the input.
|
|
26
|
+
*/
|
|
27
|
+
helpText?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Displays the optional tag when set to true.
|
|
30
|
+
*/
|
|
31
|
+
isOptional?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Displays the input as disabled when set to true.
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Alert displayed below the input.
|
|
38
|
+
*/
|
|
39
|
+
alert?: IInputContainerAlert;
|
|
40
|
+
/**
|
|
41
|
+
* Id of the input field.
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
/**
|
|
45
|
+
* Displays an input length counter when set.
|
|
46
|
+
*/
|
|
47
|
+
maxLength?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Current input length displayed when maxLength property is set.
|
|
50
|
+
*/
|
|
51
|
+
inputLength?: number;
|
|
52
|
+
/**
|
|
53
|
+
* Children of the component.
|
|
54
|
+
*/
|
|
55
|
+
children?: ReactNode;
|
|
56
|
+
/**
|
|
57
|
+
* Classes for the component.
|
|
58
|
+
*/
|
|
59
|
+
className?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Classes for the input wrapper.
|
|
62
|
+
*/
|
|
63
|
+
wrapperClassName?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Does not render the default input wrapper when set to true, to be used for using the base input container
|
|
66
|
+
* properties (label, helpText, ..) for components without a input wrapper (e.g. file inputs).
|
|
67
|
+
*/
|
|
68
|
+
useCustomWrapper?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface IInputContainerProps extends IInputContainerBaseProps, Omit<ComponentPropsWithRef<'div'>, 'id'> {
|
|
71
|
+
}
|
|
72
|
+
export type InputComponentElement = HTMLInputElement | HTMLTextAreaElement;
|
|
73
|
+
export interface IInputComponentProps<TElement extends InputComponentElement = HTMLInputElement> extends Omit<IInputContainerBaseProps, 'children' | 'id' | 'inputLength' | 'useCustomWrapper'>, Omit<InputHTMLAttributes<TElement>, 'type'> {
|
|
74
|
+
/**
|
|
75
|
+
* Classes for the input element.
|
|
76
|
+
*/
|
|
77
|
+
inputClassName?: string;
|
|
78
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IInputContainerProps } from './inputContainer.api';
|
|
3
|
+
/**
|
|
4
|
+
* The InputContainer component provides a consistent and shared styling foundation for various input components, such
|
|
5
|
+
* as `InputText`, `InputNumber` and others. It also manages properties that are shared across all input components,
|
|
6
|
+
* including `label`, `helpText` and more.
|
|
7
|
+
*/
|
|
8
|
+
export declare const InputContainer: React.ForwardRefExoticComponent<Omit<IInputContainerProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputDate, type IInputDateProps } from './inputDate';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { type Accept } from 'react-dropzone';
|
|
2
|
+
import { type IInputContainerBaseProps } from '../inputContainer';
|
|
3
|
+
export declare enum InputFileAvatarError {
|
|
4
|
+
SQUARE_ONLY = "square-only",
|
|
5
|
+
WRONG_DIMENSION = "wrong-dimension",
|
|
6
|
+
UNKNOWN_ERROR = "unknown-file-error",
|
|
7
|
+
FILE_INVALID_TYPE = "file-invalid-type",
|
|
8
|
+
TOO_MANY_FILES = "too-many-files",
|
|
9
|
+
FILE_TOO_LARGE = "file-too-large"
|
|
10
|
+
}
|
|
11
|
+
export interface IInputFileAvatarValue {
|
|
12
|
+
/**
|
|
13
|
+
* URL of the image for the preview.
|
|
14
|
+
*/
|
|
15
|
+
url?: string;
|
|
16
|
+
/**
|
|
17
|
+
* File object of the image.
|
|
18
|
+
*/
|
|
19
|
+
file?: File;
|
|
20
|
+
/**
|
|
21
|
+
* Error message if image upload fails.
|
|
22
|
+
*/
|
|
23
|
+
error?: InputFileAvatarError;
|
|
24
|
+
}
|
|
25
|
+
export interface IInputFileAvatarProps extends Pick<IInputContainerBaseProps, 'alert' | 'label' | 'helpText' | 'isOptional' | 'variant' | 'disabled'> {
|
|
26
|
+
/**
|
|
27
|
+
* Function that is called when a file is selected.
|
|
28
|
+
* If the file is rejected, the function is not called.
|
|
29
|
+
* If the file is accepted, the function is called with the file as an argument and a url string for generating the preview.
|
|
30
|
+
*/
|
|
31
|
+
onChange: (value?: IInputFileAvatarValue) => void;
|
|
32
|
+
/**
|
|
33
|
+
* The current value of the input.
|
|
34
|
+
*/
|
|
35
|
+
value?: IInputFileAvatarValue;
|
|
36
|
+
/**
|
|
37
|
+
* Allowed file extensions, it must be an object with the keys set to the MIME type
|
|
38
|
+
* and the values an array of file extensions (see https://developer.mozilla.org/en-US/docs/Web/API/window/showOpenFilePicker#accept)
|
|
39
|
+
* @default { 'image/png': [], 'image/gif': [], 'image/jpeg': ['.jpg', '.jpeg'] }
|
|
40
|
+
*/
|
|
41
|
+
acceptedFileTypes?: Accept;
|
|
42
|
+
/**
|
|
43
|
+
* Maximum file size in bytes (e.g. 2097152 bytes | 2 * 1024 ** 2 = 2MiB).
|
|
44
|
+
*/
|
|
45
|
+
maxFileSize?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Minimum dimension of the image in pixels.
|
|
48
|
+
*/
|
|
49
|
+
minDimension?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Maximum dimension of the image in pixels.
|
|
52
|
+
*/
|
|
53
|
+
maxDimension?: number;
|
|
54
|
+
/**
|
|
55
|
+
* If true, only square images are accepted.
|
|
56
|
+
*/
|
|
57
|
+
onlySquare?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Optional ID for the file avatar input.
|
|
60
|
+
*/
|
|
61
|
+
id?: string;
|
|
62
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputNumber, type IInputNumberProps } from './inputNumber';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type IUseNumberMaskProps } from '../hooks';
|
|
3
|
+
import { type IInputComponentProps } from '../inputContainer';
|
|
4
|
+
export interface IInputNumberProps extends Omit<IInputComponentProps, 'onChange' | 'step' | 'min' | 'max' | 'maxLength'> {
|
|
5
|
+
/**
|
|
6
|
+
* The minimum value that the number input accepts.
|
|
7
|
+
* @default Number.MIN_SAFE_INTEGER
|
|
8
|
+
*/
|
|
9
|
+
min?: number;
|
|
10
|
+
/**
|
|
11
|
+
* The maximum value that the number input accepts.
|
|
12
|
+
* @default Number.MAX_SAFE_INTEGER
|
|
13
|
+
*/
|
|
14
|
+
max?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Optional string prepended to the input value.
|
|
17
|
+
*/
|
|
18
|
+
prefix?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the granularity of the intervals for the input value.
|
|
21
|
+
* @default 1
|
|
22
|
+
*/
|
|
23
|
+
step?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Optional string appended to the input value.
|
|
26
|
+
*/
|
|
27
|
+
suffix?: string;
|
|
28
|
+
/**
|
|
29
|
+
* @see IUseNumberMaskProps['onChange']
|
|
30
|
+
*/
|
|
31
|
+
onChange?: IUseNumberMaskProps['onChange'];
|
|
32
|
+
}
|
|
33
|
+
export declare const InputNumber: React.ForwardRefExoticComponent<IInputNumberProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputNumberMax, type IInputNumberMaxProps } from './inputNumberMax';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type IUseNumberMaskProps } from '../hooks';
|
|
2
|
+
import { type IInputComponentProps } from '../inputContainer';
|
|
3
|
+
export interface IInputNumberMaxProps extends Omit<IInputComponentProps, 'maxLength' | 'onChange'> {
|
|
4
|
+
/**
|
|
5
|
+
* Maximum number set on max button click.
|
|
6
|
+
*/
|
|
7
|
+
max: number;
|
|
8
|
+
/**
|
|
9
|
+
* @see IUseNumberMaskProps['onChange']
|
|
10
|
+
*/
|
|
11
|
+
onChange?: IUseNumberMaskProps['onChange'];
|
|
12
|
+
}
|
|
13
|
+
export declare const InputNumberMax: React.FC<IInputNumberMaxProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputSearch, type IInputSearchProps } from './inputSearch';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type IInputComponentProps } from '../inputContainer';
|
|
2
|
+
export interface IInputSearchProps extends IInputComponentProps {
|
|
3
|
+
/**
|
|
4
|
+
* Displays a loading indicator when set to true.
|
|
5
|
+
*/
|
|
6
|
+
isLoading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const InputSearch: import("react").ForwardRefExoticComponent<IInputSearchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IInputComponentProps } from '../inputContainer';
|
|
2
|
+
export interface IInputTextProps extends IInputComponentProps {
|
|
3
|
+
/**
|
|
4
|
+
* Text to be rendered beside the input field.
|
|
5
|
+
*/
|
|
6
|
+
addon?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Position of the addon element in relation to the input field.
|
|
9
|
+
* @default 'left'
|
|
10
|
+
*/
|
|
11
|
+
addonPosition?: 'left' | 'right';
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputTime, type IInputTimeProps } from './inputTime';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type IInputComponentProps } from '../inputContainer';
|
|
2
|
+
export interface IInputTimeProps extends Omit<IInputComponentProps, 'maxLength' | 'inputLength'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const InputTime: import("react").ForwardRefExoticComponent<IInputTimeProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Radio, type IRadioProps } from './radio';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export interface IRadioProps extends ComponentProps<'button'> {
|
|
3
|
+
/**
|
|
4
|
+
* Radio label
|
|
5
|
+
*/
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Indicates the position of the label
|
|
9
|
+
* @default right
|
|
10
|
+
*/
|
|
11
|
+
labelPosition?: 'left' | 'right';
|
|
12
|
+
/**
|
|
13
|
+
* The value of the radio item.
|
|
14
|
+
*/
|
|
15
|
+
value: string;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates if the radio is disabled.
|
|
18
|
+
*/
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const Radio: import("react").ForwardRefExoticComponent<Omit<IRadioProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioCard, type IRadioCardProps } from './radioCard';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
2
|
+
import { type ITagProps } from '../../tag';
|
|
3
|
+
export interface IRadioCardProps extends ComponentProps<'button'> {
|
|
4
|
+
/**
|
|
5
|
+
* Radio card avatar image source
|
|
6
|
+
*/
|
|
7
|
+
avatar?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Description
|
|
10
|
+
*/
|
|
11
|
+
description?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Radio label
|
|
14
|
+
*/
|
|
15
|
+
label: string;
|
|
16
|
+
/**
|
|
17
|
+
* Radio card tag
|
|
18
|
+
*/
|
|
19
|
+
tag?: ITagProps;
|
|
20
|
+
/**
|
|
21
|
+
* The value of the radio item.
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
* Indicates if the radio is disabled.
|
|
26
|
+
*/
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Additional children to render when the radio is selected.
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export declare const RadioCard: import("react").ForwardRefExoticComponent<Omit<IRadioCardProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { RadioGroup, type IRadioGroupProps } from './radioGroup';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type IInputContainerBaseProps } from '../inputContainer';
|
|
3
|
+
export interface IRadioGroupProps extends Pick<IInputContainerBaseProps, 'alert' | 'label' | 'helpText' | 'isOptional'> {
|
|
4
|
+
/**
|
|
5
|
+
* The value of the selected radio item.
|
|
6
|
+
*/
|
|
7
|
+
value?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The default value of the selected radio item.
|
|
10
|
+
*/
|
|
11
|
+
defaultValue?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Callback when the value changes.
|
|
14
|
+
*/
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* The name of the radio group.
|
|
18
|
+
*/
|
|
19
|
+
name?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Whether the radio group is disabled.
|
|
22
|
+
*/
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Additional classes for the component.
|
|
26
|
+
*/
|
|
27
|
+
className?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Children of the component.
|
|
30
|
+
*/
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
}
|
|
33
|
+
export declare const RadioGroup: import("react").ForwardRefExoticComponent<IRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Switch, type ISwitchProps } from './switch';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type IInputContainerBaseProps } from '../inputContainer';
|
|
2
|
+
export interface ISwitchProps extends Pick<IInputContainerBaseProps, 'alert' | 'label' | 'helpText' | 'isOptional'> {
|
|
3
|
+
/**
|
|
4
|
+
* Indicates whether the switch is checked
|
|
5
|
+
*/
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* CSS class name
|
|
9
|
+
*/
|
|
10
|
+
className?: string;
|
|
11
|
+
/**
|
|
12
|
+
* The default checked state of the switch
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
defaultChecked?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Indicates whether the switch is disabled
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the switch
|
|
23
|
+
*/
|
|
24
|
+
id?: string;
|
|
25
|
+
/**
|
|
26
|
+
* The inline label of the switch
|
|
27
|
+
*/
|
|
28
|
+
inlineLabel?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The name of the switch
|
|
31
|
+
*/
|
|
32
|
+
name?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Event handler for when the checked state changes
|
|
35
|
+
* @param checked - The new checked state
|
|
36
|
+
*/
|
|
37
|
+
onCheckedChanged?: (checked: boolean) => void;
|
|
38
|
+
}
|
|
39
|
+
export declare const Switch: React.FC<ISwitchProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextArea, type ITextAreaProps } from './textArea';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type IInputComponentProps } from '../inputContainer';
|
|
2
|
+
export interface ITextAreaProps extends IInputComponentProps<HTMLTextAreaElement> {
|
|
3
|
+
}
|
|
4
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<ITextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TextAreaRichText, type ITextAreaRichTextProps } from './textAreaRichText';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type IInputContainerProps } from '../inputContainer';
|
|
2
|
+
export interface ITextAreaRichTextProps extends Omit<IInputContainerProps, 'maxLength' | 'inputLength' | 'value' | 'onChange' | 'id'> {
|
|
3
|
+
/**
|
|
4
|
+
* Current value of the input.
|
|
5
|
+
*/
|
|
6
|
+
value?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Id of the input.
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Callback called on value change.
|
|
13
|
+
*/
|
|
14
|
+
onChange?: (value: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
* Placeholder of the input.
|
|
17
|
+
*/
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Whether to render the editor on the first render or not.
|
|
21
|
+
*/
|
|
22
|
+
immediatelyRender?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export declare const TextAreaRichText: React.FC<ITextAreaRichTextProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Editor } from '@tiptap/react';
|
|
2
|
+
import { IconType } from '../../icon';
|
|
3
|
+
export interface ITextAreaRichTextAction {
|
|
4
|
+
/**
|
|
5
|
+
* Icon of the action.
|
|
6
|
+
*/
|
|
7
|
+
icon: IconType;
|
|
8
|
+
/**
|
|
9
|
+
* TipTap command or callback called on action click.
|
|
10
|
+
*/
|
|
11
|
+
action?: () => unknown;
|
|
12
|
+
/**
|
|
13
|
+
* Hides the action when set to true.
|
|
14
|
+
*/
|
|
15
|
+
hidden?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface ITextAreaRichTextActionsProps {
|
|
18
|
+
/**
|
|
19
|
+
* Instance of the TipTap editor.
|
|
20
|
+
*/
|
|
21
|
+
editor: Editor | null;
|
|
22
|
+
/**
|
|
23
|
+
* Renders the actions as disabled when set to true.
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Callback called on expand action click.
|
|
28
|
+
*/
|
|
29
|
+
onExpandClick?: () => void;
|
|
30
|
+
}
|
|
31
|
+
export declare const TextAreaRichTextActions: React.FC<ITextAreaRichTextActionsProps>;
|