@elliemae/ds-date-picker 2.3.0-alpha.3 → 2.3.0-alpha.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.
Files changed (87) hide show
  1. package/{cjs → dist/cjs}/DSDatePicker.js +0 -0
  2. package/{cjs → dist/cjs}/DSDatePicker.js.map +0 -0
  3. package/{cjs → dist/cjs}/components/DSDatePickerImpl.js +0 -0
  4. package/{cjs → dist/cjs}/components/DSDatePickerImpl.js.map +0 -0
  5. package/{cjs → dist/cjs}/components/DatePickerController/DatePickerController.js +0 -0
  6. package/{cjs → dist/cjs}/components/DatePickerController/DatePickerController.js.map +0 -0
  7. package/{cjs → dist/cjs}/components/DatePickerDay/DatePickerDay.js +0 -0
  8. package/{cjs → dist/cjs}/components/DatePickerDay/DatePickerDay.js.map +0 -0
  9. package/{cjs → dist/cjs}/components/DatePickerDropdown.js +0 -0
  10. package/{cjs → dist/cjs}/components/DatePickerDropdown.js.map +0 -0
  11. package/{cjs → dist/cjs}/components/DatePickerHeader/DatePickerHeader.js +0 -0
  12. package/{cjs → dist/cjs}/components/DatePickerHeader/DatePickerHeader.js.map +0 -0
  13. package/{cjs → dist/cjs}/components/DatePickerNavigation/DatePickerNavigation.js +0 -0
  14. package/{cjs → dist/cjs}/components/DatePickerNavigation/DatePickerNavigation.js.map +0 -0
  15. package/{cjs → dist/cjs}/components/DatePickerPicker/DatePickerPicker.js +0 -0
  16. package/{cjs → dist/cjs}/components/DatePickerPicker/DatePickerPicker.js.map +0 -0
  17. package/{cjs → dist/cjs}/components/DatePickerRange/DatePickerRange.js +0 -0
  18. package/{cjs → dist/cjs}/components/DatePickerRange/DatePickerRange.js.map +0 -0
  19. package/{cjs → dist/cjs}/components/DatePickerRangeHeader/DatePickerRangeHeader.js +0 -0
  20. package/{cjs → dist/cjs}/components/DatePickerRangeHeader/DatePickerRangeHeader.js.map +0 -0
  21. package/{cjs → dist/cjs}/components/DatePickerRenderMonth/DatePickerRenderMonth.js +0 -0
  22. package/{cjs → dist/cjs}/components/DatePickerRenderMonth/DatePickerRenderMonth.js.map +0 -0
  23. package/{cjs → dist/cjs}/components/DatePickerSingleDate/DatePickerSingleDate.js +0 -0
  24. package/{cjs → dist/cjs}/components/DatePickerSingleDate/DatePickerSingleDate.js.map +0 -0
  25. package/{cjs → dist/cjs}/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js +0 -0
  26. package/{cjs → dist/cjs}/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js.map +0 -0
  27. package/{cjs → dist/cjs}/components/index.js +0 -0
  28. package/{cjs → dist/cjs}/components/index.js.map +0 -0
  29. package/{cjs → dist/cjs}/defaultPhrases.js +0 -0
  30. package/{cjs → dist/cjs}/defaultPhrases.js.map +0 -0
  31. package/{cjs → dist/cjs}/index.js +0 -0
  32. package/{cjs → dist/cjs}/index.js.map +0 -0
  33. package/{esm → dist/esm}/DSDatePicker.js +0 -0
  34. package/{esm → dist/esm}/DSDatePicker.js.map +0 -0
  35. package/{esm → dist/esm}/components/DSDatePickerImpl.js +0 -0
  36. package/{esm → dist/esm}/components/DSDatePickerImpl.js.map +0 -0
  37. package/{esm → dist/esm}/components/DatePickerController/DatePickerController.js +0 -0
  38. package/{esm → dist/esm}/components/DatePickerController/DatePickerController.js.map +0 -0
  39. package/{esm → dist/esm}/components/DatePickerDay/DatePickerDay.js +0 -0
  40. package/{esm → dist/esm}/components/DatePickerDay/DatePickerDay.js.map +0 -0
  41. package/{esm → dist/esm}/components/DatePickerDropdown.js +0 -0
  42. package/{esm → dist/esm}/components/DatePickerDropdown.js.map +0 -0
  43. package/{esm → dist/esm}/components/DatePickerHeader/DatePickerHeader.js +0 -0
  44. package/{esm → dist/esm}/components/DatePickerHeader/DatePickerHeader.js.map +0 -0
  45. package/{esm → dist/esm}/components/DatePickerNavigation/DatePickerNavigation.js +0 -0
  46. package/{esm → dist/esm}/components/DatePickerNavigation/DatePickerNavigation.js.map +0 -0
  47. package/{esm → dist/esm}/components/DatePickerPicker/DatePickerPicker.js +0 -0
  48. package/{esm → dist/esm}/components/DatePickerPicker/DatePickerPicker.js.map +0 -0
  49. package/{esm → dist/esm}/components/DatePickerRange/DatePickerRange.js +0 -0
  50. package/{esm → dist/esm}/components/DatePickerRange/DatePickerRange.js.map +0 -0
  51. package/{esm → dist/esm}/components/DatePickerRangeHeader/DatePickerRangeHeader.js +0 -0
  52. package/{esm → dist/esm}/components/DatePickerRangeHeader/DatePickerRangeHeader.js.map +0 -0
  53. package/{esm → dist/esm}/components/DatePickerRenderMonth/DatePickerRenderMonth.js +0 -0
  54. package/{esm → dist/esm}/components/DatePickerRenderMonth/DatePickerRenderMonth.js.map +0 -0
  55. package/{esm → dist/esm}/components/DatePickerSingleDate/DatePickerSingleDate.js +0 -0
  56. package/{esm → dist/esm}/components/DatePickerSingleDate/DatePickerSingleDate.js.map +0 -0
  57. package/{esm → dist/esm}/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js +0 -0
  58. package/{esm → dist/esm}/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js.map +0 -0
  59. package/{esm → dist/esm}/components/index.js +0 -0
  60. package/{esm → dist/esm}/components/index.js.map +0 -0
  61. package/{esm → dist/esm}/defaultPhrases.js +0 -0
  62. package/{esm → dist/esm}/defaultPhrases.js.map +0 -0
  63. package/{esm → dist/esm}/index.js +0 -0
  64. package/{esm → dist/esm}/index.js.map +0 -0
  65. package/package.json +58 -56
  66. package/types/components/DSDatePickerImpl.d.ts +0 -21
  67. package/types/components/DatePickerController/DatePickerController.d.ts +0 -80
  68. package/types/components/DatePickerDay/DatePickerDay.d.ts +0 -14
  69. package/types/components/DatePickerDropdown.d.ts +0 -42
  70. package/types/components/DatePickerHeader/DatePickerHeader.d.ts +0 -16
  71. package/types/components/DatePickerNavigation/DatePickerNavigation.d.ts +0 -20
  72. package/types/components/DatePickerPicker/DatePickerPicker.d.ts +0 -49
  73. package/types/components/DatePickerRange/DatePickerRange.d.ts +0 -10
  74. package/types/components/DatePickerRangeHeader/DatePickerRangeHeader.d.ts +0 -24
  75. package/types/components/DatePickerRangeHeader/tests/DatePickerRangeHeader.test.d.ts +0 -1
  76. package/types/components/DatePickerRenderMonth/DatePickerRenderMonth.d.ts +0 -5
  77. package/types/components/DatePickerSingleDate/DatePickerSingleDate.d.ts +0 -12
  78. package/types/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.d.ts +0 -17
  79. package/types/components/index.d.ts +0 -10
  80. package/types/components/tests/DatePickerHeader.test.d.ts +0 -1
  81. package/types/components/tests/DatePickerRange.test.d.ts +0 -1
  82. package/types/components/tests/DatePickerRangeHeader.test.d.ts +0 -1
  83. package/types/components/tests/DatePickerSelectedDate.test.d.ts +0 -1
  84. package/types/components/tests/DatePickerSingleDate.test.d.ts +0 -1
  85. package/types/components/tests/SingleRangeDateSwitcher.test.d.ts +0 -1
  86. package/types/defaultPhrases.d.ts +0 -225
  87. package/types/index.d.ts +0 -3
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,75 +1,78 @@
1
1
  {
2
2
  "name": "@elliemae/ds-date-picker",
3
- "version": "2.3.0-alpha.3",
3
+ "version": "2.3.0-alpha.8",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Date Picker",
6
- "module": "./esm/index.js",
7
- "main": "./cjs/index.js",
8
- "types": "./types/index.d.ts",
6
+ "files": [
7
+ "dist"
8
+ ],
9
+ "module": "./dist/esm/index.js",
10
+ "main": "./dist/cjs/index.js",
11
+ "types": "./dist/types/index.d.ts",
9
12
  "exports": {
10
13
  ".": {
11
- "import": "./esm/index.js",
12
- "require": "./cjs/index.js"
14
+ "import": "./dist/esm/index.js",
15
+ "require": "./dist/cjs/index.js"
13
16
  },
14
17
  "./DSDatePicker": {
15
- "import": "./esm/DSDatePicker.js",
16
- "require": "./cjs/DSDatePicker.js"
18
+ "import": "./dist/esm/DSDatePicker.js",
19
+ "require": "./dist/cjs/DSDatePicker.js"
17
20
  },
18
21
  "./defaultPhrases": {
19
- "import": "./esm/defaultPhrases.js",
20
- "require": "./cjs/defaultPhrases.js"
22
+ "import": "./dist/esm/defaultPhrases.js",
23
+ "require": "./dist/cjs/defaultPhrases.js"
21
24
  },
22
25
  "./components/SingleRangeDateSwitcher/SingleRangeDateSwitcher": {
23
- "import": "./esm/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js",
24
- "require": "./cjs/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js"
26
+ "import": "./dist/esm/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js",
27
+ "require": "./dist/cjs/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js"
25
28
  },
26
29
  "./components": {
27
- "import": "./esm/components/index.js",
28
- "require": "./cjs/components/index.js"
30
+ "import": "./dist/esm/components/index.js",
31
+ "require": "./dist/cjs/components/index.js"
29
32
  },
30
33
  "./components/DSDatePickerImpl": {
31
- "import": "./esm/components/DSDatePickerImpl.js",
32
- "require": "./cjs/components/DSDatePickerImpl.js"
34
+ "import": "./dist/esm/components/DSDatePickerImpl.js",
35
+ "require": "./dist/cjs/components/DSDatePickerImpl.js"
33
36
  },
34
37
  "./components/DatePickerSingleDate/DatePickerSingleDate": {
35
- "import": "./esm/components/DatePickerSingleDate/DatePickerSingleDate.js",
36
- "require": "./cjs/components/DatePickerSingleDate/DatePickerSingleDate.js"
38
+ "import": "./dist/esm/components/DatePickerSingleDate/DatePickerSingleDate.js",
39
+ "require": "./dist/cjs/components/DatePickerSingleDate/DatePickerSingleDate.js"
37
40
  },
38
41
  "./components/DatePickerRenderMonth/DatePickerRenderMonth": {
39
- "import": "./esm/components/DatePickerRenderMonth/DatePickerRenderMonth.js",
40
- "require": "./cjs/components/DatePickerRenderMonth/DatePickerRenderMonth.js"
42
+ "import": "./dist/esm/components/DatePickerRenderMonth/DatePickerRenderMonth.js",
43
+ "require": "./dist/cjs/components/DatePickerRenderMonth/DatePickerRenderMonth.js"
41
44
  },
42
45
  "./components/DatePickerRangeHeader/DatePickerRangeHeader": {
43
- "import": "./esm/components/DatePickerRangeHeader/DatePickerRangeHeader.js",
44
- "require": "./cjs/components/DatePickerRangeHeader/DatePickerRangeHeader.js"
46
+ "import": "./dist/esm/components/DatePickerRangeHeader/DatePickerRangeHeader.js",
47
+ "require": "./dist/cjs/components/DatePickerRangeHeader/DatePickerRangeHeader.js"
45
48
  },
46
49
  "./components/DatePickerRange/DatePickerRange": {
47
- "import": "./esm/components/DatePickerRange/DatePickerRange.js",
48
- "require": "./cjs/components/DatePickerRange/DatePickerRange.js"
50
+ "import": "./dist/esm/components/DatePickerRange/DatePickerRange.js",
51
+ "require": "./dist/cjs/components/DatePickerRange/DatePickerRange.js"
49
52
  },
50
53
  "./components/DatePickerPicker/DatePickerPicker": {
51
- "import": "./esm/components/DatePickerPicker/DatePickerPicker.js",
52
- "require": "./cjs/components/DatePickerPicker/DatePickerPicker.js"
54
+ "import": "./dist/esm/components/DatePickerPicker/DatePickerPicker.js",
55
+ "require": "./dist/cjs/components/DatePickerPicker/DatePickerPicker.js"
53
56
  },
54
57
  "./components/DatePickerNavigation/DatePickerNavigation": {
55
- "import": "./esm/components/DatePickerNavigation/DatePickerNavigation.js",
56
- "require": "./cjs/components/DatePickerNavigation/DatePickerNavigation.js"
58
+ "import": "./dist/esm/components/DatePickerNavigation/DatePickerNavigation.js",
59
+ "require": "./dist/cjs/components/DatePickerNavigation/DatePickerNavigation.js"
57
60
  },
58
61
  "./components/DatePickerHeader/DatePickerHeader": {
59
- "import": "./esm/components/DatePickerHeader/DatePickerHeader.js",
60
- "require": "./cjs/components/DatePickerHeader/DatePickerHeader.js"
62
+ "import": "./dist/esm/components/DatePickerHeader/DatePickerHeader.js",
63
+ "require": "./dist/cjs/components/DatePickerHeader/DatePickerHeader.js"
61
64
  },
62
65
  "./components/DatePickerDropdown": {
63
- "import": "./esm/components/DatePickerDropdown.js",
64
- "require": "./cjs/components/DatePickerDropdown.js"
66
+ "import": "./dist/esm/components/DatePickerDropdown.js",
67
+ "require": "./dist/cjs/components/DatePickerDropdown.js"
65
68
  },
66
69
  "./components/DatePickerDay/DatePickerDay": {
67
- "import": "./esm/components/DatePickerDay/DatePickerDay.js",
68
- "require": "./cjs/components/DatePickerDay/DatePickerDay.js"
70
+ "import": "./dist/esm/components/DatePickerDay/DatePickerDay.js",
71
+ "require": "./dist/cjs/components/DatePickerDay/DatePickerDay.js"
69
72
  },
70
73
  "./components/DatePickerController/DatePickerController": {
71
- "import": "./esm/components/DatePickerController/DatePickerController.js",
72
- "require": "./cjs/components/DatePickerController/DatePickerController.js"
74
+ "import": "./dist/esm/components/DatePickerController/DatePickerController.js",
75
+ "require": "./dist/cjs/components/DatePickerController/DatePickerController.js"
73
76
  }
74
77
  },
75
78
  "sideEffects": [
@@ -81,33 +84,27 @@
81
84
  "url": "https://git.elliemae.io/platform-ui/dimsum.git"
82
85
  },
83
86
  "engines": {
84
- "npm": ">=7",
85
- "node": ">=14"
87
+ "pnpm": ">=6",
88
+ "node": ">=16"
86
89
  },
87
90
  "author": "ICE MT",
88
- "scripts": {
89
- "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
90
- "prebuild": "exit 0",
91
- "predev": "exit 0",
92
- "build": "node ../../scripts/build/build.js"
93
- },
94
91
  "dependencies": {
95
- "@elliemae/ds-basic": "2.3.0-alpha.3",
96
- "@elliemae/ds-button": "2.3.0-alpha.3",
97
- "@elliemae/ds-classnames": "2.3.0-alpha.3",
98
- "@elliemae/ds-form": "2.3.0-alpha.3",
99
- "@elliemae/ds-grid": "2.3.0-alpha.3",
100
- "@elliemae/ds-icons": "2.3.0-alpha.3",
101
- "@elliemae/ds-popper": "2.3.0-alpha.3",
102
- "@elliemae/ds-shared": "2.3.0-alpha.3",
103
- "@elliemae/ds-system": "2.3.0-alpha.3",
92
+ "@elliemae/ds-basic": "2.3.0-alpha.8",
93
+ "@elliemae/ds-button": "2.3.0-alpha.8",
94
+ "@elliemae/ds-classnames": "2.3.0-alpha.8",
95
+ "@elliemae/ds-form": "2.3.0-alpha.8",
96
+ "@elliemae/ds-grid": "2.3.0-alpha.8",
97
+ "@elliemae/ds-icons": "2.3.0-alpha.8",
98
+ "@elliemae/ds-popper": "2.3.0-alpha.8",
99
+ "@elliemae/ds-shared": "2.3.0-alpha.8",
100
+ "@elliemae/ds-system": "2.3.0-alpha.8",
104
101
  "moment": "~2.29.1",
105
102
  "prop-types": "~15.7.2",
106
103
  "react-dates": "~21.8.0",
107
104
  "react-desc": "~4.1.3"
108
105
  },
109
106
  "devDependencies": {
110
- "@testing-library/jest-dom": "~5.15.0",
107
+ "@testing-library/jest-dom": "~5.15.1",
111
108
  "@testing-library/react": "~12.1.2"
112
109
  },
113
110
  "peerDependencies": {
@@ -117,7 +114,12 @@
117
114
  },
118
115
  "publishConfig": {
119
116
  "access": "public",
120
- "directory": "dist",
121
- "generateSubmodules": true
117
+ "typeSafety": false
118
+ },
119
+ "scripts": {
120
+ "dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
121
+ "prebuild": "exit 0",
122
+ "predev": "exit 0",
123
+ "build": "node ../../scripts/build/build.js"
122
124
  }
123
125
  }
