@parrot-co/parrot-ui 0.1.19 → 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 CHANGED
@@ -1609,7 +1609,7 @@ const $86685406b084d356$export$ef146090a6472d9e = (0, $8zHUo$reactstately.Sectio
1609
1609
 
1610
1610
  function $fc43ab93aaa777d9$export$3d7d0414f6db67e7({ children: children, renderOption: renderOption, valueKey: valueKey, sectionKey: sectionKey, renderSectionLabel: renderSectionLabel, labelKey: labelKey, items: items }) {
1611
1611
  const hasChildren = $8zHUo$react.Children.count(children) > 0;
1612
- if (hasChildren) return children;
1612
+ if (hasChildren || typeof children === "function") return children;
1613
1613
  if (items) // eslint-disable-next-line react/display-name
1614
1614
  return (item)=>{
1615
1615
  const label = item?.[labelKey ?? "label"];
@@ -1632,7 +1632,9 @@ function $fc43ab93aaa777d9$export$3d7d0414f6db67e7({ children: children, renderO
1632
1632
  function $fc43ab93aaa777d9$export$4c687b6f1150e71b(props) {
1633
1633
  const children = $8zHUo$react.useMemo(()=>{
1634
1634
  return $fc43ab93aaa777d9$export$3d7d0414f6db67e7(props);
1635
- }, []);
1635
+ }, [
1636
+ props.children
1637
+ ]);
1636
1638
  return children;
1637
1639
  }
1638
1640
 
@@ -1657,7 +1659,7 @@ function $71edc9998a9f3b41$export$961f16f221737ce2() {
1657
1659
 
1658
1660
 
1659
1661
 
1660
- 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 }) {
1661
1663
  const children = (0, $fc43ab93aaa777d9$export$4c687b6f1150e71b)(props);
1662
1664
  const internalState = (0, $8zHUo$reactstately.useListState)({
1663
1665
  ...props,