@useblu/ocean-react 1.112.0 → 1.113.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 +12 -0
- package/Modal/Modal.d.ts +1 -1
- package/Modal/Modal.d.ts.map +1 -1
- package/Shortcut/Shortcut.d.ts +11 -3
- 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,18 @@
|
|
|
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.113.0](https://github.com/ocean-ds/ocean-web/compare/v1.112.1...v1.113.0) (2025-10-22)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- updates modals ([#1193](https://github.com/ocean-ds/ocean-web/issues/1193)) ([ea8c934](https://github.com/ocean-ds/ocean-web/commit/ea8c934ec926dddb7f99d350019d977867e28566))
|
|
11
|
+
|
|
12
|
+
## [1.112.1](https://github.com/ocean-ds/ocean-web/compare/v1.112.0...v1.112.1) (2025-10-07)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- tag position and limit props to accept only tag or count prop ([#1191](https://github.com/ocean-ds/ocean-web/issues/1191)) ([7d0952f](https://github.com/ocean-ds/ocean-web/commit/7d0952fe23e34c5ebb36ab30303e2a0bbf39028f))
|
|
17
|
+
|
|
6
18
|
# [1.112.0](https://github.com/ocean-ds/ocean-web/compare/v1.111.0...v1.112.0) (2025-10-07)
|
|
7
19
|
|
|
8
20
|
### Features
|
package/Modal/Modal.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import ReactModal from 'react-modal';
|
|
3
3
|
export type ModalProps = {
|
|
4
4
|
blocked?: boolean;
|
|
5
|
-
maxWidth?: 'sm' | 'md' | 'lg' | false;
|
|
5
|
+
maxWidth?: 'sm' | 'md' | 'lg' | 'xl' | false;
|
|
6
6
|
disableClose?: boolean;
|
|
7
7
|
onRequestClose(event: React.MouseEvent | React.KeyboardEvent): void;
|
|
8
8
|
} & ReactModal.Props;
|
package/Modal/Modal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,aAAa,CAAC;AAIrC,MAAM,MAAM,UAAU,GAAG;IAMvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAOlB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,aAAa,CAAC;AAIrC,MAAM,MAAM,UAAU,GAAG;IAMvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAOlB,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAM7C,YAAY,CAAC,EAAE,OAAO,CAAC;IAIvB,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,GAAG,IAAI,CAAC;CACrE,GAAG,UAAU,CAAC,KAAK,CAAC;AAErB,QAAA,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAyC/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
package/Shortcut/Shortcut.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
type ShortcutSize = 'tiny' | 'small' | 'medium';
|
|
3
|
+
type ExclusiveTagOrCount = {
|
|
4
|
+
tag: string;
|
|
5
|
+
count?: never;
|
|
6
|
+
} | {
|
|
7
|
+
tag?: never;
|
|
8
|
+
count: number;
|
|
9
|
+
} | {
|
|
10
|
+
tag?: never;
|
|
11
|
+
count?: never;
|
|
12
|
+
};
|
|
3
13
|
export type ShortcutProps = {
|
|
4
14
|
icon: React.ReactNode;
|
|
5
15
|
label: string;
|
|
@@ -7,11 +17,9 @@ export type ShortcutProps = {
|
|
|
7
17
|
size?: ShortcutSize;
|
|
8
18
|
blocked?: boolean;
|
|
9
19
|
disabled?: boolean;
|
|
10
|
-
count?: number;
|
|
11
20
|
fullWidth?: boolean;
|
|
12
21
|
orientation?: 'horizontal' | 'vertical';
|
|
13
|
-
|
|
14
|
-
} & React.ComponentPropsWithoutRef<'div'>;
|
|
22
|
+
} & ExclusiveTagOrCount & React.ComponentPropsWithoutRef<'div'>;
|
|
15
23
|
declare const Shortcut: ({ icon, label, description, size, blocked, disabled, fullWidth, orientation, count, tag, ...rest }: ShortcutProps) => React.ReactElement;
|
|
16
24
|
export default Shortcut;
|
|
17
25
|
//# 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;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,
|
|
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,KAAK,mBAAmB,GACpB;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,GAC9B;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC9B;IAAE,GAAG,CAAC,EAAE,KAAK,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAEnC,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,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC,GAAG,mBAAmB,GACrB,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAExC,QAAA,MAAM,QAAQ,GAAI,oGAYf,aAAa,KAAG,KAAK,CAAC,YA+DxB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/index.es.js
CHANGED
|
@@ -8713,7 +8713,7 @@ var Modal = function (_a) {
|
|
|
8713
8713
|
beforeClose: 'ods-modal__content--before-close',
|
|
8714
8714
|
}, onRequestClose: onRequestClose }, rest),
|
|
8715
8715
|
e.createElement("div", { className: "ods-modal__header" }, !disableClose && (e.createElement("button", { type: "button", className: "ods-modal__header-close", "aria-label": "Close modal", onClick: onRequestClose },
|
|
8716
|
-
e.createElement(yo,
|
|
8716
|
+
e.createElement(yo, { size: 20 })))),
|
|
8717
8717
|
e.createElement("div", { className: "ods-modal__body" }, children)));
|
|
8718
8718
|
};
|
|
8719
8719
|
|
|
@@ -46887,11 +46887,12 @@ var Shortcut = function (_a) {
|
|
|
46887
46887
|
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),
|
|
46888
46888
|
blocked && (e.createElement("div", { className: "ods-shortcut__blocked" },
|
|
46889
46889
|
e.createElement(At, null))),
|
|
46890
|
-
count ? (e.createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color:
|
|
46890
|
+
!blocked && count ? (e.createElement(Badge, { className: "ods-shortcut__badge", variation: "small", color: disabled ? 'neutral' : 'alert', count: count })) : null,
|
|
46891
|
+
!blocked && tag && orientation === 'vertical' && (e.createElement(Tag, { className: "ods-shortcut__tag", variant: "highlight", type: "important" }, tag)),
|
|
46891
46892
|
e.createElement("div", { className: classNames('ods-shortcut__content', "ods-shortcut__content--".concat(orientation)) },
|
|
46892
46893
|
e.createElement("div", { className: "ods-shortcut__icon" }, icon),
|
|
46893
46894
|
e.createElement("h5", { className: classNames('ods-shortcut__label', 'ods-typography__heading5') }, label),
|
|
46894
|
-
tag && (e.createElement(Tag, { variant: "highlight", type: "important" }, tag))),
|
|
46895
|
+
tag && orientation === 'horizontal' && (e.createElement(Tag, { variant: "highlight", type: "important" }, tag))),
|
|
46895
46896
|
size === 'medium' && description && (e.createElement("span", { className: classNames('ods-shortcut__description', 'ods-typography__description') }, description))));
|
|
46896
46897
|
};
|
|
46897
46898
|
|