arengibook 2.4.41 → 2.4.43

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12770,7 +12770,7 @@ function styleInject(css, ref) {
12770
12770
  var css_248z = "/* Force une largeur à 100% de l'input Calendar */\n.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/* Neutralise les styles hérités */\n.datepickerbook table,\n.datepickerbook tbody,\n.datepickerbook tr,\n.datepickerbook td,\n.datepickerbook th {\n background-color: unset !important;\n color: inherit !important;\n border: none;\n}\n\n/* Restaure les couleurs et l'entete du calendrier */\n.datepickerbook .p-datepicker {\n background-color: #fff !important;\n color: #333 !important;\n border-radius: 6px;\n box-shadow: 0 0 8px rgba(0,0,0,0.1);\n}\n\n.datepickerbook .p-datepicker-calendar td {\n text-align: center;\n background-color: transparent !important;\n color: #333;\n}\n\n.datepickerbook .p-datepicker-calendar td.p-highlight {\n background-color: #6366f1 !important;\n color: #fff !important;\n}\n\n.datepickerbook .p-datepicker-calendar th {\n text-align: center !important;\n color: #000;\n}\n\nbody .p-datepicker {\n width: 405px !important;\n min-width: 405px !important;\n max-width: 405px !important;\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", "onBlur", "onSelect", "onClick"];
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,10 @@ 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
+ onBlur = _ref.onBlur,
12816
+ onSelect = _ref.onSelect,
12817
+ onClick = _ref.onClick;
12815
12818
  _objectWithoutProperties$1(_ref, _excluded$3);
12816
12819
  var _useState = useState(function () {
12817
12820
  return normalizeDate(value);
@@ -12889,7 +12892,10 @@ var DatePicker = function DatePicker(_ref) {
12889
12892
  inputId: id,
12890
12893
  name: name,
12891
12894
  ref: inputRef,
12892
- panelClassName: "datepickerbook"
12895
+ panelClassName: "datepickerbook",
12896
+ onBlur: onBlur,
12897
+ onClick: onClick,
12898
+ onSelect: onSelect
12893
12899
  }), invalid && /*#__PURE__*/React__default.createElement("small", {
12894
12900
  style: {
12895
12901
  color: 'red',
@@ -12907,14 +12913,12 @@ var DatePickerPresets = {
12907
12913
  MonthOnly: {
12908
12914
  placeholder: 'Choisissez un mois',
12909
12915
  dateFormat: 'mm/yy',
12910
- view: 'month',
12911
- iconBgButton: '#6366f1'
12916
+ view: 'month'
12912
12917
  },
12913
12918
  YearOnly: {
12914
12919
  placeholder: 'Choisissez une année',
12915
12920
  dateFormat: 'yy',
12916
- view: 'year',
12917
- iconBgButton: '#6366f1'
12921
+ view: 'year'
12918
12922
  },
12919
12923
  Invalid: {
12920
12924
  placeholder: 'Date non valide',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "arengibook",
3
3
  "private": false,
4
- "version": "2.4.41",
4
+ "version": "2.4.43",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "exports": {