@commercetools-uikit/constraints 12.2.3 → 13.0.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.
@@ -49,16 +49,16 @@ var getAcceptedMaxPropValues = function getAcceptedMaxPropValues() {
49
49
 
50
50
  var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
51
51
  var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;
52
- return _concatInstanceProperty__default['default'](_context = []).call(_context, _toConsumableArray(_mapInstanceProperty__default['default'](_context2 = _Array$from__default['default']({
52
+ return _concatInstanceProperty__default["default"](_context = []).call(_context, _toConsumableArray(_mapInstanceProperty__default["default"](_context2 = _Array$from__default["default"]({
53
53
  length: max - min + 1
54
54
  })).call(_context2, function (_, index) {
55
55
  return index + min;
56
56
  })), ['scale', 'auto']);
57
57
  };
58
58
 
59
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default['default'](object); if (_Object$getOwnPropertySymbols__default['default']) { var symbols = _Object$getOwnPropertySymbols__default['default'](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default['default'](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default['default'](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
59
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
60
60
 
61
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default['default'](_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default['default']) { _Object$defineProperties__default['default'](target, _Object$getOwnPropertyDescriptors__default['default'](source)); } else { var _context2; _forEachInstanceProperty__default['default'](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default['default'](target, key, _Object$getOwnPropertyDescriptor__default['default'](source, key)); }); } } return target; }
61
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
62
62
 
63
63
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
64
64
 
@@ -86,13 +86,13 @@ var Horizontal = function Horizontal(props) {
86
86
  };
87
87
 
88
88
  Horizontal.propTypes = process.env.NODE_ENV !== "production" ? {
89
- max: _pt__default['default'].oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
90
- children: _pt__default['default'].node.isRequired
89
+ max: _pt__default["default"].oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 'scale', 'auto']),
90
+ children: _pt__default["default"].node.isRequired
91
91
  } : {};
92
92
  var Horizontal$1 = Horizontal;
93
93
 
94
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
95
- var version = '12.2.3';
94
+ // NOTE: This string will be replaced on build time with the package version.
95
+ var version = "13.0.0";
96
96
 
97
97
  // eslint-disable-next-line import/prefer-default-export
98
98
  var Constraints = {
@@ -100,5 +100,5 @@ var Constraints = {
100
100
  getAcceptedMaxPropValues: getAcceptedMaxPropValues
101
101
  };
102
102
 
103
- exports['default'] = Constraints;
103
+ exports["default"] = Constraints;
104
104
  exports.version = version;
@@ -48,16 +48,16 @@ var getAcceptedMaxPropValues = function getAcceptedMaxPropValues() {
48
48
 
49
49
  var min = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 1;
50
50
  var max = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 16;
51
- return _concatInstanceProperty__default['default'](_context = []).call(_context, _toConsumableArray(_mapInstanceProperty__default['default'](_context2 = _Array$from__default['default']({
51
+ return _concatInstanceProperty__default["default"](_context = []).call(_context, _toConsumableArray(_mapInstanceProperty__default["default"](_context2 = _Array$from__default["default"]({
52
52
  length: max - min + 1
53
53
  })).call(_context2, function (_, index) {
54
54
  return index + min;
55
55
  })), ['scale', 'auto']);
56
56
  };
57
57
 
58
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default['default'](object); if (_Object$getOwnPropertySymbols__default['default']) { var symbols = _Object$getOwnPropertySymbols__default['default'](object); if (enumerableOnly) { symbols = _filterInstanceProperty__default['default'](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default['default'](object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
58
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
59
59
 
60
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty__default['default'](_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors__default['default']) { _Object$defineProperties__default['default'](target, _Object$getOwnPropertyDescriptors__default['default'](source)); } else { var _context2; _forEachInstanceProperty__default['default'](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default['default'](target, key, _Object$getOwnPropertyDescriptor__default['default'](source, key)); }); } } return target; }
60
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
61
61
 
62
62
  function getConstraintStyles(maxProp) {
63
63
  var constraintToken = maxProp ? getMaxPropTokenValue(maxProp) : null;
@@ -80,8 +80,8 @@ var Horizontal = function Horizontal(props) {
80
80
  Horizontal.propTypes = {};
81
81
  var Horizontal$1 = Horizontal;
82
82
 
83
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
84
- var version = '12.2.3';
83
+ // NOTE: This string will be replaced on build time with the package version.
84
+ var version = "13.0.0";
85
85
 
86
86
  // eslint-disable-next-line import/prefer-default-export
87
87
  var Constraints = {
@@ -89,5 +89,5 @@ var Constraints = {
89
89
  getAcceptedMaxPropValues: getAcceptedMaxPropValues
90
90
  };
91
91
 
92
- exports['default'] = Constraints;
92
+ exports["default"] = Constraints;
93
93
  exports.version = version;
@@ -37,9 +37,9 @@ var getAcceptedMaxPropValues = function getAcceptedMaxPropValues() {
37
37
  })), ['scale', 'auto']);
38
38
  };
39
39
 
40
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); if (enumerableOnly) { symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
40
+ function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
41
41
 
42
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { var _context; _forEachInstanceProperty(_context = ownKeys(Object(source), true)).call(_context, function (key) { _defineProperty(target, key, source[key]); }); } else if (_Object$getOwnPropertyDescriptors) { _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)); } else { var _context2; _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } } return target; }
42
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
43
43
 
44
44
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
45
45
 
@@ -72,8 +72,8 @@ Horizontal.propTypes = process.env.NODE_ENV !== "production" ? {
72
72
  } : {};
73
73
  var Horizontal$1 = Horizontal;
74
74
 
75
- // NOTE: This string will be replaced in the `prepare` script by the `scripts/version.js` file.
76
- var version = '12.2.3';
75
+ // NOTE: This string will be replaced on build time with the package version.
76
+ var version = "13.0.0";
77
77
 
78
78
  // eslint-disable-next-line import/prefer-default-export
79
79
  var Constraints = {
@@ -1,3 +1,3 @@
1
- declare const getMaxPropTokenValue: (max: number | string | null) => any;
2
- declare const getAcceptedMaxPropValues: (min?: number, max?: number) => (string | number)[];
3
- export { getMaxPropTokenValue, getAcceptedMaxPropValues };
1
+ declare const getMaxPropTokenValue: (max: number | string | null) => any;
2
+ declare const getAcceptedMaxPropValues: (min?: number, max?: number) => (string | number)[];
3
+ export { getMaxPropTokenValue, getAcceptedMaxPropValues };
@@ -1,8 +1,8 @@
1
- import { ReactNode } from 'react';
2
- declare type TMaxProp = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
3
- declare type TProps = {
4
- max?: TMaxProp;
5
- children: ReactNode;
6
- };
7
- declare const Horizontal: (props: TProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
- export default Horizontal;
1
+ import { ReactNode } from 'react';
2
+ declare type TMaxProp = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 'scale' | 'auto';
3
+ declare type TProps = {
4
+ max?: TMaxProp;
5
+ children: ReactNode;
6
+ };
7
+ declare const Horizontal: (props: TProps) => import("@emotion/react/jsx-runtime").JSX.Element;
8
+ export default Horizontal;
@@ -1 +1 @@
1
- export { default } from './horizontal';
1
+ export { default } from './horizontal';
@@ -1,10 +1,10 @@
1
- /// <reference types="react" />
2
- declare const Constraints: {
3
- Horizontal: (props: {
4
- max?: (1 | 7 | 2 | 10 | "scale" | "auto" | 3 | 4 | 5 | 6 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16) | undefined;
5
- children: import("react").ReactNode;
6
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
7
- getAcceptedMaxPropValues: (min?: number, max?: number) => (string | number)[];
8
- };
9
- export default Constraints;
10
- export { default as version } from './version';
1
+ /// <reference types="react" />
2
+ declare const Constraints: {
3
+ Horizontal: (props: {
4
+ max?: (1 | 7 | 2 | 10 | 3 | 4 | 5 | "scale" | "auto" | 6 | 8 | 9 | 11 | 12 | 13 | 14 | 15 | 16) | undefined;
5
+ children: import("react").ReactNode;
6
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
7
+ getAcceptedMaxPropValues: (min?: number, max?: number) => (string | number)[];
8
+ };
9
+ export default Constraints;
10
+ export { default as version } from './version';
@@ -1,2 +1,2 @@
1
- declare const _default: "12.2.3";
2
- export default _default;
1
+ declare const _default: "__@UI_KIT_PACKAGE/VERSION_OF_RELEASE__";
2
+ export default _default;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/constraints",
3
3
  "description": "Constraints are container elements with a configurable constraint size, like width or height.",
4
- "version": "12.2.3",
4
+ "version": "13.0.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -11,7 +11,6 @@
11
11
  "homepage": "https://uikit.commercetools.com",
12
12
  "keywords": ["javascript", "design system", "react", "uikit"],
13
13
  "license": "MIT",
14
- "private": false,
15
14
  "publishConfig": {
16
15
  "access": "public"
17
16
  },
@@ -19,17 +18,14 @@
19
18
  "main": "dist/commercetools-uikit-constraints.cjs.js",
20
19
  "module": "dist/commercetools-uikit-constraints.esm.js",
21
20
  "files": ["dist"],
22
- "scripts": {
23
- "prepare": "../../../scripts/version.js replace"
24
- },
25
21
  "dependencies": {
26
- "@babel/runtime": "7.14.8",
27
- "@babel/runtime-corejs3": "7.14.9",
28
- "@commercetools-uikit/design-system": "12.2.3",
29
- "@commercetools-uikit/utils": "12.2.0",
22
+ "@babel/runtime": "7.17.2",
23
+ "@babel/runtime-corejs3": "7.17.2",
24
+ "@commercetools-uikit/design-system": "13.0.0",
25
+ "@commercetools-uikit/utils": "12.2.9",
30
26
  "@emotion/react": "^11.4.0",
31
27
  "@emotion/styled": "^11.3.0",
32
- "prop-types": "15.7.2"
28
+ "prop-types": "15.8.1"
33
29
  },
34
30
  "devDependencies": {
35
31
  "react": "17.0.2"