@zendeskgarden/react-accordions 9.0.0-next.2 → 9.0.0-next.21

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.
Files changed (64) hide show
  1. package/dist/esm/elements/accordion/Accordion.js +111 -0
  2. package/dist/esm/elements/accordion/components/Header.js +96 -0
  3. package/dist/esm/elements/accordion/components/Label.js +60 -0
  4. package/dist/esm/elements/accordion/components/Panel.js +70 -0
  5. package/dist/esm/elements/accordion/components/Section.js +36 -0
  6. package/dist/esm/elements/stepper/Stepper.js +77 -0
  7. package/dist/esm/elements/stepper/components/Content.js +52 -0
  8. package/dist/esm/elements/stepper/components/Label.js +76 -0
  9. package/dist/esm/elements/stepper/components/Step.js +53 -0
  10. package/dist/esm/elements/timeline/Timeline.js +60 -0
  11. package/dist/esm/elements/timeline/components/Content.js +52 -0
  12. package/dist/esm/elements/timeline/components/Item.js +70 -0
  13. package/dist/esm/elements/timeline/components/OppositeContent.js +36 -0
  14. package/dist/esm/index.js +9 -0
  15. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/12/circle-full-stroke.svg.js +28 -0
  16. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/check-sm-stroke.svg.js +29 -0
  17. package/dist/esm/node_modules/@zendeskgarden/svg-icons/src/16/chevron-down-stroke.svg.js +25 -0
  18. package/dist/esm/styled/accordion/StyledAccordion.js +22 -0
  19. package/dist/esm/styled/accordion/StyledButton.js +36 -0
  20. package/dist/esm/styled/accordion/StyledHeader.js +27 -0
  21. package/dist/esm/styled/accordion/StyledInnerPanel.js +23 -0
  22. package/dist/esm/styled/accordion/StyledPanel.js +56 -0
  23. package/dist/esm/styled/accordion/StyledRotateIcon.js +36 -0
  24. package/dist/esm/styled/accordion/StyledSection.js +23 -0
  25. package/dist/esm/styled/stepper/StyledContent.js +35 -0
  26. package/dist/esm/styled/stepper/StyledIcon.js +61 -0
  27. package/dist/esm/styled/stepper/StyledInnerContent.js +30 -0
  28. package/dist/esm/styled/stepper/StyledLabel.js +31 -0
  29. package/dist/esm/styled/stepper/StyledLabelText.js +22 -0
  30. package/dist/esm/styled/stepper/StyledLine.js +30 -0
  31. package/dist/esm/styled/stepper/StyledStep.js +32 -0
  32. package/dist/esm/styled/stepper/StyledStepper.js +22 -0
  33. package/dist/esm/styled/timeline/StyledContent.js +22 -0
  34. package/dist/esm/styled/timeline/StyledItem.js +33 -0
  35. package/dist/esm/styled/timeline/StyledItemIcon.js +38 -0
  36. package/dist/esm/styled/timeline/StyledOppositeContent.js +22 -0
  37. package/dist/esm/styled/timeline/StyledSeparator.js +30 -0
  38. package/dist/esm/styled/timeline/StyledTimeline.js +22 -0
  39. package/dist/esm/utils/useAccordionContext.js +18 -0
  40. package/dist/esm/utils/useHeaderContext.js +18 -0
  41. package/dist/esm/utils/useSectionContext.js +18 -0
  42. package/dist/esm/utils/useStepContext.js +18 -0
  43. package/dist/esm/utils/useStepperContext.js +18 -0
  44. package/dist/esm/utils/useTimelineContext.js +18 -0
  45. package/dist/esm/utils/useTimelineItemContext.js +18 -0
  46. package/dist/index.cjs.js +231 -179
  47. package/dist/typings/elements/timeline/components/Item.d.ts +0 -4
  48. package/dist/typings/index.d.ts +0 -2
  49. package/dist/typings/styled/accordion/StyledButton.d.ts +4 -4
  50. package/dist/typings/styled/accordion/StyledHeader.d.ts +2 -3
  51. package/dist/typings/styled/accordion/StyledInnerPanel.d.ts +1 -1
  52. package/dist/typings/styled/accordion/StyledPanel.d.ts +4 -4
  53. package/dist/typings/styled/accordion/StyledRotateIcon.d.ts +5 -2
  54. package/dist/typings/styled/stepper/StyledContent.d.ts +1 -1
  55. package/dist/typings/styled/stepper/StyledIcon.d.ts +2 -2
  56. package/dist/typings/styled/stepper/StyledLabel.d.ts +2 -2
  57. package/dist/typings/styled/stepper/StyledLabelText.d.ts +2 -2
  58. package/dist/typings/styled/stepper/StyledStep.d.ts +1 -1
  59. package/dist/typings/styled/stepper/StyledStepper.d.ts +1 -1
  60. package/dist/typings/styled/timeline/StyledItem.d.ts +2 -3
  61. package/dist/typings/styled/timeline/StyledItemIcon.d.ts +3 -2
  62. package/dist/typings/types/index.d.ts +4 -4
  63. package/package.json +8 -8
  64. package/dist/index.esm.js +0 -881
package/dist/index.cjs.js CHANGED
@@ -1,10 +1,9 @@
1
1
  /**
2
- * Copyright Zendesk, Inc.
3
- *
4
- * Use of this source code is governed under the Apache License, Version 2.0
5
- * found at http://www.apache.org/licenses/LICENSE-2.0.
6
- */
7
-
2
+ * Copyright Zendesk, Inc.
3
+ *
4
+ * Use of this source code is governed under the Apache License, Version 2.0
5
+ * found at http://www.apache.org/licenses/LICENSE-2.0.
6
+ */
8
7
  'use strict';
9
8
 
10
9
  var React = require('react');
@@ -39,28 +38,13 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
39
38
  var styled__default = /*#__PURE__*/_interopDefault(styled);
