@qualtrics/ui-react 2.0.1-alpha.0 → 2.1.1
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 +56 -1
- package/dist/__shared/cjs/{index-eae68a34.js → index-601d560e.js} +54 -49
- package/dist/__shared/cjs/{index-4e8591db.js → index-ad973a6b.js} +3 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button2.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- 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/FullScreenTakeover2.js +3 -3
- 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/LoadingSpinner.js +3 -1
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/Controls.js +3 -2
- package/dist/components/LogicEditor/LogicEditor.js +2 -0
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +10 -0
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -0
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +6 -2
- 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/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_NumberStepper/NumberStepperInput.js +3 -0
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- 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 +7 -3
- package/dist/index.es.js +1 -1
- package/dist/index.js +106 -89
- package/dist/next/AdvancedTable/AdvancedTable.js +24 -20
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +3 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +16 -7
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +4 -2
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/index.d.ts +1 -0
- package/dist/next/index.js +69 -57
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/package.json +4 -4
|
@@ -33,6 +33,7 @@ import useControllableState from '../../hooks/useControllableState/useControllab
|
|
|
33
33
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
34
34
|
import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
35
35
|
import { setIsKeyboardUser, getIsKeyboardUser } from '../../utils/keyboardUser/keyboardUser.js';
|
|
36
|
+
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
36
37
|
import useLatest from '../../hooks/useLatest/useLatest.js';
|
|
37
38
|
import wrapAround from '../../utils/wrapAround/wrapAround.js';
|
|
38
39
|
|
|
@@ -573,13 +574,6 @@ const AdvancedTable = _ref => {
|
|
|
573
574
|
}
|
|
574
575
|
};
|
|
575
576
|
|
|
576
|
-
const isFinalNonRowActionsColumn = columnIndex => {
|
|
577
|
-
const columnCount = unpinnedColumnConfigs.length + pinnedColumnConfigs.length;
|
|
578
|
-
const finalColumnIsRowActions = Boolean(rowActions);
|
|
579
|
-
const finalNonRowActionsColumnIndex = columnCount - (finalColumnIsRowActions ? 2 : 1);
|
|
580
|
-
return columnIndex === finalNonRowActionsColumnIndex;
|
|
581
|
-
};
|
|
582
|
-
|
|
583
577
|
const getColumnHeaderProps = (columnConfig, columnIndex, isPinned) => {
|
|
584
578
|
var _columnWidths$id;
|
|
585
579
|
|
|
@@ -595,17 +589,27 @@ const AdvancedTable = _ref => {
|
|
|
595
589
|
return {
|
|
596
590
|
id,
|
|
597
591
|
isRowActionMenuColumn,
|
|
598
|
-
isFinalNonRowActionsColumn: isFinalNonRowActionsColumn(columnIndex),
|
|
599
592
|
'data-testid': dataTestId && id ? "".concat(dataTestId, "-").concat(id) : undefined,
|
|
600
593
|
label: headerLabel,
|
|
601
594
|
width: (_columnWidths$id = columnWidths[id]) !== null && _columnWidths$id !== void 0 ? _columnWidths$id : width,
|
|
602
595
|
widthBuffer: columnIndex === 0 && maxRowDepth > 0 ? columnWidthBuffers[0] : undefined,
|
|
603
596
|
onWidthChange: disableUserResizableColumns || isRowActionMenuColumn ? undefined : newWidth => {
|
|
604
597
|
setColumnWidths(currentColumnWidths => {
|
|
605
|
-
const
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
598
|
+
const newColumnsWidths = columnOrder.reduce((map, colId, index) => {
|
|
599
|
+
if (colId === id) {
|
|
600
|
+
map[colId] = newWidth;
|
|
601
|
+
} else if (currentColumnWidths[colId]) {
|
|
602
|
+
map[colId] = currentColumnWidths[colId];
|
|
603
|
+
} else {
|
|
604
|
+
var _cellRefs$current, _cellRefs$current$hea;
|
|
605
|
+
|
|
606
|
+
const colRef = (_cellRefs$current = cellRefs.current) === null || _cellRefs$current === void 0 ? void 0 : (_cellRefs$current$hea = _cellRefs$current[headerRowIndex]) === null || _cellRefs$current$hea === void 0 ? void 0 : _cellRefs$current$hea[index];
|
|
607
|
+
map[colId] = colRef === null || colRef === void 0 ? void 0 : colRef.getBoundingClientRect().width;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
return map;
|
|
611
|
+
}, {});
|
|
612
|
+
return newColumnsWidths;
|
|
609
613
|
});
|
|
610
614
|
},
|
|
611
615
|
alignment,
|
|
@@ -649,7 +653,6 @@ const AdvancedTable = _ref => {
|
|
|
649
653
|
const value = data[columnId];
|
|
650
654
|
return {
|
|
651
655
|
value,
|
|
652
|
-
isFinalNonRowActionsColumn: isFinalNonRowActionsColumn(columnIndex),
|
|
653
656
|
setValue: newValue => {
|
|
654
657
|
const newRows = [...rowsProp];
|
|
655
658
|
newRows[rowIndex].data[columnId] = newValue;
|
|
@@ -847,7 +850,8 @@ const AdvancedTable = _ref => {
|
|
|
847
850
|
ariaLabel: paginationAriaLabel,
|
|
848
851
|
rows: rowsProp,
|
|
849
852
|
currentPage: currentPage,
|
|
850
|
-
setCurrentPage: setCurrentPage
|
|
853
|
+
setCurrentPage: setCurrentPage,
|
|
854
|
+
"data-testid": getSubDataTestId(dataTestId, 'TablePagination')
|
|
851
855
|
}) : null));
|
|
852
856
|
}; // TODO: move hook to separate file
|
|
853
857
|
|
|
@@ -926,10 +930,10 @@ function useFocusState(_ref8) {
|
|
|
926
930
|
const focusCell = useEventCallback(cell => {
|
|
927
931
|
// Manually scroll cells/rows into view if needed
|
|
928
932
|
if (getIsKeyboardUser()) {
|
|
929
|
-
var _tableRef$current, _cellRefs$
|
|
933
|
+
var _tableRef$current, _cellRefs$current2, _cellRefs$current2$he;
|
|
930
934
|
|
|
931
935
|
const tablePos = (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getBoundingClientRect();
|
|
932
|
-
const header = (_cellRefs$
|
|
936
|
+
const header = (_cellRefs$current2 = cellRefs.current) === null || _cellRefs$current2 === void 0 ? void 0 : (_cellRefs$current2$he = _cellRefs$current2[headerRowIndex]) === null || _cellRefs$current2$he === void 0 ? void 0 : _cellRefs$current2$he[-1];
|
|
933
937
|
const headerPos = header === null || header === void 0 ? void 0 : header.getBoundingClientRect();
|
|
934
938
|
let cellPos = cell === null || cell === void 0 ? void 0 : cell.getBoundingClientRect(); // Vertical scroll
|
|
935
939
|
|
|
@@ -976,19 +980,19 @@ function useFocusState(_ref8) {
|
|
|
976
980
|
|
|
977
981
|
useDidUpdate(() => {
|
|
978
982
|
if (focusedColumnId) {
|
|
979
|
-
var _cellRefs$
|
|
983
|
+
var _cellRefs$current3, _cellRefs$current3$fo;
|
|
980
984
|
|
|
981
985
|
const columnIndex = pinnedUnpinnedColumnOrder.indexOf(focusedColumnId);
|
|
982
|
-
focusCell((_cellRefs$
|
|
986
|
+
focusCell((_cellRefs$current3 = cellRefs.current) === null || _cellRefs$current3 === void 0 ? void 0 : (_cellRefs$current3$fo = _cellRefs$current3[focusedRowIndex]) === null || _cellRefs$current3$fo === void 0 ? void 0 : _cellRefs$current3$fo[columnIndex]);
|
|
983
987
|
setFocusedColumnIndex(columnIndex);
|
|
984
988
|
setFocusedColumnId(undefined);
|
|
985
989
|
}
|
|
986
990
|
}, [focusedColumnId, pinnedUnpinnedColumnOrder]); // Focus cell when the focused indices change
|
|
987
991
|
|
|
988
992
|
useDidUpdate(() => {
|
|
989
|
-
var _cellRefs$
|
|
993
|
+
var _cellRefs$current4, _cellRefs$current4$fo;
|
|
990
994
|
|
|
991
|
-
const newFocusedCell = (_cellRefs$
|
|
995
|
+
const newFocusedCell = (_cellRefs$current4 = cellRefs.current) === null || _cellRefs$current4 === void 0 ? void 0 : (_cellRefs$current4$fo = _cellRefs$current4[focusedRowIndex]) === null || _cellRefs$current4$fo === void 0 ? void 0 : _cellRefs$current4$fo[focusedColumnIndex];
|
|
992
996
|
/* Prevent cells from stealing focus from their children when they
|
|
993
997
|
* receive focus, but still allow focus to move from a cell to a row.
|
|
994
998
|
*/
|
|
@@ -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 = "._2vepf{overflow:auto;position:relative;max-width:100%;max-height:100%}._2vepf,._24yVx{background-color:#fff}._24yVx{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._2mcO4{margin-bottom:4px}._1pM1v{position:-webkit-sticky;position:sticky;top:0;z-index:100}._PW9n5{display:flex}._PW9n5:focus{outline:none}body.keyboard-user ._PW9n5:focus ._1S3jr: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}body.keyboard-user ._PW9n5:focus ._1S3jr:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._PW9n5:focus ._1S3jr:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._PW9n5:focus ._1S3jr._1h5_v:after{right:-3px;bottom:1px}._3NGZS{padding-right:3px}._3Ha1M{display:flex}._3Ha1M._2LkSS ._1S3jr{cursor:pointer}._3Ha1M._3uYh6 ._1S3jr{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._3Ha1M._3uYh6 ._1S3jr._1h5_v{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._3Ha1M._3uYh6 ._1S3jr._1h5_v ._1gn1Q,._3Ha1M._3uYh6 ._1S3jr._1h5_v ._2ZAhc,._3Ha1M._3uYh6 ._1S3jr._1h5_v ._3-D5o{background-color:rgba(11,110,208,.08)}._3Ha1M._2LkSS:hover:not(._3uYh6):not(._gUX5c) ._1S3jr{background-color:#f9f9f9}._3Ha1M._2LkSS:active:not(._3uYh6):not(._gUX5c) ._1S3jr{background-color:#f3f3f3}._3Ha1M:focus{outline:none}body.keyboard-user ._3Ha1M:focus ._1S3jr: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}body.keyboard-user ._3Ha1M:focus ._1S3jr:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3Ha1M:focus ._1S3jr:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3Ha1M:focus ._1S3jr._1h5_v:after{right:-3px;bottom:0}._3Ha1M:last-of-type:focus{outline:none}body.keyboard-user ._3Ha1M:last-of-type:focus ._1S3jr: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}body.keyboard-user ._3Ha1M:last-of-type:focus ._1S3jr:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3Ha1M:last-of-type:focus ._1S3jr:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3Ha1M:last-of-type:focus ._1S3jr._1h5_v:after{right:-3px;bottom:1px}._3Ha1M:last-of-type ._3-D5o:focus{outline:none}body.keyboard-user ._3Ha1M:last-of-type ._3-D5o._3PTpm:after,body.keyboard-user ._3Ha1M:last-of-type ._3-D5o:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._3Ha1M:first-of-type:focus{outline:none}body.keyboard-user ._3Ha1M:first-of-type:focus ._1S3jr: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}body.keyboard-user ._3Ha1M:first-of-type:focus ._1S3jr:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3Ha1M:first-of-type:focus ._1S3jr:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3Ha1M:first-of-type:focus ._1S3jr._1h5_v:after{right:-3px;bottom:0}._3Ha1M:first-of-type ._3-D5o:focus{outline:none}body.keyboard-user ._3Ha1M:first-of-type ._3-D5o._3PTpm:after,body.keyboard-user ._3Ha1M:first-of-type ._3-D5o:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._8BFx0{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}._8BFx0._356cF{flex-grow:1}._8BFx0._3OzQD{cursor:pointer}._8BFx0._3OzQD:hover:not(._3q-hn){background-color:#f9f9f9;border-bottom-color:#6a6d70}._8BFx0._3OzQD:active:not(._3q-hn){background-color:#f3f3f3}._8BFx0._2Y3l_:not(._3q-hn){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._8BFx0._3q-hn{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._8BFx0 ._20STP{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._8BFx0 ._20STP._2HZq7{left:-1px}._8BFx0 ._20STP._12HVx{right:0}._8BFx0 ._2x5Ut{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._8BFx0 ._2x5Ut._2HZq7{left:-2px}._8BFx0 ._2x5Ut._12HVx{right:-1px}._8BFx0:first-of-type ._2HZq7._20STP{left:0;width:2px;border-left:1px solid #fff}._8BFx0:first-of-type ._2HZq7._2x5Ut{left:0}._8BFx0:last-of-type ._12HVx._20STP{right:0;width:2px;border-right:1px solid #fff}._8BFx0:last-of-type ._12HVx._2x5Ut{right:0}._8BFx0 ._351_S{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._8BFx0 ._351_S ._2337D{position:absolute;width:2px;right:2px;top:0;bottom:0}._8BFx0 ._351_S ._2337D._3_Kh_{background-color:#0a6ed1}._8BFx0 ._351_S:hover ._2337D:not(._3_Kh_){background-color:#d9d9d9}._8BFx0 ._1fwRc{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._8BFx0 ._1fwRc._3lzLs{flex-direction:row-reverse;justify-content:flex-start}._8BFx0 ._1fwRc._3lzLs ._3HW3Q{margin:1px 7px 1px 1px}._8BFx0 ._1fwRc ._1L8jT{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;pointer-events:none}._8BFx0 ._1fwRc ._3HW3Q{margin:1px 1px 1px 7px;flex-shrink:0}._8BFx0 ._1dsfl{margin-left:6px;margin-right:4px;flex-shrink:0}._8BFx0 ._26Mt1{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._8BFx0:focus{outline:none}body.keyboard-user ._8BFx0._3PTpm:after,body.keyboard-user ._8BFx0:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._KC7Bs{margin-right:6px}._1h5_v{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._1h5_v[focus-within]{z-index:30}._1h5_v:focus-within{z-index:30}._3-D5o{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;color:#32363a;position:relative}._3-D5o ._2knju{width:100%;padding:12px 12px 11px;overflow:hidden}._3-D5o._3q-hn{background-color:#efefef;border-bottom-color:#dfdfe1}._3-D5o._356cF{flex-grow:1}._3-D5o:focus{outline:none}body.keyboard-user ._3-D5o._3PTpm:after,body.keyboard-user ._3-D5o:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._1gn1Q{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._1gn1Q._2PyYG{border-bottom-color:#d9d9d9}._2ZAhc{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}._2ZAhc._2PyYG{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._2ZAhc:focus input~span,._2ZAhc:hover input~span{border-color:#0b6ed0}._2ZAhc ._3nxzT{position:relative;display:inline-flex}._2ZAhc ._3nxzT ._VBRux{margin:0!important}._2ZAhc ._3nxzT ._VC6PU{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._1M7rM{justify-content:flex-start}._fVbhu{justify-content:center;text-align:center}._3lzLs{justify-content:flex-end;text-align:right}._3DUv-{display:none}._1Dt3S{opacity:0;height:0;width:0;overflow:hidden}._1Dt3S,._2d4iR{position:absolute}._2d4iR{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._ef5hV{width:246px}";
|
|
4
|
+
var styles = {"advancedTable":"_2vepf","advancedTablePaginationContainer":"_24yVx","advancedTablePagination":"_2mcO4","advancedTableColumnHeadersRowGroup":"_1pM1v","advancedTableColumnHeaders":"_PW9n5","advancedTableRowChild":"_1S3jr","pinnedContainer":"_1h5_v","advancedTableRowGroup":"_3NGZS","advancedTableRow":"_3Ha1M","hasRowAction":"_2LkSS","isSelected":"_3uYh6","advancedTableCheckbox":"_2ZAhc","advancedTableCell":"_3-D5o","advancedTableExpandRowSpacer":"_1gn1Q","isCheckboxHovered":"_gUX5c","showFocusRing":"_3PTpm","advancedTableColumnHeader":"_8BFx0","fillRemainingSpace":"_356cF","isSortable":"_3OzQD","isDragging":"_3q-hn","isSorted":"_2Y3l_","dropTargetLine":"_20STP","dropTargetLeft":"_2HZq7","dropTargetRight":"_12HVx","dropTargetMarker":"_2x5Ut","resizeHandle":"_351_S","resizeLine":"_2337D","isResizing":"_3_Kh_","advancedTableColumnHeaderLabel":"_1fwRc","rightAligned":"_3lzLs","sortIcon":"_3HW3Q","advancedTableColumnHeaderLabelText":"_1L8jT","advancedTableColumnHeaderMenu":"_1dsfl","advancedTableColumnHeaderMenuHiddenAnchor":"_26Mt1","advancedTableColumnHeaderMenuItemIcon":"_KC7Bs","advancedTableCellContainer":"_2knju","header":"_2PyYG","checkboxContainer":"_3nxzT","checkbox":"_VBRux","mixed":"_VC6PU","leftAligned":"_1M7rM","centerAligned":"_fVbhu","hiddenDescription":"_3DUv-","hiddenLiveRegion":"_1Dt3S","dragPreview":"_2d4iR","rowActionMenuPane":"_ef5hV"};
|
|
5
|
+
var stylesheet="._2vepf{overflow:auto;position:relative;max-width:100%;max-height:100%}._2vepf,._24yVx{background-color:#fff}._24yVx{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._2mcO4{margin-bottom:4px}._1pM1v{position:-webkit-sticky;position:sticky;top:0;z-index:100}._PW9n5{display:flex}._PW9n5:focus{outline:none}body.keyboard-user ._PW9n5:focus ._1S3jr: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}body.keyboard-user ._PW9n5:focus ._1S3jr:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._PW9n5:focus ._1S3jr:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._PW9n5:focus ._1S3jr._1h5_v:after{right:-3px;bottom:1px}._3NGZS{padding-right:3px}._3Ha1M{display:flex}._3Ha1M._2LkSS ._1S3jr{cursor:pointer}._3Ha1M._3uYh6 ._1S3jr{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._3Ha1M._3uYh6 ._1S3jr._1h5_v{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._3Ha1M._3uYh6 ._1S3jr._1h5_v ._1gn1Q,._3Ha1M._3uYh6 ._1S3jr._1h5_v ._2ZAhc,._3Ha1M._3uYh6 ._1S3jr._1h5_v ._3-D5o{background-color:rgba(11,110,208,.08)}._3Ha1M._2LkSS:hover:not(._3uYh6):not(._gUX5c) ._1S3jr{background-color:#f9f9f9}._3Ha1M._2LkSS:active:not(._3uYh6):not(._gUX5c) ._1S3jr{background-color:#f3f3f3}._3Ha1M:focus{outline:none}body.keyboard-user ._3Ha1M:focus ._1S3jr: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}body.keyboard-user ._3Ha1M:focus ._1S3jr:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3Ha1M:focus ._1S3jr:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3Ha1M:focus ._1S3jr._1h5_v:after{right:-3px;bottom:0}._3Ha1M:last-of-type:focus{outline:none}body.keyboard-user ._3Ha1M:last-of-type:focus ._1S3jr: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}body.keyboard-user ._3Ha1M:last-of-type:focus ._1S3jr:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3Ha1M:last-of-type:focus ._1S3jr:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3Ha1M:last-of-type:focus ._1S3jr._1h5_v:after{right:-3px;bottom:1px}._3Ha1M:last-of-type ._3-D5o:focus{outline:none}body.keyboard-user ._3Ha1M:last-of-type ._3-D5o._3PTpm:after,body.keyboard-user ._3Ha1M:last-of-type ._3-D5o:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._3Ha1M:first-of-type:focus{outline:none}body.keyboard-user ._3Ha1M:first-of-type:focus ._1S3jr: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}body.keyboard-user ._3Ha1M:first-of-type:focus ._1S3jr:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}body.keyboard-user ._3Ha1M:first-of-type:focus ._1S3jr:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}body.keyboard-user ._3Ha1M:first-of-type:focus ._1S3jr._1h5_v:after{right:-3px;bottom:0}._3Ha1M:first-of-type ._3-D5o:focus{outline:none}body.keyboard-user ._3Ha1M:first-of-type ._3-D5o._3PTpm:after,body.keyboard-user ._3Ha1M:first-of-type ._3-D5o:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._8BFx0{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}._8BFx0._356cF{flex-grow:1}._8BFx0._3OzQD{cursor:pointer}._8BFx0._3OzQD:hover:not(._3q-hn){background-color:#f9f9f9;border-bottom-color:#6a6d70}._8BFx0._3OzQD:active:not(._3q-hn){background-color:#f3f3f3}._8BFx0._2Y3l_:not(._3q-hn){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._8BFx0._3q-hn{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._8BFx0 ._20STP{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._8BFx0 ._20STP._2HZq7{left:-1px}._8BFx0 ._20STP._12HVx{right:0}._8BFx0 ._2x5Ut{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._8BFx0 ._2x5Ut._2HZq7{left:-2px}._8BFx0 ._2x5Ut._12HVx{right:-1px}._8BFx0:first-of-type ._2HZq7._20STP{left:0;width:2px;border-left:1px solid #fff}._8BFx0:first-of-type ._2HZq7._2x5Ut{left:0}._8BFx0:last-of-type ._12HVx._20STP{right:0;width:2px;border-right:1px solid #fff}._8BFx0:last-of-type ._12HVx._2x5Ut{right:0}._8BFx0 ._351_S{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._8BFx0 ._351_S ._2337D{position:absolute;width:2px;right:2px;top:0;bottom:0}._8BFx0 ._351_S ._2337D._3_Kh_{background-color:#0a6ed1}._8BFx0 ._351_S:hover ._2337D:not(._3_Kh_){background-color:#d9d9d9}._8BFx0 ._1fwRc{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._8BFx0 ._1fwRc._3lzLs{flex-direction:row-reverse;justify-content:flex-start}._8BFx0 ._1fwRc._3lzLs ._3HW3Q{margin:1px 7px 1px 1px}._8BFx0 ._1fwRc ._1L8jT{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;pointer-events:none}._8BFx0 ._1fwRc ._3HW3Q{margin:1px 1px 1px 7px;flex-shrink:0}._8BFx0 ._1dsfl{margin-left:6px;margin-right:4px;flex-shrink:0}._8BFx0 ._26Mt1{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._8BFx0:focus{outline:none}body.keyboard-user ._8BFx0._3PTpm:after,body.keyboard-user ._8BFx0:focus:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._KC7Bs{margin-right:6px}._1h5_v{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._1h5_v[focus-within]{z-index:30}._1h5_v:focus-within{z-index:30}._3-D5o{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;color:#32363a;position:relative}._3-D5o ._2knju{width:100%;padding:12px 12px 11px;overflow:hidden}._3-D5o._3q-hn{background-color:#efefef;border-bottom-color:#dfdfe1}._3-D5o._356cF{flex-grow:1}._3-D5o:focus{outline:none}body.keyboard-user ._3-D5o._3PTpm:after,body.keyboard-user ._3-D5o:focus:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._1gn1Q{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._1gn1Q._2PyYG{border-bottom-color:#d9d9d9}._2ZAhc{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}._2ZAhc._2PyYG{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._2ZAhc:focus input~span,._2ZAhc:hover input~span{border-color:#0b6ed0}._2ZAhc ._3nxzT{position:relative;display:inline-flex}._2ZAhc ._3nxzT ._VBRux{margin:0!important}._2ZAhc ._3nxzT ._VC6PU{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._1M7rM{justify-content:flex-start}._fVbhu{justify-content:center;text-align:center}._3lzLs{justify-content:flex-end;text-align:right}._3DUv-{display:none}._1Dt3S{opacity:0;height:0;width:0;overflow:hidden}._1Dt3S,._2d4iR{position:absolute}._2d4iR{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._ef5hV{width:246px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -26,7 +26,6 @@ const AdvancedTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
26
26
|
onKeyDown,
|
|
27
27
|
onFocus,
|
|
28
28
|
isDragging,
|
|
29
|
-
isFinalNonRowActionsColumn,
|
|
30
29
|
className,
|
|
31
30
|
...rest
|
|
32
31
|
} = _ref;
|
|
@@ -89,7 +88,7 @@ const AdvancedTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
89
88
|
[styles.centerAligned]: alignment === Alignments.Center,
|
|
90
89
|
[styles.rightAligned]: alignment === Alignments.Right,
|
|
91
90
|
[styles.isDragging]: isDragging,
|
|
92
|
-
[styles.fillRemainingSpace]:
|
|
91
|
+
[styles.fillRemainingSpace]: width === undefined
|
|
93
92
|
}),
|
|
94
93
|
style: {
|
|
95
94
|
width: computedWidth
|
|
@@ -97,7 +96,7 @@ const AdvancedTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
97
96
|
ref: mergeRefs(ref, cellRef)
|
|
98
97
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
99
98
|
className: styles.advancedTableCellContainer
|
|
100
|
-
},
|
|
99
|
+
}, typeof renderCellContent === 'function' ? renderCellContent({
|
|
101
100
|
value,
|
|
102
101
|
setValue,
|
|
103
102
|
focusCell,
|
|
@@ -107,7 +106,7 @@ const AdvancedTableCell = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
107
106
|
columnId,
|
|
108
107
|
rowIndex,
|
|
109
108
|
columnIndex
|
|
110
|
-
}) : value))
|
|
109
|
+
}) : value));
|
|
111
110
|
});
|
|
112
111
|
|
|
113
112
|
export { AdvancedTableCell as default };
|
|
@@ -48,8 +48,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
48
48
|
setDropTargetSide,
|
|
49
49
|
tableId,
|
|
50
50
|
tableHeight,
|
|
51
|
-
isRowActionMenuColumn
|
|
52
|
-
isFinalNonRowActionsColumn
|
|
51
|
+
isRowActionMenuColumn
|
|
53
52
|
} = _ref;
|
|
54
53
|
const labelRef = useRef(null);
|
|
55
54
|
const [ellipsisShown, setEllipsisShown] = useState();
|
|
@@ -250,7 +249,8 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
250
249
|
return (_columnHeaderRef$curr4 = columnHeaderRef.current) === null || _columnHeaderRef$curr4 === void 0 ? void 0 : _columnHeaderRef$curr4.focus();
|
|
251
250
|
},
|
|
252
251
|
columnId: id,
|
|
253
|
-
columnHeaderRef
|
|
252
|
+
columnHeaderRef,
|
|
253
|
+
'data-testid': dataTestId
|
|
254
254
|
};
|
|
255
255
|
useEffect(() => {
|
|
256
256
|
if (labelRef.current) {
|
|
@@ -279,7 +279,7 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
279
279
|
[styles.isSorted]: isSorted,
|
|
280
280
|
[styles.showFocusRing]: isHiddenMenuOpen,
|
|
281
281
|
[styles.isDragging]: isDragging,
|
|
282
|
-
[styles.fillRemainingSpace]:
|
|
282
|
+
[styles.fillRemainingSpace]: width === undefined
|
|
283
283
|
}),
|
|
284
284
|
style: {
|
|
285
285
|
width: computedWidth
|
|
@@ -12,6 +12,7 @@ import useId from '../../hooks/useId/useId.js';
|
|
|
12
12
|
import MenuItem from '../../components/NewMenu/parts/MenuItem.js';
|
|
13
13
|
import UnpinIcon from '../../icons/components/UnpinIcon.js';
|
|
14
14
|
import PinIcon from '../../icons/components/PinIcon.js';
|
|
15
|
+
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
15
16
|
import SelectMenu from '../../components/NewMenu/SelectMenu/SelectMenu.js';
|
|
16
17
|
import ArrowUpIcon from '../../icons/components/ArrowUpIcon.js';
|
|
17
18
|
import ArrowDownIcon from '../../icons/components/ArrowDownIcon.js';
|
|
@@ -32,6 +33,7 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
32
33
|
setIsOpen,
|
|
33
34
|
columnId,
|
|
34
35
|
columnHeaderRef,
|
|
36
|
+
'data-testid': dataTestId,
|
|
35
37
|
...rest
|
|
36
38
|
} = _ref;
|
|
37
39
|
const {
|
|
@@ -44,7 +46,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
44
46
|
let {
|
|
45
47
|
onSelect,
|
|
46
48
|
Icon,
|
|
47
|
-
label
|
|
49
|
+
label,
|
|
50
|
+
'data-testid': menuItemDataTestId
|
|
48
51
|
} = _ref2;
|
|
49
52
|
return /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
50
53
|
role: "menuitem" // Enables having an action menu item inside of a SelectMenu
|
|
@@ -57,7 +60,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
57
60
|
setIsOpen(false);
|
|
58
61
|
(_columnHeaderRef$curr = columnHeaderRef.current) === null || _columnHeaderRef$curr === void 0 ? void 0 : _columnHeaderRef$curr.focus();
|
|
59
62
|
onSelect === null || onSelect === void 0 ? void 0 : onSelect();
|
|
60
|
-
}
|
|
63
|
+
},
|
|
64
|
+
"date-testid": menuItemDataTestId
|
|
61
65
|
}, /*#__PURE__*/React__default.createElement(Icon, {
|
|
62
66
|
size: "small",
|
|
63
67
|
className: styles.advancedTableColumnHeaderMenuItemIcon,
|
|
@@ -73,7 +77,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
73
77
|
pinItem = getActionMenuItem({
|
|
74
78
|
onSelect: () => onIsPinnedChange(!isPinned),
|
|
75
79
|
Icon: pinIcon,
|
|
76
|
-
label: pinLabel
|
|
80
|
+
label: pinLabel,
|
|
81
|
+
'data-testid': getSubDataTestId(dataTestId, 'ColumnHeaderMenu-PinColumn')
|
|
77
82
|
});
|
|
78
83
|
}
|
|
79
84
|
|
|
@@ -109,7 +114,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
109
114
|
return [/*#__PURE__*/React__default.createElement(MenuItem, {
|
|
110
115
|
key: ascendingValue,
|
|
111
116
|
value: ascendingValue,
|
|
112
|
-
label: ascendingLabel
|
|
117
|
+
label: ascendingLabel,
|
|
118
|
+
"data-testid": getSubDataTestId(dataTestId, "ColumnHeaderMenu-Sort-".concat(index, "-").concat(SortDirections.Ascending))
|
|
113
119
|
}, /*#__PURE__*/React__default.createElement(AscendingIconComponent, {
|
|
114
120
|
size: "small",
|
|
115
121
|
className: styles.advancedTableColumnHeaderMenuItemIcon,
|
|
@@ -117,7 +123,8 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
117
123
|
}), ascendingLabel), /*#__PURE__*/React__default.createElement(MenuItem, {
|
|
118
124
|
key: descendingValue,
|
|
119
125
|
value: descendingValue,
|
|
120
|
-
label: descendingLabel
|
|
126
|
+
label: descendingLabel,
|
|
127
|
+
"data-testid": getSubDataTestId(dataTestId, "ColumnHeaderMenu-Sort-".concat(index, "-").concat(SortDirections.Descending))
|
|
121
128
|
}, /*#__PURE__*/React__default.createElement(DescendingIconComponent, {
|
|
122
129
|
size: "small",
|
|
123
130
|
className: styles.advancedTableColumnHeaderMenuItemIcon,
|
|
@@ -126,11 +133,13 @@ const AdvancedTableColumnHeaderMenu = _ref => {
|
|
|
126
133
|
}), (sortOptions === null || sortOptions === void 0 ? void 0 : sortOptions.length) && (onIsPinnedChange || onMoveLeft || onMoveRight) && /*#__PURE__*/React__default.createElement(Divider, null), pinItem, onMoveLeft && getActionMenuItem({
|
|
127
134
|
onSelect: onMoveLeft,
|
|
128
135
|
Icon: ArrowLeftIcon,
|
|
129
|
-
label: translate('advancedTable.moveColumnLeft')
|
|
136
|
+
label: translate('advancedTable.moveColumnLeft'),
|
|
137
|
+
'data-testid': getSubDataTestId(dataTestId, 'ColumnHeaderMenu-MoveColumnLeft')
|
|
130
138
|
}), onMoveRight && getActionMenuItem({
|
|
131
139
|
onSelect: onMoveRight,
|
|
132
140
|
Icon: ArrowRightIcon,
|
|
133
|
-
label: translate('advancedTable.moveColumnRight')
|
|
141
|
+
label: translate('advancedTable.moveColumnRight'),
|
|
142
|
+
'data-testid': getSubDataTestId(dataTestId, 'ColumnHeaderMenu-MoveColumnRight')
|
|
134
143
|
}));
|
|
135
144
|
};
|
|
136
145
|
|
|
@@ -12,7 +12,8 @@ const AdvancedTablePagination = _ref => {
|
|
|
12
12
|
setCurrentPage,
|
|
13
13
|
rows,
|
|
14
14
|
ariaLabel,
|
|
15
|
-
onPageChange
|
|
15
|
+
onPageChange,
|
|
16
|
+
'data-testid': dataTestId
|
|
16
17
|
} = _ref;
|
|
17
18
|
|
|
18
19
|
const handlePageChange = _ref2 => {
|
|
@@ -30,7 +31,8 @@ const AdvancedTablePagination = _ref => {
|
|
|
30
31
|
"aria-label": ariaLabel,
|
|
31
32
|
numPages: Math.max(Math.ceil(rows.length / rowsPerPage), 1),
|
|
32
33
|
currentPage: currentPage,
|
|
33
|
-
onPageChange: handlePageChange
|
|
34
|
+
onPageChange: handlePageChange,
|
|
35
|
+
"data-testid": dataTestId
|
|
34
36
|
}));
|
|
35
37
|
};
|
|
36
38
|
|
|
@@ -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 = "._10eLe{display:inline-block;width:36px;transition:width .25s ease-out}._19789{width:100%}._1HU6y>input{padding-right:0!important}._3PCEx>svg{fill:#515559}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_10eLe","searchInput":"_19789","searchInputCollapsed":"_1HU6y","iconButton":"_3PCEx"};
|
|
5
|
+
var stylesheet="._10eLe{display:inline-block;width:36px;transition:width .25s ease-out}._19789{width:100%}._1HU6y>input{padding-right:0!important}._3PCEx>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 = "._jDvxs :after{background-color:#515559!important}._DMRlf{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}._DMRlf ._3-Z44 ._2aMl9{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}._DMRlf ._3-Z44:first-child ._1-RLy{display:none}._DMRlf ._3FX98{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._DMRlf ._3FX98:hover{background-color:#efefef}._DMRlf ._3FX98:hover._1od51{background-color:#e4effa}._DMRlf ._3FX98._1od51{background-color:#ebf3fb}._DMRlf ._3FX98:active:not(._1od51){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_jDvxs","flyout":"_DMRlf","group":"_3-Z44","header":"_2aMl9","divider":"_1-RLy","option":"_3FX98","selected":"_1od51"};
|
|
5
|
+
var stylesheet="._jDvxs :after{background-color:#515559!important}._DMRlf{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}._DMRlf ._3-Z44 ._2aMl9{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}._DMRlf ._3-Z44:first-child ._1-RLy{display:none}._DMRlf ._3FX98{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._DMRlf ._3FX98:hover{background-color:#efefef}._DMRlf ._3FX98:hover._1od51{background-color:#e4effa}._DMRlf ._3FX98._1od51{background-color:#ebf3fb}._DMRlf ._3FX98:active:not(._1od51){background-color:#e8e9e9}";
|
|
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 = "._3DOqt{display:flex;justify-content:space-between;align-items:center;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}._3DOqt:hover:not(._9j3zs){background-color:rgba(50,54,58,.08)}._3DOqt:hover:not(._9j3zs)._k8mb2{border-color:#085caf;background-color:rgba(11,110,208,.04)}._3DOqt:hover:not(._9j3zs)._k8mb2>._1z8vo{color:#32363a}._3DOqt:hover:not(._9j3zs)._k8mb2>._1bwVC{fill:#32363a}._3DOqt:hover:not(._9j3zs)._k8mb2>._1y6ns{fill:#085caf}._3DOqt:hover:not(._9j3zs)._k8mb2>._1gsI-{background-color:rgba(11,110,208,.11)}._3DOqt:hover:not(._9j3zs)._k8mb2>._1gsI->._18KGB{color:#085caf}._3DOqt:active{background-color:#e8e9e9}._3DOqt._9j3zs{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._3DOqt._k8mb2{border-color:#0b6ed0}._1bwVC{fill:#515559;margin-right:4px}._1z8vo{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1z8vo+._1gsI-{margin-left:6px}._1z8vo._9j3zs{color:#74777a}._1gsI-{display:flex;justify-content:center;align-items:center;max-width:350px;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._18KGB{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1y6ns{fill:#515559}._1y6ns._9j3zs,._1y6ns._9j3zs._k8mb2{fill:rgba(116,119,122,.4)}._1y6ns._k8mb2{fill:#0b6ed0}._1y6ns._A_G-9{transform:rotate(-180deg)}body.keyboard-user ._3DOqt:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_3DOqt","disabled":"_9j3zs","selected":"_k8mb2","label":"_1z8vo","lockIcon":"_1bwVC","chevronIcon":"_1y6ns","selectedFiltersContainer":"_1gsI-","selectedFilters":"_18KGB","open":"_A_G-9"};
|
|
5
|
+
var stylesheet="._3DOqt{display:flex;justify-content:space-between;align-items:center;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}._3DOqt:hover:not(._9j3zs){background-color:rgba(50,54,58,.08)}._3DOqt:hover:not(._9j3zs)._k8mb2{border-color:#085caf;background-color:rgba(11,110,208,.04)}._3DOqt:hover:not(._9j3zs)._k8mb2>._1z8vo{color:#32363a}._3DOqt:hover:not(._9j3zs)._k8mb2>._1bwVC{fill:#32363a}._3DOqt:hover:not(._9j3zs)._k8mb2>._1y6ns{fill:#085caf}._3DOqt:hover:not(._9j3zs)._k8mb2>._1gsI-{background-color:rgba(11,110,208,.11)}._3DOqt:hover:not(._9j3zs)._k8mb2>._1gsI->._18KGB{color:#085caf}._3DOqt:active{background-color:#e8e9e9}._3DOqt._9j3zs{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._3DOqt._k8mb2{border-color:#0b6ed0}._1bwVC{fill:#515559;margin-right:4px}._1z8vo{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1z8vo+._1gsI-{margin-left:6px}._1z8vo._9j3zs{color:#74777a}._1gsI-{display:flex;justify-content:center;align-items:center;max-width:350px;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._18KGB{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1y6ns{fill:#515559}._1y6ns._9j3zs,._1y6ns._9j3zs._k8mb2{fill:rgba(116,119,122,.4)}._1y6ns._k8mb2{fill:#0b6ed0}._1y6ns._A_G-9{transform:rotate(-180deg)}body.keyboard-user ._3DOqt:focus{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 = "._3VhBI{position:relative;display:inline-block;height:36px}._PQXoy{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}._PQXoy:hover{cursor:pointer;background-color:#f5f5f5}._PQXoy:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._PQXoy:disabled,._PQXoy[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._PQXoy:disabled::-moz-placeholder,._PQXoy[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._PQXoy:disabled::placeholder,._PQXoy[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._PQXoy:invalid,._PQXoy[aria-invalid=true]{border-color:#b00}._PQXoy:invalid:focus,._PQXoy[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._PQXoy[type=number]{-moz-appearance:textfield}._PQXoy[type=number]::-webkit-inner-spin-button,._PQXoy[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._PQXoy::-moz-placeholder{color:#515559;opacity:1}._PQXoy::placeholder{color:#515559;opacity:1}._2YCIe{pointer-events:none;color:#515559;fill:#515559}._1OnXC{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._15QmY{color:#515559;font-size:16px}._KYPU_{left:0;margin-left:6px}._KYPU_,._s1XJ1{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._s1XJ1{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_3VhBI","input":"_PQXoy","addOn":"_2YCIe","addOnVerticalCenter":"_1OnXC","addOnTextNode":"_15QmY","leftAddOn":"_KYPU_","rightAddOn":"_s1XJ1"};
|
|
5
|
+
var stylesheet="._3VhBI{position:relative;display:inline-block;height:36px}._PQXoy{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}._PQXoy:hover{cursor:pointer;background-color:#f5f5f5}._PQXoy:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._PQXoy:disabled,._PQXoy[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._PQXoy:disabled::-moz-placeholder,._PQXoy[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._PQXoy:disabled::placeholder,._PQXoy[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._PQXoy:invalid,._PQXoy[aria-invalid=true]{border-color:#b00}._PQXoy:invalid:focus,._PQXoy[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._PQXoy[type=number]{-moz-appearance:textfield}._PQXoy[type=number]::-webkit-inner-spin-button,._PQXoy[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._PQXoy::-moz-placeholder{color:#515559;opacity:1}._PQXoy::placeholder{color:#515559;opacity:1}._2YCIe{pointer-events:none;color:#515559;fill:#515559}._1OnXC{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._15QmY{color:#515559;font-size:16px}._KYPU_{left:0;margin-left:6px}._KYPU_,._s1XJ1{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._s1XJ1{right:0;margin-right:6px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { inputClasses 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 = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._JWO0r input{padding-left:76px!important}._2zL8w input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._2zL8w input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2zL8w input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3uFKv{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._3uFKv,._3uFKv._2zL8w:hover{background-color:transparent!important}._3uFKv:hover{background-color:rgba(50,54,58,.08)!important}._3uFKv:active{background-color:rgba(50,54,58,.11)!important}._3uFKv svg{top:2px!important}._2tz0D{position:relative}._319EG{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_JWO0r","disabled":"_2zL8w","dropdown":"_3uFKv","container":"_2tz0D","countryCode":"_319EG"};
|
|
5
|
+
var stylesheet="._JWO0r input{padding-left:76px!important}._2zL8w input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._2zL8w input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2zL8w input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3uFKv{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._3uFKv,._3uFKv._2zL8w:hover{background-color:transparent!important}._3uFKv:hover{background-color:rgba(50,54,58,.08)!important}._3uFKv:active{background-color:rgba(50,54,58,.11)!important}._3uFKv svg{top:2px!important}._2tz0D{position:relative}._319EG{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
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 = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2lxXg{display:flex}._25dMK{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._25dMK._2J8SZ{background-color:#fff}._25dMK._2J8SZ._2hEL_:not(._25dMK._2J8SZ._t1feU),._25dMK._3Fc6s,body.keyboard-user ._25dMK._2J8SZ._3TWIV:not(._3Gsgb){background-color:#0b6ed0}._25dMK._3Fc6s._3Gsgb._3TWIV,._25dMK._3Fc6s._3Gsgb._t1feU,._25dMK._3Fc6s._t1feU._2hEL_{opacity:.4}._1iaJy{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._1iaJy:focus{z-index:1}._2AIGH{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._2AIGH svg{margin-left:1px}._2AIGH._2J8SZ{background-color:#0b6ed0;border-color:transparent}._2AIGH._2J8SZ svg{fill:#fff!important}._2AIGH._2J8SZ:not(._3xvPT):hover{background-color:#085caf!important}._2AIGH._2J8SZ:not(._3xvPT):active{background-color:#0854a1!important}._2AIGH._2J8SZ._3xvPT{opacity:.4}._2AIGH._2J8SZ._3xvPT svg{background-color:transparent}._2AIGH._3Fc6s{border-color:#0b6ed0;background-color:#fff}._2AIGH._3Fc6s svg{fill:#0b6ed0!important}._2AIGH._3Fc6s:not(._3xvPT):hover{background-color:#eef5fc!important}._2AIGH._3Fc6s:not(._3xvPT):active{background-color:#e1edf9!important}._2AIGH._3Fc6s._3xvPT{opacity:.4}._2AIGH._3Fc6s._3xvPT svg{background-color:transparent}._3E7NF{width:260px}";
|
|
4
|
+
var styles = {"container":"_2lxXg","divider":"_25dMK","primary":"_2J8SZ","mainButtonFocus":"_3TWIV","mainButtonDisabled":"_3Gsgb","dropdownButtonFocus":"_2hEL_","dropdownButtonDisabled":"_t1feU","secondary":"_3Fc6s","mainButton":"_1iaJy","dropdownButton":"_2AIGH","disabled":"_3xvPT","dropdownOption":"_3E7NF"};
|
|
5
|
+
var stylesheet="._2lxXg{display:flex}._25dMK{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._25dMK._2J8SZ{background-color:#fff}._25dMK._2J8SZ._2hEL_:not(._25dMK._2J8SZ._t1feU),._25dMK._3Fc6s,body.keyboard-user ._25dMK._2J8SZ._3TWIV:not(._3Gsgb){background-color:#0b6ed0}._25dMK._3Fc6s._3Gsgb._3TWIV,._25dMK._3Fc6s._3Gsgb._t1feU,._25dMK._3Fc6s._t1feU._2hEL_{opacity:.4}._1iaJy{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._1iaJy:focus{z-index:1}._2AIGH{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._2AIGH svg{margin-left:1px}._2AIGH._2J8SZ{background-color:#0b6ed0;border-color:transparent}._2AIGH._2J8SZ svg{fill:#fff!important}._2AIGH._2J8SZ:not(._3xvPT):hover{background-color:#085caf!important}._2AIGH._2J8SZ:not(._3xvPT):active{background-color:#0854a1!important}._2AIGH._2J8SZ._3xvPT{opacity:.4}._2AIGH._2J8SZ._3xvPT svg{background-color:transparent}._2AIGH._3Fc6s{border-color:#0b6ed0;background-color:#fff}._2AIGH._3Fc6s svg{fill:#0b6ed0!important}._2AIGH._3Fc6s:not(._3xvPT):hover{background-color:#eef5fc!important}._2AIGH._3Fc6s:not(._3xvPT):active{background-color:#e1edf9!important}._2AIGH._3Fc6s._3xvPT{opacity:.4}._2AIGH._3Fc6s._3xvPT svg{background-color:transparent}._3E7NF{width:260px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ declare interface AdvancedTablePaginationProps {
|
|
|
59
59
|
rows: AdvancedTableRow[];
|
|
60
60
|
ariaLabel?: AdvancedTableProps['paginationAriaLabel'];
|
|
61
61
|
onPageChange?: (pageNumber: number) => void;
|
|
62
|
+
'data-testid'?: string;
|
|
62
63
|
}
|
|
63
64
|
|
|
64
65
|
export declare interface AdvancedTableProps {
|