@apexcura/ui-components 0.0.15-Beta70 → 0.0.15-Beta71
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -6
- package/dist/index.mjs +5 -6
- package/package.json +1 -1
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?:
|
|
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?:
|
|
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,
|
|
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,
|
|
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
|
}
|
|
@@ -1111,7 +1111,7 @@ var FileUpload = (props) => {
|
|
|
1111
1111
|
onSuccess("ok");
|
|
1112
1112
|
}, 0);
|
|
1113
1113
|
};
|
|
1114
|
-
return /* @__PURE__ */ import_react26.default.createElement(
|
|
1114
|
+
return /* @__PURE__ */ import_react26.default.createElement(
|
|
1115
1115
|
Dragger,
|
|
1116
1116
|
{
|
|
1117
1117
|
action: "",
|
|
@@ -1126,7 +1126,7 @@ var FileUpload = (props) => {
|
|
|
1126
1126
|
},
|
|
1127
1127
|
/* @__PURE__ */ import_react26.default.createElement("p", null, /* @__PURE__ */ import_react26.default.createElement(import_icons5.InboxOutlined, null)),
|
|
1128
1128
|
/* @__PURE__ */ import_react26.default.createElement("p", null, "Click or drag file to upload")
|
|
1129
|
-
)
|
|
1129
|
+
);
|
|
1130
1130
|
};
|
|
1131
1131
|
|
|
1132
1132
|
// src/Components/TabsElement.tsx
|
|
@@ -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,7 +1675,6 @@ 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
|
};
|
|
1681
1680
|
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(
|
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,
|
|
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,
|
|
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
|
}
|
|
@@ -1042,7 +1042,7 @@ var FileUpload = (props) => {
|
|
|
1042
1042
|
onSuccess("ok");
|
|
1043
1043
|
}, 0);
|
|
1044
1044
|
};
|
|
1045
|
-
return /* @__PURE__ */ React25.createElement(
|
|
1045
|
+
return /* @__PURE__ */ React25.createElement(
|
|
1046
1046
|
Dragger,
|
|
1047
1047
|
{
|
|
1048
1048
|
action: "",
|
|
@@ -1057,7 +1057,7 @@ var FileUpload = (props) => {
|
|
|
1057
1057
|
},
|
|
1058
1058
|
/* @__PURE__ */ React25.createElement("p", null, /* @__PURE__ */ React25.createElement(InboxOutlined, null)),
|
|
1059
1059
|
/* @__PURE__ */ React25.createElement("p", null, "Click or drag file to upload")
|
|
1060
|
-
)
|
|
1060
|
+
);
|
|
1061
1061
|
};
|
|
1062
1062
|
|
|
1063
1063
|
// src/Components/TabsElement.tsx
|
|
@@ -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,7 +1630,6 @@ 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
|
};
|
|
1636
1635
|
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(
|