@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.
Files changed (95) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/__shared/cjs/{index-41a013d2.js → index-75d9309a.js} +3 -3
  3. package/dist/__shared/cjs/{index-025620bf.js → index-a8c1a789.js} +191 -198
  4. package/dist/components/Accordion/Accordion.js +1 -2
  5. package/dist/components/Accordion/Accordion2.js +3 -3
  6. package/dist/components/Accordion/AccordionHeader.js +1 -0
  7. package/dist/components/Accordion/AccordionSection.js +1 -2
  8. package/dist/components/Button/Button.js +3 -3
  9. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  10. package/dist/components/Checkbox/Checkbox2.js +3 -3
  11. package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
  12. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  13. package/dist/components/ColorPicker/Palette.js +2 -2
  14. package/dist/components/Combobox/Combobox.js +14 -16
  15. package/dist/components/Combobox/Combobox2.js +3 -3
  16. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  17. package/dist/components/Divider/Divider2.js +3 -3
  18. package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +1 -1
  19. package/dist/components/Dropdown/Dropdown.js +3 -3
  20. package/dist/components/Dropdown/Dropdown2.js +3 -3
  21. package/dist/components/Dropdown/DropdownButton.js +6 -6
  22. package/dist/components/Dropdown/DropdownOption.js +2 -6
  23. package/dist/components/Dropdown/DropdownSearch.js +2 -2
  24. package/dist/components/FilePicker/FilePicker2.js +3 -3
  25. package/dist/components/FormField/Caption.js +3 -3
  26. package/dist/components/FormField/FormField2.js +3 -3
  27. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  28. package/dist/components/IconButton/IconButton2.js +3 -3
  29. package/dist/components/InlineInput/InlineInput2.js +3 -3
  30. package/dist/components/Input/Input2.js +3 -3
  31. package/dist/components/InputGroup/InputGroup2.js +3 -3
  32. package/dist/components/Label/Label2.js +3 -3
  33. package/dist/components/Link/Link2.js +3 -3
  34. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  35. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  36. package/dist/components/LogicEditor/utils.js +1 -1
  37. package/dist/components/Modal/Modal2.js +3 -3
  38. package/dist/components/NewMenu/BaseMenu.js +14 -17
  39. package/dist/components/NewMenu/NewMenu.js +3 -3
  40. package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +1 -1
  41. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  42. package/dist/components/PageLayout/PageLayout.js +3 -3
  43. package/dist/components/Pagination/Pagination2.js +3 -3
  44. package/dist/components/Popover/Popover2.js +3 -3
  45. package/dist/components/QuickSearch/QuickSearch.js +1 -1
  46. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  47. package/dist/components/Radio/Radio2.js +3 -3
  48. package/dist/components/SearchInput/SearchInput2.js +3 -3
  49. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  50. package/dist/components/Slider/Slider2.js +3 -3
  51. package/dist/components/Switch/Switch2.js +3 -3
  52. package/dist/components/Table/Table2.js +3 -3
  53. package/dist/components/Tabs/Tabs2.js +3 -3
  54. package/dist/components/Tooltip/Tooltip2.js +3 -3
  55. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  56. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  57. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  58. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  59. package/dist/components/deprecated_Toolbar/ToolbarPanels.js +2 -2
  60. package/dist/components/deprecated_Toolbar/ToolbarTabs.js +2 -2
  61. package/dist/hooks/useClickOutside/useClickOutside.js +1 -1
  62. package/dist/hooks/useOverlay/useOverlay.js +1 -2
  63. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  64. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  65. package/dist/icons/Icon.js +3 -3
  66. package/dist/icons/index.js +1 -1
  67. package/dist/index.es.js +1 -1
  68. package/dist/index.js +3 -4
  69. package/dist/next/AdvancedTable/AdvancedTable.js +13 -14
  70. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  71. package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +3 -3
  72. package/dist/next/AdvancedTable/AdvancedTableTypes.js +6 -6
  73. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  74. package/dist/next/Combobox/Combobox2.js +3 -3
  75. package/dist/next/Drawer/Drawer.js +1 -1
  76. package/dist/next/Drawer/Drawer2.js +3 -3
  77. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  78. package/dist/next/Input/Input2.js +3 -3
  79. package/dist/next/Menu/Menu2.js +3 -3
  80. package/dist/next/Menu/MenuItem.js +2 -5
  81. package/dist/next/Menu/MenuPane.js +4 -4
  82. package/dist/next/Menu/SubMenu.js +4 -10
  83. package/dist/next/Menu/usePaneSearch.js +6 -8
  84. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
  85. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  86. package/dist/next/SplitButton/SplitButton2.js +3 -3
  87. package/dist/next/TimePicker/TimePicker2.js +3 -3
  88. package/dist/next/TimePicker/utils.js +4 -18
  89. package/dist/next/ToggleButton/styles.js +3 -3
  90. package/dist/next/index.js +80 -102
  91. package/dist/utils/Flyout/Flyout2.js +3 -3
  92. package/dist/utils/Translation/containsComponentOrElement.js +1 -3
  93. package/dist/utils/filterChildren/filterChildren.js +2 -2
  94. package/next/package.json +1 -1
  95. 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 = "._a-PRX{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}._ChaVY{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}._ChaVY._hdeB3,._ChaVY._xX0vd._ChaVY:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._ChaVY._m7zA6{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._ChaVY._m7zA6._hdeB3,._ChaVY._m7zA6._xX0vd._ChaVY._m7zA6:hover{background-color:#e4effa}._ChaVY:active:not(._m7zA6):not([aria-disabled=true]){background-color:#e8e9e9}._7xZh2 ._BaEad{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}._7xZh2 ._YflWk{display:none}._7xZh2:not(:first-child) ._YflWk{display:block;margin:3.5px 0}._CRDd0{width:100%;height:40px}";
4
- var styles = {"flyout":"_a-PRX","flyoutOption":"_ChaVY","highlighted":"_hdeB3","hoverHighlight":"_xX0vd","selected":"_m7zA6","flyoutHeader":"_7xZh2","headerContent":"_BaEad","headerDivider":"_YflWk","flyoutSpinner":"_CRDd0"};
5
- var stylesheet="._a-PRX{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}._ChaVY{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}._ChaVY._hdeB3,._ChaVY._xX0vd._ChaVY:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._ChaVY._m7zA6{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._ChaVY._m7zA6._hdeB3,._ChaVY._m7zA6._xX0vd._ChaVY._m7zA6:hover{background-color:#e4effa}._ChaVY:active:not(._m7zA6):not([aria-disabled=true]){background-color:#e8e9e9}._7xZh2 ._BaEad{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}._7xZh2 ._YflWk{display:none}._7xZh2:not(:first-child) ._YflWk{display:block;margin:3.5px 0}._CRDd0{width:100%;height:40px}";
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
- var _context;
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, _newChild$props;
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$props = _newChild.props) !== null && _newChild$props !== void 0 && _newChild$props.children) {
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
@@ -22,6 +22,6 @@
22
22
  "uuid": "^8.3.2"
23
23
  },
24
24
  "peerDependencies": {
25
- "@qualtrics/ui-react": "2.22.0"
25
+ "@qualtrics/ui-react": "2.22.1"
26
26
  }
27
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qualtrics/ui-react",
3
- "version": "2.22.0",
3
+ "version": "2.22.1",
4
4
  "description": "Official Qualtrics UI component library designed for React",
5
5
  "repository": {
6
6
  "type": "git",