@qualtrics/ui-react 2.24.2 → 2.26.0
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 +18 -0
- package/dist/__shared/cjs/{index-8f52588d.js → index-ae6df097.js} +3 -3
- package/dist/__shared/cjs/{index-b7a35c2e.js → index-dc6f69ac.js} +262 -256
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +1 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Hue.js +1 -1
- package/dist/components/ColorPicker/Palette.js +1 -1
- package/dist/components/ColorPicker/Saturation.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxIcon.js +1 -1
- package/dist/components/Combobox/ComboboxInput.js +1 -1
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +4 -4
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownList.js +1 -1
- package/dist/components/Dropdown/DropdownOption.js +2 -2
- package/dist/components/Dropdown/DropdownSearch.js +2 -2
- package/dist/components/FilePicker/FilePicker.js +2 -2
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +2 -2
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +7 -7
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -2
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +3 -3
- package/dist/components/NumberStepper/NumberStepper.js +2 -2
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +3 -3
- package/dist/components/Pagination/PaginationPageInput.js +8 -8
- package/dist/components/Pagination/PaginationPreviousButton.js +3 -3
- package/dist/components/Popover/Popover.js +5 -5
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/Alpha.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
- package/dist/components/deprecated_ColorPicker/Hue.js +2 -2
- package/dist/components/deprecated_ColorPicker/Saturation.js +2 -2
- package/dist/components/deprecated_ColorPicker/Swatch.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +1 -1
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +5 -5
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +1 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +15 -7
- package/dist/index.es.js +2 -1
- package/dist/index.js +4 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +8 -6
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +6 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +2 -2
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox.js +2 -0
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +2 -0
- package/dist/next/Combobox/ComboboxOption.js +2 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Drawer/Drawer.js +2 -2
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +2 -2
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +1 -1
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +41 -0
- package/dist/next/Menu/Hooks/useIsVirtualized.js +8 -0
- package/dist/next/Menu/Hooks/useMaskDimensions.js +59 -0
- package/dist/next/Menu/{useMutationObserver.js → Hooks/useMutationObserver.js} +1 -1
- package/dist/next/Menu/{usePaneSearch.js → Hooks/usePaneSearch.js} +76 -34
- package/dist/next/Menu/Menu.js +22 -24
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +5 -2
- package/dist/next/Menu/MenuContext.js +5 -1
- package/dist/next/Menu/MenuItem.js +38 -16
- package/dist/next/Menu/MenuPane.js +90 -55
- package/dist/next/Menu/PaneChildren.js +47 -0
- package/dist/next/Menu/SubMenu.js +95 -49
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +118 -0
- package/dist/next/Select/Select2.js +8 -0
- package/dist/next/Select/SelectButton.js +46 -0
- package/dist/next/Select/SelectContext.js +16 -0
- package/dist/next/Select/SelectItem.js +46 -0
- package/dist/next/Select/SelectPane.js +43 -0
- package/dist/next/Select/SelectedItems.js +45 -0
- package/dist/next/Select/SubSelect.js +90 -0
- package/dist/next/Select/constants.js +13 -0
- package/dist/next/Select/index.js +5 -0
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +1 -1
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +68 -6
- package/dist/next/index.es.js +6 -0
- package/dist/next/index.js +1009 -372
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +2 -2
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +1 -1
- package/icons/package.json +2 -0
- package/next/package.json +3 -1
- package/package.json +6 -3
package/dist/translations-en.js
CHANGED
|
@@ -63,7 +63,13 @@ var FALLBACK_LOCALIZED_TEXT = {
|
|
|
63
63
|
"readOnly": "Read only",
|
|
64
64
|
"newOptionsLoading": "New options loading.",
|
|
65
65
|
"newOptionsLoaded": "New options loaded.",
|
|
66
|
-
"locked": "Locked"
|
|
66
|
+
"locked": "Locked",
|
|
67
|
+
"currentPage": "Current Page",
|
|
68
|
+
"firstPage": "First Page",
|
|
69
|
+
"lastPage": "Last Page",
|
|
70
|
+
"currentPageNumber": "Current Page: {{currentPage}}",
|
|
71
|
+
"currentPageNumberOf": "Current Page: {{currentPage}} of {{numPages}}",
|
|
72
|
+
"rowDisplayCount": "View {{select}} per page"
|
|
67
73
|
};
|
|
68
74
|
|
|
69
75
|
export { FALLBACK_LOCALIZED_TEXT as default };
|
|
@@ -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 = {"flyout":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._dYBY8{background-color:#fff;border-radius:4px;border:4px solid transparent;border-right:none;border-left:none;box-shadow:0 0 0 1px #eee,0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;max-width:500px;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._VbVd7{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;cursor:pointer;font-size:14px;color:#32363a;word-break:break-word;outline:none}._VbVd7._JNg0M,._VbVd7._Xb53A._VbVd7:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._VbVd7._T8fKM{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._VbVd7._T8fKM._JNg0M,._VbVd7._T8fKM._Xb53A._VbVd7._T8fKM:hover{background-color:#e4effa}._VbVd7:active:not(._T8fKM):not([aria-disabled=true]){background-color:#e8e9e9}._YjdWF ._rvvAN{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;font-size:12px;color:#32363a;font-weight:700;word-break:break-word}._YjdWF ._Z9JCa{display:none}._YjdWF:not(:first-child) ._Z9JCa{display:block;margin:3.5px 0}._lNCRU{width:100%;height:40px}";
|
|
4
|
+
var styles = {"flyout":"_dYBY8","flyoutOption":"_VbVd7","highlighted":"_JNg0M","hoverHighlight":"_Xb53A","selected":"_T8fKM","flyoutHeader":"_YjdWF","headerContent":"_rvvAN","headerDivider":"_Z9JCa","flyoutSpinner":"_lNCRU"};
|
|
5
|
+
var stylesheet="._dYBY8{background-color:#fff;border-radius:4px;border:4px solid transparent;border-right:none;border-left:none;box-shadow:0 0 0 1px #eee,0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;max-width:500px;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._VbVd7{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;cursor:pointer;font-size:14px;color:#32363a;word-break:break-word;outline:none}._VbVd7._JNg0M,._VbVd7._Xb53A._VbVd7:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._VbVd7._T8fKM{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._VbVd7._T8fKM._JNg0M,._VbVd7._T8fKM._Xb53A._VbVd7._T8fKM:hover{background-color:#e4effa}._VbVd7:active:not(._T8fKM):not([aria-disabled=true]){background-color:#e8e9e9}._YjdWF ._rvvAN{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;font-size:12px;color:#32363a;font-weight:700;word-break:break-word}._YjdWF ._Z9JCa{display:none}._YjdWF:not(:first-child) ._Z9JCa{display:block;margin:3.5px 0}._lNCRU{width:100%;height:40px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -16,7 +16,7 @@ function useMockedPopper(_, popperElement, _ref) {
|
|
|
16
16
|
onFirstUpdate
|
|
17
17
|
} = _ref;
|
|
18
18
|
useEffect(() => {
|
|
19
|
-
onFirstUpdate === null || onFirstUpdate === void 0
|
|
19
|
+
onFirstUpdate === null || onFirstUpdate === void 0 || onFirstUpdate();
|
|
20
20
|
}, [onFirstUpdate, popperElement]);
|
|
21
21
|
return {
|
|
22
22
|
styles: {
|
|
@@ -125,7 +125,7 @@ const Popper = _ref4 => {
|
|
|
125
125
|
onFirstUpdate
|
|
126
126
|
});
|
|
127
127
|
const handleUpdate = useCallback(() => {
|
|
128
|
-
update === null || update === void 0
|
|
128
|
+
update === null || update === void 0 || update();
|
|
129
129
|
}, [update]);
|
|
130
130
|
|
|
131
131
|
// Tell popper.js to update the positioning when the popper element changes size since it only listens for window resizing out of the box.
|
|
@@ -23,7 +23,7 @@ function subscribe(query, callback) {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
const entry = map.get(query);
|
|
26
|
-
entry === null || entry === void 0
|
|
26
|
+
entry === null || entry === void 0 || entry.subscribers.add(callback);
|
|
27
27
|
return entry ? function unsubscribe() {
|
|
28
28
|
entry.subscribers.delete(callback);
|
|
29
29
|
if (entry.subscribers.size === 0) {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
function wrapEvent(theirHandler, ourHandler) {
|
|
10
10
|
return event => {
|
|
11
|
-
theirHandler === null || theirHandler === void 0
|
|
11
|
+
theirHandler === null || theirHandler === void 0 || theirHandler(event);
|
|
12
12
|
if (!event.defaultPrevented) {
|
|
13
13
|
return ourHandler === null || ourHandler === void 0 ? void 0 : ourHandler(event);
|
|
14
14
|
}
|
package/icons/package.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"types": "../dist/icons/index.d.ts",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@babel/runtime-corejs3": "^7.10.2",
|
|
7
|
+
"@juggle/resize-observer": "^3.4.0",
|
|
7
8
|
"@popperjs/core": "^2.10.2",
|
|
8
9
|
"@qualtrics/component-styles": "0.142.0",
|
|
9
10
|
"@radix-ui/react-dropdown-menu": "2.0.5",
|
|
@@ -18,6 +19,7 @@
|
|
|
18
19
|
"react-focus-lock": "^2.6.0",
|
|
19
20
|
"react-input-mask": "^2.0.4",
|
|
20
21
|
"react-popper": "^2.2.4",
|
|
22
|
+
"react-virtuoso": "^4.4.2",
|
|
21
23
|
"throttle-debounce": "^2.1.0",
|
|
22
24
|
"uuid": "^8.3.2"
|
|
23
25
|
}
|
package/next/package.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"types": "../dist/next/index.d.ts",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@babel/runtime-corejs3": "^7.10.2",
|
|
7
|
+
"@juggle/resize-observer": "^3.4.0",
|
|
7
8
|
"@popperjs/core": "^2.10.2",
|
|
8
9
|
"@qualtrics/component-styles": "0.142.0",
|
|
9
10
|
"@radix-ui/react-dropdown-menu": "2.0.5",
|
|
@@ -18,10 +19,11 @@
|
|
|
18
19
|
"react-focus-lock": "^2.6.0",
|
|
19
20
|
"react-input-mask": "^2.0.4",
|
|
20
21
|
"react-popper": "^2.2.4",
|
|
22
|
+
"react-virtuoso": "^4.4.2",
|
|
21
23
|
"throttle-debounce": "^2.1.0",
|
|
22
24
|
"uuid": "^8.3.2"
|
|
23
25
|
},
|
|
24
26
|
"peerDependencies": {
|
|
25
|
-
"@qualtrics/ui-react": "2.
|
|
27
|
+
"@qualtrics/ui-react": "2.26.0"
|
|
26
28
|
}
|
|
27
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qualtrics/ui-react",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.0",
|
|
4
4
|
"description": "Official Qualtrics UI component library designed for React",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"test:cypress:visual": "npm run cypress -- run-ct --config-file cypress.visual.json",
|
|
67
67
|
"test:cypress:visual:update": "npm run cypress -- run-ct --config-file cypress.update.json",
|
|
68
68
|
"test:cypress:clean": "rimraf cypress/snapshots/actual/* && rimraf cypress/snapshots/diff/*",
|
|
69
|
-
"types": "run-s types:generate types:build types:clean",
|
|
69
|
+
"types": "run-s types:generate types:build types:replace-react-jsx-namespace types:clean",
|
|
70
70
|
"types:generate": "run-p types:generate:*",
|
|
71
71
|
"types:generate:tsc": "tsc",
|
|
72
72
|
"types:generate:copy": "node scripts/generate-types",
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
"types:typedoc:dist": "typedoc --options config/typedoc.json",
|
|
79
79
|
"types:typedoc:next": "typedoc --options config/typedoc.next.json",
|
|
80
80
|
"types:typedoc:icons": "typedoc --options config/typedoc.icons.json",
|
|
81
|
+
"types:replace-react-jsx-namespace": "node scripts/replace-react-jsx-namespace",
|
|
81
82
|
"types:clean": "rimraf dist/types"
|
|
82
83
|
},
|
|
83
84
|
"peerDependencies": {
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
},
|
|
93
94
|
"dependencies": {
|
|
94
95
|
"@babel/runtime-corejs3": "^7.10.2",
|
|
96
|
+
"@juggle/resize-observer": "^3.4.0",
|
|
95
97
|
"@popperjs/core": "^2.10.2",
|
|
96
98
|
"@qualtrics/component-styles": "0.142.0",
|
|
97
99
|
"@radix-ui/react-dropdown-menu": "2.0.5",
|
|
@@ -106,6 +108,7 @@
|
|
|
106
108
|
"react-focus-lock": "^2.6.0",
|
|
107
109
|
"react-input-mask": "^2.0.4",
|
|
108
110
|
"react-popper": "^2.2.4",
|
|
111
|
+
"react-virtuoso": "^4.4.2",
|
|
109
112
|
"throttle-debounce": "^2.1.0",
|
|
110
113
|
"uuid": "^8.3.2"
|
|
111
114
|
},
|
|
@@ -120,7 +123,7 @@
|
|
|
120
123
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
121
124
|
"@emotion/css": "^11.10.0",
|
|
122
125
|
"@microsoft/api-extractor": "^7.19.4",
|
|
123
|
-
"@qualtrics-translations/qualtricsdesignsystemui": "0.6.
|
|
126
|
+
"@qualtrics-translations/qualtricsdesignsystemui": "0.6.20351",
|
|
124
127
|
"@qualtrics-translations/qualtricsdesignsystemuicountries": "^0.6.13525",
|
|
125
128
|
"@rollup/plugin-babel": "^5.0.2",
|
|
126
129
|
"@rollup/plugin-commonjs": "^22.0.1",
|