@aragon/gov-ui-kit 1.0.49
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/LICENSE +674 -0
- package/README.md +36 -0
- package/build.css +5 -0
- package/dist/index.es.js +2 -0
- package/dist/index.es.js.map +1 -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 +27 -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 +16 -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 +23 -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 +8 -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 +27 -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 +31 -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.d.ts +57 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/index.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 +8 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContent/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertFooter/dialogAlertFooter.d.ts +26 -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 +17 -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.d.ts +54 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/index.d.ts +10 -0
- package/dist/types/src/core/components/dialogs/dialogUtils.d.ts +31 -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 +48 -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 +22 -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 +22 -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 +9 -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 +170 -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 +30 -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 +34 -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/actions/generators/index.d.ts +6 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalAction.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionChangeMembers.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionChangeSettings.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionTokenMint.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionUpdateMetadata.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/generators/proposalActionWithdrawToken.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/index.d.ts +5 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeMembers/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeMembers/proposalActionChangeMembers.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeSettings/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionChangeSettings/proposalActionChangeSettings.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionTokenMint/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionTokenMint/proposalActionTokenMint.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionUpdateMetadata/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionUpdateMetadata/proposalActionUpdateMetadata.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionWithdrawToken/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/actions/proposalActionWithdrawToken/proposalActionWithdrawToken.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/index.d.ts +5 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActions/index.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActions/proposalActions.api.d.ts +53 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActions/proposalActions.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsAction.d.ts +26 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionDecodedView/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionDecodedView/proposalActionsActionDecodedView.d.ts +8 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionRawView/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionRawView/proposalActionsActionRawView.d.ts +8 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionViewAsMenu/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsAction/proposalActionsActionViewAsMenu/proposalActionsActionViewAsMenu.d.ts +20 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsActionVerification/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsActionVerification/proposalActionsActionVerification.d.ts +9 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/index.d.ts +9 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalAction.d.ts +58 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionChangeMembers.d.ts +17 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionChangeSettings.d.ts +21 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionComponent.d.ts +14 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionTokenMint.d.ts +27 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionType.d.ts +9 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionUpdateMetadata.d.ts +44 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionViewMode.d.ts +5 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTypes/proposalActionWithdrawToken.d.ts +50 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsUtils.d.ts +10 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/approvalThresholdResult/approvalThresholdResult.d.ts +7 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/approvalThresholdResult/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/majorityVotingResult/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/majorityVotingResult/majorityVotingResult.d.ts +7 -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 +94 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/proposalDataListItemStructure.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemUtils.d.ts +7 -0
- package/dist/types/src/modules/components/proposal/proposalUtils.d.ts +24 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/index.d.ts +15 -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 +16 -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 +39 -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 +5 -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 +20 -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 +52 -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 +26 -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 +1 -0
- package/dist/types/src/modules/hooks/useBlockExplorer/index.d.ts +1 -0
- package/dist/types/src/modules/hooks/useBlockExplorer/useBlockExplorer.d.ts +45 -0
- package/dist/types/src/modules/index.d.ts +5 -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 +167 -0
- package/src/core/components/accordion/accordionItemContent/index.css +21 -0
- package/src/core/components/accordion/index.css +1 -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 +7 -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 +374 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ICompositeAddress } from '../../../../types';
|
|
2
|
+
import type { IProposalAction } from './proposalAction';
|
|
3
|
+
import { type ProposalActionType } from './proposalActionType';
|
|
4
|
+
export interface IProposalActionTokenMintMetadataReceiver extends ICompositeAddress {
|
|
5
|
+
/**
|
|
6
|
+
* Receivers current token balance.
|
|
7
|
+
*/
|
|
8
|
+
currentBalance: string;
|
|
9
|
+
/**
|
|
10
|
+
* Receivers new token balance after mint.
|
|
11
|
+
*/
|
|
12
|
+
newBalance: string;
|
|
13
|
+
}
|
|
14
|
+
export interface IProposalActionTokenMint extends IProposalAction {
|
|
15
|
+
/**
|
|
16
|
+
* Token mint action.
|
|
17
|
+
*/
|
|
18
|
+
type: ProposalActionType.TOKEN_MINT;
|
|
19
|
+
/**
|
|
20
|
+
* Token receivers.
|
|
21
|
+
*/
|
|
22
|
+
receiver: IProposalActionTokenMintMetadataReceiver;
|
|
23
|
+
/**
|
|
24
|
+
* Token Symbol.
|
|
25
|
+
*/
|
|
26
|
+
tokenSymbol: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum ProposalActionType {
|
|
2
|
+
WITHDRAW_TOKEN = "WITHDRAW_TOKEN",
|
|
3
|
+
ADD_MEMBERS = "ADD_MEMBERS",
|
|
4
|
+
REMOVE_MEMBERS = "REMOVE_MEMBERS",
|
|
5
|
+
UPDATE_METADATA = "UPDATE_METADATA",
|
|
6
|
+
TOKEN_MINT = "TOKEN_MINT",
|
|
7
|
+
CHANGE_SETTINGS_MULTISIG = "CHANGE_SETTINGS_MULTISIG",
|
|
8
|
+
CHANGE_SETTINGS_TOKENVOTE = "CHANGE_SETTINGS_TOKENVOTE"
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { type IProposalAction } from './proposalAction';
|
|
2
|
+
import { type ProposalActionType } from './proposalActionType';
|
|
3
|
+
export interface IProposalActionUpdateMetadataDaoMetadataLink {
|
|
4
|
+
/**
|
|
5
|
+
* Human readable label for link.
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
/**
|
|
9
|
+
* link href.
|
|
10
|
+
*/
|
|
11
|
+
href: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IProposalActionUpdateMetadataDaoMetadata {
|
|
14
|
+
/**
|
|
15
|
+
* Logo url of the DAO.
|
|
16
|
+
*/
|
|
17
|
+
logo: string;
|
|
18
|
+
/**
|
|
19
|
+
* Name of the DAO.
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
* DAO Description.
|
|
24
|
+
*/
|
|
25
|
+
description: string;
|
|
26
|
+
/**
|
|
27
|
+
* Array of metadata links.
|
|
28
|
+
*/
|
|
29
|
+
links: IProposalActionUpdateMetadataDaoMetadataLink[];
|
|
30
|
+
}
|
|
31
|
+
export interface IProposalActionUpdateMetadata extends IProposalAction {
|
|
32
|
+
/**
|
|
33
|
+
* UpdateMetadata action.
|
|
34
|
+
*/
|
|
35
|
+
type: ProposalActionType.UPDATE_METADATA;
|
|
36
|
+
/**
|
|
37
|
+
* Proposed metadata.
|
|
38
|
+
*/
|
|
39
|
+
proposedMetadata: IProposalActionUpdateMetadataDaoMetadata;
|
|
40
|
+
/**
|
|
41
|
+
* Existing metadata.
|
|
42
|
+
*/
|
|
43
|
+
existingMetadata: IProposalActionUpdateMetadataDaoMetadata;
|
|
44
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ICompositeAddress } from '../../../../types';
|
|
2
|
+
import type { IProposalAction } from './proposalAction';
|
|
3
|
+
import type { ProposalActionType } from './proposalActionType';
|
|
4
|
+
export interface IProposalActionWithdrawToken extends IProposalAction {
|
|
5
|
+
/**
|
|
6
|
+
* Withdraw token action type.
|
|
7
|
+
*/
|
|
8
|
+
type: ProposalActionType.WITHDRAW_TOKEN;
|
|
9
|
+
/**
|
|
10
|
+
* Sender handle (the DAO treasury in this case), object with address and optional ensName.
|
|
11
|
+
*/
|
|
12
|
+
sender: ICompositeAddress;
|
|
13
|
+
/**
|
|
14
|
+
* Receiver handle, object with address and optional ensName.
|
|
15
|
+
*/
|
|
16
|
+
receiver: ICompositeAddress;
|
|
17
|
+
/**
|
|
18
|
+
* Amount of tokens to withdraw.
|
|
19
|
+
*/
|
|
20
|
+
amount: string;
|
|
21
|
+
/**
|
|
22
|
+
* Token details of the token to withdraw.
|
|
23
|
+
*/
|
|
24
|
+
token: {
|
|
25
|
+
/**
|
|
26
|
+
* Token name.
|
|
27
|
+
*/
|
|
28
|
+
name: string;
|
|
29
|
+
/**
|
|
30
|
+
* Token symbol.
|
|
31
|
+
*/
|
|
32
|
+
symbol: string;
|
|
33
|
+
/**
|
|
34
|
+
* Token decimals.
|
|
35
|
+
*/
|
|
36
|
+
decimals: number;
|
|
37
|
+
/**
|
|
38
|
+
* Token logo.
|
|
39
|
+
*/
|
|
40
|
+
logo: string;
|
|
41
|
+
/**
|
|
42
|
+
* Token price in USD.
|
|
43
|
+
*/
|
|
44
|
+
priceUsd: string;
|
|
45
|
+
/**
|
|
46
|
+
* Token address.
|
|
47
|
+
*/
|
|
48
|
+
address: string;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type IProposalAction, type IProposalActionChangeMembers, type IProposalActionChangeSettings, type IProposalActionTokenMint, type IProposalActionUpdateMetadata, type IProposalActionWithdrawToken } from './proposalActionsTypes';
|
|
2
|
+
declare class ProposalActionsUtils {
|
|
3
|
+
isWithdrawTokenAction: (action: Partial<IProposalAction>) => action is IProposalActionWithdrawToken;
|
|
4
|
+
isChangeMembersAction: (action: Partial<IProposalAction>) => action is IProposalActionChangeMembers;
|
|
5
|
+
isUpdateMetadataAction: (action: Partial<IProposalAction>) => action is IProposalActionUpdateMetadata;
|
|
6
|
+
isTokenMintAction: (action: Partial<IProposalAction>) => action is IProposalActionTokenMint;
|
|
7
|
+
isChangeSettingsAction: (action: Partial<IProposalAction>) => action is IProposalActionChangeSettings;
|
|
8
|
+
}
|
|
9
|
+
export declare const proposalActionsUtils: ProposalActionsUtils;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IApprovalThresholdResult } from '../proposalDataListItemStructure';
|
|
2
|
+
export interface IApprovalThresholdResultProps extends IApprovalThresholdResult {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* `ApprovalThresholdResult` component
|
|
6
|
+
*/
|
|
7
|
+
export declare const ApprovalThresholdResult: React.FC<IApprovalThresholdResultProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ApprovalThresholdResult, type IApprovalThresholdResultProps } from './approvalThresholdResult';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ProposalDataListItem: {
|
|
2
|
+
Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
|
|
3
|
+
Structure: import("react").FC<import("./proposalDataListItemStructure").IProposalDataListItemStructureProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './proposalDataListItemSkeleton';
|
|
6
|
+
export * from './proposalDataListItemStructure';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MajorityVotingResult, type IMajorityVotingResultProps } from './majorityVotingResult';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type IMajorityVotingResult } from '../proposalDataListItemStructure';
|
|
2
|
+
export interface IMajorityVotingResultProps extends IMajorityVotingResult {
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* `MajorityVotingResult` component
|
|
6
|
+
*/
|
|
7
|
+
export declare const MajorityVotingResult: React.FC<IMajorityVotingResultProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalDataListItemSkeleton, type IProposalDataListItemSkeletonProps } from './proposalDataListItemSkeleton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalDataListItemStatus, type IProposalDataListItemStatusProps } from './proposalDataListItemStatus';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type IProposalDataListItemStructureProps } from '../proposalDataListItemStructure';
|
|
2
|
+
export interface IProposalDataListItemStatusProps extends Pick<IProposalDataListItemStructureProps, 'date' | 'status' | 'voted'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const ProposalDataListItemStatus: React.FC<IProposalDataListItemStatusProps>;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import type { IDataListItemProps } from '../../../../../core';
|
|
2
|
+
import { type ICompositeAddress, type IWeb3ComponentProps } from '../../../../types';
|
|
3
|
+
import { type ProposalStatus } from '../../proposalUtils';
|
|
4
|
+
export type ProposalType = 'majorityVoting' | 'approvalThreshold' | undefined;
|
|
5
|
+
export type ProposalResult<TType extends ProposalType> = TType extends 'majorityVoting' ? IMajorityVotingResult : TType extends 'approvalThreshold' ? IApprovalThresholdResult : undefined;
|
|
6
|
+
export type IProposalDataListItemStructureBaseProps<TType extends ProposalType = ProposalType> = IDataListItemProps & IWeb3ComponentProps & {
|
|
7
|
+
/**
|
|
8
|
+
* Proposal id
|
|
9
|
+
*/
|
|
10
|
+
id?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Date relative to the proposal status in ISO format or as a timestamp
|
|
13
|
+
*/
|
|
14
|
+
date?: string | number;
|
|
15
|
+
/**
|
|
16
|
+
* Optional tag indicating proposal type
|
|
17
|
+
*/
|
|
18
|
+
tag?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Publisher(s) address (and optional ENS name and profile link)
|
|
21
|
+
*/
|
|
22
|
+
publisher: IPublisher | IPublisher[];
|
|
23
|
+
/**
|
|
24
|
+
* Result of the proposal shown only when it is active, challenged or vetoed.
|
|
25
|
+
*/
|
|
26
|
+
result?: ProposalResult<TType>;
|
|
27
|
+
/**
|
|
28
|
+
* Proposal status
|
|
29
|
+
*/
|
|
30
|
+
status: ProposalStatus;
|
|
31
|
+
/**
|
|
32
|
+
* Proposal description
|
|
33
|
+
*/
|
|
34
|
+
summary: string;
|
|
35
|
+
/**
|
|
36
|
+
* Proposal title
|
|
37
|
+
*/
|
|
38
|
+
title: string;
|
|
39
|
+
/**
|
|
40
|
+
* Type of the ProposalDataListItem
|
|
41
|
+
*/
|
|
42
|
+
type?: TType;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates whether the connected wallet has voted
|
|
45
|
+
*/
|
|
46
|
+
voted?: boolean;
|
|
47
|
+
};
|
|
48
|
+
export interface IPublisher extends ICompositeAddress {
|
|
49
|
+
/**
|
|
50
|
+
* Link to additional information about the publisher, such as a profile page or block explorer.
|
|
51
|
+
*/
|
|
52
|
+
link?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface IProposalStage {
|
|
55
|
+
/**
|
|
56
|
+
* Name of the proposal stage
|
|
57
|
+
*/
|
|
58
|
+
title?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Id of the proposal stage
|
|
61
|
+
*/
|
|
62
|
+
id: string | number;
|
|
63
|
+
}
|
|
64
|
+
export interface IProposalResultBase {
|
|
65
|
+
/**
|
|
66
|
+
* Proposal stage
|
|
67
|
+
*/
|
|
68
|
+
stage?: IProposalStage;
|
|
69
|
+
}
|
|
70
|
+
export interface IApprovalThresholdResult extends IProposalResultBase {
|
|
71
|
+
/**
|
|
72
|
+
* Number of approvals for the proposal
|
|
73
|
+
*/
|
|
74
|
+
approvalAmount: number;
|
|
75
|
+
/**
|
|
76
|
+
* Proposal approval threshold
|
|
77
|
+
*/
|
|
78
|
+
approvalThreshold: number;
|
|
79
|
+
}
|
|
80
|
+
export interface IMajorityVotingResult extends IProposalResultBase {
|
|
81
|
+
/**
|
|
82
|
+
* Winning option
|
|
83
|
+
*/
|
|
84
|
+
option: string;
|
|
85
|
+
/**
|
|
86
|
+
* Number of votes for the winning option
|
|
87
|
+
*/
|
|
88
|
+
voteAmount: string;
|
|
89
|
+
/**
|
|
90
|
+
* Percentage of votes for the winning option
|
|
91
|
+
*/
|
|
92
|
+
votePercentage: number;
|
|
93
|
+
}
|
|
94
|
+
export type IProposalDataListItemStructureProps = IProposalDataListItemStructureBaseProps<undefined> | IProposalDataListItemStructureBaseProps<'majorityVoting'> | IProposalDataListItemStructureBaseProps<'approvalThreshold'>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ProposalStatus } from '../proposalUtils';
|
|
2
|
+
declare class ProposalDataListItemUtils {
|
|
3
|
+
ongoingStatuses: ProposalStatus[];
|
|
4
|
+
isOngoingStatus: (status: ProposalStatus) => boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const proposalDataListItemUtils: ProposalDataListItemUtils;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { TagVariant } from '../../../core';
|
|
2
|
+
export declare enum ProposalStatus {
|
|
3
|
+
ACCEPTED = "ACCEPTED",
|
|
4
|
+
ACTIVE = "ACTIVE",
|
|
5
|
+
CHALLENGED = "CHALLENGED",
|
|
6
|
+
DRAFT = "DRAFT",
|
|
7
|
+
EXECUTED = "EXECUTED",
|
|
8
|
+
EXPIRED = "EXPIRED",
|
|
9
|
+
FAILED = "FAILED",
|
|
10
|
+
PARTIALLY_EXECUTED = "PARTIALLY_EXECUTED",
|
|
11
|
+
PENDING = "PENDING",
|
|
12
|
+
EXECUTABLE = "EXECUTABLE",
|
|
13
|
+
REJECTED = "REJECTED",
|
|
14
|
+
VETOED = "VETOED"
|
|
15
|
+
}
|
|
16
|
+
export declare enum ProposalVotingStatus {
|
|
17
|
+
ACTIVE = "ACTIVE",
|
|
18
|
+
PENDING = "PENDING",
|
|
19
|
+
ACCEPTED = "ACCEPTED",
|
|
20
|
+
REJECTED = "REJECTED",
|
|
21
|
+
UNREACHED = "UNREACHED"
|
|
22
|
+
}
|
|
23
|
+
export declare const proposalStatusToVotingStatus: Record<ProposalStatus, ProposalVotingStatus>;
|
|
24
|
+
export declare const proposalStatusToTagVariant: Record<ProposalStatus, TagVariant>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const ProposalVoting: {
|
|
2
|
+
BreakdownMultisig: import("react").FC<import("./proposalVotingBreakdownMultisig").IProposalVotingBreakdownMultisigProps>;
|
|
3
|
+
BreakdownToken: import("react").FC<import("./proposalVotingBreakdownToken").IProposalVotingBreakdownTokenProps>;
|
|
4
|
+
Container: import("react").FC<import("./proposalVotingContainer").IProposalVotingContainerProps>;
|
|
5
|
+
Details: import("react").FC<import("./proposalVotingDetails").IProposalVotingDetailsProps>;
|
|
6
|
+
Stage: import("react").FC<import("./proposalVotingStage").IProposalVotingStageProps>;
|
|
7
|
+
Votes: import("react").FC<import("./proposalVotingVotes").IProposalVotingVotesProps>;
|
|
8
|
+
};
|
|
9
|
+
export * from './proposalVotingBreakdownMultisig';
|
|
10
|
+
export * from './proposalVotingBreakdownToken';
|
|
11
|
+
export * from './proposalVotingContainer';
|
|
12
|
+
export * from './proposalVotingDefinitions';
|
|
13
|
+
export * from './proposalVotingDetails';
|
|
14
|
+
export * from './proposalVotingStage';
|
|
15
|
+
export * from './proposalVotingVotes';
|
|
@@ -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,16 @@
|
|
|
1
|
+
import React, { type ComponentProps } from 'react';
|
|
2
|
+
export interface IProposalVotingContainerProps extends ComponentProps<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Title displayed on top.
|
|
5
|
+
*/
|
|
6
|
+
title: string;
|
|
7
|
+
/**
|
|
8
|
+
* Description of the proposal voting.
|
|
9
|
+
*/
|
|
10
|
+
description: string;
|
|
11
|
+
/**
|
|
12
|
+
* Active stage that will be expanded by default for multi-stage proposals.
|
|
13
|
+
*/
|
|
14
|
+
activeStage?: string;
|
|
15
|
+
}
|
|
16
|
+
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,39 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { ProposalVotingStatus } from '../../proposalUtils';
|
|
3
|
+
import { ProposalVotingTab } from '../proposalVotingDefinitions';
|
|
4
|
+
export interface IProposalVotingStageProps extends ComponentProps<'div'> {
|
|
5
|
+
/**
|
|
6
|
+
* Status of the stage.
|
|
7
|
+
*/
|
|
8
|
+
status: ProposalVotingStatus;
|
|
9
|
+
/**
|
|
10
|
+
* Start date of the stage in timestamp or ISO format.
|
|
11
|
+
*/
|
|
12
|
+
startDate: number | string;
|
|
13
|
+
/**
|
|
14
|
+
* Start date of the stage in timestamp or ISO format.
|
|
15
|
+
*/
|
|
16
|
+
endDate: number | string;
|
|
17
|
+
/**
|
|
18
|
+
* Default tab displayed for the current stage. Defaults to details tab for pending and unreached states and to
|
|
19
|
+
* breakdown tab for active, accepted and rejected states.
|
|
20
|
+
*/
|
|
21
|
+
defaultTab?: ProposalVotingTab;
|
|
22
|
+
/**
|
|
23
|
+
* Name of the proposal stage displayed for multi-stage proposals.
|
|
24
|
+
*/
|
|
25
|
+
name?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Forces the multi-stage content to be rendered when set to true.
|
|
28
|
+
*/
|
|
29
|
+
forceMount?: true;
|
|
30
|
+
/**
|
|
31
|
+
* Index of the stage set automatically by the ProposalVotingContainer for multi-stage proposals.
|
|
32
|
+
*/
|
|
33
|
+
index?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Defines if the proposal has multiple stages or not.
|
|
36
|
+
*/
|
|
37
|
+
isMultiStage?: boolean;
|
|
38
|
+
}
|
|
39
|
+
export declare const ProposalVotingStage: React.FC<IProposalVotingStageProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalVotingStageContextProvider, useProposalVotingStageContext, type IProposalVotingStageContext, } from './proposalVotingStageContext';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { IProposalVotingStageProps } from '../proposalVotingStage/proposalVotingStage';
|
|
2
|
+
export interface IProposalVotingStageContext extends Pick<IProposalVotingStageProps, 'startDate' | 'endDate'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const ProposalVotingStageContextProvider: import("react").Provider<IProposalVotingStageContext | null>;
|
|
5
|
+
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,20 @@
|
|
|
1
|
+
import { type RefObject } from 'react';
|
|
2
|
+
import { type ITabsRootProps } from '../../../../../core';
|
|
3
|
+
import { ProposalVotingStatus } from '../../proposalUtils';
|
|
4
|
+
import { ProposalVotingTab } from '../proposalVotingDefinitions';
|
|
5
|
+
export interface IProposalVotingTabsProps extends ITabsRootProps {
|
|
6
|
+
/**
|
|
7
|
+
* Voting status of the proposal.
|
|
8
|
+
*/
|
|
9
|
+
status: ProposalVotingStatus;
|
|
10
|
+
/**
|
|
11
|
+
* Default proposal voting tab selected.
|
|
12
|
+
* @default ProposalVotingTab.BREAKDOWN
|
|
13
|
+
*/
|
|
14
|
+
defaultValue?: ProposalVotingTab;
|
|
15
|
+
/**
|
|
16
|
+
* Reference object of the parent accordion component (on multi-stage proposals) to update its height on tab change.
|
|
17
|
+
*/
|
|
18
|
+
accordionRef?: RefObject<HTMLDivElement>;
|
|
19
|
+
}
|
|
20
|
+
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';
|