@zendeskgarden/react-accordions 8.47.1 → 8.48.2

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.esm.js CHANGED
@@ -21,14 +21,9 @@ function ownKeys(object, enumerableOnly) {
21
21
 
22
22
  if (Object.getOwnPropertySymbols) {
23
23
  var symbols = Object.getOwnPropertySymbols(object);
24
-
25
- if (enumerableOnly) {
26
- symbols = symbols.filter(function (sym) {
27
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
28
- });
29
- }
30
-
31
- keys.push.apply(keys, symbols);
24
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
25
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
26
+ })), keys.push.apply(keys, symbols);
32
27
  }
33
28
 
34
29
  return keys;
@@ -36,19 +31,12 @@ function ownKeys(object, enumerableOnly) {
36
31
 
37
32
  function _objectSpread2(target) {
38
33
  for (var i = 1; i < arguments.length; i++) {
39
- var source = arguments[i] != null ? arguments[i] : {};
40
-
41
- if (i % 2) {
42
- ownKeys(Object(source), true).forEach(function (key) {
43
- _defineProperty(target, key, source[key]);
44
- });
45
- } else if (Object.getOwnPropertyDescriptors) {
46
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
47
- } else {
48
- ownKeys(Object(source)).forEach(function (key) {
49
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
50
- });
51
- }
34
+ var source = null != arguments[i] ? arguments[i] : {};
35
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
36
+ _defineProperty(target, key, source[key]);
37
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
38
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
39
+ });
52
40
  }
53
41
 
54
42
  return target;
@@ -197,7 +185,7 @@ var sizeStyles$1 = function sizeStyles(props) {
197
185
  };
