@qualtrics/ui-react 2.25.0 → 2.26.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 +8 -0
- package/dist/__shared/cjs/{index-5b3b3406.js → index-ae6df097.js} +3 -3
- package/dist/__shared/cjs/{index-610a1e02.js → index-dc6f69ac.js} +262 -256
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +1 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Hue.js +1 -1
- package/dist/components/ColorPicker/Palette.js +1 -1
- package/dist/components/ColorPicker/Saturation.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxIcon.js +1 -1
- package/dist/components/Combobox/ComboboxInput.js +1 -1
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +4 -4
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownList.js +1 -1
- package/dist/components/Dropdown/DropdownOption.js +2 -2
- package/dist/components/Dropdown/DropdownSearch.js +2 -2
- package/dist/components/FilePicker/FilePicker.js +2 -2
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +2 -2
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +7 -7
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -2
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +3 -3
- package/dist/components/NumberStepper/NumberStepper.js +2 -2
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +3 -3
- package/dist/components/Pagination/PaginationPageInput.js +8 -8
- package/dist/components/Pagination/PaginationPreviousButton.js +3 -3
- package/dist/components/Popover/Popover.js +5 -5
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/Alpha.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
- package/dist/components/deprecated_ColorPicker/Hue.js +2 -2
- package/dist/components/deprecated_ColorPicker/Saturation.js +2 -2
- package/dist/components/deprecated_ColorPicker/Swatch.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +1 -1
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +5 -5
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +2 -2
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +1 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +8 -6
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +2 -2
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox.js +2 -0
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +2 -0
- package/dist/next/Combobox/ComboboxOption.js +2 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Drawer/Drawer.js +2 -2
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +2 -2
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +41 -0
- package/dist/next/Menu/Hooks/useIsVirtualized.js +8 -0
- package/dist/next/Menu/Hooks/useMaskDimensions.js +59 -0
- package/dist/next/Menu/{useMutationObserver.js → Hooks/useMutationObserver.js} +1 -1
- package/dist/next/Menu/{usePaneSearch.js → Hooks/usePaneSearch.js} +61 -24
- package/dist/next/Menu/Menu.js +19 -24
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuContext.js +5 -1
- package/dist/next/Menu/MenuItem.js +21 -14
- package/dist/next/Menu/MenuPane.js +73 -54
- package/dist/next/Menu/PaneChildren.js +47 -0
- package/dist/next/Menu/SubMenu.js +57 -39
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +10 -6
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SubSelect.js +2 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +1 -1
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +17 -3
- package/dist/next/index.js +424 -212
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +2 -2
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +1 -1
- package/icons/package.json +2 -0
- package/next/package.json +3 -1
- package/package.json +4 -2
- /package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +0 -0
|
@@ -51,13 +51,13 @@ const Alpha = function Alpha(_ref) {
|
|
|
51
51
|
const containerRef = React__default.useRef(null);
|
|
52
52
|
const handleChange = useEventCallback(e => {
|
|
53
53
|
const change = getMouseChange(e, hsl, alpha, containerRef.current);
|
|
54
|
-
onChange === null || onChange === void 0
|
|
54
|
+
onChange === null || onChange === void 0 || onChange(change, e);
|
|
55
55
|
});
|
|
56
56
|
const handleMouseDown = useMouseDrag(handleChange);
|
|
57
57
|
function handleKeyDown(e) {
|
|
58
58
|
if (Object.keys(KEY_CHANGES).indexOf(e.key) > -1) {
|
|
59
59
|
const change = getKeyChange(e, hsl);
|
|
60
|
-
onChange === null || onChange === void 0
|
|
60
|
+
onChange === null || onChange === void 0 || onChange(change, e);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -46,7 +46,7 @@ const ColorPicker = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
46
46
|
function handleChange(rawColor, e) {
|
|
47
47
|
const nextColor = new Color(rawColor);
|
|
48
48
|
setColor(nextColor);
|
|
49
|
-
onChange === null || onChange === void 0
|
|
49
|
+
onChange === null || onChange === void 0 || onChange(nextColor.getValue(), e);
|
|
50
50
|
}
|
|
51
51
|
let alpha;
|
|
52
52
|
let width = 136;
|
|
@@ -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 = {"colorPickerBtnColor":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._anOD7{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._qUsX-{margin-right:-12px;margin-left:4px}._4nekB{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._PGQIV{margin:8px 8px 0;display:flex}._Au2Un,._Pl8Q6{margin-left:4px}._tMypw{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._ZJg3W{margin:0 4px 4px 0}._ZJg3W:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._ZkEp9{margin:4px 8px 8px}._kYPRP{position:relative;width:96px;height:96px;outline:0}._kYPRP.focus-visible ._q0DUl,._kYPRP:focus-visible ._q0DUl{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Wbati{background:linear-gradient(90deg,#fff,transparent)}._8mIt2,._Wbati{position:absolute;top:0;right:0;bottom:0;left:0}._8mIt2{background:linear-gradient(0deg,#000,transparent)}._q0DUl{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._9KLvu{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._9KLvu.focus-visible ._2JTRV,._9KLvu:focus-visible ._2JTRV{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2JTRV{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._A7E-X{position:relative;width:16px;height:96px}._FMvqj{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._FMvqj,._MFsWx{position:absolute}._MFsWx{top:0;right:0;bottom:0;left:0;outline:0}._MFsWx.focus-visible ._FMvqj,._MFsWx:focus-visible ._FMvqj{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._uN5DZ{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._pRgf8{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._pRgf8.focus-visible,._pRgf8:focus-visible{outline:none}._pRgf8.focus-visible,._pRgf8:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3PHbV{display:flex}._3PHbV ._Qq-F6{position:relative;flex-shrink:0;width:26px;height:26px}._3PHbV ._OUDpZ{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._3PHbV ._UR1mQ{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
4
|
+
var styles = {"colorPickerBtnColor":"_anOD7","colorPickerBtnIcon":"_qUsX-","colorPicker":"_4nekB","colorPickerSliderContainer":"_PGQIV","colorPickerHue":"_Pl8Q6","colorPickerAlpha":"_Au2Un","colorPickerSwatches":"_tMypw","colorPickerSwatch":"_ZJg3W","colorPickerHex":"_ZkEp9","saturation":"_kYPRP","saturationCircle":"_q0DUl","saturationWhite":"_Wbati","saturationBlack":"_8mIt2","hue":"_9KLvu","hueSlider":"_2JTRV","alpha":"_A7E-X","alphaSlider":"_FMvqj","alphaGradient":"_MFsWx","alphaCheckerboard":"_uN5DZ","swatch":"_pRgf8","hex":"_3PHbV","hexSwatch":"_Qq-F6","hexSwatchColor":"_OUDpZ","hexInput":"_UR1mQ"};
|
|
5
|
+
var stylesheet="._anOD7{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._qUsX-{margin-right:-12px;margin-left:4px}._4nekB{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._PGQIV{margin:8px 8px 0;display:flex}._Au2Un,._Pl8Q6{margin-left:4px}._tMypw{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._ZJg3W{margin:0 4px 4px 0}._ZJg3W:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._ZkEp9{margin:4px 8px 8px}._kYPRP{position:relative;width:96px;height:96px;outline:0}._kYPRP.focus-visible ._q0DUl,._kYPRP:focus-visible ._q0DUl{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Wbati{background:linear-gradient(90deg,#fff,transparent)}._8mIt2,._Wbati{position:absolute;top:0;right:0;bottom:0;left:0}._8mIt2{background:linear-gradient(0deg,#000,transparent)}._q0DUl{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._9KLvu{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._9KLvu.focus-visible ._2JTRV,._9KLvu:focus-visible ._2JTRV{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2JTRV{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._A7E-X{position:relative;width:16px;height:96px}._FMvqj{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._FMvqj,._MFsWx{position:absolute}._MFsWx{top:0;right:0;bottom:0;left:0;outline:0}._MFsWx.focus-visible ._FMvqj,._MFsWx:focus-visible ._FMvqj{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._uN5DZ{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._pRgf8{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._pRgf8.focus-visible,._pRgf8:focus-visible{outline:none}._pRgf8.focus-visible,._pRgf8:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3PHbV{display:flex}._3PHbV ._Qq-F6{position:relative;flex-shrink:0;width:26px;height:26px}._3PHbV ._OUDpZ{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._3PHbV ._UR1mQ{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -33,7 +33,7 @@ const HexInput = function HexInput(_ref) {
|
|
|
33
33
|
function handleChange(e) {
|
|
34
34
|
setValue(e.target.value);
|
|
35
35
|
if (isValid(e.target.value)) {
|
|
36
|
-
onChange === null || onChange === void 0
|
|
36
|
+
onChange === null || onChange === void 0 || onChange(e.target.value, e);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
function handleBlur() {
|
|
@@ -51,13 +51,13 @@ const Hue = function Hue(_ref) {
|
|
|
51
51
|
const containerRef = React__default.useRef(null);
|
|
52
52
|
const handleChange = useEventCallback(e => {
|
|
53
53
|
const change = getMouseChange(e, hsb, containerRef.current);
|
|
54
|
-
onChange === null || onChange === void 0
|
|
54
|
+
onChange === null || onChange === void 0 || onChange(change, e);
|
|
55
55
|
});
|
|
56
56
|
const handleMouseDown = useMouseDrag(handleChange);
|
|
57
57
|
function handleKeyDown(e) {
|
|
58
58
|
if (Object.keys(KEY_CHANGES).indexOf(e.key) > -1) {
|
|
59
59
|
const change = getKeyChange(e, hsb);
|
|
60
|
-
onChange === null || onChange === void 0
|
|
60
|
+
onChange === null || onChange === void 0 || onChange(change, e);
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
return (
|
|
@@ -78,13 +78,13 @@ const Saturation = function Saturation(_ref) {
|
|
|
78
78
|
} = _ref;
|
|
79
79
|
const containerRef = React__default.useRef(null);
|
|
80
80
|
const handleChange = useEventCallback(e => {
|
|
81
|
-
onChange === null || onChange === void 0
|
|
81
|
+
onChange === null || onChange === void 0 || onChange(getMouseChange(e, hsb, containerRef.current), e);
|
|
82
82
|
});
|
|
83
83
|
const handleMouseDown = useMouseDrag(handleChange);
|
|
84
84
|
function handleKeyDown(e) {
|
|
85
85
|
if (Object.keys(KEY_CHANGES).indexOf(e.key) > -1) {
|
|
86
86
|
const change = getKeyChange(e, hsb);
|
|
87
|
-
onChange === null || onChange === void 0
|
|
87
|
+
onChange === null || onChange === void 0 || onChange(change, e);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
return (
|
|
@@ -12,7 +12,7 @@ const Swatch = function Swatch(_ref) {
|
|
|
12
12
|
...rest
|
|
13
13
|
} = _ref;
|
|
14
14
|
function handleClick(e) {
|
|
15
|
-
onClick === null || onClick === void 0
|
|
15
|
+
onClick === null || onClick === void 0 || onClick(color, e);
|
|
16
16
|
}
|
|
17
17
|
const handleKeyDown = e => e.keyCode === ENTER && (onClick === null || onClick === void 0 ? void 0 : onClick(color, e));
|
|
18
18
|
return /*#__PURE__*/React__default.createElement("span", _extends({}, rest, {
|
|
@@ -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 = "._AL0ap{display:inline-flex}._pueW4{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}._pueW4:hover:not(._3-MRs){cursor:pointer;background:#f5f5f5}._pueW4._qT01i{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._pueW4._3-MRs{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._pueW4._3-MRs>svg{opacity:.4}._pueW4::-webkit-inner-spin-button,._pueW4::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._pueW4:focus{z-index:0;border:none;border-radius:4px}._pueW4:focus:not(._qT01i){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-qE2h,._pueW4:focus:not(._3-MRs){background:#fafafa}._-qE2h{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}._-qE2h:hover:not(._3-MRs){cursor:pointer;background:#f5f5f5}._-qE2h:active:not(._3-MRs){background:#e5e5e5}._-qE2h._3-MRs{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._-qE2h._3-MRs>svg{opacity:.4}._43PI-{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}._43PI-:hover:not(._3-MRs){cursor:pointer;background:#f5f5f5}._43PI-:active:not(._3-MRs){background:#e5e5e5}._43PI-._3-MRs{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._43PI-._3-MRs>svg{opacity:.4}._4O9dK{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
4
|
+
var styles = {"numberStepperContainer":"_AL0ap","numberStepperInput":"_pueW4","disabled":"_3-MRs","invalid":"_qT01i","decrementBtn":"_-qE2h","incrementBtn":"_43PI-","inputValueAlert":"_4O9dK"};
|
|
5
|
+
var stylesheet="._AL0ap{display:inline-flex}._pueW4{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}._pueW4:hover:not(._3-MRs){cursor:pointer;background:#f5f5f5}._pueW4._qT01i{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._pueW4._3-MRs{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._pueW4._3-MRs>svg{opacity:.4}._pueW4::-webkit-inner-spin-button,._pueW4::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._pueW4:focus{z-index:0;border:none;border-radius:4px}._pueW4:focus:not(._qT01i){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-qE2h,._pueW4:focus:not(._3-MRs){background:#fafafa}._-qE2h{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}._-qE2h:hover:not(._3-MRs){cursor:pointer;background:#f5f5f5}._-qE2h:active:not(._3-MRs){background:#e5e5e5}._-qE2h._3-MRs{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._-qE2h._3-MRs>svg{opacity:.4}._43PI-{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}._43PI-:hover:not(._3-MRs){cursor:pointer;background:#f5f5f5}._43PI-:active:not(._3-MRs){background:#e5e5e5}._43PI-._3-MRs{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._43PI-._3-MRs>svg{opacity:.4}._4O9dK{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -47,7 +47,7 @@ const NumberStepperDecrement = /*#__PURE__*/React__default.forwardRef((_ref, ref
|
|
|
47
47
|
*/
|
|
48
48
|
const handleClick = e => {
|
|
49
49
|
if (!isDisabled) {
|
|
50
|
-
onClick === null || onClick === void 0
|
|
50
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
51
51
|
decrement(true);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
@@ -47,7 +47,7 @@ const NumberStepperIncrement = /*#__PURE__*/React__default.forwardRef((_ref, ref
|
|
|
47
47
|
*/
|
|
48
48
|
const handleClick = e => {
|
|
49
49
|
if (!isDisabled) {
|
|
50
|
-
onClick === null || onClick === void 0
|
|
50
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
51
51
|
increment(true);
|
|
52
52
|
}
|
|
53
53
|
};
|
|
@@ -66,7 +66,7 @@ const NumberStepperInput = /*#__PURE__*/React__default.forwardRef((_ref, ref) =>
|
|
|
66
66
|
* depending on the key that was pressed.
|
|
67
67
|
*/
|
|
68
68
|
const handleKeyDown = e => {
|
|
69
|
-
onKeyDown === null || onKeyDown === void 0
|
|
69
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
70
70
|
if (isExternallyDisabled) return;
|
|
71
71
|
if (e.key === 'ArrowUp') {
|
|
72
72
|
// Prevents browser's default increment
|
|
@@ -101,7 +101,7 @@ const NumberStepperInput = /*#__PURE__*/React__default.forwardRef((_ref, ref) =>
|
|
|
101
101
|
* Selects the DOM element
|
|
102
102
|
*/
|
|
103
103
|
const handleFocus = e => {
|
|
104
|
-
onFocus === null || onFocus === void 0
|
|
104
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
105
105
|
if (isExternallyDisabled) return;
|
|
106
106
|
e.target.select();
|
|
107
107
|
};
|
|
@@ -111,7 +111,7 @@ const NumberStepperInput = /*#__PURE__*/React__default.forwardRef((_ref, ref) =>
|
|
|
111
111
|
* Calls `handleInputBlur`
|
|
112
112
|
*/
|
|
113
113
|
const handleBlur = e => {
|
|
114
|
-
onBlur === null || onBlur === void 0
|
|
114
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
115
115
|
if (isExternallyDisabled) return;
|
|
116
116
|
handleInputBlur(e);
|
|
117
117
|
};
|
|
@@ -41,7 +41,7 @@ const Tabs = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
41
41
|
setTabIndexOfActiveTab(0);
|
|
42
42
|
};
|
|
43
43
|
const handleSelect = key => {
|
|
44
|
-
onChange === null || onChange === void 0
|
|
44
|
+
onChange === null || onChange === void 0 || onChange(key);
|
|
45
45
|
};
|
|
46
46
|
const handleKeyDown = (event, tabElementKey, index) => {
|
|
47
47
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -82,12 +82,12 @@ const Tabs = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
82
82
|
}),
|
|
83
83
|
onKeyDown: event => {
|
|
84
84
|
var _child$props$onKeyDow, _child$props;
|
|
85
|
-
(_child$props$onKeyDow = (_child$props = child.props).onKeyDown) === null || _child$props$onKeyDow === void 0
|
|
85
|
+
(_child$props$onKeyDow = (_child$props = child.props).onKeyDown) === null || _child$props$onKeyDow === void 0 || _child$props$onKeyDow.call(_child$props);
|
|
86
86
|
handleKeyDown(event, key, index);
|
|
87
87
|
},
|
|
88
88
|
onClick: () => {
|
|
89
89
|
var _child$props$onClick, _child$props2;
|
|
90
|
-
(_child$props$onClick = (_child$props2 = child.props).onClick) === null || _child$props$onClick === void 0
|
|
90
|
+
(_child$props$onClick = (_child$props2 = child.props).onClick) === null || _child$props$onClick === void 0 || _child$props$onClick.call(_child$props2);
|
|
91
91
|
handleSelect(key);
|
|
92
92
|
},
|
|
93
93
|
'aria-controls': tabPanelIdPrefix + key
|
|
@@ -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 = {"tabs":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._c-Pao{display:block}._Q9QIv{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._8BjVg{color:#6a6d70;cursor:pointer;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-bottom:1px solid transparent;border-radius:1px}._8BjVg:hover{color:#32363a}._8BjVg:focus{outline:none}._8BjVg._5by0T{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._c-gRO{padding-top:32px}._c-gRO._ZKdv4{display:none}._8BjVg.focus-visible,._8BjVg:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"tabs":"_c-Pao","bar":"_Q9QIv","tab":"_8BjVg","active":"_5by0T","panel":"_c-gRO","inactive":"_ZKdv4"};
|
|
5
|
+
var stylesheet="._c-Pao{display:block}._Q9QIv{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._8BjVg{color:#6a6d70;cursor:pointer;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-bottom:1px solid transparent;border-radius:1px}._8BjVg:hover{color:#32363a}._8BjVg:focus{outline:none}._8BjVg._5by0T{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._c-gRO{padding-top:32px}._c-gRO._ZKdv4{display:none}._8BjVg.focus-visible,._8BjVg:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"toolbar":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._PwG4O,._tQl2z{display:flex}._PwG4O{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._kPorN{width:69px;min-width:auto;max-width:none}._8OIxh{width:100%}._8Atdd{margin-bottom:12px;background-color:transparent!important}._8Atdd:hover{background-color:rgba(11,110,208,.08)!important}._8Atdd:hover>svg{fill:#085caf}._8Atdd:hover>span{color:#085caf}._8Atdd:active{background-color:rgba(11,110,208,.12)!important}._8Atdd:active>svg{fill:#0854a1}._8Atdd:active>span{color:#0854a1}._8Atdd._X4qJH{background-color:rgba(11,110,208,.08)!important}._8Atdd._X4qJH>svg{fill:#0b6ed0}._8Atdd._X4qJH>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._8Atdd._X4qJH:hover{background-color:rgba(11,110,208,.08)!important}._8Atdd._X4qJH:hover>svg{fill:#085caf}._8Atdd._X4qJH:hover>span{color:#085caf}._8Atdd._X4qJH:active{background-color:rgba(11,110,208,.12)!important}._8Atdd._X4qJH:active>svg{fill:#0854a1}._8Atdd._X4qJH:active>span{color:#0854a1}._wOBR1{border-radius:6px}._wOBR1>._C-6bH{display:block;fill:#515559}._AimN4{margin-top:auto;margin-bottom:0}._20--C{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._20--C:hover>._8N2Rn{opacity:1}._uwQVs{width:0;border-width:0;padding:0}._vt5ZB{border-radius:4px;min-width:100%;min-height:100%;outline:none}._OC8vq{width:36px;height:36px;position:absolute;top:48px;right:-18px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10}._8N2Rn{opacity:0}._8N2Rn:hover,._k8L-z,._OC8vq._GR22Q._GR22Q{opacity:1}._OC8vq._-nxVJ._-nxVJ{opacity:0}._OC8vq>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._OC8vq>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._OC8vq>span:hover>svg{fill:#fff}._OC8vq>span:active{background-color:#0854a1;border-color:#0854a1}._OC8vq>span:active>svg{fill:#fff}._OC8vq>span>svg{fill:#515559;border-radius:50%}._vt5ZB._0g2K8{display:none!important}._4JdW7{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._jZBeq{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._3gGrt{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._royYN{fill:#515559}._djNW6{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._3gGrt.focus-visible,._3gGrt:focus-visible,._4JdW7.focus-visible,._4JdW7:focus-visible,._vt5ZB.focus-visible,._vt5ZB:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._OC8vq.focus-visible,._OC8vq:focus-visible{border-color:#0a3f88}._OC8vq:active>span{background-color:#0854a1;border-color:#0854a1}._OC8vq:active>span>svg{fill:#fff}._8N2Rn.focus-visible,._8N2Rn:focus-visible{opacity:1}";
|
|
4
|
+
var styles = {"toolbar":"_tQl2z","toolbarNav":"_PwG4O","toolbarNavCollapsed":"_kPorN","toolbarTabs":"_8OIxh","toolbarTab":"_8Atdd","selected":"_X4qJH","toolbarTabIconButton":"_wOBR1","icon":"_C-6bH","tabsExpandCollapseButton":"_AimN4","toolbarPanels":"_20--C","toolbarPanelExpandCollapseButtonDefaultHidden":"_8N2Rn","toolbarPanelsCollapsed":"_uwQVs","toolbarPanel":"_vt5ZB","toolbarPanelExpandCollapseButton":"_OC8vq","toolbarPanelExpandCollapseButtonDefaultShown":"_k8L-z","overrideShow":"_GR22Q","overrideHide":"_-nxVJ","notSelected":"_0g2K8","buttonWithLabel":"_4JdW7","buttonWithLabelLabel":"_jZBeq","iconButtonWithLabel":"_3gGrt","iconButtonWithLabelIcon":"_royYN","iconButtonWithLabelLabel":"_djNW6"};
|
|
5
|
+
var stylesheet="._PwG4O,._tQl2z{display:flex}._PwG4O{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._kPorN{width:69px;min-width:auto;max-width:none}._8OIxh{width:100%}._8Atdd{margin-bottom:12px;background-color:transparent!important}._8Atdd:hover{background-color:rgba(11,110,208,.08)!important}._8Atdd:hover>svg{fill:#085caf}._8Atdd:hover>span{color:#085caf}._8Atdd:active{background-color:rgba(11,110,208,.12)!important}._8Atdd:active>svg{fill:#0854a1}._8Atdd:active>span{color:#0854a1}._8Atdd._X4qJH{background-color:rgba(11,110,208,.08)!important}._8Atdd._X4qJH>svg{fill:#0b6ed0}._8Atdd._X4qJH>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._8Atdd._X4qJH:hover{background-color:rgba(11,110,208,.08)!important}._8Atdd._X4qJH:hover>svg{fill:#085caf}._8Atdd._X4qJH:hover>span{color:#085caf}._8Atdd._X4qJH:active{background-color:rgba(11,110,208,.12)!important}._8Atdd._X4qJH:active>svg{fill:#0854a1}._8Atdd._X4qJH:active>span{color:#0854a1}._wOBR1{border-radius:6px}._wOBR1>._C-6bH{display:block;fill:#515559}._AimN4{margin-top:auto;margin-bottom:0}._20--C{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._20--C:hover>._8N2Rn{opacity:1}._uwQVs{width:0;border-width:0;padding:0}._vt5ZB{border-radius:4px;min-width:100%;min-height:100%;outline:none}._OC8vq{width:36px;height:36px;position:absolute;top:48px;right:-18px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10}._8N2Rn{opacity:0}._8N2Rn:hover,._k8L-z,._OC8vq._GR22Q._GR22Q{opacity:1}._OC8vq._-nxVJ._-nxVJ{opacity:0}._OC8vq>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._OC8vq>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._OC8vq>span:hover>svg{fill:#fff}._OC8vq>span:active{background-color:#0854a1;border-color:#0854a1}._OC8vq>span:active>svg{fill:#fff}._OC8vq>span>svg{fill:#515559;border-radius:50%}._vt5ZB._0g2K8{display:none!important}._4JdW7{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._jZBeq{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._3gGrt{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._royYN{fill:#515559}._djNW6{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._3gGrt.focus-visible,._3gGrt:focus-visible,._4JdW7.focus-visible,._4JdW7:focus-visible,._vt5ZB.focus-visible,._vt5ZB:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._OC8vq.focus-visible,._OC8vq:focus-visible{border-color:#0a3f88}._OC8vq:active>span{background-color:#0854a1;border-color:#0854a1}._OC8vq:active>span>svg{fill:#fff}._8N2Rn.focus-visible,._8N2Rn:focus-visible{opacity:1}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -104,7 +104,7 @@ const ToolbarPanels = /*#__PURE__*/forwardRef((_ref2, ref) => {
|
|
|
104
104
|
*/
|
|
105
105
|
if (wasExpandCollapseButtonClicked) {
|
|
106
106
|
var _expandCollapseButton;
|
|
107
|
-
(_expandCollapseButton = expandCollapseButtonRef.current) === null || _expandCollapseButton === void 0
|
|
107
|
+
(_expandCollapseButton = expandCollapseButtonRef.current) === null || _expandCollapseButton === void 0 || _expandCollapseButton.focus();
|
|
108
108
|
setWasExpandCollapseButtonClicked(false);
|
|
109
109
|
}
|
|
110
110
|
}, [wasExpandCollapseButtonClicked]);
|
|
@@ -43,7 +43,7 @@ const ToolbarTab = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
43
43
|
const isFocused = focusedIndex === index;
|
|
44
44
|
const isSelected = selectedIndex === index;
|
|
45
45
|
const handleSelect = () => {
|
|
46
|
-
setSelectedIndex === null || setSelectedIndex === void 0
|
|
46
|
+
setSelectedIndex === null || setSelectedIndex === void 0 || setSelectedIndex(Number(index));
|
|
47
47
|
};
|
|
48
48
|
const handleClick = e => {
|
|
49
49
|
/*
|
|
@@ -62,22 +62,22 @@ const ToolbarTab = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
62
62
|
case 'ArrowDown':
|
|
63
63
|
case 'ArrowRight':
|
|
64
64
|
e.preventDefault(); // Prevent page scroll
|
|
65
|
-
focusTab === null || focusTab === void 0
|
|
65
|
+
focusTab === null || focusTab === void 0 || focusTab(getNextIndex(focusedIndex, numTabs));
|
|
66
66
|
break;
|
|
67
67
|
case 'ArrowUp':
|
|
68
68
|
case 'ArrowLeft':
|
|
69
69
|
e.preventDefault(); // Prevent page scroll
|
|
70
|
-
focusTab === null || focusTab === void 0
|
|
70
|
+
focusTab === null || focusTab === void 0 || focusTab(getPrevIndex(focusedIndex, numTabs));
|
|
71
71
|
break;
|
|
72
72
|
case 'PageUp':
|
|
73
73
|
case 'Home':
|
|
74
74
|
e.preventDefault(); // Prevent page scroll
|
|
75
|
-
focusTab === null || focusTab === void 0
|
|
75
|
+
focusTab === null || focusTab === void 0 || focusTab(0);
|
|
76
76
|
break;
|
|
77
77
|
case 'PageDown':
|
|
78
78
|
case 'End':
|
|
79
79
|
e.preventDefault(); // Prevent page scroll
|
|
80
|
-
focusTab === null || focusTab === void 0
|
|
80
|
+
focusTab === null || focusTab === void 0 || focusTab(Number(numTabs) - 1);
|
|
81
81
|
break;
|
|
82
82
|
default:
|
|
83
83
|
}
|
|
@@ -52,10 +52,10 @@ const ToolbarTabs = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
52
52
|
if (isExpandCollapseButtonFocused) {
|
|
53
53
|
if (isCollapsed) {
|
|
54
54
|
var _expandToolbarTabsIco;
|
|
55
|
-
(_expandToolbarTabsIco = expandToolbarTabsIconButtonRef.current) === null || _expandToolbarTabsIco === void 0
|
|
55
|
+
(_expandToolbarTabsIco = expandToolbarTabsIconButtonRef.current) === null || _expandToolbarTabsIco === void 0 || _expandToolbarTabsIco.focus();
|
|
56
56
|
} else {
|
|
57
57
|
var _collapseToolbarTabsI;
|
|
58
|
-
(_collapseToolbarTabsI = collapseToolbarTabsIconButtonWithLabelRef.current) === null || _collapseToolbarTabsI === void 0
|
|
58
|
+
(_collapseToolbarTabsI = collapseToolbarTabsIconButtonWithLabelRef.current) === null || _collapseToolbarTabsI === void 0 || _collapseToolbarTabsI.focus();
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
}, [isCollapsed, isExpandCollapseButtonFocused]);
|
|
@@ -69,7 +69,7 @@ const ToolbarTabs = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
69
69
|
const numTabs = React__default.Children.count(children);
|
|
70
70
|
const focusTab = index => {
|
|
71
71
|
var _tabRefs$current;
|
|
72
|
-
(_tabRefs$current = tabRefs.current) === null || _tabRefs$current === void 0 || (_tabRefs$current = _tabRefs$current[index]) === null || _tabRefs$current === void 0
|
|
72
|
+
(_tabRefs$current = tabRefs.current) === null || _tabRefs$current === void 0 || (_tabRefs$current = _tabRefs$current[index]) === null || _tabRefs$current === void 0 || _tabRefs$current.focus();
|
|
73
73
|
setFocusedIndex(index);
|
|
74
74
|
};
|
|
75
75
|
|
|
@@ -58,7 +58,7 @@ function useControllableState(initialState, onChange, externalState) {
|
|
|
58
58
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
59
59
|
args[_key - 1] = arguments[_key];
|
|
60
60
|
}
|
|
61
|
-
(_onChangeRef$current = onChangeRef.current) === null || _onChangeRef$current === void 0
|
|
61
|
+
(_onChangeRef$current = onChangeRef.current) === null || _onChangeRef$current === void 0 || _onChangeRef$current.call(onChangeRef, nextState, ...args);
|
|
62
62
|
}
|
|
63
63
|
}, [onChangeRef, externalStateRef, internalStateRef]);
|
|
64
64
|
const actualState = externalState === undefined ? state : externalState;
|
|
@@ -50,12 +50,12 @@ const useOverlay = _ref => {
|
|
|
50
50
|
Array.from(containerNode.children).forEach(child => {
|
|
51
51
|
if (!ignoreIds.includes(child.id) && child.id !== overlayId) child.setAttribute('inert', '');
|
|
52
52
|
});
|
|
53
|
-
overlayNode === null || overlayNode === void 0
|
|
53
|
+
overlayNode === null || overlayNode === void 0 || overlayNode.classList.remove(styles.hidden);
|
|
54
54
|
} else {
|
|
55
55
|
Array.from(containerNode.children).forEach(child => {
|
|
56
56
|
child.removeAttribute('inert');
|
|
57
57
|
});
|
|
58
|
-
overlayNode === null || overlayNode === void 0
|
|
58
|
+
overlayNode === null || overlayNode === void 0 || overlayNode.classList.add(styles.hidden);
|
|
59
59
|
}
|
|
60
60
|
return () => {
|
|
61
61
|
Array.from(containerNode.children).forEach(child => {
|
|
@@ -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 = {"overlay":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._1iXuo{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._-d2as{visibility:hidden}";
|
|
4
|
+
var styles = {"overlay":"_1iXuo","hidden":"_-d2as"};
|
|
5
|
+
var stylesheet="._1iXuo{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._-d2as{visibility:hidden}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -25,7 +25,7 @@ function useScreenReaderAnnouncement(politeness) {
|
|
|
25
25
|
// Sets the politeness of `aria-live`
|
|
26
26
|
useEffect(() => {
|
|
27
27
|
var _ariaLiveElementRef$c;
|
|
28
|
-
if (politeness !== undefined) (_ariaLiveElementRef$c = ariaLiveElementRef.current) === null || _ariaLiveElementRef$c === void 0
|
|
28
|
+
if (politeness !== undefined) (_ariaLiveElementRef$c = ariaLiveElementRef.current) === null || _ariaLiveElementRef$c === void 0 || _ariaLiveElementRef$c.setAttribute('aria-live', politeness);
|
|
29
29
|
}, [politeness]);
|
|
30
30
|
|
|
31
31
|
// Announces oldest message in the queue
|
|
@@ -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 classes = {"ariaLiveElement":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._RMr2q{position:absolute;top:-10000px;left:-10000px}";
|
|
4
|
+
var classes = {"ariaLiveElement":"_RMr2q"};
|
|
5
|
+
var stylesheet="._RMr2q{position:absolute;top:-10000px;left:-10000px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { classes as default, stylesheet };
|
package/dist/icons/Icon.js
CHANGED
|
@@ -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 = {"icon":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._OZFCb{flex-shrink:0}";
|
|
4
|
+
var styles = {"icon":"_OZFCb"};
|
|
5
|
+
var stylesheet="._OZFCb{flex-shrink:0}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/dist/icons/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var icons_index = require('../__shared/cjs/index-
|
|
5
|
+
var icons_index = require('../__shared/cjs/index-ae6df097.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
package/dist/index.d.ts
CHANGED
|
@@ -360,6 +360,12 @@ declare const _default: {
|
|
|
360
360
|
newOptionsLoading: string;
|
|
361
361
|
newOptionsLoaded: string;
|
|
362
362
|
locked: string;
|
|
363
|
+
currentPage: string;
|
|
364
|
+
firstPage: string;
|
|
365
|
+
lastPage: string;
|
|
366
|
+
currentPageNumber: string;
|
|
367
|
+
currentPageNumberOf: string;
|
|
368
|
+
rowDisplayCount: string;
|
|
363
369
|
};
|
|
364
370
|
|
|
365
371
|
export declare const DEFAULT_BREAKPOINTS: {
|
package/dist/index.es.js
CHANGED
|
@@ -102,6 +102,6 @@ export { default as deprecated_ToolbarPanel } from './components/deprecated_Tool
|
|
|
102
102
|
|
|
103
103
|
/* eslint-disable camelcase */
|
|
104
104
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
105
|
-
const version = '2.
|
|
105
|
+
const version = '2.26.0';
|
|
106
106
|
|
|
107
107
|
export { version };
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./__shared/cjs/index-
|
|
5
|
+
var index = require('./__shared/cjs/index-dc6f69ac.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('./__shared/cjs/index-
|
|
8
|
+
require('./__shared/cjs/index-ae6df097.js');
|
|
9
9
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
10
10
|
require('react-popper');
|
|
11
11
|
require('@popperjs/core');
|
|
@@ -19,7 +19,7 @@ require('throttle-debounce');
|
|
|
19
19
|
|
|
20
20
|
/* eslint-disable camelcase */
|
|
21
21
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
22
|
-
const version = '2.
|
|
22
|
+
const version = '2.26.0';
|
|
23
23
|
|
|
24
24
|
exports.Accordion = index.Accordion;
|
|
25
25
|
exports.AccordionHeader = index.AccordionHeader;
|
|
@@ -74,6 +74,7 @@ const AdvancedTable = _ref => {
|
|
|
74
74
|
'data-testid': dataTestId,
|
|
75
75
|
rowActions,
|
|
76
76
|
rowActionsButtonAriaLabel,
|
|
77
|
+
rowActionsPlacement = 'bottom-end',
|
|
77
78
|
headerMaxLines
|
|
78
79
|
} = _ref;
|
|
79
80
|
// This handles an edge case where no rows are passed in
|
|
@@ -138,7 +139,8 @@ const AdvancedTable = _ref => {
|
|
|
138
139
|
}
|
|
139
140
|
}
|
|
140
141
|
}, /*#__PURE__*/React__default.createElement(EllipsisHorizontalIcon, null))), /*#__PURE__*/React__default.createElement(DropdownList, {
|
|
141
|
-
className: styles.rowActionMenuPane
|
|
142
|
+
className: styles.rowActionMenuPane,
|
|
143
|
+
placement: rowActionsPlacement
|
|
142
144
|
}, !rows ? [] : rowActions === null || rowActions === void 0 ? void 0 : rowActions.map((actionGroup, groupIndex) => {
|
|
143
145
|
var _actionGroup$actions;
|
|
144
146
|
const row = rows[rowIndex];
|
|
@@ -206,7 +208,7 @@ const AdvancedTable = _ref => {
|
|
|
206
208
|
const setColumnOrder = useEventCallback(value => {
|
|
207
209
|
const newColumnOrder = typeof value === 'function' ? value(columnOrder) : value;
|
|
208
210
|
setInternalColumnOrder(newColumnOrder);
|
|
209
|
-
onColumnOrderChange === null || onColumnOrderChange === void 0
|
|
211
|
+
onColumnOrderChange === null || onColumnOrderChange === void 0 || onColumnOrderChange(newColumnOrder);
|
|
210
212
|
});
|
|
211
213
|
const {
|
|
212
214
|
pinnedColumnConfigs,
|
|
@@ -298,7 +300,7 @@ const AdvancedTable = _ref => {
|
|
|
298
300
|
} else if (expand !== false) {
|
|
299
301
|
rowPropReference.isExpanded = true;
|
|
300
302
|
}
|
|
301
|
-
onRowsChange === null || onRowsChange === void 0
|
|
303
|
+
onRowsChange === null || onRowsChange === void 0 || onRowsChange([...rowsProp]);
|
|
302
304
|
};
|
|
303
305
|
const getLastToggledRowIndex = () => {
|
|
304
306
|
const index = rows === null || rows === void 0 ? void 0 : rows.findIndex(_ref4 => {
|
|
@@ -569,7 +571,7 @@ const AdvancedTable = _ref => {
|
|
|
569
571
|
setValue: newValue => {
|
|
570
572
|
const newRows = [...rowsProp];
|
|
571
573
|
rowPropReference.data[columnId] = newValue;
|
|
572
|
-
onRowsChange === null || onRowsChange === void 0
|
|
574
|
+
onRowsChange === null || onRowsChange === void 0 || onRowsChange(newRows);
|
|
573
575
|
},
|
|
574
576
|
renderCellContent,
|
|
575
577
|
isCellContentInteractive,
|
|
@@ -667,7 +669,7 @@ const AdvancedTable = _ref => {
|
|
|
667
669
|
const onSelect = e => {
|
|
668
670
|
e.preventDefault(); // stops event from triggering on new target when focus is changed during onSelect
|
|
669
671
|
if (hasOnRowSelect) {
|
|
670
|
-
onRowSelect === null || onRowSelect === void 0
|
|
672
|
+
onRowSelect === null || onRowSelect === void 0 || onRowSelect(row.rowPropReference);
|
|
671
673
|
setSelectedRowId(rowId);
|
|
672
674
|
}
|
|
673
675
|
};
|
|
@@ -848,7 +850,7 @@ function useFocusState(_ref8) {
|
|
|
848
850
|
tableRef.current.scrollLeft -= pinnedContainerPos.left + pinnedContainerPos.width - cellPos.left;
|
|
849
851
|
}
|
|
850
852
|
}
|
|
851
|
-
cell === null || cell === void 0
|
|
853
|
+
cell === null || cell === void 0 || cell.focus();
|
|
852
854
|
});
|
|
853
855
|
|
|
854
856
|
// Focus header cell when the focused column id changes. Used when pinning/unpinning columns since a new DOM element is created.
|