@dhis2-ui/transfer 9.3.0-alpha.1 → 9.3.0-alpha.2

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.
@@ -15,15 +15,17 @@ var _react = _interopRequireDefault(require("react"));
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
- const centerButtonStyles = ["svg.jsx-3510845804{min-width:20px;}", "svg.jsx-3510845804:dir(rtl){-webkit-transform:rotate(180deg) translateX(4px);-ms-transform:rotate(180deg) translateX(4px);transform:rotate(180deg) translateX(4px);}"];
19
- centerButtonStyles.__hash = "3510845804";
18
+ const centerButtonStyles = ["svg.jsx-2392683210{min-width:20px;}", "div.centerButton.jsx-2392683210:dir(rtl){-webkit-transform:rotate(180deg) translateX(4px);-ms-transform:rotate(180deg) translateX(4px);transform:rotate(180deg) translateX(4px);}"];
19
+ centerButtonStyles.__hash = "2392683210";
20
20
 
21
21
  const IconAddAll = _ref => {
22
22
  let {
23
23
  dataTest,
24
24
  disabled
25
25
  } = _ref;
26
- return /*#__PURE__*/_react.default.createElement("svg", {
26
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
27
+ className: "jsx-".concat(centerButtonStyles.__hash) + " " + "centerButton"
28
+ }, /*#__PURE__*/_react.default.createElement("svg", {
27
29
  xmlns: "http://www.w3.org/2000/svg",
28
30
  width: "16",
29
31
  height: "16",
@@ -42,7 +44,7 @@ const IconAddAll = _ref => {
42
44
  fillRule: "nonzero",
43
45
  points: "10 2 8.94 3.06 13.13 7.25 13.9 8 13.13 8.75 8.94 12.94 10 14 16 8",
44
46
  className: "jsx-".concat(centerButtonStyles.__hash)
45
- })), /*#__PURE__*/_react.default.createElement(_style.default, {
47
+ })))), /*#__PURE__*/_react.default.createElement(_style.default, {
46
48
  id: centerButtonStyles.__hash
47
49
  }, centerButtonStyles));
48
50
  };
@@ -58,7 +60,9 @@ const IconAddIndividual = _ref2 => {
58
60
  dataTest,
59
61
  disabled
60
62
  } = _ref2;
61
- return /*#__PURE__*/_react.default.createElement("svg", {
63
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
64
+ className: "jsx-".concat(centerButtonStyles.__hash) + " " + "centerButton"
65
+ }, /*#__PURE__*/_react.default.createElement("svg", {
62
66
  fill: disabled ? _uiConstants.theme.disabled : '#404B5A',
63
67
  xmlns: "http://www.w3.org/2000/svg",
64
68
  width: "16",
@@ -69,7 +73,7 @@ const IconAddIndividual = _ref2 => {
69
73
  }, /*#__PURE__*/_react.default.createElement("polygon", {
70
74
  points: "8 2 6.94 3.06 11.13 7.25 2 7.25 2 8.75 11.13 8.75 6.94 12.94 8 14 14 8",
71
75
  className: "jsx-".concat(centerButtonStyles.__hash)
72
- }), /*#__PURE__*/_react.default.createElement(_style.default, {
76
+ }))), /*#__PURE__*/_react.default.createElement(_style.default, {
73
77
  id: centerButtonStyles.__hash
74
78
  }, centerButtonStyles));
75
79
  };
@@ -85,7 +89,9 @@ const IconRemoveAll = _ref3 => {
85
89
  dataTest,
86
90
  disabled
87
91
  } = _ref3;
88
- return /*#__PURE__*/_react.default.createElement("svg", {
92
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
93
+ className: "jsx-".concat(centerButtonStyles.__hash) + " " + "centerButton"
94
+ }, /*#__PURE__*/_react.default.createElement("svg", {
89
95
  fill: disabled ? _uiConstants.theme.disabled : '#404B5A',
90
96
  width: "16px",
91
97
  height: "16px",
@@ -106,7 +112,7 @@ const IconRemoveAll = _ref3 => {
106
112
  points: "1.06 2 0 3.06 4.19 7.25 4.96 8 4.19 8.75 0 12.94 1.06 14 7.06 8",
107
113
  transform: "matrix(-1 0 0 1 7.06 0)",
108
114
  className: "jsx-".concat(centerButtonStyles.__hash)
109
- })), /*#__PURE__*/_react.default.createElement(_style.default, {
115
+ })))), /*#__PURE__*/_react.default.createElement(_style.default, {
110
116
  id: centerButtonStyles.__hash
111
117
  }, centerButtonStyles));