198
186
  var StyledContent = styled.div.attrs({
199
187
  'data-garden-id': COMPONENT_ID$k,
200
- 'data-garden-version': '8.47.1'
188
+ 'data-garden-version': '8.48.2'
201
189
  }).withConfig({
202
190
  displayName: "StyledContent",
203
191
  componentId: "sc-mazvvo-0"
@@ -213,7 +201,7 @@ StyledContent.defaultProps = {
213
201
  var COMPONENT_ID$j = 'accordions.step_line';
214
202
  var StyledLine = styled.div.attrs({
215
203
  'data-garden-id': COMPONENT_ID$j,
216
- 'data-garden-version': '8.47.1'
204
+ 'data-garden-version': '8.48.2'
217
205
  }).withConfig({
218
206
  displayName: "StyledLine",
219
207
  componentId: "sc-1gkpjbr-0"
@@ -235,7 +223,7 @@ StyledLine.defaultProps = {
235
223
  var COMPONENT_ID$i = 'accordions.step';
236
224
  var StyledStep = styled.li.attrs({
237
225
  'data-garden-id': COMPONENT_ID$i,
238
- 'data-garden-version': '8.47.1'
226
+ 'data-garden-version': '8.48.2'
239
227
  }).withConfig({
240
228
  displayName: "StyledStep",
241
229
  componentId: "sc-12fiwtz-0"
@@ -265,7 +253,7 @@ StyledStep.defaultProps = {
265
253
  var COMPONENT_ID$h = 'accordions.step_inner_content';
266
254
  var StyledInnerContent = styled.div.attrs({
267
255
  'data-garden-id': COMPONENT_ID$h,
268
- 'data-garden-version': '8.47.1'
256
+ 'data-garden-version': '8.48.2'
269
257
  }).withConfig({
270
258
  displayName: "StyledInnerContent",
271
259
  componentId: "sc-1xs9fh7-0"
@@ -287,7 +275,7 @@ StyledInnerContent.defaultProps = {
287
275
  var COMPONENT_ID$g = 'accordions.stepper';
288
276
  var StyledStepper = styled.ol.attrs({
289
277
  'data-garden-id': COMPONENT_ID$g,
290
- 'data-garden-version': '8.47.1'
278
+ 'data-garden-version': '8.48.2'
291
279
  }).withConfig({
292
280
  displayName: "StyledStepper",
293
281
  componentId: "sc-dsxw0f-0"
@@ -315,7 +303,7 @@ var colorStyles$2 = function colorStyles(props) {
315
303
  };
316
304
  var StyledIcon = styled.div.attrs({
317
305
  'data-garden-id': COMPONENT_ID$f,
318
- 'data-garden-version': '8.47.1'
306
+ 'data-garden-version': '8.48.2'
319
307
  }).withConfig({
320
308
  displayName: "StyledIcon",
321
309
  componentId: "sc-v20nz9-1"
@@ -332,7 +320,7 @@ StyledIcon.defaultProps = {
332
320
  var COMPONENT_ID$e = 'accordions.step_label';
333
321
  var StyledLabel = styled.div.attrs({
334
322
  'data-garden-id': COMPONENT_ID$e,
335
- 'data-garden-version': '8.47.1'
323
+ 'data-garden-version': '8.48.2'
336
324
  }).withConfig({
337
325
  displayName: "StyledLabel",
338
326
  componentId: "sc-1o82llj-0"
@@ -360,7 +348,7 @@ StyledLabel.defaultProps = {
360
348
  var COMPONENT_ID$d = 'accordions.step_label_text';
361
349
  var StyledLabelText = styled.div.attrs({
362
350
  'data-garden-id': COMPONENT_ID$d,
363
- 'data-garden-version': '8.47.1'
351
+ 'data-garden-version': '8.48.2'
364
352
  }).withConfig({
365
353
  displayName: "StyledLabelText",
366
354
  componentId: "sc-111m5zo-0"
@@ -378,7 +366,7 @@ StyledLabelText.defaultProps = {
378
366
  var COMPONENT_ID$c = 'accordions.accordion';
379
367
  var StyledAccordion = styled.div.attrs({
380
368
  'data-garden-id': COMPONENT_ID$c,
381
- 'data-garden-version': '8.47.1'
369
+ 'data-garden-version': '8.48.2'
382
370
  }).withConfig({
383
371
  displayName: "StyledAccordion",
384
372
  componentId: "sc-niv9ic-0"
@@ -408,7 +396,7 @@ var paddingStyles = function paddingStyles(props) {
408
396
  };
409
397
  var StyledPanel = styled.section.attrs({
410
398
  'data-garden-id': COMPONENT_ID$b,
411
- 'data-garden-version': '8.47.1'
399
+ 'data-garden-version': '8.48.2'
412
400
  }).withConfig({
413
401
  displayName: "StyledPanel",
414
402
  componentId: "sc-1piryze-0"
@@ -425,7 +413,7 @@ StyledPanel.defaultProps = {
425
413
  var COMPONENT_ID$a = 'accordions.section';
426
414
  var StyledSection = styled.div.attrs({
427
415
  'data-garden-id': COMPONENT_ID$a,
428
- 'data-garden-version': '8.47.1'
416
+ 'data-garden-version': '8.48.2'
429
417
  }).withConfig({
430
418
  displayName: "StyledSection",
431
419
  componentId: "sc-v2t9bd-0"
@@ -439,7 +427,7 @@ StyledSection.defaultProps = {
439
427
  var COMPONENT_ID$9 = 'accordions.header';
440
428
  var StyledHeader = styled.div.attrs({
441
429
  'data-garden-id': COMPONENT_ID$9,
442
- 'data-garden-version': '8.47.1'
430
+ 'data-garden-version': '8.48.2'
443
431
  }).withConfig({
444
432
  displayName: "StyledHeader",
445
433
  componentId: "sc-2c6rbr-0"
@@ -467,7 +455,7 @@ var colorStyles$1 = function colorStyles(props) {
467
455
  };
468
456
  var StyledButton = styled.button.attrs({
469
457
  'data-garden-id': COMPONENT_ID$8,
470
- 'data-garden-version': '8.47.1'
458
+ 'data-garden-version': '8.48.2'
471
459
  }).withConfig({
472
460
  displayName: "StyledButton",
473
461
  componentId: "sc-xj3hy7-0"
@@ -493,7 +481,7 @@ StyledButton.defaultProps = {
493
481
  var COMPONENT_ID$7 = 'accordions.step_inner_panel';
494
482
  var StyledInnerPanel = styled.div.attrs({
495
483
  'data-garden-id': COMPONENT_ID$7,
496
- 'data-garden-version': '8.47.1'
484
+ 'data-garden-version': '8.48.2'
497
485
  }).withConfig({
498
486
  displayName: "StyledInnerPanel",
499
487
  componentId: "sc-8nbueg-0"
@@ -534,7 +522,7 @@ function (_ref) {
534
522
  return cloneElement(Children.only(children), props);
535
523
  }).attrs({
536
524
  'data-garden-id': COMPONENT_ID$6,
537
- 'data-garden-version': '8.47.1'
525
+ 'data-garden-version': '8.48.2'
538
526
  }).withConfig({
539
527
  displayName: "StyledRotateIcon",
540
528
  componentId: "sc-hp435q-0"
@@ -556,7 +544,7 @@ StyledRotateIcon.defaultProps = {
556
544
  var COMPONENT_ID$5 = 'timeline';
557
545
  var StyledTimeline = styled.ol.attrs({
558
546
  'data-garden-id': COMPONENT_ID$5,
559
- 'data-garden-version': '8.47.1'
547
+ 'data-garden-version': '8.48.2'
560
548
  }).withConfig({
561
549
  displayName: "StyledTimeline",
562
550
  componentId: "sc-pig5kv-0"
@@ -570,7 +558,7 @@ StyledTimeline.defaultProps = {
570
558
  var COMPONENT_ID$4 = 'timeline.content.separator';
571
559
  var StyledSeparator = styled.div.attrs({
572
560
  'data-garden-id': COMPONENT_ID$4,
573
- 'data-garden-version': '8.47.1'
561
+ 'data-garden-version': '8.48.2'
574
562
  }).withConfig({
575
563
  displayName: "StyledSeparator",
576
564
  componentId: "sc-fki51e-0"
@@ -588,7 +576,7 @@ StyledSeparator.defaultProps = {
588
576
  var COMPONENT_ID$3 = 'timeline.content';
589
577
  var StyledTimelineContent = styled.div.attrs({
590
578
  'data-garden-id': COMPONENT_ID$3,
591
- 'data-garden-version': '8.47.1'
579
+ 'data-garden-version': '8.48.2'
592
580
  }).withConfig({
593
581
  displayName: "StyledContent__StyledTimelineContent",
594
582
  componentId: "sc-19phgu1-0"
@@ -604,7 +592,7 @@ StyledTimelineContent.defaultProps = {
604
592
  var COMPONENT_ID$2 = 'timeline.opposite.content';
605
593
  var StyledOppositeContent = styled.div.attrs({
606
594
  'data-garden-id': COMPONENT_ID$2,
607
- 'data-garden-version': '8.47.1'
595
+ 'data-garden-version': '8.48.2'
608
596
  }).withConfig({
609
597
  displayName: "StyledOppositeContent",
610
598
  componentId: "sc-jurh2k-0"
@@ -622,7 +610,7 @@ StyledOppositeContent.defaultProps = {
622
610
  var COMPONENT_ID$1 = 'timeline.item';
623
611
  var StyledTimelineItem = styled.li.attrs({
624
612
  'data-garden-id': COMPONENT_ID$1,
625
- 'data-garden-version': '8.47.1'
613
+ 'data-garden-version': '8.48.2'
626
614
  }).withConfig({
627
615
  displayName: "StyledItem__StyledTimelineItem",
628
616
  componentId: "sc-5mcnzm-0"
@@ -646,7 +634,7 @@ var StyledItemIcon = styled(function (_ref) {
646
634
  return cloneElement(Children.only(children), props);
647
635
  }).attrs({
648
636
  'data-garden-id': COMPONENT_ID,
649
- 'data-garden-version': '8.47.1'
637
+ 'data-garden-version': '8.48.2'
650
638
  }).withConfig({
651
639
  displayName: "StyledItemIcon",
652
640
  componentId: "sc-vz2l6e-0"
@@ -730,7 +718,7 @@ var useTimelineItemContext = function useTimelineItemContext() {
730
718
  return context;
731
719
  };
732
720
 
733
- var Step = forwardRef(function (props, ref) {
721
+ var StepComponent = forwardRef(function (props, ref) {
734
722
  var _useStepperContext = useStepperContext(),
735
723
  currentIndexRef = _useStepperContext.currentIndexRef,
736
724
  isHorizontal = _useStepperContext.isHorizontal;
@@ -758,31 +746,32 @@ var Step = forwardRef(function (props, ref) {
758
746
  isHorizontal: isHorizontal
759
747
  }, props), isHorizontal && React__default.createElement(StyledLine, null), props.children));
760
748
  });
761
- Step.displayName = 'Step';
749
+ StepComponent.displayName = 'Stepper.Step';
750
+ var Step = StepComponent;
762
751
 
763
- function _extends$2() { _extends$2 = Object.assign || 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); }
752
+ var _path$1;
764
753
 
765
- var _ref$2 = /*#__PURE__*/React.createElement("path", {
766
- fill: "none",
767
- stroke: "currentColor",
768
- strokeLinecap: "round",
769
- strokeLinejoin: "round",
770
- strokeWidth: 1.25,
771
- d: "M3 9l3 3 7-7"
772
- });
754
+ function _extends$2() { _extends$2 = Object.assign || 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); }
773
755
 
774
- function SvgCheckSmStroke(props) {
756
+ var SvgCheckSmStroke = function SvgCheckSmStroke(props) {
775
757
  return /*#__PURE__*/React.createElement("svg", _extends$2({
776
758
  xmlns: "http://www.w3.org/2000/svg",
777
759
  width: 16,
778
760
  height: 16,
779
- viewBox: "0 0 16 16",
780
761
  focusable: "false",
781
- role: "presentation"
782
- }, props), _ref$2);
783
- }
762
+ viewBox: "0 0 16 16",
763
+ "aria-hidden": "true"
764
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
765
+ fill: "none",
766
+ stroke: "currentColor",
767
+ strokeLinecap: "round",
768
+ strokeLinejoin: "round",
769
+ strokeWidth: 1.25,
770
+ d: "M3 9l3 3 7-7"
771
+ })));
772
+ };
784
773
 
785
- var Label$1 = forwardRef(function (props, ref) {
774
+ var LabelComponent$1 = forwardRef(function (props, ref) {
786
775
  var _useStepContext = useStepContext(),
787
776
  currentStepIndex = _useStepContext.currentStepIndex;
788
777
  var _useStepperContext = useStepperContext(),
@@ -805,13 +794,14 @@ var Label$1 = forwardRef(function (props, ref) {
805
794
  isHorizontal: isHorizontal
806
795
  }, props.children));
807
796
  });
808
- Label$1.displayName = 'Label';
809
- Label$1.propTypes = {
797
+ LabelComponent$1.displayName = 'Stepper.Label';
798
+ LabelComponent$1.propTypes = {
810
799
  icon: PropTypes.node,
811
800
  isHidden: PropTypes.bool
812
801
  };
802
+ var Label$1 = LabelComponent$1;
813
803
 
814
- var Content$1 = forwardRef(function (props, ref) {
804
+ var ContentComponent$1 = forwardRef(function (props, ref) {
815
805
  var contentRef = useRef();
816
806
  var _useStepperContext = useStepperContext(),
817
807
  activeIndex = _useStepperContext.activeIndex,
@@ -842,17 +832,18 @@ var Content$1 = forwardRef(function (props, ref) {
842
832
  isActive: isActive
843
833
  }, props.children)) : null;
844
834
  });
845
- Content$1.displayName = 'Content';
835
+ ContentComponent$1.displayName = 'Stepper.Content';
836
+ var Content$1 = ContentComponent$1;
846
837
 
847
838
  var _excluded$4 = ["isHorizontal", "activeIndex"];
848
- var Stepper = forwardRef(function (_ref, ref) {
839
+ var StepperComponent = forwardRef(function (_ref, ref) {
849
840
  var isHorizontal = _ref.isHorizontal,
850
841
  activeIndex = _ref.activeIndex,
851
842
  props = _objectWithoutProperties(_ref, _excluded$4);
852
843
  var currentIndexRef = useRef(0);
853
844
  var stepperContext = useMemo(function () {
854
845
  return {
855
- isHorizontal: isHorizontal,
846
+ isHorizontal: isHorizontal || false,
856
847
  activeIndex: activeIndex,
857
848
  currentIndexRef: currentIndexRef
858
849
  };
@@ -867,16 +858,16 @@ var Stepper = forwardRef(function (_ref, ref) {
867
858
  isHorizontal: isHorizontal
868
859
  }, props)));
869
860
  });
870
- Stepper.Step = Step;
871
- Stepper.Label = Label$1;
872
- Stepper.Content = Content$1;
873
- Stepper.displayName = 'Stepper';
874
- Stepper.defaultProps = {
875
- activeIndex: 0,
876
- isHorizontal: false
861
+ StepperComponent.displayName = 'Stepper';
862
+ StepperComponent.defaultProps = {
863
+ activeIndex: 0
877
864
  };
865
+ var Stepper = StepperComponent;
866
+ Stepper.Content = Content$1;
867
+ Stepper.Label = Label$1;
868
+ Stepper.Step = Step;
878
869
 
879
- var Section = forwardRef(function (props, ref) {
870
+ var SectionComponent = forwardRef(function (props, ref) {
880
871
  var _useAccordionContext = useAccordionContext(),
881
872
  currentIndexRef = _useAccordionContext.currentIndexRef;
882
873
  var sectionIndexRef = useRef(currentIndexRef.current++);
@@ -887,29 +878,30 @@ var Section = forwardRef(function (props, ref) {
887
878
  ref: ref
888
879
  }, props)));
889
880
  });
890
- Section.displayName = 'Section';
881
+ SectionComponent.displayName = 'Accordion.Section';
882
+ var Section = SectionComponent;
891
883
 
892
- function _extends$1() { _extends$1 = Object.assign || 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); }
884
+ var _path;
893
885
 
894
- var _ref$1 = /*#__PURE__*/React.createElement("path", {
895
- fill: "currentColor",
896
- d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
897
- });
886
+ function _extends$1() { _extends$1 = Object.assign || 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); }
898
887
 
899
- function SvgChevronDownStroke(props) {
888
+ var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
900
889
  return /*#__PURE__*/React.createElement("svg", _extends$1({
901
890
  xmlns: "http://www.w3.org/2000/svg",
902
891
  width: 16,
903
892
  height: 16,
904
- viewBox: "0 0 16 16",
905
893
  focusable: "false",
906
- role: "presentation"
907
- }, props), _ref$1);
908
- }
894
+ viewBox: "0 0 16 16",
895
+ "aria-hidden": "true"
896
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
897
+ fill: "currentColor",
898
+ d: "M12.688 5.61a.5.5 0 01.69.718l-.066.062-5 4a.5.5 0 01-.542.054l-.082-.054-5-4a.5.5 0 01.55-.83l.074.05L8 9.359l4.688-3.75z"
899
+ })));
900
+ };
909
901
 
910
902
  var _excluded$3 = ["onClick", "onFocus", "onBlur", "onMouseOver", "onMouseOut", "children"],
911
903
  _excluded2 = ["onClick", "onKeyDown"];
912
- var Header = forwardRef(function (props, ref) {
904
+ var HeaderComponent = forwardRef(function (props, ref) {
913
905
  var _useAccordionContext = useAccordionContext(),
914
906
  ariaLevel = _useAccordionContext.level,
915
907
  isCompact = _useAccordionContext.isCompact,
@@ -990,9 +982,10 @@ var Header = forwardRef(function (props, ref) {
990
982
  })
991
983
  }, React__default.createElement(SvgChevronDownStroke, null))));
992
984
  });
993
- Header.displayName = 'Header';
985
+ HeaderComponent.displayName = 'Accordion.Header';
986
+ var Header = HeaderComponent;
994
987
 
995
- var Label = forwardRef(function (props, ref) {
988
+ var LabelComponent = forwardRef(function (props, ref) {
996
989
  var sectionIndex = useSectionContext();
997
990
  var _useAccordionContext = useAccordionContext(),
998
991
  isCompact = _useAccordionContext.isCompact,
@@ -1010,9 +1003,10 @@ var Label = forwardRef(function (props, ref) {
1010
1003
  isCollapsible: isCollapsible
1011
1004
  }, otherTriggerProps, props));
1012
1005
  });
1013
- Label.displayName = 'Label';
1006
+ LabelComponent.displayName = 'Accordion.Label';
1007
+ var Label = LabelComponent;
1014
1008
 
1015
- var Panel = forwardRef(function (props, ref) {
1009
+ var PanelComponent = forwardRef(function (props, ref) {
1016
1010
  var _useAccordionContext = useAccordionContext(),
1017
1011
  isCompact = _useAccordionContext.isCompact,
1018
1012
  isBare = _useAccordionContext.isBare,
@@ -1051,10 +1045,11 @@ var Panel = forwardRef(function (props, ref) {
1051
1045
  isAnimated: isAnimated
1052
1046
  }, props.children));
1053
1047
  });
1054
- Panel.displayName = 'Panel';
1048
+ PanelComponent.displayName = 'Accordion.Panel';
1049
+ var Panel = PanelComponent;
1055
1050
 
1056
1051
  var _excluded$2 = ["level", "isBare", "onChange", "isCompact", "isAnimated", "isExpandable", "isCollapsible", "defaultExpandedSections", "expandedSections"];
1057
- var Accordion = forwardRef(function (_ref, ref) {
1052
+ var AccordionComponent = forwardRef(function (_ref, ref) {
1058
1053
  var level = _ref.level,
1059
1054
  isBare = _ref.isBare,
1060
1055
  onChange = _ref.onChange,
@@ -1067,7 +1062,7 @@ var Accordion = forwardRef(function (_ref, ref) {
1067
1062
  props = _objectWithoutProperties(_ref, _excluded$2);
1068
1063
  var _useAccordion = useAccordion({
1069
1064
  collapsible: isCollapsible,
1070
- expandable: isExpandable,
1065
+ expandable: isExpandable || false,
1071
1066
  onChange: onChange,
1072
1067
  defaultExpandedSections: defaultExpandedSections,
1073
1068
  expandedSections: controlledExpandedSections
@@ -1100,25 +1095,27 @@ var Accordion = forwardRef(function (_ref, ref) {
1100
1095
  ref: ref
1101
1096
  }, props)));
1102
1097
  });
1103
- Accordion.Section = Section;
1098
+ AccordionComponent.displayName = 'Accordion';
1099
+ AccordionComponent.defaultProps = {
1100
+ isAnimated: true,
1101
+ isCollapsible: true
1102
+ };
1103
+ var Accordion = AccordionComponent;
1104
1104
  Accordion.Header = Header;
1105
1105
  Accordion.Label = Label;
1106
1106
  Accordion.Panel = Panel;
1107
- Accordion.displayName = 'Accordion';
1108
- Accordion.defaultProps = {
1109
- isBare: false,
1110
- isCompact: false,
1111
- isAnimated: true,
1112
- isCollapsible: true,
1113
- isExpandable: false,
1114
- expandedSections: undefined,
1115
- onChange: function onChange() {
1116
- return undefined;
1117
- }
1118
- };
1107
+ Accordion.Section = Section;
1108
+
1109
+ var OppositeContentComponent = forwardRef(function (props, ref) {
1110
+ return React__default.createElement(StyledOppositeContent, _extends$3({
1111
+ ref: ref
1112
+ }, props));
1113
+ });
1114
+ OppositeContentComponent.displayName = 'Timeline.OppositeContent';
1115
+ var OppositeContent = OppositeContentComponent;
1119
1116
 
1120
1117
  var _excluded$1 = ["icon", "surfaceColor"];
1121
- var Item = forwardRef(function (_ref, ref) {
1118
+ var ItemComponent = forwardRef(function (_ref, ref) {
1122
1119
  var icon = _ref.icon,
1123
1120
  surfaceColor = _ref.surfaceColor,
1124
1121
  props = _objectWithoutProperties(_ref, _excluded$1);
@@ -1133,7 +1130,7 @@ var Item = forwardRef(function (_ref, ref) {
1133
1130
  var hasOppositeContent = false;
1134
1131
  Children.forEach(props.children, function (child) {
1135
1132
  if (child) {
1136
- if (child.type === Timeline.OppositeContent) {
1133
+ if (child.type === OppositeContent) {
1137
1134
  hasOppositeContent = true;
1138
1135
  }
1139
1136
  }
@@ -1146,30 +1143,31 @@ var Item = forwardRef(function (_ref, ref) {
1146
1143
  hasOppositeContent: hasOppositeContent
1147
1144
  }, props)));
1148
1145
  });
1149
- Item.displayName = 'Item';
1146
+ ItemComponent.displayName = 'Timeline.Item';
1147
+ var Item = ItemComponent;
1150
1148
 
1151
- function _extends() { _extends = Object.assign || 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); }
1149
+ var _circle;
1152
1150
 
1153
- var _ref = /*#__PURE__*/React.createElement("circle", {
1154
- cx: 6,
1155
- cy: 6,
1156
- r: 4.5,
1157
- fill: "none",
1158
- stroke: "currentColor"
1159
- });
1151
+ function _extends() { _extends = Object.assign || 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); }
1160
1152
 
1161
- function SvgCircleFullStroke(props) {
1153
+ var SvgCircleFullStroke = function SvgCircleFullStroke(props) {
1162
1154
  return /*#__PURE__*/React.createElement("svg", _extends({
1163
1155
  xmlns: "http://www.w3.org/2000/svg",
1164
1156
  width: 12,
1165
1157
  height: 12,
1166
- viewBox: "0 0 12 12",
1167
1158
  focusable: "false",
1168
- role: "presentation"
1169
- }, props), _ref);
1170
- }
1159
+ viewBox: "0 0 12 12",
1160
+ "aria-hidden": "true"
1161
+ }, props), _circle || (_circle = /*#__PURE__*/React.createElement("circle", {
1162
+ cx: 6,
1163
+ cy: 6,
1164
+ r: 4.5,
1165
+ fill: "none",
1166
+ stroke: "currentColor"
1167
+ })));
1168
+ };
1171
1169
 
1172
- var Content = forwardRef(function (props, ref) {
1170
+ var ContentComponent = forwardRef(function (props, ref) {
1173
1171
  var _useTimelineItemConte = useTimelineItemContext(),
1174
1172
  icon = _useTimelineItemConte.icon,
1175
1173
  surfaceColor = _useTimelineItemConte.surfaceColor;
@@ -1179,17 +1177,11 @@ var Content = forwardRef(function (props, ref) {
1179
1177
  ref: ref
1180
1178
  }, props)));
1181
1179
  });
1182
- Content.displayName = 'Content';
1183
-
1184
- var OppositeContent = forwardRef(function (props, ref) {
1185
- return React__default.createElement(StyledOppositeContent, _extends$3({
1186
- ref: ref
1187
- }, props));
1188
- });
1189
- OppositeContent.displayName = 'OppositeContent';
1180
+ ContentComponent.displayName = 'Timeline.Content';
1181
+ var Content = ContentComponent;
1190
1182
 
1191
1183
  var _excluded = ["isAlternate"];
1192
- var Timeline = forwardRef(function (_ref, ref) {
1184
+ var TimelineComponent = forwardRef(function (_ref, ref) {
1193
1185
  var isAlternate = _ref.isAlternate,
1194
1186
  props = _objectWithoutProperties(_ref, _excluded);
1195
1187
  var value = useMemo(function () {
@@ -1203,9 +1195,10 @@ var Timeline = forwardRef(function (_ref, ref) {
1203
1195
  ref: ref
1204
1196
  }, props)));
1205
1197
  });
1206
- Timeline.Item = Item;
1198
+ TimelineComponent.displayName = 'Timeline';
1199
+ var Timeline = TimelineComponent;
1207
1200
  Timeline.Content = Content;
1201
+ Timeline.Item = Item;
1208
1202
  Timeline.OppositeContent = OppositeContent;
1209
- Timeline.displayName = 'Timeline';
1210
1203
 
1211
1204
  export { Accordion, Stepper, Timeline };
@@ -4,18 +4,12 @@
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 { RefAttributes, HTMLAttributes, PropsWithoutRef, ForwardRefExoticComponent } from 'react';
7
+ import React, { HTMLAttributes } from 'react';
8
8
  import { Section } from '../accordion/components/Section';
9
9
  import { Header } from '../accordion/components/Header';
10
10
  import { Label } from '../accordion/components/Label';
11
11
  import { Panel } from '../accordion/components/Panel';
12
- interface IStaticAccordionExport<T, P> extends ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>> {
13
- Section: typeof Section;
14
- Header: typeof Header;
15
- Label: typeof Label;
16
- Panel: typeof Panel;
17
- }
18
- interface IAccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
12
+ export interface IAccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
19
13
  /** Sets `aria-level` heading rank in the document structure */
20
14
  level: number;
21
15
  /** Sets the expanded sections in a controlled accordion */
@@ -42,5 +36,9 @@ interface IAccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange
42
36
  /**
43
37
  * @extends HTMLAttributes<HTMLDivElement>
44
38
  */
45
- export declare const Accordion: IStaticAccordionExport<HTMLDivElement, IAccordionProps>;
46
- export {};
39
+ export declare const Accordion: React.ForwardRefExoticComponent<IAccordionProps & React.RefAttributes<HTMLDivElement>> & {
40
+ Header: typeof Header;
41
+ Label: typeof Label;
42
+ Panel: typeof Panel;
43
+ Section: typeof Section;
44
+ };
@@ -5,4 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import React from 'react';
8
+ /**
9
+ * @extends HTMLAttributes<HTMLDivElement>
10
+ */
8
11
  export declare const Header: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -5,4 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import React from 'react';
8
+ /**
9
+ * @extends ButtonHTMLAttributes<HTMLButtonElement>
10
+ */
8
11
  export declare const Label: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
@@ -5,4 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import React from 'react';
8
+ /**
9
+ * @extends HTMLAttributes<HTMLElement>
10
+ */
8
11
  export declare const Panel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
@@ -5,4 +5,7 @@
5
5
  * found at http://www.apache.org/licenses/LICENSE-2.0.
6
6
  */
7
7
  import React from 'react';
8
+ /**
9
+ * @extends HTMLAttributes<HTMLElement>
10
+ */
8
11
  export declare const Section: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
@@ -4,16 +4,11 @@
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 { OlHTMLAttributes, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react';
7
+ import React, { OlHTMLAttributes } from 'react';
8
8
  import { Step } from './components/Step';
9
9
  import { Label } from './components/Label';
10
10
  import { Content } from './components/Content';
11
- interface IStaticStepperExport<T, P> extends ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>> {
12
- Step: typeof Step;
13
- Label: typeof Label;
14
- Content: typeof Content;
15
- }
16
- interface IStepperProps extends OlHTMLAttributes<HTMLOListElement> {
11
+ export interface IStepperProps extends OlHTMLAttributes<HTMLOListElement> {
17
12
  /** Defines the currently active step, starting at 0 */
18
13
  activeIndex?: number;
19
14
  /** Applies horizontal layout styling */
@@ -22,5 +17,8 @@ interface IStepperProps extends OlHTMLAttributes<HTMLOListElement> {
22
17
  /**
23
18
  * @extends OlHTMLAttributes<HTMLOListElement>
24
19
  */
25
- export declare const Stepper: IStaticStepperExport<HTMLDivElement, IStepperProps>;
26
- export {};
20
+ export declare const Stepper: React.ForwardRefExoticComponent<IStepperProps & React.RefAttributes<HTMLOListElement>> & {
21
+ Content: typeof Content;
22
+ Label: typeof Label;
23
+ Step: typeof Step;
24
+ };