@qualtrics/ui-react 2.85.1 → 2.85.4
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 +27 -0
- package/dist/__node_modules/@radix-ui/primitive/dist/index.js +14 -3
- package/dist/__node_modules/@radix-ui/primitive/dist/internal/is-development.false.js +4 -0
- package/dist/__node_modules/@radix-ui/react-arrow/dist/index.js +7 -4
- package/dist/__node_modules/@radix-ui/react-collection/dist/index.js +58 -39
- package/dist/__node_modules/@radix-ui/react-compose-refs/dist/index.js +8 -1
- package/dist/__node_modules/@radix-ui/react-context/dist/index.js +35 -12
- package/dist/__node_modules/@radix-ui/react-direction/dist/index.js +10 -3
- package/dist/__node_modules/@radix-ui/react-dismissable-layer/dist/index.js +172 -41
- package/dist/__node_modules/@radix-ui/react-dropdown-menu/dist/index.js +58 -61
- package/dist/__node_modules/@radix-ui/react-focus-guards/dist/index.js +30 -6
- package/dist/__node_modules/@radix-ui/react-focus-scope/dist/index.js +33 -9
- package/dist/__node_modules/@radix-ui/react-id/dist/index.js +6 -0
- package/dist/__node_modules/@radix-ui/react-menu/dist/index.js +107 -79
- package/dist/__node_modules/@radix-ui/react-popper/dist/index.js +79 -38
- package/dist/__node_modules/@radix-ui/react-portal/dist/index.js +9 -6
- package/dist/__node_modules/@radix-ui/react-presence/dist/index.js +71 -12
- package/dist/__node_modules/@radix-ui/react-primitive/dist/index.js +6 -0
- package/dist/__node_modules/@radix-ui/react-roving-focus/dist/index.js +36 -12
- package/dist/__node_modules/@radix-ui/react-slot/dist/index.js +85 -54
- package/dist/__node_modules/@radix-ui/react-use-callback-ref/dist/index.js +6 -1
- package/dist/__node_modules/@radix-ui/react-use-controllable-state/dist/index.js +14 -4
- package/dist/__node_modules/@radix-ui/react-use-effect-event/dist/index.js +6 -1
- package/dist/__node_modules/@radix-ui/react-use-is-hydrated/dist/index.js +37 -0
- package/dist/__node_modules/@radix-ui/react-use-layout-effect/dist/index.js +1 -1
- package/dist/__node_modules/@radix-ui/react-use-size/dist/index.js +6 -0
- package/dist/__shared/cjs/{index-21aa4d43.js → index-08198ff4.js} +140 -136
- package/dist/__shared/cjs/{index-e3d48e21.js → index-e51bbd75.js} +4 -4
- 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/ConfigPane.js +6 -2
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +1 -1
- 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/design-tokens/less/typography.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/components/BadgeHandIcon.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- 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/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/useFlyoutNode.js +48 -0
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +4 -3
- package/dist/next/Menu/MenuItem.js +3 -2
- package/dist/next/Menu/MenuPane.js +17 -16
- package/dist/next/Menu/PaneChildren.js +15 -10
- package/dist/next/Menu/SubMenu.js +17 -16
- 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 +1055 -519
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +5 -5
- package/next/package.json +6 -6
- package/package.json +15 -15
- package/dist/__node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -23
|
@@ -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 = "._iVjf8{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}._7udKA{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}._7udKA._B7ByB._7udKA:hover,._7udKA._OE-nn{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._7udKA._XETGA{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._7udKA._XETGA._B7ByB._7udKA._XETGA:hover,._7udKA._XETGA._OE-nn{background-color:#e4effa}._7udKA:active:not(._XETGA):not([aria-disabled=true]){background-color:#e8e9e9}._Sjw5v ._tniyA{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}._Sjw5v ._PVka3{display:none}._Sjw5v:not(:first-child) ._PVka3{display:block;margin:3.5px 0}._bZVaj{width:100%;height:40px}";
|
|
4
|
+
var styles = {"flyout":"_iVjf8","flyoutOption":"_7udKA","highlighted":"_OE-nn","hoverHighlight":"_B7ByB","selected":"_XETGA","flyoutHeader":"_Sjw5v","headerContent":"_tniyA","headerDivider":"_PVka3","flyoutSpinner":"_bZVaj"};
|
|
5
|
+
var stylesheet="._iVjf8{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}._7udKA{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}._7udKA._B7ByB._7udKA:hover,._7udKA._OE-nn{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._7udKA._XETGA{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._7udKA._XETGA._B7ByB._7udKA._XETGA:hover,._7udKA._XETGA._OE-nn{background-color:#e4effa}._7udKA:active:not(._XETGA):not([aria-disabled=true]){background-color:#e8e9e9}._Sjw5v ._tniyA{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}._Sjw5v ._PVka3{display:none}._Sjw5v:not(:first-child) ._PVka3{display:block;margin:3.5px 0}._bZVaj{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 };
|
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
|
|
7
|
+
"@dnd-kit/core": "6.3.1",
|
|
8
8
|
"@dnd-kit/modifiers": "7.0.0",
|
|
9
9
|
"@floating-ui/react-dom": "^2.1.2",
|
|
10
10
|
"@juggle/resize-observer": "^3.4.0",
|
|
11
|
-
"@qualtrics/component-styles": "0.159.
|
|
12
|
-
"@radix-ui/react-dropdown-menu": "2.1.
|
|
11
|
+
"@qualtrics/component-styles": "0.159.1",
|
|
12
|
+
"@radix-ui/react-dropdown-menu": "2.1.24",
|
|
13
13
|
"@react-aria/interactions": "^3.21.3",
|
|
14
14
|
"@react-hook/resize-observer": "^1.2.6",
|
|
15
15
|
"@vanilla-extract/css": "^1.15.3",
|
|
16
16
|
"classnames": "^2.5.1",
|
|
17
17
|
"core-js": "^3.37.1",
|
|
18
|
-
"libphonenumber-js": "1.
|
|
18
|
+
"libphonenumber-js": "1.12.43",
|
|
19
19
|
"react-aria": "^3.33.1",
|
|
20
20
|
"react-focus-lock": "^2.12.1",
|
|
21
21
|
"react-imask": "^7.6.1",
|
|
22
|
-
"react-virtuoso": "4.
|
|
22
|
+
"react-virtuoso": "4.18.16",
|
|
23
23
|
"throttle-debounce": "^2.1.0",
|
|
24
24
|
"uuid": "^8.3.2"
|
|
25
25
|
}
|
package/next/package.json
CHANGED
|
@@ -4,26 +4,26 @@
|
|
|
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
|
|
7
|
+
"@dnd-kit/core": "6.3.1",
|
|
8
8
|
"@dnd-kit/modifiers": "7.0.0",
|
|
9
9
|
"@floating-ui/react-dom": "^2.1.2",
|
|
10
10
|
"@juggle/resize-observer": "^3.4.0",
|
|
11
|
-
"@qualtrics/component-styles": "0.159.
|
|
12
|
-
"@radix-ui/react-dropdown-menu": "2.1.
|
|
11
|
+
"@qualtrics/component-styles": "0.159.1",
|
|
12
|
+
"@radix-ui/react-dropdown-menu": "2.1.24",
|
|
13
13
|
"@react-aria/interactions": "^3.21.3",
|
|
14
14
|
"@react-hook/resize-observer": "^1.2.6",
|
|
15
15
|
"@vanilla-extract/css": "^1.15.3",
|
|
16
16
|
"classnames": "^2.5.1",
|
|
17
17
|
"core-js": "^3.37.1",
|
|
18
|
-
"libphonenumber-js": "1.
|
|
18
|
+
"libphonenumber-js": "1.12.43",
|
|
19
19
|
"react-aria": "^3.33.1",
|
|
20
20
|
"react-focus-lock": "^2.12.1",
|
|
21
21
|
"react-imask": "^7.6.1",
|
|
22
|
-
"react-virtuoso": "4.
|
|
22
|
+
"react-virtuoso": "4.18.16",
|
|
23
23
|
"throttle-debounce": "^2.1.0",
|
|
24
24
|
"uuid": "^8.3.2"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@qualtrics/ui-react": "2.85.
|
|
27
|
+
"@qualtrics/ui-react": "2.85.4"
|
|
28
28
|
}
|
|
29
29
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qualtrics/ui-react",
|
|
3
|
-
"version": "2.85.
|
|
3
|
+
"version": "2.85.4",
|
|
4
4
|
"description": "Official Qualtrics UI component library designed for React",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -98,22 +98,22 @@
|
|
|
98
98
|
},
|
|
99
99
|
"dependencies": {
|
|
100
100
|
"@babel/runtime-corejs3": "^7.24.7",
|
|
101
|
-
"@dnd-kit/core": "6.1
|
|
101
|
+
"@dnd-kit/core": "6.3.1",
|
|
102
102
|
"@dnd-kit/modifiers": "7.0.0",
|
|
103
103
|
"@floating-ui/react-dom": "^2.1.2",
|
|
104
104
|
"@juggle/resize-observer": "^3.4.0",
|
|
105
|
-
"@qualtrics/component-styles": "0.159.
|
|
106
|
-
"@radix-ui/react-dropdown-menu": "2.1.
|
|
105
|
+
"@qualtrics/component-styles": "0.159.1",
|
|
106
|
+
"@radix-ui/react-dropdown-menu": "2.1.24",
|
|
107
107
|
"@react-aria/interactions": "^3.21.3",
|
|
108
108
|
"@react-hook/resize-observer": "^1.2.6",
|
|
109
109
|
"@vanilla-extract/css": "^1.15.3",
|
|
110
110
|
"classnames": "^2.5.1",
|
|
111
111
|
"core-js": "^3.37.1",
|
|
112
|
-
"libphonenumber-js": "1.
|
|
112
|
+
"libphonenumber-js": "1.12.43",
|
|
113
113
|
"react-aria": "^3.33.1",
|
|
114
114
|
"react-focus-lock": "^2.12.1",
|
|
115
115
|
"react-imask": "^7.6.1",
|
|
116
|
-
"react-virtuoso": "4.
|
|
116
|
+
"react-virtuoso": "4.18.16",
|
|
117
117
|
"throttle-debounce": "^2.1.0",
|
|
118
118
|
"uuid": "^8.3.2"
|
|
119
119
|
},
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
"@babel/preset-react": "^7.24.7",
|
|
127
127
|
"@babel/preset-typescript": "^7.24.7",
|
|
128
128
|
"@microsoft/api-extractor": "^7.48.1",
|
|
129
|
-
"@playwright/test": "1.
|
|
129
|
+
"@playwright/test": "1.63.0",
|
|
130
130
|
"@qualtrics/base-styles": "0.4.2",
|
|
131
131
|
"@qualtrics/translations-qualtricsdesignsystemui": "^0.6.47325",
|
|
132
132
|
"@qualtrics/translations-qualtricsdesignsystemuicountries": "^0.6.37430",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"@types/classnames": "^2.2.6",
|
|
142
142
|
"@types/estree": "^0.0.52",
|
|
143
143
|
"@types/jest": "^29.5.0",
|
|
144
|
-
"@types/node": "^
|
|
144
|
+
"@types/node": "^20.19.0",
|
|
145
145
|
"@types/react": "^19.0.0",
|
|
146
146
|
"@types/react-dom": "^19.0.0",
|
|
147
147
|
"@types/uuid": "^8.3.4",
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"@vanilla-extract/integration": "^8.0.4",
|
|
153
153
|
"@vanilla-extract/jest-transform": "^1.1.1",
|
|
154
154
|
"@vanilla-extract/webpack-plugin": "^2.3.11",
|
|
155
|
-
"@vitejs/plugin-react": "^
|
|
155
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
156
156
|
"babel-loader": "^8.2.3",
|
|
157
157
|
"babel-plugin-istanbul": "^6.1.1",
|
|
158
158
|
"css-loader": "^6.5.1",
|
|
@@ -174,10 +174,10 @@
|
|
|
174
174
|
"jest": "^29.7.0",
|
|
175
175
|
"jest-environment-jsdom": "^29.7.0",
|
|
176
176
|
"jest-junit": "^15.0.0",
|
|
177
|
-
"less": "
|
|
177
|
+
"less": "4.9.1",
|
|
178
178
|
"less-loader": "^10.2.0",
|
|
179
179
|
"memfs": "^3.3.0",
|
|
180
|
-
"npm-run-
|
|
180
|
+
"npm-run-all2": "^5.0.0",
|
|
181
181
|
"postcss": "^8.5.26",
|
|
182
182
|
"postcss-modules": "^9.0.1",
|
|
183
183
|
"postcss-preset-env": "^11.4.0",
|
|
@@ -191,14 +191,14 @@
|
|
|
191
191
|
"rollup-plugin-copy": "^3.5.0",
|
|
192
192
|
"rollup-plugin-postcss": "4.0.2",
|
|
193
193
|
"rollup-plugin-rename-node-modules": "^1.3.1",
|
|
194
|
-
"shelljs": "^0.
|
|
194
|
+
"shelljs": "^0.10.0",
|
|
195
195
|
"style-loader": "^3.3.1",
|
|
196
196
|
"svgson": "^4.1.0",
|
|
197
197
|
"ts-node": "^10.9.2",
|
|
198
|
-
"typedoc": "0.
|
|
199
|
-
"typedoc-plugin-missing-exports": "
|
|
198
|
+
"typedoc": "0.28.20",
|
|
199
|
+
"typedoc-plugin-missing-exports": "4.1.4",
|
|
200
200
|
"typescript": "^5.5.3",
|
|
201
|
-
"vite": "^
|
|
201
|
+
"vite": "^8.3.2",
|
|
202
202
|
"webpack": "^5.58.0",
|
|
203
203
|
"webpack-cli": "^4.9.1",
|
|
204
204
|
"webpack-dev-server": "^4.15.2"
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { useCallbackRef } from '../../react-use-callback-ref/dist/index.js';
|
|
3
|
-
|
|
4
|
-
// packages/react/use-escape-keydown/src/use-escape-keydown.tsx
|
|
5
|
-
function useEscapeKeydown(onEscapeKeyDownProp) {
|
|
6
|
-
let ownerDocument = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalThis === null || globalThis === void 0 ? void 0 : globalThis.document;
|
|
7
|
-
const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
|
|
8
|
-
React.useEffect(() => {
|
|
9
|
-
const handleKeyDown = event => {
|
|
10
|
-
if (event.key === "Escape") {
|
|
11
|
-
onEscapeKeyDown(event);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
ownerDocument.addEventListener("keydown", handleKeyDown, {
|
|
15
|
-
capture: true
|
|
16
|
-
});
|
|
17
|
-
return () => ownerDocument.removeEventListener("keydown", handleKeyDown, {
|
|
18
|
-
capture: true
|
|
19
|
-
});
|
|
20
|
-
}, [onEscapeKeyDown, ownerDocument]);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { useEscapeKeydown };
|