@qualtrics/ui-react 2.24.2 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/dist/__shared/cjs/{index-8f52588d.js → index-ae6df097.js} +3 -3
- package/dist/__shared/cjs/{index-b7a35c2e.js → index-dc6f69ac.js} +262 -256
- package/dist/components/Accordion/Accordion2.js +3 -3
- package/dist/components/Button/Button.js +3 -3
- package/dist/components/Button/Button2.js +1 -1
- package/dist/components/ButtonGroup/ButtonGroup2.js +3 -3
- package/dist/components/Checkbox/Checkbox2.js +3 -3
- package/dist/components/Checkbox/VisualCheckbox2.js +3 -3
- package/dist/components/ColorPicker/Alpha.js +1 -1
- package/dist/components/ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/ColorPicker/Hue.js +1 -1
- package/dist/components/ColorPicker/Palette.js +1 -1
- package/dist/components/ColorPicker/Saturation.js +1 -1
- package/dist/components/Combobox/Combobox.js +3 -3
- package/dist/components/Combobox/Combobox2.js +3 -3
- package/dist/components/Combobox/ComboboxIcon.js +1 -1
- package/dist/components/Combobox/ComboboxInput.js +1 -1
- package/dist/components/ConfigPane/ConfigPane2.js +3 -3
- package/dist/components/Divider/Divider2.js +3 -3
- package/dist/components/Dropdown/Dropdown.js +4 -4
- package/dist/components/Dropdown/Dropdown2.js +3 -3
- package/dist/components/Dropdown/DropdownButton.js +6 -6
- package/dist/components/Dropdown/DropdownList.js +1 -1
- package/dist/components/Dropdown/DropdownOption.js +2 -2
- package/dist/components/Dropdown/DropdownSearch.js +2 -2
- package/dist/components/FilePicker/FilePicker.js +2 -2
- package/dist/components/FilePicker/FilePicker2.js +3 -3
- package/dist/components/FormField/Caption.js +3 -3
- package/dist/components/FormField/FormField2.js +3 -3
- package/dist/components/FormField/FormFieldContext.js +3 -3
- package/dist/components/FullScreenTakeover/FullScreenTakeover.js +2 -2
- package/dist/components/FullScreenTakeover/FullScreenTakeover2.js +3 -3
- package/dist/components/IconButton/IconButton2.js +3 -3
- package/dist/components/InlineInput/InlineInput.js +7 -7
- package/dist/components/InlineInput/InlineInput2.js +3 -3
- package/dist/components/Input/Input2.js +3 -3
- package/dist/components/Input/InputField.js +2 -2
- package/dist/components/InputGroup/InputGroup2.js +3 -3
- package/dist/components/Label/Label2.js +3 -3
- package/dist/components/Link/Link2.js +3 -3
- package/dist/components/LoadingSpinner/LoadingSpinner2.js +3 -3
- package/dist/components/LogicEditor/LogicEditor.js +1 -1
- package/dist/components/LogicEditor/LogicEditor2.js +3 -3
- package/dist/components/Modal/Modal.js +6 -6
- package/dist/components/Modal/Modal2.js +3 -3
- package/dist/components/NewMenu/BaseMenu.js +3 -3
- package/dist/components/NewMenu/NewMenu.js +3 -3
- package/dist/components/NewMenu/SelectMenu/SelectMenu.js +2 -2
- package/dist/components/NewMenu/parts/ArrowNav/ArrowNav.js +3 -3
- package/dist/components/NumberStepper/NumberStepper.js +2 -2
- package/dist/components/NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/PageLayout/PageLayout.js +3 -3
- package/dist/components/Pagination/Pagination.js +1 -1
- package/dist/components/Pagination/Pagination2.js +3 -3
- package/dist/components/Pagination/PaginationNextButton.js +3 -3
- package/dist/components/Pagination/PaginationPageInput.js +8 -8
- package/dist/components/Pagination/PaginationPreviousButton.js +3 -3
- package/dist/components/Popover/Popover.js +5 -5
- package/dist/components/Popover/Popover2.js +3 -3
- package/dist/components/QuickSearch/QuickSearch2.js +3 -3
- package/dist/components/QuickSearch/QuickSearchInput.js +4 -4
- package/dist/components/Radio/Radio2.js +3 -3
- package/dist/components/SearchInput/SearchInput.js +2 -2
- package/dist/components/SearchInput/SearchInput2.js +3 -3
- package/dist/components/SidebarNav/SidebarNav.js +1 -1
- package/dist/components/SidebarNav/SidebarNav2.js +3 -3
- package/dist/components/Slider/Slider2.js +3 -3
- package/dist/components/Switch/Switch2.js +3 -3
- package/dist/components/Table/Table2.js +3 -3
- package/dist/components/Tabs/Tabs2.js +3 -3
- package/dist/components/Tooltip/Tooltip2.js +3 -3
- package/dist/components/deprecated_ColorPicker/Alpha.js +2 -2
- package/dist/components/deprecated_ColorPicker/ColorPicker.js +1 -1
- package/dist/components/deprecated_ColorPicker/ColorPicker2.js +3 -3
- package/dist/components/deprecated_ColorPicker/HexInput.js +1 -1
- package/dist/components/deprecated_ColorPicker/Hue.js +2 -2
- package/dist/components/deprecated_ColorPicker/Saturation.js +2 -2
- package/dist/components/deprecated_ColorPicker/Swatch.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepper2.js +3 -3
- package/dist/components/deprecated_NumberStepper/NumberStepperDecrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperIncrement.js +1 -1
- package/dist/components/deprecated_NumberStepper/NumberStepperInput.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs.js +3 -3
- package/dist/components/deprecated_Tabs/Tabs2.js +3 -3
- package/dist/components/deprecated_Toolbar/Toolbar2.js +3 -3
- package/dist/components/deprecated_Toolbar/ToolbarPanels.js +1 -1
- package/dist/components/deprecated_Toolbar/ToolbarTab.js +5 -5
- package/dist/components/deprecated_Toolbar/ToolbarTabs.js +3 -3
- package/dist/hooks/useControllableState/useControllableState.js +1 -1
- package/dist/hooks/useOverlay/useOverlay.js +3 -3
- package/dist/hooks/useOverlay/useOverlay2.js +3 -3
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement.js +1 -1
- package/dist/hooks/useScreenReaderAnnouncement/useScreenReaderAnnouncement2.js +3 -3
- package/dist/icons/Icon.js +3 -3
- package/dist/icons/index.js +1 -1
- package/dist/index.d.ts +15 -7
- package/dist/index.es.js +2 -1
- package/dist/index.js +4 -3
- package/dist/next/AdvancedTable/AdvancedTable.js +8 -6
- package/dist/next/AdvancedTable/AdvancedTable2.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableCell.js +4 -4
- package/dist/next/AdvancedTable/AdvancedTableCheckbox.js +6 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeader.js +3 -3
- package/dist/next/AdvancedTable/AdvancedTableColumnHeaderMenu.js +2 -2
- package/dist/next/AdvancedTable/AdvancedTablePagination.js +1 -1
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput.js +3 -3
- package/dist/next/CollapsibleSearchInput/CollapsibleSearchInput2.js +3 -3
- package/dist/next/Combobox/Combobox.js +2 -0
- package/dist/next/Combobox/Combobox2.js +3 -3
- package/dist/next/Combobox/ComboboxInput.js +2 -0
- package/dist/next/Combobox/ComboboxOption.js +2 -0
- package/dist/next/Combobox/hooks/useComboboxFocusSequence/useComboboxFocusSequence.js +1 -1
- package/dist/next/Drawer/Drawer.js +2 -2
- package/dist/next/Drawer/Drawer2.js +3 -3
- package/dist/next/FilterAnchor/FilterAnchor.js +2 -2
- package/dist/next/FilterAnchor/FilterAnchor2.js +3 -3
- package/dist/next/Input/Input2.js +3 -3
- package/dist/next/Menu/{useCSSVariable.js → Hooks/useCSSVariable.js} +1 -1
- 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} +76 -34
- package/dist/next/Menu/Menu.js +22 -24
- package/dist/next/Menu/Menu2.js +3 -3
- package/dist/next/Menu/MenuButton.js +5 -2
- package/dist/next/Menu/MenuContext.js +5 -1
- package/dist/next/Menu/MenuItem.js +38 -16
- package/dist/next/Menu/MenuPane.js +90 -55
- package/dist/next/Menu/PaneChildren.js +47 -0
- package/dist/next/Menu/SubMenu.js +95 -49
- package/dist/next/PhoneNumberInput/PhoneNumberInput.js +1 -1
- package/dist/next/PhoneNumberInput/PhoneNumberInput2.js +3 -3
- package/dist/next/Select/Select.js +118 -0
- package/dist/next/Select/Select2.js +8 -0
- package/dist/next/Select/SelectButton.js +46 -0
- package/dist/next/Select/SelectContext.js +16 -0
- package/dist/next/Select/SelectItem.js +46 -0
- package/dist/next/Select/SelectPane.js +43 -0
- package/dist/next/Select/SelectedItems.js +45 -0
- package/dist/next/Select/SubSelect.js +90 -0
- package/dist/next/Select/constants.js +13 -0
- package/dist/next/Select/index.js +5 -0
- package/dist/next/SplitButton/SplitButton2.js +3 -3
- package/dist/next/TimePicker/TimePicker2.js +3 -3
- package/dist/next/TimePicker/TimePickerIcon.js +1 -1
- package/dist/next/ToggleButton/styles.js +3 -3
- package/dist/next/index.d.ts +68 -6
- package/dist/next/index.es.js +6 -0
- package/dist/next/index.js +1009 -372
- package/dist/translations-en.js +7 -1
- package/dist/utils/Flyout/Flyout2.js +3 -3
- package/dist/utils/Popper/Popper.js +2 -2
- package/dist/utils/mediaQueryManager/mediaQueryManager.js +1 -1
- package/dist/utils/wrapEvent/wrapEvent.js +1 -1
- package/icons/package.json +2 -0
- package/next/package.json +3 -1
- package/package.json +6 -3
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import React__default, { useMemo, useCallback } from 'react';
|
|
2
|
+
import '../Menu/index.js';
|
|
3
|
+
import { SelectContextProvider } from './SelectContext.js';
|
|
4
|
+
import '../../hooks/index.js';
|
|
5
|
+
import SelectItem from './SelectItem.js';
|
|
6
|
+
import SubSelect from './SubSelect.js';
|
|
7
|
+
import SelectPane from './SelectPane.js';
|
|
8
|
+
import useControllableState from '../../hooks/useControllableState/useControllableState.js';
|
|
9
|
+
import Menu from '../Menu/Menu.js';
|
|
10
|
+
|
|
11
|
+
const GetSelectItemsFrom = function (startingChildren) {
|
|
12
|
+
let filter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
13
|
+
const current = [];
|
|
14
|
+
if (!startingChildren) {
|
|
15
|
+
return current;
|
|
16
|
+
}
|
|
17
|
+
const childrenArray = Array.isArray(startingChildren) ? startingChildren : [startingChildren];
|
|
18
|
+
childrenArray.forEach(child => {
|
|
19
|
+
if (filter && !filter(child.props)) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
if (child.type === SelectItem) {
|
|
23
|
+
const {
|
|
24
|
+
label,
|
|
25
|
+
value: childValue,
|
|
26
|
+
children: childChildren
|
|
27
|
+
} = child.props;
|
|
28
|
+
const safeLabel = label !== null && label !== void 0 ? label : ['string', 'number'].includes(typeof childChildren) ? childChildren : undefined;
|
|
29
|
+
current.push([childValue, safeLabel]);
|
|
30
|
+
} else if (child.type === SubSelect) {
|
|
31
|
+
current.push(...GetSelectItemsFrom(child.props.children, filter));
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
return current;
|
|
35
|
+
};
|
|
36
|
+
const Select = _ref => {
|
|
37
|
+
let {
|
|
38
|
+
multiselect,
|
|
39
|
+
children,
|
|
40
|
+
isDisabled,
|
|
41
|
+
onChange,
|
|
42
|
+
isOpen,
|
|
43
|
+
onIsOpenChange,
|
|
44
|
+
value,
|
|
45
|
+
isInvalid,
|
|
46
|
+
'data-testid': dataTestId,
|
|
47
|
+
isVirtualizationDisabled
|
|
48
|
+
} = _ref;
|
|
49
|
+
const [selectedValues, setSelectedValues] = useControllableState(value, onChange, value);
|
|
50
|
+
const selectPaneChildren = useMemo(() => {
|
|
51
|
+
var _children$find;
|
|
52
|
+
return Array.isArray(children) ? (_children$find = children.find(child => child.type === SelectPane)) === null || _children$find === void 0 ? void 0 : _children$find.props.children : null;
|
|
53
|
+
}, [children]);
|
|
54
|
+
const selectedSelectItems = useMemo(() => {
|
|
55
|
+
if (Array.isArray(selectedValues)) {
|
|
56
|
+
return new Map(GetSelectItemsFrom(selectPaneChildren, _ref2 => {
|
|
57
|
+
let {
|
|
58
|
+
value: _value
|
|
59
|
+
} = _ref2;
|
|
60
|
+
return _value == null || selectedValues.includes(_value);
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
return new Map(GetSelectItemsFrom(selectPaneChildren, _ref3 => {
|
|
64
|
+
let {
|
|
65
|
+
value: _value
|
|
66
|
+
} = _ref3;
|
|
67
|
+
return _value == null || selectedValues === _value;
|
|
68
|
+
}));
|
|
69
|
+
}, [selectedValues, selectPaneChildren]);
|
|
70
|
+
const enabledSelectItems = useMemo(() => new Map(GetSelectItemsFrom(selectPaneChildren, _ref4 => {
|
|
71
|
+
let {
|
|
72
|
+
isDisabled: _isDisabled
|
|
73
|
+
} = _ref4;
|
|
74
|
+
return !_isDisabled;
|
|
75
|
+
})), [selectPaneChildren]);
|
|
76
|
+
const onItemSelect = useCallback((_value, isSelected) => {
|
|
77
|
+
setSelectedValues(currentSelectedValues => {
|
|
78
|
+
if (multiselect) {
|
|
79
|
+
if (Array.isArray(currentSelectedValues)) {
|
|
80
|
+
const clone = new Set(currentSelectedValues);
|
|
81
|
+
if (isSelected) {
|
|
82
|
+
clone.add(_value);
|
|
83
|
+
} else {
|
|
84
|
+
clone.delete(_value);
|
|
85
|
+
}
|
|
86
|
+
return Array.from(clone);
|
|
87
|
+
}
|
|
88
|
+
if (isSelected) {
|
|
89
|
+
return [_value];
|
|
90
|
+
}
|
|
91
|
+
} else if (isSelected) {
|
|
92
|
+
return _value;
|
|
93
|
+
}
|
|
94
|
+
return currentSelectedValues;
|
|
95
|
+
});
|
|
96
|
+
}, [setSelectedValues, multiselect]);
|
|
97
|
+
const sharedMenuProps = {
|
|
98
|
+
isDisabled,
|
|
99
|
+
isOpen,
|
|
100
|
+
onIsOpenChange,
|
|
101
|
+
'data-testid': dataTestId,
|
|
102
|
+
isVirtualizationDisabled
|
|
103
|
+
};
|
|
104
|
+
return /*#__PURE__*/React__default.createElement(SelectContextProvider, {
|
|
105
|
+
value: {
|
|
106
|
+
multiselect,
|
|
107
|
+
onItemSelect,
|
|
108
|
+
selectedValues,
|
|
109
|
+
selectedSelectItems,
|
|
110
|
+
GetSelectItemsFrom,
|
|
111
|
+
isInvalid,
|
|
112
|
+
setSelectedValues,
|
|
113
|
+
enabledSelectItems
|
|
114
|
+
}
|
|
115
|
+
}, /*#__PURE__*/React__default.createElement(Menu, sharedMenuProps, children));
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
export { Select as default };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "._slREa{box-shadow:inset 0 0 0 1px #b00!important}._mOaSA{width:unset!important;min-height:unset!important;padding:0!important;margin-right:7px}._lawCe{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
4
|
+
var styles = {"isInvalid":"_slREa","checkbox":"_mOaSA","selectedItem":"_lawCe"};
|
|
5
|
+
var stylesheet="._slREa{box-shadow:inset 0 0 0 1px #b00!important}._mOaSA{width:unset!important;min-height:unset!important;padding:0!important;margin-right:7px}._lawCe{background-color:rgba(11,110,208,.08);font-weight:500}";
|
|
6
|
+
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
|
+
|
|
8
|
+
export { styles as default, stylesheet };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import React__default, { useMemo } from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import '../Menu/index.js';
|
|
5
|
+
import useSelectContext from './SelectContext.js';
|
|
6
|
+
import styles from './Select2.js';
|
|
7
|
+
import '../../utils/index.js';
|
|
8
|
+
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
9
|
+
import MenuButton from '../Menu/MenuButton.js';
|
|
10
|
+
|
|
11
|
+
const SelectButton = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
12
|
+
let {
|
|
13
|
+
children,
|
|
14
|
+
asChild,
|
|
15
|
+
placeholder: externalPlaceholder,
|
|
16
|
+
...rest
|
|
17
|
+
} = _ref;
|
|
18
|
+
const {
|
|
19
|
+
selectedSelectItems,
|
|
20
|
+
isInvalid,
|
|
21
|
+
multiselect
|
|
22
|
+
} = useSelectContext();
|
|
23
|
+
const {
|
|
24
|
+
translate
|
|
25
|
+
} = useTranslation();
|
|
26
|
+
const placeholder = externalPlaceholder !== null && externalPlaceholder !== void 0 ? externalPlaceholder : multiselect ? translate('selectOneOrMore') : translate('selectOne');
|
|
27
|
+
const selectedItemsString = useMemo(() => Array.from(selectedSelectItems)
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
|
+
.map(_ref2 => {
|
|
30
|
+
let [value, label] = _ref2;
|
|
31
|
+
return label;
|
|
32
|
+
}).join(', '), [selectedSelectItems]);
|
|
33
|
+
const sharedMenuButtonProps = {
|
|
34
|
+
ref,
|
|
35
|
+
asChild
|
|
36
|
+
};
|
|
37
|
+
return /*#__PURE__*/React__default.createElement(MenuButton, _extends({}, rest, sharedMenuButtonProps, {
|
|
38
|
+
"aria-haspopup": "tree",
|
|
39
|
+
role: "combobox",
|
|
40
|
+
className: classNames({
|
|
41
|
+
[styles.isInvalid]: isInvalid
|
|
42
|
+
})
|
|
43
|
+
}), children !== null && children !== void 0 ? children : selectedSelectItems !== null && selectedSelectItems !== void 0 && selectedSelectItems.size ? selectedItemsString : placeholder);
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export { SelectButton as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import '../../utils/index.js';
|
|
2
|
+
import createContextUtilities from '../../utils/createContextUtilities/createContextUtilities.js';
|
|
3
|
+
|
|
4
|
+
const {
|
|
5
|
+
Provider: SelectContextProvider,
|
|
6
|
+
useContext
|
|
7
|
+
} = createContextUtilities(null);
|
|
8
|
+
function useSelectContext(isOptional) {
|
|
9
|
+
const context = useContext();
|
|
10
|
+
if (!isOptional && !context) {
|
|
11
|
+
throw Error('useContext must be called inside a provider or be initialized with a default value');
|
|
12
|
+
}
|
|
13
|
+
return context;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { SelectContextProvider, useSelectContext as default };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import classNames from 'classnames';
|
|
4
|
+
import '../Menu/index.js';
|
|
5
|
+
import useSelectContext from './SelectContext.js';
|
|
6
|
+
import AdvancedTableCheckbox from '../AdvancedTable/AdvancedTableCheckbox.js';
|
|
7
|
+
import styles from './Select2.js';
|
|
8
|
+
import MenuItem from '../Menu/MenuItem.js';
|
|
9
|
+
|
|
10
|
+
const SelectItem = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
11
|
+
let {
|
|
12
|
+
isDisabled,
|
|
13
|
+
label,
|
|
14
|
+
value,
|
|
15
|
+
children,
|
|
16
|
+
className,
|
|
17
|
+
...rest
|
|
18
|
+
} = _ref;
|
|
19
|
+
const {
|
|
20
|
+
multiselect,
|
|
21
|
+
selectedSelectItems,
|
|
22
|
+
onItemSelect
|
|
23
|
+
} = useSelectContext();
|
|
24
|
+
const isSelected = selectedSelectItems.has(value);
|
|
25
|
+
const sharedMenuItemProps = {
|
|
26
|
+
ref,
|
|
27
|
+
label,
|
|
28
|
+
isDisabled
|
|
29
|
+
};
|
|
30
|
+
return /*#__PURE__*/React__default.createElement(MenuItem, _extends({}, rest, sharedMenuItemProps, {
|
|
31
|
+
className: classNames(className, {
|
|
32
|
+
[styles.selectedItem]: isSelected
|
|
33
|
+
}),
|
|
34
|
+
asChild: true,
|
|
35
|
+
onSelect: () => onItemSelect === null || onItemSelect === void 0 ? void 0 : onItemSelect(value, !isSelected)
|
|
36
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
37
|
+
"aria-selected": isSelected,
|
|
38
|
+
role: "treeitem"
|
|
39
|
+
}, multiselect ? /*#__PURE__*/React__default.createElement(AdvancedTableCheckbox, {
|
|
40
|
+
state: isSelected ? 'true' : 'false',
|
|
41
|
+
className: styles.checkbox,
|
|
42
|
+
isDisabled: isDisabled
|
|
43
|
+
}) : null, children !== null && children !== void 0 ? children : label));
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
export { SelectItem as default };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import _extends from '@babel/runtime-corejs3/helpers/extends';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import '../Menu/index.js';
|
|
4
|
+
import useSelectContext, { SelectContextProvider } from './SelectContext.js';
|
|
5
|
+
import MenuPane from '../Menu/MenuPane.js';
|
|
6
|
+
|
|
7
|
+
const SelectPane = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
8
|
+
let {
|
|
9
|
+
children,
|
|
10
|
+
isSearchable,
|
|
11
|
+
placement,
|
|
12
|
+
showSelectedItemsPane = false,
|
|
13
|
+
searchValue,
|
|
14
|
+
onSearchValueChange,
|
|
15
|
+
isSearchFilteringDisabled,
|
|
16
|
+
zIndex,
|
|
17
|
+
...rest
|
|
18
|
+
} = _ref;
|
|
19
|
+
const selectContext = useSelectContext();
|
|
20
|
+
const {
|
|
21
|
+
multiselect
|
|
22
|
+
} = selectContext;
|
|
23
|
+
const sharedMenuProps = {
|
|
24
|
+
placement,
|
|
25
|
+
isSearchable,
|
|
26
|
+
searchValue,
|
|
27
|
+
onSearchValueChange,
|
|
28
|
+
isSearchFilteringDisabled,
|
|
29
|
+
zIndex,
|
|
30
|
+
ref
|
|
31
|
+
};
|
|
32
|
+
return /*#__PURE__*/React__default.createElement(SelectContextProvider, {
|
|
33
|
+
value: {
|
|
34
|
+
...selectContext,
|
|
35
|
+
showSelectedItemsPane
|
|
36
|
+
}
|
|
37
|
+
}, /*#__PURE__*/React__default.createElement(MenuPane, _extends({}, rest, sharedMenuProps, {
|
|
38
|
+
"aria-multiselectable": Boolean(multiselect),
|
|
39
|
+
role: "tree"
|
|
40
|
+
}), children));
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
export { SelectPane as default };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React__default, { useState, useEffect } from 'react';
|
|
2
|
+
import SubSelect from './SubSelect.js';
|
|
3
|
+
import SelectItem from './SelectItem.js';
|
|
4
|
+
import useSelectContext, { SelectContextProvider } from './SelectContext.js';
|
|
5
|
+
import '../../utils/index.js';
|
|
6
|
+
import useTranslation from '../../utils/Translation/useTranslation.js';
|
|
7
|
+
|
|
8
|
+
const SelectedItems = () => {
|
|
9
|
+
const selectContext = useSelectContext();
|
|
10
|
+
const {
|
|
11
|
+
selectedSelectItems,
|
|
12
|
+
enabledSelectItems
|
|
13
|
+
} = selectContext;
|
|
14
|
+
const [displayedItems, setDisplayedItems] = useState(selectedSelectItems);
|
|
15
|
+
const [open, setOpen] = useState(false);
|
|
16
|
+
const {
|
|
17
|
+
translate
|
|
18
|
+
} = useTranslation();
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
if (open) {
|
|
21
|
+
setDisplayedItems(selectedSelectItems);
|
|
22
|
+
}
|
|
23
|
+
// Display items should only update on open
|
|
24
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
25
|
+
}, [open]);
|
|
26
|
+
return /*#__PURE__*/React__default.createElement(SelectContextProvider, {
|
|
27
|
+
value: {
|
|
28
|
+
...selectContext,
|
|
29
|
+
isSelectedItems: true
|
|
30
|
+
}
|
|
31
|
+
}, /*#__PURE__*/React__default.createElement(SubSelect, {
|
|
32
|
+
onIsOpenChange: setOpen,
|
|
33
|
+
label: translate('selectedItems')
|
|
34
|
+
}, Array.from(displayedItems, _ref => {
|
|
35
|
+
let [value, label] = _ref;
|
|
36
|
+
return /*#__PURE__*/React__default.createElement(SelectItem, {
|
|
37
|
+
label: label,
|
|
38
|
+
key: value,
|
|
39
|
+
value: value,
|
|
40
|
+
isDisabled: !enabledSelectItems.has(value)
|
|
41
|
+
});
|
|
42
|
+
})));
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export { SelectedItems as default };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React__default, { useMemo } from 'react';
|
|
2
|
+
import '../../hooks/index.js';
|
|
3
|
+
import '../Menu/index.js';
|
|
4
|
+
import useSelectContext, { SelectContextProvider } from './SelectContext.js';
|
|
5
|
+
import useId from '../../hooks/useId/useId.js';
|
|
6
|
+
import SubMenu from '../Menu/SubMenu.js';
|
|
7
|
+
|
|
8
|
+
const SubSelect = /*#__PURE__*/React__default.forwardRef((_ref, ref) => {
|
|
9
|
+
let {
|
|
10
|
+
label,
|
|
11
|
+
onIsOpenChange,
|
|
12
|
+
children,
|
|
13
|
+
isDisabled,
|
|
14
|
+
...rest
|
|
15
|
+
} = _ref;
|
|
16
|
+
const paneId = useId();
|
|
17
|
+
const selectContext = useSelectContext();
|
|
18
|
+
const {
|
|
19
|
+
selectedValues,
|
|
20
|
+
GetSelectItemsFrom,
|
|
21
|
+
setSelectedValues
|
|
22
|
+
} = selectContext;
|
|
23
|
+
const allSelectItemChildren = useMemo(() => {
|
|
24
|
+
var _GetSelectItemsFrom;
|
|
25
|
+
return (_GetSelectItemsFrom = GetSelectItemsFrom === null || GetSelectItemsFrom === void 0 ? void 0 : GetSelectItemsFrom(children)) !== null && _GetSelectItemsFrom !== void 0 ? _GetSelectItemsFrom : [];
|
|
26
|
+
}, [children, GetSelectItemsFrom]);
|
|
27
|
+
const checkedState = useMemo(() => {
|
|
28
|
+
const selectedChildCount = allSelectItemChildren.filter(_ref2 => {
|
|
29
|
+
let [value] = _ref2;
|
|
30
|
+
return Array.isArray(selectedValues) ? selectedValues.includes(value) : selectedValues === value;
|
|
31
|
+
}).length;
|
|
32
|
+
const childCount = allSelectItemChildren.length;
|
|
33
|
+
let result = 'mixed';
|
|
34
|
+
if (selectedChildCount === childCount) {
|
|
35
|
+
result = 'true';
|
|
36
|
+
} else if (selectedChildCount === 0) {
|
|
37
|
+
result = 'false';
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}, [allSelectItemChildren, selectedValues]);
|
|
41
|
+
const onTriggerCheckboxSelect = e => {
|
|
42
|
+
if (isDisabled) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
e === null || e === void 0 || e.stopPropagation();
|
|
46
|
+
setSelectedValues === null || setSelectedValues === void 0 || setSelectedValues(previouslySelectedValues => {
|
|
47
|
+
// exclude duplicates
|
|
48
|
+
const prevSet = new Set(previouslySelectedValues);
|
|
49
|
+
if (checkedState === 'true') {
|
|
50
|
+
allSelectItemChildren.forEach(_ref3 => {
|
|
51
|
+
let [value] = _ref3;
|
|
52
|
+
return prevSet.delete(value);
|
|
53
|
+
});
|
|
54
|
+
} else {
|
|
55
|
+
allSelectItemChildren.forEach(_ref4 => {
|
|
56
|
+
let [value] = _ref4;
|
|
57
|
+
return prevSet.add(value);
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
return Array.from(prevSet);
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
const subSelectPaneProps = {
|
|
64
|
+
role: 'group',
|
|
65
|
+
id: paneId
|
|
66
|
+
};
|
|
67
|
+
const subSelectTriggerProps = {
|
|
68
|
+
role: 'treeitem',
|
|
69
|
+
'aria-haspopup': undefined,
|
|
70
|
+
'aria-owns': paneId
|
|
71
|
+
};
|
|
72
|
+
const sharedSubMenuProps = {
|
|
73
|
+
...rest,
|
|
74
|
+
isDisabled,
|
|
75
|
+
onIsOpenChange,
|
|
76
|
+
label,
|
|
77
|
+
ref
|
|
78
|
+
};
|
|
79
|
+
return /*#__PURE__*/React__default.createElement(SelectContextProvider, {
|
|
80
|
+
value: {
|
|
81
|
+
...selectContext,
|
|
82
|
+
subSelectTriggerProps,
|
|
83
|
+
subSelectPaneProps,
|
|
84
|
+
triggerCheckedState: checkedState,
|
|
85
|
+
onTriggerCheckboxSelect
|
|
86
|
+
}
|
|
87
|
+
}, /*#__PURE__*/React__default.createElement(SubMenu, sharedSubMenuProps, children));
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
export { SubSelect as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* eslint-disable import/prefer-default-export */
|
|
2
|
+
const DATA_TESTID_SUFFIXES = {
|
|
3
|
+
SELECT_PANE: 'selectpane',
|
|
4
|
+
SELECT_ITEM: 'selectitem',
|
|
5
|
+
SELECT_BUTTON: 'selectbutton',
|
|
6
|
+
SELECT_SEARCH: 'selectsearch',
|
|
7
|
+
SELECT_BACK: 'selectback'
|
|
8
|
+
};
|
|
9
|
+
const KEYS = {
|
|
10
|
+
CHECK_PARENT: [' ']
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { DATA_TESTID_SUFFIXES, KEYS };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as Select } from './Select.js';
|
|
2
|
+
export { default as SelectButton } from './SelectButton.js';
|
|
3
|
+
export { default as SelectItem } from './SelectItem.js';
|
|
4
|
+
export { default as SelectPane } from './SelectPane.js';
|
|
5
|
+
export { default as SubSelect } from './SubSelect.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._wKU3g{display:flex}._hqLBl{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._hqLBl._LtiBm{background-color:#fff}._hqLBl._DWUOJ,._hqLBl._LtiBm._92PMI:not(._hqLBl._LtiBm._iVUEp),._hqLBl._LtiBm._AF6he.focus-visible:not(._-6XQD),._hqLBl._LtiBm._AF6he:focus-visible:not(._-6XQD){background-color:#0b6ed0}._hqLBl._DWUOJ._-6XQD._AF6he,._hqLBl._DWUOJ._-6XQD._iVUEp,._hqLBl._DWUOJ._iVUEp._92PMI{opacity:.4}._M-7mD{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._M-7mD:focus{z-index:1}._73oWS{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._73oWS svg{margin-left:1px}._73oWS._LtiBm{background-color:#0b6ed0;border-color:transparent}._73oWS._LtiBm svg{fill:#fff!important}._73oWS._LtiBm:not(._XAt9I):hover{background-color:#085caf!important}._73oWS._LtiBm:not(._XAt9I):active{background-color:#0854a1!important}._73oWS._LtiBm._XAt9I{opacity:.4}._73oWS._LtiBm._XAt9I svg{background-color:transparent}._73oWS._DWUOJ{border-color:#0b6ed0;background-color:#fff}._73oWS._DWUOJ svg{fill:#0b6ed0!important}._73oWS._DWUOJ:not(._XAt9I):hover{background-color:#eef5fc!important}._73oWS._DWUOJ:not(._XAt9I):active{background-color:#e1edf9!important}._73oWS._DWUOJ._XAt9I{opacity:.4}._73oWS._DWUOJ._XAt9I svg{background-color:transparent}._9tgrH{width:260px}";
|
|
4
|
+
var styles = {"container":"_wKU3g","divider":"_hqLBl","primary":"_LtiBm","mainButtonFocus":"_AF6he","mainButtonDisabled":"_-6XQD","dropdownButtonFocus":"_92PMI","dropdownButtonDisabled":"_iVUEp","secondary":"_DWUOJ","mainButton":"_M-7mD","dropdownButton":"_73oWS","disabled":"_XAt9I","dropdownOption":"_9tgrH"};
|
|
5
|
+
var stylesheet="._wKU3g{display:flex}._hqLBl{z-index:2;width:1px;margin-left:-1px;margin-right:-1px}._hqLBl._LtiBm{background-color:#fff}._hqLBl._DWUOJ,._hqLBl._LtiBm._92PMI:not(._hqLBl._LtiBm._iVUEp),._hqLBl._LtiBm._AF6he.focus-visible:not(._-6XQD),._hqLBl._LtiBm._AF6he:focus-visible:not(._-6XQD){background-color:#0b6ed0}._hqLBl._DWUOJ._-6XQD._AF6he,._hqLBl._DWUOJ._-6XQD._iVUEp,._hqLBl._DWUOJ._iVUEp._92PMI{opacity:.4}._M-7mD{border-radius:4px 0 0 4px;border-right:none;padding-right:17px}._M-7mD:focus{z-index:1}._73oWS{border-radius:0 4px 4px 0;transition:border .2s,background .2s,color .2s;border-left:none;min-width:35px!important;padding:0!important;justify-content:center!important}._73oWS svg{margin-left:1px}._73oWS._LtiBm{background-color:#0b6ed0;border-color:transparent}._73oWS._LtiBm svg{fill:#fff!important}._73oWS._LtiBm:not(._XAt9I):hover{background-color:#085caf!important}._73oWS._LtiBm:not(._XAt9I):active{background-color:#0854a1!important}._73oWS._LtiBm._XAt9I{opacity:.4}._73oWS._LtiBm._XAt9I svg{background-color:transparent}._73oWS._DWUOJ{border-color:#0b6ed0;background-color:#fff}._73oWS._DWUOJ svg{fill:#0b6ed0!important}._73oWS._DWUOJ:not(._XAt9I):hover{background-color:#eef5fc!important}._73oWS._DWUOJ:not(._XAt9I):active{background-color:#e1edf9!important}._73oWS._DWUOJ._XAt9I{opacity:.4}._73oWS._DWUOJ._XAt9I svg{background-color:transparent}._9tgrH{width:260px}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"container":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._2q4xP{display:inline-block;position:relative}._Sow9H{width:120px}._Sow9H ._t0a-a._21LvV{transform:rotate(-180deg)}._Sow9H ._t0a-a._7eJ8s{fill:#9d9fa1;opacity:.4}._7dF8v>input:focus{box-shadow:none!important;border:1px solid #898989!important}._CjNpj{width:120px}._CjNpj ._0Q3DN._QdLU8{background-color:#efefef;border-radius:6px}._t0a-a{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._t0a-a._21LvV{transform:rotate(-180deg)}";
|
|
4
|
+
var styles = {"container":"_2q4xP","input":"_Sow9H","icon":"_t0a-a","open":"_21LvV","disabled":"_7eJ8s","ignoreFocusStyle":"_7dF8v","flyout":"_CjNpj","option":"_0Q3DN","exactMatch":"_QdLU8"};
|
|
5
|
+
var stylesheet="._2q4xP{display:inline-block;position:relative}._Sow9H{width:120px}._Sow9H ._t0a-a._21LvV{transform:rotate(-180deg)}._Sow9H ._t0a-a._7eJ8s{fill:#9d9fa1;opacity:.4}._7dF8v>input:focus{box-shadow:none!important;border:1px solid #898989!important}._CjNpj{width:120px}._CjNpj ._0Q3DN._QdLU8{background-color:#efefef;border-radius:6px}._t0a-a{position:absolute;right:4px;bottom:4px;height:28px;width:28px}._t0a-a._21LvV{transform:rotate(-180deg)}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|
|
@@ -25,7 +25,7 @@ const TimePickerIcon = _ref => {
|
|
|
25
25
|
onClick: !isDisabled ? () => {
|
|
26
26
|
var _inputRef$current;
|
|
27
27
|
setIsFlyoutOpen(i => !i);
|
|
28
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0
|
|
28
|
+
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
|
|
29
29
|
} : undefined,
|
|
30
30
|
onMouseDown: e => e.preventDefault(),
|
|
31
31
|
ref: iconRef
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import styleInject from './../../__node_modules/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = ".
|
|
4
|
-
var styles = {"default":"
|
|
5
|
-
var stylesheet=".
|
|
3
|
+
var css_248z = "._Rd04I{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._bvIWL{background-color:rgba(50,54,58,.08)}._hwvnZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._J5lyy{color:rgba(81,85,89,.4);cursor:not-allowed}._jdRCb{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._obbD1{color:#085caf;border-color:#085caf}._ecIRD,._obbD1{background:rgba(11,110,208,.11)}._ecIRD{color:#0854a1;border-color:#0854a1}._kbX-y{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LL4IZ{position:relative;display:inline-grid}._LL4IZ svg{fill:currentColor}._LL4IZ ._zAuFG{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._LL4IZ ._zAuFG+._NGbNa{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._LL4IZ ._zAuFG+._NGbNa._cuvFM{padding:5px;max-width:36px;min-width:36px}._LL4IZ ._zAuFG+._NGbNa._tkHXH{padding:0 16px}._LL4IZ ._zAuFG+._NGbNa._rwzIj{padding:0 16px 0 12px}._LL4IZ ._zAuFG:hover+._NGbNa{background-color:rgba(50,54,58,.08)}._LL4IZ ._zAuFG:disabled+._NGbNa{color:rgba(81,85,89,.4);cursor:not-allowed}._LL4IZ ._zAuFG:active+._NGbNa,._LL4IZ ._zAuFG:focus:active+._NGbNa{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._LL4IZ ._zAuFG:checked+._NGbNa{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._LL4IZ ._zAuFG:checked:hover+._NGbNa{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._LL4IZ ._zAuFG:checked:disabled+._NGbNa{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LL4IZ ._zAuFG:checked:active+._NGbNa,._LL4IZ ._zAuFG:checked:focus:active+._NGbNa{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._FlkTD{display:inline-flex;position:relative}._FlkTD:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._FlkTD>*{flex-shrink:0;flex-grow:0}._yxVFy{border:none;margin:0;padding:0}._yxVFy legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._LL4IZ ._zAuFG.focus-visible+._NGbNa,._LL4IZ ._zAuFG:focus-visible+._NGbNa{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
4
|
+
var styles = {"default":"_Rd04I","hovered":"_bvIWL","pressed":"_hwvnZ","disabled":"_J5lyy","selectedDefault":"_jdRCb","selectedHovered":"_obbD1","selectedPressed":"_ecIRD","selectedDisabled":"_kbX-y","toggleContainer":"_LL4IZ","toggleInput":"_zAuFG","toggleButton":"_NGbNa","iconOnly":"_cuvFM","text":"_tkHXH","iconText":"_rwzIj","toggleButtonGroup":"_FlkTD","toggleButtonGroupFieldset":"_yxVFy"};
|
|
5
|
+
var stylesheet="._Rd04I{border-color:transparent;background-color:transparent;color:#515559;cursor:pointer}._bvIWL{background-color:rgba(50,54,58,.08)}._hwvnZ{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._J5lyy{color:rgba(81,85,89,.4);cursor:not-allowed}._jdRCb{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._obbD1{color:#085caf;border-color:#085caf}._ecIRD,._obbD1{background:rgba(11,110,208,.11)}._ecIRD{color:#0854a1;border-color:#0854a1}._kbX-y{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LL4IZ{position:relative;display:inline-grid}._LL4IZ svg{fill:currentColor}._LL4IZ ._zAuFG{-webkit-appearance:none;-moz-appearance:none;appearance:none;grid-column:1;grid-row:1}._LL4IZ ._zAuFG+._NGbNa{background-color:transparent;color:#515559;cursor:pointer;border:1px solid transparent;border-radius:4px;grid-column:1;grid-row:1;padding:0;min-width:76px;-webkit-user-select:none;-moz-user-select:none;user-select:none}._LL4IZ ._zAuFG+._NGbNa._cuvFM{padding:5px;max-width:36px;min-width:36px}._LL4IZ ._zAuFG+._NGbNa._tkHXH{padding:0 16px}._LL4IZ ._zAuFG+._NGbNa._rwzIj{padding:0 16px 0 12px}._LL4IZ ._zAuFG:hover+._NGbNa{background-color:rgba(50,54,58,.08)}._LL4IZ ._zAuFG:disabled+._NGbNa{color:rgba(81,85,89,.4);cursor:not-allowed}._LL4IZ ._zAuFG:active+._NGbNa,._LL4IZ ._zAuFG:focus:active+._NGbNa{color:#0b6ed0;background-color:rgba(11,110,208,.08)}._LL4IZ ._zAuFG:checked+._NGbNa{background:rgba(11,110,208,.08);color:#0b6ed0;border-color:#0b6ed0}._LL4IZ ._zAuFG:checked:hover+._NGbNa{background:rgba(11,110,208,.11);color:#085caf;border-color:#085caf}._LL4IZ ._zAuFG:checked:disabled+._NGbNa{background:rgba(11,110,208,.032);color:rgba(11,110,208,.4);border-color:rgba(11,110,208,.4)}._LL4IZ ._zAuFG:checked:active+._NGbNa,._LL4IZ ._zAuFG:checked:focus:active+._NGbNa{background:rgba(11,110,208,.11);color:#0854a1;border-color:#0854a1}._FlkTD{display:inline-flex;position:relative}._FlkTD:before{content:\"\";border:1px solid #d9d9d9;border-radius:4px;position:absolute;top:0;bottom:0;right:0;left:0}._FlkTD>*{flex-shrink:0;flex-grow:0}._yxVFy{border:none;margin:0;padding:0}._yxVFy legend{padding:0;display:block;font-size:14px;margin-bottom:6px;color:#515559}._LL4IZ ._zAuFG.focus-visible+._NGbNa,._LL4IZ ._zAuFG:focus-visible+._NGbNa{z-index:20;outline:none;box-shadow:0 0 0 2px #fff,0 0 0 4px #0a3f88}";
|
|
6
6
|
if(typeof process !== 'object' || !process.hasOwnProperty('env') || process.env.NODE_ENV !== 'test'){styleInject(css_248z);}
|
|
7
7
|
|
|
8
8
|
export { styles as default, stylesheet };
|