@apexcura/ui-components 0.0.12-Beta28 → 0.0.12-Beta29

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/dist/index.d.mts CHANGED
@@ -27,6 +27,7 @@ type ElementType = {
27
27
  variable_data?: any[];
28
28
  optionType?: string;
29
29
  selectedClassName?: string;
30
+ action?: React.MouseEventHandler<HTMLElement> | string;
30
31
  };
31
32
 
32
33
  interface ElementExecuterProps$3 extends ElementType {
@@ -71,7 +72,7 @@ declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
71
72
 
72
73
  declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element;
73
74
 
74
- declare const ButtonElement: () => React$1.JSX.Element;
75
+ declare const ButtonElement: (props: ElementType) => React$1.JSX.Element;
75
76
 
76
77
  declare const AddMoreTable: (props: ElementType) => React$1.JSX.Element;
77
78
 
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ type ElementType = {
27
27
  variable_data?: any[];
28
28
  optionType?: string;
29
29
  selectedClassName?: string;
30
+ action?: React.MouseEventHandler<HTMLElement> | string;
30
31
  };
31
32
 
32
33
  interface ElementExecuterProps$3 extends ElementType {
@@ -71,7 +72,7 @@ declare const SingleSelectElement: (props: ElementType) => React$1.JSX.Element;
71
72
 
72
73
  declare const MultipleSelectElement: (props: ElementType) => React$1.JSX.Element;
73
74
 
74
- declare const ButtonElement: () => React$1.JSX.Element;
75
+ declare const ButtonElement: (props: ElementType) => React$1.JSX.Element;
75
76
 
76
77
  declare const AddMoreTable: (props: ElementType) => React$1.JSX.Element;
77
78
 
package/dist/index.js CHANGED
@@ -115,7 +115,6 @@ var NumberElement = (props) => {
115
115
  prefix: props.prefix,
116
116
  type: props.type,
117
117
  status: props.status,
118
- style: props.styles,
119
118
  className: props.classNames,
120
119
  variant: props.variant,
121
120
  name: props.name,
@@ -384,7 +383,12 @@ var MultipleSelectElement = (props) => {
384
383
  // src/Components/Button.tsx
385
384
  var import_react12 = __toESM(require("react"));
386
385
  var import_antd10 = require("antd");
387
- var ButtonElement = () => /* @__PURE__ */ import_react12.default.createElement(import_antd10.Flex, { gap: "small" }, /* @__PURE__ */ import_react12.default.createElement(import_antd10.Button, { type: "primary" }, "Primary Button"));
386
+ var ButtonElement = (props) => {
387
+ const handleClick = typeof props.action === "string" ? () => {
388
+ console.log("Performing action:", props.action);
389
+ } : props.action;
390
+ return /* @__PURE__ */ import_react12.default.createElement(import_antd10.Flex, null, /* @__PURE__ */ import_react12.default.createElement(import_antd10.Button, { onClick: handleClick, className: props.className }, props.name));
391
+ };
388
392
 
389
393
  // src/Components/AddMoreTable.tsx
390
394
  var import_react13 = __toESM(require("react"));
package/dist/index.mjs CHANGED
@@ -68,7 +68,6 @@ var NumberElement = (props) => {
68
68
  prefix: props.prefix,
69
69
  type: props.type,
70
70
  status: props.status,
71
- style: props.styles,
72
71
  className: props.classNames,
73
72
  variant: props.variant,
74
73
  name: props.name,
@@ -337,7 +336,12 @@ var MultipleSelectElement = (props) => {
337
336
  // src/Components/Button.tsx
338
337
  import React11 from "react";
339
338
  import { Button as Button2, Flex as Flex2 } from "antd";
340
- var ButtonElement = () => /* @__PURE__ */ React11.createElement(Flex2, { gap: "small" }, /* @__PURE__ */ React11.createElement(Button2, { type: "primary" }, "Primary Button"));
339
+ var ButtonElement = (props) => {
340
+ const handleClick = typeof props.action === "string" ? () => {
341
+ console.log("Performing action:", props.action);
342
+ } : props.action;
343
+ return /* @__PURE__ */ React11.createElement(Flex2, null, /* @__PURE__ */ React11.createElement(Button2, { onClick: handleClick, className: props.className }, props.name));
344
+ };
341
345
 
342
346
  // src/Components/AddMoreTable.tsx
343
347
  import React12, { useEffect, useState as useState4 } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.12-Beta28",
3
+ "version": "0.0.12-Beta29",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",