@abyss-project/commons-front-core 13.0.0 → 13.0.1

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.
@@ -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
+ );
package/dist/index.js CHANGED
@@ -8652,13 +8652,13 @@ const W8 = (e) => {
8652
8652
  }, lf = "Quota reached for ", df = " on the current plan", Ks = new RegExp(
8653
8653
  `^${lf}([A-Z0-9_]+)${df}$`
8654
8654
  ), cf = (e) => {
8655
- var a, l;
8655
+ var s, a;
8656
8656
  if (typeof e != "object" || e === null)
8657
8657
  return !1;
8658
- const t = e, n = (l = (a = t.response) == null ? void 0 : a.data) == null ? void 0 : l.error;
8659
- return (t.code ?? (n == null ? void 0 : n.code)) !== he.accessNotAllowed ? !1 : [t.message, n == null ? void 0 : n.message].some(
8660
- (d) => typeof d == "string" && Ks.test(d)
8661
- );
8658
+ const t = e, n = (a = (s = t.response) == null ? void 0 : s.data) == null ? void 0 : a.error;
8659
+ return [t.code, n == null ? void 0 : n.code].includes(he.accessNotAllowed) ? [t.message, n == null ? void 0 : n.message].some(
8660
+ (l) => typeof l == "string" && Ks.test(l)
8661
+ ) : !1;
8662
8662
  }, uf = (e) => {
8663
8663
  var s, a;
8664
8664
  if (!cf(e))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abyss-project/commons-front-core",
3
- "version": "13.0.0",
3
+ "version": "13.0.1",
4
4
  "description": "Front Core package of AbyssProject",
5
5
  "main": "dist/index.js",
6
6
  "module": "./dist/index.js",