@zendeskgarden/react-accordions 8.49.4 → 8.51.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -215,7 +215,7 @@ var sizeStyles$1 = function sizeStyles(props) {
215
215
  };
216
216
  var StyledContent = styled__default["default"].div.attrs({
217
217
  'data-garden-id': COMPONENT_ID$k,
218
- 'data-garden-version': '8.49.4'
218
+ 'data-garden-version': '8.51.0'
219
219
  }).withConfig({
220
220
  displayName: "StyledContent",
221
221
  componentId: "sc-mazvvo-0"
@@ -231,7 +231,7 @@ StyledContent.defaultProps = {
231
231
  var COMPONENT_ID$j = 'accordions.step_line';
232
232
  var StyledLine = styled__default["default"].div.attrs({
233
233
  'data-garden-id': COMPONENT_ID$j,
234
- 'data-garden-version': '8.49.4'
234
+ 'data-garden-version': '8.51.0'
235
235
  }).withConfig({
236
236
  displayName: "StyledLine",
237
237
  componentId: "sc-1gkpjbr-0"
@@ -253,7 +253,7 @@ StyledLine.defaultProps = {
253
253
  var COMPONENT_ID$i = 'accordions.step';
254
254
  var StyledStep = styled__default["default"].li.attrs({
255
255
  'data-garden-id': COMPONENT_ID$i,
256
- 'data-garden-version': '8.49.4'
256
+ 'data-garden-version': '8.51.0'
257
257
  }).withConfig({
258
258
  displayName: "StyledStep",
259
259
  componentId: "sc-12fiwtz-0"
@@ -283,7 +283,7 @@ StyledStep.defaultProps = {
283
283
  var COMPONENT_ID$h = 'accordions.step_inner_content';
284
284
  var StyledInnerContent = styled__default["default"].div.attrs({
285
285
  'data-garden-id': COMPONENT_ID$h,
286
- 'data-garden-version': '8.49.4'
286
+ 'data-garden-version': '8.51.0'
287
287
  }).withConfig({
288
288
  displayName: "StyledInnerContent",
289
289
  componentId: "sc-1xs9fh7-0"
@@ -305,7 +305,7 @@ StyledInnerContent.defaultProps = {
305
305
  var COMPONENT_ID$g = 'accordions.stepper';
306
306
  var StyledStepper = styled__default["default"].ol.attrs({
307
307
  'data-garden-id': COMPONENT_ID$g,
308
- 'data-garden-version': '8.49.4'
308
+ 'data-garden-version': '8.51.0'
309
309
  }).withConfig({
310
310
  displayName: "StyledStepper",
311
311
  componentId: "sc-dsxw0f-0"
@@ -333,7 +333,7 @@ var colorStyles$2 = function colorStyles(props) {
333
333
  };
334
334
  var StyledIcon = styled__default["default"].div.attrs({
335
335
  'data-garden-id': COMPONENT_ID$f,
336
- 'data-garden-version': '8.49.4'
336
+ 'data-garden-version': '8.51.0'
337
337
  }).withConfig({
338
338
  displayName: "StyledIcon",
339
339
  componentId: "sc-v20nz9-1"
@@ -350,7 +350,7 @@ StyledIcon.defaultProps = {
350
350
  var COMPONENT_ID$e = 'accordions.step_label';
351
351
  var StyledLabel = styled__default["default"].div.attrs({
352
352
  'data-garden-id': COMPONENT_ID$e,
353
- 'data-garden-version': '8.49.4'
353
+ 'data-garden-version': '8.51.0'
354
354
  }).withConfig({
355
355
  displayName: "StyledLabel",
356
356
  componentId: "sc-1o82llj-0"
@@ -378,7 +378,7 @@ StyledLabel.defaultProps = {
378
378
  var COMPONENT_ID$d = 'accordions.step_label_text';
379
379
  var StyledLabelText = styled__default["default"].div.attrs({
380
380
  'data-garden-id': COMPONENT_ID$d,
381
- 'data-garden-version': '8.49.4'
381
+ 'data-garden-version': '8.51.0'
382
382
  }).withConfig({
383
383
  displayName: "StyledLabelText",
384
384
  componentId: "sc-111m5zo-0"
@@ -396,7 +396,7 @@ StyledLabelText.defaultProps = {
396
396
  var COMPONENT_ID$c = 'accordions.accordion';
397
397
  var StyledAccordion = styled__default["default"].div.attrs({
398
398
  'data-garden-id': COMPONENT_ID$c,
399
- 'data-garden-version': '8.49.4'
399
+ 'data-garden-version': '8.51.0'
400
400
  }).withConfig({
401
401
  displayName: "StyledAccordion",
402
402
  componentId: "sc-niv9ic-0"
@@ -426,7 +426,7 @@ var paddingStyles = function paddingStyles(props) {
426
426
  };
427
427
  var StyledPanel = styled__default["default"].section.attrs({
428
428
  'data-garden-id': COMPONENT_ID$b,
429
- 'data-garden-version': '8.49.4'
429
+ 'data-garden-version': '8.51.0'
430
430
  }).withConfig({
431
431
  displayName: "StyledPanel",
432
432
  componentId: "sc-1piryze-0"
@@ -443,7 +443,7 @@ StyledPanel.defaultProps = {
443
443
  var COMPONENT_ID$a = 'accordions.section';
444
444
  var StyledSection = styled__default["default"].div.attrs({
445
445
  'data-garden-id': COMPONENT_ID$a,
446
- 'data-garden-version': '8.49.4'
446
+ 'data-garden-version': '8.51.0'
447
447
  }).withConfig({
448
448
  displayName: "StyledSection",
449
449
  componentId: "sc-v2t9bd-0"
@@ -457,7 +457,7 @@ StyledSection.defaultProps = {
457
457
  var COMPONENT_ID$9 = 'accordions.header';
458
458
  var StyledHeader = styled__default["default"].div.attrs({
459
459
  'data-garden-id': COMPONENT_ID$9,
460
- 'data-garden-version': '8.49.4'
460
+ 'data-garden-version': '8.51.0'
461
461
  }).withConfig({
462
462
  displayName: "StyledHeader",
463
463
  componentId: "sc-2c6rbr-0"
@@ -485,7 +485,7 @@ var colorStyles$1 = function colorStyles(props) {
485
485
  };
486
486
  var StyledButton = styled__default["default"].button.attrs({
487
487
  'data-garden-id': COMPONENT_ID$8,
488
- 'data-garden-version': '8.49.4'
488
+ 'data-garden-version': '8.51.0'
489
489
  }).withConfig({
490
490
  displayName: "StyledButton",
491
491
  componentId: "sc-xj3hy7-0"
@@ -511,7 +511,7 @@ StyledButton.defaultProps = {
511
511
  var COMPONENT_ID$7 = 'accordions.step_inner_panel';
512
512
  var StyledInnerPanel = styled__default["default"].div.attrs({
513
513
  'data-garden-id': COMPONENT_ID$7,
514
- 'data-garden-version': '8.49.4'
514
+ 'data-garden-version': '8.51.0'
515
515
  }).withConfig({
516
516
  displayName: "StyledInnerPanel",
517
517
  componentId: "sc-8nbueg-0"
@@ -531,7 +531,7 @@ StyledInnerPanel.defaultProps = {
531
531
  theme: reactTheming.DEFAULT_THEME
532
532
  };
533
533
 
534
- var _excluded$6 = ["children", "isRotated", "isHovered", "isCompact", "isCollapsible"];
534
+ var _excluded$7 = ["children", "isRotated", "isHovered", "isCompact", "isCollapsible"];
535
535
  var COMPONENT_ID$6 = 'accordions.rotate_icon';
536
536
  var colorStyles = function colorStyles(props) {
537
537
  var showColor = props.isCollapsible || !props.isRotated;
@@ -548,11 +548,11 @@ function (_ref) {
548
548
  _ref.isHovered;
549
549
  _ref.isCompact;
550
550
  _ref.isCollapsible;
551
- var props = _objectWithoutProperties(_ref, _excluded$6);
551
+ var props = _objectWithoutProperties(_ref, _excluded$7);
552
552
  return React.cloneElement(React.Children.only(children), props);
553
553
  }).attrs({
554
554
  'data-garden-id': COMPONENT_ID$6,
555
- 'data-garden-version': '8.49.4'
555
+ 'data-garden-version': '8.51.0'
556
556
  }).withConfig({
557
557
  displayName: "StyledRotateIcon",
558
558
  componentId: "sc-hp435q-0"
@@ -574,7 +574,7 @@ StyledRotateIcon.defaultProps = {
574
574
  var COMPONENT_ID$5 = 'timeline';
575
575
  var StyledTimeline = styled__default["default"].ol.attrs({
576
576
  'data-garden-id': COMPONENT_ID$5,
577
- 'data-garden-version': '8.49.4'
577
+ 'data-garden-version': '8.51.0'
578
578
  }).withConfig({
579
579
  displayName: "StyledTimeline",
580
580
  componentId: "sc-pig5kv-0"
@@ -588,7 +588,7 @@ StyledTimeline.defaultProps = {
588
588
  var COMPONENT_ID$4 = 'timeline.content.separator';
589
589
  var StyledSeparator = styled__default["default"].div.attrs({
590
590
  'data-garden-id': COMPONENT_ID$4,
591
- 'data-garden-version': '8.49.4'
591
+ 'data-garden-version': '8.51.0'
592
592
  }).withConfig({
593
593
  displayName: "StyledSeparator",
594
594
  componentId: "sc-fki51e-0"
@@ -606,7 +606,7 @@ StyledSeparator.defaultProps = {
606
606
  var COMPONENT_ID$3 = 'timeline.content';
607
607
  var StyledTimelineContent = styled__default["default"].div.attrs({
608
608
  'data-garden-id': COMPONENT_ID$3,
609
- 'data-garden-version': '8.49.4'
609
+ 'data-garden-version': '8.51.0'
610
610
  }).withConfig({
611
611
  displayName: "StyledContent__StyledTimelineContent",
612
612
  componentId: "sc-19phgu1-0"
@@ -622,7 +622,7 @@ StyledTimelineContent.defaultProps = {
622
622
  var COMPONENT_ID$2 = 'timeline.opposite.content';
623
623
  var StyledOppositeContent = styled__default["default"].div.attrs({
624
624
  'data-garden-id': COMPONENT_ID$2,
625
- 'data-garden-version': '8.49.4'
625
+ 'data-garden-version': '8.51.0'
626
626
  }).withConfig({
627
627
  displayName: "StyledOppositeContent",
628
628
  componentId: "sc-jurh2k-0"
@@ -640,11 +640,17 @@ StyledOppositeContent.defaultProps = {
640
640
  var COMPONENT_ID$1 = 'timeline.item';
641
641
  var StyledTimelineItem = styled__default["default"].li.attrs({
642
642
  'data-garden-id': COMPONENT_ID$1,
643
- 'data-garden-version': '8.49.4'
643
+ 'data-garden-version': '8.51.0'
644
644
  }).withConfig({
645
645
  displayName: "StyledItem__StyledTimelineItem",
646
646
  componentId: "sc-5mcnzm-0"
647
- })(["display:flex;position:relative;&:last-of-type ", "::after{display:none;}", " ", " ", ";"], StyledSeparator, function (props) {
647
+ })(["display:flex;position:relative;line-height:", ";color:", ";font-size:", ";&:last-of-type ", "::after{display:none;}", " ", " ", ";"], function (props) {
648
+ return reactTheming.getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
649
+ }, function (props) {
650
+ return props.theme.colors.foreground;
651
+ }, function (props) {
652
+ return props.theme.fontSizes.md;
653
+ }, StyledSeparator, function (props) {
648
654
  return !props.hasOppositeContent && props.isAlternate && styled.css(["&:before{flex:1;content:'';padding:", "px;}"], props.theme.space.base * 4);
649
655
  }, function (props) {
650
656
  return 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');
@@ -655,16 +661,16 @@ StyledTimelineItem.defaultProps = {
655
661
  theme: reactTheming.DEFAULT_THEME
656
662
  };
657
663
 
658
- var _excluded$5 = ["surfaceColor", "children"];
664
+ var _excluded$6 = ["surfaceColor", "children"];
659
665
  var COMPONENT_ID = 'timeline.icon';
660
666
  var StyledItemIcon = styled__default["default"](function (_ref) {
661
667
  _ref.surfaceColor;
662
668
  var children = _ref.children,
663
- props = _objectWithoutProperties(_ref, _excluded$5);
669
+ props = _objectWithoutProperties(_ref, _excluded$6);
664
670
  return React.cloneElement(React.Children.only(children), props);
665
671
  }).attrs({
666
672
  'data-garden-id': COMPONENT_ID,
667
- 'data-garden-version': '8.49.4'
673
+ 'data-garden-version': '8.51.0'
668
674
  }).withConfig({
669
675
  displayName: "StyledItemIcon",
670
676
  componentId: "sc-vz2l6e-0"
@@ -780,7 +786,7 @@ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
780
786
  })));
781
787
  };
782
788
 
783
- var _excluded$4 = ["onClick", "onFocus", "onBlur", "onMouseOver", "onMouseOut", "children"],
789
+ var _excluded$5 = ["onClick", "onFocus", "onBlur", "onMouseOver", "onMouseOut", "children"],
784
790
  _excluded2 = ["onClick", "onKeyDown"];
785
791
  var HeaderComponent = React.forwardRef(function (props, ref) {
786
792
  var _useAccordionContext = useAccordionContext(),
@@ -796,7 +802,7 @@ var HeaderComponent = React.forwardRef(function (props, ref) {
796
802
  onMouseOver = props.onMouseOver,
797
803
  onMouseOut = props.onMouseOut,
798
804
  children = props.children,
799
- other = _objectWithoutProperties(props, _excluded$4);
805
+ other = _objectWithoutProperties(props, _excluded$5);
800
806
  var sectionIndex = useSectionContext();
801
807
  var _useState = React.useState(false),
802
808
  _useState2 = _slicedToArray(_useState, 2),
@@ -929,7 +935,7 @@ var PanelComponent = React.forwardRef(function (props, ref) {
929
935
  PanelComponent.displayName = 'Accordion.Panel';
930
936
  var Panel = PanelComponent;
931
937
 
932
- var _excluded$3 = ["level", "isBare", "onChange", "isCompact", "isAnimated", "isExpandable", "isCollapsible", "defaultExpandedSections", "expandedSections"];
938
+ var _excluded$4 = ["level", "isBare", "onChange", "isCompact", "isAnimated", "isExpandable", "isCollapsible", "defaultExpandedSections", "expandedSections"];
933
939
  var AccordionComponent = React.forwardRef(function (_ref, ref) {
934
940
  var level = _ref.level,
935
941
  isBare = _ref.isBare,
@@ -940,7 +946,7 @@ var AccordionComponent = React.forwardRef(function (_ref, ref) {
940
946
  isCollapsible = _ref.isCollapsible,
941
947
  defaultExpandedSections = _ref.defaultExpandedSections,
942
948
  controlledExpandedSections = _ref.expandedSections,
943
- props = _objectWithoutProperties(_ref, _excluded$3);
949
+ props = _objectWithoutProperties(_ref, _excluded$4);
944
950
  var _useAccordion = containerAccordion.useAccordion({
945
951
  collapsible: isCollapsible,
946
952
  expandable: isExpandable || false,
@@ -1040,32 +1046,39 @@ var SvgCheckSmStroke = function SvgCheckSmStroke(props) {
1040
1046
  })));
1041
1047
  };
1042
1048
 
1043
- var LabelComponent = React.forwardRef(function (props, ref) {
1049
+ var _excluded$3 = ["icon", "iconProps", "isHidden", "children"];
1050
+ var LabelComponent = React.forwardRef(function (_ref, ref) {
1051
+ var icon = _ref.icon,
1052
+ iconProps = _ref.iconProps,
1053
+ isHidden = _ref.isHidden,
1054
+ children = _ref.children,
1055
+ other = _objectWithoutProperties(_ref, _excluded$3);
1044
1056
  var _useStepContext = useStepContext(),
1045
1057
  currentStepIndex = _useStepContext.currentStepIndex;
1046
1058
  var _useStepperContext = useStepperContext(),
1047
1059
  activeIndex = _useStepperContext.activeIndex,
1048
1060
  isHorizontal = _useStepperContext.isHorizontal;
1049
1061
  var numericStep = currentStepIndex + 1;
1050
- var stepIcon = props.icon || numericStep;
1062
+ var stepIcon = icon || numericStep;
1051
1063
  var isActive = activeIndex === currentStepIndex;
1052
1064
  var isCompleted = activeIndex > currentStepIndex;
1053
1065
  var styledIcon = React__default["default"].createElement(StyledIcon, {
1054
1066
  isActive: isActive,
1055
1067
  isHorizontal: isHorizontal
1056
- }, isCompleted ? React__default["default"].createElement(SvgCheckSmStroke, null) : stepIcon);
1068
+ }, isCompleted ? React__default["default"].createElement(SvgCheckSmStroke, iconProps) : stepIcon);
1057
1069
  return React__default["default"].createElement(StyledLabel, _extends$3({
1058
1070
  ref: ref,
1059
1071
  isActive: isActive,
1060
1072
  isHorizontal: isHorizontal
1061
- }, props), isHorizontal ? React__default["default"].createElement(StyledIconFlexContainer, null, styledIcon) : styledIcon, React__default["default"].createElement(StyledLabelText, {
1062
- isHidden: props.isHidden,
1073
+ }, other), isHorizontal ? React__default["default"].createElement(StyledIconFlexContainer, null, styledIcon) : styledIcon, React__default["default"].createElement(StyledLabelText, {
1074
+ isHidden: isHidden,
1063
1075
  isHorizontal: isHorizontal
1064
- }, props.children));
1076
+ }, children));
1065
1077
  });
1066
1078
  LabelComponent.displayName = 'Stepper.Label';
1067
1079
  LabelComponent.propTypes = {
1068
1080
  icon: PropTypes__default["default"].node,
1081
+ iconProps: PropTypes__default["default"].object,
1069
1082
  isHidden: PropTypes__default["default"].bool
1070
1083
  };
1071
1084
  var Label = LabelComponent;
package/dist/index.esm.js CHANGED
@@ -185,7 +185,7 @@ var sizeStyles$1 = function sizeStyles(props) {
185
185
  };
186
186
  var StyledContent = styled.div.attrs({
187
187
  'data-garden-id': COMPONENT_ID$k,
188
- 'data-garden-version': '8.49.4'
188
+ 'data-garden-version': '8.51.0'
189
189
  }).withConfig({
190
190
  displayName: "StyledContent",
191
191
  componentId: "sc-mazvvo-0"
@@ -201,7 +201,7 @@ StyledContent.defaultProps = {
201
201
  var COMPONENT_ID$j = 'accordions.step_line';
202
202
  var StyledLine = styled.div.attrs({
203
203
  'data-garden-id': COMPONENT_ID$j,
204
- 'data-garden-version': '8.49.4'
204
+ 'data-garden-version': '8.51.0'
205
205
  }).withConfig({
206
206
  displayName: "StyledLine",
207
207
  componentId: "sc-1gkpjbr-0"
@@ -223,7 +223,7 @@ StyledLine.defaultProps = {
223
223
  var COMPONENT_ID$i = 'accordions.step';
224
224
  var StyledStep = styled.li.attrs({
225
225
  'data-garden-id': COMPONENT_ID$i,
226
- 'data-garden-version': '8.49.4'
226
+ 'data-garden-version': '8.51.0'
227
227
  }).withConfig({
228
228
  displayName: "StyledStep",
229
229
  componentId: "sc-12fiwtz-0"
@@ -253,7 +253,7 @@ StyledStep.defaultProps = {
253
253
  var COMPONENT_ID$h = 'accordions.step_inner_content';
254
254
  var StyledInnerContent = styled.div.attrs({
255
255
  'data-garden-id': COMPONENT_ID$h,
256
- 'data-garden-version': '8.49.4'
256
+ 'data-garden-version': '8.51.0'
257
257
  }).withConfig({
258
258
  displayName: "StyledInnerContent",
259
259
  componentId: "sc-1xs9fh7-0"
@@ -275,7 +275,7 @@ StyledInnerContent.defaultProps = {
275
275
  var COMPONENT_ID$g = 'accordions.stepper';
276
276
  var StyledStepper = styled.ol.attrs({
277
277
  'data-garden-id': COMPONENT_ID$g,
278
- 'data-garden-version': '8.49.4'
278
+ 'data-garden-version': '8.51.0'
279
279
  }).withConfig({
280
280
  displayName: "StyledStepper",
281
281
  componentId: "sc-dsxw0f-0"
@@ -303,7 +303,7 @@ var colorStyles$2 = function colorStyles(props) {
303
303
  };
304
304
  var StyledIcon = styled.div.attrs({
305
305
  'data-garden-id': COMPONENT_ID$f,
306
- 'data-garden-version': '8.49.4'
306
+ 'data-garden-version': '8.51.0'
307
307
  }).withConfig({
308
308
  displayName: "StyledIcon",
309
309
  componentId: "sc-v20nz9-1"
@@ -320,7 +320,7 @@ StyledIcon.defaultProps = {
320
320
  var COMPONENT_ID$e = 'accordions.step_label';
321
321
  var StyledLabel = styled.div.attrs({
322
322
  'data-garden-id': COMPONENT_ID$e,
323
- 'data-garden-version': '8.49.4'
323
+ 'data-garden-version': '8.51.0'
324
324
  }).withConfig({
325
325
  displayName: "StyledLabel",
326
326
  componentId: "sc-1o82llj-0"
@@ -348,7 +348,7 @@ StyledLabel.defaultProps = {
348
348
  var COMPONENT_ID$d = 'accordions.step_label_text';
349
349
  var StyledLabelText = styled.div.attrs({
350
350
  'data-garden-id': COMPONENT_ID$d,
351
- 'data-garden-version': '8.49.4'
351
+ 'data-garden-version': '8.51.0'
352
352
  }).withConfig({
353
353
  displayName: "StyledLabelText",
354
354
  componentId: "sc-111m5zo-0"
@@ -366,7 +366,7 @@ StyledLabelText.defaultProps = {
366
366
  var COMPONENT_ID$c = 'accordions.accordion';
367
367
  var StyledAccordion = styled.div.attrs({
368
368
  'data-garden-id': COMPONENT_ID$c,
369
- 'data-garden-version': '8.49.4'
369
+ 'data-garden-version': '8.51.0'
370
370
  }).withConfig({
371
371
  displayName: "StyledAccordion",
372
372
  componentId: "sc-niv9ic-0"
@@ -396,7 +396,7 @@ var paddingStyles = function paddingStyles(props) {
396
396
  };
397
397
  var StyledPanel = styled.section.attrs({
398
398
  'data-garden-id': COMPONENT_ID$b,
399
- 'data-garden-version': '8.49.4'
399
+ 'data-garden-version': '8.51.0'
400
400
  }).withConfig({
401
401
  displayName: "StyledPanel",
402
402
  componentId: "sc-1piryze-0"
@@ -413,7 +413,7 @@ StyledPanel.defaultProps = {
413
413
  var COMPONENT_ID$a = 'accordions.section';
414
414
  var StyledSection = styled.div.attrs({
415
415
  'data-garden-id': COMPONENT_ID$a,
416
- 'data-garden-version': '8.49.4'
416
+ 'data-garden-version': '8.51.0'
417
417
  }).withConfig({
418
418
  displayName: "StyledSection",
419
419
  componentId: "sc-v2t9bd-0"
@@ -427,7 +427,7 @@ StyledSection.defaultProps = {
427
427
  var COMPONENT_ID$9 = 'accordions.header';
428
428
  var StyledHeader = styled.div.attrs({
429
429
  'data-garden-id': COMPONENT_ID$9,
430
- 'data-garden-version': '8.49.4'
430
+ 'data-garden-version': '8.51.0'
431
431
  }).withConfig({
432
432
  displayName: "StyledHeader",
433
433
  componentId: "sc-2c6rbr-0"
@@ -455,7 +455,7 @@ var colorStyles$1 = function colorStyles(props) {
455
455
  };
456
456
  var StyledButton = styled.button.attrs({
457
457
  'data-garden-id': COMPONENT_ID$8,
458
- 'data-garden-version': '8.49.4'
458
+ 'data-garden-version': '8.51.0'
459
459
  }).withConfig({
460
460
  displayName: "StyledButton",
461
461
  componentId: "sc-xj3hy7-0"
@@ -481,7 +481,7 @@ StyledButton.defaultProps = {
481
481
  var COMPONENT_ID$7 = 'accordions.step_inner_panel';
482
482
  var StyledInnerPanel = styled.div.attrs({
483
483
  'data-garden-id': COMPONENT_ID$7,
484
- 'data-garden-version': '8.49.4'
484
+ 'data-garden-version': '8.51.0'
485
485
  }).withConfig({
486
486
  displayName: "StyledInnerPanel",
487
487
  componentId: "sc-8nbueg-0"
@@ -501,7 +501,7 @@ StyledInnerPanel.defaultProps = {
501
501
  theme: DEFAULT_THEME
502
502
  };
503
503
 
504
- var _excluded$6 = ["children", "isRotated", "isHovered", "isCompact", "isCollapsible"];
504
+ var _excluded$7 = ["children", "isRotated", "isHovered", "isCompact", "isCollapsible"];
505
505
  var COMPONENT_ID$6 = 'accordions.rotate_icon';
506
506
  var colorStyles = function colorStyles(props) {
507
507
  var showColor = props.isCollapsible || !props.isRotated;
@@ -518,11 +518,11 @@ function (_ref) {
518
518
  _ref.isHovered;
519
519
  _ref.isCompact;
520
520
  _ref.isCollapsible;
521
- var props = _objectWithoutProperties(_ref, _excluded$6);
521
+ var props = _objectWithoutProperties(_ref, _excluded$7);
522
522
  return cloneElement(Children.only(children), props);
523
523
  }).attrs({
524
524
  'data-garden-id': COMPONENT_ID$6,
525
- 'data-garden-version': '8.49.4'
525
+ 'data-garden-version': '8.51.0'
526
526
  }).withConfig({
527
527
  displayName: "StyledRotateIcon",
528
528
  componentId: "sc-hp435q-0"
@@ -544,7 +544,7 @@ StyledRotateIcon.defaultProps = {
544
544
  var COMPONENT_ID$5 = 'timeline';
545
545
  var StyledTimeline = styled.ol.attrs({
546
546
  'data-garden-id': COMPONENT_ID$5,
547
- 'data-garden-version': '8.49.4'
547
+ 'data-garden-version': '8.51.0'
548
548
  }).withConfig({
549
549
  displayName: "StyledTimeline",
550
550
  componentId: "sc-pig5kv-0"
@@ -558,7 +558,7 @@ StyledTimeline.defaultProps = {
558
558
  var COMPONENT_ID$4 = 'timeline.content.separator';
559
559
  var StyledSeparator = styled.div.attrs({
560
560
  'data-garden-id': COMPONENT_ID$4,
561
- 'data-garden-version': '8.49.4'
561
+ 'data-garden-version': '8.51.0'
562
562
  }).withConfig({
563
563
  displayName: "StyledSeparator",
564
564
  componentId: "sc-fki51e-0"
@@ -576,7 +576,7 @@ StyledSeparator.defaultProps = {
576
576
  var COMPONENT_ID$3 = 'timeline.content';
577
577
  var StyledTimelineContent = styled.div.attrs({
578
578
  'data-garden-id': COMPONENT_ID$3,
579
- 'data-garden-version': '8.49.4'
579
+ 'data-garden-version': '8.51.0'
580
580
  }).withConfig({
581
581
  displayName: "StyledContent__StyledTimelineContent",
582
582
  componentId: "sc-19phgu1-0"
@@ -592,7 +592,7 @@ StyledTimelineContent.defaultProps = {
592
592
  var COMPONENT_ID$2 = 'timeline.opposite.content';
593
593
  var StyledOppositeContent = styled.div.attrs({
594
594
  'data-garden-id': COMPONENT_ID$2,
595
- 'data-garden-version': '8.49.4'
595
+ 'data-garden-version': '8.51.0'
596
596
  }).withConfig({
597
597
  displayName: "StyledOppositeContent",
598
598
  componentId: "sc-jurh2k-0"
@@ -610,11 +610,17 @@ StyledOppositeContent.defaultProps = {
610
610
  var COMPONENT_ID$1 = 'timeline.item';
611
611
  var StyledTimelineItem = styled.li.attrs({
612
612
  'data-garden-id': COMPONENT_ID$1,
613
- 'data-garden-version': '8.49.4'
613
+ 'data-garden-version': '8.51.0'
614
614
  }).withConfig({
615
615
  displayName: "StyledItem__StyledTimelineItem",
616
616
  componentId: "sc-5mcnzm-0"
617
- })(["display:flex;position:relative;&:last-of-type ", "::after{display:none;}", " ", " ", ";"], StyledSeparator, function (props) {
617
+ })(["display:flex;position:relative;line-height:", ";color:", ";font-size:", ";&:last-of-type ", "::after{display:none;}", " ", " ", ";"], function (props) {
618
+ return getLineHeight(props.theme.space.base * 5, props.theme.fontSizes.md);
619
+ }, function (props) {
620
+ return props.theme.colors.foreground;
621
+ }, function (props) {
622
+ return props.theme.fontSizes.md;
623
+ }, StyledSeparator, function (props) {
618
624
  return !props.hasOppositeContent && props.isAlternate && css(["&:before{flex:1;content:'';padding:", "px;}"], props.theme.space.base * 4);
619
625
  }, function (props) {
620
626
  return props.isAlternate && css(["&:nth-child(even){flex-direction:row-reverse;", "{text-align:", ";}", "{text-align:", ";}}"], StyledOppositeContent, props.theme.rtl ? 'right' : 'left', StyledTimelineContent, props.theme.rtl ? 'left' : 'right');
@@ -625,16 +631,16 @@ StyledTimelineItem.defaultProps = {
625
631
  theme: DEFAULT_THEME
626
632
  };
627
633
 
628
- var _excluded$5 = ["surfaceColor", "children"];
634
+ var _excluded$6 = ["surfaceColor", "children"];
629
635
  var COMPONENT_ID = 'timeline.icon';
630
636
  var StyledItemIcon = styled(function (_ref) {
631
637
  _ref.surfaceColor;
632
638
  var children = _ref.children,
633
- props = _objectWithoutProperties(_ref, _excluded$5);
639
+ props = _objectWithoutProperties(_ref, _excluded$6);
634
640
  return cloneElement(Children.only(children), props);
635
641
  }).attrs({
636
642
  'data-garden-id': COMPONENT_ID,
637
- 'data-garden-version': '8.49.4'
643
+ 'data-garden-version': '8.51.0'
638
644
  }).withConfig({
639
645
  displayName: "StyledItemIcon",
640
646
  componentId: "sc-vz2l6e-0"
@@ -750,7 +756,7 @@ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
750
756
  })));
751
757
  };
752
758
 
753
- var _excluded$4 = ["onClick", "onFocus", "onBlur", "onMouseOver", "onMouseOut", "children"],
759
+ var _excluded$5 = ["onClick", "onFocus", "onBlur", "onMouseOver", "onMouseOut", "children"],
754
760
  _excluded2 = ["onClick", "onKeyDown"];
755
761
  var HeaderComponent = forwardRef(function (props, ref) {
756
762
  var _useAccordionContext = useAccordionContext(),
@@ -766,7 +772,7 @@ var HeaderComponent = forwardRef(function (props, ref) {
766
772
  onMouseOver = props.onMouseOver,
767
773
  onMouseOut = props.onMouseOut,
768
774
  children = props.children,
769
- other = _objectWithoutProperties(props, _excluded$4);
775
+ other = _objectWithoutProperties(props, _excluded$5);
770
776
  var sectionIndex = useSectionContext();
771
777
  var _useState = useState(false),
772
778
  _useState2 = _slicedToArray(_useState, 2),
@@ -899,7 +905,7 @@ var PanelComponent = forwardRef(function (props, ref) {
899
905
  PanelComponent.displayName = 'Accordion.Panel';
900
906
  var Panel = PanelComponent;
901
907
 
902
- var _excluded$3 = ["level", "isBare", "onChange", "isCompact", "isAnimated", "isExpandable", "isCollapsible", "defaultExpandedSections", "expandedSections"];
908
+ var _excluded$4 = ["level", "isBare", "onChange", "isCompact", "isAnimated", "isExpandable", "isCollapsible", "defaultExpandedSections", "expandedSections"];
903
909
  var AccordionComponent = forwardRef(function (_ref, ref) {
904
910
  var level = _ref.level,
905
911
  isBare = _ref.isBare,
@@ -910,7 +916,7 @@ var AccordionComponent = forwardRef(function (_ref, ref) {
910
916
  isCollapsible = _ref.isCollapsible,
911
917
  defaultExpandedSections = _ref.defaultExpandedSections,
912
918
  controlledExpandedSections = _ref.expandedSections,
913
- props = _objectWithoutProperties(_ref, _excluded$3);
919
+ props = _objectWithoutProperties(_ref, _excluded$4);
914
920
  var _useAccordion = useAccordion({
915
921
  collapsible: isCollapsible,
916
922
  expandable: isExpandable || false,
@@ -1010,32 +1016,39 @@ var SvgCheckSmStroke = function SvgCheckSmStroke(props) {
1010
1016
  })));
1011
1017
  };
1012
1018
 
1013
- var LabelComponent = forwardRef(function (props, ref) {
1019
+ var _excluded$3 = ["icon", "iconProps", "isHidden", "children"];
1020
+ var LabelComponent = forwardRef(function (_ref, ref) {
1021
+ var icon = _ref.icon,
1022
+ iconProps = _ref.iconProps,
1023
+ isHidden = _ref.isHidden,
1024
+ children = _ref.children,
1025
+ other = _objectWithoutProperties(_ref, _excluded$3);
1014
1026
  var _useStepContext = useStepContext(),
1015
1027
  currentStepIndex = _useStepContext.currentStepIndex;
1016
1028
  var _useStepperContext = useStepperContext(),
1017
1029
  activeIndex = _useStepperContext.activeIndex,
1018
1030
  isHorizontal = _useStepperContext.isHorizontal;
1019
1031
  var numericStep = currentStepIndex + 1;
1020
- var stepIcon = props.icon || numericStep;
1032
+ var stepIcon = icon || numericStep;
1021
1033
  var isActive = activeIndex === currentStepIndex;
1022
1034
  var isCompleted = activeIndex > currentStepIndex;
1023
1035
  var styledIcon = React__default.createElement(StyledIcon, {
1024
1036
  isActive: isActive,
1025
1037
  isHorizontal: isHorizontal
1026
- }, isCompleted ? React__default.createElement(SvgCheckSmStroke, null) : stepIcon);
1038
+ }, isCompleted ? React__default.createElement(SvgCheckSmStroke, iconProps) : stepIcon);
1027
1039
  return React__default.createElement(StyledLabel, _extends$3({
1028
1040
  ref: ref,
1029
1041
  isActive: isActive,
1030
1042
  isHorizontal: isHorizontal
1031
- }, props), isHorizontal ? React__default.createElement(StyledIconFlexContainer, null, styledIcon) : styledIcon, React__default.createElement(StyledLabelText, {
1032
- isHidden: props.isHidden,
1043
+ }, other), isHorizontal ? React__default.createElement(StyledIconFlexContainer, null, styledIcon) : styledIcon, React__default.createElement(StyledLabelText, {
1044
+ isHidden: isHidden,
1033
1045
  isHorizontal: isHorizontal
1034
- }, props.children));
1046
+ }, children));
1035
1047
  });
1036
1048
  LabelComponent.displayName = 'Stepper.Label';
1037
1049
  LabelComponent.propTypes = {
1038
1050
  icon: PropTypes.node,
1051
+ iconProps: PropTypes.object,
1039
1052
  isHidden: PropTypes.bool
1040
1053
  };
1041
1054
  var Label = LabelComponent;
@@ -4,7 +4,7 @@
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
- import { HTMLAttributes, LiHTMLAttributes, OlHTMLAttributes, ReactNode } from 'react';
7
+ import { ReactNode, SVGAttributes, HTMLAttributes, LiHTMLAttributes, OlHTMLAttributes } from 'react';
8
8
  export interface IAccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
9
9
  /** Sets `aria-level` heading rank in the document structure */
10
10
  level: number;
@@ -37,7 +37,9 @@ export interface IStepperProps extends OlHTMLAttributes<HTMLOListElement> {
37
37
  }
38
38
  export interface IStepperLabelProps extends HTMLAttributes<HTMLDivElement> {
39
39
  /** Replaces the label number with an icon */
40
- icon?: React.ReactNode;
40
+ icon?: ReactNode;
41
+ /** Passes props to the default check icon */
42
+ iconProps?: SVGAttributes<SVGElement>;
41
43
  /** Hides the label text */
42
44
  isHidden?: boolean;
43
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/react-accordions",
3
- "version": "8.49.4",
3
+ "version": "8.51.0",
4
4
  "description": "Components related to accordions in the Garden Design System",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/lodash.debounce": "4.0.6",
39
- "@zendeskgarden/react-theming": "^8.49.4",
39
+ "@zendeskgarden/react-theming": "^8.51.0",
40
40
  "@zendeskgarden/svg-icons": "6.31.1"
41
41
  },
42
42
  "keywords": [
@@ -50,5 +50,5 @@
50
50
  "access": "public"
51
51
  },
52
52
  "zendeskgarden:src": "src/index.ts",
53
- "gitHead": "7d8cf45fb734c345fac9e0673236578b2ac9c03b"
53
+ "gitHead": "a932647429f0a79984650d2521f357ed8320d1d0"
54
54
  }