@qualtrics/ui-react 2.39.1 → 2.41.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 +29 -0
- package/dist/__shared/cjs/{index-b634ed40.js → index-de17a028.js} +268 -195
- package/dist/__shared/cjs/{index-f5328e70.js → index-ef29a7f6.js} +4 -4
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox.js +6 -2
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/Combobox/Combobox.js +4 -5
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +12 -3
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownOption.js +8 -5
- package/dist/components/Dropdown/DropdownSearch.js +7 -31
- 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/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- 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/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +2 -1
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +4 -3
- package/dist/components/NewMenu/parts/MenuSpinner.js +2 -1
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch.js +2 -1
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- 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/Tooltip.js +4 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/UIProvider/A11yHelpersContext.js +81 -0
- package/dist/components/UIProvider/UIProvider.js +4 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/components/AISpinningTopFilledIcon.js +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.es.js +1 -1
- package/dist/index.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTable.js +15 -8
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/Chat/ChatMessage.js +4 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Form/FormFields/InputField.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/Hooks/usePaneSearch.js +2 -1
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuItem.js +3 -5
- package/dist/next/Menu/MenuPane.js +4 -3
- package/dist/next/Menu/SubMenu.js +3 -3
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select2.js +3 -3
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +8 -4
- package/dist/next/index.js +67 -59
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/icons/package.json +2 -1
- package/next/package.json +3 -2
- package/package.json +11 -10
package/dist/index.d.ts
CHANGED
|
@@ -354,7 +354,7 @@ export declare interface ColorPickerProps {
|
|
|
354
354
|
'data-testid'?: string;
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
export declare const Combobox: React_2.ForwardRefExoticComponent<ComboboxProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
357
|
+
export declare const Combobox: React_2.ForwardRefExoticComponent<ComboboxProps & React_2.RefAttributes<HTMLDivElement> & React_2.RefAttributes<unknown>>;
|
|
358
358
|
|
|
359
359
|
export declare const ComboboxHeader: React_2.ForwardRefExoticComponent<ComboboxHeaderProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
360
360
|
|
|
@@ -3219,7 +3219,7 @@ export declare interface TabsProps extends Omit<React_2.AllHTMLAttributes<HTMLDi
|
|
|
3219
3219
|
onChange?: (tab: number) => void;
|
|
3220
3220
|
}
|
|
3221
3221
|
|
|
3222
|
-
export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
3222
|
+
export declare const Tooltip: React_2.ForwardRefExoticComponent<TooltipProps & React_2.RefAttributes<HTMLDivElement> & React_2.RefAttributes<unknown>>;
|
|
3223
3223
|
|
|
3224
3224
|
export declare interface TooltipProps extends Omit<React_2.AllHTMLAttributes<HTMLDivElement>, 'content'> {
|
|
3225
3225
|
/** Element or component to which the tooltip should be anchored, which must accept a ref. */
|
|
@@ -3269,7 +3269,7 @@ export declare interface TooltipProps extends Omit<React_2.AllHTMLAttributes<HTM
|
|
|
3269
3269
|
[prop: string]: any;
|
|
3270
3270
|
}
|
|
3271
3271
|
|
|
3272
|
-
export declare const UIProvider: React_2.
|
|
3272
|
+
export declare const UIProvider: React_2.ForwardRefExoticComponent<UIProviderProps & React_2.RefAttributes<unknown>>;
|
|
3273
3273
|
|
|
3274
3274
|
export declare interface UIProviderProps {
|
|
3275
3275
|
/** Container element into which Portal content from Dropdown, Menu, Combobox, etc should be rendered */
|
package/dist/index.es.js
CHANGED
|
@@ -102,6 +102,6 @@ export { default as deprecated_ToolbarPanel } from './components/deprecated_Tool
|
|
|
102
102
|
|
|
103
103
|
/* eslint-disable camelcase */
|
|
104
104
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
105
|
-
const version = '2.
|
|
105
|
+
const version = '2.41.0';
|
|
106
106
|
|
|
107
107
|
export { version };
|
package/dist/index.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var index = require('./__shared/cjs/index-
|
|
5
|
+
var index = require('./__shared/cjs/index-de17a028.js');
|
|
6
6
|
require('react');
|
|
7
7
|
require('classnames');
|
|
8
|
-
require('./__shared/cjs/index-
|
|
8
|
+
require('./__shared/cjs/index-ef29a7f6.js');
|
|
9
9
|
require('@babel/runtime-corejs3/helpers/extends');
|
|
10
10
|
require('react-popper');
|
|
11
11
|
require('@popperjs/core');
|
|
12
12
|
require('react-focus-lock');
|
|
13
13
|
require('react-dom');
|
|
14
|
-
require('@react-aria/interactions');
|
|
15
14
|
require('uuid');
|
|
16
15
|
require('@react-hook/resize-observer');
|
|
16
|
+
require('@react-aria/interactions');
|
|
17
17
|
require('react-virtuoso');
|
|
18
18
|
require('@qualtrics/component-styles');
|
|
19
19
|
require('@juggle/resize-observer');
|
|
@@ -21,7 +21,7 @@ require('throttle-debounce');
|
|
|
21
21
|
|
|
22
22
|
/* eslint-disable camelcase */
|
|
23
23
|
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
|
|
24
|
-
const version = '2.
|
|
24
|
+
const version = '2.41.0';
|
|
25
25
|
|
|
26
26
|
exports.Accordion = index.Accordion;
|
|
27
27
|
exports.AccordionHeader = index.AccordionHeader;
|
|
@@ -20,6 +20,7 @@ import '../../components/Dropdown/index.js';
|
|
|
20
20
|
import AdvancedTablePagination from './AdvancedTablePagination.js';
|
|
21
21
|
import AdvancedTableRowExpandButton from './AdvancedTableRowExpandButton.js';
|
|
22
22
|
import useId from '../../hooks/useId/useId.js';
|
|
23
|
+
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
23
24
|
import Dropdown from '../../components/Dropdown/Dropdown.js';
|
|
24
25
|
import DropdownButton from '../../components/Dropdown/DropdownButton.js';
|
|
25
26
|
import IconButton from '../../components/IconButton/IconButton.js';
|
|
@@ -32,7 +33,6 @@ import useControllableState from '../../hooks/useControllableState/useControllab
|
|
|
32
33
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
33
34
|
import useEventCallback from '../../hooks/useEventCallback/useEventCallback.js';
|
|
34
35
|
import canUseDOM from '../../utils/canUseDOM/canUseDOM.js';
|
|
35
|
-
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
36
36
|
import useLatest from '../../hooks/useLatest/useLatest.js';
|
|
37
37
|
import wrapAround from '../../utils/wrapAround/wrapAround.js';
|
|
38
38
|
|
|
@@ -106,6 +106,7 @@ const AdvancedTable = _ref => {
|
|
|
106
106
|
const endingRowIndex = startingRowIndex + rowsPerPage;
|
|
107
107
|
return rows.slice(startingRowIndex, endingRowIndex);
|
|
108
108
|
}, [rows, rowsPerPage, currentPage]);
|
|
109
|
+
const getRowTestId = (dataTestId, rowId) => dataTestId && rowId ? "".concat(dataTestId, "-row-").concat(rowId) : undefined;
|
|
109
110
|
useEffect(() => {
|
|
110
111
|
if (rows && rowsPerPage) {
|
|
111
112
|
const pageCount = Math.ceil(rows.length / rowsPerPage);
|
|
@@ -122,8 +123,11 @@ const AdvancedTable = _ref => {
|
|
|
122
123
|
rowIndex,
|
|
123
124
|
isEditing,
|
|
124
125
|
focusCell,
|
|
125
|
-
focusableElementRef
|
|
126
|
+
focusableElementRef,
|
|
127
|
+
rowId
|
|
126
128
|
} = _ref2;
|
|
129
|
+
const rowDataTestId = getRowTestId(dataTestId, rowId);
|
|
130
|
+
const rowActionMenuDataTestId = getSubDataTestId(rowDataTestId, 'RowActionMenu');
|
|
127
131
|
return /*#__PURE__*/React__default.createElement(Dropdown, {
|
|
128
132
|
value: 0
|
|
129
133
|
}, /*#__PURE__*/React__default.createElement(DropdownButton, null, /*#__PURE__*/React__default.createElement(IconButton, {
|
|
@@ -135,10 +139,12 @@ const AdvancedTable = _ref => {
|
|
|
135
139
|
focusCell();
|
|
136
140
|
e.preventDefault(); // Prevent Safari from exiting full-screen mode
|
|
137
141
|
}
|
|
138
|
-
}
|
|
142
|
+
},
|
|
143
|
+
"data-testid": getSubDataTestId(rowDataTestId, 'RowActionButton')
|
|
139
144
|
}, /*#__PURE__*/React__default.createElement(EllipsisHorizontalIcon, null))), /*#__PURE__*/React__default.createElement(DropdownList, {
|
|
140
145
|
className: styles.rowActionMenuPane,
|
|
141
|
-
placement: rowActionsPlacement
|
|
146
|
+
placement: rowActionsPlacement,
|
|
147
|
+
"data-testid": rowActionMenuDataTestId
|
|
142
148
|
}, !rows ? [] : rowActions === null || rowActions === void 0 ? void 0 : rowActions.map((actionGroup, groupIndex) => {
|
|
143
149
|
var _actionGroup$actions;
|
|
144
150
|
const row = rows[rowIndex];
|
|
@@ -150,7 +156,8 @@ const AdvancedTable = _ref => {
|
|
|
150
156
|
disabled: typeof action.isDisabled === 'function' ? action.isDisabled(row && row.rowPropReference) : action.isDisabled,
|
|
151
157
|
onSelect: () => action.action(row && row.rowPropReference),
|
|
152
158
|
value: "",
|
|
153
|
-
label: ""
|
|
159
|
+
label: "",
|
|
160
|
+
"data-testid": action.actionId && getSubDataTestId(rowActionMenuDataTestId, "action-".concat(action.actionId))
|
|
154
161
|
}, typeof action.label === 'function' ? action.label(row.rowPropReference) : action.label));
|
|
155
162
|
if (actionGroup.header) {
|
|
156
163
|
return /*#__PURE__*/React__default.createElement(DropdownHeader
|
|
@@ -537,7 +544,7 @@ const AdvancedTable = _ref => {
|
|
|
537
544
|
};
|
|
538
545
|
};
|
|
539
546
|
const getAdvancedTableRowExpandButton = (rowId, isExpanded, rowIndex) => /*#__PURE__*/React__default.createElement(AdvancedTableRowExpandButton, {
|
|
540
|
-
"data-testid":
|
|
547
|
+
"data-testid": getSubDataTestId(getRowTestId(dataTestId, rowId), 'expand-button'),
|
|
541
548
|
isRowExpanded: !!isExpanded,
|
|
542
549
|
onClick: e => {
|
|
543
550
|
e.stopPropagation(); // prevent onRowSelect
|
|
@@ -694,8 +701,8 @@ const AdvancedTable = _ref => {
|
|
|
694
701
|
onSelect(e);
|
|
695
702
|
}
|
|
696
703
|
};
|
|
697
|
-
const rowDataTestId =
|
|
698
|
-
const checkboxDataTestId =
|
|
704
|
+
const rowDataTestId = getRowTestId(dataTestId, rowId);
|
|
705
|
+
const checkboxDataTestId = getSubDataTestId(rowDataTestId, 'Checkbox');
|
|
699
706
|
return /*#__PURE__*/React__default.createElement(AdvancedTableRow, _extends({}, rowProps, {
|
|
700
707
|
"aria-rowindex": hasExpandableRows ? undefined : paginatedRowIndex + 2 // aria-rowindex is one-indexed + the column headers row is the first row in the table
|
|
701
708
|
,
|
|
@@ -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 = {"advancedTable":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._RySYJ{overflow:auto;position:relative;max-width:100%;max-height:100%}._kY5h2,._RySYJ{background-color:#fff}._kY5h2{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._7K5VG{margin-bottom:4px}._HjJFk{position:-webkit-sticky;position:sticky;top:0;z-index:100}._NYbbr{display:flex}._NYbbr:focus{outline:none}._NYbbr.focus-visible ._imeJk:after,._NYbbr:focus-visible ._imeJk:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._NYbbr.focus-visible ._imeJk:last-of-type:after,._NYbbr:focus-visible ._imeJk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._NYbbr.focus-visible ._imeJk:first-of-type:after,._NYbbr:focus-visible ._imeJk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._NYbbr.focus-visible ._imeJk._tOxxg:after,._NYbbr:focus-visible ._imeJk._tOxxg:after{right:-3px;bottom:1px}._TGHNA{padding-right:3px}._88OHg{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._PPQBL{display:flex}._PPQBL._nBP5D ._imeJk,._PPQBL._nBP5D ._ykCYe{cursor:pointer}._PPQBL._a7GJx ._imeJk,._PPQBL._a7GJx ._ykCYe{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._PPQBL._a7GJx ._imeJk._tOxxg,._PPQBL._a7GJx ._ykCYe._tOxxg{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._PPQBL._a7GJx ._imeJk._tOxxg ._H-xp7,._PPQBL._a7GJx ._imeJk._tOxxg ._QSPkN,._PPQBL._a7GJx ._imeJk._tOxxg ._ykCYe,._PPQBL._a7GJx ._ykCYe._tOxxg ._H-xp7,._PPQBL._a7GJx ._ykCYe._tOxxg ._QSPkN,._PPQBL._a7GJx ._ykCYe._tOxxg ._ykCYe{background-color:rgba(11,110,208,.08)}._PPQBL._nBP5D:hover:not(._a7GJx) ._imeJk,._PPQBL._nBP5D:hover:not(._a7GJx) ._ykCYe{background-color:#f9f9f9}._PPQBL._nBP5D:active:not(._a7GJx):not(._PPQBL._nBP5D:active:not(._a7GJx):has(._QSPkN:active)) ._imeJk,._PPQBL._nBP5D:active:not(._a7GJx):not(._PPQBL._nBP5D:active:not(._a7GJx):has(._QSPkN:active)) ._ykCYe{background-color:#f3f3f3}._PPQBL:focus{outline:none}._PPQBL.focus-visible ._imeJk:after,._PPQBL:focus-visible ._imeJk:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._PPQBL.focus-visible ._imeJk:last-of-type:after,._PPQBL:focus-visible ._imeJk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._PPQBL.focus-visible ._imeJk:first-of-type:after,._PPQBL:focus-visible ._imeJk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._PPQBL.focus-visible ._imeJk._tOxxg:after,._PPQBL:focus-visible ._imeJk._tOxxg:after{right:-3px;bottom:0}._PPQBL:last-of-type:focus{outline:none}._PPQBL:last-of-type.focus-visible ._imeJk:after,._PPQBL:last-of-type:focus-visible ._imeJk:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._PPQBL:last-of-type.focus-visible ._imeJk:last-of-type:after,._PPQBL:last-of-type:focus-visible ._imeJk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._PPQBL:last-of-type.focus-visible ._imeJk:first-of-type:after,._PPQBL:last-of-type:focus-visible ._imeJk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._PPQBL:last-of-type.focus-visible ._imeJk._tOxxg:after,._PPQBL:last-of-type:focus-visible ._imeJk._tOxxg:after{right:-3px;bottom:1px}._PPQBL:last-of-type ._H-xp7:focus{outline:none}._PPQBL:last-of-type ._H-xp7._-l5ow.focus-visible:after,._PPQBL:last-of-type ._H-xp7._-l5ow:focus-visible:after,._PPQBL:last-of-type ._H-xp7.focus-visible:after,._PPQBL:last-of-type ._H-xp7:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._PPQBL:first-of-type:focus{outline:none}._PPQBL:first-of-type.focus-visible ._imeJk:after,._PPQBL:first-of-type:focus-visible ._imeJk:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._PPQBL:first-of-type.focus-visible ._imeJk:last-of-type:after,._PPQBL:first-of-type:focus-visible ._imeJk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._PPQBL:first-of-type.focus-visible ._imeJk:first-of-type:after,._PPQBL:first-of-type:focus-visible ._imeJk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._PPQBL:first-of-type.focus-visible ._imeJk._tOxxg:after,._PPQBL:first-of-type:focus-visible ._imeJk._tOxxg:after{right:-3px;bottom:0}._PPQBL:first-of-type ._H-xp7:focus{outline:none}._PPQBL:first-of-type ._H-xp7._-l5ow.focus-visible:after,._PPQBL:first-of-type ._H-xp7._-l5ow:focus-visible:after,._PPQBL:first-of-type ._H-xp7.focus-visible:after,._PPQBL:first-of-type ._H-xp7:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._iyzkT{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._iyzkT._R7yWC{flex-grow:1}._iyzkT._qxm7b{cursor:pointer}._iyzkT._qxm7b:hover:not(._zdInF){background-color:#f9f9f9;border-bottom-color:#6a6d70}._iyzkT._qxm7b:active:not(._zdInF){background-color:#f3f3f3}._iyzkT._9Z2Li:not(._zdInF){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._iyzkT._zdInF{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._iyzkT ._YV7xv{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._iyzkT ._YV7xv._-p2TA{left:-1px}._iyzkT ._YV7xv._OdgKN{right:0}._iyzkT ._ltFwZ{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._iyzkT ._ltFwZ._-p2TA{left:-2px}._iyzkT ._ltFwZ._OdgKN{right:-1px}._iyzkT:first-of-type ._-p2TA._YV7xv{left:0;width:2px;border-left:1px solid #fff}._iyzkT:first-of-type ._-p2TA._ltFwZ{left:0}._iyzkT:last-of-type ._OdgKN._YV7xv{right:0;width:2px;border-right:1px solid #fff}._iyzkT:last-of-type ._OdgKN._ltFwZ{right:0}._iyzkT ._7DvDt{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._iyzkT ._7DvDt ._O7t8F{position:absolute;width:2px;right:2px;top:0;bottom:0}._iyzkT ._7DvDt ._O7t8F._fW4VE{background-color:#0a6ed1}._iyzkT ._7DvDt:hover ._O7t8F:not(._fW4VE){background-color:#d9d9d9}._iyzkT ._kbGmM{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._iyzkT ._kbGmM._mIYNy{flex-direction:row-reverse;justify-content:flex-start}._iyzkT ._kbGmM._mIYNy ._ZIyq-{margin:1px 7px 1px 1px}._iyzkT ._kbGmM ._9nTzx{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._iyzkT ._kbGmM ._ZIyq-{margin:1px 1px 1px 7px;flex-shrink:0}._iyzkT ._UjEaZ{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._iyzkT ._cqvqv{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._iyzkT:focus{outline:none}._iyzkT._-l5ow.focus-visible:after,._iyzkT._-l5ow:focus-visible:after,._iyzkT.focus-visible:after,._iyzkT:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._hImE7{margin-right:6px}._tOxxg{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._tOxxg[focus-within]{z-index:30}._tOxxg:focus-within{z-index:30}._H-xp7{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._H-xp7 ._K6XRb{width:100%;padding:12px 12px 11px;overflow:hidden}._H-xp7._zdInF{background-color:#efefef;border-bottom-color:#dfdfe1}._H-xp7._R7yWC{flex-grow:1}._H-xp7:focus{outline:none}._H-xp7._-l5ow.focus-visible:after,._H-xp7._-l5ow:focus-visible:after,._H-xp7.focus-visible:after,._H-xp7:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._ykCYe{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._ykCYe._1u3RD{border-bottom-color:#d9d9d9;background-color:#fff}._QSPkN{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._QSPkN._1u3RD{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._QSPkN:focus input~span,._QSPkN:hover input~span{border-color:#0b6ed0}._qfPNI{justify-content:flex-start}._MrSDA{justify-content:center;text-align:center}._mIYNy{justify-content:flex-end;text-align:right}._0-3Sv{display:none}._1w1j4{opacity:0;height:0;width:0;overflow:hidden}._1w1j4,._8au3d{position:absolute}._8au3d{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._N0SNR{max-width:250px;min-width:150px!important}";
|
|
4
|
+
var styles = {"advancedTable":"_RySYJ","advancedTablePaginationContainer":"_kY5h2","advancedTablePagination":"_7K5VG","advancedTableColumnHeadersRowGroup":"_HjJFk","advancedTableColumnHeaders":"_NYbbr","advancedTableRowChild":"_imeJk","pinnedContainer":"_tOxxg","advancedTableRowGroup":"_TGHNA","advancedTableRowRestrictedWidth":"_88OHg","advancedTableRow":"_PPQBL","hasRowAction":"_nBP5D","advancedTableExpandRowSpacer":"_ykCYe","isSelected":"_a7GJx","advancedTableCheckbox":"_QSPkN","advancedTableCell":"_H-xp7","showFocusRing":"_-l5ow","advancedTableColumnHeader":"_iyzkT","fillRemainingSpace":"_R7yWC","isSortable":"_qxm7b","isDragging":"_zdInF","isSorted":"_9Z2Li","dropTargetLine":"_YV7xv","dropTargetLeft":"_-p2TA","dropTargetRight":"_OdgKN","dropTargetMarker":"_ltFwZ","resizeHandle":"_7DvDt","resizeLine":"_O7t8F","isResizing":"_fW4VE","advancedTableColumnHeaderLabel":"_kbGmM","rightAligned":"_mIYNy","sortIcon":"_ZIyq-","advancedTableColumnHeaderLabelText":"_9nTzx","advancedTableColumnHeaderMenu":"_UjEaZ","advancedTableColumnHeaderMenuHiddenAnchor":"_cqvqv","advancedTableColumnHeaderMenuItemIcon":"_hImE7","advancedTableCellContainer":"_K6XRb","header":"_1u3RD","leftAligned":"_qfPNI","centerAligned":"_MrSDA","hiddenDescription":"_0-3Sv","hiddenLiveRegion":"_1w1j4","dragPreview":"_8au3d","rowActionMenuPane":"_N0SNR"};
|
|
5
|
+
var stylesheet="._RySYJ{overflow:auto;position:relative;max-width:100%;max-height:100%}._kY5h2,._RySYJ{background-color:#fff}._kY5h2{height:70px;z-index:100;display:flex;align-items:flex-end;justify-content:center;position:-webkit-sticky;position:sticky;left:0}._7K5VG{margin-bottom:4px}._HjJFk{position:-webkit-sticky;position:sticky;top:0;z-index:100}._NYbbr{display:flex}._NYbbr:focus{outline:none}._NYbbr.focus-visible ._imeJk:after,._NYbbr:focus-visible ._imeJk:after{content:\"\";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._NYbbr.focus-visible ._imeJk:last-of-type:after,._NYbbr:focus-visible ._imeJk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._NYbbr.focus-visible ._imeJk:first-of-type:after,._NYbbr:focus-visible ._imeJk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._NYbbr.focus-visible ._imeJk._tOxxg:after,._NYbbr:focus-visible ._imeJk._tOxxg:after{right:-3px;bottom:1px}._TGHNA{padding-right:3px}._88OHg{max-width:100%;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}._PPQBL{display:flex}._PPQBL._nBP5D ._imeJk,._PPQBL._nBP5D ._ykCYe{cursor:pointer}._PPQBL._a7GJx ._imeJk,._PPQBL._a7GJx ._ykCYe{background-color:rgba(11,110,208,.08);font-weight:500;box-shadow:inset 0 -1px 0 0 #0b6ed0}._PPQBL._a7GJx ._imeJk._tOxxg,._PPQBL._a7GJx ._ykCYe._tOxxg{background-color:#fff;box-shadow:inset 0 -2px 0 0 #0b6ed0}._PPQBL._a7GJx ._imeJk._tOxxg ._H-xp7,._PPQBL._a7GJx ._imeJk._tOxxg ._QSPkN,._PPQBL._a7GJx ._imeJk._tOxxg ._ykCYe,._PPQBL._a7GJx ._ykCYe._tOxxg ._H-xp7,._PPQBL._a7GJx ._ykCYe._tOxxg ._QSPkN,._PPQBL._a7GJx ._ykCYe._tOxxg ._ykCYe{background-color:rgba(11,110,208,.08)}._PPQBL._nBP5D:hover:not(._a7GJx) ._imeJk,._PPQBL._nBP5D:hover:not(._a7GJx) ._ykCYe{background-color:#f9f9f9}._PPQBL._nBP5D:active:not(._a7GJx):not(._PPQBL._nBP5D:active:not(._a7GJx):has(._QSPkN:active)) ._imeJk,._PPQBL._nBP5D:active:not(._a7GJx):not(._PPQBL._nBP5D:active:not(._a7GJx):has(._QSPkN:active)) ._ykCYe{background-color:#f3f3f3}._PPQBL:focus{outline:none}._PPQBL.focus-visible ._imeJk:after,._PPQBL:focus-visible ._imeJk:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._PPQBL.focus-visible ._imeJk:last-of-type:after,._PPQBL:focus-visible ._imeJk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._PPQBL.focus-visible ._imeJk:first-of-type:after,._PPQBL:focus-visible ._imeJk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._PPQBL.focus-visible ._imeJk._tOxxg:after,._PPQBL:focus-visible ._imeJk._tOxxg:after{right:-3px;bottom:0}._PPQBL:last-of-type:focus{outline:none}._PPQBL:last-of-type.focus-visible ._imeJk:after,._PPQBL:last-of-type:focus-visible ._imeJk:after{content:\"\";display:block;position:absolute;top:-2px;bottom:0;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._PPQBL:last-of-type.focus-visible ._imeJk:last-of-type:after,._PPQBL:last-of-type:focus-visible ._imeJk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._PPQBL:last-of-type.focus-visible ._imeJk:first-of-type:after,._PPQBL:last-of-type:focus-visible ._imeJk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._PPQBL:last-of-type.focus-visible ._imeJk._tOxxg:after,._PPQBL:last-of-type:focus-visible ._imeJk._tOxxg:after{right:-3px;bottom:1px}._PPQBL:last-of-type ._H-xp7:focus{outline:none}._PPQBL:last-of-type ._H-xp7._-l5ow.focus-visible:after,._PPQBL:last-of-type ._H-xp7._-l5ow:focus-visible:after,._PPQBL:last-of-type ._H-xp7.focus-visible:after,._PPQBL:last-of-type ._H-xp7:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._PPQBL:first-of-type:focus{outline:none}._PPQBL:first-of-type.focus-visible ._imeJk:after,._PPQBL:first-of-type:focus-visible ._imeJk:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-bottom:2px solid #0a3f88;border-top:2px solid #0a3f88;z-index:50}._PPQBL:first-of-type.focus-visible ._imeJk:last-of-type:after,._PPQBL:first-of-type:focus-visible ._imeJk:last-of-type:after{border-top-right-radius:2px;border-bottom-right-radius:2px;border-right:2px solid #0a3f88}._PPQBL:first-of-type.focus-visible ._imeJk:first-of-type:after,._PPQBL:first-of-type:focus-visible ._imeJk:first-of-type:after{border-top-left-radius:2px;border-bottom-left-radius:2px;border-left:2px solid #0a3f88}._PPQBL:first-of-type.focus-visible ._imeJk._tOxxg:after,._PPQBL:first-of-type:focus-visible ._imeJk._tOxxg:after{right:-3px;bottom:0}._PPQBL:first-of-type ._H-xp7:focus{outline:none}._PPQBL:first-of-type ._H-xp7._-l5ow.focus-visible:after,._PPQBL:first-of-type ._H-xp7._-l5ow:focus-visible:after,._PPQBL:first-of-type ._H-xp7.focus-visible:after,._PPQBL:first-of-type ._H-xp7:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._iyzkT{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #d9d9d9;flex-shrink:0;font-size:12px;line-height:16px;font-weight:700;color:#6a6d70;background-color:#fff;position:relative}._iyzkT._R7yWC{flex-grow:1}._iyzkT._qxm7b{cursor:pointer}._iyzkT._qxm7b:hover:not(._zdInF){background-color:#f9f9f9;border-bottom-color:#6a6d70}._iyzkT._qxm7b:active:not(._zdInF){background-color:#f3f3f3}._iyzkT._9Z2Li:not(._zdInF){color:#32363a;fill:#32363a;border-bottom-color:#8a8f94}._iyzkT._zdInF{cursor:move;background-color:#efefef;border-bottom-color:#ccc;border-top-left-radius:4px;border-top-right-radius:4px}._iyzkT ._YV7xv{background-color:#d9d9d9;position:absolute;width:1px;top:0;pointer-events:none}._iyzkT ._YV7xv._-p2TA{left:-1px}._iyzkT ._YV7xv._OdgKN{right:0}._iyzkT ._ltFwZ{background-color:#0a6ed1;position:absolute;width:3px;top:4px;bottom:4px;border-radius:4px;pointer-events:none}._iyzkT ._ltFwZ._-p2TA{left:-2px}._iyzkT ._ltFwZ._OdgKN{right:-1px}._iyzkT:first-of-type ._-p2TA._YV7xv{left:0;width:2px;border-left:1px solid #fff}._iyzkT:first-of-type ._-p2TA._ltFwZ{left:0}._iyzkT:last-of-type ._OdgKN._YV7xv{right:0;width:2px;border-right:1px solid #fff}._iyzkT:last-of-type ._OdgKN._ltFwZ{right:0}._iyzkT ._7DvDt{position:absolute;width:6px;right:-3px;top:0;cursor:ew-resize;z-index:50}._iyzkT ._7DvDt ._O7t8F{position:absolute;width:2px;right:2px;top:0;bottom:0}._iyzkT ._7DvDt ._O7t8F._fW4VE{background-color:#0a6ed1}._iyzkT ._7DvDt:hover ._O7t8F:not(._fW4VE){background-color:#d9d9d9}._iyzkT ._kbGmM{display:flex;flex-grow:1;align-items:center;min-width:0;padding:14px 46px 13px 12px}._iyzkT ._kbGmM._mIYNy{flex-direction:row-reverse;justify-content:flex-start}._iyzkT ._kbGmM._mIYNy ._ZIyq-{margin:1px 7px 1px 1px}._iyzkT ._kbGmM ._9nTzx{text-overflow:ellipsis;overflow:hidden;-webkit-hyphens:auto;hyphens:auto;pointer-events:none;overflow-wrap:break-word;display:-webkit-box;-webkit-box-orient:vertical}._iyzkT ._kbGmM ._ZIyq-{margin:1px 1px 1px 7px;flex-shrink:0}._iyzkT ._UjEaZ{position:absolute;right:4px;top:calc(50% - 18px);flex-shrink:0}._iyzkT ._cqvqv{pointer-events:none;position:absolute;top:0;left:0;bottom:0;right:0}._iyzkT:focus{outline:none}._iyzkT._-l5ow.focus-visible:after,._iyzkT._-l5ow:focus-visible:after,._iyzkT.focus-visible:after,._iyzkT:focus-visible:after{content:\"\";display:block;position:absolute;top:0;bottom:-1px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._hImE7{margin-right:6px}._tOxxg{display:flex;border-right:3px solid #e5e5e5;position:-webkit-sticky;position:sticky;left:0;background-color:#fff;z-index:20}._tOxxg[focus-within]{z-index:30}._tOxxg:focus-within{z-index:30}._H-xp7{display:flex;align-items:center;min-height:44px;width:200px;min-width:80px;border-bottom:1px solid #eee;flex-shrink:0;font-size:14px;line-height:20px;overflow-wrap:break-word;color:#32363a;position:relative}._H-xp7 ._K6XRb{width:100%;padding:12px 12px 11px;overflow:hidden}._H-xp7._zdInF{background-color:#efefef;border-bottom-color:#dfdfe1}._H-xp7._R7yWC{flex-grow:1}._H-xp7:focus{outline:none}._H-xp7._-l5ow.focus-visible:after,._H-xp7._-l5ow:focus-visible:after,._H-xp7.focus-visible:after,._H-xp7:focus-visible:after{content:\"\";display:block;position:absolute;top:-2px;bottom:-2px;left:0;right:0;border-radius:2px;border:2px solid #0a3f88;z-index:10}._ykCYe{display:flex!important;min-height:44px!important;align-items:center;justify-content:right;border-bottom:1px solid #eee;flex-shrink:0;position:relative}._ykCYe._1u3RD{border-bottom-color:#d9d9d9;background-color:#fff}._QSPkN{display:flex;align-items:center;justify-content:center;min-height:44px;width:40px;border-bottom:1px solid #eee;padding:12px 12px 11px;flex-shrink:0;cursor:pointer}._QSPkN._1u3RD{border-bottom-color:#d9d9d9;padding:14px 12px 13px}._QSPkN:focus input~span,._QSPkN:hover input~span{border-color:#0b6ed0}._qfPNI{justify-content:flex-start}._MrSDA{justify-content:center;text-align:center}._mIYNy{justify-content:flex-end;text-align:right}._0-3Sv{display:none}._1w1j4{opacity:0;height:0;width:0;overflow:hidden}._1w1j4,._8au3d{position:absolute}._8au3d{cursor:move;background-color:rgba(11,110,208,.08);border-radius:4px;z-index:1000;pointer-events:none}._N0SNR{max-width:250px;min-width:150px!important}";
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import React__default, { forwardRef, useRef } from 'react';
|
|
2
|
-
import { useFocusVisible } from '@react-aria/interactions';
|
|
3
2
|
import '../../icons/index.es.js';
|
|
4
3
|
import { userIcon, messageVariant, messageLabelContainer, messageLabel, content } from './ChatMessage.css.js';
|
|
5
4
|
import { useMessageContext } from './MessageContext.js';
|
|
6
5
|
import '../../utils/index.js';
|
|
6
|
+
import { useIsFocusVisible, conditionalA11yHelpersWrapper } from '../../components/UIProvider/A11yHelpersContext.js';
|
|
7
7
|
import RawUserIcon from '../../icons/components/UserIcon.js';
|
|
8
8
|
import AISpinningTopFilledIcon from '../../icons/components/AISpinningTopFilledIcon.js';
|
|
9
9
|
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
@@ -29,7 +29,7 @@ const ChatMessage = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
29
29
|
const messageContentRef = useRef(null);
|
|
30
30
|
const {
|
|
31
31
|
isFocusVisible
|
|
32
|
-
} =
|
|
32
|
+
} = useIsFocusVisible();
|
|
33
33
|
const {
|
|
34
34
|
messagesRef,
|
|
35
35
|
messageIndex,
|
|
@@ -64,5 +64,6 @@ const ChatMessage = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
64
64
|
}, children))
|
|
65
65
|
);
|
|
66
66
|
});
|
|
67
|
+
var ChatMessage$1 = conditionalA11yHelpersWrapper(ChatMessage);
|
|
67
68
|
|
|
68
|
-
export { ChatMessage as default };
|
|
69
|
+
export { ChatMessage$1 as default };
|
|
@@ -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 = {"collapsibleSearchInput":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._SjdbU{display:inline-block;width:36px;transition:width .25s ease-out}._-DIIc{width:100%}._XkEWb>input{padding-right:0!important}._qWEge>svg{fill:#515559}";
|
|
4
|
+
var styles = {"collapsibleSearchInput":"_SjdbU","searchInput":"_-DIIc","searchInputCollapsed":"_XkEWb","iconButton":"_qWEge"};
|
|
5
|
+
var stylesheet="._SjdbU{display:inline-block;width:36px;transition:width .25s ease-out}._-DIIc{width:100%}._XkEWb>input{padding-right:0!important}._qWEge>svg{fill:#515559}";
|
|
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 = {"loadingSpinner":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._BpLg7 :after{background-color:#515559!important}._-Er2F>input:focus{box-shadow:none!important;border:1px solid #898989!important}._2Z-S9{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._2Z-S9 ._Zix-S ._sMlge{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._2Z-S9 ._Zix-S:first-child ._P5-FA{display:none}._2Z-S9 ._b3vsz{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._2Z-S9 ._b3vsz:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._2Z-S9 ._b3vsz:hover._TZn4L{background-color:#e4effa}._2Z-S9 ._b3vsz._TZn4L{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._2Z-S9 ._b3vsz:active:not(._TZn4L){background-color:#e8e9e9}";
|
|
4
|
+
var styles = {"loadingSpinner":"_BpLg7","ignoreFocusStyle":"_-Er2F","flyout":"_2Z-S9","group":"_Zix-S","header":"_sMlge","divider":"_P5-FA","option":"_b3vsz","selected":"_TZn4L"};
|
|
5
|
+
var stylesheet="._BpLg7 :after{background-color:#515559!important}._-Er2F>input:focus{box-shadow:none!important;border:1px solid #898989!important}._2Z-S9{max-width:500px;padding:4px 0;background-color:#fff;border:1px solid #eee;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);z-index:1000;overflow-x:hidden;overflow-y:auto;overflow:hidden auto}._2Z-S9 ._Zix-S ._sMlge{display:flex;align-items:center;min-height:40px;padding:10px 12px;color:#32363a;font-size:12px;line-height:16px;font-weight:700;word-break:break-word}._2Z-S9 ._Zix-S:first-child ._P5-FA{display:none}._2Z-S9 ._b3vsz{display:flex;align-items:center;min-height:40px;padding:10px 12px;font-size:14px;color:#32363a;word-break:break-word;outline:none;cursor:pointer}._2Z-S9 ._b3vsz:hover{background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._2Z-S9 ._b3vsz:hover._TZn4L{background-color:#e4effa}._2Z-S9 ._b3vsz._TZn4L{background-color:#ebf3fb;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._2Z-S9 ._b3vsz:active:not(._TZn4L){background-color:#e8e9e9}";
|
|
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 = {"drawer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._r0272{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._uTno9{visibility:hidden}._SoNs2{position:fixed}._kHPp1{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._CFiih{padding-top:8px}._x2SO6{margin-left:12px}";
|
|
4
|
+
var styles = {"drawer":"_r0272","hidden":"_uTno9","anchoredToBody":"_SoNs2","header":"_kHPp1","title":"_CFiih","closeButton":"_x2SO6"};
|
|
5
|
+
var stylesheet="._r0272{position:absolute;top:0;height:100%;overflow:auto;color:#32363a;background-color:#fff;border-right:1px solid #eee;z-index:1000;padding:12px 20px 20px;transition:left .5s}._uTno9{visibility:hidden}._SoNs2{position:fixed}._kHPp1{display:flex;justify-content:space-between;align-items:start;line-height:20px;font-size:16px;padding-bottom:12px}._CFiih{padding-top:8px}._x2SO6{margin-left:12px}";
|
|
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 = {"button":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._PbCOC{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._PbCOC:hover:not(._QIvg3){background-color:rgba(50,54,58,.08)}._PbCOC:hover:not(._QIvg3)._Oz--H{border-color:#085caf;background-color:rgba(11,110,208,.04)}._PbCOC:hover:not(._QIvg3)._Oz--H ._1wU7w{color:#32363a}._PbCOC:hover:not(._QIvg3)._Oz--H ._YKRdZ{fill:#32363a}._PbCOC:hover:not(._QIvg3)._Oz--H ._epB8A{fill:#085caf}._PbCOC:hover:not(._QIvg3)._Oz--H ._fRLLZ{background-color:rgba(11,110,208,.11)}._PbCOC:hover:not(._QIvg3)._Oz--H ._fRLLZ ._2X5DQ{color:#085caf}._PbCOC:active:not(._QIvg3){background-color:#e8e9e9}._PbCOC:active:not(._QIvg3)._Oz--H{background-color:rgba(11,110,208,.11);border-color:#0854a1}._PbCOC:active:not(._QIvg3)._Oz--H ._epB8A{fill:#0854a1}._PbCOC:active:not(._QIvg3)._Oz--H ._fRLLZ{background-color:rgba(11,110,208,.11)}._PbCOC:active:not(._QIvg3)._Oz--H ._fRLLZ ._2X5DQ{color:#0854a1}._PbCOC._QIvg3{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._PbCOC._Oz--H{border-color:#0b6ed0}._YKRdZ{fill:#515559;margin-right:4px}._1wU7w{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1wU7w+._fRLLZ{margin-left:6px}._1wU7w._QIvg3{color:#74777a}._fRLLZ{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._2X5DQ{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._epB8A{fill:#515559}._epB8A._QIvg3,._epB8A._QIvg3._Oz--H{fill:rgba(116,119,122,.4)}._epB8A._Oz--H{fill:#0b6ed0}._epB8A._u1mK7{transform:rotate(-180deg)}._PbCOC.focus-visible,._PbCOC:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"button":"_PbCOC","disabled":"_QIvg3","selected":"_Oz--H","label":"_1wU7w","lockIcon":"_YKRdZ","chevronIcon":"_epB8A","selectedFiltersContainer":"_fRLLZ","selectedFilters":"_2X5DQ","open":"_u1mK7"};
|
|
5
|
+
var stylesheet="._PbCOC{display:flex;justify-content:space-between;align-items:center;max-width:100%;min-width:76px;height:36px;padding:0 6px 0 12px;outline:none;font-size:14px;background-color:#fff;border:1px solid #898989;border-radius:20px;cursor:pointer}._PbCOC:hover:not(._QIvg3){background-color:rgba(50,54,58,.08)}._PbCOC:hover:not(._QIvg3)._Oz--H{border-color:#085caf;background-color:rgba(11,110,208,.04)}._PbCOC:hover:not(._QIvg3)._Oz--H ._1wU7w{color:#32363a}._PbCOC:hover:not(._QIvg3)._Oz--H ._YKRdZ{fill:#32363a}._PbCOC:hover:not(._QIvg3)._Oz--H ._epB8A{fill:#085caf}._PbCOC:hover:not(._QIvg3)._Oz--H ._fRLLZ{background-color:rgba(11,110,208,.11)}._PbCOC:hover:not(._QIvg3)._Oz--H ._fRLLZ ._2X5DQ{color:#085caf}._PbCOC:active:not(._QIvg3){background-color:#e8e9e9}._PbCOC:active:not(._QIvg3)._Oz--H{background-color:rgba(11,110,208,.11);border-color:#0854a1}._PbCOC:active:not(._QIvg3)._Oz--H ._epB8A{fill:#0854a1}._PbCOC:active:not(._QIvg3)._Oz--H ._fRLLZ{background-color:rgba(11,110,208,.11)}._PbCOC:active:not(._QIvg3)._Oz--H ._fRLLZ ._2X5DQ{color:#0854a1}._PbCOC._QIvg3{background-color:#fafafa;border-color:#e5e5e5;cursor:not-allowed}._PbCOC._Oz--H{border-color:#0b6ed0}._YKRdZ{fill:#515559;margin-right:4px}._1wU7w{max-width:180px;margin-right:3px;color:#515559;fill:#515559;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._1wU7w+._fRLLZ{margin-left:6px}._1wU7w._QIvg3{color:#74777a}._fRLLZ{display:flex;justify-content:center;align-items:center;max-width:350px;flex:1;min-width:0;height:24px;margin-right:3px;padding:0 10px;background-color:#ebf3fb;border-radius:20px}._2X5DQ{color:#0b6ed0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._epB8A{fill:#515559}._epB8A._QIvg3,._epB8A._QIvg3._Oz--H{fill:rgba(116,119,122,.4)}._epB8A._Oz--H{fill:#0b6ed0}._epB8A._u1mK7{transform:rotate(-180deg)}._PbCOC.focus-visible,._PbCOC:focus-visible{box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"input":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Q1veZ{margin:6px 0}._Om4QT{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._RQFi0{display:inline-block}._RQFi0:has([aria-expanded=true]) ._Om4QT,._RQFi0[focus-within] ._Om4QT{color:#0b6ed0}._RQFi0:focus-within ._Om4QT,._RQFi0:has([aria-expanded=true]) ._Om4QT{color:#0b6ed0}._RQFi0:has(input:disabled) ._Om4QT{color:rgba(50,54,58,.4)}._RQFi0:not(:has(input:disabled)) ._Om4QT{cursor:pointer}._RF2Mm{margin-top:4px}._RF2Mm:first-of-type{margin-top:6px}";
|
|
4
|
+
var styles = {"input":"_Q1veZ","label":"_Om4QT","formFieldWrapper":"_RQFi0","caption":"_RF2Mm"};
|
|
5
|
+
var stylesheet="._Q1veZ{margin:6px 0}._Om4QT{line-height:20px;color:#515559;display:flex;margin-bottom:4px}._RQFi0{display:inline-block}._RQFi0:has([aria-expanded=true]) ._Om4QT,._RQFi0[focus-within] ._Om4QT{color:#0b6ed0}._RQFi0:focus-within ._Om4QT,._RQFi0:has([aria-expanded=true]) ._Om4QT{color:#0b6ed0}._RQFi0:has(input:disabled) ._Om4QT{color:rgba(50,54,58,.4)}._RQFi0:not(:has(input:disabled)) ._Om4QT{cursor:pointer}._RF2Mm{margin-top:4px}._RF2Mm:first-of-type{margin-top:6px}";
|
|
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 inputClasses = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._V1Oh3{position:relative;display:inline-block;height:36px;width:100%}._DttDx{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._DttDx:hover{cursor:pointer;background-color:#f5f5f5}._DttDx:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._DttDx:disabled,._DttDx[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._DttDx:disabled::-moz-placeholder,._DttDx[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._DttDx:disabled::placeholder,._DttDx[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._DttDx:invalid,._DttDx[aria-invalid=true]{border-color:#b00}._DttDx:invalid:focus,._DttDx[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._DttDx[type=number]{-moz-appearance:textfield}._DttDx[type=number]::-webkit-inner-spin-button,._DttDx[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._DttDx::-moz-placeholder{color:#515559;opacity:1}._DttDx::placeholder{color:#515559;opacity:1}._-M-O4{pointer-events:none;color:#515559;fill:#515559}._8Xs0h{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._HTcuH{color:#515559;font-size:16px}._Mdvwy{left:0;margin-left:6px}._b7tsj,._Mdvwy{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._b7tsj{right:0;margin-right:6px}";
|
|
4
|
+
var inputClasses = {"container":"_V1Oh3","input":"_DttDx","addOn":"_-M-O4","addOnVerticalCenter":"_8Xs0h","addOnTextNode":"_HTcuH","leftAddOn":"_Mdvwy","rightAddOn":"_b7tsj"};
|
|
5
|
+
var stylesheet="._V1Oh3{position:relative;display:inline-block;height:36px;width:100%}._DttDx{width:100%;height:100%;padding:8px 12px;color:#32363a;caret-color:#32363a;font-size:14px;background-color:#fafafa;border:1px solid #898989;border-radius:4px;outline:none}._DttDx:hover{cursor:pointer;background-color:#f5f5f5}._DttDx:focus{background-color:#fafafa;cursor:text;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88;outline:none;border-color:transparent}._DttDx:disabled,._DttDx[aria-disabled=true]{background-color:#fafafa;border-color:#e5e5e5;color:#9d9fa1;-webkit-text-fill-color:#9d9fa1;cursor:not-allowed}._DttDx:disabled::-moz-placeholder,._DttDx[aria-disabled=true]::-moz-placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._DttDx:disabled::placeholder,._DttDx[aria-disabled=true]::placeholder{color:#aaabad;-webkit-text-fill-color:#aaabad}._DttDx:invalid,._DttDx[aria-invalid=true]{border-color:#b00}._DttDx:invalid:focus,._DttDx[aria-invalid=true]:focus{box-shadow:0 0 0 2px #fff,0 0 0 4px #900000;border-color:transparent}._DttDx[type=number]{-moz-appearance:textfield}._DttDx[type=number]::-webkit-inner-spin-button,._DttDx[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}._DttDx::-moz-placeholder{color:#515559;opacity:1}._DttDx::placeholder{color:#515559;opacity:1}._-M-O4{pointer-events:none;color:#515559;fill:#515559}._8Xs0h{display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._HTcuH{color:#515559;font-size:16px}._Mdvwy{left:0;margin-left:6px}._b7tsj,._Mdvwy{pointer-events:none;color:#515559;fill:#515559;display:flex;flex-direction:column;align-items:center;position:absolute;top:50%;transform:translateY(-50%)}._b7tsj{right:0;margin-right:6px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { inputClasses as default, stylesheet };
|
|
@@ -154,7 +154,8 @@ function usePaneSearch(_ref) {
|
|
|
154
154
|
[]);
|
|
155
155
|
const noSearchResultsNode = filteredChildren.length === 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
156
156
|
className: classNames(styles.menuItem, styles.noItems),
|
|
157
|
-
"aria-live": "assertive"
|
|
157
|
+
"aria-live": "assertive",
|
|
158
|
+
role: "menuitem"
|
|
158
159
|
}, noMatchesText);
|
|
159
160
|
return {
|
|
160
161
|
internalSearchValue,
|
package/dist/next/Menu/Menu2.js
CHANGED
|
@@ -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 = {"buttonContainer":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._veBxz{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._veBxz>._1o-uK{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._veBxz>._1o-uK:hover:not([aria-disabled=true]){background-color:#f5f5f5}._veBxz>._1o-uK.focus-visible,._veBxz>._1o-uK:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._veBxz>._1o-uK+._05EML{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._veBxz>._1o-uK[data-state=open]+._05EML{transform:rotate(-180deg) translateY(50%)}._veBxz>._1o-uK[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._veBxz>._1o-uK[aria-disabled=true]+._05EML{fill:#515559;opacity:.4}._yCcOP>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._yCcOP>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._F7PPU{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._F7PPU ._yngiy{height:100%;overflow-y:scroll}._F7PPU._vDoJV{margin-left:30px;opacity:0}._F7PPU._673JW{margin-left:-30px}._BVO-z{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._BVO-z._7lWAs{cursor:unset}._BVO-z ._DkiwA{fill:#32363a;margin-right:4px}._BVO-z:focus,._BVO-z:hover:not(._BVO-z._7lWAs){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._BVO-z[aria-disabled=true]{cursor:not-allowed;opacity:.65}._BVO-z._QVQg4{padding-right:32px}._BVO-z._QVQg4 ._05EML{position:absolute;height:100%;right:3px;fill:#515559}._BVO-z._MF7JF{pointer-events:none}._nMPQk{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._nMPQk._cqADD{padding-top:52px}._diMjI{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._8t6SS{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._8t6SS._673JW{opacity:0}._8t6SS._673JW>._ooQe3{margin-left:-30px}._8t6SS._vDoJV{opacity:0}._8t6SS._vDoJV>._ooQe3{margin-left:30px}._8t6SS>._ooQe3{transition:margin-left .35s;width:100%}._8t6SS._MF7JF{pointer-events:none}body.keyboard-user ._BVO-z:hover:not(:focus){background-color:#fff;box-shadow:none}";
|
|
4
|
+
var styles = {"buttonContainer":"_veBxz","button":"_1o-uK","rightIcon":"_05EML","maskContainer":"_yCcOP","flyout":"_F7PPU","scrollContainer":"_yngiy","animatedRight":"_vDoJV","animatedLeft":"_673JW","menuItem":"_BVO-z","noItems":"_7lWAs","backIcon":"_DkiwA","subMenu":"_QVQg4","unresponsive":"_MF7JF","stickyBox":"_nMPQk","isSearchable":"_cqADD","searchBoxesContainer":"_diMjI","searchBox":"_8t6SS","searchInput":"_ooQe3"};
|
|
5
|
+
var stylesheet="._veBxz{position:relative;display:inline-flex;height:36px;min-width:60px;cursor:pointer}._veBxz>._1o-uK{cursor:unset;width:100%;height:100%;padding:0 28px 0 12px;border-radius:4px;white-space:nowrap;line-height:20px;font-size:14px;text-align:left;outline:none;border:none;box-shadow:inset 0 0 0 1px #898989;color:#515559;background-color:#fafafa;overflow:hidden;text-overflow:ellipsis}._veBxz>._1o-uK:hover:not([aria-disabled=true]){background-color:#f5f5f5}._veBxz>._1o-uK.focus-visible,._veBxz>._1o-uK:focus-visible{background-color:#fafafa;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}._veBxz>._1o-uK+._05EML{fill:#515559;position:absolute;pointer-events:none;right:4px;top:50%;transform:translateY(-50%)}._veBxz>._1o-uK[data-state=open]+._05EML{transform:rotate(-180deg) translateY(50%)}._veBxz>._1o-uK[aria-disabled=true]{box-shadow:inset 0 0 0 1px #e5e5e5;color:#74777a;cursor:not-allowed}._veBxz>._1o-uK[aria-disabled=true]+._05EML{fill:#515559;opacity:.4}._yCcOP>[data-radix-popper-content-wrapper]{overflow:hidden;min-width:auto!important;background-color:#fff;max-width:350px;box-shadow:0 8px 20px rgba(0,0,0,.1),0 4px 6px rgba(0,0,0,.05);border-radius:4px;z-index:var(--mask-z-index)!important;width:var(--mask-width);height:var(--mask-height);transition:height .35s,width .35s}._yCcOP>[data-radix-popper-content-wrapper] [data-radix-popper-content-wrapper]{transform:translateZ(0)!important}._F7PPU{margin:0;padding-bottom:var(--flyout-bottom-padding);background:#fff;transition:margin-left .35s,opacity .35s,height .35s,width .35s;opacity:1;max-width:350px;width:-webkit-max-content;width:-moz-max-content;width:max-content;min-width:200px;max-height:var(--flyout-max-height)}._F7PPU ._yngiy{height:100%;overflow-y:scroll}._F7PPU._vDoJV{margin-left:30px;opacity:0}._F7PPU._673JW{margin-left:-30px}._BVO-z{position:relative;padding:10px 12px;display:flex;flex-direction:row;min-height:40px;align-items:center;cursor:pointer;outline:none;word-break:break-word;font-size:14px;color:#32363a;width:100%}._BVO-z._7lWAs{cursor:unset}._BVO-z ._DkiwA{fill:#32363a;margin-right:4px}._BVO-z:focus,._BVO-z:hover:not(._BVO-z._7lWAs){background-color:#efefef;box-shadow:inset 0 0 0 2px #0a3f88,inset 0 0 0 4px #fff;border-radius:6px}._BVO-z[aria-disabled=true]{cursor:not-allowed;opacity:.65}._BVO-z._QVQg4{padding-right:32px}._BVO-z._QVQg4 ._05EML{position:absolute;height:100%;right:3px;fill:#515559}._BVO-z._MF7JF{pointer-events:none}._nMPQk{position:-webkit-sticky;position:sticky;top:0;background-color:#fff;border-bottom:1px solid #e8e8e8}._nMPQk._cqADD{padding-top:52px}._diMjI{pointer-events:none;position:fixed;left:0;top:0;transition:width .35s;min-width:200px;width:var(--mask-width);max-width:350px}._8t6SS{position:absolute;padding:8px;border-radius:4px 4px 0 0;pointer-events:auto;opacity:1;width:100%;transition:opacity .35s,margin-left .35s}._8t6SS._673JW{opacity:0}._8t6SS._673JW>._ooQe3{margin-left:-30px}._8t6SS._vDoJV{opacity:0}._8t6SS._vDoJV>._ooQe3{margin-left:30px}._8t6SS>._ooQe3{transition:margin-left .35s;width:100%}._8t6SS._MF7JF{pointer-events:none}body.keyboard-user ._BVO-z:hover:not(:focus){background-color:#fff;box-shadow: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 };
|
|
@@ -2,13 +2,13 @@ import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
|
2
2
|
import React__default, { useRef, useMemo } from 'react';
|
|
3
3
|
import { Item } from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
import classNames from 'classnames';
|
|
5
|
-
import { useFocusVisible } from '@react-aria/interactions';
|
|
6
5
|
import styles from './Menu2.js';
|
|
7
6
|
import { usePaneContext, useItemContext } from './MenuContext.js';
|
|
8
7
|
import '../../utils/index.js';
|
|
9
8
|
import { DATA_TESTID_SUFFIXES } from '../Select/constants.js';
|
|
10
9
|
import { DATA_TESTID_SUFFIXES as DATA_TESTID_SUFFIXES$1, KEYS } from './constants.js';
|
|
11
10
|
import useSelectContext from '../Select/SelectContext.js';
|
|
11
|
+
import { conditionalA11yHelpersWrapper, useIsFocusVisible } from '../../components/UIProvider/A11yHelpersContext.js';
|
|
12
12
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
13
13
|
import mergeRefs from '../../utils/mergeRefs/mergeRefs.js';
|
|
14
14
|
|
|
@@ -43,9 +43,7 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
43
43
|
const index = useMemo(() => virtualIndex !== null && virtualIndex !== void 0 ? virtualIndex : childIndex, [childIndex, virtualIndex]);
|
|
44
44
|
const {
|
|
45
45
|
isFocusVisible
|
|
46
|
-
} =
|
|
47
|
-
isTextInput: true
|
|
48
|
-
});
|
|
46
|
+
} = useIsFocusVisible(true);
|
|
49
47
|
const dataTestId = getSubDataTestId(menuParentDataTestId === null || menuParentDataTestId === void 0 ? void 0 : menuParentDataTestId.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), String(index));
|
|
50
48
|
const handleFocus = () => {
|
|
51
49
|
if (itemRef.current && flyoutNode && isFocusVisible) {
|
|
@@ -98,6 +96,6 @@ const MenuItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
98
96
|
}
|
|
99
97
|
}), (!children || typeof children === 'string') && label ? label : children);
|
|
100
98
|
});
|
|
101
|
-
var MenuItem$1 = MenuItem;
|
|
99
|
+
var MenuItem$1 = conditionalA11yHelpersWrapper(MenuItem, 'textInput');
|
|
102
100
|
|
|
103
101
|
export { MenuItem$1 as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
2
|
import React__default, { useState, useCallback, useRef, useMemo } from 'react';
|
|
3
3
|
import { Portal, Content } from '@radix-ui/react-dropdown-menu';
|
|
4
|
-
import { useFocusVisible } from '@react-aria/interactions';
|
|
5
4
|
import classNames from 'classnames';
|
|
6
5
|
import styles from './Menu2.js';
|
|
7
6
|
import { usePortalTarget } from '../../components/UIProvider/PortalTargetContext.js';
|
|
@@ -21,6 +20,7 @@ import PaneChildren from './PaneChildren.js';
|
|
|
21
20
|
import useFocusVirtualBoundary from './Hooks/useFocusVirtualBoundary.js';
|
|
22
21
|
import useIsVirtualized from './Hooks/useIsVirtualized.js';
|
|
23
22
|
import useMaskDimensions from './Hooks/useMaskDimensions.js';
|
|
23
|
+
import { useIsFocusVisible, conditionalA11yHelpersWrapper } from '../../components/UIProvider/A11yHelpersContext.js';
|
|
24
24
|
import useId from '../../hooks/useId/useId.js';
|
|
25
25
|
import getSubDataTestId from '../../utils/getSubDataTestId/getSubDataTestId.js';
|
|
26
26
|
import { useDidUpdate } from '../../hooks/useDidUpdate/useDidUpdate.js';
|
|
@@ -135,7 +135,7 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
135
135
|
const focusVirtualBoundary = useFocusVirtualBoundary(items);
|
|
136
136
|
const {
|
|
137
137
|
isFocusVisible
|
|
138
|
-
} =
|
|
138
|
+
} = useIsFocusVisible();
|
|
139
139
|
const menuSearchInputRef = useRef(null);
|
|
140
140
|
const maskIsReady = useMaskDimensions(flyoutNode, animatedLeft, thisPanesDepth, children, isVirtualized, isVirtualizationReady);
|
|
141
141
|
useDidUpdate(() => {
|
|
@@ -254,5 +254,6 @@ const MenuPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
|
254
254
|
}));
|
|
255
255
|
}) : null))));
|
|
256
256
|
});
|
|
257
|
+
var MenuPane$1 = conditionalA11yHelpersWrapper(MenuPane);
|
|
257
258
|
|
|
258
|
-
export { MenuPane as default };
|
|
259
|
+
export { MenuPane$1 as default };
|