@dhis2-ui/chip 7.0.0 → 7.2.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.
@@ -7,12 +7,12 @@ exports.Content = void 0;
7
7
 
8
8
  var _style = _interopRequireDefault(require("styled-jsx/style"));
9
9
 
10
- var _propTypes = _interopRequireDefault(require("@dhis2/prop-types"));
11
-
12
10
  var _uiConstants = require("@dhis2/ui-constants");
13
11
 
14
12
  var _classnames = _interopRequireDefault(require("classnames"));
15
13
 
14
+ var _propTypes = _interopRequireDefault(require("prop-types"));
15
+
16
16
  var _react = _interopRequireDefault(require("react"));
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
package/build/cjs/icon.js CHANGED
@@ -7,10 +7,10 @@ exports.Icon = void 0;
7
7
 
8
8
  var _style = _interopRequireDefault(require("styled-jsx/style"));
9
9
 
10
- var _propTypes = _interopRequireDefault(require("@dhis2/prop-types"));
11
-
12
10
  var _uiConstants = require("@dhis2/ui-constants");
13
11
 
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -7,10 +7,10 @@ exports.Remove = void 0;
7
7
 
8
8
  var _style = _interopRequireDefault(require("styled-jsx/style"));
9
9
 
10
- var _propTypes = _interopRequireDefault(require("@dhis2/prop-types"));
11
-
12
10
  var _uiConstants = require("@dhis2/ui-constants");
13
11
 
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,7 +1,7 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
- import propTypes from '@dhis2/prop-types';
3
2
  import { spacers } from '@dhis2/ui-constants';
4
3
  import cx from 'classnames';
4
+ import PropTypes from 'prop-types';
5
5
  import React from 'react';
6
6
  export const Content = ({
7
7
  children,
@@ -15,6 +15,6 @@ export const Content = ({
15
15
  dynamic: [spacers.dp12]
16
16
  }, [`span.__jsx-style-dynamic-selector{margin:0 ${spacers.dp12};color:inherit;white-space:nowrap;}`, ".overflow.__jsx-style-dynamic-selector{max-width:150px;overflow:hidden;text-overflow:ellipsis;}"]));
17
17
  Content.propTypes = {
18
- children: propTypes.any,
19
- overflow: propTypes.bool
18
+ children: PropTypes.any,
19
+ overflow: PropTypes.bool
20
20
  };
package/build/es/icon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
- import propTypes from '@dhis2/prop-types';
3
2
  import { spacers } from '@dhis2/ui-constants';
3
+ import PropTypes from 'prop-types';
4
4
  import React from 'react';
5
5
  export const Icon = ({
6
6
  icon,
@@ -19,8 +19,8 @@ export const Icon = ({
19
19
  }, [`span.__jsx-style-dynamic-selector{width:24px;height:24px;margin-left:${spacers.dp4};margin-right:-6px;border-radius:50%;overflow:hidden;}`, "span.__jsx-style-dynamic-selector>*{max-height:24px;max-width:24px;}"]));
20
20
  };
21
21
  Icon.propTypes = {
22
- dataTest: propTypes.string.isRequired,
22
+ dataTest: PropTypes.string.isRequired,
23
23
 
24
24
  /** the slot for an icon is 24x24px, bigger elements will be clipped */
25
- icon: propTypes.element
25
+ icon: PropTypes.element
26
26
  };
@@ -1,6 +1,6 @@
1
1
  import _JSXStyle from "styled-jsx/style";
2
- import propTypes from '@dhis2/prop-types';
3
2
  import { colors } from '@dhis2/ui-constants';
3
+ import PropTypes from 'prop-types';
4
4
  import React from 'react';
5
5
 
6
6
  function CancelOutline({
@@ -19,7 +19,7 @@ function CancelOutline({
19
19
  }
20
20
 
21
21
  CancelOutline.propTypes = {
22
- className: propTypes.string
22
+ className: PropTypes.string
23
23
  };
24
24
  const containerStyle = ["span.jsx-1924786287{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:20px;width:20px;margin-right:4px;border-radius:12px;margin-left:-8px;}", `span.jsx-1924786287:hover{background:${colors.grey400};}`];
25
25
  containerStyle.__hash = "1924786287";
@@ -52,6 +52,6 @@ export const Remove = ({
52
52
  }, containerStyle));
53
53
  };
54
54
  Remove.propTypes = {
55
- dataTest: propTypes.string.isRequired,
56
- onRemove: propTypes.func
55
+ dataTest: PropTypes.string.isRequired,
56
+ onRemove: PropTypes.func
57
57
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/chip",
3
- "version": "7.0.0",
3
+ "version": "7.2.0",
4
4
  "description": "UI Chip",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,8 +31,8 @@
31
31
  "styled-jsx": "^4"
32
32
  },
33
33
  "dependencies": {
34
- "@dhis2/prop-types": "^1.6.4",
35
- "@dhis2/ui-constants": "7.0.0",
34
+ "@dhis2/prop-types": "^3.0.0-beta.1",
35
+ "@dhis2/ui-constants": "7.2.0",
36
36
  "classnames": "^2.3.1",
37
37
  "prop-types": "^15.7.2"
38
38
  },