@qualtrics/ui-react 2.72.0 → 2.74.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 +25 -0
- package/dist/__shared/cjs/{index-05bf7075.js → index-55082bc8.js} +199 -142
- package/dist/__shared/cjs/{index-a78ce1ca.js → index-97d7b02b.js} +3 -3
- package/dist/__shared/cjs/{index-3cd0c57d.js → index-be619849.js} +238 -163
- 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/ColorPicker.js +9 -2
- 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/IconButton.js +22 -2
- 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/Tooltip.js +8 -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 +11 -1
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -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/FilterAnchor.js +9 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Indicator/Indicator2.js +3 -3
- package/dist/next/Input/Input.js +37 -5
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/next/Menu/Hooks/usePaneSearch.js +10 -0
- 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 +12 -1
- package/dist/next/index.js +65 -50
- package/dist/utils/Flyout/Flyout2.js +3 -3
- 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 AccordionStyles = {"accordion":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._h4qS-{width:100%;display:flex;flex-direction:column}._h4qS-._Qgdoa{grid-gap:20px;gap:20px}._FEbHF{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}._FEbHF ._T8Wpa{margin-top:-3px}._jyCqH{flex:1}._FoseU{padding:8px 16px 16px 24px;font-size:14px;line-height:20px;overflow:var(--accordion-panel-overflow,auto)}._Sv27w ._FEbHF{border-radius:4px}._Sv27w ._FEbHF:hover:not(._NLxWc){background-color:rgba(50,54,58,.08)}._Sv27w ._FEbHF:active:not(._NLxWc){background-color:rgba(50,54,58,.11)}._fSyFz ._FEbHF{font-weight:400;padding-left:12px;border-top:1px solid #eee}._fSyFz ._FEbHF:hover:not(._NLxWc){background-color:rgba(50,54,58,.08)}._fSyFz ._FEbHF:active:not(._NLxWc){background-color:rgba(50,54,58,.11)}._Qgdoa ._t23Ay{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._Qgdoa ._t23Ay._5qJt9{box-shadow:none}._Qgdoa ._t23Ay._5qJt9 ._FEbHF{border-radius:6px}._Qgdoa ._FEbHF{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._Qgdoa ._FEbHF ._jyCqH{padding-left:20px}._Qgdoa ._FEbHF:hover:not(disabled){border:1px solid #c2c2c2}._Qgdoa ._FEbHF:active:not(._NLxWc){border:1px solid #898989}._Qgdoa ._FoseU{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._5qJt9 ._FoseU{display:none}._NLxWc{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._FEbHF.focus-visible,._FEbHF:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._FEbHF.focus-visible:before,._FEbHF:focus-visible:before{z-index:1}._fSyFz ._FEbHF.focus-visible,._fSyFz ._FEbHF:focus-visible{border-color:transparent}";
|
|
4
|
+
var AccordionStyles = {"accordion":"_h4qS-","block-variant":"_Qgdoa","header":"_FEbHF","headerIcon":"_T8Wpa","title":"_jyCqH","panel":"_FoseU","default-variant":"_Sv27w","disabled":"_NLxWc","outlined-variant":"_fSyFz","section":"_t23Ay","closed":"_5qJt9"};
|
|
5
|
+
var stylesheet="._h4qS-{width:100%;display:flex;flex-direction:column}._h4qS-._Qgdoa{grid-gap:20px;gap:20px}._FEbHF{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}._FEbHF ._T8Wpa{margin-top:-3px}._jyCqH{flex:1}._FoseU{padding:8px 16px 16px 24px;font-size:14px;line-height:20px;overflow:var(--accordion-panel-overflow,auto)}._Sv27w ._FEbHF{border-radius:4px}._Sv27w ._FEbHF:hover:not(._NLxWc){background-color:rgba(50,54,58,.08)}._Sv27w ._FEbHF:active:not(._NLxWc){background-color:rgba(50,54,58,.11)}._fSyFz ._FEbHF{font-weight:400;padding-left:12px;border-top:1px solid #eee}._fSyFz ._FEbHF:hover:not(._NLxWc){background-color:rgba(50,54,58,.08)}._fSyFz ._FEbHF:active:not(._NLxWc){background-color:rgba(50,54,58,.11)}._Qgdoa ._t23Ay{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._Qgdoa ._t23Ay._5qJt9{box-shadow:none}._Qgdoa ._t23Ay._5qJt9 ._FEbHF{border-radius:6px}._Qgdoa ._FEbHF{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._Qgdoa ._FEbHF ._jyCqH{padding-left:20px}._Qgdoa ._FEbHF:hover:not(disabled){border:1px solid #c2c2c2}._Qgdoa ._FEbHF:active:not(._NLxWc){border:1px solid #898989}._Qgdoa ._FoseU{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._5qJt9 ._FoseU{display:none}._NLxWc{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._FEbHF.focus-visible,._FEbHF:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._FEbHF.focus-visible:before,._FEbHF:focus-visible:before{z-index:1}._fSyFz ._FEbHF.focus-visible,._fSyFz ._FEbHF: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 = "._Dldl-{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}._Dldl-._RJTwv{padding:0 8px;height:26px;min-height:26px}._Dldl-._Nz0Ri{display:block;width:100%}._Dldl-._SWV-L{cursor:not-allowed}._Dldl-:active:focus,._Dldl-:focus{outline:none}._Dldl-._i9hSE{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._Dldl-._i9hSE:hover:not(._SWV-L){background-color:#eee}._Dldl-._i9hSE:active:not(._SWV-L){background-color:#e5e5e5}._Dldl-._i9hSE._SWV-L{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)}._Dldl-._3vaNn{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._Dldl-._3vaNn:hover:not(._SWV-L){background-color:#085caf;border-color:#085caf}._Dldl-._3vaNn:active:not(._SWV-L){background-color:#0854a1;border-color:#0854a1}._Dldl-._3vaNn._SWV-L{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._Dldl-._iwb-8{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._Dldl-._iwb-8:hover:not(._SWV-L){background-color:#eef5fc}._Dldl-._iwb-8:active:not(._SWV-L){background-color:#e1edf9}._Dldl-._iwb-8._SWV-L{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)}._Dldl-._TMPro{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._Dldl-._TMPro:hover:not(._SWV-L){background-color:#eef5fc;border-color:#eef5fc}._Dldl-._TMPro:active:not(._SWV-L){background-color:#e1edf9;border-color:#e1edf9}._Dldl-._TMPro._SWV-L{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)}._Dldl-._BQFkN{color:#0b6ed0;fill:#0b6ed0;padding:0}._Dldl-._BQFkN:hover:not(._SWV-L){color:#085caf}._Dldl-._BQFkN:active:not(._SWV-L){color:#0854a1}._Dldl-._BQFkN._SWV-L{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._Dldl-._60-Yq{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._Dldl-._60-Yq:hover:not(._SWV-L){background-color:#ffecec}._Dldl-._60-Yq:active:not(._SWV-L){background-color:#ffdbdb}._Dldl-._60-Yq._SWV-L{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)}._Dldl-.focus-visible,._Dldl-:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var buttonStyles = {"btn":"_Dldl-","small":"_RJTwv","full":"_Nz0Ri","disabled":"_SWV-L","default":"_i9hSE","primary":"_3vaNn","secondary":"_iwb-8","tertiary":"_TMPro","link":"_BQFkN","danger":"_60-Yq"};
|
|
5
|
+
var stylesheet="._Dldl-{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}._Dldl-._RJTwv{padding:0 8px;height:26px;min-height:26px}._Dldl-._Nz0Ri{display:block;width:100%}._Dldl-._SWV-L{cursor:not-allowed}._Dldl-:active:focus,._Dldl-:focus{outline:none}._Dldl-._i9hSE{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._Dldl-._i9hSE:hover:not(._SWV-L){background-color:#eee}._Dldl-._i9hSE:active:not(._SWV-L){background-color:#e5e5e5}._Dldl-._i9hSE._SWV-L{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)}._Dldl-._3vaNn{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._Dldl-._3vaNn:hover:not(._SWV-L){background-color:#085caf;border-color:#085caf}._Dldl-._3vaNn:active:not(._SWV-L){background-color:#0854a1;border-color:#0854a1}._Dldl-._3vaNn._SWV-L{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._Dldl-._iwb-8{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._Dldl-._iwb-8:hover:not(._SWV-L){background-color:#eef5fc}._Dldl-._iwb-8:active:not(._SWV-L){background-color:#e1edf9}._Dldl-._iwb-8._SWV-L{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)}._Dldl-._TMPro{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._Dldl-._TMPro:hover:not(._SWV-L){background-color:#eef5fc;border-color:#eef5fc}._Dldl-._TMPro:active:not(._SWV-L){background-color:#e1edf9;border-color:#e1edf9}._Dldl-._TMPro._SWV-L{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)}._Dldl-._BQFkN{color:#0b6ed0;fill:#0b6ed0;padding:0}._Dldl-._BQFkN:hover:not(._SWV-L){color:#085caf}._Dldl-._BQFkN:active:not(._SWV-L){color:#0854a1}._Dldl-._BQFkN._SWV-L{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._Dldl-._60-Yq{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._Dldl-._60-Yq:hover:not(._SWV-L){background-color:#ffecec}._Dldl-._60-Yq:active:not(._SWV-L){background-color:#ffdbdb}._Dldl-._60-Yq._SWV-L{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)}._Dldl-.focus-visible,._Dldl-: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 = "._w2Ufk{display:inline-flex;align-items:stretch}._w2Ufk._L7oVq{width:100%}._w2Ufk ._vGZEq{margin:0;min-width:0}._w2Ufk ._vGZEq:focus{z-index:20}._w2Ufk ._vGZEq:hover{z-index:10}._w2Ufk ._vGZEq._ctiKV{border:none}._w2Ufk ._vGZEq._L7oVq{display:inline-flex;width:auto;flex-grow:1}._w2Ufk ._vGZEq: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}._w2Ufk ._vGZEq:first-child._ctiKV{border-right:1px solid #fff}._w2Ufk ._vGZEq:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._w2Ufk ._vGZEq:not(:last-child):not(:first-child)._ctiKV{border-left:1px solid #fff;border-right:1px solid #fff}._w2Ufk ._vGZEq:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._w2Ufk ._vGZEq:last-child._ctiKV{border-left:1px solid #fff}._w2Ufk ._vGZEq: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":"_w2Ufk","full":"_L7oVq","buttonGroupElement":"_vGZEq","primary":"_ctiKV"};
|
|
5
|
+
var stylesheet="._w2Ufk{display:inline-flex;align-items:stretch}._w2Ufk._L7oVq{width:100%}._w2Ufk ._vGZEq{margin:0;min-width:0}._w2Ufk ._vGZEq:focus{z-index:20}._w2Ufk ._vGZEq:hover{z-index:10}._w2Ufk ._vGZEq._ctiKV{border:none}._w2Ufk ._vGZEq._L7oVq{display:inline-flex;width:auto;flex-grow:1}._w2Ufk ._vGZEq: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}._w2Ufk ._vGZEq:first-child._ctiKV{border-right:1px solid #fff}._w2Ufk ._vGZEq:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._w2Ufk ._vGZEq:not(:last-child):not(:first-child)._ctiKV{border-left:1px solid #fff;border-right:1px solid #fff}._w2Ufk ._vGZEq:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._w2Ufk ._vGZEq:last-child._ctiKV{border-left:1px solid #fff}._w2Ufk ._vGZEq: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 = "._JOEm1{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._c6-uI,._JOEm1{cursor:pointer;height:16px;width:16px}._c6-uI{position:absolute;opacity:0;z-index:10}._c6-uI:disabled{cursor:not-allowed}._C9qQh{color:#32363a;display:flex;align-items:center;cursor:pointer}._Ih-s1{cursor:auto;color:hsla(0,0%,53.7%,.4)}._jk2EL{margin-right:12px;flex-shrink:0}._vNOU4{position:absolute;top:0;left:0}._vxfgR{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}._c6-uI:hover ._vxfgR:not(._qIeY5)._4N7KC,._vxfgR:not(._qIeY5):hover._4N7KC{background-color:#085caf}._c6-uI:hover ._vxfgR:not(._qIeY5):not(._4N7KC),._vxfgR:not(._qIeY5):hover:not(._4N7KC){border-color:#0b6ed0}._vxfgR ._7Uxsj{fill:#0b6ed0;fill-opacity:0}._vxfgR._4N7KC ._7Uxsj{fill-opacity:1}._vxfgR._4N7KC:not(._qIeY5){border-color:transparent;background-color:#0b6ed0}._vxfgR._4N7KC:not(._qIeY5) ._7Uxsj{fill:#fff}._vxfgR._qIeY5{opacity:.4}._vxfgR ._kAtV-{position:absolute;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._SaBLd{color:#32363a;margin-left:12px}._wDm6Z{display:flex;align-items:center}._wDm6Z:has(input:disabled) ._SaBLd{color:rgba(50,54,58,.4)}._wDm6Z:not(:has(input:disabled)) ._SaBLd{cursor:pointer}._c6-uI.focus-visible~._vNOU4>._vxfgR,._c6-uI:focus-visible~._vNOU4>._vxfgR{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"checkbox":"_JOEm1","input":"_c6-uI","label":"_C9qQh","labelDisabled":"_Ih-s1","wrappedInput":"_jk2EL","visualCheck":"_vNOU4","check":"_vxfgR","disabled":"_qIeY5","checked":"_4N7KC","checkIcon":"_7Uxsj","mixed":"_kAtV-","checkboxLabel":"_SaBLd","checkboxField":"_wDm6Z"};
|
|
5
|
+
var stylesheet="._JOEm1{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._c6-uI,._JOEm1{cursor:pointer;height:16px;width:16px}._c6-uI{position:absolute;opacity:0;z-index:10}._c6-uI:disabled{cursor:not-allowed}._C9qQh{color:#32363a;display:flex;align-items:center;cursor:pointer}._Ih-s1{cursor:auto;color:hsla(0,0%,53.7%,.4)}._jk2EL{margin-right:12px;flex-shrink:0}._vNOU4{position:absolute;top:0;left:0}._vxfgR{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}._c6-uI:hover ._vxfgR:not(._qIeY5)._4N7KC,._vxfgR:not(._qIeY5):hover._4N7KC{background-color:#085caf}._c6-uI:hover ._vxfgR:not(._qIeY5):not(._4N7KC),._vxfgR:not(._qIeY5):hover:not(._4N7KC){border-color:#0b6ed0}._vxfgR ._7Uxsj{fill:#0b6ed0;fill-opacity:0}._vxfgR._4N7KC ._7Uxsj{fill-opacity:1}._vxfgR._4N7KC:not(._qIeY5){border-color:transparent;background-color:#0b6ed0}._vxfgR._4N7KC:not(._qIeY5) ._7Uxsj{fill:#fff}._vxfgR._qIeY5{opacity:.4}._vxfgR ._kAtV-{position:absolute;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._SaBLd{color:#32363a;margin-left:12px}._wDm6Z{display:flex;align-items:center}._wDm6Z:has(input:disabled) ._SaBLd{color:rgba(50,54,58,.4)}._wDm6Z:not(:has(input:disabled)) ._SaBLd{cursor:pointer}._c6-uI.focus-visible~._vNOU4>._vxfgR,._c6-uI:focus-visible~._vNOU4>._vxfgR{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 };
|
|
@@ -17,9 +17,9 @@ import useId from '../../hooks/useId/useId.js';
|
|
|
17
17
|
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
18
18
|
import hexToHsv from './utils/hexToHsv.js';
|
|
19
19
|
import useClickOutside from '../../hooks/useClickOutside/useClickOutside.js';
|
|
20
|
+
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
20
21
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
21
22
|
import hsvToHex from './utils/hsvToHex.js';
|
|
22
|
-
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
23
23
|
import validateHex from './utils/validateHex.js';
|
|
24
24
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
25
25
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
@@ -41,6 +41,7 @@ function ColorPicker(_ref) {
|
|
|
41
41
|
id,
|
|
42
42
|
buttonRef: externalButtonRef,
|
|
43
43
|
inputRef: externalInputRef,
|
|
44
|
+
elementRefToFocusOnClose,
|
|
44
45
|
'aria-label': ariaLabel,
|
|
45
46
|
'aria-labelledby': ariaLabelledBy,
|
|
46
47
|
'aria-describedby': ariaDescribedBy,
|
|
@@ -68,6 +69,12 @@ function ColorPicker(_ref) {
|
|
|
68
69
|
const anchorRef = useRef(null);
|
|
69
70
|
const popperRef = useRef(null);
|
|
70
71
|
useClickOutside([anchorRef, popperRef], () => setIsOpen(false));
|
|
72
|
+
useDidUpdate(() => {
|
|
73
|
+
if (!isOpen) {
|
|
74
|
+
var _elementRefToFocusOnC;
|
|
75
|
+
elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 || (_elementRefToFocusOnC = elementRefToFocusOnClose.current) === null || _elementRefToFocusOnC === void 0 || _elementRefToFocusOnC.focus();
|
|
76
|
+
}
|
|
77
|
+
}, [isOpen, elementRefToFocusOnClose]);
|
|
71
78
|
const {
|
|
72
79
|
translate
|
|
73
80
|
} = useTranslation();
|
|
@@ -239,7 +246,7 @@ function ColorPicker(_ref) {
|
|
|
239
246
|
open: isOpen && !isDisabled,
|
|
240
247
|
isFocusLocked: true,
|
|
241
248
|
focusLockProps: {
|
|
242
|
-
returnFocus:
|
|
249
|
+
returnFocus: !elementRefToFocusOnClose
|
|
243
250
|
},
|
|
244
251
|
placement: "bottom-start",
|
|
245
252
|
popper: /*#__PURE__*/React__default.createElement(ColorPickerFlyout, {
|
|
@@ -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 = "._xhOFl{display:flex;line-height:1.15}._xhOFl ._ULlyP{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._xhOFl ._ULlyP:hover:not(._fkcVP){background-color:#f5f5f5}._xhOFl ._ULlyP._fkcVP{cursor:not-allowed;fill:rgba(81,85,89,.4)}._xhOFl ._ULlyP:active:not(._fkcVP){background-color:#eee}._xhOFl ._JT96y{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._xhOFl ._JT96y._fkcVP{border-color:#d9d9d9}._xhOFl ._lWA9G{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}._xhOFl ._NTWbK{width:36px;height:36px;border:1px solid #898989;border-right-width:0}._xhOFl ._NTWbK._fkcVP{border-color:#d9d9d9}._xhOFl ._RnN22{height:36px;border:1px solid #898989;border-width:1px 0}._xhOFl ._RnN22._fkcVP{border-color:#d9d9d9}._xhOFl ._UzUG8{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._xhOFl ._A50Kd{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}._xhOFl ._A50Kd._m0ItT{color:#9d9fa1}._ULlyP.focus-visible,._ULlyP:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._PcwPC{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}._PcwPC ._KVims{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}._PcwPC ._cfnPc{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}._PcwPC ._pEov3{display:flex;justify-content:space-between;margin:12px 0}._PcwPC ._pEov3._ftsHJ{margin-bottom:0}._PcwPC ._vUoCG{display:flex}._PcwPC ._XUzk5{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._PcwPC ._t7UEN{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._PcwPC ._SJl8J{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}._PcwPC ._FDdDN{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)}._PcwPC ._FDdDN._g-GK9{height:16px;margin-bottom:6px}._PcwPC ._WCRbo{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}._PcwPC ._WCRbo._g-GK9{height:16px}._PcwPC ._09IcW{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}._PcwPC ._F0x5b{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._PcwPC ._4Chmd{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}._PcwPC ._qmAJY{display:flex;justify-content:space-between}._PcwPC ._TIntw{display:flex;flex-direction:column;align-items:center}._PcwPC ._TIntw._CsHb7{margin-left:4px}._PcwPC ._yHT-V{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}._PcwPC ._FuS-7{padding:3px 4px 3px 13px!important;width:78px}._PcwPC ._Htu5N{text-align:right;padding:3px 4px 3px 0!important;width:34px}._PcwPC ._xfGTL{text-align:right;padding:3px 16px 3px 0!important;width:46px}._PcwPC ._NmjPG{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}._PcwPC ._JICOk{line-height:22px}._PcwPC ._4J6IX{display:flex}._PcwPC ._fsH9z{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._PcwPC ._fsH9z._v9o7w{margin-top:0}._PcwPC ._4YZ9c{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._PcwPC ._O4UrE,._PcwPC ._Of-YC{margin-top:12px}._ZzsdN{position:relative}._fy53B{display:none}._AzUoK{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._cfnPc.focus-visible,._cfnPc: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}._4Chmd.focus-visible,._4Chmd:focus-visible,._4YZ9c.focus-visible,._4YZ9c:focus-visible,._WCRbo.focus-visible,._WCRbo:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"colorPicker":"_xhOFl","colorPickerButton":"_ULlyP","disabledButton":"_fkcVP","colorPickerButtonPreview":"_JT96y","alphaBackground":"_lWA9G","colorPickerButtonAlphaPreview":"_NTWbK","caretIcon":"_RnN22","colorPickerInput":"_UzUG8","colorPickerInputDecoration":"_A50Kd","disabledDecoration":"_m0ItT","colorPickerFlyout":"_PcwPC","saturationGrid":"_KVims","saturationLoop":"_cfnPc","sliderGroup":"_pEov3","removeBottomMargin":"_ftsHJ","sliderPreviewContainer":"_vUoCG","sliderPreview":"_XUzk5","sliderPreviewAlpha":"_t7UEN","sliderPreviewAlphaBackground":"_SJl8J","hueSliderRail":"_FDdDN","alphaEnabled":"_g-GK9","hueSliderThumb":"_WCRbo","alphaSliderRailBackground":"_09IcW","alphaSliderRail":"_F0x5b","alphaSliderThumb":"_4Chmd","hexInputGroup":"_qmAJY","hexInputContainer":"_TIntw","rgbInputContainer":"_CsHb7","hexInputDecoration":"_yHT-V","hexInput":"_FuS-7","rgbInput":"_Htu5N","alphaInput":"_xfGTL","alphaInputDecoration":"_NmjPG","inputLabel":"_JICOk","rgbContainer":"_4J6IX","palette":"_fsH9z","removeUpperMargin":"_v9o7w","swatch":"_4YZ9c","noColorButton":"_O4UrE","clearSelectionButton":"_Of-YC","relativePositionContainer":"_ZzsdN","hidden":"_fy53B","hiddenLiveRegion":"_AzUoK"};
|
|
5
|
+
var stylesheet="._xhOFl{display:flex;line-height:1.15}._xhOFl ._ULlyP{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._xhOFl ._ULlyP:hover:not(._fkcVP){background-color:#f5f5f5}._xhOFl ._ULlyP._fkcVP{cursor:not-allowed;fill:rgba(81,85,89,.4)}._xhOFl ._ULlyP:active:not(._fkcVP){background-color:#eee}._xhOFl ._JT96y{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._xhOFl ._JT96y._fkcVP{border-color:#d9d9d9}._xhOFl ._lWA9G{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}._xhOFl ._NTWbK{width:36px;height:36px;border:1px solid #898989;border-right-width:0}._xhOFl ._NTWbK._fkcVP{border-color:#d9d9d9}._xhOFl ._RnN22{height:36px;border:1px solid #898989;border-width:1px 0}._xhOFl ._RnN22._fkcVP{border-color:#d9d9d9}._xhOFl ._UzUG8{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._xhOFl ._A50Kd{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}._xhOFl ._A50Kd._m0ItT{color:#9d9fa1}._ULlyP.focus-visible,._ULlyP:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._PcwPC{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}._PcwPC ._KVims{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}._PcwPC ._cfnPc{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}._PcwPC ._pEov3{display:flex;justify-content:space-between;margin:12px 0}._PcwPC ._pEov3._ftsHJ{margin-bottom:0}._PcwPC ._vUoCG{display:flex}._PcwPC ._XUzk5{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._PcwPC ._t7UEN{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._PcwPC ._SJl8J{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}._PcwPC ._FDdDN{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)}._PcwPC ._FDdDN._g-GK9{height:16px;margin-bottom:6px}._PcwPC ._WCRbo{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}._PcwPC ._WCRbo._g-GK9{height:16px}._PcwPC ._09IcW{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}._PcwPC ._F0x5b{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._PcwPC ._4Chmd{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}._PcwPC ._qmAJY{display:flex;justify-content:space-between}._PcwPC ._TIntw{display:flex;flex-direction:column;align-items:center}._PcwPC ._TIntw._CsHb7{margin-left:4px}._PcwPC ._yHT-V{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}._PcwPC ._FuS-7{padding:3px 4px 3px 13px!important;width:78px}._PcwPC ._Htu5N{text-align:right;padding:3px 4px 3px 0!important;width:34px}._PcwPC ._xfGTL{text-align:right;padding:3px 16px 3px 0!important;width:46px}._PcwPC ._NmjPG{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}._PcwPC ._JICOk{line-height:22px}._PcwPC ._4J6IX{display:flex}._PcwPC ._fsH9z{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._PcwPC ._fsH9z._v9o7w{margin-top:0}._PcwPC ._4YZ9c{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._PcwPC ._O4UrE,._PcwPC ._Of-YC{margin-top:12px}._ZzsdN{position:relative}._fy53B{display:none}._AzUoK{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._cfnPc.focus-visible,._cfnPc: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}._4Chmd.focus-visible,._4Chmd:focus-visible,._4YZ9c.focus-visible,._4YZ9c:focus-visible,._WCRbo.focus-visible,._WCRbo: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,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 = "._mlZxm{position:relative;display:inline-block}._UPX2K{padding-right:36px}._UPX2K._xvDYT{box-shadow:none!important;border:1px solid #898989!important}._EKVPj{margin-top:4px}._hAmSR{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._hAmSR:hover{background-color:rgba(50,54,58,.08)}._hAmSR:active{background-color:rgba(50,54,58,.11)}._hAmSR._N8aWt{transform:rotate(-180deg)}._hAmSR._DoEKl{opacity:.4}._lSh4X{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}._DoEKl{cursor:not-allowed}._DoEKl:hover{background-color:transparent}";
|
|
4
|
+
var styles = {"combobox":"_mlZxm","comboboxInput":"_UPX2K","ignoreFocusStyle":"_xvDYT","labelledInput":"_EKVPj","comboboxIcon":"_hAmSR","open":"_N8aWt","disabled":"_DoEKl","comboboxEmpty":"_lSh4X"};
|
|
5
|
+
var stylesheet="._mlZxm{position:relative;display:inline-block}._UPX2K{padding-right:36px}._UPX2K._xvDYT{box-shadow:none!important;border:1px solid #898989!important}._EKVPj{margin-top:4px}._hAmSR{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._hAmSR:hover{background-color:rgba(50,54,58,.08)}._hAmSR:active{background-color:rgba(50,54,58,.11)}._hAmSR._N8aWt{transform:rotate(-180deg)}._hAmSR._DoEKl{opacity:.4}._lSh4X{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}._DoEKl{cursor:not-allowed}._DoEKl: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 = "._NlVa9{grid-area:configPane;position:relative;height:100%}._8ZvUa{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}._BlF15._iFY0O ._8ZvUa,._BlF15:not(._Jqojf) ._8ZvUa{-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)}._Jqojf ._8ZvUa{width:0}._iFY0O._Jqojf ._8ZvUa{width:30px;cursor:pointer}._ziJax{height:100%;position:relative;width:292px}._BlF15 ._ziJax,._Jqojf ._ziJax{width:0}._iFY0O._BlF15 ._ziJax,._iFY0O._Jqojf ._ziJax{width:30px}._F0dII ._ziJax{transition:width .5s}._4xHvE{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._Jqojf ._4xHvE{visibility:hidden}._F0dII ._4xHvE{visibility:visible}._4xHvE ._Dwfui{width:252px;margin-left:20px}._KsrUu{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._Ud9yt{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._Ud9yt *{font-weight:400;font-size:16px;margin:0}._qInCi{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._Jqojf ._qInCi{left:0}._iFY0O._Jqojf ._qInCi{left:30px}._qInCi ._QRJZv{width:4px;height:100%}._iFY0O._Jqojf ._8ZvUa:hover+._qInCi ._QRJZv,._qInCi:hover ._QRJZv{background-color:#9dc5ed}._iFY0O._Jqojf ._8ZvUa:hover+._qInCi ._f-VyB>span,._qInCi:hover ._f-VyB>span{background-color:#0b6ed0;border-color:#0b6ed0}._iFY0O._Jqojf ._8ZvUa:hover+._qInCi ._f-VyB>span>svg,._qInCi:hover ._f-VyB>span>svg{fill:#fff}._iFY0O._Jqojf ._8ZvUa:hover+._qInCi ._f-VyB:active>span,._qInCi:hover ._f-VyB:active>span{background-color:#0854a1;border-color:#0854a1}._iFY0O._Jqojf ._8ZvUa:hover+._qInCi ._f-VyB:active>span>svg,._qInCi:hover ._f-VyB:active>span>svg{fill:#fff}._qInCi ._f-VyB{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}._qInCi ._f-VyB:active>span{background-color:#0854a1;border-color:#0854a1}._qInCi ._f-VyB:active>span>svg{fill:#fff}._qInCi ._f-VyB>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._qInCi ._f-VyB>span>svg{fill:#515559;border-radius:50%}._f-VyB.focus-visible,._f-VyB:focus-visible{border-color:#0a3f88}";
|
|
4
|
+
var styles = {"paneContainer":"_NlVa9","paneContentContainer":"_8ZvUa","unpinned":"_BlF15","hidden":"_Jqojf","preview":"_iFY0O","spacer":"_ziJax","transitioning":"_F0dII","paneContent":"_4xHvE","paneContentInner":"_Dwfui","header":"_KsrUu","title":"_Ud9yt","clickableArea":"_qInCi","hoverBorder":"_QRJZv","toolbarPanelExpandCollapseButton":"_f-VyB"};
|
|
5
|
+
var stylesheet="._NlVa9{grid-area:configPane;position:relative;height:100%}._8ZvUa{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}._BlF15._iFY0O ._8ZvUa,._BlF15:not(._Jqojf) ._8ZvUa{-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)}._Jqojf ._8ZvUa{width:0}._iFY0O._Jqojf ._8ZvUa{width:30px;cursor:pointer}._ziJax{height:100%;position:relative;width:292px}._BlF15 ._ziJax,._Jqojf ._ziJax{width:0}._iFY0O._BlF15 ._ziJax,._iFY0O._Jqojf ._ziJax{width:30px}._F0dII ._ziJax{transition:width .5s}._4xHvE{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._Jqojf ._4xHvE{visibility:hidden}._F0dII ._4xHvE{visibility:visible}._4xHvE ._Dwfui{width:252px;margin-left:20px}._KsrUu{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._Ud9yt{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._Ud9yt *{font-weight:400;font-size:16px;margin:0}._qInCi{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._Jqojf ._qInCi{left:0}._iFY0O._Jqojf ._qInCi{left:30px}._qInCi ._QRJZv{width:4px;height:100%}._iFY0O._Jqojf ._8ZvUa:hover+._qInCi ._QRJZv,._qInCi:hover ._QRJZv{background-color:#9dc5ed}._iFY0O._Jqojf ._8ZvUa:hover+._qInCi ._f-VyB>span,._qInCi:hover ._f-VyB>span{background-color:#0b6ed0;border-color:#0b6ed0}._iFY0O._Jqojf ._8ZvUa:hover+._qInCi ._f-VyB>span>svg,._qInCi:hover ._f-VyB>span>svg{fill:#fff}._iFY0O._Jqojf ._8ZvUa:hover+._qInCi ._f-VyB:active>span,._qInCi:hover ._f-VyB:active>span{background-color:#0854a1;border-color:#0854a1}._iFY0O._Jqojf ._8ZvUa:hover+._qInCi ._f-VyB:active>span>svg,._qInCi:hover ._f-VyB:active>span>svg{fill:#fff}._qInCi ._f-VyB{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}._qInCi ._f-VyB:active>span{background-color:#0854a1;border-color:#0854a1}._qInCi ._f-VyB:active>span>svg{fill:#fff}._qInCi ._f-VyB>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._qInCi ._f-VyB>span>svg{fill:#515559;border-radius:50%}._f-VyB.focus-visible,._f-VyB: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 = "._--ipg{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
4
|
+
var styles = {"divider":"_--ipg"};
|
|
5
|
+
var stylesheet="._--ipg{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 };
|
|
@@ -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 = "._HXedL{max-width:100%;position:relative;display:inline-block}._JJ6VS{width:100%}._lDEY0{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}._lDEY0:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._lDEY0:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._lDEY0:disabled,._lDEY0[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._lDEY0._IbdZ3{border-color:#b00}._lDEY0._IbdZ3:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._lDEY0._Fn04G{min-width:120px;padding:0 4px 0 12px}._lDEY0._TveV1{margin-top:4px}._lDEY0._lbarV:not([aria-disabled=true]):not(:disabled){color:#32363a}._lDEY0 ._aqJJ-{min-height:10px}._lDEY0 ._aqJJ-._1SL2N{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._lDEY0 ._aqJJ-._8jXpA{display:inline-flex;align-items:center}._lDEY0 ._EV-c3{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._lDEY0 ._EV-c3._rnDH8{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._lDEY0 ._EV-c3._2aMFE{transform:rotate(-180deg)}._et3ee[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._NawEF{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}._7TlDj{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}._bRzYH{fill:#515559}._jY-2M{margin:2px 12px 2px 0}._jY-2M._3jRjz>svg{border-color:#0b6ed0}._LaidO{width:100%}";
|
|
4
|
+
var styles = {"container":"_HXedL","formFieldWrapper":"_JJ6VS","button":"_lDEY0","invalid":"_IbdZ3","hasText":"_Fn04G","labelled":"_TveV1","selected":"_lbarV","buttonLabel":"_aqJJ-","isString":"_1SL2N","isNode":"_8jXpA","icon":"_EV-c3","disabled":"_rnDH8","open":"_2aMFE","option":"_et3ee","search":"_NawEF","emptyOption":"_7TlDj","searchIcon":"_bRzYH","checkbox":"_jY-2M","highlighted":"_3jRjz","searchInput":"_LaidO"};
|
|
5
|
+
var stylesheet="._HXedL{max-width:100%;position:relative;display:inline-block}._JJ6VS{width:100%}._lDEY0{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}._lDEY0:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._lDEY0:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._lDEY0:disabled,._lDEY0[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._lDEY0._IbdZ3{border-color:#b00}._lDEY0._IbdZ3:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._lDEY0._Fn04G{min-width:120px;padding:0 4px 0 12px}._lDEY0._TveV1{margin-top:4px}._lDEY0._lbarV:not([aria-disabled=true]):not(:disabled){color:#32363a}._lDEY0 ._aqJJ-{min-height:10px}._lDEY0 ._aqJJ-._1SL2N{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._lDEY0 ._aqJJ-._8jXpA{display:inline-flex;align-items:center}._lDEY0 ._EV-c3{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._lDEY0 ._EV-c3._rnDH8{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._lDEY0 ._EV-c3._2aMFE{transform:rotate(-180deg)}._et3ee[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._NawEF{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}._7TlDj{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}._bRzYH{fill:#515559}._jY-2M{margin:2px 12px 2px 0}._jY-2M._3jRjz>svg{border-color:#0b6ed0}._LaidO{width:100%}";
|
|
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 filePickerStyles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._fDt5r{position:relative}._fDt5r[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._fDt5r:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._nqpcc{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._ay5UU{margin-left:16px;font-size:14px;color:#32363a}._ay5UU ._ipJvE{margin-right:16px}";
|
|
4
|
+
var filePickerStyles = {"container":"_fDt5r","fileInput":"_nqpcc","fileDetails":"_ay5UU","fileName":"_ipJvE"};
|
|
5
|
+
var stylesheet="._fDt5r{position:relative}._fDt5r[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._fDt5r:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._nqpcc{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._ay5UU{margin-left:16px;font-size:14px;color:#32363a}._ay5UU ._ipJvE{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 = "._g3XTm{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._TLBlR{color:#6a6d70;fill:#6a6d70}._NfXAm{color:#b00;fill:#b00}._5RmfH,._mCqjz{margin-left:-2px;margin-right:3px}";
|
|
4
|
+
var styles = {"caption":"_g3XTm","helperText":"_TLBlR","errorText":"_NfXAm","errorIcon":"_5RmfH","readOnlyIcon":"_mCqjz"};
|
|
5
|
+
var stylesheet="._g3XTm{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._TLBlR{color:#6a6d70;fill:#6a6d70}._NfXAm{color:#b00;fill:#b00}._5RmfH,._mCqjz{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 = "._az3La{display:flex;flex-direction:column;align-items:flex-start}._RCSWL{margin-top:6px;max-width:100%}._RCSWL *+*{margin-top:4px}";
|
|
4
|
+
var styles = {"formField":"_az3La","captionContainer":"_RCSWL"};
|
|
5
|
+
var stylesheet="._az3La{display:flex;flex-direction:column;align-items:flex-start}._RCSWL{margin-top:6px;max-width:100%}._RCSWL *+*{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 = "._tikHJ{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _yH4Pu{0%{transform:scale3d(.7,.7,.7);opacity:0}}._MAxLb{animation:_yH4Pu both;animation-duration:.2s}@keyframes _I4CHj{to{transform:scale3d(.7,.7,.7);opacity:0}}._n5i-w{animation:_I4CHj both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"dialog":"_tikHJ","transitionIn":"_MAxLb","showAnimation":"_yH4Pu","transitionOut":"_n5i-w","hideAnimation":"_I4CHj"};
|
|
5
|
+
var stylesheet="._tikHJ{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _yH4Pu{0%{transform:scale3d(.7,.7,.7);opacity:0}}._MAxLb{animation:_yH4Pu both;animation-duration:.2s}@keyframes _I4CHj{to{transform:scale3d(.7,.7,.7);opacity:0}}._n5i-w{animation:_I4CHj 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 };
|
|
@@ -18,11 +18,30 @@ const IconButton = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
18
18
|
isTooltipADescription = false,
|
|
19
19
|
onClick,
|
|
20
20
|
onKeyDown,
|
|
21
|
+
onKeyUp,
|
|
21
22
|
...rest
|
|
22
23
|
} = _ref;
|
|
24
|
+
const [isActive, setIsActive] = React__default.useState(false);
|
|
23
25
|
const classes = classNames(className, iconButtonStyles.button, {
|
|
24
|
-
[iconButtonStyles.disabled]: disabled
|
|
26
|
+
[iconButtonStyles.disabled]: disabled,
|
|
27
|
+
[iconButtonStyles.active]: isActive
|
|
25
28
|
});
|
|
29
|
+
const handleKeyDown = event => {
|
|
30
|
+
if (!disabled) {
|
|
31
|
+
if (event.key === 'Enter') {
|
|
32
|
+
setIsActive(true);
|
|
33
|
+
}
|
|
34
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(event);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const handleKeyUp = event => {
|
|
38
|
+
if (!disabled) {
|
|
39
|
+
if (event.key === 'Enter') {
|
|
40
|
+
setIsActive(false);
|
|
41
|
+
}
|
|
42
|
+
onKeyUp === null || onKeyUp === void 0 || onKeyUp(event);
|
|
43
|
+
}
|
|
44
|
+
};
|
|
26
45
|
if (children.props.size) {
|
|
27
46
|
// eslint-disable-next-line no-console
|
|
28
47
|
console.error(sizePropInIconErrorMessage);
|
|
@@ -36,7 +55,8 @@ const IconButton = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
36
55
|
"aria-disabled": ariaDisabled,
|
|
37
56
|
ref: ref,
|
|
38
57
|
onClick: disabled ? undefined : onClick,
|
|
39
|
-
onKeyDown:
|
|
58
|
+
onKeyDown: handleKeyDown,
|
|
59
|
+
onKeyUp: handleKeyUp
|
|
40
60
|
}), /*#__PURE__*/React__default.cloneElement(children, {
|
|
41
61
|
size: 'medium',
|
|
42
62
|
'aria-hidden': true
|
|
@@ -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 iconButtonStyles = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._RzHnB{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._RzHnB:focus{outline:none}._RzHnB:hover:not(._v6jb-){background-color:rgba(50,54,58,.08)}._RzHnB._JOgTq:not(._v6jb-),._RzHnB:active:not(._v6jb-){background-color:rgba(50,54,58,.11);stroke-width:2}._RzHnB._v6jb-{cursor:not-allowed;fill:rgba(81,85,89,.6)}._RzHnB.focus-visible,._RzHnB:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var iconButtonStyles = {"button":"_RzHnB","disabled":"_v6jb-","active":"_JOgTq"};
|
|
5
|
+
var stylesheet="._RzHnB{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._RzHnB:focus{outline:none}._RzHnB:hover:not(._v6jb-){background-color:rgba(50,54,58,.08)}._RzHnB._JOgTq:not(._v6jb-),._RzHnB:active:not(._v6jb-){background-color:rgba(50,54,58,.11);stroke-width:2}._RzHnB._v6jb-{cursor:not-allowed;fill:rgba(81,85,89,.6)}._RzHnB.focus-visible,._RzHnB: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 { iconButtonStyles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._8W6-f{display:inline-block}._SBDpU{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._SBDpU::-moz-selection{background-color:rgba(11,110,208,.11)}._SBDpU::selection{background-color:rgba(11,110,208,.11)}._SBDpU:focus,._SBDpU:hover{background-color:#f5f5f5}._SBDpU:focus{border:2px solid #0a3f88;padding:3px}._SBDpU:focus._HsqxT{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
|
|
4
|
+
var styles = {"container":"_8W6-f","inlineInput":"_SBDpU","isEditing":"_HsqxT"};
|
|
5
|
+
var stylesheet="._8W6-f{display:inline-block}._SBDpU{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._SBDpU::-moz-selection{background-color:rgba(11,110,208,.11)}._SBDpU::selection{background-color:rgba(11,110,208,.11)}._SBDpU:focus,._SBDpU:hover{background-color:#f5f5f5}._SBDpU:focus{border:2px solid #0a3f88;padding:3px}._SBDpU:focus._HsqxT{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
|
|
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 = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._zjZEN{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._zjZEN::-moz-placeholder{color:#515559;opacity:1}._zjZEN::placeholder{color:#515559;opacity:1}._zjZEN:hover{cursor:pointer;background-color:#f5f5f5}._zjZEN:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._zjZEN._t3CpN{border-color:#b00}._zjZEN._t3CpN:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._zjZEN:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._zjZEN:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._zjZEN:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._zjZEN._bjR7p{height:auto}._zjZEN._bjR7p::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._zjZEN._dNtBu{display:block;width:100%}._zjZEN._HZzIs{padding:4px 8px}input._zjZEN._HZzIs{height:26px;min-height:26px}[type=number]._zjZEN{-moz-appearance:textfield}[type=number]._zjZEN::-webkit-inner-spin-button,[type=number]._zjZEN::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._FfwyU{line-height:20px;color:#515559;display:flex;flex-direction:column;align-items:flex-start}._FfwyU:hover{cursor:pointer}._FfwyU._-mRMv{color:#0b6ed0}._15Plm{margin-top:4px}";
|
|
4
|
+
var styles = {"input":"_zjZEN","invalid":"_t3CpN","multiline":"_bjR7p","full":"_dNtBu","small":"_HZzIs","label":"_FfwyU","focused":"_-mRMv","wrappedInput":"_15Plm"};
|
|
5
|
+
var stylesheet="._zjZEN{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._zjZEN::-moz-placeholder{color:#515559;opacity:1}._zjZEN::placeholder{color:#515559;opacity:1}._zjZEN:hover{cursor:pointer;background-color:#f5f5f5}._zjZEN:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._zjZEN._t3CpN{border-color:#b00}._zjZEN._t3CpN:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._zjZEN:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._zjZEN:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._zjZEN:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._zjZEN._bjR7p{height:auto}._zjZEN._bjR7p::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._zjZEN._dNtBu{display:block;width:100%}._zjZEN._HZzIs{padding:4px 8px}input._zjZEN._HZzIs{height:26px;min-height:26px}[type=number]._zjZEN{-moz-appearance:textfield}[type=number]._zjZEN::-webkit-inner-spin-button,[type=number]._zjZEN::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._FfwyU{line-height:20px;color:#515559;display:flex;flex-direction:column;align-items:flex-start}._FfwyU:hover{cursor:pointer}._FfwyU._-mRMv{color:#0b6ed0}._15Plm{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 = {"addon":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Z10U1{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._Z10U1._-4CEG{height:26px;min-height:26px;padding:5px 8px}._pA8uJ{display:flex;align-items:stretch}._pA8uJ._tFw3c{width:100%}._pA8uJ ._sin-J{margin:0;position:relative;flex-shrink:0;z-index:10}._pA8uJ ._sin-J: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}._pA8uJ ._sin-J:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._pA8uJ ._sin-J:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._pA8uJ ._sin-J:last-child,._pA8uJ ._sin-J:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._pA8uJ ._sin-J:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._pA8uJ ._sin-J._4Tfmc{flex-shrink:1;min-width:40px;z-index:0}._pA8uJ ._sin-J._4Tfmc._tFw3c{flex-grow:1}._pA8uJ ._sin-J:focus{z-index:20}";
|
|
4
|
+
var styles = {"addon":"_Z10U1","small":"_-4CEG","inputGroup":"_pA8uJ","full":"_tFw3c","inputGroupElement":"_sin-J","input":"_4Tfmc"};
|
|
5
|
+
var stylesheet="._Z10U1{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._Z10U1._-4CEG{height:26px;min-height:26px;padding:5px 8px}._pA8uJ{display:flex;align-items:stretch}._pA8uJ._tFw3c{width:100%}._pA8uJ ._sin-J{margin:0;position:relative;flex-shrink:0;z-index:10}._pA8uJ ._sin-J: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}._pA8uJ ._sin-J:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._pA8uJ ._sin-J:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._pA8uJ ._sin-J:last-child,._pA8uJ ._sin-J:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._pA8uJ ._sin-J:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._pA8uJ ._sin-J._4Tfmc{flex-shrink:1;min-width:40px;z-index:0}._pA8uJ ._sin-J._4Tfmc._tFw3c{flex-grow:1}._pA8uJ ._sin-J:focus{z-index:20}";
|
|
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 };
|