arengibook 2.4.23 → 2.4.25
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 +35 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12711,6 +12711,36 @@ var LOCALES = {
|
|
|
12711
12711
|
}
|
|
12712
12712
|
};
|
|
12713
12713
|
|
|
12714
|
+
function styleInject(css, ref) {
|
|
12715
|
+
if ( ref === void 0 ) ref = {};
|
|
12716
|
+
var insertAt = ref.insertAt;
|
|
12717
|
+
|
|
12718
|
+
if (typeof document === 'undefined') { return; }
|
|
12719
|
+
|
|
12720
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
12721
|
+
var style = document.createElement('style');
|
|
12722
|
+
style.type = 'text/css';
|
|
12723
|
+
|
|
12724
|
+
if (insertAt === 'top') {
|
|
12725
|
+
if (head.firstChild) {
|
|
12726
|
+
head.insertBefore(style, head.firstChild);
|
|
12727
|
+
} else {
|
|
12728
|
+
head.appendChild(style);
|
|
12729
|
+
}
|
|
12730
|
+
} else {
|
|
12731
|
+
head.appendChild(style);
|
|
12732
|
+
}
|
|
12733
|
+
|
|
12734
|
+
if (style.styleSheet) {
|
|
12735
|
+
style.styleSheet.cssText = css;
|
|
12736
|
+
} else {
|
|
12737
|
+
style.appendChild(document.createTextNode(css));
|
|
12738
|
+
}
|
|
12739
|
+
}
|
|
12740
|
+
|
|
12741
|
+
var css_248z = ".datepickerstyle {\n width: 100%;\n}\n\n.datepickerstyle > .p-calendar {\n width: 100%;\n}\n";
|
|
12742
|
+
styleInject(css_248z);
|
|
12743
|
+
|
|
12714
12744
|
var normalizeDate = function normalizeDate(v) {
|
|
12715
12745
|
if (!v) return null;
|
|
12716
12746
|
return v instanceof Date ? v : new Date(v);
|
|
@@ -12775,10 +12805,7 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12775
12805
|
};
|
|
12776
12806
|
addLocale(localLanguage, LOCALES[localLanguage]);
|
|
12777
12807
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
12778
|
-
className: "flex flex-col gap-1"
|
|
12779
|
-
style: {
|
|
12780
|
-
width: '100%'
|
|
12781
|
-
}
|
|
12808
|
+
className: "datepickerstyle flex flex-col gap-1"
|
|
12782
12809
|
}, /*#__PURE__*/React__default.createElement(Calendar, {
|
|
12783
12810
|
value: valeur,
|
|
12784
12811
|
onChange: handleChange,
|
|
@@ -12793,7 +12820,10 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
12793
12820
|
icon: icon,
|
|
12794
12821
|
iconPos: iconPos,
|
|
12795
12822
|
inputId: id,
|
|
12796
|
-
name: name
|
|
12823
|
+
name: name,
|
|
12824
|
+
inputProps: {
|
|
12825
|
+
required: true
|
|
12826
|
+
}
|
|
12797
12827
|
}), invalid && /*#__PURE__*/React__default.createElement("small", {
|
|
12798
12828
|
style: {
|
|
12799
12829
|
color: 'red',
|