@qualtrics/ui-react 2.27.0 → 2.29.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 +23 -0
- package/dist/__shared/cjs/{index-88aa3bce.js → index-c2d2f188.js} +707 -451
- package/dist/__shared/cjs/{index-e6893573.js → index-c9e48360.js} +3 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +54 -10
- 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/Dropdown.js +59 -7
- 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/ConditionSet.js +3 -4
- package/dist/components/LogicEditor/Controls.js +66 -48
- package/dist/components/LogicEditor/LogicEditor.js +34 -8
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/utils.js +4 -1
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio.js +25 -5
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/Radio/RadioGroup.js +16 -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/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +12 -2
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +54 -78
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/FormFieldWrapper.js +36 -0
- package/dist/next/Form/FormFields/InputField.js +8 -0
- package/dist/next/Form/index.js +2 -0
- package/dist/next/Form/useForm.js +298 -0
- package/dist/next/Form/useFormField.js +25 -0
- package/dist/next/Form/utils/createFormInstance.js +32 -0
- package/dist/next/Form/utils/useFormContext.js +9 -0
- package/dist/next/Input/Input.js +47 -7
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuPane.js +2 -2
- package/dist/next/Pagination/Pagination.css.js +9 -0
- package/dist/next/Pagination/Pagination.css.ts.vanilla.js +8 -0
- package/dist/next/Pagination/Pagination.js +166 -0
- package/dist/next/Pagination/RowDisplayCount.js +46 -0
- package/dist/next/Pagination/index.js +2 -0
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimeDropdown.js +9 -3
- package/dist/next/TimePicker/TimePicker.js +1 -1
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/ToggleButton.js +2 -2
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +170 -4
- package/dist/next/index.es.js +29 -23
- package/dist/next/index.js +1968 -1474
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +1 -1
- package/next/package.json +2 -2
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var classNames = require('classnames');
|
|
5
|
-
var icons_index = require('./index-
|
|
5
|
+
var icons_index = require('./index-c9e48360.js');
|
|
6
6
|
var _extends = require('@babel/runtime-corejs3/helpers/extends');
|
|
7
7
|
var reactPopper = require('react-popper');
|
|
8
8
|
var core = require('@popperjs/core');
|
|
@@ -42,10 +42,10 @@ var ReactFocusLock__default = /*#__PURE__*/_interopDefaultLegacy(ReactFocusLock)
|
|
|
42
42
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
43
43
|
var useResizeObserver__default = /*#__PURE__*/_interopDefaultLegacy(useResizeObserver$1);
|
|
44
44
|
|
|
45
|
-
var css_248z$
|
|
46
|
-
var AccordionStyles = {"accordion":"
|
|
47
|
-
var stylesheet$
|
|
48
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
45
|
+
var css_248z$K = "._IlCAN{width:100%;display:flex;flex-direction:column}._IlCAN._aH32U{grid-gap:20px;gap:20px}._R-G3w{display:flex;width:100%;border:none;outline:none;background-color:transparent;color:#32363a;font-size:14px;font-weight:700;line-height:18px;text-align:left;padding:10px 16px 10px 0;cursor:pointer}._R-G3w ._32D3C{margin-top:-3px}._kz0tG{flex:1}._TqcBi{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._utYgf ._R-G3w{border-radius:4px}._utYgf ._R-G3w:hover:not(._LUXRg){background-color:rgba(50,54,58,.08)}._utYgf ._R-G3w:active:not(._LUXRg){background-color:rgba(50,54,58,.11)}._jOoSU ._R-G3w{font-weight:400;padding-left:12px;border-top:1px solid #eee}._jOoSU ._R-G3w:hover:not(._LUXRg){background-color:rgba(50,54,58,.08)}._jOoSU ._R-G3w:active:not(._LUXRg){background-color:rgba(50,54,58,.11)}._aH32U ._IYD0v{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._aH32U ._IYD0v._tYGw8{box-shadow:none}._aH32U ._IYD0v._tYGw8 ._R-G3w{border-radius:6px}._aH32U ._R-G3w{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._aH32U ._R-G3w ._kz0tG{padding-left:20px}._aH32U ._R-G3w:hover:not(disabled){border:1px solid #c2c2c2}._aH32U ._R-G3w:active:not(._LUXRg){border:1px solid #898989}._aH32U ._TqcBi{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._tYGw8 ._TqcBi{display:none}._LUXRg{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._R-G3w.focus-visible,._R-G3w:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._R-G3w.focus-visible:before,._R-G3w:focus-visible:before{z-index:1}._jOoSU ._R-G3w.focus-visible,._jOoSU ._R-G3w:focus-visible{border-color:transparent}";
|
|
46
|
+
var AccordionStyles = {"accordion":"_IlCAN","block-variant":"_aH32U","header":"_R-G3w","headerIcon":"_32D3C","title":"_kz0tG","panel":"_TqcBi","default-variant":"_utYgf","disabled":"_LUXRg","outlined-variant":"_jOoSU","section":"_IYD0v","closed":"_tYGw8"};
|
|
47
|
+
var stylesheet$K="._IlCAN{width:100%;display:flex;flex-direction:column}._IlCAN._aH32U{grid-gap:20px;gap:20px}._R-G3w{display:flex;width:100%;border:none;outline:none;background-color:transparent;color:#32363a;font-size:14px;font-weight:700;line-height:18px;text-align:left;padding:10px 16px 10px 0;cursor:pointer}._R-G3w ._32D3C{margin-top:-3px}._kz0tG{flex:1}._TqcBi{padding:8px 16px 16px 24px;font-size:14px;line-height:20px}._utYgf ._R-G3w{border-radius:4px}._utYgf ._R-G3w:hover:not(._LUXRg){background-color:rgba(50,54,58,.08)}._utYgf ._R-G3w:active:not(._LUXRg){background-color:rgba(50,54,58,.11)}._jOoSU ._R-G3w{font-weight:400;padding-left:12px;border-top:1px solid #eee}._jOoSU ._R-G3w:hover:not(._LUXRg){background-color:rgba(50,54,58,.08)}._jOoSU ._R-G3w:active:not(._LUXRg){background-color:rgba(50,54,58,.11)}._aH32U ._IYD0v{border-radius:6px;box-shadow:0 3px 4px rgba(0,0,0,.05),0 6px 10px rgba(0,0,0,.05)}._aH32U ._IYD0v._tYGw8{box-shadow:none}._aH32U ._IYD0v._tYGw8 ._R-G3w{border-radius:6px}._aH32U ._R-G3w{border:1px solid #e5e5e5;border-radius:6px 6px 0 0;font-weight:400;padding:22px 20px}._aH32U ._R-G3w ._kz0tG{padding-left:20px}._aH32U ._R-G3w:hover:not(disabled){border:1px solid #c2c2c2}._aH32U ._R-G3w:active:not(._LUXRg){border:1px solid #898989}._aH32U ._TqcBi{padding:24px 20px;color:#6a6d70;border:1px solid #e5e5e5;border-top:none;border-radius:0 0 6px 6px}._tYGw8 ._TqcBi{display:none}._LUXRg{fill:rgba(81,85,89,.6);background-color:hsla(0,0%,100%,.6);color:rgba(50,54,58,.6);cursor:default}._R-G3w.focus-visible,._R-G3w:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;position:relative}._R-G3w.focus-visible:before,._R-G3w:focus-visible:before{z-index:1}._jOoSU ._R-G3w.focus-visible,._jOoSU ._R-G3w:focus-visible{border-color:transparent}";
|
|
48
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$K);}
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
51
|
* Determinines if DOM functions are available. Typically used to determine if rendering is happening client-side or server-side.
|
|
@@ -117,15 +117,15 @@ function filterChildren(children, queries) {
|
|
|
117
117
|
return [_filterChildren(children, queries, matchesList), matchesList];
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
var css_248z$
|
|
121
|
-
var styles$
|
|
122
|
-
var stylesheet$
|
|
123
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
120
|
+
var css_248z$J = "._ZdeCm{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}._ipTyz{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}._ipTyz._pQYzh._ipTyz:hover,._ipTyz._WDrbe{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._ipTyz._mOLLr{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._ipTyz._mOLLr._pQYzh._ipTyz._mOLLr:hover,._ipTyz._mOLLr._WDrbe{background-color:#e4effa}._ipTyz:active:not(._mOLLr):not([aria-disabled=true]){background-color:#e8e9e9}._MbvGC ._OpQns{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}._MbvGC ._xhDe8{display:none}._MbvGC:not(:first-child) ._xhDe8{display:block;margin:3.5px 0}._IQ8Kw{width:100%;height:40px}";
|
|
121
|
+
var styles$C = {"flyout":"_ZdeCm","flyoutOption":"_ipTyz","highlighted":"_WDrbe","hoverHighlight":"_pQYzh","selected":"_mOLLr","flyoutHeader":"_MbvGC","headerContent":"_OpQns","headerDivider":"_xhDe8","flyoutSpinner":"_IQ8Kw"};
|
|
122
|
+
var stylesheet$J="._ZdeCm{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}._ipTyz{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}._ipTyz._pQYzh._ipTyz:hover,._ipTyz._WDrbe{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._ipTyz._mOLLr{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._ipTyz._mOLLr._pQYzh._ipTyz._mOLLr:hover,._ipTyz._mOLLr._WDrbe{background-color:#e4effa}._ipTyz:active:not(._mOLLr):not([aria-disabled=true]){background-color:#e8e9e9}._MbvGC ._OpQns{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}._MbvGC ._xhDe8{display:none}._MbvGC:not(:first-child) ._xhDe8{display:block;margin:3.5px 0}._IQ8Kw{width:100%;height:40px}";
|
|
123
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$J);}
|
|
124
124
|
|
|
125
|
-
var css_248z$
|
|
126
|
-
var styles$
|
|
127
|
-
var stylesheet$
|
|
128
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
125
|
+
var css_248z$I = "._gNwVH{position:relative;display:inline-block}._gNwVH._WhE9c{min-height:20px;min-width:20px}._gNwVH._QF74b{min-height:25px;min-width:25px}._gNwVH._-hiLC{min-height:40px;min-width:40px}._gNwVH._Jf-QY{min-height:64px;min-width:64px}._gNwVH ._HYLqQ{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._gNwVH ._HYLqQ._WAngi{visibility:hidden}._gNwVH ._HYLqQ div{position:absolute;transform:rotate(20deg)}._gNwVH ._HYLqQ div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_HYLqQ .9s linear infinite}._gNwVH ._HYLqQ 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}._gNwVH ._HYLqQ div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._gNwVH ._HYLqQ div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._gNwVH ._HYLqQ div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._gNwVH ._HYLqQ div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._gNwVH ._HYLqQ div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._gNwVH ._HYLqQ div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._gNwVH ._HYLqQ div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._gNwVH ._HYLqQ div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._gNwVH ._HYLqQ div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._gNwVH ._Jf-QY div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._gNwVH ._WhE9c div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._gNwVH ._QF74b div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._gNwVH ._vkRO6 div div:nth-child(-n+9):after{background:#fff}._gNwVH ._n-J4s{width:100%;height:100%}._gNwVH ._n-J4s._7dUL1{pointer-events:none}._gNwVH ._n-J4s._WAngi{opacity:0}._gNwVH ._n-J4s._QGTe2{opacity:.5}@keyframes _HYLqQ{0%{opacity:1}to{opacity:0}}";
|
|
126
|
+
var styles$B = {"spinnerContainer":"_gNwVH","xs":"_WhE9c","small":"_QF74b","medium":"_-hiLC","large":"_Jf-QY","spinnerComponent":"_HYLqQ","hide":"_WAngi","inverted":"_vkRO6","spinnerContent":"_n-J4s","disablePointerEvents":"_7dUL1","fade":"_QGTe2"};
|
|
127
|
+
var stylesheet$I="._gNwVH{position:relative;display:inline-block}._gNwVH._WhE9c{min-height:20px;min-width:20px}._gNwVH._QF74b{min-height:25px;min-width:25px}._gNwVH._-hiLC{min-height:40px;min-width:40px}._gNwVH._Jf-QY{min-height:64px;min-width:64px}._gNwVH ._HYLqQ{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._gNwVH ._HYLqQ._WAngi{visibility:hidden}._gNwVH ._HYLqQ div{position:absolute;transform:rotate(20deg)}._gNwVH ._HYLqQ div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_HYLqQ .9s linear infinite}._gNwVH ._HYLqQ 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}._gNwVH ._HYLqQ div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._gNwVH ._HYLqQ div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._gNwVH ._HYLqQ div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._gNwVH ._HYLqQ div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._gNwVH ._HYLqQ div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._gNwVH ._HYLqQ div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._gNwVH ._HYLqQ div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._gNwVH ._HYLqQ div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._gNwVH ._HYLqQ div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._gNwVH ._Jf-QY div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._gNwVH ._WhE9c div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._gNwVH ._QF74b div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._gNwVH ._vkRO6 div div:nth-child(-n+9):after{background:#fff}._gNwVH ._n-J4s{width:100%;height:100%}._gNwVH ._n-J4s._7dUL1{pointer-events:none}._gNwVH ._n-J4s._WAngi{opacity:0}._gNwVH ._n-J4s._QGTe2{opacity:.5}@keyframes _HYLqQ{0%{opacity:1}to{opacity:0}}";
|
|
128
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$I);}
|
|
129
129
|
|
|
130
130
|
/* DO NOT MODIFY - THIS IS AN AUTO-GENERATED FILE */
|
|
131
131
|
var FALLBACK_LOCALIZED_TEXT = {
|
|
@@ -392,13 +392,13 @@ const LoadingSpinner = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
392
392
|
const defaultAriaLabel = translate('loading');
|
|
393
393
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
394
394
|
ref: ref,
|
|
395
|
-
className: classNames__default["default"](className, styles$
|
|
396
|
-
[styles$
|
|
395
|
+
className: classNames__default["default"](className, styles$B.spinnerContainer, {
|
|
396
|
+
[styles$B[size]]: !children
|
|
397
397
|
})
|
|
398
398
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
399
|
-
className: classNames__default["default"](styles$
|
|
400
|
-
[styles$
|
|
401
|
-
[styles$
|
|
399
|
+
className: classNames__default["default"](styles$B.spinnerComponent, styles$B[size], {
|
|
400
|
+
[styles$B.inverted]: inverted,
|
|
401
|
+
[styles$B.hide]: !show
|
|
402
402
|
}),
|
|
403
403
|
"data-loadingspinner": show || undefined,
|
|
404
404
|
role: role,
|
|
@@ -407,9 +407,9 @@ const LoadingSpinner = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
407
407
|
"aria-live": ariaLive,
|
|
408
408
|
"aria-hidden": ariaHidden
|
|
409
409
|
}, /*#__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$
|
|
410
|
+
className: classNames__default["default"](styles$B.spinnerContent, {
|
|
411
|
+
[styles$B[background]]: show,
|
|
412
|
+
[styles$B.disablePointerEvents]: show
|
|
413
413
|
})
|
|
414
414
|
}, children));
|
|
415
415
|
});
|
|
@@ -461,7 +461,7 @@ const Flyout = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
461
461
|
role: "option" // `aria-selected` is omitted because this option is not selectable
|
|
462
462
|
}, /*#__PURE__*/React__default["default"].createElement(LoadingSpinner, {
|
|
463
463
|
"aria-label": translate('loading'),
|
|
464
|
-
className: styles$
|
|
464
|
+
className: styles$C.flyoutSpinner,
|
|
465
465
|
show: true,
|
|
466
466
|
size: "small"
|
|
467
467
|
}));
|
|
@@ -471,7 +471,7 @@ const Flyout = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
471
471
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
472
472
|
id: id,
|
|
473
473
|
className: classNames__default["default"](className, {
|
|
474
|
-
[styles$
|
|
474
|
+
[styles$C.flyout]: !!content
|
|
475
475
|
}),
|
|
476
476
|
ref: ref,
|
|
477
477
|
role: role,
|
|
@@ -494,12 +494,12 @@ const FlyoutHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
494
494
|
} = _ref;
|
|
495
495
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
496
496
|
ref: ref,
|
|
497
|
-
className: classNames__default["default"](className, styles$
|
|
497
|
+
className: classNames__default["default"](className, styles$C.flyoutHeader),
|
|
498
498
|
role: "group",
|
|
499
499
|
"aria-label": title
|
|
500
500
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
501
501
|
role: "presentation",
|
|
502
|
-
className: styles$
|
|
502
|
+
className: styles$C.headerContent
|
|
503
503
|
}, title), children);
|
|
504
504
|
});
|
|
505
505
|
|
|
@@ -517,10 +517,10 @@ const FlyoutOption = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
517
517
|
// eslint-disable-next-line jsx-a11y/interactive-supports-focus
|
|
518
518
|
React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
519
519
|
ref: ref,
|
|
520
|
-
className: classNames__default["default"](className, styles$
|
|
521
|
-
[styles$
|
|
522
|
-
[styles$
|
|
523
|
-
[styles$
|
|
520
|
+
className: classNames__default["default"](className, styles$C.flyoutOption, {
|
|
521
|
+
[styles$C.hoverHighlight]: isHighlightedOnHover,
|
|
522
|
+
[styles$C.highlighted]: isHighlighted,
|
|
523
|
+
[styles$C.selected]: isSelected
|
|
524
524
|
}),
|
|
525
525
|
role: "option",
|
|
526
526
|
"aria-selected": isSelected
|
|
@@ -567,10 +567,10 @@ function mergeRefs() {
|
|
|
567
567
|
};
|
|
568
568
|
}
|
|
569
569
|
|
|
570
|
-
var css_248z$
|
|
570
|
+
var css_248z$H = "[data-popper-reference-hidden=true]{opacity:0;pointer-events:none}";
|
|
571
571
|
var Popper$1 = {};
|
|
572
|
-
var stylesheet$
|
|
573
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
572
|
+
var stylesheet$H="[data-popper-reference-hidden=true]{opacity:0;pointer-events:none}";
|
|
573
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$H);}
|
|
574
574
|
|
|
575
575
|
const {
|
|
576
576
|
Provider,
|
|
@@ -831,10 +831,10 @@ function wrapEvent(theirHandler, ourHandler) {
|
|
|
831
831
|
};
|
|
832
832
|
}
|
|
833
833
|
|
|
834
|
-
var css_248z$
|
|
835
|
-
var styles$
|
|
836
|
-
var stylesheet$
|
|
837
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
834
|
+
var css_248z$G = "._ZpqTy{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}._ZpqTy._LvJe-{color:#32363a;background-color:#fff}._ulULt{opacity:1;pointer-events:all}._shk3e,._shk3e>div{position:absolute;width:8px;height:8px;background:inherit}._shk3e{visibility:hidden;z-index:2000}._shk3e>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._shk3e{bottom:-4px}[data-popper-placement^=top]>._shk3e>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._shk3e{left:-5px}[data-popper-placement^=right]>._shk3e>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._shk3e{top:-5px}[data-popper-placement^=bottom]>._shk3e>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._shk3e{right:-4px}[data-popper-placement^=left]>._shk3e>div{border-bottom-color:transparent;border-left-color:transparent}._VEUgZ{position:absolute}[data-popper-placement^=top]>._VEUgZ{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._VEUgZ{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._VEUgZ{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._VEUgZ{top:0;right:-13px;width:17px;height:100%}";
|
|
835
|
+
var styles$A = {"tooltip":"_ZpqTy","lightTheme":"_LvJe-","visible":"_ulULt","arrow":"_shk3e","offsetBackplate":"_VEUgZ"};
|
|
836
|
+
var stylesheet$G="._ZpqTy{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}._ZpqTy._LvJe-{color:#32363a;background-color:#fff}._ulULt{opacity:1;pointer-events:all}._shk3e,._shk3e>div{position:absolute;width:8px;height:8px;background:inherit}._shk3e{visibility:hidden;z-index:2000}._shk3e>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._shk3e{bottom:-4px}[data-popper-placement^=top]>._shk3e>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._shk3e{left:-5px}[data-popper-placement^=right]>._shk3e>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._shk3e{top:-5px}[data-popper-placement^=bottom]>._shk3e>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._shk3e{right:-4px}[data-popper-placement^=left]>._shk3e>div{border-bottom-color:transparent;border-left-color:transparent}._VEUgZ{position:absolute}[data-popper-placement^=top]>._VEUgZ{bottom:-13px;left:0;width:100%;height:17px}[data-popper-placement^=right]>._VEUgZ{top:0;left:-13px;width:17px;height:100%}[data-popper-placement^=bottom]>._VEUgZ{top:-13px;left:0;width:100%;height:17px}[data-popper-placement^=left]>._VEUgZ{top:0;right:-13px;width:17px;height:100%}";
|
|
837
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$G);}
|
|
838
838
|
|
|
839
839
|
const useSSRLayoutEffect = function () {
|
|
840
840
|
const effectFunc = React.useMemo(() => canUseDOM() ? React.useLayoutEffect : React.useEffect, []);
|
|
@@ -1225,10 +1225,10 @@ function usePrevious(value) {
|
|
|
1225
1225
|
return ref.current;
|
|
1226
1226
|
}
|
|
1227
1227
|
|
|
1228
|
-
var css_248z$
|
|
1229
|
-
var classes = {"ariaLiveElement":"
|
|
1230
|
-
var stylesheet$
|
|
1231
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
1228
|
+
var css_248z$F = "._rAnU7{position:absolute;top:-10000px;left:-10000px}";
|
|
1229
|
+
var classes = {"ariaLiveElement":"_rAnU7"};
|
|
1230
|
+
var stylesheet$F="._rAnU7{position:absolute;top:-10000px;left:-10000px}";
|
|
1231
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$F);}
|
|
1232
1232
|
|
|
1233
1233
|
/**
|
|
1234
1234
|
* Sets up a live region in order to make screen reader announcements.
|
|
@@ -1671,9 +1671,9 @@ const Tooltip = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1671
1671
|
id: flyoutContainerId,
|
|
1672
1672
|
key: contentKey,
|
|
1673
1673
|
ref: mergeRefs(ref, flyoutRef),
|
|
1674
|
-
className: classNames__default["default"](className, styles$
|
|
1675
|
-
[styles$
|
|
1676
|
-
[styles$
|
|
1674
|
+
className: classNames__default["default"](className, styles$A.tooltip, {
|
|
1675
|
+
[styles$A.visible]: isVisible,
|
|
1676
|
+
[styles$A.lightTheme]: lightTheme
|
|
1677
1677
|
}),
|
|
1678
1678
|
style: {
|
|
1679
1679
|
zIndex,
|
|
@@ -1683,7 +1683,7 @@ const Tooltip = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1683
1683
|
"aria-hidden": ariaHidden
|
|
1684
1684
|
}), content, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1685
1685
|
"aria-hidden": true,
|
|
1686
|
-
className: styles$
|
|
1686
|
+
className: styles$A.offsetBackplate,
|
|
1687
1687
|
ref: flyoutOffsetBackplateRef
|
|
1688
1688
|
})),
|
|
1689
1689
|
modifiers: [{
|
|
@@ -1698,7 +1698,7 @@ const Tooltip = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
1698
1698
|
}
|
|
1699
1699
|
}],
|
|
1700
1700
|
arrow: isArrowRemoved ? undefined : /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1701
|
-
className: styles$
|
|
1701
|
+
className: styles$A.arrow
|
|
1702
1702
|
}, /*#__PURE__*/React__default["default"].createElement("div", null)),
|
|
1703
1703
|
portalTarget: portalTarget
|
|
1704
1704
|
});
|
|
@@ -1978,10 +1978,10 @@ const AccordionPanel = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
1978
1978
|
}, children);
|
|
1979
1979
|
});
|
|
1980
1980
|
|
|
1981
|
-
var css_248z$
|
|
1981
|
+
var css_248z$E = ".Banner_bannerContainer__1dfrm4q1{container-type:inline-size;container-name:Banner_bannerContainerName__1dfrm4q0}.Banner_banner__1dfrm4q2{background-color:#fff;border:1px solid #d9d9d9;border-radius:8px;padding:20px;display:flex;flex-direction:column;grid-gap:20px;gap:20px;fill:#0b6ed0;position:relative}.Banner_noIcon__1dfrm4q3{padding-top:58px}.Banner_bannerVariant_info__1dfrm4q6{background-color:#f7fafd;border-color:#0b6ed0;fill:#0b6ed0;padding:16px;grid-gap:16px;gap:16px}.Banner_bannerVariant_warn__1dfrm4q7{background-color:#fefaf7;border-color:#e9730c;fill:#e9730c;padding:16px;grid-gap:16px;gap:16px}.Banner_bannerVariant_error__1dfrm4q8{background-color:#fdf7f7;border-color:#b00;fill:#b00;padding:16px;grid-gap:16px;gap:16px}.Banner_bannerVariant_success__1dfrm4q9{background-color:#f7fbf9;border-color:#107e3e;fill:#107e3e;padding:16px;grid-gap:16px;gap:16px}.Banner_copy__1dfrm4qa{flex:1}.Banner_icon__1dfrm4qb{width:46px;height:46px;background-color:rgba(11,110,208,.1);border-radius:46px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}.Banner_bannerVariant_error__1dfrm4q8 .Banner_icon__1dfrm4qb,.Banner_bannerVariant_info__1dfrm4q6 .Banner_icon__1dfrm4qb,.Banner_bannerVariant_success__1dfrm4q9 .Banner_icon__1dfrm4qb,.Banner_bannerVariant_warn__1dfrm4q7 .Banner_icon__1dfrm4qb{width:24px;height:24px;background-color:transparent;border-radius:0}.Banner_title__1dfrm4qc{font-weight:700;font-size:16px;color:#32363a;max-width:800px;text-align:left;margin-bottom:8px;line-height:20px}.Banner_description__1dfrm4qd{font-size:14px;color:#515559;max-width:800px;text-align:left;line-height:19px}.Banner_bannerFooter__1dfrm4qe{margin-top:16px;display:flex;flex-direction:column;grid-gap:12px;gap:12px}.Banner_closeButton__1dfrm4qf{position:absolute;top:12px;right:12px}.Banner_noTitle__1dfrm4q4 .Banner_closeButton__1dfrm4qf{top:10px;right:10px}@container Banner_bannerContainerName__1dfrm4q0 (min-width: 481px){.Banner_banner__1dfrm4q2{flex-direction:row;padding-right:24px}.Banner_noIcon__1dfrm4q3{padding-top:20px}.Banner_dismissible__1dfrm4q5{padding-right:48px}.Banner_copy__1dfrm4qa{align-self:center}.Banner_bannerFooter__1dfrm4qe{flex-direction:row}}";
|
|
1982
1982
|
var Banner_css_ts_vanilla = {"Banner_bannerContainer__1dfrm4q1":"Banner_bannerContainer__1dfrm4q1","Banner_banner__1dfrm4q2":"Banner_banner__1dfrm4q2","Banner_noIcon__1dfrm4q3":"Banner_noIcon__1dfrm4q3","Banner_bannerVariant_info__1dfrm4q6":"Banner_bannerVariant_info__1dfrm4q6","Banner_bannerVariant_warn__1dfrm4q7":"Banner_bannerVariant_warn__1dfrm4q7","Banner_bannerVariant_error__1dfrm4q8":"Banner_bannerVariant_error__1dfrm4q8","Banner_bannerVariant_success__1dfrm4q9":"Banner_bannerVariant_success__1dfrm4q9","Banner_copy__1dfrm4qa":"Banner_copy__1dfrm4qa","Banner_icon__1dfrm4qb":"Banner_icon__1dfrm4qb","Banner_title__1dfrm4qc":"Banner_title__1dfrm4qc","Banner_description__1dfrm4qd":"Banner_description__1dfrm4qd","Banner_bannerFooter__1dfrm4qe":"Banner_bannerFooter__1dfrm4qe","Banner_closeButton__1dfrm4qf":"Banner_closeButton__1dfrm4qf","Banner_noTitle__1dfrm4q4":"Banner_noTitle__1dfrm4q4","Banner_dismissible__1dfrm4q5":"Banner_dismissible__1dfrm4q5"};
|
|
1983
|
-
var stylesheet$
|
|
1984
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
1983
|
+
var stylesheet$E=".Banner_bannerContainer__1dfrm4q1{container-type:inline-size;container-name:Banner_bannerContainerName__1dfrm4q0}.Banner_banner__1dfrm4q2{background-color:#fff;border:1px solid #d9d9d9;border-radius:8px;padding:20px;display:flex;flex-direction:column;grid-gap:20px;gap:20px;fill:#0b6ed0;position:relative}.Banner_noIcon__1dfrm4q3{padding-top:58px}.Banner_bannerVariant_info__1dfrm4q6{background-color:#f7fafd;border-color:#0b6ed0;fill:#0b6ed0;padding:16px;grid-gap:16px;gap:16px}.Banner_bannerVariant_warn__1dfrm4q7{background-color:#fefaf7;border-color:#e9730c;fill:#e9730c;padding:16px;grid-gap:16px;gap:16px}.Banner_bannerVariant_error__1dfrm4q8{background-color:#fdf7f7;border-color:#b00;fill:#b00;padding:16px;grid-gap:16px;gap:16px}.Banner_bannerVariant_success__1dfrm4q9{background-color:#f7fbf9;border-color:#107e3e;fill:#107e3e;padding:16px;grid-gap:16px;gap:16px}.Banner_copy__1dfrm4qa{flex:1}.Banner_icon__1dfrm4qb{width:46px;height:46px;background-color:rgba(11,110,208,.1);border-radius:46px;flex:0 0 auto;display:flex;align-items:center;justify-content:center}.Banner_bannerVariant_error__1dfrm4q8 .Banner_icon__1dfrm4qb,.Banner_bannerVariant_info__1dfrm4q6 .Banner_icon__1dfrm4qb,.Banner_bannerVariant_success__1dfrm4q9 .Banner_icon__1dfrm4qb,.Banner_bannerVariant_warn__1dfrm4q7 .Banner_icon__1dfrm4qb{width:24px;height:24px;background-color:transparent;border-radius:0}.Banner_title__1dfrm4qc{font-weight:700;font-size:16px;color:#32363a;max-width:800px;text-align:left;margin-bottom:8px;line-height:20px}.Banner_description__1dfrm4qd{font-size:14px;color:#515559;max-width:800px;text-align:left;line-height:19px}.Banner_bannerFooter__1dfrm4qe{margin-top:16px;display:flex;flex-direction:column;grid-gap:12px;gap:12px}.Banner_closeButton__1dfrm4qf{position:absolute;top:12px;right:12px}.Banner_noTitle__1dfrm4q4 .Banner_closeButton__1dfrm4qf{top:10px;right:10px}@container Banner_bannerContainerName__1dfrm4q0 (min-width: 481px){.Banner_banner__1dfrm4q2{flex-direction:row;padding-right:24px}.Banner_noIcon__1dfrm4q3{padding-top:20px}.Banner_dismissible__1dfrm4q5{padding-right:48px}.Banner_copy__1dfrm4qa{align-self:center}.Banner_bannerFooter__1dfrm4qe{flex-direction:row}}";
|
|
1984
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$E);}
|
|
1985
1985
|
|
|
1986
1986
|
var banner = 'Banner_banner__1dfrm4q2';
|
|
1987
1987
|
var bannerContainer = 'Banner_bannerContainer__1dfrm4q1';
|
|
@@ -2135,10 +2135,10 @@ function BreakpointSwitch(_ref) {
|
|
|
2135
2135
|
}, useResponsiveValue(childList));
|
|
2136
2136
|
}
|
|
2137
2137
|
|
|
2138
|
-
var css_248z$
|
|
2139
|
-
var buttonStyles = {"btn":"
|
|
2140
|
-
var stylesheet$
|
|
2141
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
2138
|
+
var css_248z$D = "._FTHsZ{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}._FTHsZ._4QMFo{padding:0 8px;height:26px;min-height:26px}._FTHsZ._lDNex{display:block;width:100%}._FTHsZ._rxEvI{cursor:not-allowed}._FTHsZ:active:focus,._FTHsZ:focus{outline:none}._FTHsZ._fyzTs{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._FTHsZ._fyzTs:hover:not(._rxEvI){background-color:#eee}._FTHsZ._fyzTs:active:not(._rxEvI){background-color:#e5e5e5}._FTHsZ._fyzTs._rxEvI{color:rgba(81,85,89,.4);fill:rgba(81,85,89,.4);background-color:hsla(0,0%,100%,.4);border:1px solid rgba(81,85,89,.4)}._FTHsZ._OxTS1{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._FTHsZ._OxTS1:hover:not(._rxEvI){background-color:#085caf;border-color:#085caf}._FTHsZ._OxTS1:active:not(._rxEvI){background-color:#0854a1;border-color:#0854a1}._FTHsZ._OxTS1._rxEvI{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._FTHsZ._8B-wv{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._FTHsZ._8B-wv:hover:not(._rxEvI){background-color:#eef5fc}._FTHsZ._8B-wv:active:not(._rxEvI){background-color:#e1edf9}._FTHsZ._8B-wv._rxEvI{background-color:hsla(0,0%,100%,.4);border-color:rgba(11,110,208,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._FTHsZ._f6Yz8{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._FTHsZ._f6Yz8:hover:not(._rxEvI){background-color:#eef5fc;border-color:#eef5fc}._FTHsZ._f6Yz8:active:not(._rxEvI){background-color:#e1edf9;border-color:#e1edf9}._FTHsZ._f6Yz8._rxEvI{background-color:hsla(0,0%,100%,.4);border-color:hsla(0,0%,100%,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._FTHsZ._xhe-x{color:#0b6ed0;fill:#0b6ed0;padding:0}._FTHsZ._xhe-x:hover:not(._rxEvI){color:#085caf}._FTHsZ._xhe-x:active:not(._rxEvI){color:#0854a1}._FTHsZ._xhe-x._rxEvI{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._FTHsZ._QhmLS{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._FTHsZ._QhmLS:hover:not(._rxEvI){background-color:#ffecec}._FTHsZ._QhmLS:active:not(._rxEvI){background-color:#ffdbdb}._FTHsZ._QhmLS._rxEvI{background-color:hsla(0,0%,100%,.4);border-color:rgba(187,0,0,.4);color:rgba(187,0,0,.4);fill:rgba(187,0,0,.4)}._FTHsZ.focus-visible,._FTHsZ:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2139
|
+
var buttonStyles = {"btn":"_FTHsZ","small":"_4QMFo","full":"_lDNex","disabled":"_rxEvI","default":"_fyzTs","primary":"_OxTS1","secondary":"_8B-wv","tertiary":"_f6Yz8","link":"_xhe-x","danger":"_QhmLS"};
|
|
2140
|
+
var stylesheet$D="._FTHsZ{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}._FTHsZ._4QMFo{padding:0 8px;height:26px;min-height:26px}._FTHsZ._lDNex{display:block;width:100%}._FTHsZ._rxEvI{cursor:not-allowed}._FTHsZ:active:focus,._FTHsZ:focus{outline:none}._FTHsZ._fyzTs{background-color:#fff;border-color:#515559;color:#515559;fill:#515559}._FTHsZ._fyzTs:hover:not(._rxEvI){background-color:#eee}._FTHsZ._fyzTs:active:not(._rxEvI){background-color:#e5e5e5}._FTHsZ._fyzTs._rxEvI{color:rgba(81,85,89,.4);fill:rgba(81,85,89,.4);background-color:hsla(0,0%,100%,.4);border:1px solid rgba(81,85,89,.4)}._FTHsZ._OxTS1{background-color:#0b6ed0;border-color:#0b6ed0;color:#fff;fill:#fff}._FTHsZ._OxTS1:hover:not(._rxEvI){background-color:#085caf;border-color:#085caf}._FTHsZ._OxTS1:active:not(._rxEvI){background-color:#0854a1;border-color:#0854a1}._FTHsZ._OxTS1._rxEvI{background-color:rgba(11,110,208,.4);border-color:transparent;fill:hsla(0,0%,100%,.4)}._FTHsZ._8B-wv{background-color:#fff;border-color:#0b6ed0;color:#0b6ed0;fill:#0b6ed0}._FTHsZ._8B-wv:hover:not(._rxEvI){background-color:#eef5fc}._FTHsZ._8B-wv:active:not(._rxEvI){background-color:#e1edf9}._FTHsZ._8B-wv._rxEvI{background-color:hsla(0,0%,100%,.4);border-color:rgba(11,110,208,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._FTHsZ._f6Yz8{background-color:#fff;border-color:#fff;color:#0b6ed0;fill:#0b6ed0}._FTHsZ._f6Yz8:hover:not(._rxEvI){background-color:#eef5fc;border-color:#eef5fc}._FTHsZ._f6Yz8:active:not(._rxEvI){background-color:#e1edf9;border-color:#e1edf9}._FTHsZ._f6Yz8._rxEvI{background-color:hsla(0,0%,100%,.4);border-color:hsla(0,0%,100%,.4);color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._FTHsZ._xhe-x{color:#0b6ed0;fill:#0b6ed0;padding:0}._FTHsZ._xhe-x:hover:not(._rxEvI){color:#085caf}._FTHsZ._xhe-x:active:not(._rxEvI){color:#0854a1}._FTHsZ._xhe-x._rxEvI{color:rgba(11,110,208,.4);fill:rgba(11,110,208,.4)}._FTHsZ._QhmLS{background-color:#fff;border-color:#b00;color:#b00;fill:#b00}._FTHsZ._QhmLS:hover:not(._rxEvI){background-color:#ffecec}._FTHsZ._QhmLS:active:not(._rxEvI){background-color:#ffdbdb}._FTHsZ._QhmLS._rxEvI{background-color:hsla(0,0%,100%,.4);border-color:rgba(187,0,0,.4);color:rgba(187,0,0,.4);fill:rgba(187,0,0,.4)}._FTHsZ.focus-visible,._FTHsZ:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2141
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$D);}
|
|
2142
2142
|
|
|
2143
2143
|
function createContextValue(value) {
|
|
2144
2144
|
return {
|
|
@@ -2212,10 +2212,10 @@ const Button = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
2212
2212
|
);
|
|
2213
2213
|
});
|
|
2214
2214
|
|
|
2215
|
-
var css_248z$
|
|
2216
|
-
var styles$
|
|
2217
|
-
var stylesheet$
|
|
2218
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
2215
|
+
var css_248z$C = "._FrmeP{display:inline-flex;align-items:stretch}._FrmeP._yxSwI{width:100%}._FrmeP ._RdNDV{margin:0;min-width:0}._FrmeP ._RdNDV:focus{z-index:20}._FrmeP ._RdNDV:hover{z-index:10}._FrmeP ._RdNDV._f-o3w{border:none}._FrmeP ._RdNDV._yxSwI{display:inline-flex;width:auto;flex-grow:1}._FrmeP ._RdNDV:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._FrmeP ._RdNDV:first-child._f-o3w{border-right:1px solid #fff}._FrmeP ._RdNDV:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._FrmeP ._RdNDV:not(:last-child):not(:first-child)._f-o3w{border-left:1px solid #fff;border-right:1px solid #fff}._FrmeP ._RdNDV:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._FrmeP ._RdNDV:last-child._f-o3w{border-left:1px solid #fff}._FrmeP ._RdNDV:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
2216
|
+
var styles$z = {"buttonGroup":"_FrmeP","full":"_yxSwI","buttonGroupElement":"_RdNDV","primary":"_f-o3w"};
|
|
2217
|
+
var stylesheet$C="._FrmeP{display:inline-flex;align-items:stretch}._FrmeP._yxSwI{width:100%}._FrmeP ._RdNDV{margin:0;min-width:0}._FrmeP ._RdNDV:focus{z-index:20}._FrmeP ._RdNDV:hover{z-index:10}._FrmeP ._RdNDV._f-o3w{border:none}._FrmeP ._RdNDV._yxSwI{display:inline-flex;width:auto;flex-grow:1}._FrmeP ._RdNDV:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._FrmeP ._RdNDV:first-child._f-o3w{border-right:1px solid #fff}._FrmeP ._RdNDV:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._FrmeP ._RdNDV:not(:last-child):not(:first-child)._f-o3w{border-left:1px solid #fff;border-right:1px solid #fff}._FrmeP ._RdNDV:last-child{margin:0;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._FrmeP ._RdNDV:last-child._f-o3w{border-left:1px solid #fff}._FrmeP ._RdNDV:only-child{margin:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:4px}";
|
|
2218
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$C);}
|
|
2219
2219
|
|
|
2220
2220
|
const ButtonGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
2221
2221
|
let {
|
|
@@ -2229,8 +2229,8 @@ const ButtonGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
2229
2229
|
role: "group"
|
|
2230
2230
|
}, rest, {
|
|
2231
2231
|
ref: ref,
|
|
2232
|
-
className: classNames__default["default"](className, styles$
|
|
2233
|
-
[styles$
|
|
2232
|
+
className: classNames__default["default"](className, styles$z.buttonGroup, {
|
|
2233
|
+
[styles$z.full]: full
|
|
2234
2234
|
})
|
|
2235
2235
|
}), React__default["default"].Children.map(children, child => {
|
|
2236
2236
|
if (! /*#__PURE__*/React__default["default"].isValidElement(child)) {
|
|
@@ -2238,9 +2238,9 @@ const ButtonGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
2238
2238
|
console.warn("Warning: \"".concat(child, "\" is invalid child of ButtonGroup!"));
|
|
2239
2239
|
return null;
|
|
2240
2240
|
}
|
|
2241
|
-
const buttonElementClasses = classNames__default["default"](child.props.className, styles$
|
|
2242
|
-
[styles$
|
|
2243
|
-
[styles$
|
|
2241
|
+
const buttonElementClasses = classNames__default["default"](child.props.className, styles$z.buttonGroupElement, {
|
|
2242
|
+
[styles$z.full]: full,
|
|
2243
|
+
[styles$z.primary]: child.props.kind === 'primary'
|
|
2244
2244
|
});
|
|
2245
2245
|
const buttonElementProps = {
|
|
2246
2246
|
className: buttonElementClasses,
|
|
@@ -2251,10 +2251,10 @@ const ButtonGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
2251
2251
|
}));
|
|
2252
2252
|
});
|
|
2253
2253
|
|
|
2254
|
-
var css_248z$
|
|
2255
|
-
var styles$
|
|
2256
|
-
var stylesheet$
|
|
2257
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
2254
|
+
var css_248z$B = "._ZWiuP{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._zQqJf,._ZWiuP{cursor:pointer;height:16px;width:16px}._zQqJf{position:absolute;opacity:0;z-index:10}._zQqJf:checked~._BD2bu>._NKNqX{fill-opacity:1}._zQqJf:checked:enabled~._BD2bu{border-color:transparent;background-color:#0b6ed0}._zQqJf:checked:enabled~._BD2bu>._NKNqX{fill:#fff}._zQqJf:checked:enabled:hover~._BD2bu{background-color:#085caf}._zQqJf:not(:checked):enabled:hover~._BD2bu{border-color:#0b6ed0}._zQqJf:disabled{cursor:not-allowed}._zQqJf:disabled~._BD2bu{opacity:.4}._gsqFh{color:#32363a;display:flex;align-items:center;cursor:pointer}._XPN4B{cursor:auto;color:hsla(0,0%,53.7%,.4)}._2qX1c{margin-right:12px;flex-shrink:0}._BD2bu{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}._NKNqX{fill:#0b6ed0;fill-opacity:0}._ZR-Lz{color:#32363a;margin-left:12px}._h0I--{display:flex;align-items:center}._h0I--:has(input:disabled) ._ZR-Lz{color:rgba(50,54,58,.4)}._h0I--:not(:has(input:disabled)) ._ZR-Lz{cursor:pointer}._zQqJf.focus-visible~._BD2bu,._zQqJf:focus-visible~._BD2bu{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2255
|
+
var styles$y = {"checkbox":"_ZWiuP","input":"_zQqJf","check":"_BD2bu","checkIcon":"_NKNqX","label":"_gsqFh","labelDisabled":"_XPN4B","wrappedInput":"_2qX1c","checkboxLabel":"_ZR-Lz","checkboxField":"_h0I--"};
|
|
2256
|
+
var stylesheet$B="._ZWiuP{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._zQqJf,._ZWiuP{cursor:pointer;height:16px;width:16px}._zQqJf{position:absolute;opacity:0;z-index:10}._zQqJf:checked~._BD2bu>._NKNqX{fill-opacity:1}._zQqJf:checked:enabled~._BD2bu{border-color:transparent;background-color:#0b6ed0}._zQqJf:checked:enabled~._BD2bu>._NKNqX{fill:#fff}._zQqJf:checked:enabled:hover~._BD2bu{background-color:#085caf}._zQqJf:not(:checked):enabled:hover~._BD2bu{border-color:#0b6ed0}._zQqJf:disabled{cursor:not-allowed}._zQqJf:disabled~._BD2bu{opacity:.4}._gsqFh{color:#32363a;display:flex;align-items:center;cursor:pointer}._XPN4B{cursor:auto;color:hsla(0,0%,53.7%,.4)}._2qX1c{margin-right:12px;flex-shrink:0}._BD2bu{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}._NKNqX{fill:#0b6ed0;fill-opacity:0}._ZR-Lz{color:#32363a;margin-left:12px}._h0I--{display:flex;align-items:center}._h0I--:has(input:disabled) ._ZR-Lz{color:rgba(50,54,58,.4)}._h0I--:not(:has(input:disabled)) ._ZR-Lz{cursor:pointer}._zQqJf.focus-visible~._BD2bu,._zQqJf:focus-visible~._BD2bu{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2257
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$B);}
|
|
2258
2258
|
|
|
2259
2259
|
const Check = props => /*#__PURE__*/React__default["default"].createElement("svg", _extends__default["default"]({}, props, {
|
|
2260
2260
|
width: "16",
|
|
@@ -2270,6 +2270,11 @@ const Check = props => /*#__PURE__*/React__default["default"].createElement("svg
|
|
|
2270
2270
|
d: "M12.7206 4.65576C13.1211 5.09851 13.087 5.78216 12.6442 6.18273L6.96856 11.3179C6.56187 11.6858 5.9441 11.6909 5.53136 11.3298L3.3692 9.4379C2.91986 9.04474 2.87433 8.36175 3.2675 7.91241C3.66067 7.46308 4.34365 7.41755 4.79299 7.81072L6.23123 9.06918L11.1936 4.57942C11.6363 4.17884 12.32 4.21302 12.7206 4.65576Z"
|
|
2271
2271
|
}));
|
|
2272
2272
|
|
|
2273
|
+
var css_248z$A = "._kwZoc{font-size:14px}._ePrV0{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._2NAta{color:#0b6ed0}";
|
|
2274
|
+
var styles$x = {"label":"_kwZoc","control":"_ePrV0","focused":"_2NAta"};
|
|
2275
|
+
var stylesheet$A="._kwZoc{font-size:14px}._ePrV0{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._2NAta{color:#0b6ed0}";
|
|
2276
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$A);}
|
|
2277
|
+
|
|
2273
2278
|
const {
|
|
2274
2279
|
Provider: FormFieldProvider,
|
|
2275
2280
|
useContext: useFormFieldContext
|
|
@@ -2305,73 +2310,197 @@ const useFormFieldType = type => {
|
|
|
2305
2310
|
return context;
|
|
2306
2311
|
};
|
|
2307
2312
|
|
|
2313
|
+
const Label = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
2314
|
+
let {
|
|
2315
|
+
children,
|
|
2316
|
+
className,
|
|
2317
|
+
...rest
|
|
2318
|
+
} = _ref;
|
|
2319
|
+
const {
|
|
2320
|
+
isFocused,
|
|
2321
|
+
hasControl
|
|
2322
|
+
} = useFormFieldLabel();
|
|
2323
|
+
const classes = classNames__default["default"](styles$x.label, className, {
|
|
2324
|
+
[styles$x.control]: hasControl,
|
|
2325
|
+
[styles$x.focused]: isFocused
|
|
2326
|
+
});
|
|
2327
|
+
return /*#__PURE__*/React__default["default"].createElement("label", _extends__default["default"]({}, rest, {
|
|
2328
|
+
ref: ref,
|
|
2329
|
+
className: classes
|
|
2330
|
+
}), children);
|
|
2331
|
+
});
|
|
2332
|
+
|
|
2333
|
+
var css_248z$z = "._-Sn-x{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._WR73Z{color:#6a6d70;fill:#6a6d70}._DhQj-{color:#b00;fill:#b00}._-Y6V3,._cXCSd{margin-left:-2px;margin-right:3px}";
|
|
2334
|
+
var styles$w = {"caption":"_-Sn-x","helperText":"_WR73Z","errorText":"_DhQj-","errorIcon":"_-Y6V3","readOnlyIcon":"_cXCSd"};
|
|
2335
|
+
var stylesheet$z="._-Sn-x{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._WR73Z{color:#6a6d70;fill:#6a6d70}._DhQj-{color:#b00;fill:#b00}._-Y6V3,._cXCSd{margin-left:-2px;margin-right:3px}";
|
|
2336
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$z);}
|
|
2337
|
+
|
|
2338
|
+
const ErrorText = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
2339
|
+
let {
|
|
2340
|
+
children,
|
|
2341
|
+
className,
|
|
2342
|
+
...rest
|
|
2343
|
+
} = _ref;
|
|
2344
|
+
const classes = classNames__default["default"](className, styles$w.caption, styles$w.errorText);
|
|
2345
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
2346
|
+
ref: ref,
|
|
2347
|
+
className: classes
|
|
2348
|
+
}), /*#__PURE__*/React__default["default"].createElement(icons_index.ErrorIcon, {
|
|
2349
|
+
size: "small",
|
|
2350
|
+
className: styles$w.errorIcon,
|
|
2351
|
+
"aria-hidden": "true"
|
|
2352
|
+
}), children);
|
|
2353
|
+
});
|
|
2354
|
+
|
|
2355
|
+
const HelperText = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
2356
|
+
let {
|
|
2357
|
+
children,
|
|
2358
|
+
className,
|
|
2359
|
+
...rest
|
|
2360
|
+
} = _ref;
|
|
2361
|
+
const classes = classNames__default["default"](className, styles$w.caption, styles$w.helperText);
|
|
2362
|
+
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
2363
|
+
ref: ref,
|
|
2364
|
+
className: classes
|
|
2365
|
+
}), children);
|
|
2366
|
+
});
|
|
2367
|
+
|
|
2368
|
+
var css_248z$y = "._77puO{margin:6px 0}._B4Ftu{line-height:20px;color:#6a6d70;display:flex}._jcbeB:has([aria-expanded=true]) ._B4Ftu,._jcbeB[focus-within] ._B4Ftu{color:#0b6ed0}._jcbeB:focus-within ._B4Ftu,._jcbeB:has([aria-expanded=true]) ._B4Ftu{color:#0b6ed0}._jcbeB:has(input:disabled) ._B4Ftu{color:rgba(50,54,58,.4)}._jcbeB:not(:has(input:disabled)) ._B4Ftu{cursor:pointer}";
|
|
2369
|
+
var styles$v = {"input":"_77puO","label":"_B4Ftu","formFieldWrapper":"_jcbeB"};
|
|
2370
|
+
var stylesheet$y="._77puO{margin:6px 0}._B4Ftu{line-height:20px;color:#6a6d70;display:flex}._jcbeB:has([aria-expanded=true]) ._B4Ftu,._jcbeB[focus-within] ._B4Ftu{color:#0b6ed0}._jcbeB:focus-within ._B4Ftu,._jcbeB:has([aria-expanded=true]) ._B4Ftu{color:#0b6ed0}._jcbeB:has(input:disabled) ._B4Ftu{color:rgba(50,54,58,.4)}._jcbeB:not(:has(input:disabled)) ._B4Ftu{cursor:pointer}";
|
|
2371
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$y);}
|
|
2372
|
+
|
|
2373
|
+
const FormFieldWrapper = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
2374
|
+
let {
|
|
2375
|
+
className,
|
|
2376
|
+
inputId,
|
|
2377
|
+
'data-testid': dataTestId,
|
|
2378
|
+
label,
|
|
2379
|
+
helperText,
|
|
2380
|
+
errorText,
|
|
2381
|
+
children,
|
|
2382
|
+
...rest
|
|
2383
|
+
} = _ref;
|
|
2384
|
+
return /*#__PURE__*/React__default["default"].createElement("span", _extends__default["default"]({
|
|
2385
|
+
className: classNames__default["default"](styles$v.formFieldWrapper, className),
|
|
2386
|
+
ref: ref
|
|
2387
|
+
}, rest), label && /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
2388
|
+
className: styles$v.label,
|
|
2389
|
+
htmlFor: inputId,
|
|
2390
|
+
"data-testid": getSubDataTestId(dataTestId, 'label')
|
|
2391
|
+
}, label), children, helperText && /*#__PURE__*/React__default["default"].createElement(HelperText, {
|
|
2392
|
+
"data-testid": getSubDataTestId(dataTestId, 'helper-text')
|
|
2393
|
+
}, helperText), errorText && /*#__PURE__*/React__default["default"].createElement(ErrorText, {
|
|
2394
|
+
"data-testid": getSubDataTestId(dataTestId, 'error-text')
|
|
2395
|
+
}, errorText));
|
|
2396
|
+
});
|
|
2397
|
+
|
|
2398
|
+
const {
|
|
2399
|
+
Provider: FormProvider,
|
|
2400
|
+
useContext: useFormContext
|
|
2401
|
+
} = createContextUtilities({});
|
|
2402
|
+
|
|
2403
|
+
// TODO
|
|
2404
|
+
// Since strong typing is not possible with generics across context, this register
|
|
2405
|
+
// function will have weaker TypeScript/autocomplete than the useForm register.
|
|
2406
|
+
// We may want to consider logging a warning or throwing a runtime error if something
|
|
2407
|
+
// goes wrong to compensate for this gap.
|
|
2408
|
+
|
|
2409
|
+
function useFormField() {
|
|
2410
|
+
const {
|
|
2411
|
+
register,
|
|
2412
|
+
formState
|
|
2413
|
+
} = useFormContext();
|
|
2414
|
+
|
|
2415
|
+
// const { values, touched, errors, formError, isSubmitting } = formState;
|
|
2416
|
+
|
|
2417
|
+
return {
|
|
2418
|
+
register,
|
|
2419
|
+
formValues: formState === null || formState === void 0 ? void 0 : formState.values,
|
|
2420
|
+
formTouched: formState === null || formState === void 0 ? void 0 : formState.touched,
|
|
2421
|
+
fieldErrors: formState === null || formState === void 0 ? void 0 : formState.errors
|
|
2422
|
+
};
|
|
2423
|
+
}
|
|
2424
|
+
|
|
2308
2425
|
const Checkbox = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
2426
|
+
var _ref2, _ref3, _ref4;
|
|
2309
2427
|
let {
|
|
2310
2428
|
id,
|
|
2311
2429
|
className,
|
|
2312
2430
|
checked,
|
|
2313
2431
|
defaultChecked,
|
|
2314
2432
|
disabled = false,
|
|
2315
|
-
onChange,
|
|
2433
|
+
onChange: externalOnChange,
|
|
2316
2434
|
value,
|
|
2317
2435
|
name,
|
|
2436
|
+
label,
|
|
2437
|
+
errorText,
|
|
2438
|
+
helperText,
|
|
2318
2439
|
inputProps,
|
|
2319
2440
|
'aria-label': externalAriaLabel,
|
|
2320
2441
|
'aria-labelledby': externalAriaLabelledBy,
|
|
2321
2442
|
'aria-describedby': externalAriaDescribedBy,
|
|
2443
|
+
'data-testid': dataTestId,
|
|
2322
2444
|
...rest
|
|
2323
2445
|
} = _ref;
|
|
2446
|
+
const {
|
|
2447
|
+
register,
|
|
2448
|
+
fieldErrors
|
|
2449
|
+
} = useFormField();
|
|
2450
|
+
const inputId = useId(id);
|
|
2451
|
+
const registerProps = name && register ? register(name, {
|
|
2452
|
+
type: 'checkbox'
|
|
2453
|
+
}) : undefined;
|
|
2454
|
+
const onChange = e => {
|
|
2455
|
+
var _inputProps$onChange;
|
|
2456
|
+
registerProps === null || registerProps === void 0 || registerProps.onChange(e);
|
|
2457
|
+
externalOnChange === null || externalOnChange === void 0 || externalOnChange(e);
|
|
2458
|
+
inputProps === null || inputProps === void 0 || (_inputProps$onChange = inputProps.onChange) === null || _inputProps$onChange === void 0 || _inputProps$onChange.call(inputProps, e);
|
|
2459
|
+
};
|
|
2460
|
+
const onBlur = e => {
|
|
2461
|
+
var _inputProps$onBlur;
|
|
2462
|
+
registerProps === null || registerProps === void 0 || registerProps.onBlur(e);
|
|
2463
|
+
inputProps === null || inputProps === void 0 || (_inputProps$onBlur = inputProps.onBlur) === null || _inputProps$onBlur === void 0 || _inputProps$onBlur.call(inputProps, e);
|
|
2464
|
+
};
|
|
2324
2465
|
const {
|
|
2325
2466
|
helperTextId: formFieldHelperTextId,
|
|
2326
2467
|
errorTextId: formFieldErrorTextId
|
|
2327
2468
|
} = useFormFieldContext();
|
|
2328
2469
|
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId, inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-describedby']);
|
|
2329
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2470
|
+
return /*#__PURE__*/React__default["default"].createElement(FormFieldWrapper, _extends__default["default"]({
|
|
2471
|
+
inputId: inputId,
|
|
2472
|
+
"data-testid": dataTestId,
|
|
2473
|
+
helperText: helperText,
|
|
2474
|
+
errorText: errorText !== null && errorText !== void 0 ? errorText : name && (fieldErrors === null || fieldErrors === void 0 ? void 0 : fieldErrors[name]),
|
|
2475
|
+
className: className,
|
|
2476
|
+
ref: ref
|
|
2477
|
+
}, rest), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2478
|
+
className: styles$y.checkboxField
|
|
2479
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2480
|
+
className: styles$y.checkbox
|
|
2481
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", _extends__default["default"]({}, inputProps, {
|
|
2333
2482
|
name: name !== null && name !== void 0 ? name : inputProps === null || inputProps === void 0 ? void 0 : inputProps.name,
|
|
2334
|
-
className: classNames__default["default"](styles$
|
|
2483
|
+
className: classNames__default["default"](styles$y.input, inputProps === null || inputProps === void 0 ? void 0 : inputProps.className),
|
|
2335
2484
|
type: "checkbox",
|
|
2336
|
-
id: id !== null && id !== void 0 ? id : inputProps === null || inputProps === void 0 ? void 0 : inputProps.id,
|
|
2337
|
-
checked: checked !== null && checked !== void 0 ? checked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked,
|
|
2485
|
+
id: (_ref2 = id !== null && id !== void 0 ? id : inputProps === null || inputProps === void 0 ? void 0 : inputProps.id) !== null && _ref2 !== void 0 ? _ref2 : inputId,
|
|
2486
|
+
checked: (_ref3 = checked !== null && checked !== void 0 ? checked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked) !== null && _ref3 !== void 0 ? _ref3 : registerProps === null || registerProps === void 0 ? void 0 : registerProps.checked,
|
|
2338
2487
|
defaultChecked: defaultChecked !== null && defaultChecked !== void 0 ? defaultChecked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.defaultChecked,
|
|
2339
2488
|
disabled: disabled !== null && disabled !== void 0 ? disabled : inputProps === null || inputProps === void 0 ? void 0 : inputProps.disabled,
|
|
2340
|
-
onChange: disabled ? undefined : onChange
|
|
2489
|
+
onChange: disabled ? undefined : onChange,
|
|
2490
|
+
onBlur: onBlur,
|
|
2341
2491
|
value: value !== null && value !== void 0 ? value : inputProps === null || inputProps === void 0 ? void 0 : inputProps.value,
|
|
2342
2492
|
"aria-label": externalAriaLabel !== null && externalAriaLabel !== void 0 ? externalAriaLabel : inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-label'],
|
|
2343
2493
|
"aria-labelledby": externalAriaLabelledBy !== null && externalAriaLabelledBy !== void 0 ? externalAriaLabelledBy : inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-labelledby'],
|
|
2344
|
-
"aria-describedby": internalAriaDescribedby
|
|
2494
|
+
"aria-describedby": internalAriaDescribedby,
|
|
2495
|
+
ref: mergeRefs(registerProps === null || registerProps === void 0 ? void 0 : registerProps.ref, inputProps === null || inputProps === void 0 ? void 0 : inputProps.ref)
|
|
2345
2496
|
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
2346
|
-
className: styles$
|
|
2497
|
+
className: styles$y.check
|
|
2347
2498
|
}, /*#__PURE__*/React__default["default"].createElement(Check, {
|
|
2348
|
-
className: styles$
|
|
2349
|
-
})))
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
var styles$w = {"label":"_H9rpG","control":"_jSjie","focused":"_hEpDs"};
|
|
2354
|
-
var stylesheet$z="._H9rpG{font-size:14px}._jSjie{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._hEpDs{color:#0b6ed0}";
|
|
2355
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$z);}
|
|
2356
|
-
|
|
2357
|
-
const Label = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
2358
|
-
let {
|
|
2359
|
-
children,
|
|
2360
|
-
className,
|
|
2361
|
-
...rest
|
|
2362
|
-
} = _ref;
|
|
2363
|
-
const {
|
|
2364
|
-
isFocused,
|
|
2365
|
-
hasControl
|
|
2366
|
-
} = useFormFieldLabel();
|
|
2367
|
-
const classes = classNames__default["default"](styles$w.label, className, {
|
|
2368
|
-
[styles$w.control]: hasControl,
|
|
2369
|
-
[styles$w.focused]: isFocused
|
|
2370
|
-
});
|
|
2371
|
-
return /*#__PURE__*/React__default["default"].createElement("label", _extends__default["default"]({}, rest, {
|
|
2372
|
-
ref: ref,
|
|
2373
|
-
className: classes
|
|
2374
|
-
}), children);
|
|
2499
|
+
className: styles$y.checkIcon
|
|
2500
|
+
}))), label && /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
2501
|
+
htmlFor: (_ref4 = id !== null && id !== void 0 ? id : inputProps === null || inputProps === void 0 ? void 0 : inputProps.id) !== null && _ref4 !== void 0 ? _ref4 : inputId,
|
|
2502
|
+
className: styles$y.checkboxLabel
|
|
2503
|
+
}, label)));
|
|
2375
2504
|
});
|
|
2376
2505
|
|
|
2377
2506
|
const CheckboxField = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -2391,12 +2520,12 @@ const CheckboxField = /*#__PURE__*/React__default["default"].forwardRef((_ref, r
|
|
|
2391
2520
|
return /*#__PURE__*/React__default["default"].createElement(Label, _extends__default["default"]({}, rest, {
|
|
2392
2521
|
ref: ref,
|
|
2393
2522
|
htmlFor: id,
|
|
2394
|
-
className: classNames__default["default"](className, styles$
|
|
2395
|
-
[styles$
|
|
2523
|
+
className: classNames__default["default"](className, styles$y.label, {
|
|
2524
|
+
[styles$y.labelDisabled]: disabled
|
|
2396
2525
|
})
|
|
2397
2526
|
}), /*#__PURE__*/React__default["default"].createElement(Checkbox, {
|
|
2398
2527
|
inputProps: inputProps,
|
|
2399
|
-
className: styles$
|
|
2528
|
+
className: styles$y.wrappedInput,
|
|
2400
2529
|
id: id,
|
|
2401
2530
|
checked: checked,
|
|
2402
2531
|
defaultChecked: defaultChecked,
|
|
@@ -2407,10 +2536,10 @@ const CheckboxField = /*#__PURE__*/React__default["default"].forwardRef((_ref, r
|
|
|
2407
2536
|
}), label);
|
|
2408
2537
|
});
|
|
2409
2538
|
|
|
2410
|
-
var css_248z$
|
|
2411
|
-
var styles$
|
|
2412
|
-
var stylesheet$
|
|
2413
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
2539
|
+
var css_248z$x = "._15ziu{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}._15ziu::-moz-placeholder{color:#515559;opacity:1}._15ziu::placeholder{color:#515559;opacity:1}._15ziu:hover{cursor:pointer;background-color:#f5f5f5}._15ziu:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._15ziu._-Ow1J{border-color:#b00}._15ziu._-Ow1J:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._15ziu:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._15ziu:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._15ziu:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._15ziu._93BjW{height:auto}._15ziu._93BjW::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._15ziu._BO7z8{display:block;width:100%}._15ziu._eZQ9V{padding:4px 8px}input._15ziu._eZQ9V{height:26px;min-height:26px}[type=number]._15ziu{-moz-appearance:textfield}[type=number]._15ziu::-webkit-inner-spin-button,[type=number]._15ziu::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._qijvA{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._qijvA:hover{cursor:pointer}._qijvA._uTV6P{color:#0b6ed0}._8jFuc{margin-top:4px}";
|
|
2540
|
+
var styles$u = {"input":"_15ziu","invalid":"_-Ow1J","multiline":"_93BjW","full":"_BO7z8","small":"_eZQ9V","label":"_qijvA","focused":"_uTV6P","wrappedInput":"_8jFuc"};
|
|
2541
|
+
var stylesheet$x="._15ziu{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}._15ziu::-moz-placeholder{color:#515559;opacity:1}._15ziu::placeholder{color:#515559;opacity:1}._15ziu:hover{cursor:pointer;background-color:#f5f5f5}._15ziu:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._15ziu._-Ow1J{border-color:#b00}._15ziu._-Ow1J:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._15ziu:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._15ziu:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._15ziu:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._15ziu._93BjW{height:auto}._15ziu._93BjW::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._15ziu._BO7z8{display:block;width:100%}._15ziu._eZQ9V{padding:4px 8px}input._15ziu._eZQ9V{height:26px;min-height:26px}[type=number]._15ziu{-moz-appearance:textfield}[type=number]._15ziu::-webkit-inner-spin-button,[type=number]._15ziu::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._qijvA{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._qijvA:hover{cursor:pointer}._qijvA._uTV6P{color:#0b6ed0}._8jFuc{margin-top:4px}";
|
|
2542
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$x);}
|
|
2414
2543
|
|
|
2415
2544
|
const Input$1 = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
2416
2545
|
let {
|
|
@@ -2436,11 +2565,11 @@ const Input$1 = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
2436
2565
|
isReadOnly: formFieldIsReadOnly
|
|
2437
2566
|
} = useFormFieldContext();
|
|
2438
2567
|
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId);
|
|
2439
|
-
const classes = classNames__default["default"](styles$
|
|
2440
|
-
[styles$
|
|
2441
|
-
[styles$
|
|
2442
|
-
[styles$
|
|
2443
|
-
[styles$
|
|
2568
|
+
const classes = classNames__default["default"](styles$u.input, inputGroupContext.className, inputGroupContext.inputClassName, {
|
|
2569
|
+
[styles$u.full]: inputGroupContext.applyFull(full),
|
|
2570
|
+
[styles$u.invalid]: invalid,
|
|
2571
|
+
[styles$u.small]: inputGroupContext.applySmall(small),
|
|
2572
|
+
[styles$u.multiline]: multiline
|
|
2444
2573
|
}, className);
|
|
2445
2574
|
const commonProps = {
|
|
2446
2575
|
...rest,
|
|
@@ -2495,23 +2624,23 @@ const InputField = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
2495
2624
|
return /*#__PURE__*/React__default["default"].createElement(Label, _extends__default["default"]({
|
|
2496
2625
|
htmlFor: id,
|
|
2497
2626
|
"data-testid": dataTestId,
|
|
2498
|
-
className: classNames__default["default"](className, styles$
|
|
2499
|
-
[styles$
|
|
2627
|
+
className: classNames__default["default"](className, styles$u.label, labelClassName, {
|
|
2628
|
+
[styles$u.focused]: focused
|
|
2500
2629
|
}),
|
|
2501
2630
|
style: style
|
|
2502
2631
|
}, labelPropsWithoutClass), label, /*#__PURE__*/React__default["default"].createElement(Input$1, _extends__default["default"]({
|
|
2503
2632
|
id: id,
|
|
2504
2633
|
ref: ref,
|
|
2505
|
-
className: classNames__default["default"](styles$
|
|
2634
|
+
className: classNames__default["default"](styles$u.wrappedInput, inputClassName),
|
|
2506
2635
|
onBlur: handleBlur,
|
|
2507
2636
|
onFocus: handleFocus
|
|
2508
2637
|
}, rest, inputPropsWithoutClass)));
|
|
2509
2638
|
});
|
|
2510
2639
|
|
|
2511
|
-
var css_248z$
|
|
2512
|
-
var styles$
|
|
2513
|
-
var stylesheet$
|
|
2514
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
2640
|
+
var css_248z$w = "._zAPaO{display:flex;line-height:1.15}._zAPaO ._9jaMv{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._zAPaO ._9jaMv:hover:not(._YBw7x){background-color:#f5f5f5}._zAPaO ._9jaMv._YBw7x{cursor:not-allowed;fill:rgba(81,85,89,.4)}._zAPaO ._9jaMv:active:not(._YBw7x){background-color:#eee}._zAPaO ._-dLLj{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._zAPaO ._-dLLj._YBw7x{border-color:#d9d9d9}._zAPaO ._GNfcv{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:18px 18px;background-position:0 0,9px 0,9px -9px,0 9px}._zAPaO ._Cbp3o{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._zAPaO ._Cbp3o._YBw7x{border-color:#d9d9d9}._zAPaO ._CTA-F{height:36px;border:1px solid #898989;border-width:1px 0}._zAPaO ._CTA-F._YBw7x{border-color:#d9d9d9}._zAPaO ._rD9MQ{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._zAPaO ._qAgao{position:absolute;top:10px;left:13px;font-size:14px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._zAPaO ._qAgao._KLJLQ{color:#9d9fa1}._9jaMv.focus-visible,._9jaMv:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._ri4sL{width:264px;padding:8px;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1);line-height:1.15}._ri4sL ._2-x-P{position:relative;width:246px;height:150px;border-radius:4px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);background-origin:border-box}._ri4sL ._Fa0vR{position:absolute;width:12px;height:12px;border-radius:50%;border:1px solid #fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5);outline:none;cursor:pointer}._ri4sL ._jPOri{display:flex;justify-content:space-between;margin:12px 0}._ri4sL ._jPOri._UGe8W{margin-bottom:0}._ri4sL ._JleIx{display:flex}._ri4sL ._KPXsg{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._ri4sL ._enXHm{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._ri4sL ._Rgr6d{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:19px 19px;background-position:0 0,9.5px 0,9.5px -9.5px,0 9.5px;border-radius:0 2px 2px 0}._ri4sL ._Srum2{width:202px;height:38px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(90deg,red,red 2%,#ff0 18%,#0f0 34%,#0ff 50%,#00f 66%,#f0f 82%,red 98%,red)}._ri4sL ._Srum2._ECTpm{height:16px;margin-bottom:6px}._ri4sL ._tCJvD{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:38px;outline:none;cursor:pointer;top:-1px}._ri4sL ._tCJvD._ECTpm{height:16px}._ri4sL ._mzBKy{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:16px 16px;background-position:0 0,8px 0,8px -8px,0 8px;border-radius:1px}._ri4sL ._RPeY8{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._ri4sL ._RqtXx{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:16px;outline:none;cursor:pointer;top:-1px}._ri4sL ._58fi9{display:flex;justify-content:space-between}._ri4sL ._Lkq0o{display:flex;flex-direction:column;align-items:center}._ri4sL ._Lkq0o._SeqVf{margin-left:4px}._ri4sL ._YFRpJ{position:absolute;top:3px;left:5px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._ri4sL ._HFCt5{padding:3px 4px 3px 13px!important;width:78px}._ri4sL ._zNYKE{text-align:right;padding:3px 4px 3px 0!important;width:34px}._ri4sL ._uj8td{text-align:right;padding:3px 16px 3px 0!important;width:46px}._ri4sL ._hKenz{position:absolute;top:3px;right:4px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._ri4sL ._N8gKE{line-height:22px}._ri4sL ._hd9cb{display:flex}._ri4sL ._E-KvE{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._ri4sL ._E-KvE._3K5YJ{margin-top:0}._ri4sL ._dQygG{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._mbf73{position:relative}._K3Oti{display:none}._PDPwR{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._Fa0vR.focus-visible,._Fa0vR:focus-visible{box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fff}._dQygG.focus-visible,._dQygG:focus-visible,._RqtXx.focus-visible,._RqtXx:focus-visible,._tCJvD.focus-visible,._tCJvD:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2641
|
+
var styles$t = {"colorPicker":"_zAPaO","colorPickerButton":"_9jaMv","disabledButton":"_YBw7x","colorPickerButtonPreview":"_-dLLj","alphaBackground":"_GNfcv","colorPickerButtonAlphaPreview":"_Cbp3o","caretIcon":"_CTA-F","colorPickerInput":"_rD9MQ","colorPickerInputDecoration":"_qAgao","disabledDecoration":"_KLJLQ","colorPickerFlyout":"_ri4sL","saturationGrid":"_2-x-P","saturationLoop":"_Fa0vR","sliderGroup":"_jPOri","removeBottomMargin":"_UGe8W","sliderPreviewContainer":"_JleIx","sliderPreview":"_KPXsg","sliderPreviewAlpha":"_enXHm","sliderPreviewAlphaBackground":"_Rgr6d","hueSliderRail":"_Srum2","alphaEnabled":"_ECTpm","hueSliderThumb":"_tCJvD","alphaSliderRailBackground":"_mzBKy","alphaSliderRail":"_RPeY8","alphaSliderThumb":"_RqtXx","hexInputGroup":"_58fi9","hexInputContainer":"_Lkq0o","rgbInputContainer":"_SeqVf","hexInputDecoration":"_YFRpJ","hexInput":"_HFCt5","rgbInput":"_zNYKE","alphaInput":"_uj8td","alphaInputDecoration":"_hKenz","inputLabel":"_N8gKE","rgbContainer":"_hd9cb","palette":"_E-KvE","removeUpperMargin":"_3K5YJ","swatch":"_dQygG","relativePositionContainer":"_mbf73","hidden":"_K3Oti","hiddenLiveRegion":"_PDPwR"};
|
|
2642
|
+
var stylesheet$w="._zAPaO{display:flex;line-height:1.15}._zAPaO ._9jaMv{display:flex;align-items:center;background-color:#fafafa;border:0;border-radius:4px 0 0 4px;padding:0;cursor:pointer;outline:none}._zAPaO ._9jaMv:hover:not(._YBw7x){background-color:#f5f5f5}._zAPaO ._9jaMv._YBw7x{cursor:not-allowed;fill:rgba(81,85,89,.4)}._zAPaO ._9jaMv:active:not(._YBw7x){background-color:#eee}._zAPaO ._-dLLj{width:18px;height:36px;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._zAPaO ._-dLLj._YBw7x{border-color:#d9d9d9}._zAPaO ._GNfcv{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:18px 18px;background-position:0 0,9px 0,9px -9px,0 9px}._zAPaO ._Cbp3o{width:18px;height:36px;border:1px solid #898989;border-width:1px 0}._zAPaO ._Cbp3o._YBw7x{border-color:#d9d9d9}._zAPaO ._CTA-F{height:36px;border:1px solid #898989;border-width:1px 0}._zAPaO ._CTA-F._YBw7x{border-color:#d9d9d9}._zAPaO ._rD9MQ{border-radius:0 4px 4px 0;width:115px;padding-left:21px}._zAPaO ._qAgao{position:absolute;top:10px;left:13px;font-size:14px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._zAPaO ._qAgao._KLJLQ{color:#9d9fa1}._9jaMv.focus-visible,._9jaMv:focus-visible{background:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;z-index:10}._ri4sL{width:264px;padding:8px;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1);line-height:1.15}._ri4sL ._2-x-P{position:relative;width:246px;height:150px;border-radius:4px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,transparent);background-origin:border-box}._ri4sL ._Fa0vR{position:absolute;width:12px;height:12px;border-radius:50%;border:1px solid #fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.5);outline:none;cursor:pointer}._ri4sL ._jPOri{display:flex;justify-content:space-between;margin:12px 0}._ri4sL ._jPOri._UGe8W{margin-bottom:0}._ri4sL ._JleIx{display:flex}._ri4sL ._KPXsg{width:19px;height:38px;border-radius:2px 0 0 2px;border:1px solid rgba(0,0,0,.43);border-right-width:0}._ri4sL ._enXHm{width:19px;height:38px;border-radius:0 2px 2px 0;border:1px solid rgba(0,0,0,.43);border-left-width:0}._ri4sL ._Rgr6d{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:19px 19px;background-position:0 0,9.5px 0,9.5px -9.5px,0 9.5px;border-radius:0 2px 2px 0}._ri4sL ._Srum2{width:202px;height:38px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background:linear-gradient(90deg,red,red 2%,#ff0 18%,#0f0 34%,#0ff 50%,#00f 66%,#f0f 82%,red 98%,red)}._ri4sL ._Srum2._ECTpm{height:16px;margin-bottom:6px}._ri4sL ._tCJvD{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:38px;outline:none;cursor:pointer;top:-1px}._ri4sL ._tCJvD._ECTpm{height:16px}._ri4sL ._mzBKy{position:relative;background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(135deg,rgba(0,0,0,.1) 25%,transparent 0),linear-gradient(45deg,transparent 75%,rgba(0,0,0,.1) 0),linear-gradient(135deg,transparent 75%,rgba(0,0,0,.1) 0);background-color:#fff;background-size:16px 16px;background-position:0 0,8px 0,8px -8px,0 8px;border-radius:1px}._ri4sL ._RPeY8{width:202px;height:16px;padding:0 3px;border-radius:1px;border:1px solid rgba(0,0,0,.43);background-origin:border-box!important}._ri4sL ._RqtXx{position:relative;background-color:#fff;border:1px solid rgba(0,0,0,.25);border-radius:1px;background-clip:padding-box;width:8px;height:16px;outline:none;cursor:pointer;top:-1px}._ri4sL ._58fi9{display:flex;justify-content:space-between}._ri4sL ._Lkq0o{display:flex;flex-direction:column;align-items:center}._ri4sL ._Lkq0o._SeqVf{margin-left:4px}._ri4sL ._YFRpJ{position:absolute;top:3px;left:5px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._ri4sL ._HFCt5{padding:3px 4px 3px 13px!important;width:78px}._ri4sL ._zNYKE{text-align:right;padding:3px 4px 3px 0!important;width:34px}._ri4sL ._uj8td{text-align:right;padding:3px 16px 3px 0!important;width:46px}._ri4sL ._hKenz{position:absolute;top:3px;right:4px;font-size:14px;line-height:20px;color:#32363a;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none}._ri4sL ._N8gKE{line-height:22px}._ri4sL ._hd9cb{display:flex}._ri4sL ._E-KvE{display:flex;flex-wrap:wrap;margin:9px -3px -3px}._ri4sL ._E-KvE._3K5YJ{margin-top:0}._ri4sL ._dQygG{width:22px;height:22px;margin:3px;border-radius:4px;border:1px solid rgba(0,0,0,.43);outline:none;cursor:pointer}._mbf73{position:relative}._K3Oti{display:none}._PDPwR{border:0;clip:rect(0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;position:absolute}._Fa0vR.focus-visible,._Fa0vR:focus-visible{box-shadow:inset 0 0 0 1px rgba(0,0,0,.5),0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fff}._dQygG.focus-visible,._dQygG:focus-visible,._RqtXx.focus-visible,._RqtXx:focus-visible,._tCJvD.focus-visible,._tCJvD:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
2643
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$w);}
|
|
2515
2644
|
|
|
2516
2645
|
function getMousePosition(e, containerRef) {
|
|
2517
2646
|
const container = containerRef.current.getBoundingClientRect();
|
|
@@ -2871,7 +3000,7 @@ function Saturation$1(_ref) {
|
|
|
2871
3000
|
}
|
|
2872
3001
|
}
|
|
2873
3002
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2874
|
-
className: styles$
|
|
3003
|
+
className: styles$t.saturationGrid,
|
|
2875
3004
|
style: {
|
|
2876
3005
|
backgroundColor: "".concat(hsvToHex({
|
|
2877
3006
|
h: hsv.h,
|
|
@@ -2890,15 +3019,15 @@ function Saturation$1(_ref) {
|
|
|
2890
3019
|
ref: gridRef
|
|
2891
3020
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2892
3021
|
id: "".concat(saturationId, "-saturation-desc"),
|
|
2893
|
-
className: styles$
|
|
3022
|
+
className: styles$t.hidden
|
|
2894
3023
|
}, saturationAriaDesc), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2895
3024
|
"aria-live": loopRef.current === document.activeElement ? 'assertive' : 'off',
|
|
2896
|
-
className: styles$
|
|
3025
|
+
className: styles$t.hiddenLiveRegion
|
|
2897
3026
|
}, saturationAriaLive), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2898
3027
|
"aria-live": loopRef.current === document.activeElement ? 'assertive' : 'off',
|
|
2899
|
-
className: styles$
|
|
3028
|
+
className: styles$t.hiddenLiveRegion
|
|
2900
3029
|
}, valueAriaLive), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2901
|
-
className: styles$
|
|
3030
|
+
className: styles$t.saturationLoop,
|
|
2902
3031
|
style: {
|
|
2903
3032
|
left: "calc(".concat(hsv.s * 100, "% - ").concat(hsv.s * 12, "px)"),
|
|
2904
3033
|
bottom: "calc(".concat(hsv.v * 100, "% - ").concat(hsv.v * 12, "px)")
|
|
@@ -2972,8 +3101,8 @@ function Hue$1(_ref) {
|
|
|
2972
3101
|
}
|
|
2973
3102
|
}
|
|
2974
3103
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2975
|
-
className: classNames__default["default"](styles$
|
|
2976
|
-
[styles$
|
|
3104
|
+
className: classNames__default["default"](styles$t.hueSliderRail, {
|
|
3105
|
+
[styles$t.alphaEnabled]: isAlphaEnabled
|
|
2977
3106
|
}),
|
|
2978
3107
|
onMouseDown: e => {
|
|
2979
3108
|
var _thumbRef$current;
|
|
@@ -2986,8 +3115,8 @@ function Hue$1(_ref) {
|
|
|
2986
3115
|
ref: railRef
|
|
2987
3116
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
2988
3117
|
role: "slider",
|
|
2989
|
-
className: classNames__default["default"](styles$
|
|
2990
|
-
[styles$
|
|
3118
|
+
className: classNames__default["default"](styles$t.hueSliderThumb, {
|
|
3119
|
+
[styles$t.alphaEnabled]: isAlphaEnabled
|
|
2991
3120
|
}),
|
|
2992
3121
|
style: {
|
|
2993
3122
|
left: "calc(".concat(hue / 359 * 100, "% - 4px)")
|
|
@@ -3064,9 +3193,9 @@ function Alpha$1(_ref) {
|
|
|
3064
3193
|
}
|
|
3065
3194
|
}
|
|
3066
3195
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3067
|
-
className: styles$
|
|
3196
|
+
className: styles$t.alphaSliderRailBackground
|
|
3068
3197
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3069
|
-
className: styles$
|
|
3198
|
+
className: styles$t.alphaSliderRail,
|
|
3070
3199
|
style: {
|
|
3071
3200
|
background: "linear-gradient(90deg, ".concat(color.hex, ", transparent)")
|
|
3072
3201
|
},
|
|
@@ -3081,7 +3210,7 @@ function Alpha$1(_ref) {
|
|
|
3081
3210
|
ref: railRef
|
|
3082
3211
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3083
3212
|
role: "slider",
|
|
3084
|
-
className: styles$
|
|
3213
|
+
className: styles$t.alphaSliderThumb,
|
|
3085
3214
|
style: {
|
|
3086
3215
|
left: "calc(".concat(MAX_ALPHA - ((_color$alpha5 = color.alpha) !== null && _color$alpha5 !== void 0 ? _color$alpha5 : MAX_ALPHA), "% - 4px)")
|
|
3087
3216
|
},
|
|
@@ -3116,7 +3245,7 @@ const Swatch$1 = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
3116
3245
|
role: "gridcell"
|
|
3117
3246
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3118
3247
|
type: "button",
|
|
3119
|
-
className: styles$
|
|
3248
|
+
className: styles$t.swatch,
|
|
3120
3249
|
style: {
|
|
3121
3250
|
backgroundColor: "".concat(color.hex)
|
|
3122
3251
|
},
|
|
@@ -3190,14 +3319,14 @@ function Palette(_ref2) {
|
|
|
3190
3319
|
React__default["default"].createElement("div", {
|
|
3191
3320
|
role: "grid",
|
|
3192
3321
|
"aria-label": paletteAriaLabel,
|
|
3193
|
-
className: classNames__default["default"](styles$
|
|
3194
|
-
[styles$
|
|
3322
|
+
className: classNames__default["default"](styles$t.palette, {
|
|
3323
|
+
[styles$t.removeUpperMargin]: removeUpperMargin
|
|
3195
3324
|
}),
|
|
3196
3325
|
onKeyDown: handleKeyDown,
|
|
3197
3326
|
"data-testid": getSubDataTestId(dataTestId, 'palette')
|
|
3198
3327
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3199
3328
|
id: swatchDescriptionId,
|
|
3200
|
-
className: styles$
|
|
3329
|
+
className: styles$t.hidden
|
|
3201
3330
|
}, swatchAriaDesc), paletteRows.map((row, rowIndex) =>
|
|
3202
3331
|
/*#__PURE__*/
|
|
3203
3332
|
/* eslint-disable react/no-array-index-key */
|
|
@@ -3238,11 +3367,11 @@ function RGBInput(_ref) {
|
|
|
3238
3367
|
setInternalValue(externalValue);
|
|
3239
3368
|
}, [externalValue]);
|
|
3240
3369
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3241
|
-
className: classNames__default["default"](styles$
|
|
3370
|
+
className: classNames__default["default"](styles$t.hexInputContainer, styles$t.rgbInputContainer)
|
|
3242
3371
|
}, /*#__PURE__*/React__default["default"].createElement(Input$1, {
|
|
3243
3372
|
id: inputId,
|
|
3244
3373
|
type: "number",
|
|
3245
|
-
className: styles$
|
|
3374
|
+
className: styles$t.rgbInput,
|
|
3246
3375
|
small: true,
|
|
3247
3376
|
min: 0,
|
|
3248
3377
|
max: 255,
|
|
@@ -3253,7 +3382,7 @@ function RGBInput(_ref) {
|
|
|
3253
3382
|
"data-testid": getSubDataTestId(dataTestId, "".concat(label, "-channel"))
|
|
3254
3383
|
}), /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
3255
3384
|
htmlFor: inputId,
|
|
3256
|
-
className: styles$
|
|
3385
|
+
className: styles$t.inputLabel
|
|
3257
3386
|
}, label));
|
|
3258
3387
|
}
|
|
3259
3388
|
const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
@@ -3306,17 +3435,17 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
3306
3435
|
setInternalAlpha(parseInt(newAlpha, 10));
|
|
3307
3436
|
}
|
|
3308
3437
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3309
|
-
className: styles$
|
|
3438
|
+
className: styles$t.hexInputGroup
|
|
3310
3439
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3311
|
-
className: styles$
|
|
3440
|
+
className: styles$t.hexInputContainer
|
|
3312
3441
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3313
|
-
className: styles$
|
|
3442
|
+
className: styles$t.relativePositionContainer
|
|
3314
3443
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3315
|
-
className: styles$
|
|
3444
|
+
className: styles$t.hexInputDecoration,
|
|
3316
3445
|
"aria-hidden": true
|
|
3317
3446
|
}, "#"), /*#__PURE__*/React__default["default"].createElement(Input$1, {
|
|
3318
3447
|
id: hexInputId,
|
|
3319
|
-
className: styles$
|
|
3448
|
+
className: styles$t.hexInput,
|
|
3320
3449
|
small: true,
|
|
3321
3450
|
value: internalHex.toUpperCase(),
|
|
3322
3451
|
onChange: handleHexInputChange,
|
|
@@ -3325,9 +3454,9 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
3325
3454
|
"data-testid": getSubDataTestId(dataTestId, 'flyout-hex-input')
|
|
3326
3455
|
})), /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
3327
3456
|
htmlFor: hexInputId,
|
|
3328
|
-
className: styles$
|
|
3457
|
+
className: styles$t.inputLabel
|
|
3329
3458
|
}, "Hex")), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3330
|
-
className: styles$
|
|
3459
|
+
className: styles$t.rgbContainer
|
|
3331
3460
|
}, /*#__PURE__*/React__default["default"].createElement(RGBInput
|
|
3332
3461
|
// if hex is incomplete, fill color channel value with 0
|
|
3333
3462
|
, {
|
|
@@ -3386,13 +3515,13 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
3386
3515
|
containerId: containerId,
|
|
3387
3516
|
dataTestId: dataTestId
|
|
3388
3517
|
}), isAlphaEnabled && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3389
|
-
className: classNames__default["default"](styles$
|
|
3518
|
+
className: classNames__default["default"](styles$t.hexInputContainer, styles$t.rgbInputContainer)
|
|
3390
3519
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3391
|
-
className: styles$
|
|
3520
|
+
className: styles$t.relativePositionContainer
|
|
3392
3521
|
}, /*#__PURE__*/React__default["default"].createElement(Input$1, {
|
|
3393
3522
|
type: "number",
|
|
3394
3523
|
small: true,
|
|
3395
|
-
className: styles$
|
|
3524
|
+
className: styles$t.alphaInput,
|
|
3396
3525
|
id: alphaInputId,
|
|
3397
3526
|
value: internalAlpha,
|
|
3398
3527
|
onChange: handleInternalAlphaChange,
|
|
@@ -3402,11 +3531,11 @@ const ColorPickerFlyoutInputs = function HexInputGroup(_ref2) {
|
|
|
3402
3531
|
"aria-label": alphaInputAriaLabel,
|
|
3403
3532
|
"data-testid": getSubDataTestId(dataTestId, 'alpha-channel')
|
|
3404
3533
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3405
|
-
className: styles$
|
|
3534
|
+
className: styles$t.alphaInputDecoration,
|
|
3406
3535
|
"aria-hidden": true
|
|
3407
3536
|
}, "%")), /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
3408
3537
|
htmlFor: alphaInputId,
|
|
3409
|
-
className: styles$
|
|
3538
|
+
className: styles$t.inputLabel
|
|
3410
3539
|
}, "A"))));
|
|
3411
3540
|
};
|
|
3412
3541
|
|
|
@@ -3437,7 +3566,7 @@ const ColorPickerFlyout = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3437
3566
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
3438
3567
|
role: "dialog",
|
|
3439
3568
|
"aria-label": flyoutAriaLabel,
|
|
3440
|
-
className: classNames__default["default"](className, styles$
|
|
3569
|
+
className: classNames__default["default"](className, styles$t.colorPickerFlyout),
|
|
3441
3570
|
ref: ref,
|
|
3442
3571
|
style: {
|
|
3443
3572
|
...style,
|
|
@@ -3450,21 +3579,21 @@ const ColorPickerFlyout = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3450
3579
|
containerId: containerId,
|
|
3451
3580
|
dataTestId: dataTestId
|
|
3452
3581
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3453
|
-
className: classNames__default["default"](styles$
|
|
3454
|
-
[styles$
|
|
3582
|
+
className: classNames__default["default"](styles$t.sliderGroup, {
|
|
3583
|
+
[styles$t.removeBottomMargin]: hideFlyoutInputs && !palette.length
|
|
3455
3584
|
})
|
|
3456
3585
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3457
|
-
className: styles$
|
|
3586
|
+
className: styles$t.sliderPreviewContainer,
|
|
3458
3587
|
"data-testid": getSubDataTestId(dataTestId, 'flyout-color-preview')
|
|
3459
3588
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3460
|
-
className: styles$
|
|
3589
|
+
className: styles$t.sliderPreview,
|
|
3461
3590
|
style: {
|
|
3462
3591
|
backgroundColor: color.hex
|
|
3463
3592
|
}
|
|
3464
3593
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3465
|
-
className: styles$
|
|
3594
|
+
className: styles$t.sliderPreviewAlphaBackground
|
|
3466
3595
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3467
|
-
className: styles$
|
|
3596
|
+
className: styles$t.sliderPreviewAlpha,
|
|
3468
3597
|
style: {
|
|
3469
3598
|
backgroundColor: isAlphaEnabled ? hexToRgbaString(color) : color.hex
|
|
3470
3599
|
}
|
|
@@ -3677,7 +3806,7 @@ function ColorPicker$1(_ref) {
|
|
|
3677
3806
|
}
|
|
3678
3807
|
}
|
|
3679
3808
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3680
|
-
className: styles$
|
|
3809
|
+
className: styles$t.colorPicker,
|
|
3681
3810
|
id: containerId,
|
|
3682
3811
|
role: "group",
|
|
3683
3812
|
"data-testid": dataTestId
|
|
@@ -3709,8 +3838,8 @@ function ColorPicker$1(_ref) {
|
|
|
3709
3838
|
}),
|
|
3710
3839
|
anchor: /*#__PURE__*/React__default["default"].createElement("button", {
|
|
3711
3840
|
type: "button",
|
|
3712
|
-
className: classNames__default["default"](styles$
|
|
3713
|
-
[styles$
|
|
3841
|
+
className: classNames__default["default"](styles$t.colorPickerButton, {
|
|
3842
|
+
[styles$t.disabledButton]: isDisabled
|
|
3714
3843
|
}),
|
|
3715
3844
|
disabled: isDisabled,
|
|
3716
3845
|
onClick: handleAnchorClick,
|
|
@@ -3723,24 +3852,24 @@ function ColorPicker$1(_ref) {
|
|
|
3723
3852
|
ref: mergeRefs(anchorRef, externalButtonRef !== null && externalButtonRef !== void 0 ? externalButtonRef : null),
|
|
3724
3853
|
"data-testid": getSubDataTestId(dataTestId, 'anchor-button')
|
|
3725
3854
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3726
|
-
className: classNames__default["default"](styles$
|
|
3727
|
-
[styles$
|
|
3855
|
+
className: classNames__default["default"](styles$t.colorPickerButtonPreview, {
|
|
3856
|
+
[styles$t.disabledButton]: isDisabled
|
|
3728
3857
|
}),
|
|
3729
3858
|
style: {
|
|
3730
3859
|
backgroundColor: color.hex
|
|
3731
3860
|
}
|
|
3732
3861
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3733
|
-
className: styles$
|
|
3862
|
+
className: styles$t.alphaBackground
|
|
3734
3863
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3735
|
-
className: classNames__default["default"](styles$
|
|
3736
|
-
[styles$
|
|
3864
|
+
className: classNames__default["default"](styles$t.colorPickerButtonAlphaPreview, {
|
|
3865
|
+
[styles$t.disabledButton]: isDisabled
|
|
3737
3866
|
}),
|
|
3738
3867
|
style: {
|
|
3739
3868
|
backgroundColor: isAlphaEnabled ? hexToRgbaString(color) : color.hex
|
|
3740
3869
|
}
|
|
3741
3870
|
})), /*#__PURE__*/React__default["default"].createElement(icons_index.CaretDownIcon, {
|
|
3742
|
-
className: classNames__default["default"](styles$
|
|
3743
|
-
[styles$
|
|
3871
|
+
className: classNames__default["default"](styles$t.caretIcon, {
|
|
3872
|
+
[styles$t.disabledButton]: isDisabled
|
|
3744
3873
|
}),
|
|
3745
3874
|
size: "small"
|
|
3746
3875
|
})),
|
|
@@ -3751,14 +3880,14 @@ function ColorPicker$1(_ref) {
|
|
|
3751
3880
|
}
|
|
3752
3881
|
}]
|
|
3753
3882
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3754
|
-
className: styles$
|
|
3883
|
+
className: styles$t.relativePositionContainer
|
|
3755
3884
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
3756
|
-
className: classNames__default["default"](styles$
|
|
3757
|
-
[styles$
|
|
3885
|
+
className: classNames__default["default"](styles$t.colorPickerInputDecoration, {
|
|
3886
|
+
[styles$t.disabledDecoration]: isDisabled
|
|
3758
3887
|
}),
|
|
3759
3888
|
"aria-hidden": true
|
|
3760
3889
|
}, "#"), /*#__PURE__*/React__default["default"].createElement(Input$1, {
|
|
3761
|
-
className: styles$
|
|
3890
|
+
className: styles$t.colorPickerInput,
|
|
3762
3891
|
"aria-label": inputAriaLabel,
|
|
3763
3892
|
value: inputHex.toUpperCase(),
|
|
3764
3893
|
onChange: handleInputHexChange,
|
|
@@ -3769,10 +3898,10 @@ function ColorPicker$1(_ref) {
|
|
|
3769
3898
|
})));
|
|
3770
3899
|
}
|
|
3771
3900
|
|
|
3772
|
-
var css_248z$
|
|
3773
|
-
var styles$
|
|
3774
|
-
var stylesheet$
|
|
3775
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
3901
|
+
var css_248z$v = "._wh6Pr{position:relative;display:inline-block}._u7y0B{padding-right:36px}._u7y0B._GRJSN{box-shadow:none!important;border:1px solid #898989!important}._iEMqd{margin-top:4px}._YiQMW{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._YiQMW:hover{background-color:rgba(50,54,58,.08)}._YiQMW:active{background-color:rgba(50,54,58,.11)}._YiQMW._aCRUz{transform:rotate(-180deg)}._YiQMW._qGsOK{opacity:.4}._Erh9Q{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}._qGsOK{cursor:not-allowed}._qGsOK:hover{background-color:transparent}";
|
|
3902
|
+
var styles$s = {"combobox":"_wh6Pr","comboboxInput":"_u7y0B","ignoreFocusStyle":"_GRJSN","labelledInput":"_iEMqd","comboboxIcon":"_YiQMW","open":"_aCRUz","disabled":"_qGsOK","comboboxEmpty":"_Erh9Q"};
|
|
3903
|
+
var stylesheet$v="._wh6Pr{position:relative;display:inline-block}._u7y0B{padding-right:36px}._u7y0B._GRJSN{box-shadow:none!important;border:1px solid #898989!important}._iEMqd{margin-top:4px}._YiQMW{position:absolute;right:4px;bottom:4px;height:28px;width:28px;border-radius:4px;fill:#515559;cursor:pointer}._YiQMW:hover{background-color:rgba(50,54,58,.08)}._YiQMW:active{background-color:rgba(50,54,58,.11)}._YiQMW._aCRUz{transform:rotate(-180deg)}._YiQMW._qGsOK{opacity:.4}._Erh9Q{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}._qGsOK{cursor:not-allowed}._qGsOK:hover{background-color:transparent}";
|
|
3904
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$v);}
|
|
3776
3905
|
|
|
3777
3906
|
const {
|
|
3778
3907
|
useContext: useComboboxContext,
|
|
@@ -3827,9 +3956,9 @@ const ComboboxInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3827
3956
|
full: full,
|
|
3828
3957
|
autoComplete: autoComplete,
|
|
3829
3958
|
value: inputValue,
|
|
3830
|
-
className: classNames__default["default"](className, styles$
|
|
3831
|
-
[styles$
|
|
3832
|
-
[styles$
|
|
3959
|
+
className: classNames__default["default"](className, styles$s.comboboxInput, {
|
|
3960
|
+
[styles$s.labelledInput]: hasLabel,
|
|
3961
|
+
[styles$s.ignoreFocusStyle]: highlightedIndex !== -1
|
|
3833
3962
|
}),
|
|
3834
3963
|
disabled: externalDisabled === undefined ? disabled : externalDisabled,
|
|
3835
3964
|
invalid: externalInvalid === undefined ? isInvalid : externalInvalid,
|
|
@@ -3952,9 +4081,9 @@ const ComboboxIcon = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
3952
4081
|
} = useComboboxContext();
|
|
3953
4082
|
return /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, _extends__default["default"]({}, rest, {
|
|
3954
4083
|
size: size,
|
|
3955
|
-
className: classNames__default["default"](styles$
|
|
3956
|
-
[styles$
|
|
3957
|
-
[styles$
|
|
4084
|
+
className: classNames__default["default"](styles$s.comboboxIcon, className, {
|
|
4085
|
+
[styles$s.open]: isOpen,
|
|
4086
|
+
[styles$s.disabled]: disabled
|
|
3958
4087
|
}),
|
|
3959
4088
|
onClick: !disabled ? wrapEvent(onClick, () => {
|
|
3960
4089
|
if (inputRef.current === document.activeElement) {
|
|
@@ -4391,10 +4520,10 @@ const Combobox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
4391
4520
|
ariaLabelledby
|
|
4392
4521
|
}
|
|
4393
4522
|
}, /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
4394
|
-
className: classNames__default["default"](styles$
|
|
4523
|
+
className: classNames__default["default"](styles$s.combobox, className),
|
|
4395
4524
|
ref: ref
|
|
4396
4525
|
}), comboboxInput, /*#__PURE__*/React__default["default"].createElement(ComboboxIcon, null), /*#__PURE__*/React__default["default"].cloneElement(comboboxList, {}, filteredOptions.length === 0 ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4397
|
-
className: styles$
|
|
4526
|
+
className: styles$s.comboboxEmpty,
|
|
4398
4527
|
id: noMatchesFoundContainerId
|
|
4399
4528
|
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
4400
4529
|
,
|
|
@@ -4404,16 +4533,16 @@ const Combobox = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
4404
4533
|
}, translate('noMatchesFound')) : listChildrenFilteredOptionsAndHeaders)));
|
|
4405
4534
|
});
|
|
4406
4535
|
|
|
4407
|
-
var css_248z$
|
|
4408
|
-
var styles$
|
|
4409
|
-
var stylesheet$
|
|
4410
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$v);}
|
|
4411
|
-
|
|
4412
|
-
var css_248z$u = "._Dd2JG{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}._Dd2JG:focus{outline:none}._Dd2JG:hover:not(._-9rHh){background-color:rgba(50,54,58,.08)}._Dd2JG:active:not(._-9rHh){background-color:rgba(50,54,58,.11);stroke-width:2}._Dd2JG._-9rHh{cursor:not-allowed;fill:rgba(81,85,89,.6)}._Dd2JG.focus-visible,._Dd2JG:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4413
|
-
var iconButtonStyles = {"button":"_Dd2JG","disabled":"_-9rHh"};
|
|
4414
|
-
var stylesheet$u="._Dd2JG{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}._Dd2JG:focus{outline:none}._Dd2JG:hover:not(._-9rHh){background-color:rgba(50,54,58,.08)}._Dd2JG:active:not(._-9rHh){background-color:rgba(50,54,58,.11);stroke-width:2}._Dd2JG._-9rHh{cursor:not-allowed;fill:rgba(81,85,89,.6)}._Dd2JG.focus-visible,._Dd2JG:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4536
|
+
var css_248z$u = "._9LZtk{grid-area:configPane;position:relative;height:100%}._8UbFr{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._0NqUx._xoJed ._8UbFr,._0NqUx:not(._Dwisg) ._8UbFr{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._Dwisg ._8UbFr{width:0}._xoJed._Dwisg ._8UbFr{width:30px;cursor:pointer}._GESZ2 ._8UbFr{border-right-color:#eee}._ktImY{height:100%;position:relative;width:292px}._0NqUx ._ktImY,._Dwisg ._ktImY{width:0}._xoJed._0NqUx ._ktImY,._xoJed._Dwisg ._ktImY{width:30px}._AkaRo ._ktImY{transition:width .5s}._m7D9L{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._Dwisg ._m7D9L{visibility:hidden}._AkaRo ._m7D9L{visibility:visible}._m7D9L ._xeR62{width:252px;margin-left:20px}._hPmGi{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._6WLnH{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._6WLnH *{font-weight:400;font-size:16px;margin:0}._ZXGAD{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._Dwisg ._ZXGAD{left:0}._xoJed._Dwisg ._ZXGAD{left:30px}._ZXGAD ._cXKNy{width:4px;height:100%}._xoJed._Dwisg ._8UbFr:hover+._ZXGAD ._cXKNy,._ZXGAD:hover ._cXKNy{background-color:#9dc5ed}._xoJed._Dwisg ._8UbFr:hover+._ZXGAD ._DCZsZ>span,._ZXGAD:hover ._DCZsZ>span{background-color:#0b6ed0;border-color:#0b6ed0}._xoJed._Dwisg ._8UbFr:hover+._ZXGAD ._DCZsZ>span>svg,._ZXGAD:hover ._DCZsZ>span>svg{fill:#fff}._xoJed._Dwisg ._8UbFr:hover+._ZXGAD ._DCZsZ:active>span,._ZXGAD:hover ._DCZsZ:active>span{background-color:#0854a1;border-color:#0854a1}._xoJed._Dwisg ._8UbFr:hover+._ZXGAD ._DCZsZ:active>span>svg,._ZXGAD:hover ._DCZsZ:active>span>svg{fill:#fff}._ZXGAD ._DCZsZ{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._ZXGAD ._DCZsZ._G0QeL._G0QeL._G0QeL{opacity:1}._ZXGAD ._DCZsZ._WRV4D._WRV4D._WRV4D{opacity:0}._ZXGAD ._DCZsZ:active>span{background-color:#0854a1;border-color:#0854a1}._ZXGAD ._DCZsZ:active>span>svg{fill:#fff}._ZXGAD ._DCZsZ>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._ZXGAD ._DCZsZ>span>svg{fill:#515559;border-radius:50%}._8UbFr:hover+._ZXGAD ._DCZsZ,._Dwisg ._ZXGAD ._DCZsZ,._ZXGAD:hover ._DCZsZ{opacity:1}._DCZsZ.focus-visible,._DCZsZ:focus-visible{opacity:1;border-color:#0a3f88}";
|
|
4537
|
+
var styles$r = {"paneContainer":"_9LZtk","paneContentContainer":"_8UbFr","unpinned":"_0NqUx","hidden":"_Dwisg","preview":"_xoJed","openHidden":"_GESZ2","spacer":"_ktImY","transitioning":"_AkaRo","paneContent":"_m7D9L","paneContentInner":"_xeR62","header":"_hPmGi","title":"_6WLnH","clickableArea":"_ZXGAD","hoverBorder":"_cXKNy","toolbarPanelExpandCollapseButton":"_DCZsZ","overrideShow":"_G0QeL","overrideHide":"_WRV4D"};
|
|
4538
|
+
var stylesheet$u="._9LZtk{grid-area:configPane;position:relative;height:100%}._8UbFr{overflow:hidden;height:100%;position:absolute;background-color:#fff;top:0;transition:width .5s;width:292px;border-right:1px solid #898989;box-sizing:border-box}._0NqUx._xoJed ._8UbFr,._0NqUx:not(._Dwisg) ._8UbFr{-webkit-clip-path:inset(0 -20px 0 0);clip-path:inset(0 -20px 0 0);box-shadow:0 8px 20px 0 rgba(0,0,0,.1),0 4px 6px 0 rgba(0,0,0,.05)}._Dwisg ._8UbFr{width:0}._xoJed._Dwisg ._8UbFr{width:30px;cursor:pointer}._GESZ2 ._8UbFr{border-right-color:#eee}._ktImY{height:100%;position:relative;width:292px}._0NqUx ._ktImY,._Dwisg ._ktImY{width:0}._xoJed._0NqUx ._ktImY,._xoJed._Dwisg ._ktImY{width:30px}._AkaRo ._ktImY{transition:width .5s}._m7D9L{position:absolute;width:292px;height:100%;right:0;overflow:auto;padding:12px 0}._Dwisg ._m7D9L{visibility:hidden}._AkaRo ._m7D9L{visibility:visible}._m7D9L ._xeR62{width:252px;margin-left:20px}._hPmGi{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:12px}._6WLnH{flex-grow:1;padding-right:8px;line-height:20px;margin:8px 0}._6WLnH *{font-weight:400;font-size:16px;margin:0}._ZXGAD{position:absolute;transition:left .5s;top:0;left:290px;width:12px;cursor:pointer;height:100%}._Dwisg ._ZXGAD{left:0}._xoJed._Dwisg ._ZXGAD{left:30px}._ZXGAD ._cXKNy{width:4px;height:100%}._xoJed._Dwisg ._8UbFr:hover+._ZXGAD ._cXKNy,._ZXGAD:hover ._cXKNy{background-color:#9dc5ed}._xoJed._Dwisg ._8UbFr:hover+._ZXGAD ._DCZsZ>span,._ZXGAD:hover ._DCZsZ>span{background-color:#0b6ed0;border-color:#0b6ed0}._xoJed._Dwisg ._8UbFr:hover+._ZXGAD ._DCZsZ>span>svg,._ZXGAD:hover ._DCZsZ>span>svg{fill:#fff}._xoJed._Dwisg ._8UbFr:hover+._ZXGAD ._DCZsZ:active>span,._ZXGAD:hover ._DCZsZ:active>span{background-color:#0854a1;border-color:#0854a1}._xoJed._Dwisg ._8UbFr:hover+._ZXGAD ._DCZsZ:active>span>svg,._ZXGAD:hover ._DCZsZ:active>span>svg{fill:#fff}._ZXGAD ._DCZsZ{left:-16px;width:36px;height:36px;position:absolute;top:48px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10;opacity:0}._ZXGAD ._DCZsZ._G0QeL._G0QeL._G0QeL{opacity:1}._ZXGAD ._DCZsZ._WRV4D._WRV4D._WRV4D{opacity:0}._ZXGAD ._DCZsZ:active>span{background-color:#0854a1;border-color:#0854a1}._ZXGAD ._DCZsZ:active>span>svg{fill:#fff}._ZXGAD ._DCZsZ>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._ZXGAD ._DCZsZ>span>svg{fill:#515559;border-radius:50%}._8UbFr:hover+._ZXGAD ._DCZsZ,._Dwisg ._ZXGAD ._DCZsZ,._ZXGAD:hover ._DCZsZ{opacity:1}._DCZsZ.focus-visible,._DCZsZ:focus-visible{opacity:1;border-color:#0a3f88}";
|
|
4415
4539
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$u);}
|
|
4416
4540
|
|
|
4541
|
+
var css_248z$t = "._5J-4M{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}._5J-4M:focus{outline:none}._5J-4M:hover:not(._tViLp){background-color:rgba(50,54,58,.08)}._5J-4M:active:not(._tViLp){background-color:rgba(50,54,58,.11);stroke-width:2}._5J-4M._tViLp{cursor:not-allowed;fill:rgba(81,85,89,.6)}._5J-4M.focus-visible,._5J-4M:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4542
|
+
var iconButtonStyles = {"button":"_5J-4M","disabled":"_tViLp"};
|
|
4543
|
+
var stylesheet$t="._5J-4M{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}._5J-4M:focus{outline:none}._5J-4M:hover:not(._tViLp){background-color:rgba(50,54,58,.08)}._5J-4M:active:not(._tViLp){background-color:rgba(50,54,58,.11);stroke-width:2}._5J-4M._tViLp{cursor:not-allowed;fill:rgba(81,85,89,.6)}._5J-4M.focus-visible,._5J-4M:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4544
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$t);}
|
|
4545
|
+
|
|
4417
4546
|
const sizePropInIconErrorMessage = 'Warning: The `Icon` prop `size` is invalid when used as a child of `IconButton`.';
|
|
4418
4547
|
const IconButton = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
4419
4548
|
let {
|
|
@@ -4512,9 +4641,9 @@ const ExpandCollapseButton$2 = _ref => {
|
|
|
4512
4641
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
4513
4642
|
type: "button",
|
|
4514
4643
|
"aria-label": isOpen ? hidePanelLabel : showPanelLabel,
|
|
4515
|
-
className: classNames__default["default"](styles$
|
|
4516
|
-
[styles$
|
|
4517
|
-
[styles$
|
|
4644
|
+
className: classNames__default["default"](styles$r.toolbarPanelExpandCollapseButton, {
|
|
4645
|
+
[styles$r.overrideShow]: isTooltipVisible,
|
|
4646
|
+
[styles$r.overrideHide]: isHiddenByEscape
|
|
4518
4647
|
}),
|
|
4519
4648
|
"aria-expanded": isOpen,
|
|
4520
4649
|
"aria-controls": panelId,
|
|
@@ -4561,19 +4690,19 @@ const ConfigPane = _ref2 => {
|
|
|
4561
4690
|
const toggleOpen = () => setIsOpen(currentIsOpen => !currentIsOpen);
|
|
4562
4691
|
const [isContainerHoveredRef, isContainerHovered] = useIsHovered();
|
|
4563
4692
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4564
|
-
className: classNames__default["default"](styles$
|
|
4565
|
-
[styles$
|
|
4566
|
-
[styles$
|
|
4567
|
-
[styles$
|
|
4568
|
-
[styles$
|
|
4569
|
-
[styles$
|
|
4693
|
+
className: classNames__default["default"](styles$r.paneContainer, {
|
|
4694
|
+
[styles$r.hidden]: !isOpen,
|
|
4695
|
+
[styles$r.unpinned]: !isPinned,
|
|
4696
|
+
[styles$r.transitioning]: isTransitioning,
|
|
4697
|
+
[styles$r.preview]: shouldShowPanelPreview,
|
|
4698
|
+
[styles$r.openHidden]: hideOpenButton
|
|
4570
4699
|
}),
|
|
4571
4700
|
onTransitionEnd: () => setIsTransitioning(false),
|
|
4572
4701
|
ref: isContainerHoveredRef
|
|
4573
4702
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4574
|
-
className: styles$
|
|
4703
|
+
className: styles$r.spacer
|
|
4575
4704
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4576
|
-
className: styles$
|
|
4705
|
+
className: styles$r.paneContentContainer,
|
|
4577
4706
|
onClick: shouldShowPanelPreview && !isOpen ? toggleOpen : undefined
|
|
4578
4707
|
}, /*#__PURE__*/React__default["default"].createElement("aside", {
|
|
4579
4708
|
"aria-label": ariaLabel,
|
|
@@ -4581,16 +4710,16 @@ const ConfigPane = _ref2 => {
|
|
|
4581
4710
|
"aria-describedby": ariaDescribedBy,
|
|
4582
4711
|
"data-testid": dataTestId,
|
|
4583
4712
|
id: panelId,
|
|
4584
|
-
className: styles$
|
|
4713
|
+
className: styles$r.paneContent
|
|
4585
4714
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4586
|
-
className: styles$
|
|
4715
|
+
className: styles$r.paneContentInner
|
|
4587
4716
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4588
|
-
className: styles$
|
|
4717
|
+
className: styles$r.header
|
|
4589
4718
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4590
|
-
className: styles$
|
|
4719
|
+
className: styles$r.title,
|
|
4591
4720
|
"data-testid": getSubDataTestId(dataTestId, DATA_TESTID_SUFFIXES$1.TITLE)
|
|
4592
4721
|
}, title), !hidePinButton && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4593
|
-
className: styles$
|
|
4722
|
+
className: styles$r.pinButton
|
|
4594
4723
|
}, /*#__PURE__*/React__default["default"].createElement(Tooltip, {
|
|
4595
4724
|
content: isPinned ? unpinPanelLabel : pinPanelLabel,
|
|
4596
4725
|
delayMs: 500,
|
|
@@ -4601,7 +4730,7 @@ const ConfigPane = _ref2 => {
|
|
|
4601
4730
|
onClick: () => setIsPinned(currentIsPinned => !currentIsPinned),
|
|
4602
4731
|
"data-testid": getSubDataTestId(dataTestId, DATA_TESTID_SUFFIXES$1.PIN_UNPIN_BUTTON)
|
|
4603
4732
|
}, isPinned ? /*#__PURE__*/React__default["default"].createElement(icons_index.UnpinIcon, null) : /*#__PURE__*/React__default["default"].createElement(icons_index.PinIcon, null))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4604
|
-
className: styles$
|
|
4733
|
+
className: styles$r.body,
|
|
4605
4734
|
"data-testid": getSubDataTestId(dataTestId, DATA_TESTID_SUFFIXES$1.BODY)
|
|
4606
4735
|
}, children)))), !hideOpenButton &&
|
|
4607
4736
|
/*#__PURE__*/
|
|
@@ -4612,10 +4741,10 @@ const ConfigPane = _ref2 => {
|
|
|
4612
4741
|
*/
|
|
4613
4742
|
/* eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions */
|
|
4614
4743
|
React__default["default"].createElement("div", {
|
|
4615
|
-
className: styles$
|
|
4744
|
+
className: styles$r.clickableArea,
|
|
4616
4745
|
onClick: toggleOpen
|
|
4617
4746
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4618
|
-
className: styles$
|
|
4747
|
+
className: styles$r.hoverBorder
|
|
4619
4748
|
}), /*#__PURE__*/React__default["default"].createElement(ExpandCollapseButton$2, {
|
|
4620
4749
|
isOpen: isOpen,
|
|
4621
4750
|
onClick: toggleOpen,
|
|
@@ -4626,10 +4755,10 @@ const ConfigPane = _ref2 => {
|
|
|
4626
4755
|
})));
|
|
4627
4756
|
};
|
|
4628
4757
|
|
|
4629
|
-
var css_248z$
|
|
4630
|
-
var styles$
|
|
4631
|
-
var stylesheet$
|
|
4632
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
4758
|
+
var css_248z$s = "._Qefki{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
4759
|
+
var styles$q = {"divider":"_Qefki"};
|
|
4760
|
+
var stylesheet$s="._Qefki{border:none;height:1px;margin:0;flex-shrink:0;background-color:#e5e5e5}";
|
|
4761
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$s);}
|
|
4633
4762
|
|
|
4634
4763
|
const Divider = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
4635
4764
|
let {
|
|
@@ -4638,15 +4767,15 @@ const Divider = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
4638
4767
|
} = _ref;
|
|
4639
4768
|
return /*#__PURE__*/React__default["default"].createElement("hr", _extends__default["default"]({
|
|
4640
4769
|
ref: ref,
|
|
4641
|
-
className: classNames__default["default"](className, styles$
|
|
4770
|
+
className: classNames__default["default"](className, styles$q.divider),
|
|
4642
4771
|
role: "presentation"
|
|
4643
4772
|
}, rest));
|
|
4644
4773
|
});
|
|
4645
4774
|
|
|
4646
|
-
var css_248z$
|
|
4647
|
-
var styles$
|
|
4648
|
-
var stylesheet$
|
|
4649
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
4775
|
+
var css_248z$r = "._Oxn01{max-width:100%;position:relative;display:inline-block}._sW8cL{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}._sW8cL:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._sW8cL:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._sW8cL:disabled,._sW8cL[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._sW8cL._k-xci{border-color:#b00}._sW8cL._k-xci:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._sW8cL._CK9Dx{min-width:120px;padding:0 4px 0 12px}._sW8cL._e8B3i{margin-top:4px}._sW8cL._WbAYv:not([aria-disabled=true]):not(:disabled){color:#32363a}._sW8cL ._huqqe{min-height:10px}._sW8cL ._huqqe._r8WtV{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._sW8cL ._huqqe._Jj0yL{display:inline-flex;align-items:center}._sW8cL ._GkQLi{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._sW8cL ._GkQLi._lS1N-{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._sW8cL ._GkQLi._335Er{transform:rotate(-180deg)}._hXCHa[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._PQ2Nd{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}._oGmBj{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}._Z5gJA{fill:#515559}._ccV0M{margin:2px 12px 2px 0}._ccV0M._hMFu4>svg{border-color:#0b6ed0}._8m3Au{width:100%}";
|
|
4776
|
+
var styles$p = {"container":"_Oxn01","button":"_sW8cL","invalid":"_k-xci","hasText":"_CK9Dx","labelled":"_e8B3i","selected":"_WbAYv","buttonLabel":"_huqqe","isString":"_r8WtV","isNode":"_Jj0yL","icon":"_GkQLi","disabled":"_lS1N-","open":"_335Er","option":"_hXCHa","search":"_PQ2Nd","emptyOption":"_oGmBj","searchIcon":"_Z5gJA","checkbox":"_ccV0M","highlighted":"_hMFu4","searchInput":"_8m3Au"};
|
|
4777
|
+
var stylesheet$r="._Oxn01{max-width:100%;position:relative;display:inline-block}._sW8cL{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}._sW8cL:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._sW8cL:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._sW8cL:disabled,._sW8cL[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._sW8cL._k-xci{border-color:#b00}._sW8cL._k-xci:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._sW8cL._CK9Dx{min-width:120px;padding:0 4px 0 12px}._sW8cL._e8B3i{margin-top:4px}._sW8cL._WbAYv:not([aria-disabled=true]):not(:disabled){color:#32363a}._sW8cL ._huqqe{min-height:10px}._sW8cL ._huqqe._r8WtV{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._sW8cL ._huqqe._Jj0yL{display:inline-flex;align-items:center}._sW8cL ._GkQLi{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._sW8cL ._GkQLi._lS1N-{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._sW8cL ._GkQLi._335Er{transform:rotate(-180deg)}._hXCHa[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._PQ2Nd{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}._oGmBj{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}._Z5gJA{fill:#515559}._ccV0M{margin:2px 12px 2px 0}._ccV0M._hMFu4>svg{border-color:#0b6ed0}._8m3Au{width:100%}";
|
|
4778
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$r);}
|
|
4650
4779
|
|
|
4651
4780
|
const {
|
|
4652
4781
|
useContext: useDropdownContext,
|
|
@@ -4771,11 +4900,11 @@ const DropdownButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
4771
4900
|
"aria-label": ariaLabel,
|
|
4772
4901
|
"aria-describedby": ariaDescribedby,
|
|
4773
4902
|
id: buttonId,
|
|
4774
|
-
className: classNames__default["default"](className, styles$
|
|
4775
|
-
[styles$
|
|
4776
|
-
[styles$
|
|
4777
|
-
[styles$
|
|
4778
|
-
[styles$
|
|
4903
|
+
className: classNames__default["default"](className, styles$p.button, {
|
|
4904
|
+
[styles$p.hasText]: !!label,
|
|
4905
|
+
[styles$p.invalid]: isInvalid,
|
|
4906
|
+
[styles$p.labelled]: hasFormLabel,
|
|
4907
|
+
[styles$p.selected]: externalLabel !== null && externalLabel !== void 0 ? externalLabel : isOptionSelected // defaultLabel has lighter text color
|
|
4779
4908
|
}),
|
|
4780
4909
|
|
|
4781
4910
|
onFocus: onFocus,
|
|
@@ -4784,15 +4913,15 @@ const DropdownButton = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
4784
4913
|
onClick: handleClick,
|
|
4785
4914
|
"data-testid": dataTestId !== null && dataTestId !== void 0 ? dataTestId : getSubDataTestId(contextDataTestId, 'button')
|
|
4786
4915
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
4787
|
-
className: classNames__default["default"](styles$
|
|
4788
|
-
[styles$
|
|
4789
|
-
[styles$
|
|
4916
|
+
className: classNames__default["default"](styles$p.buttonLabel, {
|
|
4917
|
+
[styles$p.isString]: typeof label === 'string',
|
|
4918
|
+
[styles$p.isNode]: typeof label !== 'string'
|
|
4790
4919
|
})
|
|
4791
4920
|
}, label), /*#__PURE__*/React__default["default"].createElement(icons_index.ChevronDownIcon, {
|
|
4792
4921
|
size: "medium",
|
|
4793
|
-
className: classNames__default["default"](styles$
|
|
4794
|
-
[styles$
|
|
4795
|
-
[styles$
|
|
4922
|
+
className: classNames__default["default"](styles$p.icon, {
|
|
4923
|
+
[styles$p.open]: isOpen,
|
|
4924
|
+
[styles$p.disabled]: disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled
|
|
4796
4925
|
}),
|
|
4797
4926
|
"aria-hidden": "true"
|
|
4798
4927
|
})));
|
|
@@ -5000,10 +5129,10 @@ function useChildIndex(_ref2) {
|
|
|
5000
5129
|
}, ChildIndexContext);
|
|
5001
5130
|
}
|
|
5002
5131
|
|
|
5003
|
-
var css_248z$
|
|
5004
|
-
var inputClasses = {"container":"
|
|
5005
|
-
var stylesheet$
|
|
5006
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
5132
|
+
var css_248z$q = "._qUQkQ{position:relative;display:inline-block;height:36px}._8u-HP{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}._8u-HP:hover{cursor:pointer;background-color:#f5f5f5}._8u-HP:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._8u-HP:disabled,._8u-HP[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._8u-HP:disabled::-moz-placeholder,._8u-HP[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._8u-HP:disabled::placeholder,._8u-HP[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._8u-HP:invalid,._8u-HP[aria-invalid=true]{border-color:#b00}._8u-HP:invalid:focus,._8u-HP[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._8u-HP[type=number]{-moz-appearance:textfield}._8u-HP[type=number]::-webkit-inner-spin-button,._8u-HP[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._8u-HP::-moz-placeholder{color:#515559;opacity:1}._8u-HP::placeholder{color:#515559;opacity:1}._3dyBI{pointer-events:none;color:#515559;fill:#515559}._lkORl{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._qmQyj{color:#515559;font-size:16px}._v3K-R{left:0;margin-left:6px}._SU6o5,._v3K-R{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._SU6o5{right:0;margin-right:6px}";
|
|
5133
|
+
var inputClasses = {"container":"_qUQkQ","input":"_8u-HP","addOn":"_3dyBI","addOnVerticalCenter":"_lkORl","addOnTextNode":"_qmQyj","leftAddOn":"_v3K-R","rightAddOn":"_SU6o5"};
|
|
5134
|
+
var stylesheet$q="._qUQkQ{position:relative;display:inline-block;height:36px}._8u-HP{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}._8u-HP:hover{cursor:pointer;background-color:#f5f5f5}._8u-HP:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._8u-HP:disabled,._8u-HP[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._8u-HP:disabled::-moz-placeholder,._8u-HP[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._8u-HP:disabled::placeholder,._8u-HP[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._8u-HP:invalid,._8u-HP[aria-invalid=true]{border-color:#b00}._8u-HP:invalid:focus,._8u-HP[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._8u-HP[type=number]{-moz-appearance:textfield}._8u-HP[type=number]::-webkit-inner-spin-button,._8u-HP[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._8u-HP::-moz-placeholder{color:#515559;opacity:1}._8u-HP::placeholder{color:#515559;opacity:1}._3dyBI{pointer-events:none;color:#515559;fill:#515559}._lkORl{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._qmQyj{color:#515559;font-size:16px}._v3K-R{left:0;margin-left:6px}._SU6o5,._v3K-R{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._SU6o5{right:0;margin-right:6px}";
|
|
5135
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$q);}
|
|
5007
5136
|
|
|
5008
5137
|
const getAddOnComponent = (addOn, containerClassName, containerRef) => {
|
|
5009
5138
|
if (!addOn) {
|
|
@@ -5020,16 +5149,39 @@ const getAddOnComponent = (addOn, containerClassName, containerRef) => {
|
|
|
5020
5149
|
};
|
|
5021
5150
|
const Input = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
5022
5151
|
let {
|
|
5152
|
+
name,
|
|
5153
|
+
id,
|
|
5023
5154
|
type = 'text',
|
|
5024
5155
|
initialValue,
|
|
5025
|
-
value,
|
|
5026
|
-
onChange,
|
|
5156
|
+
value: externalValue,
|
|
5157
|
+
onChange: externalOnChange,
|
|
5158
|
+
onBlur: externalOnBlur,
|
|
5159
|
+
label,
|
|
5027
5160
|
leftAddOn,
|
|
5028
5161
|
rightAddOn,
|
|
5162
|
+
errorText,
|
|
5163
|
+
helperText,
|
|
5029
5164
|
className: externalClassName,
|
|
5165
|
+
'data-testid': dataTestId,
|
|
5030
5166
|
style,
|
|
5031
5167
|
...rest
|
|
5032
5168
|
} = _ref;
|
|
5169
|
+
const {
|
|
5170
|
+
register,
|
|
5171
|
+
fieldErrors
|
|
5172
|
+
} = useFormField();
|
|
5173
|
+
const inputId = useId(id);
|
|
5174
|
+
const registerProps = name && register ? register(name, {
|
|
5175
|
+
type: 'text'
|
|
5176
|
+
}) : undefined;
|
|
5177
|
+
const onChange = e => {
|
|
5178
|
+
externalOnChange === null || externalOnChange === void 0 || externalOnChange(e);
|
|
5179
|
+
registerProps === null || registerProps === void 0 || registerProps.onChange(e);
|
|
5180
|
+
};
|
|
5181
|
+
const onBlur = e => {
|
|
5182
|
+
externalOnBlur === null || externalOnBlur === void 0 || externalOnBlur(e);
|
|
5183
|
+
registerProps === null || registerProps === void 0 || registerProps.onBlur(e);
|
|
5184
|
+
};
|
|
5033
5185
|
const leftAddOnRef = React.useRef(null);
|
|
5034
5186
|
const rightAddOnRef = React.useRef(null);
|
|
5035
5187
|
const [addOnWidths, setAddOnWidths] = React.useState({
|
|
@@ -5055,21 +5207,32 @@ const Input = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
5055
5207
|
rightAddOn // Re-runs effect when the right add-on changes
|
|
5056
5208
|
]);
|
|
5057
5209
|
|
|
5058
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
5059
|
-
|
|
5210
|
+
return /*#__PURE__*/React__default["default"].createElement(FormFieldWrapper, {
|
|
5211
|
+
inputId: inputId,
|
|
5212
|
+
"data-testid": dataTestId,
|
|
5213
|
+
label: label,
|
|
5214
|
+
errorText: errorText !== null && errorText !== void 0 ? errorText : name && (fieldErrors === null || fieldErrors === void 0 ? void 0 : fieldErrors[name]),
|
|
5215
|
+
helperText: helperText,
|
|
5216
|
+
className: externalClassName,
|
|
5060
5217
|
style: style
|
|
5218
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5219
|
+
className: inputClasses.container
|
|
5061
5220
|
}, getAddOnComponent(leftAddOn, inputClasses.leftAddOn, leftAddOnRef), /*#__PURE__*/React__default["default"].createElement("input", _extends__default["default"]({}, rest, {
|
|
5221
|
+
id: inputId,
|
|
5222
|
+
name: registerProps === null || registerProps === void 0 ? void 0 : registerProps.name,
|
|
5062
5223
|
type: type,
|
|
5063
5224
|
defaultValue: initialValue,
|
|
5064
|
-
value: value,
|
|
5225
|
+
value: externalValue !== null && externalValue !== void 0 ? externalValue : registerProps === null || registerProps === void 0 ? void 0 : registerProps.value,
|
|
5065
5226
|
onChange: onChange,
|
|
5227
|
+
onBlur: onBlur,
|
|
5066
5228
|
className: inputClasses.input,
|
|
5067
5229
|
style: {
|
|
5068
5230
|
paddingLeft: "".concat(addOnWidths.leftAddOnWidth + ADD_ON_HORIZONTAL_PADDING, "px"),
|
|
5069
5231
|
paddingRight: "".concat(addOnWidths.rightAddOnWidth + ADD_ON_HORIZONTAL_PADDING, "px")
|
|
5070
5232
|
},
|
|
5071
|
-
|
|
5072
|
-
|
|
5233
|
+
"data-testid": dataTestId,
|
|
5234
|
+
ref: mergeRefs(ref, registerProps === null || registerProps === void 0 ? void 0 : registerProps.ref)
|
|
5235
|
+
})), getAddOnComponent(rightAddOn, inputClasses.rightAddOn, rightAddOnRef)));
|
|
5073
5236
|
});
|
|
5074
5237
|
|
|
5075
5238
|
/* eslint-disable no-nested-ternary */
|
|
@@ -5139,19 +5302,19 @@ const DropdownSearch = /*#__PURE__*/React__default["default"].forwardRef((_, ref
|
|
|
5139
5302
|
setHighlightedIndex(-1);
|
|
5140
5303
|
};
|
|
5141
5304
|
return isOpen ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5142
|
-
className: styles$
|
|
5305
|
+
className: styles$p.search,
|
|
5143
5306
|
ref: mergeRefs(internalRef, ref),
|
|
5144
5307
|
onMouseEnter: handleMouseEnter,
|
|
5145
5308
|
onMouseLeave: handleMouseLeave,
|
|
5146
5309
|
onSelect: handleSelect
|
|
5147
5310
|
}, /*#__PURE__*/React__default["default"].createElement(Input, {
|
|
5148
|
-
className: styles$
|
|
5311
|
+
className: styles$p.searchInput,
|
|
5149
5312
|
onKeyDown: handleKeyDown,
|
|
5150
5313
|
onChange: handleSearch,
|
|
5151
5314
|
ref: inputRef,
|
|
5152
5315
|
placeholder: searchText,
|
|
5153
5316
|
leftAddOn: /*#__PURE__*/React__default["default"].createElement(icons_index.SearchIcon, {
|
|
5154
|
-
className: styles$
|
|
5317
|
+
className: styles$p.searchIcon,
|
|
5155
5318
|
"aria-hidden": true
|
|
5156
5319
|
}),
|
|
5157
5320
|
role: "combobox",
|
|
@@ -5247,7 +5410,7 @@ const DropdownList = /*#__PURE__*/React__default["default"].forwardRef((_ref, re
|
|
|
5247
5410
|
"aria-multiselectable": isMultiSelect || undefined,
|
|
5248
5411
|
"aria-label": ariaLabel
|
|
5249
5412
|
}, children), isSearchable && showNoResults && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5250
|
-
className: styles$
|
|
5413
|
+
className: styles$p.emptyOption
|
|
5251
5414
|
// eslint-disable-next-line jsx-a11y/role-has-required-aria-props
|
|
5252
5415
|
,
|
|
5253
5416
|
role: "option" // `aria-selected` is omitted because this option is not selectable
|
|
@@ -5260,6 +5423,8 @@ const Dropdown = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
5260
5423
|
let {
|
|
5261
5424
|
className,
|
|
5262
5425
|
children,
|
|
5426
|
+
label,
|
|
5427
|
+
name,
|
|
5263
5428
|
disabled = false,
|
|
5264
5429
|
isInvalid = false,
|
|
5265
5430
|
isOpen: externalIsOpen,
|
|
@@ -5271,8 +5436,11 @@ const Dropdown = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
5271
5436
|
// TODO: Delete or stabilize since no longer used by AdvancedTable
|
|
5272
5437
|
defaultValue,
|
|
5273
5438
|
value: externalValue,
|
|
5274
|
-
onChange,
|
|
5439
|
+
onChange: externalOnChange,
|
|
5440
|
+
onBlur: externalOnBlur,
|
|
5275
5441
|
id,
|
|
5442
|
+
errorText,
|
|
5443
|
+
helperText,
|
|
5276
5444
|
'aria-labelledby': ariaLabelledBy,
|
|
5277
5445
|
'aria-label': ariaLabel,
|
|
5278
5446
|
'aria-describedby': ariaDescribedby,
|
|
@@ -5283,6 +5451,19 @@ const Dropdown = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
5283
5451
|
'data-testid': dataTestId,
|
|
5284
5452
|
...rest
|
|
5285
5453
|
} = _ref;
|
|
5454
|
+
const {
|
|
5455
|
+
register,
|
|
5456
|
+
fieldErrors
|
|
5457
|
+
} = useFormField();
|
|
5458
|
+
|
|
5459
|
+
// generate props only if a name is passed and used inside a Form
|
|
5460
|
+
const registerProps = name && register ? register(name, {
|
|
5461
|
+
type: 'custom'
|
|
5462
|
+
}) : undefined;
|
|
5463
|
+
const onChange = newValue => {
|
|
5464
|
+
externalOnChange === null || externalOnChange === void 0 || externalOnChange(newValue);
|
|
5465
|
+
registerProps === null || registerProps === void 0 || registerProps.onChange(newValue);
|
|
5466
|
+
};
|
|
5286
5467
|
const buttonRef = React.useRef(null);
|
|
5287
5468
|
const listRef = React.useRef(null);
|
|
5288
5469
|
let dropdownButton = /*#__PURE__*/React__default["default"].createElement(DropdownButton, null);
|
|
@@ -5308,7 +5489,7 @@ const Dropdown = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
5308
5489
|
const dialogId = (_dropdownList$props$i = (_dropdownList$props = dropdownList.props) === null || _dropdownList$props === void 0 ? void 0 : _dropdownList$props.id) !== null && _dropdownList$props$i !== void 0 ? _dropdownList$props$i : "".concat(containerId, "-list");
|
|
5309
5490
|
const listboxId = "".concat(containerId, "-listbox");
|
|
5310
5491
|
const [isOpen, setIsOpen] = useControllableState(false, onIsOpenChange, externalIsOpen);
|
|
5311
|
-
const [value, setValue] = useControllableState(defaultValue, onChange, externalValue);
|
|
5492
|
+
const [value, setValue] = useControllableState(defaultValue, onChange, externalValue !== null && externalValue !== void 0 ? externalValue : registerProps === null || registerProps === void 0 ? void 0 : registerProps.value);
|
|
5312
5493
|
const [selectedIndex, setSelectedIndex] = React.useState(0);
|
|
5313
5494
|
const [highlightedIndex, setHighlightedIndex] = useControllableState(-1, onHighlightedIndexChange, externalHighlightedIndex);
|
|
5314
5495
|
const [minWidth, setMinWidth] = React.useState();
|
|
@@ -5318,6 +5499,29 @@ const Dropdown = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
5318
5499
|
setSearchValue('');
|
|
5319
5500
|
}
|
|
5320
5501
|
}, [isOpen, setSearchValue]);
|
|
5502
|
+
|
|
5503
|
+
// registerProps.onBlur() marks component touched and runs validation
|
|
5504
|
+
// this function is invoked manually to avoid validation timing based only
|
|
5505
|
+
// on the blur of the anchor element. This component is marked touched
|
|
5506
|
+
// if the anchor is blurred without opening the flyout, or if the flyout
|
|
5507
|
+
// is closed without focusing the anchor.
|
|
5508
|
+
|
|
5509
|
+
const focusRef = React.useRef();
|
|
5510
|
+
const onBlur = e => {
|
|
5511
|
+
// Prevents incorrect validation caused by DropdownOptions inheriting this blur event
|
|
5512
|
+
// note: relatedTarget in this context refers to where the focus is going after blur
|
|
5513
|
+
if (!e.currentTarget.contains(e.relatedTarget)) {
|
|
5514
|
+
if (!isOpen) registerProps === null || registerProps === void 0 || registerProps.onBlur(); // marks field touched
|
|
5515
|
+
externalOnBlur === null || externalOnBlur === void 0 || externalOnBlur(e);
|
|
5516
|
+
}
|
|
5517
|
+
};
|
|
5518
|
+
useDidUpdate(() => {
|
|
5519
|
+
if (!isOpen) {
|
|
5520
|
+
var _focusRef$current;
|
|
5521
|
+
const isAnchorFocused = (_focusRef$current = focusRef.current) === null || _focusRef$current === void 0 ? void 0 : _focusRef$current.contains(document.activeElement);
|
|
5522
|
+
if (!isAnchorFocused) registerProps === null || registerProps === void 0 || registerProps.onBlur(); // marks field touched
|
|
5523
|
+
}
|
|
5524
|
+
}, [isOpen]);
|
|
5321
5525
|
const handleClose = React.useCallback(() => {
|
|
5322
5526
|
setIsOpen(false);
|
|
5323
5527
|
setHighlightedIndex(-1);
|
|
@@ -5496,7 +5700,7 @@ const Dropdown = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
5496
5700
|
setHighlightedIndex,
|
|
5497
5701
|
setIsOpen,
|
|
5498
5702
|
disabled,
|
|
5499
|
-
isInvalid,
|
|
5703
|
+
isInvalid: isInvalid !== null && isInvalid !== void 0 ? isInvalid : !!(name && fieldErrors !== null && fieldErrors !== void 0 && fieldErrors[name]),
|
|
5500
5704
|
onKeyDownButton,
|
|
5501
5705
|
onKeyDownList,
|
|
5502
5706
|
onOptionSelected,
|
|
@@ -5516,13 +5720,20 @@ const Dropdown = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =
|
|
|
5516
5720
|
}
|
|
5517
5721
|
}, /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
5518
5722
|
id: id,
|
|
5519
|
-
ref: ref,
|
|
5520
|
-
className: classNames__default["default"](className, styles$
|
|
5723
|
+
ref: mergeRefs(ref, registerProps === null || registerProps === void 0 ? void 0 : registerProps.ref, focusRef),
|
|
5724
|
+
className: classNames__default["default"](className, styles$p.container),
|
|
5725
|
+
"data-testid": dataTestId,
|
|
5726
|
+
onBlur: onBlur
|
|
5727
|
+
}), /*#__PURE__*/React__default["default"].createElement(FormFieldWrapper, {
|
|
5728
|
+
inputId: buttonId,
|
|
5729
|
+
label: label,
|
|
5730
|
+
errorText: errorText !== null && errorText !== void 0 ? errorText : name && (fieldErrors === null || fieldErrors === void 0 ? void 0 : fieldErrors[name]),
|
|
5731
|
+
helperText: helperText,
|
|
5521
5732
|
"data-testid": dataTestId
|
|
5522
|
-
}
|
|
5733
|
+
}, dropdownButton, /*#__PURE__*/React__default["default"].createElement(ChildIndexProvider, {
|
|
5523
5734
|
items: options,
|
|
5524
5735
|
setItems: setOptions
|
|
5525
|
-
}, dropdownList)));
|
|
5736
|
+
}, dropdownList))));
|
|
5526
5737
|
});
|
|
5527
5738
|
|
|
5528
5739
|
const {
|
|
@@ -5554,10 +5765,10 @@ const DropdownHeader = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
5554
5765
|
}, commonProps), children) : /*#__PURE__*/React__default["default"].createElement("div", commonProps, children));
|
|
5555
5766
|
});
|
|
5556
5767
|
|
|
5557
|
-
var css_248z$
|
|
5558
|
-
var styles$
|
|
5559
|
-
var stylesheet$
|
|
5560
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
5768
|
+
var css_248z$p = "._di3vM{display:inline-flex;position:relative}._4-Q9F,._di3vM{cursor:pointer;height:16px;width:16px}._4-Q9F{position:absolute;opacity:0;z-index:10}._4-Q9F._tWw2D~._D0oi6>._3tnkR{fill-opacity:1}._4-Q9F._tWw2D~._D0oi6{border-color:transparent;background-color:#0b6ed0}._4-Q9F._tWw2D~._D0oi6>._3tnkR{fill:#fff}._4-Q9F._tWw2D:hover~._D0oi6{background-color:#085caf}._4-Q9F:not(._tWw2D):hover~._D0oi6{border-color:#0b6ed0}._4-Q9F._2hUHY{cursor:not-allowed}._4-Q9F._2hUHY~._D0oi6{opacity:.4}._D0oi6{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}._3tnkR{fill:#0b6ed0;fill-opacity:0}";
|
|
5769
|
+
var styles$o = {"checkbox":"_di3vM","input":"_4-Q9F","checked":"_tWw2D","check":"_D0oi6","checkIcon":"_3tnkR","disabled":"_2hUHY"};
|
|
5770
|
+
var stylesheet$p="._di3vM{display:inline-flex;position:relative}._4-Q9F,._di3vM{cursor:pointer;height:16px;width:16px}._4-Q9F{position:absolute;opacity:0;z-index:10}._4-Q9F._tWw2D~._D0oi6>._3tnkR{fill-opacity:1}._4-Q9F._tWw2D~._D0oi6{border-color:transparent;background-color:#0b6ed0}._4-Q9F._tWw2D~._D0oi6>._3tnkR{fill:#fff}._4-Q9F._tWw2D:hover~._D0oi6{background-color:#085caf}._4-Q9F:not(._tWw2D):hover~._D0oi6{border-color:#0b6ed0}._4-Q9F._2hUHY{cursor:not-allowed}._4-Q9F._2hUHY~._D0oi6{opacity:.4}._D0oi6{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}._3tnkR{fill:#0b6ed0;fill-opacity:0}";
|
|
5771
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$p);}
|
|
5561
5772
|
|
|
5562
5773
|
// Internal only component, used with Dropdown and SelectMenu multiselects.
|
|
5563
5774
|
// input elements cannot be inside an option role for accessibility reasons,
|
|
@@ -5570,17 +5781,17 @@ const VisualCheckbox = _ref => {
|
|
|
5570
5781
|
disabled = false
|
|
5571
5782
|
} = _ref;
|
|
5572
5783
|
return /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5573
|
-
className: classNames__default["default"](className, styles$
|
|
5784
|
+
className: classNames__default["default"](className, styles$o.checkbox),
|
|
5574
5785
|
role: "presentation"
|
|
5575
5786
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5576
|
-
className: classNames__default["default"](styles$
|
|
5577
|
-
[styles$
|
|
5578
|
-
[styles$
|
|
5787
|
+
className: classNames__default["default"](styles$o.input, {
|
|
5788
|
+
[styles$o.checked]: checked,
|
|
5789
|
+
[styles$o.disabled]: disabled
|
|
5579
5790
|
})
|
|
5580
5791
|
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
5581
|
-
className: styles$
|
|
5792
|
+
className: styles$o.check
|
|
5582
5793
|
}, /*#__PURE__*/React__default["default"].createElement(Check, {
|
|
5583
|
-
className: styles$
|
|
5794
|
+
className: styles$o.checkIcon
|
|
5584
5795
|
})));
|
|
5585
5796
|
};
|
|
5586
5797
|
|
|
@@ -5659,7 +5870,7 @@ const DropdownOption = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
5659
5870
|
}
|
|
5660
5871
|
}, [isHighlighted, isOpen, listRef, isSearchable, searchHeight]);
|
|
5661
5872
|
return isOpen && isVisible ? /*#__PURE__*/React__default["default"].createElement(FlyoutOption, _extends__default["default"]({}, rest, {
|
|
5662
|
-
className: classNames__default["default"](className, styles$
|
|
5873
|
+
className: classNames__default["default"](className, styles$p.option),
|
|
5663
5874
|
ref: mergeRefs(internalRef, ref),
|
|
5664
5875
|
onClick: handleSelect,
|
|
5665
5876
|
tabIndex: -1,
|
|
@@ -5672,8 +5883,8 @@ const DropdownOption = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
5672
5883
|
}),
|
|
5673
5884
|
onMouseLeave: wrapEvent(onMouseLeave, () => setHighlightedIndex(-1))
|
|
5674
5885
|
}), children || /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, isMultiSelect && /*#__PURE__*/React__default["default"].createElement(VisualCheckbox, {
|
|
5675
|
-
className: classNames__default["default"](styles$
|
|
5676
|
-
[styles$
|
|
5886
|
+
className: classNames__default["default"](styles$p.checkbox, {
|
|
5887
|
+
[styles$p.highlighted]: isHighlighted && !isSelected
|
|
5677
5888
|
}),
|
|
5678
5889
|
checked: isSelected,
|
|
5679
5890
|
disabled: disabled
|
|
@@ -5682,10 +5893,10 @@ const DropdownOption = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
5682
5893
|
});
|
|
5683
5894
|
});
|
|
5684
5895
|
|
|
5685
|
-
var css_248z$
|
|
5686
|
-
var filePickerStyles = {"container":"
|
|
5687
|
-
var stylesheet$
|
|
5688
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$
|
|
5896
|
+
var css_248z$o = "._31WCV{position:relative}._31WCV[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._31WCV:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Svpzm{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._lSQNR{margin-left:16px;font-size:14px;color:#32363a}._lSQNR ._l00E2{margin-right:16px}";
|
|
5897
|
+
var filePickerStyles = {"container":"_31WCV","fileInput":"_Svpzm","fileDetails":"_lSQNR","fileName":"_l00E2"};
|
|
5898
|
+
var stylesheet$o="._31WCV{position:relative}._31WCV[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._31WCV:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._Svpzm{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._lSQNR{margin-left:16px;font-size:14px;color:#32363a}._lSQNR ._l00E2{margin-right:16px}";
|
|
5899
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$o);}
|
|
5689
5900
|
|
|
5690
5901
|
const FileDetails = _ref => {
|
|
5691
5902
|
let {
|
|
@@ -5789,51 +6000,16 @@ const FilePicker = /*#__PURE__*/React__default["default"].forwardRef((_ref2, ref
|
|
|
5789
6000
|
}));
|
|
5790
6001
|
});
|
|
5791
6002
|
|
|
5792
|
-
var css_248z$
|
|
5793
|
-
var styles$
|
|
5794
|
-
var stylesheet$
|
|
5795
|
-
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$o);}
|
|
5796
|
-
|
|
5797
|
-
var css_248z$n = "._aAJui{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._XBmAe{color:#6a6d70;fill:#6a6d70}._E5Nbu{color:#b00;fill:#b00}._gR0ko,._yov2M{margin-left:-2px;margin-right:3px}";
|
|
5798
|
-
var styles$n = {"caption":"_aAJui","helperText":"_XBmAe","errorText":"_E5Nbu","errorIcon":"_yov2M","readOnlyIcon":"_gR0ko"};
|
|
5799
|
-
var stylesheet$n="._aAJui{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._XBmAe{color:#6a6d70;fill:#6a6d70}._E5Nbu{color:#b00;fill:#b00}._gR0ko,._yov2M{margin-left:-2px;margin-right:3px}";
|
|
6003
|
+
var css_248z$n = "._KRYqF{display:flex;flex-direction:column;align-items:flex-start}._wJPIR{margin-top:6px;max-width:100%}._wJPIR *+*{margin-top:4px}";
|
|
6004
|
+
var styles$n = {"formField":"_KRYqF","captionContainer":"_wJPIR"};
|
|
6005
|
+
var stylesheet$n="._KRYqF{display:flex;flex-direction:column;align-items:flex-start}._wJPIR{margin-top:6px;max-width:100%}._wJPIR *+*{margin-top:4px}";
|
|
5800
6006
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$n);}
|
|
5801
6007
|
|
|
5802
|
-
const HelperText = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
5803
|
-
let {
|
|
5804
|
-
children,
|
|
5805
|
-
className,
|
|
5806
|
-
...rest
|
|
5807
|
-
} = _ref;
|
|
5808
|
-
const classes = classNames__default["default"](className, styles$n.caption, styles$n.helperText);
|
|
5809
|
-
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
5810
|
-
ref: ref,
|
|
5811
|
-
className: classes
|
|
5812
|
-
}), children);
|
|
5813
|
-
});
|
|
5814
|
-
|
|
5815
|
-
const ErrorText = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
5816
|
-
let {
|
|
5817
|
-
children,
|
|
5818
|
-
className,
|
|
5819
|
-
...rest
|
|
5820
|
-
} = _ref;
|
|
5821
|
-
const classes = classNames__default["default"](className, styles$n.caption, styles$n.errorText);
|
|
5822
|
-
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
5823
|
-
ref: ref,
|
|
5824
|
-
className: classes
|
|
5825
|
-
}), /*#__PURE__*/React__default["default"].createElement(icons_index.ErrorIcon, {
|
|
5826
|
-
size: "small",
|
|
5827
|
-
className: styles$n.errorIcon,
|
|
5828
|
-
"aria-hidden": "true"
|
|
5829
|
-
}), children);
|
|
5830
|
-
});
|
|
5831
|
-
|
|
5832
6008
|
const ReadOnlyText = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
5833
6009
|
let {
|
|
5834
6010
|
...rest
|
|
5835
6011
|
} = _ref;
|
|
5836
|
-
const classes = classNames__default["default"](styles$
|
|
6012
|
+
const classes = classNames__default["default"](styles$w.caption, styles$w.helperText);
|
|
5837
6013
|
const {
|
|
5838
6014
|
translate
|
|
5839
6015
|
} = useTranslation();
|
|
@@ -5843,7 +6019,7 @@ const ReadOnlyText = /*#__PURE__*/React__default["default"].forwardRef((_ref, re
|
|
|
5843
6019
|
"aria-hidden": true
|
|
5844
6020
|
}), /*#__PURE__*/React__default["default"].createElement(icons_index.LockIcon, {
|
|
5845
6021
|
size: "small",
|
|
5846
|
-
className: styles$
|
|
6022
|
+
className: styles$w.readOnlyIcon
|
|
5847
6023
|
}), translate('readOnly'));
|
|
5848
6024
|
});
|
|
5849
6025
|
|
|
@@ -5868,7 +6044,7 @@ const FormField = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
5868
6044
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
5869
6045
|
ref: mergeRefs(ref, focusRef),
|
|
5870
6046
|
className: classNames__default["default"](className, {
|
|
5871
|
-
[styles$
|
|
6047
|
+
[styles$n.formField]: hasLabel && hasControl
|
|
5872
6048
|
}),
|
|
5873
6049
|
id: containerId,
|
|
5874
6050
|
"data-testid": rootDataTestId
|
|
@@ -5885,7 +6061,7 @@ const FormField = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
5885
6061
|
setFormFieldType
|
|
5886
6062
|
}
|
|
5887
6063
|
}, children), helperText || errorText || isReadOnly ? /*#__PURE__*/React__default["default"].createElement("div", {
|
|
5888
|
-
className: styles$
|
|
6064
|
+
className: styles$n.captionContainer
|
|
5889
6065
|
}, !helperText && formFieldType === 'input' && isReadOnly && /*#__PURE__*/React__default["default"].createElement(ReadOnlyText, null), helperText && /*#__PURE__*/React__default["default"].createElement(HelperText, {
|
|
5890
6066
|
id: helperTextId,
|
|
5891
6067
|
"data-testid": getSubDataTestId(rootDataTestId, 'helper-text')
|
|
@@ -5895,9 +6071,9 @@ const FormField = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
5895
6071
|
}, errorText)) : null);
|
|
5896
6072
|
});
|
|
5897
6073
|
|
|
5898
|
-
var css_248z$m = ".
|
|
5899
|
-
var styles$m = {"dialog":"
|
|
5900
|
-
var stylesheet$m=".
|
|
6074
|
+
var css_248z$m = "._qR-wV{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _Z3uSf{0%{transform:scale3d(.7,.7,.7);opacity:0}}._DNI8a{animation:_Z3uSf both;animation-duration:.2s}@keyframes _k-BcY{to{transform:scale3d(.7,.7,.7);opacity:0}}._JABEp{animation:_k-BcY both;animation-duration:.2s}";
|
|
6075
|
+
var styles$m = {"dialog":"_qR-wV","transitionIn":"_DNI8a","showAnimation":"_Z3uSf","transitionOut":"_JABEp","hideAnimation":"_k-BcY"};
|
|
6076
|
+
var stylesheet$m="._qR-wV{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _Z3uSf{0%{transform:scale3d(.7,.7,.7);opacity:0}}._DNI8a{animation:_Z3uSf both;animation-duration:.2s}@keyframes _k-BcY{to{transform:scale3d(.7,.7,.7);opacity:0}}._JABEp{animation:_k-BcY both;animation-duration:.2s}";
|
|
5901
6077
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$m);}
|
|
5902
6078
|
|
|
5903
6079
|
const FullScreenTakeover = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -6518,9 +6694,9 @@ var IconTypes = {
|
|
|
6518
6694
|
WorkingFromHome: 'WorkingFromHome'
|
|
6519
6695
|
};
|
|
6520
6696
|
|
|
6521
|
-
var css_248z$l = ".
|
|
6522
|
-
var styles$l = {"container":"
|
|
6523
|
-
var stylesheet$l=".
|
|
6697
|
+
var css_248z$l = "._5CDb2{display:inline-block}._p94xX{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._p94xX::-moz-selection{background-color:rgba(11,110,208,.11)}._p94xX::selection{background-color:rgba(11,110,208,.11)}._p94xX:focus,._p94xX:hover{background-color:#f5f5f5}._p94xX:focus{border:2px solid #0a3f88;padding:3px}._p94xX:focus._GVv4L{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
|
|
6698
|
+
var styles$l = {"container":"_5CDb2","inlineInput":"_p94xX","isEditing":"_GVv4L"};
|
|
6699
|
+
var stylesheet$l="._5CDb2{display:inline-block}._p94xX{color:#085caf;cursor:pointer;font-size:14px;box-sizing:border-box;padding:4px;margin:-5px;outline:0;border:1px solid transparent;border-radius:4px;background-clip:padding-box;display:block}._p94xX::-moz-selection{background-color:rgba(11,110,208,.11)}._p94xX::selection{background-color:rgba(11,110,208,.11)}._p94xX:focus,._p94xX:hover{background-color:#f5f5f5}._p94xX:focus{border:2px solid #0a3f88;padding:3px}._p94xX:focus._GVv4L{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
|
|
6524
6700
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$l);}
|
|
6525
6701
|
|
|
6526
6702
|
const InlineInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -6641,9 +6817,9 @@ const InlineInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
6641
6817
|
}), defaultValue));
|
|
6642
6818
|
});
|
|
6643
6819
|
|
|
6644
|
-
var css_248z$k = ".
|
|
6645
|
-
var styles$k = {"addon":"
|
|
6646
|
-
var stylesheet$k=".
|
|
6820
|
+
var css_248z$k = "._txHMa{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._txHMa._TSejv{height:26px;min-height:26px;padding:5px 8px}._UiP7s{display:flex;align-items:stretch}._UiP7s._wLB4u{width:100%}._UiP7s ._iDD5d{margin:0;position:relative;flex-shrink:0;z-index:10}._UiP7s ._iDD5d:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._UiP7s ._iDD5d:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._UiP7s ._iDD5d:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._UiP7s ._iDD5d:last-child,._UiP7s ._iDD5d:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._UiP7s ._iDD5d:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._UiP7s ._iDD5d._kUrVQ{flex-shrink:1;min-width:40px;z-index:0}._UiP7s ._iDD5d._kUrVQ._wLB4u{flex-grow:1}._UiP7s ._iDD5d:focus{z-index:20}";
|
|
6821
|
+
var styles$k = {"addon":"_txHMa","small":"_TSejv","inputGroup":"_UiP7s","full":"_wLB4u","inputGroupElement":"_iDD5d","input":"_kUrVQ"};
|
|
6822
|
+
var stylesheet$k="._txHMa{border:1px solid #898989;border-radius:4px;height:36px;min-height:36px;color:#6a6d70;fill:#6a6d70;background-color:#fafafa;font-size:14px;display:inline-flex;justify-content:center;align-items:center;line-height:1;padding:0 13px}._txHMa._TSejv{height:26px;min-height:26px;padding:5px 8px}._UiP7s{display:flex;align-items:stretch}._UiP7s._wLB4u{width:100%}._UiP7s ._iDD5d{margin:0;position:relative;flex-shrink:0;z-index:10}._UiP7s ._iDD5d:first-child{margin:0 -1px 0 0;border-top-left-radius:4px;border-bottom-left-radius:4px;border-top-right-radius:0;border-bottom-right-radius:0}._UiP7s ._iDD5d:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._UiP7s ._iDD5d:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._UiP7s ._iDD5d:last-child,._UiP7s ._iDD5d:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._UiP7s ._iDD5d:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._UiP7s ._iDD5d._kUrVQ{flex-shrink:1;min-width:40px;z-index:0}._UiP7s ._iDD5d._kUrVQ._wLB4u{flex-grow:1}._UiP7s ._iDD5d:focus{z-index:20}";
|
|
6647
6823
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$k);}
|
|
6648
6824
|
|
|
6649
6825
|
const InputGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -6688,9 +6864,9 @@ const InputGroupAddon = /*#__PURE__*/React__default["default"].forwardRef((_ref,
|
|
|
6688
6864
|
}), children);
|
|
6689
6865
|
});
|
|
6690
6866
|
|
|
6691
|
-
var css_248z$j = ".
|
|
6692
|
-
var styles$j = {"link":"
|
|
6693
|
-
var stylesheet$j=".
|
|
6867
|
+
var css_248z$j = "._DXsA1{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._DXsA1:active:focus,._DXsA1:focus{outline:none}._DXsA1:visited{color:#0854a1}._DXsA1:hover{color:#085caf}._DXsA1:active{color:#0854a1}._DXsA1.focus-visible,._DXsA1:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6868
|
+
var styles$j = {"link":"_DXsA1"};
|
|
6869
|
+
var stylesheet$j="._DXsA1{color:#0b6ed0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;-webkit-text-decoration-skip:ink;text-decoration-skip-ink:auto;text-underline-offset:3px;border-radius:1px}._DXsA1:active:focus,._DXsA1:focus{outline:none}._DXsA1:visited{color:#0854a1}._DXsA1:hover{color:#085caf}._DXsA1:active{color:#0854a1}._DXsA1.focus-visible,._DXsA1:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6694
6870
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$j);}
|
|
6695
6871
|
|
|
6696
6872
|
const Link = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -6712,9 +6888,9 @@ const Link = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
|
6712
6888
|
}), children);
|
|
6713
6889
|
});
|
|
6714
6890
|
|
|
6715
|
-
var css_248z$i = ".
|
|
6716
|
-
var styles$i = {"set":"
|
|
6717
|
-
var stylesheet$i=".
|
|
6891
|
+
var css_248z$i = "._GiFHr{width:100%}._Z8l6G{display:flex;align-items:center}._q9zRP{display:flex;flex-wrap:wrap;grid-gap:4px}._q9zRP._W2-Wo :nth-last-child(2){margin-right:42px}._MO99L{position:relative;padding-left:32px;padding-top:16px}._XWoNh ._MO99L{padding-top:0;padding-left:16px}._XWoNh ._MO99L+._MO99L{margin-top:16px}._-Qs-r{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._XWoNh ._MO99L:first-of-type ._-Qs-r{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._XWoNh ._-Qs-r{top:-16px;left:0}._XWoNh ._MO99L:not(:first-of-type):not(:last-of-type) ._-Qs-r{border-bottom-left-radius:0}._99O3B{margin-left:-46px}._l5Uio{margin:0 2px 0 4px}._l5Uio.focus-visible,._l5Uio:focus-visible{outline-width:2px}._FCkGC{margin-left:4px}";
|
|
6892
|
+
var styles$i = {"set":"_GiFHr","setWrapper":"_Z8l6G","condition":"_q9zRP","readOnly":"_W2-Wo","branch":"_MO99L","fixedSet":"_XWoNh","connection":"_-Qs-r","conditionControlsContainer":"_99O3B","controls":"_l5Uio","controlMenuItem":"_FCkGC"};
|
|
6893
|
+
var stylesheet$i="._GiFHr{width:100%}._Z8l6G{display:flex;align-items:center}._q9zRP{display:flex;flex-wrap:wrap;grid-gap:4px}._q9zRP._W2-Wo :nth-last-child(2){margin-right:42px}._MO99L{position:relative;padding-left:32px;padding-top:16px}._XWoNh ._MO99L{padding-top:0;padding-left:16px}._XWoNh ._MO99L+._MO99L{margin-top:16px}._-Qs-r{position:absolute;left:16px;top:0;height:34px;width:16px;border-left:1px solid #c2c2c2;border-bottom:1px solid #c2c2c2;border-bottom-left-radius:4px}._XWoNh ._MO99L:first-of-type ._-Qs-r{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._XWoNh ._-Qs-r{top:-16px;left:0}._XWoNh ._MO99L:not(:first-of-type):not(:last-of-type) ._-Qs-r{border-bottom-left-radius:0}._99O3B{margin-left:-46px}._l5Uio{margin:0 2px 0 4px}._l5Uio.focus-visible,._l5Uio:focus-visible{outline-width:2px}._FCkGC{margin-left:4px}";
|
|
6718
6894
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$i);}
|
|
6719
6895
|
|
|
6720
6896
|
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
@@ -6830,9 +7006,12 @@ function walkToRoot(position) {
|
|
|
6830
7006
|
}
|
|
6831
7007
|
return root;
|
|
6832
7008
|
}
|
|
6833
|
-
function getPreviousItemId(conditionRoot, position) {
|
|
7009
|
+
function getPreviousItemId(conditionRoot, position, fixedSet) {
|
|
6834
7010
|
const parentSet = getParentSet(conditionRoot, position);
|
|
6835
7011
|
if (position.index === 0) {
|
|
7012
|
+
if (fixedSet) {
|
|
7013
|
+
return null;
|
|
7014
|
+
}
|
|
6836
7015
|
// The previous item is the parent
|
|
6837
7016
|
return parentSet.id;
|
|
6838
7017
|
}
|
|
@@ -6890,9 +7069,9 @@ const ConditionContainer = function ConditionContainer(_ref) {
|
|
|
6890
7069
|
}), conditionControls);
|
|
6891
7070
|
};
|
|
6892
7071
|
|
|
6893
|
-
var css_248z$h = ".
|
|
6894
|
-
var styles$h = {"menuBtn":"
|
|
6895
|
-
var stylesheet$h=".
|
|
7072
|
+
var css_248z$h = "._PZf1x._PZf1x{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}._PZf1x._PZf1x,._PZf1x._PZf1x ._r7SPP{display:inline-flex;align-items:center}._PZf1x._PZf1x ._r7SPP{overflow:hidden;text-overflow:ellipsis}._PZf1x._PZf1x._hCbep{min-height:26px;height:26px}._PZf1x._PZf1x._lfOMI{color:#32363a}._PZf1x._PZf1x:hover:not([aria-disabled=true]){background-color:#f5f5f5}._PZf1x._PZf1x:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._PZf1x._PZf1x[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._PZf1x._PZf1x[aria-disabled=true]>svg{fill:#515559;opacity:.4}._PZf1x._PZf1x[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._PZf1x._PZf1x._--4FG{padding-left:0}._PZf1x._PZf1x._IGshM{margin-top:4px}._PZf1x._PZf1x ._y2jWE{fill:#515559}._PZf1x._PZf1x ._y2jWE._hCbep{top:0}._PZf1x._PZf1x ._y2jWE._Qm5Ia{transform:rotate(-180deg)}._-usD-{margin: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-x:hidden;overflow-y:auto;overflow:hidden auto}._-usD-::-webkit-scrollbar,._-usD-::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._-usD-::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._-usD-::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._-usD-:hover::-webkit-scrollbar,._-usD-:hover::-webkit-scrollbar-thumb,._-usD-[focus-within]::-webkit-scrollbar,._-usD-[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._-usD-:focus-within::-webkit-scrollbar,._-usD-:focus-within::-webkit-scrollbar-thumb,._-usD-:hover::-webkit-scrollbar,._-usD-:hover::-webkit-scrollbar-thumb{visibility:visible}._lIZ2j{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._lIZ2j[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._lIZ2j._eO5Ic{background-color:#efefef}._lIZ2j._kbVjR{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._lIZ2j._lfOMI{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._lIZ2j._lfOMI._eO5Ic{background-color:#e4effa}._lIZ2j._--oTI{cursor:default}._lIZ2j:active:not(._NuQ5d):not(._lfOMI):not([aria-disabled=true]):not(._--oTI){background-color:#e8e9e9}._NuQ5d{padding-right:32px}._NuQ5d ._y2jWE{position:absolute;top:8px;right:3px;fill:#515559}._Y4bTu{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._PDE29{position:absolute;top:13px;left:13px}._IeByb._IeByb{padding-left:32px}._eAud-{margin:2px 12px 2px 0;flex-shrink:0}._eAud-._9mbUi>svg{border-color:#0b6ed0}._9hTZS{display:flex;justify-self:center;margin:8px}";
|
|
7073
|
+
var styles$h = {"menuBtn":"_PZf1x","menuBtnLabel":"_r7SPP","small":"_hCbep","selected":"_lfOMI","unlabelledButton":"_--4FG","formLabelled":"_IGshM","rightIcon":"_y2jWE","open":"_Qm5Ia","contentPane":"_-usD-","menuItem":"_lIZ2j","active":"_eO5Ic","focus":"_kbVjR","noMenuItems":"_--oTI","subMenu":"_NuQ5d","searchBox":"_Y4bTu","searchBoxIcon":"_PDE29","searchBoxInput":"_IeByb","checkbox":"_eAud-","highlighted":"_9mbUi","menuSpinner":"_9hTZS"};
|
|
7074
|
+
var stylesheet$h="._PZf1x._PZf1x{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}._PZf1x._PZf1x,._PZf1x._PZf1x ._r7SPP{display:inline-flex;align-items:center}._PZf1x._PZf1x ._r7SPP{overflow:hidden;text-overflow:ellipsis}._PZf1x._PZf1x._hCbep{min-height:26px;height:26px}._PZf1x._PZf1x._lfOMI{color:#32363a}._PZf1x._PZf1x:hover:not([aria-disabled=true]){background-color:#f5f5f5}._PZf1x._PZf1x:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._PZf1x._PZf1x[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._PZf1x._PZf1x[aria-disabled=true]>svg{fill:#515559;opacity:.4}._PZf1x._PZf1x[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._PZf1x._PZf1x._--4FG{padding-left:0}._PZf1x._PZf1x._IGshM{margin-top:4px}._PZf1x._PZf1x ._y2jWE{fill:#515559}._PZf1x._PZf1x ._y2jWE._hCbep{top:0}._PZf1x._PZf1x ._y2jWE._Qm5Ia{transform:rotate(-180deg)}._-usD-{margin: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-x:hidden;overflow-y:auto;overflow:hidden auto}._-usD-::-webkit-scrollbar,._-usD-::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._-usD-::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._-usD-::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._-usD-:hover::-webkit-scrollbar,._-usD-:hover::-webkit-scrollbar-thumb,._-usD-[focus-within]::-webkit-scrollbar,._-usD-[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._-usD-:focus-within::-webkit-scrollbar,._-usD-:focus-within::-webkit-scrollbar-thumb,._-usD-:hover::-webkit-scrollbar,._-usD-:hover::-webkit-scrollbar-thumb{visibility:visible}._lIZ2j{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._lIZ2j[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._lIZ2j._eO5Ic{background-color:#efefef}._lIZ2j._kbVjR{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._lIZ2j._lfOMI{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._lIZ2j._lfOMI._eO5Ic{background-color:#e4effa}._lIZ2j._--oTI{cursor:default}._lIZ2j:active:not(._NuQ5d):not(._lfOMI):not([aria-disabled=true]):not(._--oTI){background-color:#e8e9e9}._NuQ5d{padding-right:32px}._NuQ5d ._y2jWE{position:absolute;top:8px;right:3px;fill:#515559}._Y4bTu{padding:8px;border-bottom:1px solid #e8e8e8;border-radius:4px 4px 0 0;position:-webkit-sticky;position:sticky;top:0;z-index:20;background-color:#fff}._PDE29{position:absolute;top:13px;left:13px}._IeByb._IeByb{padding-left:32px}._eAud-{margin:2px 12px 2px 0;flex-shrink:0}._eAud-._9mbUi>svg{border-color:#0b6ed0}._9hTZS{display:flex;justify-self:center;margin:8px}";
|
|
6896
7075
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$h);}
|
|
6897
7076
|
|
|
6898
7077
|
const MenuItem = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -7652,7 +7831,6 @@ const Controls = function Controls(_ref) {
|
|
|
7652
7831
|
itemIndex,
|
|
7653
7832
|
itemLevel,
|
|
7654
7833
|
itemId,
|
|
7655
|
-
numberOfSetItems,
|
|
7656
7834
|
'data-testid': dataTestId
|
|
7657
7835
|
} = _ref;
|
|
7658
7836
|
const {
|
|
@@ -7662,63 +7840,82 @@ const Controls = function Controls(_ref) {
|
|
|
7662
7840
|
defaultSetValue,
|
|
7663
7841
|
maxNestedSets,
|
|
7664
7842
|
maxConditions,
|
|
7665
|
-
controlsRef
|
|
7843
|
+
controlsRef,
|
|
7844
|
+
numberOfItems,
|
|
7845
|
+
setNumberOfItems
|
|
7666
7846
|
} = useLogicEditorContext();
|
|
7847
|
+
const canAddNewCondition = React.useMemo(() => !maxConditions || numberOfItems < maxConditions, [maxConditions, numberOfItems]);
|
|
7667
7848
|
const canAddNewSet = React.useMemo(() => {
|
|
7849
|
+
// Need to have space for two conditions to add a new set, since
|
|
7850
|
+
// adding a set automatically adds a condition below.
|
|
7851
|
+
if (maxConditions && numberOfItems >= maxConditions - 1) {
|
|
7852
|
+
return false;
|
|
7853
|
+
}
|
|
7668
7854
|
// If "insert condition set below" is clicked on a logic item's control, it's added at the same level.
|
|
7669
7855
|
// If "insert condition set below" is clicked on a logic set's control, it's added a level deeper.
|
|
7670
7856
|
const levelOfNewSet = itemType === LOGIC_TYPE_CONDITION ? itemLevel : itemLevel + 1;
|
|
7671
7857
|
return !fixedSet && levelOfNewSet <= maxNestedSets;
|
|
7672
|
-
}, [fixedSet, itemLevel, maxNestedSets, itemType]);
|
|
7858
|
+
}, [fixedSet, itemLevel, maxNestedSets, itemType, maxConditions, numberOfItems]);
|
|
7673
7859
|
const indexOfNewItem = React.useMemo(() => itemType === LOGIC_TYPE_SET ? 0 : itemIndex + 1, [itemType, itemIndex]);
|
|
7674
|
-
const menu = React.useMemo(() =>
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
"
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7860
|
+
const menu = React.useMemo(() => {
|
|
7861
|
+
const isRootMenu = itemLevel === 0 && !fixedSet;
|
|
7862
|
+
const menuHasNoOptions = isRootMenu && !canAddNewCondition;
|
|
7863
|
+
return /*#__PURE__*/React__default["default"].createElement(Menu, {
|
|
7864
|
+
anchor: /*#__PURE__*/React__default["default"].createElement(IconButton$1, {
|
|
7865
|
+
"aria-label": translations.conditionActions,
|
|
7866
|
+
className: styles$i.controls,
|
|
7867
|
+
"data-testid": dataTestId,
|
|
7868
|
+
style: {
|
|
7869
|
+
visibility: menuHasNoOptions ? 'hidden' : undefined
|
|
7870
|
+
}
|
|
7871
|
+
}, /*#__PURE__*/React__default["default"].createElement(icons_index.EllipsisHorizontalIcon, null)),
|
|
7872
|
+
ref: node => {
|
|
7873
|
+
if (node) {
|
|
7874
|
+
controlsRef.current.set(itemId, node);
|
|
7875
|
+
setNumberOfItems(controlsRef.current.size);
|
|
7876
|
+
} else {
|
|
7877
|
+
controlsRef.current.delete(itemId);
|
|
7878
|
+
setNumberOfItems(controlsRef.current.size);
|
|
7879
|
+
}
|
|
7685
7880
|
}
|
|
7686
|
-
}
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
"
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
"
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
}
|
|
7713
|
-
|
|
7714
|
-
"
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
},
|
|
7881
|
+
}, canAddNewCondition && /*#__PURE__*/React__default["default"].createElement(MenuItem, {
|
|
7882
|
+
value: "add-condition",
|
|
7883
|
+
onSelect: () => handleNewLogicItem(newCondition(), indexOfNewItem)
|
|
7884
|
+
}, /*#__PURE__*/React__default["default"].createElement(icons_index.AddItemIcon, {
|
|
7885
|
+
"aria-hidden": "true"
|
|
7886
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7887
|
+
className: styles$i.controlMenuItem
|
|
7888
|
+
}, translations.insertConditionBelow)), canAddNewSet && /*#__PURE__*/React__default["default"].createElement(MenuItem, {
|
|
7889
|
+
value: "add-set",
|
|
7890
|
+
onSelect: () => handleNewLogicItem(newConditionSet(defaultSetValue), indexOfNewItem)
|
|
7891
|
+
}, /*#__PURE__*/React__default["default"].createElement(icons_index.FilterIcon, {
|
|
7892
|
+
"aria-hidden": "true"
|
|
7893
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7894
|
+
className: styles$i.controlMenuItem
|
|
7895
|
+
}, translations.insertSetBelow)), (fixedSet && numberOfItems > 1 || !fixedSet && itemLevel > 0) && /*#__PURE__*/React__default["default"].createElement(MenuItem, {
|
|
7896
|
+
value: "delete",
|
|
7897
|
+
onSelect: e => {
|
|
7898
|
+
onDelete({
|
|
7899
|
+
parent,
|
|
7900
|
+
index: itemIndex
|
|
7901
|
+
});
|
|
7902
|
+
// We want to move focus to the previous control
|
|
7903
|
+
// item when this one is deleted, so we need to
|
|
7904
|
+
// prevent Menu's default focus behavior
|
|
7905
|
+
e.preventDefault();
|
|
7906
|
+
}
|
|
7907
|
+
}, /*#__PURE__*/React__default["default"].createElement(icons_index.RemoveItemIcon, {
|
|
7908
|
+
"aria-hidden": "true"
|
|
7909
|
+
}), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
7910
|
+
className: styles$i.controlMenuItem
|
|
7911
|
+
}, translations.delete)));
|
|
7912
|
+
}, [
|
|
7718
7913
|
// context
|
|
7719
|
-
translations, fixedSet, onDelete, defaultSetValue,
|
|
7914
|
+
translations, fixedSet, onDelete, defaultSetValue, controlsRef, numberOfItems, setNumberOfItems,
|
|
7720
7915
|
// props
|
|
7721
|
-
handleNewLogicItem, parent, itemIndex, itemLevel, itemId,
|
|
7916
|
+
handleNewLogicItem, parent, itemIndex, itemLevel, itemId, dataTestId,
|
|
7917
|
+
// variables in scope
|
|
7918
|
+
canAddNewSet, canAddNewCondition, indexOfNewItem]);
|
|
7722
7919
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7723
7920
|
className: classNames__default["default"]({
|
|
7724
7921
|
[styles$i.conditionControlsContainer]: itemType === LOGIC_TYPE_CONDITION
|
|
@@ -7800,14 +7997,13 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
7800
7997
|
}
|
|
7801
7998
|
return getSubDataTestId(rootDataTestId, "".concat(prefix, "-").concat(indices.join('-')));
|
|
7802
7999
|
}, [fixedSet, rootDataTestId]);
|
|
7803
|
-
function renderControls(itemType, itemPosition, itemLevel,
|
|
8000
|
+
function renderControls(itemType, itemPosition, itemLevel, itemId) {
|
|
7804
8001
|
return /*#__PURE__*/React__default["default"].createElement(Controls, {
|
|
7805
8002
|
handleNewLogicItem: handleNewLogicItem,
|
|
7806
8003
|
itemType: itemType,
|
|
7807
8004
|
parent: itemPosition.parent,
|
|
7808
8005
|
itemIndex: itemPosition.index,
|
|
7809
8006
|
itemLevel: itemLevel,
|
|
7810
|
-
numberOfSetItems: numberOfSetItems,
|
|
7811
8007
|
itemId: itemId,
|
|
7812
8008
|
"data-testid": getDataTestId('condition-actions', itemPosition)
|
|
7813
8009
|
});
|
|
@@ -7841,7 +8037,7 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
7841
8037
|
position: conditionPosition,
|
|
7842
8038
|
condition: item,
|
|
7843
8039
|
firstFocusableElementRef: fixedSet && firstFocusableElementRef && i === 0 ? firstFocusableElementRef : undefined,
|
|
7844
|
-
conditionControls: !readOnly ? renderControls(LOGIC_TYPE_CONDITION, conditionPosition, level + 1,
|
|
8040
|
+
conditionControls: !readOnly ? renderControls(LOGIC_TYPE_CONDITION, conditionPosition, level + 1, item.id) : undefined
|
|
7845
8041
|
}));
|
|
7846
8042
|
}
|
|
7847
8043
|
if (item.logicType === LOGIC_TYPE_SET) {
|
|
@@ -7883,7 +8079,7 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
7883
8079
|
}), /*#__PURE__*/React__default["default"].createElement(DropdownOption, {
|
|
7884
8080
|
value: SET_VALUE_ALL,
|
|
7885
8081
|
label: String(translations.all)
|
|
7886
|
-
}))), !readOnly && renderControls(LOGIC_TYPE_SET, position, level, value.
|
|
8082
|
+
}))), !readOnly && renderControls(LOGIC_TYPE_SET, position, level, value.id)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
7887
8083
|
role: "group",
|
|
7888
8084
|
ref: conditionRef
|
|
7889
8085
|
}, renderSetChildren()));
|
|
@@ -7929,14 +8125,33 @@ const LogicEditor = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
7929
8125
|
return newState;
|
|
7930
8126
|
});
|
|
7931
8127
|
}, [onChange]);
|
|
8128
|
+
const controlsRef = React.useRef(new Map());
|
|
8129
|
+
const [numberOfItems, setNumberOfItems] = React.useState(controlsRef.current.size);
|
|
8130
|
+
const itemToFocusId = React.useRef(null);
|
|
8131
|
+
React.useEffect(() => {
|
|
8132
|
+
// Must be in a useEffect instead of event handlers to ensure `focus` is called
|
|
8133
|
+
// _after_ the root condition control menu is possibly added back into view
|
|
8134
|
+
if (itemToFocusId.current !== null) {
|
|
8135
|
+
var _controlsRef$current$;
|
|
8136
|
+
(_controlsRef$current$ = controlsRef.current.get(itemToFocusId.current)) === null || _controlsRef$current$ === void 0 || _controlsRef$current$.focus();
|
|
8137
|
+
itemToFocusId.current = null;
|
|
8138
|
+
}
|
|
8139
|
+
}, [numberOfItems]);
|
|
7932
8140
|
const handleNewLogicItem = React.useCallback((item, position) => {
|
|
8141
|
+
var _position$parent;
|
|
8142
|
+
const numberOfItemsBeingAdded = item.logicType === 'set' ? 2 : 1;
|
|
8143
|
+
const willReachMaxCondiitons = numberOfItems + numberOfItemsBeingAdded === maxConditions;
|
|
8144
|
+
const focusIsOnRootNode = position.index === 0 && ((_position$parent = position.parent) === null || _position$parent === void 0 ? void 0 : _position$parent.parent) === undefined;
|
|
8145
|
+
if (focusIsOnRootNode && willReachMaxCondiitons) {
|
|
8146
|
+
itemToFocusId.current = item.id;
|
|
8147
|
+
}
|
|
7933
8148
|
update(prevState => {
|
|
7934
8149
|
const newState = shallowCopy(prevState);
|
|
7935
8150
|
const parent = getParentSet(newState, position);
|
|
7936
8151
|
parent.conditions.splice(position.index, 0, item);
|
|
7937
8152
|
return newState;
|
|
7938
8153
|
});
|
|
7939
|
-
}, [update]);
|
|
8154
|
+
}, [update, numberOfItems, maxConditions]);
|
|
7940
8155
|
const handleSetChange = (newSetValue, position) => {
|
|
7941
8156
|
update(prevState => {
|
|
7942
8157
|
const rootState = shallowCopy(prevState);
|
|
@@ -7958,23 +8173,28 @@ const LogicEditor = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
7958
8173
|
return newState;
|
|
7959
8174
|
});
|
|
7960
8175
|
};
|
|
7961
|
-
const controlsRef = React.useRef({});
|
|
7962
8176
|
const handleDelete = React.useCallback(position => {
|
|
8177
|
+
let previousItemId;
|
|
7963
8178
|
update(prevState => {
|
|
7964
|
-
|
|
8179
|
+
previousItemId = getPreviousItemId(prevState, position, fixedSet);
|
|
7965
8180
|
const newState = shallowCopy(prevState);
|
|
7966
8181
|
const parent = getParentSet(newState, position);
|
|
7967
8182
|
parent.conditions.splice(position.index, 1);
|
|
7968
8183
|
|
|
7969
8184
|
// If the last condition in a set was deleted, also delete the set.
|
|
7970
8185
|
if (parent.conditions.length === 0) {
|
|
7971
|
-
previousItemId = getPreviousItemId(newState, position.parent);
|
|
8186
|
+
previousItemId = getPreviousItemId(newState, position.parent, fixedSet);
|
|
7972
8187
|
getParentSet(newState, position.parent).conditions.splice(position.parent.index, 1);
|
|
7973
8188
|
}
|
|
7974
|
-
|
|
8189
|
+
if (previousItemId === null) {
|
|
8190
|
+
// May be null if first item in fixedSet editor is deleted.
|
|
8191
|
+
// In this case focus the new first item in the editor.
|
|
8192
|
+
previousItemId = newState.conditions[0].id;
|
|
8193
|
+
}
|
|
7975
8194
|
return newState;
|
|
7976
8195
|
});
|
|
7977
|
-
|
|
8196
|
+
itemToFocusId.current = previousItemId;
|
|
8197
|
+
}, [update, fixedSet]);
|
|
7978
8198
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends__default["default"]({}, rest, {
|
|
7979
8199
|
role: "group",
|
|
7980
8200
|
className: classes,
|
|
@@ -7994,7 +8214,9 @@ const LogicEditor = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
7994
8214
|
maxConditions,
|
|
7995
8215
|
readOnly,
|
|
7996
8216
|
rootDataTestId: dataTestId,
|
|
7997
|
-
controlsRef
|
|
8217
|
+
controlsRef,
|
|
8218
|
+
numberOfItems,
|
|
8219
|
+
setNumberOfItems
|
|
7998
8220
|
}
|
|
7999
8221
|
}, /*#__PURE__*/React__default["default"].createElement(ConditionSet, {
|
|
8000
8222
|
value: state,
|
|
@@ -8004,9 +8226,9 @@ const LogicEditor = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
8004
8226
|
})));
|
|
8005
8227
|
});
|
|
8006
8228
|
|
|
8007
|
-
var css_248z$g = ".
|
|
8008
|
-
var styles$g = {"backdrop":"
|
|
8009
|
-
var stylesheet$g=".
|
|
8229
|
+
var css_248z$g = "._V3qPb{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._5GODT,._V3qPb{display:flex;overflow:auto}._5GODT{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._rKp0X)._gQQPX{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._rKp0X)._gQQPX{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._rKp0X)._0Gh8N{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._rKp0X)._0Gh8N{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._rKp0X)._0Gh8N{max-width:700px}}:not(._rKp0X)._Smjij{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._rKp0X)._Smjij{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._rKp0X)._Smjij{max-width:700px}}@media screen and (min-width:1024px){:not(._rKp0X)._Smjij{max-width:1000px}}:not(._rKp0X)._OKXB6{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._rKp0X)._OKXB6{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._rKp0X)._OKXB6{max-width:700px}}@media screen and (min-width:1024px){:not(._rKp0X)._OKXB6{max-width:1000px}}@media screen and (min-width:1632px){:not(._rKp0X)._OKXB6{max-width:1600px;max-height:calc(100vh - 32px)}}._rKp0X{min-width:200px;width:calc(100% - 48px)}._rKp0X,._rKp0X._gQQPX{max-height:calc(100vh - 80px)}._rKp0X._gQQPX{max-width:480px;border-radius:8px}._rKp0X._0Gh8N{max-width:700px}._rKp0X._Smjij{max-width:1000px}._rKp0X._OKXB6{max-width:1600px;max-height:calc(100vh - 32px)}._SuS5-{height:calc(100vh - 80px)}@media screen and (max-width:479px){._SuS5-{height:100vh}}@media screen and (min-width:1632px){._SuS5-{height:calc(100vh - 32px)}}._7ctTe{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._FU7uc{padding-right:64px}._iAH8y{position:absolute;top:14px;right:14px}._06HeD{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._06HeD,._7pkWS{padding:20px 24px}._7pkWS{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._7pkWS>*{margin:0 4px}._7pkWS>:first-child{margin-left:0}._7pkWS>:last-child{margin-right:0}@keyframes _aC9dQ{0%{opacity:0}}._aC9dQ{animation:_aC9dQ ease-in both;animation-duration:.2s}@keyframes _KZOAf{to{opacity:0}}._KZOAf{animation:_KZOAf ease-out both;animation-duration:.2s}@keyframes _5q2aR{0%{transform:scale3d(.7,.7,.7);opacity:0}}._5q2aR{animation:_5q2aR both;animation-duration:.2s}@keyframes _2Yn3T{to{transform:scale3d(.7,.7,.7);opacity:0}}._2Yn3T{animation:_2Yn3T both;animation-duration:.2s}";
|
|
8230
|
+
var styles$g = {"backdrop":"_V3qPb","modal":"_5GODT","responsive":"_rKp0X","dialogSmall":"_gQQPX","dialogMedium":"_0Gh8N","dialogLarge":"_Smjij","dialogExtraLarge":"_OKXB6","growToMaxHeight":"_SuS5-","modalHeader":"_7ctTe","modalHeaderWithCloseButton":"_FU7uc","modalHeaderCloseButton":"_iAH8y","modalBody":"_06HeD","modalFooter":"_7pkWS","fadeEnter":"_aC9dQ","fadeLeave":"_KZOAf","zoomEnter":"_5q2aR","zoomLeave":"_2Yn3T"};
|
|
8231
|
+
var stylesheet$g="._V3qPb{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._5GODT,._V3qPb{display:flex;overflow:auto}._5GODT{flex-direction:column;box-shadow:0 12px 35px -8px rgba(0,0,0,.12);border-radius:8px;background-color:#fff;min-width:450px;min-height:198px;max-width:85%;max-height:85%;margin:auto;outline:none}:not(._rKp0X)._gQQPX{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._rKp0X)._gQQPX{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._rKp0X)._0Gh8N{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._rKp0X)._0Gh8N{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._rKp0X)._0Gh8N{max-width:700px}}:not(._rKp0X)._Smjij{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._rKp0X)._Smjij{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._rKp0X)._Smjij{max-width:700px}}@media screen and (min-width:1024px){:not(._rKp0X)._Smjij{max-width:1000px}}:not(._rKp0X)._OKXB6{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._rKp0X)._OKXB6{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._rKp0X)._OKXB6{max-width:700px}}@media screen and (min-width:1024px){:not(._rKp0X)._OKXB6{max-width:1000px}}@media screen and (min-width:1632px){:not(._rKp0X)._OKXB6{max-width:1600px;max-height:calc(100vh - 32px)}}._rKp0X{min-width:200px;width:calc(100% - 48px)}._rKp0X,._rKp0X._gQQPX{max-height:calc(100vh - 80px)}._rKp0X._gQQPX{max-width:480px;border-radius:8px}._rKp0X._0Gh8N{max-width:700px}._rKp0X._Smjij{max-width:1000px}._rKp0X._OKXB6{max-width:1600px;max-height:calc(100vh - 32px)}._SuS5-{height:calc(100vh - 80px)}@media screen and (max-width:479px){._SuS5-{height:100vh}}@media screen and (min-width:1632px){._SuS5-{height:calc(100vh - 32px)}}._7ctTe{position:relative;display:flex;flex-direction:row;flex-shrink:0;min-height:65px;padding:20px 24px;align-items:center;font-size:18px;font-weight:400;line-height:24px;color:#32363a;border-bottom:1px solid #eee}._FU7uc{padding-right:64px}._iAH8y{position:absolute;top:14px;right:14px}._06HeD{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._06HeD,._7pkWS{padding:20px 24px}._7pkWS{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._7pkWS>*{margin:0 4px}._7pkWS>:first-child{margin-left:0}._7pkWS>:last-child{margin-right:0}@keyframes _aC9dQ{0%{opacity:0}}._aC9dQ{animation:_aC9dQ ease-in both;animation-duration:.2s}@keyframes _KZOAf{to{opacity:0}}._KZOAf{animation:_KZOAf ease-out both;animation-duration:.2s}@keyframes _5q2aR{0%{transform:scale3d(.7,.7,.7);opacity:0}}._5q2aR{animation:_5q2aR both;animation-duration:.2s}@keyframes _2Yn3T{to{transform:scale3d(.7,.7,.7);opacity:0}}._2Yn3T{animation:_2Yn3T both;animation-duration:.2s}";
|
|
8010
8232
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$g);}
|
|
8011
8233
|
|
|
8012
8234
|
const {
|
|
@@ -8266,9 +8488,9 @@ const ModalFooter = /*#__PURE__*/React__default["default"].forwardRef((_ref7, re
|
|
|
8266
8488
|
}), children);
|
|
8267
8489
|
});
|
|
8268
8490
|
|
|
8269
|
-
var css_248z$f = ".
|
|
8270
|
-
var styles$f = {"numberStepperContainer":"
|
|
8271
|
-
var stylesheet$f=".
|
|
8491
|
+
var css_248z$f = "._hAFPd{display:inline-flex;width:127px}._k2mDd{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._k2mDd:hover:not(._yhkBu){cursor:pointer;background:#f5f5f5}._k2mDd._L1sp4{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._k2mDd._yhkBu{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._k2mDd._yhkBu>svg{opacity:.4}._k2mDd::-webkit-inner-spin-button,._k2mDd::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._k2mDd:focus{z-index:0;border:none;border-radius:4px}._k2mDd:focus:not(._L1sp4){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._9pJQi,._k2mDd:focus:not(._yhkBu){background:#fafafa}._9pJQi{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._9pJQi:hover:not(._yhkBu){cursor:pointer;background:#f5f5f5}._9pJQi:active:not(._yhkBu){background:#e5e5e5}._9pJQi._yhkBu{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._9pJQi._yhkBu>svg{opacity:.4}._w2Bvy{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._w2Bvy:hover:not(._yhkBu){cursor:pointer;background:#f5f5f5}._w2Bvy:active:not(._yhkBu){background:#e5e5e5}._w2Bvy._yhkBu{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._w2Bvy._yhkBu>svg{opacity:.4}";
|
|
8492
|
+
var styles$f = {"numberStepperContainer":"_hAFPd","numberStepperInput":"_k2mDd","disabled":"_yhkBu","invalid":"_L1sp4","decrementBtn":"_9pJQi","incrementBtn":"_w2Bvy"};
|
|
8493
|
+
var stylesheet$f="._hAFPd{display:inline-flex;width:127px}._k2mDd{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._k2mDd:hover:not(._yhkBu){cursor:pointer;background:#f5f5f5}._k2mDd._L1sp4{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._k2mDd._yhkBu{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._k2mDd._yhkBu>svg{opacity:.4}._k2mDd::-webkit-inner-spin-button,._k2mDd::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._k2mDd:focus{z-index:0;border:none;border-radius:4px}._k2mDd:focus:not(._L1sp4){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._9pJQi,._k2mDd:focus:not(._yhkBu){background:#fafafa}._9pJQi{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._9pJQi:hover:not(._yhkBu){cursor:pointer;background:#f5f5f5}._9pJQi:active:not(._yhkBu){background:#e5e5e5}._9pJQi._yhkBu{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._9pJQi._yhkBu>svg{opacity:.4}._w2Bvy{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._w2Bvy:hover:not(._yhkBu){cursor:pointer;background:#f5f5f5}._w2Bvy:active:not(._yhkBu){background:#e5e5e5}._w2Bvy._yhkBu{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._w2Bvy._yhkBu>svg{opacity:.4}";
|
|
8272
8494
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$f);}
|
|
8273
8495
|
|
|
8274
8496
|
const {
|
|
@@ -8779,9 +9001,9 @@ function clampMinMax$1(value, _ref2) {
|
|
|
8779
9001
|
return value;
|
|
8780
9002
|
}
|
|
8781
9003
|
|
|
8782
|
-
var css_248z$e = ".
|
|
8783
|
-
var styles$e = {"pageContainer":"
|
|
8784
|
-
var stylesheet$e=".
|
|
9004
|
+
var css_248z$e = "._hvSNQ{height:100vh;width:100vw;display:grid;grid-template-rows:auto 1fr;grid-template-columns:auto auto 1fr;grid-template-areas:\"pageHeader pageHeader pageHeader\" \"sidebarNav configPane mainContent\"}._06XcI{grid-area:pageHeader}._gk-lg{grid-area:mainContent;height:100%;overflow:auto}";
|
|
9005
|
+
var styles$e = {"pageContainer":"_hvSNQ","pageHeader":"_06XcI","mainContent":"_gk-lg"};
|
|
9006
|
+
var stylesheet$e="._hvSNQ{height:100vh;width:100vw;display:grid;grid-template-rows:auto 1fr;grid-template-columns:auto auto 1fr;grid-template-areas:\"pageHeader pageHeader pageHeader\" \"sidebarNav configPane mainContent\"}._06XcI{grid-area:pageHeader}._gk-lg{grid-area:mainContent;height:100%;overflow:auto}";
|
|
8785
9007
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$e);}
|
|
8786
9008
|
|
|
8787
9009
|
const PageContainer = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -8817,9 +9039,9 @@ const MainContent = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
8817
9039
|
}));
|
|
8818
9040
|
});
|
|
8819
9041
|
|
|
8820
|
-
var css_248z$d = ".
|
|
8821
|
-
var styles$d = {"pagination":"
|
|
8822
|
-
var stylesheet$d=".
|
|
9042
|
+
var css_248z$d = "._SbiWt{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._A1Kb-{margin-right:8px}._CvqC6{margin-left:8px}._-4aPH{margin:-10px -15px}._oMr81{width:100%;text-align:center}";
|
|
9043
|
+
var styles$d = {"pagination":"_SbiWt","previousButton":"_A1Kb-","nextButton":"_CvqC6","btnIcon":"_-4aPH","input":"_oMr81"};
|
|
9044
|
+
var stylesheet$d="._SbiWt{display:flex;align-items:center;justify-content:center;font-size:14px;white-space:pre}._A1Kb-{margin-right:8px}._CvqC6{margin-left:8px}._-4aPH{margin:-10px -15px}._oMr81{width:100%;text-align:center}";
|
|
8823
9045
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$d);}
|
|
8824
9046
|
|
|
8825
9047
|
const {
|
|
@@ -9115,9 +9337,9 @@ const Pagination = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
9115
9337
|
}, 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))));
|
|
9116
9338
|
});
|
|
9117
9339
|
|
|
9118
|
-
var css_248z$c = ".
|
|
9119
|
-
var styles$c = {"popover":"
|
|
9120
|
-
var stylesheet$c=".
|
|
9340
|
+
var css_248z$c = "._jzx8E{position:absolute;z-index:1000;background-color:#fff;border-radius:4px;display:inline-block;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);border:1px solid #898989}._jzx8E:focus{outline:none}._zcjGa,._zcjGa>div{position:absolute;width:8px;height:8px;background:inherit}._zcjGa{visibility:hidden;z-index:1000}._zcjGa>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._zcjGa{bottom:-4px}[data-popper-placement^=top]>._zcjGa>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._zcjGa{left:-5px}[data-popper-placement^=right]>._zcjGa>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._zcjGa{top:-5px}[data-popper-placement^=bottom]>._zcjGa>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._zcjGa{right:-4px}[data-popper-placement^=left]>._zcjGa>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
9341
|
+
var styles$c = {"popover":"_jzx8E","arrow":"_zcjGa"};
|
|
9342
|
+
var stylesheet$c="._jzx8E{position:absolute;z-index:1000;background-color:#fff;border-radius:4px;display:inline-block;box-shadow:0 3px 4px 0 rgba(0,0,0,.05),0 6px 10px 0 rgba(0,0,0,.05);border:1px solid #898989}._jzx8E:focus{outline:none}._zcjGa,._zcjGa>div{position:absolute;width:8px;height:8px;background:inherit}._zcjGa{visibility:hidden;z-index:1000}._zcjGa>div{visibility:visible;border:1px solid #898989;transform:rotate(45deg)}[data-popper-placement^=top]>._zcjGa{bottom:-4px}[data-popper-placement^=top]>._zcjGa>div{border-top-color:transparent;border-left-color:transparent}[data-popper-placement^=right]>._zcjGa{left:-5px}[data-popper-placement^=right]>._zcjGa>div{border-top-color:transparent;border-right-color:transparent}[data-popper-placement^=bottom]>._zcjGa{top:-5px}[data-popper-placement^=bottom]>._zcjGa>div{border-bottom-color:transparent;border-right-color:transparent}[data-popper-placement^=left]>._zcjGa{right:-4px}[data-popper-placement^=left]>._zcjGa>div{border-bottom-color:transparent;border-left-color:transparent}";
|
|
9121
9343
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$c);}
|
|
9122
9344
|
|
|
9123
9345
|
const Popover = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -9234,9 +9456,9 @@ const Popover = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
9234
9456
|
});
|
|
9235
9457
|
});
|
|
9236
9458
|
|
|
9237
|
-
var css_248z$b = ".
|
|
9238
|
-
var styles$b = {"loadingSpinner":"
|
|
9239
|
-
var stylesheet$b=".
|
|
9459
|
+
var css_248z$b = "._Tgrh-{display:flex;height:32px}";
|
|
9460
|
+
var styles$b = {"loadingSpinner":"_Tgrh-"};
|
|
9461
|
+
var stylesheet$b="._Tgrh-{display:flex;height:32px}";
|
|
9240
9462
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$b);}
|
|
9241
9463
|
|
|
9242
9464
|
const QuickSearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -9412,9 +9634,9 @@ const QuickSearch = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
9412
9634
|
}));
|
|
9413
9635
|
});
|
|
9414
9636
|
|
|
9415
|
-
var css_248z$a = ".
|
|
9416
|
-
var styles$a = {"radio":"
|
|
9417
|
-
var stylesheet$a=".
|
|
9637
|
+
var css_248z$a = "._LJSE-{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._-peew,._LJSE-{cursor:pointer;height:16px;width:16px}._-peew{position:absolute;opacity:0;z-index:10}._-peew:checked~._4ea5A>._fePoV{fill-opacity:1}._-peew:checked:enabled~._4ea5A{border-color:transparent;background-color:#0b6ed0}._-peew:checked:enabled~._4ea5A>._fePoV{fill:#fff}._-peew:checked:enabled:hover~._4ea5A{background-color:#085caf}._-peew:not(:checked):enabled:hover~._4ea5A{border-color:#0b6ed0}._-peew:disabled{cursor:not-allowed}._-peew:disabled~._4ea5A{opacity:.4}._-peew:checked~._4ea5A:after{content:\"\"}._s3jc-{color:#32363a;display:flex;align-items:center;cursor:pointer}._s3jc-:has(input:disabled){color:rgba(50,54,58,.4)}._0LUab{margin-right:12px;flex-shrink:0}._4ea5A{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;border-radius:50%;background-color:transparent!important;border-color:#898989!important}._fePoV{fill:#0b6ed0;fill-opacity:0}._4ea5A:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._vVxov{border:none;padding:0;margin:0}._MRwa1{padding:0;margin:0 0 14px;color:#01213f}._-peew.focus-visible~._4ea5A,._-peew:focus-visible~._4ea5A{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
9638
|
+
var styles$a = {"radio":"_LJSE-","input":"_-peew","check":"_4ea5A","checkIcon":"_fePoV","label":"_s3jc-","wrappedInput":"_0LUab","radioGroup":"_vVxov","legend":"_MRwa1"};
|
|
9639
|
+
var stylesheet$a="._LJSE-{display:inline-flex;position:relative;margin-top:6px;margin-bottom:6px}._-peew,._LJSE-{cursor:pointer;height:16px;width:16px}._-peew{position:absolute;opacity:0;z-index:10}._-peew:checked~._4ea5A>._fePoV{fill-opacity:1}._-peew:checked:enabled~._4ea5A{border-color:transparent;background-color:#0b6ed0}._-peew:checked:enabled~._4ea5A>._fePoV{fill:#fff}._-peew:checked:enabled:hover~._4ea5A{background-color:#085caf}._-peew:not(:checked):enabled:hover~._4ea5A{border-color:#0b6ed0}._-peew:disabled{cursor:not-allowed}._-peew:disabled~._4ea5A{opacity:.4}._-peew:checked~._4ea5A:after{content:\"\"}._s3jc-{color:#32363a;display:flex;align-items:center;cursor:pointer}._s3jc-:has(input:disabled){color:rgba(50,54,58,.4)}._0LUab{margin-right:12px;flex-shrink:0}._4ea5A{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;border-radius:50%;background-color:transparent!important;border-color:#898989!important}._fePoV{fill:#0b6ed0;fill-opacity:0}._4ea5A:after{position:absolute;z-index:0;background-color:#0b6ed0;border-radius:50%;height:10px;width:10px;top:2px;left:2px}._vVxov{border:none;padding:0;margin:0}._MRwa1{padding:0;margin:0 0 14px;color:#01213f}._-peew.focus-visible~._4ea5A,._-peew:focus-visible~._4ea5A{border-color:#0b6ed0;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
9418
9640
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$a);}
|
|
9419
9641
|
|
|
9420
9642
|
const {
|
|
@@ -9423,7 +9645,7 @@ const {
|
|
|
9423
9645
|
} = createContextUtilities({});
|
|
9424
9646
|
|
|
9425
9647
|
const Radio = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
9426
|
-
var _ref2;
|
|
9648
|
+
var _ref2, _ref3, _ref5;
|
|
9427
9649
|
let {
|
|
9428
9650
|
id,
|
|
9429
9651
|
className,
|
|
@@ -9433,6 +9655,7 @@ const Radio = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
|
9433
9655
|
'aria-labelledby': ariaLabelledBy,
|
|
9434
9656
|
'aria-describedby': externalAriaDescribedBy,
|
|
9435
9657
|
onChange: radioOnChange,
|
|
9658
|
+
onBlur: externalOnBlur,
|
|
9436
9659
|
checked: radioChecked,
|
|
9437
9660
|
defaultChecked: radioDefaultChecked,
|
|
9438
9661
|
inputProps,
|
|
@@ -9444,14 +9667,30 @@ const Radio = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
|
9444
9667
|
groupDefaultValue,
|
|
9445
9668
|
groupValue
|
|
9446
9669
|
} = useRadioGroupContext();
|
|
9670
|
+
const {
|
|
9671
|
+
register
|
|
9672
|
+
} = useFormField();
|
|
9673
|
+
const registerProps = name && register ? register === null || register === void 0 ? void 0 : register(name, {
|
|
9674
|
+
type: 'radio',
|
|
9675
|
+
radioValue: value
|
|
9676
|
+
}) : undefined;
|
|
9447
9677
|
const {
|
|
9448
9678
|
helperTextId: formFieldHelperTextId,
|
|
9449
9679
|
errorTextId: formFieldErrorTextId
|
|
9450
9680
|
} = useFormFieldContext();
|
|
9451
9681
|
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId, inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-describedby']);
|
|
9452
|
-
const checked = groupValue !== undefined ? value === groupValue : radioChecked !== null &&
|
|
9682
|
+
const checked = (_ref2 = (_ref3 = groupValue !== undefined ? value === groupValue : radioChecked) !== null && _ref3 !== void 0 ? _ref3 : inputProps === null || inputProps === void 0 ? void 0 : inputProps.checked) !== null && _ref2 !== void 0 ? _ref2 : registerProps === null || registerProps === void 0 ? void 0 : registerProps.checked;
|
|
9453
9683
|
const defaultChecked = groupDefaultValue !== undefined ? value === groupDefaultValue : radioDefaultChecked !== null && radioDefaultChecked !== void 0 ? radioDefaultChecked : inputProps === null || inputProps === void 0 ? void 0 : inputProps.defaultChecked;
|
|
9454
|
-
const onChange =
|
|
9684
|
+
const onChange = e => {
|
|
9685
|
+
var _ref4;
|
|
9686
|
+
const externalOnChange = (_ref4 = radioGroupOnChange !== null && radioGroupOnChange !== void 0 ? radioGroupOnChange : radioOnChange) !== null && _ref4 !== void 0 ? _ref4 : inputProps === null || inputProps === void 0 ? void 0 : inputProps.onChange;
|
|
9687
|
+
registerProps === null || registerProps === void 0 || registerProps.onChange(e);
|
|
9688
|
+
externalOnChange === null || externalOnChange === void 0 || externalOnChange(e);
|
|
9689
|
+
};
|
|
9690
|
+
const onBlur = e => {
|
|
9691
|
+
registerProps === null || registerProps === void 0 || registerProps.onBlur(e);
|
|
9692
|
+
externalOnBlur === null || externalOnBlur === void 0 || externalOnBlur(e);
|
|
9693
|
+
};
|
|
9455
9694
|
return /*#__PURE__*/React__default["default"].createElement("span", _extends__default["default"]({}, rest, {
|
|
9456
9695
|
ref: ref,
|
|
9457
9696
|
className: classNames__default["default"](className, styles$a.radio)
|
|
@@ -9463,11 +9702,13 @@ const Radio = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
|
9463
9702
|
defaultChecked: defaultChecked,
|
|
9464
9703
|
disabled: disabled !== null && disabled !== void 0 ? disabled : inputProps === null || inputProps === void 0 ? void 0 : inputProps.disabled,
|
|
9465
9704
|
name: name !== null && name !== void 0 ? name : inputProps === null || inputProps === void 0 ? void 0 : inputProps.name,
|
|
9466
|
-
value: value !== null && value !== void 0 ? value : inputProps === null || inputProps === void 0 ? void 0 : inputProps.value,
|
|
9705
|
+
value: (_ref5 = value !== null && value !== void 0 ? value : inputProps === null || inputProps === void 0 ? void 0 : inputProps.value) !== null && _ref5 !== void 0 ? _ref5 : registerProps === null || registerProps === void 0 ? void 0 : registerProps.value,
|
|
9467
9706
|
onChange: disabled ? undefined : onChange,
|
|
9707
|
+
onBlur: onBlur,
|
|
9468
9708
|
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-label'],
|
|
9469
9709
|
"aria-labelledby": ariaLabelledBy !== null && ariaLabelledBy !== void 0 ? ariaLabelledBy : inputProps === null || inputProps === void 0 ? void 0 : inputProps['aria-labelledby'],
|
|
9470
|
-
"aria-describedby": internalAriaDescribedby
|
|
9710
|
+
"aria-describedby": internalAriaDescribedby,
|
|
9711
|
+
ref: registerProps === null || registerProps === void 0 ? void 0 : registerProps.ref
|
|
9471
9712
|
})), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
9472
9713
|
className: styles$a.check
|
|
9473
9714
|
}));
|
|
@@ -9509,8 +9750,14 @@ const RadioGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
9509
9750
|
value,
|
|
9510
9751
|
onChange,
|
|
9511
9752
|
children,
|
|
9753
|
+
helperText,
|
|
9754
|
+
errorText,
|
|
9755
|
+
'data-testid': dataTestId,
|
|
9512
9756
|
...rest
|
|
9513
9757
|
} = _ref;
|
|
9758
|
+
const {
|
|
9759
|
+
fieldErrors
|
|
9760
|
+
} = useFormField();
|
|
9514
9761
|
const classes = classNames__default["default"](className, styles$a.radioGroup);
|
|
9515
9762
|
return /*#__PURE__*/React__default["default"].createElement(RadioGroupContextProvider, {
|
|
9516
9763
|
value: {
|
|
@@ -9521,15 +9768,20 @@ const RadioGroup = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref)
|
|
|
9521
9768
|
}
|
|
9522
9769
|
}, /*#__PURE__*/React__default["default"].createElement("fieldset", _extends__default["default"]({}, rest, {
|
|
9523
9770
|
ref: ref,
|
|
9524
|
-
className: classes
|
|
9525
|
-
|
|
9771
|
+
className: classes,
|
|
9772
|
+
"data-testid": dataTestId
|
|
9773
|
+
}), /*#__PURE__*/React__default["default"].createElement(FormFieldWrapper, {
|
|
9774
|
+
helperText: helperText,
|
|
9775
|
+
errorText: errorText !== null && errorText !== void 0 ? errorText : name && (fieldErrors === null || fieldErrors === void 0 ? void 0 : fieldErrors[name]),
|
|
9776
|
+
"data-testid": dataTestId
|
|
9777
|
+
}, /*#__PURE__*/React__default["default"].createElement("legend", {
|
|
9526
9778
|
className: styles$a.legend
|
|
9527
|
-
}, label), children));
|
|
9779
|
+
}, label), children)));
|
|
9528
9780
|
});
|
|
9529
9781
|
|
|
9530
|
-
var css_248z$9 = ".
|
|
9531
|
-
var styles$9 = {"searchInput":"
|
|
9532
|
-
var stylesheet$9=".
|
|
9782
|
+
var css_248z$9 = "._QXNGb{display:inline-block;position:relative}._MqcBu._MqcBu{padding-left:36px;padding-right:36px;width:100%}._MqcBu._MqcBu:disabled+._ii2pk{fill-opacity:.6}._ii2pk{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._ii2pk._D6C02{z-index:20}._QJycW{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._QJycW:hover{cursor:pointer}._QJycW:hover>._O5NKv{fill:#32363a}._QJycW:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._O5NKv{fill:#515559}";
|
|
9783
|
+
var styles$9 = {"searchInput":"_QXNGb","searchInputInput":"_MqcBu","searchInputSearchIcon":"_ii2pk","usedWithinInputGroup":"_D6C02","searchInputClearButton":"_QJycW","searchInputClearButtonIcon":"_O5NKv"};
|
|
9784
|
+
var stylesheet$9="._QXNGb{display:inline-block;position:relative}._MqcBu._MqcBu{padding-left:36px;padding-right:36px;width:100%}._MqcBu._MqcBu:disabled+._ii2pk{fill-opacity:.6}._ii2pk{position:absolute;top:50%;left:0;transform:translateY(-50%);margin-left:6px;fill:#515559;pointer-events:none}._ii2pk._D6C02{z-index:20}._QJycW{position:absolute;top:0;right:0;width:36px;height:100%;background-color:transparent;line-height:0;border:none;border-radius:4px}._QJycW:hover{cursor:pointer}._QJycW:hover>._O5NKv{fill:#32363a}._QJycW:focus{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._O5NKv{fill:#515559}";
|
|
9533
9785
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$9);}
|
|
9534
9786
|
|
|
9535
9787
|
const SearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
@@ -9631,9 +9883,9 @@ const SearchInput = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
9631
9883
|
|
|
9632
9884
|
/* eslint-disable import/prefer-default-export */
|
|
9633
9885
|
|
|
9634
|
-
var css_248z$8 = ".
|
|
9635
|
-
var styles$8 = {"sideBarNav":"
|
|
9636
|
-
var stylesheet$8=".
|
|
9886
|
+
var css_248z$8 = "._PaI0m{grid-area:sidebarNav;height:100%;display:flex;flex-direction:column;align-items:center;min-width:165px;max-width:240px;background-color:#fff;border-right:1px solid #eee;overflow:hidden}._PaI0m._h9mty{width:69px;min-width:auto;max-width:none}._Ony9o{margin:12px 0 28px;width:100%;overflow:auto;padding:4px 16px 0}._p7D4q{margin-bottom:12px;background-color:transparent!important}._p7D4q:hover{background-color:#efefef!important}._p7D4q:hover ._5gHxd{fill:#32363a}._p7D4q:hover ._uBJ0b{color:#32363a}._p7D4q:active{background-color:rgba(11,110,208,.12)!important}._p7D4q:active ._5gHxd{fill:#0854a1}._p7D4q:active ._uBJ0b{color:#0854a1}._p7D4q._XDOph{background-color:rgba(11,110,208,.08)!important}._p7D4q._XDOph ._5gHxd{fill:#0b6ed0}._p7D4q._XDOph ._uBJ0b{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._p7D4q._XDOph:hover{background-color:rgba(11,110,208,.15)!important}._p7D4q._XDOph:hover ._5gHxd{fill:#085caf}._p7D4q._XDOph:hover ._uBJ0b{color:#085caf}._p7D4q._XDOph:active{background-color:rgba(11,110,208,.12)!important}._p7D4q._XDOph:active ._5gHxd{fill:#0854a1}._p7D4q._XDOph:active ._uBJ0b{color:#0854a1}._sAMzq{border-radius:6px}._sAMzq ._5gHxd{display:block;fill:#515559}._yV6P-{width:100%;padding:0 16px;margin-top:auto;margin-bottom:0}._q0gyY,._qOR6q{width:100%;display:flex;align-items:start;border:1px solid transparent;border-radius:6px;outline:none;cursor:pointer;padding:5px 11px 5px 5px;text-decoration:none}._q0gyY ._5gHxd,._qOR6q ._5gHxd{fill:#515559}._q0gyY ._uBJ0b,._qOR6q ._uBJ0b{font-size:14px;line-height:19px;color:#515559;overflow:hidden;overflow-wrap:break-word;margin:2.5px 0 2.5px 6px}._p7D4q.focus-visible,._p7D4q:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
9887
|
+
var styles$8 = {"sideBarNav":"_PaI0m","collapsed":"_h9mty","navItems":"_Ony9o","sidebarNavItem":"_p7D4q","icon":"_5gHxd","label":"_uBJ0b","selected":"_XDOph","sidebarNavItemIconButton":"_sAMzq","expandCollapseButtonContainer":"_yV6P-","navLink":"_qOR6q","iconButtonWithLabel":"_q0gyY"};
|
|
9888
|
+
var stylesheet$8="._PaI0m{grid-area:sidebarNav;height:100%;display:flex;flex-direction:column;align-items:center;min-width:165px;max-width:240px;background-color:#fff;border-right:1px solid #eee;overflow:hidden}._PaI0m._h9mty{width:69px;min-width:auto;max-width:none}._Ony9o{margin:12px 0 28px;width:100%;overflow:auto;padding:4px 16px 0}._p7D4q{margin-bottom:12px;background-color:transparent!important}._p7D4q:hover{background-color:#efefef!important}._p7D4q:hover ._5gHxd{fill:#32363a}._p7D4q:hover ._uBJ0b{color:#32363a}._p7D4q:active{background-color:rgba(11,110,208,.12)!important}._p7D4q:active ._5gHxd{fill:#0854a1}._p7D4q:active ._uBJ0b{color:#0854a1}._p7D4q._XDOph{background-color:rgba(11,110,208,.08)!important}._p7D4q._XDOph ._5gHxd{fill:#0b6ed0}._p7D4q._XDOph ._uBJ0b{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._p7D4q._XDOph:hover{background-color:rgba(11,110,208,.15)!important}._p7D4q._XDOph:hover ._5gHxd{fill:#085caf}._p7D4q._XDOph:hover ._uBJ0b{color:#085caf}._p7D4q._XDOph:active{background-color:rgba(11,110,208,.12)!important}._p7D4q._XDOph:active ._5gHxd{fill:#0854a1}._p7D4q._XDOph:active ._uBJ0b{color:#0854a1}._sAMzq{border-radius:6px}._sAMzq ._5gHxd{display:block;fill:#515559}._yV6P-{width:100%;padding:0 16px;margin-top:auto;margin-bottom:0}._q0gyY,._qOR6q{width:100%;display:flex;align-items:start;border:1px solid transparent;border-radius:6px;outline:none;cursor:pointer;padding:5px 11px 5px 5px;text-decoration:none}._q0gyY ._5gHxd,._qOR6q ._5gHxd{fill:#515559}._q0gyY ._uBJ0b,._qOR6q ._uBJ0b{font-size:14px;line-height:19px;color:#515559;overflow:hidden;overflow-wrap:break-word;margin:2.5px 0 2.5px 6px}._p7D4q.focus-visible,._p7D4q:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
9637
9889
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$8);}
|
|
9638
9890
|
|
|
9639
9891
|
const {
|
|
@@ -9788,9 +10040,9 @@ const SidebarNavLink = /*#__PURE__*/React.forwardRef((_ref, ref) => {
|
|
|
9788
10040
|
return link;
|
|
9789
10041
|
});
|
|
9790
10042
|
|
|
9791
|
-
var css_248z$7 = ".
|
|
9792
|
-
var styles$7 = {"slider":"
|
|
9793
|
-
var stylesheet$7=".
|
|
10043
|
+
var css_248z$7 = "._Oa7X0{height:auto;width:200px;padding:5px 10px}._zI2gv{position:relative;height:10px;border:1px solid #898989;border-radius:5px;background:#fafafa}._z8nV1{top:-1px;bottom:-1px;background-color:#007ac0;border:1px solid #007ac0;border-radius:5px}._3HQTW,._z8nV1{position:absolute}._3HQTW{top:-5px;left:-10px;border:1px solid #007ac0;overflow:visible;width:18px;height:18px;padding:0;margin:0;border-radius:9px;cursor:pointer;display:inline-block;text-align:center;background:#fff;text-decoration:none;outline:none}._3HQTW:before{content:\"\";position:absolute;top:4px;left:4px;background:#007ac0;width:8px;height:8px;border-radius:10px}._3HQTW.focus-visible,._3HQTW:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
10044
|
+
var styles$7 = {"slider":"_Oa7X0","track":"_zI2gv","fill":"_z8nV1","button":"_3HQTW"};
|
|
10045
|
+
var stylesheet$7="._Oa7X0{height:auto;width:200px;padding:5px 10px}._zI2gv{position:relative;height:10px;border:1px solid #898989;border-radius:5px;background:#fafafa}._z8nV1{top:-1px;bottom:-1px;background-color:#007ac0;border:1px solid #007ac0;border-radius:5px}._3HQTW,._z8nV1{position:absolute}._3HQTW{top:-5px;left:-10px;border:1px solid #007ac0;overflow:visible;width:18px;height:18px;padding:0;margin:0;border-radius:9px;cursor:pointer;display:inline-block;text-align:center;background:#fff;text-decoration:none;outline:none}._3HQTW:before{content:\"\";position:absolute;top:4px;left:4px;background:#007ac0;width:8px;height:8px;border-radius:10px}._3HQTW.focus-visible,._3HQTW:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
9794
10046
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$7);}
|
|
9795
10047
|
|
|
9796
10048
|
const buttonOffset = -10;
|
|
@@ -10118,9 +10370,9 @@ const RangeSlider = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
10118
10370
|
}))));
|
|
10119
10371
|
});
|
|
10120
10372
|
|
|
10121
|
-
var css_248z$6 = ".
|
|
10122
|
-
var styles$6 = {"switch":"
|
|
10123
|
-
var stylesheet$6=".
|
|
10373
|
+
var css_248z$6 = "._mT9Rg{cursor:pointer;display:inline-flex;position:relative;align-items:center;margin-top:6px;margin-bottom:6px}._mT9Rg._FlBru{cursor:not-allowed}._FZDQ9{cursor:pointer;position:absolute;top:0;opacity:0;height:16px;width:32px;border-radius:34px;z-index:10}._FZDQ9:disabled{cursor:not-allowed}._FZDQ9:disabled~._MRs3M{opacity:.4}._FZDQ9:checked~._MRs3M{background-color:#0b6ed0}._FZDQ9:checked~._MRs3M:before{transform:translateX(16px);background-color:#fff;border-color:#0b6ed0}._FZDQ9:hover:not(:disabled):not(:checked)~._MRs3M{background-color:#6a6a6a}._FZDQ9:hover:not(:disabled):checked~._MRs3M{background-color:#085caf}._FZDQ9:hover:not(:disabled):checked~._MRs3M:before{border-color:#085caf}._MRs3M{width:32px;background-color:#898989;border-radius:34px}._MRs3M,._MRs3M:before{height:16px;transition:.2s}._MRs3M:before{box-sizing:border-box;position:absolute;left:0;content:\"\";width:16px;background-color:#fff;border-radius:50%;border:1px solid #898989;z-index:0}._W18rG{color:#32363a;display:flex;align-items:center;cursor:pointer}._Ttmcl{cursor:auto;color:hsla(0,0%,53.7%,.4)}._uTOO7{margin-right:12px;flex-shrink:0}._FZDQ9.focus-visible~._MRs3M,._FZDQ9:focus-visible~._MRs3M{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
10374
|
+
var styles$6 = {"switch":"_mT9Rg","disabled":"_FlBru","input":"_FZDQ9","slider":"_MRs3M","label":"_W18rG","labelDisabled":"_Ttmcl","wrappedInput":"_uTOO7"};
|
|
10375
|
+
var stylesheet$6="._mT9Rg{cursor:pointer;display:inline-flex;position:relative;align-items:center;margin-top:6px;margin-bottom:6px}._mT9Rg._FlBru{cursor:not-allowed}._FZDQ9{cursor:pointer;position:absolute;top:0;opacity:0;height:16px;width:32px;border-radius:34px;z-index:10}._FZDQ9:disabled{cursor:not-allowed}._FZDQ9:disabled~._MRs3M{opacity:.4}._FZDQ9:checked~._MRs3M{background-color:#0b6ed0}._FZDQ9:checked~._MRs3M:before{transform:translateX(16px);background-color:#fff;border-color:#0b6ed0}._FZDQ9:hover:not(:disabled):not(:checked)~._MRs3M{background-color:#6a6a6a}._FZDQ9:hover:not(:disabled):checked~._MRs3M{background-color:#085caf}._FZDQ9:hover:not(:disabled):checked~._MRs3M:before{border-color:#085caf}._MRs3M{width:32px;background-color:#898989;border-radius:34px}._MRs3M,._MRs3M:before{height:16px;transition:.2s}._MRs3M:before{box-sizing:border-box;position:absolute;left:0;content:\"\";width:16px;background-color:#fff;border-radius:50%;border:1px solid #898989;z-index:0}._W18rG{color:#32363a;display:flex;align-items:center;cursor:pointer}._Ttmcl{cursor:auto;color:hsla(0,0%,53.7%,.4)}._uTOO7{margin-right:12px;flex-shrink:0}._FZDQ9.focus-visible~._MRs3M,._FZDQ9:focus-visible~._MRs3M{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
10124
10376
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$6);}
|
|
10125
10377
|
|
|
10126
10378
|
const Switch = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -10201,9 +10453,9 @@ const SwitchField = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
10201
10453
|
}), label);
|
|
10202
10454
|
});
|
|
10203
10455
|
|
|
10204
|
-
var css_248z$5 = ".
|
|
10205
|
-
var styles$5 = {"table":"
|
|
10206
|
-
var stylesheet$5=".
|
|
10456
|
+
var css_248z$5 = "._rU779{font-size:14px;color:#32363a;width:100%;max-width:100%;border-collapse:collapse;background-color:#fff;border:none}._rU779 ._MhP6s:first-child,._rU779 ._MYyff:first-child{padding-left:16px}._UzE3I{font-size:12px}._MYyff{padding:12px 8px;text-align:left;font-weight:700}._-jJ85 ._YVmU8{border-top:1px solid #ededed}._-jJ85 ._YVmU8:hover{background-color:#fafafa}._YVmU8{transition:background-color 125ms ease-in;border-bottom:1px solid #ededed}._MhP6s{padding:16px 8px;word-break:break-word;text-align:left}";
|
|
10457
|
+
var styles$5 = {"table":"_rU779","tableCell":"_MhP6s","tableHeaderCell":"_MYyff","tableHead":"_UzE3I","tableBody":"_-jJ85","tableRow":"_YVmU8"};
|
|
10458
|
+
var stylesheet$5="._rU779{font-size:14px;color:#32363a;width:100%;max-width:100%;border-collapse:collapse;background-color:#fff;border:none}._rU779 ._MhP6s:first-child,._rU779 ._MYyff:first-child{padding-left:16px}._UzE3I{font-size:12px}._MYyff{padding:12px 8px;text-align:left;font-weight:700}._-jJ85 ._YVmU8{border-top:1px solid #ededed}._-jJ85 ._YVmU8:hover{background-color:#fafafa}._YVmU8{transition:background-color 125ms ease-in;border-bottom:1px solid #ededed}._MhP6s{padding:16px 8px;word-break:break-word;text-align:left}";
|
|
10207
10459
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$5);}
|
|
10208
10460
|
|
|
10209
10461
|
const Table = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -10335,9 +10587,9 @@ const Tabs$1 = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) =>
|
|
|
10335
10587
|
}, children));
|
|
10336
10588
|
});
|
|
10337
10589
|
|
|
10338
|
-
var css_248z$4 = ".
|
|
10339
|
-
var styles$4 = {"tablist":"
|
|
10340
|
-
var stylesheet$4=".
|
|
10590
|
+
var css_248z$4 = "._gGgSs{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._gGgSs._jHoWx ._YlpOC{flex:1 1 0px;max-width:none}._YlpOC{background:inherit;font-family:inherit;font-size:100%;line-height:1.15;margin:0;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-transform:none;text-align:center;color:#6a6d70;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:none;border-bottom:2px solid transparent;border-radius:1px;display:block;outline:none;cursor:pointer}._YlpOC:hover{color:#32363a}._YlpOC._oZjTV{border-bottom-color:#0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._mOvxm{padding-top:32px}._mOvxm._BcF47{display:none}._YlpOC.focus-visible,._YlpOC:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
10591
|
+
var styles$4 = {"tablist":"_gGgSs","grow":"_jHoWx","tab":"_YlpOC","selected":"_oZjTV","tabpanel":"_mOvxm","inactive":"_BcF47"};
|
|
10592
|
+
var stylesheet$4="._gGgSs{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._gGgSs._jHoWx ._YlpOC{flex:1 1 0px;max-width:none}._YlpOC{background:inherit;font-family:inherit;font-size:100%;line-height:1.15;margin:0;-webkit-appearance:button;-moz-appearance:button;appearance:button;text-transform:none;text-align:center;color:#6a6d70;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border:none;border-bottom:2px solid transparent;border-radius:1px;display:block;outline:none;cursor:pointer}._YlpOC:hover{color:#32363a}._YlpOC._oZjTV{border-bottom-color:#0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._mOvxm{padding-top:32px}._mOvxm._BcF47{display:none}._YlpOC.focus-visible,._YlpOC:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
10341
10593
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$4);}
|
|
10342
10594
|
|
|
10343
10595
|
const Tab$1 = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
@@ -10531,9 +10783,9 @@ const UIProvider = _ref => {
|
|
|
10531
10783
|
}, children));
|
|
10532
10784
|
};
|
|
10533
10785
|
|
|
10534
|
-
var css_248z$3 = ".
|
|
10535
|
-
var styles$3 = {"colorPickerBtnColor":"
|
|
10536
|
-
var stylesheet$3=".
|
|
10786
|
+
var css_248z$3 = "._uSOtz{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._J3SGm{margin-right:-12px;margin-left:4px}._AllgN{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._HiUUv{margin:8px 8px 0;display:flex}._4yaC-,._RPME-{margin-left:4px}._iJjIP{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._-K59S{margin:0 4px 4px 0}._-K59S:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._kus1P{margin:4px 8px 8px}._rRtLn{position:relative;width:96px;height:96px;outline:0}._rRtLn.focus-visible ._-LeCI,._rRtLn:focus-visible ._-LeCI{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._vVFlc{background:linear-gradient(90deg,#fff,transparent)}._edhZm,._vVFlc{position:absolute;top:0;right:0;bottom:0;left:0}._edhZm{background:linear-gradient(0deg,#000,transparent)}._-LeCI{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._Bj-1R{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._Bj-1R.focus-visible ._0icRB,._Bj-1R:focus-visible ._0icRB{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._0icRB{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._OKQbt{position:relative;width:16px;height:96px}._sN9AP{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._hMs4v,._sN9AP{position:absolute}._hMs4v{top:0;right:0;bottom:0;left:0;outline:0}._hMs4v.focus-visible ._sN9AP,._hMs4v:focus-visible ._sN9AP{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2nzJj{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._g28kj{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._g28kj.focus-visible,._g28kj:focus-visible{outline:none}._g28kj.focus-visible,._g28kj:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._fnmR5{display:flex}._fnmR5 ._t0Q63{position:relative;flex-shrink:0;width:26px;height:26px}._fnmR5 ._hCPVa{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._fnmR5 ._kYRiW{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
10787
|
+
var styles$3 = {"colorPickerBtnColor":"_uSOtz","colorPickerBtnIcon":"_J3SGm","colorPicker":"_AllgN","colorPickerSliderContainer":"_HiUUv","colorPickerHue":"_4yaC-","colorPickerAlpha":"_RPME-","colorPickerSwatches":"_iJjIP","colorPickerSwatch":"_-K59S","colorPickerHex":"_kus1P","saturation":"_rRtLn","saturationCircle":"_-LeCI","saturationWhite":"_vVFlc","saturationBlack":"_edhZm","hue":"_Bj-1R","hueSlider":"_0icRB","alpha":"_OKQbt","alphaSlider":"_sN9AP","alphaGradient":"_hMs4v","alphaCheckerboard":"_2nzJj","swatch":"_g28kj","hex":"_fnmR5","hexSwatch":"_t0Q63","hexSwatchColor":"_hCPVa","hexInput":"_kYRiW"};
|
|
10788
|
+
var stylesheet$3="._uSOtz{margin-left:-6px;height:16px;width:16px;border-radius:2px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._J3SGm{margin-right:-12px;margin-left:4px}._AllgN{background-color:#fff;border-radius:4px;box-shadow:0 4px 24px -4px rgba(0,0,0,.5);width:156px}._HiUUv{margin:8px 8px 0;display:flex}._4yaC-,._RPME-{margin-left:4px}._iJjIP{margin:8px 4px 0 8px;display:flex;flex-wrap:wrap}._-K59S{margin:0 4px 4px 0}._-K59S:hover{width:18px;height:18px;margin:-1px 3px 3px -1px}._kus1P{margin:4px 8px 8px}._rRtLn{position:relative;width:96px;height:96px;outline:0}._rRtLn.focus-visible ._-LeCI,._rRtLn:focus-visible ._-LeCI{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._vVFlc{background:linear-gradient(90deg,#fff,transparent)}._edhZm,._vVFlc{position:absolute;top:0;right:0;bottom:0;left:0}._edhZm{background:linear-gradient(0deg,#000,transparent)}._-LeCI{position:absolute;border:2px solid #fff;border-radius:5px;height:8px;width:8px;margin:0 0 -4px -4px;box-shadow:0 0 1px 1px rgba(0,0,0,.4),inset 0 0 1px #000}._Bj-1R{position:relative;background:linear-gradient(0deg,red,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red);width:16px;height:96px;outline:0}._Bj-1R.focus-visible ._0icRB,._Bj-1R:focus-visible ._0icRB{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._0icRB{width:16px;height:4px;background:#fff;border-radius:50%;position:absolute;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._OKQbt{position:relative;width:16px;height:96px}._sN9AP{width:16px;height:4px;background:#fff;border-radius:50%;box-shadow:0 0 4px 1px rgba(0,0,0,.4);transform:translateY(2px)}._hMs4v,._sN9AP{position:absolute}._hMs4v{top:0;right:0;bottom:0;left:0;outline:0}._hMs4v.focus-visible ._sN9AP,._hMs4v:focus-visible ._sN9AP{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2nzJj{position:absolute;top:0;right:0;bottom:0;left:0;background-image:linear-gradient(45deg,#d9dadb 25%,transparent 0),linear-gradient(-45deg,#d9dadb 25%,transparent 0),linear-gradient(45deg,transparent 75%,#d9dadb 0),linear-gradient(-45deg,transparent 75%,#d9dadb 0);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}._g28kj{border-radius:2px;height:16px;width:16px;cursor:pointer;box-shadow:inset 0 0 0 1px rgba(0,0,0,.15)}._g28kj.focus-visible,._g28kj:focus-visible{outline:none}._g28kj.focus-visible,._g28kj:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._fnmR5{display:flex}._fnmR5 ._t0Q63{position:relative;flex-shrink:0;width:26px;height:26px}._fnmR5 ._hCPVa{position:absolute;top:0;right:0;bottom:0;left:0;border-top-left-radius:4px;border-bottom-left-radius:4px;border:1px solid #c6c6c6}._fnmR5 ._kYRiW{flex-basis:100%;min-width:0;border-top-left-radius:0;border-bottom-left-radius:0}";
|
|
10537
10789
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$3);}
|
|
10538
10790
|
|
|
10539
10791
|
function useMouseDrag(handleChange) {
|
|
@@ -11292,9 +11544,9 @@ const ColorPicker = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref
|
|
|
11292
11544
|
|
|
11293
11545
|
/* eslint-disable camelcase */
|
|
11294
11546
|
|
|
11295
|
-
var css_248z$2 = ".
|
|
11296
|
-
var styles$2 = {"numberStepperContainer":"
|
|
11297
|
-
var stylesheet$2=".
|
|
11547
|
+
var css_248z$2 = "._6VpSa{display:inline-flex}._025mi{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._025mi:hover:not(._t2e0A){cursor:pointer;background:#f5f5f5}._025mi._zdmHB{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._025mi._t2e0A{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._025mi._t2e0A>svg{opacity:.4}._025mi::-webkit-inner-spin-button,._025mi::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._025mi:focus{z-index:0;border:none;border-radius:4px}._025mi:focus:not(._zdmHB){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._025mi:focus:not(._t2e0A),._IRNfS{background:#fafafa}._IRNfS{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._IRNfS:hover:not(._t2e0A){cursor:pointer;background:#f5f5f5}._IRNfS:active:not(._t2e0A){background:#e5e5e5}._IRNfS._t2e0A{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._IRNfS._t2e0A>svg{opacity:.4}._RwWIK{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._RwWIK:hover:not(._t2e0A){cursor:pointer;background:#f5f5f5}._RwWIK:active:not(._t2e0A){background:#e5e5e5}._RwWIK._t2e0A{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._RwWIK._t2e0A>svg{opacity:.4}._u0jgx{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
11548
|
+
var styles$2 = {"numberStepperContainer":"_6VpSa","numberStepperInput":"_025mi","disabled":"_t2e0A","invalid":"_zdmHB","decrementBtn":"_IRNfS","incrementBtn":"_RwWIK","inputValueAlert":"_u0jgx"};
|
|
11549
|
+
var stylesheet$2="._6VpSa{display:inline-flex}._025mi{color:#32363a;background:#fafafa;outline:none;text-align:center;padding:0 12px;min-width:55px;width:100%;font-size:14px;border:1px solid #898989;border-radius:0;-moz-appearance:textfield}._025mi:hover:not(._t2e0A){cursor:pointer;background:#f5f5f5}._025mi._zdmHB{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._025mi._t2e0A{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._025mi._t2e0A>svg{opacity:.4}._025mi::-webkit-inner-spin-button,._025mi::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._025mi:focus{z-index:0;border:none;border-radius:4px}._025mi:focus:not(._zdmHB){box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._025mi:focus:not(._t2e0A),._IRNfS{background:#fafafa}._IRNfS{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;fill:#515559;outline:none;border-radius:4px 0 0 4px;border:1px solid #898989;border-right-width:0}._IRNfS:hover:not(._t2e0A){cursor:pointer;background:#f5f5f5}._IRNfS:active:not(._t2e0A){background:#e5e5e5}._IRNfS._t2e0A{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._IRNfS._t2e0A>svg{opacity:.4}._RwWIK{padding:0;display:flex;justify-content:center;align-items:center;flex-shrink:0;width:36px;height:36px;background:#fafafa;fill:#515559;outline:none;border-radius:0 4px 4px 0;border:1px solid #898989;border-left-width:0}._RwWIK:hover:not(._t2e0A){cursor:pointer;background:#f5f5f5}._RwWIK:active:not(._t2e0A){background:#e5e5e5}._RwWIK._t2e0A{cursor:not-allowed;fill:#74777a;color:#74777a;border-color:#e5e5e5}._RwWIK._t2e0A>svg{opacity:.4}._u0jgx{position:absolute;top:0;left:0;width:0;height:0;margin:0;overflow:hidden}";
|
|
11298
11550
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$2);}
|
|
11299
11551
|
|
|
11300
11552
|
const {
|
|
@@ -11741,9 +11993,9 @@ function clampMinMax(value, _ref2) {
|
|
|
11741
11993
|
|
|
11742
11994
|
/* eslint-disable camelcase */
|
|
11743
11995
|
|
|
11744
|
-
var css_248z$1 = ".
|
|
11745
|
-
var styles$1 = {"tabs":"
|
|
11746
|
-
var stylesheet$1=".
|
|
11996
|
+
var css_248z$1 = "._-MbD2{display:block}._tUH7F{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._IVkXT{color:#6a6d70;cursor:pointer;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-bottom:1px solid transparent;border-radius:1px}._IVkXT:hover{color:#32363a}._IVkXT:focus{outline:none}._IVkXT._VWiau{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._8L04y{padding-top:32px}._8L04y._d6ZkF{display:none}._IVkXT.focus-visible,._IVkXT:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
11997
|
+
var styles$1 = {"tabs":"_-MbD2","bar":"_tUH7F","tab":"_IVkXT","active":"_VWiau","panel":"_8L04y","inactive":"_d6ZkF"};
|
|
11998
|
+
var stylesheet$1="._-MbD2{display:block}._tUH7F{display:flex;justify-content:left;border-bottom:1px solid #e5e5e5;height:52px}._IVkXT{color:#6a6d70;cursor:pointer;height:52px;padding:16px 12px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;border-bottom:1px solid transparent;border-radius:1px}._IVkXT:hover{color:#32363a}._IVkXT:focus{outline:none}._IVkXT._VWiau{margin-bottom:-1px;border-bottom:2px solid #0b6ed0;color:#32363a;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._8L04y{padding-top:32px}._8L04y._d6ZkF{display:none}._IVkXT.focus-visible,._IVkXT:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
11747
11999
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z$1);}
|
|
11748
12000
|
|
|
11749
12001
|
const {
|
|
@@ -11900,9 +12152,9 @@ const Tab = /*#__PURE__*/React__default["default"].forwardRef((_ref, ref) => {
|
|
|
11900
12152
|
|
|
11901
12153
|
/* eslint-disable camelcase */
|
|
11902
12154
|
|
|
11903
|
-
var css_248z = ".
|
|
11904
|
-
var styles = {"toolbar":"
|
|
11905
|
-
var stylesheet=".
|
|
12155
|
+
var css_248z = "._f0hTa,._w0HY-{display:flex}._f0hTa{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._nrI9Q{width:69px;min-width:auto;max-width:none}._xBBcd{width:100%}._rOxGS{margin-bottom:12px;background-color:transparent!important}._rOxGS:hover{background-color:rgba(11,110,208,.08)!important}._rOxGS:hover>svg{fill:#085caf}._rOxGS:hover>span{color:#085caf}._rOxGS:active{background-color:rgba(11,110,208,.12)!important}._rOxGS:active>svg{fill:#0854a1}._rOxGS:active>span{color:#0854a1}._rOxGS._PYBb-{background-color:rgba(11,110,208,.08)!important}._rOxGS._PYBb->svg{fill:#0b6ed0}._rOxGS._PYBb->span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._rOxGS._PYBb-:hover{background-color:rgba(11,110,208,.08)!important}._rOxGS._PYBb-:hover>svg{fill:#085caf}._rOxGS._PYBb-:hover>span{color:#085caf}._rOxGS._PYBb-:active{background-color:rgba(11,110,208,.12)!important}._rOxGS._PYBb-:active>svg{fill:#0854a1}._rOxGS._PYBb-:active>span{color:#0854a1}._y6z5r{border-radius:6px}._y6z5r>._q90kr{display:block;fill:#515559}._u3OAv{margin-top:auto;margin-bottom:0}._YPPss{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._YPPss:hover>._xoA0B{opacity:1}._-qw8Q{width:0;border-width:0;padding:0}._J1Pc3{border-radius:4px;min-width:100%;min-height:100%;outline:none}._2FVvn{width:36px;height:36px;position:absolute;top:48px;right:-18px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10}._xoA0B{opacity:0}._2FVvn._01UGW._01UGW,._i9vG-,._xoA0B:hover{opacity:1}._2FVvn._NwpQR._NwpQR{opacity:0}._2FVvn>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._2FVvn>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._2FVvn>span:hover>svg{fill:#fff}._2FVvn>span:active{background-color:#0854a1;border-color:#0854a1}._2FVvn>span:active>svg{fill:#fff}._2FVvn>span>svg{fill:#515559;border-radius:50%}._J1Pc3._9ANnM{display:none!important}._rb3Da{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._Q5dX6{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._maRh7{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._N13GI{fill:#515559}._1kmlM{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._J1Pc3.focus-visible,._J1Pc3:focus-visible,._maRh7.focus-visible,._maRh7:focus-visible,._rb3Da.focus-visible,._rb3Da:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2FVvn.focus-visible,._2FVvn:focus-visible{border-color:#0a3f88}._2FVvn:active>span{background-color:#0854a1;border-color:#0854a1}._2FVvn:active>span>svg{fill:#fff}._xoA0B.focus-visible,._xoA0B:focus-visible{opacity:1}";
|
|
12156
|
+
var styles = {"toolbar":"_w0HY-","toolbarNav":"_f0hTa","toolbarNavCollapsed":"_nrI9Q","toolbarTabs":"_xBBcd","toolbarTab":"_rOxGS","selected":"_PYBb-","toolbarTabIconButton":"_y6z5r","icon":"_q90kr","tabsExpandCollapseButton":"_u3OAv","toolbarPanels":"_YPPss","toolbarPanelExpandCollapseButtonDefaultHidden":"_xoA0B","toolbarPanelsCollapsed":"_-qw8Q","toolbarPanel":"_J1Pc3","toolbarPanelExpandCollapseButton":"_2FVvn","toolbarPanelExpandCollapseButtonDefaultShown":"_i9vG-","overrideShow":"_01UGW","overrideHide":"_NwpQR","notSelected":"_9ANnM","buttonWithLabel":"_rb3Da","buttonWithLabelLabel":"_Q5dX6","iconButtonWithLabel":"_maRh7","iconButtonWithLabelIcon":"_N13GI","iconButtonWithLabelLabel":"_1kmlM"};
|
|
12157
|
+
var stylesheet="._f0hTa,._w0HY-{display:flex}._f0hTa{flex-direction:column;align-items:center;min-width:165px;max-width:240px;padding:12px 16px 16px;border-right:1px solid #898989;background-color:#fff}._nrI9Q{width:69px;min-width:auto;max-width:none}._xBBcd{width:100%}._rOxGS{margin-bottom:12px;background-color:transparent!important}._rOxGS:hover{background-color:rgba(11,110,208,.08)!important}._rOxGS:hover>svg{fill:#085caf}._rOxGS:hover>span{color:#085caf}._rOxGS:active{background-color:rgba(11,110,208,.12)!important}._rOxGS:active>svg{fill:#0854a1}._rOxGS:active>span{color:#0854a1}._rOxGS._PYBb-{background-color:rgba(11,110,208,.08)!important}._rOxGS._PYBb->svg{fill:#0b6ed0}._rOxGS._PYBb->span{color:#0b6ed0;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif;font-weight:500}._rOxGS._PYBb-:hover{background-color:rgba(11,110,208,.08)!important}._rOxGS._PYBb-:hover>svg{fill:#085caf}._rOxGS._PYBb-:hover>span{color:#085caf}._rOxGS._PYBb-:active{background-color:rgba(11,110,208,.12)!important}._rOxGS._PYBb-:active>svg{fill:#0854a1}._rOxGS._PYBb-:active>span{color:#0854a1}._y6z5r{border-radius:6px}._y6z5r>._q90kr{display:block;fill:#515559}._u3OAv{margin-top:auto;margin-bottom:0}._YPPss{position:relative;width:295px;background-color:#fff;padding:2px 1px 2px 2px;border-right:1px solid #898989}._YPPss:hover>._xoA0B{opacity:1}._-qw8Q{width:0;border-width:0;padding:0}._J1Pc3{border-radius:4px;min-width:100%;min-height:100%;outline:none}._2FVvn{width:36px;height:36px;position:absolute;top:48px;right:-18px;display:flex;justify-content:center;align-items:center;padding:0;background-color:transparent;border:2px solid transparent;border-radius:6px;outline:none;cursor:pointer;z-index:10}._xoA0B{opacity:0}._2FVvn._01UGW._01UGW,._i9vG-,._xoA0B:hover{opacity:1}._2FVvn._NwpQR._NwpQR{opacity:0}._2FVvn>span{width:24px;height:24px;display:flex;justify-content:center;align-items:center;background-color:#fff;border:1px solid #898989;border-radius:50%}._2FVvn>span:hover{background-color:#0b6ed0;border-color:#0b6ed0}._2FVvn>span:hover>svg{fill:#fff}._2FVvn>span:active{background-color:#0854a1;border-color:#0854a1}._2FVvn>span:active>svg{fill:#fff}._2FVvn>span>svg{fill:#515559;border-radius:50%}._J1Pc3._9ANnM{display:none!important}._rb3Da{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 7px}._Q5dX6{font-size:14px;color:#515559;justify-self:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._maRh7{width:100%;height:36px;display:flex;align-items:center;border:1px solid transparent;border-radius:4px;outline:none;cursor:pointer;padding:0 5px}._N13GI{fill:#515559}._1kmlM{font-size:14px;color:#515559;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin-left:5px}._J1Pc3.focus-visible,._J1Pc3:focus-visible,._maRh7.focus-visible,._maRh7:focus-visible,._rb3Da.focus-visible,._rb3Da:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._2FVvn.focus-visible,._2FVvn:focus-visible{border-color:#0a3f88}._2FVvn:active>span{background-color:#0854a1;border-color:#0854a1}._2FVvn:active>span>svg{fill:#fff}._xoA0B.focus-visible,._xoA0B:focus-visible{opacity:1}";
|
|
11906
12158
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){icons_index.styleInject(css_248z);}
|
|
11907
12159
|
|
|
11908
12160
|
const {
|
|
@@ -12419,6 +12671,7 @@ exports.FilePicker = FilePicker;
|
|
|
12419
12671
|
exports.Flyout = Flyout;
|
|
12420
12672
|
exports.FlyoutOption = FlyoutOption;
|
|
12421
12673
|
exports.FormField = FormField;
|
|
12674
|
+
exports.FormProvider = FormProvider;
|
|
12422
12675
|
exports.FullScreenTakeover = FullScreenTakeover;
|
|
12423
12676
|
exports.HelperText = HelperText;
|
|
12424
12677
|
exports.Icon = Icon;
|
|
@@ -12491,6 +12744,7 @@ exports.ToolbarPanels = ToolbarPanels;
|
|
|
12491
12744
|
exports.ToolbarTab = ToolbarTab;
|
|
12492
12745
|
exports.ToolbarTabs = ToolbarTabs;
|
|
12493
12746
|
exports.Tooltip = Tooltip;
|
|
12747
|
+
exports.Translate = Translate;
|
|
12494
12748
|
exports.UIProvider = UIProvider;
|
|
12495
12749
|
exports.VisualCheckbox = VisualCheckbox;
|
|
12496
12750
|
exports.buttonStyles = buttonStyles;
|
|
@@ -12507,6 +12761,7 @@ exports.useControllableState = useControllableState;
|
|
|
12507
12761
|
exports.useDidUpdate = useDidUpdate;
|
|
12508
12762
|
exports.useEventCallback = useEventCallback;
|
|
12509
12763
|
exports.useEventListener = useEventListener;
|
|
12764
|
+
exports.useFormField = useFormField;
|
|
12510
12765
|
exports.useId = useId;
|
|
12511
12766
|
exports.useIsFocused = useIsFocused;
|
|
12512
12767
|
exports.useIsTruncated = useIsTruncated;
|
|
@@ -12514,6 +12769,7 @@ exports.useLatest = useLatest;
|
|
|
12514
12769
|
exports.usePortalTarget = usePortalTarget;
|
|
12515
12770
|
exports.usePrevious = usePrevious;
|
|
12516
12771
|
exports.useResponsiveValue = useResponsiveValue;
|
|
12772
|
+
exports.useSSRLayoutEffect = useSSRLayoutEffect;
|
|
12517
12773
|
exports.useScreenReaderAnnouncement = useScreenReaderAnnouncement;
|
|
12518
12774
|
exports.useTranslation = useTranslation;
|
|
12519
12775
|
exports.wrapAround = wrapAround;
|