@elliemae/ds-controlled-form 2.4.2-rc.0 → 2.4.2-rc.9
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/cjs/autocomplete/config/useAutocomplete.js +1 -3
- package/cjs/checkbox/ControlledCheckbox.js +49 -33
- package/cjs/checkbox/exported-related/data-test-ids.js +10 -0
- package/cjs/checkbox/exported-related/index.js +12 -0
- package/cjs/checkbox/exported-related/theming.js +13 -0
- package/cjs/checkbox/react-desc-prop-types.js +0 -1
- package/cjs/checkbox/styles.js +26 -15
- package/cjs/combobox/ComboBoxCTX.js +1 -1
- package/cjs/combobox/ComboboxDataTestids.js +1 -1
- package/cjs/combobox/config/useComboBox.js +6 -4
- package/cjs/combobox/index.js +5 -0
- package/cjs/combobox/parts/DropdownIndicator.js +2 -2
- package/cjs/combobox/parts/container/Container.js +5 -5
- package/cjs/combobox/parts/container/styled.js +13 -7
- package/cjs/combobox/parts/controls/Controls.js +14 -4
- package/cjs/combobox/parts/controls/styled.js +22 -13
- package/cjs/combobox/parts/controls-input/ControlsInput.js +1 -1
- package/cjs/combobox/parts/controls-input/styled.js +7 -3
- package/cjs/combobox/parts/controls-input/useControlsInput.js +3 -4
- package/cjs/combobox/parts/controls-input/useKeyboardNavigation.js +30 -15
- package/cjs/combobox/parts/header-list/HeaderList.js +4 -3
- package/cjs/combobox/parts/header-list/useHeaderListHandlers.js +9 -5
- package/cjs/combobox/parts/menu-list/MenuList.js +5 -2
- package/cjs/combobox/parts/menu-list/styled.js +12 -7
- package/cjs/combobox/parts/menu-list/useItemRenderer.js +5 -4
- package/cjs/combobox/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +1 -1
- package/cjs/combobox/parts/multi-selected-values-container/RemovableSelectedValuePill.js +2 -0
- package/cjs/combobox/parts/multi-selected-values-container/useGroupPills.js +13 -10
- package/cjs/combobox/theming.js +13 -0
- package/cjs/combobox/utils/listHelper.js +2 -1
- package/cjs/date-time-picker/config/useChangeHandlers.js +8 -12
- package/cjs/date-time-picker/config/useControlledDateTimePicker.js +13 -9
- package/cjs/date-time-picker/config/useFocusTracker.js +136 -0
- package/cjs/date-time-picker/config/useGetReferences.js +40 -19
- package/cjs/date-time-picker/config/useGlobalKeyHandlers.js +8 -12
- package/cjs/date-time-picker/parts/ClearButton/ClearButton.js +12 -2
- package/cjs/date-time-picker/parts/ClearButton/useClearButton.js +12 -25
- package/cjs/date-time-picker/parts/ControlledDateTimePickerContent.js +4 -7
- package/cjs/date-time-picker/parts/DateInputs/DDInput.js +8 -2
- package/cjs/date-time-picker/parts/DateInputs/DateInputs.js +9 -4
- package/cjs/date-time-picker/parts/DateInputs/MMInput.js +8 -2
- package/cjs/date-time-picker/parts/DateInputs/YYYYInput.js +8 -2
- package/cjs/date-time-picker/parts/DateInputs/useDateInputs.js +76 -95
- package/cjs/date-time-picker/parts/Pickers/Calendar/CalendarHead.js +31 -5
- package/cjs/date-time-picker/parts/Pickers/Calendar/Day.js +16 -10
- package/cjs/date-time-picker/parts/Pickers/Calendar/useConfigCalendarCTX.js +12 -12
- package/cjs/date-time-picker/parts/Pickers/Calendar/useFocusLogic.js +2 -38
- package/cjs/date-time-picker/parts/Pickers/Calendar/useKeyboardHandlers.js +40 -73
- package/cjs/date-time-picker/parts/Pickers/Calendar/usePopperTriggerLogic.js +18 -27
- package/cjs/date-time-picker/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js +1 -0
- package/cjs/date-time-picker/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.js +17 -23
- package/cjs/date-time-picker/parts/Pickers/TimeWheel/HoursList.js +13 -7
- package/cjs/date-time-picker/parts/Pickers/TimeWheel/MeridiemList.js +14 -8
- package/cjs/date-time-picker/parts/Pickers/TimeWheel/MinutesList.js +13 -7
- package/cjs/date-time-picker/parts/Pickers/TimeWheel/useKeyboardHandlers.js +36 -230
- package/cjs/date-time-picker/parts/Pickers/TimeWheel/usePopperTriggerLogic.js +11 -13
- package/cjs/date-time-picker/parts/TimeInputs/HHInput.js +8 -2
- package/cjs/date-time-picker/parts/TimeInputs/MeridiemInput.js +8 -2
- package/cjs/date-time-picker/parts/TimeInputs/MinutesInput.js +8 -2
- package/cjs/date-time-picker/parts/TimeInputs/TimeInputs.js +11 -6
- package/cjs/date-time-picker/parts/TimeInputs/useTimeInputs.js +44 -74
- package/cjs/date-time-picker/utils/constants.js +0 -12
- package/cjs/date-time-picker/utils/hooks/useGetStartingFocusedDay.js +38 -36
- package/cjs/index.js +16 -7
- package/cjs/input-group/InputGroup.js +69 -0
- package/cjs/input-group/InputGroupDataTestIds.js +12 -0
- package/cjs/input-group/index.js +12 -0
- package/cjs/input-group/react-desc-prop-types.js +14 -0
- package/cjs/input-group/styled.js +46 -0
- package/cjs/mask-hook/hooks/index.js +0 -1
- package/cjs/mask-hook/hooks/usePhoneMask.js +2 -2
- package/cjs/mask-hook/hooks/useRegExpMask.js +0 -1
- package/cjs/mask-hook/index.js +0 -1
- package/cjs/text-input/styled/borders.js +1 -1
- package/esm/autocomplete/config/useAutocomplete.js +1 -3
- package/esm/checkbox/ControlledCheckbox.js +52 -36
- package/esm/checkbox/exported-related/data-test-ids.js +6 -0
- package/esm/checkbox/exported-related/index.js +2 -0
- package/esm/checkbox/exported-related/theming.js +8 -0
- package/esm/checkbox/react-desc-prop-types.js +0 -1
- package/esm/checkbox/styles.js +25 -15
- package/esm/combobox/ComboBoxCTX.js +1 -1
- package/esm/combobox/ComboboxDataTestids.js +1 -1
- package/esm/combobox/config/useComboBox.js +6 -4
- package/esm/combobox/index.js +2 -0
- package/esm/combobox/parts/DropdownIndicator.js +2 -2
- package/esm/combobox/parts/container/Container.js +7 -7
- package/esm/combobox/parts/container/styled.js +13 -6
- package/esm/combobox/parts/controls/Controls.js +14 -4
- package/esm/combobox/parts/controls/styled.js +22 -13
- package/esm/combobox/parts/controls-input/ControlsInput.js +1 -1
- package/esm/combobox/parts/controls-input/styled.js +7 -3
- package/esm/combobox/parts/controls-input/useControlsInput.js +3 -4
- package/esm/combobox/parts/controls-input/useKeyboardNavigation.js +30 -15
- package/esm/combobox/parts/header-list/HeaderList.js +4 -3
- package/esm/combobox/parts/header-list/useHeaderListHandlers.js +9 -5
- package/esm/combobox/parts/menu-list/MenuList.js +5 -2
- package/esm/combobox/parts/menu-list/styled.js +12 -7
- package/esm/combobox/parts/menu-list/useItemRenderer.js +5 -4
- package/esm/combobox/parts/multi-selected-values-container/MultiSelectedValuesContainer.js +1 -1
- package/esm/combobox/parts/multi-selected-values-container/RemovableSelectedValuePill.js +2 -0
- package/esm/combobox/parts/multi-selected-values-container/useGroupPills.js +13 -10
- package/esm/combobox/theming.js +8 -0
- package/esm/combobox/utils/listHelper.js +2 -1
- package/esm/date-time-picker/config/useChangeHandlers.js +8 -12
- package/esm/date-time-picker/config/useControlledDateTimePicker.js +13 -9
- package/esm/date-time-picker/config/useFocusTracker.js +132 -0
- package/esm/date-time-picker/config/useGetReferences.js +41 -20
- package/esm/date-time-picker/config/useGlobalKeyHandlers.js +8 -12
- package/esm/date-time-picker/parts/ClearButton/ClearButton.js +12 -2
- package/esm/date-time-picker/parts/ClearButton/useClearButton.js +12 -25
- package/esm/date-time-picker/parts/ControlledDateTimePickerContent.js +4 -7
- package/esm/date-time-picker/parts/DateInputs/DDInput.js +8 -2
- package/esm/date-time-picker/parts/DateInputs/DateInputs.js +9 -4
- package/esm/date-time-picker/parts/DateInputs/MMInput.js +8 -2
- package/esm/date-time-picker/parts/DateInputs/YYYYInput.js +8 -2
- package/esm/date-time-picker/parts/DateInputs/useDateInputs.js +77 -96
- package/esm/date-time-picker/parts/Pickers/Calendar/CalendarHead.js +32 -6
- package/esm/date-time-picker/parts/Pickers/Calendar/Day.js +16 -10
- package/esm/date-time-picker/parts/Pickers/Calendar/useConfigCalendarCTX.js +12 -12
- package/esm/date-time-picker/parts/Pickers/Calendar/useFocusLogic.js +3 -39
- package/esm/date-time-picker/parts/Pickers/Calendar/useKeyboardHandlers.js +40 -73
- package/esm/date-time-picker/parts/Pickers/Calendar/usePopperTriggerLogic.js +18 -27
- package/esm/date-time-picker/parts/Pickers/CalendarWithTimeWheel/CalendarWithTimeWheelIconTrigger.js +1 -0
- package/esm/date-time-picker/parts/Pickers/CalendarWithTimeWheel/useConfigCalendarWithTimeWheelCTX.js +17 -23
- package/esm/date-time-picker/parts/Pickers/TimeWheel/HoursList.js +14 -8
- package/esm/date-time-picker/parts/Pickers/TimeWheel/MeridiemList.js +15 -9
- package/esm/date-time-picker/parts/Pickers/TimeWheel/MinutesList.js +14 -8
- package/esm/date-time-picker/parts/Pickers/TimeWheel/useKeyboardHandlers.js +36 -230
- package/esm/date-time-picker/parts/Pickers/TimeWheel/usePopperTriggerLogic.js +11 -13
- package/esm/date-time-picker/parts/TimeInputs/HHInput.js +8 -2
- package/esm/date-time-picker/parts/TimeInputs/MeridiemInput.js +8 -2
- package/esm/date-time-picker/parts/TimeInputs/MinutesInput.js +8 -2
- package/esm/date-time-picker/parts/TimeInputs/TimeInputs.js +11 -6
- package/esm/date-time-picker/parts/TimeInputs/useTimeInputs.js +44 -74
- package/esm/date-time-picker/utils/constants.js +1 -7
- package/esm/date-time-picker/utils/hooks/useGetStartingFocusedDay.js +38 -36
- package/esm/index.js +5 -1
- package/esm/input-group/InputGroup.js +59 -0
- package/esm/input-group/InputGroupDataTestIds.js +8 -0
- package/esm/input-group/index.js +2 -0
- package/esm/input-group/react-desc-prop-types.js +10 -0
- package/esm/input-group/styled.js +35 -0
- package/esm/mask-hook/hooks/index.js +1 -1
- package/esm/mask-hook/hooks/usePhoneMask.js +2 -2
- package/esm/mask-hook/hooks/useRegExpMask.js +1 -1
- package/esm/mask-hook/index.js +1 -1
- package/esm/text-input/styled/borders.js +1 -1
- package/package.json +55 -19
- package/types/checkbox/exported-related/data-test-ids.d.ts +4 -0
- package/types/checkbox/exported-related/index.d.ts +2 -0
- package/types/checkbox/exported-related/theming.d.ts +6 -0
- package/types/checkbox/react-desc-prop-types.d.ts +3 -3
- package/types/checkbox/styles.d.ts +5 -5
- package/types/combobox/ComboboxDataTestids.d.ts +1 -1
- package/types/combobox/index.d.ts +2 -0
- package/types/combobox/parts/container/styled.d.ts +1 -2
- package/types/combobox/theming.d.ts +6 -0
- package/types/date-time-picker/config/useChangeHandlers.d.ts +3 -1
- package/types/date-time-picker/config/useControlledDateTimePicker.d.ts +2 -5
- package/types/date-time-picker/config/useFocusTracker.d.ts +38 -0
- package/types/date-time-picker/config/useGetPropsBasedOnType.d.ts +6 -6
- package/types/date-time-picker/config/useGetReferences.d.ts +30 -36
- package/types/date-time-picker/config/useGlobalKeyHandlers.d.ts +3 -1
- package/types/date-time-picker/parts/DateInputs/DDInput.d.ts +2 -1
- package/types/date-time-picker/parts/DateInputs/MMInput.d.ts +2 -1
- package/types/date-time-picker/parts/DateInputs/YYYYInput.d.ts +2 -1
- package/types/date-time-picker/parts/Pickers/Calendar/useConfigCalendarCTX.d.ts +14 -0
- package/types/date-time-picker/parts/Pickers/Calendar/useFocusLogic.d.ts +1 -2
- package/types/date-time-picker/parts/Pickers/Calendar/usePopperTriggerLogic.d.ts +19 -0
- package/types/date-time-picker/parts/Pickers/TimeWheel/useKeyboardHandlers.d.ts +0 -6
- package/types/date-time-picker/parts/Pickers/TimeWheel/usePopperTriggerLogic.d.ts +14 -0
- package/types/date-time-picker/parts/TimeInputs/HHInput.d.ts +2 -1
- package/types/date-time-picker/parts/TimeInputs/MeridiemInput.d.ts +2 -1
- package/types/date-time-picker/parts/TimeInputs/MinutesInput.d.ts +2 -1
- package/types/date-time-picker/propTypes.d.ts +117 -0
- package/types/date-time-picker/sharedTypes.d.ts +1 -1
- package/types/date-time-picker/utils/constants.d.ts +0 -6
- package/types/index.d.ts +1 -0
- package/types/input-group/InputGroup.d.ts +5 -0
- package/types/input-group/InputGroupDataTestIds.d.ts +6 -0
- package/types/input-group/index.d.ts +2 -0
- package/types/input-group/react-desc-prop-types.d.ts +19 -0
- package/types/input-group/styled.d.ts +7 -0
- package/types/input-group/tests/DSInputGroup.test.d.ts +1 -0
- package/types/mask-hook/hooks/useRegExpMask.d.ts +0 -1
- package/types/text-input/config/useInputText.d.ts +5 -5
- package/cjs/combobox/parts/menu-list/useMenuListSetFocusOption.js +0 -51
- package/esm/combobox/parts/menu-list/useMenuListSetFocusOption.js +0 -47
- package/types/combobox/parts/menu-list/useMenuListSetFocusOption.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-controlled-form",
|
|
3
|
-
"version": "2.4.2-rc.
|
|
3
|
+
"version": "2.4.2-rc.9",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Controlled Form Controllers",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -159,6 +159,26 @@
|
|
|
159
159
|
"import": "./esm/large-text-input/DSControlledLargeTextInput.js",
|
|
160
160
|
"require": "./cjs/large-text-input/DSControlledLargeTextInput.js"
|
|
161
161
|
},
|
|
162
|
+
"./input-group/styled": {
|
|
163
|
+
"import": "./esm/input-group/styled.js",
|
|
164
|
+
"require": "./cjs/input-group/styled.js"
|
|
165
|
+
},
|
|
166
|
+
"./input-group/react-desc-prop-types": {
|
|
167
|
+
"import": "./esm/input-group/react-desc-prop-types.js",
|
|
168
|
+
"require": "./cjs/input-group/react-desc-prop-types.js"
|
|
169
|
+
},
|
|
170
|
+
"./input-group/InputGroupDataTestIds": {
|
|
171
|
+
"import": "./esm/input-group/InputGroupDataTestIds.js",
|
|
172
|
+
"require": "./cjs/input-group/InputGroupDataTestIds.js"
|
|
173
|
+
},
|
|
174
|
+
"./input-group/InputGroup": {
|
|
175
|
+
"import": "./esm/input-group/InputGroup.js",
|
|
176
|
+
"require": "./cjs/input-group/InputGroup.js"
|
|
177
|
+
},
|
|
178
|
+
"./input-group": {
|
|
179
|
+
"import": "./esm/input-group/index.js",
|
|
180
|
+
"require": "./cjs/input-group/index.js"
|
|
181
|
+
},
|
|
162
182
|
"./date-time-picker/utils/typeGuards": {
|
|
163
183
|
"import": "./esm/date-time-picker/utils/typeGuards.js",
|
|
164
184
|
"require": "./cjs/date-time-picker/utils/typeGuards.js"
|
|
@@ -491,6 +511,10 @@
|
|
|
491
511
|
"import": "./esm/date-time-picker/config/useGetDestructuredValues.js",
|
|
492
512
|
"require": "./cjs/date-time-picker/config/useGetDestructuredValues.js"
|
|
493
513
|
},
|
|
514
|
+
"./date-time-picker/config/useFocusTracker": {
|
|
515
|
+
"import": "./esm/date-time-picker/config/useFocusTracker.js",
|
|
516
|
+
"require": "./cjs/date-time-picker/config/useFocusTracker.js"
|
|
517
|
+
},
|
|
494
518
|
"./date-time-picker/config/useControlledDateTimePicker": {
|
|
495
519
|
"import": "./esm/date-time-picker/config/useControlledDateTimePicker.js",
|
|
496
520
|
"require": "./cjs/date-time-picker/config/useControlledDateTimePicker.js"
|
|
@@ -559,6 +583,10 @@
|
|
|
559
583
|
"import": "./esm/combobox/utils/listHelper.js",
|
|
560
584
|
"require": "./cjs/combobox/utils/listHelper.js"
|
|
561
585
|
},
|
|
586
|
+
"./combobox/theming": {
|
|
587
|
+
"import": "./esm/combobox/theming.js",
|
|
588
|
+
"require": "./cjs/combobox/theming.js"
|
|
589
|
+
},
|
|
562
590
|
"./combobox/tests/utils": {
|
|
563
591
|
"import": "./esm/combobox/tests/utils.js",
|
|
564
592
|
"require": "./cjs/combobox/tests/utils.js"
|
|
@@ -591,10 +619,6 @@
|
|
|
591
619
|
"import": "./esm/combobox/parts/multi-selected-values-container/index.js",
|
|
592
620
|
"require": "./cjs/combobox/parts/multi-selected-values-container/index.js"
|
|
593
621
|
},
|
|
594
|
-
"./combobox/parts/menu-list/useMenuListSetFocusOption": {
|
|
595
|
-
"import": "./esm/combobox/parts/menu-list/useMenuListSetFocusOption.js",
|
|
596
|
-
"require": "./cjs/combobox/parts/menu-list/useMenuListSetFocusOption.js"
|
|
597
|
-
},
|
|
598
622
|
"./combobox/parts/menu-list/useItemRenderer": {
|
|
599
623
|
"import": "./esm/combobox/parts/menu-list/useItemRenderer.js",
|
|
600
624
|
"require": "./cjs/combobox/parts/menu-list/useItemRenderer.js"
|
|
@@ -743,6 +767,18 @@
|
|
|
743
767
|
"import": "./esm/checkbox/index.js",
|
|
744
768
|
"require": "./cjs/checkbox/index.js"
|
|
745
769
|
},
|
|
770
|
+
"./checkbox/exported-related/theming": {
|
|
771
|
+
"import": "./esm/checkbox/exported-related/theming.js",
|
|
772
|
+
"require": "./cjs/checkbox/exported-related/theming.js"
|
|
773
|
+
},
|
|
774
|
+
"./checkbox/exported-related": {
|
|
775
|
+
"import": "./esm/checkbox/exported-related/index.js",
|
|
776
|
+
"require": "./cjs/checkbox/exported-related/index.js"
|
|
777
|
+
},
|
|
778
|
+
"./checkbox/exported-related/data-test-ids": {
|
|
779
|
+
"import": "./esm/checkbox/exported-related/data-test-ids.js",
|
|
780
|
+
"require": "./cjs/checkbox/exported-related/data-test-ids.js"
|
|
781
|
+
},
|
|
746
782
|
"./checkbox/ControlledCheckbox": {
|
|
747
783
|
"import": "./esm/checkbox/ControlledCheckbox.js",
|
|
748
784
|
"require": "./cjs/checkbox/ControlledCheckbox.js"
|
|
@@ -840,20 +876,20 @@
|
|
|
840
876
|
"build": "node ../../scripts/build/build.js"
|
|
841
877
|
},
|
|
842
878
|
"dependencies": {
|
|
843
|
-
"@elliemae/ds-button": "2.4.2-rc.
|
|
844
|
-
"@elliemae/ds-circular-progress-indicator": "2.4.2-rc.
|
|
845
|
-
"@elliemae/ds-controlled-form": "2.4.2-rc.
|
|
846
|
-
"@elliemae/ds-form": "2.4.2-rc.
|
|
847
|
-
"@elliemae/ds-form-layout-blocks": "2.4.2-rc.
|
|
848
|
-
"@elliemae/ds-grid": "2.4.2-rc.
|
|
849
|
-
"@elliemae/ds-icon": "2.4.2-rc.
|
|
850
|
-
"@elliemae/ds-icons": "2.4.2-rc.
|
|
851
|
-
"@elliemae/ds-pills": "2.4.2-rc.
|
|
852
|
-
"@elliemae/ds-popperjs": "2.4.2-rc.
|
|
853
|
-
"@elliemae/ds-props-helpers": "2.4.2-rc.
|
|
854
|
-
"@elliemae/ds-system": "2.4.2-rc.
|
|
855
|
-
"@elliemae/ds-tooltip": "2.4.2-rc.
|
|
856
|
-
"@elliemae/ds-truncated-tooltip-text": "2.4.2-rc.
|
|
879
|
+
"@elliemae/ds-button": "2.4.2-rc.9",
|
|
880
|
+
"@elliemae/ds-circular-progress-indicator": "2.4.2-rc.9",
|
|
881
|
+
"@elliemae/ds-controlled-form": "2.4.2-rc.9",
|
|
882
|
+
"@elliemae/ds-form": "2.4.2-rc.9",
|
|
883
|
+
"@elliemae/ds-form-layout-blocks": "2.4.2-rc.9",
|
|
884
|
+
"@elliemae/ds-grid": "2.4.2-rc.9",
|
|
885
|
+
"@elliemae/ds-icon": "2.4.2-rc.9",
|
|
886
|
+
"@elliemae/ds-icons": "2.4.2-rc.9",
|
|
887
|
+
"@elliemae/ds-pills": "2.4.2-rc.9",
|
|
888
|
+
"@elliemae/ds-popperjs": "2.4.2-rc.9",
|
|
889
|
+
"@elliemae/ds-props-helpers": "2.4.2-rc.9",
|
|
890
|
+
"@elliemae/ds-system": "2.4.2-rc.9",
|
|
891
|
+
"@elliemae/ds-tooltip": "2.4.2-rc.9",
|
|
892
|
+
"@elliemae/ds-truncated-tooltip-text": "2.4.2-rc.9",
|
|
857
893
|
"prop-types": "~15.7.2",
|
|
858
894
|
"react-desc": "~4.1.3",
|
|
859
895
|
"react-popper": "~2.2.5",
|
|
@@ -12,8 +12,8 @@ export declare namespace DSControlledCheckboxT {
|
|
|
12
12
|
innerRef: React.RefObject<HTMLInputElement> | React.LegacyRef<HTMLInputElement>;
|
|
13
13
|
}
|
|
14
14
|
interface LegacyAriaProps {
|
|
15
|
-
ariaControls
|
|
16
|
-
ariaLabel
|
|
15
|
+
ariaControls: string;
|
|
16
|
+
ariaLabel: string;
|
|
17
17
|
}
|
|
18
18
|
interface Props extends DefaultProps, OptionalProps, Omit<GlobalAttributesT, 'checked'>, LegacyAriaProps {
|
|
19
19
|
}
|
|
@@ -27,12 +27,12 @@ export declare namespace DSControlledCheckboxT {
|
|
|
27
27
|
disabled?: boolean;
|
|
28
28
|
readOnly?: boolean;
|
|
29
29
|
checked: boolean | 'mixed';
|
|
30
|
+
wrapLabel: boolean;
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
export declare const defaultProps: Partial<DSControlledCheckboxT.Props>;
|
|
33
34
|
export declare const propTypes: {
|
|
34
35
|
label: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
35
|
-
wrapLabel: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
36
36
|
hasError: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
37
37
|
innerRef: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
38
38
|
'aria-*': import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const StyledLabel:
|
|
1
|
+
export declare const StyledContainer: any;
|
|
2
|
+
export declare const StyledCheckBox: any;
|
|
3
|
+
export declare const StyledInput: any;
|
|
4
|
+
export declare const StyledInputMixed: any;
|
|
5
|
+
export declare const StyledLabel: any;
|
|
@@ -2,6 +2,7 @@ import { useRelevantValueFromProps } from './useRelevantValueFromProps';
|
|
|
2
2
|
import { useGetDestructuredValues } from './useGetDestructuredValues';
|
|
3
3
|
import { useGetPropsBasedOnType } from './useGetPropsBasedOnType';
|
|
4
4
|
import { useGetReferences } from './useGetReferences';
|
|
5
|
+
import { useFocusTracker } from './useFocusTracker';
|
|
5
6
|
import type { DSControlledDateTimePickerT } from '../propTypes';
|
|
6
7
|
import type { DSControlledDateTimePickerInternalsT } from '../sharedTypes';
|
|
7
8
|
interface Config {
|
|
@@ -9,8 +10,9 @@ interface Config {
|
|
|
9
10
|
destructuredValues: ReturnType<typeof useGetDestructuredValues>;
|
|
10
11
|
propsBasedOnType: ReturnType<typeof useGetPropsBasedOnType>;
|
|
11
12
|
DOMRefs: ReturnType<typeof useGetReferences>;
|
|
13
|
+
focusTrackers: ReturnType<typeof useFocusTracker>;
|
|
12
14
|
}
|
|
13
|
-
export declare const useChangeHandlers: ({ relevantValues, destructuredValues, propsBasedOnType,
|
|
15
|
+
export declare const useChangeHandlers: ({ relevantValues, destructuredValues, propsBasedOnType, focusTrackers }: Config) => {
|
|
14
16
|
handleChangeComposedDateTimeString: (newDateString: string, newTimeString: string, metaInfo: DSControlledDateTimePickerT.InternalInputsChangeMetaInfo) => void;
|
|
15
17
|
handleChangeComposedDateString: (newDateString: string, metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo>) => void;
|
|
16
18
|
handleChangeComposedTimeString: (newTimeString: string, metaInfo: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo>) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useFocusTracker } from './useFocusTracker';
|
|
2
2
|
import { useGetFlags } from './useGetFlags';
|
|
3
3
|
import { useGetReferences } from './useGetReferences';
|
|
4
4
|
import { useRelevantValueFromProps } from './useRelevantValueFromProps';
|
|
@@ -7,12 +7,9 @@ import { useGetDestructuredValues } from './useGetDestructuredValues';
|
|
|
7
7
|
import { useChangeHandlers } from './useChangeHandlers';
|
|
8
8
|
import { useGlobalKeyHandlers } from './useGlobalKeyHandlers';
|
|
9
9
|
import type { DSControlledDateTimePickerT } from '../propTypes';
|
|
10
|
-
export declare type
|
|
11
|
-
export declare type ControlledDateTimePickerContextT = ReturnType<typeof useGetFlags> & ReturnType<typeof useGetReferences> & ReturnType<typeof useGetPropsBasedOnType> & ReturnType<typeof useRelevantValueFromProps> & ReturnType<typeof useGetDestructuredValues> & ReturnType<typeof useChangeHandlers> & ReturnType<typeof useGlobalKeyHandlers> & {
|
|
10
|
+
export declare type ControlledDateTimePickerContextT = ReturnType<typeof useGetFlags> & ReturnType<typeof useFocusTracker> & ReturnType<typeof useGetReferences> & ReturnType<typeof useGetPropsBasedOnType> & ReturnType<typeof useRelevantValueFromProps> & ReturnType<typeof useGetDestructuredValues> & ReturnType<typeof useChangeHandlers> & ReturnType<typeof useGlobalKeyHandlers> & {
|
|
12
11
|
props: DSControlledDateTimePickerT.InternalProps;
|
|
13
12
|
ariaCurrentValueForInputs: string;
|
|
14
13
|
dataAttrs: Record<string, string>;
|
|
15
|
-
latestInteractionRegion: LatestInteractionRegion;
|
|
16
|
-
setLatestInteractionRegion: React.Dispatch<React.SetStateAction<LatestInteractionRegion>>;
|
|
17
14
|
};
|
|
18
15
|
export declare const useControlledDateTimePicker: (props: DSControlledDateTimePickerT.Props) => ControlledDateTimePickerContextT;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { useGetReferences } from './useGetReferences';
|
|
3
|
+
import { useGetFlags } from './useGetFlags';
|
|
4
|
+
declare type LatestInteractionRegion = 'calendar-days' | 'calendar-head' | 'timewheel' | 'date-inputs' | 'time-inputs' | 'clear-btn' | 'picker-icon' | '';
|
|
5
|
+
declare type CurrFocusDescriber = 'first-segment' | 'month-input' | 'day-input' | 'year-input' | 'hour-input' | 'minute-input' | 'meridiem-input' | 'last-segment' | 'clear-btn' | 'date-picker-icon' | 'time-picker-icon' | 'datetime-picker-icon' | 'calendar-prev-month' | 'calendar-next-month' | 'calendar-prev-year' | 'calendar-next-year' | 'calendar-metafocused-day' | 'timewheel-curr-hour' | 'timewheel-curr-minute' | 'timewheel-curr-meridiem' | '';
|
|
6
|
+
interface Config {
|
|
7
|
+
DOMRefs: ReturnType<typeof useGetReferences>;
|
|
8
|
+
flags: ReturnType<typeof useGetFlags>;
|
|
9
|
+
}
|
|
10
|
+
export declare const useFocusTracker: ({ DOMRefs, flags }: Config) => {
|
|
11
|
+
latestInteractionRegion: LatestInteractionRegion;
|
|
12
|
+
setLatestInteractionRegion: import("react").Dispatch<import("react").SetStateAction<LatestInteractionRegion>>;
|
|
13
|
+
currFocusDescriber: CurrFocusDescriber;
|
|
14
|
+
setCurrFocusDescriber: import("react").Dispatch<import("react").SetStateAction<CurrFocusDescriber>>;
|
|
15
|
+
trackFocusResetter: () => void;
|
|
16
|
+
trackFocusMonthInput: () => void;
|
|
17
|
+
trackFocusDayInput: () => void;
|
|
18
|
+
trackFocusYearInput: () => void;
|
|
19
|
+
trackFocusHourInput: () => void;
|
|
20
|
+
trackFocusMinuteInput: () => void;
|
|
21
|
+
trackFocusMeridiemInput: () => void;
|
|
22
|
+
trackFocusClearBtn: () => void;
|
|
23
|
+
trackFocusDatePickerIcon: () => void;
|
|
24
|
+
trackFocusTimePickerIcon: () => void;
|
|
25
|
+
trackFocusDatetimePickerIcon: () => void;
|
|
26
|
+
trackFocusCalendarPrevMonth: () => void;
|
|
27
|
+
trackFocusCalendarNextMonth: () => void;
|
|
28
|
+
trackFocusCalendarPrevYear: () => void;
|
|
29
|
+
trackFocusCalendarNextYear: () => void;
|
|
30
|
+
trackFocusCalendarMetafocusedDay: () => void;
|
|
31
|
+
trackFocusTimewheelCurrHour: () => void;
|
|
32
|
+
trackFocusTimewheelCurrMinute: () => void;
|
|
33
|
+
trackFocusTimewheelCurrMeridiem: () => void;
|
|
34
|
+
trackFocusPicker: () => void;
|
|
35
|
+
trackFocusFirstSegment: () => void;
|
|
36
|
+
trackFocusLastSegment: () => void;
|
|
37
|
+
};
|
|
38
|
+
export {};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import type { DSControlledDateTimePickerT } from '../propTypes';
|
|
2
2
|
export declare const useGetPropsBasedOnType: (propsWithDefaults: DSControlledDateTimePickerT.InternalProps) => {
|
|
3
|
-
getIsDisabledDay:
|
|
4
|
-
getIsOutOfRangeDay:
|
|
5
|
-
getIsStartRangeDay:
|
|
6
|
-
getIsDayInRange:
|
|
7
|
-
getIsEndRangeDay:
|
|
3
|
+
getIsDisabledDay: BooleanGetter<string>;
|
|
4
|
+
getIsOutOfRangeDay: BooleanGetter<string>;
|
|
5
|
+
getIsStartRangeDay: BooleanGetter<string> | (() => void);
|
|
6
|
+
getIsDayInRange: BooleanGetter<string> | (() => void);
|
|
7
|
+
getIsEndRangeDay: BooleanGetter<string> | (() => void);
|
|
8
8
|
appOnDateChange: DSControlledDateTimePickerT.OnDateChange;
|
|
9
9
|
appOnMonthChange: DSControlledDateTimePickerT.OnInternalInputsChange;
|
|
10
10
|
appOnDayChange: DSControlledDateTimePickerT.OnInternalInputsChange;
|
|
11
11
|
appOnYearChange: DSControlledDateTimePickerT.OnInternalInputsChange;
|
|
12
12
|
appDate: string;
|
|
13
|
-
getIsDisabledTime:
|
|
13
|
+
getIsDisabledTime: BooleanGetter<string>;
|
|
14
14
|
appOnTimeChange: DSControlledDateTimePickerT.OnTimeChange;
|
|
15
15
|
appOnHourChange: DSControlledDateTimePickerT.OnInternalInputsChange;
|
|
16
16
|
appOnMinuteChange: DSControlledDateTimePickerT.OnInternalInputsChange;
|
|
@@ -1,39 +1,33 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { useGetFlags } from './useGetFlags';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
lastFragmentRefUpdateDeps: {
|
|
34
|
-
withAnyPicker: boolean;
|
|
35
|
-
withClearBtn: boolean;
|
|
36
|
-
isWithTimeInputs: boolean;
|
|
37
|
-
isWithDateInputs: boolean;
|
|
38
|
-
};
|
|
3
|
+
declare type FirstSegment = 'month-input' | 'hour-input' | 'date-picker-icon' | 'time-picker-icon' | 'datetime-picker-icon' | '';
|
|
4
|
+
declare type LastSegment = 'year-input' | 'meridiem-input' | 'clear-btn' | 'date-picker-icon' | 'time-picker-icon' | 'datetime-picker-icon' | '';
|
|
5
|
+
export declare const useGetReferences: ({ isWithDateInputs, isWithTimeInputs, isDateSelector, isTimeSelector, isDateTimeSelector, withAnyPicker, withClearBtn, }: ReturnType<typeof useGetFlags>) => {
|
|
6
|
+
monthInputRef: import("react").MutableRefObject<HTMLInputElement>;
|
|
7
|
+
dayInputRef: import("react").MutableRefObject<HTMLInputElement>;
|
|
8
|
+
yearInputRef: import("react").MutableRefObject<HTMLInputElement>;
|
|
9
|
+
hourInputRef: import("react").MutableRefObject<HTMLInputElement>;
|
|
10
|
+
minutesInputRef: import("react").MutableRefObject<HTMLInputElement>;
|
|
11
|
+
meridiemInputRef: import("react").MutableRefObject<HTMLInputElement>;
|
|
12
|
+
clearButtonRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
13
|
+
pickerButtonRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
14
|
+
prevYearBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
15
|
+
prevMonthBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
16
|
+
nextMonthBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
17
|
+
nextYearBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
18
|
+
calendarDaysWrapperRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
19
|
+
prevHourBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
20
|
+
currHourBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
21
|
+
nextHourBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
22
|
+
prevMinutesBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
23
|
+
currMinutesBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
24
|
+
nextMinutesBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
25
|
+
prevMeridiemBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
26
|
+
currMeridiemBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
27
|
+
nextMeridiemBtnRef: import("react").MutableRefObject<HTMLButtonElement>;
|
|
28
|
+
firstSegmentRef: import("react").MutableRefObject<HTMLInputElement | HTMLButtonElement>;
|
|
29
|
+
lastSegmentRef: import("react").MutableRefObject<HTMLInputElement | HTMLButtonElement>;
|
|
30
|
+
firstSegment: FirstSegment;
|
|
31
|
+
lastSegment: LastSegment;
|
|
39
32
|
};
|
|
33
|
+
export {};
|
|
@@ -2,14 +2,16 @@ import { useChangeHandlers } from './useChangeHandlers';
|
|
|
2
2
|
import { useGetPropsBasedOnType } from './useGetPropsBasedOnType';
|
|
3
3
|
import { useGetReferences } from './useGetReferences';
|
|
4
4
|
import { useGetFlags } from './useGetFlags';
|
|
5
|
+
import { useFocusTracker } from './useFocusTracker';
|
|
5
6
|
import type { DSControlledDateTimePickerT } from '../propTypes';
|
|
6
7
|
interface Config {
|
|
7
8
|
propsBasedOnType: ReturnType<typeof useGetPropsBasedOnType>;
|
|
8
9
|
changeHandlers: ReturnType<typeof useChangeHandlers>;
|
|
9
10
|
DOMRefs: ReturnType<typeof useGetReferences>;
|
|
10
11
|
flags: ReturnType<typeof useGetFlags>;
|
|
12
|
+
focusTrackers: ReturnType<typeof useFocusTracker>;
|
|
11
13
|
}
|
|
12
|
-
export declare const useGlobalKeyHandlers: ({ propsBasedOnType, changeHandlers,
|
|
14
|
+
export declare const useGlobalKeyHandlers: ({ propsBasedOnType, changeHandlers, flags, focusTrackers }: Config) => {
|
|
13
15
|
onFillWithCurrentDateKeys: (e: React.KeyboardEvent<HTMLInputElement | HTMLButtonElement>, metaInfo?: Partial<DSControlledDateTimePickerT.InternalInputsChangeMetaInfo>) => void;
|
|
14
16
|
onGlobalKeyDown: (e: React.KeyboardEvent<HTMLInputElement | HTMLButtonElement>) => void;
|
|
15
17
|
};
|
|
@@ -10,6 +10,7 @@ interface DDInputsPropsT {
|
|
|
10
10
|
placeholder: string;
|
|
11
11
|
ariaCurrentValueForInputs: string;
|
|
12
12
|
contextRef: React.MutableRefObject<HTMLInputElement | null>;
|
|
13
|
+
isFocused: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare const DDInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, contextRef, placeholder, ariaCurrentValueForInputs, }: DDInputsPropsT) => JSX.Element>;
|
|
15
|
+
export declare const DDInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, contextRef, placeholder, ariaCurrentValueForInputs, isFocused, }: DDInputsPropsT) => JSX.Element>;
|
|
15
16
|
export {};
|
|
@@ -11,6 +11,7 @@ interface MMInputsPropsT {
|
|
|
11
11
|
contextRef: React.MutableRefObject<HTMLInputElement | null>;
|
|
12
12
|
placeholder: string;
|
|
13
13
|
ariaCurrentValueForInputs: string;
|
|
14
|
+
isFocused: boolean;
|
|
14
15
|
}
|
|
15
|
-
export declare const MMInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, contextRef, autoFocusMonthInput, ariaCurrentValueForInputs, }: MMInputsPropsT) => JSX.Element>;
|
|
16
|
+
export declare const MMInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, contextRef, autoFocusMonthInput, ariaCurrentValueForInputs, isFocused, }: MMInputsPropsT) => JSX.Element>;
|
|
16
17
|
export {};
|
|
@@ -10,6 +10,7 @@ interface YYYYInputsPropsT {
|
|
|
10
10
|
contextRef: React.MutableRefObject<HTMLInputElement | null>;
|
|
11
11
|
placeholder: string;
|
|
12
12
|
ariaCurrentValueForInputs: string;
|
|
13
|
+
isFocused: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare const YYYYInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, contextRef, ariaCurrentValueForInputs, }: YYYYInputsPropsT) => JSX.Element>;
|
|
15
|
+
export declare const YYYYInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, contextRef, ariaCurrentValueForInputs, isFocused, }: YYYYInputsPropsT) => JSX.Element>;
|
|
15
16
|
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { useCurrentDisplayedMonthYearLogic } from './useCurrentDisplayedMonthYearLogic';
|
|
3
|
+
import { useFocusLogic } from './useFocusLogic';
|
|
4
|
+
import { usePopperTriggerLogic } from './usePopperTriggerLogic';
|
|
5
|
+
import { useKeyboardHandlers } from './useKeyboardHandlers';
|
|
6
|
+
export declare type CalendarContextT = ReturnType<typeof useCurrentDisplayedMonthYearLogic> & ReturnType<typeof useFocusLogic> & ReturnType<typeof usePopperTriggerLogic> & ReturnType<typeof useKeyboardHandlers> & {
|
|
7
|
+
showCalendar: boolean;
|
|
8
|
+
setShowCalendar: StateSetter<boolean>;
|
|
9
|
+
onPrevYearFocus: React.FocusEventHandler;
|
|
10
|
+
onPrevMonthFocus: React.FocusEventHandler;
|
|
11
|
+
onNextMonthFocus: React.FocusEventHandler;
|
|
12
|
+
onNextYearFocus: React.FocusEventHandler;
|
|
13
|
+
};
|
|
14
|
+
export declare const useConfigCalendarCTX: () => CalendarContextT;
|
|
@@ -6,10 +6,9 @@ interface UseFocusLogicArgsT {
|
|
|
6
6
|
}
|
|
7
7
|
interface FocusLogicT {
|
|
8
8
|
focusedDay?: DSControlledDateTimePickerInternalsT.MetaMonthDay;
|
|
9
|
-
tryToFocusCurrentlyDataIsFocusedDay: () => void;
|
|
10
9
|
resetFocusedDayToStartDate: () => void;
|
|
11
10
|
handleFocusMetaDay: (metaDayToFocus: DSControlledDateTimePickerInternalsT.MetaMonthDay) => void;
|
|
12
11
|
handleFocusMetaDayByDay: (day: Date) => void;
|
|
13
12
|
}
|
|
14
|
-
export declare const useFocusLogic: ({ currentDisplayedMonthLogic
|
|
13
|
+
export declare const useFocusLogic: ({ currentDisplayedMonthLogic }: UseFocusLogicArgsT) => FocusLogicT;
|
|
15
14
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { usePopper } from 'react-popper';
|
|
3
|
+
import { useFocusLogic } from './useFocusLogic';
|
|
4
|
+
interface UsePopperTriggerLogic {
|
|
5
|
+
focusLogic: ReturnType<typeof useFocusLogic>;
|
|
6
|
+
showCalendar: boolean;
|
|
7
|
+
setShowCalendar: StateSetter<boolean>;
|
|
8
|
+
}
|
|
9
|
+
interface PopperTriggerLogicT {
|
|
10
|
+
closeCalendar: () => void;
|
|
11
|
+
setPopperElement: StateSetter<HTMLDivElement | null>;
|
|
12
|
+
setArrowElement: StateSetter<HTMLDivElement | null>;
|
|
13
|
+
usePopperHelpers: ReturnType<typeof usePopper>;
|
|
14
|
+
handleToggleCalendar: () => void;
|
|
15
|
+
handleSetTriggerRef: (instance: HTMLButtonElement) => void;
|
|
16
|
+
handleMenuWrapperKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare const usePopperTriggerLogic: ({ focusLogic, showCalendar, setShowCalendar, }: UsePopperTriggerLogic) => PopperTriggerLogicT;
|
|
19
|
+
export {};
|
|
@@ -4,15 +4,9 @@ interface UseKeyboardHandlersArgs {
|
|
|
4
4
|
currentDisplayedTimeWheelLogic: ReturnType<typeof useCurrentDisplayedWheelsLogic>;
|
|
5
5
|
}
|
|
6
6
|
interface KeyboardHandlersT {
|
|
7
|
-
handlePrevHourBtnOnKeyDown: (e: React.KeyboardEvent) => void;
|
|
8
7
|
handleCurrHourOnKeyDown: (e: React.KeyboardEvent) => void;
|
|
9
|
-
handleNextHourBtnOnKeyDown: (e: React.KeyboardEvent) => void;
|
|
10
|
-
handlePrevMinuteBtnOnKeyDown: (e: React.KeyboardEvent) => void;
|
|
11
8
|
handleCurrMinutesOnKeyDown: (e: React.KeyboardEvent) => void;
|
|
12
|
-
handleNextMinuteBtnOnKeyDown: (e: React.KeyboardEvent) => void;
|
|
13
|
-
handlePrevMeridiemBtnOnKeyDown: (e: React.KeyboardEvent) => void;
|
|
14
9
|
handleCurrMeridiemOnKeyDown: (e: React.KeyboardEvent) => void;
|
|
15
|
-
handleNextMeridiemBtnOnKeyDown: (e: React.KeyboardEvent) => void;
|
|
16
10
|
handlePickerIconKeyDown: (e: React.KeyboardEvent<HTMLButtonElement>) => void;
|
|
17
11
|
}
|
|
18
12
|
export declare const useKeyboardHandlers: ({ currentDisplayedTimeWheelLogic }: UseKeyboardHandlersArgs) => KeyboardHandlersT;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { usePopper } from 'react-popper';
|
|
3
|
+
interface PopperTriggerLogicT {
|
|
4
|
+
showTimePicker: boolean;
|
|
5
|
+
setShowTimePicker: StateSetter<boolean>;
|
|
6
|
+
setPopperElement: StateSetter<HTMLDivElement>;
|
|
7
|
+
setArrowElement: StateSetter<HTMLDivElement>;
|
|
8
|
+
usePopperHelpers: ReturnType<typeof usePopper>;
|
|
9
|
+
handleToggleTimePicker: () => void;
|
|
10
|
+
handleSetTriggerRef: (instance: HTMLButtonElement) => void;
|
|
11
|
+
handleMenuWrapperKeyDown: (e: React.KeyboardEvent<HTMLElement>) => void;
|
|
12
|
+
}
|
|
13
|
+
export declare const usePopperTriggerLogic: () => PopperTriggerLogicT;
|
|
14
|
+
export {};
|
|
@@ -11,6 +11,7 @@ interface HHInputsPropsT {
|
|
|
11
11
|
placeholder: string;
|
|
12
12
|
ariaCurrentValueForInputs: string;
|
|
13
13
|
autoFocusHourInput: boolean;
|
|
14
|
+
isFocused: boolean;
|
|
14
15
|
}
|
|
15
|
-
export declare const HHInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, autoFocusHourInput, }: HHInputsPropsT) => JSX.Element>;
|
|
16
|
+
export declare const HHInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, autoFocusHourInput, isFocused, }: HHInputsPropsT) => JSX.Element>;
|
|
16
17
|
export {};
|
|
@@ -10,6 +10,7 @@ interface MeridiemInputsPropsT {
|
|
|
10
10
|
contextRef: React.MutableRefObject<HTMLInputElement | null>;
|
|
11
11
|
placeholder: string;
|
|
12
12
|
ariaCurrentValueForInputs: string;
|
|
13
|
+
isFocused: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare const MeridiemInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, }: MeridiemInputsPropsT) => JSX.Element>;
|
|
15
|
+
export declare const MeridiemInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, isFocused, }: MeridiemInputsPropsT) => JSX.Element>;
|
|
15
16
|
export {};
|
|
@@ -10,6 +10,7 @@ interface MinutesInputsPropsT {
|
|
|
10
10
|
contextRef: React.MutableRefObject<HTMLInputElement | null>;
|
|
11
11
|
placeholder: string;
|
|
12
12
|
ariaCurrentValueForInputs: string;
|
|
13
|
+
isFocused: boolean;
|
|
13
14
|
}
|
|
14
|
-
export declare const MinutesInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, }: MinutesInputsPropsT) => JSX.Element>;
|
|
15
|
+
export declare const MinutesInput: React.MemoExoticComponent<({ onChange, onBlur, onFocus, onKeyDown, value, disabled, placeholder, ariaCurrentValueForInputs, contextRef, isFocused, }: MinutesInputsPropsT) => JSX.Element>;
|
|
15
16
|
export {};
|