@elliemae/ds-date-picker 3.27.0-next.1 → 3.27.0-next.12

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/dist/cjs/index.js +3 -5
  2. package/dist/cjs/index.js.map +2 -2
  3. package/dist/esm/index.js +2 -4
  4. package/dist/esm/index.js.map +2 -2
  5. package/dist/types/index.d.ts +2 -3
  6. package/package.json +6 -79
  7. package/dist/cjs/DSDatePicker.js +0 -240
  8. package/dist/cjs/DSDatePicker.js.map +0 -7
  9. package/dist/cjs/components/DSDatePickerImpl.js +0 -293
  10. package/dist/cjs/components/DSDatePickerImpl.js.map +0 -7
  11. package/dist/cjs/components/DatePickerController/DatePickerController.js +0 -338
  12. package/dist/cjs/components/DatePickerController/DatePickerController.js.map +0 -7
  13. package/dist/cjs/components/DatePickerDay/DatePickerDay.js +0 -44
  14. package/dist/cjs/components/DatePickerDay/DatePickerDay.js.map +0 -7
  15. package/dist/cjs/components/DatePickerDropdown.js +0 -90
  16. package/dist/cjs/components/DatePickerDropdown.js.map +0 -7
  17. package/dist/cjs/components/DatePickerHeader/DatePickerHeader.js +0 -79
  18. package/dist/cjs/components/DatePickerHeader/DatePickerHeader.js.map +0 -7
  19. package/dist/cjs/components/DatePickerNavigation/DatePickerNavigation.js +0 -56
  20. package/dist/cjs/components/DatePickerNavigation/DatePickerNavigation.js.map +0 -7
  21. package/dist/cjs/components/DatePickerPicker/DatePickerPicker.js +0 -89
  22. package/dist/cjs/components/DatePickerPicker/DatePickerPicker.js.map +0 -7
  23. package/dist/cjs/components/DatePickerRange/DatePickerRange.js +0 -110
  24. package/dist/cjs/components/DatePickerRange/DatePickerRange.js.map +0 -7
  25. package/dist/cjs/components/DatePickerRangeHeader/DatePickerRangeHeader.js +0 -149
  26. package/dist/cjs/components/DatePickerRangeHeader/DatePickerRangeHeader.js.map +0 -7
  27. package/dist/cjs/components/DatePickerRenderMonth/DatePickerRenderMonth.js +0 -61
  28. package/dist/cjs/components/DatePickerRenderMonth/DatePickerRenderMonth.js.map +0 -7
  29. package/dist/cjs/components/DatePickerSingleDate/DatePickerSingleDate.js +0 -96
  30. package/dist/cjs/components/DatePickerSingleDate/DatePickerSingleDate.js.map +0 -7
  31. package/dist/cjs/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js +0 -91
  32. package/dist/cjs/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js.map +0 -7
  33. package/dist/cjs/components/index.js +0 -54
  34. package/dist/cjs/components/index.js.map +0 -7
  35. package/dist/cjs/defaultPhrases.js +0 -247
  36. package/dist/cjs/defaultPhrases.js.map +0 -7
  37. package/dist/esm/DSDatePicker.js +0 -221
  38. package/dist/esm/DSDatePicker.js.map +0 -7
  39. package/dist/esm/components/DSDatePickerImpl.js +0 -263
  40. package/dist/esm/components/DSDatePickerImpl.js.map +0 -7
  41. package/dist/esm/components/DatePickerController/DatePickerController.js +0 -308
  42. package/dist/esm/components/DatePickerController/DatePickerController.js.map +0 -7
  43. package/dist/esm/components/DatePickerDay/DatePickerDay.js +0 -14
  44. package/dist/esm/components/DatePickerDay/DatePickerDay.js.map +0 -7
  45. package/dist/esm/components/DatePickerDropdown.js +0 -60
  46. package/dist/esm/components/DatePickerDropdown.js.map +0 -7
  47. package/dist/esm/components/DatePickerHeader/DatePickerHeader.js +0 -49
  48. package/dist/esm/components/DatePickerHeader/DatePickerHeader.js.map +0 -7
  49. package/dist/esm/components/DatePickerNavigation/DatePickerNavigation.js +0 -26
  50. package/dist/esm/components/DatePickerNavigation/DatePickerNavigation.js.map +0 -7
  51. package/dist/esm/components/DatePickerPicker/DatePickerPicker.js +0 -59
  52. package/dist/esm/components/DatePickerPicker/DatePickerPicker.js.map +0 -7
  53. package/dist/esm/components/DatePickerRange/DatePickerRange.js +0 -80
  54. package/dist/esm/components/DatePickerRange/DatePickerRange.js.map +0 -7
  55. package/dist/esm/components/DatePickerRangeHeader/DatePickerRangeHeader.js +0 -119
  56. package/dist/esm/components/DatePickerRangeHeader/DatePickerRangeHeader.js.map +0 -7
  57. package/dist/esm/components/DatePickerRenderMonth/DatePickerRenderMonth.js +0 -31
  58. package/dist/esm/components/DatePickerRenderMonth/DatePickerRenderMonth.js.map +0 -7
  59. package/dist/esm/components/DatePickerSingleDate/DatePickerSingleDate.js +0 -66
  60. package/dist/esm/components/DatePickerSingleDate/DatePickerSingleDate.js.map +0 -7
  61. package/dist/esm/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js +0 -61
  62. package/dist/esm/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.js.map +0 -7
  63. package/dist/esm/components/index.js +0 -24
  64. package/dist/esm/components/index.js.map +0 -7
  65. package/dist/esm/defaultPhrases.js +0 -217
  66. package/dist/esm/defaultPhrases.js.map +0 -7
  67. package/dist/types/components/DSDatePickerImpl.d.ts +0 -21
  68. package/dist/types/components/DatePickerController/DatePickerController.d.ts +0 -80
  69. package/dist/types/components/DatePickerDay/DatePickerDay.d.ts +0 -13
  70. package/dist/types/components/DatePickerDropdown.d.ts +0 -27
  71. package/dist/types/components/DatePickerHeader/DatePickerHeader.d.ts +0 -15
  72. package/dist/types/components/DatePickerNavigation/DatePickerNavigation.d.ts +0 -19
  73. package/dist/types/components/DatePickerPicker/DatePickerPicker.d.ts +0 -43
  74. package/dist/types/components/DatePickerRange/DatePickerRange.d.ts +0 -9
  75. package/dist/types/components/DatePickerRangeHeader/DatePickerRangeHeader.d.ts +0 -23
  76. package/dist/types/components/DatePickerRangeHeader/tests/DatePickerRangeHeader.test.d.ts +0 -1
  77. package/dist/types/components/DatePickerRenderMonth/DatePickerRenderMonth.d.ts +0 -4
  78. package/dist/types/components/DatePickerSingleDate/DatePickerSingleDate.d.ts +0 -11
  79. package/dist/types/components/SingleRangeDateSwitcher/SingleRangeDateSwitcher.d.ts +0 -16
  80. package/dist/types/components/index.d.ts +0 -10
  81. package/dist/types/components/tests/DatePickerHeader.test.d.ts +0 -1
  82. package/dist/types/components/tests/DatePickerRange.test.d.ts +0 -1
  83. package/dist/types/components/tests/DatePickerRangeHeader.test.d.ts +0 -1
  84. package/dist/types/components/tests/DatePickerSelectedDate.test.d.ts +0 -1
  85. package/dist/types/components/tests/DatePickerSingleDate.test.d.ts +0 -1
  86. package/dist/types/components/tests/SingleRangeDateSwitcher.test.d.ts +0 -1
  87. package/dist/types/defaultPhrases.d.ts +0 -225
