playbook_ui 14.9.0.pre.rc.10 → 14.9.0.pre.rc.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_dropdown/utilities/subComponentHelper.tsx +13 -2
- data/dist/chunks/_weekday_stacked-CUJfwh5E.js +45 -0
- data/dist/chunks/vendor.js +1 -1
- data/dist/playbook-doc.js +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +3 -3
- data/dist/chunks/_weekday_stacked-BDFu4IMD.js +0 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10d1aff51c7bc5cac32a489b1ac8a458fd83e56219c3067c29b0b39717ec9487
|
4
|
+
data.tar.gz: 506f14423c81bf727d25c8e844cf43781653159ab2664a52943a2ff9dff526d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4506507514a95afcf2b22ba01d1721901cc562a3c9bafdf969b46c772cb13ad160bf17ec3df05a01be8b797533b1a05fc91824f699d143819f4f658413b906d4
|
7
|
+
data.tar.gz: 8a2b936c5d869b2eb0564c638de43586a45fc91a785896767ebd1e5b4c903ce5dcb3ce46e32ead2e7775885236bd9ef2eb0c3f26e14d14c486d1c97446787609
|
@@ -18,9 +18,19 @@ export const separateChildComponents = (children: React.ReactChild[] | React.Rea
|
|
18
18
|
const otherChildren: React.ReactChild[] = [];
|
19
19
|
|
20
20
|
React.Children.forEach(children, (child) => {
|
21
|
-
|
21
|
+
const element = child as ReactElement;
|
22
|
+
const childType = element?.type;
|
23
|
+
const childDisplayName = (childType as any)?.displayName || (childType as any)?.name;
|
24
|
+
|
25
|
+
if (
|
26
|
+
childType === DropdownTrigger ||
|
27
|
+
childDisplayName === "DropdownTrigger"
|
28
|
+
) {
|
22
29
|
trigger = child;
|
23
|
-
} else if (
|
30
|
+
} else if (
|
31
|
+
childType === DropdownContainer ||
|
32
|
+
childDisplayName === "DropdownContainer"
|
33
|
+
) {
|
24
34
|
container = child;
|
25
35
|
} else {
|
26
36
|
otherChildren.push(child);
|
@@ -30,6 +40,7 @@ export const separateChildComponents = (children: React.ReactChild[] | React.Rea
|
|
30
40
|
return { trigger, container, otherChildren };
|
31
41
|
};
|
32
42
|
|
43
|
+
|
33
44
|
export const prepareSubcomponents = ({
|
34
45
|
children,
|
35
46
|
hasTriggerSubcomponent,
|