@qualtrics/ui-react 2.20.0 → 2.22.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 +17 -33
- package/dist/__shared/cjs/{index-90d4069b.js → index-025620bf.js} +718 -673
- package/dist/__shared/cjs/{index-579c4690.js → index-41a013d2.js} +4 -4
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +4 -4
- package/dist/components/Accordion/AccordionPanel.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +11 -11
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +12 -16
- package/dist/components/ColorPicker/ColorPicker.js +15 -9
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +9 -4
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +8 -6
- package/dist/components/ColorPicker/Hue.js +3 -9
- package/dist/components/ColorPicker/Palette.js +13 -9
- package/dist/components/ColorPicker/Saturation.js +9 -17
- package/dist/components/ColorPicker/utils/hexToRgbaString.js +3 -2
- package/dist/components/ColorPicker/utils/rgbToHex.js +1 -1
- package/dist/components/ColorPicker/utils/validateHex.js +10 -9
- package/dist/components/Combobox/Combobox.js +54 -31
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxHeader.js +1 -1
- package/dist/components/Combobox/ComboboxIcon.js +3 -2
- package/dist/components/Combobox/ComboboxInput.js +4 -4
- package/dist/components/Combobox/ComboboxList.js +2 -2
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +5 -2
- package/dist/components/Dropdown/Dropdown.js +14 -14
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +23 -19
- package/dist/components/Dropdown/DropdownList.js +4 -4
- package/dist/components/Dropdown/DropdownOption.js +5 -7
- package/dist/components/Dropdown/DropdownSearch.js +12 -9
- package/dist/components/FilePicker/FilePicker.js +13 -13
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField.js +2 -2
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +5 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +12 -9
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input.js +1 -1
- 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/LoadingSpinner.js +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionSet.js +5 -5
- package/dist/components/LogicEditor/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/utils.js +2 -1
- package/dist/components/Modal/Modal.js +14 -13
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +41 -30
- 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 +19 -15
- package/dist/components/NewMenu/parts/MenuItem.js +1 -1
- package/dist/components/NumberStepper/NumberStepper.js +7 -6
- 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 +5 -5
- package/dist/components/Pagination/PaginationPageInput.js +11 -9
- package/dist/components/Pagination/PaginationPreviousButton.js +5 -5
- package/dist/components/Popover/Popover.js +9 -7
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +4 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio.js +12 -11
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +4 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +2 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/SidebarNav/SidebarNavLink.js +1 -1
- package/dist/components/Slider/RangeSlider.js +2 -2
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Slider/SliderButton.js +1 -1
- package/dist/components/Switch/Switch.js +11 -11
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Tabs/TabList.js +6 -5
- package/dist/components/Tabs/TabPanel.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +15 -7
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/UIProvider.js +2 -2
- package/dist/components/deprecated_ColorPicker/Alpha.js +4 -4
- package/dist/components/deprecated_ColorPicker/Color.js +6 -6
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +2 -2
- 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 +3 -3
- package/dist/components/deprecated_ColorPicker/Saturation.js +5 -5
- package/dist/components/deprecated_ColorPicker/Swatch.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +8 -8
- package/dist/components/deprecated_Tabs/Tabs.js +11 -7
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +4 -29
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +8 -8
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +6 -3
- package/dist/hooks/useBreakpoints/useBreakpoints.js +1 -1
- package/dist/hooks/useClickOutside/useClickOutside.js +2 -1
- package/dist/hooks/useControllableState/useControllableState.js +2 -1
- package/dist/hooks/useEventListener/useEventListener.js +4 -1
- package/dist/hooks/useId/useId.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +11 -6
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useResponsiveValue/useResponsiveValue.js +2 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +4 -2
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/createIconComponent.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +17 -8
- package/dist/index.es.js +1 -7
- package/dist/index.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTable.js +86 -87
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +6 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +18 -10
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +7 -6
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +5 -4
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +3 -2
- package/dist/next/AdvancedTable/useComputedWidth.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +6 -5
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +1 -1
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxFlyout.js +2 -2
- package/dist/next/Combobox/ComboboxGroup.js +1 -1
- package/dist/next/Combobox/ComboboxInput.js +2 -2
- package/dist/next/Combobox/ComboboxOption.js +1 -1
- package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +1 -1
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +12 -8
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +1 -1
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +3 -2
- package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +2 -1
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +2 -1
- package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +1 -1
- package/dist/next/Drawer/Drawer.js +7 -4
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input.js +2 -2
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu.js +11 -5
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +19 -11
- package/dist/next/Menu/MenuPane.js +70 -40
- package/dist/next/Menu/MenuSearch.js +16 -71
- package/dist/next/Menu/SubMenu.js +63 -46
- package/dist/next/Menu/constants.js +5 -1
- package/dist/next/Menu/useMutationObserver.js +17 -0
- package/dist/next/Menu/usePaneSearch.js +109 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +7 -6
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +8 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimeDropdown.js +4 -4
- package/dist/next/TimePicker/TimeInput.js +2 -2
- package/dist/next/TimePicker/TimePicker.js +4 -4
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +2 -1
- package/dist/next/TimePicker/utils.js +10 -9
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +2 -1
- package/dist/next/index.js +601 -432
- package/dist/utils/Flyout/Flyout.js +1 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +9 -5
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +2 -1
- package/dist/utils/Translation/useTranslation.js +4 -5
- package/dist/utils/filterChildren/filterChildren.js +2 -1
- package/dist/utils/getSubDataTestId/getSubDataTestId.js +1 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/mergeRefs/mergeRefs.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +2 -2
- package/icons/package.json +1 -0
- package/next/package.json +2 -1
- package/package.json +4 -4
- package/dist/utils/keyboardUser/index.js +0 -1
- package/dist/utils/keyboardUser/keyboardUser.js +0 -30
|
@@ -47,7 +47,8 @@ const PaginationPageInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
47
47
|
* Computes the width of the input based on the number of characters entered
|
|
48
48
|
*/
|
|
49
49
|
const inputWidth = useMemo(() => {
|
|
50
|
-
|
|
50
|
+
var _currentPage$toString;
|
|
51
|
+
const numDigits = (_currentPage$toString = currentPage === null || currentPage === void 0 ? void 0 : currentPage.toString().length) !== null && _currentPage$toString !== void 0 ? _currentPage$toString : 0;
|
|
51
52
|
const minWidth = 36;
|
|
52
53
|
return numDigits > 2 ? 9 * (numDigits - 2) + minWidth : minWidth;
|
|
53
54
|
}, [currentPage]);
|
|
@@ -57,7 +58,7 @@ const PaginationPageInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
57
58
|
*/
|
|
58
59
|
const handleBlur = () => {
|
|
59
60
|
if (pageInputValue !== currentPage && currentPage !== undefined) {
|
|
60
|
-
setPageInputValue
|
|
61
|
+
setPageInputValue === null || setPageInputValue === void 0 ? void 0 : setPageInputValue(currentPage);
|
|
61
62
|
}
|
|
62
63
|
};
|
|
63
64
|
|
|
@@ -68,11 +69,11 @@ const PaginationPageInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
68
69
|
*/
|
|
69
70
|
const handleInputChange = newValue => {
|
|
70
71
|
if (newValue === '' || !Number.isInteger(Number(newValue))) {
|
|
71
|
-
setPageInputValue
|
|
72
|
+
setPageInputValue === null || setPageInputValue === void 0 ? void 0 : setPageInputValue(newValue);
|
|
72
73
|
} else {
|
|
73
74
|
const newPage = Math.min(Math.max(1, newValue), numPages || Number.MAX_SAFE_INTEGER);
|
|
74
|
-
setPageInputValue
|
|
75
|
-
handlePageChange
|
|
75
|
+
setPageInputValue === null || setPageInputValue === void 0 ? void 0 : setPageInputValue(newPage);
|
|
76
|
+
handlePageChange === null || handlePageChange === void 0 ? void 0 : handlePageChange(newPage);
|
|
76
77
|
}
|
|
77
78
|
};
|
|
78
79
|
|
|
@@ -80,7 +81,8 @@ const PaginationPageInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
80
81
|
* If there is a ref to the input, selects all text within the input
|
|
81
82
|
*/
|
|
82
83
|
const handleFocus = () => {
|
|
83
|
-
|
|
84
|
+
var _inputRef$current;
|
|
85
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.select();
|
|
84
86
|
};
|
|
85
87
|
return /*#__PURE__*/React__default.createElement(Translate, {
|
|
86
88
|
messageKey: "pagination",
|
|
@@ -98,15 +100,15 @@ const PaginationPageInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
98
100
|
max: numPages,
|
|
99
101
|
value: pageInputValue,
|
|
100
102
|
onChange: e => {
|
|
101
|
-
onChange
|
|
103
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(e);
|
|
102
104
|
handleInputChange(e.target.value);
|
|
103
105
|
},
|
|
104
106
|
onBlur: e => {
|
|
105
|
-
onBlur
|
|
107
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
106
108
|
handleBlur();
|
|
107
109
|
},
|
|
108
110
|
onFocus: e => {
|
|
109
|
-
onFocus
|
|
111
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
|
|
110
112
|
handleFocus();
|
|
111
113
|
},
|
|
112
114
|
style: {
|
|
@@ -42,19 +42,19 @@ const PaginationPreviousButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
42
42
|
*/
|
|
43
43
|
const decrement = () => {
|
|
44
44
|
const newPage = pageInputValue - 1;
|
|
45
|
-
setPageInputValue
|
|
46
|
-
handlePageChange
|
|
45
|
+
setPageInputValue === null || setPageInputValue === void 0 ? void 0 : setPageInputValue(newPage);
|
|
46
|
+
handlePageChange === null || handlePageChange === void 0 ? void 0 : handlePageChange(newPage);
|
|
47
47
|
};
|
|
48
48
|
return /*#__PURE__*/React__default.createElement(Button, _extends({}, rest, {
|
|
49
|
-
disabled: disabled
|
|
49
|
+
disabled: disabled !== null && disabled !== void 0 ? disabled : pageInputValue === 1,
|
|
50
50
|
ref: ref,
|
|
51
51
|
kind: "tertiary",
|
|
52
52
|
onClick: e => {
|
|
53
|
-
onClick
|
|
53
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
54
54
|
decrement();
|
|
55
55
|
},
|
|
56
56
|
className: classNames(className, styles.previousButton),
|
|
57
|
-
"data-testid": dataTestIdFromProps
|
|
57
|
+
"data-testid": dataTestIdFromProps !== null && dataTestIdFromProps !== void 0 ? dataTestIdFromProps : getSubDataTestId(dataTestId, 'PreviousButton'),
|
|
58
58
|
"aria-label": buttonLabel
|
|
59
59
|
}), /*#__PURE__*/React__default.createElement(ChevronLeftIcon, {
|
|
60
60
|
className: styles.btnIcon,
|
|
@@ -30,7 +30,7 @@ const Popover = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
30
30
|
const classes = classNames(styles.popover, className);
|
|
31
31
|
const anchorRef = useRef();
|
|
32
32
|
const popperRef = useRef(null);
|
|
33
|
-
const preventClickOutside = useClickOutsidePortals(e => show && onClickOutside
|
|
33
|
+
const preventClickOutside = useClickOutsidePortals(e => show && (onClickOutside === null || onClickOutside === void 0 ? void 0 : onClickOutside(e)));
|
|
34
34
|
const [isInDOM, setIsInDOM] = useState(false);
|
|
35
35
|
const popoverId = useId(externalId);
|
|
36
36
|
|
|
@@ -47,22 +47,23 @@ const Popover = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
47
47
|
* 2. A user in Safari clicks on 1 or more `Popover` anchor elements and then presses the `Escape` key. This is because buttons aren't focused on `click` or `mousedown` in Safari by default.
|
|
48
48
|
*/
|
|
49
49
|
if (!show && isInDOM) {
|
|
50
|
+
var _anchorRef$current;
|
|
50
51
|
// Prevents scroll so that the page does not scroll to the anchor element if the anchor element is out of view
|
|
51
|
-
anchorRef.current
|
|
52
|
+
(_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 ? void 0 : _anchorRef$current.focus({
|
|
52
53
|
preventScroll: true
|
|
53
54
|
});
|
|
54
55
|
}
|
|
55
56
|
setIsInDOM(show);
|
|
56
57
|
}, [show, isInDOM]);
|
|
57
58
|
const handlePopoverContainerClick = e => {
|
|
58
|
-
onClick
|
|
59
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
59
60
|
};
|
|
60
61
|
const handlePopoverContainerKeyDown = e => {
|
|
61
62
|
if (e.key === 'Escape') {
|
|
62
63
|
e.stopPropagation(); // prevent event from closing modals or popovers
|
|
63
|
-
onClose
|
|
64
|
+
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
|
64
65
|
}
|
|
65
|
-
onKeyDown
|
|
66
|
+
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
|
|
66
67
|
};
|
|
67
68
|
return /*#__PURE__*/React__default.createElement(Popper, {
|
|
68
69
|
open: show,
|
|
@@ -75,6 +76,7 @@ const Popover = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
75
76
|
'aria-expanded': show,
|
|
76
77
|
'aria-controls': show ? popoverId : undefined,
|
|
77
78
|
onMouseDown: e => {
|
|
79
|
+
var _children$props$onMou, _children$props;
|
|
78
80
|
/*
|
|
79
81
|
* Prevents the anchor element from getting focus (only in some browsers).
|
|
80
82
|
* If a Popover is open and out of view, and another button is clicked, this prevents the browser from scrolling to the open Popover.
|
|
@@ -82,9 +84,9 @@ const Popover = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
82
84
|
*/
|
|
83
85
|
e.preventDefault();
|
|
84
86
|
preventClickOutside();
|
|
85
|
-
children.props.onMouseDown
|
|
87
|
+
(_children$props$onMou = (_children$props = children.props).onMouseDown) === null || _children$props$onMou === void 0 ? void 0 : _children$props$onMou.call(_children$props, e);
|
|
86
88
|
},
|
|
87
|
-
ref: mergeRefs(anchorRef, children
|
|
89
|
+
ref: mergeRefs(anchorRef, children === null || children === void 0 ? void 0 : children.ref)
|
|
88
90
|
}),
|
|
89
91
|
popper: /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
90
92
|
ref: mergeRefs(ref, popperRef),
|
|
@@ -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 = "._tG9Z6{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}._tG9Z6:focus{outline:none}._309Re,._309Re>div{position:absolute;width:8px;height:8px;background:inherit}._309Re{visibility:hidden;z-index:1000}._309Re>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._309Re{bottom:-4px}[data-popper-placement^=top]>._309Re>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._309Re{left:-5px}[data-popper-placement^=right]>._309Re>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._309Re{top:-5px}[data-popper-placement^=bottom]>._309Re>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._309Re{right:-4px}[data-popper-placement^=left]>._309Re>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
4
|
+
var styles = {"popover":"_tG9Z6","arrow":"_309Re"};
|
|
5
|
+
var stylesheet="._tG9Z6{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}._tG9Z6:focus{outline:none}._309Re,._309Re>div{position:absolute;width:8px;height:8px;background:inherit}._309Re{visibility:hidden;z-index:1000}._309Re>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._309Re{bottom:-4px}[data-popper-placement^=top]>._309Re>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._309Re{left:-5px}[data-popper-placement^=right]>._309Re>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._309Re{top:-5px}[data-popper-placement^=bottom]>._309Re>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._309Re{right:-4px}[data-popper-placement^=left]>._309Re>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -12,6 +12,7 @@ import LoadingSpinner from '../LoadingSpinner/LoadingSpinner.js';
|
|
|
12
12
|
import MenuItem from '../NewMenu/parts/MenuItem.js';
|
|
13
13
|
|
|
14
14
|
const QuickSearch = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
15
|
+
var _anchorRef$current;
|
|
15
16
|
let {
|
|
16
17
|
maxHeight: externalMaxHeight,
|
|
17
18
|
menuProps,
|
|
@@ -27,7 +28,7 @@ const QuickSearch = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
27
28
|
const [items, setItems] = useState([]);
|
|
28
29
|
const maxHeight = items.length > 10 ? 500 : undefined;
|
|
29
30
|
const anchorRef = useRef(null);
|
|
30
|
-
const anchorWidth = anchorRef
|
|
31
|
+
const anchorWidth = anchorRef === null || anchorRef === void 0 ? void 0 : (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 ? void 0 : _anchorRef$current.clientWidth;
|
|
31
32
|
const {
|
|
32
33
|
translate
|
|
33
34
|
} = useTranslation();
|
|
@@ -40,7 +41,7 @@ const QuickSearch = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
40
41
|
portalTarget: portalTarget,
|
|
41
42
|
zIndex: zIndex,
|
|
42
43
|
anchor: /*#__PURE__*/React__default.createElement(QuickSearchInput, _extends({}, rest, {
|
|
43
|
-
role: role
|
|
44
|
+
role: role !== null && role !== void 0 ? role : 'searchbox',
|
|
44
45
|
ref: mergeRefs(ref, anchorRef),
|
|
45
46
|
setIsLoading: setIsLoading,
|
|
46
47
|
items: items,
|
|
@@ -57,7 +58,7 @@ const QuickSearch = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
57
58
|
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
58
59
|
key: index,
|
|
59
60
|
value: value,
|
|
60
|
-
onSelect: () => onSelect
|
|
61
|
+
onSelect: () => onSelect === null || onSelect === void 0 ? void 0 : onSelect(item)
|
|
61
62
|
}, label);
|
|
62
63
|
}));
|
|
63
64
|
});
|
|
@@ -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 = "._NqJ-J{display:flex;height:32px}";
|
|
4
|
+
var styles = {"loadingSpinner":"_NqJ-J"};
|
|
5
|
+
var stylesheet="._NqJ-J{display:flex;height:32px}";
|
|
6
6
|
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
|
|
47
|
+
setIsOpen === null || setIsOpen === void 0 ? void 0 : setIsOpen(true);
|
|
48
48
|
};
|
|
49
49
|
const closeMenu = useCallback(() => {
|
|
50
50
|
setItems([]);
|
|
51
|
-
internalCloseMenu
|
|
51
|
+
internalCloseMenu === null || internalCloseMenu === void 0 ? 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
|
|
81
|
+
setHighlightedIndex === null || setHighlightedIndex === void 0 ? 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
|
|
88
|
+
setHighlightedIndex === null || setHighlightedIndex === void 0 ? void 0 : setHighlightedIndex(items.length - 1);
|
|
89
89
|
if (!open) {
|
|
90
90
|
handleSearch(value);
|
|
91
91
|
}
|
|
@@ -8,6 +8,7 @@ import '../../utils/index.js';
|
|
|
8
8
|
import concatIds from '../../utils/concatIds/concatIds.js';
|
|
9
9
|
|
|
10
10
|
const Radio = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
11
|
+
var _ref2;
|
|
11
12
|
let {
|
|
12
13
|
id,
|
|
13
14
|
className,
|
|
@@ -32,25 +33,25 @@ const Radio = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
32
33
|
helperTextId: formFieldHelperTextId,
|
|
33
34
|
errorTextId: formFieldErrorTextId
|
|
34
35
|
} = useFormFieldContext();
|
|
35
|
-
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId, inputProps
|
|
36
|
-
const checked = groupValue !== undefined ? value === groupValue : radioChecked
|
|
37
|
-
const defaultChecked = groupDefaultValue !== undefined ? value === groupDefaultValue : radioDefaultChecked
|
|
38
|
-
const onChange = radioGroupOnChange
|
|
36
|
+
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId, inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-describedby']);
|
|
37
|
+
const checked = groupValue !== undefined ? value === groupValue : radioChecked !== null && radioChecked !== void 0 ? radioChecked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked;
|
|
38
|
+
const defaultChecked = groupDefaultValue !== undefined ? value === groupDefaultValue : radioDefaultChecked !== null && radioDefaultChecked !== void 0 ? radioDefaultChecked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.defaultChecked;
|
|
39
|
+
const onChange = (_ref2 = radioGroupOnChange !== null && radioGroupOnChange !== void 0 ? radioGroupOnChange : radioOnChange) !== null && _ref2 !== void 0 ? _ref2 : inputProps === null || inputProps === void 0 ? void 0 : inputProps.onChange;
|
|
39
40
|
return /*#__PURE__*/React__default.createElement("span", _extends({}, rest, {
|
|
40
41
|
ref: ref,
|
|
41
42
|
className: classNames(className, styles.radio)
|
|
42
43
|
}), /*#__PURE__*/React__default.createElement("input", _extends({}, inputProps, {
|
|
43
|
-
className: classNames(styles.input, inputProps
|
|
44
|
+
className: classNames(styles.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className),
|
|
44
45
|
type: "radio",
|
|
45
|
-
id: id
|
|
46
|
+
id: id !== null && id !== void 0 ? id : inputProps === null || inputProps === void 0 ? void 0 : inputProps.id,
|
|
46
47
|
checked: checked,
|
|
47
48
|
defaultChecked: defaultChecked,
|
|
48
|
-
disabled: disabled
|
|
49
|
-
name: name
|
|
50
|
-
value: value
|
|
49
|
+
disabled: disabled !== null && disabled !== void 0 ? disabled : inputProps === null || inputProps === void 0 ? void 0 : inputProps.disabled,
|
|
50
|
+
name: name !== null && name !== void 0 ? name : inputProps === null || inputProps === void 0 ? void 0 : inputProps.name,
|
|
51
|
+
value: value !== null && value !== void 0 ? value : inputProps === null || inputProps === void 0 ? void 0 : inputProps.value,
|
|
51
52
|
onChange: disabled ? undefined : onChange,
|
|
52
|
-
"aria-label": ariaLabel
|
|
53
|
-
"aria-labelledby": ariaLabelledBy
|
|
53
|
+
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-label'],
|
|
54
|
+
"aria-labelledby": ariaLabelledBy !== null && ariaLabelledBy !== void 0 ? ariaLabelledBy : inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-labelledby'],
|
|
54
55
|
"aria-describedby": internalAriaDescribedby
|
|
55
56
|
})), /*#__PURE__*/React__default.createElement("span", {
|
|
56
57
|
className: styles.check
|
|
@@ -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 = "._GCX7x{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._BBMH-,._GCX7x{cursor:pointer;height:16px;width:16px}._BBMH-{position:absolute;opacity:0;z-index:10}._BBMH-:checked~._Zfh1d>._n-ueu{fill-opacity:1}._BBMH-:checked:enabled~._Zfh1d{border-color:transparent;background-color:#0b6ed0}._BBMH-:checked:enabled~._Zfh1d>._n-ueu{fill:#fff}._BBMH-:checked:enabled:hover~._Zfh1d{background-color:#085caf}._BBMH-:not(:checked):enabled:hover~._Zfh1d{border-color:#0b6ed0}._BBMH-:disabled{cursor:not-allowed}._BBMH-:disabled~._Zfh1d{opacity:.4}._BBMH-:checked~._Zfh1d:after{content:\"\"}._dYvpr{color:#32363a;display:flex;align-items:center;cursor:pointer}._NVj-m{cursor:auto;color:hsla(0,0%,53.7%,.4)}._HjVM0{margin-right:12px;flex-shrink:0}._Zfh1d{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}._n-ueu{fill:#0b6ed0;fill-opacity:0}._Zfh1d:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._fOKka{border:none;padding:0;margin:0}._M8DXu{padding:0;margin:0 0 14px;color:#01213f}._BBMH-.focus-visible~._Zfh1d,._BBMH-:focus-visible~._Zfh1d{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"radio":"_GCX7x","input":"_BBMH-","check":"_Zfh1d","checkIcon":"_n-ueu","label":"_dYvpr","labelDisabled":"_NVj-m","wrappedInput":"_HjVM0","radioGroup":"_fOKka","legend":"_M8DXu"};
|
|
5
|
+
var stylesheet="._GCX7x{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._BBMH-,._GCX7x{cursor:pointer;height:16px;width:16px}._BBMH-{position:absolute;opacity:0;z-index:10}._BBMH-:checked~._Zfh1d>._n-ueu{fill-opacity:1}._BBMH-:checked:enabled~._Zfh1d{border-color:transparent;background-color:#0b6ed0}._BBMH-:checked:enabled~._Zfh1d>._n-ueu{fill:#fff}._BBMH-:checked:enabled:hover~._Zfh1d{background-color:#085caf}._BBMH-:not(:checked):enabled:hover~._Zfh1d{border-color:#0b6ed0}._BBMH-:disabled{cursor:not-allowed}._BBMH-:disabled~._Zfh1d{opacity:.4}._BBMH-:checked~._Zfh1d:after{content:\"\"}._dYvpr{color:#32363a;display:flex;align-items:center;cursor:pointer}._NVj-m{cursor:auto;color:hsla(0,0%,53.7%,.4)}._HjVM0{margin-right:12px;flex-shrink:0}._Zfh1d{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}._n-ueu{fill:#0b6ed0;fill-opacity:0}._Zfh1d:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._fOKka{border:none;padding:0;margin:0}._M8DXu{padding:0;margin:0 0 14px;color:#01213f}._BBMH-.focus-visible~._Zfh1d,._BBMH-:focus-visible~._Zfh1d{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -44,7 +44,8 @@ const SearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
44
44
|
// Focuses the input after the input value is cleared so that screen readers see that the input doesn't have a value
|
|
45
45
|
useEffect(() => {
|
|
46
46
|
if (wasInputValueCleared) {
|
|
47
|
-
|
|
47
|
+
var _inputRef$current;
|
|
48
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
48
49
|
setWasInputValueCleared(false);
|
|
49
50
|
}
|
|
50
51
|
}, [wasInputValueCleared]);
|
|
@@ -63,7 +64,7 @@ const SearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
63
64
|
|
|
64
65
|
clearInputText();
|
|
65
66
|
}
|
|
66
|
-
onKeyDown
|
|
67
|
+
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
|
|
67
68
|
};
|
|
68
69
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
69
70
|
className: classNames(styles.searchInput, className),
|
|
@@ -72,7 +73,7 @@ const SearchInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
72
73
|
role: "searchbox",
|
|
73
74
|
id: id,
|
|
74
75
|
className: styles.searchInputInput,
|
|
75
|
-
placeholder: placeholder
|
|
76
|
+
placeholder: placeholder !== null && placeholder !== void 0 ? placeholder : translate('searchText'),
|
|
76
77
|
value: inputValue,
|
|
77
78
|
onChange: handleInputChange,
|
|
78
79
|
onKeyDown: handleInputKeyDown,
|
|
@@ -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 = "._Jbgi9{display:inline-block;position:relative}._JNIVg._JNIVg{padding-left:36px;padding-right:36px;width:100%}._JNIVg._JNIVg:disabled+._krW5u{fill-opacity:.6}._krW5u{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._krW5u._Plcgi{z-index:20}._wJ2-D{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._wJ2-D:hover{cursor:pointer}._wJ2-D:hover>._zmD87{fill:#32363a}._wJ2-D:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._zmD87{fill:#515559}";
|
|
4
|
+
var styles = {"searchInput":"_Jbgi9","searchInputInput":"_JNIVg","searchInputSearchIcon":"_krW5u","usedWithinInputGroup":"_Plcgi","searchInputClearButton":"_wJ2-D","searchInputClearButtonIcon":"_zmD87"};
|
|
5
|
+
var stylesheet="._Jbgi9{display:inline-block;position:relative}._JNIVg._JNIVg{padding-left:36px;padding-right:36px;width:100%}._JNIVg._JNIVg:disabled+._krW5u{fill-opacity:.6}._krW5u{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._krW5u._Plcgi{z-index:20}._wJ2-D{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._wJ2-D:hover{cursor:pointer}._wJ2-D:hover>._zmD87{fill:#32363a}._wJ2-D:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._zmD87{fill:#515559}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -34,7 +34,8 @@ const SidebarNav = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
34
34
|
*/
|
|
35
35
|
useEffect(() => {
|
|
36
36
|
if (isExpandCollapseButtonFocused) {
|
|
37
|
-
|
|
37
|
+
var _expandCollapseButton;
|
|
38
|
+
(_expandCollapseButton = expandCollapseButtonRef.current) === null || _expandCollapseButton === void 0 ? void 0 : _expandCollapseButton.focus();
|
|
38
39
|
}
|
|
39
40
|
}, [isCollapsed, isExpandCollapseButtonFocused]);
|
|
40
41
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -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 = "._CiJpK{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}._CiJpK._DsuOE{width:69px;min-width:auto;max-width:none}._gJL0p{margin:12px 0 28px;width:100%;overflow:auto;padding:4px 16px 0}._kEHOq{margin-bottom:12px;background-color:transparent!important}._kEHOq:hover{background-color:rgba(11,110,208,.08)!important}._kEHOq:hover ._0UMT3{fill:#085caf}._kEHOq:hover ._Lc88m{color:#085caf}._kEHOq:active{background-color:rgba(11,110,208,.12)!important}._kEHOq:active ._0UMT3{fill:#0854a1}._kEHOq:active ._Lc88m{color:#0854a1}._kEHOq._H-fOT{background-color:rgba(11,110,208,.08)!important}._kEHOq._H-fOT ._0UMT3{fill:#0b6ed0}._kEHOq._H-fOT ._Lc88m{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._kEHOq._H-fOT:hover{background-color:rgba(11,110,208,.08)!important}._kEHOq._H-fOT:hover ._0UMT3{fill:#085caf}._kEHOq._H-fOT:hover ._Lc88m{color:#085caf}._kEHOq._H-fOT:active{background-color:rgba(11,110,208,.12)!important}._kEHOq._H-fOT:active ._0UMT3{fill:#0854a1}._kEHOq._H-fOT:active ._Lc88m{color:#0854a1}._IG59P{border-radius:6px}._IG59P ._0UMT3{display:block;fill:#515559}._cmeyb{width:100%;padding:0 16px;margin-top:auto;margin-bottom:0}._G2ZLt,._NskbF{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}._G2ZLt ._0UMT3,._NskbF ._0UMT3{fill:#515559}._G2ZLt ._Lc88m,._NskbF ._Lc88m{font-size:14px;line-height:19px;color:#515559;overflow:hidden;overflow-wrap:break-word;margin:2.5px 0 2.5px 6px}._kEHOq.focus-visible,._kEHOq:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"sideBarNav":"_CiJpK","collapsed":"_DsuOE","navItems":"_gJL0p","sidebarNavItem":"_kEHOq","icon":"_0UMT3","label":"_Lc88m","selected":"_H-fOT","sidebarNavItemIconButton":"_IG59P","expandCollapseButtonContainer":"_cmeyb","navLink":"_G2ZLt","iconButtonWithLabel":"_NskbF"};
|
|
5
|
+
var stylesheet="._CiJpK{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}._CiJpK._DsuOE{width:69px;min-width:auto;max-width:none}._gJL0p{margin:12px 0 28px;width:100%;overflow:auto;padding:4px 16px 0}._kEHOq{margin-bottom:12px;background-color:transparent!important}._kEHOq:hover{background-color:rgba(11,110,208,.08)!important}._kEHOq:hover ._0UMT3{fill:#085caf}._kEHOq:hover ._Lc88m{color:#085caf}._kEHOq:active{background-color:rgba(11,110,208,.12)!important}._kEHOq:active ._0UMT3{fill:#0854a1}._kEHOq:active ._Lc88m{color:#0854a1}._kEHOq._H-fOT{background-color:rgba(11,110,208,.08)!important}._kEHOq._H-fOT ._0UMT3{fill:#0b6ed0}._kEHOq._H-fOT ._Lc88m{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._kEHOq._H-fOT:hover{background-color:rgba(11,110,208,.08)!important}._kEHOq._H-fOT:hover ._0UMT3{fill:#085caf}._kEHOq._H-fOT:hover ._Lc88m{color:#085caf}._kEHOq._H-fOT:active{background-color:rgba(11,110,208,.12)!important}._kEHOq._H-fOT:active ._0UMT3{fill:#0854a1}._kEHOq._H-fOT:active ._Lc88m{color:#0854a1}._IG59P{border-radius:6px}._IG59P ._0UMT3{display:block;fill:#515559}._cmeyb{width:100%;padding:0 16px;margin-top:auto;margin-bottom:0}._G2ZLt,._NskbF{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}._G2ZLt ._0UMT3,._NskbF ._0UMT3{fill:#515559}._G2ZLt ._Lc88m,._NskbF ._Lc88m{font-size:14px;line-height:19px;color:#515559;overflow:hidden;overflow-wrap:break-word;margin:2.5px 0 2.5px 6px}._kEHOq.focus-visible,._kEHOq:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -25,7 +25,7 @@ const SidebarNavLink = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
25
25
|
isCollapsed,
|
|
26
26
|
NavLink
|
|
27
27
|
} = useSidebarNavContext();
|
|
28
|
-
const Icon = isCollapsed ? icon
|
|
28
|
+
const Icon = isCollapsed ? icon !== null && icon !== void 0 ? icon : ExcludeIcon : icon;
|
|
29
29
|
const link = /*#__PURE__*/React__default.createElement(NavLink, {
|
|
30
30
|
className: isActive => classNames(styles.sidebarNavItem, styles.navLink, {
|
|
31
31
|
[styles.noIcon]: !Icon,
|
|
@@ -113,8 +113,8 @@ const RangeSlider = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
113
113
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
114
114
|
className: styles.fill,
|
|
115
115
|
style: {
|
|
116
|
-
left:
|
|
117
|
-
right:
|
|
116
|
+
left: "".concat(buttonPositions[0], "%"),
|
|
117
|
+
right: "".concat(100 - buttonPositions[1], "%")
|
|
118
118
|
}
|
|
119
119
|
}), values.map((value, index) => /*#__PURE__*/React__default.createElement(SliderButton, {
|
|
120
120
|
key: index,
|
|
@@ -118,7 +118,7 @@ const Slider = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
118
118
|
className: styles.fill,
|
|
119
119
|
style: {
|
|
120
120
|
left: -1,
|
|
121
|
-
right:
|
|
121
|
+
right: "".concat(100 - buttonPosition, "%")
|
|
122
122
|
}
|
|
123
123
|
}), /*#__PURE__*/React__default.createElement(SliderButton, {
|
|
124
124
|
"aria-valuemin": min,
|
|
@@ -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 = "._fNSYs{height:auto;width:200px;padding:5px 10px}._yrqeQ{position:relative;height:10px;border:1px solid #898989;border-radius:5px;background:#fafafa}._lNOmF{top:-1px;bottom:-1px;background-color:#007ac0;border:1px solid #007ac0;border-radius:5px}._C83EQ,._lNOmF{position:absolute}._C83EQ{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}._C83EQ:before{content:\"\";position:absolute;top:4px;left:4px;background:#007ac0;width:8px;height:8px;border-radius:10px}._C83EQ.focus-visible,._C83EQ:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"slider":"_fNSYs","track":"_yrqeQ","fill":"_lNOmF","button":"_C83EQ"};
|
|
5
|
+
var stylesheet="._fNSYs{height:auto;width:200px;padding:5px 10px}._yrqeQ{position:relative;height:10px;border:1px solid #898989;border-radius:5px;background:#fafafa}._lNOmF{top:-1px;bottom:-1px;background-color:#007ac0;border:1px solid #007ac0;border-radius:5px}._C83EQ,._lNOmF{position:absolute}._C83EQ{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}._C83EQ:before{content:\"\";position:absolute;top:4px;left:4px;background:#007ac0;width:8px;height:8px;border-radius:10px}._C83EQ.focus-visible,._C83EQ:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -51,7 +51,7 @@ const SliderButton = _ref => {
|
|
|
51
51
|
const anchorButton = /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
52
52
|
className: styles.button,
|
|
53
53
|
style: {
|
|
54
|
-
left:
|
|
54
|
+
left: "calc(".concat(buttonPosition, "% + ").concat(buttonOffset, "px")
|
|
55
55
|
},
|
|
56
56
|
onMouseDown: handleMouseDown,
|
|
57
57
|
onKeyDown: onKeyDown,
|
|
@@ -26,26 +26,26 @@ const Switch = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
26
26
|
helperTextId: formFieldHelperTextId,
|
|
27
27
|
errorTextId: formFieldErrorTextId
|
|
28
28
|
} = useFormFieldContext();
|
|
29
|
-
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId, inputProps
|
|
29
|
+
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId, inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-describedby']);
|
|
30
30
|
return /*#__PURE__*/React__default.createElement("span", _extends({}, rest, {
|
|
31
31
|
ref: ref,
|
|
32
32
|
className: classNames(className, styles.switch, {
|
|
33
33
|
[styles.disabled]: disabled
|
|
34
34
|
})
|
|
35
35
|
}), /*#__PURE__*/React__default.createElement("input", _extends({}, inputProps, {
|
|
36
|
-
className: classNames(styles.input, inputProps
|
|
36
|
+
className: classNames(styles.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className),
|
|
37
37
|
type: "checkbox",
|
|
38
38
|
role: "switch",
|
|
39
|
-
id: id
|
|
40
|
-
checked: checked
|
|
41
|
-
defaultChecked: defaultChecked
|
|
42
|
-
disabled: disabled
|
|
43
|
-
onChange: disabled ? undefined : onChange
|
|
44
|
-
value: value
|
|
45
|
-
"aria-label": ariaLabel
|
|
46
|
-
"aria-labelledby": ariaLabelledBy
|
|
39
|
+
id: id !== null && id !== void 0 ? id : inputProps === null || inputProps === void 0 ? void 0 : inputProps.id,
|
|
40
|
+
checked: checked !== null && checked !== void 0 ? checked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked,
|
|
41
|
+
defaultChecked: defaultChecked !== null && defaultChecked !== void 0 ? defaultChecked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.defaultChecked,
|
|
42
|
+
disabled: disabled !== null && disabled !== void 0 ? disabled : inputProps === null || inputProps === void 0 ? void 0 : inputProps.disabled,
|
|
43
|
+
onChange: disabled ? undefined : onChange !== null && onChange !== void 0 ? onChange : inputProps === null || inputProps === void 0 ? void 0 : inputProps.onChange,
|
|
44
|
+
value: value !== null && value !== void 0 ? value : inputProps === null || inputProps === void 0 ? void 0 : inputProps.value,
|
|
45
|
+
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-label'],
|
|
46
|
+
"aria-labelledby": ariaLabelledBy !== null && ariaLabelledBy !== void 0 ? ariaLabelledBy : inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-labelledby'],
|
|
47
47
|
"aria-describedby": internalAriaDescribedby,
|
|
48
|
-
tabIndex: tabIndex
|
|
48
|
+
tabIndex: tabIndex !== null && tabIndex !== void 0 ? tabIndex : inputProps === null || inputProps === void 0 ? void 0 : inputProps.tabIndex
|
|
49
49
|
})), /*#__PURE__*/React__default.createElement("span", {
|
|
50
50
|
className: styles.slider
|
|
51
51
|
}));
|
|
@@ -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 = {"switch":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._6ksuV{cursor:pointer;display:inline-flex;position:relative;align-items:center;margin-top:6px;margin-bottom:6px}._6ksuV._rXGZW{cursor:not-allowed}._BMiaS{cursor:pointer;position:absolute;top:0;opacity:0;height:16px;width:32px;border-radius:34px;z-index:10}._BMiaS:disabled{cursor:not-allowed}._BMiaS:disabled~._0E-IL{opacity:.4}._BMiaS:checked~._0E-IL{background-color:#0b6ed0}._BMiaS:checked~._0E-IL:before{transform:translateX(16px);background-color:#fff;border-color:#0b6ed0}._BMiaS:hover:not(:disabled):not(:checked)~._0E-IL{background-color:#6a6a6a}._BMiaS:hover:not(:disabled):checked~._0E-IL{background-color:#085caf}._BMiaS:hover:not(:disabled):checked~._0E-IL:before{border-color:#085caf}._0E-IL{width:32px;background-color:#898989;border-radius:34px}._0E-IL,._0E-IL:before{height:16px;transition:.2s}._0E-IL:before{box-sizing:border-box;position:absolute;left:0;content:\"\";width:16px;background-color:#fff;border-radius:50%;border:1px solid #898989;z-index:0}._m1NjK{color:#32363a;display:flex;align-items:center;cursor:pointer}._WFhwb{cursor:auto;color:hsla(0,0%,53.7%,.4)}._zNEWp{margin-right:12px;flex-shrink:0}._BMiaS.focus-visible~._0E-IL,._BMiaS:focus-visible~._0E-IL{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"switch":"_6ksuV","disabled":"_rXGZW","input":"_BMiaS","slider":"_0E-IL","label":"_m1NjK","labelDisabled":"_WFhwb","wrappedInput":"_zNEWp"};
|
|
5
|
+
var stylesheet="._6ksuV{cursor:pointer;display:inline-flex;position:relative;align-items:center;margin-top:6px;margin-bottom:6px}._6ksuV._rXGZW{cursor:not-allowed}._BMiaS{cursor:pointer;position:absolute;top:0;opacity:0;height:16px;width:32px;border-radius:34px;z-index:10}._BMiaS:disabled{cursor:not-allowed}._BMiaS:disabled~._0E-IL{opacity:.4}._BMiaS:checked~._0E-IL{background-color:#0b6ed0}._BMiaS:checked~._0E-IL:before{transform:translateX(16px);background-color:#fff;border-color:#0b6ed0}._BMiaS:hover:not(:disabled):not(:checked)~._0E-IL{background-color:#6a6a6a}._BMiaS:hover:not(:disabled):checked~._0E-IL{background-color:#085caf}._BMiaS:hover:not(:disabled):checked~._0E-IL:before{border-color:#085caf}._0E-IL{width:32px;background-color:#898989;border-radius:34px}._0E-IL,._0E-IL:before{height:16px;transition:.2s}._0E-IL:before{box-sizing:border-box;position:absolute;left:0;content:\"\";width:16px;background-color:#fff;border-radius:50%;border:1px solid #898989;z-index:0}._m1NjK{color:#32363a;display:flex;align-items:center;cursor:pointer}._WFhwb{cursor:auto;color:hsla(0,0%,53.7%,.4)}._zNEWp{margin-right:12px;flex-shrink:0}._BMiaS.focus-visible~._0E-IL,._BMiaS:focus-visible~._0E-IL{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
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 = {"table":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._VQYYc{font-size:14px;color:#32363a;width:100%;max-width:100%;border-collapse:collapse;background-color:#fff;border:none}._VQYYc ._cTjiR:first-child,._VQYYc ._MTFAz:first-child{padding-left:16px}._-VfRz{font-size:12px}._cTjiR{padding:12px 8px;text-align:left;font-weight:700}._aitRC ._YlVgb{border-top:1px solid #ededed}._aitRC ._YlVgb:hover{background-color:#fafafa}._YlVgb{transition:background-color 125ms ease-in;border-bottom:1px solid #ededed}._MTFAz{padding:16px 8px;word-break:break-word;text-align:left}";
|
|
4
|
+
var styles = {"table":"_VQYYc","tableCell":"_MTFAz","tableHeaderCell":"_cTjiR","tableHead":"_-VfRz","tableBody":"_aitRC","tableRow":"_YlVgb"};
|
|
5
|
+
var stylesheet="._VQYYc{font-size:14px;color:#32363a;width:100%;max-width:100%;border-collapse:collapse;background-color:#fff;border:none}._VQYYc ._cTjiR:first-child,._VQYYc ._MTFAz:first-child{padding-left:16px}._-VfRz{font-size:12px}._cTjiR{padding:12px 8px;text-align:left;font-weight:700}._aitRC ._YlVgb{border-top:1px solid #ededed}._aitRC ._YlVgb:hover{background-color:#fafafa}._YlVgb{transition:background-color 125ms ease-in;border-bottom:1px solid #ededed}._MTFAz{padding:16px 8px;word-break:break-word;text-align:left}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -22,8 +22,8 @@ const Tab = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
22
22
|
rootTestId,
|
|
23
23
|
isTabListFocused
|
|
24
24
|
} = useTabContext();
|
|
25
|
-
const tabId = getSubDataTestId(rootId,
|
|
26
|
-
const tabTestId = getSubDataTestId(rootTestId,
|
|
25
|
+
const tabId = getSubDataTestId(rootId, "tab-".concat(value));
|
|
26
|
+
const tabTestId = getSubDataTestId(rootTestId, "tab-".concat(value));
|
|
27
27
|
const isSelected = activeTab === value;
|
|
28
28
|
const onClick = React__default.useCallback(() => {
|
|
29
29
|
setActiveTab(value);
|
|
@@ -39,7 +39,7 @@ const Tab = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
39
39
|
[styles.selected]: isSelected
|
|
40
40
|
}),
|
|
41
41
|
"aria-selected": isSelected,
|
|
42
|
-
"aria-controls":
|
|
42
|
+
"aria-controls": "".concat(rootId, "-tabpanel-").concat(value),
|
|
43
43
|
"aria-label": ariaLabel,
|
|
44
44
|
onClick: onClick,
|
|
45
45
|
ref: ref,
|