@abyss-project/commons-front-core 1.0.136 → 1.0.141

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.
Files changed (268) hide show
  1. package/README.md +30 -2
  2. package/declaration.d.ts +13 -13
  3. package/dist/CookieConsentSettings.component-DIIK_rRd.js +2604 -0
  4. package/dist/assets/index.d.ts +0 -1
  5. package/dist/assets/logo/index.d.ts +1 -0
  6. package/dist/components/Avatars/OrganizationAvatar/OrganizationAvatar.component.d.ts +23 -0
  7. package/dist/components/Avatars/OrganizationAvatar/index.d.ts +2 -0
  8. package/dist/components/Avatars/ProjectAvatar/ProjectAvatar.component.d.ts +16 -5
  9. package/dist/components/Avatars/ProjectAvatar/index.d.ts +1 -0
  10. package/dist/components/Avatars/UserAvatar/UserAvatar.component.d.ts +10 -0
  11. package/dist/components/Avatars/UserAvatar/constant.d.ts +6 -2
  12. package/dist/components/Avatars/UserAvatar/index.d.ts +1 -0
  13. package/dist/components/Avatars/UserAvatarList/UserAvatarList.component.d.ts +18 -0
  14. package/dist/components/{UserAvatarList → Avatars/UserAvatarList}/index.d.ts +1 -0
  15. package/dist/components/Avatars/index.d.ts +2 -0
  16. package/dist/components/Banking/AccountTransactions/AccountTransactionsRow.component.d.ts +2 -4
  17. package/dist/components/Banking/Inputs/SelectAccountTransactionCategory/SelectAccountTransactionCategory.component.d.ts +2 -4
  18. package/dist/components/Cards/InternalProjectCard/InternalProjectCard.component.d.ts +36 -0
  19. package/dist/components/Cards/InternalProjectCard/index.d.ts +2 -0
  20. package/dist/components/Cards/ProjectCard/ProjectCard.component.d.ts +27 -0
  21. package/dist/components/Cards/ProjectCard/index.d.ts +2 -0
  22. package/dist/components/Cards/index.d.ts +2 -0
  23. package/dist/components/Charts/AbyssBarChart/AbyssBarChart.component.d.ts +21 -0
  24. package/dist/components/Charts/AbyssBarChart/index.d.ts +1 -0
  25. package/dist/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.d.ts +14 -0
  26. package/dist/components/Charts/AbyssCashFlowChart/index.d.ts +1 -0
  27. package/dist/components/Charts/AbyssLineChart/AbyssLineChart.component.d.ts +27 -0
  28. package/dist/components/Charts/AbyssLineChart/index.d.ts +1 -0
  29. package/dist/components/Charts/AbyssPieChart/AbyssPieChart.component.d.ts +18 -0
  30. package/dist/components/Charts/AbyssPieChart/index.d.ts +1 -0
  31. package/dist/components/Charts/index.d.ts +4 -0
  32. package/dist/components/Charts/useNivoTheme.d.ts +65 -0
  33. package/dist/components/CookieConsent/AbyssCookieConsentProvider.d.ts +12 -0
  34. package/dist/components/CookieConsent/CookieConsentBanner.component.d.ts +7 -0
  35. package/dist/components/CookieConsent/CookieConsentSettings.component.d.ts +2 -0
  36. package/dist/components/CookieConsent/cookie-storage.util.d.ts +15 -0
  37. package/dist/components/CookieConsent/cookie-storage.util.spec.d.ts +1 -0
  38. package/dist/components/CookieConsent/index.d.ts +8 -0
  39. package/dist/components/CookieConsent/reconcile.util.d.ts +12 -0
  40. package/dist/components/CookieConsent/reconcile.util.spec.d.ts +1 -0
  41. package/dist/components/CookieConsent/types.d.ts +11 -0
  42. package/dist/components/CookieConsent/use-cookie-consent.hook.d.ts +15 -0
  43. package/dist/components/Data/AbyssTable/AbyssTable.component.d.ts +35 -0
  44. package/dist/components/Data/AbyssTable/index.d.ts +2 -0
  45. package/dist/components/Data/index.d.ts +1 -0
  46. package/dist/components/InfoBox/InfoBox.component.d.ts +5 -3
  47. package/dist/components/Inputs/AbyssMarkdownEditor/AbyssMarkdownEditor.component.d.ts +12 -13
  48. package/dist/components/Inputs/AbyssNumberField/AbyssNumberField.component.d.ts +16 -0
  49. package/dist/components/Inputs/AbyssNumberField/index.d.ts +2 -0
  50. package/dist/components/Inputs/AbyssScopeSwitcher/AbyssScopeSwitcher.component.d.ts +20 -0
  51. package/dist/components/Inputs/AbyssScopeSwitcher/index.d.ts +2 -0
  52. package/dist/components/Inputs/AbyssSelectOrganization/AbyssSelectOrganization.component.d.ts +18 -0
  53. package/dist/components/Inputs/AbyssSelectOrganization/index.d.ts +2 -0
  54. package/dist/components/Inputs/AbyssSelectProject/AbyssSelectProject.component.d.ts +12 -9
  55. package/dist/components/Inputs/AbyssSelectProject/index.d.ts +1 -0
  56. package/dist/components/Inputs/CloudImport/CloudImport.component.d.ts +21 -9
  57. package/dist/components/Inputs/CloudImport/CloudImportFile.component.d.ts +2 -4
  58. package/dist/components/Inputs/CloudImport/CloudImportFolder.component.d.ts +2 -4
  59. package/dist/components/Inputs/CloudSave/CloudSave.component.d.ts +12 -9
  60. package/dist/components/Inputs/ColorPalette/ColorPalette.component.d.ts +20 -0
  61. package/dist/components/Inputs/ColorPalette/index.d.ts +1 -0
  62. package/dist/components/Inputs/ColorPicker/ColorPicker.component.d.ts +19 -0
  63. package/dist/components/Inputs/ColorPicker/index.d.ts +1 -0
  64. package/dist/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +24 -9
  65. package/dist/components/Inputs/DatePeriodPicker/index.d.ts +1 -0
  66. package/dist/components/Inputs/DropZone/DropZone.component.d.ts +11 -10
  67. package/dist/components/Inputs/PasswordInput/PasswordInput.component.d.ts +2 -5
  68. package/dist/components/Inputs/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +8 -0
  69. package/dist/components/Inputs/ProjectCategoryBadge/index.d.ts +1 -0
  70. package/dist/components/Inputs/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +39 -0
  71. package/dist/components/Inputs/ProjectLinkSelector/index.d.ts +2 -0
  72. package/dist/components/Inputs/ProjectTagChip/ProjectTagChip.component.d.ts +9 -0
  73. package/dist/components/Inputs/ProjectTagChip/index.d.ts +1 -0
  74. package/dist/components/Inputs/index.d.ts +13 -6
  75. package/dist/components/Invitations/AbyssPendingInvitations.component.d.ts +18 -0
  76. package/dist/components/Invitations/index.d.ts +2 -0
  77. package/dist/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.d.ts +9 -0
  78. package/dist/components/Layouts/AbyssBillingPlan/index.d.ts +1 -0
  79. package/dist/components/Layouts/AbyssDashboardLayout/AbyssDashboardLayout.component.d.ts +13 -0
  80. package/dist/components/Layouts/AbyssDashboardLayout/index.d.ts +1 -0
  81. package/dist/components/Layouts/AbyssHeader/AbyssHeader.component.d.ts +14 -0
  82. package/dist/components/Layouts/AbyssHeader/index.d.ts +1 -0
  83. package/dist/components/Layouts/AbyssLayoutProvider/AbyssLayoutProvider.component.d.ts +26 -0
  84. package/dist/components/Layouts/AbyssLayoutProvider/abyss-layout.store.d.ts +27 -0
  85. package/dist/components/Layouts/AbyssLayoutProvider/index.d.ts +3 -0
  86. package/dist/components/Layouts/AbyssLoadingScreen/AbyssLoadingScreen.component.d.ts +3 -0
  87. package/dist/components/Layouts/AbyssLoadingScreen/index.d.ts +1 -0
  88. package/dist/components/Layouts/AbyssSearchBar/AbyssSearchBar.component.d.ts +8 -0
  89. package/dist/components/Layouts/AbyssSearchBar/index.d.ts +1 -0
  90. package/dist/components/Layouts/AbyssSidebar/AbyssSidebar.component.d.ts +35 -0
  91. package/dist/components/Layouts/AbyssSidebar/AbyssSidebarItem.component.d.ts +9 -0
  92. package/dist/components/Layouts/AbyssSidebar/index.d.ts +3 -0
  93. package/dist/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.d.ts +7 -0
  94. package/dist/components/Layouts/AbyssThemeToggle/index.d.ts +1 -0
  95. package/dist/components/Layouts/DashboardLayout/DashboardLayout.layout.d.ts +3 -5
  96. package/dist/components/Layouts/DashboardLayout/DashboardLayoutHeader.layout.d.ts +3 -5
  97. package/dist/components/Layouts/LoadingLayout/LoadingLayout.layout.d.ts +2 -4
  98. package/dist/components/Layouts/MainLayout/MainLayout.layout.d.ts +2 -4
  99. package/dist/components/Layouts/index.d.ts +8 -0
  100. package/dist/components/Modals/AbyssModal/AbyssModal.component.d.ts +9 -9
  101. package/dist/components/Modals/ConfirmModal/ConfirmModal.d.ts +3 -4
  102. package/dist/components/Modals/ConfirmModal/index.d.ts +1 -1
  103. package/dist/components/Modals/ImportFromCloudModal/ImportFromCloudModal.component.d.ts +20 -10
  104. package/dist/components/Modals/QRCodeModal/QRCodeModal.component.d.ts +2 -4
  105. package/dist/components/Modals/SaveCloudModal/SaveCloudModal.component.d.ts +12 -10
  106. package/dist/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +13 -0
  107. package/dist/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +27 -0
  108. package/dist/components/Modals/UserSettingsModal/index.d.ts +2 -0
  109. package/dist/components/Modals/index.d.ts +2 -2
  110. package/dist/components/PdfEditor/PdfEditor.d.ts +3 -0
  111. package/dist/components/PdfEditor/hooks/use-acro-form-fields.d.ts +2 -0
  112. package/dist/components/PdfEditor/hooks/use-export.d.ts +7 -0
  113. package/dist/components/PdfEditor/hooks/use-page-order.d.ts +2 -0
  114. package/dist/components/PdfEditor/hooks/use-pdf-document.d.ts +11 -0
  115. package/dist/components/PdfEditor/hooks/use-undo-redo.d.ts +7 -0
  116. package/dist/components/PdfEditor/hooks/use-uploaded-docs.d.ts +3 -0
  117. package/dist/components/PdfEditor/index.d.ts +3 -0
  118. package/dist/components/PdfEditor/operations/apply.d.ts +2 -0
  119. package/dist/components/PdfEditor/operations/apply.spec.d.ts +1 -0
  120. package/dist/components/PdfEditor/operations/compute-page-order.d.ts +9 -0
  121. package/dist/components/PdfEditor/operations/compute-page-order.spec.d.ts +1 -0
  122. package/dist/components/PdfEditor/operations/pdf-data-url.d.ts +2 -0
  123. package/dist/components/PdfEditor/operations/reducer.d.ts +3 -0
  124. package/dist/components/PdfEditor/operations/reducer.spec.d.ts +1 -0
  125. package/dist/components/PdfEditor/signature/SignatureDrawCanvas.d.ts +10 -0
  126. package/dist/components/PdfEditor/signature/SignaturePicker.d.ts +13 -0
  127. package/dist/components/PdfEditor/signature/SignatureSaveButton.d.ts +9 -0
  128. package/dist/components/PdfEditor/signature/SignatureSavedList.d.ts +10 -0
  129. package/dist/components/PdfEditor/signature/SignatureUploadDropzone.d.ts +10 -0
  130. package/dist/components/PdfEditor/tools/DrawTool.d.ts +9 -0
  131. package/dist/components/PdfEditor/tools/FillFieldsTool.d.ts +8 -0
  132. package/dist/components/PdfEditor/tools/SignatureTool.d.ts +12 -0
  133. package/dist/components/PdfEditor/tools/TextTool.d.ts +2 -0
  134. package/dist/components/PdfEditor/tools/Toolbar.d.ts +18 -0
  135. package/dist/components/PdfEditor/types.d.ts +217 -0
  136. package/dist/components/PdfEditor/viewer/InsertPagesButton.d.ts +9 -0
  137. package/dist/components/PdfEditor/viewer/InsertPagesDialog.d.ts +10 -0
  138. package/dist/components/PdfEditor/viewer/PageOverlay.d.ts +21 -0
  139. package/dist/components/PdfEditor/viewer/PageSidebar.d.ts +15 -0
  140. package/dist/components/PdfEditor/viewer/PageThumbnail.d.ts +17 -0
  141. package/dist/components/PdfEditor/viewer/PdfCanvas.d.ts +17 -0
  142. package/dist/components/QuotaReached/QuotaReachedDialog.component.d.ts +5 -0
  143. package/dist/components/QuotaReached/billing-quota-error.d.ts +4 -0
  144. package/dist/components/QuotaReached/index.d.ts +6 -0
  145. package/dist/components/QuotaReached/quota-dialog.store.d.ts +15 -0
  146. package/dist/components/QuotaReached/quota-service-meta.d.ts +27 -0
  147. package/dist/components/Support/AbyssServiceSelect.component.d.ts +35 -0
  148. package/dist/components/Support/SupportActionButtons.component.d.ts +3 -0
  149. package/dist/components/Support/SupportActivityLog.component.d.ts +3 -0
  150. package/dist/components/Support/SupportAttachmentsPanel.component.d.ts +3 -0
  151. package/dist/components/Support/SupportCategoryChip.component.d.ts +9 -0
  152. package/dist/components/Support/SupportCategoryGroupCards.component.d.ts +3 -0
  153. package/dist/components/Support/SupportCategorySelect.component.d.ts +19 -0
  154. package/dist/components/Support/SupportMessageInput.component.d.ts +3 -0
  155. package/dist/components/Support/SupportMessageThread.component.d.ts +3 -0
  156. package/dist/components/Support/SupportPriorityChip.component.d.ts +3 -0
  157. package/dist/components/Support/SupportSidebar.component.d.ts +3 -0
  158. package/dist/components/Support/SupportStatusBadge.component.d.ts +3 -0
  159. package/dist/components/Support/SupportTicketCreateForm.component.d.ts +3 -0
  160. package/dist/components/Support/SupportTicketCreateStepper.component.d.ts +3 -0
  161. package/dist/components/Support/SupportTicketDetail.component.d.ts +3 -0
  162. package/dist/components/Support/SupportTicketList.component.d.ts +3 -0
  163. package/dist/components/Support/SupportTopBar.component.d.ts +3 -0
  164. package/dist/components/Support/index.d.ts +18 -0
  165. package/dist/components/Support/types.d.ts +252 -0
  166. package/dist/components/Utils/AbyssBackground/AbyssBackground.component.d.ts +9 -0
  167. package/dist/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +2 -5
  168. package/dist/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.d.ts +10 -0
  169. package/dist/components/Utils/AbyssErrorPage/AbyssErrorPage.component.d.ts +11 -0
  170. package/dist/components/Utils/AbyssErrorPage/index.d.ts +3 -0
  171. package/dist/components/Utils/AbyssHeaderTitle/AbyssHeaderTitle.component.d.ts +3 -5
  172. package/dist/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.d.ts +33 -24
  173. package/dist/components/Utils/AbyssLayoutMenu/AbyssMenuItem.component.d.ts +15 -0
  174. package/dist/components/Utils/AbyssLayoutMenu/index.d.ts +2 -0
  175. package/dist/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts +25 -12
  176. package/dist/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.d.ts +24 -9
  177. package/dist/components/Utils/AbyssLayoutNotifications/index.d.ts +2 -0
  178. package/dist/components/Utils/ImportButton/ImportButton.component.d.ts +36 -0
  179. package/dist/components/Utils/Toast/AbyssToast.component.d.ts +3 -0
  180. package/dist/components/Utils/Toast/index.d.ts +1 -0
  181. package/dist/components/Utils/WaterParticles/WaterParticles.component.d.ts +2 -6
  182. package/dist/components/Utils/index.d.ts +6 -3
  183. package/dist/components/index.d.ts +10 -8
  184. package/dist/cookie-consent.d.ts +2 -0
  185. package/dist/cookie-consent.js +16 -0
  186. package/dist/hooks/index.d.ts +4 -1
  187. package/dist/hooks/use-cloud.hook.d.ts +3 -3
  188. package/dist/hooks/use-public-users.hook.d.ts +13 -0
  189. package/dist/hooks/use-rich-intl.hook.d.ts +1370 -212
  190. package/dist/hooks/use-theme-transition.hook.d.ts +4 -0
  191. package/dist/{index-CjCtN6N9.js → index-0jt8DKLf.js} +11 -11
  192. package/dist/{index-DsEAU1Su.js → index-B3Y7Rb_Q.js} +1 -1
  193. package/dist/{index-DrwZbK23.js → index-BLr1fOuq.js} +4 -4
  194. package/dist/{index-BirsZhiu.js → index-BWj4TKOS.js} +2 -2
  195. package/dist/{index-Bk2NQz31.js → index-B_fAiFZq.js} +3 -3
  196. package/dist/{index-DE33bhgE.js → index-Blqg9cwf.js} +3 -3
  197. package/dist/{index--QxdNiuT.js → index-BrSAVa-Q.js} +2 -2
  198. package/dist/{index-CzRcWnfQ.js → index-C70H1Rqy.js} +4 -4
  199. package/dist/{index-Vsp-9vGI.js → index-C9HpxdlC.js} +2 -2
  200. package/dist/{index-C9V6yx6I.js → index-CDvwJmU3.js} +8 -8
  201. package/dist/index-CI_ndLtL.js +114828 -0
  202. package/dist/{index-DufXsxfg.js → index-CQv4ue2W.js} +2 -2
  203. package/dist/{index-DyrkSLE1.js → index-CRlvyprK.js} +3 -3
  204. package/dist/{index-BN2zc6Mp.js → index-Cb3RkMZy.js} +2 -2
  205. package/dist/{index-C7YWMnUi.js → index-CkpUdKTG.js} +3 -3
  206. package/dist/{index-yhL2fUpe.js → index-CnuCwLCI.js} +2 -2
  207. package/dist/{index-Cr-guXyg.js → index-CxyWN2Jp.js} +2 -2
  208. package/dist/{index-CLLYU3Ob.js → index-DQJBss56.js} +2 -2
  209. package/dist/{index-CyMfYJL8.js → index-jiAI8FrN.js} +4 -4
  210. package/dist/{index-DdIC_a4G.js → index-prtXdje2.js} +2 -2
  211. package/dist/{index-D39o_sai.js → index-rNuCv1FV.js} +5 -5
  212. package/dist/{index-D4xMvqEH.js → index-tz9rZQUM.js} +8 -8
  213. package/dist/index.d.ts +1 -1
  214. package/dist/index.js +237 -117
  215. package/dist/theme/augmentation.d.ts +78 -0
  216. package/dist/theme/components/buttons.d.ts +35 -0
  217. package/dist/theme/components/data-display.d.ts +4 -0
  218. package/dist/theme/components/index.d.ts +2 -0
  219. package/dist/theme/components/inputs.d.ts +4 -0
  220. package/dist/theme/components/navigation.d.ts +4 -0
  221. package/dist/theme/components/surfaces.d.ts +4 -0
  222. package/dist/theme/create-theme.d.ts +3 -0
  223. package/dist/theme/index.d.ts +15 -0
  224. package/dist/theme/palettes/common.d.ts +61 -0
  225. package/dist/theme/palettes/dark.d.ts +66 -0
  226. package/dist/theme/palettes/light.d.ts +66 -0
  227. package/dist/theme/tokens/animations.d.ts +30 -0
  228. package/dist/theme/tokens/borders.d.ts +11 -0
  229. package/dist/theme/tokens/colors.d.ts +102 -0
  230. package/dist/theme/tokens/shadows.d.ts +45 -0
  231. package/dist/theme/tokens/transitions.d.ts +21 -0
  232. package/dist/theme/tokens/typography.d.ts +93 -0
  233. package/dist/translations/en.d.ts +668 -9
  234. package/dist/translations/fr.d.ts +668 -9
  235. package/dist/utils/billing.utils.d.ts +7 -0
  236. package/dist/utils/index.d.ts +5 -0
  237. package/dist/utils/locale.utils.d.ts +2 -0
  238. package/dist/utils/share-notification.utils.d.ts +1 -0
  239. package/dist/utils/space-display-name.utils.d.ts +9 -0
  240. package/package.json +36 -7
  241. package/tsconfig.json +35 -37
  242. package/vite.config.ts +75 -77
  243. package/vitest.config.ts +14 -0
  244. package/.eslintrc.cjs +0 -30
  245. package/dist/components/AllCloudMetrics/AllCloudMetrics.component.d.ts +0 -13
  246. package/dist/components/AllCloudMetrics/index.d.ts +0 -1
  247. package/dist/components/FiltersBox/FiltersBox.component.d.ts +0 -8
  248. package/dist/components/FiltersBox/index.d.ts +0 -1
  249. package/dist/components/FreepikSearch/FreepikSearch.component.d.ts +0 -9
  250. package/dist/components/FreepikSearch/index.d.ts +0 -1
  251. package/dist/components/ImportButton/ImportButton.component.d.ts +0 -29
  252. package/dist/components/Inputs/Toggle/Toggle.component.d.ts +0 -15
  253. package/dist/components/Inputs/Toggle/index.d.ts +0 -1
  254. package/dist/components/Modals/ImportFromCollectionModal/ImportFromCollectionModal.component.d.ts +0 -11
  255. package/dist/components/Modals/ImportFromCollectionModal/index.d.ts +0 -1
  256. package/dist/components/Modals/UserSettings/UserSettingsModal.component.d.ts +0 -18
  257. package/dist/components/Modals/UserSettings/index.d.ts +0 -2
  258. package/dist/components/UserAvatarList/UserAvatarList.component.d.ts +0 -18
  259. package/dist/components/Utils/CustomDivider/CustomDivider.component.d.ts +0 -4
  260. package/dist/components/Utils/CustomDivider/index.d.ts +0 -1
  261. package/dist/components/Utils/FloatingNavigation/FloatingNavigation.component.d.ts +0 -16
  262. package/dist/components/Utils/FloatingNavigation/index.d.ts +0 -1
  263. package/dist/hooks/use-theme.hook.d.ts +0 -1
  264. package/dist/index-_UVTFDmE.js +0 -122724
  265. package/dist/stylesheet.d.ts +0 -128
  266. package/dist/web-Bt2mRnhv.js +0 -18
  267. /package/dist/{index.css → commons-front-core.css} +0 -0
  268. /package/dist/components/{ImportButton → Utils/ImportButton}/index.d.ts +0 -0
