@portnet/ui 1.1.7 → 1.1.9
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.
|
@@ -30,6 +30,15 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
30
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); }
|
|
31
31
|
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
32
32
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
33
|
+
const frenchLocaleText = {
|
|
34
|
+
cancelButtonLabel: "Annuler",
|
|
35
|
+
okButtonLabel: "Appliquer",
|
|
36
|
+
toolbarTitle: "Sélectionner la date et l'heure",
|
|
37
|
+
todayButtonLabel: "Aujourd’hui",
|
|
38
|
+
clockLabelText: "Sélectionnez l’heure",
|
|
39
|
+
calendarWeekNumberHeaderLabel: "Semaine",
|
|
40
|
+
calendarWeekNumberLabel: "Semaine {weekNumber}"
|
|
41
|
+
};
|
|
33
42
|
const palette = {
|
|
34
43
|
inherit: "inherit",
|
|
35
44
|
primary: "#232f66",
|
|
@@ -145,6 +154,7 @@ const PuiStandardDateField = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
145
154
|
};
|
|
146
155
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_LocalizationProvider.LocalizationProvider, {
|
|
147
156
|
dateAdapter: _AdapterDayjs.AdapterDayjs,
|
|
157
|
+
localeText: frenchLocaleText,
|
|
148
158
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DesktopDatePicker.DesktopDatePicker, _objectSpread({
|
|
149
159
|
ref: ref,
|
|
150
160
|
sx: sx,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portnet/ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Portnet UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -25,7 +25,9 @@
|
|
|
25
25
|
"@testing-library/jest-dom": "^5.16.5",
|
|
26
26
|
"@testing-library/react": "^13.4.0",
|
|
27
27
|
"@testing-library/user-event": "^13.5.0",
|
|
28
|
+
"ajv": "^8.17.1",
|
|
28
29
|
"axios": "^0.27.2",
|
|
30
|
+
"dayjs": "^1.11.13",
|
|
29
31
|
"formik": "^2.2.9",
|
|
30
32
|
"lodash": "^4.17.21",
|
|
31
33
|
"moment": "^2.29.4",
|