@qualtrics/ui-react 2.63.0 → 2.65.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 +19 -0
- package/dist/__shared/cjs/{index-2f1f7488.js → index-409b0b07.js} +3 -3
- package/dist/__shared/cjs/{index-0e6bf806.js → index-a44c9e54.js} +168 -154
- 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/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/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/design-tokens/less/typography.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/index.js +1 -1
- package/dist/index.d.ts +28 -2
- package/dist/index.es.js +4 -1
- package/dist/index.js +5 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +23 -6
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +39 -8
- 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/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- 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 +6 -1
- package/dist/next/index.js +105 -57
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Translation/TranslationProvider.js +28 -18
- package/dist/utils/Translation/index.js +2 -2
- package/dist/utils/Translation/useTranslation.js +8 -6
- package/next/package.json +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 = ".
|
|
4
|
-
var styles = {"toolbar":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._dGd-z,._QMAjK{display:flex}._dGd-z{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._xC5ob{width:69px;min-width:auto;max-width:none}._cLx9a{width:100%}._o-j-1{margin-bottom:12px;background-color:transparent!important}._o-j-1:hover{background-color:rgba(11,110,208,.08)!important}._o-j-1:hover>svg{fill:#085caf}._o-j-1:hover>span{color:#085caf}._o-j-1:active{background-color:rgba(11,110,208,.12)!important}._o-j-1:active>svg{fill:#0854a1}._o-j-1:active>span{color:#0854a1}._o-j-1._e7a8S{background-color:rgba(11,110,208,.08)!important}._o-j-1._e7a8S>svg{fill:#0b6ed0}._o-j-1._e7a8S>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._o-j-1._e7a8S:hover{background-color:rgba(11,110,208,.08)!important}._o-j-1._e7a8S:hover>svg{fill:#085caf}._o-j-1._e7a8S:hover>span{color:#085caf}._o-j-1._e7a8S:active{background-color:rgba(11,110,208,.12)!important}._o-j-1._e7a8S:active>svg{fill:#0854a1}._o-j-1._e7a8S:active>span{color:#0854a1}._NKPvF{border-radius:6px}._NKPvF>._4J9dl{display:block;fill:#515559}._kBt6d{margin-top:auto;margin-bottom:0}._VpRMO{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._VpRMO:hover>._cf53Q{opacity:1}._8RcKr{width:0;border-width:0;padding:0}._FqpaO{border-radius:4px;min-width:100%;min-height:100%;outline:none}._2sXnD{width:36px;height:36px;position:absolute;top:48px;right:-18px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10}._cf53Q{opacity:0}._2sXnD._rSZBu._rSZBu,._4IgJS,._cf53Q:hover{opacity:1}._2sXnD._7iwsg._7iwsg{opacity:0}._2sXnD>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._2sXnD>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._2sXnD>span:hover>svg{fill:#fff}._2sXnD>span:active{background-color:#0854a1;border-color:#0854a1}._2sXnD>span:active>svg{fill:#fff}._2sXnD>span>svg{fill:#515559;border-radius:50%}._FqpaO._Sa-Dv{display:none!important}._1jtHY{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._FAuQh{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._L1che{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._7rYIr{fill:#515559}._2JR64{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._1jtHY.focus-visible,._1jtHY:focus-visible,._FqpaO.focus-visible,._FqpaO:focus-visible,._L1che.focus-visible,._L1che:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2sXnD.focus-visible,._2sXnD:focus-visible{border-color:#0a3f88}._2sXnD:active>span{background-color:#0854a1;border-color:#0854a1}._2sXnD:active>span>svg{fill:#fff}._cf53Q.focus-visible,._cf53Q:focus-visible{opacity:1}";
|
|
4
|
+
var styles = {"toolbar":"_QMAjK","toolbarNav":"_dGd-z","toolbarNavCollapsed":"_xC5ob","toolbarTabs":"_cLx9a","toolbarTab":"_o-j-1","selected":"_e7a8S","toolbarTabIconButton":"_NKPvF","icon":"_4J9dl","tabsExpandCollapseButton":"_kBt6d","toolbarPanels":"_VpRMO","toolbarPanelExpandCollapseButtonDefaultHidden":"_cf53Q","toolbarPanelsCollapsed":"_8RcKr","toolbarPanel":"_FqpaO","toolbarPanelExpandCollapseButton":"_2sXnD","toolbarPanelExpandCollapseButtonDefaultShown":"_4IgJS","overrideShow":"_rSZBu","overrideHide":"_7iwsg","notSelected":"_Sa-Dv","buttonWithLabel":"_1jtHY","buttonWithLabelLabel":"_FAuQh","iconButtonWithLabel":"_L1che","iconButtonWithLabelIcon":"_7rYIr","iconButtonWithLabelLabel":"_2JR64"};
|
|
5
|
+
var stylesheet="._dGd-z,._QMAjK{display:flex}._dGd-z{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._xC5ob{width:69px;min-width:auto;max-width:none}._cLx9a{width:100%}._o-j-1{margin-bottom:12px;background-color:transparent!important}._o-j-1:hover{background-color:rgba(11,110,208,.08)!important}._o-j-1:hover>svg{fill:#085caf}._o-j-1:hover>span{color:#085caf}._o-j-1:active{background-color:rgba(11,110,208,.12)!important}._o-j-1:active>svg{fill:#0854a1}._o-j-1:active>span{color:#0854a1}._o-j-1._e7a8S{background-color:rgba(11,110,208,.08)!important}._o-j-1._e7a8S>svg{fill:#0b6ed0}._o-j-1._e7a8S>span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._o-j-1._e7a8S:hover{background-color:rgba(11,110,208,.08)!important}._o-j-1._e7a8S:hover>svg{fill:#085caf}._o-j-1._e7a8S:hover>span{color:#085caf}._o-j-1._e7a8S:active{background-color:rgba(11,110,208,.12)!important}._o-j-1._e7a8S:active>svg{fill:#0854a1}._o-j-1._e7a8S:active>span{color:#0854a1}._NKPvF{border-radius:6px}._NKPvF>._4J9dl{display:block;fill:#515559}._kBt6d{margin-top:auto;margin-bottom:0}._VpRMO{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._VpRMO:hover>._cf53Q{opacity:1}._8RcKr{width:0;border-width:0;padding:0}._FqpaO{border-radius:4px;min-width:100%;min-height:100%;outline:none}._2sXnD{width:36px;height:36px;position:absolute;top:48px;right:-18px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10}._cf53Q{opacity:0}._2sXnD._rSZBu._rSZBu,._4IgJS,._cf53Q:hover{opacity:1}._2sXnD._7iwsg._7iwsg{opacity:0}._2sXnD>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._2sXnD>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._2sXnD>span:hover>svg{fill:#fff}._2sXnD>span:active{background-color:#0854a1;border-color:#0854a1}._2sXnD>span:active>svg{fill:#fff}._2sXnD>span>svg{fill:#515559;border-radius:50%}._FqpaO._Sa-Dv{display:none!important}._1jtHY{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._FAuQh{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._L1che{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._7rYIr{fill:#515559}._2JR64{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._1jtHY.focus-visible,._1jtHY:focus-visible,._FqpaO.focus-visible,._FqpaO:focus-visible,._L1che.focus-visible,._L1che:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2sXnD.focus-visible,._2sXnD:focus-visible{border-color:#0a3f88}._2sXnD:active>span{background-color:#0854a1;border-color:#0854a1}._2sXnD:active>span>svg{fill:#fff}._cf53Q.focus-visible,._cf53Q:focus-visible{opacity:1}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -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 = {"font-size-12":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._hc115{font-size:.75rem!important}._INpLH{font-size:.875rem!important}._we2rH{font-size:1rem!important}._A4jdG{font-size:1.125rem!important}._pkSjl{font-size:1.25rem!important}._dqOTQ{font-size:1.5rem!important}._eKg2A{font-size:1.75rem!important}._HTHON{font-size:2.25rem!important}._DSqzg{font-size:2.5rem!important}._64kFX{font-size:3rem!important}._B25kQ{font-size:4rem!important}._rMVH4{font-size:4.5rem!important}._riugG{line-height:1rem!important}._-XWtf{line-height:1.25rem!important}._neG9X{line-height:1.5rem!important}._ewc4-{line-height:1.75rem!important}._d7A8B{line-height:2rem!important}._JQAPV{line-height:2.188rem!important}._9gBoL{line-height:2.5rem!important}._whKbB{line-height:2.75rem!important}._MpVD7{line-height:3.125rem!important}._ouWVU{line-height:4.25rem!important}._HTfik{line-height:4.5rem!important}._m8fZL{font-weight:100!important}._K--ku{font-weight:200!important}._gU8wq{font-weight:300!important}._qHP3r{font-weight:400!important}._KJ-7g{font-weight:500!important}._UEylc{font-weight:600!important}._WSZuf{font-weight:700!important}._PF8ug{font-weight:800!important}._AP1lh{font-weight:900!important}._By0oQ{font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._pzq4o{font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._jqeG-{font-family:\"72Condensed\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._CF4K-{font-family:\"72Mono\",monospace!important}._3fWLn{font-weight:700!important}._3fWLn,._TfBZt{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._TfBZt{font-weight:400!important}._ArutS{font-weight:300!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._ArutS,._MqHjT{font-size:4.5rem!important;line-height:4.5rem!important;color:#2a2a2a!important}._MqHjT{font-weight:700!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._x7SsH{font-weight:400!important}._-tBya,._x7SsH{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._-tBya{font-weight:700!important}._bsiD5{font-weight:400!important}._5skpH,._bsiD5{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._5skpH{font-weight:700!important}._G19T1{font-weight:400!important}._bAPeL,._G19T1{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._bAPeL{font-weight:700!important}._eP6eR{font-weight:400!important}._2XTJJ,._eP6eR{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._2XTJJ{font-weight:700!important}._-sj9T{font-weight:400!important}._-sj9T,._ZMu-J{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._ZMu-J{font-weight:700!important}._MyVRX{font-weight:400!important}._LbCu4,._MyVRX{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._LbCu4{font-weight:700!important}._RU0mR{font-weight:400!important}._2EUwt,._RU0mR{font-size:2.25rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._2EUwt{font-weight:700!important}._qOvHT{font-weight:400!important}._qOvHT,._VEuEv{font-size:1.75rem!important;line-height:2.188rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._VEuEv{font-weight:700!important}._5wCB0{font-weight:400!important}._5wCB0,._FNThV{font-size:1.5rem!important;line-height:2rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._FNThV{font-weight:700!important}._0myWS{font-weight:400!important}._0myWS,._x7BHl{font-size:1.25rem!important;line-height:1.75rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._x7BHl{font-weight:700!important}._cdUQK{font-weight:400!important}._B63PD,._cdUQK{font-size:1.125rem!important;line-height:1.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._B63PD{font-weight:700!important}._qqzZ-{font-weight:400!important}._dhbiu,._qqzZ-{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._dhbiu{font-weight:700!important}._mpfMF{font-weight:400!important}._mpfMF,._RSc4d{font-size:.75rem!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#595959!important}._OaW5L,._RSc4d{font-weight:700!important}._OaW5L{font-size:.875rem!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._is9LU,._OaW5L{line-height:1.25rem!important;color:#2a2a2a!important}._is9LU{font-size:1rem!important;font-weight:400!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._vbZfD{color:#ba4f0d!important}._c0ApE,._vbZfD{font-size:.75rem!important;font-weight:400!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._c0ApE{color:#da1c3d!important}";
|
|
4
|
+
var styles = {"font-size-12":"_hc115","font-size-14":"_INpLH","font-size-16":"_we2rH","font-size-18":"_A4jdG","font-size-20":"_pkSjl","font-size-24":"_dqOTQ","font-size-28":"_eKg2A","font-size-36":"_HTHON","font-size-40":"_DSqzg","font-size-48":"_64kFX","font-size-64":"_B25kQ","font-size-72":"_rMVH4","line-height-16":"_riugG","line-height-20":"_-XWtf","line-height-24":"_neG9X","line-height-28":"_ewc4-","line-height-32":"_d7A8B","line-height-35":"_JQAPV","line-height-40":"_9gBoL","line-height-44":"_whKbB","line-height-50":"_MpVD7","line-height-68":"_ouWVU","line-height-72":"_HTfik","font-weight-thin":"_m8fZL","font-weight-extralight":"_K--ku","font-weight-light":"_gU8wq","font-weight-regular":"_qHP3r","font-weight-medium":"_KJ-7g","font-weight-demibold":"_UEylc","font-weight-bold":"_WSZuf","font-weight-extrabold":"_PF8ug","font-weight-black":"_AP1lh","font-family-default":"_By0oQ","font-family-default-duplex":"_pzq4o","font-family-default-condensed":"_jqeG-","font-family-code":"_CF4K-","body-text-bold":"_3fWLn","body-text-regular":"_TfBZt","data-viz-large-number-light":"_ArutS","data-viz-large-number-semibold":"_MqHjT","display-body-primary-regular":"_x7SsH","display-body-primary-bold":"_-tBya","display-body-secondary-regular":"_bsiD5","display-body-secondary-bold":"_5skpH","display-body-tertiary-regular":"_G19T1","display-body-tertiary-bold":"_bAPeL","display-heading-primary-regular":"_eP6eR","display-heading-primary-bold":"_2XTJJ","display-heading-secondary-regular":"_-sj9T","display-heading-secondary-bold":"_ZMu-J","display-heading-tertiary-regular":"_MyVRX","display-heading-tertiary-bold":"_LbCu4","heading-1-regular":"_RU0mR","heading-1-bold":"_2EUwt","heading-2-regular":"_qOvHT","heading-2-bold":"_VEuEv","heading-3-regular":"_5wCB0","heading-3-bold":"_FNThV","heading-4-regular":"_0myWS","heading-4-bold":"_x7BHl","heading-5-regular":"_cdUQK","heading-5-bold":"_B63PD","heading-6-regular":"_qqzZ-","heading-6-bold":"_dhbiu","helper-text-regular":"_mpfMF","helper-text-bold":"_RSc4d","input-label-bold":"_OaW5L","input-label-regular":"_is9LU","warning-text-regular":"_vbZfD","error-text-regular":"_c0ApE"};
|
|
5
|
+
var stylesheet="._hc115{font-size:.75rem!important}._INpLH{font-size:.875rem!important}._we2rH{font-size:1rem!important}._A4jdG{font-size:1.125rem!important}._pkSjl{font-size:1.25rem!important}._dqOTQ{font-size:1.5rem!important}._eKg2A{font-size:1.75rem!important}._HTHON{font-size:2.25rem!important}._DSqzg{font-size:2.5rem!important}._64kFX{font-size:3rem!important}._B25kQ{font-size:4rem!important}._rMVH4{font-size:4.5rem!important}._riugG{line-height:1rem!important}._-XWtf{line-height:1.25rem!important}._neG9X{line-height:1.5rem!important}._ewc4-{line-height:1.75rem!important}._d7A8B{line-height:2rem!important}._JQAPV{line-height:2.188rem!important}._9gBoL{line-height:2.5rem!important}._whKbB{line-height:2.75rem!important}._MpVD7{line-height:3.125rem!important}._ouWVU{line-height:4.25rem!important}._HTfik{line-height:4.5rem!important}._m8fZL{font-weight:100!important}._K--ku{font-weight:200!important}._gU8wq{font-weight:300!important}._qHP3r{font-weight:400!important}._KJ-7g{font-weight:500!important}._UEylc{font-weight:600!important}._WSZuf{font-weight:700!important}._PF8ug{font-weight:800!important}._AP1lh{font-weight:900!important}._By0oQ{font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._pzq4o{font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._jqeG-{font-family:\"72Condensed\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._CF4K-{font-family:\"72Mono\",monospace!important}._3fWLn{font-weight:700!important}._3fWLn,._TfBZt{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._TfBZt{font-weight:400!important}._ArutS{font-weight:300!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._ArutS,._MqHjT{font-size:4.5rem!important;line-height:4.5rem!important;color:#2a2a2a!important}._MqHjT{font-weight:700!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._x7SsH{font-weight:400!important}._-tBya,._x7SsH{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._-tBya{font-weight:700!important}._bsiD5{font-weight:400!important}._5skpH,._bsiD5{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._5skpH{font-weight:700!important}._G19T1{font-weight:400!important}._bAPeL,._G19T1{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._bAPeL{font-weight:700!important}._eP6eR{font-weight:400!important}._2XTJJ,._eP6eR{font-size:4rem!important;line-height:4.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._2XTJJ{font-weight:700!important}._-sj9T{font-weight:400!important}._-sj9T,._ZMu-J{font-size:3rem!important;line-height:3.125rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._ZMu-J{font-weight:700!important}._MyVRX{font-weight:400!important}._LbCu4,._MyVRX{font-size:2.5rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._LbCu4{font-weight:700!important}._RU0mR{font-weight:400!important}._2EUwt,._RU0mR{font-size:2.25rem!important;line-height:2.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._2EUwt{font-weight:700!important}._qOvHT{font-weight:400!important}._qOvHT,._VEuEv{font-size:1.75rem!important;line-height:2.188rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._VEuEv{font-weight:700!important}._5wCB0{font-weight:400!important}._5wCB0,._FNThV{font-size:1.5rem!important;line-height:2rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._FNThV{font-weight:700!important}._0myWS{font-weight:400!important}._0myWS,._x7BHl{font-size:1.25rem!important;line-height:1.75rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._x7BHl{font-weight:700!important}._cdUQK{font-weight:400!important}._B63PD,._cdUQK{font-size:1.125rem!important;line-height:1.5rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._B63PD{font-weight:700!important}._qqzZ-{font-weight:400!important}._dhbiu,._qqzZ-{font-size:1rem!important;line-height:1.25rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#2a2a2a!important}._dhbiu{font-weight:700!important}._mpfMF{font-weight:400!important}._mpfMF,._RSc4d{font-size:.75rem!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important;color:#595959!important}._OaW5L,._RSc4d{font-weight:700!important}._OaW5L{font-size:.875rem!important;font-family:\"72Duplex\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._is9LU,._OaW5L{line-height:1.25rem!important;color:#2a2a2a!important}._is9LU{font-size:1rem!important;font-weight:400!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._vbZfD{color:#ba4f0d!important}._c0ApE,._vbZfD{font-size:.75rem!important;font-weight:400!important;line-height:1rem!important;font-family:\"72\",Helvetica Neue,Helvetica,Arial,sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans!important}._c0ApE{color:#da1c3d!important}";
|
|
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 = {"overlay":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._kTvD2{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._ifqt5{visibility:hidden}._FJAD8{position:fixed}._ZZVVw{overflow:hidden!important}";
|
|
4
|
+
var styles = {"overlay":"_kTvD2","hidden":"_ifqt5","anchoredToBody":"_FJAD8","blockedScroll":"_ZZVVw"};
|
|
5
|
+
var stylesheet="._kTvD2{background-color:#000;opacity:.5;width:100%;height:100%;position:absolute;top:0;left:0;right:0;bottom:0;display:grid;align-items:left;justify-items:left;place-items:left;overflow-y:auto}._ifqt5{visibility:hidden}._FJAD8{position:fixed}._ZZVVw{overflow:hidden!important}";
|
|
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 classes = {"ariaLiveElement":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._98Ril{position:absolute;top:-10000px;left:-10000px}";
|
|
4
|
+
var classes = {"ariaLiveElement":"_98Ril"};
|
|
5
|
+
var stylesheet="._98Ril{position:absolute;top:-10000px;left:-10000px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { classes as default, stylesheet };
|
package/dist/icons/Icon.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"icon":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._JKgVV{flex-shrink:0}";
|
|
4
|
+
var styles = {"icon":"_JKgVV"};
|
|
5
|
+
var stylesheet="._JKgVV{flex-shrink:0}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
package/dist/icons/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var icons_index = require('../__shared/cjs/index-
|
|
5
|
+
var icons_index = require('../__shared/cjs/index-409b0b07.js');
|
|
6
6
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
7
7
|
require('react');
|
|
8
8
|
require('classnames');
|
package/dist/index.d.ts
CHANGED
|
@@ -509,6 +509,11 @@ export declare interface ConfigPaneProps {
|
|
|
509
509
|
'data-testid'?: string;
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
+
export declare const createTranslationProvider: <T extends MessageKeyType>() => {
|
|
513
|
+
TranslationProvider: React_2.FunctionComponent<TranslationProviderProps<T>>;
|
|
514
|
+
useTranslationContext: () => TranslationContextType<T>;
|
|
515
|
+
};
|
|
516
|
+
|
|
512
517
|
declare const _default: {
|
|
513
518
|
"chat.inputLabel": string;
|
|
514
519
|
"chat.sendMessageButtonLabel": string;
|
|
@@ -2094,7 +2099,7 @@ export declare interface LoadingSpinnerProps extends Omit<React_2.AllHTMLAttribu
|
|
|
2094
2099
|
[prop: string]: any;
|
|
2095
2100
|
}
|
|
2096
2101
|
|
|
2097
|
-
declare type LocalizedText = Partial<Record<
|
|
2102
|
+
declare type LocalizedText<T extends MessageKeyType> = Partial<Record<T, string>>;
|
|
2098
2103
|
|
|
2099
2104
|
export declare const LogicEditor: React_2.ForwardRefExoticComponent<LogicEditorProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
2100
2105
|
|
|
@@ -2259,6 +2264,8 @@ export declare interface MenuProps extends Omit<React_2.AllHTMLAttributes<HTMLBu
|
|
|
2259
2264
|
|
|
2260
2265
|
declare type MessageKey = keyof typeof _default | CountryCode;
|
|
2261
2266
|
|
|
2267
|
+
declare type MessageKeyType = string;
|
|
2268
|
+
|
|
2262
2269
|
export declare const Modal: React_2.ForwardRefExoticComponent<ModalProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
2263
2270
|
|
|
2264
2271
|
export declare const ModalBody: React_2.ForwardRefExoticComponent<ModalBodyProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
@@ -3332,6 +3339,15 @@ export declare interface TooltipProps extends Omit<React_2.AllHTMLAttributes<HTM
|
|
|
3332
3339
|
[prop: string]: any;
|
|
3333
3340
|
}
|
|
3334
3341
|
|
|
3342
|
+
declare interface TranslationContextType<T extends MessageKeyType> {
|
|
3343
|
+
localizedText?: LocalizedText<T>;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
export declare interface TranslationProviderProps<T extends MessageKeyType> {
|
|
3347
|
+
localizedText?: LocalizedText<T>;
|
|
3348
|
+
children?: ReactNode;
|
|
3349
|
+
}
|
|
3350
|
+
|
|
3335
3351
|
export declare const UIProvider: React_2.ForwardRefExoticComponent<UIProviderProps & React_2.RefAttributes<unknown>>;
|
|
3336
3352
|
|
|
3337
3353
|
export declare interface UIProviderProps {
|
|
@@ -3339,7 +3355,7 @@ export declare interface UIProviderProps {
|
|
|
3339
3355
|
portalTarget?: HTMLElement;
|
|
3340
3356
|
/** Config with translated messages to be used for components that require them. See the [Localization Guide](/guides/localization) for more info on configuration. */
|
|
3341
3357
|
config?: {
|
|
3342
|
-
localizedText?: LocalizedText
|
|
3358
|
+
localizedText?: LocalizedText<MessageKey>;
|
|
3343
3359
|
};
|
|
3344
3360
|
/** Your app */
|
|
3345
3361
|
children?: ReactNode;
|
|
@@ -3353,6 +3369,16 @@ export declare function useResponsiveValue<V, C = typeof DEFAULT_BREAKPOINTS>(va
|
|
|
3353
3369
|
[K in keyof V]: K extends keyof C ? V[K] : never;
|
|
3354
3370
|
}, breakpoints?: C, unit?: 'em' | 'px'): V[keyof V];
|
|
3355
3371
|
|
|
3372
|
+
/**
|
|
3373
|
+
* Returns a translate function.
|
|
3374
|
+
* @returns A translate function.
|
|
3375
|
+
*/
|
|
3376
|
+
export declare const useTranslationFactory: <T extends MessageKeyType>(fallback: LocalizedText<T>, useTranslationContextHook: () => TranslationContextType<T>) => {
|
|
3377
|
+
translate: (key: T, placeholders?: {
|
|
3378
|
+
[key: string]: string | number;
|
|
3379
|
+
}) => string;
|
|
3380
|
+
};
|
|
3381
|
+
|
|
3356
3382
|
declare type ValuesOf<T> = T extends {
|
|
3357
3383
|
[K in keyof T]: infer U;
|
|
3358
3384
|
} ? U : never;
|
package/dist/index.es.js
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import './components/index.js';
|
|
2
2
|
import './hooks/index.js';
|
|
3
3
|
export { DEFAULT_BREAKPOINTS } from './utils/constants.js';
|
|
4
|
+
import './utils/Translation/index.js';
|
|
4
5
|
export { default as useBreakpoints } from './hooks/useBreakpoints/useBreakpoints.js';
|
|
5
6
|
export { default as useResponsiveValue } from './hooks/useResponsiveValue/useResponsiveValue.js';
|
|
6
7
|
export { default as useIsTruncated } from './hooks/useIsTruncated/useIsTruncated.js';
|
|
8
|
+
export { useTranslationFactory } from './utils/Translation/useTranslation.js';
|
|
9
|
+
export { createTranslationProvider } from './utils/Translation/TranslationProvider.js';
|
|
7
10
|
export { Accordion } from './components/Accordion/Accordion.js';
|
|
8
11
|
export { AccordionSection } from './components/Accordion/AccordionSection.js';
|
|
9
12
|
export { AccordionHeader } from './components/Accordion/AccordionHeader.js';
|
|
@@ -102,6 +105,6 @@ export { default as deprecated_ToolbarPanel } from './components/deprecated_Tool
|
|
|
102
105
|
|
|
103
106
|
/* eslint-disable camelcase */
|
|
104
107
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
105
|
-
const version = '2.
|
|
108
|
+
const version = '2.65.0';
|
|
106
109
|
|
|
107
110
|
export { version };
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./__shared/cjs/index-
|
|
5
|
+
var index = require('./__shared/cjs/index-a44c9e54.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('./__shared/cjs/index-
|
|
8
|
+
require('./__shared/cjs/index-409b0b07.js');
|
|
9
9
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
10
10
|
require('react-popper');
|
|
11
11
|
require('@popperjs/core');
|
|
@@ -21,7 +21,7 @@ require('throttle-debounce');
|
|
|
21
21
|
|
|
22
22
|
/* eslint-disable camelcase */
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
24
|
-
const version = '2.
|
|
24
|
+
const version = '2.65.0';
|
|
25
25
|
|
|
26
26
|
exports.Accordion = index.Accordion;
|
|
27
27
|
exports.AccordionHeader = index.AccordionHeader;
|
|
@@ -112,6 +112,7 @@ exports.TableRow = index.TableRow;
|
|
|
112
112
|
exports.Tabs = index.Tabs;
|
|
113
113
|
exports.Tooltip = index.Tooltip;
|
|
114
114
|
exports.UIProvider = index.UIProvider;
|
|
115
|
+
exports.createTranslationProvider = index.createTranslationProvider;
|
|
115
116
|
exports.deprecated_ColorPicker = index.ColorPicker$1;
|
|
116
117
|
exports.deprecated_DEFAULT_SWATCH_COLORS = index.DEFAULT_SWATCH_COLORS;
|
|
117
118
|
exports.deprecated_NumberStepper = index.NumberStepper$1;
|
|
@@ -128,4 +129,5 @@ exports.deprecated_ToolbarTabs = index.ToolbarTabs;
|
|
|
128
129
|
exports.useBreakpoints = index.useBreakpoints;
|
|
129
130
|
exports.useIsTruncated = index.useIsTruncated;
|
|
130
131
|
exports.useResponsiveValue = index.useResponsiveValue;
|
|
132
|
+
exports.useTranslationFactory = index.useTranslationFactory;
|
|
131
133
|
exports.version = version;
|
|
@@ -121,6 +121,25 @@ const AdvancedTable = _ref => {
|
|
|
121
121
|
} = _ref2;
|
|
122
122
|
const rowDataTestId = getRowTestId(dataTestId, rowId);
|
|
123
123
|
const rowActionMenuDataTestId = getSubDataTestId(rowDataTestId, 'RowActionMenu');
|
|
124
|
+
const row = rows === null || rows === void 0 ? void 0 : rows[rowIndex];
|
|
125
|
+
if (!row || !rowActions) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
const filteredActionGroups = rowActions.map(actionGroup => {
|
|
129
|
+
var _actionGroup$actions;
|
|
130
|
+
return {
|
|
131
|
+
...actionGroup,
|
|
132
|
+
actions: ((_actionGroup$actions = actionGroup.actions) === null || _actionGroup$actions === void 0 ? void 0 : _actionGroup$actions.filter(action => {
|
|
133
|
+
const isExcluded = typeof action.isExcluded === 'function' ? action.isExcluded(row.rowPropReference) : action.isExcluded;
|
|
134
|
+
return !isExcluded;
|
|
135
|
+
})) || []
|
|
136
|
+
};
|
|
137
|
+
}).filter(actionGroup => actionGroup.actions.length > 0);
|
|
138
|
+
|
|
139
|
+
// Don't render the action menu if there are no visible actions
|
|
140
|
+
if (filteredActionGroups.length === 0) {
|
|
141
|
+
return null;
|
|
142
|
+
}
|
|
124
143
|
return /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
125
144
|
value: 0
|
|
126
145
|
}, /*#__PURE__*/React__default.createElement(DropdownButton, null, /*#__PURE__*/React__default.createElement(IconButton, {
|
|
@@ -139,16 +158,14 @@ const AdvancedTable = _ref => {
|
|
|
139
158
|
placement: rowActionsPlacement,
|
|
140
159
|
"data-testid": rowActionMenuDataTestId,
|
|
141
160
|
"aria-label": rowActionsButtonAriaLabel
|
|
142
|
-
},
|
|
143
|
-
|
|
144
|
-
const row = rows[rowIndex];
|
|
145
|
-
const actions = !row ? [] : (_actionGroup$actions = actionGroup.actions) === null || _actionGroup$actions === void 0 ? void 0 : _actionGroup$actions.map((action, actionIndex) => /*#__PURE__*/React__default.createElement(DropdownOption
|
|
161
|
+
}, filteredActionGroups.map((actionGroup, groupIndex) => {
|
|
162
|
+
const actions = actionGroup.actions.map((action, actionIndex) => /*#__PURE__*/React__default.createElement(DropdownOption
|
|
146
163
|
// React Docs: "We don't recommend using indexes for keys if the order of items may change." These will not change; the alternative is to require an id from the consumer.
|
|
147
164
|
// eslint-disable-next-line react/no-array-index-key
|
|
148
165
|
, {
|
|
149
166
|
key: "".concat(groupIndex, "-").concat(actionIndex),
|
|
150
|
-
disabled: typeof action.isDisabled === 'function' ? action.isDisabled(row
|
|
151
|
-
onSelect: () => action.action(row
|
|
167
|
+
disabled: typeof action.isDisabled === 'function' ? action.isDisabled(row.rowPropReference) : action.isDisabled,
|
|
168
|
+
onSelect: () => action.action(row.rowPropReference),
|
|
152
169
|
value: "",
|
|
153
170
|
label: "",
|
|
154
171
|
"data-testid": action.actionId && getSubDataTestId(rowActionMenuDataTestId, "action-".concat(action.actionId))
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"advancedTable":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._QrCKd{overflow:auto;position:relative;max-width:100%;max-height:100%}._gnIFH,._QrCKd{background-color:#fff}._gnIFH{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._X1YXy{margin-bottom:4px}._FmKzW{position:-webkit-sticky;position:sticky;top:0;z-index:100}._TBp-l{display:flex}._TBp-l:focus{outline:none}._TBp-l.focus-visible ._ka4lE:after,._TBp-l:focus-visible ._ka4lE: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}._TBp-l.focus-visible ._ka4lE:last-of-type:after,._TBp-l:focus-visible ._ka4lE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._TBp-l.focus-visible ._ka4lE:first-of-type:after,._TBp-l:focus-visible ._ka4lE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._TBp-l.focus-visible ._ka4lE._JpIPH:after,._TBp-l:focus-visible ._ka4lE._JpIPH:after{right:-3px;bottom:1px}._O8NTb{padding-right:3px}._VFuQ-{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._E1kqF{display:flex}._E1kqF._t7T-l ._0dEdi,._E1kqF._t7T-l ._ka4lE{cursor:pointer}._E1kqF._K3voq ._0dEdi,._E1kqF._K3voq ._ka4lE{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._E1kqF._K3voq ._0dEdi._JpIPH,._E1kqF._K3voq ._ka4lE._JpIPH{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._E1kqF._K3voq ._0dEdi._JpIPH ._0dEdi,._E1kqF._K3voq ._0dEdi._JpIPH ._BiKzB,._E1kqF._K3voq ._0dEdi._JpIPH ._tU0hh,._E1kqF._K3voq ._ka4lE._JpIPH ._0dEdi,._E1kqF._K3voq ._ka4lE._JpIPH ._BiKzB,._E1kqF._K3voq ._ka4lE._JpIPH ._tU0hh{background-color:rgba(11,110,208,.08)}._E1kqF._t7T-l:hover:not(._K3voq) ._0dEdi,._E1kqF._t7T-l:hover:not(._K3voq) ._ka4lE{background-color:#f9f9f9}._E1kqF._t7T-l:active:not(._K3voq):not(._E1kqF._t7T-l:active:not(._K3voq):has(._BiKzB:active)) ._0dEdi,._E1kqF._t7T-l:active:not(._K3voq):not(._E1kqF._t7T-l:active:not(._K3voq):has(._BiKzB:active)) ._ka4lE{background-color:#f3f3f3}._E1kqF:focus{outline:none}._E1kqF.focus-visible ._ka4lE:after,._E1kqF:focus-visible ._ka4lE: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}._E1kqF.focus-visible ._ka4lE:last-of-type:after,._E1kqF:focus-visible ._ka4lE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._E1kqF.focus-visible ._ka4lE:first-of-type:after,._E1kqF:focus-visible ._ka4lE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._E1kqF.focus-visible ._ka4lE._JpIPH:after,._E1kqF:focus-visible ._ka4lE._JpIPH:after{right:-3px;bottom:0}._E1kqF:last-of-type:focus{outline:none}._E1kqF:last-of-type.focus-visible ._ka4lE:after,._E1kqF:last-of-type:focus-visible ._ka4lE: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}._E1kqF:last-of-type.focus-visible ._ka4lE:last-of-type:after,._E1kqF:last-of-type:focus-visible ._ka4lE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._E1kqF:last-of-type.focus-visible ._ka4lE:first-of-type:after,._E1kqF:last-of-type:focus-visible ._ka4lE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._E1kqF:last-of-type.focus-visible ._ka4lE._JpIPH:after,._E1kqF:last-of-type:focus-visible ._ka4lE._JpIPH:after{right:-3px;bottom:1px}._E1kqF:last-of-type ._tU0hh:focus{outline:none}._E1kqF:last-of-type ._tU0hh._Y-7f-.focus-visible:after,._E1kqF:last-of-type ._tU0hh._Y-7f-:focus-visible:after,._E1kqF:last-of-type ._tU0hh.focus-visible:after,._E1kqF:last-of-type ._tU0hh: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}._E1kqF:first-of-type:focus{outline:none}._E1kqF:first-of-type.focus-visible ._ka4lE:after,._E1kqF:first-of-type:focus-visible ._ka4lE: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}._E1kqF:first-of-type.focus-visible ._ka4lE:last-of-type:after,._E1kqF:first-of-type:focus-visible ._ka4lE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._E1kqF:first-of-type.focus-visible ._ka4lE:first-of-type:after,._E1kqF:first-of-type:focus-visible ._ka4lE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._E1kqF:first-of-type.focus-visible ._ka4lE._JpIPH:after,._E1kqF:first-of-type:focus-visible ._ka4lE._JpIPH:after{right:-3px;bottom:0}._E1kqF:first-of-type ._tU0hh:focus{outline:none}._E1kqF:first-of-type ._tU0hh._Y-7f-.focus-visible:after,._E1kqF:first-of-type ._tU0hh._Y-7f-:focus-visible:after,._E1kqF:first-of-type ._tU0hh.focus-visible:after,._E1kqF:first-of-type ._tU0hh: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}._C8Xl-{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}._C8Xl-._7Inxq{flex-grow:1}._C8Xl-._I0lHz{cursor:pointer}._C8Xl-._I0lHz:hover:not(._46bFV){background-color:#f9f9f9;border-bottom-color:#6a6d70}._C8Xl-._I0lHz:active:not(._46bFV){background-color:#f3f3f3}._C8Xl-._vlz3W:not(._46bFV){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._C8Xl-._46bFV{cursor:move!important;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._C8Xl- ._9aRIA{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._C8Xl- ._9aRIA._5MyrN{left:-1px}._C8Xl- ._9aRIA._rgYxU{right:0}._C8Xl- ._uSv2e{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._C8Xl- ._uSv2e._5MyrN{left:-2px}._C8Xl- ._uSv2e._rgYxU{right:-1px}._C8Xl-:first-of-type ._5MyrN._9aRIA{left:0;width:2px;border-left:1px solid #fff}._C8Xl-:first-of-type ._5MyrN._uSv2e{left:0}._C8Xl-:last-of-type ._rgYxU._9aRIA{right:0;width:2px;border-right:1px solid #fff}._C8Xl-:last-of-type ._rgYxU._uSv2e{right:0}._C8Xl- ._RyHqN{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._C8Xl- ._RyHqN ._elIBE{position:absolute;width:2px;right:2px;top:0;bottom:0}._C8Xl- ._RyHqN ._elIBE._9HD1t{background-color:#0a6ed1}._C8Xl- ._RyHqN:hover ._elIBE:not(._9HD1t){background-color:#d9d9d9}._C8Xl- ._RT-9o{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._C8Xl- ._RT-9o._c6qhJ{flex-direction:row-reverse;justify-content:flex-start}._C8Xl- ._RT-9o._c6qhJ ._uqgWt{margin:1px 7px 1px 1px}._C8Xl- ._RT-9o ._TeaEg{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._C8Xl- ._RT-9o ._uqgWt{margin:1px 1px 1px 7px;flex-shrink:0}._C8Xl- ._KnPEG{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._C8Xl- ._cfDvu{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._C8Xl-:focus{outline:none}._C8Xl-._Y-7f-.focus-visible:after,._C8Xl-._Y-7f-:focus-visible:after,._C8Xl-.focus-visible:after,._C8Xl-: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}._-hyAe{margin-right:6px}._JpIPH{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._JpIPH[focus-within]{z-index:30}._JpIPH:focus-within{z-index:30}._tU0hh{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}._tU0hh ._iVN41{width:100%;padding:12px 12px 11px;overflow:hidden}._tU0hh._46bFV{background-color:#efefef;border-bottom-color:#dfdfe1}._tU0hh._7Inxq{flex-grow:1}._tU0hh:focus{outline:none}._tU0hh._Y-7f-.focus-visible:after,._tU0hh._Y-7f-:focus-visible:after,._tU0hh.focus-visible:after,._tU0hh: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}._0dEdi{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._0dEdi._7iXC4{border-bottom-color:#d9d9d9;background-color:#fff}._BiKzB{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}._BiKzB._7iXC4{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._BiKzB:focus input~span,._BiKzB:hover input~span{border-color:#0b6ed0}._pPTBW{justify-content:flex-start}._hQDp7{justify-content:center;text-align:center}._c6qhJ{justify-content:flex-end;text-align:right}._ujblz{display:none}._4YfWd{opacity:0;height:0;width:0;overflow:hidden}._4YfWd,._B9-WF{position:absolute}._B9-WF{background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000}._A3c-j,._B9-WF{cursor:move;pointer-events:none}._ZswaB{max-width:250px;min-width:150px!important}";
|
|
4
|
+
var styles = {"advancedTable":"_QrCKd","advancedTablePaginationContainer":"_gnIFH","advancedTablePagination":"_X1YXy","advancedTableColumnHeadersRowGroup":"_FmKzW","advancedTableColumnHeaders":"_TBp-l","advancedTableRowChild":"_ka4lE","pinnedContainer":"_JpIPH","advancedTableRowGroup":"_O8NTb","advancedTableRowRestrictedWidth":"_VFuQ-","advancedTableRow":"_E1kqF","hasRowAction":"_t7T-l","advancedTableExpandRowSpacer":"_0dEdi","isSelected":"_K3voq","advancedTableCheckbox":"_BiKzB","advancedTableCell":"_tU0hh","showFocusRing":"_Y-7f-","advancedTableColumnHeader":"_C8Xl-","fillRemainingSpace":"_7Inxq","isSortable":"_I0lHz","isDragging":"_46bFV","isSorted":"_vlz3W","dropTargetLine":"_9aRIA","dropTargetLeft":"_5MyrN","dropTargetRight":"_rgYxU","dropTargetMarker":"_uSv2e","resizeHandle":"_RyHqN","resizeLine":"_elIBE","isResizing":"_9HD1t","advancedTableColumnHeaderLabel":"_RT-9o","rightAligned":"_c6qhJ","sortIcon":"_uqgWt","advancedTableColumnHeaderLabelText":"_TeaEg","advancedTableColumnHeaderMenu":"_KnPEG","advancedTableColumnHeaderMenuHiddenAnchor":"_cfDvu","advancedTableColumnHeaderMenuItemIcon":"_-hyAe","advancedTableCellContainer":"_iVN41","header":"_7iXC4","leftAligned":"_pPTBW","centerAligned":"_hQDp7","hiddenDescription":"_ujblz","hiddenLiveRegion":"_4YfWd","dragPreview":"_B9-WF","isColumnDragging":"_A3c-j","rowActionMenuPane":"_ZswaB"};
|
|
5
|
+
var stylesheet="._QrCKd{overflow:auto;position:relative;max-width:100%;max-height:100%}._gnIFH,._QrCKd{background-color:#fff}._gnIFH{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._X1YXy{margin-bottom:4px}._FmKzW{position:-webkit-sticky;position:sticky;top:0;z-index:100}._TBp-l{display:flex}._TBp-l:focus{outline:none}._TBp-l.focus-visible ._ka4lE:after,._TBp-l:focus-visible ._ka4lE: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}._TBp-l.focus-visible ._ka4lE:last-of-type:after,._TBp-l:focus-visible ._ka4lE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._TBp-l.focus-visible ._ka4lE:first-of-type:after,._TBp-l:focus-visible ._ka4lE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._TBp-l.focus-visible ._ka4lE._JpIPH:after,._TBp-l:focus-visible ._ka4lE._JpIPH:after{right:-3px;bottom:1px}._O8NTb{padding-right:3px}._VFuQ-{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._E1kqF{display:flex}._E1kqF._t7T-l ._0dEdi,._E1kqF._t7T-l ._ka4lE{cursor:pointer}._E1kqF._K3voq ._0dEdi,._E1kqF._K3voq ._ka4lE{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._E1kqF._K3voq ._0dEdi._JpIPH,._E1kqF._K3voq ._ka4lE._JpIPH{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._E1kqF._K3voq ._0dEdi._JpIPH ._0dEdi,._E1kqF._K3voq ._0dEdi._JpIPH ._BiKzB,._E1kqF._K3voq ._0dEdi._JpIPH ._tU0hh,._E1kqF._K3voq ._ka4lE._JpIPH ._0dEdi,._E1kqF._K3voq ._ka4lE._JpIPH ._BiKzB,._E1kqF._K3voq ._ka4lE._JpIPH ._tU0hh{background-color:rgba(11,110,208,.08)}._E1kqF._t7T-l:hover:not(._K3voq) ._0dEdi,._E1kqF._t7T-l:hover:not(._K3voq) ._ka4lE{background-color:#f9f9f9}._E1kqF._t7T-l:active:not(._K3voq):not(._E1kqF._t7T-l:active:not(._K3voq):has(._BiKzB:active)) ._0dEdi,._E1kqF._t7T-l:active:not(._K3voq):not(._E1kqF._t7T-l:active:not(._K3voq):has(._BiKzB:active)) ._ka4lE{background-color:#f3f3f3}._E1kqF:focus{outline:none}._E1kqF.focus-visible ._ka4lE:after,._E1kqF:focus-visible ._ka4lE: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}._E1kqF.focus-visible ._ka4lE:last-of-type:after,._E1kqF:focus-visible ._ka4lE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._E1kqF.focus-visible ._ka4lE:first-of-type:after,._E1kqF:focus-visible ._ka4lE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._E1kqF.focus-visible ._ka4lE._JpIPH:after,._E1kqF:focus-visible ._ka4lE._JpIPH:after{right:-3px;bottom:0}._E1kqF:last-of-type:focus{outline:none}._E1kqF:last-of-type.focus-visible ._ka4lE:after,._E1kqF:last-of-type:focus-visible ._ka4lE: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}._E1kqF:last-of-type.focus-visible ._ka4lE:last-of-type:after,._E1kqF:last-of-type:focus-visible ._ka4lE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._E1kqF:last-of-type.focus-visible ._ka4lE:first-of-type:after,._E1kqF:last-of-type:focus-visible ._ka4lE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._E1kqF:last-of-type.focus-visible ._ka4lE._JpIPH:after,._E1kqF:last-of-type:focus-visible ._ka4lE._JpIPH:after{right:-3px;bottom:1px}._E1kqF:last-of-type ._tU0hh:focus{outline:none}._E1kqF:last-of-type ._tU0hh._Y-7f-.focus-visible:after,._E1kqF:last-of-type ._tU0hh._Y-7f-:focus-visible:after,._E1kqF:last-of-type ._tU0hh.focus-visible:after,._E1kqF:last-of-type ._tU0hh: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}._E1kqF:first-of-type:focus{outline:none}._E1kqF:first-of-type.focus-visible ._ka4lE:after,._E1kqF:first-of-type:focus-visible ._ka4lE: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}._E1kqF:first-of-type.focus-visible ._ka4lE:last-of-type:after,._E1kqF:first-of-type:focus-visible ._ka4lE:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._E1kqF:first-of-type.focus-visible ._ka4lE:first-of-type:after,._E1kqF:first-of-type:focus-visible ._ka4lE:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._E1kqF:first-of-type.focus-visible ._ka4lE._JpIPH:after,._E1kqF:first-of-type:focus-visible ._ka4lE._JpIPH:after{right:-3px;bottom:0}._E1kqF:first-of-type ._tU0hh:focus{outline:none}._E1kqF:first-of-type ._tU0hh._Y-7f-.focus-visible:after,._E1kqF:first-of-type ._tU0hh._Y-7f-:focus-visible:after,._E1kqF:first-of-type ._tU0hh.focus-visible:after,._E1kqF:first-of-type ._tU0hh: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}._C8Xl-{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}._C8Xl-._7Inxq{flex-grow:1}._C8Xl-._I0lHz{cursor:pointer}._C8Xl-._I0lHz:hover:not(._46bFV){background-color:#f9f9f9;border-bottom-color:#6a6d70}._C8Xl-._I0lHz:active:not(._46bFV){background-color:#f3f3f3}._C8Xl-._vlz3W:not(._46bFV){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._C8Xl-._46bFV{cursor:move!important;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._C8Xl- ._9aRIA{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._C8Xl- ._9aRIA._5MyrN{left:-1px}._C8Xl- ._9aRIA._rgYxU{right:0}._C8Xl- ._uSv2e{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._C8Xl- ._uSv2e._5MyrN{left:-2px}._C8Xl- ._uSv2e._rgYxU{right:-1px}._C8Xl-:first-of-type ._5MyrN._9aRIA{left:0;width:2px;border-left:1px solid #fff}._C8Xl-:first-of-type ._5MyrN._uSv2e{left:0}._C8Xl-:last-of-type ._rgYxU._9aRIA{right:0;width:2px;border-right:1px solid #fff}._C8Xl-:last-of-type ._rgYxU._uSv2e{right:0}._C8Xl- ._RyHqN{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._C8Xl- ._RyHqN ._elIBE{position:absolute;width:2px;right:2px;top:0;bottom:0}._C8Xl- ._RyHqN ._elIBE._9HD1t{background-color:#0a6ed1}._C8Xl- ._RyHqN:hover ._elIBE:not(._9HD1t){background-color:#d9d9d9}._C8Xl- ._RT-9o{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._C8Xl- ._RT-9o._c6qhJ{flex-direction:row-reverse;justify-content:flex-start}._C8Xl- ._RT-9o._c6qhJ ._uqgWt{margin:1px 7px 1px 1px}._C8Xl- ._RT-9o ._TeaEg{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._C8Xl- ._RT-9o ._uqgWt{margin:1px 1px 1px 7px;flex-shrink:0}._C8Xl- ._KnPEG{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._C8Xl- ._cfDvu{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._C8Xl-:focus{outline:none}._C8Xl-._Y-7f-.focus-visible:after,._C8Xl-._Y-7f-:focus-visible:after,._C8Xl-.focus-visible:after,._C8Xl-: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}._-hyAe{margin-right:6px}._JpIPH{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._JpIPH[focus-within]{z-index:30}._JpIPH:focus-within{z-index:30}._tU0hh{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}._tU0hh ._iVN41{width:100%;padding:12px 12px 11px;overflow:hidden}._tU0hh._46bFV{background-color:#efefef;border-bottom-color:#dfdfe1}._tU0hh._7Inxq{flex-grow:1}._tU0hh:focus{outline:none}._tU0hh._Y-7f-.focus-visible:after,._tU0hh._Y-7f-:focus-visible:after,._tU0hh.focus-visible:after,._tU0hh: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}._0dEdi{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._0dEdi._7iXC4{border-bottom-color:#d9d9d9;background-color:#fff}._BiKzB{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}._BiKzB._7iXC4{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._BiKzB:focus input~span,._BiKzB:hover input~span{border-color:#0b6ed0}._pPTBW{justify-content:flex-start}._hQDp7{justify-content:center;text-align:center}._c6qhJ{justify-content:flex-end;text-align:right}._ujblz{display:none}._4YfWd{opacity:0;height:0;width:0;overflow:hidden}._4YfWd,._B9-WF{position:absolute}._B9-WF{background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000}._A3c-j,._B9-WF{cursor:move;pointer-events:none}._ZswaB{max-width:250px;min-width:150px!important}";
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
-
import React__default, { forwardRef, useRef, useState, useEffect,
|
|
2
|
+
import React__default, { forwardRef, useRef, useState, useEffect, useId } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
4
|
import AdvancedTableColumnHeaderMenu from './AdvancedTableColumnHeaderMenu.js';
|
|
5
5
|
import useDragAndDrop from './useAdvancedTableDragAndDrop.js';
|
|
@@ -244,13 +244,38 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
244
244
|
}
|
|
245
245
|
}, [isResizing]);
|
|
246
246
|
const computedWidth = useComputedWidth(widthBuffer, width);
|
|
247
|
-
const [
|
|
247
|
+
const [focusSource, setFocusSource] = useState(null);
|
|
248
|
+
const mouseDownRef = useRef(false);
|
|
249
|
+
const contentId = useId();
|
|
250
|
+
useEffect(() => {
|
|
251
|
+
if (isMenuOpen || isHiddenMenuOpen) {
|
|
252
|
+
setFocusSource(null);
|
|
253
|
+
}
|
|
254
|
+
}, [isMenuOpen, isHiddenMenuOpen]);
|
|
248
255
|
const {
|
|
249
256
|
translate
|
|
250
257
|
} = useTranslation();
|
|
251
|
-
const buttonAriaLabel =
|
|
258
|
+
const [buttonAriaLabel, setButtonAriaLabel] = useState(undefined);
|
|
259
|
+
useEffect(() => {
|
|
260
|
+
if (!labelRef.current) {
|
|
261
|
+
setButtonAriaLabel(undefined);
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
let baseLabel = typeof label === 'string' ? label : undefined;
|
|
265
|
+
if (!baseLabel) {
|
|
266
|
+
baseLabel = labelRef.current.textContent ? labelRef.current.textContent.trim() : undefined;
|
|
267
|
+
}
|
|
268
|
+
setButtonAriaLabel(baseLabel ? "".concat(baseLabel, ", ").concat(translate('buttonLabel')) : undefined);
|
|
269
|
+
}, [label, translate]);
|
|
270
|
+
const isLabelFunction = typeof label === 'function';
|
|
271
|
+
const content = isLabelFunction ? /*#__PURE__*/React__default.createElement(label, {
|
|
272
|
+
sortIndicator: selectedSortIcon,
|
|
273
|
+
focusSource,
|
|
274
|
+
contentId
|
|
275
|
+
}) : label;
|
|
276
|
+
const tooltipContent = isLabelFunction ? undefined : label;
|
|
252
277
|
return /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
253
|
-
content:
|
|
278
|
+
content: tooltipContent,
|
|
254
279
|
disabled: !ellipsisShown
|
|
255
280
|
}, /*#__PURE__*/React__default.createElement("div", _extends({
|
|
256
281
|
role: "columnheader",
|
|
@@ -259,14 +284,20 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
259
284
|
"aria-colindex": columnIndex + 1 // aria-colindex is one-indexed
|
|
260
285
|
,
|
|
261
286
|
"aria-sort": isSortable ? isSorted ? selectedSortOption.direction : 'none' : undefined,
|
|
287
|
+
"aria-describedby": isLabelFunction ? contentId : undefined,
|
|
262
288
|
onClick: isSortable ? handleClick : undefined,
|
|
263
289
|
onKeyDown: handleKeyDown,
|
|
290
|
+
onMouseDown: () => {
|
|
291
|
+
mouseDownRef.current = true;
|
|
292
|
+
},
|
|
264
293
|
onFocus: e => {
|
|
265
|
-
|
|
294
|
+
// If there was a mousedown, it's mouse focus, otherwise keyboard
|
|
295
|
+
setFocusSource(mouseDownRef.current ? 'mouse' : 'keyboard');
|
|
296
|
+
mouseDownRef.current = false; // Reset for next interaction
|
|
266
297
|
onFocus(e);
|
|
267
298
|
},
|
|
268
299
|
onBlur: () => {
|
|
269
|
-
|
|
300
|
+
setFocusSource(null);
|
|
270
301
|
},
|
|
271
302
|
tabIndex: isFocused ? 0 : -1,
|
|
272
303
|
className: classNames(styles.advancedTableColumnHeader, {
|
|
@@ -298,8 +329,8 @@ const AdvancedTableColumnHeader = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
298
329
|
WebkitLineClamp: headerMaxLines
|
|
299
330
|
},
|
|
300
331
|
ref: labelRef,
|
|
301
|
-
"aria-label": hasMenu &&
|
|
302
|
-
},
|
|
332
|
+
"aria-label": hasMenu && focusSource ? buttonAriaLabel : undefined
|
|
333
|
+
}, content), isLabelFunction ? null : selectedSortIcon), hasMenu && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(AdvancedTableColumnHeaderMenu, _extends({}, commonMenuProps, {
|
|
303
334
|
isOpen: isMenuOpen,
|
|
304
335
|
setIsOpen: setIsMenuOpen,
|
|
305
336
|
anchor: /*#__PURE__*/React__default.createElement(IconButton, {
|