@qualtrics/ui-react 2.23.0 → 2.23.1-alpha.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/dist/__shared/cjs/{index-10d6f3f3.js → index-cf860ea0.js} +232 -204
- package/dist/components/Checkbox/Check.js +1 -1
- package/dist/components/Checkbox/VisualCheckbox.js +2 -2
- package/dist/components/Divider/Divider.js +2 -1
- package/dist/components/IconButton/IconButton.js +3 -3
- package/dist/components/IconButton/IconButton2.js +2 -2
- package/dist/components/LogicEditor/ConditionSet.js +10 -11
- package/dist/components/LogicEditor/Controls.js +28 -14
- package/dist/components/LogicEditor/LogicEditor.js +51 -40
- package/dist/components/Tooltip/Tooltip.js +2 -1
- package/dist/index.js +1 -1
- package/dist/next/AdvancedTable/AdvancedTable.js +43 -50
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +21 -27
- package/dist/next/AdvancedTable/AdvancedTableRow.js +1 -3
- package/dist/next/AdvancedTable/AdvancedTableRowExpandButton.js +10 -15
- package/dist/next/Menu/Menu2.js +2 -2
- package/dist/next/Menu/MenuPane.js +10 -2
- package/dist/next/Menu/SubMenu.js +10 -4
- package/dist/next/Menu/useCSSVariable.js +10 -0
- package/dist/next/index.d.ts +1 -0
- package/dist/next/index.js +100 -103
- package/dist/utils/Flyout/FlyoutHeader.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "._5duf1{overflow:auto;position:relative;max-width:100%;max-height:100%}._5duf1,._UzR-x{background-color:#fff}._UzR-x{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._LT-mN{margin-bottom:4px}._2Ov40{position:-webkit-sticky;position:sticky;top:0;z-index:100}._kCowG{display:flex}._kCowG:focus{outline:none}._kCowG.focus-visible ._5COUG:after,._kCowG:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._kCowG.focus-visible ._5COUG:last-of-type:after,._kCowG:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._kCowG.focus-visible ._5COUG:first-of-type:after,._kCowG:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._kCowG.focus-visible ._5COUG._ekMNL:after,._kCowG:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._nqTUi{padding-right:3px}._r9lFo{display:flex}._r9lFo._K8Y7X ._5COUG,._r9lFo._K8Y7X ._I21qU{cursor:pointer}._r9lFo._S8WbH ._5COUG,._r9lFo._S8WbH ._I21qU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL,._r9lFo._S8WbH ._I21qU._ekMNL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL ._EbhSs,._r9lFo._S8WbH ._5COUG._ekMNL ._I21qU,._r9lFo._S8WbH ._5COUG._ekMNL ._l6gx8,._r9lFo._S8WbH ._I21qU._ekMNL ._EbhSs,._r9lFo._S8WbH ._I21qU._ekMNL ._I21qU,._r9lFo._S8WbH ._I21qU._ekMNL ._l6gx8{background-color:rgba(11,110,208,.08)}._r9lFo._K8Y7X:hover:not(._S8WbH):not(.
|
|
4
|
-
var styles = {"advancedTable":"_5duf1","advancedTablePaginationContainer":"_UzR-x","advancedTablePagination":"_LT-mN","advancedTableColumnHeadersRowGroup":"_2Ov40","advancedTableColumnHeaders":"_kCowG","advancedTableRowChild":"_5COUG","pinnedContainer":"_ekMNL","advancedTableRowGroup":"_nqTUi","advancedTableRow":"_r9lFo","hasRowAction":"_K8Y7X","advancedTableExpandRowSpacer":"_I21qU","isSelected":"_S8WbH","advancedTableCheckbox":"_l6gx8","advancedTableCell":"_EbhSs","
|
|
5
|
-
var stylesheet="._5duf1{overflow:auto;position:relative;max-width:100%;max-height:100%}._5duf1,._UzR-x{background-color:#fff}._UzR-x{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._LT-mN{margin-bottom:4px}._2Ov40{position:-webkit-sticky;position:sticky;top:0;z-index:100}._kCowG{display:flex}._kCowG:focus{outline:none}._kCowG.focus-visible ._5COUG:after,._kCowG:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._kCowG.focus-visible ._5COUG:last-of-type:after,._kCowG:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._kCowG.focus-visible ._5COUG:first-of-type:after,._kCowG:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._kCowG.focus-visible ._5COUG._ekMNL:after,._kCowG:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._nqTUi{padding-right:3px}._r9lFo{display:flex}._r9lFo._K8Y7X ._5COUG,._r9lFo._K8Y7X ._I21qU{cursor:pointer}._r9lFo._S8WbH ._5COUG,._r9lFo._S8WbH ._I21qU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL,._r9lFo._S8WbH ._I21qU._ekMNL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL ._EbhSs,._r9lFo._S8WbH ._5COUG._ekMNL ._I21qU,._r9lFo._S8WbH ._5COUG._ekMNL ._l6gx8,._r9lFo._S8WbH ._I21qU._ekMNL ._EbhSs,._r9lFo._S8WbH ._I21qU._ekMNL ._I21qU,._r9lFo._S8WbH ._I21qU._ekMNL ._l6gx8{background-color:rgba(11,110,208,.08)}._r9lFo._K8Y7X:hover:not(._S8WbH):not(.
|
|
3
|
+
var css_248z = "._5duf1{overflow:auto;position:relative;max-width:100%;max-height:100%}._5duf1,._UzR-x{background-color:#fff}._UzR-x{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._LT-mN{margin-bottom:4px}._2Ov40{position:-webkit-sticky;position:sticky;top:0;z-index:100}._kCowG{display:flex}._kCowG:focus{outline:none}._kCowG.focus-visible ._5COUG:after,._kCowG:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._kCowG.focus-visible ._5COUG:last-of-type:after,._kCowG:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._kCowG.focus-visible ._5COUG:first-of-type:after,._kCowG:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._kCowG.focus-visible ._5COUG._ekMNL:after,._kCowG:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._nqTUi{padding-right:3px}._r9lFo{display:flex}._r9lFo._K8Y7X ._5COUG,._r9lFo._K8Y7X ._I21qU{cursor:pointer}._r9lFo._S8WbH ._5COUG,._r9lFo._S8WbH ._I21qU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL,._r9lFo._S8WbH ._I21qU._ekMNL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL ._EbhSs,._r9lFo._S8WbH ._5COUG._ekMNL ._I21qU,._r9lFo._S8WbH ._5COUG._ekMNL ._l6gx8,._r9lFo._S8WbH ._I21qU._ekMNL ._EbhSs,._r9lFo._S8WbH ._I21qU._ekMNL ._I21qU,._r9lFo._S8WbH ._I21qU._ekMNL ._l6gx8{background-color:rgba(11,110,208,.08)}._r9lFo._K8Y7X:hover:not(._S8WbH) ._5COUG,._r9lFo._K8Y7X:hover:not(._S8WbH) ._I21qU{background-color:#f9f9f9}._r9lFo._K8Y7X:active:not(._S8WbH)[\\:not-has\\(._l6gx8\\:active\\)] ._5COUG,._r9lFo._K8Y7X:active:not(._S8WbH)[\\:not-has\\(._l6gx8\\:active\\)] ._I21qU{background-color:#f3f3f3}._r9lFo._K8Y7X:active:not(._S8WbH):not(._r9lFo._K8Y7X:active:not(._S8WbH):has(._l6gx8:active)) ._5COUG,._r9lFo._K8Y7X:active:not(._S8WbH):not(._r9lFo._K8Y7X:active:not(._S8WbH):has(._l6gx8:active)) ._I21qU{background-color:#f3f3f3}._r9lFo:focus{outline:none}._r9lFo.focus-visible ._5COUG:after,._r9lFo:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo.focus-visible ._5COUG:last-of-type:after,._r9lFo:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG:first-of-type:after,._r9lFo:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG._ekMNL:after,._r9lFo:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:last-of-type:focus{outline:none}._r9lFo:last-of-type.focus-visible ._5COUG:after,._r9lFo:last-of-type:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo:last-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:last-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._r9lFo:last-of-type ._EbhSs:focus{outline:none}._r9lFo:last-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:last-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:last-of-type ._EbhSs.focus-visible:after,._r9lFo:last-of-type ._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._r9lFo:first-of-type:focus{outline:none}._r9lFo:first-of-type.focus-visible ._5COUG:after,._r9lFo:first-of-type:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo:first-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:first-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:first-of-type ._EbhSs:focus{outline:none}._r9lFo:first-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:first-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:first-of-type ._EbhSs.focus-visible:after,._r9lFo:first-of-type ._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._6VmUw{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._6VmUw._wfWhs{flex-grow:1}._6VmUw._I4Xni{cursor:pointer}._6VmUw._I4Xni:hover:not(._Z8aOc){background-color:#f9f9f9;border-bottom-color:#6a6d70}._6VmUw._I4Xni:active:not(._Z8aOc){background-color:#f3f3f3}._6VmUw._5UYie:not(._Z8aOc){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._6VmUw._Z8aOc{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._6VmUw ._rMjzH{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._6VmUw ._rMjzH._wBMdO{left:-1px}._6VmUw ._rMjzH._TlgsJ{right:0}._6VmUw ._NYJK8{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._6VmUw ._NYJK8._wBMdO{left:-2px}._6VmUw ._NYJK8._TlgsJ{right:-1px}._6VmUw:first-of-type ._wBMdO._rMjzH{left:0;width:2px;border-left:1px solid #fff}._6VmUw:first-of-type ._wBMdO._NYJK8{left:0}._6VmUw:last-of-type ._TlgsJ._rMjzH{right:0;width:2px;border-right:1px solid #fff}._6VmUw:last-of-type ._TlgsJ._NYJK8{right:0}._6VmUw ._uPvKK{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._6VmUw ._uPvKK ._4UED0{position:absolute;width:2px;right:2px;top:0;bottom:0}._6VmUw ._uPvKK ._4UED0._XX8Zl{background-color:#0a6ed1}._6VmUw ._uPvKK:hover ._4UED0:not(._XX8Zl){background-color:#d9d9d9}._6VmUw ._9DTLc{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._6VmUw ._9DTLc._y4jT0{flex-direction:row-reverse;justify-content:flex-start}._6VmUw ._9DTLc._y4jT0 ._7eetG{margin:1px 7px 1px 1px}._6VmUw ._9DTLc ._nXcgY{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._6VmUw ._9DTLc ._7eetG{margin:1px 1px 1px 7px;flex-shrink:0}._6VmUw ._r9W7L{margin-left:6px;margin-right:4px;flex-shrink:0}._6VmUw ._Uy6sm{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._6VmUw:focus{outline:none}._6VmUw._iGaO6.focus-visible:after,._6VmUw._iGaO6:focus-visible:after,._6VmUw.focus-visible:after,._6VmUw:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._1YC66{margin-right:6px}._ekMNL{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._ekMNL[focus-within]{z-index:30}._ekMNL:focus-within{z-index:30}._EbhSs{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._EbhSs ._uGdnn{width:100%;padding:12px 12px 11px;overflow:hidden}._EbhSs._Z8aOc{background-color:#efefef;border-bottom-color:#dfdfe1}._EbhSs._wfWhs{flex-grow:1}._EbhSs:focus{outline:none}._EbhSs._iGaO6.focus-visible:after,._EbhSs._iGaO6:focus-visible:after,._EbhSs.focus-visible:after,._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._I21qU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._I21qU._ZkjPS{border-bottom-color:#d9d9d9;background-color:#fff}._l6gx8{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._l6gx8._ZkjPS{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._l6gx8:focus input~span,._l6gx8:hover input~span{border-color:#0b6ed0}._l6gx8 ._u2avt{position:relative;display:inline-flex}._l6gx8 ._u2avt ._bwUnr{margin:0!important}._l6gx8 ._u2avt ._5mToY{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._lHnSZ{justify-content:flex-start}._-vAfW{justify-content:center;text-align:center}._y4jT0{justify-content:flex-end;text-align:right}._U6Svj{display:none}._e3-ti{opacity:0;height:0;width:0;overflow:hidden}._e3-ti,._mepKY{position:absolute}._mepKY{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._dEcGs{width:246px}";
|
|
4
|
+
var styles = {"advancedTable":"_5duf1","advancedTablePaginationContainer":"_UzR-x","advancedTablePagination":"_LT-mN","advancedTableColumnHeadersRowGroup":"_2Ov40","advancedTableColumnHeaders":"_kCowG","advancedTableRowChild":"_5COUG","pinnedContainer":"_ekMNL","advancedTableRowGroup":"_nqTUi","advancedTableRow":"_r9lFo","hasRowAction":"_K8Y7X","advancedTableExpandRowSpacer":"_I21qU","isSelected":"_S8WbH","advancedTableCheckbox":"_l6gx8","advancedTableCell":"_EbhSs","showFocusRing":"_iGaO6","advancedTableColumnHeader":"_6VmUw","fillRemainingSpace":"_wfWhs","isSortable":"_I4Xni","isDragging":"_Z8aOc","isSorted":"_5UYie","dropTargetLine":"_rMjzH","dropTargetLeft":"_wBMdO","dropTargetRight":"_TlgsJ","dropTargetMarker":"_NYJK8","resizeHandle":"_uPvKK","resizeLine":"_4UED0","isResizing":"_XX8Zl","advancedTableColumnHeaderLabel":"_9DTLc","rightAligned":"_y4jT0","sortIcon":"_7eetG","advancedTableColumnHeaderLabelText":"_nXcgY","advancedTableColumnHeaderMenu":"_r9W7L","advancedTableColumnHeaderMenuHiddenAnchor":"_Uy6sm","advancedTableColumnHeaderMenuItemIcon":"_1YC66","advancedTableCellContainer":"_uGdnn","header":"_ZkjPS","checkboxContainer":"_u2avt","checkbox":"_bwUnr","mixed":"_5mToY","leftAligned":"_lHnSZ","centerAligned":"_-vAfW","hiddenDescription":"_U6Svj","hiddenLiveRegion":"_e3-ti","dragPreview":"_mepKY","rowActionMenuPane":"_dEcGs"};
|
|
5
|
+
var stylesheet="._5duf1{overflow:auto;position:relative;max-width:100%;max-height:100%}._5duf1,._UzR-x{background-color:#fff}._UzR-x{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._LT-mN{margin-bottom:4px}._2Ov40{position:-webkit-sticky;position:sticky;top:0;z-index:100}._kCowG{display:flex}._kCowG:focus{outline:none}._kCowG.focus-visible ._5COUG:after,._kCowG:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._kCowG.focus-visible ._5COUG:last-of-type:after,._kCowG:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._kCowG.focus-visible ._5COUG:first-of-type:after,._kCowG:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._kCowG.focus-visible ._5COUG._ekMNL:after,._kCowG:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._nqTUi{padding-right:3px}._r9lFo{display:flex}._r9lFo._K8Y7X ._5COUG,._r9lFo._K8Y7X ._I21qU{cursor:pointer}._r9lFo._S8WbH ._5COUG,._r9lFo._S8WbH ._I21qU{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL,._r9lFo._S8WbH ._I21qU._ekMNL{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._r9lFo._S8WbH ._5COUG._ekMNL ._EbhSs,._r9lFo._S8WbH ._5COUG._ekMNL ._I21qU,._r9lFo._S8WbH ._5COUG._ekMNL ._l6gx8,._r9lFo._S8WbH ._I21qU._ekMNL ._EbhSs,._r9lFo._S8WbH ._I21qU._ekMNL ._I21qU,._r9lFo._S8WbH ._I21qU._ekMNL ._l6gx8{background-color:rgba(11,110,208,.08)}._r9lFo._K8Y7X:hover:not(._S8WbH) ._5COUG,._r9lFo._K8Y7X:hover:not(._S8WbH) ._I21qU{background-color:#f9f9f9}._r9lFo._K8Y7X:active:not(._S8WbH)[\\:not-has\\(._l6gx8\\:active\\)] ._5COUG,._r9lFo._K8Y7X:active:not(._S8WbH)[\\:not-has\\(._l6gx8\\:active\\)] ._I21qU{background-color:#f3f3f3}._r9lFo._K8Y7X:active:not(._S8WbH):not(._r9lFo._K8Y7X:active:not(._S8WbH):has(._l6gx8:active)) ._5COUG,._r9lFo._K8Y7X:active:not(._S8WbH):not(._r9lFo._K8Y7X:active:not(._S8WbH):has(._l6gx8:active)) ._I21qU{background-color:#f3f3f3}._r9lFo:focus{outline:none}._r9lFo.focus-visible ._5COUG:after,._r9lFo:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo.focus-visible ._5COUG:last-of-type:after,._r9lFo:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG:first-of-type:after,._r9lFo:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo.focus-visible ._5COUG._ekMNL:after,._r9lFo:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:last-of-type:focus{outline:none}._r9lFo:last-of-type.focus-visible ._5COUG:after,._r9lFo:last-of-type:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo:last-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:last-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:last-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:last-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:1px}._r9lFo:last-of-type ._EbhSs:focus{outline:none}._r9lFo:last-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:last-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:last-of-type ._EbhSs.focus-visible:after,._r9lFo:last-of-type ._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._r9lFo:first-of-type:focus{outline:none}._r9lFo:first-of-type.focus-visible ._5COUG:after,._r9lFo:first-of-type:focus-visible ._5COUG:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._r9lFo:first-of-type.focus-visible ._5COUG:last-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG:first-of-type:after,._r9lFo:first-of-type:focus-visible ._5COUG:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._r9lFo:first-of-type.focus-visible ._5COUG._ekMNL:after,._r9lFo:first-of-type:focus-visible ._5COUG._ekMNL:after{right:-3px;bottom:0}._r9lFo:first-of-type ._EbhSs:focus{outline:none}._r9lFo:first-of-type ._EbhSs._iGaO6.focus-visible:after,._r9lFo:first-of-type ._EbhSs._iGaO6:focus-visible:after,._r9lFo:first-of-type ._EbhSs.focus-visible:after,._r9lFo:first-of-type ._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._6VmUw{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._6VmUw._wfWhs{flex-grow:1}._6VmUw._I4Xni{cursor:pointer}._6VmUw._I4Xni:hover:not(._Z8aOc){background-color:#f9f9f9;border-bottom-color:#6a6d70}._6VmUw._I4Xni:active:not(._Z8aOc){background-color:#f3f3f3}._6VmUw._5UYie:not(._Z8aOc){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._6VmUw._Z8aOc{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._6VmUw ._rMjzH{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._6VmUw ._rMjzH._wBMdO{left:-1px}._6VmUw ._rMjzH._TlgsJ{right:0}._6VmUw ._NYJK8{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._6VmUw ._NYJK8._wBMdO{left:-2px}._6VmUw ._NYJK8._TlgsJ{right:-1px}._6VmUw:first-of-type ._wBMdO._rMjzH{left:0;width:2px;border-left:1px solid #fff}._6VmUw:first-of-type ._wBMdO._NYJK8{left:0}._6VmUw:last-of-type ._TlgsJ._rMjzH{right:0;width:2px;border-right:1px solid #fff}._6VmUw:last-of-type ._TlgsJ._NYJK8{right:0}._6VmUw ._uPvKK{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._6VmUw ._uPvKK ._4UED0{position:absolute;width:2px;right:2px;top:0;bottom:0}._6VmUw ._uPvKK ._4UED0._XX8Zl{background-color:#0a6ed1}._6VmUw ._uPvKK:hover ._4UED0:not(._XX8Zl){background-color:#d9d9d9}._6VmUw ._9DTLc{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 0 13px 12px}._6VmUw ._9DTLc._y4jT0{flex-direction:row-reverse;justify-content:flex-start}._6VmUw ._9DTLc._y4jT0 ._7eetG{margin:1px 7px 1px 1px}._6VmUw ._9DTLc ._nXcgY{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._6VmUw ._9DTLc ._7eetG{margin:1px 1px 1px 7px;flex-shrink:0}._6VmUw ._r9W7L{margin-left:6px;margin-right:4px;flex-shrink:0}._6VmUw ._Uy6sm{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._6VmUw:focus{outline:none}._6VmUw._iGaO6.focus-visible:after,._6VmUw._iGaO6:focus-visible:after,._6VmUw.focus-visible:after,._6VmUw:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._1YC66{margin-right:6px}._ekMNL{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._ekMNL[focus-within]{z-index:30}._ekMNL:focus-within{z-index:30}._EbhSs{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._EbhSs ._uGdnn{width:100%;padding:12px 12px 11px;overflow:hidden}._EbhSs._Z8aOc{background-color:#efefef;border-bottom-color:#dfdfe1}._EbhSs._wfWhs{flex-grow:1}._EbhSs:focus{outline:none}._EbhSs._iGaO6.focus-visible:after,._EbhSs._iGaO6:focus-visible:after,._EbhSs.focus-visible:after,._EbhSs:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._I21qU{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0}._I21qU._ZkjPS{border-bottom-color:#d9d9d9;background-color:#fff}._l6gx8{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._l6gx8._ZkjPS{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._l6gx8:focus input~span,._l6gx8:hover input~span{border-color:#0b6ed0}._l6gx8 ._u2avt{position:relative;display:inline-flex}._l6gx8 ._u2avt ._bwUnr{margin:0!important}._l6gx8 ._u2avt ._5mToY{position:absolute;top:3px;left:3px;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._lHnSZ{justify-content:flex-start}._-vAfW{justify-content:center;text-align:center}._y4jT0{justify-content:flex-end;text-align:right}._U6Svj{display:none}._e3-ti{opacity:0;height:0;width:0;overflow:hidden}._e3-ti,._mepKY{position:absolute}._mepKY{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._dEcGs{width:246px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,54 +1,48 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
1
|
+
import React__default, { useMemo, useEffect } from 'react';
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import styles from './AdvancedTable2.js';
|
|
4
|
-
import
|
|
4
|
+
import VisualCheckbox from '../../components/Checkbox/VisualCheckbox.js';
|
|
5
5
|
import '../../utils/index.js';
|
|
6
|
+
import '../../hooks/index.js';
|
|
6
7
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
8
|
+
import useScreenReaderAnnouncement from '../../hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js';
|
|
7
9
|
|
|
8
10
|
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
9
11
|
const AdvancedTableCheckbox = _ref => {
|
|
10
12
|
let {
|
|
11
13
|
state,
|
|
12
14
|
onClick,
|
|
13
|
-
onMouseEnter,
|
|
14
|
-
onMouseLeave,
|
|
15
|
-
onFocus,
|
|
16
15
|
variant = 'cell',
|
|
17
16
|
isRowFocused
|
|
18
17
|
} = _ref;
|
|
19
18
|
const {
|
|
20
19
|
translate
|
|
21
20
|
} = useTranslation();
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
const label = useMemo(() => {
|
|
22
|
+
const labels = {
|
|
23
|
+
true: translate('checked'),
|
|
24
|
+
false: translate('unchecked'),
|
|
25
|
+
mixed: translate('mixed')
|
|
26
|
+
};
|
|
27
|
+
return labels[state];
|
|
28
|
+
}, [state]);
|
|
29
|
+
const announceToScreenReader = useScreenReaderAnnouncement('polite');
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
if (isRowFocused) {
|
|
32
|
+
announceToScreenReader(label);
|
|
33
|
+
}
|
|
34
|
+
}, [isRowFocused, announceToScreenReader, label]);
|
|
27
35
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
28
36
|
onClick: onClick,
|
|
29
|
-
onMouseEnter: onMouseEnter,
|
|
30
|
-
onMouseLeave: onMouseLeave,
|
|
31
37
|
className: classNames(styles.advancedTableCheckbox, {
|
|
32
38
|
[styles.header]: variant === 'header'
|
|
33
39
|
}),
|
|
34
|
-
"
|
|
35
|
-
"aria-relevant": "text"
|
|
40
|
+
role: "presentation"
|
|
36
41
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
37
|
-
className: styles.hiddenLiveRegion
|
|
38
|
-
}, labels[state]), /*#__PURE__*/React__default.createElement("div", {
|
|
39
42
|
className: styles.checkboxContainer
|
|
40
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
43
|
+
}, /*#__PURE__*/React__default.createElement(VisualCheckbox, {
|
|
41
44
|
className: styles.checkbox,
|
|
42
|
-
|
|
43
|
-
checked: state === 'true',
|
|
44
|
-
onChange: () => {
|
|
45
|
-
/* noop (supresses React input warning since we use the cell onClick for a larger click target instead of this onChange) */
|
|
46
|
-
},
|
|
47
|
-
inputProps: {
|
|
48
|
-
'aria-checked': state,
|
|
49
|
-
tabIndex: -1,
|
|
50
|
-
onFocus
|
|
51
|
-
}
|
|
45
|
+
checked: state === 'true'
|
|
52
46
|
}), state === 'mixed' && /*#__PURE__*/React__default.createElement("div", {
|
|
53
47
|
className: styles.mixed
|
|
54
48
|
})));
|
|
@@ -10,7 +10,6 @@ const AdvancedTableRow = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
10
10
|
isFocusable,
|
|
11
11
|
isFocused,
|
|
12
12
|
isSelected,
|
|
13
|
-
isCheckboxHovered,
|
|
14
13
|
onKeyDown,
|
|
15
14
|
onFocus,
|
|
16
15
|
onClick,
|
|
@@ -27,8 +26,7 @@ const AdvancedTableRow = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
27
26
|
onClick: hasOnRowSelect ? onClick : undefined,
|
|
28
27
|
className: classNames(styles.advancedTableRow, {
|
|
29
28
|
[styles.hasRowAction]: hasOnRowSelect,
|
|
30
|
-
[styles.isSelected]: hasOnRowSelect && isSelected
|
|
31
|
-
[styles.isCheckboxHovered]: isCheckboxHovered
|
|
29
|
+
[styles.isSelected]: hasOnRowSelect && isSelected
|
|
32
30
|
}),
|
|
33
31
|
ref: isFocusable ? ref : undefined
|
|
34
32
|
}), children);
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import '../../utils/index.js';
|
|
3
|
-
import '../../components/IconButton/index.js';
|
|
4
3
|
import '../../icons/index.es.js';
|
|
4
|
+
import '../../components/index.js';
|
|
5
|
+
import iconButtonStyles from '../../components/IconButton/IconButton2.js';
|
|
5
6
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
6
|
-
import
|
|
7
|
+
import Tooltip from '../../components/Tooltip/Tooltip.js';
|
|
7
8
|
import CaretDownIcon from '../../icons/components/CaretDownIcon.js';
|
|
8
9
|
import CaretRightIcon from '../../icons/components/CaretRightIcon.js';
|
|
9
10
|
|
|
@@ -12,9 +13,6 @@ const AdvancedTableRowExpandButton = _ref => {
|
|
|
12
13
|
let {
|
|
13
14
|
isRowExpanded,
|
|
14
15
|
onClick,
|
|
15
|
-
onMouseEnter,
|
|
16
|
-
onMouseLeave,
|
|
17
|
-
onFocus,
|
|
18
16
|
'data-testid': dataTestId
|
|
19
17
|
} = _ref;
|
|
20
18
|
const {
|
|
@@ -26,16 +24,13 @@ const AdvancedTableRowExpandButton = _ref => {
|
|
|
26
24
|
collapsed: translate('advancedTable.expandRow')
|
|
27
25
|
};
|
|
28
26
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
29
|
-
onClick: onClick
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
27
|
+
onClick: onClick
|
|
28
|
+
}, /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
29
|
+
content: labels[state]
|
|
30
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
31
|
+
className: iconButtonStyles.button,
|
|
33
32
|
"data-testid": dataTestId,
|
|
34
|
-
"
|
|
35
|
-
tooltipContent: labels[state],
|
|
36
|
-
tabIndex: -1,
|
|
37
|
-
onFocus: onFocus,
|
|
38
|
-
"aria-expanded": isRowExpanded
|
|
33
|
+
role: "presentation"
|
|
39
34
|
}, state === 'expanded' ? /*#__PURE__*/React__default.createElement(CaretDownIcon, {
|
|
40
35
|
style: {
|
|
41
36
|
pointerEvents: 'none'
|
|
@@ -44,7 +39,7 @@ const AdvancedTableRowExpandButton = _ref => {
|
|
|
44
39
|
style: {
|
|
45
40
|
pointerEvents: 'none'
|
|
46
41
|
}
|
|
47
|
-
})));
|
|
42
|
+
}))));
|
|
48
43
|
};
|
|
49
44
|
|
|
50
45
|
export { AdvancedTableRowExpandButton as default };
|
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 = "._Cgqmc{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._Cgqmc>._Twbay{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._Cgqmc>._Twbay:hover:not([aria-disabled=true]){background-color:#f5f5f5}._Cgqmc>._Twbay.focus-visible,._Cgqmc>._Twbay:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Cgqmc>._Twbay+._xRTxX{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._Cgqmc>._Twbay[data-state=open]+._xRTxX{transform:rotate(-180deg) translateY(50%)}._Cgqmc>._Twbay[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._Cgqmc>._Twbay[aria-disabled=true]+._xRTxX{fill:#515559;opacity:.4}._N7J2v>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:
|
|
3
|
+
var css_248z = "._Cgqmc{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._Cgqmc>._Twbay{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._Cgqmc>._Twbay:hover:not([aria-disabled=true]){background-color:#f5f5f5}._Cgqmc>._Twbay.focus-visible,._Cgqmc>._Twbay:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Cgqmc>._Twbay+._xRTxX{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._Cgqmc>._Twbay[data-state=open]+._xRTxX{transform:rotate(-180deg) translateY(50%)}._Cgqmc>._Twbay[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._Cgqmc>._Twbay[aria-disabled=true]+._xRTxX{fill:#515559;opacity:.4}._N7J2v>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important}._N7J2v>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._Tmp2H{margin:0;padding:4px 0;background:#fff;transition:.35s;opacity:1;overflow:auto;width:var(--radix-dropdown-menu-trigger-width);min-width:200px;max-height:350px}._Tmp2H._HhPZN{margin-left:30px;opacity:0}._Tmp2H._vI0q6{margin-left:-30px}._j1Xch{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._j1Xch._Fjhx4{cursor:unset}._j1Xch ._RyOg-{fill:#32363a;margin-right:4px}._j1Xch:focus,._j1Xch:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._j1Xch[aria-disabled=true]{cursor:not-allowed;opacity:.65}._j1Xch._6Zf3Z{padding-right:32px}._j1Xch._6Zf3Z ._xRTxX{position:absolute;height:100%;right:3px;fill:#515559}._j1Xch._kPBk8{pointer-events:none}._oWZRI{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._oWZRI._t-oP1{padding-top:49px}._c15yI{pointer-events:none;position:fixed;left:0;top:0}._4CSdT{position:absolute;background-color:#fff;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;overflow:hidden;opacity:1;transition:opacity .35s}._4CSdT._vI0q6{opacity:0}._4CSdT._vI0q6>._jwSGw{margin-left:-30px}._4CSdT._HhPZN{opacity:0}._4CSdT._HhPZN>._jwSGw{margin-left:30px}._4CSdT>._jwSGw{transition:margin-left .35s;width:100%}._4CSdT._kPBk8{pointer-events:none}body.keyboard-user ._j1Xch:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
4
|
var styles = {"buttonContainer":"_Cgqmc","button":"_Twbay","rightIcon":"_xRTxX","maskContainer":"_N7J2v","flyout":"_Tmp2H","animatedRight":"_HhPZN","animatedLeft":"_vI0q6","menuItem":"_j1Xch","noItems":"_Fjhx4","backIcon":"_RyOg-","subMenu":"_6Zf3Z","unresponsive":"_kPBk8","stickyBox":"_oWZRI","isSearchable":"_t-oP1","searchBoxesContainer":"_c15yI","searchBox":"_4CSdT","searchInput":"_jwSGw"};
|
|
5
|
-
var stylesheet="._Cgqmc{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._Cgqmc>._Twbay{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._Cgqmc>._Twbay:hover:not([aria-disabled=true]){background-color:#f5f5f5}._Cgqmc>._Twbay.focus-visible,._Cgqmc>._Twbay:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Cgqmc>._Twbay+._xRTxX{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._Cgqmc>._Twbay[data-state=open]+._xRTxX{transform:rotate(-180deg) translateY(50%)}._Cgqmc>._Twbay[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._Cgqmc>._Twbay[aria-disabled=true]+._xRTxX{fill:#515559;opacity:.4}._N7J2v>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:
|
|
5
|
+
var stylesheet="._Cgqmc{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._Cgqmc>._Twbay{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._Cgqmc>._Twbay:hover:not([aria-disabled=true]){background-color:#f5f5f5}._Cgqmc>._Twbay.focus-visible,._Cgqmc>._Twbay:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Cgqmc>._Twbay+._xRTxX{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._Cgqmc>._Twbay[data-state=open]+._xRTxX{transform:rotate(-180deg) translateY(50%)}._Cgqmc>._Twbay[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._Cgqmc>._Twbay[aria-disabled=true]+._xRTxX{fill:#515559;opacity:.4}._N7J2v>[data-radix-popper-content-wrapper]{overflow:hidden;background-color:#fff;width:var(--radix-dropdown-menu-trigger-width);min-width:200px!important;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important}._N7J2v>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._Tmp2H{margin:0;padding:4px 0;background:#fff;transition:.35s;opacity:1;overflow:auto;width:var(--radix-dropdown-menu-trigger-width);min-width:200px;max-height:350px}._Tmp2H._HhPZN{margin-left:30px;opacity:0}._Tmp2H._vI0q6{margin-left:-30px}._j1Xch{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._j1Xch._Fjhx4{cursor:unset}._j1Xch ._RyOg-{fill:#32363a;margin-right:4px}._j1Xch:focus,._j1Xch:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._j1Xch[aria-disabled=true]{cursor:not-allowed;opacity:.65}._j1Xch._6Zf3Z{padding-right:32px}._j1Xch._6Zf3Z ._xRTxX{position:absolute;height:100%;right:3px;fill:#515559}._j1Xch._kPBk8{pointer-events:none}._oWZRI{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._oWZRI._t-oP1{padding-top:49px}._c15yI{pointer-events:none;position:fixed;left:0;top:0}._4CSdT{position:absolute;background-color:#fff;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;overflow:hidden;opacity:1;transition:opacity .35s}._4CSdT._vI0q6{opacity:0}._4CSdT._vI0q6>._jwSGw{margin-left:-30px}._4CSdT._HhPZN{opacity:0}._4CSdT._HhPZN>._jwSGw{margin-left:30px}._4CSdT>._jwSGw{transition:margin-left .35s;width:100%}._4CSdT._kPBk8{pointer-events:none}body.keyboard-user ._j1Xch:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -12,6 +12,7 @@ import usePaneSearch from './usePaneSearch.js';
|
|
|
12
12
|
import '../../hooks/index.js';
|
|
13
13
|
import useMutationObserver from './useMutationObserver.js';
|
|
14
14
|
import useOverlay from '../../hooks/useOverlay/useOverlay.js';
|
|
15
|
+
import useCSSVariable from './useCSSVariable.js';
|
|
15
16
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
16
17
|
import useId from '../../hooks/useId/useId.js';
|
|
17
18
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
@@ -28,6 +29,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
28
29
|
isSearchFilteringDisabled = false,
|
|
29
30
|
className,
|
|
30
31
|
style,
|
|
32
|
+
zIndex = 1000,
|
|
31
33
|
...rest
|
|
32
34
|
} = _ref;
|
|
33
35
|
const [items, setItems] = useState([]);
|
|
@@ -112,6 +114,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
112
114
|
var _style$transform, _style;
|
|
113
115
|
return setTransform((_style$transform = target === null || target === void 0 || (_style = target.style) === null || _style === void 0 ? void 0 : _style.transform) !== null && _style$transform !== void 0 ? _style$transform : '');
|
|
114
116
|
});
|
|
117
|
+
useCSSVariable('--mask-z-index', String(zIndex), [open]);
|
|
115
118
|
return /*#__PURE__*/React__default.createElement(PaneContextProvider, {
|
|
116
119
|
items: items,
|
|
117
120
|
setItems: setItems,
|
|
@@ -121,7 +124,8 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
121
124
|
isSearchFilteringDisabled,
|
|
122
125
|
isInteractive: !animatedLeft,
|
|
123
126
|
flyoutRef,
|
|
124
|
-
stickyBoxRef
|
|
127
|
+
stickyBoxRef,
|
|
128
|
+
zIndex
|
|
125
129
|
}
|
|
126
130
|
}, /*#__PURE__*/React__default.createElement(Portal, {
|
|
127
131
|
container: portalTarget || undefined
|
|
@@ -149,11 +153,15 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
149
153
|
}
|
|
150
154
|
}), isSearchable && /*#__PURE__*/React__default.createElement("div", {
|
|
151
155
|
className: classNames(styles.stickyBox, styles.isSearchable),
|
|
152
|
-
ref: stickyBoxRef
|
|
156
|
+
ref: stickyBoxRef,
|
|
157
|
+
style: {
|
|
158
|
+
zIndex
|
|
159
|
+
}
|
|
153
160
|
}), noSearchResultsNode, children), /*#__PURE__*/React__default.createElement("div", {
|
|
154
161
|
className: styles.searchBoxesContainer,
|
|
155
162
|
style: {
|
|
156
163
|
transform,
|
|
164
|
+
zIndex: zIndex + openPaneDepth,
|
|
157
165
|
width: (_flyoutRef$current3 = flyoutRef.current) === null || _flyoutRef$current3 === void 0 ? void 0 : _flyoutRef$current3.clientWidth
|
|
158
166
|
}
|
|
159
167
|
}, searchBarConfigs.length ? searchBarConfigs.map(_ref2 => {
|
|
@@ -43,7 +43,8 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
43
43
|
searchValue: paneContainingTriggerSearchValue,
|
|
44
44
|
isSearchFilteringDisabled: isSearchFilteringDisabledForPaneContainingTrigger,
|
|
45
45
|
isInteractive: paneContainingTriggerIsInteractive,
|
|
46
|
-
closeSubmenu: closeSubmenuContainingTrigger
|
|
46
|
+
closeSubmenu: closeSubmenuContainingTrigger,
|
|
47
|
+
zIndex: paneContainingTriggerZIndex
|
|
47
48
|
} = usePaneContext(triggerRef);
|
|
48
49
|
const {
|
|
49
50
|
openPaneDepth: totalOpenPaneDepth,
|
|
@@ -53,6 +54,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
53
54
|
const {
|
|
54
55
|
isFocusVisible
|
|
55
56
|
} = useFocusVisible();
|
|
57
|
+
const zIndex = useMemo(() => paneContainingTriggerZIndex + 1, [paneContainingTriggerZIndex]);
|
|
56
58
|
const thisPanesDepth = useRef(totalOpenPaneDepth + 1).current;
|
|
57
59
|
const [isPaneInDOM, setIsPaneInDOM] = useState(false);
|
|
58
60
|
const [isFrameAfterPaneAddedToDOM, setIsFrameAfterPaneAddedToDOM] = useState(false);
|
|
@@ -160,7 +162,8 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
160
162
|
isInteractive: !isTransitioningFromRight && !animatedLeft && !animatedRight,
|
|
161
163
|
closeSubmenu: closeThisSubmenu,
|
|
162
164
|
flyoutRef,
|
|
163
|
-
stickyBoxRef
|
|
165
|
+
stickyBoxRef,
|
|
166
|
+
zIndex
|
|
164
167
|
}
|
|
165
168
|
}, /*#__PURE__*/React__default.createElement(SubContent, _extends({}, rest, {
|
|
166
169
|
loop: !isSearchable,
|
|
@@ -174,13 +177,16 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
174
177
|
onTransitionEnd: handlePaneTransitionEnd,
|
|
175
178
|
style: {
|
|
176
179
|
...style,
|
|
177
|
-
zIndex
|
|
180
|
+
zIndex
|
|
178
181
|
}
|
|
179
182
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
180
183
|
className: classNames(styles.stickyBox, {
|
|
181
184
|
[styles.isSearchable]: isSearchable
|
|
182
185
|
}),
|
|
183
|
-
ref: stickyBoxRef
|
|
186
|
+
ref: stickyBoxRef,
|
|
187
|
+
style: {
|
|
188
|
+
zIndex
|
|
189
|
+
}
|
|
184
190
|
}, /*#__PURE__*/React__default.createElement(Item, {
|
|
185
191
|
className: classNames(styles.menuItem, {
|
|
186
192
|
[styles.unresponsive]: isTransitioningFromRight || animatedLeft || animatedRight
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
const useCSSVariable = function (name, value) {
|
|
4
|
+
let dependencies = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
document.documentElement.style.setProperty(name, value !== null && value !== void 0 ? value : null);
|
|
7
|
+
}, [value, ...dependencies]);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { useCSSVariable as default };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -324,6 +324,7 @@ export declare interface MenuPaneProps extends AllHTMLAttributes<HTMLDivElement>
|
|
|
324
324
|
searchValue?: string;
|
|
325
325
|
onSearchValueChange?: (newValue: string) => void;
|
|
326
326
|
isSearchFilteringDisabled?: boolean;
|
|
327
|
+
zIndex?: number;
|
|
327
328
|
}
|
|
328
329
|
|
|
329
330
|
export declare interface MenuProps {
|