arengibook 2.4.29 → 2.4.31
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 +9 -15
- 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\n.
|
|
12770
|
+
var css_248z = ".datepicker-fullwidth {\n width: 100%;\n}\n\n.datepicker-fullwidth > .p-calendar {\n width: 100%;\n}\n\n.datepickerbook .p-datepicker-calendar th {\n text-align: center !important;\n}\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"];
|
|
12774
12774
|
var normalizeDate = function normalizeDate(v) {
|
|
12775
12775
|
if (!v) return null;
|
|
12776
12776
|
return v instanceof Date ? v : new Date(v);
|
|
@@ -12811,13 +12811,7 @@ 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
|
|
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;
|
|
12814
|
+
inputProps = _ref$inputProps === void 0 ? {} : _ref$inputProps;
|
|
12821
12815
|
_objectWithoutProperties$1(_ref, _excluded$3);
|
|
12822
12816
|
var _useState = useState(function () {
|
|
12823
12817
|
return normalizeDate(value);
|
|
@@ -12845,11 +12839,11 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12845
12839
|
});
|
|
12846
12840
|
}
|
|
12847
12841
|
}, [inputProps]);
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
|
|
12852
|
-
|
|
12842
|
+
var inputStyle = {
|
|
12843
|
+
border: invalid ? '1px solid red' : '1px solid #ccc',
|
|
12844
|
+
padding: '0.5rem',
|
|
12845
|
+
borderRadius: '6px'
|
|
12846
|
+
};
|
|
12853
12847
|
var localLanguage = locale !== null && locale !== void 0 ? locale : 'fr';
|
|
12854
12848
|
var handleChange = function handleChange(e) {
|
|
12855
12849
|
var newDate = e.value;
|
|
@@ -12862,7 +12856,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12862
12856
|
};
|
|
12863
12857
|
addLocale(localLanguage, LOCALES[localLanguage]);
|
|
12864
12858
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12865
|
-
className: fullWidth ? "datepicker-fullwidth
|
|
12859
|
+
className: fullWidth ? "datepicker-fullwidth datepickerbook flex flex-col gap-1" : "datepickerbook flex flex-col gap-1"
|
|
12866
12860
|
}, /*#__PURE__*/React__default.createElement(CustomCalendar, {
|
|
12867
12861
|
value: valeur,
|
|
12868
12862
|
onChange: handleChange,
|