@apexcura/ui-components 0.0.15-Beta70 → 0.0.15-Beta72

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
@@ -1,4 +1,4 @@
1
- import React$1 from 'react';
1
+ import React$1, { CSSProperties } from 'react';
2
2
  import { SizeType } from 'antd/es/config-provider/SizeContext';
3
3
  import { UploadFile } from 'antd/lib/upload/interface';
4
4
 
@@ -9,7 +9,7 @@ type pagenationType = {
9
9
  type ElementType = {
10
10
  [x: string]: any;
11
11
  selectedStyle?: boolean;
12
- style?: boolean;
12
+ style?: CSSProperties;
13
13
  className?: string | undefined;
14
14
  placeholder?: string;
15
15
  addonBefore?: React.ReactNode;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import React$1 from 'react';
1
+ import React$1, { CSSProperties } from 'react';
2
2
  import { SizeType } from 'antd/es/config-provider/SizeContext';
3
3
  import { UploadFile } from 'antd/lib/upload/interface';
4
4
 
@@ -9,7 +9,7 @@ type pagenationType = {
9
9
  type ElementType = {
10
10
  [x: string]: any;
11
11
  selectedStyle?: boolean;
12
- style?: boolean;
12
+ style?: CSSProperties;
13
13
  className?: string | undefined;
14
14
  placeholder?: string;
15
15
  addonBefore?: React.ReactNode;
package/dist/index.js CHANGED
@@ -662,9 +662,9 @@ var AddMoreTable = (props) => {
662
662
  if (!element) return null;
663
663
  const { element: type, label } = element;
664
664
  if (type === "single-select") {
665
- return /* @__PURE__ */ import_react14.default.createElement(SingleSelectElement, { onChange: (value2) => console.log(label, value2), optionType: "", className: void 0, selectedStyle: false, style: false, options1: [], options2: [], firstOptions: [], secondOptions: [] });
665
+ return /* @__PURE__ */ import_react14.default.createElement(SingleSelectElement, { onChange: (value2) => console.log(label, value2), optionType: "", className: void 0, selectedStyle: false, options1: [], options2: [], firstOptions: [], secondOptions: [] });
666
666
  } else if (type === "textarea") {
667
- return /* @__PURE__ */ import_react14.default.createElement(TextareaElement, { onChange: (value2) => console.log(label, value2), optionType: "", className: void 0, selectedStyle: false, style: false, options1: [], options2: [], firstOptions: [], secondOptions: [] });
667
+ return /* @__PURE__ */ import_react14.default.createElement(TextareaElement, { onChange: (value2) => console.log(label, value2), optionType: "", className: void 0, selectedStyle: false, options1: [], options2: [], firstOptions: [], secondOptions: [] });
668
668
  } else {
669
669
  return null;
670
670
  }
@@ -1667,7 +1667,7 @@ var BarChart = (props) => {
1667
1667
  // src/Components/DivContainer.tsx
1668
1668
  var import_react37 = __toESM(require("react"));
1669
1669
  var DivContainer = (props) => {
1670
- return /* @__PURE__ */ import_react37.default.createElement("div", { className: props.className, onClick: props.onClick }, props.label);
1670
+ return /* @__PURE__ */ import_react37.default.createElement("div", { className: props.className, style: props.style, onClick: props.onClick }, props.label);
1671
1671
  };
1672
1672
 
1673
1673
  // src/Components/ColorPickerElement.tsx
@@ -1675,9 +1675,9 @@ var import_react38 = __toESM(require("react"));
1675
1675
  var import_antd22 = require("antd");
1676
1676
  var ColorPickerElement = (props) => {
1677
1677
  const onHandleChange = (value, hex) => {
1678
- console.log(hex);
1679
1678
  props.onChange && props.onChange(hex);
1680
1679
  };
1680
+ console.log(props.value);
1681
1681
  return /* @__PURE__ */ import_react38.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react38.default.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ import_react38.default.createElement("br", null), /* @__PURE__ */ import_react38.default.createElement(
1682
1682
  import_antd22.ColorPicker,
1683
1683
  {
package/dist/index.mjs CHANGED
@@ -593,9 +593,9 @@ var AddMoreTable = (props) => {
593
593
  if (!element) return null;
594
594
  const { element: type, label } = element;
595
595
  if (type === "single-select") {
596
- return /* @__PURE__ */ React13.createElement(SingleSelectElement, { onChange: (value2) => console.log(label, value2), optionType: "", className: void 0, selectedStyle: false, style: false, options1: [], options2: [], firstOptions: [], secondOptions: [] });
596
+ return /* @__PURE__ */ React13.createElement(SingleSelectElement, { onChange: (value2) => console.log(label, value2), optionType: "", className: void 0, selectedStyle: false, options1: [], options2: [], firstOptions: [], secondOptions: [] });
597
597
  } else if (type === "textarea") {
598
- return /* @__PURE__ */ React13.createElement(TextareaElement, { onChange: (value2) => console.log(label, value2), optionType: "", className: void 0, selectedStyle: false, style: false, options1: [], options2: [], firstOptions: [], secondOptions: [] });
598
+ return /* @__PURE__ */ React13.createElement(TextareaElement, { onChange: (value2) => console.log(label, value2), optionType: "", className: void 0, selectedStyle: false, options1: [], options2: [], firstOptions: [], secondOptions: [] });
599
599
  } else {
600
600
  return null;
601
601
  }
@@ -1622,7 +1622,7 @@ var BarChart = (props) => {
1622
1622
  // src/Components/DivContainer.tsx
1623
1623
  import React36 from "react";
1624
1624
  var DivContainer = (props) => {
1625
- return /* @__PURE__ */ React36.createElement("div", { className: props.className, onClick: props.onClick }, props.label);
1625
+ return /* @__PURE__ */ React36.createElement("div", { className: props.className, style: props.style, onClick: props.onClick }, props.label);
1626
1626
  };
1627
1627
 
1628
1628
  // src/Components/ColorPickerElement.tsx
@@ -1630,9 +1630,9 @@ import React37 from "react";
1630
1630
  import { ColorPicker } from "antd";
1631
1631
  var ColorPickerElement = (props) => {
1632
1632
  const onHandleChange = (value, hex) => {
1633
- console.log(hex);
1634
1633
  props.onChange && props.onChange(hex);
1635
1634
  };
1635
+ console.log(props.value);
1636
1636
  return /* @__PURE__ */ React37.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React37.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ React37.createElement("br", null), /* @__PURE__ */ React37.createElement(
1637
1637
  ColorPicker,
1638
1638
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apexcura/ui-components",
3
- "version": "0.0.15-Beta70",
3
+ "version": "0.0.15-Beta72",
4
4
  "description": "Apex cura React components library",
5
5
  "keywords": [
6
6
  "apex cura",