@qualtrics/ui-react 2.22.0 → 2.23.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 +30 -0
- package/dist/__shared/cjs/{index-025620bf.js → index-10d6f3f3.js} +385 -220
- package/dist/__shared/cjs/{index-41a013d2.js → index-7f78e01b.js} +115 -3
- package/dist/components/Accordion/Accordion.js +1 -2
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +1 -0
- package/dist/components/Accordion/AccordionSection.js +1 -2
- package/dist/components/Banner/Banner.css.js +21 -0
- package/dist/components/Banner/Banner.css.ts.vanilla.js +8 -0
- package/dist/components/Banner/Banner.js +105 -0
- package/dist/components/Banner/index.js +1 -0
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Palette.js +2 -2
- package/dist/components/Combobox/Combobox.js +14 -16
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane.js +2 -0
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +4 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownList.js +4 -3
- package/dist/components/Dropdown/DropdownOption.js +2 -6
- package/dist/components/Dropdown/DropdownSearch.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/FullScreenTakeover/FullScreenTakeover.js +6 -1
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/IconTypes.js +28 -0
- package/dist/components/IconButton/IconButton.js +2 -1
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/utils.js +1 -1
- package/dist/components/Modal/Modal.js +3 -1
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +15 -17
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +1 -1
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover.js +2 -1
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +1 -1
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +1 -0
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- 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/Tooltip.js +2 -1
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +4 -2
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +2 -2
- package/dist/components/index.js +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.js +1 -1
- package/dist/hooks/useIsTruncated/useIsTruncated.js +6 -0
- package/dist/hooks/useOverlay/useOverlay.js +1 -2
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/AgentLeftIcon.js +6 -0
- package/dist/icons/components/AgentRightIcon.js +6 -0
- package/dist/icons/components/ChevronSetIcon.js +6 -0
- package/dist/icons/components/ChevronSkipBackIcon.js +6 -0
- package/dist/icons/components/ChevronSkipForwardIcon.js +6 -0
- package/dist/icons/components/ColumnsIcon.js +6 -0
- package/dist/icons/components/CustomerLeftIcon.js +6 -0
- package/dist/icons/components/CustomerRightIcon.js +6 -0
- package/dist/icons/components/DetectedIcon.js +6 -0
- package/dist/icons/components/EffortEasyIcon.js +6 -0
- package/dist/icons/components/EffortHardIcon.js +6 -0
- package/dist/icons/components/EffortMixedIcon.js +6 -0
- package/dist/icons/components/EffortNeutralIcon.js +6 -0
- package/dist/icons/components/EffortVeryEasyIcon.js +6 -0
- package/dist/icons/components/EffortVeryHardIcon.js +6 -0
- package/dist/icons/components/IgnoredIcon.js +6 -0
- package/dist/icons/components/InsertLineIcon.js +6 -0
- package/dist/icons/components/IntensityHighIcon.js +6 -0
- package/dist/icons/components/IntensityLowIcon.js +6 -0
- package/dist/icons/components/IntensityMediumIcon.js +6 -0
- package/dist/icons/components/RaiseHandIcon.js +6 -0
- package/dist/icons/components/SentimentMixedIcon.js +6 -0
- package/dist/icons/components/SentimentNegativeIcon.js +6 -0
- package/dist/icons/components/SentimentNeutralIcon.js +6 -0
- package/dist/icons/components/SentimentPositiveIcon.js +6 -0
- package/dist/icons/components/SentimentVeryNegativeIcon.js +6 -0
- package/dist/icons/components/SentimentVeryPositiveIcon.js +6 -0
- package/dist/icons/components/UndetectedIcon.js +6 -0
- package/dist/icons/index.d.ts +56 -0
- package/dist/icons/index.es.js +28 -0
- package/dist/icons/index.js +29 -1
- package/dist/index.d.ts +77 -0
- package/dist/index.es.js +2 -1
- package/dist/index.js +7 -4
- package/dist/next/AdvancedTable/AdvancedTable.js +14 -14
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableTypes.js +6 -6
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +1 -1
- package/dist/next/Drawer/Drawer.js +6 -2
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +16 -3
- package/dist/next/Menu/MenuItem.js +2 -5
- package/dist/next/Menu/MenuPane.js +4 -4
- package/dist/next/Menu/SubMenu.js +4 -10
- package/dist/next/Menu/usePaneSearch.js +6 -8
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker.js +8 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/utils.js +4 -18
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.js +107 -110
- package/dist/translations-en.js +3 -0
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Translation/containsComponentOrElement.js +1 -3
- package/dist/utils/filterChildren/filterChildren.js +2 -2
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +11 -5
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
3
2
|
import React__default, { useMemo, useState, useCallback, useEffect, useRef } from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
5
4
|
import { DndProvider } from 'react-dnd';
|
|
@@ -126,6 +125,7 @@ const AdvancedTable = _ref => {
|
|
|
126
125
|
onKeyDown: e => {
|
|
127
126
|
if (e.key === 'Escape') {
|
|
128
127
|
focusCell();
|
|
128
|
+
e.preventDefault(); // Prevent Safari from exiting full-screen mode
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}, /*#__PURE__*/React__default.createElement(EllipsisHorizontalIcon, null))), /*#__PURE__*/React__default.createElement(DropdownList, {
|
|
@@ -356,7 +356,7 @@ const AdvancedTable = _ref => {
|
|
|
356
356
|
if (!rows || startIndex === headerRowIndex || endIndex === headerRowIndex) {
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
const endRowId = rows === null || rows === void 0
|
|
359
|
+
const endRowId = rows === null || rows === void 0 || (_rows$endIndex = rows[endIndex]) === null || _rows$endIndex === void 0 ? void 0 : _rows$endIndex.id;
|
|
360
360
|
const isEndIndexChecked = checkedRowIdsSet.has(endRowId);
|
|
361
361
|
let newCheckedRowIds = [...checkedRowIds];
|
|
362
362
|
const increment = startIndex < endIndex ? 1 : -1;
|
|
@@ -374,7 +374,7 @@ const AdvancedTable = _ref => {
|
|
|
374
374
|
if (hasChildRows) {
|
|
375
375
|
idsToUncheck = idsToUncheck.concat(getAllRowIds(rowPropReference.childRows));
|
|
376
376
|
}
|
|
377
|
-
newCheckedRowIds = newCheckedRowIds.filter(id => !
|
|
377
|
+
newCheckedRowIds = newCheckedRowIds.filter(id => !idsToUncheck.includes(id));
|
|
378
378
|
} else if (!checkedRowIdsSet.has(rowId)) {
|
|
379
379
|
let idsToCheck = [rowId];
|
|
380
380
|
if (hasChildRows) {
|
|
@@ -401,7 +401,7 @@ const AdvancedTable = _ref => {
|
|
|
401
401
|
if (hasChildRows) {
|
|
402
402
|
idsToUncheck = idsToUncheck.concat(getAllRowIds(rowPropReference.childRows));
|
|
403
403
|
}
|
|
404
|
-
setCheckedRowIds(checkedRowIds.filter(id => !
|
|
404
|
+
setCheckedRowIds(checkedRowIds.filter(id => !idsToUncheck.includes(id)));
|
|
405
405
|
} else {
|
|
406
406
|
let idsToCheck = [rowId];
|
|
407
407
|
if (hasChildRows) {
|
|
@@ -521,8 +521,8 @@ const AdvancedTable = _ref => {
|
|
|
521
521
|
} else if (currentColumnWidths[colId]) {
|
|
522
522
|
map[colId] = currentColumnWidths[colId];
|
|
523
523
|
} else {
|
|
524
|
-
var _cellRefs$current
|
|
525
|
-
const colRef = (_cellRefs$current = cellRefs.current) === null || _cellRefs$current === void 0
|
|
524
|
+
var _cellRefs$current;
|
|
525
|
+
const colRef = (_cellRefs$current = cellRefs.current) === null || _cellRefs$current === void 0 || (_cellRefs$current = _cellRefs$current[headerRowIndex]) === null || _cellRefs$current === void 0 ? void 0 : _cellRefs$current[index];
|
|
526
526
|
map[colId] = colRef === null || colRef === void 0 ? void 0 : colRef.getBoundingClientRect().width;
|
|
527
527
|
}
|
|
528
528
|
return map;
|
|
@@ -777,7 +777,7 @@ function useSortedRows(_ref6) {
|
|
|
777
777
|
const columnConfigsRef = useLatest(columnConfigs);
|
|
778
778
|
const onRowsChangeRef = useLatest(onRowsChange);
|
|
779
779
|
useDidUpdate(() => {
|
|
780
|
-
var _columnConfigsRef$cur
|
|
780
|
+
var _columnConfigsRef$cur;
|
|
781
781
|
const {
|
|
782
782
|
columnId,
|
|
783
783
|
index
|
|
@@ -787,7 +787,7 @@ function useSortedRows(_ref6) {
|
|
|
787
787
|
id
|
|
788
788
|
} = _ref7;
|
|
789
789
|
return id === columnId;
|
|
790
|
-
})) === null || _columnConfigsRef$cur === void 0
|
|
790
|
+
})) === null || _columnConfigsRef$cur === void 0 || (_columnConfigsRef$cur = _columnConfigsRef$cur.sortOptions) === null || _columnConfigsRef$cur === void 0 || (_columnConfigsRef$cur = _columnConfigsRef$cur[index]) === null || _columnConfigsRef$cur === void 0 ? void 0 : _columnConfigsRef$cur.sort;
|
|
791
791
|
if (typeof sort === 'function' && onRowsChangeRef.current) {
|
|
792
792
|
onRowsChangeRef.current(sort(selectedSortOption));
|
|
793
793
|
setCurrentPage(1);
|
|
@@ -832,10 +832,10 @@ function useFocusState(_ref8) {
|
|
|
832
832
|
return newIndex;
|
|
833
833
|
};
|
|
834
834
|
const focusCell = useEventCallback(cell => {
|
|
835
|
-
var _tableRef$current, _cellRefs$current2
|
|
835
|
+
var _tableRef$current, _cellRefs$current2;
|
|
836
836
|
// Manually scroll cells/rows into view if needed
|
|
837
837
|
const tablePos = (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getBoundingClientRect();
|
|
838
|
-
const header = (_cellRefs$current2 = cellRefs.current) === null || _cellRefs$current2 === void 0
|
|
838
|
+
const header = (_cellRefs$current2 = cellRefs.current) === null || _cellRefs$current2 === void 0 || (_cellRefs$current2 = _cellRefs$current2[headerRowIndex]) === null || _cellRefs$current2 === void 0 ? void 0 : _cellRefs$current2[-1];
|
|
839
839
|
const headerPos = header === null || header === void 0 ? void 0 : header.getBoundingClientRect();
|
|
840
840
|
let cellPos = cell === null || cell === void 0 ? void 0 : cell.getBoundingClientRect();
|
|
841
841
|
|
|
@@ -881,9 +881,9 @@ function useFocusState(_ref8) {
|
|
|
881
881
|
// Focus header cell when the focused column id changes. Used when pinning/unpinning columns since a new DOM element is created.
|
|
882
882
|
useDidUpdate(() => {
|
|
883
883
|
if (focusedColumnId) {
|
|
884
|
-
var _cellRefs$current3
|
|
884
|
+
var _cellRefs$current3;
|
|
885
885
|
const columnIndex = pinnedUnpinnedColumnOrder.indexOf(focusedColumnId);
|
|
886
|
-
focusCell((_cellRefs$current3 = cellRefs.current) === null || _cellRefs$current3 === void 0
|
|
886
|
+
focusCell((_cellRefs$current3 = cellRefs.current) === null || _cellRefs$current3 === void 0 || (_cellRefs$current3 = _cellRefs$current3[focusedRowIndex]) === null || _cellRefs$current3 === void 0 ? void 0 : _cellRefs$current3[columnIndex]);
|
|
887
887
|
setFocusedColumnIndex(columnIndex);
|
|
888
888
|
setFocusedColumnId(undefined);
|
|
889
889
|
}
|
|
@@ -891,8 +891,8 @@ function useFocusState(_ref8) {
|
|
|
891
891
|
|
|
892
892
|
// Focus cell when the focused indices change
|
|
893
893
|
useDidUpdate(() => {
|
|
894
|
-
var _cellRefs$current4
|
|
895
|
-
const newFocusedCell = (_cellRefs$current4 = cellRefs.current) === null || _cellRefs$current4 === void 0
|
|
894
|
+
var _cellRefs$current4;
|
|
895
|
+
const newFocusedCell = (_cellRefs$current4 = cellRefs.current) === null || _cellRefs$current4 === void 0 || (_cellRefs$current4 = _cellRefs$current4[focusedRowIndex]) === null || _cellRefs$current4 === void 0 ? void 0 : _cellRefs$current4[focusedColumnIndex];
|
|
896
896
|
|
|
897
897
|
/* Prevent cells from stealing focus from their children when they
|
|
898
898
|
* receive focus, but still allow focus to move from a cell to a row.
|
|
@@ -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 = {"advancedTable":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._5duf1{overflow:auto;position:relative;max-width:100%;max-height:100%}._5duf1,._UzR-x{background-color:#fff}._UzR-x{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._LT-mN{margin-bottom:4px}._2Ov40{position:-webkit-sticky;position:sticky;top:0;z-index:100}._kCowG{display:flex}._kCowG:focus{outline:none}._kCowG.focus-visible ._5COUG:after,._kCowG:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._kCowG.focus-visible ._5COUG:last-of-type:after,._kCowG:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._kCowG.focus-visible ._5COUG:first-of-type:after,._kCowG:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._kCowG.focus-visible ._5COUG._ekMNL:after,._kCowG:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._nqTUi{padding-right:3px}._r9lFo{display:flex}._r9lFo._K8Y7X ._5COUG,._r9lFo._K8Y7X ._I21qU{cursor:pointer}._r9lFo._S8WbH ._5COUG,._r9lFo._S8WbH ._I21qU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL,._r9lFo._S8WbH ._I21qU._ekMNL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL ._EbhSs,._r9lFo._S8WbH ._5COUG._ekMNL ._I21qU,._r9lFo._S8WbH ._5COUG._ekMNL ._l6gx8,._r9lFo._S8WbH ._I21qU._ekMNL ._EbhSs,._r9lFo._S8WbH ._I21qU._ekMNL ._I21qU,._r9lFo._S8WbH ._I21qU._ekMNL ._l6gx8{background-color:rgba(11,110,208,.08)}._r9lFo._K8Y7X:hover:not(._S8WbH):not(._4xVZv) ._5COUG,._r9lFo._K8Y7X:hover:not(._S8WbH):not(._4xVZv) ._I21qU{background-color:#f9f9f9}._r9lFo._K8Y7X:active:not(._S8WbH):not(._4xVZv) ._5COUG,._r9lFo._K8Y7X:active:not(._S8WbH):not(._4xVZv) ._I21qU{background-color:#f3f3f3}._r9lFo:focus{outline:none}._r9lFo.focus-visible ._5COUG:after,._r9lFo:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo.focus-visible ._5COUG:last-of-type:after,._r9lFo:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG:first-of-type:after,._r9lFo:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG._ekMNL:after,._r9lFo:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:last-of-type:focus{outline:none}._r9lFo:last-of-type.focus-visible ._5COUG:after,._r9lFo:last-of-type:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo:last-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:last-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._r9lFo:last-of-type ._EbhSs:focus{outline:none}._r9lFo:last-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:last-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:last-of-type ._EbhSs.focus-visible:after,._r9lFo:last-of-type ._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._r9lFo:first-of-type:focus{outline:none}._r9lFo:first-of-type.focus-visible ._5COUG:after,._r9lFo:first-of-type:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo:first-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:first-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:first-of-type ._EbhSs:focus{outline:none}._r9lFo:first-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:first-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:first-of-type ._EbhSs.focus-visible:after,._r9lFo:first-of-type ._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._6VmUw{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._6VmUw._wfWhs{flex-grow:1}._6VmUw._I4Xni{cursor:pointer}._6VmUw._I4Xni:hover:not(._Z8aOc){background-color:#f9f9f9;border-bottom-color:#6a6d70}._6VmUw._I4Xni:active:not(._Z8aOc){background-color:#f3f3f3}._6VmUw._5UYie:not(._Z8aOc){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._6VmUw._Z8aOc{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._6VmUw ._rMjzH{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._6VmUw ._rMjzH._wBMdO{left:-1px}._6VmUw ._rMjzH._TlgsJ{right:0}._6VmUw ._NYJK8{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._6VmUw ._NYJK8._wBMdO{left:-2px}._6VmUw ._NYJK8._TlgsJ{right:-1px}._6VmUw:first-of-type ._wBMdO._rMjzH{left:0;width:2px;border-left:1px solid #fff}._6VmUw:first-of-type ._wBMdO._NYJK8{left:0}._6VmUw:last-of-type ._TlgsJ._rMjzH{right:0;width:2px;border-right:1px solid #fff}._6VmUw:last-of-type ._TlgsJ._NYJK8{right:0}._6VmUw ._uPvKK{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._6VmUw ._uPvKK ._4UED0{position:absolute;width:2px;right:2px;top:0;bottom:0}._6VmUw ._uPvKK ._4UED0._XX8Zl{background-color:#0a6ed1}._6VmUw ._uPvKK:hover ._4UED0:not(._XX8Zl){background-color:#d9d9d9}._6VmUw ._9DTLc{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._6VmUw ._9DTLc._y4jT0{flex-direction:row-reverse;justify-content:flex-start}._6VmUw ._9DTLc._y4jT0 ._7eetG{margin:1px 7px 1px 1px}._6VmUw ._9DTLc ._nXcgY{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._6VmUw ._9DTLc ._7eetG{margin:1px 1px 1px 7px;flex-shrink:0}._6VmUw ._r9W7L{margin-left:6px;margin-right:4px;flex-shrink:0}._6VmUw ._Uy6sm{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._6VmUw:focus{outline:none}._6VmUw._iGaO6.focus-visible:after,._6VmUw._iGaO6:focus-visible:after,._6VmUw.focus-visible:after,._6VmUw:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._1YC66{margin-right:6px}._ekMNL{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._ekMNL[focus-within]{z-index:30}._ekMNL:focus-within{z-index:30}._EbhSs{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._EbhSs ._uGdnn{width:100%;padding:12px 12px 11px;overflow:hidden}._EbhSs._Z8aOc{background-color:#efefef;border-bottom-color:#dfdfe1}._EbhSs._wfWhs{flex-grow:1}._EbhSs:focus{outline:none}._EbhSs._iGaO6.focus-visible:after,._EbhSs._iGaO6:focus-visible:after,._EbhSs.focus-visible:after,._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._I21qU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._I21qU._ZkjPS{border-bottom-color:#d9d9d9;background-color:#fff}._l6gx8{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._l6gx8._ZkjPS{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._l6gx8:focus input~span,._l6gx8:hover input~span{border-color:#0b6ed0}._l6gx8 ._u2avt{position:relative;display:inline-flex}._l6gx8 ._u2avt ._bwUnr{margin:0!important}._l6gx8 ._u2avt ._5mToY{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._lHnSZ{justify-content:flex-start}._-vAfW{justify-content:center;text-align:center}._y4jT0{justify-content:flex-end;text-align:right}._U6Svj{display:none}._e3-ti{opacity:0;height:0;width:0;overflow:hidden}._e3-ti,._mepKY{position:absolute}._mepKY{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._dEcGs{width:246px}";
|
|
4
|
+
var styles = {"advancedTable":"_5duf1","advancedTablePaginationContainer":"_UzR-x","advancedTablePagination":"_LT-mN","advancedTableColumnHeadersRowGroup":"_2Ov40","advancedTableColumnHeaders":"_kCowG","advancedTableRowChild":"_5COUG","pinnedContainer":"_ekMNL","advancedTableRowGroup":"_nqTUi","advancedTableRow":"_r9lFo","hasRowAction":"_K8Y7X","advancedTableExpandRowSpacer":"_I21qU","isSelected":"_S8WbH","advancedTableCheckbox":"_l6gx8","advancedTableCell":"_EbhSs","isCheckboxHovered":"_4xVZv","showFocusRing":"_iGaO6","advancedTableColumnHeader":"_6VmUw","fillRemainingSpace":"_wfWhs","isSortable":"_I4Xni","isDragging":"_Z8aOc","isSorted":"_5UYie","dropTargetLine":"_rMjzH","dropTargetLeft":"_wBMdO","dropTargetRight":"_TlgsJ","dropTargetMarker":"_NYJK8","resizeHandle":"_uPvKK","resizeLine":"_4UED0","isResizing":"_XX8Zl","advancedTableColumnHeaderLabel":"_9DTLc","rightAligned":"_y4jT0","sortIcon":"_7eetG","advancedTableColumnHeaderLabelText":"_nXcgY","advancedTableColumnHeaderMenu":"_r9W7L","advancedTableColumnHeaderMenuHiddenAnchor":"_Uy6sm","advancedTableColumnHeaderMenuItemIcon":"_1YC66","advancedTableCellContainer":"_uGdnn","header":"_ZkjPS","checkboxContainer":"_u2avt","checkbox":"_bwUnr","mixed":"_5mToY","leftAligned":"_lHnSZ","centerAligned":"_-vAfW","hiddenDescription":"_U6Svj","hiddenLiveRegion":"_e3-ti","dragPreview":"_mepKY","rowActionMenuPane":"_dEcGs"};
|
|
5
|
+
var stylesheet="._5duf1{overflow:auto;position:relative;max-width:100%;max-height:100%}._5duf1,._UzR-x{background-color:#fff}._UzR-x{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._LT-mN{margin-bottom:4px}._2Ov40{position:-webkit-sticky;position:sticky;top:0;z-index:100}._kCowG{display:flex}._kCowG:focus{outline:none}._kCowG.focus-visible ._5COUG:after,._kCowG:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._kCowG.focus-visible ._5COUG:last-of-type:after,._kCowG:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._kCowG.focus-visible ._5COUG:first-of-type:after,._kCowG:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._kCowG.focus-visible ._5COUG._ekMNL:after,._kCowG:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._nqTUi{padding-right:3px}._r9lFo{display:flex}._r9lFo._K8Y7X ._5COUG,._r9lFo._K8Y7X ._I21qU{cursor:pointer}._r9lFo._S8WbH ._5COUG,._r9lFo._S8WbH ._I21qU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL,._r9lFo._S8WbH ._I21qU._ekMNL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL ._EbhSs,._r9lFo._S8WbH ._5COUG._ekMNL ._I21qU,._r9lFo._S8WbH ._5COUG._ekMNL ._l6gx8,._r9lFo._S8WbH ._I21qU._ekMNL ._EbhSs,._r9lFo._S8WbH ._I21qU._ekMNL ._I21qU,._r9lFo._S8WbH ._I21qU._ekMNL ._l6gx8{background-color:rgba(11,110,208,.08)}._r9lFo._K8Y7X:hover:not(._S8WbH):not(._4xVZv) ._5COUG,._r9lFo._K8Y7X:hover:not(._S8WbH):not(._4xVZv) ._I21qU{background-color:#f9f9f9}._r9lFo._K8Y7X:active:not(._S8WbH):not(._4xVZv) ._5COUG,._r9lFo._K8Y7X:active:not(._S8WbH):not(._4xVZv) ._I21qU{background-color:#f3f3f3}._r9lFo:focus{outline:none}._r9lFo.focus-visible ._5COUG:after,._r9lFo:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo.focus-visible ._5COUG:last-of-type:after,._r9lFo:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG:first-of-type:after,._r9lFo:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG._ekMNL:after,._r9lFo:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:last-of-type:focus{outline:none}._r9lFo:last-of-type.focus-visible ._5COUG:after,._r9lFo:last-of-type:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo:last-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:last-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._r9lFo:last-of-type ._EbhSs:focus{outline:none}._r9lFo:last-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:last-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:last-of-type ._EbhSs.focus-visible:after,._r9lFo:last-of-type ._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._r9lFo:first-of-type:focus{outline:none}._r9lFo:first-of-type.focus-visible ._5COUG:after,._r9lFo:first-of-type:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo:first-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:first-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:first-of-type ._EbhSs:focus{outline:none}._r9lFo:first-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:first-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:first-of-type ._EbhSs.focus-visible:after,._r9lFo:first-of-type ._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._6VmUw{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._6VmUw._wfWhs{flex-grow:1}._6VmUw._I4Xni{cursor:pointer}._6VmUw._I4Xni:hover:not(._Z8aOc){background-color:#f9f9f9;border-bottom-color:#6a6d70}._6VmUw._I4Xni:active:not(._Z8aOc){background-color:#f3f3f3}._6VmUw._5UYie:not(._Z8aOc){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._6VmUw._Z8aOc{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._6VmUw ._rMjzH{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._6VmUw ._rMjzH._wBMdO{left:-1px}._6VmUw ._rMjzH._TlgsJ{right:0}._6VmUw ._NYJK8{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._6VmUw ._NYJK8._wBMdO{left:-2px}._6VmUw ._NYJK8._TlgsJ{right:-1px}._6VmUw:first-of-type ._wBMdO._rMjzH{left:0;width:2px;border-left:1px solid #fff}._6VmUw:first-of-type ._wBMdO._NYJK8{left:0}._6VmUw:last-of-type ._TlgsJ._rMjzH{right:0;width:2px;border-right:1px solid #fff}._6VmUw:last-of-type ._TlgsJ._NYJK8{right:0}._6VmUw ._uPvKK{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._6VmUw ._uPvKK ._4UED0{position:absolute;width:2px;right:2px;top:0;bottom:0}._6VmUw ._uPvKK ._4UED0._XX8Zl{background-color:#0a6ed1}._6VmUw ._uPvKK:hover ._4UED0:not(._XX8Zl){background-color:#d9d9d9}._6VmUw ._9DTLc{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._6VmUw ._9DTLc._y4jT0{flex-direction:row-reverse;justify-content:flex-start}._6VmUw ._9DTLc._y4jT0 ._7eetG{margin:1px 7px 1px 1px}._6VmUw ._9DTLc ._nXcgY{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._6VmUw ._9DTLc ._7eetG{margin:1px 1px 1px 7px;flex-shrink:0}._6VmUw ._r9W7L{margin-left:6px;margin-right:4px;flex-shrink:0}._6VmUw ._Uy6sm{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._6VmUw:focus{outline:none}._6VmUw._iGaO6.focus-visible:after,._6VmUw._iGaO6:focus-visible:after,._6VmUw.focus-visible:after,._6VmUw:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._1YC66{margin-right:6px}._ekMNL{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._ekMNL[focus-within]{z-index:30}._ekMNL:focus-within{z-index:30}._EbhSs{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._EbhSs ._uGdnn{width:100%;padding:12px 12px 11px;overflow:hidden}._EbhSs._Z8aOc{background-color:#efefef;border-bottom-color:#dfdfe1}._EbhSs._wfWhs{flex-grow:1}._EbhSs:focus{outline:none}._EbhSs._iGaO6.focus-visible:after,._EbhSs._iGaO6:focus-visible:after,._EbhSs.focus-visible:after,._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._I21qU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._I21qU._ZkjPS{border-bottom-color:#d9d9d9;background-color:#fff}._l6gx8{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._l6gx8._ZkjPS{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._l6gx8:focus input~span,._l6gx8:hover input~span{border-color:#0b6ed0}._l6gx8 ._u2avt{position:relative;display:inline-flex}._l6gx8 ._u2avt ._bwUnr{margin:0!important}._l6gx8 ._u2avt ._5mToY{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._lHnSZ{justify-content:flex-start}._-vAfW{justify-content:center;text-align:center}._y4jT0{justify-content:flex-end;text-align:right}._U6Svj{display:none}._e3-ti{opacity:0;height:0;width:0;overflow:hidden}._e3-ti,._mepKY{position:absolute}._mepKY{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._dEcGs{width:246px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -5,7 +5,7 @@ import styles from './AdvancedTable2.js';
|
|
|
5
5
|
import Portal from '../../utils/Portal/Portal.js';
|
|
6
6
|
|
|
7
7
|
const AdvancedTableDragPreview = _ref => {
|
|
8
|
-
var _columnHeaderRefs$ite,
|
|
8
|
+
var _columnHeaderRefs$ite, _tableRef$current;
|
|
9
9
|
let {
|
|
10
10
|
tableRef,
|
|
11
11
|
columnHeaderRefs
|
|
@@ -17,8 +17,8 @@ const AdvancedTableDragPreview = _ref => {
|
|
|
17
17
|
item: monitor.getItem(),
|
|
18
18
|
currentOffset: monitor.getSourceClientOffset()
|
|
19
19
|
}));
|
|
20
|
-
const width = columnHeaderRefs === null || columnHeaderRefs === void 0
|
|
21
|
-
const height = (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0
|
|
20
|
+
const width = columnHeaderRefs === null || columnHeaderRefs === void 0 || (_columnHeaderRefs$ite = columnHeaderRefs[item === null || item === void 0 ? void 0 : item.columnIndex]) === null || _columnHeaderRefs$ite === void 0 || (_columnHeaderRefs$ite = _columnHeaderRefs$ite.getBoundingClientRect()) === null || _columnHeaderRefs$ite === void 0 ? void 0 : _columnHeaderRefs$ite.width;
|
|
21
|
+
const height = (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 || (_tableRef$current = _tableRef$current.getBoundingClientRect()) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.height;
|
|
22
22
|
const top = (currentOffset === null || currentOffset === void 0 ? void 0 : currentOffset.y) || 0;
|
|
23
23
|
const left = (currentOffset === null || currentOffset === void 0 ? void 0 : currentOffset.x) || 0;
|
|
24
24
|
return /*#__PURE__*/React__default.createElement(Portal, null, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
// Also Alignment, etc can be defined directly and have AdvancedTableColumnConfig use them instead of the reverse like now.
|
|
3
3
|
// Context: Zach was trying to make type-doc work better, but it's probably not worth the weird organization.
|
|
4
4
|
|
|
5
|
-
let SortDirections
|
|
6
|
-
(function (SortDirections) {
|
|
5
|
+
let SortDirections = /*#__PURE__*/function (SortDirections) {
|
|
7
6
|
SortDirections["Ascending"] = "ascending";
|
|
8
7
|
SortDirections["Descending"] = "descending";
|
|
9
8
|
SortDirections["None"] = "none";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
return SortDirections;
|
|
10
|
+
}({});
|
|
11
|
+
let Alignments = /*#__PURE__*/function (Alignments) {
|
|
13
12
|
Alignments["Left"] = "left";
|
|
14
13
|
Alignments["Right"] = "right";
|
|
15
14
|
Alignments["Center"] = "center";
|
|
16
|
-
|
|
15
|
+
return Alignments;
|
|
16
|
+
}({});
|
|
17
17
|
|
|
18
18
|
export { Alignments, SortDirections };
|
|
@@ -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 = {"collapsibleSearchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._uTD5J{display:inline-block;width:36px;transition:width .25s ease-out}._YYGib{width:100%}._cwKep>input{padding-right:0!important}._AIeYS>svg{fill:#515559}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_uTD5J","searchInput":"_YYGib","searchInputCollapsed":"_cwKep","iconButton":"_AIeYS"};
|
|
5
|
+
var stylesheet="._uTD5J{display:inline-block;width:36px;transition:width .25s ease-out}._YYGib{width:100%}._cwKep>input{padding-right:0!important}._AIeYS>svg{fill:#515559}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._bhmBy :after{background-color:#515559!important}._sFnjR>input:focus{box-shadow:none!important;border:1px solid #898989!important}._WKfh4{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._WKfh4 ._0t9yj ._Tsgp2{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._WKfh4 ._0t9yj:first-child ._J4CEN{display:none}._WKfh4 ._FApep{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._WKfh4 ._FApep:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._WKfh4 ._FApep:hover._Dl60X{background-color:#e4effa}._WKfh4 ._FApep._Dl60X{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._WKfh4 ._FApep:active:not(._Dl60X){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_bhmBy","ignoreFocusStyle":"_sFnjR","flyout":"_WKfh4","group":"_0t9yj","header":"_Tsgp2","divider":"_J4CEN","option":"_FApep","selected":"_Dl60X"};
|
|
5
|
+
var stylesheet="._bhmBy :after{background-color:#515559!important}._sFnjR>input:focus{box-shadow:none!important;border:1px solid #898989!important}._WKfh4{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._WKfh4 ._0t9yj ._Tsgp2{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._WKfh4 ._0t9yj:first-child ._J4CEN{display:none}._WKfh4 ._FApep{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._WKfh4 ._FApep:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._WKfh4 ._FApep:hover._Dl60X{background-color:#e4effa}._WKfh4 ._FApep._Dl60X{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._WKfh4 ._FApep:active:not(._Dl60X){background-color:#e8e9e9}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -74,7 +74,7 @@ const ComboboxInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
74
74
|
case 'Escape':
|
|
75
75
|
if (isOpen) {
|
|
76
76
|
e.stopPropagation(); // Prevents event from closing modals or popovers
|
|
77
|
-
|
|
77
|
+
e.preventDefault(); // Prevents Safari from exiting full-screen mode
|
|
78
78
|
if (committedInputValue !== '' &&
|
|
79
79
|
// An empty string is not considered to be a committed input value when escape is pressed
|
|
80
80
|
rawInputValue !== committedInputValue) {
|
|
@@ -56,8 +56,12 @@ const Drawer = _ref => {
|
|
|
56
56
|
setIsOpen(false);
|
|
57
57
|
};
|
|
58
58
|
const handleKeyDown = e => {
|
|
59
|
-
if (e.key === 'Escape')
|
|
59
|
+
if (e.key === 'Escape') {
|
|
60
|
+
close();
|
|
61
|
+
e.preventDefault(); // Prevent Safari from exiting full-screen mode
|
|
62
|
+
}
|
|
60
63
|
};
|
|
64
|
+
|
|
61
65
|
useOverlay({
|
|
62
66
|
containerRef,
|
|
63
67
|
isVisible: isOpen,
|
|
@@ -74,7 +78,7 @@ const Drawer = _ref => {
|
|
|
74
78
|
} else {
|
|
75
79
|
var _elementRefToFocusOnC;
|
|
76
80
|
setIsClosing(true);
|
|
77
|
-
if (elementRefToFocusOnClose !== undefined) elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0
|
|
81
|
+
if (elementRefToFocusOnClose !== undefined) elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 || (_elementRefToFocusOnC = elementRefToFocusOnClose.current) === null || _elementRefToFocusOnC === void 0 ? void 0 : _elementRefToFocusOnC.focus();else elementUsedToOpenModal === null || elementUsedToOpenModal === void 0 ? void 0 : elementUsedToOpenModal.focus();
|
|
78
82
|
}
|
|
79
83
|
}, [elementRefToFocusOnClose, isOpen]);
|
|
80
84
|
useEffect(() => {
|
|
@@ -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 = {"drawer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._obOkx{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._xqJBM{visibility:hidden}._Z7u9N{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._BBKCf{padding-top:8px}._h3O2z{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_obOkx","hidden":"_xqJBM","header":"_Z7u9N","title":"_BBKCf","closeButton":"_h3O2z"};
|
|
5
|
+
var stylesheet="._obOkx{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._xqJBM{visibility:hidden}._Z7u9N{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._BBKCf{padding-top:8px}._h3O2z{margin-left:12px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._XFcz8{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._XFcz8:hover:not(._Rgy4d){background-color:rgba(50,54,58,.08)}._XFcz8:hover:not(._Rgy4d)._MHGhD{border-color:#085caf;background-color:rgba(11,110,208,.04)}._XFcz8:hover:not(._Rgy4d)._MHGhD ._AS3wr{color:#32363a}._XFcz8:hover:not(._Rgy4d)._MHGhD ._Ar2jt{fill:#32363a}._XFcz8:hover:not(._Rgy4d)._MHGhD ._lYH2g{fill:#085caf}._XFcz8:hover:not(._Rgy4d)._MHGhD ._d9-qi{background-color:rgba(11,110,208,.11)}._XFcz8:hover:not(._Rgy4d)._MHGhD ._d9-qi ._p9fXQ{color:#085caf}._XFcz8:active:not(._Rgy4d){background-color:#e8e9e9}._XFcz8:active:not(._Rgy4d)._MHGhD{background-color:rgba(11,110,208,.11);border-color:#0854a1}._XFcz8:active:not(._Rgy4d)._MHGhD ._lYH2g{fill:#0854a1}._XFcz8:active:not(._Rgy4d)._MHGhD ._d9-qi{background-color:rgba(11,110,208,.11)}._XFcz8:active:not(._Rgy4d)._MHGhD ._d9-qi ._p9fXQ{color:#0854a1}._XFcz8._Rgy4d{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._XFcz8._MHGhD{border-color:#0b6ed0}._Ar2jt{fill:#515559;margin-right:4px}._AS3wr{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._AS3wr+._d9-qi{margin-left:6px}._AS3wr._Rgy4d{color:#74777a}._d9-qi{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._p9fXQ{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._lYH2g{fill:#515559}._lYH2g._Rgy4d,._lYH2g._Rgy4d._MHGhD{fill:rgba(116,119,122,.4)}._lYH2g._MHGhD{fill:#0b6ed0}._lYH2g._40wqY{transform:rotate(-180deg)}._XFcz8.focus-visible,._XFcz8:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_XFcz8","disabled":"_Rgy4d","selected":"_MHGhD","label":"_AS3wr","lockIcon":"_Ar2jt","chevronIcon":"_lYH2g","selectedFiltersContainer":"_d9-qi","selectedFilters":"_p9fXQ","open":"_40wqY"};
|
|
5
|
+
var stylesheet="._XFcz8{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._XFcz8:hover:not(._Rgy4d){background-color:rgba(50,54,58,.08)}._XFcz8:hover:not(._Rgy4d)._MHGhD{border-color:#085caf;background-color:rgba(11,110,208,.04)}._XFcz8:hover:not(._Rgy4d)._MHGhD ._AS3wr{color:#32363a}._XFcz8:hover:not(._Rgy4d)._MHGhD ._Ar2jt{fill:#32363a}._XFcz8:hover:not(._Rgy4d)._MHGhD ._lYH2g{fill:#085caf}._XFcz8:hover:not(._Rgy4d)._MHGhD ._d9-qi{background-color:rgba(11,110,208,.11)}._XFcz8:hover:not(._Rgy4d)._MHGhD ._d9-qi ._p9fXQ{color:#085caf}._XFcz8:active:not(._Rgy4d){background-color:#e8e9e9}._XFcz8:active:not(._Rgy4d)._MHGhD{background-color:rgba(11,110,208,.11);border-color:#0854a1}._XFcz8:active:not(._Rgy4d)._MHGhD ._lYH2g{fill:#0854a1}._XFcz8:active:not(._Rgy4d)._MHGhD ._d9-qi{background-color:rgba(11,110,208,.11)}._XFcz8:active:not(._Rgy4d)._MHGhD ._d9-qi ._p9fXQ{color:#0854a1}._XFcz8._Rgy4d{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._XFcz8._MHGhD{border-color:#0b6ed0}._Ar2jt{fill:#515559;margin-right:4px}._AS3wr{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._AS3wr+._d9-qi{margin-left:6px}._AS3wr._Rgy4d{color:#74777a}._d9-qi{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._p9fXQ{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._lYH2g{fill:#515559}._lYH2g._Rgy4d,._lYH2g._Rgy4d._MHGhD{fill:rgba(116,119,122,.4)}._lYH2g._MHGhD{fill:#0b6ed0}._lYH2g._40wqY{transform:rotate(-180deg)}._XFcz8.focus-visible,._XFcz8: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 };
|
|
@@ -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 inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._JDeHL{position:relative;display:inline-block;height:36px}._AaP5W{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._AaP5W:hover{cursor:pointer;background-color:#f5f5f5}._AaP5W:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._AaP5W:disabled,._AaP5W[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._AaP5W:disabled::-moz-placeholder,._AaP5W[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._AaP5W:disabled::placeholder,._AaP5W[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._AaP5W:invalid,._AaP5W[aria-invalid=true]{border-color:#b00}._AaP5W:invalid:focus,._AaP5W[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._AaP5W[type=number]{-moz-appearance:textfield}._AaP5W[type=number]::-webkit-inner-spin-button,._AaP5W[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._AaP5W::-moz-placeholder{color:#515559;opacity:1}._AaP5W::placeholder{color:#515559;opacity:1}._7-6ik{pointer-events:none;color:#515559;fill:#515559}._VCCAZ{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._YIrws{color:#515559;font-size:16px}._1xgc0{left:0;margin-left:6px}._1xgc0,._58rYC{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._58rYC{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_JDeHL","input":"_AaP5W","addOn":"_7-6ik","addOnVerticalCenter":"_VCCAZ","addOnTextNode":"_YIrws","leftAddOn":"_1xgc0","rightAddOn":"_58rYC"};
|
|
5
|
+
var stylesheet="._JDeHL{position:relative;display:inline-block;height:36px}._AaP5W{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._AaP5W:hover{cursor:pointer;background-color:#f5f5f5}._AaP5W:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._AaP5W:disabled,._AaP5W[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._AaP5W:disabled::-moz-placeholder,._AaP5W[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._AaP5W:disabled::placeholder,._AaP5W[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._AaP5W:invalid,._AaP5W[aria-invalid=true]{border-color:#b00}._AaP5W:invalid:focus,._AaP5W[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._AaP5W[type=number]{-moz-appearance:textfield}._AaP5W[type=number]::-webkit-inner-spin-button,._AaP5W[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._AaP5W::-moz-placeholder{color:#515559;opacity:1}._AaP5W::placeholder{color:#515559;opacity:1}._7-6ik{pointer-events:none;color:#515559;fill:#515559}._VCCAZ{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._YIrws{color:#515559;font-size:16px}._1xgc0{left:0;margin-left:6px}._1xgc0,._58rYC{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._58rYC{right:0;margin-right:6px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
package/dist/next/Menu/Menu2.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 = {"buttonContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Cgqmc{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._Cgqmc>._Twbay{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._Cgqmc>._Twbay:hover:not([aria-disabled=true]){background-color:#f5f5f5}._Cgqmc>._Twbay.focus-visible,._Cgqmc>._Twbay:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Cgqmc>._Twbay+._xRTxX{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._Cgqmc>._Twbay[data-state=open]+._xRTxX{transform:rotate(-180deg) translateY(50%)}._Cgqmc>._Twbay[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._Cgqmc>._Twbay[aria-disabled=true]+._xRTxX{fill:#515559;opacity:.4}._N7J2v>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:1!important}._N7J2v>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._Tmp2H{margin:0;padding:4px 0;background:#fff;transition:.35s;opacity:1;overflow:auto;width:var(--radix-dropdown-menu-trigger-width);min-width:200px;max-height:350px}._Tmp2H._HhPZN{margin-left:30px;opacity:0}._Tmp2H._vI0q6{margin-left:-30px}._j1Xch{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._j1Xch._Fjhx4{cursor:unset}._j1Xch ._RyOg-{fill:#32363a;margin-right:4px}._j1Xch:focus,._j1Xch:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._j1Xch[aria-disabled=true]{cursor:not-allowed;opacity:.65}._j1Xch._6Zf3Z{padding-right:32px}._j1Xch._6Zf3Z ._xRTxX{position:absolute;height:100%;right:3px;fill:#515559}._j1Xch._kPBk8{pointer-events:none}._oWZRI{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;z-index:1;border-bottom:1px solid #e8e8e8}._oWZRI._t-oP1{padding-top:49px}._c15yI{z-index:1;pointer-events:none;position:fixed;left:0;top:0}._4CSdT{position:absolute;background-color:#fff;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;overflow:hidden;opacity:1;transition:opacity .35s}._4CSdT._vI0q6{opacity:0}._4CSdT._vI0q6>._jwSGw{margin-left:-30px}._4CSdT._HhPZN{opacity:0}._4CSdT._HhPZN>._jwSGw{margin-left:30px}._4CSdT>._jwSGw{transition:margin-left .35s;width:100%}._4CSdT._kPBk8{pointer-events:none}body.keyboard-user ._j1Xch:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_Cgqmc","button":"_Twbay","rightIcon":"_xRTxX","maskContainer":"_N7J2v","flyout":"_Tmp2H","animatedRight":"_HhPZN","animatedLeft":"_vI0q6","menuItem":"_j1Xch","noItems":"_Fjhx4","backIcon":"_RyOg-","subMenu":"_6Zf3Z","unresponsive":"_kPBk8","stickyBox":"_oWZRI","isSearchable":"_t-oP1","searchBoxesContainer":"_c15yI","searchBox":"_4CSdT","searchInput":"_jwSGw"};
|
|
5
|
+
var stylesheet="._Cgqmc{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._Cgqmc>._Twbay{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._Cgqmc>._Twbay:hover:not([aria-disabled=true]){background-color:#f5f5f5}._Cgqmc>._Twbay.focus-visible,._Cgqmc>._Twbay:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Cgqmc>._Twbay+._xRTxX{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._Cgqmc>._Twbay[data-state=open]+._xRTxX{transform:rotate(-180deg) translateY(50%)}._Cgqmc>._Twbay[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._Cgqmc>._Twbay[aria-disabled=true]+._xRTxX{fill:#515559;opacity:.4}._N7J2v>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:1!important}._N7J2v>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._Tmp2H{margin:0;padding:4px 0;background:#fff;transition:.35s;opacity:1;overflow:auto;width:var(--radix-dropdown-menu-trigger-width);min-width:200px;max-height:350px}._Tmp2H._HhPZN{margin-left:30px;opacity:0}._Tmp2H._vI0q6{margin-left:-30px}._j1Xch{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._j1Xch._Fjhx4{cursor:unset}._j1Xch ._RyOg-{fill:#32363a;margin-right:4px}._j1Xch:focus,._j1Xch:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._j1Xch[aria-disabled=true]{cursor:not-allowed;opacity:.65}._j1Xch._6Zf3Z{padding-right:32px}._j1Xch._6Zf3Z ._xRTxX{position:absolute;height:100%;right:3px;fill:#515559}._j1Xch._kPBk8{pointer-events:none}._oWZRI{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;z-index:1;border-bottom:1px solid #e8e8e8}._oWZRI._t-oP1{padding-top:49px}._c15yI{z-index:1;pointer-events:none;position:fixed;left:0;top:0}._4CSdT{position:absolute;background-color:#fff;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;overflow:hidden;opacity:1;transition:opacity .35s}._4CSdT._vI0q6{opacity:0}._4CSdT._vI0q6>._jwSGw{margin-left:-30px}._4CSdT._HhPZN{opacity:0}._4CSdT._HhPZN>._jwSGw{margin-left:30px}._4CSdT>._jwSGw{transition:margin-left .35s;width:100%}._4CSdT._kPBk8{pointer-events:none}body.keyboard-user ._j1Xch:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -7,6 +7,10 @@ import styles from './Menu2.js';
|
|
|
7
7
|
import '../../utils/index.js';
|
|
8
8
|
import { useMenuContext } from './MenuContext.js';
|
|
9
9
|
import { DATA_TESTID_SUFFIXES } from './constants.js';
|
|
10
|
+
import '../../hooks/index.js';
|
|
11
|
+
import '../../components/index.js';
|
|
12
|
+
import Tooltip from '../../components/Tooltip/Tooltip.js';
|
|
13
|
+
import useIsTruncated from '../../hooks/useIsTruncated/useIsTruncated.js';
|
|
10
14
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
11
15
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
12
16
|
import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
|
|
@@ -14,11 +18,17 @@ import ChevronDownIcon from '../../icons/components/ChevronDownIcon.js';
|
|
|
14
18
|
const AsChildWrapper = _ref => {
|
|
15
19
|
let {
|
|
16
20
|
asChild,
|
|
21
|
+
isTruncated,
|
|
22
|
+
tooltipContent,
|
|
17
23
|
children
|
|
18
24
|
} = _ref;
|
|
19
|
-
return asChild ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children) : /*#__PURE__*/React__default.createElement(
|
|
25
|
+
return asChild ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children) : /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
26
|
+
disabled: !isTruncated || !['string', 'number'].includes(typeof tooltipContent),
|
|
27
|
+
content: tooltipContent,
|
|
28
|
+
delayMs: 250
|
|
29
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
20
30
|
className: styles.buttonContainer
|
|
21
|
-
}, children);
|
|
31
|
+
}, children));
|
|
22
32
|
};
|
|
23
33
|
const MenuButton = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
24
34
|
let {
|
|
@@ -32,8 +42,11 @@ const MenuButton = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
|
32
42
|
isDisabled,
|
|
33
43
|
triggerRef
|
|
34
44
|
} = useMenuContext();
|
|
45
|
+
const isTruncated = useIsTruncated(triggerRef);
|
|
35
46
|
return /*#__PURE__*/React__default.createElement(AsChildWrapper, {
|
|
36
|
-
asChild: asChild
|
|
47
|
+
asChild: asChild,
|
|
48
|
+
tooltipContent: children,
|
|
49
|
+
isTruncated: isTruncated
|
|
37
50
|
}, /*#__PURE__*/React__default.createElement(Trigger, _extends({}, rest, {
|
|
38
51
|
"aria-disabled": isDisabled,
|
|
39
52
|
className: classNames(className, {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import _includesInstanceProperty from '@babel/runtime-corejs3/core-js-stable/instance/includes';
|
|
3
2
|
import React__default, { useRef, useMemo } from 'react';
|
|
4
3
|
import { Item } from '@radix-ui/react-dropdown-menu';
|
|
5
4
|
import classNames from 'classnames';
|
|
@@ -39,9 +38,8 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
39
38
|
});
|
|
40
39
|
const dataTestId = getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM), String(index));
|
|
41
40
|
const isVisible = useMemo(() => {
|
|
42
|
-
var _context;
|
|
43
41
|
const searchMatcher = label !== null && label !== void 0 ? label : typeof children === 'string' ? children : undefined;
|
|
44
|
-
return isSearchFilteringDisabled || !searchValue || (searchMatcher === null || searchMatcher === void 0 ? void 0 :
|
|
42
|
+
return isSearchFilteringDisabled || !searchValue || (searchMatcher === null || searchMatcher === void 0 ? void 0 : searchMatcher.toLowerCase().includes(searchValue.toLowerCase()));
|
|
45
43
|
}, [children, searchValue, label, isSearchFilteringDisabled]);
|
|
46
44
|
const handleFocus = () => {
|
|
47
45
|
if (itemRef.current && flyoutRef.current && isFocusVisible) {
|
|
@@ -64,12 +62,11 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
64
62
|
"data-testid": dataTestId,
|
|
65
63
|
ref: mergeRefs(ref, itemRef),
|
|
66
64
|
onKeyDown: e => {
|
|
67
|
-
var _context2;
|
|
68
65
|
if (!isInteractive) {
|
|
69
66
|
e.preventDefault();
|
|
70
67
|
return;
|
|
71
68
|
}
|
|
72
|
-
if (
|
|
69
|
+
if (KEYS.CLOSE_SUBMENU.includes(e.key)) {
|
|
73
70
|
closeSubmenu === null || closeSubmenu === void 0 ? void 0 : closeSubmenu(e);
|
|
74
71
|
}
|
|
75
72
|
},
|