@ethlete/components 1.0.0-next.69 → 1.0.0-next.70

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 (239) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/design/button.ts +57 -0
  3. package/design/form-field.ts +210 -0
  4. package/design/select.ts +110 -0
  5. package/fesm2022/ethlete-components-testing.mjs +3 -1
  6. package/fesm2022/ethlete-components-testing.mjs.map +1 -1
  7. package/fesm2022/ethlete-components.mjs +823 -105
  8. package/fesm2022/ethlete-components.mjs.map +1 -1
  9. package/package.json +20 -14
  10. package/src/lib/accordion/accordion-group.component.css +12 -0
  11. package/src/lib/accordion/accordion.component.css +185 -0
  12. package/src/lib/avatar/avatar-group.component.css +31 -0
  13. package/src/lib/avatar/avatar.component.css +75 -0
  14. package/src/lib/badge/badge.component.css +111 -0
  15. package/src/lib/banner/banner.component.css +94 -0
  16. package/src/lib/bracket/bracket-default-continue.component.css +29 -0
  17. package/src/lib/bracket/bracket-default-final-match.component.css +76 -0
  18. package/src/lib/bracket/bracket-default-match.component.css +21 -0
  19. package/src/lib/bracket/bracket-default-round-header.component.css +36 -0
  20. package/src/lib/bracket/bracket-participants.component.css +13 -0
  21. package/src/lib/bracket/bracket-pick-card.component.css +232 -0
  22. package/src/lib/bracket/bracket-rounds-list.component.css +75 -0
  23. package/src/lib/bracket/bracket-skeleton.component.css +55 -0
  24. package/src/lib/bracket/bracket.component.css +102 -0
  25. package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +10 -0
  26. package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
  27. package/src/lib/breadcrumb/breadcrumb.component.css +120 -0
  28. package/src/lib/button/button-properties-styles.component.css +143 -0
  29. package/src/lib/button/button.component.css +196 -0
  30. package/src/lib/button/fab.component.css +252 -0
  31. package/src/lib/button/icon-button.component.css +143 -0
  32. package/src/lib/button/split-button.component.css +77 -0
  33. package/src/lib/button/text-button.component.css +140 -0
  34. package/src/lib/button/window-control-button.component.css +158 -0
  35. package/src/lib/calendar/calendar-coarse-grid-styles.component.css +29 -0
  36. package/src/lib/calendar/calendar-comparison-band-styles.component.css +36 -0
  37. package/src/lib/calendar/calendar-week-numbers-styles.component.css +32 -0
  38. package/src/lib/calendar/calendar.component.css +366 -0
  39. package/src/lib/card/card.component.css +39 -0
  40. package/src/lib/carousel/carousel-autoplay-styles.component.css +166 -0
  41. package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
  42. package/src/lib/carousel/carousel.component.css +142 -0
  43. package/src/lib/chart/bar-chart.component.css +176 -0
  44. package/src/lib/chart/chart-axis.component.css +40 -0
  45. package/src/lib/chart/chart-grid.component.css +6 -0
  46. package/src/lib/chart/chart-legend.component.css +46 -0
  47. package/src/lib/chart/chart-tooltip.component.css +34 -0
  48. package/src/lib/chart/line-chart-tooltip.component.css +51 -0
  49. package/src/lib/chart/line-chart.component.css +234 -0
  50. package/src/lib/chart/pie-chart.component.css +176 -0
  51. package/src/lib/chart/sankey-chart.component.css +221 -0
  52. package/src/lib/chip/chip.component.css +155 -0
  53. package/src/lib/command-palette/command-palette-item.component.css +94 -0
  54. package/src/lib/command-palette/command-palette.component.css +100 -0
  55. package/src/lib/description-list/description-list.component.css +77 -0
  56. package/src/lib/divider/divider.component.css +36 -0
  57. package/src/lib/empty-state/empty-state.component.css +73 -0
  58. package/src/lib/floating-action/floating-action-styles.component.css +78 -0
  59. package/src/lib/focus-ring/focus-ring-styles.component.css +13 -0
  60. package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
  61. package/src/lib/forms/cascader/cascader-panel.component.css +386 -0
  62. package/src/lib/forms/cascader/cascader-sheet-styles.component.css +241 -0
  63. package/src/lib/forms/cascader/cascader.component.css +52 -0
  64. package/src/lib/forms/checkbox/checkbox.component.css +247 -0
  65. package/src/lib/forms/choice-field/choice-field-card-styles.component.css +59 -0
  66. package/src/lib/forms/choice-field/choice-field.component.css +186 -0
  67. package/src/lib/forms/color-input/color-input.component.css +108 -0
  68. package/src/lib/forms/color-input/color-picker-panel.component.css +349 -0
  69. package/src/lib/forms/date-time/date-input/date-input.component.css +35 -0
  70. package/src/lib/forms/date-time/date-picker-panel.component.css +115 -0
  71. package/src/lib/forms/date-time/date-range-input/date-range-input.component.css +16 -0
  72. package/src/lib/forms/date-time/date-range-presets.component.css +60 -0
  73. package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +151 -0
  74. package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +121 -0
  75. package/src/lib/forms/date-time/duration-input/duration-input.component.css +88 -0
  76. package/src/lib/forms/date-time/range-input-shell-styles.component.css +55 -0
  77. package/src/lib/forms/date-time/time-input/time-input.component.css +35 -0
  78. package/src/lib/forms/date-time/time-range-input/time-range-input.component.css +16 -0
  79. package/src/lib/forms/dropzone/dropzone-item.component.css +51 -0
  80. package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +67 -0
  81. package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
  82. package/src/lib/forms/dropzone/dropzone.component.css +267 -0
  83. package/src/lib/forms/form-field/counter.component.css +25 -0
  84. package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +116 -0
  85. package/src/lib/forms/form-field/form-field-rich-text-styles.component.css +31 -0
  86. package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +66 -0
  87. package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +312 -0
  88. package/src/lib/forms/form-field/form-field-textarea-styles.component.css +32 -0
  89. package/src/lib/forms/form-field/form-field.component.css +328 -0
  90. package/src/lib/forms/form-field/form-support-styles.component.css +102 -0
  91. package/src/lib/forms/form-field/headless/label.directive.css +25 -0
  92. package/src/lib/forms/form-field/hint.component.css +20 -0
  93. package/src/lib/forms/input/input.component.css +49 -0
  94. package/src/lib/forms/input/number-input.component.css +128 -0
  95. package/src/lib/forms/input/password-input.component.css +103 -0
  96. package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
  97. package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +104 -0
  98. package/src/lib/forms/otp-input/otp-input.component.css +194 -0
  99. package/src/lib/forms/phone-input/phone-input.component.css +126 -0
  100. package/src/lib/forms/rating/rating.component.css +197 -0
  101. package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
  102. package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +90 -0
  103. package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +172 -0
  104. package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +149 -0
  105. package/src/lib/forms/rich-text-editor/rich-text-editor-token-palette.component.css +18 -0
  106. package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +199 -0
  107. package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +175 -0
  108. package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
  109. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
  110. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
  111. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
  112. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
  113. package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
  114. package/src/lib/forms/select/select-all-option.component.css +14 -0
  115. package/src/lib/forms/select/select-extras-styles.component.css +143 -0
  116. package/src/lib/forms/select/select-option-group.component.css +35 -0
  117. package/src/lib/forms/select/select-option-styles.component.css +137 -0
  118. package/src/lib/forms/select/select-panel.component.css +112 -0
  119. package/src/lib/forms/select/select.component.css +180 -0
  120. package/src/lib/forms/selection-card-styles.component.css +136 -0
  121. package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +89 -0
  122. package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +142 -0
  123. package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +153 -0
  124. package/src/lib/forms/selection-list/radio-group/radio-group.component.css +134 -0
  125. package/src/lib/forms/selection-list/radio-group/radio.component.css +137 -0
  126. package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +149 -0
  127. package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +180 -0
  128. package/src/lib/forms/slider/range-slider.component.css +348 -0
  129. package/src/lib/forms/slider/slider.component.css +342 -0
  130. package/src/lib/forms/switch/switch.component.css +187 -0
  131. package/src/lib/forms/tag-input/tag-input.component.css +54 -0
  132. package/src/lib/forms/textarea/textarea-autosize-styles.component.css +17 -0
  133. package/src/lib/forms/textarea/textarea.component.css +40 -0
  134. package/src/lib/grid/grid-debug.component.css +130 -0
  135. package/src/lib/grid/grid-item-default-actions.component.css +11 -0
  136. package/src/lib/grid/grid-item.component.css +172 -0
  137. package/src/lib/grid/grid.component.css +56 -0
  138. package/src/lib/icon/headless/icon-styles.component.css +7 -0
  139. package/src/lib/kbd/kbd.component.css +62 -0
  140. package/src/lib/loader/brand-loader/brand-loader.component.css +130 -0
  141. package/src/lib/loader/progress-bar/progress-bar.component.css +176 -0
  142. package/src/lib/loader/spinner/spinner.component.css +216 -0
  143. package/src/lib/masonry/masonry-styles.component.css +84 -0
  144. package/src/lib/match/match-card.component.css +441 -0
  145. package/src/lib/match/match-participant.component.css +137 -0
  146. package/src/lib/match/match-score.component.css +74 -0
  147. package/src/lib/menu/menu-group-label.component.css +12 -0
  148. package/src/lib/menu/menu-item-shortcut.component.css +10 -0
  149. package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
  150. package/src/lib/menu/menu-item.component.css +32 -0
  151. package/src/lib/menu/menu-search-styles.component.css +56 -0
  152. package/src/lib/menu/menu-selection-item.component.css +88 -0
  153. package/src/lib/menu/menu-separator.component.css +9 -0
  154. package/src/lib/menu/menu.component.css +296 -0
  155. package/src/lib/notification/notification-stack.component.css +114 -0
  156. package/src/lib/notification/notification.component.css +271 -0
  157. package/src/lib/overlay/alert-dialog/alert-dialog.component.css +45 -0
  158. package/src/lib/overlay/floating-panel-styles.component.css +71 -0
  159. package/src/lib/overlay/floating-tip-styles.component.css +78 -0
  160. package/src/lib/overlay/overlay-container.component.css +167 -0
  161. package/src/lib/overlay/overlay-main-styles.component.css +105 -0
  162. package/src/lib/overlay/overlay-template-host.component.css +7 -0
  163. package/src/lib/overlay/routing/overlay-route-header-template-outlet.component.css +36 -0
  164. package/src/lib/overlay/routing/overlay-router-outlet.component.css +207 -0
  165. package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
  166. package/src/lib/overlay/sidebar/overlay-sidebar.component.css +16 -0
  167. package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +51 -0
  168. package/src/lib/overlay/strategies/dialog-styles.component.css +50 -0
  169. package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +83 -0
  170. package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
  171. package/src/lib/overlay/strategies/overlay-origin-clone.component.css +63 -0
  172. package/src/lib/overlay/strategies/sheet-styles.component.css +143 -0
  173. package/src/lib/pagination/page-size-select.component.css +102 -0
  174. package/src/lib/pagination/pagination.component.css +192 -0
  175. package/src/lib/picture/picture.component.css +66 -0
  176. package/src/lib/progress-steps/progress-step.component.css +187 -0
  177. package/src/lib/progress-steps/progress-steps.component.css +26 -0
  178. package/src/lib/query-error/query-error.component.css +21 -0
  179. package/src/lib/scheduler/scheduler-agenda-view.component.css +97 -0
  180. package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +56 -0
  181. package/src/lib/scheduler/scheduler-appointment-styles.component.css +111 -0
  182. package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
  183. package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
  184. package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
  185. package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
  186. package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
  187. package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
  188. package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
  189. package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
  190. package/src/lib/scheduler/scheduler-month-view.component.css +143 -0
  191. package/src/lib/scheduler/scheduler-time-grid-view.component.css +260 -0
  192. package/src/lib/scheduler/scheduler.component.css +87 -0
  193. package/src/lib/scrollable/headless/scrollable-buttons.component.css +122 -0
  194. package/src/lib/scrollable/headless/scrollable-footer.css +25 -0
  195. package/src/lib/scrollable/headless/scrollable-masks.component.css +112 -0
  196. package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
  197. package/src/lib/scrollable/scrollable.component.css +192 -0
  198. package/src/lib/scrollbar/scrollbar.component.css +110 -0
  199. package/src/lib/skeleton/skeleton.component.css +108 -0
  200. package/src/lib/standings/standings-pick.component.css +172 -0
  201. package/src/lib/standings/standings.component.css +201 -0
  202. package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
  203. package/src/lib/stat-tile/stat-tile.component.css +111 -0
  204. package/src/lib/stream/pip/pip-chrome.component.css +96 -0
  205. package/src/lib/stream/pip/pip-player.component.css +40 -0
  206. package/src/lib/stream/pip/pip-window.component.css +222 -0
  207. package/src/lib/stream/stream-manager-styles.component.css +10 -0
  208. package/src/lib/stream/stream-overlay-card-styles.component.css +43 -0
  209. package/src/lib/stream/stream-player-slot-styles.component.css +14 -0
  210. package/src/lib/table/table-column-chooser.component.css +17 -0
  211. package/src/lib/table/table-column-menu-trigger.component.css +31 -0
  212. package/src/lib/table/table-detail-styles.component.css +103 -0
  213. package/src/lib/table/table-drag-scroll-styles.component.css +18 -0
  214. package/src/lib/table/table-expander-cell.component.css +58 -0
  215. package/src/lib/table/table-filter-trigger.component.css +44 -0
  216. package/src/lib/table/table-group-header-row.component.css +38 -0
  217. package/src/lib/table/table-inline-edit-styles.component.css +20 -0
  218. package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
  219. package/src/lib/table/table-reorder-overlay.component.css +42 -0
  220. package/src/lib/table/table-resize-grip.component.css +65 -0
  221. package/src/lib/table/table-row-box-styles.component.css +260 -0
  222. package/src/lib/table/table-select-cell.component.css +89 -0
  223. package/src/lib/table/table-skeleton-rows.component.css +19 -0
  224. package/src/lib/table/table-sort-priority-styles.component.css +15 -0
  225. package/src/lib/table/table-sticky-columns-styles.component.css +80 -0
  226. package/src/lib/table/table-virtual-scroll-styles.component.css +9 -0
  227. package/src/lib/table/table.component.css +829 -0
  228. package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +33 -0
  229. package/src/lib/tabs/tab-bar-styles.component.css +173 -0
  230. package/src/lib/tabs/tab-scale-styles.component.css +61 -0
  231. package/src/lib/time-picker/time-picker.component.css +220 -0
  232. package/src/lib/timeline/timeline-item.component.css +116 -0
  233. package/src/lib/timeline/timeline.component.css +7 -0
  234. package/src/lib/toggletip/toggletip.component.css +83 -0
  235. package/src/lib/toolbar/toolbar.component.css +40 -0
  236. package/src/lib/tooltip/tooltip.component.css +64 -0
  237. package/src/lib/tree/tree.component.css +221 -0
  238. package/types/ethlete-components-testing.d.ts +1 -1
  239. package/types/ethlete-components.d.ts +172 -7
