@ethlete/components 0.1.0-next.9 → 1.0.0-next.101
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3519 -0
- package/README.md +1 -1
- package/design/accordion.ts +73 -0
- package/design/anchored-dialog.ts +102 -0
- package/design/avatar.ts +90 -0
- package/design/badge.ts +48 -0
- package/design/banner.ts +77 -0
- package/design/bracket.ts +457 -0
- package/design/breadcrumb.ts +144 -0
- package/design/button.ts +116 -0
- package/design/calendar.ts +306 -0
- package/design/card.ts +92 -0
- package/design/carousel.ts +240 -0
- package/design/chart.ts +512 -0
- package/design/checkbox.ts +275 -0
- package/design/chip.ts +64 -0
- package/design/config.json +26 -0
- package/design/control.ts +19 -0
- package/design/copy-button.ts +59 -0
- package/design/description-list.ts +41 -0
- package/design/dialog.ts +210 -0
- package/design/divider.ts +27 -0
- package/design/empty-state.ts +45 -0
- package/design/floating-action.ts +55 -0
- package/design/form-field.ts +256 -0
- package/design/grid.ts +148 -0
- package/design/icon-set.ts +19 -0
- package/design/icon.ts +9 -0
- package/design/input.ts +86 -0
- package/design/kbd.ts +19 -0
- package/design/loader.ts +156 -0
- package/design/masonry.ts +115 -0
- package/design/match.ts +131 -0
- package/design/menu.ts +149 -0
- package/design/notification.ts +132 -0
- package/design/otp-input.ts +107 -0
- package/design/pagination.ts +120 -0
- package/design/picture.ts +80 -0
- package/design/progress-steps.ts +79 -0
- package/design/query-error.ts +60 -0
- package/design/radio-group.ts +132 -0
- package/design/scheduler.ts +369 -0
- package/design/scrollable.ts +219 -0
- package/design/scrollbar.ts +47 -0
- package/design/sdk/assets/fallback.svg +1 -0
- package/design/sdk/assets/fonts/et-kbd-arrows-400-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/et-kbd-control-400-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/et-kbd-keys-400-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/source-code-pro-latin-wght-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
- package/design/sdk/assets/tall.svg +1 -0
- package/design/sdk/assets/wide.svg +1 -0
- package/design/sdk/components/accent-on-light/accent-on-light.css +35 -0
- package/design/sdk/components/accent-on-light/accent-on-light.ts +15 -0
- package/design/sdk/components/accent-on-light/shared/controls.ts +46 -0
- package/design/sdk/components/accordion/accordion.css +17 -0
- package/design/sdk/components/accordion/accordion.ts +79 -0
- package/design/sdk/components/action-sheet/action-sheet.css +124 -0
- package/design/sdk/components/action-sheet/action-sheet.ts +131 -0
- package/design/sdk/components/anchored-dialog/anchored-dialog.css +60 -0
- package/design/sdk/components/anchored-dialog/anchored-dialog.ts +89 -0
- package/design/sdk/components/avatar/avatar.css +14 -0
- package/design/sdk/components/avatar/avatar.ts +95 -0
- package/design/sdk/components/badge/badge.css +31 -0
- package/design/sdk/components/badge/badge.ts +89 -0
- package/design/sdk/components/banner/banner.css +18 -0
- package/design/sdk/components/banner/banner.ts +160 -0
- package/design/sdk/components/bracket/bracket.css +56 -0
- package/design/sdk/components/bracket/bracket.ts +183 -0
- package/design/sdk/components/breadcrumb/breadcrumb.css +25 -0
- package/design/sdk/components/breadcrumb/breadcrumb.ts +96 -0
- package/design/sdk/components/button/button.css +19 -0
- package/design/sdk/components/button/button.ts +201 -0
- package/design/sdk/components/calendar/calendar.css +33 -0
- package/design/sdk/components/calendar/calendar.ts +183 -0
- package/design/sdk/components/card/card.css +19 -0
- package/design/sdk/components/card/card.ts +111 -0
- package/design/sdk/components/carousel/carousel.css +44 -0
- package/design/sdk/components/carousel/carousel.ts +162 -0
- package/design/sdk/components/chart/chart.css +56 -0
- package/design/sdk/components/chart/chart.ts +146 -0
- package/design/sdk/components/checkbox/checkbox.css +10 -0
- package/design/sdk/components/checkbox/checkbox.ts +223 -0
- package/design/sdk/components/chip/chip.css +18 -0
- package/design/sdk/components/chip/chip.ts +99 -0
- package/design/sdk/components/copy-button/copy-button.css +14 -0
- package/design/sdk/components/copy-button/copy-button.ts +77 -0
- package/design/sdk/components/description-list/description-list.css +7 -0
- package/design/sdk/components/description-list/description-list.ts +64 -0
- package/design/sdk/components/dialog/dialog.css +29 -0
- package/design/sdk/components/dialog/dialog.ts +173 -0
- package/design/sdk/components/divider/divider.css +26 -0
- package/design/sdk/components/divider/divider.ts +49 -0
- package/design/sdk/components/empty-state/empty-state.css +39 -0
- package/design/sdk/components/empty-state/empty-state.ts +67 -0
- package/design/sdk/components/floating-action/floating-action.css +51 -0
- package/design/sdk/components/floating-action/floating-action.ts +78 -0
- package/design/sdk/components/form-field/form-field.ts +204 -0
- package/design/sdk/components/grid/grid.css +17 -0
- package/design/sdk/components/grid/grid.ts +96 -0
- package/design/sdk/components/input/input.css +48 -0
- package/design/sdk/components/input/input.ts +156 -0
- package/design/sdk/components/kbd/kbd.css +25 -0
- package/design/sdk/components/kbd/kbd.ts +70 -0
- package/design/sdk/components/loader/loader.css +37 -0
- package/design/sdk/components/loader/loader.ts +79 -0
- package/design/sdk/components/masonry/masonry.css +7 -0
- package/design/sdk/components/masonry/masonry.ts +50 -0
- package/design/sdk/components/match/match.css +22 -0
- package/design/sdk/components/match/match.ts +95 -0
- package/design/sdk/components/menu/menu.css +22 -0
- package/design/sdk/components/menu/menu.ts +120 -0
- package/design/sdk/components/notification/notification.css +32 -0
- package/design/sdk/components/notification/notification.ts +117 -0
- package/design/sdk/components/otp-input/otp-input.css +35 -0
- package/design/sdk/components/otp-input/otp-input.ts +94 -0
- package/design/sdk/components/pagination/pagination.css +14 -0
- package/design/sdk/components/pagination/pagination.ts +97 -0
- package/design/sdk/components/picture/picture.css +37 -0
- package/design/sdk/components/picture/picture.ts +112 -0
- package/design/sdk/components/progress-steps/progress-steps.css +37 -0
- package/design/sdk/components/progress-steps/progress-steps.ts +109 -0
- package/design/sdk/components/query-error/query-error.css +27 -0
- package/design/sdk/components/query-error/query-error.ts +167 -0
- package/design/sdk/components/radio-group/radio-group.css +10 -0
- package/design/sdk/components/radio-group/radio-group.ts +209 -0
- package/design/sdk/components/scheduler/scheduler.css +49 -0
- package/design/sdk/components/scheduler/scheduler.ts +267 -0
- package/design/sdk/components/scrollable/scrollable.css +58 -0
- package/design/sdk/components/scrollable/scrollable.ts +198 -0
- package/design/sdk/components/scrollbar/scrollbar.css +78 -0
- package/design/sdk/components/scrollbar/scrollbar.ts +152 -0
- package/design/sdk/components/select/select.css +5 -0
- package/design/sdk/components/select/select.ts +42 -0
- package/design/sdk/components/select/shared/select-part.ts +80 -0
- package/design/sdk/components/select-panel/select-panel.css +3 -0
- package/design/sdk/components/select-panel/select-panel.ts +144 -0
- package/design/sdk/components/skeleton/skeleton.css +22 -0
- package/design/sdk/components/skeleton/skeleton.ts +58 -0
- package/design/sdk/components/slider/slider.css +47 -0
- package/design/sdk/components/slider/slider.ts +133 -0
- package/design/sdk/components/standings/standings.css +32 -0
- package/design/sdk/components/standings/standings.ts +146 -0
- package/design/sdk/components/stat-tile/stat-tile.css +15 -0
- package/design/sdk/components/stat-tile/stat-tile.ts +97 -0
- package/design/sdk/components/stream/stream.css +42 -0
- package/design/sdk/components/stream/stream.ts +63 -0
- package/design/sdk/components/switch/switch.ts +94 -0
- package/design/sdk/components/table/table.css +67 -0
- package/design/sdk/components/table/table.ts +320 -0
- package/design/sdk/components/tabs/tabs.css +13 -0
- package/design/sdk/components/tabs/tabs.ts +95 -0
- package/design/sdk/components/textarea/textarea.css +90 -0
- package/design/sdk/components/textarea/textarea.ts +154 -0
- package/design/sdk/components/timeline/timeline.css +30 -0
- package/design/sdk/components/timeline/timeline.ts +98 -0
- package/design/sdk/components/toolbar/toolbar.css +24 -0
- package/design/sdk/components/toolbar/toolbar.ts +104 -0
- package/design/sdk/components/tooltip/tooltip.css +15 -0
- package/design/sdk/components/tooltip/tooltip.ts +39 -0
- package/design/sdk/components/tree/selected-tint.css +15 -0
- package/design/sdk/components/tree/tree.ts +89 -0
- package/design/sdk/fixtures.ts +0 -0
- package/design/sdk/foundations/colors/colors.css +602 -0
- package/design/sdk/foundations/colors/colors.ts +218 -0
- package/design/sdk/foundations/colors/faces.css +75 -0
- package/design/sdk/foundations/colors/overrides.json +19 -0
- package/design/sdk/foundations/colors/shared/contrast.ts +105 -0
- package/design/sdk/foundations/elevation/elevation.css +6 -0
- package/design/sdk/foundations/elevation/elevation.ts +18 -0
- package/design/sdk/foundations/elevation/shared/elevation/scene.css +106 -0
- package/design/sdk/foundations/elevation/shared/elevation/scene.ts +74 -0
- package/design/sdk/foundations/icons/icons.ts +125 -0
- package/design/sdk/lint-baseline.json +6 -0
- package/design/sdk/ready.json +488 -0
- package/design/sdk/rule-baseline.json +48 -0
- package/design/select.ts +199 -0
- package/design/skeleton.ts +67 -0
- package/design/slider.ts +155 -0
- package/design/standings.ts +166 -0
- package/design/stat-tile.ts +109 -0
- package/design/stream.ts +92 -0
- package/design/switch.ts +83 -0
- package/design/table.ts +309 -0
- package/design/tabs.ts +75 -0
- package/design/textarea.ts +94 -0
- package/design/timeline.ts +52 -0
- package/design/toggletip.ts +85 -0
- package/design/toolbar.ts +95 -0
- package/design/tooltip.ts +95 -0
- package/design/tree.ts +106 -0
- package/fesm2022/ethlete-components-testing.mjs +440 -0
- package/fesm2022/ethlete-components-testing.mjs.map +1 -0
- package/fesm2022/ethlete-components.mjs +115628 -12455
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/component/component-names.js +42 -0
- package/generators/component/component-templates.js +211 -0
- package/generators/component/generator.js +144 -0
- package/generators/component/schema.json +109 -0
- package/generators/component/workspace-edits.js +92 -0
- package/generators/generators.json +126 -0
- package/generators/icons/generator.js +231 -0
- package/generators/icons/schema.json +35 -0
- package/generators/migrate-bracket-default-cards/bracket-default-cards.js +67 -0
- package/generators/migrate-bracket-default-cards/migration.js +63 -0
- package/generators/migrate-bracket-default-cards/schema.json +26 -0
- package/generators/migrate-bracket-ethlete-renames/bracket-ethlete-renames.js +15 -0
- package/generators/migrate-bracket-ethlete-renames/migration.js +31 -0
- package/generators/migrate-bracket-ethlete-renames/schema.json +26 -0
- package/generators/migrate-cascader-tree-internals/cascader-tree-internals.js +6 -0
- package/generators/migrate-cascader-tree-internals/migration.js +11 -0
- package/generators/migrate-cascader-tree-internals/schema.json +26 -0
- package/generators/migrate-chart-baseline-y/chart-baseline-y.js +10 -0
- package/generators/migrate-chart-baseline-y/migration.js +41 -0
- package/generators/migrate-chart-baseline-y/schema.json +26 -0
- package/generators/migrate-duration-format-internals/duration-format-internals.js +6 -0
- package/generators/migrate-duration-format-internals/migration.js +11 -0
- package/generators/migrate-duration-format-internals/schema.json +26 -0
- package/generators/migrate-error-color-theme-signal/error-color-theme-signal.js +37 -0
- package/generators/migrate-error-color-theme-signal/migration.js +55 -0
- package/generators/migrate-error-color-theme-signal/schema.json +26 -0
- package/generators/migrate-grid-engine-internals/grid-engine-internals.js +43 -0
- package/generators/migrate-grid-engine-internals/migration.js +11 -0
- package/generators/migrate-grid-engine-internals/schema.json +26 -0
- package/generators/migrate-line-chart-stacked-area-mix/line-chart-stacked-area-mix.js +48 -0
- package/generators/migrate-line-chart-stacked-area-mix/migration.js +35 -0
- package/generators/migrate-line-chart-stacked-area-mix/schema.json +26 -0
- package/generators/migrate-loader-determinate/loader-determinate.js +87 -0
- package/generators/migrate-loader-determinate/migration.js +49 -0
- package/generators/migrate-loader-determinate/schema.json +26 -0
- package/generators/migrate-overlay-and-column-api/column-visibility-host.js +102 -0
- package/generators/migrate-overlay-and-column-api/migration.js +39 -0
- package/generators/migrate-overlay-and-column-api/overlay-and-column-api.js +18 -0
- package/generators/migrate-overlay-and-column-api/overlay-result.js +399 -0
- package/generators/migrate-overlay-and-column-api/schema.json +26 -0
- package/generators/migrate-overlay-and-column-api/source-scan.js +171 -0
- package/generators/migrate-overlay-fullscreen-animation/migration.js +11 -0
- package/generators/migrate-overlay-fullscreen-animation/overlay-fullscreen-animation.js +16 -0
- package/generators/migrate-overlay-fullscreen-animation/schema.json +26 -0
- package/generators/migrate-overlay-nav-tab-imports/migration.js +35 -0
- package/generators/migrate-overlay-nav-tab-imports/overlay-nav-tab-imports.js +25 -0
- package/generators/migrate-overlay-nav-tab-imports/schema.json +26 -0
- package/generators/migrate-pip-window-z-index/migration.js +85 -0
- package/generators/migrate-pip-window-z-index/pip-window-z-index.js +60 -0
- package/generators/migrate-pip-window-z-index/schema.json +26 -0
- package/generators/migrate-query-error-labels/migration-scope.js +30 -0
- package/generators/migrate-query-error-labels/migration.js +58 -0
- package/generators/migrate-query-error-labels/query-error-labels.js +30 -0
- package/generators/migrate-query-error-labels/schema.json +26 -0
- package/generators/migrate-rich-text-editor-floating-toolbar/migration.js +57 -0
- package/generators/migrate-rich-text-editor-floating-toolbar/rich-text-editor-floating-toolbar.js +28 -0
- package/generators/migrate-rich-text-editor-floating-toolbar/schema.json +26 -0
- package/generators/migrate-rich-text-editor-link-editor/migration.js +57 -0
- package/generators/migrate-rich-text-editor-link-editor/rich-text-editor-link-editor.js +28 -0
- package/generators/migrate-rich-text-editor-link-editor/schema.json +26 -0
- package/generators/migrate-rich-text-editor-tools/migration.js +64 -0
- package/generators/migrate-rich-text-editor-tools/rich-text-editor-tools.js +36 -0
- package/generators/migrate-rich-text-editor-tools/schema.json +26 -0
- package/generators/migrate-select-input-renames/migration.js +41 -0
- package/generators/migrate-select-input-renames/schema.json +26 -0
- package/generators/migrate-select-input-renames/select-input-renames.js +37 -0
- package/generators/migrate-stream-default-components/migration.js +86 -0
- package/generators/migrate-stream-default-components/schema.json +26 -0
- package/generators/migrate-stream-default-components/stream-default-components.js +111 -0
- package/generators/migrate-tabs-active-underline/migration.js +31 -0
- package/generators/migrate-tabs-active-underline/schema.json +26 -0
- package/generators/migrate-tabs-active-underline/tabs-active-underline.js +46 -0
- package/generators/migrate-time-picker-ring/migration.js +17 -0
- package/generators/migrate-time-picker-ring/schema.json +26 -0
- package/generators/migrate-time-picker-ring/time-picker-ring.js +25 -0
- package/generators/migrate-youtube-player-slot-directive/migration.js +11 -0
- package/generators/migrate-youtube-player-slot-directive/schema.json +26 -0
- package/generators/migrate-youtube-player-slot-directive/youtube-player-slot-directive.js +12 -0
- package/generators/removed-exports/removed-exports.js +154 -0
- package/generators/removed-exports/run-removed-exports-migration.js +48 -0
- package/migrations/components-sdk-layer.md +55 -0
- package/migrations.json +211 -0
- package/package.json +47 -17
- package/src/lib/accordion/accordion-group.component.css +12 -0
- package/src/lib/accordion/accordion.component.css +236 -0
- package/src/lib/avatar/avatar-group.component.css +31 -0
- package/src/lib/avatar/avatar.component.css +90 -0
- package/src/lib/badge/badge.component.css +118 -0
- package/src/lib/banner/banner.component.css +102 -0
- package/src/lib/bracket/bracket-default-continue.component.css +29 -0
- package/src/lib/bracket/bracket-default-final-match.component.css +76 -0
- package/src/lib/bracket/bracket-default-match.component.css +21 -0
- package/src/lib/bracket/bracket-default-round-header.component.css +36 -0
- package/src/lib/bracket/bracket-default-section-title.component.css +14 -0
- package/src/lib/bracket/bracket-participants.component.css +13 -0
- package/src/lib/bracket/bracket-pick-card.component.css +232 -0
- package/src/lib/bracket/bracket-rounds-list.component.css +75 -0
- package/src/lib/bracket/bracket-skeleton.component.css +55 -0
- package/src/lib/bracket/bracket.component.css +123 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-round-header.component.css +65 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +14 -0
- package/src/lib/breadcrumb/breadcrumb-outlet.component.css +5 -0
- package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
- package/src/lib/breadcrumb/breadcrumb.component.css +126 -0
- package/src/lib/button/button-properties-styles.component.css +195 -0
- package/src/lib/button/button.component.css +259 -0
- package/src/lib/button/button.types.ts +33 -0
- package/src/lib/button/fab.component.css +257 -0
- package/src/lib/button/icon-button.component.css +152 -0
- package/src/lib/button/split-button.component.css +103 -0
- package/src/lib/button/text-button.component.css +142 -0
- package/src/lib/button/window-control-button.component.css +214 -0
- package/src/lib/calendar/calendar-coarse-grid-styles.component.css +29 -0
- package/src/lib/calendar/calendar-comparison-band-styles.component.css +36 -0
- package/src/lib/calendar/calendar-week-numbers-styles.component.css +32 -0
- package/src/lib/calendar/calendar.component.css +374 -0
- package/src/lib/card/card.component.css +43 -0
- package/src/lib/carousel/carousel-autoplay-styles.component.css +171 -0
- package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
- package/src/lib/carousel/carousel.component.css +220 -0
- package/src/lib/chart/bar-chart.component.css +176 -0
- package/src/lib/chart/chart-axis.component.css +40 -0
- package/src/lib/chart/chart-grid.component.css +6 -0
- package/src/lib/chart/chart-legend.component.css +46 -0
- package/src/lib/chart/chart-tooltip.component.css +34 -0
- package/src/lib/chart/line-chart-tooltip.component.css +51 -0
- package/src/lib/chart/line-chart.component.css +234 -0
- package/src/lib/chart/pie-chart.component.css +176 -0
- package/src/lib/chart/sankey-chart.component.css +221 -0
- package/src/lib/chip/chip.component.css +161 -0
- package/src/lib/collapse/collapse.component.css +43 -0
- package/src/lib/command-palette/command-palette-item.component.css +98 -0
- package/src/lib/command-palette/command-palette.component.css +148 -0
- package/src/lib/description-list/description-list.component.css +78 -0
- package/src/lib/divider/divider.component.css +40 -0
- package/src/lib/empty-state/empty-state.component.css +79 -0
- package/src/lib/floating-action/floating-action-styles.component.css +105 -0
- package/src/lib/focus-ring/focus-ring-styles.component.css +31 -0
- package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
- package/src/lib/forms/cascader/cascader-panel.component.css +390 -0
- package/src/lib/forms/cascader/cascader-sheet-styles.component.css +241 -0
- package/src/lib/forms/cascader/cascader.component.css +52 -0
- package/src/lib/forms/checkbox/checkbox.component.css +278 -0
- package/src/lib/forms/choice-field/choice-field-card-styles.component.css +66 -0
- package/src/lib/forms/choice-field/choice-field.component.css +227 -0
- package/src/lib/forms/color-input/color-input.component.css +109 -0
- package/src/lib/forms/color-input/color-picker-panel.component.css +354 -0
- package/src/lib/forms/date-time/date-input/date-input.component.css +35 -0
- package/src/lib/forms/date-time/date-picker-panel.component.css +118 -0
- package/src/lib/forms/date-time/date-range-input/date-range-input.component.css +16 -0
- package/src/lib/forms/date-time/date-range-presets.component.css +60 -0
- package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +151 -0
- package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +121 -0
- package/src/lib/forms/date-time/duration-input/duration-input.component.css +88 -0
- package/src/lib/forms/date-time/range-input-shell-styles.component.css +55 -0
- package/src/lib/forms/date-time/time-input/time-input.component.css +35 -0
- package/src/lib/forms/date-time/time-range-input/time-range-input.component.css +16 -0
- package/src/lib/forms/description/description.component.css +7 -0
- package/src/lib/forms/dropzone/dropzone-crop.component.css +139 -0
- package/src/lib/forms/dropzone/dropzone-item.component.css +67 -0
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +83 -0
- package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
- package/src/lib/forms/dropzone/dropzone-row-styles.component.css +85 -0
- package/src/lib/forms/dropzone/dropzone.component.css +291 -0
- package/src/lib/forms/form-field/counter.component.css +25 -0
- package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +174 -0
- package/src/lib/forms/form-field/form-field-rich-text-styles.component.css +31 -0
- package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +93 -0
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +396 -0
- package/src/lib/forms/form-field/form-field-textarea-styles.component.css +94 -0
- package/src/lib/forms/form-field/form-field.component.css +381 -0
- package/src/lib/forms/form-field/form-support-styles.component.css +102 -0
- package/src/lib/forms/form-field/headless/label.directive.css +25 -0
- package/src/lib/forms/form-field/hint.component.css +18 -0
- package/src/lib/forms/input/input.component.css +53 -0
- package/src/lib/forms/input/number-input.component.css +128 -0
- package/src/lib/forms/input/password-input.component.css +103 -0
- package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
- package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +101 -0
- package/src/lib/forms/otp-input/otp-input.component.css +218 -0
- package/src/lib/forms/phone-input/phone-input.component.css +126 -0
- package/src/lib/forms/rating/rating.component.css +197 -0
- package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +95 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +172 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +149 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-palette.component.css +18 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +206 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +175 -0
- package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
- package/src/lib/forms/select/select-all-option.component.css +14 -0
- package/src/lib/forms/select/select-extras-styles.component.css +146 -0
- package/src/lib/forms/select/select-option-group.component.css +36 -0
- package/src/lib/forms/select/select-option-styles.component.css +167 -0
- package/src/lib/forms/select/select-panel.component.css +122 -0
- package/src/lib/forms/select/select.component.css +247 -0
- package/src/lib/forms/selection-card-styles.component.css +144 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +98 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +142 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +162 -0
- package/src/lib/forms/selection-list/radio-group/radio-group.component.css +134 -0
- package/src/lib/forms/selection-list/radio-group/radio.component.css +144 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +213 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +200 -0
- package/src/lib/forms/slider/range-slider.component.css +434 -0
- package/src/lib/forms/slider/slider.component.css +428 -0
- package/src/lib/forms/switch/switch.component.css +214 -0
- package/src/lib/forms/tag-input/tag-input.component.css +54 -0
- package/src/lib/forms/textarea/textarea-autosize-styles.component.css +16 -0
- package/src/lib/forms/textarea/textarea.component.css +45 -0
- package/src/lib/grid/grid-debug.component.css +130 -0
- package/src/lib/grid/grid-item-default-actions.component.css +11 -0
- package/src/lib/grid/grid-item-toolbar.component.css +10 -0
- package/src/lib/grid/grid-item.component.css +176 -0
- package/src/lib/grid/grid.component.css +56 -0
- package/src/lib/icon/headless/align-icons.ts +30 -0
- package/src/lib/icon/headless/arrow-out-up-right-icon.ts +17 -0
- package/src/lib/icon/headless/arrow-right-icon.ts +23 -0
- package/src/lib/icon/headless/arrow-up-icon.ts +30 -0
- package/src/lib/icon/headless/arrows-left-right-icon.ts +31 -0
- package/src/lib/icon/headless/bold-icon.ts +11 -0
- package/src/lib/icon/headless/calendar-icon.ts +21 -0
- package/src/lib/icon/headless/check-icon.ts +14 -0
- package/src/lib/icon/headless/chevron-icon.ts +14 -0
- package/src/lib/icon/headless/circle-check-icon.ts +14 -0
- package/src/lib/icon/headless/circle-info-icon.ts +14 -0
- package/src/lib/icon/headless/clipboard-check-icon.ts +28 -0
- package/src/lib/icon/headless/clock-icon.ts +21 -0
- package/src/lib/icon/headless/code-block-icon.ts +15 -0
- package/src/lib/icon/headless/code-icon.ts +14 -0
- package/src/lib/icon/headless/ellipsis-icon.ts +13 -0
- package/src/lib/icon/headless/ellipsis-vertical-icon.ts +13 -0
- package/src/lib/icon/headless/eye-icons.ts +27 -0
- package/src/lib/icon/headless/eyedropper-icon.ts +22 -0
- package/src/lib/icon/headless/file-icon.ts +16 -0
- package/src/lib/icon/headless/filter-icon.ts +11 -0
- package/src/lib/icon/headless/floppy-disk-icon.ts +27 -0
- package/src/lib/icon/headless/focus-frame-icon.ts +16 -0
- package/src/lib/icon/headless/grid-2x2-icon.ts +17 -0
- package/src/lib/icon/headless/heading-1-icon.ts +11 -0
- package/src/lib/icon/headless/heading-2-icon.ts +11 -0
- package/src/lib/icon/headless/heading-3-icon.ts +11 -0
- package/src/lib/icon/headless/icon-definition.ts +14 -0
- package/src/lib/icon/headless/icon-styles.component.css +7 -0
- package/src/lib/icon/headless/image-icon.ts +14 -0
- package/src/lib/icon/headless/italic-icon.ts +19 -0
- package/src/lib/icon/headless/link-icon.ts +17 -0
- package/src/lib/icon/headless/list-bulleted-icon.ts +14 -0
- package/src/lib/icon/headless/list-numbered-icon.ts +14 -0
- package/src/lib/icon/headless/location-icon.ts +21 -0
- package/src/lib/icon/headless/lock-icon.ts +14 -0
- package/src/lib/icon/headless/minus-icon.ts +14 -0
- package/src/lib/icon/headless/paragraph-icon.ts +11 -0
- package/src/lib/icon/headless/pause-icon.ts +11 -0
- package/src/lib/icon/headless/pencil-icon.ts +21 -0
- package/src/lib/icon/headless/play-icon.ts +10 -0
- package/src/lib/icon/headless/plus-icon.ts +21 -0
- package/src/lib/icon/headless/quote-icon.ts +15 -0
- package/src/lib/icon/headless/rotate-right-icon.ts +16 -0
- package/src/lib/icon/headless/star-icon.ts +14 -0
- package/src/lib/icon/headless/strikethrough-icon.ts +18 -0
- package/src/lib/icon/headless/table-icon.ts +15 -0
- package/src/lib/icon/headless/thumbtack-icon.ts +18 -0
- package/src/lib/icon/headless/times-icon.ts +14 -0
- package/src/lib/icon/headless/trash-icon.ts +24 -0
- package/src/lib/icon/headless/triangle-exclamation-icon.ts +14 -0
- package/src/lib/icon/headless/trophy-icon.ts +24 -0
- package/src/lib/icon/headless/underline-icon.ts +12 -0
- package/src/lib/icon/headless/undo-redo-icons.ts +24 -0
- package/src/lib/icon/headless/upload-icon.ts +16 -0
- package/src/lib/kbd/kbd.component.css +62 -0
- package/src/lib/loader/brand-loader/brand-loader.component.css +133 -0
- package/src/lib/loader/progress-bar/progress-bar.component.css +186 -0
- package/src/lib/loader/spinner/spinner-styles.component.css +225 -0
- package/src/lib/loader/spinner/spinner-sweep-dashes.ts +19 -0
- package/src/lib/masonry/masonry-styles.component.css +84 -0
- package/src/lib/match/match-card.component.css +545 -0
- package/src/lib/match/match-participant.component.css +236 -0
- package/src/lib/match/match-score.component.css +77 -0
- package/src/lib/match/match-scoreline.component.css +53 -0
- package/src/lib/match/match-time.component.css +5 -0
- package/src/lib/menu/menu-group-label.component.css +12 -0
- package/src/lib/menu/menu-item-shortcut.component.css +26 -0
- package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
- package/src/lib/menu/menu-item.component.css +36 -0
- package/src/lib/menu/menu-search-styles.component.css +83 -0
- package/src/lib/menu/menu-selection-item.component.css +92 -0
- package/src/lib/menu/menu-separator.component.css +9 -0
- package/src/lib/menu/menu.component.css +310 -0
- package/src/lib/notification/notification-stack.component.css +114 -0
- package/src/lib/notification/notification.component.css +275 -0
- package/src/lib/overlay/alert-dialog/alert-dialog.component.css +55 -0
- package/src/lib/overlay/floating-panel-styles.component.css +71 -0
- package/src/lib/overlay/floating-tip-styles.component.css +84 -0
- package/src/lib/overlay/overlay-container.component.css +173 -0
- package/src/lib/overlay/overlay-main-styles.component.css +105 -0
- package/src/lib/overlay/overlay-template-host.component.css +7 -0
- package/src/lib/overlay/routing/overlay-route-header-template-outlet.component.css +36 -0
- package/src/lib/overlay/routing/overlay-router-outlet.component.css +215 -0
- package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
- package/src/lib/overlay/sidebar/overlay-sidebar.component.css +23 -0
- package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +78 -0
- package/src/lib/overlay/strategies/dialog-styles.component.css +77 -0
- package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +141 -0
- package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
- package/src/lib/overlay/strategies/overlay-origin-clone.component.css +92 -0
- package/src/lib/overlay/strategies/sheet-styles.component.css +170 -0
- package/src/lib/pagination/page-size-select.component.css +6 -0
- package/src/lib/pagination/pagination.component.css +185 -0
- package/src/lib/picture/picture.component.css +82 -0
- package/src/lib/progress-steps/progress-step.component.css +269 -0
- package/src/lib/progress-steps/progress-steps.component.css +26 -0
- package/src/lib/query-error/query-error.component.css +27 -0
- package/src/lib/scheduler/scheduler-agenda-view.component.css +106 -0
- package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +59 -0
- package/src/lib/scheduler/scheduler-appointment-styles.component.css +129 -0
- package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
- package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
- package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
- package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
- package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
- package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
- package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
- package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
- package/src/lib/scheduler/scheduler-month-view.component.css +143 -0
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +269 -0
- package/src/lib/scheduler/scheduler.component.css +87 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +223 -0
- package/src/lib/scrollable/headless/scrollable-footer.css +37 -0
- package/src/lib/scrollable/headless/scrollable-masks.component.css +165 -0
- package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
- package/src/lib/scrollable/scrollable.component.css +234 -0
- package/src/lib/scrollbar/scrollbar.component.css +116 -0
- package/src/lib/skeleton/skeleton.component.css +132 -0
- package/src/lib/standings/standings-pick.component.css +208 -0
- package/src/lib/standings/standings.component.css +347 -0
- package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
- package/src/lib/stat-tile/stat-tile.component.css +134 -0
- package/src/lib/stream/consent/stream-consent.component.css +100 -0
- package/src/lib/stream/error/stream-player-error.component.css +101 -0
- package/src/lib/stream/loading/stream-player-loading.component.css +16 -0
- package/src/lib/stream/pip/pip-player.component.css +40 -0
- package/src/lib/stream/pip/pip-slot-placeholder.component.css +68 -0
- package/src/lib/stream/pip/pip-stage-styles.component.css +93 -0
- package/src/lib/stream/pip/pip-window.component.css +221 -0
- package/src/lib/stream/stream-manager-styles.component.css +10 -0
- package/src/lib/stream/stream-overlay-card-styles.component.css +69 -0
- package/src/lib/stream/stream-player-slot-styles.component.css +18 -0
- package/src/lib/table/table-column-chooser.component.css +17 -0
- package/src/lib/table/table-column-menu-trigger.component.css +31 -0
- package/src/lib/table/table-detail-styles.component.css +103 -0
- package/src/lib/table/table-drag-scroll-styles.component.css +18 -0
- package/src/lib/table/table-expander-cell.component.css +64 -0
- package/src/lib/table/table-filter-trigger.component.css +44 -0
- package/src/lib/table/table-group-header-row.component.css +38 -0
- package/src/lib/table/table-inline-edit-styles.component.css +20 -0
- package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
- package/src/lib/table/table-reorder-overlay.component.css +42 -0
- package/src/lib/table/table-resize-grip.component.css +65 -0
- package/src/lib/table/table-row-box-styles.component.css +268 -0
- package/src/lib/table/table-select-cell.component.css +119 -0
- package/src/lib/table/table-skeleton-rows.component.css +19 -0
- package/src/lib/table/table-sort-priority-styles.component.css +15 -0
- package/src/lib/table/table-sticky-columns-styles.component.css +80 -0
- package/src/lib/table/table-virtual-scroll-styles.component.css +9 -0
- package/src/lib/table/table.component.css +853 -0
- package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +37 -0
- package/src/lib/tabs/tab-bar-styles.component.css +266 -0
- package/src/lib/tabs/tab-scale-styles.component.css +61 -0
- package/src/lib/tabs/tabs/tab-group.component.css +115 -0
- package/src/lib/time-picker/time-picker.component.css +212 -0
- package/src/lib/timeline/timeline-item.component.css +139 -0
- package/src/lib/timeline/timeline.component.css +7 -0
- package/src/lib/toggletip/toggletip.component.css +88 -0
- package/src/lib/toolbar/toolbar.component.css +44 -0
- package/src/lib/tooltip/tooltip.component.css +84 -0
- package/src/lib/tree/tree.component.css +221 -0
- package/types/ethlete-components-testing.d.ts +300 -0
- package/types/ethlete-components.d.ts +37511 -3814
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
@property --et-menu-min-width {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 180px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-menu-max-height {
|
|
9
|
+
syntax: '<length-percentage>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 40vh;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-menu-padding-block {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 6px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-menu-padding-inline {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 6px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-menu-border-radius {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 10px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-menu-item-height {
|
|
33
|
+
syntax: '<length>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 36px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@property --et-menu-item-padding-inline {
|
|
39
|
+
syntax: '<length>';
|
|
40
|
+
inherits: true;
|
|
41
|
+
initial-value: 10px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@property --et-menu-item-gap {
|
|
45
|
+
syntax: '<length>';
|
|
46
|
+
inherits: true;
|
|
47
|
+
initial-value: 10px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@property --et-menu-item-border-radius {
|
|
51
|
+
syntax: '<length>';
|
|
52
|
+
inherits: true;
|
|
53
|
+
initial-value: 6px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@property --et-menu-item-font-size {
|
|
57
|
+
syntax: '<length>';
|
|
58
|
+
inherits: true;
|
|
59
|
+
initial-value: 14px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@property --et-menu-item-icon-size {
|
|
63
|
+
syntax: '<length>';
|
|
64
|
+
inherits: true;
|
|
65
|
+
initial-value: 16px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@property --et-menu-item-submenu-icon-size {
|
|
69
|
+
syntax: '<length>';
|
|
70
|
+
inherits: true;
|
|
71
|
+
initial-value: 12px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@property --et-menu-separator-margin-block {
|
|
75
|
+
syntax: '<length>';
|
|
76
|
+
inherits: true;
|
|
77
|
+
initial-value: 6px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@property --et-menu-group-label-font-size {
|
|
81
|
+
syntax: '<length>';
|
|
82
|
+
inherits: true;
|
|
83
|
+
initial-value: 12px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@property --et-menu-scroll-fade-size {
|
|
87
|
+
syntax: '<length>';
|
|
88
|
+
inherits: true;
|
|
89
|
+
initial-value: 12px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@property --_et-menu-fade-start {
|
|
93
|
+
syntax: '<length>';
|
|
94
|
+
inherits: false;
|
|
95
|
+
initial-value: 0px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@property --_et-menu-fade-end {
|
|
99
|
+
syntax: '<length>';
|
|
100
|
+
inherits: false;
|
|
101
|
+
initial-value: 0px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@keyframes et-menu-scroll-fade-start {
|
|
105
|
+
to {
|
|
106
|
+
--_et-menu-fade-start: var(--et-menu-scroll-fade-size);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@keyframes et-menu-scroll-fade-end {
|
|
111
|
+
from {
|
|
112
|
+
--_et-menu-fade-end: var(--et-menu-scroll-fade-size);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
to {
|
|
116
|
+
--_et-menu-fade-end: 0px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.et-overlay.et-overlay--menu {
|
|
121
|
+
overflow: visible;
|
|
122
|
+
background: transparent;
|
|
123
|
+
box-shadow: none;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.et-menu {
|
|
127
|
+
--_et-menu-background: var(--et-surface-background, rgb(32 32 32));
|
|
128
|
+
--_et-menu-color: var(--et-surface-text, rgb(244 244 245));
|
|
129
|
+
--_et-menu-border: var(--et-surface-border, rgb(255 255 255 / 0.1));
|
|
130
|
+
--_et-menu-shadow: var(
|
|
131
|
+
--et-anchored-panel-shadow,
|
|
132
|
+
0 10px 24px color-mix(in srgb, var(--et-shadow-color, rgb(0 0 0)) 16%, transparent)
|
|
133
|
+
);
|
|
134
|
+
--_et-menu-item-active-background: color-mix(
|
|
135
|
+
in srgb,
|
|
136
|
+
var(--et-surface-control-text, rgb(255 255 255)) 12%,
|
|
137
|
+
transparent
|
|
138
|
+
);
|
|
139
|
+
--_et-menu-item-pressed-background: color-mix(
|
|
140
|
+
in srgb,
|
|
141
|
+
var(--et-surface-control-text, rgb(255 255 255)) 20%,
|
|
142
|
+
transparent
|
|
143
|
+
);
|
|
144
|
+
--_et-menu-muted-color: var(--et-surface-text-muted, rgb(255 255 255 / 0.55));
|
|
145
|
+
--_et-menu-separator-color: var(--et-surface-border, rgb(255 255 255 / 0.1));
|
|
146
|
+
|
|
147
|
+
display: flex;
|
|
148
|
+
flex-direction: column;
|
|
149
|
+
min-inline-size: var(--et-menu-min-width);
|
|
150
|
+
max-inline-size: min(320px, calc(100vw - 24px));
|
|
151
|
+
/* an anchored pane does not clip, so dropping the pane's own cap here lets a menu taller than
|
|
152
|
+
the room next to the trigger hang out of the pane and past the viewport edge */
|
|
153
|
+
max-block-size: min(var(--et-menu-max-height), var(--et-overlay-max-height, 100vh));
|
|
154
|
+
border-radius: var(--et-menu-border-radius);
|
|
155
|
+
border: 1px solid var(--_et-menu-border);
|
|
156
|
+
background: var(--_et-menu-background);
|
|
157
|
+
color: var(--_et-menu-color);
|
|
158
|
+
font-family: var(--et-font-family, inherit);
|
|
159
|
+
font-size: var(--et-menu-item-font-size);
|
|
160
|
+
box-shadow: var(--_et-menu-shadow);
|
|
161
|
+
outline: none;
|
|
162
|
+
|
|
163
|
+
/* applied while the block size animates after a content change (e.g. search filtering),
|
|
164
|
+
so content outside the animated size stays hidden */
|
|
165
|
+
&.et-menu--resizing {
|
|
166
|
+
overflow: clip;
|
|
167
|
+
|
|
168
|
+
/* the scroller is sized by the host, so the animated host size shrinks it below its content
|
|
169
|
+
mid-animation - without this it flashes a scrollbar on every resize */
|
|
170
|
+
.et-menu-body {
|
|
171
|
+
overflow: clip;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.et-menu-header {
|
|
176
|
+
flex: none;
|
|
177
|
+
padding: var(--et-menu-padding-block) var(--et-menu-padding-inline) 0;
|
|
178
|
+
|
|
179
|
+
contain: inline-size;
|
|
180
|
+
|
|
181
|
+
&:not(:has(input[etmenusearch])) {
|
|
182
|
+
display: none;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/* The block gap has to be a margin. Padding on the scroller is inside its scrollport, so an
|
|
187
|
+
option scrolls into the gap under the search field; padding on the content scrolls away with
|
|
188
|
+
it, leaving the cut on the field's border. A margin holds the gap outside the scrollport, so a
|
|
189
|
+
scrolled option is always cut a gap away from the field and from the rounded corners. */
|
|
190
|
+
.et-menu-body-wrapper {
|
|
191
|
+
position: relative;
|
|
192
|
+
display: flex;
|
|
193
|
+
flex-direction: column;
|
|
194
|
+
flex: 1;
|
|
195
|
+
min-block-size: 0;
|
|
196
|
+
margin-block: var(--et-menu-padding-block);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.et-menu-body {
|
|
200
|
+
flex: 1;
|
|
201
|
+
min-block-size: 0;
|
|
202
|
+
padding-inline: var(--et-menu-padding-inline);
|
|
203
|
+
overflow-y: auto;
|
|
204
|
+
overscroll-behavior: contain;
|
|
205
|
+
|
|
206
|
+
/* The two fade lengths ride the scroll position, so each cut edge only fades while there is
|
|
207
|
+
more to scroll that way - `both` is what holds a fade at full length beyond its range. The
|
|
208
|
+
mask stays inside the `@supports`: without scroll-driven animations it could never animate,
|
|
209
|
+
and a permanent fade on a list that does not scroll is worse than the plain cut. */
|
|
210
|
+
@supports (animation-timeline: scroll()) {
|
|
211
|
+
mask-image: linear-gradient(
|
|
212
|
+
to bottom,
|
|
213
|
+
transparent 0,
|
|
214
|
+
black var(--_et-menu-fade-start),
|
|
215
|
+
black calc(100% - var(--_et-menu-fade-end)),
|
|
216
|
+
transparent 100%
|
|
217
|
+
);
|
|
218
|
+
|
|
219
|
+
animation:
|
|
220
|
+
et-menu-scroll-fade-start linear both,
|
|
221
|
+
et-menu-scroll-fade-end linear both;
|
|
222
|
+
animation-timeline: scroll(self block), scroll(self block);
|
|
223
|
+
animation-range:
|
|
224
|
+
0 var(--et-menu-scroll-fade-size),
|
|
225
|
+
calc(100% - var(--et-menu-scroll-fade-size)) 100%;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.et-menu-group {
|
|
230
|
+
display: block;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.et-menu-item {
|
|
234
|
+
display: flex;
|
|
235
|
+
align-items: center;
|
|
236
|
+
gap: var(--et-menu-item-gap);
|
|
237
|
+
inline-size: 100%;
|
|
238
|
+
min-block-size: var(--et-menu-item-height);
|
|
239
|
+
padding-inline: var(--et-menu-item-padding-inline);
|
|
240
|
+
border: none;
|
|
241
|
+
border-radius: var(--et-menu-item-border-radius);
|
|
242
|
+
background: transparent;
|
|
243
|
+
color: inherit;
|
|
244
|
+
font: inherit;
|
|
245
|
+
font-weight: var(--et-menu-item-font-weight);
|
|
246
|
+
text-align: start;
|
|
247
|
+
text-decoration: none;
|
|
248
|
+
cursor: pointer;
|
|
249
|
+
outline: none;
|
|
250
|
+
box-sizing: border-box;
|
|
251
|
+
-webkit-tap-highlight-color: transparent;
|
|
252
|
+
transition:
|
|
253
|
+
background 120ms ease,
|
|
254
|
+
color 120ms ease,
|
|
255
|
+
opacity 120ms ease;
|
|
256
|
+
|
|
257
|
+
&[data-active]:where([data-active-source='keyboard']):focus-visible {
|
|
258
|
+
outline: 2px solid var(--et-tone-text);
|
|
259
|
+
outline-offset: -2px;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/* the roving focus is applied programmatically on mouse-open too, so :focus-visible (instead
|
|
263
|
+
of [data-active] alone) keeps the highlight from appearing without a hover or keyboard
|
|
264
|
+
interaction; a trigger whose submenu is open stays highlighted the whole time, and an item
|
|
265
|
+
activated from the keyboard keeps its highlight while the menu fades out */
|
|
266
|
+
&[data-active]:where([data-active-source='keyboard']:focus-visible),
|
|
267
|
+
&[data-highlight-held],
|
|
268
|
+
&[data-menu-open] {
|
|
269
|
+
background: var(--_et-menu-item-active-background);
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
@media (hover: hover) {
|
|
273
|
+
&[data-active]:where(:hover) {
|
|
274
|
+
background: var(--_et-menu-item-active-background);
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&:active:not([aria-disabled='true']) {
|
|
279
|
+
background: var(--_et-menu-item-pressed-background);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&[aria-disabled='true']:not([data-loading]) {
|
|
283
|
+
opacity: 0.4;
|
|
284
|
+
cursor: default;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
&[data-loading] {
|
|
288
|
+
cursor: progress;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&[data-variant='destructive'] {
|
|
292
|
+
/* the item forces the error color theme onto itself while destructive */
|
|
293
|
+
color: var(--et-tone-text, rgb(248 113 113));
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* Every kind of item has a label — a plain one, a checkbox, a radio — so its layout lives here
|
|
297
|
+
rather than with any single item component. Those stylesheets are only injected once their
|
|
298
|
+
component is actually rendered, and a menu of nothing but selection items never renders the
|
|
299
|
+
plain one: the label would then not grow, and the trailing check/icon would sit against the
|
|
300
|
+
text instead of the item's trailing edge. */
|
|
301
|
+
.et-menu-item-content {
|
|
302
|
+
flex: 1;
|
|
303
|
+
min-inline-size: 0;
|
|
304
|
+
overflow: hidden;
|
|
305
|
+
text-overflow: ellipsis;
|
|
306
|
+
white-space: nowrap;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
/* `start`/`end` in the position names are logical, so the insets are too — the stack docks to the
|
|
3
|
+
inline-start/end edge and flips under `dir="rtl"`. `align-items: flex-start/flex-end` is already
|
|
4
|
+
logical (it resolves against the writing direction), so it needs no counterpart. The `center`
|
|
5
|
+
positions stay on physical `left` + a symmetric translate: centering is direction-agnostic and
|
|
6
|
+
the physical form is the idiom. */
|
|
7
|
+
.et-notification-stack {
|
|
8
|
+
/* Plus whatever a surface above the page has reserved on that edge - a docked devtools panel, an
|
|
9
|
+
app's own always-on-top chrome - so a toast is never stacked under it. The reserved edges are
|
|
10
|
+
physical, so the inline pair swaps under `dir="rtl"`. @see reserveOverlayViewportSpace */
|
|
11
|
+
--_et-notification-inset-block-start: calc(1rem + var(--et-viewport-inset-top, 0px));
|
|
12
|
+
--_et-notification-inset-block-end: calc(1rem + var(--et-viewport-inset-bottom, 0px));
|
|
13
|
+
--_et-notification-inset-inline-start: calc(1rem + var(--et-viewport-inset-left, 0px));
|
|
14
|
+
--_et-notification-inset-inline-end: calc(1rem + var(--et-viewport-inset-right, 0px));
|
|
15
|
+
|
|
16
|
+
/* Half the difference of the two reserved inline edges: centers the stack in the space that is
|
|
17
|
+
left rather than in the whole viewport. */
|
|
18
|
+
--_et-notification-center-shift: calc(
|
|
19
|
+
(var(--et-viewport-inset-left, 0px) - var(--et-viewport-inset-right, 0px)) / 2
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
position: fixed;
|
|
23
|
+
display: flex;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
align-items: flex-end;
|
|
26
|
+
gap: var(--et-notification-stack-gap, 0.5rem);
|
|
27
|
+
/* The level is set inline by the stack directive, above the one overlays mount at.
|
|
28
|
+
@see NOTIFICATION_STACK_OVERLAY_LAYER */
|
|
29
|
+
z-index: var(--et-notification-stack-z-index, var(--_et-notification-stack-layer));
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
|
|
32
|
+
/* Both block insets on every position, so a stack that grows past the opposite edge stops at the
|
|
33
|
+
space reserved there instead of sliding under it. The docked edge is the one the toasts sit on,
|
|
34
|
+
which is what `justify-content` picks. */
|
|
35
|
+
top: var(--_et-notification-inset-block-start);
|
|
36
|
+
bottom: var(--_et-notification-inset-block-end);
|
|
37
|
+
|
|
38
|
+
/* default: bottom-end */
|
|
39
|
+
justify-content: flex-end;
|
|
40
|
+
inset-inline-end: var(--_et-notification-inset-inline-end);
|
|
41
|
+
|
|
42
|
+
&:dir(rtl) {
|
|
43
|
+
--_et-notification-inset-inline-start: calc(1rem + var(--et-viewport-inset-right, 0px));
|
|
44
|
+
--_et-notification-inset-inline-end: calc(1rem + var(--et-viewport-inset-left, 0px));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[data-position='bottom-center'] {
|
|
48
|
+
justify-content: flex-end;
|
|
49
|
+
inset-inline: auto;
|
|
50
|
+
left: calc(50% + var(--_et-notification-center-shift));
|
|
51
|
+
align-items: center;
|
|
52
|
+
transform: translateX(-50%);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&[data-position='bottom-start'] {
|
|
56
|
+
justify-content: flex-end;
|
|
57
|
+
inset-inline-start: var(--_et-notification-inset-inline-start);
|
|
58
|
+
inset-inline-end: auto;
|
|
59
|
+
align-items: flex-start;
|
|
60
|
+
transform: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&[data-position='bottom-end'] {
|
|
64
|
+
justify-content: flex-end;
|
|
65
|
+
inset-inline-start: auto;
|
|
66
|
+
inset-inline-end: var(--_et-notification-inset-inline-end);
|
|
67
|
+
align-items: flex-end;
|
|
68
|
+
transform: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[data-position='top-center'] {
|
|
72
|
+
justify-content: flex-start;
|
|
73
|
+
inset-inline: auto;
|
|
74
|
+
left: calc(50% + var(--_et-notification-center-shift));
|
|
75
|
+
align-items: center;
|
|
76
|
+
transform: translateX(-50%);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&[data-position='top-start'] {
|
|
80
|
+
justify-content: flex-start;
|
|
81
|
+
inset-inline-start: var(--_et-notification-inset-inline-start);
|
|
82
|
+
inset-inline-end: auto;
|
|
83
|
+
align-items: flex-start;
|
|
84
|
+
transform: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&[data-position='top-end'] {
|
|
88
|
+
justify-content: flex-start;
|
|
89
|
+
inset-inline-start: auto;
|
|
90
|
+
inset-inline-end: var(--_et-notification-inset-inline-end);
|
|
91
|
+
align-items: flex-end;
|
|
92
|
+
transform: none;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.et-notification-stack > [data-notification-id] > * {
|
|
97
|
+
pointer-events: auto;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* A corner card is the desktop shape. On a phone the stack spans both edges instead and the card
|
|
101
|
+
fills it, which is what a toast looks like there - and what keeps it on screen at all: the card's
|
|
102
|
+
300px minimum plus these insets already overflows a 320px viewport at a 16px rem base.
|
|
103
|
+
`left`/`right` rather than the logical pair because the span is symmetric, and matching the
|
|
104
|
+
`[data-position]` weight because every position rule above sets these same insets. */
|
|
105
|
+
@media (max-width: 480px) {
|
|
106
|
+
.et-notification-stack,
|
|
107
|
+
.et-notification-stack[data-position] {
|
|
108
|
+
left: calc(1rem + var(--et-viewport-inset-left, 0px));
|
|
109
|
+
right: calc(1rem + var(--et-viewport-inset-right, 0px));
|
|
110
|
+
align-items: stretch;
|
|
111
|
+
transform: none;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
@layer components.sdk {
|
|
2
|
+
@property --et-notification-border-radius {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 4px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-notification-padding {
|
|
9
|
+
syntax: '*';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 12px 12px 12px 14px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-notification-min-width {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 300px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-notification-max-width {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 420px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-notification-shadow {
|
|
27
|
+
syntax: '*';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value:
|
|
30
|
+
0 4px 16px color-mix(in srgb, var(--et-shadow-color, rgb(0 0 0)) 10%, transparent),
|
|
31
|
+
0 0 0 1px color-mix(in srgb, var(--et-shadow-color, rgb(0 0 0)) 5%, transparent);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@property --et-notification-border-width {
|
|
35
|
+
syntax: '<length>';
|
|
36
|
+
inherits: true;
|
|
37
|
+
initial-value: 4px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@property --et-notification-font-size {
|
|
41
|
+
syntax: '<length>';
|
|
42
|
+
inherits: true;
|
|
43
|
+
initial-value: 14px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@property --et-notification-line-height {
|
|
47
|
+
syntax: '<length>';
|
|
48
|
+
inherits: true;
|
|
49
|
+
initial-value: 20px;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@property --et-notification-gap {
|
|
53
|
+
syntax: '<length>';
|
|
54
|
+
inherits: true;
|
|
55
|
+
initial-value: 8px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@property --et-notification-title-font-weight {
|
|
59
|
+
syntax: '<number>';
|
|
60
|
+
inherits: true;
|
|
61
|
+
initial-value: 600;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@property --et-notification-message-font-size {
|
|
65
|
+
syntax: '<length>';
|
|
66
|
+
inherits: true;
|
|
67
|
+
initial-value: 12px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@property --et-notification-message-line-height {
|
|
71
|
+
syntax: '<length>';
|
|
72
|
+
inherits: true;
|
|
73
|
+
initial-value: 16px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@property --et-notification-message-opacity {
|
|
77
|
+
syntax: '<number>';
|
|
78
|
+
inherits: true;
|
|
79
|
+
initial-value: 0.65;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@property --et-notification-progress-bar-height {
|
|
83
|
+
syntax: '<length>';
|
|
84
|
+
inherits: true;
|
|
85
|
+
initial-value: 3px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@property --et-notification-icon-size {
|
|
89
|
+
syntax: '<length>';
|
|
90
|
+
inherits: true;
|
|
91
|
+
initial-value: 16px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.et-notification {
|
|
95
|
+
display: block;
|
|
96
|
+
pointer-events: all;
|
|
97
|
+
/* Fades under a swipe. Set inline by the gesture, so the leave/enter rules — which are more
|
|
98
|
+
specific — still win when the notification animates in or out. */
|
|
99
|
+
opacity: var(--_et-notification-swipe-opacity, 1);
|
|
100
|
+
background: var(--et-surface-background, #fff);
|
|
101
|
+
color: var(--et-surface-text, #111);
|
|
102
|
+
border-radius: var(--et-notification-border-radius);
|
|
103
|
+
padding: var(--et-notification-padding);
|
|
104
|
+
box-shadow: var(--et-notification-shadow);
|
|
105
|
+
min-width: var(--et-notification-min-width);
|
|
106
|
+
max-width: var(--et-notification-max-width);
|
|
107
|
+
border-inline-start: var(--et-notification-border-width) solid var(--et-tone-fill, #d1d5db);
|
|
108
|
+
font-family: var(--et-font-family, inherit);
|
|
109
|
+
font-size: var(--et-notification-font-size);
|
|
110
|
+
line-height: var(--et-notification-line-height);
|
|
111
|
+
|
|
112
|
+
/* The notification slides in from the inline edge its stack is docked to. `translateX` is
|
|
113
|
+
physical, so the offset carries a sign that flips with the writing direction — same pattern as
|
|
114
|
+
the side-sheet strategies. `--_et-notification-slide-x` picks the edge, the sign picks the
|
|
115
|
+
physical axis for it. */
|
|
116
|
+
--_et-notification-slide-x: 1rem;
|
|
117
|
+
--_et-notification-dir-sign: 1;
|
|
118
|
+
|
|
119
|
+
&:dir(rtl) {
|
|
120
|
+
--_et-notification-dir-sign: -1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&.et-animation-enter-from {
|
|
124
|
+
opacity: 0;
|
|
125
|
+
transform: translateX(calc(var(--_et-notification-slide-x) * var(--_et-notification-dir-sign)));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&.et-animation-enter-active {
|
|
129
|
+
transition:
|
|
130
|
+
opacity 200ms ease,
|
|
131
|
+
transform 200ms ease;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.et-animation-leave-active {
|
|
135
|
+
transition:
|
|
136
|
+
opacity 200ms ease,
|
|
137
|
+
transform 200ms ease;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&.et-animation-leave-to {
|
|
141
|
+
opacity: 0;
|
|
142
|
+
transform: translateX(calc(var(--_et-notification-slide-x) * var(--_et-notification-dir-sign)));
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/* A notification thrown away by the swipe gesture leaves in the direction it was thrown, from
|
|
147
|
+
wherever the finger left it. `!important` is what lets the leave transition override the
|
|
148
|
+
gesture's own inline transform — the same mechanism the sheet overlays use. */
|
|
149
|
+
.et-notification[data-swiped-away] {
|
|
150
|
+
&.et-animation-leave-to {
|
|
151
|
+
transform: translateX(var(--_et-notification-swipe-exit-x, 0px)) !important;
|
|
152
|
+
opacity: 0;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/* start positions: slide in/out from the inline-start edge */
|
|
157
|
+
.et-notification-stack[data-position='bottom-start'] .et-notification,
|
|
158
|
+
.et-notification-stack[data-position='top-start'] .et-notification {
|
|
159
|
+
--_et-notification-slide-x: -1rem;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/* bottom-center: slide in/out upward from below */
|
|
163
|
+
.et-notification-stack[data-position='bottom-center'] .et-notification {
|
|
164
|
+
&.et-animation-enter-from,
|
|
165
|
+
&.et-animation-leave-to {
|
|
166
|
+
transform: translateY(1rem);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/* top-center: slide in/out downward from above */
|
|
171
|
+
.et-notification-stack[data-position='top-center'] .et-notification {
|
|
172
|
+
&.et-animation-enter-from,
|
|
173
|
+
&.et-animation-leave-to {
|
|
174
|
+
transform: translateY(-1rem);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.et-notification-header {
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
justify-content: space-between;
|
|
182
|
+
gap: var(--et-notification-gap);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.et-notification-spinner {
|
|
186
|
+
flex-shrink: 0;
|
|
187
|
+
--et-spinner-color: var(--et-tone-fill, currentColor);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
/* The status glyph reads in the status color, which the manager's `statusColorMapping` resolves —
|
|
191
|
+
the same source the spinner and the accent border use. */
|
|
192
|
+
.et-notification-icon {
|
|
193
|
+
flex-shrink: 0;
|
|
194
|
+
width: var(--et-notification-icon-size);
|
|
195
|
+
height: var(--et-notification-icon-size);
|
|
196
|
+
color: var(--et-tone-fill, currentColor);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.et-notification-title {
|
|
200
|
+
flex: 1;
|
|
201
|
+
font-weight: var(--et-notification-title-font-weight);
|
|
202
|
+
font-size: var(--et-notification-font-size);
|
|
203
|
+
line-height: var(--et-notification-line-height);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.et-notification-dismiss-btn {
|
|
207
|
+
flex-shrink: 0;
|
|
208
|
+
opacity: 0.75;
|
|
209
|
+
transition: opacity 120ms ease;
|
|
210
|
+
|
|
211
|
+
@media (hover: hover) {
|
|
212
|
+
&:hover {
|
|
213
|
+
opacity: 1;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.et-notification-message {
|
|
219
|
+
margin: 0.4rem 0 0;
|
|
220
|
+
color: var(--et-surface-text-muted, inherit);
|
|
221
|
+
opacity: var(--et-notification-message-opacity);
|
|
222
|
+
font-size: var(--et-notification-message-font-size);
|
|
223
|
+
line-height: var(--et-notification-message-line-height);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.et-notification-custom-content {
|
|
227
|
+
margin-top: var(--et-notification-gap);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.et-notification-progress-bar {
|
|
231
|
+
margin-top: 0.8rem;
|
|
232
|
+
color: var(--et-tone-fill, currentColor);
|
|
233
|
+
--et-progress-bar-height: var(--et-notification-progress-bar-height);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.et-notification-footer {
|
|
237
|
+
display: flex;
|
|
238
|
+
align-items: center;
|
|
239
|
+
gap: 1.2rem;
|
|
240
|
+
margin-top: 0.8rem;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/* The quieter half of an action pair: same shape as the primary action, neutral instead of accented.
|
|
244
|
+
Scoped through `.et-notification` to outweigh the text button's own `color` — the two stylesheets
|
|
245
|
+
share a layer, so their relative order depends on which component renders first. */
|
|
246
|
+
.et-notification .et-notification-secondary-action {
|
|
247
|
+
color: var(--et-surface-text-muted, inherit);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/* The stack goes edge to edge below this width (see `notification-stack.component.css`), so the card
|
|
251
|
+
drops the bounds that would keep it a corner card and fills it. */
|
|
252
|
+
@media (max-width: 480px) {
|
|
253
|
+
.et-notification {
|
|
254
|
+
min-width: 0;
|
|
255
|
+
max-width: none;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
@media (prefers-reduced-motion: reduce) {
|
|
260
|
+
.et-notification {
|
|
261
|
+
&.et-animation-enter-from {
|
|
262
|
+
transform: none;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&.et-animation-enter-active,
|
|
266
|
+
&.et-animation-leave-active {
|
|
267
|
+
transition: opacity 200ms ease;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&.et-animation-leave-to {
|
|
271
|
+
transform: none;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|