@qualtrics/ui-react 2.36.0 → 2.38.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 +31 -0
- package/dist/__shared/cjs/{index-7baed296.js → index-73d9e179.js} +11 -3
- package/dist/__shared/cjs/{index-52d9f519.js → index-91e58b5f.js} +170 -150
- package/dist/components/Accordion/Accordion2.js +3 -3
- 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/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane.js +1 -4
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +3 -0
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +27 -11
- 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/Icon/IconTypes.js +3 -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/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- 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/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- 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_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- 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/ZoomInIcon.js +6 -0
- package/dist/icons/components/ZoomOutIcon.js +6 -0
- package/dist/icons/index.d.ts +4 -0
- package/dist/icons/index.es.js +2 -0
- package/dist/icons/index.js +3 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +20 -14
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +2 -0
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +2 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/FormFieldWrapper.js +2 -0
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Hooks/usePaneSearch.js +2 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +4 -4
- package/dist/next/Menu/MenuPane.js +21 -13
- package/dist/next/Menu/MenuSearch.js +3 -1
- package/dist/next/Menu/SubMenu.js +8 -8
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +2 -1
- package/dist/next/index.js +98 -80
- package/dist/translations-en.js +1 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +5 -5
|
@@ -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 = "._XXNJk{display:inline-block;width:36px;transition:width .25s ease-out}._rZ2zN{width:100%}._EeEqq>input{padding-right:0!important}._RQx3x>svg{fill:#515559}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_XXNJk","searchInput":"_rZ2zN","searchInputCollapsed":"_EeEqq","iconButton":"_RQx3x"};
|
|
5
|
+
var stylesheet="._XXNJk{display:inline-block;width:36px;transition:width .25s ease-out}._rZ2zN{width:100%}._EeEqq>input{padding-right:0!important}._RQx3x>svg{fill:#515559}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._ovqRG :after{background-color:#515559!important}._yMJVU>input:focus{box-shadow:none!important;border:1px solid #898989!important}._KRz1A{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}._KRz1A ._8G1w- ._NlhCz{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}._KRz1A ._8G1w-:first-child ._3vJzl{display:none}._KRz1A ._k1rne{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._KRz1A ._k1rne:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._KRz1A ._k1rne:hover._WgcrD{background-color:#e4effa}._KRz1A ._k1rne._WgcrD{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._KRz1A ._k1rne:active:not(._WgcrD){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_ovqRG","ignoreFocusStyle":"_yMJVU","flyout":"_KRz1A","group":"_8G1w-","header":"_NlhCz","divider":"_3vJzl","option":"_k1rne","selected":"_WgcrD"};
|
|
5
|
+
var stylesheet="._ovqRG :after{background-color:#515559!important}._yMJVU>input:focus{box-shadow:none!important;border:1px solid #898989!important}._KRz1A{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}._KRz1A ._8G1w- ._NlhCz{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}._KRz1A ._8G1w-:first-child ._3vJzl{display:none}._KRz1A ._k1rne{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._KRz1A ._k1rne:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._KRz1A ._k1rne:hover._WgcrD{background-color:#e4effa}._KRz1A ._k1rne._WgcrD{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._KRz1A ._k1rne:active:not(._WgcrD){background-color:#e8e9e9}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"drawer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Xy-Qj{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}._kSqET{visibility:hidden}._zKm9d{position:fixed}._YrsuO{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._xPZB0{padding-top:8px}._nIubh{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_Xy-Qj","hidden":"_kSqET","anchoredToBody":"_zKm9d","header":"_YrsuO","title":"_xPZB0","closeButton":"_nIubh"};
|
|
5
|
+
var stylesheet="._Xy-Qj{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}._kSqET{visibility:hidden}._zKm9d{position:fixed}._YrsuO{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._xPZB0{padding-top:8px}._nIubh{margin-left:12px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._wmczl{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}._wmczl:hover:not(._4E4Xr){background-color:rgba(50,54,58,.08)}._wmczl:hover:not(._4E4Xr)._azEjj{border-color:#085caf;background-color:rgba(11,110,208,.04)}._wmczl:hover:not(._4E4Xr)._azEjj ._p1dPG{color:#32363a}._wmczl:hover:not(._4E4Xr)._azEjj ._Bpn9E{fill:#32363a}._wmczl:hover:not(._4E4Xr)._azEjj ._0LxCZ{fill:#085caf}._wmczl:hover:not(._4E4Xr)._azEjj ._IcQl6{background-color:rgba(11,110,208,.11)}._wmczl:hover:not(._4E4Xr)._azEjj ._IcQl6 ._dIKG1{color:#085caf}._wmczl:active:not(._4E4Xr){background-color:#e8e9e9}._wmczl:active:not(._4E4Xr)._azEjj{background-color:rgba(11,110,208,.11);border-color:#0854a1}._wmczl:active:not(._4E4Xr)._azEjj ._0LxCZ{fill:#0854a1}._wmczl:active:not(._4E4Xr)._azEjj ._IcQl6{background-color:rgba(11,110,208,.11)}._wmczl:active:not(._4E4Xr)._azEjj ._IcQl6 ._dIKG1{color:#0854a1}._wmczl._4E4Xr{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._wmczl._azEjj{border-color:#0b6ed0}._Bpn9E{fill:#515559;margin-right:4px}._p1dPG{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._p1dPG+._IcQl6{margin-left:6px}._p1dPG._4E4Xr{color:#74777a}._IcQl6{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}._dIKG1{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._0LxCZ{fill:#515559}._0LxCZ._4E4Xr,._0LxCZ._4E4Xr._azEjj{fill:rgba(116,119,122,.4)}._0LxCZ._azEjj{fill:#0b6ed0}._0LxCZ._kIAx-{transform:rotate(-180deg)}._wmczl.focus-visible,._wmczl:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_wmczl","disabled":"_4E4Xr","selected":"_azEjj","label":"_p1dPG","lockIcon":"_Bpn9E","chevronIcon":"_0LxCZ","selectedFiltersContainer":"_IcQl6","selectedFilters":"_dIKG1","open":"_kIAx-"};
|
|
5
|
+
var stylesheet="._wmczl{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}._wmczl:hover:not(._4E4Xr){background-color:rgba(50,54,58,.08)}._wmczl:hover:not(._4E4Xr)._azEjj{border-color:#085caf;background-color:rgba(11,110,208,.04)}._wmczl:hover:not(._4E4Xr)._azEjj ._p1dPG{color:#32363a}._wmczl:hover:not(._4E4Xr)._azEjj ._Bpn9E{fill:#32363a}._wmczl:hover:not(._4E4Xr)._azEjj ._0LxCZ{fill:#085caf}._wmczl:hover:not(._4E4Xr)._azEjj ._IcQl6{background-color:rgba(11,110,208,.11)}._wmczl:hover:not(._4E4Xr)._azEjj ._IcQl6 ._dIKG1{color:#085caf}._wmczl:active:not(._4E4Xr){background-color:#e8e9e9}._wmczl:active:not(._4E4Xr)._azEjj{background-color:rgba(11,110,208,.11);border-color:#0854a1}._wmczl:active:not(._4E4Xr)._azEjj ._0LxCZ{fill:#0854a1}._wmczl:active:not(._4E4Xr)._azEjj ._IcQl6{background-color:rgba(11,110,208,.11)}._wmczl:active:not(._4E4Xr)._azEjj ._IcQl6 ._dIKG1{color:#0854a1}._wmczl._4E4Xr{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._wmczl._azEjj{border-color:#0b6ed0}._Bpn9E{fill:#515559;margin-right:4px}._p1dPG{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._p1dPG+._IcQl6{margin-left:6px}._p1dPG._4E4Xr{color:#74777a}._IcQl6{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}._dIKG1{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._0LxCZ{fill:#515559}._0LxCZ._4E4Xr,._0LxCZ._4E4Xr._azEjj{fill:rgba(116,119,122,.4)}._0LxCZ._azEjj{fill:#0b6ed0}._0LxCZ._kIAx-{transform:rotate(-180deg)}._wmczl.focus-visible,._wmczl:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -12,6 +12,7 @@ const FormFieldWrapper = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
12
12
|
let {
|
|
13
13
|
className,
|
|
14
14
|
inputId,
|
|
15
|
+
labelId,
|
|
15
16
|
'data-testid': dataTestId,
|
|
16
17
|
label,
|
|
17
18
|
helperText,
|
|
@@ -23,6 +24,7 @@ const FormFieldWrapper = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
23
24
|
className: classNames(styles.formFieldWrapper, className),
|
|
24
25
|
ref: ref
|
|
25
26
|
}, rest), label && /*#__PURE__*/React__default.createElement(Label, {
|
|
27
|
+
id: labelId,
|
|
26
28
|
className: styles.label,
|
|
27
29
|
htmlFor: inputId,
|
|
28
30
|
"data-testid": getSubDataTestId(dataTestId, 'label')
|
|
@@ -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 = "._z22U1{margin:6px 0}._hUc3E{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._5K6B8{display:inline-block}._5K6B8:has([aria-expanded=true]) ._hUc3E,._5K6B8[focus-within] ._hUc3E{color:#0b6ed0}._5K6B8:focus-within ._hUc3E,._5K6B8:has([aria-expanded=true]) ._hUc3E{color:#0b6ed0}._5K6B8:has(input:disabled) ._hUc3E{color:rgba(50,54,58,.4)}._5K6B8:not(:has(input:disabled)) ._hUc3E{cursor:pointer}._8bRbb{margin-top:4px}._8bRbb:first-of-type{margin-top:6px}";
|
|
4
|
+
var styles = {"input":"_z22U1","label":"_hUc3E","formFieldWrapper":"_5K6B8","caption":"_8bRbb"};
|
|
5
|
+
var stylesheet="._z22U1{margin:6px 0}._hUc3E{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._5K6B8{display:inline-block}._5K6B8:has([aria-expanded=true]) ._hUc3E,._5K6B8[focus-within] ._hUc3E{color:#0b6ed0}._5K6B8:focus-within ._hUc3E,._5K6B8:has([aria-expanded=true]) ._hUc3E{color:#0b6ed0}._5K6B8:has(input:disabled) ._hUc3E{color:rgba(50,54,58,.4)}._5K6B8:not(:has(input:disabled)) ._hUc3E{cursor:pointer}._8bRbb{margin-top:4px}._8bRbb:first-of-type{margin-top:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._kdet7{position:relative;display:inline-block;height:36px;width:100%}._QhXnV{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}._QhXnV:hover{cursor:pointer;background-color:#f5f5f5}._QhXnV:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._QhXnV:disabled,._QhXnV[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._QhXnV:disabled::-moz-placeholder,._QhXnV[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._QhXnV:disabled::placeholder,._QhXnV[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._QhXnV:invalid,._QhXnV[aria-invalid=true]{border-color:#b00}._QhXnV:invalid:focus,._QhXnV[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._QhXnV[type=number]{-moz-appearance:textfield}._QhXnV[type=number]::-webkit-inner-spin-button,._QhXnV[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._QhXnV::-moz-placeholder{color:#515559;opacity:1}._QhXnV::placeholder{color:#515559;opacity:1}._mdDlf{pointer-events:none;color:#515559;fill:#515559}._f64HM{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._qdcka{color:#515559;font-size:16px}._GB-Mz{left:0;margin-left:6px}._GB-Mz,._OLWYq{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._OLWYq{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_kdet7","input":"_QhXnV","addOn":"_mdDlf","addOnVerticalCenter":"_f64HM","addOnTextNode":"_qdcka","leftAddOn":"_GB-Mz","rightAddOn":"_OLWYq"};
|
|
5
|
+
var stylesheet="._kdet7{position:relative;display:inline-block;height:36px;width:100%}._QhXnV{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}._QhXnV:hover{cursor:pointer;background-color:#f5f5f5}._QhXnV:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._QhXnV:disabled,._QhXnV[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._QhXnV:disabled::-moz-placeholder,._QhXnV[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._QhXnV:disabled::placeholder,._QhXnV[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._QhXnV:invalid,._QhXnV[aria-invalid=true]{border-color:#b00}._QhXnV:invalid:focus,._QhXnV[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._QhXnV[type=number]{-moz-appearance:textfield}._QhXnV[type=number]::-webkit-inner-spin-button,._QhXnV[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._QhXnV::-moz-placeholder{color:#515559;opacity:1}._QhXnV::placeholder{color:#515559;opacity:1}._mdDlf{pointer-events:none;color:#515559;fill:#515559}._f64HM{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._qdcka{color:#515559;font-size:16px}._GB-Mz{left:0;margin-left:6px}._GB-Mz,._OLWYq{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._OLWYq{right:0;margin-right:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
|
@@ -26,7 +26,7 @@ function usePaneSearch(_ref) {
|
|
|
26
26
|
animatedRight,
|
|
27
27
|
menuParentDataTestId,
|
|
28
28
|
id,
|
|
29
|
-
|
|
29
|
+
flyoutNode,
|
|
30
30
|
children = [],
|
|
31
31
|
isSearchFilteringDisabled,
|
|
32
32
|
backButtonRef,
|
|
@@ -64,12 +64,11 @@ function usePaneSearch(_ref) {
|
|
|
64
64
|
(_findLast$element$cur = (_findLast = items.findLast(item => item.element.current)) === null || _findLast === void 0 ? void 0 : _findLast.element.current) !== null && _findLast$element$cur !== void 0 ? _findLast$element$cur : backButtonRef === null || backButtonRef === void 0 ? void 0 : backButtonRef.current
|
|
65
65
|
);
|
|
66
66
|
};
|
|
67
|
-
useEventListener(
|
|
67
|
+
useEventListener(flyoutNode, 'keydown', e => {
|
|
68
68
|
if (KEYS.NAVIGATE_UP.includes(e.key) && e.target === getFirstVisibleItem() || KEYS.NAVIGATE_DOWN.includes(e.key) && e.target === getLastVisibleItem()) {
|
|
69
69
|
searchInput === null || searchInput === void 0 || searchInput.focus();
|
|
70
70
|
}
|
|
71
71
|
}, {
|
|
72
|
-
additionalDependencies: [flyoutRef.current],
|
|
73
72
|
isDisabled: !isSearchable
|
|
74
73
|
});
|
|
75
74
|
const lastestKeyPressedInSearchInput = useRef();
|
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 = "._-BtUi{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._-BtUi>._OtxVJ{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}._-BtUi>._OtxVJ:hover:not([aria-disabled=true]){background-color:#f5f5f5}._-BtUi>._OtxVJ.focus-visible,._-BtUi>._OtxVJ:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-BtUi>._OtxVJ+._KMQ5-{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._-BtUi>._OtxVJ[data-state=open]+._KMQ5-{transform:rotate(-180deg) translateY(50%)}._-BtUi>._OtxVJ[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._-BtUi>._OtxVJ[aria-disabled=true]+._KMQ5-{fill:#515559;opacity:.4}._XbDby>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._XbDby>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._v5w00{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._v5w00 ._cO-co{height:100%;overflow-y:scroll}._v5w00._GJaH3{margin-left:30px;opacity:0}._v5w00._ZniY3{margin-left:-30px}._C85LH{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._C85LH._k4hQc{cursor:unset}._C85LH ._H3cLf{fill:#32363a;margin-right:4px}._C85LH:focus,._C85LH:hover:not(._C85LH._k4hQc){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._C85LH[aria-disabled=true]{cursor:not-allowed;opacity:.65}._C85LH._h8HBL{padding-right:32px}._C85LH._h8HBL ._KMQ5-{position:absolute;height:100%;right:3px;fill:#515559}._C85LH._YYuf-{pointer-events:none}._AzXaN{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._AzXaN._gbWoR{padding-top:52px}._bEbg9{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._UUEcu{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._UUEcu._ZniY3{opacity:0}._UUEcu._ZniY3>._U18kE{margin-left:-30px}._UUEcu._GJaH3{opacity:0}._UUEcu._GJaH3>._U18kE{margin-left:30px}._UUEcu>._U18kE{transition:margin-left .35s;width:100%}._UUEcu._YYuf-{pointer-events:none}body.keyboard-user ._C85LH:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_-BtUi","button":"_OtxVJ","rightIcon":"_KMQ5-","maskContainer":"_XbDby","flyout":"_v5w00","scrollContainer":"_cO-co","animatedRight":"_GJaH3","animatedLeft":"_ZniY3","menuItem":"_C85LH","noItems":"_k4hQc","backIcon":"_H3cLf","subMenu":"_h8HBL","unresponsive":"_YYuf-","stickyBox":"_AzXaN","isSearchable":"_gbWoR","searchBoxesContainer":"_bEbg9","searchBox":"_UUEcu","searchInput":"_U18kE"};
|
|
5
|
+
var stylesheet="._-BtUi{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._-BtUi>._OtxVJ{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}._-BtUi>._OtxVJ:hover:not([aria-disabled=true]){background-color:#f5f5f5}._-BtUi>._OtxVJ.focus-visible,._-BtUi>._OtxVJ:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._-BtUi>._OtxVJ+._KMQ5-{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._-BtUi>._OtxVJ[data-state=open]+._KMQ5-{transform:rotate(-180deg) translateY(50%)}._-BtUi>._OtxVJ[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._-BtUi>._OtxVJ[aria-disabled=true]+._KMQ5-{fill:#515559;opacity:.4}._XbDby>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._XbDby>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._v5w00{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._v5w00 ._cO-co{height:100%;overflow-y:scroll}._v5w00._GJaH3{margin-left:30px;opacity:0}._v5w00._ZniY3{margin-left:-30px}._C85LH{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._C85LH._k4hQc{cursor:unset}._C85LH ._H3cLf{fill:#32363a;margin-right:4px}._C85LH:focus,._C85LH:hover:not(._C85LH._k4hQc){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._C85LH[aria-disabled=true]{cursor:not-allowed;opacity:.65}._C85LH._h8HBL{padding-right:32px}._C85LH._h8HBL ._KMQ5-{position:absolute;height:100%;right:3px;fill:#515559}._C85LH._YYuf-{pointer-events:none}._AzXaN{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._AzXaN._gbWoR{padding-top:52px}._bEbg9{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._UUEcu{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._UUEcu._ZniY3{opacity:0}._UUEcu._ZniY3>._U18kE{margin-left:-30px}._UUEcu._GJaH3{opacity:0}._UUEcu._GJaH3>._U18kE{margin-left:30px}._UUEcu>._U18kE{transition:margin-left .35s;width:100%}._UUEcu._YYuf-{pointer-events:none}body.keyboard-user ._C85LH:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -31,7 +31,7 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
31
31
|
childIndex,
|
|
32
32
|
isInteractive,
|
|
33
33
|
closeSubmenu,
|
|
34
|
-
|
|
34
|
+
flyoutNode,
|
|
35
35
|
stickyBoxRef,
|
|
36
36
|
focusVirtualBoundary,
|
|
37
37
|
isVirtualized: paneIsVirtualized,
|
|
@@ -48,14 +48,14 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
48
48
|
});
|
|
49
49
|
const dataTestId = getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_ITEM : DATA_TESTID_SUFFIXES$1.MENU_ITEM), String(index));
|
|
50
50
|
const handleFocus = () => {
|
|
51
|
-
if (itemRef.current &&
|
|
51
|
+
if (itemRef.current && flyoutNode && isFocusVisible) {
|
|
52
52
|
var _stickyBoxRef$current, _stickyBoxRef$current2;
|
|
53
53
|
const stickyBoxHeight = (_stickyBoxRef$current = (_stickyBoxRef$current2 = stickyBoxRef.current) === null || _stickyBoxRef$current2 === void 0 ? void 0 : _stickyBoxRef$current2.clientHeight) !== null && _stickyBoxRef$current !== void 0 ? _stickyBoxRef$current : 0;
|
|
54
54
|
|
|
55
55
|
// if the top of the focused menu item is beneath the sticky box
|
|
56
|
-
if (itemRef.current.offsetTop <
|
|
56
|
+
if (itemRef.current.offsetTop < flyoutNode.scrollTop + stickyBoxHeight) {
|
|
57
57
|
// scroll down a little
|
|
58
|
-
|
|
58
|
+
flyoutNode.scrollTop = itemRef.current.offsetTop - stickyBoxHeight;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default, { useState, useRef, useMemo } from 'react';
|
|
2
|
+
import React__default, { useState, useCallback, useRef, useMemo } from 'react';
|
|
3
3
|
import { Portal, Content } from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
import { useFocusVisible } from '@react-aria/interactions';
|
|
5
5
|
import classNames from 'classnames';
|
|
@@ -27,7 +27,7 @@ import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
|
27
27
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
28
28
|
|
|
29
29
|
const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
30
|
-
var
|
|
30
|
+
var _flyoutNode$parentNod, _process$env;
|
|
31
31
|
let {
|
|
32
32
|
placement,
|
|
33
33
|
children,
|
|
@@ -41,7 +41,8 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
41
41
|
...rest
|
|
42
42
|
} = _ref;
|
|
43
43
|
const [items, setItems] = useState([]);
|
|
44
|
-
const
|
|
44
|
+
const [flyoutNode, setFlyoutNode] = useState(null);
|
|
45
|
+
const onRefChange = useCallback(node => setFlyoutNode(node), []);
|
|
45
46
|
const stickyBoxRef = useRef(null);
|
|
46
47
|
const selectContext = useSelectContext(true);
|
|
47
48
|
const withinSelect = selectContext !== null;
|
|
@@ -70,8 +71,8 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
// check `className`
|
|
73
|
-
if (!maxHeightString &&
|
|
74
|
-
const computedString = window.getComputedStyle(
|
|
74
|
+
if (!maxHeightString && flyoutNode) {
|
|
75
|
+
const computedString = window.getComputedStyle(flyoutNode).maxHeight;
|
|
75
76
|
if (computedString !== 'none') {
|
|
76
77
|
maxHeightString = computedString;
|
|
77
78
|
}
|
|
@@ -98,7 +99,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
98
99
|
const maskContainerId = useId();
|
|
99
100
|
const maskContainer = document.getElementById(maskContainerId);
|
|
100
101
|
const [transform, setTransform] = useState('');
|
|
101
|
-
const target = (
|
|
102
|
+
const target = (_flyoutNode$parentNod = flyoutNode === null || flyoutNode === void 0 ? void 0 : flyoutNode.parentNode) !== null && _flyoutNode$parentNod !== void 0 ? _flyoutNode$parentNod : undefined;
|
|
102
103
|
const {
|
|
103
104
|
dataTestId: rootDataTestId,
|
|
104
105
|
openPaneDepth,
|
|
@@ -126,7 +127,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
126
127
|
animatedRight: false,
|
|
127
128
|
menuParentDataTestId: dataTestId,
|
|
128
129
|
id: useId(),
|
|
129
|
-
|
|
130
|
+
flyoutNode,
|
|
130
131
|
children,
|
|
131
132
|
isSearchFilteringDisabled,
|
|
132
133
|
isVirtualized
|
|
@@ -135,10 +136,15 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
135
136
|
const {
|
|
136
137
|
isFocusVisible
|
|
137
138
|
} = useFocusVisible();
|
|
138
|
-
const
|
|
139
|
+
const menuSearchInputRef = useRef(null);
|
|
140
|
+
const maskIsReady = useMaskDimensions(flyoutNode, animatedLeft, thisPanesDepth, children, isVirtualized, isVirtualizationReady);
|
|
139
141
|
useDidUpdate(() => {
|
|
140
142
|
if (maskIsReady && isFocusVisible) {
|
|
141
|
-
items[0]
|
|
143
|
+
if (items[0]) {
|
|
144
|
+
items[0].element.current.focus();
|
|
145
|
+
} else if (menuSearchInputRef.current) {
|
|
146
|
+
menuSearchInputRef.current.focus();
|
|
147
|
+
}
|
|
142
148
|
}
|
|
143
149
|
}, [maskIsReady]);
|
|
144
150
|
const defaultSide = useMemo(() => {
|
|
@@ -187,7 +193,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
187
193
|
value: {
|
|
188
194
|
dataTestId,
|
|
189
195
|
isInteractive: !animatedLeft,
|
|
190
|
-
|
|
196
|
+
flyoutNode,
|
|
191
197
|
stickyBoxRef,
|
|
192
198
|
zIndex,
|
|
193
199
|
focusVirtualBoundary,
|
|
@@ -215,7 +221,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
215
221
|
loop: !isSearchable,
|
|
216
222
|
side: side || defaultSide,
|
|
217
223
|
align: align || 'start',
|
|
218
|
-
ref: mergeRefs(ref,
|
|
224
|
+
ref: mergeRefs(ref, onRefChange),
|
|
219
225
|
"data-testid": dataTestId,
|
|
220
226
|
className: classNames(className, {
|
|
221
227
|
[styles.animatedLeft]: animatedLeft
|
|
@@ -234,7 +240,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
234
240
|
style: {
|
|
235
241
|
transform,
|
|
236
242
|
zIndex: zIndex + openPaneDepth,
|
|
237
|
-
width:
|
|
243
|
+
width: flyoutNode === null || flyoutNode === void 0 ? void 0 : flyoutNode.clientWidth
|
|
238
244
|
}
|
|
239
245
|
}, searchBarConfigs.length ? searchBarConfigs.map(_ref2 => {
|
|
240
246
|
let {
|
|
@@ -243,7 +249,9 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
243
249
|
} = _ref2;
|
|
244
250
|
return /*#__PURE__*/React__default.createElement(MenuSearch, _extends({
|
|
245
251
|
key: id
|
|
246
|
-
}, config
|
|
252
|
+
}, config, {
|
|
253
|
+
inputRef: menuSearchInputRef
|
|
254
|
+
}));
|
|
247
255
|
}) : null))));
|
|
248
256
|
});
|
|
249
257
|
|
|
@@ -14,7 +14,8 @@ const MenuSearch = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
14
14
|
dataTestId,
|
|
15
15
|
searchValue = '',
|
|
16
16
|
isInteractive = false,
|
|
17
|
-
searchPlaceholder
|
|
17
|
+
searchPlaceholder,
|
|
18
|
+
inputRef
|
|
18
19
|
} = _ref;
|
|
19
20
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
20
21
|
className: classNames(styles.searchBox, {
|
|
@@ -24,6 +25,7 @@ const MenuSearch = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
24
25
|
}),
|
|
25
26
|
ref: ref
|
|
26
27
|
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
28
|
+
ref: inputRef,
|
|
27
29
|
"data-testid": dataTestId,
|
|
28
30
|
role: "searchbox",
|
|
29
31
|
value: searchValue,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default, { useState, useRef, useMemo, useEffect } from 'react';
|
|
2
|
+
import React__default, { useState, useRef, useCallback, useMemo, useEffect } from 'react';
|
|
3
3
|
import { Sub, SubTrigger, SubContent, Item } from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
5
|
import { useFocusVisible } from '@react-aria/interactions';
|
|
@@ -56,7 +56,8 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
56
56
|
const [items, setItems] = useState([]);
|
|
57
57
|
const internalId = useId();
|
|
58
58
|
const triggerRef = useRef(null);
|
|
59
|
-
const
|
|
59
|
+
const [flyoutNode, setFlyoutNode] = useState(null);
|
|
60
|
+
const onRefChange = useCallback(node => setFlyoutNode(node), []);
|
|
60
61
|
const stickyBoxRef = useRef(null);
|
|
61
62
|
const backButtonRef = useRef(null);
|
|
62
63
|
const {
|
|
@@ -106,7 +107,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
106
107
|
animatedRight,
|
|
107
108
|
menuParentDataTestId: paneDataTestId,
|
|
108
109
|
id: internalId,
|
|
109
|
-
|
|
110
|
+
flyoutNode,
|
|
110
111
|
children,
|
|
111
112
|
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren,
|
|
112
113
|
backButtonRef,
|
|
@@ -130,9 +131,8 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
130
131
|
// Omitted dependencies because this should only run on unmount
|
|
131
132
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
132
133
|
useEffect(() => () => registerSubmenu(internalId, false), []);
|
|
133
|
-
useMaskDimensions(
|
|
134
|
+
useMaskDimensions(flyoutNode, animatedLeft, thisPanesDepth, children, isVirtualized, true);
|
|
134
135
|
const handlePaneTransitionEnd = () => {
|
|
135
|
-
var _flyoutRef$current;
|
|
136
136
|
if (animatedLeft) {
|
|
137
137
|
return;
|
|
138
138
|
}
|
|
@@ -146,7 +146,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
// if the newly closed submenu doesn't place the focus on its trigger due to mouse events
|
|
149
|
-
if (!(
|
|
149
|
+
if (!(flyoutNode !== null && flyoutNode !== void 0 && flyoutNode.contains(document.activeElement)) && isFocusVisible) {
|
|
150
150
|
if (triggerRef.current && paneContainingTriggerIsInteractive) {
|
|
151
151
|
triggerRef.current.focus();
|
|
152
152
|
} else if (backButtonRef.current) {
|
|
@@ -201,7 +201,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
201
201
|
dataTestId: paneDataTestId,
|
|
202
202
|
isInteractive: !isTransitioningFromRight && !animatedLeft && !animatedRight,
|
|
203
203
|
closeSubmenu: closeThisSubmenu,
|
|
204
|
-
|
|
204
|
+
flyoutNode,
|
|
205
205
|
stickyBoxRef,
|
|
206
206
|
zIndex,
|
|
207
207
|
focusVirtualBoundary: focusVirtualBoundaryInPane,
|
|
@@ -211,7 +211,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
211
211
|
}, /*#__PURE__*/React__default.createElement(SubContent, _extends({}, rest, {
|
|
212
212
|
loop: !isSearchable,
|
|
213
213
|
"data-testid": paneDataTestId,
|
|
214
|
-
ref: mergeRefs(ref,
|
|
214
|
+
ref: mergeRefs(ref, onRefChange),
|
|
215
215
|
onInteractOutside: onInteractOutside,
|
|
216
216
|
className: classNames(className, styles.flyout, {
|
|
217
217
|
[styles.animatedRight]: animatedRight,
|
|
@@ -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 = "._S2iLZ input{padding-left:76px!important}._eYfFf input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._eYfFf input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._eYfFf input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._yQtZe{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._yQtZe,._yQtZe._eYfFf:hover{background-color:transparent!important}._yQtZe:hover{background-color:rgba(50,54,58,.08)!important}._yQtZe:active{background-color:rgba(50,54,58,.11)!important}._yQtZe svg{top:2px!important}._9r0PX{position:relative}._9g4wU{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_S2iLZ","disabled":"_eYfFf","dropdown":"_yQtZe","container":"_9r0PX","countryCode":"_9g4wU"};
|
|
5
|
+
var stylesheet="._S2iLZ input{padding-left:76px!important}._eYfFf input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._eYfFf input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._eYfFf input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._yQtZe{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._yQtZe,._yQtZe._eYfFf:hover{background-color:transparent!important}._yQtZe:hover{background-color:rgba(50,54,58,.08)!important}._yQtZe:active{background-color:rgba(50,54,58,.11)!important}._yQtZe svg{top:2px!important}._9r0PX{position:relative}._9g4wU{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"isInvalid":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._goZpV{box-shadow:inset 0 0 0 1px #b00!important}._gsllK{margin-right:7px}._ULhQM{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_goZpV","checkbox":"_gsllK","selectedItem":"_ULhQM"};
|
|
5
|
+
var stylesheet="._goZpV{box-shadow:inset 0 0 0 1px #b00!important}._gsllK{margin-right:7px}._ULhQM{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._UnpVx{display:flex}._4TYTh{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._4TYTh._t-H-3{background-color:#fff}._4TYTh._6PgGb,._4TYTh._t-H-3._r6aUk.focus-visible:not(._wSct2),._4TYTh._t-H-3._r6aUk:focus-visible:not(._wSct2),._4TYTh._t-H-3._rFwoy:not(._4TYTh._t-H-3._TUNwm){background-color:#0b6ed0}._4TYTh._6PgGb._TUNwm._rFwoy,._4TYTh._6PgGb._wSct2._r6aUk,._4TYTh._6PgGb._wSct2._TUNwm{opacity:.4}._8hQdc{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._8hQdc:focus{z-index:1}._B3MMN{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}._B3MMN svg{margin-left:1px}._B3MMN._t-H-3{background-color:#0b6ed0;border-color:transparent}._B3MMN._t-H-3 svg{fill:#fff!important}._B3MMN._t-H-3:not(._iYRSq):hover{background-color:#085caf!important}._B3MMN._t-H-3:not(._iYRSq):active{background-color:#0854a1!important}._B3MMN._t-H-3._iYRSq{opacity:.4}._B3MMN._t-H-3._iYRSq svg{background-color:transparent}._B3MMN._6PgGb{border-color:#0b6ed0;background-color:#fff}._B3MMN._6PgGb svg{fill:#0b6ed0!important}._B3MMN._6PgGb:not(._iYRSq):hover{background-color:#eef5fc!important}._B3MMN._6PgGb:not(._iYRSq):active{background-color:#e1edf9!important}._B3MMN._6PgGb._iYRSq{opacity:.4}._B3MMN._6PgGb._iYRSq svg{background-color:transparent}._RIZ3i{width:260px}";
|
|
4
|
+
var styles = {"container":"_UnpVx","divider":"_4TYTh","primary":"_t-H-3","mainButtonFocus":"_r6aUk","mainButtonDisabled":"_wSct2","dropdownButtonFocus":"_rFwoy","dropdownButtonDisabled":"_TUNwm","secondary":"_6PgGb","mainButton":"_8hQdc","dropdownButton":"_B3MMN","disabled":"_iYRSq","dropdownOption":"_RIZ3i"};
|
|
5
|
+
var stylesheet="._UnpVx{display:flex}._4TYTh{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._4TYTh._t-H-3{background-color:#fff}._4TYTh._6PgGb,._4TYTh._t-H-3._r6aUk.focus-visible:not(._wSct2),._4TYTh._t-H-3._r6aUk:focus-visible:not(._wSct2),._4TYTh._t-H-3._rFwoy:not(._4TYTh._t-H-3._TUNwm){background-color:#0b6ed0}._4TYTh._6PgGb._TUNwm._rFwoy,._4TYTh._6PgGb._wSct2._r6aUk,._4TYTh._6PgGb._wSct2._TUNwm{opacity:.4}._8hQdc{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._8hQdc:focus{z-index:1}._B3MMN{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}._B3MMN svg{margin-left:1px}._B3MMN._t-H-3{background-color:#0b6ed0;border-color:transparent}._B3MMN._t-H-3 svg{fill:#fff!important}._B3MMN._t-H-3:not(._iYRSq):hover{background-color:#085caf!important}._B3MMN._t-H-3:not(._iYRSq):active{background-color:#0854a1!important}._B3MMN._t-H-3._iYRSq{opacity:.4}._B3MMN._t-H-3._iYRSq svg{background-color:transparent}._B3MMN._6PgGb{border-color:#0b6ed0;background-color:#fff}._B3MMN._6PgGb svg{fill:#0b6ed0!important}._B3MMN._6PgGb:not(._iYRSq):hover{background-color:#eef5fc!important}._B3MMN._6PgGb:not(._iYRSq):active{background-color:#e1edf9!important}._B3MMN._6PgGb._iYRSq{opacity:.4}._B3MMN._6PgGb._iYRSq svg{background-color:transparent}._RIZ3i{width:260px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"timePickerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._PuGv8{display:inline-block;position:relative}._PuGv8 ._bpipn{width:120px}._PuGv8 ._bpipn ._F864c._B0-vr{transform:rotate(-180deg)}._PuGv8 ._bpipn ._F864c._g4xrI{fill:#9d9fa1;opacity:.4}._PuGv8 ._hl5bw>input:focus{box-shadow:none!important;border:1px solid #898989!important}._PuGv8 ._F864c{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._PuGv8 ._F864c._B0-vr{transform:rotate(-180deg)}._a-ptd{width:120px}._a-ptd ._XWI3l._M-3JI{background-color:#efefef;border-radius:6px}";
|
|
4
|
+
var styles = {"timePickerContainer":"_PuGv8","input":"_bpipn","icon":"_F864c","open":"_B0-vr","disabled":"_g4xrI","ignoreFocusStyle":"_hl5bw","timePickerFlyout":"_a-ptd","option":"_XWI3l","exactMatch":"_M-3JI"};
|
|
5
|
+
var stylesheet="._PuGv8{display:inline-block;position:relative}._PuGv8 ._bpipn{width:120px}._PuGv8 ._bpipn ._F864c._B0-vr{transform:rotate(-180deg)}._PuGv8 ._bpipn ._F864c._g4xrI{fill:#9d9fa1;opacity:.4}._PuGv8 ._hl5bw>input:focus{box-shadow:none!important;border:1px solid #898989!important}._PuGv8 ._F864c{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._PuGv8 ._F864c._B0-vr{transform:rotate(-180deg)}._a-ptd{width:120px}._a-ptd ._XWI3l._M-3JI{background-color:#efefef;border-radius:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"default":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._aMi93{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._dnF6M{background-color:rgba(50,54,58,.08)}._-FpqK{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._u64dA{color:rgba(81,85,89,.4);cursor:not-allowed}._xQvE8{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._BK0Dg{color:#085caf;border-color:#085caf}._BK0Dg,._PWRfo{background:rgba(11,110,208,.11)}._PWRfo{color:#0854a1;border-color:#0854a1}._-uRtI{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._gK2m4{position:relative;display:inline-grid}._gK2m4 svg{fill:currentColor}._gK2m4 ._STGav{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._gK2m4 ._STGav+._UF9Zv{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._gK2m4 ._STGav+._UF9Zv._5d9ys{padding:5px;max-width:36px;min-width:36px}._gK2m4 ._STGav+._UF9Zv._wB8Og{padding:0 16px}._gK2m4 ._STGav+._UF9Zv._Qtiaa{padding:0 16px 0 12px}._gK2m4 ._STGav:hover+._UF9Zv{background-color:rgba(50,54,58,.08)}._gK2m4 ._STGav:disabled+._UF9Zv{color:rgba(81,85,89,.4);cursor:not-allowed}._gK2m4 ._STGav:active+._UF9Zv,._gK2m4 ._STGav:focus:active+._UF9Zv{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._gK2m4 ._STGav:checked+._UF9Zv{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._gK2m4 ._STGav:checked:hover+._UF9Zv{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._gK2m4 ._STGav:checked:disabled+._UF9Zv{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._gK2m4 ._STGav:checked:active+._UF9Zv,._gK2m4 ._STGav:checked:focus:active+._UF9Zv{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._lsoDD{display:inline-flex;position:relative}._lsoDD:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._lsoDD>*{flex-shrink:0;flex-grow:0}._dOaYM{border:none;margin:0;padding:0}._dOaYM legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._gK2m4 ._STGav.focus-visible,._gK2m4 ._STGav:focus-visible{outline:none}._gK2m4 ._STGav.focus-visible+._UF9Zv,._gK2m4 ._STGav:focus-visible+._UF9Zv{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_aMi93","hovered":"_dnF6M","pressed":"_-FpqK","disabled":"_u64dA","selectedDefault":"_xQvE8","selectedHovered":"_BK0Dg","selectedPressed":"_PWRfo","selectedDisabled":"_-uRtI","toggleContainer":"_gK2m4","toggleInput":"_STGav","toggleButton":"_UF9Zv","iconOnly":"_5d9ys","text":"_wB8Og","iconText":"_Qtiaa","toggleButtonGroup":"_lsoDD","toggleButtonGroupFieldset":"_dOaYM"};
|
|
5
|
+
var stylesheet="._aMi93{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._dnF6M{background-color:rgba(50,54,58,.08)}._-FpqK{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._u64dA{color:rgba(81,85,89,.4);cursor:not-allowed}._xQvE8{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._BK0Dg{color:#085caf;border-color:#085caf}._BK0Dg,._PWRfo{background:rgba(11,110,208,.11)}._PWRfo{color:#0854a1;border-color:#0854a1}._-uRtI{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._gK2m4{position:relative;display:inline-grid}._gK2m4 svg{fill:currentColor}._gK2m4 ._STGav{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._gK2m4 ._STGav+._UF9Zv{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._gK2m4 ._STGav+._UF9Zv._5d9ys{padding:5px;max-width:36px;min-width:36px}._gK2m4 ._STGav+._UF9Zv._wB8Og{padding:0 16px}._gK2m4 ._STGav+._UF9Zv._Qtiaa{padding:0 16px 0 12px}._gK2m4 ._STGav:hover+._UF9Zv{background-color:rgba(50,54,58,.08)}._gK2m4 ._STGav:disabled+._UF9Zv{color:rgba(81,85,89,.4);cursor:not-allowed}._gK2m4 ._STGav:active+._UF9Zv,._gK2m4 ._STGav:focus:active+._UF9Zv{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._gK2m4 ._STGav:checked+._UF9Zv{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._gK2m4 ._STGav:checked:hover+._UF9Zv{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._gK2m4 ._STGav:checked:disabled+._UF9Zv{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._gK2m4 ._STGav:checked:active+._UF9Zv,._gK2m4 ._STGav:checked:focus:active+._UF9Zv{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._lsoDD{display:inline-flex;position:relative}._lsoDD:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._lsoDD>*{flex-shrink:0;flex-grow:0}._dOaYM{border:none;margin:0;padding:0}._dOaYM legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._gK2m4 ._STGav.focus-visible,._gK2m4 ._STGav:focus-visible{outline:none}._gK2m4 ._STGav.focus-visible+._UF9Zv,._gK2m4 ._STGav:focus-visible+._UF9Zv{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -157,13 +157,14 @@ export declare interface AdvancedTableProps {
|
|
|
157
157
|
/** The id of the element that describes `AdvancedTable`. Internally this is combined with the screen reader descriptions mentioned in the localization section. */
|
|
158
158
|
'aria-describedby'?: string;
|
|
159
159
|
/** Forwarded to the containing `div` element and to the sub-elements, each with their own suffix:
|
|
160
|
-
* - columnheader: `-<columnId
|
|
160
|
+
* - columnheader: `-<columnId>`, or `-CheckboxColumnHeader` for the checkbox column
|
|
161
161
|
* - columnheader menu: `-<columnId>-ColumnHeaderMenu`
|
|
162
162
|
* - pin column: `-PinColumn`
|
|
163
163
|
* - move column left: `-MoveColumnLeft`
|
|
164
164
|
* - move column right: `-MoveColumnRight`
|
|
165
165
|
* - sort: `-Sort-<index>-<direction>`
|
|
166
166
|
* - row: `-row-<rowId>`
|
|
167
|
+
* - row checkbox: `-row-<rowId>-Checkbox`
|
|
167
168
|
* - gridcell: `-cell-<rowId>-<columnId>`
|
|
168
169
|
* - pagination: `-TablePagination`
|
|
169
170
|
* - previous button: `-PreviousButton`
|