creactive 0.0.94 → 0.0.96
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/build/classic.js +2 -2
- package/build/components/view/constants/index.d.ts +1 -1
- package/build/components/view/constants/spacing.d.ts +159 -129
- package/build/constants/index.d.ts +1 -1
- package/build/constants/theme/index.d.ts +0 -1
- package/build/contexts/index.d.ts +1 -1
- package/build/contexts/theme/constants/border.d.ts +8 -0
- package/build/contexts/theme/constants/color.d.ts +9 -0
- package/build/contexts/theme/constants/font.d.ts +20 -0
- package/build/contexts/theme/constants/index.d.ts +5 -1
- package/build/contexts/theme/constants/spacing.d.ts +15 -0
- package/build/contexts/theme/constants/text.d.ts +6 -0
- package/build/contexts/theme/hooks/index.d.ts +1 -0
- package/build/contexts/theme/hooks/use-theme-style-sheet.d.ts +554 -0
- package/build/contexts/theme/index.d.ts +1 -0
- package/build/contexts/theme/theme.types.d.ts +152 -119
- package/build/default.js +1 -1
- package/build/index.d.ts +1 -2
- package/package.json +1 -1
|
@@ -143,262 +143,295 @@ export interface ThemeContextValue {
|
|
|
143
143
|
*/
|
|
144
144
|
colorForegroundBase900: Color;
|
|
145
145
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
* Intended for nearly invisible elements on inverse backgrounds.
|
|
146
|
+
* Least contrast inverse foreground color.
|
|
147
|
+
* @default rgb(198,198,202)
|
|
149
148
|
*/
|
|
150
149
|
colorForegroundInverse100: Color;
|
|
151
150
|
/**
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
* Also almost invisible, but a bit more contrasting than 100.
|
|
151
|
+
* Dim inverse foreground color.
|
|
152
|
+
* @default rgb(212,212,216)
|
|
155
153
|
*/
|
|
156
154
|
colorForegroundInverse200: Color;
|
|
157
155
|
/**
|
|
158
|
-
*
|
|
159
|
-
*
|
|
156
|
+
* Mix of dim and muted inverse foreground color.
|
|
157
|
+
* @default rgb(216,216,228)
|
|
160
158
|
*/
|
|
161
159
|
colorForegroundInverse300: Color;
|
|
162
160
|
/**
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
* If a secondary element has multiple levels, this is for the lower one.
|
|
161
|
+
* Muted inverse foreground color.
|
|
162
|
+
* @default rgb(218,218,234)
|
|
166
163
|
*/
|
|
167
164
|
colorForegroundInverse400: Color;
|
|
168
165
|
/**
|
|
169
|
-
*
|
|
170
|
-
*
|
|
166
|
+
* Mix of muted and subtle inverse foreground color.
|
|
167
|
+
* @default rgb(224,224,238)
|
|
171
168
|
*/
|
|
172
169
|
colorForegroundInverse500: Color;
|
|
173
170
|
/**
|
|
174
|
-
*
|
|
175
|
-
*
|
|
171
|
+
* Subtle inverse foreground color.
|
|
172
|
+
* @default rgb(244,244,245)
|
|
176
173
|
*/
|
|
177
174
|
colorForegroundInverse600: Color;
|
|
178
175
|
/**
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
* Also suitable for slightly subdued elements.
|
|
176
|
+
* Mix of subtle and default inverse foreground color.
|
|
177
|
+
* @default rgb(247,247,249)
|
|
182
178
|
*/
|
|
183
179
|
colorForegroundInverse700: Color;
|
|
184
180
|
/**
|
|
185
|
-
* Inverse foreground
|
|
186
|
-
*
|
|
181
|
+
* Inverse default foreground color.
|
|
182
|
+
* @default rgb(249,249,250)
|
|
187
183
|
*/
|
|
188
184
|
colorForegroundInverse800: Color;
|
|
189
185
|
/**
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
* Suitable when you need even more contrast on inverse background.
|
|
186
|
+
* Most contrast inverse foreground color.
|
|
187
|
+
* @default rgb(254,254,255)
|
|
193
188
|
*/
|
|
194
189
|
colorForegroundInverse900: Color;
|
|
195
190
|
/**
|
|
196
|
-
* Base font family
|
|
197
|
-
*
|
|
198
|
-
* If you don't known what font family to use - use this one.
|
|
191
|
+
* Base font family.
|
|
192
|
+
* @see FONT_FAMILY_BASE
|
|
199
193
|
*/
|
|
200
194
|
fontFamilyBase: string;
|
|
201
195
|
/**
|
|
202
|
-
* Base thin font weight
|
|
203
|
-
*
|
|
196
|
+
* Base thin font weight.
|
|
197
|
+
* @see FONT_WEIGHT_BASE_THIN
|
|
198
|
+
* @default 100
|
|
204
199
|
*/
|
|
205
200
|
fontWeightBaseThin: FontWeight;
|
|
206
201
|
/**
|
|
207
|
-
* Base extra-light font weight
|
|
208
|
-
*
|
|
209
|
-
*
|
|
202
|
+
* Base extra-light font weight.
|
|
203
|
+
* @see FONT_WEIGHT_BASE_EXTRALIGHT
|
|
204
|
+
* @default 200
|
|
210
205
|
*/
|
|
211
206
|
fontWeightBaseExtraLight: FontWeight;
|
|
212
207
|
/**
|
|
213
|
-
* Base light font weight
|
|
214
|
-
*
|
|
208
|
+
* Base light font weight.
|
|
209
|
+
* @see FONT_WEIGHT_BASE_LIGHT
|
|
210
|
+
* @default 300
|
|
215
211
|
*/
|
|
216
212
|
fontWeightBaseLight: FontWeight;
|
|
217
213
|
/**
|
|
218
|
-
* Base regular font weight
|
|
219
|
-
*
|
|
220
|
-
*
|
|
214
|
+
* Base regular font weight.
|
|
215
|
+
* @see FONT_WEIGHT_BASE_REGULAR
|
|
216
|
+
* @default 400
|
|
221
217
|
*/
|
|
222
218
|
fontWeightBaseRegular: FontWeight;
|
|
223
219
|
/**
|
|
224
|
-
* Base medium font weight
|
|
225
|
-
*
|
|
226
|
-
*
|
|
220
|
+
* Base medium font weight.
|
|
221
|
+
* @see FONT_WEIGHT_BASE_MEDIUM
|
|
222
|
+
* @default 500
|
|
227
223
|
*/
|
|
228
224
|
fontWeightBaseMedium: FontWeight;
|
|
229
225
|
/**
|
|
230
|
-
* Base semi-bold font weight
|
|
231
|
-
*
|
|
232
|
-
*
|
|
226
|
+
* Base semi-bold font weight.
|
|
227
|
+
* @see FONT_WEIGHT_BASE_SEMIBOLD
|
|
228
|
+
* @default 600
|
|
233
229
|
*/
|
|
234
230
|
fontWeightBaseSemibold: FontWeight;
|
|
235
231
|
/**
|
|
236
|
-
* Base bold font weight
|
|
237
|
-
*
|
|
238
|
-
*
|
|
232
|
+
* Base bold font weight.
|
|
233
|
+
* @see FONT_WEIGHT_BASE_BOLD
|
|
234
|
+
* @default 700
|
|
239
235
|
*/
|
|
240
236
|
fontWeightBaseBold: FontWeight;
|
|
241
237
|
/**
|
|
242
|
-
* Extra-bold font weight
|
|
243
|
-
*
|
|
238
|
+
* Extra-bold font weight.
|
|
239
|
+
* @see FONT_WEIGHT_BASE_EXTRABOLD
|
|
240
|
+
* @default 800
|
|
244
241
|
*/
|
|
245
242
|
fontWeightBaseExtraBold: FontWeight;
|
|
246
243
|
/**
|
|
247
|
-
* Base black font weight
|
|
248
|
-
*
|
|
249
|
-
*
|
|
244
|
+
* Base black font weight.
|
|
245
|
+
* @see FONT_WEIGHT_BASE_BLACK
|
|
246
|
+
* @default 900
|
|
250
247
|
*/
|
|
251
248
|
fontWeightBaseBlack: FontWeight;
|
|
252
249
|
/**
|
|
253
|
-
* Base 2 times extra-small font size
|
|
254
|
-
*
|
|
255
|
-
*
|
|
250
|
+
* Base 2 times extra-small font size.
|
|
251
|
+
* @see FONT_SIZE_BASE_X2S
|
|
252
|
+
* @default 12
|
|
256
253
|
*/
|
|
257
254
|
fontSizeBaseX2S: number;
|
|
258
255
|
/**
|
|
259
|
-
* Base extra-small font size
|
|
260
|
-
*
|
|
256
|
+
* Base extra-small font size.
|
|
257
|
+
* @see FONT_SIZE_BASE_XS
|
|
258
|
+
* @default 14
|
|
261
259
|
*/
|
|
262
260
|
fontSizeBaseXS: number;
|
|
263
261
|
/**
|
|
264
|
-
* Base small font size
|
|
265
|
-
*
|
|
266
|
-
*
|
|
262
|
+
* Base small font size.
|
|
263
|
+
* @see FONT_SIZE_BASE_SM
|
|
264
|
+
* @default 16
|
|
267
265
|
*/
|
|
268
266
|
fontSizeBaseSM: number;
|
|
269
267
|
/**
|
|
270
|
-
* Base medium font size
|
|
271
|
-
*
|
|
272
|
-
*
|
|
268
|
+
* Base medium font size.
|
|
269
|
+
* @see FONT_SIZE_BASE_MD
|
|
270
|
+
* @default 18
|
|
273
271
|
*/
|
|
274
272
|
fontSizeBaseMD: number;
|
|
275
273
|
/**
|
|
276
|
-
* Base large font size
|
|
277
|
-
*
|
|
278
|
-
*
|
|
274
|
+
* Base large font size.
|
|
275
|
+
* @see FONT_SIZE_BASE_LG
|
|
276
|
+
* @default 20
|
|
279
277
|
*/
|
|
280
278
|
fontSizeBaseLG: number;
|
|
281
279
|
/**
|
|
282
|
-
* Base extra-large font size
|
|
283
|
-
*
|
|
284
|
-
*
|
|
280
|
+
* Base extra-large font size.
|
|
281
|
+
* @see FONT_SIZE_BASE_XL
|
|
282
|
+
* @default 24
|
|
285
283
|
*/
|
|
286
284
|
fontSizeBaseXL: number;
|
|
287
285
|
/**
|
|
288
|
-
* Base 2 times extra-large font size
|
|
289
|
-
*
|
|
286
|
+
* Base 2 times extra-large font size.
|
|
287
|
+
* @see FONT_SIZE_BASE_X2L
|
|
288
|
+
* @default 30
|
|
290
289
|
*/
|
|
291
290
|
fontSizeBaseX2L: number;
|
|
292
291
|
/**
|
|
293
|
-
* Base 3 times extra-large font size
|
|
294
|
-
*
|
|
295
|
-
*
|
|
292
|
+
* Base 3 times extra-large font size.
|
|
293
|
+
* @see FONT_SIZE_BASE_X3L
|
|
294
|
+
* @default 36
|
|
296
295
|
*/
|
|
297
296
|
fontSizeBaseX3L: number;
|
|
298
297
|
/**
|
|
299
|
-
* Base 4 times extra-large font size
|
|
300
|
-
*
|
|
298
|
+
* Base 4 times extra-large font size.
|
|
299
|
+
* @see FONT_SIZE_BASE_X4L
|
|
300
|
+
* @default 48
|
|
301
301
|
*/
|
|
302
302
|
fontSizeBaseX4L: number;
|
|
303
303
|
/**
|
|
304
|
-
* Base 5 times extra-large font size
|
|
305
|
-
*
|
|
306
|
-
*
|
|
304
|
+
* Base 5 times extra-large font size.
|
|
305
|
+
* @see FONT_SIZE_BASE_X5L
|
|
306
|
+
* @default 60
|
|
307
307
|
*/
|
|
308
308
|
fontSizeBaseX5L: number;
|
|
309
309
|
/**
|
|
310
|
-
* Base none line height
|
|
311
|
-
*
|
|
310
|
+
* Base none line height.
|
|
311
|
+
* @see LINE_HEIGHT_BASE_NONE
|
|
312
|
+
* @default 1
|
|
312
313
|
*/
|
|
313
314
|
lineHeightBaseNone: number;
|
|
314
315
|
/**
|
|
315
|
-
* Base tight line height
|
|
316
|
-
*
|
|
316
|
+
* Base tight line height.
|
|
317
|
+
* @see LINE_HEIGHT_BASE_TIGHT
|
|
318
|
+
* @default 1.25
|
|
317
319
|
*/
|
|
318
320
|
lineHeightBaseTight: number;
|
|
319
321
|
/**
|
|
320
|
-
* Base snug line height
|
|
321
|
-
*
|
|
322
|
+
* Base snug line height.
|
|
323
|
+
* @see LINE_HEIGHT_BASE_SNUG
|
|
324
|
+
* @default 1.375
|
|
322
325
|
*/
|
|
323
326
|
lineHeightBaseSnug: number;
|
|
324
327
|
/**
|
|
325
|
-
* Base normal line height
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
+
* Base normal line height.
|
|
329
|
+
* @see LINE_HEIGHT_BASE_NORMAL
|
|
330
|
+
* @default 1.5
|
|
328
331
|
*/
|
|
329
332
|
lineHeightBaseNormal: number;
|
|
330
333
|
/**
|
|
331
|
-
* Base relaxed line height
|
|
332
|
-
*
|
|
333
|
-
*
|
|
334
|
+
* Base relaxed line height.
|
|
335
|
+
* @see LINE_HEIGHT_BASE_RELAXED
|
|
336
|
+
* @default 1.625
|
|
334
337
|
*/
|
|
335
338
|
lineHeightBaseRelaxed: number;
|
|
336
339
|
/**
|
|
337
|
-
* Base loose line height
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
+
* Base loose line height.
|
|
341
|
+
* @see LINE_HEIGHT_BASE_LOOSE
|
|
342
|
+
* @default 2
|
|
340
343
|
*/
|
|
341
344
|
lineHeightBaseLoose: number;
|
|
342
345
|
/**
|
|
343
|
-
* Base
|
|
344
|
-
*
|
|
346
|
+
* Base 6 times extra-small spacing.
|
|
347
|
+
* @see SPACING_BASE_X6S
|
|
348
|
+
* @default 2
|
|
349
|
+
*/
|
|
350
|
+
spacingBaseX6S: number;
|
|
351
|
+
/**
|
|
352
|
+
* Base 5 times extra-small spacing.
|
|
353
|
+
* @see SPACING_BASE_X5S
|
|
354
|
+
* @default 4
|
|
355
|
+
*/
|
|
356
|
+
spacingBaseX5S: number;
|
|
357
|
+
/**
|
|
358
|
+
* Base 4 times extra-small spacing.
|
|
359
|
+
* @see SPACING_BASE_X4S
|
|
360
|
+
* @default 6
|
|
361
|
+
*/
|
|
362
|
+
spacingBaseX4S: number;
|
|
363
|
+
/**
|
|
364
|
+
* Base 3 times extra-small spacing.
|
|
365
|
+
* @see SPACING_BASE_X3S
|
|
366
|
+
* @default 8
|
|
367
|
+
*/
|
|
368
|
+
spacingBaseX3S: number;
|
|
369
|
+
/**
|
|
370
|
+
* Base 2 times extra-small spacing.
|
|
371
|
+
* @see SPACING_BASE_X2S
|
|
372
|
+
* @default 10
|
|
345
373
|
*/
|
|
346
374
|
spacingBaseX2S: number;
|
|
347
375
|
/**
|
|
348
|
-
*
|
|
349
|
-
*
|
|
376
|
+
* Base extra-small spacing.
|
|
377
|
+
* @see SPACING_BASE_XS
|
|
378
|
+
* @default 12
|
|
350
379
|
*/
|
|
351
380
|
spacingBaseXS: number;
|
|
352
381
|
/**
|
|
353
|
-
*
|
|
354
|
-
*
|
|
382
|
+
* Base small spacing.
|
|
383
|
+
* @see SPACING_BASE_SM
|
|
384
|
+
* @default 14
|
|
355
385
|
*/
|
|
356
386
|
spacingBaseSM: number;
|
|
357
387
|
/**
|
|
358
|
-
* Base medium spacing
|
|
359
|
-
*
|
|
388
|
+
* Base medium spacing.
|
|
389
|
+
* @see SPACING_BASE_MD
|
|
390
|
+
* @default 16
|
|
360
391
|
*/
|
|
361
392
|
spacingBaseMD: number;
|
|
362
393
|
/**
|
|
363
|
-
*
|
|
364
|
-
*
|
|
394
|
+
* Base large spacing.
|
|
395
|
+
* @see SPACING_BASE_LG
|
|
396
|
+
* @default 18
|
|
365
397
|
*/
|
|
366
398
|
spacingBaseLG: number;
|
|
367
399
|
/**
|
|
368
|
-
*
|
|
369
|
-
*
|
|
400
|
+
* Base extra-large spacing.
|
|
401
|
+
* @see SPACING_BASE_XL
|
|
402
|
+
* @default 20
|
|
370
403
|
*/
|
|
371
404
|
spacingBaseXL: number;
|
|
372
405
|
/**
|
|
373
|
-
* Base 2 times extra-large spacing
|
|
374
|
-
*
|
|
406
|
+
* Base 2 times extra-large spacing.
|
|
407
|
+
* @see SPACING_BASE_X2L
|
|
408
|
+
* @default 24
|
|
375
409
|
*/
|
|
376
410
|
spacingBaseX2L: number;
|
|
377
411
|
/**
|
|
378
|
-
* Base 3 times extra-large spacing
|
|
379
|
-
*
|
|
412
|
+
* Base 3 times extra-large spacing.
|
|
413
|
+
* @see SPACING_BASE_X3L
|
|
414
|
+
* @default 28
|
|
380
415
|
*/
|
|
381
416
|
spacingBaseX3L: number;
|
|
382
417
|
/**
|
|
383
|
-
* Base 4 times extra-large spacing
|
|
384
|
-
*
|
|
418
|
+
* Base 4 times extra-large spacing.
|
|
419
|
+
* @see SPACING_BASE_X4L
|
|
420
|
+
* @default 32
|
|
385
421
|
*/
|
|
386
422
|
spacingBaseX4L: number;
|
|
387
423
|
/**
|
|
388
|
-
* Base 5 times extra-large spacing
|
|
389
|
-
*
|
|
424
|
+
* Base 5 times extra-large spacing.
|
|
425
|
+
* @see SPACING_BASE_X5L
|
|
426
|
+
* @default 36
|
|
390
427
|
*/
|
|
391
428
|
spacingBaseX5L: number;
|
|
392
429
|
/**
|
|
393
|
-
* Base 6 times extra-large spacing
|
|
394
|
-
*
|
|
430
|
+
* Base 6 times extra-large spacing.
|
|
431
|
+
* @see SPACING_BASE_X6L
|
|
432
|
+
* @default 40
|
|
395
433
|
*/
|
|
396
434
|
spacingBaseX6L: number;
|
|
397
|
-
/**
|
|
398
|
-
* Base 7 times extra-large spacing token.
|
|
399
|
-
* Used for large layout sections or when significant whitespace is needed.
|
|
400
|
-
*/
|
|
401
|
-
spacingBaseX7L: number;
|
|
402
435
|
/**
|
|
403
436
|
* Small base border width token.
|
|
404
437
|
* @default 0.5
|