Skip to content

Commit 716f998

Browse files
committed
fix(dependencies): update dependencies
affects: @datepicker-react/hooks, @datepicker-react/styled
1 parent a7418c4 commit 716f998

File tree

12 files changed

+3944
-2391
lines changed

12 files changed

+3944
-2391
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
"@types/storybook__addon-actions": "^3.4.3",
6161
"@types/storybook__addon-knobs": "^5.0.1",
6262
"@types/storybook__react": "^4.0.2",
63-
"@typescript-eslint/eslint-plugin": "^1.9.0",
64-
"@typescript-eslint/parser": "^1.9.0",
63+
"@typescript-eslint/eslint-plugin": "^1.10.2",
64+
"@typescript-eslint/parser": "^1.10.2",
6565
"awesome-typescript-loader": "^5.2.1",
6666
"babel-eslint": "^10.0.1",
6767
"babel-loader": "^8.0.6",
@@ -72,7 +72,7 @@
7272
"eslint": "^5.16.0",
7373
"eslint-config-prettier": "^4.3.0",
7474
"eslint-config-react-app": "^4.0.1",
75-
"eslint-plugin-flowtype": "^3.9.1",
75+
"eslint-plugin-flowtype": "^3.10.1",
7676
"eslint-plugin-import": "^2.17.3",
7777
"eslint-plugin-jsx-a11y": "^6.2.1",
7878
"eslint-plugin-react": "^7.13.0",
@@ -85,12 +85,12 @@
8585
"jest-dom": "^3.5.0",
8686
"jest-environment-jsdom": "^24.8.0",
8787
"jest-environment-node": "^24.8.0",
88-
"jest-runner-eslint": "^0.7.3",
88+
"jest-runner-eslint": "^0.7.4",
8989
"jest-serializer-html": "^7.0.0",
9090
"jest-styled-components": "^6.3.1",
9191
"jest-watch-select-projects": "^0.1.1",
9292
"jest-watch-typeahead": "^0.3.1",
93-
"lerna": "^3.14.1",
93+
"lerna": "^3.15.0",
9494
"lint-staged": "^8.2.0",
9595
"npm-run-all": "^4.1.5",
9696
"prettier": "^1.18.2",
@@ -99,7 +99,7 @@
9999
"react-hooks-testing-library": "^0.5.1",
100100
"react-test-renderer": "^16.8.6",
101101
"rimraf": "^2.6.3",
102-
"rollup": "^1.14.0",
102+
"rollup": "^1.15.0",
103103
"rollup-plugin-analyzer": "^3.0.1",
104104
"rollup-plugin-babel": "^4.3.2",
105105
"rollup-plugin-commonjs": "^10.0.0",
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
interface CloseProps {
22
onClick(): void
33
rtl: boolean
4+
closeText: string
45
}
5-
declare function Close({onClick, rtl}: CloseProps): JSX.Element
6+
declare function Close({onClick, rtl, closeText}: CloseProps): JSX.Element
67
export default Close
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
import React from 'react'
2+
import {FormatFunction} from '@datepicker-react/hooks'
3+
import {DateSingleInputPhrases} from '../../phrases'
4+
import {FirstDayOfWeek, MonthType} from '@datepicker-react/hooks/src'
5+
export interface OnDateChangeProps {
6+
date: Date | null
7+
showDatepicker: boolean
8+
}
9+
export interface DateRangeInputProps {
10+
date: Date | null
11+
minBookingDate?: Date
12+
maxBookingDate?: Date
13+
showDatepicker: boolean
14+
numberOfMonths?: number
15+
firstDayOfWeek?: FirstDayOfWeek
16+
displayFormat?: string | FormatFunction
17+
phrases?: DateSingleInputPhrases
18+
showCalendarIcon?: boolean
19+
vertical?: boolean
20+
showResetDate?: boolean
21+
showClose?: boolean
22+
rtl?: boolean
23+
placement?: 'top' | 'bottom'
24+
onDateChange(data: OnDateChangeProps): void
25+
onFocusChange(focusInput: boolean): void
26+
initialVisibleMonth?(numberOfMonths: number): MonthType[]
27+
isDateBlocked?(date: Date): boolean
28+
onClose?(): void
29+
dayLabelFormat?(date: Date): string
30+
weekdayLabelFormat?(date: Date): string
31+
monthLabelFormat?(date: Date): string
32+
onDayRender?(date: Date): React.ReactNode
33+
}
34+
declare function DateSingleInput({
35+
date,
36+
minBookingDate,
37+
maxBookingDate,
38+
firstDayOfWeek,
39+
onFocusChange,
40+
showDatepicker,
41+
onDateChange,
42+
dayLabelFormat,
43+
weekdayLabelFormat,
44+
monthLabelFormat,
45+
onDayRender,
46+
numberOfMonths,
47+
showClose,
48+
showResetDate,
49+
vertical,
50+
rtl,
51+
isDateBlocked,
52+
onClose,
53+
showCalendarIcon,
54+
displayFormat,
55+
phrases,
56+
placement,
57+
}: DateRangeInputProps): JSX.Element
58+
export default DateSingleInput
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export {}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import DateSingleInput, {OnDateChangeProps} from './DateSingleInput'
2+
export {OnDateChangeProps}
3+
export default DateSingleInput

0 commit comments

Comments
 (0)