courthive-components 7.1.1 → 7.2.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/components/renderStructure/structurePaths.d.ts +2 -0
- package/dist/compositions/showsConnectors.d.ts +6 -0
- package/dist/courthive-components.css +1 -1
- package/dist/courthive-components.es.js +7485 -7463
- package/dist/courthive-components.umd.js +35 -35
- package/dist/index.d.ts +1 -0
- package/dist/types.d.ts +11 -1
- package/package.json +1 -1
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: '#
|
|
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
|