courthive-components 1.1.0 → 1.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.
Files changed (287) hide show
  1. package/dist/assets/team-logos/index.d.ts +9 -0
  2. package/dist/components/burstChart/burstChart.d.ts +108 -0
  3. package/dist/components/burstChart/matchUpTransform.d.ts +11 -0
  4. package/dist/components/burstChart/textHelpers.d.ts +11 -0
  5. package/dist/components/button/barButton.d.ts +1 -0
  6. package/dist/components/button/cvaButton.d.ts +8 -0
  7. package/dist/components/button/dropDownButton.d.ts +5 -0
  8. package/dist/components/categories/ageCategory/ageCategory.d.ts +54 -0
  9. package/dist/components/categories/ageCategory/ageCategoryLogic.d.ts +55 -0
  10. package/dist/components/categories/category/category.d.ts +47 -0
  11. package/dist/components/composition-editor/compositionEditor.d.ts +6 -0
  12. package/dist/components/composition-editor/compositionEditorStore.d.ts +24 -0
  13. package/dist/components/composition-editor/compositionEditorTypes.d.ts +37 -0
  14. package/dist/components/composition-editor/compositionPreview.d.ts +2 -0
  15. package/dist/components/composition-editor/scaleConstants.d.ts +7 -0
  16. package/dist/components/composition-editor/sections/displaySection.d.ts +3 -0
  17. package/dist/components/composition-editor/sections/fieldBuilders.d.ts +20 -0
  18. package/dist/components/composition-editor/sections/layoutSection.d.ts +3 -0
  19. package/dist/components/composition-editor/sections/participantSection.d.ts +3 -0
  20. package/dist/components/composition-editor/sections/placeholderSection.d.ts +3 -0
  21. package/dist/components/composition-editor/sections/scaleSection.d.ts +3 -0
  22. package/dist/components/composition-editor/sections/scoreSection.d.ts +3 -0
  23. package/dist/components/composition-editor/sections/sectionBuilder.d.ts +8 -0
  24. package/dist/components/composition-editor/sections/themeSection.d.ts +3 -0
  25. package/dist/components/composition-editor/styles.d.ts +26 -0
  26. package/dist/components/controlBar/controlBar.d.ts +11 -0
  27. package/dist/components/controlBar/toggleOverlay.d.ts +3 -0
  28. package/dist/components/courts/courts.d.ts +7 -0
  29. package/dist/components/courts/index.d.ts +1 -0
  30. package/dist/components/drawer/drawer.d.ts +14 -0
  31. package/dist/components/flightProfile/flightProfileLogic.d.ts +51 -0
  32. package/dist/components/flightProfile/flightProfileNew.d.ts +34 -0
  33. package/dist/components/flightProfile/getFlightProfileFormItems.d.ts +13 -0
  34. package/dist/components/flightProfile/getFlightProfileFormRelationships.d.ts +1 -0
  35. package/dist/components/forms/createMultiSelect.d.ts +34 -0
  36. package/dist/components/forms/renderButtons.d.ts +3 -0
  37. package/dist/components/forms/renderField.d.ts +7 -0
  38. package/dist/components/forms/renderForm.d.ts +1 -0
  39. package/dist/components/forms/renderMenu.d.ts +3 -0
  40. package/dist/components/forms/renderValidator.d.ts +113 -0
  41. package/dist/components/forms/styles.d.ts +0 -0
  42. package/dist/components/generateRound.d.ts +6 -0
  43. package/dist/components/inline-scoring/engineToMatchUp.d.ts +6 -0
  44. package/dist/components/inline-scoring/index.d.ts +5 -0
  45. package/dist/components/inline-scoring/inlineScoringFooter.d.ts +18 -0
  46. package/dist/components/inline-scoring/inlineScoringManager.d.ts +49 -0
  47. package/dist/components/inline-scoring/inlineScoringTypes.d.ts +40 -0
  48. package/dist/components/inline-scoring/renderInlineMatchUp.d.ts +27 -0
  49. package/dist/components/interactive-scoring/buildInteractiveScoringShell.d.ts +28 -0
  50. package/dist/components/interactive-scoring/index.d.ts +2 -0
  51. package/dist/components/interactive-scoring/types.d.ts +60 -0
  52. package/dist/components/matchUpFormat/matchUpFormat.d.ts +81 -0
  53. package/dist/components/matchUpFormat/matchUpFormatLogic.d.ts +112 -0
  54. package/dist/components/modal/cmodal.d.ts +30 -0
  55. package/dist/components/modal/cmodalStyles.d.ts +8 -0
  56. package/dist/components/modal/compositionEditorModal.d.ts +46 -0
  57. package/dist/components/modal/generateTeamsModal.d.ts +26 -0
  58. package/dist/components/modal/mockParticipants.d.ts +91 -0
  59. package/dist/components/modal/scheduleCellConfigModal.d.ts +44 -0
  60. package/dist/components/modal/selectItem.d.ts +24 -0
  61. package/dist/components/notes-toolbar/notesToolbar.d.ts +20 -0
  62. package/dist/components/policy-catalog/controller/policyCatalogControl.d.ts +18 -0
  63. package/dist/components/policy-catalog/domain/catalogProjections.d.ts +11 -0
  64. package/dist/components/policy-catalog/domain/policyDefaults.d.ts +26 -0
  65. package/dist/components/policy-catalog/domain/utils.d.ts +4 -0
  66. package/dist/components/policy-catalog/editors/ranking/domain/emptyRankingPolicy.d.ts +2 -0
  67. package/dist/components/policy-catalog/editors/ranking/domain/rankingProjections.d.ts +32 -0
  68. package/dist/components/policy-catalog/editors/ranking/index.d.ts +9 -0
  69. package/dist/components/policy-catalog/editors/ranking/rankingPointsEditorControl.d.ts +27 -0
  70. package/dist/components/policy-catalog/editors/ranking/rankingPointsEditorPanel.d.ts +8 -0
  71. package/dist/components/policy-catalog/editors/ranking/rankingPointsEditorStore.d.ts +53 -0
  72. package/dist/components/policy-catalog/editors/ranking/sections/aggregationSection.d.ts +6 -0
  73. package/dist/components/policy-catalog/editors/ranking/sections/bonusPointsRow.d.ts +6 -0
  74. package/dist/components/policy-catalog/editors/ranking/sections/metadataSection.d.ts +6 -0
  75. package/dist/components/policy-catalog/editors/ranking/sections/perWinPointsRow.d.ts +6 -0
  76. package/dist/components/policy-catalog/editors/ranking/sections/positionPointsTable.d.ts +6 -0
  77. package/dist/components/policy-catalog/editors/ranking/sections/profileCard.d.ts +6 -0
  78. package/dist/components/policy-catalog/editors/ranking/sections/qualityWinSection.d.ts +6 -0
  79. package/dist/components/policy-catalog/editors/ranking/sections/scopeBadges.d.ts +2 -0
  80. package/dist/components/policy-catalog/editors/ranking/sections/scopeEditor.d.ts +6 -0
  81. package/dist/components/policy-catalog/editors/ranking/styles.d.ts +25 -0
  82. package/dist/components/policy-catalog/editors/ranking/types.d.ts +146 -0
  83. package/dist/components/policy-catalog/editors/scheduling/domain/schedulingProjections.d.ts +5 -0
  84. package/dist/components/policy-catalog/editors/scheduling/domain/schedulingValidation.d.ts +2 -0
  85. package/dist/components/policy-catalog/editors/scheduling/index.d.ts +11 -0
  86. package/dist/components/policy-catalog/editors/scheduling/schedulingEditorControl.d.ts +26 -0
  87. package/dist/components/policy-catalog/editors/scheduling/schedulingEditorPanel.d.ts +6 -0
  88. package/dist/components/policy-catalog/editors/scheduling/schedulingEditorStore.d.ts +32 -0
  89. package/dist/components/policy-catalog/editors/scheduling/sections/averageTimesSection.d.ts +6 -0
  90. package/dist/components/policy-catalog/editors/scheduling/sections/dailyLimitsSection.d.ts +6 -0
  91. package/dist/components/policy-catalog/editors/scheduling/sections/defaultTimesSection.d.ts +6 -0
  92. package/dist/components/policy-catalog/editors/scheduling/sections/formatTimeRow.d.ts +22 -0
  93. package/dist/components/policy-catalog/editors/scheduling/sections/modificationFlagsSection.d.ts +6 -0
  94. package/dist/components/policy-catalog/editors/scheduling/sections/recoveryTimesSection.d.ts +6 -0
  95. package/dist/components/policy-catalog/editors/scheduling/styles.d.ts +27 -0
  96. package/dist/components/policy-catalog/editors/scheduling/types.d.ts +65 -0
  97. package/dist/components/policy-catalog/engine/policyCatalogStore.d.ts +25 -0
  98. package/dist/components/policy-catalog/index.d.ts +22 -0
  99. package/dist/components/policy-catalog/types.d.ts +57 -0
  100. package/dist/components/policy-catalog/ui/editorShell.d.ts +11 -0
  101. package/dist/components/policy-catalog/ui/jsonEditor.d.ts +5 -0
  102. package/dist/components/policy-catalog/ui/policyCatalogLayout.d.ts +6 -0
  103. package/dist/components/policy-catalog/ui/policyCatalogPanel.d.ts +10 -0
  104. package/dist/components/policy-catalog/ui/styles.d.ts +28 -0
  105. package/dist/components/popover/tipster.d.ts +14 -0
  106. package/dist/components/print-composition-editor/printCompositionEditor.d.ts +2 -0
  107. package/dist/components/print-composition-editor/printCompositionEditorTypes.d.ts +77 -0
  108. package/dist/components/renderSchematicStructure/index.d.ts +4 -0
  109. package/dist/components/renderSchematicStructure/renderSchematicMatchUp.d.ts +26 -0
  110. package/dist/components/renderSchematicStructure/renderSchematicRound.d.ts +15 -0
  111. package/dist/components/renderSchematicStructure/renderSchematicStructure.d.ts +12 -0
  112. package/dist/components/renderStructure/isLuckyDraw.d.ts +9 -0
  113. package/dist/components/renderStructure/renderAddress.d.ts +5 -0
  114. package/dist/components/renderStructure/renderCenterInfo.d.ts +10 -0
  115. package/dist/components/renderStructure/renderContainer.d.ts +4 -0
  116. package/dist/components/renderStructure/renderFlag.d.ts +6 -0
  117. package/dist/components/renderStructure/renderFrill.d.ts +10 -0
  118. package/dist/components/renderStructure/renderGameScore.d.ts +3 -0
  119. package/dist/components/renderStructure/renderIndividual.d.ts +12 -0
  120. package/dist/components/renderStructure/renderMatchUp.d.ts +14 -0
  121. package/dist/components/renderStructure/renderParticipant.d.ts +11 -0
  122. package/dist/components/renderStructure/renderParticipantDetail.d.ts +7 -0
  123. package/dist/components/renderStructure/renderParticipantInput.d.ts +10 -0
  124. package/dist/components/renderStructure/renderPersonAttribute.d.ts +6 -0
  125. package/dist/components/renderStructure/renderRound.d.ts +17 -0
  126. package/dist/components/renderStructure/renderRoundHeader.d.ts +8 -0
  127. package/dist/components/renderStructure/renderScale.d.ts +8 -0
  128. package/dist/components/renderStructure/renderSchedule.d.ts +5 -0
  129. package/dist/components/renderStructure/renderSeeding.d.ts +6 -0
  130. package/dist/components/renderStructure/renderSide.d.ts +9 -0
  131. package/dist/components/renderStructure/renderSideScore.d.ts +16 -0
  132. package/dist/components/renderStructure/renderStatusPill.d.ts +3 -0
  133. package/dist/components/renderStructure/renderStructure.d.ts +13 -0
  134. package/dist/components/renderStructure/renderTeam.d.ts +5 -0
  135. package/dist/components/renderStructure/renderTeamLogo.d.ts +4 -0
  136. package/dist/components/renderStructure/renderTick.d.ts +3 -0
  137. package/dist/components/schedule-page/controller/schedulePageControl.d.ts +21 -0
  138. package/dist/components/schedule-page/domain/activeStrip.d.ts +72 -0
  139. package/dist/components/schedule-page/domain/matchUpCatalogProjections.d.ts +4 -0
  140. package/dist/components/schedule-page/domain/scheduleIssues.d.ts +2 -0
  141. package/dist/components/schedule-page/domain/utils.d.ts +5 -0
  142. package/dist/components/schedule-page/engine/schedulePageStore.d.ts +36 -0
  143. package/dist/components/schedule-page/index.d.ts +28 -0
  144. package/dist/components/schedule-page/types.d.ts +221 -0
  145. package/dist/components/schedule-page/ui/activeStrip.d.ts +46 -0
  146. package/dist/components/schedule-page/ui/courtGridSlot.d.ts +8 -0
  147. package/dist/components/schedule-page/ui/dateStrip.d.ts +5 -0
  148. package/dist/components/schedule-page/ui/inspectorPanel.d.ts +2 -0
  149. package/dist/components/schedule-page/ui/issuesPanel.d.ts +2 -0
  150. package/dist/components/schedule-page/ui/matchUpCard.d.ts +5 -0
  151. package/dist/components/schedule-page/ui/matchUpCatalog.d.ts +11 -0
  152. package/dist/components/schedule-page/ui/scheduleCellTypeAhead.d.ts +23 -0
  153. package/dist/components/schedule-page/ui/scheduleGridCell.d.ts +8 -0
  154. package/dist/components/schedule-page/ui/schedulePageLayout.d.ts +18 -0
  155. package/dist/components/schedule-page/ui/styles.d.ts +41 -0
  156. package/dist/components/scheduling-profile/controller/schedulingProfileControl.d.ts +14 -0
  157. package/dist/components/scheduling-profile/domain/catalogProjections.d.ts +16 -0
  158. package/dist/components/scheduling-profile/domain/dndApply.d.ts +2 -0
  159. package/dist/components/scheduling-profile/domain/issueIndex.d.ts +2 -0
  160. package/dist/components/scheduling-profile/domain/profileProjections.d.ts +6 -0
  161. package/dist/components/scheduling-profile/domain/utils.d.ts +7 -0
  162. package/dist/components/scheduling-profile/domain/validateProfile.d.ts +13 -0
  163. package/dist/components/scheduling-profile/engine/profileStore.d.ts +27 -0
  164. package/dist/components/scheduling-profile/index.d.ts +25 -0
  165. package/dist/components/scheduling-profile/types.d.ts +197 -0
  166. package/dist/components/scheduling-profile/ui/cardPopover.d.ts +11 -0
  167. package/dist/components/scheduling-profile/ui/dateStrip.d.ts +5 -0
  168. package/dist/components/scheduling-profile/ui/inspectorPanel.d.ts +2 -0
  169. package/dist/components/scheduling-profile/ui/issuesPanel.d.ts +5 -0
  170. package/dist/components/scheduling-profile/ui/roundCard.d.ts +12 -0
  171. package/dist/components/scheduling-profile/ui/roundCatalog.d.ts +8 -0
  172. package/dist/components/scheduling-profile/ui/schedulingProfileLayout.d.ts +15 -0
  173. package/dist/components/scheduling-profile/ui/styles.d.ts +46 -0
  174. package/dist/components/scheduling-profile/ui/venueBoard.d.ts +7 -0
  175. package/dist/components/scorecard/index.d.ts +2 -0
  176. package/dist/components/scorecard/renderScorecard.d.ts +26 -0
  177. package/dist/components/scoring/approaches/dialPadApproach.d.ts +2 -0
  178. package/dist/components/scoring/approaches/dialPadLogic.d.ts +12 -0
  179. package/dist/components/scoring/approaches/dynamicSetsApproach.d.ts +2 -0
  180. package/dist/components/scoring/approaches/freeScoreApproach.d.ts +2 -0
  181. package/dist/components/scoring/approaches/inlineScoringApproach.d.ts +2 -0
  182. package/dist/components/scoring/config.d.ts +28 -0
  183. package/dist/components/scoring/index.d.ts +6 -0
  184. package/dist/components/scoring/logic/dynamicSetsLogic.d.ts +124 -0
  185. package/dist/components/scoring/scoringModal.d.ts +2 -0
  186. package/dist/components/scoring/types.d.ts +60 -0
  187. package/dist/components/scoring/utils/scoreFormatters.d.ts +12 -0
  188. package/dist/components/scoring/utils/scoreValidator.d.ts +16 -0
  189. package/dist/components/scoring/utils/setExpansionLogic.d.ts +24 -0
  190. package/dist/components/temporal-grid/controller/temporalGridControl.d.ts +137 -0
  191. package/dist/components/temporal-grid/controller/viewProjections.d.ts +220 -0
  192. package/dist/components/temporal-grid/engine/viewState.d.ts +34 -0
  193. package/dist/components/temporal-grid/index.d.ts +18 -0
  194. package/dist/components/temporal-grid/timeline/CourtTimeline.d.ts +77 -0
  195. package/dist/components/temporal-grid/timeline/InteractionManager.d.ts +59 -0
  196. package/dist/components/temporal-grid/timeline/ItemRenderer.d.ts +35 -0
  197. package/dist/components/temporal-grid/timeline/RowLayout.d.ts +38 -0
  198. package/dist/components/temporal-grid/timeline/TimeAxis.d.ts +41 -0
  199. package/dist/components/temporal-grid/timeline/TimeScale.d.ts +106 -0
  200. package/dist/components/temporal-grid/timeline/types.d.ts +124 -0
  201. package/dist/components/temporal-grid/ui/blockPopover.d.ts +29 -0
  202. package/dist/components/temporal-grid/ui/courtAvailabilityModal.d.ts +29 -0
  203. package/dist/components/temporal-grid/ui/modernTimePicker.d.ts +46 -0
  204. package/dist/components/temporal-grid/ui/statsBar.d.ts +21 -0
  205. package/dist/components/temporal-grid/ui/temporalGrid.d.ts +149 -0
  206. package/dist/components/temporal-grid/ui/viewToolbar.d.ts +37 -0
  207. package/dist/components/topology-builder/controller/topologyBuilderControl.d.ts +19 -0
  208. package/dist/components/topology-builder/domain/feedRounds.d.ts +42 -0
  209. package/dist/components/topology-builder/domain/generateDrawFromTopology.d.ts +16 -0
  210. package/dist/components/topology-builder/domain/playoffProfilesCache.d.ts +16 -0
  211. package/dist/components/topology-builder/domain/previewGenerator.d.ts +9 -0
  212. package/dist/components/topology-builder/domain/templates.d.ts +2 -0
  213. package/dist/components/topology-builder/domain/topologyToDrawOptions.d.ts +6 -0
  214. package/dist/components/topology-builder/domain/topologyValidator.d.ts +8 -0
  215. package/dist/components/topology-builder/engine/topologyStore.d.ts +30 -0
  216. package/dist/components/topology-builder/index.d.ts +23 -0
  217. package/dist/components/topology-builder/types.d.ts +59 -0
  218. package/dist/components/topology-builder/ui/edgeEditor.d.ts +7 -0
  219. package/dist/components/topology-builder/ui/nodeEditor.d.ts +9 -0
  220. package/dist/components/topology-builder/ui/structureCard.d.ts +39 -0
  221. package/dist/components/topology-builder/ui/toolbar.d.ts +15 -0
  222. package/dist/components/topology-builder/ui/topologyBuilderLayout.d.ts +7 -0
  223. package/dist/components/topology-builder/ui/topologyCanvas.d.ts +10 -0
  224. package/dist/components/validators/numericRange.d.ts +1 -0
  225. package/dist/components/validators/numericValidator.d.ts +1 -0
  226. package/dist/compositions/compositions.d.ts +2 -0
  227. package/dist/compositions/lineHeights.d.ts +5 -0
  228. package/dist/compositions/resolvePublishedComposition.d.ts +12 -0
  229. package/dist/constants/matchUpFormats.d.ts +34 -0
  230. package/dist/courthive-components.css +1 -1
  231. package/dist/courthive-components.es.js +803 -626
  232. package/dist/courthive-components.umd.js +4 -4
  233. package/dist/data/componentConstants.d.ts +1 -0
  234. package/dist/data/generateEventData.d.ts +15 -0
  235. package/dist/data/generateMatchUps.d.ts +25 -0
  236. package/dist/helpers/createTypeAhead.d.ts +14 -0
  237. package/dist/helpers/drawStateManager.d.ts +91 -0
  238. package/dist/helpers/getAttr.d.ts +4 -0
  239. package/dist/helpers/typeOf.d.ts +4 -0
  240. package/dist/index.d.ts +80 -4006
  241. package/dist/styles/centerInfoStyle.d.ts +6 -0
  242. package/dist/styles/containerStyle.d.ts +1 -0
  243. package/dist/styles/flagStyle.d.ts +3 -0
  244. package/dist/styles/getChevronStyle.d.ts +4 -0
  245. package/dist/styles/getLinkStyle.d.ts +25 -0
  246. package/dist/styles/getMatchUpStyle.d.ts +4 -0
  247. package/dist/styles/getSelectedMatchUpStyle.d.ts +1 -0
  248. package/dist/styles/groupNameStyle.d.ts +1 -0
  249. package/dist/styles/groupSeparatorStyle.d.ts +4 -0
  250. package/dist/styles/matchUpContainerStyle.d.ts +1 -0
  251. package/dist/styles/participantDetailStyle.d.ts +1 -0
  252. package/dist/styles/participantStyle.d.ts +17 -0
  253. package/dist/styles/pillStyle.d.ts +3 -0
  254. package/dist/styles/resultStyles.d.ts +4 -0
  255. package/dist/styles/roundContainerStyle.d.ts +1 -0
  256. package/dist/styles/roundHeaderStyle.d.ts +1 -0
  257. package/dist/styles/roundStyle.d.ts +3 -0
  258. package/dist/styles/scaleStyle.d.ts +3 -0
  259. package/dist/styles/schedulingStyle.d.ts +1 -0
  260. package/dist/styles/scoreStyles.d.ts +9 -0
  261. package/dist/styles/scoreWrapperStyle.d.ts +4 -0
  262. package/dist/styles/seedStyle.d.ts +1 -0
  263. package/dist/styles/sideStyles.d.ts +3 -0
  264. package/dist/styles/structureStyle.d.ts +1 -0
  265. package/dist/styles/teamLogoStyle.d.ts +1 -0
  266. package/dist/styles/themes/australianTheme.d.ts +1 -0
  267. package/dist/styles/themes/basicCardTheme.d.ts +1 -0
  268. package/dist/styles/themes/basicTheme.d.ts +1 -0
  269. package/dist/styles/themes/createTheme.d.ts +5 -0
  270. package/dist/styles/themes/frenchTheme.d.ts +1 -0
  271. package/dist/styles/themes/index.d.ts +7 -0
  272. package/dist/styles/themes/itfTheme.d.ts +1 -0
  273. package/dist/styles/themes/usOpenTheme.d.ts +1 -0
  274. package/dist/styles/themes/wimbledonTheme.d.ts +1 -0
  275. package/dist/tools/freeScore/freeScore.d.ts +79 -0
  276. package/dist/types.d.ts +321 -0
  277. package/dist/utilities/isElement.d.ts +1 -0
  278. package/dist/validators/dateValidator.d.ts +1 -0
  279. package/dist/validators/emailValidator.d.ts +1 -0
  280. package/dist/validators/index.d.ts +7 -0
  281. package/dist/validators/nameValidator.d.ts +1 -0
  282. package/dist/validators/numericRange.d.ts +1 -0
  283. package/dist/validators/numericValidator.d.ts +1 -0
  284. package/dist/validators/passwordValidator.d.ts +1 -0
  285. package/dist/validators/wordValidator.d.ts +1 -0
  286. package/dist/version.d.ts +1 -0
  287. package/package.json +5 -5