40
39
  var PropTypes__default = /*#__PURE__*/_interopDefault(PropTypes);
41
40
 
42
- function _extends$3() {
43
- _extends$3 = Object.assign ? Object.assign.bind() : function (target) {
44
- for (var i = 1; i < arguments.length; i++) {
45
- var source = arguments[i];
46
- for (var key in source) {
47
- if (Object.prototype.hasOwnProperty.call(source, key)) {
48
- target[key] = source[key];
49
- }
50
- }
51
- }
52
- return target;
53
- };
54
- return _extends$3.apply(this, arguments);
55
- }
56
-
57
41
  const COMPONENT_ID$k = 'accordions.step_content';
58
42
  const sizeStyles$2 = props => {
59
43
  const {
60
44
  rtl,
61
45
  space
62
46
  } = props.theme;
63
- const paddingBottom = props.isActive ? space.base * 8 : space.base * 6;
47
+ const paddingBottom = props.$isActive ? space.base * 8 : space.base * 6;
64
48
  const paddingRight = rtl ? space.base * 6 : space.base * 5;
65
49
  const paddingLeft = rtl ? space.base * 5 : space.base * 6;
66
50
  const marginRight = rtl ? space.base * 3 : '0';
@@ -70,11 +54,11 @@ const sizeStyles$2 = props => {
70
54
  };
71
55
  const StyledContent = styled__default.default.div.attrs({
72
56
  'data-garden-id': COMPONENT_ID$k,
73
- 'data-garden-version': '9.0.0-next.2'
57
+ 'data-garden-version': '9.0.0-next.21'
74
58
  }).withConfig({
75
59
  displayName: "StyledContent",
76
60
  componentId: "sc-mazvvo-0"
77
- })(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$k, props));
78
62
  StyledContent.defaultProps = {
79
63
  theme: reactTheming.DEFAULT_THEME
80
64
  };
@@ -82,11 +66,19 @@ StyledContent.defaultProps = {
82
66
  const COMPONENT_ID$j = 'accordions.step_line';
83
67
  const StyledLine = styled__default.default.div.attrs({
84
68
  'data-garden-id': COMPONENT_ID$j,
85
- 'data-garden-version': '9.0.0-next.2'
69
+ 'data-garden-version': '9.0.0-next.21'
86
70
  }).withConfig({
87
71
  displayName: "StyledLine",
88
72
  componentId: "sc-1gkpjbr-0"
89
- })(["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, props => reactTheming.getColor('neutralHue', 300, props.theme));
73
+ })(["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, _ref => {
74
+ let {
75
+ theme
76
+ } = _ref;
77
+ return reactTheming.getColor({
78
+ theme,
79
+ variable: 'border.default'
80
+ });
81
+ });
90
82
  StyledLine.defaultProps = {
91
83
  theme: reactTheming.DEFAULT_THEME
92
84
  };
@@ -94,11 +86,19 @@ StyledLine.defaultProps = {
94
86
  const COMPONENT_ID$i = 'accordions.step';
95
87
  const StyledStep = styled__default.default.li.attrs({
96
88
  'data-garden-id': COMPONENT_ID$i,
97
- 'data-garden-version': '9.0.0-next.2'
89
+ 'data-garden-version': '9.0.0-next.21'
98
90
  }).withConfig({
99
91
  displayName: "StyledStep",
100
92
  componentId: "sc-12fiwtz-0"
101
- })(["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, props => reactTheming.getColor('neutralHue', 300, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
93
+ })(["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, _ref => {
94
+ let {
95
+ theme
96
+ } = _ref;
97
+ return reactTheming.getColor({
98
+ theme,
99
+ variable: 'border.default'
100
+ });
101
+ }, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$i, props));
102
102
  StyledStep.defaultProps = {
103
103
  theme: reactTheming.DEFAULT_THEME
104
104
  };
@@ -106,11 +106,19 @@ 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.2'
109
+ 'data-garden-version': '9.0.0-next.21'
110
110
  }).withConfig({
111
111
  displayName: "StyledInnerContent",
112
112
  componentId: "sc-1xs9fh7-0"
113
- })(["overflow:hidden;line-height:", ";color:", ";font-size:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.colors.foreground, props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
113
+ })(["overflow:hidden;line-height:", ";color:", ";font-size:", ";", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), _ref => {
114
+ let {
115
+ theme
116
+ } = _ref;
117
+ return reactTheming.getColor({
118
+ theme,
119
+ variable: 'foreground.default'
120
+ });
121
+ }, props => props.theme.fontSizes.md, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$h, props));
114
122
  StyledInnerContent.defaultProps = {
115
123
  theme: reactTheming.DEFAULT_THEME
116
124
  };
@@ -118,11 +126,11 @@ StyledInnerContent.defaultProps = {
118
126
  const COMPONENT_ID$g = 'accordions.stepper';
119
127
  const StyledStepper = styled__default.default.ol.attrs({
120
128
  'data-garden-id': COMPONENT_ID$g,
121
- 'data-garden-version': '9.0.0-next.2'
129
+ 'data-garden-version': '9.0.0-next.21'
122
130
  }).withConfig({
123
131
  displayName: "StyledStepper",
124
132
  componentId: "sc-dsxw0f-0"
125
- })(["display:", ";margin:0;padding:0;list-style:none;", ";"], props => props.isHorizontal && 'flex', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
133
+ })(["display:", ";margin:0;padding:0;list-style:none;", ";"], props => props.$isHorizontal && 'flex', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$g, props));
126
134
  StyledStepper.defaultProps = {
127
135
  theme: reactTheming.DEFAULT_THEME
128
136
  };
@@ -135,18 +143,42 @@ const StyledIconFlexContainer = styled__default.default.div.withConfig({
135
143
  const sizeStyles$1 = props => {
136
144
  const size = `${props.theme.space.base * 6}px`;
137
145
  const fontSize = props.theme.fontSizes.sm;
138
- return styled.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, reactTheming.getLineHeight(size, fontSize), fontSize);
146
+ return styled.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, reactTheming.getLineHeight(size, fontSize), fontSize);
139
147
  };
