@abyss-project/commons-front-core 9.1.1 → 9.3.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 (97) hide show
  1. package/README.md +63 -0
  2. package/catalog/catalog-entries.ts +12 -0
  3. package/catalog/pages/AmbientBackground.tsx +83 -0
  4. package/catalog/pages/AvatarGroup.tsx +45 -0
  5. package/catalog/pages/BarChart.tsx +127 -0
  6. package/catalog/pages/CompanySearchField.tsx +113 -0
  7. package/catalog/pages/ConfirmDialog.tsx +43 -1
  8. package/catalog/pages/ConfirmDialogWarning.tsx +45 -0
  9. package/catalog/pages/CopyField.tsx +24 -1
  10. package/catalog/pages/EntityImageField.tsx +124 -0
  11. package/catalog/pages/LineChart.tsx +138 -0
  12. package/catalog/pages/Pagination.tsx +52 -0
  13. package/catalog/pages/Section.tsx +16 -2
  14. package/catalog/pages/TeamAvatar.tsx +40 -0
  15. package/catalog/pages/UserPicker.tsx +124 -0
  16. package/catalog/pages/index.ts +20 -0
  17. package/dist/{AbyssCookieConsentProvider-B7-F6osY.js → AbyssCookieConsentProvider-CeDdkoPq.js} +104 -36
  18. package/dist/{CookieConsentSettings.component-DxQL4ULz.js → CookieConsentSettings.component-tJE0g-SS.js} +1 -1
  19. package/dist/components/data/BarChart/BarChart.d.ts +47 -0
  20. package/dist/components/data/BarChart/BarChart.spec.d.ts +1 -0
  21. package/dist/components/data/DataTable/DataTableDesktop.d.ts +1 -1
  22. package/dist/components/data/DataTable/DataTableMobile.d.ts +1 -1
  23. package/dist/components/data/DataTable/data-table.types.d.ts +6 -0
  24. package/dist/components/data/LineChart/LineChart.d.ts +44 -0
  25. package/dist/components/data/LineChart/LineChart.spec.d.ts +1 -0
  26. package/dist/components/data/LineChart/line-chart-ticks.d.ts +31 -0
  27. package/dist/components/data/LineChart/line-chart-ticks.spec.d.ts +1 -0
  28. package/dist/components/data/Pagination/Pagination.d.ts +16 -0
  29. package/dist/components/data/Pagination/Pagination.spec.d.ts +1 -0
  30. package/dist/components/data/chart-series-tone.d.ts +21 -0
  31. package/dist/components/data/chart-series-tone.spec.d.ts +1 -0
  32. package/dist/components/data/index.d.ts +4 -0
  33. package/dist/components/inputs/ColorField/ColorField.d.ts +8 -5
  34. package/dist/components/inputs/CompanySearchField/CompanySearchField.d.ts +24 -0
  35. package/dist/components/inputs/CompanySearchField/CompanySearchField.spec.d.ts +1 -0
  36. package/dist/components/inputs/CompanySearchField/pappers-company.d.ts +18 -0
  37. package/dist/components/inputs/CopyField/CopyField.d.ts +22 -6
  38. package/dist/components/inputs/EntityImageField/EntityImageField.d.ts +47 -0
  39. package/dist/components/inputs/EntityImageField/EntityImageField.spec.d.ts +1 -0
  40. package/dist/components/inputs/UserPicker/UserPicker.d.ts +50 -0
  41. package/dist/components/inputs/UserPicker/UserPicker.spec.d.ts +1 -0
  42. package/dist/components/inputs/index.d.ts +3 -0
  43. package/dist/components/layers/ConfirmDialog/ConfirmDialog.d.ts +6 -2
  44. package/dist/components/layers/ConfirmDialog/useConfirmDialog.d.ts +21 -0
  45. package/dist/components/layers/ConfirmDialog/useConfirmDialog.spec.d.ts +1 -0
  46. package/dist/components/layers/index.d.ts +1 -0
  47. package/dist/components/meaning/AvatarGroup/AvatarGroup.d.ts +22 -0
  48. package/dist/components/meaning/AvatarGroup/AvatarGroup.spec.d.ts +1 -0
  49. package/dist/components/meaning/TeamAvatar/TeamAvatar.d.ts +14 -0
  50. package/dist/components/meaning/TeamAvatar/TeamAvatar.spec.d.ts +1 -0
  51. package/dist/components/meaning/index.d.ts +2 -0
  52. package/dist/components/structure/AmbientBackground/AmbientBackground.d.ts +24 -0
  53. package/dist/components/structure/AmbientBackground/AmbientBackground.spec.d.ts +1 -0
  54. package/dist/components/structure/Section/Section.d.ts +10 -2
  55. package/dist/components/structure/index.d.ts +1 -0
  56. package/dist/cookie-consent.js +2 -2
  57. package/dist/design-theme-D3DQFMu-.js +27614 -0
  58. package/dist/hooks/use-rich-intl.hook.d.ts +68 -0
  59. package/dist/{index-uLh81uFU.js → index-3wZ_n-X5.js} +2 -2
  60. package/dist/{index-BuQlif6i.js → index-7E3aXufv.js} +2 -2
  61. package/dist/{index-iQhqBjKY.js → index-9E4QhCRp.js} +2 -2
  62. package/dist/{index-BtzB7aR_.js → index-B7yu6Zm9.js} +2 -2
  63. package/dist/{index-DkcMwm_T.js → index-BK4lWFRR.js} +3 -3
  64. package/dist/{index-2zbZ2URx.js → index-BTfe4Sz-.js} +3 -3
  65. package/dist/{index-CspGahq0.js → index-BbwAoYtC.js} +4 -4
  66. package/dist/{index-Waz6-pQr.js → index-BcUA-oDy.js} +4 -4
  67. package/dist/{index-CTP0QoCT.js → index-BfICcXrk.js} +3 -3
  68. package/dist/{index-DflXNluH.js → index-By24n0PI.js} +2 -2
  69. package/dist/{index-C5OyIHCq.js → index-CMyNL_Kk.js} +2 -2
  70. package/dist/{index-BloHDADq.js → index-CNMUrFys.js} +35281 -47311
  71. package/dist/{index-BMM6rvML.js → index-CTkBexi5.js} +2 -2
  72. package/dist/{index-Bhhwuj39.js → index-CUoOFhRH.js} +2 -2
  73. package/dist/{index-RkXYGPSf.js → index-CZvosKer.js} +4 -4
  74. package/dist/{index-uGXjK3xv.js → index-CzkoqdQK.js} +3 -3
  75. package/dist/{index-CsyAu658.js → index-D3QW807K.js} +2 -2
  76. package/dist/{index-IooWxH41.js → index-D6Gkj-V6.js} +2 -2
  77. package/dist/{index-Dew1ymFy.js → index-DYUdQPwj.js} +2 -2
  78. package/dist/{index-jhW25X__.js → index-DeoE1f9Z.js} +2 -2
  79. package/dist/{index-BXtPl6pH.js → index-F67JSDx7.js} +1 -1
  80. package/dist/{index-BAcf97X_.js → index-rpW-_Gh4.js} +2 -2
  81. package/dist/index.js +5979 -4545
  82. package/dist/legacy/components/CompanySearchAutocomplete/CompanySearchAutocomplete.d.ts +2 -14
  83. package/dist/legacy/components/Layouts/AbyssFamilyBanner/AbyssFamilyBanner.component.d.ts +3 -7
  84. package/dist/legacy/utils/file.utils.d.ts +1 -2
  85. package/dist/legacy.js +107 -107
  86. package/dist/theme/tokens/choice-swatches.d.ts +12 -0
  87. package/dist/theme/tokens/choice-swatches.spec.d.ts +1 -0
  88. package/dist/theme/tokens/index.d.ts +1 -0
  89. package/dist/theme/tokens/semantic.d.ts +4 -1
  90. package/dist/translations/en.d.ts +34 -0
  91. package/dist/translations/fr.d.ts +34 -0
  92. package/dist/utils/family.d.ts +12 -0
  93. package/dist/utils/file.utils.d.ts +10 -0
  94. package/dist/utils/file.utils.spec.d.ts +1 -0
  95. package/dist/utils/index.d.ts +2 -0
  96. package/package.json +1 -1
  97. package/dist/design-theme-BztWe75w.js +0 -15490
