@useblu/ocean-react 1.64.0 → 1.65.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.
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../src/Accordion/Accordion.tsx"],"names":[],"mappings":";AAIA,oBAAY,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,SAAS,uCAIZ,cAAc,KAAG,WAiCnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../src/Accordion/Accordion.tsx"],"names":[],"mappings":";AAIA,oBAAY,cAAc,GAAG;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,SAAS,uCAIZ,cAAc,KAAG,WAkCnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
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.65.0](https://github.com/ocean-ds/ocean-web/compare/v1.64.0...v1.65.0) (2024-06-26)
7
+
8
+ ### Features
9
+
10
+ - update link ([#1111](https://github.com/ocean-ds/ocean-web/issues/1111)) ([8aa0bf2](https://github.com/ocean-ds/ocean-web/commit/8aa0bf2c4ad0c82e5a4f0c66595d8883edea93c8))
11
+
6
12
  # [1.64.0](https://github.com/ocean-ds/ocean-web/compare/v1.63.1...v1.64.0) (2024-06-26)
7
13
 
8
14
  ### Features
package/Link/Link.d.ts CHANGED
@@ -1,13 +1,15 @@
1
1
  import React, { ComponentPropsWithoutRef } from 'react';
2
2
  export declare type LinkProps = {
3
3
  variant?: 'primary' | 'inverse' | 'neutral';
4
- size?: 'sm' | 'md';
4
+ size?: 'sm' | 'md' | 'tiny';
5
5
  icon?: 'linkChevron' | 'externalLink';
6
+ disabled?: boolean;
6
7
  } & ComponentPropsWithoutRef<'a'>;
7
8
  declare const Link: React.ForwardRefExoticComponent<{
8
9
  variant?: "primary" | "inverse" | "neutral" | undefined;
9
- size?: "sm" | "md" | undefined;
10
+ size?: "sm" | "md" | "tiny" | undefined;
10
11
  icon?: "linkChevron" | "externalLink" | undefined;
12
+ disabled?: boolean | undefined;
11
13
  } & Pick<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "key" | keyof React.AnchorHTMLAttributes<HTMLAnchorElement>> & React.RefAttributes<HTMLAnchorElement>>;
12
14
  export default Link;
13
15
  //# sourceMappingURL=Link.d.ts.map
@@ -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;;;;0MAoBT,CAAC;AAIF,eAAe,IAAI,CAAC"}
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,GAAG,MAAM,CAAC;IAK5B,IAAI,CAAC,EAAE,aAAa,GAAG,cAAc,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,wBAAwB,CAAC,GAAG,CAAC,CAAC;AAElC,QAAA,MAAM,IAAI;;;;;0MAkCT,CAAC;AAIF,eAAe,IAAI,CAAC"}
package/index.es.js CHANGED
@@ -325,7 +325,7 @@ var Accordion = function (_a) {
325
325
  return (e.createElement("div", { className: classNames('ods-accordion', className) },
326
326
  e.createElement("button", { onClick: onHandleAccordion, type: "button", className: classNames('ods-accordion__header', {
327
327
  'ods-accordion__header--collapsed': isCollapsed
328
- }), "aria-expanded": !isCollapsed },
328
+ }), "aria-expanded": !isCollapsed, "data-testid": "accordion-header" },
329
329
  title,
330
330
  e.createElement(J, { className: classNames('ods-accordion__icon', {
331
331
  'ods-accordion__icon--rotated': isCollapsed
@@ -398,8 +398,12 @@ var LinkIcons = e.memo(function (_a) {
398
398
  LinkIcons.displayName = 'LinkIcons';
399
399
 
400
400
  var Link = forwardRef(function (_a, ref) {
401
- 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$2(_a, ["children", "className", "variant", "size", "icon"]);
402
- return (e.createElement("a", __assign$2({ ref: ref, className: classNames('ods-link', "ods-link--".concat(size), "ods-link--".concat(variant), icon ? 'ods-link--with-icon' : '', className) }, rest),
401
+ 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, disabled = _a.disabled, rest = __rest$2(_a, ["children", "className", "variant", "size", "icon", "disabled"]);
402
+ return (e.createElement("a", __assign$2({ "aria-disabled": disabled, ref: ref, className: classNames('ods-link', "ods-link--".concat(size), "ods-link--".concat(variant), icon ? 'ods-link--with-icon' : '', className, {
403
+ 'ods-link--disabled': disabled,
404
+ 'ods-link--chevron': icon === 'linkChevron',
405
+ 'ods-link--external': icon === 'externalLink'
406
+ }) }, rest),
403
407
  e.createElement("span", { className: "ods-link__content" }, children),
404
408
  e.createElement(LinkIcons, { icon: icon })));
405
409
  });