oolib 2.178.3 → 2.178.4

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.
@@ -5,7 +5,7 @@ export interface TagInterface {
5
5
  size?: "XS" | "S" | "M";
6
6
  display: string;
7
7
  icon?: string;
8
- onClick?: () => {};
8
+ onClick?: React.MouseEventHandler<HTMLElement>;
9
9
  weight?: "bold" | "light" | "default";
10
10
  variant?: "clear" | "link";
11
11
  typo?: any;
@@ -1,8 +1,9 @@
1
+ import React from "react";
1
2
  import { FunctionComponent } from "react";
2
3
  export interface TagClearProps {
3
4
  id: string;
4
5
  display: string;
5
- onClick?: () => void;
6
+ onClick?: React.MouseEventHandler<HTMLElement>;
6
7
  fill?: string;
7
8
  size?: "XS" | "S";
8
9
  weight?: "bold" | "light" | "default";
@@ -7,7 +7,7 @@ exports.TagClear = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var Tag_1 = require("../Tag");
9
9
  var TagClear = function (_a) {
10
- var id = _a.id, display = _a.display, size = _a.size, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b, fill = _a.fill, weight = _a.weight;
11
- return (react_1.default.createElement(Tag_1.Tag, { id: id, display: display, icon: "X", size: size, onClick: function () { return onClick; }, variant: "clear", fill: fill, weight: weight }));
10
+ var id = _a.id, display = _a.display, size = _a.size, onClick = _a.onClick, fill = _a.fill, weight = _a.weight;
11
+ return (react_1.default.createElement(Tag_1.Tag, { id: id, display: display, icon: "X", size: size, onClick: onClick, variant: "clear", fill: fill, weight: weight }));
12
12
  };
13
13
  exports.TagClear = TagClear;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.178.3",
3
+ "version": "2.178.4",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",