@qualtrics/ui-react 2.22.0 → 2.23.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.
Files changed (146) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/__shared/cjs/{index-025620bf.js → index-10d6f3f3.js} +385 -220
  3. package/dist/__shared/cjs/{index-41a013d2.js → index-7f78e01b.js} +115 -3
  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/Banner/Banner.css.js +21 -0
  9. package/dist/components/Banner/Banner.css.ts.vanilla.js +8 -0
  10. package/dist/components/Banner/Banner.js +105 -0
  11. package/dist/components/Banner/index.js +1 -0
  12. package/dist/components/Button/Button.js +3 -3
  13. package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
  14. package/dist/components/Checkbox/Checkbox2.js +3 -3
  15. package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
  16. package/dist/components/ColorPicker/ColorPicker2.js +3 -3
  17. package/dist/components/ColorPicker/Palette.js +2 -2
  18. package/dist/components/Combobox/Combobox.js +14 -16
  19. package/dist/components/Combobox/Combobox2.js +3 -3
  20. package/dist/components/ConfigPane/ConfigPane.js +2 -0
  21. package/dist/components/ConfigPane/ConfigPane2.js +3 -3
  22. package/dist/components/Divider/Divider2.js +3 -3
  23. package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +1 -1
  24. package/dist/components/Dropdown/Dropdown.js +4 -3
  25. package/dist/components/Dropdown/Dropdown2.js +3 -3
  26. package/dist/components/Dropdown/DropdownButton.js +6 -6
  27. package/dist/components/Dropdown/DropdownList.js +4 -3
  28. package/dist/components/Dropdown/DropdownOption.js +2 -6
  29. package/dist/components/Dropdown/DropdownSearch.js +2 -2
  30. package/dist/components/FilePicker/FilePicker2.js +3 -3
  31. package/dist/components/FormField/Caption.js +3 -3
  32. package/dist/components/FormField/FormField2.js +3 -3
  33. package/dist/components/FullScreenTakeover/FullScreenTakeover.js +6 -1
  34. package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
  35. package/dist/components/Icon/IconTypes.js +28 -0
  36. package/dist/components/IconButton/IconButton.js +2 -1
  37. package/dist/components/IconButton/IconButton2.js +3 -3
  38. package/dist/components/InlineInput/InlineInput2.js +3 -3
  39. package/dist/components/Input/Input2.js +3 -3
  40. package/dist/components/InputGroup/InputGroup2.js +3 -3
  41. package/dist/components/Label/Label2.js +3 -3
  42. package/dist/components/Link/Link2.js +3 -3
  43. package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
  44. package/dist/components/LogicEditor/LogicEditor2.js +3 -3
  45. package/dist/components/LogicEditor/utils.js +1 -1
  46. package/dist/components/Modal/Modal.js +3 -1
  47. package/dist/components/Modal/Modal2.js +3 -3
  48. package/dist/components/NewMenu/BaseMenu.js +15 -17
  49. package/dist/components/NewMenu/NewMenu.js +3 -3
  50. package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +1 -1
  51. package/dist/components/NumberStepper/NumberStepper2.js +3 -3
  52. package/dist/components/PageLayout/PageLayout.js +3 -3
  53. package/dist/components/Pagination/Pagination2.js +3 -3
  54. package/dist/components/Popover/Popover.js +2 -1
  55. package/dist/components/Popover/Popover2.js +3 -3
  56. package/dist/components/QuickSearch/QuickSearch.js +1 -1
  57. package/dist/components/QuickSearch/QuickSearch2.js +3 -3
  58. package/dist/components/Radio/Radio2.js +3 -3
  59. package/dist/components/SearchInput/SearchInput.js +1 -0
  60. package/dist/components/SearchInput/SearchInput2.js +3 -3
  61. package/dist/components/SidebarNav/SidebarNav2.js +3 -3
  62. package/dist/components/Slider/Slider2.js +3 -3
  63. package/dist/components/Switch/Switch2.js +3 -3
  64. package/dist/components/Table/Table2.js +3 -3
  65. package/dist/components/Tabs/Tabs2.js +3 -3
  66. package/dist/components/Tooltip/Tooltip.js +2 -1
  67. package/dist/components/Tooltip/Tooltip2.js +3 -3
  68. package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
  69. package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
  70. package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
  71. package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
  72. package/dist/components/deprecated_Toolbar/ToolbarPanels.js +4 -2
  73. package/dist/components/deprecated_Toolbar/ToolbarTabs.js +2 -2
  74. package/dist/components/index.js +1 -0
  75. package/dist/hooks/useClickOutside/useClickOutside.js +1 -1
  76. package/dist/hooks/useIsTruncated/useIsTruncated.js +6 -0
  77. package/dist/hooks/useOverlay/useOverlay.js +1 -2
  78. package/dist/hooks/useOverlay/useOverlay2.js +3 -3
  79. package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
  80. package/dist/icons/Icon.js +3 -3
  81. package/dist/icons/components/AgentLeftIcon.js +6 -0
  82. package/dist/icons/components/AgentRightIcon.js +6 -0
  83. package/dist/icons/components/ChevronSetIcon.js +6 -0
  84. package/dist/icons/components/ChevronSkipBackIcon.js +6 -0
  85. package/dist/icons/components/ChevronSkipForwardIcon.js +6 -0
  86. package/dist/icons/components/ColumnsIcon.js +6 -0
  87. package/dist/icons/components/CustomerLeftIcon.js +6 -0
  88. package/dist/icons/components/CustomerRightIcon.js +6 -0
  89. package/dist/icons/components/DetectedIcon.js +6 -0
  90. package/dist/icons/components/EffortEasyIcon.js +6 -0
  91. package/dist/icons/components/EffortHardIcon.js +6 -0
  92. package/dist/icons/components/EffortMixedIcon.js +6 -0
  93. package/dist/icons/components/EffortNeutralIcon.js +6 -0
  94. package/dist/icons/components/EffortVeryEasyIcon.js +6 -0
  95. package/dist/icons/components/EffortVeryHardIcon.js +6 -0
  96. package/dist/icons/components/IgnoredIcon.js +6 -0
  97. package/dist/icons/components/InsertLineIcon.js +6 -0
  98. package/dist/icons/components/IntensityHighIcon.js +6 -0
  99. package/dist/icons/components/IntensityLowIcon.js +6 -0
  100. package/dist/icons/components/IntensityMediumIcon.js +6 -0
  101. package/dist/icons/components/RaiseHandIcon.js +6 -0
  102. package/dist/icons/components/SentimentMixedIcon.js +6 -0
  103. package/dist/icons/components/SentimentNegativeIcon.js +6 -0
  104. package/dist/icons/components/SentimentNeutralIcon.js +6 -0
  105. package/dist/icons/components/SentimentPositiveIcon.js +6 -0
  106. package/dist/icons/components/SentimentVeryNegativeIcon.js +6 -0
  107. package/dist/icons/components/SentimentVeryPositiveIcon.js +6 -0
  108. package/dist/icons/components/UndetectedIcon.js +6 -0
  109. package/dist/icons/index.d.ts +56 -0
  110. package/dist/icons/index.es.js +28 -0
  111. package/dist/icons/index.js +29 -1
  112. package/dist/index.d.ts +77 -0
  113. package/dist/index.es.js +2 -1
  114. package/dist/index.js +7 -4
  115. package/dist/next/AdvancedTable/AdvancedTable.js +14 -14
  116. package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
  117. package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +3 -3
  118. package/dist/next/AdvancedTable/AdvancedTableTypes.js +6 -6
  119. package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
  120. package/dist/next/Combobox/Combobox2.js +3 -3
  121. package/dist/next/Combobox/ComboboxInput.js +1 -1
  122. package/dist/next/Drawer/Drawer.js +6 -2
  123. package/dist/next/Drawer/Drawer2.js +3 -3
  124. package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
  125. package/dist/next/Input/Input2.js +3 -3
  126. package/dist/next/Menu/Menu2.js +3 -3
  127. package/dist/next/Menu/MenuButton.js +16 -3
  128. package/dist/next/Menu/MenuItem.js +2 -5
  129. package/dist/next/Menu/MenuPane.js +4 -4
  130. package/dist/next/Menu/SubMenu.js +4 -10
  131. package/dist/next/Menu/usePaneSearch.js +6 -8
  132. package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
  133. package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
  134. package/dist/next/SplitButton/SplitButton2.js +3 -3
  135. package/dist/next/TimePicker/TimePicker.js +8 -3
  136. package/dist/next/TimePicker/TimePicker2.js +3 -3
  137. package/dist/next/TimePicker/utils.js +4 -18
  138. package/dist/next/ToggleButton/styles.js +3 -3
  139. package/dist/next/index.js +107 -110
  140. package/dist/translations-en.js +3 -0
  141. package/dist/utils/Flyout/Flyout2.js +3 -3
  142. package/dist/utils/Translation/containsComponentOrElement.js +1 -3
  143. package/dist/utils/filterChildren/filterChildren.js +2 -2
  144. package/icons/package.json +1 -1
  145. package/next/package.json +2 -2
  146. package/package.json +11 -5
