@zendeskgarden/react-accordions 9.4.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/accordion/StyledAccordion.js +3 -3
- package/dist/esm/styled/accordion/StyledButton.js +3 -3
- package/dist/esm/styled/accordion/StyledHeader.js +3 -3
- package/dist/esm/styled/accordion/StyledInnerPanel.js +3 -3
- package/dist/esm/styled/accordion/StyledPanel.js +3 -3
- package/dist/esm/styled/accordion/StyledRotateIcon.js +3 -3
- package/dist/esm/styled/accordion/StyledSection.js +3 -3
- package/dist/esm/styled/stepper/StyledContent.js +3 -3
- package/dist/esm/styled/stepper/StyledIcon.js +3 -3
- package/dist/esm/styled/stepper/StyledInnerContent.js +3 -3
- package/dist/esm/styled/stepper/StyledLabel.js +3 -3
- package/dist/esm/styled/stepper/StyledLabelText.js +1 -1
- package/dist/esm/styled/stepper/StyledLine.js +1 -1
- package/dist/esm/styled/stepper/StyledStep.js +3 -3
- package/dist/esm/styled/stepper/StyledStepper.js +3 -3
- package/dist/esm/styled/timeline/StyledContent.js +3 -3
- package/dist/esm/styled/timeline/StyledItem.js +3 -3
- package/dist/esm/styled/timeline/StyledItemIcon.js +3 -3
- package/dist/esm/styled/timeline/StyledOppositeContent.js +3 -3
- package/dist/esm/styled/timeline/StyledSeparator.js +3 -3
- package/dist/esm/styled/timeline/StyledTimeline.js +3 -3
- package/dist/index.cjs.js +40 -40
- package/package.json +4 -4
|
@@ -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 = 'accordions.accordion';
|
|
11
11
|
const StyledAccordion = 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: "StyledAccordion",
|
|
16
16
|
componentId: "sc-niv9ic-0"
|
|
17
|
-
})(["", ";"],
|
|
17
|
+
})(["", ";"], componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledAccordion };
|
|
@@ -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 { getLineHeight,
|
|
8
|
+
import { getLineHeight, componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'accordions.button';
|
|
11
11
|
const colorStyles = _ref => {
|
|
@@ -24,10 +24,10 @@ const colorStyles = _ref => {
|
|
|
24
24
|
};
|
|
25
25
|
const StyledButton = styled.button.attrs({
|
|
26
26
|
'data-garden-id': COMPONENT_ID,
|
|
27
|
-
'data-garden-version': '9.
|
|
27
|
+
'data-garden-version': '9.5.0'
|
|
28
28
|
}).withConfig({
|
|
29
29
|
displayName: "StyledButton",
|
|
30
30
|
componentId: "sc-xj3hy7-0"
|
|
31
|
-
})(["transition:color 0.1s ease-in-out;outline:none;border:none;background:transparent;padding:", ";width:100%;text-align:", ";line-height:", ";font-family:inherit;font-size:", ";font-weight:", ";", " &::-moz-focus-inner{border:0;}&:hover{cursor:", ";}", ";"], props => props.$isCompact ? `${props.theme.space.base * 2}px ${props.theme.space.base * 3}px` : `${props.theme.space.base * 5}px`, props => props.theme.rtl ? 'right' : 'left', props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.fontSizes.md, props => props.theme.fontWeights.semibold, colorStyles, props => (props.$isCollapsible || !props.$isExpanded) && 'pointer',
|
|
31
|
+
})(["transition:color 0.1s ease-in-out;outline:none;border:none;background:transparent;padding:", ";width:100%;text-align:", ";line-height:", ";font-family:inherit;font-size:", ";font-weight:", ";", " &::-moz-focus-inner{border:0;}&:hover{cursor:", ";}", ";"], props => props.$isCompact ? `${props.theme.space.base * 2}px ${props.theme.space.base * 3}px` : `${props.theme.space.base * 5}px`, props => props.theme.rtl ? 'right' : 'left', props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.fontSizes.md, props => props.theme.fontWeights.semibold, colorStyles, props => (props.$isCollapsible || !props.$isExpanded) && 'pointer', componentStyles);
|
|
32
32
|
|
|
33
33
|
export { COMPONENT_ID, StyledButton };
|
|
@@ -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 { focusStyles,
|
|
8
|
+
import { focusStyles, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledButton } from './StyledButton.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'accordions.header';
|
|
12
12
|
const StyledHeader = styled.div.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: "StyledHeader",
|
|
17
17
|
componentId: "sc-2c6rbr-0"
|
|
@@ -19,6 +19,6 @@ const StyledHeader = styled.div.attrs({
|
|
|
19
19
|
theme: props.theme,
|
|
20
20
|
inset: true,
|
|
21
21
|
selector: `&:has(${StyledButton}:focus-visible)`
|
|
22
|
-
}),
|
|
22
|
+
}), componentStyles);
|
|
23
23
|
|
|
24
24
|
export { StyledHeader };
|
|
@@ -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 { StyledPanel } from './StyledPanel.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'accordions.step_inner_panel';
|
|
12
12
|
const StyledInnerPanel = styled.div.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: "StyledInnerPanel",
|
|
17
17
|
componentId: "sc-8nbueg-0"
|
|
18
|
-
})(["overflow:hidden;line-height:inherit;font-size:inherit;", "[aria-hidden='true'] > &{transition:", ";visibility:hidden;}", "[aria-hidden='false'] > &{visibility:visible;}", ";"], StyledPanel, props => props.$isAnimated && 'visibility 0s 0.25s', StyledPanel,
|
|
18
|
+
})(["overflow:hidden;line-height:inherit;font-size:inherit;", "[aria-hidden='true'] > &{transition:", ";visibility:hidden;}", "[aria-hidden='false'] > &{visibility:visible;}", ";"], StyledPanel, props => props.$isAnimated && 'visibility 0s 0.25s', StyledPanel, componentStyles);
|
|
19
19
|
|
|
20
20
|
export { StyledInnerPanel };
|
|
@@ -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, DEFAULT_THEME, getColor, getLineHeight } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'accordions.panel';
|
|
11
11
|
const colorStyles = _ref => {
|
|
@@ -43,11 +43,11 @@ const sizeStyles = props => {
|
|
|
43
43
|
};
|
|
44
44
|
const StyledPanel = styled.section.attrs({
|
|
45
45
|
'data-garden-id': COMPONENT_ID,
|
|
46
|
-
'data-garden-version': '9.
|
|
46
|
+
'data-garden-version': '9.5.0'
|
|
47
47
|
}).withConfig({
|
|
48
48
|
displayName: "StyledPanel",
|
|
49
49
|
componentId: "sc-1piryze-0"
|
|
50
|
-
})(["display:grid;transition:", ";overflow:hidden;", " ", " ", ";"], props => props.$isAnimated && 'padding 0.25s ease-in-out, grid-template-rows 0.25s ease-in-out', sizeStyles, colorStyles,
|
|
50
|
+
})(["display:grid;transition:", ";overflow:hidden;", " ", " ", ";"], props => props.$isAnimated && 'padding 0.25s ease-in-out, grid-template-rows 0.25s ease-in-out', sizeStyles, colorStyles, componentStyles);
|
|
51
51
|
StyledPanel.defaultProps = {
|
|
52
52
|
$isAnimated: true,
|
|
53
53
|
theme: DEFAULT_THEME
|
|
@@ -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 { StyledBaseIcon,
|
|
8
|
+
import { StyledBaseIcon, componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'accordions.rotate_icon';
|
|
11
11
|
const colorStyles = _ref => {
|
|
@@ -24,10 +24,10 @@ const colorStyles = _ref => {
|
|
|
24
24
|
};
|
|
25
25
|
const StyledRotateIcon = styled(StyledBaseIcon).attrs({
|
|
26
26
|
'data-garden-id': COMPONENT_ID,
|
|
27
|
-
'data-garden-version': '9.
|
|
27
|
+
'data-garden-version': '9.5.0'
|
|
28
28
|
}).withConfig({
|
|
29
29
|
displayName: "StyledRotateIcon",
|
|
30
30
|
componentId: "sc-hp435q-0"
|
|
31
|
-
})(["transform:", ";transition:transform 0.25s ease-in-out,color 0.1s ease-in-out;box-sizing:content-box;padding:", ";width:", ";min-width:", ";height:", ";vertical-align:middle;", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, props => props.$isCompact ? `${props.theme.space.base * 1.5}px ${props.theme.space.base * 3}px` : `${props.theme.space.base * 5}px`, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, colorStyles,
|
|
31
|
+
})(["transform:", ";transition:transform 0.25s ease-in-out,color 0.1s ease-in-out;box-sizing:content-box;padding:", ";width:", ";min-width:", ";height:", ";vertical-align:middle;", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, props => props.$isCompact ? `${props.theme.space.base * 1.5}px ${props.theme.space.base * 3}px` : `${props.theme.space.base * 5}px`, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, colorStyles, componentStyles);
|
|
32
32
|
|
|
33
33
|
export { StyledRotateIcon };
|
|
@@ -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 { StyledPanel } from './StyledPanel.js';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'accordions.section';
|
|
12
12
|
const StyledSection = styled.div.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: "StyledSection",
|
|
17
17
|
componentId: "sc-v2t9bd-0"
|
|
18
|
-
})(["&:last-child ", "{border:none;}", ";"], StyledPanel,
|
|
18
|
+
})(["&:last-child ", "{border:none;}", ";"], StyledPanel, componentStyles);
|
|
19
19
|
|
|
20
20
|
export { StyledSection };
|
|
@@ -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 = 'accordions.step_content';
|
|
11
11
|
const sizeStyles = props => {
|
|
@@ -23,10 +23,10 @@ const sizeStyles = props => {
|
|
|
23
23
|
};
|
|
24
24
|
const StyledContent = styled.div.attrs({
|
|
25
25
|
'data-garden-id': COMPONENT_ID,
|
|
26
|
-
'data-garden-version': '9.
|
|
26
|
+
'data-garden-version': '9.5.0'
|
|
27
27
|
}).withConfig({
|
|
28
28
|
displayName: "StyledContent",
|
|
29
29
|
componentId: "sc-mazvvo-0"
|
|
30
|
-
})(["display:grid;grid-template-rows:", "fr;transition:grid-template-rows 0.25s ease-in-out;word-break:break-word;", " ", ";"], props => props.$isActive ? 1 : 0, sizeStyles,
|
|
30
|
+
})(["display:grid;grid-template-rows:", "fr;transition:grid-template-rows 0.25s ease-in-out;word-break:break-word;", " ", ";"], props => props.$isActive ? 1 : 0, sizeStyles, componentStyles);
|
|
31
31
|
|
|
32
32
|
export { StyledContent };
|
|
@@ -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, getLineHeight, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'accordions.step_icon';
|
|
11
11
|
const StyledIconFlexContainer = styled.div.withConfig({
|
|
@@ -46,10 +46,10 @@ const colorStyles = _ref => {
|
|
|
46
46
|
};
|
|
47
47
|
const StyledIcon = styled.div.attrs({
|
|
48
48
|
'data-garden-id': COMPONENT_ID,
|
|
49
|
-
'data-garden-version': '9.
|
|
49
|
+
'data-garden-version': '9.5.0'
|
|
50
50
|
}).withConfig({
|
|
51
51
|
displayName: "StyledIcon",
|
|
52
52
|
componentId: "sc-v20nz9-1"
|
|
53
|
-
})(["display:flex;align-items:center;justify-content:center;transition:background 0.25s ease-in-out,color 0.25s ease-in-out;border-radius:100%;", " ", " ", ";"], sizeStyles, colorStyles,
|
|
53
|
+
})(["display:flex;align-items:center;justify-content:center;transition:background 0.25s ease-in-out,color 0.25s ease-in-out;border-radius:100%;", " ", " ", ";"], sizeStyles, colorStyles, componentStyles);
|
|
54
54
|
|
|
55
55
|
export { StyledIcon, StyledIconFlexContainer };
|
|
@@ -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 { getLineHeight, getColor,
|
|
8
|
+
import { getLineHeight, getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'accordions.step_inner_content';
|
|
11
11
|
const StyledInnerContent = 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: "StyledInnerContent",
|
|
16
16
|
componentId: "sc-1xs9fh7-0"
|
|
@@ -22,6 +22,6 @@ const StyledInnerContent = styled.div.attrs({
|
|
|
22
22
|
theme,
|
|
23
23
|
variable: 'foreground.default'
|
|
24
24
|
});
|
|
25
|
-
}, props => props.theme.fontSizes.md,
|
|
25
|
+
}, props => props.theme.fontSizes.md, componentStyles);
|
|
26
26
|
|
|
27
27
|
export { StyledInnerContent };
|
|
@@ -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 { getLineHeight, getColor,
|
|
8
|
+
import { getLineHeight, getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
10
|
const COMPONENT_ID = 'accordions.step_label';
|
|
11
11
|
const StyledLabel = 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: "StyledLabel",
|
|
16
16
|
componentId: "sc-1o82llj-0"
|
|
@@ -23,6 +23,6 @@ const StyledLabel = styled.div.attrs({
|
|
|
23
23
|
theme,
|
|
24
24
|
variable: $isActive ? 'foreground.default' : 'foreground.subtle'
|
|
25
25
|
});
|
|
26
|
-
}, props => props.theme.fontSizes.md, props => props.$isActive && 600,
|
|
26
|
+
}, props => props.theme.fontSizes.md, props => props.$isActive && 600, componentStyles);
|
|
27
27
|
|
|
28
28
|
export { StyledLabel };
|
|
@@ -9,7 +9,7 @@ import styled from 'styled-components';
|
|
|
9
9
|
const COMPONENT_ID = 'accordions.step_label_text';
|
|
10
10
|
const StyledLabelText = styled.div.attrs({
|
|
11
11
|
'data-garden-id': COMPONENT_ID,
|
|
12
|
-
'data-garden-version': '9.
|
|
12
|
+
'data-garden-version': '9.5.0'
|
|
13
13
|
}).withConfig({
|
|
14
14
|
displayName: "StyledLabelText",
|
|
15
15
|
componentId: "sc-111m5zo-0"
|
|
@@ -10,7 +10,7 @@ import { getColor } from '@zendeskgarden/react-theming';
|
|
|
10
10
|
const COMPONENT_ID = 'accordions.step_line';
|
|
11
11
|
const StyledLine = 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: "StyledLine",
|
|
16
16
|
componentId: "sc-1gkpjbr-0"
|
|
@@ -5,14 +5,14 @@
|
|
|
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 { StyledContent } from './StyledContent.js';
|
|
10
10
|
import { StyledLine } from './StyledLine.js';
|
|
11
11
|
|
|
12
12
|
const COMPONENT_ID = 'accordions.step';
|
|
13
13
|
const StyledStep = styled.li.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: "StyledStep",
|
|
18
18
|
componentId: "sc-12fiwtz-0"
|
|
@@ -24,6 +24,6 @@ const StyledStep = styled.li.attrs({
|
|
|
24
24
|
theme,
|
|
25
25
|
variable: 'border.default'
|
|
26
26
|
});
|
|
27
|
-
},
|
|
27
|
+
}, componentStyles);
|
|
28
28
|
|
|
29
29
|
export { StyledStep };
|
|
@@ -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 = 'accordions.stepper';
|
|
11
11
|
const StyledStepper = styled.ol.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: "StyledStepper",
|
|
16
16
|
componentId: "sc-dsxw0f-0"
|
|
17
|
-
})(["display:", ";margin:0;padding:0;list-style:none;", ";"], props => props.$isHorizontal && 'flex',
|
|
17
|
+
})(["display:", ";margin:0;padding:0;list-style:none;", ";"], props => props.$isHorizontal && 'flex', componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledStepper };
|
|
@@ -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 = 'timeline.content';
|
|
11
11
|
const StyledTimelineContent = 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: "StyledContent__StyledTimelineContent",
|
|
16
16
|
componentId: "sc-19phgu1-0"
|
|
17
|
-
})(["flex:1;padding:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 4}px`,
|
|
17
|
+
})(["flex:1;padding:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 4}px`, componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledTimelineContent };
|
|
@@ -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 { getLineHeight, getColor,
|
|
8
|
+
import { getLineHeight, getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledSeparator } from './StyledSeparator.js';
|
|
10
10
|
import { StyledTimelineContent } from './StyledContent.js';
|
|
11
11
|
import { StyledOppositeContent } from './StyledOppositeContent.js';
|
|
@@ -13,7 +13,7 @@ import { StyledOppositeContent } from './StyledOppositeContent.js';
|
|
|
13
13
|
const COMPONENT_ID = 'timeline.item';
|
|
14
14
|
const StyledTimelineItem = styled.li.attrs({
|
|
15
15
|
'data-garden-id': COMPONENT_ID,
|
|
16
|
-
'data-garden-version': '9.
|
|
16
|
+
'data-garden-version': '9.5.0'
|
|
17
17
|
}).withConfig({
|
|
18
18
|
displayName: "StyledItem__StyledTimelineItem",
|
|
19
19
|
componentId: "sc-5mcnzm-0"
|
|
@@ -25,6 +25,6 @@ const StyledTimelineItem = styled.li.attrs({
|
|
|
25
25
|
theme,
|
|
26
26
|
variable: 'foreground.default'
|
|
27
27
|
});
|
|
28
|
-
}, props => props.theme.fontSizes.md, StyledSeparator, props => !props.$hasOppositeContent && props.$isAlternate && css(["&::before{flex:1;padding:", "px;content:'';}"], props.theme.space.base * 4), props => props.$isAlternate && css(["&:nth-child(even){flex-direction:row-reverse;", "{text-align:", ";}", "{text-align:", ";}}"], StyledOppositeContent, props.theme.rtl ? 'right' : 'left', StyledTimelineContent, props.theme.rtl ? 'left' : 'right'),
|
|
28
|
+
}, props => props.theme.fontSizes.md, StyledSeparator, props => !props.$hasOppositeContent && props.$isAlternate && css(["&::before{flex:1;padding:", "px;content:'';}"], props.theme.space.base * 4), props => props.$isAlternate && css(["&:nth-child(even){flex-direction:row-reverse;", "{text-align:", ";}", "{text-align:", ";}}"], StyledOppositeContent, props.theme.rtl ? 'right' : 'left', StyledTimelineContent, props.theme.rtl ? 'left' : 'right'), componentStyles);
|
|
29
29
|
|
|
30
30
|
export { StyledTimelineItem };
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { math } from 'polished';
|
|
9
|
-
import { StyledBaseIcon,
|
|
9
|
+
import { StyledBaseIcon, componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
10
10
|
|
|
11
11
|
const COMPONENT_ID = 'timeline.icon';
|
|
12
12
|
const colorStyles = _ref => {
|
|
@@ -34,10 +34,10 @@ const colorStyles = _ref => {
|
|
|
34
34
|
};
|
|
35
35
|
const StyledItemIcon = styled(StyledBaseIcon).attrs({
|
|
36
36
|
'data-garden-id': COMPONENT_ID,
|
|
37
|
-
'data-garden-version': '9.
|
|
37
|
+
'data-garden-version': '9.5.0'
|
|
38
38
|
}).withConfig({
|
|
39
39
|
displayName: "StyledItemIcon",
|
|
40
40
|
componentId: "sc-vz2l6e-0"
|
|
41
|
-
})(["z-index:1;box-sizing:content-box;padding:", "px 0;width:", ";height:", ";", " ", ";"], props => props.theme.space.base, props => math(`${props.theme.iconSizes.sm} + 1`), props => math(`${props.theme.iconSizes.sm} + 1`), colorStyles,
|
|
41
|
+
})(["z-index:1;box-sizing:content-box;padding:", "px 0;width:", ";height:", ";", " ", ";"], props => props.theme.space.base, props => math(`${props.theme.iconSizes.sm} + 1`), props => math(`${props.theme.iconSizes.sm} + 1`), colorStyles, componentStyles);
|
|
42
42
|
|
|
43
43
|
export { StyledItemIcon };
|
|
@@ -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 = 'timeline.opposite.content';
|
|
11
11
|
const StyledOppositeContent = 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: "StyledOppositeContent",
|
|
16
16
|
componentId: "sc-jurh2k-0"
|
|
17
|
-
})(["flex:1;padding:", ";text-align:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 4}px`, props => props.theme.rtl ? 'left' : 'right',
|
|
17
|
+
})(["flex:1;padding:", ";text-align:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 4}px`, props => props.theme.rtl ? 'left' : 'right', componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledOppositeContent };
|
|
@@ -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 = 'timeline.content.separator';
|
|
11
11
|
const StyledSeparator = 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: "StyledSeparator",
|
|
16
16
|
componentId: "sc-fki51e-0"
|
|
@@ -22,6 +22,6 @@ const StyledSeparator = styled.div.attrs({
|
|
|
22
22
|
theme,
|
|
23
23
|
variable: 'border.emphasis'
|
|
24
24
|
})}`;
|
|
25
|
-
},
|
|
25
|
+
}, componentStyles);
|
|
26
26
|
|
|
27
27
|
export { StyledSeparator };
|
|
@@ -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 = 'timeline';
|
|
11
11
|
const StyledTimeline = styled.ol.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: "StyledTimeline",
|
|
16
16
|
componentId: "sc-pig5kv-0"
|
|
17
|
-
})(["margin:0;padding:0;list-style:none;", ";"],
|
|
17
|
+
})(["margin:0;padding:0;list-style:none;", ";"], componentStyles);
|
|
18
18
|
|
|
19
19
|
export { StyledTimeline };
|
package/dist/index.cjs.js
CHANGED
|
@@ -54,16 +54,16 @@ const sizeStyles$2 = props => {
|
|
|
54
54
|
};
|
|
55
55
|
const StyledContent = styled__default.default.div.attrs({
|
|
56
56
|
'data-garden-id': COMPONENT_ID$k,
|
|
57
|
-
'data-garden-version': '9.
|
|
57
|
+
'data-garden-version': '9.5.0'
|
|
58
58
|
}).withConfig({
|
|
59
59
|
displayName: "StyledContent",
|
|
60
60
|
componentId: "sc-mazvvo-0"
|
|
61
|
-
})(["display:grid;grid-template-rows:", "fr;transition:grid-template-rows 0.25s ease-in-out;word-break:break-word;", " ", ";"], props => props.$isActive ? 1 : 0, sizeStyles$2,
|
|
61
|
+
})(["display:grid;grid-template-rows:", "fr;transition:grid-template-rows 0.25s ease-in-out;word-break:break-word;", " ", ";"], props => props.$isActive ? 1 : 0, sizeStyles$2, reactTheming.componentStyles);
|
|
62
62
|
|
|
63
63
|
const COMPONENT_ID$j = 'accordions.step_line';
|
|
64
64
|
const StyledLine = styled__default.default.div.attrs({
|
|
65
65
|
'data-garden-id': COMPONENT_ID$j,
|
|
66
|
-
'data-garden-version': '9.
|
|
66
|
+
'data-garden-version': '9.5.0'
|
|
67
67
|
}).withConfig({
|
|
68
68
|
displayName: "StyledLine",
|
|
69
69
|
componentId: "sc-1gkpjbr-0"
|
|
@@ -80,7 +80,7 @@ const StyledLine = styled__default.default.div.attrs({
|
|
|
80
80
|
const COMPONENT_ID$i = 'accordions.step';
|
|
81
81
|
const StyledStep = styled__default.default.li.attrs({
|
|
82
82
|
'data-garden-id': COMPONENT_ID$i,
|
|
83
|
-
'data-garden-version': '9.
|
|
83
|
+
'data-garden-version': '9.5.0'
|
|
84
84
|
}).withConfig({
|
|
85
85
|
displayName: "StyledStep",
|
|
86
86
|
componentId: "sc-12fiwtz-0"
|
|
@@ -92,12 +92,12 @@ const StyledStep = styled__default.default.li.attrs({
|
|
|
92
92
|
theme,
|
|
93
93
|
variable: 'border.default'
|
|
94
94
|
});
|
|
95
|
-
},
|
|
95
|
+
}, reactTheming.componentStyles);
|
|
96
96
|
|
|
97
97
|
const COMPONENT_ID$h = 'accordions.step_inner_content';
|
|
98
98
|
const StyledInnerContent = styled__default.default.div.attrs({
|
|
99
99
|
'data-garden-id': COMPONENT_ID$h,
|
|
100
|
-
'data-garden-version': '9.
|
|
100
|
+
'data-garden-version': '9.5.0'
|
|
101
101
|
}).withConfig({
|
|
102
102
|
displayName: "StyledInnerContent",
|
|
103
103
|
componentId: "sc-1xs9fh7-0"
|
|
@@ -109,16 +109,16 @@ const StyledInnerContent = styled__default.default.div.attrs({
|
|
|
109
109
|
theme,
|
|
110
110
|
variable: 'foreground.default'
|
|
111
111
|
});
|
|
112
|
-
}, props => props.theme.fontSizes.md,
|
|
112
|
+
}, props => props.theme.fontSizes.md, reactTheming.componentStyles);
|
|
113
113
|
|
|
114
114
|
const COMPONENT_ID$g = 'accordions.stepper';
|
|
115
115
|
const StyledStepper = styled__default.default.ol.attrs({
|
|
116
116
|
'data-garden-id': COMPONENT_ID$g,
|
|
117
|
-
'data-garden-version': '9.
|
|
117
|
+
'data-garden-version': '9.5.0'
|
|
118
118
|
}).withConfig({
|
|
119
119
|
displayName: "StyledStepper",
|
|
120
120
|
componentId: "sc-dsxw0f-0"
|
|
121
|
-
})(["display:", ";margin:0;padding:0;list-style:none;", ";"], props => props.$isHorizontal && 'flex',
|
|
121
|
+
})(["display:", ";margin:0;padding:0;list-style:none;", ";"], props => props.$isHorizontal && 'flex', reactTheming.componentStyles);
|
|
122
122
|
|
|
123
123
|
const COMPONENT_ID$f = 'accordions.step_icon';
|
|
124
124
|
const StyledIconFlexContainer = styled__default.default.div.withConfig({
|
|
@@ -159,16 +159,16 @@ const colorStyles$4 = _ref => {
|
|
|
159
159
|
};
|
|
160
160
|
const StyledIcon = styled__default.default.div.attrs({
|
|
161
161
|
'data-garden-id': COMPONENT_ID$f,
|
|
162
|
-
'data-garden-version': '9.
|
|
162
|
+
'data-garden-version': '9.5.0'
|
|
163
163
|
}).withConfig({
|
|
164
164
|
displayName: "StyledIcon",
|
|
165
165
|
componentId: "sc-v20nz9-1"
|
|
166
|
-
})(["display:flex;align-items:center;justify-content:center;transition:background 0.25s ease-in-out,color 0.25s ease-in-out;border-radius:100%;", " ", " ", ";"], sizeStyles$1, colorStyles$4,
|
|
166
|
+
})(["display:flex;align-items:center;justify-content:center;transition:background 0.25s ease-in-out,color 0.25s ease-in-out;border-radius:100%;", " ", " ", ";"], sizeStyles$1, colorStyles$4, reactTheming.componentStyles);
|
|
167
167
|
|
|
168
168
|
const COMPONENT_ID$e = 'accordions.step_label';
|
|
169
169
|
const StyledLabel = styled__default.default.div.attrs({
|
|
170
170
|
'data-garden-id': COMPONENT_ID$e,
|
|
171
|
-
'data-garden-version': '9.
|
|
171
|
+
'data-garden-version': '9.5.0'
|
|
172
172
|
}).withConfig({
|
|
173
173
|
displayName: "StyledLabel",
|
|
174
174
|
componentId: "sc-1o82llj-0"
|
|
@@ -181,12 +181,12 @@ const StyledLabel = styled__default.default.div.attrs({
|
|
|
181
181
|
theme,
|
|
182
182
|
variable: $isActive ? 'foreground.default' : 'foreground.subtle'
|
|
183
183
|
});
|
|
184
|
-
}, props => props.theme.fontSizes.md, props => props.$isActive && 600,
|
|
184
|
+
}, props => props.theme.fontSizes.md, props => props.$isActive && 600, reactTheming.componentStyles);
|
|
185
185
|
|
|
186
186
|
const COMPONENT_ID$d = 'accordions.step_label_text';
|
|
187
187
|
const StyledLabelText = styled__default.default.div.attrs({
|
|
188
188
|
'data-garden-id': COMPONENT_ID$d,
|
|
189
|
-
'data-garden-version': '9.
|
|
189
|
+
'data-garden-version': '9.5.0'
|
|
190
190
|
}).withConfig({
|
|
191
191
|
displayName: "StyledLabelText",
|
|
192
192
|
componentId: "sc-111m5zo-0"
|
|
@@ -195,11 +195,11 @@ const StyledLabelText = styled__default.default.div.attrs({
|
|
|
195
195
|
const COMPONENT_ID$c = 'accordions.accordion';
|
|
196
196
|
const StyledAccordion = styled__default.default.div.attrs({
|
|
197
197
|
'data-garden-id': COMPONENT_ID$c,
|
|
198
|
-
'data-garden-version': '9.
|
|
198
|
+
'data-garden-version': '9.5.0'
|
|
199
199
|
}).withConfig({
|
|
200
200
|
displayName: "StyledAccordion",
|
|
201
201
|
componentId: "sc-niv9ic-0"
|
|
202
|
-
})(["", ";"],
|
|
202
|
+
})(["", ";"], reactTheming.componentStyles);
|
|
203
203
|
|
|
204
204
|
const COMPONENT_ID$b = 'accordions.panel';
|
|
205
205
|
const colorStyles$3 = _ref => {
|
|
@@ -237,11 +237,11 @@ const sizeStyles = props => {
|
|
|
237
237
|
};
|
|
238
238
|
const StyledPanel = styled__default.default.section.attrs({
|
|
239
239
|
'data-garden-id': COMPONENT_ID$b,
|
|
240
|
-
'data-garden-version': '9.
|
|
240
|
+
'data-garden-version': '9.5.0'
|
|
241
241
|
}).withConfig({
|
|
242
242
|
displayName: "StyledPanel",
|
|
243
243
|
componentId: "sc-1piryze-0"
|
|
244
|
-
})(["display:grid;transition:", ";overflow:hidden;", " ", " ", ";"], props => props.$isAnimated && 'padding 0.25s ease-in-out, grid-template-rows 0.25s ease-in-out', sizeStyles, colorStyles$3,
|
|
244
|
+
})(["display:grid;transition:", ";overflow:hidden;", " ", " ", ";"], props => props.$isAnimated && 'padding 0.25s ease-in-out, grid-template-rows 0.25s ease-in-out', sizeStyles, colorStyles$3, reactTheming.componentStyles);
|
|
245
245
|
StyledPanel.defaultProps = {
|
|
246
246
|
$isAnimated: true,
|
|
247
247
|
theme: reactTheming.DEFAULT_THEME
|
|
@@ -250,11 +250,11 @@ StyledPanel.defaultProps = {
|
|
|
250
250
|
const COMPONENT_ID$a = 'accordions.section';
|
|
251
251
|
const StyledSection = styled__default.default.div.attrs({
|
|
252
252
|
'data-garden-id': COMPONENT_ID$a,
|
|
253
|
-
'data-garden-version': '9.
|
|
253
|
+
'data-garden-version': '9.5.0'
|
|
254
254
|
}).withConfig({
|
|
255
255
|
displayName: "StyledSection",
|
|
256
256
|
componentId: "sc-v2t9bd-0"
|
|
257
|
-
})(["&:last-child ", "{border:none;}", ";"], StyledPanel,
|
|
257
|
+
})(["&:last-child ", "{border:none;}", ";"], StyledPanel, reactTheming.componentStyles);
|
|
258
258
|
|
|
259
259
|
const COMPONENT_ID$9 = 'accordions.button';
|
|
260
260
|
const colorStyles$2 = _ref => {
|
|
@@ -273,16 +273,16 @@ const colorStyles$2 = _ref => {
|
|
|
273
273
|
};
|
|
274
274
|
const StyledButton = styled__default.default.button.attrs({
|
|
275
275
|
'data-garden-id': COMPONENT_ID$9,
|
|
276
|
-
'data-garden-version': '9.
|
|
276
|
+
'data-garden-version': '9.5.0'
|
|
277
277
|
}).withConfig({
|
|
278
278
|
displayName: "StyledButton",
|
|
279
279
|
componentId: "sc-xj3hy7-0"
|
|
280
|
-
})(["transition:color 0.1s ease-in-out;outline:none;border:none;background:transparent;padding:", ";width:100%;text-align:", ";line-height:", ";font-family:inherit;font-size:", ";font-weight:", ";", " &::-moz-focus-inner{border:0;}&:hover{cursor:", ";}", ";"], props => props.$isCompact ? `${props.theme.space.base * 2}px ${props.theme.space.base * 3}px` : `${props.theme.space.base * 5}px`, props => props.theme.rtl ? 'right' : 'left', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.fontSizes.md, props => props.theme.fontWeights.semibold, colorStyles$2, props => (props.$isCollapsible || !props.$isExpanded) && 'pointer',
|
|
280
|
+
})(["transition:color 0.1s ease-in-out;outline:none;border:none;background:transparent;padding:", ";width:100%;text-align:", ";line-height:", ";font-family:inherit;font-size:", ";font-weight:", ";", " &::-moz-focus-inner{border:0;}&:hover{cursor:", ";}", ";"], props => props.$isCompact ? `${props.theme.space.base * 2}px ${props.theme.space.base * 3}px` : `${props.theme.space.base * 5}px`, props => props.theme.rtl ? 'right' : 'left', props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.fontSizes.md, props => props.theme.fontWeights.semibold, colorStyles$2, props => (props.$isCollapsible || !props.$isExpanded) && 'pointer', reactTheming.componentStyles);
|
|
281
281
|
|
|
282
282
|
const COMPONENT_ID$8 = 'accordions.header';
|
|
283
283
|
const StyledHeader = styled__default.default.div.attrs({
|
|
284
284
|
'data-garden-id': COMPONENT_ID$8,
|
|
285
|
-
'data-garden-version': '9.
|
|
285
|
+
'data-garden-version': '9.5.0'
|
|
286
286
|
}).withConfig({
|
|
287
287
|
displayName: "StyledHeader",
|
|
288
288
|
componentId: "sc-2c6rbr-0"
|
|
@@ -290,16 +290,16 @@ const StyledHeader = styled__default.default.div.attrs({
|
|
|
290
290
|
theme: props.theme,
|
|
291
291
|
inset: true,
|
|
292
292
|
selector: `&:has(${StyledButton}:focus-visible)`
|
|
293
|
-
}),
|
|
293
|
+
}), reactTheming.componentStyles);
|
|
294
294
|
|
|
295
295
|
const COMPONENT_ID$7 = 'accordions.step_inner_panel';
|
|
296
296
|
const StyledInnerPanel = styled__default.default.div.attrs({
|
|
297
297
|
'data-garden-id': COMPONENT_ID$7,
|
|
298
|
-
'data-garden-version': '9.
|
|
298
|
+
'data-garden-version': '9.5.0'
|
|
299
299
|
}).withConfig({
|
|
300
300
|
displayName: "StyledInnerPanel",
|
|
301
301
|
componentId: "sc-8nbueg-0"
|
|
302
|
-
})(["overflow:hidden;line-height:inherit;font-size:inherit;", "[aria-hidden='true'] > &{transition:", ";visibility:hidden;}", "[aria-hidden='false'] > &{visibility:visible;}", ";"], StyledPanel, props => props.$isAnimated && 'visibility 0s 0.25s', StyledPanel,
|
|
302
|
+
})(["overflow:hidden;line-height:inherit;font-size:inherit;", "[aria-hidden='true'] > &{transition:", ";visibility:hidden;}", "[aria-hidden='false'] > &{visibility:visible;}", ";"], StyledPanel, props => props.$isAnimated && 'visibility 0s 0.25s', StyledPanel, reactTheming.componentStyles);
|
|
303
303
|
|
|
304
304
|
const COMPONENT_ID$6 = 'accordions.rotate_icon';
|
|
305
305
|
const colorStyles$1 = _ref => {
|
|
@@ -318,25 +318,25 @@ const colorStyles$1 = _ref => {
|
|
|
318
318
|
};
|
|
319
319
|
const StyledRotateIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
320
320
|
'data-garden-id': COMPONENT_ID$6,
|
|
321
|
-
'data-garden-version': '9.
|
|
321
|
+
'data-garden-version': '9.5.0'
|
|
322
322
|
}).withConfig({
|
|
323
323
|
displayName: "StyledRotateIcon",
|
|
324
324
|
componentId: "sc-hp435q-0"
|
|
325
|
-
})(["transform:", ";transition:transform 0.25s ease-in-out,color 0.1s ease-in-out;box-sizing:content-box;padding:", ";width:", ";min-width:", ";height:", ";vertical-align:middle;", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, props => props.$isCompact ? `${props.theme.space.base * 1.5}px ${props.theme.space.base * 3}px` : `${props.theme.space.base * 5}px`, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, colorStyles$1,
|
|
325
|
+
})(["transform:", ";transition:transform 0.25s ease-in-out,color 0.1s ease-in-out;box-sizing:content-box;padding:", ";width:", ";min-width:", ";height:", ";vertical-align:middle;", " ", ";"], props => props.$isRotated && `rotate(${props.theme.rtl ? '-' : '+'}180deg)`, props => props.$isCompact ? `${props.theme.space.base * 1.5}px ${props.theme.space.base * 3}px` : `${props.theme.space.base * 5}px`, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, props => props.theme.iconSizes.md, colorStyles$1, reactTheming.componentStyles);
|
|
326
326
|
|
|
327
327
|
const COMPONENT_ID$5 = 'timeline';
|
|
328
328
|
const StyledTimeline = styled__default.default.ol.attrs({
|
|
329
329
|
'data-garden-id': COMPONENT_ID$5,
|
|
330
|
-
'data-garden-version': '9.
|
|
330
|
+
'data-garden-version': '9.5.0'
|
|
331
331
|
}).withConfig({
|
|
332
332
|
displayName: "StyledTimeline",
|
|
333
333
|
componentId: "sc-pig5kv-0"
|
|
334
|
-
})(["margin:0;padding:0;list-style:none;", ";"],
|
|
334
|
+
})(["margin:0;padding:0;list-style:none;", ";"], reactTheming.componentStyles);
|
|
335
335
|
|
|
336
336
|
const COMPONENT_ID$4 = 'timeline.content.separator';
|
|
337
337
|
const StyledSeparator = styled__default.default.div.attrs({
|
|
338
338
|
'data-garden-id': COMPONENT_ID$4,
|
|
339
|
-
'data-garden-version': '9.
|
|
339
|
+
'data-garden-version': '9.5.0'
|
|
340
340
|
}).withConfig({
|
|
341
341
|
displayName: "StyledSeparator",
|
|
342
342
|
componentId: "sc-fki51e-0"
|
|
@@ -348,30 +348,30 @@ const StyledSeparator = styled__default.default.div.attrs({
|
|
|
348
348
|
theme,
|
|
349
349
|
variable: 'border.emphasis'
|
|
350
350
|
})}`;
|
|
351
|
-
},
|
|
351
|
+
}, reactTheming.componentStyles);
|
|
352
352
|
|
|
353
353
|
const COMPONENT_ID$3 = 'timeline.content';
|
|
354
354
|
const StyledTimelineContent = styled__default.default.div.attrs({
|
|
355
355
|
'data-garden-id': COMPONENT_ID$3,
|
|
356
|
-
'data-garden-version': '9.
|
|
356
|
+
'data-garden-version': '9.5.0'
|
|
357
357
|
}).withConfig({
|
|
358
358
|
displayName: "StyledContent__StyledTimelineContent",
|
|
359
359
|
componentId: "sc-19phgu1-0"
|
|
360
|
-
})(["flex:1;padding:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 4}px`,
|
|
360
|
+
})(["flex:1;padding:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 4}px`, reactTheming.componentStyles);
|
|
361
361
|
|
|
362
362
|
const COMPONENT_ID$2 = 'timeline.opposite.content';
|
|
363
363
|
const StyledOppositeContent = styled__default.default.div.attrs({
|
|
364
364
|
'data-garden-id': COMPONENT_ID$2,
|
|
365
|
-
'data-garden-version': '9.
|
|
365
|
+
'data-garden-version': '9.5.0'
|
|
366
366
|
}).withConfig({
|
|
367
367
|
displayName: "StyledOppositeContent",
|
|
368
368
|
componentId: "sc-jurh2k-0"
|
|
369
|
-
})(["flex:1;padding:", ";text-align:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 4}px`, props => props.theme.rtl ? 'left' : 'right',
|
|
369
|
+
})(["flex:1;padding:", ";text-align:", ";", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base * 4}px`, props => props.theme.rtl ? 'left' : 'right', reactTheming.componentStyles);
|
|
370
370
|
|
|
371
371
|
const COMPONENT_ID$1 = 'timeline.item';
|
|
372
372
|
const StyledTimelineItem = styled__default.default.li.attrs({
|
|
373
373
|
'data-garden-id': COMPONENT_ID$1,
|
|
374
|
-
'data-garden-version': '9.
|
|
374
|
+
'data-garden-version': '9.5.0'
|
|
375
375
|
}).withConfig({
|
|
376
376
|
displayName: "StyledItem__StyledTimelineItem",
|
|
377
377
|
componentId: "sc-5mcnzm-0"
|
|
@@ -383,7 +383,7 @@ const StyledTimelineItem = styled__default.default.li.attrs({
|
|
|
383
383
|
theme,
|
|
384
384
|
variable: 'foreground.default'
|
|
385
385
|
});
|
|
386
|
-
}, props => props.theme.fontSizes.md, StyledSeparator, props => !props.$hasOppositeContent && props.$isAlternate && styled.css(["&::before{flex:1;padding:", "px;content:'';}"], props.theme.space.base * 4), props => props.$isAlternate && styled.css(["&:nth-child(even){flex-direction:row-reverse;", "{text-align:", ";}", "{text-align:", ";}}"], StyledOppositeContent, props.theme.rtl ? 'right' : 'left', StyledTimelineContent, props.theme.rtl ? 'left' : 'right'),
|
|
386
|
+
}, props => props.theme.fontSizes.md, StyledSeparator, props => !props.$hasOppositeContent && props.$isAlternate && styled.css(["&::before{flex:1;padding:", "px;content:'';}"], props.theme.space.base * 4), props => props.$isAlternate && styled.css(["&:nth-child(even){flex-direction:row-reverse;", "{text-align:", ";}", "{text-align:", ";}}"], StyledOppositeContent, props.theme.rtl ? 'right' : 'left', StyledTimelineContent, props.theme.rtl ? 'left' : 'right'), reactTheming.componentStyles);
|
|
387
387
|
|
|
388
388
|
const COMPONENT_ID = 'timeline.icon';
|
|
389
389
|
const colorStyles = _ref => {
|
|
@@ -411,11 +411,11 @@ const colorStyles = _ref => {
|
|
|
411
411
|
};
|
|
412
412
|
const StyledItemIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
413
413
|
'data-garden-id': COMPONENT_ID,
|
|
414
|
-
'data-garden-version': '9.
|
|
414
|
+
'data-garden-version': '9.5.0'
|
|
415
415
|
}).withConfig({
|
|
416
416
|
displayName: "StyledItemIcon",
|
|
417
417
|
componentId: "sc-vz2l6e-0"
|
|
418
|
-
})(["z-index:1;box-sizing:content-box;padding:", "px 0;width:", ";height:", ";", " ", ";"], props => props.theme.space.base, props => polished.math(`${props.theme.iconSizes.sm} + 1`), props => polished.math(`${props.theme.iconSizes.sm} + 1`), colorStyles,
|
|
418
|
+
})(["z-index:1;box-sizing:content-box;padding:", "px 0;width:", ";height:", ";", " ", ";"], props => props.theme.space.base, props => polished.math(`${props.theme.iconSizes.sm} + 1`), props => polished.math(`${props.theme.iconSizes.sm} + 1`), colorStyles, reactTheming.componentStyles);
|
|
419
419
|
|
|
420
420
|
const StepperContext = React.createContext(undefined);
|
|
421
421
|
const useStepperContext = () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-accordions",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.5.0",
|
|
4
4
|
"description": "Components related to accordions in the Garden Design System",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"styled-components": "^5.3.1 || ^6.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@zendeskgarden/react-theming": "^9.
|
|
37
|
-
"@zendeskgarden/svg-icons": "7.
|
|
36
|
+
"@zendeskgarden/react-theming": "^9.5.0",
|
|
37
|
+
"@zendeskgarden/svg-icons": "7.5.0"
|
|
38
38
|
},
|
|
39
39
|
"keywords": [
|
|
40
40
|
"accordions",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
49
|
"zendeskgarden:src": "src/index.ts",
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "43546784a9aa985332ddcc6dd09209a11e2c03ff"
|
|
51
51
|
}
|