@codecademy/gamut-styles 17.9.1-alpha.2ea313.0 → 17.9.1-alpha.3e8b72.0

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.
Files changed (86) hide show
  1. package/package.json +3 -3
  2. package/dist/AssetProvider.d.ts +0 -2
  3. package/dist/AssetProvider.js +0 -20
  4. package/dist/Background.d.ts +0 -6
  5. package/dist/Background.js +0 -66
  6. package/dist/ColorMode.d.ts +0 -1312
  7. package/dist/ColorMode.js +0 -134
  8. package/dist/GamutProvider.d.ts +0 -23
  9. package/dist/GamutProvider.js +0 -64
  10. package/dist/cache/createEmotionCache.d.ts +0 -4
  11. package/dist/cache/createEmotionCache.js +0 -25
  12. package/dist/cache/index.d.ts +0 -1
  13. package/dist/cache/index.js +0 -1
  14. package/dist/cache/stylisPlugins/focusVisible.d.ts +0 -2
  15. package/dist/cache/stylisPlugins/focusVisible.js +0 -10
  16. package/dist/cache/stylisPlugins/index.d.ts +0 -1
  17. package/dist/cache/stylisPlugins/index.js +0 -1
  18. package/dist/globals/Reboot.d.ts +0 -1
  19. package/dist/globals/Reboot.js +0 -7
  20. package/dist/globals/Typography.d.ts +0 -1
  21. package/dist/globals/Typography.js +0 -20
  22. package/dist/globals/Variables.d.ts +0 -5
  23. package/dist/globals/Variables.js +0 -15
  24. package/dist/globals/index.d.ts +0 -2
  25. package/dist/globals/index.js +0 -2
  26. package/dist/index.d.ts +0 -13
  27. package/dist/index.js +0 -13
  28. package/dist/remoteAssets/fonts.d.ts +0 -26
  29. package/dist/remoteAssets/fonts.js +0 -34
  30. package/dist/styles/boxShadow.d.ts +0 -26
  31. package/dist/styles/boxShadow.js +0 -34
  32. package/dist/styles/fontSmoothing.d.ts +0 -29
  33. package/dist/styles/fontSmoothing.js +0 -27
  34. package/dist/styles/index.d.ts +0 -7
  35. package/dist/styles/index.js +0 -7
  36. package/dist/styles/noSelect.d.ts +0 -1
  37. package/dist/styles/noSelect.js +0 -11
  38. package/dist/styles/pxRem.d.ts +0 -1
  39. package/dist/styles/pxRem.js +0 -4
  40. package/dist/styles/responsive.d.ts +0 -6
  41. package/dist/styles/responsive.js +0 -12
  42. package/dist/styles/screenReaderOnly.d.ts +0 -2
  43. package/dist/styles/screenReaderOnly.js +0 -20
  44. package/dist/styles/transitionConcat.d.ts +0 -3
  45. package/dist/styles/transitionConcat.js +0 -6
  46. package/dist/themes/admin.d.ts +0 -966
  47. package/dist/themes/admin.js +0 -15
  48. package/dist/themes/core.d.ts +0 -519
  49. package/dist/themes/core.js +0 -132
  50. package/dist/themes/index.d.ts +0 -4
  51. package/dist/themes/index.js +0 -4
  52. package/dist/themes/lxStudio.d.ts +0 -1080
  53. package/dist/themes/lxStudio.js +0 -54
  54. package/dist/themes/platform.d.ts +0 -1157
  55. package/dist/themes/platform.js +0 -78
  56. package/dist/typings/theme.d.ts +0 -6
  57. package/dist/utilities/index.d.ts +0 -1
  58. package/dist/utilities/index.js +0 -1
  59. package/dist/utilities/themed.d.ts +0 -14
  60. package/dist/utilities/themed.js +0 -16
  61. package/dist/variables/borderRadii.d.ts +0 -8
  62. package/dist/variables/borderRadii.js +0 -8
  63. package/dist/variables/colors.d.ts +0 -310
  64. package/dist/variables/colors.js +0 -170
  65. package/dist/variables/deprecated-colors.d.ts +0 -156
  66. package/dist/variables/deprecated-colors.js +0 -156
  67. package/dist/variables/elements.d.ts +0 -11
  68. package/dist/variables/elements.js +0 -11
  69. package/dist/variables/index.d.ts +0 -8
  70. package/dist/variables/index.js +0 -9
  71. package/dist/variables/responsive.d.ts +0 -28
  72. package/dist/variables/responsive.js +0 -28
  73. package/dist/variables/spacing.d.ts +0 -13
  74. package/dist/variables/spacing.js +0 -14
  75. package/dist/variables/timing.d.ts +0 -12
  76. package/dist/variables/timing.js +0 -12
  77. package/dist/variables/typography.d.ts +0 -32
  78. package/dist/variables/typography.js +0 -39
  79. package/dist/variance/config.d.ts +0 -1052
  80. package/dist/variance/config.js +0 -514
  81. package/dist/variance/index.d.ts +0 -3
  82. package/dist/variance/index.js +0 -3
  83. package/dist/variance/props.d.ts +0 -1963
  84. package/dist/variance/props.js +0 -24
  85. package/dist/variance/utils.d.ts +0 -29
  86. package/dist/variance/utils.js +0 -34
