@abyss-project/commons-front-core 20.5.1 → 21.0.0

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 (337) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +18 -0
  3. package/catalog/pages/CookieConsent.tsx +1 -1
  4. package/catalog/pages/MobileShell.tsx +75 -39
  5. package/catalog/pages/Tabs.tsx +24 -0
  6. package/catalog/specs/cookie-consent-modal.spec.ts +1 -1
  7. package/catalog/specs/mobile-shell.spec.ts +28 -0
  8. package/dist/{CookieConsentSettings-BGIHx7eH.js → CookieConsentSettings-BzeQZ5tD.js} +223 -224
  9. package/dist/{Surface-B74cXq1M.js → Surface-t4XKtudZ.js} +319 -714
  10. package/dist/Tabs-DXgqVX6V.js +5276 -0
  11. package/dist/components/ScanStatus/InfectedDownloadWarningModal.d.ts +14 -45
  12. package/dist/components/business/AbyssProjectLinkField/AbyssProjectLinkField.d.ts +48 -0
  13. package/dist/components/business/CookieConsent/containing-block.d.ts +1 -1
  14. package/dist/components/business/Deliveries/ScheduledTaskPanel.d.ts +7 -2
  15. package/dist/components/business/Deliveries/deliveries.logic.d.ts +31 -0
  16. package/dist/components/business/Deliveries/deliveries.types.d.ts +24 -0
  17. package/dist/components/business/Deliveries/use-missed-run-count.hook.d.ts +8 -0
  18. package/dist/components/business/Deliveries/use-missed-runs.hook.d.ts +13 -0
  19. package/dist/components/business/Deliveries/use-previous-page-edge.hook.d.ts +22 -0
  20. package/dist/components/business/PendingInvitations/PendingInvitations.d.ts +28 -0
  21. package/dist/components/business/index.d.ts +2 -0
  22. package/dist/components/editors/PdfEditor/PdfEditor.d.ts +2 -2
  23. package/dist/components/editors/PdfEditor/pdf-colors.d.ts +2 -2
  24. package/dist/components/editors/PdfEditor/toolbar/PdfToolbar.d.ts +3 -3
  25. package/dist/components/inputs/date-localization.d.ts +3 -3
  26. package/dist/components/layers/Modal/Modal.d.ts +1 -1
  27. package/dist/components/meaning/Avatar/Avatar.d.ts +2 -0
  28. package/dist/components/mobile/ActionBar/ActionBar.d.ts +2 -1
  29. package/dist/components/mobile/BottomSheet/BottomSheet.d.ts +8 -2
  30. package/dist/components/mobile/MobileShell/MobileShell.d.ts +2 -1
  31. package/dist/components/mobile/MobileShell/MobileShellActionBar.d.ts +7 -0
  32. package/dist/components/mobile/MobileShell/MobileShellPageFrame.d.ts +13 -0
  33. package/dist/components/mobile/index.d.ts +1 -0
  34. package/dist/components/mobile/mobile-layout.d.ts +8 -0
  35. package/dist/components/mobile/test-support/mobile-test-harness.d.ts +5 -0
  36. package/dist/components/structure/AppShell/AppShell.d.ts +2 -2
  37. package/dist/components/structure/test-support/structure-test-harness.d.ts +1 -3
  38. package/dist/cookie-consent.js +2 -2
  39. package/dist/demo/DemoBanner/DemoBanner.d.ts +1 -1
  40. package/dist/{editors-s-GER37R.js → editors-Dt29L0Ux.js} +4074 -4063
  41. package/dist/editors.js +1 -1
  42. package/dist/hooks/use-rich-intl.hook.d.ts +52 -454
  43. package/dist/hooks/use-scroll-overflow-cue.hook.d.ts +8 -2
  44. package/dist/{index-DoWxAfPn.js → index-3hRPEDk5.js} +4 -4
  45. package/dist/{index-DctO0l5q.js → index-BHKOZzg1.js} +1 -1
  46. package/dist/{index-NX_Kd4oz.js → index-BYWSBoej.js} +3 -3
  47. package/dist/{index-genxamHw.js → index-BYWcX6y7.js} +2 -2
  48. package/dist/{index-Dka20zad.js → index-BaS25rA-.js} +2 -2
  49. package/dist/{index-BZgkwoZ5.js → index-BczDLUpv.js} +2 -2
  50. package/dist/{index-BxlF9T05.js → index-Bh0e5MGQ.js} +2 -2
  51. package/dist/{index-CO6rjqWZ.js → index-C3iToWR_.js} +4 -4
  52. package/dist/{index-B635dFQ2.js → index-CNem7pV2.js} +2 -2
  53. package/dist/{index-B_fqzhtm.js → index-Cs5brR68.js} +3 -3
  54. package/dist/{index-D9IW7UEw.js → index-D0E9e2bc.js} +2 -2
  55. package/dist/{index-CXEf_Hel.js → index-D2yo-g20.js} +4 -4
  56. package/dist/{index-1n03jgsr.js → index-DGizXlGr.js} +3 -3
  57. package/dist/{index-CE-4v9ue.js → index-DLZ2_Fhk.js} +3 -3
  58. package/dist/{index-CVN6HOlq.js → index-DbBqHu3d.js} +2 -2
  59. package/dist/{index-B-oGxRVH.js → index-Deq0UIQ5.js} +2 -2
  60. package/dist/{index-8L4OftHM.js → index-Dg0a5ekJ.js} +2 -2
  61. package/dist/{index-yqn8Hbay.js → index-DvcQvaXv.js} +2 -2
  62. package/dist/{index-YkgGwyfx.js → index-ETHoxvZf.js} +2 -2
  63. package/dist/{index-D4kZ3Yip.js → index-na4ea52T.js} +2 -2
  64. package/dist/{index-Bn9RgQrP.js → index-vX7Ua1iM.js} +2 -2
  65. package/dist/index.js +47045 -19954
  66. package/dist/theme/design-media.d.ts +4 -4
  67. package/dist/theme/design-theme.d.ts +1 -5
  68. package/dist/theme/index.d.ts +0 -1
  69. package/dist/translations/en.d.ts +18 -219
  70. package/dist/translations/fr.d.ts +18 -219
  71. package/dist/utils/file.utils.d.ts +2 -2
  72. package/dist/utils/index.d.ts +1 -1
  73. package/dist/utils/notification-target.utils.d.ts +49 -0
  74. package/package.json +8 -16
  75. package/test-results/catalog/.last-run.json +4 -0
  76. package/vite.config.ts +6 -8
  77. package/dist/Tabs-nH2IBqqa.js +0 -1991
  78. package/dist/clsx-OuTLNxxd.js +0 -16
  79. package/dist/design-theme-DtU1zQos.js +0 -27703
  80. package/dist/index-C27b790L.js +0 -3304
  81. package/dist/legacy/components/Avatars/OrganizationAvatar/OrganizationAvatar.component.d.ts +0 -24
  82. package/dist/legacy/components/Avatars/OrganizationAvatar/index.d.ts +0 -2
  83. package/dist/legacy/components/Avatars/ProjectAvatar/ProjectAvatar.component.d.ts +0 -29
  84. package/dist/legacy/components/Avatars/ProjectAvatar/index.d.ts +0 -2
  85. package/dist/legacy/components/Avatars/UserAvatar/UserAvatar.component.d.ts +0 -25
  86. package/dist/legacy/components/Avatars/UserAvatar/constant.d.ts +0 -8
  87. package/dist/legacy/components/Avatars/UserAvatar/index.d.ts +0 -3
  88. package/dist/legacy/components/Avatars/UserAvatarList/UserAvatarList.component.d.ts +0 -18
  89. package/dist/legacy/components/Avatars/UserAvatarList/index.d.ts +0 -2
  90. package/dist/legacy/components/Avatars/index.d.ts +0 -4
  91. package/dist/legacy/components/Banking/AccountTransactions/AccountTransactionsRow.component.d.ts +0 -30
  92. package/dist/legacy/components/Banking/AccountTransactions/index.d.ts +0 -2
  93. package/dist/legacy/components/Banking/Inputs/SelectAccountTransactionCategory/SelectAccountTransactionCategory.component.d.ts +0 -12
  94. package/dist/legacy/components/Banking/Inputs/SelectAccountTransactionCategory/index.d.ts +0 -1
  95. package/dist/legacy/components/Banking/Inputs/index.d.ts +0 -1
  96. package/dist/legacy/components/Banking/index.d.ts +0 -1
  97. package/dist/legacy/components/Cards/InternalProjectCard/InternalProjectCard.component.d.ts +0 -36
  98. package/dist/legacy/components/Cards/InternalProjectCard/index.d.ts +0 -2
  99. package/dist/legacy/components/Cards/ProjectCard/ProjectCard.component.d.ts +0 -28
  100. package/dist/legacy/components/Cards/ProjectCard/index.d.ts +0 -2
  101. package/dist/legacy/components/Cards/index.d.ts +0 -2
  102. package/dist/legacy/components/Charts/AbyssBarChart/AbyssBarChart.component.d.ts +0 -21
  103. package/dist/legacy/components/Charts/AbyssBarChart/index.d.ts +0 -1
  104. package/dist/legacy/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.d.ts +0 -14
  105. package/dist/legacy/components/Charts/AbyssCashFlowChart/index.d.ts +0 -1
  106. package/dist/legacy/components/Charts/AbyssLineChart/AbyssLineChart.component.d.ts +0 -33
  107. package/dist/legacy/components/Charts/AbyssLineChart/index.d.ts +0 -1
  108. package/dist/legacy/components/Charts/AbyssPieChart/AbyssPieChart.component.d.ts +0 -18
  109. package/dist/legacy/components/Charts/AbyssPieChart/index.d.ts +0 -1
  110. package/dist/legacy/components/Charts/index.d.ts +0 -4
  111. package/dist/legacy/components/Charts/useNivoTheme.d.ts +0 -65
  112. package/dist/legacy/components/Chips/ApplicationSentinelTypeChip/ApplicationSentinelTypeChip.component.d.ts +0 -7
  113. package/dist/legacy/components/Chips/ApplicationSentinelTypeChip/index.d.ts +0 -1
  114. package/dist/legacy/components/Chips/LogTypeChip/LogTypeChip.component.d.ts +0 -7
  115. package/dist/legacy/components/Chips/LogTypeChip/index.d.ts +0 -1
  116. package/dist/legacy/components/Chips/ProjectStatusChip/ProjectStatusChip.component.d.ts +0 -7
  117. package/dist/legacy/components/Chips/ProjectStatusChip/index.d.ts +0 -1
  118. package/dist/legacy/components/Chips/WebhookResponseCodeChip/WebhookResponseCodeChip.component.d.ts +0 -6
  119. package/dist/legacy/components/Chips/WebhookResponseCodeChip/index.d.ts +0 -1
  120. package/dist/legacy/components/Chips/index.d.ts +0 -4
  121. package/dist/legacy/components/CommandPalette/AbyssCommandPalette.d.ts +0 -12
  122. package/dist/legacy/components/CommandPalette/index.d.ts +0 -3
  123. package/dist/legacy/components/CommandPalette/types.d.ts +0 -104
  124. package/dist/legacy/components/CommandPalette/useCommandPaletteHotkey.d.ts +0 -10
  125. package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.d.ts +0 -13
  126. package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.error.spec.d.ts +0 -1
  127. package/dist/legacy/components/CompanySearchAutocomplete/index.d.ts +0 -2
  128. package/dist/legacy/components/Data/AbyssTable/AbyssTable.component.d.ts +0 -70
  129. package/dist/legacy/components/Data/AbyssTable/AbyssTable.component.spec.d.ts +0 -1
  130. package/dist/legacy/components/Data/AbyssTable/AbyssTableCards.component.d.ts +0 -25
  131. package/dist/legacy/components/Data/AbyssTable/abyss-table.logic.d.ts +0 -147
  132. package/dist/legacy/components/Data/AbyssTable/abyss-table.logic.spec.d.ts +0 -1
  133. package/dist/legacy/components/Data/AbyssTable/index.d.ts +0 -2
  134. package/dist/legacy/components/Data/index.d.ts +0 -1
  135. package/dist/legacy/components/InfoBox/InfoBox.component.d.ts +0 -6
  136. package/dist/legacy/components/InfoBox/index.d.ts +0 -1
  137. package/dist/legacy/components/Inputs/AbyssDatePicker/AbyssDatePicker.component.d.ts +0 -4
  138. package/dist/legacy/components/Inputs/AbyssDatePicker/index.d.ts +0 -1
  139. package/dist/legacy/components/Inputs/AbyssDateTimePicker/AbyssDateTimePicker.component.d.ts +0 -4
  140. package/dist/legacy/components/Inputs/AbyssDateTimePicker/index.d.ts +0 -1
  141. package/dist/legacy/components/Inputs/AbyssNumberField/AbyssNumberField.component.d.ts +0 -35
  142. package/dist/legacy/components/Inputs/AbyssNumberField/format.d.ts +0 -35
  143. package/dist/legacy/components/Inputs/AbyssNumberField/format.spec.d.ts +0 -1
  144. package/dist/legacy/components/Inputs/AbyssNumberField/index.d.ts +0 -2
  145. package/dist/legacy/components/Inputs/AbyssScopeSwitcher/AbyssScopeSwitcher.component.d.ts +0 -21
  146. package/dist/legacy/components/Inputs/AbyssScopeSwitcher/index.d.ts +0 -2
  147. package/dist/legacy/components/Inputs/AbyssScopeSwitcher/scope-option.spec.d.ts +0 -1
  148. package/dist/legacy/components/Inputs/AbyssSelectOrganization/AbyssSelectOrganization.component.d.ts +0 -18
  149. package/dist/legacy/components/Inputs/AbyssSelectOrganization/index.d.ts +0 -2
  150. package/dist/legacy/components/Inputs/AbyssSelectProject/AbyssSelectProject.component.d.ts +0 -18
  151. package/dist/legacy/components/Inputs/AbyssSelectProject/index.d.ts +0 -2
  152. package/dist/legacy/components/Inputs/CloudImport/CloudImport.component.d.ts +0 -17
  153. package/dist/legacy/components/Inputs/CloudImport/CloudImport.component.spec.d.ts +0 -1
  154. package/dist/legacy/components/Inputs/CloudImport/CloudImportFile.component.d.ts +0 -14
  155. package/dist/legacy/components/Inputs/CloudImport/CloudImportFile.component.spec.d.ts +0 -1
  156. package/dist/legacy/components/Inputs/CloudImport/CloudImportFolder.component.d.ts +0 -18
  157. package/dist/legacy/components/Inputs/CloudImport/index.d.ts +0 -3
  158. package/dist/legacy/components/Inputs/ColorPalette/ColorPalette.component.d.ts +0 -23
  159. package/dist/legacy/components/Inputs/ColorPalette/index.d.ts +0 -1
  160. package/dist/legacy/components/Inputs/ColorPicker/ColorPicker.component.d.ts +0 -19
  161. package/dist/legacy/components/Inputs/ColorPicker/index.d.ts +0 -1
  162. package/dist/legacy/components/Inputs/ContextSelector/ContextSelector.component.d.ts +0 -68
  163. package/dist/legacy/components/Inputs/ContextSelector/index.d.ts +0 -2
  164. package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.component.d.ts +0 -60
  165. package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.granularity.spec.d.ts +0 -1
  166. package/dist/legacy/components/Inputs/DatePeriodPicker/DatePeriodPicker.segmented.spec.d.ts +0 -1
  167. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-i18n.spec.d.ts +0 -1
  168. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-picker.logic.d.ts +0 -69
  169. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-picker.logic.spec.d.ts +0 -1
  170. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-presets.spec.d.ts +0 -1
  171. package/dist/legacy/components/Inputs/DatePeriodPicker/date-period-presets.util.d.ts +0 -15
  172. package/dist/legacy/components/Inputs/DatePeriodPicker/index.d.ts +0 -2
  173. package/dist/legacy/components/Inputs/DropZone/DropZone.component.d.ts +0 -27
  174. package/dist/legacy/components/Inputs/DropZone/DropZone.component.spec.d.ts +0 -1
  175. package/dist/legacy/components/Inputs/DropZone/index.d.ts +0 -1
  176. package/dist/legacy/components/Inputs/LanguageFlagLabel/LanguageFlagLabel.component.d.ts +0 -22
  177. package/dist/legacy/components/Inputs/LanguageFlagLabel/index.d.ts +0 -2
  178. package/dist/legacy/components/Inputs/LanguageFlagLabel/language-flags.d.ts +0 -12
  179. package/dist/legacy/components/Inputs/PasswordInput/PasswordInput.component.d.ts +0 -41
  180. package/dist/legacy/components/Inputs/PasswordInput/index.d.ts +0 -1
  181. package/dist/legacy/components/Inputs/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +0 -8
  182. package/dist/legacy/components/Inputs/ProjectCategoryBadge/index.d.ts +0 -1
  183. package/dist/legacy/components/Inputs/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +0 -39
  184. package/dist/legacy/components/Inputs/ProjectLinkSelector/index.d.ts +0 -2
  185. package/dist/legacy/components/Inputs/ProjectTagChip/ProjectTagChip.component.d.ts +0 -9
  186. package/dist/legacy/components/Inputs/ProjectTagChip/index.d.ts +0 -1
  187. package/dist/legacy/components/Inputs/index.d.ts +0 -17
  188. package/dist/legacy/components/Invitations/AbyssPendingInvitations.component.d.ts +0 -18
  189. package/dist/legacy/components/Invitations/index.d.ts +0 -2
  190. package/dist/legacy/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.d.ts +0 -11
  191. package/dist/legacy/components/Layouts/AbyssBillingPlan/AbyssBillingPlan.component.spec.d.ts +0 -1
  192. package/dist/legacy/components/Layouts/AbyssBillingPlan/index.d.ts +0 -1
  193. package/dist/legacy/components/Layouts/AbyssDashboardLayout/AbyssDashboardLayout.component.d.ts +0 -13
  194. package/dist/legacy/components/Layouts/AbyssDashboardLayout/index.d.ts +0 -1
  195. package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.component.d.ts +0 -32
  196. package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.logic.spec.d.ts +0 -1
  197. package/dist/legacy/components/Layouts/AbyssFamilyBanner/index.d.ts +0 -2
  198. package/dist/legacy/components/Layouts/AbyssHeader/AbyssHeader.component.d.ts +0 -14
  199. package/dist/legacy/components/Layouts/AbyssHeader/AbyssHeader.component.spec.d.ts +0 -1
  200. package/dist/legacy/components/Layouts/AbyssHeader/index.d.ts +0 -1
  201. package/dist/legacy/components/Layouts/AbyssLayoutProvider/AbyssLayoutProvider.component.d.ts +0 -25
  202. package/dist/legacy/components/Layouts/AbyssLayoutProvider/abyss-layout.store.d.ts +0 -27
  203. package/dist/legacy/components/Layouts/AbyssLayoutProvider/index.d.ts +0 -3
  204. package/dist/legacy/components/Layouts/AbyssLoadingScreen/AbyssLoadingScreen.component.d.ts +0 -3
  205. package/dist/legacy/components/Layouts/AbyssLoadingScreen/index.d.ts +0 -1
  206. package/dist/legacy/components/Layouts/AbyssSearchBar/AbyssSearchBar.component.d.ts +0 -8
  207. package/dist/legacy/components/Layouts/AbyssSearchBar/index.d.ts +0 -1
  208. package/dist/legacy/components/Layouts/AbyssSidebar/AbyssSidebar.component.d.ts +0 -35
  209. package/dist/legacy/components/Layouts/AbyssSidebar/AbyssSidebarItem.component.d.ts +0 -9
  210. package/dist/legacy/components/Layouts/AbyssSidebar/index.d.ts +0 -3
  211. package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.d.ts +0 -8
  212. package/dist/legacy/components/Layouts/AbyssThemeToggle/AbyssThemeToggle.component.spec.d.ts +0 -1
  213. package/dist/legacy/components/Layouts/AbyssThemeToggle/index.d.ts +0 -1
  214. package/dist/legacy/components/Layouts/DashboardLayout/DashboardLayout.layout.d.ts +0 -19
  215. package/dist/legacy/components/Layouts/DashboardLayout/DashboardLayoutHeader.layout.d.ts +0 -11
  216. package/dist/legacy/components/Layouts/DashboardLayout/index.d.ts +0 -2
  217. package/dist/legacy/components/Layouts/LoadingLayout/LoadingLayout.layout.d.ts +0 -7
  218. package/dist/legacy/components/Layouts/LoadingLayout/index.d.ts +0 -1
  219. package/dist/legacy/components/Layouts/MainLayout/MainLayout.layout.d.ts +0 -9
  220. package/dist/legacy/components/Layouts/MainLayout/index.d.ts +0 -1
  221. package/dist/legacy/components/Layouts/index.d.ts +0 -12
  222. package/dist/legacy/components/Modals/AbyssModal/AbyssModal.component.d.ts +0 -18
  223. package/dist/legacy/components/Modals/AbyssModal/index.d.ts +0 -1
  224. package/dist/legacy/components/Modals/ConfirmModal/ConfirmModal.d.ts +0 -22
  225. package/dist/legacy/components/Modals/ConfirmModal/index.d.ts +0 -2
  226. package/dist/legacy/components/Modals/ImportFromCloudModal/ImportFromCloudModal.component.d.ts +0 -15
  227. package/dist/legacy/components/Modals/ImportFromCloudModal/index.d.ts +0 -1
  228. package/dist/legacy/components/Modals/QRCodeModal/QRCodeModal.component.d.ts +0 -12
  229. package/dist/legacy/components/Modals/QRCodeModal/index.d.ts +0 -1
  230. package/dist/legacy/components/Modals/UserSettingsModal/UserSettings.compat.d.ts +0 -12
  231. package/dist/legacy/components/Modals/UserSettingsModal/UserSettingsModal.component.d.ts +0 -38
  232. package/dist/legacy/components/Modals/UserSettingsModal/index.d.ts +0 -2
  233. package/dist/legacy/components/Modals/UserSettingsModal/user-settings-modal.family.spec.d.ts +0 -1
  234. package/dist/legacy/components/Modals/UserSettingsModal/user-settings-modal.links.spec.d.ts +0 -1
  235. package/dist/legacy/components/Modals/index.d.ts +0 -6
  236. package/dist/legacy/components/QuotaGauge/AbyssQuotaGauge.component.d.ts +0 -53
  237. package/dist/legacy/components/QuotaGauge/bubble-placement.d.ts +0 -47
  238. package/dist/legacy/components/QuotaGauge/bubble-placement.spec.d.ts +0 -1
  239. package/dist/legacy/components/QuotaGauge/gauge-highlight.spec.d.ts +0 -1
  240. package/dist/legacy/components/QuotaGauge/gauge-i18n-coverage.spec.d.ts +0 -1
  241. package/dist/legacy/components/QuotaGauge/gauge-segments.d.ts +0 -80
  242. package/dist/legacy/components/QuotaGauge/gauge-segments.spec.d.ts +0 -1
  243. package/dist/legacy/components/QuotaGauge/index.d.ts +0 -6
  244. package/dist/legacy/components/QuotaOffer/AbyssQuotaOffer.component.d.ts +0 -83
  245. package/dist/legacy/components/QuotaOffer/AbyssQuotaOffer.component.spec.d.ts +0 -1
  246. package/dist/legacy/components/QuotaOffer/index.d.ts +0 -4
  247. package/dist/legacy/components/QuotaOffer/quota-phrase-coverage.spec.d.ts +0 -1
  248. package/dist/legacy/components/QuotaReached/QuotaReachedDialog.component.d.ts +0 -15
  249. package/dist/legacy/components/QuotaReached/index.d.ts +0 -3
  250. package/dist/legacy/components/QuotaReached/quota-service-meta.d.ts +0 -31
  251. package/dist/legacy/components/Spotlight/InternalProjectCard/InternalProjectCard.component.d.ts +0 -15
  252. package/dist/legacy/components/Spotlight/InternalProjectCard/index.d.ts +0 -1
  253. package/dist/legacy/components/Spotlight/ProjectCard/ProjectCard.component.d.ts +0 -20
  254. package/dist/legacy/components/Spotlight/ProjectCard/index.d.ts +0 -1
  255. package/dist/legacy/components/Spotlight/ProjectCategoryBadge/ProjectCategoryBadge.component.d.ts +0 -7
  256. package/dist/legacy/components/Spotlight/ProjectCategoryBadge/index.d.ts +0 -1
  257. package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.d.ts +0 -10
  258. package/dist/legacy/components/Spotlight/ProjectLinkSelector/ProjectLinkSelector.component.spec.d.ts +0 -1
  259. package/dist/legacy/components/Spotlight/ProjectLinkSelector/index.d.ts +0 -2
  260. package/dist/legacy/components/Spotlight/ProjectTagChip/ProjectTagChip.component.d.ts +0 -9
  261. package/dist/legacy/components/Spotlight/ProjectTagChip/index.d.ts +0 -1
  262. package/dist/legacy/components/Spotlight/index.d.ts +0 -5
  263. package/dist/legacy/components/Utils/AbyssBackground/AbyssBackground.component.d.ts +0 -12
  264. package/dist/legacy/components/Utils/AbyssDrawer/AbyssDrawer.component.d.ts +0 -39
  265. package/dist/legacy/components/Utils/AbyssDrawer/index.d.ts +0 -2
  266. package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.d.ts +0 -10
  267. package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorBoundary.component.spec.d.ts +0 -1
  268. package/dist/legacy/components/Utils/AbyssErrorPage/AbyssErrorPage.component.d.ts +0 -11
  269. package/dist/legacy/components/Utils/AbyssErrorPage/index.d.ts +0 -3
  270. package/dist/legacy/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.d.ts +0 -6
  271. package/dist/legacy/components/Utils/AbyssFamilyMenuSection/AbyssFamilyMenuSection.spec.d.ts +0 -1
  272. package/dist/legacy/components/Utils/AbyssFamilyMenuSection/index.d.ts +0 -1
  273. package/dist/legacy/components/Utils/AbyssHeaderTitle/AbyssHeaderTitle.component.d.ts +0 -11
  274. package/dist/legacy/components/Utils/AbyssHeaderTitle/index.d.ts +0 -1
  275. package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.d.ts +0 -43
  276. package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssLayoutMenu.component.spec.d.ts +0 -1
  277. package/dist/legacy/components/Utils/AbyssLayoutMenu/AbyssMenuItem.component.d.ts +0 -15
  278. package/dist/legacy/components/Utils/AbyssLayoutMenu/index.d.ts +0 -3
  279. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.d.ts +0 -36
  280. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssLayoutNotifications.component.spec.d.ts +0 -1
  281. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.d.ts +0 -30
  282. package/dist/legacy/components/Utils/AbyssLayoutNotifications/AbyssNotifications.component.spec.d.ts +0 -1
  283. package/dist/legacy/components/Utils/AbyssLayoutNotifications/index.d.ts +0 -4
  284. package/dist/legacy/components/Utils/ImportButton/ImportButton.component.d.ts +0 -19
  285. package/dist/legacy/components/Utils/ImportButton/index.d.ts +0 -2
  286. package/dist/legacy/components/Utils/WaterParticles/WaterParticles.component.d.ts +0 -14
  287. package/dist/legacy/components/Utils/WaterParticles/index.d.ts +0 -1
  288. package/dist/legacy/components/Utils/index.d.ts +0 -10
  289. package/dist/legacy/components/aria-labels-i18n.spec.d.ts +0 -1
  290. package/dist/legacy/components/commons-labels-i18n.spec.d.ts +0 -1
  291. package/dist/legacy/components/index.d.ts +0 -18
  292. package/dist/legacy/components/theme-mode-colors.spec.d.ts +0 -1
  293. package/dist/legacy/fonts.css +0 -7
  294. package/dist/legacy/hooks/confirm-modal/confirm-modal.context.d.ts +0 -10
  295. package/dist/legacy/hooks/confirm-modal/index.d.ts +0 -1
  296. package/dist/legacy/hooks/index.d.ts +0 -1
  297. package/dist/legacy/index.d.ts +0 -4
  298. package/dist/legacy/legacy-editors-removed.spec.d.ts +0 -1
  299. package/dist/legacy/legacy-support-removed.spec.d.ts +0 -1
  300. package/dist/legacy/legacy-under-new-theme.spec.d.ts +0 -1
  301. package/dist/legacy/theme/augmentation.d.ts +0 -84
  302. package/dist/legacy/theme/components/buttons.d.ts +0 -35
  303. package/dist/legacy/theme/components/data-display.d.ts +0 -4
  304. package/dist/legacy/theme/components/index.d.ts +0 -2
  305. package/dist/legacy/theme/components/inputs.d.ts +0 -4
  306. package/dist/legacy/theme/components/inputs.spec.d.ts +0 -1
  307. package/dist/legacy/theme/components/navigation.d.ts +0 -4
  308. package/dist/legacy/theme/components/surfaces.d.ts +0 -4
  309. package/dist/legacy/theme/core-breakpoints-under-legacy-theme.spec.d.ts +0 -1
  310. package/dist/legacy/theme/create-theme.d.ts +0 -9
  311. package/dist/legacy/theme/create-theme.spec.d.ts +0 -1
  312. package/dist/legacy/theme/disabled-contrast.spec.d.ts +0 -1
  313. package/dist/legacy/theme/index.d.ts +0 -23
  314. package/dist/legacy/theme/legacy-tokens.d.ts +0 -3
  315. package/dist/legacy/theme/new-components-under-legacy-theme.spec.d.ts +0 -1
  316. package/dist/legacy/theme/palettes/common.d.ts +0 -74
  317. package/dist/legacy/theme/palettes/dark.d.ts +0 -67
  318. package/dist/legacy/theme/palettes/light.d.ts +0 -67
  319. package/dist/legacy/theme/tokens/animations.d.ts +0 -33
  320. package/dist/legacy/theme/tokens/borders.d.ts +0 -14
  321. package/dist/legacy/theme/tokens/colors.d.ts +0 -129
  322. package/dist/legacy/theme/tokens/shadows.d.ts +0 -53
  323. package/dist/legacy/theme/tokens/transitions.d.ts +0 -25
  324. package/dist/legacy/theme/tokens/typography.d.ts +0 -99
  325. package/dist/legacy/utils/billing-colors.utils.d.ts +0 -7
  326. package/dist/legacy/utils/color.utils.d.ts +0 -11
  327. package/dist/legacy/utils/file.utils.d.ts +0 -2
  328. package/dist/legacy/utils/index.d.ts +0 -3
  329. package/dist/legacy.d.ts +0 -2
  330. package/dist/legacy.js +0 -16282
  331. package/dist/theme/DesignCssVariables.d.ts +0 -12
  332. package/dist/theme/DesignCssVariables.spec.d.ts +0 -1
  333. package/dist/utils/share-notification.utils.d.ts +0 -10
  334. /package/dist/{legacy/components/Cards/project-card-date.spec.d.ts → components/business/AbyssProjectLinkField/AbyssProjectLinkField.spec.d.ts} +0 -0
  335. /package/dist/{legacy/components/Charts/AbyssCashFlowChart/AbyssCashFlowChart.component.spec.d.ts → components/business/PendingInvitations/PendingInvitations.spec.d.ts} +0 -0
  336. /package/dist/{legacy/components/Charts/AbyssLineChart/AbyssLineChart.component.spec.d.ts → components/mobile/MobileShell/MobileShellActionBar.spec.d.ts} +0 -0
  337. /package/dist/{legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.date.spec.d.ts → utils/notification-target.utils.spec.d.ts} +0 -0
