@synerise/ds-date-picker 0.10.16 → 0.10.18
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/CHANGELOG.md +16 -0
- package/dist/DatePicker.types.d.ts +4 -4
- package/dist/Elements/DayPicker/DayPicker.d.ts +2 -2
- package/dist/Elements/DayPicker/DayPicker.types.d.ts +1 -1
- package/dist/Elements/DecadePicker/DecadePicker.types.d.ts +2 -2
- package/dist/Elements/Footer/Footer.d.ts +2 -2
- package/dist/Elements/Footer/Footer.types.d.ts +1 -1
- package/dist/Elements/GridPicker/GridPicker.types.d.ts +2 -2
- package/dist/Elements/MonthPicker/MonthPicker.d.ts +2 -2
- package/dist/Elements/MonthPicker/MonthPicker.types.d.ts +2 -2
- package/dist/Elements/Navbar/Navbar.types.d.ts +1 -1
- package/dist/Elements/PickerInput/PickerInput.styles.d.ts +2 -14
- package/dist/Elements/PickerInput/PickerInput.types.d.ts +1 -1
- package/dist/Elements/TimePicker/TimePicker.d.ts +0 -1
- package/dist/Elements/TimePicker/TimePicker.styles.d.ts +2 -2
- package/dist/Elements/TimePicker/TimePicker.types.d.ts +1 -1
- package/dist/Elements/YearPicker/YearPicker.types.d.ts +2 -2
- package/dist/RawDatePicker/RawDatePicker.js +1 -2
- package/dist/RawDatePicker/RawDatePicker.types.d.ts +1 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.10.18](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-picker@0.10.17...@synerise/ds-date-picker@0.10.18) (2023-10-02)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-date-picker
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [0.10.17](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-picker@0.10.16...@synerise/ds-date-picker@0.10.17) (2023-09-26)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @synerise/ds-date-picker
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [0.10.16](https://github.com/Synerise/synerise-design/compare/@synerise/ds-date-picker@0.10.15...@synerise/ds-date-picker@0.10.16) (2023-09-19)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @synerise/ds-date-picker
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { IntlShape } from 'react-intl';
|
|
3
3
|
import { DropdownProps } from '@synerise/ds-dropdown/dist/Dropdown';
|
|
4
4
|
import { DateToFormatOptions } from '@synerise/ds-data-format';
|
|
5
|
-
export
|
|
5
|
+
export type Props = {
|
|
6
6
|
autoFocus?: boolean;
|
|
7
7
|
disabled?: boolean;
|
|
8
8
|
disabledDates?: (date?: Date) => boolean;
|
|
@@ -34,7 +34,7 @@ export declare type Props = {
|
|
|
34
34
|
hideNow?: boolean;
|
|
35
35
|
readOnly?: boolean;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type State = {
|
|
38
38
|
mode: string;
|
|
39
39
|
month: Date;
|
|
40
40
|
changed: boolean;
|
|
@@ -43,7 +43,7 @@ export declare type State = {
|
|
|
43
43
|
visible?: boolean;
|
|
44
44
|
texts: Texts;
|
|
45
45
|
};
|
|
46
|
-
export
|
|
46
|
+
export type Modifier = {
|
|
47
47
|
start?: Date;
|
|
48
48
|
end?: Date;
|
|
49
49
|
entered?: Date;
|
|
@@ -51,7 +51,7 @@ export declare type Modifier = {
|
|
|
51
51
|
'entered-end'?: Date;
|
|
52
52
|
disabled: boolean;
|
|
53
53
|
};
|
|
54
|
-
export
|
|
54
|
+
export type Texts = {
|
|
55
55
|
apply: string | React.ReactNode;
|
|
56
56
|
now: string | React.ReactNode;
|
|
57
57
|
inputPlaceholder?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { DayPickerProps } from './DayPicker.types';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
4
|
-
forwardedRef?:
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<DayPickerProps, "intl"> & {
|
|
4
|
+
forwardedRef?: React.Ref<any> | undefined;
|
|
5
5
|
} & React.RefAttributes<any>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<DayPickerProps>;
|
|
7
7
|
};
|
|
@@ -2,7 +2,7 @@ import { IntlShape } from 'react-intl';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { DayModifiers, Modifier, Modifiers } from 'react-day-picker/types/Modifiers';
|
|
4
4
|
import MomentLocaleUtils from 'react-day-picker/moment';
|
|
5
|
-
export
|
|
5
|
+
export type DayPickerProps = {
|
|
6
6
|
month: Date;
|
|
7
7
|
onMonthChange?: (month: Date) => void;
|
|
8
8
|
onMonthNameClick?: () => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Props } from './Footer.types';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
4
|
-
forwardedRef?:
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<Props, "intl"> & {
|
|
4
|
+
forwardedRef?: React.Ref<any> | undefined;
|
|
5
5
|
} & React.RefAttributes<any>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<Props>;
|
|
7
7
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type Cell = {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
key: React.ReactText;
|
|
5
5
|
outside: boolean;
|
|
6
6
|
text: React.ReactText;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type GridPickerProps = {
|
|
9
9
|
selectedKey: React.ReactText | null;
|
|
10
10
|
cells: Cell[];
|
|
11
11
|
onCellClick: (key: React.ReactText) => void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { MonthPickerProps } from './MonthPicker.types';
|
|
3
|
-
declare const _default: React.ForwardRefExoticComponent<
|
|
4
|
-
forwardedRef?:
|
|
3
|
+
declare const _default: React.ForwardRefExoticComponent<import("react-intl").Omit<MonthPickerProps, "intl"> & {
|
|
4
|
+
forwardedRef?: React.Ref<any> | undefined;
|
|
5
5
|
} & React.RefAttributes<any>> & {
|
|
6
6
|
WrappedComponent: React.ComponentType<MonthPickerProps>;
|
|
7
7
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IntlShape } from 'react-intl';
|
|
2
|
-
export
|
|
2
|
+
export type MonthPickerProps = {
|
|
3
3
|
min?: Date;
|
|
4
4
|
max?: Date;
|
|
5
5
|
value: Date;
|
|
6
6
|
onChange: (date: Date) => void;
|
|
7
7
|
intl: IntlShape;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type MonthPickerState = {
|
|
10
10
|
cursor: Date;
|
|
11
11
|
yearMode: boolean;
|
|
12
12
|
};
|
|
@@ -3,21 +3,9 @@ import { Props as DSInputProps } from '@synerise/ds-input/dist/Input.types';
|
|
|
3
3
|
import { InputProps as AntdInputProps } from 'antd/lib/input';
|
|
4
4
|
export declare const Prefixel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
5
5
|
export declare const Suffixel: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
6
|
-
export declare const Input: import("styled-components").StyledComponent<
|
|
7
|
-
mask: string;
|
|
8
|
-
formatCharacters?: object | undefined;
|
|
9
|
-
placeholderChar?: string | undefined;
|
|
10
|
-
value?: string | undefined;
|
|
11
|
-
}) | (object & DSInputProps & import("antd/lib/input").TextAreaProps), any> & {
|
|
6
|
+
export declare const Input: import("styled-components").StyledComponent<import("react").ComponentType<object & import("@synerise/ds-input").EnhancedProps> & {
|
|
12
7
|
displayName: string;
|
|
13
|
-
}
|
|
14
|
-
mask: string;
|
|
15
|
-
formatCharacters?: object | undefined;
|
|
16
|
-
placeholderChar?: string | undefined;
|
|
17
|
-
value?: string | undefined;
|
|
18
|
-
})> & {
|
|
19
|
-
displayName: string;
|
|
20
|
-
}), any, DSInputProps & AntdInputProps & {
|
|
8
|
+
}, any, DSInputProps & AntdInputProps & {
|
|
21
9
|
active: boolean;
|
|
22
10
|
}, never>;
|
|
23
11
|
export declare const PickerInputWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TimePickerProps } from './TimePicker.types';
|
|
3
2
|
declare const TimePicker: ({ value, disabledHours, disabledMinutes, disabledSeconds, inactivePrev, inactiveNext, onChange, onShortNext, onShortPrev, }: TimePickerProps) => JSX.Element;
|
|
4
3
|
export default TimePicker;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const Picker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<
|
|
4
|
-
forwardedRef?: import("react").
|
|
3
|
+
export declare const Picker: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react-intl").Omit<import("@synerise/ds-time-picker").TimePickerProps, "intl"> & {
|
|
4
|
+
forwardedRef?: import("react").Ref<any> | undefined;
|
|
5
5
|
} & import("react").RefAttributes<any>> & {
|
|
6
6
|
WrappedComponent: import("react").ComponentType<import("@synerise/ds-time-picker").TimePickerProps>;
|
|
7
7
|
}, any, {}, never>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type YearPickerProps = {
|
|
2
2
|
value: Date;
|
|
3
3
|
onChange: (date: Date) => void;
|
|
4
4
|
onTitleClick?: () => void;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type YearPickerState = {
|
|
7
7
|
cursor: Date;
|
|
8
8
|
decadeMode: boolean;
|
|
9
9
|
};
|
|
@@ -186,8 +186,7 @@ var RawDatePicker = /*#__PURE__*/function (_React$Component) {
|
|
|
186
186
|
});
|
|
187
187
|
|
|
188
188
|
_defineProperty(_assertThisInitialized(_this), "handleDaySwitch", function (day) {
|
|
189
|
-
var disabledDates = _this.props.disabledDates; //
|
|
190
|
-
// @ts-ignore
|
|
189
|
+
var disabledDates = _this.props.disabledDates; // @ts-ignore
|
|
191
190
|
|
|
192
191
|
_this.handleDayClick(day, {
|
|
193
192
|
disabled: disabledDates ? disabledDates(day) : false
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Props } from '../DatePicker.types';
|
|
2
|
-
export
|
|
2
|
+
export type RawDatePickerProps = Omit<Props, 'dropdownProps'>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-date-picker",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.18",
|
|
4
4
|
"description": "DatePicker UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
"types": "dist/index.d.ts",
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@date-fns/upgrade": "^1.0.3",
|
|
36
|
-
"@synerise/ds-button": "^0.18.
|
|
37
|
-
"@synerise/ds-core": "^0.40.
|
|
38
|
-
"@synerise/ds-data-format": "^0.4.
|
|
39
|
-
"@synerise/ds-dropdown": "^0.17.
|
|
40
|
-
"@synerise/ds-icon": "^0.58.
|
|
41
|
-
"@synerise/ds-input": "^0.19.
|
|
42
|
-
"@synerise/ds-time-picker": "^0.8.
|
|
43
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
44
|
-
"@synerise/ds-utils": "^0.24.
|
|
45
|
-
"classnames": "
|
|
36
|
+
"@synerise/ds-button": "^0.18.3",
|
|
37
|
+
"@synerise/ds-core": "^0.40.3",
|
|
38
|
+
"@synerise/ds-data-format": "^0.4.3",
|
|
39
|
+
"@synerise/ds-dropdown": "^0.17.81",
|
|
40
|
+
"@synerise/ds-icon": "^0.58.3",
|
|
41
|
+
"@synerise/ds-input": "^0.19.3",
|
|
42
|
+
"@synerise/ds-time-picker": "^0.8.9",
|
|
43
|
+
"@synerise/ds-tooltip": "^0.14.5",
|
|
44
|
+
"@synerise/ds-utils": "^0.24.17",
|
|
45
|
+
"classnames": "2.3.2",
|
|
46
46
|
"date-fns": "2.16.1",
|
|
47
47
|
"lodash": "^4.17.20",
|
|
48
48
|
"react-day-picker": "^7.4.8",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"react": ">=16.9.0 < 17.0.0",
|
|
56
56
|
"styled-components": "5.0.1"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "1c1adf344f447e404a1d6320ad1d3f8486f29f67"
|
|
59
59
|
}
|