112
118
  };
@@ -122,7 +128,9 @@ const IconRemoveIndividual = _ref4 => {
122
128
  dataTest,
123
129
  disabled
124
130
  } = _ref4;
125
- return /*#__PURE__*/_react.default.createElement("svg", {
131
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
132
+ className: "jsx-".concat(centerButtonStyles.__hash) + " " + "centerButton"
133
+ }, /*#__PURE__*/_react.default.createElement("svg", {
126
134
  fill: disabled ? _uiConstants.theme.disabled : '#404B5A',
127
135
  xmlns: "http://www.w3.org/2000/svg",
128
136
  width: "16",
@@ -134,7 +142,7 @@ const IconRemoveIndividual = _ref4 => {
134
142
  points: "8 2 6.94 3.06 11.13 7.25 2 7.25 2 8.75 11.13 8.75 6.94 12.94 8 14 14 8",
135
143
  transform: "matrix(-1 0 0 1 16 0)",
136
144
  className: "jsx-".concat(centerButtonStyles.__hash)
137
- }), /*#__PURE__*/_react.default.createElement(_style.default, {
145
+ }))), /*#__PURE__*/_react.default.createElement(_style.default, {
138
146
  id: centerButtonStyles.__hash
139
147
  }, centerButtonStyles));
140
148
  };
package/build/es/icons.js CHANGED
@@ -2,14 +2,16 @@ import _JSXStyle from "styled-jsx/style";
2
2
  import { theme } from '@dhis2/ui-constants';
3
3
  import PropTypes from 'prop-types';
4
4
  import React from 'react';
5
- const centerButtonStyles = ["svg.jsx-3510845804{min-width:20px;}", "svg.jsx-3510845804:dir(rtl){-webkit-transform:rotate(180deg) translateX(4px);-ms-transform:rotate(180deg) translateX(4px);transform:rotate(180deg) translateX(4px);}"];
6
- centerButtonStyles.__hash = "3510845804";
5
+ const centerButtonStyles = ["svg.jsx-2392683210{min-width:20px;}", "div.centerButton.jsx-2392683210:dir(rtl){-webkit-transform:rotate(180deg) translateX(4px);-ms-transform:rotate(180deg) translateX(4px);transform:rotate(180deg) translateX(4px);}"];
6
+ centerButtonStyles.__hash = "2392683210";
7
7
  export const IconAddAll = _ref => {
8
8
  let {
9
9
  dataTest,
10
10
  disabled
11
11
  } = _ref;
12
- return /*#__PURE__*/React.createElement("svg", {
12
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
13
+ className: "jsx-".concat(centerButtonStyles.__hash) + " " + "centerButton"
14
+ }, /*#__PURE__*/React.createElement("svg", {
13
15
  xmlns: "http://www.w3.org/2000/svg",
14
16
  width: "16",
15
17
  height: "16",
@@ -28,7 +30,7 @@ export const IconAddAll = _ref => {
28
30
  fillRule: "nonzero",
29
31
  points: "10 2 8.94 3.06 13.13 7.25 13.9 8 13.13 8.75 8.94 12.94 10 14 16 8",
30
32
  className: "jsx-".concat(centerButtonStyles.__hash)
31
- })), /*#__PURE__*/React.createElement(_JSXStyle, {
33
+ })))), /*#__PURE__*/React.createElement(_JSXStyle, {
32
34
  id: centerButtonStyles.__hash
33
35
  }, centerButtonStyles));
34
36
  };
@@ -41,7 +43,9 @@ export const IconAddIndividual = _ref2 => {
41
43
  dataTest,
42
44
  disabled
43
45
  } = _ref2;
