@useblu/ocean-react 1.112.0 → 1.112.1
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/CHANGELOG.md +6 -0
- package/Shortcut/Shortcut.d.ts +11 -3
- package/Shortcut/Shortcut.d.ts.map +1 -1
- package/index.es.js +3 -2
- package/index.es.js.map +1 -1
- package/index.js +3 -2
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -46889,11 +46889,12 @@ var Shortcut = function (_a) {
|
|
|
46889
46889
|
return (e.createElement("div", __assign$1({ className: classNames('ods-shortcut', "ods-shortcut--".concat(size), blocked && 'ods-shortcut--blocked', disabled && 'ods-shortcut--disabled', fullWidth && 'ods-shortcut--full-width', count && 'ods-shortcut--with-badge', "ods-shortcut--".concat(orientation)) }, rest),
|
|
46890
46890
|
blocked && (e.createElement("div", { className: "ods-shortcut__blocked" },
|
|
46891
46891
|
e.createElement(At, null))),
|
|
46892
|
-
count ? (e.createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color:
|
|
46892
|
+
!blocked && count ? (e.createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color: disabled ? 'neutral' : 'alert', count: count })) : null,
|
|
46893
|
+
!blocked && tag && orientation === 'vertical' && (e.createElement(Tag, { className: "ods-shortcut__tag", variant: "highlight", type: "important" }, tag)),
|
|
46893
46894
|
e.createElement("div", { className: classNames('ods-shortcut__content', "ods-shortcut__content--".concat(orientation)) },
|
|
46894
46895
|
e.createElement("div", { className: "ods-shortcut__icon" }, icon),
|
|
46895
46896
|
e.createElement("h5", { className: classNames('ods-shortcut__label', 'ods-typography__heading5') }, label),
|
|
46896
|
-
tag && (e.createElement(Tag, { variant: "highlight", type: "important" }, tag))),
|
|
46897
|
+
tag && orientation === 'horizontal' && (e.createElement(Tag, { variant: "highlight", type: "important" }, tag))),
|
|
46897
46898
|
size === 'medium' && description && (e.createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography__description') }, description))));
|
|
46898
46899
|
};
|
|
46899
46900
|
|