@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,173 @@
|
|
|
1
|
+
import { alertDialog, dialog, dialogStyles, overlayBackdrop } from '@ethlete/components/design/dialog';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import edge from './dialog.css?inline';
|
|
4
|
+
|
|
5
|
+
type Interaction = 'hover' | 'active' | 'focus-visible';
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
kind: 'dialog' | 'alert';
|
|
9
|
+
long?: boolean;
|
|
10
|
+
close?: Interaction;
|
|
11
|
+
confirm?: Interaction;
|
|
12
|
+
cancel?: Interaction;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const PANE = 'data-et-surface-fill';
|
|
16
|
+
|
|
17
|
+
const mark = (control: string, interaction?: Interaction) =>
|
|
18
|
+
[`data-et-control="${control}" data-can-animate`, interaction && `data-et-force="${interaction}"`]
|
|
19
|
+
.filter(Boolean)
|
|
20
|
+
.join(' ');
|
|
21
|
+
|
|
22
|
+
const SHORT = '<p>Kick-off moves to 18:30. Both teams and the referee get an email with the new time.</p>';
|
|
23
|
+
|
|
24
|
+
const LONG = Array.from(
|
|
25
|
+
{ length: 8 },
|
|
26
|
+
(_, index) =>
|
|
27
|
+
`<p>Round ${index + 1}: every match of this round moves by one week. Teams that already confirmed get asked again, and open predictions stay open until the new kick-off.</p>`,
|
|
28
|
+
).join('');
|
|
29
|
+
|
|
30
|
+
const render = ({ kind, long, close, confirm, cancel }: Props) =>
|
|
31
|
+
kind === 'alert'
|
|
32
|
+
? alertDialog({
|
|
33
|
+
kind: 'confirm',
|
|
34
|
+
title: 'Delete this match?',
|
|
35
|
+
message: 'The match, its result and every prediction on it are removed. This cannot be undone.',
|
|
36
|
+
confirmLabel: 'Delete',
|
|
37
|
+
confirmAttributes: mark('confirm', confirm),
|
|
38
|
+
cancelAttributes: mark('cancel', cancel),
|
|
39
|
+
attributes: PANE,
|
|
40
|
+
})
|
|
41
|
+
: dialog({
|
|
42
|
+
title: long ? 'Move the season' : 'Move kick-off',
|
|
43
|
+
body: long ? LONG : SHORT,
|
|
44
|
+
close: mark('close', close),
|
|
45
|
+
dividers: long ? 'dynamic' : false,
|
|
46
|
+
actions: [
|
|
47
|
+
{ label: 'Cancel', variant: 'outline', attributes: mark('cancel', cancel) },
|
|
48
|
+
{ label: 'Save', attributes: mark('confirm', confirm) },
|
|
49
|
+
],
|
|
50
|
+
attributes: PANE,
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export default definePart({
|
|
54
|
+
note: 'Decided rules only',
|
|
55
|
+
consumerAction: 'its buttons are actions the consumer projects',
|
|
56
|
+
madeBy: ['claude-opus-5-5', 'design check'],
|
|
57
|
+
groups: [
|
|
58
|
+
{
|
|
59
|
+
label: 'Rest',
|
|
60
|
+
states: ['default', 'cancel', 'confirm', 'long-body'],
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
label: 'Interaction',
|
|
64
|
+
states: [
|
|
65
|
+
'close-hover',
|
|
66
|
+
'close-active',
|
|
67
|
+
'close-focus-visible',
|
|
68
|
+
'confirm-hover',
|
|
69
|
+
'confirm-active',
|
|
70
|
+
'confirm-focus-visible',
|
|
71
|
+
'cancel-hover',
|
|
72
|
+
'cancel-active',
|
|
73
|
+
'cancel-focus-visible',
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: 'Alert',
|
|
78
|
+
states: ['alert', 'alert-cancel-focus-visible', 'alert-confirm-focus-visible'],
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
states: {
|
|
82
|
+
default: { kind: 'dialog' },
|
|
83
|
+
cancel: { kind: 'dialog' },
|
|
84
|
+
confirm: { kind: 'dialog' },
|
|
85
|
+
'close-hover': { kind: 'dialog', close: 'hover' },
|
|
86
|
+
'close-active': { kind: 'dialog', close: 'active' },
|
|
87
|
+
'close-focus-visible': { kind: 'dialog', close: 'focus-visible' },
|
|
88
|
+
'confirm-hover': { kind: 'dialog', confirm: 'hover' },
|
|
89
|
+
'confirm-active': { kind: 'dialog', confirm: 'active' },
|
|
90
|
+
'confirm-focus-visible': { kind: 'dialog', confirm: 'focus-visible' },
|
|
91
|
+
'cancel-hover': { kind: 'dialog', cancel: 'hover' },
|
|
92
|
+
'cancel-active': { kind: 'dialog', cancel: 'active' },
|
|
93
|
+
'cancel-focus-visible': { kind: 'dialog', cancel: 'focus-visible' },
|
|
94
|
+
alert: { kind: 'alert' },
|
|
95
|
+
'alert-cancel-focus-visible': { kind: 'alert', cancel: 'focus-visible' },
|
|
96
|
+
'alert-confirm-focus-visible': { kind: 'alert', confirm: 'focus-visible' },
|
|
97
|
+
'long-body': { kind: 'dialog', long: true },
|
|
98
|
+
},
|
|
99
|
+
describe: {
|
|
100
|
+
default:
|
|
101
|
+
'Move kick-off over the backdrop with text, close, Cancel and Save; check the title row and the actions at the end.',
|
|
102
|
+
cancel: 'Move kick-off at rest as the Cancel row of the grid; check Cancel at rest.',
|
|
103
|
+
confirm: 'Move kick-off at rest as the Save row of the grid; check Save at rest.',
|
|
104
|
+
'close-hover': 'The close button hovered; check its round hover tint.',
|
|
105
|
+
'close-active': 'The close button pressed; check that the round tint goes a step past hover.',
|
|
106
|
+
'close-focus-visible': 'The close button with keyboard focus; check the focus ring around it.',
|
|
107
|
+
'confirm-hover': 'Save hovered; check that the filled button takes its hover fill.',
|
|
108
|
+
'confirm-active': 'Save pressed; check that the fill goes a step past hover.',
|
|
109
|
+
'confirm-focus-visible': 'Save with keyboard focus; check the focus ring around the filled button.',
|
|
110
|
+
'cancel-hover': 'Cancel hovered; check that the outline button takes its hover tint.',
|
|
111
|
+
'cancel-active': 'Cancel pressed; check that the tint goes a step past hover.',
|
|
112
|
+
'cancel-focus-visible': 'Cancel with keyboard focus; check the focus ring around the outline button.',
|
|
113
|
+
alert: 'The Delete this match? alert with Cancel and Delete; check the message and the two actions.',
|
|
114
|
+
'alert-cancel-focus-visible': 'The alert Cancel with keyboard focus; check the focus ring around it.',
|
|
115
|
+
'alert-confirm-focus-visible': 'The alert Delete with keyboard focus; check the focus ring around it.',
|
|
116
|
+
'long-body':
|
|
117
|
+
'Move the season with eight paragraphs; check that the body scrolls and the dividers show above and below it.',
|
|
118
|
+
},
|
|
119
|
+
motions: {
|
|
120
|
+
'close-hover-in': { from: 'default', to: 'close-hover' },
|
|
121
|
+
'close-hover-out': { from: 'close-hover', to: 'default' },
|
|
122
|
+
'close-press': { from: 'close-hover', to: 'close-active' },
|
|
123
|
+
'close-release': { from: 'close-active', to: 'close-hover' },
|
|
124
|
+
'cancel-hover-in': { from: 'cancel', to: 'cancel-hover' },
|
|
125
|
+
'cancel-hover-out': { from: 'cancel-hover', to: 'cancel' },
|
|
126
|
+
'cancel-press': { from: 'cancel-hover', to: 'cancel-active' },
|
|
127
|
+
'cancel-release': { from: 'cancel-active', to: 'cancel-hover' },
|
|
128
|
+
'cancel-tap': { from: 'cancel', to: 'cancel-active' },
|
|
129
|
+
'cancel-lift': { from: 'cancel-active', to: 'cancel' },
|
|
130
|
+
'confirm-hover-in': { from: 'confirm', to: 'confirm-hover' },
|
|
131
|
+
'confirm-hover-out': { from: 'confirm-hover', to: 'confirm' },
|
|
132
|
+
'confirm-press': { from: 'confirm-hover', to: 'confirm-active' },
|
|
133
|
+
'confirm-release': { from: 'confirm-active', to: 'confirm-hover' },
|
|
134
|
+
'confirm-tap': { from: 'confirm', to: 'confirm-active' },
|
|
135
|
+
'confirm-lift': { from: 'confirm-active', to: 'confirm' },
|
|
136
|
+
},
|
|
137
|
+
grid: {
|
|
138
|
+
columns: ['rest', 'hover', 'active', 'focus-visible'] as const,
|
|
139
|
+
rows: {
|
|
140
|
+
close: {
|
|
141
|
+
rest: 'default',
|
|
142
|
+
hover: 'close-hover',
|
|
143
|
+
active: 'close-active',
|
|
144
|
+
'focus-visible': 'close-focus-visible',
|
|
145
|
+
},
|
|
146
|
+
cancel: {
|
|
147
|
+
rest: 'cancel',
|
|
148
|
+
hover: 'cancel-hover',
|
|
149
|
+
active: 'cancel-active',
|
|
150
|
+
'focus-visible': 'cancel-focus-visible',
|
|
151
|
+
},
|
|
152
|
+
confirm: {
|
|
153
|
+
rest: 'confirm',
|
|
154
|
+
hover: 'confirm-hover',
|
|
155
|
+
active: 'confirm-active',
|
|
156
|
+
'focus-visible': 'confirm-focus-visible',
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
widths: [480],
|
|
161
|
+
controls: {
|
|
162
|
+
close: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
163
|
+
cancel: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
164
|
+
confirm: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
165
|
+
},
|
|
166
|
+
frame: (body) => `<div class="dialog-frame">${body}</div>`,
|
|
167
|
+
scrolls: ['long-body'],
|
|
168
|
+
render: (props: Props) =>
|
|
169
|
+
drawing({
|
|
170
|
+
body: overlayBackdrop(render(props)),
|
|
171
|
+
styles: [dialogStyles, edge].join('\n'),
|
|
172
|
+
}),
|
|
173
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.divider-frame {
|
|
2
|
+
padding: 2.4rem 1.6rem;
|
|
3
|
+
background: var(--et-surface-background-solid);
|
|
4
|
+
color: var(--et-surface-color-solid);
|
|
5
|
+
font-size: 1.4rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.divider-frame p {
|
|
9
|
+
margin: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.divider-frame-row {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
block-size: 2.4rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.divider-frame-list {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
--et-divider-inset: 16px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.divider-frame-list > span {
|
|
25
|
+
padding: 0.4rem 1.6rem;
|
|
26
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { divider, dividerStyles } from '@ethlete/components/design/divider';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import frame from './divider.css?inline';
|
|
4
|
+
|
|
5
|
+
type Props = {
|
|
6
|
+
set?: 'horizontal' | 'vertical' | 'list';
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
const horizontal = () =>
|
|
10
|
+
`<p>Match starts at 18:00. Doors open an hour earlier.</p>${divider()}<p>Tickets are sent by email after payment.</p>`;
|
|
11
|
+
|
|
12
|
+
const vertical = () =>
|
|
13
|
+
`<div class="divider-frame-row"><span>Overview</span>${divider({ orientation: 'vertical' })}<span>Squad</span>${divider({ orientation: 'vertical', decorative: true })}<span>Fixtures</span></div>`;
|
|
14
|
+
|
|
15
|
+
const list = () =>
|
|
16
|
+
`<div class="divider-frame-list"><span>Account</span>${divider({ decorative: true })}<span>Notifications</span>${divider({ decorative: true })}<span>Privacy</span></div>`;
|
|
17
|
+
|
|
18
|
+
const body = (props: Props) => {
|
|
19
|
+
switch (props.set) {
|
|
20
|
+
case 'vertical':
|
|
21
|
+
return vertical();
|
|
22
|
+
case 'list':
|
|
23
|
+
return list();
|
|
24
|
+
default:
|
|
25
|
+
return horizontal();
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export default definePart({
|
|
30
|
+
note: "Today's look",
|
|
31
|
+
madeBy: ['claude-opus-5-5'],
|
|
32
|
+
states: {
|
|
33
|
+
default: {},
|
|
34
|
+
vertical: { set: 'vertical' },
|
|
35
|
+
list: { set: 'list' },
|
|
36
|
+
},
|
|
37
|
+
describe: {
|
|
38
|
+
default: 'A horizontal divider between two paragraphs; check its colour and the gap above and below.',
|
|
39
|
+
vertical: 'Vertical dividers between Overview, Squad and Fixtures; check that they span the text height.',
|
|
40
|
+
list: 'Decorative dividers between three list rows; check that they run the full width.',
|
|
41
|
+
},
|
|
42
|
+
widths: [480],
|
|
43
|
+
frame: (body) => `<div class="divider-frame">${body}</div>`,
|
|
44
|
+
render: (props: Props) =>
|
|
45
|
+
drawing({
|
|
46
|
+
body: body(props),
|
|
47
|
+
styles: [dividerStyles, frame].join('\n'),
|
|
48
|
+
}),
|
|
49
|
+
});
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
.empty-state-frame {
|
|
2
|
+
padding: 2.4rem 1.6rem;
|
|
3
|
+
background: var(--et-surface-background-solid);
|
|
4
|
+
color: var(--et-surface-color-solid);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
@layer components {
|
|
8
|
+
.et-empty-state .et-focus-ring {
|
|
9
|
+
--_et-focus-ring-color: var(--et-theme-color-ink-solid);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.et-empty-state .et-button[data-variant='filled'] {
|
|
13
|
+
--et-button-shadow: inset 0 0 0 1px var(--et-theme-color-ink-solid);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@layer components {
|
|
18
|
+
.et-empty-state:has(> .et-icon) {
|
|
19
|
+
display: grid;
|
|
20
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
21
|
+
column-gap: 1.6rem;
|
|
22
|
+
row-gap: var(--et-empty-state-gap);
|
|
23
|
+
align-items: start;
|
|
24
|
+
justify-items: start;
|
|
25
|
+
text-align: start;
|
|
26
|
+
margin-inline: 0;
|
|
27
|
+
max-inline-size: none;
|
|
28
|
+
|
|
29
|
+
> .et-icon {
|
|
30
|
+
grid-column: 1;
|
|
31
|
+
grid-row: 1 / span 3;
|
|
32
|
+
align-self: start;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
> :not(.et-icon) {
|
|
36
|
+
grid-column: 2;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { emptyState, emptyStateStyles } from '@ethlete/components/design/empty-state';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import frame from './empty-state.css?inline';
|
|
4
|
+
|
|
5
|
+
type Interaction = 'hover' | 'active' | 'focus-visible';
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
form: 'default' | 'without-action' | 'errored' | 'heading-only';
|
|
9
|
+
action?: Interaction;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
const mark = (interaction?: Interaction) =>
|
|
13
|
+
[`data-et-control="action" data-can-animate`, interaction && `data-et-force="${interaction}"`]
|
|
14
|
+
.filter(Boolean)
|
|
15
|
+
.join(' ');
|
|
16
|
+
|
|
17
|
+
const COPY = {
|
|
18
|
+
default: {
|
|
19
|
+
heading: 'No results',
|
|
20
|
+
description: 'Try a different search term or clear your filters.',
|
|
21
|
+
action: 'Clear filters',
|
|
22
|
+
},
|
|
23
|
+
'without-action': { heading: 'No results', description: 'Try a different search term or clear your filters.' },
|
|
24
|
+
errored: {
|
|
25
|
+
icon: 'triangle',
|
|
26
|
+
heading: 'Something went wrong',
|
|
27
|
+
description: 'We could not load this data. Please try again.',
|
|
28
|
+
action: 'Try again',
|
|
29
|
+
},
|
|
30
|
+
'heading-only': { icon: false, heading: 'Nothing here yet' },
|
|
31
|
+
} as const;
|
|
32
|
+
|
|
33
|
+
const render = ({ form, action }: Props) => emptyState({ ...COPY[form], actionAttributes: mark(action) });
|
|
34
|
+
|
|
35
|
+
export default definePart({
|
|
36
|
+
note: 'Decided rules only',
|
|
37
|
+
consumerAction: 'its buttons are actions the consumer projects',
|
|
38
|
+
madeBy: ['claude-opus-5-5', 'claude-sonnet-5-5'],
|
|
39
|
+
states: {
|
|
40
|
+
default: { form: 'default' },
|
|
41
|
+
'without-action': { form: 'without-action' },
|
|
42
|
+
errored: { form: 'errored' },
|
|
43
|
+
'heading-only': { form: 'heading-only' },
|
|
44
|
+
'action-hover': { form: 'default', action: 'hover' },
|
|
45
|
+
'action-active': { form: 'default', action: 'active' },
|
|
46
|
+
'action-focus-visible': { form: 'default', action: 'focus-visible' },
|
|
47
|
+
},
|
|
48
|
+
describe: {
|
|
49
|
+
default: 'No results with icon, text and Clear filters; check that everything sits centred.',
|
|
50
|
+
'without-action': 'No results without an action; check the spacing under the text.',
|
|
51
|
+
errored: 'Something went wrong with the triangle icon and Try again; check the icon and the action.',
|
|
52
|
+
'heading-only': 'Nothing here yet without icon or text; check that the heading stands alone, centred.',
|
|
53
|
+
'action-hover': 'Clear filters hovered; check its hover look.',
|
|
54
|
+
'action-active': 'Clear filters pressed; check that the press goes past hover.',
|
|
55
|
+
'action-focus-visible': 'Clear filters with keyboard focus; check the focus ring around it.',
|
|
56
|
+
},
|
|
57
|
+
widths: [480],
|
|
58
|
+
controls: {
|
|
59
|
+
action: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
60
|
+
},
|
|
61
|
+
frame: (body) => `<div class="empty-state-frame">${body}</div>`,
|
|
62
|
+
render: (props: Props) =>
|
|
63
|
+
drawing({
|
|
64
|
+
body: render(props),
|
|
65
|
+
styles: [emptyStateStyles, frame].join('\n'),
|
|
66
|
+
}),
|
|
67
|
+
});
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.fa-frame {
|
|
2
|
+
position: relative;
|
|
3
|
+
overflow: hidden;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
block-size: 400px;
|
|
6
|
+
transform: translate(0);
|
|
7
|
+
background: var(--et-surface-background-solid);
|
|
8
|
+
color: var(--et-surface-color-solid);
|
|
9
|
+
font-size: 1.4rem;
|
|
10
|
+
|
|
11
|
+
.fa-page {
|
|
12
|
+
padding: 2.4rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.et-floating-action {
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: 1.6rem;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
p {
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.fa-heading {
|
|
26
|
+
margin: 0;
|
|
27
|
+
font-size: 2rem;
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.fa-rows {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 0.8rem;
|
|
35
|
+
margin: 0;
|
|
36
|
+
padding: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.fa-row {
|
|
40
|
+
padding: 1.2rem;
|
|
41
|
+
border-radius: 8px;
|
|
42
|
+
background: color-mix(in srgb, var(--et-surface-color-solid) 8%, transparent);
|
|
43
|
+
list-style: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@layer components {
|
|
48
|
+
.et-floating-action .et-floating-action-trigger:where([data-floating-action-state='floating']) {
|
|
49
|
+
--et-button-shadow: inset 0 0 0 1px light-dark(var(--et-theme-color-ink-solid), transparent);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { floatingAction, floatingActionStyles } from '@ethlete/components/design/floating-action';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import frame from './floating-action.css?inline';
|
|
4
|
+
|
|
5
|
+
type Interaction = 'hover' | 'active' | 'focus-visible';
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
state?: 'inline' | 'floating' | 'hidden';
|
|
9
|
+
interaction?: Interaction;
|
|
10
|
+
filterIcon?: boolean;
|
|
11
|
+
color?: string;
|
|
12
|
+
inset?: number;
|
|
13
|
+
overRow?: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const SCROLL = { inline: 0, floating: 236, hidden: 980 };
|
|
17
|
+
const OVER_ROW_SCROLL = 252;
|
|
18
|
+
const PARAGRAPH =
|
|
19
|
+
'Pick a competition and a season, then narrow the list down by team, venue or kick-off time to find the match you are after.';
|
|
20
|
+
|
|
21
|
+
const rows = Array.from({ length: 12 }, (_, index) => `<li class="fa-row">Result ${index + 1}</li>`).join('');
|
|
22
|
+
const paragraphs = (count: number) => Array.from({ length: count }, () => `<p>${PARAGRAPH}</p>`).join('');
|
|
23
|
+
|
|
24
|
+
const render = ({ state = 'inline', interaction, filterIcon, color, inset }: Props) =>
|
|
25
|
+
floatingAction({
|
|
26
|
+
state,
|
|
27
|
+
filterIcon,
|
|
28
|
+
trigger: { label: 'Filter (2)', color },
|
|
29
|
+
triggerAttributes: interaction ? `data-et-force="${interaction}"` : undefined,
|
|
30
|
+
heldSize: { inlineSize: filterIcon ? 132 : 104, blockSize: 40 },
|
|
31
|
+
before: `${paragraphs(2)}<h2 class="fa-heading">Results</h2>`,
|
|
32
|
+
scope: `<ul class="fa-rows">${rows}</ul>`,
|
|
33
|
+
after: paragraphs(8),
|
|
34
|
+
attributes:
|
|
35
|
+
inset === undefined
|
|
36
|
+
? undefined
|
|
37
|
+
: `style="--et-floating-action-inset-inline-end: ${inset}px; --et-floating-action-inset-block-end: ${inset}px"`,
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
export default definePart({
|
|
41
|
+
note: 'Q138: the floating trigger gets the Q99a 1px inset ink edge in light only, so it reaches 3:1 on a light grey row (4.68) and the page (5.48); dark unchanged.',
|
|
42
|
+
consumerAction: 'its button runs the action the consumer binds',
|
|
43
|
+
madeBy: ['claude-opus-5-5'],
|
|
44
|
+
states: {
|
|
45
|
+
inline: {},
|
|
46
|
+
floating: { state: 'floating' },
|
|
47
|
+
'floating-hover': { state: 'floating', interaction: 'hover' },
|
|
48
|
+
'floating-active': { state: 'floating', interaction: 'active' },
|
|
49
|
+
'floating-focus-visible': { state: 'floating', interaction: 'focus-visible' },
|
|
50
|
+
'inline-focus-visible': { interaction: 'focus-visible' },
|
|
51
|
+
'floating-icon': { state: 'floating', filterIcon: true },
|
|
52
|
+
'floating-inset': { state: 'floating', inset: 12 },
|
|
53
|
+
'floating-danger': { state: 'floating', color: 'danger' },
|
|
54
|
+
'floating-danger-hover': { state: 'floating', color: 'danger', interaction: 'hover' },
|
|
55
|
+
'floating-over-row': { state: 'floating', overRow: true },
|
|
56
|
+
hidden: { state: 'hidden' },
|
|
57
|
+
},
|
|
58
|
+
describe: {
|
|
59
|
+
inline: 'Filter (2) inline above the results at the top of the page; check that it sits in the flow.',
|
|
60
|
+
floating: 'Scrolled into the results, Filter (2) floats at the bottom end; check its inset and shadow.',
|
|
61
|
+
'floating-hover': 'The floating trigger hovered; check its hover look.',
|
|
62
|
+
'floating-active': 'The floating trigger pressed; check that the press goes past hover.',
|
|
63
|
+
'floating-focus-visible': 'The floating trigger with keyboard focus; check the focus ring around it.',
|
|
64
|
+
'inline-focus-visible': 'The inline trigger with keyboard focus; check the focus ring in the flow.',
|
|
65
|
+
'floating-icon': 'The floating trigger with a filter icon; check the icon and the wider trigger.',
|
|
66
|
+
'floating-inset': 'The floating trigger at a 12 px inset; check that it moves closer to the corner.',
|
|
67
|
+
'floating-danger': 'The floating trigger in the danger colour; check that the label reads on the fill.',
|
|
68
|
+
'floating-danger-hover': 'The danger trigger hovered; check its hover step.',
|
|
69
|
+
'floating-over-row': 'The floating trigger over a result row; check that it stays readable over the row.',
|
|
70
|
+
hidden: 'Scrolled past the results; check that the trigger is gone.',
|
|
71
|
+
},
|
|
72
|
+
widths: [480],
|
|
73
|
+
render: (props: Props) =>
|
|
74
|
+
drawing({
|
|
75
|
+
body: `<div class="fa-frame" data-et-skip="CLIPPED"><div class="fa-page" style="margin-block-start: -${props.overRow ? OVER_ROW_SCROLL : SCROLL[props.state ?? 'inline']}px">${render(props)}</div></div>`,
|
|
76
|
+
styles: [floatingActionStyles, frame].join('\n'),
|
|
77
|
+
}),
|
|
78
|
+
});
|