@alveole/theme 1.10.0 → 2.0.0-alpha.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.
- package/README.md +15 -15
- package/dist/WebThemeStyles.web.d.ts.map +1 -1
- package/dist/WebThemeStyles.web.js +4 -6
- package/dist/constants/Color.d.ts +0 -116
- package/dist/constants/Color.d.ts.map +1 -1
- package/dist/constants/Color.js +0 -116
- package/dist/constants/Control.d.ts +105 -0
- package/dist/constants/Control.d.ts.map +1 -0
- package/dist/constants/Control.js +28 -0
- package/dist/constants/Elevation.d.ts +8 -8
- package/dist/constants/Elevation.d.ts.map +1 -1
- package/dist/constants/Focus.d.ts +72 -0
- package/dist/constants/Focus.d.ts.map +1 -0
- package/dist/constants/Focus.js +79 -0
- package/dist/constants/FocusProps.d.ts +22 -0
- package/dist/constants/FocusProps.d.ts.map +1 -0
- package/dist/constants/FocusProps.js +15 -0
- package/dist/constants/Font.d.ts +13 -8
- package/dist/constants/Font.d.ts.map +1 -1
- package/dist/constants/Font.js +27 -27
- package/dist/constants/Grille.d.ts +9 -1
- package/dist/constants/Grille.d.ts.map +1 -1
- package/dist/constants/Grille.js +9 -1
- package/dist/constants/Link.d.ts +8 -0
- package/dist/constants/Link.d.ts.map +1 -0
- package/dist/constants/Link.js +8 -0
- package/dist/constants/LinkProps.d.ts +10 -0
- package/dist/constants/LinkProps.d.ts.map +1 -0
- package/dist/constants/LinkProps.js +9 -0
- package/dist/constants/Palette.d.ts +2 -10
- package/dist/constants/Palette.d.ts.map +1 -1
- package/dist/constants/Palette.js +2 -10
- package/dist/constants/Pill.d.ts +41 -0
- package/dist/constants/Pill.d.ts.map +1 -0
- package/dist/constants/Pill.js +26 -0
- package/dist/constants/Radius.d.ts +1 -1
- package/dist/constants/Radius.d.ts.map +1 -1
- package/dist/constants/Spacing.d.ts +4 -4
- package/dist/constants/Spacing.d.ts.map +1 -1
- package/dist/constants/Spacing.js +4 -4
- package/dist/constants/Typography.d.ts +25 -1
- package/dist/constants/Typography.d.ts.map +1 -1
- package/dist/constants/Typography.js +53 -29
- package/dist/constants/dataSetAttribute.d.ts +6 -0
- package/dist/constants/dataSetAttribute.d.ts.map +1 -0
- package/dist/constants/dataSetAttribute.js +5 -0
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/index.js +4 -0
- package/dist/default.css +76 -176
- package/dist/helpers/alphaColor.d.ts.map +1 -1
- package/dist/helpers/alphaColor.js +2 -11
- package/dist/helpers/contrastColor.d.ts +12 -0
- package/dist/helpers/contrastColor.d.ts.map +1 -0
- package/dist/helpers/contrastColor.js +51 -0
- package/dist/helpers/cssVarPalette.d.ts +14 -0
- package/dist/helpers/cssVarPalette.d.ts.map +1 -0
- package/dist/helpers/cssVarPalette.js +9 -0
- package/dist/helpers/cssVarTypography.d.ts +12 -0
- package/dist/helpers/cssVarTypography.d.ts.map +1 -0
- package/dist/helpers/cssVarTypography.js +33 -0
- package/dist/helpers/darkenColor.d.ts.map +1 -1
- package/dist/helpers/darkenColor.js +5 -12
- package/dist/helpers/deepMerge.d.ts +12 -2
- package/dist/helpers/deepMerge.d.ts.map +1 -1
- package/dist/helpers/deepMerge.js +24 -14
- package/dist/helpers/elevationStyle.d.ts +1 -1
- package/dist/helpers/focusRingCSS.d.ts +15 -0
- package/dist/helpers/focusRingCSS.d.ts.map +1 -0
- package/dist/helpers/focusRingCSS.js +26 -0
- package/dist/helpers/hexToRgb.d.ts +6 -0
- package/dist/helpers/hexToRgb.d.ts.map +1 -0
- package/dist/helpers/hexToRgb.js +13 -0
- package/dist/helpers/injectVariableCSS.d.ts +14 -4
- package/dist/helpers/injectVariableCSS.d.ts.map +1 -1
- package/dist/helpers/injectVariableCSS.js +19 -42
- package/dist/helpers/isRecord.d.ts +3 -0
- package/dist/helpers/isRecord.d.ts.map +1 -0
- package/dist/helpers/isRecord.js +2 -0
- package/dist/helpers/linkCSS.d.ts +2 -0
- package/dist/helpers/linkCSS.d.ts.map +1 -0
- package/dist/helpers/linkCSS.js +2 -0
- package/dist/helpers/mapValues.d.ts +15 -0
- package/dist/helpers/mapValues.d.ts.map +1 -0
- package/dist/helpers/mapValues.js +11 -0
- package/dist/helpers/removeUnsupportedCSSProperties.d.ts.map +1 -1
- package/dist/helpers/removeUnsupportedCSSProperties.js +6 -10
- package/dist/helpers/typographyVariables.d.ts +22 -0
- package/dist/helpers/typographyVariables.d.ts.map +1 -0
- package/dist/helpers/typographyVariables.js +49 -0
- package/dist/helpers/useThemeBuilder.d.ts.map +1 -1
- package/dist/helpers/useThemeBuilder.js +10 -46
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/type/Theme.d.ts +4 -0
- package/dist/type/Theme.d.ts.map +1 -1
- package/package.json +12 -12
|
@@ -120,6 +120,12 @@ export declare const CustomTypography: {
|
|
|
120
120
|
readonly fontFamily: string;
|
|
121
121
|
readonly fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
122
122
|
};
|
|
123
|
+
/**
|
|
124
|
+
* @deprecated Utiliser `Bold`. `SemiBold` est un alias strict de `Bold` : les deux
|
|
125
|
+
* appliquent `fontStyle('Geist-Bold')`, qui charge `Geist_600SemiBold` et rend un
|
|
126
|
+
* `font-weight: 600`. Le nom laisse croire à une graisse intermédiaire qui n'existe
|
|
127
|
+
* pas dans la palette Geist du thème (300 / 400 / 500 / 600).
|
|
128
|
+
*/
|
|
123
129
|
readonly SemiBold: {
|
|
124
130
|
readonly fontSize: 12;
|
|
125
131
|
readonly lineHeight: 20;
|
|
@@ -143,6 +149,12 @@ export declare const CustomTypography: {
|
|
|
143
149
|
readonly fontFamily: string;
|
|
144
150
|
readonly fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
145
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* @deprecated Utiliser `Bold`. `SemiBold` est un alias strict de `Bold` : les deux
|
|
154
|
+
* appliquent `fontStyle('Geist-Bold')`, qui charge `Geist_600SemiBold` et rend un
|
|
155
|
+
* `font-weight: 600`. Le nom laisse croire à une graisse intermédiaire qui n'existe
|
|
156
|
+
* pas dans la palette Geist du thème (300 / 400 / 500 / 600).
|
|
157
|
+
*/
|
|
146
158
|
readonly SemiBold: {
|
|
147
159
|
readonly fontSize: 14;
|
|
148
160
|
readonly lineHeight: 20;
|
|
@@ -181,6 +193,12 @@ export declare const CustomTypography: {
|
|
|
181
193
|
readonly fontFamily: string;
|
|
182
194
|
readonly fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
183
195
|
};
|
|
196
|
+
/**
|
|
197
|
+
* @deprecated Utiliser `Bold`. `SemiBold` est un alias strict de `Bold` : les deux
|
|
198
|
+
* appliquent `fontStyle('Geist-Bold')`, qui charge `Geist_600SemiBold` et rend un
|
|
199
|
+
* `font-weight: 600`. Le nom laisse croire à une graisse intermédiaire qui n'existe
|
|
200
|
+
* pas dans la palette Geist du thème (300 / 400 / 500 / 600).
|
|
201
|
+
*/
|
|
184
202
|
readonly SemiBold: {
|
|
185
203
|
readonly fontSize: 16;
|
|
186
204
|
readonly lineHeight: 24;
|
|
@@ -211,7 +229,13 @@ export declare const CustomTypography: {
|
|
|
211
229
|
readonly fontFamily: string;
|
|
212
230
|
readonly fontWeight?: import("react-native").TextStyle["fontWeight"];
|
|
213
231
|
};
|
|
214
|
-
|
|
232
|
+
/**
|
|
233
|
+
* @deprecated Utiliser `Bold`. `SemiBold` est un alias strict de `Bold` : les deux
|
|
234
|
+
* appliquent `fontStyle('Geist-Bold')`, qui charge `Geist_600SemiBold` et rend un
|
|
235
|
+
* `font-weight: 600`. Le nom laisse croire à une graisse intermédiaire qui n'existe
|
|
236
|
+
* pas dans la palette Geist du thème (300 / 400 / 500 / 600).
|
|
237
|
+
*/
|
|
238
|
+
readonly Bold: {
|
|
215
239
|
readonly fontSize: 18;
|
|
216
240
|
readonly lineHeight: 28;
|
|
217
241
|
readonly letterSpacing: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/constants/Typography.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,SAAyF,CAAC;AAE/G,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkC3B,8FAA8F;;QAE5F,uBAAuB;;;;;;;;QAOvB,uBAAuB;;;;;;;;QAOvB,uBAAuB;;;;;;;;QAOvB,uBAAuB;;;;;;;;QAOvB,uBAAuB;;;;;;;;QAOvB,uBAAuB
|
|
1
|
+
{"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../src/constants/Typography.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,QAAQ,SAAyF,CAAC;AAE/G,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkC3B,8FAA8F;;QAE5F,uBAAuB;;;;;;;;QAOvB,uBAAuB;;;;;;;;QAOvB,uBAAuB;;;;;;;;QAOvB,uBAAuB;;;;;;;;QAOvB,uBAAuB;;;;;;;;QAOvB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAqCrB;;;;;eAKG;;;;;;;;;;;;;;;;;;;;;;;;YAqBH;;;;;eAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAkCH;;;;;eAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2BH;;;;;eAKG;;;;;;;;;;CASC,CAAC"}
|
|
@@ -5,31 +5,31 @@ export const isMobile = Platform.OS !== 'web' || userAgent.includes('iPhone') ||
|
|
|
5
5
|
export const CustomTypography = {
|
|
6
6
|
'Titres alternatifs': {
|
|
7
7
|
XS: {
|
|
8
|
-
...fontStyle('
|
|
8
|
+
...fontStyle('Geist-Bold'),
|
|
9
9
|
fontSize: 48,
|
|
10
10
|
lineHeight: 56,
|
|
11
11
|
letterSpacing: 0,
|
|
12
12
|
},
|
|
13
13
|
SM: {
|
|
14
|
-
...fontStyle('
|
|
14
|
+
...fontStyle('Geist-Bold'),
|
|
15
15
|
fontSize: 56,
|
|
16
16
|
lineHeight: 64,
|
|
17
17
|
letterSpacing: 0,
|
|
18
18
|
},
|
|
19
19
|
MD: {
|
|
20
|
-
...fontStyle('
|
|
20
|
+
...fontStyle('Geist-Bold'),
|
|
21
21
|
fontSize: 64,
|
|
22
22
|
lineHeight: 72,
|
|
23
23
|
letterSpacing: 0,
|
|
24
24
|
},
|
|
25
25
|
LG: {
|
|
26
|
-
...fontStyle('
|
|
26
|
+
...fontStyle('Geist-Bold'),
|
|
27
27
|
fontSize: 72,
|
|
28
28
|
lineHeight: 80,
|
|
29
29
|
letterSpacing: 0,
|
|
30
30
|
},
|
|
31
31
|
XL: {
|
|
32
|
-
...fontStyle('
|
|
32
|
+
...fontStyle('Geist-Bold'),
|
|
33
33
|
fontSize: 80,
|
|
34
34
|
lineHeight: 88,
|
|
35
35
|
letterSpacing: 0,
|
|
@@ -39,42 +39,42 @@ export const CustomTypography = {
|
|
|
39
39
|
Titres: {
|
|
40
40
|
/** Font size: 18/20 */
|
|
41
41
|
'H6 - XXS': {
|
|
42
|
-
...fontStyle('
|
|
42
|
+
...fontStyle('Geist-Bold'),
|
|
43
43
|
fontSize: !isMobile ? 20 : 18,
|
|
44
44
|
lineHeight: !isMobile ? 28 : 24,
|
|
45
45
|
letterSpacing: 0,
|
|
46
46
|
},
|
|
47
47
|
/** Font size: 20/22 */
|
|
48
48
|
'H5 - XS': {
|
|
49
|
-
...fontStyle('
|
|
49
|
+
...fontStyle('Geist-Bold'),
|
|
50
50
|
fontSize: !isMobile ? 22 : 20,
|
|
51
51
|
lineHeight: 28,
|
|
52
52
|
letterSpacing: 0,
|
|
53
53
|
},
|
|
54
54
|
/** Font size: 22/24 */
|
|
55
55
|
'H4 - SM': {
|
|
56
|
-
...fontStyle('
|
|
56
|
+
...fontStyle('Geist-Bold'),
|
|
57
57
|
fontSize: !isMobile ? 24 : 22,
|
|
58
58
|
lineHeight: !isMobile ? 32 : 28,
|
|
59
59
|
letterSpacing: 0,
|
|
60
60
|
},
|
|
61
61
|
/** Font size: 24/28 */
|
|
62
62
|
'H3 - MD': {
|
|
63
|
-
...fontStyle('
|
|
63
|
+
...fontStyle('Geist-Bold'),
|
|
64
64
|
fontSize: !isMobile ? 28 : 24,
|
|
65
65
|
lineHeight: !isMobile ? 36 : 32,
|
|
66
66
|
letterSpacing: 0,
|
|
67
67
|
},
|
|
68
68
|
/** Font size: 28/32 */
|
|
69
69
|
'H2 - LG': {
|
|
70
|
-
...fontStyle('
|
|
70
|
+
...fontStyle('Geist-Bold'),
|
|
71
71
|
fontSize: !isMobile ? 32 : 28,
|
|
72
72
|
lineHeight: !isMobile ? 36 : 32,
|
|
73
73
|
letterSpacing: 0,
|
|
74
74
|
},
|
|
75
75
|
/** Font size: 40/48 */
|
|
76
76
|
'H1 - XL': {
|
|
77
|
-
...fontStyle('
|
|
77
|
+
...fontStyle('Geist-Bold'),
|
|
78
78
|
fontSize: !isMobile ? 40 : 32,
|
|
79
79
|
lineHeight: !isMobile ? 48 : 40,
|
|
80
80
|
letterSpacing: 0,
|
|
@@ -83,33 +83,39 @@ export const CustomTypography = {
|
|
|
83
83
|
'Corps de texte': {
|
|
84
84
|
XS: {
|
|
85
85
|
Regular: {
|
|
86
|
-
...fontStyle('
|
|
86
|
+
...fontStyle('Geist-Regular'),
|
|
87
87
|
fontSize: 12,
|
|
88
88
|
lineHeight: 20,
|
|
89
89
|
letterSpacing: 0,
|
|
90
90
|
},
|
|
91
91
|
Bold: {
|
|
92
|
-
...fontStyle('
|
|
92
|
+
...fontStyle('Geist-Bold'),
|
|
93
93
|
fontSize: 12,
|
|
94
94
|
lineHeight: 20,
|
|
95
95
|
letterSpacing: 0,
|
|
96
96
|
},
|
|
97
97
|
Caps: {
|
|
98
|
-
...fontStyle('
|
|
98
|
+
...fontStyle('Geist-Regular'),
|
|
99
99
|
fontSize: 12,
|
|
100
100
|
lineHeight: 20,
|
|
101
101
|
letterSpacing: 0,
|
|
102
102
|
textTransform: 'uppercase',
|
|
103
103
|
},
|
|
104
104
|
CapsBold: {
|
|
105
|
-
...fontStyle('
|
|
105
|
+
...fontStyle('Geist-Bold'),
|
|
106
106
|
fontSize: 12,
|
|
107
107
|
lineHeight: 20,
|
|
108
108
|
letterSpacing: 0,
|
|
109
109
|
textTransform: 'uppercase',
|
|
110
110
|
},
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated Utiliser `Bold`. `SemiBold` est un alias strict de `Bold` : les deux
|
|
113
|
+
* appliquent `fontStyle('Geist-Bold')`, qui charge `Geist_600SemiBold` et rend un
|
|
114
|
+
* `font-weight: 600`. Le nom laisse croire à une graisse intermédiaire qui n'existe
|
|
115
|
+
* pas dans la palette Geist du thème (300 / 400 / 500 / 600).
|
|
116
|
+
*/
|
|
111
117
|
SemiBold: {
|
|
112
|
-
...fontStyle('
|
|
118
|
+
...fontStyle('Geist-Bold'),
|
|
113
119
|
fontSize: 12,
|
|
114
120
|
lineHeight: 20,
|
|
115
121
|
letterSpacing: 0,
|
|
@@ -117,31 +123,37 @@ export const CustomTypography = {
|
|
|
117
123
|
},
|
|
118
124
|
SM: {
|
|
119
125
|
Regular: {
|
|
120
|
-
...fontStyle('
|
|
126
|
+
...fontStyle('Geist-Regular'),
|
|
121
127
|
fontSize: 14,
|
|
122
128
|
lineHeight: 20,
|
|
123
129
|
letterSpacing: 0,
|
|
124
130
|
},
|
|
125
131
|
Medium: {
|
|
126
|
-
...fontStyle('
|
|
132
|
+
...fontStyle('Geist-Medium'),
|
|
127
133
|
fontSize: 14,
|
|
128
134
|
lineHeight: 20,
|
|
129
135
|
letterSpacing: 0,
|
|
130
136
|
},
|
|
137
|
+
/**
|
|
138
|
+
* @deprecated Utiliser `Bold`. `SemiBold` est un alias strict de `Bold` : les deux
|
|
139
|
+
* appliquent `fontStyle('Geist-Bold')`, qui charge `Geist_600SemiBold` et rend un
|
|
140
|
+
* `font-weight: 600`. Le nom laisse croire à une graisse intermédiaire qui n'existe
|
|
141
|
+
* pas dans la palette Geist du thème (300 / 400 / 500 / 600).
|
|
142
|
+
*/
|
|
131
143
|
SemiBold: {
|
|
132
|
-
...fontStyle('
|
|
144
|
+
...fontStyle('Geist-Bold'),
|
|
133
145
|
fontSize: 14,
|
|
134
146
|
lineHeight: 20,
|
|
135
147
|
letterSpacing: 0,
|
|
136
148
|
},
|
|
137
149
|
Bold: {
|
|
138
|
-
...fontStyle('
|
|
150
|
+
...fontStyle('Geist-Bold'),
|
|
139
151
|
fontSize: 14,
|
|
140
152
|
lineHeight: 20,
|
|
141
153
|
letterSpacing: 0,
|
|
142
154
|
},
|
|
143
155
|
CapsBold: {
|
|
144
|
-
...fontStyle('
|
|
156
|
+
...fontStyle('Geist-Bold'),
|
|
145
157
|
fontSize: 14,
|
|
146
158
|
lineHeight: 20,
|
|
147
159
|
letterSpacing: 0,
|
|
@@ -150,25 +162,31 @@ export const CustomTypography = {
|
|
|
150
162
|
},
|
|
151
163
|
MD: {
|
|
152
164
|
Regular: {
|
|
153
|
-
...fontStyle('
|
|
165
|
+
...fontStyle('Geist-Regular'),
|
|
154
166
|
fontSize: 16,
|
|
155
167
|
lineHeight: 24,
|
|
156
168
|
letterSpacing: 0,
|
|
157
169
|
},
|
|
158
170
|
Medium: {
|
|
159
|
-
...fontStyle('
|
|
171
|
+
...fontStyle('Geist-Medium'),
|
|
160
172
|
fontSize: 16,
|
|
161
173
|
lineHeight: 24,
|
|
162
174
|
letterSpacing: 0,
|
|
163
175
|
},
|
|
176
|
+
/**
|
|
177
|
+
* @deprecated Utiliser `Bold`. `SemiBold` est un alias strict de `Bold` : les deux
|
|
178
|
+
* appliquent `fontStyle('Geist-Bold')`, qui charge `Geist_600SemiBold` et rend un
|
|
179
|
+
* `font-weight: 600`. Le nom laisse croire à une graisse intermédiaire qui n'existe
|
|
180
|
+
* pas dans la palette Geist du thème (300 / 400 / 500 / 600).
|
|
181
|
+
*/
|
|
164
182
|
SemiBold: {
|
|
165
|
-
...fontStyle('
|
|
183
|
+
...fontStyle('Geist-Bold'),
|
|
166
184
|
fontSize: 16,
|
|
167
185
|
lineHeight: 24,
|
|
168
186
|
letterSpacing: 0,
|
|
169
187
|
},
|
|
170
188
|
Bold: {
|
|
171
|
-
...fontStyle('
|
|
189
|
+
...fontStyle('Geist-Bold'),
|
|
172
190
|
fontSize: 16,
|
|
173
191
|
lineHeight: 24,
|
|
174
192
|
letterSpacing: 0,
|
|
@@ -176,19 +194,25 @@ export const CustomTypography = {
|
|
|
176
194
|
},
|
|
177
195
|
LG: {
|
|
178
196
|
Regular: {
|
|
179
|
-
...fontStyle('
|
|
197
|
+
...fontStyle('Geist-Regular'),
|
|
180
198
|
fontSize: 18,
|
|
181
199
|
lineHeight: 28,
|
|
182
200
|
letterSpacing: 0,
|
|
183
201
|
},
|
|
184
202
|
Medium: {
|
|
185
|
-
...fontStyle('
|
|
203
|
+
...fontStyle('Geist-Medium'),
|
|
186
204
|
fontSize: 18,
|
|
187
205
|
lineHeight: 28,
|
|
188
206
|
letterSpacing: 0,
|
|
189
207
|
},
|
|
190
|
-
|
|
191
|
-
|
|
208
|
+
/**
|
|
209
|
+
* @deprecated Utiliser `Bold`. `SemiBold` est un alias strict de `Bold` : les deux
|
|
210
|
+
* appliquent `fontStyle('Geist-Bold')`, qui charge `Geist_600SemiBold` et rend un
|
|
211
|
+
* `font-weight: 600`. Le nom laisse croire à une graisse intermédiaire qui n'existe
|
|
212
|
+
* pas dans la palette Geist du thème (300 / 400 / 500 / 600).
|
|
213
|
+
*/
|
|
214
|
+
Bold: {
|
|
215
|
+
...fontStyle('Geist-Bold'),
|
|
192
216
|
fontSize: 18,
|
|
193
217
|
lineHeight: 28,
|
|
194
218
|
letterSpacing: 0,
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Le nom de l'attribut `data-*` que react-native-web rend pour une clé de `dataSet`. Dérivé,
|
|
3
|
+
* jamais recopié : une règle CSS ne peut pas cibler un attribut que plus personne ne pose.
|
|
4
|
+
*/
|
|
5
|
+
export declare const dataSetAttribute: (key: string) => string;
|
|
6
|
+
//# sourceMappingURL=dataSetAttribute.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataSetAttribute.d.ts","sourceRoot":"","sources":["../../src/constants/dataSetAttribute.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,gBAAgB,GAAI,KAAK,MAAM,WAA2D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Le nom de l'attribut `data-*` que react-native-web rend pour une clé de `dataSet`. Dérivé,
|
|
3
|
+
* jamais recopié : une règle CSS ne peut pas cibler un attribut que plus personne ne pose.
|
|
4
|
+
*/
|
|
5
|
+
export const dataSetAttribute = (key) => `data-${key.replace(/([A-Z])/g, '-$1').toLowerCase()}`;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export * from './Breakpoint';
|
|
2
2
|
export * from './Color';
|
|
3
3
|
export * from './Elevation';
|
|
4
|
+
export * from './Focus';
|
|
5
|
+
export * from './FocusProps';
|
|
4
6
|
export * from './Font';
|
|
5
7
|
export * from './Grille';
|
|
8
|
+
export * from './Link';
|
|
9
|
+
export * from './LinkProps';
|
|
6
10
|
export * from './Palette';
|
|
7
11
|
export * from './Radius';
|
|
8
12
|
export * from './Sizes';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,WAAW,CAAC"}
|
package/dist/constants/index.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export * from './Breakpoint';
|
|
2
2
|
export * from './Color';
|
|
3
3
|
export * from './Elevation';
|
|
4
|
+
export * from './Focus';
|
|
5
|
+
export * from './FocusProps';
|
|
4
6
|
export * from './Font';
|
|
5
7
|
export * from './Grille';
|
|
8
|
+
export * from './Link';
|
|
9
|
+
export * from './LinkProps';
|
|
6
10
|
export * from './Palette';
|
|
7
11
|
export * from './Radius';
|
|
8
12
|
export * from './Sizes';
|