playbook_ui 7.3.0.pre.alpha9 → 7.3.0.pre.alpha10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e18cba8566c2c3fe0b78079db8014edfd76e93b54c967e502658970aa557e6ff
4
- data.tar.gz: 130729a0d901cecb68c59af7c4972962c3acea7892463a04c3c776510060d6e7
3
+ metadata.gz: ffacb9bd2fec12c5de6322d01b9acd45f3b18818f68d0155eb224f964cec579a
4
+ data.tar.gz: 629da81bbd27bddd718eb38bc0824e4e2754edb85972942e982e8c79b815a984
5
5
  SHA512:
6
- metadata.gz: 2144a7864670dee1d05de41453283ddb4feb2b130cf6140a7d0f4384dccd6eae245f602308279802c426b3194c917171ee1449a88230553d1c01447b816a4a0d
7
- data.tar.gz: ddf9bd93160b222da814833dfb263f12fb00d1a820bcbe3895f717e321741359e90215605d7bfe87fb7d02a3dd26048cc1219722a1796d919a986e367c72062a
6
+ metadata.gz: b4d4257240173e0c2e3ff7c4f810ef6f9cf90c45b1ed8ebe1d10af991c06e6e1f1cbcb8184933d5d6dbd74459e1ca0391e996d01d67e2e083aad61813e9f42dd
7
+ data.tar.gz: 2e78709ffe438edfdd8282f4111d918fa9a25835cee7af2d41fa87fd15ecf778e675f24b691d6585ccb1866c9df105031a44ca6886563a1edbacb470eaf749cd
@@ -40,6 +40,9 @@ const Main = (props: CollapsibleMainProps) => {
40
40
  )
41
41
  }
42
42
 
43
+ const MainType = (<Main />).type
44
+
45
+
43
46
  const Content = (props: CollapsibleContentProps) => {
44
47
  const { children, className, padding = "md" } = props
45
48
  const contentCSS = buildCss("pb_collapsible_content_kit")
@@ -110,7 +113,7 @@ const Collapsible = (props: CollapsibleProps) => {
110
113
 
111
114
  const renderContent = () => {
112
115
  const nonMainChildren = collapsibleChildren.filter(
113
- (child) => get(child, "type.name") !== "Main"
116
+ (child) => child.type !== MainType
114
117
  )
115
118
  console.log("NonMainChildren:", nonMainChildren)
116
119
  return (
@@ -127,6 +130,7 @@ const Collapsible = (props: CollapsibleProps) => {
127
130
  </div>
128
131
  )
129
132
  }
133
+
130
134
  Collapsible.Main = Main
131
135
  Collapsible.Content = Content
132
136
 
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Playbook
3
- VERSION = "7.3.0.pre.alpha9"
3
+ VERSION = "7.3.0.pre.alpha10"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.0.pre.alpha9
4
+ version: 7.3.0.pre.alpha10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX