@qualtrics/ui-react 2.40.0 → 2.41.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 +13 -0
- package/dist/__shared/cjs/{index-a0cddeb7.js → index-de17a028.js} +258 -190
- package/dist/__shared/cjs/{index-65202875.js → index-ef29a7f6.js} +3 -3
- 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/Combobox.js +4 -5
- 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/Dropdown.js +12 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownOption.js +8 -5
- package/dist/components/Dropdown/DropdownSearch.js +7 -31
- 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/NewMenu/parts/ArrowNav/ArrowNav.js +4 -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/Tooltip.js +4 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/A11yHelpersContext.js +81 -0
- package/dist/components/UIProvider/UIProvider.js +4 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.es.js +1 -1
- package/dist/index.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/Chat/ChatMessage.js +4 -3
- 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/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +3 -5
- package/dist/next/Menu/MenuPane.js +4 -3
- package/dist/next/Menu/SubMenu.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- 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 +4 -4
- package/dist/next/index.js +51 -51
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +1 -0
- package/next/package.json +2 -1
- package/package.json +10 -9
|
@@ -37,9 +37,9 @@ function styleInject(css, ref) {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
var css_248z = ".
|
|
41
|
-
var styles = {"icon":"
|
|
42
|
-
var stylesheet=".
|
|
40
|
+
var css_248z = "._w-AZy{flex-shrink:0}";
|
|
41
|
+
var styles = {"icon":"_w-AZy"};
|
|
42
|
+
var stylesheet="._w-AZy{flex-shrink:0}";
|
|
43
43
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
44
44
|
|
|
45
45
|
const IconSizes = {
|
|
@@ -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 AccordionStyles = {"accordion":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Dafdz{width:100%;display:flex;flex-direction:column}._Dafdz._W5Q4V{grid-gap:20px;gap:20px}._eBxe1{display:flex;width:100%;border:none;outline:none;background-color:transparent;color:#32363a;font-size:14px;font-weight:700;line-height:18px;text-align:left;padding:10px 16px 10px 0;cursor:pointer}._eBxe1 ._k6EX3{margin-top:-3px}._PXvtu{flex:1}._CTwY1{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._gQPNK ._eBxe1{border-radius:4px}._gQPNK ._eBxe1:hover:not(._zq8MG){background-color:rgba(50,54,58,.08)}._gQPNK ._eBxe1:active:not(._zq8MG){background-color:rgba(50,54,58,.11)}._EwTV4 ._eBxe1{font-weight:400;padding-left:12px;border-top:1px solid #eee}._EwTV4 ._eBxe1:hover:not(._zq8MG){background-color:rgba(50,54,58,.08)}._EwTV4 ._eBxe1:active:not(._zq8MG){background-color:rgba(50,54,58,.11)}._W5Q4V ._RsA9u{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._W5Q4V ._RsA9u._cxv0S{box-shadow:none}._W5Q4V ._RsA9u._cxv0S ._eBxe1{border-radius:6px}._W5Q4V ._eBxe1{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._W5Q4V ._eBxe1 ._PXvtu{padding-left:20px}._W5Q4V ._eBxe1:hover:not(disabled){border:1px solid #c2c2c2}._W5Q4V ._eBxe1:active:not(._zq8MG){border:1px solid #898989}._W5Q4V ._CTwY1{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._cxv0S ._CTwY1{display:none}._zq8MG{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._eBxe1.focus-visible,._eBxe1:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._eBxe1.focus-visible:before,._eBxe1:focus-visible:before{z-index:1}._EwTV4 ._eBxe1.focus-visible,._EwTV4 ._eBxe1:focus-visible{border-color:transparent}";
|
|
4
|
+
var AccordionStyles = {"accordion":"_Dafdz","block-variant":"_W5Q4V","header":"_eBxe1","headerIcon":"_k6EX3","title":"_PXvtu","panel":"_CTwY1","default-variant":"_gQPNK","disabled":"_zq8MG","outlined-variant":"_EwTV4","section":"_RsA9u","closed":"_cxv0S"};
|
|
5
|
+
var stylesheet="._Dafdz{width:100%;display:flex;flex-direction:column}._Dafdz._W5Q4V{grid-gap:20px;gap:20px}._eBxe1{display:flex;width:100%;border:none;outline:none;background-color:transparent;color:#32363a;font-size:14px;font-weight:700;line-height:18px;text-align:left;padding:10px 16px 10px 0;cursor:pointer}._eBxe1 ._k6EX3{margin-top:-3px}._PXvtu{flex:1}._CTwY1{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._gQPNK ._eBxe1{border-radius:4px}._gQPNK ._eBxe1:hover:not(._zq8MG){background-color:rgba(50,54,58,.08)}._gQPNK ._eBxe1:active:not(._zq8MG){background-color:rgba(50,54,58,.11)}._EwTV4 ._eBxe1{font-weight:400;padding-left:12px;border-top:1px solid #eee}._EwTV4 ._eBxe1:hover:not(._zq8MG){background-color:rgba(50,54,58,.08)}._EwTV4 ._eBxe1:active:not(._zq8MG){background-color:rgba(50,54,58,.11)}._W5Q4V ._RsA9u{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._W5Q4V ._RsA9u._cxv0S{box-shadow:none}._W5Q4V ._RsA9u._cxv0S ._eBxe1{border-radius:6px}._W5Q4V ._eBxe1{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._W5Q4V ._eBxe1 ._PXvtu{padding-left:20px}._W5Q4V ._eBxe1:hover:not(disabled){border:1px solid #c2c2c2}._W5Q4V ._eBxe1:active:not(._zq8MG){border:1px solid #898989}._W5Q4V ._CTwY1{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._cxv0S ._CTwY1{display:none}._zq8MG{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._eBxe1.focus-visible,._eBxe1:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._eBxe1.focus-visible:before,._eBxe1:focus-visible:before{z-index:1}._EwTV4 ._eBxe1.focus-visible,._EwTV4 ._eBxe1:focus-visible{border-color:transparent}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { AccordionStyles 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 buttonStyles = {"btn":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._rqsZ1{padding:0 16px;font-size:14px;line-height:14px;color:#fff;fill:#fff;background-color:#fff;border:1px solid #fff;border-radius:4px;height:36px;min-height:36px;cursor:pointer;position:relative;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;overflow:hidden;transition:border .2s,background .2s,color .2s}._rqsZ1._-FWr7{padding:0 8px;height:26px;min-height:26px}._rqsZ1._LrfFo{display:block;width:100%}._rqsZ1._RwKNT{cursor:not-allowed}._rqsZ1:active:focus,._rqsZ1:focus{outline:none}._rqsZ1._1SNtA{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._rqsZ1._1SNtA:hover:not(._RwKNT){background-color:#eee}._rqsZ1._1SNtA:active:not(._RwKNT){background-color:#e5e5e5}._rqsZ1._1SNtA._RwKNT{color:rgba(81,85,89,.4);fill:rgba(81,85,89,.4);background-color:hsla(0,0%,100%,.4);border:1px solid rgba(81,85,89,.4)}._rqsZ1._oPvG5{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._rqsZ1._oPvG5:hover:not(._RwKNT){background-color:#085caf;border-color:#085caf}._rqsZ1._oPvG5:active:not(._RwKNT){background-color:#0854a1;border-color:#0854a1}._rqsZ1._oPvG5._RwKNT{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._rqsZ1._2RbI3{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._rqsZ1._2RbI3:hover:not(._RwKNT){background-color:#eef5fc}._rqsZ1._2RbI3:active:not(._RwKNT){background-color:#e1edf9}._rqsZ1._2RbI3._RwKNT{background-color:hsla(0,0%,100%,.4);border-color:rgba(11,110,208,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._rqsZ1._XAhbb{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._rqsZ1._XAhbb:hover:not(._RwKNT){background-color:#eef5fc;border-color:#eef5fc}._rqsZ1._XAhbb:active:not(._RwKNT){background-color:#e1edf9;border-color:#e1edf9}._rqsZ1._XAhbb._RwKNT{background-color:hsla(0,0%,100%,.4);border-color:hsla(0,0%,100%,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._rqsZ1._NPIm5{color:#0b6ed0;fill:#0b6ed0;padding:0}._rqsZ1._NPIm5:hover:not(._RwKNT){color:#085caf}._rqsZ1._NPIm5:active:not(._RwKNT){color:#0854a1}._rqsZ1._NPIm5._RwKNT{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._rqsZ1._aZb2v{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._rqsZ1._aZb2v:hover:not(._RwKNT){background-color:#ffecec}._rqsZ1._aZb2v:active:not(._RwKNT){background-color:#ffdbdb}._rqsZ1._aZb2v._RwKNT{background-color:hsla(0,0%,100%,.4);border-color:rgba(187,0,0,.4);color:rgba(187,0,0,.4);fill:rgba(187,0,0,.4)}._rqsZ1.focus-visible,._rqsZ1:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var buttonStyles = {"btn":"_rqsZ1","small":"_-FWr7","full":"_LrfFo","disabled":"_RwKNT","default":"_1SNtA","primary":"_oPvG5","secondary":"_2RbI3","tertiary":"_XAhbb","link":"_NPIm5","danger":"_aZb2v"};
|
|
5
|
+
var stylesheet="._rqsZ1{padding:0 16px;font-size:14px;line-height:14px;color:#fff;fill:#fff;background-color:#fff;border:1px solid #fff;border-radius:4px;height:36px;min-height:36px;cursor:pointer;position:relative;display:inline-flex;justify-content:center;align-items:center;text-decoration:none;overflow:hidden;transition:border .2s,background .2s,color .2s}._rqsZ1._-FWr7{padding:0 8px;height:26px;min-height:26px}._rqsZ1._LrfFo{display:block;width:100%}._rqsZ1._RwKNT{cursor:not-allowed}._rqsZ1:active:focus,._rqsZ1:focus{outline:none}._rqsZ1._1SNtA{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._rqsZ1._1SNtA:hover:not(._RwKNT){background-color:#eee}._rqsZ1._1SNtA:active:not(._RwKNT){background-color:#e5e5e5}._rqsZ1._1SNtA._RwKNT{color:rgba(81,85,89,.4);fill:rgba(81,85,89,.4);background-color:hsla(0,0%,100%,.4);border:1px solid rgba(81,85,89,.4)}._rqsZ1._oPvG5{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._rqsZ1._oPvG5:hover:not(._RwKNT){background-color:#085caf;border-color:#085caf}._rqsZ1._oPvG5:active:not(._RwKNT){background-color:#0854a1;border-color:#0854a1}._rqsZ1._oPvG5._RwKNT{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._rqsZ1._2RbI3{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._rqsZ1._2RbI3:hover:not(._RwKNT){background-color:#eef5fc}._rqsZ1._2RbI3:active:not(._RwKNT){background-color:#e1edf9}._rqsZ1._2RbI3._RwKNT{background-color:hsla(0,0%,100%,.4);border-color:rgba(11,110,208,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._rqsZ1._XAhbb{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._rqsZ1._XAhbb:hover:not(._RwKNT){background-color:#eef5fc;border-color:#eef5fc}._rqsZ1._XAhbb:active:not(._RwKNT){background-color:#e1edf9;border-color:#e1edf9}._rqsZ1._XAhbb._RwKNT{background-color:hsla(0,0%,100%,.4);border-color:hsla(0,0%,100%,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._rqsZ1._NPIm5{color:#0b6ed0;fill:#0b6ed0;padding:0}._rqsZ1._NPIm5:hover:not(._RwKNT){color:#085caf}._rqsZ1._NPIm5:active:not(._RwKNT){color:#0854a1}._rqsZ1._NPIm5._RwKNT{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._rqsZ1._aZb2v{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._rqsZ1._aZb2v:hover:not(._RwKNT){background-color:#ffecec}._rqsZ1._aZb2v:active:not(._RwKNT){background-color:#ffdbdb}._rqsZ1._aZb2v._RwKNT{background-color:hsla(0,0%,100%,.4);border-color:rgba(187,0,0,.4);color:rgba(187,0,0,.4);fill:rgba(187,0,0,.4)}._rqsZ1.focus-visible,._rqsZ1:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { buttonStyles 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 = {"buttonGroup":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._-YUJJ{display:inline-flex;align-items:stretch}._-YUJJ._0xjFO{width:100%}._-YUJJ ._mIx79{margin:0;min-width:0}._-YUJJ ._mIx79:focus{z-index:20}._-YUJJ ._mIx79:hover{z-index:10}._-YUJJ ._mIx79._AaTzx{border:none}._-YUJJ ._mIx79._0xjFO{display:inline-flex;width:auto;flex-grow:1}._-YUJJ ._mIx79:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._-YUJJ ._mIx79:first-child._AaTzx{border-right:1px solid #fff}._-YUJJ ._mIx79:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._-YUJJ ._mIx79:not(:last-child):not(:first-child)._AaTzx{border-left:1px solid #fff;border-right:1px solid #fff}._-YUJJ ._mIx79:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._-YUJJ ._mIx79:last-child._AaTzx{border-left:1px solid #fff}._-YUJJ ._mIx79:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
4
|
+
var styles = {"buttonGroup":"_-YUJJ","full":"_0xjFO","buttonGroupElement":"_mIx79","primary":"_AaTzx"};
|
|
5
|
+
var stylesheet="._-YUJJ{display:inline-flex;align-items:stretch}._-YUJJ._0xjFO{width:100%}._-YUJJ ._mIx79{margin:0;min-width:0}._-YUJJ ._mIx79:focus{z-index:20}._-YUJJ ._mIx79:hover{z-index:10}._-YUJJ ._mIx79._AaTzx{border:none}._-YUJJ ._mIx79._0xjFO{display:inline-flex;width:auto;flex-grow:1}._-YUJJ ._mIx79:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._-YUJJ ._mIx79:first-child._AaTzx{border-right:1px solid #fff}._-YUJJ ._mIx79:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._-YUJJ ._mIx79:not(:last-child):not(:first-child)._AaTzx{border-left:1px solid #fff;border-right:1px solid #fff}._-YUJJ ._mIx79:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._-YUJJ ._mIx79:last-child._AaTzx{border-left:1px solid #fff}._-YUJJ ._mIx79:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
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 = {"checkbox":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._lXcWc{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._lXcWc,._UV6O-{cursor:pointer;height:16px;width:16px}._UV6O-{position:absolute;opacity:0;z-index:10}._UV6O-:disabled{cursor:not-allowed}._5Ke-5{color:#32363a;display:flex;align-items:center;cursor:pointer}._X1-uW{cursor:auto;color:hsla(0,0%,53.7%,.4)}._0dZce{margin-right:12px;flex-shrink:0}._XgcoN{position:absolute;top:0;left:0}._xuVrW{position:relative;display:flex;align-items:center;justify-content:center;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._UV6O-:hover ._xuVrW:not(._Pq5C6)._jhdI-,._xuVrW:not(._Pq5C6):hover._jhdI-{background-color:#085caf}._UV6O-:hover ._xuVrW:not(._Pq5C6):not(._jhdI-),._xuVrW:not(._Pq5C6):hover:not(._jhdI-){border-color:#0b6ed0}._xuVrW ._qGa6-{fill:#0b6ed0;fill-opacity:0}._xuVrW._jhdI- ._qGa6-{fill-opacity:1}._xuVrW._jhdI-:not(._Pq5C6){border-color:transparent;background-color:#0b6ed0}._xuVrW._jhdI-:not(._Pq5C6) ._qGa6-{fill:#fff}._xuVrW._Pq5C6{opacity:.4}._xuVrW ._5MKLs{position:absolute;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._gT8st{color:#32363a;margin-left:12px}._VXR3l{display:flex;align-items:center}._VXR3l:has(input:disabled) ._gT8st{color:rgba(50,54,58,.4)}._VXR3l:not(:has(input:disabled)) ._gT8st{cursor:pointer}._UV6O-.focus-visible~._XgcoN>._xuVrW,._UV6O-:focus-visible~._XgcoN>._xuVrW{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"checkbox":"_lXcWc","input":"_UV6O-","label":"_5Ke-5","labelDisabled":"_X1-uW","wrappedInput":"_0dZce","visualCheck":"_XgcoN","check":"_xuVrW","disabled":"_Pq5C6","checked":"_jhdI-","checkIcon":"_qGa6-","mixed":"_5MKLs","checkboxLabel":"_gT8st","checkboxField":"_VXR3l"};
|
|
5
|
+
var stylesheet="._lXcWc{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._lXcWc,._UV6O-{cursor:pointer;height:16px;width:16px}._UV6O-{position:absolute;opacity:0;z-index:10}._UV6O-:disabled{cursor:not-allowed}._5Ke-5{color:#32363a;display:flex;align-items:center;cursor:pointer}._X1-uW{cursor:auto;color:hsla(0,0%,53.7%,.4)}._0dZce{margin-right:12px;flex-shrink:0}._XgcoN{position:absolute;top:0;left:0}._xuVrW{position:relative;display:flex;align-items:center;justify-content:center;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._UV6O-:hover ._xuVrW:not(._Pq5C6)._jhdI-,._xuVrW:not(._Pq5C6):hover._jhdI-{background-color:#085caf}._UV6O-:hover ._xuVrW:not(._Pq5C6):not(._jhdI-),._xuVrW:not(._Pq5C6):hover:not(._jhdI-){border-color:#0b6ed0}._xuVrW ._qGa6-{fill:#0b6ed0;fill-opacity:0}._xuVrW._jhdI- ._qGa6-{fill-opacity:1}._xuVrW._jhdI-:not(._Pq5C6){border-color:transparent;background-color:#0b6ed0}._xuVrW._jhdI-:not(._Pq5C6) ._qGa6-{fill:#fff}._xuVrW._Pq5C6{opacity:.4}._xuVrW ._5MKLs{position:absolute;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._gT8st{color:#32363a;margin-left:12px}._VXR3l{display:flex;align-items:center}._VXR3l:has(input:disabled) ._gT8st{color:rgba(50,54,58,.4)}._VXR3l:not(:has(input:disabled)) ._gT8st{cursor:pointer}._UV6O-.focus-visible~._XgcoN>._xuVrW,._UV6O-:focus-visible~._XgcoN>._xuVrW{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -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 = {"colorPicker":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Re8lw{display:flex;line-height:1.15}._Re8lw ._JIK4s{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._Re8lw ._JIK4s:hover:not(._8Gnb8){background-color:#f5f5f5}._Re8lw ._JIK4s._8Gnb8{cursor:not-allowed;fill:rgba(81,85,89,.4)}._Re8lw ._JIK4s:active:not(._8Gnb8){background-color:#eee}._Re8lw ._uwujY{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._Re8lw ._uwujY._8Gnb8{border-color:#d9d9d9}._Re8lw ._xfoNM{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:18px 18px;background-position:0 0,9px 0,9px -9px,0 9px}._Re8lw ._MGNHY{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._Re8lw ._MGNHY._8Gnb8{border-color:#d9d9d9}._Re8lw ._K9vIl{height:36px;border:1px solid #898989;border-width:1px 0}._Re8lw ._K9vIl._8Gnb8{border-color:#d9d9d9}._Re8lw ._-NPi9{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._Re8lw ._OgLST{position:absolute;top:10px;left:13px;font-size:14px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._Re8lw ._OgLST._iaqon{color:#9d9fa1}._JIK4s.focus-visible,._JIK4s:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._nLRIb{width:264px;padding:8px;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1);line-height:1.15}._nLRIb ._3rNVX{position:relative;width:246px;height:150px;border-radius:4px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);background-origin:border-box}._nLRIb ._upyb9{position:absolute;width:12px;height:12px;border-radius:50%;border:1px solid #fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5);outline:none;cursor:pointer}._nLRIb ._qJc5N{display:flex;justify-content:space-between;margin:12px 0}._nLRIb ._qJc5N._PEZ7S{margin-bottom:0}._nLRIb ._wnyAk{display:flex}._nLRIb ._OF9X1{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._nLRIb ._ihx-t{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._nLRIb ._wbyLu{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:19px 19px;background-position:0 0,9.5px 0,9.5px -9.5px,0 9.5px;border-radius:0 2px 2px 0}._nLRIb ._QWOME{width:202px;height:38px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(90deg,red,red 2%,#ff0 18%,#0f0 34%,#0ff 50%,#00f 66%,#f0f 82%,red 98%,red)}._nLRIb ._QWOME._HO1OE{height:16px;margin-bottom:6px}._nLRIb ._2rJ4P{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:38px;outline:none;cursor:pointer;top:-1px}._nLRIb ._2rJ4P._HO1OE{height:16px}._nLRIb ._H2xBA{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:16px 16px;background-position:0 0,8px 0,8px -8px,0 8px;border-radius:1px}._nLRIb ._DmkxW{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._nLRIb ._WQvyg{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:16px;outline:none;cursor:pointer;top:-1px}._nLRIb ._MKsHy{display:flex;justify-content:space-between}._nLRIb ._EW0NY{display:flex;flex-direction:column;align-items:center}._nLRIb ._EW0NY._Eqw5x{margin-left:4px}._nLRIb ._KcZUX{position:absolute;top:3px;left:5px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._nLRIb ._0gHzg{padding:3px 4px 3px 13px!important;width:78px}._nLRIb ._SgdIC{text-align:right;padding:3px 4px 3px 0!important;width:34px}._nLRIb ._xYhzQ{text-align:right;padding:3px 16px 3px 0!important;width:46px}._nLRIb ._ku9xu{position:absolute;top:3px;right:4px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._nLRIb ._nFmPc{line-height:22px}._nLRIb ._q363E{display:flex}._nLRIb ._CAcYx{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._nLRIb ._CAcYx._o32Zl{margin-top:0}._nLRIb ._Bqfh9{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._xSUQm{position:relative}._7YdU-{display:none}._Ag6J6{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._upyb9.focus-visible,._upyb9:focus-visible{box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fff}._2rJ4P.focus-visible,._2rJ4P:focus-visible,._Bqfh9.focus-visible,._Bqfh9:focus-visible,._WQvyg.focus-visible,._WQvyg:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"colorPicker":"_Re8lw","colorPickerButton":"_JIK4s","disabledButton":"_8Gnb8","colorPickerButtonPreview":"_uwujY","alphaBackground":"_xfoNM","colorPickerButtonAlphaPreview":"_MGNHY","caretIcon":"_K9vIl","colorPickerInput":"_-NPi9","colorPickerInputDecoration":"_OgLST","disabledDecoration":"_iaqon","colorPickerFlyout":"_nLRIb","saturationGrid":"_3rNVX","saturationLoop":"_upyb9","sliderGroup":"_qJc5N","removeBottomMargin":"_PEZ7S","sliderPreviewContainer":"_wnyAk","sliderPreview":"_OF9X1","sliderPreviewAlpha":"_ihx-t","sliderPreviewAlphaBackground":"_wbyLu","hueSliderRail":"_QWOME","alphaEnabled":"_HO1OE","hueSliderThumb":"_2rJ4P","alphaSliderRailBackground":"_H2xBA","alphaSliderRail":"_DmkxW","alphaSliderThumb":"_WQvyg","hexInputGroup":"_MKsHy","hexInputContainer":"_EW0NY","rgbInputContainer":"_Eqw5x","hexInputDecoration":"_KcZUX","hexInput":"_0gHzg","rgbInput":"_SgdIC","alphaInput":"_xYhzQ","alphaInputDecoration":"_ku9xu","inputLabel":"_nFmPc","rgbContainer":"_q363E","palette":"_CAcYx","removeUpperMargin":"_o32Zl","swatch":"_Bqfh9","relativePositionContainer":"_xSUQm","hidden":"_7YdU-","hiddenLiveRegion":"_Ag6J6"};
|
|
5
|
+
var stylesheet="._Re8lw{display:flex;line-height:1.15}._Re8lw ._JIK4s{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._Re8lw ._JIK4s:hover:not(._8Gnb8){background-color:#f5f5f5}._Re8lw ._JIK4s._8Gnb8{cursor:not-allowed;fill:rgba(81,85,89,.4)}._Re8lw ._JIK4s:active:not(._8Gnb8){background-color:#eee}._Re8lw ._uwujY{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._Re8lw ._uwujY._8Gnb8{border-color:#d9d9d9}._Re8lw ._xfoNM{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:18px 18px;background-position:0 0,9px 0,9px -9px,0 9px}._Re8lw ._MGNHY{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._Re8lw ._MGNHY._8Gnb8{border-color:#d9d9d9}._Re8lw ._K9vIl{height:36px;border:1px solid #898989;border-width:1px 0}._Re8lw ._K9vIl._8Gnb8{border-color:#d9d9d9}._Re8lw ._-NPi9{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._Re8lw ._OgLST{position:absolute;top:10px;left:13px;font-size:14px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._Re8lw ._OgLST._iaqon{color:#9d9fa1}._JIK4s.focus-visible,._JIK4s:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._nLRIb{width:264px;padding:8px;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1);line-height:1.15}._nLRIb ._3rNVX{position:relative;width:246px;height:150px;border-radius:4px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);background-origin:border-box}._nLRIb ._upyb9{position:absolute;width:12px;height:12px;border-radius:50%;border:1px solid #fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5);outline:none;cursor:pointer}._nLRIb ._qJc5N{display:flex;justify-content:space-between;margin:12px 0}._nLRIb ._qJc5N._PEZ7S{margin-bottom:0}._nLRIb ._wnyAk{display:flex}._nLRIb ._OF9X1{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._nLRIb ._ihx-t{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._nLRIb ._wbyLu{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:19px 19px;background-position:0 0,9.5px 0,9.5px -9.5px,0 9.5px;border-radius:0 2px 2px 0}._nLRIb ._QWOME{width:202px;height:38px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(90deg,red,red 2%,#ff0 18%,#0f0 34%,#0ff 50%,#00f 66%,#f0f 82%,red 98%,red)}._nLRIb ._QWOME._HO1OE{height:16px;margin-bottom:6px}._nLRIb ._2rJ4P{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:38px;outline:none;cursor:pointer;top:-1px}._nLRIb ._2rJ4P._HO1OE{height:16px}._nLRIb ._H2xBA{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:16px 16px;background-position:0 0,8px 0,8px -8px,0 8px;border-radius:1px}._nLRIb ._DmkxW{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._nLRIb ._WQvyg{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:16px;outline:none;cursor:pointer;top:-1px}._nLRIb ._MKsHy{display:flex;justify-content:space-between}._nLRIb ._EW0NY{display:flex;flex-direction:column;align-items:center}._nLRIb ._EW0NY._Eqw5x{margin-left:4px}._nLRIb ._KcZUX{position:absolute;top:3px;left:5px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._nLRIb ._0gHzg{padding:3px 4px 3px 13px!important;width:78px}._nLRIb ._SgdIC{text-align:right;padding:3px 4px 3px 0!important;width:34px}._nLRIb ._xYhzQ{text-align:right;padding:3px 16px 3px 0!important;width:46px}._nLRIb ._ku9xu{position:absolute;top:3px;right:4px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._nLRIb ._nFmPc{line-height:22px}._nLRIb ._q363E{display:flex}._nLRIb ._CAcYx{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._nLRIb ._CAcYx._o32Zl{margin-top:0}._nLRIb ._Bqfh9{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._xSUQm{position:relative}._7YdU-{display:none}._Ag6J6{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._upyb9.focus-visible,._upyb9:focus-visible{box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fff}._2rJ4P.focus-visible,._2rJ4P:focus-visible,._Bqfh9.focus-visible,._Bqfh9:focus-visible,._WQvyg.focus-visible,._WQvyg:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default, { forwardRef, useMemo, useRef, useState, useCallback, useEffect, cloneElement } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import { useFocusVisible } from '@react-aria/interactions';
|
|
5
4
|
import styles from './Combobox2.js';
|
|
6
5
|
import ComboboxInput from './ComboboxInput.js';
|
|
7
6
|
import ComboboxList from './ComboboxList.js';
|
|
@@ -11,6 +10,7 @@ import ComboboxIcon from './ComboboxIcon.js';
|
|
|
11
10
|
import '../../utils/index.js';
|
|
12
11
|
import { ComboboxContextProvider } from './ComboboxContext.js';
|
|
13
12
|
import '../../hooks/index.js';
|
|
13
|
+
import { useIsFocusVisible, conditionalA11yHelpersWrapper } from '../UIProvider/A11yHelpersContext.js';
|
|
14
14
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
15
15
|
import useId from '../../hooks/useId/useId.js';
|
|
16
16
|
import filterChildren from '../../utils/filterChildren/filterChildren.js';
|
|
@@ -64,9 +64,7 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
64
64
|
const isFilteringDisabled = isOptionSelectedOnKeyboardHighlight || externalIsFilteringDisabled;
|
|
65
65
|
const {
|
|
66
66
|
isFocusVisible
|
|
67
|
-
} =
|
|
68
|
-
isTextInput: true
|
|
69
|
-
});
|
|
67
|
+
} = useIsFocusVisible(true);
|
|
70
68
|
let comboboxInput = /*#__PURE__*/React__default.createElement(ComboboxInput, null);
|
|
71
69
|
let comboboxList = /*#__PURE__*/React__default.createElement(ComboboxList, null);
|
|
72
70
|
|
|
@@ -450,5 +448,6 @@ const Combobox = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
450
448
|
"aria-live": "polite"
|
|
451
449
|
}, translate('noMatchesFound')) : listChildrenFilteredOptionsAndHeaders)));
|
|
452
450
|
});
|
|
451
|
+
var Combobox$1 = conditionalA11yHelpersWrapper(Combobox, 'textInput');
|
|
453
452
|
|
|
454
|
-
export { Combobox as default };
|
|
453
|
+
export { Combobox$1 as default };
|
|
@@ -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 = {"combobox":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._QQ-bG{position:relative;display:inline-block}._voJk1{padding-right:36px}._voJk1._thfaq{box-shadow:none!important;border:1px solid #898989!important}._E8iEJ{margin-top:4px}._EGJm-{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._EGJm-:hover{background-color:rgba(50,54,58,.08)}._EGJm-:active{background-color:rgba(50,54,58,.11)}._EGJm-._25BHF{transform:rotate(-180deg)}._EGJm-._mAL-m{opacity:.4}._2Ri8N{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._mAL-m{cursor:not-allowed}._mAL-m:hover{background-color:transparent}";
|
|
4
|
+
var styles = {"combobox":"_QQ-bG","comboboxInput":"_voJk1","ignoreFocusStyle":"_thfaq","labelledInput":"_E8iEJ","comboboxIcon":"_EGJm-","open":"_25BHF","disabled":"_mAL-m","comboboxEmpty":"_2Ri8N"};
|
|
5
|
+
var stylesheet="._QQ-bG{position:relative;display:inline-block}._voJk1{padding-right:36px}._voJk1._thfaq{box-shadow:none!important;border:1px solid #898989!important}._E8iEJ{margin-top:4px}._EGJm-{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._EGJm-:hover{background-color:rgba(50,54,58,.08)}._EGJm-:active{background-color:rgba(50,54,58,.11)}._EGJm-._25BHF{transform:rotate(-180deg)}._EGJm-._mAL-m{opacity:.4}._2Ri8N{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._mAL-m{cursor:not-allowed}._mAL-m:hover{background-color:transparent}";
|
|
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 = {"paneContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._X1pXQ{grid-area:configPane;position:relative;height:100%}._nzkci{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #eee;box-sizing:border-box}._EoeKQ._79Lxj ._nzkci,._EoeKQ:not(._lKZO6) ._nzkci{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._lKZO6 ._nzkci{width:0}._79Lxj._lKZO6 ._nzkci{width:30px;cursor:pointer}._gnAde{height:100%;position:relative;width:292px}._EoeKQ ._gnAde,._lKZO6 ._gnAde{width:0}._79Lxj._EoeKQ ._gnAde,._79Lxj._lKZO6 ._gnAde{width:30px}._IF2zH ._gnAde{transition:width .5s}._fdIlO{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._lKZO6 ._fdIlO{visibility:hidden}._IF2zH ._fdIlO{visibility:visible}._fdIlO ._qJXhs{width:252px;margin-left:20px}._vZ6lV{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._SwFf2{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._SwFf2 *{font-weight:400;font-size:16px;margin:0}._NW9Mk{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._lKZO6 ._NW9Mk{left:0}._79Lxj._lKZO6 ._NW9Mk{left:30px}._NW9Mk ._5fGSI{width:4px;height:100%}._79Lxj._lKZO6 ._nzkci:hover+._NW9Mk ._5fGSI,._NW9Mk:hover ._5fGSI{background-color:#9dc5ed}._79Lxj._lKZO6 ._nzkci:hover+._NW9Mk ._qIAmx>span,._NW9Mk:hover ._qIAmx>span{background-color:#0b6ed0;border-color:#0b6ed0}._79Lxj._lKZO6 ._nzkci:hover+._NW9Mk ._qIAmx>span>svg,._NW9Mk:hover ._qIAmx>span>svg{fill:#fff}._79Lxj._lKZO6 ._nzkci:hover+._NW9Mk ._qIAmx:active>span,._NW9Mk:hover ._qIAmx:active>span{background-color:#0854a1;border-color:#0854a1}._79Lxj._lKZO6 ._nzkci:hover+._NW9Mk ._qIAmx:active>span>svg,._NW9Mk:hover ._qIAmx:active>span>svg{fill:#fff}._NW9Mk ._qIAmx{left:-16px;width:36px;height:36px;position:absolute;top:48px;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}._NW9Mk ._qIAmx:active>span{background-color:#0854a1;border-color:#0854a1}._NW9Mk ._qIAmx:active>span>svg{fill:#fff}._NW9Mk ._qIAmx>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._NW9Mk ._qIAmx>span>svg{fill:#515559;border-radius:50%}._qIAmx.focus-visible,._qIAmx:focus-visible{border-color:#0a3f88}";
|
|
4
|
+
var styles = {"paneContainer":"_X1pXQ","paneContentContainer":"_nzkci","unpinned":"_EoeKQ","hidden":"_lKZO6","preview":"_79Lxj","spacer":"_gnAde","transitioning":"_IF2zH","paneContent":"_fdIlO","paneContentInner":"_qJXhs","header":"_vZ6lV","title":"_SwFf2","clickableArea":"_NW9Mk","hoverBorder":"_5fGSI","toolbarPanelExpandCollapseButton":"_qIAmx"};
|
|
5
|
+
var stylesheet="._X1pXQ{grid-area:configPane;position:relative;height:100%}._nzkci{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #eee;box-sizing:border-box}._EoeKQ._79Lxj ._nzkci,._EoeKQ:not(._lKZO6) ._nzkci{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._lKZO6 ._nzkci{width:0}._79Lxj._lKZO6 ._nzkci{width:30px;cursor:pointer}._gnAde{height:100%;position:relative;width:292px}._EoeKQ ._gnAde,._lKZO6 ._gnAde{width:0}._79Lxj._EoeKQ ._gnAde,._79Lxj._lKZO6 ._gnAde{width:30px}._IF2zH ._gnAde{transition:width .5s}._fdIlO{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._lKZO6 ._fdIlO{visibility:hidden}._IF2zH ._fdIlO{visibility:visible}._fdIlO ._qJXhs{width:252px;margin-left:20px}._vZ6lV{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._SwFf2{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._SwFf2 *{font-weight:400;font-size:16px;margin:0}._NW9Mk{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._lKZO6 ._NW9Mk{left:0}._79Lxj._lKZO6 ._NW9Mk{left:30px}._NW9Mk ._5fGSI{width:4px;height:100%}._79Lxj._lKZO6 ._nzkci:hover+._NW9Mk ._5fGSI,._NW9Mk:hover ._5fGSI{background-color:#9dc5ed}._79Lxj._lKZO6 ._nzkci:hover+._NW9Mk ._qIAmx>span,._NW9Mk:hover ._qIAmx>span{background-color:#0b6ed0;border-color:#0b6ed0}._79Lxj._lKZO6 ._nzkci:hover+._NW9Mk ._qIAmx>span>svg,._NW9Mk:hover ._qIAmx>span>svg{fill:#fff}._79Lxj._lKZO6 ._nzkci:hover+._NW9Mk ._qIAmx:active>span,._NW9Mk:hover ._qIAmx:active>span{background-color:#0854a1;border-color:#0854a1}._79Lxj._lKZO6 ._nzkci:hover+._NW9Mk ._qIAmx:active>span>svg,._NW9Mk:hover ._qIAmx:active>span>svg{fill:#fff}._NW9Mk ._qIAmx{left:-16px;width:36px;height:36px;position:absolute;top:48px;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}._NW9Mk ._qIAmx:active>span{background-color:#0854a1;border-color:#0854a1}._NW9Mk ._qIAmx:active>span>svg{fill:#fff}._NW9Mk ._qIAmx>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._NW9Mk ._qIAmx>span>svg{fill:#515559;border-radius:50%}._qIAmx.focus-visible,._qIAmx:focus-visible{border-color:#0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -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 = {"divider":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._c-zBr{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
4
|
+
var styles = {"divider":"_c-zBr"};
|
|
5
|
+
var stylesheet="._c-zBr{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
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 };
|
|
@@ -215,11 +215,16 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
215
215
|
if (disabled) return;
|
|
216
216
|
switch (e.key) {
|
|
217
217
|
case 'Enter':
|
|
218
|
-
case ' ':
|
|
219
|
-
// select option
|
|
220
218
|
selectHighlightedItem(e);
|
|
221
219
|
e.preventDefault(); // prevent scroll/button click
|
|
222
220
|
break;
|
|
221
|
+
case ' ':
|
|
222
|
+
// select option
|
|
223
|
+
if (!isSearchable) {
|
|
224
|
+
selectHighlightedItem(e);
|
|
225
|
+
e.preventDefault(); // prevent scroll/button click
|
|
226
|
+
}
|
|
227
|
+
break;
|
|
223
228
|
case 'ArrowDown':
|
|
224
229
|
// highlight next option
|
|
225
230
|
newHighlightedIndex = options.map(element => element.isVisible).indexOf(true, highlightedIndex + 1);
|
|
@@ -278,7 +283,11 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
278
283
|
e.preventDefault(); // prevent scroll
|
|
279
284
|
break;
|
|
280
285
|
default:
|
|
281
|
-
|
|
286
|
+
if (isSearchable) {
|
|
287
|
+
setHighlightedIndex(0);
|
|
288
|
+
} else {
|
|
289
|
+
findOptionAndHighlight(e.key);
|
|
290
|
+
}
|
|
282
291
|
break;
|
|
283
292
|
}
|
|
284
293
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._ZKzeD{max-width:100%;position:relative;display:inline-block}._K1xiZ{width:100%}._dHNd-{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._dHNd-:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._dHNd-:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._dHNd-:disabled,._dHNd-[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._dHNd-._2wXSW{border-color:#b00}._dHNd-._2wXSW:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._dHNd-._WaQIy{min-width:120px;padding:0 4px 0 12px}._dHNd-._H5F-c{margin-top:4px}._dHNd-._Hzqqr:not([aria-disabled=true]):not(:disabled){color:#32363a}._dHNd- ._ESi7d{min-height:10px}._dHNd- ._ESi7d._wbA4K{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._dHNd- ._ESi7d._aRyVd{display:inline-flex;align-items:center}._dHNd- ._PdQ0d{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._dHNd- ._PdQ0d._mxQUN{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._dHNd- ._PdQ0d._F-EIa{transform:rotate(-180deg)}._2p5S5[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._xWYQg{position:-webkit-sticky;position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._0gVkw{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._ht3au{fill:#515559}._Z573B{margin:2px 12px 2px 0}._Z573B._mtJ-M>svg{border-color:#0b6ed0}._rsngy{width:100%}._rsngy input:focus{box-shadow:unset;background-color:unset}._rsngy._mtJ-M input{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}";
|
|
4
|
+
var styles = {"container":"_ZKzeD","formFieldWrapper":"_K1xiZ","button":"_dHNd-","invalid":"_2wXSW","hasText":"_WaQIy","labelled":"_H5F-c","selected":"_Hzqqr","buttonLabel":"_ESi7d","isString":"_wbA4K","isNode":"_aRyVd","icon":"_PdQ0d","disabled":"_mxQUN","open":"_F-EIa","option":"_2p5S5","search":"_xWYQg","emptyOption":"_0gVkw","searchIcon":"_ht3au","checkbox":"_Z573B","highlighted":"_mtJ-M","searchInput":"_rsngy"};
|
|
5
|
+
var stylesheet="._ZKzeD{max-width:100%;position:relative;display:inline-block}._K1xiZ{width:100%}._dHNd-{display:inline-flex;justify-content:space-between;align-items:center;background-color:#fafafa;border:1px solid #898989;border-radius:4px;height:36px;color:#515559;outline:none;cursor:pointer}._dHNd-:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._dHNd-:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._dHNd-:disabled,._dHNd-[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._dHNd-._2wXSW{border-color:#b00}._dHNd-._2wXSW:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._dHNd-._WaQIy{min-width:120px;padding:0 4px 0 12px}._dHNd-._H5F-c{margin-top:4px}._dHNd-._Hzqqr:not([aria-disabled=true]):not(:disabled){color:#32363a}._dHNd- ._ESi7d{min-height:10px}._dHNd- ._ESi7d._wbA4K{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._dHNd- ._ESi7d._aRyVd{display:inline-flex;align-items:center}._dHNd- ._PdQ0d{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._dHNd- ._PdQ0d._mxQUN{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._dHNd- ._PdQ0d._F-EIa{transform:rotate(-180deg)}._2p5S5[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._xWYQg{position:-webkit-sticky;position:sticky;top:0;z-index:20;padding:4px 8px 8px!important;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;background-color:#fff!important}._0gVkw{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;background-color:#fff;font-size:14px;color:#32363a;word-break:break-word}._ht3au{fill:#515559}._Z573B{margin:2px 12px 2px 0}._Z573B._mtJ-M>svg{border-color:#0b6ed0}._rsngy{width:100%}._rsngy input:focus{box-shadow:unset;background-color:unset}._rsngy._mtJ-M input{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}";
|
|
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 };
|
|
@@ -70,7 +70,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
70
70
|
const isHighlighted = highlightedIndex === myIndex && myIndex !== -1;
|
|
71
71
|
useEffect(() => {
|
|
72
72
|
if (isHighlighted) {
|
|
73
|
-
var _listRef$current, _listRef$current2
|
|
73
|
+
var _listRef$current, _listRef$current2;
|
|
74
74
|
if (isOpen && internalRef !== null && internalRef !== void 0 && internalRef.current && listRef !== null && listRef !== void 0 && listRef.current && ((_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.scrollHeight) > ((_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 ? void 0 : _listRef$current2.clientHeight)) {
|
|
75
75
|
const scrollBottom = listRef.current.clientHeight + listRef.current.scrollTop;
|
|
76
76
|
const elementBottom = internalRef.current.offsetTop + internalRef.current.offsetHeight;
|
|
@@ -80,9 +80,12 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
80
80
|
listRef.current.scrollTop = internalRef.current.offsetTop - (isSearchable ? searchHeight : 0);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
(
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
if (!isSearchable) {
|
|
84
|
+
var _internalRef$current;
|
|
85
|
+
(_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 || _internalRef$current.focus({
|
|
86
|
+
preventScroll: true
|
|
87
|
+
});
|
|
88
|
+
}
|
|
86
89
|
}
|
|
87
90
|
}, [isHighlighted, isOpen, listRef, isSearchable, searchHeight]);
|
|
88
91
|
return isOpen && isVisible ? /*#__PURE__*/React__default.createElement(FlyoutOption, _extends({}, rest, {
|
|
@@ -100,7 +103,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
100
103
|
onMouseLeave: wrapEvent(onMouseLeave, () => setHighlightedIndex(-1))
|
|
101
104
|
}), children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isMultiSelect && /*#__PURE__*/React__default.createElement(Check, {
|
|
102
105
|
className: classNames(styles.checkbox, {
|
|
103
|
-
[styles.highlighted]: isHighlighted
|
|
106
|
+
[styles.highlighted]: isHighlighted
|
|
104
107
|
}),
|
|
105
108
|
checked: isSelected,
|
|
106
109
|
disabled: disabled
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { useRef,
|
|
1
|
+
import React__default, { useRef, useEffect } from 'react';
|
|
2
2
|
import styles from './Dropdown2.js';
|
|
3
3
|
import '../../utils/index.js';
|
|
4
4
|
import { useDropdownContext } from './DropdownContext.js';
|
|
@@ -21,10 +21,9 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
|
|
|
21
21
|
const inputRef = useRef(null);
|
|
22
22
|
const {
|
|
23
23
|
isOpen,
|
|
24
|
-
highlightedIndex,
|
|
25
|
-
setHighlightedIndex,
|
|
26
24
|
searchValue,
|
|
27
25
|
setSearchValue,
|
|
26
|
+
highlightedIndex,
|
|
28
27
|
setSearchHeight,
|
|
29
28
|
dataTestId,
|
|
30
29
|
listboxId
|
|
@@ -33,24 +32,17 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
|
|
|
33
32
|
var _inputRef$current;
|
|
34
33
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
35
34
|
};
|
|
36
|
-
const
|
|
35
|
+
const isHighlighted = highlightedIndex === 0;
|
|
36
|
+
useChildIndex({
|
|
37
37
|
element: internalRef.current,
|
|
38
38
|
isVisible: true
|
|
39
39
|
});
|
|
40
|
-
const isHighlighted = useMemo(() => highlightedIndex === myIndex && myIndex !== -1, [highlightedIndex, myIndex]);
|
|
41
40
|
useEffect(() => {
|
|
42
|
-
// for
|
|
43
|
-
if (
|
|
41
|
+
// for initial open with mouse
|
|
42
|
+
if (isOpen) {
|
|
44
43
|
var _inputRef$current2;
|
|
45
44
|
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.focus();
|
|
46
45
|
}
|
|
47
|
-
}, [isHighlighted]);
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
// for initial open with mouse
|
|
50
|
-
if (isHighlighted && isOpen) {
|
|
51
|
-
var _inputRef$current3;
|
|
52
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.focus();
|
|
53
|
-
}
|
|
54
46
|
// Omitted `isHighlighted` because we don't want to focus the input on mouse enter.
|
|
55
47
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
56
48
|
}, [isOpen]);
|
|
@@ -60,32 +52,16 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
|
|
|
60
52
|
setSearchHeight((_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 ? void 0 : _internalRef$current.offsetHeight);
|
|
61
53
|
}
|
|
62
54
|
}, [isOpen, setSearchHeight]);
|
|
63
|
-
const handleKeyDown = e => {
|
|
64
|
-
const keysToAllow = ['ArrowDown', 'Escape', 'Tab', 'PageUp', 'Home', 'PageDown', 'End'];
|
|
65
|
-
if (!keysToAllow.includes(e.key)) {
|
|
66
|
-
// `Dropdown` component listens for keystrokes to highlight options with matching labels. We want the focus to remain in the search bar.
|
|
67
|
-
e.stopPropagation();
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
55
|
const handleSearch = e => {
|
|
71
56
|
const searchVal = e.currentTarget.value;
|
|
72
57
|
setSearchValue(searchVal);
|
|
73
58
|
};
|
|
74
|
-
const handleMouseEnter = () => {
|
|
75
|
-
setHighlightedIndex(myIndex);
|
|
76
|
-
};
|
|
77
|
-
const handleMouseLeave = () => {
|
|
78
|
-
setHighlightedIndex(-1);
|
|
79
|
-
};
|
|
80
59
|
return isOpen ? /*#__PURE__*/React__default.createElement("div", {
|
|
81
60
|
className: styles.search,
|
|
82
61
|
ref: mergeRefs(internalRef, ref),
|
|
83
|
-
onMouseEnter: handleMouseEnter,
|
|
84
|
-
onMouseLeave: handleMouseLeave,
|
|
85
62
|
onSelect: handleSelect
|
|
86
63
|
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
87
|
-
className: styles.searchInput,
|
|
88
|
-
onKeyDown: handleKeyDown,
|
|
64
|
+
className: "".concat(styles.searchInput, " ").concat(isHighlighted ? styles.highlighted : undefined),
|
|
89
65
|
onChange: handleSearch,
|
|
90
66
|
ref: inputRef,
|
|
91
67
|
placeholder: searchText,
|
|
@@ -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 filePickerStyles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._4GlaJ{position:relative}._4GlaJ[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._4GlaJ:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._X0OWL{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._Ztn4T{margin-left:16px;font-size:14px;color:#32363a}._Ztn4T ._aXAvy{margin-right:16px}";
|
|
4
|
+
var filePickerStyles = {"container":"_4GlaJ","fileInput":"_X0OWL","fileDetails":"_Ztn4T","fileName":"_aXAvy"};
|
|
5
|
+
var stylesheet="._4GlaJ{position:relative}._4GlaJ[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._4GlaJ:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._X0OWL{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._Ztn4T{margin-left:16px;font-size:14px;color:#32363a}._Ztn4T ._aXAvy{margin-right:16px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { filePickerStyles 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 = {"caption":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._6iXMv{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._WbPun{color:#6a6d70;fill:#6a6d70}._7Gq0X{color:#b00;fill:#b00}._2hqAx,._YfLVP{margin-left:-2px;margin-right:3px}";
|
|
4
|
+
var styles = {"caption":"_6iXMv","helperText":"_WbPun","errorText":"_7Gq0X","errorIcon":"_2hqAx","readOnlyIcon":"_YfLVP"};
|
|
5
|
+
var stylesheet="._6iXMv{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._WbPun{color:#6a6d70;fill:#6a6d70}._7Gq0X{color:#b00;fill:#b00}._2hqAx,._YfLVP{margin-left:-2px;margin-right:3px}";
|
|
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 = {"formField":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._FqJDb{display:flex;flex-direction:column;align-items:flex-start}._Vi-i-{margin-top:6px;max-width:100%}._Vi-i- *+*{margin-top:4px}";
|
|
4
|
+
var styles = {"formField":"_FqJDb","captionContainer":"_Vi-i-"};
|
|
5
|
+
var stylesheet="._FqJDb{display:flex;flex-direction:column;align-items:flex-start}._Vi-i-{margin-top:6px;max-width:100%}._Vi-i- *+*{margin-top:4px}";
|
|
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 = {"dialog":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._X-5ey{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _HJ7No{0%{transform:scale3d(.7,.7,.7);opacity:0}}._Fv1TJ{animation:_HJ7No both;animation-duration:.2s}@keyframes _bSK-q{to{transform:scale3d(.7,.7,.7);opacity:0}}._fofNF{animation:_bSK-q both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"dialog":"_X-5ey","transitionIn":"_Fv1TJ","showAnimation":"_HJ7No","transitionOut":"_fofNF","hideAnimation":"_bSK-q"};
|
|
5
|
+
var stylesheet="._X-5ey{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _HJ7No{0%{transform:scale3d(.7,.7,.7);opacity:0}}._Fv1TJ{animation:_HJ7No both;animation-duration:.2s}@keyframes _bSK-q{to{transform:scale3d(.7,.7,.7);opacity:0}}._fofNF{animation:_bSK-q both;animation-duration:.2s}";
|
|
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 };
|