@zendeskgarden/react-dropdowns 9.12.3 → 9.12.4
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/dist/esm/elements/combobox/Combobox.js +32 -33
- package/dist/esm/elements/combobox/Label.js +6 -7
- package/dist/esm/elements/combobox/Listbox.js +16 -18
- package/dist/esm/elements/combobox/OptGroup.js +9 -10
- package/dist/esm/elements/combobox/Option.js +13 -14
- package/dist/esm/elements/combobox/Tag.js +7 -8
- package/dist/esm/elements/combobox/TagGroup.js +20 -23
- package/dist/esm/elements/menu/Item.js +16 -17
- package/dist/esm/elements/menu/ItemGroup.js +9 -10
- package/dist/esm/elements/menu/Menu.js +18 -19
- package/dist/esm/elements/menu/MenuList.js +19 -21
- package/dist/esm/elements/menu/Separator.js +4 -5
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-lg-stroke.svg.js +2 -2
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-left-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-right-stroke.svg.js +4 -4
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/plus-stroke.svg.js +4 -4
- package/dist/esm/views/combobox/StyledCombobox.js +5 -5
- package/dist/esm/views/combobox/StyledContainer.js +3 -3
- package/dist/esm/views/combobox/StyledField.js +3 -3
- package/dist/esm/views/combobox/StyledFloatingListbox.js +3 -3
- package/dist/esm/views/combobox/StyledHint.js +3 -3
- package/dist/esm/views/combobox/StyledInput.js +10 -11
- package/dist/esm/views/combobox/StyledInputGroup.js +5 -5
- package/dist/esm/views/combobox/StyledInputIcon.js +9 -10
- package/dist/esm/views/combobox/StyledLabel.js +3 -3
- package/dist/esm/views/combobox/StyledListbox.js +5 -5
- package/dist/esm/views/combobox/StyledListboxSeparator.js +8 -9
- package/dist/esm/views/combobox/StyledMessage.js +3 -3
- package/dist/esm/views/combobox/StyledOptGroup.js +3 -3
- package/dist/esm/views/combobox/StyledOption.js +10 -11
- package/dist/esm/views/combobox/StyledOptionContent.js +3 -3
- package/dist/esm/views/combobox/StyledOptionIcon.js +10 -11
- package/dist/esm/views/combobox/StyledOptionMeta.js +9 -10
- package/dist/esm/views/combobox/StyledOptionSelectionIcon.js +11 -13
- package/dist/esm/views/combobox/StyledOptionTypeIcon.js +9 -10
- package/dist/esm/views/combobox/StyledTag.js +3 -3
- package/dist/esm/views/combobox/StyledTagsButton.js +6 -7
- package/dist/esm/views/combobox/StyledTrigger.js +12 -13
- package/dist/esm/views/combobox/StyledValue.js +8 -9
- package/dist/esm/views/menu/StyledFloatingMenu.js +3 -3
- package/dist/esm/views/menu/StyledItem.js +3 -3
- package/dist/esm/views/menu/StyledItemAnchor.js +3 -3
- package/dist/esm/views/menu/StyledItemContent.js +3 -3
- package/dist/esm/views/menu/StyledItemGroup.js +3 -3
- package/dist/esm/views/menu/StyledItemIcon.js +3 -3
- package/dist/esm/views/menu/StyledItemMeta.js +3 -3
- package/dist/esm/views/menu/StyledItemTypeIcon.js +3 -3
- package/dist/esm/views/menu/StyledMenu.js +3 -3
- package/dist/esm/views/menu/StyledSeparator.js +1 -1
- package/dist/index.cjs.js +250 -278
- package/package.json +8 -8
|
@@ -51,39 +51,38 @@ import { TagGroup } from './TagGroup.js';
|
|
|
51
51
|
import { toOptions } from './utils.js';
|
|
52
52
|
|
|
53
53
|
const MAX_TAGS = 4;
|
|
54
|
-
const Combobox = forwardRef((
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
} = _ref;
|
|
54
|
+
const Combobox = forwardRef(({
|
|
55
|
+
children,
|
|
56
|
+
activeIndex,
|
|
57
|
+
defaultActiveIndex,
|
|
58
|
+
defaultExpanded,
|
|
59
|
+
endIcon,
|
|
60
|
+
focusInset,
|
|
61
|
+
inputProps: _inputProps,
|
|
62
|
+
inputValue: _inputValue,
|
|
63
|
+
isAutocomplete,
|
|
64
|
+
isBare,
|
|
65
|
+
isCompact,
|
|
66
|
+
isDisabled,
|
|
67
|
+
isEditable = true,
|
|
68
|
+
isExpanded: _isExpanded,
|
|
69
|
+
isMultiselectable,
|
|
70
|
+
listboxAppendToNode,
|
|
71
|
+
listboxAriaLabel,
|
|
72
|
+
listboxMaxHeight = '400px',
|
|
73
|
+
listboxMinHeight,
|
|
74
|
+
listboxZIndex = 1000,
|
|
75
|
+
maxHeight,
|
|
76
|
+
maxTags = MAX_TAGS,
|
|
77
|
+
onChange,
|
|
78
|
+
placeholder,
|
|
79
|
+
renderExpandTags,
|
|
80
|
+
renderValue,
|
|
81
|
+
selectionValue,
|
|
82
|
+
startIcon,
|
|
83
|
+
validation,
|
|
84
|
+
...props
|
|
85
|
+
}, ref) => {
|
|
87
86
|
const {
|
|
88
87
|
hasHint,
|
|
89
88
|
hasMessage,
|
|
@@ -42,13 +42,12 @@ import '../../views/menu/StyledItemMeta.js';
|
|
|
42
42
|
import '../../views/menu/StyledItemTypeIcon.js';
|
|
43
43
|
import '../../views/menu/StyledSeparator.js';
|
|
44
44
|
|
|
45
|
-
const Label = forwardRef((
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
} = _ref;
|
|
45
|
+
const Label = forwardRef(({
|
|
46
|
+
onClick,
|
|
47
|
+
onMouseEnter,
|
|
48
|
+
onMouseLeave,
|
|
49
|
+
...props
|
|
50
|
+
}, ref) => {
|
|
52
51
|
const {
|
|
53
52
|
labelProps
|
|
54
53
|
} = useFieldContext();
|
|
@@ -45,19 +45,18 @@ import { ThemeContext } from 'styled-components';
|
|
|
45
45
|
import { DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
46
46
|
import { composeEventHandlers } from '@zendeskgarden/container-utilities';
|
|
47
47
|
|
|
48
|
-
const Listbox = forwardRef((
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
} = _ref;
|
|
48
|
+
const Listbox = forwardRef(({
|
|
49
|
+
appendToNode,
|
|
50
|
+
children,
|
|
51
|
+
isCompact,
|
|
52
|
+
isExpanded,
|
|
53
|
+
maxHeight,
|
|
54
|
+
minHeight,
|
|
55
|
+
onMouseDown,
|
|
56
|
+
triggerRef,
|
|
57
|
+
zIndex,
|
|
58
|
+
...props
|
|
59
|
+
}, ref) => {
|
|
61
60
|
const floatingRef = useRef(null);
|
|
62
61
|
const [isVisible, setIsVisible] = useState(false);
|
|
63
62
|
const [height, setHeight] = useState();
|
|
@@ -77,11 +76,10 @@ const Listbox = forwardRef((_ref, ref) => {
|
|
|
77
76
|
},
|
|
78
77
|
placement: 'bottom-start',
|
|
79
78
|
middleware: [offset(theme.space.base), flip(), size({
|
|
80
|
-
apply:
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
} = _ref2;
|
|
79
|
+
apply: ({
|
|
80
|
+
rects,
|
|
81
|
+
availableHeight
|
|
82
|
+
}) => {
|
|
85
83
|
if (rects.reference.width > 0) {
|
|
86
84
|
setWidth(rects.reference.width);
|
|
87
85
|
if (!(minHeight === null || minHeight === 'fit-content') && rects.floating.height > availableHeight) {
|
|
@@ -43,16 +43,15 @@ import '../../views/menu/StyledItemMeta.js';
|
|
|
43
43
|
import '../../views/menu/StyledItemTypeIcon.js';
|
|
44
44
|
import '../../views/menu/StyledSeparator.js';
|
|
45
45
|
|
|
46
|
-
const OptGroup = forwardRef((
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} = _ref;
|
|
46
|
+
const OptGroup = forwardRef(({
|
|
47
|
+
children,
|
|
48
|
+
content,
|
|
49
|
+
icon,
|
|
50
|
+
legend,
|
|
51
|
+
'aria-label': ariaLabel,
|
|
52
|
+
onMouseDown,
|
|
53
|
+
...props
|
|
54
|
+
}, ref) => {
|
|
56
55
|
const {
|
|
57
56
|
getOptGroupProps,
|
|
58
57
|
isCompact
|
|
@@ -51,20 +51,19 @@ import '../../views/menu/StyledSeparator.js';
|
|
|
51
51
|
import { OptionMeta } from './OptionMeta.js';
|
|
52
52
|
import { toOption } from './utils.js';
|
|
53
53
|
|
|
54
|
-
const OptionComponent = forwardRef((
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
} = _ref;
|
|
54
|
+
const OptionComponent = forwardRef(({
|
|
55
|
+
children,
|
|
56
|
+
hasSelection,
|
|
57
|
+
icon,
|
|
58
|
+
isDisabled,
|
|
59
|
+
isHidden,
|
|
60
|
+
isSelected,
|
|
61
|
+
label,
|
|
62
|
+
type,
|
|
63
|
+
value,
|
|
64
|
+
tagProps,
|
|
65
|
+
...props
|
|
66
|
+
}, ref) => {
|
|
68
67
|
const contextValue = useMemo(() => ({
|
|
69
68
|
isDisabled,
|
|
70
69
|
type
|
|
@@ -45,14 +45,13 @@ import '../../views/menu/StyledItemTypeIcon.js';
|
|
|
45
45
|
import '../../views/menu/StyledSeparator.js';
|
|
46
46
|
import { TagAvatar } from './TagAvatar.js';
|
|
47
47
|
|
|
48
|
-
const TagComponent = forwardRef((
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} = _ref;
|
|
48
|
+
const TagComponent = forwardRef(({
|
|
49
|
+
children,
|
|
50
|
+
option,
|
|
51
|
+
removeLabel,
|
|
52
|
+
tooltipZIndex,
|
|
53
|
+
...props
|
|
54
|
+
}, ref) => {
|
|
56
55
|
const {
|
|
57
56
|
getTagProps,
|
|
58
57
|
isCompact,
|
|
@@ -7,29 +7,26 @@
|
|
|
7
7
|
import React__default from 'react';
|
|
8
8
|
import { Tag } from './Tag.js';
|
|
9
9
|
|
|
10
|
-
const TagGroup =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return React__default.createElement(
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}, optionTagProps[option.value]));
|
|
31
|
-
}), children);
|
|
32
|
-
};
|
|
10
|
+
const TagGroup = ({
|
|
11
|
+
children,
|
|
12
|
+
isDisabled,
|
|
13
|
+
isExpanded,
|
|
14
|
+
listboxZIndex,
|
|
15
|
+
maxTags,
|
|
16
|
+
optionTagProps,
|
|
17
|
+
selection
|
|
18
|
+
}) => React__default.createElement(React__default.Fragment, null, selection.map((option, index) => {
|
|
19
|
+
const disabled = isDisabled || option.disabled;
|
|
20
|
+
return React__default.createElement(Tag, Object.assign({
|
|
21
|
+
key: option.value,
|
|
22
|
+
hidden: !isExpanded && index >= maxTags,
|
|
23
|
+
option: {
|
|
24
|
+
...option,
|
|
25
|
+
disabled
|
|
26
|
+
},
|
|
27
|
+
tooltipZIndex: listboxZIndex ? listboxZIndex + 1 : undefined
|
|
28
|
+
}, optionTagProps[option.value]));
|
|
29
|
+
}), children);
|
|
33
30
|
TagGroup.displayName = 'TagGroup';
|
|
34
31
|
|
|
35
32
|
export { TagGroup };
|
|
@@ -63,23 +63,22 @@ const renderActionIcon = itemType => {
|
|
|
63
63
|
return React__default.createElement(SvgCheckLgStroke, null);
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
|
-
const ItemComponent = forwardRef((
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
} = _ref;
|
|
66
|
+
const ItemComponent = forwardRef(({
|
|
67
|
+
children,
|
|
68
|
+
value,
|
|
69
|
+
label = value,
|
|
70
|
+
href,
|
|
71
|
+
isSelected,
|
|
72
|
+
icon,
|
|
73
|
+
isDisabled,
|
|
74
|
+
isExternal,
|
|
75
|
+
type,
|
|
76
|
+
name,
|
|
77
|
+
onClick,
|
|
78
|
+
onKeyDown,
|
|
79
|
+
onMouseEnter,
|
|
80
|
+
...other
|
|
81
|
+
}, ref) => {
|
|
83
82
|
const {
|
|
84
83
|
type: selectionType
|
|
85
84
|
} = useItemGroupContext();
|
|
@@ -43,16 +43,15 @@ import { StyledItemTypeIcon } from '../../views/menu/StyledItemTypeIcon.js';
|
|
|
43
43
|
import { StyledSeparator } from '../../views/menu/StyledSeparator.js';
|
|
44
44
|
import { ItemGroupContext } from '../../context/useItemGroupContext.js';
|
|
45
45
|
|
|
46
|
-
const ItemGroup = forwardRef((
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} = _ref;
|
|
46
|
+
const ItemGroup = forwardRef(({
|
|
47
|
+
children,
|
|
48
|
+
content,
|
|
49
|
+
legend,
|
|
50
|
+
icon,
|
|
51
|
+
'aria-label': ariaLabel,
|
|
52
|
+
type,
|
|
53
|
+
...props
|
|
54
|
+
}, ref) => {
|
|
56
55
|
const {
|
|
57
56
|
isCompact,
|
|
58
57
|
getItemGroupProps
|
|
@@ -17,25 +17,24 @@ import { toItems } from './utils.js';
|
|
|
17
17
|
import { MenuList } from './MenuList.js';
|
|
18
18
|
import SvgChevronDownStroke from '../../node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js';
|
|
19
19
|
|
|
20
|
-
const Menu = forwardRef((
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
} = _ref2;
|
|
20
|
+
const Menu = forwardRef(({
|
|
21
|
+
button,
|
|
22
|
+
buttonProps: _buttonProps = {},
|
|
23
|
+
children,
|
|
24
|
+
isCompact,
|
|
25
|
+
focusedValue: _focusedValue,
|
|
26
|
+
defaultFocusedValue,
|
|
27
|
+
defaultExpanded,
|
|
28
|
+
isExpanded: _isExpanded,
|
|
29
|
+
restoreFocus,
|
|
30
|
+
selectedItems,
|
|
31
|
+
onChange,
|
|
32
|
+
onMouseLeave,
|
|
33
|
+
maxHeight = '400px',
|
|
34
|
+
placement = 'bottom-start',
|
|
35
|
+
zIndex = 1000,
|
|
36
|
+
...props
|
|
37
|
+
}, ref) => {
|
|
39
38
|
const triggerRef = useRef(null);
|
|
40
39
|
const menuRef = useRef(null);
|
|
41
40
|
const items = toItems(children);
|
|
@@ -8,7 +8,7 @@ import React__default, { forwardRef, useRef, useState, useContext, useEffect } f
|
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { ThemeContext } from 'styled-components';
|
|
10
10
|
import { DEFAULT_THEME, getFloatingPlacements, getMenuPosition, getArrowPosition } from '@zendeskgarden/react-theming';
|
|
11
|
-
import { useFloating,
|
|
11
|
+
import { useFloating, offset, autoPlacement, flip, size, platform, autoUpdate } from '@floating-ui/react-dom';
|
|
12
12
|
import { PLACEMENT } from '../../types/index.js';
|
|
13
13
|
import '../../views/combobox/StyledCombobox.js';
|
|
14
14
|
import '../../views/combobox/StyledContainer.js';
|
|
@@ -46,21 +46,20 @@ import '../../views/menu/StyledSeparator.js';
|
|
|
46
46
|
import { createPortal } from 'react-dom';
|
|
47
47
|
|
|
48
48
|
const PLACEMENT_DEFAULT = 'bottom-start';
|
|
49
|
-
const MenuList = forwardRef((
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
} = _ref;
|
|
49
|
+
const MenuList = forwardRef(({
|
|
50
|
+
appendToNode,
|
|
51
|
+
hasArrow,
|
|
52
|
+
isCompact,
|
|
53
|
+
isExpanded,
|
|
54
|
+
fallbackPlacements: _fallbackPlacements,
|
|
55
|
+
maxHeight = '400px',
|
|
56
|
+
minHeight,
|
|
57
|
+
placement: _placement = PLACEMENT_DEFAULT,
|
|
58
|
+
triggerRef,
|
|
59
|
+
zIndex = 1000,
|
|
60
|
+
children,
|
|
61
|
+
...props
|
|
62
|
+
}, ref) => {
|
|
64
63
|
const floatingRef = useRef(null);
|
|
65
64
|
const [isVisible, setIsVisible] = useState(isExpanded);
|
|
66
65
|
const [height, setHeight] = useState();
|
|
@@ -86,11 +85,10 @@ const MenuList = forwardRef((_ref, ref) => {
|
|
|
86
85
|
middleware: [offset(theme.space.base * (hasArrow ? 2 : 1)), _placement === 'auto' ? autoPlacement() : flip({
|
|
87
86
|
fallbackPlacements
|
|
88
87
|
}), size({
|
|
89
|
-
apply:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
} = _ref2;
|
|
88
|
+
apply: ({
|
|
89
|
+
rects,
|
|
90
|
+
availableHeight
|
|
91
|
+
}) => {
|
|
94
92
|
if (!(minHeight === null || minHeight === 'fit-content')) {
|
|
95
93
|
if (rects.floating.height > availableHeight) {
|
|
96
94
|
setHeight(availableHeight);
|
|
@@ -41,11 +41,10 @@ import { StyledSeparator } from '../../views/menu/StyledSeparator.js';
|
|
|
41
41
|
import useMenuContext from '../../context/useMenuContext.js';
|
|
42
42
|
|
|
43
43
|
const Separator = forwardRef(
|
|
44
|
-
(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} = _ref;
|
|
44
|
+
({
|
|
45
|
+
children,
|
|
46
|
+
...props
|
|
47
|
+
}, ref) => {
|
|
49
48
|
const {
|
|
50
49
|
getSeparatorProps
|
|
51
50
|
} = useMenuContext();
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
10
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
10
|
+
function _extends$1() { return _extends$1 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$1.apply(null, arguments); }
|
|
11
11
|
var SvgCheckLgStroke = function SvgCheckLgStroke(props) {
|
|
12
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: 16,
|
|
15
15
|
height: 16,
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
|
-
var _path;
|
|
10
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
9
|
+
var _path$4;
|
|
10
|
+
function _extends$5() { return _extends$5 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$5.apply(null, arguments); }
|
|
11
11
|
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
12
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: 16,
|
|
15
15
|
height: 16,
|
|
16
16
|
focusable: "false",
|
|
17
17
|
viewBox: "0 0 16 16",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
20
20
|
fill: "currentColor",
|
|
21
21
|
d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
|
|
22
22
|
})));
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
|
-
var _path;
|
|
10
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
9
|
+
var _path$1;
|
|
10
|
+
function _extends$2() { return _extends$2 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$2.apply(null, arguments); }
|
|
11
11
|
var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
12
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: 16,
|
|
15
15
|
height: 16,
|
|
16
16
|
focusable: "false",
|
|
17
17
|
viewBox: "0 0 16 16",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
20
20
|
fill: "currentColor",
|
|
21
21
|
d: "M10.39 12.688a.5.5 0 01-.718.69l-.062-.066-4-5a.5.5 0 01-.054-.542l.054-.082 4-5a.5.5 0 01.83.55l-.05.074L6.641 8l3.75 4.688z"
|
|
22
22
|
})));
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
|
-
var _path;
|
|
10
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
9
|
+
var _path$2;
|
|
10
|
+
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
11
11
|
var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
12
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: 16,
|
|
15
15
|
height: 16,
|
|
16
16
|
focusable: "false",
|
|
17
17
|
viewBox: "0 0 16 16",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
20
20
|
fill: "currentColor",
|
|
21
21
|
d: "M5.61 3.312a.5.5 0 01.718-.69l.062.066 4 5a.5.5 0 01.054.542l-.054.082-4 5a.5.5 0 01-.83-.55l.05-.074L9.359 8l-3.75-4.688z"
|
|
22
22
|
})));
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
|
-
var _path;
|
|
10
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
9
|
+
var _path$3;
|
|
10
|
+
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
11
11
|
var SvgPlusStroke = function SvgPlusStroke(props) {
|
|
12
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: 16,
|
|
15
15
|
height: 16,
|
|
16
16
|
focusable: "false",
|
|
17
17
|
viewBox: "0 0 16 16",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
20
20
|
stroke: "currentColor",
|
|
21
21
|
strokeLinecap: "round",
|
|
22
22
|
d: "M7.5 2.5v12m6-6h-12"
|
|
@@ -10,18 +10,18 @@ import { StyledLabel } from './StyledLabel.js';
|
|
|
10
10
|
import { StyledHint } from './StyledHint.js';
|
|
11
11
|
import { StyledMessage } from './StyledMessage.js';
|
|
12
12
|
|
|
13
|
-
const COMPONENT_ID = 'dropdowns.combobox';
|
|
14
|
-
const sizeStyles = props => {
|
|
13
|
+
const COMPONENT_ID$t = 'dropdowns.combobox';
|
|
14
|
+
const sizeStyles$b = props => {
|
|
15
15
|
const minWidth = `${props.$isCompact ? 100 : 144}px`;
|
|
16
16
|
const marginTop = `${props.theme.space.base * (props.$isCompact ? 1 : 2)}px`;
|
|
17
17
|
return css(["min-width:", ";", ":not([hidden]) + &&,", " + &&,", " + &&,&& + ", ",&& + ", "{margin-top:", ";}"], minWidth, StyledLabel, StyledHint, StyledMessage, StyledHint, StyledMessage, marginTop);
|
|
18
18
|
};
|
|
19
19
|
const StyledCombobox = styled.div.attrs({
|
|
20
|
-
'data-garden-id': COMPONENT_ID,
|
|
21
|
-
'data-garden-version': '9.12.
|
|
20
|
+
'data-garden-id': COMPONENT_ID$t,
|
|
21
|
+
'data-garden-version': '9.12.4'
|
|
22
22
|
}).withConfig({
|
|
23
23
|
displayName: "StyledCombobox",
|
|
24
24
|
componentId: "sc-13eybg8-0"
|
|
25
|
-
})(["", ";", ";"], sizeStyles, componentStyles);
|
|
25
|
+
})(["", ";", ";"], sizeStyles$b, componentStyles);
|
|
26
26
|
|
|
27
27
|
export { StyledCombobox };
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'dropdowns.combobox.container';
|
|
10
|
+
const COMPONENT_ID$s = 'dropdowns.combobox.container';
|
|
11
11
|
const StyledContainer = styled.div.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$s,
|
|
13
|
+
'data-garden-version': '9.12.4'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledContainer",
|
|
16
16
|
componentId: "sc-14i9jid-0"
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'dropdowns.combobox.field';
|
|
10
|
+
const COMPONENT_ID$r = 'dropdowns.combobox.field';
|
|
11
11
|
const StyledField = styled.div.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$r,
|
|
13
|
+
'data-garden-version': '9.12.4'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledField",
|
|
16
16
|
componentId: "sc-zc57xl-0"
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { menuStyles, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'dropdowns.combobox.floating';
|
|
10
|
+
const COMPONENT_ID$q = 'dropdowns.combobox.floating';
|
|
11
11
|
const StyledFloatingListbox = styled.div.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$q,
|
|
13
|
+
'data-garden-version': '9.12.4'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledFloatingListbox",
|
|
16
16
|
componentId: "sc-1cp6spf-0"
|