@portnet/ui 3.1.1 → 4.0.0
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 +85 -37
- package/dist/components/common/StyledMuiButton.js +3 -5
- package/dist/components/common/StyledMuiTextField.js +95 -40
- package/dist/components/inputs/PuiDateField.js +121 -57
- package/dist/components/inputs/PuiDateTimeField.js +27 -296
- package/dist/components/inputs/PuiSelect.js +26 -50
- package/dist/components/others/DateTimePickerField.js +210 -0
- package/dist/components/others/PuiSection.js +83 -20
- package/dist/components/referentiel/components/PuiSpecificReferentielField.js +6 -24
- package/dist/components/table/PuiTable.js +110 -41
- package/dist/components/typography/PuiMainTitle.js +57 -4
- package/dist/components/ui/pages/general/PuiSearchPage.js +56 -34
- package/dist/config/apperance.js +13 -56
- package/dist/index.js +0 -21
- package/package.json +105 -108
- package/dist/components/stepper/PuiStepContent.js +0 -66
- package/dist/components/stepper/PuiStepper.js +0 -184
- package/dist/components/stepper/PuiStepperActions.js +0 -105
- package/dist/hooks/useCustomAxios.js +0 -36
|
@@ -11,6 +11,7 @@ exports.default = void 0;
|
|
|
11
11
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
12
12
|
require("core-js/modules/esnext.iterator.map.js");
|
|
13
13
|
var _material = require("@mui/material");
|
|
14
|
+
var _styles = require("@mui/material/styles");
|
|
14
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
16
|
var React = _interopRequireWildcard(require("react"));
|
|
16
17
|
var _apperance = require("../../config/apperance");
|
|
@@ -21,7 +22,57 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
21
22
|
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; }
|
|
22
23
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
23
24
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
24
|
-
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); }
|
|
25
|
+
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); } // Helper function to get palette from theme or fallback to appearance
|
|
26
|
+
const getPalette = theme => {
|
|
27
|
+
// Check if theme has our custom palette properties
|
|
28
|
+
if (theme && theme.palette && theme.palette.gray && theme.palette.gray.darker) {
|
|
29
|
+
// Theme has our custom structure, now normalize it
|
|
30
|
+
return {
|
|
31
|
+
primary: theme.palette.primary.main || theme.palette.primary,
|
|
32
|
+
secondary: theme.palette.secondary.main || theme.palette.secondary,
|
|
33
|
+
error: theme.palette.error ? theme.palette.error.main || theme.palette.error : _apperance.palette.error,
|
|
34
|
+
warning: theme.palette.warning ? theme.palette.warning.main || theme.palette.warning : _apperance.palette.warning,
|
|
35
|
+
success: theme.palette.success ? theme.palette.success.main || theme.palette.success : _apperance.palette.success,
|
|
36
|
+
info: theme.palette.info ? theme.palette.info.main || theme.palette.info : _apperance.palette.info,
|
|
37
|
+
white: theme.palette.white || _apperance.palette.white,
|
|
38
|
+
dark: theme.palette.dark || _apperance.palette.dark,
|
|
39
|
+
gray: theme.palette.gray,
|
|
40
|
+
blue: theme.palette.blue || _apperance.palette.blue,
|
|
41
|
+
background: theme.palette.background || _apperance.palette.background,
|
|
42
|
+
border: theme.palette.border || _apperance.palette.border,
|
|
43
|
+
shadow: theme.palette.shadow || _apperance.palette.shadow
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
// Check if theme object itself has gray (root level)
|
|
47
|
+
if (theme && theme.gray && theme.gray.darker) {
|
|
48
|
+
return {
|
|
49
|
+
primary: theme.primary,
|
|
50
|
+
secondary: theme.secondary,
|
|
51
|
+
error: theme.error || _apperance.palette.error,
|
|
52
|
+
warning: theme.warning || _apperance.palette.warning,
|
|
53
|
+
success: theme.success || _apperance.palette.success,
|
|
54
|
+
info: theme.info || _apperance.palette.info,
|
|
55
|
+
white: theme.white || _apperance.palette.white,
|
|
56
|
+
dark: theme.dark || _apperance.palette.dark,
|
|
57
|
+
gray: theme.gray,
|
|
58
|
+
blue: theme.blue || _apperance.palette.blue,
|
|
59
|
+
background: theme.background || _apperance.palette.background,
|
|
60
|
+
border: theme.border || _apperance.palette.border,
|
|
61
|
+
shadow: theme.shadow || _apperance.palette.shadow
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
return _apperance.palette;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
// Helper function to get PuiMainTitle color from theme
|
|
68
|
+
const getPuiMainTitleColor = theme => {
|
|
69
|
+
if (theme && theme.components && theme.components.PuiMainTitle && theme.components.PuiMainTitle.color) {
|
|
70
|
+
return theme.components.PuiMainTitle.color;
|
|
71
|
+
}
|
|
72
|
+
// Fall back to primary color
|
|
73
|
+
const themePalette = getPalette(theme);
|
|
74
|
+
return themePalette.primary;
|
|
75
|
+
};
|
|
25
76
|
const PuiMainTitle = _ref => {
|
|
26
77
|
let {
|
|
27
78
|
id,
|
|
@@ -31,6 +82,8 @@ const PuiMainTitle = _ref => {
|
|
|
31
82
|
trace,
|
|
32
83
|
title
|
|
33
84
|
} = _ref;
|
|
85
|
+
const theme = (0, _styles.useTheme)();
|
|
86
|
+
const mainTitleColor = getPuiMainTitleColor(theme);
|
|
34
87
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
35
88
|
id: id,
|
|
36
89
|
className: className,
|
|
@@ -44,13 +97,13 @@ const PuiMainTitle = _ref => {
|
|
|
44
97
|
sx: {
|
|
45
98
|
marginRight: 1,
|
|
46
99
|
fontSize: "2.4em",
|
|
47
|
-
color:
|
|
100
|
+
color: mainTitleColor
|
|
48
101
|
}
|
|
49
102
|
})
|
|
50
103
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
51
104
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
52
105
|
sx: {
|
|
53
|
-
color:
|
|
106
|
+
color: mainTitleColor,
|
|
54
107
|
fontSize: "1.8rem",
|
|
55
108
|
fontWeight: "bold"
|
|
56
109
|
},
|
|
@@ -58,7 +111,7 @@ const PuiMainTitle = _ref => {
|
|
|
58
111
|
children: title
|
|
59
112
|
}), Boolean(trace) && /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Typography, {
|
|
60
113
|
sx: {
|
|
61
|
-
color:
|
|
114
|
+
color: mainTitleColor,
|
|
62
115
|
fontSize: ".8rem",
|
|
63
116
|
fontWeight: "bold"
|
|
64
117
|
},
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
require("core-js/modules/es.weak-map.js");
|
|
4
4
|
require("core-js/modules/esnext.iterator.filter.js");
|
|
5
5
|
require("core-js/modules/esnext.iterator.for-each.js");
|
|
6
|
-
require("core-js/modules/web.dom-collections.iterator.js");
|
|
7
6
|
Object.defineProperty(exports, "__esModule", {
|
|
8
7
|
value: true
|
|
9
8
|
});
|
|
10
9
|
exports.default = void 0;
|
|
11
10
|
require("core-js/modules/esnext.iterator.constructor.js");
|
|
12
11
|
require("core-js/modules/esnext.iterator.map.js");
|
|
13
|
-
|
|
12
|
+
require("core-js/modules/web.dom-collections.iterator.js");
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
|
-
var
|
|
15
|
+
var _formik = require("formik");
|
|
16
16
|
var _PuiButton = _interopRequireDefault(require("../../../buttons/PuiButton"));
|
|
17
17
|
var _PuiFormikForm = _interopRequireDefault(require("../../../others/PuiFormikForm"));
|
|
18
18
|
var _PuiGrid = _interopRequireDefault(require("../../../others/PuiGrid"));
|
|
@@ -20,14 +20,16 @@ var _PuiIcon = _interopRequireDefault(require("../../../others/PuiIcon"));
|
|
|
20
20
|
var _PuiSection = _interopRequireDefault(require("../../../others/PuiSection"));
|
|
21
21
|
var _PuiTable = _interopRequireDefault(require("../../../table/PuiTable"));
|
|
22
22
|
var _PuiDefaultPage = _interopRequireDefault(require("./PuiDefaultPage"));
|
|
23
|
+
var _ExpandMore = _interopRequireDefault(require("@mui/icons-material/ExpandMore"));
|
|
24
|
+
var _ExpandLess = _interopRequireDefault(require("@mui/icons-material/ExpandLess"));
|
|
23
25
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
24
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
25
26
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
27
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
26
28
|
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; }
|
|
27
29
|
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; }
|
|
28
30
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
29
31
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
30
|
-
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); }
|
|
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); } // Container for search form and actions
|
|
31
33
|
const PuiStandardSearchPageContainer = _ref => {
|
|
32
34
|
let {
|
|
33
35
|
actions,
|
|
@@ -63,8 +65,13 @@ const PuiSearchPage = _ref2 => {
|
|
|
63
65
|
onReset,
|
|
64
66
|
onSubmit,
|
|
65
67
|
children: _children,
|
|
66
|
-
additionalActions
|
|
68
|
+
additionalActions,
|
|
69
|
+
collapsibleSearchSection = true // Collapsible by default
|
|
67
70
|
} = _ref2;
|
|
71
|
+
const [isSearchSectionExpanded, setSearchSectionExpanded] = (0, _react.useState)(false);
|
|
72
|
+
const toggleSearchSection = () => {
|
|
73
|
+
setSearchSectionExpanded(prev => !prev);
|
|
74
|
+
};
|
|
68
75
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_PuiDefaultPage.default, {
|
|
69
76
|
title: title,
|
|
70
77
|
titleIcon: titleIcon,
|
|
@@ -76,11 +83,24 @@ const PuiSearchPage = _ref2 => {
|
|
|
76
83
|
retour: retour,
|
|
77
84
|
onRetour: onRetour,
|
|
78
85
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiSection.default, {
|
|
79
|
-
title:
|
|
86
|
+
title: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
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
|
+
}),
|
|
80
100
|
sx: {
|
|
81
101
|
marginBottom: 2
|
|
82
102
|
},
|
|
83
|
-
children: formik ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_formik.Formik, _objectSpread(_objectSpread({
|
|
103
|
+
children: isSearchSectionExpanded && (formik ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_formik.Formik, _objectSpread(_objectSpread({
|
|
84
104
|
initialValues: {}
|
|
85
105
|
}, formikProps), {}, {
|
|
86
106
|
children: _ref3 => {
|
|
@@ -115,16 +135,14 @@ const PuiSearchPage = _ref2 => {
|
|
|
115
135
|
loadingPosition: "start",
|
|
116
136
|
children: "Rechercher"
|
|
117
137
|
})
|
|
118
|
-
}), additionalActions && additionalActions.map((actionItem, index) => {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}, index);
|
|
127
|
-
})]
|
|
138
|
+
}), additionalActions && additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
139
|
+
item: true,
|
|
140
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
141
|
+
startIcon: actionItem.icon,
|
|
142
|
+
onClick: actionItem.action,
|
|
143
|
+
children: actionItem.name
|
|
144
|
+
})
|
|
145
|
+
}, index))]
|
|
128
146
|
}),
|
|
129
147
|
children: _children
|
|
130
148
|
})
|
|
@@ -156,22 +174,22 @@ const PuiSearchPage = _ref2 => {
|
|
|
156
174
|
loadingPosition: "start",
|
|
157
175
|
children: "Rechercher"
|
|
158
176
|
})
|
|
159
|
-
}), additionalActions && additionalActions.map((actionItem, index) => {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}, index);
|
|
168
|
-
})]
|
|
177
|
+
}), additionalActions && additionalActions.map((actionItem, index) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiGrid.default, {
|
|
178
|
+
item: true,
|
|
179
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiButton.default, {
|
|
180
|
+
startIcon: actionItem.icon,
|
|
181
|
+
onClick: actionItem.action,
|
|
182
|
+
children: actionItem.name
|
|
183
|
+
})
|
|
184
|
+
}, index))]
|
|
169
185
|
}),
|
|
170
186
|
children: _children
|
|
171
|
-
})
|
|
172
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTable.default, _objectSpread({
|
|
187
|
+
}))
|
|
188
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_PuiTable.default, _objectSpread(_objectSpread({
|
|
173
189
|
paginationMode: "server"
|
|
174
|
-
}, tableProps)
|
|
190
|
+
}, tableProps), {}, {
|
|
191
|
+
pinnedColumns: tableProps.pinnedColumns // Added pinnedColumns
|
|
192
|
+
}))]
|
|
175
193
|
});
|
|
176
194
|
};
|
|
177
195
|
PuiSearchPage.propTypes = {
|
|
@@ -184,7 +202,9 @@ PuiSearchPage.propTypes = {
|
|
|
184
202
|
topNav: _propTypes.default.bool,
|
|
185
203
|
bottomNav: _propTypes.default.bool,
|
|
186
204
|
loading: _propTypes.default.bool,
|
|
187
|
-
tableProps: _propTypes.default.
|
|
205
|
+
tableProps: _propTypes.default.shape({
|
|
206
|
+
pinnedColumns: _propTypes.default.object // Added pinnedColumns prop type
|
|
207
|
+
}),
|
|
188
208
|
retour: _propTypes.default.bool,
|
|
189
209
|
onRetour: _propTypes.default.func,
|
|
190
210
|
onReset: _propTypes.default.func,
|
|
@@ -193,11 +213,13 @@ PuiSearchPage.propTypes = {
|
|
|
193
213
|
name: _propTypes.default.string.isRequired,
|
|
194
214
|
action: _propTypes.default.func.isRequired,
|
|
195
215
|
icon: _propTypes.default.element
|
|
196
|
-
}))
|
|
216
|
+
})),
|
|
217
|
+
collapsibleSearchSection: _propTypes.default.bool
|
|
197
218
|
};
|
|
198
219
|
PuiSearchPage.defaultProps = {
|
|
199
220
|
formik: true,
|
|
200
221
|
loading: false,
|
|
201
|
-
additionalActions: []
|
|
222
|
+
additionalActions: [],
|
|
223
|
+
collapsibleSearchSection: true
|
|
202
224
|
};
|
|
203
225
|
var _default = exports.default = PuiSearchPage;
|
package/dist/config/apperance.js
CHANGED
|
@@ -6,64 +6,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.palette = void 0;
|
|
7
7
|
const palette = exports.palette = {
|
|
8
8
|
inherit: "inherit",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// Status colors
|
|
18
|
-
error: "#DC3545",
|
|
19
|
-
warning: "#FFC107",
|
|
20
|
-
success: "#28A745",
|
|
21
|
-
info: "#17A2B8",
|
|
22
|
-
// Colors neutres
|
|
23
|
-
white: "#FFFFFF",
|
|
24
|
-
dark: "#212529",
|
|
25
|
-
black: "#000000",
|
|
26
|
-
// Nouvelles couleurs basées sur les maquettes
|
|
27
|
-
accent: "#FF6B35",
|
|
28
|
-
// Orange pour les accents
|
|
29
|
-
blue: {
|
|
30
|
-
light: "#E3F2FD",
|
|
31
|
-
main: "#4169E1",
|
|
32
|
-
dark: "#1E40AF",
|
|
33
|
-
darker: "#1E3A8A"
|
|
34
|
-
},
|
|
9
|
+
primary: "#232f66",
|
|
10
|
+
secondary: "#e7e7e7",
|
|
11
|
+
error: "#d32f2f",
|
|
12
|
+
warning: "#FD9727",
|
|
13
|
+
success: "#48AC24",
|
|
14
|
+
info: "#2278CF",
|
|
15
|
+
white: "#FFF",
|
|
16
|
+
dark: "#000",
|
|
35
17
|
gray: {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
300: "#CED4DA",
|
|
40
|
-
400: "#ADB5BD",
|
|
41
|
-
500: "#6C757D",
|
|
42
|
-
600: "#495057",
|
|
43
|
-
700: "#343A40",
|
|
44
|
-
800: "#212529",
|
|
45
|
-
900: "#16181B"
|
|
18
|
+
darker: "#505050",
|
|
19
|
+
dark: "#b6b6b6",
|
|
20
|
+
light: "#F1F1F1"
|
|
46
21
|
},
|
|
47
22
|
background: {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
card: "#FFFFFF",
|
|
51
|
-
sidebar: "#FAFBFC",
|
|
52
|
-
required: "#FFF9E6",
|
|
53
|
-
error: "#FFF5F5",
|
|
54
|
-
success: "#F0FDF4",
|
|
55
|
-
warning: "#FFFBEB",
|
|
56
|
-
info: "#F0F9FF"
|
|
57
|
-
},
|
|
58
|
-
border: {
|
|
59
|
-
light: "#E9ECEF",
|
|
60
|
-
main: "#DEE2E6",
|
|
61
|
-
dark: "#ADB5BD"
|
|
62
|
-
},
|
|
63
|
-
shadow: {
|
|
64
|
-
light: "0px 1px 3px rgba(0, 0, 0, 0.1)",
|
|
65
|
-
medium: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
|
66
|
-
strong: "0px 10px 25px rgba(0, 0, 0, 0.15)",
|
|
67
|
-
card: "0px 2px 8px rgba(0, 0, 0, 0.08)"
|
|
23
|
+
required: "#FFFBE3",
|
|
24
|
+
error: "#FFE5E5"
|
|
68
25
|
}
|
|
69
26
|
};
|
package/dist/index.js
CHANGED
|
@@ -237,24 +237,6 @@ Object.defineProperty(exports, "PuiSpecificReferentielField", {
|
|
|
237
237
|
return _PuiSpecificReferentielField.default;
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
|
-
Object.defineProperty(exports, "PuiStepContent", {
|
|
241
|
-
enumerable: true,
|
|
242
|
-
get: function get() {
|
|
243
|
-
return _PuiStepContent.default;
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
Object.defineProperty(exports, "PuiStepper", {
|
|
247
|
-
enumerable: true,
|
|
248
|
-
get: function get() {
|
|
249
|
-
return _PuiStepper.default;
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(exports, "PuiStepperActions", {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function get() {
|
|
255
|
-
return _PuiStepperActions.default;
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
240
|
Object.defineProperty(exports, "PuiTab", {
|
|
259
241
|
enumerable: true,
|
|
260
242
|
get: function get() {
|
|
@@ -350,7 +332,4 @@ var _PuiDefaultPage = _interopRequireDefault(require("./components/ui/pages/gene
|
|
|
350
332
|
var _PuiSearchPage = _interopRequireDefault(require("./components/ui/pages/general/PuiSearchPage"));
|
|
351
333
|
var _useAlert = _interopRequireDefault(require("./hooks/useAlert"));
|
|
352
334
|
var _useQuery = _interopRequireDefault(require("./hooks/useQuery"));
|
|
353
|
-
var _PuiStepper = _interopRequireDefault(require("./components/stepper/PuiStepper"));
|
|
354
|
-
var _PuiStepContent = _interopRequireDefault(require("./components/stepper/PuiStepContent"));
|
|
355
|
-
var _PuiStepperActions = _interopRequireDefault(require("./components/stepper/PuiStepperActions"));
|
|
356
335
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/package.json
CHANGED
|
@@ -1,108 +1,105 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@portnet/ui",
|
|
3
|
-
"version": "
|
|
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
|
-
"react
|
|
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
|
-
"@storybook/
|
|
92
|
-
"@storybook/
|
|
93
|
-
"@storybook/
|
|
94
|
-
"@storybook/
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"webpack": "^5.75.0"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@portnet/ui",
|
|
3
|
+
"version": "4.0.0",
|
|
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": "^7.26.0",
|
|
25
|
+
"@testing-library/jest-dom": "^5.16.5",
|
|
26
|
+
"@testing-library/react": "^13.4.0",
|
|
27
|
+
"@testing-library/user-event": "^13.5.0",
|
|
28
|
+
"ajv": "^8.17.1",
|
|
29
|
+
"ajv-keywords": "^5.1.0",
|
|
30
|
+
"axios": "^0.27.2",
|
|
31
|
+
"dayjs": "^1.11.13",
|
|
32
|
+
"formik": "^2.2.9",
|
|
33
|
+
"lodash": "^4.17.21",
|
|
34
|
+
"moment": "^2.29.4",
|
|
35
|
+
"moment-timezone": "^0.5.45",
|
|
36
|
+
"react": "^18.2.0",
|
|
37
|
+
"react-dom": "^18.2.0",
|
|
38
|
+
"react-scripts": "^5.0.1",
|
|
39
|
+
"react-transition-group": "^4.4.5",
|
|
40
|
+
"styled-components": "^6.1.3",
|
|
41
|
+
"uuid": "^9.0.0",
|
|
42
|
+
"web-vitals": "^2.1.4",
|
|
43
|
+
"yup": "^0.32.11"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"react-router-dom": "^6.0.0"
|
|
47
|
+
},
|
|
48
|
+
"scripts": {
|
|
49
|
+
"start": "react-scripts start",
|
|
50
|
+
"build": "rimraf dist && cross-env NODE_ENV=production babel src/lib --out-dir dist --copy-files",
|
|
51
|
+
"test": "react-scripts test",
|
|
52
|
+
"eject": "react-scripts eject",
|
|
53
|
+
"storybook": "storybook dev -p 6006 -s public",
|
|
54
|
+
"build-storybook": "storybook build -s public"
|
|
55
|
+
},
|
|
56
|
+
"eslintConfig": {
|
|
57
|
+
"extends": [
|
|
58
|
+
"react-app",
|
|
59
|
+
"react-app/jest"
|
|
60
|
+
],
|
|
61
|
+
"overrides": [
|
|
62
|
+
{
|
|
63
|
+
"files": [
|
|
64
|
+
"**/*.stories.*"
|
|
65
|
+
],
|
|
66
|
+
"rules": {
|
|
67
|
+
"import/no-anonymous-default-export": "off"
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
},
|
|
72
|
+
"browserslist": {
|
|
73
|
+
"production": [
|
|
74
|
+
">0.2%",
|
|
75
|
+
"not dead",
|
|
76
|
+
"not op_mini all"
|
|
77
|
+
],
|
|
78
|
+
"development": [
|
|
79
|
+
"last 1 chrome version",
|
|
80
|
+
"last 1 firefox version",
|
|
81
|
+
"last 1 safari version"
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
"devDependencies": {
|
|
85
|
+
"@babel/cli": "^7.19.3",
|
|
86
|
+
"@babel/core": "^7.20.5",
|
|
87
|
+
"@babel/preset-env": "^7.20.2",
|
|
88
|
+
"@babel/preset-react": "^7.18.6",
|
|
89
|
+
"@storybook/addon-actions": "^7.6.4",
|
|
90
|
+
"@storybook/addon-essentials": "^7.6.4",
|
|
91
|
+
"@storybook/addon-interactions": "^7.6.4",
|
|
92
|
+
"@storybook/addon-links": "^7.6.4",
|
|
93
|
+
"@storybook/node-logger": "^7.6.4",
|
|
94
|
+
"@storybook/preset-create-react-app": "^7.6.4",
|
|
95
|
+
"@storybook/react": "^7.6.4",
|
|
96
|
+
"@storybook/react-webpack5": "^7.6.4",
|
|
97
|
+
"@storybook/testing-library": "^0.2.2",
|
|
98
|
+
"cross-env": "^7.0.3",
|
|
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
|
+
}
|