@zendeskgarden/react-dropdowns.legacy 9.0.0-next.18 → 9.0.0-next.20
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/styled/items/StyledAddItem.js +6 -3
- package/dist/esm/styled/items/StyledItem.js +19 -9
- package/dist/esm/styled/items/StyledItemIcon.js +6 -3
- package/dist/esm/styled/items/StyledItemMeta.js +6 -3
- package/dist/esm/styled/items/StyledNextIcon.js +6 -3
- package/dist/esm/styled/items/StyledNextItem.js +1 -1
- package/dist/esm/styled/items/StyledPreviousIcon.js +6 -3
- package/dist/esm/styled/items/StyledPreviousItem.js +1 -1
- package/dist/esm/styled/items/header/StyledHeaderIcon.js +6 -3
- package/dist/esm/styled/items/header/StyledHeaderItem.js +1 -1
- package/dist/esm/styled/items/media/StyledMediaBody.js +1 -1
- package/dist/esm/styled/items/media/StyledMediaFigure.js +1 -1
- package/dist/esm/styled/items/media/StyledMediaItem.js +1 -1
- package/dist/esm/styled/menu/StyledMenu.js +1 -1
- package/dist/esm/styled/menu/StyledMenuWrapper.js +1 -1
- package/dist/esm/styled/menu/StyledSeparator.js +6 -3
- package/dist/esm/styled/multiselect/StyledMultiselectInput.js +1 -1
- package/dist/esm/styled/multiselect/StyledMultiselectItemWrapper.js +1 -1
- package/dist/esm/styled/multiselect/StyledMultiselectItemsContainer.js +1 -1
- package/dist/esm/styled/multiselect/StyledMultiselectMoreAnchor.js +6 -3
- package/dist/esm/styled/select/StyledFauxInput.js +1 -1
- package/dist/esm/styled/select/StyledInput.js +1 -1
- package/dist/esm/styled/select/StyledSelect.js +1 -1
- package/dist/index.cjs.js +72 -37
- package/package.json +4 -4
|
@@ -5,17 +5,20 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledItem } from './StyledItem.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.add_item';
|
|
12
12
|
const StyledAddItem = styled(StyledItem).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.20'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledAddItem",
|
|
17
17
|
componentId: "sc-mlto71-0"
|
|
18
|
-
})(["color:", ";", ";"], props => !props.disabled &&
|
|
18
|
+
})(["color:", ";", ";"], props => !props.disabled && getColor({
|
|
19
|
+
theme: props.theme,
|
|
20
|
+
variable: 'foreground.primary'
|
|
21
|
+
}), props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
19
22
|
StyledAddItem.defaultProps = {
|
|
20
23
|
theme: DEFAULT_THEME
|
|
21
24
|
};
|
|
@@ -5,8 +5,7 @@
|
|
|
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,
|
|
9
|
-
import { rgba } from 'polished';
|
|
8
|
+
import { retrieveComponentStyles, DEFAULT_THEME, getColor } from '@zendeskgarden/react-theming';
|
|
10
9
|
|
|
11
10
|
const COMPONENT_ID = 'dropdowns.item';
|
|
12
11
|
const getItemPaddingVertical = props => {
|
|
@@ -16,22 +15,33 @@ const getItemPaddingVertical = props => {
|
|
|
16
15
|
return `${props.theme.space.base * 2}px`;
|
|
17
16
|
};
|
|
18
17
|
const getColorStyles = props => {
|
|
18
|
+
const backgroundColor = props.isFocused ? getColor({
|
|
19
|
+
theme: props.theme,
|
|
20
|
+
variable: 'background.primaryEmphasis',
|
|
21
|
+
transparency: props.theme.opacity[100]
|
|
22
|
+
}) : 'inherit';
|
|
19
23
|
let foregroundColor;
|
|
20
|
-
let backgroundColor;
|
|
21
24
|
if (props.disabled) {
|
|
22
|
-
foregroundColor =
|
|
25
|
+
foregroundColor = getColor({
|
|
26
|
+
theme: props.theme,
|
|
27
|
+
variable: 'foreground.disabled'
|
|
28
|
+
});
|
|
23
29
|
} else if (props.isDanger) {
|
|
24
|
-
foregroundColor =
|
|
25
|
-
|
|
30
|
+
foregroundColor = getColor({
|
|
31
|
+
theme: props.theme,
|
|
32
|
+
variable: 'foreground.danger'
|
|
33
|
+
});
|
|
26
34
|
} else {
|
|
27
|
-
foregroundColor =
|
|
28
|
-
|
|
35
|
+
foregroundColor = getColor({
|
|
36
|
+
theme: props.theme,
|
|
37
|
+
variable: 'foreground.default'
|
|
38
|
+
});
|
|
29
39
|
}
|
|
30
40
|
return css(["background-color:", ";color:", ";& a,& a:hover,& a:focus,& a:active{color:inherit;}"], backgroundColor, foregroundColor);
|
|
31
41
|
};
|
|
32
42
|
const StyledItem = styled.li.attrs(props => ({
|
|
33
43
|
'data-garden-id': COMPONENT_ID,
|
|
34
|
-
'data-garden-version': '9.0.0-next.
|
|
44
|
+
'data-garden-version': '9.0.0-next.20',
|
|
35
45
|
'aria-disabled': props.disabled
|
|
36
46
|
})).withConfig({
|
|
37
47
|
displayName: "StyledItem",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import {
|
|
9
|
+
import { getColor, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { getItemPaddingVertical } from './StyledItem.js';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.item_icon';
|
|
@@ -15,11 +15,14 @@ const getSizeStyles = props => {
|
|
|
15
15
|
};
|
|
16
16
|
const StyledItemIcon = 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.20'
|
|
19
19
|
}).withConfig({
|
|
20
20
|
displayName: "StyledItemIcon",
|
|
21
21
|
componentId: "sc-pspm80-0"
|
|
22
|
-
})(["display:flex;position:absolute;top:0;", ":", "px;align-items:center;justify-content:center;transition:opacity 0.1s ease-in-out;opacity:", ";color:", ";", ";& > *{width:", ";height:", ";}"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => props.isVisible ? '1' : '0', props => props.isDisabled ? 'inherit' :
|
|
22
|
+
})(["display:flex;position:absolute;top:0;", ":", "px;align-items:center;justify-content:center;transition:opacity 0.1s ease-in-out;opacity:", ";color:", ";", ";& > *{width:", ";height:", ";}"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => props.isVisible ? '1' : '0', props => props.isDisabled ? 'inherit' : getColor({
|
|
23
|
+
theme: props.theme,
|
|
24
|
+
variable: 'foreground.primary'
|
|
25
|
+
}), props => getSizeStyles(props), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md);
|
|
23
26
|
StyledItemIcon.defaultProps = {
|
|
24
27
|
theme: DEFAULT_THEME
|
|
25
28
|
};
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.item_meta';
|
|
11
11
|
const StyledItemMeta = styled.span.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.20'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledItemMeta",
|
|
16
16
|
componentId: "sc-1m3x8m1-0"
|
|
17
|
-
})(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.isCompact ? 3 : 4), props =>
|
|
17
|
+
})(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.isCompact ? 3 : 4), props => getColor({
|
|
18
|
+
theme: props.theme,
|
|
19
|
+
variable: props.isDisabled ? 'foreground.disabled' : 'foreground.subtle'
|
|
20
|
+
}), props => props.theme.fontSizes.sm, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
18
21
|
StyledItemMeta.defaultProps = {
|
|
19
22
|
theme: DEFAULT_THEME
|
|
20
23
|
};
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React__default from 'react';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import SvgChevronRightStroke from '../../node_modules/@zendeskgarden/svg-icons/src/16/chevron-right-stroke.svg.js';
|
|
10
|
-
import {
|
|
10
|
+
import { getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.next_item_icon';
|
|
13
13
|
const NextIconComponent = _ref => {
|
|
@@ -16,14 +16,17 @@ const NextIconComponent = _ref => {
|
|
|
16
16
|
} = _ref;
|
|
17
17
|
return React__default.createElement(SvgChevronRightStroke, {
|
|
18
18
|
"data-garden-id": COMPONENT_ID,
|
|
19
|
-
"data-garden-version": '9.0.0-next.
|
|
19
|
+
"data-garden-version": '9.0.0-next.20',
|
|
20
20
|
className: className
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
const StyledNextIcon = styled(NextIconComponent).withConfig({
|
|
24
24
|
displayName: "StyledNextIcon",
|
|
25
25
|
componentId: "sc-1nzkdnq-0"
|
|
26
|
-
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' :
|
|
26
|
+
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : getColor({
|
|
27
|
+
theme: props.theme,
|
|
28
|
+
variable: 'foreground.disabled'
|
|
29
|
+
}), props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
27
30
|
StyledNextIcon.defaultProps = {
|
|
28
31
|
theme: DEFAULT_THEME
|
|
29
32
|
};
|
|
@@ -12,7 +12,7 @@ import { StyledItemIcon } from './StyledItemIcon.js';
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.next_item';
|
|
13
13
|
const StyledNextItem = styled(StyledItem).attrs({
|
|
14
14
|
'data-garden-id': COMPONENT_ID,
|
|
15
|
-
'data-garden-version': '9.0.0-next.
|
|
15
|
+
'data-garden-version': '9.0.0-next.20'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledNextItem",
|
|
18
18
|
componentId: "sc-1wrjlge-0"
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import React__default from 'react';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
9
|
import SvgChevronLeftStroke from '../../node_modules/@zendeskgarden/svg-icons/src/16/chevron-left-stroke.svg.js';
|
|
10
|
-
import {
|
|
10
|
+
import { getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.previous_item_icon';
|
|
13
13
|
const PreviousIconComponent = _ref => {
|
|
@@ -16,14 +16,17 @@ const PreviousIconComponent = _ref => {
|
|
|
16
16
|
} = _ref;
|
|
17
17
|
return React__default.createElement(SvgChevronLeftStroke, {
|
|
18
18
|
"data-garden-id": COMPONENT_ID,
|
|
19
|
-
"data-garden-version": '9.0.0-next.
|
|
19
|
+
"data-garden-version": '9.0.0-next.20',
|
|
20
20
|
className: className
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
const StyledPreviousIcon = styled(PreviousIconComponent).withConfig({
|
|
24
24
|
displayName: "StyledPreviousIcon",
|
|
25
25
|
componentId: "sc-1n1t07s-0"
|
|
26
|
-
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' :
|
|
26
|
+
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : getColor({
|
|
27
|
+
theme: props.theme,
|
|
28
|
+
variable: 'foreground.subtle'
|
|
29
|
+
}), props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
27
30
|
StyledPreviousIcon.defaultProps = {
|
|
28
31
|
theme: DEFAULT_THEME
|
|
29
32
|
};
|
|
@@ -11,7 +11,7 @@ import { StyledItem } from './StyledItem.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.previous_item';
|
|
12
12
|
const StyledPreviousItem = styled(StyledItem).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.20'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledPreviousItem",
|
|
17
17
|
componentId: "sc-1qv9jwe-0"
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.header_icon';
|
|
11
11
|
const StyledHeaderIcon = 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.20'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledHeaderIcon",
|
|
16
16
|
componentId: "sc-ow8s45-0"
|
|
17
|
-
})(["display:flex;position:absolute;top:0;bottom:0;align-items:center;justify-content:center;", ":", "px;color:", ";& > *{width:", ";height:", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props =>
|
|
17
|
+
})(["display:flex;position:absolute;top:0;bottom:0;align-items:center;justify-content:center;", ":", "px;color:", ";& > *{width:", ";height:", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => getColor({
|
|
18
|
+
theme: props.theme,
|
|
19
|
+
variable: 'foreground.subtle'
|
|
20
|
+
}), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
18
21
|
StyledHeaderIcon.defaultProps = {
|
|
19
22
|
theme: DEFAULT_THEME
|
|
20
23
|
};
|
|
@@ -17,7 +17,7 @@ const getHorizontalPadding = props => {
|
|
|
17
17
|
};
|
|
18
18
|
const StyledHeaderItem = styled(StyledItem).attrs({
|
|
19
19
|
'data-garden-id': COMPONENT_ID,
|
|
20
|
-
'data-garden-version': '9.0.0-next.
|
|
20
|
+
'data-garden-version': '9.0.0-next.20'
|
|
21
21
|
}).withConfig({
|
|
22
22
|
displayName: "StyledHeaderItem",
|
|
23
23
|
componentId: "sc-1xosinr-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.media_body';
|
|
11
11
|
const StyledMediaBody = 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.20'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledMediaBody",
|
|
16
16
|
componentId: "sc-133sssc-0"
|
|
@@ -11,7 +11,7 @@ import { StyledItem } from '../StyledItem.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.media_item';
|
|
12
12
|
const StyledMediaItem = styled(StyledItem).attrs({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.20'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledMediaItem",
|
|
17
17
|
componentId: "sc-af4509-0"
|
|
@@ -11,7 +11,7 @@ import { getArrowPosition } from '../../utils/garden-placements.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu';
|
|
12
12
|
const StyledMenu = styled.ul.attrs(props => ({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.20',
|
|
15
15
|
className: props.isAnimated && 'is-animated'
|
|
16
16
|
})).withConfig({
|
|
17
17
|
displayName: "StyledMenu",
|
|
@@ -11,7 +11,7 @@ import { getMenuPosition } from '../../utils/garden-placements.js';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.menu_wrapper';
|
|
12
12
|
const StyledMenuWrapper = styled.div.attrs(props => ({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.20',
|
|
15
15
|
className: props.isAnimated && 'is-animated'
|
|
16
16
|
})).withConfig({
|
|
17
17
|
displayName: "StyledMenuWrapper",
|
|
@@ -5,17 +5,20 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import {
|
|
8
|
+
import { getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.separator';
|
|
11
11
|
const StyledSeparator = styled.li.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.20',
|
|
14
14
|
role: 'separator'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledSeparator",
|
|
17
17
|
componentId: "sc-oncsf0-0"
|
|
18
|
-
})(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${
|
|
18
|
+
})(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${getColor({
|
|
19
|
+
theme: props.theme,
|
|
20
|
+
variable: 'border.subtle'
|
|
21
|
+
})}`, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
19
22
|
StyledSeparator.defaultProps = {
|
|
20
23
|
theme: DEFAULT_THEME
|
|
21
24
|
};
|
|
@@ -20,7 +20,7 @@ const visibleStyling = props => {
|
|
|
20
20
|
};
|
|
21
21
|
const StyledMultiselectInput = styled(StyledInput).attrs({
|
|
22
22
|
'data-garden-id': COMPONENT_ID,
|
|
23
|
-
'data-garden-version': '9.0.0-next.
|
|
23
|
+
'data-garden-version': '9.0.0-next.20',
|
|
24
24
|
isBare: true
|
|
25
25
|
}).withConfig({
|
|
26
26
|
displayName: "StyledMultiselectInput",
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.multiselect_item_wrapper';
|
|
11
11
|
const StyledMultiselectItemWrapper = 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.20'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledMultiselectItemWrapper",
|
|
16
16
|
componentId: "sc-vgr7nd-0"
|
|
@@ -22,7 +22,7 @@ const sizeStyles = props => {
|
|
|
22
22
|
};
|
|
23
23
|
const StyledMultiselectItemsContainer = styled.div.attrs({
|
|
24
24
|
'data-garden-id': COMPONENT_ID,
|
|
25
|
-
'data-garden-version': '9.0.0-next.
|
|
25
|
+
'data-garden-version': '9.0.0-next.20'
|
|
26
26
|
}).withConfig({
|
|
27
27
|
displayName: "StyledMultiselectItemsContainer",
|
|
28
28
|
componentId: "sc-1dxwjyz-0"
|
|
@@ -5,16 +5,19 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { getLineHeight,
|
|
8
|
+
import { getLineHeight, getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.multiselect_more_anchor';
|
|
11
11
|
const StyledMultiselectMoreAnchor = 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.20'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledMultiselectMoreAnchor",
|
|
16
16
|
componentId: "sc-pkakky-0"
|
|
17
|
-
})(["display:inline-block;cursor:", ";padding:", "px 0;overflow:hidden;user-select:none;text-overflow:ellipsis;line-height:", ";white-space:nowrap;color:", ";:hover{text-decoration:", ";}", ";"], props => props.isDisabled ? 'default' : 'pointer', props => props.theme.space.base * (props.isCompact ? 0.75 : 1.5), props => props.isCompact ? '1em' : getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props =>
|
|
17
|
+
})(["display:inline-block;cursor:", ";padding:", "px 0;overflow:hidden;user-select:none;text-overflow:ellipsis;line-height:", ";white-space:nowrap;color:", ";:hover{text-decoration:", ";}", ";"], props => props.isDisabled ? 'default' : 'pointer', props => props.theme.space.base * (props.isCompact ? 0.75 : 1.5), props => props.isCompact ? '1em' : getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => getColor({
|
|
18
|
+
theme: props.theme,
|
|
19
|
+
variable: props.isDisabled ? 'foreground.disabled' : 'foreground.primary'
|
|
20
|
+
}), props => !props.isDisabled && 'underline', props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
18
21
|
StyledMultiselectMoreAnchor.defaultProps = {
|
|
19
22
|
theme: DEFAULT_THEME
|
|
20
23
|
};
|
|
@@ -11,7 +11,7 @@ import { FauxInput } from '@zendeskgarden/react-forms';
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.faux_input';
|
|
12
12
|
const StyledFauxInput = styled(FauxInput).attrs(props => ({
|
|
13
13
|
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.20',
|
|
15
15
|
mediaLayout: true,
|
|
16
16
|
theme: props.theme
|
|
17
17
|
})).withConfig({
|
|
@@ -12,7 +12,7 @@ const COMPONENT_ID = 'dropdowns.input';
|
|
|
12
12
|
const hiddenStyling = css(["position:fixed;border:0;clip:rect(1px,1px,1px,1px);padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
13
13
|
const StyledInput = styled(Input).attrs({
|
|
14
14
|
'data-garden-id': COMPONENT_ID,
|
|
15
|
-
'data-garden-version': '9.0.0-next.
|
|
15
|
+
'data-garden-version': '9.0.0-next.20',
|
|
16
16
|
isBare: true
|
|
17
17
|
}).withConfig({
|
|
18
18
|
displayName: "StyledInput",
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.select';
|
|
11
11
|
const StyledSelect = 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.20'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledSelect",
|
|
16
16
|
componentId: "sc-xf4qjv-0"
|
package/dist/index.cjs.js
CHANGED
|
@@ -289,7 +289,7 @@ function getMenuPosition(popperPlacement) {
|
|
|
289
289
|
const COMPONENT_ID$m = 'dropdowns.menu';
|
|
290
290
|
const StyledMenu = styled__default.default.ul.attrs(props => ({
|
|
291
291
|
'data-garden-id': COMPONENT_ID$m,
|
|
292
|
-
'data-garden-version': '9.0.0-next.
|
|
292
|
+
'data-garden-version': '9.0.0-next.20',
|
|
293
293
|
className: props.isAnimated && 'is-animated'
|
|
294
294
|
})).withConfig({
|
|
295
295
|
displayName: "StyledMenu",
|
|
@@ -306,7 +306,7 @@ StyledMenu.defaultProps = {
|
|
|
306
306
|
const COMPONENT_ID$l = 'dropdowns.menu_wrapper';
|
|
307
307
|
const StyledMenuWrapper = styled__default.default.div.attrs(props => ({
|
|
308
308
|
'data-garden-id': COMPONENT_ID$l,
|
|
309
|
-
'data-garden-version': '9.0.0-next.
|
|
309
|
+
'data-garden-version': '9.0.0-next.20',
|
|
310
310
|
className: props.isAnimated && 'is-animated'
|
|
311
311
|
})).withConfig({
|
|
312
312
|
displayName: "StyledMenuWrapper",
|
|
@@ -325,12 +325,15 @@ StyledMenuWrapper.defaultProps = {
|
|
|
325
325
|
const COMPONENT_ID$k = 'dropdowns.separator';
|
|
326
326
|
const StyledSeparator = styled__default.default.li.attrs({
|
|
327
327
|
'data-garden-id': COMPONENT_ID$k,
|
|
328
|
-
'data-garden-version': '9.0.0-next.
|
|
328
|
+
'data-garden-version': '9.0.0-next.20',
|
|
329
329
|
role: 'separator'
|
|
330
330
|
}).withConfig({
|
|
331
331
|
displayName: "StyledSeparator",
|
|
332
332
|
componentId: "sc-oncsf0-0"
|
|
333
|
-
})(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${reactTheming.
|
|
333
|
+
})(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${reactTheming.getColor({
|
|
334
|
+
theme: props.theme,
|
|
335
|
+
variable: 'border.subtle'
|
|
336
|
+
})}`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
|
|
334
337
|
StyledSeparator.defaultProps = {
|
|
335
338
|
theme: reactTheming.DEFAULT_THEME
|
|
336
339
|
};
|
|
@@ -343,22 +346,33 @@ const getItemPaddingVertical = props => {
|
|
|
343
346
|
return `${props.theme.space.base * 2}px`;
|
|
344
347
|
};
|
|
345
348
|
const getColorStyles = props => {
|
|
349
|
+
const backgroundColor = props.isFocused ? reactTheming.getColor({
|
|
350
|
+
theme: props.theme,
|
|
351
|
+
variable: 'background.primaryEmphasis',
|
|
352
|
+
transparency: props.theme.opacity[100]
|
|
353
|
+
}) : 'inherit';
|
|
346
354
|
let foregroundColor;
|
|
347
|
-
let backgroundColor;
|
|
348
355
|
if (props.disabled) {
|
|
349
|
-
foregroundColor = reactTheming.
|
|
356
|
+
foregroundColor = reactTheming.getColor({
|
|
357
|
+
theme: props.theme,
|
|
358
|
+
variable: 'foreground.disabled'
|
|
359
|
+
});
|
|
350
360
|
} else if (props.isDanger) {
|
|
351
|
-
foregroundColor = reactTheming.
|
|
352
|
-
|
|
361
|
+
foregroundColor = reactTheming.getColor({
|
|
362
|
+
theme: props.theme,
|
|
363
|
+
variable: 'foreground.danger'
|
|
364
|
+
});
|
|
353
365
|
} else {
|
|
354
|
-
foregroundColor = reactTheming.
|
|
355
|
-
|
|
366
|
+
foregroundColor = reactTheming.getColor({
|
|
367
|
+
theme: props.theme,
|
|
368
|
+
variable: 'foreground.default'
|
|
369
|
+
});
|
|
356
370
|
}
|
|
357
371
|
return styled.css(["background-color:", ";color:", ";& a,& a:hover,& a:focus,& a:active{color:inherit;}"], backgroundColor, foregroundColor);
|
|
358
372
|
};
|
|
359
373
|
const StyledItem = styled__default.default.li.attrs(props => ({
|
|
360
374
|
'data-garden-id': COMPONENT_ID$j,
|
|
361
|
-
'data-garden-version': '9.0.0-next.
|
|
375
|
+
'data-garden-version': '9.0.0-next.20',
|
|
362
376
|
'aria-disabled': props.disabled
|
|
363
377
|
})).withConfig({
|
|
364
378
|
displayName: "StyledItem",
|
|
@@ -371,11 +385,14 @@ StyledItem.defaultProps = {
|
|
|
371
385
|
const COMPONENT_ID$i = 'dropdowns.add_item';
|
|
372
386
|
const StyledAddItem = styled__default.default(StyledItem).attrs({
|
|
373
387
|
'data-garden-id': COMPONENT_ID$i,
|
|
374
|
-
'data-garden-version': '9.0.0-next.
|
|
388
|
+
'data-garden-version': '9.0.0-next.20'
|
|
375
389
|
}).withConfig({
|
|
376
390
|
displayName: "StyledAddItem",
|
|
377
391
|
componentId: "sc-mlto71-0"
|
|
378
|
-
})(["color:", ";", ";"], props => !props.disabled && reactTheming.
|
|
392
|
+
})(["color:", ";", ";"], props => !props.disabled && reactTheming.getColor({
|
|
393
|
+
theme: props.theme,
|
|
394
|
+
variable: 'foreground.primary'
|
|
395
|
+
}), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
|
|
379
396
|
StyledAddItem.defaultProps = {
|
|
380
397
|
theme: reactTheming.DEFAULT_THEME
|
|
381
398
|
};
|
|
@@ -383,11 +400,14 @@ StyledAddItem.defaultProps = {
|
|
|
383
400
|
const COMPONENT_ID$h = 'dropdowns.item_meta';
|
|
384
401
|
const StyledItemMeta = styled__default.default.span.attrs({
|
|
385
402
|
'data-garden-id': COMPONENT_ID$h,
|
|
386
|
-
'data-garden-version': '9.0.0-next.
|
|
403
|
+
'data-garden-version': '9.0.0-next.20'
|
|
387
404
|
}).withConfig({
|
|
388
405
|
displayName: "StyledItemMeta",
|
|
389
406
|
componentId: "sc-1m3x8m1-0"
|
|
390
|
-
})(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.isCompact ? 3 : 4), props => reactTheming.
|
|
407
|
+
})(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.isCompact ? 3 : 4), props => reactTheming.getColor({
|
|
408
|
+
theme: props.theme,
|
|
409
|
+
variable: props.isDisabled ? 'foreground.disabled' : 'foreground.subtle'
|
|
410
|
+
}), props => props.theme.fontSizes.sm, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
|
|
391
411
|
StyledItemMeta.defaultProps = {
|
|
392
412
|
theme: reactTheming.DEFAULT_THEME
|
|
393
413
|
};
|
|
@@ -398,11 +418,14 @@ const getSizeStyles = props => {
|
|
|
398
418
|
};
|
|
399
419
|
const StyledItemIcon = styled__default.default.div.attrs({
|
|
400
420
|
'data-garden-id': COMPONENT_ID$g,
|
|
401
|
-
'data-garden-version': '9.0.0-next.
|
|
421
|
+
'data-garden-version': '9.0.0-next.20'
|
|
402
422
|
}).withConfig({
|
|
403
423
|
displayName: "StyledItemIcon",
|
|
404
424
|
componentId: "sc-pspm80-0"
|
|
405
|
-
})(["display:flex;position:absolute;top:0;", ":", "px;align-items:center;justify-content:center;transition:opacity 0.1s ease-in-out;opacity:", ";color:", ";", ";& > *{width:", ";height:", ";}"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => props.isVisible ? '1' : '0', props => props.isDisabled ? 'inherit' : reactTheming.
|
|
425
|
+
})(["display:flex;position:absolute;top:0;", ":", "px;align-items:center;justify-content:center;transition:opacity 0.1s ease-in-out;opacity:", ";color:", ";", ";& > *{width:", ";height:", ";}"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => props.isVisible ? '1' : '0', props => props.isDisabled ? 'inherit' : reactTheming.getColor({
|
|
426
|
+
theme: props.theme,
|
|
427
|
+
variable: 'foreground.primary'
|
|
428
|
+
}), props => getSizeStyles(props), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md);
|
|
406
429
|
StyledItemIcon.defaultProps = {
|
|
407
430
|
theme: reactTheming.DEFAULT_THEME
|
|
408
431
|
};
|
|
@@ -410,7 +433,7 @@ StyledItemIcon.defaultProps = {
|
|
|
410
433
|
const COMPONENT_ID$f = 'dropdowns.next_item';
|
|
411
434
|
const StyledNextItem = styled__default.default(StyledItem).attrs({
|
|
412
435
|
'data-garden-id': COMPONENT_ID$f,
|
|
413
|
-
'data-garden-version': '9.0.0-next.
|
|
436
|
+
'data-garden-version': '9.0.0-next.20'
|
|
414
437
|
}).withConfig({
|
|
415
438
|
displayName: "StyledNextItem",
|
|
416
439
|
componentId: "sc-1wrjlge-0"
|
|
@@ -442,14 +465,17 @@ const NextIconComponent = _ref => {
|
|
|
442
465
|
} = _ref;
|
|
443
466
|
return React__namespace.default.createElement(SvgChevronRightStroke, {
|
|
444
467
|
"data-garden-id": COMPONENT_ID$e,
|
|
445
|
-
"data-garden-version": '9.0.0-next.
|
|
468
|
+
"data-garden-version": '9.0.0-next.20',
|
|
446
469
|
className: className
|
|
447
470
|
});
|
|
448
471
|
};
|
|
449
472
|
const StyledNextIcon = styled__default.default(NextIconComponent).withConfig({
|
|
450
473
|
displayName: "StyledNextIcon",
|
|
451
474
|
componentId: "sc-1nzkdnq-0"
|
|
452
|
-
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : reactTheming.
|
|
475
|
+
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : reactTheming.getColor({
|
|
476
|
+
theme: props.theme,
|
|
477
|
+
variable: 'foreground.disabled'
|
|
478
|
+
}), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
|
|
453
479
|
StyledNextIcon.defaultProps = {
|
|
454
480
|
theme: reactTheming.DEFAULT_THEME
|
|
455
481
|
};
|
|
@@ -457,7 +483,7 @@ StyledNextIcon.defaultProps = {
|
|
|
457
483
|
const COMPONENT_ID$d = 'dropdowns.previous_item';
|
|
458
484
|
const StyledPreviousItem = styled__default.default(StyledItem).attrs({
|
|
459
485
|
'data-garden-id': COMPONENT_ID$d,
|
|
460
|
-
'data-garden-version': '9.0.0-next.
|
|
486
|
+
'data-garden-version': '9.0.0-next.20'
|
|
461
487
|
}).withConfig({
|
|
462
488
|
displayName: "StyledPreviousItem",
|
|
463
489
|
componentId: "sc-1qv9jwe-0"
|
|
@@ -489,14 +515,17 @@ const PreviousIconComponent = _ref => {
|
|
|
489
515
|
} = _ref;
|
|
490
516
|
return React__namespace.default.createElement(SvgChevronLeftStroke, {
|
|
491
517
|
"data-garden-id": COMPONENT_ID$c,
|
|
492
|
-
"data-garden-version": '9.0.0-next.
|
|
518
|
+
"data-garden-version": '9.0.0-next.20',
|
|
493
519
|
className: className
|
|
494
520
|
});
|
|
495
521
|
};
|
|
496
522
|
const StyledPreviousIcon = styled__default.default(PreviousIconComponent).withConfig({
|
|
497
523
|
displayName: "StyledPreviousIcon",
|
|
498
524
|
componentId: "sc-1n1t07s-0"
|
|
499
|
-
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : reactTheming.
|
|
525
|
+
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.isDisabled ? 'inherit' : reactTheming.getColor({
|
|
526
|
+
theme: props.theme,
|
|
527
|
+
variable: 'foreground.subtle'
|
|
528
|
+
}), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$c, props));
|
|
500
529
|
StyledPreviousIcon.defaultProps = {
|
|
501
530
|
theme: reactTheming.DEFAULT_THEME
|
|
502
531
|
};
|
|
@@ -504,11 +533,14 @@ StyledPreviousIcon.defaultProps = {
|
|
|
504
533
|
const COMPONENT_ID$b = 'dropdowns.header_icon';
|
|
505
534
|
const StyledHeaderIcon = styled__default.default.div.attrs({
|
|
506
535
|
'data-garden-id': COMPONENT_ID$b,
|
|
507
|
-
'data-garden-version': '9.0.0-next.
|
|
536
|
+
'data-garden-version': '9.0.0-next.20'
|
|
508
537
|
}).withConfig({
|
|
509
538
|
displayName: "StyledHeaderIcon",
|
|
510
539
|
componentId: "sc-ow8s45-0"
|
|
511
|
-
})(["display:flex;position:absolute;top:0;bottom:0;align-items:center;justify-content:center;", ":", "px;color:", ";& > *{width:", ";height:", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => reactTheming.
|
|
540
|
+
})(["display:flex;position:absolute;top:0;bottom:0;align-items:center;justify-content:center;", ":", "px;color:", ";& > *{width:", ";height:", ";}", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 3, props => reactTheming.getColor({
|
|
541
|
+
theme: props.theme,
|
|
542
|
+
variable: 'foreground.subtle'
|
|
543
|
+
}), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
|
|
512
544
|
StyledHeaderIcon.defaultProps = {
|
|
513
545
|
theme: reactTheming.DEFAULT_THEME
|
|
514
546
|
};
|
|
@@ -522,7 +554,7 @@ const getHorizontalPadding = props => {
|
|
|
522
554
|
};
|
|
523
555
|
const StyledHeaderItem = styled__default.default(StyledItem).attrs({
|
|
524
556
|
'data-garden-id': COMPONENT_ID$a,
|
|
525
|
-
'data-garden-version': '9.0.0-next.
|
|
557
|
+
'data-garden-version': '9.0.0-next.20'
|
|
526
558
|
}).withConfig({
|
|
527
559
|
displayName: "StyledHeaderItem",
|
|
528
560
|
componentId: "sc-1xosinr-0"
|
|
@@ -534,7 +566,7 @@ StyledHeaderItem.defaultProps = {
|
|
|
534
566
|
const COMPONENT_ID$9 = 'dropdowns.media_body';
|
|
535
567
|
const StyledMediaBody = styled__default.default.div.attrs({
|
|
536
568
|
'data-garden-id': COMPONENT_ID$9,
|
|
537
|
-
'data-garden-version': '9.0.0-next.
|
|
569
|
+
'data-garden-version': '9.0.0-next.20'
|
|
538
570
|
}).withConfig({
|
|
539
571
|
displayName: "StyledMediaBody",
|
|
540
572
|
componentId: "sc-133sssc-0"
|
|
@@ -557,7 +589,7 @@ _ref => {
|
|
|
557
589
|
);
|
|
558
590
|
}).attrs({
|
|
559
591
|
'data-garden-id': COMPONENT_ID$8,
|
|
560
|
-
'data-garden-version': '9.0.0-next.
|
|
592
|
+
'data-garden-version': '9.0.0-next.20'
|
|
561
593
|
}).withConfig({
|
|
562
594
|
displayName: "StyledMediaFigure",
|
|
563
595
|
componentId: "sc-16vz3xj-0"
|
|
@@ -569,7 +601,7 @@ StyledMediaFigure.defaultProps = {
|
|
|
569
601
|
const COMPONENT_ID$7 = 'dropdowns.media_item';
|
|
570
602
|
const StyledMediaItem = styled__default.default(StyledItem).attrs({
|
|
571
603
|
'data-garden-id': COMPONENT_ID$7,
|
|
572
|
-
'data-garden-version': '9.0.0-next.
|
|
604
|
+
'data-garden-version': '9.0.0-next.20'
|
|
573
605
|
}).withConfig({
|
|
574
606
|
displayName: "StyledMediaItem",
|
|
575
607
|
componentId: "sc-af4509-0"
|
|
@@ -581,7 +613,7 @@ StyledMediaItem.defaultProps = {
|
|
|
581
613
|
const COMPONENT_ID$6 = 'dropdowns.faux_input';
|
|
582
614
|
const StyledFauxInput = styled__default.default(reactForms.FauxInput).attrs(props => ({
|
|
583
615
|
'data-garden-id': COMPONENT_ID$6,
|
|
584
|
-
'data-garden-version': '9.0.0-next.
|
|
616
|
+
'data-garden-version': '9.0.0-next.20',
|
|
585
617
|
mediaLayout: true,
|
|
586
618
|
theme: props.theme
|
|
587
619
|
})).withConfig({
|
|
@@ -596,7 +628,7 @@ const COMPONENT_ID$5 = 'dropdowns.input';
|
|
|
596
628
|
const hiddenStyling = styled.css(["position:fixed;border:0;clip:rect(1px,1px,1px,1px);padding:0;width:1px;height:1px;overflow:hidden;white-space:nowrap;"]);
|
|
597
629
|
const StyledInput = styled__default.default(reactForms.Input).attrs({
|
|
598
630
|
'data-garden-id': COMPONENT_ID$5,
|
|
599
|
-
'data-garden-version': '9.0.0-next.
|
|
631
|
+
'data-garden-version': '9.0.0-next.20',
|
|
600
632
|
isBare: true
|
|
601
633
|
}).withConfig({
|
|
602
634
|
displayName: "StyledInput",
|
|
@@ -609,7 +641,7 @@ StyledInput.defaultProps = {
|
|
|
609
641
|
const COMPONENT_ID$4 = 'dropdowns.select';
|
|
610
642
|
const StyledSelect = styled__default.default.div.attrs({
|
|
611
643
|
'data-garden-id': COMPONENT_ID$4,
|
|
612
|
-
'data-garden-version': '9.0.0-next.
|
|
644
|
+
'data-garden-version': '9.0.0-next.20'
|
|
613
645
|
}).withConfig({
|
|
614
646
|
displayName: "StyledSelect",
|
|
615
647
|
componentId: "sc-xf4qjv-0"
|
|
@@ -630,7 +662,7 @@ const visibleStyling = props => {
|
|
|
630
662
|
};
|
|
631
663
|
const StyledMultiselectInput = styled__default.default(StyledInput).attrs({
|
|
632
664
|
'data-garden-id': COMPONENT_ID$3,
|
|
633
|
-
'data-garden-version': '9.0.0-next.
|
|
665
|
+
'data-garden-version': '9.0.0-next.20',
|
|
634
666
|
isBare: true
|
|
635
667
|
}).withConfig({
|
|
636
668
|
displayName: "StyledMultiselectInput",
|
|
@@ -655,7 +687,7 @@ const sizeStyles = props => {
|
|
|
655
687
|
};
|
|
656
688
|
const StyledMultiselectItemsContainer = styled__default.default.div.attrs({
|
|
657
689
|
'data-garden-id': COMPONENT_ID$2,
|
|
658
|
-
'data-garden-version': '9.0.0-next.
|
|
690
|
+
'data-garden-version': '9.0.0-next.20'
|
|
659
691
|
}).withConfig({
|
|
660
692
|
displayName: "StyledMultiselectItemsContainer",
|
|
661
693
|
componentId: "sc-1dxwjyz-0"
|
|
@@ -667,7 +699,7 @@ StyledMultiselectItemsContainer.defaultProps = {
|
|
|
667
699
|
const COMPONENT_ID$1 = 'dropdowns.multiselect_item_wrapper';
|
|
668
700
|
const StyledMultiselectItemWrapper = styled__default.default.div.attrs({
|
|
669
701
|
'data-garden-id': COMPONENT_ID$1,
|
|
670
|
-
'data-garden-version': '9.0.0-next.
|
|
702
|
+
'data-garden-version': '9.0.0-next.20'
|
|
671
703
|
}).withConfig({
|
|
672
704
|
displayName: "StyledMultiselectItemWrapper",
|
|
673
705
|
componentId: "sc-vgr7nd-0"
|
|
@@ -679,11 +711,14 @@ StyledMultiselectItemWrapper.defaultProps = {
|
|
|
679
711
|
const COMPONENT_ID = 'dropdowns.multiselect_more_anchor';
|
|
680
712
|
const StyledMultiselectMoreAnchor = styled__default.default.div.attrs({
|
|
681
713
|
'data-garden-id': COMPONENT_ID,
|
|
682
|
-
'data-garden-version': '9.0.0-next.
|
|
714
|
+
'data-garden-version': '9.0.0-next.20'
|
|
683
715
|
}).withConfig({
|
|
684
716
|
displayName: "StyledMultiselectMoreAnchor",
|
|
685
717
|
componentId: "sc-pkakky-0"
|
|
686
|
-
})(["display:inline-block;cursor:", ";padding:", "px 0;overflow:hidden;user-select:none;text-overflow:ellipsis;line-height:", ";white-space:nowrap;color:", ";:hover{text-decoration:", ";}", ";"], props => props.isDisabled ? 'default' : 'pointer', props => props.theme.space.base * (props.isCompact ? 0.75 : 1.5), props => props.isCompact ? '1em' : reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props =>
|
|
718
|
+
})(["display:inline-block;cursor:", ";padding:", "px 0;overflow:hidden;user-select:none;text-overflow:ellipsis;line-height:", ";white-space:nowrap;color:", ";:hover{text-decoration:", ";}", ";"], props => props.isDisabled ? 'default' : 'pointer', props => props.theme.space.base * (props.isCompact ? 0.75 : 1.5), props => props.isCompact ? '1em' : reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => reactTheming.getColor({
|
|
719
|
+
theme: props.theme,
|
|
720
|
+
variable: props.isDisabled ? 'foreground.disabled' : 'foreground.primary'
|
|
721
|
+
}), props => !props.isDisabled && 'underline', props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
|
|
687
722
|
StyledMultiselectMoreAnchor.defaultProps = {
|
|
688
723
|
theme: reactTheming.DEFAULT_THEME
|
|
689
724
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-dropdowns.legacy",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.20",
|
|
4
4
|
"description": "Components relating to dropdowns in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@zendeskgarden/container-selection": "^2.0.0",
|
|
25
25
|
"@zendeskgarden/container-utilities": "^1.0.14",
|
|
26
|
-
"@zendeskgarden/react-forms": "^9.0.0-next.
|
|
26
|
+
"@zendeskgarden/react-forms": "^9.0.0-next.20",
|
|
27
27
|
"downshift": "^7.0.0",
|
|
28
28
|
"polished": "^4.3.1",
|
|
29
29
|
"prop-types": "^15.5.7",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/lodash.debounce": "4.0.9",
|
|
41
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
41
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.20",
|
|
42
42
|
"@zendeskgarden/svg-icons": "7.1.1",
|
|
43
43
|
"lodash.debounce": "4.0.8"
|
|
44
44
|
},
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
54
|
"zendeskgarden:src": "src/index.ts",
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "eab087ac0d6e74b3a4489d37d067baf7a225e7a8"
|
|
56
56
|
}
|