@qualtrics/ui-react 2.25.0 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/__shared/cjs/{index-5b3b3406.js → index-ae6df097.js} +3 -3
- package/dist/__shared/cjs/{index-610a1e02.js → index-dc6f69ac.js} +262 -256
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +1 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Hue.js +1 -1
- package/dist/components/ColorPicker/Palette.js +1 -1
- package/dist/components/ColorPicker/Saturation.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxIcon.js +1 -1
- package/dist/components/Combobox/ComboboxInput.js +1 -1
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +4 -4
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownList.js +1 -1
- package/dist/components/Dropdown/DropdownOption.js +2 -2
- package/dist/components/Dropdown/DropdownSearch.js +2 -2
- package/dist/components/FilePicker/FilePicker.js +2 -2
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +2 -2
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +7 -7
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -2
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +3 -3
- package/dist/components/NumberStepper/NumberStepper.js +2 -2
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +3 -3
- package/dist/components/Pagination/PaginationPageInput.js +8 -8
- package/dist/components/Pagination/PaginationPreviousButton.js +3 -3
- package/dist/components/Popover/Popover.js +5 -5
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/Alpha.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
- package/dist/components/deprecated_ColorPicker/Hue.js +2 -2
- package/dist/components/deprecated_ColorPicker/Saturation.js +2 -2
- package/dist/components/deprecated_ColorPicker/Swatch.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +1 -1
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +5 -5
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +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/index.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +8 -6
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +2 -2
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox.js +2 -0
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +2 -0
- package/dist/next/Combobox/ComboboxOption.js +2 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Drawer/Drawer.js +2 -2
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +2 -2
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/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/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 +17 -3
- package/dist/next/index.js +424 -212
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +2 -2
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +1 -1
- package/icons/package.json +2 -0
- package/next/package.json +3 -1
- package/package.json +4 -2
- /package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +0 -0
|
@@ -5,15 +5,19 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { useFocusVisible } from '@react-aria/interactions';
|
|
6
6
|
import styles from './Menu2.js';
|
|
7
7
|
import '../../icons/index.es.js';
|
|
8
|
-
import { usePaneContext, useMenuContext, PaneContextProvider } from './MenuContext.js';
|
|
8
|
+
import { useItemContext, usePaneContext, useMenuContext, PaneContextProvider } from './MenuContext.js';
|
|
9
9
|
import '../../utils/index.js';
|
|
10
10
|
import { DATA_TESTID_SUFFIXES as DATA_TESTID_SUFFIXES$1, KEYS as KEYS$1 } from './constants.js';
|
|
11
11
|
import { DATA_TESTID_SUFFIXES, KEYS } from '../Select/constants.js';
|
|
12
12
|
import '../../hooks/index.js';
|
|
13
|
-
import usePaneSearch from './usePaneSearch.js';
|
|
13
|
+
import usePaneSearch from './Hooks/usePaneSearch.js';
|
|
14
14
|
import useSelectContext from '../Select/SelectContext.js';
|
|
15
15
|
import AdvancedTableCheckbox from '../AdvancedTable/AdvancedTableCheckbox.js';
|
|
16
16
|
import styles$1 from '../Select/Select2.js';
|
|
17
|
+
import PaneChildren from './PaneChildren.js';
|
|
18
|
+
import useFocusVirtualBoundary from './Hooks/useFocusVirtualBoundary.js';
|
|
19
|
+
import useIsVirtualized from './Hooks/useIsVirtualized.js';
|
|
20
|
+
import useMaskDimensions from './Hooks/useMaskDimensions.js';
|
|
17
21
|
import useId from '../../hooks/useId/useId.js';
|
|
18
22
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
19
23
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
@@ -45,6 +49,9 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
45
49
|
triggerCheckedState = 'false',
|
|
46
50
|
onTriggerCheckboxSelect
|
|
47
51
|
} = selectContext !== null && selectContext !== void 0 ? selectContext : {};
|
|
52
|
+
const {
|
|
53
|
+
virtualIndex
|
|
54
|
+
} = useItemContext();
|
|
48
55
|
const [items, setItems] = useState([]);
|
|
49
56
|
const internalId = useId();
|
|
50
57
|
const triggerRef = useRef(null);
|
|
@@ -53,18 +60,18 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
53
60
|
const backButtonRef = useRef(null);
|
|
54
61
|
const {
|
|
55
62
|
dataTestId: paneContainingTriggerDataTestId,
|
|
56
|
-
childIndex
|
|
57
|
-
searchValue: paneContainingTriggerSearchValue,
|
|
58
|
-
isSearchFilteringDisabled: isSearchFilteringDisabledForPaneContainingTrigger,
|
|
63
|
+
childIndex,
|
|
59
64
|
isInteractive: paneContainingTriggerIsInteractive,
|
|
60
65
|
closeSubmenu: closeSubmenuContainingTrigger,
|
|
61
|
-
zIndex: paneContainingTriggerZIndex
|
|
66
|
+
zIndex: paneContainingTriggerZIndex,
|
|
67
|
+
focusVirtualBoundary: focusVirtualBoundaryWithinPaneContainingTrigger,
|
|
68
|
+
isVirtualized: paneContainingTriggerIsVirtualized
|
|
62
69
|
} = usePaneContext(triggerRef);
|
|
70
|
+
const triggerIndex = useMemo(() => virtualIndex !== null && virtualIndex !== void 0 ? virtualIndex : childIndex, [childIndex, virtualIndex]);
|
|
63
71
|
const {
|
|
64
72
|
openPaneDepth: totalOpenPaneDepth,
|
|
65
73
|
registerSubmenu,
|
|
66
|
-
|
|
67
|
-
setMaskWidth
|
|
74
|
+
isVirtualizationDisabled
|
|
68
75
|
} = useMenuContext();
|
|
69
76
|
const {
|
|
70
77
|
isFocusVisible
|
|
@@ -82,14 +89,30 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
82
89
|
e.preventDefault();
|
|
83
90
|
registerSubmenu(internalId, false);
|
|
84
91
|
};
|
|
92
|
+
const isVirtualized = useIsVirtualized(children, isVirtualizationDisabled);
|
|
85
93
|
const {
|
|
86
|
-
internalSearchValue,
|
|
87
94
|
noSearchResultsNode,
|
|
88
|
-
onInteractOutside
|
|
89
|
-
|
|
95
|
+
onInteractOutside,
|
|
96
|
+
filteredChildren
|
|
97
|
+
} = usePaneSearch({
|
|
98
|
+
isSearchable,
|
|
99
|
+
externalSearchValue,
|
|
100
|
+
onSearchValueChange,
|
|
101
|
+
items,
|
|
102
|
+
animatedLeft,
|
|
103
|
+
animatedRight,
|
|
104
|
+
menuParentDataTestId: paneDataTestId,
|
|
105
|
+
id: internalId,
|
|
106
|
+
flyoutRef,
|
|
107
|
+
children,
|
|
108
|
+
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren,
|
|
109
|
+
backButtonRef,
|
|
110
|
+
closeSubmenu: closeThisSubmenu,
|
|
111
|
+
isVirtualized
|
|
112
|
+
});
|
|
113
|
+
const focusVirtualBoundaryInPane = useFocusVirtualBoundary(items, backButtonRef);
|
|
90
114
|
const backButtonDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_BACK : DATA_TESTID_SUFFIXES$1.MENU_BACK);
|
|
91
115
|
const triggerDataTestId = paneDataTestId === null || paneDataTestId === void 0 ? void 0 : paneDataTestId.replace(withinSelect ? DATA_TESTID_SUFFIXES.SELECT_PANE : DATA_TESTID_SUFFIXES$1.MENU_PANE, withinSelect ? DATA_TESTID_SUFFIXES.SELECT_ITEM : DATA_TESTID_SUFFIXES$1.MENU_ITEM);
|
|
92
|
-
const triggerIsVisible = useMemo(() => isSearchFilteringDisabledForPaneContainingTrigger || !paneContainingTriggerSearchValue || typeof label === 'string' && label.toLowerCase().includes(paneContainingTriggerSearchValue.toLowerCase()), [paneContainingTriggerSearchValue, label, isSearchFilteringDisabledForPaneContainingTrigger]);
|
|
93
116
|
useDidUpdate(() => {
|
|
94
117
|
if (isPaneInDOM) {
|
|
95
118
|
setIsTransitioningFromRight(true);
|
|
@@ -98,30 +121,13 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
98
121
|
window.requestAnimationFrame(() => setIsFrameAfterPaneAddedToDOM(false));
|
|
99
122
|
}
|
|
100
123
|
registerSubmenu(internalId, isPaneInDOM);
|
|
101
|
-
onIsOpenChange === null || onIsOpenChange === void 0
|
|
124
|
+
onIsOpenChange === null || onIsOpenChange === void 0 || onIsOpenChange(isPaneInDOM);
|
|
102
125
|
}, [isPaneInDOM]);
|
|
103
126
|
|
|
104
127
|
// Omitted dependencies because this should only run on unmount
|
|
105
128
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
106
129
|
useEffect(() => () => registerSubmenu(internalId, false), []);
|
|
107
|
-
|
|
108
|
-
if (thisPanesDepth === totalOpenPaneDepth && flyoutRef.current) {
|
|
109
|
-
setMaskHeight(flyoutRef.current.clientHeight);
|
|
110
|
-
setMaskWidth(flyoutRef.current.clientWidth);
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
// ignoring other dependencies because this should only run when the children change
|
|
114
|
-
[children]);
|
|
115
|
-
useDidUpdate(() => {
|
|
116
|
-
if (thisPanesDepth === totalOpenPaneDepth) {
|
|
117
|
-
window.requestAnimationFrame(() => {
|
|
118
|
-
if (flyoutRef.current) {
|
|
119
|
-
setMaskHeight(flyoutRef.current.clientHeight);
|
|
120
|
-
setMaskWidth(flyoutRef.current.clientWidth);
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
}, [totalOpenPaneDepth, internalSearchValue]);
|
|
130
|
+
useMaskDimensions(flyoutRef.current, animatedLeft, thisPanesDepth, children);
|
|
125
131
|
const handlePaneTransitionEnd = () => {
|
|
126
132
|
var _flyoutRef$current;
|
|
127
133
|
if (animatedLeft) {
|
|
@@ -131,7 +137,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
131
137
|
setIsPaneInDOM(false);
|
|
132
138
|
if (isFocusVisible) {
|
|
133
139
|
var _triggerRef$current;
|
|
134
|
-
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0
|
|
140
|
+
(_triggerRef$current = triggerRef.current) === null || _triggerRef$current === void 0 || _triggerRef$current.focus();
|
|
135
141
|
}
|
|
136
142
|
return;
|
|
137
143
|
}
|
|
@@ -146,7 +152,7 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
146
152
|
}
|
|
147
153
|
setIsTransitioningFromRight(false);
|
|
148
154
|
};
|
|
149
|
-
return
|
|
155
|
+
return /*#__PURE__*/React__default.createElement(Sub, {
|
|
150
156
|
open: isPaneInDOM
|
|
151
157
|
}, /*#__PURE__*/React__default.createElement(SubTrigger, _extends({
|
|
152
158
|
className: classNames(styles.menuItem, styles.subMenu, {
|
|
@@ -163,13 +169,19 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
163
169
|
return;
|
|
164
170
|
}
|
|
165
171
|
if (multiselect && !isSelectedItems && KEYS.CHECK_PARENT.includes(e.key)) {
|
|
166
|
-
onTriggerCheckboxSelect === null || onTriggerCheckboxSelect === void 0
|
|
172
|
+
onTriggerCheckboxSelect === null || onTriggerCheckboxSelect === void 0 || onTriggerCheckboxSelect();
|
|
167
173
|
return;
|
|
168
174
|
}
|
|
169
175
|
if (!isDisabled && KEYS$1.OPEN_SUBMENU.includes(e.key)) {
|
|
170
176
|
setIsPaneInDOM(true);
|
|
171
177
|
} else if (KEYS$1.CLOSE_SUBMENU.includes(e.key)) {
|
|
172
|
-
closeSubmenuContainingTrigger === null || closeSubmenuContainingTrigger === void 0
|
|
178
|
+
closeSubmenuContainingTrigger === null || closeSubmenuContainingTrigger === void 0 || closeSubmenuContainingTrigger(e);
|
|
179
|
+
} else if (paneContainingTriggerIsVirtualized && KEYS$1.NAVIGATE_TOP.includes(e.key)) {
|
|
180
|
+
e.preventDefault();
|
|
181
|
+
focusVirtualBoundaryWithinPaneContainingTrigger('top');
|
|
182
|
+
} else if (paneContainingTriggerIsVirtualized && KEYS$1.NAVIIGATE_BOTTOM.includes(e.key)) {
|
|
183
|
+
e.preventDefault();
|
|
184
|
+
focusVirtualBoundaryWithinPaneContainingTrigger('bottom');
|
|
173
185
|
}
|
|
174
186
|
}
|
|
175
187
|
}, subSelectTriggerProps), multiselect && !isSelectedItems ? /*#__PURE__*/React__default.createElement(AdvancedTableCheckbox, {
|
|
@@ -184,13 +196,13 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
184
196
|
setItems: setItems,
|
|
185
197
|
value: {
|
|
186
198
|
dataTestId: paneDataTestId,
|
|
187
|
-
searchValue: internalSearchValue,
|
|
188
|
-
isSearchFilteringDisabled: isSearchFilteringDisabledForChildren,
|
|
189
199
|
isInteractive: !isTransitioningFromRight && !animatedLeft && !animatedRight,
|
|
190
200
|
closeSubmenu: closeThisSubmenu,
|
|
191
201
|
flyoutRef,
|
|
192
202
|
stickyBoxRef,
|
|
193
|
-
zIndex
|
|
203
|
+
zIndex,
|
|
204
|
+
focusVirtualBoundary: focusVirtualBoundaryInPane,
|
|
205
|
+
isVirtualized
|
|
194
206
|
}
|
|
195
207
|
}, /*#__PURE__*/React__default.createElement(SubContent, _extends({}, rest, {
|
|
196
208
|
loop: !isSearchable,
|
|
@@ -224,12 +236,18 @@ const SubMenu = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
224
236
|
onKeyDown: e => {
|
|
225
237
|
if (KEYS$1.CLOSE_SUBMENU.includes(e.key)) {
|
|
226
238
|
closeThisSubmenu(e);
|
|
239
|
+
} else if (isVirtualized && KEYS$1.NAVIGATE_TOP.includes(e.key)) {
|
|
240
|
+
e.preventDefault();
|
|
241
|
+
focusVirtualBoundaryInPane('top');
|
|
242
|
+
} else if (isVirtualized && KEYS$1.NAVIIGATE_BOTTOM.includes(e.key)) {
|
|
243
|
+
e.preventDefault();
|
|
244
|
+
focusVirtualBoundaryInPane('bottom');
|
|
227
245
|
}
|
|
228
246
|
}
|
|
229
247
|
}, /*#__PURE__*/React__default.createElement(ArrowLeftIcon, {
|
|
230
248
|
size: "small",
|
|
231
249
|
className: styles.backIcon
|
|
232
|
-
}), label)), noSearchResultsNode,
|
|
250
|
+
}), label)), noSearchResultsNode, /*#__PURE__*/React__default.createElement(PaneChildren, null, filteredChildren))));
|
|
233
251
|
});
|
|
234
252
|
var SubMenu$1 = SubMenu;
|
|
235
253
|
|
|
@@ -67,7 +67,7 @@ const PhoneNumberInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
67
67
|
} catch (e) {
|
|
68
68
|
// `parsePhoneNumber` throws an error if the inputs are invalid.
|
|
69
69
|
}
|
|
70
|
-
onChange === null || onChange === void 0
|
|
70
|
+
onChange === null || onChange === void 0 || onChange(internationalNumber, isValidLength, countryCode, value);
|
|
71
71
|
};
|
|
72
72
|
const inputClassNames = classNames(styles.input, {
|
|
73
73
|
[styles.disabled]: isDisabled
|
|
@@ -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 = "._Yam-8 input{padding-left:76px!important}._2PHbV input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._2PHbV input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2PHbV input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._LSADJ{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._LSADJ,._LSADJ._2PHbV:hover{background-color:transparent!important}._LSADJ:hover{background-color:rgba(50,54,58,.08)!important}._LSADJ:active{background-color:rgba(50,54,58,.11)!important}._LSADJ svg{top:2px!important}._tJt-2{position:relative}._cCDs1{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_Yam-8","disabled":"_2PHbV","dropdown":"_LSADJ","container":"_tJt-2","countryCode":"_cCDs1"};
|
|
5
|
+
var stylesheet="._Yam-8 input{padding-left:76px!important}._2PHbV input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._2PHbV input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._2PHbV input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._LSADJ{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._LSADJ,._LSADJ._2PHbV:hover{background-color:transparent!important}._LSADJ:hover{background-color:rgba(50,54,58,.08)!important}._LSADJ:active{background-color:rgba(50,54,58,.11)!important}._LSADJ svg{top:2px!important}._tJt-2{position:relative}._cCDs1{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
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 };
|
|
@@ -22,9 +22,11 @@ const GetSelectItemsFrom = function (startingChildren) {
|
|
|
22
22
|
if (child.type === SelectItem) {
|
|
23
23
|
const {
|
|
24
24
|
label,
|
|
25
|
-
value: childValue
|
|
25
|
+
value: childValue,
|
|
26
|
+
children: childChildren
|
|
26
27
|
} = child.props;
|
|
27
|
-
|
|
28
|
+
const safeLabel = label !== null && label !== void 0 ? label : ['string', 'number'].includes(typeof childChildren) ? childChildren : undefined;
|
|
29
|
+
current.push([childValue, safeLabel]);
|
|
28
30
|
} else if (child.type === SubSelect) {
|
|
29
31
|
current.push(...GetSelectItemsFrom(child.props.children, filter));
|
|
30
32
|
}
|
|
@@ -41,7 +43,8 @@ const Select = _ref => {
|
|
|
41
43
|
onIsOpenChange,
|
|
42
44
|
value,
|
|
43
45
|
isInvalid,
|
|
44
|
-
'data-testid': dataTestId
|
|
46
|
+
'data-testid': dataTestId,
|
|
47
|
+
isVirtualizationDisabled
|
|
45
48
|
} = _ref;
|
|
46
49
|
const [selectedValues, setSelectedValues] = useControllableState(value, onChange, value);
|
|
47
50
|
const selectPaneChildren = useMemo(() => {
|
|
@@ -54,14 +57,14 @@ const Select = _ref => {
|
|
|
54
57
|
let {
|
|
55
58
|
value: _value
|
|
56
59
|
} = _ref2;
|
|
57
|
-
return
|
|
60
|
+
return _value == null || selectedValues.includes(_value);
|
|
58
61
|
}));
|
|
59
62
|
}
|
|
60
63
|
return new Map(GetSelectItemsFrom(selectPaneChildren, _ref3 => {
|
|
61
64
|
let {
|
|
62
65
|
value: _value
|
|
63
66
|
} = _ref3;
|
|
64
|
-
return
|
|
67
|
+
return _value == null || selectedValues === _value;
|
|
65
68
|
}));
|
|
66
69
|
}, [selectedValues, selectPaneChildren]);
|
|
67
70
|
const enabledSelectItems = useMemo(() => new Map(GetSelectItemsFrom(selectPaneChildren, _ref4 => {
|
|
@@ -95,7 +98,8 @@ const Select = _ref => {
|
|
|
95
98
|
isDisabled,
|
|
96
99
|
isOpen,
|
|
97
100
|
onIsOpenChange,
|
|
98
|
-
'data-testid': dataTestId
|
|
101
|
+
'data-testid': dataTestId,
|
|
102
|
+
isVirtualizationDisabled
|
|
99
103
|
};
|
|
100
104
|
return /*#__PURE__*/React__default.createElement(SelectContextProvider, {
|
|
101
105
|
value: {
|
|
@@ -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 = {"isInvalid":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._slREa{box-shadow:inset 0 0 0 1px #b00!important}._mOaSA{width:unset!important;min-height:unset!important;padding:0!important;margin-right:7px}._lawCe{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_slREa","checkbox":"_mOaSA","selectedItem":"_lawCe"};
|
|
5
|
+
var stylesheet="._slREa{box-shadow:inset 0 0 0 1px #b00!important}._mOaSA{width:unset!important;min-height:unset!important;padding:0!important;margin-right:7px}._lawCe{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
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 };
|
|
@@ -42,8 +42,8 @@ const SubSelect = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
42
42
|
if (isDisabled) {
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
|
-
e === null || e === void 0
|
|
46
|
-
setSelectedValues === null || setSelectedValues === void 0
|
|
45
|
+
e === null || e === void 0 || e.stopPropagation();
|
|
46
|
+
setSelectedValues === null || setSelectedValues === void 0 || setSelectedValues(previouslySelectedValues => {
|
|
47
47
|
// exclude duplicates
|
|
48
48
|
const prevSet = new Set(previouslySelectedValues);
|
|
49
49
|
if (checkedState === 'true') {
|
|
@@ -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 = "._wKU3g{display:flex}._hqLBl{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._hqLBl._LtiBm{background-color:#fff}._hqLBl._DWUOJ,._hqLBl._LtiBm._92PMI:not(._hqLBl._LtiBm._iVUEp),._hqLBl._LtiBm._AF6he.focus-visible:not(._-6XQD),._hqLBl._LtiBm._AF6he:focus-visible:not(._-6XQD){background-color:#0b6ed0}._hqLBl._DWUOJ._-6XQD._AF6he,._hqLBl._DWUOJ._-6XQD._iVUEp,._hqLBl._DWUOJ._iVUEp._92PMI{opacity:.4}._M-7mD{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._M-7mD:focus{z-index:1}._73oWS{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._73oWS svg{margin-left:1px}._73oWS._LtiBm{background-color:#0b6ed0;border-color:transparent}._73oWS._LtiBm svg{fill:#fff!important}._73oWS._LtiBm:not(._XAt9I):hover{background-color:#085caf!important}._73oWS._LtiBm:not(._XAt9I):active{background-color:#0854a1!important}._73oWS._LtiBm._XAt9I{opacity:.4}._73oWS._LtiBm._XAt9I svg{background-color:transparent}._73oWS._DWUOJ{border-color:#0b6ed0;background-color:#fff}._73oWS._DWUOJ svg{fill:#0b6ed0!important}._73oWS._DWUOJ:not(._XAt9I):hover{background-color:#eef5fc!important}._73oWS._DWUOJ:not(._XAt9I):active{background-color:#e1edf9!important}._73oWS._DWUOJ._XAt9I{opacity:.4}._73oWS._DWUOJ._XAt9I svg{background-color:transparent}._9tgrH{width:260px}";
|
|
4
|
+
var styles = {"container":"_wKU3g","divider":"_hqLBl","primary":"_LtiBm","mainButtonFocus":"_AF6he","mainButtonDisabled":"_-6XQD","dropdownButtonFocus":"_92PMI","dropdownButtonDisabled":"_iVUEp","secondary":"_DWUOJ","mainButton":"_M-7mD","dropdownButton":"_73oWS","disabled":"_XAt9I","dropdownOption":"_9tgrH"};
|
|
5
|
+
var stylesheet="._wKU3g{display:flex}._hqLBl{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._hqLBl._LtiBm{background-color:#fff}._hqLBl._DWUOJ,._hqLBl._LtiBm._92PMI:not(._hqLBl._LtiBm._iVUEp),._hqLBl._LtiBm._AF6he.focus-visible:not(._-6XQD),._hqLBl._LtiBm._AF6he:focus-visible:not(._-6XQD){background-color:#0b6ed0}._hqLBl._DWUOJ._-6XQD._AF6he,._hqLBl._DWUOJ._-6XQD._iVUEp,._hqLBl._DWUOJ._iVUEp._92PMI{opacity:.4}._M-7mD{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._M-7mD:focus{z-index:1}._73oWS{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._73oWS svg{margin-left:1px}._73oWS._LtiBm{background-color:#0b6ed0;border-color:transparent}._73oWS._LtiBm svg{fill:#fff!important}._73oWS._LtiBm:not(._XAt9I):hover{background-color:#085caf!important}._73oWS._LtiBm:not(._XAt9I):active{background-color:#0854a1!important}._73oWS._LtiBm._XAt9I{opacity:.4}._73oWS._LtiBm._XAt9I svg{background-color:transparent}._73oWS._DWUOJ{border-color:#0b6ed0;background-color:#fff}._73oWS._DWUOJ svg{fill:#0b6ed0!important}._73oWS._DWUOJ:not(._XAt9I):hover{background-color:#eef5fc!important}._73oWS._DWUOJ:not(._XAt9I):active{background-color:#e1edf9!important}._73oWS._DWUOJ._XAt9I{opacity:.4}._73oWS._DWUOJ._XAt9I svg{background-color:transparent}._9tgrH{width:260px}";
|
|
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 = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2q4xP{display:inline-block;position:relative}._Sow9H{width:120px}._Sow9H ._t0a-a._21LvV{transform:rotate(-180deg)}._Sow9H ._t0a-a._7eJ8s{fill:#9d9fa1;opacity:.4}._7dF8v>input:focus{box-shadow:none!important;border:1px solid #898989!important}._CjNpj{width:120px}._CjNpj ._0Q3DN._QdLU8{background-color:#efefef;border-radius:6px}._t0a-a{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._t0a-a._21LvV{transform:rotate(-180deg)}";
|
|
4
|
+
var styles = {"container":"_2q4xP","input":"_Sow9H","icon":"_t0a-a","open":"_21LvV","disabled":"_7eJ8s","ignoreFocusStyle":"_7dF8v","flyout":"_CjNpj","option":"_0Q3DN","exactMatch":"_QdLU8"};
|
|
5
|
+
var stylesheet="._2q4xP{display:inline-block;position:relative}._Sow9H{width:120px}._Sow9H ._t0a-a._21LvV{transform:rotate(-180deg)}._Sow9H ._t0a-a._7eJ8s{fill:#9d9fa1;opacity:.4}._7dF8v>input:focus{box-shadow:none!important;border:1px solid #898989!important}._CjNpj{width:120px}._CjNpj ._0Q3DN._QdLU8{background-color:#efefef;border-radius:6px}._t0a-a{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._t0a-a._21LvV{transform:rotate(-180deg)}";
|
|
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 };
|
|
@@ -25,7 +25,7 @@ const TimePickerIcon = _ref => {
|
|
|
25
25
|
onClick: !isDisabled ? () => {
|
|
26
26
|
var _inputRef$current;
|
|
27
27
|
setIsFlyoutOpen(i => !i);
|
|
28
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0
|
|
28
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
29
29
|
} : undefined,
|
|
30
30
|
onMouseDown: e => e.preventDefault(),
|
|
31
31
|
ref: iconRef
|
|
@@ -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 = {"default":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Rd04I{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._bvIWL{background-color:rgba(50,54,58,.08)}._hwvnZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._J5lyy{color:rgba(81,85,89,.4);cursor:not-allowed}._jdRCb{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._obbD1{color:#085caf;border-color:#085caf}._ecIRD,._obbD1{background:rgba(11,110,208,.11)}._ecIRD{color:#0854a1;border-color:#0854a1}._kbX-y{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LL4IZ{position:relative;display:inline-grid}._LL4IZ svg{fill:currentColor}._LL4IZ ._zAuFG{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._LL4IZ ._zAuFG+._NGbNa{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._LL4IZ ._zAuFG+._NGbNa._cuvFM{padding:5px;max-width:36px;min-width:36px}._LL4IZ ._zAuFG+._NGbNa._tkHXH{padding:0 16px}._LL4IZ ._zAuFG+._NGbNa._rwzIj{padding:0 16px 0 12px}._LL4IZ ._zAuFG:hover+._NGbNa{background-color:rgba(50,54,58,.08)}._LL4IZ ._zAuFG:disabled+._NGbNa{color:rgba(81,85,89,.4);cursor:not-allowed}._LL4IZ ._zAuFG:active+._NGbNa,._LL4IZ ._zAuFG:focus:active+._NGbNa{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._LL4IZ ._zAuFG:checked+._NGbNa{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._LL4IZ ._zAuFG:checked:hover+._NGbNa{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._LL4IZ ._zAuFG:checked:disabled+._NGbNa{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LL4IZ ._zAuFG:checked:active+._NGbNa,._LL4IZ ._zAuFG:checked:focus:active+._NGbNa{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._FlkTD{display:inline-flex;position:relative}._FlkTD:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._FlkTD>*{flex-shrink:0;flex-grow:0}._yxVFy{border:none;margin:0;padding:0}._yxVFy legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._LL4IZ ._zAuFG.focus-visible+._NGbNa,._LL4IZ ._zAuFG:focus-visible+._NGbNa{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_Rd04I","hovered":"_bvIWL","pressed":"_hwvnZ","disabled":"_J5lyy","selectedDefault":"_jdRCb","selectedHovered":"_obbD1","selectedPressed":"_ecIRD","selectedDisabled":"_kbX-y","toggleContainer":"_LL4IZ","toggleInput":"_zAuFG","toggleButton":"_NGbNa","iconOnly":"_cuvFM","text":"_tkHXH","iconText":"_rwzIj","toggleButtonGroup":"_FlkTD","toggleButtonGroupFieldset":"_yxVFy"};
|
|
5
|
+
var stylesheet="._Rd04I{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._bvIWL{background-color:rgba(50,54,58,.08)}._hwvnZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._J5lyy{color:rgba(81,85,89,.4);cursor:not-allowed}._jdRCb{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._obbD1{color:#085caf;border-color:#085caf}._ecIRD,._obbD1{background:rgba(11,110,208,.11)}._ecIRD{color:#0854a1;border-color:#0854a1}._kbX-y{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LL4IZ{position:relative;display:inline-grid}._LL4IZ svg{fill:currentColor}._LL4IZ ._zAuFG{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._LL4IZ ._zAuFG+._NGbNa{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._LL4IZ ._zAuFG+._NGbNa._cuvFM{padding:5px;max-width:36px;min-width:36px}._LL4IZ ._zAuFG+._NGbNa._tkHXH{padding:0 16px}._LL4IZ ._zAuFG+._NGbNa._rwzIj{padding:0 16px 0 12px}._LL4IZ ._zAuFG:hover+._NGbNa{background-color:rgba(50,54,58,.08)}._LL4IZ ._zAuFG:disabled+._NGbNa{color:rgba(81,85,89,.4);cursor:not-allowed}._LL4IZ ._zAuFG:active+._NGbNa,._LL4IZ ._zAuFG:focus:active+._NGbNa{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._LL4IZ ._zAuFG:checked+._NGbNa{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._LL4IZ ._zAuFG:checked:hover+._NGbNa{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._LL4IZ ._zAuFG:checked:disabled+._NGbNa{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LL4IZ ._zAuFG:checked:active+._NGbNa,._LL4IZ ._zAuFG:checked:focus:active+._NGbNa{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._FlkTD{display:inline-flex;position:relative}._FlkTD:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._FlkTD>*{flex-shrink:0;flex-grow:0}._yxVFy{border:none;margin:0;padding:0}._yxVFy legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._LL4IZ ._zAuFG.focus-visible+._NGbNa,._LL4IZ ._zAuFG:focus-visible+._NGbNa{z-index:20;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 { styles as default, stylesheet };
|
package/dist/next/index.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export declare interface AdvancedTableProps {
|
|
|
135
135
|
'data-testid'?: string;
|
|
136
136
|
rowActions?: AdvancedTableActionGroup[];
|
|
137
137
|
rowActionsButtonAriaLabel?: string;
|
|
138
|
+
rowActionsPlacement?: DropdownListProps['placement'];
|
|
138
139
|
}
|
|
139
140
|
|
|
140
141
|
export declare interface AdvancedTableRow {
|
|
@@ -170,7 +171,7 @@ export declare interface CollapsibleSearchInputProps {
|
|
|
170
171
|
'data-testid'?: string;
|
|
171
172
|
}
|
|
172
173
|
|
|
173
|
-
export declare function Combobox({ initialValue, value, onChange, isDisabled, isInvalid, isRequired, isLoading, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-testid': dataTestId, children, }: ComboboxProps): JSX.Element;
|
|
174
|
+
export declare function Combobox({ initialValue, value, onChange, onSubmit, isDisabled, isInvalid, isRequired, isLoading, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, 'data-testid': dataTestId, children, }: ComboboxProps): JSX.Element;
|
|
174
175
|
|
|
175
176
|
export declare const ComboboxFlyout: FunctionComponent<ComboboxFlyoutProps>;
|
|
176
177
|
|
|
@@ -212,6 +213,7 @@ export declare interface ComboboxProps {
|
|
|
212
213
|
initialValue?: string;
|
|
213
214
|
value?: string;
|
|
214
215
|
onChange?: (newValue: string) => void;
|
|
216
|
+
onSubmit?: (value: string) => void;
|
|
215
217
|
isDisabled?: boolean;
|
|
216
218
|
isInvalid?: boolean;
|
|
217
219
|
isRequired?: boolean;
|
|
@@ -240,6 +242,16 @@ export declare interface DrawerProps {
|
|
|
240
242
|
children: ReactNode;
|
|
241
243
|
}
|
|
242
244
|
|
|
245
|
+
declare interface DropdownListProps extends React_2.AllHTMLAttributes<HTMLDivElement> {
|
|
246
|
+
children?: React_2.ReactNode;
|
|
247
|
+
placement?: ComputedPlacement;
|
|
248
|
+
onKeyDown?: (event: React_2.KeyboardEvent<HTMLDivElement>) => void;
|
|
249
|
+
portalTarget?: HTMLElement;
|
|
250
|
+
style?: React_2.CSSProperties;
|
|
251
|
+
'aria-labelledby'?: string;
|
|
252
|
+
[prop: string]: any;
|
|
253
|
+
}
|
|
254
|
+
|
|
243
255
|
declare interface ExternalStackProps extends StackItemProps {
|
|
244
256
|
gap?: string | number;
|
|
245
257
|
paddingLeft?: string | number;
|
|
@@ -294,7 +306,7 @@ export declare interface InputProps extends InputHTMLAttributes<HTMLInputElement
|
|
|
294
306
|
style?: CSSProperties;
|
|
295
307
|
}
|
|
296
308
|
|
|
297
|
-
export declare const Menu: ({ "data-testid": dataTestId, isOpen, onIsOpenChange, isDisabled, children, }: MenuProps) => JSX.Element;
|
|
309
|
+
export declare const Menu: ({ "data-testid": dataTestId, isOpen, onIsOpenChange, isDisabled, children, isVirtualizationDisabled, }: MenuProps) => JSX.Element;
|
|
298
310
|
|
|
299
311
|
export declare const MenuButton: React_2.ForwardRefExoticComponent<MenuButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
300
312
|
|
|
@@ -332,6 +344,7 @@ export declare interface MenuProps {
|
|
|
332
344
|
onIsOpenChange?: (shouldOpen: boolean) => void;
|
|
333
345
|
isDisabled?: boolean;
|
|
334
346
|
children: React_2.ReactNode;
|
|
347
|
+
isVirtualizationDisabled?: boolean;
|
|
335
348
|
}
|
|
336
349
|
|
|
337
350
|
export declare const PhoneNumberInput: React_2.ForwardRefExoticComponent<PhoneNumberInputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
@@ -353,7 +366,7 @@ export declare interface PhoneNumberInputProps {
|
|
|
353
366
|
|
|
354
367
|
declare type RenderCellContent = AdvancedTableColumnConfig['renderCellContent'];
|
|
355
368
|
|
|
356
|
-
export declare const Select: ({ multiselect, children, isDisabled, onChange, isOpen, onIsOpenChange, value, isInvalid, "data-testid": dataTestId, }: SelectProps) => JSX.Element;
|
|
369
|
+
export declare const Select: ({ multiselect, children, isDisabled, onChange, isOpen, onIsOpenChange, value, isInvalid, "data-testid": dataTestId, isVirtualizationDisabled, }: SelectProps) => JSX.Element;
|
|
357
370
|
|
|
358
371
|
export declare const SelectButton: React_2.ForwardRefExoticComponent<SelectButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
359
372
|
|
|
@@ -392,6 +405,7 @@ export declare interface SelectProps {
|
|
|
392
405
|
value?: string | number | (string | number)[];
|
|
393
406
|
isInvalid?: boolean;
|
|
394
407
|
children: React_2.ReactNode;
|
|
408
|
+
isVirtualizationDisabled?: boolean;
|
|
395
409
|
}
|
|
396
410
|
|
|
397
411
|
export declare const SplitButton: React_2.ForwardRefExoticComponent<SplitButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|