@zendeskgarden/react-accordions 9.0.0-next.22 → 9.0.0-next.23
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 +2 -1
- package/dist/esm/elements/stepper/components/Step.js +1 -1
- package/dist/esm/styled/accordion/StyledAccordion.js +1 -1
- package/dist/esm/styled/accordion/StyledButton.js +1 -1
- package/dist/esm/styled/accordion/StyledHeader.js +1 -1
- package/dist/esm/styled/accordion/StyledInnerPanel.js +1 -1
- package/dist/esm/styled/accordion/StyledPanel.js +1 -1
- package/dist/esm/styled/accordion/StyledRotateIcon.js +1 -1
- package/dist/esm/styled/accordion/StyledSection.js +1 -1
- package/dist/esm/styled/stepper/StyledContent.js +1 -1
- package/dist/esm/styled/stepper/StyledIcon.js +1 -1
- package/dist/esm/styled/stepper/StyledInnerContent.js +1 -1
- package/dist/esm/styled/stepper/StyledLabel.js +1 -1
- 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 +1 -1
- package/dist/esm/styled/stepper/StyledStepper.js +1 -1
- package/dist/esm/styled/timeline/StyledContent.js +1 -1
- package/dist/esm/styled/timeline/StyledItem.js +1 -1
- package/dist/esm/styled/timeline/StyledItemIcon.js +1 -1
- package/dist/esm/styled/timeline/StyledOppositeContent.js +1 -1
- package/dist/esm/styled/timeline/StyledSeparator.js +1 -1
- package/dist/esm/styled/timeline/StyledTimeline.js +1 -1
- package/dist/index.cjs.js +24 -23
- package/dist/typings/elements/accordion/Accordion.d.ts +3 -1
- package/dist/typings/elements/stepper/Stepper.d.ts +3 -1
- package/dist/typings/elements/timeline/Timeline.d.ts +3 -1
- package/dist/typings/styled/accordion/StyledRotateIcon.d.ts +0 -1
- package/dist/typings/styled/timeline/StyledItemIcon.d.ts +0 -1
- package/dist/typings/utils/useAccordionContext.d.ts +0 -1
- package/dist/typings/utils/useHeaderContext.d.ts +0 -1
- package/dist/typings/utils/useSectionContext.d.ts +0 -1
- package/dist/typings/utils/useStepContext.d.ts +0 -1
- package/dist/typings/utils/useStepperContext.d.ts +0 -1
- package/dist/typings/utils/useTimelineContext.d.ts +0 -1
- package/package.json +6 -6
|
@@ -56,7 +56,8 @@ const AccordionComponent = forwardRef((_ref, ref) => {
|
|
|
56
56
|
const {
|
|
57
57
|
sections,
|
|
58
58
|
sectionChildren
|
|
59
|
-
} = useMemo(() => Children.toArray(children).filter(isValidElement).map((child, index) =>
|
|
59
|
+
} = useMemo(() => Children.toArray(children).filter(isValidElement).map((child, index) =>
|
|
60
|
+
React__default.createElement(SectionContext.Provider, {
|
|
60
61
|
key: index,
|
|
61
62
|
value: index
|
|
62
63
|
}, child)).reduce((acc, child, index) => {
|
|
@@ -45,7 +45,7 @@ const StepComponent = forwardRef((_ref, ref) => {
|
|
|
45
45
|
return React__default.createElement(StyledStep, Object.assign({
|
|
46
46
|
ref: ref,
|
|
47
47
|
$isHorizontal: isHorizontal
|
|
48
|
-
}, props), isHorizontal && React__default.createElement(StyledLine, null), children);
|
|
48
|
+
}, props), !!isHorizontal && React__default.createElement(StyledLine, null), children);
|
|
49
49
|
});
|
|
50
50
|
StepComponent.displayName = 'Stepper.Step';
|
|
51
51
|
const Step = StepComponent;
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledAccordion",
|
|
16
16
|
componentId: "sc-niv9ic-0"
|
|
@@ -24,7 +24,7 @@ const colorStyles = _ref => {
|
|
|
24
24
|
};
|
|
25
25
|
const StyledButton = styled.button.attrs({
|
|
26
26
|
'data-garden-id': COMPONENT_ID,
|
|
27
|
-
'data-garden-version': '9.0.0-next.
|
|
27
|
+
'data-garden-version': '9.0.0-next.23'
|
|
28
28
|
}).withConfig({
|
|
29
29
|
displayName: "StyledButton",
|
|
30
30
|
componentId: "sc-xj3hy7-0"
|
|
@@ -11,7 +11,7 @@ import { StyledButton } from './StyledButton.js';
|
|
|
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.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.23'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledHeader",
|
|
17
17
|
componentId: "sc-2c6rbr-0"
|
|
@@ -11,7 +11,7 @@ import { StyledPanel } from './StyledPanel.js';
|
|
|
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.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.23'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledInnerPanel",
|
|
17
17
|
componentId: "sc-8nbueg-0"
|
|
@@ -43,7 +43,7 @@ const sizeStyles = props => {
|
|
|
43
43
|
};
|
|
44
44
|
const StyledPanel = styled.section.attrs({
|
|
45
45
|
'data-garden-id': COMPONENT_ID,
|
|
46
|
-
'data-garden-version': '9.0.0-next.
|
|
46
|
+
'data-garden-version': '9.0.0-next.23'
|
|
47
47
|
}).withConfig({
|
|
48
48
|
displayName: "StyledPanel",
|
|
49
49
|
componentId: "sc-1piryze-0"
|
|
@@ -24,7 +24,7 @@ const colorStyles = _ref => {
|
|
|
24
24
|
};
|
|
25
25
|
const StyledRotateIcon = styled(StyledBaseIcon).attrs({
|
|
26
26
|
'data-garden-id': COMPONENT_ID,
|
|
27
|
-
'data-garden-version': '9.0.0-next.
|
|
27
|
+
'data-garden-version': '9.0.0-next.23'
|
|
28
28
|
}).withConfig({
|
|
29
29
|
displayName: "StyledRotateIcon",
|
|
30
30
|
componentId: "sc-hp435q-0"
|
|
@@ -11,7 +11,7 @@ import { StyledPanel } from './StyledPanel.js';
|
|
|
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.0.0-next.
|
|
14
|
+
'data-garden-version': '9.0.0-next.23'
|
|
15
15
|
}).withConfig({
|
|
16
16
|
displayName: "StyledSection",
|
|
17
17
|
componentId: "sc-v2t9bd-0"
|
|
@@ -23,7 +23,7 @@ const sizeStyles = props => {
|
|
|
23
23
|
};
|
|
24
24
|
const StyledContent = styled.div.attrs({
|
|
25
25
|
'data-garden-id': COMPONENT_ID,
|
|
26
|
-
'data-garden-version': '9.0.0-next.
|
|
26
|
+
'data-garden-version': '9.0.0-next.23'
|
|
27
27
|
}).withConfig({
|
|
28
28
|
displayName: "StyledContent",
|
|
29
29
|
componentId: "sc-mazvvo-0"
|
|
@@ -46,7 +46,7 @@ const colorStyles = _ref => {
|
|
|
46
46
|
};
|
|
47
47
|
const StyledIcon = styled.div.attrs({
|
|
48
48
|
'data-garden-id': COMPONENT_ID,
|
|
49
|
-
'data-garden-version': '9.0.0-next.
|
|
49
|
+
'data-garden-version': '9.0.0-next.23'
|
|
50
50
|
}).withConfig({
|
|
51
51
|
displayName: "StyledIcon",
|
|
52
52
|
componentId: "sc-v20nz9-1"
|
|
@@ -10,7 +10,7 @@ import { getLineHeight, getColor, retrieveComponentStyles, DEFAULT_THEME } from
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledInnerContent",
|
|
16
16
|
componentId: "sc-1xs9fh7-0"
|
|
@@ -10,7 +10,7 @@ import { getLineHeight, getColor, retrieveComponentStyles, DEFAULT_THEME } from
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledLabel",
|
|
16
16
|
componentId: "sc-1o82llj-0"
|
|
@@ -10,7 +10,7 @@ import { DEFAULT_THEME } from '@zendeskgarden/react-theming';
|
|
|
10
10
|
const COMPONENT_ID = 'accordions.step_label_text';
|
|
11
11
|
const StyledLabelText = styled.div.attrs({
|
|
12
12
|
'data-garden-id': COMPONENT_ID,
|
|
13
|
-
'data-garden-version': '9.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledLabelText",
|
|
16
16
|
componentId: "sc-111m5zo-0"
|
|
@@ -10,7 +10,7 @@ import { getColor, DEFAULT_THEME } 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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledLine",
|
|
16
16
|
componentId: "sc-1gkpjbr-0"
|
|
@@ -12,7 +12,7 @@ import { StyledLine } from './StyledLine.js';
|
|
|
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.0.0-next.
|
|
15
|
+
'data-garden-version': '9.0.0-next.23'
|
|
16
16
|
}).withConfig({
|
|
17
17
|
displayName: "StyledStep",
|
|
18
18
|
componentId: "sc-12fiwtz-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledStepper",
|
|
16
16
|
componentId: "sc-dsxw0f-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledContent__StyledTimelineContent",
|
|
16
16
|
componentId: "sc-19phgu1-0"
|
|
@@ -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.0.0-next.
|
|
16
|
+
'data-garden-version': '9.0.0-next.23'
|
|
17
17
|
}).withConfig({
|
|
18
18
|
displayName: "StyledItem__StyledTimelineItem",
|
|
19
19
|
componentId: "sc-5mcnzm-0"
|
|
@@ -34,7 +34,7 @@ const colorStyles = _ref => {
|
|
|
34
34
|
};
|
|
35
35
|
const StyledItemIcon = styled(StyledBaseIcon).attrs({
|
|
36
36
|
'data-garden-id': COMPONENT_ID,
|
|
37
|
-
'data-garden-version': '9.0.0-next.
|
|
37
|
+
'data-garden-version': '9.0.0-next.23'
|
|
38
38
|
}).withConfig({
|
|
39
39
|
displayName: "StyledItemIcon",
|
|
40
40
|
componentId: "sc-vz2l6e-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledOppositeContent",
|
|
16
16
|
componentId: "sc-jurh2k-0"
|
|
@@ -10,7 +10,7 @@ import { getColor, retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledSeparator",
|
|
16
16
|
componentId: "sc-fki51e-0"
|
|
@@ -10,7 +10,7 @@ import { retrieveComponentStyles, DEFAULT_THEME } from '@zendeskgarden/react-the
|
|
|
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.0.0-next.
|
|
13
|
+
'data-garden-version': '9.0.0-next.23'
|
|
14
14
|
}).withConfig({
|
|
15
15
|
displayName: "StyledTimeline",
|
|
16
16
|
componentId: "sc-pig5kv-0"
|
package/dist/index.cjs.js
CHANGED
|
@@ -54,7 +54,7 @@ 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.0.0-next.
|
|
57
|
+
'data-garden-version': '9.0.0-next.23'
|
|
58
58
|
}).withConfig({
|
|
59
59
|
displayName: "StyledContent",
|
|
60
60
|
componentId: "sc-mazvvo-0"
|
|
@@ -66,7 +66,7 @@ StyledContent.defaultProps = {
|
|
|
66
66
|
const COMPONENT_ID$j = 'accordions.step_line';
|
|
67
67
|
const StyledLine = styled__default.default.div.attrs({
|
|
68
68
|
'data-garden-id': COMPONENT_ID$j,
|
|
69
|
-
'data-garden-version': '9.0.0-next.
|
|
69
|
+
'data-garden-version': '9.0.0-next.23'
|
|
70
70
|
}).withConfig({
|
|
71
71
|
displayName: "StyledLine",
|
|
72
72
|
componentId: "sc-1gkpjbr-0"
|
|
@@ -86,7 +86,7 @@ StyledLine.defaultProps = {
|
|
|
86
86
|
const COMPONENT_ID$i = 'accordions.step';
|
|
87
87
|
const StyledStep = styled__default.default.li.attrs({
|
|
88
88
|
'data-garden-id': COMPONENT_ID$i,
|
|
89
|
-
'data-garden-version': '9.0.0-next.
|
|
89
|
+
'data-garden-version': '9.0.0-next.23'
|
|
90
90
|
}).withConfig({
|
|
91
91
|
displayName: "StyledStep",
|
|
92
92
|
componentId: "sc-12fiwtz-0"
|
|
@@ -106,7 +106,7 @@ StyledStep.defaultProps = {
|
|
|
106
106
|
const COMPONENT_ID$h = 'accordions.step_inner_content';
|
|
107
107
|
const StyledInnerContent = styled__default.default.div.attrs({
|
|
108
108
|
'data-garden-id': COMPONENT_ID$h,
|
|
109
|
-
'data-garden-version': '9.0.0-next.
|
|
109
|
+
'data-garden-version': '9.0.0-next.23'
|
|
110
110
|
}).withConfig({
|
|
111
111
|
displayName: "StyledInnerContent",
|
|
112
112
|
componentId: "sc-1xs9fh7-0"
|
|
@@ -126,7 +126,7 @@ StyledInnerContent.defaultProps = {
|
|
|
126
126
|
const COMPONENT_ID$g = 'accordions.stepper';
|
|
127
127
|
const StyledStepper = styled__default.default.ol.attrs({
|
|
128
128
|
'data-garden-id': COMPONENT_ID$g,
|
|
129
|
-
'data-garden-version': '9.0.0-next.
|
|
129
|
+
'data-garden-version': '9.0.0-next.23'
|
|
130
130
|
}).withConfig({
|
|
131
131
|
displayName: "StyledStepper",
|
|
132
132
|
componentId: "sc-dsxw0f-0"
|
|
@@ -174,7 +174,7 @@ const colorStyles$4 = _ref => {
|
|
|
174
174
|
};
|
|
175
175
|
const StyledIcon = styled__default.default.div.attrs({
|
|
176
176
|
'data-garden-id': COMPONENT_ID$f,
|
|
177
|
-
'data-garden-version': '9.0.0-next.
|
|
177
|
+
'data-garden-version': '9.0.0-next.23'
|
|
178
178
|
}).withConfig({
|
|
179
179
|
displayName: "StyledIcon",
|
|
180
180
|
componentId: "sc-v20nz9-1"
|
|
@@ -189,7 +189,7 @@ StyledIcon.defaultProps = {
|
|
|
189
189
|
const COMPONENT_ID$e = 'accordions.step_label';
|
|
190
190
|
const StyledLabel = styled__default.default.div.attrs({
|
|
191
191
|
'data-garden-id': COMPONENT_ID$e,
|
|
192
|
-
'data-garden-version': '9.0.0-next.
|
|
192
|
+
'data-garden-version': '9.0.0-next.23'
|
|
193
193
|
}).withConfig({
|
|
194
194
|
displayName: "StyledLabel",
|
|
195
195
|
componentId: "sc-1o82llj-0"
|
|
@@ -210,7 +210,7 @@ StyledLabel.defaultProps = {
|
|
|
210
210
|
const COMPONENT_ID$d = 'accordions.step_label_text';
|
|
211
211
|
const StyledLabelText = styled__default.default.div.attrs({
|
|
212
212
|
'data-garden-id': COMPONENT_ID$d,
|
|
213
|
-
'data-garden-version': '9.0.0-next.
|
|
213
|
+
'data-garden-version': '9.0.0-next.23'
|
|
214
214
|
}).withConfig({
|
|
215
215
|
displayName: "StyledLabelText",
|
|
216
216
|
componentId: "sc-111m5zo-0"
|
|
@@ -222,7 +222,7 @@ StyledLabelText.defaultProps = {
|
|
|
222
222
|
const COMPONENT_ID$c = 'accordions.accordion';
|
|
223
223
|
const StyledAccordion = styled__default.default.div.attrs({
|
|
224
224
|
'data-garden-id': COMPONENT_ID$c,
|
|
225
|
-
'data-garden-version': '9.0.0-next.
|
|
225
|
+
'data-garden-version': '9.0.0-next.23'
|
|
226
226
|
}).withConfig({
|
|
227
227
|
displayName: "StyledAccordion",
|
|
228
228
|
componentId: "sc-niv9ic-0"
|
|
@@ -267,7 +267,7 @@ const sizeStyles = props => {
|
|
|
267
267
|
};
|
|
268
268
|
const StyledPanel = styled__default.default.section.attrs({
|
|
269
269
|
'data-garden-id': COMPONENT_ID$b,
|
|
270
|
-
'data-garden-version': '9.0.0-next.
|
|
270
|
+
'data-garden-version': '9.0.0-next.23'
|
|
271
271
|
}).withConfig({
|
|
272
272
|
displayName: "StyledPanel",
|
|
273
273
|
componentId: "sc-1piryze-0"
|
|
@@ -280,7 +280,7 @@ StyledPanel.defaultProps = {
|
|
|
280
280
|
const COMPONENT_ID$a = 'accordions.section';
|
|
281
281
|
const StyledSection = styled__default.default.div.attrs({
|
|
282
282
|
'data-garden-id': COMPONENT_ID$a,
|
|
283
|
-
'data-garden-version': '9.0.0-next.
|
|
283
|
+
'data-garden-version': '9.0.0-next.23'
|
|
284
284
|
}).withConfig({
|
|
285
285
|
displayName: "StyledSection",
|
|
286
286
|
componentId: "sc-v2t9bd-0"
|
|
@@ -306,7 +306,7 @@ const colorStyles$2 = _ref => {
|
|
|
306
306
|
};
|
|
307
307
|
const StyledButton = styled__default.default.button.attrs({
|
|
308
308
|
'data-garden-id': COMPONENT_ID$9,
|
|
309
|
-
'data-garden-version': '9.0.0-next.
|
|
309
|
+
'data-garden-version': '9.0.0-next.23'
|
|
310
310
|
}).withConfig({
|
|
311
311
|
displayName: "StyledButton",
|
|
312
312
|
componentId: "sc-xj3hy7-0"
|
|
@@ -318,7 +318,7 @@ StyledButton.defaultProps = {
|
|
|
318
318
|
const COMPONENT_ID$8 = 'accordions.header';
|
|
319
319
|
const StyledHeader = styled__default.default.div.attrs({
|
|
320
320
|
'data-garden-id': COMPONENT_ID$8,
|
|
321
|
-
'data-garden-version': '9.0.0-next.
|
|
321
|
+
'data-garden-version': '9.0.0-next.23'
|
|
322
322
|
}).withConfig({
|
|
323
323
|
displayName: "StyledHeader",
|
|
324
324
|
componentId: "sc-2c6rbr-0"
|
|
@@ -334,7 +334,7 @@ StyledHeader.defaultProps = {
|
|
|
334
334
|
const COMPONENT_ID$7 = 'accordions.step_inner_panel';
|
|
335
335
|
const StyledInnerPanel = styled__default.default.div.attrs({
|
|
336
336
|
'data-garden-id': COMPONENT_ID$7,
|
|
337
|
-
'data-garden-version': '9.0.0-next.
|
|
337
|
+
'data-garden-version': '9.0.0-next.23'
|
|
338
338
|
}).withConfig({
|
|
339
339
|
displayName: "StyledInnerPanel",
|
|
340
340
|
componentId: "sc-8nbueg-0"
|
|
@@ -360,7 +360,7 @@ const colorStyles$1 = _ref => {
|
|
|
360
360
|
};
|
|
361
361
|
const StyledRotateIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
362
362
|
'data-garden-id': COMPONENT_ID$6,
|
|
363
|
-
'data-garden-version': '9.0.0-next.
|
|
363
|
+
'data-garden-version': '9.0.0-next.23'
|
|
364
364
|
}).withConfig({
|
|
365
365
|
displayName: "StyledRotateIcon",
|
|
366
366
|
componentId: "sc-hp435q-0"
|
|
@@ -372,7 +372,7 @@ StyledRotateIcon.defaultProps = {
|
|
|
372
372
|
const COMPONENT_ID$5 = 'timeline';
|
|
373
373
|
const StyledTimeline = styled__default.default.ol.attrs({
|
|
374
374
|
'data-garden-id': COMPONENT_ID$5,
|
|
375
|
-
'data-garden-version': '9.0.0-next.
|
|
375
|
+
'data-garden-version': '9.0.0-next.23'
|
|
376
376
|
}).withConfig({
|
|
377
377
|
displayName: "StyledTimeline",
|
|
378
378
|
componentId: "sc-pig5kv-0"
|
|
@@ -384,7 +384,7 @@ StyledTimeline.defaultProps = {
|
|
|
384
384
|
const COMPONENT_ID$4 = 'timeline.content.separator';
|
|
385
385
|
const StyledSeparator = styled__default.default.div.attrs({
|
|
386
386
|
'data-garden-id': COMPONENT_ID$4,
|
|
387
|
-
'data-garden-version': '9.0.0-next.
|
|
387
|
+
'data-garden-version': '9.0.0-next.23'
|
|
388
388
|
}).withConfig({
|
|
389
389
|
displayName: "StyledSeparator",
|
|
390
390
|
componentId: "sc-fki51e-0"
|
|
@@ -404,7 +404,7 @@ StyledSeparator.defaultProps = {
|
|
|
404
404
|
const COMPONENT_ID$3 = 'timeline.content';
|
|
405
405
|
const StyledTimelineContent = styled__default.default.div.attrs({
|
|
406
406
|
'data-garden-id': COMPONENT_ID$3,
|
|
407
|
-
'data-garden-version': '9.0.0-next.
|
|
407
|
+
'data-garden-version': '9.0.0-next.23'
|
|
408
408
|
}).withConfig({
|
|
409
409
|
displayName: "StyledContent__StyledTimelineContent",
|
|
410
410
|
componentId: "sc-19phgu1-0"
|
|
@@ -416,7 +416,7 @@ StyledTimelineContent.defaultProps = {
|
|
|
416
416
|
const COMPONENT_ID$2 = 'timeline.opposite.content';
|
|
417
417
|
const StyledOppositeContent = styled__default.default.div.attrs({
|
|
418
418
|
'data-garden-id': COMPONENT_ID$2,
|
|
419
|
-
'data-garden-version': '9.0.0-next.
|
|
419
|
+
'data-garden-version': '9.0.0-next.23'
|
|
420
420
|
}).withConfig({
|
|
421
421
|
displayName: "StyledOppositeContent",
|
|
422
422
|
componentId: "sc-jurh2k-0"
|
|
@@ -428,7 +428,7 @@ StyledOppositeContent.defaultProps = {
|
|
|
428
428
|
const COMPONENT_ID$1 = 'timeline.item';
|
|
429
429
|
const StyledTimelineItem = styled__default.default.li.attrs({
|
|
430
430
|
'data-garden-id': COMPONENT_ID$1,
|
|
431
|
-
'data-garden-version': '9.0.0-next.
|
|
431
|
+
'data-garden-version': '9.0.0-next.23'
|
|
432
432
|
}).withConfig({
|
|
433
433
|
displayName: "StyledItem__StyledTimelineItem",
|
|
434
434
|
componentId: "sc-5mcnzm-0"
|
|
@@ -471,7 +471,7 @@ const colorStyles = _ref => {
|
|
|
471
471
|
};
|
|
472
472
|
const StyledItemIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
|
|
473
473
|
'data-garden-id': COMPONENT_ID,
|
|
474
|
-
'data-garden-version': '9.0.0-next.
|
|
474
|
+
'data-garden-version': '9.0.0-next.23'
|
|
475
475
|
}).withConfig({
|
|
476
476
|
displayName: "StyledItemIcon",
|
|
477
477
|
componentId: "sc-vz2l6e-0"
|
|
@@ -695,7 +695,8 @@ const AccordionComponent = React.forwardRef((_ref, ref) => {
|
|
|
695
695
|
const {
|
|
696
696
|
sections,
|
|
697
697
|
sectionChildren
|
|
698
|
-
} = React.useMemo(() => React.Children.toArray(children).filter(React.isValidElement).map((child, index) =>
|
|
698
|
+
} = React.useMemo(() => React.Children.toArray(children).filter(React.isValidElement).map((child, index) =>
|
|
699
|
+
React__namespace.default.createElement(SectionContext.Provider, {
|
|
699
700
|
key: index,
|
|
700
701
|
value: index
|
|
701
702
|
}, child)).reduce((acc, child, index) => {
|
|
@@ -758,7 +759,7 @@ const StepComponent = React.forwardRef((_ref, ref) => {
|
|
|
758
759
|
return React__namespace.default.createElement(StyledStep, Object.assign({
|
|
759
760
|
ref: ref,
|
|
760
761
|
$isHorizontal: isHorizontal
|
|
761
|
-
}, props), isHorizontal && React__namespace.default.createElement(StyledLine, null), children);
|
|
762
|
+
}, props), !!isHorizontal && React__namespace.default.createElement(StyledLine, null), children);
|
|
762
763
|
});
|
|
763
764
|
StepComponent.displayName = 'Stepper.Step';
|
|
764
765
|
const Step = StepComponent;
|
|
@@ -10,12 +10,14 @@ import { Section } from './components/Section';
|
|
|
10
10
|
import { Header } from './components/Header';
|
|
11
11
|
import { Label } from './components/Label';
|
|
12
12
|
import { Panel } from './components/Panel';
|
|
13
|
+
declare const AccordionComponent: React.ForwardRefExoticComponent<IAccordionProps<any> & React.RefAttributes<HTMLDivElement>>;
|
|
13
14
|
/**
|
|
14
15
|
* @extends HTMLAttributes<HTMLDivElement>
|
|
15
16
|
*/
|
|
16
|
-
export declare const Accordion:
|
|
17
|
+
export declare const Accordion: typeof AccordionComponent & {
|
|
17
18
|
Header: typeof Header;
|
|
18
19
|
Label: typeof Label;
|
|
19
20
|
Panel: typeof Panel;
|
|
20
21
|
Section: typeof Section;
|
|
21
22
|
};
|
|
23
|
+
export {};
|
|
@@ -9,11 +9,13 @@ import { IStepperProps } from '../../types';
|
|
|
9
9
|
import { Step } from './components/Step';
|
|
10
10
|
import { Label } from './components/Label';
|
|
11
11
|
import { Content } from './components/Content';
|
|
12
|
+
declare const StepperComponent: React.ForwardRefExoticComponent<IStepperProps & React.RefAttributes<HTMLOListElement>>;
|
|
12
13
|
/**
|
|
13
14
|
* @extends OlHTMLAttributes<HTMLOListElement>
|
|
14
15
|
*/
|
|
15
|
-
export declare const Stepper:
|
|
16
|
+
export declare const Stepper: typeof StepperComponent & {
|
|
16
17
|
Content: typeof Content;
|
|
17
18
|
Label: typeof Label;
|
|
18
19
|
Step: typeof Step;
|
|
19
20
|
};
|
|
21
|
+
export {};
|
|
@@ -9,11 +9,13 @@ import { ITimelineProps } from '../../types';
|
|
|
9
9
|
import { Item } from '../timeline/components/Item';
|
|
10
10
|
import { Content } from '../timeline/components/Content';
|
|
11
11
|
import { OppositeContent } from '../timeline/components/OppositeContent';
|
|
12
|
+
declare const TimelineComponent: React.ForwardRefExoticComponent<ITimelineProps & React.RefAttributes<HTMLOListElement>>;
|
|
12
13
|
/**
|
|
13
14
|
* @extends OlHTMLAttributes<HTMLOListElement>
|
|
14
15
|
*/
|
|
15
|
-
export declare const Timeline:
|
|
16
|
+
export declare const Timeline: typeof TimelineComponent & {
|
|
16
17
|
Content: typeof Content;
|
|
17
18
|
Item: typeof Item;
|
|
18
19
|
OppositeContent: typeof OppositeContent;
|
|
19
20
|
};
|
|
21
|
+
export {};
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import { DefaultTheme } from 'styled-components';
|
|
9
8
|
interface IStyledRotateIcon {
|
|
10
9
|
$isCompact?: boolean;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import { DefaultTheme } from 'styled-components';
|
|
9
8
|
interface IStyledItemIcon {
|
|
10
9
|
$surfaceColor?: string;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
* Use of this source code is governed under the Apache License, Version 2.0
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
|
-
/// <reference types="react" />
|
|
8
7
|
import { IUseAccordionReturnValue } from '@zendeskgarden/container-accordion';
|
|
9
8
|
import { IAccordionProps } from '../types';
|
|
10
9
|
export interface IAccordionContext<Value> extends Omit<IUseAccordionReturnValue<Value>, 'disabledSections'>, Pick<IAccordionProps<Value>, 'level' | 'isCompact' | 'isAnimated' | 'isBare' | 'isCollapsible'> {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/react-accordions",
|
|
3
|
-
"version": "9.0.0-next.
|
|
3
|
+
"version": "9.0.0-next.23",
|
|
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>",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"@zendeskgarden/react-theming": ">=9.0.0-next",
|
|
31
|
-
"react": "
|
|
32
|
-
"react-dom": "
|
|
31
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
32
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
33
33
|
"styled-components": "^5.3.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@zendeskgarden/react-theming": "^9.0.0-next.
|
|
37
|
-
"@zendeskgarden/svg-icons": "7.
|
|
36
|
+
"@zendeskgarden/react-theming": "^9.0.0-next.23",
|
|
37
|
+
"@zendeskgarden/svg-icons": "7.2.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": "5e7d2ed69a1615e09406a3f9285359346bb90cc7"
|
|
51
51
|
}
|