@qualtrics/ui-react 2.21.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 +12 -0
- package/dist/__shared/cjs/{index-201e8786.js → index-025620bf.js} +666 -549
- package/dist/__shared/cjs/{index-0ae99de2.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 -9
- package/dist/components/ColorPicker/ColorPicker.js +10 -8
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +8 -6
- package/dist/components/ColorPicker/Hue.js +3 -2
- package/dist/components/ColorPicker/Palette.js +7 -5
- package/dist/components/ColorPicker/Saturation.js +9 -8
- 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 +47 -26
- 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 -9
- 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 +4 -3
- package/dist/components/Dropdown/DropdownSearch.js +10 -4
- package/dist/components/FilePicker/FilePicker.js +13 -6
- 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 +10 -7
- 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 +10 -4
- 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 -2
- 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 +1 -1
- package/dist/hooks/useId/useId.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +6 -4
- 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 +14 -7
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +60 -49
- 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 +5 -3
- 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 +5 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +10 -8
- package/dist/next/Menu/MenuPane.js +20 -8
- package/dist/next/Menu/SubMenu.js +12 -8
- package/dist/next/Menu/useMutationObserver.js +1 -1
- package/dist/next/Menu/usePaneSearch.js +27 -15
- 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 +1 -1
- package/dist/next/index.js +298 -219
- 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/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/mergeRefs/mergeRefs.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +2 -2
- package/next/package.json +1 -1
- package/package.json +2 -2
|
@@ -159,15 +159,16 @@ const NumberStepper = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
if (regex.test(val)) {
|
|
162
|
+
var _val$split;
|
|
162
163
|
const currentIsSeparatedByComma = isSeparatedByComma(val);
|
|
163
164
|
const currentDecimalSeparator = currentIsSeparatedByComma ? ',' : '.';
|
|
164
|
-
const decimalPortion = val.split(currentDecimalSeparator)
|
|
165
|
-
if (decimalPortion
|
|
165
|
+
const decimalPortion = (_val$split = val.split(currentDecimalSeparator)) === null || _val$split === void 0 ? void 0 : _val$split[1];
|
|
166
|
+
if ((decimalPortion === null || decimalPortion === void 0 ? void 0 : decimalPortion.length) > 2) {
|
|
166
167
|
let rounded = String(roundToTwoDecimalPlaces(convertToNumber(val)));
|
|
167
168
|
|
|
168
169
|
// If a user types a number that rounds out to a whole number, such as '23.000' or `1.999`, the '.' is rounded away, causing the user to lose their place in the input.
|
|
169
170
|
if (rounded.indexOf('.') === -1) {
|
|
170
|
-
rounded +=
|
|
171
|
+
rounded += "".concat(currentDecimalSeparator, "00");
|
|
171
172
|
}
|
|
172
173
|
setInputValue(localizeNumber(rounded, currentIsSeparatedByComma));
|
|
173
174
|
} else {
|
|
@@ -218,7 +219,7 @@ const NumberStepper = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
218
219
|
} = e;
|
|
219
220
|
if (!componentHasFocus.current && currentTarget.contains(document.activeElement)) {
|
|
220
221
|
componentHasFocus.current = true;
|
|
221
|
-
onFocus
|
|
222
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
|
|
222
223
|
}
|
|
223
224
|
},
|
|
224
225
|
onBlur: e => {
|
|
@@ -231,7 +232,7 @@ const NumberStepper = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
231
232
|
// Check if the new focused element is a child of the original container
|
|
232
233
|
if (!currentTarget.contains(document.activeElement)) {
|
|
233
234
|
componentHasFocus.current = false;
|
|
234
|
-
onBlur
|
|
235
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(e);
|
|
235
236
|
}
|
|
236
237
|
});
|
|
237
238
|
}
|
|
@@ -247,7 +248,7 @@ function convertToNumber(value) {
|
|
|
247
248
|
if (typeof value === 'number') {
|
|
248
249
|
return value;
|
|
249
250
|
}
|
|
250
|
-
const num = Number(value
|
|
251
|
+
const num = Number(value === null || value === void 0 ? void 0 : value.replace(',', '.'));
|
|
251
252
|
if (Number.isNaN(num)) {
|
|
252
253
|
return 0;
|
|
253
254
|
}
|
|
@@ -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 = "._ILS2Z{display:inline-flex;width:127px}._ss4RT{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}._ss4RT:hover:not(._-KXK0){cursor:pointer;background:#f5f5f5}._ss4RT._EFVaO{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._ss4RT._-KXK0{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._ss4RT._-KXK0>svg{opacity:.4}._ss4RT::-webkit-inner-spin-button,._ss4RT::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._ss4RT:focus{z-index:0;border:none;border-radius:4px}._ss4RT:focus:not(._EFVaO){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-9-Fm,._ss4RT:focus:not(._-KXK0){background:#fafafa}._-9-Fm{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}._-9-Fm:hover:not(._-KXK0){cursor:pointer;background:#f5f5f5}._-9-Fm:active:not(._-KXK0){background:#e5e5e5}._-9-Fm._-KXK0{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._-9-Fm._-KXK0>svg{opacity:.4}._MUars{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}._MUars:hover:not(._-KXK0){cursor:pointer;background:#f5f5f5}._MUars:active:not(._-KXK0){background:#e5e5e5}._MUars._-KXK0{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._MUars._-KXK0>svg{opacity:.4}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_ILS2Z","numberStepperInput":"_ss4RT","disabled":"_-KXK0","invalid":"_EFVaO","decrementBtn":"_-9-Fm","incrementBtn":"_MUars"};
|
|
5
|
+
var stylesheet="._ILS2Z{display:inline-flex;width:127px}._ss4RT{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}._ss4RT:hover:not(._-KXK0){cursor:pointer;background:#f5f5f5}._ss4RT._EFVaO{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._ss4RT._-KXK0{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._ss4RT._-KXK0>svg{opacity:.4}._ss4RT::-webkit-inner-spin-button,._ss4RT::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._ss4RT:focus{z-index:0;border:none;border-radius:4px}._ss4RT:focus:not(._EFVaO){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-9-Fm,._ss4RT:focus:not(._-KXK0){background:#fafafa}._-9-Fm{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}._-9-Fm:hover:not(._-KXK0){cursor:pointer;background:#f5f5f5}._-9-Fm:active:not(._-KXK0){background:#e5e5e5}._-9-Fm._-KXK0{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._-9-Fm._-KXK0>svg{opacity:.4}._MUars{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}._MUars:hover:not(._-KXK0){cursor:pointer;background:#f5f5f5}._MUars:active:not(._-KXK0){background:#e5e5e5}._MUars._-KXK0{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._MUars._-KXK0>svg{opacity:.4}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -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
|
|
58
|
+
onKeyDown === null || onKeyDown === void 0 ? 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
|
|
93
|
+
onFocus === null || onFocus === void 0 ? 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
|
|
103
|
+
onBlur === null || onBlur === void 0 ? 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 = "._tBHRX{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\"}._QIS0t{grid-area:pageHeader}._UVTe-{grid-area:mainContent;height:100%;overflow:auto}";
|
|
4
|
+
var styles = {"pageContainer":"_tBHRX","pageHeader":"_QIS0t","mainContent":"_UVTe-"};
|
|
5
|
+
var stylesheet="._tBHRX{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\"}._QIS0t{grid-area:pageHeader}._UVTe-{grid-area:mainContent;height:100%;overflow:auto}";
|
|
6
6
|
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
|
|
61
|
+
onPageChange === null || onPageChange === void 0 ? 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 = "._cNhXA{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._dS7rP{margin-right:8px}._5xY-E{margin-left:8px}._9Zz4n{margin:-10px -15px}._0Iz9k{width:100%;text-align:center}";
|
|
4
|
+
var styles = {"pagination":"_cNhXA","previousButton":"_dS7rP","nextButton":"_5xY-E","btnIcon":"_9Zz4n","input":"_0Iz9k"};
|
|
5
|
+
var stylesheet="._cNhXA{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._dS7rP{margin-right:8px}._5xY-E{margin-left:8px}._9Zz4n{margin:-10px -15px}._0Iz9k{width:100%;text-align:center}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -43,19 +43,19 @@ const PaginationNextButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
43
43
|
*/
|
|
44
44
|
const increment = () => {
|
|
45
45
|
const newPage = pageInputValue + 1;
|
|
46
|
-
setPageInputValue
|
|
47
|
-
handlePageChange
|
|
46
|
+
setPageInputValue === null || setPageInputValue === void 0 ? void 0 : setPageInputValue(newPage);
|
|
47
|
+
handlePageChange === null || handlePageChange === void 0 ? void 0 : handlePageChange(newPage);
|
|
48
48
|
};
|
|
49
49
|
return /*#__PURE__*/React__default.createElement(Button, _extends({}, rest, {
|
|
50
|
-
disabled: disabled
|
|
50
|
+
disabled: disabled !== null && disabled !== void 0 ? disabled : pageInputValue === numPages,
|
|
51
51
|
ref: ref,
|
|
52
52
|
kind: "tertiary",
|
|
53
53
|
onClick: e => {
|
|
54
|
-
onClick
|
|
54
|
+
onClick === null || onClick === void 0 ? void 0 : onClick(e);
|
|
55
55
|
increment();
|
|
56
56
|
},
|
|
57
57
|
className: classNames(className, styles.nextButton),
|
|
58
|
-
"data-testid": dataTestIdFromProps
|
|
58
|
+
"data-testid": dataTestIdFromProps !== null && dataTestIdFromProps !== void 0 ? dataTestIdFromProps : getSubDataTestId(dataTestId, 'NextButton'),
|
|
59
59
|
"aria-label": buttonLabel
|
|
60
60
|
}), /*#__PURE__*/React__default.createElement(ChevronRightIcon, {
|
|
61
61
|
className: styles.btnIcon,
|
|
@@ -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,
|