@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 +5 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +5 -3
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/module.js
CHANGED
|
@@ -1540,7 +1540,7 @@ const $c35269c9504bc94d$export$ef146090a6472d9e = (0, $hgUW1$Section);
|
|
|
1540
1540
|
|
|
1541
1541
|
function $b71fd84ba612e4b0$export$3d7d0414f6db67e7({ children: children, renderOption: renderOption, valueKey: valueKey, sectionKey: sectionKey, renderSectionLabel: renderSectionLabel, labelKey: labelKey, items: items }) {
|
|
1542
1542
|
const hasChildren = $hgUW1$Children.count(children) > 0;
|
|
1543
|
-
if (hasChildren) return children;
|
|
1543
|
+
if (hasChildren || typeof children === "function") return children;
|
|
1544
1544
|
if (items) // eslint-disable-next-line react/display-name
|
|
1545
1545
|
return (item)=>{
|
|
1546
1546
|
const label = item?.[labelKey ?? "label"];
|
|
@@ -1563,7 +1563,9 @@ function $b71fd84ba612e4b0$export$3d7d0414f6db67e7({ children: children, renderO
|
|
|
1563
1563
|
function $b71fd84ba612e4b0$export$4c687b6f1150e71b(props) {
|
|
1564
1564
|
const children = $hgUW1$useMemo(()=>{
|
|
1565
1565
|
return $b71fd84ba612e4b0$export$3d7d0414f6db67e7(props);
|
|
1566
|
-
}, [
|
|
1566
|
+
}, [
|
|
1567
|
+
props.children
|
|
1568
|
+
]);
|
|
1567
1569
|
return children;
|
|
1568
1570
|
}
|
|
1569
1571
|
|
|
@@ -1588,7 +1590,7 @@ function $db709eeca70b0d61$export$961f16f221737ce2() {
|
|
|
1588
1590
|
|
|
1589
1591
|
|
|
1590
1592
|
|
|
1591
|
-
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 }) {
|
|
1592
1594
|
const children = (0, $b71fd84ba612e4b0$export$4c687b6f1150e71b)(props);
|
|
1593
1595
|
const internalState = (0, $hgUW1$useListState)({
|
|
1594
1596
|
...props,
|