@apexcura/ui-components 0.0.14 → 0.0.15-Beta0

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
@@ -120,6 +120,6 @@ declare const Upload: (props: ElementType) => React$1.JSX.Element;
120
120
 
121
121
  declare const OtpElement: (props: ElementType) => React$1.JSX.Element;
122
122
 
123
- declare const Donut: (props: Object) => React$1.JSX.Element;
123
+ declare const Donut: (props: ElementType) => React$1.JSX.Element;
124
124
 
125
125
  export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement, Donut, DropDownGroup, FileUpload, Image, MultipleSelectElement, Navbar, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
package/dist/index.d.ts CHANGED
@@ -120,6 +120,6 @@ declare const Upload: (props: ElementType) => React$1.JSX.Element;
120
120
 
121
121
  declare const OtpElement: (props: ElementType) => React$1.JSX.Element;
122
122
 
123
- declare const Donut: (props: Object) => React$1.JSX.Element;
123
+ declare const Donut: (props: ElementType) => React$1.JSX.Element;
124
124
 
125
125
  export { AddMoreTable, ButtonElement, CheckboxElement, CkEditor, DatePickerElement, DateRangePickerElement, Donut, DropDownGroup, FileUpload, Image, MultipleSelectElement, Navbar, NumberElement, OtpElement, PasswordElement, RadioElement, SelectElement, Sidebar, SingleCheckbox, SingleSelectElement, SwitchElement, TableElement, TabsElement, TextElement, TextareaElement, Upload };
package/dist/index.js CHANGED
@@ -417,7 +417,7 @@ var ButtonElement = (props) => {
417
417
  }
418
418
  }).catch((error) => console.error("Error fetching SVG:", error));
419
419
  }
420
- }, [props.icon, props.className]);
420
+ }, []);
421
421
  const handleMouseEnter = () => {
422
422
  if (hoverColor && originalSvgContent) {
423
423
  const tempDiv = document.createElement("div");
@@ -440,9 +440,9 @@ var ButtonElement = (props) => {
440
440
  className: `${props.className ? props.className : ""}`,
441
441
  onMouseEnter: handleMouseEnter,
442
442
  onMouseLeave: handleMouseLeave,
443
- disabled: props.isLoading
443
+ disabled: props.loading
444
444
  },
445
- props.isLoading ? /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }, /* @__PURE__ */ import_react11.default.createElement("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), /* @__PURE__ */ import_react11.default.createElement("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8v8H4z" })), props.label) : /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, props.isSVGStylesOverride === false ? props.icon && /* @__PURE__ */ import_react11.default.createElement("img", { className: props.iconsClassName, src: props.icon, alt: props.label }) : svgContent && /* @__PURE__ */ import_react11.default.createElement(
445
+ props.loading ? /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, /* @__PURE__ */ import_react11.default.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }, /* @__PURE__ */ import_react11.default.createElement("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), /* @__PURE__ */ import_react11.default.createElement("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8v8H4z" })), props.label) : /* @__PURE__ */ import_react11.default.createElement(import_react11.default.Fragment, null, props.isSVGStylesOverride === false ? props.icon && /* @__PURE__ */ import_react11.default.createElement("img", { className: props.iconsClassName, src: props.icon, alt: props.label }) : svgContent && /* @__PURE__ */ import_react11.default.createElement(
446
446
  "span",
447
447
  {
448
448
  dangerouslySetInnerHTML: { __html: svgContent }
@@ -1091,6 +1091,10 @@ var OtpElement = (props) => {
1091
1091
  var import_react31 = __toESM(require("react"));
1092
1092
  var import_highcharts = __toESM(require("highcharts"));
1093
1093
  var import_highcharts_react_official = __toESM(require("highcharts-react-official"));
1094
+ var import_exporting = __toESM(require("highcharts/modules/exporting.js"));
1095
+ if (typeof import_highcharts.default === "object") {
1096
+ (0, import_exporting.default)(import_highcharts.default);
1097
+ }
1094
1098
  var HighchartsChart = ({ options }) => {
1095
1099
  return /* @__PURE__ */ import_react31.default.createElement(import_highcharts_react_official.default, { highcharts: import_highcharts.default, options });
1096
1100
  };
package/dist/index.mjs CHANGED
@@ -356,7 +356,7 @@ var ButtonElement = (props) => {
356
356
  }
357
357
  }).catch((error) => console.error("Error fetching SVG:", error));
358
358
  }
359
- }, [props.icon, props.className]);
359
+ }, []);
360
360
  const handleMouseEnter = () => {
361
361
  if (hoverColor && originalSvgContent) {
362
362
  const tempDiv = document.createElement("div");
@@ -379,9 +379,9 @@ var ButtonElement = (props) => {
379
379
  className: `${props.className ? props.className : ""}`,
380
380
  onMouseEnter: handleMouseEnter,
381
381
  onMouseLeave: handleMouseLeave,
382
- disabled: props.isLoading
382
+ disabled: props.loading
383
383
  },
384
- props.isLoading ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }, /* @__PURE__ */ React11.createElement("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), /* @__PURE__ */ React11.createElement("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8v8H4z" })), props.label) : /* @__PURE__ */ React11.createElement(React11.Fragment, null, props.isSVGStylesOverride === false ? props.icon && /* @__PURE__ */ React11.createElement("img", { className: props.iconsClassName, src: props.icon, alt: props.label }) : svgContent && /* @__PURE__ */ React11.createElement(
384
+ props.loading ? /* @__PURE__ */ React11.createElement(React11.Fragment, null, /* @__PURE__ */ React11.createElement("svg", { className: "animate-spin h-5 w-5 mr-3", viewBox: "0 0 24 24" }, /* @__PURE__ */ React11.createElement("circle", { className: "opacity-25", cx: "12", cy: "12", r: "10", stroke: "currentColor", strokeWidth: "4" }), /* @__PURE__ */ React11.createElement("path", { className: "opacity-75", fill: "currentColor", d: "M4 12a8 8 0 018-8v8H4z" })), props.label) : /* @__PURE__ */ React11.createElement(React11.Fragment, null, props.isSVGStylesOverride === false ? props.icon && /* @__PURE__ */ React11.createElement("img", { className: props.iconsClassName, src: props.icon, alt: props.label }) : svgContent && /* @__PURE__ */ React11.createElement(
385
385
  "span",
386
386
  {
387
387
  dangerouslySetInnerHTML: { __html: svgContent }
@@ -1030,6 +1030,10 @@ var OtpElement = (props) => {
1030
1030
  import React31 from "react";
1031
1031
  import Highcharts from "highcharts";
1032
1032
  import HighchartsReact from "highcharts-react-official";
1033
+ import HighchartsExporting from "highcharts/modules/exporting.js";
1034
+ if (typeof Highcharts === "object") {
1035
+ HighchartsExporting(Highcharts);
1036
+ }
1033
1037
  var HighchartsChart = ({ options }) => {
1034
1038
  return /* @__PURE__ */ React31.createElement(HighchartsReact, { highcharts: Highcharts, options });
1035
1039
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.14",
3
+ "version": "0.0.15-Beta0",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",