ingred-ui 9.2.0 → 9.3.0
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/constants/locale.d.ts +7 -1
- package/dist/index.es.js +14 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +14 -6
- package/dist/index.js.map +1 -1
- package/package.json +19 -19
package/dist/index.js
CHANGED
|
@@ -7108,6 +7108,12 @@ var jaJP = {
|
|
|
7108
7108
|
},
|
|
7109
7109
|
},
|
|
7110
7110
|
EditFilterCard: { defaultProps: {} },
|
|
7111
|
+
DatePicker: {
|
|
7112
|
+
defaultProps: { displayFormat: "YYYY/MM/DD", monthFormat: "YYYY年 M月" },
|
|
7113
|
+
},
|
|
7114
|
+
DateRangePicker: {
|
|
7115
|
+
defaultProps: { displayFormat: "YYYY/MM/DD", monthFormat: "YYYY年 M月" },
|
|
7116
|
+
},
|
|
7111
7117
|
},
|
|
7112
7118
|
};
|
|
7113
7119
|
var zhCN = {
|
|
@@ -43296,9 +43302,10 @@ var reactDates = lib;
|
|
|
43296
43302
|
function isOutsideRange$1() {
|
|
43297
43303
|
return false;
|
|
43298
43304
|
}
|
|
43299
|
-
var DatePicker = React__namespace.forwardRef(function (
|
|
43300
|
-
var
|
|
43301
|
-
var
|
|
43305
|
+
var DatePicker = React__namespace.forwardRef(function (inProps, ref) {
|
|
43306
|
+
var props = useLocaleProps({ props: inProps, name: "DatePicker" });
|
|
43307
|
+
var date = props.date, _a = props.error, error = _a === void 0 ? false : _a, rest = __rest(props, ["date", "error"]);
|
|
43308
|
+
var _b = React__namespace.useState(false), focused = _b[0], setFocused = _b[1];
|
|
43302
43309
|
var onFocusChange = function (_a) {
|
|
43303
43310
|
var focused = _a.focused;
|
|
43304
43311
|
setFocused(focused);
|
|
@@ -43398,9 +43405,10 @@ var templateObject_1$A, templateObject_2$j, templateObject_3$f, templateObject_4
|
|
|
43398
43405
|
function isOutsideRange() {
|
|
43399
43406
|
return false;
|
|
43400
43407
|
}
|
|
43401
|
-
var DateRangePicker = React__namespace.forwardRef(function (
|
|
43402
|
-
var
|
|
43403
|
-
var
|
|
43408
|
+
var DateRangePicker = React__namespace.forwardRef(function (inProps, ref) {
|
|
43409
|
+
var props = useLocaleProps({ props: inProps, name: "DateRangePicker" });
|
|
43410
|
+
var startDate = props.startDate, endDate = props.endDate, _a = props.error, error = _a === void 0 ? false : _a, rest = __rest(props, ["startDate", "endDate", "error"]);
|
|
43411
|
+
var _b = React__namespace.useState(null), focusedInput = _b[0], setFocusedInput = _b[1];
|
|
43404
43412
|
return (React__namespace.createElement(Container$m, { ref: ref, error: error },
|
|
43405
43413
|
React__namespace.createElement(reactDates.DateRangePicker, __assign({ startDatePlaceholderText: "FROM", endDatePlaceholderText: "TO", isOutsideRange: isOutsideRange, customArrowIcon: React__namespace.createElement(CustomArrowIcon, null), numberOfMonths: 2, enableOutsideDays: true, daySize: 41, weekDayFormat: "ddd", hideKeyboardShortcutsPanel: true, startDateId: "startDate", endDateId: "endDate", navPrev: React__namespace.createElement(NavPrev, null,
|
|
43406
43414
|
React__namespace.createElement(Spacer, { p: 0.5 },
|