playbook_ui 14.16.0.pre.alpha.PLAY1929bracketlayout6928 → 14.16.0.pre.alpha.PLAY1929bracketlayout6957

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a662ac00a58962478fd0e17b00eafdf564565248e188d6714a7139318ca5758c
4
- data.tar.gz: 3fa81ed933a72351905b30edc947d12ed47a33e8473ce254e2599afdd782e706
3
+ metadata.gz: 7b2af193a12246de5703b901c49abeac27c44fa9d2c8f76f5bafc6fccc4f8858
4
+ data.tar.gz: b8913aebce80550bed950ff30380139f02e336c19fc83cbab919ee146e06df42
5
5
  SHA512:
6
- metadata.gz: 225891d0ef19e642aa13f378c982b88f0ccc87bc69458d26434c9bd647c9043ed902c72cd15e394c1460f95708207c7a38f74a88c40698fd271a705ae1bf3e8e
7
- data.tar.gz: 6290be554bbfe1f72395ec5b2ded95ec449d5e04822672eb6bb55c35e05d7049a496915263393a26f07b114405d28712e50dc2dcc8ed8733900bac71273305af
6
+ metadata.gz: 99dcf0a34d39614db573f5166bf05c64bc7036e9681aa84f81dd634cbb330fcbe6b78b1d68765a0d0bfca0f62af8b1607f8655e2e41da5ab4f798959ec0fec4b
7
+ data.tar.gz: 298f4b8f42a9544aba7aafc308f0abb183a1e6297ee1ad6510ac0035dae60b44b0e6b05aaac676a15e7bd2313f5365b7566550e27f84d2418b2e3438893001eb
@@ -220,8 +220,9 @@ $bracket-border-width: 4px;
220
220
  display: block;
221
221
  }
222
222
  .layout_round .layout_game::after,
223
- .connector_container {
224
- display: none;
223
+ .connector_container,
224
+ .half_box {
225
+ display: none !important;
225
226
  }
226
227
  }
227
228
  }
@@ -176,7 +176,11 @@ const Layout = (props: LayoutPropTypes) => {
176
176
  (child: React.ReactElement & {type: {displayName: string}}) => child.type?.displayName !== 'Side'
177
177
  )
178
178
 
179
- const numberOfRounds = Array.isArray(nonSideChildren) ? nonSideChildren.filter((child: any) => child.type?.name === 'Round').length : 0
179
+ const numberOfRounds = Array.isArray(nonSideChildren) ? React.Children.toArray(children).filter(
180
+ (child) => {
181
+ return (child as React.ReactElement).type === Layout.Round;
182
+ }
183
+ ).length : 0
180
184
  const bracketChildren = nonSideChildren.map(child =>
181
185
  React.isValidElement(child) ? React.cloneElement(child, { numberOfRounds }) : child
182
186
  )
@@ -33,7 +33,7 @@ export const Round = (props: LayoutRoundProps) => {
33
33
  const numberOfChildren = Array.isArray(children) ? children.length : 0
34
34
 
35
35
  const childrenWithProps = Array.isArray(children) ? children.map((child, index) =>
36
- React.isValidElement(child) ? React.cloneElement(child, { numberOfRounds, numberOfGames: numberOfChildren, isOdd: index % 2 === 0 }) : child
36
+ React.isValidElement(child) ? React.cloneElement(child, { numberOfRounds, numberOfGames: numberOfChildren, isOdd: index % 2 === 0, key: `child_${index}` }) : child
37
37
  ) : children
38
38
 
39
39
  const rightConnectors = Array.from({ length: numberOfChildren / 2 }, (_, index) => (