@alveole/theme 2.0.0-alpha.3 → 2.0.0-alpha.30
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.
- package/dist/constants/Color.d.ts +1 -1
- package/dist/constants/Color.js +1 -1
- package/dist/constants/FocusProps.d.ts +2 -5
- package/dist/constants/FocusProps.d.ts.map +1 -1
- package/dist/constants/FocusProps.js +2 -3
- package/dist/constants/LinkProps.d.ts +3 -7
- package/dist/constants/LinkProps.d.ts.map +1 -1
- package/dist/constants/LinkProps.js +4 -5
- package/dist/constants/Palette.d.ts +41 -8
- package/dist/constants/Palette.d.ts.map +1 -1
- package/dist/constants/Palette.js +27 -4
- package/dist/constants/marques.d.ts +11 -0
- package/dist/constants/marques.d.ts.map +1 -0
- package/dist/constants/marques.js +10 -0
- package/dist/default.css +2 -2
- package/dist/helpers/alphaColor.d.ts +3 -2
- package/dist/helpers/alphaColor.d.ts.map +1 -1
- package/dist/helpers/alphaColor.js +2 -2
- package/dist/helpers/contrastColor.d.ts.map +1 -1
- package/dist/helpers/contrastColor.js +13 -0
- package/dist/helpers/useThemeBuilder.d.ts +2 -2
- package/dist/helpers/useThemeBuilder.d.ts.map +1 -1
- package/dist/helpers/useThemeBuilder.js +2 -2
- package/dist/type/Theme.d.ts +2 -2
- package/dist/type/Theme.d.ts.map +1 -1
- package/package.json +10 -5
package/dist/constants/Color.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
+
import { Marques } from './marques';
|
|
1
2
|
/**
|
|
2
3
|
* `ring` pose la bague hors de l'element. `inset` la rentre a l'interieur, pour ce qui est a
|
|
3
4
|
* ras d'un bord ou rogne par un parent : cellules de tableau, items de barre laterale.
|
|
4
5
|
*/
|
|
5
6
|
export type FocusRingVariant = 'ring' | 'inset';
|
|
6
|
-
type FocusRingProps = {
|
|
7
|
-
dataSet: Record<string, string>;
|
|
8
|
-
};
|
|
9
7
|
/**
|
|
10
8
|
* Les props par lesquelles un composant demande la bague de focus du kit.
|
|
11
9
|
*
|
|
@@ -17,6 +15,5 @@ type FocusRingProps = {
|
|
|
17
15
|
* iOS (cf. UnsupportedCSSProperties), et un anneau natif demanderait une vue dessinee en
|
|
18
16
|
* absolu.
|
|
19
17
|
*/
|
|
20
|
-
export declare const focusRingProps: (variante?: FocusRingVariant) =>
|
|
21
|
-
export {};
|
|
18
|
+
export declare const focusRingProps: (variante?: FocusRingVariant) => Marques;
|
|
22
19
|
//# sourceMappingURL=FocusProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FocusProps.d.ts","sourceRoot":"","sources":["../../src/constants/FocusProps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FocusProps.d.ts","sourceRoot":"","sources":["../../src/constants/FocusProps.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAW,MAAM,WAAW,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEhD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,cAAc,GAAI,WAAU,gBAAyB,KAAG,OACxB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FOCUS_DATA_SET_KEY } from './Focus';
|
|
2
|
+
import { marques } from './marques';
|
|
2
3
|
/**
|
|
3
4
|
* Les props par lesquelles un composant demande la bague de focus du kit.
|
|
4
5
|
*
|
|
@@ -10,6 +11,4 @@ import { FOCUS_DATA_SET_KEY } from './Focus';
|
|
|
10
11
|
* iOS (cf. UnsupportedCSSProperties), et un anneau natif demanderait une vue dessinee en
|
|
11
12
|
* absolu.
|
|
12
13
|
*/
|
|
13
|
-
export const focusRingProps = (variante = 'ring') => ({
|
|
14
|
-
dataSet: { [FOCUS_DATA_SET_KEY]: variante },
|
|
15
|
-
});
|
|
14
|
+
export const focusRingProps = (variante = 'ring') => marques({ [FOCUS_DATA_SET_KEY]: variante });
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Les props d'un lien de texte du kit : la marque de lien et la bague de focus
|
|
3
|
-
*
|
|
2
|
+
* Les props d'un lien de texte du kit : la marque de lien et la bague de focus, posees
|
|
3
|
+
* ensemble, sans quoi l'etalement de l'une ecraserait le `dataSet` de l'autre.
|
|
4
4
|
*/
|
|
5
|
-
export declare const linkProps: () =>
|
|
6
|
-
dataSet: {
|
|
7
|
-
alveoleLink: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
5
|
+
export declare const linkProps: () => import("./marques").Marques;
|
|
10
6
|
//# sourceMappingURL=LinkProps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LinkProps.d.ts","sourceRoot":"","sources":["../../src/constants/LinkProps.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"LinkProps.d.ts","sourceRoot":"","sources":["../../src/constants/LinkProps.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,SAAS,mCAA8E,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { focusRingProps } from './FocusProps';
|
|
2
2
|
import { LINK_DATA_SET_KEY } from './Link';
|
|
3
|
+
import { marques } from './marques';
|
|
3
4
|
/**
|
|
4
|
-
* Les props d'un lien de texte du kit : la marque de lien et la bague de focus
|
|
5
|
-
*
|
|
5
|
+
* Les props d'un lien de texte du kit : la marque de lien et la bague de focus, posees
|
|
6
|
+
* ensemble, sans quoi l'etalement de l'une ecraserait le `dataSet` de l'autre.
|
|
6
7
|
*/
|
|
7
|
-
export const linkProps = () => ({
|
|
8
|
-
dataSet: { ...focusRingProps().dataSet, [LINK_DATA_SET_KEY]: 'text' },
|
|
9
|
-
});
|
|
8
|
+
export const linkProps = () => marques({ ...focusRingProps().dataSet, [LINK_DATA_SET_KEY]: 'text' });
|
|
@@ -8,18 +8,25 @@ export declare const CustomPalette: {
|
|
|
8
8
|
};
|
|
9
9
|
readonly background: {
|
|
10
10
|
readonly 'alt-primary': "#F2F9FF";
|
|
11
|
-
|
|
11
|
+
/** Fond alternatif d'une zone qui se distingue du fond de page. */
|
|
12
|
+
readonly 'alt-grey': "#F7FAFB";
|
|
12
13
|
readonly 'action-low-primary': "#D2E8FE";
|
|
14
|
+
/** Fond contrasté d'un élément posé sur le fond de page, comme un champ ou un tag. */
|
|
13
15
|
readonly 'contrast-grey': "#EFF1F6";
|
|
14
16
|
readonly 'contrast-success': "#B9FDD5";
|
|
15
17
|
readonly 'contrast-error': "#FDEAE8";
|
|
16
18
|
readonly 'contrast-info': "#E5F1FE";
|
|
17
19
|
readonly 'contrast-warning': "#FFEEE5";
|
|
20
|
+
/** Fond par défaut des pages et des surfaces. */
|
|
18
21
|
readonly 'default-grey': "#FFFFFF";
|
|
19
|
-
|
|
22
|
+
/** Fond d'une surface par défaut survolée. */
|
|
23
|
+
readonly 'default-grey-hover': "#EFF1F6";
|
|
24
|
+
/** Fond d'une surface par défaut pressée. */
|
|
20
25
|
readonly 'default-grey-active': "#E6EAF1";
|
|
21
26
|
readonly 'active-primary': "#002764";
|
|
27
|
+
/** Fond d'un élément désactivé. */
|
|
22
28
|
readonly 'disabled-grey': "#E6EAF1";
|
|
29
|
+
/** Fond d'une surface flottante, comme le contenu d'un popover. */
|
|
23
30
|
readonly 'active-inverted': "#FFFFFF";
|
|
24
31
|
readonly 'transparent-hover': "rgba(0, 0, 0, 0.04)";
|
|
25
32
|
readonly 'action-high-primary': "#002764";
|
|
@@ -32,15 +39,20 @@ export declare const CustomPalette: {
|
|
|
32
39
|
readonly 'open-primary': "#D2E8FE";
|
|
33
40
|
};
|
|
34
41
|
readonly border: {
|
|
42
|
+
/** Bordure par défaut des cartes, des séparateurs et des champs. */
|
|
35
43
|
readonly 'default-grey': "#DEE3EC";
|
|
44
|
+
/** Bordure contrastée d'un élément qui doit se détacher de son fond. */
|
|
36
45
|
readonly 'contrast-grey': "#8D97AC";
|
|
37
46
|
readonly 'default-primary': "#0264C7";
|
|
38
47
|
readonly 'action-high-primary': "#002764";
|
|
48
|
+
/** Bordure d'une action secondaire mise en avant. */
|
|
39
49
|
readonly 'action-high-grey': "#151617";
|
|
40
50
|
readonly 'active-primary': "#002764";
|
|
41
51
|
readonly 'open-primary': "#D2E8FE";
|
|
52
|
+
/** Bordure d'un élément désactivé. */
|
|
42
53
|
readonly 'disabled-grey': "#E6EAF1";
|
|
43
54
|
readonly 'plain-primary': "#002764";
|
|
55
|
+
/** Bordure pleine d'un élément neutre sélectionné ou actif. */
|
|
44
56
|
readonly 'plain-grey': "#373A3F";
|
|
45
57
|
readonly 'plain-success': "#1B7440";
|
|
46
58
|
readonly 'plain-error': "#C62416";
|
|
@@ -49,20 +61,28 @@ export declare const CustomPalette: {
|
|
|
49
61
|
readonly 'action-low-primary': "#B4D9FE";
|
|
50
62
|
};
|
|
51
63
|
readonly text: {
|
|
64
|
+
/** Texte des titres. */
|
|
52
65
|
readonly 'title-grey': "#151617";
|
|
53
66
|
readonly 'title-primary': "#002764";
|
|
67
|
+
/** Texte courant par défaut. */
|
|
54
68
|
readonly 'default-grey': "#373A3F";
|
|
69
|
+
/** Texte secondaire des mentions, aides et indications. */
|
|
55
70
|
readonly 'mention-grey': "#5F6571";
|
|
71
|
+
/** Texte des libellés de champs. */
|
|
56
72
|
readonly 'label-grey': "#151617";
|
|
57
73
|
readonly 'action-high-primary': "#012B53";
|
|
74
|
+
/** Texte d'une action secondaire mise en avant. */
|
|
58
75
|
readonly 'action-high-grey': "#151617";
|
|
59
76
|
readonly 'action-high-info': "#0264C7";
|
|
60
77
|
readonly 'action-high-warning': "#BC4401";
|
|
61
78
|
readonly 'action-high-error': "#C62416";
|
|
79
|
+
/** Texte posé sur un fond sombre ou coloré. */
|
|
62
80
|
readonly 'inverted-grey': "#FFFFFF";
|
|
63
81
|
readonly 'inverted-primary': "#F2F9FF";
|
|
64
82
|
readonly 'active-primary': "#002764";
|
|
83
|
+
/** Texte d'un élément neutre actif ou sélectionné. */
|
|
65
84
|
readonly 'active-grey': "#151617";
|
|
85
|
+
/** Texte d'un élément désactivé. */
|
|
66
86
|
readonly 'disabled-grey': "#8D97AC";
|
|
67
87
|
readonly 'default-success': "#1B7440";
|
|
68
88
|
readonly 'default-error': "#C62416";
|
|
@@ -285,7 +305,7 @@ export declare const CustomPalette: {
|
|
|
285
305
|
/** @deprecated Utiliser light.background['default-grey-active'] */
|
|
286
306
|
readonly 'default-active': "#EFF1F6";
|
|
287
307
|
/** @deprecated Utiliser light.background['alt-grey'] */
|
|
288
|
-
readonly 'alt-grey': "#
|
|
308
|
+
readonly 'alt-grey': "#F7FAFB";
|
|
289
309
|
/** @deprecated Utiliser light.background['active-inverted'] */
|
|
290
310
|
readonly inverse: "#012448";
|
|
291
311
|
/** @deprecated Utiliser light.background['action-high-primary'] */
|
|
@@ -293,7 +313,7 @@ export declare const CustomPalette: {
|
|
|
293
313
|
/** @deprecated Utiliser light.background['disabled-grey'] */
|
|
294
314
|
readonly 'disabled-grey': "#E6EAF1";
|
|
295
315
|
/** @deprecated Utiliser light.background['default-grey-hover'] */
|
|
296
|
-
readonly 'default-hover': "#
|
|
316
|
+
readonly 'default-hover': "#EFF1F6";
|
|
297
317
|
/** @deprecated Utiliser light.background['open-primary'] */
|
|
298
318
|
readonly 'open-bleu-captive': "#D2E8FE";
|
|
299
319
|
/** @deprecated Utiliser light.background['open-primary'] */
|
|
@@ -330,13 +350,13 @@ export declare const CustomPalette: {
|
|
|
330
350
|
/** @deprecated Utiliser light.background (transparent-hover) */
|
|
331
351
|
readonly secondary: {
|
|
332
352
|
readonly default: "transparent";
|
|
333
|
-
readonly hover: "#
|
|
353
|
+
readonly hover: "#EFF1F6";
|
|
334
354
|
readonly disabled: "transparent";
|
|
335
355
|
};
|
|
336
356
|
/** @deprecated Utiliser light.background (transparent-hover) */
|
|
337
357
|
readonly tertiary: {
|
|
338
358
|
readonly default: "transparent";
|
|
339
|
-
readonly hover: "#
|
|
359
|
+
readonly hover: "#EFF1F6";
|
|
340
360
|
readonly disabled: "transparent";
|
|
341
361
|
};
|
|
342
362
|
/** @deprecated Utiliser light.background['action-high-error'] et light.background['flat-error'] */
|
|
@@ -370,7 +390,7 @@ export declare const CustomPalette: {
|
|
|
370
390
|
readonly nav: {
|
|
371
391
|
readonly link: {
|
|
372
392
|
/** @deprecated Utiliser light.background['default-grey-hover'] */
|
|
373
|
-
readonly hover: "#
|
|
393
|
+
readonly hover: "#F7FAFB";
|
|
374
394
|
};
|
|
375
395
|
};
|
|
376
396
|
/** @deprecated Utiliser light.background et light.border pour le stepper */
|
|
@@ -389,13 +409,26 @@ export declare const CustomPalette: {
|
|
|
389
409
|
readonly focus: "#0A76F6";
|
|
390
410
|
};
|
|
391
411
|
};
|
|
412
|
+
export type ThemeColor = string & {
|
|
413
|
+
readonly __couleurDuTheme: true;
|
|
414
|
+
};
|
|
392
415
|
export type LeafStrings<T> = T extends string ? string : {
|
|
393
416
|
[K in keyof T]: LeafStrings<T[K]>;
|
|
394
417
|
};
|
|
418
|
+
export type LeafThemeColors<T> = T extends string ? ThemeColor : {
|
|
419
|
+
[K in keyof T]: LeafThemeColors<T[K]>;
|
|
420
|
+
};
|
|
395
421
|
export type LeafFlexible<T> = T extends string ? string : T extends number ? number | string : {
|
|
396
422
|
[K in keyof T]: LeafFlexible<T[K]>;
|
|
397
423
|
};
|
|
398
|
-
|
|
424
|
+
/** Palette telle qu'une app la fournit, en couleurs ecrites en dur. */
|
|
425
|
+
export type PaletteSource = LeafStrings<typeof CustomPalette>;
|
|
426
|
+
export type Palette = LeafThemeColors<typeof CustomPalette>;
|
|
427
|
+
/**
|
|
428
|
+
* Seul point ou une couleur ecrite en dur devient une couleur du theme. La marque n'existe qu'au
|
|
429
|
+
* typage : la surcharge la pose sans assertion, la palette rendue est celle recue.
|
|
430
|
+
*/
|
|
431
|
+
export declare function enCouleursDuTheme(palette: PaletteSource): Palette;
|
|
399
432
|
export type DeepPartial<T> = {
|
|
400
433
|
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
401
434
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Palette.d.ts","sourceRoot":"","sources":["../../src/constants/Palette.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;QAEtB,kDAAkD
|
|
1
|
+
{"version":3,"file":"Palette.d.ts","sourceRoot":"","sources":["../../src/constants/Palette.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;QAEtB,kDAAkD;;;;;;;;YAQhD,mEAAmE;;;YAGnE,sFAAsF;;;;;;YAMtF,iDAAiD;;YAEjD,8CAA8C;;YAE9C,6CAA6C;;;YAG7C,mCAAmC;;YAEnC,mEAAmE;;;;;;;;;;;;;YAanE,oEAAoE;;YAEpE,wEAAwE;;;;YAIxE,qDAAqD;;;;YAIrD,sCAAsC;;;YAGtC,+DAA+D;;;;;;;;;YAS/D,wBAAwB;;;YAGxB,gCAAgC;;YAEhC,2DAA2D;;YAE3D,oCAAoC;;;YAGpC,mDAAmD;;;;;YAKnD,+CAA+C;;;;YAI/C,sDAAsD;;YAEtD,oCAAoC;;;;;;;;;;;;;;;IAgBxC,0DAA0D;;;YAGtD,0DAA0D;;;;YAI1D,0DAA0D;;YAE1D,0DAA0D;;;;IAK9D,kHAAkH;;IAElH,iGAAiG;;IAEjG,gGAAgG;;IAEhG,uFAAuF;;IAEvF,6FAA6F;;IAE7F,6FAA6F;;IAE7F,sDAAsD;;IAGtD,iEAAiE;;QAE/D,sDAAsD;;QAEtD,oDAAoD;;QAEpD,sDAAsD;;QAEtD,uDAAuD;;QAEvD,6DAA6D;;QAE7D,6DAA6D;;QAE7D,0DAA0D;;QAE1D,oDAAoD;;QAEpD,oDAAoD;;QAEpD,0DAA0D;;QAE1D,0DAA0D;;QAE1D,yDAAyD;;QAEzD,uDAAuD;;QAEvD,sDAAsD;;QAEtD,0DAA0D;;QAG1D,yFAAyF;;YAEvF,uDAAuD;;YAEvD,uDAAuD;;YAEvD,uDAAuD;;YA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,MAAM,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAChE,CAAC"}
|
|
@@ -9,18 +9,25 @@ export const CustomPalette = {
|
|
|
9
9
|
},
|
|
10
10
|
background: {
|
|
11
11
|
'alt-primary': Colors['BleuCaptive']['975'],
|
|
12
|
+
/** Fond alternatif d'une zone qui se distingue du fond de page. */
|
|
12
13
|
'alt-grey': Colors['Neutre']['975'],
|
|
13
14
|
'action-low-primary': Colors['BleuCaptive']['925'],
|
|
15
|
+
/** Fond contrasté d'un élément posé sur le fond de page, comme un champ ou un tag. */
|
|
14
16
|
'contrast-grey': Colors['Neutre']['950'],
|
|
15
17
|
'contrast-success': Colors['VertSuccess']['950'],
|
|
16
18
|
'contrast-error': Colors['RougeErreur']['950'],
|
|
17
19
|
'contrast-info': Colors['BleuCaptive']['950'],
|
|
18
20
|
'contrast-warning': Colors['OrangeWarning']['950'],
|
|
21
|
+
/** Fond par défaut des pages et des surfaces. */
|
|
19
22
|
'default-grey': Colors['Neutre']['1000'],
|
|
20
|
-
'
|
|
23
|
+
/** Fond d'une surface par défaut survolée. */
|
|
24
|
+
'default-grey-hover': Colors['Neutre']['950'],
|
|
25
|
+
/** Fond d'une surface par défaut pressée. */
|
|
21
26
|
'default-grey-active': Colors['Neutre']['925'],
|
|
22
27
|
'active-primary': Colors['BleuCaptive']['sun-172'],
|
|
28
|
+
/** Fond d'un élément désactivé. */
|
|
23
29
|
'disabled-grey': Colors['Neutre']['925'],
|
|
30
|
+
/** Fond d'une surface flottante, comme le contenu d'un popover. */
|
|
24
31
|
'active-inverted': Colors['Neutre']['1000'],
|
|
25
32
|
'transparent-hover': 'rgba(0, 0, 0, 0.04)',
|
|
26
33
|
'action-high-primary': Colors['BleuCaptive']['sun-172'],
|
|
@@ -33,15 +40,20 @@ export const CustomPalette = {
|
|
|
33
40
|
'open-primary': Colors['BleuCaptive']['925'],
|
|
34
41
|
},
|
|
35
42
|
border: {
|
|
43
|
+
/** Bordure par défaut des cartes, des séparateurs et des champs. */
|
|
36
44
|
'default-grey': Colors['Neutre']['900'],
|
|
45
|
+
/** Bordure contrastée d'un élément qui doit se détacher de son fond. */
|
|
37
46
|
'contrast-grey': Colors['Neutre']['625'],
|
|
38
47
|
'default-primary': Colors['BleuCaptive']['425'],
|
|
39
48
|
'action-high-primary': Colors['BleuCaptive']['sun-172'],
|
|
49
|
+
/** Bordure d'une action secondaire mise en avant. */
|
|
40
50
|
'action-high-grey': Colors['Neutre']['50'],
|
|
41
51
|
'active-primary': Colors['BleuCaptive']['sun-172'],
|
|
42
52
|
'open-primary': Colors['BleuCaptive']['925'],
|
|
53
|
+
/** Bordure d'un élément désactivé. */
|
|
43
54
|
'disabled-grey': Colors['Neutre']['925'],
|
|
44
55
|
'plain-primary': Colors['BleuCaptive']['sun-172'],
|
|
56
|
+
/** Bordure pleine d'un élément neutre sélectionné ou actif. */
|
|
45
57
|
'plain-grey': Colors['Neutre']['200'],
|
|
46
58
|
'plain-success': Colors['VertSuccess']['425'],
|
|
47
59
|
'plain-error': Colors['RougeErreur']['425'],
|
|
@@ -50,20 +62,28 @@ export const CustomPalette = {
|
|
|
50
62
|
'action-low-primary': Colors['BleuCaptive']['850'],
|
|
51
63
|
},
|
|
52
64
|
text: {
|
|
65
|
+
/** Texte des titres. */
|
|
53
66
|
'title-grey': Colors['Neutre']['50'],
|
|
54
67
|
'title-primary': Colors['BleuCaptive']['sun-172'],
|
|
68
|
+
/** Texte courant par défaut. */
|
|
55
69
|
'default-grey': Colors['Neutre']['200'],
|
|
70
|
+
/** Texte secondaire des mentions, aides et indications. */
|
|
56
71
|
'mention-grey': Colors['Neutre']['425'],
|
|
72
|
+
/** Texte des libellés de champs. */
|
|
57
73
|
'label-grey': Colors['Neutre']['50'],
|
|
58
74
|
'action-high-primary': Colors['BleuCaptive']['125'],
|
|
75
|
+
/** Texte d'une action secondaire mise en avant. */
|
|
59
76
|
'action-high-grey': Colors['Neutre']['50'],
|
|
60
77
|
'action-high-info': Colors['BleuCaptive']['425'],
|
|
61
78
|
'action-high-warning': Colors['OrangeWarning']['425'],
|
|
62
79
|
'action-high-error': Colors['RougeErreur']['425'],
|
|
80
|
+
/** Texte posé sur un fond sombre ou coloré. */
|
|
63
81
|
'inverted-grey': Colors['Neutre']['1000'],
|
|
64
82
|
'inverted-primary': Colors['BleuCaptive']['975'],
|
|
65
83
|
'active-primary': Colors['BleuCaptive']['sun-172'],
|
|
84
|
+
/** Texte d'un élément neutre actif ou sélectionné. */
|
|
66
85
|
'active-grey': Colors['Neutre']['50'],
|
|
86
|
+
/** Texte d'un élément désactivé. */
|
|
67
87
|
'disabled-grey': Colors['Neutre']['625'],
|
|
68
88
|
'default-success': Colors['VertSuccess']['425'],
|
|
69
89
|
'default-error': Colors['RougeErreur']['425'],
|
|
@@ -294,7 +314,7 @@ export const CustomPalette = {
|
|
|
294
314
|
/** @deprecated Utiliser light.background['disabled-grey'] */
|
|
295
315
|
'disabled-grey': Colors['Neutre']['925'],
|
|
296
316
|
/** @deprecated Utiliser light.background['default-grey-hover'] */
|
|
297
|
-
'default-hover': Colors['Neutre']['
|
|
317
|
+
'default-hover': Colors['Neutre']['950'],
|
|
298
318
|
/** @deprecated Utiliser light.background['open-primary'] */
|
|
299
319
|
'open-bleu-captive': Colors['BleuCaptive']['925'],
|
|
300
320
|
/** @deprecated Utiliser light.background['open-primary'] */
|
|
@@ -331,13 +351,13 @@ export const CustomPalette = {
|
|
|
331
351
|
/** @deprecated Utiliser light.background (transparent-hover) */
|
|
332
352
|
secondary: {
|
|
333
353
|
default: 'transparent',
|
|
334
|
-
hover: Colors['Neutre']['
|
|
354
|
+
hover: Colors['Neutre']['950'],
|
|
335
355
|
disabled: 'transparent',
|
|
336
356
|
},
|
|
337
357
|
/** @deprecated Utiliser light.background (transparent-hover) */
|
|
338
358
|
tertiary: {
|
|
339
359
|
default: 'transparent',
|
|
340
|
-
hover: Colors['Neutre']['
|
|
360
|
+
hover: Colors['Neutre']['950'],
|
|
341
361
|
disabled: 'transparent',
|
|
342
362
|
},
|
|
343
363
|
/** @deprecated Utiliser light.background['action-high-error'] et light.background['flat-error'] */
|
|
@@ -390,3 +410,6 @@ export const CustomPalette = {
|
|
|
390
410
|
focus: Colors['Focus']['525'],
|
|
391
411
|
},
|
|
392
412
|
};
|
|
413
|
+
export function enCouleursDuTheme(palette) {
|
|
414
|
+
return palette;
|
|
415
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type Marques = {
|
|
2
|
+
dataSet: Record<string, string>;
|
|
3
|
+
[attribut: string]: string | Record<string, string>;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Pose des marques `data-*` sous les deux formes qu'un composant du kit peut recevoir :
|
|
7
|
+
* `dataSet`, que react-native-web traduit en attributs, et l'attribut direct, seule forme
|
|
8
|
+
* que Tamagui v2 transmet au DOM.
|
|
9
|
+
*/
|
|
10
|
+
export declare const marques: (valeurs: Record<string, string>) => Marques;
|
|
11
|
+
//# sourceMappingURL=marques.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marques.d.ts","sourceRoot":"","sources":["../../src/constants/marques.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC;AAE/G;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,KAAG,OAGxD,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { dataSetAttribute } from './dataSetAttribute';
|
|
2
|
+
/**
|
|
3
|
+
* Pose des marques `data-*` sous les deux formes qu'un composant du kit peut recevoir :
|
|
4
|
+
* `dataSet`, que react-native-web traduit en attributs, et l'attribut direct, seule forme
|
|
5
|
+
* que Tamagui v2 transmet au DOM.
|
|
6
|
+
*/
|
|
7
|
+
export const marques = (valeurs) => ({
|
|
8
|
+
dataSet: valeurs,
|
|
9
|
+
...Object.fromEntries(Object.entries(valeurs).map(([cle, valeur]) => [dataSetAttribute(cle), valeur])),
|
|
10
|
+
});
|
package/dist/default.css
CHANGED
|
@@ -195,7 +195,7 @@
|
|
|
195
195
|
--color-Neutre-900: #DEE3EC;
|
|
196
196
|
--color-Neutre-925: #E6EAF1;
|
|
197
197
|
--color-Neutre-950: #EFF1F6;
|
|
198
|
-
--color-Neutre-975: #
|
|
198
|
+
--color-Neutre-975: #F7FAFB;
|
|
199
199
|
--color-Neutre-1000: #FFFFFF;
|
|
200
200
|
--color-BleuCaptive-75: #011E3A;
|
|
201
201
|
--color-BleuCaptive-100: #012448;
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
--background-contrast-info: var(--color-BleuCaptive-950);
|
|
425
425
|
--background-contrast-warning: var(--color-OrangeWarning-950);
|
|
426
426
|
--background-default-grey: var(--color-Neutre-1000);
|
|
427
|
-
--background-default-grey-hover: var(--color-Neutre-
|
|
427
|
+
--background-default-grey-hover: var(--color-Neutre-950);
|
|
428
428
|
--background-default-grey-active: var(--color-Neutre-925);
|
|
429
429
|
--background-active-primary: var(--color-BleuCaptive-sun-172);
|
|
430
430
|
--background-disabled-grey: var(--color-Neutre-925);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Color } from '../constants';
|
|
1
|
+
import { Color, ThemeColor } from '../constants';
|
|
2
2
|
type Between0And1 = number;
|
|
3
|
-
export declare
|
|
3
|
+
export declare function alpha(hexadecimalColor: ThemeColor, opacity: Between0And1): ThemeColor;
|
|
4
|
+
export declare function alpha(hexadecimalColor: Color, opacity: Between0And1): string;
|
|
4
5
|
export {};
|
|
5
6
|
//# sourceMappingURL=alphaColor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alphaColor.d.ts","sourceRoot":"","sources":["../../src/helpers/alphaColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"alphaColor.d.ts","sourceRoot":"","sources":["../../src/helpers/alphaColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAGjD,KAAK,YAAY,GAAG,MAAM,CAAC;AAG3B,wBAAgB,KAAK,CAAC,gBAAgB,EAAE,UAAU,EAAE,OAAO,EAAE,YAAY,GAAG,UAAU,CAAC;AACvF,wBAAgB,KAAK,CAAC,gBAAgB,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,GAAG,MAAM,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { hexToRgb } from './hexToRgb';
|
|
2
|
-
export
|
|
2
|
+
export function alpha(hexadecimalColor, opacity) {
|
|
3
3
|
if (hexadecimalColor.startsWith('var(')) {
|
|
4
4
|
return `color-mix(in srgb, ${hexadecimalColor} ${Math.round(opacity * 100)}%, transparent)`;
|
|
5
5
|
}
|
|
6
6
|
const [r, g, b] = hexToRgb(hexadecimalColor);
|
|
7
7
|
return `rgba(${r}, ${g}, ${b}, ${opacity})`;
|
|
8
|
-
}
|
|
8
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contrastColor.d.ts","sourceRoot":"","sources":["../../src/helpers/contrastColor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contrastColor.d.ts","sourceRoot":"","sources":["../../src/helpers/contrastColor.ts"],"names":[],"mappings":"AA2CA,4FAA4F;AAC5F,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,EAAE,SAAS,MAAM,KAAG,MAOjE,CAAC;AAKF;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,EAAE,MAAM,MAAM,EAAE,OAAO,MAAM,KAAG,MAkBlF,CAAC"}
|
|
@@ -17,8 +17,21 @@ const luminance = (canaux) => {
|
|
|
17
17
|
});
|
|
18
18
|
return 0.2126 * r + 0.7152 * v + 0.0722 * b;
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Signale en developpement les couleurs que le calcul ne sait pas lire. Sur le web, `useTheme()`
|
|
22
|
+
* rend des variables CSS : sans ce signal, le rapport vaut NaN et tout calcul qui en depend se
|
|
23
|
+
* trompe sans bruit. Hors de React Native, `__DEV__` n'existe pas et rien n'est signale.
|
|
24
|
+
*/
|
|
25
|
+
const signalerLesIllisibles = (couleurs) => {
|
|
26
|
+
if (typeof __DEV__ === 'undefined' || !__DEV__)
|
|
27
|
+
return;
|
|
28
|
+
couleurs
|
|
29
|
+
.filter(couleur => !EST_HEXADECIMAL.test(couleur))
|
|
30
|
+
.forEach(couleur => console.warn('Warning:', `contrastRatio ne sait pas lire ${couleur} : passez une couleur hexadécimale.`));
|
|
31
|
+
};
|
|
20
32
|
/** Le rapport de contraste entre deux couleurs, de 1 (identiques) à 21 (noir sur blanc). */
|
|
21
33
|
export const contrastRatio = (premiere, seconde) => {
|
|
34
|
+
signalerLesIllisibles([premiere, seconde]);
|
|
22
35
|
const a = luminance(versCanaux(premiere));
|
|
23
36
|
const b = luminance(versCanaux(seconde));
|
|
24
37
|
return (Math.max(a, b) + 0.05) / (Math.min(a, b) + 0.05);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Theme } from '../type';
|
|
2
|
-
import { DeepPartial,
|
|
2
|
+
import { DeepPartial, PaletteSource } from '../constants';
|
|
3
3
|
export type CustomBuilder = {
|
|
4
|
-
color?: DeepPartial<
|
|
4
|
+
color?: DeepPartial<PaletteSource>;
|
|
5
5
|
};
|
|
6
6
|
export declare function useThemeBuilder(params: CustomBuilder): Theme & {
|
|
7
7
|
isReady: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThemeBuilder.d.ts","sourceRoot":"","sources":["../../src/helpers/useThemeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKrC,OAAO,EAKL,WAAW,
|
|
1
|
+
{"version":3,"file":"useThemeBuilder.d.ts","sourceRoot":"","sources":["../../src/helpers/useThemeBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAKrC,OAAO,EAKL,WAAW,EAMX,aAAa,EAGd,MAAM,cAAc,CAAC;AAWtB,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC;CACpC,CAAC;AAEF,wBAAgB,eAAe,CAAC,MAAM,EAAE,aAAa,GAAG,KAAK,GAAG;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CA6EnF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useFonts } from 'expo-font';
|
|
2
2
|
import { useCallback, useMemo } from 'react';
|
|
3
3
|
import { Platform, useWindowDimensions } from 'react-native';
|
|
4
|
-
import { breakpointToVariant, Colors, CustomPalette, CustomTypography, Fonts, FontsMap, Grilles, Heights, Sizes, Spacings, } from '../constants';
|
|
4
|
+
import { breakpointToVariant, Colors, CustomPalette, CustomTypography, enCouleursDuTheme, Fonts, FontsMap, Grilles, Heights, Sizes, Spacings, } from '../constants';
|
|
5
5
|
import { controlSizesFor } from '../constants/Control';
|
|
6
6
|
import { pillSizeFor } from '../constants/Pill';
|
|
7
7
|
import { RadiusList } from '../constants/Radius';
|
|
@@ -43,7 +43,7 @@ export function useThemeBuilder(params) {
|
|
|
43
43
|
variant,
|
|
44
44
|
isVariant: useCallback(match => variant === match, [variant]),
|
|
45
45
|
// Colors
|
|
46
|
-
color: { _constants: Colors, _rawLight: rawMergedPalette.light, alpha, ...mergedPalette },
|
|
46
|
+
color: { _constants: Colors, _rawLight: rawMergedPalette.light, alpha, ...enCouleursDuTheme(mergedPalette) },
|
|
47
47
|
// Shadows
|
|
48
48
|
shadows: elevationStyle,
|
|
49
49
|
// Typographies
|
package/dist/type/Theme.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Colors, CustomTypography, Fonts, Grilles, Palette, Spacing, SpacingKey, Variant } from '../constants';
|
|
1
|
+
import type { Colors, CustomTypography, Fonts, Grilles, Palette, PaletteSource, Spacing, SpacingKey, Variant } from '../constants';
|
|
2
2
|
import type { ControlSize, ControlSizeKey } from '../constants/Control';
|
|
3
3
|
import type { PillSize, PillSizeKey } from '../constants/Pill';
|
|
4
4
|
import { Radius, RadiusKey } from '../constants/Radius';
|
|
@@ -25,7 +25,7 @@ export interface Theme {
|
|
|
25
25
|
/** @deprecated Utiliser la palette */
|
|
26
26
|
_constants: typeof Colors;
|
|
27
27
|
/** Palette light avec valeurs hex brutes, utilisée par injectVariableCSS */
|
|
28
|
-
_rawLight:
|
|
28
|
+
_rawLight: PaletteSource['light'];
|
|
29
29
|
} & Palette & {
|
|
30
30
|
alpha: typeof alpha;
|
|
31
31
|
};
|
package/dist/type/Theme.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../src/type/Theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"Theme.d.ts","sourceRoot":"","sources":["../../src/type/Theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EACN,gBAAgB,EAChB,KAAK,EACL,OAAO,EACP,OAAO,EACP,aAAa,EACb,OAAO,EACP,UAAU,EACV,OAAO,EACR,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,sBAAsB,CA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12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alveole/theme",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.30",
|
|
4
4
|
"description": "Shared theme tokens and utilities.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/captive-studio/alveole-js.git",
|
|
8
|
+
"directory": "packages/theme"
|
|
9
|
+
},
|
|
5
10
|
"main": "dist/index.js",
|
|
6
11
|
"types": "dist/index.d.ts",
|
|
7
12
|
"files": [
|
|
@@ -13,12 +18,12 @@
|
|
|
13
18
|
"devDependencies": {
|
|
14
19
|
"@alveole/eslint-config": "file:../eslint-config",
|
|
15
20
|
"esbuild": "0.28.2",
|
|
16
|
-
"eslint": "10.
|
|
17
|
-
"react": "19.
|
|
18
|
-
"react-native": "0.
|
|
21
|
+
"eslint": "10.14.0",
|
|
22
|
+
"react": "19.3.0",
|
|
23
|
+
"react-native": "0.88.1"
|
|
19
24
|
},
|
|
20
25
|
"peerDependencies": {
|
|
21
|
-
"@tamagui/core": "
|
|
26
|
+
"@tamagui/core": "^3.0.0",
|
|
22
27
|
"expo-font": "*",
|
|
23
28
|
"expo-system-ui": "*",
|
|
24
29
|
"react": "*",
|