sales-frontend-design-system 0.0.140 → 0.0.142
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.cjs.js +14 -19
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.esm.js +14 -19
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs.js
CHANGED
|
@@ -4756,11 +4756,11 @@ function DatePickerDropdown({
|
|
|
4756
4756
|
if (!dropdownProps) {
|
|
4757
4757
|
return null;
|
|
4758
4758
|
}
|
|
4759
|
-
const {
|
|
4760
|
-
if (!
|
|
4759
|
+
const { style, DropDownComponent, classname } = dropdownProps;
|
|
4760
|
+
if (!DropDownComponent) {
|
|
4761
4761
|
return null;
|
|
4762
4762
|
}
|
|
4763
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4763
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DropDownComponent, { className: classname, style, children });
|
|
4764
4764
|
}
|
|
4765
4765
|
|
|
4766
4766
|
const DatePickerInput = (props) => {
|
|
@@ -4908,7 +4908,8 @@ function DatePickerRoot({ children, ...props }) {
|
|
|
4908
4908
|
}
|
|
4909
4909
|
};
|
|
4910
4910
|
const { isOpen, setIsOpen, triggerRef, DropDown } = useDropDown({
|
|
4911
|
-
className: mergedProps?.dropdownProps?.classname
|
|
4911
|
+
className: mergedProps?.dropdownProps?.classname,
|
|
4912
|
+
width: "304px"
|
|
4912
4913
|
});
|
|
4913
4914
|
const initialContext = {
|
|
4914
4915
|
...mergedProps,
|
|
@@ -4917,7 +4918,7 @@ function DatePickerRoot({ children, ...props }) {
|
|
|
4917
4918
|
triggerRef,
|
|
4918
4919
|
isOpen,
|
|
4919
4920
|
setIsOpen,
|
|
4920
|
-
DropDown
|
|
4921
|
+
DropDownComponent: DropDown
|
|
4921
4922
|
}
|
|
4922
4923
|
};
|
|
4923
4924
|
React.useEffect(() => {
|
|
@@ -4964,6 +4965,9 @@ function DatePickerRangeRenew(props) {
|
|
|
4964
4965
|
},
|
|
4965
4966
|
validatorName: "datePickerStart",
|
|
4966
4967
|
validator: () => {
|
|
4968
|
+
if (props?.startDateProps?.validator) {
|
|
4969
|
+
return props?.startDateProps?.validator();
|
|
4970
|
+
}
|
|
4967
4971
|
if (!endDate || !startDate) {
|
|
4968
4972
|
return true;
|
|
4969
4973
|
}
|
|
@@ -4972,16 +4976,7 @@ function DatePickerRangeRenew(props) {
|
|
|
4972
4976
|
}
|
|
4973
4977
|
return true;
|
|
4974
4978
|
},
|
|
4975
|
-
|
|
4976
|
-
...props?.startDateProps?.calendarProps
|
|
4977
|
-
// max: endDate
|
|
4978
|
-
},
|
|
4979
|
-
navigationProps: {
|
|
4980
|
-
headerTitle: "\uD0C0\uC774\uD2C0..",
|
|
4981
|
-
calendarTitle: "test",
|
|
4982
|
-
navigationType: "year-and-month"
|
|
4983
|
-
},
|
|
4984
|
-
mobile: true
|
|
4979
|
+
...props?.startDateProps
|
|
4985
4980
|
};
|
|
4986
4981
|
const endDateProps = {
|
|
4987
4982
|
inputFormat: "YY.MM.DD",
|
|
@@ -4990,6 +4985,9 @@ function DatePickerRangeRenew(props) {
|
|
|
4990
4985
|
},
|
|
4991
4986
|
validatorName: "datePickerEnd",
|
|
4992
4987
|
validator: () => {
|
|
4988
|
+
if (props?.endDateProps?.validator) {
|
|
4989
|
+
return props?.endDateProps?.validator();
|
|
4990
|
+
}
|
|
4993
4991
|
if (!endDate || !startDate) {
|
|
4994
4992
|
return true;
|
|
4995
4993
|
}
|
|
@@ -4998,10 +4996,7 @@ function DatePickerRangeRenew(props) {
|
|
|
4998
4996
|
}
|
|
4999
4997
|
return true;
|
|
5000
4998
|
},
|
|
5001
|
-
|
|
5002
|
-
...props?.endDateProps?.calendarProps
|
|
5003
|
-
// min: startDate
|
|
5004
|
-
}
|
|
4999
|
+
...props?.endDateProps
|
|
5005
5000
|
};
|
|
5006
5001
|
useFormValidator({ name: startDateProps.validatorName, validator: startDateProps.validator });
|
|
5007
5002
|
useFormValidator({ name: endDateProps.validatorName, validator: endDateProps.validator });
|