@useblu/ocean-react 1.19.2 → 1.20.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 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.20.0](https://github.com/ocean-ds/ocean-web/compare/v1.19.2...v1.20.0) (2021-10-18)
7
+
8
+ ### Features
9
+
10
+ - **tab component:** add new prop to set icon off and icon content nowrap ([#826](https://github.com/ocean-ds/ocean-web/issues/826)) ([4e47c7f](https://github.com/ocean-ds/ocean-web/commit/4e47c7fc8a1cdcc3eb9e46d1814667b9aa2686b6))
11
+
6
12
  ## [1.19.2](https://github.com/ocean-ds/ocean-web/compare/v1.19.1...v1.19.2) (2021-09-06)
7
13
 
8
14
  ### Bug Fixes
package/Tag/Tag.d.ts CHANGED
@@ -2,10 +2,12 @@ import React from 'react';
2
2
  export declare type TagProps = {
3
3
  type?: 'positive' | 'warning' | 'negative' | 'neutral' | 'neutral-02' | 'neutral-03' | 'default';
4
4
  icon?: React.ReactElement;
5
+ setIconOff?: boolean;
5
6
  } & React.ComponentPropsWithoutRef<'div'>;
6
7
  declare const Tag: React.ForwardRefExoticComponent<{
7
8
  type?: "positive" | "warning" | "negative" | "neutral" | "neutral-02" | "neutral-03" | "default" | undefined;
8
9
  icon?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
10
+ setIconOff?: boolean | undefined;
9
11
  } & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>>;
10
12
  export default Tag;
11
13
  //# sourceMappingURL=Tag.d.ts.map
package/Tag/Tag.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../src/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,oBAAY,QAAQ,GAAG;IAKrB,IAAI,CAAC,EACD,UAAU,GACV,SAAS,GACT,UAAU,GACV,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,SAAS,CAAC;IAId,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;CAC3B,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,GAAG;;;kLAeP,CAAC;AAEH,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../src/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,oBAAY,QAAQ,GAAG;IAKrB,IAAI,CAAC,EACD,UAAU,GACV,SAAS,GACT,UAAU,GACV,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,SAAS,CAAC;IAId,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAI1B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,GAAG,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE1C,QAAA,MAAM,GAAG;;;;kLAeP,CAAC;AAEH,eAAe,GAAG,CAAC"}
package/index.es.js CHANGED
@@ -239,9 +239,9 @@ var TagIcon = e$1.memo(function TagIcon(_a) {
239
239
  });
240
240
 
241
241
  var Tag = e$1.forwardRef(function Tag(_a, ref) {
242
- var children = _a.children, _b = _a.type, type = _b === void 0 ? 'default' : _b, className = _a.className, icon = _a.icon, rest = __rest(_a, ["children", "type", "className", "icon"]);
242
+ var children = _a.children, _b = _a.type, type = _b === void 0 ? 'default' : _b, className = _a.className, icon = _a.icon, _c = _a.setIconOff, setIconOff = _c === void 0 ? false : _c, rest = __rest(_a, ["children", "type", "className", "icon", "setIconOff"]);
243
243
  return (e$1.createElement("div", __assign({ ref: ref, role: "Tag", className: classNames('ods-tag', "ods-tag--" + type, className) }, rest),
244
- e$1.createElement(TagIcon, { type: type, icon: icon }),
244
+ !setIconOff && e$1.createElement(TagIcon, { type: type, icon: icon }),
245
245
  e$1.createElement("div", { className: "ods-tag__content" }, children)));
246
246
  });
247
247