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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConfirmModalProps, FileUploaderProps, ItemEmptyProps, MultipleFilterProps, ToggleButtonProps } from "..";
|
|
1
|
+
import { ConfirmModalProps, FileUploaderProps, ItemEmptyProps, MultipleFilterProps, ToggleButtonProps, DatePickerProps, DateRangePickerProps } from "..";
|
|
2
2
|
import { SelectProps } from "../components";
|
|
3
3
|
import { CreatableSelectProps } from "../components/CreatableSelect";
|
|
4
4
|
import { EditFilterCardProps } from "../components/MultipleFilter/internal/EditFilterCard/EditFilterCard";
|
|
@@ -32,6 +32,12 @@ export interface Localization {
|
|
|
32
32
|
EditFilterCard?: {
|
|
33
33
|
defaultProps: Pick<EditFilterCardProps, "editButtonTitle" | "inputErrorText" | "formPlaceholder" | "sectionTitle" | "conditionTitle">;
|
|
34
34
|
};
|
|
35
|
+
DatePicker?: {
|
|
36
|
+
defaultProps: Pick<DatePickerProps, "displayFormat" | "monthFormat">;
|
|
37
|
+
};
|
|
38
|
+
DateRangePicker?: {
|
|
39
|
+
defaultProps: Pick<DateRangePickerProps, "displayFormat" | "monthFormat">;
|
|
40
|
+
};
|
|
35
41
|
};
|
|
36
42
|
}
|
|
37
43
|
export declare const jaJP: Localization;
|
package/dist/index.es.js
CHANGED
|
@@ -7080,6 +7080,12 @@ var jaJP = {
|
|
|
7080
7080
|
},
|
|
7081
7081
|
},
|
|
7082
7082
|
EditFilterCard: { defaultProps: {} },
|
|
7083
|
+
DatePicker: {
|
|
7084
|
+
defaultProps: { displayFormat: "YYYY/MM/DD", monthFormat: "YYYY年 M月" },
|
|
7085
|
+
},
|
|
7086
|
+
DateRangePicker: {
|
|
7087
|
+
defaultProps: { displayFormat: "YYYY/MM/DD", monthFormat: "YYYY年 M月" },
|
|
7088
|
+
},
|
|
7083
7089
|
},
|
|
7084
7090
|
};
|
|
7085
7091
|
var zhCN = {
|
|
@@ -43268,9 +43274,10 @@ var reactDates = lib;
|
|
|
43268
43274
|
function isOutsideRange$1() {
|
|
43269
43275
|
return false;
|
|
43270
43276
|
}
|
|
43271
|
-
var DatePicker = React.forwardRef(function (
|
|
43272
|
-
var
|
|
43273
|
-
var
|
|
43277
|
+
var DatePicker = React.forwardRef(function (inProps, ref) {
|
|
43278
|
+
var props = useLocaleProps({ props: inProps, name: "DatePicker" });
|
|
43279
|
+
var date = props.date, _a = props.error, error = _a === void 0 ? false : _a, rest = __rest(props, ["date", "error"]);
|
|
43280
|
+
var _b = React.useState(false), focused = _b[0], setFocused = _b[1];
|
|
43274
43281
|
var onFocusChange = function (_a) {
|
|
43275
43282
|
var focused = _a.focused;
|
|
43276
43283
|
setFocused(focused);
|
|
@@ -43370,9 +43377,10 @@ var templateObject_1$A, templateObject_2$j, templateObject_3$f, templateObject_4
|
|
|
43370
43377
|
function isOutsideRange() {
|
|
43371
43378
|
return false;
|
|
43372
43379
|
}
|
|
43373
|
-
var DateRangePicker = React.forwardRef(function (
|
|
43374
|
-
var
|
|
43375
|
-
var
|
|
43380
|
+
var DateRangePicker = React.forwardRef(function (inProps, ref) {
|
|
43381
|
+
var props = useLocaleProps({ props: inProps, name: "DateRangePicker" });
|
|
43382
|
+
var startDate = props.startDate, endDate = props.endDate, _a = props.error, error = _a === void 0 ? false : _a, rest = __rest(props, ["startDate", "endDate", "error"]);
|
|
43383
|
+
var _b = React.useState(null), focusedInput = _b[0], setFocusedInput = _b[1];
|
|
43376
43384
|
return (React.createElement(Container$m, { ref: ref, error: error },
|
|
43377
43385
|
React.createElement(reactDates.DateRangePicker, __assign({ startDatePlaceholderText: "FROM", endDatePlaceholderText: "TO", isOutsideRange: isOutsideRange, customArrowIcon: React.createElement(CustomArrowIcon, null), numberOfMonths: 2, enableOutsideDays: true, daySize: 41, weekDayFormat: "ddd", hideKeyboardShortcutsPanel: true, startDateId: "startDate", endDateId: "endDate", navPrev: React.createElement(NavPrev, null,
|
|
43378
43386
|
React.createElement(Spacer, { p: 0.5 },
|