@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.cjs.js +185 -194
- package/dist/index.esm.js +126 -133
- 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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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.2'
|
|
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,24 +855,25 @@ 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);
|
|
884
873
|
var currentIndexRef = React.useRef(0);
|
|
885
874
|
var stepperContext = React.useMemo(function () {
|
|
886
875
|
return {
|
|
887
|
-
isHorizontal: isHorizontal,
|
|
876
|
+
isHorizontal: isHorizontal || false,
|
|
888
877
|
activeIndex: activeIndex,
|
|
889
878
|
currentIndexRef: currentIndexRef
|
|
890
879
|
};
|
|
@@ -892,56 +881,57 @@ 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
|
-
|
|
905
|
-
Stepper.displayName = 'Stepper';
|
|
906
|
-
Stepper.defaultProps = {
|
|
907
|
-
activeIndex: 0,
|
|
908
|
-
isHorizontal: false
|
|
891
|
+
StepperComponent.displayName = 'Stepper';
|
|
892
|
+
StepperComponent.defaultProps = {
|
|
893
|
+
activeIndex: 0
|
|
909
894
|
};
|
|
895
|
+
var Stepper = StepperComponent;
|
|
896
|
+
Stepper.Content = Content$1;
|
|
897
|
+
Stepper.Label = Label$1;
|
|
898
|
+
Stepper.Step = Step;
|
|
910
899
|
|
|
911
|
-
var
|
|
900
|
+
var SectionComponent = React.forwardRef(function (props, ref) {
|
|
912
901
|
var _useAccordionContext = useAccordionContext(),
|
|
913
902
|
currentIndexRef = _useAccordionContext.currentIndexRef;
|
|
914
903
|
var sectionIndexRef = React.useRef(currentIndexRef.current++);
|
|
915
904
|
var sectionIndex = sectionIndexRef.current;
|
|
916
|
-
return React__default[
|
|
905
|
+
return React__default["default"].createElement(SectionContext.Provider, {
|
|
917
906
|
value: sectionIndex
|
|
918
|
-
}, React__default[
|
|
907
|
+
}, React__default["default"].createElement(StyledSection, _extends$3({
|
|
919
908
|
ref: ref
|
|
920
909
|
}, props)));
|
|
921
910
|
});
|
|
922
|
-
|
|
911
|
+
SectionComponent.displayName = 'Accordion.Section';
|
|
912
|
+
var Section = SectionComponent;
|
|
923
913
|
|
|
924
|
-
|
|
914
|
+
var _path;
|
|
925
915
|
|
|
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
|
-
});
|
|
916
|
+
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
917
|
|
|
931
|
-
function SvgChevronDownStroke(props) {
|
|
918
|
+
var SvgChevronDownStroke = function SvgChevronDownStroke(props) {
|
|
932
919
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
933
920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
934
921
|
width: 16,
|
|
935
922
|
height: 16,
|
|
936
|
-
viewBox: "0 0 16 16",
|
|
937
923
|
focusable: "false",
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}
|
|
924
|
+
viewBox: "0 0 16 16",
|
|
925
|
+
"aria-hidden": "true"
|
|
926
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
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
|
+
})));
|
|
930
|
+
};
|
|
941
931
|
|
|
942
932
|
var _excluded$3 = ["onClick", "onFocus", "onBlur", "onMouseOver", "onMouseOut", "children"],
|
|
943
933
|
_excluded2 = ["onClick", "onKeyDown"];
|
|
944
|
-
var
|
|
934
|
+
var HeaderComponent = React.forwardRef(function (props, ref) {
|
|
945
935
|
var _useAccordionContext = useAccordionContext(),
|
|
946
936
|
ariaLevel = _useAccordionContext.level,
|
|
947
937
|
isCompact = _useAccordionContext.isCompact,
|
|
@@ -989,9 +979,9 @@ var Header = React.forwardRef(function (props, ref) {
|
|
|
989
979
|
otherTriggerProps: otherTriggerProps
|
|
990
980
|
};
|
|
991
981
|
}, [isHovered, otherTriggerProps]);
|
|
992
|
-
return React__default[
|
|
982
|
+
return React__default["default"].createElement(HeaderContext.Provider, {
|
|
993
983
|
value: value
|
|
994
|
-
}, React__default[
|
|
984
|
+
}, React__default["default"].createElement(StyledHeader, getHeaderProps(_objectSpread2({
|
|
995
985
|
ref: ref,
|
|
996
986
|
ariaLevel: ariaLevel,
|
|
997
987
|
isCompact: isCompact,
|
|
@@ -1009,7 +999,7 @@ var Header = React.forwardRef(function (props, ref) {
|
|
|
1009
999
|
onMouseOut: containerUtilities.composeEventHandlers(onMouseOut, function () {
|
|
1010
1000
|
return setIsHovered(false);
|
|
1011
1001
|
})
|
|
1012
|
-
}, other)), children, React__default[
|
|
1002
|
+
}, other)), children, React__default["default"].createElement(StyledRotateIcon, {
|
|
1013
1003
|
isCompact: isCompact,
|
|
1014
1004
|
isHovered: isHovered,
|
|
1015
1005
|
isRotated: isExpanded,
|
|
@@ -1020,11 +1010,12 @@ var Header = React.forwardRef(function (props, ref) {
|
|
|
1020
1010
|
onMouseOut: containerUtilities.composeEventHandlers(onMouseOut, function () {
|
|
1021
1011
|
return setIsHovered(false);
|
|
1022
1012
|
})
|
|
1023
|
-
}, React__default[
|
|
1013
|
+
}, React__default["default"].createElement(SvgChevronDownStroke, null))));
|
|
1024
1014
|
});
|
|
1025
|
-
|
|
1015
|
+
HeaderComponent.displayName = 'Accordion.Header';
|
|
1016
|
+
var Header = HeaderComponent;
|
|
1026
1017
|
|
|
1027
|
-
var
|
|
1018
|
+
var LabelComponent = React.forwardRef(function (props, ref) {
|
|
1028
1019
|
var sectionIndex = useSectionContext();
|
|
1029
1020
|
var _useAccordionContext = useAccordionContext(),
|
|
1030
1021
|
isCompact = _useAccordionContext.isCompact,
|
|
@@ -1034,7 +1025,7 @@ var Label = React.forwardRef(function (props, ref) {
|
|
|
1034
1025
|
var _useHeaderContext = useHeaderContext(),
|
|
1035
1026
|
isHovered = _useHeaderContext.isHovered,
|
|
1036
1027
|
otherTriggerProps = _useHeaderContext.otherTriggerProps;
|
|
1037
|
-
return React__default[
|
|
1028
|
+
return React__default["default"].createElement(StyledButton, _extends$3({
|
|
1038
1029
|
ref: ref,
|
|
1039
1030
|
isCompact: isCompact,
|
|
1040
1031
|
isHovered: isHovered,
|
|
@@ -1042,9 +1033,10 @@ var Label = React.forwardRef(function (props, ref) {
|
|
|
1042
1033
|
isCollapsible: isCollapsible
|
|
1043
1034
|
}, otherTriggerProps, props));
|
|
1044
1035
|
});
|
|
1045
|
-
|
|
1036
|
+
LabelComponent.displayName = 'Accordion.Label';
|
|
1037
|
+
var Label = LabelComponent;
|
|
1046
1038
|
|
|
1047
|
-
var
|
|
1039
|
+
var PanelComponent = React.forwardRef(function (props, ref) {
|
|
1048
1040
|
var _useAccordionContext = useAccordionContext(),
|
|
1049
1041
|
isCompact = _useAccordionContext.isCompact,
|
|
1050
1042
|
isBare = _useAccordionContext.isBare,
|
|
@@ -1054,13 +1046,13 @@ var Panel = React.forwardRef(function (props, ref) {
|
|
|
1054
1046
|
var panelRef = React.useRef();
|
|
1055
1047
|
var index = useSectionContext();
|
|
1056
1048
|
var isExpanded = expandedSections.includes(index);
|
|
1057
|
-
var updateMaxHeight = React.useCallback(debounce__default[
|
|
1049
|
+
var updateMaxHeight = React.useCallback(debounce__default["default"](function () {
|
|
1058
1050
|
if (panelRef.current) {
|
|
1059
1051
|
var child = panelRef.current.children[0];
|
|
1060
1052
|
child.style.maxHeight = "".concat(child.scrollHeight, "px");
|
|
1061
1053
|
}
|
|
1062
1054
|
}, 100), [panelRef]);
|
|
1063
|
-
React__default[
|
|
1055
|
+
React__default["default"].useEffect(function () {
|
|
1064
1056
|
if (!isAnimated) {
|
|
1065
1057
|
return undefined;
|
|
1066
1058
|
}
|
|
@@ -1070,23 +1062,24 @@ var Panel = React.forwardRef(function (props, ref) {
|
|
|
1070
1062
|
removeEventListener('resize', updateMaxHeight);
|
|
1071
1063
|
};
|
|
1072
1064
|
}, [isAnimated, isExpanded, updateMaxHeight, props.children]);
|
|
1073
|
-
return React__default[
|
|
1065
|
+
return React__default["default"].createElement(StyledPanel, getPanelProps(_objectSpread2({
|
|
1074
1066
|
role: null,
|
|
1075
|
-
ref: mergeRefs__default[
|
|
1067
|
+
ref: mergeRefs__default["default"]([panelRef, ref]),
|
|
1076
1068
|
index: index,
|
|
1077
1069
|
isBare: isBare,
|
|
1078
1070
|
isCompact: isCompact,
|
|
1079
1071
|
isExpanded: isExpanded,
|
|
1080
1072
|
isAnimated: isAnimated
|
|
1081
|
-
}, props)), React__default[
|
|
1073
|
+
}, props)), React__default["default"].createElement(StyledInnerPanel, {
|
|
1082
1074
|
isExpanded: isExpanded,
|
|
1083
1075
|
isAnimated: isAnimated
|
|
1084
1076
|
}, props.children));
|
|
1085
1077
|
});
|
|
1086
|
-
|
|
1078
|
+
PanelComponent.displayName = 'Accordion.Panel';
|
|
1079
|
+
var Panel = PanelComponent;
|
|
1087
1080
|
|
|
1088
1081
|
var _excluded$2 = ["level", "isBare", "onChange", "isCompact", "isAnimated", "isExpandable", "isCollapsible", "defaultExpandedSections", "expandedSections"];
|
|
1089
|
-
var
|
|
1082
|
+
var AccordionComponent = React.forwardRef(function (_ref, ref) {
|
|
1090
1083
|
var level = _ref.level,
|
|
1091
1084
|
isBare = _ref.isBare,
|
|
1092
1085
|
onChange = _ref.onChange,
|
|
@@ -1099,7 +1092,7 @@ var Accordion = React.forwardRef(function (_ref, ref) {
|
|
|
1099
1092
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
1100
1093
|
var _useAccordion = containerAccordion.useAccordion({
|
|
1101
1094
|
collapsible: isCollapsible,
|
|
1102
|
-
expandable: isExpandable,
|
|
1095
|
+
expandable: isExpandable || false,
|
|
1103
1096
|
onChange: onChange,
|
|
1104
1097
|
defaultExpandedSections: defaultExpandedSections,
|
|
1105
1098
|
expandedSections: controlledExpandedSections
|
|
@@ -1126,31 +1119,33 @@ var Accordion = React.forwardRef(function (_ref, ref) {
|
|
|
1126
1119
|
expandedSections: expandedSections
|
|
1127
1120
|
};
|
|
1128
1121
|
}, [level, isBare, isCompact, isAnimated, isCollapsible, getPanelProps, getHeaderProps, getTriggerProps, currentIndexRef, expandedSections]);
|
|
1129
|
-
return React__default[
|
|
1122
|
+
return React__default["default"].createElement(AccordionContext.Provider, {
|
|
1130
1123
|
value: value
|
|
1131
|
-
}, React__default[
|
|
1124
|
+
}, React__default["default"].createElement(StyledAccordion, _extends$3({
|
|
1132
1125
|
ref: ref
|
|
1133
1126
|
}, props)));
|
|
1134
1127
|
});
|
|
1135
|
-
|
|
1128
|
+
AccordionComponent.displayName = 'Accordion';
|
|
1129
|
+
AccordionComponent.defaultProps = {
|
|
1130
|
+
isAnimated: true,
|
|
1131
|
+
isCollapsible: true
|
|
1132
|
+
};
|
|
1133
|
+
var Accordion = AccordionComponent;
|
|
1136
1134
|
Accordion.Header = Header;
|
|
1137
1135
|
Accordion.Label = Label;
|
|
1138
1136
|
Accordion.Panel = Panel;
|
|
1139
|
-
Accordion.
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
return undefined;
|
|
1149
|
-
}
|
|
1150
|
-
};
|
|
1137
|
+
Accordion.Section = Section;
|
|
1138
|
+
|
|
1139
|
+
var OppositeContentComponent = React.forwardRef(function (props, ref) {
|
|
1140
|
+
return React__default["default"].createElement(StyledOppositeContent, _extends$3({
|
|
1141
|
+
ref: ref
|
|
1142
|
+
}, props));
|
|
1143
|
+
});
|
|
1144
|
+
OppositeContentComponent.displayName = 'Timeline.OppositeContent';
|
|
1145
|
+
var OppositeContent = OppositeContentComponent;
|
|
1151
1146
|
|
|
1152
1147
|
var _excluded$1 = ["icon", "surfaceColor"];
|
|
1153
|
-
var
|
|
1148
|
+
var ItemComponent = React.forwardRef(function (_ref, ref) {
|
|
1154
1149
|
var icon = _ref.icon,
|
|
1155
1150
|
surfaceColor = _ref.surfaceColor,
|
|
1156
1151
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
@@ -1165,63 +1160,58 @@ var Item = React.forwardRef(function (_ref, ref) {
|
|
|
1165
1160
|
var hasOppositeContent = false;
|
|
1166
1161
|
React.Children.forEach(props.children, function (child) {
|
|
1167
1162
|
if (child) {
|
|
1168
|
-
if (child.type ===
|
|
1163
|
+
if (child.type === OppositeContent) {
|
|
1169
1164
|
hasOppositeContent = true;
|
|
1170
1165
|
}
|
|
1171
1166
|
}
|
|
1172
1167
|
});
|
|
1173
|
-
return React__default[
|
|
1168
|
+
return React__default["default"].createElement(TimelineItemContext.Provider, {
|
|
1174
1169
|
value: value
|
|
1175
|
-
}, React__default[
|
|
1170
|
+
}, React__default["default"].createElement(StyledTimelineItem, _extends$3({
|
|
1176
1171
|
ref: ref,
|
|
1177
1172
|
isAlternate: isAlternate,
|
|
1178
1173
|
hasOppositeContent: hasOppositeContent
|
|
1179
1174
|
}, props)));
|
|
1180
1175
|
});
|
|
1181
|
-
|
|
1176
|
+
ItemComponent.displayName = 'Timeline.Item';
|
|
1177
|
+
var Item = ItemComponent;
|
|
1182
1178
|
|
|
1183
|
-
|
|
1179
|
+
var _circle;
|
|
1184
1180
|
|
|
1185
|
-
var
|
|
1186
|
-
cx: 6,
|
|
1187
|
-
cy: 6,
|
|
1188
|
-
r: 4.5,
|
|
1189
|
-
fill: "none",
|
|
1190
|
-
stroke: "currentColor"
|
|
1191
|
-
});
|
|
1181
|
+
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
1182
|
|
|
1193
|
-
function SvgCircleFullStroke(props) {
|
|
1183
|
+
var SvgCircleFullStroke = function SvgCircleFullStroke(props) {
|
|
1194
1184
|
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
1195
1185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1196
1186
|
width: 12,
|
|
1197
1187
|
height: 12,
|
|
1198
|
-
viewBox: "0 0 12 12",
|
|
1199
1188
|
focusable: "false",
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
}
|
|
1189
|
+
viewBox: "0 0 12 12",
|
|
1190
|
+
"aria-hidden": "true"
|
|
1191
|
+
}, props), _circle || (_circle = /*#__PURE__*/React__namespace.createElement("circle", {
|
|
1192
|
+
cx: 6,
|
|
1193
|
+
cy: 6,
|
|
1194
|
+
r: 4.5,
|
|
1195
|
+
fill: "none",
|
|
1196
|
+
stroke: "currentColor"
|
|
1197
|
+
})));
|
|
1198
|
+
};
|
|
1203
1199
|
|
|
1204
|
-
var
|
|
1200
|
+
var ContentComponent = React.forwardRef(function (props, ref) {
|
|
1205
1201
|
var _useTimelineItemConte = useTimelineItemContext(),
|
|
1206
1202
|
icon = _useTimelineItemConte.icon,
|
|
1207
1203
|
surfaceColor = _useTimelineItemConte.surfaceColor;
|
|
1208
|
-
return React__default[
|
|
1204
|
+
return React__default["default"].createElement(React__default["default"].Fragment, null, React__default["default"].createElement(StyledSeparator, null, React__default["default"].createElement(StyledItemIcon, {
|
|
1209
1205
|
surfaceColor: surfaceColor
|
|
1210
|
-
}, icon || React__default[
|
|
1206
|
+
}, icon || React__default["default"].createElement(SvgCircleFullStroke, null))), React__default["default"].createElement(StyledTimelineContent, _extends$3({
|
|
1211
1207
|
ref: ref
|
|
1212
1208
|
}, props)));
|
|
1213
1209
|
});
|
|
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';
|
|
1210
|
+
ContentComponent.displayName = 'Timeline.Content';
|
|
1211
|
+
var Content = ContentComponent;
|
|
1222
1212
|
|
|
1223
1213
|
var _excluded = ["isAlternate"];
|
|
1224
|
-
var
|
|
1214
|
+
var TimelineComponent = React.forwardRef(function (_ref, ref) {
|
|
1225
1215
|
var isAlternate = _ref.isAlternate,
|
|
1226
1216
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
1227
1217
|
var value = React.useMemo(function () {
|
|
@@ -1229,16 +1219,17 @@ var Timeline = React.forwardRef(function (_ref, ref) {
|
|
|
1229
1219
|
isAlternate: isAlternate
|
|
1230
1220
|
};
|
|
1231
1221
|
}, [isAlternate]);
|
|
1232
|
-
return React__default[
|
|
1222
|
+
return React__default["default"].createElement(TimelineContext.Provider, {
|
|
1233
1223
|
value: value
|
|
1234
|
-
}, React__default[
|
|
1224
|
+
}, React__default["default"].createElement(StyledTimeline, _extends$3({
|
|
1235
1225
|
ref: ref
|
|
1236
1226
|
}, props)));
|
|
1237
1227
|
});
|
|
1238
|
-
|
|
1228
|
+
TimelineComponent.displayName = 'Timeline';
|
|
1229
|
+
var Timeline = TimelineComponent;
|
|
1239
1230
|
Timeline.Content = Content;
|
|
1231
|
+
Timeline.Item = Item;
|
|
1240
1232
|
Timeline.OppositeContent = OppositeContent;
|
|
1241
|
-
Timeline.displayName = 'Timeline';
|
|
1242
1233
|
|
|
1243
1234
|
exports.Accordion = Accordion;
|
|
1244
1235
|
exports.Stepper = Stepper;
|