@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,94 @@
|
|
|
1
|
+
import { otpInput, type OtpInputMockOptions, otpInputStyles } from '@ethlete/components/design/otp-input';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import frame from './otp-input.css?inline';
|
|
4
|
+
|
|
5
|
+
type Props = { field: OtpInputMockOptions };
|
|
6
|
+
|
|
7
|
+
const code = (extra: Partial<OtpInputMockOptions> = {}): Props => ({
|
|
8
|
+
field: { id: 'code', label: 'Verification code', ...extra },
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const pin = (extra: Partial<OtpInputMockOptions> = {}): Props => ({
|
|
12
|
+
field: { id: 'pin', label: 'PIN', length: 4, masked: true, ...extra },
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
const INVALID = {
|
|
16
|
+
required: true,
|
|
17
|
+
error: 'Enter the code from the SMS.',
|
|
18
|
+
errorColor: 'danger',
|
|
19
|
+
} satisfies Partial<OtpInputMockOptions>;
|
|
20
|
+
|
|
21
|
+
export default definePart({
|
|
22
|
+
note: 'The SDK otp input (et-otp-input), first drawing, drawn by the mock from @ethlete/components/design/otp-input with the real markup and CSS: et-label with the required marker, the segment row, the invisible native input over it, et-form-support with hint and error; the brand theme, danger as the error theme. The field has no :focus or :hover CSS of its own: focus is the data-caret segment (a 1px border plus a 1px inset outline in primary, and a blinking 2px caret bar in an empty one), which the mock draws with focused. Fixtures are fictional: Verification code, 6 digits 482193, hint We sent it to +49 151 0000 0000., required with error Enter the code from the SMS.; a 4-digit masked PIN. Framed as a page with 16px padding at 320, 360 and 640. States: empty, partial, filled, hover, focus-empty, focus-partial, focus-filled, hint, required, invalid, invalid-partial, invalid-focus, disabled, disabled-filled, readonly, readonly-focus, pin-partial and pin-focus. Numbers (light / dark), from shot pixels at scale 2 at 360, brand mint, a: segment 44px outer (border-box, fixed in 00072d935), gap 8px, row 304px, digits 19.8px; empty and filled segment border (surface border) vs page 1.26 / 1.73, the only edge of a segment; caret segment edge and caret bar (primary) 1.33 / 13.50; required marker (brand primary) 1.33 / 13.50; invalid border (danger) 4.83 / 3.71; label (muted) 7.81 / 6.94; disabled digits 2.55 / 3.72 (opacity 0.4, exempt). Decided rules that arise: Q88 (focus in ink: the caret segment edge and the caret bar take ink, the invalid one the danger ink) and Q99a (a mint mark on light takes ink: the required marker light-dark(ink, primary)). Hover follows the text field (form-field-text-shell: the frame border to surface-interaction-hover, the error frame to ink, none when readonly or disabled), on the host since the host is the click target (otp.activate()). The filled segment edge in c is my proposal, not a decided rule (Q103). Findings for later, lib bugs apart: (L1) a 6-digit field needed 304px and never shrank; at 320 with 16px page padding it overflowed by 16px (drawn at 320). Now fixed: the segments shrink, 41.3px at 320, and the render at 640 is unchanged. (L2) a readonly field showed the focus caret segment and, when not full, the blinking caret bar, though nothing can be typed (readonly-focus). Now fixed: no caret when readonly. Design: (1) WCAG 1.4.11: the segment border 1.26 / 1.73 is the only edge of an empty segment, as with the checkbox box and the radio circle. Not drawn. (2) A filled segment looks like an empty one apart from its digit; c answers it. (3) The error border is the full danger primary, while the text field draws its error frame at 50 % danger; kept, it passes 3:1. (4) Hover (10.37 / 13.07) outshines the focus edge (5.48 / 13.50) in b and c, as it does on the text field. (5) The masked dot is a 19.8px bullet, about 5px wide. (6) The error marker 3.71 in dark, exempted as in checkbox r1. Later rounds, left out here: data-warning (no CSS of its own), a coloured field, alphanumeric codes, other lengths and segment sizes via the custom properties, RTL and the pop-in animation.',
|
|
23
|
+
madeBy: ['claude-opus-5-5', 'design check'],
|
|
24
|
+
groups: [
|
|
25
|
+
{
|
|
26
|
+
label: 'Rest',
|
|
27
|
+
states: ['empty', 'partial', 'filled', 'hint', 'required'],
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: 'Interaction',
|
|
31
|
+
states: ['hover', 'focus-empty', 'focus-partial', 'focus-filled'],
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: 'PIN',
|
|
35
|
+
states: ['pin-partial', 'pin-focus'],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: 'Disabled and readonly',
|
|
39
|
+
states: ['disabled', 'disabled-filled', 'readonly', 'readonly-focus'],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: 'Errors',
|
|
43
|
+
states: ['invalid', 'invalid-partial', 'invalid-focus'],
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
states: {
|
|
47
|
+
empty: code(),
|
|
48
|
+
partial: code({ value: '482' }),
|
|
49
|
+
filled: code({ value: '482193' }),
|
|
50
|
+
hover: code({ value: '482', force: 'hover' }),
|
|
51
|
+
'focus-empty': code({ focused: true }),
|
|
52
|
+
'focus-partial': code({ value: '482', focused: true }),
|
|
53
|
+
'focus-filled': code({ value: '482193', focused: true }),
|
|
54
|
+
hint: code({ hint: 'We sent it to +49 151 0000 0000.' }),
|
|
55
|
+
required: code({ required: true, hint: 'We sent it to +49 151 0000 0000.' }),
|
|
56
|
+
invalid: code(INVALID),
|
|
57
|
+
'invalid-partial': code({ ...INVALID, value: '48' }),
|
|
58
|
+
'invalid-focus': code({ ...INVALID, value: '48', focused: true }),
|
|
59
|
+
disabled: code({ disabled: true }),
|
|
60
|
+
'disabled-filled': code({ value: '482193', disabled: true }),
|
|
61
|
+
readonly: code({ value: '482193', readonly: true }),
|
|
62
|
+
'readonly-focus': code({ value: '482', readonly: true, focused: true }),
|
|
63
|
+
'pin-partial': pin({ value: '73' }),
|
|
64
|
+
'pin-focus': pin({ value: '73', focused: true }),
|
|
65
|
+
},
|
|
66
|
+
describe: {
|
|
67
|
+
empty: 'Six empty code segments under the label; check that every segment shows its border at an even gap.',
|
|
68
|
+
partial: 'The code with 482 typed; check that the digits fill the first three segments, centered.',
|
|
69
|
+
filled: 'The full code 482193; check that all six digits sit centered and the row does not overflow.',
|
|
70
|
+
hover: 'The partial code under hover; check that the segment borders darken like the text field frame.',
|
|
71
|
+
'focus-empty': 'The empty code focused; check that the first segment takes the primary edge and the caret bar.',
|
|
72
|
+
'focus-partial': 'The partial code focused; check that the fourth segment is the caret segment.',
|
|
73
|
+
'focus-filled': 'The full code focused; check that the last segment keeps the caret edge without a caret bar.',
|
|
74
|
+
hint: 'The code with a hint; check that the hint sits under the segments in muted text.',
|
|
75
|
+
required: 'The required code with a hint; check that the required marker shows next to the label.',
|
|
76
|
+
invalid: 'The required code with an error; check that segment borders and error text use the danger color.',
|
|
77
|
+
'invalid-partial':
|
|
78
|
+
'The invalid code with 48 typed; check that the danger borders stay on filled and empty segments.',
|
|
79
|
+
'invalid-focus': 'The invalid code focused; check that the caret segment and caret bar take the danger ink.',
|
|
80
|
+
disabled: 'The empty code disabled; check that segments and label fade and no hover shows.',
|
|
81
|
+
'disabled-filled': 'The full code disabled; check that the digits fade with the segments but stay readable.',
|
|
82
|
+
readonly: 'The full code read-only; check that it reads static and gives no edit cue.',
|
|
83
|
+
'readonly-focus': 'The partial code read-only and focused; check that no caret segment or caret bar shows.',
|
|
84
|
+
'pin-partial': 'A 4-digit masked PIN with two digits; check that the typed digits show as dots.',
|
|
85
|
+
'pin-focus': 'The masked PIN focused; check that the third segment shows the caret and the dots stay.',
|
|
86
|
+
},
|
|
87
|
+
widths: [320, 360, 640],
|
|
88
|
+
frame: (body) => `<div class="t-frame">${body}</div>`,
|
|
89
|
+
render: (props: Props) =>
|
|
90
|
+
drawing({
|
|
91
|
+
body: otpInput(props.field),
|
|
92
|
+
styles: [otpInputStyles, frame].join('\n'),
|
|
93
|
+
}),
|
|
94
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.pagination-frame {
|
|
2
|
+
display: flex;
|
|
3
|
+
padding: 0.8rem;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
@layer components {
|
|
7
|
+
.et-pagination-host .et-pagination-button {
|
|
8
|
+
--_et-focus-ring-color: var(--et-theme-color-ink-solid);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.et-pagination-host .et-pagination-button[aria-current='page'] {
|
|
12
|
+
--et-button-shadow: inset 0 0 0 1px var(--et-theme-color-ink-solid);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import {
|
|
2
|
+
pagination,
|
|
3
|
+
type PaginationMockItem,
|
|
4
|
+
type PaginationMockOptions,
|
|
5
|
+
paginationStyles,
|
|
6
|
+
} from '@ethlete/components/design/pagination';
|
|
7
|
+
import { definePart, drawing, interactionRows } from '@design-system';
|
|
8
|
+
import edge from './pagination.css?inline';
|
|
9
|
+
|
|
10
|
+
type ItemInteraction = 'hover' | 'active' | 'focus-visible';
|
|
11
|
+
|
|
12
|
+
type Props = Omit<PaginationMockOptions, 'items'> & {
|
|
13
|
+
page: number;
|
|
14
|
+
pages: (number | null)[];
|
|
15
|
+
total: number;
|
|
16
|
+
target?: number;
|
|
17
|
+
forced?: ItemInteraction;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const MARK = 'data-et-control="item" data-et-action="emit:pageChange" data-can-animate';
|
|
21
|
+
|
|
22
|
+
const items = ({ page, pages, total, target, forced }: Props): PaginationMockItem[] => {
|
|
23
|
+
const attributes = (entry: number) => (forced && entry === target ? `${MARK} data-et-force="${forced}"` : MARK);
|
|
24
|
+
|
|
25
|
+
return [
|
|
26
|
+
{ type: 'first', page: 1, disabled: page === 1, attributes: MARK },
|
|
27
|
+
{ type: 'previous', page: page - 1, disabled: page === 1, attributes: MARK },
|
|
28
|
+
...pages.map((entry): PaginationMockItem =>
|
|
29
|
+
entry === null
|
|
30
|
+
? { type: 'ellipsis' }
|
|
31
|
+
: { type: 'page', page: entry, current: entry === page, attributes: attributes(entry) },
|
|
32
|
+
),
|
|
33
|
+
{ type: 'next', page: page + 1, disabled: page === total, attributes: MARK },
|
|
34
|
+
{ type: 'last', page: total, disabled: page === total, attributes: MARK },
|
|
35
|
+
];
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
const MIDDLE: Props = { page: 10, total: 20, pages: [1, null, 9, 10, 11, null, 20] };
|
|
39
|
+
|
|
40
|
+
const { states, grid } = interactionRows(
|
|
41
|
+
{
|
|
42
|
+
page: { ...MIDDLE, target: 11 },
|
|
43
|
+
current: { ...MIDDLE, target: 10 },
|
|
44
|
+
} satisfies Record<string, Props>,
|
|
45
|
+
{
|
|
46
|
+
interactions: ['hover', 'active', 'focus-visible'],
|
|
47
|
+
force: (props: Props, interaction: ItemInteraction): Props => ({ ...props, forced: interaction }),
|
|
48
|
+
},
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export default definePart({
|
|
52
|
+
note: 'Decided rules only',
|
|
53
|
+
madeBy: ['claude-opus-5-5'],
|
|
54
|
+
states: {
|
|
55
|
+
first: { page: 1, total: 20, pages: [1, 2, 3, 4, 5, null, 20] },
|
|
56
|
+
middle: MIDDLE,
|
|
57
|
+
last: { page: 20, total: 20, pages: [1, null, 16, 17, 18, 19, 20] },
|
|
58
|
+
few: { page: 2, total: 5, pages: [1, 2, 3, 4, 5] },
|
|
59
|
+
...states,
|
|
60
|
+
range: { ...MIDDLE, range: 'Showing 91–100 of 200' },
|
|
61
|
+
sm: { ...MIDDLE, size: 'sm' },
|
|
62
|
+
links: { ...MIDDLE, renderAs: 'links' },
|
|
63
|
+
compact: { ...MIDDLE, compactStatus: '10 / 20' },
|
|
64
|
+
},
|
|
65
|
+
describe: {
|
|
66
|
+
first: 'Page 1 of 20; check that first and previous are disabled and the ellipsis sits before 20.',
|
|
67
|
+
middle:
|
|
68
|
+
'Page 10 of 20 with ellipses on both sides; check that page 10 reads as current and all arrows are enabled.',
|
|
69
|
+
last: 'Page 20 of 20; check that next and last are disabled and the ellipsis sits after 1.',
|
|
70
|
+
few: 'Page 2 of 5 with every page shown; check that no ellipsis appears.',
|
|
71
|
+
page: 'Page 10 of 20 at rest; check that page 11 looks like any other plain page.',
|
|
72
|
+
'page-hover': 'Page 11 hovered; check that only page 11 takes the hover tint.',
|
|
73
|
+
'page-active': 'Page 11 pressed; check that the pressed tint is deeper than hover.',
|
|
74
|
+
'page-focus-visible':
|
|
75
|
+
'Page 11 focused by keyboard; check that the focus ring wraps page 11 without shifting neighbours.',
|
|
76
|
+
current: 'Page 10 of 20 at rest; check that the current page 10 stands out from the plain pages.',
|
|
77
|
+
'current-hover': 'The current page hovered; check that it keeps its current look under hover.',
|
|
78
|
+
'current-active': 'The current page pressed; check that it keeps its current look while pressed.',
|
|
79
|
+
'current-focus-visible':
|
|
80
|
+
'The current page focused by keyboard; check that the focus ring shows around the current fill.',
|
|
81
|
+
range: 'Page 10 with the Showing 91–100 of 200 range; check that the range text sits beside the controls.',
|
|
82
|
+
sm: 'Page 10 at size sm; check that buttons and text shrink together.',
|
|
83
|
+
links: 'Page 10 rendered as links; check that it looks the same as the button version.',
|
|
84
|
+
compact: 'Page 10 with the compact 10 / 20 status; check that the status replaces the page list.',
|
|
85
|
+
},
|
|
86
|
+
grid,
|
|
87
|
+
widths: [480],
|
|
88
|
+
controls: {
|
|
89
|
+
item: { kind: 'button', input: ['pointer', 'keyboard'], disabled: true },
|
|
90
|
+
},
|
|
91
|
+
frame: (body) => `<div class="pagination-frame">${body}</div>`,
|
|
92
|
+
render: (props: Props) =>
|
|
93
|
+
drawing({
|
|
94
|
+
body: pagination({ ...props, items: items(props) }),
|
|
95
|
+
styles: [paginationStyles, edge].join('\n'),
|
|
96
|
+
}),
|
|
97
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.picture-frame {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 0.8rem;
|
|
5
|
+
max-inline-size: 520px;
|
|
6
|
+
padding: 2.4rem 1.6rem;
|
|
7
|
+
background: var(--et-surface-background-solid);
|
|
8
|
+
color: var(--et-surface-color-solid);
|
|
9
|
+
font-size: 1.4rem;
|
|
10
|
+
|
|
11
|
+
.picture-error {
|
|
12
|
+
margin: 0;
|
|
13
|
+
color: var(--et-surface-color-muted-solid);
|
|
14
|
+
font-size: 1.2rem;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.picture-fit-grid {
|
|
18
|
+
display: grid;
|
|
19
|
+
grid-template-columns: repeat(2, 180px);
|
|
20
|
+
gap: 1.6rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.picture-fit-cell {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: 0.4rem;
|
|
27
|
+
margin: 0;
|
|
28
|
+
font-size: 1.2rem;
|
|
29
|
+
color: var(--et-surface-color-muted-solid);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.picture-fit-cell .et-picture {
|
|
33
|
+
inline-size: 180px;
|
|
34
|
+
block-size: 120px;
|
|
35
|
+
outline: 1px dashed var(--et-surface-border-solid);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { picture, pictureStyles, type PictureMockOptions } from '@ethlete/components/design/picture';
|
|
2
|
+
import { skeletonItem, skeletonStyles } from '@ethlete/components/design/skeleton';
|
|
3
|
+
import { definePart, drawing } from '@design-system';
|
|
4
|
+
import fallback from '@assets/fallback.svg?raw';
|
|
5
|
+
import tall from '@assets/tall.svg?raw';
|
|
6
|
+
import wide from '@assets/wide.svg?raw';
|
|
7
|
+
import frame from './picture.css?inline';
|
|
8
|
+
|
|
9
|
+
const svgUrl = (markup: string) => `data:image/svg+xml;utf8,${encodeURIComponent(markup.trim())}`;
|
|
10
|
+
|
|
11
|
+
type Fit = NonNullable<PictureMockOptions['fit']>;
|
|
12
|
+
|
|
13
|
+
type Props = {
|
|
14
|
+
ratio?: string;
|
|
15
|
+
caption?: 'short' | 'long' | 'none';
|
|
16
|
+
intrinsic?: boolean;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
error?: 'slot' | 'bare';
|
|
19
|
+
fit?: boolean;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const WIDE = svgUrl(wide);
|
|
23
|
+
const TALL = svgUrl(tall);
|
|
24
|
+
const FALLBACK = svgUrl(fallback);
|
|
25
|
+
const BROKEN = 'data:image/png;base64,this-is-not-an-image';
|
|
26
|
+
|
|
27
|
+
const CAPTIONS = {
|
|
28
|
+
short: 'A crop that follows the viewport.',
|
|
29
|
+
long: 'Fulltime at the home ground: the visitors celebrate in front of the away end after the late winner, while the stewards hold the line and the floodlights come on over the north stand.',
|
|
30
|
+
none: undefined,
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const FITS: Fit[] = ['contain', 'cover', 'fill', 'none', 'scale-down'];
|
|
34
|
+
|
|
35
|
+
const body = ({ ratio = '16 / 9', caption = 'short', intrinsic, loading, error, fit }: Props) => {
|
|
36
|
+
if (fit) {
|
|
37
|
+
const cells = FITS.map(
|
|
38
|
+
(mode) =>
|
|
39
|
+
`<figure class="picture-fit-cell">${picture({ src: FALLBACK, alt: `fit ${mode}`, fit: mode })}<span>${mode}</span></figure>`,
|
|
40
|
+
).join('');
|
|
41
|
+
|
|
42
|
+
return `<div class="picture-fit-grid">${cells}</div>`;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
if (loading) {
|
|
46
|
+
return picture({
|
|
47
|
+
alt: 'An image whose URL arrives after the page',
|
|
48
|
+
aspectRatio: '16 / 9',
|
|
49
|
+
state: 'loading',
|
|
50
|
+
placeholder: skeletonItem({ shape: 'rect', style: 'block-size: 100%; inline-size: 100%' }),
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (error) {
|
|
55
|
+
return picture({
|
|
56
|
+
src: BROKEN,
|
|
57
|
+
alt: 'An image that fails to load',
|
|
58
|
+
aspectRatio: '16 / 9',
|
|
59
|
+
state: 'error',
|
|
60
|
+
error: error === 'slot' ? '<p class="picture-error">This image is unavailable.</p>' : undefined,
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
return picture({
|
|
65
|
+
sources: intrinsic ? undefined : [{ srcset: WIDE, media: '(min-width: 700px)' }, { srcset: TALL }],
|
|
66
|
+
src: FALLBACK,
|
|
67
|
+
alt: 'A coloured block labelled with its aspect ratio',
|
|
68
|
+
aspectRatio: ratio === 'none' ? undefined : ratio,
|
|
69
|
+
width: intrinsic ? 800 : undefined,
|
|
70
|
+
height: intrinsic ? 450 : undefined,
|
|
71
|
+
figcaption: CAPTIONS[caption],
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export default definePart({
|
|
76
|
+
note: "Today's look",
|
|
77
|
+
madeBy: ['claude-opus-5-5'],
|
|
78
|
+
states: {
|
|
79
|
+
default: {},
|
|
80
|
+
'ratio-4-3': { ratio: '4 / 3' },
|
|
81
|
+
'no-ratio': { ratio: 'none' },
|
|
82
|
+
'width-height': { intrinsic: true },
|
|
83
|
+
'no-caption': { caption: 'none' },
|
|
84
|
+
'long-caption': { caption: 'long' },
|
|
85
|
+
fit: { fit: true },
|
|
86
|
+
loading: { loading: true },
|
|
87
|
+
'error-slot': { error: 'slot' },
|
|
88
|
+
'error-bare': { error: 'bare' },
|
|
89
|
+
},
|
|
90
|
+
describe: {
|
|
91
|
+
default:
|
|
92
|
+
'A 16 / 9 picture with a short caption; check that the image fills the ratio box and the caption sits below.',
|
|
93
|
+
'ratio-4-3': 'The picture at 4 / 3; check that the box is taller and the image crops instead of stretching.',
|
|
94
|
+
'no-ratio': 'The picture with no ratio; check that it takes the natural height of the image.',
|
|
95
|
+
'width-height':
|
|
96
|
+
'The fallback image with width 800 and height 450; check that it scales to the frame at that ratio.',
|
|
97
|
+
'no-caption': 'The picture without a caption; check that no empty space is left below the image.',
|
|
98
|
+
'long-caption': 'The picture with a long caption; check that the caption wraps under the image without overflow.',
|
|
99
|
+
fit: 'Five cells for contain, cover, fill, none and scale-down; check that each image follows its object-fit.',
|
|
100
|
+
loading: 'A picture still loading; check that a skeleton fills the 16 / 9 box.',
|
|
101
|
+
'error-slot': 'A broken image with an error slot; check that This image is unavailable shows in the 16 / 9 box.',
|
|
102
|
+
'error-bare':
|
|
103
|
+
'A broken image with no error slot; check that the box keeps its ratio and shows no broken-image icon.',
|
|
104
|
+
},
|
|
105
|
+
widths: [480],
|
|
106
|
+
frame: (body) => `<div class="picture-frame">${body}</div>`,
|
|
107
|
+
render: (props: Props) =>
|
|
108
|
+
drawing({
|
|
109
|
+
body: body(props),
|
|
110
|
+
styles: [skeletonStyles, pictureStyles, frame].join('\n'),
|
|
111
|
+
}),
|
|
112
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.progress-steps-frame {
|
|
2
|
+
padding: 2.4rem 1.6rem;
|
|
3
|
+
background: var(--et-surface-background-solid);
|
|
4
|
+
color: var(--et-surface-color-solid);
|
|
5
|
+
font-size: 1.4rem;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@layer components {
|
|
9
|
+
.et-progress-step {
|
|
10
|
+
--_et-focus-ring-color: var(--et-theme-color-ink-solid);
|
|
11
|
+
|
|
12
|
+
&:is(
|
|
13
|
+
[data-state='current'],
|
|
14
|
+
[data-state='complete'],
|
|
15
|
+
[data-state='success'],
|
|
16
|
+
[data-state='warning'],
|
|
17
|
+
[data-state='error']
|
|
18
|
+
)
|
|
19
|
+
.et-progress-step-marker {
|
|
20
|
+
border-color: var(--et-theme-color-ink-solid);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&:is([data-state='complete'], [data-state='success'], [data-state='warning'], [data-state='error']):not(
|
|
24
|
+
:last-child
|
|
25
|
+
)::after {
|
|
26
|
+
background: var(--et-theme-color-ink-solid);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:is(a, button) {
|
|
30
|
+
@media (hover: hover) {
|
|
31
|
+
&:hover .et-progress-step-marker {
|
|
32
|
+
border-color: var(--et-theme-color-ink-solid);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { progressSteps, ProgressStepMockStep, progressStepsStyles } from '@ethlete/components/design/progress-steps';
|
|
2
|
+
import { definePart, drawing } from '@design-system';
|
|
3
|
+
import frame from './progress-steps.css?inline';
|
|
4
|
+
|
|
5
|
+
type Interaction = 'hover' | 'active' | 'focus-visible';
|
|
6
|
+
|
|
7
|
+
type Props = {
|
|
8
|
+
set?: 'checkout' | 'outcomes' | 'described' | 'vertical' | 'links';
|
|
9
|
+
complete?: Interaction;
|
|
10
|
+
upcoming?: Interaction;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
const mark = (control: string, interaction?: Interaction) =>
|
|
14
|
+
[`data-et-control="${control}"`, interaction && `data-et-force="${interaction}"`].filter(Boolean).join(' ');
|
|
15
|
+
|
|
16
|
+
const checkout: ProgressStepMockStep[] = [
|
|
17
|
+
{ label: 'Account', state: 'complete' },
|
|
18
|
+
{ label: 'Shipping', state: 'current' },
|
|
19
|
+
{ label: 'Payment' },
|
|
20
|
+
{ label: 'Review' },
|
|
21
|
+
];
|
|
22
|
+
|
|
23
|
+
const outcomes: ProgressStepMockStep[] = [
|
|
24
|
+
{ label: 'Upload', state: 'success' },
|
|
25
|
+
{ label: 'Validate', state: 'warning', color: 'warning' },
|
|
26
|
+
{ label: 'Import', state: 'error', color: 'danger' },
|
|
27
|
+
{ label: 'Publish' },
|
|
28
|
+
];
|
|
29
|
+
|
|
30
|
+
const described: ProgressStepMockStep[] = [
|
|
31
|
+
{ label: 'Team', state: 'complete', description: '18 players' },
|
|
32
|
+
{ label: 'Squad', state: 'error', color: 'danger', description: '2 missing' },
|
|
33
|
+
{ label: 'Kit', state: 'current', description: 'Home colours' },
|
|
34
|
+
{ label: 'Submit', description: 'By Friday' },
|
|
35
|
+
];
|
|
36
|
+
|
|
37
|
+
const vertical: ProgressStepMockStep[] = [
|
|
38
|
+
{ label: 'Registration received', state: 'complete', description: 'Mon, 12 Oct' },
|
|
39
|
+
{ label: 'Documents checked', state: 'warning', color: 'warning', description: 'Photo is blurry' },
|
|
40
|
+
{ label: 'Payment', state: 'current', description: 'Waiting for the transfer' },
|
|
41
|
+
{ label: 'Licence issued' },
|
|
42
|
+
];
|
|
43
|
+
|
|
44
|
+
const links = (props: Props): ProgressStepMockStep[] => [
|
|
45
|
+
{ label: 'Account', state: 'complete', as: 'a', attributes: mark('complete', props.complete) },
|
|
46
|
+
{ label: 'Shipping', state: 'current', as: 'a' },
|
|
47
|
+
{ label: 'Payment', as: 'a', attributes: mark('upcoming', props.upcoming) },
|
|
48
|
+
{ label: 'Review', as: 'a' },
|
|
49
|
+
];
|
|
50
|
+
|
|
51
|
+
const steps = (props: Props) => {
|
|
52
|
+
switch (props.set) {
|
|
53
|
+
case 'outcomes':
|
|
54
|
+
return progressSteps({ steps: outcomes });
|
|
55
|
+
case 'described':
|
|
56
|
+
return progressSteps({ steps: described });
|
|
57
|
+
case 'vertical':
|
|
58
|
+
return progressSteps({ steps: vertical, orientation: 'vertical' });
|
|
59
|
+
case 'links':
|
|
60
|
+
return progressSteps({ steps: links(props) });
|
|
61
|
+
default:
|
|
62
|
+
return progressSteps({ steps: checkout });
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export default definePart({
|
|
67
|
+
note: 'Decided rules only',
|
|
68
|
+
consumerAction: 'its steps link where the consumer points them',
|
|
69
|
+
madeBy: ['claude-opus-5-5'],
|
|
70
|
+
states: {
|
|
71
|
+
default: {},
|
|
72
|
+
outcomes: { set: 'outcomes' },
|
|
73
|
+
described: { set: 'described' },
|
|
74
|
+
vertical: { set: 'vertical' },
|
|
75
|
+
links: { set: 'links' },
|
|
76
|
+
'upcoming-hover': { set: 'links', upcoming: 'hover' },
|
|
77
|
+
'upcoming-active': { set: 'links', upcoming: 'active' },
|
|
78
|
+
'upcoming-focus-visible': { set: 'links', upcoming: 'focus-visible' },
|
|
79
|
+
'complete-hover': { set: 'links', complete: 'hover' },
|
|
80
|
+
'complete-focus-visible': { set: 'links', complete: 'focus-visible' },
|
|
81
|
+
},
|
|
82
|
+
describe: {
|
|
83
|
+
default:
|
|
84
|
+
'A four-step checkout on Shipping; check that Account reads complete, Shipping current and the rest upcoming.',
|
|
85
|
+
outcomes: 'Steps ending in success, warning and error; check that each marker takes its icon and theme color.',
|
|
86
|
+
described:
|
|
87
|
+
'Steps with a description under each label; check that descriptions sit under labels and the error reads danger.',
|
|
88
|
+
vertical:
|
|
89
|
+
'Four steps stacked vertically with descriptions; check that the connector line runs between the markers.',
|
|
90
|
+
links: 'The checkout steps as links; check that they look the same as the plain steps at rest.',
|
|
91
|
+
'upcoming-hover': 'The Payment link hovered; check that only the upcoming Payment step shows the hover look.',
|
|
92
|
+
'upcoming-active': 'The Payment link pressed; check that the pressed look is deeper than hover.',
|
|
93
|
+
'upcoming-focus-visible': 'The Payment link focused by keyboard; check that the focus ring wraps the Payment step.',
|
|
94
|
+
'complete-hover': 'The complete Account link hovered; check that it shows hover and keeps its complete marker.',
|
|
95
|
+
'complete-focus-visible':
|
|
96
|
+
'The complete Account link focused by keyboard; check that the ring wraps it, marker included.',
|
|
97
|
+
},
|
|
98
|
+
widths: [480],
|
|
99
|
+
controls: {
|
|
100
|
+
complete: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
101
|
+
upcoming: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
102
|
+
},
|
|
103
|
+
frame: (body) => `<div class="progress-steps-frame">${body}</div>`,
|
|
104
|
+
render: (props: Props) =>
|
|
105
|
+
drawing({
|
|
106
|
+
body: steps(props),
|
|
107
|
+
styles: [progressStepsStyles, frame].join('\n'),
|
|
108
|
+
}),
|
|
109
|
+
});
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.query-error-frame {
|
|
2
|
+
max-inline-size: 520px;
|
|
3
|
+
padding: 2.4rem 1.6rem;
|
|
4
|
+
background: var(--et-surface-background-solid);
|
|
5
|
+
color: var(--et-surface-color-solid);
|
|
6
|
+
font-size: 1.4rem;
|
|
7
|
+
|
|
8
|
+
.query-error-support {
|
|
9
|
+
color: inherit;
|
|
10
|
+
font-size: 1.2rem;
|
|
11
|
+
text-decoration: underline;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@layer components {
|
|
16
|
+
.et-banner {
|
|
17
|
+
border-color: var(--et-theme-color-ink-solid);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.et-button {
|
|
21
|
+
--_et-focus-ring-color: var(--et-theme-color-ink-solid);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.et-button:where([data-variant='filled']) {
|
|
25
|
+
--et-button-shadow: inset 0 0 0 1px var(--et-theme-color-ink-solid);
|
|
26
|
+
|
|
27
|
+
@media (hover: hover) {
|
|
28
|
+
&:hover {
|
|
29
|
+
--et-theme-color-primary-rgb: var(--et-color-primary-active);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|