@qualtrics/ui-react 2.25.0 → 2.27.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.
- package/CHANGELOG.md +32 -0
- package/dist/__shared/cjs/{index-610a1e02.js → index-88aa3bce.js} +267 -256
- package/dist/__shared/cjs/{index-5b3b3406.js → index-e6893573.js} +23 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +1 -1
- 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/Alpha.js +1 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Hue.js +1 -1
- package/dist/components/ColorPicker/Palette.js +1 -1
- package/dist/components/ColorPicker/Saturation.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxIcon.js +1 -1
- package/dist/components/Combobox/ComboboxInput.js +1 -1
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +4 -4
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownList.js +1 -1
- package/dist/components/Dropdown/DropdownOption.js +2 -2
- package/dist/components/Dropdown/DropdownSearch.js +2 -2
- package/dist/components/FilePicker/FilePicker.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/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +2 -2
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/IconTypes.js +5 -0
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +7 -7
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -2
- 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/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +3 -3
- package/dist/components/NumberStepper/NumberStepper.js +2 -2
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +3 -3
- package/dist/components/Pagination/PaginationPageInput.js +8 -8
- package/dist/components/Pagination/PaginationPreviousButton.js +3 -3
- package/dist/components/Popover/Popover.js +5 -5
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -1
- 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/Alpha.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
- package/dist/components/deprecated_ColorPicker/Hue.js +2 -2
- package/dist/components/deprecated_ColorPicker/Saturation.js +2 -2
- package/dist/components/deprecated_ColorPicker/Swatch.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs.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 +1 -1
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +5 -5
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +2 -2
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +1 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/AIChatbotIcon.js +6 -0
- package/dist/icons/components/LinesIcon.js +6 -0
- package/dist/icons/components/RobotConversationalIcon.js +6 -0
- package/dist/icons/components/ScatterPlotIcon.js +6 -0
- package/dist/icons/components/UnmoderatedUserTestingIcon.js +6 -0
- package/dist/icons/index.d.ts +10 -0
- package/dist/icons/index.es.js +5 -0
- package/dist/icons/index.js +6 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +36 -8
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +2 -2
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollectionGrid/CollectionGrid.js +34 -0
- package/dist/next/CollectionGrid/CollectionGridItem.js +18 -0
- package/dist/next/CollectionGrid/index.js +2 -0
- package/dist/next/Combobox/Combobox.js +2 -0
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +2 -0
- package/dist/next/Combobox/ComboboxOption.js +2 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Drawer/Drawer.js +2 -2
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +2 -2
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LayoutGrid/LayoutGrid.js +38 -0
- package/dist/next/LayoutGrid/LayoutGridItem.js +23 -0
- package/dist/next/LayoutGrid/index.js +2 -0
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +41 -0
- package/dist/next/Menu/Hooks/useIsVirtualized.js +8 -0
- package/dist/next/Menu/Hooks/useMaskDimensions.js +59 -0
- package/dist/next/Menu/{useMutationObserver.js → Hooks/useMutationObserver.js} +1 -1
- package/dist/next/Menu/{usePaneSearch.js → Hooks/usePaneSearch.js} +61 -24
- package/dist/next/Menu/Menu.js +19 -24
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuContext.js +5 -1
- package/dist/next/Menu/MenuItem.js +21 -14
- package/dist/next/Menu/MenuPane.js +73 -54
- package/dist/next/Menu/PaneChildren.js +47 -0
- package/dist/next/Menu/SubMenu.js +57 -39
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +10 -6
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SubSelect.js +2 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/Stack/Stack.js +1 -18
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +1 -1
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +57 -3
- package/dist/next/index.es.js +6 -0
- package/dist/next/index.js +614 -268
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +30 -0
- package/dist/utils/GridChildrenWrapper/index.js +1 -0
- package/dist/utils/Popper/Popper.js +2 -2
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +1 -1
- package/icons/package.json +3 -1
- package/next/package.json +4 -2
- package/package.json +5 -3
- /package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +0 -0
|
@@ -50,14 +50,14 @@ const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
|
50
50
|
// Ensure that when a user clicks on the dialog and drags and lifts out on the overlay,
|
|
51
51
|
// the modal does not fire onDismiss.
|
|
52
52
|
if (e.target === mouseDownTarget.current && e.target === overlay.current) {
|
|
53
|
-
onDismiss === null || onDismiss === void 0
|
|
53
|
+
onDismiss === null || onDismiss === void 0 || onDismiss(e);
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
const handleKeyDown = e => {
|
|
57
57
|
if (e.key === 'Escape') {
|
|
58
58
|
e.stopPropagation(); // Prevent event from closing modals or popovers
|
|
59
|
-
onDismiss === null || onDismiss === void 0
|
|
60
|
-
onClose === null || onClose === void 0
|
|
59
|
+
onDismiss === null || onDismiss === void 0 || onDismiss(e);
|
|
60
|
+
onClose === null || onClose === void 0 || onClose(e);
|
|
61
61
|
e.preventDefault(); // Prevent Safari from exiting full-screen mode
|
|
62
62
|
}
|
|
63
63
|
};
|
|
@@ -178,7 +178,7 @@ const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
|
|
|
178
178
|
closeIconButtonRef.current.focus();
|
|
179
179
|
} else {
|
|
180
180
|
var _dialogRef$current;
|
|
181
|
-
(_dialogRef$current = dialogRef.current) === null || _dialogRef$current === void 0
|
|
181
|
+
(_dialogRef$current = dialogRef.current) === null || _dialogRef$current === void 0 || _dialogRef$current.focus();
|
|
182
182
|
}
|
|
183
183
|
} else if (elementRefToFocusOnClose !== null && elementRefToFocusOnClose !== void 0 && elementRefToFocusOnClose.current) {
|
|
184
184
|
elementRefToFocusOnClose.current.focus();
|
|
@@ -187,7 +187,7 @@ const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
|
|
|
187
187
|
* This replaces the `returnFocus` prop of `react-focus-lock`.
|
|
188
188
|
* The logic is done in this effect instead because `elementRefToFocusOnClose.current` is not available until after the `Overlay` is unmounted.
|
|
189
189
|
*/
|
|
190
|
-
elementUsedToOpenModal === null || elementUsedToOpenModal === void 0
|
|
190
|
+
elementUsedToOpenModal === null || elementUsedToOpenModal === void 0 || elementUsedToOpenModal.focus();
|
|
191
191
|
}
|
|
192
192
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
193
193
|
}, [isInDOM]);
|
|
@@ -207,7 +207,7 @@ const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
|
|
|
207
207
|
onDismiss: onDismiss
|
|
208
208
|
}, /*#__PURE__*/React__default.createElement(Dialog, _extends({}, rest, {
|
|
209
209
|
onAnimationEnd: e => {
|
|
210
|
-
externalOnAnimationEnd === null || externalOnAnimationEnd === void 0
|
|
210
|
+
externalOnAnimationEnd === null || externalOnAnimationEnd === void 0 || externalOnAnimationEnd(e);
|
|
211
211
|
if (!open) setIsInDOM(false);
|
|
212
212
|
},
|
|
213
213
|
maxSize: maxSize,
|
|
@@ -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 = {"backdrop":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._K-O1U{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._K-O1U,._X6q07{display:flex;overflow:auto}._X6q07{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._DR5yi)._39uAJ{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._DR5yi)._39uAJ{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._DR5yi)._lzJBI{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._DR5yi)._lzJBI{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._DR5yi)._lzJBI{max-width:700px}}:not(._DR5yi)._P7kd2{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._DR5yi)._P7kd2{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._DR5yi)._P7kd2{max-width:700px}}@media screen and (min-width:1024px){:not(._DR5yi)._P7kd2{max-width:1000px}}:not(._DR5yi)._Y4NR1{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._DR5yi)._Y4NR1{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._DR5yi)._Y4NR1{max-width:700px}}@media screen and (min-width:1024px){:not(._DR5yi)._Y4NR1{max-width:1000px}}@media screen and (min-width:1632px){:not(._DR5yi)._Y4NR1{max-width:1600px;max-height:calc(100vh - 32px)}}._DR5yi{min-width:200px;width:calc(100% - 48px)}._DR5yi,._DR5yi._39uAJ{max-height:calc(100vh - 80px)}._DR5yi._39uAJ{max-width:480px;border-radius:8px}._DR5yi._lzJBI{max-width:700px}._DR5yi._P7kd2{max-width:1000px}._DR5yi._Y4NR1{max-width:1600px;max-height:calc(100vh - 32px)}._wyxsC{height:calc(100vh - 80px)}@media screen and (max-width:479px){._wyxsC{height:100vh}}@media screen and (min-width:1632px){._wyxsC{height:calc(100vh - 32px)}}._y7s-0{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._6xurw{padding-right:64px}._AMP7n{position:absolute;top:14px;right:14px}._qM0wC{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._DHDgr,._qM0wC{padding:20px 24px}._DHDgr{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._DHDgr>*{margin:0 4px}._DHDgr>:first-child{margin-left:0}._DHDgr>:last-child{margin-right:0}@keyframes _Lo03C{0%{opacity:0}}._Lo03C{animation:_Lo03C ease-in both;animation-duration:.2s}@keyframes _ZDzqj{to{opacity:0}}._ZDzqj{animation:_ZDzqj ease-out both;animation-duration:.2s}@keyframes _xx2SA{0%{transform:scale3d(.7,.7,.7);opacity:0}}._xx2SA{animation:_xx2SA both;animation-duration:.2s}@keyframes _BCoBf{to{transform:scale3d(.7,.7,.7);opacity:0}}._BCoBf{animation:_BCoBf both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"backdrop":"_K-O1U","modal":"_X6q07","responsive":"_DR5yi","dialogSmall":"_39uAJ","dialogMedium":"_lzJBI","dialogLarge":"_P7kd2","dialogExtraLarge":"_Y4NR1","growToMaxHeight":"_wyxsC","modalHeader":"_y7s-0","modalHeaderWithCloseButton":"_6xurw","modalHeaderCloseButton":"_AMP7n","modalBody":"_qM0wC","modalFooter":"_DHDgr","fadeEnter":"_Lo03C","fadeLeave":"_ZDzqj","zoomEnter":"_xx2SA","zoomLeave":"_BCoBf"};
|
|
5
|
+
var stylesheet="._K-O1U{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._K-O1U,._X6q07{display:flex;overflow:auto}._X6q07{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._DR5yi)._39uAJ{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._DR5yi)._39uAJ{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._DR5yi)._lzJBI{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._DR5yi)._lzJBI{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._DR5yi)._lzJBI{max-width:700px}}:not(._DR5yi)._P7kd2{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._DR5yi)._P7kd2{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._DR5yi)._P7kd2{max-width:700px}}@media screen and (min-width:1024px){:not(._DR5yi)._P7kd2{max-width:1000px}}:not(._DR5yi)._Y4NR1{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._DR5yi)._Y4NR1{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._DR5yi)._Y4NR1{max-width:700px}}@media screen and (min-width:1024px){:not(._DR5yi)._Y4NR1{max-width:1000px}}@media screen and (min-width:1632px){:not(._DR5yi)._Y4NR1{max-width:1600px;max-height:calc(100vh - 32px)}}._DR5yi{min-width:200px;width:calc(100% - 48px)}._DR5yi,._DR5yi._39uAJ{max-height:calc(100vh - 80px)}._DR5yi._39uAJ{max-width:480px;border-radius:8px}._DR5yi._lzJBI{max-width:700px}._DR5yi._P7kd2{max-width:1000px}._DR5yi._Y4NR1{max-width:1600px;max-height:calc(100vh - 32px)}._wyxsC{height:calc(100vh - 80px)}@media screen and (max-width:479px){._wyxsC{height:100vh}}@media screen and (min-width:1632px){._wyxsC{height:calc(100vh - 32px)}}._y7s-0{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._6xurw{padding-right:64px}._AMP7n{position:absolute;top:14px;right:14px}._qM0wC{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._DHDgr,._qM0wC{padding:20px 24px}._DHDgr{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._DHDgr>*{margin:0 4px}._DHDgr>:first-child{margin-left:0}._DHDgr>:last-child{margin-right:0}@keyframes _Lo03C{0%{opacity:0}}._Lo03C{animation:_Lo03C ease-in both;animation-duration:.2s}@keyframes _ZDzqj{to{opacity:0}}._ZDzqj{animation:_ZDzqj ease-out both;animation-duration:.2s}@keyframes _xx2SA{0%{transform:scale3d(.7,.7,.7);opacity:0}}._xx2SA{animation:_xx2SA both;animation-duration:.2s}@keyframes _BCoBf{to{transform:scale3d(.7,.7,.7);opacity:0}}._BCoBf{animation:_BCoBf both;animation-duration:.2s}";
|
|
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 };
|
|
@@ -88,7 +88,7 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
88
88
|
useDidUpdate(() => {
|
|
89
89
|
if (isSubmenu) {
|
|
90
90
|
var _onIsOpenChangeRef$cu;
|
|
91
|
-
(_onIsOpenChangeRef$cu = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu === void 0
|
|
91
|
+
(_onIsOpenChangeRef$cu = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu === void 0 || _onIsOpenChangeRef$cu.call(onIsOpenChangeRef, externalIsOpen);
|
|
92
92
|
}
|
|
93
93
|
}, [externalIsOpen, onIsOpenChangeRef, isSubmenu]);
|
|
94
94
|
// Call onIsOpenChange if open on mount or on unmount
|
|
@@ -96,14 +96,14 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
96
96
|
if (isSubmenu) {
|
|
97
97
|
if (externalIsOpenRef.current) {
|
|
98
98
|
var _onIsOpenChangeRef$cu2;
|
|
99
|
-
(_onIsOpenChangeRef$cu2 = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu2 === void 0
|
|
99
|
+
(_onIsOpenChangeRef$cu2 = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu2 === void 0 || _onIsOpenChangeRef$cu2.call(onIsOpenChangeRef, true);
|
|
100
100
|
}
|
|
101
101
|
return () => {
|
|
102
102
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
103
103
|
if (externalIsOpenRef.current) {
|
|
104
104
|
var _onIsOpenChangeRef$cu3;
|
|
105
105
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
106
|
-
(_onIsOpenChangeRef$cu3 = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu3 === void 0
|
|
106
|
+
(_onIsOpenChangeRef$cu3 = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu3 === void 0 || _onIsOpenChangeRef$cu3.call(onIsOpenChangeRef, false);
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
}
|
|
@@ -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 = "._q5KVR._q5KVR{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}._q5KVR._q5KVR,._q5KVR._q5KVR ._14x6Q{display:inline-flex;align-items:center}._q5KVR._q5KVR ._14x6Q{overflow:hidden;text-overflow:ellipsis}._q5KVR._q5KVR._6bEF9{min-height:26px;height:26px}._q5KVR._q5KVR._-GaiJ{color:#32363a}._q5KVR._q5KVR:hover:not([aria-disabled=true]){background-color:#f5f5f5}._q5KVR._q5KVR:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._q5KVR._q5KVR[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._q5KVR._q5KVR[aria-disabled=true]>svg{fill:#515559;opacity:.4}._q5KVR._q5KVR[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._q5KVR._q5KVR._OQaL7{padding-left:0}._q5KVR._q5KVR._-ZPTV{margin-top:4px}._q5KVR._q5KVR ._7ILMq{fill:#515559}._q5KVR._q5KVR ._7ILMq._6bEF9{top:0}._q5KVR._q5KVR ._7ILMq._t-lk6{transform:rotate(-180deg)}._WH1sS{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}._WH1sS::-webkit-scrollbar,._WH1sS::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._WH1sS::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._WH1sS::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._WH1sS:hover::-webkit-scrollbar,._WH1sS:hover::-webkit-scrollbar-thumb,._WH1sS[focus-within]::-webkit-scrollbar,._WH1sS[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._WH1sS:focus-within::-webkit-scrollbar,._WH1sS:focus-within::-webkit-scrollbar-thumb,._WH1sS:hover::-webkit-scrollbar,._WH1sS:hover::-webkit-scrollbar-thumb{visibility:visible}._WyqYo{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._WyqYo[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._WyqYo._A-52z{background-color:#efefef}._WyqYo._o0i99{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._WyqYo._-GaiJ{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._WyqYo._-GaiJ._A-52z{background-color:#e4effa}._WyqYo._o-0kR{cursor:default}._WyqYo:active:not(._ZkTOe):not(._-GaiJ):not([aria-disabled=true]):not(._o-0kR){background-color:#e8e9e9}._ZkTOe{padding-right:32px}._ZkTOe ._7ILMq{position:absolute;top:8px;right:3px;fill:#515559}._TKGUd{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}._v7zZ8{position:absolute;top:13px;left:13px}._3g8o2._3g8o2{padding-left:32px}._qEXVs{margin:2px 12px 2px 0;flex-shrink:0}._qEXVs._nDHIT>svg{border-color:#0b6ed0}._umggf{display:flex;justify-self:center;margin:8px}";
|
|
4
|
+
var styles = {"menuBtn":"_q5KVR","menuBtnLabel":"_14x6Q","small":"_6bEF9","selected":"_-GaiJ","unlabelledButton":"_OQaL7","formLabelled":"_-ZPTV","rightIcon":"_7ILMq","open":"_t-lk6","contentPane":"_WH1sS","menuItem":"_WyqYo","active":"_A-52z","focus":"_o0i99","noMenuItems":"_o-0kR","subMenu":"_ZkTOe","searchBox":"_TKGUd","searchBoxIcon":"_v7zZ8","searchBoxInput":"_3g8o2","checkbox":"_qEXVs","highlighted":"_nDHIT","menuSpinner":"_umggf"};
|
|
5
|
+
var stylesheet="._q5KVR._q5KVR{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}._q5KVR._q5KVR,._q5KVR._q5KVR ._14x6Q{display:inline-flex;align-items:center}._q5KVR._q5KVR ._14x6Q{overflow:hidden;text-overflow:ellipsis}._q5KVR._q5KVR._6bEF9{min-height:26px;height:26px}._q5KVR._q5KVR._-GaiJ{color:#32363a}._q5KVR._q5KVR:hover:not([aria-disabled=true]){background-color:#f5f5f5}._q5KVR._q5KVR:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._q5KVR._q5KVR[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._q5KVR._q5KVR[aria-disabled=true]>svg{fill:#515559;opacity:.4}._q5KVR._q5KVR[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._q5KVR._q5KVR._OQaL7{padding-left:0}._q5KVR._q5KVR._-ZPTV{margin-top:4px}._q5KVR._q5KVR ._7ILMq{fill:#515559}._q5KVR._q5KVR ._7ILMq._6bEF9{top:0}._q5KVR._q5KVR ._7ILMq._t-lk6{transform:rotate(-180deg)}._WH1sS{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}._WH1sS::-webkit-scrollbar,._WH1sS::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._WH1sS::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._WH1sS::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._WH1sS:hover::-webkit-scrollbar,._WH1sS:hover::-webkit-scrollbar-thumb,._WH1sS[focus-within]::-webkit-scrollbar,._WH1sS[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._WH1sS:focus-within::-webkit-scrollbar,._WH1sS:focus-within::-webkit-scrollbar-thumb,._WH1sS:hover::-webkit-scrollbar,._WH1sS:hover::-webkit-scrollbar-thumb{visibility:visible}._WyqYo{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._WyqYo[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._WyqYo._A-52z{background-color:#efefef}._WyqYo._o0i99{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._WyqYo._-GaiJ{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._WyqYo._-GaiJ._A-52z{background-color:#e4effa}._WyqYo._o-0kR{cursor:default}._WyqYo:active:not(._ZkTOe):not(._-GaiJ):not([aria-disabled=true]):not(._o-0kR){background-color:#e8e9e9}._ZkTOe{padding-right:32px}._ZkTOe ._7ILMq{position:absolute;top:8px;right:3px;fill:#515559}._TKGUd{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}._v7zZ8{position:absolute;top:13px;left:13px}._3g8o2._3g8o2{padding-left:32px}._qEXVs{margin:2px 12px 2px 0;flex-shrink:0}._qEXVs._nDHIT>svg{border-color:#0b6ed0}._umggf{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 };
|
|
@@ -18,8 +18,8 @@ const SelectMenu = /*#__PURE__*/React__default.forwardRef(function SelectMenu(_r
|
|
|
18
18
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
19
19
|
args[_key - 1] = arguments[_key];
|
|
20
20
|
}
|
|
21
|
-
onSelectedValueChange === null || onSelectedValueChange === void 0
|
|
22
|
-
onChange === null || onChange === void 0
|
|
21
|
+
onSelectedValueChange === null || onSelectedValueChange === void 0 || onSelectedValueChange(value, ...args);
|
|
22
|
+
onChange === null || onChange === void 0 || onChange(value);
|
|
23
23
|
}
|
|
24
24
|
}, rest));
|
|
25
25
|
});
|
|
@@ -90,10 +90,10 @@ const ArrowNav = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
90
90
|
preventScroll: true
|
|
91
91
|
});
|
|
92
92
|
} else if (highlightedIndex === 0 && searchable) {
|
|
93
|
-
searchBoxRef === null || searchBoxRef === void 0
|
|
93
|
+
searchBoxRef === null || searchBoxRef === void 0 || searchBoxRef.current.focus();
|
|
94
94
|
} else {
|
|
95
95
|
var _anchorRef$current;
|
|
96
|
-
anchorRef === null || anchorRef === void 0 || (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0
|
|
96
|
+
anchorRef === null || anchorRef === void 0 || (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 || _anchorRef$current.focus();
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}, [highlightedIndex, refs, searchable, allChildren.length,
|
|
@@ -152,7 +152,7 @@ const ArrowNav = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
152
152
|
value: searchTerm,
|
|
153
153
|
ref: searchBoxRef,
|
|
154
154
|
onChange: e => {
|
|
155
|
-
setSearchTerm === null || setSearchTerm === void 0
|
|
155
|
+
setSearchTerm === null || setSearchTerm === void 0 || setSearchTerm(e.target.value);
|
|
156
156
|
},
|
|
157
157
|
onFocus: () => onHighlightedIndexChange(0)
|
|
158
158
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -219,7 +219,7 @@ const NumberStepper = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
219
219
|
} = e;
|
|
220
220
|
if (!componentHasFocus.current && currentTarget.contains(document.activeElement)) {
|
|
221
221
|
componentHasFocus.current = true;
|
|
222
|
-
onFocus === null || onFocus === void 0
|
|
222
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
225
|
onBlur: e => {
|
|
@@ -232,7 +232,7 @@ const NumberStepper = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
232
232
|
// Check if the new focused element is a child of the original container
|
|
233
233
|
if (!currentTarget.contains(document.activeElement)) {
|
|
234
234
|
componentHasFocus.current = false;
|
|
235
|
-
onBlur === null || onBlur === void 0
|
|
235
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
238
|
}
|
|
@@ -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 = "._oXYAB{display:inline-flex;width:127px}._RzAsK{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}._RzAsK:hover:not(._Gx0Po){cursor:pointer;background:#f5f5f5}._RzAsK._B5mg3{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._RzAsK._Gx0Po{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._RzAsK._Gx0Po>svg{opacity:.4}._RzAsK::-webkit-inner-spin-button,._RzAsK::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._RzAsK:focus{z-index:0;border:none;border-radius:4px}._RzAsK:focus:not(._B5mg3){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._4wylX,._RzAsK:focus:not(._Gx0Po){background:#fafafa}._4wylX{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}._4wylX:hover:not(._Gx0Po){cursor:pointer;background:#f5f5f5}._4wylX:active:not(._Gx0Po){background:#e5e5e5}._4wylX._Gx0Po{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._4wylX._Gx0Po>svg{opacity:.4}._9U6OO{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}._9U6OO:hover:not(._Gx0Po){cursor:pointer;background:#f5f5f5}._9U6OO:active:not(._Gx0Po){background:#e5e5e5}._9U6OO._Gx0Po{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._9U6OO._Gx0Po>svg{opacity:.4}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_oXYAB","numberStepperInput":"_RzAsK","disabled":"_Gx0Po","invalid":"_B5mg3","decrementBtn":"_4wylX","incrementBtn":"_9U6OO"};
|
|
5
|
+
var stylesheet="._oXYAB{display:inline-flex;width:127px}._RzAsK{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}._RzAsK:hover:not(._Gx0Po){cursor:pointer;background:#f5f5f5}._RzAsK._B5mg3{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._RzAsK._Gx0Po{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._RzAsK._Gx0Po>svg{opacity:.4}._RzAsK::-webkit-inner-spin-button,._RzAsK::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._RzAsK:focus{z-index:0;border:none;border-radius:4px}._RzAsK:focus:not(._B5mg3){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._4wylX,._RzAsK:focus:not(._Gx0Po){background:#fafafa}._4wylX{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}._4wylX:hover:not(._Gx0Po){cursor:pointer;background:#f5f5f5}._4wylX:active:not(._Gx0Po){background:#e5e5e5}._4wylX._Gx0Po{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._4wylX._Gx0Po>svg{opacity:.4}._9U6OO{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}._9U6OO:hover:not(._Gx0Po){cursor:pointer;background:#f5f5f5}._9U6OO:active:not(._Gx0Po){background:#e5e5e5}._9U6OO._Gx0Po{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._9U6OO._Gx0Po>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 };
|
|
@@ -41,7 +41,7 @@ const NumberStepperDecrement = /*#__PURE__*/React__default.forwardRef((_ref, ref
|
|
|
41
41
|
*/
|
|
42
42
|
const handleClick = e => {
|
|
43
43
|
if (!isDisabled) {
|
|
44
|
-
onClick === null || onClick === void 0
|
|
44
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
45
45
|
decrement(true);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
@@ -41,7 +41,7 @@ const NumberStepperIncrement = /*#__PURE__*/React__default.forwardRef((_ref, ref
|
|
|
41
41
|
*/
|
|
42
42
|
const handleClick = e => {
|
|
43
43
|
if (!isDisabled) {
|
|
44
|
-
onClick === null || onClick === void 0
|
|
44
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
45
45
|
increment(true);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
@@ -55,7 +55,7 @@ const NumberStepperInput = /*#__PURE__*/React__default.forwardRef((_ref, ref) =>
|
|
|
55
55
|
* depending on the key that was pressed.
|
|
56
56
|
*/
|
|
57
57
|
const handleKeyDown = e => {
|
|
58
|
-
onKeyDown === null || onKeyDown === void 0
|
|
58
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
59
59
|
if (isExternallyDisabled) return;
|
|
60
60
|
if (e.key === 'ArrowUp') {
|
|
61
61
|
// Prevents browser's default increment
|
|
@@ -90,7 +90,7 @@ const NumberStepperInput = /*#__PURE__*/React__default.forwardRef((_ref, ref) =>
|
|
|
90
90
|
* Selects the DOM element
|
|
91
91
|
*/
|
|
92
92
|
const handleFocus = e => {
|
|
93
|
-
onFocus === null || onFocus === void 0
|
|
93
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
94
94
|
if (isExternallyDisabled) return;
|
|
95
95
|
e.target.select();
|
|
96
96
|
};
|
|
@@ -100,7 +100,7 @@ const NumberStepperInput = /*#__PURE__*/React__default.forwardRef((_ref, ref) =>
|
|
|
100
100
|
* Calls `handleInputBlur`
|
|
101
101
|
*/
|
|
102
102
|
const handleBlur = e => {
|
|
103
|
-
onBlur === null || onBlur === void 0
|
|
103
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
104
104
|
if (isExternallyDisabled) return;
|
|
105
105
|
handleInputBlur(e);
|
|
106
106
|
};
|
|
@@ -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 = "._Ert6C{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\"}._TRr47{grid-area:pageHeader}._OkSxq{grid-area:mainContent;height:100%;overflow:auto}";
|
|
4
|
+
var styles = {"pageContainer":"_Ert6C","pageHeader":"_TRr47","mainContent":"_OkSxq"};
|
|
5
|
+
var stylesheet="._Ert6C{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\"}._TRr47{grid-area:pageHeader}._OkSxq{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 };
|
|
@@ -58,7 +58,7 @@ const Pagination = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
58
58
|
* @param {Number} newPage - The value entered into the input
|
|
59
59
|
*/
|
|
60
60
|
const handlePageChange = useCallback(newPage => {
|
|
61
|
-
onPageChange === null || onPageChange === void 0
|
|
61
|
+
onPageChange === null || onPageChange === void 0 || onPageChange({
|
|
62
62
|
page: newPage
|
|
63
63
|
});
|
|
64
64
|
}, [onPageChange]);
|
|
@@ -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 = "._FcddH{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._8Wy8u{margin-right:8px}._8Kl7U{margin-left:8px}._-w4f3{margin:-10px -15px}._Zj2lO{width:100%;text-align:center}";
|
|
4
|
+
var styles = {"pagination":"_FcddH","previousButton":"_8Wy8u","nextButton":"_8Kl7U","btnIcon":"_-w4f3","input":"_Zj2lO"};
|
|
5
|
+
var stylesheet="._FcddH{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._8Wy8u{margin-right:8px}._8Kl7U{margin-left:8px}._-w4f3{margin:-10px -15px}._Zj2lO{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 };
|
|
@@ -43,15 +43,15 @@ const PaginationNextButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
43
43
|
*/
|
|
44
44
|
const increment = () => {
|
|
45
45
|
const newPage = pageInputValue + 1;
|
|
46
|
-
setPageInputValue === null || setPageInputValue === void 0
|
|
47
|
-
handlePageChange === null || handlePageChange === void 0
|
|
46
|
+
setPageInputValue === null || setPageInputValue === void 0 || setPageInputValue(newPage);
|
|
47
|
+
handlePageChange === null || handlePageChange === void 0 || handlePageChange(newPage);
|
|
48
48
|
};
|
|
49
49
|
return /*#__PURE__*/React__default.createElement(Button, _extends({}, rest, {
|
|
50
50
|
disabled: disabled !== null && disabled !== void 0 ? disabled : pageInputValue === numPages,
|
|
51
51
|
ref: ref,
|
|
52
52
|
kind: "tertiary",
|
|
53
53
|
onClick: e => {
|
|
54
|
-
onClick === null || onClick === void 0
|
|
54
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
55
55
|
increment();
|
|
56
56
|
},
|
|
57
57
|
className: classNames(className, styles.nextButton),
|
|
@@ -58,7 +58,7 @@ const PaginationPageInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
58
58
|
*/
|
|
59
59
|
const handleBlur = () => {
|
|
60
60
|
if (pageInputValue !== currentPage && currentPage !== undefined) {
|
|
61
|
-
setPageInputValue === null || setPageInputValue === void 0
|
|
61
|
+
setPageInputValue === null || setPageInputValue === void 0 || setPageInputValue(currentPage);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
|
|
@@ -69,11 +69,11 @@ const PaginationPageInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
69
69
|
*/
|
|
70
70
|
const handleInputChange = newValue => {
|
|
71
71
|
if (newValue === '' || !Number.isInteger(Number(newValue))) {
|
|
72
|
-
setPageInputValue === null || setPageInputValue === void 0
|
|
72
|
+
setPageInputValue === null || setPageInputValue === void 0 || setPageInputValue(newValue);
|
|
73
73
|
} else {
|
|
74
74
|
const newPage = Math.min(Math.max(1, newValue), numPages || Number.MAX_SAFE_INTEGER);
|
|
75
|
-
setPageInputValue === null || setPageInputValue === void 0
|
|
76
|
-
handlePageChange === null || handlePageChange === void 0
|
|
75
|
+
setPageInputValue === null || setPageInputValue === void 0 || setPageInputValue(newPage);
|
|
76
|
+
handlePageChange === null || handlePageChange === void 0 || handlePageChange(newPage);
|
|
77
77
|
}
|
|
78
78
|
};
|
|
79
79
|
|
|
@@ -82,7 +82,7 @@ const PaginationPageInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
82
82
|
*/
|
|
83
83
|
const handleFocus = () => {
|
|
84
84
|
var _inputRef$current;
|
|
85
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0
|
|
85
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.select();
|
|
86
86
|
};
|
|
87
87
|
return /*#__PURE__*/React__default.createElement(Translate, {
|
|
88
88
|
messageKey: "pagination",
|
|
@@ -100,15 +100,15 @@ const PaginationPageInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
100
100
|
max: numPages,
|
|
101
101
|
value: pageInputValue,
|
|
102
102
|
onChange: e => {
|
|
103
|
-
onChange === null || onChange === void 0
|
|
103
|
+
onChange === null || onChange === void 0 || onChange(e);
|
|
104
104
|
handleInputChange(e.target.value);
|
|
105
105
|
},
|
|
106
106
|
onBlur: e => {
|
|
107
|
-
onBlur === null || onBlur === void 0
|
|
107
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
108
108
|
handleBlur();
|
|
109
109
|
},
|
|
110
110
|
onFocus: e => {
|
|
111
|
-
onFocus === null || onFocus === void 0
|
|
111
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
112
112
|
handleFocus();
|
|
113
113
|
},
|
|
114
114
|
style: {
|
|
@@ -42,15 +42,15 @@ const PaginationPreviousButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
42
42
|
*/
|
|
43
43
|
const decrement = () => {
|
|
44
44
|
const newPage = pageInputValue - 1;
|
|
45
|
-
setPageInputValue === null || setPageInputValue === void 0
|
|
46
|
-
handlePageChange === null || handlePageChange === void 0
|
|
45
|
+
setPageInputValue === null || setPageInputValue === void 0 || setPageInputValue(newPage);
|
|
46
|
+
handlePageChange === null || handlePageChange === void 0 || handlePageChange(newPage);
|
|
47
47
|
};
|
|
48
48
|
return /*#__PURE__*/React__default.createElement(Button, _extends({}, rest, {
|
|
49
49
|
disabled: disabled !== null && disabled !== void 0 ? disabled : pageInputValue === 1,
|
|
50
50
|
ref: ref,
|
|
51
51
|
kind: "tertiary",
|
|
52
52
|
onClick: e => {
|
|
53
|
-
onClick === null || onClick === void 0
|
|
53
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
54
54
|
decrement();
|
|
55
55
|
},
|
|
56
56
|
className: classNames(className, styles.previousButton),
|
|
@@ -49,22 +49,22 @@ const Popover = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
49
49
|
if (!show && isInDOM) {
|
|
50
50
|
var _anchorRef$current;
|
|
51
51
|
// Prevents scroll so that the page does not scroll to the anchor element if the anchor element is out of view
|
|
52
|
-
(_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0
|
|
52
|
+
(_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 || _anchorRef$current.focus({
|
|
53
53
|
preventScroll: true
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
setIsInDOM(show);
|
|
57
57
|
}, [show, isInDOM]);
|
|
58
58
|
const handlePopoverContainerClick = e => {
|
|
59
|
-
onClick === null || onClick === void 0
|
|
59
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
60
60
|
};
|
|
61
61
|
const handlePopoverContainerKeyDown = e => {
|
|
62
62
|
if (e.key === 'Escape') {
|
|
63
63
|
e.stopPropagation(); // Prevent event from closing modals or popovers
|
|
64
64
|
e.preventDefault(); // Prevent Safari from exiting full-screen mode
|
|
65
|
-
onClose === null || onClose === void 0
|
|
65
|
+
onClose === null || onClose === void 0 || onClose(e);
|
|
66
66
|
}
|
|
67
|
-
onKeyDown === null || onKeyDown === void 0
|
|
67
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
68
68
|
};
|
|
69
69
|
return /*#__PURE__*/React__default.createElement(Popper, {
|
|
70
70
|
open: show,
|
|
@@ -85,7 +85,7 @@ const Popover = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
85
85
|
*/
|
|
86
86
|
e.preventDefault();
|
|
87
87
|
preventClickOutside();
|
|
88
|
-
(_children$props$onMou = (_children$props = children.props).onMouseDown) === null || _children$props$onMou === void 0
|
|
88
|
+
(_children$props$onMou = (_children$props = children.props).onMouseDown) === null || _children$props$onMou === void 0 || _children$props$onMou.call(_children$props, e);
|
|
89
89
|
},
|
|
90
90
|
ref: mergeRefs(anchorRef, children === null || children === void 0 ? void 0 : children.ref)
|
|
91
91
|
}),
|
|
@@ -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 = "._UUIC2{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}._UUIC2:focus{outline:none}._AQpNC,._AQpNC>div{position:absolute;width:8px;height:8px;background:inherit}._AQpNC{visibility:hidden;z-index:1000}._AQpNC>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._AQpNC{bottom:-4px}[data-popper-placement^=top]>._AQpNC>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._AQpNC{left:-5px}[data-popper-placement^=right]>._AQpNC>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._AQpNC{top:-5px}[data-popper-placement^=bottom]>._AQpNC>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._AQpNC{right:-4px}[data-popper-placement^=left]>._AQpNC>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
4
|
+
var styles = {"popover":"_UUIC2","arrow":"_AQpNC"};
|
|
5
|
+
var stylesheet="._UUIC2{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}._UUIC2:focus{outline:none}._AQpNC,._AQpNC>div{position:absolute;width:8px;height:8px;background:inherit}._AQpNC{visibility:hidden;z-index:1000}._AQpNC>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._AQpNC{bottom:-4px}[data-popper-placement^=top]>._AQpNC>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._AQpNC{left:-5px}[data-popper-placement^=right]>._AQpNC>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._AQpNC{top:-5px}[data-popper-placement^=bottom]>._AQpNC>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._AQpNC{right:-4px}[data-popper-placement^=left]>._AQpNC>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 = "._x2GT-{display:flex;height:32px}";
|
|
4
|
+
var styles = {"loadingSpinner":"_x2GT-"};
|
|
5
|
+
var stylesheet="._x2GT-{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 };
|
|
@@ -44,11 +44,11 @@ const QuickSearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
44
44
|
if (!open) {
|
|
45
45
|
setIsLoading(true);
|
|
46
46
|
}
|
|
47
|
-
setIsOpen === null || setIsOpen === void 0
|
|
47
|
+
setIsOpen === null || setIsOpen === void 0 || setIsOpen(true);
|
|
48
48
|
};
|
|
49
49
|
const closeMenu = useCallback(() => {
|
|
50
50
|
setItems([]);
|
|
51
|
-
internalCloseMenu === null || internalCloseMenu === void 0
|
|
51
|
+
internalCloseMenu === null || internalCloseMenu === void 0 || internalCloseMenu();
|
|
52
52
|
setIsLoading(true);
|
|
53
53
|
}, [setItems, internalCloseMenu, setIsLoading]);
|
|
54
54
|
const onSearchRef = useLatest(onSearch);
|
|
@@ -78,14 +78,14 @@ const QuickSearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
78
78
|
if (e.key === 'Enter' || e.key === 'ArrowDown') {
|
|
79
79
|
e.preventDefault(); // prevent scroll
|
|
80
80
|
openMenu();
|
|
81
|
-
setHighlightedIndex === null || setHighlightedIndex === void 0
|
|
81
|
+
setHighlightedIndex === null || setHighlightedIndex === void 0 || setHighlightedIndex(0);
|
|
82
82
|
if (!open) {
|
|
83
83
|
handleSearch(value);
|
|
84
84
|
}
|
|
85
85
|
} else if (e.key === 'ArrowUp') {
|
|
86
86
|
e.preventDefault(); // prevent scroll
|
|
87
87
|
openMenu();
|
|
88
|
-
setHighlightedIndex === null || setHighlightedIndex === void 0
|
|
88
|
+
setHighlightedIndex === null || setHighlightedIndex === void 0 || setHighlightedIndex(items.length - 1);
|
|
89
89
|
if (!open) {
|
|
90
90
|
handleSearch(value);
|
|
91
91
|
}
|
|
@@ -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 = "._W7aGh{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._E23im,._W7aGh{cursor:pointer;height:16px;width:16px}._E23im{position:absolute;opacity:0;z-index:10}._E23im:checked~._xL6Gv>._uGiCQ{fill-opacity:1}._E23im:checked:enabled~._xL6Gv{border-color:transparent;background-color:#0b6ed0}._E23im:checked:enabled~._xL6Gv>._uGiCQ{fill:#fff}._E23im:checked:enabled:hover~._xL6Gv{background-color:#085caf}._E23im:not(:checked):enabled:hover~._xL6Gv{border-color:#0b6ed0}._E23im:disabled{cursor:not-allowed}._E23im:disabled~._xL6Gv{opacity:.4}._E23im:checked~._xL6Gv:after{content:\"\"}._3z0bn{color:#32363a;display:flex;align-items:center;cursor:pointer}._IdM1p{cursor:auto;color:hsla(0,0%,53.7%,.4)}._baM6i{margin-right:12px;flex-shrink:0}._xL6Gv{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;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}._uGiCQ{fill:#0b6ed0;fill-opacity:0}._xL6Gv:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._-LKnI{border:none;padding:0;margin:0}._l8wxI{padding:0;margin:0 0 14px;color:#01213f}._E23im.focus-visible~._xL6Gv,._E23im:focus-visible~._xL6Gv{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"radio":"_W7aGh","input":"_E23im","check":"_xL6Gv","checkIcon":"_uGiCQ","label":"_3z0bn","labelDisabled":"_IdM1p","wrappedInput":"_baM6i","radioGroup":"_-LKnI","legend":"_l8wxI"};
|
|
5
|
+
var stylesheet="._W7aGh{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._E23im,._W7aGh{cursor:pointer;height:16px;width:16px}._E23im{position:absolute;opacity:0;z-index:10}._E23im:checked~._xL6Gv>._uGiCQ{fill-opacity:1}._E23im:checked:enabled~._xL6Gv{border-color:transparent;background-color:#0b6ed0}._E23im:checked:enabled~._xL6Gv>._uGiCQ{fill:#fff}._E23im:checked:enabled:hover~._xL6Gv{background-color:#085caf}._E23im:not(:checked):enabled:hover~._xL6Gv{border-color:#0b6ed0}._E23im:disabled{cursor:not-allowed}._E23im:disabled~._xL6Gv{opacity:.4}._E23im:checked~._xL6Gv:after{content:\"\"}._3z0bn{color:#32363a;display:flex;align-items:center;cursor:pointer}._IdM1p{cursor:auto;color:hsla(0,0%,53.7%,.4)}._baM6i{margin-right:12px;flex-shrink:0}._xL6Gv{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;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}._uGiCQ{fill:#0b6ed0;fill-opacity:0}._xL6Gv:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._-LKnI{border:none;padding:0;margin:0}._l8wxI{padding:0;margin:0 0 14px;color:#01213f}._E23im.focus-visible~._xL6Gv,._E23im:focus-visible~._xL6Gv{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 };
|
|
@@ -45,7 +45,7 @@ const SearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
45
45
|
useEffect(() => {
|
|
46
46
|
if (wasInputValueCleared) {
|
|
47
47
|
var _inputRef$current;
|
|
48
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0
|
|
48
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
49
49
|
setWasInputValueCleared(false);
|
|
50
50
|
}
|
|
51
51
|
}, [wasInputValueCleared]);
|
|
@@ -65,7 +65,7 @@ const SearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
65
65
|
|
|
66
66
|
clearInputText();
|
|
67
67
|
}
|
|
68
|
-
onKeyDown === null || onKeyDown === void 0
|
|
68
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
69
69
|
};
|
|
70
70
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
71
71
|
className: classNames(styles.searchInput, className),
|