arengibook 2.4.28 → 2.4.29
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/index.js +15 -9
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12767,10 +12767,10 @@ function styleInject(css, ref) {
|
|
|
12767
12767
|
}
|
|
12768
12768
|
}
|
|
12769
12769
|
|
|
12770
|
-
var css_248z = ".datepicker-fullwidth {\n width: 100%;\n}\n\n.datepicker-fullwidth > .p-calendar {\n width: 100%;\n}\n";
|
|
12770
|
+
var css_248z = ".datepicker-fullwidth {\n width: 100%;\n}\n\n.datepicker-fullwidth > .p-calendar {\n width: 100%;\n}\n\n.prime-wrapper * {\n all: unset; /* Reset tout */\n all: revert-layer; /* Ou revert si supporté */\n box-sizing: border-box;\n}\n\n\n";
|
|
12771
12771
|
styleInject(css_248z);
|
|
12772
12772
|
|
|
12773
|
-
var _excluded$3 = ["value", "onChange", "placeholder", "dateFormat", "view", "invalid", "errorMessage", "disabled", "locale", "showTime", "showIcon", "icon", "iconBgButton", "iconPos", "name", "id", "fullWidth", "inputProps"];
|
|
12773
|
+
var _excluded$3 = ["value", "onChange", "placeholder", "dateFormat", "view", "invalid", "errorMessage", "disabled", "locale", "showTime", "showIcon", "icon", "iconBgButton", "iconPos", "name", "id", "fullWidth", "inputProps", "inputStyle"];
|
|
12774
12774
|
var normalizeDate = function normalizeDate(v) {
|
|
12775
12775
|
if (!v) return null;
|
|
12776
12776
|
return v instanceof Date ? v : new Date(v);
|
|
@@ -12811,7 +12811,13 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12811
12811
|
_ref$fullWidth = _ref.fullWidth,
|
|
12812
12812
|
fullWidth = _ref$fullWidth === void 0 ? true : _ref$fullWidth,
|
|
12813
12813
|
_ref$inputProps = _ref.inputProps,
|
|
12814
|
-
inputProps = _ref$inputProps === void 0 ? {} : _ref$inputProps
|
|
12814
|
+
inputProps = _ref$inputProps === void 0 ? {} : _ref$inputProps,
|
|
12815
|
+
_ref$inputStyle = _ref.inputStyle,
|
|
12816
|
+
inputStyle = _ref$inputStyle === void 0 ? {
|
|
12817
|
+
padding: '0.25rem',
|
|
12818
|
+
fontSize: '0.8rem',
|
|
12819
|
+
height: '2rem'
|
|
12820
|
+
} : _ref$inputStyle;
|
|
12815
12821
|
_objectWithoutProperties$1(_ref, _excluded$3);
|
|
12816
12822
|
var _useState = useState(function () {
|
|
12817
12823
|
return normalizeDate(value);
|
|
@@ -12839,11 +12845,11 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12839
12845
|
});
|
|
12840
12846
|
}
|
|
12841
12847
|
}, [inputProps]);
|
|
12842
|
-
|
|
12843
|
-
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12848
|
+
|
|
12849
|
+
// const inputStyle = {
|
|
12850
|
+
// border: invalid ? '1px solid red' : '1px solid #ccc',
|
|
12851
|
+
// };
|
|
12852
|
+
|
|
12847
12853
|
var localLanguage = locale !== null && locale !== void 0 ? locale : 'fr';
|
|
12848
12854
|
var handleChange = function handleChange(e) {
|
|
12849
12855
|
var newDate = e.value;
|
|
@@ -12856,7 +12862,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12856
12862
|
};
|
|
12857
12863
|
addLocale(localLanguage, LOCALES[localLanguage]);
|
|
12858
12864
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12859
|
-
className: fullWidth ? "datepicker-fullwidth flex flex-col gap-1" : "flex flex-col gap-1"
|
|
12865
|
+
className: fullWidth ? "datepicker-fullwidth prime-wrapper flex flex-col gap-1" : "prime-wrapper flex flex-col gap-1"
|
|
12860
12866
|
}, /*#__PURE__*/React__default.createElement(CustomCalendar, {
|
|
12861
12867
|
value: valeur,
|
|
12862
12868
|
onChange: handleChange,
|