@zendeskgarden/react-dropdowns 9.0.0-next.8 → 9.0.0-next.9
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 +6 -6
- package/dist/esm/elements/combobox/OptGroup.js +2 -2
- package/dist/esm/elements/combobox/Option.js +2 -2
- package/dist/esm/elements/menu/Item.js +2 -2
- package/dist/esm/elements/menu/ItemGroup.js +2 -2
- package/dist/esm/views/combobox/StyledCombobox.js +1 -1
- package/dist/esm/views/combobox/StyledContainer.js +1 -1
- package/dist/esm/views/combobox/StyledField.js +1 -1
- package/dist/esm/views/combobox/StyledFloatingListbox.js +1 -1
- package/dist/esm/views/combobox/StyledHint.js +1 -1
- package/dist/esm/views/combobox/StyledInput.js +1 -1
- package/dist/esm/views/combobox/StyledInputGroup.js +1 -1
- package/dist/esm/views/combobox/StyledInputIcon.js +6 -19
- package/dist/esm/views/combobox/StyledLabel.js +1 -1
- package/dist/esm/views/combobox/StyledListbox.js +1 -1
- package/dist/esm/views/combobox/StyledListboxSeparator.js +1 -1
- package/dist/esm/views/combobox/StyledMessage.js +1 -1
- package/dist/esm/views/combobox/StyledOptGroup.js +1 -1
- package/dist/esm/views/combobox/StyledOption.js +1 -1
- package/dist/esm/views/combobox/StyledOptionContent.js +1 -1
- package/dist/esm/views/combobox/StyledOptionIcon.js +3 -11
- package/dist/esm/views/combobox/StyledOptionMeta.js +1 -1
- package/dist/esm/views/combobox/StyledOptionTypeIcon.js +8 -18
- package/dist/esm/views/combobox/StyledTag.js +1 -1
- package/dist/esm/views/combobox/StyledTagsButton.js +1 -1
- package/dist/esm/views/combobox/StyledTrigger.js +1 -1
- package/dist/esm/views/combobox/StyledValue.js +1 -1
- package/dist/esm/views/menu/StyledButton.js +1 -1
- package/dist/esm/views/menu/StyledFloatingMenu.js +1 -1
- package/dist/esm/views/menu/StyledItem.js +1 -1
- package/dist/esm/views/menu/StyledItemContent.js +1 -1
- package/dist/esm/views/menu/StyledItemGroup.js +1 -1
- package/dist/esm/views/menu/StyledItemIcon.js +1 -1
- package/dist/esm/views/menu/StyledItemMeta.js +1 -1
- package/dist/esm/views/menu/StyledItemTypeIcon.js +1 -1
- package/dist/esm/views/menu/StyledMenu.js +1 -1
- package/dist/esm/views/menu/StyledSeparator.js +1 -1
- package/dist/index.cjs.js +57 -85
- package/dist/typings/views/combobox/StyledInputIcon.d.ts +6 -6
- package/dist/typings/views/combobox/StyledOptionIcon.d.ts +1 -1
- package/dist/typings/views/combobox/StyledOptionTypeIcon.d.ts +3 -3
- package/dist/typings/views/menu/StyledButton.d.ts +2 -2
- package/dist/typings/views/menu/StyledItemIcon.d.ts +1 -1
- package/dist/typings/views/menu/StyledItemTypeIcon.d.ts +1 -1
- package/package.json +7 -7
|
@@ -244,8 +244,8 @@ const Combobox = forwardRef((_ref, ref) => {
|
|
|
244
244
|
}, props, {
|
|
245
245
|
ref: ref
|
|
246
246
|
}), React__default.createElement(StyledTrigger, triggerProps, React__default.createElement(StyledContainer, null, startIcon && React__default.createElement(StyledInputIcon, {
|
|
247
|
-
isLabelHovered: isLabelHovered,
|
|
248
|
-
isCompact: isCompact
|
|
247
|
+
$isLabelHovered: isLabelHovered,
|
|
248
|
+
$isCompact: isCompact
|
|
249
249
|
}, startIcon), React__default.createElement(StyledInputGroup, null, isMultiselectable && Array.isArray(selection) && React__default.createElement(TagGroup, {
|
|
250
250
|
isDisabled: isDisabled,
|
|
251
251
|
isExpanded: isTagGroupExpanded,
|
|
@@ -274,10 +274,10 @@ const Combobox = forwardRef((_ref, ref) => {
|
|
|
274
274
|
selection,
|
|
275
275
|
inputValue
|
|
276
276
|
}) : inputValue || placeholder), React__default.createElement(StyledInput, inputProps)), (hasChevron || endIcon) && React__default.createElement(StyledInputIcon, {
|
|
277
|
-
isCompact: isCompact,
|
|
278
|
-
isEnd: true,
|
|
279
|
-
isLabelHovered: isLabelHovered,
|
|
280
|
-
isRotated: hasChevron && isExpanded
|
|
277
|
+
$isCompact: isCompact,
|
|
278
|
+
$isEnd: true,
|
|
279
|
+
$isLabelHovered: isLabelHovered,
|
|
280
|
+
$isRotated: hasChevron && isExpanded
|
|
281
281
|
}, hasChevron ? React__default.createElement(SvgChevronDownStroke, null) : endIcon))), React__default.createElement(Listbox, Object.assign({
|
|
282
282
|
appendToNode: listboxAppendToNode,
|
|
283
283
|
isCompact: isCompact,
|
|
@@ -75,8 +75,8 @@ const OptGroup = forwardRef((_ref, ref) => {
|
|
|
75
75
|
isCompact: isCompact,
|
|
76
76
|
$type: "header"
|
|
77
77
|
}, icon && React__default.createElement(StyledOptionTypeIcon, {
|
|
78
|
-
isCompact: isCompact,
|
|
79
|
-
type: "header"
|
|
78
|
+
$isCompact: isCompact,
|
|
79
|
+
$type: "header"
|
|
80
80
|
}, icon), content || legend), React__default.createElement(StyledOptGroup, Object.assign({
|
|
81
81
|
isCompact: isCompact
|
|
82
82
|
}, optGroupProps), React__default.createElement(StyledListboxSeparator, {
|
|
@@ -112,8 +112,8 @@ const OptionComponent = forwardRef((_ref, ref) => {
|
|
|
112
112
|
isCompact: isCompact,
|
|
113
113
|
$type: type
|
|
114
114
|
}, props, optionProps), React__default.createElement(StyledOptionTypeIcon, {
|
|
115
|
-
isCompact: isCompact,
|
|
116
|
-
type: type
|
|
115
|
+
$isCompact: isCompact,
|
|
116
|
+
$type: type
|
|
117
117
|
}, renderActionIcon(type)), icon && React__default.createElement(StyledOptionIcon, null, icon), React__default.createElement(StyledOptionContent, null, children || label || value)));
|
|
118
118
|
});
|
|
119
119
|
OptionComponent.displayName = 'Option';
|
|
@@ -120,8 +120,8 @@ const ItemComponent = forwardRef((_ref, ref) => {
|
|
|
120
120
|
}, props, itemProps, {
|
|
121
121
|
ref: mergeRefs([_itemRef, ref])
|
|
122
122
|
}), React__default.createElement(StyledItemTypeIcon, {
|
|
123
|
-
isCompact: isCompact,
|
|
124
|
-
type: type
|
|
123
|
+
$isCompact: isCompact,
|
|
124
|
+
$type: type
|
|
125
125
|
}, renderActionIcon(type)), icon && React__default.createElement(StyledItemIcon, null, icon), React__default.createElement(StyledItemContent, null, children || label)));
|
|
126
126
|
});
|
|
127
127
|
ItemComponent.displayName = 'Item';
|
|
@@ -77,8 +77,8 @@ const ItemGroup = forwardRef((_ref, ref) => {
|
|
|
77
77
|
isCompact: isCompact,
|
|
78
78
|
$type: "header"
|
|
79
79
|
}, icon && React__default.createElement(StyledItemTypeIcon, {
|
|
80
|
-
isCompact: isCompact,
|
|
81
|
-
type: "header"
|
|
80
|
+
$isCompact: isCompact,
|
|
81
|
+
$type: "header"
|
|
82
82
|
}, icon), content || legend), React__default.createElement(StyledItemGroup, Object.assign({
|
|
83
83
|
isCompact: isCompact
|
|
84
84
|
}, groupProps), React__default.createElement(StyledSeparator, {
|
|
@@ -18,7 +18,7 @@ const sizeStyles = props => {
|
|
|
18
18
|
};
|
|
19
19
|
const StyledCombobox = styled.div.attrs({
|
|
20
20
|
'data-garden-id': COMPONENT_ID,
|
|
21
|
-
'data-garden-version': '9.0.0-next.
|
|
21
|
+
'data-garden-version': '9.0.0-next.9'
|
|
22
22
|
}).withConfig({
|
|
23
23
|
displayName: "StyledCombobox",
|
|
24
24
|
componentId: "sc-13eybg8-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.combobox.container';
|
|
11
11
|
const StyledContainer = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.9'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledContainer",
|
|
16
16
|
componentId: "sc-14i9jid-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.combobox.field';
|
|
11
11
|
const StyledField = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.9'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledField",
|
|
16
16
|
componentId: "sc-zc57xl-0"
|
|
@@ -10,7 +10,7 @@ import { menuStyles, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgard
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.combobox.floating';
|
|
11
11
|
const StyledFloatingListbox = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.9'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledFloatingListbox",
|
|
16
16
|
componentId: "sc-1cp6spf-0"
|
|
@@ -11,7 +11,7 @@ import { Field } from '@zendeskgarden/react-forms';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.combobox.hint';
|
|
12
12
|
const StyledHint = styled(Field.Hint).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledHint",
|
|
17
17
|
componentId: "sc-106qvqx-0"
|
|
@@ -29,7 +29,7 @@ const sizeStyles = props => {
|
|
|
29
29
|
};
|
|
30
30
|
const StyledInput = styled.input.attrs({
|
|
31
31
|
'data-garden-id': COMPONENT_ID,
|
|
32
|
-
'data-garden-version': '9.0.0-next.
|
|
32
|
+
'data-garden-version': '9.0.0-next.9'
|
|
33
33
|
}).withConfig({
|
|
34
34
|
displayName: "StyledInput",
|
|
35
35
|
componentId: "sc-1lkqdg-0"
|
|
@@ -14,7 +14,7 @@ const sizeStyles = props => {
|
|
|
14
14
|
};
|
|
15
15
|
const StyledInputGroup = styled.div.attrs({
|
|
16
16
|
'data-garden-id': COMPONENT_ID,
|
|
17
|
-
'data-garden-version': '9.0.0-next.
|
|
17
|
+
'data-garden-version': '9.0.0-next.9'
|
|
18
18
|
}).withConfig({
|
|
19
19
|
displayName: "StyledInputGroup",
|
|
20
20
|
componentId: "sc-yx3q7u-0"
|
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import { cloneElement, Children } from 'react';
|
|
8
7
|
import styled, { css } from 'styled-components';
|
|
9
8
|
import { math } from 'polished';
|
|
10
|
-
import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
|
|
9
|
+
import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
|
|
11
10
|
import { getHeight } from './StyledInput.js';
|
|
12
11
|
import { StyledTrigger } from './StyledTrigger.js';
|
|
13
12
|
|
|
@@ -16,39 +15,27 @@ const colorStyles = props => {
|
|
|
16
15
|
const color = getColorV8('neutralHue', 600, props.theme);
|
|
17
16
|
const focusColor = getColorV8('neutralHue', 700, props.theme);
|
|
18
17
|
const disabledColor = getColorV8('neutralHue', 400, props.theme);
|
|
19
|
-
return css(["color:", ";", ":hover &,", ":focus-within &,", ":focus &{color:", ";}", "[aria-disabled='true'] &{color:", ";}"], props
|
|
18
|
+
return css(["color:", ";", ":hover &,", ":focus-within &,", ":focus &{color:", ";}", "[aria-disabled='true'] &{color:", ";}"], props.$isLabelHovered ? focusColor : color, StyledTrigger, StyledTrigger, StyledTrigger, focusColor, StyledTrigger, disabledColor);
|
|
20
19
|
};
|
|
21
20
|
const sizeStyles = props => {
|
|
22
21
|
const size = props.theme.iconSizes.md;
|
|
23
22
|
const position = math(`(${getHeight(props)} - ${size}) / 2`);
|
|
24
23
|
const margin = `${props.theme.space.base * 2}px`;
|
|
25
24
|
let side;
|
|
26
|
-
if (props
|
|
25
|
+
if (props.$isEnd) {
|
|
27
26
|
side = props.theme.rtl ? 'right' : 'left';
|
|
28
27
|
} else {
|
|
29
28
|
side = props.theme.rtl ? 'left' : 'right';
|
|
30
29
|
}
|
|
31
30
|
return css(["top:", ";margin-", ":", ";width:", ";height:", ";"], position, side, margin, size, size);
|
|
32
31
|
};
|
|
33
|
-
const StyledInputIcon = styled(
|
|
34
|
-
let {
|
|
35
|
-
children,
|
|
36
|
-
isCompact,
|
|
37
|
-
isDisabled,
|
|
38
|
-
isEnd,
|
|
39
|
-
isLabelHovered,
|
|
40
|
-
isRotated,
|
|
41
|
-
theme,
|
|
42
|
-
...props
|
|
43
|
-
} = _ref;
|
|
44
|
-
return cloneElement(Children.only(children), props);
|
|
45
|
-
}).attrs({
|
|
32
|
+
const StyledInputIcon = styled(StyledBaseIcon).attrs({
|
|
46
33
|
'data-garden-id': COMPONENT_ID,
|
|
47
|
-
'data-garden-version': '9.0.0-next.
|
|
34
|
+
'data-garden-version': '9.0.0-next.9'
|
|
48
35
|
}).withConfig({
|
|
49
36
|
displayName: "StyledInputIcon",
|
|
50
37
|
componentId: "sc-gqbs1s-0"
|
|
51
|
-
})(["position:sticky;flex-shrink:0;transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", ";", ";"], props => props
|
|
38
|
+
})(["position:sticky;flex-shrink:0;transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", ";", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
52
39
|
StyledInputIcon.defaultProps = {
|
|
53
40
|
theme: DEFAULT_THEME
|
|
54
41
|
};
|
|
@@ -11,7 +11,7 @@ import { Field } from '@zendeskgarden/react-forms';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.combobox.label';
|
|
12
12
|
const StyledLabel = styled(Field.Label).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledLabel",
|
|
17
17
|
componentId: "sc-az6now-0"
|
|
@@ -19,7 +19,7 @@ const sizeStyles = props => {
|
|
|
19
19
|
};
|
|
20
20
|
const StyledListbox = styled.ul.attrs({
|
|
21
21
|
'data-garden-id': COMPONENT_ID,
|
|
22
|
-
'data-garden-version': '9.0.0-next.
|
|
22
|
+
'data-garden-version': '9.0.0-next.9'
|
|
23
23
|
}).withConfig({
|
|
24
24
|
displayName: "StyledListbox",
|
|
25
25
|
componentId: "sc-1k13ba7-0"
|
|
@@ -19,7 +19,7 @@ const sizeStyles = props => {
|
|
|
19
19
|
};
|
|
20
20
|
const StyledListboxSeparator = styled.li.attrs({
|
|
21
21
|
'data-garden-id': COMPONENT_ID,
|
|
22
|
-
'data-garden-version': '9.0.0-next.
|
|
22
|
+
'data-garden-version': '9.0.0-next.9'
|
|
23
23
|
}).withConfig({
|
|
24
24
|
displayName: "StyledListboxSeparator",
|
|
25
25
|
componentId: "sc-1p6toh2-0"
|
|
@@ -11,7 +11,7 @@ import { Field } from '@zendeskgarden/react-forms';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.combobox.message';
|
|
12
12
|
const StyledMessage = styled(Field.Message).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledMessage",
|
|
17
17
|
componentId: "sc-jux8m5-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.combobox.optgroup';
|
|
11
11
|
const StyledOptGroup = styled.ul.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.9'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledOptGroup",
|
|
16
16
|
componentId: "sc-1kavqsx-0"
|
|
@@ -36,7 +36,7 @@ const sizeStyles = props => {
|
|
|
36
36
|
};
|
|
37
37
|
const StyledOption = styled.li.attrs({
|
|
38
38
|
'data-garden-id': COMPONENT_ID,
|
|
39
|
-
'data-garden-version': '9.0.0-next.
|
|
39
|
+
'data-garden-version': '9.0.0-next.9'
|
|
40
40
|
}).withConfig({
|
|
41
41
|
displayName: "StyledOption",
|
|
42
42
|
componentId: "sc-jl4wn6-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.combobox.option.content';
|
|
11
11
|
const StyledOptionContent = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.9'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledOptionContent",
|
|
16
16
|
componentId: "sc-121ujpu-0"
|
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
10
|
-
import { cloneElement, Children } from 'react';
|
|
9
|
+
import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
11
10
|
|
|
12
11
|
const COMPONENT_ID = 'dropdowns.combobox.option.icon';
|
|
13
12
|
const sizeStyles = props => {
|
|
@@ -16,16 +15,9 @@ const sizeStyles = props => {
|
|
|
16
15
|
const marginHorizontal = `${props.theme.space.base * 2}px`;
|
|
17
16
|
return css(["margin-top:", ";margin-", ":", ";width:", ";height:", ";"], marginTop, props.theme.rtl ? 'left' : 'right', marginHorizontal, size, size);
|
|
18
17
|
};
|
|
19
|
-
const StyledOptionIcon = styled(
|
|
20
|
-
let {
|
|
21
|
-
children,
|
|
22
|
-
theme,
|
|
23
|
-
...props
|
|
24
|
-
} = _ref;
|
|
25
|
-
return cloneElement(Children.only(children), props);
|
|
26
|
-
}).attrs({
|
|
18
|
+
const StyledOptionIcon = styled(StyledBaseIcon).attrs({
|
|
27
19
|
'data-garden-id': COMPONENT_ID,
|
|
28
|
-
'data-garden-version': '9.0.0-next.
|
|
20
|
+
'data-garden-version': '9.0.0-next.9'
|
|
29
21
|
}).withConfig({
|
|
30
22
|
displayName: "StyledOptionIcon",
|
|
31
23
|
componentId: "sc-qsab3y-0"
|
|
@@ -19,7 +19,7 @@ const sizeStyles = props => {
|
|
|
19
19
|
};
|
|
20
20
|
const StyledOptionMeta = styled.div.attrs({
|
|
21
21
|
'data-garden-id': COMPONENT_ID,
|
|
22
|
-
'data-garden-version': '9.0.0-next.
|
|
22
|
+
'data-garden-version': '9.0.0-next.9'
|
|
23
23
|
}).withConfig({
|
|
24
24
|
displayName: "StyledOptionMeta",
|
|
25
25
|
componentId: "sc-j6pu10-0"
|
|
@@ -4,19 +4,18 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
import { cloneElement, Children } from 'react';
|
|
8
7
|
import styled, { css } from 'styled-components';
|
|
9
8
|
import { math } from 'polished';
|
|
10
|
-
import { retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
|
|
9
|
+
import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME, getColorV8 } from '@zendeskgarden/react-theming';
|
|
11
10
|
import { StyledOption, getMinHeight } from './StyledOption.js';
|
|
12
11
|
|
|
13
12
|
const COMPONENT_ID = 'dropdowns.combobox.option.type_icon';
|
|
14
13
|
const colorStyles = props => {
|
|
15
|
-
const opacity = props
|
|
14
|
+
const opacity = props.$type && props.$type !== 'danger' ? 1 : 0;
|
|
16
15
|
let color;
|
|
17
|
-
if (props
|
|
16
|
+
if (props.$type === 'add' || props.$type === 'danger') {
|
|
18
17
|
color = 'inherit';
|
|
19
|
-
} else if (props
|
|
18
|
+
} else if (props.$type === 'header' || props.$type === 'next' || props.$type === 'previous') {
|
|
20
19
|
color = getColorV8('neutralHue', 600, props.theme);
|
|
21
20
|
} else {
|
|
22
21
|
color = getColorV8('primaryHue', 600, props.theme);
|
|
@@ -28,29 +27,20 @@ const sizeStyles = props => {
|
|
|
28
27
|
const position = `${props.theme.space.base * 3}px`;
|
|
29
28
|
const top = math(`(${getMinHeight(props)} - ${size}) / 2`);
|
|
30
29
|
let side;
|
|
31
|
-
if (props
|
|
30
|
+
if (props.$type === 'next') {
|
|
32
31
|
side = props.theme.rtl ? 'left' : 'right';
|
|
33
32
|
} else {
|
|
34
33
|
side = props.theme.rtl ? 'right' : 'left';
|
|
35
34
|
}
|
|
36
35
|
return css(["top:", ";", ":", ";width:", ";height:", ";"], top, side, position, size, size);
|
|
37
36
|
};
|
|
38
|
-
const StyledOptionTypeIcon = styled(
|
|
39
|
-
let {
|
|
40
|
-
children,
|
|
41
|
-
isCompact,
|
|
42
|
-
theme,
|
|
43
|
-
type,
|
|
44
|
-
...props
|
|
45
|
-
} = _ref;
|
|
46
|
-
return cloneElement(Children.only(children), props);
|
|
47
|
-
}).attrs({
|
|
37
|
+
const StyledOptionTypeIcon = styled(StyledBaseIcon).attrs({
|
|
48
38
|
'data-garden-id': COMPONENT_ID,
|
|
49
|
-
'data-garden-version': '9.0.0-next.
|
|
39
|
+
'data-garden-version': '9.0.0-next.9'
|
|
50
40
|
}).withConfig({
|
|
51
41
|
displayName: "StyledOptionTypeIcon",
|
|
52
42
|
componentId: "sc-xpink2-0"
|
|
53
|
-
})(["position:absolute;transform:", ";transition:opacity 0.1s ease-in-out;", ";", ";", ";"], props => props.theme.rtl && (props
|
|
43
|
+
})(["position:absolute;transform:", ";transition:opacity 0.1s ease-in-out;", ";", ";", ";"], props => props.theme.rtl && (props.$type === 'next' || props.$type === 'previous') && 'rotate(180deg)', sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
54
44
|
StyledOptionTypeIcon.defaultProps = {
|
|
55
45
|
theme: DEFAULT_THEME
|
|
56
46
|
};
|
|
@@ -12,7 +12,7 @@ import { Tag } from '@zendeskgarden/react-tags';
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.combobox.tag';
|
|
13
13
|
const StyledTag = styled(Tag).attrs({
|
|
14
14
|
'data-garden-id': COMPONENT_ID,
|
|
15
|
-
'data-garden-version': '9.0.0-next.
|
|
15
|
+
'data-garden-version': '9.0.0-next.9'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledTag",
|
|
18
18
|
componentId: "sc-1alam0r-0"
|
|
@@ -16,7 +16,7 @@ const colorStyles = props => {
|
|
|
16
16
|
const StyledTagsButton = styled(StyledValue).attrs({
|
|
17
17
|
as: 'button',
|
|
18
18
|
'data-garden-id': COMPONENT_ID,
|
|
19
|
-
'data-garden-version': '9.0.0-next.
|
|
19
|
+
'data-garden-version': '9.0.0-next.9'
|
|
20
20
|
}).withConfig({
|
|
21
21
|
displayName: "StyledTagsButton",
|
|
22
22
|
componentId: "sc-6q5w33-0"
|
|
@@ -82,7 +82,7 @@ const sizeStyles = props => {
|
|
|
82
82
|
};
|
|
83
83
|
const StyledTrigger = styled.div.attrs({
|
|
84
84
|
'data-garden-id': COMPONENT_ID,
|
|
85
|
-
'data-garden-version': '9.0.0-next.
|
|
85
|
+
'data-garden-version': '9.0.0-next.9'
|
|
86
86
|
}).withConfig({
|
|
87
87
|
displayName: "StyledTrigger",
|
|
88
88
|
componentId: "sc-116nftk-0"
|
|
@@ -15,7 +15,7 @@ const colorStyles = props => {
|
|
|
15
15
|
};
|
|
16
16
|
const StyledValue = styled.div.attrs({
|
|
17
17
|
'data-garden-id': COMPONENT_ID,
|
|
18
|
-
'data-garden-version': '9.0.0-next.
|
|
18
|
+
'data-garden-version': '9.0.0-next.9'
|
|
19
19
|
}).withConfig({
|
|
20
20
|
displayName: "StyledValue",
|
|
21
21
|
componentId: "sc-t719sx-0"
|
|
@@ -11,7 +11,7 @@ import { Button } from '@zendeskgarden/react-buttons';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu.button';
|
|
12
12
|
const StyledButton = styled(Button).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledButton",
|
|
17
17
|
componentId: "sc-5hs2jg-0"
|
|
@@ -11,7 +11,7 @@ import { StyledFloatingListbox } from '../combobox/StyledFloatingListbox.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu.floating';
|
|
12
12
|
const StyledFloatingMenu = styled(StyledFloatingListbox).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledFloatingMenu",
|
|
17
17
|
componentId: "sc-1rc7ahb-0"
|
|
@@ -11,7 +11,7 @@ import { StyledOption } from '../combobox/StyledOption.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu.item';
|
|
12
12
|
const StyledItem = styled(StyledOption).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledItem",
|
|
17
17
|
componentId: "sc-1jp99dq-0"
|
|
@@ -11,7 +11,7 @@ import { StyledOptionContent } from '../combobox/StyledOptionContent.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu.item.content';
|
|
12
12
|
const StyledItemContent = styled(StyledOptionContent).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledItemContent",
|
|
17
17
|
componentId: "sc-1opglsb-0"
|
|
@@ -11,7 +11,7 @@ import { StyledOptGroup } from '../combobox/StyledOptGroup.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu.item_group';
|
|
12
12
|
const StyledItemGroup = styled(StyledOptGroup).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledItemGroup",
|
|
17
17
|
componentId: "sc-1umk3cg-0"
|
|
@@ -11,7 +11,7 @@ import { StyledOptionIcon } from '../combobox/StyledOptionIcon.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu.item.icon';
|
|
12
12
|
const StyledItemIcon = styled(StyledOptionIcon).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledItemIcon",
|
|
17
17
|
componentId: "sc-w9orqb-0"
|
|
@@ -11,7 +11,7 @@ import { StyledOptionMeta } from '../combobox/StyledOptionMeta.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu.item.meta';
|
|
12
12
|
const StyledItemMeta = styled(StyledOptionMeta).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledItemMeta",
|
|
17
17
|
componentId: "sc-1unw3x1-0"
|
|
@@ -12,7 +12,7 @@ import { StyledItem } from './StyledItem.js';
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.menu.item.type_icon';
|
|
13
13
|
const StyledItemTypeIcon = styled(StyledOptionTypeIcon).attrs({
|
|
14
14
|
'data-garden-id': COMPONENT_ID,
|
|
15
|
-
'data-garden-version': '9.0.0-next.
|
|
15
|
+
'data-garden-version': '9.0.0-next.9'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledItemTypeIcon",
|
|
18
18
|
componentId: "sc-1pll3nu-0"
|
|
@@ -11,7 +11,7 @@ import { StyledListbox } from '../combobox/StyledListbox.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu';
|
|
12
12
|
const StyledMenu = styled(StyledListbox).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledMenu",
|
|
17
17
|
componentId: "sc-f77ntu-0"
|
|
@@ -11,7 +11,7 @@ import { StyledListboxSeparator } from '../combobox/StyledListboxSeparator.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu.separator';
|
|
12
12
|
const StyledSeparator = styled(StyledListboxSeparator).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.9'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledSeparator",
|
|
17
17
|
componentId: "sc-8kqwen-0"
|
package/dist/index.cjs.js
CHANGED
|
@@ -83,7 +83,7 @@ const useFieldContext = () => {
|
|
|
83
83
|
const COMPONENT_ID$v = 'dropdowns.combobox.label';
|
|
84
84
|
const StyledLabel = styled__default.default(reactForms.Field.Label).attrs({
|
|
85
85
|
'data-garden-id': COMPONENT_ID$v,
|
|
86
|
-
'data-garden-version': '9.0.0-next.
|
|
86
|
+
'data-garden-version': '9.0.0-next.9'
|
|
87
87
|
}).withConfig({
|
|
88
88
|
displayName: "StyledLabel",
|
|
89
89
|
componentId: "sc-az6now-0"
|
|
@@ -95,7 +95,7 @@ StyledLabel.defaultProps = {
|
|
|
95
95
|
const COMPONENT_ID$u = 'dropdowns.combobox.hint';
|
|
96
96
|
const StyledHint = styled__default.default(reactForms.Field.Hint).attrs({
|
|
97
97
|
'data-garden-id': COMPONENT_ID$u,
|
|
98
|
-
'data-garden-version': '9.0.0-next.
|
|
98
|
+
'data-garden-version': '9.0.0-next.9'
|
|
99
99
|
}).withConfig({
|
|
100
100
|
displayName: "StyledHint",
|
|
101
101
|
componentId: "sc-106qvqx-0"
|
|
@@ -107,7 +107,7 @@ StyledHint.defaultProps = {
|
|
|
107
107
|
const COMPONENT_ID$t = 'dropdowns.combobox.message';
|
|
108
108
|
const StyledMessage = styled__default.default(reactForms.Field.Message).attrs({
|
|
109
109
|
'data-garden-id': COMPONENT_ID$t,
|
|
110
|
-
'data-garden-version': '9.0.0-next.
|
|
110
|
+
'data-garden-version': '9.0.0-next.9'
|
|
111
111
|
}).withConfig({
|
|
112
112
|
displayName: "StyledMessage",
|
|
113
113
|
componentId: "sc-jux8m5-0"
|
|
@@ -124,7 +124,7 @@ const sizeStyles$a = props => {
|
|
|
124
124
|
};
|
|
125
125
|
const StyledCombobox = styled__default.default.div.attrs({
|
|
126
126
|
'data-garden-id': COMPONENT_ID$s,
|
|
127
|
-
'data-garden-version': '9.0.0-next.
|
|
127
|
+
'data-garden-version': '9.0.0-next.9'
|
|
128
128
|
}).withConfig({
|
|
129
129
|
displayName: "StyledCombobox",
|
|
130
130
|
componentId: "sc-13eybg8-0"
|
|
@@ -136,7 +136,7 @@ StyledCombobox.defaultProps = {
|
|
|
136
136
|
const COMPONENT_ID$r = 'dropdowns.combobox.container';
|
|
137
137
|
const StyledContainer = styled__default.default.div.attrs({
|
|
138
138
|
'data-garden-id': COMPONENT_ID$r,
|
|
139
|
-
'data-garden-version': '9.0.0-next.
|
|
139
|
+
'data-garden-version': '9.0.0-next.9'
|
|
140
140
|
}).withConfig({
|
|
141
141
|
displayName: "StyledContainer",
|
|
142
142
|
componentId: "sc-14i9jid-0"
|
|
@@ -148,7 +148,7 @@ StyledContainer.defaultProps = {
|
|
|
148
148
|
const COMPONENT_ID$q = 'dropdowns.combobox.field';
|
|
149
149
|
const StyledField = styled__default.default.div.attrs({
|
|
150
150
|
'data-garden-id': COMPONENT_ID$q,
|
|
151
|
-
'data-garden-version': '9.0.0-next.
|
|
151
|
+
'data-garden-version': '9.0.0-next.9'
|
|
152
152
|
}).withConfig({
|
|
153
153
|
displayName: "StyledField",
|
|
154
154
|
componentId: "sc-zc57xl-0"
|
|
@@ -160,7 +160,7 @@ StyledField.defaultProps = {
|
|
|
160
160
|
const COMPONENT_ID$p = 'dropdowns.combobox.floating';
|
|
161
161
|
const StyledFloatingListbox = styled__default.default.div.attrs({
|
|
162
162
|
'data-garden-id': COMPONENT_ID$p,
|
|
163
|
-
'data-garden-version': '9.0.0-next.
|
|
163
|
+
'data-garden-version': '9.0.0-next.9'
|
|
164
164
|
}).withConfig({
|
|
165
165
|
displayName: "StyledFloatingListbox",
|
|
166
166
|
componentId: "sc-1cp6spf-0"
|
|
@@ -195,7 +195,7 @@ const sizeStyles$9 = props => {
|
|
|
195
195
|
};
|
|
196
196
|
const StyledInput = styled__default.default.input.attrs({
|
|
197
197
|
'data-garden-id': COMPONENT_ID$o,
|
|
198
|
-
'data-garden-version': '9.0.0-next.
|
|
198
|
+
'data-garden-version': '9.0.0-next.9'
|
|
199
199
|
}).withConfig({
|
|
200
200
|
displayName: "StyledInput",
|
|
201
201
|
componentId: "sc-1lkqdg-0"
|
|
@@ -211,7 +211,7 @@ const sizeStyles$8 = props => {
|
|
|
211
211
|
};
|
|
212
212
|
const StyledInputGroup = styled__default.default.div.attrs({
|
|
213
213
|
'data-garden-id': COMPONENT_ID$n,
|
|
214
|
-
'data-garden-version': '9.0.0-next.
|
|
214
|
+
'data-garden-version': '9.0.0-next.9'
|
|
215
215
|
}).withConfig({
|
|
216
216
|
displayName: "StyledInputGroup",
|
|
217
217
|
componentId: "sc-yx3q7u-0"
|
|
@@ -293,7 +293,7 @@ const sizeStyles$7 = props => {
|
|
|
293
293
|
};
|
|
294
294
|
const StyledTrigger = styled__default.default.div.attrs({
|
|
295
295
|
'data-garden-id': COMPONENT_ID$m,
|
|
296
|
-
'data-garden-version': '9.0.0-next.
|
|
296
|
+
'data-garden-version': '9.0.0-next.9'
|
|
297
297
|
}).withConfig({
|
|
298
298
|
displayName: "StyledTrigger",
|
|
299
299
|
componentId: "sc-116nftk-0"
|
|
@@ -307,39 +307,27 @@ const colorStyles$6 = props => {
|
|
|
307
307
|
const color = reactTheming.getColorV8('neutralHue', 600, props.theme);
|
|
308
308
|
const focusColor = reactTheming.getColorV8('neutralHue', 700, props.theme);
|
|
309
309
|
const disabledColor = reactTheming.getColorV8('neutralHue', 400, props.theme);
|
|
310
|
-
return styled.css(["color:", ";", ":hover &,", ":focus-within &,", ":focus &{color:", ";}", "[aria-disabled='true'] &{color:", ";}"], props
|
|
310
|
+
return styled.css(["color:", ";", ":hover &,", ":focus-within &,", ":focus &{color:", ";}", "[aria-disabled='true'] &{color:", ";}"], props.$isLabelHovered ? focusColor : color, StyledTrigger, StyledTrigger, StyledTrigger, focusColor, StyledTrigger, disabledColor);
|
|
311
311
|
};
|
|
312
312
|
const sizeStyles$6 = props => {
|
|
313
313
|
const size = props.theme.iconSizes.md;
|
|
314
314
|
const position = polished.math(`(${getHeight(props)} - ${size}) / 2`);
|
|
315
315
|
const margin = `${props.theme.space.base * 2}px`;
|
|
316
316
|
let side;
|
|
317
|
-
if (props
|
|
317
|
+
if (props.$isEnd) {
|
|
318
318
|
side = props.theme.rtl ? 'right' : 'left';
|
|
319
319
|
} else {
|
|
320
320
|
side = props.theme.rtl ? 'left' : 'right';
|
|
321
321
|
}
|
|
322
322
|
return styled.css(["top:", ";margin-", ":", ";width:", ";height:", ";"], position, side, margin, size, size);
|
|
323
323
|
};
|
|
324
|
-
const StyledInputIcon = styled__default.default(
|
|
325
|
-
let {
|
|
326
|
-
children,
|
|
327
|
-
isCompact,
|
|
328
|
-
isDisabled,
|
|
329
|
-
isEnd,
|
|
330
|
-
isLabelHovered,
|
|
331
|
-
isRotated,
|
|
332
|
-
theme,
|
|
333
|
-
...props
|
|
334
|
-
} = _ref;
|
|
335
|
-
return React.cloneElement(React.Children.only(children), props);
|
|
336
|
-
}).attrs({
|
|
324
|
+
const StyledInputIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
337
325
|
'data-garden-id': COMPONENT_ID$l,
|
|
338
|
-
'data-garden-version': '9.0.0-next.
|
|
326
|
+
'data-garden-version': '9.0.0-next.9'
|
|
339
327
|
}).withConfig({
|
|
340
328
|
displayName: "StyledInputIcon",
|
|
341
329
|
componentId: "sc-gqbs1s-0"
|
|
342
|
-
})(["position:sticky;flex-shrink:0;transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", ";", ";"], props => props
|
|
330
|
+
})(["position:sticky;flex-shrink:0;transform:", ";transition:transform 0.25s ease-in-out,color 0.25s ease-in-out;", ";", ";", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, sizeStyles$6, colorStyles$6, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$l, props));
|
|
343
331
|
StyledInputIcon.defaultProps = {
|
|
344
332
|
theme: reactTheming.DEFAULT_THEME
|
|
345
333
|
};
|
|
@@ -372,7 +360,7 @@ const sizeStyles$5 = props => {
|
|
|
372
360
|
};
|
|
373
361
|
const StyledOption = styled__default.default.li.attrs({
|
|
374
362
|
'data-garden-id': COMPONENT_ID$k,
|
|
375
|
-
'data-garden-version': '9.0.0-next.
|
|
363
|
+
'data-garden-version': '9.0.0-next.9'
|
|
376
364
|
}).withConfig({
|
|
377
365
|
displayName: "StyledOption",
|
|
378
366
|
componentId: "sc-jl4wn6-0"
|
|
@@ -384,7 +372,7 @@ StyledOption.defaultProps = {
|
|
|
384
372
|
const COMPONENT_ID$j = 'dropdowns.combobox.option.content';
|
|
385
373
|
const StyledOptionContent = styled__default.default.div.attrs({
|
|
386
374
|
'data-garden-id': COMPONENT_ID$j,
|
|
387
|
-
'data-garden-version': '9.0.0-next.
|
|
375
|
+
'data-garden-version': '9.0.0-next.9'
|
|
388
376
|
}).withConfig({
|
|
389
377
|
displayName: "StyledOptionContent",
|
|
390
378
|
componentId: "sc-121ujpu-0"
|
|
@@ -396,7 +384,7 @@ StyledOptionContent.defaultProps = {
|
|
|
396
384
|
const COMPONENT_ID$i = 'dropdowns.combobox.optgroup';
|
|
397
385
|
const StyledOptGroup = styled__default.default.ul.attrs({
|
|
398
386
|
'data-garden-id': COMPONENT_ID$i,
|
|
399
|
-
'data-garden-version': '9.0.0-next.
|
|
387
|
+
'data-garden-version': '9.0.0-next.9'
|
|
400
388
|
}).withConfig({
|
|
401
389
|
displayName: "StyledOptGroup",
|
|
402
390
|
componentId: "sc-1kavqsx-0"
|
|
@@ -417,7 +405,7 @@ const sizeStyles$4 = props => {
|
|
|
417
405
|
};
|
|
418
406
|
const StyledListboxSeparator = styled__default.default.li.attrs({
|
|
419
407
|
'data-garden-id': COMPONENT_ID$h,
|
|
420
|
-
'data-garden-version': '9.0.0-next.
|
|
408
|
+
'data-garden-version': '9.0.0-next.9'
|
|
421
409
|
}).withConfig({
|
|
422
410
|
displayName: "StyledListboxSeparator",
|
|
423
411
|
componentId: "sc-1p6toh2-0"
|
|
@@ -434,7 +422,7 @@ const sizeStyles$3 = props => {
|
|
|
434
422
|
};
|
|
435
423
|
const StyledListbox = styled__default.default.ul.attrs({
|
|
436
424
|
'data-garden-id': COMPONENT_ID$g,
|
|
437
|
-
'data-garden-version': '9.0.0-next.
|
|
425
|
+
'data-garden-version': '9.0.0-next.9'
|
|
438
426
|
}).withConfig({
|
|
439
427
|
displayName: "StyledListbox",
|
|
440
428
|
componentId: "sc-1k13ba7-0"
|
|
@@ -450,16 +438,9 @@ const sizeStyles$2 = props => {
|
|
|
450
438
|
const marginHorizontal = `${props.theme.space.base * 2}px`;
|
|
451
439
|
return styled.css(["margin-top:", ";margin-", ":", ";width:", ";height:", ";"], marginTop, props.theme.rtl ? 'left' : 'right', marginHorizontal, size, size);
|
|
452
440
|
};
|
|
453
|
-
const StyledOptionIcon = styled__default.default(
|
|
454
|
-
let {
|
|
455
|
-
children,
|
|
456
|
-
theme,
|
|
457
|
-
...props
|
|
458
|
-
} = _ref;
|
|
459
|
-
return React.cloneElement(React.Children.only(children), props);
|
|
460
|
-
}).attrs({
|
|
441
|
+
const StyledOptionIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
461
442
|
'data-garden-id': COMPONENT_ID$f,
|
|
462
|
-
'data-garden-version': '9.0.0-next.
|
|
443
|
+
'data-garden-version': '9.0.0-next.9'
|
|
463
444
|
}).withConfig({
|
|
464
445
|
displayName: "StyledOptionIcon",
|
|
465
446
|
componentId: "sc-qsab3y-0"
|
|
@@ -480,7 +461,7 @@ const sizeStyles$1 = props => {
|
|
|
480
461
|
};
|
|
481
462
|
const StyledOptionMeta = styled__default.default.div.attrs({
|
|
482
463
|
'data-garden-id': COMPONENT_ID$e,
|
|
483
|
-
'data-garden-version': '9.0.0-next.
|
|
464
|
+
'data-garden-version': '9.0.0-next.9'
|
|
484
465
|
}).withConfig({
|
|
485
466
|
displayName: "StyledOptionMeta",
|
|
486
467
|
componentId: "sc-j6pu10-0"
|
|
@@ -491,11 +472,11 @@ StyledOptionMeta.defaultProps = {
|
|
|
491
472
|
|
|
492
473
|
const COMPONENT_ID$d = 'dropdowns.combobox.option.type_icon';
|
|
493
474
|
const colorStyles$2 = props => {
|
|
494
|
-
const opacity = props
|
|
475
|
+
const opacity = props.$type && props.$type !== 'danger' ? 1 : 0;
|
|
495
476
|
let color;
|
|
496
|
-
if (props
|
|
477
|
+
if (props.$type === 'add' || props.$type === 'danger') {
|
|
497
478
|
color = 'inherit';
|
|
498
|
-
} else if (props
|
|
479
|
+
} else if (props.$type === 'header' || props.$type === 'next' || props.$type === 'previous') {
|
|
499
480
|
color = reactTheming.getColorV8('neutralHue', 600, props.theme);
|
|
500
481
|
} else {
|
|
501
482
|
color = reactTheming.getColorV8('primaryHue', 600, props.theme);
|
|
@@ -507,29 +488,20 @@ const sizeStyles = props => {
|
|
|
507
488
|
const position = `${props.theme.space.base * 3}px`;
|
|
508
489
|
const top = polished.math(`(${getMinHeight(props)} - ${size}) / 2`);
|
|
509
490
|
let side;
|
|
510
|
-
if (props
|
|
491
|
+
if (props.$type === 'next') {
|
|
511
492
|
side = props.theme.rtl ? 'left' : 'right';
|
|
512
493
|
} else {
|
|
513
494
|
side = props.theme.rtl ? 'right' : 'left';
|
|
514
495
|
}
|
|
515
496
|
return styled.css(["top:", ";", ":", ";width:", ";height:", ";"], top, side, position, size, size);
|
|
516
497
|
};
|
|
517
|
-
const StyledOptionTypeIcon = styled__default.default(
|
|
518
|
-
let {
|
|
519
|
-
children,
|
|
520
|
-
isCompact,
|
|
521
|
-
theme,
|
|
522
|
-
type,
|
|
523
|
-
...props
|
|
524
|
-
} = _ref;
|
|
525
|
-
return React.cloneElement(React.Children.only(children), props);
|
|
526
|
-
}).attrs({
|
|
498
|
+
const StyledOptionTypeIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
527
499
|
'data-garden-id': COMPONENT_ID$d,
|
|
528
|
-
'data-garden-version': '9.0.0-next.
|
|
500
|
+
'data-garden-version': '9.0.0-next.9'
|
|
529
501
|
}).withConfig({
|
|
530
502
|
displayName: "StyledOptionTypeIcon",
|
|
531
503
|
componentId: "sc-xpink2-0"
|
|
532
|
-
})(["position:absolute;transform:", ";transition:opacity 0.1s ease-in-out;", ";", ";", ";"], props => props.theme.rtl && (props
|
|
504
|
+
})(["position:absolute;transform:", ";transition:opacity 0.1s ease-in-out;", ";", ";", ";"], props => props.theme.rtl && (props.$type === 'next' || props.$type === 'previous') && 'rotate(180deg)', sizeStyles, colorStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$d, props));
|
|
533
505
|
StyledOptionTypeIcon.defaultProps = {
|
|
534
506
|
theme: reactTheming.DEFAULT_THEME
|
|
535
507
|
};
|
|
@@ -537,7 +509,7 @@ StyledOptionTypeIcon.defaultProps = {
|
|
|
537
509
|
const COMPONENT_ID$c = 'dropdowns.combobox.tag';
|
|
538
510
|
const StyledTag = styled__default.default(reactTags.Tag).attrs({
|
|
539
511
|
'data-garden-id': COMPONENT_ID$c,
|
|
540
|
-
'data-garden-version': '9.0.0-next.
|
|
512
|
+
'data-garden-version': '9.0.0-next.9'
|
|
541
513
|
}).withConfig({
|
|
542
514
|
displayName: "StyledTag",
|
|
543
515
|
componentId: "sc-1alam0r-0"
|
|
@@ -553,7 +525,7 @@ const colorStyles$1 = props => {
|
|
|
553
525
|
};
|
|
554
526
|
const StyledValue = styled__default.default.div.attrs({
|
|
555
527
|
'data-garden-id': COMPONENT_ID$b,
|
|
556
|
-
'data-garden-version': '9.0.0-next.
|
|
528
|
+
'data-garden-version': '9.0.0-next.9'
|
|
557
529
|
}).withConfig({
|
|
558
530
|
displayName: "StyledValue",
|
|
559
531
|
componentId: "sc-t719sx-0"
|
|
@@ -575,7 +547,7 @@ const colorStyles = props => {
|
|
|
575
547
|
const StyledTagsButton = styled__default.default(StyledValue).attrs({
|
|
576
548
|
as: 'button',
|
|
577
549
|
'data-garden-id': COMPONENT_ID$a,
|
|
578
|
-
'data-garden-version': '9.0.0-next.
|
|
550
|
+
'data-garden-version': '9.0.0-next.9'
|
|
579
551
|
}).withConfig({
|
|
580
552
|
displayName: "StyledTagsButton",
|
|
581
553
|
componentId: "sc-6q5w33-0"
|
|
@@ -587,7 +559,7 @@ StyledTagsButton.defaultProps = {
|
|
|
587
559
|
const COMPONENT_ID$9 = 'dropdowns.menu';
|
|
588
560
|
const StyledMenu = styled__default.default(StyledListbox).attrs({
|
|
589
561
|
'data-garden-id': COMPONENT_ID$9,
|
|
590
|
-
'data-garden-version': '9.0.0-next.
|
|
562
|
+
'data-garden-version': '9.0.0-next.9'
|
|
591
563
|
}).withConfig({
|
|
592
564
|
displayName: "StyledMenu",
|
|
593
565
|
componentId: "sc-f77ntu-0"
|
|
@@ -603,7 +575,7 @@ StyledMenu.defaultProps = {
|
|
|
603
575
|
const COMPONENT_ID$8 = 'dropdowns.menu.floating';
|
|
604
576
|
const StyledFloatingMenu = styled__default.default(StyledFloatingListbox).attrs({
|
|
605
577
|
'data-garden-id': COMPONENT_ID$8,
|
|
606
|
-
'data-garden-version': '9.0.0-next.
|
|
578
|
+
'data-garden-version': '9.0.0-next.9'
|
|
607
579
|
}).withConfig({
|
|
608
580
|
displayName: "StyledFloatingMenu",
|
|
609
581
|
componentId: "sc-1rc7ahb-0"
|
|
@@ -615,7 +587,7 @@ StyledFloatingMenu.defaultProps = {
|
|
|
615
587
|
const COMPONENT_ID$7 = 'dropdowns.menu.item';
|
|
616
588
|
const StyledItem = styled__default.default(StyledOption).attrs({
|
|
617
589
|
'data-garden-id': COMPONENT_ID$7,
|
|
618
|
-
'data-garden-version': '9.0.0-next.
|
|
590
|
+
'data-garden-version': '9.0.0-next.9'
|
|
619
591
|
}).withConfig({
|
|
620
592
|
displayName: "StyledItem",
|
|
621
593
|
componentId: "sc-1jp99dq-0"
|
|
@@ -627,7 +599,7 @@ StyledItem.defaultProps = {
|
|
|
627
599
|
const COMPONENT_ID$6 = 'dropdowns.menu.item.content';
|
|
628
600
|
const StyledItemContent = styled__default.default(StyledOptionContent).attrs({
|
|
629
601
|
'data-garden-id': COMPONENT_ID$6,
|
|
630
|
-
'data-garden-version': '9.0.0-next.
|
|
602
|
+
'data-garden-version': '9.0.0-next.9'
|
|
631
603
|
}).withConfig({
|
|
632
604
|
displayName: "StyledItemContent",
|
|
633
605
|
componentId: "sc-1opglsb-0"
|
|
@@ -639,7 +611,7 @@ StyledItemContent.defaultProps = {
|
|
|
639
611
|
const COMPONENT_ID$5 = 'dropdowns.menu.item_group';
|
|
640
612
|
const StyledItemGroup = styled__default.default(StyledOptGroup).attrs({
|
|
641
613
|
'data-garden-id': COMPONENT_ID$5,
|
|
642
|
-
'data-garden-version': '9.0.0-next.
|
|
614
|
+
'data-garden-version': '9.0.0-next.9'
|
|
643
615
|
}).withConfig({
|
|
644
616
|
displayName: "StyledItemGroup",
|
|
645
617
|
componentId: "sc-1umk3cg-0"
|
|
@@ -651,7 +623,7 @@ StyledItemGroup.defaultProps = {
|
|
|
651
623
|
const COMPONENT_ID$4 = 'dropdowns.menu.item.icon';
|
|
652
624
|
const StyledItemIcon = styled__default.default(StyledOptionIcon).attrs({
|
|
653
625
|
'data-garden-id': COMPONENT_ID$4,
|
|
654
|
-
'data-garden-version': '9.0.0-next.
|
|
626
|
+
'data-garden-version': '9.0.0-next.9'
|
|
655
627
|
}).withConfig({
|
|
656
628
|
displayName: "StyledItemIcon",
|
|
657
629
|
componentId: "sc-w9orqb-0"
|
|
@@ -663,7 +635,7 @@ StyledItemIcon.defaultProps = {
|
|
|
663
635
|
const COMPONENT_ID$3 = 'dropdowns.menu.item.meta';
|
|
664
636
|
const StyledItemMeta = styled__default.default(StyledOptionMeta).attrs({
|
|
665
637
|
'data-garden-id': COMPONENT_ID$3,
|
|
666
|
-
'data-garden-version': '9.0.0-next.
|
|
638
|
+
'data-garden-version': '9.0.0-next.9'
|
|
667
639
|
}).withConfig({
|
|
668
640
|
displayName: "StyledItemMeta",
|
|
669
641
|
componentId: "sc-1unw3x1-0"
|
|
@@ -675,7 +647,7 @@ StyledItemMeta.defaultProps = {
|
|
|
675
647
|
const COMPONENT_ID$2 = 'dropdowns.menu.item.type_icon';
|
|
676
648
|
const StyledItemTypeIcon = styled__default.default(StyledOptionTypeIcon).attrs({
|
|
677
649
|
'data-garden-id': COMPONENT_ID$2,
|
|
678
|
-
'data-garden-version': '9.0.0-next.
|
|
650
|
+
'data-garden-version': '9.0.0-next.9'
|
|
679
651
|
}).withConfig({
|
|
680
652
|
displayName: "StyledItemTypeIcon",
|
|
681
653
|
componentId: "sc-1pll3nu-0"
|
|
@@ -687,7 +659,7 @@ StyledItemTypeIcon.defaultProps = {
|
|
|
687
659
|
const COMPONENT_ID$1 = 'dropdowns.menu.button';
|
|
688
660
|
const StyledButton = styled__default.default(reactButtons.Button).attrs({
|
|
689
661
|
'data-garden-id': COMPONENT_ID$1,
|
|
690
|
-
'data-garden-version': '9.0.0-next.
|
|
662
|
+
'data-garden-version': '9.0.0-next.9'
|
|
691
663
|
}).withConfig({
|
|
692
664
|
displayName: "StyledButton",
|
|
693
665
|
componentId: "sc-5hs2jg-0"
|
|
@@ -699,7 +671,7 @@ StyledButton.defaultProps = {
|
|
|
699
671
|
const COMPONENT_ID = 'dropdowns.menu.separator';
|
|
700
672
|
const StyledSeparator = styled__default.default(StyledListboxSeparator).attrs({
|
|
701
673
|
'data-garden-id': COMPONENT_ID,
|
|
702
|
-
'data-garden-version': '9.0.0-next.
|
|
674
|
+
'data-garden-version': '9.0.0-next.9'
|
|
703
675
|
}).withConfig({
|
|
704
676
|
displayName: "StyledSeparator",
|
|
705
677
|
componentId: "sc-8kqwen-0"
|
|
@@ -1118,8 +1090,8 @@ const Combobox = React.forwardRef((_ref, ref) => {
|
|
|
1118
1090
|
}, props, {
|
|
1119
1091
|
ref: ref
|
|
1120
1092
|
}), React__namespace.default.createElement(StyledTrigger, triggerProps, React__namespace.default.createElement(StyledContainer, null, startIcon && React__namespace.default.createElement(StyledInputIcon, {
|
|
1121
|
-
isLabelHovered: isLabelHovered,
|
|
1122
|
-
isCompact: isCompact
|
|
1093
|
+
$isLabelHovered: isLabelHovered,
|
|
1094
|
+
$isCompact: isCompact
|
|
1123
1095
|
}, startIcon), React__namespace.default.createElement(StyledInputGroup, null, isMultiselectable && Array.isArray(selection) && React__namespace.default.createElement(TagGroup, {
|
|
1124
1096
|
isDisabled: isDisabled,
|
|
1125
1097
|
isExpanded: isTagGroupExpanded,
|
|
@@ -1148,10 +1120,10 @@ const Combobox = React.forwardRef((_ref, ref) => {
|
|
|
1148
1120
|
selection,
|
|
1149
1121
|
inputValue
|
|
1150
1122
|
}) : inputValue || placeholder), React__namespace.default.createElement(StyledInput, inputProps)), (hasChevron || endIcon) && React__namespace.default.createElement(StyledInputIcon, {
|
|
1151
|
-
isCompact: isCompact,
|
|
1152
|
-
isEnd: true,
|
|
1153
|
-
isLabelHovered: isLabelHovered,
|
|
1154
|
-
isRotated: hasChevron && isExpanded
|
|
1123
|
+
$isCompact: isCompact,
|
|
1124
|
+
$isEnd: true,
|
|
1125
|
+
$isLabelHovered: isLabelHovered,
|
|
1126
|
+
$isRotated: hasChevron && isExpanded
|
|
1155
1127
|
}, hasChevron ? React__namespace.default.createElement(SvgChevronDownStroke, null) : endIcon))), React__namespace.default.createElement(Listbox, Object.assign({
|
|
1156
1128
|
appendToNode: listboxAppendToNode,
|
|
1157
1129
|
isCompact: isCompact,
|
|
@@ -1445,8 +1417,8 @@ const OptionComponent = React.forwardRef((_ref, ref) => {
|
|
|
1445
1417
|
isCompact: isCompact,
|
|
1446
1418
|
$type: type
|
|
1447
1419
|
}, props, optionProps), React__namespace.default.createElement(StyledOptionTypeIcon, {
|
|
1448
|
-
isCompact: isCompact,
|
|
1449
|
-
type: type
|
|
1420
|
+
$isCompact: isCompact,
|
|
1421
|
+
$type: type
|
|
1450
1422
|
}, renderActionIcon(type)), icon && React__namespace.default.createElement(StyledOptionIcon, null, icon), React__namespace.default.createElement(StyledOptionContent, null, children || label || value)));
|
|
1451
1423
|
});
|
|
1452
1424
|
OptionComponent.displayName = 'Option';
|
|
@@ -1496,8 +1468,8 @@ const OptGroup = React.forwardRef((_ref, ref) => {
|
|
|
1496
1468
|
isCompact: isCompact,
|
|
1497
1469
|
$type: "header"
|
|
1498
1470
|
}, icon && React__namespace.default.createElement(StyledOptionTypeIcon, {
|
|
1499
|
-
isCompact: isCompact,
|
|
1500
|
-
type: "header"
|
|
1471
|
+
$isCompact: isCompact,
|
|
1472
|
+
$type: "header"
|
|
1501
1473
|
}, icon), content || legend), React__namespace.default.createElement(StyledOptGroup, Object.assign({
|
|
1502
1474
|
isCompact: isCompact
|
|
1503
1475
|
}, optGroupProps), React__namespace.default.createElement(StyledListboxSeparator, {
|
|
@@ -1835,8 +1807,8 @@ const ItemGroup = React.forwardRef((_ref, ref) => {
|
|
|
1835
1807
|
isCompact: isCompact,
|
|
1836
1808
|
$type: "header"
|
|
1837
1809
|
}, icon && React__namespace.default.createElement(StyledItemTypeIcon, {
|
|
1838
|
-
isCompact: isCompact,
|
|
1839
|
-
type: "header"
|
|
1810
|
+
$isCompact: isCompact,
|
|
1811
|
+
$type: "header"
|
|
1840
1812
|
}, icon), content || legend), React__namespace.default.createElement(StyledItemGroup, Object.assign({
|
|
1841
1813
|
isCompact: isCompact
|
|
1842
1814
|
}, groupProps), React__namespace.default.createElement(StyledSeparator, {
|
|
@@ -1943,8 +1915,8 @@ const ItemComponent = React.forwardRef((_ref, ref) => {
|
|
|
1943
1915
|
}, props, itemProps, {
|
|
1944
1916
|
ref: reactMergeRefs.mergeRefs([_itemRef, ref])
|
|
1945
1917
|
}), React__namespace.default.createElement(StyledItemTypeIcon, {
|
|
1946
|
-
isCompact: isCompact,
|
|
1947
|
-
type: type
|
|
1918
|
+
$isCompact: isCompact,
|
|
1919
|
+
$type: type
|
|
1948
1920
|
}, renderActionIcon(type)), icon && React__namespace.default.createElement(StyledItemIcon, null, icon), React__namespace.default.createElement(StyledItemContent, null, children || label)));
|
|
1949
1921
|
});
|
|
1950
1922
|
ItemComponent.displayName = 'Item';
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
/// <reference types="react" />
|
|
8
8
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
9
9
|
interface IStyledInputIconProps extends ThemeProps<DefaultTheme> {
|
|
10
|
-
isCompact?: boolean;
|
|
11
|
-
isDisabled?: boolean;
|
|
12
|
-
isEnd?: boolean;
|
|
13
|
-
isLabelHovered?: boolean;
|
|
14
|
-
isRotated?: boolean;
|
|
10
|
+
$isCompact?: boolean;
|
|
11
|
+
$isDisabled?: boolean;
|
|
12
|
+
$isEnd?: boolean;
|
|
13
|
+
$isLabelHovered?: boolean;
|
|
14
|
+
$isRotated?: boolean;
|
|
15
15
|
}
|
|
16
|
-
export declare const StyledInputIcon: import("styled-components").StyledComponent<({ children,
|
|
16
|
+
export declare const StyledInputIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
17
17
|
'data-garden-id': string;
|
|
18
18
|
'data-garden-version': string;
|
|
19
19
|
} & IStyledInputIconProps, "data-garden-id" | "data-garden-version">;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="react" />
|
|
8
8
|
import { DefaultTheme } from 'styled-components';
|
|
9
|
-
export declare const StyledOptionIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").
|
|
9
|
+
export declare const StyledOptionIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
10
10
|
'data-garden-id': string;
|
|
11
11
|
'data-garden-version': string;
|
|
12
12
|
}, "data-garden-id" | "data-garden-version">;
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
import { ThemeProps, DefaultTheme } from 'styled-components';
|
|
9
9
|
import { OptionType } from '../../types';
|
|
10
10
|
export interface IStyledOptionTypeIconProps extends ThemeProps<DefaultTheme> {
|
|
11
|
-
isCompact?: boolean;
|
|
12
|
-
type?: OptionType | 'header';
|
|
11
|
+
$isCompact?: boolean;
|
|
12
|
+
$type?: OptionType | 'header';
|
|
13
13
|
}
|
|
14
|
-
export declare const StyledOptionTypeIcon: import("styled-components").StyledComponent<({ children,
|
|
14
|
+
export declare const StyledOptionTypeIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, DefaultTheme, {
|
|
15
15
|
'data-garden-id': string;
|
|
16
16
|
'data-garden-version': string;
|
|
17
17
|
} & IStyledOptionTypeIconProps, "data-garden-id" | "data-garden-version">;
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
/// <reference types="react" />
|
|
8
8
|
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("@zendeskgarden/react-buttons").IButtonProps & import("react").RefAttributes<HTMLButtonElement>> & {
|
|
9
9
|
EndIcon: {
|
|
10
|
-
(props: import("@zendeskgarden/react-buttons").IButtonEndIconProps): import("react").JSX.Element;
|
|
10
|
+
({ isRotated, ...props }: import("@zendeskgarden/react-buttons").IButtonEndIconProps): import("react").JSX.Element;
|
|
11
11
|
displayName: string;
|
|
12
12
|
};
|
|
13
13
|
StartIcon: {
|
|
14
|
-
(props: import("@zendeskgarden/react-buttons").IButtonEndIconProps): import("react").JSX.Element;
|
|
14
|
+
({ isRotated, ...props }: import("@zendeskgarden/react-buttons").IButtonEndIconProps): import("react").JSX.Element;
|
|
15
15
|
displayName: string;
|
|
16
16
|
};
|
|
17
17
|
}, import("styled-components").DefaultTheme, {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="react" />
|
|
8
|
-
export declare const StyledItemIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").
|
|
8
|
+
export declare const StyledItemIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, import("styled-components").DefaultTheme, {
|
|
9
9
|
'data-garden-id': string;
|
|
10
10
|
'data-garden-version': string;
|
|
11
11
|
} & {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
/// <reference types="react" />
|
|
8
|
-
export declare const StyledItemTypeIcon: import("styled-components").StyledComponent<({ children,
|
|
8
|
+
export declare const StyledItemTypeIcon: import("styled-components").StyledComponent<({ children, theme, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>, import("styled-components").DefaultTheme, {
|
|
9
9
|
'data-garden-id': string;
|
|
10
10
|
'data-garden-version': string;
|
|
11
11
|
} & import("../combobox/StyledOptionTypeIcon").IStyledOptionTypeIconProps & {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-dropdowns",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.9",
|
|
4
4
|
"description": "Components related to dropdowns in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"@zendeskgarden/container-combobox": "^2.0.0",
|
|
26
26
|
"@zendeskgarden/container-menu": "^0.3.0",
|
|
27
27
|
"@zendeskgarden/container-utilities": "^2.0.0",
|
|
28
|
-
"@zendeskgarden/react-buttons": "^9.0.0-next.
|
|
29
|
-
"@zendeskgarden/react-forms": "^9.0.0-next.
|
|
30
|
-
"@zendeskgarden/react-tags": "^9.0.0-next.
|
|
31
|
-
"@zendeskgarden/react-tooltips": "^9.0.0-next.
|
|
28
|
+
"@zendeskgarden/react-buttons": "^9.0.0-next.9",
|
|
29
|
+
"@zendeskgarden/react-forms": "^9.0.0-next.9",
|
|
30
|
+
"@zendeskgarden/react-tags": "^9.0.0-next.9",
|
|
31
|
+
"@zendeskgarden/react-tooltips": "^9.0.0-next.9",
|
|
32
32
|
"polished": "^4.0.0",
|
|
33
33
|
"prop-types": "^15.7.2",
|
|
34
34
|
"react-merge-refs": "^2.0.0"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"styled-components": "^5.3.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
43
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.9",
|
|
44
44
|
"@zendeskgarden/svg-icons": "7.0.0"
|
|
45
45
|
},
|
|
46
46
|
"keywords": [
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
56
|
"zendeskgarden:src": "src/index.ts",
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "771281b562d376a6aee04b0cd71dd888b3ae4a1d"
|
|
58
58
|
}
|