@apexcura/ui-components 0.0.15-Beta96 → 0.0.15-Beta98
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 +3 -5
- package/dist/index.mjs +4 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1730,18 +1730,16 @@ 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)(props.value);
|
|
1734
1733
|
const onHandleChange = (value, hex) => {
|
|
1735
|
-
|
|
1736
|
-
setColor(hex);
|
|
1737
|
-
props.onChange && props.onChange(color && color);
|
|
1734
|
+
props.onChange && props.onChange(hex);
|
|
1738
1735
|
};
|
|
1736
|
+
const valueUpperCase = props.value ? props.value.toUpperCase() : props.value;
|
|
1739
1737
|
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(
|
|
1740
1738
|
import_antd22.ColorPicker,
|
|
1741
1739
|
{
|
|
1742
1740
|
className: props.className,
|
|
1743
1741
|
showText: true,
|
|
1744
|
-
value:
|
|
1742
|
+
value: valueUpperCase,
|
|
1745
1743
|
onChange: onHandleChange
|
|
1746
1744
|
}
|
|
1747
1745
|
));
|
package/dist/index.mjs
CHANGED
|
@@ -1681,21 +1681,19 @@ var DivContainer = (props) => {
|
|
|
1681
1681
|
};
|
|
1682
1682
|
|
|
1683
1683
|
// src/Components/ColorPickerElement.tsx
|
|
1684
|
-
import React38
|
|
1684
|
+
import React38 from "react";
|
|
1685
1685
|
import { ColorPicker } from "antd";
|
|
1686
1686
|
var ColorPickerElement = (props) => {
|
|
1687
|
-
const [color, setColor] = useState11(props.value);
|
|
1688
1687
|
const onHandleChange = (value, hex) => {
|
|
1689
|
-
|
|
1690
|
-
setColor(hex);
|
|
1691
|
-
props.onChange && props.onChange(color && color);
|
|
1688
|
+
props.onChange && props.onChange(hex);
|
|
1692
1689
|
};
|
|
1690
|
+
const valueUpperCase = props.value ? props.value.toUpperCase() : props.value;
|
|
1693
1691
|
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(
|
|
1694
1692
|
ColorPicker,
|
|
1695
1693
|
{
|
|
1696
1694
|
className: props.className,
|
|
1697
1695
|
showText: true,
|
|
1698
|
-
value:
|
|
1696
|
+
value: valueUpperCase,
|
|
1699
1697
|
onChange: onHandleChange
|
|
1700
1698
|
}
|
|
1701
1699
|
));
|