@apexcura/ui-components 0.0.15-Beta94 → 0.0.15-Beta95
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.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1730,10 +1730,10 @@ var DivContainer = (props) => {
|
|
|
1730
1730
|
var import_react39 = __toESM(require("react"));
|
|
1731
1731
|
var import_antd22 = require("antd");
|
|
1732
1732
|
var ColorPickerElement = (props) => {
|
|
1733
|
-
const [color, setColor] = (0, import_react39.useState)(
|
|
1733
|
+
const [color, setColor] = (0, import_react39.useState)(props.value);
|
|
1734
1734
|
const onHandleChange = (value, hex) => {
|
|
1735
1735
|
setColor(hex);
|
|
1736
|
-
props.onChange && props.onChange(color);
|
|
1736
|
+
props.onChange && props.onChange(color && color);
|
|
1737
1737
|
};
|
|
1738
1738
|
return /* @__PURE__ */ import_react39.default.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ import_react39.default.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ import_react39.default.createElement("br", null), /* @__PURE__ */ import_react39.default.createElement(
|
|
1739
1739
|
import_antd22.ColorPicker,
|
package/dist/index.mjs
CHANGED
|
@@ -1684,10 +1684,10 @@ var DivContainer = (props) => {
|
|
|
1684
1684
|
import React38, { useState as useState11 } from "react";
|
|
1685
1685
|
import { ColorPicker } from "antd";
|
|
1686
1686
|
var ColorPickerElement = (props) => {
|
|
1687
|
-
const [color, setColor] = useState11(
|
|
1687
|
+
const [color, setColor] = useState11(props.value);
|
|
1688
1688
|
const onHandleChange = (value, hex) => {
|
|
1689
1689
|
setColor(hex);
|
|
1690
|
-
props.onChange && props.onChange(color);
|
|
1690
|
+
props.onChange && props.onChange(color && color);
|
|
1691
1691
|
};
|
|
1692
1692
|
return /* @__PURE__ */ React38.createElement("div", { className: props.containerClassName }, props.label && /* @__PURE__ */ React38.createElement("label", { htmlFor: props.name, className: props.labelClassName }, props.label), /* @__PURE__ */ React38.createElement("br", null), /* @__PURE__ */ React38.createElement(
|
|
1693
1693
|
ColorPicker,
|