@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,44 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type ReactNode } from 'react';
|
|
3
|
+
export type TooltipVariant = 'neutral' | 'info' | 'warning' | 'critical' | 'success';
|
|
4
|
+
export interface ITooltipProps {
|
|
5
|
+
/**
|
|
6
|
+
* Content of the tooltip
|
|
7
|
+
*/
|
|
8
|
+
content: ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* Defines the variant of the tooltip
|
|
11
|
+
* @default neutral
|
|
12
|
+
*/
|
|
13
|
+
variant?: TooltipVariant;
|
|
14
|
+
/**
|
|
15
|
+
* The open state of the tooltip when it is initially rendered. Use when you do not need to control its open state.
|
|
16
|
+
*/
|
|
17
|
+
defaultOpen?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The controlled open state of the tooltip. Must be used in conjunction with `onOpenChange`.
|
|
20
|
+
*/
|
|
21
|
+
open?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Event handler called when the open state of the tooltip changes.
|
|
24
|
+
*/
|
|
25
|
+
onOpenChange?: (open: boolean) => void;
|
|
26
|
+
/**
|
|
27
|
+
* The duration from when the mouse enters the trigger until the tooltip opens.
|
|
28
|
+
* @default 300
|
|
29
|
+
*/
|
|
30
|
+
delayDuration?: number;
|
|
31
|
+
/**
|
|
32
|
+
* When `true`, hovering the content will keep the tooltip open.
|
|
33
|
+
*/
|
|
34
|
+
disableHoverableContent?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Additional class names for the tooltip content.
|
|
37
|
+
*/
|
|
38
|
+
className?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Children elements to trigger the tooltip.
|
|
41
|
+
*/
|
|
42
|
+
children?: ReactNode;
|
|
43
|
+
}
|
|
44
|
+
export declare const Tooltip: React.FC<ITooltipProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useDebouncedValue, type IUseDebouncedValueParams, type IUseDebouncedValueResult } from './useDebouncedValue';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface IUseDebouncedValueParams {
|
|
2
|
+
/**
|
|
3
|
+
* Debounce time period in milliseconds.
|
|
4
|
+
* @default 500
|
|
5
|
+
*/
|
|
6
|
+
delay?: number;
|
|
7
|
+
}
|
|
8
|
+
export type IUseDebouncedValueResult<TValue> = [
|
|
9
|
+
/**
|
|
10
|
+
* Debounced value.
|
|
11
|
+
*/
|
|
12
|
+
TValue,
|
|
13
|
+
/**
|
|
14
|
+
* Setter for the debounced value.
|
|
15
|
+
*/
|
|
16
|
+
(value: TValue) => void
|
|
17
|
+
];
|
|
18
|
+
export declare const useDebouncedValue: <TValue>(value: TValue, params?: IUseDebouncedValueParams) => IUseDebouncedValueResult<TValue>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useRandomId } from './useRandomId';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useRandomId: (id?: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './utils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/jest-dom';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const createRangeMock: () => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './responsive';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type Breakpoint = 'default' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
2
|
+
/**
|
|
3
|
+
* Size key of a component that is responsive.
|
|
4
|
+
*/
|
|
5
|
+
export type ResponsiveSizeKey = string | symbol | number;
|
|
6
|
+
/**
|
|
7
|
+
* Defines the component property which is responsive.
|
|
8
|
+
*/
|
|
9
|
+
export type ResponsiveAttribute<TSize> = Partial<Record<Breakpoint, TSize>>;
|
|
10
|
+
/**
|
|
11
|
+
* Defines the structure to build the responsive classes for each breakpoint.
|
|
12
|
+
*
|
|
13
|
+
* Example:
|
|
14
|
+
*
|
|
15
|
+
* type ButtonSize = 'big' | 'small';
|
|
16
|
+
* type Breakpoint = 'default' | 'sm' | 'md' | 'lg';
|
|
17
|
+
*
|
|
18
|
+
* const responsiveButtonSizeClassNames: ResponsiveAttributeClassMap<ButtonSize> = {
|
|
19
|
+
* 'big': {
|
|
20
|
+
* 'default': 'w-40',
|
|
21
|
+
* 'sm': 'sm:w-40',
|
|
22
|
+
* 'md': 'md:w-40',
|
|
23
|
+
* 'lg': 'lg:w-40',
|
|
24
|
+
* },
|
|
25
|
+
* 'small': {
|
|
26
|
+
* 'default': 'w-20',
|
|
27
|
+
* 'sm': 'sm:w-20',
|
|
28
|
+
* 'md': 'md:w-20',
|
|
29
|
+
* 'lg': 'lg-w-20',
|
|
30
|
+
* }
|
|
31
|
+
* }
|
|
32
|
+
*/
|
|
33
|
+
export type ResponsiveAttributeClassMap<TSize extends ResponsiveSizeKey> = Record<TSize, Record<Breakpoint, string>>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IClipboardUtilsParams {
|
|
2
|
+
/**
|
|
3
|
+
* Callback called on paste error.
|
|
4
|
+
*/
|
|
5
|
+
onError?: (error: unknown) => void;
|
|
6
|
+
}
|
|
7
|
+
declare class ClipboardUtils {
|
|
8
|
+
copy: (value: string, params?: IClipboardUtilsParams) => Promise<void>;
|
|
9
|
+
paste: (params?: IClipboardUtilsParams) => Promise<string>;
|
|
10
|
+
}
|
|
11
|
+
export declare const clipboardUtils: ClipboardUtils;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { clipboardUtils, type IClipboardUtilsParams } from './clipboardUtils';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DateTime } from 'luxon';
|
|
2
|
+
import { DateFormat, NumberFormat, type INumberFormat } from './formatterUtilsDefinitions';
|
|
3
|
+
export interface IFormatNumberOptions extends INumberFormat {
|
|
4
|
+
/**
|
|
5
|
+
* Number format to use.
|
|
6
|
+
* @default GENERIC_LONG
|
|
7
|
+
*/
|
|
8
|
+
format?: NumberFormat;
|
|
9
|
+
}
|
|
10
|
+
export interface IFormatDateOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Date format to use.
|
|
13
|
+
* @default YEAR_MONTH_DAY_TIME
|
|
14
|
+
*/
|
|
15
|
+
format?: DateFormat;
|
|
16
|
+
}
|
|
17
|
+
declare class FormatterUtils {
|
|
18
|
+
numberLocale: string;
|
|
19
|
+
dateLocale: string;
|
|
20
|
+
currencyLocale: string;
|
|
21
|
+
private baseSymbolRanges;
|
|
22
|
+
private relativeDateOrder;
|
|
23
|
+
formatNumber: (value: number | string | null | undefined, options?: IFormatNumberOptions) => string | null;
|
|
24
|
+
formatDate: (value: DateTime | number | string | undefined, options?: IFormatDateOptions) => string | null;
|
|
25
|
+
private isYesterdayTodayTomorrow;
|
|
26
|
+
private getDateLiteral;
|
|
27
|
+
private getDynamicOption;
|
|
28
|
+
private getDecimalPlaces;
|
|
29
|
+
private significantDigitsToFractionDigits;
|
|
30
|
+
}
|
|
31
|
+
export declare const formatterUtils: FormatterUtils;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { type DateTimeFormatOptions } from 'luxon';
|
|
2
|
+
export type DynamicOptionFunction<TValue, TOptionValue> = (value: TValue) => TOptionValue | undefined;
|
|
3
|
+
export type DynamicOption<TValue = number, TOptionValue extends string | number | boolean = number> = TOptionValue | DynamicOptionFunction<TValue, TOptionValue>;
|
|
4
|
+
export interface INumberFormat {
|
|
5
|
+
/**
|
|
6
|
+
* Fixed fraction digits to use to format the number.
|
|
7
|
+
*/
|
|
8
|
+
fixedFractionDigits?: DynamicOption;
|
|
9
|
+
/**
|
|
10
|
+
* Maximum fraction digits to use to format the number.
|
|
11
|
+
*/
|
|
12
|
+
maxFractionDigits?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Maximum number of significant digits displayed.
|
|
15
|
+
*/
|
|
16
|
+
maxSignificantDigits?: DynamicOption;
|
|
17
|
+
/**
|
|
18
|
+
* Minimum fraction digits to use to format the number.
|
|
19
|
+
*/
|
|
20
|
+
minFractionDigits?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Uses the base symbol (K, M, B, T) when set to true.
|
|
23
|
+
*/
|
|
24
|
+
useBaseSymbol?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Format the number with the default currency when set to true.
|
|
27
|
+
*/
|
|
28
|
+
isCurrency?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Format the number as a percentage when set to true.
|
|
31
|
+
*/
|
|
32
|
+
isPercentage?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Always displays the number sign on the formatted number when set to true.
|
|
35
|
+
*/
|
|
36
|
+
withSign?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Fallback to display in case the value is null.
|
|
39
|
+
*/
|
|
40
|
+
fallback?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Displays the specified fallback when this function returns true, by default the formatter will display
|
|
43
|
+
* the fallback when the value is NaN.
|
|
44
|
+
*/
|
|
45
|
+
displayFallback?: (value: number) => boolean;
|
|
46
|
+
}
|
|
47
|
+
export declare enum NumberFormat {
|
|
48
|
+
GENERIC_SHORT = "GENERIC_SHORT",
|
|
49
|
+
GENERIC_LONG = "GENERIC_LONG",
|
|
50
|
+
FIAT_TOTAL_SHORT = "FIAT_TOTAL_SHORT",
|
|
51
|
+
FIAT_TOTAL_LONG = "FIAT_TOTAL_LONG",
|
|
52
|
+
TOKEN_AMOUNT_SHORT = "TOKEN_AMOUNT_SHORT",
|
|
53
|
+
TOKEN_AMOUNT_LONG = "TOKEN_AMOUNT_LONG",
|
|
54
|
+
TOKEN_PRICE = "TOKEN_PRICE",
|
|
55
|
+
PERCENTAGE_SHORT = "PERCENTAGE_SHORT",
|
|
56
|
+
PERCENTAGE_LONG = "PERCENTAGE_LONG"
|
|
57
|
+
}
|
|
58
|
+
export declare const numberFormats: Record<NumberFormat, INumberFormat>;
|
|
59
|
+
export declare enum DateFormat {
|
|
60
|
+
YEAR_MONTH_DAY_TIME = "YEAR_MONTH_DAY_TIME",
|
|
61
|
+
YEAR_MONTH_DAY = "YEAR_MONTH_DAY",
|
|
62
|
+
YEAR_MONTH = "YEAR_MONTH",
|
|
63
|
+
DURATION = "DURATION",
|
|
64
|
+
RELATIVE = "RELATIVE"
|
|
65
|
+
}
|
|
66
|
+
export interface IDateFormat extends DateTimeFormatOptions {
|
|
67
|
+
/**
|
|
68
|
+
* Formats the date as relative calendar (yesterday, today, tomorrow, ..) when set to true. The date is formatted
|
|
69
|
+
* to a relative date only when the specified date is either yesterday, today or tomorrow. When the option is set
|
|
70
|
+
* to "with-time", the time is also added to the relative date.
|
|
71
|
+
*/
|
|
72
|
+
useRelativeCalendar?: 'default' | 'with-time';
|
|
73
|
+
/**
|
|
74
|
+
* Formats the date as relative (1 day ago, in 2 days, 2 hours ago, ..) when set to true.
|
|
75
|
+
*/
|
|
76
|
+
useRelativeDate?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Returns the absolute date diff using the biggest unit greater than 1 (1 day, 7 hours, 22 seconds) when set to true.
|
|
79
|
+
*/
|
|
80
|
+
isDuration?: boolean;
|
|
81
|
+
}
|
|
82
|
+
export declare const dateFormats: Record<DateFormat, IDateFormat>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { invariant, invariantError } from './invariant';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { mergeRefs } from './mergeRefs';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { LegacyRef, MutableRefObject, RefCallback } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Utility to merge multiple React refs, inspired by https://github.com/gregberge/react-merge-refs
|
|
4
|
+
*/
|
|
5
|
+
export declare const mergeRefs: <T = unknown>(refs: Array<MutableRefObject<T> | LegacyRef<T> | undefined | null>) => RefCallback<T>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './responsiveUtils';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ResponsiveAttribute, ResponsiveAttributeClassMap, ResponsiveSizeKey } from '../../types';
|
|
2
|
+
declare class ResponsiveUtils {
|
|
3
|
+
generateClassNames<TSize extends ResponsiveSizeKey>(size: TSize, responsiveSize: ResponsiveAttribute<TSize> | undefined, classes: ResponsiveAttributeClassMap<TSize>): string;
|
|
4
|
+
}
|
|
5
|
+
export declare const responsiveUtils: ResponsiveUtils;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ssrUtils } from './ssrUtils';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './modulesCopy';
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Object representing the structure of copy texts used in various parts of the GovKit Modules package.
|
|
3
|
+
* Each property in the object corresponds to a specific component or feature, containing the necessary
|
|
4
|
+
* text labels or functions that return text strings.
|
|
5
|
+
*/
|
|
6
|
+
export declare const modulesCopy: {
|
|
7
|
+
addressInput: {
|
|
8
|
+
clear: string;
|
|
9
|
+
paste: string;
|
|
10
|
+
};
|
|
11
|
+
assetDataListItemStructure: {
|
|
12
|
+
unknown: string;
|
|
13
|
+
};
|
|
14
|
+
memberDataListItemStructure: {
|
|
15
|
+
yourDelegate: string;
|
|
16
|
+
you: string;
|
|
17
|
+
delegations: string;
|
|
18
|
+
votingPower: string;
|
|
19
|
+
};
|
|
20
|
+
approvalThresholdResult: {
|
|
21
|
+
stage: string;
|
|
22
|
+
outOf: (threshold: string) => string;
|
|
23
|
+
};
|
|
24
|
+
majorityVotingResult: {
|
|
25
|
+
winningOption: string;
|
|
26
|
+
stage: string;
|
|
27
|
+
};
|
|
28
|
+
proposalActionsContainer: {
|
|
29
|
+
collapse: string;
|
|
30
|
+
expand: string;
|
|
31
|
+
empty: {
|
|
32
|
+
heading: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
proposalActionsAction: {
|
|
36
|
+
dropdownLabel: string;
|
|
37
|
+
notVerified: string;
|
|
38
|
+
nativeSendAlert: string;
|
|
39
|
+
nativeSendDescription: (amount: string) => string;
|
|
40
|
+
};
|
|
41
|
+
proposalActionsActionDecodedView: {
|
|
42
|
+
valueHelper: string;
|
|
43
|
+
valueLabel: string;
|
|
44
|
+
};
|
|
45
|
+
proposalActionsActionRawView: {
|
|
46
|
+
to: string;
|
|
47
|
+
data: string;
|
|
48
|
+
value: string;
|
|
49
|
+
copyButton: string;
|
|
50
|
+
};
|
|
51
|
+
proposalActionsActionViewAsMenu: {
|
|
52
|
+
basic: string;
|
|
53
|
+
dropdownLabel: string;
|
|
54
|
+
decoded: string;
|
|
55
|
+
raw: string;
|
|
56
|
+
};
|
|
57
|
+
proposalActionChangeMembers: {
|
|
58
|
+
summary: string;
|
|
59
|
+
added: string;
|
|
60
|
+
removed: string;
|
|
61
|
+
members: string;
|
|
62
|
+
adjustMemberCount: {
|
|
63
|
+
addMembers: string;
|
|
64
|
+
removeMembers: string;
|
|
65
|
+
};
|
|
66
|
+
existingMembers: string;
|
|
67
|
+
blockNote: string;
|
|
68
|
+
};
|
|
69
|
+
proposalActionsChangeSettings: {
|
|
70
|
+
existingToggle: string;
|
|
71
|
+
proposedToggle: string;
|
|
72
|
+
};
|
|
73
|
+
proposalActionsUpdateMetadata: {
|
|
74
|
+
logoTerm: string;
|
|
75
|
+
nameTerm: string;
|
|
76
|
+
linkTerm: string;
|
|
77
|
+
descriptionTerm: string;
|
|
78
|
+
existingToggle: string;
|
|
79
|
+
proposedToggle: string;
|
|
80
|
+
};
|
|
81
|
+
proposalActionsTokenMint: {
|
|
82
|
+
summaryHeading: string;
|
|
83
|
+
newTokensTerm: string;
|
|
84
|
+
newHoldersTerm: string;
|
|
85
|
+
totalTokenSupplyTerm: string;
|
|
86
|
+
totalHoldersTerm: string;
|
|
87
|
+
};
|
|
88
|
+
proposalDataListItemStatus: {
|
|
89
|
+
voted: string;
|
|
90
|
+
ago: string;
|
|
91
|
+
left: string;
|
|
92
|
+
statusLabel: {
|
|
93
|
+
ACCEPTED: string;
|
|
94
|
+
ACTIVE: string;
|
|
95
|
+
CHALLENGED: string;
|
|
96
|
+
DRAFT: string;
|
|
97
|
+
EXECUTED: string;
|
|
98
|
+
EXPIRED: string;
|
|
99
|
+
FAILED: string;
|
|
100
|
+
PARTIALLY_EXECUTED: string;
|
|
101
|
+
PENDING: string;
|
|
102
|
+
EXECUTABLE: string;
|
|
103
|
+
REJECTED: string;
|
|
104
|
+
VETOED: string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
proposalDataListItemStructure: {
|
|
108
|
+
by: string;
|
|
109
|
+
creators: string;
|
|
110
|
+
};
|
|
111
|
+
proposalVotingTabs: {
|
|
112
|
+
breakdown: string;
|
|
113
|
+
votes: string;
|
|
114
|
+
details: string;
|
|
115
|
+
};
|
|
116
|
+
proposalVotingBreakdownMultisig: {
|
|
117
|
+
name: string;
|
|
118
|
+
description: (count: string | null) => string;
|
|
119
|
+
};
|
|
120
|
+
proposalVotingBreakdownToken: {
|
|
121
|
+
option: {
|
|
122
|
+
yes: string;
|
|
123
|
+
no: string;
|
|
124
|
+
abstain: string;
|
|
125
|
+
};
|
|
126
|
+
support: {
|
|
127
|
+
name: string;
|
|
128
|
+
description: (value: string) => string;
|
|
129
|
+
};
|
|
130
|
+
minParticipation: {
|
|
131
|
+
name: string;
|
|
132
|
+
description: (value: string) => string;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
proposalVotingStageStatus: {
|
|
136
|
+
main: {
|
|
137
|
+
proposal: string;
|
|
138
|
+
stage: string;
|
|
139
|
+
};
|
|
140
|
+
secondary: {
|
|
141
|
+
pending: string;
|
|
142
|
+
active: string;
|
|
143
|
+
accepted: string;
|
|
144
|
+
rejected: string;
|
|
145
|
+
unreached: string;
|
|
146
|
+
};
|
|
147
|
+
status: {
|
|
148
|
+
accepted: string;
|
|
149
|
+
rejected: string;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
proposalVotingDetails: {
|
|
153
|
+
voting: string;
|
|
154
|
+
governance: string;
|
|
155
|
+
};
|
|
156
|
+
proposalVotingStage: {
|
|
157
|
+
stage: (index: number) => string;
|
|
158
|
+
};
|
|
159
|
+
voteDataListItemStructure: {
|
|
160
|
+
yourDelegate: string;
|
|
161
|
+
you: string;
|
|
162
|
+
};
|
|
163
|
+
voteProposalDataListItemStructure: {
|
|
164
|
+
voted: string;
|
|
165
|
+
};
|
|
166
|
+
wallet: {
|
|
167
|
+
connect: string;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
export type ModulesCopy = typeof modulesCopy;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './copy';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type IInputComponentProps } from '../../../../core';
|
|
2
|
+
import type { IWeb3ComponentProps } from '../../../types';
|
|
3
|
+
export interface IAddressInputResolvedValue {
|
|
4
|
+
/**
|
|
5
|
+
* Address value.
|
|
6
|
+
*/
|
|
7
|
+
address?: string;
|
|
8
|
+
/**
|
|
9
|
+
* ENS name linked to the given address.
|
|
10
|
+
*/
|
|
11
|
+
name?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IAddressInputProps extends Omit<IInputComponentProps<HTMLTextAreaElement>, 'maxLength' | 'value' | 'onChange'>, IWeb3ComponentProps {
|
|
14
|
+
/**
|
|
15
|
+
* Current value of the address input.
|
|
16
|
+
*/
|
|
17
|
+
value?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Callback called whenever the current input value (address or ens) changes.
|
|
20
|
+
*/
|
|
21
|
+
onChange?: (value?: string) => void;
|
|
22
|
+
/**
|
|
23
|
+
* Callback called with the address value object when the user input is valid. The component will output the address
|
|
24
|
+
* in checksum format and the ENS name normalised. The value will be set to undefined when the user input is not a
|
|
25
|
+
* valid address nor a valid ens name.
|
|
26
|
+
*/
|
|
27
|
+
onAccept?: (value?: IAddressInputResolvedValue) => void;
|
|
28
|
+
}
|
|
29
|
+
export declare const AddressInput: import("react").ForwardRefExoticComponent<IAddressInputProps & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AddressInput, type IAddressInputProps } from './addressInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './addressInput';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AssetDataListItemSkeleton, type IAssetDataListItemSkeletonProps } from './assetDataListItemSkeleton';
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* The price change in percentage of the asset.
|
|
26
|
+
* @default 0
|
|
27
|
+
*/
|
|
28
|
+
priceChange?: number;
|
|
29
|
+
};
|
|
30
|
+
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
|
+
* Icon URL of the transferred asset.
|
|
17
|
+
*/
|
|
18
|
+
assetIconSrc?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Asset amount that was transferred.
|
|
21
|
+
*/
|
|
22
|
+
assetAmount: number | string;
|
|
23
|
+
/**
|
|
24
|
+
* Symbol of the asset transferred. Example: ETH, DAI, etc.
|
|
25
|
+
*/
|
|
26
|
+
assetSymbol: string;
|
|
27
|
+
/**
|
|
28
|
+
* Price per asset in fiat.
|
|
29
|
+
*/
|
|
30
|
+
assetFiatPrice?: number | string;
|
|
31
|
+
/**
|
|
32
|
+
* Transaction hash.
|
|
33
|
+
*/
|
|
34
|
+
hash: 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>;
|