140
- const colorStyles$3 = props => {
141
- return styled.css(["background:", ";color:", ";"], props.isActive ? reactTheming.getColor('neutralHue', 600, props.theme) : reactTheming.getColor('neutralHue', 200, props.theme), props.isActive ? props.theme.colors.background : props.theme.colors.foreground);
148
+ const colorStyles$4 = _ref => {
149
+ let {
150
+ $isActive,
151
+ theme
152
+ } = _ref;
153
+ const foregroundColor = reactTheming.getColor({
154
+ theme,
155
+ variable: $isActive ? 'foreground.onEmphasis' : 'foreground.default'
156
+ });
157
+ const backgroundColor = $isActive ? reactTheming.getColor({
158
+ theme,
159
+ variable: 'background.emphasis',
160
+ dark: {
161
+ offset: -300
162
+ }
163
+ }) : reactTheming.getColor({
164
+ theme,
165
+ variable: 'background.subtle',
166
+ dark: {
167
+ offset: -200
168
+ },
169
+ light: {
170
+ offset: 100
171
+ }
172
+ });
173
+ return styled.css(["background:", ";color:", ";"], backgroundColor, foregroundColor);
142
174
  };
143
175
  const StyledIcon = styled__default.default.div.attrs({
144
176
  'data-garden-id': COMPONENT_ID$f,
145
- 'data-garden-version': '9.0.0-next.2'
177
+ 'data-garden-version': '9.0.0-next.21'
146
178
  }).withConfig({
147
179
  displayName: "StyledIcon",
148
180
  componentId: "sc-v20nz9-1"
149
- })(["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$3, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
181
+ })(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$f, props));
150
182
  StyledIconFlexContainer.defaultProps = {
151
183
  theme: reactTheming.DEFAULT_THEME
152
184
  };
@@ -157,11 +189,20 @@ StyledIcon.defaultProps = {
157
189
  const COMPONENT_ID$e = 'accordions.step_label';
158
190
  const StyledLabel = styled__default.default.div.attrs({
159
191
  'data-garden-id': COMPONENT_ID$e,
160
- 'data-garden-version': '9.0.0-next.2'
192
+ 'data-garden-version': '9.0.0-next.21'
161
193
  }).withConfig({
162
194
  displayName: "StyledLabel",
163
195
  componentId: "sc-1o82llj-0"
164
- })(["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 => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.isActive ? props.theme.colors.foreground : reactTheming.getColor('neutralHue', 600, props.theme), props => props.theme.fontSizes.md, props => props.isActive && 600, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
196
+ })(["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 => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), _ref => {
197
+ let {
198
+ $isActive,
199
+ theme
200
+ } = _ref;
201
+ return reactTheming.getColor({
202
+ theme,
203
+ variable: $isActive ? 'foreground.default' : 'foreground.subtle'
204
+ });
205
+ }, props => props.theme.fontSizes.md, props => props.$isActive && 600, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$e, props));
165
206
  StyledLabel.defaultProps = {
166
207
  theme: reactTheming.DEFAULT_THEME
167
208
  };
@@ -169,11 +210,11 @@ StyledLabel.defaultProps = {
169
210
  const COMPONENT_ID$d = 'accordions.step_label_text';
170
211
  const StyledLabelText = styled__default.default.div.attrs({
171
212
  'data-garden-id': COMPONENT_ID$d,
172
- 'data-garden-version': '9.0.0-next.2'
213
+ 'data-garden-version': '9.0.0-next.21'
173
214
  }).withConfig({
174
215
  displayName: "StyledLabelText",
175
216
  componentId: "sc-111m5zo-0"
176
- })(["display:", ";padding:", ";word-wrap:", ";"], props => props.isHidden && 'none', props => props.isHorizontal && `0 ${props.theme.space.base * 3}px`, props => props.isHorizontal && 'break-word');
217
+ })(["display:", ";padding:", ";word-wrap:", ";"], props => props.$isHidden && 'none', props => props.$isHorizontal && `0 ${props.theme.space.base * 3}px`, props => props.$isHorizontal && 'break-word');
177
218
  StyledLabelText.defaultProps = {
178
219
  theme: reactTheming.DEFAULT_THEME
179
220
  };
