@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,17 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { ProposalVotingStatus } from '../../proposalUtils';
|
|
3
|
+
export interface IProposalVotingBodyContentProps extends ComponentProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Status of the stage.
|
|
6
|
+
*/
|
|
7
|
+
status: ProposalVotingStatus;
|
|
8
|
+
/**
|
|
9
|
+
* Name of the proposal stage displayed for multi-stage proposals.
|
|
10
|
+
*/
|
|
11
|
+
name?: string;
|
|
12
|
+
/**
|
|
13
|
+
* plugin address of the body used to determine if the content should be rendered or not.
|
|
14
|
+
*/
|
|
15
|
+
bodyId?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const ProposalVotingBodyContent: React.FC<IProposalVotingBodyContentProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingBodySummary, type IProposalVotingBodySummaryProps } from './proposalVotingBodySummary';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingBodySummaryList, type IProposalVotingBodySummaryListProps, } from './proposalVotingBodySummaryList';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps, PropsWithChildren } from 'react';
|
|
2
|
+
export interface IProposalVotingBodySummaryListProps extends ComponentProps<'div'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const ProposalVotingBodySummaryList: React.FC<PropsWithChildren<IProposalVotingBodySummaryListProps>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingBodySummaryListItem, type IProposalVotingBodySummaryListItemProps, } from './proposalVotingBodySummaryListItem';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
3
|
+
export type IProposalVotingBodySummaryListItemProps = IDataListItemProps & {
|
|
4
|
+
/**
|
|
5
|
+
* ID of the body.
|
|
6
|
+
*/
|
|
7
|
+
id: string;
|
|
8
|
+
/**
|
|
9
|
+
* Children to render.
|
|
10
|
+
*/
|
|
11
|
+
children: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
export declare const ProposalVotingBodySummaryListItem: React.FC<IProposalVotingBodySummaryListItemProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingBreakdownMultisig, type IProposalVotingBreakdownMultisigProps, } from './proposalVotingBreakdownMultisig';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ITabsContentProps } from '../../../../../core';
|
|
2
|
+
export interface IProposalVotingBreakdownMultisigProps extends Omit<ITabsContentProps, 'value'> {
|
|
3
|
+
/**
|
|
4
|
+
* Current number of approvals for the proposal.
|
|
5
|
+
*/
|
|
6
|
+
approvalsAmount: number;
|
|
7
|
+
/**
|
|
8
|
+
* Minimum numbers of approvals required for a proposal to pass.
|
|
9
|
+
*/
|
|
10
|
+
minApprovals: number;
|
|
11
|
+
}
|
|
12
|
+
export declare const ProposalVotingBreakdownMultisig: React.FC<IProposalVotingBreakdownMultisigProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingBreakdownToken, type IProposalVotingBreakdownTokenProps } from './proposalVotingBreakdownToken';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type ITabsContentProps } from '../../../../../core';
|
|
2
|
+
export interface IProposalVotingBreakdownTokenProps extends Omit<ITabsContentProps, 'value'> {
|
|
3
|
+
/**
|
|
4
|
+
* Total voting power of users that voted yes.
|
|
5
|
+
*/
|
|
6
|
+
totalYes: number | string;
|
|
7
|
+
/**
|
|
8
|
+
* Total voting power of users that voted no.
|
|
9
|
+
*/
|
|
10
|
+
totalNo: number | string;
|
|
11
|
+
/**
|
|
12
|
+
* Total voting power of users that voted abstain.
|
|
13
|
+
*/
|
|
14
|
+
totalAbstain: number | string;
|
|
15
|
+
/**
|
|
16
|
+
* Percentage of tokens that need to vote "Yes" for a proposal to pass.
|
|
17
|
+
*/
|
|
18
|
+
supportThreshold: number;
|
|
19
|
+
/**
|
|
20
|
+
* Percentage of tokens that need to participate in a vote for it to be valid.
|
|
21
|
+
*/
|
|
22
|
+
minParticipation: number;
|
|
23
|
+
/**
|
|
24
|
+
* Symbol of the governance token.
|
|
25
|
+
*/
|
|
26
|
+
tokenSymbol: string;
|
|
27
|
+
/**
|
|
28
|
+
* Total supply of the governance token.
|
|
29
|
+
*/
|
|
30
|
+
tokenTotalSupply: number | string;
|
|
31
|
+
}
|
|
32
|
+
export declare const ProposalVotingBreakdownToken: React.FC<IProposalVotingBreakdownTokenProps>;
|
package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContainer/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingContainer, type IProposalVotingContainerProps } from './proposalVotingContainer';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export interface IProposalVotingContainerProps extends Omit<ComponentProps<'div'>, 'defaultValue'> {
|
|
3
|
+
/**
|
|
4
|
+
* Active stage that will be expanded for multi-stage proposals.
|
|
5
|
+
*/
|
|
6
|
+
activeStage?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Callback called when the user selects a stage, to be used for expanding the current active stage for multi-stage proposals.
|
|
9
|
+
*/
|
|
10
|
+
onStageClick?: (stage?: string) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const ProposalVotingContainer: React.FC<IProposalVotingContainerProps>;
|
package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDetails/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingDetails, type IProposalVotingDetailsProps } from './proposalVotingDetails';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type ITabsContentProps } from '../../../../../core';
|
|
2
|
+
export interface IProposalVotingDetailsSetting {
|
|
3
|
+
/**
|
|
4
|
+
* Term of the setting.
|
|
5
|
+
*/
|
|
6
|
+
term: string;
|
|
7
|
+
/**
|
|
8
|
+
* Value of the setting.
|
|
9
|
+
*/
|
|
10
|
+
definition: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IProposalVotingDetailsProps extends Omit<ITabsContentProps, 'value'> {
|
|
13
|
+
/**
|
|
14
|
+
* Governance settings displayed on the details tab.
|
|
15
|
+
*/
|
|
16
|
+
settings?: IProposalVotingDetailsSetting[];
|
|
17
|
+
}
|
|
18
|
+
export declare const ProposalVotingDetails: React.FC<IProposalVotingDetailsProps>;
|
package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ProposalVotingProgress: {
|
|
2
|
+
Item: import("react").FC<import("./proposalVotingProgressItem").IProposalVotingProgressItemProps>;
|
|
3
|
+
Container: import("react").FC<import("./proposalVotingProgressContainer").IProposalVotingProgressContainerProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './proposalVotingProgressContainer';
|
|
6
|
+
export * from './proposalVotingProgressItem';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export interface IProposalVotingProgressContainerProps extends ComponentProps<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Flex direction of the ProposalVotingProgress components. On small screens, the components will be rendered
|
|
5
|
+
* in a flex column container regardeless.
|
|
6
|
+
* @default row;
|
|
7
|
+
*/
|
|
8
|
+
direction?: 'row' | 'col';
|
|
9
|
+
}
|
|
10
|
+
export declare const ProposalVotingProgressContainer: React.FC<IProposalVotingProgressContainerProps>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { type IProgressProps } from '../../../../../core';
|
|
2
|
+
export interface IProposalVotingProgressItemDescription {
|
|
3
|
+
/**
|
|
4
|
+
* Value of the description highlighted (e.g. current vote amount)
|
|
5
|
+
*/
|
|
6
|
+
value: string | number | null;
|
|
7
|
+
/**
|
|
8
|
+
* Text of the description (e.g. minimum required vote amount)
|
|
9
|
+
*/
|
|
10
|
+
text: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IProposalVotingProgressItemProps extends IProgressProps {
|
|
13
|
+
/**
|
|
14
|
+
* Name of the voting progress.
|
|
15
|
+
*/
|
|
16
|
+
name: string;
|
|
17
|
+
/**
|
|
18
|
+
* Description of the voting progress displayed below the progress bar.
|
|
19
|
+
*/
|
|
20
|
+
description: IProposalVotingProgressItemDescription;
|
|
21
|
+
/**
|
|
22
|
+
* Displays the progress bar value as percentage when set to true.
|
|
23
|
+
*/
|
|
24
|
+
showPercentage?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Displays a status icon based on the progress bar and indicator values when set to true. The component renders a
|
|
27
|
+
* "success" status icon when value is equal or greater than indicator, and a "failed" status icon otherwise.
|
|
28
|
+
*/
|
|
29
|
+
showStatusIcon?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare const ProposalVotingProgressItem: React.FC<IProposalVotingProgressItemProps>;
|
package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStage/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingStage, type IProposalVotingStageProps } from './proposalVotingStage';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import type { ProposalVotingStatus } from '../../proposalUtils';
|
|
3
|
+
export interface IProposalVotingStageProps extends ComponentProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Status of the stage.
|
|
6
|
+
*/
|
|
7
|
+
status: ProposalVotingStatus;
|
|
8
|
+
/**
|
|
9
|
+
* Start date of the stage in timestamp or ISO format.
|
|
10
|
+
*/
|
|
11
|
+
startDate?: number | string;
|
|
12
|
+
/**
|
|
13
|
+
* Start date of the stage in timestamp or ISO format.
|
|
14
|
+
*/
|
|
15
|
+
endDate?: number | string;
|
|
16
|
+
/**
|
|
17
|
+
* Name of the proposal stage displayed for multi-stage proposals.
|
|
18
|
+
*/
|
|
19
|
+
name?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Index of the stage set automatically by the ProposalVotingContainer for multi-stage proposals.
|
|
22
|
+
*/
|
|
23
|
+
index?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Defines if the proposal has multiple stages or not.
|
|
26
|
+
*/
|
|
27
|
+
isMultiStage?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* List of plugin addresses of bodies.
|
|
30
|
+
*/
|
|
31
|
+
bodyList?: string[];
|
|
32
|
+
}
|
|
33
|
+
export declare const ProposalVotingStage: React.FC<IProposalVotingStageProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingStageContextProvider, useProposalVotingStageContext, type IProposalVotingStageContext, } from './proposalVotingStageContext';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IProposalVotingStageProps } from '../proposalVotingStage/proposalVotingStage';
|
|
2
|
+
export interface IProposalVotingStageContext extends Pick<IProposalVotingStageProps, 'startDate' | 'endDate'> {
|
|
3
|
+
/**
|
|
4
|
+
* List of plugin addresses to be displayed in the body summary list.
|
|
5
|
+
*/
|
|
6
|
+
bodyList?: string[];
|
|
7
|
+
/**
|
|
8
|
+
* The active body to be displayed.
|
|
9
|
+
*/
|
|
10
|
+
activeBody?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Function to set the active body.
|
|
13
|
+
*/
|
|
14
|
+
setActiveBody?: (id: string | undefined) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ProposalVotingStageContextProvider: import("react").Provider<IProposalVotingStageContext | null>;
|
|
17
|
+
export declare const useProposalVotingStageContext: () => IProposalVotingStageContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingStageStatus, type IProposalVotingStageStatusProps } from './proposalVotingStageStatus';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { ProposalVotingStatus } from '../../proposalUtils';
|
|
3
|
+
export interface IProposalVotingStageStatusProps extends ComponentProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* Status of the proposal.
|
|
6
|
+
* @default ProposalVotingStatus.PENDING
|
|
7
|
+
*/
|
|
8
|
+
status?: ProposalVotingStatus;
|
|
9
|
+
/**
|
|
10
|
+
* End date of the proposal in timestamp or ISO format.
|
|
11
|
+
*/
|
|
12
|
+
endDate?: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* Defines if the proposal is a multi-stage proposal.
|
|
15
|
+
*/
|
|
16
|
+
isMultiStage?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const ProposalVotingStageStatus: React.FC<IProposalVotingStageStatusProps>;
|
package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingTabs, type IProposalVotingTabsProps } from './proposalVotingTabs';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ITabsRootProps } from '../../../../../core';
|
|
2
|
+
import { ProposalVotingStatus } from '../../proposalUtils';
|
|
3
|
+
import { ProposalVotingTab } from '../proposalVotingDefinitions';
|
|
4
|
+
export interface IProposalVotingTabsProps extends ITabsRootProps {
|
|
5
|
+
/**
|
|
6
|
+
* Voting status of the proposal.
|
|
7
|
+
*/
|
|
8
|
+
status: ProposalVotingStatus;
|
|
9
|
+
/**
|
|
10
|
+
* Default proposal voting tab selected.
|
|
11
|
+
* @default ProposalVotingTab.BREAKDOWN
|
|
12
|
+
*/
|
|
13
|
+
defaultValue?: ProposalVotingTab;
|
|
14
|
+
}
|
|
15
|
+
export declare const ProposalVotingTabs: React.FC<IProposalVotingTabsProps>;
|
package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingVotes/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingVotes, type IProposalVotingVotesProps } from './proposalVotingVotes';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './transactionDataListItem';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const TransactionDataListItem: {
|
|
2
|
+
Structure: import("react").FC<import("./transactionDataListItemStructure").ITransactionDataListItemProps>;
|
|
3
|
+
Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './transactionDataListItemSkeleton';
|
|
6
|
+
export * from './transactionDataListItemStructure';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TransactionDataListItemSkeleton, type ITransactionDataListItemSkeletonProps, } from './transactionDataListItemSkeleton';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { type Hash } from 'viem';
|
|
2
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
3
|
+
export declare enum TransactionStatus {
|
|
4
|
+
PENDING = "PENDING",
|
|
5
|
+
SUCCESS = "SUCCESS",
|
|
6
|
+
FAILED = "FAILED"
|
|
7
|
+
}
|
|
8
|
+
export declare enum TransactionType {
|
|
9
|
+
DEPOSIT = "DEPOSIT",
|
|
10
|
+
WITHDRAW = "WITHDRAW",
|
|
11
|
+
ACTION = "ACTION"
|
|
12
|
+
}
|
|
13
|
+
export type ITransactionDataListItemProps = IDataListItemProps & {
|
|
14
|
+
/**
|
|
15
|
+
* The chain ID of the transaction.
|
|
16
|
+
*/
|
|
17
|
+
chainId: number;
|
|
18
|
+
/**
|
|
19
|
+
* The symbol of the token (e.g. 'ETH').
|
|
20
|
+
*/
|
|
21
|
+
tokenSymbol: string;
|
|
22
|
+
/**
|
|
23
|
+
* The token value in the transaction.
|
|
24
|
+
*/
|
|
25
|
+
tokenAmount?: number | string;
|
|
26
|
+
/**
|
|
27
|
+
* The price of the transaction in USD.
|
|
28
|
+
*/
|
|
29
|
+
amountUsd?: number | string;
|
|
30
|
+
/**
|
|
31
|
+
* The type of transaction.
|
|
32
|
+
* @default TransactionType.ACTION
|
|
33
|
+
*/
|
|
34
|
+
type?: TransactionType;
|
|
35
|
+
/**
|
|
36
|
+
* The current status of a blockchain transaction on the network.
|
|
37
|
+
* @default TransactionStatus.PENDING
|
|
38
|
+
*/
|
|
39
|
+
status?: TransactionStatus;
|
|
40
|
+
/**
|
|
41
|
+
* Date of transaction in ISO format or as a timestamp.
|
|
42
|
+
*/
|
|
43
|
+
date: number | string;
|
|
44
|
+
/**
|
|
45
|
+
* The hash of the transaction.
|
|
46
|
+
*/
|
|
47
|
+
hash?: Hash;
|
|
48
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const VoteDataListItem: {
|
|
2
|
+
Structure: import("react").FC<import("./voteDataListItemStructure").IVoteDataListItemStructureProps>;
|
|
3
|
+
Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './voteDataListItemSkeleton';
|
|
6
|
+
export * from './voteDataListItemStructure';
|
package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemSkeleton/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VoteDataListItemSkeleton, type IVoteDataListItemSkeletonProps } from './voteDataListItemSkeleton';
|
package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemStructure/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VoteDataListItemStructure, type IVoteDataListItemStructureProps } from './voteDataListItemStructure';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
2
|
+
import { type ICompositeAddress } from '../../../../types';
|
|
3
|
+
import { type VoteIndicator } from '../../voteUtils';
|
|
4
|
+
export type IVoteDataListItemStructureProps = IDataListItemProps & {
|
|
5
|
+
/**
|
|
6
|
+
* The account details of the voter.
|
|
7
|
+
*/
|
|
8
|
+
voter: ICompositeAddress;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the voter is a delegate of the current user or not.
|
|
11
|
+
*/
|
|
12
|
+
isDelegate?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The vote of the user.
|
|
15
|
+
*/
|
|
16
|
+
voteIndicator: VoteIndicator;
|
|
17
|
+
/**
|
|
18
|
+
* If token-based voting, the amount of token voting power used.
|
|
19
|
+
*/
|
|
20
|
+
votingPower?: number | string;
|
|
21
|
+
/**
|
|
22
|
+
* If token-based voting, the symbol of the voting power used.
|
|
23
|
+
*/
|
|
24
|
+
tokenSymbol?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Custom label for the tag.
|
|
27
|
+
*/
|
|
28
|
+
confirmationLabel?: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const VoteDataListItemStructure: React.FC<IVoteDataListItemStructureProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const VoteProposalDataListItem: {
|
|
2
|
+
Structure: import("react").FC<import("./voteProposalDataListItemStructure").IVoteProposalDataListItemStructureProps>;
|
|
3
|
+
Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './voteProposalDataListItemSkeleton';
|
|
6
|
+
export * from './voteProposalDataListItemStructure';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VoteProposalDataListItemSkeleton, type IVoteProposalDataListItemSkeletonProps, } from './voteProposalDataListItemSkeleton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VoteProposalDataListItemStructure, type IVoteProposalDataListItemStructureProps, } from './voteProposalDataListItemStructure';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
2
|
+
import { type VoteIndicator } from '../../voteUtils';
|
|
3
|
+
export type IVoteProposalDataListItemStructureProps = IDataListItemProps & {
|
|
4
|
+
/**
|
|
5
|
+
* The ID of proposal.
|
|
6
|
+
*/
|
|
7
|
+
proposalId: string;
|
|
8
|
+
/**
|
|
9
|
+
* The title of the proposal the user voted on.
|
|
10
|
+
*/
|
|
11
|
+
proposalTitle: string;
|
|
12
|
+
/**
|
|
13
|
+
* The vote of the user.
|
|
14
|
+
*/
|
|
15
|
+
voteIndicator: VoteIndicator;
|
|
16
|
+
/**
|
|
17
|
+
* Date of the vote on the proposal in ISO format or as a timestamp
|
|
18
|
+
*/
|
|
19
|
+
date?: number | string;
|
|
20
|
+
/**
|
|
21
|
+
* Custom label for the tag
|
|
22
|
+
*/
|
|
23
|
+
confirmationLabel?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const VoteProposalDataListItemStructure: React.FC<IVoteProposalDataListItemStructureProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Wallet, type IWalletProps } from './wallet';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ICompositeAddress, type IWeb3ComponentProps } from '../../types';
|
|
2
|
+
export interface IWalletProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, IWeb3ComponentProps {
|
|
3
|
+
/**
|
|
4
|
+
* The connected user details.
|
|
5
|
+
*/
|
|
6
|
+
user?: ICompositeAddress;
|
|
7
|
+
}
|
|
8
|
+
export declare const Wallet: React.FC<IWalletProps>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { Config } from 'wagmi';
|
|
2
|
+
export declare enum ChainEntityType {
|
|
3
|
+
ADDRESS = "address",
|
|
4
|
+
TRANSACTION = "tx",
|
|
5
|
+
TOKEN = "token"
|
|
6
|
+
}
|
|
7
|
+
export interface IUseBlockExplorerParams {
|
|
8
|
+
/**
|
|
9
|
+
* Chains definitions to use for returning the block explorer definitions and building the URLs. Defaults to the
|
|
10
|
+
* chains defined on the Wagmi context provider.
|
|
11
|
+
*/
|
|
12
|
+
chains?: Config['chains'];
|
|
13
|
+
/**
|
|
14
|
+
* Uses the block explorer definition of the specified Chain ID when set. Defaults to the ID of the first chain on
|
|
15
|
+
* the chains list.
|
|
16
|
+
*/
|
|
17
|
+
chainId?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IBlockExplorerDefinitions {
|
|
20
|
+
/**
|
|
21
|
+
* Name of the block explorer.
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* URL of the block explorer.
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
}
|
|
29
|
+
export interface IUseBlockExplorerReturn {
|
|
30
|
+
/**
|
|
31
|
+
* Definitions for the requested block explorer.
|
|
32
|
+
*/
|
|
33
|
+
blockExplorer?: IBlockExplorerDefinitions;
|
|
34
|
+
/**
|
|
35
|
+
* Function to retrieve the block explorer from the given chain id. Defaults to the first block explorer of the
|
|
36
|
+
* chain defined on the hook params or on the Wagmi context provider.
|
|
37
|
+
*/
|
|
38
|
+
getBlockExplorer: (chainId?: number) => IBlockExplorerDefinitions | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Function to build the url for the given entity.
|
|
41
|
+
*/
|
|
42
|
+
buildEntityUrl: (params: IBuildEntityUrlParams) => string | undefined;
|
|
43
|
+
}
|
|
44
|
+
export interface IBuildEntityUrlParams {
|
|
45
|
+
/**
|
|
46
|
+
* The type of the entity (e.g. address, transaction, token)
|
|
47
|
+
*/
|
|
48
|
+
type: ChainEntityType;
|
|
49
|
+
/**
|
|
50
|
+
* ID of the chain related to the entity. When set, overrides the chainId set as hook parameter.
|
|
51
|
+
*/
|
|
52
|
+
chainId?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The ID of the entity (e.g. transaction hash for a transaction)
|
|
55
|
+
*/
|
|
56
|
+
id?: string;
|
|
57
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useFormContext, type UseFormContextReturn } from './useFormContext';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type FieldValues, type UseFormReturn } from 'react-hook-form';
|
|
2
|
+
export type UseFormContextReturn<TFormValues extends FieldValues = FieldValues> = UseFormReturn<TFormValues>;
|
|
3
|
+
export declare const useFormContext: <TFormValues extends FieldValues>(enabled: boolean) => UseFormContextReturn<TFormValues>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './formContext';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './generators';
|