@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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.89.0](https://github.com/ocean-ds/ocean-web/compare/v1.88.0...v1.89.0) (2025-07-22)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- enhance Shortcut component with tag support ([#1157](https://github.com/ocean-ds/ocean-web/issues/1157)) ([7eb29fe](https://github.com/ocean-ds/ocean-web/commit/7eb29fe87f142e596fc09d8ce5461f4987df6b02))
|
|
11
|
+
|
|
6
12
|
# [1.86.0](https://github.com/ocean-ds/ocean-web/compare/v1.85.0...v1.86.0) (2025-07-21)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/Shortcut/Shortcut.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ export type ShortcutProps = {
|
|
|
10
10
|
count?: number;
|
|
11
11
|
fullWidth?: boolean;
|
|
12
12
|
orientation?: 'horizontal' | 'vertical';
|
|
13
|
+
tag?: string;
|
|
13
14
|
} & React.ComponentPropsWithoutRef<'div'>;
|
|
14
|
-
declare const Shortcut: ({ icon, label, description, size, blocked, disabled, fullWidth, orientation, count, ...rest }: ShortcutProps) => React.ReactElement;
|
|
15
|
+
declare const Shortcut: ({ icon, label, description, size, blocked, disabled, fullWidth, orientation, count, tag, ...rest }: ShortcutProps) => React.ReactElement;
|
|
15
16
|
export default Shortcut;
|
|
16
17
|
//# sourceMappingURL=Shortcut.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Shortcut.d.ts","sourceRoot":"","sources":["../../src/Shortcut/Shortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Shortcut.d.ts","sourceRoot":"","sources":["../../src/Shortcut/Shortcut.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,KAAK,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,QAAQ,GAAI,oGAYf,aAAa,KAAG,KAAK,CAAC,YA0DxB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -46878,15 +46878,16 @@ var Snackbar = e.forwardRef(function (_a, ref) {
|
|
|
46878
46878
|
Snackbar.displayName = 'Snackbar';
|
|
46879
46879
|
|
|
46880
46880
|
var Shortcut = function (_a) {
|
|
46881
|
-
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"]);
|
|
46881
|
+
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"]);
|
|
46882
46882
|
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),
|
|
46883
46883
|
blocked && (e.createElement("div", { className: "ods-shortcut__blocked" },
|
|
46884
46884
|
e.createElement(At, null))),
|
|
46885
46885
|
count ? (e.createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color: "alert", count: count })) : null,
|
|
46886
46886
|
e.createElement("div", { className: classNames('ods-shortcut__content', "ods-shortcut__content--".concat(orientation)) },
|
|
46887
46887
|
e.createElement("div", { className: "ods-shortcut__icon" }, icon),
|
|
46888
|
-
e.createElement("h5", { className: classNames('ods-shortcut__label', 'ods-
|
|
46889
|
-
|
|
46888
|
+
e.createElement("h5", { className: classNames('ods-shortcut__label', 'ods-typography__heading5') }, label),
|
|
46889
|
+
tag && (e.createElement(Tag, { variant: "highlight", type: "important" }, tag))),
|
|
46890
|
+
size === 'medium' && description && (e.createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography__description') }, description))));
|
|
46890
46891
|
};
|
|
46891
46892
|
|
|
46892
46893
|
var CardListItem = forwardRef(function (_a, ref) {
|