@@ -181,7 +222,7 @@ StyledLabelText.defaultProps = {
181
222
  const COMPONENT_ID$c = 'accordions.accordion';
182
223
  const StyledAccordion = styled__default.default.div.attrs({
183
224
  'data-garden-id': COMPONENT_ID$c,
184
- 'data-garden-version': '9.0.0-next.2'
225
+ 'data-garden-version': '9.0.0-next.21'
185
226
  }).withConfig({
186
227
  displayName: "StyledAccordion",
187
228
  componentId: "sc-niv9ic-0"
@@ -191,18 +232,21 @@ StyledAccordion.defaultProps = {
191
232
  };
192
233
 
193
234
  const COMPONENT_ID$b = 'accordions.panel';
194
- const colorStyles$2 = props => {
195
- const {
235
+ const colorStyles$3 = _ref => {
236
+ let {
196
237
  theme,
197
- isBare
198
- } = props;
199
- return styled.css(["border-bottom-color:", ";"], isBare ? 'transparent' : reactTheming.getColor('neutralHue', 300, theme));
238
+ $isBare
239
+ } = _ref;
240
+ return styled.css(["border-bottom-color:", ";"], $isBare ? 'transparent' : reactTheming.getColor({
241
+ theme,
242
+ variable: 'border.default'
243
+ }));
200
244
  };
201
245
  const sizeStyles = props => {
202
246
  const {
203
247
  theme,
204
- isCompact,
205
- isExpanded
248
+ $isCompact,
249
+ $isExpanded
206
250
  } = props;
207
251
  const {
208
252
  base
@@ -210,33 +254,33 @@ const sizeStyles = props => {
210
254
  let paddingTop = base * 2;
211
255
  let paddingHorizontal = base * 5;
212
256
  let paddingBottom = base * 8;
213
- if (isCompact) {
257
+ if ($isCompact) {
214
258
  paddingTop = base * 2;
215
259
  paddingHorizontal = base * 3;
216
260
  paddingBottom = base * 4;
217
261
  }
218
- if (isExpanded === false) {
262
+ if ($isExpanded === false) {
219
263
  paddingTop = 0;
220
264
  paddingBottom = 0;
221
265
  }
222
- return styled.css(["grid-template-rows:", "fr;border-bottom:", ";padding:", "px ", "px ", "px;line-height:", ";font-size:", ";"], isExpanded ? 1 : 0, theme.borders.sm, paddingTop, paddingHorizontal, paddingBottom, reactTheming.getLineHeight(base * 5, theme.fontSizes.md), theme.fontSizes.md);
266
+ return styled.css(["grid-template-rows:", "fr;border-bottom:", ";padding:", "px ", "px ", "px;line-height:", ";font-size:", ";"], $isExpanded ? 1 : 0, theme.borders.sm, paddingTop, paddingHorizontal, paddingBottom, reactTheming.getLineHeight(base * 5, theme.fontSizes.md), theme.fontSizes.md);
223
267
  };
224
268
  const StyledPanel = styled__default.default.section.attrs({
225
269
  'data-garden-id': COMPONENT_ID$b,
226
- 'data-garden-version': '9.0.0-next.2'
270
+ 'data-garden-version': '9.0.0-next.21'
227
271
  }).withConfig({
228
272
  displayName: "StyledPanel",
229
273
  componentId: "sc-1piryze-0"
230
- })(["display:grid;transition:", ";overflow:hidden;", " ", " ", ";"], props => props.isAnimated && 'padding 0.25s ease-in-out, grid-template-rows 0.25s ease-in-out', sizeStyles, colorStyles$2, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
274
+ })(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$b, props));
231
275
  StyledPanel.defaultProps = {
232
- isAnimated: true,
276
+ $isAnimated: true,
233
277
  theme: reactTheming.DEFAULT_THEME
234
278
  };
235
279
 
236
280
  const COMPONENT_ID$a = 'accordions.section';
237
281
  const StyledSection = styled__default.default.div.attrs({
238
282
  'data-garden-id': COMPONENT_ID$a,
239
- 'data-garden-version': '9.0.0-next.2'
283
+ 'data-garden-version': '9.0.0-next.21'
240
284
  }).withConfig({
241
285
  displayName: "StyledSection",
242
286
  componentId: "sc-v2t9bd-0"
@@ -245,82 +289,82 @@ StyledSection.defaultProps = {
245
289
  theme: reactTheming.DEFAULT_THEME
246
290
  };
247
291
 
248
- const COMPONENT_ID$9 = 'accordions.header';
249
- const StyledHeader = styled__default.default.div.attrs({
250
- 'data-garden-id': COMPONENT_ID$9,
251
- 'data-garden-version': '9.0.0-next.2'
252
- }).withConfig({
253
- displayName: "StyledHeader",
254
- componentId: "sc-2c6rbr-0"
255
- })(["display:flex;align-items:center;transition:box-shadow 0.1s ease-in-out;font-size:", ";&:hover{cursor:", ";}", " ", ";"], props => props.theme.fontSizes.md, props => (props.isCollapsible || !props.isExpanded) && 'pointer', props => reactTheming.focusStyles({
256
- theme: props.theme,
257
- inset: true,
258
- condition: props.isFocused,
259
- selector: '&:focus-within'
260
- }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
261
- StyledHeader.defaultProps = {
262
- theme: reactTheming.DEFAULT_THEME
263
- };
264
-
265
- const COMPONENT_ID$8 = 'accordions.button';
266
- const colorStyles$1 = props => {
267
- const showColor = props.isCollapsible || !props.isExpanded;
268
- let color = props.theme.colors.foreground;
269
- if (showColor && props.isHovered) {
270
- color = reactTheming.getColor('primaryHue', 600, props.theme);
271
- }
292
+ const COMPONENT_ID$9 = 'accordions.button';
293
+ const colorStyles$2 = _ref => {
294
+ let {
295
+ $isCollapsible,
296
+ $isExpanded,
297
+ $isHovered,
298
+ theme
299
+ } = _ref;
300
+ const showColor = $isCollapsible || !$isExpanded;
301
+ const color = reactTheming.getColor({
302
+ theme,
303
+ variable: showColor && $isHovered ? 'foreground.primary' : 'foreground.default'
304
+ });
272
305
  return styled.css(["color:", ";&:hover{cursor:", ";color:", ";}"], color, showColor && 'pointer', showColor && color);
273
306
  };
274
307
  const StyledButton = styled__default.default.button.attrs({
275
- 'data-garden-id': COMPONENT_ID$8,
276
- 'data-garden-version': '9.0.0-next.2'
308
+ 'data-garden-id': COMPONENT_ID$9,
309
+ 'data-garden-version': '9.0.0-next.21'
277
310
  }).withConfig({
278
311
  displayName: "StyledButton",
279
312
  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$1, props => (props.isCollapsible || !props.isExpanded) && 'pointer', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
313
+ })(["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', props => reactTheming.retrieveComponentStyles(COMPONENT_ID$9, props));
281
314
  StyledButton.defaultProps = {
282
315
  theme: reactTheming.DEFAULT_THEME
283
316
  };
284
317
 
318
+ const COMPONENT_ID$8 = 'accordions.header';
319
+ const StyledHeader = styled__default.default.div.attrs({
320
+ 'data-garden-id': COMPONENT_ID$8,
321
+ 'data-garden-version': '9.0.0-next.21'
322
+ }).withConfig({
323
+ displayName: "StyledHeader",
324
+ componentId: "sc-2c6rbr-0"
325
+ })(["display:flex;align-items:center;transition:box-shadow 0.1s ease-in-out;font-size:", ";&:hover{cursor:", ";}", " ", ";"], props => props.theme.fontSizes.md, props => (props.$isCollapsible || !props.$isExpanded) && 'pointer', props => reactTheming.focusStyles({
326
+ theme: props.theme,
327
+ inset: true,
328
+ selector: `&:has(${StyledButton}:focus-visible)`
329
+ }), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$8, props));
330
+ StyledHeader.defaultProps = {
331
+ theme: reactTheming.DEFAULT_THEME
332
+ };
333
+
285
334
  const COMPONENT_ID$7 = 'accordions.step_inner_panel';
286
335
  const StyledInnerPanel = styled__default.default.div.attrs({
287
336
  'data-garden-id': COMPONENT_ID$7,
288
- 'data-garden-version': '9.0.0-next.2'
337
+ 'data-garden-version': '9.0.0-next.21'
289
338
  }).withConfig({
290
339
  displayName: "StyledInnerPanel",
291
340
  componentId: "sc-8nbueg-0"
292
- })(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
341
+ })(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$7, props));
293
342
  StyledInnerPanel.defaultProps = {
294
343
  theme: reactTheming.DEFAULT_THEME
295
344
  };
296
345
 
297
346
  const COMPONENT_ID$6 = 'accordions.rotate_icon';
298
- const colorStyles = props => {
299
- const showColor = props.isCollapsible || !props.isRotated;
300
- let color = reactTheming.getColor('neutralHue', 600, props.theme);
301
- if (showColor && props.isHovered) {
302
- color = reactTheming.getColor('primaryHue', 600, props.theme);
303
- }
304
- return styled.css(["color:", ";&:hover{color:", ";}"], color, showColor && color);
305
- };
306
- const StyledRotateIcon = styled__default.default(
307
- _ref => {
347
+ const colorStyles$1 = _ref => {
308
348
  let {
309
- children,
310
- isRotated,
311
- isHovered,
312
- isCompact,
313
- isCollapsible,
314
- ...props
349
+ $isCollapsible,
350
+ $isHovered,
351
+ $isRotated,
352
+ theme
315
353
  } = _ref;
316
- return React.cloneElement(React.Children.only(children), props);
317
- }).attrs({
354
+ const showColor = $isCollapsible || !$isRotated;
355
+ const color = reactTheming.getColor({
356
+ theme,
357
+ variable: showColor && $isHovered ? 'foreground.primary' : 'foreground.subtle'
358
+ });
359
+ return styled.css(["color:", ";&:hover{color:", ";}"], color, showColor && color);
360
+ };
361
+ const StyledRotateIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
318
362
  'data-garden-id': COMPONENT_ID$6,
319
- 'data-garden-version': '9.0.0-next.2'
363
+ 'data-garden-version': '9.0.0-next.21'
320
364
  }).withConfig({
321
365
  displayName: "StyledRotateIcon",
322
366
  componentId: "sc-hp435q-0"
323
- })(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
367
+ })(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$6, props));
324
368
  StyledRotateIcon.defaultProps = {
325
369
  theme: reactTheming.DEFAULT_THEME
326
370
  };
@@ -328,7 +372,7 @@ StyledRotateIcon.defaultProps = {
328
372
  const COMPONENT_ID$5 = 'timeline';
329
373
  const StyledTimeline = styled__default.default.ol.attrs({
330
374
  'data-garden-id': COMPONENT_ID$5,
331
- 'data-garden-version': '9.0.0-next.2'
375
+ 'data-garden-version': '9.0.0-next.21'
332
376
  }).withConfig({
333
377
  displayName: "StyledTimeline",
334
378
  componentId: "sc-pig5kv-0"
@@ -340,11 +384,19 @@ StyledTimeline.defaultProps = {
340
384
  const COMPONENT_ID$4 = 'timeline.content.separator';
341
385
  const StyledSeparator = styled__default.default.div.attrs({
342
386
  'data-garden-id': COMPONENT_ID$4,
343
- 'data-garden-version': '9.0.0-next.2'
387
+ 'data-garden-version': '9.0.0-next.21'
344
388
  }).withConfig({
345
389
  displayName: "StyledSeparator",
346
390
  componentId: "sc-fki51e-0"
347
- })(["display:flex;position:relative;justify-content:center;padding:", ";&::after{position:absolute;border-left:", ";height:100%;content:'';}", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base}px`, props => `${props.theme.borders.sm} ${reactTheming.getColor('neutralHue', 600, props.theme)}`, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
391
+ })(["display:flex;position:relative;justify-content:center;padding:", ";&::after{position:absolute;border-left:", ";height:100%;content:'';}", ";"], props => `${props.theme.space.base * 5}px ${props.theme.space.base}px`, _ref => {
392
+ let {
393
+ theme
394
+ } = _ref;
395
+ return `${theme.borders.sm} ${reactTheming.getColor({
396
+ theme,
397
+ variable: 'border.emphasis'
398
+ })}`;
399
+ }, props => reactTheming.retrieveComponentStyles(COMPONENT_ID$4, props));
348
400
  StyledSeparator.defaultProps = {
349
401
  theme: reactTheming.DEFAULT_THEME
350
402
  };
@@ -352,7 +404,7 @@ StyledSeparator.defaultProps = {
352
404
  const COMPONENT_ID$3 = 'timeline.content';
353
405
  const StyledTimelineContent = styled__default.default.div.attrs({
354
406
  'data-garden-id': COMPONENT_ID$3,
355
- 'data-garden-version': '9.0.0-next.2'
407
+ 'data-garden-version': '9.0.0-next.21'
356
408
  }).withConfig({
357
409
  displayName: "StyledContent__StyledTimelineContent",
358
410
  componentId: "sc-19phgu1-0"
@@ -364,7 +416,7 @@ StyledTimelineContent.defaultProps = {
364
416
  const COMPONENT_ID$2 = 'timeline.opposite.content';
365
417
  const StyledOppositeContent = styled__default.default.div.attrs({
366
418
  'data-garden-id': COMPONENT_ID$2,
367
- 'data-garden-version': '9.0.0-next.2'
419
+ 'data-garden-version': '9.0.0-next.21'
368
420
  }).withConfig({
369
421
  displayName: "StyledOppositeContent",
370
422
  componentId: "sc-jurh2k-0"
@@ -376,30 +428,46 @@ StyledOppositeContent.defaultProps = {
376
428
  const COMPONENT_ID$1 = 'timeline.item';
377
429
  const StyledTimelineItem = styled__default.default.li.attrs({
378
430
  'data-garden-id': COMPONENT_ID$1,
379
- 'data-garden-version': '9.0.0-next.2'
431
+ 'data-garden-version': '9.0.0-next.21'
380
432
  }).withConfig({
381
433
  displayName: "StyledItem__StyledTimelineItem",
382
434
  componentId: "sc-5mcnzm-0"
383
- })(["display:flex;position:relative;line-height:", ";color:", ";font-size:", ";&:last-of-type ", "::after{display:none;}", " ", " ", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), props => props.theme.colors.foreground, 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'), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
435
+ })(["display:flex;position:relative;line-height:", ";color:", ";font-size:", ";&:last-of-type ", "::after{display:none;}", " ", " ", ";"], props => reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md), _ref => {
436
+ let {
437
+ theme
438
+ } = _ref;
439
+ return reactTheming.getColor({
440
+ theme,
441
+ variable: 'foreground.default'
442
+ });
443
+ }, 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'), props => reactTheming.retrieveComponentStyles(COMPONENT_ID$1, props));
384
444
  StyledTimelineItem.defaultProps = {
385
445
  theme: reactTheming.DEFAULT_THEME
386
446
  };
387
447
 
388
448
  const COMPONENT_ID = 'timeline.icon';
389
- const StyledItemIcon = styled__default.default(_ref => {
449
+ const colorStyles = _ref => {
390
450
  let {
391
- surfaceColor,
392
- children,
393
- ...props
451
+ $surfaceColor,
452
+ theme
394
453
  } = _ref;
395
- return React.cloneElement(React.Children.only(children), props);
396
- }).attrs({
454
+ const foregroundColor = reactTheming.getColor({
455
+ theme,
456
+ variable: 'border.emphasis'
457
+ });
458
+ const backgroundColor = $surfaceColor || reactTheming.getColor({
459
+ theme,
460
+ variable: 'background.default'
461
+ });
462
+ return styled.css(["background-color:", ";color:", ";"], backgroundColor, foregroundColor);
463
+ };
464
+ const StyledItemIcon = styled__default.default(reactTheming.StyledBaseIcon).attrs({
397
465
  'data-garden-id': COMPONENT_ID,
398
- 'data-garden-version': '9.0.0-next.2'
466
+ 'data-garden-version': '9.0.0-next.21'
399
467
  }).withConfig({
400
468
  displayName: "StyledItemIcon",
401
469
  componentId: "sc-vz2l6e-0"
402
- })(["z-index:1;box-sizing:content-box;background-color:", ";padding:", "px 0;width:", ";height:", ";color:", ";", ";"], props => props.surfaceColor || props.theme.colors.background, props => props.theme.space.base, props => polished.math(`${props.theme.iconSizes.sm} + 1`), props => polished.math(`${props.theme.iconSizes.sm} + 1`), props => reactTheming.getColor('neutralHue', 600, props.theme), props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
470
+ })(["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, props => reactTheming.retrieveComponentStyles(COMPONENT_ID, props));
403
471
  StyledItemIcon.defaultProps = {
404
472
  theme: reactTheming.DEFAULT_THEME
405
473
  };
@@ -467,14 +535,14 @@ const useTimelineItemContext = () => {
467
535
  return context;
468
536
  };
469
537
 
470
- const SectionComponent = React.forwardRef((props, ref) => React__namespace.default.createElement(StyledSection, _extends$3({
538
+ const SectionComponent = React.forwardRef((props, ref) => React__namespace.default.createElement(StyledSection, Object.assign({
471
539
  ref: ref
472
540
  }, props)));
473
541
  SectionComponent.displayName = 'Accordion.Section';
474
542
  const Section = SectionComponent;
475
543
 
476
544
  var _path$1;
477
- function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
545
+ 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); }
478
546
  var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
479
547
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
480
548
  xmlns: "http://www.w3.org/2000/svg",
@@ -492,8 +560,6 @@ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
492
560
  const HeaderComponent = React.forwardRef((props, ref) => {
493
561
  const {
494
562
  onClick,
495
- onFocus,
496
- onBlur,
497
563
  onMouseOver,
498
564
  onMouseOut,
499
565
  role,
@@ -509,7 +575,6 @@ const HeaderComponent = React.forwardRef((props, ref) => {
509
575
  expandedSections
510
576
  } = useAccordionContext();
511
577
  const sectionValue = useSectionContext();
512
- const [isFocused, setIsFocused] = React.useState(false);
513
578
  const [isHovered, setIsHovered] = React.useState(false);
514
579
  const isExpanded = expandedSections.includes(sectionValue);
515
580
  const {
@@ -520,41 +585,28 @@ const HeaderComponent = React.forwardRef((props, ref) => {
520
585
  type: 'button',
521
586
  value: sectionValue
522
587
  });
523
- const onHeaderFocus = e => {
524
- e.persist();
525
- setTimeout(() => {
526
- const isAccordionButton = e.target.getAttribute('data-garden-id') === COMPONENT_ID$8;
527
- const isFocusVisible = e.target.getAttribute('data-garden-focus-visible');
528
- if (isAccordionButton && isFocusVisible) {
529
- setIsFocused(true);
530
- }
531
- }, 0);
532
- };
533
588
  const value = React.useMemo(() => ({
534
589
  isHovered,
535
590
  otherTriggerProps
536
591
  }), [isHovered, otherTriggerProps]);
537
592
  return React__namespace.default.createElement(HeaderContext.Provider, {
538
593
  value: value
539
- }, React__namespace.default.createElement(StyledHeader, _extends$3({
540
- isCollapsible: isCollapsible,
541
- isExpanded: isExpanded,
542
- isFocused: isFocused
594
+ }, React__namespace.default.createElement(StyledHeader, Object.assign({
595
+ $isCollapsible: isCollapsible,
596
+ $isExpanded: isExpanded
543
597
  }, getHeaderProps({
544
598
  ref,
545
599
  'aria-level': ariaLevel,
546
600
  role: role === undefined || role === null ? role : 'heading',
547
601
  onClick: containerUtilities.composeEventHandlers(onClick, onTriggerClick),
548
- onFocus: containerUtilities.composeEventHandlers(onFocus, onHeaderFocus),
549
- onBlur: containerUtilities.composeEventHandlers(onBlur, () => setIsFocused(false)),
550
602
  onMouseOver: containerUtilities.composeEventHandlers(onMouseOver, () => setIsHovered(true)),
551
603
  onMouseOut: containerUtilities.composeEventHandlers(onMouseOut, () => setIsHovered(false)),
552
604
  ...other
553
605
  })), children, React__namespace.default.createElement(StyledRotateIcon, {
554
- isCompact: isCompact,
555
- isHovered: isHovered,
556
- isRotated: isExpanded,
557
- isCollapsible: isCollapsible,
606
+ $isCompact: isCompact,
607
+ $isHovered: isHovered,
608
+ $isRotated: isExpanded,
609
+ $isCollapsible: isCollapsible,
558
610
  onMouseOver: containerUtilities.composeEventHandlers(onMouseOver, () => setIsHovered(true)),
559
611
  onMouseOut: containerUtilities.composeEventHandlers(onMouseOut, () => setIsHovered(false))
560
612
  }, React__namespace.default.createElement(SvgChevronDownStroke, null))));
@@ -574,12 +626,12 @@ const LabelComponent$1 = React.forwardRef((props, ref) => {
574
626
  isHovered,
575
627
  otherTriggerProps
576
628
  } = useHeaderContext();
577
- return React__namespace.default.createElement(StyledButton, _extends$3({
629
+ return React__namespace.default.createElement(StyledButton, Object.assign({
578
630
  ref: ref,
579
- isCompact: isCompact,
580
- isHovered: isHovered,
581
- isExpanded: isExpanded,
582
- isCollapsible: isCollapsible
631
+ $isCompact: isCompact,
632
+ $isHovered: isHovered,
633
+ $isExpanded: isExpanded,
634
+ $isCollapsible: isCollapsible
583
635
  }, otherTriggerProps, props));
584
636
  });
585
637
  LabelComponent$1.displayName = 'Accordion.Label';
@@ -600,19 +652,19 @@ const PanelComponent = React.forwardRef((_ref, ref) => {
600
652
  } = useAccordionContext();
601
653
  const sectionValue = useSectionContext();
602
654
  const isExpanded = expandedSections.includes(sectionValue);
603
- return React__namespace.default.createElement(StyledPanel, _extends$3({
655
+ return React__namespace.default.createElement(StyledPanel, Object.assign({
604
656
  inert: isExpanded ? undefined : '',
605
- isAnimated: isAnimated,
606
- isBare: isBare,
607
- isCompact: isCompact,
608
- isExpanded: isExpanded
657
+ $isAnimated: isAnimated,
658
+ $isBare: isBare,
659
+ $isCompact: isCompact,
660
+ $isExpanded: isExpanded
609
661
  }, getPanelProps({
610
662
  role: role === undefined ? null : 'region',
611
663
  ref,
612
664
  value: sectionValue,
613
665
  ...props
614
666
  })), React__namespace.default.createElement(StyledInnerPanel, {
615
- isAnimated: isAnimated
667
+ $isAnimated: isAnimated
616
668
  }, children));
617
669
  });
618
670
  PanelComponent.displayName = 'Accordion.Panel';
@@ -672,7 +724,7 @@ const AccordionComponent = React.forwardRef((_ref, ref) => {
672
724
  }), [level, isBare, isCompact, isAnimated, isCollapsible, getPanelProps, getHeaderProps, getTriggerProps, expandedSections]);
673
725
  return React__namespace.default.createElement(AccordionContext.Provider, {
674
726
  value: accordionContextValue
675
- }, React__namespace.default.createElement(StyledAccordion, _extends$3({
727
+ }, React__namespace.default.createElement(StyledAccordion, Object.assign({
676
728
  ref: ref
677
729
  }, props), sectionChildren));
678
730
  });
@@ -695,16 +747,16 @@ const StepComponent = React.forwardRef((_ref, ref) => {
695
747
  const {
696
748
  isHorizontal
697
749
  } = useStepperContext();
698
- return React__namespace.default.createElement(StyledStep, _extends$3({
750
+ return React__namespace.default.createElement(StyledStep, Object.assign({
699
751
  ref: ref,
700
- isHorizontal: isHorizontal
752
+ $isHorizontal: isHorizontal
701
753
  }, props), isHorizontal && React__namespace.default.createElement(StyledLine, null), children);
702
754
  });
703
755
  StepComponent.displayName = 'Stepper.Step';
704
756
  const Step = StepComponent;
705
757
 
706
758
  var _path;
707
- function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
759
+ 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); }
708
760
  var SvgCheckSmStroke = function SvgCheckSmStroke(props) {
709
761
  return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
710
762
  xmlns: "http://www.w3.org/2000/svg",
@@ -740,16 +792,16 @@ const LabelComponent = React.forwardRef((_ref, ref) => {
740
792
  const numericStep = currentStepIndex + 1;
741
793
  const stepIcon = icon || numericStep;
742
794
  const styledIcon = React__namespace.default.createElement(StyledIcon, {
743
- isActive: isActive,
744
- isHorizontal: isHorizontal
795
+ $isActive: isActive,
796
+ $isHorizontal: isHorizontal
745
797
  }, isCompleted ? React__namespace.default.createElement(SvgCheckSmStroke, iconProps) : stepIcon);
746
- return React__namespace.default.createElement(StyledLabel, _extends$3({
798
+ return React__namespace.default.createElement(StyledLabel, Object.assign({
747
799
  ref: ref,
748
- isActive: isActive,
749
- isHorizontal: isHorizontal
800
+ $isActive: isActive,
801
+ $isHorizontal: isHorizontal
750
802
  }, other), isHorizontal ? React__namespace.default.createElement(StyledIconFlexContainer, null, styledIcon) : styledIcon, React__namespace.default.createElement(StyledLabelText, {
751
- isHidden: isHidden,
752
- isHorizontal: isHorizontal
803
+ $isHidden: isHidden,
804
+ $isHorizontal: isHorizontal
753
805
  }, children));
754
806
  });
755
807
  LabelComponent.displayName = 'Stepper.Label';
@@ -765,9 +817,9 @@ const ContentComponent$1 = React.forwardRef((props, ref) => {
765
817
  isActive,
766
818
  isHorizontal
767
819
  } = useStepContext();
768
- return isHorizontal === false ? React__namespace.default.createElement(StyledContent, _extends$3({
820
+ return isHorizontal === false ? React__namespace.default.createElement(StyledContent, Object.assign({
769
821
  ref: ref,
770
- isActive: isActive
822
+ $isActive: isActive
771
823
  }, props), React__namespace.default.createElement(StyledInnerContent, {
772
824
  "aria-hidden": !isActive
773
825
  }, props.children)) : null;
@@ -789,9 +841,9 @@ const StepperComponent = React.forwardRef((_ref, ref) => {
789
841
  }), [activeIndex, isHorizontal]);
790
842
  return React__namespace.default.createElement(StepperContext.Provider, {
791
843
  value: stepperContext
792
- }, React__namespace.default.createElement(StyledStepper, _extends$3({
844
+ }, React__namespace.default.createElement(StyledStepper, Object.assign({
793
845
  ref: ref,
794
- isHorizontal: isHorizontal
846
+ $isHorizontal: isHorizontal
795
847
  }, props), React.useMemo(() => React.Children.toArray(children).filter(React.isValidElement).map((child, index) => React__namespace.default.createElement(StepContext.Provider, {
796
848
  key: index
797
849
  ,
@@ -812,7 +864,7 @@ Stepper.Content = Content$1;
812
864
  Stepper.Label = Label;
813
865
  Stepper.Step = Step;
814
866
 
815
- const OppositeContentComponent = React.forwardRef((props, ref) => React__namespace.default.createElement(StyledOppositeContent, _extends$3({
867
+ const OppositeContentComponent = React.forwardRef((props, ref) => React__namespace.default.createElement(StyledOppositeContent, Object.assign({
816
868
  ref: ref
817
869
  }, props)));
818
870
  OppositeContentComponent.displayName = 'Timeline.OppositeContent';
@@ -841,17 +893,17 @@ const ItemComponent = React.forwardRef((_ref, ref) => {
841
893
  });
842
894
  return React__namespace.default.createElement(TimelineItemContext.Provider, {
843
895
  value: value
844
- }, React__namespace.default.createElement(StyledTimelineItem, _extends$3({
896
+ }, React__namespace.default.createElement(StyledTimelineItem, Object.assign({
845
897
  ref: ref,
846
- isAlternate: isAlternate,
847
- hasOppositeContent: hasOppositeContent
898
+ $isAlternate: isAlternate,
899
+ $hasOppositeContent: hasOppositeContent
848
900
  }, props)));
849
901
  });
850
902
  ItemComponent.displayName = 'Timeline.Item';
851
903
  const Item = ItemComponent;
852
904
 
853
905
  var _circle;
854
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
906
+ 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); }
855
907
  var SvgCircleFullStroke = function SvgCircleFullStroke(props) {
856
908
  return /*#__PURE__*/React__namespace.createElement("svg", _extends({
857
909
  xmlns: "http://www.w3.org/2000/svg",
@@ -875,8 +927,8 @@ const ContentComponent = React.forwardRef((props, ref) => {
875
927
  surfaceColor
876
928
  } = useTimelineItemContext();
877
929
  return React__namespace.default.createElement(React__namespace.default.Fragment, null, React__namespace.default.createElement(StyledSeparator, null, React__namespace.default.createElement(StyledItemIcon, {
878
- surfaceColor: surfaceColor
879
- }, icon || React__namespace.default.createElement(SvgCircleFullStroke, null))), React__namespace.default.createElement(StyledTimelineContent, _extends$3({
930
+ $surfaceColor: surfaceColor
931
+ }, icon || React__namespace.default.createElement(SvgCircleFullStroke, null))), React__namespace.default.createElement(StyledTimelineContent, Object.assign({
880
932
  ref: ref
881
933
  }, props)));
882
934
  });
@@ -893,7 +945,7 @@ const TimelineComponent = React.forwardRef((_ref, ref) => {
893
945
  }), [isAlternate]);
894
946
  return React__namespace.default.createElement(TimelineContext.Provider, {
895
947
  value: value
896
- }, React__namespace.default.createElement(StyledTimeline, _extends$3({
948
+ }, React__namespace.default.createElement(StyledTimeline, Object.assign({
897
949
  ref: ref
898
950
  }, props)));
899
951
  });