@@ -1,18 +1,6 @@
1
1
  import { default as React } from 'react';
2
- export type PappersCompany = {
3
- siren: string;
4
- nom_entreprise: string;
5
- date_creation: string;
6
- forme_juridique?: string;
7
- domaine_activite?: string;
8
- siege?: {
9
- adresse?: string;
10
- code_postal?: string;
11
- ville?: string;
12
- departement?: string;
13
- pays?: string;
14
- };
15
- };
2
+ import { PappersCompany } from '../../../components/inputs/CompanySearchField/pappers-company';
3
+ export type { PappersCompany };
16
4
  export interface CompanySearchAutocompleteProps {
17
5
  value: string;
18
6
  onInputChange: (value: string) => void;
@@ -1,12 +1,8 @@
1
1
  import { default as React } from 'react';
2
+ import { CurrentFamilyInfo, CurrentFamilyStatus } from '../../../../utils/family';
3
+ export type { CurrentFamilyInfo };
2
4
  export type FamilyBannerVariant = 'footer' | 'settings';
3
- export type FamilyBannerStatus = 'none' | 'pending' | 'active' | 'owner';
4
- export type CurrentFamilyInfo = {
5
- id: string;
6
- name: string;
7
- role: string;
8
- status: FamilyBannerStatus;
9
- };
5
+ export type FamilyBannerStatus = CurrentFamilyStatus;
10
6
  type Props = {
11
7
  currentFamily?: CurrentFamilyInfo | null;
12
8
  abyssUrl?: string;
@@ -1,3 +1,2 @@
1
- import { SvgIconComponent } from '@mui/icons-material';
2
- export declare const getFileIcon: (mimeType: string | null) => SvgIconComponent;
1
+ export { getFileIcon } from '../../utils/file.utils';
3
2
  export declare const getFileColor: (mimeType: string | null) => string;
package/dist/legacy.js CHANGED
@@ -1,9 +1,9 @@
1
- import { aE as e, aF as o, R as t, M as r, Q as i, aO as b, Z as n, aI as A, $ as l, a6 as C, aB as S, ac as p, ad as u, aQ as y, b0 as c, a$ as d, aJ as g, aC as T, aY as P, aZ as I, aV as h, ay as _, Y as L, ae as E, a_ as m, aW as O, af as R, bk as f, _ as D, bn as k, bt as B, ap as M, aH as F, al as v, ak as N, aD as W, aG as U, aX as x, V as w, a5 as H, a4 as Q, bM as G, bo as V, bP as j, ag as Y, ai as X, ah as z, aa as K, a9 as Z, a8 as J, bW as q, at as $, aS as aa, aR as sa, aw as ea, ax as oa, ab as ta, aj as ra, bQ as ia, bT as ba, bN as na, bO as Aa, aT as la, aL as Ca, X as Sa, ar as pa, aq as ua, av as ya, a0 as ca, aU as da, au as ga, O as Ta, bS as Pa, bL as Ia, bl as ha, bm as _a, K as La, W as Ea, an as ma, ao as Oa, a1 as Ra, am as fa, aM as Da, bv as ka, bu as Ba, bq as Ma, b8 as Fa, b9 as va, ba as Na, bd as Wa, bi as Ua, bg as xa, b7 as wa, b6 as Ha, b3 as Qa, bb as Ga, b2 as Va, b5 as ja, bj as Ya, bc as Xa, b4 as za, bh as Ka, U as Za, S as Ja, aK as qa, aN as $a, aP as as, a2 as ss, a3 as es, bH as os, b1 as ts, br as rs, by as is, aA as bs, bA as ns, bJ as As, bD as ls, bB as Cs, bC as Ss, bf as ps, be as us, bV as ys, bU as cs, as as ds, bR as gs, bw as Ts, bE as Ps, bs as Is, bp as hs, bK as _s, bx as Ls, bG as Es, bI as ms, bz as Os, bF as Rs, az as fs, a7 as Ds, bX as ks } from "./index-BloHDADq.js";
2
- import { A as Ms, h as Fs, c as vs, C as Ns, D as Ws, R as Us, V as xs, x as ws, X as Hs, K as Qs, d as Gs, L as Vs, M as js, I as Ys, J as Xs, E as zs, G as Ks, f as Zs, O as Js, P as qs, Z as $s, _ as ae, T as se, U as ee, $ as oe, a0 as te, B as re, s as ie, q as be, F as ne, H as Ae, v as le, y as Ce, r as Se, e as pe, z as ue, Q as ye, S as ce, Y as de, N as ge, W as Te, u as Pe, b as Ie, a as he, w as _e } from "./AbyssCookieConsentProvider-B7-F6osY.js";
3
- import { C as Ee } from "./CookieConsentSettings.component-DxQL4ULz.js";
4
- import { be as Oe, M as Re, bd as fe, bc as De, bf as ke, J as Be, K as Me, F as Fe, I as ve, P as Ne, a1 as We, bh as Ue, W as xe, a2 as we, bi as He, bj as Qe, H as Ge, a3 as Ve, G as je, a4 as Ye, bg as Xe } from "./design-theme-BztWe75w.js";
1
+ import { aE as e, aF as o, R as t, M as r, Q as i, aO as b, Z as n, aI as A, $ as l, a6 as C, aB as S, ac as p, ad as u, aQ as y, b0 as c, a$ as d, aJ as g, aC as T, aY as P, aZ as I, aV as h, ay as _, Y as L, ae as m, a_ as E, aW as O, af as R, bk as D, _ as f, bn as k, bt as B, ap as M, aH as v, al as F, ak as N, aD as x, aG as U, aX as W, V as w, a5 as Q, a4 as H, bM as G, bo as V, bP as Y, ag as j, ai as z, ah as X, aa as K, a9 as Z, a8 as q, bV as J, at as $, aS as aa, aR as sa, aw as ea, ax as oa, ab as ta, aj as ra, bQ as ia, bT as ba, bN as na, bO as Aa, aT as la, aL as Ca, X as Sa, ar as pa, aq as ua, av as ya, a0 as ca, aU as da, au as ga, O as Ta, bS as Pa, bL as Ia, bl as ha, bm as _a, K as La, W as ma, an as Ea, ao as Oa, a1 as Ra, am as Da, aM as fa, bv as ka, bu as Ba, bq as Ma, b8 as va, b9 as Fa, ba as Na, bd as xa, bi as Ua, bg as Wa, b7 as wa, b6 as Qa, b3 as Ha, bb as Ga, b2 as Va, b5 as Ya, bj as ja, bc as za, b4 as Xa, bh as Ka, U as Za, S as qa, aK as Ja, aN as $a, aP as as, a2 as ss, a3 as es, bH as os, b1 as ts, br as rs, by as is, aA as bs, bA as ns, bJ as As, bD as ls, bB as Cs, bC as Ss, bf as ps, be as us, bU as ys, as as cs, bR as ds, bw as gs, bE as Ts, bs as Ps, bp as Is, bK as hs, bx as _s, bG as Ls, bI as ms, bz as Es, bF as Os, az as Rs, a7 as Ds, bW as fs } from "./index-CNMUrFys.js";
2
+ import { A as Bs, h as Ms, c as vs, C as Fs, D as Ns, R as xs, V as Us, p as Ws, T as ws, H as Qs, d as Hs, I as Gs, J as Vs, F as Ys, G as js, y as zs, B as Xs, f as Ks, L as Zs, M as qs, W as Js, X as $s, P as ae, Q as se, Y as ee, Z as oe, x as te, n as re, m as ie, z as be, E as ne, o as Ae, q as le, r as Ce, e as Se, v as pe, N as ue, O as ye, U as ce, K as de, S as ge, u as Te, b as Pe, a as Ie, w as he } from "./AbyssCookieConsentProvider-CeDdkoPq.js";
3
+ import { C as Le } from "./CookieConsentSettings.component-tJE0g-SS.js";
4
+ import { bw as Ee, ab as Oe, bv as Re, bu as De, bx as fe, a9 as ke, aa as Be, a3 as Me, a4 as ve, a7 as Fe, al as Ne, bz as xe, a6 as Ue, am as We, bA as we, bB as Qe, ap as He, a8 as Ge, an as Ve, a5 as Ye, ao as je, by as ze } from "./design-theme-D3DQFMu-.js";
5
5
  export {
6
- Oe as ABYSS_SERVICE_CONFIG,
6
+ Ee as ABYSS_SERVICE_CONFIG,
7
7
  e as ABYSS_SIDEBAR_WIDTH,
8
8
  o as ABYSS_SIDEBAR_WIDTH_COLLAPSED,
9
9
  t as AVATAR_BASE_SX,
@@ -14,7 +14,7 @@ export {
14
14
  A as AbyssBillingPlan,
15
15
  l as AbyssCashFlowChart,
16
16
  C as AbyssCommandPalette,
17
- Ms as AbyssCookieConsentProvider,
17
+ Bs as AbyssCookieConsentProvider,
18
18
  S as AbyssDashboardLayout,
19
19
  p as AbyssDatePicker,
20
20
  u as AbyssDateTimePicker,
@@ -28,46 +28,46 @@ export {
28
28
  h as AbyssLayoutNotifications,
29
29
  _ as AbyssLayoutProvider,
30
30
  L as AbyssLineChart,
31
- Re as AbyssLoadingScreen,
32
- E as AbyssMarkdownEditor,
33
- m as AbyssMenuItem,
34
- Fs as AbyssModal,
31
+ Oe as AbyssLoadingScreen,
32
+ m as AbyssMarkdownEditor,
33
+ E as AbyssMenuItem,
34
+ Ms as AbyssModal,
35
35
  O as AbyssNotifications,
36
36
  R as AbyssNumberField,
37
- f as AbyssPendingInvitations,
38
- D as AbyssPieChart,
37
+ D as AbyssPendingInvitations,
38
+ f as AbyssPieChart,
39
39
  k as AbyssQuotaGauge,
40
40
  B as AbyssQuotaOffer,
41
41
  M as AbyssScopeSwitcher,
42
- F as AbyssSearchBar,
43
- v as AbyssSelectOrganization,
42
+ v as AbyssSearchBar,
43
+ F as AbyssSelectOrganization,
44
44
  N as AbyssSelectProject,
45
- fe as AbyssServiceChip,
45
+ Re as AbyssServiceChip,
46
46
  De as AbyssServiceSelect,
47
- ke as AbyssServiceSingleSelect,
48
- W as AbyssSidebar,
49
- Be as AbyssTable,
47
+ fe as AbyssServiceSingleSelect,
48
+ x as AbyssSidebar,
49
+ ke as AbyssTable,
50
50
  U as AbyssThemeToggle,
51
- x as AbyssToast,
51
+ W as AbyssToast,
52
52
  w as AccountTransactionsRow,
53
- H as ApplicationSentinelTypeChip,
54
- Q as ApplicationWebhookTypeChip,
53
+ Q as ApplicationSentinelTypeChip,
54
+ H as ApplicationWebhookTypeChip,
55
55
  G as BILLING_ACCOUNT_STATUS_COLORS,
56
56
  V as BUBBLE_MAX_WIDTH,
57
57
  vs as COOKIE_NAME,
58
- j as CREDIT_TRANSACTION_TYPE_COLORS,
59
- Y as CloudImport,
60
- X as CloudImportFile,
61
- z as CloudImportFolder,
58
+ Y as CREDIT_TRANSACTION_TYPE_COLORS,
59
+ j as CloudImport,
60
+ z as CloudImportFile,
61
+ X as CloudImportFolder,
62
62
  K as ColorPalette,
63
63
  Z as ColorPicker,
64
- J as CompanySearchAutocomplete,
65
- Me as ConfirmModal,
66
- q as ConfirmModalContextProvider,
64
+ q as CompanySearchAutocomplete,
65
+ Be as ConfirmModal,
66
+ J as ConfirmModalContextProvider,
67
67
  $ as ContextSelector,
68
- Ns as CookieConsentBanner,
69
- Ee as CookieConsentSettings,
70
- Ws as DEFAULT_PRIVACY_HREF,
68
+ Fs as CookieConsentBanner,
69
+ Le as CookieConsentSettings,
70
+ Ns as DEFAULT_PRIVACY_HREF,
71
71
  aa as DRAWER_WIDTH_COLLAPSED,
72
72
  sa as DRAWER_WIDTH_EXPANDED,
73
73
  ea as DashboardLayout,
@@ -75,7 +75,7 @@ export {
75
75
  ta as DatePeriodPicker,
76
76
  ra as DropZone,
77
77
  ia as EUR_TRANSACTION_TYPE_COLORS,
78
- Fe as ErrorInfoBox,
78
+ Me as ErrorInfoBox,
79
79
  ba as GROUP_COLORS,
80
80
  na as INVOICE_STATUS_COLORS,
81
81
  Aa as INVOICE_TYPE_COLORS,
@@ -92,120 +92,120 @@ export {
92
92
  Ta as OrganizationAvatar,
93
93
  Pa as PAGE_ICONS,
94
94
  Ia as PLAN_TIER_COLORS,
95
- Ne as PasswordInput,
95
+ Fe as PasswordInput,
96
96
  ha as PdfEditor,
97
97
  _a as PdfOperationType,
98
98
  La as ProjectAvatar,
99
- Ea as ProjectCard,
100
- ma as ProjectCategoryBadge,
99
+ ma as ProjectCard,
100
+ Ea as ProjectCategoryBadge,
101
101
  Oa as ProjectLinkSelector,
102
102
  Ra as ProjectStatusChip,
103
- fa as ProjectTagChip,
104
- Da as QRCodeModal,
103
+ Da as ProjectTagChip,
104
+ fa as QRCodeModal,
105
105
  ka as QUOTA_SERVICE_META,
106
- We as QuotaOfferState,
106
+ Ne as QuotaOfferState,
107
107
  Ba as QuotaReachedDialog,
108
108
  Ma as QuotaSegmentKind,
109
- Us as ReconcileAction,
110
- Ue as SuccessInfoBox,
111
- Fa as SupportActionButtons,
112
- va as SupportActivityLog,
109
+ xs as ReconcileAction,
110
+ xe as SuccessInfoBox,
111
+ va as SupportActionButtons,
112
+ Fa as SupportActivityLog,
113
113
  Na as SupportAttachmentsPanel,
114
- Wa as SupportCategoryChip,
114
+ xa as SupportCategoryChip,
115
115
  Ua as SupportCategoryGroupCards,
116
- xa as SupportCategorySelect,
116
+ Wa as SupportCategorySelect,
117
117
  wa as SupportMessageInput,
118
- Ha as SupportMessageThread,
119
- Qa as SupportPriorityChip,
118
+ Qa as SupportMessageThread,
119
+ Ha as SupportPriorityChip,
120
120
  Ga as SupportSidebar,
121
121
  Va as SupportStatusBadge,
122
- ja as SupportTicketCreateForm,
123
- Ya as SupportTicketCreateStepper,
124
- Xa as SupportTicketDetail,
125
- za as SupportTicketList,
122
+ Ya as SupportTicketCreateForm,
123
+ ja as SupportTicketCreateStepper,
124
+ za as SupportTicketDetail,
125
+ Xa as SupportTicketList,
126
126
  Ka as SupportTopBar,
127
127
  Za as UserAvatar,
128
- Ja as UserAvatarList,
129
- qa as UserSettings,
128
+ qa as UserAvatarList,
129
+ Ja as UserSettings,
130
130
  $a as UserSettingsModal,
131
- xs as VALIDITY_DAYS,
132
- xe as WarnInfoBox,
131
+ Us as VALIDITY_DAYS,
132
+ Ue as WarnInfoBox,
133
133
  as as WaterParticles,
134
134
  ss as WebhookResponseCodeChip,
135
135
  es as WebhookTypeChip,
136
- ws as amber,
136
+ Ws as amber,
137
137
  os as bioluminescentPulse,
138
- Hs as brand,
138
+ ws as brand,
139
139
  ts as buildAbyssFamilyMenuSection,
140
140
  rs as buildQuotaAxis,
141
141
  is as buildQuotaServiceChipSx,
142
142
  Qs as chipColors,
143
- Gs as clearCookie,
144
- Vs as colorPool,
145
- js as colorPoolExtended,
143
+ Hs as clearCookie,
144
+ Gs as colorPool,
145
+ Vs as colorPoolExtended,
146
146
  Ys as colors,
147
147
  bs as createAbyssLayoutStore,
148
148
  ns as createAbyssTheme,
149
- Xs as cyan,
149
+ js as cyan,
150
150
  zs as darkCustom,
151
- Ks as darkPalette,
152
- we as deriveQuotaOfferState,
153
- He as duration,
151
+ Xs as darkPalette,
152
+ We as deriveQuotaOfferState,
153
+ we as duration,
154
154
  Qe as easing,
155
155
  As as fadeIn,
156
- Zs as flattenTranslations,
156
+ Ks as flattenTranslations,
157
157
  ls as fontFamily,
158
158
  Cs as fontSize,
159
159
  Ss as fontWeight,
160
160
  ps as getCategoryConfig,
161
161
  us as getCategoryGroup,
162
162
  ys as getFileColor,
163
- cs as getFileIcon,
164
- ds as getLanguageFlag,
165
- Js as getPoolColor,
163
+ He as getFileIcon,
164
+ cs as getLanguageFlag,
165
+ Zs as getPoolColor,
166
166
  qs as getPoolColorExtended,
167
- gs as getProjectColor,
168
- Ts as getQuotaServiceColor,
167
+ ds as getProjectColor,
168
+ gs as getQuotaServiceColor,
169
169
  Ge as getServiceConfig,
170
- $s as glassDark,
171
- ae as glassLight,
172
- se as glow,
173
- ee as glowCyan,
174
- oe as gradientsDark,
175
- te as gradientsLight,
176
- re as green,
177
- Ps as iconSize,
178
- ie as indigo,
179
- be as legacyTokens,
180
- ne as lightCustom,
181
- Ae as lightPalette,
182
- Is as markerRatio,
183
- le as neutral,
170
+ Js as glassDark,
171
+ $s as glassLight,
172
+ ae as glow,
173
+ se as glowCyan,
174
+ ee as gradientsDark,
175
+ oe as gradientsLight,
176
+ te as green,
177
+ Ts as iconSize,
178
+ re as indigo,
179
+ ie as legacyTokens,
180
+ be as lightCustom,
181
+ ne as lightPalette,
182
+ Ps as markerRatio,
183
+ Ae as neutral,
184
184
  Ve as offersAction,
185
- hs as placeBubble,
186
- _s as pulseGlow,
187
- Ce as purple,
188
- je as radius,
189
- Se as readCookie,
190
- pe as reconcile,
191
- ue as red,
192
- Ls as renderQuotaServiceIcon,
193
- ye as shadow,
194
- ce as shadowLight,
195
- Es as shimmer,
196
- Ye as shouldSuggestModule,
185
+ Is as placeBubble,
186
+ hs as pulseGlow,
187
+ le as purple,
188
+ Ye as radius,
189
+ Ce as readCookie,
190
+ Se as reconcile,
191
+ pe as red,
192
+ _s as renderQuotaServiceIcon,
193
+ ue as shadow,
194
+ ye as shadowLight,
195
+ Ls as shimmer,
196
+ je as shouldSuggestModule,
197
197
  ms as slideInUp,
198
- de as social,
199
- ge as tagColorPool,
200
- Te as textShadow,
201
- Os as theme,
202
- Xe as transition,
203
- Rs as typographyVariants,
204
- Pe as useAbyssCookieConsent,
205
- fs as useAbyssLayoutStore,
198
+ ce as social,
199
+ de as tagColorPool,
200
+ ge as textShadow,
201
+ Es as theme,
202
+ ze as transition,
203
+ Os as typographyVariants,
204
+ Te as useAbyssCookieConsent,
205
+ Rs as useAbyssLayoutStore,
206
206
  Ds as useCommandPaletteHotkey,
207
- ks as useConfirm,
208
- Ie as useCookieConsent,
209
- he as useOptionalAbyssCookieConsent,
210
- _e as writeCookie
207
+ fs as useConfirm,
208
+ Pe as useCookieConsent,
209
+ Ie as useOptionalAbyssCookieConsent,
210
+ he as writeCookie
211
211
  };
@@ -0,0 +1,12 @@
1
+ import { Oklch } from './oklch';
2
+ /** Lightness and chroma shared by every choice swatch: only the hue tells them apart. */
3
+ export declare const CHOICE_SWATCH_TONE: Omit<Oklch, 'h'>;
4
+ /** Hues of the choice swatches, around the wheel from the brand hue. */
5
+ export declare const CHOICE_SWATCH_HUES: readonly [266, 296, 326, 356, 26, 56, 86, 116, 146, 176, 206, 236];
6
+ /**
7
+ * The twelve choice swatches, as lowercase `#rrggbb`: `CHOICE_SWATCH_TONE` at each of
8
+ * `CHOICE_SWATCH_HUES`, converted by `oklchToHex`. Written out rather than computed: hosts store
9
+ * the picked value, so it must never drift with a change of the conversion (`choice-swatches.spec.ts`
10
+ * checks each value against its source).
11
+ */
12
+ export declare const CHOICE_SWATCHES: readonly string[];
@@ -0,0 +1 @@
1
+ export {};
@@ -2,3 +2,4 @@ export * from './oklch';
2
2
  export * from './primitives';
3
3
  export * from './semantic';
4
4
  export * from './domain';
5
+ export * from './choice-swatches';
@@ -1,7 +1,10 @@
1
1
  import { Oklch } from './oklch';
2
2
  import { ThemeMode } from './primitives';
3
- export declare const SEMANTIC_TOKENS: readonly ["bg.canvas", "bg.sidebar", "bg.surface", "bg.raised", "bg.hover", "border.subtle", "border.strong", "border.control", "text.primary", "text.secondary", "text.muted", "accent", "accent.text", "accent.on", "focus.ring", "brand", "brand.gradientFrom", "brand.gradientTo", "status.success", "status.warning", "status.danger", "status.info", "status.highlight", "status.neutral", "status.success.soft", "status.warning.soft", "status.danger.soft", "status.info.soft", "status.highlight.soft", "status.neutral.soft", "overlay.scrim", "paper", "paper.on"];
3
+ export declare const SEMANTIC_TOKENS: readonly ["bg.canvas", "bg.sidebar", "bg.surface", "bg.raised", "bg.hover", "border.subtle", "border.strong", "border.control", "text.primary", "text.secondary", "text.muted", "accent", "accent.text", "accent.on", "focus.ring", "brand", "brand.gradientFrom", "brand.gradientTo", "status.success", "status.warning", "status.danger", "status.info", "status.highlight", "status.neutral", "status.success.soft", "status.warning.soft", "status.danger.soft", "status.info.soft", "status.highlight.soft", "status.neutral.soft", "overlay.scrim", "paper", "paper.on", "data.series.1", "data.series.2", "data.series.3", "data.series.4", "data.series.5", "data.series.6"];
4
4
  export type SemanticToken = (typeof SEMANTIC_TOKENS)[number];
5
+ /** The data series colors, in the order a chart hands them to its series. */
6
+ export declare const DATA_SERIES_TOKENS: readonly ["data.series.1", "data.series.2", "data.series.3", "data.series.4", "data.series.5", "data.series.6"];
7
+ export type DataSeriesToken = (typeof DATA_SERIES_TOKENS)[number];
5
8
  export declare const semanticTokens: Record<ThemeMode, Record<SemanticToken, Oklch>>;
6
9
  /** Every semantic token of a mode, converted to sRGB hexadecimal ('#rrggbb' or '#rrggbbaa'). */
7
10
  export declare function resolveTokens(mode: ThemeMode): Record<SemanticToken, string>;
@@ -1596,6 +1596,24 @@ declare const _default: {
1596
1596
  hide: string;
1597
1597
  copied: string;
1598
1598
  'copy-failed': string;
1599
+ 'load-failed': string;
1600
+ };
1601
+ 'entity-image-field': {
1602
+ uploading: string;
1603
+ };
1604
+ 'user-picker': {
1605
+ loading: string;
1606
+ clear: string;
1607
+ open: string;
1608
+ close: string;
1609
+ };
1610
+ 'company-search-field': {
1611
+ label: string;
1612
+ placeholder: string;
1613
+ loading: string;
1614
+ error: string;
1615
+ created: string;
1616
+ clear: string;
1599
1617
  };
1600
1618
  'context-selector': {
1601
1619
  personal: string;
@@ -1711,6 +1729,22 @@ declare const _default: {
1711
1729
  };
1712
1730
  };
1713
1731
  data: {
1732
+ pagination: {
1733
+ previous: string;
1734
+ next: string;
1735
+ page: string;
1736
+ position: string;
1737
+ };
1738
+ 'line-chart': {
1739
+ x: string;
1740
+ 'no-value': string;
1741
+ empty: string;
1742
+ };
1743
+ 'bar-chart': {
1744
+ category: string;
1745
+ 'no-value': string;
1746
+ empty: string;
1747
+ };
1714
1748
  'data-table': {
1715
1749
  'select-all': string;
1716
1750
  'select-row': string;
@@ -1596,6 +1596,24 @@ declare const _default: {
1596
1596
  hide: string;
1597
1597
  copied: string;
1598
1598
  'copy-failed': string;
1599
+ 'load-failed': string;
1600
+ };
1601
+ 'entity-image-field': {
1602
+ uploading: string;
1603
+ };
1604
+ 'user-picker': {
1605
+ loading: string;
1606
+ clear: string;
1607
+ open: string;
1608
+ close: string;
1609
+ };
1610
+ 'company-search-field': {
1611
+ label: string;
1612
+ placeholder: string;
1613
+ loading: string;
1614
+ error: string;
1615
+ created: string;
1616
+ clear: string;
1599
1617
  };
1600
1618
  'context-selector': {
1601
1619
  personal: string;
@@ -1711,6 +1729,22 @@ declare const _default: {
1711
1729
  };
1712
1730
  };
1713
1731
  data: {
1732
+ pagination: {
1733
+ previous: string;
1734
+ next: string;
1735
+ page: string;
1736
+ position: string;
1737
+ };
1738
+ 'line-chart': {
1739
+ x: string;
1740
+ 'no-value': string;
1741
+ empty: string;
1742
+ };
1743
+ 'bar-chart': {
1744
+ category: string;
1745
+ 'no-value': string;
1746
+ empty: string;
1747
+ };
1714
1748
  'data-table': {
1715
1749
  'select-all': string;
1716
1750
  'select-row': string;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Where the user stands toward their family organization: `none` without one, `pending` while the
3
+ * invitation waits for an answer, `active` as a member, `owner` as its creator.
4
+ */
5
+ export type CurrentFamilyStatus = 'none' | 'pending' | 'active' | 'owner';
6
+ /** The family organization of the current user, as the family entry points read it. */
7
+ export type CurrentFamilyInfo = {
8
+ id: string;
9
+ name: string;
10
+ role: string;
11
+ status: CurrentFamilyStatus;
12
+ };
@@ -0,0 +1,10 @@
1
+ import { SvgIconComponent } from '@mui/icons-material';
2
+ /** The icon of a file by its MIME type; a generic file icon when the type is absent or unknown. */
3
+ export declare const getFileIcon: (mimeType: string | null) => SvgIconComponent;
4
+ /**
5
+ * A CSS colour reading the design tokens: `var(--abyss-data-series-n)` or `var(--abyss-text-muted)`.
6
+ * It follows the theme through the `--abyss-*` variables, so the host renders under
7
+ * `AbyssThemeProvider` or `DesignCssVariables`; being a variable, it is not a color MUI's `alpha()`
8
+ * can read: tint it with `color-mix()`.
9
+ */
10
+ export declare const getFileColor: (mimeType: string | null) => string;
@@ -0,0 +1 @@
1
+ export {};
@@ -13,3 +13,5 @@ export * from './cookie-consent-reconcile.utils';
13
13
  export * from './cookie-consent.types';
14
14
  export * from './privacy-link.constant';
15
15
  export * from './quota-offer-state.utils';
16
+ export * from './family';
17
+ export * from './file.utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "9.1.1",
3
+ "version": "9.3.0",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",