@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/module.js CHANGED
@@ -857,7 +857,6 @@ const $d95a2216d3ccf702$export$353f5b6fc5456de1 = /*#__PURE__*/ (0, $hgUW1$react
857
857
  };
858
858
  }
859
859
  const Comp = as;
860
- console.log(buttonProps);
861
860
  return /*#__PURE__*/ (0, $hgUW1$jsxs)(Comp, {
862
861
  style: {
863
862
  ...style,
@@ -1541,7 +1540,7 @@ const $c35269c9504bc94d$export$ef146090a6472d9e = (0, $hgUW1$Section);
1541
1540
 
1542
1541
  function $b71fd84ba612e4b0$export$3d7d0414f6db67e7({ children: children, renderOption: renderOption, valueKey: valueKey, sectionKey: sectionKey, renderSectionLabel: renderSectionLabel, labelKey: labelKey, items: items }) {
1543
1542
  const hasChildren = $hgUW1$Children.count(children) > 0;
1544
- if (hasChildren) return children;
1543
+ if (hasChildren || typeof children === "function") return children;
1545
1544
  if (items) // eslint-disable-next-line react/display-name
1546
1545
  return (item)=>{
1547
1546
  const label = item?.[labelKey ?? "label"];
@@ -1564,7 +1563,9 @@ function $b71fd84ba612e4b0$export$3d7d0414f6db67e7({ children: children, renderO
1564
1563
  function $b71fd84ba612e4b0$export$4c687b6f1150e71b(props) {
1565
1564
  const children = $hgUW1$useMemo(()=>{
1566
1565
  return $b71fd84ba612e4b0$export$3d7d0414f6db67e7(props);
1567
- }, []);
1566
+ }, [
1567
+ props.children
1568
+ ]);
1568
1569
  return children;
1569
1570
  }
1570
1571
 
@@ -1589,7 +1590,7 @@ function $db709eeca70b0d61$export$961f16f221737ce2() {
1589
1590
 
1590
1591
 
1591
1592
 
1592
- function $6ae005878b435ce8$export$41f133550aa26f48({ state: state, color: color, width: width = 300, listBoxRef: listBoxRef, renderEmpty: renderEmpty, classNames: classNames, className: className, style: style, styles: styles, ...props }) {
1593
+ function $6ae005878b435ce8$export$41f133550aa26f48({ state: state, color: color = "gray", width: width = 300, listBoxRef: listBoxRef, renderEmpty: renderEmpty, classNames: classNames, className: className, style: style, styles: styles, ...props }) {
1593
1594
  const children = (0, $b71fd84ba612e4b0$export$4c687b6f1150e71b)(props);
1594
1595
  const internalState = (0, $hgUW1$useListState)({
1595
1596
  ...props,
@@ -2686,7 +2687,6 @@ const $f9f5a5b674d0a63f$export$1a5cb5295a7d2749 = /*#__PURE__*/ $hgUW1$forwardRe
2686
2687
  }
2687
2688
  });
2688
2689
  function onUpload(uploads) {
2689
- console.log(uploads);
2690
2690
  if ((0, $0f90ef71a188bc45$export$4c0262a4f954db45)(uploads)) return;
2691
2691
  setUploads(uploads);
2692
2692
  onFileUpload?.(uploads);
@@ -3831,11 +3831,8 @@ function $b925f0cf89a3187d$export$9feb1bc2e5f1ccb3({ onChange: onChange, color:
3831
3831
  }
3832
3832
  function setAlpha(alpha) {
3833
3833
  if (isNaN(alpha)) return;
3834
- console.log(alpha);
3835
- console.log(color);
3836
3834
  const newColor = color.withChannelValue("alpha", alpha);
3837
3835
  setColor(newColor);
3838
- console.log(newColor);
3839
3836
  }
3840
3837
  const [h, s, l] = color.getColorChannels();
3841
3838
  const rgbaColor = color.toFormat("rgba");