@jobber/components-native 0.72.1 → 0.72.2
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/package.json +2 -2
- package/dist/src/Typography/Typography.style.js +160 -32
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/Typography/Typography.d.ts +2 -2
- package/package.json +2 -2
- package/src/Typography/Typography.style.ts +252 -34
- package/src/Typography/Typography.test.tsx +7 -0
- package/src/Typography/Typography.tsx +74 -15
- package/src/Typography/__snapshots__/Typography.test.tsx.snap +33 -0
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jobber/components-native",
|
|
3
|
-
"version": "0.72.
|
|
3
|
+
"version": "0.72.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "React Native implementation of Atlantis",
|
|
6
6
|
"repository": {
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"react-native-safe-area-context": "^4.5.2",
|
|
83
83
|
"react-native-svg": ">=12.0.0"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "5bf179fd86de1628e28da194dd8cc4c2d51ed9ab"
|
|
86
86
|
}
|
|
@@ -68,7 +68,11 @@ export const typographyTokens = Object.assign(Object.assign({}, fonts), { italic
|
|
|
68
68
|
}, underline: {
|
|
69
69
|
textDecorationColor: tokens["color-text--secondary"],
|
|
70
70
|
textDecorationLine: "underline",
|
|
71
|
-
},
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Alignments
|
|
74
|
+
*/
|
|
75
|
+
startAlign: {
|
|
72
76
|
textAlign: "left",
|
|
73
77
|
}, endAlign: {
|
|
74
78
|
textAlign: "right",
|
|
@@ -76,9 +80,12 @@ export const typographyTokens = Object.assign(Object.assign({}, fonts), { italic
|
|
|
76
80
|
textAlign: "center",
|
|
77
81
|
}, justifyAlign: {
|
|
78
82
|
textAlign: "justify",
|
|
79
|
-
},
|
|
80
|
-
|
|
81
|
-
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Colors
|
|
86
|
+
*/
|
|
87
|
+
// Base colors for backwards compatibility
|
|
88
|
+
blueDark: {
|
|
82
89
|
color: tokens["color-blue--dark"],
|
|
83
90
|
}, white: {
|
|
84
91
|
color: tokens["color-white"],
|
|
@@ -124,10 +131,10 @@ export const typographyTokens = Object.assign(Object.assign({}, fonts), { italic
|
|
|
124
131
|
color: tokens["color-indigo--dark"],
|
|
125
132
|
}, navy: {
|
|
126
133
|
color: tokens["color-navy"],
|
|
127
|
-
},
|
|
134
|
+
},
|
|
135
|
+
// Typography
|
|
136
|
+
heading: {
|
|
128
137
|
color: tokens["color-heading"],
|
|
129
|
-
}, headingReverse: {
|
|
130
|
-
color: tokens["color-text--reverse"],
|
|
131
138
|
}, text: {
|
|
132
139
|
color: tokens["color-text"],
|
|
133
140
|
}, textSecondary: {
|
|
@@ -136,47 +143,160 @@ export const typographyTokens = Object.assign(Object.assign({}, fonts), { italic
|
|
|
136
143
|
color: tokens["color-text--reverse"],
|
|
137
144
|
}, textReverseSecondary: {
|
|
138
145
|
color: tokens["color-text--reverse--secondary"],
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
|
|
146
|
+
},
|
|
147
|
+
// Statuses
|
|
148
|
+
inactive: {
|
|
149
|
+
color: tokens["color-inactive"],
|
|
150
|
+
}, inactiveSurface: {
|
|
151
|
+
color: tokens["color-inactive--surface"],
|
|
152
|
+
}, inactiveOnSurface: {
|
|
153
|
+
color: tokens["color-inactive--onSurface"],
|
|
154
|
+
}, critical: {
|
|
142
155
|
color: tokens["color-critical"],
|
|
143
|
-
},
|
|
144
|
-
color: tokens["color-
|
|
145
|
-
},
|
|
146
|
-
color: tokens["color-
|
|
147
|
-
},
|
|
156
|
+
}, criticalSurface: {
|
|
157
|
+
color: tokens["color-critical--surface"],
|
|
158
|
+
}, criticalOnSurface: {
|
|
159
|
+
color: tokens["color-critical--onSurface"],
|
|
160
|
+
}, warning: {
|
|
161
|
+
color: tokens["color-warning"],
|
|
162
|
+
}, warningSurface: {
|
|
163
|
+
color: tokens["color-warning--surface"],
|
|
164
|
+
}, warningOnSurface: {
|
|
148
165
|
color: tokens["color-warning--onSurface"],
|
|
149
|
-
},
|
|
166
|
+
}, informative: {
|
|
167
|
+
color: tokens["color-informative"],
|
|
168
|
+
}, informativeSurface: {
|
|
169
|
+
color: tokens["color-informative--surface"],
|
|
170
|
+
}, informativeOnSurface: {
|
|
150
171
|
color: tokens["color-informative--onSurface"],
|
|
151
|
-
},
|
|
172
|
+
},
|
|
173
|
+
// To be uncommented once success in Deprecated is removed
|
|
174
|
+
// success: {
|
|
175
|
+
// color: tokens["color-success"],
|
|
176
|
+
// },
|
|
177
|
+
successSurface: {
|
|
178
|
+
color: tokens["color-success--surface"],
|
|
179
|
+
}, successOnSurface: {
|
|
180
|
+
color: tokens["color-success--onSurface"],
|
|
181
|
+
},
|
|
182
|
+
// Interactions
|
|
183
|
+
interactive: {
|
|
184
|
+
color: tokens["color-interactive"],
|
|
185
|
+
}, interactiveHover: {
|
|
186
|
+
color: tokens["color-interactive--hover"],
|
|
187
|
+
}, interactiveSubtle: {
|
|
188
|
+
color: tokens["color-interactive--subtle"],
|
|
189
|
+
}, interactiveSubtleHover: {
|
|
190
|
+
color: tokens["color-interactive--subtle--hover"],
|
|
191
|
+
}, destructive: {
|
|
192
|
+
color: tokens["color-destructive"],
|
|
193
|
+
}, destructiveHover: {
|
|
194
|
+
color: tokens["color-destructive--hover"],
|
|
195
|
+
}, disabled: {
|
|
196
|
+
color: tokens["color-disabled"],
|
|
197
|
+
}, disabledSecondary: {
|
|
198
|
+
color: tokens["color-disabled--secondary"],
|
|
199
|
+
},
|
|
200
|
+
// Workflow
|
|
201
|
+
request: {
|
|
202
|
+
color: tokens["color-request"],
|
|
203
|
+
}, requestSurface: {
|
|
204
|
+
color: tokens["color-request--surface"],
|
|
205
|
+
}, requestOnSurface: {
|
|
206
|
+
color: tokens["color-request--onSurface"],
|
|
207
|
+
}, quote: {
|
|
208
|
+
color: tokens["color-quote"],
|
|
209
|
+
}, quoteSurface: {
|
|
210
|
+
color: tokens["color-quote--surface"],
|
|
211
|
+
}, quoteOnSurface: {
|
|
212
|
+
color: tokens["color-quote--onSurface"],
|
|
213
|
+
}, job: {
|
|
214
|
+
color: tokens["color-job"],
|
|
215
|
+
}, jobSurface: {
|
|
216
|
+
color: tokens["color-job--surface"],
|
|
217
|
+
}, jobOnSurface: {
|
|
218
|
+
color: tokens["color-job--onSurface"],
|
|
219
|
+
}, visit: {
|
|
220
|
+
color: tokens["color-visit"],
|
|
221
|
+
}, visitSurface: {
|
|
222
|
+
color: tokens["color-visit--surface"],
|
|
223
|
+
}, visitOnSurface: {
|
|
224
|
+
color: tokens["color-visit--onSurface"],
|
|
225
|
+
}, task: {
|
|
226
|
+
color: tokens["color-task"],
|
|
227
|
+
}, taskSurface: {
|
|
228
|
+
color: tokens["color-task--surface"],
|
|
229
|
+
}, taskOnSurface: {
|
|
230
|
+
color: tokens["color-task--onSurface"],
|
|
231
|
+
}, event: {
|
|
232
|
+
color: tokens["color-event"],
|
|
233
|
+
}, eventSurface: {
|
|
234
|
+
color: tokens["color-event--surface"],
|
|
235
|
+
}, eventOnSurface: {
|
|
236
|
+
color: tokens["color-event--onSurface"],
|
|
237
|
+
}, invoice: {
|
|
238
|
+
color: tokens["color-invoice"],
|
|
239
|
+
}, invoiceSurface: {
|
|
240
|
+
color: tokens["color-invoice--surface"],
|
|
241
|
+
}, invoiceOnSurface: {
|
|
242
|
+
color: tokens["color-invoice--onSurface"],
|
|
243
|
+
}, payments: {
|
|
244
|
+
color: tokens["color-payments"],
|
|
245
|
+
}, paymentsSurface: {
|
|
246
|
+
color: tokens["color-payments--surface"],
|
|
247
|
+
}, paymentsOnSurface: {
|
|
248
|
+
color: tokens["color-payments--onSurface"],
|
|
249
|
+
}, client: {
|
|
250
|
+
color: tokens["color-client"],
|
|
251
|
+
},
|
|
252
|
+
// Miscellaneous
|
|
253
|
+
icon: {
|
|
254
|
+
color: tokens["color-icon"],
|
|
255
|
+
}, brand: {
|
|
256
|
+
color: tokens["color-brand"],
|
|
257
|
+
},
|
|
258
|
+
// Deprecated
|
|
259
|
+
blue: {
|
|
260
|
+
color: tokens["color-heading"],
|
|
261
|
+
}, base: {
|
|
262
|
+
color: tokens["color-text"],
|
|
263
|
+
}, baseReverse: {
|
|
264
|
+
color: tokens["color-text--reverse"],
|
|
265
|
+
}, headingReverse: {
|
|
266
|
+
color: tokens["color-text--reverse"],
|
|
267
|
+
}, error: {
|
|
152
268
|
color: tokens["color-critical"],
|
|
153
|
-
}, successReverse: {
|
|
154
|
-
color: tokens["color-success"],
|
|
155
269
|
}, errorReverse: {
|
|
156
270
|
color: tokens["color-critical"],
|
|
157
|
-
},
|
|
158
|
-
color: tokens["color-
|
|
159
|
-
},
|
|
160
|
-
color: tokens["color-
|
|
271
|
+
}, success: {
|
|
272
|
+
color: tokens["color-success--onSurface"],
|
|
273
|
+
}, successReverse: {
|
|
274
|
+
color: tokens["color-success"],
|
|
275
|
+
}, warn: {
|
|
276
|
+
color: tokens["color-warning--onSurface"],
|
|
161
277
|
}, warnReverse: {
|
|
162
278
|
color: tokens["color-warning"],
|
|
279
|
+
}, subdued: {
|
|
280
|
+
color: tokens["color-text--secondary"],
|
|
281
|
+
}, subduedReverse: {
|
|
282
|
+
color: tokens["color-text--reverse--secondary"],
|
|
283
|
+
}, info: {
|
|
284
|
+
color: tokens["color-informative--onSurface"],
|
|
163
285
|
}, infoReverse: {
|
|
164
286
|
color: tokens["color-informative"],
|
|
165
287
|
}, criticalReverse: {
|
|
166
288
|
color: tokens["color-critical"],
|
|
167
|
-
}, interactive: {
|
|
168
|
-
color: tokens["color-interactive"],
|
|
169
|
-
}, destructive: {
|
|
170
|
-
color: tokens["color-destructive"],
|
|
171
289
|
}, learning: {
|
|
172
290
|
color: tokens["color-informative"],
|
|
173
291
|
}, subtle: {
|
|
174
292
|
color: tokens["color-interactive--subtle"],
|
|
175
293
|
}, onPrimary: {
|
|
176
294
|
color: tokens["color-surface"],
|
|
177
|
-
},
|
|
178
|
-
|
|
179
|
-
|
|
295
|
+
},
|
|
296
|
+
/**
|
|
297
|
+
* Sizes
|
|
298
|
+
*/
|
|
299
|
+
smallestSize: {
|
|
180
300
|
fontSize: tokens["typography--fontSize-smallest"],
|
|
181
301
|
lineHeight: minusculeLineHeight,
|
|
182
302
|
}, smallerSize: {
|
|
@@ -203,7 +323,11 @@ export const typographyTokens = Object.assign(Object.assign({}, fonts), { italic
|
|
|
203
323
|
}, extravagantSize: {
|
|
204
324
|
fontSize: tokens["typography--fontSize-extravagant"],
|
|
205
325
|
lineHeight: extravagantLineHeight,
|
|
206
|
-
},
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
* Line Heights
|
|
329
|
+
*/
|
|
330
|
+
extravagantLineHeight: {
|
|
207
331
|
lineHeight: extravagantLineHeight,
|
|
208
332
|
}, jumboLineHeight: {
|
|
209
333
|
lineHeight: jumboLineHeight,
|
|
@@ -217,7 +341,11 @@ export const typographyTokens = Object.assign(Object.assign({}, fonts), { italic
|
|
|
217
341
|
lineHeight: baseLineHeight,
|
|
218
342
|
}, tightLineHeight: {
|
|
219
343
|
lineHeight: tightLineHeight,
|
|
220
|
-
},
|
|
344
|
+
},
|
|
345
|
+
/**
|
|
346
|
+
* Letter Spacings
|
|
347
|
+
*/
|
|
348
|
+
baseLetterSpacing: {
|
|
221
349
|
letterSpacing: tokens["typography--letterSpacing-base"],
|
|
222
350
|
}, looseLetterSpacing: {
|
|
223
351
|
letterSpacing: tokens["typography--letterSpacing-loose"],
|