@@ -1,247 +0,0 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __export = (target, all) => {
9
- for (var name in all)
10
- __defProp(target, name, { get: all[name], enumerable: true });
11
- };
12
- var __copyProps = (to, from, except, desc) => {
13
- if (from && typeof from === "object" || typeof from === "function") {
14
- for (let key of __getOwnPropNames(from))
15
- if (!__hasOwnProp.call(to, key) && key !== except)
16
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
- }
18
- return to;
19
- };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var defaultPhrases_exports = {};
30
- __export(defaultPhrases_exports, {
31
- CalendarDayPhrases: () => CalendarDayPhrases,
32
- DateRangePickerInputPhrases: () => DateRangePickerInputPhrases,
33
- DateRangePickerPhrases: () => DateRangePickerPhrases,
34
- DayPickerKeyboardShortcutsPhrases: () => DayPickerKeyboardShortcutsPhrases,
35
- DayPickerNavigationPhrases: () => DayPickerNavigationPhrases,
36
- DayPickerPhrases: () => DayPickerPhrases,
37
- SingleDatePickerInputPhrases: () => SingleDatePickerInputPhrases,
38
- SingleDatePickerPhrases: () => SingleDatePickerPhrases,
39
- default: () => defaultPhrases_default
40
- });
41
- module.exports = __toCommonJS(defaultPhrases_exports);
42
- var React = __toESM(require("react"));
43
- const calendarLabel = "Calendar";
44
- const roleDescription = "datepicker";
45
- const closeDatePicker = "Close";
46
- const focusStartDate = "Interact with the calendar and add the check-in date for your trip.";
47
- const clearDate = "Clear Date";
48
- const clearDates = "Clear Dates";
49
- const jumpToPrevMonth = "Move backward to switch to the previous month.";
50
- const jumpToNextMonth = "Move forward to switch to the next month.";
51
- const keyboardShortcuts = "Keyboard Shortcuts";
52
- const showKeyboardShortcutsPanel = "Open the keyboard shortcuts panel.";
53
- const hideKeyboardShortcutsPanel = "Close the shortcuts panel.";
54
- const openThisPanel = "Open this panel.";
55
- const enterKey = "Enter key";
56
- const leftArrowRightArrow = "Right and left arrow keys";
57
- const upArrowDownArrow = "up and down arrow keys";
58
- const pageUpPageDown = "page up and page down keys";
59
- const homeEnd = "Home and end keys";
60
- const escape = "Escape key";
61
- const questionMark = "Question mark";
62
- const selectFocusedDate = "Select the date in focus.";
63
- const moveFocusByOneDay = "Move backward (left) and forward (right) by one day.";
64
- const moveFocusByOneWeek = "Move backward (up) and forward (down) by one week.";
65
- const moveFocusByOneMonth = "Switch months.";
66
- const moveFocustoStartAndEndOfWeek = "Go to the first or last day of a week.";
67
- const returnFocusToInput = "Return to the date input field.";
68
- const keyboardForwardNavigationInstructions = "Navigate forward to interact with the calendar and select a date. Press the question mark key to get the keyboard shortcuts for changing dates.";
69
- const keyboardBackwardNavigationInstructions = "Navigate backward to interact with the calendar and select a date. Press the question mark key to get the keyboard shortcuts for changing dates.";
70
- const chooseAvailableStartDate = ({ date }) => `Choose ${date} as your check-in date. It\u2019s available.`;
71
- const chooseAvailableEndDate = ({ date }) => `Choose ${date} as your check-out date. It\u2019s available.`;
72
- const chooseAvailableDate = ({ date }) => date;
73
- const dateIsUnavailable = ({ date }) => `Not available. ${date}`;
74
- const dateIsSelected = ({ date }) => `Selected. ${date}`;
75
- const dateIsSelectedAsStartDate = ({ date }) => `Selected as start date. ${date}`;
76
- const dateIsSelectedAsEndDate = ({ date }) => `Selected as end date. ${date}`;
77
- var defaultPhrases_default = {
78
- calendarLabel,
79
- roleDescription,
80
- closeDatePicker,
81
- focusStartDate,
82
- clearDate,
83
- clearDates,
84
- jumpToPrevMonth,
85
- jumpToNextMonth,
86
- keyboardShortcuts,
87
- showKeyboardShortcutsPanel,
88
- hideKeyboardShortcutsPanel,
89
- openThisPanel,
90
- enterKey,
91
- leftArrowRightArrow,
92
- upArrowDownArrow,
93
- pageUpPageDown,
94
- homeEnd,
95
- escape,
96
- questionMark,
97
- selectFocusedDate,
98
- moveFocusByOneDay,
99
- moveFocusByOneWeek,
100
- moveFocusByOneMonth,
101
- moveFocustoStartAndEndOfWeek,
102
- returnFocusToInput,
103
- keyboardForwardNavigationInstructions,
104
- keyboardBackwardNavigationInstructions,
105
- chooseAvailableStartDate,
106
- chooseAvailableEndDate,
107
- dateIsUnavailable,
108
- dateIsSelected,
109
- dateIsSelectedAsStartDate,
110
- dateIsSelectedAsEndDate
111
- };
112
- const DateRangePickerPhrases = {
113
- calendarLabel,
114
- roleDescription,
115
- closeDatePicker,
116
- clearDates,
117
- focusStartDate,
118
- jumpToPrevMonth,
119
- jumpToNextMonth,
120
- keyboardShortcuts,
121
- showKeyboardShortcutsPanel,
122
- hideKeyboardShortcutsPanel,
123
- openThisPanel,
124
- enterKey,
125
- leftArrowRightArrow,
126
- upArrowDownArrow,
127
- pageUpPageDown,
128
- homeEnd,
129
- escape,
130
- questionMark,
131
- selectFocusedDate,
132
- moveFocusByOneDay,
133
- moveFocusByOneWeek,
134
- moveFocusByOneMonth,
135
- moveFocustoStartAndEndOfWeek,
136
- returnFocusToInput,
137
- keyboardForwardNavigationInstructions,
138
- keyboardBackwardNavigationInstructions,
139
- chooseAvailableStartDate,
140
- chooseAvailableEndDate,
141
- dateIsUnavailable,
142
- dateIsSelected,
143
- dateIsSelectedAsStartDate,
144
- dateIsSelectedAsEndDate
145
- };
146
- const DateRangePickerInputPhrases = {
147
- focusStartDate,
148
- clearDates,
149
- keyboardForwardNavigationInstructions,
150
- keyboardBackwardNavigationInstructions
151
- };
152
- const SingleDatePickerPhrases = {
153
- calendarLabel,
154
- roleDescription,
155
- closeDatePicker,
156
- clearDate,
157
- jumpToPrevMonth,
158
- jumpToNextMonth,
159
- keyboardShortcuts,
160
- showKeyboardShortcutsPanel,
161
- hideKeyboardShortcutsPanel,
162
- openThisPanel,
163
- enterKey,
164
- leftArrowRightArrow,
165
- upArrowDownArrow,
166
- pageUpPageDown,
167
- homeEnd,
168
- escape,
169
- questionMark,
170
- selectFocusedDate,
171
- moveFocusByOneDay,
172
- moveFocusByOneWeek,
173
- moveFocusByOneMonth,
174
- moveFocustoStartAndEndOfWeek,
175
- returnFocusToInput,
176
- keyboardForwardNavigationInstructions,
177
- keyboardBackwardNavigationInstructions,
178
- chooseAvailableDate,
179
- dateIsUnavailable,
180
- dateIsSelected
181
- };
182
- const SingleDatePickerInputPhrases = {
183
- clearDate,
184
- keyboardForwardNavigationInstructions,
185
- keyboardBackwardNavigationInstructions
186
- };
187
- const DayPickerPhrases = {
188
- calendarLabel,
189
- roleDescription,
190
- jumpToPrevMonth,
191
- jumpToNextMonth,
192
- keyboardShortcuts,
193
- showKeyboardShortcutsPanel,
194
- hideKeyboardShortcutsPanel,
195
- openThisPanel,
196
- enterKey,
197
- leftArrowRightArrow,
198
- upArrowDownArrow,
199
- pageUpPageDown,
200
- homeEnd,
201
- escape,
202
- questionMark,
203
- selectFocusedDate,
204
- moveFocusByOneDay,
205
- moveFocusByOneWeek,
206
- moveFocusByOneMonth,
207
- moveFocustoStartAndEndOfWeek,
208
- returnFocusToInput,
209
- chooseAvailableStartDate,
210
- chooseAvailableEndDate,
211
- chooseAvailableDate,
212
- dateIsUnavailable,
213
- dateIsSelected,
214
- dateIsSelectedAsStartDate,
215
- dateIsSelectedAsEndDate
216
- };
217
- const DayPickerKeyboardShortcutsPhrases = {
218
- keyboardShortcuts,
219
- showKeyboardShortcutsPanel,
220
- hideKeyboardShortcutsPanel,
221
- openThisPanel,
222
- enterKey,
223
- leftArrowRightArrow,
224
- upArrowDownArrow,
225
- pageUpPageDown,
226
- homeEnd,
227
- escape,
228
- questionMark,
229
- selectFocusedDate,
230
- moveFocusByOneDay,
231
- moveFocusByOneWeek,
232
- moveFocusByOneMonth,
233
- moveFocustoStartAndEndOfWeek,
234
- returnFocusToInput
235
- };
236
- const DayPickerNavigationPhrases = {
237
- jumpToPrevMonth,
238
- jumpToNextMonth
239
- };
240
- const CalendarDayPhrases = {
241
- chooseAvailableDate,
242
- dateIsUnavailable,
243
- dateIsSelected,
244
- dateIsSelectedAsStartDate,
245
- dateIsSelectedAsEndDate
246
- };
247
- //# sourceMappingURL=defaultPhrases.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../src/defaultPhrases.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["const calendarLabel = 'Calendar';\nconst roleDescription = 'datepicker';\nconst closeDatePicker = 'Close';\nconst focusStartDate = 'Interact with the calendar and add the check-in date for your trip.';\nconst clearDate = 'Clear Date';\nconst clearDates = 'Clear Dates';\nconst jumpToPrevMonth = 'Move backward to switch to the previous month.';\nconst jumpToNextMonth = 'Move forward to switch to the next month.';\nconst keyboardShortcuts = 'Keyboard Shortcuts';\nconst showKeyboardShortcutsPanel = 'Open the keyboard shortcuts panel.';\nconst hideKeyboardShortcutsPanel = 'Close the shortcuts panel.';\nconst openThisPanel = 'Open this panel.';\nconst enterKey = 'Enter key';\nconst leftArrowRightArrow = 'Right and left arrow keys';\nconst upArrowDownArrow = 'up and down arrow keys';\nconst pageUpPageDown = 'page up and page down keys';\nconst homeEnd = 'Home and end keys';\nconst escape = 'Escape key';\nconst questionMark = 'Question mark';\nconst selectFocusedDate = 'Select the date in focus.';\nconst moveFocusByOneDay = 'Move backward (left) and forward (right) by one day.';\nconst moveFocusByOneWeek = 'Move backward (up) and forward (down) by one week.';\nconst moveFocusByOneMonth = 'Switch months.';\nconst moveFocustoStartAndEndOfWeek = 'Go to the first or last day of a week.';\nconst returnFocusToInput = 'Return to the date input field.';\nconst keyboardForwardNavigationInstructions =\n 'Navigate forward to interact with the calendar and select a date. Press the question mark key to get the keyboard shortcuts for changing dates.';\nconst keyboardBackwardNavigationInstructions =\n 'Navigate backward to interact with the calendar and select a date. Press the question mark key to get the keyboard shortcuts for changing dates.';\n\nconst chooseAvailableStartDate = ({ date }) => `Choose ${date} as your check-in date. It\u2019s available.`;\nconst chooseAvailableEndDate = ({ date }) => `Choose ${date} as your check-out date. It\u2019s available.`;\nconst chooseAvailableDate = ({ date }) => date;\nconst dateIsUnavailable = ({ date }) => `Not available. ${date}`;\nconst dateIsSelected = ({ date }) => `Selected. ${date}`;\nconst dateIsSelectedAsStartDate = ({ date }) => `Selected as start date. ${date}`;\nconst dateIsSelectedAsEndDate = ({ date }) => `Selected as end date. ${date}`;\n\nexport default {\n calendarLabel,\n roleDescription,\n closeDatePicker,\n focusStartDate,\n clearDate,\n clearDates,\n jumpToPrevMonth,\n jumpToNextMonth,\n keyboardShortcuts,\n showKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel,\n openThisPanel,\n enterKey,\n leftArrowRightArrow,\n upArrowDownArrow,\n pageUpPageDown,\n homeEnd,\n escape,\n questionMark,\n selectFocusedDate,\n moveFocusByOneDay,\n moveFocusByOneWeek,\n moveFocusByOneMonth,\n moveFocustoStartAndEndOfWeek,\n returnFocusToInput,\n keyboardForwardNavigationInstructions,\n keyboardBackwardNavigationInstructions,\n\n chooseAvailableStartDate,\n chooseAvailableEndDate,\n dateIsUnavailable,\n dateIsSelected,\n dateIsSelectedAsStartDate,\n dateIsSelectedAsEndDate,\n};\n\nexport const DateRangePickerPhrases = {\n calendarLabel,\n roleDescription,\n closeDatePicker,\n clearDates,\n focusStartDate,\n jumpToPrevMonth,\n jumpToNextMonth,\n keyboardShortcuts,\n showKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel,\n openThisPanel,\n enterKey,\n leftArrowRightArrow,\n upArrowDownArrow,\n pageUpPageDown,\n homeEnd,\n escape,\n questionMark,\n selectFocusedDate,\n moveFocusByOneDay,\n moveFocusByOneWeek,\n moveFocusByOneMonth,\n moveFocustoStartAndEndOfWeek,\n returnFocusToInput,\n keyboardForwardNavigationInstructions,\n keyboardBackwardNavigationInstructions,\n chooseAvailableStartDate,\n chooseAvailableEndDate,\n dateIsUnavailable,\n dateIsSelected,\n dateIsSelectedAsStartDate,\n dateIsSelectedAsEndDate,\n};\n\nexport const DateRangePickerInputPhrases = {\n focusStartDate,\n clearDates,\n keyboardForwardNavigationInstructions,\n keyboardBackwardNavigationInstructions,\n};\n\nexport const SingleDatePickerPhrases = {\n calendarLabel,\n roleDescription,\n closeDatePicker,\n clearDate,\n jumpToPrevMonth,\n jumpToNextMonth,\n keyboardShortcuts,\n showKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel,\n openThisPanel,\n enterKey,\n leftArrowRightArrow,\n upArrowDownArrow,\n pageUpPageDown,\n homeEnd,\n escape,\n questionMark,\n selectFocusedDate,\n moveFocusByOneDay,\n moveFocusByOneWeek,\n moveFocusByOneMonth,\n moveFocustoStartAndEndOfWeek,\n returnFocusToInput,\n keyboardForwardNavigationInstructions,\n keyboardBackwardNavigationInstructions,\n chooseAvailableDate,\n dateIsUnavailable,\n dateIsSelected,\n};\n\nexport const SingleDatePickerInputPhrases = {\n clearDate,\n keyboardForwardNavigationInstructions,\n keyboardBackwardNavigationInstructions,\n};\n\nexport const DayPickerPhrases = {\n calendarLabel,\n roleDescription,\n jumpToPrevMonth,\n jumpToNextMonth,\n keyboardShortcuts,\n showKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel,\n openThisPanel,\n enterKey,\n leftArrowRightArrow,\n upArrowDownArrow,\n pageUpPageDown,\n homeEnd,\n escape,\n questionMark,\n selectFocusedDate,\n moveFocusByOneDay,\n moveFocusByOneWeek,\n moveFocusByOneMonth,\n moveFocustoStartAndEndOfWeek,\n returnFocusToInput,\n chooseAvailableStartDate,\n chooseAvailableEndDate,\n chooseAvailableDate,\n dateIsUnavailable,\n dateIsSelected,\n dateIsSelectedAsStartDate,\n dateIsSelectedAsEndDate,\n};\n\nexport const DayPickerKeyboardShortcutsPhrases = {\n keyboardShortcuts,\n showKeyboardShortcutsPanel,\n hideKeyboardShortcutsPanel,\n openThisPanel,\n enterKey,\n leftArrowRightArrow,\n upArrowDownArrow,\n pageUpPageDown,\n homeEnd,\n escape,\n questionMark,\n selectFocusedDate,\n moveFocusByOneDay,\n moveFocusByOneWeek,\n moveFocusByOneMonth,\n moveFocustoStartAndEndOfWeek,\n returnFocusToInput,\n};\n\nexport const DayPickerNavigationPhrases = {\n jumpToPrevMonth,\n jumpToNextMonth,\n};\n\nexport const CalendarDayPhrases = {\n chooseAvailableDate,\n dateIsUnavailable,\n dateIsSelected,\n dateIsSelectedAsStartDate,\n dateIsSelectedAsEndDate,\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,MAAM,gBAAgB;AACtB,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AACxB,MAAM,iBAAiB;AACvB,MAAM,YAAY;AAClB,MAAM,aAAa;AACnB,MAAM,kBAAkB;AACxB,MAAM,kBAAkB;AACxB,MAAM,oBAAoB;AAC1B,MAAM,6BAA6B;AACnC,MAAM,6BAA6B;AACnC,MAAM,gBAAgB;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,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,8BAA8B;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,0BAA0B;AAAA,EACrC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,+BAA+B;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,mBAAmB;AAAA,EAC9B;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,oCAAoC;AAAA,EAC/C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;AAEO,MAAM,6BAA6B;AAAA,EACxC;AAAA,EACA;AACF;AAEO,MAAM,qBAAqB;AAAA,EAChC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;",
6
- "names": []
7
- }
@@ -1,221 +0,0 @@
1
- import * as React from "react";
2
- import { jsx } from "react/jsx-runtime";
3
- import { useDeprecateComponent } from "@elliemae/ds-utilities";
4
- import { PropTypes, describe } from "@elliemae/ds-props-helpers";
5
- import "react-dates/initialize.js";
6
- import { convertPropToCssClassName } from "@elliemae/ds-classnames";
7
- import moment from "moment";
8
- import { SingleDatePickerPhrases } from "./defaultPhrases.js";
9
- import {
10
- DatePickerNavigation,
11
- DatePickerDay,
12
- DatePickerPicker,
13
- DatePickerDropdown,
14
- DatePickerSingleDate,
15
- DatePickerHeader,
16
- DatePickerRange,
17
- DatePickerRangeHeader,
18
- SingleRangeDateSwitcher,
19
- renderMonthElement
20
- } from "./components/index.js";
21
- import { DSDatePickerImpl } from "./components/DSDatePickerImpl.js";
22
- import { DSDatePickerController } from "./components/DatePickerController/DatePickerController.js";
23
- import { PickerPropsTypes, Picker } from "./components/DatePickerPicker/DatePickerPicker.js";
24
- const DSDatePicker = ({
25
- containerProps = {},
26
- id = "",
27
- appendToBody = true,
28
- className = "",
29
- date,
30
- value,
31
- placeholder = "",
32
- disabled = false,
33
- required = false,
34
- readOnly = false,
35
- hasError = false,
36
- screenReaderInputMessage = "Select date",
37
- enableOutsideDays = true,
38
- initialVisibleMonth = moment(),
39
- firstDayOfWeek = 0,
40
- keepOpenOnDateSelect = false,
41
- hideKeyboardShortcutsPanel = true,
42
- onChange = () => null,
43
- onDateChange = void 0,
44
- onPrevMonthClick = () => null,
45
- onNextMonthClick = () => null,
46
- onClose = () => null,
47
- onFocus = () => null,
48
- onBlur = () => null,
49
- phrases = SingleDatePickerPhrases,
50
- displayFormat = "L",
51
- displayFormatDay = "D",
52
- transitionDuration = 0,
53
- verticalSpacing = 0,
54
- isDayBlocked = () => false,
55
- isOutsideRange = () => false,
56
- isDayHighlighted = () => false,
57
- numberOfMonths = 1,
58
- openDirection = "down",
59
- tabIndex = "",
60
- zIndex = 1,
61
- pickerProps = {},
62
- calendarProps = {},
63
- autoClear = false,
64
- focusCurrentDate = false
65
- }) => {
66
- useDeprecateComponent({ componentName: "ds-date-picker", version: "3.x Date: 2023 Q1" });
67
- const { cssClassName } = convertPropToCssClassName("datepicker", className, {
68
- hasError,
69
- readOnly,
70
- disabled,
71
- id
72
- });
73
- const safeDate = date || value;
74
- return /* @__PURE__ */ jsx("div", { className: cssClassName, ...containerProps, style: { minWidth: "140px" }, children: /* @__PURE__ */ jsx(
75
- DSDatePickerImpl,
76
- {
77
- appendToBody,
78
- autoClear,
79
- date: safeDate,
80
- disabled,
81
- displayFormat,
82
- displayFormatDay,
83
- enableOutsideDays,
84
- firstDayOfWeek,
85
- hideKeyboardShortcutsPanel,
86
- initialVisibleMonth: () => initialVisibleMonth ? moment(initialVisibleMonth) : moment(safeDate),
87
- isDayBlocked,
88
- isDayHighlighted,
89
- isOutsideRange: isOutsideRange === true || isOutsideRange === false ? () => isOutsideRange : isOutsideRange,
90
- keepOpenOnDateSelect,
91
- numberOfMonths,
92
- onBlur,
93
- onClose,
94
- onChange,
95
- onDateChange: (...args) => {
96
- if (onDateChange)
97
- onDateChange(...args);
98
- },
99
- onFocus,
100
- onNextMonthClick,
101
- onPrevMonthClick,
102
- openDirection,
103
- phrases,
104
- placeholder,
105
- readOnly,
106
- required,
107
- screenReaderInputMessage,
108
- transitionDuration,
109
- value: safeDate,
110
- verticalSpacing,
111
- tabIndex,
112
- zIndex,
113
- pickerProps,
114
- calendarProps,
115
- focusCurrentDate
116
- }
117
- ) });
118
- };
119
- const datePickerProps = {
120
- containerProps: PropTypes.shape({}).description("Set of Properties attached to the main container"),
121
- id: PropTypes.string.description("components id"),
122
- appendToBody: PropTypes.bool.description("append component to body or not").defaultValue(true),
123
- className: PropTypes.string.description("html class attribute"),
124
- date: PropTypes.instanceOf(Date, moment).description("selected date").defaultValue(void 0),
125
- value: PropTypes.instanceOf(Date, moment).description("value"),
126
- placeholder: PropTypes.string.description("input placeholder value"),
127
- autoClear: PropTypes.bool.description("autoclears the input onblur if the date is not completely set").defaultValue(false),
128
- disabled: PropTypes.bool.description("disable component or not").defaultValue(false),
129
- required: PropTypes.bool.description("value is required or not").defaultValue(false),
130
- readOnly: PropTypes.bool.description("is read only or not").defaultValue(false),
131
- hasError: PropTypes.bool.description("set error state").defaultValue(false),
132
- screenReaderInputMessage: PropTypes.string.description("message to anounce by screen reader").defaultValue("select date"),
133
- enableOutsideDays: PropTypes.bool.description("enable days oustide month or not").defaultValue(true),
134
- initialVisibleMonth: PropTypes.instanceOf(Date, moment).description("initial month to display"),
135
- firstDayOfWeek: PropTypes.number.description("first day of week").defaultValue(0),
136
- keepOpenOnDateSelect: PropTypes.bool.description("keep picker open when a date is selected").defaultValue(false),
137
- hideKeyboardShortcutsPanel: PropTypes.bool.description("hide keyabord shortcut panel or not").defaultValue(true),
138
- onChange: PropTypes.func.description(
139
- `
140
- function executed when input changes. This could trigger with invalid dates. It returns a string and a moment
141
- if the date is valid.
142
- `
143
- ),
144
- onDateChange: PropTypes.func.description(
145
- "function executed when date changes. This doesnt trigger with invalid dates. It returns a moment object"
146
- ),
147
- onPrevMonthClick: PropTypes.func.description("function executed when clicking on prev month button"),
148
- onNextMonthClick: PropTypes.func.description("function executed when clicking on next month button"),
149
- onBlur: PropTypes.func.description("function executed when component loses focus"),
150
- onClose: PropTypes.func.description("function executed when component closes"),
151
- onFocus: PropTypes.func.description("function executed when component gains focus"),
152
- phrases: PropTypes.shape({
153
- calendarLabel: PropTypes.string,
154
- closeDatePicker: PropTypes.string,
155
- clearDates: PropTypes.string,
156
- focusStartDate: PropTypes.string,
157
- jumpToPrevMonth: PropTypes.string,
158
- jumpToNextMonth: PropTypes.string,
159
- keyboardShortcuts: PropTypes.string,
160
- showKeyboardShortcutsPanel: PropTypes.string,
161
- hideKeyboardShortcutsPanel: PropTypes.string,
162
- openThisPanel: PropTypes.string,
163
- enterKey: PropTypes.string,
164
- leftArrowRightArrow: PropTypes.string,
165
- upArrowDownArrow: PropTypes.string,
166
- pageUpPageDown: PropTypes.string,
167
- homeEnd: PropTypes.string,
168
- escape: PropTypes.string,
169
- questionMark: PropTypes.string,
170
- selectFocusedDate: PropTypes.string,
171
- moveFocusByOneDay: PropTypes.string,
172
- moveFocusByOneWeek: PropTypes.string,
173
- moveFocusByOneMonth: PropTypes.string,
174
- moveFocustoStartAndEndOfWeek: PropTypes.string,
175
- returnFocusToInput: PropTypes.string,
176
- keyboardNavigationInstructions: PropTypes.string,
177
- chooseAvailableStartDate: PropTypes.func,
178
- chooseAvailableEndDate: PropTypes.func,
179
- dateIsUnavailable: PropTypes.func,
180
- dateIsSelected: PropTypes.func
181
- }).description("react-dates phrases").defaultValue(SingleDatePickerPhrases),
182
- displayFormat: PropTypes.string.description("display format").defaultValue("L"),
183
- displayFormatDay: PropTypes.string.description("display format day").defaultValue("D"),
184
- transitionDuration: PropTypes.number.description("transition duration").defaultValue(0),
185
- verticalSpacing: PropTypes.number.description("vertical spacing"),
186
- isDayBlocked: PropTypes.func.description("function that returns each day and disables desired dates"),
187
- isOutsideRange: PropTypes.func.description("function that returns each day and disables outisde range dates"),
188
- isDayHighlighted: PropTypes.func.description("function that returns each day and higlights desired dates"),
189
- numberOfMonths: PropTypes.number.description("amount of months"),
190
- openDirection: PropTypes.string.description("open direction of the popup").defaultValue("down"),
191
- tabIndex: PropTypes.number.description("overrides tab index of the element"),
192
- zIndex: PropTypes.string.description("overrides z-index of the element"),
193
- pickerProps: PropTypes.shape(PickerPropsTypes).description("props to be passed to the picker container"),
194
- calendarProps: PropTypes.shape({ tabIndex: PropTypes.number }).description(
195
- "props to be passes to the calendar container"
196
- ),
197
- focusCurrentDate: PropTypes.bool.description("Wheter to focus current date on calendar").defaultValue(false)
198
- };
199
- DSDatePicker.propTypes = datePickerProps;
200
- DSDatePicker.displayName = "DSDatePicker";
201
- const DatePickerWithSchema = describe(DSDatePicker);
202
- DatePickerWithSchema.propTypes = datePickerProps;
203
- var DSDatePicker_default = DSDatePicker;
204
- export {
205
- DSDatePicker,
206
- DSDatePickerController,
207
- DatePickerDay,
208
- DatePickerDropdown,
209
- DatePickerHeader,
210
- DatePickerNavigation,
211
- DatePickerPicker,
212
- DatePickerRange,
213
- DatePickerRangeHeader,
214
- DatePickerSingleDate,
215
- DatePickerWithSchema,
216
- Picker,
217
- SingleRangeDateSwitcher,
218
- DSDatePicker_default as default,
219
- renderMonthElement
220
- };
221
- //# sourceMappingURL=DSDatePicker.js.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSDatePicker.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\nimport React from 'react';\nimport { useDeprecateComponent } from '@elliemae/ds-utilities';\nimport { PropTypes, describe } from '@elliemae/ds-props-helpers';\nimport 'react-dates/initialize.js';\nimport { convertPropToCssClassName } from '@elliemae/ds-classnames';\nimport moment from 'moment';\nimport { SingleDatePickerPhrases } from './defaultPhrases.js';\nimport {\n DatePickerNavigation,\n DatePickerDay,\n DatePickerPicker,\n DatePickerDropdown,\n DatePickerSingleDate,\n DatePickerHeader,\n DatePickerRange,\n DatePickerRangeHeader,\n SingleRangeDateSwitcher,\n renderMonthElement,\n} from './components/index.js';\nimport { DSDatePickerImpl } from './components/DSDatePickerImpl.js';\nimport { DSDatePickerController } from './components/DatePickerController/DatePickerController.js';\nimport { PickerPropsTypes, Picker } from './components/DatePickerPicker/DatePickerPicker.js';\n\ninterface DSDatePickerPropsType {\n containerProps: {};\n id: string;\n appendToBody: boolean;\n className: string;\n date: any;\n value: any;\n placeholder: string;\n disabled: boolean;\n required: boolean;\n readOnly: boolean;\n hasError: boolean;\n screenReaderInputMessage: boolean;\n enableOutsideDays: boolean;\n initialVisibleMonth: moment.Moment;\n firstDayOfWeek: number;\n keepOpenOnDateSelect: boolean;\n hideKeyboardShortcutsPanel: boolean;\n onChange: () => void;\n onDateChange: undefined | (() => void);\n onPrevMonthClick: () => void;\n onNextMonthClick: () => void;\n onClose: () => void;\n onFocus: () => void;\n onBlur: () => void;\n phrases: SingleDatePickerPhrases;\n displayFormat: boolean;\n displayFormatDay: boolean;\n transitionDuration: number;\n verticalSpacing: number;\n isDayBlocked: () => boolean;\n isOutsideRange: () => boolean;\n isDayHighlighted: () => boolean;\n numberOfMonths: number;\n openDirection: boolean;\n tabIndex: boolean;\n zIndex: boolean;\n pickerProps: {};\n calendarProps: {};\n autoClear: boolean;\n focusCurrentDate: boolean;\n}\ntype DSDatePickerType = React.ComponentType<DSDatePickerPropsType>;\n\nconst DSDatePicker: DSDatePickerType = ({\n containerProps = {},\n id = '',\n appendToBody = true,\n className = '',\n date,\n value,\n placeholder = '',\n disabled = false,\n required = false,\n readOnly = false,\n hasError = false,\n screenReaderInputMessage = 'Select date',\n enableOutsideDays = true,\n initialVisibleMonth = moment(),\n firstDayOfWeek = 0,\n keepOpenOnDateSelect = false,\n hideKeyboardShortcutsPanel = true,\n onChange = () => null,\n onDateChange = undefined,\n onPrevMonthClick = () => null,\n onNextMonthClick = () => null,\n onClose = () => null,\n onFocus = () => null,\n onBlur = () => null,\n phrases = SingleDatePickerPhrases,\n displayFormat = 'L',\n displayFormatDay = 'D',\n transitionDuration = 0,\n verticalSpacing = 0,\n isDayBlocked = () => false,\n isOutsideRange = () => false,\n isDayHighlighted = () => false,\n numberOfMonths = 1,\n openDirection = 'down',\n tabIndex = '',\n zIndex = 1,\n pickerProps = {},\n calendarProps = {},\n autoClear = false,\n focusCurrentDate = false,\n}) => {\n useDeprecateComponent({ componentName: 'ds-date-picker', version: '3.x Date: 2023 Q1' });\n\n const { cssClassName } = convertPropToCssClassName('datepicker', className, {\n hasError,\n readOnly,\n disabled,\n id,\n });\n const safeDate = date || value;\n return (\n <div className={cssClassName} {...containerProps} style={{ minWidth: '140px' }}>\n <DSDatePickerImpl\n appendToBody={appendToBody}\n autoClear={autoClear}\n date={safeDate}\n disabled={disabled}\n displayFormat={displayFormat}\n displayFormatDay={displayFormatDay}\n enableOutsideDays={enableOutsideDays}\n firstDayOfWeek={firstDayOfWeek}\n hideKeyboardShortcutsPanel={hideKeyboardShortcutsPanel}\n initialVisibleMonth={() => (initialVisibleMonth ? moment(initialVisibleMonth) : moment(safeDate))}\n isDayBlocked={isDayBlocked}\n isDayHighlighted={isDayHighlighted}\n isOutsideRange={isOutsideRange === true || isOutsideRange === false ? () => isOutsideRange : isOutsideRange}\n keepOpenOnDateSelect={keepOpenOnDateSelect}\n numberOfMonths={numberOfMonths}\n onBlur={onBlur}\n onClose={onClose}\n onChange={onChange}\n onDateChange={(...args) => {\n if (onDateChange) onDateChange(...args);\n }}\n onFocus={onFocus}\n onNextMonthClick={onNextMonthClick}\n onPrevMonthClick={onPrevMonthClick}\n openDirection={openDirection}\n phrases={phrases}\n placeholder={placeholder}\n readOnly={readOnly}\n required={required}\n screenReaderInputMessage={screenReaderInputMessage}\n transitionDuration={transitionDuration}\n value={safeDate}\n verticalSpacing={verticalSpacing}\n tabIndex={tabIndex}\n zIndex={zIndex}\n pickerProps={pickerProps}\n calendarProps={calendarProps}\n focusCurrentDate={focusCurrentDate}\n />\n </div>\n );\n};\n\nconst datePickerProps = {\n containerProps: PropTypes.shape({}).description('Set of Properties attached to the main container'),\n id: PropTypes.string.description('components id'),\n appendToBody: PropTypes.bool.description('append component to body or not').defaultValue(true),\n className: PropTypes.string.description('html class attribute'),\n date: PropTypes.instanceOf(Date, moment).description('selected date').defaultValue(undefined),\n value: PropTypes.instanceOf(Date, moment).description('value'),\n placeholder: PropTypes.string.description('input placeholder value'),\n autoClear: PropTypes.bool\n .description('autoclears the input onblur if the date is not completely set')\n .defaultValue(false),\n disabled: PropTypes.bool.description('disable component or not').defaultValue(false),\n required: PropTypes.bool.description('value is required or not').defaultValue(false),\n readOnly: PropTypes.bool.description('is read only or not').defaultValue(false),\n hasError: PropTypes.bool.description('set error state').defaultValue(false),\n screenReaderInputMessage: PropTypes.string\n .description('message to anounce by screen reader')\n .defaultValue('select date'),\n enableOutsideDays: PropTypes.bool.description('enable days oustide month or not').defaultValue(true),\n initialVisibleMonth: PropTypes.instanceOf(Date, moment).description('initial month to display'),\n firstDayOfWeek: PropTypes.number.description('first day of week').defaultValue(0),\n keepOpenOnDateSelect: PropTypes.bool.description('keep picker open when a date is selected').defaultValue(false),\n hideKeyboardShortcutsPanel: PropTypes.bool.description('hide keyabord shortcut panel or not').defaultValue(true),\n onChange: PropTypes.func.description(\n `\n function executed when input changes. This could trigger with invalid dates. It returns a string and a moment\n if the date is valid.\n `,\n ),\n onDateChange: PropTypes.func.description(\n 'function executed when date changes. This doesnt trigger with invalid dates. It returns a moment object',\n ),\n onPrevMonthClick: PropTypes.func.description('function executed when clicking on prev month button'),\n onNextMonthClick: PropTypes.func.description('function executed when clicking on next month button'),\n onBlur: PropTypes.func.description('function executed when component loses focus'),\n onClose: PropTypes.func.description('function executed when component closes'),\n onFocus: PropTypes.func.description('function executed when component gains focus'),\n phrases: PropTypes.shape({\n calendarLabel: PropTypes.string,\n closeDatePicker: PropTypes.string,\n clearDates: PropTypes.string,\n focusStartDate: PropTypes.string,\n jumpToPrevMonth: PropTypes.string,\n jumpToNextMonth: PropTypes.string,\n keyboardShortcuts: PropTypes.string,\n showKeyboardShortcutsPanel: PropTypes.string,\n hideKeyboardShortcutsPanel: PropTypes.string,\n openThisPanel: PropTypes.string,\n enterKey: PropTypes.string,\n leftArrowRightArrow: PropTypes.string,\n upArrowDownArrow: PropTypes.string,\n pageUpPageDown: PropTypes.string,\n homeEnd: PropTypes.string,\n escape: PropTypes.string,\n questionMark: PropTypes.string,\n selectFocusedDate: PropTypes.string,\n moveFocusByOneDay: PropTypes.string,\n moveFocusByOneWeek: PropTypes.string,\n moveFocusByOneMonth: PropTypes.string,\n moveFocustoStartAndEndOfWeek: PropTypes.string,\n returnFocusToInput: PropTypes.string,\n keyboardNavigationInstructions: PropTypes.string,\n chooseAvailableStartDate: PropTypes.func,\n chooseAvailableEndDate: PropTypes.func,\n dateIsUnavailable: PropTypes.func,\n dateIsSelected: PropTypes.func,\n })\n .description('react-dates phrases')\n .defaultValue(SingleDatePickerPhrases),\n displayFormat: PropTypes.string.description('display format').defaultValue('L'),\n displayFormatDay: PropTypes.string.description('display format day').defaultValue('D'),\n transitionDuration: PropTypes.number.description('transition duration').defaultValue(0),\n verticalSpacing: PropTypes.number.description('vertical spacing'),\n isDayBlocked: PropTypes.func.description('function that returns each day and disables desired dates'),\n isOutsideRange: PropTypes.func.description('function that returns each day and disables outisde range dates'),\n isDayHighlighted: PropTypes.func.description('function that returns each day and higlights desired dates'),\n numberOfMonths: PropTypes.number.description('amount of months'),\n openDirection: PropTypes.string.description('open direction of the popup').defaultValue('down'),\n tabIndex: PropTypes.number.description('overrides tab index of the element'),\n zIndex: PropTypes.string.description('overrides z-index of the element'),\n pickerProps: PropTypes.shape(PickerPropsTypes).description('props to be passed to the picker container'),\n calendarProps: PropTypes.shape({ tabIndex: PropTypes.number }).description(\n 'props to be passes to the calendar container',\n ),\n focusCurrentDate: PropTypes.bool.description('Wheter to focus current date on calendar').defaultValue(false),\n};\n\nDSDatePicker.propTypes = datePickerProps;\nDSDatePicker.displayName = 'DSDatePicker';\nconst DatePickerWithSchema = describe(DSDatePicker);\nDatePickerWithSchema.propTypes = datePickerProps;\n\nexport {\n DatePickerNavigation,\n DatePickerDay,\n DatePickerPicker,\n DSDatePickerController,\n DatePickerDropdown,\n DatePickerSingleDate,\n DatePickerHeader,\n DatePickerRange,\n DatePickerRangeHeader,\n SingleRangeDateSwitcher,\n Picker,\n renderMonthElement,\n DatePickerWithSchema,\n};\n\nexport { DSDatePicker };\nexport default DSDatePicker;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACyHjB;AAvHN,SAAS,6BAA6B;AACtC,SAAS,WAAW,gBAAgB;AACpC,OAAO;AACP,SAAS,iCAAiC;AAC1C,OAAO,YAAY;AACn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