@qualtrics/ui-react 2.25.0 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/__shared/cjs/{index-610a1e02.js → index-88aa3bce.js} +267 -256
- package/dist/__shared/cjs/{index-5b3b3406.js → index-e6893573.js} +23 -3
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +1 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Hue.js +1 -1
- package/dist/components/ColorPicker/Palette.js +1 -1
- package/dist/components/ColorPicker/Saturation.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxIcon.js +1 -1
- package/dist/components/Combobox/ComboboxInput.js +1 -1
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +4 -4
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownList.js +1 -1
- package/dist/components/Dropdown/DropdownOption.js +2 -2
- package/dist/components/Dropdown/DropdownSearch.js +2 -2
- package/dist/components/FilePicker/FilePicker.js +2 -2
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +2 -2
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/Icon/IconTypes.js +5 -0
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +7 -7
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -2
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +3 -3
- package/dist/components/NumberStepper/NumberStepper.js +2 -2
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +3 -3
- package/dist/components/Pagination/PaginationPageInput.js +8 -8
- package/dist/components/Pagination/PaginationPreviousButton.js +3 -3
- package/dist/components/Popover/Popover.js +5 -5
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/Alpha.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
- package/dist/components/deprecated_ColorPicker/Hue.js +2 -2
- package/dist/components/deprecated_ColorPicker/Saturation.js +2 -2
- package/dist/components/deprecated_ColorPicker/Swatch.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +1 -1
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +5 -5
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +2 -2
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +1 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/AIChatbotIcon.js +6 -0
- package/dist/icons/components/LinesIcon.js +6 -0
- package/dist/icons/components/RobotConversationalIcon.js +6 -0
- package/dist/icons/components/ScatterPlotIcon.js +6 -0
- package/dist/icons/components/UnmoderatedUserTestingIcon.js +6 -0
- package/dist/icons/index.d.ts +10 -0
- package/dist/icons/index.es.js +5 -0
- package/dist/icons/index.js +6 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.es.js +1 -1
- package/dist/index.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +36 -8
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +2 -2
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/CollectionGrid/CollectionGrid.js +34 -0
- package/dist/next/CollectionGrid/CollectionGridItem.js +18 -0
- package/dist/next/CollectionGrid/index.js +2 -0
- package/dist/next/Combobox/Combobox.js +2 -0
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +2 -0
- package/dist/next/Combobox/ComboboxOption.js +2 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Drawer/Drawer.js +2 -2
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +2 -2
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/LayoutGrid/LayoutGrid.js +38 -0
- package/dist/next/LayoutGrid/LayoutGridItem.js +23 -0
- package/dist/next/LayoutGrid/index.js +2 -0
- package/dist/next/Menu/Hooks/useFocusVirtualBoundary.js +41 -0
- package/dist/next/Menu/Hooks/useIsVirtualized.js +8 -0
- package/dist/next/Menu/Hooks/useMaskDimensions.js +59 -0
- package/dist/next/Menu/{useMutationObserver.js → Hooks/useMutationObserver.js} +1 -1
- package/dist/next/Menu/{usePaneSearch.js → Hooks/usePaneSearch.js} +61 -24
- package/dist/next/Menu/Menu.js +19 -24
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuContext.js +5 -1
- package/dist/next/Menu/MenuItem.js +21 -14
- package/dist/next/Menu/MenuPane.js +73 -54
- package/dist/next/Menu/PaneChildren.js +47 -0
- package/dist/next/Menu/SubMenu.js +57 -39
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +10 -6
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/Select/SubSelect.js +2 -2
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/Stack/Stack.js +1 -18
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +1 -1
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +57 -3
- package/dist/next/index.es.js +6 -0
- package/dist/next/index.js +614 -268
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/GridChildrenWrapper/GridChildrenWrapper.js +30 -0
- package/dist/utils/GridChildrenWrapper/index.js +1 -0
- package/dist/utils/Popper/Popper.js +2 -2
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +1 -1
- package/icons/package.json +3 -1
- package/next/package.json +4 -2
- package/package.json +5 -3
- /package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +0 -0
|
@@ -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 = "._mtXPp input{padding-left:76px!important}._yiooe input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._yiooe input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._yiooe input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._1l3kl{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._1l3kl,._1l3kl._yiooe:hover{background-color:transparent!important}._1l3kl:hover{background-color:rgba(50,54,58,.08)!important}._1l3kl:active{background-color:rgba(50,54,58,.11)!important}._1l3kl svg{top:2px!important}._L1AsW{position:relative}._2nJEm{position:absolute;top:18px;left:12px;line-height:0;font-size:14px;color:#32363a;z-index:101;pointer-events:none}";
|
|
4
|
+
var styles = {"input":"_mtXPp","disabled":"_yiooe","dropdown":"_1l3kl","container":"_L1AsW","countryCode":"_2nJEm"};
|
|
5
|
+
var stylesheet="._mtXPp input{padding-left:76px!important}._yiooe input{background-color:#e5e5e5!important;color:#9d9fa1!important;cursor:not-allowed!important;-webkit-text-fill-color:#9d9fa1}._yiooe input::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._yiooe input::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._1l3kl{position:absolute!important;left:4px;right:4px;bottom:4px;z-index:100;width:67px;height:28px!important;border-radius:4px}._1l3kl,._1l3kl._yiooe:hover{background-color:transparent!important}._1l3kl:hover{background-color:rgba(50,54,58,.08)!important}._1l3kl:active{background-color:rgba(50,54,58,.11)!important}._1l3kl svg{top:2px!important}._L1AsW{position:relative}._2nJEm{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 = "._9lxAF{box-shadow:inset 0 0 0 1px #b00!important}._DuAgx{width:unset!important;min-height:unset!important;padding:0!important;margin-right:7px}._05qyc{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_9lxAF","checkbox":"_DuAgx","selectedItem":"_05qyc"};
|
|
5
|
+
var stylesheet="._9lxAF{box-shadow:inset 0 0 0 1px #b00!important}._DuAgx{width:unset!important;min-height:unset!important;padding:0!important;margin-right:7px}._05qyc{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 = "._iGbIg{display:flex}._R3C6c{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._R3C6c._Tll-X{background-color:#fff}._R3C6c._Tll-X._5vbJh:not(._R3C6c._Tll-X._vDA5M),._R3C6c._Tll-X._NDixR.focus-visible:not(._ZLeuB),._R3C6c._Tll-X._NDixR:focus-visible:not(._ZLeuB),._R3C6c._xX1Cd{background-color:#0b6ed0}._R3C6c._xX1Cd._vDA5M._5vbJh,._R3C6c._xX1Cd._ZLeuB._NDixR,._R3C6c._xX1Cd._ZLeuB._vDA5M{opacity:.4}._VwBky{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._VwBky:focus{z-index:1}._i-e52{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}._i-e52 svg{margin-left:1px}._i-e52._Tll-X{background-color:#0b6ed0;border-color:transparent}._i-e52._Tll-X svg{fill:#fff!important}._i-e52._Tll-X:not(._z5zPQ):hover{background-color:#085caf!important}._i-e52._Tll-X:not(._z5zPQ):active{background-color:#0854a1!important}._i-e52._Tll-X._z5zPQ{opacity:.4}._i-e52._Tll-X._z5zPQ svg{background-color:transparent}._i-e52._xX1Cd{border-color:#0b6ed0;background-color:#fff}._i-e52._xX1Cd svg{fill:#0b6ed0!important}._i-e52._xX1Cd:not(._z5zPQ):hover{background-color:#eef5fc!important}._i-e52._xX1Cd:not(._z5zPQ):active{background-color:#e1edf9!important}._i-e52._xX1Cd._z5zPQ{opacity:.4}._i-e52._xX1Cd._z5zPQ svg{background-color:transparent}._I1D4u{width:260px}";
|
|
4
|
+
var styles = {"container":"_iGbIg","divider":"_R3C6c","primary":"_Tll-X","mainButtonFocus":"_NDixR","mainButtonDisabled":"_ZLeuB","dropdownButtonFocus":"_5vbJh","dropdownButtonDisabled":"_vDA5M","secondary":"_xX1Cd","mainButton":"_VwBky","dropdownButton":"_i-e52","disabled":"_z5zPQ","dropdownOption":"_I1D4u"};
|
|
5
|
+
var stylesheet="._iGbIg{display:flex}._R3C6c{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._R3C6c._Tll-X{background-color:#fff}._R3C6c._Tll-X._5vbJh:not(._R3C6c._Tll-X._vDA5M),._R3C6c._Tll-X._NDixR.focus-visible:not(._ZLeuB),._R3C6c._Tll-X._NDixR:focus-visible:not(._ZLeuB),._R3C6c._xX1Cd{background-color:#0b6ed0}._R3C6c._xX1Cd._vDA5M._5vbJh,._R3C6c._xX1Cd._ZLeuB._NDixR,._R3C6c._xX1Cd._ZLeuB._vDA5M{opacity:.4}._VwBky{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._VwBky:focus{z-index:1}._i-e52{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}._i-e52 svg{margin-left:1px}._i-e52._Tll-X{background-color:#0b6ed0;border-color:transparent}._i-e52._Tll-X svg{fill:#fff!important}._i-e52._Tll-X:not(._z5zPQ):hover{background-color:#085caf!important}._i-e52._Tll-X:not(._z5zPQ):active{background-color:#0854a1!important}._i-e52._Tll-X._z5zPQ{opacity:.4}._i-e52._Tll-X._z5zPQ svg{background-color:transparent}._i-e52._xX1Cd{border-color:#0b6ed0;background-color:#fff}._i-e52._xX1Cd svg{fill:#0b6ed0!important}._i-e52._xX1Cd:not(._z5zPQ):hover{background-color:#eef5fc!important}._i-e52._xX1Cd:not(._z5zPQ):active{background-color:#e1edf9!important}._i-e52._xX1Cd._z5zPQ{opacity:.4}._i-e52._xX1Cd._z5zPQ svg{background-color:transparent}._I1D4u{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 };
|
package/dist/next/Stack/Stack.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import React__default, { forwardRef
|
|
2
|
-
import { HStack } from './HStack.js';
|
|
3
|
-
import { VStack } from './VStack.js';
|
|
4
|
-
import { StackItem } from './StackItem.js';
|
|
1
|
+
import React__default, { forwardRef } from 'react';
|
|
5
2
|
|
|
6
3
|
const convertAlignment = alignment => {
|
|
7
4
|
const alignmentMap = {
|
|
@@ -44,20 +41,6 @@ const Stack = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
44
41
|
'aria-describedby': ariaDescribedBy,
|
|
45
42
|
'data-testid': dataTestId
|
|
46
43
|
} = _ref;
|
|
47
|
-
const checkIsStackItem = child => {
|
|
48
|
-
if (!(child.type && (child.type === StackItem || child.type === HStack || child.type === VStack))) {
|
|
49
|
-
throw new Error('Stack received an invalid child. Only StackItems are valid children of Stacks.');
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
useEffect(() => {
|
|
53
|
-
if (Array.isArray(children)) {
|
|
54
|
-
children.forEach(child => {
|
|
55
|
-
checkIsStackItem(child);
|
|
56
|
-
});
|
|
57
|
-
} else if (children) {
|
|
58
|
-
checkIsStackItem(children);
|
|
59
|
-
}
|
|
60
|
-
}, [children]);
|
|
61
44
|
const alignment = direction === 'horizontal' ? alignChildrenY : alignChildrenX;
|
|
62
45
|
const justification = direction === 'horizontal' ? alignChildrenX : alignChildrenY;
|
|
63
46
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -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 = "._XZEa4{display:inline-block;position:relative}._swgrH{width:120px}._swgrH ._HleDR._sBSli{transform:rotate(-180deg)}._swgrH ._HleDR._SwxQE{fill:#9d9fa1;opacity:.4}._ja7Ma>input:focus{box-shadow:none!important;border:1px solid #898989!important}._wUI-U{width:120px}._wUI-U ._qt1F-._trZdw{background-color:#efefef;border-radius:6px}._HleDR{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._HleDR._sBSli{transform:rotate(-180deg)}";
|
|
4
|
+
var styles = {"container":"_XZEa4","input":"_swgrH","icon":"_HleDR","open":"_sBSli","disabled":"_SwxQE","ignoreFocusStyle":"_ja7Ma","flyout":"_wUI-U","option":"_qt1F-","exactMatch":"_trZdw"};
|
|
5
|
+
var stylesheet="._XZEa4{display:inline-block;position:relative}._swgrH{width:120px}._swgrH ._HleDR._sBSli{transform:rotate(-180deg)}._swgrH ._HleDR._SwxQE{fill:#9d9fa1;opacity:.4}._ja7Ma>input:focus{box-shadow:none!important;border:1px solid #898989!important}._wUI-U{width:120px}._wUI-U ._qt1F-._trZdw{background-color:#efefef;border-radius:6px}._HleDR{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._HleDR._sBSli{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 = "._wLXVP{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._t1sGQ{background-color:rgba(50,54,58,.08)}._fmi-x{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._x-xdc{color:rgba(81,85,89,.4);cursor:not-allowed}._bUWve{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._pYs-j{color:#085caf;border-color:#085caf}._puWbh,._pYs-j{background:rgba(11,110,208,.11)}._puWbh{color:#0854a1;border-color:#0854a1}._-cRCV{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._emtvG{position:relative;display:inline-grid}._emtvG svg{fill:currentColor}._emtvG ._crG-p{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._emtvG ._crG-p+._bVpoF{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}._emtvG ._crG-p+._bVpoF._brD49{padding:5px;max-width:36px;min-width:36px}._emtvG ._crG-p+._bVpoF._dG7c5{padding:0 16px}._emtvG ._crG-p+._bVpoF._7hq3B{padding:0 16px 0 12px}._emtvG ._crG-p:hover+._bVpoF{background-color:rgba(50,54,58,.08)}._emtvG ._crG-p:disabled+._bVpoF{color:rgba(81,85,89,.4);cursor:not-allowed}._emtvG ._crG-p:active+._bVpoF,._emtvG ._crG-p:focus:active+._bVpoF{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._emtvG ._crG-p:checked+._bVpoF{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._emtvG ._crG-p:checked:hover+._bVpoF{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._emtvG ._crG-p:checked:disabled+._bVpoF{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._emtvG ._crG-p:checked:active+._bVpoF,._emtvG ._crG-p:checked:focus:active+._bVpoF{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._bmbMD{display:inline-flex;position:relative}._bmbMD:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._bmbMD>*{flex-shrink:0;flex-grow:0}._nfgYX{border:none;margin:0;padding:0}._nfgYX legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._emtvG ._crG-p.focus-visible+._bVpoF,._emtvG ._crG-p:focus-visible+._bVpoF{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_wLXVP","hovered":"_t1sGQ","pressed":"_fmi-x","disabled":"_x-xdc","selectedDefault":"_bUWve","selectedHovered":"_pYs-j","selectedPressed":"_puWbh","selectedDisabled":"_-cRCV","toggleContainer":"_emtvG","toggleInput":"_crG-p","toggleButton":"_bVpoF","iconOnly":"_brD49","text":"_dG7c5","iconText":"_7hq3B","toggleButtonGroup":"_bmbMD","toggleButtonGroupFieldset":"_nfgYX"};
|
|
5
|
+
var stylesheet="._wLXVP{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._t1sGQ{background-color:rgba(50,54,58,.08)}._fmi-x{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._x-xdc{color:rgba(81,85,89,.4);cursor:not-allowed}._bUWve{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._pYs-j{color:#085caf;border-color:#085caf}._puWbh,._pYs-j{background:rgba(11,110,208,.11)}._puWbh{color:#0854a1;border-color:#0854a1}._-cRCV{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._emtvG{position:relative;display:inline-grid}._emtvG svg{fill:currentColor}._emtvG ._crG-p{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._emtvG ._crG-p+._bVpoF{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}._emtvG ._crG-p+._bVpoF._brD49{padding:5px;max-width:36px;min-width:36px}._emtvG ._crG-p+._bVpoF._dG7c5{padding:0 16px}._emtvG ._crG-p+._bVpoF._7hq3B{padding:0 16px 0 12px}._emtvG ._crG-p:hover+._bVpoF{background-color:rgba(50,54,58,.08)}._emtvG ._crG-p:disabled+._bVpoF{color:rgba(81,85,89,.4);cursor:not-allowed}._emtvG ._crG-p:active+._bVpoF,._emtvG ._crG-p:focus:active+._bVpoF{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._emtvG ._crG-p:checked+._bVpoF{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._emtvG ._crG-p:checked:hover+._bVpoF{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._emtvG ._crG-p:checked:disabled+._bVpoF{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._emtvG ._crG-p:checked:active+._bVpoF,._emtvG ._crG-p:checked:focus:active+._bVpoF{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._bmbMD{display:inline-flex;position:relative}._bmbMD:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._bmbMD>*{flex-shrink:0;flex-grow:0}._nfgYX{border:none;margin:0;padding:0}._nfgYX legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._emtvG ._crG-p.focus-visible+._bVpoF,._emtvG ._crG-p:focus-visible+._bVpoF{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,27 @@ export declare interface CollapsibleSearchInputProps {
|
|
|
170
171
|
'data-testid'?: string;
|
|
171
172
|
}
|
|
172
173
|
|
|
173
|
-
export declare
|
|
174
|
+
export declare const CollectionGrid: React_2.ForwardRefExoticComponent<CollectionGridProps & React_2.RefAttributes<HTMLElement>>;
|
|
175
|
+
|
|
176
|
+
export declare const CollectionGridItem: React_2.ForwardRefExoticComponent<CollectionGridItemProps & React_2.RefAttributes<HTMLElement>>;
|
|
177
|
+
|
|
178
|
+
export declare interface CollectionGridItemProps {
|
|
179
|
+
asChild?: boolean;
|
|
180
|
+
children?: React_2.ReactNode & React_2.RefAttributes<HTMLElement>;
|
|
181
|
+
'data-testid'?: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export declare interface CollectionGridProps extends CollectionGridItemProps {
|
|
185
|
+
minColumnWidth?: string;
|
|
186
|
+
maxColumnWidth?: string;
|
|
187
|
+
numColumns?: number | string;
|
|
188
|
+
columnGap?: React_2.CSSProperties['columnGap'];
|
|
189
|
+
rowGap?: React_2.CSSProperties['rowGap'];
|
|
190
|
+
gap?: React_2.CSSProperties['gap'];
|
|
191
|
+
rowHeight?: React_2.CSSProperties['gridAutoRows'];
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
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
195
|
|
|
175
196
|
export declare const ComboboxFlyout: FunctionComponent<ComboboxFlyoutProps>;
|
|
176
197
|
|
|
@@ -212,6 +233,7 @@ export declare interface ComboboxProps {
|
|
|
212
233
|
initialValue?: string;
|
|
213
234
|
value?: string;
|
|
214
235
|
onChange?: (newValue: string) => void;
|
|
236
|
+
onSubmit?: (value: string) => void;
|
|
215
237
|
isDisabled?: boolean;
|
|
216
238
|
isInvalid?: boolean;
|
|
217
239
|
isRequired?: boolean;
|
|
@@ -240,6 +262,16 @@ export declare interface DrawerProps {
|
|
|
240
262
|
children: ReactNode;
|
|
241
263
|
}
|
|
242
264
|
|
|
265
|
+
declare interface DropdownListProps extends React_2.AllHTMLAttributes<HTMLDivElement> {
|
|
266
|
+
children?: React_2.ReactNode;
|
|
267
|
+
placement?: ComputedPlacement;
|
|
268
|
+
onKeyDown?: (event: React_2.KeyboardEvent<HTMLDivElement>) => void;
|
|
269
|
+
portalTarget?: HTMLElement;
|
|
270
|
+
style?: React_2.CSSProperties;
|
|
271
|
+
'aria-labelledby'?: string;
|
|
272
|
+
[prop: string]: any;
|
|
273
|
+
}
|
|
274
|
+
|
|
243
275
|
declare interface ExternalStackProps extends StackItemProps {
|
|
244
276
|
gap?: string | number;
|
|
245
277
|
paddingLeft?: string | number;
|
|
@@ -294,7 +326,27 @@ export declare interface InputProps extends InputHTMLAttributes<HTMLInputElement
|
|
|
294
326
|
style?: CSSProperties;
|
|
295
327
|
}
|
|
296
328
|
|
|
297
|
-
export declare const
|
|
329
|
+
export declare const LayoutGrid: React_2.ForwardRefExoticComponent<LayoutGridProps & React_2.RefAttributes<HTMLElement>>;
|
|
330
|
+
|
|
331
|
+
export declare const LayoutGridItem: React_2.ForwardRefExoticComponent<LayoutGridItemProps & React_2.RefAttributes<HTMLElement>>;
|
|
332
|
+
|
|
333
|
+
export declare interface LayoutGridItemProps {
|
|
334
|
+
area?: React_2.CSSProperties['gridArea'];
|
|
335
|
+
asChild?: boolean;
|
|
336
|
+
'data-testid'?: string;
|
|
337
|
+
children?: React_2.ReactNode & React_2.RefAttributes<HTMLElement>;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
export declare interface LayoutGridProps extends LayoutGridItemProps {
|
|
341
|
+
rowHeights?: Array<string>;
|
|
342
|
+
columnWidths: Array<string>;
|
|
343
|
+
areas: Array<Array<string>>;
|
|
344
|
+
columnGap?: React_2.CSSProperties['columnGap'];
|
|
345
|
+
rowGap?: React_2.CSSProperties['rowGap'];
|
|
346
|
+
gap?: React_2.CSSProperties['gap'];
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export declare const Menu: ({ "data-testid": dataTestId, isOpen, onIsOpenChange, isDisabled, children, isVirtualizationDisabled, }: MenuProps) => JSX.Element;
|
|
298
350
|
|
|
299
351
|
export declare const MenuButton: React_2.ForwardRefExoticComponent<MenuButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
300
352
|
|
|
@@ -332,6 +384,7 @@ export declare interface MenuProps {
|
|
|
332
384
|
onIsOpenChange?: (shouldOpen: boolean) => void;
|
|
333
385
|
isDisabled?: boolean;
|
|
334
386
|
children: React_2.ReactNode;
|
|
387
|
+
isVirtualizationDisabled?: boolean;
|
|
335
388
|
}
|
|
336
389
|
|
|
337
390
|
export declare const PhoneNumberInput: React_2.ForwardRefExoticComponent<PhoneNumberInputProps & React_2.RefAttributes<HTMLInputElement>>;
|
|
@@ -353,7 +406,7 @@ export declare interface PhoneNumberInputProps {
|
|
|
353
406
|
|
|
354
407
|
declare type RenderCellContent = AdvancedTableColumnConfig['renderCellContent'];
|
|
355
408
|
|
|
356
|
-
export declare const Select: ({ multiselect, children, isDisabled, onChange, isOpen, onIsOpenChange, value, isInvalid, "data-testid": dataTestId, }: SelectProps) => JSX.Element;
|
|
409
|
+
export declare const Select: ({ multiselect, children, isDisabled, onChange, isOpen, onIsOpenChange, value, isInvalid, "data-testid": dataTestId, isVirtualizationDisabled, }: SelectProps) => JSX.Element;
|
|
357
410
|
|
|
358
411
|
export declare const SelectButton: React_2.ForwardRefExoticComponent<SelectButtonProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
359
412
|
|
|
@@ -392,6 +445,7 @@ export declare interface SelectProps {
|
|
|
392
445
|
value?: string | number | (string | number)[];
|
|
393
446
|
isInvalid?: boolean;
|
|
394
447
|
children: React_2.ReactNode;
|
|
448
|
+
isVirtualizationDisabled?: boolean;
|
|
395
449
|
}
|
|
396
450
|
|
|
397
451
|
export declare const SplitButton: React_2.ForwardRefExoticComponent<SplitButtonProps & React_2.RefAttributes<HTMLDivElement>>;
|
package/dist/next/index.es.js
CHANGED
|
@@ -11,6 +11,8 @@ import './TimePicker/index.js';
|
|
|
11
11
|
import './ToggleButton/index.js';
|
|
12
12
|
import './Stack/index.js';
|
|
13
13
|
import './Select/index.js';
|
|
14
|
+
import './LayoutGrid/index.js';
|
|
15
|
+
import './CollectionGrid/index.js';
|
|
14
16
|
export { AdvancedTable } from './AdvancedTable/AdvancedTable.js';
|
|
15
17
|
export { default as CollapsibleSearchInput } from './CollapsibleSearchInput/CollapsibleSearchInput.js';
|
|
16
18
|
export { default as Input } from './Input/Input.js';
|
|
@@ -40,5 +42,9 @@ export { default as SelectButton } from './Select/SelectButton.js';
|
|
|
40
42
|
export { default as SelectItem } from './Select/SelectItem.js';
|
|
41
43
|
export { default as SelectPane } from './Select/SelectPane.js';
|
|
42
44
|
export { default as SubSelect } from './Select/SubSelect.js';
|
|
45
|
+
export { LayoutGrid } from './LayoutGrid/LayoutGrid.js';
|
|
46
|
+
export { LayoutGridItem } from './LayoutGrid/LayoutGridItem.js';
|
|
47
|
+
export { CollectionGrid } from './CollectionGrid/CollectionGrid.js';
|
|
48
|
+
export { CollectionGridItem } from './CollectionGrid/CollectionGridItem.js';
|
|
43
49
|
|
|
44
50
|
/* eslint-disable camelcase */
|