@@ -24,6 +24,9 @@ var FALLBACK_LOCALIZED_TEXT = {
24
24
  "decrement": "Decrement",
25
25
  "collapsibleSearchInput.openSearchField": "Open Search Field",
26
26
  "toolbar.showToolbar": "Show Toolbar",
27
+ "selectOne": "Select one",
28
+ "selectOneOrMore": "Select one or more",
29
+ "selectedItems": "Selected items",
27
30
  "toolbar.hideToolbar": "Hide Toolbar",
28
31
  "showPanel": "Show Panel",
29
32
  "hidePanel": "Hide Panel",
@@ -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 = "._cCUHT{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}._I2n56{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}._I2n56._9tFGg,._I2n56._dEAlt._I2n56:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._I2n56._2hWs3{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._I2n56._2hWs3._9tFGg,._I2n56._2hWs3._dEAlt._I2n56._2hWs3:hover{background-color:#e4effa}._I2n56:active:not(._2hWs3):not([aria-disabled=true]){background-color:#e8e9e9}._Akvdv ._Gqk5K{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}._Akvdv ._HTPLp{display:none}._Akvdv:not(:first-child) ._HTPLp{display:block;margin:3.5px 0}._KtEJ2{width:100%;height:40px}";
4
+ var styles = {"flyout":"_cCUHT","flyoutOption":"_I2n56","highlighted":"_9tFGg","hoverHighlight":"_dEAlt","selected":"_2hWs3","flyoutHeader":"_Akvdv","headerContent":"_Gqk5K","headerDivider":"_HTPLp","flyoutSpinner":"_KtEJ2"};
5
+ var stylesheet="._cCUHT{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}._I2n56{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}._I2n56._9tFGg,._I2n56._dEAlt._I2n56:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._I2n56._2hWs3{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._I2n56._2hWs3._9tFGg,._I2n56._2hWs3._dEAlt._I2n56._2hWs3:hover{background-color:#e4effa}._I2n56:active:not(._2hWs3):not([aria-disabled=true]){background-color:#e8e9e9}._Akvdv ._Gqk5K{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}._Akvdv ._HTPLp{display:none}._Akvdv:not(:first-child) ._HTPLp{display:block;margin:3.5px 0}._KtEJ2{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
@@ -5,7 +5,7 @@
5
5
  "dependencies": {
6
6
  "@babel/runtime-corejs3": "^7.10.2",
7
7
  "@popperjs/core": "^2.10.2",
8
- "@qualtrics/component-styles": "0.141.2",
8
+ "@qualtrics/component-styles": "0.142.0",
9
9
  "@radix-ui/react-dropdown-menu": "2.0.5",
10
10
  "@react-aria/interactions": "^3.15.1",
11
11
  "@react-hook/resize-observer": "^1.2.6",
package/next/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "dependencies": {
6
6
  "@babel/runtime-corejs3": "^7.10.2",
7
7
  "@popperjs/core": "^2.10.2",
8
- "@qualtrics/component-styles": "0.141.2",
8
+ "@qualtrics/component-styles": "0.142.0",
9
9
  "@radix-ui/react-dropdown-menu": "2.0.5",
10
10
  "@react-aria/interactions": "^3.15.1",
11
11
  "@react-hook/resize-observer": "^1.2.6",
@@ -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.23.0"
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.23.0",
4
4
  "description": "Official Qualtrics UI component library designed for React",
5
5
  "repository": {
6
6
  "type": "git",
@@ -93,7 +93,7 @@
93
93
  "dependencies": {
94
94
  "@babel/runtime-corejs3": "^7.10.2",
95
95
  "@popperjs/core": "^2.10.2",
96
- "@qualtrics/component-styles": "0.141.2",
96
+ "@qualtrics/component-styles": "0.142.0",
97
97
  "@radix-ui/react-dropdown-menu": "2.0.5",
98
98
  "@react-aria/interactions": "^3.15.1",
99
99
  "@react-hook/resize-observer": "^1.2.6",
@@ -120,7 +120,7 @@
120
120
  "@cypress/webpack-dev-server": "^1.7.0",
121
121
  "@emotion/css": "^11.10.0",
122
122
  "@microsoft/api-extractor": "^7.19.4",
123
- "@qualtrics-translations/qualtricsdesignsystemui": "0.6.18549",
123
+ "@qualtrics-translations/qualtricsdesignsystemui": "0.6.19378",
124
124
  "@qualtrics-translations/qualtricsdesignsystemuicountries": "^0.6.13525",
125
125
  "@rollup/plugin-babel": "^5.0.2",
126
126
  "@rollup/plugin-commonjs": "^22.0.1",
@@ -144,6 +144,7 @@
144
144
  "@typescript-eslint/eslint-plugin": "^5.4.0",
145
145
  "@typescript-eslint/parser": "^5.4.0",
146
146
  "@vanilla-extract/integration": "^6.2.1",
147
+ "@vanilla-extract/jest-transform": "^1.1.1",
147
148
  "babel-eslint": "^10.1.0",
148
149
  "babel-loader": "^8.2.3",
149
150
  "babel-plugin-istanbul": "^6.1.1",
@@ -216,6 +217,7 @@
216
217
  "collectCoverage": true,
217
218
  "collectCoverageFrom": [
218
219
  "src/**/*.{js,ts,tsx}",
220
+ "!src/**/*.css.ts",
219
221
  "!**/*.test.util.js",
220
222
  "!**/*.d.ts",
221
223
  "!src/icons/components**/*"
@@ -249,8 +251,12 @@
249
251
  "./jest.setup.ts"
250
252
  ],
251
253
  "moduleNameMapper": {
252
- "\\.(css|less)$": "identity-obj-proxy"
254
+ "\\.less$": "identity-obj-proxy"
253
255
  },
254
- "testEnvironment": "jsdom"
256
+ "testEnvironment": "jsdom",
257
+ "transform": {
258
+ "\\.css(\\.ts)?$": "@vanilla-extract/jest-transform",
259
+ "\\.[jt]sx?$": "babel-jest"
260
+ }
255
261
  }
256
262
  }