@codecademy/gamut-styles 14.2.4-alpha.7d4aaf.0 → 14.2.4-alpha.86dcc7.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/dist/AssetProvider.d.ts
CHANGED
package/dist/Background.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
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
2
|
|
|
3
|
+
var _excluded = ["bg"];
|
|
4
|
+
|
|
3
5
|
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; }
|
|
4
6
|
|
|
5
7
|
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; }
|
|
@@ -37,7 +39,7 @@ var isColorAlias = function isColorAlias(mode, color) {
|
|
|
37
39
|
|
|
38
40
|
export var Background = /*#__PURE__*/forwardRef(function Background(_ref, ref) {
|
|
39
41
|
var bg = _ref.bg,
|
|
40
|
-
rest = _objectWithoutProperties(_ref,
|
|
42
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
41
43
|
|
|
42
44
|
var _useColorModes = useColorModes(),
|
|
43
45
|
_useColorModes2 = _slicedToArray(_useColorModes, 4),
|
package/dist/ColorMode.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import _styled from "@emotion/styled/base";
|
|
2
|
+
var _excluded = ["mode", "alwaysSetVariables", "bg"];
|
|
2
3
|
|
|
3
4
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
5
|
|
|
@@ -108,7 +109,7 @@ export var ColorMode = /*#__PURE__*/forwardRef(function ColorMode(_ref4, ref) {
|
|
|
108
109
|
var preference = _ref4.mode,
|
|
109
110
|
alwaysSetVariables = _ref4.alwaysSetVariables,
|
|
110
111
|
bg = _ref4.bg,
|
|
111
|
-
rest = _objectWithoutProperties(_ref4,
|
|
112
|
+
rest = _objectWithoutProperties(_ref4, _excluded);
|
|
112
113
|
|
|
113
114
|
// checks if the user has set 'system' as their color mode preference
|
|
114
115
|
// then sets the color mode
|
package/dist/globals/Reboot.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/gamut-styles",
|
|
3
3
|
"description": "Styleguide & Component library for codecademy.com",
|
|
4
|
-
"version": "14.2.4-alpha.
|
|
4
|
+
"version": "14.2.4-alpha.86dcc7.0",
|
|
5
5
|
"author": "Jake Hiller <jake@codecademy.com>",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "git@github.com:Codecademy/gamut.git"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@codecademy/variance": "0.20.6-alpha.
|
|
24
|
+
"@codecademy/variance": "0.20.6-alpha.86dcc7.0",
|
|
25
25
|
"@emotion/is-prop-valid": "^1.1.0",
|
|
26
26
|
"polished": "^4.1.2"
|
|
27
27
|
},
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "9ccd2e9b97b0b4f2f5f853882000110792587b1d"
|
|
46
46
|
}
|