@qualtrics/ui-react 2.20.0 → 2.22.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 +17 -33
- package/dist/__shared/cjs/{index-90d4069b.js → index-025620bf.js} +718 -673
- package/dist/__shared/cjs/{index-579c4690.js → index-41a013d2.js} +4 -4
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Accordion/AccordionHeader.js +4 -4
- package/dist/components/Accordion/AccordionPanel.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +2 -2
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +11 -11
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +12 -16
- package/dist/components/ColorPicker/ColorPicker.js +15 -9
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/ColorPickerFlyout.js +9 -4
- package/dist/components/ColorPicker/ColorPickerFlyoutInputs.js +8 -6
- package/dist/components/ColorPicker/Hue.js +3 -9
- package/dist/components/ColorPicker/Palette.js +13 -9
- package/dist/components/ColorPicker/Saturation.js +9 -17
- package/dist/components/ColorPicker/utils/hexToRgbaString.js +3 -2
- package/dist/components/ColorPicker/utils/rgbToHex.js +1 -1
- package/dist/components/ColorPicker/utils/validateHex.js +10 -9
- package/dist/components/Combobox/Combobox.js +54 -31
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxHeader.js +1 -1
- package/dist/components/Combobox/ComboboxIcon.js +3 -2
- package/dist/components/Combobox/ComboboxInput.js +4 -4
- package/dist/components/Combobox/ComboboxList.js +2 -2
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/ChildIndexContext/reach-descendants.js +5 -2
- package/dist/components/Dropdown/Dropdown.js +14 -14
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +23 -19
- package/dist/components/Dropdown/DropdownList.js +4 -4
- package/dist/components/Dropdown/DropdownOption.js +5 -7
- package/dist/components/Dropdown/DropdownSearch.js +12 -9
- package/dist/components/FilePicker/FilePicker.js +13 -13
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField.js +2 -2
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +5 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/Icon.js +2 -2
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +12 -9
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input.js +1 -1
- 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/LoadingSpinner.js +1 -1
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/ConditionSet.js +5 -5
- package/dist/components/LogicEditor/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/LogicEditor/utils.js +2 -1
- package/dist/components/Modal/Modal.js +14 -13
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +41 -30
- 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 +19 -15
- package/dist/components/NewMenu/parts/MenuItem.js +1 -1
- package/dist/components/NumberStepper/NumberStepper.js +7 -6
- 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 +5 -5
- package/dist/components/Pagination/PaginationPageInput.js +11 -9
- package/dist/components/Pagination/PaginationPreviousButton.js +5 -5
- package/dist/components/Popover/Popover.js +9 -7
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +4 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio.js +12 -11
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +4 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +2 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/SidebarNav/SidebarNavLink.js +1 -1
- package/dist/components/Slider/RangeSlider.js +2 -2
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Slider/SliderButton.js +1 -1
- package/dist/components/Switch/Switch.js +11 -11
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tab.js +3 -3
- package/dist/components/Tabs/TabList.js +6 -5
- package/dist/components/Tabs/TabPanel.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip.js +15 -7
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/UIProvider.js +2 -2
- package/dist/components/deprecated_ColorPicker/Alpha.js +4 -4
- package/dist/components/deprecated_ColorPicker/Color.js +6 -6
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +2 -2
- 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 +3 -3
- package/dist/components/deprecated_ColorPicker/Saturation.js +5 -5
- package/dist/components/deprecated_ColorPicker/Swatch.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +2 -2
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +8 -8
- package/dist/components/deprecated_Tabs/Tabs.js +11 -7
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanel.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +4 -29
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +8 -8
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +6 -3
- package/dist/hooks/useBreakpoints/useBreakpoints.js +1 -1
- package/dist/hooks/useClickOutside/useClickOutside.js +2 -1
- package/dist/hooks/useControllableState/useControllableState.js +2 -1
- package/dist/hooks/useEventListener/useEventListener.js +4 -1
- package/dist/hooks/useId/useId.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +11 -6
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useResponsiveValue/useResponsiveValue.js +2 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +4 -2
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/createIconComponent.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +17 -8
- package/dist/index.es.js +1 -7
- package/dist/index.js +4 -7
- package/dist/next/AdvancedTable/AdvancedTable.js +86 -87
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +6 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +18 -10
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +7 -6
- package/dist/next/AdvancedTable/AdvancedTableDragPreview.js +5 -4
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/AdvancedTable/useAdvancedTableDragAndDrop.js +3 -2
- package/dist/next/AdvancedTable/useComputedWidth.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +6 -5
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInputIconButton.js +1 -1
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxFlyout.js +2 -2
- package/dist/next/Combobox/ComboboxGroup.js +1 -1
- package/dist/next/Combobox/ComboboxInput.js +2 -2
- package/dist/next/Combobox/ComboboxOption.js +1 -1
- package/dist/next/Combobox/hooks/useComboboxFilteredGroup/useComboboxFilteredGroup.js +1 -1
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +12 -8
- package/dist/next/Combobox/hooks/useComboboxValue/useComboboxValue.js +1 -1
- package/dist/next/Combobox/hooks/useListboxFlyoutDimensions/useListboxFlyoutDimensions.js +3 -2
- package/dist/next/Combobox/hooks/useSelectedOptionScroll/useSelectedOptionScroll.js +2 -1
- package/dist/next/Combobox/hooks/useShouldRenderGroupHeader/useShouldRenderGroupHeader.js +2 -1
- package/dist/next/Combobox/utils/nodeRegistration/nodeRegistration.js +1 -1
- package/dist/next/Drawer/Drawer.js +7 -4
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input.js +2 -2
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Menu.js +11 -5
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +19 -11
- package/dist/next/Menu/MenuPane.js +70 -40
- package/dist/next/Menu/MenuSearch.js +16 -71
- package/dist/next/Menu/SubMenu.js +63 -46
- package/dist/next/Menu/constants.js +5 -1
- package/dist/next/Menu/useMutationObserver.js +17 -0
- package/dist/next/Menu/usePaneSearch.js +109 -7
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +7 -6
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/SplitButton/SplitButton.js +8 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimeDropdown.js +4 -4
- package/dist/next/TimePicker/TimeInput.js +2 -2
- package/dist/next/TimePicker/TimePicker.js +4 -4
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +2 -1
- package/dist/next/TimePicker/utils.js +10 -9
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +2 -1
- package/dist/next/index.js +601 -432
- package/dist/utils/Flyout/Flyout.js +1 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +9 -5
- package/dist/utils/TextOverflowTooltip/TextOverflowTooltip.js +2 -1
- package/dist/utils/Translation/useTranslation.js +4 -5
- package/dist/utils/filterChildren/filterChildren.js +2 -1
- package/dist/utils/getSubDataTestId/getSubDataTestId.js +1 -1
- package/dist/utils/index.js +0 -1
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/mergeRefs/mergeRefs.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +2 -2
- package/icons/package.json +1 -0
- package/next/package.json +2 -1
- package/package.json +4 -4
- package/dist/utils/keyboardUser/index.js +0 -1
- package/dist/utils/keyboardUser/keyboardUser.js +0 -30
|
@@ -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 = "._Yd7Hx{display:flex;flex-direction:column;align-items:flex-start}._F8xit{margin-top:6px;max-width:100%}._F8xit *+*{margin-top:4px}";
|
|
4
|
+
var styles = {"formField":"_Yd7Hx","captionContainer":"_F8xit"};
|
|
5
|
+
var stylesheet="._Yd7Hx{display:flex;flex-direction:column;align-items:flex-start}._F8xit{margin-top:6px;max-width:100%}._F8xit *+*{margin-top:4px}";
|
|
6
6
|
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
|
|
15
|
+
setHasControl === null || setHasControl === void 0 ? 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
|
|
25
|
+
setHasLabel === null || setHasLabel === void 0 ? 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
|
|
35
|
+
setFormFieldType === null || setFormFieldType === void 0 ? void 0 : setFormFieldType(type);
|
|
36
36
|
}, [setFormFieldType, type]);
|
|
37
37
|
return context;
|
|
38
38
|
};
|
|
@@ -38,14 +38,16 @@ const FullScreenTakeover = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
38
38
|
useEffect(() => {
|
|
39
39
|
// If `focusedElementWhenDialogOpened` has been set, then we know that the element has been opened at least once. Without this check, the component will focus `elementRefToFocusOnClose` on page load.
|
|
40
40
|
if (!isInDOM && focusedElementWhenDialogOpened) {
|
|
41
|
-
|
|
42
|
-
elementToFocus
|
|
41
|
+
var _elementRefToFocusOnC;
|
|
42
|
+
const elementToFocus = (_elementRefToFocusOnC = elementRefToFocusOnClose === null || elementRefToFocusOnClose === void 0 ? void 0 : elementRefToFocusOnClose.current) !== null && _elementRefToFocusOnC !== void 0 ? _elementRefToFocusOnC : focusedElementWhenDialogOpened;
|
|
43
|
+
elementToFocus === null || elementToFocus === void 0 ? void 0 : elementToFocus.focus();
|
|
43
44
|
}
|
|
44
45
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
45
46
|
}, [isInDOM, focusedElementWhenDialogOpened]);
|
|
46
47
|
const handleAnimationEnd = () => {
|
|
47
48
|
if (isOpen) {
|
|
48
|
-
|
|
49
|
+
var _ref2, _elementRefToFocusOnO;
|
|
50
|
+
(_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 ? void 0 : _ref2.focus();
|
|
49
51
|
} else {
|
|
50
52
|
setIsInDOM(false);
|
|
51
53
|
}
|
|
@@ -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 = "._46s5L{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _jNA2r{0%{transform:scale3d(.7,.7,.7);opacity:0}}._GnAV3{animation:_jNA2r both;animation-duration:.2s}@keyframes _FaBW-{to{transform:scale3d(.7,.7,.7);opacity:0}}._wEFcZ{animation:_FaBW- both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"dialog":"_46s5L","transitionIn":"_GnAV3","showAnimation":"_jNA2r","transitionOut":"_wEFcZ","hideAnimation":"_FaBW-"};
|
|
5
|
+
var stylesheet="._46s5L{position:fixed;left:0;top:0;width:100vw;height:100vh;background-color:#fff;overflow:auto}@keyframes _jNA2r{0%{transform:scale3d(.7,.7,.7);opacity:0}}._GnAV3{animation:_jNA2r both;animation-duration:.2s}@keyframes _FaBW-{to{transform:scale3d(.7,.7,.7);opacity:0}}._wEFcZ{animation:_FaBW- both;animation-duration:.2s}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -21,7 +21,7 @@ const deprecated = {
|
|
|
21
21
|
function deprecationWarning(type) {
|
|
22
22
|
if (deprecated[type]) {
|
|
23
23
|
// eslint-disable-next-line no-console
|
|
24
|
-
console.warn(
|
|
24
|
+
console.warn("\"IconTypes.".concat(type, "\" has been deprecated! Use \"IconTypes.").concat(deprecated[type], "\" instead."));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
const Icon = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
@@ -31,7 +31,7 @@ const Icon = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
31
31
|
...rest
|
|
32
32
|
} = _ref;
|
|
33
33
|
// eslint-disable-next-line no-console
|
|
34
|
-
console.warn(
|
|
34
|
+
console.warn("<Icon> component is deprecated! Use individual icon components from the @qualtrics/ui-react/icons import path instead", type);
|
|
35
35
|
deprecationWarning(type);
|
|
36
36
|
const svgContent = IconData[deprecated[type] || type];
|
|
37
37
|
const pixels = IconSizes[size];
|
|
@@ -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 = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._bDW87{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}._bDW87:focus{outline:none}._bDW87:hover:not(._KhpH6){background-color:rgba(50,54,58,.08)}._bDW87:active:not(._KhpH6){background-color:rgba(50,54,58,.11);stroke-width:2}._bDW87._KhpH6{cursor:not-allowed;fill:rgba(81,85,89,.6)}._bDW87.focus-visible,._bDW87:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_bDW87","disabled":"_KhpH6"};
|
|
5
|
+
var stylesheet="._bDW87{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}._bDW87:focus{outline:none}._bDW87:hover:not(._KhpH6){background-color:rgba(50,54,58,.08)}._bDW87:active:not(._KhpH6){background-color:rgba(50,54,58,.11);stroke-width:2}._bDW87._KhpH6{cursor:not-allowed;fill:rgba(81,85,89,.6)}._bDW87.focus-visible,._bDW87:focus-visible{outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles 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
|
|
35
|
+
onChange === null || onChange === void 0 ? 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
|
|
42
|
+
onBlur === null || onBlur === void 0 ? 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
|
|
47
|
+
onFocus === null || onFocus === void 0 ? 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
|
|
58
|
+
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
|
|
59
59
|
};
|
|
60
60
|
const handleMouseDown = e => {
|
|
61
61
|
if (isFocused) {
|
|
62
62
|
setIsEditing(true);
|
|
63
63
|
}
|
|
64
|
-
onMouseDown
|
|
64
|
+
onMouseDown === null || onMouseDown === void 0 ? void 0 : onMouseDown(e);
|
|
65
65
|
};
|
|
66
66
|
const handlePaste = e => {
|
|
67
67
|
// Strip formatting and newlines from pasted data
|
|
@@ -69,7 +69,7 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
69
69
|
e.preventDefault(); // prevent paste and manually insert text after stripping formatting
|
|
70
70
|
const text = e.clipboardData.getData('text').replace(/[\n\r]/g, ' ');
|
|
71
71
|
const selection = window.getSelection();
|
|
72
|
-
const range = selection
|
|
72
|
+
const range = selection === null || selection === void 0 ? void 0 : selection.getRangeAt(0);
|
|
73
73
|
if (range && selection) {
|
|
74
74
|
range.deleteContents();
|
|
75
75
|
const textNode = document.createTextNode(text);
|
|
@@ -84,13 +84,16 @@ const InlineInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
84
84
|
};
|
|
85
85
|
useDidUpdate(() => {
|
|
86
86
|
if (typeof window !== 'undefined') {
|
|
87
|
+
var _window$getSelection2;
|
|
87
88
|
if (isEditing && isFocused && internalRef.current) {
|
|
88
|
-
|
|
89
|
+
var _window$getSelection;
|
|
90
|
+
(_window$getSelection = window.getSelection()) === null || _window$getSelection === void 0 ? void 0 : _window$getSelection.selectAllChildren(internalRef.current);
|
|
89
91
|
}
|
|
90
92
|
// Clear window selection only if it is on the InlineInput. Without this check, we would mistakenly clear the
|
|
91
93
|
// selection after focus moves from this component to an Input or another component that sets the window selection.
|
|
92
|
-
else if (internalRef.current && window.getSelection()
|
|
93
|
-
|
|
94
|
+
else if (internalRef.current && (_window$getSelection2 = window.getSelection()) !== null && _window$getSelection2 !== void 0 && _window$getSelection2.containsNode(internalRef.current, true)) {
|
|
95
|
+
var _window$getSelection3;
|
|
96
|
+
(_window$getSelection3 = window.getSelection()) === null || _window$getSelection3 === void 0 ? void 0 : _window$getSelection3.removeAllRanges();
|
|
94
97
|
}
|
|
95
98
|
}
|
|
96
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 = "._Zad4U{display:inline-block}._h-Q9X{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}._h-Q9X::-moz-selection{background-color:rgba(11,110,208,.11)}._h-Q9X::selection{background-color:rgba(11,110,208,.11)}._h-Q9X:focus,._h-Q9X:hover{background-color:#f5f5f5}._h-Q9X:focus{border:2px solid #0a3f88;padding:3px}._h-Q9X:focus._oauQC{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":"_Zad4U","inlineInput":"_h-Q9X","isEditing":"_oauQC"};
|
|
5
|
+
var stylesheet="._Zad4U{display:inline-block}._h-Q9X{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}._h-Q9X::-moz-selection{background-color:rgba(11,110,208,.11)}._h-Q9X::selection{background-color:rgba(11,110,208,.11)}._h-Q9X:focus,._h-Q9X:hover{background-color:#f5f5f5}._h-Q9X:focus{border:2px solid #0a3f88;padding:3px}._h-Q9X:focus._oauQC{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
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -47,7 +47,7 @@ const Input = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
47
47
|
onChange: disabled ? null : onChange,
|
|
48
48
|
value,
|
|
49
49
|
'aria-describedby': internalAriaDescribedby,
|
|
50
|
-
readOnly: readOnly
|
|
50
|
+
readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : formFieldIsReadOnly
|
|
51
51
|
};
|
|
52
52
|
return multiline ? /*#__PURE__*/React__default.createElement("textarea", _extends({}, commonProps, {
|
|
53
53
|
rows: rows
|
|
@@ -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 = "._Km-3j{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}._Km-3j::-moz-placeholder{color:#515559;opacity:1}._Km-3j::placeholder{color:#515559;opacity:1}._Km-3j:hover{cursor:pointer;background-color:#f5f5f5}._Km-3j:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._Km-3j._VNKpR{border-color:#b00}._Km-3j._VNKpR:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._Km-3j:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._Km-3j:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Km-3j:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Km-3j._ohFfr{height:auto}._Km-3j._ohFfr::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._Km-3j._7YgGR{display:block;width:100%}._Km-3j._uRxtT{padding:4px 8px}input._Km-3j._uRxtT{height:26px;min-height:26px}[type=number]._Km-3j{-moz-appearance:textfield}[type=number]._Km-3j::-webkit-inner-spin-button,[type=number]._Km-3j::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._sOJjs{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._sOJjs:hover{cursor:pointer}._sOJjs._ty-4V{color:#0b6ed0}._OSjBP{margin-top:4px}";
|
|
4
|
+
var styles = {"input":"_Km-3j","invalid":"_VNKpR","multiline":"_ohFfr","full":"_7YgGR","small":"_uRxtT","label":"_sOJjs","focused":"_ty-4V","wrappedInput":"_OSjBP"};
|
|
5
|
+
var stylesheet="._Km-3j{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}._Km-3j::-moz-placeholder{color:#515559;opacity:1}._Km-3j::placeholder{color:#515559;opacity:1}._Km-3j:hover{cursor:pointer;background-color:#f5f5f5}._Km-3j:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;background-color:#fafafa;cursor:text;outline:none;border-color:transparent}._Km-3j._VNKpR{border-color:#b00}._Km-3j._VNKpR:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._Km-3j:disabled{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._Km-3j:disabled::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Km-3j:disabled::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._Km-3j._ohFfr{height:auto}._Km-3j._ohFfr::-webkit-resizer{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSI4IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik03IDF2M2EzIDMgMCAwMS0zIDNIMSIgc3Ryb2tlPSIjOTI5MjkyIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPjwvc3ZnPg==);background-size:8px 8px;background-repeat:no-repeat;background-position:50%}._Km-3j._7YgGR{display:block;width:100%}._Km-3j._uRxtT{padding:4px 8px}input._Km-3j._uRxtT{height:26px;min-height:26px}[type=number]._Km-3j{-moz-appearance:textfield}[type=number]._Km-3j::-webkit-inner-spin-button,[type=number]._Km-3j::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._sOJjs{line-height:20px;color:#6a6d70;display:flex;flex-direction:column;align-items:flex-start}._sOJjs:hover{cursor:pointer}._sOJjs._ty-4V{color:#0b6ed0}._OSjBP{margin-top:4px}";
|
|
6
6
|
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
|
|
35
|
+
onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
|
|
36
36
|
}
|
|
37
37
|
function handleBlur(e) {
|
|
38
38
|
setFocused(false);
|
|
39
|
-
onBlur
|
|
39
|
+
onBlur === null || onBlur === void 0 ? 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 = "._nqeU0{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}._nqeU0._PtJ4X{height:26px;min-height:26px;padding:5px 8px}._lxped{display:flex;align-items:stretch}._lxped._h6tUf{width:100%}._lxped ._D3saP{margin:0;position:relative;flex-shrink:0;z-index:10}._lxped ._D3saP: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}._lxped ._D3saP:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._lxped ._D3saP:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._lxped ._D3saP:last-child,._lxped ._D3saP:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._lxped ._D3saP:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._lxped ._D3saP._GPjFc{flex-shrink:1;min-width:40px;z-index:0}._lxped ._D3saP._GPjFc._h6tUf{flex-grow:1}._lxped ._D3saP:focus{z-index:20}";
|
|
4
|
+
var styles = {"addon":"_nqeU0","small":"_PtJ4X","inputGroup":"_lxped","full":"_h6tUf","inputGroupElement":"_D3saP","input":"_GPjFc"};
|
|
5
|
+
var stylesheet="._nqeU0{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}._nqeU0._PtJ4X{height:26px;min-height:26px;padding:5px 8px}._lxped{display:flex;align-items:stretch}._lxped._h6tUf{width:100%}._lxped ._D3saP{margin:0;position:relative;flex-shrink:0;z-index:10}._lxped ._D3saP: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}._lxped ._D3saP:not(:last-child):not(:first-child){margin:0 -1px 0 0;border-radius:0}._lxped ._D3saP:last-child{border-top-left-radius:0;border-bottom-left-radius:0}._lxped ._D3saP:last-child,._lxped ._D3saP:only-child{margin:0;border-top-right-radius:4px;border-bottom-right-radius:4px}._lxped ._D3saP:only-child{border-top-left-radius:4px;border-bottom-left-radius:4px}._lxped ._D3saP._GPjFc{flex-shrink:1;min-width:40px;z-index:0}._lxped ._D3saP._GPjFc._h6tUf{flex-grow:1}._lxped ._D3saP:focus{z-index:20}";
|
|
6
6
|
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 = "._U0wcH{font-size:14px}._4Jz82{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._CWmh5{color:#0b6ed0}";
|
|
4
|
+
var styles = {"label":"_U0wcH","control":"_4Jz82","focused":"_CWmh5"};
|
|
5
|
+
var stylesheet="._U0wcH{font-size:14px}._4Jz82{color:#6a6d70;line-height:20px;display:inline-flex;flex-direction:column;align-items:flex-start}._CWmh5{color:#0b6ed0}";
|
|
6
6
|
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 = "._ryU-6{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}._ryU-6:active:focus,._ryU-6:focus{outline:none}._ryU-6:visited{color:#0854a1}._ryU-6:hover{color:#085caf}._ryU-6:active{color:#0854a1}._ryU-6.focus-visible,._ryU-6:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"link":"_ryU-6"};
|
|
5
|
+
var stylesheet="._ryU-6{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}._ryU-6:active:focus,._ryU-6:focus{outline:none}._ryU-6:visited{color:#0854a1}._ryU-6:hover{color:#085caf}._ryU-6:active{color:#0854a1}._ryU-6.focus-visible,._ryU-6:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -36,7 +36,7 @@ const LoadingSpinner = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
36
36
|
}),
|
|
37
37
|
"data-loadingspinner": show || undefined,
|
|
38
38
|
role: role,
|
|
39
|
-
"aria-label": ariaLabel
|
|
39
|
+
"aria-label": ariaLabel !== null && ariaLabel !== void 0 ? ariaLabel : ariaLabelledby ? undefined : defaultAriaLabel,
|
|
40
40
|
"aria-labelledby": ariaLabelledby,
|
|
41
41
|
"aria-live": ariaLive,
|
|
42
42
|
"aria-hidden": ariaHidden
|
|
@@ -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 = "._Zzymx{position:relative;display:inline-block}._Zzymx._xEic-{min-height:20px;min-width:20px}._Zzymx._FzKPw{min-height:25px;min-width:25px}._Zzymx._ELwIP{min-height:40px;min-width:40px}._Zzymx._Hn2jc{min-height:64px;min-width:64px}._Zzymx ._QxRR8{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._Zzymx ._QxRR8._pFlgS{visibility:hidden}._Zzymx ._QxRR8 div{position:absolute;transform:rotate(20deg)}._Zzymx ._QxRR8 div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_QxRR8 .8s linear infinite}._Zzymx ._QxRR8 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}._Zzymx ._QxRR8 div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._Zzymx ._QxRR8 div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._Zzymx ._QxRR8 div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._Zzymx ._QxRR8 div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._Zzymx ._QxRR8 div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._Zzymx ._QxRR8 div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._Zzymx ._QxRR8 div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._Zzymx ._QxRR8 div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._Zzymx ._QxRR8 div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._Zzymx ._Hn2jc div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._Zzymx ._xEic- div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._Zzymx ._FzKPw div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._Zzymx ._w-kzJ div div:nth-child(-n+9):after{background:#fff}._Zzymx ._36mld{width:100%;height:100%}._Zzymx ._36mld._ydsUc{pointer-events:none}._Zzymx ._36mld._pFlgS{opacity:0}._Zzymx ._36mld._AjoMP{opacity:.5}@keyframes _QxRR8{0%{opacity:1}to{opacity:0}}";
|
|
4
|
+
var styles = {"spinnerContainer":"_Zzymx","xs":"_xEic-","small":"_FzKPw","medium":"_ELwIP","large":"_Hn2jc","spinnerComponent":"_QxRR8","hide":"_pFlgS","inverted":"_w-kzJ","spinnerContent":"_36mld","disablePointerEvents":"_ydsUc","fade":"_AjoMP"};
|
|
5
|
+
var stylesheet="._Zzymx{position:relative;display:inline-block}._Zzymx._xEic-{min-height:20px;min-width:20px}._Zzymx._FzKPw{min-height:25px;min-width:25px}._Zzymx._ELwIP{min-height:40px;min-width:40px}._Zzymx._Hn2jc{min-height:64px;min-width:64px}._Zzymx ._QxRR8{display:inline-block;background-color:transparent;position:absolute;z-index:10;width:0;height:0;left:50%;bottom:50%;pointer-events:none}._Zzymx ._QxRR8._pFlgS{visibility:hidden}._Zzymx ._QxRR8 div{position:absolute;transform:rotate(20deg)}._Zzymx ._QxRR8 div div:nth-child(-n+9){background-color:#fff;transform-origin:0 0;animation:_QxRR8 .8s linear infinite}._Zzymx ._QxRR8 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}._Zzymx ._QxRR8 div div:first-child{transform:rotate(20deg);animation-delay:-.8s}._Zzymx ._QxRR8 div div:nth-child(2){transform:rotate(60deg);animation-delay:-.7s}._Zzymx ._QxRR8 div div:nth-child(3){transform:rotate(100deg);animation-delay:-.6s}._Zzymx ._QxRR8 div div:nth-child(4){transform:rotate(140deg);animation-delay:-.5s}._Zzymx ._QxRR8 div div:nth-child(5){transform:rotate(180deg);animation-delay:-.4s}._Zzymx ._QxRR8 div div:nth-child(6){transform:rotate(220deg);animation-delay:-.3s}._Zzymx ._QxRR8 div div:nth-child(7){transform:rotate(260deg);animation-delay:-.2s}._Zzymx ._QxRR8 div div:nth-child(8){transform:rotate(300deg);animation-delay:-.1s}._Zzymx ._QxRR8 div div:nth-child(9){transform:rotate(340deg);animation-delay:0s}._Zzymx ._Hn2jc div div:nth-child(-n+9):after{top:10px;left:-2px;width:4px;height:18px}._Zzymx ._xEic- div div:nth-child(-n+9):after{top:2px;left:-1px;width:1.5px;height:6px}._Zzymx ._FzKPw div div:nth-child(-n+9):after{top:4px;left:-1px;width:2px;height:7px}._Zzymx ._w-kzJ div div:nth-child(-n+9):after{background:#fff}._Zzymx ._36mld{width:100%;height:100%}._Zzymx ._36mld._ydsUc{pointer-events:none}._Zzymx ._36mld._pFlgS{opacity:0}._Zzymx ._36mld._AjoMP{opacity:.5}@keyframes _QxRR8{0%{opacity:1}to{opacity:0}}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -53,11 +53,11 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
if (fixedSet) {
|
|
56
|
-
lastConnectionRef.current.style.height =
|
|
57
|
-
lastConnectionRef.current.style.top =
|
|
56
|
+
lastConnectionRef.current.style.height = "".concat(height - 38, "px");
|
|
57
|
+
lastConnectionRef.current.style.top = "-".concat(height - 56, "px");
|
|
58
58
|
} else {
|
|
59
|
-
lastConnectionRef.current.style.height =
|
|
60
|
-
lastConnectionRef.current.style.top =
|
|
59
|
+
lastConnectionRef.current.style.height = "".concat(height - 18, "px");
|
|
60
|
+
lastConnectionRef.current.style.top = "-".concat(height - 52, "px");
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -87,7 +87,7 @@ const ConditionSet = function ConditionSet(_ref) {
|
|
|
87
87
|
if (fixedSet) {
|
|
88
88
|
indices.shift();
|
|
89
89
|
}
|
|
90
|
-
return getSubDataTestId(rootDataTestId,
|
|
90
|
+
return getSubDataTestId(rootDataTestId, "".concat(prefix, "-").concat(indices.join('-')));
|
|
91
91
|
}, [fixedSet, rootDataTestId]);
|
|
92
92
|
function renderControls(itemType, itemPosition, itemIndex, itemLevel, numberOfSetItems, itemId) {
|
|
93
93
|
return /*#__PURE__*/React__default.createElement(Controls, {
|
|
@@ -43,7 +43,7 @@ const LogicEditor = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
43
43
|
const classes = classNames(className, styles.editor);
|
|
44
44
|
function update(newState) {
|
|
45
45
|
setState(newState);
|
|
46
|
-
onChange
|
|
46
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(newState);
|
|
47
47
|
}
|
|
48
48
|
const handleNewLogicItem = (item, position) => {
|
|
49
49
|
const newState = shallowCopy(state);
|
|
@@ -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 = "._anGvB{width:100%}._GkeQO{display:flex;align-items:center}._ihMVI{display:flex;flex-wrap:wrap;grid-gap:4px}._ihMVI :nth-last-child(2){margin-right:42px}._Lh4xl{position:relative;padding-left:32px;padding-top:16px;display:flex}._dTAXK ._Lh4xl{padding-top:0;padding-left:16px}._dTAXK ._Lh4xl+._Lh4xl{margin-top:16px}._Cvd5Y{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}._dTAXK ._Lh4xl:first-of-type ._Cvd5Y{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._dTAXK ._Cvd5Y{top:-16px;left:0}._dTAXK ._Lh4xl:not(:first-of-type):not(:last-of-type) ._Cvd5Y{border-bottom-left-radius:0}._BUIhz{margin-left:-46px}._AAChe{margin:0 2px 0 4px}._AAChe.focus-visible,._AAChe:focus-visible{outline-width:2px}._2DHUW{margin-left:4px}";
|
|
4
|
+
var styles = {"set":"_anGvB","setWrapper":"_GkeQO","condition":"_ihMVI","branch":"_Lh4xl","fixedSet":"_dTAXK","connection":"_Cvd5Y","conditionControlsContainer":"_BUIhz","controls":"_AAChe","controlMenuItem":"_2DHUW"};
|
|
5
|
+
var stylesheet="._anGvB{width:100%}._GkeQO{display:flex;align-items:center}._ihMVI{display:flex;flex-wrap:wrap;grid-gap:4px}._ihMVI :nth-last-child(2){margin-right:42px}._Lh4xl{position:relative;padding-left:32px;padding-top:16px;display:flex}._dTAXK ._Lh4xl{padding-top:0;padding-left:16px}._dTAXK ._Lh4xl+._Lh4xl{margin-top:16px}._Cvd5Y{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}._dTAXK ._Lh4xl:first-of-type ._Cvd5Y{top:16px;border-bottom:none;border-bottom-left-radius:0;border-top:1px solid #c2c2c2;border-top-left-radius:4px}._dTAXK ._Cvd5Y{top:-16px;left:0}._dTAXK ._Lh4xl:not(:first-of-type):not(:last-of-type) ._Cvd5Y{border-bottom-left-radius:0}._BUIhz{margin-left:-46px}._AAChe{margin:0 2px 0 4px}._AAChe.focus-visible,._AAChe:focus-visible{outline-width:2px}._2DHUW{margin-left:4px}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -26,7 +26,8 @@ function constructValidDefaultState(_ref) {
|
|
|
26
26
|
return clone;
|
|
27
27
|
}
|
|
28
28
|
function fixedSetHasNoConditions(defaultValue, fixedSet) {
|
|
29
|
-
|
|
29
|
+
var _defaultValue$conditi;
|
|
30
|
+
return fixedSet && defaultValue && (!(defaultValue !== null && defaultValue !== void 0 && defaultValue.conditions) || !((defaultValue === null || defaultValue === void 0 ? void 0 : (_defaultValue$conditi = defaultValue.conditions) === null || _defaultValue$conditi === void 0 ? void 0 : _defaultValue$conditi.length) >= 1));
|
|
30
31
|
}
|
|
31
32
|
function ensureFixedSetHasOneCondition(defaultValue, fixedSet) {
|
|
32
33
|
if (fixedSetHasNoConditions(defaultValue, fixedSet)) {
|
|
@@ -22,7 +22,7 @@ const OverlayContainer = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
22
22
|
} = _ref;
|
|
23
23
|
return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
|
|
24
24
|
ref: ref
|
|
25
|
-
}), children, /*#__PURE__*/React__default.createElement("style", null,
|
|
25
|
+
}), children, /*#__PURE__*/React__default.createElement("style", null, "body { overflow: hidden; }"));
|
|
26
26
|
});
|
|
27
27
|
const Overlay = /*#__PURE__*/React__default.forwardRef((_ref2, ref) => {
|
|
28
28
|
let {
|
|
@@ -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
|
|
53
|
+
onDismiss === null || onDismiss === void 0 ? 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
|
|
60
|
-
onClose
|
|
59
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss(e);
|
|
60
|
+
onClose === null || onClose === void 0 ? void 0 : onClose(e);
|
|
61
61
|
}
|
|
62
62
|
};
|
|
63
63
|
const handleBodyKeyDown = e => {
|
|
@@ -100,13 +100,13 @@ const Dialog = /*#__PURE__*/React__default.forwardRef((_ref3, ref) => {
|
|
|
100
100
|
const prefix = 'dialog';
|
|
101
101
|
switch (maxSize) {
|
|
102
102
|
case 'small':
|
|
103
|
-
return
|
|
103
|
+
return "".concat(prefix, "Small");
|
|
104
104
|
case 'medium':
|
|
105
|
-
return
|
|
105
|
+
return "".concat(prefix, "Medium");
|
|
106
106
|
case 'large':
|
|
107
|
-
return
|
|
107
|
+
return "".concat(prefix, "Large");
|
|
108
108
|
case 'xl':
|
|
109
|
-
return
|
|
109
|
+
return "".concat(prefix, "ExtraLarge");
|
|
110
110
|
default:
|
|
111
111
|
return '';
|
|
112
112
|
}
|
|
@@ -170,21 +170,22 @@ const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
|
|
|
170
170
|
// This effect should only run when the Modal is added or removed from the DOM
|
|
171
171
|
useDidUpdate(() => {
|
|
172
172
|
if (isInDOM) {
|
|
173
|
-
if (elementRefToFocusOnOpen
|
|
173
|
+
if (elementRefToFocusOnOpen !== null && elementRefToFocusOnOpen !== void 0 && elementRefToFocusOnOpen.current) {
|
|
174
174
|
elementRefToFocusOnOpen.current.focus();
|
|
175
175
|
} else if (typeof onClose === 'function' && closeIconButtonRef.current) {
|
|
176
176
|
closeIconButtonRef.current.focus();
|
|
177
177
|
} else {
|
|
178
|
-
|
|
178
|
+
var _dialogRef$current;
|
|
179
|
+
(_dialogRef$current = dialogRef.current) === null || _dialogRef$current === void 0 ? void 0 : _dialogRef$current.focus();
|
|
179
180
|
}
|
|
180
|
-
} else if (elementRefToFocusOnClose
|
|
181
|
+
} else if (elementRefToFocusOnClose !== null && elementRefToFocusOnClose !== void 0 && elementRefToFocusOnClose.current) {
|
|
181
182
|
elementRefToFocusOnClose.current.focus();
|
|
182
183
|
} else {
|
|
183
184
|
/*
|
|
184
185
|
* This replaces the `returnFocus` prop of `react-focus-lock`.
|
|
185
186
|
* The logic is done in this effect instead because `elementRefToFocusOnClose.current` is not available until after the `Overlay` is unmounted.
|
|
186
187
|
*/
|
|
187
|
-
elementUsedToOpenModal
|
|
188
|
+
elementUsedToOpenModal === null || elementUsedToOpenModal === void 0 ? void 0 : elementUsedToOpenModal.focus();
|
|
188
189
|
}
|
|
189
190
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
190
191
|
}, [isInDOM]);
|
|
@@ -204,7 +205,7 @@ const Modal = /*#__PURE__*/React__default.forwardRef((_ref4, ref) => {
|
|
|
204
205
|
onDismiss: onDismiss
|
|
205
206
|
}, /*#__PURE__*/React__default.createElement(Dialog, _extends({}, rest, {
|
|
206
207
|
onAnimationEnd: e => {
|
|
207
|
-
externalOnAnimationEnd
|
|
208
|
+
externalOnAnimationEnd === null || externalOnAnimationEnd === void 0 ? void 0 : externalOnAnimationEnd(e);
|
|
208
209
|
if (!open) setIsInDOM(false);
|
|
209
210
|
},
|
|
210
211
|
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 = "._h5tul{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._7beAG,._h5tul{display:flex;overflow:auto}._7beAG{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(._tCWzE)._vr26K{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._tCWzE)._vr26K{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._tCWzE)._2qTEv{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._tCWzE)._2qTEv{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._tCWzE)._2qTEv{max-width:700px}}:not(._tCWzE)._JNefC{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._tCWzE)._JNefC{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._tCWzE)._JNefC{max-width:700px}}@media screen and (min-width:1024px){:not(._tCWzE)._JNefC{max-width:1000px}}:not(._tCWzE)._JIQr-{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._tCWzE)._JIQr-{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._tCWzE)._JIQr-{max-width:700px}}@media screen and (min-width:1024px){:not(._tCWzE)._JIQr-{max-width:1000px}}@media screen and (min-width:1632px){:not(._tCWzE)._JIQr-{max-width:1600px;max-height:calc(100vh - 32px)}}._tCWzE{min-width:200px;width:calc(100% - 48px)}._tCWzE,._tCWzE._vr26K{max-height:calc(100vh - 80px)}._tCWzE._vr26K{max-width:480px;border-radius:8px}._tCWzE._2qTEv{max-width:700px}._tCWzE._JNefC{max-width:1000px}._tCWzE._JIQr-{max-width:1600px;max-height:calc(100vh - 32px)}._2ITiD{height:calc(100vh - 80px)}@media screen and (max-width:479px){._2ITiD{height:100vh}}@media screen and (min-width:1632px){._2ITiD{height:calc(100vh - 32px)}}._nX1A7{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}._qHVZB{padding-right:64px}._kdxcl{position:absolute;top:14px;right:14px}._Qamfr{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._NIuoR,._Qamfr{padding:20px 24px}._NIuoR{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._NIuoR>*{margin:0 4px}._NIuoR>:first-child{margin-left:0}._NIuoR>:last-child{margin-right:0}@keyframes _dNAdg{0%{opacity:0}}._dNAdg{animation:_dNAdg ease-in both;animation-duration:.2s}@keyframes _iW3DP{to{opacity:0}}._iW3DP{animation:_iW3DP ease-out both;animation-duration:.2s}@keyframes _Wq-zi{0%{transform:scale3d(.7,.7,.7);opacity:0}}._Wq-zi{animation:_Wq-zi both;animation-duration:.2s}@keyframes _OsXp2{to{transform:scale3d(.7,.7,.7);opacity:0}}._OsXp2{animation:_OsXp2 both;animation-duration:.2s}";
|
|
4
|
+
var styles = {"backdrop":"_h5tul","modal":"_7beAG","responsive":"_tCWzE","dialogSmall":"_vr26K","dialogMedium":"_2qTEv","dialogLarge":"_JNefC","dialogExtraLarge":"_JIQr-","growToMaxHeight":"_2ITiD","modalHeader":"_nX1A7","modalHeaderWithCloseButton":"_qHVZB","modalHeaderCloseButton":"_kdxcl","modalBody":"_Qamfr","modalFooter":"_NIuoR","fadeEnter":"_dNAdg","fadeLeave":"_iW3DP","zoomEnter":"_Wq-zi","zoomLeave":"_OsXp2"};
|
|
5
|
+
var stylesheet="._h5tul{position:fixed;left:0;top:0;width:100%;height:100%;background-color:rgba(0,0,0,.3);align-items:flex-start}._7beAG,._h5tul{display:flex;overflow:auto}._7beAG{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(._tCWzE)._vr26K{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._tCWzE)._vr26K{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}:not(._tCWzE)._2qTEv{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._tCWzE)._2qTEv{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._tCWzE)._2qTEv{max-width:700px}}:not(._tCWzE)._JNefC{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._tCWzE)._JNefC{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._tCWzE)._JNefC{max-width:700px}}@media screen and (min-width:1024px){:not(._tCWzE)._JNefC{max-width:1000px}}:not(._tCWzE)._JIQr-{width:100vw;min-width:200px;max-width:none;max-height:100vh;border-radius:0}@media screen and (min-width:480px){:not(._tCWzE)._JIQr-{max-width:480px;max-height:calc(100vh - 80px);border-radius:8px}}@media screen and (min-width:768px){:not(._tCWzE)._JIQr-{max-width:700px}}@media screen and (min-width:1024px){:not(._tCWzE)._JIQr-{max-width:1000px}}@media screen and (min-width:1632px){:not(._tCWzE)._JIQr-{max-width:1600px;max-height:calc(100vh - 32px)}}._tCWzE{min-width:200px;width:calc(100% - 48px)}._tCWzE,._tCWzE._vr26K{max-height:calc(100vh - 80px)}._tCWzE._vr26K{max-width:480px;border-radius:8px}._tCWzE._2qTEv{max-width:700px}._tCWzE._JNefC{max-width:1000px}._tCWzE._JIQr-{max-width:1600px;max-height:calc(100vh - 32px)}._2ITiD{height:calc(100vh - 80px)}@media screen and (max-width:479px){._2ITiD{height:100vh}}@media screen and (min-width:1632px){._2ITiD{height:calc(100vh - 32px)}}._nX1A7{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}._qHVZB{padding-right:64px}._kdxcl{position:absolute;top:14px;right:14px}._Qamfr{flex-grow:1;font-size:14px;overflow:auto;color:#32363a}._NIuoR,._Qamfr{padding:20px 24px}._NIuoR{display:flex;flex-direction:row;flex-shrink:0;align-items:center;justify-content:flex-end;border-top:1px solid #eee}._NIuoR>*{margin:0 4px}._NIuoR>:first-child{margin-left:0}._NIuoR>:last-child{margin-right:0}@keyframes _dNAdg{0%{opacity:0}}._dNAdg{animation:_dNAdg ease-in both;animation-duration:.2s}@keyframes _iW3DP{to{opacity:0}}._iW3DP{animation:_iW3DP ease-out both;animation-duration:.2s}@keyframes _Wq-zi{0%{transform:scale3d(.7,.7,.7);opacity:0}}._Wq-zi{animation:_Wq-zi both;animation-duration:.2s}@keyframes _OsXp2{to{transform:scale3d(.7,.7,.7);opacity:0}}._OsXp2{animation:_OsXp2 both;animation-duration:.2s}";
|
|
6
6
|
styleInject(css_248z);
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|