@portnet/ui 0.0.62 → 0.0.64

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.
@@ -37,7 +37,7 @@ const StyledMuiTextField = (0, _styles.styled)( /*#__PURE__*/React.forwardRef((_
37
37
  className: "".concat(required ? "required" : "", " ").concat(className),
38
38
  required: required,
39
39
  error: error,
40
- helperText: error && Boolean(helperText) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
40
+ helperText: error && Boolean(helperText) && typeof helperText !== "boolean" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
41
41
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
42
42
  type: "danger"
43
43
  }),
@@ -143,7 +143,7 @@ const PuiStandardCheckbox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
143
143
  }, rest))
144
144
  }), !disableHelperText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormHelperText, {
145
145
  component: "div",
146
- children: error && Boolean(helperText) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
146
+ children: error && Boolean(helperText) && typeof helperText !== "boolean" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
147
147
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
148
148
  type: "danger"
149
149
  }),
@@ -86,7 +86,7 @@ const PuiStandardCheckboxGroup = _ref => {
86
86
  fontSize: ".7rem",
87
87
  color: _apperance.palette.gray.darker
88
88
  },
89
- children: error && Boolean(helperText) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
89
+ children: error && Boolean(helperText) && typeof helperText !== "boolean" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
90
90
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
91
91
  type: "danger"
92
92
  }),
@@ -111,7 +111,7 @@ const CustomHelperText = _ref2 => {
111
111
  fontSize: ".7rem",
112
112
  color: _apperance.palette.gray.darker
113
113
  },
114
- children: error && Boolean(helperText) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
114
+ children: error && Boolean(helperText) && typeof helperText !== "boolean" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
115
115
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
116
116
  type: "danger"
117
117
  }),
@@ -100,7 +100,7 @@ const PuiStandardRadioGroup = /*#__PURE__*/React.forwardRef((_ref, ref) => {
100
100
  fontSize: ".7rem",
101
101
  color: _apperance.palette.gray.darker
102
102
  },
103
- children: error && Boolean(helperText) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
103
+ children: error && Boolean(helperText) && typeof helperText !== "boolean" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
104
104
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
105
105
  type: "danger"
106
106
  }),
@@ -180,7 +180,7 @@ const PuiStandardSelect = _ref => {
180
180
  }, getOptionKey(option)))
181
181
  })), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormHelperText, {
182
182
  component: "div",
183
- children: error && Boolean(helperText) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
183
+ children: error && Boolean(helperText) && typeof helperText !== "boolean" ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIndication.default, {
184
184
  icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiIcon.default, {
185
185
  type: "danger"
186
186
  }),
@@ -30,12 +30,10 @@ const PuiErrorBasePage = _ref => {
30
30
  retour: true
31
31
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_system.Box, {
32
32
  sx: {
33
- position: "absolute",
34
- width: "100%",
35
- left: 0,
36
- top: "50%",
37
- transform: "translateY(-50%)",
38
- textAlign: "center"
33
+ marginTop: "100px",
34
+ display: "flex",
35
+ flexDirection: "column",
36
+ alignItems: "center"
39
37
  },
40
38
  children: [children, /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
41
39
  variant: "h2",
@@ -43,7 +41,10 @@ const PuiErrorBasePage = _ref => {
43
41
  color: _apperance.palette.primary,
44
42
  fontSize: "9em",
45
43
  fontWeight: "bold",
46
- padding: 2
44
+ paddingLeft: 2,
45
+ paddingRight: 2,
46
+ paddingTop: 0,
47
+ paddingBottom: 0
47
48
  },
48
49
  children: mainContent
49
50
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
@@ -52,7 +53,10 @@ const PuiErrorBasePage = _ref => {
52
53
  color: _apperance.palette.primary,
53
54
  fontSize: "1.2em",
54
55
  lineHeight: "1.6",
55
- padding: 2
56
+ paddingLeft: 2,
57
+ paddingRight: 2,
58
+ paddingTop: 0,
59
+ paddingBottom: 0
56
60
  },
57
61
  children: subContent
58
62
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portnet/ui",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "description": "Portnet UI",
5
5
  "keywords": [
6
6
  "react",