@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,12 @@
|
|
|
1
|
+
import type { IDataListFilterProps } from './dataListFilter';
|
|
2
|
+
export interface IDataListFilterSortProps extends Pick<IDataListFilterProps, 'activeSort' | 'sortItems' | 'onSortChange'> {
|
|
3
|
+
/**
|
|
4
|
+
* Classes for the dropdown trigger.
|
|
5
|
+
*/
|
|
6
|
+
triggerClassNames?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Label of the dropdown trigger.
|
|
9
|
+
*/
|
|
10
|
+
triggerLabel?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const DataListFilterSort: React.FC<IDataListFilterSortProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DataListFilter, type IDataListFilterProps, type IDataListFilterSortItem } from './dataListFilter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DataListItem, type IDataListItemProps } from './dataListItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DataListPagination, type IDataListPaginationProps } from './dataListPagination';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Different states of the DataList component:
|
|
4
|
+
* - InitialLoading: component is fetching data for the first time and no data has been fetched yet;
|
|
5
|
+
* - Loading: initial data has already been fetched and the user is filtering or sorting the data;
|
|
6
|
+
* - Error: an error has occurred while fetching the data;
|
|
7
|
+
* - Idle: data has been successfully fetched;
|
|
8
|
+
* - Filtered: data has been successfully fetched and one or more filters are applied.
|
|
9
|
+
* - FetchingNextPage: user is loading the next page of the data list;
|
|
10
|
+
*/
|
|
11
|
+
export type DataListState = 'initialLoading' | 'loading' | 'error' | 'fetchingNextPage' | 'idle' | 'filtered';
|
|
12
|
+
export interface IDataListRootProps extends ComponentProps<'div'> {
|
|
13
|
+
/**
|
|
14
|
+
* Total number of items.
|
|
15
|
+
*/
|
|
16
|
+
itemsCount?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Number to items to render per page.
|
|
19
|
+
* @default 12
|
|
20
|
+
*/
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
/**
|
|
23
|
+
* State of the data list component, @see DataListState.
|
|
24
|
+
* @default idle
|
|
25
|
+
*/
|
|
26
|
+
state?: DataListState;
|
|
27
|
+
/**
|
|
28
|
+
* Callback called on load-more button click.
|
|
29
|
+
*/
|
|
30
|
+
onLoadMore?: () => void;
|
|
31
|
+
/**
|
|
32
|
+
* Label used for the data list status and pagination.
|
|
33
|
+
*/
|
|
34
|
+
entityLabel: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const DataListRoot: React.FC<IDataListRootProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DataListRoot, type DataListState, type IDataListRootProps } from './dataListRoot';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const DataList: {
|
|
2
|
+
Root: import("react").FC<import("./dataListRoot").IDataListRootProps>;
|
|
3
|
+
Filter: import("react").FC<import("./dataListFilter").IDataListFilterProps>;
|
|
4
|
+
Container: import("react").FC<import("./dataListContainer").IDataListContainerProps>;
|
|
5
|
+
Item: import("react").FC<import("./dataListItem").IDataListItemProps>;
|
|
6
|
+
Pagination: import("react").FC<import("./dataListPagination").IDataListPaginationProps>;
|
|
7
|
+
};
|
|
8
|
+
export * from './dataListContainer';
|
|
9
|
+
export * from './dataListFilter';
|
|
10
|
+
export * from './dataListItem';
|
|
11
|
+
export * from './dataListPagination';
|
|
12
|
+
export * from './dataListRoot';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DefinitionListContainer, type IDefinitionListContainerProps } from './definitionListContainer';
|
package/dist/types/src/core/components/definitionList/definitionListItem/definitionListItem.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentPropsWithRef } from 'react';
|
|
2
|
+
export interface IDefinitionListItemProps extends ComponentPropsWithRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* The term to be displayed in the definition list item.
|
|
5
|
+
*/
|
|
6
|
+
term: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DefinitionListItem: React.FC<IDefinitionListItemProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DefinitionListItem, type IDefinitionListItemProps } from './definitionListItem';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const DefinitionList: {
|
|
2
|
+
Container: import("react").FC<import("./definitionListContainer").IDefinitionListContainerProps>;
|
|
3
|
+
Item: import("react").FC<import("./definitionListItem").IDefinitionListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './definitionListContainer';
|
|
6
|
+
export * from './definitionListItem';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
export interface IDialogContentProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Optional description of the dialog.
|
|
6
|
+
*/
|
|
7
|
+
description?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Removes the default paddings when set to true.
|
|
10
|
+
* @default false
|
|
11
|
+
*/
|
|
12
|
+
noInset?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const DialogContent: React.FC<IDialogContentProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogContent, type IDialogContentProps } from './dialogContent';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { type IButtonProps } from '../../../button';
|
|
3
|
+
export type IDialogFooterAction = Exclude<IButtonProps, 'children' | 'variant'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Label of the action button.
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
export interface IDialogFooterProps extends ComponentPropsWithoutRef<'div'> {
|
|
10
|
+
/**
|
|
11
|
+
* Primary action of the dialog.
|
|
12
|
+
*/
|
|
13
|
+
primaryAction?: IDialogFooterAction;
|
|
14
|
+
/**
|
|
15
|
+
* Secondary action of the dialog.
|
|
16
|
+
*/
|
|
17
|
+
secondaryAction?: IDialogFooterAction;
|
|
18
|
+
/**
|
|
19
|
+
* Variant of the dialog footer.
|
|
20
|
+
* @default default
|
|
21
|
+
*/
|
|
22
|
+
variant?: 'default' | 'wizard';
|
|
23
|
+
/**
|
|
24
|
+
* Displays the primary actions with error variant when set to true.
|
|
25
|
+
*/
|
|
26
|
+
hasError?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare const DialogFooter: React.FC<IDialogFooterProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogFooter, type IDialogFooterAction, type IDialogFooterProps } from './dialogFooter';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface IDialogHeaderProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Title of the dialog displayed on the header and used as the dialog's accessible name.
|
|
5
|
+
*/
|
|
6
|
+
title: string;
|
|
7
|
+
/**
|
|
8
|
+
* Callback triggered on close button click. The close button is not displayed when the property is not set.
|
|
9
|
+
*/
|
|
10
|
+
onClose?: () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const DialogHeader: React.FC<IDialogHeaderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogHeader, type IDialogHeaderProps } from './dialogHeader';
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export type DialogSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
3
|
+
export interface IDialogRootProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Children of the component.
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Additional CSS class names for custom styling of the dialog's content container.
|
|
10
|
+
*/
|
|
11
|
+
containerClassName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Size of the dialog.
|
|
14
|
+
* @default md
|
|
15
|
+
*/
|
|
16
|
+
size?: DialogSize;
|
|
17
|
+
/**
|
|
18
|
+
* Determines whether interactions with elements outside of the dialog will be disabled.
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
modal?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Manages the visibility state of the dialog.
|
|
24
|
+
*/
|
|
25
|
+
open?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Additional CSS class names for custom styling of the overlay behind the dialog.
|
|
28
|
+
*/
|
|
29
|
+
overlayClassName?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Handler called when focus moves to the trigger after closing
|
|
32
|
+
*/
|
|
33
|
+
onCloseAutoFocus?: (e: Event) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Handler called when the escape key is pressed while the dialog is opened. Closes the dialog by default.
|
|
36
|
+
*/
|
|
37
|
+
onEscapeKeyDown?: (e: KeyboardEvent) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Handler called when an interaction (pointer or focus event) happens outside the bounds of the component
|
|
40
|
+
*/
|
|
41
|
+
onInteractOutside?: (e: Event) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Handler called when focus moves into the component after opening
|
|
44
|
+
*/
|
|
45
|
+
onOpenAutoFocus?: (e: Event) => void;
|
|
46
|
+
/**
|
|
47
|
+
* Callback function invoked when the open state of the dialog changes.
|
|
48
|
+
*/
|
|
49
|
+
onOpenChange?: (open: boolean) => void;
|
|
50
|
+
/**
|
|
51
|
+
* Handler called when a pointer event occurs outside the bounds of the component
|
|
52
|
+
*/
|
|
53
|
+
onPointerDownOutside?: (e: Event) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Keeps the focus inside the Dialog when set to true.
|
|
56
|
+
* @default true
|
|
57
|
+
*/
|
|
58
|
+
useFocusTrap?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* An accessible and hidden title for the dialog, to be used when implementing a dialog without a Dialog.Header
|
|
61
|
+
* component.
|
|
62
|
+
*/
|
|
63
|
+
hiddenTitle?: string;
|
|
64
|
+
/**
|
|
65
|
+
* An accessible and hidden description for the dialog, to be used when implementing a dialog without a description
|
|
66
|
+
* on the Dialog.Content component.
|
|
67
|
+
*/
|
|
68
|
+
hiddenDescription?: string;
|
|
69
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface IDialogRootHiddenElementProps {
|
|
2
|
+
/**
|
|
3
|
+
* Label to be rendered for screen readers only.
|
|
4
|
+
*/
|
|
5
|
+
label?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Type of element to be displayed.
|
|
8
|
+
*/
|
|
9
|
+
type: 'title' | 'description';
|
|
10
|
+
}
|
|
11
|
+
export declare const DialogRootHiddenElement: React.FC<IDialogRootHiddenElementProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DialogStoryComponent: (component: "header" | "content" | "footer" | "root") => (props: object) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const Dialog: {
|
|
2
|
+
Content: import("react").FC<import("./dialogContent").IDialogContentProps>;
|
|
3
|
+
Footer: import("react").FC<import("./dialogFooter").IDialogFooterProps>;
|
|
4
|
+
Header: import("react").FC<import("./dialogHeader").IDialogHeaderProps>;
|
|
5
|
+
Root: import("react").FC<import("./dialogRoot").IDialogRootProps>;
|
|
6
|
+
};
|
|
7
|
+
export * from './dialogContent';
|
|
8
|
+
export * from './dialogFooter';
|
|
9
|
+
export * from './dialogHeader';
|
|
10
|
+
export * from './dialogRoot';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
export interface IDialogAlertContentProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Removes the default paddings when set to true.
|
|
6
|
+
* @default false
|
|
7
|
+
*/
|
|
8
|
+
noInset?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const DialogAlertContent: React.FC<IDialogAlertContentProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogAlertContent, type IDialogAlertContentProps } from './dialogAlertContent';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IDialogAlertRootProps } from '../dialogAlertRoot';
|
|
2
|
+
export interface IDialogAlertContext extends Required<Pick<IDialogAlertRootProps, 'variant'>> {
|
|
3
|
+
}
|
|
4
|
+
export declare const DialogAlertContextProvider: import("react").Provider<IDialogAlertContext | null>;
|
|
5
|
+
export declare const useDialogAlertContext: () => IDialogAlertContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogAlertContextProvider, useDialogAlertContext, type IDialogAlertContext } from './dialogAlertContext';
|
package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertFooter/dialogAlertFooter.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type IButtonProps } from '../../../button';
|
|
3
|
+
export type IDialogAlertFooterAction = Exclude<IButtonProps, 'children' | 'variant'> & {
|
|
4
|
+
/**
|
|
5
|
+
* Label of the action button.
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
};
|
|
9
|
+
export interface IDialogAlertFooterProps {
|
|
10
|
+
/**
|
|
11
|
+
* Action button of the alert dialog.
|
|
12
|
+
*/
|
|
13
|
+
actionButton: IDialogAlertFooterAction;
|
|
14
|
+
/**
|
|
15
|
+
* Secondary button of the alert dialog used for dismissing the dialog or cancelling the action.
|
|
16
|
+
*/
|
|
17
|
+
cancelButton: IDialogAlertFooterAction;
|
|
18
|
+
}
|
|
19
|
+
export declare const DialogAlertFooter: React.FC<IDialogAlertFooterProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogAlertFooter, type IDialogAlertFooterAction, type IDialogAlertFooterProps } from './dialogAlertFooter';
|
package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertHeader/dialogAlertHeader.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface IDialogAlertHeaderProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Title summarizing dialog's content or purpose.
|
|
5
|
+
*/
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DialogAlertHeader: React.FC<IDialogAlertHeaderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DialogAlertHeader, type IDialogAlertHeaderProps } from './dialogAlertHeader';
|
package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRoot.api.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export type DialogAlertVariant = 'critical' | 'info' | 'success' | 'warning';
|
|
3
|
+
export interface IDialogAlertRootProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Children of the component.
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Additional CSS class names for custom styling of the dialog's content container.
|
|
10
|
+
*/
|
|
11
|
+
containerClassName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Manages the visibility state of the dialog. Should be implemented alongside `onOpenChange` for controlled usage.
|
|
14
|
+
*/
|
|
15
|
+
open?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Additional CSS class names for custom styling of the overlay behind the dialog.
|
|
18
|
+
*/
|
|
19
|
+
overlayClassName?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The visual style variant of the dialog.
|
|
22
|
+
* @default info
|
|
23
|
+
*/
|
|
24
|
+
variant?: DialogAlertVariant;
|
|
25
|
+
/**
|
|
26
|
+
* Callback function invoked when the open state of the dialog changes.
|
|
27
|
+
*/
|
|
28
|
+
onOpenChange?: (open: boolean) => void;
|
|
29
|
+
/**
|
|
30
|
+
* Handler called when focus moves to the trigger after closing the dialog.
|
|
31
|
+
*/
|
|
32
|
+
onCloseAutoFocus?: (e: Event) => void;
|
|
33
|
+
/**
|
|
34
|
+
* Handler called when focus moves to the destructive action after opening the dialog.
|
|
35
|
+
*/
|
|
36
|
+
onOpenAutoFocus?: (e: Event) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Handler called when the escape key is pressed while the dialog is opened. Closes the dialog by default.
|
|
39
|
+
*/
|
|
40
|
+
onEscapeKeyDown?: (e: KeyboardEvent) => void;
|
|
41
|
+
/**
|
|
42
|
+
* Keeps the focus inside the Alert Dialog when set to true.
|
|
43
|
+
* @default true
|
|
44
|
+
*/
|
|
45
|
+
useFocusTrap?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* An accessible and hidden title for the alert dialog, to be used when implementing a dialog without a
|
|
48
|
+
* DialogAlert.Header component.
|
|
49
|
+
*/
|
|
50
|
+
hiddenTitle?: string;
|
|
51
|
+
/**
|
|
52
|
+
* An accessible and hidden description for the alert dialog.
|
|
53
|
+
*/
|
|
54
|
+
hiddenDescription?: string;
|
|
55
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface IDialogAlertRootHiddenElementProps {
|
|
2
|
+
/**
|
|
3
|
+
* Label to be rendered for screen readers only.
|
|
4
|
+
*/
|
|
5
|
+
label?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Type of element to be displayed.
|
|
8
|
+
*/
|
|
9
|
+
type: 'title' | 'description';
|
|
10
|
+
}
|
|
11
|
+
export declare const DialogAlertRootHiddenElement: React.FC<IDialogAlertRootHiddenElementProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const DialogAlert: {
|
|
2
|
+
Content: import("react").FC<import("./dialogAlertContent").IDialogAlertContentProps>;
|
|
3
|
+
Footer: import("react").FC<import("./dialogAlertFooter").IDialogAlertFooterProps>;
|
|
4
|
+
Header: import("react").FC<import("./dialogAlertHeader").IDialogAlertHeaderProps>;
|
|
5
|
+
Root: import("react").FC<import("./dialogAlertRoot").IDialogAlertRootProps>;
|
|
6
|
+
};
|
|
7
|
+
export * from './dialogAlertContent';
|
|
8
|
+
export * from './dialogAlertFooter';
|
|
9
|
+
export * from './dialogAlertHeader';
|
|
10
|
+
export * from './dialogAlertRoot';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export declare const dialogOverlayAnimationVariants: {
|
|
2
|
+
closed: {
|
|
3
|
+
opacity: number;
|
|
4
|
+
};
|
|
5
|
+
open: {
|
|
6
|
+
opacity: number;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const dialogContentAnimationVariants: {
|
|
10
|
+
closed: {
|
|
11
|
+
opacity: number;
|
|
12
|
+
scale: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
open: {
|
|
16
|
+
opacity: number;
|
|
17
|
+
scale: number;
|
|
18
|
+
y: number;
|
|
19
|
+
transition: {
|
|
20
|
+
duration: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
exit: {
|
|
24
|
+
opacity: number;
|
|
25
|
+
transition: {
|
|
26
|
+
duration: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface IDocumentParserProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* The stringified document of Markdown or HTML to parse into a styled output.
|
|
5
|
+
*/
|
|
6
|
+
document: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const DocumentParser: React.FC<IDocumentParserProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DocumentParser, type IDocumentParserProps } from './documentParser';
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as RadixDropdown from '@radix-ui/react-dropdown-menu';
|
|
2
|
+
import { type ComponentProps, type ReactNode } from 'react';
|
|
3
|
+
import { type IButtonProps } from '../../button';
|
|
4
|
+
export interface IDropdownContainerProps extends Omit<ComponentProps<'div'>, 'dir'> {
|
|
5
|
+
/**
|
|
6
|
+
* Size of the dropdown trigger.
|
|
7
|
+
* @default lg
|
|
8
|
+
*/
|
|
9
|
+
size?: IButtonProps['size'];
|
|
10
|
+
/**
|
|
11
|
+
* Custom dropdown trigger displayed instead of the default button.
|
|
12
|
+
*/
|
|
13
|
+
customTrigger?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Size of the dropdown trigger depending on the current breakpoint.
|
|
16
|
+
*/
|
|
17
|
+
responsiveSize?: IButtonProps['responsiveSize'];
|
|
18
|
+
/**
|
|
19
|
+
* Label of the dropdown trigger.
|
|
20
|
+
*/
|
|
21
|
+
label?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Alignment of the dropdown content.
|
|
24
|
+
* @default start
|
|
25
|
+
*/
|
|
26
|
+
align?: RadixDropdown.DropdownMenuContentProps['align'];
|
|
27
|
+
/**
|
|
28
|
+
* Hides the dropdown trigger icon when set to true. This property has no effect when the label property
|
|
29
|
+
* is not set or is empty.
|
|
30
|
+
*/
|
|
31
|
+
hideIcon?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Disables the dropdown when set to true.
|
|
34
|
+
*/
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the dropdown is open by default.
|
|
38
|
+
*/
|
|
39
|
+
defaultOpen?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Whether the dropdown is open.
|
|
42
|
+
*/
|
|
43
|
+
open?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Callback when the open state changes.
|
|
46
|
+
*/
|
|
47
|
+
onOpenChange?: (open: boolean) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Sets a max width to the dropdown content as the remaining width between the trigger and the boundary edge.
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
constrainContentWidth?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Sets a max height to the dropdown content as the remaining height between the trigger and the boundary edge.
|
|
55
|
+
* @default true
|
|
56
|
+
*/
|
|
57
|
+
constrainContentHeight?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Additional classnames for the dropdown container (e.g. for setting a max width for the dropdown items).
|
|
60
|
+
*/
|
|
61
|
+
contentClassNames?: string;
|
|
62
|
+
}
|
|
63
|
+
export declare const DropdownContainer: React.FC<IDropdownContainerProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DropdownContainer, type IDropdownContainerProps } from './dropdownContainer';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React, { type ComponentProps } from 'react';
|
|
2
|
+
import { IconType } from '../../icon';
|
|
3
|
+
export interface IDropdownItemProps extends Omit<ComponentProps<'div'>, 'onSelect'> {
|
|
4
|
+
/**
|
|
5
|
+
* Renders the dropdown item as selected when set to true.
|
|
6
|
+
*/
|
|
7
|
+
selected?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Icon displayed beside the item label. Defaults to LinkExternal when the item is a link or to Checkmark when the
|
|
10
|
+
* selected property is set to true.
|
|
11
|
+
*/
|
|
12
|
+
icon?: IconType;
|
|
13
|
+
/**
|
|
14
|
+
* Position of the icon.
|
|
15
|
+
* @default right
|
|
16
|
+
*/
|
|
17
|
+
iconPosition?: 'right' | 'left';
|
|
18
|
+
/**
|
|
19
|
+
* Link of the dropdown item.
|
|
20
|
+
*/
|
|
21
|
+
href?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Target of the dropdown link.
|
|
24
|
+
*/
|
|
25
|
+
target?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Rel attribute of the dropdown link.
|
|
28
|
+
*/
|
|
29
|
+
rel?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Disables the dropdown item when set to true.
|
|
32
|
+
*/
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Callback when the dropdown item is selected.
|
|
36
|
+
*/
|
|
37
|
+
onSelect?: (event: Event) => void;
|
|
38
|
+
}
|
|
39
|
+
export declare const DropdownItem: React.FC<IDropdownItemProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DropdownItem, type IDropdownItemProps } from './dropdownItem';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const Dropdown: {
|
|
2
|
+
Container: import("react").FC<import("./dropdownContainer").IDropdownContainerProps>;
|
|
3
|
+
Item: import("react").FC<import("./dropdownItem").IDropdownItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './dropdownContainer';
|
|
6
|
+
export * from './dropdownItem';
|