@dhis2-ui/css 10.0.0-alpha.5 → 10.0.0-alpha.7

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.
@@ -24,11 +24,11 @@ const toCustomPropertyString = themeSection => Object.entries(themeSection).map(
24
24
  }).join('\n');
25
25
  const CssVariables = _ref3 => {
26
26
  let {
27
- colors,
28
- theme,
29
- layers,
30
- spacers,
31
- elevations
27
+ colors = false,
28
+ theme = false,
29
+ layers = false,
30
+ spacers = false,
31
+ elevations = false
32
32
  } = _ref3;
33
33
  const allowedProps = {
34
34
  colors,
@@ -52,13 +52,6 @@ const CssVariables = _ref3 => {
52
52
  }, [`html{${variables};}`]);
53
53
  };
54
54
  exports.CssVariables = CssVariables;
55
- CssVariables.defaultProps = {
56
- colors: false,
57
- theme: false,
58
- layers: false,
59
- spacers: false,
60
- elevations: false
61
- };
62
55
  CssVariables.propTypes = {
63
56
  colors: _propTypes.default.bool,
64
57
  elevations: _propTypes.default.bool,
@@ -15,11 +15,11 @@ const toCustomPropertyString = themeSection => Object.entries(themeSection).map(
15
15
  }).join('\n');
16
16
  const CssVariables = _ref3 => {
17
17
  let {
18
- colors,
19
- theme,
20
- layers,
21
- spacers,
22
- elevations
18
+ colors = false,
19
+ theme = false,
20
+ layers = false,
21
+ spacers = false,
22
+ elevations = false
23
23
  } = _ref3;
24
24
  const allowedProps = {
25
25
  colors,
@@ -42,13 +42,6 @@ const CssVariables = _ref3 => {
42
42
  dynamic: [variables]
43
43
  }, [`html{${variables};}`]);
44
44
  };
45
- CssVariables.defaultProps = {
46
- colors: false,
47
- theme: false,
48
- layers: false,
49
- spacers: false,
50
- elevations: false
51
- };
52
45
  CssVariables.propTypes = {
53
46
  colors: PropTypes.bool,
54
47
  elevations: PropTypes.bool,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/css",
3
- "version": "10.0.0-alpha.5",
3
+ "version": "10.0.0-alpha.7",
4
4
  "description": "UI CSS",
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.0.0-alpha.5",
36
+ "@dhis2/ui-constants": "10.0.0-alpha.7",
37
37
  "classnames": "^2.3.1",
38
38
  "prop-types": "^15.7.2"
39
39
  },