@elliemae/ds-form-date-time-picker 3.16.0-next.2 → 3.16.0-next.3
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/dist/cjs/ControlledDateTimePicker.js +2 -2
- package/dist/cjs/ControlledDateTimePicker.js.map +2 -2
- package/dist/cjs/config/useChangeHandlers.js.map +2 -2
- package/dist/cjs/config/useControlledDateTimePicker.js +3 -3
- package/dist/cjs/config/useControlledDateTimePicker.js.map +2 -2
- package/dist/cjs/config/useGetFlags.js +6 -6
- package/dist/cjs/config/useGetFlags.js.map +2 -2
- package/dist/cjs/config/useGetPropsWithDefault.js +2 -2
- package/dist/cjs/config/useGetPropsWithDefault.js.map +2 -2
- package/dist/cjs/parts/ClearButton/ClearButton.js +8 -2
- package/dist/cjs/parts/ClearButton/ClearButton.js.map +3 -3
- package/dist/cjs/parts/ControlledDateTimePickerContent.js +8 -1
- package/dist/cjs/parts/ControlledDateTimePickerContent.js.map +3 -3
- package/dist/cjs/parts/DateInputs/DDInput.js +4 -2
- package/dist/cjs/parts/DateInputs/DDInput.js.map +2 -2
- package/dist/cjs/parts/DateInputs/DateInputs.js +23 -5
- package/dist/cjs/parts/DateInputs/DateInputs.js.map +3 -3
- package/dist/cjs/parts/DateInputs/MMInput.js +4 -2
- package/dist/cjs/parts/DateInputs/MMInput.js.map +2 -2
- package/dist/cjs/parts/DateInputs/YYYYInput.js +4 -2
- package/dist/cjs/parts/DateInputs/YYYYInput.js.map +2 -2
- package/dist/cjs/parts/DateInputs/useDateInputs.js +1 -1
- package/dist/cjs/parts/DateInputs/useDateInputs.js.map +2 -2
- package/dist/cjs/parts/Pickers/Calendar/Calendar.js.map +2 -2
- package/dist/cjs/parts/Pickers/Calendar/CalendarContent.js +9 -1
- package/dist/cjs/parts/Pickers/Calendar/CalendarContent.js.map +3 -3
- package/dist/cjs/parts/Pickers/Calendar/CalendarFooter.js +16 -2
- package/dist/cjs/parts/Pickers/Calendar/CalendarFooter.js.map +3 -3
- package/dist/cjs/parts/Pickers/Calendar/CalendarHead.js +35 -2
- package/dist/cjs/parts/Pickers/Calendar/CalendarHead.js.map +2 -2
- package/dist/cjs/parts/Pickers/Calendar/CalendarIconTrigger.js +16 -2
- package/dist/cjs/parts/Pickers/Calendar/CalendarIconTrigger.js.map +3 -3
- package/dist/cjs/parts/Pickers/Calendar/CalendarMonthDays.js.map +2 -2
- package/dist/cjs/parts/Pickers/Calendar/CalendarWrapper.js +8 -2
- package/dist/cjs/parts/Pickers/Calendar/CalendarWrapper.js.map +3 -3
- package/dist/cjs/parts/Pickers/Calendar/Day.js +4 -0
- package/dist/cjs/parts/Pickers/Calendar/Day.js.map +2 -2
- package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js +8 -2
- package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js.map +3 -3
- package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js +8 -1
- package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js.map +3 -3
- package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js +10 -1
- package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js.map +3 -3
- package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js +9 -1
- package/dist/cjs/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js.map +3 -3
- package/dist/cjs/parts/Pickers/TimeWheel/HoursList.js +23 -2
- package/dist/cjs/parts/Pickers/TimeWheel/HoursList.js.map +3 -3
- package/dist/cjs/parts/Pickers/TimeWheel/MeridiemList.js +24 -2
- package/dist/cjs/parts/Pickers/TimeWheel/MeridiemList.js.map +3 -3
- package/dist/cjs/parts/Pickers/TimeWheel/MinutesList.js +23 -2
- package/dist/cjs/parts/Pickers/TimeWheel/MinutesList.js.map +3 -3
- package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelContent.js +19 -2
- package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelContent.js.map +2 -2
- package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelFooter.js +16 -2
- package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelFooter.js.map +3 -3
- package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js +16 -2
- package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js.map +3 -3
- package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelWrapper.js +8 -2
- package/dist/cjs/parts/Pickers/TimeWheel/TimeWheelWrapper.js.map +3 -3
- package/dist/cjs/parts/TimeInputs/HHInput.js +4 -2
- package/dist/cjs/parts/TimeInputs/HHInput.js.map +2 -2
- package/dist/cjs/parts/TimeInputs/MeridiemInput.js +4 -2
- package/dist/cjs/parts/TimeInputs/MeridiemInput.js.map +2 -2
- package/dist/cjs/parts/TimeInputs/MinutesInput.js +4 -2
- package/dist/cjs/parts/TimeInputs/MinutesInput.js.map +2 -2
- package/dist/cjs/parts/TimeInputs/TimeInputs.js +23 -5
- package/dist/cjs/parts/TimeInputs/TimeInputs.js.map +3 -3
- package/dist/cjs/propTypes.js +28 -26
- package/dist/cjs/propTypes.js.map +2 -2
- package/dist/cjs/sharedTypes.js.map +1 -1
- package/dist/cjs/tests/custom-props/customProps.js +233 -0
- package/dist/cjs/tests/custom-props/customProps.js.map +7 -0
- package/dist/esm/ControlledDateTimePicker.js +1 -1
- package/dist/esm/ControlledDateTimePicker.js.map +1 -1
- package/dist/esm/config/useChangeHandlers.js.map +2 -2
- package/dist/esm/config/useControlledDateTimePicker.js +1 -1
- package/dist/esm/config/useControlledDateTimePicker.js.map +1 -1
- package/dist/esm/config/useGetFlags.js +6 -6
- package/dist/esm/config/useGetFlags.js.map +2 -2
- package/dist/esm/config/useGetPropsWithDefault.js +1 -1
- package/dist/esm/config/useGetPropsWithDefault.js.map +1 -1
- package/dist/esm/parts/ClearButton/ClearButton.js +8 -2
- package/dist/esm/parts/ClearButton/ClearButton.js.map +3 -3
- package/dist/esm/parts/ControlledDateTimePickerContent.js +8 -1
- package/dist/esm/parts/ControlledDateTimePickerContent.js.map +3 -3
- package/dist/esm/parts/DateInputs/DDInput.js +4 -2
- package/dist/esm/parts/DateInputs/DDInput.js.map +2 -2
- package/dist/esm/parts/DateInputs/DateInputs.js +23 -5
- package/dist/esm/parts/DateInputs/DateInputs.js.map +3 -3
- package/dist/esm/parts/DateInputs/MMInput.js +4 -2
- package/dist/esm/parts/DateInputs/MMInput.js.map +2 -2
- package/dist/esm/parts/DateInputs/YYYYInput.js +4 -2
- package/dist/esm/parts/DateInputs/YYYYInput.js.map +2 -2
- package/dist/esm/parts/DateInputs/useDateInputs.js +1 -1
- package/dist/esm/parts/DateInputs/useDateInputs.js.map +2 -2
- package/dist/esm/parts/Pickers/Calendar/Calendar.js.map +2 -2
- package/dist/esm/parts/Pickers/Calendar/CalendarContent.js +9 -1
- package/dist/esm/parts/Pickers/Calendar/CalendarContent.js.map +3 -3
- package/dist/esm/parts/Pickers/Calendar/CalendarFooter.js +16 -2
- package/dist/esm/parts/Pickers/Calendar/CalendarFooter.js.map +3 -3
- package/dist/esm/parts/Pickers/Calendar/CalendarHead.js +35 -2
- package/dist/esm/parts/Pickers/Calendar/CalendarHead.js.map +2 -2
- package/dist/esm/parts/Pickers/Calendar/CalendarIconTrigger.js +16 -2
- package/dist/esm/parts/Pickers/Calendar/CalendarIconTrigger.js.map +3 -3
- package/dist/esm/parts/Pickers/Calendar/CalendarMonthDays.js.map +2 -2
- package/dist/esm/parts/Pickers/Calendar/CalendarWrapper.js +8 -2
- package/dist/esm/parts/Pickers/Calendar/CalendarWrapper.js.map +3 -3
- package/dist/esm/parts/Pickers/Calendar/Day.js +4 -0
- package/dist/esm/parts/Pickers/Calendar/Day.js.map +2 -2
- package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js +8 -2
- package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelContent.js.map +3 -3
- package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js +8 -1
- package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelFooter.js.map +3 -3
- package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js +10 -1
- package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js.map +3 -3
- package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js +9 -1
- package/dist/esm/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelWrapper.js.map +3 -3
- package/dist/esm/parts/Pickers/TimeWheel/HoursList.js +23 -2
- package/dist/esm/parts/Pickers/TimeWheel/HoursList.js.map +3 -3
- package/dist/esm/parts/Pickers/TimeWheel/MeridiemList.js +24 -2
- package/dist/esm/parts/Pickers/TimeWheel/MeridiemList.js.map +3 -3
- package/dist/esm/parts/Pickers/TimeWheel/MinutesList.js +23 -2
- package/dist/esm/parts/Pickers/TimeWheel/MinutesList.js.map +3 -3
- package/dist/esm/parts/Pickers/TimeWheel/TimeWheelContent.js +19 -2
- package/dist/esm/parts/Pickers/TimeWheel/TimeWheelContent.js.map +2 -2
- package/dist/esm/parts/Pickers/TimeWheel/TimeWheelFooter.js +16 -2
- package/dist/esm/parts/Pickers/TimeWheel/TimeWheelFooter.js.map +3 -3
- package/dist/esm/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js +16 -2
- package/dist/esm/parts/Pickers/TimeWheel/TimeWheelIconTrigger.js.map +3 -3
- package/dist/esm/parts/Pickers/TimeWheel/TimeWheelWrapper.js +8 -2
- package/dist/esm/parts/Pickers/TimeWheel/TimeWheelWrapper.js.map +3 -3
- package/dist/esm/parts/TimeInputs/HHInput.js +4 -2
- package/dist/esm/parts/TimeInputs/HHInput.js.map +2 -2
- package/dist/esm/parts/TimeInputs/MeridiemInput.js +4 -2
- package/dist/esm/parts/TimeInputs/MeridiemInput.js.map +2 -2
- package/dist/esm/parts/TimeInputs/MinutesInput.js +4 -2
- package/dist/esm/parts/TimeInputs/MinutesInput.js.map +2 -2
- package/dist/esm/parts/TimeInputs/TimeInputs.js +23 -5
- package/dist/esm/parts/TimeInputs/TimeInputs.js.map +3 -3
- package/dist/esm/propTypes.js +9 -2
- package/dist/esm/propTypes.js.map +2 -2
- package/dist/esm/tests/custom-props/customProps.js +207 -0
- package/dist/esm/tests/custom-props/customProps.js.map +7 -0
- package/dist/types/ControlledDateTimePicker.d.ts +1 -1
- package/dist/types/config/useGetFlags.d.ts +2 -2
- package/dist/types/parts/DateInputs/DDInput.d.ts +2 -1
- package/dist/types/parts/DateInputs/MMInput.d.ts +3 -2
- package/dist/types/parts/DateInputs/YYYYInput.d.ts +2 -1
- package/dist/types/parts/TimeInputs/HHInput.d.ts +2 -1
- package/dist/types/parts/TimeInputs/MeridiemInput.d.ts +2 -1
- package/dist/types/parts/TimeInputs/MinutesInput.d.ts +2 -1
- package/dist/types/propTypes.d.ts +11 -3
- package/dist/types/sharedTypes.d.ts +1 -1
- package/dist/types/tests/custom-props/customProps.d.ts +397 -0
- package/dist/types/tests/custom-props/date-time-picker.date-custom-props.test.d.ts +1 -0
- package/dist/types/tests/custom-props/date-time-picker.date-time-custom-props.test.d.ts +1 -0
- package/dist/types/tests/custom-props/date-time-picker.time-custom-props.test.d.ts +1 -0
- package/package.json +10 -9
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ControlledDateTimePickerDatatestid } from "../../index";
|
|
3
|
+
const customPropsShareds = {
|
|
4
|
+
[ControlledDateTimePickerDatatestid.CONTAINER]: {
|
|
5
|
+
"data-foo": "foo-picker-container",
|
|
6
|
+
"aria-label": "custom label for picker-container",
|
|
7
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
const customPropsDateInputs = {
|
|
11
|
+
[ControlledDateTimePickerDatatestid.DATE_INPUTS.MONTH]: {
|
|
12
|
+
"data-foo": "foo-month-input",
|
|
13
|
+
"aria-label": "custom label for month-input",
|
|
14
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
15
|
+
},
|
|
16
|
+
[ControlledDateTimePickerDatatestid.DATE_INPUTS.DAY]: {
|
|
17
|
+
"data-foo": "foo-day-input",
|
|
18
|
+
"aria-label": "custom label for day-input",
|
|
19
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
20
|
+
},
|
|
21
|
+
[ControlledDateTimePickerDatatestid.DATE_INPUTS.YEAR]: {
|
|
22
|
+
"data-foo": "foo-year-input",
|
|
23
|
+
"aria-label": "custom label for year-input",
|
|
24
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const customPropsTimeInputs = {
|
|
28
|
+
[ControlledDateTimePickerDatatestid.TIME_INPUTS.HOUR]: {
|
|
29
|
+
"data-foo": "foo-hour-input",
|
|
30
|
+
"aria-label": "custom label for hour-input",
|
|
31
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
32
|
+
},
|
|
33
|
+
[ControlledDateTimePickerDatatestid.TIME_INPUTS.MINUTE]: {
|
|
34
|
+
"data-foo": "foo-minute-input",
|
|
35
|
+
"aria-label": "custom label for minute-input",
|
|
36
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
37
|
+
},
|
|
38
|
+
[ControlledDateTimePickerDatatestid.TIME_INPUTS.MERIDIEM]: {
|
|
39
|
+
"data-foo": "foo-meridiem-input",
|
|
40
|
+
"aria-label": "custom label for meridiem-input",
|
|
41
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const customPropsCalendarDatePart = {
|
|
45
|
+
[ControlledDateTimePickerDatatestid.CALENDAR.HEADER_LABEL]: {
|
|
46
|
+
"data-foo": "foo-calendar-header-label",
|
|
47
|
+
"aria-label": "custom label for calendar-header-label",
|
|
48
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
49
|
+
},
|
|
50
|
+
[ControlledDateTimePickerDatatestid.CALENDAR.PREV_YEAR]: {
|
|
51
|
+
"data-foo": "foo-calendar-prev-year",
|
|
52
|
+
"aria-label": "custom label for calendar-prev-year",
|
|
53
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
54
|
+
},
|
|
55
|
+
[ControlledDateTimePickerDatatestid.CALENDAR.PREV_MONTH]: {
|
|
56
|
+
"data-foo": "foo-calendar-prev-month",
|
|
57
|
+
"aria-label": "custom label for calendar-prev-month",
|
|
58
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
59
|
+
},
|
|
60
|
+
[ControlledDateTimePickerDatatestid.CALENDAR.DAY]: {
|
|
61
|
+
"data-foo": "foo-calendar-day",
|
|
62
|
+
"aria-label": "custom label for calendar-day",
|
|
63
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
64
|
+
},
|
|
65
|
+
[ControlledDateTimePickerDatatestid.CALENDAR.NEXT_MONTH]: {
|
|
66
|
+
"data-foo": "foo-calendar-next-month",
|
|
67
|
+
"aria-label": "custom label for calendar-next-month",
|
|
68
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
69
|
+
},
|
|
70
|
+
[ControlledDateTimePickerDatatestid.CALENDAR.NEXT_YEAR]: {
|
|
71
|
+
"data-foo": "foo-calendar-next-year",
|
|
72
|
+
"aria-label": "custom label for calendar-next-year",
|
|
73
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const customPropsCalendarTimePart = {
|
|
77
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.HEADER_LABEL]: {
|
|
78
|
+
"data-foo": "foo-timewheel-header-label",
|
|
79
|
+
"aria-label": "custom label for timewheel-header-label",
|
|
80
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
81
|
+
},
|
|
82
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_HOUR]: {
|
|
83
|
+
"data-foo": "foo-timewheel-prev-hour",
|
|
84
|
+
"aria-label": "custom label for timewheel-prev-hour",
|
|
85
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
86
|
+
},
|
|
87
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.HOUR]: {
|
|
88
|
+
"data-foo": "foo-timewheel-hour",
|
|
89
|
+
"aria-label": "custom label for timewheel-hour",
|
|
90
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
91
|
+
},
|
|
92
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_HOUR]: {
|
|
93
|
+
"data-foo": "foo-timewheel-current-hour",
|
|
94
|
+
"aria-label": "custom label for timewheel-current-hour",
|
|
95
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
96
|
+
},
|
|
97
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_HOUR]: {
|
|
98
|
+
"data-foo": "foo-timewheel-next-hour",
|
|
99
|
+
"aria-label": "custom label for timewheel-next-hour",
|
|
100
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
101
|
+
},
|
|
102
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_MINUTE]: {
|
|
103
|
+
"data-foo": "foo-timewheel-prev-minute",
|
|
104
|
+
"aria-label": "custom label for timewheel-prev-minute",
|
|
105
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
106
|
+
},
|
|
107
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.MINUTE]: {
|
|
108
|
+
"data-foo": "foo-timewheel-minute",
|
|
109
|
+
"aria-label": "custom label for timewheel-minute",
|
|
110
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
111
|
+
},
|
|
112
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_MINUTE]: {
|
|
113
|
+
"data-foo": "foo-timewheel-current-minute",
|
|
114
|
+
"aria-label": "custom label for timewheel-current-minute",
|
|
115
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
116
|
+
},
|
|
117
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_MINUTE]: {
|
|
118
|
+
"data-foo": "foo-timewheel-next-minute",
|
|
119
|
+
"aria-label": "custom label for timewheel-next-minute",
|
|
120
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
121
|
+
},
|
|
122
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_MERIDIEM]: {
|
|
123
|
+
"data-foo": "foo-timewheel-prev-meridiem",
|
|
124
|
+
"aria-label": "custom label for timewheel-prev-meridiem",
|
|
125
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
126
|
+
},
|
|
127
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.MERIDIEM]: {
|
|
128
|
+
"data-foo": "foo-timewheel-meridiem",
|
|
129
|
+
"aria-label": "custom label for timewheel-meridiem",
|
|
130
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
131
|
+
},
|
|
132
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_MERIDIEM]: {
|
|
133
|
+
"data-foo": "foo-timewheel-current-meridiem",
|
|
134
|
+
"aria-label": "custom label for timewheel-current-meridiem",
|
|
135
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
136
|
+
},
|
|
137
|
+
[ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_MERIDIEM]: {
|
|
138
|
+
"data-foo": "foo-timewheel-next-meridiem",
|
|
139
|
+
"aria-label": "custom label for timewheel-next-meridiem",
|
|
140
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
const customPropsForFullDateTimePickerWhenClosed = {
|
|
144
|
+
...customPropsShareds,
|
|
145
|
+
...customPropsDateInputs,
|
|
146
|
+
...customPropsTimeInputs,
|
|
147
|
+
[ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR_TIMEWHEEL]: {
|
|
148
|
+
"data-foo": "foo-calendar-timewheel-icon",
|
|
149
|
+
"aria-label": "custom label for calendar-timewheel-icon",
|
|
150
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
const customPropsForFullDateTimePickerWhenOpen = {
|
|
154
|
+
...customPropsForFullDateTimePickerWhenClosed,
|
|
155
|
+
[ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL]: {
|
|
156
|
+
"data-foo": "foo-contextual-menu-calendar-timewheel",
|
|
157
|
+
"aria-label": "custom label for contextual-menu-calendar-timewheel",
|
|
158
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
159
|
+
},
|
|
160
|
+
...customPropsCalendarDatePart,
|
|
161
|
+
...customPropsCalendarTimePart
|
|
162
|
+
};
|
|
163
|
+
const customPropsForFullDatePickerWhenClosed = {
|
|
164
|
+
...customPropsShareds,
|
|
165
|
+
...customPropsDateInputs,
|
|
166
|
+
[ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR]: {
|
|
167
|
+
"data-foo": "foo-calendar-icon",
|
|
168
|
+
"aria-label": "custom label for calendar-icon",
|
|
169
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
const customPropsForFullDatePickerWhenOpen = {
|
|
173
|
+
...customPropsForFullDatePickerWhenClosed,
|
|
174
|
+
[ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR]: {
|
|
175
|
+
"data-foo": "foo-contextual-menu-calendar",
|
|
176
|
+
"aria-label": "custom label for contextual-menu-calendar",
|
|
177
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
178
|
+
},
|
|
179
|
+
...customPropsCalendarDatePart
|
|
180
|
+
};
|
|
181
|
+
const customPropsForFullTimePickerWhenClosed = {
|
|
182
|
+
...customPropsShareds,
|
|
183
|
+
...customPropsTimeInputs,
|
|
184
|
+
[ControlledDateTimePickerDatatestid.PICKER_ICONS.TIMEWHEEL]: {
|
|
185
|
+
"data-foo": "foo-timewheel-icon",
|
|
186
|
+
"aria-label": "custom label for timewheel-icon",
|
|
187
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
const customPropsForFullTimePickerWhenOpen = {
|
|
191
|
+
...customPropsForFullTimePickerWhenClosed,
|
|
192
|
+
[ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL]: {
|
|
193
|
+
"data-foo": "foo-contextual-menu-timewheel",
|
|
194
|
+
"aria-label": "custom label for contextual-menu-timewheel",
|
|
195
|
+
ignoredProp: "props not starting with data- or aria- are not exposed"
|
|
196
|
+
},
|
|
197
|
+
...customPropsCalendarTimePart
|
|
198
|
+
};
|
|
199
|
+
export {
|
|
200
|
+
customPropsForFullDatePickerWhenClosed,
|
|
201
|
+
customPropsForFullDatePickerWhenOpen,
|
|
202
|
+
customPropsForFullDateTimePickerWhenClosed,
|
|
203
|
+
customPropsForFullDateTimePickerWhenOpen,
|
|
204
|
+
customPropsForFullTimePickerWhenClosed,
|
|
205
|
+
customPropsForFullTimePickerWhenOpen
|
|
206
|
+
};
|
|
207
|
+
//# sourceMappingURL=customProps.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/tests/custom-props/customProps.js"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable max-lines */\n/* eslint-disable import/extensions */\nimport { ControlledDateTimePickerDatatestid } from '../../index';\nconst customPropsShareds = {\n [ControlledDateTimePickerDatatestid.CONTAINER]: {\n 'data-foo': 'foo-picker-container',\n 'aria-label': 'custom label for picker-container',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nconst customPropsDateInputs = {\n [ControlledDateTimePickerDatatestid.DATE_INPUTS.MONTH]: {\n 'data-foo': 'foo-month-input',\n 'aria-label': 'custom label for month-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.DATE_INPUTS.DAY]: {\n 'data-foo': 'foo-day-input',\n 'aria-label': 'custom label for day-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.DATE_INPUTS.YEAR]: {\n 'data-foo': 'foo-year-input',\n 'aria-label': 'custom label for year-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nconst customPropsTimeInputs = {\n [ControlledDateTimePickerDatatestid.TIME_INPUTS.HOUR]: {\n 'data-foo': 'foo-hour-input',\n 'aria-label': 'custom label for hour-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIME_INPUTS.MINUTE]: {\n 'data-foo': 'foo-minute-input',\n 'aria-label': 'custom label for minute-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIME_INPUTS.MERIDIEM]: {\n 'data-foo': 'foo-meridiem-input',\n 'aria-label': 'custom label for meridiem-input',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\n\nconst customPropsCalendarDatePart = {\n [ControlledDateTimePickerDatatestid.CALENDAR.HEADER_LABEL]: {\n 'data-foo': 'foo-calendar-header-label',\n 'aria-label': 'custom label for calendar-header-label',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.PREV_YEAR]: {\n 'data-foo': 'foo-calendar-prev-year',\n 'aria-label': 'custom label for calendar-prev-year',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.PREV_MONTH]: {\n 'data-foo': 'foo-calendar-prev-month',\n 'aria-label': 'custom label for calendar-prev-month',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.DAY]: {\n 'data-foo': 'foo-calendar-day',\n 'aria-label': 'custom label for calendar-day',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.NEXT_MONTH]: {\n 'data-foo': 'foo-calendar-next-month',\n 'aria-label': 'custom label for calendar-next-month',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.CALENDAR.NEXT_YEAR]: {\n 'data-foo': 'foo-calendar-next-year',\n 'aria-label': 'custom label for calendar-next-year',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\n\nconst customPropsCalendarTimePart = {\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.HEADER_LABEL]: {\n 'data-foo': 'foo-timewheel-header-label',\n 'aria-label': 'custom label for timewheel-header-label',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_HOUR]: {\n 'data-foo': 'foo-timewheel-prev-hour',\n 'aria-label': 'custom label for timewheel-prev-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.HOUR]: {\n 'data-foo': 'foo-timewheel-hour',\n 'aria-label': 'custom label for timewheel-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_HOUR]: {\n 'data-foo': 'foo-timewheel-current-hour',\n 'aria-label': 'custom label for timewheel-current-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_HOUR]: {\n 'data-foo': 'foo-timewheel-next-hour',\n 'aria-label': 'custom label for timewheel-next-hour',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_MINUTE]: {\n 'data-foo': 'foo-timewheel-prev-minute',\n 'aria-label': 'custom label for timewheel-prev-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.MINUTE]: {\n 'data-foo': 'foo-timewheel-minute',\n 'aria-label': 'custom label for timewheel-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_MINUTE]: {\n 'data-foo': 'foo-timewheel-current-minute',\n 'aria-label': 'custom label for timewheel-current-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_MINUTE]: {\n 'data-foo': 'foo-timewheel-next-minute',\n 'aria-label': 'custom label for timewheel-next-minute',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.PREV_MERIDIEM]: {\n 'data-foo': 'foo-timewheel-prev-meridiem',\n 'aria-label': 'custom label for timewheel-prev-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.MERIDIEM]: {\n 'data-foo': 'foo-timewheel-meridiem',\n 'aria-label': 'custom label for timewheel-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.CURRENT_MERIDIEM]: {\n 'data-foo': 'foo-timewheel-current-meridiem',\n 'aria-label': 'custom label for timewheel-current-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n [ControlledDateTimePickerDatatestid.TIMEWHEEL.NEXT_MERIDIEM]: {\n 'data-foo': 'foo-timewheel-next-meridiem',\n 'aria-label': 'custom label for timewheel-next-meridiem',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\n// const customPropsCalendarDatePartSelections = {\n// [ControlledDateTimePickerDatatestid.CALENDAR.FOCUSED_DAY]: {\n// 'data-foo': 'foo-calendar-focused-day',\n// 'aria-label': 'custom label for calendar-focused-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.SELECTED_DAY]: {\n// 'data-foo': 'foo-calendar-selected-day',\n// 'aria-label': 'custom label for calendar-selected-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.SELECTED_FOCUSED_DAY]: {\n// 'data-foo': 'foo-calendar-selected-focused-day',\n// 'aria-label': 'custom label for calendar-selected-focused-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsCalendarDatePartRanges = {\n// [ControlledDateTimePickerDatatestid.CALENDAR.START_RANGE_DAY]: {\n// 'data-foo': 'foo-calendar-start-range-day',\n// 'aria-label': 'custom label for calendar-start-range-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.IN_RANGE_DAY]: {\n// 'data-foo': 'foo-calendar-in-range-day',\n// 'aria-label': 'custom label for calendar-in-range-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CALENDAR.END_RANGE_DAY]: {\n// 'data-foo': 'foo-calendar-end-range-day',\n// 'aria-label': 'custom label for calendar-end-range-day',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsPickersIcons = {\n// [ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR]: {\n// 'data-foo': 'foo-calendar-icon',\n// 'aria-label': 'custom label for calendar-icon',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.PICKER_ICONS.TIMEWHEEL]: {\n// 'data-foo': 'foo-timewheel-icon',\n// 'aria-label': 'custom label for timewheel-icon',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsContextualMenu = {\n// [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR]: {\n// 'data-foo': 'foo-contextual-menu-calendar',\n// 'aria-label': 'custom label for contextual-menu-calendar',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL]: {\n// 'data-foo': 'foo-contextual-menu-timewheel',\n// 'aria-label': 'custom label for contextual-menu-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsControllers = {\n// [ControlledDateTimePickerDatatestid.CONTROLLER_COMPONENT.CALENDAR]: {\n// 'data-foo': 'foo-controller-component-calendar',\n// 'aria-label': 'custom label for controller-component-calendar',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CONTROLLER_COMPONENT.TIMEWHEEL]: {\n// 'data-foo': 'foo-controller-component-timewheel',\n// 'aria-label': 'custom label for controller-component-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.CONTROLLER_COMPONENT.CALENDAR_TIMEWHEEL]: {\n// 'data-foo': 'foo-controller-component-calendar-timewheel',\n// 'aria-label': 'custom label for controller-component-calendar-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n// const customPropsFooters = {\n// [ControlledDateTimePickerDatatestid.FOOTERS.CALENDAR]: {\n// 'data-foo': 'foo-footers-calendar',\n// 'aria-label': 'custom label for footers-calendar',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.FOOTERS.TIMEWHEEL]: {\n// 'data-foo': 'foo-footers-timewheel',\n// 'aria-label': 'custom label for footers-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// [ControlledDateTimePickerDatatestid.FOOTERS.CALENDAR_TIMEWHEEL]: {\n// 'data-foo': 'foo-footers-calendar-timewheel',\n// 'aria-label': 'custom label for footers-calendar-timewheel',\n// ignoredProp: 'props not starting with data- or aria- are not exposed',\n// },\n// };\n\nexport const customPropsForFullDateTimePickerWhenClosed = {\n ...customPropsShareds,\n ...customPropsDateInputs,\n ...customPropsTimeInputs,\n [ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR_TIMEWHEEL]: {\n 'data-foo': 'foo-calendar-timewheel-icon',\n 'aria-label': 'custom label for calendar-timewheel-icon',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nexport const customPropsForFullDateTimePickerWhenOpen = {\n ...customPropsForFullDateTimePickerWhenClosed,\n [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR_TIMEWHEEL]: {\n 'data-foo': 'foo-contextual-menu-calendar-timewheel',\n 'aria-label': 'custom label for contextual-menu-calendar-timewheel',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n ...customPropsCalendarDatePart,\n ...customPropsCalendarTimePart,\n};\nexport const customPropsForFullDatePickerWhenClosed = {\n ...customPropsShareds,\n ...customPropsDateInputs,\n [ControlledDateTimePickerDatatestid.PICKER_ICONS.CALENDAR]: {\n 'data-foo': 'foo-calendar-icon',\n 'aria-label': 'custom label for calendar-icon',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nexport const customPropsForFullDatePickerWhenOpen = {\n ...customPropsForFullDatePickerWhenClosed,\n [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.CALENDAR]: {\n 'data-foo': 'foo-contextual-menu-calendar',\n 'aria-label': 'custom label for contextual-menu-calendar',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n ...customPropsCalendarDatePart,\n};\nexport const customPropsForFullTimePickerWhenClosed = {\n ...customPropsShareds,\n ...customPropsTimeInputs,\n [ControlledDateTimePickerDatatestid.PICKER_ICONS.TIMEWHEEL]: {\n 'data-foo': 'foo-timewheel-icon',\n 'aria-label': 'custom label for timewheel-icon',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n};\nexport const customPropsForFullTimePickerWhenOpen = {\n ...customPropsForFullTimePickerWhenClosed,\n [ControlledDateTimePickerDatatestid.CONTEXTUAL_MENU.TIMEWHEEL]: {\n 'data-foo': 'foo-contextual-menu-timewheel',\n 'aria-label': 'custom label for contextual-menu-timewheel',\n ignoredProp: 'props not starting with data- or aria- are not exposed',\n },\n ...customPropsCalendarTimePart,\n};\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -3,5 +3,5 @@ declare const DSControlledDateTimePicker: {
|
|
|
3
3
|
(props: DSControlledDateTimePickerT.Props): JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
|
-
declare const DSControlledDateTimePickerWithSchema: import("@elliemae/ds-
|
|
6
|
+
declare const DSControlledDateTimePickerWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<DSControlledDateTimePickerT.Props>;
|
|
7
7
|
export { DSControlledDateTimePickerWithSchema, DSControlledDateTimePicker };
|
|
@@ -23,8 +23,8 @@ export declare const useGetFlags: (props: DSControlledDateTimePickerT.InternalPr
|
|
|
23
23
|
isWithDateInputsOnly: boolean;
|
|
24
24
|
autoFocusMonthInput: boolean;
|
|
25
25
|
autoFocusPrevMonthArrow: boolean;
|
|
26
|
-
innerRefMonthInput:
|
|
27
|
-
innerRefPrevMonthArrow:
|
|
26
|
+
innerRefMonthInput: import("react").MutableRefObject<HTMLInputElement | HTMLButtonElement | null> | undefined;
|
|
27
|
+
innerRefPrevMonthArrow: import("react").MutableRefObject<HTMLInputElement | HTMLButtonElement | null> | undefined;
|
|
28
28
|
shouldPreserveClearableSpace: boolean;
|
|
29
29
|
withAnyRightController: boolean;
|
|
30
30
|
};
|
|
@@ -11,6 +11,7 @@ interface DDInputsPropsT {
|
|
|
11
11
|
ariaCurrentValueForInputs: string;
|
|
12
12
|
contextRef: React.MutableRefObject<HTMLInputElement | null>;
|
|
13
13
|
isFocused: boolean;
|
|
14
|
+
ariaAndDataProps?: AriaAndDataProps;
|
|
14
15
|
}
|
|
15
|
-
export declare const DDInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, contextRef, placeholder, ariaCurrentValueForInputs, isFocused, }: DDInputsPropsT) => JSX.Element>;
|
|
16
|
+
export declare const DDInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, contextRef, placeholder, ariaCurrentValueForInputs, isFocused, ariaAndDataProps, }: DDInputsPropsT) => JSX.Element>;
|
|
16
17
|
export {};
|
|
@@ -12,7 +12,8 @@ interface MMInputsPropsT {
|
|
|
12
12
|
placeholder: string;
|
|
13
13
|
ariaCurrentValueForInputs: string;
|
|
14
14
|
isFocused: boolean;
|
|
15
|
-
innerRef
|
|
15
|
+
innerRef?: React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>;
|
|
16
|
+
ariaAndDataProps?: AriaAndDataProps;
|
|
16
17
|
}
|
|
17
|
-
export declare const MMInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, contextRef, innerRef, autoFocusMonthInput, ariaCurrentValueForInputs, isFocused, }: MMInputsPropsT) => JSX.Element>;
|
|
18
|
+
export declare const MMInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, contextRef, innerRef, autoFocusMonthInput, ariaCurrentValueForInputs, isFocused, ariaAndDataProps, }: MMInputsPropsT) => JSX.Element>;
|
|
18
19
|
export {};
|
|
@@ -11,6 +11,7 @@ interface YYYYInputsPropsT {
|
|
|
11
11
|
placeholder: string;
|
|
12
12
|
ariaCurrentValueForInputs: string;
|
|
13
13
|
isFocused: boolean;
|
|
14
|
+
ariaAndDataProps?: AriaAndDataProps;
|
|
14
15
|
}
|
|
15
|
-
export declare const YYYYInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, contextRef, ariaCurrentValueForInputs, isFocused, }: YYYYInputsPropsT) => JSX.Element>;
|
|
16
|
+
export declare const YYYYInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, contextRef, ariaCurrentValueForInputs, isFocused, ariaAndDataProps, }: YYYYInputsPropsT) => JSX.Element>;
|
|
16
17
|
export {};
|
|
@@ -12,6 +12,7 @@ interface HHInputsPropsT {
|
|
|
12
12
|
ariaCurrentValueForInputs: string;
|
|
13
13
|
autoFocusHourInput: boolean;
|
|
14
14
|
isFocused: boolean;
|
|
15
|
+
ariaAndDataProps?: AriaAndDataProps;
|
|
15
16
|
}
|
|
16
|
-
export declare const HHInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, autoFocusHourInput, isFocused, }: HHInputsPropsT) => JSX.Element>;
|
|
17
|
+
export declare const HHInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, autoFocusHourInput, isFocused, ariaAndDataProps, }: HHInputsPropsT) => JSX.Element>;
|
|
17
18
|
export {};
|
|
@@ -11,6 +11,7 @@ interface MeridiemInputsPropsT {
|
|
|
11
11
|
placeholder: string;
|
|
12
12
|
ariaCurrentValueForInputs: string;
|
|
13
13
|
isFocused: boolean;
|
|
14
|
+
ariaAndDataProps?: AriaAndDataProps;
|
|
14
15
|
}
|
|
15
|
-
export declare const MeridiemInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, isFocused, }: MeridiemInputsPropsT) => JSX.Element>;
|
|
16
|
+
export declare const MeridiemInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, isFocused, ariaAndDataProps, }: MeridiemInputsPropsT) => JSX.Element>;
|
|
16
17
|
export {};
|
|
@@ -11,6 +11,7 @@ interface MinutesInputsPropsT {
|
|
|
11
11
|
placeholder: string;
|
|
12
12
|
ariaCurrentValueForInputs: string;
|
|
13
13
|
isFocused: boolean;
|
|
14
|
+
ariaAndDataProps?: AriaAndDataProps;
|
|
14
15
|
}
|
|
15
|
-
export declare const MinutesInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, isFocused, }: MinutesInputsPropsT) => JSX.Element>;
|
|
16
|
+
export declare const MinutesInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, isFocused, ariaAndDataProps, }: MinutesInputsPropsT) => JSX.Element>;
|
|
16
17
|
export {};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import type { WeakValidationMap } from 'react';
|
|
2
2
|
import type React from 'react';
|
|
3
|
+
import { ControlledDateTimePickerDatatestid } from './ControlledDateTimePickerDatatestid';
|
|
3
4
|
export declare namespace DSControlledDateTimePickerT {
|
|
5
|
+
type DataTestIdType = typeof ControlledDateTimePickerDatatestid;
|
|
6
|
+
type FlatDataTestIdValues = {
|
|
7
|
+
[K in keyof DataTestIdType]: DataTestIdType[K] extends Record<string, unknown> ? DataTestIdType[K][keyof DataTestIdType[K]] : DataTestIdType[K];
|
|
8
|
+
}[keyof DataTestIdType];
|
|
9
|
+
type AriaAndDataPropsPerDataTestId = {
|
|
10
|
+
[key in FlatDataTestIdValues]?: AriaAndDataPropsOrPropsGetter;
|
|
11
|
+
};
|
|
4
12
|
type OnInternalValuesChangeEvent = React.ChangeEvent<HTMLInputElement> | React.KeyboardEvent<HTMLInputElement> | React.KeyboardEvent<HTMLButtonElement> | React.KeyboardEvent | React.MouseEvent<HTMLInputElement> | React.MouseEvent<HTMLButtonElement>;
|
|
5
13
|
type ControlTypes = 'full-date-time' | 'date-time-inputs' | 'date-time-picker' | 'date-time-picker-controller-only' | 'full-date' | 'date-inputs' | 'date-picker' | 'date-picker-controller-only' | 'full-time' | 'time-inputs' | 'time-picker' | 'time-picker-controller-only';
|
|
6
14
|
interface InternalInputsChangeMetaInfo {
|
|
@@ -36,7 +44,7 @@ export declare namespace DSControlledDateTimePickerT {
|
|
|
36
44
|
autoFocus: boolean;
|
|
37
45
|
preventCloseOnSelection: boolean;
|
|
38
46
|
}
|
|
39
|
-
interface OptionalDatePickerProps {
|
|
47
|
+
interface OptionalDatePickerProps extends AriaAndDataPropsPerDataTestId {
|
|
40
48
|
emptyPickerStartingMonth?: string;
|
|
41
49
|
onCalendarOpenFocusedDay?: string;
|
|
42
50
|
pickerFooterMsg?: string;
|
|
@@ -63,7 +71,7 @@ export declare namespace DSControlledDateTimePickerT {
|
|
|
63
71
|
autoFocus: boolean;
|
|
64
72
|
preventCloseOnSelection: boolean;
|
|
65
73
|
}
|
|
66
|
-
interface OptionalTimePickerProps {
|
|
74
|
+
interface OptionalTimePickerProps extends AriaAndDataPropsPerDataTestId {
|
|
67
75
|
pickerFooterMsg?: string;
|
|
68
76
|
onTimeWheelOpenStartingTime?: string;
|
|
69
77
|
innerRef?: React.MutableRefObject<HTMLInputElement | HTMLButtonElement>;
|
|
@@ -79,7 +87,7 @@ export declare namespace DSControlledDateTimePickerT {
|
|
|
79
87
|
onDateChange: OnDateChange;
|
|
80
88
|
onTimeChange: OnTimeChange;
|
|
81
89
|
};
|
|
82
|
-
type OptionalDateTimeProps = OptionalTimePickerProps & OptionalDatePickerProps;
|
|
90
|
+
type OptionalDateTimeProps = AriaAndDataPropsPerDataTestId & OptionalTimePickerProps & OptionalDatePickerProps;
|
|
83
91
|
interface RequiredDateTimeProps {
|
|
84
92
|
type: 'full-date-time' | 'date-time-inputs' | 'date-time-picker' | 'date-time-picker-controller-only';
|
|
85
93
|
dateTime: string;
|
|
@@ -23,7 +23,7 @@ export declare namespace DSControlledDateTimePickerInternalsT {
|
|
|
23
23
|
day: string;
|
|
24
24
|
year: string;
|
|
25
25
|
autoFocusMonthInput: boolean;
|
|
26
|
-
innerRefMonthInput?:
|
|
26
|
+
innerRefMonthInput?: React.MutableRefObject<HTMLInputElement | HTMLButtonElement | null>;
|
|
27
27
|
disabled: boolean;
|
|
28
28
|
onMonthChange: OnChangeFunc;
|
|
29
29
|
onDayChange: OnChangeFunc;
|