@@ -1,21 +0,0 @@
1
- import React from 'react';
2
- export default class DSDatePickerImpl extends React.Component {
3
- constructor(props: any);
4
- static getDerivedStateFromProps(nextProps: any, prevState: any): {} | null;
5
- onClickPicker: () => void;
6
- getSafeValue: () => any;
7
- getSafeInputValue: () => any;
8
- isControlled: () => boolean;
9
- handleDateChange: (date: any, event: any) => void;
10
- handleInputChange: (dataInput: any, newDate: any) => void;
11
- handleChange: (newDate: any) => void;
12
- handleFocus: ({ focused }: {
13
- focused: any;
14
- }) => void;
15
- handleCalendarClose: () => void;
16
- handleClickEscape: () => void;
17
- handleOnBlur: () => void;
18
- handleInputFocus: (dataInput: any) => void;
19
- render(): JSX.Element;
20
- }
21
- export { DSDatePickerImpl };
@@ -1,80 +0,0 @@
1
- import React from 'react';
2
- import moment from 'moment';
3
- import 'react-dates/initialize';
4
- interface DSDatePickerControllerStateType {
5
- selectedDate: any;
6
- firstFocusableItem: React.RefObject<HTMLElement>;
7
- datePicker: React.RefObject<HTMLElement>;
8
- }
9
- export default class DSDatePickerController extends React.Component<any, DSDatePickerControllerStateType> {
10
- static defaultProps: {
11
- date: string;
12
- value: string;
13
- enableOutsideDays: boolean;
14
- initialVisibleMonth: moment.Moment;
15
- firstDayOfWeek: number;
16
- keepOpenOnDateSelect: boolean;
17
- hideKeyboardShortcutsPanel: boolean;
18
- onPrevMonthClick: () => null;
19
- onNextMonthClick: () => null;
20
- onClose: () => null;
21
- onChange: () => null;
22
- onClickEscape: () => null;
23
- onDateChange: () => null;
24
- phrases: {
25
- calendarLabel: string;
26
- roleDescription: string;
27
- closeDatePicker: string;
28
- clearDate: string;
29
- jumpToPrevMonth: string;
30
- jumpToNextMonth: string;
31
- keyboardShortcuts: string;
32
- showKeyboardShortcutsPanel: string;
33
- hideKeyboardShortcutsPanel: string;
34
- openThisPanel: string;
35
- enterKey: string;
36
- leftArrowRightArrow: string;
37
- upArrowDownArrow: string;
38
- pageUpPageDown: string;
39
- homeEnd: string;
40
- escape: string;
41
- questionMark: string;
42
- selectFocusedDate: string;
43
- moveFocusByOneDay: string;
44
- moveFocusByOneWeek: string;
45
- moveFocusByOneMonth: string;
46
- moveFocustoStartAndEndOfWeek: string;
47
- returnFocusToInput: string;
48
- keyboardForwardNavigationInstructions: string;
49
- keyboardBackwardNavigationInstructions: string;
50
- chooseAvailableDate: ({ date }: {
51
- date: any;
52
- }) => any;
53
- dateIsUnavailable: ({ date }: {
54
- date: any;
55
- }) => string;
56
- dateIsSelected: ({ date }: {
57
- date: any;
58
- }) => string;
59
- };
60
- displayFormatDay: string;
61
- transitionDuration: number;
62
- isDayBlocked: () => boolean;
63
- isOutsideRange: () => boolean;
64
- isDayHighlighted: () => boolean;
65
- numberOfMonths: number;
66
- };
67
- constructor(props: any);
68
- componentDidMount(): void;
69
- componentWillUnmount(): void;
70
- handleMouseUp: () => void;
71
- handleKeyDown: (event: any) => void;
72
- getSafeValue: () => moment.Moment | null;
73
- isControlled: () => boolean;
74
- handleDateChange: (date: any) => void;
75
- handleChange: (dataInput: any) => void;
76
- handleNavClick: (date: any, nav: any) => void;
77
- insideBlur: (event: any) => void;
78
- render(): JSX.Element;
79
- }
80
- export { DSDatePickerController };
@@ -1,14 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare const Day: {
4
- ({ className, date }: {
5
- className?: string | undefined;
6
- date?: string | undefined;
7
- }): JSX.Element;
8
- propTypes: {
9
- className: PropTypes.Requireable<string>;
10
- date: PropTypes.Requireable<string | number>;
11
- };
12
- };
13
- export { Day as DatePickerDay };
14
- export default Day;
@@ -1,42 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare function DatePickerDropdown({ disabled, readOnly, onClick, isOpen, menu, zIndex, pickerProps, pickerRef, }: {
4
- disabled?: boolean | undefined;
5
- readOnly: any;
6
- onClick?: (() => null) | undefined;
7
- isOpen: any;
8
- menu: any;
9
- zIndex?: number | undefined;
10
- pickerProps: any;
11
- pickerRef: any;
12
- }): JSX.Element;
13
- declare namespace DatePickerDropdown {
14
- var propTypes: {
15
- pickerRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
16
- current: PropTypes.Requireable<any>;
17
- }>>;
18
- disabled: PropTypes.Requireable<boolean>;
19
- readOnly: PropTypes.Requireable<boolean>;
20
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
21
- isOpen: PropTypes.Requireable<boolean>;
22
- menu: PropTypes.Requireable<PropTypes.ReactElementLike>;
23
- zIndex: PropTypes.Requireable<number>;
24
- pickerProps: PropTypes.Requireable<PropTypes.InferProps<{
25
- innerRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
26
- current: PropTypes.Requireable<any>;
27
- }>>;
28
- className: PropTypes.Requireable<string>;
29
- disabled: PropTypes.Requireable<boolean>;
30
- icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
31
- size: PropTypes.Requireable<unknown>;
32
- buttonActionType: PropTypes.Requireable<"link" | "text" | "secondary" | "primary">;
33
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
34
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
35
- onBlur: PropTypes.Requireable<(...args: any[]) => any>;
36
- readOnly: PropTypes.Requireable<boolean>;
37
- tabIndex: PropTypes.Requireable<number>;
38
- }>>;
39
- };
40
- }
41
- export { DatePickerDropdown };
42
- export default DatePickerDropdown;
@@ -1,16 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare const DatePickerHeader: {
4
- ({ onInputChange, selectedDate, updateKeyDate }: {
5
- onInputChange?: (() => null) | undefined;
6
- selectedDate: any;
7
- updateKeyDate: any;
8
- }): JSX.Element;
9
- propTypes: {
10
- onInputChange: PropTypes.Requireable<(...args: any[]) => any>;
11
- selectedDate: PropTypes.Requireable<any>;
12
- updateKeyDate: PropTypes.Requireable<any>;
13
- };
14
- };
15
- export { DatePickerHeader };
16
- export default DatePickerHeader;
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare const Navigation: {
4
- ({ className, icon: Icon, color, size, innerRef, }: {
5
- className?: string | undefined;
6
- icon?: ((rest: any) => JSX.Element) | undefined;
7
- color?: string[] | undefined;
8
- size?: string | undefined;
9
- innerRef: any;
10
- }): JSX.Element;
11
- propTypes: {
12
- className: string;
13
- icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
14
- color: PropTypes.Requireable<unknown>;
15
- size: PropTypes.Requireable<unknown>;
16
- innerRef: PropTypes.Requireable<any>;
17
- };
18
- };
19
- export { Navigation as DatePickerNavigation };
20
- export default Navigation;
@@ -1,49 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- export declare const Picker: {
4
- ({ className, disabled, icon, size, buttonActionType, onClick, onBlur, readOnly, tabIndex, innerRef, ...rest }: {
5
- [x: string]: any;
6
- className?: string | undefined;
7
- disabled?: boolean | undefined;
8
- icon?: JSX.Element | undefined;
9
- size?: string | undefined;
10
- buttonActionType?: string | undefined;
11
- onClick?: (() => null) | undefined;
12
- onBlur?: (() => null) | undefined;
13
- readOnly?: boolean | undefined;
14
- tabIndex?: number | undefined;
15
- innerRef: any;
16
- }): JSX.Element;
17
- propTypes: {
18
- innerRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
19
- current: PropTypes.Requireable<any>;
20
- }>>;
21
- className: PropTypes.Requireable<string>;
22
- disabled: PropTypes.Requireable<boolean>;
23
- icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
24
- size: PropTypes.Requireable<unknown>;
25
- buttonActionType: PropTypes.Requireable<"link" | "text" | "secondary" | "primary">;
26
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
27
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
28
- onBlur: PropTypes.Requireable<(...args: any[]) => any>;
29
- readOnly: PropTypes.Requireable<boolean>;
30
- tabIndex: PropTypes.Requireable<number>;
31
- };
32
- };
33
- export declare const PickerPropsTypes: {
34
- innerRef: PropTypes.Requireable<((...args: any[]) => any) | PropTypes.InferProps<{
35
- current: PropTypes.Requireable<any>;
36
- }>>;
37
- className: PropTypes.Requireable<string>;
38
- disabled: PropTypes.Requireable<boolean>;
39
- icon: PropTypes.Requireable<PropTypes.ReactElementLike>;
40
- size: PropTypes.Requireable<unknown>;
41
- buttonActionType: PropTypes.Requireable<"link" | "text" | "secondary" | "primary">;
42
- onClick: PropTypes.Requireable<(...args: any[]) => any>;
43
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
44
- onBlur: PropTypes.Requireable<(...args: any[]) => any>;
45
- readOnly: PropTypes.Requireable<boolean>;
46
- tabIndex: PropTypes.Requireable<number>;
47
- };
48
- export { Picker as DatePickerPicker };
49
- export default Picker;
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- declare const DatePickerRangeDate: ({ dateStart, dateEnd, displayFormatDay, showHeader, otherProps }: {
3
- dateStart: any;
4
- dateEnd: any;
5
- displayFormatDay?: string | undefined;
6
- showHeader?: boolean | undefined;
7
- otherProps: any;
8
- }) => JSX.Element;
9
- export { DatePickerRangeDate };
10
- export default DatePickerRangeDate;
@@ -1,24 +0,0 @@
1
- /// <reference types="react" />
2
- import PropTypes from 'prop-types';
3
- declare const DatePickerRangeHeader: {
4
- ({ onStartInputChange, onEndInputChange, onFocusChange, selectedStartDate, selectedEndDate, handleDatesChange, autoJumpOnEdit, }: {
5
- onStartInputChange?: (() => null) | undefined;
6
- onEndInputChange?: (() => null) | undefined;
7
- onFocusChange?: (() => null) | undefined;
8
- selectedStartDate: any;
9
- selectedEndDate: any;
10
- handleDatesChange: any;
11
- autoJumpOnEdit?: boolean | undefined;
12
- }): JSX.Element;
13
- propTypes: {
14
- onStartInputChange: PropTypes.Requireable<(...args: any[]) => any>;
15
- onEndInputChange: PropTypes.Requireable<(...args: any[]) => any>;
16
- onFocusChange: PropTypes.Requireable<(...args: any[]) => any>;
17
- selectedStartDate: PropTypes.Requireable<any>;
18
- selectedEndDate: PropTypes.Requireable<any>;
19
- handleDatesChange: PropTypes.Requireable<(...args: any[]) => any>;
20
- autoJumpOnEdit: PropTypes.Requireable<boolean>;
21
- };
22
- };
23
- export { DatePickerRangeHeader };
24
- export default DatePickerRangeHeader;
@@ -1,5 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const renderMonthElement: ({ month, onYearSelect }: {
3
- month: any;
4
- onYearSelect: any;
5
- }) => JSX.Element;
@@ -1,12 +0,0 @@
1
- /// <reference types="react" />
2
- declare const DatePickerSingleDate: ({ date, displayFormatDay, isDayHighlighted, enableOutsideDays, showHeader, onChange, ...rest }: {
3
- [x: string]: any;
4
- date: any;
5
- displayFormatDay?: string | undefined;
6
- isDayHighlighted?: (() => boolean) | undefined;
7
- enableOutsideDays?: boolean | undefined;
8
- showHeader?: boolean | undefined;
9
- onChange?: (() => null) | undefined;
10
- }) => JSX.Element;
11
- export { DatePickerSingleDate };
12
- export default DatePickerSingleDate;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- declare const SingleRangeDateSwitcher: ({ onStartInputChange, onEndInputChange, onSingleInputChange, onFocusChange, selectedStartDate, selectedEndDate, selectedSingleDate, isDateRange, setIsDateRange, handleDatesChange, updateKeyDate, focusedInput, }: {
3
- onStartInputChange: any;
4
- onEndInputChange: any;
5
- onSingleInputChange: any;
6
- onFocusChange: any;
7
- selectedStartDate: any;
8
- selectedEndDate: any;
9
- selectedSingleDate: any;
10
- isDateRange: any;
11
- setIsDateRange: any;
12
- handleDatesChange: any;
13
- updateKeyDate: any;
14
- focusedInput: any;
15
- }) => JSX.Element;
16
- export { SingleRangeDateSwitcher };
17
- export default SingleRangeDateSwitcher;
@@ -1,10 +0,0 @@
1
- export { default as DatePickerNavigation } from './DatePickerNavigation/DatePickerNavigation';
2
- export { default as DatePickerDay } from './DatePickerDay/DatePickerDay';
3
- export { default as DatePickerPicker } from './DatePickerPicker/DatePickerPicker';
4
- export { default as DatePickerDropdown } from './DatePickerDropdown';
5
- export { default as DatePickerSingleDate } from './DatePickerSingleDate/DatePickerSingleDate';
6
- export { default as DatePickerHeader } from './DatePickerHeader/DatePickerHeader';
7
- export { default as DatePickerRange } from './DatePickerRange/DatePickerRange';
8
- export { default as DatePickerRangeHeader } from './DatePickerRangeHeader/DatePickerRangeHeader';
9
- export { default as SingleRangeDateSwitcher } from './SingleRangeDateSwitcher/SingleRangeDateSwitcher';
10
- export { renderMonthElement } from './DatePickerRenderMonth/DatePickerRenderMonth';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,225 +0,0 @@
1
- declare const _default: {
2
- calendarLabel: string;
3
- roleDescription: string;
4
- closeDatePicker: string;
5
- focusStartDate: string;
6
- clearDate: string;
7
- clearDates: string;
8
- jumpToPrevMonth: string;
9
- jumpToNextMonth: string;
10
- keyboardShortcuts: string;
11
- showKeyboardShortcutsPanel: string;
12
- hideKeyboardShortcutsPanel: string;
13
- openThisPanel: string;
14
- enterKey: string;
15
- leftArrowRightArrow: string;
16
- upArrowDownArrow: string;
17
- pageUpPageDown: string;
18
- homeEnd: string;
19
- escape: string;
20
- questionMark: string;
21
- selectFocusedDate: string;
22
- moveFocusByOneDay: string;
23
- moveFocusByOneWeek: string;
24
- moveFocusByOneMonth: string;
25
- moveFocustoStartAndEndOfWeek: string;
26
- returnFocusToInput: string;
27
- keyboardForwardNavigationInstructions: string;
28
- keyboardBackwardNavigationInstructions: string;
29
- chooseAvailableStartDate: ({ date }: {
30
- date: any;
31
- }) => string;
32
- chooseAvailableEndDate: ({ date }: {
33
- date: any;
34
- }) => string;
35
- dateIsUnavailable: ({ date }: {
36
- date: any;
37
- }) => string;
38
- dateIsSelected: ({ date }: {
39
- date: any;
40
- }) => string;
41
- dateIsSelectedAsStartDate: ({ date }: {
42
- date: any;
43
- }) => string;
44
- dateIsSelectedAsEndDate: ({ date }: {
45
- date: any;
46
- }) => string;
47
- };
48
- export default _default;
49
- export declare const DateRangePickerPhrases: {
50
- calendarLabel: string;
51
- roleDescription: string;
52
- closeDatePicker: string;
53
- clearDates: string;
54
- focusStartDate: string;
55
- jumpToPrevMonth: string;
56
- jumpToNextMonth: string;
57
- keyboardShortcuts: string;
58
- showKeyboardShortcutsPanel: string;
59
- hideKeyboardShortcutsPanel: string;
60
- openThisPanel: string;
61
- enterKey: string;
62
- leftArrowRightArrow: string;
63
- upArrowDownArrow: string;
64
- pageUpPageDown: string;
65
- homeEnd: string;
66
- escape: string;
67
- questionMark: string;
68
- selectFocusedDate: string;
69
- moveFocusByOneDay: string;
70
- moveFocusByOneWeek: string;
71
- moveFocusByOneMonth: string;
72
- moveFocustoStartAndEndOfWeek: string;
73
- returnFocusToInput: string;
74
- keyboardForwardNavigationInstructions: string;
75
- keyboardBackwardNavigationInstructions: string;
76
- chooseAvailableStartDate: ({ date }: {
77
- date: any;
78
- }) => string;
79
- chooseAvailableEndDate: ({ date }: {
80
- date: any;
81
- }) => string;
82
- dateIsUnavailable: ({ date }: {
83
- date: any;
84
- }) => string;
85
- dateIsSelected: ({ date }: {
86
- date: any;
87
- }) => string;
88
- dateIsSelectedAsStartDate: ({ date }: {
89
- date: any;
90
- }) => string;
91
- dateIsSelectedAsEndDate: ({ date }: {
92
- date: any;
93
- }) => string;
94
- };
95
- export declare const DateRangePickerInputPhrases: {
96
- focusStartDate: string;
97
- clearDates: string;
98
- keyboardForwardNavigationInstructions: string;
99
- keyboardBackwardNavigationInstructions: string;
100
- };
101
- export declare const SingleDatePickerPhrases: {
102
- calendarLabel: string;
103
- roleDescription: string;
104
- closeDatePicker: string;
105
- clearDate: string;
106
- jumpToPrevMonth: string;
107
- jumpToNextMonth: string;
108
- keyboardShortcuts: string;
109
- showKeyboardShortcutsPanel: string;
110
- hideKeyboardShortcutsPanel: string;
111
- openThisPanel: string;
112
- enterKey: string;
113
- leftArrowRightArrow: string;
114
- upArrowDownArrow: string;
115
- pageUpPageDown: string;
116
- homeEnd: string;
117
- escape: string;
118
- questionMark: string;
119
- selectFocusedDate: string;
120
- moveFocusByOneDay: string;
121
- moveFocusByOneWeek: string;
122
- moveFocusByOneMonth: string;
123
- moveFocustoStartAndEndOfWeek: string;
124
- returnFocusToInput: string;
125
- keyboardForwardNavigationInstructions: string;
126
- keyboardBackwardNavigationInstructions: string;
127
- chooseAvailableDate: ({ date }: {
128
- date: any;
129
- }) => any;
130
- dateIsUnavailable: ({ date }: {
131
- date: any;
132
- }) => string;
133
- dateIsSelected: ({ date }: {
134
- date: any;
135
- }) => string;
136
- };
137
- export declare const SingleDatePickerInputPhrases: {
138
- clearDate: string;
139
- keyboardForwardNavigationInstructions: string;
140
- keyboardBackwardNavigationInstructions: string;
141
- };
142
- export declare const DayPickerPhrases: {
143
- calendarLabel: string;
144
- roleDescription: string;
145
- jumpToPrevMonth: string;
146
- jumpToNextMonth: string;
147
- keyboardShortcuts: string;
148
- showKeyboardShortcutsPanel: string;
149
- hideKeyboardShortcutsPanel: string;
150
- openThisPanel: string;
151
- enterKey: string;
152
- leftArrowRightArrow: string;
153
- upArrowDownArrow: string;
154
- pageUpPageDown: string;
155
- homeEnd: string;
156
- escape: string;
157
- questionMark: string;
158
- selectFocusedDate: string;
159
- moveFocusByOneDay: string;
160
- moveFocusByOneWeek: string;
161
- moveFocusByOneMonth: string;
162
- moveFocustoStartAndEndOfWeek: string;
163
- returnFocusToInput: string;
164
- chooseAvailableStartDate: ({ date }: {
165
- date: any;
166
- }) => string;
167
- chooseAvailableEndDate: ({ date }: {
168
- date: any;
169
- }) => string;
170
- chooseAvailableDate: ({ date }: {
171
- date: any;
172
- }) => any;
173
- dateIsUnavailable: ({ date }: {
174
- date: any;
175
- }) => string;
176
- dateIsSelected: ({ date }: {
177
- date: any;
178
- }) => string;
179
- dateIsSelectedAsStartDate: ({ date }: {
180
- date: any;
181
- }) => string;
182
- dateIsSelectedAsEndDate: ({ date }: {
183
- date: any;
184
- }) => string;
185
- };
186
- export declare const DayPickerKeyboardShortcutsPhrases: {
187
- keyboardShortcuts: string;
188
- showKeyboardShortcutsPanel: string;
189
- hideKeyboardShortcutsPanel: string;
190
- openThisPanel: string;
191
- enterKey: string;
192
- leftArrowRightArrow: string;
193
- upArrowDownArrow: string;
194
- pageUpPageDown: string;
195
- homeEnd: string;
196
- escape: string;
197
- questionMark: string;
198
- selectFocusedDate: string;
199
- moveFocusByOneDay: string;
200
- moveFocusByOneWeek: string;
201
- moveFocusByOneMonth: string;
202
- moveFocustoStartAndEndOfWeek: string;
203
- returnFocusToInput: string;
204
- };
205
- export declare const DayPickerNavigationPhrases: {
206
- jumpToPrevMonth: string;
207
- jumpToNextMonth: string;
208
- };
209
- export declare const CalendarDayPhrases: {
210
- chooseAvailableDate: ({ date }: {
211
- date: any;
212
- }) => any;
213
- dateIsUnavailable: ({ date }: {
214
- date: any;
215
- }) => string;
216
- dateIsSelected: ({ date }: {
217
- date: any;
218
- }) => string;
219
- dateIsSelectedAsStartDate: ({ date }: {
220
- date: any;
221
- }) => string;
222
- dateIsSelectedAsEndDate: ({ date }: {
223
- date: any;
224
- }) => string;
225
- };
package/types/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export { default } from './DSDatePicker';
2
- export * from './DSDatePicker';
3
- export { SingleDatePickerPhrases } from './defaultPhrases';