@portnet/ui 1.2.0 → 1.2.1
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/dist/components/buttons/PuiButton.js +12 -13
- package/dist/components/buttons/PuiIconButton.js +8 -9
- package/dist/components/common/PuiAlertContext.js +2 -1
- package/dist/components/common/StyledMuiButton.js +8 -9
- package/dist/components/common/StyledMuiTextField.js +9 -10
- package/dist/components/inputs/PuiAutocomplete.js +9 -11
- package/dist/components/inputs/PuiCheckbox.js +12 -15
- package/dist/components/inputs/PuiCheckboxGroup.js +6 -8
- package/dist/components/inputs/PuiCheckboxItem.js +8 -9
- package/dist/components/inputs/PuiDateField.js +63 -128
- package/dist/components/inputs/PuiDateTimeField.js +430 -38
- package/dist/components/inputs/PuiFileField.js +10 -11
- package/dist/components/inputs/PuiRadioGroup.js +8 -9
- package/dist/components/inputs/PuiRadioItem.js +7 -8
- package/dist/components/inputs/PuiSelect.js +10 -12
- package/dist/components/inputs/PuiTextField.js +8 -9
- package/dist/components/others/PuiBadge.js +4 -6
- package/dist/components/others/PuiChip.js +15 -16
- package/dist/components/others/PuiDialog.js +8 -9
- package/dist/components/others/PuiFormikForm.js +2 -1
- package/dist/components/others/PuiGrid.js +3 -5
- package/dist/components/others/PuiIcon.js +8 -9
- package/dist/components/others/PuiLoadingBackdrop.js +1 -1
- package/dist/components/others/PuiMainContainer.js +7 -8
- package/dist/components/others/PuiNavigation.js +6 -7
- package/dist/components/others/PuiSection.js +7 -8
- package/dist/components/others/PuiTooltip.js +9 -10
- package/dist/components/providers/PuiAlertProvider.js +8 -10
- package/dist/components/providers/PuiLocalizationProvider.js +5 -7
- package/dist/components/referentiel/common/ReferetielContext.js +2 -1
- package/dist/components/referentiel/common/constants/specificReferentielsBaseColumns.js +92 -92
- package/dist/components/referentiel/common/constants/specificReferentielsBaseFilters.js +1 -1
- package/dist/components/referentiel/common/constants/specificReferentielsValidationSchemas.js +2 -1
- package/dist/components/referentiel/components/PuiBasePopupReferentielField.js +6 -7
- package/dist/components/referentiel/components/PuiCustomPopupReferentielField.js +6 -7
- package/dist/components/referentiel/components/PuiSimplePopupReferentielField.js +6 -8
- package/dist/components/referentiel/components/PuiSimpleReferentielField.js +9 -11
- package/dist/components/referentiel/components/PuiSpecificReferentielField.js +8 -10
- package/dist/components/referentiel/providers/PuiReferentielProvider.js +6 -7
- package/dist/components/tab/PuiTab.js +1 -1
- package/dist/components/tab/PuiTabs.js +10 -13
- package/dist/components/table/PuiTable.js +18 -21
- package/dist/components/table/PuiTableAction.js +4 -6
- package/dist/components/typography/PuiDefinition.js +1 -1
- package/dist/components/typography/PuiIndication.js +6 -7
- package/dist/components/typography/PuiMainTitle.js +6 -8
- package/dist/components/ui/dialogs/PuiSearchDialog.js +8 -9
- package/dist/components/ui/pages/errors/PuiErrorBasePage.js +1 -1
- package/dist/components/ui/pages/errors/PuiForbiddenErrorPage.js +1 -1
- package/dist/components/ui/pages/errors/PuiNetworkErrorPage.js +1 -1
- package/dist/components/ui/pages/errors/PuiNotFoundErrorPage.js +1 -1
- package/dist/components/ui/pages/errors/PuiServerErrorPage.js +1 -1
- package/dist/components/ui/pages/general/PuiDefaultPage.js +1 -1
- package/dist/components/ui/pages/general/PuiSearchPage.js +39 -63
- package/dist/config/mapping.js +1 -1
- package/dist/hooks/useAlert.js +3 -2
- package/dist/hooks/useAxios.js +1 -1
- package/dist/hooks/useQuery.js +2 -4
- package/dist/index.js +1 -1
- package/package.json +98 -105
- package/dist/components/others/DateTimePickerField.js +0 -210
- package/dist/components/table/ActionPopover.js +0 -56
|
@@ -8,7 +8,7 @@ var _BrowserNotSupported = _interopRequireDefault(require("@mui/icons-material/B
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _PuiErrorBasePage = _interopRequireDefault(require("./PuiErrorBasePage"));
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
const PuiNotFoundErrorPage = _ref => {
|
|
13
13
|
let {
|
|
14
14
|
onRetour
|
|
@@ -8,7 +8,7 @@ var _Error = _interopRequireDefault(require("@mui/icons-material/Error"));
|
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _PuiErrorBasePage = _interopRequireDefault(require("./PuiErrorBasePage"));
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
const PuiServerErrorPage = _ref => {
|
|
13
13
|
let {
|
|
14
14
|
onRetour,
|
|
@@ -9,7 +9,7 @@ var _PuiLoadingBackdrop = _interopRequireDefault(require("../../../others/PuiLoa
|
|
|
9
9
|
var _PuiNavigation = _interopRequireDefault(require("../../../others/PuiNavigation"));
|
|
10
10
|
var _PuiMainTitle = _interopRequireDefault(require("../../../typography/PuiMainTitle"));
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
const PuiDefaultPage = _ref => {
|
|
14
14
|
let {
|
|
15
15
|
title,
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
require("core-js/modules/es.weak-map.js");
|
|
4
|
-
require("core-js/modules/
|
|
5
|
-
require("core-js/modules/esnext.iterator.for-each.js");
|
|
4
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
6
5
|
Object.defineProperty(exports, "__esModule", {
|
|
7
6
|
value: true
|
|
8
7
|
});
|
|
9
8
|
exports.default = void 0;
|
|
10
|
-
require("core-js/modules/
|
|
11
|
-
require("core-js/modules/esnext.iterator.map.js");
|
|
12
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
13
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
+
require("core-js/modules/es.symbol.description.js");
|
|
15
10
|
var _formik = require("formik");
|
|
11
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
12
|
+
var React = _interopRequireWildcard(require("react"));
|
|
16
13
|
var _PuiButton = _interopRequireDefault(require("../../../buttons/PuiButton"));
|
|
17
14
|
var _PuiFormikForm = _interopRequireDefault(require("../../../others/PuiFormikForm"));
|
|
18
15
|
var _PuiGrid = _interopRequireDefault(require("../../../others/PuiGrid"));
|
|
@@ -20,16 +17,15 @@ var _PuiIcon = _interopRequireDefault(require("../../../others/PuiIcon"));
|
|
|
20
17
|
var _PuiSection = _interopRequireDefault(require("../../../others/PuiSection"));
|
|
21
18
|
var _PuiTable = _interopRequireDefault(require("../../../table/PuiTable"));
|
|
22
19
|
var _PuiDefaultPage = _interopRequireDefault(require("./PuiDefaultPage"));
|
|
23
|
-
var _ExpandMore = _interopRequireDefault(require("@mui/icons-material/ExpandMore"));
|
|
24
|
-
var _ExpandLess = _interopRequireDefault(require("@mui/icons-material/ExpandLess"));
|
|
25
20
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
26
|
-
function
|
|
27
|
-
function _interopRequireWildcard(e,
|
|
21
|
+
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); }
|
|
22
|
+
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; }
|
|
23
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
28
24
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
29
25
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
30
|
-
function _defineProperty(
|
|
31
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i
|
|
32
|
-
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
|
+
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; }
|
|
27
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : String(i); }
|
|
28
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
33
29
|
const PuiStandardSearchPageContainer = _ref => {
|
|
34
30
|
let {
|
|
35
31
|
actions,
|
|
@@ -65,13 +61,8 @@ const PuiSearchPage = _ref2 => {
|
|
|
65
61
|
onReset,
|
|
66
62
|
onSubmit,
|
|
67
63
|
children: _children,
|
|
68
|
-
additionalActions
|
|
69
|
-
collapsibleSearchSection = true // Collapsible by default
|
|
64
|
+
additionalActions
|
|
70
65
|
} = _ref2;
|
|
71
|
-
const [isSearchSectionExpanded, setSearchSectionExpanded] = (0, _react.useState)(false);
|
|
72
|
-
const toggleSearchSection = () => {
|
|
73
|
-
setSearchSectionExpanded(prev => !prev);
|
|
74
|
-
};
|
|
75
66
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiDefaultPage.default, {
|
|
76
67
|
title: title,
|
|
77
68
|
titleIcon: titleIcon,
|
|
@@ -83,24 +74,11 @@ const PuiSearchPage = _ref2 => {
|
|
|
83
74
|
retour: retour,
|
|
84
75
|
onRetour: onRetour,
|
|
85
76
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiSection.default, {
|
|
86
|
-
title:
|
|
87
|
-
onClick: toggleSearchSection,
|
|
88
|
-
style: {
|
|
89
|
-
display: "flex",
|
|
90
|
-
alignItems: "center",
|
|
91
|
-
cursor: collapsibleSearchSection ? "pointer" : "default"
|
|
92
|
-
},
|
|
93
|
-
children: [collapsibleSearchSection && (isSearchSectionExpanded ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExpandLess.default, {}) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExpandMore.default, {})), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
94
|
-
style: {
|
|
95
|
-
marginLeft: collapsibleSearchSection ? "8px" : "0px"
|
|
96
|
-
},
|
|
97
|
-
children: "Param\xE8tres de recherche"
|
|
98
|
-
})]
|
|
99
|
-
}),
|
|
77
|
+
title: "Param\xE8tres de recherche",
|
|
100
78
|
sx: {
|
|
101
79
|
marginBottom: 2
|
|
102
80
|
},
|
|
103
|
-
children:
|
|
81
|
+
children: formik ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_formik.Formik, _objectSpread(_objectSpread({
|
|
104
82
|
initialValues: {}
|
|
105
83
|
}, formikProps), {}, {
|
|
106
84
|
children: _ref3 => {
|
|
@@ -135,14 +113,16 @@ const PuiSearchPage = _ref2 => {
|
|
|
135
113
|
loadingPosition: "start",
|
|
136
114
|
children: "Rechercher"
|
|
137
115
|
})
|
|
138
|
-
}), additionalActions && additionalActions.map((actionItem, index) =>
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
116
|
+
}), additionalActions && additionalActions.map((actionItem, index) => {
|
|
117
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
118
|
+
item: true,
|
|
119
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
120
|
+
startIcon: actionItem.icon,
|
|
121
|
+
onClick: actionItem.action,
|
|
122
|
+
children: actionItem.name
|
|
123
|
+
})
|
|
124
|
+
}, index);
|
|
125
|
+
})]
|
|
146
126
|
}),
|
|
147
127
|
children: _children
|
|
148
128
|
})
|
|
@@ -174,22 +154,22 @@ const PuiSearchPage = _ref2 => {
|
|
|
174
154
|
loadingPosition: "start",
|
|
175
155
|
children: "Rechercher"
|
|
176
156
|
})
|
|
177
|
-
}), additionalActions && additionalActions.map((actionItem, index) =>
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
157
|
+
}), additionalActions && additionalActions.map((actionItem, index) => {
|
|
158
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
159
|
+
item: true,
|
|
160
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
161
|
+
startIcon: actionItem.icon,
|
|
162
|
+
onClick: actionItem.action,
|
|
163
|
+
children: actionItem.name
|
|
164
|
+
})
|
|
165
|
+
}, index);
|
|
166
|
+
})]
|
|
185
167
|
}),
|
|
186
168
|
children: _children
|
|
187
|
-
})
|
|
188
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTable.default, _objectSpread(
|
|
169
|
+
})
|
|
170
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTable.default, _objectSpread({
|
|
189
171
|
paginationMode: "server"
|
|
190
|
-
}, tableProps)
|
|
191
|
-
pinnedColumns: tableProps.pinnedColumns // Added pinnedColumns
|
|
192
|
-
}))]
|
|
172
|
+
}, tableProps))]
|
|
193
173
|
});
|
|
194
174
|
};
|
|
195
175
|
PuiSearchPage.propTypes = {
|
|
@@ -202,9 +182,7 @@ PuiSearchPage.propTypes = {
|
|
|
202
182
|
topNav: _propTypes.default.bool,
|
|
203
183
|
bottomNav: _propTypes.default.bool,
|
|
204
184
|
loading: _propTypes.default.bool,
|
|
205
|
-
tableProps: _propTypes.default.
|
|
206
|
-
pinnedColumns: _propTypes.default.object // Added pinnedColumns prop type
|
|
207
|
-
}),
|
|
185
|
+
tableProps: _propTypes.default.object,
|
|
208
186
|
retour: _propTypes.default.bool,
|
|
209
187
|
onRetour: _propTypes.default.func,
|
|
210
188
|
onReset: _propTypes.default.func,
|
|
@@ -213,13 +191,11 @@ PuiSearchPage.propTypes = {
|
|
|
213
191
|
name: _propTypes.default.string.isRequired,
|
|
214
192
|
action: _propTypes.default.func.isRequired,
|
|
215
193
|
icon: _propTypes.default.element
|
|
216
|
-
}))
|
|
217
|
-
collapsibleSearchSection: _propTypes.default.bool
|
|
194
|
+
}))
|
|
218
195
|
};
|
|
219
196
|
PuiSearchPage.defaultProps = {
|
|
220
197
|
formik: true,
|
|
221
198
|
loading: false,
|
|
222
|
-
additionalActions: []
|
|
223
|
-
collapsibleSearchSection: true
|
|
199
|
+
additionalActions: []
|
|
224
200
|
};
|
|
225
201
|
var _default = exports.default = PuiSearchPage;
|
package/dist/config/mapping.js
CHANGED
|
@@ -12,7 +12,7 @@ var _MoreVert = _interopRequireDefault(require("@mui/icons-material/MoreVert"));
|
|
|
12
12
|
var _Report = _interopRequireDefault(require("@mui/icons-material/Report"));
|
|
13
13
|
var _Search = _interopRequireDefault(require("@mui/icons-material/Search"));
|
|
14
14
|
var _Visibility = _interopRequireDefault(require("@mui/icons-material/Visibility"));
|
|
15
|
-
function _interopRequireDefault(
|
|
15
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
const iconsMapping = exports.iconsMapping = {
|
|
17
17
|
recherche: _Search.default,
|
|
18
18
|
supprimer: _Delete.default,
|
package/dist/hooks/useAlert.js
CHANGED
|
@@ -8,8 +8,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var React = _interopRequireWildcard(require("react"));
|
|
10
10
|
var _PuiAlertContext = _interopRequireDefault(require("../components/common/PuiAlertContext"));
|
|
11
|
-
function _interopRequireDefault(
|
|
12
|
-
function
|
|
11
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
+
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); }
|
|
13
|
+
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; }
|
|
13
14
|
const useAlert = () => {
|
|
14
15
|
const {
|
|
15
16
|
dispatchAlert
|
package/dist/hooks/useAxios.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _axios = _interopRequireDefault(require("axios"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
9
|
const useAxios = function useAxios(token) {
|
|
10
10
|
let secret = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
11
11
|
let baseURL = arguments.length > 2 ? arguments[2] : undefined;
|
package/dist/hooks/useQuery.js
CHANGED
|
@@ -4,12 +4,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
require("core-js/modules/es.regexp.exec.js");
|
|
8
|
-
require("core-js/modules/es.string.search.js");
|
|
9
|
-
require("core-js/modules/esnext.iterator.constructor.js");
|
|
10
|
-
require("core-js/modules/esnext.iterator.for-each.js");
|
|
11
7
|
require("core-js/modules/web.dom-collections.iterator.js");
|
|
12
8
|
require("core-js/modules/web.url-search-params.js");
|
|
9
|
+
require("core-js/modules/es.regexp.exec.js");
|
|
10
|
+
require("core-js/modules/es.string.search.js");
|
|
13
11
|
const useQuery = () => {
|
|
14
12
|
const queryParams = new URLSearchParams(window.location.search);
|
|
15
13
|
const queryObject = {};
|
package/dist/index.js
CHANGED
|
@@ -332,4 +332,4 @@ var _PuiDefaultPage = _interopRequireDefault(require("./components/ui/pages/gene
|
|
|
332
332
|
var _PuiSearchPage = _interopRequireDefault(require("./components/ui/pages/general/PuiSearchPage"));
|
|
333
333
|
var _useAlert = _interopRequireDefault(require("./hooks/useAlert"));
|
|
334
334
|
var _useQuery = _interopRequireDefault(require("./hooks/useQuery"));
|
|
335
|
-
function _interopRequireDefault(
|
|
335
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/package.json
CHANGED
|
@@ -1,105 +1,98 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@portnet/ui",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"description": "Portnet UI",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"react",
|
|
7
|
-
"components",
|
|
8
|
-
"ui"
|
|
9
|
-
],
|
|
10
|
-
"main": "dist/index.js",
|
|
11
|
-
"private": false,
|
|
12
|
-
"files": [
|
|
13
|
-
"dist",
|
|
14
|
-
"README.md"
|
|
15
|
-
],
|
|
16
|
-
"dependencies": {
|
|
17
|
-
"@emotion/react": "^11.10.5",
|
|
18
|
-
"@emotion/styled": "^11.10.5",
|
|
19
|
-
"@mui/icons-material": "^5.10.16",
|
|
20
|
-
"@mui/lab": "^5.0.0-alpha.60",
|
|
21
|
-
"@mui/material": "^5.10.16",
|
|
22
|
-
"@mui/x-data-grid": "^5.17.26",
|
|
23
|
-
"@mui/x-data-grid-pro": "^5.17.26",
|
|
24
|
-
"@mui/x-date-pickers": "^
|
|
25
|
-
"@testing-library/jest-dom": "^5.16.5",
|
|
26
|
-
"@testing-library/react": "^13.4.0",
|
|
27
|
-
"@testing-library/user-event": "^13.5.0",
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
]
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
"@
|
|
86
|
-
"@
|
|
87
|
-
"@
|
|
88
|
-
"@
|
|
89
|
-
"@storybook/
|
|
90
|
-
"@storybook/
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"husky": "^4.3.8",
|
|
100
|
-
"prop-types": "^15.8.1",
|
|
101
|
-
"rimraf": "^5.0.5",
|
|
102
|
-
"storybook": "^7.6.4",
|
|
103
|
-
"webpack": "^5.75.0"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@portnet/ui",
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"description": "Portnet UI",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"react",
|
|
7
|
+
"components",
|
|
8
|
+
"ui"
|
|
9
|
+
],
|
|
10
|
+
"main": "dist/index.js",
|
|
11
|
+
"private": false,
|
|
12
|
+
"files": [
|
|
13
|
+
"dist",
|
|
14
|
+
"README.md"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@emotion/react": "^11.10.5",
|
|
18
|
+
"@emotion/styled": "^11.10.5",
|
|
19
|
+
"@mui/icons-material": "^5.10.16",
|
|
20
|
+
"@mui/lab": "^5.0.0-alpha.60",
|
|
21
|
+
"@mui/material": "^5.10.16",
|
|
22
|
+
"@mui/x-data-grid": "^5.17.26",
|
|
23
|
+
"@mui/x-data-grid-pro": "^5.17.26",
|
|
24
|
+
"@mui/x-date-pickers": "^5.0.4",
|
|
25
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
26
|
+
"@testing-library/react": "^13.4.0",
|
|
27
|
+
"@testing-library/user-event": "^13.5.0",
|
|
28
|
+
"axios": "^0.27.2",
|
|
29
|
+
"formik": "^2.2.9",
|
|
30
|
+
"lodash": "^4.17.21",
|
|
31
|
+
"moment": "^2.29.4",
|
|
32
|
+
"react": "^18.2.0",
|
|
33
|
+
"react-dom": "^18.2.0",
|
|
34
|
+
"react-scripts": "^5.0.1",
|
|
35
|
+
"react-transition-group": "^4.4.5",
|
|
36
|
+
"styled-components": "^6.1.3",
|
|
37
|
+
"uuid": "^9.0.0",
|
|
38
|
+
"web-vitals": "^2.1.4",
|
|
39
|
+
"yup": "^0.32.11"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"start": "react-scripts start",
|
|
43
|
+
"build": "rimraf dist && cross-env NODE_ENV=production babel src/lib --out-dir dist --copy-files",
|
|
44
|
+
"test": "react-scripts test",
|
|
45
|
+
"eject": "react-scripts eject",
|
|
46
|
+
"storybook": "storybook dev -p 6006 -s public",
|
|
47
|
+
"build-storybook": "storybook build -s public"
|
|
48
|
+
},
|
|
49
|
+
"eslintConfig": {
|
|
50
|
+
"extends": [
|
|
51
|
+
"react-app",
|
|
52
|
+
"react-app/jest"
|
|
53
|
+
],
|
|
54
|
+
"overrides": [
|
|
55
|
+
{
|
|
56
|
+
"files": [
|
|
57
|
+
"**/*.stories.*"
|
|
58
|
+
],
|
|
59
|
+
"rules": {
|
|
60
|
+
"import/no-anonymous-default-export": "off"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
"browserslist": {
|
|
66
|
+
"production": [
|
|
67
|
+
">0.2%",
|
|
68
|
+
"not dead",
|
|
69
|
+
"not op_mini all"
|
|
70
|
+
],
|
|
71
|
+
"development": [
|
|
72
|
+
"last 1 chrome version",
|
|
73
|
+
"last 1 firefox version",
|
|
74
|
+
"last 1 safari version"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@babel/cli": "^7.19.3",
|
|
79
|
+
"@babel/core": "^7.20.5",
|
|
80
|
+
"@babel/preset-env": "^7.20.2",
|
|
81
|
+
"@babel/preset-react": "^7.18.6",
|
|
82
|
+
"@storybook/addon-actions": "^7.6.4",
|
|
83
|
+
"@storybook/addon-essentials": "^7.6.4",
|
|
84
|
+
"@storybook/addon-interactions": "^7.6.4",
|
|
85
|
+
"@storybook/addon-links": "^7.6.4",
|
|
86
|
+
"@storybook/node-logger": "^7.6.4",
|
|
87
|
+
"@storybook/preset-create-react-app": "^7.6.4",
|
|
88
|
+
"@storybook/react": "^7.6.4",
|
|
89
|
+
"@storybook/react-webpack5": "^7.6.4",
|
|
90
|
+
"@storybook/testing-library": "^0.2.2",
|
|
91
|
+
"cross-env": "^7.0.3",
|
|
92
|
+
"husky": "^4.3.8",
|
|
93
|
+
"prop-types": "^15.8.1",
|
|
94
|
+
"rimraf": "^5.0.5",
|
|
95
|
+
"storybook": "^7.6.4",
|
|
96
|
+
"webpack": "^5.75.0"
|
|
97
|
+
}
|
|
98
|
+
}
|