@qualtrics/ui-react 2.39.1 → 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 +29 -0
- package/dist/__shared/cjs/{index-b634ed40.js → index-de17a028.js} +268 -195
- package/dist/__shared/cjs/{index-f5328e70.js → index-ef29a7f6.js} +4 -4
- 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/Checkbox.js +6 -2
- 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/BaseMenu.js +2 -1
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +4 -3
- package/dist/components/NewMenu/parts/MenuSpinner.js +2 -1
- 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/QuickSearch.js +2 -1
- 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/components/AISpinningTopFilledIcon.js +1 -1
- 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/AdvancedTable.js +15 -8
- 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/Hooks/usePaneSearch.js +2 -1
- 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 +8 -4
- package/dist/next/index.js +67 -59
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +2 -1
- package/next/package.json +3 -2
- package/package.json +11 -10
|
@@ -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 = {
|
|
@@ -95,7 +95,7 @@ var AISparkIcon = /*#__PURE__*/createIconComponent('AISpark', '<path d="M12.75 3
|
|
|
95
95
|
var AISpinningTopIcon = /*#__PURE__*/createIconComponent('AISpinningTop', '<g clip-path="url(#clip0_10914_16926)"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.7463 2.92537C12.7079 2.54197 12.3853 2.25 12 2.25C11.6147 2.25 11.2921 2.54197 11.2537 2.92537L10.7215 8.24754C10.4811 10.6513 8.63148 12.5807 6.24002 12.9224L3.89393 13.2575C3.52445 13.3103 3.25 13.6268 3.25 14C3.25 14.3732 3.52445 14.6897 3.89393 14.7425L6.69151 15.1421C8.89505 15.4569 10.6606 17.1271 11.0971 19.3097L11.2646 20.1471C11.3347 20.4977 11.6425 20.75 12 20.75C12.3575 20.75 12.6653 20.4977 12.7354 20.1471L12.9029 19.3097C13.3394 17.127 15.1049 15.4569 17.3085 15.1421L20.1061 14.7424C20.4756 14.6897 20.75 14.3732 20.75 14C20.75 13.6267 20.4756 13.3103 20.1061 13.2575L17.76 12.9224C15.3685 12.5807 13.5189 10.6513 13.2785 8.24752L12.7463 2.92537ZM6.03033 8.96967C5.73744 8.67678 5.26256 8.67678 4.96967 8.96967C4.67678 9.26256 4.67678 9.73744 4.96967 10.0303L5.96967 11.0303C6.26256 11.3232 6.73744 11.3232 7.03033 11.0303C7.32322 10.7374 7.32322 10.2626 7.03033 9.96967L6.03033 8.96967ZM19.0303 10.0303C19.3232 9.73744 19.3232 9.26256 19.0303 8.96967C18.7374 8.67678 18.2626 8.67678 17.9697 8.96967L16.9697 9.96967C16.6768 10.2626 16.6768 10.7374 16.9697 11.0303C17.2626 11.3232 17.7374 11.3232 18.0303 11.0303L19.0303 10.0303ZM7.03033 18.0303C7.32322 17.7374 7.32322 17.2626 7.03033 16.9697C6.73744 16.6768 6.26256 16.6768 5.96967 16.9697L4.96967 17.9697C4.67678 18.2626 4.67678 18.7374 4.96967 19.0303C5.26256 19.3232 5.73744 19.3232 6.03033 19.0303L7.03033 18.0303ZM18.0303 16.9697C17.7374 16.6768 17.2626 16.6768 16.9697 16.9697C16.6768 17.2626 16.6768 17.7374 16.9697 18.0303L17.9697 19.0303C18.2626 19.3232 18.7374 19.3232 19.0303 19.0303C19.3232 18.7374 19.3232 18.2626 19.0303 17.9697L18.0303 16.9697Z"/></g><defs><clipPath id="clip0_10914_16926"><rect width="24" height="24"/></clipPath></defs>');
|
|
96
96
|
|
|
97
97
|
/* THIS FILE IS AUTO-GENERATED */
|
|
98
|
-
var AISpinningTopFilledIcon = /*#__PURE__*/createIconComponent('AISpinningTopFilled', '<path fill-rule="evenodd" clip-rule="evenodd" d="
|
|
98
|
+
var AISpinningTopFilledIcon = /*#__PURE__*/createIconComponent('AISpinningTopFilled', '<path fill-rule="evenodd" clip-rule="evenodd" d="M12.7463 2.92537C12.7079 2.54197 12.3853 2.25 12 2.25C11.6147 2.25 11.2921 2.54197 11.2537 2.92537L10.7215 8.24754C10.4811 10.6513 8.63148 12.5807 6.24002 12.9224L3.89393 13.2575C3.52445 13.3103 3.25 13.6268 3.25 14C3.25 14.3732 3.52445 14.6897 3.89393 14.7425L6.69151 15.1421C8.89505 15.4569 10.6606 17.1271 11.0971 19.3097L11.2646 20.1471C11.3347 20.4977 11.6425 20.75 12 20.75C12.3575 20.75 12.6653 20.4977 12.7354 20.1471L12.9029 19.3097C13.3394 17.127 15.1049 15.4569 17.3085 15.1421L20.1061 14.7424C20.4756 14.6897 20.75 14.3732 20.75 14C20.75 13.6267 20.4756 13.3103 20.1061 13.2575L17.76 12.9224C15.3685 12.5807 13.5189 10.6513 13.2785 8.24752L12.7463 2.92537ZM6.03033 8.96967C5.73744 8.67678 5.26256 8.67678 4.96967 8.96967C4.67678 9.26256 4.67678 9.73744 4.96967 10.0303L5.96967 11.0303C6.26256 11.3232 6.73744 11.3232 7.03033 11.0303C7.32322 10.7374 7.32322 10.2626 7.03033 9.96967L6.03033 8.96967ZM19.0303 10.0303C19.3232 9.73744 19.3232 9.26256 19.0303 8.96967C18.7374 8.67678 18.2626 8.67678 17.9697 8.96967L16.9697 9.96967C16.6768 10.2626 16.6768 10.7374 16.9697 11.0303C17.2626 11.3232 17.7374 11.3232 18.0303 11.0303L19.0303 10.0303ZM7.03033 18.0303C7.32322 17.7374 7.32322 17.2626 7.03033 16.9697C6.73744 16.6768 6.26256 16.6768 5.96967 16.9697L4.96967 17.9697C4.67678 18.2626 4.67678 18.7374 4.96967 19.0303C5.26256 19.3232 5.73744 19.3232 6.03033 19.0303L7.03033 18.0303ZM18.0303 16.9697C17.7374 16.6768 17.2626 16.6768 16.9697 16.9697C16.6768 17.2626 16.6768 17.7374 16.9697 18.0303L17.9697 19.0303C18.2626 19.3232 18.7374 19.3232 19.0303 19.0303C19.3232 18.7374 19.3232 18.2626 19.0303 17.9697L18.0303 16.9697Z" fill="url(#paint0_linear_10932_9134)"/><defs><linearGradient id="paint0_linear_10932_9134" x1="15.3167" y1="18.5833" x2="6.14257" y2="6.50781" gradientUnits="userSpaceOnUse"><stop stop-color="#5F1AE5"/><stop offset="0.348066" stop-color="#2179F9"/><stop offset="0.637516" stop-color="#1EC7F7"/><stop offset="1" stop-color="#21DBAA"/></linearGradient></defs>');
|
|
99
99
|
|
|
100
100
|
/* THIS FILE IS AUTO-GENERATED */
|
|
101
101
|
var AccessibilityIcon = /*#__PURE__*/createIconComponent('Accessibility', '<path d="M13.5 6C13.5 6.82843 12.8284 7.5 12 7.5C11.1716 7.5 10.5 6.82843 10.5 6C10.5 5.17157 11.1716 4.5 12 4.5C12.8284 4.5 13.5 5.17157 13.5 6Z"/><path d="M6.75465 8.91724C6.8004 8.50556 7.17121 8.20891 7.58289 8.25465L12.0001 8.74545L16.4172 8.25465C16.8289 8.20891 17.1997 8.50556 17.2455 8.91724C17.2912 9.32892 16.9946 9.69974 16.5829 9.74548L12.7501 10.1713V13.2183L16.0645 17.0062C16.3373 17.3179 16.3057 17.7917 15.9939 18.0645C15.6822 18.3373 15.2084 18.3057 14.9356 17.9939L12.0001 14.639L9.0645 17.9939C8.79174 18.3057 8.31791 18.3373 8.00619 18.0645C7.69446 17.7917 7.66287 17.3179 7.93563 17.0062L11.2501 13.2183V10.1713L7.41724 9.74548C7.00556 9.69974 6.70891 9.32892 6.75465 8.91724Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12 1.25C6.06294 1.25 1.25 6.06294 1.25 12C1.25 17.9371 6.06294 22.75 12 22.75C17.9371 22.75 22.75 17.9371 22.75 12C22.75 6.06294 17.9371 1.25 12 1.25ZM2.75 12C2.75 6.89137 6.89137 2.75 12 2.75C17.1086 2.75 21.25 6.89137 21.25 12C21.25 17.1086 17.1086 21.25 12 21.25C6.89137 21.25 2.75 17.1086 2.75 12Z"/>');
|
|
@@ -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 };
|
|
@@ -9,11 +9,13 @@ import '../../utils/index.js';
|
|
|
9
9
|
import '../../hooks/index.js';
|
|
10
10
|
import FormFieldWrapper from '../../next/Form/FormFields/FormFieldWrapper.js';
|
|
11
11
|
import useFormField from '../../next/Form/useFormField.js';
|
|
12
|
+
import '../../utils/getSubDataTestId/index.js';
|
|
12
13
|
import useId from '../../hooks/useId/useId.js';
|
|
13
14
|
import concatIds from '../../utils/concatIds/concatIds.js';
|
|
14
15
|
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
15
16
|
import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
16
17
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
18
|
+
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
17
19
|
|
|
18
20
|
const Checkbox = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
19
21
|
var _ref2, _ref3;
|
|
@@ -81,7 +83,8 @@ const Checkbox = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
81
83
|
}, rest), /*#__PURE__*/React__default.createElement("span", {
|
|
82
84
|
className: styles.checkboxField
|
|
83
85
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
84
|
-
className: styles.checkbox
|
|
86
|
+
className: styles.checkbox,
|
|
87
|
+
"data-testid": dataTestId
|
|
85
88
|
}, /*#__PURE__*/React__default.createElement("input", _extends({}, inputProps, {
|
|
86
89
|
name: name !== null && name !== void 0 ? name : inputProps === null || inputProps === void 0 ? void 0 : inputProps.name,
|
|
87
90
|
className: classNames(styles.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className),
|
|
@@ -103,7 +106,8 @@ const Checkbox = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
103
106
|
disabled: disabled
|
|
104
107
|
}))), label && /*#__PURE__*/React__default.createElement(Label, {
|
|
105
108
|
htmlFor: (_ref3 = id !== null && id !== void 0 ? id : inputProps === null || inputProps === void 0 ? void 0 : inputProps.id) !== null && _ref3 !== void 0 ? _ref3 : inputId,
|
|
106
|
-
className: styles.checkboxLabel
|
|
109
|
+
className: styles.checkboxLabel,
|
|
110
|
+
"data-testid": getSubDataTestId(dataTestId, 'label')
|
|
107
111
|
}, label)));
|
|
108
112
|
});
|
|
109
113
|
|
|
@@ -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
|