@qualtrics/ui-react 2.18.0 → 2.19.1
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/CHANGELOG.md +28 -0
- package/dist/__shared/cjs/{index-00992312.js → index-384184bd.js} +994 -1872
- package/dist/__shared/cjs/{index-615ed9b2.js → index-4a5425cc.js} +10 -7
- package/dist/components/Accordion/Accordion.js +1 -5
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +4 -8
- package/dist/components/Accordion/AccordionPanel.js +3 -3
- package/dist/components/BreakpointSwitch/Breakpoint.js +0 -2
- package/dist/components/BreakpointSwitch/BreakpointSwitch.js +0 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +2 -7
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -2
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +11 -11
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox.js +1 -1
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +9 -30
- package/dist/components/ColorPicker/ColorPicker.js +33 -42
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +2 -1
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +20 -23
- package/dist/components/ColorPicker/Hue.js +2 -19
- package/dist/components/ColorPicker/Palette.js +7 -27
- package/dist/components/ColorPicker/Saturation.js +8 -29
- package/dist/components/ColorPicker/utils/calculateTargetId.js +10 -20
- package/dist/components/ColorPicker/utils/getMousePosition.js +4 -3
- package/dist/components/ColorPicker/utils/hexToHsv.js +0 -5
- package/dist/components/ColorPicker/utils/hexToRgbaString.js +2 -4
- package/dist/components/ColorPicker/utils/hsvToHex.js +0 -3
- package/dist/components/ColorPicker/utils/rgbToHex.js +1 -1
- package/dist/components/ColorPicker/utils/validateHex.js +12 -19
- package/dist/components/Combobox/Combobox.js +57 -127
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxHeader.js +1 -1
- package/dist/components/Combobox/ComboboxIcon.js +2 -4
- package/dist/components/Combobox/ComboboxInput.js +4 -5
- package/dist/components/Combobox/ComboboxList.js +2 -2
- package/dist/components/ConfigPane/ConfigPane.js +0 -7
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/index.js +0 -1
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +34 -30
- package/dist/components/Dropdown/Dropdown.js +17 -68
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +23 -33
- package/dist/components/Dropdown/DropdownHeader.js +2 -1
- package/dist/components/Dropdown/DropdownList.js +8 -7
- package/dist/components/Dropdown/DropdownOption.js +3 -10
- package/dist/components/Dropdown/DropdownSearch.js +6 -24
- package/dist/components/FilePicker/FilePicker.js +15 -26
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField.js +2 -2
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -6
- package/dist/components/FormField/ReadOnlyText.js +2 -1
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +5 -11
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/Icon.js +3 -6
- package/dist/components/Icon/IconTypes.js +1 -0
- package/dist/components/IconButton/IconButton.js +1 -6
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +16 -33
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input.js +3 -2
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -5
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/InputGroup/InputGroupProvider.js +0 -2
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner.js +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionContainer.js +0 -2
- package/dist/components/LogicEditor/ConditionSet.js +8 -25
- package/dist/components/LogicEditor/Controls.js +2 -2
- package/dist/components/LogicEditor/LogicEditor.js +3 -12
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/utils.js +9 -34
- package/dist/components/Modal/Modal.js +22 -35
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +43 -108
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +20 -32
- package/dist/components/NewMenu/parts/MenuItem.js +2 -3
- package/dist/components/NewMenu/parts/MenuSearchBox.js +2 -1
- package/dist/components/NumberStepper/NumberStepper.js +29 -44
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +6 -5
- package/dist/components/NumberStepper/NumberStepperIncrement.js +6 -5
- package/dist/components/NumberStepper/NumberStepperInput.js +10 -12
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +10 -6
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +8 -8
- package/dist/components/Pagination/PaginationPageInput.js +17 -22
- package/dist/components/Pagination/PaginationPreviousButton.js +8 -8
- package/dist/components/Popover/Popover.js +9 -18
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +3 -5
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +6 -23
- package/dist/components/Radio/Radio.js +11 -13
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +5 -11
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/ExpandCollapseButton.js +0 -2
- package/dist/components/SidebarNav/SidebarNav.js +5 -4
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/SidebarNav/SidebarNavLink.js +1 -4
- package/dist/components/Slider/RangeSlider.js +8 -22
- package/dist/components/Slider/Slider.js +7 -26
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Slider/SliderButton.js +7 -9
- package/dist/components/Switch/Switch.js +11 -11
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Tabs/TabContextProvider.js +1 -1
- package/dist/components/Tabs/TabList.js +9 -17
- package/dist/components/Tabs/TabPanel.js +3 -3
- package/dist/components/Tabs/TabPanels.js +0 -2
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +12 -41
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/PortalTargetContext.js +0 -1
- package/dist/components/UIProvider/UIProvider.js +2 -2
- package/dist/components/deprecated_ColorPicker/Alpha.js +4 -11
- package/dist/components/deprecated_ColorPicker/Color.js +9 -66
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +2 -8
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -7
- package/dist/components/deprecated_ColorPicker/Hue.js +3 -10
- package/dist/components/deprecated_ColorPicker/Saturation.js +7 -14
- package/dist/components/deprecated_ColorPicker/Swatch.js +2 -6
- package/dist/components/deprecated_ColorPicker/useMouseDrag.js +0 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper.js +14 -20
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +7 -6
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +7 -6
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +16 -17
- package/dist/components/deprecated_Tabs/Tabs.js +9 -25
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +3 -17
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +10 -26
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +6 -18
- package/dist/hooks/useBreakpoints/useBreakpoints.js +3 -4
- package/dist/hooks/useClickOutside/useClickOutside.js +2 -7
- package/dist/hooks/useClickOutsidePortals/useClickOutsidePortals.js +3 -6
- package/dist/hooks/useControllableState/useControllableState.js +5 -10
- package/dist/hooks/useDidUpdate/useDidUpdate.js +2 -4
- package/dist/hooks/useEventCallback/useEventCallback.js +2 -1
- package/dist/hooks/useEventListener/useEventListener.js +1 -4
- package/dist/hooks/useFocusSequence/useFocusSequence.js +10 -17
- package/dist/hooks/useId/useId.js +1 -2
- package/dist/hooks/useIsFocused/useIsFocused.js +0 -1
- package/dist/hooks/useIsHovered/useIsHovered.js +0 -1
- package/dist/hooks/useIsTruncated/useIsTruncated.js +4 -3
- package/dist/hooks/useLatest/useLatest.js +0 -1
- package/dist/hooks/useMounted/useMounted.js +0 -1
- package/dist/hooks/useMouseDrag/useMouseDrag.js +0 -4
- package/dist/hooks/useOverlay/useOverlay.js +4 -10
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/usePrevious/usePrevious.js +0 -1
- package/dist/hooks/useResponsiveValue/useResponsiveValue.js +1 -4
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +11 -16
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/HeadsetIcon.js +6 -0
- package/dist/icons/components/PauseCircleIcon.js +1 -1
- package/dist/icons/createIconComponent.js +2 -3
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.es.js +1 -0
- package/dist/icons/index.js +2 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +4 -3
- package/dist/index.js +6 -5
- package/dist/next/AdvancedTable/AdvancedTable.js +82 -188
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -14
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +0 -1
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +11 -41
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +8 -14
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +4 -6
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -4
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +0 -1
- package/dist/next/AdvancedTable/AdvancedTableTypes.js +1 -3
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +8 -13
- package/dist/next/AdvancedTable/useComputedWidth.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +5 -20
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +1 -1
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxFlyout.js +3 -3
- package/dist/next/Combobox/ComboboxGroup.js +1 -1
- package/dist/next/Combobox/ComboboxInput.js +7 -20
- package/dist/next/Combobox/ComboboxOption.js +5 -6
- package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +4 -5
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +37 -54
- package/dist/next/Combobox/hooks/useComboboxLoadingState/useComboboxLoadingState.js +4 -5
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +5 -3
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +10 -10
- package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +1 -6
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +6 -6
- package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +4 -6
- package/dist/next/Drawer/Drawer.js +5 -16
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +7 -5
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input.js +5 -8
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu.js +10 -23
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuContext.js +0 -2
- package/dist/next/Menu/MenuItem.js +11 -15
- package/dist/next/Menu/MenuPane.js +11 -25
- package/dist/next/Menu/MenuSearch.js +15 -22
- package/dist/next/Menu/SubMenu.js +10 -27
- package/dist/next/Menu/usePaneSearch.js +2 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +12 -19
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +6 -12
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/Stack/HStack.js +11 -0
- package/dist/next/Stack/Stack.js +95 -0
- package/dist/next/Stack/StackItem.js +37 -0
- package/dist/next/Stack/VStack.js +11 -0
- package/dist/next/Stack/index.js +3 -0
- package/dist/next/TimePicker/TimeDropdown.js +4 -5
- package/dist/next/TimePicker/TimeInput.js +4 -5
- package/dist/next/TimePicker/TimePicker.js +12 -30
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +1 -3
- package/dist/next/TimePicker/utils.js +12 -52
- package/dist/next/ToggleButton/ToggleButton.js +0 -5
- package/dist/next/ToggleButton/ToggleButtonGroup.js +2 -1
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +82 -4
- package/dist/next/index.es.js +4 -0
- package/dist/next/index.js +514 -745
- package/dist/utils/Flyout/Flyout.js +4 -5
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +18 -25
- package/dist/utils/Portal/Portal.js +2 -1
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +4 -4
- package/dist/utils/Translation/Translate.js +0 -4
- package/dist/utils/Translation/TranslationProvider.js +0 -1
- package/dist/utils/Translation/containsComponentOrElement.js +1 -5
- package/dist/utils/Translation/insertPlaceholders.js +0 -1
- package/dist/utils/Translation/useTranslation.js +7 -14
- package/dist/utils/concatIds/concatIds.js +0 -1
- package/dist/utils/constants.js +2 -2
- package/dist/utils/createContextUtilities/createContextUtilities.js +0 -4
- package/dist/utils/filterChildren/filterChildren.js +8 -17
- package/dist/utils/getSubDataTestId/getSubDataTestId.js +1 -2
- package/dist/utils/keyboardUser/keyboardUser.js +0 -1
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -12
- package/dist/utils/mergeRefs/mergeRefs.js +1 -2
- package/dist/utils/wrapAround/wrapAround.js +1 -2
- package/dist/utils/wrapEvent/wrapEvent.js +2 -4
- package/icons/package.json +3 -2
- package/next/package.json +6 -2
- package/package.json +10 -5
|
@@ -5,7 +5,6 @@ import useEventCallback from '../useEventCallback/useEventCallback.js';
|
|
|
5
5
|
function isEventTarget(target) {
|
|
6
6
|
return !!target.addEventListener;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
8
|
/**
|
|
10
9
|
* Adds and cleans up event listener from the specified target
|
|
11
10
|
* @param targetOrRef - An event target or ref pointing to one.
|
|
@@ -27,12 +26,10 @@ function useEventListener(targetOrRef, event, handler) {
|
|
|
27
26
|
} = options;
|
|
28
27
|
useEffect(() => {
|
|
29
28
|
const target = isEventTarget(targetOrRef) ? targetOrRef : targetOrRef.current;
|
|
30
|
-
|
|
31
|
-
if (target !== null && target !== void 0 && target.addEventListener && !isDisabled) {
|
|
29
|
+
if (target?.addEventListener && !isDisabled) {
|
|
32
30
|
target.addEventListener(event, listener, isCaptureEvent);
|
|
33
31
|
return () => target.removeEventListener(event, listener, isCaptureEvent);
|
|
34
32
|
}
|
|
35
|
-
|
|
36
33
|
return undefined;
|
|
37
34
|
}, [targetOrRef, event, listener, isCaptureEvent, isDisabled, ...additionalDependencies]);
|
|
38
35
|
}
|
|
@@ -2,38 +2,39 @@ import { useRef, useCallback } from 'react';
|
|
|
2
2
|
|
|
3
3
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
4
4
|
|
|
5
|
+
// Return type of useFocusSequence
|
|
6
|
+
|
|
5
7
|
/**
|
|
6
8
|
* A utility for programmatically moving focus within a group of linear elements
|
|
7
9
|
* @returns Utilities for registering and focusing elements
|
|
8
10
|
*/
|
|
9
11
|
function useFocusSequence() {
|
|
10
12
|
const nodesMap = useRef(new Set());
|
|
13
|
+
|
|
11
14
|
/**
|
|
12
15
|
* Registers element to be included in the focus sequence
|
|
13
16
|
* @param newNode - Element to register
|
|
14
17
|
*/
|
|
15
|
-
|
|
16
18
|
const registerNode = useCallback(newNode => {
|
|
17
19
|
if (!newNode) {
|
|
18
20
|
throw new Error('registerNode called without any parameters! Pass in "newNode" as parameter');
|
|
19
21
|
}
|
|
20
|
-
|
|
21
22
|
nodesMap.current.add(newNode);
|
|
22
23
|
}, []);
|
|
24
|
+
|
|
23
25
|
/**
|
|
24
26
|
* Removes node from focus sequence
|
|
25
27
|
* @param node - Element to be removed
|
|
26
28
|
*/
|
|
27
|
-
|
|
28
29
|
const deregisterNode = useCallback(node => {
|
|
29
30
|
nodesMap.current.delete(node);
|
|
30
31
|
}, []);
|
|
32
|
+
|
|
31
33
|
/**
|
|
32
34
|
* Focuses next element in registered sequence
|
|
33
35
|
* @param config - Optional parameter for configuring settings
|
|
34
36
|
* @param config.wrap - Allows focus to loop from last element to first
|
|
35
37
|
*/
|
|
36
|
-
|
|
37
38
|
const focusNext = useCallback(function () {
|
|
38
39
|
let {
|
|
39
40
|
wrap = true
|
|
@@ -45,12 +46,12 @@ function useFocusSequence() {
|
|
|
45
46
|
});
|
|
46
47
|
sorted[nextIndex].focus();
|
|
47
48
|
}, []);
|
|
49
|
+
|
|
48
50
|
/**
|
|
49
51
|
* Focuses previous element in registered sequence
|
|
50
52
|
* @param config - Optional parameter for configuring settings
|
|
51
53
|
* @param config.wrap - Allows focus to loop from first element to last
|
|
52
54
|
*/
|
|
53
|
-
|
|
54
55
|
const focusPrevious = useCallback(function () {
|
|
55
56
|
let {
|
|
56
57
|
wrap = true
|
|
@@ -62,18 +63,18 @@ function useFocusSequence() {
|
|
|
62
63
|
});
|
|
63
64
|
sorted[previousIndex].focus();
|
|
64
65
|
}, []);
|
|
66
|
+
|
|
65
67
|
/**
|
|
66
68
|
* Focuses first element in registered sequence
|
|
67
69
|
*/
|
|
68
|
-
|
|
69
70
|
const focusFirst = useCallback(() => {
|
|
70
71
|
const sorted = sortNodes(nodesMap.current.values());
|
|
71
72
|
sorted[0].focus();
|
|
72
73
|
}, []);
|
|
74
|
+
|
|
73
75
|
/**
|
|
74
76
|
* Focuses last element in registered sequence
|
|
75
77
|
*/
|
|
76
|
-
|
|
77
78
|
const focusLast = useCallback(() => {
|
|
78
79
|
const sorted = sortNodes(nodesMap.current.values());
|
|
79
80
|
sorted[sorted.length - 1].focus();
|
|
@@ -87,43 +88,35 @@ function useFocusSequence() {
|
|
|
87
88
|
focusLast
|
|
88
89
|
};
|
|
89
90
|
}
|
|
90
|
-
|
|
91
91
|
function sortNodes(nodes) {
|
|
92
92
|
const copy = Array.from(nodes);
|
|
93
|
-
copy.sort((a, b) =>
|
|
93
|
+
copy.sort((a, b) =>
|
|
94
|
+
// eslint-disable-next-line no-bitwise
|
|
94
95
|
a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1);
|
|
95
96
|
return copy;
|
|
96
97
|
}
|
|
97
|
-
|
|
98
98
|
function getNextIndex(index, numItems) {
|
|
99
99
|
let {
|
|
100
100
|
wrap = true
|
|
101
101
|
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
102
|
-
|
|
103
102
|
if (index === -1) {
|
|
104
103
|
return 0;
|
|
105
104
|
}
|
|
106
|
-
|
|
107
105
|
if (wrap) {
|
|
108
106
|
return (index + 1) % numItems;
|
|
109
107
|
}
|
|
110
|
-
|
|
111
108
|
return index < numItems - 1 ? index + 1 : numItems - 1;
|
|
112
109
|
}
|
|
113
|
-
|
|
114
110
|
function getPreviousIndex(index, numItems) {
|
|
115
111
|
let {
|
|
116
112
|
wrap = true
|
|
117
113
|
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
118
|
-
|
|
119
114
|
if (index === -1) {
|
|
120
115
|
return numItems - 1;
|
|
121
116
|
}
|
|
122
|
-
|
|
123
117
|
if (wrap) {
|
|
124
118
|
return (index + numItems - 1) % numItems;
|
|
125
119
|
}
|
|
126
|
-
|
|
127
120
|
return index > 0 ? index - 1 : 0;
|
|
128
121
|
}
|
|
129
122
|
|
|
@@ -6,9 +6,8 @@ import { v4 } from 'uuid';
|
|
|
6
6
|
* @param defaultExternalId - ID to be used instead of a randomly generated ID. This ID is only considered on mount, so changes to this ID are ignored.
|
|
7
7
|
* @returns If an external ID is passed in, the external ID. Otherwise, a randomly generated ID.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
9
|
function useId(defaultExternalId) {
|
|
11
|
-
const [currentId] = useState(() => defaultExternalId
|
|
10
|
+
const [currentId] = useState(() => defaultExternalId ?? v4());
|
|
12
11
|
return currentId;
|
|
13
12
|
}
|
|
14
13
|
|
|
@@ -6,7 +6,6 @@ import useEventListener from '../useEventListener/useEventListener.js';
|
|
|
6
6
|
* Tracks focused state on element that `ref` is registered with
|
|
7
7
|
* @returns `ref` to pass to element and `isFocused` state
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
9
|
function useIsFocused() {
|
|
11
10
|
const [isFocused, setIsFocused] = useState(false);
|
|
12
11
|
const ref = useRef(null);
|
|
@@ -6,7 +6,6 @@ import useEventListener from '../useEventListener/useEventListener.js';
|
|
|
6
6
|
* Tracks hovered state on element that `ref` is registered with
|
|
7
7
|
* @returns `ref` to pass to element and `isFocused` state
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
9
|
function useIsHovered() {
|
|
11
10
|
const [isHovered, setIsHovered] = useState(false);
|
|
12
11
|
const ref = useRef(null);
|
|
@@ -8,23 +8,24 @@ Due to rounding, `scrollWidth` and `clientWidth` do not always accurately repres
|
|
|
8
8
|
Issue: https://github.com/w3c/csswg-drafts/issues/4123
|
|
9
9
|
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
11
|
const useIsTruncated = target => {
|
|
13
12
|
const [isTruncated, setIsTruncated] = useState(false);
|
|
14
13
|
useLayoutEffect(() => {
|
|
15
14
|
const {
|
|
16
15
|
clientWidth,
|
|
17
16
|
scrollWidth
|
|
18
|
-
} = target.current;
|
|
17
|
+
} = target.current;
|
|
19
18
|
|
|
19
|
+
// set initial value
|
|
20
20
|
setIsTruncated(clientWidth < scrollWidth);
|
|
21
21
|
}, [target]);
|
|
22
22
|
useResizeObserver(target, entry => {
|
|
23
23
|
const {
|
|
24
24
|
clientWidth,
|
|
25
25
|
scrollWidth
|
|
26
|
-
} = entry.target;
|
|
26
|
+
} = entry.target;
|
|
27
27
|
|
|
28
|
+
// update value on resize
|
|
28
29
|
setIsTruncated(clientWidth < scrollWidth);
|
|
29
30
|
});
|
|
30
31
|
return isTruncated;
|
|
@@ -6,7 +6,6 @@ import useSSRLayoutEffect from '../useSSRLayoutEffect/useSSRLayoutEffect.js';
|
|
|
6
6
|
* Keeps track of the mounted state of the component.
|
|
7
7
|
* @returns A boolean indicating if the component is mounted.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
9
|
function useMounted() {
|
|
11
10
|
const mounted = useRef(false);
|
|
12
11
|
useSSRLayoutEffect(() => {
|
|
@@ -7,19 +7,15 @@ import useEventListener from '../useEventListener/useEventListener.js';
|
|
|
7
7
|
* @param handleChange - An observer that is called either when the returned function is called mousemove event occurs.
|
|
8
8
|
* @returns A function that needs to be called on mousedown.
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
10
|
function useMouseDrag(handleChange) {
|
|
12
11
|
const [isMouseDown, setIsMouseDown] = useState(false);
|
|
13
|
-
|
|
14
12
|
function handleMouseDown(e) {
|
|
15
13
|
handleChange(e);
|
|
16
14
|
setIsMouseDown(true);
|
|
17
15
|
}
|
|
18
|
-
|
|
19
16
|
function handleMouseUp() {
|
|
20
17
|
setIsMouseDown(false);
|
|
21
18
|
}
|
|
22
|
-
|
|
23
19
|
const isDisabled = !isMouseDown;
|
|
24
20
|
useEventListener(window, 'mousemove', handleChange, {
|
|
25
21
|
isDisabled
|
|
@@ -24,9 +24,7 @@ const useOverlay = _ref => {
|
|
|
24
24
|
} = _ref;
|
|
25
25
|
const overlayId = useId();
|
|
26
26
|
useEffect(() => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const containerNode = (_containerRef$current = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) !== null && _containerRef$current !== void 0 ? _containerRef$current : document.body;
|
|
27
|
+
const containerNode = containerRef?.current ?? document.body;
|
|
30
28
|
const overlay = document.createElement('div');
|
|
31
29
|
overlay.id = overlayId;
|
|
32
30
|
overlay.classList.add(styles.overlay);
|
|
@@ -42,23 +40,19 @@ const useOverlay = _ref => {
|
|
|
42
40
|
};
|
|
43
41
|
}, [containerRef, overlayId, isVisible, onClick, dataTestId, zIndex]);
|
|
44
42
|
useEffect(() => {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const containerNode = (_containerRef$current2 = containerRef === null || containerRef === void 0 ? void 0 : containerRef.current) !== null && _containerRef$current2 !== void 0 ? _containerRef$current2 : document.body;
|
|
43
|
+
const containerNode = containerRef?.current ?? document.body;
|
|
48
44
|
const overlayNode = document.getElementById(overlayId);
|
|
49
|
-
|
|
50
45
|
if (isVisible) {
|
|
51
46
|
Array.from(containerNode.children).forEach(child => {
|
|
52
47
|
if (!_includesInstanceProperty(ignoreIds).call(ignoreIds, child.id) && child.id !== overlayId) child.setAttribute('inert', '');
|
|
53
48
|
});
|
|
54
|
-
overlayNode
|
|
49
|
+
overlayNode?.classList.remove(styles.hidden);
|
|
55
50
|
} else {
|
|
56
51
|
Array.from(containerNode.children).forEach(child => {
|
|
57
52
|
child.removeAttribute('inert');
|
|
58
53
|
});
|
|
59
|
-
overlayNode
|
|
54
|
+
overlayNode?.classList.add(styles.hidden);
|
|
60
55
|
}
|
|
61
|
-
|
|
62
56
|
return () => {
|
|
63
57
|
Array.from(containerNode.children).forEach(child => {
|
|
64
58
|
child.removeAttribute('inert');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"overlay":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._DAPa9{background-color:rgba(0,0,0,.5);width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._duYYq{visibility:hidden}";
|
|
4
|
+
var styles = {"overlay":"_DAPa9","hidden":"_duYYq"};
|
|
5
|
+
var stylesheet="._DAPa9{background-color:rgba(0,0,0,.5);width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._duYYq{visibility:hidden}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -3,8 +3,6 @@ import { DEFAULT_BREAKPOINTS } from '../../utils/constants.js';
|
|
|
3
3
|
import useBreakpoints from '../useBreakpoints/useBreakpoints.js';
|
|
4
4
|
|
|
5
5
|
function useResponsiveValue(values) {
|
|
6
|
-
var _values$returnKey;
|
|
7
|
-
|
|
8
6
|
let breakpoints = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_BREAKPOINTS;
|
|
9
7
|
let unit = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'em';
|
|
10
8
|
const matches = useBreakpoints(breakpoints, unit);
|
|
@@ -12,10 +10,9 @@ function useResponsiveValue(values) {
|
|
|
12
10
|
if (matches[k] && (typeof acc === 'undefined' || breakpoints[acc] < breakpoints[k])) {
|
|
13
11
|
return k;
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
return acc;
|
|
17
14
|
}, undefined);
|
|
18
|
-
return
|
|
15
|
+
return values[returnKey] ?? null;
|
|
19
16
|
}
|
|
20
17
|
|
|
21
18
|
export { useResponsiveValue as default };
|
|
@@ -6,14 +6,13 @@ import classes from './useScreenReaderAnnouncement2.js';
|
|
|
6
6
|
* @param politeness - Sets the politeness level for `aria-live`.
|
|
7
7
|
* @returns - A function used to send an announcement to the screen reader.
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
9
|
function useScreenReaderAnnouncement(politeness) {
|
|
11
10
|
const ariaLiveElementRef = useRef();
|
|
12
11
|
const [messageQueue, setMessageQueue] = useState([]); // An array of messages where the first item in the array is the oldest message
|
|
13
|
-
|
|
14
12
|
const [isAnnouncingMessage, setIsAnnouncingMessage] = useState(false);
|
|
15
|
-
const delayTimer = useRef();
|
|
13
|
+
const delayTimer = useRef();
|
|
16
14
|
|
|
15
|
+
// Creates the live region element
|
|
17
16
|
useEffect(() => {
|
|
18
17
|
ariaLiveElementRef.current = document.createElement('span');
|
|
19
18
|
ariaLiveElementRef.current.classList.add(classes.ariaLiveElement);
|
|
@@ -21,23 +20,20 @@ function useScreenReaderAnnouncement(politeness) {
|
|
|
21
20
|
return () => {
|
|
22
21
|
if (ariaLiveElementRef.current !== undefined) document.body.removeChild(ariaLiveElementRef.current);
|
|
23
22
|
};
|
|
24
|
-
}, []);
|
|
23
|
+
}, []);
|
|
25
24
|
|
|
25
|
+
// Sets the politeness of `aria-live`
|
|
26
26
|
useEffect(() => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
if (politeness !== undefined) (_ariaLiveElementRef$c = ariaLiveElementRef.current) === null || _ariaLiveElementRef$c === void 0 ? void 0 : _ariaLiveElementRef$c.setAttribute('aria-live', politeness);
|
|
30
|
-
}, [politeness]); // Announces oldest message in the queue
|
|
27
|
+
if (politeness !== undefined) ariaLiveElementRef.current?.setAttribute('aria-live', politeness);
|
|
28
|
+
}, [politeness]);
|
|
31
29
|
|
|
30
|
+
// Announces oldest message in the queue
|
|
32
31
|
useEffect(() => {
|
|
33
32
|
if (!isAnnouncingMessage && messageQueue.length > 0) {
|
|
34
|
-
var _ariaLiveElementRef$c2;
|
|
35
|
-
|
|
36
33
|
setIsAnnouncingMessage(true);
|
|
37
34
|
const oldestMessage = messageQueue[0];
|
|
38
35
|
let delay;
|
|
39
|
-
|
|
40
|
-
if (((_ariaLiveElementRef$c2 = ariaLiveElementRef.current) === null || _ariaLiveElementRef$c2 === void 0 ? void 0 : _ariaLiveElementRef$c2.textContent) === oldestMessage) {
|
|
36
|
+
if (ariaLiveElementRef.current?.textContent === oldestMessage) {
|
|
41
37
|
/*
|
|
42
38
|
* If the message to be announced is the same as the previous message, the message needs to be reset.
|
|
43
39
|
* The screen reader won't read the change unless the text has changed.
|
|
@@ -48,24 +44,23 @@ function useScreenReaderAnnouncement(politeness) {
|
|
|
48
44
|
// If the message to be announced is different from the previous message, there is no need for a delay
|
|
49
45
|
delay = 0;
|
|
50
46
|
}
|
|
51
|
-
|
|
52
47
|
delayTimer.current = setTimeout(() => {
|
|
53
48
|
if (ariaLiveElementRef.current !== undefined) ariaLiveElementRef.current.textContent = oldestMessage;
|
|
54
49
|
setMessageQueue(currentMessageQueue => currentMessageQueue.slice(1)); // Removes the oldest message (i.e. first item) from the message queue since it was just announced
|
|
55
|
-
|
|
56
50
|
setIsAnnouncingMessage(false);
|
|
57
51
|
}, delay);
|
|
58
52
|
}
|
|
59
|
-
}, [isAnnouncingMessage, messageQueue]);
|
|
53
|
+
}, [isAnnouncingMessage, messageQueue]);
|
|
60
54
|
|
|
55
|
+
// Cleanup timeout to avoid memory leaks
|
|
61
56
|
useEffect(() => () => {
|
|
62
57
|
if (delayTimer.current) clearTimeout(delayTimer.current);
|
|
63
58
|
}, []);
|
|
59
|
+
|
|
64
60
|
/**
|
|
65
61
|
* Sends a message for the screen reader to read.
|
|
66
62
|
* @param message - The message that the screen reader will read.
|
|
67
63
|
*/
|
|
68
|
-
|
|
69
64
|
const announceToScreenReader = useCallback(message => {
|
|
70
65
|
setMessageQueue(currentMessageQueue => [...currentMessageQueue, message]);
|
|
71
66
|
}, []);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var classes = {"ariaLiveElement":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._uNYZ-{position:absolute;top:-10000px;left:-10000px}";
|
|
4
|
+
var classes = {"ariaLiveElement":"_uNYZ-"};
|
|
5
|
+
var stylesheet="._uNYZ-{position:absolute;top:-10000px;left:-10000px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { classes as default, stylesheet };
|
package/dist/icons/Icon.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"icon":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._moYEG{flex-shrink:0}";
|
|
4
|
+
var styles = {"icon":"_moYEG"};
|
|
5
|
+
var stylesheet="._moYEG{flex-shrink:0}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import createIconComponent from '../createIconComponent.js';
|
|
2
|
+
|
|
3
|
+
/* THIS FILE IS AUTO-GENERATED */
|
|
4
|
+
var HeadsetIcon = /*#__PURE__*/createIconComponent('Headset', '<path fill-rule="evenodd" clip-rule="evenodd" d="M7.23755 8.8323C7.42854 7.80424 7.77829 6.70507 8.48284 5.87083C9.15884 5.0704 10.2184 4.44531 12.0002 4.44531C13.7808 4.44531 14.8149 5.06916 15.4683 5.86338C16.1527 6.69547 16.4837 7.79334 16.6767 8.8323C16.6926 8.91787 16.7066 9.00209 16.7187 9.08468C15.8612 9.40223 15.25 10.2274 15.25 11.1953V13.1953C15.25 14.1773 15.8791 15.0124 16.7563 15.3195V17.8184C16.7563 17.9244 16.7066 18.0866 16.4828 18.3048C16.2574 18.5246 15.9076 18.7461 15.4557 18.9437C14.5513 19.3394 13.4037 19.5684 12.5063 19.5684C12.0921 19.5684 11.7563 19.9041 11.7563 20.3184C11.7563 20.7326 12.0921 21.0684 12.5063 21.0684C13.609 21.0684 14.9614 20.7973 16.057 20.318C16.6051 20.0782 17.1303 19.7684 17.5299 19.3788C17.9311 18.9876 18.2563 18.4624 18.2563 17.8184V15.3184L18.2563 15.315C19.1269 15.0044 19.75 14.1726 19.75 13.1953V11.1953C19.75 10.208 19.114 9.36916 18.2294 9.06618C18.2095 8.90151 18.1837 8.73175 18.1515 8.55833C17.944 7.44156 17.5554 6.03943 16.6267 4.91045C15.6668 3.7436 14.1942 2.94531 12.0002 2.94531C9.80729 2.94531 8.31706 3.74236 7.33685 4.90299C6.38519 6.02983 5.97227 7.43066 5.76278 8.55833C5.72842 8.74331 5.70138 8.92411 5.681 9.09902C4.84334 9.42653 4.25 10.2416 4.25 11.1953V13.1953C4.25 14.438 5.25736 15.4453 6.5 15.4453C7.74264 15.4453 8.75 14.438 8.75 13.1953V11.1953C8.75 10.197 8.09984 9.35056 7.19985 9.05629C7.21093 8.98281 7.22347 8.90808 7.23755 8.8323ZM5.75 11.1953C5.75 10.7811 6.08579 10.4453 6.5 10.4453C6.91421 10.4453 7.25 10.7811 7.25 11.1953V13.1953C7.25 13.6095 6.91421 13.9453 6.5 13.9453C6.08579 13.9453 5.75 13.6095 5.75 13.1953V11.1953ZM17.5 10.4453C17.0858 10.4453 16.75 10.7811 16.75 11.1953V13.1953C16.75 13.6095 17.0858 13.9453 17.5 13.9453C17.9142 13.9453 18.25 13.6095 18.25 13.1953V11.1953C18.25 10.7811 17.9142 10.4453 17.5 10.4453Z"/>');
|
|
5
|
+
|
|
6
|
+
export { HeadsetIcon as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import createIconComponent from '../createIconComponent.js';
|
|
2
2
|
|
|
3
3
|
/* THIS FILE IS AUTO-GENERATED */
|
|
4
|
-
var PauseCircleIcon = /*#__PURE__*/createIconComponent('PauseCircle', '<path d="M9
|
|
4
|
+
var PauseCircleIcon = /*#__PURE__*/createIconComponent('PauseCircle', '<path d="M9 8.5C9 8.22386 9.22386 8 9.5 8H10.5C10.7761 8 11 8.22386 11 8.5V15.5C11 15.7761 10.7761 16 10.5 16H9.5C9.22386 16 9 15.7761 9 15.5V8.5Z"/><path d="M13.5 8C13.2239 8 13 8.22386 13 8.5V15.5C13 15.7761 13.2239 16 13.5 16H14.5C14.7761 16 15 15.7761 15 15.5V8.5C15 8.22386 14.7761 8 14.5 8H13.5Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 12C2.25 6.61522 6.61522 2.25 12 2.25C17.3848 2.25 21.75 6.61522 21.75 12C21.75 17.3848 17.3848 21.75 12 21.75C6.61522 21.75 2.25 17.3848 2.25 12ZM12 3.75C7.44365 3.75 3.75 7.44365 3.75 12C3.75 16.5563 7.44365 20.25 12 20.25C16.5563 20.25 20.25 16.5563 20.25 12C20.25 7.44365 16.5563 3.75 12 3.75Z"/>');
|
|
5
5
|
|
|
6
6
|
export { PauseCircleIcon as default };
|
|
@@ -8,7 +8,6 @@ const IconSizes = {
|
|
|
8
8
|
medium: 24,
|
|
9
9
|
large: 32
|
|
10
10
|
};
|
|
11
|
-
|
|
12
11
|
const createIconComponent = (type, svgContent) => {
|
|
13
12
|
const Icon = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
14
13
|
let {
|
|
@@ -32,10 +31,10 @@ const createIconComponent = (type, svgContent) => {
|
|
|
32
31
|
dangerouslySetInnerHTML: {
|
|
33
32
|
__html: svgContent
|
|
34
33
|
} // eslint-disable-line react/no-danger
|
|
35
|
-
|
|
36
34
|
}));
|
|
37
35
|
});
|
|
38
|
-
|
|
36
|
+
|
|
37
|
+
Icon.displayName = `${type}Icon`;
|
|
39
38
|
return Icon;
|
|
40
39
|
};
|
|
41
40
|
|
package/dist/icons/index.d.ts
CHANGED
|
@@ -406,6 +406,8 @@ export declare const HamburgerMenuIcon: ForwardRefExoticComponent<NamedIconsProp
|
|
|
406
406
|
|
|
407
407
|
export declare const HeadphonesIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
|
408
408
|
|
|
409
|
+
export declare const HeadsetIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
|
410
|
+
|
|
409
411
|
export declare const HealthWellnessIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
|
410
412
|
|
|
411
413
|
export declare const HeatMapIcon: ForwardRefExoticComponent<NamedIconsProps & RefAttributes<SVGSVGElement>>;
|
package/dist/icons/index.es.js
CHANGED
|
@@ -199,6 +199,7 @@ export { default as GraphicSliderIcon } from './components/GraphicSliderIcon.js'
|
|
|
199
199
|
export { default as GridViewIcon } from './components/GridViewIcon.js';
|
|
200
200
|
export { default as HamburgerMenuIcon } from './components/HamburgerMenuIcon.js';
|
|
201
201
|
export { default as HeadphonesIcon } from './components/HeadphonesIcon.js';
|
|
202
|
+
export { default as HeadsetIcon } from './components/HeadsetIcon.js';
|
|
202
203
|
export { default as HealthWellnessIcon } from './components/HealthWellnessIcon.js';
|
|
203
204
|
export { default as HeatMapIcon } from './components/HeatMapIcon.js';
|
|
204
205
|
export { default as HelpIcon } from './components/HelpIcon.js';
|
package/dist/icons/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var icons_index = require('../__shared/cjs/index-
|
|
5
|
+
var icons_index = require('../__shared/cjs/index-4a5425cc.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
|
@@ -210,6 +210,7 @@ exports.GraphicSliderIcon = icons_index.GraphicSliderIcon;
|
|
|
210
210
|
exports.GridViewIcon = icons_index.GridViewIcon;
|
|
211
211
|
exports.HamburgerMenuIcon = icons_index.HamburgerMenuIcon;
|
|
212
212
|
exports.HeadphonesIcon = icons_index.HeadphonesIcon;
|
|
213
|
+
exports.HeadsetIcon = icons_index.HeadsetIcon;
|
|
213
214
|
exports.HealthWellnessIcon = icons_index.HealthWellnessIcon;
|
|
214
215
|
exports.HeatMapIcon = icons_index.HeatMapIcon;
|
|
215
216
|
exports.HelpIcon = icons_index.HelpIcon;
|
package/dist/index.d.ts
CHANGED
|
@@ -964,6 +964,7 @@ export declare const IconTypes: {
|
|
|
964
964
|
readonly GridView: "GridView";
|
|
965
965
|
readonly HamburgerMenu: "HamburgerMenu";
|
|
966
966
|
readonly Headphones: "Headphones";
|
|
967
|
+
readonly Headset: "Headset";
|
|
967
968
|
readonly HealthWellness: "HealthWellness";
|
|
968
969
|
readonly HeatMap: "HeatMap";
|
|
969
970
|
readonly Help: "Help";
|
package/dist/index.es.js
CHANGED
|
@@ -101,10 +101,11 @@ export { default as deprecated_ToolbarPanels } from './components/deprecated_Too
|
|
|
101
101
|
export { default as deprecated_ToolbarPanel } from './components/deprecated_Toolbar/ToolbarPanel.js';
|
|
102
102
|
|
|
103
103
|
/* eslint-disable camelcase */
|
|
104
|
-
// TODO remove this over time
|
|
105
104
|
|
|
105
|
+
// Use :focus-visible wherever possible instead of keyboard-user class
|
|
106
|
+
// TODO remove this over time
|
|
106
107
|
enableKeyboardUserClass();
|
|
107
|
-
|
|
108
|
-
const version = '2.
|
|
108
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
109
|
+
const version = '2.19.1';
|
|
109
110
|
|
|
110
111
|
export { version };
|
package/dist/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./__shared/cjs/index-
|
|
5
|
+
var index = require('./__shared/cjs/index-384184bd.js');
|
|
6
6
|
require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
|
9
|
-
require('./__shared/cjs/index-
|
|
9
|
+
require('./__shared/cjs/index-4a5425cc.js');
|
|
10
10
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
11
11
|
require('react-popper');
|
|
12
12
|
require('@popperjs/core');
|
|
@@ -18,11 +18,12 @@ require('@qualtrics/component-styles');
|
|
|
18
18
|
require('throttle-debounce');
|
|
19
19
|
|
|
20
20
|
/* eslint-disable camelcase */
|
|
21
|
-
// TODO remove this over time
|
|
22
21
|
|
|
22
|
+
// Use :focus-visible wherever possible instead of keyboard-user class
|
|
23
|
+
// TODO remove this over time
|
|
23
24
|
index.enableKeyboardUserClass();
|
|
24
|
-
|
|
25
|
-
const version = '2.
|
|
25
|
+
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
26
|
+
const version = '2.19.1';
|
|
26
27
|
|
|
27
28
|
exports.Accordion = index.Accordion;
|
|
28
29
|
exports.AccordionHeader = index.AccordionHeader;
|