@useblu/ocean-react 1.86.0 → 1.89.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/CHANGELOG.md +6 -0
- package/Shortcut/Shortcut.d.ts +2 -1
- package/Shortcut/Shortcut.d.ts.map +1 -1
- package/index.es.js +4 -3
- package/index.es.js.map +1 -1
- package/index.js +4 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -46880,15 +46880,16 @@ var Snackbar = e.forwardRef(function (_a, ref) {
|
|
|
46880
46880
|
Snackbar.displayName = 'Snackbar';
|
|
46881
46881
|
|
|
46882
46882
|
var Shortcut = function (_a) {
|
|
46883
|
-
var icon = _a.icon, label = _a.label, description = _a.description, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.blocked, blocked = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.fullWidth, fullWidth = _e === void 0 ? false : _e, _f = _a.orientation, orientation = _f === void 0 ? 'horizontal' : _f, count = _a.count, rest = __rest$1(_a, ["icon", "label", "description", "size", "blocked", "disabled", "fullWidth", "orientation", "count"]);
|
|
46883
|
+
var icon = _a.icon, label = _a.label, description = _a.description, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.blocked, blocked = _c === void 0 ? false : _c, _d = _a.disabled, disabled = _d === void 0 ? false : _d, _e = _a.fullWidth, fullWidth = _e === void 0 ? false : _e, _f = _a.orientation, orientation = _f === void 0 ? 'horizontal' : _f, count = _a.count, tag = _a.tag, rest = __rest$1(_a, ["icon", "label", "description", "size", "blocked", "disabled", "fullWidth", "orientation", "count", "tag"]);
|
|
46884
46884
|
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),
|
|
46885
46885
|
blocked && (e.createElement("div", { className: "ods-shortcut__blocked" },
|
|
46886
46886
|
e.createElement(At, null))),
|
|
46887
46887
|
count ? (e.createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color: "alert", count: count })) : null,
|
|
46888
46888
|
e.createElement("div", { className: classNames('ods-shortcut__content', "ods-shortcut__content--".concat(orientation)) },
|
|
46889
46889
|
e.createElement("div", { className: "ods-shortcut__icon" }, icon),
|
|
46890
|
-
e.createElement("h5", { className: classNames('ods-shortcut__label', 'ods-
|
|
46891
|
-
|
|
46890
|
+
e.createElement("h5", { className: classNames('ods-shortcut__label', 'ods-typography__heading5') }, label),
|
|
46891
|
+
tag && (e.createElement(Tag, { variant: "highlight", type: "important" }, tag))),
|
|
46892
|
+
size === 'medium' && description && (e.createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography__description') }, description))));
|
|
46892
46893
|
};
|
|
46893
46894
|
|
|
46894
46895
|
var CardListItem = e.forwardRef(function (_a, ref) {
|