odaptos_design_system 1.4.160 → 1.4.161
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/odaptos_design_system.cjs.development.js +14 -13
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +14 -13
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/DatePicker/DatePicker.tsx +25 -26
|
@@ -8620,6 +8620,16 @@ const CssTextField = /*#__PURE__*/styles$U.styled(material.TextField)({
|
|
|
8620
8620
|
}
|
|
8621
8621
|
}
|
|
8622
8622
|
});
|
|
8623
|
+
const DatePickerStyledComponent = params => /*#__PURE__*/React__default.createElement(CssTextField, Object.assign({}, params, {
|
|
8624
|
+
variant: "outlined",
|
|
8625
|
+
fullWidth: true,
|
|
8626
|
+
label: `${params.label && params.topLabel === undefined ? params.label : ''}`,
|
|
8627
|
+
placeholder: params.placeholder,
|
|
8628
|
+
size: "small",
|
|
8629
|
+
required: params.required,
|
|
8630
|
+
error: params.error,
|
|
8631
|
+
onBlur: params.onBlur
|
|
8632
|
+
}));
|
|
8623
8633
|
const DatePicker = ({
|
|
8624
8634
|
className,
|
|
8625
8635
|
label,
|
|
@@ -8636,9 +8646,7 @@ const DatePicker = ({
|
|
|
8636
8646
|
locale = 'enUS',
|
|
8637
8647
|
maxDate,
|
|
8638
8648
|
minDate,
|
|
8639
|
-
placeholder,
|
|
8640
8649
|
required,
|
|
8641
|
-
error,
|
|
8642
8650
|
errorText,
|
|
8643
8651
|
helperText,
|
|
8644
8652
|
views = ['day', 'month', 'year'],
|
|
@@ -8674,20 +8682,13 @@ const DatePicker = ({
|
|
|
8674
8682
|
clearIcon: () => /*#__PURE__*/React__default.createElement(RemoveCircledIcon, {
|
|
8675
8683
|
fill: disabled ? colors.neutral_500 : colors.black
|
|
8676
8684
|
}),
|
|
8677
|
-
textField:
|
|
8678
|
-
variant: "outlined",
|
|
8679
|
-
fullWidth: true,
|
|
8680
|
-
label: `${label && topLabel === undefined ? label : ''}`,
|
|
8681
|
-
placeholder: placeholder,
|
|
8682
|
-
size: "small",
|
|
8683
|
-
required: required,
|
|
8684
|
-
error: error,
|
|
8685
|
-
onBlur: onBlur
|
|
8686
|
-
}))
|
|
8685
|
+
textField: DatePickerStyledComponent
|
|
8687
8686
|
},
|
|
8688
8687
|
slotProps: {
|
|
8689
8688
|
field: {
|
|
8690
|
-
clearable: true
|
|
8689
|
+
clearable: true,
|
|
8690
|
+
label,
|
|
8691
|
+
onBlur
|
|
8691
8692
|
}
|
|
8692
8693
|
},
|
|
8693
8694
|
disabled: disabled,
|