@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.
- package/package.json +3 -7
- package/dist/AssetProvider.d.ts +0 -3
- package/dist/AssetProvider.js +0 -23
- package/dist/Background.d.ts +0 -6
- package/dist/Background.js +0 -86
- package/dist/ColorMode.d.ts +0 -1278
- package/dist/ColorMode.js +0 -145
- package/dist/GamutProvider.d.ts +0 -16
- package/dist/GamutProvider.js +0 -64
- package/dist/cache/createEmotionCache.d.ts +0 -4
- package/dist/cache/createEmotionCache.js +0 -40
- package/dist/cache/index.d.ts +0 -1
- package/dist/cache/index.js +0 -1
- package/dist/cache/stylisPlugins/focusVisible.d.ts +0 -2
- package/dist/cache/stylisPlugins/focusVisible.js +0 -9
- package/dist/cache/stylisPlugins/index.d.ts +0 -1
- package/dist/cache/stylisPlugins/index.js +0 -1
- package/dist/globals/Reboot.d.ts +0 -2
- package/dist/globals/Reboot.js +0 -9
- package/dist/globals/Typography.d.ts +0 -2
- package/dist/globals/Typography.js +0 -25
- package/dist/globals/Variables.d.ts +0 -5
- package/dist/globals/Variables.js +0 -31
- package/dist/globals/index.d.ts +0 -2
- package/dist/globals/index.js +0 -2
- package/dist/index.d.ts +0 -13
- package/dist/index.js +0 -13
- package/dist/remoteAssets/fonts.d.ts +0 -26
- package/dist/remoteAssets/fonts.js +0 -31
- package/dist/styles/boxShadow.d.ts +0 -26
- package/dist/styles/boxShadow.js +0 -45
- package/dist/styles/fontSmoothing.d.ts +0 -29
- package/dist/styles/fontSmoothing.js +0 -29
- package/dist/styles/index.d.ts +0 -7
- package/dist/styles/index.js +0 -7
- package/dist/styles/noSelect.d.ts +0 -1
- package/dist/styles/noSelect.js +0 -11
- package/dist/styles/pxRem.d.ts +0 -1
- package/dist/styles/pxRem.js +0 -4
- package/dist/styles/responsive.d.ts +0 -6
- package/dist/styles/responsive.js +0 -14
- package/dist/styles/screenReaderOnly.d.ts +0 -2
- package/dist/styles/screenReaderOnly.js +0 -20
- package/dist/styles/transitionConcat.d.ts +0 -3
- package/dist/styles/transitionConcat.js +0 -7
- package/dist/themes/admin.d.ts +0 -874
- package/dist/themes/admin.js +0 -15
- package/dist/themes/core.d.ts +0 -472
- package/dist/themes/core.js +0 -111
- package/dist/themes/index.d.ts +0 -3
- package/dist/themes/index.js +0 -3
- package/dist/themes/platform.d.ts +0 -1019
- package/dist/themes/platform.js +0 -73
- package/dist/typings/theme.d.ts +0 -6
- package/dist/utilities/index.d.ts +0 -1
- package/dist/utilities/index.js +0 -1
- package/dist/utilities/themed.d.ts +0 -14
- package/dist/utilities/themed.js +0 -17
- package/dist/variables/colors.d.ts +0 -193
- package/dist/variables/colors.js +0 -149
- package/dist/variables/deprecated-colors.d.ts +0 -156
- package/dist/variables/deprecated-colors.js +0 -155
- package/dist/variables/elements.d.ts +0 -11
- package/dist/variables/elements.js +0 -11
- package/dist/variables/index.d.ts +0 -7
- package/dist/variables/index.js +0 -8
- package/dist/variables/responsive.d.ts +0 -19
- package/dist/variables/responsive.js +0 -21
- package/dist/variables/spacing.d.ts +0 -13
- package/dist/variables/spacing.js +0 -14
- package/dist/variables/timing.d.ts +0 -10
- package/dist/variables/timing.js +0 -10
- package/dist/variables/typography.d.ts +0 -32
- package/dist/variables/typography.js +0 -33
- package/dist/variance/config.d.ts +0 -1002
- package/dist/variance/config.js +0 -471
- package/dist/variance/index.d.ts +0 -3
- package/dist/variance/index.js +0 -4
- package/dist/variance/props.d.ts +0 -1865
- package/dist/variance/props.js +0 -23
- package/dist/variance/utils.d.ts +0 -29
- 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
|
-
};
|
package/dist/variables/index.js
DELETED
|
@@ -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
|
-
};
|
package/dist/variables/timing.js
DELETED
|
@@ -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
|
-
};
|