sales-frontend-design-system 0.0.139 → 0.0.141
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 +10 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.esm.js +10 -18
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1591,12 +1591,11 @@ const ComboBoxItem = ({
|
|
|
1591
1591
|
validator,
|
|
1592
1592
|
value,
|
|
1593
1593
|
onValueChange,
|
|
1594
|
-
inputMode = "none",
|
|
1595
1594
|
...props
|
|
1596
1595
|
}) => {
|
|
1597
1596
|
const inputRef = React.useRef(null);
|
|
1598
1597
|
const { errorState, setForceUpdate } = useFormValidator({ validator, name });
|
|
1599
|
-
const { disabled, error, readOnly
|
|
1598
|
+
const { disabled, error, readOnly, size, ...rest } = useFieldControl(props);
|
|
1600
1599
|
const { handleClick, handleKeyDown } = usePreventInteraction({ disabled, readOnly });
|
|
1601
1600
|
const handleKeyDownEvent = (e) => {
|
|
1602
1601
|
if (e.key === " " || e.key === "Enter") {
|
|
@@ -1620,8 +1619,7 @@ const ComboBoxItem = ({
|
|
|
1620
1619
|
ref: inputRef,
|
|
1621
1620
|
type: type ?? "text",
|
|
1622
1621
|
name,
|
|
1623
|
-
readOnly,
|
|
1624
|
-
inputMode,
|
|
1622
|
+
readOnly: true,
|
|
1625
1623
|
onClick: handleClick(handleOnClick),
|
|
1626
1624
|
onKeyDown: handleKeyDown(handleKeyDownEvent),
|
|
1627
1625
|
role: "combobox",
|
|
@@ -4966,6 +4964,9 @@ function DatePickerRangeRenew(props) {
|
|
|
4966
4964
|
},
|
|
4967
4965
|
validatorName: "datePickerStart",
|
|
4968
4966
|
validator: () => {
|
|
4967
|
+
if (props?.startDateProps?.validator) {
|
|
4968
|
+
return props?.startDateProps?.validator();
|
|
4969
|
+
}
|
|
4969
4970
|
if (!endDate || !startDate) {
|
|
4970
4971
|
return true;
|
|
4971
4972
|
}
|
|
@@ -4974,16 +4975,7 @@ function DatePickerRangeRenew(props) {
|
|
|
4974
4975
|
}
|
|
4975
4976
|
return true;
|
|
4976
4977
|
},
|
|
4977
|
-
|
|
4978
|
-
...props?.startDateProps?.calendarProps
|
|
4979
|
-
// max: endDate
|
|
4980
|
-
},
|
|
4981
|
-
navigationProps: {
|
|
4982
|
-
headerTitle: "\uD0C0\uC774\uD2C0..",
|
|
4983
|
-
calendarTitle: "test",
|
|
4984
|
-
navigationType: "year-and-month"
|
|
4985
|
-
},
|
|
4986
|
-
mobile: true
|
|
4978
|
+
...props?.startDateProps
|
|
4987
4979
|
};
|
|
4988
4980
|
const endDateProps = {
|
|
4989
4981
|
inputFormat: "YY.MM.DD",
|
|
@@ -4992,6 +4984,9 @@ function DatePickerRangeRenew(props) {
|
|
|
4992
4984
|
},
|
|
4993
4985
|
validatorName: "datePickerEnd",
|
|
4994
4986
|
validator: () => {
|
|
4987
|
+
if (props?.endDateProps?.validator) {
|
|
4988
|
+
return props?.endDateProps?.validator();
|
|
4989
|
+
}
|
|
4995
4990
|
if (!endDate || !startDate) {
|
|
4996
4991
|
return true;
|
|
4997
4992
|
}
|
|
@@ -5000,10 +4995,7 @@ function DatePickerRangeRenew(props) {
|
|
|
5000
4995
|
}
|
|
5001
4996
|
return true;
|
|
5002
4997
|
},
|
|
5003
|
-
|
|
5004
|
-
...props?.endDateProps?.calendarProps
|
|
5005
|
-
// min: startDate
|
|
5006
|
-
}
|
|
4998
|
+
...props?.endDateProps
|
|
5007
4999
|
};
|
|
5008
5000
|
useFormValidator({ name: startDateProps.validatorName, validator: startDateProps.validator });
|
|
5009
5001
|
useFormValidator({ name: endDateProps.validatorName, validator: endDateProps.validator });
|