@codecademy/variance 0.20.6-alpha.86dcc7.0 → 0.20.6-alpha.87ed94.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.
|
@@ -6,10 +6,6 @@ function _defineProperties(target, props) { for (var i = 0; i < props.length; i+
|
|
|
6
6
|
|
|
7
7
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
8
8
|
|
|
9
|
-
function _classPrivateFieldInitSpec(obj, privateMap, value) { _checkPrivateRedeclaration(obj, privateMap); privateMap.set(obj, value); }
|
|
10
|
-
|
|
11
|
-
function _checkPrivateRedeclaration(obj, privateCollection) { if (privateCollection.has(obj)) { throw new TypeError("Cannot initialize the same private elements twice on an object"); } }
|
|
12
|
-
|
|
13
9
|
function _classPrivateFieldGet(receiver, privateMap) { var descriptor = _classExtractFieldDescriptor(receiver, privateMap, "get"); return _classApplyDescriptorGet(receiver, descriptor); }
|
|
14
10
|
|
|
15
11
|
function _classApplyDescriptorGet(receiver, descriptor) { if (descriptor.get) { return descriptor.get.call(receiver); } return descriptor.value; }
|
|
@@ -24,13 +20,13 @@ import { mapValues, merge } from 'lodash';
|
|
|
24
20
|
import { flattenScale } from '../utils/flattenScale';
|
|
25
21
|
import { serializeTokens } from '../utils/serializeTokens';
|
|
26
22
|
|
|
27
|
-
var _theme =
|
|
23
|
+
var _theme = new WeakMap();
|
|
28
24
|
|
|
29
25
|
var ThemeBuilder = /*#__PURE__*/function () {
|
|
30
26
|
function ThemeBuilder(baseTheme) {
|
|
31
27
|
_classCallCheck(this, ThemeBuilder);
|
|
32
28
|
|
|
33
|
-
|
|
29
|
+
_theme.set(this, {
|
|
34
30
|
writable: true,
|
|
35
31
|
value: {}
|
|
36
32
|
});
|
package/dist/utils/responsive.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _excluded = ["_"];
|
|
2
|
-
|
|
3
1
|
function _toArray(arr) { return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest(); }
|
|
4
2
|
|
|
5
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -52,7 +50,7 @@ export var objectParser = function objectParser(value, props, config, breakpoint
|
|
|
52
50
|
prop = config.prop;
|
|
53
51
|
|
|
54
52
|
var _ = value._,
|
|
55
|
-
rest = _objectWithoutProperties(value,
|
|
53
|
+
rest = _objectWithoutProperties(value, ["_"]); // the keyof 'base' is base styles
|
|
56
54
|
|
|
57
55
|
|
|
58
56
|
if (_) Object.assign(styles, styleFn(_, prop, props)); // Map over remaining keys and merge the corresponding breakpoint styles
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
var _excluded = ["_", "base"];
|
|
2
|
-
|
|
3
1
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
2
|
|
|
5
3
|
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; }
|
|
@@ -12,7 +10,7 @@ var templateBreakpoints = function templateBreakpoints(value, alias, theme) {
|
|
|
12
10
|
if (isObject(value)) {
|
|
13
11
|
var _ = value._,
|
|
14
12
|
base = value.base,
|
|
15
|
-
rest = _objectWithoutProperties(value,
|
|
13
|
+
rest = _objectWithoutProperties(value, ["_", "base"]);
|
|
16
14
|
|
|
17
15
|
var css = _defineProperty({}, alias, _ !== null && _ !== void 0 ? _ : base);
|
|
18
16
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codecademy/variance",
|
|
3
3
|
"description": "Constraint based CSS in JS for building scalable design systems",
|
|
4
|
-
"version": "0.20.6-alpha.
|
|
4
|
+
"version": "0.20.6-alpha.87ed94.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"emotion",
|
|
7
7
|
"css",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"react": "18.2.0",
|
|
43
43
|
"react-test-renderer": "18.2.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "aafa78b8da87448b6d6fc5ec810e072cc37d8fb2"
|
|
46
46
|
}
|