@portnet/ui 0.0.49 → 0.0.51
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.
|
@@ -19,7 +19,7 @@ var _apperance = require("../../config/apperance");
|
|
|
19
19
|
var _PuiIcon = _interopRequireDefault(require("../others/PuiIcon"));
|
|
20
20
|
var _PuiIndication = _interopRequireDefault(require("../typography/PuiIndication"));
|
|
21
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
|
-
const _excluded = ["id", "className", "sx", "name", "value", "label", "checked", "error", "helperText", "disableHelperText", "disabled", "required", "onChange"],
|
|
22
|
+
const _excluded = ["id", "className", "sx", "name", "value", "label", "checked", "error", "helperText", "disableHelperText", "disabled", "required", "onChange", "asArray"],
|
|
23
23
|
_excluded2 = ["id", "className", "sx", "name", "value", "label", "error", "disableHelperText", "helperText", "disabled", "checked", "required", "asArray", "onChange"],
|
|
24
24
|
_excluded3 = ["formik", "id", "className", "sx", "name", "value", "label", "checked", "asArray", "error", "helperText", "disableHelperText", "disabled", "required", "onChange"];
|
|
25
25
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -115,7 +115,8 @@ const PuiStandardCheckbox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
115
115
|
disableHelperText,
|
|
116
116
|
disabled,
|
|
117
117
|
required,
|
|
118
|
-
onChange
|
|
118
|
+
onChange,
|
|
119
|
+
asArray
|
|
119
120
|
} = _ref,
|
|
120
121
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
121
122
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(StyledMuiFormControl, {
|
|
@@ -270,7 +271,7 @@ PuiCheckbox.propTypes = {
|
|
|
270
271
|
id: _propTypes.default.string,
|
|
271
272
|
className: _propTypes.default.string,
|
|
272
273
|
sx: _propTypes.default.object,
|
|
273
|
-
label: _propTypes.default.string
|
|
274
|
+
label: _propTypes.default.string,
|
|
274
275
|
name: _propTypes.default.string,
|
|
275
276
|
helperText: _propTypes.default.string,
|
|
276
277
|
asArray: _propTypes.default.bool,
|
|
@@ -208,7 +208,9 @@ const TablePagination = () => {
|
|
|
208
208
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Pagination, {
|
|
209
209
|
size: "small",
|
|
210
210
|
sx: {
|
|
211
|
-
|
|
211
|
+
position: "absolute",
|
|
212
|
+
left: "50%",
|
|
213
|
+
transform: "translateX(-50%)"
|
|
212
214
|
},
|
|
213
215
|
count: pageCount,
|
|
214
216
|
page: page + 1,
|
|
@@ -217,6 +219,17 @@ const TablePagination = () => {
|
|
|
217
219
|
showLastButton: true
|
|
218
220
|
});
|
|
219
221
|
};
|
|
222
|
+
const TableCheckbox = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
223
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiCheckbox.default, _objectSpread(_objectSpread({
|
|
224
|
+
ref: ref
|
|
225
|
+
}, props), {}, {
|
|
226
|
+
formik: false,
|
|
227
|
+
sx: {
|
|
228
|
+
transform: "scale(.6)",
|
|
229
|
+
marginTop: "-4px"
|
|
230
|
+
}
|
|
231
|
+
}));
|
|
232
|
+
});
|
|
220
233
|
const PuiTable = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
221
234
|
let {
|
|
222
235
|
id,
|
|
@@ -290,7 +303,7 @@ const PuiTable = /*#__PURE__*/React.forwardRef((_ref3, ref) => {
|
|
|
290
303
|
ref: ref,
|
|
291
304
|
id: id,
|
|
292
305
|
components: {
|
|
293
|
-
BaseCheckbox:
|
|
306
|
+
BaseCheckbox: TableCheckbox,
|
|
294
307
|
LoadingOverlay: _material.LinearProgress,
|
|
295
308
|
Pagination: TablePagination
|
|
296
309
|
},
|