@zendeskgarden/react-accordions 9.12.2 → 9.12.4
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/accordion/Accordion.js +13 -14
- package/dist/esm/elements/accordion/components/Label.js +4 -4
- package/dist/esm/elements/accordion/components/Panel.js +5 -6
- package/dist/esm/elements/stepper/Stepper.js +6 -7
- package/dist/esm/elements/stepper/components/Content.js +4 -4
- package/dist/esm/elements/stepper/components/Label.js +7 -8
- package/dist/esm/elements/stepper/components/Step.js +4 -5
- package/dist/esm/elements/timeline/Timeline.js +4 -5
- package/dist/esm/elements/timeline/components/Item.js +5 -6
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-sm-stroke.svg.js +2 -2
- package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +4 -4
- package/dist/esm/styled/accordion/StyledAccordion.js +3 -3
- package/dist/esm/styled/accordion/StyledButton.js +11 -12
- 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 +9 -10
- package/dist/esm/styled/accordion/StyledRotateIcon.js +10 -11
- package/dist/esm/styled/accordion/StyledSection.js +3 -3
- package/dist/esm/styled/stepper/StyledContent.js +5 -5
- package/dist/esm/styled/stepper/StyledIcon.js +9 -10
- package/dist/esm/styled/stepper/StyledInnerContent.js +9 -12
- package/dist/esm/styled/stepper/StyledLabel.js +10 -13
- package/dist/esm/styled/stepper/StyledLabelText.js +3 -3
- package/dist/esm/styled/stepper/StyledLine.js +9 -12
- package/dist/esm/styled/stepper/StyledStep.js +9 -12
- 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 +9 -12
- package/dist/esm/styled/timeline/StyledItemIcon.js +5 -6
- package/dist/esm/styled/timeline/StyledOppositeContent.js +3 -3
- package/dist/esm/styled/timeline/StyledSeparator.js +9 -12
- package/dist/esm/styled/timeline/StyledTimeline.js +3 -3
- package/dist/index.cjs.js +126 -156
- package/package.json +6 -6
|
@@ -39,20 +39,19 @@ import { Header } from './components/Header.js';
|
|
|
39
39
|
import { Label } from './components/Label.js';
|
|
40
40
|
import { Panel } from './components/Panel.js';
|
|
41
41
|
|
|
42
|
-
const AccordionComponent = forwardRef((
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} = _ref;
|
|
42
|
+
const AccordionComponent = forwardRef(({
|
|
43
|
+
children,
|
|
44
|
+
isBare,
|
|
45
|
+
isCompact,
|
|
46
|
+
isAnimated = true,
|
|
47
|
+
isExpandable,
|
|
48
|
+
isCollapsible = true,
|
|
49
|
+
level,
|
|
50
|
+
onChange,
|
|
51
|
+
defaultExpandedSections,
|
|
52
|
+
expandedSections: controlledExpandedSections,
|
|
53
|
+
...props
|
|
54
|
+
}, ref) => {
|
|
56
55
|
const {
|
|
57
56
|
sections,
|
|
58
57
|
sectionChildren
|
|
@@ -34,7 +34,7 @@ import { useHeaderContext } from '../../../utils/useHeaderContext.js';
|
|
|
34
34
|
import '../../../utils/useTimelineContext.js';
|
|
35
35
|
import '../../../utils/useTimelineItemContext.js';
|
|
36
36
|
|
|
37
|
-
const LabelComponent = forwardRef((props, ref) => {
|
|
37
|
+
const LabelComponent$1 = forwardRef((props, ref) => {
|
|
38
38
|
const sectionValue = useSectionContext();
|
|
39
39
|
const {
|
|
40
40
|
isCompact,
|
|
@@ -54,7 +54,7 @@ const LabelComponent = forwardRef((props, ref) => {
|
|
|
54
54
|
$isCollapsible: isCollapsible
|
|
55
55
|
}, otherTriggerProps, props));
|
|
56
56
|
});
|
|
57
|
-
LabelComponent.displayName = 'Accordion.Label';
|
|
58
|
-
const Label = LabelComponent;
|
|
57
|
+
LabelComponent$1.displayName = 'Accordion.Label';
|
|
58
|
+
const Label$1 = LabelComponent$1;
|
|
59
59
|
|
|
60
|
-
export { Label };
|
|
60
|
+
export { Label$1 as Label };
|
|
@@ -34,12 +34,11 @@ import '../../../styled/timeline/StyledContent.js';
|
|
|
34
34
|
import '../../../styled/timeline/StyledOppositeContent.js';
|
|
35
35
|
import '../../../styled/timeline/StyledSeparator.js';
|
|
36
36
|
|
|
37
|
-
const PanelComponent = forwardRef((
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
} = _ref;
|
|
37
|
+
const PanelComponent = forwardRef(({
|
|
38
|
+
role,
|
|
39
|
+
children,
|
|
40
|
+
...props
|
|
41
|
+
}, ref) => {
|
|
43
42
|
const {
|
|
44
43
|
isAnimated,
|
|
45
44
|
isBare,
|
|
@@ -38,13 +38,12 @@ import { Label } from './components/Label.js';
|
|
|
38
38
|
import { Content } from './components/Content.js';
|
|
39
39
|
|
|
40
40
|
const DEFAULT_ACTIVE_INDEX = 0;
|
|
41
|
-
const StepperComponent = forwardRef((
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
} = _ref;
|
|
41
|
+
const StepperComponent = forwardRef(({
|
|
42
|
+
activeIndex = DEFAULT_ACTIVE_INDEX,
|
|
43
|
+
isHorizontal,
|
|
44
|
+
children,
|
|
45
|
+
...props
|
|
46
|
+
}, ref) => {
|
|
48
47
|
const stepperContext = useMemo(() => ({
|
|
49
48
|
activeIndex,
|
|
50
49
|
isHorizontal: isHorizontal || false
|
|
@@ -34,7 +34,7 @@ import '../../../utils/useHeaderContext.js';
|
|
|
34
34
|
import '../../../utils/useTimelineContext.js';
|
|
35
35
|
import '../../../utils/useTimelineItemContext.js';
|
|
36
36
|
|
|
37
|
-
const ContentComponent = forwardRef((props, ref) => {
|
|
37
|
+
const ContentComponent$1 = forwardRef((props, ref) => {
|
|
38
38
|
const {
|
|
39
39
|
isActive,
|
|
40
40
|
isHorizontal
|
|
@@ -47,7 +47,7 @@ const ContentComponent = forwardRef((props, ref) => {
|
|
|
47
47
|
inert: isActive ? undefined : ''
|
|
48
48
|
}, props.children)) : null;
|
|
49
49
|
});
|
|
50
|
-
ContentComponent.displayName = 'Stepper.Content';
|
|
51
|
-
const Content = ContentComponent;
|
|
50
|
+
ContentComponent$1.displayName = 'Stepper.Content';
|
|
51
|
+
const Content$1 = ContentComponent$1;
|
|
52
52
|
|
|
53
|
-
export { Content };
|
|
53
|
+
export { Content$1 as Content };
|
|
@@ -36,14 +36,13 @@ import '../../../utils/useHeaderContext.js';
|
|
|
36
36
|
import '../../../utils/useTimelineContext.js';
|
|
37
37
|
import '../../../utils/useTimelineItemContext.js';
|
|
38
38
|
|
|
39
|
-
const LabelComponent = forwardRef((
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} = _ref;
|
|
39
|
+
const LabelComponent = forwardRef(({
|
|
40
|
+
icon,
|
|
41
|
+
iconProps,
|
|
42
|
+
isHidden,
|
|
43
|
+
children,
|
|
44
|
+
...other
|
|
45
|
+
}, ref) => {
|
|
47
46
|
const {
|
|
48
47
|
currentStepIndex,
|
|
49
48
|
isActive,
|
|
@@ -34,11 +34,10 @@ import '../../../utils/useHeaderContext.js';
|
|
|
34
34
|
import '../../../utils/useTimelineContext.js';
|
|
35
35
|
import '../../../utils/useTimelineItemContext.js';
|
|
36
36
|
|
|
37
|
-
const StepComponent = forwardRef((
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
} = _ref;
|
|
37
|
+
const StepComponent = forwardRef(({
|
|
38
|
+
children,
|
|
39
|
+
...props
|
|
40
|
+
}, ref) => {
|
|
42
41
|
const {
|
|
43
42
|
isHorizontal
|
|
44
43
|
} = useStepperContext();
|
|
@@ -37,11 +37,10 @@ import { Item } from './components/Item.js';
|
|
|
37
37
|
import { Content } from './components/Content.js';
|
|
38
38
|
import { OppositeContent } from './components/OppositeContent.js';
|
|
39
39
|
|
|
40
|
-
const TimelineComponent = forwardRef((
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
} = _ref;
|
|
40
|
+
const TimelineComponent = forwardRef(({
|
|
41
|
+
isAlternate,
|
|
42
|
+
...props
|
|
43
|
+
}, ref) => {
|
|
45
44
|
const value = useMemo(() => ({
|
|
46
45
|
isAlternate
|
|
47
46
|
}), [isAlternate]);
|
|
@@ -35,12 +35,11 @@ import '../../../utils/useHeaderContext.js';
|
|
|
35
35
|
import { useTimelineContext } from '../../../utils/useTimelineContext.js';
|
|
36
36
|
import { TimelineItemContext } from '../../../utils/useTimelineItemContext.js';
|
|
37
37
|
|
|
38
|
-
const ItemComponent = forwardRef((
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
} = _ref;
|
|
38
|
+
const ItemComponent = forwardRef(({
|
|
39
|
+
icon,
|
|
40
|
+
surfaceColor,
|
|
41
|
+
...props
|
|
42
|
+
}, ref) => {
|
|
44
43
|
const value = useMemo(() => ({
|
|
45
44
|
icon,
|
|
46
45
|
surfaceColor
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
9
|
var _path;
|
|
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); }
|
|
10
|
+
function _extends$1() { return _extends$1 = 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$1.apply(null, arguments); }
|
|
11
11
|
var SvgCheckSmStroke = function SvgCheckSmStroke(props) {
|
|
12
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: 16,
|
|
15
15
|
height: 16,
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
|
|
9
|
-
var _path;
|
|
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); }
|
|
9
|
+
var _path$1;
|
|
10
|
+
function _extends$2() { return _extends$2 = 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$2.apply(null, arguments); }
|
|
11
11
|
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
12
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
12
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
13
13
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14
14
|
width: 16,
|
|
15
15
|
height: 16,
|
|
16
16
|
focusable: "false",
|
|
17
17
|
viewBox: "0 0 16 16",
|
|
18
18
|
"aria-hidden": "true"
|
|
19
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
19
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
20
20
|
fill: "currentColor",
|
|
21
21
|
d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
|
|
22
22
|
})));
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'accordions.accordion';
|
|
10
|
+
const COMPONENT_ID$c = 'accordions.accordion';
|
|
11
11
|
const StyledAccordion = styled.div.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$c,
|
|
13
|
+
'data-garden-version': '9.12.4'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledAccordion",
|
|
16
16
|
componentId: "sc-niv9ic-0"
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { getLineHeight, componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'accordions.button';
|
|
11
|
-
const colorStyles =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
10
|
+
const COMPONENT_ID$9 = 'accordions.button';
|
|
11
|
+
const colorStyles$2 = ({
|
|
12
|
+
$isCollapsible,
|
|
13
|
+
$isExpanded,
|
|
14
|
+
$isHovered,
|
|
15
|
+
theme
|
|
16
|
+
}) => {
|
|
18
17
|
const showColor = $isCollapsible || !$isExpanded;
|
|
19
18
|
const color = getColor({
|
|
20
19
|
theme,
|
|
@@ -23,11 +22,11 @@ const colorStyles = _ref => {
|
|
|
23
22
|
return css(["color:", ";&:hover{cursor:", ";color:", ";}"], color, showColor && 'pointer', showColor && color);
|
|
24
23
|
};
|
|
25
24
|
const StyledButton = styled.button.attrs({
|
|
26
|
-
'data-garden-id': COMPONENT_ID,
|
|
27
|
-
'data-garden-version': '9.12.
|
|
25
|
+
'data-garden-id': COMPONENT_ID$9,
|
|
26
|
+
'data-garden-version': '9.12.4'
|
|
28
27
|
}).withConfig({
|
|
29
28
|
displayName: "StyledButton",
|
|
30
29
|
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', componentStyles);
|
|
30
|
+
})(["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$2, props => (props.$isCollapsible || !props.$isExpanded) && 'pointer', componentStyles);
|
|
32
31
|
|
|
33
|
-
export { COMPONENT_ID, StyledButton };
|
|
32
|
+
export { COMPONENT_ID$9 as COMPONENT_ID, StyledButton };
|
|
@@ -8,10 +8,10 @@ import styled from 'styled-components';
|
|
|
8
8
|
import { focusStyles, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledButton } from './StyledButton.js';
|
|
10
10
|
|
|
11
|
-
const COMPONENT_ID = 'accordions.header';
|
|
11
|
+
const COMPONENT_ID$8 = 'accordions.header';
|
|
12
12
|
const StyledHeader = styled.div.attrs({
|
|
13
|
-
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.12.
|
|
13
|
+
'data-garden-id': COMPONENT_ID$8,
|
|
14
|
+
'data-garden-version': '9.12.4'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledHeader",
|
|
17
17
|
componentId: "sc-2c6rbr-0"
|
|
@@ -8,10 +8,10 @@ import styled from 'styled-components';
|
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledPanel } from './StyledPanel.js';
|
|
10
10
|
|
|
11
|
-
const COMPONENT_ID = 'accordions.step_inner_panel';
|
|
11
|
+
const COMPONENT_ID$7 = 'accordions.step_inner_panel';
|
|
12
12
|
const StyledInnerPanel = styled.div.attrs({
|
|
13
|
-
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.12.
|
|
13
|
+
'data-garden-id': COMPONENT_ID$7,
|
|
14
|
+
'data-garden-version': '9.12.4'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledInnerPanel",
|
|
17
17
|
componentId: "sc-8nbueg-0"
|
|
@@ -5,14 +5,13 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
|
-
import { componentStyles,
|
|
8
|
+
import { componentStyles, getLineHeight, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'accordions.panel';
|
|
11
|
-
const colorStyles =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} = _ref;
|
|
10
|
+
const COMPONENT_ID$b = 'accordions.panel';
|
|
11
|
+
const colorStyles$3 = ({
|
|
12
|
+
theme,
|
|
13
|
+
$isBare
|
|
14
|
+
}) => {
|
|
16
15
|
return css(["border-bottom-color:", ";"], $isBare ? 'transparent' : getColor({
|
|
17
16
|
theme,
|
|
18
17
|
variable: 'border.default'
|
|
@@ -42,12 +41,12 @@ const sizeStyles = props => {
|
|
|
42
41
|
return css(["grid-template-rows:", "fr;border-bottom:", ";padding:", "px ", "px ", "px;line-height:", ";font-size:", ";"], $isExpanded ? 1 : 0, theme.borders.sm, paddingTop, paddingHorizontal, paddingBottom, getLineHeight(base * 5, theme.fontSizes.md), theme.fontSizes.md);
|
|
43
42
|
};
|
|
44
43
|
const StyledPanel = styled.section.attrs(props => ({
|
|
45
|
-
'data-garden-id': COMPONENT_ID,
|
|
46
|
-
'data-garden-version': '9.12.
|
|
44
|
+
'data-garden-id': COMPONENT_ID$b,
|
|
45
|
+
'data-garden-version': '9.12.4',
|
|
47
46
|
$isAnimated: props.$isAnimated ?? true
|
|
48
47
|
})).withConfig({
|
|
49
48
|
displayName: "StyledPanel",
|
|
50
49
|
componentId: "sc-1piryze-0"
|
|
51
|
-
})(["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);
|
|
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$3, componentStyles);
|
|
52
51
|
|
|
53
52
|
export { StyledPanel };
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { StyledBaseIcon, componentStyles, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'accordions.rotate_icon';
|
|
11
|
-
const colorStyles =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} = _ref;
|
|
10
|
+
const COMPONENT_ID$6 = 'accordions.rotate_icon';
|
|
11
|
+
const colorStyles$1 = ({
|
|
12
|
+
$isCollapsible,
|
|
13
|
+
$isHovered,
|
|
14
|
+
$isRotated,
|
|
15
|
+
theme
|
|
16
|
+
}) => {
|
|
18
17
|
const showColor = $isCollapsible || !$isRotated;
|
|
19
18
|
const color = getColor({
|
|
20
19
|
theme,
|
|
@@ -23,11 +22,11 @@ const colorStyles = _ref => {
|
|
|
23
22
|
return css(["color:", ";&:hover{color:", ";}"], color, showColor && color);
|
|
24
23
|
};
|
|
25
24
|
const StyledRotateIcon = styled(StyledBaseIcon).attrs({
|
|
26
|
-
'data-garden-id': COMPONENT_ID,
|
|
27
|
-
'data-garden-version': '9.12.
|
|
25
|
+
'data-garden-id': COMPONENT_ID$6,
|
|
26
|
+
'data-garden-version': '9.12.4'
|
|
28
27
|
}).withConfig({
|
|
29
28
|
displayName: "StyledRotateIcon",
|
|
30
29
|
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, componentStyles);
|
|
30
|
+
})(["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, componentStyles);
|
|
32
31
|
|
|
33
32
|
export { StyledRotateIcon };
|
|
@@ -8,10 +8,10 @@ import styled from 'styled-components';
|
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
import { StyledPanel } from './StyledPanel.js';
|
|
10
10
|
|
|
11
|
-
const COMPONENT_ID = 'accordions.section';
|
|
11
|
+
const COMPONENT_ID$a = 'accordions.section';
|
|
12
12
|
const StyledSection = styled.div.attrs({
|
|
13
|
-
'data-garden-id': COMPONENT_ID,
|
|
14
|
-
'data-garden-version': '9.12.
|
|
13
|
+
'data-garden-id': COMPONENT_ID$a,
|
|
14
|
+
'data-garden-version': '9.12.4'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledSection",
|
|
17
17
|
componentId: "sc-v2t9bd-0"
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'accordions.step_content';
|
|
11
|
-
const sizeStyles = props => {
|
|
10
|
+
const COMPONENT_ID$k = 'accordions.step_content';
|
|
11
|
+
const sizeStyles$2 = props => {
|
|
12
12
|
const {
|
|
13
13
|
rtl,
|
|
14
14
|
space
|
|
@@ -22,11 +22,11 @@ const sizeStyles = props => {
|
|
|
22
22
|
return css(["margin:", "px ", "px ", "px ", "px;padding:0 ", "px ", "px ", "px;min-width:", "px;height:auto;"], marginVertical, marginRight, marginVertical, marginLeft, paddingRight, paddingBottom, paddingLeft, space.base * 30);
|
|
23
23
|
};
|
|
24
24
|
const StyledContent = styled.div.attrs({
|
|
25
|
-
'data-garden-id': COMPONENT_ID,
|
|
26
|
-
'data-garden-version': '9.12.
|
|
25
|
+
'data-garden-id': COMPONENT_ID$k,
|
|
26
|
+
'data-garden-version': '9.12.4'
|
|
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, componentStyles);
|
|
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$2, componentStyles);
|
|
31
31
|
|
|
32
32
|
export { StyledContent };
|
|
@@ -7,21 +7,20 @@
|
|
|
7
7
|
import styled, { css } from 'styled-components';
|
|
8
8
|
import { componentStyles, getLineHeight, getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'accordions.step_icon';
|
|
10
|
+
const COMPONENT_ID$f = 'accordions.step_icon';
|
|
11
11
|
const StyledIconFlexContainer = styled.div.withConfig({
|
|
12
12
|
displayName: "StyledIcon__StyledIconFlexContainer",
|
|
13
13
|
componentId: "sc-v20nz9-0"
|
|
14
14
|
})(["display:flex;flex-basis:100%;justify-content:center;width:100%;"]);
|
|
15
|
-
const sizeStyles = props => {
|
|
15
|
+
const sizeStyles$1 = props => {
|
|
16
16
|
const size = `${props.theme.space.base * 6}px`;
|
|
17
17
|
const fontSize = props.theme.fontSizes.sm;
|
|
18
18
|
return css(["margin-bottom:", ";margin-", ":", ";width:", ";min-width:", ";height:", ";min-height:", ";line-height:", ";font-size:", ";"], props.$isHorizontal && `${props.theme.space.base * 2}px`, props.theme.rtl ? 'left' : 'right', !props.$isHorizontal && `${props.theme.space.base * 3}px`, size, size, size, size, getLineHeight(size, fontSize), fontSize);
|
|
19
19
|
};
|
|
20
|
-
const colorStyles =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} = _ref;
|
|
20
|
+
const colorStyles$4 = ({
|
|
21
|
+
$isActive,
|
|
22
|
+
theme
|
|
23
|
+
}) => {
|
|
25
24
|
const foregroundColor = getColor({
|
|
26
25
|
theme,
|
|
27
26
|
variable: $isActive ? 'foreground.onEmphasis' : 'foreground.default'
|
|
@@ -45,11 +44,11 @@ const colorStyles = _ref => {
|
|
|
45
44
|
return css(["background:", ";color:", ";"], backgroundColor, foregroundColor);
|
|
46
45
|
};
|
|
47
46
|
const StyledIcon = styled.div.attrs({
|
|
48
|
-
'data-garden-id': COMPONENT_ID,
|
|
49
|
-
'data-garden-version': '9.12.
|
|
47
|
+
'data-garden-id': COMPONENT_ID$f,
|
|
48
|
+
'data-garden-version': '9.12.4'
|
|
50
49
|
}).withConfig({
|
|
51
50
|
displayName: "StyledIcon",
|
|
52
51
|
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, componentStyles);
|
|
52
|
+
})(["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, componentStyles);
|
|
54
53
|
|
|
55
54
|
export { StyledIcon, StyledIconFlexContainer };
|
|
@@ -7,21 +7,18 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { getLineHeight, getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'accordions.step_inner_content';
|
|
10
|
+
const COMPONENT_ID$h = 'accordions.step_inner_content';
|
|
11
11
|
const StyledInnerContent = styled.div.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$h,
|
|
13
|
+
'data-garden-version': '9.12.4'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledInnerContent",
|
|
16
16
|
componentId: "sc-1xs9fh7-0"
|
|
17
|
-
})(["overflow:hidden;line-height:", ";color:", ";font-size:", ";", ";"], props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
variable: 'foreground.default'
|
|
24
|
-
});
|
|
25
|
-
}, props => props.theme.fontSizes.md, componentStyles);
|
|
17
|
+
})(["overflow:hidden;line-height:", ";color:", ";font-size:", ";", ";"], props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), ({
|
|
18
|
+
theme
|
|
19
|
+
}) => getColor({
|
|
20
|
+
theme,
|
|
21
|
+
variable: 'foreground.default'
|
|
22
|
+
}), props => props.theme.fontSizes.md, componentStyles);
|
|
26
23
|
|
|
27
24
|
export { StyledInnerContent };
|
|
@@ -7,22 +7,19 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { getLineHeight, getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'accordions.step_label';
|
|
10
|
+
const COMPONENT_ID$e = 'accordions.step_label';
|
|
11
11
|
const StyledLabel = styled.div.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$e,
|
|
13
|
+
'data-garden-version': '9.12.4'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledLabel",
|
|
16
16
|
componentId: "sc-1o82llj-0"
|
|
17
|
-
})(["display:", ";align-items:", ";transition:color 0.25s ease-in-out,font-weight 0.25s ease-in-out;text-align:", ";line-height:", ";color:", ";font-size:", ";font-weight:", ";", ";"], props => !props.$isHorizontal && 'flex', props => !props.$isHorizontal && 'center', props => props.$isHorizontal && 'center', props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md),
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
variable: $isActive ? 'foreground.default' : 'foreground.subtle'
|
|
25
|
-
});
|
|
26
|
-
}, props => props.theme.fontSizes.md, props => props.$isActive && 600, componentStyles);
|
|
17
|
+
})(["display:", ";align-items:", ";transition:color 0.25s ease-in-out,font-weight 0.25s ease-in-out;text-align:", ";line-height:", ";color:", ";font-size:", ";font-weight:", ";", ";"], props => !props.$isHorizontal && 'flex', props => !props.$isHorizontal && 'center', props => props.$isHorizontal && 'center', props => getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), ({
|
|
18
|
+
$isActive,
|
|
19
|
+
theme
|
|
20
|
+
}) => getColor({
|
|
21
|
+
theme,
|
|
22
|
+
variable: $isActive ? 'foreground.default' : 'foreground.subtle'
|
|
23
|
+
}), props => props.theme.fontSizes.md, props => props.$isActive && 600, componentStyles);
|
|
27
24
|
|
|
28
25
|
export { StyledLabel };
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
|
|
9
|
-
const COMPONENT_ID = 'accordions.step_label_text';
|
|
9
|
+
const COMPONENT_ID$d = 'accordions.step_label_text';
|
|
10
10
|
const StyledLabelText = styled.div.attrs({
|
|
11
|
-
'data-garden-id': COMPONENT_ID,
|
|
12
|
-
'data-garden-version': '9.12.
|
|
11
|
+
'data-garden-id': COMPONENT_ID$d,
|
|
12
|
+
'data-garden-version': '9.12.4'
|
|
13
13
|
}).withConfig({
|
|
14
14
|
displayName: "StyledLabelText",
|
|
15
15
|
componentId: "sc-111m5zo-0"
|
|
@@ -7,21 +7,18 @@
|
|
|
7
7
|
import styled from 'styled-components';
|
|
8
8
|
import { getColor } from '@zendeskgarden/react-theming';
|
|
9
9
|
|
|
10
|
-
const COMPONENT_ID = 'accordions.step_line';
|
|
10
|
+
const COMPONENT_ID$j = 'accordions.step_line';
|
|
11
11
|
const StyledLine = styled.div.attrs({
|
|
12
|
-
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.12.
|
|
12
|
+
'data-garden-id': COMPONENT_ID$j,
|
|
13
|
+
'data-garden-version': '9.12.4'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledLine",
|
|
16
16
|
componentId: "sc-1gkpjbr-0"
|
|
17
|
-
})(["display:block;position:absolute;top:", "px;right:", ";left:", ";flex:1;border-top:", ";border-color:", ";"], props => props.theme.space.base * 3, props => `calc(50% + ${props.theme.space.base * 6}px)`, props => `calc(-50% + ${props.theme.space.base * 6}px)`, props => props.theme.borders.sm,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
variable: 'border.default'
|
|
24
|
-
});
|
|
25
|
-
});
|
|
17
|
+
})(["display:block;position:absolute;top:", "px;right:", ";left:", ";flex:1;border-top:", ";border-color:", ";"], props => props.theme.space.base * 3, props => `calc(50% + ${props.theme.space.base * 6}px)`, props => `calc(-50% + ${props.theme.space.base * 6}px)`, props => props.theme.borders.sm, ({
|
|
18
|
+
theme
|
|
19
|
+
}) => getColor({
|
|
20
|
+
theme,
|
|
21
|
+
variable: 'border.default'
|
|
22
|
+
}));
|
|
26
23
|
|
|
27
24
|
export { StyledLine };
|
|
@@ -9,21 +9,18 @@ import { getColor, componentStyles } from '@zendeskgarden/react-theming';
|
|
|
9
9
|
import { StyledContent } from './StyledContent.js';
|
|
10
10
|
import { StyledLine } from './StyledLine.js';
|
|
11
11
|
|
|
12
|
-
const COMPONENT_ID = 'accordions.step';
|
|
12
|
+
const COMPONENT_ID$i = 'accordions.step';
|
|
13
13
|
const StyledStep = styled.li.attrs({
|
|
14
|
-
'data-garden-id': COMPONENT_ID,
|
|
15
|
-
'data-garden-version': '9.12.
|
|
14
|
+
'data-garden-id': COMPONENT_ID$i,
|
|
15
|
+
'data-garden-version': '9.12.4'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledStep",
|
|
18
18
|
componentId: "sc-12fiwtz-0"
|
|
19
|
-
})(["position:", ";flex:", ";min-width:", ";&:last-of-type ", "{display:", ";}&:first-of-type ", "{display:", ";}&:not(:last-of-type) ", "{border-", ":", ";border-color:", ";}", ";"], props => props.$isHorizontal && 'relative', props => props.$isHorizontal && '1', props => props.$isHorizontal && `${props.theme.space.base * 15}px`, StyledLine, props => props.theme.rtl && 'none', StyledLine, props => !props.theme.rtl && 'none', StyledContent, props => props.theme.rtl ? 'right' : 'left', props => props.theme.borders.sm,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
variable: 'border.default'
|
|
26
|
-
});
|
|
27
|
-
}, componentStyles);
|
|
19
|
+
})(["position:", ";flex:", ";min-width:", ";&:last-of-type ", "{display:", ";}&:first-of-type ", "{display:", ";}&:not(:last-of-type) ", "{border-", ":", ";border-color:", ";}", ";"], props => props.$isHorizontal && 'relative', props => props.$isHorizontal && '1', props => props.$isHorizontal && `${props.theme.space.base * 15}px`, StyledLine, props => props.theme.rtl && 'none', StyledLine, props => !props.theme.rtl && 'none', StyledContent, props => props.theme.rtl ? 'right' : 'left', props => props.theme.borders.sm, ({
|
|
20
|
+
theme
|
|
21
|
+
}) => getColor({
|
|
22
|
+
theme,
|
|
23
|
+
variable: 'border.default'
|
|
24
|
+
}), componentStyles);
|
|
28
25
|
|
|
29
26
|
export { StyledStep };
|