@codecademy/gamut-styles 16.1.2 → 16.1.3-alpha.187436.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 (82) hide show
  1. package/package.json +3 -7
  2. package/dist/AssetProvider.d.ts +0 -3
  3. package/dist/AssetProvider.js +0 -23
  4. package/dist/Background.d.ts +0 -6
  5. package/dist/Background.js +0 -86
  6. package/dist/ColorMode.d.ts +0 -1278
  7. package/dist/ColorMode.js +0 -145
  8. package/dist/GamutProvider.d.ts +0 -16
  9. package/dist/GamutProvider.js +0 -64
  10. package/dist/cache/createEmotionCache.d.ts +0 -4
  11. package/dist/cache/createEmotionCache.js +0 -40
  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 -9
  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 -2
  19. package/dist/globals/Reboot.js +0 -9
  20. package/dist/globals/Typography.d.ts +0 -2
  21. package/dist/globals/Typography.js +0 -25
  22. package/dist/globals/Variables.d.ts +0 -5
  23. package/dist/globals/Variables.js +0 -31
  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 -31
  30. package/dist/styles/boxShadow.d.ts +0 -26
  31. package/dist/styles/boxShadow.js +0 -45
  32. package/dist/styles/fontSmoothing.d.ts +0 -29
  33. package/dist/styles/fontSmoothing.js +0 -29
  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 -14
  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 -7
  46. package/dist/themes/admin.d.ts +0 -874
  47. package/dist/themes/admin.js +0 -15
  48. package/dist/themes/core.d.ts +0 -472
  49. package/dist/themes/core.js +0 -111
  50. package/dist/themes/index.d.ts +0 -3
  51. package/dist/themes/index.js +0 -3
  52. package/dist/themes/platform.d.ts +0 -1019
  53. package/dist/themes/platform.js +0 -73
  54. package/dist/typings/theme.d.ts +0 -6
  55. package/dist/utilities/index.d.ts +0 -1
  56. package/dist/utilities/index.js +0 -1
  57. package/dist/utilities/themed.d.ts +0 -14
  58. package/dist/utilities/themed.js +0 -17
  59. package/dist/variables/colors.d.ts +0 -193
  60. package/dist/variables/colors.js +0 -149
  61. package/dist/variables/deprecated-colors.d.ts +0 -156
  62. package/dist/variables/deprecated-colors.js +0 -155
  63. package/dist/variables/elements.d.ts +0 -11
  64. package/dist/variables/elements.js +0 -11
  65. package/dist/variables/index.d.ts +0 -7
  66. package/dist/variables/index.js +0 -8
  67. package/dist/variables/responsive.d.ts +0 -19
  68. package/dist/variables/responsive.js +0 -21
  69. package/dist/variables/spacing.d.ts +0 -13
  70. package/dist/variables/spacing.js +0 -14
  71. package/dist/variables/timing.d.ts +0 -10
  72. package/dist/variables/timing.js +0 -10
  73. package/dist/variables/typography.d.ts +0 -32
  74. package/dist/variables/typography.js +0 -33
  75. package/dist/variance/config.d.ts +0 -1002
  76. package/dist/variance/config.js +0 -471
  77. package/dist/variance/index.d.ts +0 -3
  78. package/dist/variance/index.js +0 -4
  79. package/dist/variance/props.d.ts +0 -1865
  80. package/dist/variance/props.js +0 -23
  81. package/dist/variance/utils.d.ts +0 -29
  82. package/dist/variance/utils.js +0 -43
