@zendeskgarden/react-accordions 8.46.0 → 8.48.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 +182 -183
- package/dist/index.esm.js +123 -122
- package/dist/typings/elements/accordion/Accordion.d.ts +8 -10
- package/dist/typings/elements/accordion/components/Header.d.ts +3 -0
- package/dist/typings/elements/accordion/components/Label.d.ts +3 -0
- package/dist/typings/elements/accordion/components/Panel.d.ts +3 -0
- package/dist/typings/elements/accordion/components/Section.d.ts +3 -0
- package/dist/typings/elements/stepper/Stepper.d.ts +7 -9
- package/dist/typings/elements/stepper/components/Content.d.ts +3 -0
- package/dist/typings/elements/stepper/components/Label.d.ts +8 -6
- package/dist/typings/elements/stepper/components/Step.d.ts +3 -0
- package/dist/typings/elements/timeline/Timeline.d.ts +8 -10
- package/dist/typings/elements/timeline/components/Content.d.ts +3 -0
- package/dist/typings/elements/timeline/components/Item.d.ts +12 -5
- package/dist/typings/elements/timeline/components/OppositeContent.d.ts +3 -0
- package/dist/typings/index.d.ts +4 -1
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -30,14 +30,12 @@ function _interopNamespace(e) {
|
|
|
30
30
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
31
31
|
Object.defineProperty(n, k, d.get ? d : {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () {
|
|
34
|
-
return e[k];
|
|
35
|
-
}
|
|
33
|
+
get: function () { return e[k]; }
|
|
36
34
|
});
|
|
37
35
|
}
|
|
38
36
|
});
|
|
39
37
|
}
|
|
40
|
-
n[
|
|
38
|
+
n["default"] = e;
|
|
41
39
|
return Object.freeze(n);
|
|
42
40
|
}
|
|
43
41
|
|
|
@@ -53,14 +51,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
53
51
|
|
|
54
52
|
if (Object.getOwnPropertySymbols) {
|
|
55
53
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
keys.push.apply(keys, symbols);
|
|
54
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
55
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
56
|
+
})), keys.push.apply(keys, symbols);
|
|
64
57
|
}
|
|
65
58
|
|
|
66
59
|
return keys;
|
|
@@ -68,19 +61,12 @@ function ownKeys(object, enumerableOnly) {
|
|
|
68
61
|
|
|
69
62
|
function _objectSpread2(target) {
|
|
70
63
|
for (var i = 1; i < arguments.length; i++) {
|
|
71
|
-
var source = arguments[i]
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
78
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
79
|
-
} else {
|
|
80
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
81
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
82
|
-
});
|
|
83
|
-
}
|
|
64
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
65
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
66
|
+
_defineProperty(target, key, source[key]);
|
|
67
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
68
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
69
|
+
});
|
|
84
70
|
}
|
|
85
71
|
|
|
86
72
|
return target;
|
|
@@ -227,9 +213,9 @@ var sizeStyles$1 = function sizeStyles(props) {
|
|
|
227
213
|
var marginVertical = space.base * 3;
|
|
228
214
|
return styled.css(["margin:", "px ", "px ", "px ", "px;padding:0 ", "px ", "px ", "px;"], marginVertical, marginRight, marginVertical, marginLeft, paddingRight, paddingBottom, paddingLeft);
|
|
229
215
|
};
|
|
230
|
-
var StyledContent = styled__default[
|
|
216
|
+
var StyledContent = styled__default["default"].div.attrs({
|
|
231
217
|
'data-garden-id': COMPONENT_ID$k,
|
|
232
|
-
'data-garden-version': '8.
|
|
218
|
+
'data-garden-version': '8.48.0'
|
|
233
219
|
}).withConfig({
|
|
234
220
|
displayName: "StyledContent",
|
|
235
221
|
componentId: "sc-mazvvo-0"
|
|
@@ -243,9 +229,9 @@ StyledContent.defaultProps = {
|
|
|
243
229
|
};
|
|
244
230
|
|
|
245
231
|
var COMPONENT_ID$j = 'accordions.step_line';
|
|
246
|
-
var StyledLine = styled__default[
|
|
232
|
+
var StyledLine = styled__default["default"].div.attrs({
|
|
247
233
|
'data-garden-id': COMPONENT_ID$j,
|
|
248
|
-
'data-garden-version': '8.
|
|
234
|
+
'data-garden-version': '8.48.0'
|
|
249
235
|
}).withConfig({
|
|
250
236
|
displayName: "StyledLine",
|
|
251
237
|
componentId: "sc-1gkpjbr-0"
|
|
@@ -265,9 +251,9 @@ StyledLine.defaultProps = {
|
|
|
265
251
|
};
|
|
266
252
|
|
|
267
253
|
var COMPONENT_ID$i = 'accordions.step';
|
|
268
|
-
var StyledStep = styled__default[
|
|
254
|
+
var StyledStep = styled__default["default"].li.attrs({
|
|
269
255
|
'data-garden-id': COMPONENT_ID$i,
|
|
270
|
-
'data-garden-version': '8.
|
|
256
|
+
'data-garden-version': '8.48.0'
|
|
271
257
|
}).withConfig({
|
|
272
258
|
displayName: "StyledStep",
|
|
273
259
|
componentId: "sc-12fiwtz-0"
|
|
@@ -295,9 +281,9 @@ StyledStep.defaultProps = {
|
|
|
295
281
|
};
|
|
296
282
|
|
|
297
283
|
var COMPONENT_ID$h = 'accordions.step_inner_content';
|
|
298
|
-
var StyledInnerContent = styled__default[
|
|
284
|
+
var StyledInnerContent = styled__default["default"].div.attrs({
|
|
299
285
|
'data-garden-id': COMPONENT_ID$h,
|
|
300
|
-
'data-garden-version': '8.
|
|
286
|
+
'data-garden-version': '8.48.0'
|
|
301
287
|
}).withConfig({
|
|
302
288
|
displayName: "StyledInnerContent",
|
|
303
289
|
componentId: "sc-1xs9fh7-0"
|
|
@@ -317,9 +303,9 @@ StyledInnerContent.defaultProps = {
|
|
|
317
303
|
};
|
|
318
304
|
|
|
319
305
|
var COMPONENT_ID$g = 'accordions.stepper';
|
|
320
|
-
var StyledStepper = styled__default[
|
|
306
|
+
var StyledStepper = styled__default["default"].ol.attrs({
|
|
321
307
|
'data-garden-id': COMPONENT_ID$g,
|
|
322
|
-
'data-garden-version': '8.
|
|
308
|
+
'data-garden-version': '8.48.0'
|
|
323
309
|
}).withConfig({
|
|
324
310
|
displayName: "StyledStepper",
|
|
325
311
|
componentId: "sc-dsxw0f-0"
|
|
@@ -333,7 +319,7 @@ StyledStepper.defaultProps = {
|
|
|
333
319
|
};
|
|
334
320
|
|
|
335
321
|
var COMPONENT_ID$f = 'accordions.step_icon';
|
|
336
|
-
var StyledIconFlexContainer = styled__default[
|
|
322
|
+
var StyledIconFlexContainer = styled__default["default"].div.withConfig({
|
|
337
323
|
displayName: "StyledIcon__StyledIconFlexContainer",
|
|
338
324
|
componentId: "sc-v20nz9-0"
|
|
339
325
|
})(["display:flex;flex-basis:100%;justify-content:center;width:100%;"]);
|
|
@@ -345,9 +331,9 @@ var sizeStyles = function sizeStyles(props) {
|
|
|
345
331
|
var colorStyles$2 = function colorStyles(props) {
|
|
346
332
|
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);
|
|
347
333
|
};
|
|
348
|
-
var StyledIcon = styled__default[
|
|
334
|
+
var StyledIcon = styled__default["default"].div.attrs({
|
|
349
335
|
'data-garden-id': COMPONENT_ID$f,
|
|
350
|
-
'data-garden-version': '8.
|
|
336
|
+
'data-garden-version': '8.48.0'
|
|
351
337
|
}).withConfig({
|
|
352
338
|
displayName: "StyledIcon",
|
|
353
339
|
componentId: "sc-v20nz9-1"
|
|
@@ -362,9 +348,9 @@ StyledIcon.defaultProps = {
|
|
|
362
348
|
};
|
|
363
349
|
|
|
364
350
|
var COMPONENT_ID$e = 'accordions.step_label';
|
|
365
|
-
var StyledLabel = styled__default[
|
|
351
|
+
var StyledLabel = styled__default["default"].div.attrs({
|
|
366
352
|
'data-garden-id': COMPONENT_ID$e,
|
|
367
|
-
'data-garden-version': '8.
|
|
353
|
+
'data-garden-version': '8.48.0'
|
|
368
354
|
}).withConfig({
|
|
369
355
|
displayName: "StyledLabel",
|
|
370
356
|
componentId: "sc-1o82llj-0"
|
|
@@ -390,9 +376,9 @@ StyledLabel.defaultProps = {
|
|
|
390
376
|
};
|
|
391
377
|
|
|
392
378
|
var COMPONENT_ID$d = 'accordions.step_label_text';
|
|
393
|
-
var StyledLabelText = styled__default[
|
|
379
|
+
var StyledLabelText = styled__default["default"].div.attrs({
|
|
394
380
|
'data-garden-id': COMPONENT_ID$d,
|
|
395
|
-
'data-garden-version': '8.
|
|
381
|
+
'data-garden-version': '8.48.0'
|
|
396
382
|
}).withConfig({
|
|
397
383
|
displayName: "StyledLabelText",
|
|
398
384
|
componentId: "sc-111m5zo-0"
|
|
@@ -408,9 +394,9 @@ StyledLabelText.defaultProps = {
|
|
|
408
394
|
};
|
|
409
395
|
|
|
410
396
|
var COMPONENT_ID$c = 'accordions.accordion';
|
|
411
|
-
var StyledAccordion = styled__default[
|
|
397
|
+
var StyledAccordion = styled__default["default"].div.attrs({
|
|
412
398
|
'data-garden-id': COMPONENT_ID$c,
|
|
413
|
-
'data-garden-version': '8.
|
|
399
|
+
'data-garden-version': '8.48.0'
|
|
414
400
|
}).withConfig({
|
|
415
401
|
displayName: "StyledAccordion",
|
|
416
402
|
componentId: "sc-niv9ic-0"
|
|
@@ -438,9 +424,9 @@ var paddingStyles = function paddingStyles(props) {
|
|
|
438
424
|
}
|
|
439
425
|
return styled.css(["transition:", ";padding:", "px ", "px ", "px;"], props.isAnimated && 'padding 0.25s ease-in-out', paddingTop, paddingHorizontal, paddingBottom);
|
|
440
426
|
};
|
|
441
|
-
var StyledPanel = styled__default[
|
|
427
|
+
var StyledPanel = styled__default["default"].section.attrs({
|
|
442
428
|
'data-garden-id': COMPONENT_ID$b,
|
|
443
|
-
'data-garden-version': '8.
|
|
429
|
+
'data-garden-version': '8.48.0'
|
|
444
430
|
}).withConfig({
|
|
445
431
|
displayName: "StyledPanel",
|
|
446
432
|
componentId: "sc-1piryze-0"
|
|
@@ -455,9 +441,9 @@ StyledPanel.defaultProps = {
|
|
|
455
441
|
};
|
|
456
442
|
|
|
457
443
|
var COMPONENT_ID$a = 'accordions.section';
|
|
458
|
-
var StyledSection = styled__default[
|
|
444
|
+
var StyledSection = styled__default["default"].div.attrs({
|
|
459
445
|
'data-garden-id': COMPONENT_ID$a,
|
|
460
|
-
'data-garden-version': '8.
|
|
446
|
+
'data-garden-version': '8.48.0'
|
|
461
447
|
}).withConfig({
|
|
462
448
|
displayName: "StyledSection",
|
|
463
449
|
componentId: "sc-v2t9bd-0"
|
|
@@ -469,9 +455,9 @@ StyledSection.defaultProps = {
|
|
|
469
455
|
};
|
|
470
456
|
|
|
471
457
|
var COMPONENT_ID$9 = 'accordions.header';
|
|
472
|
-
var StyledHeader = styled__default[
|
|
458
|
+
var StyledHeader = styled__default["default"].div.attrs({
|
|
473
459
|
'data-garden-id': COMPONENT_ID$9,
|
|
474
|
-
'data-garden-version': '8.
|
|
460
|
+
'data-garden-version': '8.48.0'
|
|
475
461
|
}).withConfig({
|
|
476
462
|
displayName: "StyledHeader",
|
|
477
463
|
componentId: "sc-2c6rbr-0"
|
|
@@ -497,9 +483,9 @@ var colorStyles$1 = function colorStyles(props) {
|
|
|
497
483
|
}
|
|
498
484
|
return styled.css(["color:", ";&:hover{cursor:", ";color:", ";}"], color, showColor && 'pointer', showColor && color);
|
|
499
485
|
};
|
|
500
|
-
var StyledButton = styled__default[
|
|
486
|
+
var StyledButton = styled__default["default"].button.attrs({
|
|
501
487
|
'data-garden-id': COMPONENT_ID$8,
|
|
502
|
-
'data-garden-version': '8.
|
|
488
|
+
'data-garden-version': '8.48.0'
|
|
503
489
|
}).withConfig({
|
|
504
490
|
displayName: "StyledButton",
|
|
505
491
|
componentId: "sc-xj3hy7-0"
|
|
@@ -523,9 +509,9 @@ StyledButton.defaultProps = {
|
|
|
523
509
|
};
|
|
524
510
|
|
|
525
511
|
var COMPONENT_ID$7 = 'accordions.step_inner_panel';
|
|
526
|
-
var StyledInnerPanel = styled__default[
|
|
512
|
+
var StyledInnerPanel = styled__default["default"].div.attrs({
|
|
527
513
|
'data-garden-id': COMPONENT_ID$7,
|
|
528
|
-
'data-garden-version': '8.
|
|
514
|
+
'data-garden-version': '8.48.0'
|
|
529
515
|
}).withConfig({
|
|
530
516
|
displayName: "StyledInnerPanel",
|
|
531
517
|
componentId: "sc-8nbueg-0"
|
|
@@ -555,7 +541,7 @@ var colorStyles = function colorStyles(props) {
|
|
|
555
541
|
}
|
|
556
542
|
return styled.css(["color:", ";&:hover{color:", ";}"], color, showColor && color);
|
|
557
543
|
};
|
|
558
|
-
var StyledRotateIcon = styled__default[
|
|
544
|
+
var StyledRotateIcon = styled__default["default"](
|
|
559
545
|
function (_ref) {
|
|
560
546
|
var children = _ref.children;
|
|
561
547
|
_ref.isRotated;
|
|
@@ -566,7 +552,7 @@ function (_ref) {
|
|
|
566
552
|
return React.cloneElement(React.Children.only(children), props);
|
|
567
553
|
}).attrs({
|
|
568
554
|
'data-garden-id': COMPONENT_ID$6,
|
|
569
|
-
'data-garden-version': '8.
|
|
555
|
+
'data-garden-version': '8.48.0'
|
|
570
556
|
}).withConfig({
|
|
571
557
|
displayName: "StyledRotateIcon",
|
|
572
558
|
componentId: "sc-hp435q-0"
|
|
@@ -586,9 +572,9 @@ StyledRotateIcon.defaultProps = {
|
|
|
586
572
|
};
|
|
587
573
|
|
|
588
574
|
var COMPONENT_ID$5 = 'timeline';
|
|
589
|
-
var StyledTimeline = styled__default[
|
|
575
|
+
var StyledTimeline = styled__default["default"].ol.attrs({
|
|
590
576
|
'data-garden-id': COMPONENT_ID$5,
|
|
591
|
-
'data-garden-version': '8.
|
|
577
|
+
'data-garden-version': '8.48.0'
|
|
592
578
|
}).withConfig({
|
|
593
579
|
displayName: "StyledTimeline",
|
|
594
580
|
componentId: "sc-pig5kv-0"
|
|
@@ -600,9 +586,9 @@ StyledTimeline.defaultProps = {
|
|
|
600
586
|
};
|
|
601
587
|
|
|
602
588
|
var COMPONENT_ID$4 = 'timeline.content.separator';
|
|
603
|
-
var StyledSeparator = styled__default[
|
|
589
|
+
var StyledSeparator = styled__default["default"].div.attrs({
|
|
604
590
|
'data-garden-id': COMPONENT_ID$4,
|
|
605
|
-
'data-garden-version': '8.
|
|
591
|
+
'data-garden-version': '8.48.0'
|
|
606
592
|
}).withConfig({
|
|
607
593
|
displayName: "StyledSeparator",
|
|
608
594
|
componentId: "sc-fki51e-0"
|
|
@@ -618,9 +604,9 @@ StyledSeparator.defaultProps = {
|
|
|
618
604
|
};
|
|
619
605
|
|
|
620
606
|
var COMPONENT_ID$3 = 'timeline.content';
|
|
621
|
-
var StyledTimelineContent = styled__default[
|
|
607
|
+
var StyledTimelineContent = styled__default["default"].div.attrs({
|
|
622
608
|
'data-garden-id': COMPONENT_ID$3,
|
|
623
|
-
'data-garden-version': '8.
|
|
609
|
+
'data-garden-version': '8.48.0'
|
|
624
610
|
}).withConfig({
|
|
625
611
|
displayName: "StyledContent__StyledTimelineContent",
|
|
626
612
|
componentId: "sc-19phgu1-0"
|
|
@@ -634,9 +620,9 @@ StyledTimelineContent.defaultProps = {
|
|
|
634
620
|
};
|
|
635
621
|
|
|
636
622
|
var COMPONENT_ID$2 = 'timeline.opposite.content';
|
|
637
|
-
var StyledOppositeContent = styled__default[
|
|
623
|
+
var StyledOppositeContent = styled__default["default"].div.attrs({
|
|
638
624
|
'data-garden-id': COMPONENT_ID$2,
|
|
639
|
-
'data-garden-version': '8.
|
|
625
|
+
'data-garden-version': '8.48.0'
|
|
640
626
|
}).withConfig({
|
|
641
627
|
displayName: "StyledOppositeContent",
|
|
642
628
|
componentId: "sc-jurh2k-0"
|
|
@@ -652,9 +638,9 @@ StyledOppositeContent.defaultProps = {
|
|
|
652
638
|
};
|
|
653
639
|
|
|
654
640
|
var COMPONENT_ID$1 = 'timeline.item';
|
|
655
|
-
var StyledTimelineItem = styled__default[
|
|
641
|
+
var StyledTimelineItem = styled__default["default"].li.attrs({
|
|
656
642
|
'data-garden-id': COMPONENT_ID$1,
|
|
657
|
-
'data-garden-version': '8.
|
|
643
|
+
'data-garden-version': '8.48.0'
|
|
658
644
|
}).withConfig({
|
|
659
645
|
displayName: "StyledItem__StyledTimelineItem",
|
|
660
646
|
componentId: "sc-5mcnzm-0"
|
|
@@ -671,14 +657,14 @@ StyledTimelineItem.defaultProps = {
|
|
|
671
657
|
|
|
672
658
|
var _excluded$5 = ["surfaceColor", "children"];
|
|
673
659
|
var COMPONENT_ID = 'timeline.icon';
|
|
674
|
-
var StyledItemIcon = styled__default[
|
|
660
|
+
var StyledItemIcon = styled__default["default"](function (_ref) {
|
|
675
661
|
_ref.surfaceColor;
|
|
676
662
|
var children = _ref.children,
|
|
677
663
|
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
678
664
|
return React.cloneElement(React.Children.only(children), props);
|
|
679
665
|
}).attrs({
|
|
680
666
|
'data-garden-id': COMPONENT_ID,
|
|
681
|
-
'data-garden-version': '8.
|
|
667
|
+
'data-garden-version': '8.48.0'
|
|
682
668
|
}).withConfig({
|
|
683
669
|
displayName: "StyledItemIcon",
|
|
684
670
|
componentId: "sc-vz2l6e-0"
|
|
@@ -762,7 +748,7 @@ var useTimelineItemContext = function useTimelineItemContext() {
|
|
|
762
748
|
return context;
|
|
763
749
|
};
|
|
764
750
|
|
|
765
|
-
var
|
|
751
|
+
var StepComponent = React.forwardRef(function (props, ref) {
|
|
766
752
|
var _useStepperContext = useStepperContext(),
|
|
767
753
|
currentIndexRef = _useStepperContext.currentIndexRef,
|
|
768
754
|
isHorizontal = _useStepperContext.isHorizontal;
|
|
@@ -783,38 +769,39 @@ var Step = React.forwardRef(function (props, ref) {
|
|
|
783
769
|
currentStepIndex: currentStepIndex
|
|
784
770
|
};
|
|
785
771
|
}, [currentStepIndex]);
|
|
786
|
-
return React__default[
|
|
772
|
+
return React__default["default"].createElement(StepContext.Provider, {
|
|
787
773
|
value: value
|
|
788
|
-
}, React__default[
|
|
774
|
+
}, React__default["default"].createElement(StyledStep, _extends$3({
|
|
789
775
|
ref: ref,
|
|
790
776
|
isHorizontal: isHorizontal
|
|
791
|
-
}, props), isHorizontal && React__default[
|
|
777
|
+
}, props), isHorizontal && React__default["default"].createElement(StyledLine, null), props.children));
|
|
792
778
|
});
|
|
793
|
-
|
|
779
|
+
StepComponent.displayName = 'Stepper.Step';
|
|
780
|
+
var Step = StepComponent;
|
|
794
781
|
|
|
795
|
-
|
|
782
|
+
var _path$1;
|
|
796
783
|
|
|
797
|
-
|
|
798
|
-
fill: "none",
|
|
799
|
-
stroke: "currentColor",
|
|
800
|
-
strokeLinecap: "round",
|
|
801
|
-
strokeLinejoin: "round",
|
|
802
|
-
strokeWidth: 1.25,
|
|
803
|
-
d: "M3 9l3 3 7-7"
|
|
804
|
-
});
|
|
784
|
+
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); }
|
|
805
785
|
|
|
806
|
-
function SvgCheckSmStroke(props) {
|
|
786
|
+
var SvgCheckSmStroke = function SvgCheckSmStroke(props) {
|
|
807
787
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
808
788
|
xmlns: "http://www.w3.org/2000/svg",
|
|
809
789
|
width: 16,
|
|
810
790
|
height: 16,
|
|
811
|
-
viewBox: "0 0 16 16",
|
|
812
791
|
focusable: "false",
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
}
|
|
792
|
+
viewBox: "0 0 16 16",
|
|
793
|
+
"aria-hidden": "true"
|
|
794
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
795
|
+
fill: "none",
|
|
796
|
+
stroke: "currentColor",
|
|
797
|
+
strokeLinecap: "round",
|
|
798
|
+
strokeLinejoin: "round",
|
|
799
|
+
strokeWidth: 1.25,
|
|
800
|
+
d: "M3 9l3 3 7-7"
|
|
801
|
+
})));
|
|
802
|
+
};
|
|
816
803
|
|
|
817
|
-
var
|
|
804
|
+
var LabelComponent$1 = React.forwardRef(function (props, ref) {
|
|
818
805
|
var _useStepContext = useStepContext(),
|
|
819
806
|
currentStepIndex = _useStepContext.currentStepIndex;
|
|
820
807
|
var _useStepperContext = useStepperContext(),
|
|
@@ -824,26 +811,27 @@ var Label$1 = React.forwardRef(function (props, ref) {
|
|
|
824
811
|
var stepIcon = props.icon || numericStep;
|
|
825
812
|
var isActive = activeIndex === currentStepIndex;
|
|
826
813
|
var isCompleted = activeIndex > currentStepIndex;
|
|
827
|
-
var styledIcon = React__default[
|
|
814
|
+
var styledIcon = React__default["default"].createElement(StyledIcon, {
|
|
828
815
|
isActive: isActive,
|
|
829
816
|
isHorizontal: isHorizontal
|
|
830
|
-
}, isCompleted ? React__default[
|
|
831
|
-
return React__default[
|
|
817
|
+
}, isCompleted ? React__default["default"].createElement(SvgCheckSmStroke, null) : stepIcon);
|
|
818
|
+
return React__default["default"].createElement(StyledLabel, _extends$3({
|
|
832
819
|
ref: ref,
|
|
833
820
|
isActive: isActive,
|
|
834
821
|
isHorizontal: isHorizontal
|
|
835
|
-
}, props), isHorizontal ? React__default[
|
|
822
|
+
}, props), isHorizontal ? React__default["default"].createElement(StyledIconFlexContainer, null, styledIcon) : styledIcon, React__default["default"].createElement(StyledLabelText, {
|
|
836
823
|
isHidden: props.isHidden,
|
|
837
824
|
isHorizontal: isHorizontal
|
|
838
825
|
}, props.children));
|
|
839
826
|
});
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
icon: PropTypes__default[
|
|
843
|
-
isHidden: PropTypes__default[
|
|
827
|
+
LabelComponent$1.displayName = 'Stepper.Label';
|
|
828
|
+
LabelComponent$1.propTypes = {
|
|
829
|
+
icon: PropTypes__default["default"].node,
|
|
830
|
+
isHidden: PropTypes__default["default"].bool
|
|
844
831
|
};
|
|
832
|
+
var Label$1 = LabelComponent$1;
|
|
845
833
|
|
|
846
|
-
var
|
|
834
|
+
var ContentComponent$1 = React.forwardRef(function (props, ref) {
|
|
847
835
|
var contentRef = React.useRef();
|
|
848
836
|
var _useStepperContext = useStepperContext(),
|
|
849
837
|
activeIndex = _useStepperContext.activeIndex,
|
|
@@ -851,7 +839,7 @@ var Content$1 = React.forwardRef(function (props, ref) {
|
|
|
851
839
|
var _useStepContext = useStepContext(),
|
|
852
840
|
currentStepIndex = _useStepContext.currentStepIndex;
|
|
853
841
|
var isActive = currentStepIndex === activeIndex;
|
|
854
|
-
var updateMaxHeight = React.useCallback(debounce__default[
|
|
842
|
+
var updateMaxHeight = React.useCallback(debounce__default["default"](function () {
|
|
855
843
|
if (contentRef.current) {
|
|
856
844
|
var child = contentRef.current.children[0];
|
|
857
845
|
child.style.maxHeight = "".concat(child.scrollHeight, "px");
|
|
@@ -867,17 +855,18 @@ var Content$1 = React.forwardRef(function (props, ref) {
|
|
|
867
855
|
}
|
|
868
856
|
return undefined;
|
|
869
857
|
}, [isActive, isHorizontal, props.children, updateMaxHeight]);
|
|
870
|
-
return isHorizontal === false ? React__default[
|
|
871
|
-
ref: mergeRefs__default[
|
|
858
|
+
return isHorizontal === false ? React__default["default"].createElement(StyledContent, _extends$3({
|
|
859
|
+
ref: mergeRefs__default["default"]([contentRef, ref]),
|
|
872
860
|
isActive: isActive
|
|
873
|
-
}, props), React__default[
|
|
861
|
+
}, props), React__default["default"].createElement(StyledInnerContent, {
|
|
874
862
|
isActive: isActive
|
|
875
863
|
}, props.children)) : null;
|
|
876
864
|
});
|
|
877
|
-
|
|
865
|
+
ContentComponent$1.displayName = 'Stepper.Content';
|
|
866
|
+
var Content$1 = ContentComponent$1;
|
|
878
867
|
|
|
879
868
|
var _excluded$4 = ["isHorizontal", "activeIndex"];
|
|
880
|
-
var
|
|
869
|
+
var StepperComponent = React.forwardRef(function (_ref, ref) {
|
|
881
870
|
var isHorizontal = _ref.isHorizontal,
|
|
882
871
|
activeIndex = _ref.activeIndex,
|
|
883
872
|
props = _objectWithoutProperties(_ref, _excluded$4);
|
|
@@ -892,56 +881,58 @@ var Stepper = React.forwardRef(function (_ref, ref) {
|
|
|
892
881
|
React.useEffect(function () {
|
|
893
882
|
currentIndexRef.current = 0;
|
|
894
883
|
});
|
|
895
|
-
return React__default[
|
|
884
|
+
return React__default["default"].createElement(StepperContext.Provider, {
|
|
896
885
|
value: stepperContext
|
|
897
|
-
}, React__default[
|
|
886
|
+
}, React__default["default"].createElement(StyledStepper, _extends$3({
|
|
898
887
|
ref: ref,
|
|
899
888
|
isHorizontal: isHorizontal
|
|
900
889
|
}, props)));
|
|
901
890
|
});
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
Stepper.Content = Content$1;
|
|
905
|
-
Stepper.displayName = 'Stepper';
|
|
906
|
-
Stepper.defaultProps = {
|
|
891
|
+
StepperComponent.displayName = 'Stepper';
|
|
892
|
+
StepperComponent.defaultProps = {
|
|
907
893
|
activeIndex: 0,
|
|
908
894
|
isHorizontal: false
|
|
909
895
|
};
|
|
896
|
+
var Stepper = StepperComponent;
|
|
897
|
+
Stepper.Content = Content$1;
|
|
898
|
+
Stepper.Label = Label$1;
|
|
899
|
+
Stepper.Step = Step;
|
|
910
900
|
|
|
911
|
-
var
|
|
901
|
+
var SectionComponent = React.forwardRef(function (props, ref) {
|
|
912
902
|
var _useAccordionContext = useAccordionContext(),
|
|
913
903
|
currentIndexRef = _useAccordionContext.currentIndexRef;
|
|
914
904
|
var sectionIndexRef = React.useRef(currentIndexRef.current++);
|
|
915
905
|
var sectionIndex = sectionIndexRef.current;
|
|
916
|
-
return React__default[
|
|
906
|
+
return React__default["default"].createElement(SectionContext.Provider, {
|
|
917
907
|
value: sectionIndex
|
|
918
|
-
}, React__default[
|
|
908
|
+
}, React__default["default"].createElement(StyledSection, _extends$3({
|
|
919
909
|
ref: ref
|
|
920
910
|
}, props)));
|
|
921
911
|
});
|
|
922
|
-
|
|
912
|
+
SectionComponent.displayName = 'Accordion.Section';
|
|
913
|
+
var Section = SectionComponent;
|
|
923
914
|
|
|
924
|
-
|
|
915
|
+
var _path;
|
|
925
916
|
|
|
926
|
-
|
|
927
|
-
fill: "currentColor",
|
|
928
|
-
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"
|
|
929
|
-
});
|
|
917
|
+
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); }
|
|
930
918
|
|
|
931
|
-
function SvgChevronDownStroke(props) {
|
|
919
|
+
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
932
920
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
933
921
|
xmlns: "http://www.w3.org/2000/svg",
|
|
934
922
|
width: 16,
|
|
935
923
|
height: 16,
|
|
936
|
-
viewBox: "0 0 16 16",
|
|
937
924
|
focusable: "false",
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}
|
|
925
|
+
viewBox: "0 0 16 16",
|
|
926
|
+
"aria-hidden": "true"
|
|
927
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
928
|
+
fill: "currentColor",
|
|
929
|
+
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"
|
|
930
|
+
})));
|
|
931
|
+
};
|
|
941
932
|
|
|
942
933
|
var _excluded$3 = ["onClick", "onFocus", "onBlur", "onMouseOver", "onMouseOut", "children"],
|
|
943
934
|
_excluded2 = ["onClick", "onKeyDown"];
|
|
944
|
-
var
|
|
935
|
+
var HeaderComponent = React.forwardRef(function (props, ref) {
|
|
945
936
|
var _useAccordionContext = useAccordionContext(),
|
|
946
937
|
ariaLevel = _useAccordionContext.level,
|
|
947
938
|
isCompact = _useAccordionContext.isCompact,
|
|
@@ -989,9 +980,9 @@ var Header = React.forwardRef(function (props, ref) {
|
|
|
989
980
|
otherTriggerProps: otherTriggerProps
|
|
990
981
|
};
|
|
991
982
|
}, [isHovered, otherTriggerProps]);
|
|
992
|
-
return React__default[
|
|
983
|
+
return React__default["default"].createElement(HeaderContext.Provider, {
|
|
993
984
|
value: value
|
|
994
|
-
}, React__default[
|
|
985
|
+
}, React__default["default"].createElement(StyledHeader, getHeaderProps(_objectSpread2({
|
|
995
986
|
ref: ref,
|
|
996
987
|
ariaLevel: ariaLevel,
|
|
997
988
|
isCompact: isCompact,
|
|
@@ -1009,7 +1000,7 @@ var Header = React.forwardRef(function (props, ref) {
|
|
|
1009
1000
|
onMouseOut: containerUtilities.composeEventHandlers(onMouseOut, function () {
|
|
1010
1001
|
return setIsHovered(false);
|
|
1011
1002
|
})
|
|
1012
|
-
}, other)), children, React__default[
|
|
1003
|
+
}, other)), children, React__default["default"].createElement(StyledRotateIcon, {
|
|
1013
1004
|
isCompact: isCompact,
|
|
1014
1005
|
isHovered: isHovered,
|
|
1015
1006
|
isRotated: isExpanded,
|
|
@@ -1020,11 +1011,12 @@ var Header = React.forwardRef(function (props, ref) {
|
|
|
1020
1011
|
onMouseOut: containerUtilities.composeEventHandlers(onMouseOut, function () {
|
|
1021
1012
|
return setIsHovered(false);
|
|
1022
1013
|
})
|
|
1023
|
-
}, React__default[
|
|
1014
|
+
}, React__default["default"].createElement(SvgChevronDownStroke, null))));
|
|
1024
1015
|
});
|
|
1025
|
-
|
|
1016
|
+
HeaderComponent.displayName = 'Accordion.Header';
|
|
1017
|
+
var Header = HeaderComponent;
|
|
1026
1018
|
|
|
1027
|
-
var
|
|
1019
|
+
var LabelComponent = React.forwardRef(function (props, ref) {
|
|
1028
1020
|
var sectionIndex = useSectionContext();
|
|
1029
1021
|
var _useAccordionContext = useAccordionContext(),
|
|
1030
1022
|
isCompact = _useAccordionContext.isCompact,
|
|
@@ -1034,7 +1026,7 @@ var Label = React.forwardRef(function (props, ref) {
|
|
|
1034
1026
|
var _useHeaderContext = useHeaderContext(),
|
|
1035
1027
|
isHovered = _useHeaderContext.isHovered,
|
|
1036
1028
|
otherTriggerProps = _useHeaderContext.otherTriggerProps;
|
|
1037
|
-
return React__default[
|
|
1029
|
+
return React__default["default"].createElement(StyledButton, _extends$3({
|
|
1038
1030
|
ref: ref,
|
|
1039
1031
|
isCompact: isCompact,
|
|
1040
1032
|
isHovered: isHovered,
|
|
@@ -1042,9 +1034,10 @@ var Label = React.forwardRef(function (props, ref) {
|
|
|
1042
1034
|
isCollapsible: isCollapsible
|
|
1043
1035
|
}, otherTriggerProps, props));
|
|
1044
1036
|
});
|
|
1045
|
-
|
|
1037
|
+
LabelComponent.displayName = 'Accordion.Label';
|
|
1038
|
+
var Label = LabelComponent;
|
|
1046
1039
|
|
|
1047
|
-
var
|
|
1040
|
+
var PanelComponent = React.forwardRef(function (props, ref) {
|
|
1048
1041
|
var _useAccordionContext = useAccordionContext(),
|
|
1049
1042
|
isCompact = _useAccordionContext.isCompact,
|
|
1050
1043
|
isBare = _useAccordionContext.isBare,
|
|
@@ -1054,13 +1047,13 @@ var Panel = React.forwardRef(function (props, ref) {
|
|
|
1054
1047
|
var panelRef = React.useRef();
|
|
1055
1048
|
var index = useSectionContext();
|
|
1056
1049
|
var isExpanded = expandedSections.includes(index);
|
|
1057
|
-
var updateMaxHeight = React.useCallback(debounce__default[
|
|
1050
|
+
var updateMaxHeight = React.useCallback(debounce__default["default"](function () {
|
|
1058
1051
|
if (panelRef.current) {
|
|
1059
1052
|
var child = panelRef.current.children[0];
|
|
1060
1053
|
child.style.maxHeight = "".concat(child.scrollHeight, "px");
|
|
1061
1054
|
}
|
|
1062
1055
|
}, 100), [panelRef]);
|
|
1063
|
-
React__default[
|
|
1056
|
+
React__default["default"].useEffect(function () {
|
|
1064
1057
|
if (!isAnimated) {
|
|
1065
1058
|
return undefined;
|
|
1066
1059
|
}
|
|
@@ -1070,23 +1063,24 @@ var Panel = React.forwardRef(function (props, ref) {
|
|
|
1070
1063
|
removeEventListener('resize', updateMaxHeight);
|
|
1071
1064
|
};
|
|
1072
1065
|
}, [isAnimated, isExpanded, updateMaxHeight, props.children]);
|
|
1073
|
-
return React__default[
|
|
1066
|
+
return React__default["default"].createElement(StyledPanel, getPanelProps(_objectSpread2({
|
|
1074
1067
|
role: null,
|
|
1075
|
-
ref: mergeRefs__default[
|
|
1068
|
+
ref: mergeRefs__default["default"]([panelRef, ref]),
|
|
1076
1069
|
index: index,
|
|
1077
1070
|
isBare: isBare,
|
|
1078
1071
|
isCompact: isCompact,
|
|
1079
1072
|
isExpanded: isExpanded,
|
|
1080
1073
|
isAnimated: isAnimated
|
|
1081
|
-
}, props)), React__default[
|
|
1074
|
+
}, props)), React__default["default"].createElement(StyledInnerPanel, {
|
|
1082
1075
|
isExpanded: isExpanded,
|
|
1083
1076
|
isAnimated: isAnimated
|
|
1084
1077
|
}, props.children));
|
|
1085
1078
|
});
|
|
1086
|
-
|
|
1079
|
+
PanelComponent.displayName = 'Accordion.Panel';
|
|
1080
|
+
var Panel = PanelComponent;
|
|
1087
1081
|
|
|
1088
1082
|
var _excluded$2 = ["level", "isBare", "onChange", "isCompact", "isAnimated", "isExpandable", "isCollapsible", "defaultExpandedSections", "expandedSections"];
|
|
1089
|
-
var
|
|
1083
|
+
var AccordionComponent = React.forwardRef(function (_ref, ref) {
|
|
1090
1084
|
var level = _ref.level,
|
|
1091
1085
|
isBare = _ref.isBare,
|
|
1092
1086
|
onChange = _ref.onChange,
|
|
@@ -1126,18 +1120,14 @@ var Accordion = React.forwardRef(function (_ref, ref) {
|
|
|
1126
1120
|
expandedSections: expandedSections
|
|
1127
1121
|
};
|
|
1128
1122
|
}, [level, isBare, isCompact, isAnimated, isCollapsible, getPanelProps, getHeaderProps, getTriggerProps, currentIndexRef, expandedSections]);
|
|
1129
|
-
return React__default[
|
|
1123
|
+
return React__default["default"].createElement(AccordionContext.Provider, {
|
|
1130
1124
|
value: value
|
|
1131
|
-
}, React__default[
|
|
1125
|
+
}, React__default["default"].createElement(StyledAccordion, _extends$3({
|
|
1132
1126
|
ref: ref
|
|
1133
1127
|
}, props)));
|
|
1134
1128
|
});
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
Accordion.Label = Label;
|
|
1138
|
-
Accordion.Panel = Panel;
|
|
1139
|
-
Accordion.displayName = 'Accordion';
|
|
1140
|
-
Accordion.defaultProps = {
|
|
1129
|
+
AccordionComponent.displayName = 'Accordion';
|
|
1130
|
+
AccordionComponent.defaultProps = {
|
|
1141
1131
|
isBare: false,
|
|
1142
1132
|
isCompact: false,
|
|
1143
1133
|
isAnimated: true,
|
|
@@ -1148,9 +1138,22 @@ Accordion.defaultProps = {
|
|
|
1148
1138
|
return undefined;
|
|
1149
1139
|
}
|
|
1150
1140
|
};
|
|
1141
|
+
var Accordion = AccordionComponent;
|
|
1142
|
+
Accordion.Header = Header;
|
|
1143
|
+
Accordion.Label = Label;
|
|
1144
|
+
Accordion.Panel = Panel;
|
|
1145
|
+
Accordion.Section = Section;
|
|
1146
|
+
|
|
1147
|
+
var OppositeContentComponent = React.forwardRef(function (props, ref) {
|
|
1148
|
+
return React__default["default"].createElement(StyledOppositeContent, _extends$3({
|
|
1149
|
+
ref: ref
|
|
1150
|
+
}, props));
|
|
1151
|
+
});
|
|
1152
|
+
OppositeContentComponent.displayName = 'Timeline.OppositeContent';
|
|
1153
|
+
var OppositeContent = OppositeContentComponent;
|
|
1151
1154
|
|
|
1152
1155
|
var _excluded$1 = ["icon", "surfaceColor"];
|
|
1153
|
-
var
|
|
1156
|
+
var ItemComponent = React.forwardRef(function (_ref, ref) {
|
|
1154
1157
|
var icon = _ref.icon,
|
|
1155
1158
|
surfaceColor = _ref.surfaceColor,
|
|
1156
1159
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
@@ -1165,63 +1168,58 @@ var Item = React.forwardRef(function (_ref, ref) {
|
|
|
1165
1168
|
var hasOppositeContent = false;
|
|
1166
1169
|
React.Children.forEach(props.children, function (child) {
|
|
1167
1170
|
if (child) {
|
|
1168
|
-
if (child.type ===
|
|
1171
|
+
if (child.type === OppositeContent) {
|
|
1169
1172
|
hasOppositeContent = true;
|
|
1170
1173
|
}
|
|
1171
1174
|
}
|
|
1172
1175
|
});
|
|
1173
|
-
return React__default[
|
|
1176
|
+
return React__default["default"].createElement(TimelineItemContext.Provider, {
|
|
1174
1177
|
value: value
|
|
1175
|
-
}, React__default[
|
|
1178
|
+
}, React__default["default"].createElement(StyledTimelineItem, _extends$3({
|
|
1176
1179
|
ref: ref,
|
|
1177
1180
|
isAlternate: isAlternate,
|
|
1178
1181
|
hasOppositeContent: hasOppositeContent
|
|
1179
1182
|
}, props)));
|
|
1180
1183
|
});
|
|
1181
|
-
|
|
1184
|
+
ItemComponent.displayName = 'Timeline.Item';
|
|
1185
|
+
var Item = ItemComponent;
|
|
1182
1186
|
|
|
1183
|
-
|
|
1187
|
+
var _circle;
|
|
1184
1188
|
|
|
1185
|
-
var
|
|
1186
|
-
cx: 6,
|
|
1187
|
-
cy: 6,
|
|
1188
|
-
r: 4.5,
|
|
1189
|
-
fill: "none",
|
|
1190
|
-
stroke: "currentColor"
|
|
1191
|
-
});
|
|
1189
|
+
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); }
|
|
1192
1190
|
|
|
1193
|
-
function SvgCircleFullStroke(props) {
|
|
1191
|
+
var SvgCircleFullStroke = function SvgCircleFullStroke(props) {
|
|
1194
1192
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1195
1193
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1196
1194
|
width: 12,
|
|
1197
1195
|
height: 12,
|
|
1198
|
-
viewBox: "0 0 12 12",
|
|
1199
1196
|
focusable: "false",
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
}
|
|
1197
|
+
viewBox: "0 0 12 12",
|
|
1198
|
+
"aria-hidden": "true"
|
|
1199
|
+
}, props), _circle || (_circle = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
1200
|
+
cx: 6,
|
|
1201
|
+
cy: 6,
|
|
1202
|
+
r: 4.5,
|
|
1203
|
+
fill: "none",
|
|
1204
|
+
stroke: "currentColor"
|
|
1205
|
+
})));
|
|
1206
|
+
};
|
|
1203
1207
|
|
|
1204
|
-
var
|
|
1208
|
+
var ContentComponent = React.forwardRef(function (props, ref) {
|
|
1205
1209
|
var _useTimelineItemConte = useTimelineItemContext(),
|
|
1206
1210
|
icon = _useTimelineItemConte.icon,
|
|
1207
1211
|
surfaceColor = _useTimelineItemConte.surfaceColor;
|
|
1208
|
-
return React__default[
|
|
1212
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement(StyledSeparator, null, React__default["default"].createElement(StyledItemIcon, {
|
|
1209
1213
|
surfaceColor: surfaceColor
|
|
1210
|
-
}, icon || React__default[
|
|
1214
|
+
}, icon || React__default["default"].createElement(SvgCircleFullStroke, null))), React__default["default"].createElement(StyledTimelineContent, _extends$3({
|
|
1211
1215
|
ref: ref
|
|
1212
1216
|
}, props)));
|
|
1213
1217
|
});
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
var OppositeContent = React.forwardRef(function (props, ref) {
|
|
1217
|
-
return React__default['default'].createElement(StyledOppositeContent, _extends$3({
|
|
1218
|
-
ref: ref
|
|
1219
|
-
}, props));
|
|
1220
|
-
});
|
|
1221
|
-
OppositeContent.displayName = 'OppositeContent';
|
|
1218
|
+
ContentComponent.displayName = 'Timeline.Content';
|
|
1219
|
+
var Content = ContentComponent;
|
|
1222
1220
|
|
|
1223
1221
|
var _excluded = ["isAlternate"];
|
|
1224
|
-
var
|
|
1222
|
+
var TimelineComponent = React.forwardRef(function (_ref, ref) {
|
|
1225
1223
|
var isAlternate = _ref.isAlternate,
|
|
1226
1224
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1227
1225
|
var value = React.useMemo(function () {
|
|
@@ -1229,16 +1227,17 @@ var Timeline = React.forwardRef(function (_ref, ref) {
|
|
|
1229
1227
|
isAlternate: isAlternate
|
|
1230
1228
|
};
|
|
1231
1229
|
}, [isAlternate]);
|
|
1232
|
-
return React__default[
|
|
1230
|
+
return React__default["default"].createElement(TimelineContext.Provider, {
|
|
1233
1231
|
value: value
|
|
1234
|
-
}, React__default[
|
|
1232
|
+
}, React__default["default"].createElement(StyledTimeline, _extends$3({
|
|
1235
1233
|
ref: ref
|
|
1236
1234
|
}, props)));
|
|
1237
1235
|
});
|
|
1238
|
-
|
|
1236
|
+
TimelineComponent.displayName = 'Timeline';
|
|
1237
|
+
var Timeline = TimelineComponent;
|
|
1239
1238
|
Timeline.Content = Content;
|
|
1239
|
+
Timeline.Item = Item;
|
|
1240
1240
|
Timeline.OppositeContent = OppositeContent;
|
|
1241
|
-
Timeline.displayName = 'Timeline';
|
|
1242
1241
|
|
|
1243
1242
|
exports.Accordion = Accordion;
|
|
1244
1243
|
exports.Stepper = Stepper;
|