@ethlete/components 0.1.0-next.9 → 1.0.0-next.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3480 -0
- package/README.md +1 -1
- package/design/accordion.ts +73 -0
- package/design/anchored-dialog.ts +102 -0
- package/design/avatar.ts +90 -0
- package/design/badge.ts +48 -0
- package/design/banner.ts +77 -0
- package/design/bracket.ts +457 -0
- package/design/breadcrumb.ts +145 -0
- package/design/button.ts +118 -0
- package/design/calendar.ts +306 -0
- package/design/card.ts +92 -0
- package/design/carousel.ts +240 -0
- package/design/chart.ts +512 -0
- package/design/checkbox.ts +275 -0
- package/design/chip.ts +64 -0
- package/design/config.json +26 -0
- package/design/control.ts +19 -0
- package/design/copy-button.ts +59 -0
- package/design/description-list.ts +41 -0
- package/design/dialog.ts +216 -0
- package/design/divider.ts +27 -0
- package/design/empty-state.ts +45 -0
- package/design/floating-action.ts +55 -0
- package/design/form-field.ts +256 -0
- package/design/grid.ts +148 -0
- package/design/icon-set.ts +19 -0
- package/design/icon.ts +9 -0
- package/design/input.ts +86 -0
- package/design/kbd.ts +19 -0
- package/design/loader.ts +156 -0
- package/design/masonry.ts +115 -0
- package/design/match.ts +131 -0
- package/design/menu.ts +147 -0
- package/design/notification.ts +133 -0
- package/design/otp-input.ts +107 -0
- package/design/pagination.ts +120 -0
- package/design/picture.ts +80 -0
- package/design/progress-steps.ts +79 -0
- package/design/query-error.ts +60 -0
- package/design/radio-group.ts +132 -0
- package/design/scheduler.ts +369 -0
- package/design/scrollable.ts +219 -0
- package/design/scrollbar.ts +47 -0
- package/design/sdk/assets/fallback.svg +1 -0
- package/design/sdk/assets/fonts/et-kbd-arrows-400-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/et-kbd-control-400-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/et-kbd-keys-400-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/source-code-pro-latin-wght-normal.woff2 +0 -0
- package/design/sdk/assets/fonts/source-sans-3-latin-wght-normal.woff2 +0 -0
- package/design/sdk/assets/tall.svg +1 -0
- package/design/sdk/assets/wide.svg +1 -0
- package/design/sdk/components/accent-on-light/accent-on-light.css +35 -0
- package/design/sdk/components/accent-on-light/accent-on-light.ts +15 -0
- package/design/sdk/components/accent-on-light/shared/controls.ts +46 -0
- package/design/sdk/components/accordion/accordion.css +17 -0
- package/design/sdk/components/accordion/accordion.ts +79 -0
- package/design/sdk/components/action-sheet/action-sheet.css +124 -0
- package/design/sdk/components/action-sheet/action-sheet.ts +129 -0
- package/design/sdk/components/anchored-dialog/anchored-dialog.css +60 -0
- package/design/sdk/components/anchored-dialog/anchored-dialog.ts +89 -0
- package/design/sdk/components/avatar/avatar.css +14 -0
- package/design/sdk/components/avatar/avatar.ts +95 -0
- package/design/sdk/components/badge/badge.css +31 -0
- package/design/sdk/components/badge/badge.ts +89 -0
- package/design/sdk/components/banner/banner.css +18 -0
- package/design/sdk/components/banner/banner.ts +160 -0
- package/design/sdk/components/bracket/bracket.css +59 -0
- package/design/sdk/components/bracket/bracket.ts +183 -0
- package/design/sdk/components/breadcrumb/breadcrumb.css +25 -0
- package/design/sdk/components/breadcrumb/breadcrumb.ts +96 -0
- package/design/sdk/components/button/button.css +29 -0
- package/design/sdk/components/button/button.ts +201 -0
- package/design/sdk/components/calendar/calendar.css +33 -0
- package/design/sdk/components/calendar/calendar.ts +183 -0
- package/design/sdk/components/card/card.css +19 -0
- package/design/sdk/components/card/card.ts +111 -0
- package/design/sdk/components/carousel/carousel.css +44 -0
- package/design/sdk/components/carousel/carousel.ts +162 -0
- package/design/sdk/components/chart/chart.css +56 -0
- package/design/sdk/components/chart/chart.ts +146 -0
- package/design/sdk/components/checkbox/checkbox.css +10 -0
- package/design/sdk/components/checkbox/checkbox.ts +223 -0
- package/design/sdk/components/chip/chip.css +18 -0
- package/design/sdk/components/chip/chip.ts +99 -0
- package/design/sdk/components/copy-button/copy-button.css +14 -0
- package/design/sdk/components/copy-button/copy-button.ts +77 -0
- package/design/sdk/components/description-list/description-list.css +7 -0
- package/design/sdk/components/description-list/description-list.ts +64 -0
- package/design/sdk/components/dialog/dialog.css +29 -0
- package/design/sdk/components/dialog/dialog.ts +173 -0
- package/design/sdk/components/divider/divider.css +26 -0
- package/design/sdk/components/divider/divider.ts +49 -0
- package/design/sdk/components/empty-state/empty-state.css +39 -0
- package/design/sdk/components/empty-state/empty-state.ts +67 -0
- package/design/sdk/components/floating-action/floating-action.css +51 -0
- package/design/sdk/components/floating-action/floating-action.ts +78 -0
- package/design/sdk/components/form-field/form-field.ts +204 -0
- package/design/sdk/components/grid/grid.css +17 -0
- package/design/sdk/components/grid/grid.ts +96 -0
- package/design/sdk/components/input/input.css +57 -0
- package/design/sdk/components/input/input.ts +156 -0
- package/design/sdk/components/kbd/kbd.css +25 -0
- package/design/sdk/components/kbd/kbd.ts +70 -0
- package/design/sdk/components/loader/loader.css +37 -0
- package/design/sdk/components/loader/loader.ts +79 -0
- package/design/sdk/components/masonry/masonry.css +7 -0
- package/design/sdk/components/masonry/masonry.ts +50 -0
- package/design/sdk/components/match/match.css +25 -0
- package/design/sdk/components/match/match.ts +95 -0
- package/design/sdk/components/menu/menu.css +22 -0
- package/design/sdk/components/menu/menu.ts +120 -0
- package/design/sdk/components/notification/notification.css +32 -0
- package/design/sdk/components/notification/notification.ts +117 -0
- package/design/sdk/components/otp-input/otp-input.css +35 -0
- package/design/sdk/components/otp-input/otp-input.ts +94 -0
- package/design/sdk/components/pagination/pagination.css +14 -0
- package/design/sdk/components/pagination/pagination.ts +97 -0
- package/design/sdk/components/picture/picture.css +37 -0
- package/design/sdk/components/picture/picture.ts +112 -0
- package/design/sdk/components/progress-steps/progress-steps.css +37 -0
- package/design/sdk/components/progress-steps/progress-steps.ts +109 -0
- package/design/sdk/components/query-error/query-error.css +33 -0
- package/design/sdk/components/query-error/query-error.ts +167 -0
- package/design/sdk/components/radio-group/radio-group.css +10 -0
- package/design/sdk/components/radio-group/radio-group.ts +209 -0
- package/design/sdk/components/scheduler/scheduler.css +55 -0
- package/design/sdk/components/scheduler/scheduler.ts +267 -0
- package/design/sdk/components/scrollable/scrollable.css +58 -0
- package/design/sdk/components/scrollable/scrollable.ts +198 -0
- package/design/sdk/components/scrollbar/scrollbar.css +78 -0
- package/design/sdk/components/scrollbar/scrollbar.ts +152 -0
- package/design/sdk/components/select/select.css +5 -0
- package/design/sdk/components/select/select.ts +42 -0
- package/design/sdk/components/select/shared/select-part.ts +80 -0
- package/design/sdk/components/select-panel/select-panel.css +3 -0
- package/design/sdk/components/select-panel/select-panel.ts +144 -0
- package/design/sdk/components/skeleton/skeleton.css +22 -0
- package/design/sdk/components/skeleton/skeleton.ts +58 -0
- package/design/sdk/components/slider/slider.css +52 -0
- package/design/sdk/components/slider/slider.ts +133 -0
- package/design/sdk/components/standings/standings.css +33 -0
- package/design/sdk/components/standings/standings.ts +146 -0
- package/design/sdk/components/stat-tile/stat-tile.css +15 -0
- package/design/sdk/components/stat-tile/stat-tile.ts +97 -0
- package/design/sdk/components/stream/stream.css +48 -0
- package/design/sdk/components/stream/stream.ts +63 -0
- package/design/sdk/components/switch/switch.ts +94 -0
- package/design/sdk/components/table/table.css +67 -0
- package/design/sdk/components/table/table.ts +320 -0
- package/design/sdk/components/tabs/tabs.css +13 -0
- package/design/sdk/components/tabs/tabs.ts +95 -0
- package/design/sdk/components/textarea/textarea.css +99 -0
- package/design/sdk/components/textarea/textarea.ts +154 -0
- package/design/sdk/components/timeline/timeline.css +30 -0
- package/design/sdk/components/timeline/timeline.ts +98 -0
- package/design/sdk/components/toolbar/toolbar.css +24 -0
- package/design/sdk/components/toolbar/toolbar.ts +104 -0
- package/design/sdk/components/tooltip/tooltip.css +15 -0
- package/design/sdk/components/tooltip/tooltip.ts +39 -0
- package/design/sdk/components/tree/selected-tint.css +15 -0
- package/design/sdk/components/tree/tree.ts +89 -0
- package/design/sdk/fixtures.ts +0 -0
- package/design/sdk/foundations/colors/colors.css +660 -0
- package/design/sdk/foundations/colors/colors.ts +216 -0
- package/design/sdk/foundations/colors/faces.css +75 -0
- package/design/sdk/foundations/colors/overrides.json +19 -0
- package/design/sdk/foundations/colors/shared/contrast.ts +105 -0
- package/design/sdk/foundations/elevation/elevation.css +6 -0
- package/design/sdk/foundations/elevation/elevation.ts +18 -0
- package/design/sdk/foundations/elevation/shared/elevation/scene.css +101 -0
- package/design/sdk/foundations/elevation/shared/elevation/scene.ts +74 -0
- package/design/sdk/foundations/icons/icons.ts +125 -0
- package/design/sdk/lint-baseline.json +6 -0
- package/design/sdk/ready.json +593 -0
- package/design/sdk/rule-baseline.json +48 -0
- package/design/select.ts +199 -0
- package/design/skeleton.ts +67 -0
- package/design/slider.ts +155 -0
- package/design/standings.ts +166 -0
- package/design/stat-tile.ts +109 -0
- package/design/stream.ts +92 -0
- package/design/switch.ts +83 -0
- package/design/table.ts +309 -0
- package/design/tabs.ts +75 -0
- package/design/textarea.ts +94 -0
- package/design/timeline.ts +52 -0
- package/design/toolbar.ts +95 -0
- package/design/tooltip.ts +95 -0
- package/design/tree.ts +106 -0
- package/fesm2022/ethlete-components-testing.mjs +440 -0
- package/fesm2022/ethlete-components-testing.mjs.map +1 -0
- package/fesm2022/ethlete-components.mjs +115320 -12455
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/component/component-names.js +42 -0
- package/generators/component/component-templates.js +211 -0
- package/generators/component/generator.js +144 -0
- package/generators/component/schema.json +109 -0
- package/generators/component/workspace-edits.js +92 -0
- package/generators/generators.json +116 -0
- package/generators/icons/generator.js +231 -0
- package/generators/icons/schema.json +35 -0
- package/generators/migrate-bracket-default-cards/bracket-default-cards.js +67 -0
- package/generators/migrate-bracket-default-cards/migration.js +63 -0
- package/generators/migrate-bracket-default-cards/schema.json +26 -0
- package/generators/migrate-bracket-ethlete-renames/bracket-ethlete-renames.js +15 -0
- package/generators/migrate-bracket-ethlete-renames/migration.js +31 -0
- package/generators/migrate-bracket-ethlete-renames/schema.json +26 -0
- package/generators/migrate-cascader-tree-internals/cascader-tree-internals.js +6 -0
- package/generators/migrate-cascader-tree-internals/migration.js +11 -0
- package/generators/migrate-cascader-tree-internals/schema.json +26 -0
- package/generators/migrate-chart-baseline-y/chart-baseline-y.js +10 -0
- package/generators/migrate-chart-baseline-y/migration.js +41 -0
- package/generators/migrate-chart-baseline-y/schema.json +26 -0
- package/generators/migrate-duration-format-internals/duration-format-internals.js +6 -0
- package/generators/migrate-duration-format-internals/migration.js +11 -0
- package/generators/migrate-duration-format-internals/schema.json +26 -0
- package/generators/migrate-error-color-theme-signal/error-color-theme-signal.js +37 -0
- package/generators/migrate-error-color-theme-signal/migration.js +55 -0
- package/generators/migrate-error-color-theme-signal/schema.json +26 -0
- package/generators/migrate-grid-engine-internals/grid-engine-internals.js +43 -0
- package/generators/migrate-grid-engine-internals/migration.js +11 -0
- package/generators/migrate-grid-engine-internals/schema.json +26 -0
- package/generators/migrate-line-chart-stacked-area-mix/line-chart-stacked-area-mix.js +48 -0
- package/generators/migrate-line-chart-stacked-area-mix/migration.js +35 -0
- package/generators/migrate-line-chart-stacked-area-mix/schema.json +26 -0
- package/generators/migrate-loader-determinate/loader-determinate.js +87 -0
- package/generators/migrate-loader-determinate/migration.js +49 -0
- package/generators/migrate-loader-determinate/schema.json +26 -0
- package/generators/migrate-overlay-fullscreen-animation/migration.js +11 -0
- package/generators/migrate-overlay-fullscreen-animation/overlay-fullscreen-animation.js +16 -0
- package/generators/migrate-overlay-fullscreen-animation/schema.json +26 -0
- package/generators/migrate-overlay-nav-tab-imports/migration.js +35 -0
- package/generators/migrate-overlay-nav-tab-imports/overlay-nav-tab-imports.js +25 -0
- package/generators/migrate-overlay-nav-tab-imports/schema.json +26 -0
- package/generators/migrate-pip-window-z-index/migration.js +85 -0
- package/generators/migrate-pip-window-z-index/pip-window-z-index.js +60 -0
- package/generators/migrate-pip-window-z-index/schema.json +26 -0
- package/generators/migrate-query-error-labels/migration-scope.js +30 -0
- package/generators/migrate-query-error-labels/migration.js +58 -0
- package/generators/migrate-query-error-labels/query-error-labels.js +30 -0
- package/generators/migrate-query-error-labels/schema.json +26 -0
- package/generators/migrate-rich-text-editor-floating-toolbar/migration.js +57 -0
- package/generators/migrate-rich-text-editor-floating-toolbar/rich-text-editor-floating-toolbar.js +28 -0
- package/generators/migrate-rich-text-editor-floating-toolbar/schema.json +26 -0
- package/generators/migrate-rich-text-editor-link-editor/migration.js +57 -0
- package/generators/migrate-rich-text-editor-link-editor/rich-text-editor-link-editor.js +28 -0
- package/generators/migrate-rich-text-editor-link-editor/schema.json +26 -0
- package/generators/migrate-rich-text-editor-tools/migration.js +64 -0
- package/generators/migrate-rich-text-editor-tools/rich-text-editor-tools.js +36 -0
- package/generators/migrate-rich-text-editor-tools/schema.json +26 -0
- package/generators/migrate-select-input-renames/migration.js +41 -0
- package/generators/migrate-select-input-renames/schema.json +26 -0
- package/generators/migrate-select-input-renames/select-input-renames.js +37 -0
- package/generators/migrate-stream-default-components/migration.js +86 -0
- package/generators/migrate-stream-default-components/schema.json +26 -0
- package/generators/migrate-stream-default-components/stream-default-components.js +111 -0
- package/generators/migrate-time-picker-ring/migration.js +17 -0
- package/generators/migrate-time-picker-ring/schema.json +26 -0
- package/generators/migrate-time-picker-ring/time-picker-ring.js +25 -0
- package/generators/migrate-youtube-player-slot-directive/migration.js +11 -0
- package/generators/migrate-youtube-player-slot-directive/schema.json +26 -0
- package/generators/migrate-youtube-player-slot-directive/youtube-player-slot-directive.js +12 -0
- package/generators/removed-exports/removed-exports.js +154 -0
- package/generators/removed-exports/run-removed-exports-migration.js +48 -0
- package/migrations/components-sdk-layer.md +55 -0
- package/migrations.json +193 -0
- package/package.json +47 -17
- package/src/lib/accordion/accordion-group.component.css +12 -0
- package/src/lib/accordion/accordion.component.css +237 -0
- package/src/lib/avatar/avatar-group.component.css +31 -0
- package/src/lib/avatar/avatar.component.css +90 -0
- package/src/lib/badge/badge.component.css +114 -0
- package/src/lib/banner/banner.component.css +102 -0
- package/src/lib/bracket/bracket-default-continue.component.css +29 -0
- package/src/lib/bracket/bracket-default-final-match.component.css +76 -0
- package/src/lib/bracket/bracket-default-match.component.css +21 -0
- package/src/lib/bracket/bracket-default-round-header.component.css +36 -0
- package/src/lib/bracket/bracket-default-section-title.component.css +14 -0
- package/src/lib/bracket/bracket-participants.component.css +13 -0
- package/src/lib/bracket/bracket-pick-card.component.css +232 -0
- package/src/lib/bracket/bracket-rounds-list.component.css +75 -0
- package/src/lib/bracket/bracket-skeleton.component.css +55 -0
- package/src/lib/bracket/bracket.component.css +123 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +10 -0
- package/src/lib/breadcrumb/breadcrumb-outlet.component.css +5 -0
- package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
- package/src/lib/breadcrumb/breadcrumb.component.css +127 -0
- package/src/lib/button/button-properties-styles.component.css +195 -0
- package/src/lib/button/button.component.css +242 -0
- package/src/lib/button/button.types.ts +33 -0
- package/src/lib/button/fab.component.css +260 -0
- package/src/lib/button/icon-button.component.css +156 -0
- package/src/lib/button/split-button.component.css +106 -0
- package/src/lib/button/text-button.component.css +142 -0
- package/src/lib/button/window-control-button.component.css +225 -0
- package/src/lib/calendar/calendar-coarse-grid-styles.component.css +29 -0
- package/src/lib/calendar/calendar-comparison-band-styles.component.css +36 -0
- package/src/lib/calendar/calendar-week-numbers-styles.component.css +32 -0
- package/src/lib/calendar/calendar.component.css +376 -0
- package/src/lib/card/card.component.css +43 -0
- package/src/lib/carousel/carousel-autoplay-styles.component.css +177 -0
- package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
- package/src/lib/carousel/carousel.component.css +232 -0
- package/src/lib/chart/bar-chart.component.css +176 -0
- package/src/lib/chart/chart-axis.component.css +40 -0
- package/src/lib/chart/chart-grid.component.css +6 -0
- package/src/lib/chart/chart-legend.component.css +46 -0
- package/src/lib/chart/chart-tooltip.component.css +34 -0
- package/src/lib/chart/line-chart-tooltip.component.css +51 -0
- package/src/lib/chart/line-chart.component.css +234 -0
- package/src/lib/chart/pie-chart.component.css +176 -0
- package/src/lib/chart/sankey-chart.component.css +221 -0
- package/src/lib/chip/chip.component.css +163 -0
- package/src/lib/collapse/collapse.component.css +43 -0
- package/src/lib/command-palette/command-palette-item.component.css +98 -0
- package/src/lib/command-palette/command-palette.component.css +148 -0
- package/src/lib/description-list/description-list.component.css +78 -0
- package/src/lib/divider/divider.component.css +40 -0
- package/src/lib/empty-state/empty-state.component.css +79 -0
- package/src/lib/floating-action/floating-action-styles.component.css +105 -0
- package/src/lib/focus-ring/focus-ring-styles.component.css +31 -0
- package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
- package/src/lib/forms/cascader/cascader-panel.component.css +387 -0
- package/src/lib/forms/cascader/cascader-sheet-styles.component.css +241 -0
- package/src/lib/forms/cascader/cascader.component.css +52 -0
- package/src/lib/forms/checkbox/checkbox.component.css +291 -0
- package/src/lib/forms/choice-field/choice-field-card-styles.component.css +66 -0
- package/src/lib/forms/choice-field/choice-field.component.css +227 -0
- package/src/lib/forms/color-input/color-input.component.css +110 -0
- package/src/lib/forms/color-input/color-picker-panel.component.css +353 -0
- package/src/lib/forms/date-time/date-input/date-input.component.css +35 -0
- package/src/lib/forms/date-time/date-picker-panel.component.css +115 -0
- package/src/lib/forms/date-time/date-range-input/date-range-input.component.css +16 -0
- package/src/lib/forms/date-time/date-range-presets.component.css +60 -0
- package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +151 -0
- package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +121 -0
- package/src/lib/forms/date-time/duration-input/duration-input.component.css +88 -0
- package/src/lib/forms/date-time/range-input-shell-styles.component.css +55 -0
- package/src/lib/forms/date-time/time-input/time-input.component.css +35 -0
- package/src/lib/forms/date-time/time-range-input/time-range-input.component.css +16 -0
- package/src/lib/forms/description/description.component.css +7 -0
- package/src/lib/forms/dropzone/dropzone-crop.component.css +139 -0
- package/src/lib/forms/dropzone/dropzone-item.component.css +67 -0
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +83 -0
- package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
- package/src/lib/forms/dropzone/dropzone-row-styles.component.css +85 -0
- package/src/lib/forms/dropzone/dropzone.component.css +293 -0
- package/src/lib/forms/form-field/counter.component.css +25 -0
- package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +176 -0
- package/src/lib/forms/form-field/form-field-rich-text-styles.component.css +31 -0
- package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +93 -0
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +409 -0
- package/src/lib/forms/form-field/form-field-textarea-styles.component.css +94 -0
- package/src/lib/forms/form-field/form-field.component.css +382 -0
- package/src/lib/forms/form-field/form-support-styles.component.css +102 -0
- package/src/lib/forms/form-field/headless/label.directive.css +25 -0
- package/src/lib/forms/form-field/hint.component.css +18 -0
- package/src/lib/forms/input/input.component.css +53 -0
- package/src/lib/forms/input/number-input.component.css +128 -0
- package/src/lib/forms/input/password-input.component.css +104 -0
- package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
- package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +104 -0
- package/src/lib/forms/otp-input/otp-input.component.css +222 -0
- package/src/lib/forms/phone-input/phone-input.component.css +127 -0
- package/src/lib/forms/rating/rating.component.css +198 -0
- package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +92 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +172 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +149 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-palette.component.css +18 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +203 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +177 -0
- package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
- package/src/lib/forms/select/select-all-option.component.css +14 -0
- package/src/lib/forms/select/select-extras-styles.component.css +149 -0
- package/src/lib/forms/select/select-option-group.component.css +36 -0
- package/src/lib/forms/select/select-option-styles.component.css +167 -0
- package/src/lib/forms/select/select-panel.component.css +119 -0
- package/src/lib/forms/select/select.component.css +247 -0
- package/src/lib/forms/selection-card-styles.component.css +148 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +108 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +142 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +172 -0
- package/src/lib/forms/selection-list/radio-group/radio-group.component.css +134 -0
- package/src/lib/forms/selection-list/radio-group/radio.component.css +154 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +213 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +199 -0
- package/src/lib/forms/slider/range-slider.component.css +440 -0
- package/src/lib/forms/slider/slider.component.css +434 -0
- package/src/lib/forms/switch/switch.component.css +217 -0
- package/src/lib/forms/tag-input/tag-input.component.css +54 -0
- package/src/lib/forms/textarea/textarea-autosize-styles.component.css +16 -0
- package/src/lib/forms/textarea/textarea.component.css +45 -0
- package/src/lib/grid/grid-debug.component.css +130 -0
- package/src/lib/grid/grid-item-default-actions.component.css +11 -0
- package/src/lib/grid/grid-item-toolbar.component.css +10 -0
- package/src/lib/grid/grid-item.component.css +177 -0
- package/src/lib/grid/grid.component.css +56 -0
- package/src/lib/icon/headless/align-icons.ts +30 -0
- package/src/lib/icon/headless/arrow-out-up-right-icon.ts +17 -0
- package/src/lib/icon/headless/arrow-right-icon.ts +23 -0
- package/src/lib/icon/headless/arrow-up-icon.ts +30 -0
- package/src/lib/icon/headless/arrows-left-right-icon.ts +31 -0
- package/src/lib/icon/headless/bold-icon.ts +11 -0
- package/src/lib/icon/headless/calendar-icon.ts +21 -0
- package/src/lib/icon/headless/check-icon.ts +14 -0
- package/src/lib/icon/headless/chevron-icon.ts +14 -0
- package/src/lib/icon/headless/circle-check-icon.ts +14 -0
- package/src/lib/icon/headless/circle-info-icon.ts +14 -0
- package/src/lib/icon/headless/clipboard-check-icon.ts +28 -0
- package/src/lib/icon/headless/clock-icon.ts +21 -0
- package/src/lib/icon/headless/code-block-icon.ts +15 -0
- package/src/lib/icon/headless/code-icon.ts +14 -0
- package/src/lib/icon/headless/ellipsis-icon.ts +13 -0
- package/src/lib/icon/headless/ellipsis-vertical-icon.ts +13 -0
- package/src/lib/icon/headless/eye-icons.ts +27 -0
- package/src/lib/icon/headless/eyedropper-icon.ts +22 -0
- package/src/lib/icon/headless/file-icon.ts +16 -0
- package/src/lib/icon/headless/filter-icon.ts +11 -0
- package/src/lib/icon/headless/floppy-disk-icon.ts +27 -0
- package/src/lib/icon/headless/focus-frame-icon.ts +16 -0
- package/src/lib/icon/headless/grid-2x2-icon.ts +17 -0
- package/src/lib/icon/headless/heading-1-icon.ts +11 -0
- package/src/lib/icon/headless/heading-2-icon.ts +11 -0
- package/src/lib/icon/headless/heading-3-icon.ts +11 -0
- package/src/lib/icon/headless/icon-definition.ts +14 -0
- package/src/lib/icon/headless/icon-styles.component.css +7 -0
- package/src/lib/icon/headless/image-icon.ts +14 -0
- package/src/lib/icon/headless/italic-icon.ts +19 -0
- package/src/lib/icon/headless/link-icon.ts +17 -0
- package/src/lib/icon/headless/list-bulleted-icon.ts +14 -0
- package/src/lib/icon/headless/list-numbered-icon.ts +14 -0
- package/src/lib/icon/headless/location-icon.ts +21 -0
- package/src/lib/icon/headless/lock-icon.ts +14 -0
- package/src/lib/icon/headless/minus-icon.ts +14 -0
- package/src/lib/icon/headless/paragraph-icon.ts +11 -0
- package/src/lib/icon/headless/pause-icon.ts +11 -0
- package/src/lib/icon/headless/pencil-icon.ts +21 -0
- package/src/lib/icon/headless/play-icon.ts +10 -0
- package/src/lib/icon/headless/plus-icon.ts +21 -0
- package/src/lib/icon/headless/quote-icon.ts +15 -0
- package/src/lib/icon/headless/rotate-right-icon.ts +16 -0
- package/src/lib/icon/headless/star-icon.ts +14 -0
- package/src/lib/icon/headless/strikethrough-icon.ts +18 -0
- package/src/lib/icon/headless/table-icon.ts +15 -0
- package/src/lib/icon/headless/thumbtack-icon.ts +18 -0
- package/src/lib/icon/headless/times-icon.ts +14 -0
- package/src/lib/icon/headless/trash-icon.ts +24 -0
- package/src/lib/icon/headless/triangle-exclamation-icon.ts +14 -0
- package/src/lib/icon/headless/trophy-icon.ts +24 -0
- package/src/lib/icon/headless/underline-icon.ts +12 -0
- package/src/lib/icon/headless/undo-redo-icons.ts +24 -0
- package/src/lib/icon/headless/upload-icon.ts +16 -0
- package/src/lib/kbd/kbd.component.css +62 -0
- package/src/lib/loader/brand-loader/brand-loader.component.css +133 -0
- package/src/lib/loader/progress-bar/progress-bar.component.css +186 -0
- package/src/lib/loader/spinner/spinner-styles.component.css +225 -0
- package/src/lib/loader/spinner/spinner-sweep-dashes.ts +19 -0
- package/src/lib/masonry/masonry-styles.component.css +84 -0
- package/src/lib/match/match-card.component.css +556 -0
- package/src/lib/match/match-participant.component.css +236 -0
- package/src/lib/match/match-score.component.css +77 -0
- package/src/lib/match/match-scoreline.component.css +53 -0
- package/src/lib/match/match-time.component.css +5 -0
- package/src/lib/menu/menu-group-label.component.css +12 -0
- package/src/lib/menu/menu-item-shortcut.component.css +26 -0
- package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
- package/src/lib/menu/menu-item.component.css +36 -0
- package/src/lib/menu/menu-search-styles.component.css +83 -0
- package/src/lib/menu/menu-selection-item.component.css +92 -0
- package/src/lib/menu/menu-separator.component.css +9 -0
- package/src/lib/menu/menu.component.css +307 -0
- package/src/lib/notification/notification-stack.component.css +114 -0
- package/src/lib/notification/notification.component.css +275 -0
- package/src/lib/overlay/alert-dialog/alert-dialog.component.css +55 -0
- package/src/lib/overlay/floating-panel-styles.component.css +71 -0
- package/src/lib/overlay/floating-tip-styles.component.css +84 -0
- package/src/lib/overlay/overlay-container.component.css +170 -0
- package/src/lib/overlay/overlay-main-styles.component.css +105 -0
- package/src/lib/overlay/overlay-template-host.component.css +7 -0
- package/src/lib/overlay/routing/overlay-route-header-template-outlet.component.css +36 -0
- package/src/lib/overlay/routing/overlay-router-outlet.component.css +215 -0
- package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
- package/src/lib/overlay/sidebar/overlay-sidebar.component.css +23 -0
- package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +78 -0
- package/src/lib/overlay/strategies/dialog-styles.component.css +77 -0
- package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +141 -0
- package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
- package/src/lib/overlay/strategies/overlay-origin-clone.component.css +92 -0
- package/src/lib/overlay/strategies/sheet-styles.component.css +170 -0
- package/src/lib/pagination/page-size-select.component.css +6 -0
- package/src/lib/pagination/pagination.component.css +186 -0
- package/src/lib/picture/picture.component.css +82 -0
- package/src/lib/progress-steps/progress-step.component.css +269 -0
- package/src/lib/progress-steps/progress-steps.component.css +26 -0
- package/src/lib/query-error/query-error.component.css +27 -0
- package/src/lib/scheduler/scheduler-agenda-view.component.css +106 -0
- package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +56 -0
- package/src/lib/scheduler/scheduler-appointment-styles.component.css +127 -0
- package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
- package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
- package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
- package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
- package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
- package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
- package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
- package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
- package/src/lib/scheduler/scheduler-month-view.component.css +145 -0
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +271 -0
- package/src/lib/scheduler/scheduler.component.css +87 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +223 -0
- package/src/lib/scrollable/headless/scrollable-footer.css +37 -0
- package/src/lib/scrollable/headless/scrollable-masks.component.css +165 -0
- package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
- package/src/lib/scrollable/scrollable.component.css +234 -0
- package/src/lib/scrollbar/scrollbar.component.css +116 -0
- package/src/lib/skeleton/skeleton.component.css +138 -0
- package/src/lib/standings/standings-pick.component.css +216 -0
- package/src/lib/standings/standings.component.css +353 -0
- package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
- package/src/lib/stat-tile/stat-tile.component.css +134 -0
- package/src/lib/stream/consent/stream-consent.component.css +100 -0
- package/src/lib/stream/error/stream-player-error.component.css +101 -0
- package/src/lib/stream/loading/stream-player-loading.component.css +16 -0
- package/src/lib/stream/pip/pip-player.component.css +40 -0
- package/src/lib/stream/pip/pip-slot-placeholder.component.css +68 -0
- package/src/lib/stream/pip/pip-stage-styles.component.css +96 -0
- package/src/lib/stream/pip/pip-window.component.css +222 -0
- package/src/lib/stream/stream-manager-styles.component.css +10 -0
- package/src/lib/stream/stream-overlay-card-styles.component.css +69 -0
- package/src/lib/stream/stream-player-slot-styles.component.css +18 -0
- package/src/lib/table/table-column-chooser.component.css +17 -0
- package/src/lib/table/table-column-menu-trigger.component.css +31 -0
- package/src/lib/table/table-detail-styles.component.css +103 -0
- package/src/lib/table/table-drag-scroll-styles.component.css +18 -0
- package/src/lib/table/table-expander-cell.component.css +64 -0
- package/src/lib/table/table-filter-trigger.component.css +44 -0
- package/src/lib/table/table-group-header-row.component.css +38 -0
- package/src/lib/table/table-inline-edit-styles.component.css +20 -0
- package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
- package/src/lib/table/table-reorder-overlay.component.css +42 -0
- package/src/lib/table/table-resize-grip.component.css +66 -0
- package/src/lib/table/table-row-box-styles.component.css +272 -0
- package/src/lib/table/table-select-cell.component.css +119 -0
- package/src/lib/table/table-skeleton-rows.component.css +19 -0
- package/src/lib/table/table-sort-priority-styles.component.css +15 -0
- package/src/lib/table/table-sticky-columns-styles.component.css +80 -0
- package/src/lib/table/table-virtual-scroll-styles.component.css +9 -0
- package/src/lib/table/table.component.css +865 -0
- package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +37 -0
- package/src/lib/tabs/tab-bar-styles.component.css +230 -0
- package/src/lib/tabs/tab-scale-styles.component.css +61 -0
- package/src/lib/tabs/tabs/tab-group.component.css +115 -0
- package/src/lib/time-picker/time-picker.component.css +221 -0
- package/src/lib/timeline/timeline-item.component.css +142 -0
- package/src/lib/timeline/timeline.component.css +7 -0
- package/src/lib/toggletip/toggletip.component.css +83 -0
- package/src/lib/toolbar/toolbar.component.css +44 -0
- package/src/lib/tooltip/tooltip.component.css +84 -0
- package/src/lib/tree/tree.component.css +221 -0
- package/types/ethlete-components-testing.d.ts +300 -0
- package/types/ethlete-components.d.ts +37454 -3814
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
.t-frame {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
padding: 1.6rem;
|
|
4
|
+
background: var(--et-surface-background-solid);
|
|
5
|
+
color: var(--et-surface-color-solid);
|
|
6
|
+
font-size: 1.4rem;
|
|
7
|
+
|
|
8
|
+
.t-detail {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-wrap: wrap;
|
|
11
|
+
gap: 0.4rem 1.6rem;
|
|
12
|
+
color: var(--et-surface-color-muted-solid);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.et-table-host[data-scrolled] {
|
|
16
|
+
scroll-snap-type: x mandatory;
|
|
17
|
+
scroll-padding-inline-start: 140px;
|
|
18
|
+
|
|
19
|
+
.et-table-header-cell:nth-child(3) {
|
|
20
|
+
scroll-snap-align: start;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@layer components {
|
|
26
|
+
.et-table-header-label:focus-visible .et-table-header-label-box,
|
|
27
|
+
.et-table-expander:focus-visible,
|
|
28
|
+
.et-table-cell:focus-visible {
|
|
29
|
+
outline-color: var(--et-theme-color-ink-solid);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.et-table-sort-indicator {
|
|
33
|
+
color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.et-table-busy-bar::after {
|
|
37
|
+
background: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.et-table-row.et-table-row--selected .et-table-cell {
|
|
41
|
+
background: light-dark(
|
|
42
|
+
color-mix(in srgb, var(--_et-table-selected-accent, var(--et-theme-color-primary-solid)) 32%, transparent),
|
|
43
|
+
color-mix(in srgb, var(--_et-table-selected-accent, var(--et-theme-color-primary-solid)) 12%, transparent)
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@media (hover: hover) {
|
|
48
|
+
.et-table-row.et-table-row--selected:hover .et-table-cell {
|
|
49
|
+
background: light-dark(
|
|
50
|
+
color-mix(in srgb, var(--_et-table-selected-accent, var(--et-theme-color-primary-solid)) 38%, transparent),
|
|
51
|
+
color-mix(in srgb, var(--_et-table-selected-accent, var(--et-theme-color-primary-solid)) 18%, transparent)
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.et-table-row.et-table-row--selected:where(.et-table-row--interactive, .et-table-row--link):active .et-table-cell {
|
|
57
|
+
background: light-dark(
|
|
58
|
+
color-mix(in srgb, var(--_et-table-selected-accent, var(--et-theme-color-primary-solid)) 44%, transparent),
|
|
59
|
+
color-mix(in srgb, var(--_et-table-selected-accent, var(--et-theme-color-primary-solid)) 26%, transparent)
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
et-checkbox:is([aria-checked='true'], [aria-checked='mixed']) .et-checkbox-box {
|
|
64
|
+
outline: 1px solid var(--et-theme-color-ink-solid);
|
|
65
|
+
outline-offset: -1px;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { table, tableStyles, TableColumnMock, TableMockOptions, TableRowMock } from '@ethlete/components/design/table';
|
|
2
|
+
import { definePart, drawing, interactionRows } from '@design-system';
|
|
3
|
+
import frame from './table.css?inline';
|
|
4
|
+
|
|
5
|
+
type Interaction = 'hover' | 'active' | 'focus-visible';
|
|
6
|
+
|
|
7
|
+
type Selection = 'some' | 'row-added' | 'row-removed' | 'all' | 'none';
|
|
8
|
+
|
|
9
|
+
type Props = {
|
|
10
|
+
appearance?: TableMockOptions['appearance'];
|
|
11
|
+
sort?: 'asc' | 'desc';
|
|
12
|
+
header?: Interaction;
|
|
13
|
+
row?: Interaction;
|
|
14
|
+
cell?: 'focus-visible';
|
|
15
|
+
selection?: Selection;
|
|
16
|
+
expanded?: boolean;
|
|
17
|
+
collapsed?: boolean;
|
|
18
|
+
expander?: Interaction;
|
|
19
|
+
checkbox?: Interaction;
|
|
20
|
+
groups?: boolean;
|
|
21
|
+
cellError?: boolean;
|
|
22
|
+
message?: 'empty' | 'error';
|
|
23
|
+
loading?: boolean;
|
|
24
|
+
busy?: boolean;
|
|
25
|
+
longValue?: boolean;
|
|
26
|
+
wide?: 'start' | 'scrolled';
|
|
27
|
+
stickyHeader?: boolean;
|
|
28
|
+
density?: TableMockOptions['density'];
|
|
29
|
+
center?: boolean;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
const PLAYERS: [string, string, string, string][] = [
|
|
33
|
+
['Lena Hoffmann', 'FC Nordhafen', '14', '6'],
|
|
34
|
+
['Mara Jensen', 'SV Lindenau', '11', '9'],
|
|
35
|
+
['Ida Krüger', 'TSV Altmark', '9', '3'],
|
|
36
|
+
['Pia Schulte', 'FC Nordhafen', '7', '11'],
|
|
37
|
+
['Romy Wagner', 'SC Ostwall', '6', '2'],
|
|
38
|
+
['Nele Brandt', 'SV Lindenau', '5', '7'],
|
|
39
|
+
['Clara Vogt', 'TSV Altmark', '4', '4'],
|
|
40
|
+
['Hanna Peters', 'SC Ostwall', '3', '8'],
|
|
41
|
+
];
|
|
42
|
+
|
|
43
|
+
const LONG = 'Hoffmann-Wiesenthal-Brandenburger-Lindqvist-Oberhausen';
|
|
44
|
+
|
|
45
|
+
const mark = (name: string) => `data-et-control="${name}" data-can-animate`;
|
|
46
|
+
|
|
47
|
+
const SORT = `${mark('sort-header')} data-et-action="emit:sortChange"`;
|
|
48
|
+
|
|
49
|
+
const action = (state: string, control: string) => `${mark(control)} data-et-action="${state}"`;
|
|
50
|
+
|
|
51
|
+
const forceOf = (interaction: Interaction | undefined) => (interaction ? ` data-et-force="${interaction}"` : '');
|
|
52
|
+
|
|
53
|
+
const SELECTED: Record<Selection, number[]> = {
|
|
54
|
+
some: [1, 2],
|
|
55
|
+
'row-added': [0, 1, 2],
|
|
56
|
+
'row-removed': [2],
|
|
57
|
+
all: [0, 1, 2, 3],
|
|
58
|
+
none: [],
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
const selectAll = (selection: Selection): TableMockOptions['selection'] =>
|
|
62
|
+
selection === 'all' ? 'checked' : selection === 'none' ? 'unchecked' : 'mixed';
|
|
63
|
+
|
|
64
|
+
const columns = (
|
|
65
|
+
sort: Props['sort'],
|
|
66
|
+
header: Props['header'],
|
|
67
|
+
align: TableColumnMock['align'] = 'end',
|
|
68
|
+
): TableColumnMock[] => [
|
|
69
|
+
{ header: 'Player', sortable: true, sort: sort ?? 'asc', labelAttributes: SORT },
|
|
70
|
+
{
|
|
71
|
+
header: 'Team',
|
|
72
|
+
sortable: true,
|
|
73
|
+
labelAttributes: header ? `${SORT} data-et-force="${header}"` : SORT,
|
|
74
|
+
},
|
|
75
|
+
{ header: 'Goals', sortable: true, align, labelAttributes: SORT },
|
|
76
|
+
{ header: 'Assists', align },
|
|
77
|
+
];
|
|
78
|
+
|
|
79
|
+
const WIDE_HEADERS = ['Team', 'Goals', 'Assists', 'Shots', 'Minutes', 'Cards'];
|
|
80
|
+
const WIDE: string[][] = [
|
|
81
|
+
['FC Nordhafen', '14', '6', '41', '1 620', '2'],
|
|
82
|
+
['SV Lindenau', '11', '9', '36', '1 540', '1'],
|
|
83
|
+
['TSV Altmark', '9', '3', '30', '1 390', '4'],
|
|
84
|
+
['FC Nordhafen', '7', '11', '22', '1 480', '0'],
|
|
85
|
+
];
|
|
86
|
+
|
|
87
|
+
const wideTable = (scrolled: boolean) =>
|
|
88
|
+
table({
|
|
89
|
+
errorColor: 'danger',
|
|
90
|
+
tracks: '140px 132px repeat(5, 96px)',
|
|
91
|
+
columns: [
|
|
92
|
+
{
|
|
93
|
+
header: 'Player',
|
|
94
|
+
sortable: true,
|
|
95
|
+
sort: 'asc',
|
|
96
|
+
labelAttributes: SORT,
|
|
97
|
+
sticky: scrolled ? { side: 'start', offset: 0 } : undefined,
|
|
98
|
+
},
|
|
99
|
+
...WIDE_HEADERS.map((header, index) => ({ header, align: index === 0 ? undefined : ('end' as const) })),
|
|
100
|
+
],
|
|
101
|
+
rows: WIDE.map((cells, index) => ({ cells: [PLAYERS[index]?.[0] ?? '', ...cells] })),
|
|
102
|
+
scrolled: scrolled ? { inlineStart: true, inlineEnd: true } : { inlineEnd: true },
|
|
103
|
+
attributes: scrolled ? 'data-scrolled' : undefined,
|
|
104
|
+
});
|
|
105
|
+
|
|
106
|
+
const expandable = (props: Props) => props.expanded || props.collapsed || props.expander !== undefined;
|
|
107
|
+
|
|
108
|
+
const rows = (props: Props): TableRowMock[] =>
|
|
109
|
+
PLAYERS.slice(props.stickyHeader ? 3 : 0, props.stickyHeader ? 8 : 4).map((cells, index) => {
|
|
110
|
+
const row: TableRowMock = { cells: [...cells] };
|
|
111
|
+
|
|
112
|
+
if (props.longValue && index === 1) row.cells[0] = LONG;
|
|
113
|
+
if (props.cellError && index === 1) {
|
|
114
|
+
row.cells[2] = { value: '—', state: 'error', message: 'Goals could not be loaded' };
|
|
115
|
+
}
|
|
116
|
+
if (props.cell && index === 1) row.cells[1] = { value: cells[1], attributes: `data-et-force="${props.cell}"` };
|
|
117
|
+
if (props.row && index === 1) row.attributes = `data-et-force="${props.row}"`;
|
|
118
|
+
if (props.selection) {
|
|
119
|
+
row.selected = SELECTED[props.selection].includes(index);
|
|
120
|
+
row.selectAttributes = `${action(row.selected ? 'selection-removed' : 'selection-added', 'select-checkbox')}${index === 1 ? forceOf(props.checkbox) : ''}`;
|
|
121
|
+
}
|
|
122
|
+
if (props.expanded && index === 1) {
|
|
123
|
+
row.detail = `<div class="t-detail"><span>Club since 2021</span><span>Left foot</span><span>2 hat-tricks this season</span></div>`;
|
|
124
|
+
}
|
|
125
|
+
if (expandable(props)) {
|
|
126
|
+
row.expanderAttributes = `${action(row.detail === undefined ? 'expanded' : 'collapsed', 'expander')}${index === 1 ? forceOf(props.expander) : ''}`;
|
|
127
|
+
}
|
|
128
|
+
if (expandable(props) && index === 3) row.noExpander = true;
|
|
129
|
+
|
|
130
|
+
return row;
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
const partOfCheckbox = (markup: string) =>
|
|
134
|
+
markup.replaceAll('<div class="et-checkbox-box">', '<div data-et-control-part class="et-checkbox-box">');
|
|
135
|
+
|
|
136
|
+
const render = (props: Props) => {
|
|
137
|
+
if (props.wide) return wideTable(props.wide === 'scrolled');
|
|
138
|
+
|
|
139
|
+
return partOfCheckbox(
|
|
140
|
+
table({
|
|
141
|
+
errorColor: 'danger',
|
|
142
|
+
tracks: 'minmax(0, 1.6fr) minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr)',
|
|
143
|
+
appearance: props.appearance,
|
|
144
|
+
density: props.density,
|
|
145
|
+
columns: columns(props.sort, props.header, props.center ? 'center' : undefined),
|
|
146
|
+
rows: rows(props),
|
|
147
|
+
selection: props.selection ? selectAll(props.selection) : undefined,
|
|
148
|
+
selectAllAttributes: props.selection
|
|
149
|
+
? action(props.selection === 'all' ? 'selection-none' : 'selection-all', 'select-checkbox')
|
|
150
|
+
: undefined,
|
|
151
|
+
expandable: expandable(props),
|
|
152
|
+
groups: props.groups ? [{ span: 2 }, { label: 'Season', span: 2 }] : undefined,
|
|
153
|
+
message: props.message,
|
|
154
|
+
placeholder: props.loading ? { rows: 4, widths: [70, 55, 30, 30] } : undefined,
|
|
155
|
+
busyAt: props.busy ? 0.4 : undefined,
|
|
156
|
+
interactive: props.row !== undefined,
|
|
157
|
+
cellNavigation: props.cell !== undefined,
|
|
158
|
+
scrolled: props.stickyHeader ? { blockStart: true } : undefined,
|
|
159
|
+
}),
|
|
160
|
+
);
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
const { states: interactionStates, grid } = interactionRows<
|
|
164
|
+
Props,
|
|
165
|
+
'sort-header' | 'select-checkbox' | 'expander',
|
|
166
|
+
Interaction
|
|
167
|
+
>(
|
|
168
|
+
{
|
|
169
|
+
'sort-header': { sort: 'asc' },
|
|
170
|
+
'select-checkbox': { selection: 'none' },
|
|
171
|
+
expander: { expanded: true },
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
interactions: ['hover', 'active', 'focus-visible'],
|
|
175
|
+
force: (props, interaction) => ({
|
|
176
|
+
...props,
|
|
177
|
+
...(props.selection
|
|
178
|
+
? { checkbox: interaction }
|
|
179
|
+
: props.expanded
|
|
180
|
+
? { expander: interaction }
|
|
181
|
+
: { header: interaction }),
|
|
182
|
+
}),
|
|
183
|
+
},
|
|
184
|
+
);
|
|
185
|
+
|
|
186
|
+
export default definePart({
|
|
187
|
+
note: 'scale of the decided shape, Q182, lead merge',
|
|
188
|
+
madeBy: ['claude-opus-5-5', 'design check'],
|
|
189
|
+
states: {
|
|
190
|
+
rest: {},
|
|
191
|
+
...interactionStates,
|
|
192
|
+
'sort-desc': { sort: 'desc' },
|
|
193
|
+
'row-hover': { row: 'hover' },
|
|
194
|
+
'row-active': { row: 'active' },
|
|
195
|
+
'cell-focus-visible': { cell: 'focus-visible' },
|
|
196
|
+
divided: { appearance: 'divided' },
|
|
197
|
+
zebra: { appearance: 'zebra' },
|
|
198
|
+
grid: { appearance: 'grid' },
|
|
199
|
+
bare: { appearance: 'bare' },
|
|
200
|
+
selection: { selection: 'some' },
|
|
201
|
+
'selection-hover': { selection: 'some', row: 'hover' },
|
|
202
|
+
'selection-added': { selection: 'row-added' },
|
|
203
|
+
'selection-removed': { selection: 'row-removed' },
|
|
204
|
+
'selection-all': { selection: 'all' },
|
|
205
|
+
'selection-none': { selection: 'none' },
|
|
206
|
+
expanded: { expanded: true },
|
|
207
|
+
collapsed: { collapsed: true },
|
|
208
|
+
'group-header': { groups: true },
|
|
209
|
+
'cell-error': { cellError: true },
|
|
210
|
+
empty: { message: 'empty' },
|
|
211
|
+
error: { message: 'error' },
|
|
212
|
+
loading: { loading: true },
|
|
213
|
+
busy: { busy: true },
|
|
214
|
+
'long-value': { longValue: true },
|
|
215
|
+
'wide-scroll': { wide: 'start' },
|
|
216
|
+
'sticky-column': { wide: 'scrolled' },
|
|
217
|
+
'sticky-header': { stickyHeader: true },
|
|
218
|
+
'density-sm': { density: 'sm' },
|
|
219
|
+
'density-lg': { density: 'lg' },
|
|
220
|
+
'align-center': { center: true },
|
|
221
|
+
},
|
|
222
|
+
describe: {
|
|
223
|
+
'sort-header':
|
|
224
|
+
'The Team sort header at rest; check its label and arrow against the hover, pressed and focus looks.',
|
|
225
|
+
'sort-header-hover': 'The Team header hovered; check that only the Team sort label shows hover.',
|
|
226
|
+
'sort-header-active': 'The Team header pressed; check that the press look is deeper than hover.',
|
|
227
|
+
'sort-header-focus-visible': 'The Team header focused by keyboard; check that the focus ring wraps its sort label.',
|
|
228
|
+
'select-checkbox':
|
|
229
|
+
'The second row checkbox at rest, unchecked; check its border against the hover, pressed and focus looks.',
|
|
230
|
+
'select-checkbox-hover': 'The second row checkbox hovered; check its hover look.',
|
|
231
|
+
'select-checkbox-active': 'The second row checkbox pressed; check that the press look goes past hover.',
|
|
232
|
+
'select-checkbox-focus-visible': 'The second row checkbox focused by keyboard; check the ring around it.',
|
|
233
|
+
expander: 'The second row expander at rest; check the chevron against the other looks.',
|
|
234
|
+
'expander-hover': 'The second row expander hovered; check that only the expander button shows hover.',
|
|
235
|
+
'expander-active': 'The second row expander pressed; check that the press look is deeper than hover.',
|
|
236
|
+
'expander-focus-visible': 'The second row expander focused by keyboard; check that the ring wraps the expander.',
|
|
237
|
+
rest: 'Four players sorted by Player ascending; check the header row, the sort arrow and the numbers aligned at the end.',
|
|
238
|
+
'sort-desc': 'The players sorted by Player descending; check that the sort arrow flips.',
|
|
239
|
+
'row-hover': 'An interactive table with the second row hovered; check that only that row tints.',
|
|
240
|
+
'row-active': 'The second row pressed; check that the press tint is deeper than hover.',
|
|
241
|
+
'cell-focus-visible': 'Cell navigation with the second Team cell focused; check that the ring wraps one cell.',
|
|
242
|
+
divided: 'The divided appearance; check that lines separate the rows.',
|
|
243
|
+
zebra: 'The zebra appearance; check that every other row takes a light stripe.',
|
|
244
|
+
grid: 'The grid appearance; check that lines separate both rows and columns.',
|
|
245
|
+
bare: 'The bare appearance; check that no row lines or stripes show.',
|
|
246
|
+
selection: 'A selection column with two rows selected; check the mixed header checkbox and the selected row tint.',
|
|
247
|
+
'selection-hover':
|
|
248
|
+
'The selection table with the selected second row hovered; check that hover and selection both read.',
|
|
249
|
+
'selection-added': 'Lena selected on top of the selection; check her checkbox and row tint, header still mixed.',
|
|
250
|
+
'selection-removed': 'Mara cleared from the selection; only Ida stays selected and the header stays mixed.',
|
|
251
|
+
'selection-all': 'Every row selected; check that the header checkbox is checked and all four rows tint.',
|
|
252
|
+
'selection-none': 'No row selected; check that every checkbox, the header one too, is empty and no row tints.',
|
|
253
|
+
expanded:
|
|
254
|
+
'The second row expanded with its detail; check that the detail sits under the row and Pia has no expander.',
|
|
255
|
+
collapsed: 'The expander column with every row collapsed; check the closed chevrons and that Pia has no expander.',
|
|
256
|
+
'group-header': 'A Season group over Goals and Assists; check that the group label spans its two columns.',
|
|
257
|
+
'cell-error': 'A failed Goals cell in the second row; check that the dash shows with the danger error mark.',
|
|
258
|
+
empty: 'The table with the empty message; check that the message sits under the header.',
|
|
259
|
+
error: 'The table with the error message; check that it reads as an error under the header.',
|
|
260
|
+
loading: 'Four placeholder rows loading; check that skeleton bars fill the cells at varied widths.',
|
|
261
|
+
busy: 'The table busy at 40 %; check the progress indicator and that the rows stay readable.',
|
|
262
|
+
'long-value': 'A long name in the second row; check that it truncates or wraps inside its column.',
|
|
263
|
+
'wide-scroll': 'A seven-column table at its start; check that it scrolls sideways with a shadow at the end edge.',
|
|
264
|
+
'sticky-column': 'The wide table scrolled; check that Player sticks at the start with shadows on both edges.',
|
|
265
|
+
'sticky-header': 'Five rows scrolled under a sticky header; check that the header stays on top with its shadow.',
|
|
266
|
+
'density-sm': 'The table at density sm; check that rows are tighter but cells stay readable.',
|
|
267
|
+
'density-lg': 'The table at density lg; check that rows are roomier with the same columns.',
|
|
268
|
+
'align-center': 'Goals and Assists centered; check that numbers and headers sit in the middle of their columns.',
|
|
269
|
+
},
|
|
270
|
+
grid,
|
|
271
|
+
controls: {
|
|
272
|
+
'sort-header': { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
273
|
+
'select-checkbox': { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
274
|
+
expander: { kind: 'button', input: ['pointer', 'keyboard'] },
|
|
275
|
+
},
|
|
276
|
+
widths: [480],
|
|
277
|
+
motions: {
|
|
278
|
+
expand: { from: 'collapsed', to: 'expanded' },
|
|
279
|
+
collapse: { from: 'expanded', to: 'collapsed' },
|
|
280
|
+
},
|
|
281
|
+
unreachable: [
|
|
282
|
+
{
|
|
283
|
+
from: 'rest',
|
|
284
|
+
to: 'collapsed',
|
|
285
|
+
reason: 'The collapsed table has an expander column the rest table lacks; no step adds or drops that column.',
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
from: 'collapsed',
|
|
289
|
+
to: 'rest',
|
|
290
|
+
reason: 'The collapsed table has an expander column the rest table lacks; no step adds or drops that column.',
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
from: 'loading',
|
|
294
|
+
to: 'collapsed',
|
|
295
|
+
reason: 'The loading table draws placeholder rows without an expander column; no step adds that column.',
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
from: 'collapsed',
|
|
299
|
+
to: 'loading',
|
|
300
|
+
reason: 'The loading table draws placeholder rows without an expander column; no step drops that column.',
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
from: 'busy',
|
|
304
|
+
to: 'collapsed',
|
|
305
|
+
reason: 'The busy table has no expander column, the collapsed one has; no step adds that column.',
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
from: 'collapsed',
|
|
309
|
+
to: 'busy',
|
|
310
|
+
reason: 'The busy table has no expander column, the collapsed one has; no step drops that column.',
|
|
311
|
+
},
|
|
312
|
+
],
|
|
313
|
+
frame: (body) => `<div class="t-frame">${body}</div>`,
|
|
314
|
+
scrolls: ['wide-scroll', 'sticky-column'],
|
|
315
|
+
render: (props: Props) =>
|
|
316
|
+
drawing({
|
|
317
|
+
body: render(props),
|
|
318
|
+
styles: [tableStyles, frame].join('\n'),
|
|
319
|
+
}),
|
|
320
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-tab-group__trigger {
|
|
3
|
+
--_et-focus-ring-color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.et-tab-group__trigger:focus-visible .et-tab-group__trigger-content {
|
|
7
|
+
outline-color: light-dark(var(--et-theme-color-ink-solid), var(--et-theme-color-primary-solid));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.et-tab-group {
|
|
11
|
+
--et-tab-baseline-opacity: 1;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { iconMarkup } from '@ethlete/components/design/icon';
|
|
2
|
+
import { SDK_ICONS } from '@ethlete/components/design/icon-set';
|
|
3
|
+
import { tabs, type TabsMockOptions, tabsStyles } from '@ethlete/components/design/tabs';
|
|
4
|
+
import { definePart, drawing, interactionRows } from '@design-system';
|
|
5
|
+
import edge from './tabs.css?inline';
|
|
6
|
+
|
|
7
|
+
type TriggerInteraction = 'hover' | 'active' | 'focus-visible';
|
|
8
|
+
|
|
9
|
+
type Props = TabsMockOptions & { forced?: { tab: number; interaction: TriggerInteraction } };
|
|
10
|
+
|
|
11
|
+
const TABS = [{ label: 'Overview' }, { label: 'Activity' }, { label: 'Settings' }];
|
|
12
|
+
const WITH_DISABLED = [...TABS, { label: 'Billing', disabled: true }];
|
|
13
|
+
|
|
14
|
+
const icon = (name: string) =>
|
|
15
|
+
iconMarkup(
|
|
16
|
+
SDK_ICONS.find((each) => each.name === name)!,
|
|
17
|
+
'et-tab-group__trigger-icon',
|
|
18
|
+
);
|
|
19
|
+
const WITH_ICONS = [
|
|
20
|
+
{ label: `${icon('et-grid-2x2')}Overview` },
|
|
21
|
+
{ label: `${icon('et-clock')}Activity` },
|
|
22
|
+
{ label: `${icon('et-pencil')}Settings` },
|
|
23
|
+
];
|
|
24
|
+
const ICON_ONLY = [
|
|
25
|
+
{ label: icon('et-grid-2x2'), name: 'Overview' },
|
|
26
|
+
{ label: icon('et-clock'), name: 'Activity' },
|
|
27
|
+
{ label: icon('et-pencil'), name: 'Settings' },
|
|
28
|
+
];
|
|
29
|
+
const ICON_ONLY_LABELS = Object.fromEntries(ICON_ONLY.map(({ name }, index) => [index, `aria-label="${name}"`]));
|
|
30
|
+
|
|
31
|
+
const { states, grid } = interactionRows(
|
|
32
|
+
{
|
|
33
|
+
tab: { tabs: TABS, selected: 0 },
|
|
34
|
+
selected: { tabs: TABS, selected: 1 },
|
|
35
|
+
} satisfies Record<string, Props>,
|
|
36
|
+
{
|
|
37
|
+
interactions: ['hover', 'active', 'focus-visible'],
|
|
38
|
+
force: (props: Props, interaction: TriggerInteraction): Props => ({ ...props, forced: { tab: 1, interaction } }),
|
|
39
|
+
},
|
|
40
|
+
);
|
|
41
|
+
|
|
42
|
+
export default definePart({
|
|
43
|
+
note: 'The SDK tab group, drawn by its mock from @ethlete/components/design: the bar with its triggers, the underline of the selected tab and the baseline, in every size, both variants and both orientations.',
|
|
44
|
+
madeBy: ['claude-opus-5-5'],
|
|
45
|
+
states: {
|
|
46
|
+
...states,
|
|
47
|
+
disabled: { tabs: WITH_DISABLED, selected: 0 },
|
|
48
|
+
sm: { tabs: TABS, size: 'sm' },
|
|
49
|
+
lg: { tabs: TABS, size: 'lg' },
|
|
50
|
+
primary: { tabs: TABS, variant: 'primary' },
|
|
51
|
+
icons: { tabs: WITH_ICONS },
|
|
52
|
+
'primary-icons': { tabs: WITH_ICONS, variant: 'primary' },
|
|
53
|
+
'icon-only': { tabs: ICON_ONLY, triggerAttributes: ICON_ONLY_LABELS },
|
|
54
|
+
'primary-icon-only': { tabs: ICON_ONLY, triggerAttributes: ICON_ONLY_LABELS, variant: 'primary' },
|
|
55
|
+
'no-divider': { tabs: TABS, divider: false },
|
|
56
|
+
vertical: { tabs: TABS, orientation: 'vertical' },
|
|
57
|
+
panel: { tabs: TABS, panel: '<p>Three open tasks, two of them due this week.</p>' },
|
|
58
|
+
},
|
|
59
|
+
describe: {
|
|
60
|
+
tab: 'Overview selected, Activity at rest; check that Activity reads as a plain tab beside the underlined Overview.',
|
|
61
|
+
'tab-hover': 'The unselected Activity tab hovered; check that only Activity shows the hover look.',
|
|
62
|
+
'tab-active': 'The unselected Activity tab pressed; check that the press look is deeper than hover.',
|
|
63
|
+
'tab-focus-visible': 'The unselected Activity tab focused by keyboard; check that the ring wraps Activity.',
|
|
64
|
+
selected: 'Activity selected; check that its underline and label color mark it on the baseline.',
|
|
65
|
+
'selected-hover': 'The selected Activity tab hovered; check that it keeps its underline under hover.',
|
|
66
|
+
'selected-active': 'The selected Activity tab pressed; check that the underline stays while pressed.',
|
|
67
|
+
'selected-focus-visible': 'The selected Activity tab focused by keyboard; check that ring and underline both show.',
|
|
68
|
+
disabled: 'Four tabs with Billing disabled; check that Billing fades and the others stay full.',
|
|
69
|
+
sm: 'The tabs at size sm; check that triggers and text shrink together.',
|
|
70
|
+
lg: 'The tabs at size lg; check that triggers and text grow together.',
|
|
71
|
+
primary: 'The tabs in the primary variant; check the selected look differs from the default variant.',
|
|
72
|
+
icons: 'Tabs with an icon before each label; check that icons center on the labels.',
|
|
73
|
+
'primary-icons': 'Icon tabs in the primary variant; check icon and label alignment in the selected tab.',
|
|
74
|
+
'icon-only': 'Tabs showing only icons; check that each trigger keeps an even size and the selected underline.',
|
|
75
|
+
'primary-icon-only': 'Icon-only tabs in the primary variant; check that the selected icon stands out.',
|
|
76
|
+
'no-divider': 'The tabs without a divider; check that no baseline shows under the bar.',
|
|
77
|
+
vertical: 'The tabs stacked vertically; check that the selected marker sits on the side.',
|
|
78
|
+
panel: 'The tabs with a panel below; check the gap between bar and panel text.',
|
|
79
|
+
},
|
|
80
|
+
grid,
|
|
81
|
+
widths: [480],
|
|
82
|
+
controls: {
|
|
83
|
+
tab: { kind: 'button', input: ['pointer', 'keyboard'], disabled: true },
|
|
84
|
+
},
|
|
85
|
+
render: ({ forced, ...props }: Props) =>
|
|
86
|
+
drawing({
|
|
87
|
+
body: tabs({
|
|
88
|
+
...props,
|
|
89
|
+
triggerAttributes: forced
|
|
90
|
+
? { ...props.triggerAttributes, [forced.tab]: `data-et-force="${forced.interaction}"` }
|
|
91
|
+
: props.triggerAttributes,
|
|
92
|
+
}).replaceAll('role="tab"', 'data-et-control="tab" data-et-action="emit:selectedIndexChange" role="tab"'),
|
|
93
|
+
styles: [tabsStyles, edge].join('\n'),
|
|
94
|
+
}),
|
|
95
|
+
});
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
.t-frame {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: 1.6rem;
|
|
5
|
+
padding: 1.6rem;
|
|
6
|
+
background: var(--et-surface-background-solid);
|
|
7
|
+
color: var(--et-surface-color-solid);
|
|
8
|
+
font-size: 1.4rem;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@layer components {
|
|
12
|
+
et-form-field[data-text-shell] {
|
|
13
|
+
--_et-form-field-frame-border: color-mix(
|
|
14
|
+
in oklab,
|
|
15
|
+
var(--et-surface-color-solid) 43%,
|
|
16
|
+
var(--et-surface-background-solid)
|
|
17
|
+
);
|
|
18
|
+
--_et-form-field-frame-border-hover: var(--et-surface-color-solid);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
et-form-field[data-text-shell][data-error] {
|
|
22
|
+
--_et-form-field-frame-border: var(--et-theme-color-primary-solid);
|
|
23
|
+
--_et-form-field-frame-border-hover: light-dark(
|
|
24
|
+
rgb(var(--et-color-primary-hover, var(--et-color-primary))),
|
|
25
|
+
rgb(
|
|
26
|
+
var(
|
|
27
|
+
--et-color-primary-ink-active,
|
|
28
|
+
var(
|
|
29
|
+
--et-color-primary-ink-focus,
|
|
30
|
+
var(
|
|
31
|
+
--et-color-primary-ink-hover,
|
|
32
|
+
var(
|
|
33
|
+
--et-color-primary-ink,
|
|
34
|
+
var(
|
|
35
|
+
--et-color-primary-active,
|
|
36
|
+
var(--et-color-primary-focus, var(--et-color-primary-hover, var(--et-color-primary)))
|
|
37
|
+
)
|
|
38
|
+
)
|
|
39
|
+
)
|
|
40
|
+
)
|
|
41
|
+
)
|
|
42
|
+
)
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
et-textarea .et-textarea-native::placeholder {
|
|
47
|
+
color: color-mix(in srgb, currentColor 60%, transparent);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
et-form-field et-label .et-label-required-marker {
|
|
51
|
+
color: var(--et-theme-color-ink-solid);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@layer components {
|
|
56
|
+
et-form-field[data-text-shell][data-control-type='textarea'][data-appearance='box']:not(
|
|
57
|
+
[data-label-mode='floating-inside']
|
|
58
|
+
) {
|
|
59
|
+
--_t-line: calc(var(--et-form-field-control-font-size) * var(--et-form-field-control-line-height));
|
|
60
|
+
--_t-pad: max(
|
|
61
|
+
var(--et-form-field-control-padding-block),
|
|
62
|
+
(
|
|
63
|
+
var(--et-form-field-control-min-height) - var(--et-form-field-control-font-size) *
|
|
64
|
+
var(--et-form-field-control-line-height) - 2 * var(--et-form-field-control-border-width)
|
|
65
|
+
) /
|
|
66
|
+
2
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
.et-form-field-control-frame {
|
|
70
|
+
padding-block: 0;
|
|
71
|
+
padding-inline-end: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.et-textarea-native {
|
|
75
|
+
box-sizing: border-box;
|
|
76
|
+
padding-block: var(--_t-pad);
|
|
77
|
+
padding-inline-end: var(--et-form-field-control-padding-inline);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
textarea[data-et-textarea-autosize] {
|
|
81
|
+
min-block-size: calc(var(--et-textarea-min-rows, 1) * 1lh + 2 * var(--_t-pad));
|
|
82
|
+
max-block-size: calc(var(--et-textarea-max-block-size, 1000lh) + 2 * var(--_t-pad));
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&[data-label-mode='inline'] .et-form-field-label-area--inline {
|
|
86
|
+
margin-block: 0;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.t-scrolled & .et-form-field-control-slot {
|
|
90
|
+
overflow: clip;
|
|
91
|
+
max-block-size: calc(4 * var(--_t-line) + 2 * var(--_t-pad));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.t-scrolled & textarea[data-et-textarea-autosize] {
|
|
95
|
+
max-block-size: none;
|
|
96
|
+
translate: 0 calc(-2.5 * var(--_t-line) - var(--_t-pad));
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|