@qualtrics/ui-react 2.32.1 → 2.32.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/__shared/cjs/{index-2694aefb.js → index-0587d681.js} +155 -143
- package/dist/__shared/cjs/{index-b8635002.js → index-60bdf816.js} +3 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- 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/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- 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/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- 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/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- 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 +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input.js +4 -4
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/PaneChildren.js +3 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.js +41 -39
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/VirtuosoTestWrapper/VirtuosoTestWrapper.js +17 -0
- package/dist/utils/VirtuosoTestWrapper/index.js +1 -0
- package/dist/utils/filterChildren/filterChildren.js +4 -5
- package/dist/utils/index.js +1 -0
- package/next/package.json +1 -1
- package/package.json +7 -7
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VirtuosoMockContext } from 'react-virtuoso';
|
|
2
|
+
import React__default, { useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
function VirtuosoWrapper(_ref) {
|
|
5
|
+
let {
|
|
6
|
+
children
|
|
7
|
+
} = _ref;
|
|
8
|
+
const contextValue = useMemo(() => ({
|
|
9
|
+
viewportHeight: 350,
|
|
10
|
+
itemHeight: 40
|
|
11
|
+
}), []);
|
|
12
|
+
return /*#__PURE__*/React__default.createElement(VirtuosoMockContext.Provider, {
|
|
13
|
+
value: contextValue
|
|
14
|
+
}, children);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { VirtuosoWrapper as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './VirtuosoTestWrapper.js';
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
|
|
3
3
|
/* eslint-disable no-underscore-dangle */
|
|
4
|
-
function _filterChildren(children) {
|
|
5
|
-
let queries = arguments.length >
|
|
6
|
-
let matchesList = arguments.length > 2 ? arguments[2] : undefined;
|
|
4
|
+
function _filterChildren(children, matchesList) {
|
|
5
|
+
let queries = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
7
6
|
// TODO: Add `React.isValidElement` check here and then update types in helper functions to be `ReactElement` instead of `ReactNode`. This likely will require some sort of change in `Combobox` v1.
|
|
8
7
|
|
|
9
8
|
// Single ReactChild
|
|
@@ -32,7 +31,7 @@ function _findMatch(child, queries, matchesList) {
|
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
if ((_newChild = newChild) !== null && _newChild !== void 0 && (_newChild = _newChild.props) !== null && _newChild !== void 0 && _newChild.children) {
|
|
35
|
-
const modifiedChildren = _filterChildren(newChild.props.children,
|
|
34
|
+
const modifiedChildren = _filterChildren(newChild.props.children, matchesList, queries);
|
|
36
35
|
newChild = /*#__PURE__*/React__default.cloneElement(newChild, {
|
|
37
36
|
children: modifiedChildren
|
|
38
37
|
});
|
|
@@ -47,7 +46,7 @@ function _findMatch(child, queries, matchesList) {
|
|
|
47
46
|
|
|
48
47
|
function filterChildren(children, queries) {
|
|
49
48
|
const matchesList = queries.map(() => []);
|
|
50
|
-
return [_filterChildren(children,
|
|
49
|
+
return [_filterChildren(children, matchesList, queries), matchesList];
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
export { filterChildren as default };
|
package/dist/utils/index.js
CHANGED
package/next/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qualtrics/ui-react",
|
|
3
|
-
"version": "2.32.
|
|
3
|
+
"version": "2.32.3",
|
|
4
4
|
"description": "Official Qualtrics UI component library designed for React",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -123,7 +123,6 @@
|
|
|
123
123
|
"@cypress/code-coverage": "^3.9.11",
|
|
124
124
|
"@cypress/react": "^5.10.3",
|
|
125
125
|
"@cypress/webpack-dev-server": "^1.7.0",
|
|
126
|
-
"@emotion/css": "^11.10.0",
|
|
127
126
|
"@microsoft/api-extractor": "^7.19.4",
|
|
128
127
|
"@qualtrics-translations/qualtricsdesignsystemui": "0.6.20557",
|
|
129
128
|
"@qualtrics-translations/qualtricsdesignsystemuicountries": "^0.6.13525",
|
|
@@ -150,7 +149,7 @@
|
|
|
150
149
|
"@typescript-eslint/parser": "^5.4.0",
|
|
151
150
|
"@vanilla-extract/integration": "^6.2.1",
|
|
152
151
|
"@vanilla-extract/jest-transform": "^1.1.1",
|
|
153
|
-
"babel-
|
|
152
|
+
"@babel/eslint-parser": "^7.22.11",
|
|
154
153
|
"babel-loader": "^8.2.3",
|
|
155
154
|
"babel-plugin-istanbul": "^6.1.1",
|
|
156
155
|
"css-loader": "^6.5.1",
|
|
@@ -160,8 +159,8 @@
|
|
|
160
159
|
"cypress-mochawesome-reporter": "^3.0.1",
|
|
161
160
|
"cypress-real-events": "^1.7.0",
|
|
162
161
|
"cypress-visual-regression": "^1.6.2",
|
|
163
|
-
"eslint": "^
|
|
164
|
-
"eslint-config-airbnb": "^
|
|
162
|
+
"eslint": "^8.56.0",
|
|
163
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
165
164
|
"eslint-config-prettier": "^8.3.0",
|
|
166
165
|
"eslint-plugin-babel": "^5.3.0",
|
|
167
166
|
"eslint-plugin-compat": "^4.0.0",
|
|
@@ -194,7 +193,7 @@
|
|
|
194
193
|
"rollup-plugin-rename-node-modules": "^1.3.1",
|
|
195
194
|
"shelljs": "^0.8.5",
|
|
196
195
|
"style-loader": "^3.3.1",
|
|
197
|
-
"typedoc": "0.
|
|
196
|
+
"typedoc": "0.25.4",
|
|
198
197
|
"typedoc-plugin-missing-exports": "^2.0.0",
|
|
199
198
|
"typescript": "^4.4.4",
|
|
200
199
|
"webpack": "^5.58.0",
|
|
@@ -206,7 +205,8 @@
|
|
|
206
205
|
],
|
|
207
206
|
"browserslist": [
|
|
208
207
|
"defaults",
|
|
209
|
-
"ios 12.2"
|
|
208
|
+
"ios 12.2",
|
|
209
|
+
"not op_mini all"
|
|
210
210
|
],
|
|
211
211
|
"files": [
|
|
212
212
|
"dist",
|