@commercetools-uikit/card 19.26.0 → 20.1.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.
@@ -12,8 +12,6 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
12
12
  var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
13
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
15
- var _pt = require('prop-types');
16
- require('react');
17
15
  var react = require('@emotion/react');
18
16
  var designSystem = require('@commercetools-uikit/design-system');
19
17
  var utils = require('@commercetools-uikit/utils');
@@ -31,7 +29,6 @@ var _forEachInstanceProperty__default = /*#__PURE__*/_interopDefault(_forEachIns
31
29
  var _Object$getOwnPropertyDescriptors__default = /*#__PURE__*/_interopDefault(_Object$getOwnPropertyDescriptors);
32
30
  var _Object$defineProperties__default = /*#__PURE__*/_interopDefault(_Object$defineProperties);
33
31
  var _Object$defineProperty__default = /*#__PURE__*/_interopDefault(_Object$defineProperty);
34
- var _pt__default = /*#__PURE__*/_interopDefault(_pt);
35
32
  var Inset__default = /*#__PURE__*/_interopDefault(Inset);
36
33
 
37
34
  const _excluded = ["type", "theme", "insetScale"];
@@ -95,22 +92,11 @@ const Card = _ref => {
95
92
  children: content
96
93
  }));
97
94
  };
98
- Card.propTypes = process.env.NODE_ENV !== "production" ? {
99
- type: _pt__default["default"].oneOf(['raised', 'flat']),
100
- insetScale: _pt__default["default"].oneOf(['none', 's', 'm', 'l', 'xl']),
101
- theme: _pt__default["default"].oneOf(['light', 'dark']),
102
- className: _pt__default["default"].string,
103
- children: _pt__default["default"].node,
104
- onClick: _pt__default["default"].func,
105
- to: _pt__default["default"].oneOfType([_pt__default["default"].string, _pt__default["default"].any]),
106
- isExternalLink: _pt__default["default"].bool,
107
- isDisabled: _pt__default["default"].bool
108
- } : {};
109
95
  Card.displayName = 'Card';
110
96
  var Card$1 = Card;
111
97
 
112
98
  // NOTE: This string will be replaced on build time with the package version.
113
- var version = "19.26.0";
99
+ var version = "20.1.0";
114
100
 
115
101
  exports["default"] = Card$1;
116
102
  exports.version = version;
@@ -12,8 +12,6 @@ var _Object$defineProperties = require('@babel/runtime-corejs3/core-js-stable/ob
12
12
  var _Object$defineProperty = require('@babel/runtime-corejs3/core-js-stable/object/define-property');
13
13
  var _defineProperty = require('@babel/runtime-corejs3/helpers/defineProperty');
14
14
  var _objectWithoutProperties = require('@babel/runtime-corejs3/helpers/objectWithoutProperties');
15
- require('prop-types');
16
- require('react');
17
15
  var react = require('@emotion/react');
18
16
  var designSystem = require('@commercetools-uikit/design-system');
19
17
  var utils = require('@commercetools-uikit/utils');
@@ -93,12 +91,11 @@ const Card = _ref => {
93
91
  children: content
94
92
  }));
95
93
  };
96
- Card.propTypes = {};
97
94
  Card.displayName = 'Card';
98
95
  var Card$1 = Card;
99
96
 
100
97
  // NOTE: This string will be replaced on build time with the package version.
101
- var version = "19.26.0";
98
+ var version = "20.1.0";
102
99
 
103
100
  exports["default"] = Card$1;
104
101
  exports.version = version;
@@ -8,8 +8,6 @@ import _Object$defineProperties from '@babel/runtime-corejs3/core-js-stable/obje
8
8
  import _Object$defineProperty from '@babel/runtime-corejs3/core-js-stable/object/define-property';
9
9
  import _defineProperty from '@babel/runtime-corejs3/helpers/esm/defineProperty';
10
10
  import _objectWithoutProperties from '@babel/runtime-corejs3/helpers/esm/objectWithoutProperties';
11
- import _pt from 'prop-types';
12
- import 'react';
13
11
  import { css } from '@emotion/react';
14
12
  import { designTokens } from '@commercetools-uikit/design-system';
15
13
  import { filterDataAttributes, warning } from '@commercetools-uikit/utils';
@@ -78,21 +76,10 @@ const Card = _ref => {
78
76
  children: content
79
77
  }));
80
78
  };
81
- Card.propTypes = process.env.NODE_ENV !== "production" ? {
82
- type: _pt.oneOf(['raised', 'flat']),
83
- insetScale: _pt.oneOf(['none', 's', 'm', 'l', 'xl']),
84
- theme: _pt.oneOf(['light', 'dark']),
85
- className: _pt.string,
86
- children: _pt.node,
87
- onClick: _pt.func,
88
- to: _pt.oneOfType([_pt.string, _pt.any]),
89
- isExternalLink: _pt.bool,
90
- isDisabled: _pt.bool
91
- } : {};
92
79
  Card.displayName = 'Card';
93
80
  var Card$1 = Card;
94
81
 
95
82
  // NOTE: This string will be replaced on build time with the package version.
96
- var version = "19.26.0";
83
+ var version = "20.1.0";
97
84
 
98
85
  export { Card$1 as default, version };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercetools-uikit/card",
3
3
  "description": "Cards are used to display content and actions on a single topic.",
4
- "version": "19.26.0",
4
+ "version": "20.1.0",
5
5
  "bugs": "https://github.com/commercetools/ui-kit/issues",
6
6
  "repository": {
7
7
  "type": "git",
@@ -21,20 +21,19 @@
21
21
  "dependencies": {
22
22
  "@babel/runtime": "^7.20.13",
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
- "@commercetools-uikit/design-system": "19.26.0",
25
- "@commercetools-uikit/spacings-inset": "19.26.0",
26
- "@commercetools-uikit/utils": "19.26.0",
24
+ "@commercetools-uikit/design-system": "20.1.0",
25
+ "@commercetools-uikit/spacings-inset": "20.1.0",
26
+ "@commercetools-uikit/utils": "20.1.0",
27
27
  "@emotion/react": "^11.10.5",
28
28
  "@emotion/styled": "^11.10.5",
29
- "@types/react-router-dom": "^5.3.3",
30
- "prop-types": "15.8.1"
29
+ "@types/react-router-dom": "^5.3.3"
31
30
  },
32
31
  "devDependencies": {
33
- "react": "17.0.2",
32
+ "react": "19.1.0",
34
33
  "react-router-dom": "5.3.4"
35
34
  },
36
35
  "peerDependencies": {
37
- "react": "17.x",
36
+ "react": "19.x",
38
37
  "react-router-dom": "5.x"
39
38
  }
40
39
  }