@portnet/ui 0.0.18
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.
- package/README.md +70 -0
- package/dist/components/buttons/PuiButton.js +133 -0
- package/dist/components/buttons/PuiIconButton.js +94 -0
- package/dist/components/common/PuiAlertContext.js +11 -0
- package/dist/components/common/StyledMuiButton.js +45 -0
- package/dist/components/common/StyledMuiTextField.js +109 -0
- package/dist/components/inputs/PuiAutocomplete.js +338 -0
- package/dist/components/inputs/PuiCheckbox.js +264 -0
- package/dist/components/inputs/PuiCheckboxGroup.js +216 -0
- package/dist/components/inputs/PuiCheckboxItem.js +158 -0
- package/dist/components/inputs/PuiDateField.js +259 -0
- package/dist/components/inputs/PuiFileField.js +244 -0
- package/dist/components/inputs/PuiSelect.js +349 -0
- package/dist/components/inputs/PuiTextField.js +256 -0
- package/dist/components/others/PuiBadge.js +57 -0
- package/dist/components/others/PuiChip.js +145 -0
- package/dist/components/others/PuiDialog.js +100 -0
- package/dist/components/others/PuiFormikForm.js +57 -0
- package/dist/components/others/PuiGrid.js +22 -0
- package/dist/components/others/PuiIcon.js +88 -0
- package/dist/components/others/PuiLoadingBackdrop.js +33 -0
- package/dist/components/others/PuiMainContainer.js +37 -0
- package/dist/components/others/PuiNavigation.js +64 -0
- package/dist/components/others/PuiSection.js +94 -0
- package/dist/components/others/PuiTooltip.js +85 -0
- package/dist/components/providers/PuiAlertProvider.js +117 -0
- package/dist/components/referentiel/common/ReferetielContext.js +11 -0
- package/dist/components/referentiel/components/PuiSimplePopupReferentielField.js +306 -0
- package/dist/components/referentiel/components/PuiSimpleReferentielField.js +190 -0
- package/dist/components/referentiel/components/PuiSpecificReferentielField.js +302 -0
- package/dist/components/referentiel/components/constants/specificReferentielsApis.js +17 -0
- package/dist/components/referentiel/components/constants/specificReferentielsBaseColumns.js +337 -0
- package/dist/components/referentiel/components/constants/specificReferentielsBaseFilters.js +325 -0
- package/dist/components/referentiel/components/constants/specificReferentielsInitialValues.js +48 -0
- package/dist/components/referentiel/components/constants/specificReferentielsKeys.js +18 -0
- package/dist/components/referentiel/components/constants/specificReferentielsTitles.js +17 -0
- package/dist/components/referentiel/components/constants/specificReferentielsValidationSchemas.js +53 -0
- package/dist/components/referentiel/components/general/PuiPopupReferentielBase.js +303 -0
- package/dist/components/referentiel/providers/PuiReferentielProvider.js +56 -0
- package/dist/components/tab/PuiTab.js +26 -0
- package/dist/components/tab/PuiTabs.js +137 -0
- package/dist/components/table/PuiTable.js +352 -0
- package/dist/components/table/PuiTableAction.js +63 -0
- package/dist/components/typography/PuiDefinition.js +43 -0
- package/dist/components/typography/PuiIndication.js +76 -0
- package/dist/components/typography/PuiMainTitle.js +82 -0
- package/dist/components/ui/dialogs/PuiSearchDialog.js +96 -0
- package/dist/components/ui/pages/errors/PuiErrorBasePage.js +70 -0
- package/dist/components/ui/pages/errors/PuiNetworkErrorPage.js +37 -0
- package/dist/components/ui/pages/errors/PuiNotFoundErrorPage.js +31 -0
- package/dist/components/ui/pages/errors/PuiServerErrorPage.js +38 -0
- package/dist/components/ui/pages/general/PuiDefaultPage.js +65 -0
- package/dist/components/ui/pages/general/PuiSearchPage.js +161 -0
- package/dist/config/apperance.js +26 -0
- package/dist/config/mapping.js +28 -0
- package/dist/config/referentiel.js +11 -0
- package/dist/general/yupValidationErrors.js +10 -0
- package/dist/hooks/useAlert.js +17 -0
- package/dist/hooks/useAxios.js +22 -0
- package/dist/hooks/useQuery.js +20 -0
- package/dist/index.js +293 -0
- package/package.json +93 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.description.js");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
9
|
+
var _formik = require("formik");
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _StyledMuiTextField = _interopRequireDefault(require("../common/StyledMuiTextField"));
|
|
13
|
+
var _PuiDefinition = _interopRequireDefault(require("../typography/PuiDefinition"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
const _excluded = ["id", "className", "label", "name", "type", "value", "disabled", "required", "helperText", "error", "focused", "consultation", "readOnly", "fullWidth", "sx", "multiline", "rows", "maxRows", "minRows", "onChange", "onClick", "onBlur", "InputProps"],
|
|
16
|
+
_excluded2 = ["id", "className", "label", "name", "type", "value", "disabled", "required", "helperText", "error", "focused", "consultation", "readOnly", "fullWidth", "sx", "multiline", "rows", "maxRows", "minRows", "onChange", "onClick", "onBlur", "InputProps"],
|
|
17
|
+
_excluded3 = ["formik", "id", "className", "sx", "label", "name", "type", "value", "disabled", "required", "helperText", "error", "focused", "consultation", "readOnly", "fullWidth", "multiline", "rows", "maxRows", "minRows", "InputProps", "onChange", "onClick", "onBlur"];
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
23
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
26
|
+
const PuiStandardTextField = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
27
|
+
let {
|
|
28
|
+
id,
|
|
29
|
+
className,
|
|
30
|
+
label,
|
|
31
|
+
name,
|
|
32
|
+
type,
|
|
33
|
+
value,
|
|
34
|
+
disabled,
|
|
35
|
+
required,
|
|
36
|
+
helperText,
|
|
37
|
+
error,
|
|
38
|
+
focused,
|
|
39
|
+
consultation,
|
|
40
|
+
readOnly,
|
|
41
|
+
fullWidth,
|
|
42
|
+
sx,
|
|
43
|
+
multiline,
|
|
44
|
+
rows,
|
|
45
|
+
maxRows,
|
|
46
|
+
minRows,
|
|
47
|
+
onChange,
|
|
48
|
+
onClick,
|
|
49
|
+
onBlur,
|
|
50
|
+
InputProps
|
|
51
|
+
} = _ref,
|
|
52
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
53
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
54
|
+
children: consultation ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiDefinition.default, {
|
|
55
|
+
label: label,
|
|
56
|
+
children: value
|
|
57
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_StyledMuiTextField.default, _objectSpread({
|
|
58
|
+
ref: ref,
|
|
59
|
+
id: id,
|
|
60
|
+
className: className,
|
|
61
|
+
sx: sx,
|
|
62
|
+
name: name,
|
|
63
|
+
multiline: multiline,
|
|
64
|
+
rows: rows,
|
|
65
|
+
maxRows: maxRows,
|
|
66
|
+
minRows: minRows,
|
|
67
|
+
required: required,
|
|
68
|
+
label: label,
|
|
69
|
+
InputLabelProps: {
|
|
70
|
+
shrink: true
|
|
71
|
+
},
|
|
72
|
+
error: error,
|
|
73
|
+
helperText: helperText,
|
|
74
|
+
disabled: disabled,
|
|
75
|
+
focused: focused,
|
|
76
|
+
fullWidth: fullWidth,
|
|
77
|
+
type: type,
|
|
78
|
+
value: value,
|
|
79
|
+
onChange: onChange,
|
|
80
|
+
onClick: onClick,
|
|
81
|
+
onBlur: onBlur,
|
|
82
|
+
InputProps: _objectSpread({
|
|
83
|
+
readOnly
|
|
84
|
+
}, InputProps)
|
|
85
|
+
}, rest))
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
const PuiFormikTextField = /*#__PURE__*/_react.default.forwardRef((_ref2, ref) => {
|
|
89
|
+
var _field$value;
|
|
90
|
+
let {
|
|
91
|
+
id,
|
|
92
|
+
className,
|
|
93
|
+
label,
|
|
94
|
+
name,
|
|
95
|
+
type,
|
|
96
|
+
value,
|
|
97
|
+
disabled,
|
|
98
|
+
required,
|
|
99
|
+
helperText,
|
|
100
|
+
error,
|
|
101
|
+
focused,
|
|
102
|
+
consultation,
|
|
103
|
+
readOnly,
|
|
104
|
+
fullWidth,
|
|
105
|
+
sx,
|
|
106
|
+
multiline,
|
|
107
|
+
rows,
|
|
108
|
+
maxRows,
|
|
109
|
+
minRows,
|
|
110
|
+
onChange,
|
|
111
|
+
onClick,
|
|
112
|
+
onBlur,
|
|
113
|
+
InputProps
|
|
114
|
+
} = _ref2,
|
|
115
|
+
rest = _objectWithoutProperties(_ref2, _excluded2);
|
|
116
|
+
const [field, meta] = (0, _formik.useField)(name);
|
|
117
|
+
const formikContext = (0, _formik.useFormikContext)();
|
|
118
|
+
const [hasError, setHasError] = _react.default.useState(false);
|
|
119
|
+
const changeHandler = event => {
|
|
120
|
+
field.onChange(event);
|
|
121
|
+
onChange(event);
|
|
122
|
+
};
|
|
123
|
+
const blurHandler = event => {
|
|
124
|
+
field.onBlur(event);
|
|
125
|
+
onBlur(event);
|
|
126
|
+
};
|
|
127
|
+
_react.default.useEffect(() => {
|
|
128
|
+
setHasError(Boolean(meta) && Boolean(meta.touched) && Boolean(meta.error));
|
|
129
|
+
}, [meta]);
|
|
130
|
+
_react.default.useEffect(() => {
|
|
131
|
+
if (value !== undefined) {
|
|
132
|
+
formikContext.setFieldValue(name, value);
|
|
133
|
+
}
|
|
134
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
135
|
+
}, [value]);
|
|
136
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(PuiStandardTextField, _objectSpread({
|
|
137
|
+
ref: ref,
|
|
138
|
+
id: id,
|
|
139
|
+
className: className,
|
|
140
|
+
sx: sx,
|
|
141
|
+
name: field.name,
|
|
142
|
+
multiline: multiline,
|
|
143
|
+
rows: rows,
|
|
144
|
+
maxRows: maxRows,
|
|
145
|
+
minRows: minRows,
|
|
146
|
+
required: required,
|
|
147
|
+
label: label,
|
|
148
|
+
error: error || hasError,
|
|
149
|
+
helperText: hasError && Boolean(meta.error) ? meta.error : helperText !== null && helperText !== void 0 ? helperText : "",
|
|
150
|
+
disabled: disabled,
|
|
151
|
+
focused: focused,
|
|
152
|
+
fullWidth: fullWidth,
|
|
153
|
+
type: type,
|
|
154
|
+
value: (_field$value = field.value) !== null && _field$value !== void 0 ? _field$value : "",
|
|
155
|
+
onChange: changeHandler,
|
|
156
|
+
onBlur: blurHandler,
|
|
157
|
+
onClick: onClick,
|
|
158
|
+
InputProps: _objectSpread({
|
|
159
|
+
readOnly
|
|
160
|
+
}, InputProps)
|
|
161
|
+
}, rest));
|
|
162
|
+
});
|
|
163
|
+
const PuiTextField = /*#__PURE__*/_react.default.forwardRef((_ref3, ref) => {
|
|
164
|
+
let {
|
|
165
|
+
formik,
|
|
166
|
+
id,
|
|
167
|
+
className,
|
|
168
|
+
sx,
|
|
169
|
+
label,
|
|
170
|
+
name,
|
|
171
|
+
type,
|
|
172
|
+
value,
|
|
173
|
+
disabled,
|
|
174
|
+
required,
|
|
175
|
+
helperText,
|
|
176
|
+
error,
|
|
177
|
+
focused,
|
|
178
|
+
consultation,
|
|
179
|
+
readOnly,
|
|
180
|
+
fullWidth,
|
|
181
|
+
multiline,
|
|
182
|
+
rows,
|
|
183
|
+
maxRows,
|
|
184
|
+
minRows,
|
|
185
|
+
InputProps,
|
|
186
|
+
onChange,
|
|
187
|
+
onClick,
|
|
188
|
+
onBlur
|
|
189
|
+
} = _ref3,
|
|
190
|
+
rest = _objectWithoutProperties(_ref3, _excluded3);
|
|
191
|
+
return /*#__PURE__*/_react.default.createElement(formik ? PuiFormikTextField : PuiStandardTextField, _objectSpread({
|
|
192
|
+
ref,
|
|
193
|
+
id,
|
|
194
|
+
className,
|
|
195
|
+
sx,
|
|
196
|
+
label,
|
|
197
|
+
name,
|
|
198
|
+
type,
|
|
199
|
+
value,
|
|
200
|
+
disabled,
|
|
201
|
+
required,
|
|
202
|
+
helperText,
|
|
203
|
+
error,
|
|
204
|
+
focused,
|
|
205
|
+
consultation,
|
|
206
|
+
readOnly,
|
|
207
|
+
fullWidth,
|
|
208
|
+
multiline,
|
|
209
|
+
rows,
|
|
210
|
+
maxRows,
|
|
211
|
+
minRows,
|
|
212
|
+
InputProps,
|
|
213
|
+
onChange,
|
|
214
|
+
onClick,
|
|
215
|
+
onBlur
|
|
216
|
+
}, rest));
|
|
217
|
+
});
|
|
218
|
+
PuiTextField.propTypes = {
|
|
219
|
+
id: _propTypes.default.string,
|
|
220
|
+
className: _propTypes.default.string,
|
|
221
|
+
sx: _propTypes.default.object,
|
|
222
|
+
label: _propTypes.default.string,
|
|
223
|
+
name: _propTypes.default.string,
|
|
224
|
+
type: _propTypes.default.oneOf(["text", "number", "email", "password", "search", "tel", "url"]),
|
|
225
|
+
helperText: _propTypes.default.string,
|
|
226
|
+
formik: _propTypes.default.bool,
|
|
227
|
+
disabled: _propTypes.default.bool,
|
|
228
|
+
required: _propTypes.default.bool,
|
|
229
|
+
consultation: _propTypes.default.bool,
|
|
230
|
+
multiline: _propTypes.default.bool,
|
|
231
|
+
error: _propTypes.default.bool,
|
|
232
|
+
focused: _propTypes.default.bool,
|
|
233
|
+
readOnly: _propTypes.default.bool,
|
|
234
|
+
fullWidth: _propTypes.default.bool,
|
|
235
|
+
InputProps: _propTypes.default.object,
|
|
236
|
+
maxRows: _propTypes.default.number,
|
|
237
|
+
minRows: _propTypes.default.number,
|
|
238
|
+
rows: _propTypes.default.number,
|
|
239
|
+
onChange: _propTypes.default.func,
|
|
240
|
+
onClick: _propTypes.default.func,
|
|
241
|
+
onBlur: _propTypes.default.func
|
|
242
|
+
};
|
|
243
|
+
PuiTextField.defaultProps = {
|
|
244
|
+
type: "text",
|
|
245
|
+
formik: false,
|
|
246
|
+
disabled: false,
|
|
247
|
+
consultation: false,
|
|
248
|
+
multiline: false,
|
|
249
|
+
required: false,
|
|
250
|
+
error: false,
|
|
251
|
+
fullWidth: true,
|
|
252
|
+
readOnly: false,
|
|
253
|
+
onBlur: () => {}
|
|
254
|
+
};
|
|
255
|
+
var _default = PuiTextField;
|
|
256
|
+
exports.default = _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
require("core-js/modules/es.symbol.description.js");
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
+
var _apperance = require("../../config/apperance");
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
15
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
16
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
17
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
18
|
+
const PuiBadge = _ref => {
|
|
19
|
+
let {
|
|
20
|
+
id,
|
|
21
|
+
className,
|
|
22
|
+
sx,
|
|
23
|
+
title,
|
|
24
|
+
children
|
|
25
|
+
} = _ref;
|
|
26
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
27
|
+
id: id,
|
|
28
|
+
className: className,
|
|
29
|
+
sx: _objectSpread({
|
|
30
|
+
border: "2px solid ".concat(_apperance.palette.gray.dark),
|
|
31
|
+
width: "fit-content",
|
|
32
|
+
paddingX: 3,
|
|
33
|
+
paddingY: 1,
|
|
34
|
+
borderRadius: "5px",
|
|
35
|
+
fontWeight: "600",
|
|
36
|
+
fontSize: "1.6rem",
|
|
37
|
+
color: _apperance.palette.primary
|
|
38
|
+
}, sx),
|
|
39
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
40
|
+
sx: {
|
|
41
|
+
fontSize: ".75rem",
|
|
42
|
+
fontWeight: "600",
|
|
43
|
+
marginBottom: "-2px",
|
|
44
|
+
color: _apperance.palette.gray.dark
|
|
45
|
+
},
|
|
46
|
+
children: title
|
|
47
|
+
}), children]
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
PuiBadge.propTypes = {
|
|
51
|
+
id: _propTypes.default.string,
|
|
52
|
+
className: _propTypes.default.string,
|
|
53
|
+
title: _propTypes.default.string,
|
|
54
|
+
sx: _propTypes.default.object
|
|
55
|
+
};
|
|
56
|
+
var _default = PuiBadge;
|
|
57
|
+
exports.default = _default;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
require("core-js/modules/es.symbol.description.js");
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var _styles = require("@mui/material/styles");
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
var _react = _interopRequireDefault(require("react"));
|
|
12
|
+
var _apperance = require("../../config/apperance");
|
|
13
|
+
var _PuiTooltip = _interopRequireDefault(require("./PuiTooltip"));
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
const _excluded = ["id", "className", "sx", "color", "fullWidth", "children"];
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
18
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
23
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
|
+
const StyledChip = (0, _styles.styled)( /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Chip, _objectSpread({
|
|
25
|
+
ref: ref
|
|
26
|
+
}, props))))(() => {
|
|
27
|
+
return {
|
|
28
|
+
"&.MuiChip-root": {
|
|
29
|
+
color: "white",
|
|
30
|
+
fontWeight: "600",
|
|
31
|
+
fontSize: ".7rem"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
});
|
|
35
|
+
const PrimaryChip = (0, _styles.styled)( /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledChip, _objectSpread({
|
|
36
|
+
ref: ref
|
|
37
|
+
}, props))))(() => {
|
|
38
|
+
return {
|
|
39
|
+
"&.MuiChip-root": {
|
|
40
|
+
backgroundColor: _apperance.palette.primary
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
const SecondaryChip = (0, _styles.styled)( /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledChip, _objectSpread({
|
|
45
|
+
ref: ref
|
|
46
|
+
}, props))))(() => {
|
|
47
|
+
return {
|
|
48
|
+
"&.MuiChip-root": {
|
|
49
|
+
backgroundColor: _apperance.palette.secondary,
|
|
50
|
+
border: "2px solid ".concat(_apperance.palette.gray.dark),
|
|
51
|
+
color: _apperance.palette.gray.darker
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
const InfoChip = (0, _styles.styled)( /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledChip, _objectSpread({
|
|
56
|
+
ref: ref
|
|
57
|
+
}, props))))(() => {
|
|
58
|
+
return {
|
|
59
|
+
"&.MuiChip-root": {
|
|
60
|
+
backgroundColor: _apperance.palette.info
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
const SuccessChip = (0, _styles.styled)( /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledChip, _objectSpread({
|
|
65
|
+
ref: ref
|
|
66
|
+
}, props))))(() => {
|
|
67
|
+
return {
|
|
68
|
+
"&.MuiChip-root": {
|
|
69
|
+
backgroundColor: _apperance.palette.success
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
const ErrorChip = (0, _styles.styled)( /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledChip, _objectSpread({
|
|
74
|
+
ref: ref
|
|
75
|
+
}, props))))(() => {
|
|
76
|
+
return {
|
|
77
|
+
"&.MuiChip-root": {
|
|
78
|
+
backgroundColor: _apperance.palette.error
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
});
|
|
82
|
+
const WarningChip = (0, _styles.styled)( /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledChip, _objectSpread({
|
|
83
|
+
ref: ref
|
|
84
|
+
}, props))))(() => {
|
|
85
|
+
return {
|
|
86
|
+
"&.MuiChip-root": {
|
|
87
|
+
backgroundColor: _apperance.palette.warning
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
const getChipByColor = color => {
|
|
92
|
+
switch (color) {
|
|
93
|
+
case "primary":
|
|
94
|
+
default:
|
|
95
|
+
return PrimaryChip;
|
|
96
|
+
case "secondary":
|
|
97
|
+
return SecondaryChip;
|
|
98
|
+
case "success":
|
|
99
|
+
return SuccessChip;
|
|
100
|
+
case "error":
|
|
101
|
+
return ErrorChip;
|
|
102
|
+
case "info":
|
|
103
|
+
return InfoChip;
|
|
104
|
+
case "warning":
|
|
105
|
+
return WarningChip;
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
const PuiChip = /*#__PURE__*/_react.default.forwardRef((_ref, ref) => {
|
|
109
|
+
let {
|
|
110
|
+
id,
|
|
111
|
+
className,
|
|
112
|
+
sx,
|
|
113
|
+
color,
|
|
114
|
+
fullWidth,
|
|
115
|
+
children
|
|
116
|
+
} = _ref,
|
|
117
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
118
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTooltip.default, {
|
|
119
|
+
title: children,
|
|
120
|
+
sx: {
|
|
121
|
+
width: fullWidth ? "100%" : "fit-content"
|
|
122
|
+
},
|
|
123
|
+
children: /*#__PURE__*/_react.default.createElement(getChipByColor(color), _objectSpread({
|
|
124
|
+
ref,
|
|
125
|
+
id,
|
|
126
|
+
sx: _objectSpread(_objectSpread({}, sx), {}, {
|
|
127
|
+
width: fullWidth ? "100%" : "fit-content"
|
|
128
|
+
}),
|
|
129
|
+
className,
|
|
130
|
+
label: children
|
|
131
|
+
}, rest))
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
PuiChip.propTypes = {
|
|
135
|
+
id: _propTypes.default.string,
|
|
136
|
+
className: _propTypes.default.string,
|
|
137
|
+
sx: _propTypes.default.object,
|
|
138
|
+
fullWidth: _propTypes.default.bool,
|
|
139
|
+
color: _propTypes.default.oneOf(["primary", "secondary", "info", "success", "warning", "error"])
|
|
140
|
+
};
|
|
141
|
+
PuiChip.defaultProps = {
|
|
142
|
+
color: "primary"
|
|
143
|
+
};
|
|
144
|
+
var _default = PuiChip;
|
|
145
|
+
exports.default = _default;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("core-js/modules/es.symbol.description.js");
|
|
4
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _Close = _interopRequireDefault(require("@mui/icons-material/Close"));
|
|
10
|
+
var _material = require("@mui/material");
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
|
13
|
+
var _apperance = require("../../config/apperance");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
+
const _excluded = ["id", "className", "sx", "open", "title", "maxWidth", "fullWidth", "scroll", "onClose", "children"];
|
|
16
|
+
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); }
|
|
17
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
20
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
21
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
23
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
24
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
26
|
+
const PuiDialog = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
27
|
+
let {
|
|
28
|
+
id,
|
|
29
|
+
className,
|
|
30
|
+
sx,
|
|
31
|
+
open,
|
|
32
|
+
title,
|
|
33
|
+
maxWidth,
|
|
34
|
+
fullWidth,
|
|
35
|
+
scroll,
|
|
36
|
+
onClose,
|
|
37
|
+
children
|
|
38
|
+
} = _ref,
|
|
39
|
+
rest = _objectWithoutProperties(_ref, _excluded);
|
|
40
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Dialog, _objectSpread(_objectSpread({
|
|
41
|
+
id: id,
|
|
42
|
+
className: className,
|
|
43
|
+
ref: ref,
|
|
44
|
+
onClose: onClose,
|
|
45
|
+
open: open,
|
|
46
|
+
scroll: scroll,
|
|
47
|
+
maxWidth: maxWidth,
|
|
48
|
+
fullWidth: fullWidth
|
|
49
|
+
}, rest), {}, {
|
|
50
|
+
children: [Boolean(title) && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.DialogTitle, {
|
|
51
|
+
sx: {
|
|
52
|
+
fontSize: "1.5rem",
|
|
53
|
+
position: "relative",
|
|
54
|
+
backgroundColor: _apperance.palette.secondary,
|
|
55
|
+
color: _apperance.palette.primary,
|
|
56
|
+
fontWeight: "600"
|
|
57
|
+
},
|
|
58
|
+
onClose: onClose,
|
|
59
|
+
children: [title, onClose ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.IconButton, {
|
|
60
|
+
title: "Fermer",
|
|
61
|
+
size: "small",
|
|
62
|
+
onClick: onClose,
|
|
63
|
+
sx: {
|
|
64
|
+
color: _apperance.palette.primary,
|
|
65
|
+
position: "absolute",
|
|
66
|
+
right: 16,
|
|
67
|
+
top: "50%",
|
|
68
|
+
transform: "translate(0,-50%)"
|
|
69
|
+
},
|
|
70
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Close.default, {})
|
|
71
|
+
}) : null]
|
|
72
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.DialogContent, {
|
|
73
|
+
sx: _objectSpread({
|
|
74
|
+
padding: 2,
|
|
75
|
+
"&.MuiDialogContent-root": {
|
|
76
|
+
paddingTop: 3
|
|
77
|
+
}
|
|
78
|
+
}, sx),
|
|
79
|
+
children: children
|
|
80
|
+
})]
|
|
81
|
+
}));
|
|
82
|
+
});
|
|
83
|
+
PuiDialog.propTypes = {
|
|
84
|
+
id: _propTypes.default.string,
|
|
85
|
+
className: _propTypes.default.string,
|
|
86
|
+
sx: _propTypes.default.object,
|
|
87
|
+
open: _propTypes.default.bool,
|
|
88
|
+
title: _propTypes.default.string,
|
|
89
|
+
maxWidth: _propTypes.default.oneOf(["xs", "sm", "md", "lg", "xl", false]),
|
|
90
|
+
fullWidth: _propTypes.default.bool,
|
|
91
|
+
scroll: _propTypes.default.oneOf(["body", "paper"]),
|
|
92
|
+
onClose: _propTypes.default.func
|
|
93
|
+
};
|
|
94
|
+
PuiDialog.defaultProps = {
|
|
95
|
+
fullWidth: true,
|
|
96
|
+
maxWidth: "sm",
|
|
97
|
+
scroll: "paper"
|
|
98
|
+
};
|
|
99
|
+
var _default = PuiDialog;
|
|
100
|
+
exports.default = _default;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _formik = require("formik");
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
+
const getFieldErrorNames = formikErrors => {
|
|
12
|
+
const transformObjectToDotNotation = function transformObjectToDotNotation(obj) {
|
|
13
|
+
let prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "";
|
|
14
|
+
let result = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
15
|
+
Object.keys(obj).forEach(key => {
|
|
16
|
+
const value = obj[key];
|
|
17
|
+
if (!value) return;
|
|
18
|
+
const nextKey = prefix ? "".concat(prefix, ".").concat(key) : key;
|
|
19
|
+
if (typeof value === "object") {
|
|
20
|
+
transformObjectToDotNotation(value, nextKey, result);
|
|
21
|
+
} else {
|
|
22
|
+
result.push(nextKey);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
return transformObjectToDotNotation(formikErrors);
|
|
28
|
+
};
|
|
29
|
+
const PuiFormikForm = _ref => {
|
|
30
|
+
let {
|
|
31
|
+
children
|
|
32
|
+
} = _ref;
|
|
33
|
+
const {
|
|
34
|
+
submitCount,
|
|
35
|
+
isValidating,
|
|
36
|
+
isValid,
|
|
37
|
+
errors
|
|
38
|
+
} = (0, _formik.useFormikContext)();
|
|
39
|
+
_react.default.useLayoutEffect(() => {
|
|
40
|
+
if (submitCount === 0 || isValidating || isValid) return;
|
|
41
|
+
const fieldErrorNames = getFieldErrorNames(errors);
|
|
42
|
+
if (fieldErrorNames.length <= 0) return;
|
|
43
|
+
const element = document.querySelector("input[name='".concat(fieldErrorNames[0], "']"));
|
|
44
|
+
if (!element) return;
|
|
45
|
+
element.scrollIntoView({
|
|
46
|
+
behavior: "smooth",
|
|
47
|
+
block: "center"
|
|
48
|
+
});
|
|
49
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
50
|
+
}, [isValidating]);
|
|
51
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_formik.Form, {
|
|
52
|
+
children: children
|
|
53
|
+
});
|
|
54
|
+
};
|
|
55
|
+
PuiFormikForm.propTypes = {};
|
|
56
|
+
var _default = PuiFormikForm;
|
|
57
|
+
exports.default = _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
require("core-js/modules/es.symbol.description.js");
|
|
8
|
+
var _material = require("@mui/material");
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
12
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
14
|
+
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
15
|
+
const PuiGrid = props => {
|
|
16
|
+
return Boolean(props.container) ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, _objectSpread({
|
|
17
|
+
spacing: 1
|
|
18
|
+
}, props)) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Grid, _objectSpread({}, props));
|
|
19
|
+
};
|
|
20
|
+
PuiGrid.propTypes = {};
|
|
21
|
+
var _default = PuiGrid;
|
|
22
|
+
exports.default = _default;
|