@qualtrics/ui-react 2.24.2 → 2.26.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 +18 -0
- package/dist/__shared/cjs/{index-8f52588d.js → index-ae6df097.js} +3 -3
- package/dist/__shared/cjs/{index-b7a35c2e.js → index-dc6f69ac.js} +262 -256
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +1 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Hue.js +1 -1
- package/dist/components/ColorPicker/Palette.js +1 -1
- package/dist/components/ColorPicker/Saturation.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxIcon.js +1 -1
- package/dist/components/Combobox/ComboboxInput.js +1 -1
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +4 -4
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownList.js +1 -1
- package/dist/components/Dropdown/DropdownOption.js +2 -2
- package/dist/components/Dropdown/DropdownSearch.js +2 -2
- package/dist/components/FilePicker/FilePicker.js +2 -2
- 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/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +2 -2
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +7 -7
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -2
- 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/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +3 -3
- package/dist/components/NumberStepper/NumberStepper.js +2 -2
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +3 -3
- package/dist/components/Pagination/PaginationPageInput.js +8 -8
- package/dist/components/Pagination/PaginationPreviousButton.js +3 -3
- package/dist/components/Popover/Popover.js +5 -5
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -1
- 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/Alpha.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
- package/dist/components/deprecated_ColorPicker/Hue.js +2 -2
- package/dist/components/deprecated_ColorPicker/Saturation.js +2 -2
- package/dist/components/deprecated_ColorPicker/Swatch.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +1 -1
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +5 -5
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +1 -1
- 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 +15 -7
- package/dist/index.es.js +2 -1
- package/dist/index.js +4 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +8 -6
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +6 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +2 -2
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox.js +2 -0
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +2 -0
- package/dist/next/Combobox/ComboboxOption.js +2 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Drawer/Drawer.js +2 -2
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +2 -2
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +1 -1
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +41 -0
- package/dist/next/Menu/Hooks/useIsVirtualized.js +8 -0
- package/dist/next/Menu/Hooks/useMaskDimensions.js +59 -0
- package/dist/next/Menu/{useMutationObserver.js → Hooks/useMutationObserver.js} +1 -1
- package/dist/next/Menu/{usePaneSearch.js → Hooks/usePaneSearch.js} +76 -34
- package/dist/next/Menu/Menu.js +22 -24
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +5 -2
- package/dist/next/Menu/MenuContext.js +5 -1
- package/dist/next/Menu/MenuItem.js +38 -16
- package/dist/next/Menu/MenuPane.js +90 -55
- package/dist/next/Menu/PaneChildren.js +47 -0
- package/dist/next/Menu/SubMenu.js +95 -49
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +118 -0
- package/dist/next/Select/Select2.js +8 -0
- package/dist/next/Select/SelectButton.js +46 -0
- package/dist/next/Select/SelectContext.js +16 -0
- package/dist/next/Select/SelectItem.js +46 -0
- package/dist/next/Select/SelectPane.js +43 -0
- package/dist/next/Select/SelectedItems.js +45 -0
- package/dist/next/Select/SubSelect.js +90 -0
- package/dist/next/Select/constants.js +13 -0
- package/dist/next/Select/index.js +5 -0
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +1 -1
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +68 -6
- package/dist/next/index.es.js +6 -0
- package/dist/next/index.js +1009 -372
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +2 -2
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +1 -1
- package/icons/package.json +2 -0
- package/next/package.json +3 -1
- package/package.json +6 -3
|
@@ -63,12 +63,12 @@ const FilePicker = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
|
63
63
|
// returns focus to input after closing system dialog
|
|
64
64
|
useDidUpdate(() => {
|
|
65
65
|
var _fileInputRef$current;
|
|
66
|
-
(_fileInputRef$current = fileInputRef.current) === null || _fileInputRef$current === void 0
|
|
66
|
+
(_fileInputRef$current = fileInputRef.current) === null || _fileInputRef$current === void 0 || _fileInputRef$current.focus();
|
|
67
67
|
}, [filesChanged]);
|
|
68
68
|
const internalAriaDescribedby = concatIds(externalAriaDescribedBy, formFieldHelperTextId, formFieldErrorTextId);
|
|
69
69
|
const handleChange = e => {
|
|
70
70
|
setFiles(e.target.files, e);
|
|
71
|
-
onChange === null || onChange === void 0
|
|
71
|
+
onChange === null || onChange === void 0 || onChange(e);
|
|
72
72
|
// This is needed due to CFE-508
|
|
73
73
|
setFilesChanged(val => !val);
|
|
74
74
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var filePickerStyles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._rFthL{position:relative}._rFthL[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._rFthL:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._AYO6Y{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._v2pa0{margin-left:16px;font-size:14px;color:#32363a}._v2pa0 ._ZR3RI{margin-right:16px}";
|
|
4
|
+
var filePickerStyles = {"container":"_rFthL","fileInput":"_AYO6Y","fileDetails":"_v2pa0","fileName":"_ZR3RI"};
|
|
5
|
+
var stylesheet="._rFthL{position:relative}._rFthL[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._rFthL:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._AYO6Y{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._v2pa0{margin-left:16px;font-size:14px;color:#32363a}._v2pa0 ._ZR3RI{margin-right:16px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { filePickerStyles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"caption":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._wtWhX{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._WzVQJ{color:#6a6d70;fill:#6a6d70}._tYaH9{color:#b00;fill:#b00}._8PJL-,._8QuJT{margin-left:-2px;margin-right:3px}";
|
|
4
|
+
var styles = {"caption":"_wtWhX","helperText":"_WzVQJ","errorText":"_tYaH9","errorIcon":"_8PJL-","readOnlyIcon":"_8QuJT"};
|
|
5
|
+
var stylesheet="._wtWhX{display:flex;align-items:center;font-size:12px;line-height:16px;min-height:16px}._WzVQJ{color:#6a6d70;fill:#6a6d70}._tYaH9{color:#b00;fill:#b00}._8PJL-,._8QuJT{margin-left:-2px;margin-right:3px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"formField":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._FNi5O{display:flex;flex-direction:column;align-items:flex-start}._YbcR0{margin-top:6px;max-width:100%}._YbcR0 *+*{margin-top:4px}";
|
|
4
|
+
var styles = {"formField":"_FNi5O","captionContainer":"_YbcR0"};
|
|
5
|
+
var stylesheet="._FNi5O{display:flex;flex-direction:column;align-items:flex-start}._YbcR0{margin-top:6px;max-width:100%}._YbcR0 *+*{margin-top:4px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -12,7 +12,7 @@ const useFormFieldControl = () => {
|
|
|
12
12
|
setHasControl
|
|
13
13
|
} = context;
|
|
14
14
|
useEffect(() => {
|
|
15
|
-
setHasControl === null || setHasControl === void 0
|
|
15
|
+
setHasControl === null || setHasControl === void 0 || setHasControl(true);
|
|
16
16
|
}, [setHasControl]);
|
|
17
17
|
return context;
|
|
18
18
|
};
|
|
@@ -22,7 +22,7 @@ const useFormFieldLabel = () => {
|
|
|
22
22
|
setHasLabel
|
|
23
23
|
} = context;
|
|
24
24
|
useEffect(() => {
|
|
25
|
-
setHasLabel === null || setHasLabel === void 0
|
|
25
|
+
setHasLabel === null || setHasLabel === void 0 || setHasLabel(true);
|
|
26
26
|
}, [setHasLabel]);
|
|
27
27
|
return context;
|
|
28
28
|
};
|
|
@@ -32,7 +32,7 @@ const useFormFieldType = type => {
|
|
|
32
32
|
setFormFieldType
|
|
33
33
|
} = context;
|
|
34
34
|
useEffect(() => {
|
|
35
|
-
setFormFieldType === null || setFormFieldType === void 0
|
|
35
|
+
setFormFieldType === null || setFormFieldType === void 0 || setFormFieldType(type);
|
|
36
36
|
}, [setFormFieldType, type]);
|
|
37
37
|
return context;
|
|
38
38
|
};
|
|
@@ -45,14 +45,14 @@ const FullScreenTakeover = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
45
45
|
if (!isInDOM && focusedElementWhenDialogOpened) {
|
|
46
46
|
var _elementRefToFocusOnC;
|
|
47
47
|
const elementToFocus = (_elementRefToFocusOnC = elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 ? void 0 : elementRefToFocusOnClose.current) !== null && _elementRefToFocusOnC !== void 0 ? _elementRefToFocusOnC : focusedElementWhenDialogOpened;
|
|
48
|
-
elementToFocus === null || elementToFocus === void 0
|
|
48
|
+
elementToFocus === null || elementToFocus === void 0 || elementToFocus.focus();
|
|
49
49
|
}
|
|
50
50
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
51
51
|
}, [isInDOM, focusedElementWhenDialogOpened]);
|
|
52
52
|
const handleAnimationEnd = () => {
|
|
53
53
|
if (isOpen) {
|
|
54
54
|
var _ref2, _elementRefToFocusOnO;
|
|
55
|
-
(_ref2 = (_elementRefToFocusOnO = elementRefToFocusOnOpen === null || elementRefToFocusOnOpen === void 0 ? void 0 : elementRefToFocusOnOpen.current) !== null && _elementRefToFocusOnO !== void 0 ? _elementRefToFocusOnO : dialogRef === null || dialogRef === void 0 ? void 0 : dialogRef.current) === null || _ref2 === void 0
|
|
55
|
+
(_ref2 = (_elementRefToFocusOnO = elementRefToFocusOnOpen === null || elementRefToFocusOnOpen === void 0 ? void 0 : elementRefToFocusOnOpen.current) !== null && _elementRefToFocusOnO !== void 0 ? _elementRefToFocusOnO : dialogRef === null || dialogRef === void 0 ? void 0 : dialogRef.current) === null || _ref2 === void 0 || _ref2.focus();
|
|
56
56
|
} else {
|
|
57
57
|
setIsInDOM(false);
|
|
58
58
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"dialog":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._SdCEo{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _Jw8J0{0%{transform:scale3d(.7,.7,.7);opacity:0}}._r9hwr{animation:_Jw8J0 both;animation-duration:.2s}@keyframes _auYct{to{transform:scale3d(.7,.7,.7);opacity:0}}._-9KmR{animation:_auYct both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"dialog":"_SdCEo","transitionIn":"_r9hwr","showAnimation":"_Jw8J0","transitionOut":"_-9KmR","hideAnimation":"_auYct"};
|
|
5
|
+
var stylesheet="._SdCEo{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _Jw8J0{0%{transform:scale3d(.7,.7,.7);opacity:0}}._r9hwr{animation:_Jw8J0 both;animation-duration:.2s}@keyframes _auYct{to{transform:scale3d(.7,.7,.7);opacity:0}}._-9KmR{animation:_auYct both;animation-duration:.2s}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var iconButtonStyles = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Z5VC9{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}._Z5VC9:focus{outline:none}._Z5VC9:hover:not(._ji2JR){background-color:rgba(50,54,58,.08)}._Z5VC9:active:not(._ji2JR){background-color:rgba(50,54,58,.11);stroke-width:2}._Z5VC9._ji2JR{cursor:not-allowed;fill:rgba(81,85,89,.6)}._Z5VC9.focus-visible,._Z5VC9:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var iconButtonStyles = {"button":"_Z5VC9","disabled":"_ji2JR"};
|
|
5
|
+
var stylesheet="._Z5VC9{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}._Z5VC9:focus{outline:none}._Z5VC9:hover:not(._ji2JR){background-color:rgba(50,54,58,.08)}._Z5VC9:active:not(._ji2JR){background-color:rgba(50,54,58,.11);stroke-width:2}._Z5VC9._ji2JR{cursor:not-allowed;fill:rgba(81,85,89,.6)}._Z5VC9.focus-visible,._Z5VC9:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { iconButtonStyles as default, stylesheet };
|
|
@@ -32,19 +32,19 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
32
32
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
33
33
|
// @ts-ignore: Property 'value' does not exist on type 'HTMLSpanElement'
|
|
34
34
|
e.target.value = newVal;
|
|
35
|
-
onChange === null || onChange === void 0
|
|
35
|
+
onChange === null || onChange === void 0 || onChange(e);
|
|
36
36
|
setLastVal(newVal);
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
const handleBlur = e => {
|
|
40
40
|
setIsEditing(false);
|
|
41
41
|
e.target.value = e.target.innerText;
|
|
42
|
-
onBlur === null || onBlur === void 0
|
|
42
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
43
43
|
};
|
|
44
44
|
const handleFocus = e => {
|
|
45
45
|
setIsEditing(true);
|
|
46
46
|
e.target.value = e.target.innerText;
|
|
47
|
-
onFocus === null || onFocus === void 0
|
|
47
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
48
48
|
};
|
|
49
49
|
const handleKeyDown = e => {
|
|
50
50
|
if (e.key === 'Enter') {
|
|
@@ -55,13 +55,13 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
55
55
|
e.stopPropagation(); // prevent event from closing modals or popovers
|
|
56
56
|
setIsEditing(false);
|
|
57
57
|
}
|
|
58
|
-
onKeyDown === null || onKeyDown === void 0
|
|
58
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
59
59
|
};
|
|
60
60
|
const handleMouseDown = e => {
|
|
61
61
|
if (isFocused) {
|
|
62
62
|
setIsEditing(true);
|
|
63
63
|
}
|
|
64
|
-
onMouseDown === null || onMouseDown === void 0
|
|
64
|
+
onMouseDown === null || onMouseDown === void 0 || onMouseDown(e);
|
|
65
65
|
};
|
|
66
66
|
const handlePaste = e => {
|
|
67
67
|
// Strip formatting and newlines from pasted data
|
|
@@ -87,13 +87,13 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
87
87
|
var _window$getSelection2;
|
|
88
88
|
if (isEditing && isFocused && internalRef.current) {
|
|
89
89
|
var _window$getSelection;
|
|
90
|
-
(_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0
|
|
90
|
+
(_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 || _window$getSelection.selectAllChildren(internalRef.current);
|
|
91
91
|
}
|
|
92
92
|
// Clear window selection only if it is on the InlineInput. Without this check, we would mistakenly clear the
|
|
93
93
|
// selection after focus moves from this component to an Input or another component that sets the window selection.
|
|
94
94
|
else if (internalRef.current && (_window$getSelection2 = window.getSelection()) !== null && _window$getSelection2 !== void 0 && _window$getSelection2.containsNode(internalRef.current, true)) {
|
|
95
95
|
var _window$getSelection3;
|
|
96
|
-
(_window$getSelection3 = window.getSelection()) === null || _window$getSelection3 === void 0
|
|
96
|
+
(_window$getSelection3 = window.getSelection()) === null || _window$getSelection3 === void 0 || _window$getSelection3.removeAllRanges();
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}, [isEditing, isFocused]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Y6JMA{display:inline-block}._00U0A{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}._00U0A::-moz-selection{background-color:rgba(11,110,208,.11)}._00U0A::selection{background-color:rgba(11,110,208,.11)}._00U0A:focus,._00U0A:hover{background-color:#f5f5f5}._00U0A:focus{border:2px solid #0a3f88;padding:3px}._00U0A:focus._aOW6n{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
|
|
4
|
+
var styles = {"container":"_Y6JMA","inlineInput":"_00U0A","isEditing":"_aOW6n"};
|
|
5
|
+
var stylesheet="._Y6JMA{display:inline-block}._00U0A{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}._00U0A::-moz-selection{background-color:rgba(11,110,208,.11)}._00U0A::selection{background-color:rgba(11,110,208,.11)}._00U0A:focus,._00U0A:hover{background-color:#f5f5f5}._00U0A:focus{border:2px solid #0a3f88;padding:3px}._00U0A:focus._aOW6n{background-color:#fafafa;cursor:text;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 1px 8px hsla(0,0%,66.7%,.5)}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._lyGlV{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}._lyGlV::-moz-placeholder{color:#515559;opacity:1}._lyGlV::placeholder{color:#515559;opacity:1}._lyGlV:hover{cursor:pointer;background-color:#f5f5f5}._lyGlV:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._lyGlV._m5Ye1{border-color:#b00}._lyGlV._m5Ye1:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._lyGlV:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._lyGlV:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._lyGlV:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._lyGlV._4cA-Q{height:auto}._lyGlV._4cA-Q::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._lyGlV._LLOWw{display:block;width:100%}._lyGlV._dQb4I{padding:4px 8px}input._lyGlV._dQb4I{height:26px;min-height:26px}[type=number]._lyGlV{-moz-appearance:textfield}[type=number]._lyGlV::-webkit-inner-spin-button,[type=number]._lyGlV::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._o-o8b{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._o-o8b:hover{cursor:pointer}._o-o8b._cSNY-{color:#0b6ed0}._xk-l7{margin-top:4px}";
|
|
4
|
+
var styles = {"input":"_lyGlV","invalid":"_m5Ye1","multiline":"_4cA-Q","full":"_LLOWw","small":"_dQb4I","label":"_o-o8b","focused":"_cSNY-","wrappedInput":"_xk-l7"};
|
|
5
|
+
var stylesheet="._lyGlV{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}._lyGlV::-moz-placeholder{color:#515559;opacity:1}._lyGlV::placeholder{color:#515559;opacity:1}._lyGlV:hover{cursor:pointer;background-color:#f5f5f5}._lyGlV:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._lyGlV._m5Ye1{border-color:#b00}._lyGlV._m5Ye1:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._lyGlV:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._lyGlV:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._lyGlV:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._lyGlV._4cA-Q{height:auto}._lyGlV._4cA-Q::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._lyGlV._LLOWw{display:block;width:100%}._lyGlV._dQb4I{padding:4px 8px}input._lyGlV._dQb4I{height:26px;min-height:26px}[type=number]._lyGlV{-moz-appearance:textfield}[type=number]._lyGlV::-webkit-inner-spin-button,[type=number]._lyGlV::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._o-o8b{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._o-o8b:hover{cursor:pointer}._o-o8b._cSNY-{color:#0b6ed0}._xk-l7{margin-top:4px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -32,11 +32,11 @@ const InputField = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
32
32
|
useFormFieldType('input');
|
|
33
33
|
function handleFocus(e) {
|
|
34
34
|
setFocused(true);
|
|
35
|
-
onFocus === null || onFocus === void 0
|
|
35
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
36
36
|
}
|
|
37
37
|
function handleBlur(e) {
|
|
38
38
|
setFocused(false);
|
|
39
|
-
onBlur === null || onBlur === void 0
|
|
39
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
40
40
|
}
|
|
41
41
|
return /*#__PURE__*/React__default.createElement(Label, _extends({
|
|
42
42
|
htmlFor: id,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"addon":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._kcyrP{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}._kcyrP._ibr8y{height:26px;min-height:26px;padding:5px 8px}._guQkT{display:flex;align-items:stretch}._guQkT._Lo27m{width:100%}._guQkT ._1lDEw{margin:0;position:relative;flex-shrink:0;z-index:10}._guQkT ._1lDEw: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}._guQkT ._1lDEw:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._guQkT ._1lDEw:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._guQkT ._1lDEw:last-child,._guQkT ._1lDEw:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._guQkT ._1lDEw:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._guQkT ._1lDEw._LxPIG{flex-shrink:1;min-width:40px;z-index:0}._guQkT ._1lDEw._LxPIG._Lo27m{flex-grow:1}._guQkT ._1lDEw:focus{z-index:20}";
|
|
4
|
+
var styles = {"addon":"_kcyrP","small":"_ibr8y","inputGroup":"_guQkT","full":"_Lo27m","inputGroupElement":"_1lDEw","input":"_LxPIG"};
|
|
5
|
+
var stylesheet="._kcyrP{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}._kcyrP._ibr8y{height:26px;min-height:26px;padding:5px 8px}._guQkT{display:flex;align-items:stretch}._guQkT._Lo27m{width:100%}._guQkT ._1lDEw{margin:0;position:relative;flex-shrink:0;z-index:10}._guQkT ._1lDEw: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}._guQkT ._1lDEw:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._guQkT ._1lDEw:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._guQkT ._1lDEw:last-child,._guQkT ._1lDEw:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._guQkT ._1lDEw:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._guQkT ._1lDEw._LxPIG{flex-shrink:1;min-width:40px;z-index:0}._guQkT ._1lDEw._LxPIG._Lo27m{flex-grow:1}._guQkT ._1lDEw:focus{z-index:20}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"label":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._7OYrf{font-size:14px}._aeHzy{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._sjgbt{color:#0b6ed0}";
|
|
4
|
+
var styles = {"label":"_7OYrf","control":"_aeHzy","focused":"_sjgbt"};
|
|
5
|
+
var stylesheet="._7OYrf{font-size:14px}._aeHzy{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._sjgbt{color:#0b6ed0}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"link":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._ol8Sw{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}._ol8Sw:active:focus,._ol8Sw:focus{outline:none}._ol8Sw:visited{color:#0854a1}._ol8Sw:hover{color:#085caf}._ol8Sw:active{color:#0854a1}._ol8Sw.focus-visible,._ol8Sw:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"link":"_ol8Sw"};
|
|
5
|
+
var stylesheet="._ol8Sw{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}._ol8Sw:active:focus,._ol8Sw:focus{outline:none}._ol8Sw:visited{color:#0854a1}._ol8Sw:hover{color:#085caf}._ol8Sw:active{color:#0854a1}._ol8Sw.focus-visible,._ol8Sw:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"spinnerContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._DRu2H{position:relative;display:inline-block}._DRu2H._qoJNZ{min-height:20px;min-width:20px}._DRu2H._euqtc{min-height:25px;min-width:25px}._DRu2H._qfSFG{min-height:40px;min-width:40px}._DRu2H._lM-6g{min-height:64px;min-width:64px}._DRu2H ._NUyFz{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._DRu2H ._NUyFz._wUGFt{visibility:hidden}._DRu2H ._NUyFz div{position:absolute;transform:rotate(20deg)}._DRu2H ._NUyFz div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_NUyFz .9s linear infinite}._DRu2H ._NUyFz 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}._DRu2H ._NUyFz div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._DRu2H ._NUyFz div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._DRu2H ._NUyFz div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._DRu2H ._NUyFz div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._DRu2H ._NUyFz div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._DRu2H ._NUyFz div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._DRu2H ._NUyFz div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._DRu2H ._NUyFz div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._DRu2H ._NUyFz div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._DRu2H ._lM-6g div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._DRu2H ._qoJNZ div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._DRu2H ._euqtc div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._DRu2H ._rfG2w div div:nth-child(-n+9):after{background:#fff}._DRu2H ._Fz9MP{width:100%;height:100%}._DRu2H ._Fz9MP._-p-BI{pointer-events:none}._DRu2H ._Fz9MP._wUGFt{opacity:0}._DRu2H ._Fz9MP._-staZ{opacity:.5}@keyframes _NUyFz{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_DRu2H","xs":"_qoJNZ","small":"_euqtc","medium":"_qfSFG","large":"_lM-6g","spinnerComponent":"_NUyFz","hide":"_wUGFt","inverted":"_rfG2w","spinnerContent":"_Fz9MP","disablePointerEvents":"_-p-BI","fade":"_-staZ"};
|
|
5
|
+
var stylesheet="._DRu2H{position:relative;display:inline-block}._DRu2H._qoJNZ{min-height:20px;min-width:20px}._DRu2H._euqtc{min-height:25px;min-width:25px}._DRu2H._qfSFG{min-height:40px;min-width:40px}._DRu2H._lM-6g{min-height:64px;min-width:64px}._DRu2H ._NUyFz{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._DRu2H ._NUyFz._wUGFt{visibility:hidden}._DRu2H ._NUyFz div{position:absolute;transform:rotate(20deg)}._DRu2H ._NUyFz div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_NUyFz .9s linear infinite}._DRu2H ._NUyFz 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}._DRu2H ._NUyFz div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._DRu2H ._NUyFz div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._DRu2H ._NUyFz div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._DRu2H ._NUyFz div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._DRu2H ._NUyFz div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._DRu2H ._NUyFz div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._DRu2H ._NUyFz div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._DRu2H ._NUyFz div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._DRu2H ._NUyFz div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._DRu2H ._lM-6g div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._DRu2H ._qoJNZ div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._DRu2H ._euqtc div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._DRu2H ._rfG2w div div:nth-child(-n+9):after{background:#fff}._DRu2H ._Fz9MP{width:100%;height:100%}._DRu2H ._Fz9MP._-p-BI{pointer-events:none}._DRu2H ._Fz9MP._wUGFt{opacity:0}._DRu2H ._Fz9MP._-staZ{opacity:.5}@keyframes _NUyFz{0%{opacity:1}to{opacity:0}}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -44,7 +44,7 @@ const LogicEditor = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
44
44
|
const update = useCallback(setStateCallback => {
|
|
45
45
|
setState(prevState => {
|
|
46
46
|
const newState = setStateCallback(prevState);
|
|
47
|
-
onChange === null || onChange === void 0
|
|
47
|
+
onChange === null || onChange === void 0 || onChange(newState);
|
|
48
48
|
return newState;
|
|
49
49
|
});
|
|
50
50
|
}, [onChange]);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"set":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._BV6eb{width:100%}._xqOXs{display:flex;align-items:center}._0j634{display:flex;flex-wrap:wrap;grid-gap:4px}._0j634._08gqN :nth-last-child(2){margin-right:42px}._n5duq{position:relative;padding-left:32px;padding-top:16px;display:flex}._PEShJ ._n5duq{padding-top:0;padding-left:16px}._PEShJ ._n5duq+._n5duq{margin-top:16px}._jjT-3{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}._PEShJ ._n5duq:first-of-type ._jjT-3{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._PEShJ ._jjT-3{top:-16px;left:0}._PEShJ ._n5duq:not(:first-of-type):not(:last-of-type) ._jjT-3{border-bottom-left-radius:0}._lgIiD{margin-left:-46px}._Ppb6r{margin:0 2px 0 4px}._Ppb6r.focus-visible,._Ppb6r:focus-visible{outline-width:2px}._Ifa38{margin-left:4px}";
|
|
4
|
+
var styles = {"set":"_BV6eb","setWrapper":"_xqOXs","condition":"_0j634","readOnly":"_08gqN","branch":"_n5duq","fixedSet":"_PEShJ","connection":"_jjT-3","conditionControlsContainer":"_lgIiD","controls":"_Ppb6r","controlMenuItem":"_Ifa38"};
|
|
5
|
+
var stylesheet="._BV6eb{width:100%}._xqOXs{display:flex;align-items:center}._0j634{display:flex;flex-wrap:wrap;grid-gap:4px}._0j634._08gqN :nth-last-child(2){margin-right:42px}._n5duq{position:relative;padding-left:32px;padding-top:16px;display:flex}._PEShJ ._n5duq{padding-top:0;padding-left:16px}._PEShJ ._n5duq+._n5duq{margin-top:16px}._jjT-3{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}._PEShJ ._n5duq:first-of-type ._jjT-3{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._PEShJ ._jjT-3{top:-16px;left:0}._PEShJ ._n5duq:not(:first-of-type):not(:last-of-type) ._jjT-3{border-bottom-left-radius:0}._lgIiD{margin-left:-46px}._Ppb6r{margin:0 2px 0 4px}._Ppb6r.focus-visible,._Ppb6r:focus-visible{outline-width:2px}._Ifa38{margin-left:4px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -50,14 +50,14 @@ const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
|
50
50
|
// Ensure that when a user clicks on the dialog and drags and lifts out on the overlay,
|
|
51
51
|
// the modal does not fire onDismiss.
|
|
52
52
|
if (e.target === mouseDownTarget.current && e.target === overlay.current) {
|
|
53
|
-
onDismiss === null || onDismiss === void 0
|
|
53
|
+
onDismiss === null || onDismiss === void 0 || onDismiss(e);
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
const handleKeyDown = e => {
|
|
57
57
|
if (e.key === 'Escape') {
|
|
58
58
|
e.stopPropagation(); // Prevent event from closing modals or popovers
|
|
59
|
-
onDismiss === null || onDismiss === void 0
|
|
60
|
-
onClose === null || onClose === void 0
|
|
59
|
+
onDismiss === null || onDismiss === void 0 || onDismiss(e);
|
|
60
|
+
onClose === null || onClose === void 0 || onClose(e);
|
|
61
61
|
e.preventDefault(); // Prevent Safari from exiting full-screen mode
|
|
62
62
|
}
|
|
63
63
|
};
|
|
@@ -178,7 +178,7 @@ const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
|
|
|
178
178
|
closeIconButtonRef.current.focus();
|
|
179
179
|
} else {
|
|
180
180
|
var _dialogRef$current;
|
|
181
|
-
(_dialogRef$current = dialogRef.current) === null || _dialogRef$current === void 0
|
|
181
|
+
(_dialogRef$current = dialogRef.current) === null || _dialogRef$current === void 0 || _dialogRef$current.focus();
|
|
182
182
|
}
|
|
183
183
|
} else if (elementRefToFocusOnClose !== null && elementRefToFocusOnClose !== void 0 && elementRefToFocusOnClose.current) {
|
|
184
184
|
elementRefToFocusOnClose.current.focus();
|
|
@@ -187,7 +187,7 @@ const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
|
|
|
187
187
|
* This replaces the `returnFocus` prop of `react-focus-lock`.
|
|
188
188
|
* The logic is done in this effect instead because `elementRefToFocusOnClose.current` is not available until after the `Overlay` is unmounted.
|
|
189
189
|
*/
|
|
190
|
-
elementUsedToOpenModal === null || elementUsedToOpenModal === void 0
|
|
190
|
+
elementUsedToOpenModal === null || elementUsedToOpenModal === void 0 || elementUsedToOpenModal.focus();
|
|
191
191
|
}
|
|
192
192
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
193
193
|
}, [isInDOM]);
|
|
@@ -207,7 +207,7 @@ const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
|
|
|
207
207
|
onDismiss: onDismiss
|
|
208
208
|
}, /*#__PURE__*/React__default.createElement(Dialog, _extends({}, rest, {
|
|
209
209
|
onAnimationEnd: e => {
|
|
210
|
-
externalOnAnimationEnd === null || externalOnAnimationEnd === void 0
|
|
210
|
+
externalOnAnimationEnd === null || externalOnAnimationEnd === void 0 || externalOnAnimationEnd(e);
|
|
211
211
|
if (!open) setIsInDOM(false);
|
|
212
212
|
},
|
|
213
213
|
maxSize: maxSize,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"backdrop":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._LD1Ue{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._LD1Ue,._M9VIT{display:flex;overflow:auto}._M9VIT{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(._35K9h)._u0aCk{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._35K9h)._u0aCk{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._35K9h)._Q5XY-{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._35K9h)._Q5XY-{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._35K9h)._Q5XY-{max-width:700px}}:not(._35K9h)._xyiag{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._35K9h)._xyiag{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._35K9h)._xyiag{max-width:700px}}@media screen and (min-width:1024px){:not(._35K9h)._xyiag{max-width:1000px}}:not(._35K9h)._KGVm1{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._35K9h)._KGVm1{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._35K9h)._KGVm1{max-width:700px}}@media screen and (min-width:1024px){:not(._35K9h)._KGVm1{max-width:1000px}}@media screen and (min-width:1632px){:not(._35K9h)._KGVm1{max-width:1600px;max-height:calc(100vh - 32px)}}._35K9h{min-width:200px;width:calc(100% - 48px)}._35K9h,._35K9h._u0aCk{max-height:calc(100vh - 80px)}._35K9h._u0aCk{max-width:480px;border-radius:8px}._35K9h._Q5XY-{max-width:700px}._35K9h._xyiag{max-width:1000px}._35K9h._KGVm1{max-width:1600px;max-height:calc(100vh - 32px)}._M0RAm{height:calc(100vh - 80px)}@media screen and (max-width:479px){._M0RAm{height:100vh}}@media screen and (min-width:1632px){._M0RAm{height:calc(100vh - 32px)}}._JwRZS{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}._32eTR{padding-right:64px}._YYIJb{position:absolute;top:14px;right:14px}._jUAsV{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._FLISF,._jUAsV{padding:20px 24px}._FLISF{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._FLISF>*{margin:0 4px}._FLISF>:first-child{margin-left:0}._FLISF>:last-child{margin-right:0}@keyframes _eKbLI{0%{opacity:0}}._eKbLI{animation:_eKbLI ease-in both;animation-duration:.2s}@keyframes _LrFvH{to{opacity:0}}._LrFvH{animation:_LrFvH ease-out both;animation-duration:.2s}@keyframes _8LsKh{0%{transform:scale3d(.7,.7,.7);opacity:0}}._8LsKh{animation:_8LsKh both;animation-duration:.2s}@keyframes _tIKmk{to{transform:scale3d(.7,.7,.7);opacity:0}}._tIKmk{animation:_tIKmk both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"backdrop":"_LD1Ue","modal":"_M9VIT","responsive":"_35K9h","dialogSmall":"_u0aCk","dialogMedium":"_Q5XY-","dialogLarge":"_xyiag","dialogExtraLarge":"_KGVm1","growToMaxHeight":"_M0RAm","modalHeader":"_JwRZS","modalHeaderWithCloseButton":"_32eTR","modalHeaderCloseButton":"_YYIJb","modalBody":"_jUAsV","modalFooter":"_FLISF","fadeEnter":"_eKbLI","fadeLeave":"_LrFvH","zoomEnter":"_8LsKh","zoomLeave":"_tIKmk"};
|
|
5
|
+
var stylesheet="._LD1Ue{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._LD1Ue,._M9VIT{display:flex;overflow:auto}._M9VIT{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(._35K9h)._u0aCk{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._35K9h)._u0aCk{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._35K9h)._Q5XY-{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._35K9h)._Q5XY-{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._35K9h)._Q5XY-{max-width:700px}}:not(._35K9h)._xyiag{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._35K9h)._xyiag{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._35K9h)._xyiag{max-width:700px}}@media screen and (min-width:1024px){:not(._35K9h)._xyiag{max-width:1000px}}:not(._35K9h)._KGVm1{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._35K9h)._KGVm1{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._35K9h)._KGVm1{max-width:700px}}@media screen and (min-width:1024px){:not(._35K9h)._KGVm1{max-width:1000px}}@media screen and (min-width:1632px){:not(._35K9h)._KGVm1{max-width:1600px;max-height:calc(100vh - 32px)}}._35K9h{min-width:200px;width:calc(100% - 48px)}._35K9h,._35K9h._u0aCk{max-height:calc(100vh - 80px)}._35K9h._u0aCk{max-width:480px;border-radius:8px}._35K9h._Q5XY-{max-width:700px}._35K9h._xyiag{max-width:1000px}._35K9h._KGVm1{max-width:1600px;max-height:calc(100vh - 32px)}._M0RAm{height:calc(100vh - 80px)}@media screen and (max-width:479px){._M0RAm{height:100vh}}@media screen and (min-width:1632px){._M0RAm{height:calc(100vh - 32px)}}._JwRZS{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}._32eTR{padding-right:64px}._YYIJb{position:absolute;top:14px;right:14px}._jUAsV{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._FLISF,._jUAsV{padding:20px 24px}._FLISF{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._FLISF>*{margin:0 4px}._FLISF>:first-child{margin-left:0}._FLISF>:last-child{margin-right:0}@keyframes _eKbLI{0%{opacity:0}}._eKbLI{animation:_eKbLI ease-in both;animation-duration:.2s}@keyframes _LrFvH{to{opacity:0}}._LrFvH{animation:_LrFvH ease-out both;animation-duration:.2s}@keyframes _8LsKh{0%{transform:scale3d(.7,.7,.7);opacity:0}}._8LsKh{animation:_8LsKh both;animation-duration:.2s}@keyframes _tIKmk{to{transform:scale3d(.7,.7,.7);opacity:0}}._tIKmk{animation:_tIKmk both;animation-duration:.2s}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -88,7 +88,7 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
88
88
|
useDidUpdate(() => {
|
|
89
89
|
if (isSubmenu) {
|
|
90
90
|
var _onIsOpenChangeRef$cu;
|
|
91
|
-
(_onIsOpenChangeRef$cu = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu === void 0
|
|
91
|
+
(_onIsOpenChangeRef$cu = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu === void 0 || _onIsOpenChangeRef$cu.call(onIsOpenChangeRef, externalIsOpen);
|
|
92
92
|
}
|
|
93
93
|
}, [externalIsOpen, onIsOpenChangeRef, isSubmenu]);
|
|
94
94
|
// Call onIsOpenChange if open on mount or on unmount
|
|
@@ -96,14 +96,14 @@ const BaseMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
96
96
|
if (isSubmenu) {
|
|
97
97
|
if (externalIsOpenRef.current) {
|
|
98
98
|
var _onIsOpenChangeRef$cu2;
|
|
99
|
-
(_onIsOpenChangeRef$cu2 = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu2 === void 0
|
|
99
|
+
(_onIsOpenChangeRef$cu2 = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu2 === void 0 || _onIsOpenChangeRef$cu2.call(onIsOpenChangeRef, true);
|
|
100
100
|
}
|
|
101
101
|
return () => {
|
|
102
102
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
103
103
|
if (externalIsOpenRef.current) {
|
|
104
104
|
var _onIsOpenChangeRef$cu3;
|
|
105
105
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
106
|
-
(_onIsOpenChangeRef$cu3 = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu3 === void 0
|
|
106
|
+
(_onIsOpenChangeRef$cu3 = onIsOpenChangeRef.current) === null || _onIsOpenChangeRef$cu3 === void 0 || _onIsOpenChangeRef$cu3.call(onIsOpenChangeRef, false);
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"menuBtn":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._vN3L0._vN3L0{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}._vN3L0._vN3L0,._vN3L0._vN3L0 ._oZtO0{display:inline-flex;align-items:center}._vN3L0._vN3L0 ._oZtO0{overflow:hidden;text-overflow:ellipsis}._vN3L0._vN3L0._XB1dt{min-height:26px;height:26px}._vN3L0._vN3L0._2c-nK{color:#32363a}._vN3L0._vN3L0:hover:not([aria-disabled=true]){background-color:#f5f5f5}._vN3L0._vN3L0:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._vN3L0._vN3L0[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._vN3L0._vN3L0[aria-disabled=true]>svg{fill:#515559;opacity:.4}._vN3L0._vN3L0[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._vN3L0._vN3L0._jw0Yp{padding-left:0}._vN3L0._vN3L0._KxbhL{margin-top:4px}._vN3L0._vN3L0 ._h--FU{fill:#515559}._vN3L0._vN3L0 ._h--FU._XB1dt{top:0}._vN3L0._vN3L0 ._h--FU._tawOO{transform:rotate(-180deg)}._7IV5A{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}._7IV5A::-webkit-scrollbar,._7IV5A::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._7IV5A::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._7IV5A::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._7IV5A:hover::-webkit-scrollbar,._7IV5A:hover::-webkit-scrollbar-thumb,._7IV5A[focus-within]::-webkit-scrollbar,._7IV5A[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._7IV5A:focus-within::-webkit-scrollbar,._7IV5A:focus-within::-webkit-scrollbar-thumb,._7IV5A:hover::-webkit-scrollbar,._7IV5A:hover::-webkit-scrollbar-thumb{visibility:visible}._NibuT{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._NibuT[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._NibuT._KVFYJ{background-color:#efefef}._NibuT._nqTBd{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._NibuT._2c-nK{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._NibuT._2c-nK._KVFYJ{background-color:#e4effa}._NibuT._K8IGs{cursor:default}._NibuT:active:not(._dRAmE):not(._2c-nK):not([aria-disabled=true]):not(._K8IGs){background-color:#e8e9e9}._dRAmE{padding-right:32px}._dRAmE ._h--FU{position:absolute;top:8px;right:3px;fill:#515559}._F03Oj{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}._oQLVA{position:absolute;top:13px;left:13px}._H68N9._H68N9{padding-left:32px}._pC-NC{margin:2px 12px 2px 0;flex-shrink:0}._pC-NC._vQvQk>svg{border-color:#0b6ed0}._JV4ow{display:flex;justify-self:center;margin:8px}";
|
|
4
|
+
var styles = {"menuBtn":"_vN3L0","menuBtnLabel":"_oZtO0","small":"_XB1dt","selected":"_2c-nK","unlabelledButton":"_jw0Yp","formLabelled":"_KxbhL","rightIcon":"_h--FU","open":"_tawOO","contentPane":"_7IV5A","menuItem":"_NibuT","active":"_KVFYJ","focus":"_nqTBd","noMenuItems":"_K8IGs","subMenu":"_dRAmE","searchBox":"_F03Oj","searchBoxIcon":"_oQLVA","searchBoxInput":"_H68N9","checkbox":"_pC-NC","highlighted":"_vQvQk","menuSpinner":"_JV4ow"};
|
|
5
|
+
var stylesheet="._vN3L0._vN3L0{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}._vN3L0._vN3L0,._vN3L0._vN3L0 ._oZtO0{display:inline-flex;align-items:center}._vN3L0._vN3L0 ._oZtO0{overflow:hidden;text-overflow:ellipsis}._vN3L0._vN3L0._XB1dt{min-height:26px;height:26px}._vN3L0._vN3L0._2c-nK{color:#32363a}._vN3L0._vN3L0:hover:not([aria-disabled=true]){background-color:#f5f5f5}._vN3L0._vN3L0:focus{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._vN3L0._vN3L0[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._vN3L0._vN3L0[aria-disabled=true]>svg{fill:#515559;opacity:.4}._vN3L0._vN3L0[aria-disabled=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._vN3L0._vN3L0._jw0Yp{padding-left:0}._vN3L0._vN3L0._KxbhL{margin-top:4px}._vN3L0._vN3L0 ._h--FU{fill:#515559}._vN3L0._vN3L0 ._h--FU._XB1dt{top:0}._vN3L0._vN3L0 ._h--FU._tawOO{transform:rotate(-180deg)}._7IV5A{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}._7IV5A::-webkit-scrollbar,._7IV5A::-webkit-scrollbar-thumb{visibility:hidden;width:8px;border-radius:4px}._7IV5A::-webkit-scrollbar{background-color:rgba(0,0,0,.06)}._7IV5A::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.4)}._7IV5A:hover::-webkit-scrollbar,._7IV5A:hover::-webkit-scrollbar-thumb,._7IV5A[focus-within]::-webkit-scrollbar,._7IV5A[focus-within]::-webkit-scrollbar-thumb{visibility:visible}._7IV5A:focus-within::-webkit-scrollbar,._7IV5A:focus-within::-webkit-scrollbar-thumb,._7IV5A:hover::-webkit-scrollbar,._7IV5A:hover::-webkit-scrollbar-thumb{visibility:visible}._NibuT{position:relative;padding:10px 12px;min-height:40px;display:flex;flex-direction:row;align-items:center;cursor:pointer;outline:none;word-break:break-word}._NibuT[aria-disabled=true]{cursor:not-allowed;color:rgba(50,54,58,.65);fill:rgba(50,54,58,.65)}._NibuT._KVFYJ{background-color:#efefef}._NibuT._nqTBd{box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._NibuT._2c-nK{background-color:#ebf3fb;font-weight:500;font-family:\"72Duplex\",\"72\",\"Helvetica Neue\",Helvetica,Arial,sans-serif}._NibuT._2c-nK._KVFYJ{background-color:#e4effa}._NibuT._K8IGs{cursor:default}._NibuT:active:not(._dRAmE):not(._2c-nK):not([aria-disabled=true]):not(._K8IGs){background-color:#e8e9e9}._dRAmE{padding-right:32px}._dRAmE ._h--FU{position:absolute;top:8px;right:3px;fill:#515559}._F03Oj{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}._oQLVA{position:absolute;top:13px;left:13px}._H68N9._H68N9{padding-left:32px}._pC-NC{margin:2px 12px 2px 0;flex-shrink:0}._pC-NC._vQvQk>svg{border-color:#0b6ed0}._JV4ow{display:flex;justify-self:center;margin:8px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -18,8 +18,8 @@ const SelectMenu = /*#__PURE__*/React__default.forwardRef(function SelectMenu(_r
|
|
|
18
18
|
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
19
19
|
args[_key - 1] = arguments[_key];
|
|
20
20
|
}
|
|
21
|
-
onSelectedValueChange === null || onSelectedValueChange === void 0
|
|
22
|
-
onChange === null || onChange === void 0
|
|
21
|
+
onSelectedValueChange === null || onSelectedValueChange === void 0 || onSelectedValueChange(value, ...args);
|
|
22
|
+
onChange === null || onChange === void 0 || onChange(value);
|
|
23
23
|
}
|
|
24
24
|
}, rest));
|
|
25
25
|
});
|