@abyss-project/commons-front-core 13.0.0 → 13.1.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 (39) hide show
  1. package/catalog/pages/ToolIcon.tsx +48 -48
  2. package/dist/{AbyssCookieConsentProvider-D5jeL5KA.js → AbyssCookieConsentProvider-DJTKl58k.js} +142 -138
  3. package/dist/{CookieConsentSettings.component-C69wpa-v.js → CookieConsentSettings.component-ZF6umBSH.js} +1 -1
  4. package/dist/{Tabs-CwVEV4SO.js → Tabs-CYy30PTc.js} +308 -308
  5. package/dist/assets/logo/index.d.ts +1 -0
  6. package/dist/components/layers/ProductTour/product-tour-geometry.d.ts +6 -3
  7. package/dist/cookie-consent.js +2 -2
  8. package/dist/{design-theme-DkGGYH91.js → design-theme-jAV6pBoh.js} +1476 -1471
  9. package/dist/{editors-DkiY6BfJ.js → editors-Cs01hAfK.js} +26 -26
  10. package/dist/editors.js +1 -1
  11. package/dist/hooks/use-rich-intl.hook.d.ts +12 -0
  12. package/dist/hooks/use-service-tour.hook.d.ts +6 -5
  13. package/dist/{index-DVsMyd7m.js → index-B4BTrYji.js} +2 -2
  14. package/dist/{index-B52OKB4p.js → index-BB97MmlB.js} +3 -3
  15. package/dist/{index-BoCgQirm.js → index-BG_7wul8.js} +2 -2
  16. package/dist/{index-CgIjHnfl.js → index-BJ-WRVfA.js} +2 -2
  17. package/dist/{index-DW0z3W_H.js → index-BLWFMNK1.js} +1 -1
  18. package/dist/{index-PHSTFO70.js → index-BOB-FVdo.js} +3 -3
  19. package/dist/{index-CXGI5k75.js → index-BQ-RHsS9.js} +4 -4
  20. package/dist/{index-Cl1BSx17.js → index-BSpED9Jn.js} +2 -2
  21. package/dist/{index-CtMx42h6.js → index-BYymsRFa.js} +2 -2
  22. package/dist/{index-DMiPquK5.js → index-Bw9dFzxv.js} +2 -2
  23. package/dist/{index-orVFXDIv.js → index-BxEgyF6L.js} +3 -3
  24. package/dist/{index-Bh7buNbj.js → index-C64fovtn.js} +2 -2
  25. package/dist/{index-Cg6Mv7QT.js → index-C918Bygt.js} +2 -2
  26. package/dist/{index-DSjH42Mo.js → index-CHGLrOHZ.js} +3 -3
  27. package/dist/{index-CwdirjZn.js → index-CQIcz4k-.js} +2 -2
  28. package/dist/{index-CvRSR1eE.js → index-CQhfq-e2.js} +2 -2
  29. package/dist/{index-DmCRAN1O.js → index-CWzTvLyx.js} +2 -2
  30. package/dist/{index-D1YeCKtd.js → index-Ce0hJGR7.js} +4 -4
  31. package/dist/{index-2l12Iu8k.js → index-CgdrkQAf.js} +2 -2
  32. package/dist/{index-BacMl_If.js → index-DfzHovEF.js} +2 -2
  33. package/dist/{index-KH3KmoUw.js → index-YnJVcsc6.js} +4 -4
  34. package/dist/index.js +2923 -2881
  35. package/dist/legacy.js +622 -617
  36. package/dist/theme/tokens/domain.d.ts +1 -0
  37. package/dist/translations/en.d.ts +2 -0
  38. package/dist/translations/fr.d.ts +2 -0
  39. package/package.json +3 -3
