@useblu/ocean-react 1.35.0 → 1.35.2
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/Link/Link.d.ts +2 -2
- package/Link/Link.d.ts.map +1 -1
- package/Link/LinkIcons.d.ts +1 -1
- package/index.es.js +3 -3
- package/index.es.js.map +1 -1
- package/index.js +3 -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.35.2](https://github.com/ocean-ds/ocean-web/compare/v1.35.1...v1.35.2) (2022-10-06)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- link component error ([#1021](https://github.com/ocean-ds/ocean-web/issues/1021)) ([471b21f](https://github.com/ocean-ds/ocean-web/commit/471b21facdce758e6e201965aa471c6be3a8f70c))
|
|
11
|
+
|
|
12
|
+
## [1.35.1](https://github.com/ocean-ds/ocean-web/compare/v1.35.0...v1.35.1) (2022-10-06)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- correcting camelcase spelling of prop and adding a span attribute ([#1019](https://github.com/ocean-ds/ocean-web/issues/1019)) ([004429f](https://github.com/ocean-ds/ocean-web/commit/004429f71893e220c62ac8831288a6736d9993b0))
|
|
17
|
+
|
|
6
18
|
# [1.35.0](https://github.com/ocean-ds/ocean-web/compare/v1.34.2...v1.35.0) (2022-10-03)
|
|
7
19
|
|
|
8
20
|
### Features
|
package/Link/Link.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import React, { ComponentPropsWithoutRef } from 'react';
|
|
|
2
2
|
export declare type LinkProps = {
|
|
3
3
|
variant?: 'primary' | 'inverse' | 'neutral';
|
|
4
4
|
size?: 'sm' | 'md';
|
|
5
|
-
icon?: '
|
|
5
|
+
icon?: 'linkChevron' | 'externalLink';
|
|
6
6
|
} & ComponentPropsWithoutRef<'a'>;
|
|
7
7
|
declare const Link: React.ForwardRefExoticComponent<{
|
|
8
8
|
variant?: "primary" | "inverse" | "neutral" | undefined;
|
|
9
9
|
size?: "sm" | "md" | undefined;
|
|
10
|
-
icon?: "
|
|
10
|
+
icon?: "linkChevron" | "externalLink" | undefined;
|
|
11
11
|
} & Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>> & React.RefAttributes<HTMLAnchorElement>>;
|
|
12
12
|
export default Link;
|
|
13
13
|
//# sourceMappingURL=Link.d.ts.map
|
package/Link/Link.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,wBAAwB,EAAc,MAAM,OAAO,CAAC;AAKpE,oBAAY,SAAS,GAAG;IAKtB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAK5C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAKnB,IAAI,CAAC,EAAE,aAAa,GAAG,cAAc,CAAC;CACvC,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAElC,QAAA,MAAM,IAAI;;;;
|
|
1
|
+
{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/Link/Link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,wBAAwB,EAAc,MAAM,OAAO,CAAC;AAKpE,oBAAY,SAAS,GAAG;IAKtB,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;IAK5C,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAKnB,IAAI,CAAC,EAAE,aAAa,GAAG,cAAc,CAAC;CACvC,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAElC,QAAA,MAAM,IAAI;;;;0MAoBR,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
package/Link/LinkIcons.d.ts
CHANGED
package/index.es.js
CHANGED
|
@@ -5029,7 +5029,7 @@ var Radio = e.forwardRef(function Radio(_a, ref) {
|
|
|
5029
5029
|
});
|
|
5030
5030
|
|
|
5031
5031
|
var mapIconsByType = {
|
|
5032
|
-
|
|
5032
|
+
linkChevron: ee,
|
|
5033
5033
|
externalLink: Qe
|
|
5034
5034
|
};
|
|
5035
5035
|
var LinkIcons = e.memo(function LinkIcons(_a) {
|
|
@@ -5043,8 +5043,8 @@ var LinkIcons = e.memo(function LinkIcons(_a) {
|
|
|
5043
5043
|
|
|
5044
5044
|
var Link = forwardRef(function Link(_a, ref) {
|
|
5045
5045
|
var children = _a.children, className = _a.className, _b = _a.variant, variant = _b === void 0 ? 'primary' : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, icon = _a.icon, rest = __rest(_a, ["children", "className", "variant", "size", "icon"]);
|
|
5046
|
-
return (e.createElement("a", __assign({ ref: ref, className: classNames('ods-link', "ods-link--".concat(size), "ods-link--".concat(variant), className) }, rest),
|
|
5047
|
-
e.createElement("
|
|
5046
|
+
return (e.createElement("a", __assign({ ref: ref, className: classNames('ods-link', "ods-link--".concat(size), "ods-link--".concat(variant), icon ? 'ods-link--with-icon' : '', className) }, rest),
|
|
5047
|
+
e.createElement("span", { className: "ods-link__content" }, children),
|
|
5048
5048
|
e.createElement(LinkIcons, { icon: icon })));
|
|
5049
5049
|
});
|
|
5050
5050
|
|