@apexcura/ui-components 0.0.13-Beta33 → 0.0.13-Beta36
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +14 -23
- package/dist/index.mjs +15 -24
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -13,7 +13,7 @@ type ElementType = {
|
|
|
13
13
|
prefix?: React.ReactNode;
|
|
14
14
|
type?: string;
|
|
15
15
|
size?: SizeType;
|
|
16
|
-
value?: string | number | boolean | any[] | null | undefined;
|
|
16
|
+
value?: string | number | boolean | any[] | null | object | undefined;
|
|
17
17
|
status?: "error" | "warning";
|
|
18
18
|
styles?: React.CSSProperties;
|
|
19
19
|
variant?: "outlined" | "borderless" | "filled";
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ type ElementType = {
|
|
|
13
13
|
prefix?: React.ReactNode;
|
|
14
14
|
type?: string;
|
|
15
15
|
size?: SizeType;
|
|
16
|
-
value?: string | number | boolean | any[] | null | undefined;
|
|
16
|
+
value?: string | number | boolean | any[] | null | object | undefined;
|
|
17
17
|
status?: "error" | "warning";
|
|
18
18
|
styles?: React.CSSProperties;
|
|
19
19
|
variant?: "outlined" | "borderless" | "filled";
|
package/dist/index.js
CHANGED
|
@@ -876,40 +876,31 @@ var SingleCheckbox = (props) => {
|
|
|
876
876
|
var import_react27 = __toESM(require("react"));
|
|
877
877
|
var import_antd19 = require("antd");
|
|
878
878
|
var MultiSelect = (props) => {
|
|
879
|
-
const
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
for (let i = 1; i < 100; i++) {
|
|
884
|
-
newOptions.push({
|
|
885
|
-
value: i,
|
|
886
|
-
label: i
|
|
887
|
-
});
|
|
879
|
+
const handleFirstChange = (value) => {
|
|
880
|
+
if (props.onChange) {
|
|
881
|
+
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
882
|
+
props.onChange({ firstvalue: filterOption2 });
|
|
888
883
|
}
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
console.log(filterOption2);
|
|
895
|
-
if (filterOption2) {
|
|
896
|
-
setSelectedOptions((prev) => [...prev, filterOption2]);
|
|
884
|
+
};
|
|
885
|
+
const handleSecondChange = (value) => {
|
|
886
|
+
if (props.onChange) {
|
|
887
|
+
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
888
|
+
props.onChange({ secondValue: filterOption2 });
|
|
897
889
|
}
|
|
898
890
|
};
|
|
899
|
-
|
|
900
|
-
return /* @__PURE__ */ import_react27.default.createElement("div", { className: props.className, style: { display: "flex", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "200px" } }, /* @__PURE__ */ import_react27.default.createElement(
|
|
891
|
+
return /* @__PURE__ */ import_react27.default.createElement("div", { className: props.className, style: { display: "flex", flexDirection: "row", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "100px" } }, /* @__PURE__ */ import_react27.default.createElement(
|
|
901
892
|
import_antd19.Select,
|
|
902
893
|
{
|
|
903
|
-
onChange:
|
|
894
|
+
onChange: handleFirstChange,
|
|
904
895
|
variant: props.variant,
|
|
905
|
-
options
|
|
896
|
+
options: props.options
|
|
906
897
|
}
|
|
907
898
|
), /* @__PURE__ */ import_react27.default.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ import_react27.default.createElement(
|
|
908
899
|
import_antd19.Select,
|
|
909
900
|
{
|
|
910
|
-
onChange:
|
|
901
|
+
onChange: handleSecondChange,
|
|
911
902
|
variant: props.variant,
|
|
912
|
-
options
|
|
903
|
+
options: props.options
|
|
913
904
|
}
|
|
914
905
|
));
|
|
915
906
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -817,43 +817,34 @@ var SingleCheckbox = (props) => {
|
|
|
817
817
|
};
|
|
818
818
|
|
|
819
819
|
// src/Components/MultiSelect.tsx
|
|
820
|
-
import React26
|
|
820
|
+
import React26 from "react";
|
|
821
821
|
import { Select as Select4 } from "antd";
|
|
822
822
|
var MultiSelect = (props) => {
|
|
823
|
-
const
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
for (let i = 1; i < 100; i++) {
|
|
828
|
-
newOptions.push({
|
|
829
|
-
value: i,
|
|
830
|
-
label: i
|
|
831
|
-
});
|
|
823
|
+
const handleFirstChange = (value) => {
|
|
824
|
+
if (props.onChange) {
|
|
825
|
+
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
826
|
+
props.onChange({ firstvalue: filterOption2 });
|
|
832
827
|
}
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
console.log(filterOption2);
|
|
839
|
-
if (filterOption2) {
|
|
840
|
-
setSelectedOptions((prev) => [...prev, filterOption2]);
|
|
828
|
+
};
|
|
829
|
+
const handleSecondChange = (value) => {
|
|
830
|
+
if (props.onChange) {
|
|
831
|
+
const filterOption2 = props.options && props.options.find((eachOption) => eachOption.value === value);
|
|
832
|
+
props.onChange({ secondValue: filterOption2 });
|
|
841
833
|
}
|
|
842
834
|
};
|
|
843
|
-
|
|
844
|
-
return /* @__PURE__ */ React26.createElement("div", { className: props.className, style: { display: "flex", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "200px" } }, /* @__PURE__ */ React26.createElement(
|
|
835
|
+
return /* @__PURE__ */ React26.createElement("div", { className: props.className, style: { display: "flex", flexDirection: "row", backgroundColor: "white", borderRadius: 10, border: "1px solid gray", width: "100px" } }, /* @__PURE__ */ React26.createElement(
|
|
845
836
|
Select4,
|
|
846
837
|
{
|
|
847
|
-
onChange:
|
|
838
|
+
onChange: handleFirstChange,
|
|
848
839
|
variant: props.variant,
|
|
849
|
-
options
|
|
840
|
+
options: props.options
|
|
850
841
|
}
|
|
851
842
|
), /* @__PURE__ */ React26.createElement("div", { style: { borderLeft: "1px solid gray", height: "33px" } }), /* @__PURE__ */ React26.createElement(
|
|
852
843
|
Select4,
|
|
853
844
|
{
|
|
854
|
-
onChange:
|
|
845
|
+
onChange: handleSecondChange,
|
|
855
846
|
variant: props.variant,
|
|
856
|
-
options
|
|
847
|
+
options: props.options
|
|
857
848
|
}
|
|
858
849
|
));
|
|
859
850
|
};
|