@useblu/ocean-react 1.136.0 → 1.137.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/Banner/Banner.d.ts +24 -0
- package/Banner/Banner.d.ts.map +1 -0
- package/Banner/index.d.ts +2 -0
- package/Banner/index.d.ts.map +1 -0
- package/CHANGELOG.md +7 -0
- package/ListAction/ListAction.d.ts +3 -1
- package/ListAction/ListAction.d.ts.map +1 -1
- package/ListExpandable/ListExpandable.d.ts +3 -1
- package/ListExpandable/ListExpandable.d.ts.map +1 -1
- package/ListReadOnly/ListReadOnly.d.ts +3 -1
- package/ListReadOnly/ListReadOnly.d.ts.map +1 -1
- package/ListSelectable/ListSelectable.d.ts +3 -2
- package/ListSelectable/ListSelectable.d.ts.map +1 -1
- package/ListSelectable/index.d.ts +1 -0
- package/ListSelectable/index.d.ts.map +1 -1
- package/_shared/components/ContentList/ContentList.d.ts +5 -2
- package/_shared/components/ContentList/ContentList.d.ts.map +1 -1
- package/_shared/components/ContentList/index.d.ts +1 -1
- package/_shared/components/ContentList/index.d.ts.map +1 -1
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.es.js +57 -19
- package/index.es.js.map +1 -1
- package/index.js +57 -18
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -5450,8 +5450,10 @@ TextArea.displayName = 'TextArea';
|
|
|
5450
5450
|
|
|
5451
5451
|
var ContentList = function (_a) {
|
|
5452
5452
|
var _b, _c, _d;
|
|
5453
|
-
var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, _e = _a.inverted, inverted = _e === void 0 ? false : _e, _f = _a.type, type = _f === void 0 ? 'default' : _f;
|
|
5453
|
+
var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, _e = _a.inverted, inverted = _e === void 0 ? false : _e, _f = _a.type, type = _f === void 0 ? 'default' : _f, indicator = _a.indicator, indicatorPosition = _a.indicatorPosition;
|
|
5454
|
+
var stackedIndicator = indicator && indicatorPosition && (e.createElement("div", { className: classNames('ods-content-list__indicator', "ods-content-list__indicator--".concat(indicatorPosition)) }, indicator));
|
|
5454
5455
|
return (e.createElement("div", { className: "ods-content-list" },
|
|
5456
|
+
indicatorPosition === 'above' && stackedIndicator,
|
|
5455
5457
|
e.createElement("p", { className: classNames('ods-typography', (_b = {
|
|
5456
5458
|
'ods-typography__paragraph': !inverted,
|
|
5457
5459
|
'ods-typography__description': inverted
|
|
@@ -5470,7 +5472,8 @@ var ContentList = function (_a) {
|
|
|
5470
5472
|
description)),
|
|
5471
5473
|
caption && (e.createElement("p", { className: classNames("ods-typography ods-typography__captionbold", (_d = {},
|
|
5472
5474
|
_d["ods-typography__paragraph--".concat(type)] = type && type === 'inactive',
|
|
5473
|
-
_d)) }, caption))
|
|
5475
|
+
_d)) }, caption)),
|
|
5476
|
+
indicatorPosition === 'below' && stackedIndicator));
|
|
5474
5477
|
};
|
|
5475
5478
|
|
|
5476
5479
|
var SkeletonBar = function (_a) {
|
|
@@ -5505,16 +5508,17 @@ ListContainer.displayName = 'ListContainer';
|
|
|
5505
5508
|
|
|
5506
5509
|
var ListReadOnly = e.forwardRef(function (_a, ref) {
|
|
5507
5510
|
var _b;
|
|
5508
|
-
var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, icon = _a.icon, indicator = _a.indicator, _c = _a.
|
|
5511
|
+
var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, icon = _a.icon, indicator = _a.indicator, _c = _a.indicatorPosition, indicatorPosition = _c === void 0 ? 'inline' : _c, _d = _a.type, type = _d === void 0 ? 'card' : _d, _e = _a.status, status = _e === void 0 ? 'default' : _e, _f = _a.inverted, inverted = _f === void 0 ? false : _f, _g = _a.disabled, disabled = _g === void 0 ? false : _g, _h = _a.loading, loading = _h === void 0 ? false : _h, className = _a.className, _j = _a.showDivider, showDivider = _j === void 0 ? false : _j, highlight = _a.highlight, cornerTag = _a.cornerTag, rest = __rest$1(_a, ["title", "description", "strikethroughDescription", "caption", "icon", "indicator", "indicatorPosition", "type", "status", "inverted", "disabled", "loading", "className", "showDivider", "highlight", "cornerTag"]);
|
|
5509
5512
|
var renderLoadingContent = function () { return (e.createElement("div", { className: "ods-list-readonly__skeleton" },
|
|
5510
5513
|
e.createElement(SkeletonBar, { width: "40%", height: "16px" }),
|
|
5511
5514
|
e.createElement(SkeletonBar, { width: "100%", height: "16px" }))); };
|
|
5515
|
+
var stackedPosition = indicatorPosition !== 'inline' ? indicatorPosition : undefined;
|
|
5512
5516
|
var renderContent = function () { return (e.createElement(e.Fragment, null,
|
|
5513
5517
|
icon && (e.createElement("div", { className: classNames('ods-list-readonly__icon', {
|
|
5514
5518
|
'ods-list-readonly__icon--inactive': status === 'inactive',
|
|
5515
5519
|
}) }, icon)),
|
|
5516
|
-
e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: status }),
|
|
5517
|
-
indicator && (e.createElement("div", { className: "ods-list-readonly__trailing" },
|
|
5520
|
+
e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: status, indicator: stackedPosition ? indicator : undefined, indicatorPosition: stackedPosition }),
|
|
5521
|
+
indicator && !stackedPosition && (e.createElement("div", { className: "ods-list-readonly__trailing" },
|
|
5518
5522
|
e.createElement("div", { className: "ods-list-readonly__indicator" }, indicator))))); };
|
|
5519
5523
|
var cardClassName = classNames('ods-list-readonly', className, (_b = {
|
|
5520
5524
|
'ods-list-readonly--loading': loading,
|
|
@@ -5529,15 +5533,16 @@ ListReadOnly.displayName = 'ListReadOnly';
|
|
|
5529
5533
|
|
|
5530
5534
|
var ListSelectable = e.forwardRef(function (props, ref) {
|
|
5531
5535
|
var _a;
|
|
5532
|
-
var _b = props, title = _b.title, description = _b.description, caption = _b.caption, strikethroughDescription = _b.strikethroughDescription, inverted = _b.inverted, loading = _b.loading, disabled = _b.disabled, checkbox = _b.checkbox, radio = _b.radio, className = _b.className, showDivider = _b.showDivider, indicator = _b.indicator, isSelectableDisabled = _b.isSelectableDisabled, highlight = _b.highlight,
|
|
5536
|
+
var _b = props, title = _b.title, description = _b.description, caption = _b.caption, strikethroughDescription = _b.strikethroughDescription, inverted = _b.inverted, loading = _b.loading, disabled = _b.disabled, checkbox = _b.checkbox, radio = _b.radio, className = _b.className, showDivider = _b.showDivider, indicator = _b.indicator, _c = _b.indicatorPosition, indicatorPosition = _c === void 0 ? 'inline' : _c, isSelectableDisabled = _b.isSelectableDisabled, highlight = _b.highlight, _d = _b.status, status = _d === void 0 ? 'default' : _d, _e = _b.type, type = _e === void 0 ? 'card' : _e, _f = _b.platform, platform = _f === void 0 ? 'web' : _f, cornerTag = _b.cornerTag, rest = __rest$1(_b, ["title", "description", "caption", "strikethroughDescription", "inverted", "loading", "disabled", "checkbox", "radio", "className", "showDivider", "indicator", "indicatorPosition", "isSelectableDisabled", "highlight", "status", "type", "platform", "cornerTag"]);
|
|
5533
5537
|
var cardCornerTag = type === 'card' ? cornerTag : undefined;
|
|
5534
5538
|
var hasError = e.useMemo(function () { return (radio === null || radio === void 0 ? void 0 : radio.error) || (checkbox === null || checkbox === void 0 ? void 0 : checkbox.error); }, [radio === null || radio === void 0 ? void 0 : radio.error, checkbox === null || checkbox === void 0 ? void 0 : checkbox.error]);
|
|
5535
5539
|
var isInputDisabled = e.useMemo(function () { return (radio === null || radio === void 0 ? void 0 : radio.disabled) || (checkbox === null || checkbox === void 0 ? void 0 : checkbox.disabled) || disabled; }, [radio === null || radio === void 0 ? void 0 : radio.disabled, checkbox === null || checkbox === void 0 ? void 0 : checkbox.disabled, disabled]);
|
|
5540
|
+
var stackedPosition = indicatorPosition !== 'inline' ? indicatorPosition : undefined;
|
|
5536
5541
|
var internalList = e.useMemo(function () {
|
|
5537
5542
|
var _a;
|
|
5538
5543
|
return (e.createElement(e.Fragment, null,
|
|
5539
|
-
e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: disabled ? 'inactive' : status }),
|
|
5540
|
-
indicator && (e.createElement("div", { className: classNames('ods-list-selectable__indicator', (_a = {},
|
|
5544
|
+
e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: disabled ? 'inactive' : status, indicator: stackedPosition ? indicator : undefined, indicatorPosition: stackedPosition }),
|
|
5545
|
+
indicator && !stackedPosition && (e.createElement("div", { className: classNames('ods-list-selectable__indicator', (_a = {},
|
|
5541
5546
|
_a["ods-list-selectable__indicator--".concat(platform)] = platform,
|
|
5542
5547
|
_a)) }, indicator))));
|
|
5543
5548
|
}, [
|
|
@@ -5548,6 +5553,7 @@ var ListSelectable = e.forwardRef(function (props, ref) {
|
|
|
5548
5553
|
inverted,
|
|
5549
5554
|
status,
|
|
5550
5555
|
indicator,
|
|
5556
|
+
stackedPosition,
|
|
5551
5557
|
disabled,
|
|
5552
5558
|
platform,
|
|
5553
5559
|
]);
|
|
@@ -5557,7 +5563,7 @@ var ListSelectable = e.forwardRef(function (props, ref) {
|
|
|
5557
5563
|
e.createElement(SkeletonBar, { width: "100%", height: "16px" })));
|
|
5558
5564
|
}
|
|
5559
5565
|
if (isSelectableDisabled) {
|
|
5560
|
-
return (e.createElement(ListReadOnly, __assign$1({ title: title, description: description, status: status, type: type, inverted: inverted, disabled: disabled, loading: loading, className: className, showDivider: showDivider, indicator: indicator, caption: caption, strikethroughDescription: strikethroughDescription, highlight: highlight, cornerTag: cardCornerTag }, rest, { ref: ref })));
|
|
5566
|
+
return (e.createElement(ListReadOnly, __assign$1({ title: title, description: description, status: status, type: type, inverted: inverted, disabled: disabled, loading: loading, className: className, showDivider: showDivider, indicator: indicator, indicatorPosition: indicatorPosition, caption: caption, strikethroughDescription: strikethroughDescription, highlight: highlight, cornerTag: cardCornerTag }, rest, { ref: ref })));
|
|
5561
5567
|
}
|
|
5562
5568
|
return (e.createElement(ListContainer, { type: type, showDivider: showDivider, hasError: hasError, highlight: highlight, cornerTag: cardCornerTag },
|
|
5563
5569
|
e.createElement("div", __assign$1({ className: classNames('ods-list-selectable', className, (_a = {
|
|
@@ -26275,6 +26281,36 @@ var Steps = function (_a) {
|
|
|
26275
26281
|
return (e.createElement("svg", { height: "20", width: 30 * (steps - 1) + 22, viewBox: "0 0 ".concat(30 * (steps - 1) + 22, " 20"), fill: "none", xmlns: "http://www.w3.org/2000/svg", "data-testid": "step-".concat(currentStep) }, Array.from(Array(steps).keys()).map(function (step) { return (e.createElement("g", { key: step }, getCurrentStep(step + 1))); })));
|
|
26276
26282
|
};
|
|
26277
26283
|
|
|
26284
|
+
var PRIMARY_VARIANT_MAP = {
|
|
26285
|
+
default: 'primary',
|
|
26286
|
+
warning: 'primaryWarning',
|
|
26287
|
+
negative: 'primaryCritical',
|
|
26288
|
+
emphasys: 'secondary',
|
|
26289
|
+
};
|
|
26290
|
+
var SECONDARY_VARIANT_MAP = {
|
|
26291
|
+
default: 'tertiary',
|
|
26292
|
+
warning: 'tertiaryWarning',
|
|
26293
|
+
negative: 'tertiaryCritical',
|
|
26294
|
+
emphasys: 'tertiary',
|
|
26295
|
+
};
|
|
26296
|
+
var Banner = e.forwardRef(function (_a, ref) {
|
|
26297
|
+
var _b = _a.size, size = _b === void 0 ? 'large' : _b, _c = _a.type, type = _c === void 0 ? 'default' : _c, title = _a.title, description = _a.description, image = _a.image, primaryAction = _a.primaryAction, secondaryAction = _a.secondaryAction, className = _a.className, rest = __rest$1(_a, ["size", "type", "title", "description", "image", "primaryAction", "secondaryAction", "className"]);
|
|
26298
|
+
var isEmphasys = type === 'emphasys';
|
|
26299
|
+
var hasActions = primaryAction || secondaryAction;
|
|
26300
|
+
var imageEl = image ? (e.createElement("img", { className: "ods-banner__image", src: image, alt: "", "aria-hidden": "true" })) : null;
|
|
26301
|
+
return (e.createElement("div", __assign$1({ ref: ref }, rest, { className: classNames('ods-banner', "ods-banner--".concat(size), "ods-banner--".concat(type), className) }),
|
|
26302
|
+
imageEl && size === 'large' && (e.createElement("div", { className: "ods-banner__image-wrapper ods-banner__image-wrapper--top" }, imageEl)),
|
|
26303
|
+
e.createElement("div", { className: "ods-banner__body" },
|
|
26304
|
+
e.createElement("div", { className: "ods-banner__content" },
|
|
26305
|
+
e.createElement(Typography, { variant: "heading4", inverse: isEmphasys, className: "ods-banner__title" }, title),
|
|
26306
|
+
description && (e.createElement(Typography, { variant: "description", inverse: isEmphasys, className: "ods-banner__description" }, description)),
|
|
26307
|
+
hasActions && (e.createElement("div", { className: "ods-banner__actions" },
|
|
26308
|
+
primaryAction && (e.createElement(Button$1, { size: "sm", variant: PRIMARY_VARIANT_MAP[type], onClick: primaryAction.onClick }, primaryAction.label)),
|
|
26309
|
+
secondaryAction && (e.createElement(Button$1, { size: "sm", variant: SECONDARY_VARIANT_MAP[type], onClick: secondaryAction.onClick }, secondaryAction.label))))),
|
|
26310
|
+
imageEl && size === 'small' && (e.createElement("div", { className: "ods-banner__image-wrapper ods-banner__image-wrapper--side" }, imageEl)))));
|
|
26311
|
+
});
|
|
26312
|
+
Banner.displayName = 'Banner';
|
|
26313
|
+
|
|
26278
26314
|
var CrossSellCard = e.forwardRef(function (_a, ref) {
|
|
26279
26315
|
var title = _a.title, className = _a.className, description = _a.description, imageSrc = _a.imageSrc, ctaText = _a.ctaText, ctaAction = _a.ctaAction, customIcon = _a.customIcon, rest = __rest$1(_a, ["title", "className", "description", "imageSrc", "ctaText", "ctaAction", "customIcon"]);
|
|
26280
26316
|
return (e.createElement("div", __assign$1({ ref: ref }, rest, { className: classNames('ods-cross-sell-card', className) }),
|
|
@@ -47855,9 +47891,9 @@ var AmountDetails = function (_a) {
|
|
|
47855
47891
|
|
|
47856
47892
|
var ListAction = e.forwardRef(function (_a, ref) {
|
|
47857
47893
|
var _b;
|
|
47858
|
-
var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, _c = _a.inverted, inverted = _c === void 0 ? false : _c, _d = _a.type, type = _d === void 0 ? 'card' : _d, _e = _a.status, status = _e === void 0 ? 'default' : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.loading, loading = _g === void 0 ? false : _g, icon = _a.icon, indicator = _a.indicator, _h = _a.actionType, actionType =
|
|
47859
|
-
var
|
|
47860
|
-
var
|
|
47894
|
+
var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, _c = _a.inverted, inverted = _c === void 0 ? false : _c, _d = _a.type, type = _d === void 0 ? 'card' : _d, _e = _a.status, status = _e === void 0 ? 'default' : _e, _f = _a.disabled, disabled = _f === void 0 ? false : _f, _g = _a.loading, loading = _g === void 0 ? false : _g, icon = _a.icon, indicator = _a.indicator, _h = _a.indicatorPosition, indicatorPosition = _h === void 0 ? 'inline' : _h, _j = _a.actionType, actionType = _j === void 0 ? 'chevron' : _j, menuActions = _a.menuActions, _k = _a.menuPosition, menuPosition = _k === void 0 ? 'bottom-right' : _k, onClick = _a.onClick, className = _a.className, _l = _a.showDivider, showDivider = _l === void 0 ? false : _l, amountDetails = _a.amountDetails, position = _a.position, highlight = _a.highlight, rest = __rest$1(_a, ["title", "description", "strikethroughDescription", "caption", "inverted", "type", "status", "disabled", "loading", "icon", "indicator", "indicatorPosition", "actionType", "menuActions", "menuPosition", "onClick", "className", "showDivider", "amountDetails", "position", "highlight"]);
|
|
47895
|
+
var _m = e.useState(false), isSwipeOpen = _m[0], setIsSwipeOpen = _m[1];
|
|
47896
|
+
var _o = e.useState(0), menuWidth = _o[0], setMenuWidth = _o[1];
|
|
47861
47897
|
var handleSwipeOpenChange = function (isOpen, width) {
|
|
47862
47898
|
setIsSwipeOpen(isOpen);
|
|
47863
47899
|
if (width !== undefined) {
|
|
@@ -47880,6 +47916,7 @@ var ListAction = e.forwardRef(function (_a, ref) {
|
|
|
47880
47916
|
var contentStyle = isSwipeOpen && menuWidth > 0
|
|
47881
47917
|
? { transform: "translateX(-".concat(menuWidth, "px)") }
|
|
47882
47918
|
: {};
|
|
47919
|
+
var stackedPosition = indicatorPosition !== 'inline' ? indicatorPosition : undefined;
|
|
47883
47920
|
var showLeading = position && icon;
|
|
47884
47921
|
var showLineAbove = position === 'middle' || position === 'last';
|
|
47885
47922
|
var showLineBelow = position === 'first' || position === 'middle';
|
|
@@ -47897,9 +47934,9 @@ var ListAction = e.forwardRef(function (_a, ref) {
|
|
|
47897
47934
|
}) }))) : (icon && (e.createElement("div", { className: classNames('ods-list-action__icon', {
|
|
47898
47935
|
'ods-list-action__icon--inactive': status === 'inactive',
|
|
47899
47936
|
}) }, icon))),
|
|
47900
|
-
e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: status }),
|
|
47937
|
+
e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: status, indicator: stackedPosition ? indicator : undefined, indicatorPosition: stackedPosition }),
|
|
47901
47938
|
amountDetails && e.createElement(AmountDetails, __assign$1({ type: status }, amountDetails)),
|
|
47902
|
-
indicator && (e.createElement("div", { className: "ods-list-action__indicator" }, indicator))),
|
|
47939
|
+
indicator && !stackedPosition && (e.createElement("div", { className: "ods-list-action__indicator" }, indicator))),
|
|
47903
47940
|
renderActionIcon())); };
|
|
47904
47941
|
var buttonClassName = classNames('ods-list-action', className, (_b = {
|
|
47905
47942
|
'ods-list-action--loading': loading,
|
|
@@ -47916,8 +47953,8 @@ ListAction.displayName = 'ListAction';
|
|
|
47916
47953
|
|
|
47917
47954
|
var ListExpandable = e.forwardRef(function (_a, ref) {
|
|
47918
47955
|
var _b;
|
|
47919
|
-
var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, _c = _a.inverted, inverted = _c === void 0 ? false : _c, _d = _a.type, type = _d === void 0 ? 'card' : _d, _e = _a.status, status = _e === void 0 ? 'default' : _e, _f = _a.loading, loading = _f === void 0 ? false : _f, icon = _a.icon, indicator = _a.indicator, controlledExpanded = _a.expanded,
|
|
47920
|
-
var
|
|
47956
|
+
var title = _a.title, description = _a.description, strikethroughDescription = _a.strikethroughDescription, caption = _a.caption, _c = _a.inverted, inverted = _c === void 0 ? false : _c, _d = _a.type, type = _d === void 0 ? 'card' : _d, _e = _a.status, status = _e === void 0 ? 'default' : _e, _f = _a.loading, loading = _f === void 0 ? false : _f, icon = _a.icon, indicator = _a.indicator, _g = _a.indicatorPosition, indicatorPosition = _g === void 0 ? 'inline' : _g, controlledExpanded = _a.expanded, _h = _a.defaultExpanded, defaultExpanded = _h === void 0 ? false : _h, onToggle = _a.onToggle, children = _a.children, className = _a.className, _j = _a.disabled, disabled = _j === void 0 ? false : _j, _k = _a.showDivider, showDivider = _k === void 0 ? false : _k, highlight = _a.highlight, rest = __rest$1(_a, ["title", "description", "strikethroughDescription", "caption", "inverted", "type", "status", "loading", "icon", "indicator", "indicatorPosition", "expanded", "defaultExpanded", "onToggle", "children", "className", "disabled", "showDivider", "highlight"]);
|
|
47957
|
+
var _l = e.useState(defaultExpanded), internalExpanded = _l[0], setInternalExpanded = _l[1];
|
|
47921
47958
|
var isControlled = controlledExpanded !== undefined;
|
|
47922
47959
|
var isExpanded = isControlled ? controlledExpanded : internalExpanded;
|
|
47923
47960
|
var handleToggle = function () {
|
|
@@ -47930,13 +47967,14 @@ var ListExpandable = e.forwardRef(function (_a, ref) {
|
|
|
47930
47967
|
var renderLoadingContent = function () { return (e.createElement("div", { className: "ods-list-expandable__skeleton" },
|
|
47931
47968
|
e.createElement(SkeletonBar, { width: "40%", height: "16px" }),
|
|
47932
47969
|
e.createElement(SkeletonBar, { width: "100%", height: "16px" }))); };
|
|
47970
|
+
var stackedPosition = indicatorPosition !== 'inline' ? indicatorPosition : undefined;
|
|
47933
47971
|
var renderContent = function () { return (e.createElement(e.Fragment, null,
|
|
47934
47972
|
icon && (e.createElement("div", { className: classNames('ods-list-expandable__icon', {
|
|
47935
47973
|
'ods-list-expandable__icon--inactive': status === 'inactive',
|
|
47936
47974
|
}) }, icon)),
|
|
47937
|
-
e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: status }),
|
|
47975
|
+
e.createElement(ContentList, { title: title, description: description, strikethroughDescription: strikethroughDescription, caption: caption, inverted: inverted, type: status, indicator: stackedPosition ? indicator : undefined, indicatorPosition: stackedPosition }),
|
|
47938
47976
|
e.createElement("div", { className: "ods-list-expandable__trailing" },
|
|
47939
|
-
indicator && (e.createElement("div", { className: "ods-list-expandable__indicator" }, indicator)),
|
|
47977
|
+
indicator && !stackedPosition && (e.createElement("div", { className: "ods-list-expandable__indicator" }, indicator)),
|
|
47940
47978
|
e.createElement("div", { className: "ods-list-expandable__action" }, isExpanded ? e.createElement(ae, { size: 20 }) : e.createElement(ee, { size: 20 }))))); };
|
|
47941
47979
|
var containerClassName = classNames('ods-list-expandable', className, (_b = {
|
|
47942
47980
|
'ods-list-expandable--expanded': isExpanded,
|
|
@@ -48073,6 +48111,7 @@ ListSettings.displayName = 'ListSettings';
|
|
|
48073
48111
|
exports.Accordion = Accordion;
|
|
48074
48112
|
exports.Alert = Alert;
|
|
48075
48113
|
exports.Badge = Badge;
|
|
48114
|
+
exports.Banner = Banner;
|
|
48076
48115
|
exports.Breadcrumb = Breadcrumb;
|
|
48077
48116
|
exports.Button = Button$1;
|
|
48078
48117
|
exports.CardGroup = CardGroup;
|