44
- return /*#__PURE__*/React.createElement("svg", {
46
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
47
+ className: "jsx-".concat(centerButtonStyles.__hash) + " " + "centerButton"
48
+ }, /*#__PURE__*/React.createElement("svg", {
45
49
  fill: disabled ? theme.disabled : '#404B5A',
46
50
  xmlns: "http://www.w3.org/2000/svg",
47
51
  width: "16",
@@ -52,7 +56,7 @@ export const IconAddIndividual = _ref2 => {
52
56
  }, /*#__PURE__*/React.createElement("polygon", {
53
57
  points: "8 2 6.94 3.06 11.13 7.25 2 7.25 2 8.75 11.13 8.75 6.94 12.94 8 14 14 8",
54
58
  className: "jsx-".concat(centerButtonStyles.__hash)
55
- }), /*#__PURE__*/React.createElement(_JSXStyle, {
59
+ }))), /*#__PURE__*/React.createElement(_JSXStyle, {
56
60
  id: centerButtonStyles.__hash
57
61
  }, centerButtonStyles));
58
62
  };
@@ -65,7 +69,9 @@ export const IconRemoveAll = _ref3 => {
65
69
  dataTest,
66
70
  disabled
67
71
  } = _ref3;
68
- return /*#__PURE__*/React.createElement("svg", {
72
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
73
+ className: "jsx-".concat(centerButtonStyles.__hash) + " " + "centerButton"
74
+ }, /*#__PURE__*/React.createElement("svg", {
69
75
  fill: disabled ? theme.disabled : '#404B5A',
70
76
  width: "16px",
71
77
  height: "16px",
@@ -86,7 +92,7 @@ export const IconRemoveAll = _ref3 => {
86
92
  points: "1.06 2 0 3.06 4.19 7.25 4.96 8 4.19 8.75 0 12.94 1.06 14 7.06 8",
87
93
  transform: "matrix(-1 0 0 1 7.06 0)",
88
94
  className: "jsx-".concat(centerButtonStyles.__hash)
89
- })), /*#__PURE__*/React.createElement(_JSXStyle, {
95
+ })))), /*#__PURE__*/React.createElement(_JSXStyle, {
90
96
  id: centerButtonStyles.__hash
91
97
  }, centerButtonStyles));
92
98
  };
@@ -99,7 +105,9 @@ export const IconRemoveIndividual = _ref4 => {
99
105
  dataTest,
100
106
  disabled
101
107
  } = _ref4;
102
- return /*#__PURE__*/React.createElement("svg", {
108
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
109
+ className: "jsx-".concat(centerButtonStyles.__hash) + " " + "centerButton"
110
+ }, /*#__PURE__*/React.createElement("svg", {
103
111
  fill: disabled ? theme.disabled : '#404B5A',
104
112
  xmlns: "http://www.w3.org/2000/svg",
105
113
  width: "16",
@@ -111,7 +119,7 @@ export const IconRemoveIndividual = _ref4 => {
111
119
  points: "8 2 6.94 3.06 11.13 7.25 2 7.25 2 8.75 11.13 8.75 6.94 12.94 8 14 14 8",
112
120
  transform: "matrix(-1 0 0 1 16 0)",
113
121
  className: "jsx-".concat(centerButtonStyles.__hash)
114
- }), /*#__PURE__*/React.createElement(_JSXStyle, {
122
+ }))), /*#__PURE__*/React.createElement(_JSXStyle, {
115
123
  id: centerButtonStyles.__hash
116
124
  }, centerButtonStyles));
117
125
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/transfer",
3
- "version": "9.3.0-alpha.1",
3
+ "version": "9.3.0-alpha.2",
4
4
  "description": "UI Transfer",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,12 +33,12 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2-ui/button": "9.3.0-alpha.1",
37
- "@dhis2-ui/field": "9.3.0-alpha.1",
38
- "@dhis2-ui/input": "9.3.0-alpha.1",
39
- "@dhis2-ui/intersection-detector": "9.3.0-alpha.1",
40
- "@dhis2-ui/loader": "9.3.0-alpha.1",
41
- "@dhis2/ui-constants": "9.3.0-alpha.1",
36
+ "@dhis2-ui/button": "9.3.0-alpha.2",
37
+ "@dhis2-ui/field": "9.3.0-alpha.2",
38
+ "@dhis2-ui/input": "9.3.0-alpha.2",
39
+ "@dhis2-ui/intersection-detector": "9.3.0-alpha.2",
40
+ "@dhis2-ui/loader": "9.3.0-alpha.2",
41
+ "@dhis2/ui-constants": "9.3.0-alpha.2",
42
42
  "classnames": "^2.3.1",
43
43
  "prop-types": "^15.7.2"
44
44
  },