@qualtrics/ui-react 2.40.0 → 2.42.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-a0cddeb7.js → index-2f9f9a05.js} +269 -193
- package/dist/__shared/cjs/{index-65202875.js → index-ec90a05b.js} +7 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox.js +4 -5
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +12 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownOption.js +8 -5
- package/dist/components/Dropdown/DropdownSearch.js +7 -31
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/IconTypes.js +1 -0
- 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/Modal.js +10 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +4 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +4 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/A11yHelpersContext.js +81 -0
- package/dist/components/UIProvider/UIProvider.js +4 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/useOverlay.js +2 -0
- 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/CloudUploadIcon.js +6 -0
- package/dist/icons/index.d.ts +2 -0
- package/dist/icons/index.es.js +1 -0
- package/dist/icons/index.js +2 -1
- package/dist/index.d.ts +4 -3
- package/dist/index.es.js +1 -1
- package/dist/index.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/Chat/ChatMessage.js +4 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +3 -5
- package/dist/next/Menu/MenuPane.js +4 -3
- package/dist/next/Menu/SubMenu.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +4 -4
- package/dist/next/index.js +53 -51
- 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 = "._FwPfb{flex-shrink:0}";
|
|
41
|
+
var styles = {"icon":"_FwPfb"};
|
|
42
|
+
var stylesheet="._FwPfb{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 = {
|
|
@@ -382,6 +382,9 @@ var ClosePanelLeftIcon = /*#__PURE__*/createIconComponent('ClosePanelLeft', '<pa
|
|
|
382
382
|
/* THIS FILE IS AUTO-GENERATED */
|
|
383
383
|
var ClosePanelRightIcon = /*#__PURE__*/createIconComponent('ClosePanelRight', '<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 5C2.25 4.0335 3.0335 3.25 4 3.25L20 3.25C20.9665 3.25 21.75 4.0335 21.75 5L21.75 19C21.75 19.9665 20.9665 20.75 20 20.75L4 20.75C3.0335 20.75 2.25 19.9665 2.25 19V5ZM12.2677 19.25L4 19.25C3.86193 19.25 3.75 19.1381 3.75 19V5C3.75 4.86193 3.86193 4.75 4 4.75L12.2677 4.75C12.256 4.83165 12.25 4.91512 12.25 5L12.25 19C12.25 19.0849 12.256 19.1684 12.2677 19.25ZM14 4.75C13.8619 4.75 13.75 4.86193 13.75 5L13.75 19C13.75 19.1381 13.8619 19.25 14 19.25H20C20.1381 19.25 20.25 19.1381 20.25 19L20.25 5C20.25 4.86193 20.1381 4.75 20 4.75L14 4.75ZM6.96967 9.46967C7.26256 9.17678 7.73744 9.17678 8.03033 9.46967L10.0303 11.4697C10.171 11.6103 10.25 11.8011 10.25 12C10.25 12.1989 10.171 12.3897 10.0303 12.5303L8.03033 14.5303C7.73744 14.8232 7.26256 14.8232 6.96967 14.5303C6.67678 14.2374 6.67678 13.7626 6.96967 13.4697L8.43934 12L6.96967 10.5303C6.67678 10.2374 6.67678 9.76256 6.96967 9.46967Z"/>');
|
|
384
384
|
|
|
385
|
+
/* THIS FILE IS AUTO-GENERATED */
|
|
386
|
+
var CloudUploadIcon = /*#__PURE__*/createIconComponent('CloudUpload', '<path fill-rule="evenodd" clip-rule="evenodd" d="M12.3875 13.9727C12.7674 13.9727 13.0754 14.2806 13.0754 14.6605V21.4471C13.0754 21.827 12.7674 22.1349 12.3875 22.1349C12.0077 22.1349 11.6997 21.827 11.6997 21.4471V14.6605C11.6997 14.2806 12.0077 13.9727 12.3875 13.9727Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.9013 13.1741C12.1699 12.9055 12.6054 12.9055 12.874 13.1741L15.7018 16.0019C15.9704 16.2705 15.9704 16.706 15.7018 16.9746C15.4332 17.2432 14.9977 17.2432 14.729 16.9746L12.3877 14.6332L10.0463 16.9746C9.77765 17.2432 9.34214 17.2432 9.07353 16.9746C8.80492 16.706 8.80492 16.2705 9.07353 16.0019L11.9013 13.1741Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.3434 6.28262C14.4345 3.62976 11.8545 1.8462 8.98144 2.01047C5.79767 2.19251 3.24398 4.70988 3.01637 7.89072C2.78876 11.0716 4.958 13.9269 8.08341 14.5604C8.45572 14.6359 8.81871 14.3952 8.89417 14.0229C8.96964 13.6506 8.729 13.2876 8.35669 13.2122C5.90908 12.716 4.21027 10.4799 4.38852 7.98891C4.56676 5.49789 6.56665 3.52644 9.05997 3.38389C11.5533 3.24133 13.7648 4.97198 14.2258 7.42645C14.2689 7.65541 14.4248 7.84704 14.6403 7.93563C14.8557 8.02422 15.1014 7.99774 15.293 7.86527C16.3513 7.1336 17.7592 7.16149 18.7877 7.9345C19.8162 8.7075 20.2345 10.0521 19.826 11.2721C19.4175 12.4921 18.2739 13.3137 16.9873 13.3116C16.6074 13.3109 16.2989 13.6183 16.2983 13.9982C16.2976 14.3781 16.6051 14.6866 16.9849 14.6872C18.8638 14.6904 20.5339 13.4906 21.1304 11.7089C21.727 9.92718 21.1162 7.96366 19.6142 6.8348C18.3691 5.89905 16.7434 5.71099 15.3434 6.28262Z"/>');
|
|
387
|
+
|
|
385
388
|
/* THIS FILE IS AUTO-GENERATED */
|
|
386
389
|
var CloudyIcon = /*#__PURE__*/createIconComponent('Cloudy', '<path fill-rule="evenodd" clip-rule="evenodd" d="M9.1803 7.21587C10.1272 5.8478 11.7082 4.9502 13.5 4.9502C16.3407 4.9502 18.6545 7.20641 18.7471 10.0246C20.4602 10.371 21.75 11.885 21.75 13.7002C21.75 15.7713 20.0711 17.4502 18 17.4502H6C3.92893 17.4502 2.25 15.7713 2.25 13.7002C2.25 11.8794 3.54768 10.3617 5.26863 10.0215C5.25633 9.916 5.25 9.80878 5.25 9.7002C5.25 8.18141 6.48122 6.9502 8 6.9502C8.42224 6.9502 8.82261 7.04566 9.1803 7.21587ZM13.5 6.4502C11.9978 6.4502 10.7004 7.33346 10.1016 8.61225C9.99763 8.83436 9.7916 8.99159 9.54992 9.03329C9.30824 9.07499 9.06143 8.99589 8.88902 8.82147C8.66157 8.59139 8.34797 8.4502 8 8.4502C7.30964 8.4502 6.75 9.00984 6.75 9.7002C6.75 9.92912 6.81085 10.1416 6.91677 10.3247C7.05099 10.5567 7.05117 10.8427 6.91724 11.0749C6.78331 11.3071 6.53563 11.4502 6.26756 11.4502H6C4.75736 11.4502 3.75 12.4576 3.75 13.7002C3.75 14.9428 4.75736 15.9502 6 15.9502H18C19.2426 15.9502 20.25 14.9428 20.25 13.7002C20.25 12.4576 19.2426 11.4502 18 11.4502H17.9725C17.7593 11.4502 17.5561 11.3594 17.4138 11.2005C17.2716 11.0417 17.2036 10.8298 17.2271 10.6178C17.2422 10.4809 17.25 10.3416 17.25 10.2002C17.25 8.12913 15.5711 6.4502 13.5 6.4502Z"/>');
|
|
387
390
|
|
|
@@ -1749,6 +1752,7 @@ exports.CloseCaptioningIcon = CloseCaptioningIcon;
|
|
|
1749
1752
|
exports.CloseIcon = CloseIcon;
|
|
1750
1753
|
exports.ClosePanelLeftIcon = ClosePanelLeftIcon;
|
|
1751
1754
|
exports.ClosePanelRightIcon = ClosePanelRightIcon;
|
|
1755
|
+
exports.CloudUploadIcon = CloudUploadIcon;
|
|
1752
1756
|
exports.CloudyIcon = CloudyIcon;
|
|
1753
1757
|
exports.CoachingPrioritiesIcon = CoachingPrioritiesIcon;
|
|
1754
1758
|
exports.CodeBracketsIcon = CodeBracketsIcon;
|
|
@@ -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 = "._uMPjF{width:100%;display:flex;flex-direction:column}._uMPjF._xiHy6{grid-gap:20px;gap:20px}._QftUc{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}._QftUc ._0Pb0S{margin-top:-3px}._UbTab{flex:1}._koBk0{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._9LoFG ._QftUc{border-radius:4px}._9LoFG ._QftUc:hover:not(._---g1){background-color:rgba(50,54,58,.08)}._9LoFG ._QftUc:active:not(._---g1){background-color:rgba(50,54,58,.11)}._n7y6c ._QftUc{font-weight:400;padding-left:12px;border-top:1px solid #eee}._n7y6c ._QftUc:hover:not(._---g1){background-color:rgba(50,54,58,.08)}._n7y6c ._QftUc:active:not(._---g1){background-color:rgba(50,54,58,.11)}._xiHy6 ._d4gvQ{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._xiHy6 ._d4gvQ._P0SWm{box-shadow:none}._xiHy6 ._d4gvQ._P0SWm ._QftUc{border-radius:6px}._xiHy6 ._QftUc{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._xiHy6 ._QftUc ._UbTab{padding-left:20px}._xiHy6 ._QftUc:hover:not(disabled){border:1px solid #c2c2c2}._xiHy6 ._QftUc:active:not(._---g1){border:1px solid #898989}._xiHy6 ._koBk0{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._P0SWm ._koBk0{display:none}._---g1{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._QftUc.focus-visible,._QftUc:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._QftUc.focus-visible:before,._QftUc:focus-visible:before{z-index:1}._n7y6c ._QftUc.focus-visible,._n7y6c ._QftUc:focus-visible{border-color:transparent}";
|
|
4
|
+
var AccordionStyles = {"accordion":"_uMPjF","block-variant":"_xiHy6","header":"_QftUc","headerIcon":"_0Pb0S","title":"_UbTab","panel":"_koBk0","default-variant":"_9LoFG","disabled":"_---g1","outlined-variant":"_n7y6c","section":"_d4gvQ","closed":"_P0SWm"};
|
|
5
|
+
var stylesheet="._uMPjF{width:100%;display:flex;flex-direction:column}._uMPjF._xiHy6{grid-gap:20px;gap:20px}._QftUc{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}._QftUc ._0Pb0S{margin-top:-3px}._UbTab{flex:1}._koBk0{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._9LoFG ._QftUc{border-radius:4px}._9LoFG ._QftUc:hover:not(._---g1){background-color:rgba(50,54,58,.08)}._9LoFG ._QftUc:active:not(._---g1){background-color:rgba(50,54,58,.11)}._n7y6c ._QftUc{font-weight:400;padding-left:12px;border-top:1px solid #eee}._n7y6c ._QftUc:hover:not(._---g1){background-color:rgba(50,54,58,.08)}._n7y6c ._QftUc:active:not(._---g1){background-color:rgba(50,54,58,.11)}._xiHy6 ._d4gvQ{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._xiHy6 ._d4gvQ._P0SWm{box-shadow:none}._xiHy6 ._d4gvQ._P0SWm ._QftUc{border-radius:6px}._xiHy6 ._QftUc{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._xiHy6 ._QftUc ._UbTab{padding-left:20px}._xiHy6 ._QftUc:hover:not(disabled){border:1px solid #c2c2c2}._xiHy6 ._QftUc:active:not(._---g1){border:1px solid #898989}._xiHy6 ._koBk0{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._P0SWm ._koBk0{display:none}._---g1{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._QftUc.focus-visible,._QftUc:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._QftUc.focus-visible:before,._QftUc:focus-visible:before{z-index:1}._n7y6c ._QftUc.focus-visible,._n7y6c ._QftUc: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 = "._i6ODR{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}._i6ODR._HfL-H{padding:0 8px;height:26px;min-height:26px}._i6ODR._D-Oed{display:block;width:100%}._i6ODR._POnc5{cursor:not-allowed}._i6ODR:active:focus,._i6ODR:focus{outline:none}._i6ODR._R7r5p{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._i6ODR._R7r5p:hover:not(._POnc5){background-color:#eee}._i6ODR._R7r5p:active:not(._POnc5){background-color:#e5e5e5}._i6ODR._R7r5p._POnc5{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)}._i6ODR._21-Kk{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._i6ODR._21-Kk:hover:not(._POnc5){background-color:#085caf;border-color:#085caf}._i6ODR._21-Kk:active:not(._POnc5){background-color:#0854a1;border-color:#0854a1}._i6ODR._21-Kk._POnc5{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._i6ODR._RugHw{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._i6ODR._RugHw:hover:not(._POnc5){background-color:#eef5fc}._i6ODR._RugHw:active:not(._POnc5){background-color:#e1edf9}._i6ODR._RugHw._POnc5{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)}._i6ODR._-X8C6{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._i6ODR._-X8C6:hover:not(._POnc5){background-color:#eef5fc;border-color:#eef5fc}._i6ODR._-X8C6:active:not(._POnc5){background-color:#e1edf9;border-color:#e1edf9}._i6ODR._-X8C6._POnc5{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)}._i6ODR._-p2Am{color:#0b6ed0;fill:#0b6ed0;padding:0}._i6ODR._-p2Am:hover:not(._POnc5){color:#085caf}._i6ODR._-p2Am:active:not(._POnc5){color:#0854a1}._i6ODR._-p2Am._POnc5{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._i6ODR._BfV3-{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._i6ODR._BfV3-:hover:not(._POnc5){background-color:#ffecec}._i6ODR._BfV3-:active:not(._POnc5){background-color:#ffdbdb}._i6ODR._BfV3-._POnc5{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)}._i6ODR.focus-visible,._i6ODR:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var buttonStyles = {"btn":"_i6ODR","small":"_HfL-H","full":"_D-Oed","disabled":"_POnc5","default":"_R7r5p","primary":"_21-Kk","secondary":"_RugHw","tertiary":"_-X8C6","link":"_-p2Am","danger":"_BfV3-"};
|
|
5
|
+
var stylesheet="._i6ODR{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}._i6ODR._HfL-H{padding:0 8px;height:26px;min-height:26px}._i6ODR._D-Oed{display:block;width:100%}._i6ODR._POnc5{cursor:not-allowed}._i6ODR:active:focus,._i6ODR:focus{outline:none}._i6ODR._R7r5p{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._i6ODR._R7r5p:hover:not(._POnc5){background-color:#eee}._i6ODR._R7r5p:active:not(._POnc5){background-color:#e5e5e5}._i6ODR._R7r5p._POnc5{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)}._i6ODR._21-Kk{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._i6ODR._21-Kk:hover:not(._POnc5){background-color:#085caf;border-color:#085caf}._i6ODR._21-Kk:active:not(._POnc5){background-color:#0854a1;border-color:#0854a1}._i6ODR._21-Kk._POnc5{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._i6ODR._RugHw{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._i6ODR._RugHw:hover:not(._POnc5){background-color:#eef5fc}._i6ODR._RugHw:active:not(._POnc5){background-color:#e1edf9}._i6ODR._RugHw._POnc5{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)}._i6ODR._-X8C6{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._i6ODR._-X8C6:hover:not(._POnc5){background-color:#eef5fc;border-color:#eef5fc}._i6ODR._-X8C6:active:not(._POnc5){background-color:#e1edf9;border-color:#e1edf9}._i6ODR._-X8C6._POnc5{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)}._i6ODR._-p2Am{color:#0b6ed0;fill:#0b6ed0;padding:0}._i6ODR._-p2Am:hover:not(._POnc5){color:#085caf}._i6ODR._-p2Am:active:not(._POnc5){color:#0854a1}._i6ODR._-p2Am._POnc5{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._i6ODR._BfV3-{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._i6ODR._BfV3-:hover:not(._POnc5){background-color:#ffecec}._i6ODR._BfV3-:active:not(._POnc5){background-color:#ffdbdb}._i6ODR._BfV3-._POnc5{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)}._i6ODR.focus-visible,._i6ODR: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 = "._IlkSP{display:inline-flex;align-items:stretch}._IlkSP._3PLbN{width:100%}._IlkSP ._zGkka{margin:0;min-width:0}._IlkSP ._zGkka:focus{z-index:20}._IlkSP ._zGkka:hover{z-index:10}._IlkSP ._zGkka._F4i29{border:none}._IlkSP ._zGkka._3PLbN{display:inline-flex;width:auto;flex-grow:1}._IlkSP ._zGkka: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}._IlkSP ._zGkka:first-child._F4i29{border-right:1px solid #fff}._IlkSP ._zGkka:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._IlkSP ._zGkka:not(:last-child):not(:first-child)._F4i29{border-left:1px solid #fff;border-right:1px solid #fff}._IlkSP ._zGkka:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._IlkSP ._zGkka:last-child._F4i29{border-left:1px solid #fff}._IlkSP ._zGkka: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":"_IlkSP","full":"_3PLbN","buttonGroupElement":"_zGkka","primary":"_F4i29"};
|
|
5
|
+
var stylesheet="._IlkSP{display:inline-flex;align-items:stretch}._IlkSP._3PLbN{width:100%}._IlkSP ._zGkka{margin:0;min-width:0}._IlkSP ._zGkka:focus{z-index:20}._IlkSP ._zGkka:hover{z-index:10}._IlkSP ._zGkka._F4i29{border:none}._IlkSP ._zGkka._3PLbN{display:inline-flex;width:auto;flex-grow:1}._IlkSP ._zGkka: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}._IlkSP ._zGkka:first-child._F4i29{border-right:1px solid #fff}._IlkSP ._zGkka:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._IlkSP ._zGkka:not(:last-child):not(:first-child)._F4i29{border-left:1px solid #fff;border-right:1px solid #fff}._IlkSP ._zGkka:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._IlkSP ._zGkka:last-child._F4i29{border-left:1px solid #fff}._IlkSP ._zGkka: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 = "._Sf75k{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._Sf75k,._TLqi4{cursor:pointer;height:16px;width:16px}._TLqi4{position:absolute;opacity:0;z-index:10}._TLqi4:disabled{cursor:not-allowed}._sULVA{color:#32363a;display:flex;align-items:center;cursor:pointer}._czlgt{cursor:auto;color:hsla(0,0%,53.7%,.4)}._JmVjI{margin-right:12px;flex-shrink:0}._1LwDs{position:absolute;top:0;left:0}._oujmB{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}._oujmB:not(._Mhwn7):hover._Olgul,._TLqi4:hover ._oujmB:not(._Mhwn7)._Olgul{background-color:#085caf}._oujmB:not(._Mhwn7):hover:not(._Olgul),._TLqi4:hover ._oujmB:not(._Mhwn7):not(._Olgul){border-color:#0b6ed0}._oujmB ._zDtLO{fill:#0b6ed0;fill-opacity:0}._oujmB._Olgul ._zDtLO{fill-opacity:1}._oujmB._Olgul:not(._Mhwn7){border-color:transparent;background-color:#0b6ed0}._oujmB._Olgul:not(._Mhwn7) ._zDtLO{fill:#fff}._oujmB._Mhwn7{opacity:.4}._oujmB ._fDaXF{position:absolute;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._iTigY{color:#32363a;margin-left:12px}._pUZxf{display:flex;align-items:center}._pUZxf:has(input:disabled) ._iTigY{color:rgba(50,54,58,.4)}._pUZxf:not(:has(input:disabled)) ._iTigY{cursor:pointer}._TLqi4.focus-visible~._1LwDs>._oujmB,._TLqi4:focus-visible~._1LwDs>._oujmB{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"checkbox":"_Sf75k","input":"_TLqi4","label":"_sULVA","labelDisabled":"_czlgt","wrappedInput":"_JmVjI","visualCheck":"_1LwDs","check":"_oujmB","disabled":"_Mhwn7","checked":"_Olgul","checkIcon":"_zDtLO","mixed":"_fDaXF","checkboxLabel":"_iTigY","checkboxField":"_pUZxf"};
|
|
5
|
+
var stylesheet="._Sf75k{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._Sf75k,._TLqi4{cursor:pointer;height:16px;width:16px}._TLqi4{position:absolute;opacity:0;z-index:10}._TLqi4:disabled{cursor:not-allowed}._sULVA{color:#32363a;display:flex;align-items:center;cursor:pointer}._czlgt{cursor:auto;color:hsla(0,0%,53.7%,.4)}._JmVjI{margin-right:12px;flex-shrink:0}._1LwDs{position:absolute;top:0;left:0}._oujmB{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}._oujmB:not(._Mhwn7):hover._Olgul,._TLqi4:hover ._oujmB:not(._Mhwn7)._Olgul{background-color:#085caf}._oujmB:not(._Mhwn7):hover:not(._Olgul),._TLqi4:hover ._oujmB:not(._Mhwn7):not(._Olgul){border-color:#0b6ed0}._oujmB ._zDtLO{fill:#0b6ed0;fill-opacity:0}._oujmB._Olgul ._zDtLO{fill-opacity:1}._oujmB._Olgul:not(._Mhwn7){border-color:transparent;background-color:#0b6ed0}._oujmB._Olgul:not(._Mhwn7) ._zDtLO{fill:#fff}._oujmB._Mhwn7{opacity:.4}._oujmB ._fDaXF{position:absolute;height:10px;width:10px;border-radius:2px;background-color:#0b6ed0}._iTigY{color:#32363a;margin-left:12px}._pUZxf{display:flex;align-items:center}._pUZxf:has(input:disabled) ._iTigY{color:rgba(50,54,58,.4)}._pUZxf:not(:has(input:disabled)) ._iTigY{cursor:pointer}._TLqi4.focus-visible~._1LwDs>._oujmB,._TLqi4:focus-visible~._1LwDs>._oujmB{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 = "._DZHuh{display:flex;line-height:1.15}._DZHuh ._gbqzL{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._DZHuh ._gbqzL:hover:not(._hj3oa){background-color:#f5f5f5}._DZHuh ._gbqzL._hj3oa{cursor:not-allowed;fill:rgba(81,85,89,.4)}._DZHuh ._gbqzL:active:not(._hj3oa){background-color:#eee}._DZHuh ._MWg-t{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._DZHuh ._MWg-t._hj3oa{border-color:#d9d9d9}._DZHuh ._vZmuQ{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}._DZHuh ._oGpn3{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._DZHuh ._oGpn3._hj3oa{border-color:#d9d9d9}._DZHuh ._u29Ye{height:36px;border:1px solid #898989;border-width:1px 0}._DZHuh ._u29Ye._hj3oa{border-color:#d9d9d9}._DZHuh ._5VoqO{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._DZHuh ._9zeKx{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}._DZHuh ._9zeKx._WtBiv{color:#9d9fa1}._gbqzL.focus-visible,._gbqzL:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._0V-qZ{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}._0V-qZ ._v1T3I{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}._0V-qZ ._376sk{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}._0V-qZ ._CPngd{display:flex;justify-content:space-between;margin:12px 0}._0V-qZ ._CPngd._qx6Cf{margin-bottom:0}._0V-qZ ._rkhZ-{display:flex}._0V-qZ ._O3jdO{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._0V-qZ ._ApLoB{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._0V-qZ ._S6lfI{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}._0V-qZ ._HtAbA{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)}._0V-qZ ._HtAbA._10xqO{height:16px;margin-bottom:6px}._0V-qZ ._3ofDg{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}._0V-qZ ._3ofDg._10xqO{height:16px}._0V-qZ ._YeeuU{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}._0V-qZ ._FqHN-{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._0V-qZ ._38BJj{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}._0V-qZ ._gvGFY{display:flex;justify-content:space-between}._0V-qZ ._dRdQK{display:flex;flex-direction:column;align-items:center}._0V-qZ ._dRdQK._TJnF0{margin-left:4px}._0V-qZ ._CJe2L{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}._0V-qZ ._rcOMh{padding:3px 4px 3px 13px!important;width:78px}._0V-qZ ._s18o0{text-align:right;padding:3px 4px 3px 0!important;width:34px}._0V-qZ ._qhQoz{text-align:right;padding:3px 16px 3px 0!important;width:46px}._0V-qZ ._wZUeW{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}._0V-qZ ._x4ejc{line-height:22px}._0V-qZ ._2-R-v{display:flex}._0V-qZ ._NMGJ3{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._0V-qZ ._NMGJ3._4Jnep{margin-top:0}._0V-qZ ._FD54w{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._FPaQn{position:relative}._UpQsp{display:none}._x8uWy{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._376sk.focus-visible,._376sk: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}._3ofDg.focus-visible,._3ofDg:focus-visible,._38BJj.focus-visible,._38BJj:focus-visible,._FD54w.focus-visible,._FD54w:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"colorPicker":"_DZHuh","colorPickerButton":"_gbqzL","disabledButton":"_hj3oa","colorPickerButtonPreview":"_MWg-t","alphaBackground":"_vZmuQ","colorPickerButtonAlphaPreview":"_oGpn3","caretIcon":"_u29Ye","colorPickerInput":"_5VoqO","colorPickerInputDecoration":"_9zeKx","disabledDecoration":"_WtBiv","colorPickerFlyout":"_0V-qZ","saturationGrid":"_v1T3I","saturationLoop":"_376sk","sliderGroup":"_CPngd","removeBottomMargin":"_qx6Cf","sliderPreviewContainer":"_rkhZ-","sliderPreview":"_O3jdO","sliderPreviewAlpha":"_ApLoB","sliderPreviewAlphaBackground":"_S6lfI","hueSliderRail":"_HtAbA","alphaEnabled":"_10xqO","hueSliderThumb":"_3ofDg","alphaSliderRailBackground":"_YeeuU","alphaSliderRail":"_FqHN-","alphaSliderThumb":"_38BJj","hexInputGroup":"_gvGFY","hexInputContainer":"_dRdQK","rgbInputContainer":"_TJnF0","hexInputDecoration":"_CJe2L","hexInput":"_rcOMh","rgbInput":"_s18o0","alphaInput":"_qhQoz","alphaInputDecoration":"_wZUeW","inputLabel":"_x4ejc","rgbContainer":"_2-R-v","palette":"_NMGJ3","removeUpperMargin":"_4Jnep","swatch":"_FD54w","relativePositionContainer":"_FPaQn","hidden":"_UpQsp","hiddenLiveRegion":"_x8uWy"};
|
|
5
|
+
var stylesheet="._DZHuh{display:flex;line-height:1.15}._DZHuh ._gbqzL{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._DZHuh ._gbqzL:hover:not(._hj3oa){background-color:#f5f5f5}._DZHuh ._gbqzL._hj3oa{cursor:not-allowed;fill:rgba(81,85,89,.4)}._DZHuh ._gbqzL:active:not(._hj3oa){background-color:#eee}._DZHuh ._MWg-t{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._DZHuh ._MWg-t._hj3oa{border-color:#d9d9d9}._DZHuh ._vZmuQ{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}._DZHuh ._oGpn3{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._DZHuh ._oGpn3._hj3oa{border-color:#d9d9d9}._DZHuh ._u29Ye{height:36px;border:1px solid #898989;border-width:1px 0}._DZHuh ._u29Ye._hj3oa{border-color:#d9d9d9}._DZHuh ._5VoqO{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._DZHuh ._9zeKx{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}._DZHuh ._9zeKx._WtBiv{color:#9d9fa1}._gbqzL.focus-visible,._gbqzL:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._0V-qZ{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}._0V-qZ ._v1T3I{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}._0V-qZ ._376sk{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}._0V-qZ ._CPngd{display:flex;justify-content:space-between;margin:12px 0}._0V-qZ ._CPngd._qx6Cf{margin-bottom:0}._0V-qZ ._rkhZ-{display:flex}._0V-qZ ._O3jdO{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._0V-qZ ._ApLoB{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._0V-qZ ._S6lfI{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}._0V-qZ ._HtAbA{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)}._0V-qZ ._HtAbA._10xqO{height:16px;margin-bottom:6px}._0V-qZ ._3ofDg{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}._0V-qZ ._3ofDg._10xqO{height:16px}._0V-qZ ._YeeuU{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}._0V-qZ ._FqHN-{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._0V-qZ ._38BJj{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}._0V-qZ ._gvGFY{display:flex;justify-content:space-between}._0V-qZ ._dRdQK{display:flex;flex-direction:column;align-items:center}._0V-qZ ._dRdQK._TJnF0{margin-left:4px}._0V-qZ ._CJe2L{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}._0V-qZ ._rcOMh{padding:3px 4px 3px 13px!important;width:78px}._0V-qZ ._s18o0{text-align:right;padding:3px 4px 3px 0!important;width:34px}._0V-qZ ._qhQoz{text-align:right;padding:3px 16px 3px 0!important;width:46px}._0V-qZ ._wZUeW{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}._0V-qZ ._x4ejc{line-height:22px}._0V-qZ ._2-R-v{display:flex}._0V-qZ ._NMGJ3{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._0V-qZ ._NMGJ3._4Jnep{margin-top:0}._0V-qZ ._FD54w{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._FPaQn{position:relative}._UpQsp{display:none}._x8uWy{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._376sk.focus-visible,._376sk: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}._3ofDg.focus-visible,._3ofDg:focus-visible,._38BJj.focus-visible,._38BJj:focus-visible,._FD54w.focus-visible,._FD54w: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 = "._0SUi2{position:relative;display:inline-block}._xABQX{padding-right:36px}._xABQX._FWx5y{box-shadow:none!important;border:1px solid #898989!important}._qoCtK{margin-top:4px}._Uoysq{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._Uoysq:hover{background-color:rgba(50,54,58,.08)}._Uoysq:active{background-color:rgba(50,54,58,.11)}._Uoysq._-e3-s{transform:rotate(-180deg)}._Uoysq._J-dcu{opacity:.4}._vm80u{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}._J-dcu{cursor:not-allowed}._J-dcu:hover{background-color:transparent}";
|
|
4
|
+
var styles = {"combobox":"_0SUi2","comboboxInput":"_xABQX","ignoreFocusStyle":"_FWx5y","labelledInput":"_qoCtK","comboboxIcon":"_Uoysq","open":"_-e3-s","disabled":"_J-dcu","comboboxEmpty":"_vm80u"};
|
|
5
|
+
var stylesheet="._0SUi2{position:relative;display:inline-block}._xABQX{padding-right:36px}._xABQX._FWx5y{box-shadow:none!important;border:1px solid #898989!important}._qoCtK{margin-top:4px}._Uoysq{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._Uoysq:hover{background-color:rgba(50,54,58,.08)}._Uoysq:active{background-color:rgba(50,54,58,.11)}._Uoysq._-e3-s{transform:rotate(-180deg)}._Uoysq._J-dcu{opacity:.4}._vm80u{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}._J-dcu{cursor:not-allowed}._J-dcu: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 = "._k2UQ9{grid-area:configPane;position:relative;height:100%}._MLrRt{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}._X-Oet._iw5Hx ._MLrRt,._X-Oet:not(._mUNP1) ._MLrRt{-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)}._mUNP1 ._MLrRt{width:0}._iw5Hx._mUNP1 ._MLrRt{width:30px;cursor:pointer}._PD3lM{height:100%;position:relative;width:292px}._mUNP1 ._PD3lM,._X-Oet ._PD3lM{width:0}._iw5Hx._mUNP1 ._PD3lM,._iw5Hx._X-Oet ._PD3lM{width:30px}._bOZYo ._PD3lM{transition:width .5s}._PrTzn{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._mUNP1 ._PrTzn{visibility:hidden}._bOZYo ._PrTzn{visibility:visible}._PrTzn ._EqcAU{width:252px;margin-left:20px}._wRtTz{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._x8s0D{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._x8s0D *{font-weight:400;font-size:16px;margin:0}._DdFov{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._mUNP1 ._DdFov{left:0}._iw5Hx._mUNP1 ._DdFov{left:30px}._DdFov ._2nyQA{width:4px;height:100%}._DdFov:hover ._2nyQA,._iw5Hx._mUNP1 ._MLrRt:hover+._DdFov ._2nyQA{background-color:#9dc5ed}._DdFov:hover ._uatOc>span,._iw5Hx._mUNP1 ._MLrRt:hover+._DdFov ._uatOc>span{background-color:#0b6ed0;border-color:#0b6ed0}._DdFov:hover ._uatOc>span>svg,._iw5Hx._mUNP1 ._MLrRt:hover+._DdFov ._uatOc>span>svg{fill:#fff}._DdFov:hover ._uatOc:active>span,._iw5Hx._mUNP1 ._MLrRt:hover+._DdFov ._uatOc:active>span{background-color:#0854a1;border-color:#0854a1}._DdFov:hover ._uatOc:active>span>svg,._iw5Hx._mUNP1 ._MLrRt:hover+._DdFov ._uatOc:active>span>svg{fill:#fff}._DdFov ._uatOc{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}._DdFov ._uatOc:active>span{background-color:#0854a1;border-color:#0854a1}._DdFov ._uatOc:active>span>svg{fill:#fff}._DdFov ._uatOc>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._DdFov ._uatOc>span>svg{fill:#515559;border-radius:50%}._uatOc.focus-visible,._uatOc:focus-visible{border-color:#0a3f88}";
|
|
4
|
+
var styles = {"paneContainer":"_k2UQ9","paneContentContainer":"_MLrRt","unpinned":"_X-Oet","hidden":"_mUNP1","preview":"_iw5Hx","spacer":"_PD3lM","transitioning":"_bOZYo","paneContent":"_PrTzn","paneContentInner":"_EqcAU","header":"_wRtTz","title":"_x8s0D","clickableArea":"_DdFov","hoverBorder":"_2nyQA","toolbarPanelExpandCollapseButton":"_uatOc"};
|
|
5
|
+
var stylesheet="._k2UQ9{grid-area:configPane;position:relative;height:100%}._MLrRt{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}._X-Oet._iw5Hx ._MLrRt,._X-Oet:not(._mUNP1) ._MLrRt{-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)}._mUNP1 ._MLrRt{width:0}._iw5Hx._mUNP1 ._MLrRt{width:30px;cursor:pointer}._PD3lM{height:100%;position:relative;width:292px}._mUNP1 ._PD3lM,._X-Oet ._PD3lM{width:0}._iw5Hx._mUNP1 ._PD3lM,._iw5Hx._X-Oet ._PD3lM{width:30px}._bOZYo ._PD3lM{transition:width .5s}._PrTzn{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._mUNP1 ._PrTzn{visibility:hidden}._bOZYo ._PrTzn{visibility:visible}._PrTzn ._EqcAU{width:252px;margin-left:20px}._wRtTz{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._x8s0D{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._x8s0D *{font-weight:400;font-size:16px;margin:0}._DdFov{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._mUNP1 ._DdFov{left:0}._iw5Hx._mUNP1 ._DdFov{left:30px}._DdFov ._2nyQA{width:4px;height:100%}._DdFov:hover ._2nyQA,._iw5Hx._mUNP1 ._MLrRt:hover+._DdFov ._2nyQA{background-color:#9dc5ed}._DdFov:hover ._uatOc>span,._iw5Hx._mUNP1 ._MLrRt:hover+._DdFov ._uatOc>span{background-color:#0b6ed0;border-color:#0b6ed0}._DdFov:hover ._uatOc>span>svg,._iw5Hx._mUNP1 ._MLrRt:hover+._DdFov ._uatOc>span>svg{fill:#fff}._DdFov:hover ._uatOc:active>span,._iw5Hx._mUNP1 ._MLrRt:hover+._DdFov ._uatOc:active>span{background-color:#0854a1;border-color:#0854a1}._DdFov:hover ._uatOc:active>span>svg,._iw5Hx._mUNP1 ._MLrRt:hover+._DdFov ._uatOc:active>span>svg{fill:#fff}._DdFov ._uatOc{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}._DdFov ._uatOc:active>span{background-color:#0854a1;border-color:#0854a1}._DdFov ._uatOc:active>span>svg{fill:#fff}._DdFov ._uatOc>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._DdFov ._uatOc>span>svg{fill:#515559;border-radius:50%}._uatOc.focus-visible,._uatOc: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 = "._wa3Y-{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
4
|
+
var styles = {"divider":"_wa3Y-"};
|
|
5
|
+
var stylesheet="._wa3Y-{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 = "._jhhQd{max-width:100%;position:relative;display:inline-block}._LK-MC{width:100%}._tc8vX{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}._tc8vX:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._tc8vX:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._tc8vX:disabled,._tc8vX[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._tc8vX._BjMVQ{border-color:#b00}._tc8vX._BjMVQ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._tc8vX._nEKkt{min-width:120px;padding:0 4px 0 12px}._tc8vX._zWtOJ{margin-top:4px}._tc8vX._j4-DU:not([aria-disabled=true]):not(:disabled){color:#32363a}._tc8vX ._5TefW{min-height:10px}._tc8vX ._5TefW._Fi3RV{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._tc8vX ._5TefW._YEm4J{display:inline-flex;align-items:center}._tc8vX ._TXA-I{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._tc8vX ._TXA-I._3pXTT{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._tc8vX ._TXA-I._U6guZ{transform:rotate(-180deg)}._FauIt[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._Pqeyg{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}._WaTIZ{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}._zpyJd{fill:#515559}._o9gzK{margin:2px 12px 2px 0}._o9gzK._pzs6G>svg{border-color:#0b6ed0}._LVJa6{width:100%}._LVJa6 input:focus{box-shadow:unset;background-color:unset}._LVJa6._pzs6G input{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}";
|
|
4
|
+
var styles = {"container":"_jhhQd","formFieldWrapper":"_LK-MC","button":"_tc8vX","invalid":"_BjMVQ","hasText":"_nEKkt","labelled":"_zWtOJ","selected":"_j4-DU","buttonLabel":"_5TefW","isString":"_Fi3RV","isNode":"_YEm4J","icon":"_TXA-I","disabled":"_3pXTT","open":"_U6guZ","option":"_FauIt","search":"_Pqeyg","emptyOption":"_WaTIZ","searchIcon":"_zpyJd","checkbox":"_o9gzK","highlighted":"_pzs6G","searchInput":"_LVJa6"};
|
|
5
|
+
var stylesheet="._jhhQd{max-width:100%;position:relative;display:inline-block}._LK-MC{width:100%}._tc8vX{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}._tc8vX:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._tc8vX:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._tc8vX:disabled,._tc8vX[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._tc8vX._BjMVQ{border-color:#b00}._tc8vX._BjMVQ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._tc8vX._nEKkt{min-width:120px;padding:0 4px 0 12px}._tc8vX._zWtOJ{margin-top:4px}._tc8vX._j4-DU:not([aria-disabled=true]):not(:disabled){color:#32363a}._tc8vX ._5TefW{min-height:10px}._tc8vX ._5TefW._Fi3RV{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._tc8vX ._5TefW._YEm4J{display:inline-flex;align-items:center}._tc8vX ._TXA-I{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._tc8vX ._TXA-I._3pXTT{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._tc8vX ._TXA-I._U6guZ{transform:rotate(-180deg)}._FauIt[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._Pqeyg{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}._WaTIZ{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}._zpyJd{fill:#515559}._o9gzK{margin:2px 12px 2px 0}._o9gzK._pzs6G>svg{border-color:#0b6ed0}._LVJa6{width:100%}._LVJa6 input:focus{box-shadow:unset;background-color:unset}._LVJa6._pzs6G input{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -70,7 +70,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
70
70
|
const isHighlighted = highlightedIndex === myIndex && myIndex !== -1;
|
|
71
71
|
useEffect(() => {
|
|
72
72
|
if (isHighlighted) {
|
|
73
|
-
var _listRef$current, _listRef$current2
|
|
73
|
+
var _listRef$current, _listRef$current2;
|
|
74
74
|
if (isOpen && internalRef !== null && internalRef !== void 0 && internalRef.current && listRef !== null && listRef !== void 0 && listRef.current && ((_listRef$current = listRef.current) === null || _listRef$current === void 0 ? void 0 : _listRef$current.scrollHeight) > ((_listRef$current2 = listRef.current) === null || _listRef$current2 === void 0 ? void 0 : _listRef$current2.clientHeight)) {
|
|
75
75
|
const scrollBottom = listRef.current.clientHeight + listRef.current.scrollTop;
|
|
76
76
|
const elementBottom = internalRef.current.offsetTop + internalRef.current.offsetHeight;
|
|
@@ -80,9 +80,12 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
80
80
|
listRef.current.scrollTop = internalRef.current.offsetTop - (isSearchable ? searchHeight : 0);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
(
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
if (!isSearchable) {
|
|
84
|
+
var _internalRef$current;
|
|
85
|
+
(_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 || _internalRef$current.focus({
|
|
86
|
+
preventScroll: true
|
|
87
|
+
});
|
|
88
|
+
}
|
|
86
89
|
}
|
|
87
90
|
}, [isHighlighted, isOpen, listRef, isSearchable, searchHeight]);
|
|
88
91
|
return isOpen && isVisible ? /*#__PURE__*/React__default.createElement(FlyoutOption, _extends({}, rest, {
|
|
@@ -100,7 +103,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
100
103
|
onMouseLeave: wrapEvent(onMouseLeave, () => setHighlightedIndex(-1))
|
|
101
104
|
}), children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, isMultiSelect && /*#__PURE__*/React__default.createElement(Check, {
|
|
102
105
|
className: classNames(styles.checkbox, {
|
|
103
|
-
[styles.highlighted]: isHighlighted
|
|
106
|
+
[styles.highlighted]: isHighlighted
|
|
104
107
|
}),
|
|
105
108
|
checked: isSelected,
|
|
106
109
|
disabled: disabled
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React__default, { useRef,
|
|
1
|
+
import React__default, { useRef, useEffect } from 'react';
|
|
2
2
|
import styles from './Dropdown2.js';
|
|
3
3
|
import '../../utils/index.js';
|
|
4
4
|
import { useDropdownContext } from './DropdownContext.js';
|
|
@@ -21,10 +21,9 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
|
|
|
21
21
|
const inputRef = useRef(null);
|
|
22
22
|
const {
|
|
23
23
|
isOpen,
|
|
24
|
-
highlightedIndex,
|
|
25
|
-
setHighlightedIndex,
|
|
26
24
|
searchValue,
|
|
27
25
|
setSearchValue,
|
|
26
|
+
highlightedIndex,
|
|
28
27
|
setSearchHeight,
|
|
29
28
|
dataTestId,
|
|
30
29
|
listboxId
|
|
@@ -33,24 +32,17 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
|
|
|
33
32
|
var _inputRef$current;
|
|
34
33
|
return (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
35
34
|
};
|
|
36
|
-
const
|
|
35
|
+
const isHighlighted = highlightedIndex === 0;
|
|
36
|
+
useChildIndex({
|
|
37
37
|
element: internalRef.current,
|
|
38
38
|
isVisible: true
|
|
39
39
|
});
|
|
40
|
-
const isHighlighted = useMemo(() => highlightedIndex === myIndex && myIndex !== -1, [highlightedIndex, myIndex]);
|
|
41
40
|
useEffect(() => {
|
|
42
|
-
// for
|
|
43
|
-
if (
|
|
41
|
+
// for initial open with mouse
|
|
42
|
+
if (isOpen) {
|
|
44
43
|
var _inputRef$current2;
|
|
45
44
|
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.focus();
|
|
46
45
|
}
|
|
47
|
-
}, [isHighlighted]);
|
|
48
|
-
useEffect(() => {
|
|
49
|
-
// for initial open with mouse
|
|
50
|
-
if (isHighlighted && isOpen) {
|
|
51
|
-
var _inputRef$current3;
|
|
52
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.focus();
|
|
53
|
-
}
|
|
54
46
|
// Omitted `isHighlighted` because we don't want to focus the input on mouse enter.
|
|
55
47
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
56
48
|
}, [isOpen]);
|
|
@@ -60,32 +52,16 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
|
|
|
60
52
|
setSearchHeight((_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 ? void 0 : _internalRef$current.offsetHeight);
|
|
61
53
|
}
|
|
62
54
|
}, [isOpen, setSearchHeight]);
|
|
63
|
-
const handleKeyDown = e => {
|
|
64
|
-
const keysToAllow = ['ArrowDown', 'Escape', 'Tab', 'PageUp', 'Home', 'PageDown', 'End'];
|
|
65
|
-
if (!keysToAllow.includes(e.key)) {
|
|
66
|
-
// `Dropdown` component listens for keystrokes to highlight options with matching labels. We want the focus to remain in the search bar.
|
|
67
|
-
e.stopPropagation();
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
55
|
const handleSearch = e => {
|
|
71
56
|
const searchVal = e.currentTarget.value;
|
|
72
57
|
setSearchValue(searchVal);
|
|
73
58
|
};
|
|
74
|
-
const handleMouseEnter = () => {
|
|
75
|
-
setHighlightedIndex(myIndex);
|
|
76
|
-
};
|
|
77
|
-
const handleMouseLeave = () => {
|
|
78
|
-
setHighlightedIndex(-1);
|
|
79
|
-
};
|
|
80
59
|
return isOpen ? /*#__PURE__*/React__default.createElement("div", {
|
|
81
60
|
className: styles.search,
|
|
82
61
|
ref: mergeRefs(internalRef, ref),
|
|
83
|
-
onMouseEnter: handleMouseEnter,
|
|
84
|
-
onMouseLeave: handleMouseLeave,
|
|
85
62
|
onSelect: handleSelect
|
|
86
63
|
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
87
|
-
className: styles.searchInput,
|
|
88
|
-
onKeyDown: handleKeyDown,
|
|
64
|
+
className: "".concat(styles.searchInput, " ").concat(isHighlighted ? styles.highlighted : undefined),
|
|
89
65
|
onChange: handleSearch,
|
|
90
66
|
ref: inputRef,
|
|
91
67
|
placeholder: searchText,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var filePickerStyles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._429ne{position:relative}._429ne[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._429ne:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._QJNuO{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._HblQq{margin-left:16px;font-size:14px;color:#32363a}._HblQq ._n8n50{margin-right:16px}";
|
|
4
|
+
var filePickerStyles = {"container":"_429ne","fileInput":"_QJNuO","fileDetails":"_HblQq","fileName":"_n8n50"};
|
|
5
|
+
var stylesheet="._429ne{position:relative}._429ne[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._429ne:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._QJNuO{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._HblQq{margin-left:16px;font-size:14px;color:#32363a}._HblQq ._n8n50{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 = "._nurx3{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._bXzGI{color:#6a6d70;fill:#6a6d70}._BwnuH{color:#b00;fill:#b00}._NciBc,._nKeUY{margin-left:-2px;margin-right:3px}";
|
|
4
|
+
var styles = {"caption":"_nurx3","helperText":"_bXzGI","errorText":"_BwnuH","errorIcon":"_NciBc","readOnlyIcon":"_nKeUY"};
|
|
5
|
+
var stylesheet="._nurx3{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._bXzGI{color:#6a6d70;fill:#6a6d70}._BwnuH{color:#b00;fill:#b00}._NciBc,._nKeUY{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 };
|