@qualtrics/ui-react 2.25.0 → 2.27.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 +32 -0
- package/dist/__shared/cjs/{index-610a1e02.js → index-88aa3bce.js} +267 -256
- package/dist/__shared/cjs/{index-5b3b3406.js → index-e6893573.js} +23 -3
- 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/Icon/IconTypes.js +5 -0
- 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 +2 -2
- 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/components/AIChatbotIcon.js +6 -0
- package/dist/icons/components/LinesIcon.js +6 -0
- package/dist/icons/components/RobotConversationalIcon.js +6 -0
- package/dist/icons/components/ScatterPlotIcon.js +6 -0
- package/dist/icons/components/UnmoderatedUserTestingIcon.js +6 -0
- package/dist/icons/index.d.ts +10 -0
- package/dist/icons/index.es.js +5 -0
- package/dist/icons/index.js +6 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +36 -8
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- 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/CollectionGrid/CollectionGrid.js +34 -0
- package/dist/next/CollectionGrid/CollectionGridItem.js +18 -0
- package/dist/next/CollectionGrid/index.js +2 -0
- 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/LayoutGrid/LayoutGrid.js +38 -0
- package/dist/next/LayoutGrid/LayoutGridItem.js +23 -0
- package/dist/next/LayoutGrid/index.js +2 -0
- 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} +61 -24
- package/dist/next/Menu/Menu.js +19 -24
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuContext.js +5 -1
- package/dist/next/Menu/MenuItem.js +21 -14
- package/dist/next/Menu/MenuPane.js +73 -54
- package/dist/next/Menu/PaneChildren.js +47 -0
- package/dist/next/Menu/SubMenu.js +57 -39
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +10 -6
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SubSelect.js +2 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/Stack/Stack.js +1 -18
- 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 +57 -3
- package/dist/next/index.es.js +6 -0
- package/dist/next/index.js +614 -268
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +30 -0
- package/dist/utils/GridChildrenWrapper/index.js +1 -0
- 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 +3 -1
- package/next/package.json +4 -2
- package/package.json +5 -3
- /package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +0 -0
|
@@ -102,7 +102,7 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
102
102
|
const selectHighlightedItem = e => {
|
|
103
103
|
var _option$handleSelect;
|
|
104
104
|
const option = options[highlightedIndex];
|
|
105
|
-
option === null || option === void 0 || (_option$handleSelect = option.handleSelect) === null || _option$handleSelect === void 0
|
|
105
|
+
option === null || option === void 0 || (_option$handleSelect = option.handleSelect) === null || _option$handleSelect === void 0 || _option$handleSelect.call(option, e);
|
|
106
106
|
};
|
|
107
107
|
useClickOutside([buttonRef, listRef], handleClose);
|
|
108
108
|
useEffect(() => {
|
|
@@ -125,7 +125,7 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
125
125
|
var _buttonRef$current;
|
|
126
126
|
setValue(newValue);
|
|
127
127
|
handleClose();
|
|
128
|
-
(_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0
|
|
128
|
+
(_buttonRef$current = buttonRef.current) === null || _buttonRef$current === void 0 || _buttonRef$current.focus();
|
|
129
129
|
}
|
|
130
130
|
}, [isMultiSelect, handleClose, setValue]);
|
|
131
131
|
const onKeyDownButton = e => {
|
|
@@ -205,13 +205,13 @@ const Dropdown = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
205
205
|
// close, focus button, and don't let event bubble up
|
|
206
206
|
e.stopPropagation();
|
|
207
207
|
handleClose();
|
|
208
|
-
(_buttonRef$current2 = buttonRef.current) === null || _buttonRef$current2 === void 0
|
|
208
|
+
(_buttonRef$current2 = buttonRef.current) === null || _buttonRef$current2 === void 0 || _buttonRef$current2.focus();
|
|
209
209
|
e.preventDefault(); // prevent Safari from exiting full-screen mode
|
|
210
210
|
break;
|
|
211
211
|
case 'Tab':
|
|
212
212
|
// close and focus next focusable element
|
|
213
213
|
handleClose();
|
|
214
|
-
(_buttonRef$current3 = buttonRef.current) === null || _buttonRef$current3 === void 0
|
|
214
|
+
(_buttonRef$current3 = buttonRef.current) === null || _buttonRef$current3 === void 0 || _buttonRef$current3.focus();
|
|
215
215
|
break;
|
|
216
216
|
case 'PageUp':
|
|
217
217
|
case 'Home':
|
|
@@ -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 = "._fM8QO{max-width:100%;position:relative;display:inline-block}._N-qxQ{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}._N-qxQ:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._N-qxQ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._N-qxQ:disabled,._N-qxQ[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._N-qxQ._-igSg{border-color:#b00}._N-qxQ._-igSg:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._N-qxQ._9nEB8{min-width:120px;padding:0 4px 0 12px}._N-qxQ._T1TLN{margin-top:4px}._N-qxQ._jhpX3:not([aria-disabled=true]):not(:disabled){color:#32363a}._N-qxQ ._KjfXa{min-height:10px}._N-qxQ ._KjfXa._NKDzo{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._N-qxQ ._KjfXa._9QYK4{display:inline-flex;align-items:center}._N-qxQ ._nqb2W{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._N-qxQ ._nqb2W._tjJop{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._N-qxQ ._nqb2W._-2eFs{transform:rotate(-180deg)}._9fFio[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._055xr{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}._JS-Ja{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}._jXhBu{fill:#515559}._JsOS9{margin:2px 12px 2px 0}._JsOS9._3njSz>svg{border-color:#0b6ed0}._ih0M-{width:100%}";
|
|
4
|
+
var styles = {"container":"_fM8QO","button":"_N-qxQ","invalid":"_-igSg","hasText":"_9nEB8","labelled":"_T1TLN","selected":"_jhpX3","buttonLabel":"_KjfXa","isString":"_NKDzo","isNode":"_9QYK4","icon":"_nqb2W","disabled":"_tjJop","open":"_-2eFs","option":"_9fFio","search":"_055xr","emptyOption":"_JS-Ja","searchIcon":"_jXhBu","checkbox":"_JsOS9","highlighted":"_3njSz","searchInput":"_ih0M-"};
|
|
5
|
+
var stylesheet="._fM8QO{max-width:100%;position:relative;display:inline-block}._N-qxQ{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}._N-qxQ:hover:not([aria-disabled=true]){cursor:pointer;background-color:#f5f5f5}._N-qxQ:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa}._N-qxQ:disabled,._N-qxQ[aria-disabled=true]{color:#74777a;border-color:#e5e5e5;cursor:not-allowed}._N-qxQ._-igSg{border-color:#b00}._N-qxQ._-igSg:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000}._N-qxQ._9nEB8{min-width:120px;padding:0 4px 0 12px}._N-qxQ._T1TLN{margin-top:4px}._N-qxQ._jhpX3:not([aria-disabled=true]):not(:disabled){color:#32363a}._N-qxQ ._KjfXa{min-height:10px}._N-qxQ ._KjfXa._NKDzo{line-height:20px;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._N-qxQ ._KjfXa._9QYK4{display:inline-flex;align-items:center}._N-qxQ ._nqb2W{height:24px;width:24px;border-radius:4px;fill:#515559;flex-shrink:0;cursor:pointer}._N-qxQ ._nqb2W._tjJop{border-color:#e5e5e5;fill:#9d9fa1;opacity:.4;cursor:not-allowed}._N-qxQ ._nqb2W._-2eFs{transform:rotate(-180deg)}._9fFio[aria-disabled=true]{cursor:not-allowed;color:rgba(81,85,89,.65);fill:#9d9fa1}._055xr{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}._JS-Ja{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}._jXhBu{fill:#515559}._JsOS9{margin:2px 12px 2px 0}._JsOS9._3njSz>svg{border-color:#0b6ed0}._ih0M-{width:100%}";
|
|
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 };
|
|
@@ -82,7 +82,7 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
82
82
|
const isInvalid = isInvalidProp !== undefined ? isInvalidProp : dropdownIsInvalid;
|
|
83
83
|
const handleClick = e => {
|
|
84
84
|
if (disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled) return;
|
|
85
|
-
onClick === null || onClick === void 0
|
|
85
|
+
onClick === null || onClick === void 0 || onClick(e);
|
|
86
86
|
// Needed because some browsers don't focus on click
|
|
87
87
|
e.currentTarget.focus();
|
|
88
88
|
setIsOpen(currentIsOpen => {
|
|
@@ -92,7 +92,7 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
92
92
|
};
|
|
93
93
|
const handleKeyDown = e => {
|
|
94
94
|
if (disabled !== null && disabled !== void 0 ? disabled : dropdownAriaDisabled) return;
|
|
95
|
-
onKeyDown === null || onKeyDown === void 0
|
|
95
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
96
96
|
onKeyDownButton(e);
|
|
97
97
|
};
|
|
98
98
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, children ? /*#__PURE__*/React__default.cloneElement(children, {
|
|
@@ -110,13 +110,13 @@ const DropdownButton = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
110
110
|
id: buttonId,
|
|
111
111
|
onFocus: e => {
|
|
112
112
|
var _children$props5, _children$props5$onFo;
|
|
113
|
-
(_children$props5 = children.props) === null || _children$props5 === void 0 || (_children$props5$onFo = _children$props5.onFocus) === null || _children$props5$onFo === void 0
|
|
114
|
-
onFocus === null || onFocus === void 0
|
|
113
|
+
(_children$props5 = children.props) === null || _children$props5 === void 0 || (_children$props5$onFo = _children$props5.onFocus) === null || _children$props5$onFo === void 0 || _children$props5$onFo.call(_children$props5, e);
|
|
114
|
+
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
115
115
|
},
|
|
116
116
|
onBlur: e => {
|
|
117
117
|
var _children$props6, _children$props6$onBl;
|
|
118
|
-
(_children$props6 = children.props) === null || _children$props6 === void 0 || (_children$props6$onBl = _children$props6.onBlur) === null || _children$props6$onBl === void 0
|
|
119
|
-
onBlur === null || onBlur === void 0
|
|
118
|
+
(_children$props6 = children.props) === null || _children$props6 === void 0 || (_children$props6$onBl = _children$props6.onBlur) === null || _children$props6$onBl === void 0 || _children$props6$onBl.call(_children$props6, e);
|
|
119
|
+
onBlur === null || onBlur === void 0 || onBlur(e);
|
|
120
120
|
},
|
|
121
121
|
onKeyDown: wrapEvent((_children$props7 = children.props) === null || _children$props7 === void 0 ? void 0 : _children$props7.onKeyDown, handleKeyDown),
|
|
122
122
|
onClick: wrapEvent((_children$props8 = children.props) === null || _children$props8 === void 0 ? void 0 : _children$props8.onClick, handleClick)
|
|
@@ -81,7 +81,7 @@ const DropdownList = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
81
81
|
"aria-labelledby": ariaLabelledby,
|
|
82
82
|
hidden: !isOpen,
|
|
83
83
|
onKeyDown: e => {
|
|
84
|
-
onKeyDown === null || onKeyDown === void 0
|
|
84
|
+
onKeyDown === null || onKeyDown === void 0 || onKeyDown(e);
|
|
85
85
|
onKeyDownList(e);
|
|
86
86
|
},
|
|
87
87
|
style: {
|
|
@@ -43,7 +43,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
43
43
|
} = useDropdownHeaderContext();
|
|
44
44
|
const isVisible = useMemo(() => isSearchFilteringDisabled || !label || !searchValue || typeof label === 'string' && label.toLowerCase().includes(searchValue.toLowerCase()), [isSearchFilteringDisabled, label, searchValue]);
|
|
45
45
|
useEffect(() => {
|
|
46
|
-
setVisibleChildIds === null || setVisibleChildIds === void 0
|
|
46
|
+
setVisibleChildIds === null || setVisibleChildIds === void 0 || setVisibleChildIds(visibleChildIds => {
|
|
47
47
|
const duplicateSet = new Set(visibleChildIds);
|
|
48
48
|
if (isVisible) {
|
|
49
49
|
return duplicateSet.add(value);
|
|
@@ -80,7 +80,7 @@ const DropdownOption = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
80
80
|
listRef.current.scrollTop = internalRef.current.offsetTop - (isSearchable ? searchHeight : 0);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
(_internalRef$current = internalRef.current) === null || _internalRef$current === void 0
|
|
83
|
+
(_internalRef$current = internalRef.current) === null || _internalRef$current === void 0 || _internalRef$current.focus({
|
|
84
84
|
preventScroll: true
|
|
85
85
|
});
|
|
86
86
|
}
|
|
@@ -42,14 +42,14 @@ const DropdownSearch = /*#__PURE__*/React__default.forwardRef((_, ref) => {
|
|
|
42
42
|
// for keyboard navigation
|
|
43
43
|
if (isHighlighted) {
|
|
44
44
|
var _inputRef$current2;
|
|
45
|
-
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0
|
|
45
|
+
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 || _inputRef$current2.focus();
|
|
46
46
|
}
|
|
47
47
|
}, [isHighlighted]);
|
|
48
48
|
useEffect(() => {
|
|
49
49
|
// for initial open with mouse
|
|
50
50
|
if (isHighlighted && isOpen) {
|
|
51
51
|
var _inputRef$current3;
|
|
52
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0
|
|
52
|
+
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 || _inputRef$current3.focus();
|
|
53
53
|
}
|
|
54
54
|
// Omitted `isHighlighted` because we don't want to focus the input on mouse enter.
|
|
55
55
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -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 = "._fxQlW{position:relative}._fxQlW[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._fxQlW:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._QV-Yb{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._-CaTN{margin-left:16px;font-size:14px;color:#32363a}._-CaTN ._IPl-m{margin-right:16px}";
|
|
4
|
+
var filePickerStyles = {"container":"_fxQlW","fileInput":"_QV-Yb","fileDetails":"_-CaTN","fileName":"_IPl-m"};
|
|
5
|
+
var stylesheet="._fxQlW{position:relative}._fxQlW[focus-within] button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._fxQlW:focus-within button{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._QV-Yb{opacity:0;position:absolute;height:36px;width:100%;left:0;z-index:-1}._-CaTN{margin-left:16px;font-size:14px;color:#32363a}._-CaTN ._IPl-m{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 = "._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}";
|
|
4
|
+
var styles = {"caption":"_aAJui","helperText":"_XBmAe","errorText":"_E5Nbu","errorIcon":"_yov2M","readOnlyIcon":"_gR0ko"};
|
|
5
|
+
var stylesheet="._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}";
|
|
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 = "._CLX9U{display:flex;flex-direction:column;align-items:flex-start}._8ueK6{margin-top:6px;max-width:100%}._8ueK6 *+*{margin-top:4px}";
|
|
4
|
+
var styles = {"formField":"_CLX9U","captionContainer":"_8ueK6"};
|
|
5
|
+
var stylesheet="._CLX9U{display:flex;flex-direction:column;align-items:flex-start}._8ueK6{margin-top:6px;max-width:100%}._8ueK6 *+*{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 = "._HCeVg{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _LrJfq{0%{transform:scale3d(.7,.7,.7);opacity:0}}._CiXSs{animation:_LrJfq both;animation-duration:.2s}@keyframes _W54-1{to{transform:scale3d(.7,.7,.7);opacity:0}}._K7y5p{animation:_W54-1 both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"dialog":"_HCeVg","transitionIn":"_CiXSs","showAnimation":"_LrJfq","transitionOut":"_K7y5p","hideAnimation":"_W54-1"};
|
|
5
|
+
var stylesheet="._HCeVg{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _LrJfq{0%{transform:scale3d(.7,.7,.7);opacity:0}}._CiXSs{animation:_LrJfq both;animation-duration:.2s}@keyframes _W54-1{to{transform:scale3d(.7,.7,.7);opacity:0}}._K7y5p{animation:_W54-1 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 };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
var IconTypes = {
|
|
3
3
|
ABC: 'ABC',
|
|
4
4
|
AI: 'AI',
|
|
5
|
+
AIChatbot: 'AIChatbot',
|
|
5
6
|
Accessibility: 'Accessibility',
|
|
6
7
|
Account: 'Account',
|
|
7
8
|
AccountsTable: 'AccountsTable',
|
|
@@ -253,6 +254,7 @@ var IconTypes = {
|
|
|
253
254
|
LightBulb: 'LightBulb',
|
|
254
255
|
LightningBolt: 'LightningBolt',
|
|
255
256
|
LineChart: 'LineChart',
|
|
257
|
+
Lines: 'Lines',
|
|
256
258
|
ListBullets: 'ListBullets',
|
|
257
259
|
ListChecked: 'ListChecked',
|
|
258
260
|
ListNumbers: 'ListNumbers',
|
|
@@ -361,10 +363,12 @@ var IconTypes = {
|
|
|
361
363
|
RichTextEditor: 'RichTextEditor',
|
|
362
364
|
Risk: 'Risk',
|
|
363
365
|
Robot: 'Robot',
|
|
366
|
+
RobotConversational: 'RobotConversational',
|
|
364
367
|
Roles: 'Roles',
|
|
365
368
|
SMS: 'SMS',
|
|
366
369
|
SatisfactionCharts: 'SatisfactionCharts',
|
|
367
370
|
Save: 'Save',
|
|
371
|
+
ScatterPlot: 'ScatterPlot',
|
|
368
372
|
Scheduled: 'Scheduled',
|
|
369
373
|
SchemaData: 'SchemaData',
|
|
370
374
|
SchemaEditor: 'SchemaEditor',
|
|
@@ -468,6 +472,7 @@ var IconTypes = {
|
|
|
468
472
|
UniqueLink: 'UniqueLink',
|
|
469
473
|
Unlink: 'Unlink',
|
|
470
474
|
Unlock: 'Unlock',
|
|
475
|
+
UnmoderatedUserTesting: 'UnmoderatedUserTesting',
|
|
471
476
|
Unpin: 'Unpin',
|
|
472
477
|
UpDown: 'UpDown',
|
|
473
478
|
Upload: 'Upload',
|
|
@@ -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 = "._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}";
|
|
4
|
+
var iconButtonStyles = {"button":"_Dd2JG","disabled":"_-9rHh"};
|
|
5
|
+
var stylesheet="._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}";
|
|
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 = "._mFf-l{display:inline-block}._o3h-H{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}._o3h-H::-moz-selection{background-color:rgba(11,110,208,.11)}._o3h-H::selection{background-color:rgba(11,110,208,.11)}._o3h-H:focus,._o3h-H:hover{background-color:#f5f5f5}._o3h-H:focus{border:2px solid #0a3f88;padding:3px}._o3h-H:focus._Yflz-{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":"_mFf-l","inlineInput":"_o3h-H","isEditing":"_Yflz-"};
|
|
5
|
+
var stylesheet="._mFf-l{display:inline-block}._o3h-H{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}._o3h-H::-moz-selection{background-color:rgba(11,110,208,.11)}._o3h-H::selection{background-color:rgba(11,110,208,.11)}._o3h-H:focus,._o3h-H:hover{background-color:#f5f5f5}._o3h-H:focus{border:2px solid #0a3f88;padding:3px}._o3h-H:focus._Yflz-{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 = "._IyL7i{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}._IyL7i::-moz-placeholder{color:#515559;opacity:1}._IyL7i::placeholder{color:#515559;opacity:1}._IyL7i:hover{cursor:pointer;background-color:#f5f5f5}._IyL7i:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._IyL7i._ANKCo{border-color:#b00}._IyL7i._ANKCo:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._IyL7i:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._IyL7i:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._IyL7i:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._IyL7i._MUt7T{height:auto}._IyL7i._MUt7T::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._IyL7i._z8rDW{display:block;width:100%}._IyL7i._0W1pc{padding:4px 8px}input._IyL7i._0W1pc{height:26px;min-height:26px}[type=number]._IyL7i{-moz-appearance:textfield}[type=number]._IyL7i::-webkit-inner-spin-button,[type=number]._IyL7i::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._VKXmU{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._VKXmU:hover{cursor:pointer}._VKXmU._AN7Q2{color:#0b6ed0}._ebJY1{margin-top:4px}";
|
|
4
|
+
var styles = {"input":"_IyL7i","invalid":"_ANKCo","multiline":"_MUt7T","full":"_z8rDW","small":"_0W1pc","label":"_VKXmU","focused":"_AN7Q2","wrappedInput":"_ebJY1"};
|
|
5
|
+
var stylesheet="._IyL7i{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}._IyL7i::-moz-placeholder{color:#515559;opacity:1}._IyL7i::placeholder{color:#515559;opacity:1}._IyL7i:hover{cursor:pointer;background-color:#f5f5f5}._IyL7i:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._IyL7i._ANKCo{border-color:#b00}._IyL7i._ANKCo:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._IyL7i:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._IyL7i:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._IyL7i:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._IyL7i._MUt7T{height:auto}._IyL7i._MUt7T::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._IyL7i._z8rDW{display:block;width:100%}._IyL7i._0W1pc{padding:4px 8px}input._IyL7i._0W1pc{height:26px;min-height:26px}[type=number]._IyL7i{-moz-appearance:textfield}[type=number]._IyL7i::-webkit-inner-spin-button,[type=number]._IyL7i::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._VKXmU{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._VKXmU:hover{cursor:pointer}._VKXmU._AN7Q2{color:#0b6ed0}._ebJY1{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 = "._ttqXk{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}._ttqXk._HENan{height:26px;min-height:26px;padding:5px 8px}._qMGFQ{display:flex;align-items:stretch}._qMGFQ._eS8lL{width:100%}._qMGFQ ._0UoD2{margin:0;position:relative;flex-shrink:0;z-index:10}._qMGFQ ._0UoD2: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}._qMGFQ ._0UoD2:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._qMGFQ ._0UoD2:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._qMGFQ ._0UoD2:last-child,._qMGFQ ._0UoD2:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._qMGFQ ._0UoD2:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._qMGFQ ._0UoD2._91v8C{flex-shrink:1;min-width:40px;z-index:0}._qMGFQ ._0UoD2._91v8C._eS8lL{flex-grow:1}._qMGFQ ._0UoD2:focus{z-index:20}";
|
|
4
|
+
var styles = {"addon":"_ttqXk","small":"_HENan","inputGroup":"_qMGFQ","full":"_eS8lL","inputGroupElement":"_0UoD2","input":"_91v8C"};
|
|
5
|
+
var stylesheet="._ttqXk{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}._ttqXk._HENan{height:26px;min-height:26px;padding:5px 8px}._qMGFQ{display:flex;align-items:stretch}._qMGFQ._eS8lL{width:100%}._qMGFQ ._0UoD2{margin:0;position:relative;flex-shrink:0;z-index:10}._qMGFQ ._0UoD2: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}._qMGFQ ._0UoD2:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._qMGFQ ._0UoD2:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._qMGFQ ._0UoD2:last-child,._qMGFQ ._0UoD2:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._qMGFQ ._0UoD2:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._qMGFQ ._0UoD2._91v8C{flex-shrink:1;min-width:40px;z-index:0}._qMGFQ ._0UoD2._91v8C._eS8lL{flex-grow:1}._qMGFQ ._0UoD2: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 = "._H9rpG{font-size:14px}._jSjie{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._hEpDs{color:#0b6ed0}";
|
|
4
|
+
var styles = {"label":"_H9rpG","control":"_jSjie","focused":"_hEpDs"};
|
|
5
|
+
var stylesheet="._H9rpG{font-size:14px}._jSjie{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._hEpDs{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 = "._i96UG{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}._i96UG:active:focus,._i96UG:focus{outline:none}._i96UG:visited{color:#0854a1}._i96UG:hover{color:#085caf}._i96UG:active{color:#0854a1}._i96UG.focus-visible,._i96UG:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"link":"_i96UG"};
|
|
5
|
+
var stylesheet="._i96UG{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}._i96UG:active:focus,._i96UG:focus{outline:none}._i96UG:visited{color:#0854a1}._i96UG:hover{color:#085caf}._i96UG:active{color:#0854a1}._i96UG.focus-visible,._i96UG: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 = "._uCwW0{position:relative;display:inline-block}._uCwW0._D5C98{min-height:20px;min-width:20px}._uCwW0._ZX1aT{min-height:25px;min-width:25px}._uCwW0._K4slw{min-height:40px;min-width:40px}._uCwW0._0cPQt{min-height:64px;min-width:64px}._uCwW0 ._xS4hH{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._uCwW0 ._xS4hH._lDVf5{visibility:hidden}._uCwW0 ._xS4hH div{position:absolute;transform:rotate(20deg)}._uCwW0 ._xS4hH div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_xS4hH .9s linear infinite}._uCwW0 ._xS4hH 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}._uCwW0 ._xS4hH div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._uCwW0 ._xS4hH div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._uCwW0 ._xS4hH div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._uCwW0 ._xS4hH div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._uCwW0 ._xS4hH div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._uCwW0 ._xS4hH div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._uCwW0 ._xS4hH div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._uCwW0 ._xS4hH div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._uCwW0 ._xS4hH div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._uCwW0 ._0cPQt div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._uCwW0 ._D5C98 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._uCwW0 ._ZX1aT div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._uCwW0 ._Ja4ov div div:nth-child(-n+9):after{background:#fff}._uCwW0 ._EPrUM{width:100%;height:100%}._uCwW0 ._EPrUM._PFJ3-{pointer-events:none}._uCwW0 ._EPrUM._lDVf5{opacity:0}._uCwW0 ._EPrUM._WrFk6{opacity:.5}@keyframes _xS4hH{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_uCwW0","xs":"_D5C98","small":"_ZX1aT","medium":"_K4slw","large":"_0cPQt","spinnerComponent":"_xS4hH","hide":"_lDVf5","inverted":"_Ja4ov","spinnerContent":"_EPrUM","disablePointerEvents":"_PFJ3-","fade":"_WrFk6"};
|
|
5
|
+
var stylesheet="._uCwW0{position:relative;display:inline-block}._uCwW0._D5C98{min-height:20px;min-width:20px}._uCwW0._ZX1aT{min-height:25px;min-width:25px}._uCwW0._K4slw{min-height:40px;min-width:40px}._uCwW0._0cPQt{min-height:64px;min-width:64px}._uCwW0 ._xS4hH{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._uCwW0 ._xS4hH._lDVf5{visibility:hidden}._uCwW0 ._xS4hH div{position:absolute;transform:rotate(20deg)}._uCwW0 ._xS4hH div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_xS4hH .9s linear infinite}._uCwW0 ._xS4hH 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}._uCwW0 ._xS4hH div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._uCwW0 ._xS4hH div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._uCwW0 ._xS4hH div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._uCwW0 ._xS4hH div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._uCwW0 ._xS4hH div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._uCwW0 ._xS4hH div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._uCwW0 ._xS4hH div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._uCwW0 ._xS4hH div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._uCwW0 ._xS4hH div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._uCwW0 ._0cPQt div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._uCwW0 ._D5C98 div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._uCwW0 ._ZX1aT div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._uCwW0 ._Ja4ov div div:nth-child(-n+9):after{background:#fff}._uCwW0 ._EPrUM{width:100%;height:100%}._uCwW0 ._EPrUM._PFJ3-{pointer-events:none}._uCwW0 ._EPrUM._lDVf5{opacity:0}._uCwW0 ._EPrUM._WrFk6{opacity:.5}@keyframes _xS4hH{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 = "._Aaucd{width:100%}._3LaKB{display:flex;align-items:center}._PAXoH{display:flex;flex-wrap:wrap;grid-gap:4px}._PAXoH._VRcU- :nth-last-child(2){margin-right:42px}._ZTExg{position:relative;padding-left:32px;padding-top:16px}._fZg4T ._ZTExg{padding-top:0;padding-left:16px}._fZg4T ._ZTExg+._ZTExg{margin-top:16px}._Rcqye{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}._fZg4T ._ZTExg:first-of-type ._Rcqye{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._fZg4T ._Rcqye{top:-16px;left:0}._fZg4T ._ZTExg:not(:first-of-type):not(:last-of-type) ._Rcqye{border-bottom-left-radius:0}._5Xey3{margin-left:-46px}._9Usmq{margin:0 2px 0 4px}._9Usmq.focus-visible,._9Usmq:focus-visible{outline-width:2px}._F7n2m{margin-left:4px}";
|
|
4
|
+
var styles = {"set":"_Aaucd","setWrapper":"_3LaKB","condition":"_PAXoH","readOnly":"_VRcU-","branch":"_ZTExg","fixedSet":"_fZg4T","connection":"_Rcqye","conditionControlsContainer":"_5Xey3","controls":"_9Usmq","controlMenuItem":"_F7n2m"};
|
|
5
|
+
var stylesheet="._Aaucd{width:100%}._3LaKB{display:flex;align-items:center}._PAXoH{display:flex;flex-wrap:wrap;grid-gap:4px}._PAXoH._VRcU- :nth-last-child(2){margin-right:42px}._ZTExg{position:relative;padding-left:32px;padding-top:16px}._fZg4T ._ZTExg{padding-top:0;padding-left:16px}._fZg4T ._ZTExg+._ZTExg{margin-top:16px}._Rcqye{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}._fZg4T ._ZTExg:first-of-type ._Rcqye{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._fZg4T ._Rcqye{top:-16px;left:0}._fZg4T ._ZTExg:not(:first-of-type):not(:last-of-type) ._Rcqye{border-bottom-left-radius:0}._5Xey3{margin-left:-46px}._9Usmq{margin:0 2px 0 4px}._9Usmq.focus-visible,._9Usmq:focus-visible{outline-width:2px}._F7n2m{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 };
|