@dhis2-ui/logo 10.16.3 → 10.16.5

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,11 @@ exports.LogoIconSvg = LogoIconSvg;
7
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- function LogoIconSvg(_ref) {
11
- let {
12
- iconColor,
13
- className,
14
- dataTest
15
- } = _ref;
10
+ function LogoIconSvg({
11
+ iconColor,
12
+ className,
13
+ dataTest
14
+ }) {
16
15
  return /*#__PURE__*/_react.default.createElement("svg", {
17
16
  xmlns: "http://www.w3.org/2000/svg",
18
17
  viewBox: "0 0 200 182",
@@ -7,13 +7,12 @@ exports.LogoSvg = LogoSvg;
7
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
- function LogoSvg(_ref) {
11
- let {
12
- iconColor,
13
- textColor,
14
- className,
15
- dataTest
16
- } = _ref;
10
+ function LogoSvg({
11
+ iconColor,
12
+ textColor,
13
+ className,
14
+ dataTest
15
+ }) {
17
16
  return /*#__PURE__*/_react.default.createElement("svg", {
18
17
  xmlns: "http://www.w3.org/2000/svg",
19
18
  viewBox: "0 0 600 182",
package/build/cjs/logo.js CHANGED
@@ -21,67 +21,55 @@ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e
21
21
  const blue = '#0080d4';
22
22
  const white = '#ffffff';
23
23
  const dark = '#212225';
24
- const LogoIcon = _ref => {
25
- let {
26
- className,
27
- dataTest = 'dhis2-uicore-logoicon'
28
- } = _ref;
29
- return /*#__PURE__*/_react.default.createElement(_logoIconSvg.LogoIconSvg, {
30
- iconColor: blue,
31
- className: className,
32
- dataTest: dataTest
33
- });
34
- };
24
+ const LogoIcon = ({
25
+ className,
26
+ dataTest = 'dhis2-uicore-logoicon'
27
+ }) => /*#__PURE__*/_react.default.createElement(_logoIconSvg.LogoIconSvg, {
28
+ iconColor: blue,
29
+ className: className,
30
+ dataTest: dataTest
31
+ });
35
32
  exports.LogoIcon = LogoIcon;
36
33
  LogoIcon.propTypes = {
37
34
  className: _propTypes.default.string,
38
35
  dataTest: _propTypes.default.string
39
36
  };
40
- const LogoIconWhite = _ref2 => {
41
- let {
42
- className,
43
- dataTest = 'dhis2-uicore-logoiconwhite'
44
- } = _ref2;
45
- return /*#__PURE__*/_react.default.createElement(_logoIconSvg.LogoIconSvg, {
46
- iconColor: white,
47
- className: className,
48
- dataTest: dataTest
49
- });
50
- };
37
+ const LogoIconWhite = ({
38
+ className,
39
+ dataTest = 'dhis2-uicore-logoiconwhite'
40
+ }) => /*#__PURE__*/_react.default.createElement(_logoIconSvg.LogoIconSvg, {
41
+ iconColor: white,
42
+ className: className,
43
+ dataTest: dataTest
44
+ });
51
45
  exports.LogoIconWhite = LogoIconWhite;
52
46
  LogoIconWhite.propTypes = {
53
47
  className: _propTypes.default.string,
54
48
  dataTest: _propTypes.default.string
55
49
  };
56
- const Logo = _ref3 => {
57
- let {
58
- className,
59
- dataTest = 'dhis2-uicore-logo'
60
- } = _ref3;
61
- return /*#__PURE__*/_react.default.createElement(_logoSvg.LogoSvg, {
62
- iconColor: blue,
63
- textColor: dark,
64
- className: className,
65
- dataTest: dataTest
66
- });
67
- };
50
+ const Logo = ({
51
+ className,
52
+ dataTest = 'dhis2-uicore-logo'
53
+ }) => /*#__PURE__*/_react.default.createElement(_logoSvg.LogoSvg, {
54
+ iconColor: blue,
55
+ textColor: dark,
56
+ className: className,
57
+ dataTest: dataTest
58
+ });
68
59
  exports.Logo = Logo;
69
60
  Logo.propTypes = {
70
61
  className: _propTypes.default.string,
71
62
  dataTest: _propTypes.default.string
72
63
  };
73
- const LogoWhite = _ref4 => {
74
- let {
75
- className,
76
- dataTest = 'dhis2-uicore-logowhite'
77
- } = _ref4;
78
- return /*#__PURE__*/_react.default.createElement(_logoSvg.LogoSvg, {
79
- iconColor: white,
80
- textColor: white,
81
- className: className,
82
- dataTest: dataTest
83
- });
84
- };
64
+ const LogoWhite = ({
65
+ className,
66
+ dataTest = 'dhis2-uicore-logowhite'
67
+ }) => /*#__PURE__*/_react.default.createElement(_logoSvg.LogoSvg, {
68
+ iconColor: white,
69
+ textColor: white,
70
+ className: className,
71
+ dataTest: dataTest
72
+ });
85
73
  exports.LogoWhite = LogoWhite;
86
74
  LogoWhite.propTypes = {
87
75
  className: _propTypes.default.string,
@@ -19,16 +19,13 @@ const Wrapper = fn => /*#__PURE__*/_react.default.createElement("div", {
19
19
  width: '358px'
20
20
  }
21
21
  }, fn());
22
- const Background = _ref => {
23
- let {
24
- children
25
- } = _ref;
26
- return /*#__PURE__*/_react.default.createElement("div", {
27
- style: {
28
- backgroundColor: '#276696'
29
- }
30
- }, children);
31
- };
22
+ const Background = ({
23
+ children
24
+ }) => /*#__PURE__*/_react.default.createElement("div", {
25
+ style: {
26
+ backgroundColor: '#276696'
27
+ }
28
+ }, children);
32
29
  var _default = exports.default = {
33
30
  title: 'Logo',
34
31
  component: _logo.Logo,
@@ -1,11 +1,10 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
- export function LogoIconSvg(_ref) {
4
- let {
5
- iconColor,
6
- className,
7
- dataTest
8
- } = _ref;
3
+ export function LogoIconSvg({
4
+ iconColor,
5
+ className,
6
+ dataTest
7
+ }) {
9
8
  return /*#__PURE__*/React.createElement("svg", {
10
9
  xmlns: "http://www.w3.org/2000/svg",
11
10
  viewBox: "0 0 200 182",
@@ -1,12 +1,11 @@
1
1
  import PropTypes from 'prop-types';
2
2
  import React from 'react';
3
- export function LogoSvg(_ref) {
4
- let {
5
- iconColor,
6
- textColor,
7
- className,
8
- dataTest
9
- } = _ref;
3
+ export function LogoSvg({
4
+ iconColor,
5
+ textColor,
6
+ className,
7
+ dataTest
8
+ }) {
10
9
  return /*#__PURE__*/React.createElement("svg", {
11
10
  xmlns: "http://www.w3.org/2000/svg",
12
11
  viewBox: "0 0 600 182",
package/build/es/logo.js CHANGED
@@ -15,64 +15,52 @@ import { LogoSvg } from './logo-svg.js';
15
15
  const blue = '#0080d4';
16
16
  const white = '#ffffff';
17
17
  const dark = '#212225';
18
- export const LogoIcon = _ref => {
19
- let {
20
- className,
21
- dataTest = 'dhis2-uicore-logoicon'
22
- } = _ref;
23
- return /*#__PURE__*/React.createElement(LogoIconSvg, {
24
- iconColor: blue,
25
- className: className,
26
- dataTest: dataTest
27
- });
28
- };
18
+ export const LogoIcon = ({
19
+ className,
20
+ dataTest = 'dhis2-uicore-logoicon'
21
+ }) => /*#__PURE__*/React.createElement(LogoIconSvg, {
22
+ iconColor: blue,
23
+ className: className,
24
+ dataTest: dataTest
25
+ });
29
26
  LogoIcon.propTypes = {
30
27
  className: PropTypes.string,
31
28
  dataTest: PropTypes.string
32
29
  };
33
- export const LogoIconWhite = _ref2 => {
34
- let {
35
- className,
36
- dataTest = 'dhis2-uicore-logoiconwhite'
37
- } = _ref2;
38
- return /*#__PURE__*/React.createElement(LogoIconSvg, {
39
- iconColor: white,
40
- className: className,
41
- dataTest: dataTest
42
- });
43
- };
30
+ export const LogoIconWhite = ({
31
+ className,
32
+ dataTest = 'dhis2-uicore-logoiconwhite'
33
+ }) => /*#__PURE__*/React.createElement(LogoIconSvg, {
34
+ iconColor: white,
35
+ className: className,
36
+ dataTest: dataTest
37
+ });
44
38
  LogoIconWhite.propTypes = {
45
39
  className: PropTypes.string,
46
40
  dataTest: PropTypes.string
47
41
  };
48
- export const Logo = _ref3 => {
49
- let {
50
- className,
51
- dataTest = 'dhis2-uicore-logo'
52
- } = _ref3;
53
- return /*#__PURE__*/React.createElement(LogoSvg, {
54
- iconColor: blue,
55
- textColor: dark,
56
- className: className,
57
- dataTest: dataTest
58
- });
59
- };
42
+ export const Logo = ({
43
+ className,
44
+ dataTest = 'dhis2-uicore-logo'
45
+ }) => /*#__PURE__*/React.createElement(LogoSvg, {
46
+ iconColor: blue,
47
+ textColor: dark,
48
+ className: className,
49
+ dataTest: dataTest
50
+ });
60
51
  Logo.propTypes = {
61
52
  className: PropTypes.string,
62
53
  dataTest: PropTypes.string
63
54
  };
64
- export const LogoWhite = _ref4 => {
65
- let {
66
- className,
67
- dataTest = 'dhis2-uicore-logowhite'
68
- } = _ref4;
69
- return /*#__PURE__*/React.createElement(LogoSvg, {
70
- iconColor: white,
71
- textColor: white,
72
- className: className,
73
- dataTest: dataTest
74
- });
75
- };
55
+ export const LogoWhite = ({
56
+ className,
57
+ dataTest = 'dhis2-uicore-logowhite'
58
+ }) => /*#__PURE__*/React.createElement(LogoSvg, {
59
+ iconColor: white,
60
+ textColor: white,
61
+ className: className,
62
+ dataTest: dataTest
63
+ });
76
64
  LogoWhite.propTypes = {
77
65
  className: PropTypes.string,
78
66
  dataTest: PropTypes.string
@@ -12,16 +12,13 @@ const Wrapper = fn => /*#__PURE__*/React.createElement("div", {
12
12
  width: '358px'
13
13
  }
14
14
  }, fn());
15
- const Background = _ref => {
16
- let {
17
- children
18
- } = _ref;
19
- return /*#__PURE__*/React.createElement("div", {
20
- style: {
21
- backgroundColor: '#276696'
22
- }
23
- }, children);
24
- };
15
+ const Background = ({
16
+ children
17
+ }) => /*#__PURE__*/React.createElement("div", {
18
+ style: {
19
+ backgroundColor: '#276696'
20
+ }
21
+ }, children);
25
22
  export default {
26
23
  title: 'Logo',
27
24
  component: Logo,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/logo",
3
- "version": "10.16.3",
3
+ "version": "10.16.5",
4
4
  "description": "UI Logo",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@dhis2/prop-types": "^3.1.2",
36
- "@dhis2/ui-constants": "10.16.3",
36
+ "@dhis2/ui-constants": "10.16.5",
37
37
  "classnames": "^2.3.1",
38
38
  "prop-types": "^15.7.2"
39
39
  },