@@ -0,0 +1,36 @@
1
+ @layer components {
2
+ .et-bracket-default-round-header-host {
3
+ display: flex;
4
+ flex-direction: column;
5
+ align-items: center;
6
+ justify-content: center;
7
+ gap: 2px;
8
+ box-sizing: border-box;
9
+ inline-size: 100%;
10
+ block-size: 100%;
11
+ padding-inline: 8px;
12
+ text-align: center;
13
+ }
14
+
15
+ .et-bracket-default-round-header-name {
16
+ max-inline-size: 100%;
17
+ overflow: hidden;
18
+ font-size: 14px;
19
+ font-weight: 600;
20
+ line-height: 1.3;
21
+ color: var(--et-surface-color-solid, currentColor);
22
+ text-overflow: ellipsis;
23
+ white-space: nowrap;
24
+ }
25
+
26
+ .et-bracket-default-round-header-group,
27
+ .et-bracket-default-round-header-count {
28
+ max-inline-size: 100%;
29
+ overflow: hidden;
30
+ font-size: 11px;
31
+ line-height: 1.3;
32
+ color: var(--et-surface-color-muted-solid, currentColor);
33
+ text-overflow: ellipsis;
34
+ white-space: nowrap;
35
+ }
36
+ }
@@ -0,0 +1,13 @@
1
+ @layer components {
2
+ @property --et-bracket-participants-gap {
3
+ syntax: '<length>';
4
+ inherits: false;
5
+ initial-value: 8px;
6
+ }
7
+
8
+ .et-bracket-participants {
9
+ display: flex;
10
+ flex-wrap: wrap;
11
+ gap: var(--et-bracket-participants-gap);
12
+ }
13
+ }
@@ -0,0 +1,232 @@
1
+ @layer components {
2
+ .et-bracket-pick-card {
3
+ position: relative;
4
+ display: block;
5
+ box-sizing: border-box;
6
+ inline-size: 100%;
7
+ block-size: 100%;
8
+ }
9
+
10
+ .et-bracket-pick-card-box {
11
+ display: grid;
12
+ box-sizing: border-box;
13
+ inline-size: 100%;
14
+ block-size: 100%;
15
+ overflow: hidden;
16
+ border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
17
+ border-radius: var(--et-bracket-pick-card-border-radius, 10px);
18
+ background: var(--et-surface-background-solid, #fff);
19
+ color: var(--et-surface-color-solid, #111);
20
+ }
21
+
22
+ .et-bracket-pick-card-sides {
23
+ display: grid;
24
+ grid-auto-rows: 1fr;
25
+ min-block-size: 0;
26
+ }
27
+
28
+ .et-bracket-pick-card-side {
29
+ position: relative;
30
+ display: flex;
31
+ min-inline-size: 0;
32
+ align-items: center;
33
+ justify-content: space-between;
34
+ gap: var(--et-bracket-pick-card-gap, 8px);
35
+ box-sizing: border-box;
36
+ border: 0;
37
+ border-block-end: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
38
+ padding: var(--et-bracket-pick-card-padding, 8px 10px);
39
+ background: transparent;
40
+ color: inherit;
41
+ font: inherit;
42
+ text-align: start;
43
+ transition: background-color 120ms ease;
44
+
45
+ /* Always drawn, so the bar can fade rather than appear. Inset from both block edges, so it never
46
+ reaches the box's rounded corner - a bar that did would be cut across the diagonal by the
47
+ `overflow: hidden` clip. */
48
+ &::before {
49
+ content: '';
50
+ position: absolute;
51
+ inset-block: 25%;
52
+ inset-inline-start: 0;
53
+ inline-size: 3px;
54
+ border-radius: 999px;
55
+ background: var(--et-theme-color-primary-solid, #555);
56
+ opacity: 0;
57
+ transition:
58
+ opacity 120ms ease,
59
+ background-color 120ms ease;
60
+ }
61
+
62
+ &:where(button) {
63
+ cursor: pointer;
64
+ }
65
+
66
+ &:where(button):hover {
67
+ background: color-mix(in srgb, var(--et-surface-interaction-solid, #777) 12%, transparent);
68
+ }
69
+
70
+ &:where(button)[aria-pressed='true']:hover {
71
+ background: color-mix(in srgb, var(--et-theme-color-primary-solid, #555) 20%, transparent);
72
+ }
73
+
74
+ &:where([aria-pressed='true'], [data-selected]) {
75
+ background: color-mix(in srgb, var(--et-theme-color-primary-solid, #555) 12%, transparent);
76
+
77
+ &::before {
78
+ opacity: 1;
79
+ }
80
+ }
81
+
82
+ &:where([data-side-state='predicted']) {
83
+ color: var(--et-theme-color-ink-solid, currentColor);
84
+ }
85
+
86
+ &:where([data-dimmed]) {
87
+ opacity: 0.55;
88
+ }
89
+ }
90
+
91
+ /* The box clips with `overflow: hidden`, so the ring's default 3px outward offset would be cut away
92
+ on every edge that is also a card edge - a focused first row kept only the line it shares with
93
+ the row below. Inside the row, and rounded to match the clip at the two outer corners. */
94
+ .et-bracket-pick-card-side {
95
+ --_et-focus-ring-offset: -2px;
96
+ }
97
+
98
+ .et-bracket-pick-card-side:first-child {
99
+ border-start-start-radius: calc(var(--et-bracket-pick-card-border-radius, 10px) - 1px);
100
+ border-start-end-radius: calc(var(--et-bracket-pick-card-border-radius, 10px) - 1px);
101
+ }
102
+
103
+ .et-bracket-pick-card-side:last-child {
104
+ border-block-end: 0;
105
+ border-end-start-radius: calc(var(--et-bracket-pick-card-border-radius, 10px) - 1px);
106
+ border-end-end-radius: calc(var(--et-bracket-pick-card-border-radius, 10px) - 1px);
107
+ }
108
+
109
+ .et-bracket-pick-card-side > et-match-participant {
110
+ flex: 1;
111
+ min-inline-size: 0;
112
+ }
113
+
114
+ /* `et-match-participant` sets its own colour rather than inheriting one, so the state's colour has
115
+ to be applied to it directly - on the side alone it would never reach the name. */
116
+ .et-bracket-pick-card-side:where([data-side-state='predicted']) > et-match-participant {
117
+ color: var(--et-theme-color-ink-solid, currentColor);
118
+ }
119
+
120
+ .et-bracket-pick-card-empty {
121
+ color: var(--et-surface-color-muted-solid, #666);
122
+ font-size: var(--et-bracket-pick-card-slot-font-size, 13px);
123
+ }
124
+
125
+ .et-bracket-pick-card-empty {
126
+ min-inline-size: 0;
127
+ flex: 1;
128
+ overflow: hidden;
129
+ text-overflow: ellipsis;
130
+ white-space: nowrap;
131
+ }
132
+
133
+ .et-bracket-pick-card-mark {
134
+ display: grid;
135
+ place-items: center;
136
+ flex: none;
137
+ inline-size: var(--et-bracket-pick-card-mark-size, 14px);
138
+ block-size: var(--et-bracket-pick-card-mark-size, 14px);
139
+ border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.2));
140
+ border-radius: 50%;
141
+ transition: border-color 120ms ease;
142
+ animation: et-bracket-pick-card-mark-in 120ms ease;
143
+
144
+ &::after {
145
+ content: '';
146
+ inline-size: 50%;
147
+ block-size: 50%;
148
+ border-radius: 50%;
149
+ background: var(--et-surface-interaction-solid, #777);
150
+ opacity: 0;
151
+ transition: opacity 120ms ease;
152
+ }
153
+ }
154
+
155
+ .et-bracket-pick-card-side:where([aria-pressed='true'], [data-selected]) .et-bracket-pick-card-mark {
156
+ border-color: var(--et-theme-color-primary-solid, #555);
157
+
158
+ &::after {
159
+ background: var(--et-theme-color-primary-solid, #555);
160
+ opacity: 1;
161
+ }
162
+ }
163
+
164
+ .et-bracket-pick-card:where([data-locked]) .et-bracket-pick-card-side:where([data-selected])::before {
165
+ background: var(--et-surface-color-muted-solid, #666);
166
+ }
167
+
168
+ .et-bracket-pick-card:where([data-locked])
169
+ .et-bracket-pick-card-side:where([data-selected])
170
+ .et-bracket-pick-card-mark {
171
+ border-color: var(--et-surface-color-muted-solid, #666);
172
+
173
+ &::after {
174
+ background: var(--et-surface-color-muted-solid, #666);
175
+ }
176
+ }
177
+
178
+ .et-bracket-pick-card-side[aria-pressed='false']:hover .et-bracket-pick-card-mark::after {
179
+ opacity: 0.45;
180
+ }
181
+
182
+ .et-bracket-pick-card-note-layer {
183
+ position: absolute;
184
+ display: block;
185
+ inset: 0;
186
+ pointer-events: none;
187
+ }
188
+
189
+ .et-bracket-pick-card-invalid-outline {
190
+ position: absolute;
191
+ inset: 0;
192
+ border: 1px solid var(--et-theme-color-ink-solid, currentColor);
193
+ border-radius: var(--et-bracket-pick-card-border-radius, 10px);
194
+ }
195
+
196
+ .et-bracket-pick-card-note {
197
+ position: absolute;
198
+ inset-inline: 0;
199
+ inset-block-start: 100%;
200
+ display: block;
201
+ margin-block-start: var(--et-bracket-pick-card-note-offset, 4px);
202
+ overflow: hidden;
203
+ color: var(--et-surface-color-muted-solid, #666);
204
+ font-size: var(--et-bracket-pick-card-note-font-size, 10px);
205
+ line-height: 1.4;
206
+ text-overflow: ellipsis;
207
+ white-space: nowrap;
208
+ }
209
+
210
+ .et-bracket-pick-card:where([data-note-tone='invalid']) .et-bracket-pick-card-note {
211
+ color: var(--et-theme-color-ink-solid, currentColor);
212
+ }
213
+
214
+ @keyframes et-bracket-pick-card-mark-in {
215
+ from {
216
+ opacity: 0;
217
+ }
218
+ }
219
+
220
+ @media (prefers-reduced-motion: reduce) {
221
+ .et-bracket-pick-card-side,
222
+ .et-bracket-pick-card-side::before,
223
+ .et-bracket-pick-card-mark,
224
+ .et-bracket-pick-card-mark::after {
225
+ transition: none;
226
+ }
227
+
228
+ .et-bracket-pick-card-mark {
229
+ animation: none;
230
+ }
231
+ }
232
+ }
@@ -0,0 +1,75 @@
1
+ @layer components {
2
+ @property --et-bracket-rounds-list-section-gap {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 32px;
6
+ }
7
+
8
+ @property --et-bracket-rounds-list-round-gap {
9
+ syntax: '<length>';
10
+ inherits: true;
11
+ initial-value: 20px;
12
+ }
13
+
14
+ @property --et-bracket-rounds-list-match-gap {
15
+ syntax: '<length>';
16
+ inherits: true;
17
+ initial-value: 8px;
18
+ }
19
+
20
+ .et-bracket-rounds-list-host {
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: var(--et-bracket-rounds-list-section-gap);
24
+ }
25
+
26
+ .et-bracket-rounds-list-section {
27
+ display: flex;
28
+ flex-direction: column;
29
+ gap: var(--et-bracket-rounds-list-round-gap);
30
+ }
31
+
32
+ .et-bracket-rounds-list-section-name {
33
+ font-size: 12px;
34
+ font-weight: 600;
35
+ line-height: 1.3;
36
+ color: var(--et-surface-color-muted-solid, currentColor);
37
+ text-transform: uppercase;
38
+ letter-spacing: 0.04em;
39
+ }
40
+
41
+ .et-bracket-rounds-list-block {
42
+ display: flex;
43
+ flex-direction: column;
44
+ gap: var(--et-bracket-rounds-list-match-gap);
45
+ }
46
+
47
+ /*
48
+ * The round header components are written for a fixed-height cell in the grid (`block-size: 100%`,
49
+ * centered text) — in a list they head a column of matches, so the box is content-sized and the text
50
+ * runs from the start edge.
51
+ */
52
+ .et-bracket-rounds-list-round-header {
53
+ .et-bracket-default-round-header-host {
54
+ align-items: start;
55
+ block-size: auto;
56
+ padding-inline: 0;
57
+ text-align: start;
58
+ }
59
+ }
60
+
61
+ .et-bracket-rounds-list-matches {
62
+ display: flex;
63
+ flex-direction: column;
64
+ gap: var(--et-bracket-rounds-list-match-gap);
65
+ margin: 0;
66
+ padding: 0;
67
+ list-style: none;
68
+ }
69
+
70
+ .et-bracket-rounds-list-match {
71
+ margin: 0;
72
+ padding: 0;
73
+ list-style: none;
74
+ }
75
+ }
@@ -0,0 +1,55 @@
1
+ @layer components {
2
+ .et-bracket-skeleton-host {
3
+ display: block;
4
+ }
5
+
6
+ .et-bracket-skeleton-match {
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: 6px;
10
+ box-sizing: border-box;
11
+ inline-size: 100%;
12
+ block-size: 100%;
13
+ }
14
+
15
+ .et-bracket-skeleton-side {
16
+ flex: 1;
17
+ --et-skeleton-radius: 6px;
18
+ }
19
+
20
+ .et-bracket-skeleton-final-match {
21
+ align-items: center;
22
+ padding: 10px;
23
+ }
24
+
25
+ .et-bracket-skeleton-final-match .et-bracket-skeleton-final-title {
26
+ flex: none;
27
+ inline-size: 40%;
28
+ }
29
+
30
+ .et-bracket-skeleton-continue {
31
+ display: flex;
32
+ box-sizing: border-box;
33
+ inline-size: 100%;
34
+ block-size: 100%;
35
+ }
36
+
37
+ .et-bracket-skeleton-continue .et-bracket-skeleton-continue-bone {
38
+ flex: 1;
39
+ block-size: 100%;
40
+ --et-skeleton-radius: 6px;
41
+ }
42
+
43
+ .et-bracket-skeleton-round-header {
44
+ display: flex;
45
+ align-items: center;
46
+ justify-content: center;
47
+ box-sizing: border-box;
48
+ inline-size: 100%;
49
+ block-size: 100%;
50
+ }
51
+
52
+ .et-bracket-skeleton-round-header .et-bracket-skeleton-round-title {
53
+ inline-size: 50%;
54
+ }
55
+ }
@@ -0,0 +1,102 @@
1
+ @layer components {
2
+ .et-bracket {
3
+ position: relative;
4
+ transition: transform var(--et-bracket-move-duration, 0.2s) ease;
5
+ }
6
+
7
+ .et-bracket-round {
8
+ position: absolute;
9
+ inset-block-start: 0;
10
+ inset-inline-start: 0;
11
+ list-style: none;
12
+ margin: 0;
13
+ padding: 0;
14
+ transition: transform var(--et-bracket-move-duration, 0.2s) ease;
15
+ }
16
+
17
+ .et-bracket-element {
18
+ position: absolute;
19
+ inset-block-start: 0;
20
+ inset-inline-start: 0;
21
+ list-style: none;
22
+ margin: 0;
23
+ padding: 0;
24
+ transition:
25
+ transform var(--et-bracket-move-duration, 0.2s) ease,
26
+ opacity 0.2s;
27
+ }
28
+
29
+ /* Only the centered case has a rule: a header that fills its column - the shipped one does - is
30
+ centered already, so `start` has to leave it exactly as it was. */
31
+ .et-bracket-element--header:where([data-align='center']) {
32
+ display: flex;
33
+ justify-content: center;
34
+ text-align: center;
35
+ }
36
+
37
+ .et-bracket-svg {
38
+ inline-size: 100%;
39
+ block-size: 100%;
40
+ position: absolute;
41
+
42
+ /*
43
+ * Connector lines default to the ambient surface's border color; consumers override with
44
+ * the public --et-bracket-line-color token. Not declared via @property because an
45
+ * @property initial-value cannot contain a var() (see the theming skill).
46
+ */
47
+ path {
48
+ color: var(--et-bracket-line-color, var(--et-surface-border-solid, rgb(255 255 255 / 0.1)));
49
+ transition:
50
+ d var(--et-bracket-move-duration, 0.2s) ease,
51
+ opacity 0.2s;
52
+ }
53
+
54
+ /* The swiss group border color lives in BracketSwissStylesComponent, mounted by swissBracketLayout() —
55
+ a bracket that never draws groups never injects it. */
56
+ }
57
+
58
+ @media (prefers-reduced-motion: reduce) {
59
+ .et-bracket,
60
+ .et-bracket-round,
61
+ .et-bracket-element,
62
+ .et-bracket-svg path {
63
+ transition: none;
64
+ }
65
+ }
66
+
67
+ .et-bracket-host--journey-hover {
68
+ path,
69
+ .et-bracket-element--match {
70
+ opacity: 0.5;
71
+ }
72
+
73
+ .et-bracket-journey-active {
74
+ opacity: 1 !important;
75
+ }
76
+
77
+ /* Where the run ended. The cell stays lit — it is part of the journey — but the row that lost is
78
+ struck through and faded, so a path that stops mid-bracket reads as an exit rather than as
79
+ missing data. Only ever one row of the two: the attribute is matched per participant. */
80
+ .et-bracket-journey-eliminated {
81
+ opacity: 0.55;
82
+ text-decoration: line-through;
83
+ text-decoration-thickness: 1px;
84
+ }
85
+
86
+ .et-bracket-journey-endpoint {
87
+ outline: 1px dashed var(--et-bracket-line-color, var(--et-surface-border-solid, rgb(255 255 255 / 0.1)));
88
+ outline-offset: 2px;
89
+ border-radius: var(--et-match-card-border-radius, 10px);
90
+ }
91
+ }
92
+
93
+ /* Pinned. A hover is a glance and fades as the pointer moves on, so half opacity is enough of a
94
+ distinction; a pin persists and is usually the answer to "where did they get to", which is worth
95
+ pushing the rest of the bracket further back for. */
96
+ .et-bracket-host--journey-focused {
97
+ path,
98
+ .et-bracket-element--match {
99
+ opacity: 0.25;
100
+ }
101
+ }
102
+ }
@@ -0,0 +1,10 @@
1
+ @layer components {
2
+ .et-bracket-svg {
3
+ .et-bracket-swiss-group-border {
4
+ color: var(
5
+ --et-bracket-swiss-group-border-color,
6
+ var(--et-bracket-line-color, var(--et-surface-border-solid, rgb(255 255 255 / 0.1)))
7
+ );
8
+ }
9
+ }
10
+ }
@@ -0,0 +1,38 @@
1
+ @layer components {
2
+ .et-breadcrumb-overflow {
3
+ display: contents;
4
+ }
5
+
6
+ .et-breadcrumb-overflow-trigger {
7
+ --et-icon-button-border-radius: var(--et-breadcrumb-radius);
8
+
9
+ margin-inline: -4px;
10
+ }
11
+
12
+ .et-breadcrumb-overflow-list {
13
+ display: flex;
14
+ flex-direction: column;
15
+ gap: 2px;
16
+ margin: -4px -8px;
17
+ padding: 0;
18
+ list-style: none;
19
+
20
+ .et-breadcrumb-item {
21
+ display: block;
22
+ padding: 4px 8px;
23
+ color: var(--et-surface-color-solid, CanvasText);
24
+ transition:
25
+ background 120ms ease,
26
+ color 120ms ease;
27
+
28
+ &:where(a, button):hover {
29
+ background: color-mix(in srgb, var(--et-surface-interaction-solid) 12%, transparent);
30
+ text-decoration-color: transparent;
31
+ }
32
+
33
+ &:where(a, button):active {
34
+ background: color-mix(in srgb, var(--et-surface-interaction-solid) 20%, transparent);
35
+ }
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,120 @@
1
+ @layer components {
2
+ @property --et-breadcrumb-gap {
3
+ syntax: '<length>';
4
+ inherits: true;
5
+ initial-value: 6px;
6
+ }
7
+
8
+ @property --et-breadcrumb-separator-size {
9
+ syntax: '<length>';
10
+ inherits: true;
11
+ initial-value: 12px;
12
+ }
13
+
14
+ @property --et-breadcrumb-radius {
15
+ syntax: '<length>';
16
+ inherits: true;
17
+ initial-value: 6px;
18
+ }
19
+
20
+ @property --et-breadcrumb-loading-width {
21
+ syntax: '<length>';
22
+ inherits: true;
23
+ initial-value: 72px;
24
+ }
25
+
26
+ .et-breadcrumb {
27
+ display: block;
28
+ /* The clip that makes overflow measurable — `scroll.width > client.width` is the directive's
29
+ "doesn't fit" signal. Never `auto`: a scrollbar would defeat the collapsing it drives. */
30
+ overflow: hidden;
31
+ color: var(--et-surface-color-muted-solid, GrayText);
32
+ }
33
+
34
+ .et-breadcrumb-list {
35
+ display: flex;
36
+ align-items: center;
37
+ gap: var(--et-breadcrumb-gap);
38
+ /* Natural width, so flex can't squeeze the crumbs into ellipsised stubs instead of overflowing. */
39
+ inline-size: max-content;
40
+ margin: 0;
41
+ padding: 0;
42
+ list-style: none;
43
+ }
44
+
45
+ .et-breadcrumb-slot {
46
+ display: flex;
47
+ align-items: center;
48
+ gap: var(--et-breadcrumb-gap);
49
+ flex: none;
50
+ white-space: nowrap;
51
+ }
52
+
53
+ /* Hidden but still laid out: the directive measures the host's `clientWidth` and ignores a zero, so
54
+ `display: none` here would stop the measurement that clears this state. */
55
+ .et-breadcrumb:where([data-measuring]) {
56
+ visibility: hidden;
57
+ }
58
+
59
+ /* The list may drop its natural width here: the directive stops measuring while collapsed, so this
60
+ can't feed back into the collapse decision. */
61
+ .et-breadcrumb:where([data-collapsed]) {
62
+ .et-breadcrumb-list {
63
+ inline-size: auto;
64
+ }
65
+
66
+ .et-breadcrumb-slot:last-child {
67
+ flex: 0 1 auto;
68
+ min-inline-size: 0;
69
+
70
+ .et-breadcrumb-item {
71
+ display: block;
72
+ overflow: hidden;
73
+ text-overflow: ellipsis;
74
+ }
75
+ }
76
+ }
77
+
78
+ .et-breadcrumb-item {
79
+ color: inherit;
80
+ border-radius: var(--et-breadcrumb-radius);
81
+ text-decoration: underline transparent;
82
+ text-decoration-thickness: 1px;
83
+ text-underline-offset: 3px;
84
+ transition:
85
+ color 120ms ease,
86
+ text-decoration-color 120ms ease;
87
+
88
+ &:where(a, button):hover {
89
+ color: var(--et-surface-color-solid, CanvasText);
90
+ text-decoration-color: currentColor;
91
+ }
92
+
93
+ &:where(a, button):focus-visible {
94
+ outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
95
+ outline-offset: 2px;
96
+ }
97
+
98
+ &:where([aria-current='page']) {
99
+ color: var(--et-surface-color-solid, CanvasText);
100
+ font-weight: 500;
101
+ }
102
+ }
103
+
104
+ .et-breadcrumb-separator {
105
+ display: inline-flex;
106
+ align-items: center;
107
+ flex: none;
108
+ color: var(--et-surface-color-subtle-solid, GrayText);
109
+ }
110
+
111
+ .et-breadcrumb-chevron {
112
+ rotate: 90deg;
113
+ inline-size: var(--et-breadcrumb-separator-size);
114
+ block-size: var(--et-breadcrumb-separator-size);
115
+ }
116
+
117
+ .et-breadcrumb-loading {
118
+ inline-size: var(--et-breadcrumb-loading-width);
119
+ }
120
+ }