courthive-components 7.1.2 → 7.3.0

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/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export { renderRoundPager } from './components/renderStructure/renderRoundPager'
8
8
  export { renderMatchUp } from './components/renderStructure/renderMatchUp';
9
9
  export { compositions } from './compositions/compositions';
10
10
  export { resolvePublishedComposition } from './compositions/resolvePublishedComposition';
11
+ export { showsConnectors } from './compositions/showsConnectors';
11
12
  export type { DisplayExtensionValue } from './compositions/resolvePublishedComposition';
12
13
  export { renderRound } from './components/renderStructure/renderRound';
13
14
  export { buildStructureMinimap } from './components/renderStructure/renderStructureMinimap';
package/dist/types.d.ts CHANGED
@@ -234,7 +234,7 @@ export interface Configuration {
234
234
  /** The header above the card: date and time, then location. The object form adds to it (all off by default). */
235
235
  scheduleInfo?: boolean | ScheduleInfoOptions;
236
236
  /**
237
- * A colour per side: `{ 1: '#0047d4', 2: '#dd5d13' }`, or a function the host answers per matchUp (a team's
237
+ * A colour per side: `{ 1: '#0b7a75', 2: '#b3365b' }`, or a function the host answers per matchUp (a team's
238
238
  * colour, say). Sets `--chc-side-color` on each side, which colours the winner's or server's name, the sets a
239
239
  * side won, the point score, the tick, and tints the winner's row. Off by default.
240
240
  */
@@ -282,6 +282,11 @@ export interface Configuration {
282
282
  * round robin, ad hoc or lucky draws. Off by default; the hovered sides highlight either way.
283
283
  */
284
284
  pathHighlight?: boolean;
285
+ /**
286
+ * The lines between rounds. `true` draws them and `false` hides them, whatever the theme; unset keeps the
287
+ * theme's own choice (BasicCard and Wimbledon hide them). A path highlight draws its own lines either way.
288
+ */
289
+ connectors?: boolean;
285
290
  /**
286
291
  * Host renderers for named slots in the structure. Each returns an element, or nothing to leave the slot
287
292
  * empty; the element is wrapped in `.chc-slot.chc-slot--<name>` and never modified. Runtime functions,
@@ -344,6 +349,11 @@ export interface Configuration {
344
349
  * and `--chc-radius-score`; set them on `.chc-rounded` to change the radii.
345
350
  */
346
351
  rounded?: boolean;
352
+ /**
353
+ * Space, in pixels, between the card's border and what it holds, so a tinted row or a header's background
354
+ * stops short of the border. 0 (none) by default. Backed by `--chc-matchup-inset`.
355
+ */
356
+ matchUpInset?: number;
347
357
  /**
348
358
  * An icon for each of the matchUp's online resources: play for a VIDEO, a live dot for a STREAM, a
349
359
  * chart for STATS. Off by default. `true` shows all three; `{ subTypes }` narrows it. In the schedule
@@ -437,6 +447,8 @@ export interface Configuration {
437
447
  */
438
448
  export interface ModalConfiguration {
439
449
  clickAway?: boolean;
450
+ /** Focus the first control in the body that can be modified or selected when the modal opens. Default true. */
451
+ autoFocus?: boolean;
440
452
  backdrop?: boolean;
441
453
  maxWidth?: number;
442
454
  fontSize?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "courthive-components",
3
3
  "packageManager": "pnpm@12.15.0",
4
- "version": "7.1.2",
4
+ "version": "7.3.0",
5
5
  "engines": {
6
6
  "node": ">=24"
7
7
  },