@qualtrics/ui-react 2.49.0 → 2.49.1-alpha.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/dist/__shared/cjs/{index-96632417.js → index-65fe6015.js} +71 -77
- package/dist/components/Button/Button2.js +9 -13
- package/dist/components/ColorPicker/Palette.js +33 -39
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/ConfigPane/ConfigPane.js +5 -6
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/DropdownButton.js +1 -1
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/Tabs/TabContextProvider.js +0 -2
- package/dist/components/Tooltip/Tooltip.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_Tabs/Tabs.js +2 -2
- package/dist/icons/index.d.ts +0 -2
- package/dist/index.d.ts +8 -4
- package/dist/index.js +1 -1
- package/dist/next/AdvancedTable/AdvancedTable.js +8 -6
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +6 -1
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +15 -6
- package/dist/next/AdvancedTable/AdvancedTableDnDContext.js +32 -0
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +9 -11
- package/dist/next/AdvancedTable/AdvancedTableRow.js +6 -1
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +12 -3
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +30 -138
- package/dist/next/AdvancedTable/useDragAndDropConfig.js +191 -0
- package/dist/next/Drawer/Drawer.js +1 -1
- package/dist/next/Menu/Hooks/usePaneSearch.js +12 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -0
- package/dist/next/index.d.ts +14 -12
- package/dist/next/index.js +263 -126
- package/dist/utils/Text/Text.js +1 -1
- package/dist/utils/Translation/containsComponentOrElement.js +6 -3
- package/dist/utils/Translation/useTranslation.js +5 -1
- package/icons/package.json +9 -9
- package/next/package.json +9 -9
- package/package.json +40 -40
package/dist/utils/Text/Text.js
CHANGED
|
@@ -26,7 +26,7 @@ const Text = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
26
26
|
lightTheme: lightTheme,
|
|
27
27
|
delayMs: delayMs,
|
|
28
28
|
"aria-hidden": true
|
|
29
|
-
}, willClone ? (
|
|
29
|
+
}, willClone ? (/*#__PURE__*/React__default.cloneElement(children, {
|
|
30
30
|
className: classNames(className, children.props.className),
|
|
31
31
|
ref: mergeRefs(children.ref, ref, internalRef)
|
|
32
32
|
})) : /*#__PURE__*/React__default.createElement("div", _extends({
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { isValidElement } from 'react';
|
|
2
2
|
|
|
3
3
|
function isClassComponent(component) {
|
|
4
|
-
return
|
|
4
|
+
return typeof component === 'function' &&
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6
|
+
// @ts-expect-error
|
|
7
|
+
!!component.prototype.isReactComponent;
|
|
5
8
|
}
|
|
6
9
|
function isFunctionComponent(component) {
|
|
7
|
-
return
|
|
10
|
+
return typeof component === 'function' && String(component).includes('return React.createElement');
|
|
8
11
|
}
|
|
9
12
|
function isReactComponent(component) {
|
|
10
|
-
return
|
|
13
|
+
return isClassComponent(component) || isFunctionComponent(component);
|
|
11
14
|
}
|
|
12
15
|
|
|
13
16
|
/**
|
|
@@ -29,7 +29,11 @@ const useTranslation = () => {
|
|
|
29
29
|
const fallbackText = fallbackLocalizedText[key];
|
|
30
30
|
if (!translatedText && !HAS_ERROR_BEEN_LOGGED_FOR_KEY.has(key)) {
|
|
31
31
|
HAS_ERROR_BEEN_LOGGED_FOR_KEY.add(key);
|
|
32
|
-
|
|
32
|
+
if (fallbackText) {
|
|
33
|
+
console.warn(NO_LOCALIZED_TEXT_FOR_KEY(key));
|
|
34
|
+
} else {
|
|
35
|
+
console.warn(NO_LOCALIZED_OR_FALLBACK_TEXT_FOR_KEY(key));
|
|
36
|
+
}
|
|
33
37
|
}
|
|
34
38
|
const text = translatedText || fallbackText;
|
|
35
39
|
if (text && placeholders) {
|
package/icons/package.json
CHANGED
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
"types": "../dist/icons/index.d.ts",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@babel/runtime-corejs3": "^7.24.7",
|
|
7
|
+
"@dnd-kit/core": "6.1.0",
|
|
8
|
+
"@dnd-kit/modifiers": "7.0.0",
|
|
7
9
|
"@juggle/resize-observer": "^3.4.0",
|
|
8
|
-
"@popperjs/core": "^2.
|
|
10
|
+
"@popperjs/core": "^2.11.8",
|
|
9
11
|
"@qualtrics/component-styles": "0.150.0",
|
|
10
12
|
"@radix-ui/react-dropdown-menu": "2.0.6",
|
|
11
|
-
"@react-aria/interactions": "^3.
|
|
13
|
+
"@react-aria/interactions": "^3.21.3",
|
|
12
14
|
"@react-hook/resize-observer": "^1.2.6",
|
|
13
|
-
"@vanilla-extract/css": "^1.
|
|
14
|
-
"classnames": "^2.
|
|
15
|
-
"core-js": "^3.
|
|
15
|
+
"@vanilla-extract/css": "^1.15.3",
|
|
16
|
+
"classnames": "^2.5.1",
|
|
17
|
+
"core-js": "^3.37.1",
|
|
16
18
|
"libphonenumber-js": "^1.9.50",
|
|
17
19
|
"react-aria": "^3.33.1",
|
|
18
|
-
"react-
|
|
19
|
-
"react-dnd-html5-backend": "^15.1.2",
|
|
20
|
-
"react-focus-lock": "^2.11.2",
|
|
20
|
+
"react-focus-lock": "^2.12.1",
|
|
21
21
|
"react-input-mask": "^2.0.4",
|
|
22
|
-
"react-popper": "^2.
|
|
22
|
+
"react-popper": "^2.3.0",
|
|
23
23
|
"react-virtuoso": "4.7.13",
|
|
24
24
|
"throttle-debounce": "^2.1.0",
|
|
25
25
|
"uuid": "^8.3.2"
|
package/next/package.json
CHANGED
|
@@ -4,22 +4,22 @@
|
|
|
4
4
|
"types": "../dist/next/index.d.ts",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@babel/runtime-corejs3": "^7.24.7",
|
|
7
|
+
"@dnd-kit/core": "6.1.0",
|
|
8
|
+
"@dnd-kit/modifiers": "7.0.0",
|
|
7
9
|
"@juggle/resize-observer": "^3.4.0",
|
|
8
|
-
"@popperjs/core": "^2.
|
|
10
|
+
"@popperjs/core": "^2.11.8",
|
|
9
11
|
"@qualtrics/component-styles": "0.150.0",
|
|
10
12
|
"@radix-ui/react-dropdown-menu": "2.0.6",
|
|
11
|
-
"@react-aria/interactions": "^3.
|
|
13
|
+
"@react-aria/interactions": "^3.21.3",
|
|
12
14
|
"@react-hook/resize-observer": "^1.2.6",
|
|
13
|
-
"@vanilla-extract/css": "^1.
|
|
14
|
-
"classnames": "^2.
|
|
15
|
-
"core-js": "^3.
|
|
15
|
+
"@vanilla-extract/css": "^1.15.3",
|
|
16
|
+
"classnames": "^2.5.1",
|
|
17
|
+
"core-js": "^3.37.1",
|
|
16
18
|
"libphonenumber-js": "^1.9.50",
|
|
17
19
|
"react-aria": "^3.33.1",
|
|
18
|
-
"react-
|
|
19
|
-
"react-dnd-html5-backend": "^15.1.2",
|
|
20
|
-
"react-focus-lock": "^2.11.2",
|
|
20
|
+
"react-focus-lock": "^2.12.1",
|
|
21
21
|
"react-input-mask": "^2.0.4",
|
|
22
|
-
"react-popper": "^2.
|
|
22
|
+
"react-popper": "^2.3.0",
|
|
23
23
|
"react-virtuoso": "4.7.13",
|
|
24
24
|
"throttle-debounce": "^2.1.0",
|
|
25
25
|
"uuid": "^8.3.2"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qualtrics/ui-react",
|
|
3
|
-
"version": "2.49.0",
|
|
3
|
+
"version": "2.49.1-alpha.0",
|
|
4
4
|
"description": "Official Qualtrics UI component library designed for React",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"prettier": "prettier --check .",
|
|
55
55
|
"prettier:fix": "prettier --write .",
|
|
56
56
|
"start": "rollup -c -w",
|
|
57
|
-
"test": "npm run test:unit && npm run test:postbuild",
|
|
57
|
+
"test": "NODE_ENV=test npm run test:unit && npm run test:postbuild",
|
|
58
58
|
"test:ci": "NODE_ENV=test npm run test:unit:ci",
|
|
59
59
|
"test:unit": "jest",
|
|
60
60
|
"test:unit:ci": "npm run test:unit -- --silent",
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"test:postbuild:forceupdate": "RERUN=1 FORCESNAPSHOTUPDATE=1 jest --config jest.postbuild.config.js -u",
|
|
66
66
|
"precypress": "sh fix-cypress-reporter.sh && npm run test:cypress:clean",
|
|
67
67
|
"cypress": "./run-cypress-docker.sh",
|
|
68
|
-
"test:cypress": "npm run cypress run
|
|
69
|
-
"test:cypress:interactive": "sh fix-cypress-reporter.sh && cypress open
|
|
70
|
-
"test:cypress:ci": "sh fix-cypress-reporter.sh && CI_ENV=1 NO_COLOR=1 cypress run
|
|
71
|
-
"test:cypress:visual": "
|
|
72
|
-
"test:cypress:visual:update": "
|
|
68
|
+
"test:cypress": "npm run cypress run --component --config-file cypress.config.ci.js --headless --browser chrome",
|
|
69
|
+
"test:cypress:interactive": "sh fix-cypress-reporter.sh && cypress open --component --config-file cypress.config.ui.js --browser chrome",
|
|
70
|
+
"test:cypress:ci": "sh fix-cypress-reporter.sh && CI_ENV=1 NO_COLOR=1 cypress run --component --config-file cypress.config.ci.js --headless --browser chrome",
|
|
71
|
+
"test:cypress:visual": "npx cypress run --component --config-file cypress.config.visual.js --headless --browser chrome",
|
|
72
|
+
"test:cypress:visual:update": "npx cypress run --component --config-file cypress.config.update.js --headless --browser chrome",
|
|
73
73
|
"test:cypress:clean": "rimraf cypress/snapshots/actual/* && rimraf cypress/snapshots/diff/*",
|
|
74
74
|
"types": "run-s types:generate types:build types:replace-react-jsx-namespace types:clean",
|
|
75
75
|
"types:generate": "run-p types:generate:*",
|
|
@@ -100,22 +100,22 @@
|
|
|
100
100
|
},
|
|
101
101
|
"dependencies": {
|
|
102
102
|
"@babel/runtime-corejs3": "^7.24.7",
|
|
103
|
+
"@dnd-kit/core": "6.1.0",
|
|
104
|
+
"@dnd-kit/modifiers": "7.0.0",
|
|
103
105
|
"@juggle/resize-observer": "^3.4.0",
|
|
104
|
-
"@popperjs/core": "^2.
|
|
106
|
+
"@popperjs/core": "^2.11.8",
|
|
105
107
|
"@qualtrics/component-styles": "0.150.0",
|
|
106
108
|
"@radix-ui/react-dropdown-menu": "2.0.6",
|
|
107
|
-
"@react-aria/interactions": "^3.
|
|
109
|
+
"@react-aria/interactions": "^3.21.3",
|
|
108
110
|
"@react-hook/resize-observer": "^1.2.6",
|
|
109
|
-
"@vanilla-extract/css": "^1.
|
|
110
|
-
"classnames": "^2.
|
|
111
|
-
"core-js": "^3.
|
|
111
|
+
"@vanilla-extract/css": "^1.15.3",
|
|
112
|
+
"classnames": "^2.5.1",
|
|
113
|
+
"core-js": "^3.37.1",
|
|
112
114
|
"libphonenumber-js": "^1.9.50",
|
|
113
115
|
"react-aria": "^3.33.1",
|
|
114
|
-
"react-
|
|
115
|
-
"react-dnd-html5-backend": "^15.1.2",
|
|
116
|
-
"react-focus-lock": "^2.11.2",
|
|
116
|
+
"react-focus-lock": "^2.12.1",
|
|
117
117
|
"react-input-mask": "^2.0.4",
|
|
118
|
-
"react-popper": "^2.
|
|
118
|
+
"react-popper": "^2.3.0",
|
|
119
119
|
"react-virtuoso": "4.7.13",
|
|
120
120
|
"throttle-debounce": "^2.1.0",
|
|
121
121
|
"uuid": "^8.3.2"
|
|
@@ -127,9 +127,9 @@
|
|
|
127
127
|
"@babel/preset-env": "^7.24.7",
|
|
128
128
|
"@babel/preset-react": "^7.24.7",
|
|
129
129
|
"@babel/preset-typescript": "^7.24.7",
|
|
130
|
-
"@cypress/code-coverage": "^3.
|
|
131
|
-
"@cypress/
|
|
132
|
-
"@cypress/webpack-dev-server": "^
|
|
130
|
+
"@cypress/code-coverage": "^3.12.45",
|
|
131
|
+
"@cypress/react18": "^2.0.1",
|
|
132
|
+
"@cypress/webpack-dev-server": "^3.10.1",
|
|
133
133
|
"@microsoft/api-extractor": "^7.19.4",
|
|
134
134
|
"@qualtrics-translations/qualtricsdesignsystemui": "^0.6.28735",
|
|
135
135
|
"@qualtrics-translations/qualtricsdesignsystemuicountries": "^0.6.27625",
|
|
@@ -138,48 +138,48 @@
|
|
|
138
138
|
"@rollup/plugin-json": "^4.0.3",
|
|
139
139
|
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
140
140
|
"@rollup/plugin-replace": "^3.0.0",
|
|
141
|
-
"@testing-library/cypress": "^
|
|
142
|
-
"@testing-library/jest-dom": "^
|
|
143
|
-
"@testing-library/react": "^
|
|
144
|
-
"@testing-library/
|
|
145
|
-
"@testing-library/user-event": "^14.4.3",
|
|
141
|
+
"@testing-library/cypress": "^10.0.2",
|
|
142
|
+
"@testing-library/jest-dom": "^6.4.6",
|
|
143
|
+
"@testing-library/react": "^16.0.0",
|
|
144
|
+
"@testing-library/user-event": "^14.5.2",
|
|
146
145
|
"@types/classnames": "^2.2.6",
|
|
147
146
|
"@types/estree": "^0.0.52",
|
|
148
147
|
"@types/jest": "^29.5.0",
|
|
149
148
|
"@types/node": "^18.17.13",
|
|
150
|
-
"@types/react": "^
|
|
151
|
-
"@types/react-dom": "^
|
|
149
|
+
"@types/react": "^18.0.0",
|
|
150
|
+
"@types/react-dom": "^18.0.0",
|
|
152
151
|
"@types/uuid": "^8.3.4",
|
|
153
152
|
"@types/webpack": "^5.28.0",
|
|
154
153
|
"@types/webpack-dev-server": "^4.3.1",
|
|
155
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
156
|
-
"@typescript-eslint/parser": "^5.
|
|
154
|
+
"@typescript-eslint/eslint-plugin": "^8.5.0",
|
|
155
|
+
"@typescript-eslint/parser": "^8.5.0",
|
|
157
156
|
"@vanilla-extract/integration": "^6.2.1",
|
|
158
157
|
"@vanilla-extract/jest-transform": "^1.1.1",
|
|
158
|
+
"@vanilla-extract/webpack-plugin": "^2.3.11",
|
|
159
159
|
"babel-loader": "^8.2.3",
|
|
160
160
|
"babel-plugin-istanbul": "^6.1.1",
|
|
161
161
|
"css-loader": "^6.5.1",
|
|
162
162
|
"cssnano": "^4.1.11",
|
|
163
163
|
"csstype": "^3.0.10",
|
|
164
|
-
"cypress": "^
|
|
165
|
-
"cypress-mochawesome-reporter": "^3.
|
|
164
|
+
"cypress": "^13.13.0",
|
|
165
|
+
"cypress-mochawesome-reporter": "^3.8.2",
|
|
166
166
|
"cypress-real-events": "^1.7.0",
|
|
167
|
-
"cypress-visual-regression": "^
|
|
167
|
+
"cypress-visual-regression": "^5.0.4",
|
|
168
168
|
"eslint": "^8.57.0",
|
|
169
169
|
"eslint-config-airbnb": "^19.0.4",
|
|
170
|
-
"eslint-config-prettier": "^
|
|
170
|
+
"eslint-config-prettier": "^9.1.0",
|
|
171
171
|
"eslint-plugin-babel": "^5.3.0",
|
|
172
172
|
"eslint-plugin-compat": "^4.0.0",
|
|
173
173
|
"eslint-plugin-cypress": "^2.12.1",
|
|
174
174
|
"eslint-plugin-import": "^2.25.3",
|
|
175
175
|
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
176
176
|
"eslint-plugin-react": "^7.24.0",
|
|
177
|
-
"eslint-plugin-react-hooks": "^4.2
|
|
177
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
178
178
|
"generic-names": "^4.0.0",
|
|
179
179
|
"html-webpack-plugin": "^5.5.0",
|
|
180
180
|
"identity-obj-proxy": "^3.0.0",
|
|
181
|
-
"jest": "^29.
|
|
182
|
-
"jest-environment-jsdom": "^29.
|
|
181
|
+
"jest": "^29.7.0",
|
|
182
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
183
183
|
"jest-junit": "^15.0.0",
|
|
184
184
|
"less": "3.13.1",
|
|
185
185
|
"less-loader": "^10.2.0",
|
|
@@ -190,8 +190,8 @@
|
|
|
190
190
|
"postcss-preset-env": "^6.7.0",
|
|
191
191
|
"postcss-reporter": "^6.0.1",
|
|
192
192
|
"prettier": "^2.4.1",
|
|
193
|
-
"react": "^
|
|
194
|
-
"react-dom": "^
|
|
193
|
+
"react": "^18.0.0",
|
|
194
|
+
"react-dom": "^18.0.0",
|
|
195
195
|
"react-router-dom": "^6.3.0",
|
|
196
196
|
"rimraf": "^3.0.2",
|
|
197
197
|
"rollup": "^2.75.6",
|
|
@@ -200,9 +200,9 @@
|
|
|
200
200
|
"rollup-plugin-copy": "^3.5.0",
|
|
201
201
|
"shelljs": "^0.8.5",
|
|
202
202
|
"style-loader": "^3.3.1",
|
|
203
|
-
"typedoc": "0.
|
|
204
|
-
"typedoc-plugin-missing-exports": "^
|
|
205
|
-
"typescript": "^
|
|
203
|
+
"typedoc": "0.26.3",
|
|
204
|
+
"typedoc-plugin-missing-exports": "^3.0.0",
|
|
205
|
+
"typescript": "^5.5.3",
|
|
206
206
|
"webpack": "^5.58.0",
|
|
207
207
|
"webpack-cli": "^4.9.1",
|
|
208
208
|
"webpack-dev-server": "^4.15.2",
|