@zendeskgarden/react-dropdowns.legacy 9.3.0 → 9.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/styled/items/StyledAddItem.js +3 -3
- package/dist/esm/styled/items/StyledItem.js +3 -3
- package/dist/esm/styled/items/StyledItemIcon.js +1 -1
- package/dist/esm/styled/items/StyledItemMeta.js +3 -3
- package/dist/esm/styled/items/StyledNextIcon.js +3 -3
- package/dist/esm/styled/items/StyledNextItem.js +3 -3
- package/dist/esm/styled/items/StyledPreviousIcon.js +3 -3
- package/dist/esm/styled/items/StyledPreviousItem.js +3 -3
- package/dist/esm/styled/items/header/StyledHeaderIcon.js +3 -3
- package/dist/esm/styled/items/header/StyledHeaderItem.js +3 -3
- package/dist/esm/styled/items/media/StyledMediaBody.js +3 -3
- package/dist/esm/styled/items/media/StyledMediaFigure.js +3 -3
- package/dist/esm/styled/items/media/StyledMediaItem.js +3 -3
- package/dist/esm/styled/menu/StyledMenu.js +3 -3
- package/dist/esm/styled/menu/StyledMenuWrapper.js +3 -3
- package/dist/esm/styled/menu/StyledSeparator.js +3 -3
- package/dist/esm/styled/multiselect/StyledMultiselectInput.js +3 -3
- package/dist/esm/styled/multiselect/StyledMultiselectItemWrapper.js +3 -3
- package/dist/esm/styled/multiselect/StyledMultiselectItemsContainer.js +3 -3
- package/dist/esm/styled/multiselect/StyledMultiselectMoreAnchor.js +3 -3
- package/dist/esm/styled/select/StyledFauxInput.js +3 -3
- package/dist/esm/styled/select/StyledInput.js +3 -3
- package/dist/esm/styled/select/StyledSelect.js +3 -3
- package/dist/index.cjs.js +45 -45
- package/package.json +4 -4
|
@@ -5,19 +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 { getColor,
|
|
8
|
+
import { getColor, componentStyles } 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.
|
|
14
|
+
'data-garden-version': '9.5.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledAddItem",
|
|
17
17
|
componentId: "sc-mlto71-0"
|
|
18
18
|
})(["color:", ";", ";"], props => !props.disabled && getColor({
|
|
19
19
|
theme: props.theme,
|
|
20
20
|
variable: 'foreground.primary'
|
|
21
|
-
}),
|
|
21
|
+
}), componentStyles);
|
|
22
22
|
|
|
23
23
|
export { StyledAddItem };
|
|
@@ -5,7 +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 {
|
|
8
|
+
import { componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.item';
|
|
11
11
|
const getItemPaddingVertical = props => {
|
|
@@ -41,11 +41,11 @@ const getColorStyles = props => {
|
|
|
41
41
|
};
|
|
42
42
|
const StyledItem = styled.li.attrs(props => ({
|
|
43
43
|
'data-garden-id': COMPONENT_ID,
|
|
44
|
-
'data-garden-version': '9.
|
|
44
|
+
'data-garden-version': '9.5.0',
|
|
45
45
|
'aria-disabled': props.disabled
|
|
46
46
|
})).withConfig({
|
|
47
47
|
displayName: "StyledItem",
|
|
48
48
|
componentId: "sc-x4h8aw-0"
|
|
49
|
-
})(["display:block;position:relative;z-index:0;cursor:", ";padding:", " ", "px;text-decoration:none;line-height:", "px;word-wrap:break-word;user-select:none;&:first-child{margin-top:", "px;}&:last-child{margin-bottom:", "px;}&:focus{outline:none;}& a,& a:hover,& a:focus,& a:active{text-decoration:none;}", ";", ";"], props => props.disabled ? 'default' : 'pointer', props => getItemPaddingVertical(props), props => props.theme.space.base * 9, props => props.theme.space.base * 5, props => props.theme.space.base, props => props.theme.space.base, props => getColorStyles(props),
|
|
49
|
+
})(["display:block;position:relative;z-index:0;cursor:", ";padding:", " ", "px;text-decoration:none;line-height:", "px;word-wrap:break-word;user-select:none;&:first-child{margin-top:", "px;}&:last-child{margin-bottom:", "px;}&:focus{outline:none;}& a,& a:hover,& a:focus,& a:active{text-decoration:none;}", ";", ";"], props => props.disabled ? 'default' : 'pointer', props => getItemPaddingVertical(props), props => props.theme.space.base * 9, props => props.theme.space.base * 5, props => props.theme.space.base, props => props.theme.space.base, props => getColorStyles(props), componentStyles);
|
|
50
50
|
|
|
51
51
|
export { StyledItem, getItemPaddingVertical };
|
|
@@ -15,7 +15,7 @@ const getSizeStyles = props => {
|
|
|
15
15
|
};
|
|
16
16
|
const StyledItemIcon = styled.div.attrs({
|
|
17
17
|
'data-garden-id': COMPONENT_ID,
|
|
18
|
-
'data-garden-version': '9.
|
|
18
|
+
'data-garden-version': '9.5.0'
|
|
19
19
|
}).withConfig({
|
|
20
20
|
displayName: "StyledItemIcon",
|
|
21
21
|
componentId: "sc-pspm80-0"
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { getColor,
|
|
8
|
+
import { getColor, componentStyles } 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.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledItemMeta",
|
|
16
16
|
componentId: "sc-1m3x8m1-0"
|
|
17
17
|
})(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.$isCompact ? 3 : 4), props => getColor({
|
|
18
18
|
theme: props.theme,
|
|
19
19
|
variable: props.$isDisabled ? 'foreground.disabled' : 'foreground.subtle'
|
|
20
|
-
}), props => props.theme.fontSizes.sm,
|
|
20
|
+
}), props => props.theme.fontSizes.sm, componentStyles);
|
|
21
21
|
|
|
22
22
|
export { StyledItemMeta };
|
|
@@ -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 { getColor,
|
|
10
|
+
import { getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.next_item_icon';
|
|
13
13
|
const NextIconComponent = _ref => {
|
|
@@ -16,7 +16,7 @@ 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.
|
|
19
|
+
"data-garden-version": '9.5.0',
|
|
20
20
|
className: className
|
|
21
21
|
});
|
|
22
22
|
};
|
|
@@ -26,6 +26,6 @@ const StyledNextIcon = styled(NextIconComponent).withConfig({
|
|
|
26
26
|
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.$isDisabled ? 'inherit' : getColor({
|
|
27
27
|
theme: props.theme,
|
|
28
28
|
variable: 'foreground.disabled'
|
|
29
|
-
}),
|
|
29
|
+
}), componentStyles);
|
|
30
30
|
|
|
31
31
|
export { StyledNextIcon };
|
|
@@ -5,17 +5,17 @@
|
|
|
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 { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledItem } from './StyledItem.js';
|
|
10
10
|
import { StyledItemIcon } from './StyledItemIcon.js';
|
|
11
11
|
|
|
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.
|
|
15
|
+
'data-garden-version': '9.5.0'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledNextItem",
|
|
18
18
|
componentId: "sc-1wrjlge-0"
|
|
19
|
-
})(["", "{right:", ";left:", ";}", ";"], StyledItemIcon, props => props.theme.rtl ? 'auto' : `${props.theme.space.base * 3}px`, props => props.theme.rtl ? `${props.theme.space.base * 3}px` : 'auto',
|
|
19
|
+
})(["", "{right:", ";left:", ";}", ";"], StyledItemIcon, props => props.theme.rtl ? 'auto' : `${props.theme.space.base * 3}px`, props => props.theme.rtl ? `${props.theme.space.base * 3}px` : 'auto', componentStyles);
|
|
20
20
|
|
|
21
21
|
export { StyledNextItem };
|
|
@@ -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 { getColor,
|
|
10
|
+
import { getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.previous_item_icon';
|
|
13
13
|
const PreviousIconComponent = _ref => {
|
|
@@ -16,7 +16,7 @@ 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.
|
|
19
|
+
"data-garden-version": '9.5.0',
|
|
20
20
|
className: className
|
|
21
21
|
});
|
|
22
22
|
};
|
|
@@ -26,6 +26,6 @@ const StyledPreviousIcon = styled(PreviousIconComponent).withConfig({
|
|
|
26
26
|
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.$isDisabled ? 'inherit' : getColor({
|
|
27
27
|
theme: props.theme,
|
|
28
28
|
variable: 'foreground.subtle'
|
|
29
|
-
}),
|
|
29
|
+
}), componentStyles);
|
|
30
30
|
|
|
31
31
|
export { StyledPreviousIcon };
|
|
@@ -5,16 +5,16 @@
|
|
|
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 { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledItem } from './StyledItem.js';
|
|
10
10
|
|
|
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.
|
|
14
|
+
'data-garden-version': '9.5.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledPreviousItem",
|
|
17
17
|
componentId: "sc-1qv9jwe-0"
|
|
18
|
-
})(["font-weight:", ";", ";"], props => props.theme.fontWeights.semibold,
|
|
18
|
+
})(["font-weight:", ";", ";"], props => props.theme.fontWeights.semibold, componentStyles);
|
|
19
19
|
|
|
20
20
|
export { StyledPreviousItem };
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { getColor,
|
|
8
|
+
import { getColor, componentStyles } 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.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledHeaderIcon",
|
|
16
16
|
componentId: "sc-ow8s45-0"
|
|
17
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
18
|
theme: props.theme,
|
|
19
19
|
variable: 'foreground.subtle'
|
|
20
|
-
}), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md,
|
|
20
|
+
}), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, componentStyles);
|
|
21
21
|
|
|
22
22
|
export { StyledHeaderIcon };
|
|
@@ -5,7 +5,7 @@
|
|
|
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 { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledItem } from '../StyledItem.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.header_item';
|
|
@@ -17,10 +17,10 @@ const getHorizontalPadding = props => {
|
|
|
17
17
|
};
|
|
18
18
|
const StyledHeaderItem = styled(StyledItem).attrs({
|
|
19
19
|
'data-garden-id': COMPONENT_ID,
|
|
20
|
-
'data-garden-version': '9.
|
|
20
|
+
'data-garden-version': '9.5.0'
|
|
21
21
|
}).withConfig({
|
|
22
22
|
displayName: "StyledHeaderItem",
|
|
23
23
|
componentId: "sc-1xosinr-0"
|
|
24
|
-
})(["cursor:default;padding-right:", ";padding-left:", ";font-weight:", ";", ";"], props => getHorizontalPadding(props), props => getHorizontalPadding(props), props => props.theme.fontWeights.semibold,
|
|
24
|
+
})(["cursor:default;padding-right:", ";padding-left:", ";font-weight:", ";", ";"], props => getHorizontalPadding(props), props => getHorizontalPadding(props), props => props.theme.fontWeights.semibold, componentStyles);
|
|
25
25
|
|
|
26
26
|
export { StyledHeaderItem };
|
|
@@ -5,15 +5,15 @@
|
|
|
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 { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
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.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledMediaBody",
|
|
16
16
|
componentId: "sc-133sssc-0"
|
|
17
|
-
})(["display:block;overflow:hidden;padding-", ":", "px;", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2,
|
|
17
|
+
})(["display:block;overflow:hidden;padding-", ":", "px;", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2, componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledMediaBody };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import React__default, { Children } from 'react';
|
|
8
8
|
import styled from 'styled-components';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.media_figure';
|
|
12
12
|
const StyledMediaFigure = styled(
|
|
@@ -20,10 +20,10 @@ _ref => {
|
|
|
20
20
|
return React__default.cloneElement(Children.only(children), props);
|
|
21
21
|
}).attrs({
|
|
22
22
|
'data-garden-id': COMPONENT_ID,
|
|
23
|
-
'data-garden-version': '9.
|
|
23
|
+
'data-garden-version': '9.5.0'
|
|
24
24
|
}).withConfig({
|
|
25
25
|
displayName: "StyledMediaFigure",
|
|
26
26
|
componentId: "sc-16vz3xj-0"
|
|
27
|
-
})(["float:", ";margin-top:", "px !important;width:", ";height:", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 0.5, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md,
|
|
27
|
+
})(["float:", ";margin-top:", "px !important;width:", ";height:", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 0.5, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, componentStyles);
|
|
28
28
|
|
|
29
29
|
export { StyledMediaFigure };
|
|
@@ -5,16 +5,16 @@
|
|
|
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 { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledItem } from '../StyledItem.js';
|
|
10
10
|
|
|
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.
|
|
14
|
+
'data-garden-version': '9.5.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledMediaItem",
|
|
17
17
|
componentId: "sc-af4509-0"
|
|
18
|
-
})(["", ";"],
|
|
18
|
+
})(["", ";"], componentStyles);
|
|
19
19
|
|
|
20
20
|
export { StyledMediaItem };
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { arrowStyles,
|
|
8
|
+
import { arrowStyles, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { getArrowPosition } from '../../utils/garden-placements.js';
|
|
10
10
|
|
|
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.
|
|
14
|
+
'data-garden-version': '9.5.0',
|
|
15
15
|
className: props.$isAnimated ? 'is-animated' : undefined
|
|
16
16
|
})).withConfig({
|
|
17
17
|
displayName: "StyledMenu",
|
|
@@ -20,6 +20,6 @@ const StyledMenu = styled.ul.attrs(props => ({
|
|
|
20
20
|
size: `${props.theme.space.base * 1.5}px`,
|
|
21
21
|
inset: '1px',
|
|
22
22
|
animationModifier: props.$isAnimated ? '.is-animated' : undefined
|
|
23
|
-
}),
|
|
23
|
+
}), componentStyles);
|
|
24
24
|
|
|
25
25
|
export { StyledMenu };
|
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { menuStyles,
|
|
8
|
+
import { menuStyles, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { getMenuPosition } from '../../utils/garden-placements.js';
|
|
10
10
|
|
|
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.
|
|
14
|
+
'data-garden-version': '9.5.0',
|
|
15
15
|
className: props.$isAnimated ? 'is-animated' : undefined
|
|
16
16
|
})).withConfig({
|
|
17
17
|
displayName: "StyledMenuWrapper",
|
|
@@ -22,6 +22,6 @@ const StyledMenuWrapper = styled.div.attrs(props => ({
|
|
|
22
22
|
margin: `${props.theme.space.base * (props.$hasArrow ? 2 : 1)}px`,
|
|
23
23
|
zIndex: props.$zIndex,
|
|
24
24
|
animationModifier: props.$isAnimated ? '.is-animated' : undefined
|
|
25
|
-
}),
|
|
25
|
+
}), componentStyles);
|
|
26
26
|
|
|
27
27
|
export { StyledMenuWrapper };
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { getColor,
|
|
8
|
+
import { getColor, componentStyles } 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.
|
|
13
|
+
'data-garden-version': '9.5.0',
|
|
14
14
|
role: 'separator'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledSeparator",
|
|
@@ -18,6 +18,6 @@ const StyledSeparator = styled.li.attrs({
|
|
|
18
18
|
})(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${getColor({
|
|
19
19
|
theme: props.theme,
|
|
20
20
|
variable: 'border.subtle'
|
|
21
|
-
})}`,
|
|
21
|
+
})}`, componentStyles);
|
|
22
22
|
|
|
23
23
|
export { StyledSeparator };
|
|
@@ -5,7 +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 {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledInput } from '../select/StyledInput.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.multiselect_input';
|
|
@@ -25,11 +25,11 @@ const visibleStyling = _ref => {
|
|
|
25
25
|
};
|
|
26
26
|
const StyledMultiselectInput = styled(StyledInput).attrs({
|
|
27
27
|
'data-garden-id': COMPONENT_ID,
|
|
28
|
-
'data-garden-version': '9.
|
|
28
|
+
'data-garden-version': '9.5.0',
|
|
29
29
|
isBare: true
|
|
30
30
|
}).withConfig({
|
|
31
31
|
displayName: "StyledMultiselectInput",
|
|
32
32
|
componentId: "sc-iiow29-0"
|
|
33
|
-
})(["flex-basis:", "px;flex-grow:1;align-self:center;min-height:0;", ";", ";"], props => props.theme.space.base * 15, props => visibleStyling(props),
|
|
33
|
+
})(["flex-basis:", "px;flex-grow:1;align-self:center;min-height:0;", ";", ";"], props => props.theme.space.base * 15, props => visibleStyling(props), componentStyles);
|
|
34
34
|
|
|
35
35
|
export { StyledMultiselectInput };
|
|
@@ -5,15 +5,15 @@
|
|
|
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 { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
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.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledMultiselectItemWrapper",
|
|
16
16
|
componentId: "sc-vgr7nd-0"
|
|
17
|
-
})(["display:inline-flex;align-items:center;margin:", "px;max-width:100%;", ";"], props => props.theme.space.base / 2,
|
|
17
|
+
})(["display:inline-flex;align-items:center;margin:", "px;max-width:100%;", ";"], props => props.theme.space.base / 2, componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledMultiselectItemWrapper };
|
|
@@ -5,7 +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 {
|
|
8
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'dropdowns.multiselect_items_container';
|
|
11
11
|
const sizeStyles = props => {
|
|
@@ -22,10 +22,10 @@ const sizeStyles = props => {
|
|
|
22
22
|
};
|
|
23
23
|
const StyledMultiselectItemsContainer = styled.div.attrs({
|
|
24
24
|
'data-garden-id': COMPONENT_ID,
|
|
25
|
-
'data-garden-version': '9.
|
|
25
|
+
'data-garden-version': '9.5.0'
|
|
26
26
|
}).withConfig({
|
|
27
27
|
displayName: "StyledMultiselectItemsContainer",
|
|
28
28
|
componentId: "sc-1dxwjyz-0"
|
|
29
|
-
})(["display:inline-flex;flex-grow:1;flex-wrap:wrap;min-width:0;", ";", ";"], props => sizeStyles(props),
|
|
29
|
+
})(["display:inline-flex;flex-grow:1;flex-wrap:wrap;min-width:0;", ";", ";"], props => sizeStyles(props), componentStyles);
|
|
30
30
|
|
|
31
31
|
export { StyledMultiselectItemsContainer };
|
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { getLineHeight, getColor,
|
|
8
|
+
import { getLineHeight, getColor, componentStyles } 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.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledMultiselectMoreAnchor",
|
|
16
16
|
componentId: "sc-pkakky-0"
|
|
17
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
18
|
theme: props.theme,
|
|
19
19
|
variable: props.$isDisabled ? 'foreground.disabled' : 'foreground.primary'
|
|
20
|
-
}), props => !props.$isDisabled && 'underline',
|
|
20
|
+
}), props => !props.$isDisabled && 'underline', componentStyles);
|
|
21
21
|
|
|
22
22
|
export { StyledMultiselectMoreAnchor };
|
|
@@ -5,18 +5,18 @@
|
|
|
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 { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { FauxInput } from '@zendeskgarden/react-forms';
|
|
10
10
|
|
|
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.
|
|
14
|
+
'data-garden-version': '9.5.0',
|
|
15
15
|
mediaLayout: true,
|
|
16
16
|
theme: props.theme
|
|
17
17
|
})).withConfig({
|
|
18
18
|
displayName: "StyledFauxInput",
|
|
19
19
|
componentId: "sc-bk8odf-0"
|
|
20
|
-
})(["cursor:", ";min-width:", "px;", ";"], props => !props.disabled && 'pointer', props => props.theme.space.base * (props.isCompact ? 25 : 36),
|
|
20
|
+
})(["cursor:", ";min-width:", "px;", ";"], props => !props.disabled && 'pointer', props => props.theme.space.base * (props.isCompact ? 25 : 36), componentStyles);
|
|
21
21
|
|
|
22
22
|
export { StyledFauxInput };
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { Input } from '@zendeskgarden/react-forms';
|
|
9
|
-
import {
|
|
9
|
+
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
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.
|
|
15
|
+
'data-garden-version': '9.5.0',
|
|
16
16
|
isBare: true
|
|
17
17
|
}).withConfig({
|
|
18
18
|
displayName: "StyledInput",
|
|
19
19
|
componentId: "sc-kykaw8-0"
|
|
20
|
-
})(["", ";", ";"], props => props.$isHidden && hiddenStyling,
|
|
20
|
+
})(["", ";", ";"], props => props.$isHidden && hiddenStyling, componentStyles);
|
|
21
21
|
|
|
22
22
|
export { StyledInput };
|
|
@@ -5,15 +5,15 @@
|
|
|
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 { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
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.
|
|
13
|
+
'data-garden-version': '9.5.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledSelect",
|
|
16
16
|
componentId: "sc-xf4qjv-0"
|
|
17
|
-
})(["flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"],
|
|
17
|
+
})(["flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"], componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledSelect };
|
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.
|
|
292
|
+
'data-garden-version': '9.5.0',
|
|
293
293
|
className: props.$isAnimated ? 'is-animated' : undefined
|
|
294
294
|
})).withConfig({
|
|
295
295
|
displayName: "StyledMenu",
|
|
@@ -298,12 +298,12 @@ const StyledMenu = styled__default.default.ul.attrs(props => ({
|
|
|
298
298
|
size: `${props.theme.space.base * 1.5}px`,
|
|
299
299
|
inset: '1px',
|
|
300
300
|
animationModifier: props.$isAnimated ? '.is-animated' : undefined
|
|
301
|
-
}),
|
|
301
|
+
}), reactTheming.componentStyles);
|
|
302
302
|
|
|
303
303
|
const COMPONENT_ID$l = 'dropdowns.menu_wrapper';
|
|
304
304
|
const StyledMenuWrapper = styled__default.default.div.attrs(props => ({
|
|
305
305
|
'data-garden-id': COMPONENT_ID$l,
|
|
306
|
-
'data-garden-version': '9.
|
|
306
|
+
'data-garden-version': '9.5.0',
|
|
307
307
|
className: props.$isAnimated ? 'is-animated' : undefined
|
|
308
308
|
})).withConfig({
|
|
309
309
|
displayName: "StyledMenuWrapper",
|
|
@@ -314,12 +314,12 @@ const StyledMenuWrapper = styled__default.default.div.attrs(props => ({
|
|
|
314
314
|
margin: `${props.theme.space.base * (props.$hasArrow ? 2 : 1)}px`,
|
|
315
315
|
zIndex: props.$zIndex,
|
|
316
316
|
animationModifier: props.$isAnimated ? '.is-animated' : undefined
|
|
317
|
-
}),
|
|
317
|
+
}), reactTheming.componentStyles);
|
|
318
318
|
|
|
319
319
|
const COMPONENT_ID$k = 'dropdowns.separator';
|
|
320
320
|
const StyledSeparator = styled__default.default.li.attrs({
|
|
321
321
|
'data-garden-id': COMPONENT_ID$k,
|
|
322
|
-
'data-garden-version': '9.
|
|
322
|
+
'data-garden-version': '9.5.0',
|
|
323
323
|
role: 'separator'
|
|
324
324
|
}).withConfig({
|
|
325
325
|
displayName: "StyledSeparator",
|
|
@@ -327,7 +327,7 @@ const StyledSeparator = styled__default.default.li.attrs({
|
|
|
327
327
|
})(["display:block;margin:", "px 0;border-bottom:", ";", ";"], props => props.theme.space.base, props => `${props.theme.borders.sm} ${reactTheming.getColor({
|
|
328
328
|
theme: props.theme,
|
|
329
329
|
variable: 'border.subtle'
|
|
330
|
-
})}`,
|
|
330
|
+
})}`, reactTheming.componentStyles);
|
|
331
331
|
|
|
332
332
|
const COMPONENT_ID$j = 'dropdowns.item';
|
|
333
333
|
const getItemPaddingVertical = props => {
|
|
@@ -363,36 +363,36 @@ const getColorStyles = props => {
|
|
|
363
363
|
};
|
|
364
364
|
const StyledItem = styled__default.default.li.attrs(props => ({
|
|
365
365
|
'data-garden-id': COMPONENT_ID$j,
|
|
366
|
-
'data-garden-version': '9.
|
|
366
|
+
'data-garden-version': '9.5.0',
|
|
367
367
|
'aria-disabled': props.disabled
|
|
368
368
|
})).withConfig({
|
|
369
369
|
displayName: "StyledItem",
|
|
370
370
|
componentId: "sc-x4h8aw-0"
|
|
371
|
-
})(["display:block;position:relative;z-index:0;cursor:", ";padding:", " ", "px;text-decoration:none;line-height:", "px;word-wrap:break-word;user-select:none;&:first-child{margin-top:", "px;}&:last-child{margin-bottom:", "px;}&:focus{outline:none;}& a,& a:hover,& a:focus,& a:active{text-decoration:none;}", ";", ";"], props => props.disabled ? 'default' : 'pointer', props => getItemPaddingVertical(props), props => props.theme.space.base * 9, props => props.theme.space.base * 5, props => props.theme.space.base, props => props.theme.space.base, props => getColorStyles(props),
|
|
371
|
+
})(["display:block;position:relative;z-index:0;cursor:", ";padding:", " ", "px;text-decoration:none;line-height:", "px;word-wrap:break-word;user-select:none;&:first-child{margin-top:", "px;}&:last-child{margin-bottom:", "px;}&:focus{outline:none;}& a,& a:hover,& a:focus,& a:active{text-decoration:none;}", ";", ";"], props => props.disabled ? 'default' : 'pointer', props => getItemPaddingVertical(props), props => props.theme.space.base * 9, props => props.theme.space.base * 5, props => props.theme.space.base, props => props.theme.space.base, props => getColorStyles(props), reactTheming.componentStyles);
|
|
372
372
|
|
|
373
373
|
const COMPONENT_ID$i = 'dropdowns.add_item';
|
|
374
374
|
const StyledAddItem = styled__default.default(StyledItem).attrs({
|
|
375
375
|
'data-garden-id': COMPONENT_ID$i,
|
|
376
|
-
'data-garden-version': '9.
|
|
376
|
+
'data-garden-version': '9.5.0'
|
|
377
377
|
}).withConfig({
|
|
378
378
|
displayName: "StyledAddItem",
|
|
379
379
|
componentId: "sc-mlto71-0"
|
|
380
380
|
})(["color:", ";", ";"], props => !props.disabled && reactTheming.getColor({
|
|
381
381
|
theme: props.theme,
|
|
382
382
|
variable: 'foreground.primary'
|
|
383
|
-
}),
|
|
383
|
+
}), reactTheming.componentStyles);
|
|
384
384
|
|
|
385
385
|
const COMPONENT_ID$h = 'dropdowns.item_meta';
|
|
386
386
|
const StyledItemMeta = styled__default.default.span.attrs({
|
|
387
387
|
'data-garden-id': COMPONENT_ID$h,
|
|
388
|
-
'data-garden-version': '9.
|
|
388
|
+
'data-garden-version': '9.5.0'
|
|
389
389
|
}).withConfig({
|
|
390
390
|
displayName: "StyledItemMeta",
|
|
391
391
|
componentId: "sc-1m3x8m1-0"
|
|
392
392
|
})(["display:block;line-height:", "px;color:", ";font-size:", ";", ";"], props => props.theme.space.base * (props.$isCompact ? 3 : 4), props => reactTheming.getColor({
|
|
393
393
|
theme: props.theme,
|
|
394
394
|
variable: props.$isDisabled ? 'foreground.disabled' : 'foreground.subtle'
|
|
395
|
-
}), props => props.theme.fontSizes.sm,
|
|
395
|
+
}), props => props.theme.fontSizes.sm, reactTheming.componentStyles);
|
|
396
396
|
|
|
397
397
|
const COMPONENT_ID$g = 'dropdowns.item_icon';
|
|
398
398
|
const getSizeStyles = props => {
|
|
@@ -400,7 +400,7 @@ const getSizeStyles = props => {
|
|
|
400
400
|
};
|
|
401
401
|
const StyledItemIcon = styled__default.default.div.attrs({
|
|
402
402
|
'data-garden-id': COMPONENT_ID$g,
|
|
403
|
-
'data-garden-version': '9.
|
|
403
|
+
'data-garden-version': '9.5.0'
|
|
404
404
|
}).withConfig({
|
|
405
405
|
displayName: "StyledItemIcon",
|
|
406
406
|
componentId: "sc-pspm80-0"
|
|
@@ -412,11 +412,11 @@ const StyledItemIcon = styled__default.default.div.attrs({
|
|
|
412
412
|
const COMPONENT_ID$f = 'dropdowns.next_item';
|
|
413
413
|
const StyledNextItem = styled__default.default(StyledItem).attrs({
|
|
414
414
|
'data-garden-id': COMPONENT_ID$f,
|
|
415
|
-
'data-garden-version': '9.
|
|
415
|
+
'data-garden-version': '9.5.0'
|
|
416
416
|
}).withConfig({
|
|
417
417
|
displayName: "StyledNextItem",
|
|
418
418
|
componentId: "sc-1wrjlge-0"
|
|
419
|
-
})(["", "{right:", ";left:", ";}", ";"], StyledItemIcon, props => props.theme.rtl ? 'auto' : `${props.theme.space.base * 3}px`, props => props.theme.rtl ? `${props.theme.space.base * 3}px` : 'auto',
|
|
419
|
+
})(["", "{right:", ";left:", ";}", ";"], StyledItemIcon, props => props.theme.rtl ? 'auto' : `${props.theme.space.base * 3}px`, props => props.theme.rtl ? `${props.theme.space.base * 3}px` : 'auto', reactTheming.componentStyles);
|
|
420
420
|
|
|
421
421
|
var _path$4;
|
|
422
422
|
function _extends$4() { return _extends$4 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$4.apply(null, arguments); }
|
|
@@ -441,7 +441,7 @@ const NextIconComponent = _ref => {
|
|
|
441
441
|
} = _ref;
|
|
442
442
|
return React__namespace.default.createElement(SvgChevronRightStroke, {
|
|
443
443
|
"data-garden-id": COMPONENT_ID$e,
|
|
444
|
-
"data-garden-version": '9.
|
|
444
|
+
"data-garden-version": '9.5.0',
|
|
445
445
|
className: className
|
|
446
446
|
});
|
|
447
447
|
};
|
|
@@ -451,16 +451,16 @@ const StyledNextIcon = styled__default.default(NextIconComponent).withConfig({
|
|
|
451
451
|
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.$isDisabled ? 'inherit' : reactTheming.getColor({
|
|
452
452
|
theme: props.theme,
|
|
453
453
|
variable: 'foreground.disabled'
|
|
454
|
-
}),
|
|
454
|
+
}), reactTheming.componentStyles);
|
|
455
455
|
|
|
456
456
|
const COMPONENT_ID$d = 'dropdowns.previous_item';
|
|
457
457
|
const StyledPreviousItem = styled__default.default(StyledItem).attrs({
|
|
458
458
|
'data-garden-id': COMPONENT_ID$d,
|
|
459
|
-
'data-garden-version': '9.
|
|
459
|
+
'data-garden-version': '9.5.0'
|
|
460
460
|
}).withConfig({
|
|
461
461
|
displayName: "StyledPreviousItem",
|
|
462
462
|
componentId: "sc-1qv9jwe-0"
|
|
463
|
-
})(["font-weight:", ";", ";"], props => props.theme.fontWeights.semibold,
|
|
463
|
+
})(["font-weight:", ";", ";"], props => props.theme.fontWeights.semibold, reactTheming.componentStyles);
|
|
464
464
|
|
|
465
465
|
var _path$3;
|
|
466
466
|
function _extends$3() { return _extends$3 = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends$3.apply(null, arguments); }
|
|
@@ -485,7 +485,7 @@ const PreviousIconComponent = _ref => {
|
|
|
485
485
|
} = _ref;
|
|
486
486
|
return React__namespace.default.createElement(SvgChevronLeftStroke, {
|
|
487
487
|
"data-garden-id": COMPONENT_ID$c,
|
|
488
|
-
"data-garden-version": '9.
|
|
488
|
+
"data-garden-version": '9.5.0',
|
|
489
489
|
className: className
|
|
490
490
|
});
|
|
491
491
|
};
|
|
@@ -495,19 +495,19 @@ const StyledPreviousIcon = styled__default.default(PreviousIconComponent).withCo
|
|
|
495
495
|
})(["transform:", ";color:", ";", ";"], props => props.theme.rtl && 'rotate(180deg)', props => props.$isDisabled ? 'inherit' : reactTheming.getColor({
|
|
496
496
|
theme: props.theme,
|
|
497
497
|
variable: 'foreground.subtle'
|
|
498
|
-
}),
|
|
498
|
+
}), reactTheming.componentStyles);
|
|
499
499
|
|
|
500
500
|
const COMPONENT_ID$b = 'dropdowns.header_icon';
|
|
501
501
|
const StyledHeaderIcon = styled__default.default.div.attrs({
|
|
502
502
|
'data-garden-id': COMPONENT_ID$b,
|
|
503
|
-
'data-garden-version': '9.
|
|
503
|
+
'data-garden-version': '9.5.0'
|
|
504
504
|
}).withConfig({
|
|
505
505
|
displayName: "StyledHeaderIcon",
|
|
506
506
|
componentId: "sc-ow8s45-0"
|
|
507
507
|
})(["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({
|
|
508
508
|
theme: props.theme,
|
|
509
509
|
variable: 'foreground.subtle'
|
|
510
|
-
}), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md,
|
|
510
|
+
}), props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, reactTheming.componentStyles);
|
|
511
511
|
|
|
512
512
|
const COMPONENT_ID$a = 'dropdowns.header_item';
|
|
513
513
|
const getHorizontalPadding = props => {
|
|
@@ -518,20 +518,20 @@ const getHorizontalPadding = props => {
|
|
|
518
518
|
};
|
|
519
519
|
const StyledHeaderItem = styled__default.default(StyledItem).attrs({
|
|
520
520
|
'data-garden-id': COMPONENT_ID$a,
|
|
521
|
-
'data-garden-version': '9.
|
|
521
|
+
'data-garden-version': '9.5.0'
|
|
522
522
|
}).withConfig({
|
|
523
523
|
displayName: "StyledHeaderItem",
|
|
524
524
|
componentId: "sc-1xosinr-0"
|
|
525
|
-
})(["cursor:default;padding-right:", ";padding-left:", ";font-weight:", ";", ";"], props => getHorizontalPadding(props), props => getHorizontalPadding(props), props => props.theme.fontWeights.semibold,
|
|
525
|
+
})(["cursor:default;padding-right:", ";padding-left:", ";font-weight:", ";", ";"], props => getHorizontalPadding(props), props => getHorizontalPadding(props), props => props.theme.fontWeights.semibold, reactTheming.componentStyles);
|
|
526
526
|
|
|
527
527
|
const COMPONENT_ID$9 = 'dropdowns.media_body';
|
|
528
528
|
const StyledMediaBody = styled__default.default.div.attrs({
|
|
529
529
|
'data-garden-id': COMPONENT_ID$9,
|
|
530
|
-
'data-garden-version': '9.
|
|
530
|
+
'data-garden-version': '9.5.0'
|
|
531
531
|
}).withConfig({
|
|
532
532
|
displayName: "StyledMediaBody",
|
|
533
533
|
componentId: "sc-133sssc-0"
|
|
534
|
-
})(["display:block;overflow:hidden;padding-", ":", "px;", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2,
|
|
534
|
+
})(["display:block;overflow:hidden;padding-", ":", "px;", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2, reactTheming.componentStyles);
|
|
535
535
|
|
|
536
536
|
const COMPONENT_ID$8 = 'dropdowns.media_figure';
|
|
537
537
|
const StyledMediaFigure = styled__default.default(
|
|
@@ -545,51 +545,51 @@ _ref => {
|
|
|
545
545
|
return React__namespace.default.cloneElement(React.Children.only(children), props);
|
|
546
546
|
}).attrs({
|
|
547
547
|
'data-garden-id': COMPONENT_ID$8,
|
|
548
|
-
'data-garden-version': '9.
|
|
548
|
+
'data-garden-version': '9.5.0'
|
|
549
549
|
}).withConfig({
|
|
550
550
|
displayName: "StyledMediaFigure",
|
|
551
551
|
componentId: "sc-16vz3xj-0"
|
|
552
|
-
})(["float:", ";margin-top:", "px !important;width:", ";height:", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 0.5, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md,
|
|
552
|
+
})(["float:", ";margin-top:", "px !important;width:", ";height:", ";", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 0.5, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, reactTheming.componentStyles);
|
|
553
553
|
|
|
554
554
|
const COMPONENT_ID$7 = 'dropdowns.media_item';
|
|
555
555
|
const StyledMediaItem = styled__default.default(StyledItem).attrs({
|
|
556
556
|
'data-garden-id': COMPONENT_ID$7,
|
|
557
|
-
'data-garden-version': '9.
|
|
557
|
+
'data-garden-version': '9.5.0'
|
|
558
558
|
}).withConfig({
|
|
559
559
|
displayName: "StyledMediaItem",
|
|
560
560
|
componentId: "sc-af4509-0"
|
|
561
|
-
})(["", ";"],
|
|
561
|
+
})(["", ";"], reactTheming.componentStyles);
|
|
562
562
|
|
|
563
563
|
const COMPONENT_ID$6 = 'dropdowns.faux_input';
|
|
564
564
|
const StyledFauxInput = styled__default.default(reactForms.FauxInput).attrs(props => ({
|
|
565
565
|
'data-garden-id': COMPONENT_ID$6,
|
|
566
|
-
'data-garden-version': '9.
|
|
566
|
+
'data-garden-version': '9.5.0',
|
|
567
567
|
mediaLayout: true,
|
|
568
568
|
theme: props.theme
|
|
569
569
|
})).withConfig({
|
|
570
570
|
displayName: "StyledFauxInput",
|
|
571
571
|
componentId: "sc-bk8odf-0"
|
|
572
|
-
})(["cursor:", ";min-width:", "px;", ";"], props => !props.disabled && 'pointer', props => props.theme.space.base * (props.isCompact ? 25 : 36),
|
|
572
|
+
})(["cursor:", ";min-width:", "px;", ";"], props => !props.disabled && 'pointer', props => props.theme.space.base * (props.isCompact ? 25 : 36), reactTheming.componentStyles);
|
|
573
573
|
|
|
574
574
|
const COMPONENT_ID$5 = 'dropdowns.input';
|
|
575
575
|
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;"]);
|
|
576
576
|
const StyledInput = styled__default.default(reactForms.Input).attrs({
|
|
577
577
|
'data-garden-id': COMPONENT_ID$5,
|
|
578
|
-
'data-garden-version': '9.
|
|
578
|
+
'data-garden-version': '9.5.0',
|
|
579
579
|
isBare: true
|
|
580
580
|
}).withConfig({
|
|
581
581
|
displayName: "StyledInput",
|
|
582
582
|
componentId: "sc-kykaw8-0"
|
|
583
|
-
})(["", ";", ";"], props => props.$isHidden && hiddenStyling,
|
|
583
|
+
})(["", ";", ";"], props => props.$isHidden && hiddenStyling, reactTheming.componentStyles);
|
|
584
584
|
|
|
585
585
|
const COMPONENT_ID$4 = 'dropdowns.select';
|
|
586
586
|
const StyledSelect = styled__default.default.div.attrs({
|
|
587
587
|
'data-garden-id': COMPONENT_ID$4,
|
|
588
|
-
'data-garden-version': '9.
|
|
588
|
+
'data-garden-version': '9.5.0'
|
|
589
589
|
}).withConfig({
|
|
590
590
|
displayName: "StyledSelect",
|
|
591
591
|
componentId: "sc-xf4qjv-0"
|
|
592
|
-
})(["flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"],
|
|
592
|
+
})(["flex-grow:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;", ";"], reactTheming.componentStyles);
|
|
593
593
|
|
|
594
594
|
const COMPONENT_ID$3 = 'dropdowns.multiselect_input';
|
|
595
595
|
const visibleStyling = _ref => {
|
|
@@ -608,12 +608,12 @@ const visibleStyling = _ref => {
|
|
|
608
608
|
};
|
|
609
609
|
const StyledMultiselectInput = styled__default.default(StyledInput).attrs({
|
|
610
610
|
'data-garden-id': COMPONENT_ID$3,
|
|
611
|
-
'data-garden-version': '9.
|
|
611
|
+
'data-garden-version': '9.5.0',
|
|
612
612
|
isBare: true
|
|
613
613
|
}).withConfig({
|
|
614
614
|
displayName: "StyledMultiselectInput",
|
|
615
615
|
componentId: "sc-iiow29-0"
|
|
616
|
-
})(["flex-basis:", "px;flex-grow:1;align-self:center;min-height:0;", ";", ";"], props => props.theme.space.base * 15, props => visibleStyling(props),
|
|
616
|
+
})(["flex-basis:", "px;flex-grow:1;align-self:center;min-height:0;", ";", ";"], props => props.theme.space.base * 15, props => visibleStyling(props), reactTheming.componentStyles);
|
|
617
617
|
|
|
618
618
|
const COMPONENT_ID$2 = 'dropdowns.multiselect_items_container';
|
|
619
619
|
const sizeStyles = props => {
|
|
@@ -630,32 +630,32 @@ const sizeStyles = props => {
|
|
|
630
630
|
};
|
|
631
631
|
const StyledMultiselectItemsContainer = styled__default.default.div.attrs({
|
|
632
632
|
'data-garden-id': COMPONENT_ID$2,
|
|
633
|
-
'data-garden-version': '9.
|
|
633
|
+
'data-garden-version': '9.5.0'
|
|
634
634
|
}).withConfig({
|
|
635
635
|
displayName: "StyledMultiselectItemsContainer",
|
|
636
636
|
componentId: "sc-1dxwjyz-0"
|
|
637
|
-
})(["display:inline-flex;flex-grow:1;flex-wrap:wrap;min-width:0;", ";", ";"], props => sizeStyles(props),
|
|
637
|
+
})(["display:inline-flex;flex-grow:1;flex-wrap:wrap;min-width:0;", ";", ";"], props => sizeStyles(props), reactTheming.componentStyles);
|
|
638
638
|
|
|
639
639
|
const COMPONENT_ID$1 = 'dropdowns.multiselect_item_wrapper';
|
|
640
640
|
const StyledMultiselectItemWrapper = styled__default.default.div.attrs({
|
|
641
641
|
'data-garden-id': COMPONENT_ID$1,
|
|
642
|
-
'data-garden-version': '9.
|
|
642
|
+
'data-garden-version': '9.5.0'
|
|
643
643
|
}).withConfig({
|
|
644
644
|
displayName: "StyledMultiselectItemWrapper",
|
|
645
645
|
componentId: "sc-vgr7nd-0"
|
|
646
|
-
})(["display:inline-flex;align-items:center;margin:", "px;max-width:100%;", ";"], props => props.theme.space.base / 2,
|
|
646
|
+
})(["display:inline-flex;align-items:center;margin:", "px;max-width:100%;", ";"], props => props.theme.space.base / 2, reactTheming.componentStyles);
|
|
647
647
|
|
|
648
648
|
const COMPONENT_ID = 'dropdowns.multiselect_more_anchor';
|
|
649
649
|
const StyledMultiselectMoreAnchor = styled__default.default.div.attrs({
|
|
650
650
|
'data-garden-id': COMPONENT_ID,
|
|
651
|
-
'data-garden-version': '9.
|
|
651
|
+
'data-garden-version': '9.5.0'
|
|
652
652
|
}).withConfig({
|
|
653
653
|
displayName: "StyledMultiselectMoreAnchor",
|
|
654
654
|
componentId: "sc-pkakky-0"
|
|
655
655
|
})(["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({
|
|
656
656
|
theme: props.theme,
|
|
657
657
|
variable: props.$isDisabled ? 'foreground.disabled' : 'foreground.primary'
|
|
658
|
-
}), props => !props.$isDisabled && 'underline',
|
|
658
|
+
}), props => !props.$isDisabled && 'underline', reactTheming.componentStyles);
|
|
659
659
|
|
|
660
660
|
const Trigger = _ref => {
|
|
661
661
|
let {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-dropdowns.legacy",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
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.
|
|
26
|
+
"@zendeskgarden/react-forms": "^9.5.0",
|
|
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.
|
|
41
|
+
"@zendeskgarden/react-theming": "^9.5.0",
|
|
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": "43546784a9aa985332ddcc6dd09209a11e2c03ff"
|
|
56
56
|
}
|