@qualtrics/ui-react 2.22.0 → 2.22.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 +6 -0
- package/dist/__shared/cjs/{index-41a013d2.js → index-75d9309a.js} +3 -3
- package/dist/__shared/cjs/{index-025620bf.js → index-a8c1a789.js} +191 -198
- package/dist/components/Accordion/Accordion.js +1 -2
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +1 -0
- package/dist/components/Accordion/AccordionSection.js +1 -2
- 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/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Palette.js +2 -2
- package/dist/components/Combobox/Combobox.js +14 -16
- 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/ChildIndexContext/reach-descendants.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownOption.js +2 -6
- package/dist/components/Dropdown/DropdownSearch.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/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/LogicEditor/utils.js +1 -1
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +14 -17
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +1 -1
- 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/QuickSearch.js +1 -1
- 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/components/deprecated_Toolbar/ToolbarPanels.js +2 -2
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +2 -2
- package/dist/hooks/useClickOutside/useClickOutside.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +1 -2
- 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.es.js +1 -1
- package/dist/index.js +3 -4
- package/dist/next/AdvancedTable/AdvancedTable.js +13 -14
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableTypes.js +6 -6
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer.js +1 -1
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +2 -5
- package/dist/next/Menu/MenuPane.js +4 -4
- package/dist/next/Menu/SubMenu.js +4 -10
- package/dist/next/Menu/usePaneSearch.js +6 -8
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/utils.js +4 -18
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.js +80 -102
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Translation/containsComponentOrElement.js +1 -3
- package/dist/utils/filterChildren/filterChildren.js +2 -2
- package/next/package.json +1 -1
- package/package.json +1 -1
|
@@ -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 = "._jbWYB{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}._rlojO{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}._rlojO._f29sy,._rlojO._XDOJs._rlojO:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._rlojO._OVNIb{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._rlojO._OVNIb._f29sy,._rlojO._OVNIb._XDOJs._rlojO._OVNIb:hover{background-color:#e4effa}._rlojO:active:not(._OVNIb):not([aria-disabled=true]){background-color:#e8e9e9}._K01-S ._AyuDq{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}._K01-S ._zFLlk{display:none}._K01-S:not(:first-child) ._zFLlk{display:block;margin:3.5px 0}._lUBAu{width:100%;height:40px}";
|
|
4
|
+
var styles = {"flyout":"_jbWYB","flyoutOption":"_rlojO","highlighted":"_f29sy","hoverHighlight":"_XDOJs","selected":"_OVNIb","flyoutHeader":"_K01-S","headerContent":"_AyuDq","headerDivider":"_zFLlk","flyoutSpinner":"_lUBAu"};
|
|
5
|
+
var stylesheet="._jbWYB{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}._rlojO{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}._rlojO._f29sy,._rlojO._XDOJs._rlojO:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._rlojO._OVNIb{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._rlojO._OVNIb._f29sy,._rlojO._OVNIb._XDOJs._rlojO._OVNIb:hover{background-color:#e4effa}._rlojO:active:not(._OVNIb):not([aria-disabled=true]){background-color:#e8e9e9}._K01-S ._AyuDq{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}._K01-S ._zFLlk{display:none}._K01-S:not(:first-child) ._zFLlk{display:block;margin:3.5px 0}._lUBAu{width:100%;height:40px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
2
1
|
import { isValidElement } from 'react';
|
|
3
2
|
|
|
4
3
|
function isClassComponent(component) {
|
|
5
4
|
return !!(typeof component === 'function' && !!component.prototype.isReactComponent);
|
|
6
5
|
}
|
|
7
6
|
function isFunctionComponent(component) {
|
|
8
|
-
|
|
9
|
-
return !!(typeof component === 'function' && _includesInstanceProperty(_context = String(component)).call(_context, 'return React.createElement'));
|
|
7
|
+
return !!(typeof component === 'function' && String(component).includes('return React.createElement'));
|
|
10
8
|
}
|
|
11
9
|
function isReactComponent(component) {
|
|
12
10
|
return !!(isClassComponent(component) || isFunctionComponent(component));
|
|
@@ -16,7 +16,7 @@ function _filterChildren(children) {
|
|
|
16
16
|
|
|
17
17
|
// Returns ReactChild
|
|
18
18
|
function _findMatch(child, queries, matchesList) {
|
|
19
|
-
var _newChild
|
|
19
|
+
var _newChild;
|
|
20
20
|
let newChild = child;
|
|
21
21
|
let foundMatch = false;
|
|
22
22
|
let i;
|
|
@@ -31,7 +31,7 @@ function _findMatch(child, queries, matchesList) {
|
|
|
31
31
|
break;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
if ((_newChild = newChild) !== null && _newChild !== void 0 && (_newChild
|
|
34
|
+
if ((_newChild = newChild) !== null && _newChild !== void 0 && (_newChild = _newChild.props) !== null && _newChild !== void 0 && _newChild.children) {
|
|
35
35
|
const modifiedChildren = _filterChildren(newChild.props.children, queries, matchesList);
|
|
36
36
|
newChild = /*#__PURE__*/React__default.cloneElement(newChild, {
|
|
37
37
|
children: modifiedChildren
|
package/next/package.json
CHANGED