@@ -0,0 +1,6 @@
1
+ export declare function getInfoStyle({ variant }: {
2
+ variant?: number | string;
3
+ }): string;
4
+ export declare const columnStyle: () => string;
5
+ export declare const entryStyle: () => string;
6
+ export declare const statusStyle: () => string;
@@ -0,0 +1 @@
1
+ export declare const containerStyle: () => string;
@@ -0,0 +1,3 @@
1
+ export declare const flagStyle: (opts?: {
2
+ variant?: string;
3
+ }) => string;
@@ -0,0 +1,4 @@
1
+ export declare function getChevronStyle({ winnerChevron, isDoubles }: {
2
+ winnerChevron?: boolean;
3
+ isDoubles?: boolean;
4
+ }): string;
@@ -0,0 +1,25 @@
1
+ import { Composition } from '../types';
2
+ /**
3
+ * Computes connector line configuration and returns a two-call API
4
+ * that matches the previous Stitches pattern.
5
+ *
6
+ * Usage:
7
+ * const linkResult = getLinkStyle({ composition, isDoubles, roundFactor })({ isFirstRound, link });
8
+ * element.className = linkResult.className;
9
+ * linkResult.applyStyles(element); // sets CSS custom properties for dynamic dimensions
10
+ */
11
+ export declare function getLinkStyle({ composition, isDoubles, roundFactor }: {
12
+ composition?: Composition;
13
+ isDoubles?: boolean;
14
+ roundFactor?: number;
15
+ }): (opts: {
16
+ isFirstRound?: boolean;
17
+ link?: string;
18
+ noProgression?: boolean;
19
+ }) => {
20
+ className: string;
21
+ /** Apply dynamic connector dimensions as CSS custom properties on the element */
22
+ applyStyles(element: HTMLElement): void;
23
+ /** Legacy: return className as string for backward-compat (styles won't include dynamic dimensions) */
24
+ toString(): string;
25
+ };
@@ -0,0 +1,4 @@
1
+ import { Configuration } from '../types';
2
+ export declare function getMatchUpStyle({ configuration }: {
3
+ configuration?: Configuration;
4
+ }): string;
@@ -0,0 +1 @@
1
+ export declare function getSelectedMatchUpStyle(): string;
@@ -0,0 +1 @@
1
+ export declare const groupNameStyle: () => string;
@@ -0,0 +1,4 @@
1
+ export declare const groupSeparatorStyle: (opts?: {
2
+ variant?: number | string;
3
+ roundOrder?: string;
4
+ }) => string;
@@ -0,0 +1 @@
1
+ export declare const matchUpContainerStyle: () => string;
@@ -0,0 +1 @@
1
+ export declare const participantDetailStyle: () => string;
@@ -0,0 +1,17 @@
1
+ export declare function getPlacholderStyle({ variant }: {
2
+ variant?: string;
3
+ }): string;
4
+ export declare const participantStyle: (_opts?: {
5
+ variant?: string;
6
+ }) => string;
7
+ export declare const participantNameStyle: (opts?: {
8
+ variant?: string;
9
+ }) => string;
10
+ export declare const participantTypeStyle: (opts?: {
11
+ variant?: string;
12
+ }) => string;
13
+ export declare function getParticipantContainerStyle({ drawPosition: _drawPosition, sideNumber }: {
14
+ drawPosition?: number | string;
15
+ sideNumber?: number;
16
+ }): string;
17
+ export declare function getDrawPositionData(drawPosition?: number | string): string | undefined;
@@ -0,0 +1,3 @@
1
+ export declare const pillStyle: (opts?: {
2
+ variant?: string;
3
+ }) => string;
@@ -0,0 +1,4 @@
1
+ export declare const resultsItemStyle: (opts?: {
2
+ variant?: string;
3
+ }) => string;
4
+ export declare const resultsInfoStyle: () => string;
@@ -0,0 +1 @@
1
+ export declare const roundContainerStyle: () => string;
@@ -0,0 +1 @@
1
+ export declare const roundHeaderStyle: () => string;
@@ -0,0 +1,3 @@
1
+ export declare const roundStyle: (opts?: {
2
+ variant?: string;
3
+ }) => string;
@@ -0,0 +1,3 @@
1
+ export declare const scaleStyle: (opts?: {
2
+ color?: string;
3
+ }) => string;
@@ -0,0 +1 @@
1
+ export declare const schedulingStyle: () => string;
@@ -0,0 +1,9 @@
1
+ export declare const tieBreakStyle: () => string;
2
+ export declare const gameScoreStyle: (opts?: {
3
+ variant?: string;
4
+ }) => string;
5
+ export declare const gameWrapperStyle: () => string;
6
+ export declare const pointScoreStyle: (opts?: {
7
+ inverted?: boolean;
8
+ position?: "leading" | "trailing";
9
+ }) => string;
@@ -0,0 +1,4 @@
1
+ export declare const scoreWrapperStyle: (_participantHeight?: number) => (opts?: {
2
+ sideNumber?: number | string;
3
+ fontSize?: string;
4
+ }) => string;
@@ -0,0 +1 @@
1
+ export declare const seedStyle: () => string;
@@ -0,0 +1,3 @@
1
+ export declare const sideContainerStyle: () => string;
2
+ export declare const sideRowStyle: () => string;
3
+ export declare const tickStyles: () => string;
@@ -0,0 +1 @@
1
+ export declare const structureStyle: () => string;
@@ -0,0 +1 @@
1
+ export declare const teamLogoStyle: () => string;
@@ -0,0 +1 @@
1
+ export declare const australianTheme: string;
@@ -0,0 +1 @@
1
+ export declare const basicCardTheme: string;
@@ -0,0 +1 @@
1
+ export declare const basicTheme: string;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Theme system — plain CSS class names.
3
+ * Replaces Stitches createTheme(). Theme classes are defined in themes.css.
4
+ */
5
+ export declare function createTheme(name: string, _overrides: Record<string, any>): string;
@@ -0,0 +1 @@
1
+ export declare const frenchTheme: string;
@@ -0,0 +1,7 @@
1
+ export { australianTheme } from './australianTheme';
2
+ export { basicCardTheme } from './basicCardTheme';
3
+ export { wimbledonTheme } from './wimbledonTheme';
4
+ export { frenchTheme } from './frenchTheme';
5
+ export { usOpenTheme } from './usOpenTheme';
6
+ export { basicTheme } from './basicTheme';
7
+ export { itfTheme } from './itfTheme';
@@ -0,0 +1 @@
1
+ export declare const itfTheme: string;
@@ -0,0 +1 @@
1
+ export declare const usOpenTheme: string;
@@ -0,0 +1 @@
1
+ export declare const wimbledonTheme: string;
@@ -0,0 +1,79 @@
1
+ /**
2
+ * freeScore Parser
3
+ *
4
+ * Parses free-form score input using matchUpFormat context for intelligent interpretation.
5
+ * Character-by-character state machine that handles ambiguous digit sequences.
6
+ *
7
+ * Goals:
8
+ * - Accept any reasonable score notation (spaces, dashes, brackets optional)
9
+ * - Use matchUpFormat to disambiguate (e.g., "123" → "12-3" vs "1-23" based on setTo)
10
+ * - Provide confidence scores and suggestions for ambiguous inputs
11
+ * - Give helpful error messages with position context
12
+ * - Support incomplete scores (user typing in real-time)
13
+ */
14
+ type ParsedFormat = any;
15
+ export interface ParsedSet {
16
+ side1Score?: number;
17
+ side2Score?: number;
18
+ side1TiebreakScore?: number;
19
+ side2TiebreakScore?: number;
20
+ winningSide?: number;
21
+ setNumber: number;
22
+ }
23
+ export interface ParserState {
24
+ input: string;
25
+ position: number;
26
+ setIndex: number;
27
+ currentSide1Buffer: string;
28
+ currentSide2Buffer: string;
29
+ currentTiebreakSide1Buffer: string;
30
+ currentTiebreakSide2Buffer: string;
31
+ sets: ParsedSet[];
32
+ parsedFormat: ParsedFormat;
33
+ state: TokenizerState;
34
+ inTiebreak: boolean;
35
+ expectingTiebreakOnly: boolean;
36
+ irregularEnding?: string;
37
+ irregularEndingPosition?: number;
38
+ isValid: boolean;
39
+ errors: ParseError[];
40
+ warnings: string[];
41
+ confidence: number;
42
+ ambiguities: string[];
43
+ suggestions: string[];
44
+ }
45
+ export declare enum TokenizerState {
46
+ START = "START",
47
+ PARSING_SIDE1 = "PARSING_SIDE1",
48
+ PARSING_SIDE2 = "PARSING_SIDE2",
49
+ PARSING_TIEBREAK_SIDE1 = "PARSING_TIEBREAK_SIDE1",
50
+ PARSING_TIEBREAK_SIDE2 = "PARSING_TIEBREAK_SIDE2",
51
+ SET_COMPLETE = "SET_COMPLETE",
52
+ MATCH_COMPLETE = "MATCH_COMPLETE",
53
+ ERROR = "ERROR"
54
+ }
55
+ export interface ParseError {
56
+ position: number;
57
+ message: string;
58
+ expected?: string;
59
+ got?: string;
60
+ context?: string;
61
+ }
62
+ export interface ParseResult {
63
+ valid: boolean;
64
+ formattedScore: string;
65
+ sets: ParsedSet[];
66
+ confidence: number;
67
+ errors: ParseError[];
68
+ warnings: string[];
69
+ ambiguities: string[];
70
+ suggestions: string[];
71
+ incomplete: boolean;
72
+ matchComplete: boolean;
73
+ matchUpStatus?: string;
74
+ }
75
+ /**
76
+ * Parse free-form score string using matchUpFormat context
77
+ */
78
+ export declare function parseScore(input: string, matchUpFormat: string | ParsedFormat): ParseResult;
79
+ export {};
@@ -0,0 +1,321 @@
1
+ export interface MatchUp {
2
+ matchUpId: string;
3
+ matchUpType?: 'SINGLES' | 'DOUBLES';
4
+ matchUpFormat?: string;
5
+ matchUpStatus?: string;
6
+ winningSide?: number;
7
+ roundNumber?: number;
8
+ roundPosition?: number;
9
+ finishingRound?: number;
10
+ roundFactor?: number;
11
+ stage?: string;
12
+ isRoundRobin?: boolean;
13
+ preFeedRound?: boolean;
14
+ collectionId?: string;
15
+ drawPositions?: number[];
16
+ structureName?: string;
17
+ structureId: string;
18
+ drawId?: string;
19
+ containerStructureId?: string;
20
+ tournamentId?: string;
21
+ roundOrder?: number;
22
+ venueId?: string;
23
+ courtId?: string;
24
+ sides?: Side[];
25
+ score?: Score;
26
+ schedule?: Schedule;
27
+ readyToScore?: boolean;
28
+ [key: string]: any;
29
+ }
30
+ export interface Side {
31
+ sideNumber: number;
32
+ drawPosition?: number;
33
+ participant?: Participant;
34
+ participantFed?: string;
35
+ sourceMatchUp?: MatchUp;
36
+ qualifier?: boolean;
37
+ bye?: boolean;
38
+ lineUp?: LineUp[];
39
+ score?: SideScore;
40
+ seedNumber?: number;
41
+ seedValue?: string | number;
42
+ }
43
+ export interface Participant {
44
+ participantId: string;
45
+ participantName?: string;
46
+ participantOtherName?: string;
47
+ participantType?: 'INDIVIDUAL' | 'PAIR' | 'TEAM';
48
+ individualParticipants?: IndividualParticipant[];
49
+ entryStatus?: string;
50
+ luckyAdvancement?: boolean;
51
+ person?: Person;
52
+ useOtherName?: boolean;
53
+ }
54
+ export interface ScaleItem {
55
+ scaleName?: string;
56
+ scaleValue?: any;
57
+ [key: string]: any;
58
+ }
59
+ export interface ScalesByType {
60
+ SINGLES?: ScaleItem[];
61
+ DOUBLES?: ScaleItem[];
62
+ }
63
+ export interface IndividualParticipant {
64
+ participantOtherName?: string;
65
+ participantId: string;
66
+ participantName?: string;
67
+ person?: Person;
68
+ teams?: Participant[];
69
+ rankings?: ScalesByType;
70
+ ratings?: ScalesByType;
71
+ useOtherName?: boolean;
72
+ }
73
+ export interface Person {
74
+ personId?: string;
75
+ standardFamilyName?: string;
76
+ standardGivenName?: string;
77
+ nationalityCode?: string;
78
+ addresses?: Address[];
79
+ rankings?: Ranking[];
80
+ ratings?: Rating[];
81
+ sex?: 'MALE' | 'FEMALE' | 'MIXED';
82
+ [key: string]: any;
83
+ }
84
+ export interface Address {
85
+ addressType?: string;
86
+ city?: string;
87
+ state?: string;
88
+ country?: string;
89
+ countryCode?: string;
90
+ postalCode?: string;
91
+ }
92
+ export interface Ranking {
93
+ rankingType?: string;
94
+ ranking?: number;
95
+ rankingDate?: string;
96
+ }
97
+ export interface Rating {
98
+ ratingType?: string;
99
+ rating?: number;
100
+ ratingDate?: string;
101
+ [key: string]: any;
102
+ }
103
+ export interface LineUp {
104
+ participantId?: string;
105
+ }
106
+ export interface Score {
107
+ scoreStringSide1?: string;
108
+ scoreStringSide2?: string;
109
+ sets?: SetScore[];
110
+ }
111
+ export interface SetScore {
112
+ setNumber: number;
113
+ side1Score?: number;
114
+ side2Score?: number;
115
+ side1TiebreakScore?: number;
116
+ side2TiebreakScore?: number;
117
+ side1PointScore?: number | string;
118
+ side2PointScore?: number | string;
119
+ winningSide?: number;
120
+ }
121
+ export interface SideScore {
122
+ scoreStringSide?: string;
123
+ games?: number;
124
+ points?: number;
125
+ }
126
+ export interface Schedule {
127
+ scheduledDate?: string;
128
+ scheduledTime?: string;
129
+ startTime?: string;
130
+ endTime?: string;
131
+ courtId?: string;
132
+ courtName?: string;
133
+ venueId?: string;
134
+ venueAbbreviation?: string;
135
+ }
136
+ export interface Configuration {
137
+ flags?: boolean;
138
+ flag?: boolean;
139
+ teamLogo?: boolean;
140
+ roundHeader?: boolean;
141
+ winnerChevron?: boolean;
142
+ centerInfo?: boolean;
143
+ resultsInfo?: boolean;
144
+ scoreBox?: boolean;
145
+ gameScoreOnly?: boolean;
146
+ gameScore?: {
147
+ position?: 'leading' | 'trailing';
148
+ inverted?: boolean;
149
+ };
150
+ drawPositions?: boolean;
151
+ allDrawPositions?: boolean;
152
+ drawPositionColor?: string;
153
+ bracketedSeeds?: boolean | 'square';
154
+ scheduleInfo?: boolean;
155
+ matchUpFooter?: boolean;
156
+ showAddress?: boolean;
157
+ seedingElement?: 'sup' | 'span';
158
+ matchUpHover?: boolean | string;
159
+ participantDetail?: string;
160
+ inlineAssignment?: boolean;
161
+ participantProvider?: () => Participant[];
162
+ assignmentInputFontSize?: string;
163
+ persistInputFields?: boolean;
164
+ hasQualifying?: boolean;
165
+ inlineScoring?: {
166
+ mode: 'points' | 'games';
167
+ showFooter?: boolean;
168
+ showSituation?: boolean;
169
+ canUndo?: boolean;
170
+ canRedo?: boolean;
171
+ isComplete?: boolean;
172
+ isDirty?: boolean;
173
+ situationText?: string;
174
+ };
175
+ useParticipantName?: boolean;
176
+ genderColor?: boolean | string;
177
+ winnerColor?: boolean | string;
178
+ placeHolders?: {
179
+ tbd?: string;
180
+ bye?: string;
181
+ qualifier?: string;
182
+ };
183
+ scaleAttributes?: {
184
+ scaleColor?: string;
185
+ scaleType?: string;
186
+ scaleName?: string;
187
+ accessor?: string;
188
+ eventType?: string;
189
+ fallback?: boolean;
190
+ scalePosition?: 'left' | 'right';
191
+ rawValue?: any;
192
+ };
193
+ clickAway?: boolean;
194
+ backdrop?: boolean;
195
+ maxWidth?: number;
196
+ fontSize?: string;
197
+ padding?: string;
198
+ className?: string;
199
+ style?: Partial<CSSStyleDeclaration>;
200
+ info?: string;
201
+ menu?: {
202
+ menuItems: Array<{
203
+ label: string;
204
+ onClick: () => void;
205
+ active?: boolean;
206
+ }>;
207
+ };
208
+ title?: {
209
+ padding?: string;
210
+ };
211
+ content?: {
212
+ padding?: string;
213
+ };
214
+ footer?: {
215
+ padding?: string;
216
+ className?: string;
217
+ };
218
+ dictionary?: {
219
+ close?: string;
220
+ };
221
+ }
222
+ export interface Composition {
223
+ theme: string;
224
+ configuration?: Configuration;
225
+ }
226
+ export interface EventHandlers {
227
+ matchUpClick?: (params: {
228
+ pointerEvent: MouseEvent;
229
+ matchUp: MatchUp;
230
+ }) => void;
231
+ participantClick?: (params: {
232
+ individualParticipant: IndividualParticipant;
233
+ matchUp?: MatchUp;
234
+ pointerEvent: MouseEvent;
235
+ participant?: Participant;
236
+ side?: Side;
237
+ }) => void;
238
+ assignParticipant?: (params: {
239
+ matchUp: MatchUp;
240
+ side: Side;
241
+ sideNumber: number;
242
+ participant: Participant;
243
+ pointerEvent?: Event;
244
+ }) => void;
245
+ assignBye?: (params: {
246
+ matchUp: MatchUp;
247
+ side: Side;
248
+ sideNumber: number;
249
+ pointerEvent?: Event;
250
+ }) => void;
251
+ assignQualifier?: (params: {
252
+ matchUp: MatchUp;
253
+ side: Side;
254
+ sideNumber: number;
255
+ pointerEvent?: Event;
256
+ }) => void;
257
+ removeAssignment?: (params: {
258
+ matchUp: MatchUp;
259
+ side: Side;
260
+ sideNumber: number;
261
+ pointerEvent?: Event;
262
+ }) => void;
263
+ scoreClick?: (params: {
264
+ pointerEvent: MouseEvent;
265
+ matchUp: MatchUp;
266
+ }) => void;
267
+ pillClick?: (params: {
268
+ pointerEvent: MouseEvent;
269
+ matchUp: MatchUp;
270
+ sideNumber: number;
271
+ }) => void;
272
+ scoreIncrement?: (params: {
273
+ matchUpId: string;
274
+ sideNumber: number;
275
+ scoreType: 'point' | 'game' | 'set';
276
+ }) => void;
277
+ inlineUndo?: (params: {
278
+ matchUpId: string;
279
+ }) => void;
280
+ inlineRedo?: (params: {
281
+ matchUpId: string;
282
+ }) => void;
283
+ inlineClear?: (params: {
284
+ matchUpId: string;
285
+ }) => void;
286
+ inlineSubmit?: (params: {
287
+ matchUpId: string;
288
+ }) => void;
289
+ [key: string]: any;
290
+ }
291
+ export interface ModalButton {
292
+ label?: string;
293
+ text?: string;
294
+ id?: string;
295
+ intent?: string;
296
+ close?: boolean | (() => void);
297
+ disabled?: boolean;
298
+ hide?: boolean;
299
+ onClick?: (params: {
300
+ e: MouseEvent;
301
+ content?: any;
302
+ }) => void;
303
+ footer?: {
304
+ className?: string;
305
+ };
306
+ }
307
+ export interface ModalConfig extends Configuration {
308
+ onClose?: (params: {
309
+ content?: any;
310
+ }) => void;
311
+ }
312
+ export interface ModalParams {
313
+ title?: string;
314
+ content?: string | HTMLElement | ((container: HTMLElement) => any);
315
+ buttons?: ModalButton[];
316
+ footer?: string | HTMLElement;
317
+ config?: ModalConfig;
318
+ onClose?: (params: {
319
+ content?: any;
320
+ }) => void;
321
+ }
@@ -0,0 +1 @@
1
+ export declare function isElement(element: any): element is Element;
@@ -0,0 +1 @@
1
+ export declare function dateValidator(value: any): boolean;
@@ -0,0 +1 @@
1
+ export declare const emailValidator: (value: string) => RegExpMatchArray | null;
@@ -0,0 +1,7 @@
1
+ export { nameValidator } from './nameValidator';
2
+ export { numericValidator } from './numericValidator';
3
+ export { numericRange } from './numericRange';
4
+ export { passwordValidator } from './passwordValidator';
5
+ export { dateValidator } from './dateValidator';
6
+ export { wordValidator } from './wordValidator';
7
+ export { emailValidator } from './emailValidator';
@@ -0,0 +1 @@
1
+ export declare const nameValidator: (minLength: number, maxLength?: number) => (value: string) => boolean;
@@ -0,0 +1 @@
1
+ export declare const numericRange: (min: number, max: number) => (value: string | number) => boolean;
@@ -0,0 +1 @@
1
+ export declare function numericValidator(value: string | number): boolean;
@@ -0,0 +1 @@
1
+ export declare const passwordValidator: (value: any) => boolean;
@@ -0,0 +1 @@
1
+ export declare const wordValidator: (minWords: number, maxWords?: number) => (value: string) => boolean;
@@ -0,0 +1 @@
1
+ export declare function courthiveComponentsVersion(): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "courthive-components",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "engines": {
5
5
  "node": ">=22"
6
6
  },
