@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 @@
|
|
|
1
|
+
export * from './addressInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AssetDataListItemSkeleton, type IAssetDataListItemSkeletonProps } from './assetDataListItemSkeleton';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
3
|
+
export type IAssetDataListItemStructureProps = IDataListItemProps & {
|
|
4
|
+
/**
|
|
5
|
+
* The name of the asset.
|
|
6
|
+
*/
|
|
7
|
+
name: string;
|
|
8
|
+
/**
|
|
9
|
+
* The symbol of the asset.
|
|
10
|
+
*/
|
|
11
|
+
symbol: string;
|
|
12
|
+
/**
|
|
13
|
+
* The amount of the asset.
|
|
14
|
+
*/
|
|
15
|
+
amount: number | string;
|
|
16
|
+
/**
|
|
17
|
+
* The logo source of the asset
|
|
18
|
+
*/
|
|
19
|
+
logoSrc?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The fiat price of the asset.
|
|
22
|
+
*/
|
|
23
|
+
fiatPrice?: number | string;
|
|
24
|
+
/**
|
|
25
|
+
* Hides the asset value when set to true.
|
|
26
|
+
*/
|
|
27
|
+
hideValue?: boolean;
|
|
28
|
+
};
|
|
29
|
+
export declare const AssetDataListItemStructure: React.FC<IAssetDataListItemStructureProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AssetDataListItemStructure, type IAssetDataListItemStructureProps } from './assetDataListItemStructure';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const AssetDataListItem: {
|
|
2
|
+
Structure: import("react").FC<import("./assetDataListItemStructure").IAssetDataListItemStructureProps>;
|
|
3
|
+
Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './assetDataListItemSkeleton';
|
|
6
|
+
export * from './assetDataListItemStructure';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ICompositeAddress, type IWeb3ComponentProps } from '../../../types';
|
|
2
|
+
export interface IAssetTransferProps extends IWeb3ComponentProps {
|
|
3
|
+
/**
|
|
4
|
+
* Sender of the transaction.
|
|
5
|
+
*/
|
|
6
|
+
sender: ICompositeAddress;
|
|
7
|
+
/**
|
|
8
|
+
* Recipient of the transaction.
|
|
9
|
+
*/
|
|
10
|
+
recipient: ICompositeAddress;
|
|
11
|
+
/**
|
|
12
|
+
* Name of the asset transferred.
|
|
13
|
+
*/
|
|
14
|
+
assetName: string;
|
|
15
|
+
/**
|
|
16
|
+
* Address of the asset transferred.
|
|
17
|
+
*/
|
|
18
|
+
assetAddress?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Icon URL of the transferred asset.
|
|
21
|
+
*/
|
|
22
|
+
assetIconSrc?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Asset amount that was transferred.
|
|
25
|
+
*/
|
|
26
|
+
assetAmount: number | string;
|
|
27
|
+
/**
|
|
28
|
+
* Symbol of the asset transferred. Example: ETH, DAI, etc.
|
|
29
|
+
*/
|
|
30
|
+
assetSymbol: string;
|
|
31
|
+
/**
|
|
32
|
+
* Price per asset in fiat.
|
|
33
|
+
*/
|
|
34
|
+
assetFiatPrice?: number | string;
|
|
35
|
+
}
|
|
36
|
+
export declare const AssetTransfer: React.FC<IAssetTransferProps>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type ICompositeAddress } from '../../../../types';
|
|
2
|
+
export type TxRole = 'sender' | 'recipient';
|
|
3
|
+
export interface IAssetTransferAddressProps {
|
|
4
|
+
/**
|
|
5
|
+
* Role of the transaction participant.
|
|
6
|
+
*/
|
|
7
|
+
txRole: TxRole;
|
|
8
|
+
/**
|
|
9
|
+
* Participant of the transfer to display the details for.
|
|
10
|
+
*/
|
|
11
|
+
participant: ICompositeAddress;
|
|
12
|
+
/**
|
|
13
|
+
* URL of the block explorer.
|
|
14
|
+
*/
|
|
15
|
+
addressUrl?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare const AssetTransferAddress: React.FC<IAssetTransferAddressProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AssetTransferAddress, type IAssetTransferAddressProps } from './assetTransferAddress';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AssetTransfer, type IAssetTransferProps } from './assetTransfer';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type AvatarSize, type IAvatarProps } from '../../../../core';
|
|
3
|
+
export interface IDaoAvatarProps extends Omit<IAvatarProps, 'fallback'> {
|
|
4
|
+
/**
|
|
5
|
+
* Name of the DAO
|
|
6
|
+
*/
|
|
7
|
+
name?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The size of the avatar.
|
|
10
|
+
* @default lg
|
|
11
|
+
*/
|
|
12
|
+
size?: AvatarSize;
|
|
13
|
+
}
|
|
14
|
+
export declare const DaoAvatar: React.FC<IDaoAvatarProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DaoAvatar, type IDaoAvatarProps } from './daoAvatar';
|
package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemSkeleton/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DaoDataListItemSkeleton, type IDaoDataListItemSkeletonProps } from './daoDataListItemSkeleton';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
3
|
+
export type IDaoDataListItemStructureProps = IDataListItemProps & {
|
|
4
|
+
/**
|
|
5
|
+
* The name of the DAO.
|
|
6
|
+
*/
|
|
7
|
+
name?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The source of the logo for the DAO.
|
|
10
|
+
*/
|
|
11
|
+
logoSrc?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The description of the DAO.
|
|
14
|
+
*/
|
|
15
|
+
description?: string;
|
|
16
|
+
/**
|
|
17
|
+
* The address of the DAO.
|
|
18
|
+
*/
|
|
19
|
+
address?: string;
|
|
20
|
+
/**
|
|
21
|
+
* The ENS (Ethereum Name Service) address of the DAO.
|
|
22
|
+
*/
|
|
23
|
+
ens?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The network on which the DAO operates.
|
|
26
|
+
*/
|
|
27
|
+
network?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Displays an external link icon and updates the information shown when set to true.
|
|
30
|
+
*/
|
|
31
|
+
isExternal?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export declare const DaoDataListItemStructure: React.FC<IDaoDataListItemStructureProps>;
|
package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemStructure/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DaoDataListItemStructure, type IDaoDataListItemStructureProps } from './daoDataListItemStructure';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const DaoDataListItem: {
|
|
2
|
+
Structure: import("react").FC<import("./daoDataListItemStructure").IDaoDataListItemStructureProps>;
|
|
3
|
+
Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './daoDataListItemSkeleton';
|
|
6
|
+
export * from './daoDataListItemStructure';
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { QueryClient } from '@tanstack/react-query';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
import { type Config, type State } from 'wagmi';
|
|
4
|
+
import { type IGukCoreProviderProps } from '../../../core';
|
|
5
|
+
import { type ModulesCopy } from '../../assets';
|
|
6
|
+
export interface IGukModulesContext {
|
|
7
|
+
/**
|
|
8
|
+
* Copy for the modules components.
|
|
9
|
+
*/
|
|
10
|
+
copy: ModulesCopy;
|
|
11
|
+
}
|
|
12
|
+
export interface IGukModulesProviderProps {
|
|
13
|
+
/**
|
|
14
|
+
* Wagmi configurations to be forwarded to the WagmiProvider. The default configurations support some basic chains
|
|
15
|
+
* (ethereum, base, polygon, arbitrum) and their related testnets and uses open RPC endpoints, @see defaultWagmiConfig
|
|
16
|
+
* @default defaultWagmiConfig
|
|
17
|
+
*/
|
|
18
|
+
wagmiConfig?: Config;
|
|
19
|
+
/**
|
|
20
|
+
* Optional initial state for Wagmi provider.
|
|
21
|
+
*/
|
|
22
|
+
wagmiInitialState?: State;
|
|
23
|
+
/**
|
|
24
|
+
* React-query configurations to be forwarded to the QueryClientProvider, uses the defaults configurations from
|
|
25
|
+
* react-query when not specified (see https://tanstack.com/query/latest/docs/framework/react/guides/important-defaults).
|
|
26
|
+
* @default defaultQueryClient
|
|
27
|
+
*/
|
|
28
|
+
queryClient?: QueryClient;
|
|
29
|
+
/**
|
|
30
|
+
* Values for the GukCoreProvider context.
|
|
31
|
+
* @see IGukCoreContext
|
|
32
|
+
*/
|
|
33
|
+
coreProviderValues?: IGukCoreProviderProps['values'];
|
|
34
|
+
/**
|
|
35
|
+
* Context provider values.
|
|
36
|
+
*/
|
|
37
|
+
values?: Partial<IGukModulesContext>;
|
|
38
|
+
/**
|
|
39
|
+
* Children of the provider.
|
|
40
|
+
*/
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
}
|
|
43
|
+
export declare const GukModulesProvider: React.FC<IGukModulesProviderProps>;
|
|
44
|
+
export declare const useGukModulesContext: () => IGukModulesContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GukModulesProvider, useGukModulesContext, type IGukModulesContext, type IGukModulesProviderProps, } from './gukModulesProvider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MemberAvatar, type IMemberAvatarProps } from './memberAvatar';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type IAvatarProps } from '../../../../core';
|
|
3
|
+
import type { IWeb3ComponentProps } from '../../../types';
|
|
4
|
+
export interface IMemberAvatarProps extends Omit<IAvatarProps, 'fallback'>, IWeb3ComponentProps {
|
|
5
|
+
/**
|
|
6
|
+
* ENS name of the user to lookup avatar src.
|
|
7
|
+
*/
|
|
8
|
+
ensName?: string;
|
|
9
|
+
/**
|
|
10
|
+
* 0x address of the user to look up ENS name and avatar src.
|
|
11
|
+
*/
|
|
12
|
+
address?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Direct URL src of the user avatar image to be rendered.
|
|
15
|
+
*/
|
|
16
|
+
avatarSrc?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const MemberAvatar: React.FC<IMemberAvatarProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const MemberDataListItem: {
|
|
2
|
+
Structure: import("react").FC<import("./memberDataListItemStructure").IMemberDataListItemProps>;
|
|
3
|
+
Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './memberDataListItemSkeleton';
|
|
6
|
+
export * from './memberDataListItemStructure';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MemberDataListItemSkeleton, type IMemberDataListItemSkeletonProps } from './memberDataListItemSkeleton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MemberDataListItemStructure, type IMemberDataListItemProps } from './memberDataListItemStructure';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
2
|
+
export type IMemberDataListItemProps = IDataListItemProps & {
|
|
3
|
+
/**
|
|
4
|
+
* Whether the member is a delegate of current user or not.
|
|
5
|
+
*/
|
|
6
|
+
isDelegate?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* The number of delegations the member has from other members.
|
|
9
|
+
*/
|
|
10
|
+
delegationCount?: number;
|
|
11
|
+
/**
|
|
12
|
+
* The total amount of tokens.
|
|
13
|
+
*/
|
|
14
|
+
tokenAmount?: number | string;
|
|
15
|
+
/**
|
|
16
|
+
* ENS name of the user.
|
|
17
|
+
*/
|
|
18
|
+
ensName?: string;
|
|
19
|
+
/**
|
|
20
|
+
* 0x address of the user.
|
|
21
|
+
*/
|
|
22
|
+
address: string;
|
|
23
|
+
/**
|
|
24
|
+
* Direct URL src of the user avatar image to be rendered.
|
|
25
|
+
*/
|
|
26
|
+
avatarSrc?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Hide token voting label
|
|
29
|
+
*/
|
|
30
|
+
hideLabelTokenVoting?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Token Symbol.
|
|
33
|
+
*/
|
|
34
|
+
tokenSymbol?: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const MemberDataListItemStructure: React.FC<IMemberDataListItemProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ProposalActions: {
|
|
2
|
+
Root: import("react").FC<import("./proposalActionsRoot").IProposalActionsRootProps>;
|
|
3
|
+
Container: import("react").FC<import("./proposalActionsContainer").IProposalActionsContainerProps>;
|
|
4
|
+
Item: <TAction extends import("./proposalActionsDefinitions").IProposalAction = import("./proposalActionsDefinitions").IProposalAction>(props: import("./proposalActionsItem").IProposalActionsItemProps<TAction>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
Footer: import("react").FC<import("./proposalActionsFooter").IProposalActionsFooterProps>;
|
|
6
|
+
};
|
|
7
|
+
export * from './proposalActionsContainer';
|
|
8
|
+
export * from './proposalActionsDefinitions';
|
|
9
|
+
export * from './proposalActionsFooter';
|
|
10
|
+
export * from './proposalActionsItem';
|
|
11
|
+
export * from './proposalActionsList';
|
|
12
|
+
export * from './proposalActionsRoot';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalActionsContainer, type IProposalActionsContainerProps } from './proposalActionsContainer';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { type ComponentProps } from 'react';
|
|
2
|
+
export interface IProposalActionsContainerProps extends Omit<ComponentProps<'div'>, 'defaultValue'> {
|
|
3
|
+
/**
|
|
4
|
+
* Custom description for the empty state.
|
|
5
|
+
*/
|
|
6
|
+
emptyStateDescription: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const ProposalActionsContainer: React.FC<IProposalActionsContainerProps>;
|
package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContext/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalActionsContextProvider, proposalActionsContext, useProposalActionsContext, type IProposalActionsContext, } from './proposalActionsContext';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface IProposalActionsContext {
|
|
2
|
+
/**
|
|
3
|
+
* Total number of proposal actions.
|
|
4
|
+
*/
|
|
5
|
+
actionsCount: number;
|
|
6
|
+
/**
|
|
7
|
+
* Callback used to update the actions count.
|
|
8
|
+
*/
|
|
9
|
+
setActionsCount: (count: number) => void;
|
|
10
|
+
/**
|
|
11
|
+
* List of the expanded actions ids.
|
|
12
|
+
*/
|
|
13
|
+
expandedActions: string[];
|
|
14
|
+
/**
|
|
15
|
+
* Callback used to update the current expanded actions.
|
|
16
|
+
*/
|
|
17
|
+
setExpandedActions: (items: string[]) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const proposalActionsContext: import("react").Context<IProposalActionsContext | null>;
|
|
20
|
+
export declare const ProposalActionsContextProvider: import("react").Provider<IProposalActionsContext | null>;
|
|
21
|
+
export declare const useProposalActionsContext: () => IProposalActionsContext;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import type { IProposalAction } from '../proposalActionsDefinitions';
|
|
3
|
+
export declare enum ProposalActionsDecoderView {
|
|
4
|
+
DECODED = "DECODED",
|
|
5
|
+
RAW = "RAW"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ProposalActionsDecoderMode {
|
|
8
|
+
READ = "READ",
|
|
9
|
+
EDIT = "EDIT",
|
|
10
|
+
WATCH = "WATCH"
|
|
11
|
+
}
|
|
12
|
+
export interface IProposalActionsDecoderProps extends ComponentProps<'div'> {
|
|
13
|
+
/**
|
|
14
|
+
* Action to display the values for.
|
|
15
|
+
*/
|
|
16
|
+
action: IProposalAction;
|
|
17
|
+
/**
|
|
18
|
+
* Prefix to be prepended to all the action values on edit mode.
|
|
19
|
+
*/
|
|
20
|
+
formPrefix?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the behaviour of the decoder:
|
|
23
|
+
* - READ: Displays the values as disabled using the values on the action property;
|
|
24
|
+
* - EDIT: Displays the values as editable and updates the values on the form context;
|
|
25
|
+
* - WATCH: Displays the values as disabled but each value listens to the changes on the form context;
|
|
26
|
+
* @default READ
|
|
27
|
+
*/
|
|
28
|
+
mode?: ProposalActionsDecoderMode;
|
|
29
|
+
/**
|
|
30
|
+
* Defines the action values to be displayed:
|
|
31
|
+
* - DECODED: Displays the parameters of the action and the value field if the function is payable;
|
|
32
|
+
* - RAW: Only displays the base values of the action (value and data);
|
|
33
|
+
* @default RAW
|
|
34
|
+
*/
|
|
35
|
+
view?: ProposalActionsDecoderView;
|
|
36
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ProposalActionsDecoderField, type IProposalActionsDecoderFieldProps } from './proposalActionsDecoderField';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IProposalActionInputDataParameter } from '../../proposalActionsDefinitions';
|
|
2
|
+
import { type IProposalActionsDecoderProps } from '../proposalActionsDecoder.api';
|
|
3
|
+
export interface IProposalActionsDecoderFieldProps extends Pick<IProposalActionsDecoderProps, 'mode' | 'formPrefix'> {
|
|
4
|
+
/**
|
|
5
|
+
* Parameter to be rendered.
|
|
6
|
+
*/
|
|
7
|
+
parameter: IProposalActionInputDataParameter;
|
|
8
|
+
/**
|
|
9
|
+
* Name of the form field.
|
|
10
|
+
*/
|
|
11
|
+
fieldName: string;
|
|
12
|
+
/**
|
|
13
|
+
* Hides the sub-component labels when set to true.
|
|
14
|
+
*/
|
|
15
|
+
hideLabels?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Displays a delete button triggering this callback when set, to be used for array types.
|
|
18
|
+
*/
|
|
19
|
+
onDeleteClick?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare const ProposalActionsDecoderField: React.FC<IProposalActionsDecoderFieldProps>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { ProposalActionsDecoderTextField } from './proposalActionsDecoderTextField';
|
|
2
|
+
export type { IProposalActionsDecoderTextFieldBaseProps, IProposalActionsDecoderTextFieldComponentProps, IProposalActionsDecoderTextFieldProps, } from './proposalActionsDecoderTextField.api';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { IInputContainerProps } from '../../../../../../core';
|
|
2
|
+
import type { IProposalActionInputDataParameter } from '../../proposalActionsDefinitions';
|
|
3
|
+
import type { IProposalActionsDecoderProps } from '../proposalActionsDecoder.api';
|
|
4
|
+
export interface IProposalActionsDecoderTextFieldBaseProps {
|
|
5
|
+
/**
|
|
6
|
+
* Action parameter to be rendered.
|
|
7
|
+
*/
|
|
8
|
+
parameter: IProposalActionInputDataParameter;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the input field.
|
|
11
|
+
*/
|
|
12
|
+
fieldName: string;
|
|
13
|
+
/**
|
|
14
|
+
* Component to be used.
|
|
15
|
+
* @default input
|
|
16
|
+
*/
|
|
17
|
+
component?: 'textarea' | 'input';
|
|
18
|
+
/**
|
|
19
|
+
* Classname for the input component.
|
|
20
|
+
*/
|
|
21
|
+
className?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface IProposalActionsDecoderTextFieldProps extends IProposalActionsDecoderTextFieldBaseProps, Pick<IProposalActionsDecoderProps, 'mode' | 'formPrefix'> {
|
|
24
|
+
/**
|
|
25
|
+
* Hides the default labels when set to true.
|
|
26
|
+
*/
|
|
27
|
+
hideLabels?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface IProposalActionsDecoderTextFieldComponentProps extends IProposalActionsDecoderTextFieldBaseProps, Pick<IInputContainerProps, 'label' | 'helpText'> {
|
|
30
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IProposalActionsDecoderTextFieldComponentProps } from './proposalActionsDecoderTextField.api';
|
|
2
|
+
export interface IProposalActionsDecoderTextFieldEditProps extends IProposalActionsDecoderTextFieldComponentProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const ProposalActionsDecoderTextFieldEdit: React.FC<IProposalActionsDecoderTextFieldEditProps>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { IProposalActionsDecoderTextFieldComponentProps } from './proposalActionsDecoderTextField.api';
|
|
2
|
+
export interface IProposalActionsDecoderTextFieldWatchProps extends IProposalActionsDecoderTextFieldComponentProps {
|
|
3
|
+
}
|
|
4
|
+
export declare const ProposalActionsDecoderTextFieldWatch: React.FC<IProposalActionsDecoderTextFieldWatchProps>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { DeepPartial } from 'react-hook-form';
|
|
2
|
+
import type { ModulesCopy } from '../../../../assets';
|
|
3
|
+
import type { IProposalAction, IProposalActionInputDataParameter } from '../proposalActionsDefinitions';
|
|
4
|
+
export interface IGetValidationRulesParams {
|
|
5
|
+
/**
|
|
6
|
+
* Label of the field used for validation errors.
|
|
7
|
+
*/
|
|
8
|
+
label: string;
|
|
9
|
+
/**
|
|
10
|
+
* Type of the field to build the validation rules.
|
|
11
|
+
*/
|
|
12
|
+
type: string;
|
|
13
|
+
/**
|
|
14
|
+
* Strings to use for validation errors.
|
|
15
|
+
*/
|
|
16
|
+
errorMessages: ModulesCopy['proposalActionsDecoder']['validation'];
|
|
17
|
+
/**
|
|
18
|
+
* Defines if the field is required or not.
|
|
19
|
+
*/
|
|
20
|
+
required?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export type ProposalActionsFieldValue = string | boolean | undefined | null | unknown[];
|
|
23
|
+
export type NestedProposalActionFormValues = DeepPartial<IProposalAction> | Record<string, unknown>;
|
|
24
|
+
declare class ProposalActionsDecoderUtils {
|
|
25
|
+
private bytesRegex;
|
|
26
|
+
private unsignedNumberRegex;
|
|
27
|
+
getFieldName: (name: string, prefix?: string) => string;
|
|
28
|
+
validateValue: (value: ProposalActionsFieldValue, params: IGetValidationRulesParams) => string | true | undefined;
|
|
29
|
+
validateRequired: (value?: ProposalActionsFieldValue) => boolean;
|
|
30
|
+
validateBoolean: (value?: ProposalActionsFieldValue) => boolean;
|
|
31
|
+
validateBytes: (type: string, value?: ProposalActionsFieldValue) => boolean;
|
|
32
|
+
validateUnsignedNumber: (value?: ProposalActionsFieldValue) => boolean;
|
|
33
|
+
isArrayType: (type: string) => boolean;
|
|
34
|
+
isTupleType: (type: string) => type is "tuple";
|
|
35
|
+
isNumberType: (type: string) => boolean;
|
|
36
|
+
isUnsignedNumberType: (type: string) => boolean;
|
|
37
|
+
isSignedNumberType: (type: string) => boolean;
|
|
38
|
+
getArrayItemType: (type: string) => string;
|
|
39
|
+
formValuesToFunctionParameters: (formValues: NestedProposalActionFormValues, formPrefix?: string) => unknown[] | undefined;
|
|
40
|
+
getNestedParameters: (parameter: IProposalActionInputDataParameter) => IProposalActionInputDataParameter[];
|
|
41
|
+
private guardArrayType;
|
|
42
|
+
private guardValueType;
|
|
43
|
+
}
|
|
44
|
+
export declare const proposalActionsDecoderUtils: ProposalActionsDecoderUtils;
|
|
45
|
+
export {};
|