@pisell/date-picker 1.0.75-7 → 1.0.75-8
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/es/ActionBar/index.d.ts +2 -1
- package/es/ActionBar/index.js +11 -13
- package/es/DateRangeCalendar/DateRangeCalendar.js +11 -12
- package/es/DateRangeCalendar/useDragRange.js +6 -6
- package/es/DateRangePicker/DateRangePickerToolbar.d.ts +2 -1
- package/es/DateRangePicker/DateRangePickerToolbar.js +1 -1
- package/es/DateRangePicker/shared.js +5 -5
- package/es/DateRangePickerDay/DateRangePickerDay.js +8 -9
- package/es/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -5
- package/es/MobileDateRangePicker/MobileDateRangePicker.js +5 -5
- package/es/MultiInputDateRangeField/MultiInputDateRangeField.js +5 -5
- package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +5 -5
- package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.js +5 -5
- package/es/PisellDateRangePicker/CloseCircle.d.ts +2 -1
- package/es/PisellDateRangePicker/LocaleContext.d.ts +7 -2
- package/es/PisellDateRangePicker/index.d.ts +1 -1
- package/es/PisellDateRangePicker/index.js +22 -45
- package/es/PisellDateRangePicker/useCssVariables.js +1 -1
- package/es/Shortcuts/index.d.ts +2 -1
- package/es/Shortcuts/index.js +1 -1
- package/es/SingleInputDateRangeField/SingleInputDateRangeField.js +5 -5
- package/es/SingleInputDateRangeField/useSingleInputDateRangeField.js +5 -5
- package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +5 -5
- package/es/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +5 -5
- package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.js +5 -5
- package/es/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +5 -5
- package/es/StaticDateRangePicker/StaticDateRangePicker.js +5 -5
- package/es/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +2 -1
- package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +2 -1
- package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +5 -5
- package/es/internals/hooks/useEnrichedRangePickerFieldProps.js +9 -9
- package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +2 -1
- package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +6 -6
- package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +5 -5
- package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +5 -5
- package/es/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +5 -5
- package/es/internals/hooks/useRangePosition.js +2 -2
- package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +2 -1
- package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +7 -7
- package/es/internals/utils/date-fields-utils.d.ts +1 -1
- package/es/internals/utils/date-fields-utils.js +5 -5
- package/es/internals/utils/date-range-manager.js +1 -1
- package/es/internals/utils/validation/validateDateRange.js +6 -6
- package/es/internals/utils/validation/validateDateTimeRange.js +6 -6
- package/es/internals/utils/validation/validateTimeRange.js +1 -1
- package/es/internals/utils/valueManagers.js +6 -6
- package/es/locales/index.js +11 -3
- package/es/locales/ja.d.ts +26 -0
- package/es/locales/ja.js +25 -0
- package/es/locales/pt.d.ts +26 -0
- package/es/locales/pt.js +25 -0
- package/es/utils/index.d.ts +1 -1
- package/lib/ActionBar/index.d.ts +2 -1
- package/lib/ActionBar/index.js +2 -4
- package/lib/DateRangePicker/DateRangePickerToolbar.d.ts +2 -1
- package/lib/PisellDateRangePicker/CloseCircle.d.ts +2 -1
- package/lib/PisellDateRangePicker/LocaleContext.d.ts +7 -2
- package/lib/PisellDateRangePicker/index.d.ts +1 -1
- package/lib/PisellDateRangePicker/index.js +2 -26
- package/lib/PisellDateRangePicker/useCssVariables.js +1 -2
- package/lib/Shortcuts/index.d.ts +2 -1
- package/lib/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +2 -1
- package/lib/index.d.ts +1 -5
- package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +2 -1
- package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +2 -1
- package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +2 -1
- package/lib/internals/utils/date-fields-utils.d.ts +1 -1
- package/lib/locales/index.js +11 -3
- package/lib/locales/ja.d.ts +26 -0
- package/lib/locales/ja.js +49 -0
- package/lib/locales/pt.d.ts +26 -0
- package/lib/locales/pt.js +49 -0
- package/lib/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/es/CustomCalendarHeader/index.d.ts +0 -2
- package/es/CustomCalendarHeader/index.js +0 -53
- package/es/Dialog/index.d.ts +0 -2
- package/es/Dialog/index.js +0 -25
- package/es/Drawer/index.d.ts +0 -11
- package/es/Drawer/index.js +0 -35
- package/es/Drawer/index.less +0 -40
- package/es/OldActionBar/index.d.ts +0 -19
- package/es/OldActionBar/index.js +0 -113
- package/es/OldActionBar/index.less +0 -18
- package/es/OldPisellDateRangePicker/index.d.ts +0 -79
- package/es/OldPisellDateRangePicker/index.js +0 -264
- package/es/OldPisellDateRangePicker/index.less +0 -102
- package/es/Toolbar/index.d.ts +0 -3
- package/es/Toolbar/index.js +0 -166
- package/es/Toolbar/index.less +0 -35
- package/es/browserSelect/chevron-down.png +0 -0
- package/es/browserSelect/index.d.ts +0 -15
- package/es/browserSelect/index.js +0 -36
- package/es/browserSelect/index.less +0 -18
- package/es/constants.d.ts +0 -58
- package/es/constants.js +0 -128
- package/es/hooks/useDocumentVisibility.d.ts +0 -2
- package/es/hooks/useDocumentVisibility.js +0 -27
- package/es/hooks/useNextDay.d.ts +0 -2
- package/es/hooks/useNextDay.js +0 -15
- package/es/hooks/useUpdateEffect.d.ts +0 -2
- package/es/hooks/useUpdateEffect.js +0 -11
- package/es/icon/ChevronLeft.d.ts +0 -5
- package/es/icon/ChevronLeft.js +0 -23
- package/es/icon/ChevronLeftDouble.d.ts +0 -5
- package/es/icon/ChevronLeftDouble.js +0 -23
- package/es/icon/ChevronRight.d.ts +0 -5
- package/es/icon/ChevronRight.js +0 -23
- package/es/icon/ChevronRightDouble.d.ts +0 -5
- package/es/icon/ChevronRightDouble.js +0 -23
- package/es/icon/CloseCircle.d.ts +0 -5
- package/es/icon/CloseCircle.js +0 -26
- package/lib/CustomCalendarHeader/index.d.ts +0 -2
- package/lib/CustomCalendarHeader/index.js +0 -58
- package/lib/Dialog/index.d.ts +0 -2
- package/lib/Dialog/index.js +0 -65
- package/lib/Drawer/index.d.ts +0 -11
- package/lib/Drawer/index.js +0 -62
- package/lib/Drawer/index.less +0 -40
- package/lib/OldActionBar/index.d.ts +0 -19
- package/lib/OldActionBar/index.js +0 -129
- package/lib/OldActionBar/index.less +0 -18
- package/lib/OldPisellDateRangePicker/index.d.ts +0 -79
- package/lib/OldPisellDateRangePicker/index.js +0 -281
- package/lib/OldPisellDateRangePicker/index.less +0 -102
- package/lib/Toolbar/index.d.ts +0 -3
- package/lib/Toolbar/index.js +0 -193
- package/lib/Toolbar/index.less +0 -35
- package/lib/browserSelect/chevron-down.png +0 -0
- package/lib/browserSelect/index.d.ts +0 -15
- package/lib/browserSelect/index.js +0 -59
- package/lib/browserSelect/index.less +0 -18
- package/lib/constants.d.ts +0 -58
- package/lib/constants.js +0 -217
- package/lib/hooks/useDocumentVisibility.d.ts +0 -2
- package/lib/hooks/useDocumentVisibility.js +0 -40
- package/lib/hooks/useNextDay.d.ts +0 -2
- package/lib/hooks/useNextDay.js +0 -49
- package/lib/hooks/useUpdateEffect.d.ts +0 -2
- package/lib/hooks/useUpdateEffect.js +0 -35
- package/lib/icon/ChevronLeft.d.ts +0 -5
- package/lib/icon/ChevronLeft.js +0 -60
- package/lib/icon/ChevronLeftDouble.d.ts +0 -5
- package/lib/icon/ChevronLeftDouble.js +0 -60
- package/lib/icon/ChevronRight.d.ts +0 -5
- package/lib/icon/ChevronRight.js +0 -60
- package/lib/icon/ChevronRightDouble.d.ts +0 -5
- package/lib/icon/ChevronRightDouble.js +0 -60
- package/lib/icon/CloseCircle.d.ts +0 -5
- package/lib/icon/CloseCircle.js +0 -67
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
var _excluded = ["options"];
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
5
|
-
import React, { useMemo } from "react";
|
|
6
|
-
import classNames from "classnames";
|
|
7
|
-
import "./index.less";
|
|
8
|
-
/**
|
|
9
|
-
* @title: 系统级别的下拉框
|
|
10
|
-
* @description:
|
|
11
|
-
* @param {BrowserSelectProps} props
|
|
12
|
-
* @return {*}
|
|
13
|
-
* @Author: zhiwei.Wang
|
|
14
|
-
* @Date: 2024-01-30 16:43
|
|
15
|
-
*/
|
|
16
|
-
var BrowserSelect = function BrowserSelect(props) {
|
|
17
|
-
var options = props.options,
|
|
18
|
-
resetProps = _objectWithoutProperties(props, _excluded);
|
|
19
|
-
var _options = useMemo(function () {
|
|
20
|
-
return (props.options || []).map(function (d) {
|
|
21
|
-
return /*#__PURE__*/React.createElement("option", {
|
|
22
|
-
value: d.value,
|
|
23
|
-
key: d.value
|
|
24
|
-
}, d.label);
|
|
25
|
-
});
|
|
26
|
-
}, [props.options]);
|
|
27
|
-
return /*#__PURE__*/React.createElement("select", _extends({}, resetProps, {
|
|
28
|
-
className: classNames("date-picker-pisell-browser-select", resetProps.className),
|
|
29
|
-
onChange: function onChange(e) {
|
|
30
|
-
var _resetProps$onChange;
|
|
31
|
-
e.persist();
|
|
32
|
-
(_resetProps$onChange = resetProps.onChange) === null || _resetProps$onChange === void 0 ? void 0 : _resetProps$onChange.call(resetProps, e);
|
|
33
|
-
}
|
|
34
|
-
}), _options);
|
|
35
|
-
};
|
|
36
|
-
export default BrowserSelect;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
.date-picker-pisell-browser-select {
|
|
2
|
-
padding: 9px 16px;
|
|
3
|
-
border-radius: 8px;
|
|
4
|
-
background-color: #fff;
|
|
5
|
-
background-image: url('./chevron-down.png');
|
|
6
|
-
color: var(--Gray-true-900, #141414);
|
|
7
|
-
font-size: 16px;
|
|
8
|
-
font-style: normal;
|
|
9
|
-
font-weight: 600;
|
|
10
|
-
border: 1px solid var(--Gray-300, #D0D5DD);
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
appearance: none;
|
|
13
|
-
-webkit-appearance: none;
|
|
14
|
-
-moz-appearance: none;
|
|
15
|
-
background-position: right 10px center;
|
|
16
|
-
background-size: 12px;
|
|
17
|
-
background-repeat: no-repeat;
|
|
18
|
-
}
|
package/es/constants.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
import { PresetType } from './Shortcuts';
|
|
3
|
-
export declare const presetValueArr: string[];
|
|
4
|
-
export declare const presetDetailMap: {
|
|
5
|
-
today: {
|
|
6
|
-
getValue: () => dayjs.Dayjs[];
|
|
7
|
-
label: (locale?: string) => any;
|
|
8
|
-
};
|
|
9
|
-
yesterday: {
|
|
10
|
-
getValue: () => dayjs.Dayjs[];
|
|
11
|
-
label: (locale?: string) => any;
|
|
12
|
-
};
|
|
13
|
-
last_3_days: {
|
|
14
|
-
getValue: () => dayjs.Dayjs[];
|
|
15
|
-
label: (locale?: string) => any;
|
|
16
|
-
};
|
|
17
|
-
last_7_days: {
|
|
18
|
-
getValue: () => dayjs.Dayjs[];
|
|
19
|
-
label: (locale?: string) => any;
|
|
20
|
-
};
|
|
21
|
-
last_30_days: {
|
|
22
|
-
getValue: () => dayjs.Dayjs[];
|
|
23
|
-
label: (locale?: string) => any;
|
|
24
|
-
};
|
|
25
|
-
last_90_days: {
|
|
26
|
-
getValue: () => dayjs.Dayjs[];
|
|
27
|
-
label: (locale?: string) => any;
|
|
28
|
-
};
|
|
29
|
-
last_180_days: {
|
|
30
|
-
getValue: () => dayjs.Dayjs[];
|
|
31
|
-
label: (locale?: string) => any;
|
|
32
|
-
};
|
|
33
|
-
tomorrow: {
|
|
34
|
-
getValue: () => dayjs.Dayjs[];
|
|
35
|
-
label: (locale?: string) => any;
|
|
36
|
-
};
|
|
37
|
-
next_3_days: {
|
|
38
|
-
getValue: () => dayjs.Dayjs[];
|
|
39
|
-
label: (locale?: string) => any;
|
|
40
|
-
};
|
|
41
|
-
next_7_days: {
|
|
42
|
-
getValue: () => dayjs.Dayjs[];
|
|
43
|
-
label: (locale?: string) => any;
|
|
44
|
-
};
|
|
45
|
-
next_30_days: {
|
|
46
|
-
getValue: () => dayjs.Dayjs[];
|
|
47
|
-
label: (locale?: string) => any;
|
|
48
|
-
};
|
|
49
|
-
next_90_days: {
|
|
50
|
-
getValue: () => dayjs.Dayjs[];
|
|
51
|
-
label: (locale?: string) => any;
|
|
52
|
-
};
|
|
53
|
-
next_180_days: {
|
|
54
|
-
getValue: () => dayjs.Dayjs[];
|
|
55
|
-
label: (locale?: string) => any;
|
|
56
|
-
};
|
|
57
|
-
};
|
|
58
|
-
export declare const defaultPresets: PresetType[];
|
package/es/constants.js
DELETED
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import dayjs from 'dayjs';
|
|
2
|
-
import { getText, pLocaleMap } from "./locales";
|
|
3
|
-
export var presetValueArr = ['today', 'yesterday', 'last_3_days', 'last_7_days', 'last_30_days', 'last_90_days', 'last_180_days', 'tomorrow', 'next_3_days', 'next_7_days', 'next_30_days', 'next_90_days', 'next_180_days'];
|
|
4
|
-
export var presetDetailMap = {
|
|
5
|
-
today: {
|
|
6
|
-
getValue: function getValue() {
|
|
7
|
-
return [dayjs().startOf('day'), dayjs().endOf('day')];
|
|
8
|
-
},
|
|
9
|
-
label: function label(locale) {
|
|
10
|
-
return getText('toolbar-date-range-shortcut-today', locale && pLocaleMap[locale]);
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
yesterday: {
|
|
14
|
-
getValue: function getValue() {
|
|
15
|
-
return [dayjs().add(-1, 'd').startOf('day'), dayjs().add(-1, 'd').endOf('day')];
|
|
16
|
-
},
|
|
17
|
-
label: function label(locale) {
|
|
18
|
-
return getText('toolbar-date-range-shortcut-yesterday', locale && pLocaleMap[locale]);
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
last_3_days: {
|
|
22
|
-
getValue: function getValue() {
|
|
23
|
-
return [dayjs().add(-3, 'd').startOf('day'), dayjs().add(-1, 'd').endOf('day')];
|
|
24
|
-
},
|
|
25
|
-
label: function label(locale) {
|
|
26
|
-
return getText('toolbar-date-range-shortcut-last-3-days', locale && pLocaleMap[locale]);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
last_7_days: {
|
|
30
|
-
getValue: function getValue() {
|
|
31
|
-
return [dayjs().add(-7, 'd').startOf('day'), dayjs().add(-1, 'd').endOf('day')];
|
|
32
|
-
},
|
|
33
|
-
label: function label(locale) {
|
|
34
|
-
return getText('toolbar-date-range-shortcut-last-7-days', locale && pLocaleMap[locale]);
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
last_30_days: {
|
|
38
|
-
getValue: function getValue() {
|
|
39
|
-
return [dayjs().add(-30, 'd').startOf('day'), dayjs().add(-1, 'd').endOf('day')];
|
|
40
|
-
},
|
|
41
|
-
label: function label(locale) {
|
|
42
|
-
return getText('toolbar-date-range-shortcut-last-30-days', locale && pLocaleMap[locale]);
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
last_90_days: {
|
|
46
|
-
getValue: function getValue() {
|
|
47
|
-
return [dayjs().add(-90, 'd').startOf('day'), dayjs().add(-1, 'd').endOf('day')];
|
|
48
|
-
},
|
|
49
|
-
label: function label(locale) {
|
|
50
|
-
return getText('toolbar-date-range-shortcut-last-90-days', locale && pLocaleMap[locale]);
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
last_180_days: {
|
|
54
|
-
getValue: function getValue() {
|
|
55
|
-
return [dayjs().add(-180, 'd').startOf('day'), dayjs().add(-1, 'd').endOf('day')];
|
|
56
|
-
},
|
|
57
|
-
label: function label(locale) {
|
|
58
|
-
return getText('toolbar-date-range-shortcut-last-180-days', locale && pLocaleMap[locale]);
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
tomorrow: {
|
|
62
|
-
getValue: function getValue() {
|
|
63
|
-
return [dayjs().add(1, 'd').startOf('day'), dayjs().add(1, 'd').endOf('day')];
|
|
64
|
-
},
|
|
65
|
-
label: function label(locale) {
|
|
66
|
-
return getText('toolbar-date-range-shortcut-tomorrow', locale && pLocaleMap[locale]);
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
next_3_days: {
|
|
70
|
-
getValue: function getValue() {
|
|
71
|
-
return [dayjs().add(1, 'd').startOf('day'), dayjs().add(3, 'd').endOf('day')];
|
|
72
|
-
},
|
|
73
|
-
label: function label(locale) {
|
|
74
|
-
return getText('toolbar-date-range-shortcut-next-3-days', locale && pLocaleMap[locale]);
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
next_7_days: {
|
|
78
|
-
getValue: function getValue() {
|
|
79
|
-
return [dayjs().add(1, 'd').startOf('day'), dayjs().add(7, 'd').endOf('day')];
|
|
80
|
-
},
|
|
81
|
-
label: function label(locale) {
|
|
82
|
-
return getText('toolbar-date-range-shortcut-next-7-days', locale && pLocaleMap[locale]);
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
next_30_days: {
|
|
86
|
-
getValue: function getValue() {
|
|
87
|
-
return [dayjs().add(1, 'd').startOf('day'), dayjs().add(30, 'd').endOf('day')];
|
|
88
|
-
},
|
|
89
|
-
label: function label(locale) {
|
|
90
|
-
return getText('toolbar-date-range-shortcut-next-30-days', locale && pLocaleMap[locale]);
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
next_90_days: {
|
|
94
|
-
getValue: function getValue() {
|
|
95
|
-
return [dayjs().add(1, 'd').startOf('day'), dayjs().add(90, 'd').endOf('day')];
|
|
96
|
-
},
|
|
97
|
-
label: function label(locale) {
|
|
98
|
-
return getText('toolbar-date-range-shortcut-next-90-days', locale && pLocaleMap[locale]);
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
next_180_days: {
|
|
102
|
-
getValue: function getValue() {
|
|
103
|
-
return [dayjs().add(1, 'd').startOf('day'), dayjs().add(180, 'd').endOf('day')];
|
|
104
|
-
},
|
|
105
|
-
label: function label(locale) {
|
|
106
|
-
return getText('toolbar-date-range-shortcut-next-180-days', locale && pLocaleMap[locale]);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
export var defaultPresets = [{
|
|
111
|
-
value: 'today'
|
|
112
|
-
}, {
|
|
113
|
-
value: 'yesterday'
|
|
114
|
-
}, {
|
|
115
|
-
value: 'tomorrow'
|
|
116
|
-
}, {
|
|
117
|
-
value: 'next_7_days'
|
|
118
|
-
}, {
|
|
119
|
-
value: 'next_30_days'
|
|
120
|
-
}, {
|
|
121
|
-
value: 'next_90_days'
|
|
122
|
-
}, {
|
|
123
|
-
value: 'last_7_days'
|
|
124
|
-
}, {
|
|
125
|
-
value: 'last_30_days'
|
|
126
|
-
}, {
|
|
127
|
-
value: 'last_90_days'
|
|
128
|
-
}];
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
2
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
4
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
|
-
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import { useState, useEffect } from "react";
|
|
8
|
-
var getVisible = function getVisible() {
|
|
9
|
-
return document.visibilityState;
|
|
10
|
-
};
|
|
11
|
-
var useDocumentVisibility = function useDocumentVisibility() {
|
|
12
|
-
var _useState = useState(getVisible()),
|
|
13
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
14
|
-
visible = _useState2[0],
|
|
15
|
-
setVisible = _useState2[1];
|
|
16
|
-
useEffect(function () {
|
|
17
|
-
var handleVisibilityChange = function handleVisibilityChange() {
|
|
18
|
-
setVisible(getVisible());
|
|
19
|
-
};
|
|
20
|
-
document.addEventListener("visibilitychange", handleVisibilityChange);
|
|
21
|
-
return function () {
|
|
22
|
-
document.removeEventListener("visibilitychange", handleVisibilityChange);
|
|
23
|
-
};
|
|
24
|
-
}, []);
|
|
25
|
-
return visible;
|
|
26
|
-
};
|
|
27
|
-
export default useDocumentVisibility;
|
package/es/hooks/useNextDay.d.ts
DELETED
package/es/hooks/useNextDay.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useRef } from "react";
|
|
2
|
-
import useUpdateEffect from "./useUpdateEffect";
|
|
3
|
-
import useDocumentVisibility from "./useDocumentVisibility";
|
|
4
|
-
import dayjs from "dayjs";
|
|
5
|
-
var useNextDay = function useNextDay(fn) {
|
|
6
|
-
var visible = useDocumentVisibility();
|
|
7
|
-
var currentDay = useRef(dayjs());
|
|
8
|
-
useUpdateEffect(function () {
|
|
9
|
-
if (visible && !currentDay.current.isSame(dayjs(), "day")) {
|
|
10
|
-
currentDay.current = dayjs();
|
|
11
|
-
fn();
|
|
12
|
-
}
|
|
13
|
-
}, [visible]);
|
|
14
|
-
};
|
|
15
|
-
export default useNextDay;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { useRef, useEffect } from "react";
|
|
2
|
-
var useUpdateEffect = function useUpdateEffect(fn, deps) {
|
|
3
|
-
var isMount = useRef(false);
|
|
4
|
-
useEffect(function () {
|
|
5
|
-
if (isMount.current) {
|
|
6
|
-
fn();
|
|
7
|
-
}
|
|
8
|
-
isMount.current = true;
|
|
9
|
-
}, deps);
|
|
10
|
-
};
|
|
11
|
-
export default useUpdateEffect;
|
package/es/icon/ChevronLeft.d.ts
DELETED
package/es/icon/ChevronLeft.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
var ChevronLeft = function ChevronLeft(props) {
|
|
3
|
-
var className = props.className,
|
|
4
|
-
onClick = props.onClick;
|
|
5
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
6
|
-
className: className,
|
|
7
|
-
onClick: onClick
|
|
8
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
9
|
-
className: "icon",
|
|
10
|
-
viewBox: "0 0 1024 1024",
|
|
11
|
-
version: "1.1",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
"p-id": "35105",
|
|
14
|
-
width: "1em",
|
|
15
|
-
height: "1em"
|
|
16
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
17
|
-
"fill-rule": "evenodd",
|
|
18
|
-
"clip-rule": "evenodd",
|
|
19
|
-
d: "M15.7071 5.29289C16.0976 5.68342 16.0976 6.31658 15.7071 6.70711L10.4142 12L15.7071 17.2929C16.0976 17.6834 16.0976 18.3166 15.7071 18.7071C15.3166 19.0976 14.6834 19.0976 14.2929 18.7071L8.29289 12.7071C7.90237 12.3166 7.90237 11.6834 8.29289 11.2929L14.2929 5.29289C14.6834 4.90237 15.3166 4.90237 15.7071 5.29289Z",
|
|
20
|
-
fill: "currentColor"
|
|
21
|
-
})));
|
|
22
|
-
};
|
|
23
|
-
export default ChevronLeft;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
var ChevronLeftDouble = function ChevronLeftDouble(props) {
|
|
3
|
-
var className = props.className,
|
|
4
|
-
onClick = props.onClick;
|
|
5
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
6
|
-
className: className,
|
|
7
|
-
onClick: onClick
|
|
8
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
9
|
-
className: "icon",
|
|
10
|
-
viewBox: "0 0 1024 1024",
|
|
11
|
-
version: "1.1",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
"p-id": "35105",
|
|
14
|
-
width: "1em",
|
|
15
|
-
height: "1em"
|
|
16
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
17
|
-
"fill-rule": "evenodd",
|
|
18
|
-
"clip-rule": "evenodd",
|
|
19
|
-
d: "M11.7071 6.29289C12.0976 6.68342 12.0976 7.31658 11.7071 7.70711L7.41421 12L11.7071 16.2929C12.0976 16.6834 12.0976 17.3166 11.7071 17.7071C11.3166 18.0976 10.6834 18.0976 10.2929 17.7071L5.29289 12.7071C4.90237 12.3166 4.90237 11.6834 5.29289 11.2929L10.2929 6.29289C10.6834 5.90237 11.3166 5.90237 11.7071 6.29289ZM18.7071 6.29289C19.0976 6.68342 19.0976 7.31658 18.7071 7.70711L14.4142 12L18.7071 16.2929C19.0976 16.6834 19.0976 17.3166 18.7071 17.7071C18.3166 18.0976 17.6834 18.0976 17.2929 17.7071L12.2929 12.7071C11.9024 12.3166 11.9024 11.6834 12.2929 11.2929L17.2929 6.29289C17.6834 5.90237 18.3166 5.90237 18.7071 6.29289Z",
|
|
20
|
-
fill: "currentColor"
|
|
21
|
-
})));
|
|
22
|
-
};
|
|
23
|
-
export default ChevronLeftDouble;
|
package/es/icon/ChevronRight.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
var ChevronRight = function ChevronRight(props) {
|
|
3
|
-
var className = props.className,
|
|
4
|
-
onClick = props.onClick;
|
|
5
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
6
|
-
className: className,
|
|
7
|
-
onClick: onClick
|
|
8
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
9
|
-
className: "icon",
|
|
10
|
-
viewBox: "0 0 1024 1024",
|
|
11
|
-
version: "1.1",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
"p-id": "35105",
|
|
14
|
-
width: "1em",
|
|
15
|
-
height: "1em"
|
|
16
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
17
|
-
"fill-rule": "evenodd",
|
|
18
|
-
"clip-rule": "evenodd",
|
|
19
|
-
d: "M8.29289 5.29289C8.68342 4.90237 9.31658 4.90237 9.70711 5.29289L15.7071 11.2929C16.0976 11.6834 16.0976 12.3166 15.7071 12.7071L9.70711 18.7071C9.31658 19.0976 8.68342 19.0976 8.29289 18.7071C7.90237 18.3166 7.90237 17.6834 8.29289 17.2929L13.5858 12L8.29289 6.70711C7.90237 6.31658 7.90237 5.68342 8.29289 5.29289Z",
|
|
20
|
-
fill: "currentColor"
|
|
21
|
-
})));
|
|
22
|
-
};
|
|
23
|
-
export default ChevronRight;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
var ChevronRightDouble = function ChevronRightDouble(props) {
|
|
3
|
-
var className = props.className,
|
|
4
|
-
onClick = props.onClick;
|
|
5
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
6
|
-
className: className,
|
|
7
|
-
onClick: onClick
|
|
8
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
9
|
-
className: "icon",
|
|
10
|
-
viewBox: "0 0 1024 1024",
|
|
11
|
-
version: "1.1",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
"p-id": "35105",
|
|
14
|
-
width: "1em",
|
|
15
|
-
height: "1em"
|
|
16
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
17
|
-
"fill-rule": "evenodd",
|
|
18
|
-
"clip-rule": "evenodd",
|
|
19
|
-
d: "M5.29289 6.29289C5.68342 5.90237 6.31658 5.90237 6.70711 6.29289L11.7071 11.2929C12.0976 11.6834 12.0976 12.3166 11.7071 12.7071L6.70711 17.7071C6.31658 18.0976 5.68342 18.0976 5.29289 17.7071C4.90237 17.3166 4.90237 16.6834 5.29289 16.2929L9.58579 12L5.29289 7.70711C4.90237 7.31658 4.90237 6.68342 5.29289 6.29289ZM12.2929 6.29289C12.6834 5.90237 13.3166 5.90237 13.7071 6.29289L18.7071 11.2929C19.0976 11.6834 19.0976 12.3166 18.7071 12.7071L13.7071 17.7071C13.3166 18.0976 12.6834 18.0976 12.2929 17.7071C11.9024 17.3166 11.9024 16.6834 12.2929 16.2929L16.5858 12L12.2929 7.70711C11.9024 7.31658 11.9024 6.68342 12.2929 6.29289Z",
|
|
20
|
-
fill: "currentColor"
|
|
21
|
-
})));
|
|
22
|
-
};
|
|
23
|
-
export default ChevronRightDouble;
|
package/es/icon/CloseCircle.d.ts
DELETED
package/es/icon/CloseCircle.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
var CloseCircle = function CloseCircle(props) {
|
|
3
|
-
var className = props.className,
|
|
4
|
-
onClick = props.onClick;
|
|
5
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
6
|
-
className: className,
|
|
7
|
-
onClick: onClick
|
|
8
|
-
}, /*#__PURE__*/React.createElement("svg", {
|
|
9
|
-
className: "icon",
|
|
10
|
-
viewBox: "0 0 1024 1024",
|
|
11
|
-
version: "1.1",
|
|
12
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
13
|
-
"p-id": "35105",
|
|
14
|
-
width: "1em",
|
|
15
|
-
height: "1em"
|
|
16
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
17
|
-
d: "M938.6496 512a426.6496 426.6496 0 1 1-853.2992 0 426.6496 426.6496 0 0 1 853.2992 0z",
|
|
18
|
-
fill: "currentColor",
|
|
19
|
-
"p-id": "35106"
|
|
20
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
21
|
-
d: "M717.2096 346.1632a27.8528 27.8528 0 0 0-39.3728-39.3216L512 472.576 346.1632 306.8416a27.8016 27.8016 0 1 0-39.3216 39.3216L472.576 512l-165.7856 165.8368a27.8016 27.8016 0 1 0 39.3216 39.3216l165.888-165.7856 165.7856 165.8368a27.8528 27.8528 0 0 0 39.3216-39.424L551.424 512l165.8368-165.8368z",
|
|
22
|
-
fill: "#FFFFFF",
|
|
23
|
-
"p-id": "35107"
|
|
24
|
-
})));
|
|
25
|
-
};
|
|
26
|
-
export default CloseCircle;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/CustomCalendarHeader/index.tsx
|
|
30
|
-
var CustomCalendarHeader_exports = {};
|
|
31
|
-
__export(CustomCalendarHeader_exports, {
|
|
32
|
-
default: () => CustomCalendarHeader_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(CustomCalendarHeader_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_Stack = __toESM(require("@mui/material/Stack"));
|
|
37
|
-
var import_IconButton = __toESM(require("@mui/material/IconButton"));
|
|
38
|
-
var import_Typography = __toESM(require("@mui/material/Typography"));
|
|
39
|
-
var import_styles = require("@mui/material/styles");
|
|
40
|
-
var import_ChevronLeft = __toESM(require("../icon/ChevronLeft"));
|
|
41
|
-
var import_ChevronLeftDouble = __toESM(require("../icon/ChevronLeftDouble"));
|
|
42
|
-
var import_ChevronRight = __toESM(require("../icon/ChevronRight"));
|
|
43
|
-
var import_ChevronRightDouble = __toESM(require("../icon/ChevronRightDouble"));
|
|
44
|
-
var CustomCalendarHeaderRoot = (0, import_styles.styled)("div")({
|
|
45
|
-
display: "flex",
|
|
46
|
-
justifyContent: "space-between",
|
|
47
|
-
padding: "8px 16px",
|
|
48
|
-
alignItems: "center"
|
|
49
|
-
});
|
|
50
|
-
var CustomCalendarHeader = (props) => {
|
|
51
|
-
const { currentMonth, onMonthChange } = props;
|
|
52
|
-
const selectNextMonth = () => onMonthChange(currentMonth.add(1, "month"), "left");
|
|
53
|
-
const selectNextYear = () => onMonthChange(currentMonth.add(1, "year"), "left");
|
|
54
|
-
const selectPreviousMonth = () => onMonthChange(currentMonth.subtract(1, "month"), "right");
|
|
55
|
-
const selectPreviousYear = () => onMonthChange(currentMonth.subtract(1, "year"), "right");
|
|
56
|
-
return /* @__PURE__ */ import_react.default.createElement(CustomCalendarHeaderRoot, null, /* @__PURE__ */ import_react.default.createElement(import_Stack.default, { spacing: 1, direction: "row" }, /* @__PURE__ */ import_react.default.createElement(import_IconButton.default, { onClick: selectPreviousYear, title: "Previous year" }, /* @__PURE__ */ import_react.default.createElement(import_ChevronLeftDouble.default, null)), /* @__PURE__ */ import_react.default.createElement(import_IconButton.default, { onClick: selectPreviousMonth, title: "Previous month" }, /* @__PURE__ */ import_react.default.createElement(import_ChevronLeft.default, null))), /* @__PURE__ */ import_react.default.createElement(import_Typography.default, { variant: "body2" }, currentMonth.format("MMMM YYYY")), /* @__PURE__ */ import_react.default.createElement(import_Stack.default, { spacing: 1, direction: "row" }, /* @__PURE__ */ import_react.default.createElement(import_IconButton.default, { onClick: selectNextMonth, title: "Next month" }, /* @__PURE__ */ import_react.default.createElement(import_ChevronRight.default, null)), /* @__PURE__ */ import_react.default.createElement(import_IconButton.default, { onClick: selectNextYear, title: "Next year" }, /* @__PURE__ */ import_react.default.createElement(import_ChevronRightDouble.default, null))));
|
|
57
|
-
};
|
|
58
|
-
var CustomCalendarHeader_default = CustomCalendarHeader;
|
package/lib/Dialog/index.d.ts
DELETED
package/lib/Dialog/index.js
DELETED
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/Dialog/index.tsx
|
|
30
|
-
var Dialog_exports = {};
|
|
31
|
-
__export(Dialog_exports, {
|
|
32
|
-
default: () => Dialog_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(Dialog_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_Dialog = __toESM(require("@mui/material/Dialog"));
|
|
37
|
-
var import_Drawer = __toESM(require("@mui/material/Drawer"));
|
|
38
|
-
var Dialog = (props) => {
|
|
39
|
-
const { open, onClose, children } = props;
|
|
40
|
-
const isMobile = window.innerWidth < 768;
|
|
41
|
-
if (isMobile) {
|
|
42
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
43
|
-
import_Drawer.default,
|
|
44
|
-
{
|
|
45
|
-
anchor: "bottom",
|
|
46
|
-
open,
|
|
47
|
-
onClose,
|
|
48
|
-
height: 650,
|
|
49
|
-
autoFocus: true,
|
|
50
|
-
className: "date-picker-custom-drawer"
|
|
51
|
-
},
|
|
52
|
-
children
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
56
|
-
import_Dialog.default,
|
|
57
|
-
{
|
|
58
|
-
open,
|
|
59
|
-
onClose,
|
|
60
|
-
className: "date-picker-paid-drawer date-picker-custom-drawer"
|
|
61
|
-
},
|
|
62
|
-
children
|
|
63
|
-
);
|
|
64
|
-
};
|
|
65
|
-
var Dialog_default = Dialog;
|
package/lib/Drawer/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import "./index.less";
|
|
3
|
-
interface DrawerProps {
|
|
4
|
-
open: boolean;
|
|
5
|
-
className?: string;
|
|
6
|
-
height?: number;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
}
|
|
10
|
-
declare const Drawer: (props: DrawerProps) => JSX.Element | null;
|
|
11
|
-
export default Drawer;
|