@@ -1,2 +0,0 @@
1
- export { CompanySearchAutocomplete } from './CompanySearchAutocomplete';
2
- export type { CompanySearchAutocompleteProps, PappersCompany, } from './CompanySearchAutocomplete';
@@ -1,70 +0,0 @@
1
- import { SxProps } from '@mui/material';
2
- import { ColumnDef, RowData, SortingState } from '@tanstack/react-table';
3
- import { ReactNode } from 'react';
4
- import { AbyssTableMobilePlacement } from './abyss-table.logic';
5
- declare module '@tanstack/react-table' {
6
- interface ColumnMeta<TData extends RowData, TValue> {
7
- /** Where this column goes in `mobileLayout="cards"`. See `resolveMobilePlacements`. */
8
- mobile?: AbyssTableMobilePlacement;
9
- }
10
- }
11
- export type { AbyssTableMobilePlacement };
12
- export type AbyssTableFilterDef = {
13
- columnId: string;
14
- label: string;
15
- render: (value: any, onChange: (value: any) => void) => ReactNode;
16
- };
17
- export type AbyssTableProps<TData extends object> = {
18
- data: TData[];
19
- columns: ColumnDef<TData, any>[];
20
- enableGlobalFilter?: boolean;
21
- enableColumnFilters?: boolean;
22
- enableSorting?: boolean;
23
- enablePagination?: boolean;
24
- defaultPageSize?: number;
25
- pageSizeOptions?: number[];
26
- /**
27
- * Server-side (manual) sorting: the table reports the sort instead of applying it.
28
- *
29
- * Without this, a table in `manualPagination` sorts the rows it holds — one page — against
30
- * nothing, which reads as broken. See the README's gotcha section.
31
- */
32
- manualSorting?: boolean;
33
- /** Host-controlled sort. Only honoured under `manualSorting`. */
34
- sorting?: SortingState;
35
- /** Called with the next sort when the reader clicks a column header. */
36
- onSortingChange?: (next: SortingState) => void;
37
- manualPagination?: boolean;
38
- pageCount?: number;
39
- totalItems?: number;
40
- currentPage?: number;
41
- onPageChange?: (page: number) => void;
42
- onPageSizeChange?: (pageSize: number) => void;
43
- filters?: AbyssTableFilterDef[];
44
- /** Controlled server-side search. When provided, the toolbar search box reports
45
- * debounced changes to the host instead of filtering client-side. */
46
- onSearchChange?: (value: string) => void;
47
- /** Current search text when the host owns the search state. */
48
- searchValue?: string;
49
- /** Placeholder for the search box; falls back to the existing i18n `table.search`. */
50
- searchPlaceholder?: string;
51
- /** Debounce applied before calling `onSearchChange`. Defaults to 400ms (the
52
- * value the admin's local table wrapper used). */
53
- searchDebounceMs?: number;
54
- emptyMessage?: string;
55
- emptyContent?: ReactNode;
56
- onRowClick?: (row: TData) => void;
57
- sx?: SxProps;
58
- tableLabel?: string;
59
- getRowSx?: (row: TData, index: number) => SxProps;
60
- isLoading?: boolean;
61
- renderAboveTable?: ReactNode;
62
- /**
63
- * `'cards'` reflows each row into a card below the `sm` breakpoint: `primary` columns in the card's
64
- * header, `secondary` ones behind a "details" button, `hidden` ones nowhere — per column, through
65
- * `meta.mobile`. `'table'` (the default) keeps the `<table>` at every width.
66
- */
67
- mobileLayout?: 'table' | 'cards';
68
- };
69
- declare function AbyssTable<TData extends object>({ data, columns, enableGlobalFilter, enableColumnFilters, enableSorting, manualSorting, sorting: externalSorting, onSortingChange, enablePagination, defaultPageSize, pageSizeOptions, manualPagination, pageCount: externalPageCount, totalItems: externalTotalItems, currentPage: externalCurrentPage, onPageChange, onPageSizeChange, filters, onSearchChange, searchValue, searchPlaceholder, searchDebounceMs, emptyMessage, emptyContent, onRowClick, sx, tableLabel, getRowSx, isLoading, renderAboveTable, mobileLayout, }: AbyssTableProps<TData>): import("react/jsx-runtime").JSX.Element;
70
- export default AbyssTable;
@@ -1,25 +0,0 @@
1
- import { SxProps } from '@mui/material';
2
- import { Header, Row } from '@tanstack/react-table';
3
- import { ReactNode } from 'react';
4
- import { AbyssTableMobilePlacement } from './abyss-table.logic';
5
- export type AbyssTableCardsProps<TData extends object> = {
6
- rows: Row<TData>[];
7
- /** The table's leaf headers, used to label each value with its own column header. */
8
- headers: Header<TData, unknown>[];
9
- placements: Record<string, AbyssTableMobilePlacement>;
10
- onRowClick?: (row: TData) => void;
11
- getRowSx?: (row: TData, index: number) => SxProps;
12
- isLoading: boolean;
13
- /** What the table shows with zero rows — the exact node the `<table>` layout renders. */
14
- emptyState: ReactNode;
15
- listLabel?: string;
16
- };
17
- /**
18
- * AbyssTable's rows reflowed as a list, for narrow viewports.
19
- *
20
- * Each card is the table row it replaces, not a floating tile: cards sit edge to edge inside the
21
- * table's own container, separated by the theme divider, so the pagination footer below them reads as
22
- * the same object it closes on desktop.
23
- */
24
- declare function AbyssTableCards<TData extends object>({ rows, headers, placements, onRowClick, getRowSx, isLoading, emptyState, listLabel, }: AbyssTableCardsProps<TData>): import("react/jsx-runtime").JSX.Element;
25
- export default AbyssTableCards;
@@ -1,147 +0,0 @@
1
- /**
2
- * Pure, dependency-free helpers backing AbyssTable's pagination and search
3
- * behaviour. Kept free of React/MUI so they can be spec'd directly (commons
4
- * has no jsdom/testing-library — all logic modules are pure-function specs).
5
- */
6
- export interface ResolvePageIndexParams {
7
- /** Whether the table is in server-side (manual) pagination mode. */
8
- manualPagination: boolean;
9
- /** Host-controlled page index (0-based), when the host owns pagination. */
10
- externalCurrentPage?: number;
11
- /** The table's own internal pagination state (0-based). */
12
- internalPageIndex: number;
13
- }
14
- /**
15
- * Resolves the page index AbyssTable renders, mirroring the component's
16
- * existing precedence exactly:
17
- * - manual pagination + a host-provided `currentPage` -> the host value wins.
18
- * - manual pagination without a host-provided `currentPage` -> falls back to
19
- * the internal pagination state.
20
- * - non-manual (client-side) pagination -> always uses the internal state,
21
- * regardless of `externalCurrentPage`.
22
- */
23
- export declare function resolvePageIndex({ manualPagination, externalCurrentPage, internalPageIndex, }: ResolvePageIndexParams): number;
24
- /**
25
- * Whether the toolbar search box should operate as a controlled, debounced,
26
- * server-side search (reporting to the host via `onSearchChange`) instead of
27
- * AbyssTable's default client-side global filtering.
28
- */
29
- export declare function shouldUseServerSearch(onSearchChange?: (value: string) => void): boolean;
30
- /**
31
- * Resolves the placeholder text shown in the toolbar search box: an explicit
32
- * `searchPlaceholder` prop wins, otherwise the caller's fallback (the
33
- * component's existing i18n `table.search` message) is used.
34
- */
35
- export declare function resolveSearchPlaceholder(searchPlaceholder: string | undefined, fallback: string): string;
36
- /** One column's sort direction, mirroring `@tanstack/react-table`'s `SortingState` entry. */
37
- export interface SortingEntry {
38
- id: string;
39
- desc: boolean;
40
- }
41
- export interface ResolveSortingStateParams {
42
- /** Whether the host owns the sort and applies it itself (server-side). */
43
- manualSorting: boolean;
44
- /** Host-controlled sort, when the host owns it. */
45
- externalSorting?: SortingEntry[];
46
- /** The table's own internal sorting state. */
47
- internalSorting: SortingEntry[];
48
- }
49
- /**
50
- * Resolves the sorting state AbyssTable renders its header affordance from.
51
- *
52
- * The precedence mirrors `resolvePageIndex`, and for the same reason: a host that owns the sort must
53
- * see the arrow it asked for, not one the table decided on its own. A host in manual mode that
54
- * passes no `sorting` still gets a working header — it just has nothing to restore on a reload.
55
- *
56
- * Client-side sorting ignores `externalSorting` entirely, so a host cannot half-control the sort and
57
- * end up with a header that disagrees with the rows underneath it.
58
- */
59
- export declare function resolveSortingState({ manualSorting, externalSorting, internalSorting, }: ResolveSortingStateParams): SortingEntry[];
60
- /**
61
- * Whether the table must build a sorted row model of its own.
62
- *
63
- * Never under `manualSorting`: the rows it holds are one page of a result set the server already
64
- * ordered, and re-sorting them locally reorders that page against the rest — the failure the
65
- * README's gotcha describes, arrived at from the other direction.
66
- */
67
- export declare function shouldSortRowsLocally(enableSorting: boolean, manualSorting: boolean): boolean;
68
- /**
69
- * Whether a column header offers a sort affordance.
70
- *
71
- * Client-side, the answer is TanStack's: a column with no accessor has no value to compare, so it
72
- * cannot be sorted and `getCanSort()` says so.
73
- *
74
- * Under `manualSorting` that reasoning does not apply. The server does the ordering; the column only
75
- * has to name itself. Display-only columns — a cell built from several fields, a chip, an avatar —
76
- * are exactly the ones a host wants sortable server-side, and deferring to `getCanSort()` would make
77
- * the whole manual-sorting API silently do nothing on them.
78
- */
79
- export declare function isColumnSortable(params: {
80
- enableSorting: boolean;
81
- manualSorting: boolean;
82
- /** The column's own `enableSorting`, `undefined` when it does not say. */
83
- columnEnableSorting: boolean | undefined;
84
- /** What TanStack answers for client-side sorting. */
85
- canSortClientSide: boolean;
86
- }): boolean;
87
- /**
88
- * Resolves the page size options AbyssTable's "rows per page" `Select` renders.
89
- *
90
- * A `Select`'s value must be one of its own `MenuItem` values or MUI renders it blank — the bug this
91
- * closes. A host's `defaultPageSize` (or a size restored from `onPageSizeChange`) is not guaranteed to
92
- * be one of the caller's `pageSizeOptions`, so the current size is folded in, sorted, whenever it is
93
- * missing.
94
- */
95
- export declare function resolvePageSizeOptions(options: number[], current: number): number[];
96
- export interface ResolveCurrentPageSizeParams {
97
- /** Whether the table is in server-side (manual) pagination mode. */
98
- manualPagination: boolean;
99
- /** The table's own internal pagination state's page size, when it drives one. */
100
- tablePageSize: number | undefined;
101
- /** The size the host asked the table to start on — and, in manual mode, its live current size. */
102
- defaultPageSize: number;
103
- }
104
- /**
105
- * Resolves the page size AbyssTable renders and reports "X–Y of Z" against.
106
- *
107
- * Under `manualPagination`, `getPaginationRowModel` is skipped (see the component) and the server,
108
- * not the table, decides how many rows a page holds. `defaultPageSize` is the ONLY value this
109
- * function may trust there — per the README's contract, the host is expected to feed its live
110
- * `pageSize` state through that prop on every render, and `onPageSizeChange` is how the table asks
111
- * it to. Echoing the reader's raw selector click instead, from an internal "controlled size" state,
112
- * would show a size on a host that never wired `onPageSizeChange`: the selector and the "X–Y of Z"
113
- * would silently start lying about a `limit` the server was never asked to honour.
114
- *
115
- * Client-side, the table already owns its page size through `getPaginationRowModel`, so `tablePageSize`
116
- * wins, falling back to `defaultPageSize` only before the table has produced a state of its own.
117
- */
118
- export declare function resolveCurrentPageSize({ manualPagination, tablePageSize, defaultPageSize, }: ResolveCurrentPageSizeParams): number;
119
- /**
120
- * Where a column's value goes when AbyssTable renders a row as a mobile card:
121
- * - `primary` — in the card's always-visible header;
122
- * - `secondary` — behind the card's "details" button, as a label/value pair;
123
- * - `hidden` — not rendered in the card at all (a column whose job the card already does itself,
124
- * such as a per-row expand toggle the whole card now carries).
125
- */
126
- export type AbyssTableMobilePlacement = 'primary' | 'secondary' | 'hidden';
127
- /**
128
- * Resolves every column's mobile card placement, in column order.
129
- *
130
- * A declared placement always wins. Undeclared columns fall back to a default: the first two of them
131
- * are `primary`, every later one `secondary`. Only undeclared columns count towards those two — a host
132
- * that hides its first column or pushes one to `secondary` has not used up a header slot, so the next
133
- * undeclared column still makes the header.
134
- */
135
- export declare function resolveMobilePlacements(columnIds: string[], declared: Record<string, AbyssTableMobilePlacement | undefined>): Record<string, AbyssTableMobilePlacement>;
136
- /**
137
- * The next sort after a click on a column header, under `manualSorting`.
138
- *
139
- * TanStack's own toggle handler is not usable here: it no-ops on a column it considers unsortable,
140
- * which under manual sorting is every display-only column — the ones a host most wants ordered by
141
- * the server.
142
- *
143
- * The cycle is ascending, then descending, then nothing. Three states rather than two because
144
- * "nothing" is a real answer: it is how a reader goes back to the list's own default order, and a
145
- * two-state toggle would trap them between two orders they may not want either of.
146
- */
147
- export declare function nextManualSorting(current: SortingEntry[], columnId: string): SortingEntry[];
@@ -1,2 +0,0 @@
1
- export { default as AbyssTable } from './AbyssTable.component';
2
- export type { AbyssTableProps, AbyssTableFilterDef, AbyssTableMobilePlacement, } from './AbyssTable.component';
@@ -1 +0,0 @@
1
- export * from './AbyssTable';
@@ -1,6 +0,0 @@
1
- import { FC } from 'react';
2
- import { BoxProps } from '@mui/material';
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>;
@@ -1 +0,0 @@
1
- export * from './InfoBox.component';
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import { DatePickerProps } from '@mui/x-date-pickers';
3
- declare const AbyssDatePicker: FC<DatePickerProps<Date>>;
4
- export default AbyssDatePicker;
@@ -1 +0,0 @@
1
- export { default as AbyssDatePicker } from './AbyssDatePicker.component';
@@ -1,4 +0,0 @@
1
- import { FC } from 'react';
2
- import { DateTimePickerProps } from '@mui/x-date-pickers';
3
- declare const AbyssDateTimePicker: FC<DateTimePickerProps<Date>>;
4
- export default AbyssDateTimePicker;
@@ -1 +0,0 @@
1
- export { default as AbyssDateTimePicker } from './AbyssDateTimePicker.component';
@@ -1,35 +0,0 @@
1
- import { TextFieldProps } from '@mui/material';
2
- import { FC } from 'react';
3
- export type AbyssNumberFieldProps = Omit<TextFieldProps, 'value' | 'onChange'> & {
4
- /** The numeric value */
5
- value: number | null;
6
- /** Called with the raw number on change */
7
- onChange: (value: number | null) => void;
8
- /** Format mode */
9
- mode?: 'number' | 'currency';
10
- /** Currency symbol (default: '€') */
11
- currencySymbol?: string;
12
- /** Currency position */
13
- currencyPosition?: 'start' | 'end';
14
- /**
15
- * BCP-47 locale for formatting. Defaults to the active IntlProvider locale,
16
- * so the decimal separator follows the app language (fr -> "50,00", en ->
17
- * "50.00"). Only override to force a specific locale.
18
- */
19
- locale?: string;
20
- /** Decimal places (default: 0 for number, 2 for currency) */
21
- decimals?: number;
22
- /**
23
- * Thousands separator. Defaults to the active locale's grouping separator;
24
- * pass to override.
25
- */
26
- thousandSeparator?: string;
27
- /** Min value */
28
- min?: number;
29
- /** Max value */
30
- max?: number;
31
- /** Allow negative */
32
- allowNegative?: boolean;
33
- };
34
- declare const AbyssNumberField: FC<AbyssNumberFieldProps>;
35
- export default AbyssNumberField;
@@ -1,35 +0,0 @@
1
- /**
2
- * Locale-aware number formatting/parsing helpers for {@link AbyssNumberField}.
3
- *
4
- * The decimal and grouping separators are derived from the ACTIVE locale
5
- * (fr-FR -> "," decimal, en-* -> "." decimal) and are never hardcoded, so a
6
- * currency value like 50 renders as "50,00 €" in French and "50.00" in English.
7
- * Parsing is intentionally forgiving: a user typing "50,00" or "50" both
8
- * round-trip to the numeric 50 that flows back out through onChange.
9
- */
10
- export interface LocaleSeparators {
11
- /** Thousands / grouping separator (fr-FR: narrow no-break space, en-US: ","). */
12
- group: string;
13
- /** Decimal separator (fr-FR: ",", en-US: "."). */
14
- decimal: string;
15
- }
16
- /**
17
- * Resolve the grouping and decimal separators used by the given BCP-47 locale
18
- * by inspecting `Intl.NumberFormat` output. Falls back to space/dot if the
19
- * locale is unknown or Intl throws.
20
- */
21
- export declare function getLocaleSeparators(locale: string): LocaleSeparators;
22
- /**
23
- * Format a numeric value for display using the provided locale separators.
24
- * Returns an empty string for null/undefined/NaN.
25
- */
26
- export declare function formatNumberValue(value: number | null | undefined, decimals: number, separators: LocaleSeparators): string;
27
- /**
28
- * Parse a user-typed string back into a number.
29
- *
30
- * Grouping separators (the locale's own group char plus common whitespace
31
- * variants) are stripped first, then either "," or "." is accepted as the
32
- * decimal marker so that fr comma-input and en dot-input both yield the same
33
- * numeric value. Returns null for empty / non-numeric input.
34
- */
35
- export declare function parseNumberInput(raw: string | null | undefined, separators: LocaleSeparators): number | null;
@@ -1,2 +0,0 @@
1
- export { default as AbyssNumberField } from './AbyssNumberField.component';
2
- export type { AbyssNumberFieldProps } from './AbyssNumberField.component';
@@ -1,21 +0,0 @@
1
- import { default as React } from 'react';
2
- export type ScopeOption = {
3
- id: string | null;
4
- name: string;
5
- logoId?: string | null;
6
- kind?: 'standard' | 'family';
7
- };
8
- type Props = {
9
- organizations: ScopeOption[];
10
- selectedOrganizationId: string | null;
11
- onChange: (organizationId: string | null) => void;
12
- getOrganizationLogoUrl: (orgId: string) => string;
13
- personalLabel?: string;
14
- placeholder?: string;
15
- userId?: string;
16
- userName?: string;
17
- getUserProfilePictureUrl?: (userId: string) => string;
18
- hidePersonal?: boolean;
19
- };
20
- declare function AbyssScopeSwitcher({ organizations, selectedOrganizationId, onChange, getOrganizationLogoUrl, personalLabel, placeholder, userId, userName, getUserProfilePictureUrl, hidePersonal, }: Props): React.ReactElement;
21
- export { AbyssScopeSwitcher };
@@ -1,2 +0,0 @@
1
- export { AbyssScopeSwitcher } from './AbyssScopeSwitcher.component';
2
- export type { ScopeOption } from './AbyssScopeSwitcher.component';
@@ -1,18 +0,0 @@
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,2 +0,0 @@
1
- export { default as AbyssSelectOrganization } from './AbyssSelectOrganization.component';
2
- export type { SelectableOrganization } from './AbyssSelectOrganization.component';
@@ -1,18 +0,0 @@
1
- import { default as React } from 'react';
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;
11
- disabled?: boolean;
12
- onChange: (selectedProject: T | null) => void;
13
- label?: string;
14
- placeholder?: string;
15
- getProjectPictureUrl: (projectId: string) => string;
16
- };
17
- declare function AbyssSelectProject<T extends SelectableProject = SelectableProject>({ onChange, projects, selectedProject, disabled, label, placeholder, getProjectPictureUrl, }: Props<T>): React.ReactElement;
18
- export default AbyssSelectProject;
@@ -1,2 +0,0 @@
1
- export { default as AbyssSelectProject } from './AbyssSelectProject.component';
2
- export type { SelectableProject } from './AbyssSelectProject.component';
@@ -1,17 +0,0 @@
1
- import { default as React } from 'react';
2
- import { ISpace, IFile } from '@abyss-project/cloud';
3
- import { CloudPicker } from '../../../../hooks/cloud-picker.types';
4
- type Props = {
5
- submitFiles: (cloud: ISpace, files: IFile[]) => void;
6
- maxSize?: number;
7
- multiple?: boolean;
8
- /**
9
- * The files offered, as the HTML `accept` attribute lists them: MIME types (`application/pdf`),
10
- * wildcards (`image/*`) and extensions (`.pdf`). Absent or empty: every file.
11
- */
12
- accept?: string[];
13
- /** Picker state and actions, as returned by `useCloudPicker`. */
14
- cloudPicker: CloudPicker;
15
- };
16
- declare const CloudImport: React.FC<Props>;
17
- export default CloudImport;
@@ -1,14 +0,0 @@
1
- import { default as React } from 'react';
2
- import { IFile } from '@abyss-project/cloud';
3
- type Props = {
4
- file: IFile;
5
- maxSize?: number;
6
- multiple?: boolean;
7
- selectedFiles?: IFile[];
8
- selectFiles?: (files: IFile[]) => void;
9
- unselectFiles?: (files: IFile[]) => void;
10
- accept?: string[];
11
- getFileThumbnailUrl: (id: string) => string;
12
- };
13
- declare const CloudImportFile: React.FC<Props>;
14
- export default CloudImportFile;
@@ -1,18 +0,0 @@
1
- import { default as React } from 'react';
2
- import { IFile, IFolder } from '@abyss-project/cloud';
3
- type Props = {
4
- folder: IFolder;
5
- maxSize?: number;
6
- multiple?: boolean;
7
- selectedFiles?: IFile[];
8
- selectFiles?: (files: IFile[]) => void;
9
- unselectFiles?: (files: IFile[]) => void;
10
- selectedFolders?: IFolder[];
11
- selectFolders?: (folders: IFolder[]) => void;
12
- unselectFolders?: (folders: IFolder[]) => void;
13
- maskFiles?: boolean;
14
- accept?: string[];
15
- getFileThumbnailUrl: (id: string) => string;
16
- };
17
- declare const CloudImportFolder: React.FC<Props>;
18
- export default CloudImportFolder;
@@ -1,3 +0,0 @@
1
- export { default as CloudImport } from './CloudImport.component';
2
- export { default as CloudImportFolder } from './CloudImportFolder.component';
3
- export { default as CloudImportFile } from './CloudImportFile.component';
@@ -1,23 +0,0 @@
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
- /** Tooltip for the custom-color button. Pass an i18n string from the host
18
- * (defaults to French for legacy callers). */
19
- customTooltip?: string;
20
- sx?: SxProps;
21
- };
22
- declare const ColorPalette: React.FC<Props>;
23
- export default ColorPalette;
@@ -1 +0,0 @@
1
- export { default as ColorPalette } from './ColorPalette.component';
@@ -1,19 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { default as ColorPicker } from './ColorPicker.component';
@@ -1,68 +0,0 @@
1
- import { default as React } from 'react';
2
- /** A project that belongs to an organization. */
3
- export type ContextSelectorProject = {
4
- id: string;
5
- name: string;
6
- /** Optional custom avatar (e.g. a `ProjectAvatar`). Falls back to an icon. */
7
- avatar?: React.ReactNode;
8
- };
9
- /** An organization the user belongs to, with its projects. */
10
- export type ContextSelectorOrganization = {
11
- id: string;
12
- name: string;
13
- /** Optional custom avatar (e.g. an `OrganizationAvatar`). Falls back to an icon. */
14
- avatar?: React.ReactNode;
15
- projects?: ContextSelectorProject[];
16
- };
17
- /** The personal ("Mon Espace") scope entry. */
18
- export type ContextSelectorPersonal = {
19
- /** Display label (e.g. the user's alias). Falls back to the i18n "Mon Espace". */
20
- label?: string;
21
- /** Optional custom avatar (e.g. a `UserAvatar`). Falls back to an icon. */
22
- avatar?: React.ReactNode;
23
- };
24
- /** Full data shape: the personal scope plus the user's organizations. */
25
- export type ContextSelectorData = {
26
- personal: ContextSelectorPersonal;
27
- organizations: ContextSelectorOrganization[];
28
- };
29
- /**
30
- * The currently-selected context. A discriminated union mirroring the
31
- * personal / organization / project scope used across the apps.
32
- */
33
- export type ContextValue = {
34
- kind: 'personal';
35
- } | {
36
- kind: 'organization';
37
- organizationId: string;
38
- } | {
39
- kind: 'project';
40
- organizationId: string;
41
- projectId: string;
42
- };
43
- /**
44
- * - `grouped`: three flat headers — "Mon Espace", "Organisation", "Projets".
45
- * - `by-org`: "Mon Espace" first, then one group per organization (by name),
46
- * each containing an "Organisation" entry + that org's projects.
47
- */
48
- export type ContextSelectorVariant = 'grouped' | 'by-org';
49
- type ContextSelectorProps = {
50
- /** Personal + organizations (each with their projects). */
51
- data: ContextSelectorData;
52
- /** The currently-selected context. */
53
- value: ContextValue;
54
- /** Fires with the new context when the user picks an option. */
55
- onChange: (next: ContextValue) => void;
56
- /** Layout of the option list. Defaults to `grouped`. */
57
- variant?: ContextSelectorVariant;
58
- /** Optional field label rendered by the inner `TextField`. */
59
- label?: string;
60
- /** Optional placeholder for the inner `TextField`. */
61
- placeholder?: string;
62
- /** Disables the whole control. */
63
- disabled?: boolean;
64
- /** Min width of the control. Defaults to 240px. */
65
- minWidth?: number | string;
66
- };
67
- export declare const ContextSelector: React.FC<ContextSelectorProps>;
68
- export default ContextSelector;
@@ -1,2 +0,0 @@
1
- export { ContextSelector } from './ContextSelector.component';
2
- export type { ContextSelectorProject, ContextSelectorOrganization, ContextSelectorPersonal, ContextSelectorData, ContextValue, ContextSelectorVariant, } from './ContextSelector.component';