@qualtrics/ui-react 2.7.0 → 2.8.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 +24 -0
- package/dist/__shared/cjs/{index-e73f4ed3.js → index-763e59c2.js} +3 -3
- package/dist/__shared/cjs/{index-3e06b39f.js → index-ce267a89.js} +195 -551
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button2.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/Controls.js +4 -4
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/{SelectMenu → NewMenu}/BaseMenu.js +1 -1
- package/dist/components/NewMenu/Menu/Menu.js +24 -0
- package/dist/components/NewMenu/Menu/index.js +1 -0
- package/dist/components/NewMenu/NewMenu.js +8 -0
- package/dist/components/{SelectMenu → NewMenu/SelectMenu}/SelectMenu.js +1 -1
- package/dist/components/NewMenu/SelectMenu/index.js +1 -0
- package/dist/components/{SelectMenu → NewMenu}/index.js +2 -1
- package/dist/components/{SelectMenu → NewMenu}/parts/MenuAnchor.js +1 -1
- package/dist/components/NewMenu/parts/MenuItem.js +63 -0
- package/dist/components/{SelectMenu → NewMenu}/parts/MenuSearchBox.js +1 -1
- package/dist/components/{SelectMenu → NewMenu}/parts/MenuSpinner.js +1 -1
- package/dist/components/{SelectMenu → NewMenu}/parts/SubmenuAnchor.js +1 -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 +4 -4
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +1 -1
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/index.js +1 -2
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.js +103 -202
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/index.js +20 -21
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/package.json +1 -1
- package/dist/components/Menu/Menu.js +0 -112
- package/dist/components/Menu/MenuContext.js +0 -11
- package/dist/components/Menu/index.js +0 -1
- package/dist/components/SelectMenu/SelectMenu2.js +0 -8
- package/dist/components/SelectMenu/parts/MenuItem.js +0 -76
- package/dist/next/Menu/Menu.js +0 -28
- package/dist/next/Menu/Menu2.js +0 -8
- package/dist/next/Menu/MenuButton.js +0 -44
- package/dist/next/Menu/MenuContext.js +0 -41
- package/dist/next/Menu/MenuItem.js +0 -55
- package/dist/next/Menu/MenuPane.js +0 -72
- package/dist/next/Menu/MenuSearch.js +0 -105
- package/dist/next/Menu/SubMenu.js +0 -84
- package/dist/next/Menu/constants.js +0 -9
- package/dist/next/Menu/index.js +0 -5
- /package/dist/components/{SelectMenu → NewMenu}/parts/ArrowNav/ArrowNav.js +0 -0
- /package/dist/components/{SelectMenu → NewMenu}/parts/ArrowNav/index.js +0 -0
- /package/dist/components/{SelectMenu → NewMenu}/parts/MenuContext.js +0 -0
- /package/dist/components/{SelectMenu → NewMenu}/parts/index.js +0 -0
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
var _extends = require('@babel/runtime-corejs3/helpers/extends');
|
|
4
4
|
var React = require('react');
|
|
5
5
|
var classNames = require('classnames');
|
|
6
|
-
var icons_index = require('./index-
|
|
6
|
+
var icons_index = require('./index-763e59c2.js');
|
|
7
7
|
var _includesInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/includes');
|
|
8
|
-
var reactDropdownMenu = require('@radix-ui/react-dropdown-menu');
|
|
9
8
|
var throttleDebounce = require('throttle-debounce');
|
|
10
9
|
var reactPopper = require('react-popper');
|
|
11
10
|
var core = require('@popperjs/core');
|
|
@@ -103,16 +102,16 @@ function filterChildren(children, queries) {
|
|
|
103
102
|
return [_filterChildren(children, queries, matchesList), matchesList];
|
|
104
103
|
}
|
|
105
104
|
|
|
106
|
-
var css_248z$
|
|
107
|
-
var styles$
|
|
108
|
-
var stylesheet$
|
|
109
|
-
icons_index.styleInject(css_248z$h);
|
|
110
|
-
|
|
111
|
-
var css_248z$g = "._13uaN{position:relative;display:inline-block}._13uaN._1WVPl{min-height:20px;min-width:20px}._13uaN._Sizs3{min-height:25px;min-width:25px}._13uaN._3rV8v{min-height:40px;min-width:40px}._13uaN._3_mt0{min-height:64px;min-width:64px}._13uaN ._f3RDA{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._13uaN ._f3RDA._3kdXp{visibility:hidden}._13uaN ._f3RDA div{position:absolute;transform:rotate(20deg)}._13uaN ._f3RDA div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;-webkit-animation:_f3RDA .8s linear infinite;animation:_f3RDA .8s linear infinite}._13uaN ._f3RDA div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._13uaN ._f3RDA div div:first-child{transform:rotate(20deg);-webkit-animation-delay:-.8s;animation-delay:-.8s}._13uaN ._f3RDA div div:nth-child(2){transform:rotate(60deg);-webkit-animation-delay:-.7s;animation-delay:-.7s}._13uaN ._f3RDA div div:nth-child(3){transform:rotate(100deg);-webkit-animation-delay:-.6s;animation-delay:-.6s}._13uaN ._f3RDA div div:nth-child(4){transform:rotate(140deg);-webkit-animation-delay:-.5s;animation-delay:-.5s}._13uaN ._f3RDA div div:nth-child(5){transform:rotate(180deg);-webkit-animation-delay:-.4s;animation-delay:-.4s}._13uaN ._f3RDA div div:nth-child(6){transform:rotate(220deg);-webkit-animation-delay:-.3s;animation-delay:-.3s}._13uaN ._f3RDA div div:nth-child(7){transform:rotate(260deg);-webkit-animation-delay:-.2s;animation-delay:-.2s}._13uaN ._f3RDA div div:nth-child(8){transform:rotate(300deg);-webkit-animation-delay:-.1s;animation-delay:-.1s}._13uaN ._f3RDA div div:nth-child(9){transform:rotate(340deg);-webkit-animation-delay:0s;animation-delay:0s}._13uaN ._3_mt0 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._13uaN ._1WVPl div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._13uaN ._Sizs3 div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._13uaN ._1yxEf div div:nth-child(-n+9):after{background:#fff}._13uaN ._2G29T{width:100%;height:100%}._13uaN ._2G29T._3WfB-{pointer-events:none}._13uaN ._2G29T._3kdXp{opacity:0}._13uaN ._2G29T._3agrH{opacity:.5}@-webkit-keyframes _f3RDA{0%{opacity:1}to{opacity:0}}@keyframes _f3RDA{0%{opacity:1}to{opacity:0}}";
|
|
112
|
-
var styles$c = {"spinnerContainer":"_13uaN","xs":"_1WVPl","small":"_Sizs3","medium":"_3rV8v","large":"_3_mt0","spinnerComponent":"_f3RDA","hide":"_3kdXp","inverted":"_1yxEf","spinnerContent":"_2G29T","disablePointerEvents":"_3WfB-","fade":"_3agrH"};
|
|
113
|
-
var stylesheet$g="._13uaN{position:relative;display:inline-block}._13uaN._1WVPl{min-height:20px;min-width:20px}._13uaN._Sizs3{min-height:25px;min-width:25px}._13uaN._3rV8v{min-height:40px;min-width:40px}._13uaN._3_mt0{min-height:64px;min-width:64px}._13uaN ._f3RDA{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._13uaN ._f3RDA._3kdXp{visibility:hidden}._13uaN ._f3RDA div{position:absolute;transform:rotate(20deg)}._13uaN ._f3RDA div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;-webkit-animation:_f3RDA .8s linear infinite;animation:_f3RDA .8s linear infinite}._13uaN ._f3RDA div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._13uaN ._f3RDA div div:first-child{transform:rotate(20deg);-webkit-animation-delay:-.8s;animation-delay:-.8s}._13uaN ._f3RDA div div:nth-child(2){transform:rotate(60deg);-webkit-animation-delay:-.7s;animation-delay:-.7s}._13uaN ._f3RDA div div:nth-child(3){transform:rotate(100deg);-webkit-animation-delay:-.6s;animation-delay:-.6s}._13uaN ._f3RDA div div:nth-child(4){transform:rotate(140deg);-webkit-animation-delay:-.5s;animation-delay:-.5s}._13uaN ._f3RDA div div:nth-child(5){transform:rotate(180deg);-webkit-animation-delay:-.4s;animation-delay:-.4s}._13uaN ._f3RDA div div:nth-child(6){transform:rotate(220deg);-webkit-animation-delay:-.3s;animation-delay:-.3s}._13uaN ._f3RDA div div:nth-child(7){transform:rotate(260deg);-webkit-animation-delay:-.2s;animation-delay:-.2s}._13uaN ._f3RDA div div:nth-child(8){transform:rotate(300deg);-webkit-animation-delay:-.1s;animation-delay:-.1s}._13uaN ._f3RDA div div:nth-child(9){transform:rotate(340deg);-webkit-animation-delay:0s;animation-delay:0s}._13uaN ._3_mt0 div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._13uaN ._1WVPl div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._13uaN ._Sizs3 div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._13uaN ._1yxEf div div:nth-child(-n+9):after{background:#fff}._13uaN ._2G29T{width:100%;height:100%}._13uaN ._2G29T._3WfB-{pointer-events:none}._13uaN ._2G29T._3kdXp{opacity:0}._13uaN ._2G29T._3agrH{opacity:.5}@-webkit-keyframes _f3RDA{0%{opacity:1}to{opacity:0}}@keyframes _f3RDA{0%{opacity:1}to{opacity:0}}";
|
|
105
|
+
var css_248z$g = "._TQ4cq{background-color:#fff;border-radius:4px;border:4px solid transparent;border-right:none;border-left:none;box-shadow:0 0 0 1px #eee,0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;max-width:500px;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._3zWFF{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;cursor:pointer;font-size:14px;color:#32363a;word-break:break-word;outline:none}._3zWFF._3DP54,._3zWFF._ixNNu._3zWFF:hover{background-color:#efefef}._3zWFF._24YWA{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._3zWFF._24YWA._3DP54,._3zWFF._24YWA._ixNNu._3zWFF._24YWA:hover{background-color:#e4effa}._3zWFF:active:not(._24YWA):not([aria-disabled=true]){background-color:#e8e9e9}._1wXbT ._12HRH{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;font-size:12px;color:#32363a;font-weight:700;word-break:break-word}._1wXbT ._3tQnP{display:none}._1wXbT:not(:first-child) ._3tQnP{display:block;margin:3.5px 0}._16uPn{width:100%;height:40px}";
|
|
106
|
+
var styles$c = {"flyout":"_TQ4cq","flyoutOption":"_3zWFF","highlighted":"_3DP54","hoverHighlight":"_ixNNu","selected":"_24YWA","flyoutHeader":"_1wXbT","headerContent":"_12HRH","headerDivider":"_3tQnP","flyoutSpinner":"_16uPn"};
|
|
107
|
+
var stylesheet$g="._TQ4cq{background-color:#fff;border-radius:4px;border:4px solid transparent;border-right:none;border-left:none;box-shadow:0 0 0 1px #eee,0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;max-width:500px;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._3zWFF{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;cursor:pointer;font-size:14px;color:#32363a;word-break:break-word;outline:none}._3zWFF._3DP54,._3zWFF._ixNNu._3zWFF:hover{background-color:#efefef}._3zWFF._24YWA{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._3zWFF._24YWA._3DP54,._3zWFF._24YWA._ixNNu._3zWFF._24YWA:hover{background-color:#e4effa}._3zWFF:active:not(._24YWA):not([aria-disabled=true]){background-color:#e8e9e9}._1wXbT ._12HRH{min-height:40px;padding:10px 12px;display:flex;flex-direction:row;align-items:center;font-size:12px;color:#32363a;font-weight:700;word-break:break-word}._1wXbT ._3tQnP{display:none}._1wXbT:not(:first-child) ._3tQnP{display:block;margin:3.5px 0}._16uPn{width:100%;height:40px}";
|
|
114
108
|
icons_index.styleInject(css_248z$g);
|
|
115
109
|
|
|
110
|
+
var css_248z$f = "._3F09X{position:relative;display:inline-block}._3F09X._3wZBW{min-height:20px;min-width:20px}._3F09X._4nPol{min-height:25px;min-width:25px}._3F09X._vZ3NS{min-height:40px;min-width:40px}._3F09X._PROFC{min-height:64px;min-width:64px}._3F09X ._3xLeW{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._3F09X ._3xLeW._1X_Xk{visibility:hidden}._3F09X ._3xLeW div{position:absolute;transform:rotate(20deg)}._3F09X ._3xLeW div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;-webkit-animation:_3xLeW .8s linear infinite;animation:_3xLeW .8s linear infinite}._3F09X ._3xLeW div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._3F09X ._3xLeW div div:first-child{transform:rotate(20deg);-webkit-animation-delay:-.8s;animation-delay:-.8s}._3F09X ._3xLeW div div:nth-child(2){transform:rotate(60deg);-webkit-animation-delay:-.7s;animation-delay:-.7s}._3F09X ._3xLeW div div:nth-child(3){transform:rotate(100deg);-webkit-animation-delay:-.6s;animation-delay:-.6s}._3F09X ._3xLeW div div:nth-child(4){transform:rotate(140deg);-webkit-animation-delay:-.5s;animation-delay:-.5s}._3F09X ._3xLeW div div:nth-child(5){transform:rotate(180deg);-webkit-animation-delay:-.4s;animation-delay:-.4s}._3F09X ._3xLeW div div:nth-child(6){transform:rotate(220deg);-webkit-animation-delay:-.3s;animation-delay:-.3s}._3F09X ._3xLeW div div:nth-child(7){transform:rotate(260deg);-webkit-animation-delay:-.2s;animation-delay:-.2s}._3F09X ._3xLeW div div:nth-child(8){transform:rotate(300deg);-webkit-animation-delay:-.1s;animation-delay:-.1s}._3F09X ._3xLeW div div:nth-child(9){transform:rotate(340deg);-webkit-animation-delay:0s;animation-delay:0s}._3F09X ._PROFC div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._3F09X ._3wZBW div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._3F09X ._4nPol div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._3F09X ._VGqTH div div:nth-child(-n+9):after{background:#fff}._3F09X ._3jjC9{width:100%;height:100%}._3F09X ._3jjC9._2FsKx{pointer-events:none}._3F09X ._3jjC9._1X_Xk{opacity:0}._3F09X ._3jjC9._1sOhj{opacity:.5}@-webkit-keyframes _3xLeW{0%{opacity:1}to{opacity:0}}@keyframes _3xLeW{0%{opacity:1}to{opacity:0}}";
|
|
111
|
+
var styles$b = {"spinnerContainer":"_3F09X","xs":"_3wZBW","small":"_4nPol","medium":"_vZ3NS","large":"_PROFC","spinnerComponent":"_3xLeW","hide":"_1X_Xk","inverted":"_VGqTH","spinnerContent":"_3jjC9","disablePointerEvents":"_2FsKx","fade":"_1sOhj"};
|
|
112
|
+
var stylesheet$f="._3F09X{position:relative;display:inline-block}._3F09X._3wZBW{min-height:20px;min-width:20px}._3F09X._4nPol{min-height:25px;min-width:25px}._3F09X._vZ3NS{min-height:40px;min-width:40px}._3F09X._PROFC{min-height:64px;min-width:64px}._3F09X ._3xLeW{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._3F09X ._3xLeW._1X_Xk{visibility:hidden}._3F09X ._3xLeW div{position:absolute;transform:rotate(20deg)}._3F09X ._3xLeW div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;-webkit-animation:_3xLeW .8s linear infinite;animation:_3xLeW .8s linear infinite}._3F09X ._3xLeW div div:nth-child(-n+9):after{content:\" \";display:block;position:absolute;top:5px;left:-1px;width:2px;height:10px;border-radius:20%;background:#000}._3F09X ._3xLeW div div:first-child{transform:rotate(20deg);-webkit-animation-delay:-.8s;animation-delay:-.8s}._3F09X ._3xLeW div div:nth-child(2){transform:rotate(60deg);-webkit-animation-delay:-.7s;animation-delay:-.7s}._3F09X ._3xLeW div div:nth-child(3){transform:rotate(100deg);-webkit-animation-delay:-.6s;animation-delay:-.6s}._3F09X ._3xLeW div div:nth-child(4){transform:rotate(140deg);-webkit-animation-delay:-.5s;animation-delay:-.5s}._3F09X ._3xLeW div div:nth-child(5){transform:rotate(180deg);-webkit-animation-delay:-.4s;animation-delay:-.4s}._3F09X ._3xLeW div div:nth-child(6){transform:rotate(220deg);-webkit-animation-delay:-.3s;animation-delay:-.3s}._3F09X ._3xLeW div div:nth-child(7){transform:rotate(260deg);-webkit-animation-delay:-.2s;animation-delay:-.2s}._3F09X ._3xLeW div div:nth-child(8){transform:rotate(300deg);-webkit-animation-delay:-.1s;animation-delay:-.1s}._3F09X ._3xLeW div div:nth-child(9){transform:rotate(340deg);-webkit-animation-delay:0s;animation-delay:0s}._3F09X ._PROFC div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._3F09X ._3wZBW div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._3F09X ._4nPol div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._3F09X ._VGqTH div div:nth-child(-n+9):after{background:#fff}._3F09X ._3jjC9{width:100%;height:100%}._3F09X ._3jjC9._2FsKx{pointer-events:none}._3F09X ._3jjC9._1X_Xk{opacity:0}._3F09X ._3jjC9._1sOhj{opacity:.5}@-webkit-keyframes _3xLeW{0%{opacity:1}to{opacity:0}}@keyframes _3xLeW{0%{opacity:1}to{opacity:0}}";
|
|
113
|
+
icons_index.styleInject(css_248z$f);
|
|
114
|
+
|
|
116
115
|
/* DO NOT MODIFY - THIS IS AN AUTO-GENERATED FILE */
|
|
117
116
|
var FALLBACK_LOCALIZED_TEXT = {
|
|
118
117
|
"filePicker.single": "Choose file",
|
|
@@ -392,13 +391,13 @@ const LoadingSpinner = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
392
391
|
const defaultAriaLabel = translate('loading');
|
|
393
392
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
394
393
|
ref: ref,
|
|
395
|
-
className: classNames__default["default"](className, styles$
|
|
396
|
-
[styles$
|
|
394
|
+
className: classNames__default["default"](className, styles$b.spinnerContainer, {
|
|
395
|
+
[styles$b[size]]: !children
|
|
397
396
|
})
|
|
398
397
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
399
|
-
className: classNames__default["default"](styles$
|
|
400
|
-
[styles$
|
|
401
|
-
[styles$
|
|
398
|
+
className: classNames__default["default"](styles$b.spinnerComponent, styles$b[size], {
|
|
399
|
+
[styles$b.inverted]: inverted,
|
|
400
|
+
[styles$b.hide]: !show
|
|
402
401
|
}),
|
|
403
402
|
"data-loadingspinner": show || undefined,
|
|
404
403
|
role: role,
|
|
@@ -407,9 +406,9 @@ const LoadingSpinner = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
407
406
|
"aria-live": ariaLive,
|
|
408
407
|
"aria-hidden": ariaHidden
|
|
409
408
|
}, /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null), /*#__PURE__*/React__default["default"].createElement("div", null))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
410
|
-
className: classNames__default["default"](styles$
|
|
411
|
-
[styles$
|
|
412
|
-
[styles$
|
|
409
|
+
className: classNames__default["default"](styles$b.spinnerContent, {
|
|
410
|
+
[styles$b[background]]: show,
|
|
411
|
+
[styles$b.disablePointerEvents]: show
|
|
413
412
|
})
|
|
414
413
|
}, children));
|
|
415
414
|
});
|
|
@@ -461,7 +460,7 @@ const Flyout = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
461
460
|
|
|
462
461
|
}, /*#__PURE__*/React__default["default"].createElement(LoadingSpinner, {
|
|
463
462
|
"aria-label": translate('loading'),
|
|
464
|
-
className: styles$
|
|
463
|
+
className: styles$c.flyoutSpinner,
|
|
465
464
|
show: true,
|
|
466
465
|
size: "small"
|
|
467
466
|
}));
|
|
@@ -472,7 +471,7 @@ const Flyout = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
472
471
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
473
472
|
id: id,
|
|
474
473
|
className: classNames__default["default"](className, {
|
|
475
|
-
[styles$
|
|
474
|
+
[styles$c.flyout]: !!content
|
|
476
475
|
}),
|
|
477
476
|
ref: ref,
|
|
478
477
|
role: "listbox",
|
|
@@ -494,12 +493,12 @@ const FlyoutHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
494
493
|
} = _ref;
|
|
495
494
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
496
495
|
ref: ref,
|
|
497
|
-
className: classNames__default["default"](className, styles$
|
|
496
|
+
className: classNames__default["default"](className, styles$c.flyoutHeader),
|
|
498
497
|
role: "group",
|
|
499
498
|
"aria-label": title
|
|
500
499
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
501
500
|
"aria-hidden": "true",
|
|
502
|
-
className: styles$
|
|
501
|
+
className: styles$c.headerContent
|
|
503
502
|
}, title), children);
|
|
504
503
|
});
|
|
505
504
|
|
|
@@ -517,10 +516,10 @@ const FlyoutOption = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
517
516
|
// eslint-disable-next-line jsx-a11y/interactive-supports-focus
|
|
518
517
|
React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
519
518
|
ref: ref,
|
|
520
|
-
className: classNames__default["default"](className, styles$
|
|
521
|
-
[styles$
|
|
522
|
-
[styles$
|
|
523
|
-
[styles$
|
|
519
|
+
className: classNames__default["default"](className, styles$c.flyoutOption, {
|
|
520
|
+
[styles$c.hoverHighlight]: isHighlightedOnHover,
|
|
521
|
+
[styles$c.highlighted]: isHighlighted,
|
|
522
|
+
[styles$c.selected]: isSelected
|
|
524
523
|
}),
|
|
525
524
|
role: "option",
|
|
526
525
|
"aria-selected": isSelected
|
|
@@ -569,10 +568,10 @@ function mergeRefs() {
|
|
|
569
568
|
};
|
|
570
569
|
}
|
|
571
570
|
|
|
572
|
-
var css_248z$
|
|
571
|
+
var css_248z$e = "[data-popper-reference-hidden=true]{opacity:0;pointer-events:none}";
|
|
573
572
|
var Popper$1 = {};
|
|
574
|
-
var stylesheet$
|
|
575
|
-
icons_index.styleInject(css_248z$
|
|
573
|
+
var stylesheet$e="[data-popper-reference-hidden=true]{opacity:0;pointer-events:none}";
|
|
574
|
+
icons_index.styleInject(css_248z$e);
|
|
576
575
|
|
|
577
576
|
const {
|
|
578
577
|
Provider,
|
|
@@ -866,10 +865,10 @@ function enableKeyboardUserClass() {
|
|
|
866
865
|
}
|
|
867
866
|
}
|
|
868
867
|
|
|
869
|
-
var css_248z$
|
|
870
|
-
var styles$
|
|
871
|
-
var stylesheet$
|
|
872
|
-
icons_index.styleInject(css_248z$
|
|
868
|
+
var css_248z$d = "._zGTKt{position:absolute;z-index:2000;max-width:240px;padding:8px 16px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._zGTKt._1XF7-{color:#32363a;background-color:#fff}._2aGly{opacity:1;pointer-events:all}._Z8Dip,._Z8Dip>div{position:absolute;width:8px;height:8px;background:inherit}._Z8Dip{visibility:hidden;z-index:2000}._Z8Dip>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._Z8Dip{bottom:-4px}[data-popper-placement^=top]>._Z8Dip>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._Z8Dip{left:-5px}[data-popper-placement^=right]>._Z8Dip>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._Z8Dip{top:-5px}[data-popper-placement^=bottom]>._Z8Dip>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._Z8Dip{right:-4px}[data-popper-placement^=left]>._Z8Dip>div{border-bottom-color:transparent;border-left-color:transparent}._13gk2{position:absolute}[data-popper-placement^=top]>._13gk2{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._13gk2{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._13gk2{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._13gk2{top:0;right:-13px;width:17px;height:100%}";
|
|
869
|
+
var styles$a = {"tooltip":"_zGTKt","lightTheme":"_1XF7-","visible":"_2aGly","arrow":"_Z8Dip","offsetBackplate":"_13gk2"};
|
|
870
|
+
var stylesheet$d="._zGTKt{position:absolute;z-index:2000;max-width:240px;padding:8px 16px;color:#fff;text-align:center;text-decoration:none;background-color:#222;border-radius:4px;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);font-size:14px;opacity:0;pointer-events:none;overflow-wrap:break-word;border:1px solid #898989}._zGTKt._1XF7-{color:#32363a;background-color:#fff}._2aGly{opacity:1;pointer-events:all}._Z8Dip,._Z8Dip>div{position:absolute;width:8px;height:8px;background:inherit}._Z8Dip{visibility:hidden;z-index:2000}._Z8Dip>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._Z8Dip{bottom:-4px}[data-popper-placement^=top]>._Z8Dip>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._Z8Dip{left:-5px}[data-popper-placement^=right]>._Z8Dip>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._Z8Dip{top:-5px}[data-popper-placement^=bottom]>._Z8Dip>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._Z8Dip{right:-4px}[data-popper-placement^=left]>._Z8Dip>div{border-bottom-color:transparent;border-left-color:transparent}._13gk2{position:absolute}[data-popper-placement^=top]>._13gk2{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._13gk2{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._13gk2{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._13gk2{top:0;right:-13px;width:17px;height:100%}";
|
|
871
|
+
icons_index.styleInject(css_248z$d);
|
|
873
872
|
|
|
874
873
|
const useSSRLayoutEffect = function () {
|
|
875
874
|
const effectFunc = React.useMemo(() => canUseDOM() ? React.useLayoutEffect : React.useEffect, []);
|
|
@@ -1285,10 +1284,10 @@ function usePrevious(value) {
|
|
|
1285
1284
|
return ref.current;
|
|
1286
1285
|
}
|
|
1287
1286
|
|
|
1288
|
-
var css_248z$
|
|
1289
|
-
var classes = {"ariaLiveElement":"
|
|
1290
|
-
var stylesheet$
|
|
1291
|
-
icons_index.styleInject(css_248z$
|
|
1287
|
+
var css_248z$c = "._1xqv1{position:absolute;top:-10000px;left:-10000px}";
|
|
1288
|
+
var classes = {"ariaLiveElement":"_1xqv1"};
|
|
1289
|
+
var stylesheet$c="._1xqv1{position:absolute;top:-10000px;left:-10000px}";
|
|
1290
|
+
icons_index.styleInject(css_248z$c);
|
|
1292
1291
|
|
|
1293
1292
|
/**
|
|
1294
1293
|
* Sets up a live region in order to make screen reader announcements.
|
|
@@ -1750,9 +1749,9 @@ const Tooltip = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1750
1749
|
id: flyoutContainerId,
|
|
1751
1750
|
key: contentKey,
|
|
1752
1751
|
ref: mergeRefs(ref, flyoutRef),
|
|
1753
|
-
className: classNames__default["default"](className, styles$
|
|
1754
|
-
[styles$
|
|
1755
|
-
[styles$
|
|
1752
|
+
className: classNames__default["default"](className, styles$a.tooltip, {
|
|
1753
|
+
[styles$a.visible]: isVisible,
|
|
1754
|
+
[styles$a.lightTheme]: lightTheme
|
|
1756
1755
|
}),
|
|
1757
1756
|
style: {
|
|
1758
1757
|
zIndex,
|
|
@@ -1762,7 +1761,7 @@ const Tooltip = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1762
1761
|
"aria-hidden": ariaHidden
|
|
1763
1762
|
}), content, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1764
1763
|
"aria-hidden": true,
|
|
1765
|
-
className: styles$
|
|
1764
|
+
className: styles$a.offsetBackplate,
|
|
1766
1765
|
ref: flyoutOffsetBackplateRef
|
|
1767
1766
|
})),
|
|
1768
1767
|
modifiers: [{
|
|
@@ -1772,7 +1771,7 @@ const Tooltip = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1772
1771
|
}
|
|
1773
1772
|
}],
|
|
1774
1773
|
arrow: isArrowRemoved ? undefined : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1775
|
-
className: styles$
|
|
1774
|
+
className: styles$a.arrow
|
|
1776
1775
|
}, /*#__PURE__*/React__default["default"].createElement("div", null)),
|
|
1777
1776
|
portalTarget: portalTarget
|
|
1778
1777
|
});
|
|
@@ -1847,10 +1846,10 @@ const Text = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1847
1846
|
}, rest), children));
|
|
1848
1847
|
});
|
|
1849
1848
|
|
|
1850
|
-
var css_248z$
|
|
1851
|
-
var buttonStyles = {"btn":"
|
|
1852
|
-
var stylesheet$
|
|
1853
|
-
icons_index.styleInject(css_248z$
|
|
1849
|
+
var css_248z$b = "._ENWmn{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}._ENWmn._1BwsL{padding:0 8px;height:26px;min-height:26px}._ENWmn._1SMTd{display:block;width:100%}._ENWmn._1_bRC{cursor:not-allowed;opacity:.4}._ENWmn:active:focus,._ENWmn:focus{outline:none}._ENWmn._1989o{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._ENWmn._1989o:hover:not(._1_bRC){background-color:#eee}._ENWmn._1989o:active:not(._1_bRC){background-color:#e5e5e5}._ENWmn._1MomP{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._ENWmn._1MomP:hover:not(._1_bRC){background-color:#085caf;border-color:#085caf}._ENWmn._1MomP:active:not(._1_bRC){background-color:#0854a1;border-color:#0854a1}._ENWmn._3BEfL{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._ENWmn._3BEfL:hover:not(._1_bRC){background-color:#eef5fc}._ENWmn._3BEfL:active:not(._1_bRC){background-color:#e1edf9}._ENWmn._2-vBb{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._ENWmn._2-vBb:hover:not(._1_bRC){background-color:#eef5fc;border-color:#eef5fc}._ENWmn._2-vBb:active:not(._1_bRC){background-color:#e1edf9;border-color:#e1edf9}._ENWmn._25jZN{color:#0b6ed0;fill:#0b6ed0;padding:0}._ENWmn._25jZN:hover:not(._1_bRC){color:#085caf}._ENWmn._25jZN:active:not(._1_bRC){color:#0854a1}._ENWmn._3lGsc{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._ENWmn._3lGsc:hover:not(._1_bRC){background-color:#ffecec}._ENWmn._3lGsc:active:not(._1_bRC){background-color:#ffdbdb}._1DP36,body.keyboard-user ._ENWmn:active:focus,body.keyboard-user ._ENWmn:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
1850
|
+
var buttonStyles = {"btn":"_ENWmn","small":"_1BwsL","full":"_1SMTd","disabled":"_1_bRC","default":"_1989o","primary":"_1MomP","secondary":"_3BEfL","tertiary":"_2-vBb","link":"_25jZN","danger":"_3lGsc","keyboardFocused":"_1DP36"};
|
|
1851
|
+
var stylesheet$b="._ENWmn{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}._ENWmn._1BwsL{padding:0 8px;height:26px;min-height:26px}._ENWmn._1SMTd{display:block;width:100%}._ENWmn._1_bRC{cursor:not-allowed;opacity:.4}._ENWmn:active:focus,._ENWmn:focus{outline:none}._ENWmn._1989o{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._ENWmn._1989o:hover:not(._1_bRC){background-color:#eee}._ENWmn._1989o:active:not(._1_bRC){background-color:#e5e5e5}._ENWmn._1MomP{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._ENWmn._1MomP:hover:not(._1_bRC){background-color:#085caf;border-color:#085caf}._ENWmn._1MomP:active:not(._1_bRC){background-color:#0854a1;border-color:#0854a1}._ENWmn._3BEfL{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._ENWmn._3BEfL:hover:not(._1_bRC){background-color:#eef5fc}._ENWmn._3BEfL:active:not(._1_bRC){background-color:#e1edf9}._ENWmn._2-vBb{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._ENWmn._2-vBb:hover:not(._1_bRC){background-color:#eef5fc;border-color:#eef5fc}._ENWmn._2-vBb:active:not(._1_bRC){background-color:#e1edf9;border-color:#e1edf9}._ENWmn._25jZN{color:#0b6ed0;fill:#0b6ed0;padding:0}._ENWmn._25jZN:hover:not(._1_bRC){color:#085caf}._ENWmn._25jZN:active:not(._1_bRC){color:#0854a1}._ENWmn._3lGsc{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._ENWmn._3lGsc:hover:not(._1_bRC){background-color:#ffecec}._ENWmn._3lGsc:active:not(._1_bRC){background-color:#ffdbdb}._1DP36,body.keyboard-user ._ENWmn:active:focus,body.keyboard-user ._ENWmn:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
1852
|
+
icons_index.styleInject(css_248z$b);
|
|
1854
1853
|
|
|
1855
1854
|
function createContextValue(value) {
|
|
1856
1855
|
return {
|
|
@@ -1931,10 +1930,10 @@ const Button = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1931
1930
|
);
|
|
1932
1931
|
});
|
|
1933
1932
|
|
|
1934
|
-
var css_248z$
|
|
1935
|
-
var styles$
|
|
1936
|
-
var stylesheet$
|
|
1937
|
-
icons_index.styleInject(css_248z$
|
|
1933
|
+
var css_248z$a = "._2rVl_{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._2rVl_,._3d3pc{cursor:pointer;height:16px;width:16px}._3d3pc{position:absolute;opacity:0;z-index:10}._3d3pc:checked~._94BF5>._3iNB6{fill-opacity:1}._3d3pc:checked:enabled~._94BF5{border-color:transparent;background-color:#0b6ed0}._3d3pc:checked:enabled~._94BF5>._3iNB6{fill:#fff}._3d3pc:checked:enabled:hover~._94BF5{background-color:#085caf}._3d3pc:not(:checked):enabled:hover~._94BF5{border-color:#0b6ed0}._3d3pc:disabled{cursor:not-allowed}._3d3pc:disabled~._94BF5{opacity:.4}._3Whts{color:#32363a;display:flex;align-items:center;cursor:pointer}._27eqI{cursor:auto;color:hsla(0,0%,53.7%,.4)}._2q6up{margin-right:12px;flex-shrink:0}._94BF5{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._3iNB6{fill:#0b6ed0;fill-opacity:0}body.keyboard-user ._3d3pc:active:focus~._94BF5,body.keyboard-user ._3d3pc:focus~._94BF5{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
1934
|
+
var styles$9 = {"checkbox":"_2rVl_","input":"_3d3pc","check":"_94BF5","checkIcon":"_3iNB6","label":"_3Whts","labelDisabled":"_27eqI","wrappedInput":"_2q6up"};
|
|
1935
|
+
var stylesheet$a="._2rVl_{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._2rVl_,._3d3pc{cursor:pointer;height:16px;width:16px}._3d3pc{position:absolute;opacity:0;z-index:10}._3d3pc:checked~._94BF5>._3iNB6{fill-opacity:1}._3d3pc:checked:enabled~._94BF5{border-color:transparent;background-color:#0b6ed0}._3d3pc:checked:enabled~._94BF5>._3iNB6{fill:#fff}._3d3pc:checked:enabled:hover~._94BF5{background-color:#085caf}._3d3pc:not(:checked):enabled:hover~._94BF5{border-color:#0b6ed0}._3d3pc:disabled{cursor:not-allowed}._3d3pc:disabled~._94BF5{opacity:.4}._3Whts{color:#32363a;display:flex;align-items:center;cursor:pointer}._27eqI{cursor:auto;color:hsla(0,0%,53.7%,.4)}._2q6up{margin-right:12px;flex-shrink:0}._94BF5{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._3iNB6{fill:#0b6ed0;fill-opacity:0}body.keyboard-user ._3d3pc:active:focus~._94BF5,body.keyboard-user ._3d3pc:focus~._94BF5{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
1936
|
+
icons_index.styleInject(css_248z$a);
|
|
1938
1937
|
|
|
1939
1938
|
const Check = props => /*#__PURE__*/React__default["default"].createElement("svg", _extends__default["default"]({}, props, {
|
|
1940
1939
|
width: "16",
|
|
@@ -2011,10 +2010,10 @@ const Checkbox = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
2011
2010
|
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId, inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-describedby']);
|
|
2012
2011
|
return /*#__PURE__*/React__default["default"].createElement("span", _extends__default["default"]({}, rest, {
|
|
2013
2012
|
ref: ref,
|
|
2014
|
-
className: classNames__default["default"](className, styles$
|
|
2013
|
+
className: classNames__default["default"](className, styles$9.checkbox)
|
|
2015
2014
|
}), /*#__PURE__*/React__default["default"].createElement("input", _extends__default["default"]({}, inputProps, {
|
|
2016
2015
|
name: name !== null && name !== void 0 ? name : inputProps === null || inputProps === void 0 ? void 0 : inputProps.name,
|
|
2017
|
-
className: classNames__default["default"](styles$
|
|
2016
|
+
className: classNames__default["default"](styles$9.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className),
|
|
2018
2017
|
type: "checkbox",
|
|
2019
2018
|
id: id !== null && id !== void 0 ? id : inputProps === null || inputProps === void 0 ? void 0 : inputProps.id,
|
|
2020
2019
|
checked: checked !== null && checked !== void 0 ? checked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked,
|
|
@@ -2026,16 +2025,16 @@ const Checkbox = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
2026
2025
|
"aria-labelledby": externalAriaLabelledBy !== null && externalAriaLabelledBy !== void 0 ? externalAriaLabelledBy : inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-labelledby'],
|
|
2027
2026
|
"aria-describedby": internalAriaDescribedby
|
|
2028
2027
|
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2029
|
-
className: styles$
|
|
2028
|
+
className: styles$9.check
|
|
2030
2029
|
}, /*#__PURE__*/React__default["default"].createElement(Check, {
|
|
2031
|
-
className: styles$
|
|
2030
|
+
className: styles$9.checkIcon
|
|
2032
2031
|
})));
|
|
2033
2032
|
});
|
|
2034
2033
|
|
|
2035
|
-
var css_248z$
|
|
2036
|
-
var styles$
|
|
2037
|
-
var stylesheet$
|
|
2038
|
-
icons_index.styleInject(css_248z$
|
|
2034
|
+
var css_248z$9 = "._5A8WB{font-size:14px}._25wFP{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._1xIk-{color:#0b6ed0}";
|
|
2035
|
+
var styles$8 = {"label":"_5A8WB","control":"_25wFP","focused":"_1xIk-"};
|
|
2036
|
+
var stylesheet$9="._5A8WB{font-size:14px}._25wFP{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._1xIk-{color:#0b6ed0}";
|
|
2037
|
+
icons_index.styleInject(css_248z$9);
|
|
2039
2038
|
|
|
2040
2039
|
const Label = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
2041
2040
|
let {
|
|
@@ -2047,9 +2046,9 @@ const Label = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
|
2047
2046
|
isFocused,
|
|
2048
2047
|
hasControl
|
|
2049
2048
|
} = useFormFieldLabel();
|
|
2050
|
-
const classes = classNames__default["default"](styles$
|
|
2051
|
-
[styles$
|
|
2052
|
-
[styles$
|
|
2049
|
+
const classes = classNames__default["default"](styles$8.label, className, {
|
|
2050
|
+
[styles$8.control]: hasControl,
|
|
2051
|
+
[styles$8.focused]: isFocused
|
|
2053
2052
|
});
|
|
2054
2053
|
return /*#__PURE__*/React__default["default"].createElement("label", _extends__default["default"]({}, rest, {
|
|
2055
2054
|
ref: ref,
|
|
@@ -2057,10 +2056,10 @@ const Label = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
|
2057
2056
|
}), children);
|
|
2058
2057
|
});
|
|
2059
2058
|
|
|
2060
|
-
var css_248z$
|
|
2061
|
-
var styles$
|
|
2062
|
-
var stylesheet$
|
|
2063
|
-
icons_index.styleInject(css_248z$
|
|
2059
|
+
var css_248z$8 = "._2CePO{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._2CePO::-moz-placeholder{color:#515559;opacity:1}._2CePO::placeholder{color:#515559;opacity:1}._2CePO:hover{cursor:pointer;background-color:#f5f5f5}._2CePO:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._2CePO._bCsGQ{border-color:#b00}._2CePO._bCsGQ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._2CePO:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._2CePO:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2CePO:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2CePO._152m7{height:auto}._2CePO._152m7::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._2CePO._2bwlb{display:block;width:100%}._2CePO._3ABRa{padding:4px 8px}input._2CePO._3ABRa{height:26px;min-height:26px}[type=number]._2CePO{-moz-appearance:textfield}[type=number]._2CePO::-webkit-inner-spin-button,[type=number]._2CePO::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._1hUxA{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._1hUxA:hover{cursor:pointer}._1hUxA._1skvi{color:#0b6ed0}._25WtP{margin-top:4px}";
|
|
2060
|
+
var styles$7 = {"input":"_2CePO","invalid":"_bCsGQ","multiline":"_152m7","full":"_2bwlb","small":"_3ABRa","label":"_1hUxA","focused":"_1skvi","wrappedInput":"_25WtP"};
|
|
2061
|
+
var stylesheet$8="._2CePO{display:inline-block;height:36px;min-height:36px;padding:8px 12px;line-height:20px;font-size:14px;color:#32363a;caret-color:#32363a;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._2CePO::-moz-placeholder{color:#515559;opacity:1}._2CePO::placeholder{color:#515559;opacity:1}._2CePO:hover{cursor:pointer;background-color:#f5f5f5}._2CePO:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._2CePO._bCsGQ{border-color:#b00}._2CePO._bCsGQ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._2CePO:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._2CePO:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2CePO:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2CePO._152m7{height:auto}._2CePO._152m7::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._2CePO._2bwlb{display:block;width:100%}._2CePO._3ABRa{padding:4px 8px}input._2CePO._3ABRa{height:26px;min-height:26px}[type=number]._2CePO{-moz-appearance:textfield}[type=number]._2CePO::-webkit-inner-spin-button,[type=number]._2CePO::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._1hUxA{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._1hUxA:hover{cursor:pointer}._1hUxA._1skvi{color:#0b6ed0}._25WtP{margin-top:4px}";
|
|
2062
|
+
icons_index.styleInject(css_248z$8);
|
|
2064
2063
|
|
|
2065
2064
|
const Input$1 = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
2066
2065
|
let {
|
|
@@ -2086,11 +2085,11 @@ const Input$1 = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
2086
2085
|
isReadOnly: formFieldIsReadOnly
|
|
2087
2086
|
} = useFormFieldContext();
|
|
2088
2087
|
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId);
|
|
2089
|
-
const classes = classNames__default["default"](styles$
|
|
2090
|
-
[styles$
|
|
2091
|
-
[styles$
|
|
2092
|
-
[styles$
|
|
2093
|
-
[styles$
|
|
2088
|
+
const classes = classNames__default["default"](styles$7.input, inputGroupContext.className, inputGroupContext.inputClassName, {
|
|
2089
|
+
[styles$7.full]: inputGroupContext.applyFull(full),
|
|
2090
|
+
[styles$7.invalid]: invalid,
|
|
2091
|
+
[styles$7.small]: inputGroupContext.applySmall(small),
|
|
2092
|
+
[styles$7.multiline]: multiline
|
|
2094
2093
|
}, className);
|
|
2095
2094
|
const commonProps = { ...rest,
|
|
2096
2095
|
ref,
|
|
@@ -2147,23 +2146,23 @@ const InputField = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
2147
2146
|
return /*#__PURE__*/React__default["default"].createElement(Label, _extends__default["default"]({
|
|
2148
2147
|
htmlFor: id,
|
|
2149
2148
|
"data-testid": dataTestId,
|
|
2150
|
-
className: classNames__default["default"](className, styles$
|
|
2151
|
-
[styles$
|
|
2149
|
+
className: classNames__default["default"](className, styles$7.label, labelClassName, {
|
|
2150
|
+
[styles$7.focused]: focused
|
|
2152
2151
|
}),
|
|
2153
2152
|
style: style
|
|
2154
2153
|
}, labelPropsWithoutClass), label, /*#__PURE__*/React__default["default"].createElement(Input$1, _extends__default["default"]({
|
|
2155
2154
|
id: id,
|
|
2156
2155
|
ref: ref,
|
|
2157
|
-
className: classNames__default["default"](styles$
|
|
2156
|
+
className: classNames__default["default"](styles$7.wrappedInput, inputClassName),
|
|
2158
2157
|
onBlur: handleBlur,
|
|
2159
2158
|
onFocus: handleFocus
|
|
2160
2159
|
}, rest, inputPropsWithoutClass)));
|
|
2161
2160
|
});
|
|
2162
2161
|
|
|
2163
|
-
var css_248z$
|
|
2164
|
-
var styles$
|
|
2165
|
-
var stylesheet$
|
|
2166
|
-
icons_index.styleInject(css_248z$
|
|
2162
|
+
var css_248z$7 = "._2XEU9{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._2XEU9:focus{outline:none}._2XEU9:hover:not(._eSvar){background-color:rgba(50,54,58,.08)}._2XEU9:active:not(._eSvar){background-color:rgba(50,54,58,.11);stroke-width:2}._2XEU9._eSvar{cursor:not-allowed;opacity:.6}body.keyboard-user ._2XEU9:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2163
|
+
var styles$6 = {"button":"_2XEU9","disabled":"_eSvar"};
|
|
2164
|
+
var stylesheet$7="._2XEU9{border-radius:4px;border:none;height:36px;width:36px;display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;cursor:pointer;fill:#515559;background-color:transparent;transition:background .2s,color .2s}._2XEU9:focus{outline:none}._2XEU9:hover:not(._eSvar){background-color:rgba(50,54,58,.08)}._2XEU9:active:not(._eSvar){background-color:rgba(50,54,58,.11);stroke-width:2}._2XEU9._eSvar{cursor:not-allowed;opacity:.6}body.keyboard-user ._2XEU9:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2165
|
+
icons_index.styleInject(css_248z$7);
|
|
2167
2166
|
|
|
2168
2167
|
const sizePropInIconErrorMessage = 'Warning: The `Icon` prop `size` is invalid when used as a child of `IconButton`.';
|
|
2169
2168
|
const IconButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -2180,8 +2179,8 @@ const IconButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
2180
2179
|
onKeyDown,
|
|
2181
2180
|
...rest
|
|
2182
2181
|
} = _ref;
|
|
2183
|
-
const classes = classNames__default["default"](className, styles$
|
|
2184
|
-
[styles$
|
|
2182
|
+
const classes = classNames__default["default"](className, styles$6.button, {
|
|
2183
|
+
[styles$6.disabled]: disabled
|
|
2185
2184
|
});
|
|
2186
2185
|
|
|
2187
2186
|
if (children.props.size) {
|
|
@@ -2221,10 +2220,10 @@ const IconButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
2221
2220
|
|
|
2222
2221
|
/* eslint-disable import/prefer-default-export */
|
|
2223
2222
|
|
|
2224
|
-
var css_248z$
|
|
2225
|
-
var styles$
|
|
2226
|
-
var stylesheet$
|
|
2227
|
-
icons_index.styleInject(css_248z$
|
|
2223
|
+
var css_248z$6 = "._IvsS6{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
2224
|
+
var styles$5 = {"divider":"_IvsS6"};
|
|
2225
|
+
var stylesheet$6="._IvsS6{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
2226
|
+
icons_index.styleInject(css_248z$6);
|
|
2228
2227
|
|
|
2229
2228
|
const Divider = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
2230
2229
|
let {
|
|
@@ -2233,14 +2232,14 @@ const Divider = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
2233
2232
|
} = _ref;
|
|
2234
2233
|
return /*#__PURE__*/React__default["default"].createElement("hr", _extends__default["default"]({
|
|
2235
2234
|
ref: ref,
|
|
2236
|
-
className: classNames__default["default"](className, styles$
|
|
2235
|
+
className: classNames__default["default"](className, styles$5.divider)
|
|
2237
2236
|
}, rest));
|
|
2238
2237
|
});
|
|
2239
2238
|
|
|
2240
|
-
var css_248z$
|
|
2241
|
-
var styles$
|
|
2242
|
-
var stylesheet$
|
|
2243
|
-
icons_index.styleInject(css_248z$
|
|
2239
|
+
var css_248z$5 = "._3Q-Qc{max-width:100%;position:relative;display:inline-block}._2YA6B{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}._2YA6B:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._2YA6B:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._2YA6B:disabled,._2YA6B[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._2YA6B._1pIcV{border-color:#b00}._2YA6B._1pIcV:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._2YA6B._3z4tE{min-width:120px;padding:0 4px 0 12px}._2YA6B._1MFSS{margin-top:4px}._2YA6B._ighRS:not([aria-disabled=true]):not(:disabled){color:#32363a}._2YA6B ._2nC7n{display:inline-flex;align-items:center;min-height:10px}._2YA6B ._2nC7n._2K3Fo{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._2YA6B ._2cRxC{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._2YA6B ._2cRxC._3fiLu{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._2YA6B ._2cRxC._1gLEM{transform:rotate(-180deg)}._3LORi[aria-disabled=true]{cursor:not-allowed;opacity:.65}._12-8K{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}._2wO6J{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}._32FSG{fill:#515559}._3W0KN{margin:2px 12px 2px 0}._3W0KN._28Rme>svg{border-color:#0b6ed0}._1ErMU{width:100%}";
|
|
2240
|
+
var styles$4 = {"container":"_3Q-Qc","button":"_2YA6B","invalid":"_1pIcV","hasText":"_3z4tE","labelled":"_1MFSS","selected":"_ighRS","buttonLabel":"_2nC7n","isString":"_2K3Fo","icon":"_2cRxC","disabled":"_3fiLu","open":"_1gLEM","option":"_3LORi","search":"_12-8K","emptyOption":"_2wO6J","searchIcon":"_32FSG","checkbox":"_3W0KN","highlighted":"_28Rme","searchInput":"_1ErMU"};
|
|
2241
|
+
var stylesheet$5="._3Q-Qc{max-width:100%;position:relative;display:inline-block}._2YA6B{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}._2YA6B:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._2YA6B:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._2YA6B:disabled,._2YA6B[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._2YA6B._1pIcV{border-color:#b00}._2YA6B._1pIcV:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._2YA6B._3z4tE{min-width:120px;padding:0 4px 0 12px}._2YA6B._1MFSS{margin-top:4px}._2YA6B._ighRS:not([aria-disabled=true]):not(:disabled){color:#32363a}._2YA6B ._2nC7n{display:inline-flex;align-items:center;min-height:10px}._2YA6B ._2nC7n._2K3Fo{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._2YA6B ._2cRxC{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._2YA6B ._2cRxC._3fiLu{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._2YA6B ._2cRxC._1gLEM{transform:rotate(-180deg)}._3LORi[aria-disabled=true]{cursor:not-allowed;opacity:.65}._12-8K{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}._2wO6J{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}._32FSG{fill:#515559}._3W0KN{margin:2px 12px 2px 0}._3W0KN._28Rme>svg{border-color:#0b6ed0}._1ErMU{width:100%}";
|
|
2242
|
+
icons_index.styleInject(css_248z$5);
|
|
2244
2243
|
|
|
2245
2244
|
const {
|
|
2246
2245
|
useContext: useDropdownContext,
|
|
@@ -2371,11 +2370,11 @@ const DropdownButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2371
2370
|
"aria-label": ariaLabel,
|
|
2372
2371
|
"aria-describedby": ariaDescribedby,
|
|
2373
2372
|
id: buttonId,
|
|
2374
|
-
className: classNames__default["default"](className, styles$
|
|
2375
|
-
[styles$
|
|
2376
|
-
[styles$
|
|
2377
|
-
[styles$
|
|
2378
|
-
[styles$
|
|
2373
|
+
className: classNames__default["default"](className, styles$4.button, {
|
|
2374
|
+
[styles$4.hasText]: !!label,
|
|
2375
|
+
[styles$4.invalid]: isInvalid,
|
|
2376
|
+
[styles$4.labelled]: hasFormLabel,
|
|
2377
|
+
[styles$4.selected]: externalLabel !== null && externalLabel !== void 0 ? externalLabel : isOptionSelected // defaultLabel has lighter text color
|
|
2379
2378
|
|
|
2380
2379
|
}),
|
|
2381
2380
|
onFocus: onFocus,
|
|
@@ -2384,14 +2383,14 @@ const DropdownButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
2384
2383
|
onClick: handleClick,
|
|
2385
2384
|
"data-testid": dataTestId !== null && dataTestId !== void 0 ? dataTestId : getSubDataTestId(contextDataTestId, 'button')
|
|
2386
2385
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2387
|
-
className: classNames__default["default"](styles$
|
|
2388
|
-
[styles$
|
|
2386
|
+
className: classNames__default["default"](styles$4.buttonLabel, {
|
|
2387
|
+
[styles$4.isString]: typeof label === 'string'
|
|
2389
2388
|
})
|
|
2390
2389
|
}, label), /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
2391
2390
|
size: "medium",
|
|
2392
|
-
className: classNames__default["default"](styles$
|
|
2393
|
-
[styles$
|
|
2394
|
-
[styles$
|
|
2391
|
+
className: classNames__default["default"](styles$4.icon, {
|
|
2392
|
+
[styles$4.open]: isOpen,
|
|
2393
|
+
[styles$4.disabled]: disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled
|
|
2395
2394
|
}),
|
|
2396
2395
|
"aria-hidden": "true"
|
|
2397
2396
|
})));
|
|
@@ -2593,10 +2592,10 @@ function useChildIndex(_ref2) {
|
|
|
2593
2592
|
}, ChildIndexContext);
|
|
2594
2593
|
}
|
|
2595
2594
|
|
|
2596
|
-
var css_248z$
|
|
2597
|
-
var inputClasses = {"container":"
|
|
2598
|
-
var stylesheet$
|
|
2599
|
-
icons_index.styleInject(css_248z$
|
|
2595
|
+
var css_248z$4 = "._3TlfG{position:relative;display:inline-block;height:36px}._3BZMx{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._3BZMx:hover{cursor:pointer;background-color:#f5f5f5}._3BZMx:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._3BZMx:disabled,._3BZMx[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._3BZMx:disabled::-moz-placeholder,._3BZMx[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3BZMx:disabled::placeholder,._3BZMx[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3BZMx:invalid,._3BZMx[aria-invalid=true]{border-color:#b00}._3BZMx:invalid:focus,._3BZMx[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._3BZMx[type=number]{-moz-appearance:textfield}._3BZMx[type=number]::-webkit-inner-spin-button,._3BZMx[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._3BZMx::-moz-placeholder{color:#515559;opacity:1}._3BZMx::placeholder{color:#515559;opacity:1}._2KRrs{pointer-events:none;color:#515559;fill:#515559}._1S6rd{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._1aaZd{color:#515559;font-size:16px}._2_Mtc{left:0;margin-left:6px}._2_Mtc,._3fwma{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._3fwma{right:0;margin-right:6px}";
|
|
2596
|
+
var inputClasses = {"container":"_3TlfG","input":"_3BZMx","addOn":"_2KRrs","addOnVerticalCenter":"_1S6rd","addOnTextNode":"_1aaZd","leftAddOn":"_2_Mtc","rightAddOn":"_3fwma"};
|
|
2597
|
+
var stylesheet$4="._3TlfG{position:relative;display:inline-block;height:36px}._3BZMx{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._3BZMx:hover{cursor:pointer;background-color:#f5f5f5}._3BZMx:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._3BZMx:disabled,._3BZMx[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._3BZMx:disabled::-moz-placeholder,._3BZMx[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3BZMx:disabled::placeholder,._3BZMx[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._3BZMx:invalid,._3BZMx[aria-invalid=true]{border-color:#b00}._3BZMx:invalid:focus,._3BZMx[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._3BZMx[type=number]{-moz-appearance:textfield}._3BZMx[type=number]::-webkit-inner-spin-button,._3BZMx[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._3BZMx::-moz-placeholder{color:#515559;opacity:1}._3BZMx::placeholder{color:#515559;opacity:1}._2KRrs{pointer-events:none;color:#515559;fill:#515559}._1S6rd{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._1aaZd{color:#515559;font-size:16px}._2_Mtc{left:0;margin-left:6px}._2_Mtc,._3fwma{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._3fwma{right:0;margin-right:6px}";
|
|
2598
|
+
icons_index.styleInject(css_248z$4);
|
|
2600
2599
|
|
|
2601
2600
|
const getAddOnComponent = (addOn, containerClassName, containerRef) => {
|
|
2602
2601
|
if (!addOn) {
|
|
@@ -2748,20 +2747,20 @@ const DropdownSearch = /*#__PURE__*/React__default["default"].forwardRef((props,
|
|
|
2748
2747
|
};
|
|
2749
2748
|
|
|
2750
2749
|
return isOpen ? /*#__PURE__*/React__default["default"].createElement(FlyoutOption, {
|
|
2751
|
-
className: styles$
|
|
2750
|
+
className: styles$4.search,
|
|
2752
2751
|
ref: mergeRefs(internalRef, ref),
|
|
2753
2752
|
tabIndex: -1,
|
|
2754
2753
|
onMouseEnter: handleMouseEnter,
|
|
2755
2754
|
onMouseLeave: handleMouseLeave,
|
|
2756
2755
|
onSelect: handleSelect
|
|
2757
2756
|
}, /*#__PURE__*/React__default["default"].createElement(Input, {
|
|
2758
|
-
className: styles$
|
|
2757
|
+
className: styles$4.searchInput,
|
|
2759
2758
|
onKeyDown: handleKeyDown,
|
|
2760
2759
|
onChange: handleSearch,
|
|
2761
2760
|
ref: inputRef,
|
|
2762
2761
|
placeholder: searchText,
|
|
2763
2762
|
leftAddOn: /*#__PURE__*/React__default["default"].createElement(icons_index.SearchIcon, {
|
|
2764
|
-
className: styles$
|
|
2763
|
+
className: styles$4.searchIcon,
|
|
2765
2764
|
"aria-hidden": true
|
|
2766
2765
|
}),
|
|
2767
2766
|
role: "searchbox",
|
|
@@ -2842,7 +2841,7 @@ const DropdownList = /*#__PURE__*/React__default["default"].forwardRef((_ref, re
|
|
|
2842
2841
|
},
|
|
2843
2842
|
"data-testid": dataTestId !== null && dataTestId !== void 0 ? dataTestId : getSubDataTestId(contextDataTestId, 'flyout')
|
|
2844
2843
|
}), isSearchable && /*#__PURE__*/React__default["default"].createElement(DropdownSearch, null), children, isSearchable && showNoResults && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2845
|
-
className: styles$
|
|
2844
|
+
className: styles$4.emptyOption // eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
2846
2845
|
,
|
|
2847
2846
|
role: "option" // `aria-selected` is omitted because this option is not selectable
|
|
2848
2847
|
|
|
@@ -3160,7 +3159,7 @@ const Dropdown = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3160
3159
|
}, /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
3161
3160
|
id: id,
|
|
3162
3161
|
ref: ref,
|
|
3163
|
-
className: classNames__default["default"](className, styles$
|
|
3162
|
+
className: classNames__default["default"](className, styles$4.container),
|
|
3164
3163
|
"data-testid": dataTestId
|
|
3165
3164
|
}), dropdownButton, /*#__PURE__*/React__default["default"].createElement(ChildIndexProvider, {
|
|
3166
3165
|
items: options,
|
|
@@ -3196,10 +3195,10 @@ const DropdownHeader = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
3196
3195
|
}, commonProps), children) : /*#__PURE__*/React__default["default"].createElement("div", commonProps, children));
|
|
3197
3196
|
});
|
|
3198
3197
|
|
|
3199
|
-
var css_248z$
|
|
3200
|
-
var styles$
|
|
3201
|
-
var stylesheet$
|
|
3202
|
-
icons_index.styleInject(css_248z$
|
|
3198
|
+
var css_248z$3 = "._Z4ld9{display:inline-flex;position:relative}._2FqLl,._Z4ld9{cursor:pointer;height:16px;width:16px}._2FqLl{position:absolute;opacity:0;z-index:10}._2FqLl._1_YY3~._Z3u-J>._3i40k{fill-opacity:1}._2FqLl._1_YY3~._Z3u-J{border-color:transparent;background-color:#0b6ed0}._2FqLl._1_YY3~._Z3u-J>._3i40k{fill:#fff}._2FqLl._1_YY3:hover~._Z3u-J{background-color:#085caf}._2FqLl:not(._1_YY3):hover~._Z3u-J{border-color:#0b6ed0}._2FqLl._3m9pZ{cursor:not-allowed}._2FqLl._3m9pZ~._Z3u-J{opacity:.4}._Z3u-J{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._3i40k{fill:#0b6ed0;fill-opacity:0}";
|
|
3199
|
+
var styles$3 = {"checkbox":"_Z4ld9","input":"_2FqLl","checked":"_1_YY3","check":"_Z3u-J","checkIcon":"_3i40k","disabled":"_3m9pZ"};
|
|
3200
|
+
var stylesheet$3="._Z4ld9{display:inline-flex;position:relative}._2FqLl,._Z4ld9{cursor:pointer;height:16px;width:16px}._2FqLl{position:absolute;opacity:0;z-index:10}._2FqLl._1_YY3~._Z3u-J>._3i40k{fill-opacity:1}._2FqLl._1_YY3~._Z3u-J{border-color:transparent;background-color:#0b6ed0}._2FqLl._1_YY3~._Z3u-J>._3i40k{fill:#fff}._2FqLl._1_YY3:hover~._Z3u-J{background-color:#085caf}._2FqLl:not(._1_YY3):hover~._Z3u-J{border-color:#0b6ed0}._2FqLl._3m9pZ{cursor:not-allowed}._2FqLl._3m9pZ~._Z3u-J{opacity:.4}._Z3u-J{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;height:16px;width:16px;background-color:#fff;border-radius:4px;border:1px solid #898989;z-index:0}._3i40k{fill:#0b6ed0;fill-opacity:0}";
|
|
3201
|
+
icons_index.styleInject(css_248z$3);
|
|
3203
3202
|
|
|
3204
3203
|
// input elements cannot be inside an option role for accessibility reasons,
|
|
3205
3204
|
// so this component reflects our Checkbox styles for DropdownOption and
|
|
@@ -3212,17 +3211,17 @@ const VisualCheckbox = _ref => {
|
|
|
3212
3211
|
disabled
|
|
3213
3212
|
} = _ref;
|
|
3214
3213
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3215
|
-
className: classNames__default["default"](className, styles$
|
|
3214
|
+
className: classNames__default["default"](className, styles$3.checkbox),
|
|
3216
3215
|
"aria-hidden": true
|
|
3217
3216
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3218
|
-
className: classNames__default["default"](styles$
|
|
3219
|
-
[styles$
|
|
3220
|
-
[styles$
|
|
3217
|
+
className: classNames__default["default"](styles$3.input, {
|
|
3218
|
+
[styles$3.checked]: checked,
|
|
3219
|
+
[styles$3.disabled]: disabled
|
|
3221
3220
|
})
|
|
3222
3221
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3223
|
-
className: styles$
|
|
3222
|
+
className: styles$3.check
|
|
3224
3223
|
}, /*#__PURE__*/React__default["default"].createElement(Check, {
|
|
3225
|
-
className: styles$
|
|
3224
|
+
className: styles$3.checkIcon
|
|
3226
3225
|
})));
|
|
3227
3226
|
};
|
|
3228
3227
|
|
|
@@ -3312,7 +3311,7 @@ const DropdownOption = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
3312
3311
|
}
|
|
3313
3312
|
}, [isHighlighted, isKeyboardUser, isOpen, listRef, isSearchable, searchHeight]);
|
|
3314
3313
|
return isOpen && isVisible ? /*#__PURE__*/React__default["default"].createElement(FlyoutOption, _extends__default["default"]({}, rest, {
|
|
3315
|
-
className: classNames__default["default"](className, styles$
|
|
3314
|
+
className: classNames__default["default"](className, styles$4.option),
|
|
3316
3315
|
ref: mergeRefs(internalRef, ref),
|
|
3317
3316
|
onClick: handleSelect,
|
|
3318
3317
|
tabIndex: -1,
|
|
@@ -3326,8 +3325,8 @@ const DropdownOption = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
3326
3325
|
}),
|
|
3327
3326
|
onMouseLeave: wrapEvent(onMouseLeave, () => setHighlightedIndex(-1))
|
|
3328
3327
|
}), children || /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isMultiSelect && /*#__PURE__*/React__default["default"].createElement(VisualCheckbox, {
|
|
3329
|
-
className: classNames__default["default"](styles$
|
|
3330
|
-
[styles$
|
|
3328
|
+
className: classNames__default["default"](styles$4.checkbox, {
|
|
3329
|
+
[styles$4.highlighted]: isHighlighted && !isSelected
|
|
3331
3330
|
}),
|
|
3332
3331
|
checked: isSelected,
|
|
3333
3332
|
disabled: disabled
|
|
@@ -3336,374 +3335,16 @@ const DropdownOption = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
3336
3335
|
});
|
|
3337
3336
|
});
|
|
3338
3337
|
|
|
3339
|
-
var css_248z$
|
|
3340
|
-
var styles$
|
|
3341
|
-
var stylesheet$
|
|
3342
|
-
icons_index.styleInject(css_248z$3);
|
|
3343
|
-
|
|
3344
|
-
const {
|
|
3345
|
-
useContext: useMenuContext$2,
|
|
3346
|
-
Provider: MenuContextProvider$2
|
|
3347
|
-
} = createContextUtilities({
|
|
3348
|
-
isChildOfMenu: false
|
|
3349
|
-
});
|
|
3350
|
-
|
|
3351
|
-
const {
|
|
3352
|
-
useContext: useMenuContext$1,
|
|
3353
|
-
Provider: MenuContextProvider$1
|
|
3354
|
-
} = createContextUtilities({});
|
|
3355
|
-
const {
|
|
3356
|
-
useContext: intermediaryUseMenuContext,
|
|
3357
|
-
Provider: IntermediaryMenuContextProvider
|
|
3358
|
-
} = createContextUtilities({});
|
|
3359
|
-
|
|
3360
|
-
const PaneContextProvider = _ref => {
|
|
3361
|
-
let {
|
|
3362
|
-
items,
|
|
3363
|
-
setItems,
|
|
3364
|
-
value,
|
|
3365
|
-
children
|
|
3366
|
-
} = _ref;
|
|
3367
|
-
return /*#__PURE__*/React__default["default"].createElement(ChildIndexProvider, {
|
|
3368
|
-
items: items,
|
|
3369
|
-
setItems: setItems
|
|
3370
|
-
}, /*#__PURE__*/React__default["default"].createElement(IntermediaryMenuContextProvider, {
|
|
3371
|
-
value: value
|
|
3372
|
-
}, children));
|
|
3373
|
-
};
|
|
3374
|
-
|
|
3375
|
-
const usePaneContext = childItemRef => {
|
|
3376
|
-
const coreContext = intermediaryUseMenuContext();
|
|
3377
|
-
const childIndex = useChildIndex({
|
|
3378
|
-
element: childItemRef
|
|
3379
|
-
});
|
|
3380
|
-
return {
|
|
3381
|
-
childIndex,
|
|
3382
|
-
...coreContext
|
|
3383
|
-
};
|
|
3384
|
-
};
|
|
3385
|
-
|
|
3386
|
-
const Menu = _ref => {
|
|
3387
|
-
let {
|
|
3388
|
-
'data-testid': dataTestId,
|
|
3389
|
-
isOpen,
|
|
3390
|
-
onIsOpenChange,
|
|
3391
|
-
isDisabled,
|
|
3392
|
-
children
|
|
3393
|
-
} = _ref;
|
|
3394
|
-
const [open, setOpen] = useControllableState(isOpen, onIsOpenChange, isOpen);
|
|
3395
|
-
return /*#__PURE__*/React__default["default"].createElement(MenuContextProvider$1, {
|
|
3396
|
-
value: {
|
|
3397
|
-
dataTestId,
|
|
3398
|
-
isDisabled,
|
|
3399
|
-
setOpen
|
|
3400
|
-
}
|
|
3401
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Root, {
|
|
3402
|
-
open: open,
|
|
3403
|
-
onOpenChange: shouldOpen => setOpen(!isDisabled && shouldOpen)
|
|
3404
|
-
}, children));
|
|
3405
|
-
};
|
|
3406
|
-
|
|
3407
|
-
var css_248z$2 = "._1__17{position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._12GJ4{min-width:0;max-width:100%;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;display:inline-flex;justify-content:space-between;text-align:left;align-items:center;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559;padding:0 28px 0 12px}._12GJ4:hover:not([aria-disabled=true]){background-color:#f5f5f5}._12GJ4:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._12GJ4+._2Mutp{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._12GJ4[data-state=open]+._2Mutp{transform:rotate(-180deg) translateY(50%)}._12GJ4[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._12GJ4[aria-disabled=true]+._2Mutp{fill:#515559;opacity:.4}._3iMxz{margin:0;padding:4px 0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow:scroll}._1vpV-{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._1vpV-[data-highlighted]{background-color:#efefef}._1vpV-[aria-disabled=true]{cursor:not-allowed;opacity:.65}._1vpV-._2gDdp{padding-right:32px}._1vpV-._2gDdp ._2Mutp{position:absolute;top:8px;right:3px;fill:#515559}._vZntv{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._35aZ0{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}";
|
|
3408
|
-
var styles$2 = {"buttonContainer":"_1__17","button":"_12GJ4","rightIcon":"_2Mutp","flyout":"_3iMxz","menuItem":"_1vpV-","subMenu":"_2gDdp","searchBox":"_vZntv","emptyOption":"_35aZ0"};
|
|
3409
|
-
var stylesheet$2="._1__17{position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._12GJ4{min-width:0;max-width:100%;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;display:inline-flex;justify-content:space-between;text-align:left;align-items:center;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559;padding:0 28px 0 12px}._12GJ4:hover:not([aria-disabled=true]){background-color:#f5f5f5}._12GJ4:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._12GJ4+._2Mutp{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._12GJ4[data-state=open]+._2Mutp{transform:rotate(-180deg) translateY(50%)}._12GJ4[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._12GJ4[aria-disabled=true]+._2Mutp{fill:#515559;opacity:.4}._3iMxz{margin:0;padding:4px 0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow:scroll}._1vpV-{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._1vpV-[data-highlighted]{background-color:#efefef}._1vpV-[aria-disabled=true]{cursor:not-allowed;opacity:.65}._1vpV-._2gDdp{padding-right:32px}._1vpV-._2gDdp ._2Mutp{position:absolute;top:8px;right:3px;fill:#515559}._vZntv{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._35aZ0{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}";
|
|
3338
|
+
var css_248z$2 = "._3UqI0._3UqI0{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._3UqI0._3UqI0,._3UqI0._3UqI0 ._2422P{display:inline-flex;align-items:center}._3UqI0._3UqI0 ._2422P{overflow:hidden;text-overflow:ellipsis}._3UqI0._3UqI0._2H_gp{min-height:26px;height:26px}._3UqI0._3UqI0._2CPzz{color:#32363a}._3UqI0._3UqI0:hover:not([aria-disabled=true]){background-color:#f5f5f5}._3UqI0._3UqI0:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3UqI0._3UqI0[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._3UqI0._3UqI0[aria-disabled=true]>svg{fill:#515559;opacity:.4}._3UqI0._3UqI0._2FFMp{padding-left:0}._3UqI0._3UqI0._355Yp{margin-top:4px}._3UqI0._3UqI0 ._24_X7{fill:#515559}._3UqI0._3UqI0 ._24_X7._2H_gp{top:0}._3UqI0._3UqI0 ._24_X7._3lYNv{transform:rotate(-180deg)}._3ssIV{overflow-x:hidden;overflow-y:auto;overflow:hidden auto;position:relative}._22Vr6{margin:0;padding:4px 0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000}._22Vr6::-webkit-scrollbar,._22Vr6::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._22Vr6::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._22Vr6::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._22Vr6:hover::-webkit-scrollbar,._22Vr6:hover::-webkit-scrollbar-thumb,._22Vr6[focus-within]::-webkit-scrollbar,._22Vr6[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._22Vr6:focus-within::-webkit-scrollbar,._22Vr6:focus-within::-webkit-scrollbar-thumb,._22Vr6:hover::-webkit-scrollbar,._22Vr6:hover::-webkit-scrollbar-thumb{visibility:visible}._3uhqv{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._3uhqv[aria-disabled=true]{cursor:not-allowed;opacity:.65}._3uhqv._2pF-E{background-color:#efefef}._3uhqv._2CPzz{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._3uhqv._2CPzz._2pF-E{background-color:#e4effa}._3uhqv._3SjD9{cursor:default}._3uhqv:active:not(._3Wpti):not(._2CPzz):not([aria-disabled=true]):not(._3SjD9){background-color:#e8e9e9}._3Wpti{padding-right:32px}._3Wpti ._24_X7{position:absolute;top:8px;right:3px;fill:#515559}._2wGJ4{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._34qAM{position:absolute;top:13px;left:13px}._3GRSW._3GRSW{padding-left:32px}._QDKZa{margin:2px 12px 2px 0;flex-shrink:0}._QDKZa._OId-k>svg{border-color:#0b6ed0}._2oAuU{display:flex;justify-self:center;margin:8px}";
|
|
3339
|
+
var styles$2 = {"menuBtn":"_3UqI0","menuBtnLabel":"_2422P","small":"_2H_gp","selected":"_2CPzz","unlabelledButton":"_2FFMp","formLabelled":"_355Yp","rightIcon":"_24_X7","open":"_3lYNv","menuItemContainer":"_3ssIV","contentPane":"_22Vr6","menuItem":"_3uhqv","focus":"_2pF-E","noMenuItems":"_3SjD9","subMenu":"_3Wpti","searchBox":"_2wGJ4","searchBoxIcon":"_34qAM","searchBoxInput":"_3GRSW","checkbox":"_QDKZa","highlighted":"_OId-k","menuSpinner":"_2oAuU"};
|
|
3340
|
+
var stylesheet$2="._3UqI0._3UqI0{min-width:0;max-width:100%;padding:0 4px 0 12px;white-space:nowrap;line-height:20px;font-size:14px;cursor:pointer;justify-content:space-between;text-align:left;outline:none;background-color:#fafafa;border:none;box-shadow:inset 0 0 0 1px #898989;border-radius:4px;height:36px;color:#515559;fill:#515559}._3UqI0._3UqI0,._3UqI0._3UqI0 ._2422P{display:inline-flex;align-items:center}._3UqI0._3UqI0 ._2422P{overflow:hidden;text-overflow:ellipsis}._3UqI0._3UqI0._2H_gp{min-height:26px;height:26px}._3UqI0._3UqI0._2CPzz{color:#32363a}._3UqI0._3UqI0:hover:not([aria-disabled=true]){background-color:#f5f5f5}._3UqI0._3UqI0:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3UqI0._3UqI0[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._3UqI0._3UqI0[aria-disabled=true]>svg{fill:#515559;opacity:.4}._3UqI0._3UqI0._2FFMp{padding-left:0}._3UqI0._3UqI0._355Yp{margin-top:4px}._3UqI0._3UqI0 ._24_X7{fill:#515559}._3UqI0._3UqI0 ._24_X7._2H_gp{top:0}._3UqI0._3UqI0 ._24_X7._3lYNv{transform:rotate(-180deg)}._3ssIV{overflow-x:hidden;overflow-y:auto;overflow:hidden auto;position:relative}._22Vr6{margin:0;padding:4px 0;font-size:14px;color:#32363a;fill:#32363a;list-style:none;min-width:160px;max-width:350px;min-height:10px;max-height:99%;background:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000}._22Vr6::-webkit-scrollbar,._22Vr6::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._22Vr6::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._22Vr6::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._22Vr6:hover::-webkit-scrollbar,._22Vr6:hover::-webkit-scrollbar-thumb,._22Vr6[focus-within]::-webkit-scrollbar,._22Vr6[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._22Vr6:focus-within::-webkit-scrollbar,._22Vr6:focus-within::-webkit-scrollbar-thumb,._22Vr6:hover::-webkit-scrollbar,._22Vr6:hover::-webkit-scrollbar-thumb{visibility:visible}._3uhqv{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._3uhqv[aria-disabled=true]{cursor:not-allowed;opacity:.65}._3uhqv._2pF-E{background-color:#efefef}._3uhqv._2CPzz{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._3uhqv._2CPzz._2pF-E{background-color:#e4effa}._3uhqv._3SjD9{cursor:default}._3uhqv:active:not(._3Wpti):not(._2CPzz):not([aria-disabled=true]):not(._3SjD9){background-color:#e8e9e9}._3Wpti{padding-right:32px}._3Wpti ._24_X7{position:absolute;top:8px;right:3px;fill:#515559}._2wGJ4{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;margin-top:-4px}._34qAM{position:absolute;top:13px;left:13px}._3GRSW._3GRSW{padding-left:32px}._QDKZa{margin:2px 12px 2px 0;flex-shrink:0}._QDKZa._OId-k>svg{border-color:#0b6ed0}._2oAuU{display:flex;justify-self:center;margin:8px}";
|
|
3410
3341
|
icons_index.styleInject(css_248z$2);
|
|
3411
3342
|
|
|
3412
|
-
/* eslint-disable import/prefer-default-export */
|
|
3413
|
-
const DATA_TESTID_SUFFIXES = {
|
|
3414
|
-
MENU_PANE: 'menupane',
|
|
3415
|
-
MENU_ITEM: 'menuitem',
|
|
3416
|
-
MENU_BUTTON: 'menubutton',
|
|
3417
|
-
MENU_SEARCH: 'menusearch'
|
|
3418
|
-
};
|
|
3419
|
-
|
|
3420
|
-
const MenuButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
3421
|
-
let {
|
|
3422
|
-
asChild,
|
|
3423
|
-
children,
|
|
3424
|
-
style,
|
|
3425
|
-
className,
|
|
3426
|
-
...rest
|
|
3427
|
-
} = _ref;
|
|
3428
|
-
const {
|
|
3429
|
-
dataTestId: rootDataTestId,
|
|
3430
|
-
isDisabled
|
|
3431
|
-
} = useMenuContext$1();
|
|
3432
|
-
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3433
|
-
className: classNames__default["default"](className, {
|
|
3434
|
-
[styles$2.buttonContainer]: !asChild
|
|
3435
|
-
}),
|
|
3436
|
-
style: style
|
|
3437
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Trigger, _extends__default["default"]({}, rest, {
|
|
3438
|
-
"aria-disabled": isDisabled,
|
|
3439
|
-
className: classNames__default["default"]({
|
|
3440
|
-
[styles$2.button]: !asChild
|
|
3441
|
-
}),
|
|
3442
|
-
asChild: asChild,
|
|
3443
|
-
ref: ref,
|
|
3444
|
-
"data-testid": getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_BUTTON)
|
|
3445
|
-
}), children), !asChild && /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
3446
|
-
className: styles$2.rightIcon,
|
|
3447
|
-
"aria-hidden": "true"
|
|
3448
|
-
}));
|
|
3449
|
-
});
|
|
3450
|
-
|
|
3451
|
-
const MenuSearch = _ref => {
|
|
3452
|
-
let {
|
|
3453
|
-
setSearchValue,
|
|
3454
|
-
items,
|
|
3455
|
-
paneRef
|
|
3456
|
-
} = _ref;
|
|
3457
|
-
const itemRef = React.useRef(null);
|
|
3458
|
-
const inputRef = React.useRef(null);
|
|
3459
|
-
const {
|
|
3460
|
-
translate
|
|
3461
|
-
} = useTranslation();
|
|
3462
|
-
const noMatchesText = translate('menu.noItemsToDisplay');
|
|
3463
|
-
const searchText = translate('searchText');
|
|
3464
|
-
const {
|
|
3465
|
-
dataTestId: menuParentDataTestId,
|
|
3466
|
-
searchValue = ''
|
|
3467
|
-
} = usePaneContext();
|
|
3468
|
-
const dataTestId = menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_SEARCH); // not using `useMemo` to force an extra render after items have updated https://stackoverflow.com/a/56029184
|
|
3469
|
-
|
|
3470
|
-
const [zeroSearchResults, setZeroSearchResults] = React.useState();
|
|
3471
|
-
React.useEffect(() => {
|
|
3472
|
-
setZeroSearchResults((items === null || items === void 0 ? void 0 : items.filter(item => item.element.current).length) === 0);
|
|
3473
|
-
}, [items, searchValue]);
|
|
3474
|
-
React.useEffect(() => () => setSearchValue(''), [setSearchValue]);
|
|
3475
|
-
const [previouslyFocusedElement, setPreviouslyFocusedElement] = React.useState(); // a backdoor hack to keep focus on search input on mouse leave
|
|
3476
|
-
|
|
3477
|
-
useEventListener(paneRef, 'focus', e => {
|
|
3478
|
-
if (e.target === e.currentTarget && previouslyFocusedElement === itemRef.current) {
|
|
3479
|
-
var _inputRef$current;
|
|
3480
|
-
|
|
3481
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
3482
|
-
}
|
|
3483
|
-
|
|
3484
|
-
setPreviouslyFocusedElement(e.target);
|
|
3485
|
-
}, {
|
|
3486
|
-
isCaptureEvent: true
|
|
3487
|
-
});
|
|
3488
|
-
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Item, {
|
|
3489
|
-
className: styles$2.searchBox // prevents dropdown from closing
|
|
3490
|
-
,
|
|
3491
|
-
onSelect: e => e.preventDefault(),
|
|
3492
|
-
onFocus: () => {
|
|
3493
|
-
var _inputRef$current2;
|
|
3494
|
-
|
|
3495
|
-
return (_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.focus();
|
|
3496
|
-
},
|
|
3497
|
-
role: undefined,
|
|
3498
|
-
ref: itemRef
|
|
3499
|
-
}, /*#__PURE__*/React__default["default"].createElement(Input, {
|
|
3500
|
-
"data-testid": dataTestId,
|
|
3501
|
-
role: "searchbox",
|
|
3502
|
-
value: searchValue,
|
|
3503
|
-
onChange: e => setSearchValue(e.target.value),
|
|
3504
|
-
placeholder: searchText,
|
|
3505
|
-
onKeyDown: e => {
|
|
3506
|
-
var _e$target;
|
|
3507
|
-
|
|
3508
|
-
// stop propagation to prevent typeAhead
|
|
3509
|
-
e.stopPropagation();
|
|
3510
|
-
const keysToForward = ['Escape', 'ArrowUp', 'ArrowDown', 'PageUp', 'PageDown', 'Home', 'End']; // allow caret movement through text entry, but close searchable submenu if on the very left
|
|
3511
|
-
|
|
3512
|
-
if (((_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.selectionStart) === 0) {
|
|
3513
|
-
keysToForward.push('ArrowLeft');
|
|
3514
|
-
} // forward keypress directly to `Item` to let Radix handle keyboard navigation
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
if (_includesInstanceProperty__default["default"](keysToForward).call(keysToForward, e.key)) {
|
|
3518
|
-
var _itemRef$current;
|
|
3519
|
-
|
|
3520
|
-
// `view` types are incompatible
|
|
3521
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
3522
|
-
const {
|
|
3523
|
-
view,
|
|
3524
|
-
...eventClone
|
|
3525
|
-
} = e;
|
|
3526
|
-
itemRef === null || itemRef === void 0 ? void 0 : (_itemRef$current = itemRef.current) === null || _itemRef$current === void 0 ? void 0 : _itemRef$current.dispatchEvent(new KeyboardEvent('keydown', eventClone));
|
|
3527
|
-
}
|
|
3528
|
-
},
|
|
3529
|
-
leftAddOn: /*#__PURE__*/React__default["default"].createElement(icons_index.SearchIcon, null),
|
|
3530
|
-
ref: inputRef
|
|
3531
|
-
})), zeroSearchResults && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3532
|
-
className: styles$2.emptyOption // eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
3533
|
-
,
|
|
3534
|
-
role: "option" // `aria-selected` is omitted because this option is not selectable
|
|
3535
|
-
,
|
|
3536
|
-
"aria-live": "assertive"
|
|
3537
|
-
}, noMatchesText));
|
|
3538
|
-
};
|
|
3539
|
-
|
|
3540
|
-
const MenuPane = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
3541
|
-
let {
|
|
3542
|
-
placement,
|
|
3543
|
-
children,
|
|
3544
|
-
isSearchable,
|
|
3545
|
-
searchValue: externalSearchValue,
|
|
3546
|
-
onSearchValueChange,
|
|
3547
|
-
className,
|
|
3548
|
-
isSearchFilteringDisabled = false,
|
|
3549
|
-
...rest
|
|
3550
|
-
} = _ref;
|
|
3551
|
-
const [internalSearchValue, setSearchValue] = useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
3552
|
-
const portalTarget = usePortalTarget();
|
|
3553
|
-
const [side, align] = React.useMemo(() => {
|
|
3554
|
-
var _placement$split, _placement$split2;
|
|
3555
|
-
|
|
3556
|
-
return (_placement$split = placement === null || placement === void 0 ? void 0 : (_placement$split2 = placement.split) === null || _placement$split2 === void 0 ? void 0 : _placement$split2.call(placement, '-')) !== null && _placement$split !== void 0 ? _placement$split : [];
|
|
3557
|
-
}, [placement]);
|
|
3558
|
-
const [items, setItems] = React.useState([]);
|
|
3559
|
-
const {
|
|
3560
|
-
dataTestId: rootDataTestId,
|
|
3561
|
-
setOpen: setOpenEntireMenu
|
|
3562
|
-
} = useMenuContext$1();
|
|
3563
|
-
const dataTestId = getSubDataTestId(rootDataTestId, DATA_TESTID_SUFFIXES.MENU_PANE);
|
|
3564
|
-
const paneRef = React.useRef(null);
|
|
3565
|
-
const handleTabPress = React.useCallback(() => {
|
|
3566
|
-
setOpenEntireMenu === null || setOpenEntireMenu === void 0 ? void 0 : setOpenEntireMenu(false);
|
|
3567
|
-
}, [setOpenEntireMenu]);
|
|
3568
|
-
return /*#__PURE__*/React__default["default"].createElement(PaneContextProvider, {
|
|
3569
|
-
items: items,
|
|
3570
|
-
setItems: setItems,
|
|
3571
|
-
value: {
|
|
3572
|
-
dataTestId,
|
|
3573
|
-
searchValue: internalSearchValue,
|
|
3574
|
-
paneRef,
|
|
3575
|
-
isSearchFilteringDisabled
|
|
3576
|
-
}
|
|
3577
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Portal, {
|
|
3578
|
-
container: portalTarget || undefined
|
|
3579
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Content, _extends__default["default"]({}, rest, {
|
|
3580
|
-
sideOffset: 6,
|
|
3581
|
-
loop: true,
|
|
3582
|
-
side: side || 'bottom',
|
|
3583
|
-
align: align || 'start',
|
|
3584
|
-
className: classNames__default["default"](styles$2.flyout, className),
|
|
3585
|
-
ref: mergeRefs(ref, paneRef),
|
|
3586
|
-
"data-testid": dataTestId // having to add our own due to https://github.com/radix-ui/primitives/issues/1934
|
|
3587
|
-
,
|
|
3588
|
-
onKeyDownCapture: e => e.key === 'Tab' && handleTabPress()
|
|
3589
|
-
}), isSearchable && /*#__PURE__*/React__default["default"].createElement(MenuSearch, {
|
|
3590
|
-
setSearchValue: setSearchValue,
|
|
3591
|
-
items: items,
|
|
3592
|
-
paneRef: paneRef
|
|
3593
|
-
}), children)));
|
|
3594
|
-
});
|
|
3595
|
-
|
|
3596
|
-
const MenuItem$1 = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
3597
|
-
let {
|
|
3598
|
-
isDisabled,
|
|
3599
|
-
asChild,
|
|
3600
|
-
children,
|
|
3601
|
-
className,
|
|
3602
|
-
onSelect,
|
|
3603
|
-
label,
|
|
3604
|
-
...rest
|
|
3605
|
-
} = _ref;
|
|
3606
|
-
const itemRef = React.useRef(null);
|
|
3607
|
-
const {
|
|
3608
|
-
dataTestId: menuParentDataTestId,
|
|
3609
|
-
childIndex: index,
|
|
3610
|
-
searchValue,
|
|
3611
|
-
isSearchFilteringDisabled
|
|
3612
|
-
} = usePaneContext(itemRef);
|
|
3613
|
-
const dataTestId = getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM), String(index));
|
|
3614
|
-
const isVisible = React.useMemo(() => {
|
|
3615
|
-
var _context;
|
|
3616
|
-
|
|
3617
|
-
const searchMatcher = label !== null && label !== void 0 ? label : typeof children === 'string' ? children : undefined;
|
|
3618
|
-
return isSearchFilteringDisabled || !searchValue || (searchMatcher === null || searchMatcher === void 0 ? void 0 : _includesInstanceProperty__default["default"](_context = searchMatcher.toLowerCase()).call(_context, searchValue.toLowerCase()));
|
|
3619
|
-
}, [children, searchValue, label, isSearchFilteringDisabled]);
|
|
3620
|
-
const {
|
|
3621
|
-
isChildOfMenu: isChildOfOldMenu
|
|
3622
|
-
} = useMenuContext$2();
|
|
3623
|
-
return isVisible ? /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Item, _extends__default["default"]({}, rest, {
|
|
3624
|
-
asChild: asChild,
|
|
3625
|
-
"aria-disabled": isDisabled,
|
|
3626
|
-
className: classNames__default["default"](className, styles$2.menuItem),
|
|
3627
|
-
"data-testid": dataTestId,
|
|
3628
|
-
ref: mergeRefs(ref, itemRef) // stop radix from closing the menu on selection of disabled item
|
|
3629
|
-
// other pointer and keyboard events still work, even when disabled
|
|
3630
|
-
,
|
|
3631
|
-
onSelect: e => isDisabled ? e.preventDefault() : // eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3632
|
-
// @ts-ignore: passing event to old menu to comply with its API
|
|
3633
|
-
onSelect === null || onSelect === void 0 ? void 0 : onSelect(isChildOfOldMenu ? e : undefined)
|
|
3634
|
-
}), (!children || typeof children === 'string') && label ? label : children) : null;
|
|
3635
|
-
});
|
|
3636
|
-
|
|
3637
|
-
const SubMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
3638
|
-
let {
|
|
3639
|
-
children,
|
|
3640
|
-
label,
|
|
3641
|
-
isDisabled,
|
|
3642
|
-
isSearchable,
|
|
3643
|
-
searchValue: externalSearchValue,
|
|
3644
|
-
onSearchValueChange,
|
|
3645
|
-
className,
|
|
3646
|
-
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren = false,
|
|
3647
|
-
...rest
|
|
3648
|
-
} = _ref;
|
|
3649
|
-
const {
|
|
3650
|
-
onIsOpenChange,
|
|
3651
|
-
subMenuTriggerProps
|
|
3652
|
-
} = useMenuContext$2();
|
|
3653
|
-
const itemRef = React.useRef(null);
|
|
3654
|
-
const paneRef = React.useRef(null);
|
|
3655
|
-
const {
|
|
3656
|
-
dataTestId: menuParentDataTestId,
|
|
3657
|
-
childIndex: index,
|
|
3658
|
-
searchValue: triggerMenuParentSearchValue,
|
|
3659
|
-
isSearchFilteringDisabled: isSearchFilteringDisabledForTrigger
|
|
3660
|
-
} = usePaneContext(itemRef);
|
|
3661
|
-
const [internalSearchValue, setSearchValue] = useControllableState(externalSearchValue, onSearchValueChange, externalSearchValue);
|
|
3662
|
-
const paneDataTestId = getSubDataTestId(menuParentDataTestId, String(index));
|
|
3663
|
-
const triggerDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(DATA_TESTID_SUFFIXES.MENU_PANE, DATA_TESTID_SUFFIXES.MENU_ITEM);
|
|
3664
|
-
const [items, setItems] = React.useState([]);
|
|
3665
|
-
const isVisible = React.useMemo(() => {
|
|
3666
|
-
var _context;
|
|
3667
|
-
|
|
3668
|
-
return isSearchFilteringDisabledForTrigger || !triggerMenuParentSearchValue || typeof label === 'string' && _includesInstanceProperty__default["default"](_context = label.toLowerCase()).call(_context, triggerMenuParentSearchValue.toLowerCase());
|
|
3669
|
-
}, [triggerMenuParentSearchValue, label, isSearchFilteringDisabledForTrigger]);
|
|
3670
|
-
return isVisible ? /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.Sub, {
|
|
3671
|
-
onOpenChange: onIsOpenChange
|
|
3672
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubTrigger, _extends__default["default"]({
|
|
3673
|
-
"data-testid": triggerDataTestId,
|
|
3674
|
-
"aria-disabled": isDisabled,
|
|
3675
|
-
disabled: isDisabled,
|
|
3676
|
-
ref: itemRef
|
|
3677
|
-
}, subMenuTriggerProps, {
|
|
3678
|
-
className: classNames__default["default"](styles$2.menuItem, styles$2.subMenu, subMenuTriggerProps === null || subMenuTriggerProps === void 0 ? void 0 : subMenuTriggerProps.className),
|
|
3679
|
-
style: subMenuTriggerProps === null || subMenuTriggerProps === void 0 ? void 0 : subMenuTriggerProps.style
|
|
3680
|
-
}), label, /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronRightIcon, {
|
|
3681
|
-
className: styles$2.rightIcon
|
|
3682
|
-
})), /*#__PURE__*/React__default["default"].createElement(PaneContextProvider, {
|
|
3683
|
-
items: items,
|
|
3684
|
-
setItems: setItems,
|
|
3685
|
-
value: {
|
|
3686
|
-
dataTestId: paneDataTestId,
|
|
3687
|
-
searchValue: internalSearchValue,
|
|
3688
|
-
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren
|
|
3689
|
-
}
|
|
3690
|
-
}, /*#__PURE__*/React__default["default"].createElement(reactDropdownMenu.SubContent, _extends__default["default"]({}, rest, {
|
|
3691
|
-
className: classNames__default["default"](styles$2.flyout, className),
|
|
3692
|
-
loop: true,
|
|
3693
|
-
"data-testid": paneDataTestId,
|
|
3694
|
-
ref: mergeRefs(ref, paneRef)
|
|
3695
|
-
}), isSearchable && /*#__PURE__*/React__default["default"].createElement(MenuSearch, {
|
|
3696
|
-
setSearchValue: setSearchValue,
|
|
3697
|
-
items: items,
|
|
3698
|
-
paneRef: paneRef
|
|
3699
|
-
}), children))) : null;
|
|
3700
|
-
});
|
|
3701
|
-
|
|
3702
3343
|
const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
3703
3344
|
let {
|
|
3704
3345
|
role,
|
|
3705
3346
|
tabIndex = -1,
|
|
3706
|
-
children,
|
|
3347
|
+
children: label,
|
|
3707
3348
|
className,
|
|
3708
3349
|
disabled,
|
|
3709
3350
|
onSelect,
|
|
@@ -3713,7 +3354,6 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3713
3354
|
isHighlighted = false,
|
|
3714
3355
|
isMultiSelect = false,
|
|
3715
3356
|
isSelectable = false,
|
|
3716
|
-
label,
|
|
3717
3357
|
...rest
|
|
3718
3358
|
} = _ref;
|
|
3719
3359
|
const defaultRole = isSelectable ? isMultiSelect ? 'menuitemcheckbox' : 'menuitemradio' : 'menuitem';
|
|
@@ -3724,43 +3364,34 @@ const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3724
3364
|
}
|
|
3725
3365
|
};
|
|
3726
3366
|
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
[styles$
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
}),
|
|
3756
|
-
onClick: wrapEvent(onClick, handleSelect)
|
|
3757
|
-
}), isMultiSelect && /*#__PURE__*/React__default["default"].createElement(VisualCheckbox, {
|
|
3758
|
-
className: classNames__default["default"](styles$3.checkbox, {
|
|
3759
|
-
[styles$3.highlighted]: isHighlighted && !isSelected
|
|
3760
|
-
}),
|
|
3761
|
-
checked: isSelected,
|
|
3762
|
-
disabled: disabled
|
|
3763
|
-
}), children);
|
|
3367
|
+
return (
|
|
3368
|
+
/*#__PURE__*/
|
|
3369
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions
|
|
3370
|
+
React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
3371
|
+
ref: ref,
|
|
3372
|
+
role: role !== null && role !== void 0 ? role : defaultRole,
|
|
3373
|
+
tabIndex: tabIndex,
|
|
3374
|
+
"aria-disabled": disabled,
|
|
3375
|
+
"aria-checked": isSelectable ? isSelected : undefined,
|
|
3376
|
+
className: classNames__default["default"](className, styles$2.menuItem, {
|
|
3377
|
+
[styles$2.focus]: isHighlighted,
|
|
3378
|
+
[styles$2.selected]: isSelected
|
|
3379
|
+
}),
|
|
3380
|
+
onKeyDown: wrapEvent(onKeyDown, e => {
|
|
3381
|
+
if (e.key === ' ' || e.key === 'Enter') {
|
|
3382
|
+
handleSelect(e);
|
|
3383
|
+
e.preventDefault(); // prevent scroll
|
|
3384
|
+
}
|
|
3385
|
+
}),
|
|
3386
|
+
onClick: wrapEvent(onClick, handleSelect)
|
|
3387
|
+
}), isMultiSelect && /*#__PURE__*/React__default["default"].createElement(VisualCheckbox, {
|
|
3388
|
+
className: classNames__default["default"](styles$2.checkbox, {
|
|
3389
|
+
[styles$2.highlighted]: isHighlighted && !isSelected
|
|
3390
|
+
}),
|
|
3391
|
+
checked: isSelected,
|
|
3392
|
+
disabled: disabled
|
|
3393
|
+
}), label)
|
|
3394
|
+
);
|
|
3764
3395
|
});
|
|
3765
3396
|
|
|
3766
3397
|
const MenuAnchor = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -3785,10 +3416,10 @@ const MenuAnchor = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
3785
3416
|
return /*#__PURE__*/React__default["default"].createElement("button", _extends__default["default"]({}, rest, {
|
|
3786
3417
|
ref: ref,
|
|
3787
3418
|
type: "button",
|
|
3788
|
-
className: classNames__default["default"](className, styles$
|
|
3789
|
-
[styles$
|
|
3790
|
-
[styles$
|
|
3791
|
-
[styles$
|
|
3419
|
+
className: classNames__default["default"](className, styles$2.menuBtn, inputGroupContext.className, {
|
|
3420
|
+
[styles$2.unlabelledButton]: !label && label !== 0,
|
|
3421
|
+
[styles$2.small]: inputGroupContext.applySmall(small),
|
|
3422
|
+
[styles$2.formLabelled]: hasFormLabel
|
|
3792
3423
|
}),
|
|
3793
3424
|
"aria-haspopup": "menu",
|
|
3794
3425
|
"aria-disabled": disabled,
|
|
@@ -3796,11 +3427,11 @@ const MenuAnchor = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
3796
3427
|
onClick: disabled ? undefined : onClick,
|
|
3797
3428
|
onKeyDown: disabled ? undefined : onKeyDown
|
|
3798
3429
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3799
|
-
className: styles$
|
|
3430
|
+
className: styles$2.menuBtnLabel
|
|
3800
3431
|
}, label), /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
3801
|
-
className: classNames__default["default"](styles$
|
|
3802
|
-
[styles$
|
|
3803
|
-
[styles$
|
|
3432
|
+
className: classNames__default["default"](styles$2.rightIcon, {
|
|
3433
|
+
[styles$2.small]: inputGroupContext.applySmall(small),
|
|
3434
|
+
[styles$2.open]: isOpen
|
|
3804
3435
|
}),
|
|
3805
3436
|
"aria-hidden": "true"
|
|
3806
3437
|
}));
|
|
@@ -3819,23 +3450,23 @@ const MenuSearchBox = /*#__PURE__*/React__default["default"].forwardRef((_ref, r
|
|
|
3819
3450
|
} = useTranslation();
|
|
3820
3451
|
const searchText = translate('searchText');
|
|
3821
3452
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3822
|
-
className: styles$
|
|
3453
|
+
className: styles$2.searchBox
|
|
3823
3454
|
}, /*#__PURE__*/React__default["default"].createElement(icons_index.SearchIcon, {
|
|
3824
|
-
className: styles$
|
|
3455
|
+
className: styles$2.searchBoxIcon,
|
|
3825
3456
|
"aria-hidden": "true"
|
|
3826
3457
|
}), /*#__PURE__*/React__default["default"].createElement(Input$1, _extends__default["default"]({
|
|
3827
3458
|
ref: ref,
|
|
3828
3459
|
role: "searchbox",
|
|
3829
3460
|
"aria-label": searchText,
|
|
3830
3461
|
placeholder: searchText,
|
|
3831
|
-
className: styles$
|
|
3462
|
+
className: styles$2.searchBoxInput,
|
|
3832
3463
|
full: true
|
|
3833
3464
|
}, rest)));
|
|
3834
3465
|
});
|
|
3835
3466
|
|
|
3836
3467
|
const MenuSpinner = /*#__PURE__*/React__default["default"].forwardRef((_, ref) => /*#__PURE__*/React__default["default"].createElement(LoadingSpinner, {
|
|
3837
3468
|
ref: ref,
|
|
3838
|
-
className: styles$
|
|
3469
|
+
className: styles$2.menuSpinner,
|
|
3839
3470
|
show: true,
|
|
3840
3471
|
size: "small"
|
|
3841
3472
|
}));
|
|
@@ -3848,10 +3479,10 @@ const SubmenuAnchor = /*#__PURE__*/React__default["default"].forwardRef((_ref, r
|
|
|
3848
3479
|
} = _ref;
|
|
3849
3480
|
return /*#__PURE__*/React__default["default"].createElement(MenuItem, _extends__default["default"]({
|
|
3850
3481
|
"aria-haspopup": "menu",
|
|
3851
|
-
className: classNames__default["default"](className, styles$
|
|
3482
|
+
className: classNames__default["default"](className, styles$2.subMenu),
|
|
3852
3483
|
ref: ref
|
|
3853
3484
|
}, rest), label, /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronRightIcon, {
|
|
3854
|
-
className: styles$
|
|
3485
|
+
className: styles$2.rightIcon,
|
|
3855
3486
|
"aria-hidden": "true"
|
|
3856
3487
|
}));
|
|
3857
3488
|
});
|
|
@@ -4429,7 +4060,7 @@ const BaseMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4429
4060
|
onKeyDown: wrapEvent(onKeyDown, handleAnchorKeyDown),
|
|
4430
4061
|
isOpen: isOpen,
|
|
4431
4062
|
className: classNames__default["default"](className, {
|
|
4432
|
-
[styles$
|
|
4063
|
+
[styles$2.selected]: anchorLabel
|
|
4433
4064
|
})
|
|
4434
4065
|
}));
|
|
4435
4066
|
const closeAndFocusAnchor = React.useCallback(() => {
|
|
@@ -4448,7 +4079,7 @@ const BaseMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4448
4079
|
noResults = true;
|
|
4449
4080
|
listItems.push( /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4450
4081
|
key: "no-list-items",
|
|
4451
|
-
className: classNames__default["default"](styles$
|
|
4082
|
+
className: classNames__default["default"](styles$2.menuItem, styles$2.noMenuItems)
|
|
4452
4083
|
}, noMenuItemsToDisplayText));
|
|
4453
4084
|
}
|
|
4454
4085
|
|
|
@@ -4488,9 +4119,9 @@ const BaseMenu = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
4488
4119
|
maxWidth: maxFlyoutWidth !== null && maxFlyoutWidth !== void 0 ? maxFlyoutWidth : undefined,
|
|
4489
4120
|
width: maxFlyoutWidth !== null && maxFlyoutWidth !== void 0 ? maxFlyoutWidth : undefined
|
|
4490
4121
|
},
|
|
4491
|
-
menuItemContainerClass: styles$
|
|
4122
|
+
menuItemContainerClass: styles$2.menuItemContainer,
|
|
4492
4123
|
onMouseDown: preventClickOutside,
|
|
4493
|
-
className: classNames__default["default"](styles$
|
|
4124
|
+
className: classNames__default["default"](styles$2.contentPane, flyoutClassName),
|
|
4494
4125
|
highlightedIndex: highlightedIndex,
|
|
4495
4126
|
maxHeight: maxHeight,
|
|
4496
4127
|
minWidth: isSubmenu ? undefined : Math.min(350, Math.max(160, anchorRef === null || anchorRef === void 0 ? void 0 : (_anchorRef$current = anchorRef.current) === null || _anchorRef$current === void 0 ? void 0 : _anchorRef$current.offsetWidth)),
|
|
@@ -4614,6 +4245,25 @@ function isType(element, type) {
|
|
|
4614
4245
|
return element && element.type && element.type.render === type;
|
|
4615
4246
|
}
|
|
4616
4247
|
|
|
4248
|
+
const Menu = /*#__PURE__*/React__default["default"].forwardRef(function Menu(_ref, ref) {
|
|
4249
|
+
let {
|
|
4250
|
+
selectable,
|
|
4251
|
+
defaultLabel,
|
|
4252
|
+
defaultValue,
|
|
4253
|
+
selectedValue: externalSelectedValue,
|
|
4254
|
+
onSelectedValueChange,
|
|
4255
|
+
unstable_isMultiSelect,
|
|
4256
|
+
// Throw away since it's only part of SelectMenu
|
|
4257
|
+
isMultiSelect,
|
|
4258
|
+
// Throw away since it's only part of SelectMenu
|
|
4259
|
+
...rest
|
|
4260
|
+
} = _ref;
|
|
4261
|
+
return /*#__PURE__*/React__default["default"].createElement(BaseMenu, _extends__default["default"]({
|
|
4262
|
+
ref: ref,
|
|
4263
|
+
menuType: Menu
|
|
4264
|
+
}, rest));
|
|
4265
|
+
});
|
|
4266
|
+
|
|
4617
4267
|
const SelectMenu = /*#__PURE__*/React__default["default"].forwardRef(function SelectMenu(_ref, ref) {
|
|
4618
4268
|
let {
|
|
4619
4269
|
selectable,
|
|
@@ -4637,9 +4287,9 @@ const SelectMenu = /*#__PURE__*/React__default["default"].forwardRef(function Se
|
|
|
4637
4287
|
}, rest));
|
|
4638
4288
|
});
|
|
4639
4289
|
|
|
4640
|
-
var css_248z$1 = ".
|
|
4641
|
-
var styles$1 = {"pagination":"
|
|
4642
|
-
var stylesheet$1=".
|
|
4290
|
+
var css_248z$1 = "._396RS{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._DGP14{margin-right:8px}._WJv7a{margin-left:8px}._31cbo{margin:-10px -15px}._3TlM5{width:100%;text-align:center}";
|
|
4291
|
+
var styles$1 = {"pagination":"_396RS","previousButton":"_DGP14","nextButton":"_WJv7a","btnIcon":"_31cbo","input":"_3TlM5"};
|
|
4292
|
+
var stylesheet$1="._396RS{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._DGP14{margin-right:8px}._WJv7a{margin-left:8px}._31cbo{margin:-10px -15px}._3TlM5{width:100%;text-align:center}";
|
|
4643
4293
|
icons_index.styleInject(css_248z$1);
|
|
4644
4294
|
|
|
4645
4295
|
const {
|
|
@@ -4934,9 +4584,9 @@ const Pagination = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
4934
4584
|
}, children || /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(PaginationPreviousButton, null), Number(numPages) > 0 ? /*#__PURE__*/React__default["default"].createElement(PaginationPageInput, null) : null, /*#__PURE__*/React__default["default"].createElement(PaginationNextButton, null))));
|
|
4935
4585
|
});
|
|
4936
4586
|
|
|
4937
|
-
var css_248z = ".
|
|
4938
|
-
var styles = {"searchInput":"
|
|
4939
|
-
var stylesheet=".
|
|
4587
|
+
var css_248z = "._1823f{display:inline-block;position:relative}._fV2gX._fV2gX{padding-left:36px;padding-right:36px;width:100%}._fV2gX._fV2gX:disabled+._3E7Zg{fill-opacity:.6}._3E7Zg{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._3E7Zg._2-1JF{z-index:20}._2ZLCj{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._2ZLCj:hover{cursor:pointer}._2ZLCj:hover>._3A90z{fill:#32363a}._2ZLCj:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3A90z{fill:#515559}";
|
|
4588
|
+
var styles = {"searchInput":"_1823f","searchInputInput":"_fV2gX","searchInputSearchIcon":"_3E7Zg","usedWithinInputGroup":"_2-1JF","searchInputClearButton":"_2ZLCj","searchInputClearButtonIcon":"_3A90z"};
|
|
4589
|
+
var stylesheet="._1823f{display:inline-block;position:relative}._fV2gX._fV2gX{padding-left:36px;padding-right:36px;width:100%}._fV2gX._fV2gX:disabled+._3E7Zg{fill-opacity:.6}._3E7Zg{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._3E7Zg._2-1JF{z-index:20}._2ZLCj{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._2ZLCj:hover{cursor:pointer}._2ZLCj:hover>._3A90z{fill:#32363a}._2ZLCj:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._3A90z{fill:#515559}";
|
|
4940
4590
|
icons_index.styleInject(css_248z);
|
|
4941
4591
|
|
|
4942
4592
|
const SearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -5042,7 +4692,6 @@ const SearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
5042
4692
|
|
|
5043
4693
|
/* eslint-disable import/prefer-default-export */
|
|
5044
4694
|
|
|
5045
|
-
exports.BaseMenu = BaseMenu;
|
|
5046
4695
|
exports.Button = Button;
|
|
5047
4696
|
exports.Checkbox = Checkbox;
|
|
5048
4697
|
exports.DEFAULT_BREAKPOINTS = DEFAULT_BREAKPOINTS;
|
|
@@ -5066,10 +4715,7 @@ exports.InputGroupProvider = InputGroupProvider;
|
|
|
5066
4715
|
exports.Label = Label;
|
|
5067
4716
|
exports.LoadingSpinner = LoadingSpinner;
|
|
5068
4717
|
exports.Menu = Menu;
|
|
5069
|
-
exports.MenuButton = MenuButton;
|
|
5070
|
-
exports.MenuContextProvider = MenuContextProvider$2;
|
|
5071
4718
|
exports.MenuItem = MenuItem;
|
|
5072
|
-
exports.MenuPane = MenuPane;
|
|
5073
4719
|
exports.Pagination = Pagination;
|
|
5074
4720
|
exports.PaginationNextButton = PaginationNextButton;
|
|
5075
4721
|
exports.PaginationPageInput = PaginationPageInput;
|
|
@@ -5080,7 +4726,6 @@ exports.PortalTargetProvider = PortalTargetProvider;
|
|
|
5080
4726
|
exports.QuickSearchInput = QuickSearchInput;
|
|
5081
4727
|
exports.SearchInput = SearchInput;
|
|
5082
4728
|
exports.SelectMenu = SelectMenu;
|
|
5083
|
-
exports.SubMenu = SubMenu;
|
|
5084
4729
|
exports.Text = Text;
|
|
5085
4730
|
exports.TextOverflowTooltip = TextOverflowTooltip;
|
|
5086
4731
|
exports.Tooltip = Tooltip;
|
|
@@ -5094,7 +4739,7 @@ exports.getIsKeyboardUser = getIsKeyboardUser;
|
|
|
5094
4739
|
exports.getSubDataTestId = getSubDataTestId;
|
|
5095
4740
|
exports.mergeRefs = mergeRefs;
|
|
5096
4741
|
exports.setIsKeyboardUser = setIsKeyboardUser;
|
|
5097
|
-
exports.styles = styles$
|
|
4742
|
+
exports.styles = styles$9;
|
|
5098
4743
|
exports.useBreakpoints = useBreakpoints;
|
|
5099
4744
|
exports.useClickOutside = useClickOutside;
|
|
5100
4745
|
exports.useClickOutsidePortals = useClickOutsidePortals;
|
|
@@ -5110,7 +4755,6 @@ exports.useInputGroupContext = useInputGroupContext;
|
|
|
5110
4755
|
exports.useIsFocused = useIsFocused;
|
|
5111
4756
|
exports.useIsHovered = useIsHovered;
|
|
5112
4757
|
exports.useLatest = useLatest;
|
|
5113
|
-
exports.useMenuContext = useMenuContext$2;
|
|
5114
4758
|
exports.useMounted = useMounted;
|
|
5115
4759
|
exports.useMouseDrag = useMouseDrag;
|
|
5116
4760
|
exports.usePrevious = usePrevious;
|