@abyss-project/commons-front-core 1.0.136 → 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 +0 -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--QxdNiuT.js → index-0Kl4O08s.js} +2 -2
- package/dist/{index-C7YWMnUi.js → index-BR_Xw8UL.js} +3 -3
- package/dist/{index-yhL2fUpe.js → index-BanaQPDD.js} +2 -2
- package/dist/{index-DdIC_a4G.js → index-BdtnG5GK.js} +2 -2
- package/dist/{index-DsEAU1Su.js → index-Bl6SIpvf.js} +1 -1
- package/dist/{index-Vsp-9vGI.js → index-CBU4Yqx5.js} +2 -2
- package/dist/{index-CyMfYJL8.js → index-CU2W3qym.js} +4 -4
- package/dist/{index-C9V6yx6I.js → index-CypPvn_s.js} +2 -2
- package/dist/{index-D4xMvqEH.js → index-D-1klt9M.js} +2 -2
- package/dist/{index-BirsZhiu.js → index-D-lNUR0y.js} +2 -2
- package/dist/{index-D39o_sai.js → index-D5ysDxCf.js} +2 -2
- package/dist/{index-Cr-guXyg.js → index-DK4YUg-N.js} +2 -2
- package/dist/index-DR4nDzIn.js +117421 -0
- package/dist/{index-CLLYU3Ob.js → index-DRApEyFE.js} +2 -2
- package/dist/{index-DyrkSLE1.js → index-DS8zE3ca.js} +3 -3
- package/dist/{index-CzRcWnfQ.js → index-DYCXaPIH.js} +4 -4
- package/dist/{index-Bk2NQz31.js → index-DmM6klgp.js} +3 -3
- package/dist/{index-DufXsxfg.js → index-DmUCpN76.js} +2 -2
- package/dist/{index-DE33bhgE.js → index-KCcZKXY3.js} +3 -3
- package/dist/{index-BN2zc6Mp.js → index-SiHpvGQe.js} +2 -2
- package/dist/{index-DrwZbK23.js → index-UEOwaY3O.js} +4 -4
- package/dist/{index-CjCtN6N9.js → index-okqeKiVw.js} +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +236 -117
- 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-_UVTFDmE.js +0 -122724
- package/dist/stylesheet.d.ts +0 -128
- package/dist/web-Bt2mRnhv.js +0 -18
- /package/dist/components/{ImportButton → Utils/ImportButton}/index.d.ts +0 -0
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CrepeConfig } from '@milkdown/crepe';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export default _default;
|
|
3
|
+
type Props = {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
defaultValue?: string;
|
|
6
|
+
externalValue?: string;
|
|
7
|
+
onChange?: (md: string) => void;
|
|
8
|
+
readOnly?: boolean;
|
|
9
|
+
onUploadFile?: (file: File) => Promise<string>;
|
|
10
|
+
enableImageUpload?: boolean;
|
|
11
|
+
enableFileUpload?: boolean;
|
|
12
|
+
} & CrepeConfig;
|
|
13
|
+
declare const AbyssMarkdownEditor: React.FC<Props>;
|
|
14
|
+
export default AbyssMarkdownEditor;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TextFieldProps } from '@mui/material';
|
|
2
|
+
export type AbyssNumberFieldProps = Omit<TextFieldProps, 'value' | 'onChange'> & {
|
|
3
|
+
value: number | null;
|
|
4
|
+
onChange: (value: number | null) => void;
|
|
5
|
+
mode?: 'number' | 'currency';
|
|
6
|
+
currencySymbol?: string;
|
|
7
|
+
currencyPosition?: 'start' | 'end';
|
|
8
|
+
locale?: string;
|
|
9
|
+
decimals?: number;
|
|
10
|
+
thousandSeparator?: string;
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
allowNegative?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const AbyssNumberField: React.FC<AbyssNumberFieldProps>;
|
|
16
|
+
export default AbyssNumberField;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type ScopeOption = {
|
|
3
|
+
id: string | null;
|
|
4
|
+
name: string;
|
|
5
|
+
logoId?: string | null;
|
|
6
|
+
};
|
|
7
|
+
type Props = {
|
|
8
|
+
organizations: ScopeOption[];
|
|
9
|
+
selectedOrganizationId: string | null;
|
|
10
|
+
onChange: (organizationId: string | null) => void;
|
|
11
|
+
getOrganizationLogoUrl: (orgId: string) => string;
|
|
12
|
+
personalLabel?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
userId?: string;
|
|
15
|
+
userName?: string;
|
|
16
|
+
getUserProfilePictureUrl?: (userId: string) => string;
|
|
17
|
+
hidePersonal?: boolean;
|
|
18
|
+
};
|
|
19
|
+
declare function AbyssScopeSwitcher({ organizations, selectedOrganizationId, onChange, getOrganizationLogoUrl, personalLabel, placeholder, userId, userName, getUserProfilePictureUrl, hidePersonal, }: Props): React.ReactElement;
|
|
20
|
+
export { AbyssScopeSwitcher };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type SelectableOrganization = {
|
|
3
|
+
id?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string | null;
|
|
6
|
+
logoId?: string | null;
|
|
7
|
+
};
|
|
8
|
+
type Props<T extends SelectableOrganization = SelectableOrganization> = {
|
|
9
|
+
organizations: T[] | null;
|
|
10
|
+
selectedOrganization: T | null;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
onChange: (selectedOrganization: T | null) => void;
|
|
13
|
+
label?: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
getOrganizationLogoUrl: (orgId: string) => string;
|
|
16
|
+
};
|
|
17
|
+
declare function AbyssSelectOrganization<T extends SelectableOrganization = SelectableOrganization>({ onChange, organizations, selectedOrganization, disabled, label, placeholder, getOrganizationLogoUrl, }: Props<T>): React.ReactElement;
|
|
18
|
+
export default AbyssSelectOrganization;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
export type SelectableProject = {
|
|
3
|
+
id?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string | null;
|
|
6
|
+
pictureId?: string | null;
|
|
7
|
+
};
|
|
8
|
+
type Props<T extends SelectableProject = SelectableProject> = {
|
|
9
|
+
projects: T[] | null;
|
|
10
|
+
selectedProject: T | null;
|
|
7
11
|
disabled?: boolean;
|
|
8
|
-
onChange: (selectedProject:
|
|
12
|
+
onChange: (selectedProject: T | null) => void;
|
|
9
13
|
label?: string;
|
|
10
14
|
placeholder?: string;
|
|
11
15
|
getProjectPictureUrl: (projectId: string) => string;
|
|
12
|
-
classes: Record<string, string>;
|
|
13
16
|
};
|
|
14
|
-
declare
|
|
15
|
-
export default
|
|
17
|
+
declare function AbyssSelectProject<T extends SelectableProject = SelectableProject>({ onChange, projects, selectedProject, disabled, label, placeholder, getProjectPictureUrl, }: Props<T>): React.ReactElement;
|
|
18
|
+
export default AbyssSelectProject;
|
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { ISpace, IFile, IGetRepositoryCloudData } from '@abyss-project/cloud';
|
|
3
|
+
export interface CloudImportSpaceDisplay {
|
|
4
|
+
label: string;
|
|
5
|
+
avatar?: React.ReactNode;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
organizationId?: string | null;
|
|
8
|
+
organizationName?: string | null;
|
|
9
|
+
scope?: 'personal' | 'perso-in-org' | 'org-common' | 'project';
|
|
10
|
+
}
|
|
5
11
|
type Props = {
|
|
6
|
-
|
|
7
|
-
submitFiles: (cloud: ICloud, files: IFile[]) => void;
|
|
12
|
+
submitFiles: (cloud: ISpace, files: IFile[]) => void;
|
|
8
13
|
maxSize?: number;
|
|
9
14
|
multiple?: boolean;
|
|
10
15
|
accept?: string[];
|
|
11
|
-
|
|
12
|
-
fetchUser: () => Promise<void>;
|
|
16
|
+
isCloudEnabled?: boolean;
|
|
13
17
|
abyssCloudUrl: string;
|
|
14
18
|
getFileThumbnailUrl: (id: string) => string;
|
|
19
|
+
clouds: ISpace[] | null;
|
|
20
|
+
cloudShares: ISpace[] | null;
|
|
21
|
+
isLoadingClouds?: boolean;
|
|
22
|
+
onRefreshClouds: () => Promise<void>;
|
|
23
|
+
fetchCloudRepository: (cloudId: string) => Promise<IGetRepositoryCloudData>;
|
|
24
|
+
onActivateService: () => Promise<void>;
|
|
25
|
+
onCreateCloud: (name: string) => Promise<void>;
|
|
26
|
+
getSpaceDisplay?: (space: ISpace) => CloudImportSpaceDisplay;
|
|
15
27
|
};
|
|
16
|
-
declare const
|
|
17
|
-
export default
|
|
28
|
+
declare const CloudImport: React.FC<Props>;
|
|
29
|
+
export default CloudImport;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IFile } from '@abyss-project/cloud';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
3
|
type Props = {
|
|
5
|
-
classes: Record<string, string>;
|
|
6
4
|
file: IFile;
|
|
7
5
|
maxSize?: number;
|
|
8
6
|
multiple?: boolean;
|
|
@@ -12,5 +10,5 @@ type Props = {
|
|
|
12
10
|
accept?: string[];
|
|
13
11
|
getFileThumbnailUrl: (id: string) => string;
|
|
14
12
|
};
|
|
15
|
-
declare const
|
|
16
|
-
export default
|
|
13
|
+
declare const CloudImportFile: React.FC<Props>;
|
|
14
|
+
export default CloudImportFile;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IFile, IFolder } from '@abyss-project/cloud';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
3
|
type Props = {
|
|
5
|
-
classes: Record<string, string>;
|
|
6
4
|
folder: IFolder;
|
|
7
5
|
maxSize?: number;
|
|
8
6
|
multiple?: boolean;
|
|
@@ -16,5 +14,5 @@ type Props = {
|
|
|
16
14
|
accept?: string[];
|
|
17
15
|
getFileThumbnailUrl: (id: string) => string;
|
|
18
16
|
};
|
|
19
|
-
declare const
|
|
20
|
-
export default
|
|
17
|
+
declare const CloudImportFolder: React.FC<Props>;
|
|
18
|
+
export default CloudImportFolder;
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { IUser } from '@abyss-project/main';
|
|
4
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
2
|
+
import { ISpace, IFolder, IGetRepositoryCloudData } from '@abyss-project/cloud';
|
|
5
3
|
type Props = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
user: IUser;
|
|
9
|
-
fetchUser: () => Promise<void>;
|
|
4
|
+
onConfirm: (cloud: ISpace, folder: IFolder | null) => Promise<void>;
|
|
5
|
+
isCloudEnabled?: boolean;
|
|
10
6
|
abyssCloudUrl: string;
|
|
11
7
|
getFileThumbnailUrl: (id: string) => string;
|
|
8
|
+
clouds: ISpace[] | null;
|
|
9
|
+
cloudShares: ISpace[] | null;
|
|
10
|
+
isLoadingClouds?: boolean;
|
|
11
|
+
onRefreshClouds: () => Promise<void>;
|
|
12
|
+
fetchCloudRepository: (cloudId: string) => Promise<IGetRepositoryCloudData>;
|
|
13
|
+
onActivateService: () => Promise<void>;
|
|
14
|
+
onCreateCloud: (name: string) => Promise<void>;
|
|
12
15
|
};
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
16
|
+
declare const CloudSave: React.FC<Props>;
|
|
17
|
+
export default CloudSave;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
declare const SIZE_MAP: {
|
|
4
|
+
readonly sm: 18;
|
|
5
|
+
readonly md: 22;
|
|
6
|
+
readonly lg: 28;
|
|
7
|
+
};
|
|
8
|
+
type ColorPaletteSize = keyof typeof SIZE_MAP;
|
|
9
|
+
type ColorPaletteShape = 'circle' | 'square';
|
|
10
|
+
type Props = {
|
|
11
|
+
colors: string[];
|
|
12
|
+
value: string;
|
|
13
|
+
onChange: (color: string) => void;
|
|
14
|
+
size?: ColorPaletteSize | number;
|
|
15
|
+
shape?: ColorPaletteShape;
|
|
16
|
+
showCustomPicker?: boolean;
|
|
17
|
+
sx?: SxProps;
|
|
18
|
+
};
|
|
19
|
+
declare const ColorPalette: React.FC<Props>;
|
|
20
|
+
export default ColorPalette;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ColorPalette } from './ColorPalette.component';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
declare const SIZE_MAP: {
|
|
4
|
+
readonly sm: 22;
|
|
5
|
+
readonly md: 28;
|
|
6
|
+
readonly lg: 36;
|
|
7
|
+
};
|
|
8
|
+
type ColorPickerSize = keyof typeof SIZE_MAP;
|
|
9
|
+
type ColorPickerShape = 'circle' | 'square';
|
|
10
|
+
type Props = {
|
|
11
|
+
value: string;
|
|
12
|
+
onChange: (color: string) => void;
|
|
13
|
+
size?: ColorPickerSize | number;
|
|
14
|
+
shape?: ColorPickerShape;
|
|
15
|
+
tooltip?: string;
|
|
16
|
+
sx?: SxProps;
|
|
17
|
+
};
|
|
18
|
+
declare const ColorPicker: React.FC<Props>;
|
|
19
|
+
export default ColorPicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ColorPicker } from './ColorPicker.component';
|
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
setStartDate: (date: Date) => void;
|
|
6
|
-
setEndDate: (date: Date) => void;
|
|
7
|
-
classes: Record<string, string>;
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type DatePeriodPreset = {
|
|
3
|
+
label: string;
|
|
4
|
+
getRange: () => [Date, Date];
|
|
8
5
|
};
|
|
9
|
-
|
|
10
|
-
export
|
|
6
|
+
export type DatePeriodVariant = 'default' | 'compact' | 'inline' | 'presets-only' | 'presets-bar';
|
|
7
|
+
export type DatePeriodPickerProps = {
|
|
8
|
+
startDate: Date | null;
|
|
9
|
+
endDate: Date | null;
|
|
10
|
+
onStartDateChange: (date: Date | null) => void;
|
|
11
|
+
onEndDateChange: (date: Date | null) => void;
|
|
12
|
+
onRangeChange?: (start: Date | null, end: Date | null) => void;
|
|
13
|
+
variant?: DatePeriodVariant;
|
|
14
|
+
presets?: DatePeriodPreset[];
|
|
15
|
+
hidePresets?: boolean;
|
|
16
|
+
minDate?: Date;
|
|
17
|
+
maxDate?: Date;
|
|
18
|
+
startLabel?: string;
|
|
19
|
+
endLabel?: string;
|
|
20
|
+
hideSummary?: boolean;
|
|
21
|
+
customLabel?: string;
|
|
22
|
+
};
|
|
23
|
+
declare const DatePeriodPicker: React.FC<DatePeriodPickerProps>;
|
|
24
|
+
export default DatePeriodPicker;
|
|
25
|
+
export type { DatePeriodPickerProps as DatePeriodPickerComponentProps };
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { SxProps } from '@mui/material';
|
|
3
|
-
import {
|
|
4
|
-
import { IFile } from '@abyss-project/cloud';
|
|
3
|
+
import { ISpace, IFile, IGetRepositoryCloudData } from '@abyss-project/cloud';
|
|
5
4
|
import { Accept } from 'react-dropzone';
|
|
6
|
-
import { CollectionElement } from '../../ImportButton';
|
|
7
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
8
5
|
type Props = {
|
|
9
6
|
circular?: boolean;
|
|
10
|
-
classes: Record<string, string>;
|
|
11
7
|
title?: React.ReactElement | string;
|
|
12
|
-
onDrop: (acceptedFiles: File[], cloudFiles: IFile[]
|
|
8
|
+
onDrop: (acceptedFiles: File[], cloudFiles: IFile[]) => void;
|
|
13
9
|
multiple?: boolean;
|
|
14
10
|
disableMinHeight?: boolean;
|
|
15
11
|
customContentDropZone?: React.ReactElement;
|
|
@@ -19,11 +15,16 @@ type Props = {
|
|
|
19
15
|
enableImportFromExternal?: boolean;
|
|
20
16
|
additionalContentDropZone?: React.ReactElement;
|
|
21
17
|
disableExternalImport?: boolean;
|
|
22
|
-
user: IUser | null;
|
|
23
|
-
fetchUser?: () => Promise<void>;
|
|
24
18
|
abyssCloudUrl: string;
|
|
25
19
|
getFileThumbnailUrl: (id: string) => string;
|
|
26
20
|
customHelperContent?: React.ReactElement;
|
|
21
|
+
clouds?: ISpace[] | null;
|
|
22
|
+
cloudShares?: ISpace[] | null;
|
|
23
|
+
isLoadingClouds?: boolean;
|
|
24
|
+
onRefreshClouds?: () => Promise<void>;
|
|
25
|
+
fetchCloudRepository?: (cloudId: string) => Promise<IGetRepositoryCloudData>;
|
|
26
|
+
onActivateService?: () => Promise<void>;
|
|
27
|
+
onCreateCloud?: (name: string) => Promise<void>;
|
|
27
28
|
};
|
|
28
|
-
declare const
|
|
29
|
-
export default
|
|
29
|
+
declare const DropZone: React.FC<Props>;
|
|
30
|
+
export default DropZone;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import { SxProps } from '@mui/material';
|
|
2
|
-
import { JSXElementConstructor } from 'react';
|
|
3
|
-
import { StyledComponentProps } from '@mui/styles/withStyles';
|
|
4
2
|
type Props = {
|
|
5
|
-
classes: Record<string, string>;
|
|
6
3
|
name: string;
|
|
7
4
|
label?: string;
|
|
8
5
|
placeholder?: string;
|
|
@@ -14,5 +11,5 @@ type Props = {
|
|
|
14
11
|
sx?: SxProps;
|
|
15
12
|
disabled?: boolean;
|
|
16
13
|
};
|
|
17
|
-
declare const
|
|
18
|
-
export default
|
|
14
|
+
declare const LoginForm: React.FC<Props>;
|
|
15
|
+
export default LoginForm;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ProjectCategoryBadgeProps {
|
|
3
|
+
category: string;
|
|
4
|
+
size?: 'small' | 'medium' | 'large';
|
|
5
|
+
formatCategory?: (category: string) => string;
|
|
6
|
+
}
|
|
7
|
+
declare const ProjectCategoryBadge: React.FC<ProjectCategoryBadgeProps>;
|
|
8
|
+
export default ProjectCategoryBadge;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ProjectCategoryBadge } from './ProjectCategoryBadge.component';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type OrganizationOption = {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
hasLogo?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type ProjectOption = {
|
|
9
|
+
id: string;
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
hasThumbnail?: boolean;
|
|
13
|
+
sharedWith?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type ApplicationOption = {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
description?: string;
|
|
19
|
+
};
|
|
20
|
+
export type LinkType = 'NONE' | 'PROJECT';
|
|
21
|
+
type Props = {
|
|
22
|
+
organizationId: string;
|
|
23
|
+
abyssProjectId: string;
|
|
24
|
+
abyssProjectApplicationId: string;
|
|
25
|
+
setOrganizationId: (id: string) => void;
|
|
26
|
+
setAbyssProjectId: (id: string) => void;
|
|
27
|
+
setAbyssProjectApplicationId: (id: string) => void;
|
|
28
|
+
getProjectPictureUrl: (id: string) => string;
|
|
29
|
+
getOrganizationLogoUrl: (id: string) => string;
|
|
30
|
+
fetchOrganizations: () => Promise<OrganizationOption[]>;
|
|
31
|
+
fetchProjects: (organizationId: string) => Promise<{
|
|
32
|
+
projects: ProjectOption[];
|
|
33
|
+
sharedProjects: ProjectOption[];
|
|
34
|
+
}>;
|
|
35
|
+
fetchApplications: (projectId: string) => Promise<ApplicationOption[]>;
|
|
36
|
+
hideApplication?: boolean;
|
|
37
|
+
};
|
|
38
|
+
declare const ProjectLinkSelector: React.FC<Props>;
|
|
39
|
+
export default ProjectLinkSelector;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ProjectTagChipProps {
|
|
3
|
+
tag: string;
|
|
4
|
+
size?: 'small' | 'medium' | 'large';
|
|
5
|
+
showIcon?: boolean;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
}
|
|
8
|
+
declare const ProjectTagChip: React.FC<ProjectTagChipProps>;
|
|
9
|
+
export default ProjectTagChip;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ProjectTagChip } from './ProjectTagChip.component';
|
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
1
|
+
export * from './ColorPicker';
|
|
2
|
+
export * from './ColorPalette';
|
|
3
3
|
export * from './DatePeriodPicker';
|
|
4
|
-
export * from './PasswordInput';
|
|
5
|
-
export * from './DropZone';
|
|
6
|
-
export * from './AbyssDateTimePicker';
|
|
7
4
|
export * from './AbyssDatePicker';
|
|
5
|
+
export * from './AbyssDateTimePicker';
|
|
6
|
+
export * from './PasswordInput';
|
|
8
7
|
export * from './AbyssMarkdownEditor';
|
|
9
|
-
export * from './
|
|
8
|
+
export * from './AbyssNumberField';
|
|
9
|
+
export * from './CloudImport';
|
|
10
|
+
export * from './CloudSave';
|
|
11
|
+
export * from './DropZone';
|
|
10
12
|
export * from './AbyssSelectProject';
|
|
13
|
+
export * from './AbyssSelectOrganization';
|
|
14
|
+
export * from './ProjectTagChip';
|
|
15
|
+
export * from './ProjectCategoryBadge';
|
|
16
|
+
export * from './ProjectLinkSelector';
|
|
17
|
+
export * from './AbyssScopeSwitcher';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type InvitationItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
inviterAlias: string;
|
|
5
|
+
inviterId: string;
|
|
6
|
+
contentName?: string | null;
|
|
7
|
+
serviceName: string;
|
|
8
|
+
serviceLogoUrl?: string;
|
|
9
|
+
createdAt: string;
|
|
10
|
+
};
|
|
11
|
+
type Props = {
|
|
12
|
+
invitations: InvitationItem[];
|
|
13
|
+
onAccept: (invitationId: string) => Promise<void>;
|
|
14
|
+
onDecline: (invitationId: string) => Promise<void>;
|
|
15
|
+
getProfilePictureUrl: (userId: string) => string;
|
|
16
|
+
};
|
|
17
|
+
declare const AbyssPendingInvitations: React.FC<Props>;
|
|
18
|
+
export { AbyssPendingInvitations };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IPlanTemplate } from '@abyss-project/main';
|
|
3
|
+
type Props = {
|
|
4
|
+
planTemplate: IPlanTemplate;
|
|
5
|
+
label?: string;
|
|
6
|
+
abyssUrl?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const AbyssBillingPlan: React.FC<Props>;
|
|
9
|
+
export default AbyssBillingPlan;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AbyssBillingPlan } from './AbyssBillingPlan.component';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
type Props = {
|
|
4
|
+
sidebar?: React.ReactNode;
|
|
5
|
+
header?: React.ReactNode;
|
|
6
|
+
footer?: React.ReactNode;
|
|
7
|
+
background?: React.ReactNode;
|
|
8
|
+
sxProps?: SxProps;
|
|
9
|
+
mainSxProps?: SxProps;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
};
|
|
12
|
+
declare const AbyssDashboardLayout: React.FC<Props>;
|
|
13
|
+
export default AbyssDashboardLayout;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AbyssDashboardLayout } from './AbyssDashboardLayout.component';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SxProps } from '@mui/material';
|
|
3
|
+
type Props = {
|
|
4
|
+
left?: React.ReactNode;
|
|
5
|
+
right?: React.ReactNode;
|
|
6
|
+
showSidebarToggle?: boolean;
|
|
7
|
+
showCollapseToggle?: boolean;
|
|
8
|
+
hasSidebar?: boolean;
|
|
9
|
+
sxProps?: SxProps;
|
|
10
|
+
sidebarWidth?: number;
|
|
11
|
+
sidebarCollapsedWidth?: number;
|
|
12
|
+
};
|
|
13
|
+
declare const AbyssHeader: React.FC<Props>;
|
|
14
|
+
export default AbyssHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AbyssHeader } from './AbyssHeader.component';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { AbyssLayoutStore, AbyssLayoutState } from './abyss-layout.store';
|
|
3
|
+
import { UseBoundStore } from 'zustand/react';
|
|
4
|
+
import { StoreApi } from 'zustand';
|
|
5
|
+
import { PersistOptions } from 'zustand/middleware';
|
|
6
|
+
type Props = {
|
|
7
|
+
store: AbyssLayoutStore;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
};
|
|
10
|
+
export declare const AbyssLayoutProvider: React.FC<Props>;
|
|
11
|
+
export declare const useAbyssLayoutStore: () => UseBoundStore<Omit< StoreApi<AbyssLayoutState>, "persist"> & {
|
|
12
|
+
persist: {
|
|
13
|
+
setOptions: (options: Partial< PersistOptions<AbyssLayoutState, {
|
|
14
|
+
sidebarCollapsed: boolean;
|
|
15
|
+
}>>) => void;
|
|
16
|
+
clearStorage: () => void;
|
|
17
|
+
rehydrate: () => void | Promise<void>;
|
|
18
|
+
hasHydrated: () => boolean;
|
|
19
|
+
onHydrate: (fn: (state: AbyssLayoutState) => void) => () => void;
|
|
20
|
+
onFinishHydration: (fn: (state: AbyssLayoutState) => void) => () => void;
|
|
21
|
+
getOptions: () => Partial< PersistOptions<AbyssLayoutState, {
|
|
22
|
+
sidebarCollapsed: boolean;
|
|
23
|
+
}>>;
|
|
24
|
+
};
|
|
25
|
+
}>;
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseBoundStore, StoreApi } from 'zustand';
|
|
2
|
+
import { PersistOptions } from 'zustand/middleware';
|
|
3
|
+
export interface AbyssLayoutState {
|
|
4
|
+
sidebarCollapsed: boolean;
|
|
5
|
+
mobileMenuOpen: boolean;
|
|
6
|
+
hiddenChrome: boolean;
|
|
7
|
+
toggleSidebar: () => void;
|
|
8
|
+
setSidebarCollapsed: (collapsed: boolean) => void;
|
|
9
|
+
setMobileMenu: (open: boolean) => void;
|
|
10
|
+
setHiddenChrome: (value: boolean) => void;
|
|
11
|
+
}
|
|
12
|
+
export type AbyssLayoutStore = ReturnType<typeof createAbyssLayoutStore>;
|
|
13
|
+
export declare const createAbyssLayoutStore: (persistKey: string) => UseBoundStore<Omit< StoreApi<AbyssLayoutState>, "persist"> & {
|
|
14
|
+
persist: {
|
|
15
|
+
setOptions: (options: Partial< PersistOptions<AbyssLayoutState, {
|
|
16
|
+
sidebarCollapsed: boolean;
|
|
17
|
+
}>>) => void;
|
|
18
|
+
clearStorage: () => void;
|
|
19
|
+
rehydrate: () => void | Promise<void>;
|
|
20
|
+
hasHydrated: () => boolean;
|
|
21
|
+
onHydrate: (fn: (state: AbyssLayoutState) => void) => () => void;
|
|
22
|
+
onFinishHydration: (fn: (state: AbyssLayoutState) => void) => () => void;
|
|
23
|
+
getOptions: () => Partial< PersistOptions<AbyssLayoutState, {
|
|
24
|
+
sidebarCollapsed: boolean;
|
|
25
|
+
}>>;
|
|
26
|
+
};
|
|
27
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AbyssLoadingScreen } from './AbyssLoadingScreen.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AbyssSearchBar } from './AbyssSearchBar.component';
|