@redsift/design-system 7.4.0-alpha.2 → 7.4.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/index.d.ts +71 -62
- package/index.js +320 -303
- package/index.js.map +1 -1
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -3313,7 +3313,7 @@ const DEFAULT_PROPS$m = {};
|
|
|
3313
3313
|
/**
|
|
3314
3314
|
* The Breadcrumbs components is a list of links to the parent pages of the current page in hierarchical order.
|
|
3315
3315
|
*/
|
|
3316
|
-
const
|
|
3316
|
+
const BaseBreadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3317
3317
|
const {
|
|
3318
3318
|
children,
|
|
3319
3319
|
className,
|
|
@@ -3321,30 +3321,33 @@ const Breadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3321
3321
|
} = props,
|
|
3322
3322
|
forwardedProps = _objectWithoutProperties(props, _excluded$m);
|
|
3323
3323
|
warnIfNoAccessibleLabelFound(props);
|
|
3324
|
-
const childArray = filterComponents([
|
|
3324
|
+
const childArray = filterComponents([Breadcrumbs.Item])(children);
|
|
3325
3325
|
const breadcrumbItems = childArray.map((child, index) => {
|
|
3326
3326
|
var _child$key;
|
|
3327
3327
|
const isCurrent = index === childArray.length - 1;
|
|
3328
3328
|
return /*#__PURE__*/React.createElement("li", {
|
|
3329
3329
|
key: index
|
|
3330
|
-
}, /*#__PURE__*/React.createElement(
|
|
3330
|
+
}, /*#__PURE__*/React.createElement(Breadcrumbs.Item, _extends({
|
|
3331
3331
|
isDisabled: child.props.isDisabled || isDisabled || undefined
|
|
3332
3332
|
}, child.props, {
|
|
3333
3333
|
key: (_child$key = child.key) !== null && _child$key !== void 0 ? _child$key : index,
|
|
3334
3334
|
isCurrent: isCurrent
|
|
3335
3335
|
})), isCurrent === false ? /*#__PURE__*/React.createElement("span", {
|
|
3336
|
-
className: `${
|
|
3336
|
+
className: `${BaseBreadcrumbs.className}__separator`
|
|
3337
3337
|
}, '/') : null);
|
|
3338
3338
|
});
|
|
3339
3339
|
return /*#__PURE__*/React.createElement(StyledBreadcrumbs, _extends({}, forwardedProps, {
|
|
3340
3340
|
$isDisabled: isDisabled,
|
|
3341
|
-
className: classNames(
|
|
3341
|
+
className: classNames(BaseBreadcrumbs.className, className),
|
|
3342
3342
|
ref: ref
|
|
3343
3343
|
}), /*#__PURE__*/React.createElement("ol", null, breadcrumbItems));
|
|
3344
3344
|
});
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3345
|
+
BaseBreadcrumbs.className = CLASSNAME$m;
|
|
3346
|
+
BaseBreadcrumbs.defaultProps = DEFAULT_PROPS$m;
|
|
3347
|
+
BaseBreadcrumbs.displayName = COMPONENT_NAME$m;
|
|
3348
|
+
const Breadcrumbs = Object.assign(BaseBreadcrumbs, {
|
|
3349
|
+
Item: BreadcrumbItem
|
|
3350
|
+
});
|
|
3348
3351
|
|
|
3349
3352
|
const _excluded$l = ["as", "children", "className", "color", "href", "isActive", "isDisabled", "leftIcon", "rightIcon", "target", "variant"];
|
|
3350
3353
|
const COMPONENT_NAME$l = 'ButtonLink';
|
|
@@ -3466,91 +3469,70 @@ const StyledCard = styled.div`
|
|
|
3466
3469
|
}
|
|
3467
3470
|
`;
|
|
3468
3471
|
|
|
3469
|
-
const _excluded$k = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse"];
|
|
3470
|
-
const COMPONENT_NAME$k = 'Card';
|
|
3471
|
-
const CLASSNAME$k = 'redsift-card';
|
|
3472
|
-
const DEFAULT_PROPS$k = {};
|
|
3473
|
-
|
|
3474
|
-
/**
|
|
3475
|
-
* The Card component.
|
|
3476
|
-
*/
|
|
3477
|
-
const Card = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3478
|
-
const {
|
|
3479
|
-
children,
|
|
3480
|
-
className,
|
|
3481
|
-
defaultCollapsed,
|
|
3482
|
-
isCollapsed: propsIsCollapsed,
|
|
3483
|
-
isCollapsible,
|
|
3484
|
-
onCollapse
|
|
3485
|
-
} = props,
|
|
3486
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$k);
|
|
3487
|
-
const stringFormatter = useLocalizedStringFormatter(intlMessages$2);
|
|
3488
|
-
const [isCollapsed, setIsCollapsed] = useState(propsIsCollapsed !== null && propsIsCollapsed !== void 0 ? propsIsCollapsed : defaultCollapsed);
|
|
3489
|
-
useEffect(() => {
|
|
3490
|
-
setIsCollapsed(propsIsCollapsed !== null && propsIsCollapsed !== void 0 ? propsIsCollapsed : defaultCollapsed);
|
|
3491
|
-
}, [propsIsCollapsed, defaultCollapsed]);
|
|
3492
|
-
const handleCollapse = useCallback(collapsed => {
|
|
3493
|
-
if (onCollapse) {
|
|
3494
|
-
onCollapse(collapsed);
|
|
3495
|
-
}
|
|
3496
|
-
setIsCollapsed(collapsed);
|
|
3497
|
-
}, [onCollapse]);
|
|
3498
|
-
const [[header], [body], [actions]] = partitionComponents(React.Children.toArray(children), [isComponent('CardHeader'), isComponent('CardBody'), isComponent('CardActions')]);
|
|
3499
|
-
return /*#__PURE__*/React.createElement(StyledCard, _extends({}, forwardedProps, {
|
|
3500
|
-
className: classNames(Card.className, className),
|
|
3501
|
-
ref: ref,
|
|
3502
|
-
$isCollapsed: isCollapsed
|
|
3503
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
3504
|
-
className: `${Card.className}__header`
|
|
3505
|
-
}, header, isCollapsible ? /*#__PURE__*/React.createElement(IconButton, {
|
|
3506
|
-
"aria-label": stringFormatter.format(isCollapsed ? 'expand' : 'collapse'),
|
|
3507
|
-
className: `${Card.className}-header__icon-button`,
|
|
3508
|
-
color: "question",
|
|
3509
|
-
icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
|
|
3510
|
-
onPress: () => handleCollapse(!isCollapsed)
|
|
3511
|
-
}) : null), body || actions ? /*#__PURE__*/React.createElement("div", {
|
|
3512
|
-
className: `${Card.className}__content`
|
|
3513
|
-
}, body, actions) : null);
|
|
3514
|
-
});
|
|
3515
|
-
Card.className = CLASSNAME$k;
|
|
3516
|
-
Card.defaultProps = DEFAULT_PROPS$k;
|
|
3517
|
-
Card.displayName = COMPONENT_NAME$k;
|
|
3518
|
-
|
|
3519
3472
|
/**
|
|
3520
3473
|
* Component style.
|
|
3521
3474
|
*/
|
|
3522
|
-
const
|
|
3523
|
-
|
|
3475
|
+
const StyledCardHeader = styled.div`
|
|
3476
|
+
color: var(--redsift-color-neutral-black);
|
|
3524
3477
|
|
|
3525
|
-
|
|
3526
|
-
|
|
3478
|
+
.redsift-card-header__header {
|
|
3479
|
+
align-items: center;
|
|
3480
|
+
display: flex;
|
|
3481
|
+
gap: 8px;
|
|
3482
|
+
padding: 10px 0px;
|
|
3483
|
+
margin: 0px;
|
|
3484
|
+
|
|
3485
|
+
.redsift-icon {
|
|
3486
|
+
color: var(--redsift-color-neutral-black);
|
|
3487
|
+
padding-right: 8px;
|
|
3488
|
+
font-size: 30px;
|
|
3489
|
+
line-height: 30px;
|
|
3490
|
+
height: 30px;
|
|
3491
|
+
}
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
.redsift-card-header__subheader {
|
|
3495
|
+
font-family: var(--redsift-typography-body-font-family);
|
|
3496
|
+
font-size: var(--redsift-typography-body-font-size);
|
|
3497
|
+
font-weight: var(--redsift-typography-body-font-weight);
|
|
3498
|
+
line-height: var(--redsift-typography-body-line-height);
|
|
3499
|
+
}
|
|
3527
3500
|
`;
|
|
3528
3501
|
|
|
3529
|
-
const _excluded$
|
|
3530
|
-
const COMPONENT_NAME$
|
|
3531
|
-
const CLASSNAME$
|
|
3532
|
-
const DEFAULT_PROPS$
|
|
3533
|
-
display: 'flex',
|
|
3534
|
-
flexDirection: 'row'
|
|
3535
|
-
};
|
|
3502
|
+
const _excluded$k = ["children", "className", "header", "icon", "subheader"];
|
|
3503
|
+
const COMPONENT_NAME$k = 'CardHeader';
|
|
3504
|
+
const CLASSNAME$k = 'redsift-card-header';
|
|
3505
|
+
const DEFAULT_PROPS$k = {};
|
|
3536
3506
|
|
|
3537
3507
|
/**
|
|
3538
|
-
* The
|
|
3508
|
+
* The CardHeader component.
|
|
3539
3509
|
*/
|
|
3540
|
-
const
|
|
3510
|
+
const CardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3541
3511
|
const {
|
|
3542
3512
|
children,
|
|
3543
|
-
className
|
|
3513
|
+
className,
|
|
3514
|
+
header,
|
|
3515
|
+
icon,
|
|
3516
|
+
subheader
|
|
3544
3517
|
} = props,
|
|
3545
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3546
|
-
return /*#__PURE__*/React.createElement(
|
|
3547
|
-
className: classNames(
|
|
3518
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$k);
|
|
3519
|
+
return /*#__PURE__*/React.createElement(StyledCardHeader, _extends({}, forwardedProps, {
|
|
3520
|
+
className: classNames(CardHeader.className, className),
|
|
3548
3521
|
ref: ref
|
|
3549
|
-
}),
|
|
3522
|
+
}), subheader ? /*#__PURE__*/React.createElement("div", {
|
|
3523
|
+
className: `${CardHeader.className}__subheader`
|
|
3524
|
+
}, subheader) : null, header ? /*#__PURE__*/React.createElement(Heading, {
|
|
3525
|
+
as: "h2",
|
|
3526
|
+
color: "black",
|
|
3527
|
+
className: `${CardHeader.className}__header`
|
|
3528
|
+
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
3529
|
+
icon: icon,
|
|
3530
|
+
"aria-hidden": "true"
|
|
3531
|
+
}) : null, header) : null, children);
|
|
3550
3532
|
});
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3533
|
+
CardHeader.className = CLASSNAME$k;
|
|
3534
|
+
CardHeader.defaultProps = DEFAULT_PROPS$k;
|
|
3535
|
+
CardHeader.displayName = COMPONENT_NAME$k;
|
|
3554
3536
|
|
|
3555
3537
|
/**
|
|
3556
3538
|
* Component style.
|
|
@@ -3566,10 +3548,10 @@ const StyledCardBody = styled.div`
|
|
|
3566
3548
|
padding: 16px 0px;
|
|
3567
3549
|
`;
|
|
3568
3550
|
|
|
3569
|
-
const _excluded$
|
|
3570
|
-
const COMPONENT_NAME$
|
|
3571
|
-
const CLASSNAME$
|
|
3572
|
-
const DEFAULT_PROPS$
|
|
3551
|
+
const _excluded$j = ["children", "className"];
|
|
3552
|
+
const COMPONENT_NAME$j = 'CardBody';
|
|
3553
|
+
const CLASSNAME$j = 'redsift-card-body';
|
|
3554
|
+
const DEFAULT_PROPS$j = {};
|
|
3573
3555
|
|
|
3574
3556
|
/**
|
|
3575
3557
|
* The CardBody component.
|
|
@@ -3579,80 +3561,106 @@ const CardBody = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
3579
3561
|
children,
|
|
3580
3562
|
className
|
|
3581
3563
|
} = props,
|
|
3582
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
3564
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$j);
|
|
3583
3565
|
return /*#__PURE__*/React.createElement(StyledCardBody, _extends({}, forwardedProps, {
|
|
3584
3566
|
className: classNames(CardBody.className, className),
|
|
3585
3567
|
ref: ref
|
|
3586
3568
|
}), children);
|
|
3587
3569
|
});
|
|
3588
|
-
CardBody.className = CLASSNAME$
|
|
3589
|
-
CardBody.defaultProps = DEFAULT_PROPS$
|
|
3590
|
-
CardBody.displayName = COMPONENT_NAME$
|
|
3570
|
+
CardBody.className = CLASSNAME$j;
|
|
3571
|
+
CardBody.defaultProps = DEFAULT_PROPS$j;
|
|
3572
|
+
CardBody.displayName = COMPONENT_NAME$j;
|
|
3591
3573
|
|
|
3592
3574
|
/**
|
|
3593
3575
|
* Component style.
|
|
3594
3576
|
*/
|
|
3595
|
-
const
|
|
3596
|
-
|
|
3577
|
+
const StyledCardActions = styled.div`
|
|
3578
|
+
${baseContainer}
|
|
3597
3579
|
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
gap: 8px;
|
|
3602
|
-
padding: 10px 0px;
|
|
3603
|
-
margin: 0px;
|
|
3580
|
+
margin-top: 8px;
|
|
3581
|
+
margin-bottom: 8px;
|
|
3582
|
+
`;
|
|
3604
3583
|
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
}
|
|
3584
|
+
const _excluded$i = ["children", "className"];
|
|
3585
|
+
const COMPONENT_NAME$i = 'CardActions';
|
|
3586
|
+
const CLASSNAME$i = 'redsift-card-actions';
|
|
3587
|
+
const DEFAULT_PROPS$i = {
|
|
3588
|
+
display: 'flex',
|
|
3589
|
+
flexDirection: 'row'
|
|
3590
|
+
};
|
|
3613
3591
|
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3592
|
+
/**
|
|
3593
|
+
* The CardActions component.
|
|
3594
|
+
*/
|
|
3595
|
+
const CardActions = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3596
|
+
const {
|
|
3597
|
+
children,
|
|
3598
|
+
className
|
|
3599
|
+
} = props,
|
|
3600
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$i);
|
|
3601
|
+
return /*#__PURE__*/React.createElement(StyledCardActions, _extends({}, forwardedProps, {
|
|
3602
|
+
className: classNames(CardActions.className, className),
|
|
3603
|
+
ref: ref
|
|
3604
|
+
}), children);
|
|
3605
|
+
});
|
|
3606
|
+
CardActions.className = CLASSNAME$i;
|
|
3607
|
+
CardActions.defaultProps = DEFAULT_PROPS$i;
|
|
3608
|
+
CardActions.displayName = COMPONENT_NAME$i;
|
|
3621
3609
|
|
|
3622
|
-
const _excluded$h = ["children", "className", "
|
|
3623
|
-
const COMPONENT_NAME$h = '
|
|
3624
|
-
const CLASSNAME$h = 'redsift-card
|
|
3610
|
+
const _excluded$h = ["children", "className", "defaultCollapsed", "isCollapsed", "isCollapsible", "onCollapse"];
|
|
3611
|
+
const COMPONENT_NAME$h = 'Card';
|
|
3612
|
+
const CLASSNAME$h = 'redsift-card';
|
|
3625
3613
|
const DEFAULT_PROPS$h = {};
|
|
3626
3614
|
|
|
3627
3615
|
/**
|
|
3628
|
-
* The
|
|
3616
|
+
* The Card component.
|
|
3629
3617
|
*/
|
|
3630
|
-
const
|
|
3618
|
+
const BaseCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
3631
3619
|
const {
|
|
3632
3620
|
children,
|
|
3633
3621
|
className,
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3622
|
+
defaultCollapsed,
|
|
3623
|
+
isCollapsed: propsIsCollapsed,
|
|
3624
|
+
isCollapsible,
|
|
3625
|
+
onCollapse
|
|
3637
3626
|
} = props,
|
|
3638
3627
|
forwardedProps = _objectWithoutProperties(props, _excluded$h);
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3628
|
+
const stringFormatter = useLocalizedStringFormatter(intlMessages$2);
|
|
3629
|
+
const [isCollapsed, setIsCollapsed] = useState(propsIsCollapsed !== null && propsIsCollapsed !== void 0 ? propsIsCollapsed : defaultCollapsed);
|
|
3630
|
+
useEffect(() => {
|
|
3631
|
+
setIsCollapsed(propsIsCollapsed !== null && propsIsCollapsed !== void 0 ? propsIsCollapsed : defaultCollapsed);
|
|
3632
|
+
}, [propsIsCollapsed, defaultCollapsed]);
|
|
3633
|
+
const handleCollapse = useCallback(collapsed => {
|
|
3634
|
+
if (onCollapse) {
|
|
3635
|
+
onCollapse(collapsed);
|
|
3636
|
+
}
|
|
3637
|
+
setIsCollapsed(collapsed);
|
|
3638
|
+
}, [onCollapse]);
|
|
3639
|
+
const [[header], [body], [actions]] = partitionComponents(React.Children.toArray(children), [isComponent('CardHeader'), isComponent('CardBody'), isComponent('CardActions')]);
|
|
3640
|
+
return /*#__PURE__*/React.createElement(StyledCard, _extends({}, forwardedProps, {
|
|
3641
|
+
className: classNames(BaseCard.className, className),
|
|
3642
|
+
ref: ref,
|
|
3643
|
+
$isCollapsed: isCollapsed
|
|
3644
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
3645
|
+
className: `${BaseCard.className}__header`
|
|
3646
|
+
}, header, isCollapsible ? /*#__PURE__*/React.createElement(IconButton, {
|
|
3647
|
+
"aria-label": stringFormatter.format(isCollapsed ? 'expand' : 'collapse'),
|
|
3648
|
+
className: `${BaseCard.className}-header__icon-button`,
|
|
3649
|
+
color: "question",
|
|
3650
|
+
icon: isCollapsed ? mdiChevronDown : mdiChevronUp,
|
|
3651
|
+
onPress: () => handleCollapse(!isCollapsed)
|
|
3652
|
+
}) : null), body || actions ? /*#__PURE__*/React.createElement("div", {
|
|
3653
|
+
className: `${BaseCard.className}__content`
|
|
3654
|
+
}, body, actions) : null);
|
|
3655
|
+
});
|
|
3656
|
+
BaseCard.className = CLASSNAME$h;
|
|
3657
|
+
BaseCard.defaultProps = DEFAULT_PROPS$h;
|
|
3658
|
+
BaseCard.displayName = COMPONENT_NAME$h;
|
|
3659
|
+
const Card = Object.assign(BaseCard, {
|
|
3660
|
+
Header: CardHeader,
|
|
3661
|
+
Body: CardBody,
|
|
3662
|
+
Actions: CardActions
|
|
3652
3663
|
});
|
|
3653
|
-
CardHeader.className = CLASSNAME$h;
|
|
3654
|
-
CardHeader.defaultProps = DEFAULT_PROPS$h;
|
|
3655
|
-
CardHeader.displayName = COMPONENT_NAME$h;
|
|
3656
3664
|
|
|
3657
3665
|
/**
|
|
3658
3666
|
* Context props.
|
|
@@ -4513,123 +4521,6 @@ const StyledDetailedCard = styled.div`
|
|
|
4513
4521
|
}
|
|
4514
4522
|
`;
|
|
4515
4523
|
|
|
4516
|
-
const _excluded$b = ["areAllCollapsed", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "onCollapseAll", "shield"];
|
|
4517
|
-
const COMPONENT_NAME$b = 'DetailedCard';
|
|
4518
|
-
const CLASSNAME$b = 'redsift-detailed-card';
|
|
4519
|
-
const DEFAULT_PROPS$b = {
|
|
4520
|
-
isCollapsible: true,
|
|
4521
|
-
width: '400px'
|
|
4522
|
-
};
|
|
4523
|
-
const hasCollapsibleChildren = children => {
|
|
4524
|
-
let hasCollapsible = false;
|
|
4525
|
-
React.Children.map(children, child => {
|
|
4526
|
-
if (isComponent(DetailedCardSection)(child)) {
|
|
4527
|
-
let hasCollapsibleItems = Boolean(child.isCollapsible);
|
|
4528
|
-
React.Children.map(child.props.children, sectionChild => {
|
|
4529
|
-
if (isComponent(DetailedCardCollapsibleSectionItems)(sectionChild)) {
|
|
4530
|
-
hasCollapsibleItems = true;
|
|
4531
|
-
}
|
|
4532
|
-
});
|
|
4533
|
-
hasCollapsible = hasCollapsibleItems;
|
|
4534
|
-
} else if (isComponent(DetailedCardCollapsibleSectionItems)(child)) {
|
|
4535
|
-
hasCollapsible = true;
|
|
4536
|
-
}
|
|
4537
|
-
});
|
|
4538
|
-
return hasCollapsible;
|
|
4539
|
-
};
|
|
4540
|
-
|
|
4541
|
-
/**
|
|
4542
|
-
* The DetailedCard component.
|
|
4543
|
-
*/
|
|
4544
|
-
const DetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4545
|
-
const {
|
|
4546
|
-
areAllCollapsed: propsAreAllCollapsed,
|
|
4547
|
-
children,
|
|
4548
|
-
className,
|
|
4549
|
-
color,
|
|
4550
|
-
defaultAllCollapsed,
|
|
4551
|
-
icon,
|
|
4552
|
-
isCollapsible: propsIsCollapsible,
|
|
4553
|
-
onCollapseAll,
|
|
4554
|
-
shield
|
|
4555
|
-
} = props,
|
|
4556
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$b);
|
|
4557
|
-
const stringFormatter = useLocalizedStringFormatter(intlMessages$1);
|
|
4558
|
-
const isCollapsible = propsIsCollapsible && hasCollapsibleChildren(children);
|
|
4559
|
-
const [allCollapsed, setAllCollapsed] = useState({
|
|
4560
|
-
state: propsAreAllCollapsed !== null && propsAreAllCollapsed !== void 0 ? propsAreAllCollapsed : defaultAllCollapsed
|
|
4561
|
-
});
|
|
4562
|
-
useEffect(() => {
|
|
4563
|
-
setAllCollapsed({
|
|
4564
|
-
state: propsAreAllCollapsed !== null && propsAreAllCollapsed !== void 0 ? propsAreAllCollapsed : defaultAllCollapsed
|
|
4565
|
-
});
|
|
4566
|
-
}, [propsAreAllCollapsed, defaultAllCollapsed]);
|
|
4567
|
-
const handleCollapse = useCallback(allCollapsed => {
|
|
4568
|
-
if (onCollapseAll) {
|
|
4569
|
-
onCollapseAll(allCollapsed);
|
|
4570
|
-
}
|
|
4571
|
-
setAllCollapsed({
|
|
4572
|
-
state: allCollapsed
|
|
4573
|
-
});
|
|
4574
|
-
}, [onCollapseAll]);
|
|
4575
|
-
const [[header], content] = partitionComponents(React.Children.toArray(children), [isComponent('DetailedCardHeader')]);
|
|
4576
|
-
return /*#__PURE__*/React.createElement(StyledDetailedCard, _extends({}, forwardedProps, {
|
|
4577
|
-
className: classNames(DetailedCard.className, className),
|
|
4578
|
-
ref: ref,
|
|
4579
|
-
$color: color
|
|
4580
|
-
}), color ? /*#__PURE__*/React.createElement("div", {
|
|
4581
|
-
className: `${DetailedCard.className}__banner`
|
|
4582
|
-
}, shield ? /*#__PURE__*/React.createElement(Shield, {
|
|
4583
|
-
variant: shield,
|
|
4584
|
-
isOutlined: true,
|
|
4585
|
-
isReversed: true,
|
|
4586
|
-
svgProps: {
|
|
4587
|
-
width: '40px',
|
|
4588
|
-
height: '40px'
|
|
4589
|
-
},
|
|
4590
|
-
style: {
|
|
4591
|
-
width: '40px',
|
|
4592
|
-
height: '40px'
|
|
4593
|
-
}
|
|
4594
|
-
}) : icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
4595
|
-
icon: icon,
|
|
4596
|
-
color: "white",
|
|
4597
|
-
size: "xlarge"
|
|
4598
|
-
}) : null) : null, header ? /*#__PURE__*/React.createElement("div", {
|
|
4599
|
-
className: `${DetailedCard.className}__header`
|
|
4600
|
-
}, header) : null, isCollapsible ? /*#__PURE__*/React.createElement(Flexbox, {
|
|
4601
|
-
justifyContent: "flex-end",
|
|
4602
|
-
className: `${DetailedCard.className}__collapse-buttons`
|
|
4603
|
-
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
4604
|
-
"aria-label": stringFormatter.format('collapse-all'),
|
|
4605
|
-
icon: mdiPageLast,
|
|
4606
|
-
onPress: () => handleCollapse(true),
|
|
4607
|
-
style: {
|
|
4608
|
-
transform: 'rotate(-90deg)'
|
|
4609
|
-
},
|
|
4610
|
-
color: "question"
|
|
4611
|
-
}), /*#__PURE__*/React.createElement(IconButton, {
|
|
4612
|
-
"aria-label": stringFormatter.format('expand-all'),
|
|
4613
|
-
icon: mdiKeyboardCaps,
|
|
4614
|
-
onPress: () => handleCollapse(false),
|
|
4615
|
-
style: {
|
|
4616
|
-
transform: 'rotate(180deg)'
|
|
4617
|
-
},
|
|
4618
|
-
color: "question"
|
|
4619
|
-
})) : null, React.Children.map(content, child => {
|
|
4620
|
-
if (isComponent(DetailedCardSection)(child)) {
|
|
4621
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
4622
|
-
isCollapsed: allCollapsed.state,
|
|
4623
|
-
key: Math.random()
|
|
4624
|
-
});
|
|
4625
|
-
}
|
|
4626
|
-
return child;
|
|
4627
|
-
}));
|
|
4628
|
-
});
|
|
4629
|
-
DetailedCard.className = CLASSNAME$b;
|
|
4630
|
-
DetailedCard.defaultProps = DEFAULT_PROPS$b;
|
|
4631
|
-
DetailedCard.displayName = COMPONENT_NAME$b;
|
|
4632
|
-
|
|
4633
4524
|
/**
|
|
4634
4525
|
* Component style.
|
|
4635
4526
|
*/
|
|
@@ -4645,10 +4536,10 @@ const StyledDetailedCardHeader = styled.div`
|
|
|
4645
4536
|
}
|
|
4646
4537
|
`;
|
|
4647
4538
|
|
|
4648
|
-
const _excluded$
|
|
4649
|
-
const COMPONENT_NAME$
|
|
4650
|
-
const CLASSNAME$
|
|
4651
|
-
const DEFAULT_PROPS$
|
|
4539
|
+
const _excluded$b = ["children", "className", "header"];
|
|
4540
|
+
const COMPONENT_NAME$b = 'DetailedCardHeader';
|
|
4541
|
+
const CLASSNAME$b = 'redsift-detailed-card-header';
|
|
4542
|
+
const DEFAULT_PROPS$b = {};
|
|
4652
4543
|
|
|
4653
4544
|
/**
|
|
4654
4545
|
* The DetailedCardHeader component.
|
|
@@ -4659,7 +4550,7 @@ const DetailedCardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4659
4550
|
className,
|
|
4660
4551
|
header
|
|
4661
4552
|
} = props,
|
|
4662
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4553
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$b);
|
|
4663
4554
|
return /*#__PURE__*/React.createElement(StyledDetailedCardHeader, _extends({}, forwardedProps, {
|
|
4664
4555
|
className: classNames(DetailedCardHeader.className, className),
|
|
4665
4556
|
ref: ref
|
|
@@ -4668,9 +4559,9 @@ const DetailedCardHeader = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4668
4559
|
className: `${DetailedCardHeader.className}__header`
|
|
4669
4560
|
}, header) : null, children);
|
|
4670
4561
|
});
|
|
4671
|
-
DetailedCardHeader.className = CLASSNAME$
|
|
4672
|
-
DetailedCardHeader.defaultProps = DEFAULT_PROPS$
|
|
4673
|
-
DetailedCardHeader.displayName = COMPONENT_NAME$
|
|
4562
|
+
DetailedCardHeader.className = CLASSNAME$b;
|
|
4563
|
+
DetailedCardHeader.defaultProps = DEFAULT_PROPS$b;
|
|
4564
|
+
DetailedCardHeader.displayName = COMPONENT_NAME$b;
|
|
4674
4565
|
|
|
4675
4566
|
/**
|
|
4676
4567
|
* Component style.
|
|
@@ -4713,10 +4604,10 @@ const StyledPill = styled.div`
|
|
|
4713
4604
|
}
|
|
4714
4605
|
`;
|
|
4715
4606
|
|
|
4716
|
-
const _excluded$
|
|
4717
|
-
const COMPONENT_NAME$
|
|
4718
|
-
const CLASSNAME$
|
|
4719
|
-
const DEFAULT_PROPS$
|
|
4607
|
+
const _excluded$a = ["autoBreak", "children", "className", "color"];
|
|
4608
|
+
const COMPONENT_NAME$a = 'Pill';
|
|
4609
|
+
const CLASSNAME$a = 'redsift-badge';
|
|
4610
|
+
const DEFAULT_PROPS$a = {
|
|
4720
4611
|
color: DataVizColorPalette.blue
|
|
4721
4612
|
};
|
|
4722
4613
|
|
|
@@ -4730,7 +4621,7 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4730
4621
|
className,
|
|
4731
4622
|
color
|
|
4732
4623
|
} = props,
|
|
4733
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4624
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$a);
|
|
4734
4625
|
return /*#__PURE__*/React.createElement(StyledPill, _extends({}, forwardedProps, {
|
|
4735
4626
|
$autoBreak: autoBreak,
|
|
4736
4627
|
$color: color,
|
|
@@ -4738,9 +4629,9 @@ const Pill = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4738
4629
|
ref: ref
|
|
4739
4630
|
}), children);
|
|
4740
4631
|
});
|
|
4741
|
-
Pill.className = CLASSNAME$
|
|
4742
|
-
Pill.defaultProps = DEFAULT_PROPS$
|
|
4743
|
-
Pill.displayName = COMPONENT_NAME$
|
|
4632
|
+
Pill.className = CLASSNAME$a;
|
|
4633
|
+
Pill.defaultProps = DEFAULT_PROPS$a;
|
|
4634
|
+
Pill.displayName = COMPONENT_NAME$a;
|
|
4744
4635
|
|
|
4745
4636
|
/**
|
|
4746
4637
|
* Component style.
|
|
@@ -4770,10 +4661,10 @@ const StyledDetailedCardSectionItem = styled.div`
|
|
|
4770
4661
|
}
|
|
4771
4662
|
`;
|
|
4772
4663
|
|
|
4773
|
-
const _excluded$
|
|
4774
|
-
const COMPONENT_NAME$
|
|
4775
|
-
const CLASSNAME$
|
|
4776
|
-
const DEFAULT_PROPS$
|
|
4664
|
+
const _excluded$9 = ["children", "className", "description", "icon", "iconProps", "pill", "pillProps", "shield"];
|
|
4665
|
+
const COMPONENT_NAME$9 = 'DetailedCardSectionItem';
|
|
4666
|
+
const CLASSNAME$9 = 'redsift-detailed-card-section-item';
|
|
4667
|
+
const DEFAULT_PROPS$9 = {};
|
|
4777
4668
|
|
|
4778
4669
|
/**
|
|
4779
4670
|
* The DetailedCardSectionItems component.
|
|
@@ -4789,7 +4680,7 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4789
4680
|
pillProps,
|
|
4790
4681
|
shield
|
|
4791
4682
|
} = props,
|
|
4792
|
-
forwardedProps = _objectWithoutProperties(props, _excluded$
|
|
4683
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$9);
|
|
4793
4684
|
return /*#__PURE__*/React.createElement(StyledDetailedCardSectionItem, _extends({}, forwardedProps, {
|
|
4794
4685
|
className: classNames(DetailedCardSectionItem.className, className),
|
|
4795
4686
|
ref: ref
|
|
@@ -4811,9 +4702,132 @@ const DetailedCardSectionItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
4811
4702
|
className: `${DetailedCardSectionItem.className}-header__pill`
|
|
4812
4703
|
}, pillProps), pill), description) : null), children);
|
|
4813
4704
|
});
|
|
4814
|
-
DetailedCardSectionItem.className = CLASSNAME$
|
|
4815
|
-
DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$
|
|
4816
|
-
DetailedCardSectionItem.displayName = COMPONENT_NAME$
|
|
4705
|
+
DetailedCardSectionItem.className = CLASSNAME$9;
|
|
4706
|
+
DetailedCardSectionItem.defaultProps = DEFAULT_PROPS$9;
|
|
4707
|
+
DetailedCardSectionItem.displayName = COMPONENT_NAME$9;
|
|
4708
|
+
|
|
4709
|
+
const _excluded$8 = ["areAllCollapsed", "children", "className", "color", "defaultAllCollapsed", "icon", "isCollapsible", "onCollapseAll", "shield"];
|
|
4710
|
+
const COMPONENT_NAME$8 = 'DetailedCard';
|
|
4711
|
+
const CLASSNAME$8 = 'redsift-detailed-card';
|
|
4712
|
+
const DEFAULT_PROPS$8 = {
|
|
4713
|
+
isCollapsible: true,
|
|
4714
|
+
width: '400px'
|
|
4715
|
+
};
|
|
4716
|
+
const hasCollapsibleChildren = children => {
|
|
4717
|
+
let hasCollapsible = false;
|
|
4718
|
+
React.Children.map(children, child => {
|
|
4719
|
+
if (isComponent(DetailedCardSection)(child)) {
|
|
4720
|
+
let hasCollapsibleItems = Boolean(child.isCollapsible);
|
|
4721
|
+
React.Children.map(child.props.children, sectionChild => {
|
|
4722
|
+
if (isComponent(DetailedCardCollapsibleSectionItems)(sectionChild)) {
|
|
4723
|
+
hasCollapsibleItems = true;
|
|
4724
|
+
}
|
|
4725
|
+
});
|
|
4726
|
+
hasCollapsible = hasCollapsibleItems;
|
|
4727
|
+
} else if (isComponent(DetailedCardCollapsibleSectionItems)(child)) {
|
|
4728
|
+
hasCollapsible = true;
|
|
4729
|
+
}
|
|
4730
|
+
});
|
|
4731
|
+
return hasCollapsible;
|
|
4732
|
+
};
|
|
4733
|
+
|
|
4734
|
+
/**
|
|
4735
|
+
* The DetailedCard component.
|
|
4736
|
+
*/
|
|
4737
|
+
const BaseDetailedCard = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4738
|
+
const {
|
|
4739
|
+
areAllCollapsed: propsAreAllCollapsed,
|
|
4740
|
+
children,
|
|
4741
|
+
className,
|
|
4742
|
+
color,
|
|
4743
|
+
defaultAllCollapsed,
|
|
4744
|
+
icon,
|
|
4745
|
+
isCollapsible: propsIsCollapsible,
|
|
4746
|
+
onCollapseAll,
|
|
4747
|
+
shield
|
|
4748
|
+
} = props,
|
|
4749
|
+
forwardedProps = _objectWithoutProperties(props, _excluded$8);
|
|
4750
|
+
const stringFormatter = useLocalizedStringFormatter(intlMessages$1);
|
|
4751
|
+
const isCollapsible = propsIsCollapsible && hasCollapsibleChildren(children);
|
|
4752
|
+
const [allCollapsed, setAllCollapsed] = useState({
|
|
4753
|
+
state: propsAreAllCollapsed !== null && propsAreAllCollapsed !== void 0 ? propsAreAllCollapsed : defaultAllCollapsed
|
|
4754
|
+
});
|
|
4755
|
+
useEffect(() => {
|
|
4756
|
+
setAllCollapsed({
|
|
4757
|
+
state: propsAreAllCollapsed !== null && propsAreAllCollapsed !== void 0 ? propsAreAllCollapsed : defaultAllCollapsed
|
|
4758
|
+
});
|
|
4759
|
+
}, [propsAreAllCollapsed, defaultAllCollapsed]);
|
|
4760
|
+
const handleCollapse = useCallback(allCollapsed => {
|
|
4761
|
+
if (onCollapseAll) {
|
|
4762
|
+
onCollapseAll(allCollapsed);
|
|
4763
|
+
}
|
|
4764
|
+
setAllCollapsed({
|
|
4765
|
+
state: allCollapsed
|
|
4766
|
+
});
|
|
4767
|
+
}, [onCollapseAll]);
|
|
4768
|
+
const [[header], content] = partitionComponents(React.Children.toArray(children), [isComponent('DetailedCardHeader')]);
|
|
4769
|
+
return /*#__PURE__*/React.createElement(StyledDetailedCard, _extends({}, forwardedProps, {
|
|
4770
|
+
className: classNames(BaseDetailedCard.className, className),
|
|
4771
|
+
ref: ref,
|
|
4772
|
+
$color: color
|
|
4773
|
+
}), color ? /*#__PURE__*/React.createElement("div", {
|
|
4774
|
+
className: `${BaseDetailedCard.className}__banner`
|
|
4775
|
+
}, shield ? /*#__PURE__*/React.createElement(Shield, {
|
|
4776
|
+
variant: shield,
|
|
4777
|
+
isOutlined: true,
|
|
4778
|
+
isReversed: true,
|
|
4779
|
+
svgProps: {
|
|
4780
|
+
width: '40px',
|
|
4781
|
+
height: '40px'
|
|
4782
|
+
},
|
|
4783
|
+
style: {
|
|
4784
|
+
width: '40px',
|
|
4785
|
+
height: '40px'
|
|
4786
|
+
}
|
|
4787
|
+
}) : icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
4788
|
+
icon: icon,
|
|
4789
|
+
color: "white",
|
|
4790
|
+
size: "xlarge"
|
|
4791
|
+
}) : null) : null, header ? /*#__PURE__*/React.createElement("div", {
|
|
4792
|
+
className: `${BaseDetailedCard.className}__header`
|
|
4793
|
+
}, header) : null, isCollapsible ? /*#__PURE__*/React.createElement(Flexbox, {
|
|
4794
|
+
justifyContent: "flex-end",
|
|
4795
|
+
className: `${BaseDetailedCard.className}__collapse-buttons`
|
|
4796
|
+
}, /*#__PURE__*/React.createElement(IconButton, {
|
|
4797
|
+
"aria-label": stringFormatter.format('collapse-all'),
|
|
4798
|
+
icon: mdiPageLast,
|
|
4799
|
+
onPress: () => handleCollapse(true),
|
|
4800
|
+
style: {
|
|
4801
|
+
transform: 'rotate(-90deg)'
|
|
4802
|
+
},
|
|
4803
|
+
color: "question"
|
|
4804
|
+
}), /*#__PURE__*/React.createElement(IconButton, {
|
|
4805
|
+
"aria-label": stringFormatter.format('expand-all'),
|
|
4806
|
+
icon: mdiKeyboardCaps,
|
|
4807
|
+
onPress: () => handleCollapse(false),
|
|
4808
|
+
style: {
|
|
4809
|
+
transform: 'rotate(180deg)'
|
|
4810
|
+
},
|
|
4811
|
+
color: "question"
|
|
4812
|
+
})) : null, React.Children.map(content, child => {
|
|
4813
|
+
if (isComponent(DetailedCardSection)(child)) {
|
|
4814
|
+
return /*#__PURE__*/React.cloneElement(child, {
|
|
4815
|
+
isCollapsed: allCollapsed.state,
|
|
4816
|
+
key: Math.random()
|
|
4817
|
+
});
|
|
4818
|
+
}
|
|
4819
|
+
return child;
|
|
4820
|
+
}));
|
|
4821
|
+
});
|
|
4822
|
+
BaseDetailedCard.className = CLASSNAME$8;
|
|
4823
|
+
BaseDetailedCard.defaultProps = DEFAULT_PROPS$8;
|
|
4824
|
+
BaseDetailedCard.displayName = COMPONENT_NAME$8;
|
|
4825
|
+
const DetailedCard = Object.assign(BaseDetailedCard, {
|
|
4826
|
+
Header: DetailedCardHeader,
|
|
4827
|
+
Section: DetailedCardSection,
|
|
4828
|
+
CollapsibleSectionItems: DetailedCardCollapsibleSectionItems,
|
|
4829
|
+
SectionItem: DetailedCardSectionItem
|
|
4830
|
+
});
|
|
4817
4831
|
|
|
4818
4832
|
/**
|
|
4819
4833
|
* Component style.
|
|
@@ -4830,60 +4844,63 @@ const StyledGrid = styled.div`
|
|
|
4830
4844
|
${baseGrid}
|
|
4831
4845
|
`;
|
|
4832
4846
|
|
|
4847
|
+
/**
|
|
4848
|
+
* Component style.
|
|
4849
|
+
*/
|
|
4850
|
+
const StyledGridItem = styled.div`
|
|
4851
|
+
display: inherit;
|
|
4852
|
+
|
|
4853
|
+
${baseStyling}
|
|
4854
|
+
`;
|
|
4855
|
+
|
|
4833
4856
|
const _excluded$7 = ["children", "className"];
|
|
4834
|
-
const COMPONENT_NAME$7 = '
|
|
4835
|
-
const CLASSNAME$7 = 'redsift-grid';
|
|
4857
|
+
const COMPONENT_NAME$7 = 'GridItem';
|
|
4858
|
+
const CLASSNAME$7 = 'redsift-grid-item';
|
|
4836
4859
|
const DEFAULT_PROPS$7 = {};
|
|
4837
4860
|
|
|
4838
4861
|
/**
|
|
4839
|
-
* The
|
|
4862
|
+
* The GridItem component.
|
|
4840
4863
|
*/
|
|
4841
|
-
const
|
|
4864
|
+
const GridItem = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4842
4865
|
const {
|
|
4843
4866
|
children,
|
|
4844
4867
|
className
|
|
4845
4868
|
} = props,
|
|
4846
4869
|
forwardedProps = _objectWithoutProperties(props, _excluded$7);
|
|
4847
|
-
return /*#__PURE__*/React.createElement(
|
|
4848
|
-
className: classNames(
|
|
4870
|
+
return /*#__PURE__*/React.createElement(StyledGridItem, _extends({}, forwardedProps, {
|
|
4871
|
+
className: classNames(GridItem.className, className),
|
|
4849
4872
|
ref: ref
|
|
4850
4873
|
}), children);
|
|
4851
4874
|
});
|
|
4852
|
-
|
|
4853
|
-
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
/**
|
|
4857
|
-
* Component style.
|
|
4858
|
-
*/
|
|
4859
|
-
const StyledGridItem = styled.div`
|
|
4860
|
-
display: inherit;
|
|
4861
|
-
|
|
4862
|
-
${baseStyling}
|
|
4863
|
-
`;
|
|
4875
|
+
GridItem.className = CLASSNAME$7;
|
|
4876
|
+
GridItem.defaultProps = DEFAULT_PROPS$7;
|
|
4877
|
+
GridItem.displayName = COMPONENT_NAME$7;
|
|
4864
4878
|
|
|
4865
4879
|
const _excluded$6 = ["children", "className"];
|
|
4866
|
-
const COMPONENT_NAME$6 = '
|
|
4867
|
-
const CLASSNAME$6 = 'redsift-grid
|
|
4880
|
+
const COMPONENT_NAME$6 = 'Grid';
|
|
4881
|
+
const CLASSNAME$6 = 'redsift-grid';
|
|
4868
4882
|
const DEFAULT_PROPS$6 = {};
|
|
4869
4883
|
|
|
4870
4884
|
/**
|
|
4871
|
-
* The
|
|
4885
|
+
* The Grid component.
|
|
4872
4886
|
*/
|
|
4873
|
-
const
|
|
4887
|
+
const BaseGrid = /*#__PURE__*/forwardRef((props, ref) => {
|
|
4874
4888
|
const {
|
|
4875
4889
|
children,
|
|
4876
4890
|
className
|
|
4877
4891
|
} = props,
|
|
4878
4892
|
forwardedProps = _objectWithoutProperties(props, _excluded$6);
|
|
4879
|
-
return /*#__PURE__*/React.createElement(
|
|
4880
|
-
className: classNames(
|
|
4893
|
+
return /*#__PURE__*/React.createElement(StyledGrid, _extends({}, forwardedProps, {
|
|
4894
|
+
className: classNames(BaseGrid.className, className),
|
|
4881
4895
|
ref: ref
|
|
4882
4896
|
}), children);
|
|
4883
4897
|
});
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4898
|
+
BaseGrid.className = CLASSNAME$6;
|
|
4899
|
+
BaseGrid.defaultProps = DEFAULT_PROPS$6;
|
|
4900
|
+
BaseGrid.displayName = COMPONENT_NAME$6;
|
|
4901
|
+
const Grid = Object.assign(BaseGrid, {
|
|
4902
|
+
Item: GridItem
|
|
4903
|
+
});
|
|
4887
4904
|
|
|
4888
4905
|
/**
|
|
4889
4906
|
* Component style.
|
|
@@ -5660,5 +5677,5 @@ Text.className = CLASSNAME;
|
|
|
5660
5677
|
Text.defaultProps = DEFAULT_PROPS;
|
|
5661
5678
|
Text.displayName = COMPONENT_NAME;
|
|
5662
5679
|
|
|
5663
|
-
export { Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, Badge, BadgeVariant, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, ButtonVariant, Card, CardActions, CardBody, CardHeader, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, ConditionalWrapper, DataVizColorPalette, DetailedCard, DetailedCardCollapsibleSectionItems, DetailedCardHeader, DetailedCardSection, DetailedCardSectionItem, FlexDirection, FlexWrap, Flexbox, FontFamily, Grid, GridItem, Heading, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, JustifyContent, JustifyItems, JustifySelf, Link, LinkButton, NeutralColorPalette, Number$1 as Number, Pill, ProductColorPalette, Radio, RadioGroup, RadioGroupOrientation, RedsiftAppBarColorBackground, RedsiftAppBarColorExpandIconBackgroundHover, RedsiftAppBarColorExpandIconHover, RedsiftAppBarColorExpandIconResting, RedsiftAppBarColorText, RedsiftColorDefaultActive, RedsiftColorDefaultActiveHover, RedsiftColorDefaultHover, RedsiftColorDefaultPrimary, RedsiftColorDefaultPrimaryActive, RedsiftColorDefaultSecondary, RedsiftColorErrorActive, RedsiftColorErrorActiveHover, RedsiftColorErrorHover, RedsiftColorErrorPrimary, RedsiftColorErrorPrimaryActive, RedsiftColorErrorSecondary, RedsiftColorHardenizeActive, RedsiftColorHardenizeActiveHover, RedsiftColorHardenizeHover, RedsiftColorHardenizePrimary, RedsiftColorHardenizePrimaryActive, RedsiftColorHardenizeSecondary, RedsiftColorInfoActive, RedsiftColorInfoActiveHover, RedsiftColorInfoHover, RedsiftColorInfoPrimary, RedsiftColorInfoPrimaryActive, RedsiftColorInfoSecondary, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkgrey, RedsiftColorNeutralLightgrey, RedsiftColorNeutralMidgrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXlightgrey, RedsiftColorNoDataActive, RedsiftColorNoDataActiveHover, RedsiftColorNoDataHover, RedsiftColorNoDataPrimary, RedsiftColorNoDataSecondary, RedsiftColorOndmarcActive, RedsiftColorOndmarcActiveHover, RedsiftColorOndmarcHover, RedsiftColorOndmarcPrimary, RedsiftColorOndmarcPrimaryActive, RedsiftColorOndmarcSecondary, RedsiftColorOndomainActive, RedsiftColorOndomainActiveHover, RedsiftColorOndomainHover, RedsiftColorOndomainPrimary, RedsiftColorOndomainPrimaryActive, RedsiftColorOndomainSecondary, RedsiftColorOninboxActive, RedsiftColorOninboxActiveHover, RedsiftColorOninboxHover, RedsiftColorOninboxPrimary, RedsiftColorOninboxPrimaryActive, RedsiftColorOninboxSecondary, RedsiftColorQuestionActive, RedsiftColorQuestionActiveHover, RedsiftColorQuestionHover, RedsiftColorQuestionPrimary, RedsiftColorQuestionSecondary, RedsiftColorSuccessActive, RedsiftColorSuccessActiveHover, RedsiftColorSuccessHover, RedsiftColorSuccessPrimary, RedsiftColorSuccessPrimaryActive, RedsiftColorSuccessSecondary, RedsiftColorToolsActive, RedsiftColorToolsActiveHover, RedsiftColorToolsHover, RedsiftColorToolsPrimary, RedsiftColorToolsPrimaryActive, RedsiftColorToolsSecondary, RedsiftColorWarningActive, RedsiftColorWarningActiveHover, RedsiftColorWarningHover, RedsiftColorWarningPrimary, RedsiftColorWarningPrimaryActive, RedsiftColorWarningSecondary, RedsiftColorWebsiteActive, RedsiftColorWebsiteActiveHover, RedsiftColorWebsiteHover, RedsiftColorWebsitePrimary, RedsiftColorWebsitePrimaryActive, RedsiftColorWebsiteSecondary, RedsiftDataVizColorBlueDark, RedsiftDataVizColorBlueDarker, RedsiftDataVizColorBlueDefault, RedsiftDataVizColorBlueLight, RedsiftDataVizColorBlueLighter, RedsiftDataVizColorBrownDark, RedsiftDataVizColorBrownDarker, RedsiftDataVizColorBrownDefault, RedsiftDataVizColorBrownLight, RedsiftDataVizColorBrownLighter, RedsiftDataVizColorCyanDark, RedsiftDataVizColorCyanDarker, RedsiftDataVizColorCyanDefault, RedsiftDataVizColorCyanLight, RedsiftDataVizColorCyanLighter, RedsiftDataVizColorGreenDark, RedsiftDataVizColorGreenDarker, RedsiftDataVizColorGreenDefault, RedsiftDataVizColorGreenLight, RedsiftDataVizColorGreenLighter, RedsiftDataVizColorGreyDark, RedsiftDataVizColorGreyDarker, RedsiftDataVizColorGreyDefault, RedsiftDataVizColorGreyLight, RedsiftDataVizColorGreyLighter, RedsiftDataVizColorOrangeDark, RedsiftDataVizColorOrangeDarker, RedsiftDataVizColorOrangeDefault, RedsiftDataVizColorOrangeLight, RedsiftDataVizColorOrangeLighter, RedsiftDataVizColorPinkDark, RedsiftDataVizColorPinkDarker, RedsiftDataVizColorPinkDefault, RedsiftDataVizColorPinkLight, RedsiftDataVizColorPinkLighter, RedsiftDataVizColorPurpleDark, RedsiftDataVizColorPurpleDarker, RedsiftDataVizColorPurpleDefault, RedsiftDataVizColorPurpleLight, RedsiftDataVizColorPurpleLighter, RedsiftDataVizColorRedDark, RedsiftDataVizColorRedDarker, RedsiftDataVizColorRedDefault, RedsiftDataVizColorRedLight, RedsiftDataVizColorRedLighter, RedsiftDataVizColorYellowDark, RedsiftDataVizColorYellowDarker, RedsiftDataVizColorYellowDefault, RedsiftDataVizColorYellowLight, RedsiftDataVizColorYellowLighter, RedsiftSideNavigationColorBackground, RedsiftSideNavigationColorMenuItemActive, RedsiftSideNavigationColorMenuItemBackgroundActive, RedsiftSideNavigationColorMenuItemBackgroundHover, RedsiftSideNavigationColorMenuItemBackgroundSecondary, RedsiftSideNavigationColorMenuItemTextDisabled, RedsiftSideNavigationColorMenuItemTextHover, RedsiftSideNavigationColorMenuItemTextResting, RedsiftSideNavigationColorScrollbarHover, RedsiftSideNavigationColorScrollbarResting, RedsiftTypographyBadgeFontFamily, RedsiftTypographyBadgeFontSize, RedsiftTypographyBadgeFontWeight, RedsiftTypographyBadgeLineHeight, RedsiftTypographyBody2FontFamily, RedsiftTypographyBody2FontSize, RedsiftTypographyBody2FontWeight, RedsiftTypographyBody2LineHeight, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyBodyTextTransform, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyCaptionTextTransform, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyFontFamilyElectrolize, RedsiftTypographyFontFamilyRaleway, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, RedsiftTypographyH1FontFamily, RedsiftTypographyH1FontSize, RedsiftTypographyH1FontWeight, RedsiftTypographyH1LineHeight, RedsiftTypographyH1TextTransform, RedsiftTypographyH2FontFamily, RedsiftTypographyH2FontSize, RedsiftTypographyH2FontWeight, RedsiftTypographyH2LineHeight, RedsiftTypographyH2TextTransform, RedsiftTypographyH3FontFamily, RedsiftTypographyH3FontSize, RedsiftTypographyH3FontWeight, RedsiftTypographyH3LineHeight, RedsiftTypographyH3TextTransform, RedsiftTypographyH4FontFamily, RedsiftTypographyH4FontSize, RedsiftTypographyH4FontWeight, RedsiftTypographyH4LineHeight, RedsiftTypographyH4TextTransform, RedsiftTypographyH5FontFamily, RedsiftTypographyH5FontSize, RedsiftTypographyH5FontWeight, RedsiftTypographyH5LineHeight, RedsiftTypographyH5TextTransform, RedsiftTypographyHelperFontFamily, RedsiftTypographyHelperFontSize, RedsiftTypographyHelperFontWeight, RedsiftTypographyHelperLineHeight, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographySubtitleFontFamily, RedsiftTypographySubtitleFontSize, RedsiftTypographySubtitleFontWeight, RedsiftTypographySubtitleLineHeight, RedsiftTypographySubtitleTextTransform, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Spinner, SpinnerSize, StyledButton, StyledLink, Text, TextComponent, TextVariant, filterComponents, isComponent, partitionComponents, useAppSidePanel, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
5680
|
+
export { Alert, AlertVariant, AlignContent, AlignItems, AlignSelf, AppBar, AppContainer, AppContainerContext, AppContent, AppSidePanel, Badge, BadgeVariant, BaseBreadcrumbs, BaseGrid, BreadcrumbItem, Breadcrumbs, Button, ButtonLink, ButtonVariant, Card, CardActions, CardBody, CardHeader, Checkbox, CheckboxGroup, CheckboxGroupOrientation, ColorPalette, ConditionalWrapper, DataVizColorPalette, DetailedCard, DetailedCardCollapsibleSectionItems, DetailedCardHeader, DetailedCardSection, DetailedCardSectionItem, FlexDirection, FlexWrap, Flexbox, FontFamily, Grid, GridItem, Heading, HeadingVariant, Icon, IconButton, IconButtonVariant, IconSize, JustifyContent, JustifyItems, JustifySelf, Link, LinkButton, NeutralColorPalette, Number$1 as Number, Pill, ProductColorPalette, Radio, RadioGroup, RadioGroupOrientation, RedsiftAppBarColorBackground, RedsiftAppBarColorExpandIconBackgroundHover, RedsiftAppBarColorExpandIconHover, RedsiftAppBarColorExpandIconResting, RedsiftAppBarColorText, RedsiftColorDefaultActive, RedsiftColorDefaultActiveHover, RedsiftColorDefaultHover, RedsiftColorDefaultPrimary, RedsiftColorDefaultPrimaryActive, RedsiftColorDefaultSecondary, RedsiftColorErrorActive, RedsiftColorErrorActiveHover, RedsiftColorErrorHover, RedsiftColorErrorPrimary, RedsiftColorErrorPrimaryActive, RedsiftColorErrorSecondary, RedsiftColorHardenizeActive, RedsiftColorHardenizeActiveHover, RedsiftColorHardenizeHover, RedsiftColorHardenizePrimary, RedsiftColorHardenizePrimaryActive, RedsiftColorHardenizeSecondary, RedsiftColorInfoActive, RedsiftColorInfoActiveHover, RedsiftColorInfoHover, RedsiftColorInfoPrimary, RedsiftColorInfoPrimaryActive, RedsiftColorInfoSecondary, RedsiftColorNeutralBlack, RedsiftColorNeutralDarkgrey, RedsiftColorNeutralLightgrey, RedsiftColorNeutralMidgrey, RedsiftColorNeutralWhite, RedsiftColorNeutralXlightgrey, RedsiftColorNoDataActive, RedsiftColorNoDataActiveHover, RedsiftColorNoDataHover, RedsiftColorNoDataPrimary, RedsiftColorNoDataSecondary, RedsiftColorOndmarcActive, RedsiftColorOndmarcActiveHover, RedsiftColorOndmarcHover, RedsiftColorOndmarcPrimary, RedsiftColorOndmarcPrimaryActive, RedsiftColorOndmarcSecondary, RedsiftColorOndomainActive, RedsiftColorOndomainActiveHover, RedsiftColorOndomainHover, RedsiftColorOndomainPrimary, RedsiftColorOndomainPrimaryActive, RedsiftColorOndomainSecondary, RedsiftColorOninboxActive, RedsiftColorOninboxActiveHover, RedsiftColorOninboxHover, RedsiftColorOninboxPrimary, RedsiftColorOninboxPrimaryActive, RedsiftColorOninboxSecondary, RedsiftColorQuestionActive, RedsiftColorQuestionActiveHover, RedsiftColorQuestionHover, RedsiftColorQuestionPrimary, RedsiftColorQuestionSecondary, RedsiftColorSuccessActive, RedsiftColorSuccessActiveHover, RedsiftColorSuccessHover, RedsiftColorSuccessPrimary, RedsiftColorSuccessPrimaryActive, RedsiftColorSuccessSecondary, RedsiftColorToolsActive, RedsiftColorToolsActiveHover, RedsiftColorToolsHover, RedsiftColorToolsPrimary, RedsiftColorToolsPrimaryActive, RedsiftColorToolsSecondary, RedsiftColorWarningActive, RedsiftColorWarningActiveHover, RedsiftColorWarningHover, RedsiftColorWarningPrimary, RedsiftColorWarningPrimaryActive, RedsiftColorWarningSecondary, RedsiftColorWebsiteActive, RedsiftColorWebsiteActiveHover, RedsiftColorWebsiteHover, RedsiftColorWebsitePrimary, RedsiftColorWebsitePrimaryActive, RedsiftColorWebsiteSecondary, RedsiftDataVizColorBlueDark, RedsiftDataVizColorBlueDarker, RedsiftDataVizColorBlueDefault, RedsiftDataVizColorBlueLight, RedsiftDataVizColorBlueLighter, RedsiftDataVizColorBrownDark, RedsiftDataVizColorBrownDarker, RedsiftDataVizColorBrownDefault, RedsiftDataVizColorBrownLight, RedsiftDataVizColorBrownLighter, RedsiftDataVizColorCyanDark, RedsiftDataVizColorCyanDarker, RedsiftDataVizColorCyanDefault, RedsiftDataVizColorCyanLight, RedsiftDataVizColorCyanLighter, RedsiftDataVizColorGreenDark, RedsiftDataVizColorGreenDarker, RedsiftDataVizColorGreenDefault, RedsiftDataVizColorGreenLight, RedsiftDataVizColorGreenLighter, RedsiftDataVizColorGreyDark, RedsiftDataVizColorGreyDarker, RedsiftDataVizColorGreyDefault, RedsiftDataVizColorGreyLight, RedsiftDataVizColorGreyLighter, RedsiftDataVizColorOrangeDark, RedsiftDataVizColorOrangeDarker, RedsiftDataVizColorOrangeDefault, RedsiftDataVizColorOrangeLight, RedsiftDataVizColorOrangeLighter, RedsiftDataVizColorPinkDark, RedsiftDataVizColorPinkDarker, RedsiftDataVizColorPinkDefault, RedsiftDataVizColorPinkLight, RedsiftDataVizColorPinkLighter, RedsiftDataVizColorPurpleDark, RedsiftDataVizColorPurpleDarker, RedsiftDataVizColorPurpleDefault, RedsiftDataVizColorPurpleLight, RedsiftDataVizColorPurpleLighter, RedsiftDataVizColorRedDark, RedsiftDataVizColorRedDarker, RedsiftDataVizColorRedDefault, RedsiftDataVizColorRedLight, RedsiftDataVizColorRedLighter, RedsiftDataVizColorYellowDark, RedsiftDataVizColorYellowDarker, RedsiftDataVizColorYellowDefault, RedsiftDataVizColorYellowLight, RedsiftDataVizColorYellowLighter, RedsiftSideNavigationColorBackground, RedsiftSideNavigationColorMenuItemActive, RedsiftSideNavigationColorMenuItemBackgroundActive, RedsiftSideNavigationColorMenuItemBackgroundHover, RedsiftSideNavigationColorMenuItemBackgroundSecondary, RedsiftSideNavigationColorMenuItemTextDisabled, RedsiftSideNavigationColorMenuItemTextHover, RedsiftSideNavigationColorMenuItemTextResting, RedsiftSideNavigationColorScrollbarHover, RedsiftSideNavigationColorScrollbarResting, RedsiftTypographyBadgeFontFamily, RedsiftTypographyBadgeFontSize, RedsiftTypographyBadgeFontWeight, RedsiftTypographyBadgeLineHeight, RedsiftTypographyBody2FontFamily, RedsiftTypographyBody2FontSize, RedsiftTypographyBody2FontWeight, RedsiftTypographyBody2LineHeight, RedsiftTypographyBodyFontFamily, RedsiftTypographyBodyFontSize, RedsiftTypographyBodyFontWeight, RedsiftTypographyBodyLineHeight, RedsiftTypographyBodyTextTransform, RedsiftTypographyButtonFontFamily, RedsiftTypographyButtonFontSize, RedsiftTypographyButtonFontWeight, RedsiftTypographyButtonLineHeight, RedsiftTypographyButtonTextTransform, RedsiftTypographyCaptionFontFamily, RedsiftTypographyCaptionFontSize, RedsiftTypographyCaptionFontWeight, RedsiftTypographyCaptionLineHeight, RedsiftTypographyCaptionTextTransform, RedsiftTypographyChipFontFamily, RedsiftTypographyChipFontSize, RedsiftTypographyChipFontWeight, RedsiftTypographyChipLineHeight, RedsiftTypographyFontFamilyElectrolize, RedsiftTypographyFontFamilyRaleway, RedsiftTypographyFontFamilySourceCodePro, RedsiftTypographyFontWeightBold, RedsiftTypographyFontWeightMedium, RedsiftTypographyFontWeightRegular, RedsiftTypographyFontWeightSemiBold, RedsiftTypographyH1FontFamily, RedsiftTypographyH1FontSize, RedsiftTypographyH1FontWeight, RedsiftTypographyH1LineHeight, RedsiftTypographyH1TextTransform, RedsiftTypographyH2FontFamily, RedsiftTypographyH2FontSize, RedsiftTypographyH2FontWeight, RedsiftTypographyH2LineHeight, RedsiftTypographyH2TextTransform, RedsiftTypographyH3FontFamily, RedsiftTypographyH3FontSize, RedsiftTypographyH3FontWeight, RedsiftTypographyH3LineHeight, RedsiftTypographyH3TextTransform, RedsiftTypographyH4FontFamily, RedsiftTypographyH4FontSize, RedsiftTypographyH4FontWeight, RedsiftTypographyH4LineHeight, RedsiftTypographyH4TextTransform, RedsiftTypographyH5FontFamily, RedsiftTypographyH5FontSize, RedsiftTypographyH5FontWeight, RedsiftTypographyH5LineHeight, RedsiftTypographyH5TextTransform, RedsiftTypographyHelperFontFamily, RedsiftTypographyHelperFontSize, RedsiftTypographyHelperFontWeight, RedsiftTypographyHelperLineHeight, RedsiftTypographyInputTextFontFamily, RedsiftTypographyInputTextFontSize, RedsiftTypographyInputTextFontWeight, RedsiftTypographyInputTextLineHeight, RedsiftTypographyLinkFontFamily, RedsiftTypographyLinkFontSize, RedsiftTypographyLinkFontWeight, RedsiftTypographyLinkLineHeight, RedsiftTypographyPillFontFamily, RedsiftTypographyPillFontSize, RedsiftTypographyPillFontWeight, RedsiftTypographyPillLineHeight, RedsiftTypographySubtitleFontFamily, RedsiftTypographySubtitleFontSize, RedsiftTypographySubtitleFontWeight, RedsiftTypographySubtitleLineHeight, RedsiftTypographySubtitleTextTransform, Shield, ShieldVariant, SideNavigationMenu, SideNavigationMenuBar, SideNavigationMenuItem, SideNavigationMenuReducerActionType, Spinner, SpinnerSize, StyledButton, StyledLink, Text, TextComponent, TextVariant, filterComponents, isComponent, partitionComponents, useAppSidePanel, useSideNavigationMenuBar, useWindowSize, warnIfNoAccessibleLabelFound };
|
|
5664
5681
|
//# sourceMappingURL=index.js.map
|