@portnet/ui 0.1.27 → 0.1.30
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.
|
@@ -11,6 +11,7 @@ require("core-js/modules/es.array.includes.js");
|
|
|
11
11
|
require("core-js/modules/es.string.includes.js");
|
|
12
12
|
require("core-js/modules/es.symbol.description.js");
|
|
13
13
|
var _CheckBoxOutlineBlankRounded = _interopRequireDefault(require("@mui/icons-material/CheckBoxOutlineBlankRounded"));
|
|
14
|
+
var _CheckBoxRounded = _interopRequireDefault(require("@mui/icons-material/CheckBoxRounded"));
|
|
14
15
|
var _material = require("@mui/material");
|
|
15
16
|
var _styles = require("@mui/material/styles");
|
|
16
17
|
var _formik = require("formik");
|
|
@@ -139,7 +140,7 @@ const PuiStandardCheckbox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
139
140
|
disabled: disabled,
|
|
140
141
|
value: value !== null && value !== void 0 ? value : true,
|
|
141
142
|
icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBoxOutlineBlankRounded.default, {}),
|
|
142
|
-
checkedIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
143
|
+
checkedIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckBoxRounded.default, {}),
|
|
143
144
|
onChange: onChange
|
|
144
145
|
}, rest))
|
|
145
146
|
}), !disableHelperText && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.FormHelperText, {
|
|
@@ -15,7 +15,7 @@ var React = _interopRequireWildcard(require("react"));
|
|
|
15
15
|
var _apperance = require("../../config/apperance");
|
|
16
16
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
17
|
const _excluded = ["baseId", "children", "value", "index"],
|
|
18
|
-
_excluded2 = ["id", "className", "sx", "variant", "centered", "children"];
|
|
18
|
+
_excluded2 = ["id", "className", "sx", "variant", "centered", "children"];
|
|
19
19
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
20
20
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -48,49 +48,39 @@ const TabPanel = _ref => {
|
|
|
48
48
|
})
|
|
49
49
|
}));
|
|
50
50
|
};
|
|
51
|
-
TabPanel.propTypes = {
|
|
52
|
-
baseId: _propTypes.default.string.isRequired,
|
|
53
|
-
children: _propTypes.default.node,
|
|
54
|
-
value: _propTypes.default.number.isRequired,
|
|
55
|
-
index: _propTypes.default.number.isRequired
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
// Define function to get Tab properties
|
|
59
51
|
const getTabProps = (baseId, index) => {
|
|
60
52
|
return {
|
|
61
53
|
id: "".concat(baseId, "-").concat(index),
|
|
62
54
|
"aria-controls": "".concat(baseId, "panel-").concat(index)
|
|
63
55
|
};
|
|
64
56
|
};
|
|
65
|
-
|
|
66
|
-
// Define styled Tabs component
|
|
67
57
|
const StyledTabs = (0, _styles.styled)( /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Tabs, _objectSpread({
|
|
68
58
|
ref: ref
|
|
69
|
-
}, props))))(() =>
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
59
|
+
}, props))))(() => {
|
|
60
|
+
return {
|
|
61
|
+
"&.MuiTabs-root": {
|
|
62
|
+
"& .MuiTab-root": {
|
|
63
|
+
fontWeight: "600",
|
|
64
|
+
fontSize: ".8rem"
|
|
65
|
+
},
|
|
66
|
+
"& .Mui-selected": {
|
|
67
|
+
color: _apperance.palette.primary,
|
|
68
|
+
background: "#d0d6e0"
|
|
69
|
+
},
|
|
70
|
+
"& .MuiTabs-indicator": {
|
|
71
|
+
backgroundColor: "#d1eaff",
|
|
72
|
+
height: "3px"
|
|
73
|
+
},
|
|
74
|
+
"&:hover": {
|
|
75
|
+
color: "#40a9ff",
|
|
76
|
+
opacity: 1
|
|
77
|
+
},
|
|
78
|
+
"&.Mui-focusVisible": {
|
|
79
|
+
backgroundColor: "#d1eaff"
|
|
80
|
+
}
|
|
89
81
|
}
|
|
90
|
-
}
|
|
91
|
-
})
|
|
92
|
-
|
|
93
|
-
// Define PuiTabs component
|
|
82
|
+
};
|
|
83
|
+
});
|
|
94
84
|
const PuiTabs = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
95
85
|
let {
|
|
96
86
|
id,
|
|
@@ -113,7 +103,7 @@ const PuiTabs = /*#__PURE__*/React.forwardRef((_ref2, ref) => {
|
|
|
113
103
|
ref: ref,
|
|
114
104
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
115
105
|
sx: {
|
|
116
|
-
borderBottom: "
|
|
106
|
+
borderBottom: "2px solid ".concat(_apperance.palette.gray.dark)
|
|
117
107
|
},
|
|
118
108
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledTabs, _objectSpread(_objectSpread({
|
|
119
109
|
value: value,
|
|
@@ -146,8 +136,7 @@ PuiTabs.propTypes = {
|
|
|
146
136
|
className: _propTypes.default.string,
|
|
147
137
|
sx: _propTypes.default.object,
|
|
148
138
|
variant: _propTypes.default.oneOf(["fullWidth", "scrollable", "standard"]),
|
|
149
|
-
centered: _propTypes.default.bool
|
|
150
|
-
children: _propTypes.default.node.isRequired
|
|
139
|
+
centered: _propTypes.default.bool
|
|
151
140
|
};
|
|
152
141
|
PuiTabs.defaultProps = {
|
|
153
142
|
variant: "standard",
|