@@ -67,8 +67,8 @@
67
67
  },
68
68
  "devDependencies": {
69
69
  "@chromatic-com/storybook": "^5.0.0",
70
- "@commitlint/cli": "20.5.2",
71
- "@commitlint/config-conventional": "20.5.0",
70
+ "@commitlint/cli": "20.5.3",
71
+ "@commitlint/config-conventional": "20.5.3",
72
72
  "@eslint/js": "^10.0.1",
73
73
  "@fortawesome/fontawesome-free": "^7.2.0",
74
74
  "@storybook/addon-docs": "^10.2.17",
@@ -80,7 +80,7 @@
80
80
  "@typescript-eslint/parser": "8.59.1",
81
81
  "@vitest/browser-playwright": "^4.0.16",
82
82
  "@vitest/coverage-v8": "^4.0.16",
83
- "eslint": "10.2.1",
83
+ "eslint": "10.3.0",
84
84
  "eslint-plugin-sonarjs": "4.0.3",
85
85
  "eslint-plugin-storybook": "^10.2.17",
86
86
  "gh-pages": "6.3.0",
@@ -95,7 +95,7 @@
95
95
  "tabulator-tables": "6.4.0",
96
96
  "typescript": "^6.0.2",
97
97
  "vite": "8.0.10",
98
- "vite-plugin-dts": "^4.5.4",
98
+ "vite-plugin-dts": "^5.0.0",
99
99
  "vitest": "^4.0.16"
100
100
  },
101
101
  "dependencies": {