@zendeskgarden/react-dropdowns 9.0.0-next.11 → 9.0.0-next.13
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 +0 -1
- package/dist/esm/elements/combobox/Field.js +0 -1
- package/dist/esm/elements/combobox/Hint.js +0 -1
- package/dist/esm/elements/combobox/Label.js +0 -1
- package/dist/esm/elements/combobox/Listbox.js +0 -1
- package/dist/esm/elements/combobox/Message.js +0 -1
- package/dist/esm/elements/combobox/OptGroup.js +0 -1
- package/dist/esm/elements/combobox/Option.js +7 -4
- package/dist/esm/elements/combobox/OptionMeta.js +0 -1
- package/dist/esm/elements/combobox/Tag.js +0 -1
- package/dist/esm/elements/menu/Item.js +9 -8
- package/dist/esm/elements/menu/ItemGroup.js +0 -1
- package/dist/esm/elements/menu/ItemMeta.js +0 -1
- package/dist/esm/elements/menu/Menu.js +2 -33
- package/dist/esm/elements/menu/MenuList.js +0 -1
- package/dist/esm/elements/menu/Separator.js +0 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-lg-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-left-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-right-stroke.svg.js +1 -1
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/plus-stroke.svg.js +1 -1
- 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 +10 -4
- package/dist/esm/views/combobox/StyledInputGroup.js +1 -1
- package/dist/esm/views/combobox/StyledInputIcon.js +26 -7
- 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 +10 -4
- 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 +34 -13
- package/dist/esm/views/combobox/StyledOptionContent.js +1 -1
- package/dist/esm/views/combobox/StyledOptionIcon.js +25 -3
- package/dist/esm/views/combobox/StyledOptionMeta.js +12 -4
- package/dist/esm/views/combobox/StyledOptionTypeIcon.js +18 -8
- package/dist/esm/views/combobox/StyledTag.js +6 -3
- package/dist/esm/views/combobox/StyledTagsButton.js +10 -4
- package/dist/esm/views/combobox/StyledTrigger.js +64 -33
- package/dist/esm/views/combobox/StyledValue.js +11 -4
- 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 +2 -2
- package/dist/esm/views/menu/StyledSeparator.js +1 -1
- package/dist/index.cjs.js +346 -213
- package/dist/typings/views/combobox/StyledOptionIcon.d.ts +7 -2
- package/dist/typings/views/index.d.ts +0 -1
- package/dist/typings/views/menu/StyledItemIcon.d.ts +1 -1
- package/package.json +8 -9
- package/LICENSE.md +0 -176
- package/dist/esm/views/menu/StyledButton.js +0 -23
- package/dist/typings/views/menu/StyledButton.d.ts +0 -20
|
@@ -6,9 +6,31 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
9
|
+
import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.combobox.option.icon';
|
|
12
|
+
const colorStyles = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
theme,
|
|
15
|
+
$isDisabled,
|
|
16
|
+
$type
|
|
17
|
+
} = _ref;
|
|
18
|
+
let variable;
|
|
19
|
+
if ($isDisabled) {
|
|
20
|
+
variable = 'foreground.disabled';
|
|
21
|
+
} else if ($type === 'danger') {
|
|
22
|
+
variable = 'foreground.danger';
|
|
23
|
+
} else if ($type === 'add') {
|
|
24
|
+
variable = 'foreground.primary';
|
|
25
|
+
} else {
|
|
26
|
+
variable = 'foreground.subtle';
|
|
27
|
+
}
|
|
28
|
+
const color = getColor({
|
|
29
|
+
theme,
|
|
30
|
+
variable
|
|
31
|
+
});
|
|
32
|
+
return css(["color:", ";"], color);
|
|
33
|
+
};
|
|
12
34
|
const sizeStyles = props => {
|
|
13
35
|
const size = props.theme.iconSizes.md;
|
|
14
36
|
const marginTop = math(`(${props.theme.lineHeights.md} - ${size}) / 2`);
|
|
@@ -17,11 +39,11 @@ const sizeStyles = props => {
|
|
|
17
39
|
};
|
|
18
40
|
const StyledOptionIcon = styled(StyledBaseIcon).attrs({
|
|
19
41
|
'data-garden-id': COMPONENT_ID,
|
|
20
|
-
'data-garden-version': '9.0.0-next.
|
|
42
|
+
'data-garden-version': '9.0.0-next.13'
|
|
21
43
|
}).withConfig({
|
|
22
44
|
displayName: "StyledOptionIcon",
|
|
23
45
|
componentId: "sc-qsab3y-0"
|
|
24
|
-
})(["flex-shrink:0;", ";", ";"], sizeStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
46
|
+
})(["flex-shrink:0;", ";", ";", ";"], sizeStyles, colorStyles, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
25
47
|
StyledOptionIcon.defaultProps = {
|
|
26
48
|
theme: DEFAULT_THEME
|
|
27
49
|
};
|
|
@@ -5,11 +5,19 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import { retrieveComponentStyles, DEFAULT_THEME,
|
|
8
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.combobox.option.meta';
|
|
11
|
-
const colorStyles =
|
|
12
|
-
|
|
11
|
+
const colorStyles = _ref => {
|
|
12
|
+
let {
|
|
13
|
+
theme,
|
|
14
|
+
isDisabled
|
|
15
|
+
} = _ref;
|
|
16
|
+
const variable = isDisabled ? 'foreground.disabled' : 'foreground.subtle';
|
|
17
|
+
const color = getColor({
|
|
18
|
+
theme,
|
|
19
|
+
variable
|
|
20
|
+
});
|
|
13
21
|
return css(["color:", ";"], color);
|
|
14
22
|
};
|
|
15
23
|
const sizeStyles = props => {
|
|
@@ -19,7 +27,7 @@ const sizeStyles = props => {
|
|
|
19
27
|
};
|
|
20
28
|
const StyledOptionMeta = styled.div.attrs({
|
|
21
29
|
'data-garden-id': COMPONENT_ID,
|
|
22
|
-
'data-garden-version': '9.0.0-next.
|
|
30
|
+
'data-garden-version': '9.0.0-next.13'
|
|
23
31
|
}).withConfig({
|
|
24
32
|
displayName: "StyledOptionMeta",
|
|
25
33
|
componentId: "sc-j6pu10-0"
|
|
@@ -6,19 +6,29 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME,
|
|
9
|
+
import { StyledBaseIcon, retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { StyledOption, getMinHeight } from './StyledOption.js';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.combobox.option.type_icon';
|
|
13
|
-
const colorStyles =
|
|
14
|
-
|
|
13
|
+
const colorStyles = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
theme,
|
|
16
|
+
$type
|
|
17
|
+
} = _ref;
|
|
18
|
+
const opacity = $type && $type !== 'danger' ? 1 : 0;
|
|
15
19
|
let color;
|
|
16
|
-
if (
|
|
20
|
+
if ($type === 'add') {
|
|
17
21
|
color = 'inherit';
|
|
18
|
-
} else if (
|
|
19
|
-
color =
|
|
22
|
+
} else if ($type === 'header' || $type === 'next' || $type === 'previous') {
|
|
23
|
+
color = getColor({
|
|
24
|
+
theme,
|
|
25
|
+
variable: 'foreground.subtle'
|
|
26
|
+
});
|
|
20
27
|
} else {
|
|
21
|
-
color =
|
|
28
|
+
color = getColor({
|
|
29
|
+
theme,
|
|
30
|
+
variable: 'foreground.primary'
|
|
31
|
+
});
|
|
22
32
|
}
|
|
23
33
|
return css(["opacity:", ";color:", ";", "[aria-selected='true'] > &{opacity:1;}", "[aria-disabled='true'] > &{color:inherit;}"], opacity, color, StyledOption, StyledOption);
|
|
24
34
|
};
|
|
@@ -36,7 +46,7 @@ const sizeStyles = props => {
|
|
|
36
46
|
};
|
|
37
47
|
const StyledOptionTypeIcon = styled(StyledBaseIcon).attrs({
|
|
38
48
|
'data-garden-id': COMPONENT_ID,
|
|
39
|
-
'data-garden-version': '9.0.0-next.
|
|
49
|
+
'data-garden-version': '9.0.0-next.13'
|
|
40
50
|
}).withConfig({
|
|
41
51
|
displayName: "StyledOptionTypeIcon",
|
|
42
52
|
componentId: "sc-xpink2-0"
|
|
@@ -6,17 +6,20 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { hideVisually } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { Tag } from '@zendeskgarden/react-tags';
|
|
11
11
|
|
|
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.13'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledTag",
|
|
18
18
|
componentId: "sc-1alam0r-0"
|
|
19
|
-
})(["&[aria-disabled='true']{color:", ";}&[hidden]{display:revert;", "}", ";"], props => props.hue ? undefined :
|
|
19
|
+
})(["&[aria-disabled='true']{color:", ";}&[hidden]{display:revert;", "}", ";"], props => props.hue ? undefined : getColor({
|
|
20
|
+
theme: props.theme,
|
|
21
|
+
variable: 'foreground.disabled'
|
|
22
|
+
}), hideVisually(), props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
20
23
|
StyledTag.defaultProps = {
|
|
21
24
|
theme: DEFAULT_THEME
|
|
22
25
|
};
|
|
@@ -5,18 +5,24 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import { retrieveComponentStyles, DEFAULT_THEME,
|
|
8
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledValue } from './StyledValue.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.combobox.tags_button';
|
|
12
|
-
const colorStyles =
|
|
13
|
-
|
|
12
|
+
const colorStyles = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
theme
|
|
15
|
+
} = _ref;
|
|
16
|
+
const color = getColor({
|
|
17
|
+
theme,
|
|
18
|
+
variable: 'foreground.primary'
|
|
19
|
+
});
|
|
14
20
|
return css(["color:", ";&:disabled{color:inherit;}"], color);
|
|
15
21
|
};
|
|
16
22
|
const StyledTagsButton = styled(StyledValue).attrs({
|
|
17
23
|
as: 'button',
|
|
18
24
|
'data-garden-id': COMPONENT_ID,
|
|
19
|
-
'data-garden-version': '9.0.0-next.
|
|
25
|
+
'data-garden-version': '9.0.0-next.13'
|
|
20
26
|
}).withConfig({
|
|
21
27
|
displayName: "StyledTagsButton",
|
|
22
28
|
componentId: "sc-6q5w33-0"
|
|
@@ -6,58 +6,89 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import { retrieveComponentStyles, DEFAULT_THEME,
|
|
9
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getColor, focusStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { getHeight } from './StyledInput.js';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.combobox.trigger';
|
|
13
|
-
const colorStyles =
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
13
|
+
const colorStyles = _ref => {
|
|
14
|
+
let {
|
|
15
|
+
theme,
|
|
16
|
+
validation,
|
|
17
|
+
isBare,
|
|
18
|
+
isLabelHovered,
|
|
19
|
+
focusInset
|
|
20
|
+
} = _ref;
|
|
21
|
+
const foregroundColor = getColor({
|
|
22
|
+
theme,
|
|
23
|
+
variable: 'foreground.default'
|
|
24
|
+
});
|
|
25
|
+
const backgroundColor = isBare ? 'transparent' : getColor({
|
|
26
|
+
theme,
|
|
27
|
+
variable: 'background.default'
|
|
28
|
+
});
|
|
24
29
|
let borderColor;
|
|
30
|
+
let borderVariable;
|
|
25
31
|
let hoverBorderColor;
|
|
26
32
|
let focusBorderColor;
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} else {
|
|
35
|
-
focusBorderColor = borderColor;
|
|
33
|
+
if (validation) {
|
|
34
|
+
if (validation === 'success') {
|
|
35
|
+
borderVariable = 'border.successEmphasis';
|
|
36
|
+
} else if (validation === 'warning') {
|
|
37
|
+
borderVariable = 'border.warningEmphasis';
|
|
38
|
+
} else if (validation === 'error') {
|
|
39
|
+
borderVariable = 'border.dangerEmphasis';
|
|
36
40
|
}
|
|
41
|
+
borderColor = getColor({
|
|
42
|
+
theme,
|
|
43
|
+
variable: borderVariable
|
|
44
|
+
});
|
|
45
|
+
hoverBorderColor = borderColor;
|
|
46
|
+
focusBorderColor = borderColor;
|
|
37
47
|
} else {
|
|
38
|
-
borderColor =
|
|
39
|
-
|
|
48
|
+
borderColor = getColor({
|
|
49
|
+
theme,
|
|
50
|
+
variable: 'border.default',
|
|
51
|
+
dark: {
|
|
52
|
+
offset: -100
|
|
53
|
+
},
|
|
54
|
+
light: {
|
|
55
|
+
offset: 100
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
borderVariable = 'border.primaryEmphasis';
|
|
59
|
+
hoverBorderColor = getColor({
|
|
60
|
+
theme,
|
|
61
|
+
variable: borderVariable
|
|
62
|
+
});
|
|
40
63
|
focusBorderColor = hoverBorderColor;
|
|
41
64
|
}
|
|
42
|
-
const disabledBackgroundColor =
|
|
43
|
-
|
|
44
|
-
|
|
65
|
+
const disabledBackgroundColor = isBare ? undefined : getColor({
|
|
66
|
+
theme,
|
|
67
|
+
variable: 'background.disabled'
|
|
68
|
+
});
|
|
69
|
+
const disabledBorderColor = getColor({
|
|
70
|
+
theme,
|
|
71
|
+
variable: 'border.disabled'
|
|
72
|
+
});
|
|
73
|
+
const disabledForegroundColor = getColor({
|
|
74
|
+
theme,
|
|
75
|
+
variable: 'foreground.disabled'
|
|
76
|
+
});
|
|
45
77
|
const focusSelector = `
|
|
46
78
|
&:focus-within:not([aria-disabled='true']),
|
|
47
79
|
&:focus-visible
|
|
48
80
|
`;
|
|
49
|
-
return css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";}", " &[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"],
|
|
50
|
-
theme
|
|
51
|
-
inset:
|
|
81
|
+
return css(["border-color:", ";background-color:", ";color:", ";&:hover{border-color:", ";}", " &[aria-disabled='true']{border-color:", ";background-color:", ";color:", ";}"], isLabelHovered ? hoverBorderColor : borderColor, backgroundColor, foregroundColor, hoverBorderColor, focusStyles({
|
|
82
|
+
theme,
|
|
83
|
+
inset: focusInset,
|
|
52
84
|
color: {
|
|
53
|
-
|
|
54
|
-
shade: focusShade
|
|
85
|
+
variable: borderVariable
|
|
55
86
|
},
|
|
56
87
|
selector: focusSelector,
|
|
57
88
|
styles: {
|
|
58
89
|
borderColor: focusBorderColor
|
|
59
90
|
},
|
|
60
|
-
condition: !
|
|
91
|
+
condition: !isBare
|
|
61
92
|
}), disabledBorderColor, disabledBackgroundColor, disabledForegroundColor);
|
|
62
93
|
};
|
|
63
94
|
const sizeStyles = props => {
|
|
@@ -82,7 +113,7 @@ const sizeStyles = props => {
|
|
|
82
113
|
};
|
|
83
114
|
const StyledTrigger = styled.div.attrs({
|
|
84
115
|
'data-garden-id': COMPONENT_ID,
|
|
85
|
-
'data-garden-version': '9.0.0-next.
|
|
116
|
+
'data-garden-version': '9.0.0-next.13'
|
|
86
117
|
}).withConfig({
|
|
87
118
|
displayName: "StyledTrigger",
|
|
88
119
|
componentId: "sc-116nftk-0"
|
|
@@ -5,17 +5,24 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import { retrieveComponentStyles, DEFAULT_THEME,
|
|
8
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { sizeStyles } from './StyledInput.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.combobox.value';
|
|
12
|
-
const colorStyles =
|
|
13
|
-
|
|
12
|
+
const colorStyles = _ref => {
|
|
13
|
+
let {
|
|
14
|
+
theme,
|
|
15
|
+
isPlaceholder
|
|
16
|
+
} = _ref;
|
|
17
|
+
const foregroundColor = isPlaceholder && getColor({
|
|
18
|
+
theme,
|
|
19
|
+
variable: 'foreground.disabled'
|
|
20
|
+
});
|
|
14
21
|
return css(["color:", ";"], foregroundColor);
|
|
15
22
|
};
|
|
16
23
|
const StyledValue = styled.div.attrs({
|
|
17
24
|
'data-garden-id': COMPONENT_ID,
|
|
18
|
-
'data-garden-version': '9.0.0-next.
|
|
25
|
+
'data-garden-version': '9.0.0-next.13'
|
|
19
26
|
}).withConfig({
|
|
20
27
|
displayName: "StyledValue",
|
|
21
28
|
componentId: "sc-t719sx-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.13'
|
|
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.13'
|
|
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.13'
|
|
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.13'
|
|
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.13'
|
|
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.13'
|
|
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.13'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledItemTypeIcon",
|
|
18
18
|
componentId: "sc-1pll3nu-0"
|
|
@@ -11,13 +11,13 @@ 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.13'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledMenu",
|
|
17
17
|
componentId: "sc-f77ntu-0"
|
|
18
18
|
})(["position:static !important;", ";", ";"], props => props.arrowPosition && arrowStyles(props.arrowPosition, {
|
|
19
19
|
size: `${props.theme.space.base * 2}px`,
|
|
20
|
-
inset: '
|
|
20
|
+
inset: '1.5px',
|
|
21
21
|
animationModifier: '[data-garden-animate-arrow="true"]'
|
|
22
22
|
}), props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
23
23
|
StyledMenu.defaultProps = {
|
|
@@ -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.13'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledSeparator",
|
|
17
17
|
componentId: "sc-8kqwen-0"
|