@qualtrics/ui-react 2.31.0 → 2.32.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 +78 -13
- package/dist/__shared/cjs/{index-434a3b72.js → index-2694aefb.js} +297 -223
- package/dist/__shared/cjs/{index-c13fc74c.js → index-b8635002.js} +39 -4
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Banner/Banner.css.js +12 -13
- package/dist/components/Banner/Banner.css.ts.vanilla.js +3 -3
- package/dist/components/Banner/Banner.js +2 -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/Combobox.js +0 -1
- 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/Dropdown.js +0 -2
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +2 -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/Icon/IconTypes.js +9 -0
- package/dist/components/IconButton/IconButton.js +0 -1
- 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/Modal.js +1 -1
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +13 -7
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +81 -38
- package/dist/components/NewMenu/parts/MenuItem.js +16 -5
- 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/SearchInput.js +0 -1
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -0
- 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/Tab.js +0 -2
- package/dist/components/Tabs/TabList.js +0 -4
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +1 -2
- 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/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/AIEntityIcon.js +6 -0
- package/dist/icons/components/AISparkIcon.js +6 -0
- package/dist/icons/components/ButtonSelectorIcon.js +6 -0
- package/dist/icons/components/DropListSelectorIcon.js +6 -0
- package/dist/icons/components/HeatMapDiscoverIcon.js +6 -0
- package/dist/icons/components/HighlightPenSwatchIcon.js +6 -0
- package/dist/icons/components/HighlightSwatchIcon.js +6 -0
- package/dist/icons/components/MetricWidgetIcon.js +6 -0
- package/dist/icons/components/SearchSelectorIcon.js +6 -0
- package/dist/icons/createIconComponent.js +0 -1
- package/dist/icons/index.d.ts +24 -0
- package/dist/icons/index.es.js +9 -0
- package/dist/icons/index.js +10 -1
- package/dist/index.d.ts +1308 -154
- package/dist/index.es.js +1 -1
- package/dist/index.js +5 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +0 -5
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +0 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxFlyout.js +0 -1
- package/dist/next/Combobox/ComboboxInput.js +0 -1
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +0 -1
- package/dist/next/Drawer/Drawer.js +0 -1
- 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/Input/Input.js +0 -1
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Hooks/useCSSVariable.js +5 -5
- package/dist/next/Menu/Hooks/useMaskDimensions.js +10 -12
- package/dist/next/Menu/Hooks/usePaneSearch.js +2 -4
- package/dist/next/Menu/Menu.js +21 -8
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuPane.js +55 -18
- package/dist/next/Menu/PaneChildren.js +6 -3
- package/dist/next/Menu/SubMenu.js +11 -7
- package/dist/next/Menu/constants.js +4 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +2 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/Stack/StackItem.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +531 -32
- package/dist/next/index.js +172 -149
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Text/Text.js +2 -2
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +0 -1
- package/dist/utils/constants.js +0 -1
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +8 -5
|
@@ -19,10 +19,10 @@ import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
|
19
19
|
import SubmenuAnchor from './parts/SubmenuAnchor.js';
|
|
20
20
|
import MenuAnchor from './parts/MenuAnchor.js';
|
|
21
21
|
import MenuSpinner from './parts/MenuSpinner.js';
|
|
22
|
+
import MenuSearchBox from './parts/MenuSearchBox.js';
|
|
22
23
|
import Popper from '../../utils/Popper/Popper.js';
|
|
23
24
|
import { SUBMENU_POPPER_OFFSET, FLYOUT_POPPER_OFFSET } from '../../utils/constants.js';
|
|
24
25
|
import ArrowNav from './parts/ArrowNav/ArrowNav.js';
|
|
25
|
-
import MenuSearchBox from './parts/MenuSearchBox.js';
|
|
26
26
|
|
|
27
27
|
const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
28
28
|
var _externalAnchor$props, _externalAnchor$props2, _useMenuContext, _externalAnchor$props3, _externalAnchor$props4, _externalAnchor$props5, _externalAnchor$props6, _externalAnchor$props7, _externalAnchor$props8, _externalAnchor$props9, _anchorRef$current;
|
|
@@ -62,6 +62,7 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
62
62
|
isMultiSelect = unstable_isMultiSelect,
|
|
63
63
|
zIndex = 1000,
|
|
64
64
|
maxFlyoutWidth,
|
|
65
|
+
isVirtualized = false,
|
|
65
66
|
private_isClosedMenuOpenedOnAnchorClick = true,
|
|
66
67
|
private_isFirstElementHighlightedOnUserActivatedOpen = true,
|
|
67
68
|
...rest
|
|
@@ -197,7 +198,6 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
197
198
|
e.preventDefault(); // prevent scroll
|
|
198
199
|
}
|
|
199
200
|
},
|
|
200
|
-
|
|
201
201
|
onClick: () => {
|
|
202
202
|
setSubmenuHighlightedIndex(0);
|
|
203
203
|
},
|
|
@@ -206,7 +206,8 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
206
206
|
defaultValue,
|
|
207
207
|
selectedValue,
|
|
208
208
|
onHighlightedIndexChange: setSubmenuHighlightedIndex,
|
|
209
|
-
onSelectedValueChange: handleSubmenuOnSelectedValueChange
|
|
209
|
+
onSelectedValueChange: handleSubmenuOnSelectedValueChange,
|
|
210
|
+
isVirtualized
|
|
210
211
|
});
|
|
211
212
|
}
|
|
212
213
|
if ((child === null || child === void 0 ? void 0 : child.type) === MenuItem) {
|
|
@@ -230,7 +231,7 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
230
231
|
const ariaLabelledBy = (_externalAnchor$props3 = externalAnchor === null || externalAnchor === void 0 || (_externalAnchor$props4 = externalAnchor.props) === null || _externalAnchor$props4 === void 0 ? void 0 : _externalAnchor$props4['aria-labelledby']) !== null && _externalAnchor$props3 !== void 0 ? _externalAnchor$props3 : externalAriaLabelledBy ? "".concat(externalAriaLabelledBy, " ").concat(anchorId) : undefined;
|
|
231
232
|
const ariaLabel = (_externalAnchor$props5 = externalAnchor === null || externalAnchor === void 0 || (_externalAnchor$props6 = externalAnchor.props) === null || _externalAnchor$props6 === void 0 ? void 0 : _externalAnchor$props6['aria-label']) !== null && _externalAnchor$props5 !== void 0 ? _externalAnchor$props5 : externalAriaLabel && typeof menuAnchorLabel === 'string' ? "".concat(externalAriaLabel, " ").concat(menuAnchorLabel) : externalAriaLabel;
|
|
232
233
|
const ariaExpanded = (externalAnchor === null || externalAnchor === void 0 ? void 0 : externalAnchor.props['aria-expanded']) !== undefined ? externalAnchor.props['aria-expanded'] : isOpen ? true : undefined;
|
|
233
|
-
const actualAnchor = externalAnchor !== undefined ? /*#__PURE__*/React__default.cloneElement(externalAnchor, {
|
|
234
|
+
const actualAnchor = externalAnchor !== undefined ? ( /*#__PURE__*/React__default.cloneElement(externalAnchor, {
|
|
234
235
|
ref: mergeRefs(ref, anchorRef, externalAnchor.ref),
|
|
235
236
|
tabIndex: (_externalAnchor$props7 = externalAnchor.props.tabIndex) !== null && _externalAnchor$props7 !== void 0 ? _externalAnchor$props7 : 0,
|
|
236
237
|
role: (_externalAnchor$props8 = externalAnchor.props.role) !== null && _externalAnchor$props8 !== void 0 ? _externalAnchor$props8 : 'button',
|
|
@@ -244,7 +245,7 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
244
245
|
onMouseDown: preventClickOutside,
|
|
245
246
|
onClick: wrapEvent(externalAnchor.props.onClick, handleAnchorClick),
|
|
246
247
|
onKeyDown: wrapEvent(externalAnchor.props.onKeyDown, handleAnchorKeyDown)
|
|
247
|
-
}) : isSubmenu ? /*#__PURE__*/React__default.createElement(SubmenuAnchor, _extends({
|
|
248
|
+
})) : isSubmenu ? /*#__PURE__*/React__default.createElement(SubmenuAnchor, _extends({
|
|
248
249
|
ref: mergeRefs(ref, anchorRef),
|
|
249
250
|
label: label,
|
|
250
251
|
id: anchorId,
|
|
@@ -296,6 +297,8 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
296
297
|
}, [noResults, popperIsOpen, announceToScreenReader, noMenuItemsToDisplayText]);
|
|
297
298
|
const searchBoxRef = useRef();
|
|
298
299
|
const arrowNavRef = useRef(null);
|
|
300
|
+
const handleHighlightedIndexChange = useCallback(i => setHighlightedIndex(i), [setHighlightedIndex]);
|
|
301
|
+
const isNavItem = useCallback(child => (child === null || child === void 0 ? void 0 : child.type) === MenuItem || (child === null || child === void 0 ? void 0 : child.type) === MenuSearchBox || isType(child, menuType), [menuType]);
|
|
299
302
|
return /*#__PURE__*/React__default.createElement(MenuContextProvider, {
|
|
300
303
|
value: {
|
|
301
304
|
closeAndFocusAnchor,
|
|
@@ -319,7 +322,7 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
319
322
|
id: arrowNavId,
|
|
320
323
|
role: "menu",
|
|
321
324
|
"aria-labelledby": anchorId,
|
|
322
|
-
isNavItem:
|
|
325
|
+
isNavItem: isNavItem,
|
|
323
326
|
style: {
|
|
324
327
|
zIndex,
|
|
325
328
|
maxWidth: maxFlyoutWidth !== null && maxFlyoutWidth !== void 0 ? maxFlyoutWidth : undefined,
|
|
@@ -331,7 +334,7 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
331
334
|
maxHeight: maxHeight,
|
|
332
335
|
minWidth: isSubmenu ? undefined : Math.min(350, Math.max(160, anchorRef === null || anchorRef === void 0 || (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 ? void 0 : _anchorRef$current.offsetWidth)),
|
|
333
336
|
searchable: searchable,
|
|
334
|
-
onHighlightedIndexChange:
|
|
337
|
+
onHighlightedIndexChange: handleHighlightedIndexChange,
|
|
335
338
|
searchTerm: searchTerm,
|
|
336
339
|
setSearchTerm: setSearchTerm,
|
|
337
340
|
onKeyDown: e => {
|
|
@@ -352,10 +355,13 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
352
355
|
var _arrowNavRef$current;
|
|
353
356
|
// Only update the highlighted index for the current menu (i.e. if the event bubbles up to a parent menu, don't update the highlighted index for the parent menu)
|
|
354
357
|
if ((_arrowNavRef$current = arrowNavRef.current) !== null && _arrowNavRef$current !== void 0 && _arrowNavRef$current.contains(e.target) && e.target !== searchBoxRef.current) {
|
|
358
|
+
var _anchorRef$current2;
|
|
355
359
|
setHighlightedIndex(-1);
|
|
360
|
+
(_anchorRef$current2 = anchorRef.current) === null || _anchorRef$current2 === void 0 || _anchorRef$current2.focus();
|
|
356
361
|
}
|
|
357
362
|
}
|
|
358
363
|
},
|
|
364
|
+
isVirtualized: isVirtualized,
|
|
359
365
|
isSubmenu: isSubmenu,
|
|
360
366
|
searchBoxRef: searchBoxRef,
|
|
361
367
|
anchorRef: anchorRef,
|
|
@@ -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 = {"menuBtn":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._NupkL._NupkL{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._NupkL._NupkL,._NupkL._NupkL ._E8Osl{display:inline-flex;align-items:center}._NupkL._NupkL ._E8Osl{overflow:hidden;text-overflow:ellipsis}._NupkL._NupkL._wXfU-{min-height:26px;height:26px}._NupkL._NupkL._f1UiK{color:#32363a}._NupkL._NupkL:hover:not([aria-disabled=true]){background-color:#f5f5f5}._NupkL._NupkL:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._NupkL._NupkL[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._NupkL._NupkL[aria-disabled=true]>svg{fill:#515559;opacity:.4}._NupkL._NupkL[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._NupkL._NupkL._t62-2{padding-left:0}._NupkL._NupkL._zcppK{margin-top:4px}._NupkL._NupkL ._vd74w{fill:#515559}._NupkL._NupkL ._vd74w._wXfU-{top:0}._NupkL._NupkL ._vd74w._ntg3Z{transform:rotate(-180deg)}._W6YOp{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._W6YOp::-webkit-scrollbar,._W6YOp::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._W6YOp::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._W6YOp::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._W6YOp:hover::-webkit-scrollbar,._W6YOp:hover::-webkit-scrollbar-thumb,._W6YOp[focus-within]::-webkit-scrollbar,._W6YOp[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._W6YOp:focus-within::-webkit-scrollbar,._W6YOp:focus-within::-webkit-scrollbar-thumb,._W6YOp:hover::-webkit-scrollbar,._W6YOp:hover::-webkit-scrollbar-thumb{visibility:visible}._P-dk7{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._P-dk7[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._P-dk7._i7tDS{background-color:#efefef}._P-dk7._BWjk3{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._P-dk7._f1UiK{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._P-dk7._f1UiK._i7tDS{background-color:#e4effa}._P-dk7._rAp47{cursor:default}._P-dk7:active:not(._ccKDH):not(._f1UiK):not([aria-disabled=true]):not(._rAp47){background-color:#e8e9e9}._ccKDH{padding-right:32px}._ccKDH ._vd74w{position:absolute;top:8px;right:3px;fill:#515559}._zjoJw{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._FkECU{position:absolute;top:13px;left:13px}._fATbJ._fATbJ{padding-left:32px}._xzizk{margin:2px 12px 2px 0;flex-shrink:0}._xzizk._Onsg7>svg{border-color:#0b6ed0}._2OrmJ{display:flex;justify-self:center;margin:8px}";
|
|
4
|
+
var styles = {"menuBtn":"_NupkL","menuBtnLabel":"_E8Osl","small":"_wXfU-","selected":"_f1UiK","unlabelledButton":"_t62-2","formLabelled":"_zcppK","rightIcon":"_vd74w","open":"_ntg3Z","contentPane":"_W6YOp","menuItem":"_P-dk7","active":"_i7tDS","focus":"_BWjk3","noMenuItems":"_rAp47","subMenu":"_ccKDH","searchBox":"_zjoJw","searchBoxIcon":"_FkECU","searchBoxInput":"_fATbJ","checkbox":"_xzizk","highlighted":"_Onsg7","menuSpinner":"_2OrmJ"};
|
|
5
|
+
var stylesheet="._NupkL._NupkL{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._NupkL._NupkL,._NupkL._NupkL ._E8Osl{display:inline-flex;align-items:center}._NupkL._NupkL ._E8Osl{overflow:hidden;text-overflow:ellipsis}._NupkL._NupkL._wXfU-{min-height:26px;height:26px}._NupkL._NupkL._f1UiK{color:#32363a}._NupkL._NupkL:hover:not([aria-disabled=true]){background-color:#f5f5f5}._NupkL._NupkL:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._NupkL._NupkL[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._NupkL._NupkL[aria-disabled=true]>svg{fill:#515559;opacity:.4}._NupkL._NupkL[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._NupkL._NupkL._t62-2{padding-left:0}._NupkL._NupkL._zcppK{margin-top:4px}._NupkL._NupkL ._vd74w{fill:#515559}._NupkL._NupkL ._vd74w._wXfU-{top:0}._NupkL._NupkL ._vd74w._ntg3Z{transform:rotate(-180deg)}._W6YOp{margin:0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._W6YOp::-webkit-scrollbar,._W6YOp::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._W6YOp::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._W6YOp::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._W6YOp:hover::-webkit-scrollbar,._W6YOp:hover::-webkit-scrollbar-thumb,._W6YOp[focus-within]::-webkit-scrollbar,._W6YOp[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._W6YOp:focus-within::-webkit-scrollbar,._W6YOp:focus-within::-webkit-scrollbar-thumb,._W6YOp:hover::-webkit-scrollbar,._W6YOp:hover::-webkit-scrollbar-thumb{visibility:visible}._P-dk7{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._P-dk7[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._P-dk7._i7tDS{background-color:#efefef}._P-dk7._BWjk3{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._P-dk7._f1UiK{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._P-dk7._f1UiK._i7tDS{background-color:#e4effa}._P-dk7._rAp47{cursor:default}._P-dk7:active:not(._ccKDH):not(._f1UiK):not([aria-disabled=true]):not(._rAp47){background-color:#e8e9e9}._ccKDH{padding-right:32px}._ccKDH ._vd74w{position:absolute;top:8px;right:3px;fill:#515559}._zjoJw{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._FkECU{position:absolute;top:13px;left:13px}._fATbJ._fATbJ{padding-left:32px}._xzizk{margin:2px 12px 2px 0;flex-shrink:0}._xzizk._Onsg7>svg{border-color:#0b6ed0}._2OrmJ{display:flex;justify-self:center;margin:8px}";
|
|
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 };
|
|
@@ -1,35 +1,19 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default, { useRef, useEffect } from 'react';
|
|
2
|
+
import React__default, { useRef, useState, useCallback, useMemo, useEffect } from 'react';
|
|
3
3
|
import { useFocusVisible } from '@react-aria/interactions';
|
|
4
|
+
import { Virtuoso } from 'react-virtuoso';
|
|
5
|
+
import { ResizeObserver } from '@juggle/resize-observer';
|
|
4
6
|
import '../../../../utils/index.js';
|
|
5
7
|
import MenuSearchBox from '../MenuSearchBox.js';
|
|
6
8
|
import '../../../../hooks/index.js';
|
|
7
|
-
import
|
|
9
|
+
import { VIRTUOSO_PROPS } from '../../../../next/Menu/constants.js';
|
|
8
10
|
import useId from '../../../../hooks/useId/useId.js';
|
|
9
11
|
import wrapEvent from '../../../../utils/wrapEvent/wrapEvent.js';
|
|
12
|
+
import mergeRefs from '../../../../utils/mergeRefs/mergeRefs.js';
|
|
10
13
|
import { SUBMENU_POPPER_OFFSET, FLYOUT_POPPER_OFFSET } from '../../../../utils/constants.js';
|
|
11
14
|
|
|
12
|
-
function useChildrenRefs(children, getAdditionalProps, isNavItem, searchable) {
|
|
13
|
-
const refs = useRef({});
|
|
14
|
-
// eslint-disable-next-line no-return-assign
|
|
15
|
-
const createRefCallback = index => node => refs.current[index] = node;
|
|
16
|
-
let refIndex = searchable ? 1 : 0;
|
|
17
|
-
const allChildren = React__default.Children.map(children, child => {
|
|
18
|
-
if (isNavItem(child)) {
|
|
19
|
-
const myIndex = refIndex;
|
|
20
|
-
refIndex += 1;
|
|
21
|
-
const additionalProps = getAdditionalProps(child, myIndex);
|
|
22
|
-
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
23
|
-
ref: mergeRefs(createRefCallback(myIndex), child.ref),
|
|
24
|
-
...additionalProps
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
return child;
|
|
28
|
-
});
|
|
29
|
-
refs.current.length = refIndex;
|
|
30
|
-
return [refs, allChildren];
|
|
31
|
-
}
|
|
32
15
|
const ArrowNav = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
16
|
+
var _process$env, _childRefs$current$le, _containerRef$current3;
|
|
33
17
|
let {
|
|
34
18
|
role,
|
|
35
19
|
tabIndex = -1,
|
|
@@ -46,6 +30,7 @@ const ArrowNav = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
46
30
|
searchable,
|
|
47
31
|
searchTerm,
|
|
48
32
|
setSearchTerm,
|
|
33
|
+
isVirtualized = false,
|
|
49
34
|
'data-popper-ready': isPopperReady,
|
|
50
35
|
// comes from Popper.js where ArrowNav is cloned
|
|
51
36
|
style,
|
|
@@ -53,35 +38,87 @@ const ArrowNav = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
53
38
|
...rest
|
|
54
39
|
} = _ref;
|
|
55
40
|
const containerRef = useRef(null);
|
|
41
|
+
const virtuosoRef = useRef(null);
|
|
42
|
+
const childRefs = useRef({});
|
|
43
|
+
const [virtualRange, setVirtualRange] = useState({
|
|
44
|
+
startIndex: -1,
|
|
45
|
+
endIndex: -1
|
|
46
|
+
});
|
|
56
47
|
const menuId = useId();
|
|
57
48
|
const {
|
|
58
49
|
isFocusVisible
|
|
59
|
-
} = useFocusVisible(
|
|
60
|
-
|
|
61
|
-
});
|
|
62
|
-
const [refs, allChildren] = useChildrenRefs(children, (child, index) => ({
|
|
50
|
+
} = useFocusVisible();
|
|
51
|
+
const getAdditionalProps = useCallback((child, index) => ({
|
|
63
52
|
tabIndex: -1,
|
|
64
53
|
onMouseEnter: wrapEvent(child.props.onMouseEnter, () => {
|
|
65
54
|
onHighlightedIndexChange(index);
|
|
66
55
|
})
|
|
67
|
-
}),
|
|
56
|
+
}), [onHighlightedIndexChange]);
|
|
57
|
+
const createRefCallback = useCallback(
|
|
58
|
+
// eslint-disable-next-line no-return-assign
|
|
59
|
+
index => node => childRefs.current[index] = node, []);
|
|
60
|
+
|
|
61
|
+
// Fixes ResizeObserver error that appears in jest when running tests with a virtualized Menu
|
|
62
|
+
if (typeof process !== 'undefined' && ((_process$env = process.env) === null || _process$env === void 0 ? void 0 : _process$env.NODE_ENV) === 'test' && window) {
|
|
63
|
+
var _window$ResizeObserve;
|
|
64
|
+
window.ResizeObserver = (_window$ResizeObserve = window.ResizeObserver) !== null && _window$ResizeObserve !== void 0 ? _window$ResizeObserve : ResizeObserver;
|
|
65
|
+
}
|
|
66
|
+
const allChildren = useMemo(() => {
|
|
67
|
+
let refIndex = searchable ? 1 : 0;
|
|
68
|
+
const result = React__default.Children.map(children, child => {
|
|
69
|
+
if (isNavItem(child)) {
|
|
70
|
+
const myIndex = refIndex;
|
|
71
|
+
refIndex += 1;
|
|
72
|
+
const additionalProps = getAdditionalProps(child, myIndex);
|
|
73
|
+
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
74
|
+
ref: mergeRefs(createRefCallback(myIndex), child.ref),
|
|
75
|
+
...additionalProps
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
return child;
|
|
79
|
+
});
|
|
80
|
+
childRefs.current.length = refIndex;
|
|
81
|
+
return result;
|
|
82
|
+
}, [children, getAdditionalProps, isNavItem, searchable, createRefCallback]);
|
|
68
83
|
|
|
69
84
|
// Update the focused menu item when the highlighted index changes
|
|
70
85
|
useEffect(() => {
|
|
71
86
|
if (isPopperReady) {
|
|
72
|
-
|
|
87
|
+
const searchInputHeight = searchable ? 53 : 0;
|
|
88
|
+
const paddingSize = 4;
|
|
89
|
+
if (isFocusVisible && isVirtualized && virtuosoRef.current && (highlightedIndex > virtualRange.endIndex || highlightedIndex < virtualRange.startIndex)) {
|
|
90
|
+
virtuosoRef.current.scrollToIndex({
|
|
91
|
+
index: highlightedIndex,
|
|
92
|
+
offset: -1 * searchInputHeight - paddingSize
|
|
93
|
+
});
|
|
94
|
+
} else if (childRefs.current[highlightedIndex]) {
|
|
73
95
|
// Scroll the item into view when navigating with a keyboard
|
|
74
|
-
const element =
|
|
75
|
-
const searchInputSize = searchable ? 53 : 0;
|
|
96
|
+
const element = childRefs.current[highlightedIndex];
|
|
76
97
|
if (containerRef.current && isFocusVisible) {
|
|
77
98
|
const scrollBottom = containerRef.current.clientHeight + containerRef.current.scrollTop;
|
|
78
99
|
const elementBottom = element.offsetTop + element.offsetHeight;
|
|
79
|
-
if (elementBottom > scrollBottom) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
100
|
+
if (elementBottom > scrollBottom - searchInputHeight) {
|
|
101
|
+
if (isVirtualized && virtuosoRef.current) {
|
|
102
|
+
virtuosoRef.current.scrollToIndex({
|
|
103
|
+
index: highlightedIndex - (searchable ? 1 : 0),
|
|
104
|
+
align: 'end',
|
|
105
|
+
offset: paddingSize
|
|
106
|
+
});
|
|
107
|
+
} else {
|
|
108
|
+
containerRef.current.scrollTop = elementBottom - containerRef.current.clientHeight;
|
|
109
|
+
}
|
|
110
|
+
} else if (element.offsetTop < containerRef.current.scrollTop) {
|
|
111
|
+
if (isVirtualized && virtuosoRef.current) {
|
|
112
|
+
virtuosoRef.current.scrollToIndex({
|
|
113
|
+
index: highlightedIndex - (searchable ? 1 : 0),
|
|
114
|
+
offset: -1 * searchInputHeight - paddingSize
|
|
115
|
+
});
|
|
116
|
+
} else {
|
|
117
|
+
containerRef.current.scrollTop = element.offsetTop - searchInputHeight;
|
|
118
|
+
}
|
|
83
119
|
}
|
|
84
120
|
}
|
|
121
|
+
|
|
85
122
|
/* preventScroll isn't strictly needed.
|
|
86
123
|
* For keyboard users it makes no difference since the item is already in view when .focus() is called.
|
|
87
124
|
* For mouse users, it prevents scrolling from occurring when hovering over a menu item that is partially out of view.
|
|
@@ -96,10 +133,10 @@ const ArrowNav = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
96
133
|
anchorRef === null || anchorRef === void 0 || (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 || _anchorRef$current.focus();
|
|
97
134
|
}
|
|
98
135
|
}
|
|
99
|
-
}, [highlightedIndex,
|
|
136
|
+
}, [highlightedIndex, childRefs, virtualRange, searchable, allChildren === null || allChildren === void 0 ? void 0 : allChildren.length,
|
|
100
137
|
// Needed to prevent QuickSearch from losing focus in some cases when items are loaded asynchronously while the user is navigating
|
|
101
|
-
isPopperReady, searchBoxRef, anchorRef]);
|
|
102
|
-
const numChildren =
|
|
138
|
+
isPopperReady, searchBoxRef, anchorRef, isVirtualized, isFocusVisible]);
|
|
139
|
+
const numChildren = (_childRefs$current$le = childRefs.current.length) !== null && _childRefs$current$le !== void 0 ? _childRefs$current$le : 1;
|
|
103
140
|
const handleKeyDown = e => {
|
|
104
141
|
if (e.key === 'ArrowDown') {
|
|
105
142
|
e.preventDefault(); // prevent scroll
|
|
@@ -162,7 +199,13 @@ const ArrowNav = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
162
199
|
style: {
|
|
163
200
|
padding: '4px 0'
|
|
164
201
|
}
|
|
165
|
-
},
|
|
202
|
+
}, isVirtualized ? /*#__PURE__*/React__default.createElement(Virtuoso, _extends({
|
|
203
|
+
customScrollParent: (_containerRef$current3 = containerRef.current) !== null && _containerRef$current3 !== void 0 ? _containerRef$current3 : undefined,
|
|
204
|
+
data: React__default.Children.toArray(allChildren),
|
|
205
|
+
itemContent: (_, child) => ! /*#__PURE__*/React__default.isValidElement(child) ? null : child,
|
|
206
|
+
rangeChanged: setVirtualRange,
|
|
207
|
+
ref: virtuosoRef
|
|
208
|
+
}, VIRTUOSO_PROPS)) : allChildren))
|
|
166
209
|
);
|
|
167
210
|
});
|
|
168
211
|
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default from 'react';
|
|
2
|
+
import React__default, { useRef, useCallback, useEffect } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import styles from '../NewMenu.js';
|
|
5
5
|
import '../../../utils/index.js';
|
|
6
6
|
import Check from '../../Checkbox/Check.js';
|
|
7
|
+
import mergeRefs from '../../../utils/mergeRefs/mergeRefs.js';
|
|
7
8
|
import wrapEvent from '../../../utils/wrapEvent/wrapEvent.js';
|
|
8
9
|
|
|
9
10
|
const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
@@ -23,17 +24,28 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
23
24
|
isSelectable = false,
|
|
24
25
|
...rest
|
|
25
26
|
} = _ref;
|
|
27
|
+
const itemRef = useRef();
|
|
26
28
|
const defaultRole = isSelectable ? isMultiSelect ? 'menuitemcheckbox' : 'menuitemradio' : 'menuitem';
|
|
27
|
-
const handleSelect = e => {
|
|
29
|
+
const handleSelect = useCallback(e => {
|
|
28
30
|
if (typeof onSelect === 'function' && !disabled) {
|
|
29
31
|
onSelect(e);
|
|
30
32
|
}
|
|
31
|
-
};
|
|
33
|
+
}, [disabled, onSelect]);
|
|
34
|
+
useEffect(() => {
|
|
35
|
+
var _itemRef$current;
|
|
36
|
+
/* preventScroll isn't strictly needed.
|
|
37
|
+
* For keyboard users it makes no difference since the item is already in view when .focus() is called.
|
|
38
|
+
* For mouse users, it prevents scrolling from occurring when hovering over a menu item that is partially out of view.
|
|
39
|
+
*/
|
|
40
|
+
if (isHighlighted) (_itemRef$current = itemRef.current) === null || _itemRef$current === void 0 || _itemRef$current.focus({
|
|
41
|
+
preventScroll: true
|
|
42
|
+
});
|
|
43
|
+
}, [isHighlighted]);
|
|
32
44
|
return (
|
|
33
45
|
/*#__PURE__*/
|
|
34
46
|
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
35
47
|
React__default.createElement("div", _extends({}, rest, {
|
|
36
|
-
ref: ref,
|
|
48
|
+
ref: mergeRefs(itemRef, ref),
|
|
37
49
|
role: role !== null && role !== void 0 ? role : defaultRole,
|
|
38
50
|
tabIndex: tabIndex,
|
|
39
51
|
"aria-disabled": disabled,
|
|
@@ -49,7 +61,6 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
49
61
|
e.preventDefault(); // prevent scroll
|
|
50
62
|
}
|
|
51
63
|
}),
|
|
52
|
-
|
|
53
64
|
onClick: wrapEvent(onClick, handleSelect)
|
|
54
65
|
}), isMultiSelect && /*#__PURE__*/React__default.createElement(Check, {
|
|
55
66
|
className: classNames(styles.checkbox, {
|
|
@@ -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 = {"numberStepperContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._1uH2k{display:inline-flex;width:127px}._zQvT1{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._zQvT1:hover:not(._-eRUc){cursor:pointer;background:#f5f5f5}._zQvT1._NxbyS{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._zQvT1._-eRUc{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._zQvT1._-eRUc>svg{opacity:.4}._zQvT1::-webkit-inner-spin-button,._zQvT1::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._zQvT1:focus{z-index:0;border:none;border-radius:4px}._zQvT1:focus:not(._NxbyS){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._6TB8F,._zQvT1:focus:not(._-eRUc){background:#fafafa}._6TB8F{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._6TB8F:hover:not(._-eRUc){cursor:pointer;background:#f5f5f5}._6TB8F:active:not(._-eRUc){background:#e5e5e5}._6TB8F._-eRUc{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._6TB8F._-eRUc>svg{opacity:.4}._TIyQ5{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._TIyQ5:hover:not(._-eRUc){cursor:pointer;background:#f5f5f5}._TIyQ5:active:not(._-eRUc){background:#e5e5e5}._TIyQ5._-eRUc{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._TIyQ5._-eRUc>svg{opacity:.4}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_1uH2k","numberStepperInput":"_zQvT1","disabled":"_-eRUc","invalid":"_NxbyS","decrementBtn":"_6TB8F","incrementBtn":"_TIyQ5"};
|
|
5
|
+
var stylesheet="._1uH2k{display:inline-flex;width:127px}._zQvT1{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._zQvT1:hover:not(._-eRUc){cursor:pointer;background:#f5f5f5}._zQvT1._NxbyS{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._zQvT1._-eRUc{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._zQvT1._-eRUc>svg{opacity:.4}._zQvT1::-webkit-inner-spin-button,._zQvT1::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._zQvT1:focus{z-index:0;border:none;border-radius:4px}._zQvT1:focus:not(._NxbyS){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._6TB8F,._zQvT1:focus:not(._-eRUc){background:#fafafa}._6TB8F{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._6TB8F:hover:not(._-eRUc){cursor:pointer;background:#f5f5f5}._6TB8F:active:not(._-eRUc){background:#e5e5e5}._6TB8F._-eRUc{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._6TB8F._-eRUc>svg{opacity:.4}._TIyQ5{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._TIyQ5:hover:not(._-eRUc){cursor:pointer;background:#f5f5f5}._TIyQ5:active:not(._-eRUc){background:#e5e5e5}._TIyQ5._-eRUc{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._TIyQ5._-eRUc>svg{opacity:.4}";
|
|
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 };
|
|
@@ -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 = {"pageContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._vwKYZ{height:100vh;width:100vw;display:grid;grid-template-rows:auto 1fr;grid-template-columns:auto auto 1fr;grid-template-areas:\"pageHeader pageHeader pageHeader\" \"sidebarNav configPane mainContent\"}._QcWK2{grid-area:pageHeader}._CRJqb{grid-area:mainContent;height:100%;overflow:auto}";
|
|
4
|
+
var styles = {"pageContainer":"_vwKYZ","pageHeader":"_QcWK2","mainContent":"_CRJqb"};
|
|
5
|
+
var stylesheet="._vwKYZ{height:100vh;width:100vw;display:grid;grid-template-rows:auto 1fr;grid-template-columns:auto auto 1fr;grid-template-areas:\"pageHeader pageHeader pageHeader\" \"sidebarNav configPane mainContent\"}._QcWK2{grid-area:pageHeader}._CRJqb{grid-area:mainContent;height:100%;overflow:auto}";
|
|
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 };
|
|
@@ -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 = {"pagination":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._MEmbv{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._ah-pD{margin-right:8px}._-Yust{margin-left:8px}._2rxnT{margin:-10px -15px}._thJ50{width:100%;text-align:center}";
|
|
4
|
+
var styles = {"pagination":"_MEmbv","previousButton":"_ah-pD","nextButton":"_-Yust","btnIcon":"_2rxnT","input":"_thJ50"};
|
|
5
|
+
var stylesheet="._MEmbv{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._ah-pD{margin-right:8px}._-Yust{margin-left:8px}._2rxnT{margin:-10px -15px}._thJ50{width:100%;text-align:center}";
|
|
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 };
|
|
@@ -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 = {"popover":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._mbaG9{position:absolute;z-index:1000;background-color:#fff;border-radius:4px;display:inline-block;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);border:1px solid #898989}._mbaG9:focus{outline:none}._mWAMy,._mWAMy>div{position:absolute;width:8px;height:8px;background:inherit}._mWAMy{visibility:hidden;z-index:1000}._mWAMy>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._mWAMy{bottom:-4px}[data-popper-placement^=top]>._mWAMy>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._mWAMy{left:-5px}[data-popper-placement^=right]>._mWAMy>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._mWAMy{top:-5px}[data-popper-placement^=bottom]>._mWAMy>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._mWAMy{right:-4px}[data-popper-placement^=left]>._mWAMy>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
4
|
+
var styles = {"popover":"_mbaG9","arrow":"_mWAMy"};
|
|
5
|
+
var stylesheet="._mbaG9{position:absolute;z-index:1000;background-color:#fff;border-radius:4px;display:inline-block;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);border:1px solid #898989}._mbaG9:focus{outline:none}._mWAMy,._mWAMy>div{position:absolute;width:8px;height:8px;background:inherit}._mWAMy{visibility:hidden;z-index:1000}._mWAMy>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._mWAMy{bottom:-4px}[data-popper-placement^=top]>._mWAMy>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._mWAMy{left:-5px}[data-popper-placement^=right]>._mWAMy>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._mWAMy{top:-5px}[data-popper-placement^=bottom]>._mWAMy>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._mWAMy{right:-4px}[data-popper-placement^=left]>._mWAMy>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
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 };
|
|
@@ -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 = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._PfivK{display:flex;height:32px}";
|
|
4
|
+
var styles = {"loadingSpinner":"_PfivK"};
|
|
5
|
+
var stylesheet="._PfivK{display:flex;height:32px}";
|
|
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 };
|
|
@@ -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 = {"radio":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._up-bV{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._jFCD1,._up-bV{cursor:pointer;height:16px;width:16px}._jFCD1{position:absolute;opacity:0;z-index:10}._jFCD1:disabled{cursor:not-allowed}._jFCD1:checked~._wuj8K:after{content:\"\"}._39iD6{color:#32363a;display:flex;align-items:center;cursor:pointer}._39iD6:has(input:disabled){color:rgba(50,54,58,.4)}._BYCyR{margin-right:12px;flex-shrink:0}._wuj8K{position:relative;display:flex;align-items:center;justify-content:center;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0;border-radius:50%;background-color:transparent!important;border-color:#898989!important}._jFCD1:hover ._wuj8K:not(._P3Pl6)._vPTuZ,._wuj8K:not(._P3Pl6):hover._vPTuZ{background-color:#085caf}._jFCD1:hover ._wuj8K:not(._P3Pl6):not(._vPTuZ),._wuj8K:not(._P3Pl6):hover:not(._vPTuZ){border-color:#0b6ed0}._wuj8K ._RM-mK{fill:#0b6ed0;fill-opacity:0}._wuj8K._vPTuZ ._RM-mK{fill-opacity:1}._wuj8K._vPTuZ:not(._P3Pl6){border-color:transparent;background-color:#0b6ed0}._wuj8K._vPTuZ:not(._P3Pl6) ._RM-mK{fill:#fff}._wuj8K._P3Pl6{opacity:.4}._wuj8K ._SGhKD{border-radius:2px}._wuj8K ._SGhKD,._wuj8K:after{position:absolute;height:10px;width:10px;background-color:#0b6ed0}._wuj8K:after{z-index:0;border-radius:50%;top:2px;left:2px}._GGvYJ{border:none;padding:0;margin:0}._-kBh1{padding:0;margin:0 0 14px;color:#01213f}._jFCD1.focus-visible~._wuj8K,._jFCD1:focus-visible~._wuj8K{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"radio":"_up-bV","input":"_jFCD1","check":"_wuj8K","label":"_39iD6","wrappedInput":"_BYCyR","disabled":"_P3Pl6","checked":"_vPTuZ","checkIcon":"_RM-mK","mixed":"_SGhKD","radioGroup":"_GGvYJ","legend":"_-kBh1"};
|
|
5
|
+
var stylesheet="._up-bV{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._jFCD1,._up-bV{cursor:pointer;height:16px;width:16px}._jFCD1{position:absolute;opacity:0;z-index:10}._jFCD1:disabled{cursor:not-allowed}._jFCD1:checked~._wuj8K:after{content:\"\"}._39iD6{color:#32363a;display:flex;align-items:center;cursor:pointer}._39iD6:has(input:disabled){color:rgba(50,54,58,.4)}._BYCyR{margin-right:12px;flex-shrink:0}._wuj8K{position:relative;display:flex;align-items:center;justify-content:center;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0;border-radius:50%;background-color:transparent!important;border-color:#898989!important}._jFCD1:hover ._wuj8K:not(._P3Pl6)._vPTuZ,._wuj8K:not(._P3Pl6):hover._vPTuZ{background-color:#085caf}._jFCD1:hover ._wuj8K:not(._P3Pl6):not(._vPTuZ),._wuj8K:not(._P3Pl6):hover:not(._vPTuZ){border-color:#0b6ed0}._wuj8K ._RM-mK{fill:#0b6ed0;fill-opacity:0}._wuj8K._vPTuZ ._RM-mK{fill-opacity:1}._wuj8K._vPTuZ:not(._P3Pl6){border-color:transparent;background-color:#0b6ed0}._wuj8K._vPTuZ:not(._P3Pl6) ._RM-mK{fill:#fff}._wuj8K._P3Pl6{opacity:.4}._wuj8K ._SGhKD{border-radius:2px}._wuj8K ._SGhKD,._wuj8K:after{position:absolute;height:10px;width:10px;background-color:#0b6ed0}._wuj8K:after{z-index:0;border-radius:50%;top:2px;left:2px}._GGvYJ{border:none;padding:0;margin:0}._-kBh1{padding:0;margin:0 0 14px;color:#01213f}._jFCD1.focus-visible~._wuj8K,._jFCD1:focus-visible~._wuj8K{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
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 };
|
|
@@ -62,7 +62,6 @@ const SearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
62
62
|
e.stopPropagation(); // prevent event from closing modals or popovers
|
|
63
63
|
e.preventDefault(); // Prevent Safari from exiting full-screen mode
|
|
64
64
|
}
|
|
65
|
-
|
|
66
65
|
clearInputText();
|
|
67
66
|
}
|
|
68
67
|
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
@@ -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 = {"searchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._zWLTi{display:inline-block;position:relative}._3V-Hf._3V-Hf{padding-left:36px;padding-right:36px;width:100%}._3V-Hf._3V-Hf:disabled+._fp40v{fill-opacity:.6}._fp40v{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._fp40v._yjW6C{z-index:20}._NP8CS{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._NP8CS:hover{cursor:pointer}._NP8CS:hover>._Q-ozO{fill:#32363a}._NP8CS:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Q-ozO{fill:#515559}";
|
|
4
|
+
var styles = {"searchInput":"_zWLTi","searchInputInput":"_3V-Hf","searchInputSearchIcon":"_fp40v","usedWithinInputGroup":"_yjW6C","searchInputClearButton":"_NP8CS","searchInputClearButtonIcon":"_Q-ozO"};
|
|
5
|
+
var stylesheet="._zWLTi{display:inline-block;position:relative}._3V-Hf._3V-Hf{padding-left:36px;padding-right:36px;width:100%}._3V-Hf._3V-Hf:disabled+._fp40v{fill-opacity:.6}._fp40v{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._fp40v._yjW6C{z-index:20}._NP8CS{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._NP8CS:hover{cursor:pointer}._NP8CS:hover>._Q-ozO{fill:#32363a}._NP8CS:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Q-ozO{fill:#515559}";
|
|
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 };
|
|
@@ -12,6 +12,7 @@ import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
|
12
12
|
// react component type comes with "defaultProps" attribute which
|
|
13
13
|
// which causes typescript failures but all we really care about
|
|
14
14
|
// is the render function
|
|
15
|
+
|
|
15
16
|
const SidebarNav = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
16
17
|
let {
|
|
17
18
|
isCollapsible = true,
|
|
@@ -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 = {"sideBarNav":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._kEfL9{grid-area:sidebarNav;height:100%;display:flex;flex-direction:column;align-items:center;min-width:165px;max-width:240px;background-color:#fff;border-right:1px solid #eee;overflow:hidden}._kEfL9._R-Wys{width:69px;min-width:auto;max-width:none}._eVRqm{margin:12px 0 28px;width:100%;overflow:auto;padding:4px 16px 0}._dNDsw{margin-bottom:12px;background-color:transparent!important}._dNDsw:hover{background-color:#efefef!important}._dNDsw:hover ._77Opm{fill:#32363a}._dNDsw:hover ._rhG6p{color:#32363a}._dNDsw:active{background-color:rgba(11,110,208,.12)!important}._dNDsw:active ._77Opm{fill:#0854a1}._dNDsw:active ._rhG6p{color:#0854a1}._dNDsw._5Wl9H{background-color:rgba(11,110,208,.08)!important}._dNDsw._5Wl9H ._77Opm{fill:#0b6ed0}._dNDsw._5Wl9H ._rhG6p{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._dNDsw._5Wl9H:hover{background-color:rgba(11,110,208,.15)!important}._dNDsw._5Wl9H:hover ._77Opm{fill:#085caf}._dNDsw._5Wl9H:hover ._rhG6p{color:#085caf}._dNDsw._5Wl9H:active{background-color:rgba(11,110,208,.12)!important}._dNDsw._5Wl9H:active ._77Opm{fill:#0854a1}._dNDsw._5Wl9H:active ._rhG6p{color:#0854a1}._5fqnC{border-radius:6px}._5fqnC ._77Opm{display:block;fill:#515559}._YS7pt{width:100%;padding:0 16px;margin-top:auto;margin-bottom:0}._PGpO2,._ScT9F{width:100%;display:flex;align-items:start;border:1px solid transparent;border-radius:6px;outline:none;cursor:pointer;padding:5px 11px 5px 5px;text-decoration:none}._PGpO2 ._77Opm,._ScT9F ._77Opm{fill:#515559}._PGpO2 ._rhG6p,._ScT9F ._rhG6p{font-size:14px;line-height:19px;color:#515559;overflow:hidden;overflow-wrap:break-word;margin:2.5px 0 2.5px 6px}._dNDsw.focus-visible,._dNDsw:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"sideBarNav":"_kEfL9","collapsed":"_R-Wys","navItems":"_eVRqm","sidebarNavItem":"_dNDsw","icon":"_77Opm","label":"_rhG6p","selected":"_5Wl9H","sidebarNavItemIconButton":"_5fqnC","expandCollapseButtonContainer":"_YS7pt","navLink":"_ScT9F","iconButtonWithLabel":"_PGpO2"};
|
|
5
|
+
var stylesheet="._kEfL9{grid-area:sidebarNav;height:100%;display:flex;flex-direction:column;align-items:center;min-width:165px;max-width:240px;background-color:#fff;border-right:1px solid #eee;overflow:hidden}._kEfL9._R-Wys{width:69px;min-width:auto;max-width:none}._eVRqm{margin:12px 0 28px;width:100%;overflow:auto;padding:4px 16px 0}._dNDsw{margin-bottom:12px;background-color:transparent!important}._dNDsw:hover{background-color:#efefef!important}._dNDsw:hover ._77Opm{fill:#32363a}._dNDsw:hover ._rhG6p{color:#32363a}._dNDsw:active{background-color:rgba(11,110,208,.12)!important}._dNDsw:active ._77Opm{fill:#0854a1}._dNDsw:active ._rhG6p{color:#0854a1}._dNDsw._5Wl9H{background-color:rgba(11,110,208,.08)!important}._dNDsw._5Wl9H ._77Opm{fill:#0b6ed0}._dNDsw._5Wl9H ._rhG6p{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._dNDsw._5Wl9H:hover{background-color:rgba(11,110,208,.15)!important}._dNDsw._5Wl9H:hover ._77Opm{fill:#085caf}._dNDsw._5Wl9H:hover ._rhG6p{color:#085caf}._dNDsw._5Wl9H:active{background-color:rgba(11,110,208,.12)!important}._dNDsw._5Wl9H:active ._77Opm{fill:#0854a1}._dNDsw._5Wl9H:active ._rhG6p{color:#0854a1}._5fqnC{border-radius:6px}._5fqnC ._77Opm{display:block;fill:#515559}._YS7pt{width:100%;padding:0 16px;margin-top:auto;margin-bottom:0}._PGpO2,._ScT9F{width:100%;display:flex;align-items:start;border:1px solid transparent;border-radius:6px;outline:none;cursor:pointer;padding:5px 11px 5px 5px;text-decoration:none}._PGpO2 ._77Opm,._ScT9F ._77Opm{fill:#515559}._PGpO2 ._rhG6p,._ScT9F ._rhG6p{font-size:14px;line-height:19px;color:#515559;overflow:hidden;overflow-wrap:break-word;margin:2.5px 0 2.5px 6px}._dNDsw.focus-visible,._dNDsw:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
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 };
|
|
@@ -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 = {"slider":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Qs1GP{height:auto;width:200px;padding:5px 10px}._B2EMX{position:relative;height:10px;border:1px solid #898989;border-radius:5px;background:#fafafa}._6AUm9{top:-1px;bottom:-1px;background-color:#007ac0;border:1px solid #007ac0;border-radius:5px}._6AUm9,._k8FF3{position:absolute}._k8FF3{top:-5px;left:-10px;border:1px solid #007ac0;overflow:visible;width:18px;height:18px;padding:0;margin:0;border-radius:9px;cursor:pointer;display:inline-block;text-align:center;background:#fff;text-decoration:none;outline:none}._k8FF3:before{content:\"\";position:absolute;top:4px;left:4px;background:#007ac0;width:8px;height:8px;border-radius:10px}._k8FF3.focus-visible,._k8FF3:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"slider":"_Qs1GP","track":"_B2EMX","fill":"_6AUm9","button":"_k8FF3"};
|
|
5
|
+
var stylesheet="._Qs1GP{height:auto;width:200px;padding:5px 10px}._B2EMX{position:relative;height:10px;border:1px solid #898989;border-radius:5px;background:#fafafa}._6AUm9{top:-1px;bottom:-1px;background-color:#007ac0;border:1px solid #007ac0;border-radius:5px}._6AUm9,._k8FF3{position:absolute}._k8FF3{top:-5px;left:-10px;border:1px solid #007ac0;overflow:visible;width:18px;height:18px;padding:0;margin:0;border-radius:9px;cursor:pointer;display:inline-block;text-align:center;background:#fff;text-decoration:none;outline:none}._k8FF3:before{content:\"\";position:absolute;top:4px;left:4px;background:#007ac0;width:8px;height:8px;border-radius:10px}._k8FF3.focus-visible,._k8FF3:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
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 };
|