@abyss-project/commons-front-core 1.0.135 → 1.0.140
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/README.md +30 -2
- package/declaration.d.ts +13 -13
- package/dist/assets/index.d.ts +1 -1
- package/dist/assets/logo/index.d.ts +1 -0
- package/dist/components/Avatars/OrganizationAvatar/OrganizationAvatar.component.d.ts +23 -0
- package/dist/components/Avatars/OrganizationAvatar/index.d.ts +2 -0
- package/dist/components/Avatars/ProjectAvatar/ProjectAvatar.component.d.ts +16 -5
- package/dist/components/Avatars/ProjectAvatar/index.d.ts +1 -0
- package/dist/components/Avatars/UserAvatar/UserAvatar.component.d.ts +10 -0
- package/dist/components/Avatars/UserAvatar/constant.d.ts +6 -2
- package/dist/components/Avatars/UserAvatar/index.d.ts +1 -0
- package/dist/components/Avatars/UserAvatarList/UserAvatarList.component.d.ts +18 -0
- package/dist/components/{UserAvatarList → Avatars/UserAvatarList}/index.d.ts +1 -0
- package/dist/components/Avatars/index.d.ts +2 -0
- package/dist/components/Banking/AccountTransactions/AccountTransactionsRow.component.d.ts +2 -4
- package/dist/components/Banking/Inputs/SelectAccountTransactionCategory/SelectAccountTransactionCategory.component.d.ts +2 -4
- package/dist/components/Cards/InternalProjectCard/InternalProjectCard.component.d.ts +36 -0
- package/dist/components/Cards/InternalProjectCard/index.d.ts +2 -0
- package/dist/components/Cards/ProjectCard/ProjectCard.component.d.ts +27 -0
- package/dist/components/Cards/ProjectCard/index.d.ts +2 -0
- package/dist/components/Cards/index.d.ts +2 -0
- package/dist/components/Charts/AbyssBarChart/AbyssBarChart.component.d.ts +21 -0
- package/dist/components/Charts/AbyssBarChart/index.d.ts +1 -0
- package/dist/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.d.ts +14 -0
- package/dist/components/Charts/AbyssCashFlowChart/index.d.ts +1 -0
- package/dist/components/Charts/AbyssLineChart/AbyssLineChart.component.d.ts +27 -0
- package/dist/components/Charts/AbyssLineChart/index.d.ts +1 -0
- package/dist/components/Charts/AbyssPieChart/AbyssPieChart.component.d.ts +18 -0
- package/dist/components/Charts/AbyssPieChart/index.d.ts +1 -0
- package/dist/components/Charts/index.d.ts +4 -0
- package/dist/components/Charts/useNivoTheme.d.ts +65 -0
- package/dist/components/CookieConsent/AbyssCookieConsentProvider.d.ts +12 -0
- package/dist/components/CookieConsent/CookieConsentBanner.component.d.ts +7 -0
- package/dist/components/CookieConsent/CookieConsentSettings.component.d.ts +2 -0
- package/dist/components/CookieConsent/cookie-storage.util.d.ts +15 -0
- package/dist/components/CookieConsent/cookie-storage.util.spec.d.ts +1 -0
- package/dist/components/CookieConsent/index.d.ts +7 -0
- package/dist/components/CookieConsent/reconcile.util.d.ts +12 -0
- package/dist/components/CookieConsent/reconcile.util.spec.d.ts +1 -0
- package/dist/components/CookieConsent/types.d.ts +11 -0
- package/dist/components/CookieConsent/use-cookie-consent.hook.d.ts +15 -0
- package/dist/components/Data/AbyssTable/AbyssTable.component.d.ts +35 -0
- package/dist/components/Data/AbyssTable/index.d.ts +2 -0
- package/dist/components/Data/index.d.ts +1 -0
- package/dist/components/InfoBox/InfoBox.component.d.ts +5 -3
- package/dist/components/Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.d.ts +12 -13
- package/dist/components/Inputs/AbyssNumberField/AbyssNumberField.component.d.ts +16 -0
- package/dist/components/Inputs/AbyssNumberField/index.d.ts +2 -0
- package/dist/components/Inputs/AbyssScopeSwitcher/AbyssScopeSwitcher.component.d.ts +20 -0
- package/dist/components/Inputs/AbyssScopeSwitcher/index.d.ts +2 -0
- package/dist/components/Inputs/AbyssSelectOrganization/AbyssSelectOrganization.component.d.ts +18 -0
- package/dist/components/Inputs/AbyssSelectOrganization/index.d.ts +2 -0
- package/dist/components/Inputs/AbyssSelectProject/AbyssSelectProject.component.d.ts +12 -9
- package/dist/components/Inputs/AbyssSelectProject/index.d.ts +1 -0
- package/dist/components/Inputs/CloudImport/CloudImport.component.d.ts +21 -9
- package/dist/components/Inputs/CloudImport/CloudImportFile.component.d.ts +2 -4
- package/dist/components/Inputs/CloudImport/CloudImportFolder.component.d.ts +2 -4
- package/dist/components/Inputs/CloudSave/CloudSave.component.d.ts +12 -9
- package/dist/components/Inputs/ColorPalette/ColorPalette.component.d.ts +20 -0
- package/dist/components/Inputs/ColorPalette/index.d.ts +1 -0
- package/dist/components/Inputs/ColorPicker/ColorPicker.component.d.ts +19 -0
- package/dist/components/Inputs/ColorPicker/index.d.ts +1 -0
- package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +24 -9
- package/dist/components/Inputs/DatePeriodPicker/index.d.ts +1 -0
- package/dist/components/Inputs/DropZone/DropZone.component.d.ts +11 -10
- package/dist/components/Inputs/PasswordInput/PasswordInput.component.d.ts +2 -5
- package/dist/components/Inputs/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +8 -0
- package/dist/components/Inputs/ProjectCategoryBadge/index.d.ts +1 -0
- package/dist/components/Inputs/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +39 -0
- package/dist/components/Inputs/ProjectLinkSelector/index.d.ts +2 -0
- package/dist/components/Inputs/ProjectTagChip/ProjectTagChip.component.d.ts +9 -0
- package/dist/components/Inputs/ProjectTagChip/index.d.ts +1 -0
- package/dist/components/Inputs/index.d.ts +13 -6
- package/dist/components/Invitations/AbyssPendingInvitations.component.d.ts +18 -0
- package/dist/components/Invitations/index.d.ts +2 -0
- package/dist/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.d.ts +9 -0
- package/dist/components/Layouts/AbyssBillingPlan/index.d.ts +1 -0
- package/dist/components/Layouts/AbyssDashboardLayout/AbyssDashboardLayout.component.d.ts +13 -0
- package/dist/components/Layouts/AbyssDashboardLayout/index.d.ts +1 -0
- package/dist/components/Layouts/AbyssHeader/AbyssHeader.component.d.ts +14 -0
- package/dist/components/Layouts/AbyssHeader/index.d.ts +1 -0
- package/dist/components/Layouts/AbyssLayoutProvider/AbyssLayoutProvider.component.d.ts +26 -0
- package/dist/components/Layouts/AbyssLayoutProvider/abyss-layout.store.d.ts +27 -0
- package/dist/components/Layouts/AbyssLayoutProvider/index.d.ts +3 -0
- package/dist/components/Layouts/AbyssLoadingScreen/AbyssLoadingScreen.component.d.ts +3 -0
- package/dist/components/Layouts/AbyssLoadingScreen/index.d.ts +1 -0
- package/dist/components/Layouts/AbyssSearchBar/AbyssSearchBar.component.d.ts +8 -0
- package/dist/components/Layouts/AbyssSearchBar/index.d.ts +1 -0
- package/dist/components/Layouts/AbyssSidebar/AbyssSidebar.component.d.ts +35 -0
- package/dist/components/Layouts/AbyssSidebar/AbyssSidebarItem.component.d.ts +9 -0
- package/dist/components/Layouts/AbyssSidebar/index.d.ts +3 -0
- package/dist/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.d.ts +7 -0
- package/dist/components/Layouts/AbyssThemeToggle/index.d.ts +1 -0
- package/dist/components/Layouts/DashboardLayout/DashboardLayout.layout.d.ts +3 -5
- package/dist/components/Layouts/DashboardLayout/DashboardLayoutHeader.layout.d.ts +3 -5
- package/dist/components/Layouts/LoadingLayout/LoadingLayout.layout.d.ts +2 -4
- package/dist/components/Layouts/MainLayout/MainLayout.layout.d.ts +2 -4
- package/dist/components/Layouts/index.d.ts +8 -0
- package/dist/components/Modals/AbyssModal/AbyssModal.component.d.ts +9 -9
- package/dist/components/Modals/ConfirmModal/ConfirmModal.d.ts +3 -4
- package/dist/components/Modals/ConfirmModal/index.d.ts +1 -1
- package/dist/components/Modals/ImportFromCloudModal/ImportFromCloudModal.component.d.ts +20 -10
- package/dist/components/Modals/QRCodeModal/QRCodeModal.component.d.ts +2 -4
- package/dist/components/Modals/SaveCloudModal/SaveCloudModal.component.d.ts +12 -10
- package/dist/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +13 -0
- package/dist/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +27 -0
- package/dist/components/Modals/UserSettingsModal/index.d.ts +2 -0
- package/dist/components/Modals/index.d.ts +2 -2
- package/dist/components/PdfEditor/PdfEditor.d.ts +3 -0
- package/dist/components/PdfEditor/hooks/use-acro-form-fields.d.ts +2 -0
- package/dist/components/PdfEditor/hooks/use-export.d.ts +7 -0
- package/dist/components/PdfEditor/hooks/use-page-order.d.ts +2 -0
- package/dist/components/PdfEditor/hooks/use-pdf-document.d.ts +11 -0
- package/dist/components/PdfEditor/hooks/use-undo-redo.d.ts +7 -0
- package/dist/components/PdfEditor/hooks/use-uploaded-docs.d.ts +3 -0
- package/dist/components/PdfEditor/index.d.ts +3 -0
- package/dist/components/PdfEditor/operations/apply.d.ts +2 -0
- package/dist/components/PdfEditor/operations/apply.spec.d.ts +1 -0
- package/dist/components/PdfEditor/operations/compute-page-order.d.ts +9 -0
- package/dist/components/PdfEditor/operations/compute-page-order.spec.d.ts +1 -0
- package/dist/components/PdfEditor/operations/pdf-data-url.d.ts +2 -0
- package/dist/components/PdfEditor/operations/reducer.d.ts +3 -0
- package/dist/components/PdfEditor/operations/reducer.spec.d.ts +1 -0
- package/dist/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +10 -0
- package/dist/components/PdfEditor/signature/SignaturePicker.d.ts +13 -0
- package/dist/components/PdfEditor/signature/SignatureSaveButton.d.ts +9 -0
- package/dist/components/PdfEditor/signature/SignatureSavedList.d.ts +10 -0
- package/dist/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +10 -0
- package/dist/components/PdfEditor/tools/DrawTool.d.ts +9 -0
- package/dist/components/PdfEditor/tools/FillFieldsTool.d.ts +8 -0
- package/dist/components/PdfEditor/tools/SignatureTool.d.ts +12 -0
- package/dist/components/PdfEditor/tools/TextTool.d.ts +2 -0
- package/dist/components/PdfEditor/tools/Toolbar.d.ts +18 -0
- package/dist/components/PdfEditor/types.d.ts +217 -0
- package/dist/components/PdfEditor/viewer/InsertPagesButton.d.ts +9 -0
- package/dist/components/PdfEditor/viewer/InsertPagesDialog.d.ts +10 -0
- package/dist/components/PdfEditor/viewer/PageOverlay.d.ts +21 -0
- package/dist/components/PdfEditor/viewer/PageSidebar.d.ts +15 -0
- package/dist/components/PdfEditor/viewer/PageThumbnail.d.ts +17 -0
- package/dist/components/PdfEditor/viewer/PdfCanvas.d.ts +17 -0
- package/dist/components/QuotaReached/QuotaReachedDialog.component.d.ts +5 -0
- package/dist/components/QuotaReached/billing-quota-error.d.ts +4 -0
- package/dist/components/QuotaReached/index.d.ts +6 -0
- package/dist/components/QuotaReached/quota-dialog.store.d.ts +15 -0
- package/dist/components/QuotaReached/quota-service-meta.d.ts +27 -0
- package/dist/components/Support/AbyssServiceSelect.component.d.ts +35 -0
- package/dist/components/Support/SupportActionButtons.component.d.ts +3 -0
- package/dist/components/Support/SupportActivityLog.component.d.ts +3 -0
- package/dist/components/Support/SupportAttachmentsPanel.component.d.ts +3 -0
- package/dist/components/Support/SupportCategoryChip.component.d.ts +9 -0
- package/dist/components/Support/SupportCategoryGroupCards.component.d.ts +3 -0
- package/dist/components/Support/SupportCategorySelect.component.d.ts +19 -0
- package/dist/components/Support/SupportMessageInput.component.d.ts +3 -0
- package/dist/components/Support/SupportMessageThread.component.d.ts +3 -0
- package/dist/components/Support/SupportPriorityChip.component.d.ts +3 -0
- package/dist/components/Support/SupportSidebar.component.d.ts +3 -0
- package/dist/components/Support/SupportStatusBadge.component.d.ts +3 -0
- package/dist/components/Support/SupportTicketCreateForm.component.d.ts +3 -0
- package/dist/components/Support/SupportTicketCreateStepper.component.d.ts +3 -0
- package/dist/components/Support/SupportTicketDetail.component.d.ts +3 -0
- package/dist/components/Support/SupportTicketList.component.d.ts +3 -0
- package/dist/components/Support/SupportTopBar.component.d.ts +3 -0
- package/dist/components/Support/index.d.ts +18 -0
- package/dist/components/Support/types.d.ts +252 -0
- package/dist/components/Utils/AbyssBackground/AbyssBackground.component.d.ts +9 -0
- package/dist/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +2 -5
- package/dist/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.d.ts +10 -0
- package/dist/components/Utils/AbyssErrorPage/AbyssErrorPage.component.d.ts +11 -0
- package/dist/components/Utils/AbyssErrorPage/index.d.ts +3 -0
- package/dist/components/Utils/AbyssHeaderTitle/AbyssHeaderTitle.component.d.ts +3 -5
- package/dist/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.d.ts +33 -24
- package/dist/components/Utils/AbyssLayoutMenu/AbyssMenuItem.component.d.ts +15 -0
- package/dist/components/Utils/AbyssLayoutMenu/index.d.ts +2 -0
- package/dist/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts +25 -12
- package/dist/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.d.ts +24 -9
- package/dist/components/Utils/AbyssLayoutNotifications/index.d.ts +2 -0
- package/dist/components/Utils/ImportButton/ImportButton.component.d.ts +36 -0
- package/dist/components/Utils/Toast/AbyssToast.component.d.ts +3 -0
- package/dist/components/Utils/Toast/index.d.ts +1 -0
- package/dist/components/Utils/WaterParticles/WaterParticles.component.d.ts +2 -6
- package/dist/components/Utils/index.d.ts +6 -3
- package/dist/components/index.d.ts +10 -8
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/use-cloud.hook.d.ts +3 -3
- package/dist/hooks/use-public-users.hook.d.ts +13 -0
- package/dist/hooks/use-rich-intl.hook.d.ts +1362 -212
- package/dist/hooks/use-theme-transition.hook.d.ts +4 -0
- package/dist/{index-gCpu5f9z.js → index-0Kl4O08s.js} +2 -2
- package/dist/{index-CdYmr155.js → index-BR_Xw8UL.js} +3 -3
- package/dist/{index-BnWtXPyg.js → index-BanaQPDD.js} +2 -2
- package/dist/{index-DeFVFcsM.js → index-BdtnG5GK.js} +2 -2
- package/dist/{index-UtVdSkzn.js → index-Bl6SIpvf.js} +1 -1
- package/dist/{index-CpqYJ_HN.js → index-CBU4Yqx5.js} +2 -2
- package/dist/{index-CoLGWgXI.js → index-CU2W3qym.js} +4 -4
- package/dist/{index-D__Z8Xsw.js → index-CypPvn_s.js} +2 -2
- package/dist/{index-Dk_KmVF1.js → index-D-1klt9M.js} +2 -2
- package/dist/{index-CC4UK1JX.js → index-D-lNUR0y.js} +2 -2
- package/dist/{index-CJOU7Mdg.js → index-D5ysDxCf.js} +2 -2
- package/dist/{index-CcWdcPha.js → index-DK4YUg-N.js} +2 -2
- package/dist/index-DR4nDzIn.js +117421 -0
- package/dist/{index-DPrXPSAH.js → index-DRApEyFE.js} +2 -2
- package/dist/{index-DkWj0imP.js → index-DS8zE3ca.js} +3 -3
- package/dist/{index-CcegjcGh.js → index-DYCXaPIH.js} +4 -4
- package/dist/{index-BJmWMt0A.js → index-DmM6klgp.js} +3 -3
- package/dist/{index-CsDN-X8K.js → index-DmUCpN76.js} +2 -2
- package/dist/{index-7woO6Vmb.js → index-KCcZKXY3.js} +3 -3
- package/dist/{index-DQ_TxTA-.js → index-SiHpvGQe.js} +2 -2
- package/dist/{index-DI8Xbxr-.js → index-UEOwaY3O.js} +4 -4
- package/dist/{index-wecGNuMv.js → index-okqeKiVw.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +236 -116
- package/dist/theme/augmentation.d.ts +78 -0
- package/dist/theme/components/buttons.d.ts +35 -0
- package/dist/theme/components/data-display.d.ts +4 -0
- package/dist/theme/components/index.d.ts +2 -0
- package/dist/theme/components/inputs.d.ts +4 -0
- package/dist/theme/components/navigation.d.ts +4 -0
- package/dist/theme/components/surfaces.d.ts +4 -0
- package/dist/theme/create-theme.d.ts +3 -0
- package/dist/theme/index.d.ts +15 -0
- package/dist/theme/palettes/common.d.ts +61 -0
- package/dist/theme/palettes/dark.d.ts +66 -0
- package/dist/theme/palettes/light.d.ts +66 -0
- package/dist/theme/tokens/animations.d.ts +30 -0
- package/dist/theme/tokens/borders.d.ts +11 -0
- package/dist/theme/tokens/colors.d.ts +102 -0
- package/dist/theme/tokens/shadows.d.ts +45 -0
- package/dist/theme/tokens/transitions.d.ts +21 -0
- package/dist/theme/tokens/typography.d.ts +93 -0
- package/dist/translations/en.d.ts +668 -9
- package/dist/translations/fr.d.ts +668 -9
- package/dist/utils/billing.utils.d.ts +7 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/locale.utils.d.ts +2 -0
- package/dist/utils/share-notification.utils.d.ts +1 -0
- package/dist/utils/space-display-name.utils.d.ts +9 -0
- package/package.json +25 -7
- package/tsconfig.json +35 -37
- package/vite.config.ts +68 -77
- package/vitest.config.ts +14 -0
- package/.eslintrc.cjs +0 -30
- package/dist/components/AllCloudMetrics/AllCloudMetrics.component.d.ts +0 -13
- package/dist/components/AllCloudMetrics/index.d.ts +0 -1
- package/dist/components/FiltersBox/FiltersBox.component.d.ts +0 -8
- package/dist/components/FiltersBox/index.d.ts +0 -1
- package/dist/components/FreepikSearch/FreepikSearch.component.d.ts +0 -9
- package/dist/components/FreepikSearch/index.d.ts +0 -1
- package/dist/components/ImportButton/ImportButton.component.d.ts +0 -29
- package/dist/components/Inputs/Toggle/Toggle.component.d.ts +0 -15
- package/dist/components/Inputs/Toggle/index.d.ts +0 -1
- package/dist/components/Modals/ImportFromCollectionModal/ImportFromCollectionModal.component.d.ts +0 -11
- package/dist/components/Modals/ImportFromCollectionModal/index.d.ts +0 -1
- package/dist/components/Modals/UserSettings/UserSettingsModal.component.d.ts +0 -18
- package/dist/components/Modals/UserSettings/index.d.ts +0 -2
- package/dist/components/UserAvatarList/UserAvatarList.component.d.ts +0 -18
- package/dist/components/Utils/CustomDivider/CustomDivider.component.d.ts +0 -4
- package/dist/components/Utils/CustomDivider/index.d.ts +0 -1
- package/dist/components/Utils/FloatingNavigation/FloatingNavigation.component.d.ts +0 -16
- package/dist/components/Utils/FloatingNavigation/index.d.ts +0 -1
- package/dist/hooks/use-theme.hook.d.ts +0 -1
- package/dist/index-CJY4ItlM.js +0 -122719
- package/dist/stylesheet.d.ts +0 -124
- package/dist/web-DaGNjxku.js +0 -18
- /package/dist/components/{ImportButton → Utils/ImportButton}/index.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
1
|
+
# Abyss Commons Front Core
|
|
2
|
+
|
|
3
|
+
`@abyss-project/commons-front-core`
|
|
4
|
+
|
|
5
|
+
Composants React, hooks, design system et traductions partagés par les frontends Abyss.
|
|
6
|
+
|
|
7
|
+
_Shared React components, hooks, design system and translations for Abyss frontends._
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install @abyss-project/commons-front-core
|
|
13
|
+
# or
|
|
14
|
+
pnpm add @abyss-project/commons-front-core
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Liens
|
|
18
|
+
|
|
19
|
+
- **Documentation** : [https://docs.abyss-project.fr/abyss-project](https://docs.abyss-project.fr/abyss-project)
|
|
20
|
+
- **NPM** : [@abyss-project/commons-front-core](https://www.npmjs.com/package/@abyss-project/commons-front-core)
|
|
21
|
+
- **Application Abyss** : [app.abyss-project.fr](https://app.abyss-project.fr)
|
|
22
|
+
- **Statut des services** : [status.abyss-project.fr](https://status.abyss-project.fr)
|
|
23
|
+
|
|
24
|
+
## Usage
|
|
25
|
+
|
|
26
|
+
Voir la [documentation produit](https://docs.abyss-project.fr/abyss-project) pour les guides d'utilisation, la configuration du Core, les exemples d'appel et la référence des permissions.
|
|
27
|
+
|
|
28
|
+
## Support
|
|
29
|
+
|
|
30
|
+
Pour toute demande, ouvrir un ticket depuis [l'application Abyss](https://app.abyss-project.fr/dashboard/my-account/ticket/create).
|
package/declaration.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare module '*.svg' {
|
|
2
|
-
import React from 'react';
|
|
3
|
-
const SVG: React.VFC<React.SVGProps<SVGSVGElement>>;
|
|
4
|
-
export default SVG;
|
|
5
|
-
}
|
|
6
|
-
declare module '*.png' {
|
|
7
|
-
const src: string;
|
|
8
|
-
export default src;
|
|
9
|
-
}
|
|
10
|
-
declare module '*.mp3' {
|
|
11
|
-
const src: string;
|
|
12
|
-
export default src;
|
|
13
|
-
}
|
|
1
|
+
declare module '*.svg' {
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const SVG: React.VFC<React.SVGProps<SVGSVGElement>>;
|
|
4
|
+
export default SVG;
|
|
5
|
+
}
|
|
6
|
+
declare module '*.png' {
|
|
7
|
+
const src: string;
|
|
8
|
+
export default src;
|
|
9
|
+
}
|
|
10
|
+
declare module '*.mp3' {
|
|
11
|
+
const src: string;
|
|
12
|
+
export default src;
|
|
13
|
+
}
|
package/dist/assets/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export * from './logo';
|
|
|
2
2
|
export { default as LogoAbyssFlat } from './logo_abyss_flat.svg';
|
|
3
3
|
export { default as LogoAbyssSmall } from './logo_abyss_small.png';
|
|
4
4
|
export { default as LogoAbyss } from './logo_abyss.svg';
|
|
5
|
-
export { default as NewsLogoAbyss } from './new_logo_abyss.png';
|
|
6
5
|
export { default as DiscordLogo } from './discord.svg';
|
|
7
6
|
export { default as GoogleLogo } from './google.svg';
|
|
7
|
+
export { default as SlackLogo } from './slack.svg';
|
|
@@ -14,3 +14,4 @@ export { default as AbyssRetro } from './AbyssRetro.svg';
|
|
|
14
14
|
export { default as AbyssTrainingLogo } from './AbyssTraining.svg';
|
|
15
15
|
export { default as AbyssHealthLogo } from './AbyssHealth.svg';
|
|
16
16
|
export { default as AbyssConsoleLogo } from './AbyssConsole.svg';
|
|
17
|
+
export { default as AbyssToolsLogo } from './AbyssTools.svg';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
export type OrganizationAvatarProfileInfo = {
|
|
3
|
+
createdAt?: string;
|
|
4
|
+
projectCount?: number;
|
|
5
|
+
memberCount?: number;
|
|
6
|
+
integrations?: string[];
|
|
7
|
+
extra?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
type Props = {
|
|
10
|
+
orgId: string;
|
|
11
|
+
name: string;
|
|
12
|
+
hasThumbnail: boolean;
|
|
13
|
+
hasBanner?: boolean;
|
|
14
|
+
cache?: string;
|
|
15
|
+
sx?: SxProps;
|
|
16
|
+
getLogoUrl: (orgId: string) => string;
|
|
17
|
+
getBannerUrl?: (orgId: string) => string;
|
|
18
|
+
showProfile?: boolean;
|
|
19
|
+
profileInfo?: OrganizationAvatarProfileInfo;
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
};
|
|
22
|
+
declare const OrganizationAvatar: React.FC<Props>;
|
|
23
|
+
export default OrganizationAvatar;
|
|
@@ -1,14 +1,25 @@
|
|
|
1
1
|
import { SxProps } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
export type ProjectAvatarProfileInfo = {
|
|
3
|
+
description?: string;
|
|
4
|
+
memberCount?: number;
|
|
5
|
+
appCount?: number;
|
|
6
|
+
status?: string;
|
|
7
|
+
organization?: string;
|
|
8
|
+
createdAt?: string;
|
|
9
|
+
onGoToOrg?: () => void;
|
|
10
|
+
onGoToProject?: () => void;
|
|
11
|
+
extra?: React.ReactNode;
|
|
12
|
+
};
|
|
4
13
|
type Props = {
|
|
5
14
|
projectId: string;
|
|
6
15
|
title: string;
|
|
7
|
-
classes: Record<string, string>;
|
|
8
16
|
hasThumbnail: boolean;
|
|
9
17
|
cache?: string;
|
|
10
18
|
sx?: SxProps;
|
|
11
19
|
getProjectPictureUrl: (projectId: string) => string;
|
|
20
|
+
showProfile?: boolean;
|
|
21
|
+
profileInfo?: ProjectAvatarProfileInfo;
|
|
22
|
+
onClick?: () => void;
|
|
12
23
|
};
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
24
|
+
declare const ProjectAvatar: React.FC<Props>;
|
|
25
|
+
export default ProjectAvatar;
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { SxProps } from '@mui/material';
|
|
2
|
+
export type UserAvatarProfileInfo = {
|
|
3
|
+
email?: string;
|
|
4
|
+
role?: string;
|
|
5
|
+
status?: 'online' | 'offline' | 'away';
|
|
6
|
+
joinedAt?: string;
|
|
7
|
+
extra?: React.ReactNode;
|
|
8
|
+
};
|
|
2
9
|
type Props = {
|
|
3
10
|
userId: string;
|
|
4
11
|
alias: string;
|
|
@@ -6,6 +13,9 @@ type Props = {
|
|
|
6
13
|
cache?: string;
|
|
7
14
|
sx?: SxProps;
|
|
8
15
|
getProfilePictureUrl: (userId: string) => string;
|
|
16
|
+
showProfile?: boolean;
|
|
17
|
+
profileInfo?: UserAvatarProfileInfo;
|
|
18
|
+
onClick?: () => void;
|
|
9
19
|
};
|
|
10
20
|
declare const UserAvatar: React.FC<Props>;
|
|
11
21
|
export default UserAvatar;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import { AvatarProps, SxProps } from '@mui/material';
|
|
2
1
|
export declare const AVATAR_BASE_WIDTH = 32;
|
|
3
2
|
export declare const AVATAR_WIDTH_RATIO = 0.625;
|
|
4
|
-
export declare const AVATAR_BASE_SX:
|
|
3
|
+
export declare const AVATAR_BASE_SX: {
|
|
4
|
+
readonly border: "1px solid";
|
|
5
|
+
readonly borderColor: "primary.main";
|
|
6
|
+
readonly transition: "all 0.25s cubic-bezier(0.4, 0, 0.2, 1)";
|
|
7
|
+
readonly bgcolor: "transparent";
|
|
8
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
export type UserAvatarListUser = {
|
|
4
|
+
id: string;
|
|
5
|
+
alias?: string | null;
|
|
6
|
+
hasThumbnail?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type Props = {
|
|
9
|
+
users: UserAvatarListUser[] | null;
|
|
10
|
+
size?: number;
|
|
11
|
+
label?: string;
|
|
12
|
+
sx?: SxProps;
|
|
13
|
+
sxItem?: SxProps;
|
|
14
|
+
getProfilePictureUrl: (userId: string) => string;
|
|
15
|
+
maxAvatarCount?: number;
|
|
16
|
+
};
|
|
17
|
+
declare const UserAvatarList: React.FC<Props>;
|
|
18
|
+
export default UserAvatarList;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IBankAccount, ICategory } from '@abyss-project/banking';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
3
|
export type PartialAccountTransaction = {
|
|
5
4
|
id: string;
|
|
6
5
|
amount: number;
|
|
@@ -24,9 +23,8 @@ type Props = {
|
|
|
24
23
|
displayCategoryList?: boolean;
|
|
25
24
|
collapseChildren?: React.ReactNode;
|
|
26
25
|
categories: ICategory[];
|
|
27
|
-
classes: Record<string, string>;
|
|
28
26
|
handleOpenCommentModal?: () => void;
|
|
29
27
|
customActions?: React.ReactNode;
|
|
30
28
|
};
|
|
31
|
-
declare const
|
|
32
|
-
export default
|
|
29
|
+
declare const AccountTransactionsRow: React.FC<Props>;
|
|
30
|
+
export default AccountTransactionsRow;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { SelectChangeEvent } from '@mui/material';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { ICategory } from '@abyss-project/banking';
|
|
4
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
5
4
|
type Props = {
|
|
6
5
|
value?: string[];
|
|
7
6
|
onChange?: (event: SelectChangeEvent<string[]>) => void;
|
|
8
7
|
isDisabled?: boolean;
|
|
9
8
|
error?: boolean;
|
|
10
9
|
categories: ICategory[];
|
|
11
|
-
classes: Record<string, string>;
|
|
12
10
|
};
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
11
|
+
declare const SelectAccountTransactionCategory: React.FC<Props>;
|
|
12
|
+
export default SelectAccountTransactionCategory;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type InternalProjectCardData = {
|
|
3
|
+
id?: string;
|
|
4
|
+
title: string;
|
|
5
|
+
description?: string | null;
|
|
6
|
+
status?: string;
|
|
7
|
+
createdAt?: string | Date | null;
|
|
8
|
+
isPublished?: boolean;
|
|
9
|
+
category?: string;
|
|
10
|
+
tags?: string[];
|
|
11
|
+
mainLanguage?: string;
|
|
12
|
+
metrics?: {
|
|
13
|
+
views?: number;
|
|
14
|
+
posts?: number;
|
|
15
|
+
followers?: number;
|
|
16
|
+
favorites?: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
interface InternalProjectCardProps {
|
|
20
|
+
project: InternalProjectCardData;
|
|
21
|
+
index: number;
|
|
22
|
+
onEdit?: (project: InternalProjectCardData) => void;
|
|
23
|
+
onDelete?: (project: InternalProjectCardData) => void;
|
|
24
|
+
pathToProjectDetails: string;
|
|
25
|
+
bannerUrl?: string;
|
|
26
|
+
logoUrl?: string;
|
|
27
|
+
targetViewport?: '_blank' | '_self';
|
|
28
|
+
actions?: React.ReactNode;
|
|
29
|
+
statusLabel?: (status: string) => string;
|
|
30
|
+
formatCategory?: (category: string) => string;
|
|
31
|
+
formatDate?: (date: Date) => string;
|
|
32
|
+
formatNumber?: (n: number) => string;
|
|
33
|
+
formatLanguage?: (language: string) => string;
|
|
34
|
+
}
|
|
35
|
+
declare const InternalProjectCard: React.FC<InternalProjectCardProps>;
|
|
36
|
+
export default InternalProjectCard;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type ProjectCardProject = {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
createdAt?: string;
|
|
6
|
+
tags?: string[];
|
|
7
|
+
mainLanguage?: string;
|
|
8
|
+
category?: string;
|
|
9
|
+
};
|
|
10
|
+
type Props = {
|
|
11
|
+
project: ProjectCardProject;
|
|
12
|
+
logoUrl: string | null;
|
|
13
|
+
bannerUrl: string | null;
|
|
14
|
+
isStarred: boolean;
|
|
15
|
+
isFollowed: boolean;
|
|
16
|
+
startCount: number;
|
|
17
|
+
viewCount: number;
|
|
18
|
+
formatCategory?: (category: string) => string;
|
|
19
|
+
formatDate?: (date: Date) => string;
|
|
20
|
+
starredTooltip?: string;
|
|
21
|
+
followingTooltip?: string;
|
|
22
|
+
formatLanguage?: (language: string) => string;
|
|
23
|
+
formatNumber?: (n: number) => string;
|
|
24
|
+
variant?: 'default' | 'compact';
|
|
25
|
+
};
|
|
26
|
+
declare const ProjectCard: React.FC<Props>;
|
|
27
|
+
export default ProjectCard;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
type AbyssBarChartProps = {
|
|
4
|
+
data: Record<string, any>[];
|
|
5
|
+
keys: string[];
|
|
6
|
+
indexBy: string;
|
|
7
|
+
height?: number;
|
|
8
|
+
enableZoom?: boolean;
|
|
9
|
+
horizontal?: boolean;
|
|
10
|
+
stacked?: boolean;
|
|
11
|
+
colors?: string[];
|
|
12
|
+
formatValue?: (value: any) => string;
|
|
13
|
+
hiddenKeys?: string[];
|
|
14
|
+
onKeyToggle?: (key: string) => void;
|
|
15
|
+
isInteractive?: boolean;
|
|
16
|
+
showLegend?: boolean;
|
|
17
|
+
showAxis?: boolean;
|
|
18
|
+
sx?: SxProps;
|
|
19
|
+
};
|
|
20
|
+
export declare const AbyssBarChart: React.FC<AbyssBarChartProps>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AbyssBarChart } from './AbyssBarChart.component';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface AbyssCashFlowPoint {
|
|
3
|
+
date: string;
|
|
4
|
+
balance: number;
|
|
5
|
+
in: number;
|
|
6
|
+
out: number;
|
|
7
|
+
}
|
|
8
|
+
interface Props {
|
|
9
|
+
data: AbyssCashFlowPoint[];
|
|
10
|
+
currency: string;
|
|
11
|
+
height?: number;
|
|
12
|
+
}
|
|
13
|
+
export declare const AbyssCashFlowChart: React.FC<Props>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AbyssCashFlowChart.component';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
type DataPoint = {
|
|
4
|
+
x: string | number;
|
|
5
|
+
y: number;
|
|
6
|
+
};
|
|
7
|
+
type LineSeries = {
|
|
8
|
+
id: string;
|
|
9
|
+
data: DataPoint[];
|
|
10
|
+
};
|
|
11
|
+
type AbyssLineChartProps = {
|
|
12
|
+
data: LineSeries[];
|
|
13
|
+
xLabel?: string;
|
|
14
|
+
yLabel?: string;
|
|
15
|
+
height?: number;
|
|
16
|
+
enableZoom?: boolean;
|
|
17
|
+
hiddenSeries?: string[];
|
|
18
|
+
onSeriesToggle?: (seriesId: string) => void;
|
|
19
|
+
formatXValue?: (value: any) => string;
|
|
20
|
+
formatYValue?: (value: any) => string;
|
|
21
|
+
sx?: SxProps;
|
|
22
|
+
colors?: string[];
|
|
23
|
+
enableArea?: boolean;
|
|
24
|
+
curve?: 'linear' | 'monotoneX' | 'cardinal' | 'step';
|
|
25
|
+
};
|
|
26
|
+
export declare const AbyssLineChart: React.FC<AbyssLineChartProps>;
|
|
27
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AbyssLineChart } from './AbyssLineChart.component';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
type PieDataItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
value: number;
|
|
6
|
+
label?: string;
|
|
7
|
+
};
|
|
8
|
+
type AbyssPieChartProps = {
|
|
9
|
+
data: PieDataItem[];
|
|
10
|
+
height?: number;
|
|
11
|
+
donut?: boolean;
|
|
12
|
+
colors?: string[];
|
|
13
|
+
enableLegend?: boolean;
|
|
14
|
+
formatValue?: (value: number) => string;
|
|
15
|
+
sx?: SxProps;
|
|
16
|
+
};
|
|
17
|
+
export declare const AbyssPieChart: React.FC<AbyssPieChartProps>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AbyssPieChart } from './AbyssPieChart.component';
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export declare const useNivoTheme: () => {
|
|
2
|
+
text: {
|
|
3
|
+
fill: string;
|
|
4
|
+
fontSize: number;
|
|
5
|
+
fontFamily: string;
|
|
6
|
+
};
|
|
7
|
+
axis: {
|
|
8
|
+
domain: {
|
|
9
|
+
line: {
|
|
10
|
+
stroke: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
ticks: {
|
|
14
|
+
line: {
|
|
15
|
+
stroke: string;
|
|
16
|
+
};
|
|
17
|
+
text: {
|
|
18
|
+
fill: string;
|
|
19
|
+
fontSize: number;
|
|
20
|
+
fontFamily: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
legend: {
|
|
24
|
+
text: {
|
|
25
|
+
fill: string;
|
|
26
|
+
fontSize: number;
|
|
27
|
+
fontWeight: number;
|
|
28
|
+
fontFamily: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
grid: {
|
|
33
|
+
line: {
|
|
34
|
+
stroke: string;
|
|
35
|
+
strokeDasharray: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
tooltip: {
|
|
39
|
+
container: {
|
|
40
|
+
background: string;
|
|
41
|
+
backdropFilter: string;
|
|
42
|
+
border: string;
|
|
43
|
+
borderRadius: string;
|
|
44
|
+
boxShadow: string;
|
|
45
|
+
fontSize: number;
|
|
46
|
+
padding: string;
|
|
47
|
+
color: string;
|
|
48
|
+
fontFamily: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
crosshair: {
|
|
52
|
+
line: {
|
|
53
|
+
stroke: string;
|
|
54
|
+
strokeOpacity: number;
|
|
55
|
+
strokeWidth: number;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
legends: {
|
|
59
|
+
text: {
|
|
60
|
+
fill: string;
|
|
61
|
+
fontSize: number;
|
|
62
|
+
fontFamily: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UseCookieConsent } from './use-cookie-consent.hook';
|
|
3
|
+
export declare const useAbyssCookieConsent: () => UseCookieConsent;
|
|
4
|
+
export interface AbyssCookieConsentProviderProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
consentVersion: string;
|
|
7
|
+
isAuthenticated: boolean;
|
|
8
|
+
domain?: string;
|
|
9
|
+
privacyLinkHref?: string;
|
|
10
|
+
renderBanner?: (api: UseCookieConsent) => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const AbyssCookieConsentProvider: React.FC<AbyssCookieConsentProviderProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UseCookieConsent } from './use-cookie-consent.hook';
|
|
3
|
+
export interface CookieConsentBannerProps {
|
|
4
|
+
api: UseCookieConsent;
|
|
5
|
+
privacyLinkHref: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const CookieConsentBanner: React.FC<CookieConsentBannerProps>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const COOKIE_NAME = "abyssCookieConsent";
|
|
2
|
+
export declare const VALIDITY_DAYS = 365;
|
|
3
|
+
export interface StoredConsent {
|
|
4
|
+
a: boolean;
|
|
5
|
+
m: boolean;
|
|
6
|
+
d: string;
|
|
7
|
+
v: string;
|
|
8
|
+
}
|
|
9
|
+
interface CookieOptions {
|
|
10
|
+
domain?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const readCookie: () => StoredConsent | null;
|
|
13
|
+
export declare const writeCookie: (consent: StoredConsent, opts?: CookieOptions) => void;
|
|
14
|
+
export declare const clearCookie: (opts?: CookieOptions) => void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from './AbyssCookieConsentProvider';
|
|
2
|
+
export * from './CookieConsentBanner.component';
|
|
3
|
+
export * from './CookieConsentSettings.component';
|
|
4
|
+
export * from './use-cookie-consent.hook';
|
|
5
|
+
export * from './cookie-storage.util';
|
|
6
|
+
export * from './reconcile.util';
|
|
7
|
+
export * from './types';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IUserCookieConsent } from '@abyss-project/main';
|
|
2
|
+
import { ResolvedConsent } from './types';
|
|
3
|
+
export declare enum ReconcileAction {
|
|
4
|
+
NOOP = "noop",
|
|
5
|
+
ADOPT_DB = "adopt-db",
|
|
6
|
+
PUSH_COOKIE = "push-cookie"
|
|
7
|
+
}
|
|
8
|
+
export interface ReconcileResult {
|
|
9
|
+
action: ReconcileAction;
|
|
10
|
+
value: ResolvedConsent | null;
|
|
11
|
+
}
|
|
12
|
+
export declare const reconcile: (cookie: ResolvedConsent | null, db: IUserCookieConsent | null) => ReconcileResult;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ResolvedConsent, SaveConsentInput } from './types';
|
|
2
|
+
export interface UseCookieConsentOptions {
|
|
3
|
+
isAuthenticated: boolean;
|
|
4
|
+
consentVersion: string;
|
|
5
|
+
domain?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface UseCookieConsent {
|
|
8
|
+
consent: ResolvedConsent | null;
|
|
9
|
+
isResolved: boolean;
|
|
10
|
+
acceptAll: () => void;
|
|
11
|
+
rejectAll: () => void;
|
|
12
|
+
save: (partial: SaveConsentInput) => void;
|
|
13
|
+
reset: () => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const useCookieConsent: (opts: UseCookieConsentOptions) => UseCookieConsent;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { SxProps } from '@mui/material';
|
|
2
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
3
|
+
import { default as React, ReactNode } from 'react';
|
|
4
|
+
export type AbyssTableFilterDef = {
|
|
5
|
+
columnId: string;
|
|
6
|
+
label: string;
|
|
7
|
+
render: (value: any, onChange: (value: any) => void) => ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export type AbyssTableProps<TData extends object> = {
|
|
10
|
+
data: TData[];
|
|
11
|
+
columns: ColumnDef<TData, any>[];
|
|
12
|
+
enableGlobalFilter?: boolean;
|
|
13
|
+
enableColumnFilters?: boolean;
|
|
14
|
+
enableSorting?: boolean;
|
|
15
|
+
enablePagination?: boolean;
|
|
16
|
+
defaultPageSize?: number;
|
|
17
|
+
pageSizeOptions?: number[];
|
|
18
|
+
manualPagination?: boolean;
|
|
19
|
+
pageCount?: number;
|
|
20
|
+
totalItems?: number;
|
|
21
|
+
currentPage?: number;
|
|
22
|
+
onPageChange?: (page: number) => void;
|
|
23
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
24
|
+
filters?: AbyssTableFilterDef[];
|
|
25
|
+
emptyMessage?: string;
|
|
26
|
+
emptyContent?: ReactNode;
|
|
27
|
+
onRowClick?: (row: TData) => void;
|
|
28
|
+
sx?: SxProps;
|
|
29
|
+
tableLabel?: string;
|
|
30
|
+
getRowSx?: (row: TData, index: number) => SxProps;
|
|
31
|
+
isLoading?: boolean;
|
|
32
|
+
renderAboveTable?: ReactNode;
|
|
33
|
+
};
|
|
34
|
+
declare function AbyssTable<TData extends object>({ data, columns, enableGlobalFilter, enableColumnFilters, enableSorting, enablePagination, defaultPageSize, pageSizeOptions, manualPagination, pageCount: externalPageCount, totalItems: externalTotalItems, currentPage: externalCurrentPage, onPageChange, onPageSizeChange, filters, emptyMessage, emptyContent, onRowClick, sx, tableLabel, getRowSx, isLoading, renderAboveTable, }: AbyssTableProps<TData>): React.JSX.Element;
|
|
35
|
+
export default AbyssTable;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AbyssTable';
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { BoxProps } from '@mui/material';
|
|
2
|
-
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
export declare const InfoBox: FC<BoxProps>;
|
|
4
|
+
export declare const ErrorInfoBox: FC<BoxProps>;
|
|
5
|
+
export declare const WarnInfoBox: FC<BoxProps>;
|
|
6
|
+
export declare const SuccessInfoBox: FC<BoxProps>;
|