@@ -0,0 +1,7 @@
1
+ import { PlanTier, BillingAccountStatus, InvoiceStatus, InvoiceType, CreditTransactionType, EurTransactionType } from '@abyss-project/main';
2
+ export declare const PLAN_TIER_COLORS: Record<PlanTier, string>;
3
+ export declare const BILLING_ACCOUNT_STATUS_COLORS: Record<BillingAccountStatus, string>;
4
+ export declare const INVOICE_STATUS_COLORS: Record<InvoiceStatus, string>;
5
+ export declare const INVOICE_TYPE_COLORS: Record<InvoiceType, string>;
6
+ export declare const CREDIT_TRANSACTION_TYPE_COLORS: Record<CreditTransactionType, string>;
7
+ export declare const EUR_TRANSACTION_TYPE_COLORS: Record<EurTransactionType, string>;
@@ -1,4 +1,9 @@
1
+ export * from './billing.utils';
1
2
  export * from './color.utils';
2
3
  export * from './clipboard.utils';
3
4
  export * from './cookie.utils';
4
5
  export * from './file.utils';
6
+ export * from './project-link-wording.utils';
7
+ export * from './locale.utils';
8
+ export * from './share-notification.utils';
9
+ export * from './space-display-name.utils';
@@ -0,0 +1,2 @@
1
+ export declare const setLocale: (locale: string) => void;
2
+ export declare const getLocale: () => string;
@@ -0,0 +1 @@
1
+ export declare const handleShareNotificationNavigation: (contentType: string | undefined, data: Record<string, unknown> | undefined, navigate: (path: string) => void, invitationsPath: string) => boolean;
@@ -0,0 +1,9 @@
1
+ import { IntlShape } from 'react-intl';
2
+ import { ISpace } from '@abyss-project/cloud';
3
+ export type SpaceScope = 'personal' | 'perso-in-org' | 'org-common' | 'project';
4
+ export declare const resolveSpaceScope: (space: Pick<ISpace, 'organizationId' | 'userId' | 'projectId'>) => SpaceScope;
5
+ export declare const resolveSpaceDisplayName: (space: Pick<ISpace, 'organizationId' | 'userId' | 'projectId'>, intl: IntlShape, context?: {
6
+ organizationName?: string;
7
+ projectName?: string;
8
+ userAlias?: string;
9
+ }) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "1.0.136",
3
+ "version": "1.0.141",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -9,6 +9,17 @@
9
9
  ".": {
10
10
  "import": "./dist/index.js",
11
11
  "types": "./dist/index.d.ts"
12
+ },
13
+ "./cookie-consent": {
14
+ "import": "./dist/cookie-consent.js",
15
+ "types": "./dist/cookie-consent.d.ts"
16
+ }
17
+ },
18
+ "typesVersions": {
19
+ "*": {
20
+ "cookie-consent": [
21
+ "./dist/cookie-consent.d.ts"
22
+ ]
12
23
  }
13
24
  },
