@parrot-co/parrot-ui 0.1.18 → 0.1.20
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/main.js +5 -8
- package/dist/main.js.map +1 -1
- package/dist/module.js +5 -8
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -926,7 +926,6 @@ const $5a6f28f3fd58ff6e$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, ($parcel$int
|
|
|
926
926
|
};
|
|
927
927
|
}
|
|
928
928
|
const Comp = as;
|
|
929
|
-
console.log(buttonProps);
|
|
930
929
|
return /*#__PURE__*/ (0, $8zHUo$reactjsxruntime.jsxs)(Comp, {
|
|
931
930
|
style: {
|
|
932
931
|
...style,
|
|
@@ -1610,7 +1609,7 @@ const $86685406b084d356$export$ef146090a6472d9e = (0, $8zHUo$reactstately.Sectio
|
|
|
1610
1609
|
|
|
1611
1610
|
function $fc43ab93aaa777d9$export$3d7d0414f6db67e7({ children: children, renderOption: renderOption, valueKey: valueKey, sectionKey: sectionKey, renderSectionLabel: renderSectionLabel, labelKey: labelKey, items: items }) {
|
|
1612
1611
|
const hasChildren = $8zHUo$react.Children.count(children) > 0;
|
|
1613
|
-
if (hasChildren) return children;
|
|
1612
|
+
if (hasChildren || typeof children === "function") return children;
|
|
1614
1613
|
if (items) // eslint-disable-next-line react/display-name
|
|
1615
1614
|
return (item)=>{
|
|
1616
1615
|
const label = item?.[labelKey ?? "label"];
|
|
@@ -1633,7 +1632,9 @@ function $fc43ab93aaa777d9$export$3d7d0414f6db67e7({ children: children, renderO
|
|
|
1633
1632
|
function $fc43ab93aaa777d9$export$4c687b6f1150e71b(props) {
|
|
1634
1633
|
const children = $8zHUo$react.useMemo(()=>{
|
|
1635
1634
|
return $fc43ab93aaa777d9$export$3d7d0414f6db67e7(props);
|
|
1636
|
-
}, [
|
|
1635
|
+
}, [
|
|
1636
|
+
props.children
|
|
1637
|
+
]);
|
|
1637
1638
|
return children;
|
|
1638
1639
|
}
|
|
1639
1640
|
|
|
@@ -1658,7 +1659,7 @@ function $71edc9998a9f3b41$export$961f16f221737ce2() {
|
|
|
1658
1659
|
|
|
1659
1660
|
|
|
1660
1661
|
|
|
1661
|
-
function $dcfc4542aa84c062$export$41f133550aa26f48({ state: state, color: color, width: width = 300, listBoxRef: listBoxRef, renderEmpty: renderEmpty, classNames: classNames, className: className, style: style, styles: styles, ...props }) {
|
|
1662
|
+
function $dcfc4542aa84c062$export$41f133550aa26f48({ state: state, color: color = "gray", width: width = 300, listBoxRef: listBoxRef, renderEmpty: renderEmpty, classNames: classNames, className: className, style: style, styles: styles, ...props }) {
|
|
1662
1663
|
const children = (0, $fc43ab93aaa777d9$export$4c687b6f1150e71b)(props);
|
|
1663
1664
|
const internalState = (0, $8zHUo$reactstately.useListState)({
|
|
1664
1665
|
...props,
|
|
@@ -2755,7 +2756,6 @@ const $5f87818f4e8f8603$export$1a5cb5295a7d2749 = /*#__PURE__*/ $8zHUo$react.for
|
|
|
2755
2756
|
}
|
|
2756
2757
|
});
|
|
2757
2758
|
function onUpload(uploads) {
|
|
2758
|
-
console.log(uploads);
|
|
2759
2759
|
if ((0, $d99c85a751d7ffbd$export$4c0262a4f954db45)(uploads)) return;
|
|
2760
2760
|
setUploads(uploads);
|
|
2761
2761
|
onFileUpload?.(uploads);
|
|
@@ -3900,11 +3900,8 @@ function $b4c448f742efa2a7$export$9feb1bc2e5f1ccb3({ onChange: onChange, color:
|
|
|
3900
3900
|
}
|
|
3901
3901
|
function setAlpha(alpha) {
|
|
3902
3902
|
if (isNaN(alpha)) return;
|
|
3903
|
-
console.log(alpha);
|
|
3904
|
-
console.log(color);
|
|
3905
3903
|
const newColor = color.withChannelValue("alpha", alpha);
|
|
3906
3904
|
setColor(newColor);
|
|
3907
|
-
console.log(newColor);
|
|
3908
3905
|
}
|
|
3909
3906
|
const [h, s, l] = color.getColorChannels();
|
|
3910
3907
|
const rgbaColor = color.toFormat("rgba");
|