sales-frontend-design-system 0.0.144 → 0.0.145
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.
|
@@ -36,7 +36,7 @@ $modal-zindex-value: zindex(modal);
|
|
|
36
36
|
flex-direction: column;
|
|
37
37
|
width: 100%;
|
|
38
38
|
max-width: none;
|
|
39
|
-
max-height: calc(
|
|
39
|
+
max-height: calc(100% - 52px);
|
|
40
40
|
margin: 0 auto;
|
|
41
41
|
border-radius: radius-basic(xlarge) radius-basic(xlarge) 0 0;
|
|
42
42
|
animation: slide-up 0.3s ease-out;
|
package/dist/index.cjs.js
CHANGED
|
@@ -4887,8 +4887,12 @@ function DatePickerRoot({ children, ...props }) {
|
|
|
4887
4887
|
const [tempSelectedDate, setTempSelectedDate] = React.useState(
|
|
4888
4888
|
props?.calendarProps?.tempSelectedDate
|
|
4889
4889
|
);
|
|
4890
|
-
const [inputValue, setInputValue] = React.useState(
|
|
4891
|
-
|
|
4890
|
+
const [inputValue, setInputValue] = React.useState(
|
|
4891
|
+
props?.calendarProps?.inputValue || dayjs(props?.defaultValue).format(props?.inputFormat)
|
|
4892
|
+
);
|
|
4893
|
+
const [selectedDate, setSelectedDate] = React.useState(
|
|
4894
|
+
props?.calendarProps?.selectedDate || dayjs(props?.defaultValue)
|
|
4895
|
+
);
|
|
4892
4896
|
const datePickerContext = useDatePickerContextRenew(props);
|
|
4893
4897
|
const mergedProps = {
|
|
4894
4898
|
...datePickerContext,
|