14
25
  "type": "module",
@@ -33,11 +44,17 @@
33
44
  "@mui/utils": "^7.1.1",
34
45
  "@mui/x-data-grid": "^8.5.3",
35
46
  "@mui/x-date-pickers": "^6.20.2",
47
+ "@tanstack/react-query": "^5.0.0",
48
+ "@dnd-kit/core": "^6.0.0",
49
+ "@dnd-kit/sortable": "^9.0.0",
50
+ "@dnd-kit/utilities": "^3.0.0",
36
51
  "react": "^17.0.0 || ^18.0.0",
37
52
  "react-dom": "^17.0.0 || ^18.0.0",
53
+ "react-is": "^18.0.0 || ^19.0.0",
38
54
  "react-intl": "^6.2.5",
39
55
  "react-router-dom": "^6.15.0",
40
- "@abyss-project/main": "1.0.108"
56
+ "zustand": "^5.0.0",
57
+ "@abyss-project/main": "1.0.117"
41
58
  },
42
59
  "dependencies": {
43
60
  "@abyss-project/banking": "^1.0.6",
@@ -56,8 +73,13 @@
56
73
  "@milkdown/plugin-listener": "^7.15.3",
57
74
  "@milkdown/react": "^7.15.3",
58
75
  "@milkdown/utils": "^7.15.3",
59
- "axios": "^1.2.2",
60
- "axios-retry": "^3.5.0",
76
+ "@nivo/bar": "^0.88.0",
77
+ "@nivo/core": "^0.88.0",
78
+ "@nivo/line": "^0.88.0",
79
+ "@nivo/pie": "^0.88.0",
80
+ "@tanstack/react-table": "^8.21.3",
81
+ "axios": "^1.6.0",
82
+ "axios-retry": "^4.5.0",
61
83
  "byte-size": "^8.1.0",
62
84
  "date-fns": "^2.29.3",
63
85
  "eventsource": "^4.0.0",
@@ -66,12 +88,15 @@
66
88
  "lodash": "^4.17.21",
67
89
  "qrcode": "^1.5.3",
68
90
  "react-dropzone": "^14.3.8",
91
+ "react-error-boundary": "^6.1.1",
69
92
  "react-router-dom": "^6.15.0",
70
93
  "react-toastify": "^8.0.2",
71
94
  "use-debounce": "^10.0.5",
72
95
  "uuid": "^9.0.0",
96
+ "pdf-lib": "^1.17.1",
97
+ "pdfjs-dist": "^4.10.38",
73
98
  "yup": "^0.32.11",
74
- "@abyss-project/main": "1.0.108"
99
+ "@abyss-project/main": "1.0.117"
75
100
  },
