@ethlete/components 0.1.0-next.9 → 1.0.0-next.100
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 +3480 -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 +145 -0
- package/design/button.ts +118 -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 +216 -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 +147 -0
- package/design/notification.ts +133 -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 +129 -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 +59 -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 +29 -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 +57 -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 +25 -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 +33 -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 +55 -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 +52 -0
- package/design/sdk/components/slider/slider.ts +133 -0
- package/design/sdk/components/standings/standings.css +33 -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 +48 -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 +99 -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 +660 -0
- package/design/sdk/foundations/colors/colors.ts +216 -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 +101 -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 +593 -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/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 +115320 -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 +116 -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-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-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 +193 -0
- package/package.json +47 -17
- package/src/lib/accordion/accordion-group.component.css +12 -0
- package/src/lib/accordion/accordion.component.css +237 -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 +114 -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-styles.component.css +10 -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 +127 -0
- package/src/lib/button/button-properties-styles.component.css +195 -0
- package/src/lib/button/button.component.css +242 -0
- package/src/lib/button/button.types.ts +33 -0
- package/src/lib/button/fab.component.css +260 -0
- package/src/lib/button/icon-button.component.css +156 -0
- package/src/lib/button/split-button.component.css +106 -0
- package/src/lib/button/text-button.component.css +142 -0
- package/src/lib/button/window-control-button.component.css +225 -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 +376 -0
- package/src/lib/card/card.component.css +43 -0
- package/src/lib/carousel/carousel-autoplay-styles.component.css +177 -0
- package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
- package/src/lib/carousel/carousel.component.css +232 -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 +163 -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 +387 -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 +291 -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 +110 -0
- package/src/lib/forms/color-input/color-picker-panel.component.css +353 -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 +115 -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 +293 -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 +176 -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 +409 -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 +382 -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 +104 -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 +104 -0
- package/src/lib/forms/otp-input/otp-input.component.css +222 -0
- package/src/lib/forms/phone-input/phone-input.component.css +127 -0
- package/src/lib/forms/rating/rating.component.css +198 -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 +92 -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 +203 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +177 -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 +149 -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 +119 -0
- package/src/lib/forms/select/select.component.css +247 -0
- package/src/lib/forms/selection-card-styles.component.css +148 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +108 -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 +172 -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 +154 -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 +199 -0
- package/src/lib/forms/slider/range-slider.component.css +440 -0
- package/src/lib/forms/slider/slider.component.css +434 -0
- package/src/lib/forms/switch/switch.component.css +217 -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 +177 -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 +556 -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 +307 -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 +170 -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 +186 -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 +56 -0
- package/src/lib/scheduler/scheduler-appointment-styles.component.css +127 -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 +145 -0
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +271 -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 +138 -0
- package/src/lib/standings/standings-pick.component.css +216 -0
- package/src/lib/standings/standings.component.css +353 -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 +96 -0
- package/src/lib/stream/pip/pip-window.component.css +222 -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 +66 -0
- package/src/lib/table/table-row-box-styles.component.css +272 -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 +865 -0
- package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +37 -0
- package/src/lib/tabs/tab-bar-styles.component.css +230 -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 +221 -0
- package/src/lib/timeline/timeline-item.component.css +142 -0
- package/src/lib/timeline/timeline.component.css +7 -0
- package/src/lib/toggletip/toggletip.component.css +83 -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 +37454 -3814
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { brandLoader, loaderStyles, progressBar, spinner } from '@ethlete/components/design/loader';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import frame from './loader.css?inline';
|
|
4
|
+
|
|
5
|
+
type Props = {
|
|
6
|
+
form: 'spinner' | 'spinner-determinate' | 'spinner-themed' | 'progress-bar' | 'progress-bar-themed' | 'brand-loader';
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const row = (items: string[]) => `<div class="loader-row">${items.join('')}</div>`;
|
|
10
|
+
|
|
11
|
+
const column = (items: string[]) => `<div class="loader-column">${items.join('')}</div>`;
|
|
12
|
+
|
|
13
|
+
const render = ({ form }: Props) => {
|
|
14
|
+
switch (form) {
|
|
15
|
+
case 'spinner':
|
|
16
|
+
return row([
|
|
17
|
+
spinner(),
|
|
18
|
+
spinner({ diameter: 45, strokeWidth: 2 }),
|
|
19
|
+
spinner({ diameter: 45, strokeWidth: 2, track: true }),
|
|
20
|
+
spinner({ diameter: 72, strokeWidth: 4, track: true }),
|
|
21
|
+
]);
|
|
22
|
+
case 'spinner-determinate':
|
|
23
|
+
return row([
|
|
24
|
+
spinner({ diameter: 45, strokeWidth: 2, track: true, value: 0 }),
|
|
25
|
+
spinner({ diameter: 45, strokeWidth: 2, track: true, value: 65 }),
|
|
26
|
+
spinner({ diameter: 45, strokeWidth: 2, track: true, value: 100 }),
|
|
27
|
+
spinner({ diameter: 45, strokeWidth: 2, value: 65 }),
|
|
28
|
+
]);
|
|
29
|
+
case 'spinner-themed':
|
|
30
|
+
return row([
|
|
31
|
+
spinner({ diameter: 45, strokeWidth: 2, track: true, color: 'brand' }),
|
|
32
|
+
spinner({ diameter: 45, strokeWidth: 2, track: true, value: 65, color: 'brand' }),
|
|
33
|
+
spinner({ diameter: 45, strokeWidth: 2, track: true, color: 'danger' }),
|
|
34
|
+
spinner({ diameter: 45, strokeWidth: 2, track: true, color: 'warning' }),
|
|
35
|
+
]);
|
|
36
|
+
case 'progress-bar':
|
|
37
|
+
return column([progressBar({ value: 42 }), progressBar({ value: 100 }), progressBar()]);
|
|
38
|
+
case 'progress-bar-themed':
|
|
39
|
+
return column([
|
|
40
|
+
progressBar({ value: 42, color: 'brand' }),
|
|
41
|
+
progressBar({ color: 'brand' }),
|
|
42
|
+
progressBar({ value: 42, color: 'danger' }),
|
|
43
|
+
progressBar({ value: 42, color: 'warning' }),
|
|
44
|
+
]);
|
|
45
|
+
case 'brand-loader':
|
|
46
|
+
return row([brandLoader()]);
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export default definePart({
|
|
51
|
+
note: 'Decided rules only',
|
|
52
|
+
madeBy: ['claude-opus-5-5'],
|
|
53
|
+
states: {
|
|
54
|
+
spinner: { form: 'spinner' },
|
|
55
|
+
'spinner-determinate': { form: 'spinner-determinate' },
|
|
56
|
+
'spinner-themed': { form: 'spinner-themed' },
|
|
57
|
+
'progress-bar': { form: 'progress-bar' },
|
|
58
|
+
'progress-bar-themed': { form: 'progress-bar-themed' },
|
|
59
|
+
'brand-loader': { form: 'brand-loader' },
|
|
60
|
+
},
|
|
61
|
+
describe: {
|
|
62
|
+
spinner:
|
|
63
|
+
'Indeterminate spinners in three sizes, with and without a track; check that stroke widths scale and tracks show.',
|
|
64
|
+
'spinner-determinate':
|
|
65
|
+
'Determinate spinners at 0, 65 and 100 percent; check that the arc length matches each value.',
|
|
66
|
+
'spinner-themed': 'Spinners in brand, danger and warning; check that each arc and track takes its theme color.',
|
|
67
|
+
'progress-bar': 'Progress bars at 42 and 100 percent and indeterminate; check that the fill matches each value.',
|
|
68
|
+
'progress-bar-themed':
|
|
69
|
+
'Progress bars in brand, danger and warning; check that each fill and track takes its theme color.',
|
|
70
|
+
'brand-loader': 'The brand loader; check that the mark shows whole and centered in the frame.',
|
|
71
|
+
},
|
|
72
|
+
widths: [480],
|
|
73
|
+
frame: (body) => `<div class="loader-frame">${body}</div>`,
|
|
74
|
+
render: (props: Props) =>
|
|
75
|
+
drawing({
|
|
76
|
+
body: render(props),
|
|
77
|
+
styles: [loaderStyles, frame].join('\n'),
|
|
78
|
+
}),
|
|
79
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { masonry, MasonryMockItem, masonryStyles } from '@ethlete/components/design/masonry';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import frame from './masonry.css?inline';
|
|
4
|
+
|
|
5
|
+
type Props = {
|
|
6
|
+
items: 'rest' | 'uneven' | 'few';
|
|
7
|
+
width?: number;
|
|
8
|
+
columnWidth?: number;
|
|
9
|
+
dir?: 'rtl';
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const tiles = (heights: readonly number[]): MasonryMockItem[] =>
|
|
13
|
+
heights.map((height, index) => ({ title: `Card ${index + 1}`, subtitle: `Height ${height}`, height }));
|
|
14
|
+
|
|
15
|
+
const ITEMS = {
|
|
16
|
+
rest: tiles([120, 160, 140, 180, 120, 150, 140, 110]),
|
|
17
|
+
uneven: tiles([80, 260, 120, 60, 200, 90, 170, 70, 130]),
|
|
18
|
+
few: tiles([120, 160, 100]),
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default definePart({
|
|
22
|
+
note: "Today's look",
|
|
23
|
+
madeBy: ['claude-opus-5-5'],
|
|
24
|
+
states: {
|
|
25
|
+
rest: { items: 'rest', columnWidth: 130 },
|
|
26
|
+
uneven: { items: 'uneven', columnWidth: 130 },
|
|
27
|
+
narrow: { items: 'rest', columnWidth: 130, width: 280 },
|
|
28
|
+
'single-column': { items: 'few' },
|
|
29
|
+
rtl: { items: 'rest', columnWidth: 130, dir: 'rtl' },
|
|
30
|
+
},
|
|
31
|
+
describe: {
|
|
32
|
+
rest: 'Eight cards of similar height in 130px columns; check that columns fill evenly with equal gaps.',
|
|
33
|
+
uneven: 'Nine cards of very different heights; check that each card goes to the shortest column and no gap opens.',
|
|
34
|
+
narrow: 'The cards in a 280px container; check that the layout drops to fewer columns without overflow.',
|
|
35
|
+
'single-column': 'Three cards with no column width; check that they stack in one column at full width.',
|
|
36
|
+
rtl: 'The cards in right-to-left; check that the first card starts at the right edge.',
|
|
37
|
+
},
|
|
38
|
+
widths: [480],
|
|
39
|
+
frame: (body) => `<div class="t-frame">${body}</div>`,
|
|
40
|
+
render: (props: Props) =>
|
|
41
|
+
drawing({
|
|
42
|
+
body: masonry({
|
|
43
|
+
items: ITEMS[props.items],
|
|
44
|
+
width: props.width,
|
|
45
|
+
columnWidth: props.columnWidth,
|
|
46
|
+
dir: props.dir,
|
|
47
|
+
}),
|
|
48
|
+
styles: [masonryStyles, frame].join('\n'),
|
|
49
|
+
}),
|
|
50
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.t-frame {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
padding: 1.6rem;
|
|
4
|
+
background: var(--et-surface-background-solid);
|
|
5
|
+
color: var(--et-surface-color-solid);
|
|
6
|
+
font-size: 1.4rem;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@layer components {
|
|
10
|
+
.et-match-card.et-focus-ring {
|
|
11
|
+
--_et-focus-ring-color: var(--et-theme-color-ink-solid);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.et-match-card:where([data-winner='home']) .et-match-card-side:where([data-side='home']),
|
|
15
|
+
.et-match-card:where([data-winner='away']) .et-match-card-side:where([data-side='away']) {
|
|
16
|
+
--_et-match-card-side-marker-color: light-dark(
|
|
17
|
+
var(--et-theme-color-ink-solid),
|
|
18
|
+
var(--et-theme-color-primary-solid)
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.et-match-card-live-dot {
|
|
23
|
+
background: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { matchCard, MatchMockOptions, matchStyles } from '@ethlete/components/design/match';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import frame from './match.css?inline';
|
|
4
|
+
|
|
5
|
+
type Props = { card: MatchMockOptions };
|
|
6
|
+
|
|
7
|
+
const HOME = { name: 'Northbridge Rovers', code: 'NBR', subtitle: 'Northbridge', seed: 1 };
|
|
8
|
+
const AWAY = { name: 'Harbor City', code: 'HBC', subtitle: 'Harbor', seed: 4 };
|
|
9
|
+
|
|
10
|
+
const finished: MatchMockOptions = {
|
|
11
|
+
home: HOME,
|
|
12
|
+
away: AWAY,
|
|
13
|
+
status: 'finished',
|
|
14
|
+
homeScore: 2,
|
|
15
|
+
awayScore: 1,
|
|
16
|
+
winnerSide: 'home',
|
|
17
|
+
label: 'Matchday 12',
|
|
18
|
+
startTime: '10/31/2026 8:00 PM',
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default definePart({
|
|
22
|
+
note: 'scale of the decided shape, Q182, lead merge',
|
|
23
|
+
consumerAction: 'its link goes where the consumer points it',
|
|
24
|
+
madeBy: ['claude-opus-5-5'],
|
|
25
|
+
states: {
|
|
26
|
+
finished: { card: finished },
|
|
27
|
+
live: {
|
|
28
|
+
card: {
|
|
29
|
+
home: HOME,
|
|
30
|
+
away: AWAY,
|
|
31
|
+
status: 'live',
|
|
32
|
+
homeScore: 1,
|
|
33
|
+
awayScore: 1,
|
|
34
|
+
label: 'Matchday 12',
|
|
35
|
+
liveColor: 'danger',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
scheduled: {
|
|
39
|
+
card: { home: HOME, away: AWAY, status: 'scheduled', label: 'Matchday 13', startTime: '11/07/2026 6:30 PM' },
|
|
40
|
+
},
|
|
41
|
+
series: {
|
|
42
|
+
card: {
|
|
43
|
+
home: HOME,
|
|
44
|
+
away: AWAY,
|
|
45
|
+
status: 'finished',
|
|
46
|
+
homeScore: 1,
|
|
47
|
+
awayScore: 2,
|
|
48
|
+
winnerSide: 'away',
|
|
49
|
+
gameScores: [
|
|
50
|
+
{ home: 13, away: 11 },
|
|
51
|
+
{ home: 9, away: 13 },
|
|
52
|
+
{ home: 10, away: 13 },
|
|
53
|
+
],
|
|
54
|
+
label: 'Semi-final, best of 3',
|
|
55
|
+
showSeeds: true,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
outcome: {
|
|
59
|
+
card: { home: HOME, away: AWAY, status: 'finished', resultKind: 'outcome', winnerSide: 'away', label: 'Round 3' },
|
|
60
|
+
},
|
|
61
|
+
tbd: {
|
|
62
|
+
card: { home: HOME, status: 'scheduled', label: 'Final', startTime: '11/21/2026 7:00 PM' },
|
|
63
|
+
},
|
|
64
|
+
compact: { card: { ...finished, size: 'compact' } },
|
|
65
|
+
expanded: { card: { ...finished, size: 'expanded' } },
|
|
66
|
+
wide: { card: { ...finished, size: 'wide' } },
|
|
67
|
+
hover: { card: { ...finished, interactive: true, force: 'hover' } },
|
|
68
|
+
'focus-visible': { card: { ...finished, interactive: true, force: 'focus-visible' } },
|
|
69
|
+
},
|
|
70
|
+
describe: {
|
|
71
|
+
finished:
|
|
72
|
+
'A finished match won 2-1 by the home side; check that the winner reads emphasized and the start time shows.',
|
|
73
|
+
live: 'A live match at 1-1; check that the live marker uses the danger color and both scores show.',
|
|
74
|
+
scheduled: 'A scheduled match with no score; check that the start time takes the place of the scores.',
|
|
75
|
+
series:
|
|
76
|
+
'A best-of-3 series won by the away side, with seeds; check that game scores and seeds line up with the teams.',
|
|
77
|
+
outcome:
|
|
78
|
+
'A finished match decided by outcome, not score; check that the away side reads as winner without numbers.',
|
|
79
|
+
tbd: 'A final with the away side not yet known; check that the empty side shows a placeholder, not a broken row.',
|
|
80
|
+
compact: 'The finished match at compact size; check that names and scores shrink but stay readable.',
|
|
81
|
+
expanded: 'The finished match at expanded size; check that the extra room adds detail without stretching rows.',
|
|
82
|
+
wide: 'The finished match at wide size; check that teams and scores spread on one line and stay aligned.',
|
|
83
|
+
hover: 'An interactive finished match under hover; check that the card gives a hover tint without moving.',
|
|
84
|
+
'focus-visible': 'An interactive finished match with keyboard focus; check that a focus ring wraps the whole card.',
|
|
85
|
+
},
|
|
86
|
+
widths: [280, 480, 720],
|
|
87
|
+
controls: {},
|
|
88
|
+
frame: (body) => `<div class="t-frame">${body}</div>`,
|
|
89
|
+
render: (props: Props) =>
|
|
90
|
+
drawing({
|
|
91
|
+
// Lib bug: et-match-score clips its 25px digit box to 24px (overflow: hidden at line-height 1.2), reported.
|
|
92
|
+
body: matchCard(props.card),
|
|
93
|
+
styles: [matchStyles, frame].join('\n'),
|
|
94
|
+
}),
|
|
95
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.menu-frame {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 0.8rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.menu-frame .et-menu {
|
|
7
|
+
--et-menu-max-height: 100rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@layer components {
|
|
11
|
+
.et-menu .et-menu-selection-item:not(.et-menu-selection-item--has-icon) .et-menu-item-check,
|
|
12
|
+
.et-menu .et-menu-selection-item--has-icon:is([aria-checked='true'], [aria-checked='mixed']) .et-menu-item-check {
|
|
13
|
+
color: var(--et-theme-color-ink-solid);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@layer components {
|
|
18
|
+
.et-menu .et-menu-item[data-active]:focus-visible {
|
|
19
|
+
outline: 2px solid var(--et-theme-color-ink-solid);
|
|
20
|
+
outline-offset: -2px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import {
|
|
2
|
+
menu,
|
|
3
|
+
type MenuMockItem,
|
|
4
|
+
type MenuMockRow,
|
|
5
|
+
type MenuMockSelectionItem,
|
|
6
|
+
menuStyles,
|
|
7
|
+
} from '@ethlete/components/design/menu';
|
|
8
|
+
import { definePart, drawing, interactionRows } from '@design-system';
|
|
9
|
+
import edge from './menu.css?inline';
|
|
10
|
+
|
|
11
|
+
type ItemInteraction = 'hover' | 'active' | 'focus-visible';
|
|
12
|
+
|
|
13
|
+
type Props = {
|
|
14
|
+
rows: MenuMockRow[];
|
|
15
|
+
forced?: ItemInteraction;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
const MARK = 'data-et-control="item"';
|
|
19
|
+
|
|
20
|
+
const row = (label: string, extra: Partial<Extract<MenuMockRow, { label: string }>> = {}) =>
|
|
21
|
+
({ label, attributes: MARK, ...extra }) as MenuMockRow;
|
|
22
|
+
|
|
23
|
+
const FULL: MenuMockRow[] = [
|
|
24
|
+
{ kind: 'label', label: 'Document' },
|
|
25
|
+
row('Rename', { shortcut: 'F2' }),
|
|
26
|
+
row('Duplicate', { shortcut: 'Ctrl D' }),
|
|
27
|
+
row('Move to', { submenu: true }),
|
|
28
|
+
row('Export as PDF', { disabled: true }),
|
|
29
|
+
{ kind: 'separator' },
|
|
30
|
+
{
|
|
31
|
+
kind: 'checkbox-group',
|
|
32
|
+
label: 'Show',
|
|
33
|
+
items: [
|
|
34
|
+
{ kind: 'checkbox', label: 'Comments', checked: true, attributes: MARK },
|
|
35
|
+
{ kind: 'checkbox', label: 'Suggestions', attributes: MARK },
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
{ kind: 'separator' },
|
|
39
|
+
{
|
|
40
|
+
kind: 'radio-group',
|
|
41
|
+
label: 'Sort by',
|
|
42
|
+
items: [
|
|
43
|
+
{ kind: 'radio', label: 'Name', checked: true, attributes: MARK },
|
|
44
|
+
{ kind: 'radio', label: 'Date', attributes: MARK },
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
{ kind: 'separator' },
|
|
48
|
+
row('Delete', { destructive: true }),
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
const isItemRow = (entry: MenuMockRow): entry is MenuMockItem | MenuMockSelectionItem =>
|
|
52
|
+
entry.kind === undefined || entry.kind === 'item' || entry.kind === 'checkbox' || entry.kind === 'radio';
|
|
53
|
+
|
|
54
|
+
const withForced = (rows: MenuMockRow[], forced?: ItemInteraction): MenuMockRow[] =>
|
|
55
|
+
rows.map((entry, index) =>
|
|
56
|
+
forced && index === 1 && isItemRow(entry)
|
|
57
|
+
? {
|
|
58
|
+
...entry,
|
|
59
|
+
active: true,
|
|
60
|
+
activeSource: forced === 'focus-visible' ? 'keyboard' : entry.activeSource,
|
|
61
|
+
attributes: [entry.attributes, `data-et-force="${forced}"`].filter(Boolean).join(' '),
|
|
62
|
+
}
|
|
63
|
+
: entry,
|
|
64
|
+
);
|
|
65
|
+
|
|
66
|
+
const { states, grid } = interactionRows(
|
|
67
|
+
{
|
|
68
|
+
item: { rows: [row('Rename'), row('Duplicate', { shortcut: 'Ctrl D' }), row('Move to', { submenu: true })] },
|
|
69
|
+
checked: {
|
|
70
|
+
rows: [
|
|
71
|
+
{ kind: 'checkbox', label: 'Suggestions', attributes: MARK },
|
|
72
|
+
{ kind: 'checkbox', label: 'Comments', checked: true, attributes: MARK },
|
|
73
|
+
{ kind: 'radio', label: 'Name', checked: true, attributes: MARK },
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
} satisfies Record<string, Props>,
|
|
77
|
+
{
|
|
78
|
+
interactions: ['hover', 'active', 'focus-visible'],
|
|
79
|
+
force: (props: Props, interaction: ItemInteraction): Props => ({ ...props, forced: interaction }),
|
|
80
|
+
},
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
export default definePart({
|
|
84
|
+
note: 'Decided rules only',
|
|
85
|
+
consumerAction: 'its items are actions the consumer passes in',
|
|
86
|
+
madeBy: ['claude-opus-5-5'],
|
|
87
|
+
states: {
|
|
88
|
+
menu: { rows: FULL },
|
|
89
|
+
...states,
|
|
90
|
+
disabled: { rows: [row('Rename'), row('Export as PDF', { disabled: true }), row('Duplicate')] },
|
|
91
|
+
'submenu-open': { rows: [row('Rename'), row('Move to', { submenu: 'open', active: true }), row('Duplicate')] },
|
|
92
|
+
},
|
|
93
|
+
describe: {
|
|
94
|
+
menu: 'The full menu with label, shortcuts, submenu, disabled, checkbox and radio groups and Delete; check alignment and separators.',
|
|
95
|
+
item: 'Three plain items, one with a shortcut, one with a submenu arrow; check that shortcuts and arrow align on the right.',
|
|
96
|
+
'item-hover': 'The items with Duplicate hovered; check that only that row takes the hover tint.',
|
|
97
|
+
'item-active': 'The items with Duplicate pressed; check that the pressed tint is deeper than hover.',
|
|
98
|
+
'item-focus-visible':
|
|
99
|
+
'The items with Duplicate focused by keyboard; check that the row shows the keyboard focus look.',
|
|
100
|
+
checked:
|
|
101
|
+
'A checkbox off, a checkbox on and a checked radio; check that the check and dot marks sit in the leading slot.',
|
|
102
|
+
'checked-hover': 'The checked row hovered; check that the tint shows and the check mark stays visible.',
|
|
103
|
+
'checked-active': 'The checked row pressed; check that the pressed tint keeps the check mark readable.',
|
|
104
|
+
'checked-focus-visible':
|
|
105
|
+
'The checked row focused by keyboard; check that focus shows without hiding the check mark.',
|
|
106
|
+
disabled: 'Export as PDF disabled between two items; check that it fades and its neighbours stay full.',
|
|
107
|
+
'submenu-open': 'Move to with its submenu open; check that the row stays highlighted as the open parent.',
|
|
108
|
+
},
|
|
109
|
+
grid,
|
|
110
|
+
widths: [480],
|
|
111
|
+
controls: {
|
|
112
|
+
item: { kind: 'row', input: ['pointer', 'keyboard'], disabled: true },
|
|
113
|
+
},
|
|
114
|
+
frame: (body) => `<div class="menu-frame">${body}</div>`,
|
|
115
|
+
render: ({ rows, forced }: Props) =>
|
|
116
|
+
drawing({
|
|
117
|
+
body: menu({ rows: withForced(rows, forced), color: 'brand' }),
|
|
118
|
+
styles: [menuStyles, edge].join('\n'),
|
|
119
|
+
}),
|
|
120
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.notification-frame {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: flex-end;
|
|
5
|
+
padding: 2.4rem 1.6rem;
|
|
6
|
+
background: var(--et-surface-background-solid);
|
|
7
|
+
color: var(--et-surface-color-solid);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@layer components {
|
|
11
|
+
.et-notification {
|
|
12
|
+
border-inline-start-color: var(--et-theme-color-ink-solid);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.et-notification .et-notification-icon {
|
|
16
|
+
color: var(--et-theme-color-ink-solid);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.et-notification .et-notification-spinner {
|
|
20
|
+
--et-spinner-color: var(--et-theme-color-ink-solid);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.et-notification .et-focus-ring {
|
|
24
|
+
--_et-focus-ring-color: var(--et-theme-color-ink-solid);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@layer components {
|
|
29
|
+
.et-notification-dismiss-btn:focus-visible {
|
|
30
|
+
opacity: 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { notification, notificationStack, notificationStyles } from '@ethlete/components/design/notification';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import edge from './notification.css?inline';
|
|
4
|
+
|
|
5
|
+
type Interaction = 'hover' | 'active' | 'focus-visible';
|
|
6
|
+
|
|
7
|
+
type Status = 'success' | 'error' | 'info' | 'loading';
|
|
8
|
+
|
|
9
|
+
type Props = {
|
|
10
|
+
status: Status | 'stack';
|
|
11
|
+
close?: Interaction;
|
|
12
|
+
action?: Interaction;
|
|
13
|
+
secondary?: Interaction;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const PANE = 'data-et-surface-fill';
|
|
17
|
+
|
|
18
|
+
const mark = (control: string, interaction?: Interaction) =>
|
|
19
|
+
[`data-et-control="${control}" data-can-animate`, interaction && `data-et-force="${interaction}"`]
|
|
20
|
+
.filter(Boolean)
|
|
21
|
+
.join(' ');
|
|
22
|
+
|
|
23
|
+
const draw = (status: Status, { close, action, secondary }: Omit<Props, 'status'> = {}) => {
|
|
24
|
+
const controls = {
|
|
25
|
+
dismissAttributes: mark('close', close),
|
|
26
|
+
attributes: PANE,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
switch (status) {
|
|
30
|
+
case 'success':
|
|
31
|
+
return notification({
|
|
32
|
+
status,
|
|
33
|
+
title: 'Kick-off moved',
|
|
34
|
+
message: 'Both teams and the referee get an email with the new time.',
|
|
35
|
+
action: { label: 'Undo', attributes: mark('action', action) },
|
|
36
|
+
...controls,
|
|
37
|
+
});
|
|
38
|
+
case 'error':
|
|
39
|
+
return notification({
|
|
40
|
+
status,
|
|
41
|
+
color: 'danger',
|
|
42
|
+
title: 'Result not saved',
|
|
43
|
+
message: 'The connection dropped before the server answered.',
|
|
44
|
+
action: { label: 'Retry', attributes: mark('action', action) },
|
|
45
|
+
secondaryAction: { label: 'Details', attributes: mark('secondary', secondary) },
|
|
46
|
+
...controls,
|
|
47
|
+
});
|
|
48
|
+
case 'info':
|
|
49
|
+
return notification({
|
|
50
|
+
status,
|
|
51
|
+
title: 'Round 4 is open',
|
|
52
|
+
message: 'Predictions close at kick-off of the first match.',
|
|
53
|
+
...controls,
|
|
54
|
+
});
|
|
55
|
+
case 'loading':
|
|
56
|
+
return notification({
|
|
57
|
+
status,
|
|
58
|
+
title: 'Uploading 3 files',
|
|
59
|
+
message: 'You can keep working while this runs.',
|
|
60
|
+
...controls,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
const render = ({ status, ...interactions }: Props) =>
|
|
66
|
+
status === 'stack'
|
|
67
|
+
? notificationStack((['loading', 'info', 'error', 'success'] as const).map((each) => draw(each)))
|
|
68
|
+
: draw(status, interactions);
|
|
69
|
+
|
|
70
|
+
export default definePart({
|
|
71
|
+
note: 'The SDK notification (et-notification), drawn by its mock from @ethlete/components/design: one notification per status with title, message, dismiss icon button and, where the status has them, a primary and a secondary text-button action; the four statuses in the stack column. The pane sits one surface level above the page, as the component forces elevation 1. Error takes the danger theme (the semantic error theme); success, info and loading take the theme around them, since the design product registers no success theme.',
|
|
72
|
+
consumerAction: 'its buttons are actions the consumer projects',
|
|
73
|
+
madeBy: ['claude-opus-5-5'],
|
|
74
|
+
states: {
|
|
75
|
+
success: { status: 'success' },
|
|
76
|
+
error: { status: 'error' },
|
|
77
|
+
info: { status: 'info' },
|
|
78
|
+
loading: { status: 'loading' },
|
|
79
|
+
'close-hover': { status: 'error', close: 'hover' },
|
|
80
|
+
'close-focus-visible': { status: 'error', close: 'focus-visible' },
|
|
81
|
+
'action-focus-visible': { status: 'error', action: 'focus-visible' },
|
|
82
|
+
'secondary-focus-visible': { status: 'error', secondary: 'focus-visible' },
|
|
83
|
+
'success-close-focus-visible': { status: 'success', close: 'focus-visible' },
|
|
84
|
+
'success-action-focus-visible': { status: 'success', action: 'focus-visible' },
|
|
85
|
+
stack: { status: 'stack' },
|
|
86
|
+
},
|
|
87
|
+
describe: {
|
|
88
|
+
success:
|
|
89
|
+
'The success notification with Undo; check the status icon, title, message, action and dismiss button align.',
|
|
90
|
+
error:
|
|
91
|
+
'The error notification in danger with Retry and Details; check that the danger theme colors icon and actions.',
|
|
92
|
+
info: 'The info notification with no action; check that the pane closes neatly after the message and dismiss button.',
|
|
93
|
+
loading: 'The loading notification; check that a spinner takes the status icon slot.',
|
|
94
|
+
'close-hover': 'The error notification with the dismiss button hovered; check that only the dismiss button tints.',
|
|
95
|
+
'close-focus-visible':
|
|
96
|
+
'The error notification with the dismiss button focused; check its focus ring is not clipped.',
|
|
97
|
+
'action-focus-visible': 'The error notification with Retry focused; check that the focus ring wraps Retry only.',
|
|
98
|
+
'secondary-focus-visible':
|
|
99
|
+
'The error notification with Details focused; check that the focus ring wraps Details only.',
|
|
100
|
+
'success-close-focus-visible':
|
|
101
|
+
'The success notification with the dismiss button focused; check the ring in the success pane.',
|
|
102
|
+
'success-action-focus-visible': 'The success notification with Undo focused; check that the ring wraps Undo.',
|
|
103
|
+
stack: 'The four statuses stacked; check even gaps and that each pane sits one surface level above the page.',
|
|
104
|
+
},
|
|
105
|
+
widths: [480],
|
|
106
|
+
controls: {
|
|
107
|
+
close: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
108
|
+
action: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
109
|
+
secondary: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
110
|
+
},
|
|
111
|
+
frame: (body) => `<div class="notification-frame">${body}</div>`,
|
|
112
|
+
render: (props: Props) =>
|
|
113
|
+
drawing({
|
|
114
|
+
body: render(props),
|
|
115
|
+
styles: [notificationStyles, edge].join('\n'),
|
|
116
|
+
}),
|
|
117
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
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-solid);
|
|
8
|
+
color: var(--et-surface-color-solid);
|
|
9
|
+
font-size: 1.4rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@layer components {
|
|
13
|
+
et-otp-input .et-otp-input-segment[data-caret] {
|
|
14
|
+
border-color: var(--et-theme-color-ink-solid);
|
|
15
|
+
outline-color: var(--et-theme-color-ink-solid);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
et-otp-input .et-otp-input-segment .et-otp-input-caret {
|
|
19
|
+
background: var(--et-theme-color-ink-solid);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
et-otp-input > et-label .et-label-required-marker {
|
|
23
|
+
color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@media (hover: hover) {
|
|
27
|
+
et-otp-input:not(:has(.et-otp-input-native:read-only)):hover .et-otp-input-segment:not([data-caret]) {
|
|
28
|
+
border-color: var(--et-surface-color-solid);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
et-otp-input[data-error]:not(:has(.et-otp-input-native:read-only)):hover .et-otp-input-segment:not([data-caret]) {
|
|
32
|
+
border-color: var(--et-theme-color-ink-solid);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|