@@ -1,155 +0,0 @@
1
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
3
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
6
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
7
- import { flattenScale } from '@codecademy/variance';
8
- import { corePalette } from './colors';
9
- var black = corePalette.black,
10
- white = corePalette.white;
11
- /**
12
- * @deprecated
13
- * Using these variables directly is no longer supported.
14
- *
15
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
16
- */
17
- export var interactiveColors = {
18
- dark: corePalette.hyper,
19
- light: corePalette.yellow
20
- };
21
-
22
- /**
23
- * @deprecated
24
- * Using these variables directly is no longer supported.
25
- *
26
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
27
- */
28
-
29
- export var editorColors = {
30
- blue: '#83fff5',
31
- deepPurple: '#cc7bc2',
32
- gray: '#939598',
33
- green: '#b4d353',
34
- orange: '#ff8973',
35
- purple: '#b3ccff',
36
- red: '#ea6c8b',
37
- yellow: '#ffe083'
38
- };
39
-
40
- /**
41
- * @deprecated
42
- * Using these variables directly is no longer supported.
43
- *
44
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
45
- */
46
-
47
- export var platformColors = {
48
- mint: {
49
- '500': '#37c3be',
50
- '600': '#2c9c98',
51
- '700': '#217572'
52
- },
53
- purple: {
54
- '200': '#c3c1d7',
55
- '300': '#a5a1c2',
56
- '400': '#8782ae',
57
- '500': '#69639a',
58
- '600': '#544f7b',
59
- '700': '#3f3b5c',
60
- '800': '#2a283e',
61
- '900': '#15141f'
62
- }
63
- };
64
-
65
- /**
66
- * @deprecated
67
- * Using these variables directly is no longer supported.
68
- *
69
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
70
- */
71
-
72
- export var swatches = {
73
- beige: {
74
- '0': '#FFF0E5'
75
- },
76
- blue: {
77
- '0': '#F5FCFF',
78
- '300': '#66C4FF',
79
- '500': '#1557FF',
80
- '800': '#1D2340',
81
- '900': '#10162f'
82
- },
83
- green: {
84
- '0': '#F5FFE3',
85
- '400': '#AEE938',
86
- '700': '#008A27'
87
- },
88
- yellow: {
89
- '0': '#FFFAE5',
90
- '400': '#CCA900',
91
- '500': '#FFD300'
92
- },
93
- pink: {
94
- '0': '#FFF5FF',
95
- '400': '#F966FF'
96
- },
97
- red: {
98
- '500': '#E91C11'
99
- },
100
- orange: {
101
- '500': '#FF8C00'
102
- },
103
- hyper: {
104
- '400': '#5533FF',
105
- '500': '#3A10E5'
106
- },
107
- gray: {
108
- '0': white,
109
- '100': '#f6f5fa',
110
- '200': '#dddce0',
111
- '300': '#c4c3c7',
112
- '400': '#a2a2a6',
113
- '500': '#828285',
114
- '600': '#646466',
115
- '700': '#4b4b4d',
116
- '800': '#323233',
117
- '900': '#19191a'
118
- }
119
- };
120
-
121
- /**
122
- * @deprecated
123
- * Using these variables directly is no longer supported.
124
- *
125
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
126
- */
127
-
128
- var trueColors = {
129
- beige: swatches.beige[0],
130
- blue: swatches.blue[500],
131
- green: swatches.green[700],
132
- hyper: swatches.hyper[500],
133
- lightBlue: swatches.blue[300],
134
- lightGreen: swatches.green[400],
135
- navy: swatches.blue[900],
136
- orange: swatches.orange[500],
137
- paleBlue: swatches.blue[0],
138
- paleGreen: swatches.green[0],
139
- palePink: swatches.pink[0],
140
- paleYellow: swatches.yellow[0],
141
- pink: swatches.pink[400],
142
- red: swatches.red[500],
143
- yellow: swatches.yellow[500],
144
- black: black,
145
- white: white
146
- };
147
-
148
- /**
149
- * @deprecated
150
- * Using these variables directly is no longer supported.
151
- *
152
- * Please use [`theme.colors`](https://gamut.codecademy.com/storybook/?path=/docs/foundations-theme--colors#standard-colors)
153
- */
154
-
155
- export var colors = _objectSpread(_objectSpread({}, flattenScale(swatches)), trueColors);
@@ -1,11 +0,0 @@
1
- export declare const elements: {
2
- readonly headerHeight: {
3
- readonly base: "4rem";
4
- readonly md: "5rem";
5
- };
6
- /**
7
- * Semi-arbitrary z-index for global page headers.
8
- * @remarks PLEASE talk to web platform before adding new z-index constants!
9
- */
10
- readonly headerZ: 15;
11
- };
@@ -1,11 +0,0 @@
1
- export var elements = {
2
- headerHeight: {
3
- base: '4rem',
4
- md: '5rem'
5
- },
6
- /**
7
- * Semi-arbitrary z-index for global page headers.
8
- * @remarks PLEASE talk to web platform before adding new z-index constants!
9
- */
10
- headerZ: 15
11
- };
@@ -1,7 +0,0 @@
1
- export * from './colors';
2
- export * from './responsive';
3
- export * from './spacing';
4
- export * from './typography';
5
- export * from './timing';
6
- export * from './elements';
7
- export * from './deprecated-colors';
@@ -1,8 +0,0 @@
1
- export * from './colors';
2
- export * from './responsive';
3
- export * from './spacing';
4
- export * from './typography';
5
- export * from './timing';
6
- export * from './elements';
7
- // Deprecated variables
8
- export * from './deprecated-colors';
@@ -1,19 +0,0 @@
1
- export declare const breakpoints: {
2
- readonly xs: "480px";
3
- readonly sm: "768px";
4
- readonly md: "1024px";
5
- readonly lg: "1200px";
6
- readonly xl: "1440px";
7
- };
8
- export declare type MediaSize = keyof typeof breakpoints;
9
- export declare const mediaQueries: {
10
- xs: string;
11
- sm: string;
12
- md: string;
13
- lg: string;
14
- xl: string;
15
- };
16
- export declare const contentWidths: {
17
- md: "1200px";
18
- max: "1440px";
19
- };
@@ -1,21 +0,0 @@
1
- export var breakpoints = {
2
- xs: '480px',
3
- sm: '768px',
4
- md: '1024px',
5
- lg: '1200px',
6
- xl: '1440px'
7
- };
8
- var createMediaQuery = function createMediaQuery(size, direction) {
9
- return "@media only screen and (".concat(direction, "-width: ").concat(breakpoints[size], ")");
10
- };
11
- export var mediaQueries = {
12
- xs: createMediaQuery('xs', 'min'),
13
- sm: createMediaQuery('sm', 'min'),
14
- md: createMediaQuery('md', 'min'),
15
- lg: createMediaQuery('lg', 'min'),
16
- xl: createMediaQuery('xl', 'min')
17
- };
18
- export var contentWidths = {
19
- md: breakpoints.lg,
20
- max: breakpoints.xl
21
- };
@@ -1,13 +0,0 @@
1
- export declare const spacing: {
2
- readonly 0: 0;
3
- readonly 4: string;
4
- readonly 8: string;
5
- readonly 12: string;
6
- readonly 16: string;
7
- readonly 24: string;
8
- readonly 32: string;
9
- readonly 40: string;
10
- readonly 48: string;
11
- readonly 64: string;
12
- readonly 96: string;
13
- };
@@ -1,14 +0,0 @@
1
- import { pxRem } from '../styles/pxRem';
2
- export var spacing = {
3
- 0: 0,
4
- 4: pxRem(4),
5
- 8: pxRem(8),
6
- 12: pxRem(12),
7
- 16: pxRem(16),
8
- 24: pxRem(24),
9
- 32: pxRem(32),
10
- 40: pxRem(40),
11
- 48: pxRem(48),
12
- 64: pxRem(64),
13
- 96: pxRem(96)
14
- };
@@ -1,10 +0,0 @@
1
- export declare const timingValues: {
2
- fast: number;
3
- medium: number;
4
- slow: number;
5
- };
6
- export declare const timing: {
7
- fast: string;
8
- medium: string;
9
- slow: string;
10
- };
@@ -1,10 +0,0 @@
1
- export var timingValues = {
2
- fast: 150,
3
- medium: 200,
4
- slow: 350
5
- };
6
- export var timing = {
7
- fast: "".concat(timingValues.fast, "ms"),
8
- medium: "".concat(timingValues.medium, "ms"),
9
- slow: "".concat(timingValues.slow, "ms")
10
- };
@@ -1,32 +0,0 @@
1
- export declare const fontAccent = "\"Suisse\", \"Apercu\", -apple-system, BlinkMacSystemFont,\n\"Segoe UI\", \"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\",\n\"Helvetica Neue\", sans-serif";
2
- export declare const fontBase = "\"Apercu\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
3
- export declare const fontMonospace = "Monaco, Menlo, \"Ubuntu Mono\", \"Droid Sans Mono\", Consolas,\nmonospace";
4
- export declare const fontSystem = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Ubuntu\",\n\"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
5
- export declare const fontFamily: {
6
- readonly accent: "\"Suisse\", \"Apercu\", -apple-system, BlinkMacSystemFont,\n\"Segoe UI\", \"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\",\n\"Helvetica Neue\", sans-serif";
7
- readonly base: "\"Apercu\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
8
- readonly monospace: "Monaco, Menlo, \"Ubuntu Mono\", \"Droid Sans Mono\", Consolas,\nmonospace";
9
- readonly system: "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Ubuntu\",\n\"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
10
- };
11
- export declare const fontSize: {
12
- readonly 64: string;
13
- readonly 44: string;
14
- readonly 34: string;
15
- readonly 26: string;
16
- readonly 22: string;
17
- readonly 20: string;
18
- readonly 18: string;
19
- readonly 16: string;
20
- readonly 14: string;
21
- };
22
- export declare const lineHeight: {
23
- readonly base: 1.5;
24
- readonly spacedTitle: 1.3;
25
- readonly title: 1.2;
26
- };
27
- export declare const fontWeight: {
28
- readonly base: 400;
29
- readonly title: 700;
30
- readonly 700: 700;
31
- readonly 400: 400;
32
- };
@@ -1,33 +0,0 @@
1
- import { pxRem } from '../styles/pxRem';
2
- export var fontAccent = "\"Suisse\", \"Apercu\", -apple-system, BlinkMacSystemFont,\n\"Segoe UI\", \"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\",\n\"Helvetica Neue\", sans-serif";
3
- export var fontBase = "\"Apercu\", -apple-system, BlinkMacSystemFont, \"Segoe UI\",\n\"Roboto\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\",\nsans-serif";
4
- export var fontMonospace = "Monaco, Menlo, \"Ubuntu Mono\", \"Droid Sans Mono\", Consolas,\nmonospace";
5
- export var fontSystem = "-apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Ubuntu\",\n\"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif";
6
- export var fontFamily = {
7
- accent: fontAccent,
8
- base: fontBase,
9
- monospace: fontMonospace,
10
- system: fontSystem
11
- };
12
- export var fontSize = {
13
- 64: pxRem(64),
14
- 44: pxRem(44),
15
- 34: pxRem(34),
16
- 26: pxRem(26),
17
- 22: pxRem(22),
18
- 20: pxRem(20),
19
- 18: pxRem(18),
20
- 16: pxRem(16),
21
- 14: pxRem(14)
22
- };
23
- export var lineHeight = {
24
- base: 1.5,
25
- spacedTitle: 1.3,
26
- title: 1.2
27
- };
28
- export var fontWeight = {
29
- base: 400,
30
- title: 700,
31
- 700: 700,
32
- 400: 400
33
- };