@telegraph/combobox 0.1.2 → 0.1.4
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/CHANGELOG.md +24 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.mjs +13 -2
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/Combobox/Combobox.d.ts.map +1 -1
- package/dist/types/Combobox/Combobox.helpers.d.ts.map +1 -1
- package/dist/types/Combobox/Combobox.primitives.d.ts.map +1 -1
- package/package.json +11 -11
package/dist/esm/index.mjs
CHANGED
|
@@ -3287,7 +3287,13 @@ const Ja = {
|
|
|
3287
3287
|
3: "10"
|
|
3288
3288
|
}, j = (e) => Array.isArray(e), te = (e) => typeof e == "object" && !Array.isArray(e) || typeof e == "string" || !e, nc = (e) => {
|
|
3289
3289
|
const t = (r, i = []) => (b.Children.toArray(r).forEach((a) => {
|
|
3290
|
-
b.isValidElement(a)
|
|
3290
|
+
if (b.isValidElement(a)) {
|
|
3291
|
+
const l = a.props;
|
|
3292
|
+
l.value ? i.push(a) : l.children && t(
|
|
3293
|
+
l.children,
|
|
3294
|
+
i
|
|
3295
|
+
);
|
|
3296
|
+
}
|
|
3291
3297
|
}), i);
|
|
3292
3298
|
return t(e).map((r) => {
|
|
3293
3299
|
var o;
|
|
@@ -3319,7 +3325,12 @@ const Ja = {
|
|
|
3319
3325
|
}, Xs = (e) => {
|
|
3320
3326
|
const t = b.Children.toArray(e), n = [];
|
|
3321
3327
|
return t.forEach((s) => {
|
|
3322
|
-
typeof s == "string" && n.push(s), b.isValidElement(s)
|
|
3328
|
+
if (typeof s == "string" && n.push(s), b.isValidElement(s)) {
|
|
3329
|
+
const r = s.props;
|
|
3330
|
+
r.children && n.push(
|
|
3331
|
+
...Xs(r.children)
|
|
3332
|
+
);
|
|
3333
|
+
}
|
|
3323
3334
|
}), n;
|
|
3324
3335
|
};
|
|
3325
3336
|
function qs(e, t) {
|