@@ -1,514 +0,0 @@
1
- import { transformSize } from '@codecademy/variance';
2
- export const color = {
3
- color: {
4
- property: 'color',
5
- scale: 'colors'
6
- },
7
- textColor: {
8
- property: 'color',
9
- scale: 'colors'
10
- },
11
- bg: {
12
- property: 'backgroundColor',
13
- scale: 'colors'
14
- },
15
- borderColor: {
16
- property: 'borderColor',
17
- scale: 'colors'
18
- },
19
- borderColorX: {
20
- property: 'borderColor',
21
- properties: ['borderLeftColor', 'borderRightColor'],
22
- scale: 'colors'
23
- },
24
- borderColorY: {
25
- property: 'borderColor',
26
- properties: ['borderTopColor', 'borderBottomColor'],
27
- scale: 'colors'
28
- },
29
- borderColorLeft: {
30
- property: 'borderLeftColor',
31
- scale: 'colors'
32
- },
33
- borderColorRight: {
34
- property: 'borderRightColor',
35
- scale: 'colors'
36
- },
37
- borderColorTop: {
38
- property: 'borderTopColor',
39
- scale: 'colors'
40
- },
41
- borderColorBottom: {
42
- property: 'borderBottomColor',
43
- scale: 'colors'
44
- }
45
- };
46
- export const border = {
47
- // Border
48
- border: {
49
- property: 'border',
50
- scale: 'borders'
51
- },
52
- borderX: {
53
- property: 'border',
54
- properties: ['borderLeft', 'borderRight'],
55
- scale: 'borders'
56
- },
57
- borderY: {
58
- property: 'border',
59
- properties: ['borderTop', 'borderBottom'],
60
- scale: 'borders'
61
- },
62
- borderTop: {
63
- property: 'borderTop',
64
- scale: 'borders'
65
- },
66
- borderRight: {
67
- property: 'borderRight',
68
- scale: 'borders'
69
- },
70
- borderBottom: {
71
- property: 'borderBottom',
72
- scale: 'borders'
73
- },
74
- borderLeft: {
75
- property: 'borderLeft',
76
- scale: 'borders'
77
- },
78
- // Width
79
- borderWidth: {
80
- property: 'borderWidth'
81
- },
82
- borderWidthX: {
83
- property: 'borderWidth',
84
- properties: ['borderLeftWidth', 'borderRightWidth']
85
- },
86
- borderWidthY: {
87
- property: 'borderWidth',
88
- properties: ['borderTopWidth', 'borderBottomWidth']
89
- },
90
- borderWidthLeft: {
91
- property: 'borderLeftWidth'
92
- },
93
- borderWidthRight: {
94
- property: 'borderRightWidth'
95
- },
96
- borderWidthTop: {
97
- property: 'borderTopWidth'
98
- },
99
- borderWidthBottom: {
100
- property: 'borderBottomWidth'
101
- },
102
- // Radius
103
- borderRadius: {
104
- property: 'borderRadius',
105
- scale: 'borderRadii'
106
- },
107
- borderRadiusLeft: {
108
- property: 'borderRadius',
109
- properties: ['borderTopLeftRadius', 'borderBottomLeftRadius'],
110
- scale: 'borderRadii'
111
- },
112
- borderRadiusTop: {
113
- property: 'borderRadius',
114
- properties: ['borderTopLeftRadius', 'borderTopRightRadius'],
115
- scale: 'borderRadii'
116
- },
117
- borderRadiusBottom: {
118
- property: 'borderRadius',
119
- properties: ['borderBottomLeftRadius', 'borderBottomRightRadius'],
120
- scale: 'borderRadii'
121
- },
122
- borderRadiusRight: {
123
- property: 'borderRadius',
124
- properties: ['borderTopRightRadius', 'borderBottomRightRadius'],
125
- scale: 'borderRadii'
126
- },
127
- borderRadiusTopLeft: {
128
- property: 'borderTopLeftRadius',
129
- scale: 'borderRadii'
130
- },
131
- borderRadiusTopRight: {
132
- property: 'borderTopRightRadius',
133
- scale: 'borderRadii'
134
- },
135
- borderRadiusBottomRight: {
136
- property: 'borderBottomRightRadius',
137
- scale: 'borderRadii'
138
- },
139
- borderRadiusBottomLeft: {
140
- property: 'borderBottomLeftRadius',
141
- scale: 'borderRadii'
142
- },
143
- // Style
144
- borderStyle: {
145
- property: 'borderStyle'
146
- },
147
- borderStyleX: {
148
- property: 'borderStyle',
149
- properties: ['borderLeftStyle', 'borderRightStyle']
150
- },
151
- borderStyleY: {
152
- property: 'borderStyle',
153
- properties: ['borderTopStyle', 'borderBottomStyle']
154
- },
155
- borderStyleLeft: {
156
- property: 'borderLeftStyle'
157
- },
158
- borderStyleRight: {
159
- property: 'borderRightStyle'
160
- },
161
- borderStyleTop: {
162
- property: 'borderTopStyle'
163
- },
164
- borderStyleBottom: {
165
- property: 'borderBottomStyle'
166
- }
167
- };
168
- const selfAlignments = {
169
- justifySelf: {
170
- property: 'justifySelf'
171
- },
172
- alignSelf: {
173
- property: 'alignSelf'
174
- },
175
- gridArea: {
176
- property: 'gridArea'
177
- }
178
- };
179
- const alignments = {
180
- justifyContent: {
181
- property: 'justifyContent'
182
- },
183
- justifyItems: {
184
- property: 'justifyItems'
185
- },
186
- alignItems: {
187
- property: 'alignItems'
188
- },
189
- alignContent: {
190
- property: 'alignContent'
191
- },
192
- ...selfAlignments
193
- };
194
- const flexItems = {
195
- flexBasis: {
196
- property: 'flexBasis'
197
- },
198
- flexShrink: {
199
- property: 'flexShrink'
200
- },
201
- flexGrow: {
202
- property: 'flexGrow'
203
- },
204
- order: {
205
- property: 'order'
206
- }
207
- };
208
- export const flex = {
209
- flexDirection: {
210
- property: 'flexDirection'
211
- },
212
- flexWrap: {
213
- property: 'flexWrap'
214
- },
215
- flex: {
216
- property: 'flex'
217
- },
218
- ...alignments,
219
- ...flexItems
220
- };
221
- const gridItems = {
222
- gridColumn: {
223
- property: 'gridColumn'
224
- },
225
- gridRow: {
226
- property: 'gridRow'
227
- },
228
- gridColumnStart: {
229
- property: 'gridColumnStart'
230
- },
231
- gridRowStart: {
232
- property: 'gridRowStart'
233
- },
234
- gridColumnEnd: {
235
- property: 'gridColumnEnd'
236
- },
237
- gridRowEnd: {
238
- property: 'gridRowEnd'
239
- }
240
- };
241
- export const grid = {
242
- gridAutoColumns: {
243
- property: 'gridAutoColumns'
244
- },
245
- gridAutoRows: {
246
- property: 'gridAutoRows'
247
- },
248
- gridTemplateColumns: {
249
- property: 'gridTemplateColumns'
250
- },
251
- gridTemplateRows: {
252
- property: 'gridTemplateRows'
253
- },
254
- gridTemplateAreas: {
255
- property: 'gridTemplateAreas'
256
- },
257
- gridAutoFlow: {
258
- property: 'gridAutoFlow'
259
- },
260
- gap: {
261
- property: 'gap',
262
- scale: 'spacing'
263
- },
264
- rowGap: {
265
- property: 'rowGap',
266
- scale: 'spacing'
267
- },
268
- columnGap: {
269
- property: 'columnGap',
270
- scale: 'spacing'
271
- },
272
- ...alignments,
273
- ...gridItems
274
- };
275
- export const background = {
276
- background: {
277
- property: 'background'
278
- },
279
- backgroundImage: {
280
- property: 'backgroundImage'
281
- },
282
- backgroundSize: {
283
- property: 'backgroundSize'
284
- },
285
- backgroundRepeat: {
286
- property: 'backgroundRepeat'
287
- },
288
- backgroundPosition: {
289
- property: 'backgroundPosition'
290
- }
291
- };
292
- export const positioning = {
293
- position: {
294
- property: 'position'
295
- },
296
- inset: {
297
- property: 'inset',
298
- properties: ['top', 'right', 'bottom', 'left'],
299
- transform: transformSize
300
- },
301
- top: {
302
- property: 'top',
303
- transform: transformSize
304
- },
305
- right: {
306
- property: 'right',
307
- transform: transformSize
308
- },
309
- bottom: {
310
- property: 'bottom',
311
- transform: transformSize
312
- },
313
- left: {
314
- property: 'left',
315
- transform: transformSize
316
- },
317
- zIndex: {
318
- property: 'zIndex'
319
- },
320
- opacity: {
321
- property: 'opacity'
322
- }
323
- };
324
- export const shadows = {
325
- boxShadow: {
326
- property: 'boxShadow'
327
- },
328
- textShadow: {
329
- property: 'textShadow'
330
- }
331
- };
332
- export const layout = {
333
- containerType: {
334
- property: 'containerType'
335
- },
336
- display: {
337
- property: 'display'
338
- },
339
- overflow: {
340
- property: 'overflow'
341
- },
342
- overflowX: {
343
- property: 'overflowX'
344
- },
345
- overflowY: {
346
- property: 'overflowY'
347
- },
348
- dimensions: {
349
- property: 'width',
350
- properties: ['width', 'height'],
351
- transform: transformSize
352
- },
353
- width: {
354
- property: 'width',
355
- transform: transformSize
356
- },
357
- minWidth: {
358
- property: 'minWidth',
359
- transform: transformSize
360
- },
361
- maxWidth: {
362
- property: 'maxWidth',
363
- transform: transformSize
364
- },
365
- height: {
366
- property: 'height',
367
- transform: transformSize
368
- },
369
- minHeight: {
370
- property: 'minHeight',
371
- transform: transformSize
372
- },
373
- maxHeight: {
374
- property: 'maxHeight',
375
- transform: transformSize
376
- },
377
- verticalAlign: {
378
- property: 'verticalAlign'
379
- },
380
- ...selfAlignments,
381
- ...gridItems,
382
- ...flexItems
383
- };
384
- export const list = {
385
- listStyle: {
386
- property: 'listStyle'
387
- },
388
- listStyleType: {
389
- property: 'listStyleType'
390
- },
391
- listStylePosition: {
392
- property: 'listStylePosition'
393
- },
394
- listStyleImage: {
395
- property: 'listStyleImage'
396
- }
397
- };
398
- export const typography = {
399
- fontFamily: {
400
- property: 'fontFamily',
401
- scale: 'fontFamily'
402
- },
403
- fontWeight: {
404
- property: 'fontWeight',
405
- scale: 'fontWeight'
406
- },
407
- lineHeight: {
408
- property: 'lineHeight',
409
- scale: 'lineHeight'
410
- },
411
- fontSize: {
412
- property: 'fontSize',
413
- scale: 'fontSize'
414
- },
415
- letterSpacing: {
416
- property: 'letterSpacing'
417
- },
418
- textAlign: {
419
- property: 'textAlign'
420
- },
421
- fontStyle: {
422
- property: 'fontStyle'
423
- },
424
- textDecoration: {
425
- property: 'textDecoration'
426
- },
427
- textTransform: {
428
- property: 'textTransform'
429
- },
430
- whiteSpace: {
431
- property: 'whiteSpace'
432
- }
433
- };
434
- export const margin = {
435
- m: {
436
- property: 'margin',
437
- scale: 'spacing'
438
- },
439
- mx: {
440
- property: 'margin',
441
- properties: ['marginLeft', 'marginRight'],
442
- scale: 'spacing'
443
- },
444
- my: {
445
- property: 'margin',
446
- properties: ['marginTop', 'marginBottom'],
447
- scale: 'spacing'
448
- },
449
- mt: {
450
- property: 'marginTop',
451
- scale: 'spacing'
452
- },
453
- mb: {
454
- property: 'marginBottom',
455
- scale: 'spacing'
456
- },
457
- mr: {
458
- property: 'marginRight',
459
- scale: 'spacing'
460
- },
461
- ml: {
462
- property: 'marginLeft',
463
- scale: 'spacing'
464
- }
465
- };
466
- export const padding = {
467
- p: {
468
- property: 'padding',
469
- scale: 'spacing'
470
- },
471
- px: {
472
- property: 'padding',
473
- properties: ['paddingLeft', 'paddingRight'],
474
- scale: 'spacing'
475
- },
476
- py: {
477
- property: 'padding',
478
- properties: ['paddingTop', 'paddingBottom'],
479
- scale: 'spacing'
480
- },
481
- pt: {
482
- property: 'paddingTop',
483
- scale: 'spacing'
484
- },
485
- pb: {
486
- property: 'paddingBottom',
487
- scale: 'spacing'
488
- },
489
- pr: {
490
- property: 'paddingRight',
491
- scale: 'spacing'
492
- },
493
- pl: {
494
- property: 'paddingLeft',
495
- scale: 'spacing'
496
- }
497
- };
498
- export const space = {
499
- ...margin,
500
- ...padding
501
- };
502
- export const all = {
503
- ...typography,
504
- ...space,
505
- ...shadows,
506
- ...grid,
507
- ...flex,
508
- ...layout,
509
- ...positioning,
510
- ...border,
511
- ...background,
512
- ...color,
513
- ...list
514
- };
@@ -1,3 +0,0 @@
1
- export * as system from './props';
2
- export { css, variant, states } from './props';
3
- export * from './utils';
@@ -1,3 +0,0 @@
1
- export * as system from './props';
2
- export { css, variant, states } from './props';
3
- export * from './utils';