@ethlete/components 0.1.0-next.8 → 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 +3486 -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 +115419 -11680
- 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 -3707
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
@property --et-card-padding {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 16px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-card-gap {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 12px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-card-border-radius {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 8px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.et-card {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: var(--et-card-gap);
|
|
24
|
+
padding: var(--et-card-padding);
|
|
25
|
+
border-radius: var(--et-card-border-radius);
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
background: var(--et-surface-background-solid, Canvas);
|
|
28
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
29
|
+
border: 1px solid transparent;
|
|
30
|
+
|
|
31
|
+
&:where([data-variant='outlined']) {
|
|
32
|
+
border-color: var(--et-surface-border-solid, currentColor);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:where([data-variant='elevated']) {
|
|
36
|
+
box-shadow: 0 4px 16px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.12);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.et-card .et-button:where([data-variant='filled']) {
|
|
41
|
+
--et-button-shadow: inset 0 0 0 1px light-dark(var(--et-theme-color-ink-solid), transparent);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
/* The autoplay countdown ring. Deliberately smaller than the tap target and thicker than a hairline —
|
|
3
|
+
drawn at the target size it read as a stray outline rather than as a countdown. */
|
|
4
|
+
@property --et-carousel-dot-ring-size {
|
|
5
|
+
syntax: '<length>';
|
|
6
|
+
inherits: true;
|
|
7
|
+
initial-value: 18px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@property --et-carousel-dot-ring-width {
|
|
11
|
+
syntax: '<length>';
|
|
12
|
+
inherits: true;
|
|
13
|
+
initial-value: 2.5px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.et-carousel-dot-progress {
|
|
17
|
+
position: absolute;
|
|
18
|
+
inline-size: var(--et-carousel-dot-ring-size);
|
|
19
|
+
block-size: var(--et-carousel-dot-ring-size);
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
scale: 0.55;
|
|
23
|
+
mask: radial-gradient(
|
|
24
|
+
closest-side,
|
|
25
|
+
transparent calc(100% - var(--et-carousel-dot-ring-width)),
|
|
26
|
+
black calc(100% - var(--et-carousel-dot-ring-width))
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
/* The countdown, as two rotations rather than a growing gradient.
|
|
30
|
+
|
|
31
|
+
It was a `conic-gradient` whose angle came from an animated registered property, which reads beautifully
|
|
32
|
+
and cannot be composited: a gradient has to be re-rasterized for every value, and animating a registered
|
|
33
|
+
property recalculates the element's style every frame whether or not the value actually changed. Idle, a
|
|
34
|
+
counting-down ring cost ~1120 paints and ~510 style recalculations over nine seconds. Stepping the
|
|
35
|
+
property halved the paints and did nothing at all for the recalculations — the recalculation is the
|
|
36
|
+
animation existing, not the value moving.
|
|
37
|
+
|
|
38
|
+
So nothing here animates a custom property or a paint-only property. Each half of the circle holds a
|
|
39
|
+
half-disc pinned to the centre, rotating from `-180deg` (entirely in the other half, clipped away) to
|
|
40
|
+
`0deg` (filling this one), and its own half clips it. The first sweeps the right half over the first half
|
|
41
|
+
of the slide's duration; the second the left half over the second, via a delay. `rotate` is composited, so
|
|
42
|
+
the whole countdown runs off the main thread: ~120 paints and ~45 recalculations over the same nine
|
|
43
|
+
seconds, which is the floor — what the page costs with no ring at all. */
|
|
44
|
+
.et-carousel-dot-progress-half {
|
|
45
|
+
position: absolute;
|
|
46
|
+
inset-block: 0;
|
|
47
|
+
inline-size: 50%;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
content: '';
|
|
52
|
+
position: absolute;
|
|
53
|
+
inset: 0;
|
|
54
|
+
background: var(
|
|
55
|
+
--et-carousel-dot-active-color,
|
|
56
|
+
light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid))
|
|
57
|
+
);
|
|
58
|
+
rotate: -180deg;
|
|
59
|
+
/* At -180deg the flat edge lies on this half's clip edge, and at a fractional device pixel ratio the
|
|
60
|
+
anti-aliasing of the two leaks a one-pixel line. The sweep keyframes show it again. */
|
|
61
|
+
opacity: 0;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:first-child {
|
|
65
|
+
inset-inline-start: 50%;
|
|
66
|
+
|
|
67
|
+
&::before {
|
|
68
|
+
border-radius: 0 100% 100% 0 / 0 50% 50% 0;
|
|
69
|
+
transform-origin: 0 50%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:last-child {
|
|
74
|
+
inset-inline-start: 0;
|
|
75
|
+
|
|
76
|
+
&::before {
|
|
77
|
+
border-radius: 100% 0 0 100% / 50% 0 0 50%;
|
|
78
|
+
transform-origin: 100% 50%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@keyframes et-carousel-autoplay-sweep {
|
|
84
|
+
from {
|
|
85
|
+
rotate: -180deg;
|
|
86
|
+
opacity: 1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
to {
|
|
90
|
+
rotate: 0deg;
|
|
91
|
+
opacity: 1;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.et-carousel-dot {
|
|
96
|
+
position: relative;
|
|
97
|
+
|
|
98
|
+
&::after {
|
|
99
|
+
content: '';
|
|
100
|
+
position: absolute;
|
|
101
|
+
inline-size: var(--et-carousel-dot-ring-size);
|
|
102
|
+
block-size: var(--et-carousel-dot-ring-size);
|
|
103
|
+
border: var(--et-carousel-dot-ring-width) solid
|
|
104
|
+
var(
|
|
105
|
+
--et-carousel-dot-ring-track-color,
|
|
106
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, gray) 30%, transparent)
|
|
107
|
+
);
|
|
108
|
+
border-radius: 50%;
|
|
109
|
+
opacity: 0;
|
|
110
|
+
scale: 0.55;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&:where([data-counting]) {
|
|
114
|
+
& .et-carousel-dot-progress {
|
|
115
|
+
opacity: 1;
|
|
116
|
+
scale: 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
& .et-carousel-dot-progress-half::before {
|
|
120
|
+
animation: et-carousel-autoplay-sweep calc(var(--_et-carousel-autoplay-duration, 5000ms) / 2) linear forwards;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
& .et-carousel-dot-progress-half:last-child::before {
|
|
124
|
+
animation-delay: calc(var(--_et-carousel-autoplay-duration, 5000ms) / 2);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&::after {
|
|
128
|
+
opacity: 1;
|
|
129
|
+
scale: 1;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&:where([data-counting])::before {
|
|
134
|
+
scale: 0.75;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/* The icon button lays its projected icons out in a flex row, which would put play and pause side by side.
|
|
139
|
+
Three classes deep because that rule is one class deep on the button and is injected at runtime, so it
|
|
140
|
+
would win at equal specificity however this file is ordered. */
|
|
141
|
+
.et-carousel .et-carousel-play-toggle .et-icon-button-icon {
|
|
142
|
+
display: grid;
|
|
143
|
+
place-items: center;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.et-carousel-play-toggle {
|
|
147
|
+
& .et-carousel-play-toggle-icon {
|
|
148
|
+
grid-area: 1 / 1;
|
|
149
|
+
opacity: 0;
|
|
150
|
+
scale: 0.55;
|
|
151
|
+
rotate: -35deg;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&:not([data-playing]) .et-icon--et-play,
|
|
155
|
+
&:where([data-playing]) .et-icon--et-pause {
|
|
156
|
+
opacity: 1;
|
|
157
|
+
scale: 1;
|
|
158
|
+
rotate: 0deg;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.et-carousel:where(.et-carousel--can-animate) {
|
|
163
|
+
& .et-carousel-dot-progress,
|
|
164
|
+
& .et-carousel-dot::after {
|
|
165
|
+
transition:
|
|
166
|
+
opacity 220ms var(--ease-3, ease-out),
|
|
167
|
+
scale 220ms var(--ease-3, ease-out);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
& .et-carousel-play-toggle-icon {
|
|
171
|
+
transition:
|
|
172
|
+
opacity 180ms var(--ease-3, ease-out),
|
|
173
|
+
scale 180ms var(--ease-3, ease-out),
|
|
174
|
+
rotate 220ms var(--ease-3, ease-out);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
/* Registered so keyframes interpolate it; inherits so slide content can read it. */
|
|
3
|
+
@property --et-carousel-slide-progress {
|
|
4
|
+
syntax: '<number>';
|
|
5
|
+
inherits: true;
|
|
6
|
+
initial-value: 0;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@property --et-carousel-wipe-shift {
|
|
10
|
+
syntax: '<length>';
|
|
11
|
+
inherits: true;
|
|
12
|
+
initial-value: 0px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@property --et-carousel-wipe-dim {
|
|
16
|
+
syntax: '<number>';
|
|
17
|
+
inherits: true;
|
|
18
|
+
initial-value: 0.5;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@property --et-carousel-wipe-dim-color {
|
|
22
|
+
syntax: '<color>';
|
|
23
|
+
inherits: true;
|
|
24
|
+
initial-value: #000;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* Each effect exists twice: composited keyframes on the scroll-driven view timeline, and a `calc()` fallback
|
|
28
|
+
over the inherited progress property for the JS driver (no scroll timeline, e.g. Firefox). Animating the
|
|
29
|
+
inherited property restyles each slide's subtree every frame, so the composited path must not read it. */
|
|
30
|
+
|
|
31
|
+
@keyframes et-carousel-slide-progress {
|
|
32
|
+
from {
|
|
33
|
+
--et-carousel-slide-progress: -1;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
to {
|
|
37
|
+
--et-carousel-slide-progress: 1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* `dim` — the slides either side of the current one recede, so the carousel reads as a focused row rather
|
|
42
|
+
than a strip that happens to scroll. The endpoints are the `calc()` rules' values at progress ±1
|
|
43
|
+
(`1 - 0.65` and `1 - 0.08`) and the midpoint is centred, so the two drivers are the same effect. */
|
|
44
|
+
@keyframes et-carousel-dim {
|
|
45
|
+
from,
|
|
46
|
+
to {
|
|
47
|
+
opacity: 0.35;
|
|
48
|
+
scale: 0.92;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
50% {
|
|
52
|
+
opacity: 1;
|
|
53
|
+
scale: 1;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@keyframes et-carousel-wipe-content {
|
|
58
|
+
from {
|
|
59
|
+
translate: calc((var(--et-carousel-wipe-shift) - 50cqw - 50%));
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
to {
|
|
63
|
+
translate: calc(50cqw + 50% - var(--et-carousel-wipe-shift));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* A veil's opacity instead of `filter: brightness()`, which repaints the whole slide every frame. */
|
|
68
|
+
@keyframes et-carousel-wipe-veil {
|
|
69
|
+
from,
|
|
70
|
+
to {
|
|
71
|
+
opacity: calc(1 - var(--et-carousel-wipe-dim));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
50% {
|
|
75
|
+
opacity: 0;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* ─── What `wipe` needs whichever driver is running ───────────────────────────────────────────────────
|
|
80
|
+
|
|
81
|
+
Ahead of the drivers on purpose: everything here is `:where()`-flattened, so the two blocks below can only
|
|
82
|
+
override the veil's resting `opacity` by coming after it.
|
|
83
|
+
|
|
84
|
+
Gated on one slide per view, because that is the only layout the effect means anything in: with the
|
|
85
|
+
content pinned to the track, a slide whose box is only partly on screen at rest would have its content
|
|
86
|
+
sitting outside that box and would show as blank. A peeking layout wants `dim`. */
|
|
87
|
+
:where([data-transition-driver='scroll-timeline'], [data-transition-driver='js']):where([data-transition='wipe'])
|
|
88
|
+
:where([item-size='full']) {
|
|
89
|
+
/* `50cqw` in the content's displacement is half of *this*. */
|
|
90
|
+
container-type: inline-size;
|
|
91
|
+
|
|
92
|
+
& .et-carousel-item {
|
|
93
|
+
position: relative;
|
|
94
|
+
overflow: clip;
|
|
95
|
+
contain: paint;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
& .et-carousel-item::after {
|
|
99
|
+
content: '';
|
|
100
|
+
position: absolute;
|
|
101
|
+
inset: 0;
|
|
102
|
+
background: var(--et-carousel-wipe-dim-color);
|
|
103
|
+
opacity: 0;
|
|
104
|
+
pointer-events: none;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* ─── Driver 1 of 2: scroll-driven, composited ────────────────────────────────────────────────────────
|
|
109
|
+
|
|
110
|
+
No JavaScript at all. Each slide names a view progress timeline, and the effects animate along it — so
|
|
111
|
+
they follow a finger through a drag rather than stepping when some "active" flag flips. `cover 0%` is the
|
|
112
|
+
moment the slide's leading edge reaches the far side of the scrollport and `cover 100%` the moment its
|
|
113
|
+
trailing edge leaves the near side, which puts the midpoint exactly at centred.
|
|
114
|
+
|
|
115
|
+
The timeline is *named* rather than each element using its own `view()` because `wipe` animates two
|
|
116
|
+
descendants of the slide, and one of them is the element being translated — its own view timeline would
|
|
117
|
+
then depend on the transform the timeline is driving.
|
|
118
|
+
|
|
119
|
+
`etCarousel` has already feature-detected this and only asks for the driver where it exists; the
|
|
120
|
+
`@supports` is here so that forcing `transitionDriver="scroll-timeline"` on a browser without it degrades
|
|
121
|
+
to a plain scroll rather than running the keyframes on the document timeline and flashing every slide
|
|
122
|
+
once. */
|
|
123
|
+
@supports (animation-timeline: view(inline)) {
|
|
124
|
+
:where([data-transition-driver='scroll-timeline']) {
|
|
125
|
+
& .et-carousel-item {
|
|
126
|
+
view-timeline-name: --et-carousel-slide;
|
|
127
|
+
view-timeline-axis: inline;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
& .et-carousel-item,
|
|
131
|
+
& .et-carousel-item::after,
|
|
132
|
+
& .et-carousel-slide-content {
|
|
133
|
+
animation-timeline: --et-carousel-slide;
|
|
134
|
+
animation-range: cover 0% cover 100%;
|
|
135
|
+
animation-timing-function: linear;
|
|
136
|
+
animation-fill-mode: both;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
&:where([data-transition='custom']) .et-carousel-item {
|
|
140
|
+
animation-name: et-carousel-slide-progress;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:where([data-transition='dim']) .et-carousel-item {
|
|
144
|
+
animation-name: et-carousel-dim;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&:where([data-transition='wipe']) :where([item-size='full']) {
|
|
148
|
+
& .et-carousel-item::after {
|
|
149
|
+
animation-name: et-carousel-wipe-veil;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
& .et-carousel-slide-content {
|
|
153
|
+
animation-name: et-carousel-wipe-content;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
:where([data-transition-driver='js']) {
|
|
160
|
+
& .et-carousel-item {
|
|
161
|
+
--_et-carousel-slide-distance: abs(var(--et-carousel-slide-progress));
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&:where([data-transition='dim']) .et-carousel-item {
|
|
165
|
+
opacity: calc(1 - 0.65 * var(--_et-carousel-slide-distance));
|
|
166
|
+
scale: calc(1 - 0.08 * var(--_et-carousel-slide-distance));
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&:where([data-transition='wipe']) :where([item-size='full']) {
|
|
170
|
+
& .et-carousel-item::after {
|
|
171
|
+
opacity: calc((1 - var(--et-carousel-wipe-dim)) * var(--_et-carousel-slide-distance));
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
& .et-carousel-slide-content {
|
|
175
|
+
translate: calc(var(--et-carousel-slide-progress) * (50cqw + 50% - var(--et-carousel-wipe-shift)));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
@property --et-carousel-gap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 12px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-carousel-slide-gap {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 0px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-carousel-dot-size {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 8px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/* The dot's tap target, kept at a comfortable size while the dot itself stays small. */
|
|
21
|
+
@property --et-carousel-dot-target-size {
|
|
22
|
+
syntax: '<length>';
|
|
23
|
+
inherits: true;
|
|
24
|
+
initial-value: 24px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* How far the track's edges fade out where slides are cut off by them. Set it to `0px` for a hard cut. */
|
|
28
|
+
@property --et-carousel-edge-fade {
|
|
29
|
+
syntax: '<length>';
|
|
30
|
+
inherits: true;
|
|
31
|
+
initial-value: 32px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@property --et-carousel-controls-inset {
|
|
35
|
+
syntax: '<length>';
|
|
36
|
+
inherits: true;
|
|
37
|
+
initial-value: 12px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.et-carousel {
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: var(--et-carousel-gap);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* `overflow-x: auto` forces a clip on the cross axis too; without the bleed it sits on the slide's own
|
|
47
|
+
border, which fractional device pixel ratios then eat. */
|
|
48
|
+
.et-carousel-track {
|
|
49
|
+
--_et-carousel-track-bleed: 4px;
|
|
50
|
+
|
|
51
|
+
display: block;
|
|
52
|
+
margin-block: calc(var(--_et-carousel-track-bleed) * -1);
|
|
53
|
+
|
|
54
|
+
& .et-scrollable-container {
|
|
55
|
+
gap: var(--et-carousel-slide-gap);
|
|
56
|
+
padding-block: var(--_et-carousel-track-bleed);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:where([direction='vertical']) {
|
|
60
|
+
margin-block: 0;
|
|
61
|
+
margin-inline: calc(var(--_et-carousel-track-bleed) * -1);
|
|
62
|
+
|
|
63
|
+
& .et-scrollable-container {
|
|
64
|
+
padding-block: 0;
|
|
65
|
+
padding-inline: var(--_et-carousel-track-bleed);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.et-carousel:where([data-slide-align='center']) .et-carousel-track:not([item-size='full']) {
|
|
71
|
+
mask-image: linear-gradient(
|
|
72
|
+
to right,
|
|
73
|
+
transparent 0,
|
|
74
|
+
black var(--et-carousel-edge-fade),
|
|
75
|
+
black calc(100% - var(--et-carousel-edge-fade)),
|
|
76
|
+
transparent 100%
|
|
77
|
+
);
|
|
78
|
+
|
|
79
|
+
&:where([direction='vertical']) {
|
|
80
|
+
mask-image: linear-gradient(
|
|
81
|
+
to bottom,
|
|
82
|
+
transparent 0,
|
|
83
|
+
black var(--et-carousel-edge-fade),
|
|
84
|
+
black calc(100% - var(--et-carousel-edge-fade)),
|
|
85
|
+
transparent 100%
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.et-carousel-slide-content {
|
|
91
|
+
display: block;
|
|
92
|
+
block-size: 100%;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.et-carousel-controls {
|
|
96
|
+
display: flex;
|
|
97
|
+
align-items: center;
|
|
98
|
+
justify-content: center;
|
|
99
|
+
gap: 4px;
|
|
100
|
+
background: var(--et-carousel-controls-background, transparent);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.et-carousel:where([data-controls-position='overlay'], [data-pause-toggle-position^='top-']) {
|
|
104
|
+
position: relative;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.et-carousel:where([data-controls-position='overlay']) .et-carousel-controls,
|
|
108
|
+
.et-carousel-play-toggle-corner {
|
|
109
|
+
position: absolute;
|
|
110
|
+
border-radius: var(--et-carousel-controls-radius, 999px);
|
|
111
|
+
background: var(
|
|
112
|
+
--et-carousel-controls-background,
|
|
113
|
+
color-mix(in srgb, var(--et-surface-background-solid, white) 80%, transparent)
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.et-carousel:where([data-controls-position='overlay']) .et-carousel-controls {
|
|
118
|
+
inset-inline: var(--et-carousel-controls-inset);
|
|
119
|
+
inset-block-end: var(--et-carousel-controls-inset);
|
|
120
|
+
inline-size: fit-content;
|
|
121
|
+
margin-inline: auto;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.et-carousel-play-toggle-corner {
|
|
125
|
+
display: flex;
|
|
126
|
+
inset-block-start: var(--et-carousel-controls-inset);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.et-carousel:where([data-pause-toggle-position='top-start']) .et-carousel-play-toggle-corner {
|
|
130
|
+
inset-inline-start: var(--et-carousel-controls-inset);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.et-carousel:where([data-pause-toggle-position='top-end']) .et-carousel-play-toggle-corner {
|
|
134
|
+
inset-inline-end: var(--et-carousel-controls-inset);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Two classes deep: the icon button's own colour rule is one class deep and injected at runtime. */
|
|
138
|
+
.et-carousel .et-carousel-control {
|
|
139
|
+
color: var(--et-carousel-control-color, var(--et-theme-color-ink-solid));
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.et-carousel-control {
|
|
143
|
+
&:where([aria-disabled='true']) {
|
|
144
|
+
opacity: 0.4;
|
|
145
|
+
cursor: default;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.et-carousel-control-icon {
|
|
150
|
+
inline-size: 14px;
|
|
151
|
+
block-size: 14px;
|
|
152
|
+
|
|
153
|
+
&:where(.et-carousel-control-icon--previous) {
|
|
154
|
+
rotate: -90deg;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:where(.et-carousel-control-icon--next) {
|
|
158
|
+
rotate: 90deg;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.et-carousel-dots {
|
|
163
|
+
display: flex;
|
|
164
|
+
align-items: center;
|
|
165
|
+
justify-content: center;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.et-carousel-dot {
|
|
169
|
+
display: grid;
|
|
170
|
+
place-items: center;
|
|
171
|
+
inline-size: var(--et-carousel-dot-target-size);
|
|
172
|
+
block-size: var(--et-carousel-dot-target-size);
|
|
173
|
+
padding: 0;
|
|
174
|
+
border: 0;
|
|
175
|
+
border-radius: 50%;
|
|
176
|
+
background: transparent;
|
|
177
|
+
cursor: pointer;
|
|
178
|
+
-webkit-tap-highlight-color: transparent;
|
|
179
|
+
|
|
180
|
+
&::before {
|
|
181
|
+
content: '';
|
|
182
|
+
inline-size: var(--et-carousel-dot-size);
|
|
183
|
+
block-size: var(--et-carousel-dot-size);
|
|
184
|
+
border-radius: 50%;
|
|
185
|
+
background: var(
|
|
186
|
+
--et-carousel-dot-color,
|
|
187
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, gray) 35%, transparent)
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&:hover::before {
|
|
192
|
+
background: var(
|
|
193
|
+
--et-carousel-dot-hover-color,
|
|
194
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, gray) 55%, transparent)
|
|
195
|
+
);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&:active::before {
|
|
199
|
+
background: var(
|
|
200
|
+
--et-carousel-dot-pressed-color,
|
|
201
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, gray) 85%, transparent)
|
|
202
|
+
);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
&:where([data-active])::before {
|
|
206
|
+
background: var(
|
|
207
|
+
--et-carousel-dot-active-color,
|
|
208
|
+
light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid))
|
|
209
|
+
);
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/* `:hover`/`:active` above outrank the `:where()` rule, so the selected dot needs its own state selector. */
|
|
213
|
+
&:where([data-active]):is(:hover, :active)::before {
|
|
214
|
+
background: var(
|
|
215
|
+
--et-carousel-dot-active-color,
|
|
216
|
+
light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid))
|
|
217
|
+
);
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.et-carousel:where(.et-carousel--can-animate) {
|
|
222
|
+
& .et-carousel-dot::before {
|
|
223
|
+
transition:
|
|
224
|
+
background-color 160ms var(--ease-3, ease-out),
|
|
225
|
+
scale 220ms var(--ease-3, ease-out);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
& .et-carousel-dot {
|
|
229
|
+
transition: outline-color 160ms var(--ease-3, ease-out);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
}
|