76
101
  "devDependencies": {
77
102
  "@types/byte-size": "^8.1.0",
@@ -94,16 +119,20 @@
94
119
  "eslint-plugin-node": "^11.1.0",
95
120
  "eslint-plugin-prettier": "^3.4.0",
96
121
  "prettier": "^2.5.1",
122
+ "tsc-watch": "^4.6.2",
97
123
  "typescript": "5.4.2",
98
124
  "vite": "^6.3.5",
125
+ "@vitest/coverage-v8": "^2.0.0",
99
126
  "vite-plugin-dts": "^4.5.4",
100
- "tsc-watch": "^4.6.2"
127
+ "vitest": "^2.0.0"
101
128
  },
102
129
  "scripts": {
103
130
  "lint": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --fix",
104
131
  "lint:check": "eslint \"{src,apps,libs,test,core}/**/*.{ts,tsx}\" --max-warnings 0",
105
132
  "tsc": "tsc",
106
133
  "build": "vite build",
107
- "dev": "tsc-watch --onSuccess 'yalc push'"
134
+ "dev": "vite build --watch",
135
+ "test": "vitest run --config vitest.config.ts",
136
+ "test:watch": "vitest --config vitest.config.ts"
108
137
  }
109
138
  }
package/tsconfig.json CHANGED
@@ -1,37 +1,35 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2015",
4
- "lib": ["dom", "dom.iterable", "esnext"],
5
- "allowJs": true,
6
- "skipLibCheck": true,
7
- "skipDefaultLibCheck": true,
8
- "esModuleInterop": true,
9
- "allowSyntheticDefaultImports": true,
10
- "forceConsistentCasingInFileNames": true,
11
- "noFallthroughCasesInSwitch": true,
12
- "module": "esnext",
13
- "moduleResolution": "node",
14
- "resolveJsonModule": true,
15
- "isolatedModules": true,
16
- "noEmit": true,
17
- "jsx": "react-jsx",
18
- "strict": true,
19
- "baseUrl": ".",
20
- "outDir": "dist",
21
- "paths": {
22
- "@components-spotlight/*": ["src/components/Spotlight"],
23
- "@components-avatars/*": ["src/components/Avatars"],
24
- "@components-chips/*": ["src/components/Chips"],
25
- "@components-utils/*": ["src/components/Utils"],
26
- "@components-inputs/*": ["src/components/Inputs"],
27
- "@components-modals/*": ["src/components/Modals"],
28
- "@components/*": ["src/components/*"],
29
- "@assets/*": ["src/assets/*"],
30
- "@utils/*": ["src/utils/*"],
31
- "@types/*": ["src/types/*"],
32
- "@hooks/*": ["src/hooks/*"],
33
- "@/*": ["src/*"]
34
- },
35
- },
36
- "include": ["src", "declaration.d.ts"]
37
- }
1
+ {
2
+ "compilerOptions": {
3
+ "incremental": false,
4
+ "target": "es2021",
5
+ "lib": [
6
+ "dom",
7
+ "es2021"
8
+ ],
9
+ "experimentalDecorators": true,
10
+ "emitDecoratorMetadata": true,
11
+ "module": "commonjs",
12
+ "rootDir": "src",
13
+ "moduleResolution": "node",
14
+ "resolveJsonModule": true,
15
+ "allowJs": true,
16
+ "declaration": true,
17
+ "sourceMap": true,
18
+ "outDir": "./dist",
19
+ "removeComments": true,
20
+ "allowSyntheticDefaultImports": true,
21
+ "esModuleInterop": true,
22
+ "forceConsistentCasingInFileNames": true,
23
+ "strict": true,
24
+ "strictNullChecks": true,
25
+ "strictFunctionTypes": true,
26
+ "strictPropertyInitialization": false,
27
+ "skipLibCheck": true
28
+ },
29
+ "include": [
30
+ "./src"
31
+ ],
32
+ "exclude": [
33
+ "./dist/**/*"
34
+ ]
35
+ }
package/vite.config.ts CHANGED
@@ -1,77 +1,75 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
- import path, { resolve } from 'path'
4
- import dts from 'vite-plugin-dts';
5
-
6
- export default defineConfig({
7
- plugins: [
8
- react(),
9
- dts({
10
- skipDiagnostics: true, // Skip TypeScript diagnostics to avoid type conflicts
11
- staticImport: true,
12
- insertTypesEntry: true,
13
- }), // Generates TypeScript declaration files
14
- ],
15
- resolve: {
16
- alias: {
17
- "@components-spotlight/*": path.resolve(__dirname, './src/components/Spotlight'),
18
- "@components-avatars/*": path.resolve(__dirname, './src/components/Avatars'),
19
- "@components-chips/*": path.resolve(__dirname, './src/components/Chips'),
20
- "@components-utils/*": path.resolve(__dirname, './src/components/Utils'),
21
- "@components-inputs/*": path.resolve(__dirname, './src/components/Inputs'),
22
- "@components-modals/*": path.resolve(__dirname, './src/components/Modals'),
23
- '@components': path.resolve(__dirname, './src/components'),
24
- '@assets': path.resolve(__dirname, './src/assets'),
25
- '@utils': path.resolve(__dirname, './src/utils'),
26
- '@types': path.resolve(__dirname, './src/types'),
27
- '@hooks': path.resolve(__dirname, './src/hooks'),
28
- '@': path.resolve(__dirname, './src'),
29
- },
30
- },
31
- build: {
32
- lib: {
33
- entry: resolve(__dirname, 'src/index.ts'),
34
- name: 'UIComponents',
35
- formats: ['es'],
36
- fileName: 'index',
37
- },
38
- rollupOptions: {
39
- // Externalize peer dependencies
40
- external: [
41
- 'react',
42
- 'react-dom',
43
- 'react-intl',
44
- 'react-router-dom',
45
- 'react/jsx-runtime',
46
- '@mui/material',
47
- '@mui/material/styles',
48
- '@mui/icons-material',
49
- '@emotion/react',
50
- '@emotion/styled',
51
- 'osx-temperature-sensor',
52
- 'fs',
53
- 'path',
54
- 'os',
55
- "@abyss-project/banking",
56
- "@abyss-project/cloud",
57
- "@abyss-project/crypt",
58
- "@abyss-project/form",
59
- "@abyss-project/main",
60
- "@abyss-project/memories",
61
- "@abyss-project/monitor",
62
- "@abyss-project/spotlight",
63
- "@abyss-project/storage",
64
- ],
65
- output: {
66
- globals: {
67
- 'react': 'React',
68
- 'react-dom': 'ReactDOM',
69
- 'react-router-dom': 'ReactRouterDOM',
70
- '@mui/material': 'MaterialUI',
71
- '@abyss-project/main': 'AbyssMain',
72
- 'react-intl': 'ReactIntl'
73
- }
74
- }
75
- }
76
- },
77
- })
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react'
3
+ import path, { resolve } from 'path'
4
+ import dts from 'vite-plugin-dts';
5
+
6
+ const isWatch = process.argv.includes('--watch');
7
+
8
+ export default defineConfig({
9
+ plugins: [
10
+ react(),
11
+ !isWatch && dts({
12
+ skipDiagnostics: true, // Skip TypeScript diagnostics to avoid type conflicts
13
+ staticImport: true,
14
+ insertTypesEntry: true,
15
+ }),
16
+ ].filter(Boolean),
17
+ resolve: {
18
+ alias: {
19
+ "@components-spotlight/*": path.resolve(__dirname, './src/components/Spotlight'),
20
+ "@components-avatars/*": path.resolve(__dirname, './src/components/Avatars'),
21
+ "@components-chips/*": path.resolve(__dirname, './src/components/Chips'),
22
+ "@components-utils/*": path.resolve(__dirname, './src/components/Utils'),
23
+ "@components-inputs/*": path.resolve(__dirname, './src/components/Inputs'),
24
+ "@components-modals/*": path.resolve(__dirname, './src/components/Modals'),
25
+ '@components': path.resolve(__dirname, './src/components'),
26
+ '@assets': path.resolve(__dirname, './src/assets'),
27
+ '@utils': path.resolve(__dirname, './src/utils'),
28
+ '@types': path.resolve(__dirname, './src/types'),
29
+ '@hooks': path.resolve(__dirname, './src/hooks'),
30
+ '@': path.resolve(__dirname, './src'),
31
+ },
32
+ },
33
+ build: {
34
+ lib: {
35
+ // Multiple entries: the full barrel (`index`) plus a browser-safe,
36
+ // tree-shaken `cookie-consent` entry. The latter lets webpack consumers
37
+ // (e.g. the Next.js landing) pull ONLY the cookie-consent UI without
38
+ // dragging in react-toastify (React-17 `render`), pdf.js, or the server
39
+ // monitor SDK that the full barrel transitively includes.
40
+ entry: {
41
+ index: resolve(__dirname, 'src/index.ts'),
42
+ 'cookie-consent': resolve(__dirname, 'src/components/CookieConsent/index.ts'),
43
+ },
44
+ formats: ['es'],
45
+ fileName: (_format, entryName) => `${entryName}.js`,
46
+ },
47
+ rollupOptions: {
48
+ // Externalize peer dependencies. Match exact name OR sub-path imports
49
+ // (e.g. 'react/jsx-runtime') — never match by raw prefix, otherwise
50
+ // 'react' silently externalizes 'react-is', 'react-fast-compare', etc.
51
+ external: (id) => {
52
+ const exactNames = [
53
+ 'react', 'react-dom', 'react-intl', 'react-router-dom',
54
+ 'pdfjs-dist', 'pdf-lib',
55
+ 'osx-temperature-sensor', 'fs', 'path', 'os',
56
+ ];
57
+ if (exactNames.includes(id)) return true;
58
+ if (exactNames.some((name) => id.startsWith(name + '/'))) return true;
59
+ // Scoped-package prefixes (these always end with '/')
60
+ const scopedPrefixes = ['@mui/', '@emotion/', '@abyss-project/', '@tanstack/'];
61
+ return scopedPrefixes.some((prefix) => id.startsWith(prefix));
62
+ },
63
+ output: {
64
+ globals: {
65
+ 'react': 'React',
66
+ 'react-dom': 'ReactDOM',
67
+ 'react-router-dom': 'ReactRouterDOM',
68
+ '@mui/material': 'MaterialUI',
69
+ '@abyss-project/main': 'AbyssMain',
70
+ 'react-intl': 'ReactIntl'
71
+ }
72
+ }
73
+ }
74
+ },
75
+ })
@@ -0,0 +1,14 @@
1
+ import { defineConfig, mergeConfig } from 'vitest/config';
2
+ import viteConfig from './vite.config';
3
+
4
+ export default mergeConfig(
5
+ viteConfig,
6
+ defineConfig({
7
+ test: {
8
+ environment: 'node',
9
+ include: ['src/**/*.spec.ts'],
10
+ globals: false,
11
+ passWithNoTests: true,
12
+ },
13
+ }),
14
+ );
package/.eslintrc.cjs DELETED
@@ -1,30 +0,0 @@
1
- module.exports = {
2
- parser: '@typescript-eslint/parser',
3
- parserOptions: {
4
- project: './tsconfig.json',
5
- tsconfigRootDir: __dirname,
6
- sourceType: 'module',
7
- },
8
- plugins: ['@typescript-eslint/eslint-plugin', 'prettier'],
9
- extends: [
10
- 'plugin:@typescript-eslint/recommended',
11
- 'plugin:prettier/recommended',
12
- ],
13
- root: true,
14
- env: {
15
- browser: true,
16
- es2021: true,
17
- node: true,
18
- jest: true,
19
- },
20
- ignorePatterns: ['.eslintrc.cjs'],
21
- rules: {
22
- 'no-console': 'warn',
23
- curly: ['error'],
24
- '@typescript-eslint/interface-name-prefix': 'off',
25
- '@typescript-eslint/explicit-function-return-type': 'off',
26
- '@typescript-eslint/explicit-module-boundary-types': 'off',
27
- '@typescript-eslint/no-explicit-any': 'off',
28
- '@typescript-eslint/prefer-as-const': 'error',
29
- },
30
- };
@@ -1,13 +0,0 @@
1
- import { default as React } from 'react';
2
- import { IGetAllMetricsCloudData } from '@abyss-project/cloud';
3
- import { AbyssService } from '@abyss-project/main';
4
- import { StyledComponentProps } from '@mui/styles/withStyles';
5
- type Props = {
6
- enabledService: AbyssService[];
7
- abyssCloudUrl: string;
8
- classes: Record<string, string>;
9
- cloudMetrics: IGetAllMetricsCloudData['clouds'] | null;
10
- setCloudMetrics: (metrics: IGetAllMetricsCloudData['clouds'] | null) => void;
11
- };
12
- declare const _default: React.JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
13
- export default _default;
@@ -1 +0,0 @@
1
- export { default as AllCloudMetrics } from './AllCloudMetrics.component';
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { StyledComponentProps } from '@mui/styles/withStyles';
3
- type Props = {
4
- classes: Record<string, string>;
5
- children: React.ReactNode;
6
- };
7
- declare const _default: React.JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
8
- export default _default;
@@ -1 +0,0 @@
1
- export { default as FiltersBox } from './FiltersBox.component';
@@ -1,9 +0,0 @@
1
- import { ISearchFreepikCollectionData } from '@abyss-project/storage';
2
- import { JSXElementConstructor } from 'react';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
- type Props = {
5
- classes: Record<string, string>;
6
- onSelect: (item: ISearchFreepikCollectionData['items'][number]) => Promise<void>;
7
- };
8
- declare const _default: JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
9
- export default _default;
@@ -1 +0,0 @@
1
- export { default as FreepikSearch } from './FreepikSearch.component';
@@ -1,29 +0,0 @@
1
- import { ICloud, IFile } from '@abyss-project/cloud';
2
- import { PictureCollectionSource } from '@abyss-project/storage';
3
- import { ChangeEvent, JSXElementConstructor } from 'react';
4
- import { IUser } from '@abyss-project/main';
5
- import { StyledComponentProps } from '@mui/styles/withStyles';
6
- export declare const MAX_PICTURE_SIZE: number;
7
- export type CollectionElement = {
8
- source: PictureCollectionSource;
9
- elementId: string;
10
- url: string;
11
- };
12
- type Props = {
13
- children: React.ReactElement;
14
- isLoading: boolean;
15
- handleUploadFromUrl?: (url: string) => Promise<void>;
16
- handleFileUpload: (event: ChangeEvent<HTMLInputElement>) => Promise<void>;
17
- handleImportFromCloud: (cloud: ICloud, files: IFile[]) => Promise<void>;
18
- handleImportFromCollection?: (collectionElements: CollectionElement[]) => Promise<void>;
19
- multiple?: boolean;
20
- maxSize?: number;
21
- accept?: string[];
22
- user: IUser;
23
- fetchUser: () => Promise<void>;
24
- abyssCloudUrl: string;
25
- getFileThumbnailUrl: (id: string) => string;
26
- classes: Record<string, string>;
27
- };
28
- declare const _default: JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
29
- export default _default;
@@ -1,15 +0,0 @@
1
- import { default as React } from 'react';
2
- import { SxProps } from '@mui/material';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
- type Props = {
5
- value: any;
6
- toggles: {
7
- label: React.ReactElement | string;
8
- value: string;
9
- }[];
10
- onChange: (value: any) => void;
11
- classes: Record<string, string>;
12
- sx?: SxProps;
13
- };
14
- declare const _default: React.JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
15
- export default _default;
@@ -1 +0,0 @@
1
- export { default as Toggle } from './Toggle.component';
@@ -1,11 +0,0 @@
1
- import { CollectionElement } from '../../ImportButton/ImportButton.component';
2
- import { JSXElementConstructor } from 'react';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
- type Props = {
5
- isOpen: boolean;
6
- onCancel: () => Promise<void>;
7
- onConfirm: (files: CollectionElement[]) => Promise<void>;
8
- classes: Record<string, string>;
9
- };
10
- declare const _default: JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
11
- export default _default;
@@ -1 +0,0 @@
1
- export { default as ImportFromCollectionModal } from './ImportFromCollectionModal.component';
@@ -1,18 +0,0 @@
1
- import { default as React } from 'react';
2
- import { IUser } from '@abyss-project/main';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
- export declare const DELETE_ACCOUNT_SUFFIX = "dashboard/my-account/ticket/create?service=ABYSS&category=ACCOUNT_MANAGEMENT";
5
- export declare const PROFILE_SUFFIX = "dashboard/my-account/parameter";
6
- type Props = {
7
- isOpen: boolean;
8
- onCancel: () => Promise<void>;
9
- resetApiKey: () => Promise<void>;
10
- fetchMe: () => Promise<void>;
11
- user: IUser;
12
- isLoading: boolean;
13
- apiKey: string;
14
- abyssUrl: string;
15
- classes: Record<string, string>;
16
- };
17
- declare const _default: React.JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
18
- export default _default;
@@ -1,2 +0,0 @@
1
- export { default as UserSettings } from './UserSettingsModal.component';
2
- export * from './UserSettingsModal.component';
@@ -1,18 +0,0 @@
1
- import { SxProps } from '@mui/material';
2
- import { default as React } from 'react';
3
- import { StyledComponentProps } from '@mui/styles/withStyles';
4
- type Props = {
5
- users: {
6
- alias: string;
7
- hasThumbnail: boolean;
8
- id: string;
9
- }[] | 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 _default: React.JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
18
- export default _default;
@@ -1,4 +0,0 @@
1
- import { BoxProps } from '@mui/material';
2
- export declare const CustomDivider: React.FC<BoxProps>;
3
- export declare const CustomDividerGradientPurple: React.FC<BoxProps>;
4
- export declare const CustomDividerGradientFocusPrimary: React.FC<BoxProps>;
@@ -1 +0,0 @@
1
- export * from './CustomDivider.component';
@@ -1,16 +0,0 @@
1
- import { default as React } from 'react';
2
- import { StyledComponentProps } from '@mui/styles/withStyles';
3
- type Props = {
4
- fields: {
5
- label: string;
6
- icon: React.ReactNode;
7
- value: string;
8
- link?: string;
9
- disabled?: boolean;
10
- }[];
11
- currentTab: string;
12
- onClick?: (value: string) => void;
13
- classes: Record<string, string>;
14
- };
15
- declare const _default: React.JSXElementConstructor<Omit<Props, "classes"> & StyledComponentProps<string> & object>;
16
- export default _default;
@@ -1 +0,0 @@
1
- export { default as FloatingNavigation } from './FloatingNavigation.component';
@@ -1 +0,0 @@
1
- export declare const withTheme: (Component: React.ComponentType<any>) => (props: any) => import("react/jsx-runtime").JSX.Element;