@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,95 @@
|
|
|
1
|
+
import {
|
|
2
|
+
avatar,
|
|
3
|
+
avatarGroup,
|
|
4
|
+
avatarPlaceholderImage,
|
|
5
|
+
avatarRow,
|
|
6
|
+
avatarStyles,
|
|
7
|
+
AvatarMockOptions,
|
|
8
|
+
} from '@ethlete/components/design/avatar';
|
|
9
|
+
import { SDK_ICONS } from '@ethlete/components/design/icon-set';
|
|
10
|
+
import { definePart, drawing } from '@design-system';
|
|
11
|
+
import frame from './avatar.css?inline';
|
|
12
|
+
|
|
13
|
+
const icon = (name: string) => SDK_ICONS.find((each) => each.name === name);
|
|
14
|
+
|
|
15
|
+
type Shape = NonNullable<AvatarMockOptions['shape']>;
|
|
16
|
+
|
|
17
|
+
type Props = { avatars?: AvatarMockOptions[]; groups?: { avatars: AvatarMockOptions[]; maxVisible?: number }[] };
|
|
18
|
+
|
|
19
|
+
const themed = (shape: Shape): Props => ({
|
|
20
|
+
avatars: [
|
|
21
|
+
{ name: 'Jane Doe', shape },
|
|
22
|
+
{ name: 'Alex Kim', shape, color: 'brand' },
|
|
23
|
+
{ name: 'Sam Lee', shape, color: 'warning' },
|
|
24
|
+
{ name: 'Max Roe', shape, color: 'danger' },
|
|
25
|
+
],
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const forms = (shape: Shape): Props => ({
|
|
29
|
+
avatars: [
|
|
30
|
+
{ src: avatarPlaceholderImage, name: 'Jane Doe', shape },
|
|
31
|
+
{ name: 'Jane Doe', shape },
|
|
32
|
+
{ name: 'Dr. Anna Maria Schmidt', initials: 'AS', shape },
|
|
33
|
+
{ icon: icon('et-image'), shape },
|
|
34
|
+
{ shape },
|
|
35
|
+
],
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const sizes = (shape: Shape): Props => ({
|
|
39
|
+
avatars: (['xs', 'sm', 'md', 'lg', 'xl'] as const).map((size) => ({ name: 'Jane Doe', size, shape })),
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
const members: AvatarMockOptions[] = [
|
|
43
|
+
{ src: avatarPlaceholderImage, name: 'Jane Doe' },
|
|
44
|
+
{ name: 'Alex Kim', color: 'brand' },
|
|
45
|
+
{ name: 'Sam Lee', color: 'warning' },
|
|
46
|
+
{ name: 'Max Roe', color: 'danger' },
|
|
47
|
+
{ name: 'Ada Byron' },
|
|
48
|
+
{ name: 'Kai Berg' },
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
export default definePart({
|
|
52
|
+
note: 'Decided rules only (Q99 rule a)',
|
|
53
|
+
madeBy: ['claude-opus-5-5'],
|
|
54
|
+
states: {
|
|
55
|
+
themes: themed('circle'),
|
|
56
|
+
'themes-square': themed('square'),
|
|
57
|
+
forms: forms('circle'),
|
|
58
|
+
'forms-square': forms('square'),
|
|
59
|
+
sizes: sizes('circle'),
|
|
60
|
+
'sizes-square': sizes('square'),
|
|
61
|
+
group: { groups: [{ avatars: members.slice(0, 4) }] },
|
|
62
|
+
'group-overflow': {
|
|
63
|
+
groups: [
|
|
64
|
+
{ avatars: members, maxVisible: 3 },
|
|
65
|
+
{ avatars: members.map((each) => ({ ...each, size: 'sm' as const, shape: 'square' as const })), maxVisible: 4 },
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
describe: {
|
|
70
|
+
themes:
|
|
71
|
+
'Initials avatars in the default, brand, warning and danger themes as circles; check that each fill differs and the initials read on it.',
|
|
72
|
+
'themes-square':
|
|
73
|
+
'The themed initials avatars as squares; check the corner radius and that the initials read on each fill.',
|
|
74
|
+
forms:
|
|
75
|
+
'Image, initials, given initials, icon and empty avatars as circles; check that each fallback fills the circle evenly.',
|
|
76
|
+
'forms-square':
|
|
77
|
+
'The image, initials, icon and empty avatars as squares; check that the image is cropped to the square.',
|
|
78
|
+
sizes: 'The initials avatar from xs to xl as circles; check that the text scales with each step.',
|
|
79
|
+
'sizes-square':
|
|
80
|
+
'The initials avatar from xs to xl as squares; check that the radius and text scale with each step.',
|
|
81
|
+
group: 'A group of four overlapping avatars; check the overlap and the ring that separates them.',
|
|
82
|
+
'group-overflow':
|
|
83
|
+
'Two groups that show three and four avatars plus a count; check the +n counter and the small square group.',
|
|
84
|
+
},
|
|
85
|
+
widths: [480],
|
|
86
|
+
frame: (body) => `<div class="avatar-frame">${body}</div>`,
|
|
87
|
+
render: (props: Props) =>
|
|
88
|
+
drawing({
|
|
89
|
+
body: avatarRow([
|
|
90
|
+
...(props.avatars ?? []).map((each) => avatar(each)),
|
|
91
|
+
...(props.groups ?? []).map((each) => avatarGroup(each.avatars, each.maxVisible)),
|
|
92
|
+
]),
|
|
93
|
+
styles: [avatarStyles, frame].join('\n'),
|
|
94
|
+
}),
|
|
95
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.badge-frame {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
padding: 2.4rem 1.6rem;
|
|
5
|
+
background: var(--et-surface-background);
|
|
6
|
+
color: var(--et-surface-text);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@layer components {
|
|
10
|
+
.et-badge:where([data-variant='filled'], [data-variant='tonal']) {
|
|
11
|
+
--_et-badge-border-color: var(--et-tone-text);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.badge-frame-narrow {
|
|
16
|
+
inline-size: 16rem;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@layer components {
|
|
20
|
+
.et-badge[data-long-label] {
|
|
21
|
+
--et-badge-max-width: 12rem;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.et-badge[data-long-label] .et-badge-label {
|
|
25
|
+
min-inline-size: 0;
|
|
26
|
+
overflow: hidden;
|
|
27
|
+
text-overflow: ellipsis;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
text-box: normal;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { badge, badgeRow, badgeStyles, BadgeMockOptions } from '@ethlete/components/design/badge';
|
|
2
|
+
import { SDK_ICONS } from '@ethlete/components/design/icon-set';
|
|
3
|
+
import { definePart, drawing } from '@design-system';
|
|
4
|
+
import frame from './badge.css?inline';
|
|
5
|
+
|
|
6
|
+
const icon = (name: string) => SDK_ICONS.find((each) => each.name === name);
|
|
7
|
+
|
|
8
|
+
type Variant = NonNullable<BadgeMockOptions['variant']>;
|
|
9
|
+
|
|
10
|
+
type Props = { badges: BadgeMockOptions[]; narrow?: boolean };
|
|
11
|
+
|
|
12
|
+
const themed = (variant: Variant, size?: BadgeMockOptions['size']): Props => ({
|
|
13
|
+
badges: [
|
|
14
|
+
{ label: 'Default', variant, size },
|
|
15
|
+
{ label: 'Active', variant, size, color: 'brand' },
|
|
16
|
+
{ label: 'Pending', variant, size, color: 'warning' },
|
|
17
|
+
{ label: '3 errors', variant, size, color: 'danger' },
|
|
18
|
+
],
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const withIcons = (variant: Variant): Props => ({
|
|
22
|
+
badges: [
|
|
23
|
+
{ label: 'Verified', variant, icon: icon('et-check'), color: 'brand' },
|
|
24
|
+
{ label: 'Featured', variant, icon: icon('et-star'), iconAlignment: 'end', color: 'warning' },
|
|
25
|
+
],
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const sizes = (variant: Variant): Props => ({
|
|
29
|
+
badges: (['sm', 'md', 'lg'] as const).map((size) => ({ label: size, variant, size })),
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const longLabel = (variant: Variant): Props => ({
|
|
33
|
+
narrow: true,
|
|
34
|
+
badges: [
|
|
35
|
+
{
|
|
36
|
+
label: 'Awaiting confirmation from the tournament organiser',
|
|
37
|
+
variant,
|
|
38
|
+
color: 'warning',
|
|
39
|
+
attributes: 'data-long-label',
|
|
40
|
+
},
|
|
41
|
+
],
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export default definePart({
|
|
45
|
+
note: 'Decided rules only',
|
|
46
|
+
madeBy: ['claude-opus-5-5', 'claude-sonnet-5-5'],
|
|
47
|
+
states: {
|
|
48
|
+
filled: themed('filled'),
|
|
49
|
+
tonal: themed('tonal'),
|
|
50
|
+
outline: themed('outline'),
|
|
51
|
+
'filled-icons': withIcons('filled'),
|
|
52
|
+
'tonal-icons': withIcons('tonal'),
|
|
53
|
+
'outline-icons': withIcons('outline'),
|
|
54
|
+
'filled-sizes': sizes('filled'),
|
|
55
|
+
'tonal-sizes': sizes('tonal'),
|
|
56
|
+
'outline-sizes': sizes('outline'),
|
|
57
|
+
'filled-long-label': longLabel('filled'),
|
|
58
|
+
'tonal-long-label': longLabel('tonal'),
|
|
59
|
+
'outline-long-label': longLabel('outline'),
|
|
60
|
+
},
|
|
61
|
+
describe: {
|
|
62
|
+
filled: 'Filled badges in the default, brand, warning and danger themes; check that each label reads on its fill.',
|
|
63
|
+
tonal: 'Tonal badges in the four themes; check that each tint differs and the coloured label reads on it.',
|
|
64
|
+
outline: 'Outlined badges in the four themes; check that each border shows against the page and the label reads.',
|
|
65
|
+
'filled-icons':
|
|
66
|
+
'Filled badges with a check icon at the start and a star at the end; check the icon gap and alignment.',
|
|
67
|
+
'tonal-icons': 'Tonal badges with a start and an end icon; check that the icons take the label colour.',
|
|
68
|
+
'outline-icons': 'Outlined badges with a start and an end icon; check the icon gap and that the border wraps both.',
|
|
69
|
+
'filled-sizes': 'Filled badges at sm, md and lg; check that height, padding and text scale per step.',
|
|
70
|
+
'tonal-sizes': 'Tonal badges at sm, md and lg; check that height, padding and text scale per step.',
|
|
71
|
+
'outline-sizes': 'Outlined badges at sm, md and lg; check that height, padding and text scale per step.',
|
|
72
|
+
'filled-long-label':
|
|
73
|
+
'A filled warning badge with a label longer than its 12rem cap; check that the label stays on one line and ends in an ellipsis.',
|
|
74
|
+
'tonal-long-label':
|
|
75
|
+
'A tonal warning badge with a label longer than its cap; check that the label stays on one line and ends in an ellipsis.',
|
|
76
|
+
'outline-long-label':
|
|
77
|
+
'An outlined warning badge with a label longer than its cap; check the one-line label with its ellipsis inside the border.',
|
|
78
|
+
},
|
|
79
|
+
widths: [480],
|
|
80
|
+
controls: {},
|
|
81
|
+
frame: (body) => `<div class="badge-frame">${body}</div>`,
|
|
82
|
+
render: (props: Props) =>
|
|
83
|
+
drawing({
|
|
84
|
+
body: props.narrow
|
|
85
|
+
? `<div class="badge-frame-narrow">${badgeRow(props.badges.map((each) => badge(each)))}</div>`
|
|
86
|
+
: badgeRow(props.badges.map((each) => badge(each))),
|
|
87
|
+
styles: [badgeStyles, frame].join('\n'),
|
|
88
|
+
}),
|
|
89
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.banner-frame {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 1.2rem;
|
|
5
|
+
padding: 2.4rem 1.6rem;
|
|
6
|
+
background: var(--et-surface-background);
|
|
7
|
+
color: var(--et-surface-text);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@layer components {
|
|
11
|
+
.et-banner {
|
|
12
|
+
border-color: var(--et-tone-text);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.et-banner .et-focus-ring {
|
|
16
|
+
--_et-focus-ring-color: var(--et-tone-text);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
import { banner, BannerMockType, bannerStyles } from '@ethlete/components/design/banner';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import frame from './banner.css?inline';
|
|
4
|
+
|
|
5
|
+
type Interaction = 'hover' | 'active' | 'focus-visible';
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
type: BannerMockType | 'all';
|
|
9
|
+
dismissible?: boolean;
|
|
10
|
+
close?: Interaction;
|
|
11
|
+
action?: Interaction;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const COLORS: Record<BannerMockType, string | undefined> = {
|
|
15
|
+
info: undefined,
|
|
16
|
+
success: undefined,
|
|
17
|
+
warning: 'warning',
|
|
18
|
+
error: 'danger',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const COPY: Record<BannerMockType, { heading: string; description: string; action?: string }> = {
|
|
22
|
+
info: {
|
|
23
|
+
heading: 'Round 4 is open',
|
|
24
|
+
description: 'Predictions close at kick-off of the first match.',
|
|
25
|
+
action: 'View fixtures',
|
|
26
|
+
},
|
|
27
|
+
success: { heading: 'Changes saved', description: 'Both teams and the referee get an email with the new time.' },
|
|
28
|
+
warning: {
|
|
29
|
+
heading: 'Storage almost full',
|
|
30
|
+
description: 'You are running low on storage space - consider upgrading your plan.',
|
|
31
|
+
action: 'Upgrade',
|
|
32
|
+
},
|
|
33
|
+
error: {
|
|
34
|
+
heading: 'Result not saved',
|
|
35
|
+
description: 'The connection dropped before the server answered.',
|
|
36
|
+
action: 'Retry',
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const mark = (control: string, interaction?: Interaction) =>
|
|
41
|
+
[`data-et-control="${control}" data-can-animate`, interaction && `data-et-force="${interaction}"`]
|
|
42
|
+
.filter(Boolean)
|
|
43
|
+
.join(' ');
|
|
44
|
+
|
|
45
|
+
const draw = (type: BannerMockType, { dismissible = true, close, action }: Omit<Props, 'type'> = {}) =>
|
|
46
|
+
banner({
|
|
47
|
+
type,
|
|
48
|
+
color: COLORS[type],
|
|
49
|
+
...COPY[type],
|
|
50
|
+
actionAttributes: mark('action', action),
|
|
51
|
+
dismissible,
|
|
52
|
+
dismissAttributes: mark('close', close),
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const render = ({ type, ...rest }: Props) =>
|
|
56
|
+
type === 'all'
|
|
57
|
+
? (['info', 'success', 'warning', 'error'] as const).map((each) => draw(each)).join('')
|
|
58
|
+
: draw(type, rest);
|
|
59
|
+
|
|
60
|
+
export default definePart({
|
|
61
|
+
note: 'Decided rules only',
|
|
62
|
+
consumerAction: 'its buttons are actions the consumer projects',
|
|
63
|
+
madeBy: ['claude-opus-5-5', 'design check'],
|
|
64
|
+
groups: [
|
|
65
|
+
{
|
|
66
|
+
label: 'Types',
|
|
67
|
+
states: ['info', 'success', 'warning', 'error', 'all'],
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
label: 'Variants',
|
|
71
|
+
states: ['without-dismiss', 'action'],
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
label: 'Interaction',
|
|
75
|
+
states: [
|
|
76
|
+
'close-hover',
|
|
77
|
+
'close-active',
|
|
78
|
+
'close-focus-visible',
|
|
79
|
+
'action-hover',
|
|
80
|
+
'action-active',
|
|
81
|
+
'action-focus-visible',
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: 'Error interaction',
|
|
86
|
+
states: ['error-close-focus-visible', 'error-action-focus-visible'],
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
states: {
|
|
90
|
+
info: { type: 'info' },
|
|
91
|
+
success: { type: 'success' },
|
|
92
|
+
warning: { type: 'warning' },
|
|
93
|
+
error: { type: 'error' },
|
|
94
|
+
'without-dismiss': { type: 'info', dismissible: false },
|
|
95
|
+
action: { type: 'info' },
|
|
96
|
+
'close-hover': { type: 'info', close: 'hover' },
|
|
97
|
+
'close-active': { type: 'info', close: 'active' },
|
|
98
|
+
'close-focus-visible': { type: 'info', close: 'focus-visible' },
|
|
99
|
+
'action-hover': { type: 'info', action: 'hover' },
|
|
100
|
+
'action-active': { type: 'info', action: 'active' },
|
|
101
|
+
'action-focus-visible': { type: 'info', action: 'focus-visible' },
|
|
102
|
+
'error-close-focus-visible': { type: 'error', close: 'focus-visible' },
|
|
103
|
+
'error-action-focus-visible': { type: 'error', action: 'focus-visible' },
|
|
104
|
+
all: { type: 'all' },
|
|
105
|
+
},
|
|
106
|
+
describe: {
|
|
107
|
+
info: 'The info banner with heading, text, View fixtures and close; check the icon, the action and the close button in one row.',
|
|
108
|
+
success: 'The success banner without an action; check its icon and colour and that the text fills the row.',
|
|
109
|
+
warning: 'The warning banner with Upgrade; check that the warning tint and the text keep their contrast.',
|
|
110
|
+
error: 'The error banner with Retry in the danger colour; check the icon and that Retry reads on the tint.',
|
|
111
|
+
'without-dismiss': 'The info banner without its close button; check that the text and action take the freed space.',
|
|
112
|
+
action: 'The info banner at rest as the action row of the grid; check View fixtures at rest.',
|
|
113
|
+
'close-hover': 'The info close button hovered; check the round hover tint behind the icon.',
|
|
114
|
+
'close-active': 'The info close button pressed; check that the round tint goes a step past hover.',
|
|
115
|
+
'close-focus-visible': 'The info close button with keyboard focus; check that the focus ring shows around it.',
|
|
116
|
+
'action-hover': 'View fixtures hovered; check that the action shows its hover look.',
|
|
117
|
+
'action-active': 'View fixtures pressed; check that the action goes a step past its hover look.',
|
|
118
|
+
'action-focus-visible': 'View fixtures with keyboard focus; check that the focus ring shows around it.',
|
|
119
|
+
'error-close-focus-visible':
|
|
120
|
+
'The error close button with keyboard focus; check that the ring stays visible on the danger tint.',
|
|
121
|
+
'error-action-focus-visible':
|
|
122
|
+
'Retry with keyboard focus on the error banner; check that the ring stays visible on the danger tint.',
|
|
123
|
+
all: 'The four banner types stacked; check that info, success, warning and error each read as their own colour.',
|
|
124
|
+
},
|
|
125
|
+
motions: {
|
|
126
|
+
'close-hover-in': { from: 'info', to: 'close-hover' },
|
|
127
|
+
'close-hover-out': { from: 'close-hover', to: 'info' },
|
|
128
|
+
'close-press': { from: 'close-hover', to: 'close-active' },
|
|
129
|
+
'close-release': { from: 'close-active', to: 'close-hover' },
|
|
130
|
+
'action-hover-in': { from: 'action', to: 'action-hover' },
|
|
131
|
+
'action-hover-out': { from: 'action-hover', to: 'action' },
|
|
132
|
+
'action-press': { from: 'action-hover', to: 'action-active' },
|
|
133
|
+
'action-release': { from: 'action-active', to: 'action-hover' },
|
|
134
|
+
'action-tap': { from: 'action', to: 'action-active' },
|
|
135
|
+
'action-lift': { from: 'action-active', to: 'action' },
|
|
136
|
+
},
|
|
137
|
+
grid: {
|
|
138
|
+
columns: ['rest', 'hover', 'active', 'focus-visible'] as const,
|
|
139
|
+
rows: {
|
|
140
|
+
close: { rest: 'info', hover: 'close-hover', active: 'close-active', 'focus-visible': 'close-focus-visible' },
|
|
141
|
+
action: {
|
|
142
|
+
rest: 'action',
|
|
143
|
+
hover: 'action-hover',
|
|
144
|
+
active: 'action-active',
|
|
145
|
+
'focus-visible': 'action-focus-visible',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
},
|
|
149
|
+
widths: [480],
|
|
150
|
+
controls: {
|
|
151
|
+
close: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
152
|
+
action: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
153
|
+
},
|
|
154
|
+
frame: (body) => `<div class="banner-frame">${body}</div>`,
|
|
155
|
+
render: (props: Props) =>
|
|
156
|
+
drawing({
|
|
157
|
+
body: render(props),
|
|
158
|
+
styles: [bannerStyles, frame].join('\n'),
|
|
159
|
+
}),
|
|
160
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.t-frame {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: grid;
|
|
4
|
+
justify-items: start;
|
|
5
|
+
gap: 1.6rem;
|
|
6
|
+
padding: 1.6rem;
|
|
7
|
+
background: var(--et-surface-background);
|
|
8
|
+
color: var(--et-surface-text);
|
|
9
|
+
font-size: 1.4rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@layer components {
|
|
13
|
+
.et-bracket-participants-toggle {
|
|
14
|
+
--_et-focus-ring-color: var(--et-tone-text);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.et-bracket-participants-toggle[data-pressed='true']:where([data-pressed-variant='filled']) {
|
|
18
|
+
--et-button-shadow: inset 0 0 0 1px var(--et-tone-text);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.et-match-card:where([data-winner='home']) .et-match-card-side:where([data-side='home']),
|
|
22
|
+
.et-match-card:where([data-winner='away']) .et-match-card-side:where([data-side='away']) {
|
|
23
|
+
--_et-match-card-side-marker-color: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.et-match-card-live-dot {
|
|
27
|
+
background: light-dark(var(--et-tone-text), var(--et-tone-fill));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.et-bracket-final-host {
|
|
31
|
+
border-color: light-dark(
|
|
32
|
+
var(--et-tone-text),
|
|
33
|
+
color-mix(in srgb, var(--et-tone-fill, currentColor) 45%, transparent)
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.et-bracket-default-match-card .et-match-card-meta,
|
|
38
|
+
.et-bracket-default-match-card .et-match-card-sides {
|
|
39
|
+
grid-area: 1 / 1;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.et-bracket-default-match-card .et-match-card-meta {
|
|
43
|
+
justify-self: end;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.et-bracket-default-match-card .et-match-card-live {
|
|
47
|
+
gap: 0;
|
|
48
|
+
padding: 0;
|
|
49
|
+
font-size: 0;
|
|
50
|
+
background: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.et-bracket-default-match-card:where([data-status='live']) .et-match-card-sides {
|
|
54
|
+
padding-inline-end: 12px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import {
|
|
2
|
+
bracket,
|
|
3
|
+
BracketMockMatch,
|
|
4
|
+
BracketMockOptions,
|
|
5
|
+
BracketMockParticipant,
|
|
6
|
+
BracketMockRound,
|
|
7
|
+
bracketParticipants,
|
|
8
|
+
bracketStyles,
|
|
9
|
+
} from '@ethlete/components/design/bracket';
|
|
10
|
+
import { definePart, drawing, interactionRows } from '@design-system';
|
|
11
|
+
import frame from './bracket.css?inline';
|
|
12
|
+
|
|
13
|
+
type Interaction = 'hover' | 'active' | 'focus-visible';
|
|
14
|
+
|
|
15
|
+
type Props = {
|
|
16
|
+
stage: 'in-progress' | 'decided' | 'groups-done';
|
|
17
|
+
density?: 'compact';
|
|
18
|
+
mirrored?: boolean;
|
|
19
|
+
journey?: { participantId: string; pinned?: boolean };
|
|
20
|
+
legend?: { focused?: string; focusVisible?: string; forced?: { participantId: string; interaction: Interaction } };
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const NBR: BracketMockParticipant = { id: 'nbr', name: 'Northbridge Rovers', code: 'NBR', seed: 1 };
|
|
24
|
+
const HBC: BracketMockParticipant = { id: 'hbc', name: 'Harbor City', code: 'HBC', seed: 2 };
|
|
25
|
+
const EVU: BracketMockParticipant = { id: 'evu', name: 'Eastvale United', code: 'EVU', seed: 3 };
|
|
26
|
+
const MBA: BracketMockParticipant = { id: 'mba', name: 'Millbrook Athletic', code: 'MBA', seed: 4 };
|
|
27
|
+
const RSW: BracketMockParticipant = { id: 'rsw', name: 'Riverside Wanderers', code: 'RSW', seed: 5 };
|
|
28
|
+
const SGF: BracketMockParticipant = { id: 'sgf', name: 'Stonegate FC', code: 'SGF', seed: 6 };
|
|
29
|
+
const WPA: BracketMockParticipant = { id: 'wpa', name: 'Westport Albion', code: 'WPA', seed: 7 };
|
|
30
|
+
const LST: BracketMockParticipant = { id: 'lst', name: 'Lakeside Town', code: 'LST', seed: 8 };
|
|
31
|
+
|
|
32
|
+
const PARTICIPANTS = [NBR, HBC, EVU, MBA, RSW, SGF, WPA, LST];
|
|
33
|
+
|
|
34
|
+
const won = (
|
|
35
|
+
home: BracketMockParticipant,
|
|
36
|
+
away: BracketMockParticipant,
|
|
37
|
+
homeScore: number,
|
|
38
|
+
awayScore: number,
|
|
39
|
+
): BracketMockMatch => ({
|
|
40
|
+
home,
|
|
41
|
+
away,
|
|
42
|
+
homeScore,
|
|
43
|
+
awayScore,
|
|
44
|
+
winnerSide: homeScore > awayScore ? 'home' : 'away',
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
const QUARTER_FINALS: BracketMockRound = {
|
|
48
|
+
name: 'Quarter-finals',
|
|
49
|
+
matches: [won(NBR, LST, 3, 0), won(MBA, RSW, 1, 2), won(EVU, SGF, 2, 1), won(HBC, WPA, 0, 1)],
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const roundsOf = (stage: Props['stage']): BracketMockRound[] => {
|
|
53
|
+
if (stage === 'groups-done') {
|
|
54
|
+
return [
|
|
55
|
+
{ ...QUARTER_FINALS, type: 'single-elimination-bracket' },
|
|
56
|
+
{
|
|
57
|
+
name: 'Semi-finals',
|
|
58
|
+
type: 'single-elimination-bracket',
|
|
59
|
+
matches: [won(NBR, RSW, 2, 1), won(EVU, WPA, 1, 3)],
|
|
60
|
+
},
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const decided = stage === 'decided';
|
|
65
|
+
|
|
66
|
+
return [
|
|
67
|
+
QUARTER_FINALS,
|
|
68
|
+
{
|
|
69
|
+
name: 'Semi-finals',
|
|
70
|
+
matches: [
|
|
71
|
+
won(NBR, RSW, 2, 1),
|
|
72
|
+
decided ? won(EVU, WPA, 1, 3) : { home: EVU, away: WPA, status: 'live', homeScore: 1, awayScore: 1 },
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'Final',
|
|
77
|
+
matches: [decided ? won(NBR, WPA, 1, 2) : { home: NBR, status: 'scheduled', startTime: '11/21/2026 7:00 PM' }],
|
|
78
|
+
},
|
|
79
|
+
];
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const MARK = 'data-et-control="legend-toggle" data-can-animate';
|
|
83
|
+
|
|
84
|
+
const legendOf = (legend: NonNullable<Props['legend']>) => {
|
|
85
|
+
const forced =
|
|
86
|
+
legend.forced ??
|
|
87
|
+
(legend.focusVisible ? { participantId: legend.focusVisible, interaction: 'focus-visible' as const } : undefined);
|
|
88
|
+
const name = PARTICIPANTS.find((participant) => participant.id === forced?.participantId)?.name;
|
|
89
|
+
|
|
90
|
+
return bracketParticipants({ participants: PARTICIPANTS, focusedParticipantId: legend.focused })
|
|
91
|
+
.replaceAll('<button ', `<button ${MARK} `)
|
|
92
|
+
.replace(
|
|
93
|
+
new RegExp(`<button ${MARK} ([^>]*)><div class="et-button-icon"></div><div class="et-button-contents">${name}<`),
|
|
94
|
+
`<button ${MARK} data-et-force="${forced?.interaction}" $1><div class="et-button-icon"></div><div class="et-button-contents">${name}<`,
|
|
95
|
+
);
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const { states: interactionStates, grid } = interactionRows<
|
|
99
|
+
Props,
|
|
100
|
+
'legend-toggle' | 'legend-toggle-pressed',
|
|
101
|
+
Interaction
|
|
102
|
+
>(
|
|
103
|
+
{
|
|
104
|
+
'legend-toggle': { stage: 'decided', legend: {} },
|
|
105
|
+
'legend-toggle-pressed': { stage: 'decided', legend: { focused: 'evu' } },
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
interactions: ['hover', 'active', 'focus-visible'],
|
|
109
|
+
force: (props, interaction) => ({
|
|
110
|
+
...props,
|
|
111
|
+
legend: { ...props.legend, forced: { participantId: 'evu', interaction } },
|
|
112
|
+
}),
|
|
113
|
+
},
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
const render = (props: Props) => {
|
|
117
|
+
const options: BracketMockOptions = {
|
|
118
|
+
rounds: roundsOf(props.stage),
|
|
119
|
+
mirrored: props.mirrored,
|
|
120
|
+
journey: props.journey,
|
|
121
|
+
settings: {
|
|
122
|
+
density: props.density,
|
|
123
|
+
showContinueElement: props.stage === 'groups-done',
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
return `${props.legend ? legendOf(props.legend) : ''}${bracket(options)}`;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export default definePart({
|
|
131
|
+
note: "The SDK bracket (et-bracket) in flow, first drawing, drawn by the mock from @ethlete/components/design/bracket with the real markup and CSS: the bracket, its default round header, default match cell (et-match-card at compact), default final card (trophy, round name, champion line), continue cell and participants legend sheets, plus the match card, icon and button sheets; cell positions and connector paths come from @ethlete/bracket (createBracket, the single elimination grid, drawMan) as in the lib; default settings and labels, en-US kick-off. Emblems are the participant's letter fallback; the move transitions at rest. Fixtures are fictional: an eight-club single elimination knockout (Northbridge Rovers NBR 1, Harbor City HBC 2, Eastvale United EVU 3, Millbrook Athletic MBA 4, Riverside Wanderers RSW 5, Stonegate FC SGF 6, Westport Albion WPA 7, Lakeside Town LST 8) over Quarter-finals, Semi-finals and Final; the brand theme only. Framed as a page with 16px padding at 1040 and 1680 (the default bracket is 980px wide, the grid does not follow the frame width). States: in-progress (quarter-finals and one semi-final finished, the other semi-final live 1 : 1 with the LIVE badge, the final with Northbridge Rovers against TBD and the kick-off, champion not decided), decided (Westport Albion beat Northbridge Rovers 2 : 1, the champion line), journey-hover (the hover journey of Riverside Wanderers: the rest at half opacity, the semi-final where they went out dashed and their row struck through), journey-pinned (the pinned journey of the champion with the participants legend, its toggle pressed; the rest at a quarter opacity), legend-focus-visible (the Eastvale United toggle forced), compact (density compact, in-progress), continue (quarter-finals and semi-finals with the continue cell, 2 winners advance, dashed connectors) and mirrored (decided, folded in half, compact, so it fits 1040). Numbers (light / dark), from shot pixels at scale 2 at 1040, brand mint, a: winner bar (primary) vs card 1.33 / 13.50; live dot (primary) vs its badge tint 1.24 / 9.67, vs card 1.33 / 13.28; badge tint vs card 1.07 / 1.37; final frame edge (45 % mint) vs page 1.22 / 3.90, vs the glow beside it 1.15 / 2.98, vs its own tint 1.18 / 3.50; the final tint (6 %) vs page 1.03 / 1.11; pressed legend toggle (mint fill) vs page 1.33 / 13.50, its label 15.82 / 15.82; legend toggle focus ring (primary) vs page 1.37 / 13.06; outline toggle edge and label (ink) 7.68 light. Q98 numbers only: connectors, card edges, the continue cell's dashed edge and the journey endpoint's dashed outline vs page 1.26 / 1.73. The journey dimming lowers text under 4.5:1 by design: at half opacity the check reports a dimmed winner code at 3.41 / 2.68 and the dimmed Final label at 2.14 / 3.93, at a quarter opacity 1.73 / 2.21, the struck-through row that went out (0.55 opacity) 2.62 / 2.98; exempted with contrast exceptions, an open point, no decided rule. Decided rules that arise: Q88 (the legend toggle focus ring; the default cells are not links, so no card ring) and Q99a (the winner bar, the live dot and the final frame edge take ink in light; the pressed legend toggle is a mint fill, so it takes a 1px inset ink edge). The ink edge on a mint fill arises, so Q102 arises: b draws the edge in both schemes, c keeps dark as today (light-dark(ink, transparent)). The badge tint and the final tint are band tints, not fills, so they are kept, and the final glow is kept. Q101 does not arise: the only filled button is a pressed toggle, whose hover keeps the fill in the lib. Findings for later: (1) lib bug: the live meta row grows the bracket's compact card past matchHeight: the live semi-final is 87px tall in its 75px cell (65 in 52 at compact), so it hangs 12px (13px) below its cell, the incoming connector meets it 6px above its centre and the gap to the card below shrinks. Drawn as is in every variant. (2) In the mirrored compact layout the final card in its 200px column shows full names and cuts the loser ('Northbridge Rove…') next to the score, where every other compact cell shows codes. (3) The eliminated row's line-through also strikes the emblem letter and the score. (4) The lit journey path keeps the grey connector colour (1.26 / 1.73), so it reads only by the rest fading; the dimmed text is under 4.5:1 (numbers above). (5) In dark the final glow lightens the page beside the frame edge, so the edge drops from 3.90 against the bare page to 2.98 against the glow. Later rounds, left out here: double elimination, swiss and round robin layouts, the third-place match, the mirrored layout at default density, the rounds list and adaptive layout, the skeleton, the prediction pick card, a custom match component on a link (card hover and focus ring), emblems as images, scheduled cells with kick-off times, long names, RTL and the move transitions. Omitted option value (Q182): alignRoundHeaders center draws the same pixels as start, because the default round header fills its column and is already centred.",
|
|
132
|
+
consumerAction: 'a press on a team runs the handler the consumer binds',
|
|
133
|
+
madeBy: ['claude-opus-5-5', 'design check'],
|
|
134
|
+
states: {
|
|
135
|
+
'in-progress': { stage: 'in-progress' },
|
|
136
|
+
decided: { stage: 'decided' },
|
|
137
|
+
'journey-hover': { stage: 'decided', journey: { participantId: 'rsw' } },
|
|
138
|
+
'journey-pinned': {
|
|
139
|
+
stage: 'decided',
|
|
140
|
+
journey: { participantId: 'wpa', pinned: true },
|
|
141
|
+
legend: { focused: 'wpa' },
|
|
142
|
+
},
|
|
143
|
+
...interactionStates,
|
|
144
|
+
compact: { stage: 'in-progress', density: 'compact' },
|
|
145
|
+
continue: { stage: 'groups-done' },
|
|
146
|
+
mirrored: { stage: 'decided', density: 'compact', mirrored: true },
|
|
147
|
+
},
|
|
148
|
+
describe: {
|
|
149
|
+
'in-progress':
|
|
150
|
+
'Quarter-finals done, one semi-final live at 1 : 1, the final still open; check the LIVE badge, the kick-off and the connectors.',
|
|
151
|
+
decided: 'Westport Albion beat Northbridge Rovers 2 : 1 in the final; check the winner bars and the champion line.',
|
|
152
|
+
'journey-hover':
|
|
153
|
+
'The hover journey of Riverside Wanderers; check that the rest dims and their lost semi-final is dashed and struck through.',
|
|
154
|
+
'journey-pinned':
|
|
155
|
+
'The pinned journey of the champion with the legend; check the pressed toggle and the rest at a quarter opacity.',
|
|
156
|
+
'legend-toggle': 'The legend with every toggle at rest; check the outline edge and label against the other looks.',
|
|
157
|
+
'legend-toggle-hover': 'The Eastvale United toggle hovered; check its hover tint.',
|
|
158
|
+
'legend-toggle-active': 'The Eastvale United toggle pressed; check that it goes past hover.',
|
|
159
|
+
'legend-toggle-focus-visible':
|
|
160
|
+
'The Eastvale United toggle under keyboard focus; check the focus ring in the primary colour.',
|
|
161
|
+
'legend-toggle-pressed': 'The legend with Eastvale United pinned; check the filled toggle and the dimmed rest.',
|
|
162
|
+
'legend-toggle-pressed-hover': 'The pinned Eastvale United toggle hovered; check that it keeps its fill.',
|
|
163
|
+
'legend-toggle-pressed-active': 'The pinned Eastvale United toggle pressed; check the press look on the fill.',
|
|
164
|
+
'legend-toggle-pressed-focus-visible':
|
|
165
|
+
'The pinned Eastvale United toggle under keyboard focus; check the ring around the fill.',
|
|
166
|
+
compact:
|
|
167
|
+
'The in-progress bracket at compact density; check that cells shrink and the live card still fits its cell.',
|
|
168
|
+
continue:
|
|
169
|
+
'Quarter- and semi-finals with the continue cell; check the dashed connectors and the 2 winners advance cell.',
|
|
170
|
+
mirrored: 'The decided bracket folded in half at compact density; check that both halves meet at the final card.',
|
|
171
|
+
},
|
|
172
|
+
grid,
|
|
173
|
+
controls: {
|
|
174
|
+
'legend-toggle': { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
175
|
+
},
|
|
176
|
+
widths: [1040, 1680],
|
|
177
|
+
frame: (body) => `<div class="t-frame">${body}</div>`,
|
|
178
|
+
render: (props: Props) =>
|
|
179
|
+
drawing({
|
|
180
|
+
body: render(props),
|
|
181
|
+
styles: [bracketStyles, frame].join('\n'),
|
|
182
|
+
}),
|
|
183
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.breadcrumb-frame {
|
|
2
|
+
padding: 2.4rem 1.6rem;
|
|
3
|
+
background: var(--et-surface-background);
|
|
4
|
+
color: var(--et-surface-text);
|
|
5
|
+
font-size: 1.4rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.breadcrumb-overflow-stage {
|
|
9
|
+
display: grid;
|
|
10
|
+
gap: 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.breadcrumb-overflow-stage > .et-breadcrumb-mock-pane {
|
|
14
|
+
margin-inline-start: 4.2rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@layer components {
|
|
18
|
+
.et-breadcrumb-item:where(a, button):focus-visible {
|
|
19
|
+
outline-color: var(--et-tone-text);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.et-breadcrumb-overflow-trigger {
|
|
23
|
+
--_et-focus-ring-color: var(--et-tone-text);
|
|
24
|
+
}
|
|
25
|
+
}
|