@dhis2-ui/field 8.7.1 → 8.7.3

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.
@@ -44,7 +44,7 @@ const Field = _ref => {
44
44
  htmlFor: name
45
45
  }, label), /*#__PURE__*/_react.default.createElement(_box.Box, {
46
46
  dataTest: "".concat(dataTest, "-content"),
47
- marginTop: label ? _uiConstants.spacers.dp4 : '0'
47
+ marginTop: label ? '2px' : '0'
48
48
  }, children), helpText && /*#__PURE__*/_react.default.createElement(_help.Help, {
49
49
  dataTest: "".concat(dataTest, "-help")
50
50
  }, helpText), validationText && /*#__PURE__*/_react.default.createElement(_help.Help, {
@@ -1,7 +1,7 @@
1
1
  import { Box } from '@dhis2-ui/box';
2
2
  import { Help } from '@dhis2-ui/help';
3
3
  import { Label } from '@dhis2-ui/label';
4
- import { sharedPropTypes, spacers } from '@dhis2/ui-constants';
4
+ import { sharedPropTypes } from '@dhis2/ui-constants';
5
5
  import PropTypes from 'prop-types';
6
6
  import React from 'react';
7
7
 
@@ -30,7 +30,7 @@ const Field = _ref => {
30
30
  htmlFor: name
31
31
  }, label), /*#__PURE__*/React.createElement(Box, {
32
32
  dataTest: "".concat(dataTest, "-content"),
33
- marginTop: label ? spacers.dp4 : '0'
33
+ marginTop: label ? '2px' : '0'
34
34
  }, children), helpText && /*#__PURE__*/React.createElement(Help, {
35
35
  dataTest: "".concat(dataTest, "-help")
36
36
  }, helpText), validationText && /*#__PURE__*/React.createElement(Help, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2-ui/field",
3
- "version": "8.7.1",
3
+ "version": "8.7.3",
4
4
  "description": "UI Field",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,10 +32,10 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@dhis2/prop-types": "^3.1.2",
35
- "@dhis2-ui/box": "8.7.1",
36
- "@dhis2-ui/help": "8.7.1",
37
- "@dhis2-ui/label": "8.7.1",
38
- "@dhis2/ui-constants": "8.7.1",
35
+ "@dhis2-ui/box": "8.7.3",
36
+ "@dhis2-ui/help": "8.7.3",
37
+ "@dhis2-ui/label": "8.7.3",
38
+ "@dhis2/ui-constants": "8.7.3",
39
39
  "classnames": "^2.3.1",
40
40
  "prop-types": "^15.7.2"
41
41
  },