@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,52 @@
|
|
|
1
|
+
import { type Hash } from 'viem';
|
|
2
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
3
|
+
export declare enum TransactionStatus {
|
|
4
|
+
PENDING = "PENDING",
|
|
5
|
+
SUCCESS = "SUCCESS",
|
|
6
|
+
FAILED = "FAILED"
|
|
7
|
+
}
|
|
8
|
+
export declare enum TransactionType {
|
|
9
|
+
DEPOSIT = "DEPOSIT",
|
|
10
|
+
WITHDRAW = "WITHDRAW",
|
|
11
|
+
ACTION = "ACTION"
|
|
12
|
+
}
|
|
13
|
+
export type ITransactionDataListItemProps = IDataListItemProps & {
|
|
14
|
+
/**
|
|
15
|
+
* The chain ID of the transaction.
|
|
16
|
+
*/
|
|
17
|
+
chainId: number;
|
|
18
|
+
/**
|
|
19
|
+
* The address of the token.
|
|
20
|
+
*/
|
|
21
|
+
tokenAddress?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The symbol of the token, e.g. 'ETH' as a string
|
|
24
|
+
*/
|
|
25
|
+
tokenSymbol?: string;
|
|
26
|
+
/**
|
|
27
|
+
* The token value in the transaction.
|
|
28
|
+
*/
|
|
29
|
+
tokenAmount?: number | string;
|
|
30
|
+
/**
|
|
31
|
+
* The estimated fiat value of the transaction.
|
|
32
|
+
*/
|
|
33
|
+
tokenPrice?: number | string;
|
|
34
|
+
/**
|
|
35
|
+
* The type of transaction.
|
|
36
|
+
* @default TransactionType.ACTION
|
|
37
|
+
*/
|
|
38
|
+
type?: TransactionType;
|
|
39
|
+
/**
|
|
40
|
+
* The current status of a blockchain transaction on the network.
|
|
41
|
+
* @default TransactionStatus.PENDING
|
|
42
|
+
*/
|
|
43
|
+
status?: TransactionStatus;
|
|
44
|
+
/**
|
|
45
|
+
* Date of transaction in ISO format or as a timestamp
|
|
46
|
+
*/
|
|
47
|
+
date: number | string;
|
|
48
|
+
/**
|
|
49
|
+
* The transaction hash.
|
|
50
|
+
*/
|
|
51
|
+
hash: Hash;
|
|
52
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const VoteDataListItem: {
|
|
2
|
+
Structure: import("react").FC<import("./voteDataListItemStructure").IVoteDataListItemStructureProps>;
|
|
3
|
+
Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './voteDataListItemSkeleton';
|
|
6
|
+
export * from './voteDataListItemStructure';
|
package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemSkeleton/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VoteDataListItemSkeleton, type IVoteDataListItemSkeletonProps } from './voteDataListItemSkeleton';
|
package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemStructure/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VoteDataListItemStructure, type IVoteDataListItemStructureProps } from './voteDataListItemStructure';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
2
|
+
import { type ICompositeAddress } from '../../../../types';
|
|
3
|
+
import { type VoteIndicator } from '../../voteUtils';
|
|
4
|
+
export type IVoteDataListItemStructureProps = IDataListItemProps & {
|
|
5
|
+
/**
|
|
6
|
+
* The account details of the voter.
|
|
7
|
+
*/
|
|
8
|
+
voter: ICompositeAddress;
|
|
9
|
+
/**
|
|
10
|
+
* Whether the voter is a delegate of the current user or not.
|
|
11
|
+
*/
|
|
12
|
+
isDelegate?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* The vote of the user.
|
|
15
|
+
*/
|
|
16
|
+
voteIndicator: VoteIndicator;
|
|
17
|
+
/**
|
|
18
|
+
* If token-based voting, the amount of token voting power used.
|
|
19
|
+
*/
|
|
20
|
+
votingPower?: number | string;
|
|
21
|
+
/**
|
|
22
|
+
* If token-based voting, the symbol of the voting power used.
|
|
23
|
+
*/
|
|
24
|
+
tokenSymbol?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const VoteDataListItemStructure: React.FC<IVoteDataListItemStructureProps>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const VoteProposalDataListItem: {
|
|
2
|
+
Structure: import("react").FC<import("./voteProposalDataListItemStructure").IVoteProposalDataListItemStructureProps>;
|
|
3
|
+
Skeleton: import("react").FC<import("../../../..").IDataListItemProps>;
|
|
4
|
+
};
|
|
5
|
+
export * from './voteProposalDataListItemSkeleton';
|
|
6
|
+
export * from './voteProposalDataListItemStructure';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VoteProposalDataListItemSkeleton, type IVoteProposalDataListItemSkeletonProps, } from './voteProposalDataListItemSkeleton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { VoteProposalDataListItemStructure, type IVoteProposalDataListItemStructureProps, } from './voteProposalDataListItemStructure';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type IDataListItemProps } from '../../../../../core';
|
|
2
|
+
import { type VoteIndicator } from '../../voteUtils';
|
|
3
|
+
export type IVoteProposalDataListItemStructureProps = IDataListItemProps & {
|
|
4
|
+
/**
|
|
5
|
+
* The ID of proposal.
|
|
6
|
+
*/
|
|
7
|
+
proposalId: string;
|
|
8
|
+
/**
|
|
9
|
+
* The title of the proposal the user voted on.
|
|
10
|
+
*/
|
|
11
|
+
proposalTitle: string;
|
|
12
|
+
/**
|
|
13
|
+
* The vote of the user.
|
|
14
|
+
*/
|
|
15
|
+
voteIndicator: VoteIndicator;
|
|
16
|
+
/**
|
|
17
|
+
* Date of the vote on the proposal in ISO format or as a timestamp
|
|
18
|
+
*/
|
|
19
|
+
date?: number | string;
|
|
20
|
+
/**
|
|
21
|
+
* Custom label for the tag
|
|
22
|
+
*/
|
|
23
|
+
confirmationLabel?: string;
|
|
24
|
+
};
|
|
25
|
+
export declare const VoteProposalDataListItemStructure: React.FC<IVoteProposalDataListItemStructureProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Wallet, type IWalletProps } from './wallet';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ICompositeAddress, type IWeb3ComponentProps } from '../../types';
|
|
2
|
+
export interface IWalletProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, IWeb3ComponentProps {
|
|
3
|
+
/**
|
|
4
|
+
* The connected user details.
|
|
5
|
+
*/
|
|
6
|
+
user?: ICompositeAddress;
|
|
7
|
+
}
|
|
8
|
+
export declare const Wallet: React.FC<IWalletProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useBlockExplorer';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ChainEntityType, useBlockExplorer, type IBuildEntityUrlParams, type IUseBlockExplorerParams, } from './useBlockExplorer';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type Config } from 'wagmi';
|
|
2
|
+
export declare enum ChainEntityType {
|
|
3
|
+
ADDRESS = "address",
|
|
4
|
+
TRANSACTION = "tx",
|
|
5
|
+
TOKEN = "token"
|
|
6
|
+
}
|
|
7
|
+
export interface IUseBlockExplorerParams {
|
|
8
|
+
/**
|
|
9
|
+
* Chains definitions to use for returning the block explorer definitions and building the URLs. Defaults to the
|
|
10
|
+
* chains defined on the Wagmi context provider.
|
|
11
|
+
*/
|
|
12
|
+
chains?: Config['chains'];
|
|
13
|
+
/**
|
|
14
|
+
* Uses the block explorer definition of the specified Chain ID when set. Defaults to the ID of the first chain on
|
|
15
|
+
* the chains list.
|
|
16
|
+
*/
|
|
17
|
+
chainId?: number;
|
|
18
|
+
}
|
|
19
|
+
export interface IBuildEntityUrlParams {
|
|
20
|
+
/**
|
|
21
|
+
* The type of the entity (e.g. address, transaction, token)
|
|
22
|
+
*/
|
|
23
|
+
type: ChainEntityType;
|
|
24
|
+
/**
|
|
25
|
+
* ID of the chain related to the entity. When set, overrides the chainId set as hook parameter.
|
|
26
|
+
*/
|
|
27
|
+
chainId?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The ID of the entity (e.g. transaction hash for a transaction)
|
|
30
|
+
*/
|
|
31
|
+
id?: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const useBlockExplorer: (params?: IUseBlockExplorerParams) => {
|
|
34
|
+
blockExplorer: {
|
|
35
|
+
name: string;
|
|
36
|
+
url: string;
|
|
37
|
+
apiUrl?: string | undefined;
|
|
38
|
+
} | undefined;
|
|
39
|
+
getBlockExplorer: (chainId?: number) => {
|
|
40
|
+
name: string;
|
|
41
|
+
url: string;
|
|
42
|
+
apiUrl?: string | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
buildEntityUrl: ({ type, chainId, id }: IBuildEntityUrlParams) => string | undefined;
|
|
45
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface ICompositeAddress {
|
|
2
|
+
/**
|
|
3
|
+
* Address of the blockchain entity.
|
|
4
|
+
*/
|
|
5
|
+
address: string;
|
|
6
|
+
/**
|
|
7
|
+
* Name (e.g. ENS name) linked to the address.
|
|
8
|
+
*/
|
|
9
|
+
name?: string;
|
|
10
|
+
/**
|
|
11
|
+
* URL of the avatar (e.g. ENS avatar) linked to the address.
|
|
12
|
+
*/
|
|
13
|
+
avatarSrc?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Config } from 'wagmi';
|
|
2
|
+
/**
|
|
3
|
+
* Properties for components making RPC requests.
|
|
4
|
+
*/
|
|
5
|
+
export interface IWeb3ComponentProps {
|
|
6
|
+
/**
|
|
7
|
+
* ID of the chain to use when making RPC requests. Defaults to the first chain set on the Wagmi config.
|
|
8
|
+
* (@see https://github.com/wevm/wagmi/blob/main/packages/core/src/createConfig.ts#L193C23-L193C31)
|
|
9
|
+
*/
|
|
10
|
+
chainId?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Custom Wagmi configurations to use instead of retrieving it from the closest WagmiProvider.
|
|
13
|
+
*/
|
|
14
|
+
wagmiConfig?: Config;
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type Address } from 'viem';
|
|
2
|
+
export interface IIsAddressParams {
|
|
3
|
+
/**
|
|
4
|
+
* Whether or not to compare the address against its checksum.
|
|
5
|
+
* @default false
|
|
6
|
+
*/
|
|
7
|
+
strict?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare class AddressUtils {
|
|
10
|
+
/**
|
|
11
|
+
* Checks if the given address is a valid address or not
|
|
12
|
+
* @param address The address to be checked
|
|
13
|
+
* @param options Options for the address check (@see IIsAddressParams)
|
|
14
|
+
* @returns True when the given address is a valid address, false otherwise.
|
|
15
|
+
*/
|
|
16
|
+
isAddress: (address?: string, options?: IIsAddressParams) => boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Truncates the input address by displaying the first and last 4 characters.
|
|
19
|
+
* @param address The address to truncate
|
|
20
|
+
* @returns The truncated address when the address input is valid, the address input as is otherwise.
|
|
21
|
+
*/
|
|
22
|
+
truncateAddress: (address?: string) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the address on its checksum format
|
|
25
|
+
* @param address The address to be formatted
|
|
26
|
+
* @returns The address in checksum format
|
|
27
|
+
*/
|
|
28
|
+
getChecksum: (address?: string) => Address;
|
|
29
|
+
/**
|
|
30
|
+
* Compares two addresses (ignoring checksum) to see if they are the same
|
|
31
|
+
* @param addressOne The first address
|
|
32
|
+
* @param addressTwo The second address
|
|
33
|
+
* @returns true if the addresses are the same, false otherwise
|
|
34
|
+
*/
|
|
35
|
+
isAddressEqual: (addressOne?: string, addressTwo?: string) => boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare const addressUtils: AddressUtils;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { addressUtils, type IIsAddressParams } from './addressUtils';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare class EnsUtils {
|
|
2
|
+
private ensPattern;
|
|
3
|
+
/**
|
|
4
|
+
* Checks if the given value is a valid ENS name or not.
|
|
5
|
+
* @param value The value to be checked.
|
|
6
|
+
* @returns True when the given value is a valid ENS name, false otherwise.
|
|
7
|
+
*/
|
|
8
|
+
isEnsName: (value?: string) => boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Truncates the ENS name by displaying the first 5 characters and the eth suffix.
|
|
11
|
+
* @param address The ENS name to truncate
|
|
12
|
+
* @returns The truncated ENS name when the ens input is valid, the ENS input as is otherwise.
|
|
13
|
+
*/
|
|
14
|
+
truncateEns: (ens?: string) => string;
|
|
15
|
+
}
|
|
16
|
+
export declare const ensUtils: EnsUtils;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ensUtils } from './ensUtils';
|
package/index.css
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aragon/gov-ui-kit",
|
|
3
|
+
"version": "1.0.49",
|
|
4
|
+
"description": "Implementation of the Aragon's Governance UI Kit",
|
|
5
|
+
"main": "dist/index.es.js",
|
|
6
|
+
"types": "dist/types/src/index.d.ts",
|
|
7
|
+
"license": "GPL-3.0",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"index.css",
|
|
11
|
+
"build.css",
|
|
12
|
+
"src/**/*.css",
|
|
13
|
+
"src/theme/fonts/*",
|
|
14
|
+
"tailwind.config.js"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"setup": "husky",
|
|
18
|
+
"storybook": "storybook dev -p 6006",
|
|
19
|
+
"build": "rollup -c",
|
|
20
|
+
"build:watch": "rollup -c --watch",
|
|
21
|
+
"build:analyze": "cross-env ANALYZE=true rollup -c",
|
|
22
|
+
"build:storybook": "storybook build",
|
|
23
|
+
"test": "jest --watch",
|
|
24
|
+
"test:coverage": "jest --coverage",
|
|
25
|
+
"lint": "eslint . --max-warnings=0",
|
|
26
|
+
"lint:fix": "eslint . --fix",
|
|
27
|
+
"prettify": "prettier . --check",
|
|
28
|
+
"prettify:fix": "prettier . --write",
|
|
29
|
+
"type-check": "tsc --noemit",
|
|
30
|
+
"deploy:storybook": "storybook-to-ghpages"
|
|
31
|
+
},
|
|
32
|
+
"repository": {
|
|
33
|
+
"type": "git",
|
|
34
|
+
"url": "git+https://github.com/aragon/gov-ui-kit.git"
|
|
35
|
+
},
|
|
36
|
+
"keywords": [
|
|
37
|
+
"aragon",
|
|
38
|
+
"design-system",
|
|
39
|
+
"governance-ui-kit",
|
|
40
|
+
"react",
|
|
41
|
+
"tailwind"
|
|
42
|
+
],
|
|
43
|
+
"author": "Aragon Association",
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@radix-ui/react-accordion": "^1.2.0",
|
|
46
|
+
"@radix-ui/react-alert-dialog": "^1.1.0",
|
|
47
|
+
"@radix-ui/react-avatar": "^1.1.0",
|
|
48
|
+
"@radix-ui/react-checkbox": "^1.1.0",
|
|
49
|
+
"@radix-ui/react-dialog": "^1.1.0",
|
|
50
|
+
"@radix-ui/react-dropdown-menu": "^2.1.0",
|
|
51
|
+
"@radix-ui/react-focus-scope": "^1.1.0",
|
|
52
|
+
"@radix-ui/react-progress": "^1.1.0",
|
|
53
|
+
"@radix-ui/react-radio-group": "^1.2.0",
|
|
54
|
+
"@radix-ui/react-switch": "^1.1.0",
|
|
55
|
+
"@radix-ui/react-tabs": "^1.1.0",
|
|
56
|
+
"@radix-ui/react-toggle-group": "^1.1.0",
|
|
57
|
+
"@radix-ui/react-tooltip": "^1.1.0",
|
|
58
|
+
"@radix-ui/react-visually-hidden": "^1.1.0",
|
|
59
|
+
"@tiptap/extension-code-block": "^2.8.0",
|
|
60
|
+
"@tiptap/extension-image": "^2.8.0",
|
|
61
|
+
"@tiptap/extension-link": "^2.8.0",
|
|
62
|
+
"@tiptap/extension-placeholder": "^2.8.0",
|
|
63
|
+
"@tiptap/extension-text-style": "^2.8.0",
|
|
64
|
+
"@tiptap/pm": "^2.8.0",
|
|
65
|
+
"@tiptap/react": "^2.8.0",
|
|
66
|
+
"@tiptap/starter-kit": "^2.8.0",
|
|
67
|
+
"blockies-ts": "^1.0.0",
|
|
68
|
+
"classnames": "^2.0.0",
|
|
69
|
+
"framer-motion": "^11.11.0",
|
|
70
|
+
"luxon": "^3.5.0",
|
|
71
|
+
"react-dropzone": "^14.2.0",
|
|
72
|
+
"react-imask": "^7.6.1",
|
|
73
|
+
"sanitize-html": "^2.13.0",
|
|
74
|
+
"tiptap-markdown": "^0.8.10"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@tailwindcss/typography": "^0.5.0",
|
|
78
|
+
"@tanstack/react-query": "^5.59.0",
|
|
79
|
+
"react": "^18.2.0",
|
|
80
|
+
"react-dom": "^18.2.0",
|
|
81
|
+
"tailwindcss": "^3.4.0",
|
|
82
|
+
"viem": "^2.21.0",
|
|
83
|
+
"wagmi": "^2.12.0"
|
|
84
|
+
},
|
|
85
|
+
"devDependencies": {
|
|
86
|
+
"@babel/core": "^7.25.8",
|
|
87
|
+
"@babel/preset-env": "^7.25.8",
|
|
88
|
+
"@babel/preset-react": "^7.25.7",
|
|
89
|
+
"@babel/preset-typescript": "^7.25.7",
|
|
90
|
+
"@rollup/plugin-commonjs": "^28.0.1",
|
|
91
|
+
"@rollup/plugin-image": "^3.0.3",
|
|
92
|
+
"@rollup/plugin-node-resolve": "^15.3.0",
|
|
93
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
94
|
+
"@rollup/plugin-typescript": "^12.1.1",
|
|
95
|
+
"@storybook/addon-designs": "^8.0.3",
|
|
96
|
+
"@storybook/addon-essentials": "^8.3.6",
|
|
97
|
+
"@storybook/addon-links": "^8.3.6",
|
|
98
|
+
"@storybook/addon-styling-webpack": "^1.0.0",
|
|
99
|
+
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
|
|
100
|
+
"@storybook/blocks": "^8.3.6",
|
|
101
|
+
"@storybook/react": "^8.3.6",
|
|
102
|
+
"@storybook/react-webpack5": "^8.3.6",
|
|
103
|
+
"@storybook/storybook-deployer": "^2.8.16",
|
|
104
|
+
"@svgr/rollup": "^8.1.0",
|
|
105
|
+
"@svgr/webpack": "^8.1.0",
|
|
106
|
+
"@tailwindcss/typography": "^0.5.15",
|
|
107
|
+
"@tanstack/react-query": "^5.59.15",
|
|
108
|
+
"@testing-library/dom": "^10.4.0",
|
|
109
|
+
"@testing-library/jest-dom": "^6.6.2",
|
|
110
|
+
"@testing-library/react": "^16.0.1",
|
|
111
|
+
"@testing-library/user-event": "^14.5.2",
|
|
112
|
+
"@types/jest": "^29.5.13",
|
|
113
|
+
"@types/luxon": "^3.4.2",
|
|
114
|
+
"@types/react-dom": "^18.3.1",
|
|
115
|
+
"@types/sanitize-html": "^2.13.0",
|
|
116
|
+
"@typescript-eslint/eslint-plugin": "^8.11.0",
|
|
117
|
+
"@typescript-eslint/parser": "^8.11.0",
|
|
118
|
+
"autoprefixer": "^10.4.20",
|
|
119
|
+
"cross-env": "^7.0.3",
|
|
120
|
+
"eslint": "^8.57.0",
|
|
121
|
+
"eslint-plugin-import": "^2.31.0",
|
|
122
|
+
"eslint-plugin-jsx-a11y": "^6.10.1",
|
|
123
|
+
"eslint-plugin-react": "^7.37.1",
|
|
124
|
+
"eslint-plugin-react-hooks": "^5.0.0",
|
|
125
|
+
"eslint-plugin-storybook": "^0.10.1",
|
|
126
|
+
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
127
|
+
"eslint-plugin-testing-library": "^6.4.0",
|
|
128
|
+
"husky": "^9.1.6",
|
|
129
|
+
"jest": "^29.7.0",
|
|
130
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
131
|
+
"lint-staged": "^15.2.10",
|
|
132
|
+
"postcss": "^8.4.45",
|
|
133
|
+
"postcss-loader": "^8.1.1",
|
|
134
|
+
"prettier": "^3.3.3",
|
|
135
|
+
"prettier-plugin-organize-imports": "^4.1.0",
|
|
136
|
+
"prettier-plugin-tailwindcss": "^0.6.8",
|
|
137
|
+
"react": "^18.3.1",
|
|
138
|
+
"react-dom": "^18.3.1",
|
|
139
|
+
"rollup": "^4.24.0",
|
|
140
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
141
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
142
|
+
"rollup-plugin-visualizer": "^5.12.0",
|
|
143
|
+
"storybook": "^8.3.6",
|
|
144
|
+
"tailwindcss": "^3.4.14",
|
|
145
|
+
"ts-jest": "^29.2.5",
|
|
146
|
+
"typescript": "^5.6.3",
|
|
147
|
+
"viem": "^2.21.32",
|
|
148
|
+
"wagmi": "^2.12.20"
|
|
149
|
+
},
|
|
150
|
+
"bugs": {
|
|
151
|
+
"url": "https://github.com/aragon/gov-ui-kit/issues"
|
|
152
|
+
},
|
|
153
|
+
"homepage": "https://github.com/aragon/gov-ui-kit#readme",
|
|
154
|
+
"engines": {
|
|
155
|
+
"node": ">=20.0.0"
|
|
156
|
+
},
|
|
157
|
+
"exports": {
|
|
158
|
+
".": {
|
|
159
|
+
"types": "./dist/types/src/index.d.ts",
|
|
160
|
+
"default": "./dist/index.es.js"
|
|
161
|
+
},
|
|
162
|
+
"./index.css": "./index.css",
|
|
163
|
+
"./build.css": "./build.css",
|
|
164
|
+
"./tailwind.config": "./tailwind.config.js"
|
|
165
|
+
},
|
|
166
|
+
"packageManager": "yarn@4.4.0"
|
|
167
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@keyframes accordionExpand {
|
|
2
|
+
from {
|
|
3
|
+
height: 0;
|
|
4
|
+
opacity: 0;
|
|
5
|
+
}
|
|
6
|
+
to {
|
|
7
|
+
height: var(--radix-accordion-content-height);
|
|
8
|
+
opacity: 1;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@keyframes accordionCollapse {
|
|
13
|
+
from {
|
|
14
|
+
height: var(--radix-accordion-content-height);
|
|
15
|
+
opacity: 1;
|
|
16
|
+
}
|
|
17
|
+
to {
|
|
18
|
+
height: 0;
|
|
19
|
+
opacity: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./accordionItemContent";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./avatar";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./dialogRoot";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./dialogAlertRoot";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./dropdownContainer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./textAreaRichText";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./components";
|
package/src/index.css
ADDED
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./tokens/index.css";
|