@@ -1,48 +1,48 @@
1
- import { styled } from '@mui/material/styles';
2
- import { ToolIcon } from '../../src/components/meaning/ToolIcon/ToolIcon';
3
- import type { ToolIconSize } from '../../src/components/meaning/ToolIcon/ToolIcon';
4
- import { px } from '../../src/theme/components/shared';
5
- import { ToolKind } from '../../src/theme/tokens/domain';
6
- import { Example, Showcase } from '../frame';
7
-
8
- const SIZES: ToolIconSize[] = [16, 20, 24, 32, 44];
9
-
10
- const Tile = styled('figure')(({ theme }) => ({
11
- margin: 0,
12
- display: 'flex',
13
- flexDirection: 'column',
14
- alignItems: 'center',
15
- // Captions on one baseline whatever the icon size.
16
- justifyContent: 'flex-end',
17
- alignSelf: 'stretch',
18
- gap: px(theme.design.space[2]),
19
- width: px(theme.design.space[10] + theme.design.space[6]),
20
- fontSize: px(theme.design.typeScale.small),
21
- color: theme.design.tokens['text.secondary'],
22
- '& > figcaption': { fontFamily: theme.design.fonts.mono },
23
- }));
24
-
25
- export const ToolIconPage = () => (
26
- <Showcase
27
- family="Sens"
28
- name="ToolIcon"
29
- description="Icône de chaque produit de l'écosystème, en dégradé de marque : un outil se reconnaît à son icône, pas à une couleur."
30
- >
31
- <Example title="Les vingt et un produits, 32 px" framed>
32
- {Object.values(ToolKind).map((tool) => (
33
- <Tile key={tool}>
34
- <ToolIcon tool={tool} size={32} label={tool} />
35
- <figcaption>{tool}</figcaption>
36
- </Tile>
37
- ))}
38
- </Example>
39
- <Example title="Les cinq tailles" framed>
40
- {SIZES.map((size) => (
41
- <Tile key={size}>
42
- <ToolIcon tool={ToolKind.Cloud} size={size} label={`Cloud ${size}`} />
43
- <figcaption>{size}</figcaption>
44
- </Tile>
45
- ))}
46
- </Example>
47
- </Showcase>
48
- );
1
+ import { styled } from '@mui/material/styles';
2
+ import { ToolIcon } from '../../src/components/meaning/ToolIcon/ToolIcon';
3
+ import type { ToolIconSize } from '../../src/components/meaning/ToolIcon/ToolIcon';
4
+ import { px } from '../../src/theme/components/shared';
5
+ import { ToolKind } from '../../src/theme/tokens/domain';
6
+ import { Example, Showcase } from '../frame';
7
+
8
+ const SIZES: ToolIconSize[] = [16, 20, 24, 32, 44];
9
+
10
+ const Tile = styled('figure')(({ theme }) => ({
11
+ margin: 0,
12
+ display: 'flex',
13
+ flexDirection: 'column',
14
+ alignItems: 'center',
15
+ // Captions on one baseline whatever the icon size.
16
+ justifyContent: 'flex-end',
17
+ alignSelf: 'stretch',
18
+ gap: px(theme.design.space[2]),
19
+ width: px(theme.design.space[10] + theme.design.space[6]),
20
+ fontSize: px(theme.design.typeScale.small),
21
+ color: theme.design.tokens['text.secondary'],
22
+ '& > figcaption': { fontFamily: theme.design.fonts.mono },
23
+ }));
24
+
25
+ export const ToolIconPage = () => (
26
+ <Showcase
27
+ family="Sens"
28
+ name="ToolIcon"
29
+ description="Icône de chaque produit de l'écosystème, en dégradé de marque : un outil se reconnaît à son icône, pas à une couleur."
30
+ >
31
+ <Example title="Les vingt et un produits, 32 px" framed>
32
+ {Object.values(ToolKind).map((tool) => (
33
+ <Tile key={tool}>
34
+ <ToolIcon tool={tool} size={32} label={tool} />
35
+ <figcaption>{tool}</figcaption>
36
+ </Tile>
37
+ ))}
38
+ </Example>
39
+ <Example title="Les cinq tailles" framed>
40
+ {SIZES.map((size) => (
41
+ <Tile key={size}>
42
+ <ToolIcon tool={ToolKind.Cloud} size={size} label={`Cloud ${size}`} />
43
+ <figcaption>{size}</figcaption>
44
+ </Tile>
45
+ ))}
46
+ </Example>
47
+ </Showcase>
48
+ );