arengibook 2.4.54 → 2.4.56
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 +20 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12993,10 +12993,7 @@ var DatePickerPresets = {
|
|
|
12993
12993
|
Default: {
|
|
12994
12994
|
placeholder: 'Choisissez une date',
|
|
12995
12995
|
dateFormat: 'dd/mm/yy',
|
|
12996
|
-
view: 'date'
|
|
12997
|
-
onSelect: function onSelect(e) {
|
|
12998
|
-
return alert(e.getFullYear());
|
|
12999
|
-
}
|
|
12996
|
+
view: 'date'
|
|
13000
12997
|
},
|
|
13001
12998
|
MonthOnly: {
|
|
13002
12999
|
placeholder: 'Choisissez un mois',
|
|
@@ -35820,9 +35817,8 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
35820
35817
|
_ref$errorMessage = _ref.errorMessage,
|
|
35821
35818
|
errorMessage = _ref$errorMessage === void 0 ? '' : _ref$errorMessage,
|
|
35822
35819
|
_ref$valueStyle = _ref.valueStyle,
|
|
35823
|
-
valueStyle = _ref$valueStyle === void 0 ? {} : _ref$valueStyle
|
|
35824
|
-
_ref
|
|
35825
|
-
optionStyle = _ref$optionStyle === void 0 ? {} : _ref$optionStyle;
|
|
35820
|
+
valueStyle = _ref$valueStyle === void 0 ? {} : _ref$valueStyle;
|
|
35821
|
+
_ref.optionStyle;
|
|
35826
35822
|
var _useState = useState(value !== null && value !== void 0 ? value : null),
|
|
35827
35823
|
_useState2 = _slicedToArray$8(_useState, 2),
|
|
35828
35824
|
optionSelected = _useState2[0],
|
|
@@ -35848,13 +35844,20 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
35848
35844
|
border: invalid ? '1px solid red' : '1px solid #ccc',
|
|
35849
35845
|
width: '100%'
|
|
35850
35846
|
};
|
|
35851
|
-
|
|
35852
|
-
|
|
35853
|
-
|
|
35854
|
-
|
|
35855
|
-
|
|
35856
|
-
|
|
35857
|
-
|
|
35847
|
+
|
|
35848
|
+
// const optionTemplate = (option) => {
|
|
35849
|
+
// return (
|
|
35850
|
+
// <div
|
|
35851
|
+
// style={{
|
|
35852
|
+
// fontSize: '14px',
|
|
35853
|
+
// ...optionStyle,
|
|
35854
|
+
// }}
|
|
35855
|
+
// >
|
|
35856
|
+
// {option.label}
|
|
35857
|
+
// </div>
|
|
35858
|
+
// );
|
|
35859
|
+
// };
|
|
35860
|
+
|
|
35858
35861
|
var valueTemplate = function valueTemplate(option) {
|
|
35859
35862
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
35860
35863
|
style: _objectSpread2({
|
|
@@ -35876,8 +35879,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
35876
35879
|
filter: filter,
|
|
35877
35880
|
optionLabel: optionLabel,
|
|
35878
35881
|
optionValue: optionValue,
|
|
35879
|
-
style: style
|
|
35880
|
-
itemTemplate
|
|
35882
|
+
style: style
|
|
35883
|
+
// itemTemplate={optionTemplate}
|
|
35884
|
+
,
|
|
35881
35885
|
valueTemplate: valueTemplate,
|
|
35882
35886
|
onHide: resetDropdownFilter
|
|
35883
35887
|
}), invalid && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("small", {
|