@ethlete/components 0.1.0-next.9 → 1.0.0-next.101
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/CHANGELOG.md +3519 -0
- package/README.md +1 -1
- package/design/accordion.ts +73 -0
- package/design/anchored-dialog.ts +102 -0
- package/design/avatar.ts +90 -0
- package/design/badge.ts +48 -0
- package/design/banner.ts +77 -0
- package/design/bracket.ts +457 -0
- package/design/breadcrumb.ts +144 -0
- package/design/button.ts +116 -0
- package/design/calendar.ts +306 -0
- package/design/card.ts +92 -0
- package/design/carousel.ts +240 -0
- package/design/chart.ts +512 -0
- package/design/checkbox.ts +275 -0
- package/design/chip.ts +64 -0
- package/design/config.json +26 -0
- package/design/control.ts +19 -0
- package/design/copy-button.ts +59 -0
- package/design/description-list.ts +41 -0
- package/design/dialog.ts +210 -0
- package/design/divider.ts +27 -0
- package/design/empty-state.ts +45 -0
- package/design/floating-action.ts +55 -0
- package/design/form-field.ts +256 -0
- package/design/grid.ts +148 -0
- package/design/icon-set.ts +19 -0
- package/design/icon.ts +9 -0
- package/design/input.ts +86 -0
- package/design/kbd.ts +19 -0
- package/design/loader.ts +156 -0
- package/design/masonry.ts +115 -0
- package/design/match.ts +131 -0
- package/design/menu.ts +149 -0
- package/design/notification.ts +132 -0
- package/design/otp-input.ts +107 -0
- package/design/pagination.ts +120 -0
- package/design/picture.ts +80 -0
- package/design/progress-steps.ts +79 -0
- package/design/query-error.ts +60 -0
- package/design/radio-group.ts +132 -0
- package/design/scheduler.ts +369 -0
- package/design/scrollable.ts +219 -0
- package/design/scrollbar.ts +47 -0
- package/design/sdk/assets/fallback.svg +1 -0
- package/design/sdk/assets/fonts/et-kbd-arrows-400-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/et-kbd-control-400-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/et-kbd-keys-400-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/source-code-pro-latin-wght-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
- package/design/sdk/assets/tall.svg +1 -0
- package/design/sdk/assets/wide.svg +1 -0
- package/design/sdk/components/accent-on-light/accent-on-light.css +35 -0
- package/design/sdk/components/accent-on-light/accent-on-light.ts +15 -0
- package/design/sdk/components/accent-on-light/shared/controls.ts +46 -0
- package/design/sdk/components/accordion/accordion.css +17 -0
- package/design/sdk/components/accordion/accordion.ts +79 -0
- package/design/sdk/components/action-sheet/action-sheet.css +124 -0
- package/design/sdk/components/action-sheet/action-sheet.ts +131 -0
- package/design/sdk/components/anchored-dialog/anchored-dialog.css +60 -0
- package/design/sdk/components/anchored-dialog/anchored-dialog.ts +89 -0
- package/design/sdk/components/avatar/avatar.css +14 -0
- package/design/sdk/components/avatar/avatar.ts +95 -0
- package/design/sdk/components/badge/badge.css +31 -0
- package/design/sdk/components/badge/badge.ts +89 -0
- package/design/sdk/components/banner/banner.css +18 -0
- package/design/sdk/components/banner/banner.ts +160 -0
- package/design/sdk/components/bracket/bracket.css +56 -0
- package/design/sdk/components/bracket/bracket.ts +183 -0
- package/design/sdk/components/breadcrumb/breadcrumb.css +25 -0
- package/design/sdk/components/breadcrumb/breadcrumb.ts +96 -0
- package/design/sdk/components/button/button.css +19 -0
- package/design/sdk/components/button/button.ts +201 -0
- package/design/sdk/components/calendar/calendar.css +33 -0
- package/design/sdk/components/calendar/calendar.ts +183 -0
- package/design/sdk/components/card/card.css +19 -0
- package/design/sdk/components/card/card.ts +111 -0
- package/design/sdk/components/carousel/carousel.css +44 -0
- package/design/sdk/components/carousel/carousel.ts +162 -0
- package/design/sdk/components/chart/chart.css +56 -0
- package/design/sdk/components/chart/chart.ts +146 -0
- package/design/sdk/components/checkbox/checkbox.css +10 -0
- package/design/sdk/components/checkbox/checkbox.ts +223 -0
- package/design/sdk/components/chip/chip.css +18 -0
- package/design/sdk/components/chip/chip.ts +99 -0
- package/design/sdk/components/copy-button/copy-button.css +14 -0
- package/design/sdk/components/copy-button/copy-button.ts +77 -0
- package/design/sdk/components/description-list/description-list.css +7 -0
- package/design/sdk/components/description-list/description-list.ts +64 -0
- package/design/sdk/components/dialog/dialog.css +29 -0
- package/design/sdk/components/dialog/dialog.ts +173 -0
- package/design/sdk/components/divider/divider.css +26 -0
- package/design/sdk/components/divider/divider.ts +49 -0
- package/design/sdk/components/empty-state/empty-state.css +39 -0
- package/design/sdk/components/empty-state/empty-state.ts +67 -0
- package/design/sdk/components/floating-action/floating-action.css +51 -0
- package/design/sdk/components/floating-action/floating-action.ts +78 -0
- package/design/sdk/components/form-field/form-field.ts +204 -0
- package/design/sdk/components/grid/grid.css +17 -0
- package/design/sdk/components/grid/grid.ts +96 -0
- package/design/sdk/components/input/input.css +48 -0
- package/design/sdk/components/input/input.ts +156 -0
- package/design/sdk/components/kbd/kbd.css +25 -0
- package/design/sdk/components/kbd/kbd.ts +70 -0
- package/design/sdk/components/loader/loader.css +37 -0
- package/design/sdk/components/loader/loader.ts +79 -0
- package/design/sdk/components/masonry/masonry.css +7 -0
- package/design/sdk/components/masonry/masonry.ts +50 -0
- package/design/sdk/components/match/match.css +22 -0
- package/design/sdk/components/match/match.ts +95 -0
- package/design/sdk/components/menu/menu.css +22 -0
- package/design/sdk/components/menu/menu.ts +120 -0
- package/design/sdk/components/notification/notification.css +32 -0
- package/design/sdk/components/notification/notification.ts +117 -0
- package/design/sdk/components/otp-input/otp-input.css +35 -0
- package/design/sdk/components/otp-input/otp-input.ts +94 -0
- package/design/sdk/components/pagination/pagination.css +14 -0
- package/design/sdk/components/pagination/pagination.ts +97 -0
- package/design/sdk/components/picture/picture.css +37 -0
- package/design/sdk/components/picture/picture.ts +112 -0
- package/design/sdk/components/progress-steps/progress-steps.css +37 -0
- package/design/sdk/components/progress-steps/progress-steps.ts +109 -0
- package/design/sdk/components/query-error/query-error.css +27 -0
- package/design/sdk/components/query-error/query-error.ts +167 -0
- package/design/sdk/components/radio-group/radio-group.css +10 -0
- package/design/sdk/components/radio-group/radio-group.ts +209 -0
- package/design/sdk/components/scheduler/scheduler.css +49 -0
- package/design/sdk/components/scheduler/scheduler.ts +267 -0
- package/design/sdk/components/scrollable/scrollable.css +58 -0
- package/design/sdk/components/scrollable/scrollable.ts +198 -0
- package/design/sdk/components/scrollbar/scrollbar.css +78 -0
- package/design/sdk/components/scrollbar/scrollbar.ts +152 -0
- package/design/sdk/components/select/select.css +5 -0
- package/design/sdk/components/select/select.ts +42 -0
- package/design/sdk/components/select/shared/select-part.ts +80 -0
- package/design/sdk/components/select-panel/select-panel.css +3 -0
- package/design/sdk/components/select-panel/select-panel.ts +144 -0
- package/design/sdk/components/skeleton/skeleton.css +22 -0
- package/design/sdk/components/skeleton/skeleton.ts +58 -0
- package/design/sdk/components/slider/slider.css +47 -0
- package/design/sdk/components/slider/slider.ts +133 -0
- package/design/sdk/components/standings/standings.css +32 -0
- package/design/sdk/components/standings/standings.ts +146 -0
- package/design/sdk/components/stat-tile/stat-tile.css +15 -0
- package/design/sdk/components/stat-tile/stat-tile.ts +97 -0
- package/design/sdk/components/stream/stream.css +42 -0
- package/design/sdk/components/stream/stream.ts +63 -0
- package/design/sdk/components/switch/switch.ts +94 -0
- package/design/sdk/components/table/table.css +67 -0
- package/design/sdk/components/table/table.ts +320 -0
- package/design/sdk/components/tabs/tabs.css +13 -0
- package/design/sdk/components/tabs/tabs.ts +95 -0
- package/design/sdk/components/textarea/textarea.css +90 -0
- package/design/sdk/components/textarea/textarea.ts +154 -0
- package/design/sdk/components/timeline/timeline.css +30 -0
- package/design/sdk/components/timeline/timeline.ts +98 -0
- package/design/sdk/components/toolbar/toolbar.css +24 -0
- package/design/sdk/components/toolbar/toolbar.ts +104 -0
- package/design/sdk/components/tooltip/tooltip.css +15 -0
- package/design/sdk/components/tooltip/tooltip.ts +39 -0
- package/design/sdk/components/tree/selected-tint.css +15 -0
- package/design/sdk/components/tree/tree.ts +89 -0
- package/design/sdk/fixtures.ts +0 -0
- package/design/sdk/foundations/colors/colors.css +602 -0
- package/design/sdk/foundations/colors/colors.ts +218 -0
- package/design/sdk/foundations/colors/faces.css +75 -0
- package/design/sdk/foundations/colors/overrides.json +19 -0
- package/design/sdk/foundations/colors/shared/contrast.ts +105 -0
- package/design/sdk/foundations/elevation/elevation.css +6 -0
- package/design/sdk/foundations/elevation/elevation.ts +18 -0
- package/design/sdk/foundations/elevation/shared/elevation/scene.css +106 -0
- package/design/sdk/foundations/elevation/shared/elevation/scene.ts +74 -0
- package/design/sdk/foundations/icons/icons.ts +125 -0
- package/design/sdk/lint-baseline.json +6 -0
- package/design/sdk/ready.json +488 -0
- package/design/sdk/rule-baseline.json +48 -0
- package/design/select.ts +199 -0
- package/design/skeleton.ts +67 -0
- package/design/slider.ts +155 -0
- package/design/standings.ts +166 -0
- package/design/stat-tile.ts +109 -0
- package/design/stream.ts +92 -0
- package/design/switch.ts +83 -0
- package/design/table.ts +309 -0
- package/design/tabs.ts +75 -0
- package/design/textarea.ts +94 -0
- package/design/timeline.ts +52 -0
- package/design/toggletip.ts +85 -0
- package/design/toolbar.ts +95 -0
- package/design/tooltip.ts +95 -0
- package/design/tree.ts +106 -0
- package/fesm2022/ethlete-components-testing.mjs +440 -0
- package/fesm2022/ethlete-components-testing.mjs.map +1 -0
- package/fesm2022/ethlete-components.mjs +115628 -12455
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/component/component-names.js +42 -0
- package/generators/component/component-templates.js +211 -0
- package/generators/component/generator.js +144 -0
- package/generators/component/schema.json +109 -0
- package/generators/component/workspace-edits.js +92 -0
- package/generators/generators.json +126 -0
- package/generators/icons/generator.js +231 -0
- package/generators/icons/schema.json +35 -0
- package/generators/migrate-bracket-default-cards/bracket-default-cards.js +67 -0
- package/generators/migrate-bracket-default-cards/migration.js +63 -0
- package/generators/migrate-bracket-default-cards/schema.json +26 -0
- package/generators/migrate-bracket-ethlete-renames/bracket-ethlete-renames.js +15 -0
- package/generators/migrate-bracket-ethlete-renames/migration.js +31 -0
- package/generators/migrate-bracket-ethlete-renames/schema.json +26 -0
- package/generators/migrate-cascader-tree-internals/cascader-tree-internals.js +6 -0
- package/generators/migrate-cascader-tree-internals/migration.js +11 -0
- package/generators/migrate-cascader-tree-internals/schema.json +26 -0
- package/generators/migrate-chart-baseline-y/chart-baseline-y.js +10 -0
- package/generators/migrate-chart-baseline-y/migration.js +41 -0
- package/generators/migrate-chart-baseline-y/schema.json +26 -0
- package/generators/migrate-duration-format-internals/duration-format-internals.js +6 -0
- package/generators/migrate-duration-format-internals/migration.js +11 -0
- package/generators/migrate-duration-format-internals/schema.json +26 -0
- package/generators/migrate-error-color-theme-signal/error-color-theme-signal.js +37 -0
- package/generators/migrate-error-color-theme-signal/migration.js +55 -0
- package/generators/migrate-error-color-theme-signal/schema.json +26 -0
- package/generators/migrate-grid-engine-internals/grid-engine-internals.js +43 -0
- package/generators/migrate-grid-engine-internals/migration.js +11 -0
- package/generators/migrate-grid-engine-internals/schema.json +26 -0
- package/generators/migrate-line-chart-stacked-area-mix/line-chart-stacked-area-mix.js +48 -0
- package/generators/migrate-line-chart-stacked-area-mix/migration.js +35 -0
- package/generators/migrate-line-chart-stacked-area-mix/schema.json +26 -0
- package/generators/migrate-loader-determinate/loader-determinate.js +87 -0
- package/generators/migrate-loader-determinate/migration.js +49 -0
- package/generators/migrate-loader-determinate/schema.json +26 -0
- package/generators/migrate-overlay-and-column-api/column-visibility-host.js +102 -0
- package/generators/migrate-overlay-and-column-api/migration.js +39 -0
- package/generators/migrate-overlay-and-column-api/overlay-and-column-api.js +18 -0
- package/generators/migrate-overlay-and-column-api/overlay-result.js +399 -0
- package/generators/migrate-overlay-and-column-api/schema.json +26 -0
- package/generators/migrate-overlay-and-column-api/source-scan.js +171 -0
- package/generators/migrate-overlay-fullscreen-animation/migration.js +11 -0
- package/generators/migrate-overlay-fullscreen-animation/overlay-fullscreen-animation.js +16 -0
- package/generators/migrate-overlay-fullscreen-animation/schema.json +26 -0
- package/generators/migrate-overlay-nav-tab-imports/migration.js +35 -0
- package/generators/migrate-overlay-nav-tab-imports/overlay-nav-tab-imports.js +25 -0
- package/generators/migrate-overlay-nav-tab-imports/schema.json +26 -0
- package/generators/migrate-pip-window-z-index/migration.js +85 -0
- package/generators/migrate-pip-window-z-index/pip-window-z-index.js +60 -0
- package/generators/migrate-pip-window-z-index/schema.json +26 -0
- package/generators/migrate-query-error-labels/migration-scope.js +30 -0
- package/generators/migrate-query-error-labels/migration.js +58 -0
- package/generators/migrate-query-error-labels/query-error-labels.js +30 -0
- package/generators/migrate-query-error-labels/schema.json +26 -0
- package/generators/migrate-rich-text-editor-floating-toolbar/migration.js +57 -0
- package/generators/migrate-rich-text-editor-floating-toolbar/rich-text-editor-floating-toolbar.js +28 -0
- package/generators/migrate-rich-text-editor-floating-toolbar/schema.json +26 -0
- package/generators/migrate-rich-text-editor-link-editor/migration.js +57 -0
- package/generators/migrate-rich-text-editor-link-editor/rich-text-editor-link-editor.js +28 -0
- package/generators/migrate-rich-text-editor-link-editor/schema.json +26 -0
- package/generators/migrate-rich-text-editor-tools/migration.js +64 -0
- package/generators/migrate-rich-text-editor-tools/rich-text-editor-tools.js +36 -0
- package/generators/migrate-rich-text-editor-tools/schema.json +26 -0
- package/generators/migrate-select-input-renames/migration.js +41 -0
- package/generators/migrate-select-input-renames/schema.json +26 -0
- package/generators/migrate-select-input-renames/select-input-renames.js +37 -0
- package/generators/migrate-stream-default-components/migration.js +86 -0
- package/generators/migrate-stream-default-components/schema.json +26 -0
- package/generators/migrate-stream-default-components/stream-default-components.js +111 -0
- package/generators/migrate-tabs-active-underline/migration.js +31 -0
- package/generators/migrate-tabs-active-underline/schema.json +26 -0
- package/generators/migrate-tabs-active-underline/tabs-active-underline.js +46 -0
- package/generators/migrate-time-picker-ring/migration.js +17 -0
- package/generators/migrate-time-picker-ring/schema.json +26 -0
- package/generators/migrate-time-picker-ring/time-picker-ring.js +25 -0
- package/generators/migrate-youtube-player-slot-directive/migration.js +11 -0
- package/generators/migrate-youtube-player-slot-directive/schema.json +26 -0
- package/generators/migrate-youtube-player-slot-directive/youtube-player-slot-directive.js +12 -0
- package/generators/removed-exports/removed-exports.js +154 -0
- package/generators/removed-exports/run-removed-exports-migration.js +48 -0
- package/migrations/components-sdk-layer.md +55 -0
- package/migrations.json +211 -0
- package/package.json +47 -17
- package/src/lib/accordion/accordion-group.component.css +12 -0
- package/src/lib/accordion/accordion.component.css +236 -0
- package/src/lib/avatar/avatar-group.component.css +31 -0
- package/src/lib/avatar/avatar.component.css +90 -0
- package/src/lib/badge/badge.component.css +118 -0
- package/src/lib/banner/banner.component.css +102 -0
- package/src/lib/bracket/bracket-default-continue.component.css +29 -0
- package/src/lib/bracket/bracket-default-final-match.component.css +76 -0
- package/src/lib/bracket/bracket-default-match.component.css +21 -0
- package/src/lib/bracket/bracket-default-round-header.component.css +36 -0
- package/src/lib/bracket/bracket-default-section-title.component.css +14 -0
- package/src/lib/bracket/bracket-participants.component.css +13 -0
- package/src/lib/bracket/bracket-pick-card.component.css +232 -0
- package/src/lib/bracket/bracket-rounds-list.component.css +75 -0
- package/src/lib/bracket/bracket-skeleton.component.css +55 -0
- package/src/lib/bracket/bracket.component.css +123 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-round-header.component.css +65 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +14 -0
- package/src/lib/breadcrumb/breadcrumb-outlet.component.css +5 -0
- package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
- package/src/lib/breadcrumb/breadcrumb.component.css +126 -0
- package/src/lib/button/button-properties-styles.component.css +195 -0
- package/src/lib/button/button.component.css +259 -0
- package/src/lib/button/button.types.ts +33 -0
- package/src/lib/button/fab.component.css +257 -0
- package/src/lib/button/icon-button.component.css +152 -0
- package/src/lib/button/split-button.component.css +103 -0
- package/src/lib/button/text-button.component.css +142 -0
- package/src/lib/button/window-control-button.component.css +214 -0
- package/src/lib/calendar/calendar-coarse-grid-styles.component.css +29 -0
- package/src/lib/calendar/calendar-comparison-band-styles.component.css +36 -0
- package/src/lib/calendar/calendar-week-numbers-styles.component.css +32 -0
- package/src/lib/calendar/calendar.component.css +374 -0
- package/src/lib/card/card.component.css +43 -0
- package/src/lib/carousel/carousel-autoplay-styles.component.css +171 -0
- package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
- package/src/lib/carousel/carousel.component.css +220 -0
- package/src/lib/chart/bar-chart.component.css +176 -0
- package/src/lib/chart/chart-axis.component.css +40 -0
- package/src/lib/chart/chart-grid.component.css +6 -0
- package/src/lib/chart/chart-legend.component.css +46 -0
- package/src/lib/chart/chart-tooltip.component.css +34 -0
- package/src/lib/chart/line-chart-tooltip.component.css +51 -0
- package/src/lib/chart/line-chart.component.css +234 -0
- package/src/lib/chart/pie-chart.component.css +176 -0
- package/src/lib/chart/sankey-chart.component.css +221 -0
- package/src/lib/chip/chip.component.css +161 -0
- package/src/lib/collapse/collapse.component.css +43 -0
- package/src/lib/command-palette/command-palette-item.component.css +98 -0
- package/src/lib/command-palette/command-palette.component.css +148 -0
- package/src/lib/description-list/description-list.component.css +78 -0
- package/src/lib/divider/divider.component.css +40 -0
- package/src/lib/empty-state/empty-state.component.css +79 -0
- package/src/lib/floating-action/floating-action-styles.component.css +105 -0
- package/src/lib/focus-ring/focus-ring-styles.component.css +31 -0
- package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
- package/src/lib/forms/cascader/cascader-panel.component.css +390 -0
- package/src/lib/forms/cascader/cascader-sheet-styles.component.css +241 -0
- package/src/lib/forms/cascader/cascader.component.css +52 -0
- package/src/lib/forms/checkbox/checkbox.component.css +278 -0
- package/src/lib/forms/choice-field/choice-field-card-styles.component.css +66 -0
- package/src/lib/forms/choice-field/choice-field.component.css +227 -0
- package/src/lib/forms/color-input/color-input.component.css +109 -0
- package/src/lib/forms/color-input/color-picker-panel.component.css +354 -0
- package/src/lib/forms/date-time/date-input/date-input.component.css +35 -0
- package/src/lib/forms/date-time/date-picker-panel.component.css +118 -0
- package/src/lib/forms/date-time/date-range-input/date-range-input.component.css +16 -0
- package/src/lib/forms/date-time/date-range-presets.component.css +60 -0
- package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +151 -0
- package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +121 -0
- package/src/lib/forms/date-time/duration-input/duration-input.component.css +88 -0
- package/src/lib/forms/date-time/range-input-shell-styles.component.css +55 -0
- package/src/lib/forms/date-time/time-input/time-input.component.css +35 -0
- package/src/lib/forms/date-time/time-range-input/time-range-input.component.css +16 -0
- package/src/lib/forms/description/description.component.css +7 -0
- package/src/lib/forms/dropzone/dropzone-crop.component.css +139 -0
- package/src/lib/forms/dropzone/dropzone-item.component.css +67 -0
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +83 -0
- package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
- package/src/lib/forms/dropzone/dropzone-row-styles.component.css +85 -0
- package/src/lib/forms/dropzone/dropzone.component.css +291 -0
- package/src/lib/forms/form-field/counter.component.css +25 -0
- package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +174 -0
- package/src/lib/forms/form-field/form-field-rich-text-styles.component.css +31 -0
- package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +93 -0
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +396 -0
- package/src/lib/forms/form-field/form-field-textarea-styles.component.css +94 -0
- package/src/lib/forms/form-field/form-field.component.css +381 -0
- package/src/lib/forms/form-field/form-support-styles.component.css +102 -0
- package/src/lib/forms/form-field/headless/label.directive.css +25 -0
- package/src/lib/forms/form-field/hint.component.css +18 -0
- package/src/lib/forms/input/input.component.css +53 -0
- package/src/lib/forms/input/number-input.component.css +128 -0
- package/src/lib/forms/input/password-input.component.css +103 -0
- package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
- package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +101 -0
- package/src/lib/forms/otp-input/otp-input.component.css +218 -0
- package/src/lib/forms/phone-input/phone-input.component.css +126 -0
- package/src/lib/forms/rating/rating.component.css +197 -0
- package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +95 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +172 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +149 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-palette.component.css +18 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +206 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +175 -0
- package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
- package/src/lib/forms/select/select-all-option.component.css +14 -0
- package/src/lib/forms/select/select-extras-styles.component.css +146 -0
- package/src/lib/forms/select/select-option-group.component.css +36 -0
- package/src/lib/forms/select/select-option-styles.component.css +167 -0
- package/src/lib/forms/select/select-panel.component.css +122 -0
- package/src/lib/forms/select/select.component.css +247 -0
- package/src/lib/forms/selection-card-styles.component.css +144 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +98 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +142 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +162 -0
- package/src/lib/forms/selection-list/radio-group/radio-group.component.css +134 -0
- package/src/lib/forms/selection-list/radio-group/radio.component.css +144 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +213 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +200 -0
- package/src/lib/forms/slider/range-slider.component.css +434 -0
- package/src/lib/forms/slider/slider.component.css +428 -0
- package/src/lib/forms/switch/switch.component.css +214 -0
- package/src/lib/forms/tag-input/tag-input.component.css +54 -0
- package/src/lib/forms/textarea/textarea-autosize-styles.component.css +16 -0
- package/src/lib/forms/textarea/textarea.component.css +45 -0
- package/src/lib/grid/grid-debug.component.css +130 -0
- package/src/lib/grid/grid-item-default-actions.component.css +11 -0
- package/src/lib/grid/grid-item-toolbar.component.css +10 -0
- package/src/lib/grid/grid-item.component.css +176 -0
- package/src/lib/grid/grid.component.css +56 -0
- package/src/lib/icon/headless/align-icons.ts +30 -0
- package/src/lib/icon/headless/arrow-out-up-right-icon.ts +17 -0
- package/src/lib/icon/headless/arrow-right-icon.ts +23 -0
- package/src/lib/icon/headless/arrow-up-icon.ts +30 -0
- package/src/lib/icon/headless/arrows-left-right-icon.ts +31 -0
- package/src/lib/icon/headless/bold-icon.ts +11 -0
- package/src/lib/icon/headless/calendar-icon.ts +21 -0
- package/src/lib/icon/headless/check-icon.ts +14 -0
- package/src/lib/icon/headless/chevron-icon.ts +14 -0
- package/src/lib/icon/headless/circle-check-icon.ts +14 -0
- package/src/lib/icon/headless/circle-info-icon.ts +14 -0
- package/src/lib/icon/headless/clipboard-check-icon.ts +28 -0
- package/src/lib/icon/headless/clock-icon.ts +21 -0
- package/src/lib/icon/headless/code-block-icon.ts +15 -0
- package/src/lib/icon/headless/code-icon.ts +14 -0
- package/src/lib/icon/headless/ellipsis-icon.ts +13 -0
- package/src/lib/icon/headless/ellipsis-vertical-icon.ts +13 -0
- package/src/lib/icon/headless/eye-icons.ts +27 -0
- package/src/lib/icon/headless/eyedropper-icon.ts +22 -0
- package/src/lib/icon/headless/file-icon.ts +16 -0
- package/src/lib/icon/headless/filter-icon.ts +11 -0
- package/src/lib/icon/headless/floppy-disk-icon.ts +27 -0
- package/src/lib/icon/headless/focus-frame-icon.ts +16 -0
- package/src/lib/icon/headless/grid-2x2-icon.ts +17 -0
- package/src/lib/icon/headless/heading-1-icon.ts +11 -0
- package/src/lib/icon/headless/heading-2-icon.ts +11 -0
- package/src/lib/icon/headless/heading-3-icon.ts +11 -0
- package/src/lib/icon/headless/icon-definition.ts +14 -0
- package/src/lib/icon/headless/icon-styles.component.css +7 -0
- package/src/lib/icon/headless/image-icon.ts +14 -0
- package/src/lib/icon/headless/italic-icon.ts +19 -0
- package/src/lib/icon/headless/link-icon.ts +17 -0
- package/src/lib/icon/headless/list-bulleted-icon.ts +14 -0
- package/src/lib/icon/headless/list-numbered-icon.ts +14 -0
- package/src/lib/icon/headless/location-icon.ts +21 -0
- package/src/lib/icon/headless/lock-icon.ts +14 -0
- package/src/lib/icon/headless/minus-icon.ts +14 -0
- package/src/lib/icon/headless/paragraph-icon.ts +11 -0
- package/src/lib/icon/headless/pause-icon.ts +11 -0
- package/src/lib/icon/headless/pencil-icon.ts +21 -0
- package/src/lib/icon/headless/play-icon.ts +10 -0
- package/src/lib/icon/headless/plus-icon.ts +21 -0
- package/src/lib/icon/headless/quote-icon.ts +15 -0
- package/src/lib/icon/headless/rotate-right-icon.ts +16 -0
- package/src/lib/icon/headless/star-icon.ts +14 -0
- package/src/lib/icon/headless/strikethrough-icon.ts +18 -0
- package/src/lib/icon/headless/table-icon.ts +15 -0
- package/src/lib/icon/headless/thumbtack-icon.ts +18 -0
- package/src/lib/icon/headless/times-icon.ts +14 -0
- package/src/lib/icon/headless/trash-icon.ts +24 -0
- package/src/lib/icon/headless/triangle-exclamation-icon.ts +14 -0
- package/src/lib/icon/headless/trophy-icon.ts +24 -0
- package/src/lib/icon/headless/underline-icon.ts +12 -0
- package/src/lib/icon/headless/undo-redo-icons.ts +24 -0
- package/src/lib/icon/headless/upload-icon.ts +16 -0
- package/src/lib/kbd/kbd.component.css +62 -0
- package/src/lib/loader/brand-loader/brand-loader.component.css +133 -0
- package/src/lib/loader/progress-bar/progress-bar.component.css +186 -0
- package/src/lib/loader/spinner/spinner-styles.component.css +225 -0
- package/src/lib/loader/spinner/spinner-sweep-dashes.ts +19 -0
- package/src/lib/masonry/masonry-styles.component.css +84 -0
- package/src/lib/match/match-card.component.css +545 -0
- package/src/lib/match/match-participant.component.css +236 -0
- package/src/lib/match/match-score.component.css +77 -0
- package/src/lib/match/match-scoreline.component.css +53 -0
- package/src/lib/match/match-time.component.css +5 -0
- package/src/lib/menu/menu-group-label.component.css +12 -0
- package/src/lib/menu/menu-item-shortcut.component.css +26 -0
- package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
- package/src/lib/menu/menu-item.component.css +36 -0
- package/src/lib/menu/menu-search-styles.component.css +83 -0
- package/src/lib/menu/menu-selection-item.component.css +92 -0
- package/src/lib/menu/menu-separator.component.css +9 -0
- package/src/lib/menu/menu.component.css +310 -0
- package/src/lib/notification/notification-stack.component.css +114 -0
- package/src/lib/notification/notification.component.css +275 -0
- package/src/lib/overlay/alert-dialog/alert-dialog.component.css +55 -0
- package/src/lib/overlay/floating-panel-styles.component.css +71 -0
- package/src/lib/overlay/floating-tip-styles.component.css +84 -0
- package/src/lib/overlay/overlay-container.component.css +173 -0
- package/src/lib/overlay/overlay-main-styles.component.css +105 -0
- package/src/lib/overlay/overlay-template-host.component.css +7 -0
- package/src/lib/overlay/routing/overlay-route-header-template-outlet.component.css +36 -0
- package/src/lib/overlay/routing/overlay-router-outlet.component.css +215 -0
- package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
- package/src/lib/overlay/sidebar/overlay-sidebar.component.css +23 -0
- package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +78 -0
- package/src/lib/overlay/strategies/dialog-styles.component.css +77 -0
- package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +141 -0
- package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
- package/src/lib/overlay/strategies/overlay-origin-clone.component.css +92 -0
- package/src/lib/overlay/strategies/sheet-styles.component.css +170 -0
- package/src/lib/pagination/page-size-select.component.css +6 -0
- package/src/lib/pagination/pagination.component.css +185 -0
- package/src/lib/picture/picture.component.css +82 -0
- package/src/lib/progress-steps/progress-step.component.css +269 -0
- package/src/lib/progress-steps/progress-steps.component.css +26 -0
- package/src/lib/query-error/query-error.component.css +27 -0
- package/src/lib/scheduler/scheduler-agenda-view.component.css +106 -0
- package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +59 -0
- package/src/lib/scheduler/scheduler-appointment-styles.component.css +129 -0
- package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
- package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
- package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
- package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
- package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
- package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
- package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
- package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
- package/src/lib/scheduler/scheduler-month-view.component.css +143 -0
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +269 -0
- package/src/lib/scheduler/scheduler.component.css +87 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +223 -0
- package/src/lib/scrollable/headless/scrollable-footer.css +37 -0
- package/src/lib/scrollable/headless/scrollable-masks.component.css +165 -0
- package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
- package/src/lib/scrollable/scrollable.component.css +234 -0
- package/src/lib/scrollbar/scrollbar.component.css +116 -0
- package/src/lib/skeleton/skeleton.component.css +132 -0
- package/src/lib/standings/standings-pick.component.css +208 -0
- package/src/lib/standings/standings.component.css +347 -0
- package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
- package/src/lib/stat-tile/stat-tile.component.css +134 -0
- package/src/lib/stream/consent/stream-consent.component.css +100 -0
- package/src/lib/stream/error/stream-player-error.component.css +101 -0
- package/src/lib/stream/loading/stream-player-loading.component.css +16 -0
- package/src/lib/stream/pip/pip-player.component.css +40 -0
- package/src/lib/stream/pip/pip-slot-placeholder.component.css +68 -0
- package/src/lib/stream/pip/pip-stage-styles.component.css +93 -0
- package/src/lib/stream/pip/pip-window.component.css +221 -0
- package/src/lib/stream/stream-manager-styles.component.css +10 -0
- package/src/lib/stream/stream-overlay-card-styles.component.css +69 -0
- package/src/lib/stream/stream-player-slot-styles.component.css +18 -0
- package/src/lib/table/table-column-chooser.component.css +17 -0
- package/src/lib/table/table-column-menu-trigger.component.css +31 -0
- package/src/lib/table/table-detail-styles.component.css +103 -0
- package/src/lib/table/table-drag-scroll-styles.component.css +18 -0
- package/src/lib/table/table-expander-cell.component.css +64 -0
- package/src/lib/table/table-filter-trigger.component.css +44 -0
- package/src/lib/table/table-group-header-row.component.css +38 -0
- package/src/lib/table/table-inline-edit-styles.component.css +20 -0
- package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
- package/src/lib/table/table-reorder-overlay.component.css +42 -0
- package/src/lib/table/table-resize-grip.component.css +65 -0
- package/src/lib/table/table-row-box-styles.component.css +268 -0
- package/src/lib/table/table-select-cell.component.css +119 -0
- package/src/lib/table/table-skeleton-rows.component.css +19 -0
- package/src/lib/table/table-sort-priority-styles.component.css +15 -0
- package/src/lib/table/table-sticky-columns-styles.component.css +80 -0
- package/src/lib/table/table-virtual-scroll-styles.component.css +9 -0
- package/src/lib/table/table.component.css +853 -0
- package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +37 -0
- package/src/lib/tabs/tab-bar-styles.component.css +266 -0
- package/src/lib/tabs/tab-scale-styles.component.css +61 -0
- package/src/lib/tabs/tabs/tab-group.component.css +115 -0
- package/src/lib/time-picker/time-picker.component.css +212 -0
- package/src/lib/timeline/timeline-item.component.css +139 -0
- package/src/lib/timeline/timeline.component.css +7 -0
- package/src/lib/toggletip/toggletip.component.css +88 -0
- package/src/lib/toolbar/toolbar.component.css +44 -0
- package/src/lib/tooltip/tooltip.component.css +84 -0
- package/src/lib/tree/tree.component.css +221 -0
- package/types/ethlete-components-testing.d.ts +300 -0
- package/types/ethlete-components.d.ts +37511 -3814
|
@@ -0,0 +1,545 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
@property --et-match-card-border-radius {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: false;
|
|
5
|
+
initial-value: 10px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* An inline-size container's own width can never come from its contents, so a card in a flex row with
|
|
9
|
+
no width of its own would collapse to nothing. This is the floor that keeps it usable there — low
|
|
10
|
+
enough to stay out of the way of a narrow bracket column, which is the other way cards get sized. */
|
|
11
|
+
@property --et-match-card-min-inline-size {
|
|
12
|
+
syntax: '<length>';
|
|
13
|
+
inherits: false;
|
|
14
|
+
initial-value: 180px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* One token per density, rather than one token the density rules overwrite: the card only ever *reads*
|
|
18
|
+
these, so a value set from outside survives the mode switch instead of being clobbered by it. */
|
|
19
|
+
@property --et-match-card-compact-padding {
|
|
20
|
+
syntax: '<length>+';
|
|
21
|
+
inherits: true;
|
|
22
|
+
initial-value: 10px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@property --et-match-card-expanded-padding {
|
|
26
|
+
syntax: '<length>+';
|
|
27
|
+
inherits: true;
|
|
28
|
+
initial-value: 16px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@property --et-match-card-compact-gap {
|
|
32
|
+
syntax: '<length>';
|
|
33
|
+
inherits: true;
|
|
34
|
+
initial-value: 6px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@property --et-match-card-expanded-gap {
|
|
38
|
+
syntax: '<length>';
|
|
39
|
+
inherits: true;
|
|
40
|
+
initial-value: 12px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@property --et-match-card-compact-emblem-size {
|
|
44
|
+
syntax: '<length>';
|
|
45
|
+
inherits: true;
|
|
46
|
+
initial-value: 20px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@property --et-match-card-expanded-emblem-size {
|
|
50
|
+
syntax: '<length>';
|
|
51
|
+
inherits: true;
|
|
52
|
+
initial-value: 36px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@property --et-match-card-compact-name-font-size {
|
|
56
|
+
syntax: '<length>';
|
|
57
|
+
inherits: true;
|
|
58
|
+
initial-value: 13px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@property --et-match-card-expanded-name-font-size {
|
|
62
|
+
syntax: '<length>';
|
|
63
|
+
inherits: true;
|
|
64
|
+
initial-value: 15px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@property --et-match-card-compact-score-font-size {
|
|
68
|
+
syntax: '<length>';
|
|
69
|
+
inherits: true;
|
|
70
|
+
initial-value: 14px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
@property --et-match-card-expanded-score-font-size {
|
|
74
|
+
syntax: '<length>';
|
|
75
|
+
inherits: true;
|
|
76
|
+
initial-value: 20px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* The third density, below the dense row: a code and a number. See the minimal threshold below. */
|
|
80
|
+
@property --et-match-card-minimal-padding {
|
|
81
|
+
syntax: '<length>+';
|
|
82
|
+
inherits: true;
|
|
83
|
+
initial-value: 6px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@property --et-match-card-minimal-gap {
|
|
87
|
+
syntax: '<length>';
|
|
88
|
+
inherits: true;
|
|
89
|
+
initial-value: 3px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@property --et-match-card-minimal-name-font-size {
|
|
93
|
+
syntax: '<length>';
|
|
94
|
+
inherits: true;
|
|
95
|
+
initial-value: 11px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@property --et-match-card-minimal-score-font-size {
|
|
99
|
+
syntax: '<length>';
|
|
100
|
+
inherits: true;
|
|
101
|
+
initial-value: 12px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@property --et-match-card-meta-font-size {
|
|
105
|
+
syntax: '<length>';
|
|
106
|
+
inherits: true;
|
|
107
|
+
initial-value: 11px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@property --et-match-card-versus-font-size {
|
|
111
|
+
syntax: '<length>';
|
|
112
|
+
inherits: true;
|
|
113
|
+
initial-value: 11px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
@property --et-match-card-games-font-size {
|
|
117
|
+
syntax: '<length>';
|
|
118
|
+
inherits: true;
|
|
119
|
+
initial-value: 11px;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@property --et-match-card-name-font-weight {
|
|
123
|
+
syntax: '<number>';
|
|
124
|
+
inherits: true;
|
|
125
|
+
initial-value: 400;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
@property --et-match-card-winner-name-font-weight {
|
|
129
|
+
syntax: '<number>';
|
|
130
|
+
inherits: true;
|
|
131
|
+
initial-value: 600;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@property --et-match-card-score-font-weight {
|
|
135
|
+
syntax: '<number>';
|
|
136
|
+
inherits: true;
|
|
137
|
+
initial-value: 600;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
@property --et-match-card-outcome-font-weight {
|
|
141
|
+
syntax: '<number>';
|
|
142
|
+
inherits: true;
|
|
143
|
+
initial-value: 700;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@property --et-match-card-status-font-weight {
|
|
147
|
+
syntax: '<number>';
|
|
148
|
+
inherits: true;
|
|
149
|
+
initial-value: 600;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.et-match-card {
|
|
153
|
+
container-type: inline-size;
|
|
154
|
+
container-name: et-match-card;
|
|
155
|
+
display: block;
|
|
156
|
+
box-sizing: border-box;
|
|
157
|
+
min-inline-size: var(--et-match-card-min-inline-size);
|
|
158
|
+
border-radius: var(--et-match-card-border-radius);
|
|
159
|
+
/* Set rather than inherited, so a card on an `<a>` doesn't come out link-blue and underlined. */
|
|
160
|
+
color: var(--et-surface-text, currentColor);
|
|
161
|
+
text-decoration: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* The card's actual box. Everything density-dependent lives here because a container query can only
|
|
165
|
+
match descendants of its container, and the container is the host. */
|
|
166
|
+
.et-match-card-content {
|
|
167
|
+
--_et-match-card-padding: var(--et-match-card-compact-padding);
|
|
168
|
+
--_et-match-card-gap: var(--et-match-card-compact-gap);
|
|
169
|
+
--_et-match-card-emblem-size: var(--et-match-card-compact-emblem-size);
|
|
170
|
+
--_et-match-card-name-font-size: var(--et-match-card-compact-name-font-size);
|
|
171
|
+
--_et-match-card-score-font-size: var(--et-match-card-compact-score-font-size);
|
|
172
|
+
/* What the dense row does without: the per-game breakdown, participant subtitles, the match label,
|
|
173
|
+
the kick-off, and therefore the meta row that would carry the last two. */
|
|
174
|
+
--_et-match-card-games-display: none;
|
|
175
|
+
--_et-match-card-meta-display: none;
|
|
176
|
+
--_et-match-card-time-display: none;
|
|
177
|
+
display: grid;
|
|
178
|
+
/* Centred rather than top-packed, for the one case where the card is given more height than it needs
|
|
179
|
+
— a bracket cell, whose height is the layout engine's decision. */
|
|
180
|
+
align-content: center;
|
|
181
|
+
gap: var(--_et-match-card-gap);
|
|
182
|
+
box-sizing: border-box;
|
|
183
|
+
padding: var(--_et-match-card-padding);
|
|
184
|
+
background: var(--et-surface-background, transparent);
|
|
185
|
+
border: 1px solid var(--et-surface-border, rgb(255 255 255 / 0.1));
|
|
186
|
+
font-family: var(--et-match-card-font-family, inherit);
|
|
187
|
+
border-radius: inherit;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* Brings back the kick-off alone: the meta row returns, but its label and badges stay out. */
|
|
191
|
+
.et-match-card:where([data-show-start-time]) .et-match-card-content {
|
|
192
|
+
--_et-match-card-meta-display: flex;
|
|
193
|
+
--_et-match-card-time-display: block;
|
|
194
|
+
--_et-match-card-badges-display: none;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/* Past the first threshold the card is the featured one; past the second the two sides stop stacking
|
|
198
|
+
and face each other across the middle. The thresholds are constants, not tokens: a container query
|
|
199
|
+
condition may not contain `var()`, so there is nothing to point a custom property at. Pin the layout
|
|
200
|
+
with the `size` input instead, and tune each one through the tokens above. */
|
|
201
|
+
/* Below the dense row there is one density left: a code and a number. A bracket at `density="compact"`
|
|
202
|
+
gives a cell about 150px, and an emblem, a name and a score is one thing too many for it — so the
|
|
203
|
+
emblems go and the type shrinks, which is the difference between a six-round bracket fitting an
|
|
204
|
+
article column and not. Applies to a pinned `compact` too, since compact means "the dense row" and
|
|
205
|
+
this is that row with nothing left to remove. */
|
|
206
|
+
@container et-match-card (max-inline-size: 149px) {
|
|
207
|
+
.et-match-card:where([data-size='auto']) .et-match-card-content,
|
|
208
|
+
.et-match-card:where([data-size='compact']) .et-match-card-content {
|
|
209
|
+
--_et-match-card-padding: var(--et-match-card-minimal-padding);
|
|
210
|
+
--_et-match-card-gap: var(--et-match-card-minimal-gap);
|
|
211
|
+
--_et-match-card-name-font-size: var(--et-match-card-minimal-name-font-size);
|
|
212
|
+
--_et-match-card-score-font-size: var(--et-match-card-minimal-score-font-size);
|
|
213
|
+
--_et-match-participant-emblem-display: none;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@container et-match-card (min-inline-size: 320px) {
|
|
218
|
+
.et-match-card:where([data-size='auto']) .et-match-card-content {
|
|
219
|
+
--_et-match-card-padding: var(--et-match-card-expanded-padding);
|
|
220
|
+
--_et-match-card-gap: var(--et-match-card-expanded-gap);
|
|
221
|
+
--_et-match-card-emblem-size: var(--et-match-card-expanded-emblem-size);
|
|
222
|
+
--_et-match-card-name-font-size: var(--et-match-card-expanded-name-font-size);
|
|
223
|
+
--_et-match-card-score-font-size: var(--et-match-card-expanded-score-font-size);
|
|
224
|
+
--_et-match-card-games-display: flex;
|
|
225
|
+
--_et-match-card-subtitle-display: block;
|
|
226
|
+
--_et-match-card-country-display: flex;
|
|
227
|
+
--_et-match-card-label-display: block;
|
|
228
|
+
--_et-match-card-meta-display: flex;
|
|
229
|
+
--_et-match-card-time-display: block;
|
|
230
|
+
--_et-match-card-badges-display: flex;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@container et-match-card (min-inline-size: 560px) {
|
|
235
|
+
.et-match-card:where([data-size='auto']) .et-match-card-content {
|
|
236
|
+
--_et-match-card-sides-columns: 1fr auto 1fr;
|
|
237
|
+
--_et-match-card-sides-gap: 12px;
|
|
238
|
+
--_et-match-card-away-flow: row-reverse;
|
|
239
|
+
--_et-match-card-home-participant-flow: row-reverse;
|
|
240
|
+
--_et-match-card-home-text-align: end;
|
|
241
|
+
--_et-match-card-versus-display: block;
|
|
242
|
+
--_et-match-card-side-marker-size: 0px;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/* `size="expanded"` and `size="wide"` say the same things without measuring. Mutually exclusive with
|
|
247
|
+
the rules above, since a card has exactly one `data-size`. */
|
|
248
|
+
.et-match-card:where([data-size='expanded']) .et-match-card-content,
|
|
249
|
+
.et-match-card:where([data-size='wide']) .et-match-card-content {
|
|
250
|
+
--_et-match-card-padding: var(--et-match-card-expanded-padding);
|
|
251
|
+
--_et-match-card-gap: var(--et-match-card-expanded-gap);
|
|
252
|
+
--_et-match-card-emblem-size: var(--et-match-card-expanded-emblem-size);
|
|
253
|
+
--_et-match-card-name-font-size: var(--et-match-card-expanded-name-font-size);
|
|
254
|
+
--_et-match-card-score-font-size: var(--et-match-card-expanded-score-font-size);
|
|
255
|
+
--_et-match-card-games-display: flex;
|
|
256
|
+
--_et-match-card-subtitle-display: block;
|
|
257
|
+
--_et-match-card-country-display: flex;
|
|
258
|
+
--_et-match-card-label-display: block;
|
|
259
|
+
--_et-match-card-meta-display: flex;
|
|
260
|
+
--_et-match-card-time-display: block;
|
|
261
|
+
--_et-match-card-badges-display: flex;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* The dense row is two rows and nothing else — its round is named by the column it sits in and its
|
|
265
|
+
kick-off by the list around it. The one exception is a live badge, which is the whole reason someone
|
|
266
|
+
is looking at the thing. */
|
|
267
|
+
.et-match-card:where([data-status='live'], [data-status='cancelled']) .et-match-card-content {
|
|
268
|
+
--_et-match-card-meta-display: flex;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
/* Emblems only. The names are still in the card's accessible name and in each emblem's alt text. */
|
|
272
|
+
.et-match-card:where([data-hide-names]) .et-match-participant-names {
|
|
273
|
+
display: none;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.et-match-card:where([data-size='wide']) .et-match-card-content {
|
|
277
|
+
--_et-match-card-sides-columns: 1fr auto 1fr;
|
|
278
|
+
--_et-match-card-sides-gap: 12px;
|
|
279
|
+
--_et-match-card-away-flow: row-reverse;
|
|
280
|
+
--_et-match-card-home-participant-flow: row-reverse;
|
|
281
|
+
--_et-match-card-home-text-align: end;
|
|
282
|
+
--_et-match-card-versus-display: block;
|
|
283
|
+
--_et-match-card-side-marker-size: 0px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.et-match-card-meta {
|
|
287
|
+
display: var(--_et-match-card-meta-display, flex);
|
|
288
|
+
align-items: center;
|
|
289
|
+
justify-content: space-between;
|
|
290
|
+
gap: 8px;
|
|
291
|
+
min-inline-size: 0;
|
|
292
|
+
font-size: var(--et-match-card-meta-font-size);
|
|
293
|
+
line-height: 1.4;
|
|
294
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.et-match-card-label {
|
|
298
|
+
display: var(--_et-match-card-label-display, none);
|
|
299
|
+
overflow: hidden;
|
|
300
|
+
text-overflow: ellipsis;
|
|
301
|
+
white-space: nowrap;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.et-match-card-badges {
|
|
305
|
+
display: var(--_et-match-card-badges-display, flex);
|
|
306
|
+
flex: none;
|
|
307
|
+
align-items: center;
|
|
308
|
+
gap: 4px;
|
|
309
|
+
margin-inline-start: auto;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.et-match-card-time {
|
|
313
|
+
display: var(--_et-match-card-time-display, block);
|
|
314
|
+
flex: none;
|
|
315
|
+
font-variant-numeric: tabular-nums;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* Tinted with the color theme in scope, which the component points at the app's `type: 'error'` theme
|
|
319
|
+
by default — the red a live badge is expected to be, without this file naming a theme. */
|
|
320
|
+
.et-match-card-live {
|
|
321
|
+
display: inline-flex;
|
|
322
|
+
flex: none;
|
|
323
|
+
align-items: center;
|
|
324
|
+
gap: 5px;
|
|
325
|
+
padding-inline: 6px;
|
|
326
|
+
font-weight: var(--et-match-card-status-font-weight);
|
|
327
|
+
letter-spacing: 0.04em;
|
|
328
|
+
text-transform: uppercase;
|
|
329
|
+
color: var(--et-tone-text, currentColor);
|
|
330
|
+
background: color-mix(in srgb, var(--et-tone-fill, currentColor) 14%, transparent);
|
|
331
|
+
border-radius: 4px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.et-match-card-cancelled {
|
|
335
|
+
flex: none;
|
|
336
|
+
margin-inline-start: auto;
|
|
337
|
+
padding-inline: 6px;
|
|
338
|
+
font-weight: var(--et-match-card-status-font-weight);
|
|
339
|
+
letter-spacing: 0.04em;
|
|
340
|
+
text-transform: uppercase;
|
|
341
|
+
background: color-mix(in srgb, var(--et-surface-tint, gray) 12%, transparent);
|
|
342
|
+
border-radius: 4px;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
.et-match-card-badges ~ .et-match-card-cancelled {
|
|
346
|
+
margin-inline-start: 0;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.et-match-card-live-dot {
|
|
350
|
+
flex: none;
|
|
351
|
+
inline-size: 6px;
|
|
352
|
+
block-size: 6px;
|
|
353
|
+
background: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
354
|
+
border-radius: 50%;
|
|
355
|
+
animation: et-match-card-live-pulse 2s ease-in-out infinite;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
@keyframes et-match-card-live-pulse {
|
|
359
|
+
50% {
|
|
360
|
+
opacity: 0.35;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
@media (prefers-reduced-motion: reduce) {
|
|
365
|
+
.et-match-card-live-dot {
|
|
366
|
+
animation: none;
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
/* One column of two rows by default; three columns in the wide arrangement, where the outer two are
|
|
371
|
+
equal `1fr` so the middle one — the result — sits dead centre no matter how long the names are. That
|
|
372
|
+
equality is the whole trick: sized to content, the two halves would differ and the middle would
|
|
373
|
+
drift. Every value reads a var with an inline fallback rather than declaring a default here, since a
|
|
374
|
+
declaration on this element would beat the one the layout rules set on the card content above it. */
|
|
375
|
+
.et-match-card-sides {
|
|
376
|
+
display: grid;
|
|
377
|
+
grid-template-columns: var(--_et-match-card-sides-columns, 1fr);
|
|
378
|
+
align-items: center;
|
|
379
|
+
gap: var(--_et-match-card-sides-gap, 4px);
|
|
380
|
+
min-inline-size: 0;
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
.et-match-card-side {
|
|
384
|
+
--_et-match-card-side-color: var(--et-surface-text, currentColor);
|
|
385
|
+
display: flex;
|
|
386
|
+
align-items: center;
|
|
387
|
+
gap: 8px;
|
|
388
|
+
min-inline-size: 0;
|
|
389
|
+
text-align: start;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/* Mirrored in the wide arrangement, and mirrored properly: the away side's row reverses so its value
|
|
393
|
+
lands next to the middle, and the home side's *participant* reverses so its emblem does too. Both
|
|
394
|
+
crests then flank the result with the names to the outside, which is the arrangement every wide
|
|
395
|
+
fixture row uses. `row-reverse` reverses the row the browser already resolved for the writing mode,
|
|
396
|
+
so RTL keeps working. */
|
|
397
|
+
.et-match-card-side:where([data-side='away']) {
|
|
398
|
+
flex-direction: var(--_et-match-card-away-flow, row);
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
.et-match-card-side:where([data-side='home']) {
|
|
402
|
+
text-align: var(--_et-match-card-home-text-align, start);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.et-match-card-side:where([data-side='home']) .et-match-card-participant {
|
|
406
|
+
flex-direction: var(--_et-match-card-home-participant-flow, row);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* The winner's bar. Drawn on both sides — transparent on the loser's — because a marker that appears on
|
|
410
|
+
one row only would push that row's emblem out of line with the other's. */
|
|
411
|
+
.et-match-card-side::before {
|
|
412
|
+
display: var(--_et-match-card-side-marker-display, none);
|
|
413
|
+
flex: none;
|
|
414
|
+
align-self: stretch;
|
|
415
|
+
inline-size: var(--_et-match-card-side-marker-size, 2px);
|
|
416
|
+
background: var(--_et-match-card-side-marker-color, transparent);
|
|
417
|
+
border-radius: 1px;
|
|
418
|
+
content: '';
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/* Between the two sides, and only where they are side by side with nothing else to put there. */
|
|
422
|
+
.et-match-card-versus {
|
|
423
|
+
display: var(--_et-match-card-versus-display, none);
|
|
424
|
+
flex: none;
|
|
425
|
+
padding-inline: 4px;
|
|
426
|
+
font-size: var(--et-match-card-versus-font-size);
|
|
427
|
+
font-weight: 600;
|
|
428
|
+
letter-spacing: 0.06em;
|
|
429
|
+
text-transform: uppercase;
|
|
430
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/* The other form the result slot takes — never together with a score, so it can share its metrics. */
|
|
434
|
+
.et-match-card-outcome {
|
|
435
|
+
flex: none;
|
|
436
|
+
min-inline-size: 1.2em;
|
|
437
|
+
font-family: var(--et-match-card-score-font-family, inherit);
|
|
438
|
+
font-size: var(--_et-match-card-score-font-size);
|
|
439
|
+
font-weight: var(--et-match-card-outcome-font-weight);
|
|
440
|
+
line-height: 1.2;
|
|
441
|
+
color: var(--_et-match-card-side-color);
|
|
442
|
+
text-align: center;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/* Two jobs, one selector: size the participant primitive for this density, and take over its color so
|
|
446
|
+
the winner emphasis below reaches the name. Both need to beat the primitive's own single-class
|
|
447
|
+
rules, which is why this is a descendant selector rather than a token on the card. */
|
|
448
|
+
.et-match-card-content .et-match-card-participant {
|
|
449
|
+
--et-match-participant-emblem-size: var(--_et-match-card-emblem-size);
|
|
450
|
+
--et-match-participant-font-size: var(--_et-match-card-name-font-size);
|
|
451
|
+
flex: 1;
|
|
452
|
+
min-inline-size: 0;
|
|
453
|
+
color: var(--_et-match-card-side-color);
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
/* A participant's second line is the first thing a dense row has no space for — it would make every row
|
|
457
|
+
two lines tall, which is the whole point of the dense row gone. Off by default here, back on in the
|
|
458
|
+
roomier layouts. The primitive keeps showing it when used standalone. */
|
|
459
|
+
.et-match-card-content .et-match-participant-subtitle {
|
|
460
|
+
display: var(--_et-match-card-subtitle-display, none);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
.et-match-card-content .et-match-participant-country {
|
|
464
|
+
display: var(--_et-match-card-country-display, none);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
.et-match-card-content .et-match-participant-name {
|
|
468
|
+
font-weight: var(--et-match-card-name-font-weight);
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
.et-match-card-score {
|
|
472
|
+
flex: none;
|
|
473
|
+
font-family: var(--et-match-card-score-font-family, inherit);
|
|
474
|
+
font-size: var(--_et-match-card-score-font-size);
|
|
475
|
+
font-weight: var(--et-match-card-score-font-weight);
|
|
476
|
+
font-variant-numeric: tabular-nums;
|
|
477
|
+
line-height: 1.2;
|
|
478
|
+
color: var(--_et-match-card-side-color);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/* A decided match reads its result off the emphasis, which is faster than reading two numbers: the
|
|
482
|
+
winner keeps full weight and color and gets the accent bar, the other side steps back. A draw
|
|
483
|
+
emphasizes neither, and draws no bars at all. */
|
|
484
|
+
.et-match-card:where([data-winner]) .et-match-card-side {
|
|
485
|
+
--_et-match-card-side-color: var(--et-surface-text-muted, currentColor);
|
|
486
|
+
--_et-match-card-side-marker-display: block;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.et-match-card:where([data-winner='home']) .et-match-card-side:where([data-side='home']),
|
|
490
|
+
.et-match-card:where([data-winner='away']) .et-match-card-side:where([data-side='away']) {
|
|
491
|
+
--_et-match-card-side-color: var(--et-surface-text, currentColor);
|
|
492
|
+
--_et-match-card-side-marker-color: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
493
|
+
--_et-match-card-side-marker-display: block;
|
|
494
|
+
|
|
495
|
+
.et-match-participant-name {
|
|
496
|
+
font-weight: var(--et-match-card-winner-name-font-weight);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/* Called off: no result to emphasize, so both sides step back and neither gets a bar. */
|
|
501
|
+
.et-match-card:where([data-status='cancelled']) .et-match-card-side {
|
|
502
|
+
--_et-match-card-side-color: var(--et-surface-text-muted, currentColor);
|
|
503
|
+
--_et-match-card-side-marker-display: none;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.et-match-card:where([data-status='cancelled']) .et-match-participant-emblem {
|
|
507
|
+
opacity: 0.6;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.et-match-card-content .et-match-card-skeleton {
|
|
511
|
+
display: grid;
|
|
512
|
+
gap: var(--_et-match-card-gap);
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.et-match-card-games {
|
|
516
|
+
display: var(--_et-match-card-games-display);
|
|
517
|
+
flex-wrap: wrap;
|
|
518
|
+
gap: 4px;
|
|
519
|
+
margin: 0;
|
|
520
|
+
padding: 0;
|
|
521
|
+
font-size: var(--et-match-card-games-font-size);
|
|
522
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
523
|
+
list-style: none;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.et-match-card-game {
|
|
527
|
+
flex: none;
|
|
528
|
+
padding-inline: 5px;
|
|
529
|
+
font-variant-numeric: tabular-nums;
|
|
530
|
+
line-height: 18px;
|
|
531
|
+
background: color-mix(in srgb, var(--et-surface-tint, gray) 10%, transparent);
|
|
532
|
+
border-radius: 4px;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
.et-match-card:where([data-interactive]) {
|
|
536
|
+
cursor: pointer;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/* Bare rather than `:where()`-flattened: an interaction state is meant to escalate over the config
|
|
540
|
+
modifiers above it. */
|
|
541
|
+
.et-match-card:where([data-interactive]):hover .et-match-card-content {
|
|
542
|
+
background: color-mix(in srgb, var(--et-surface-tint, gray) 6%, var(--et-surface-background, transparent));
|
|
543
|
+
border-color: color-mix(in srgb, var(--et-surface-tint, gray) 24%, var(--et-surface-border, transparent));
|
|
544
|
+
}
|
|
545
|
+
}
|