@zendeskgarden/react-dropdowns.legacy 9.0.0-next.8 → 9.0.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/elements/Autocomplete/Autocomplete.js +1 -1
- package/dist/esm/elements/Menu/Items/Item.js +2 -2
- package/dist/esm/elements/Menu/Menu.js +2 -2
- package/dist/esm/elements/Multiselect/Multiselect.js +1 -1
- package/dist/esm/elements/Select/Select.js +1 -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/styled/items/StyledAddItem.js +6 -6
- package/dist/esm/styled/items/StyledItem.js +19 -12
- package/dist/esm/styled/items/StyledItemIcon.js +6 -6
- package/dist/esm/styled/items/StyledItemMeta.js +6 -6
- package/dist/esm/styled/items/StyledNextIcon.js +6 -6
- package/dist/esm/styled/items/StyledNextItem.js +2 -5
- package/dist/esm/styled/items/StyledPreviousIcon.js +6 -6
- package/dist/esm/styled/items/StyledPreviousItem.js +2 -5
- package/dist/esm/styled/items/header/StyledHeaderIcon.js +6 -6
- package/dist/esm/styled/items/header/StyledHeaderItem.js +2 -5
- package/dist/esm/styled/items/media/StyledMediaBody.js +2 -5
- package/dist/esm/styled/items/media/StyledMediaFigure.js +2 -5
- package/dist/esm/styled/items/media/StyledMediaItem.js +2 -5
- package/dist/esm/styled/menu/StyledMenu.js +4 -7
- package/dist/esm/styled/menu/StyledMenuWrapper.js +2 -5
- package/dist/esm/styled/menu/StyledSeparator.js +6 -6
- package/dist/esm/styled/multiselect/StyledMultiselectInput.js +2 -5
- package/dist/esm/styled/multiselect/StyledMultiselectItemWrapper.js +2 -5
- package/dist/esm/styled/multiselect/StyledMultiselectItemsContainer.js +2 -5
- package/dist/esm/styled/multiselect/StyledMultiselectMoreAnchor.js +6 -6
- package/dist/esm/styled/select/StyledFauxInput.js +2 -5
- package/dist/esm/styled/select/StyledInput.js +2 -5
- package/dist/esm/styled/select/StyledSelect.js +2 -5
- package/dist/index.cjs.js +86 -120
- package/dist/typings/styled/items/media/StyledMediaFigure.d.ts +9 -10
- package/dist/typings/styled/multiselect/StyledMultiselectInput.d.ts +0 -1
- package/dist/typings/styled/select/StyledFauxInput.d.ts +2 -9
- package/dist/typings/styled/select/StyledInput.d.ts +0 -1
- package/dist/typings/utils/garden-placements.d.ts +2 -1
- package/package.json +8 -9
- package/LICENSE.md +0 -176
|
@@ -104,7 +104,7 @@ const Autocomplete = forwardRef((_ref, ref) => {
|
|
|
104
104
|
mergeRefs([triggerRef, ref])(selectRef);
|
|
105
105
|
popperReferenceElementRef.current = selectRef;
|
|
106
106
|
}
|
|
107
|
-
}), start && React__default.createElement(StyledFauxInput.StartIcon, {
|
|
107
|
+
}), !!start && React__default.createElement(StyledFauxInput.StartIcon, {
|
|
108
108
|
isHovered: isHovered || isLabelHovered && !isOpen,
|
|
109
109
|
isFocused: isContainerFocused,
|
|
110
110
|
isDisabled: props.disabled
|
|
@@ -106,7 +106,7 @@ const Item = React__default.forwardRef((_ref, forwardRef) => {
|
|
|
106
106
|
disabled: disabled,
|
|
107
107
|
isDanger: isDanger,
|
|
108
108
|
isCompact: isCompact
|
|
109
|
-
}, props), isSelected && !hasIcon && React__default.createElement(StyledItemIcon, {
|
|
109
|
+
}, props), !!isSelected && !hasIcon && React__default.createElement(StyledItemIcon, {
|
|
110
110
|
isCompact: isCompact,
|
|
111
111
|
isVisible: isSelected,
|
|
112
112
|
isDisabled: disabled
|
|
@@ -126,7 +126,7 @@ const Item = React__default.forwardRef((_ref, forwardRef) => {
|
|
|
126
126
|
'aria-selected': null
|
|
127
127
|
}),
|
|
128
128
|
...props
|
|
129
|
-
}), isSelected && !hasIcon && React__default.createElement(StyledItemIcon, {
|
|
129
|
+
}), !!isSelected && !hasIcon && React__default.createElement(StyledItemIcon, {
|
|
130
130
|
isCompact: isCompact,
|
|
131
131
|
isVisible: isSelected
|
|
132
132
|
}, React__default.createElement(SvgCheckLgStroke, null)), children));
|
|
@@ -97,7 +97,7 @@ const Menu = forwardRef((props, menuRef) => {
|
|
|
97
97
|
placement: popperPlacement,
|
|
98
98
|
modifiers: popperModifiers
|
|
99
99
|
,
|
|
100
|
-
eventsEnabled: isOpen && eventsEnabled
|
|
100
|
+
eventsEnabled: !!(isOpen && eventsEnabled)
|
|
101
101
|
}, _ref => {
|
|
102
102
|
let {
|
|
103
103
|
ref,
|
|
@@ -132,7 +132,7 @@ const Menu = forwardRef((props, menuRef) => {
|
|
|
132
132
|
isCompact: isCompact,
|
|
133
133
|
maxHeight: maxHeight,
|
|
134
134
|
style: computedStyle
|
|
135
|
-
}, menuProps), (isOpen || isVisible) && children));
|
|
135
|
+
}, menuProps), !!(isOpen || isVisible) && children));
|
|
136
136
|
return appendToNode ? createPortal(menu, appendToNode) : menu;
|
|
137
137
|
}))
|
|
138
138
|
);
|
|
@@ -252,7 +252,7 @@ const Multiselect = React__default.forwardRef((_ref, ref) => {
|
|
|
252
252
|
popperReference(selectRef);
|
|
253
253
|
mergeRefs([triggerRef, popperReferenceElementRef, ref])(selectRef);
|
|
254
254
|
}
|
|
255
|
-
}), start && React__default.createElement(StyledFauxInput.StartIcon, {
|
|
255
|
+
}), !!start && React__default.createElement(StyledFauxInput.StartIcon, {
|
|
256
256
|
isHovered: isHovered || isLabelHovered && !isOpen,
|
|
257
257
|
isFocused: isContainerFocused,
|
|
258
258
|
isDisabled: props.disabled
|
|
@@ -158,7 +158,7 @@ const Select = React__default.forwardRef((_ref, ref) => {
|
|
|
158
158
|
popperReference(selectRef);
|
|
159
159
|
mergeRefs([triggerRef, ref, popperReferenceElementRef])(selectRef);
|
|
160
160
|
}
|
|
161
|
-
}), start && React__default.createElement(StyledFauxInput.StartIcon, {
|
|
161
|
+
}), !!start && React__default.createElement(StyledFauxInput.StartIcon, {
|
|
162
162
|
isHovered: isHovered || isLabelHovered && !isOpen,
|
|
163
163
|
isFocused: isContainerFocused,
|
|
164
164
|
isDisabled: props.disabled
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
10
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
10
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
11
|
var SvgCheckLgStroke = function SvgCheckLgStroke(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
10
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
10
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
11
|
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
10
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
10
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
11
|
var SvgChevronLeftStroke = function SvgChevronLeftStroke(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
10
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
10
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
11
|
var SvgChevronRightStroke = function SvgChevronRightStroke(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
10
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (
|
|
10
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
11
|
var SvgPlusStroke = function SvgPlusStroke(props) {
|
|
12
12
|
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -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 {
|
|
8
|
+
import { getColor, retrieveComponentStyles } 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
|
|
14
|
+
'data-garden-version': '9.0.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledAddItem",
|
|
17
17
|
componentId: "sc-mlto71-0"
|
|
18
|
-
})(["color:", ";", ";"], props => !props.disabled &&
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
18
|
+
})(["color:", ";", ";"], props => !props.disabled && getColor({
|
|
19
|
+
theme: props.theme,
|
|
20
|
+
variable: 'foreground.primary'
|
|
21
|
+
}), props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
22
22
|
|
|
23
23
|
export { StyledAddItem };
|
|
@@ -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,
|
|
9
|
-
import { rgba } from 'polished';
|
|
8
|
+
import { retrieveComponentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
10
9
|
|
|
11
10
|
const COMPONENT_ID = 'dropdowns.item';
|
|
12
11
|
const getItemPaddingVertical = props => {
|
|
@@ -16,29 +15,37 @@ 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
|
|
44
|
+
'data-garden-version': '9.0.0',
|
|
35
45
|
'aria-disabled': props.disabled
|
|
36
46
|
})).withConfig({
|
|
37
47
|
displayName: "StyledItem",
|
|
38
48
|
componentId: "sc-x4h8aw-0"
|
|
39
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), props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
40
|
-
StyledItem.defaultProps = {
|
|
41
|
-
theme: DEFAULT_THEME
|
|
42
|
-
};
|
|
43
50
|
|
|
44
51
|
export { StyledItem, getItemPaddingVertical };
|
|
@@ -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 } from '@zendeskgarden/react-theming';
|
|
10
10
|
import { getItemPaddingVertical } from './StyledItem.js';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.item_icon';
|
|
@@ -15,13 +15,13 @@ 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
|
|
18
|
+
'data-garden-version': '9.0.0'
|
|
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' :
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
};
|
|
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);
|
|
26
26
|
|
|
27
27
|
export { StyledItemIcon };
|
|
@@ -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 { getColor, retrieveComponentStyles } 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
|
|
13
|
+
'data-garden-version': '9.0.0'
|
|
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 =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
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));
|
|
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 {
|
|
10
|
+
import { getColor, retrieveComponentStyles } from '@zendeskgarden/react-theming';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.next_item_icon';
|
|
13
13
|
const NextIconComponent = _ref => {
|
|
@@ -16,16 +16,16 @@ 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
|
|
19
|
+
"data-garden-version": '9.0.0',
|
|
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' :
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
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));
|
|
30
30
|
|
|
31
31
|
export { StyledNextIcon };
|
|
@@ -5,20 +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 { retrieveComponentStyles
|
|
8
|
+
import { retrieveComponentStyles } 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.0.0
|
|
15
|
+
'data-garden-version': '9.0.0'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledNextItem",
|
|
18
18
|
componentId: "sc-1wrjlge-0"
|
|
19
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', props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
20
|
-
StyledNextItem.defaultProps = {
|
|
21
|
-
theme: DEFAULT_THEME
|
|
22
|
-
};
|
|
23
20
|
|
|
24
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 {
|
|
10
|
+
import { getColor, retrieveComponentStyles } from '@zendeskgarden/react-theming';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'dropdowns.previous_item_icon';
|
|
13
13
|
const PreviousIconComponent = _ref => {
|
|
@@ -16,16 +16,16 @@ 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
|
|
19
|
+
"data-garden-version": '9.0.0',
|
|
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' :
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
};
|
|
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));
|
|
30
30
|
|
|
31
31
|
export { StyledPreviousIcon };
|
|
@@ -5,19 +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 { retrieveComponentStyles
|
|
8
|
+
import { retrieveComponentStyles } 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.0.0
|
|
14
|
+
'data-garden-version': '9.0.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledPreviousItem",
|
|
17
17
|
componentId: "sc-1qv9jwe-0"
|
|
18
18
|
})(["font-weight:", ";", ";"], props => props.theme.fontWeights.semibold, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
19
|
-
StyledPreviousItem.defaultProps = {
|
|
20
|
-
theme: DEFAULT_THEME
|
|
21
|
-
};
|
|
22
19
|
|
|
23
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 {
|
|
8
|
+
import { getColor, retrieveComponentStyles } 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
|
|
13
|
+
'data-garden-version': '9.0.0'
|
|
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 =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
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));
|
|
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 { retrieveComponentStyles
|
|
8
|
+
import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledItem } from '../StyledItem.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.header_item';
|
|
@@ -17,13 +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.0.0
|
|
20
|
+
'data-garden-version': '9.0.0'
|
|
21
21
|
}).withConfig({
|
|
22
22
|
displayName: "StyledHeaderItem",
|
|
23
23
|
componentId: "sc-1xosinr-0"
|
|
24
24
|
})(["cursor:default;padding-right:", ";padding-left:", ";font-weight:", ";", ";"], props => getHorizontalPadding(props), props => getHorizontalPadding(props), props => props.theme.fontWeights.semibold, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
25
|
-
StyledHeaderItem.defaultProps = {
|
|
26
|
-
theme: DEFAULT_THEME
|
|
27
|
-
};
|
|
28
25
|
|
|
29
26
|
export { StyledHeaderItem };
|
|
@@ -5,18 +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 { retrieveComponentStyles
|
|
8
|
+
import { retrieveComponentStyles } 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.0.0
|
|
13
|
+
'data-garden-version': '9.0.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledMediaBody",
|
|
16
16
|
componentId: "sc-133sssc-0"
|
|
17
17
|
})(["display:block;overflow:hidden;padding-", ":", "px;", ";"], props => props.theme.rtl ? 'right' : 'left', props => props.theme.space.base * 2, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
18
|
-
StyledMediaBody.defaultProps = {
|
|
19
|
-
theme: DEFAULT_THEME
|
|
20
|
-
};
|
|
21
18
|
|
|
22
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 { retrieveComponentStyles
|
|
9
|
+
import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.media_figure';
|
|
12
12
|
const StyledMediaFigure = styled(
|
|
@@ -22,13 +22,10 @@ _ref => {
|
|
|
22
22
|
);
|
|
23
23
|
}).attrs({
|
|
24
24
|
'data-garden-id': COMPONENT_ID,
|
|
25
|
-
'data-garden-version': '9.0.0
|
|
25
|
+
'data-garden-version': '9.0.0'
|
|
26
26
|
}).withConfig({
|
|
27
27
|
displayName: "StyledMediaFigure",
|
|
28
28
|
componentId: "sc-16vz3xj-0"
|
|
29
29
|
})(["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, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
30
|
-
StyledMediaFigure.defaultProps = {
|
|
31
|
-
theme: DEFAULT_THEME
|
|
32
|
-
};
|
|
33
30
|
|
|
34
31
|
export { StyledMediaFigure };
|
|
@@ -5,19 +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 { retrieveComponentStyles
|
|
8
|
+
import { retrieveComponentStyles } 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.0.0
|
|
14
|
+
'data-garden-version': '9.0.0'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledMediaItem",
|
|
17
17
|
componentId: "sc-af4509-0"
|
|
18
18
|
})(["", ";"], props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
19
|
-
StyledMediaItem.defaultProps = {
|
|
20
|
-
theme: DEFAULT_THEME
|
|
21
|
-
};
|
|
22
19
|
|
|
23
20
|
export { StyledMediaItem };
|
|
@@ -5,24 +5,21 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
|
-
import { arrowStyles, retrieveComponentStyles
|
|
8
|
+
import { arrowStyles, retrieveComponentStyles } 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.0.0
|
|
14
|
+
'data-garden-version': '9.0.0',
|
|
15
15
|
className: props.isAnimated && 'is-animated'
|
|
16
16
|
})).withConfig({
|
|
17
17
|
displayName: "StyledMenu",
|
|
18
18
|
componentId: "sc-lzt5u6-0"
|
|
19
19
|
})(["position:static !important;max-height:", ";overflow-y:auto;", ";", ";"], props => props.maxHeight, props => props.hasArrow && arrowStyles(getArrowPosition(props.placement), {
|
|
20
|
-
size: `${props.theme.space.base *
|
|
21
|
-
inset: '
|
|
20
|
+
size: `${props.theme.space.base * 1.5}px`,
|
|
21
|
+
inset: '1px',
|
|
22
22
|
animationModifier: props.isAnimated ? '.is-animated' : undefined
|
|
23
23
|
}), props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
24
|
-
StyledMenu.defaultProps = {
|
|
25
|
-
theme: DEFAULT_THEME
|
|
26
|
-
};
|
|
27
24
|
|
|
28
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, retrieveComponentStyles
|
|
8
|
+
import { menuStyles, retrieveComponentStyles } 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.0.0
|
|
14
|
+
'data-garden-version': '9.0.0',
|
|
15
15
|
className: props.isAnimated && 'is-animated'
|
|
16
16
|
})).withConfig({
|
|
17
17
|
displayName: "StyledMenuWrapper",
|
|
@@ -23,8 +23,5 @@ const StyledMenuWrapper = styled.div.attrs(props => ({
|
|
|
23
23
|
zIndex: props.zIndex,
|
|
24
24
|
animationModifier: props.isAnimated ? '.is-animated' : undefined
|
|
25
25
|
}), props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
26
|
-
StyledMenuWrapper.defaultProps = {
|
|
27
|
-
theme: DEFAULT_THEME
|
|
28
|
-
};
|
|
29
26
|
|
|
30
27
|
export { StyledMenuWrapper };
|
|
@@ -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 {
|
|
8
|
+
import { getColor, retrieveComponentStyles } 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
|
|
13
|
+
'data-garden-version': '9.0.0',
|
|
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} ${
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
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));
|
|
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 { retrieveComponentStyles
|
|
8
|
+
import { retrieveComponentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledInput } from '../select/StyledInput.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'dropdowns.multiselect_input';
|
|
@@ -20,14 +20,11 @@ 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
|
|
23
|
+
'data-garden-version': '9.0.0',
|
|
24
24
|
isBare: true
|
|
25
25
|
}).withConfig({
|
|
26
26
|
displayName: "StyledMultiselectInput",
|
|
27
27
|
componentId: "sc-iiow29-0"
|
|
28
28
|
})(["flex-basis:", "px;flex-grow:1;align-self:center;min-height:0;", ";", ";"], props => props.theme.space.base * 15, props => visibleStyling(props), props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
29
|
-
StyledMultiselectInput.defaultProps = {
|
|
30
|
-
theme: DEFAULT_THEME
|
|
31
|
-
};
|
|
32
29
|
|
|
33
30
|
export { StyledMultiselectInput };
|
|
@@ -5,18 +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 { retrieveComponentStyles
|
|
8
|
+
import { retrieveComponentStyles } 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.0.0
|
|
13
|
+
'data-garden-version': '9.0.0'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledMultiselectItemWrapper",
|
|
16
16
|
componentId: "sc-vgr7nd-0"
|
|
17
17
|
})(["display:inline-flex;align-items:center;margin:", "px;max-width:100%;", ";"], props => props.theme.space.base / 2, props => retrieveComponentStyles(COMPONENT_ID, props));
|
|
18
|
-
StyledMultiselectItemWrapper.defaultProps = {
|
|
19
|
-
theme: DEFAULT_THEME
|
|
20
|
-
};
|
|
21
18
|
|
|
22
19
|
export { StyledMultiselectItemWrapper };
|