@aragon/gov-ui-kit 0.0.0-20250408144901
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1129 -0
- package/LICENSE +674 -0
- package/README.md +54 -0
- package/build.css +5 -0
- package/dist/index.es.js +2 -0
- package/dist/index.es.js.map +1 -0
- package/dist/types/.storybook/components/docsPage/docsPage.d.ts +1 -0
- package/dist/types/.storybook/components/docsPage/index.d.ts +1 -0
- package/dist/types/.storybook/components/index.d.ts +2 -0
- package/dist/types/.storybook/components/styleBlock/index.d.ts +1 -0
- package/dist/types/.storybook/components/styleBlock/styleBlock.d.ts +15 -0
- package/dist/types/.storybook/main.d.ts +3 -0
- package/dist/types/.storybook/manager.d.ts +1 -0
- package/dist/types/.storybook/preview.d.ts +5 -0
- package/dist/types/.storybook/theme.d.ts +2 -0
- package/dist/types/src/core/assets/copy/coreCopy.d.ts +31 -0
- package/dist/types/src/core/assets/copy/index.d.ts +1 -0
- package/dist/types/src/core/assets/index.d.ts +1 -0
- package/dist/types/src/core/components/accordion/accordionContainer/accordionContainer.d.ts +22 -0
- package/dist/types/src/core/components/accordion/accordionContainer/index.d.ts +1 -0
- package/dist/types/src/core/components/accordion/accordionItem/accordionItem.d.ts +12 -0
- package/dist/types/src/core/components/accordion/accordionItem/index.d.ts +1 -0
- package/dist/types/src/core/components/accordion/accordionItemContent/accordionItemContent.d.ts +8 -0
- package/dist/types/src/core/components/accordion/accordionItemContent/index.d.ts +1 -0
- package/dist/types/src/core/components/accordion/accordionItemHeader/accordionItemHeader.d.ts +4 -0
- package/dist/types/src/core/components/accordion/accordionItemHeader/index.d.ts +1 -0
- package/dist/types/src/core/components/accordion/index.d.ts +10 -0
- package/dist/types/src/core/components/alerts/alertCard/alertCard.d.ts +15 -0
- package/dist/types/src/core/components/alerts/alertCard/index.d.ts +1 -0
- package/dist/types/src/core/components/alerts/alertInline/alertInline.d.ts +15 -0
- package/dist/types/src/core/components/alerts/alertInline/index.d.ts +1 -0
- package/dist/types/src/core/components/alerts/alertUtils.d.ts +3 -0
- package/dist/types/src/core/components/alerts/index.d.ts +3 -0
- package/dist/types/src/core/components/avatars/avatar/avatar.d.ts +20 -0
- package/dist/types/src/core/components/avatars/avatar/index.d.ts +1 -0
- package/dist/types/src/core/components/avatars/avatarBase/avatarBase.d.ts +4 -0
- package/dist/types/src/core/components/avatars/avatarBase/index.d.ts +1 -0
- package/dist/types/src/core/components/avatars/avatarIcon/avatarIcon.d.ts +31 -0
- package/dist/types/src/core/components/avatars/avatarIcon/index.d.ts +1 -0
- package/dist/types/src/core/components/avatars/index.d.ts +3 -0
- package/dist/types/src/core/components/breadcrumbs/breadcrumbs.d.ts +25 -0
- package/dist/types/src/core/components/breadcrumbs/index.d.ts +1 -0
- package/dist/types/src/core/components/button/button.api.d.ts +42 -0
- package/dist/types/src/core/components/button/button.d.ts +2 -0
- package/dist/types/src/core/components/button/index.d.ts +2 -0
- package/dist/types/src/core/components/cards/card/card.d.ts +4 -0
- package/dist/types/src/core/components/cards/card/index.d.ts +1 -0
- package/dist/types/src/core/components/cards/cardCollapsible/cardCollapsible.d.ts +8 -0
- package/dist/types/src/core/components/cards/cardCollapsible/index.d.ts +1 -0
- package/dist/types/src/core/components/cards/cardEmptyState/cardEmptyState.d.ts +2 -0
- package/dist/types/src/core/components/cards/cardEmptyState/index.d.ts +1 -0
- package/dist/types/src/core/components/cards/cardSummary/cardSummary.api.d.ts +39 -0
- package/dist/types/src/core/components/cards/cardSummary/cardSummary.d.ts +2 -0
- package/dist/types/src/core/components/cards/cardSummary/index.d.ts +2 -0
- package/dist/types/src/core/components/cards/index.d.ts +4 -0
- package/dist/types/src/core/components/collapsible/collapsible.api.d.ts +40 -0
- package/dist/types/src/core/components/collapsible/collapsible.d.ts +2 -0
- package/dist/types/src/core/components/collapsible/index.d.ts +2 -0
- package/dist/types/src/core/components/dataList/dataListContainer/dataListContainer.d.ts +28 -0
- package/dist/types/src/core/components/dataList/dataListContainer/dataListContainerSkeletonLoader.d.ts +3 -0
- package/dist/types/src/core/components/dataList/dataListContainer/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListContext/dataListContext.d.ts +22 -0
- package/dist/types/src/core/components/dataList/dataListContext/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListFilter/dataListFilter.d.ts +50 -0
- package/dist/types/src/core/components/dataList/dataListFilter/dataListFilterSort.d.ts +12 -0
- package/dist/types/src/core/components/dataList/dataListFilter/dataListFilterStatus.d.ts +7 -0
- package/dist/types/src/core/components/dataList/dataListFilter/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListItem/dataListItem.d.ts +3 -0
- package/dist/types/src/core/components/dataList/dataListItem/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListPagination/dataListPagination.d.ts +4 -0
- package/dist/types/src/core/components/dataList/dataListPagination/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListRoot/dataListRoot.d.ts +36 -0
- package/dist/types/src/core/components/dataList/dataListRoot/index.d.ts +1 -0
- package/dist/types/src/core/components/dataList/dataListTestUtils.d.ts +6 -0
- package/dist/types/src/core/components/dataList/index.d.ts +12 -0
- package/dist/types/src/core/components/definitionList/definitionListContainer/definitionListContainer.d.ts +4 -0
- package/dist/types/src/core/components/definitionList/definitionListContainer/index.d.ts +1 -0
- package/dist/types/src/core/components/definitionList/definitionListItem/definitionListItem.d.ts +8 -0
- package/dist/types/src/core/components/definitionList/definitionListItem/index.d.ts +1 -0
- package/dist/types/src/core/components/definitionList/index.d.ts +6 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogContent/dialogContent.d.ts +14 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogContent/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogFooter/dialogFooter.d.ts +28 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogFooter/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogHeader/dialogHeader.d.ts +12 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogHeader/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/dialogRoot.api.d.ts +69 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/dialogRoot.d.ts +2 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/dialogRootHiddenElement.d.ts +11 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogRoot/index.d.ts +2 -0
- package/dist/types/src/core/components/dialogs/dialog/dialogStoryComponent.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialog/index.d.ts +10 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContent/dialogAlertContent.d.ts +10 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContent/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContext/dialogAlertContext.d.ts +5 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertContext/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertFooter/dialogAlertFooter.d.ts +19 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertFooter/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertHeader/dialogAlertHeader.d.ts +8 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertHeader/index.d.ts +1 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRoot.api.d.ts +55 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRoot.d.ts +2 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/dialogAlertRootHiddenElement.d.ts +11 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertRoot/index.d.ts +2 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/dialogAlertStoryComponent.d.ts +2 -0
- package/dist/types/src/core/components/dialogs/dialogAlert/index.d.ts +10 -0
- package/dist/types/src/core/components/dialogs/dialogUtils.d.ts +29 -0
- package/dist/types/src/core/components/dialogs/index.d.ts +2 -0
- package/dist/types/src/core/components/documentParser/documentParser.d.ts +8 -0
- package/dist/types/src/core/components/documentParser/index.d.ts +1 -0
- package/dist/types/src/core/components/dropdown/dropdownContainer/dropdownContainer.d.ts +63 -0
- package/dist/types/src/core/components/dropdown/dropdownContainer/index.d.ts +1 -0
- package/dist/types/src/core/components/dropdown/dropdownItem/dropdownItem.d.ts +39 -0
- package/dist/types/src/core/components/dropdown/dropdownItem/index.d.ts +1 -0
- package/dist/types/src/core/components/dropdown/index.d.ts +6 -0
- package/dist/types/src/core/components/forms/checkbox/checkbox.d.ts +30 -0
- package/dist/types/src/core/components/forms/checkbox/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/checkboxCard/checkboxCard.d.ts +42 -0
- package/dist/types/src/core/components/forms/checkboxCard/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/checkboxGroup/checkboxGroup.d.ts +13 -0
- package/dist/types/src/core/components/forms/checkboxGroup/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/hooks/index.d.ts +2 -0
- package/dist/types/src/core/components/forms/hooks/useInputProps.d.ts +18 -0
- package/dist/types/src/core/components/forms/hooks/useNumberMask.d.ts +20 -0
- package/dist/types/src/core/components/forms/index.d.ts +18 -0
- package/dist/types/src/core/components/forms/inputContainer/index.d.ts +2 -0
- package/dist/types/src/core/components/forms/inputContainer/inputContainer.api.d.ts +78 -0
- package/dist/types/src/core/components/forms/inputContainer/inputContainer.d.ts +8 -0
- package/dist/types/src/core/components/forms/inputDate/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/inputDate/inputDate.d.ts +4 -0
- package/dist/types/src/core/components/forms/inputFileAvatar/index.d.ts +2 -0
- package/dist/types/src/core/components/forms/inputFileAvatar/inputFileAvatar.api.d.ts +62 -0
- package/dist/types/src/core/components/forms/inputFileAvatar/inputFileAvatar.d.ts +2 -0
- package/dist/types/src/core/components/forms/inputNumber/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/inputNumber/inputNumber.d.ts +33 -0
- package/dist/types/src/core/components/forms/inputNumberMax/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/inputNumberMax/inputNumberMax.d.ts +13 -0
- package/dist/types/src/core/components/forms/inputSearch/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/inputSearch/inputSearch.d.ts +8 -0
- package/dist/types/src/core/components/forms/inputText/index.d.ts +2 -0
- package/dist/types/src/core/components/forms/inputText/inputText.api.d.ts +12 -0
- package/dist/types/src/core/components/forms/inputText/inputText.d.ts +2 -0
- package/dist/types/src/core/components/forms/inputTime/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/inputTime/inputTime.d.ts +4 -0
- package/dist/types/src/core/components/forms/radio/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/radio/radio.d.ts +21 -0
- package/dist/types/src/core/components/forms/radioCard/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/radioCard/radioCard.d.ts +33 -0
- package/dist/types/src/core/components/forms/radioGroup/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/radioGroup/radioGroup.d.ts +33 -0
- package/dist/types/src/core/components/forms/switch/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/switch/switch.d.ts +39 -0
- package/dist/types/src/core/components/forms/textArea/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/textArea/textArea.d.ts +4 -0
- package/dist/types/src/core/components/forms/textAreaRichText/index.d.ts +1 -0
- package/dist/types/src/core/components/forms/textAreaRichText/textAreaRichText.d.ts +24 -0
- package/dist/types/src/core/components/forms/textAreaRichText/textAreaRichTextActions.d.ts +31 -0
- package/dist/types/src/core/components/gukCoreProvider/gukCoreProvider.d.ts +30 -0
- package/dist/types/src/core/components/gukCoreProvider/index.d.ts +1 -0
- package/dist/types/src/core/components/heading/heading.d.ts +15 -0
- package/dist/types/src/core/components/heading/index.d.ts +1 -0
- package/dist/types/src/core/components/icon/icon.d.ts +20 -0
- package/dist/types/src/core/components/icon/iconList.d.ts +5 -0
- package/dist/types/src/core/components/icon/iconType.d.ts +65 -0
- package/dist/types/src/core/components/icon/index.d.ts +2 -0
- package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHuman.d.ts +35 -0
- package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHumanList.d.ts +9 -0
- package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHumanType.d.ts +5 -0
- package/dist/types/src/core/components/illustrations/illustrationHuman/index.d.ts +2 -0
- package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObject.d.ts +9 -0
- package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObjectList.d.ts +5 -0
- package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObjectType.d.ts +1 -0
- package/dist/types/src/core/components/illustrations/illustrationObject/index.d.ts +2 -0
- package/dist/types/src/core/components/illustrations/index.d.ts +2 -0
- package/dist/types/src/core/components/index.d.ts +26 -0
- package/dist/types/src/core/components/link/index.d.ts +2 -0
- package/dist/types/src/core/components/link/link/index.d.ts +2 -0
- package/dist/types/src/core/components/link/link/link.api.d.ts +26 -0
- package/dist/types/src/core/components/link/link/link.d.ts +3 -0
- package/dist/types/src/core/components/link/linkBase/index.d.ts +1 -0
- package/dist/types/src/core/components/link/linkBase/linkBase.d.ts +4 -0
- package/dist/types/src/core/components/progress/index.d.ts +2 -0
- package/dist/types/src/core/components/progress/progress.api.d.ts +28 -0
- package/dist/types/src/core/components/progress/progress.d.ts +2 -0
- package/dist/types/src/core/components/rerender/index.d.ts +1 -0
- package/dist/types/src/core/components/rerender/rerender.d.ts +20 -0
- package/dist/types/src/core/components/spinner/index.d.ts +1 -0
- package/dist/types/src/core/components/spinner/spinner.d.ts +29 -0
- package/dist/types/src/core/components/states/emptyState/emptyState.api.d.ts +50 -0
- package/dist/types/src/core/components/states/emptyState/emptyState.d.ts +2 -0
- package/dist/types/src/core/components/states/emptyState/index.d.ts +2 -0
- package/dist/types/src/core/components/states/index.d.ts +4 -0
- package/dist/types/src/core/components/states/statePingAnimation/index.d.ts +1 -0
- package/dist/types/src/core/components/states/statePingAnimation/statePingAnimation.d.ts +11 -0
- package/dist/types/src/core/components/states/stateSkeletonBar/index.d.ts +1 -0
- package/dist/types/src/core/components/states/stateSkeletonBar/stateSkeletonBar.d.ts +27 -0
- package/dist/types/src/core/components/states/stateSkeletonCircular/index.d.ts +1 -0
- package/dist/types/src/core/components/states/stateSkeletonCircular/stateSkeletonCircular.d.ts +15 -0
- package/dist/types/src/core/components/tabs/index.d.ts +10 -0
- package/dist/types/src/core/components/tabs/tabsContent/index.d.ts +1 -0
- package/dist/types/src/core/components/tabs/tabsContent/tabsContent.d.ts +12 -0
- package/dist/types/src/core/components/tabs/tabsList/index.d.ts +1 -0
- package/dist/types/src/core/components/tabs/tabsList/tabsList.d.ts +4 -0
- package/dist/types/src/core/components/tabs/tabsRoot/index.d.ts +1 -0
- package/dist/types/src/core/components/tabs/tabsRoot/tabsRoot.d.ts +28 -0
- package/dist/types/src/core/components/tabs/tabsTrigger/index.d.ts +1 -0
- package/dist/types/src/core/components/tabs/tabsTrigger/tabsTrigger.d.ts +17 -0
- package/dist/types/src/core/components/tag/index.d.ts +1 -0
- package/dist/types/src/core/components/tag/tag.d.ts +17 -0
- package/dist/types/src/core/components/toggles/index.d.ts +2 -0
- package/dist/types/src/core/components/toggles/toggle/index.d.ts +1 -0
- package/dist/types/src/core/components/toggles/toggle/toggle.d.ts +17 -0
- package/dist/types/src/core/components/toggles/toggleGroup/index.d.ts +1 -0
- package/dist/types/src/core/components/toggles/toggleGroup/toggleGroup.d.ts +27 -0
- package/dist/types/src/core/components/tooltip/index.d.ts +1 -0
- package/dist/types/src/core/components/tooltip/tooltip.d.ts +44 -0
- package/dist/types/src/core/hooks/index.d.ts +2 -0
- package/dist/types/src/core/hooks/useDebouncedValue/index.d.ts +1 -0
- package/dist/types/src/core/hooks/useDebouncedValue/useDebouncedValue.d.ts +18 -0
- package/dist/types/src/core/hooks/useRandomId/index.d.ts +1 -0
- package/dist/types/src/core/hooks/useRandomId/useRandomId.d.ts +1 -0
- package/dist/types/src/core/index.d.ts +5 -0
- package/dist/types/src/core/test/globalSetup.d.ts +2 -0
- package/dist/types/src/core/test/index.d.ts +1 -0
- package/dist/types/src/core/test/setup.d.ts +1 -0
- package/dist/types/src/core/test/utils/createRangeMock.d.ts +1 -0
- package/dist/types/src/core/test/utils/index.d.ts +2 -0
- package/dist/types/src/core/test/utils/testLogger.d.ts +11 -0
- package/dist/types/src/core/types/index.d.ts +1 -0
- package/dist/types/src/core/types/responsive.d.ts +33 -0
- package/dist/types/src/core/utils/clipboardUtils/clipboardUtils.d.ts +12 -0
- package/dist/types/src/core/utils/clipboardUtils/index.d.ts +1 -0
- package/dist/types/src/core/utils/formatterUtils/formatterUtils.d.ts +32 -0
- package/dist/types/src/core/utils/formatterUtils/formatterUtilsDefinitions.d.ts +82 -0
- package/dist/types/src/core/utils/formatterUtils/index.d.ts +2 -0
- package/dist/types/src/core/utils/index.d.ts +6 -0
- package/dist/types/src/core/utils/invariant/index.d.ts +1 -0
- package/dist/types/src/core/utils/invariant/invariant.d.ts +2 -0
- package/dist/types/src/core/utils/mergeRefs/index.d.ts +1 -0
- package/dist/types/src/core/utils/mergeRefs/mergeRefs.d.ts +5 -0
- package/dist/types/src/core/utils/responsiveUtils/index.d.ts +1 -0
- package/dist/types/src/core/utils/responsiveUtils/responsiveUtils.d.ts +6 -0
- package/dist/types/src/core/utils/ssrUtils/index.d.ts +1 -0
- package/dist/types/src/core/utils/ssrUtils/ssrUtils.d.ts +8 -0
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/modules/assets/copy/index.d.ts +1 -0
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +176 -0
- package/dist/types/src/modules/assets/index.d.ts +1 -0
- package/dist/types/src/modules/components/address/addressInput/addressInput.d.ts +29 -0
- package/dist/types/src/modules/components/address/addressInput/index.d.ts +1 -0
- package/dist/types/src/modules/components/address/index.d.ts +1 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemSkeleton/assetDataListItemSkeleton.d.ts +4 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemStructure/assetDataListItemStructure.d.ts +29 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/assetDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/asset/assetDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/asset/assetTransfer/assetTransfer.d.ts +36 -0
- package/dist/types/src/modules/components/asset/assetTransfer/assetTransferAddress/assetTransferAddress.d.ts +17 -0
- package/dist/types/src/modules/components/asset/assetTransfer/assetTransferAddress/index.d.ts +1 -0
- package/dist/types/src/modules/components/asset/assetTransfer/index.d.ts +1 -0
- package/dist/types/src/modules/components/asset/index.d.ts +2 -0
- package/dist/types/src/modules/components/dao/daoAvatar/daoAvatar.d.ts +14 -0
- package/dist/types/src/modules/components/dao/daoAvatar/index.d.ts +1 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemSkeleton/daoDataListItemSkeleton.d.ts +4 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemStructure/daoDataListItemStructure.d.ts +33 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/daoDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/dao/daoDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/dao/index.d.ts +2 -0
- package/dist/types/src/modules/components/gukModulesProvider/gukModulesProvider.d.ts +44 -0
- package/dist/types/src/modules/components/gukModulesProvider/index.d.ts +1 -0
- package/dist/types/src/modules/components/index.d.ts +9 -0
- package/dist/types/src/modules/components/member/index.d.ts +2 -0
- package/dist/types/src/modules/components/member/memberAvatar/index.d.ts +1 -0
- package/dist/types/src/modules/components/member/memberAvatar/memberAvatar.d.ts +18 -0
- package/dist/types/src/modules/components/member/memberDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemSkeleton/memberDataListItemSkeleton.d.ts +3 -0
- package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/member/memberDataListItem/memberDataListItemStructure/memberDataListItemStructure.d.ts +36 -0
- package/dist/types/src/modules/components/proposal/index.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/index.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContainer/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContainer/proposalActionsContainer.d.ts +8 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContext/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsContext/proposalActionsContext.d.ts +21 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/index.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoder.api.d.ts +36 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoder.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderField/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderField/proposalActionsDecoderField.d.ts +21 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderTextField/index.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderTextField/proposalActionsDecoderTextField.api.d.ts +30 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderTextField/proposalActionsDecoderTextField.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderTextField/proposalActionsDecoderTextFieldEdit.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderTextField/proposalActionsDecoderTextFieldWatch.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDecoder/proposalActionsDecoderUtils.d.ts +45 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsDefinitions.d.ts +89 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsFooter/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsFooter/proposalActionsFooter.d.ts +8 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/index.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItem.api.d.ts +52 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItem.d.ts +8 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemBasicView.d.ts +8 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsItem/proposalActionsItemUtils.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/index.d.ts +5 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeMembers/index.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeMembers/proposalActionChangeMembers.api.d.ts +18 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeMembers/proposalActionChangeMembers.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeMembers/proposalActionChangeMembers.testUtils.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/index.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.api.d.ts +23 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionChangeSettings/proposalActionChangeSettings.testUtils.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionTokenMint/index.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionTokenMint/proposalActionTokenMint.api.d.ts +28 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionTokenMint/proposalActionTokenMint.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionTokenMint/proposalActionTokenMint.testUtils.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/index.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/proposalActionUpdateMetadata.api.d.ts +49 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/proposalActionUpdateMetadata.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionUpdateMetadata/proposalActionUpdateMetadata.testUtils.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/index.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/proposalActionWithdrawToken.api.d.ts +52 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/proposalActionWithdrawToken.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsList/proposalActionWithdrawToken/proposalActionWithdrawToken.testUtils.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsRoot/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsRoot/proposalActionsRoot.d.ts +19 -0
- package/dist/types/src/modules/components/proposal/proposalActions/proposalActionsTestUtils.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemSkeleton/proposalDataListItemSkeleton.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStatus/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStatus/proposalDataListItemStatus.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/index.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/proposalDataListItemStructure.api.d.ts +48 -0
- package/dist/types/src/modules/components/proposal/proposalDataListItem/proposalDataListItemStructure/proposalDataListItemStructure.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalUtils.d.ts +25 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/index.d.ts +28 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodyContent/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodyContent/proposalVotingBodyContent.d.ts +17 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummary/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummary/proposalVotingBodySummary.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryList/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryList/proposalVotingBodySummaryList.d.ts +4 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryListItem/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryListItem/proposalVotingBodySummaryListItem.d.ts +13 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownMultisig/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownMultisig/proposalVotingBreakdownMultisig.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownToken/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownToken/proposalVotingBreakdownToken.d.ts +32 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContainer/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContainer/proposalVotingContainer.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDefinitions.d.ts +5 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDetails/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingDetails/proposalVotingDetails.d.ts +18 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/index.d.ts +6 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/proposalVotingProgressContainer.d.ts +10 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/proposalVotingProgressItem.d.ts +31 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStage/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStage/proposalVotingStage.d.ts +33 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContext/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContext/proposalVotingStageContext.d.ts +17 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageStatus/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageStatus/proposalVotingStageStatus.d.ts +18 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/proposalVotingTabs.d.ts +15 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingVotes/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingVotes/proposalVotingVotes.d.ts +4 -0
- package/dist/types/src/modules/components/transaction/index.d.ts +1 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemSkeleton/transactionDataListItemSkeleton.d.ts +3 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/index.d.ts +2 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItemStructure.api.d.ts +48 -0
- package/dist/types/src/modules/components/transaction/transactionDataListItem/transactionDataListItemStructure/transactionDataListItemStructure.d.ts +2 -0
- package/dist/types/src/modules/components/vote/index.d.ts +3 -0
- package/dist/types/src/modules/components/vote/voteDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemSkeleton/voteDataListItemSkeleton.d.ts +3 -0
- package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemStructure/voteDataListItemStructure.d.ts +30 -0
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/index.d.ts +6 -0
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemSkeleton/index.d.ts +1 -0
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemSkeleton/voteProposalDataListItemSkeleton.d.ts +3 -0
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemStructure/index.d.ts +1 -0
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemStructure/voteProposalDataListItemStructure.d.ts +25 -0
- package/dist/types/src/modules/components/vote/voteUtils.d.ts +3 -0
- package/dist/types/src/modules/components/wallet/index.d.ts +1 -0
- package/dist/types/src/modules/components/wallet/wallet.d.ts +8 -0
- package/dist/types/src/modules/hooks/index.d.ts +2 -0
- package/dist/types/src/modules/hooks/useBlockExplorer/index.d.ts +2 -0
- package/dist/types/src/modules/hooks/useBlockExplorer/useBlockExplorer.api.d.ts +57 -0
- package/dist/types/src/modules/hooks/useBlockExplorer/useBlockExplorer.d.ts +2 -0
- package/dist/types/src/modules/hooks/useFormContext/index.d.ts +1 -0
- package/dist/types/src/modules/hooks/useFormContext/useFormContext.d.ts +3 -0
- package/dist/types/src/modules/index.d.ts +5 -0
- package/dist/types/src/modules/testUtils/generators/formContext.d.ts +2 -0
- package/dist/types/src/modules/testUtils/generators/index.d.ts +1 -0
- package/dist/types/src/modules/testUtils/index.d.ts +1 -0
- package/dist/types/src/modules/types/compositeAddress.d.ts +14 -0
- package/dist/types/src/modules/types/index.d.ts +2 -0
- package/dist/types/src/modules/types/web3ComponentConfig.d.ts +15 -0
- package/dist/types/src/modules/utils/addressUtils/addressUtils.d.ts +38 -0
- package/dist/types/src/modules/utils/addressUtils/index.d.ts +1 -0
- package/dist/types/src/modules/utils/ensUtils/ensUtils.d.ts +17 -0
- package/dist/types/src/modules/utils/ensUtils/index.d.ts +1 -0
- package/dist/types/src/modules/utils/index.d.ts +2 -0
- package/index.css +5 -0
- package/package.json +173 -0
- package/src/core/components/avatars/avatar/index.css +4 -0
- package/src/core/components/avatars/index.css +1 -0
- package/src/core/components/collapsible/index.css +4 -0
- package/src/core/components/dialogs/dialog/dialogRoot/index.css +7 -0
- package/src/core/components/dialogs/dialog/index.css +1 -0
- package/src/core/components/dialogs/dialogAlert/dialogAlertRoot/index.css +7 -0
- package/src/core/components/dialogs/dialogAlert/index.css +1 -0
- package/src/core/components/dialogs/index.css +2 -0
- package/src/core/components/dropdown/dropdownContainer/index.css +4 -0
- package/src/core/components/dropdown/index.css +1 -0
- package/src/core/components/forms/index.css +1 -0
- package/src/core/components/forms/textAreaRichText/index.css +4 -0
- package/src/core/components/illustrations/index.css +7 -0
- package/src/core/components/index.css +6 -0
- package/src/core/index.css +1 -0
- package/src/index.css +2 -0
- package/src/theme/fonts/Manrope-Regular.ttf +0 -0
- package/src/theme/fonts/Manrope-SemiBold.ttf +0 -0
- package/src/theme/index.css +1 -0
- package/src/theme/tokens/index.css +1 -0
- package/src/theme/tokens/primitives/borderRadius.css +9 -0
- package/src/theme/tokens/primitives/colors.css +73 -0
- package/src/theme/tokens/primitives/index.css +5 -0
- package/src/theme/tokens/primitives/shadows.css +52 -0
- package/src/theme/tokens/primitives/spacing.css +37 -0
- package/src/theme/tokens/primitives/typography.css +42 -0
- package/tailwind.config.js +376 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type CoreCopy } from '../../assets';
|
|
3
|
+
export interface IGukCoreContext {
|
|
4
|
+
/**
|
|
5
|
+
* Image component to be used for images.
|
|
6
|
+
* @default 'img'
|
|
7
|
+
*/
|
|
8
|
+
Img: React.FC | 'img';
|
|
9
|
+
/**
|
|
10
|
+
* Link component to be used for links.
|
|
11
|
+
* @default 'a'
|
|
12
|
+
*/
|
|
13
|
+
Link: React.FC | 'a';
|
|
14
|
+
/**
|
|
15
|
+
* Copy for the core components.
|
|
16
|
+
*/
|
|
17
|
+
copy: CoreCopy;
|
|
18
|
+
}
|
|
19
|
+
export interface IGukCoreProviderProps {
|
|
20
|
+
/**
|
|
21
|
+
* Context provider values.
|
|
22
|
+
*/
|
|
23
|
+
values?: Partial<IGukCoreContext>;
|
|
24
|
+
/**
|
|
25
|
+
* Children of the context provider.
|
|
26
|
+
*/
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
}
|
|
29
|
+
export declare const GukCoreProvider: React.FC<IGukCoreProviderProps>;
|
|
30
|
+
export declare const useGukCoreContext: () => Required<IGukCoreContext>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GukCoreProvider, useGukCoreContext, type IGukCoreContext, type IGukCoreProviderProps, } from './gukCoreProvider';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type HeadingSize = 'h1' | 'h2' | 'h3' | 'h4' | 'h5';
|
|
2
|
+
export interface IHeadingProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Specifies the semantic level of the heading, affecting both the HTML element used (e.g., <h1>, <h2>) and its default styling.
|
|
5
|
+
* If the 'as' prop is not provided, this value determines the HTML element rendered in the DOM.
|
|
6
|
+
* @default h1
|
|
7
|
+
*/
|
|
8
|
+
size?: HeadingSize;
|
|
9
|
+
/**
|
|
10
|
+
* Optionally overrides the HTML element type that is rendered in the DOM, independent of the heading's semantic level determined by the 'size' prop.
|
|
11
|
+
* This allows for styling and semantic adjustments where necessary.
|
|
12
|
+
*/
|
|
13
|
+
as?: HeadingSize;
|
|
14
|
+
}
|
|
15
|
+
export declare const Heading: import("react").ForwardRefExoticComponent<IHeadingProps & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Heading, type HeadingSize, type IHeadingProps } from './heading';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import { type ResponsiveAttribute } from '../../types';
|
|
3
|
+
import type { IconType } from './iconType';
|
|
4
|
+
export type IconSize = 'sm' | 'md' | 'lg';
|
|
5
|
+
export interface IIconProps extends SVGProps<SVGSVGElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Icon to be displayed.
|
|
8
|
+
*/
|
|
9
|
+
icon: IconType;
|
|
10
|
+
/**
|
|
11
|
+
* Size of the icon.
|
|
12
|
+
* @default md
|
|
13
|
+
*/
|
|
14
|
+
size?: IconSize;
|
|
15
|
+
/**
|
|
16
|
+
* Size of the icon depending on the current breakpoint.
|
|
17
|
+
*/
|
|
18
|
+
responsiveSize?: ResponsiveAttribute<IconSize>;
|
|
19
|
+
}
|
|
20
|
+
export declare const Icon: React.FC<IIconProps>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare enum IconType {
|
|
2
|
+
APP_ASSETS = "APP_ASSETS",
|
|
3
|
+
APP_DASHBOARD = "APP_DASHBOARD",
|
|
4
|
+
APP_EXPLORE = "APP_EXPLORE",
|
|
5
|
+
APP_MEMBERS = "APP_MEMBERS",
|
|
6
|
+
APP_PROPOSALS = "APP_PROPOSALS",
|
|
7
|
+
APP_TRANSACTIONS = "APP_TRANSACTIONS",
|
|
8
|
+
BLOCKCHAIN_BLOCK = "BLOCKCHAIN_BLOCK",
|
|
9
|
+
BLOCKCHAIN_BLOCKCHAIN = "BLOCKCHAIN_BLOCKCHAIN",
|
|
10
|
+
BLOCKCHAIN_GASFEE = "BLOCKCHAIN_GASFEE",
|
|
11
|
+
BLOCKCHAIN_SMARTCONTRACT = "BLOCKCHAIN_SMARTCONTRACT",
|
|
12
|
+
BLOCKCHAIN_WALLET = "BLOCKCHAIN_WALLET",
|
|
13
|
+
BLOCKCHAIN_WALLETCONNECT = "BLOCKCHAIN_WALLETCONNECT",
|
|
14
|
+
CALENDAR = "CALENDAR",
|
|
15
|
+
CHECKBOX = "CHECKBOX",
|
|
16
|
+
CHECKBOX_INDETERMINATE = "CHECKBOX_INDETERMINATE",
|
|
17
|
+
CHECKBOX_SELECTED = "CHECKBOX_SELECTED",
|
|
18
|
+
CHECKMARK = "CHECKMARK",
|
|
19
|
+
CHEVRON_DOWN = "CHEVRON_DOWN",
|
|
20
|
+
CHEVRON_LEFT = "CHEVRON_LEFT",
|
|
21
|
+
CHEVRON_RIGHT = "CHEVRON_RIGHT",
|
|
22
|
+
CHEVRON_UP = "CHEVRON_UP",
|
|
23
|
+
CLOCK = "CLOCK",
|
|
24
|
+
CLOSE = "CLOSE",
|
|
25
|
+
COPY = "COPY",
|
|
26
|
+
CRITICAL = "CRITICAL",
|
|
27
|
+
DEPOSIT = "DEPOSIT",
|
|
28
|
+
DOTS_HORIZONTAL = "DOTS_HORIZONTAL",
|
|
29
|
+
DOTS_VERTICAL = "DOTS_VERTICAL",
|
|
30
|
+
EXPAND = "EXPAND",
|
|
31
|
+
FAVORITE = "FAVORITE",
|
|
32
|
+
FAVORITE_SELECTED = "FAVORITE_SELECTED",
|
|
33
|
+
FEEDBACK = "FEEDBACK",
|
|
34
|
+
FILTER = "FILTER",
|
|
35
|
+
FLAG = "FLAG",
|
|
36
|
+
HELP = "HELP",
|
|
37
|
+
HOME = "HOME",
|
|
38
|
+
INFO = "INFO",
|
|
39
|
+
LINK_EXTERNAL = "LINK_EXTERNAL",
|
|
40
|
+
LOGOUT = "LOGOUT",
|
|
41
|
+
MENU = "MENU",
|
|
42
|
+
MINUS = "MINUS",
|
|
43
|
+
PERSON = "PERSON",
|
|
44
|
+
PLUS = "PLUS",
|
|
45
|
+
RADIO = "RADIO",
|
|
46
|
+
RADIO_SELECTED = "RADIO_SELECTED",
|
|
47
|
+
RELOAD = "RELOAD",
|
|
48
|
+
REMOVE = "REMOVE",
|
|
49
|
+
RICHTEXT_BOLD = "RICHTEXT_BOLD",
|
|
50
|
+
RICHTEXT_HEADING = "RICHTEXT_HEADING",
|
|
51
|
+
RICHTEXT_ITALIC = "RICHTEXT_ITALIC",
|
|
52
|
+
RICHTEXT_LINK_ADD = "RICHTEXT_LINK_ADD",
|
|
53
|
+
RICHTEXT_LINK_REMOVE = "RICHTEXT_LINK_REMOVE",
|
|
54
|
+
RICHTEXT_LIST_ORDERED = "RICHTEXT_LIST_ORDERED",
|
|
55
|
+
RICHTEXT_LIST_UNORDERED = "RICHTEXT_LIST_UNORDERED",
|
|
56
|
+
SEARCH = "SEARCH",
|
|
57
|
+
SETTINGS = "SETTINGS",
|
|
58
|
+
SHRINK = "SHRINK",
|
|
59
|
+
SLASH = "SLASH",
|
|
60
|
+
SORT_ASC = "SORT_ASC",
|
|
61
|
+
SORT_DESC = "SORT_DESC",
|
|
62
|
+
SUCCESS = "SUCCESS",
|
|
63
|
+
WARNING = "WARNING",
|
|
64
|
+
WITHDRAW = "WITHDRAW"
|
|
65
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import type { IllustrationObjectType } from '../illustrationObject';
|
|
3
|
+
import type { IllustrationHumanAccessory, IllustrationHumanBody, IllustrationHumanExpression, IllustrationHumanHairs, IllustrationHumanSunglasses } from './illustrationHumanType';
|
|
4
|
+
export interface IIllustrationHumanProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Body of the illustration human.
|
|
7
|
+
*/
|
|
8
|
+
body: IllustrationHumanBody;
|
|
9
|
+
/**
|
|
10
|
+
* Expression of the illustration human.
|
|
11
|
+
*/
|
|
12
|
+
expression: IllustrationHumanExpression;
|
|
13
|
+
/**
|
|
14
|
+
* Hairs of the illustration human.
|
|
15
|
+
*/
|
|
16
|
+
hairs?: IllustrationHumanHairs;
|
|
17
|
+
/**
|
|
18
|
+
* Sunglasses of the illustration human.
|
|
19
|
+
*/
|
|
20
|
+
sunglasses?: IllustrationHumanSunglasses;
|
|
21
|
+
/**
|
|
22
|
+
* Accessory of the illustration human.
|
|
23
|
+
*/
|
|
24
|
+
accessory?: IllustrationHumanAccessory;
|
|
25
|
+
/**
|
|
26
|
+
* Object to be displayed.
|
|
27
|
+
*/
|
|
28
|
+
object?: IllustrationObjectType;
|
|
29
|
+
/**
|
|
30
|
+
* Position of the object.
|
|
31
|
+
* @default left
|
|
32
|
+
*/
|
|
33
|
+
objectPosition?: 'right' | 'left';
|
|
34
|
+
}
|
|
35
|
+
export declare const IllustrationHuman: React.FC<IIllustrationHumanProps>;
|
package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHumanList.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { IllustrationHumanAccessory, IllustrationHumanBody, IllustrationHumanExpression, IllustrationHumanHairs, IllustrationHumanSunglasses } from './illustrationHumanType';
|
|
3
|
+
type IllustrationHumanComponent = React.FC<SVGProps<SVGSVGElement>>;
|
|
4
|
+
export declare const illustrationHumanAccessoryList: Record<IllustrationHumanAccessory, IllustrationHumanComponent>;
|
|
5
|
+
export declare const illustrationHumanSunglassesList: Record<IllustrationHumanSunglasses, IllustrationHumanComponent>;
|
|
6
|
+
export declare const illustrationHumanBodyList: Record<IllustrationHumanBody, IllustrationHumanComponent>;
|
|
7
|
+
export declare const illustrationHumanExpressionList: Record<IllustrationHumanExpression, IllustrationHumanComponent>;
|
|
8
|
+
export declare const illustrationHumanHairsList: Record<IllustrationHumanHairs, IllustrationHumanComponent>;
|
|
9
|
+
export {};
|
package/dist/types/src/core/components/illustrations/illustrationHuman/illustrationHumanType.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type IllustrationHumanAccessory = 'BUDDHA' | 'EARRINGS_CIRCLE' | 'EARRINGS_HOOPS' | 'EARRINGS_RHOMBUS' | 'EARRINGS_SKULL' | 'EARRINGS_THUNDER' | 'EXPRESSION' | 'FLUSHED' | 'HEAD_FLOWER' | 'PIERCINGS_TATTOO' | 'PIERCINGS';
|
|
2
|
+
export type IllustrationHumanSunglasses = 'BIG_ROUNDED' | 'BIG_SEMIROUNDED' | 'LARGE_STYLIZED_XL' | 'LARGE_STYLIZED' | 'PIRATE' | 'SMALL_INTELLECTUAL' | 'SMALL_SYMPATHETIC' | 'SMALL_WEIRD_ONE' | 'SMALL_WEIRD_TWO' | 'THUGLIFE_ROUNDED' | 'THUGLIFE';
|
|
3
|
+
export type IllustrationHumanBody = 'ARAGON' | 'BLOCKS' | 'CHART' | 'COMPUTER_CORRECT' | 'COMPUTER' | 'CORRECT' | 'DOUBLE_CORRECT' | 'ELEVATING' | 'RELAXED' | 'SENDING_LOVE' | 'VOTING';
|
|
4
|
+
export type IllustrationHumanExpression = 'ANGRY' | 'CASUAL' | 'CRYING' | 'DECIDED' | 'EXCITED' | 'SAD_LEFT' | 'SAD_RIGHT' | 'SMILE_WINK' | 'SMILE' | 'SURPRISED' | 'SUSPECTING';
|
|
5
|
+
export type IllustrationHumanHairs = 'AFRO' | 'BALD' | 'BUN' | 'COOL' | 'CURLY_BANGS' | 'CURLY' | 'INFORMAL' | 'LONG' | 'MIDDLE' | 'OLDSCHOOL' | 'PUNK' | 'SHORT';
|
package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObject.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { IllustrationObjectType } from './illustrationObjectType';
|
|
3
|
+
export interface IIllustrationObjectProps extends SVGProps<SVGSVGElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Illustration object to render.
|
|
6
|
+
*/
|
|
7
|
+
object: IllustrationObjectType;
|
|
8
|
+
}
|
|
9
|
+
export declare const IllustrationObject: React.FC<IIllustrationObjectProps>;
|
package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObjectList.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SVGProps } from 'react';
|
|
2
|
+
import type { IllustrationObjectType } from './illustrationObjectType';
|
|
3
|
+
type IllustrationObjectComponent = React.FC<SVGProps<SVGSVGElement>>;
|
|
4
|
+
export declare const illustrationObjectList: Record<IllustrationObjectType, IllustrationObjectComponent>;
|
|
5
|
+
export {};
|
package/dist/types/src/core/components/illustrations/illustrationObject/illustrationObjectType.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type IllustrationObjectType = 'ACTION' | 'APP' | 'ARCHIVE' | 'BOOK' | 'BUILD' | 'CHAIN' | 'DATABASE' | 'ERROR' | 'EXPLORE' | 'GAS' | 'GOAL' | 'LABELS' | 'LIGHTBULB' | 'MAGNIFYING_GLASS' | 'NOT_FOUND' | 'SECURITY' | 'SETTINGS' | 'SMART_CONTRACT' | 'SUCCESS' | 'USERS' | 'WAGMI' | 'WALLET' | 'WARNING';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export * from './accordion';
|
|
2
|
+
export * from './alerts';
|
|
3
|
+
export * from './avatars';
|
|
4
|
+
export * from './breadcrumbs';
|
|
5
|
+
export * from './button';
|
|
6
|
+
export * from './cards';
|
|
7
|
+
export * from './collapsible';
|
|
8
|
+
export * from './dataList';
|
|
9
|
+
export * from './definitionList';
|
|
10
|
+
export * from './dialogs';
|
|
11
|
+
export * from './documentParser';
|
|
12
|
+
export * from './dropdown';
|
|
13
|
+
export * from './forms';
|
|
14
|
+
export * from './gukCoreProvider';
|
|
15
|
+
export * from './heading';
|
|
16
|
+
export * from './icon';
|
|
17
|
+
export * from './illustrations';
|
|
18
|
+
export * from './link';
|
|
19
|
+
export * from './progress';
|
|
20
|
+
export * from './rerender';
|
|
21
|
+
export * from './spinner';
|
|
22
|
+
export * from './states';
|
|
23
|
+
export * from './tabs';
|
|
24
|
+
export * from './tag';
|
|
25
|
+
export * from './toggles';
|
|
26
|
+
export * from './tooltip';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import { type IconType } from '../../icon';
|
|
3
|
+
export type LinkVariant = 'primary' | 'neutral';
|
|
4
|
+
export interface ILinkProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
|
+
/**
|
|
6
|
+
* Variant of the link.
|
|
7
|
+
* @default 'primary'
|
|
8
|
+
*/
|
|
9
|
+
variant?: LinkVariant;
|
|
10
|
+
/**
|
|
11
|
+
* Icon displayed on the right side of the link. Accepts any icon from src/components/icon/iconList.ts.
|
|
12
|
+
*/
|
|
13
|
+
iconRight?: IconType;
|
|
14
|
+
/**
|
|
15
|
+
* Whether the link is disabled.
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Optional description text.
|
|
20
|
+
*/
|
|
21
|
+
description?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Classnames to be applied directly to the link text.
|
|
24
|
+
*/
|
|
25
|
+
textClassName?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LinkBase, type ILinkBaseProps } from './linkBase';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export interface ILinkBaseProps extends ComponentPropsWithoutRef<'a'> {
|
|
3
|
+
}
|
|
4
|
+
export declare const LinkBase: import("react").ForwardRefExoticComponent<ILinkBaseProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import { type ResponsiveAttribute } from '../../types';
|
|
3
|
+
export type ProgressSize = 'sm' | 'md';
|
|
4
|
+
export type ProgressVariant = 'primary' | 'neutral' | 'success' | 'critical';
|
|
5
|
+
export interface IProgressProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Size of progress component.
|
|
8
|
+
* @default md
|
|
9
|
+
*/
|
|
10
|
+
size?: ProgressSize;
|
|
11
|
+
/**
|
|
12
|
+
* Size of the progress depending on the current breakpoint.
|
|
13
|
+
*/
|
|
14
|
+
responsiveSize?: ResponsiveAttribute<ProgressSize>;
|
|
15
|
+
/**
|
|
16
|
+
* Current progress to be rendered.
|
|
17
|
+
*/
|
|
18
|
+
value: number;
|
|
19
|
+
/**
|
|
20
|
+
* Variant of the progress component.
|
|
21
|
+
* @default primary
|
|
22
|
+
*/
|
|
23
|
+
variant?: ProgressVariant;
|
|
24
|
+
/**
|
|
25
|
+
* Threshold displayed with an indicator on the progress bar.
|
|
26
|
+
*/
|
|
27
|
+
thresholdIndicator?: number;
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Rerender, type IRerenderProps } from './rerender';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
export interface IRerenderProps {
|
|
3
|
+
/**
|
|
4
|
+
* The duration in milliseconds between each rerender.
|
|
5
|
+
* @default 1000
|
|
6
|
+
*/
|
|
7
|
+
intervalDuration?: number;
|
|
8
|
+
/**
|
|
9
|
+
* Time-sensitive content to render.
|
|
10
|
+
*/
|
|
11
|
+
children: (currentTime: number) => ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Rerender component
|
|
15
|
+
*
|
|
16
|
+
* This component triggers a rerender at a specified interval, providing the current time
|
|
17
|
+
* (in milliseconds) to its child function. Useful for dynamically updating content based
|
|
18
|
+
* on time-sensitive data.
|
|
19
|
+
*/
|
|
20
|
+
export declare const Rerender: React.FC<IRerenderProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Spinner, type ISpinnerProps, type SpinnerSize, type SpinnerVariant } from './spinner';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type HTMLAttributes } from 'react';
|
|
2
|
+
import type { ResponsiveAttribute } from '../../types';
|
|
3
|
+
export type SpinnerSize = 'sm' | 'md' | 'lg' | 'xl';
|
|
4
|
+
export type SpinnerVariant = 'neutral' | 'primary' | 'primaryInverted' | 'success' | 'warning' | 'critical';
|
|
5
|
+
export interface ISpinnerProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
/**
|
|
7
|
+
* Size of the spinner.
|
|
8
|
+
* @default md
|
|
9
|
+
*/
|
|
10
|
+
size?: SpinnerSize;
|
|
11
|
+
/**
|
|
12
|
+
* Size of the spinner depending on the current breakpoint.
|
|
13
|
+
*/
|
|
14
|
+
responsiveSize?: ResponsiveAttribute<SpinnerSize>;
|
|
15
|
+
/**
|
|
16
|
+
* Variant of the spinner.
|
|
17
|
+
* @default neutral
|
|
18
|
+
*/
|
|
19
|
+
variant?: SpinnerVariant;
|
|
20
|
+
/**
|
|
21
|
+
* Defines if the spinner is in the loading state or not.
|
|
22
|
+
* @default true
|
|
23
|
+
*/
|
|
24
|
+
isLoading?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Spinner UI component
|
|
28
|
+
*/
|
|
29
|
+
export declare const Spinner: React.FC<ISpinnerProps>;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { IButtonBaseProps, IButtonElementProps } from '../../button';
|
|
2
|
+
import type { IIllustrationHumanProps, IIllustrationObjectProps } from '../../illustrations';
|
|
3
|
+
export interface IEmptyStateBaseProps {
|
|
4
|
+
/**
|
|
5
|
+
* Title of the empty state.
|
|
6
|
+
*/
|
|
7
|
+
heading: string;
|
|
8
|
+
/**
|
|
9
|
+
* Description of the empty state.
|
|
10
|
+
*/
|
|
11
|
+
description?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Renders the state as horitontal when set to false.
|
|
14
|
+
* @default true
|
|
15
|
+
*/
|
|
16
|
+
isStacked?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Primary button of the empty state. The primary button is only rendered on the stacked variant.
|
|
19
|
+
*/
|
|
20
|
+
primaryButton?: IEmptyStateButton;
|
|
21
|
+
/**
|
|
22
|
+
* Secondary button of the empty state.
|
|
23
|
+
*/
|
|
24
|
+
secondaryButton?: IEmptyStateButton;
|
|
25
|
+
/**
|
|
26
|
+
* Additional class names to be added to the empty state.
|
|
27
|
+
*/
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
export type IEmptyStateButton = Omit<IButtonBaseProps, 'variant' | 'size' | 'children'> & IButtonElementProps & {
|
|
31
|
+
/**
|
|
32
|
+
* Button label to be rendered.
|
|
33
|
+
*/
|
|
34
|
+
label: string;
|
|
35
|
+
};
|
|
36
|
+
export interface IEmptyStateHumanIllustrationProps extends IEmptyStateBaseProps {
|
|
37
|
+
/**
|
|
38
|
+
* @see IIllustrationHumanProps
|
|
39
|
+
*/
|
|
40
|
+
humanIllustration: IIllustrationHumanProps;
|
|
41
|
+
objectIllustration?: never;
|
|
42
|
+
}
|
|
43
|
+
export interface IEmptyStateObjectIllustrationProps extends IEmptyStateBaseProps {
|
|
44
|
+
/**
|
|
45
|
+
* @see IIllustrationObjectProps
|
|
46
|
+
*/
|
|
47
|
+
objectIllustration: IIllustrationObjectProps;
|
|
48
|
+
humanIllustration?: never;
|
|
49
|
+
}
|
|
50
|
+
export type IEmptyStateProps = IEmptyStateHumanIllustrationProps | IEmptyStateObjectIllustrationProps;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StatePingAnimation, type IStatePingAnimationProps, type StatePingAnimationVariant, } from './statePingAnimation';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
export type StatePingAnimationVariant = 'primary' | 'info' | 'success' | 'warning' | 'critical';
|
|
4
|
+
export interface IStatePingAnimationProps extends ComponentPropsWithoutRef<'span'> {
|
|
5
|
+
/**
|
|
6
|
+
* Variant of the ping animation
|
|
7
|
+
* @default primary
|
|
8
|
+
*/
|
|
9
|
+
variant?: StatePingAnimationVariant;
|
|
10
|
+
}
|
|
11
|
+
export declare const StatePingAnimation: React.FC<IStatePingAnimationProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StateSkeletonBar, type IStateSkeletonBarProps, type StateSkeletonBarSize } from './stateSkeletonBar';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type CSSProperties, type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { type ResponsiveAttribute } from '../../../types';
|
|
3
|
+
export type StateSkeletonBarSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
export interface IStateSkeletonBarProps extends ComponentPropsWithoutRef<'span'> {
|
|
5
|
+
/**
|
|
6
|
+
* Responsive size attribute for the skeleton.
|
|
7
|
+
*/
|
|
8
|
+
responsiveSize?: ResponsiveAttribute<StateSkeletonBarSize>;
|
|
9
|
+
/**
|
|
10
|
+
* The size of the skeleton.
|
|
11
|
+
* @default 'md'
|
|
12
|
+
*/
|
|
13
|
+
size?: StateSkeletonBarSize;
|
|
14
|
+
/**
|
|
15
|
+
* Specifies the width of the skeleton element.
|
|
16
|
+
* Can be provided as a number (interpreted as pixels)
|
|
17
|
+
* or a string with explicit units (e.g., px, %, em).
|
|
18
|
+
* @default 160
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* width={200} // Sets width to 200 pixels.
|
|
22
|
+
* width="100px" // Sets width to 100 pixels.
|
|
23
|
+
* width="10%" // Sets width to 10% of its parent container.
|
|
24
|
+
*/
|
|
25
|
+
width?: CSSProperties['width'];
|
|
26
|
+
}
|
|
27
|
+
export declare const StateSkeletonBar: import("react").ForwardRefExoticComponent<IStateSkeletonBarProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { StateSkeletonCircular, type IStateSkeletonCircularProps, type StateSkeletonCircularSize, } from './stateSkeletonCircular';
|
package/dist/types/src/core/components/states/stateSkeletonCircular/stateSkeletonCircular.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import { type ResponsiveAttribute } from '../../../types';
|
|
3
|
+
export type StateSkeletonCircularSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
4
|
+
export interface IStateSkeletonCircularProps extends ComponentPropsWithoutRef<'span'> {
|
|
5
|
+
/**
|
|
6
|
+
* Responsive size attribute for the skeleton.
|
|
7
|
+
*/
|
|
8
|
+
responsiveSize?: ResponsiveAttribute<StateSkeletonCircularSize>;
|
|
9
|
+
/**
|
|
10
|
+
* The size of the skeleton.
|
|
11
|
+
* @default 'md'
|
|
12
|
+
*/
|
|
13
|
+
size?: StateSkeletonCircularSize;
|
|
14
|
+
}
|
|
15
|
+
export declare const StateSkeletonCircular: import("react").ForwardRefExoticComponent<IStateSkeletonCircularProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const Tabs: {
|
|
2
|
+
Root: import("react").ForwardRefExoticComponent<import("./tabsRoot").ITabsRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
+
List: import("react").FC<import("./tabsList").ITabsListProps>;
|
|
4
|
+
Trigger: import("react").FC<import("./tabsTrigger").ITabsTriggerProps>;
|
|
5
|
+
Content: import("react").FC<import("./tabsContent").ITabsContentProps>;
|
|
6
|
+
};
|
|
7
|
+
export * from './tabsContent';
|
|
8
|
+
export * from './tabsList';
|
|
9
|
+
export * from './tabsRoot';
|
|
10
|
+
export * from './tabsTrigger';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabsContent, type ITabsContentProps } from './tabsContent';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
export interface ITabsContentProps extends ComponentProps<'div'> {
|
|
3
|
+
/**
|
|
4
|
+
* Value linking Tabs.Content to its corresponding Tabs.Trigger
|
|
5
|
+
*/
|
|
6
|
+
value: string;
|
|
7
|
+
/**
|
|
8
|
+
* When `true`, the content will stay mounted even when inactive.
|
|
9
|
+
*/
|
|
10
|
+
forceMount?: true;
|
|
11
|
+
}
|
|
12
|
+
export declare const TabsContent: React.FC<ITabsContentProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabsList, type ITabsListProps } from './tabsList';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabsContext, TabsRoot, type ITabsContext, type ITabsRootProps } from './tabsRoot';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Tabs as RadixTabsRoot } from '@radix-ui/react-tabs';
|
|
2
|
+
import { type ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
export interface ITabsRootProps extends ComponentPropsWithoutRef<typeof RadixTabsRoot> {
|
|
4
|
+
/**
|
|
5
|
+
* The value of the tab that should be selected by default.
|
|
6
|
+
*/
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The value of the selected tab.
|
|
10
|
+
*/
|
|
11
|
+
value?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Callback when the value changes.
|
|
14
|
+
*/
|
|
15
|
+
onValueChange?: (value: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Whether the Tabs.List should use an underlined style. @default false
|
|
18
|
+
*/
|
|
19
|
+
isUnderlined?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface ITabsContext {
|
|
22
|
+
/**
|
|
23
|
+
* Whether the tabs share a common underline style implementation via the Tabs.List.
|
|
24
|
+
*/
|
|
25
|
+
isUnderlined: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare const TabsContext: import("react").Context<ITabsContext>;
|
|
28
|
+
export declare const TabsRoot: import("react").ForwardRefExoticComponent<ITabsRootProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { TabsTrigger, type ITabsTriggerProps } from './tabsTrigger';
|