@ethlete/components 1.0.0-next.69 → 1.0.0-next.70
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 +29 -0
- package/design/button.ts +57 -0
- package/design/form-field.ts +210 -0
- package/design/select.ts +110 -0
- package/fesm2022/ethlete-components-testing.mjs +3 -1
- package/fesm2022/ethlete-components-testing.mjs.map +1 -1
- package/fesm2022/ethlete-components.mjs +823 -105
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +20 -14
- package/src/lib/accordion/accordion-group.component.css +12 -0
- package/src/lib/accordion/accordion.component.css +185 -0
- package/src/lib/avatar/avatar-group.component.css +31 -0
- package/src/lib/avatar/avatar.component.css +75 -0
- package/src/lib/badge/badge.component.css +111 -0
- package/src/lib/banner/banner.component.css +94 -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-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 +102 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +10 -0
- package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
- package/src/lib/breadcrumb/breadcrumb.component.css +120 -0
- package/src/lib/button/button-properties-styles.component.css +143 -0
- package/src/lib/button/button.component.css +196 -0
- package/src/lib/button/fab.component.css +252 -0
- package/src/lib/button/icon-button.component.css +143 -0
- package/src/lib/button/split-button.component.css +77 -0
- package/src/lib/button/text-button.component.css +140 -0
- package/src/lib/button/window-control-button.component.css +158 -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 +366 -0
- package/src/lib/card/card.component.css +39 -0
- package/src/lib/carousel/carousel-autoplay-styles.component.css +166 -0
- package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
- package/src/lib/carousel/carousel.component.css +142 -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 +155 -0
- package/src/lib/command-palette/command-palette-item.component.css +94 -0
- package/src/lib/command-palette/command-palette.component.css +100 -0
- package/src/lib/description-list/description-list.component.css +77 -0
- package/src/lib/divider/divider.component.css +36 -0
- package/src/lib/empty-state/empty-state.component.css +73 -0
- package/src/lib/floating-action/floating-action-styles.component.css +78 -0
- package/src/lib/focus-ring/focus-ring-styles.component.css +13 -0
- package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
- package/src/lib/forms/cascader/cascader-panel.component.css +386 -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 +247 -0
- package/src/lib/forms/choice-field/choice-field-card-styles.component.css +59 -0
- package/src/lib/forms/choice-field/choice-field.component.css +186 -0
- package/src/lib/forms/color-input/color-input.component.css +108 -0
- package/src/lib/forms/color-input/color-picker-panel.component.css +349 -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/dropzone/dropzone-item.component.css +51 -0
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +67 -0
- package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
- package/src/lib/forms/dropzone/dropzone.component.css +267 -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 +116 -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 +66 -0
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +312 -0
- package/src/lib/forms/form-field/form-field-textarea-styles.component.css +32 -0
- package/src/lib/forms/form-field/form-field.component.css +328 -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 +20 -0
- package/src/lib/forms/input/input.component.css +49 -0
- package/src/lib/forms/input/number-input.component.css +128 -0
- package/src/lib/forms/input/password-input.component.css +103 -0
- package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
- package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +104 -0
- package/src/lib/forms/otp-input/otp-input.component.css +194 -0
- package/src/lib/forms/phone-input/phone-input.component.css +126 -0
- package/src/lib/forms/rating/rating.component.css +197 -0
- package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +90 -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 +199 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +175 -0
- package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
- package/src/lib/forms/select/select-all-option.component.css +14 -0
- package/src/lib/forms/select/select-extras-styles.component.css +143 -0
- package/src/lib/forms/select/select-option-group.component.css +35 -0
- package/src/lib/forms/select/select-option-styles.component.css +137 -0
- package/src/lib/forms/select/select-panel.component.css +112 -0
- package/src/lib/forms/select/select.component.css +180 -0
- package/src/lib/forms/selection-card-styles.component.css +136 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +89 -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 +153 -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 +137 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +149 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +180 -0
- package/src/lib/forms/slider/range-slider.component.css +348 -0
- package/src/lib/forms/slider/slider.component.css +342 -0
- package/src/lib/forms/switch/switch.component.css +187 -0
- package/src/lib/forms/tag-input/tag-input.component.css +54 -0
- package/src/lib/forms/textarea/textarea-autosize-styles.component.css +17 -0
- package/src/lib/forms/textarea/textarea.component.css +40 -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.component.css +172 -0
- package/src/lib/grid/grid.component.css +56 -0
- package/src/lib/icon/headless/icon-styles.component.css +7 -0
- package/src/lib/kbd/kbd.component.css +62 -0
- package/src/lib/loader/brand-loader/brand-loader.component.css +130 -0
- package/src/lib/loader/progress-bar/progress-bar.component.css +176 -0
- package/src/lib/loader/spinner/spinner.component.css +216 -0
- package/src/lib/masonry/masonry-styles.component.css +84 -0
- package/src/lib/match/match-card.component.css +441 -0
- package/src/lib/match/match-participant.component.css +137 -0
- package/src/lib/match/match-score.component.css +74 -0
- package/src/lib/menu/menu-group-label.component.css +12 -0
- package/src/lib/menu/menu-item-shortcut.component.css +10 -0
- package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
- package/src/lib/menu/menu-item.component.css +32 -0
- package/src/lib/menu/menu-search-styles.component.css +56 -0
- package/src/lib/menu/menu-selection-item.component.css +88 -0
- package/src/lib/menu/menu-separator.component.css +9 -0
- package/src/lib/menu/menu.component.css +296 -0
- package/src/lib/notification/notification-stack.component.css +114 -0
- package/src/lib/notification/notification.component.css +271 -0
- package/src/lib/overlay/alert-dialog/alert-dialog.component.css +45 -0
- package/src/lib/overlay/floating-panel-styles.component.css +71 -0
- package/src/lib/overlay/floating-tip-styles.component.css +78 -0
- package/src/lib/overlay/overlay-container.component.css +167 -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 +207 -0
- package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
- package/src/lib/overlay/sidebar/overlay-sidebar.component.css +16 -0
- package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +51 -0
- package/src/lib/overlay/strategies/dialog-styles.component.css +50 -0
- package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +83 -0
- package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
- package/src/lib/overlay/strategies/overlay-origin-clone.component.css +63 -0
- package/src/lib/overlay/strategies/sheet-styles.component.css +143 -0
- package/src/lib/pagination/page-size-select.component.css +102 -0
- package/src/lib/pagination/pagination.component.css +192 -0
- package/src/lib/picture/picture.component.css +66 -0
- package/src/lib/progress-steps/progress-step.component.css +187 -0
- package/src/lib/progress-steps/progress-steps.component.css +26 -0
- package/src/lib/query-error/query-error.component.css +21 -0
- package/src/lib/scheduler/scheduler-agenda-view.component.css +97 -0
- package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +56 -0
- package/src/lib/scheduler/scheduler-appointment-styles.component.css +111 -0
- package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
- package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
- package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
- package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
- package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
- package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
- package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
- package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
- package/src/lib/scheduler/scheduler-month-view.component.css +143 -0
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +260 -0
- package/src/lib/scheduler/scheduler.component.css +87 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +122 -0
- package/src/lib/scrollable/headless/scrollable-footer.css +25 -0
- package/src/lib/scrollable/headless/scrollable-masks.component.css +112 -0
- package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
- package/src/lib/scrollable/scrollable.component.css +192 -0
- package/src/lib/scrollbar/scrollbar.component.css +110 -0
- package/src/lib/skeleton/skeleton.component.css +108 -0
- package/src/lib/standings/standings-pick.component.css +172 -0
- package/src/lib/standings/standings.component.css +201 -0
- package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
- package/src/lib/stat-tile/stat-tile.component.css +111 -0
- package/src/lib/stream/pip/pip-chrome.component.css +96 -0
- package/src/lib/stream/pip/pip-player.component.css +40 -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 +43 -0
- package/src/lib/stream/stream-player-slot-styles.component.css +14 -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 +58 -0
- package/src/lib/table/table-filter-trigger.component.css +44 -0
- package/src/lib/table/table-group-header-row.component.css +38 -0
- package/src/lib/table/table-inline-edit-styles.component.css +20 -0
- package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
- package/src/lib/table/table-reorder-overlay.component.css +42 -0
- package/src/lib/table/table-resize-grip.component.css +65 -0
- package/src/lib/table/table-row-box-styles.component.css +260 -0
- package/src/lib/table/table-select-cell.component.css +89 -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 +829 -0
- package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +33 -0
- package/src/lib/tabs/tab-bar-styles.component.css +173 -0
- package/src/lib/tabs/tab-scale-styles.component.css +61 -0
- package/src/lib/time-picker/time-picker.component.css +220 -0
- package/src/lib/timeline/timeline-item.component.css +116 -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 +40 -0
- package/src/lib/tooltip/tooltip.component.css +64 -0
- package/src/lib/tree/tree.component.css +221 -0
- package/types/ethlete-components-testing.d.ts +1 -1
- package/types/ethlete-components.d.ts +172 -7
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-chip-gap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 4px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-chip-padding-inline {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-chip-min-block-size {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 24px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-chip-border-radius {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 999px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-chip-font-size {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 12px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-chip-remove-size {
|
|
33
|
+
syntax: '<length>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 16px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@property --et-chip-opacity-disabled {
|
|
39
|
+
syntax: '<number>';
|
|
40
|
+
inherits: true;
|
|
41
|
+
initial-value: 0.4;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.et-chip {
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
gap: var(--et-chip-gap);
|
|
48
|
+
padding-inline: var(--et-chip-padding-inline);
|
|
49
|
+
min-block-size: var(--et-chip-min-block-size);
|
|
50
|
+
border-radius: var(--et-chip-border-radius);
|
|
51
|
+
font-size: var(--et-chip-font-size);
|
|
52
|
+
line-height: 1.4;
|
|
53
|
+
max-inline-size: 100%;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 14%, transparent);
|
|
56
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
57
|
+
-webkit-user-select: none;
|
|
58
|
+
user-select: none;
|
|
59
|
+
-webkit-tap-highlight-color: transparent;
|
|
60
|
+
|
|
61
|
+
&:where([data-disabled]) {
|
|
62
|
+
opacity: var(--et-chip-opacity-disabled);
|
|
63
|
+
pointer-events: none;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* filter-chip composition: `etSelectionOption` on the chip contributes the
|
|
67
|
+
role/aria-checked/tabindex — these states make the chip read as selectable.
|
|
68
|
+
Selected uses the tonal color mechanic (see button), so the fill follows the
|
|
69
|
+
nearest color theme. */
|
|
70
|
+
&:where([role='checkbox'], [role='radio']) {
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
transition:
|
|
73
|
+
background 120ms ease,
|
|
74
|
+
color 120ms ease;
|
|
75
|
+
|
|
76
|
+
@media (hover: hover) {
|
|
77
|
+
&:hover:not([aria-checked='true']):not([data-readonly]) {
|
|
78
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 22%, transparent);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
&:focus-visible {
|
|
83
|
+
outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
|
|
84
|
+
outline-offset: 1px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:where([data-readonly]) {
|
|
88
|
+
cursor: default;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* tonal fill via color-mix over the solid token — the opacity-aware
|
|
93
|
+
--et-theme-color-primary mechanic needs per-element token re-resolution
|
|
94
|
+
([etColorInteractive]), which a plain chip does not carry */
|
|
95
|
+
&:where([aria-checked='true']) {
|
|
96
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid, currentColor) 16%, transparent);
|
|
97
|
+
color: var(--et-theme-color-ink-solid, currentColor);
|
|
98
|
+
|
|
99
|
+
@media (hover: hover) {
|
|
100
|
+
&:hover:not([data-readonly]) {
|
|
101
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid, currentColor) 24%, transparent);
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:where([data-removable]) {
|
|
107
|
+
padding-inline-end: calc(var(--et-chip-padding-inline) / 2);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.et-chip-label {
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
min-inline-size: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.et-chip-remove-button {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
flex: none;
|
|
122
|
+
inline-size: var(--et-chip-remove-size);
|
|
123
|
+
block-size: var(--et-chip-remove-size);
|
|
124
|
+
border-radius: 50%;
|
|
125
|
+
border: none;
|
|
126
|
+
padding: 0;
|
|
127
|
+
margin: 0;
|
|
128
|
+
background: transparent;
|
|
129
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
130
|
+
cursor: pointer;
|
|
131
|
+
appearance: none;
|
|
132
|
+
|
|
133
|
+
@media (hover: hover) {
|
|
134
|
+
&:hover {
|
|
135
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 20%, transparent);
|
|
136
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&:active {
|
|
141
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, currentColor) 28%, transparent);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
&:focus-visible {
|
|
145
|
+
outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
|
|
146
|
+
outline-offset: 1px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.et-icon {
|
|
150
|
+
inline-size: calc(var(--et-chip-remove-size) - 6px);
|
|
151
|
+
block-size: calc(var(--et-chip-remove-size) - 6px);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-command-palette-item-height {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 40px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-command-palette-item-padding-inline {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-command-palette-item-gap {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 10px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-command-palette-item-border-radius {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 6px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-command-palette-item-icon-size {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 16px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.et-command-palette-item {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
gap: var(--et-command-palette-item-gap);
|
|
36
|
+
min-block-size: var(--et-command-palette-item-height);
|
|
37
|
+
padding-inline: var(--et-command-palette-item-padding-inline);
|
|
38
|
+
border-radius: var(--et-command-palette-item-border-radius);
|
|
39
|
+
cursor: pointer;
|
|
40
|
+
|
|
41
|
+
/* Marks the row the arrow keys reached. Not `:hover`: the pointer and the keyboard drive one
|
|
42
|
+
highlight, and the component decides which row that is. */
|
|
43
|
+
&.et-command-palette-item--active {
|
|
44
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, rgb(255 255 255)) 12%, transparent);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:where([aria-disabled='true']) {
|
|
48
|
+
cursor: default;
|
|
49
|
+
opacity: 0.5;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.et-command-palette-item-icon {
|
|
54
|
+
flex: none;
|
|
55
|
+
inline-size: var(--et-command-palette-item-icon-size);
|
|
56
|
+
block-size: var(--et-command-palette-item-icon-size);
|
|
57
|
+
color: var(--et-surface-color-muted-solid, rgb(255 255 255 / 0.55));
|
|
58
|
+
|
|
59
|
+
svg {
|
|
60
|
+
inline-size: 100%;
|
|
61
|
+
block-size: 100%;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.et-command-palette-item-text {
|
|
66
|
+
display: grid;
|
|
67
|
+
flex: 1;
|
|
68
|
+
min-inline-size: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.et-command-palette-item-label,
|
|
72
|
+
.et-command-palette-item-description {
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
text-overflow: ellipsis;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.et-command-palette-item-description {
|
|
79
|
+
color: var(--et-surface-color-muted-solid, rgb(255 255 255 / 0.55));
|
|
80
|
+
font-size: 12px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* A `mark` carries a yellow background by default, which is not how a match should read here. */
|
|
84
|
+
.et-command-palette-item-match {
|
|
85
|
+
background: none;
|
|
86
|
+
color: var(--et-theme-color-ink-solid, currentcolor);
|
|
87
|
+
font-weight: 600;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.et-command-palette-item-shortcut {
|
|
91
|
+
flex: none;
|
|
92
|
+
color: var(--et-surface-color-muted-solid, rgb(255 255 255 / 0.55));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-command-palette-max-height {
|
|
3
|
+
syntax: '<length-percentage>';
|
|
4
|
+
inherits: false;
|
|
5
|
+
initial-value: 60vh;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-command-palette-padding {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: false;
|
|
11
|
+
initial-value: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-command-palette-search-height {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: false;
|
|
17
|
+
initial-value: 48px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-command-palette-search-font-size {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: false;
|
|
23
|
+
initial-value: 15px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-command-palette-item-font-size {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 14px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.et-command-palette {
|
|
33
|
+
--_et-command-palette-color: var(--et-surface-color-solid, rgb(244 244 245));
|
|
34
|
+
--_et-command-palette-muted-color: var(--et-surface-color-muted-solid, rgb(255 255 255 / 0.55));
|
|
35
|
+
--_et-command-palette-border: var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
36
|
+
display: grid;
|
|
37
|
+
grid-template-rows: auto minmax(0, 1fr);
|
|
38
|
+
max-block-size: var(--et-command-palette-max-height);
|
|
39
|
+
color: var(--_et-command-palette-color);
|
|
40
|
+
font-size: var(--et-command-palette-item-font-size);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.et-command-palette-search-field {
|
|
44
|
+
display: flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
border-block-end: 1px solid var(--_et-command-palette-border);
|
|
47
|
+
|
|
48
|
+
input {
|
|
49
|
+
flex: 1;
|
|
50
|
+
min-inline-size: 0;
|
|
51
|
+
block-size: var(--et-command-palette-search-height);
|
|
52
|
+
padding-inline: 16px;
|
|
53
|
+
border: none;
|
|
54
|
+
background: none;
|
|
55
|
+
color: inherit;
|
|
56
|
+
font: inherit;
|
|
57
|
+
font-size: var(--et-command-palette-search-font-size);
|
|
58
|
+
|
|
59
|
+
/* The dialog is the focus indicator here; a ring around a full-width field inside it reads as noise. */
|
|
60
|
+
&:focus-visible {
|
|
61
|
+
outline: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&::placeholder {
|
|
65
|
+
color: var(--_et-command-palette-muted-color);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.et-command-palette-list {
|
|
71
|
+
overflow-y: auto;
|
|
72
|
+
overscroll-behavior: contain;
|
|
73
|
+
padding: var(--et-command-palette-padding);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.et-command-palette-group-label {
|
|
77
|
+
margin: 0;
|
|
78
|
+
padding-block: 8px 4px;
|
|
79
|
+
padding-inline: var(--et-command-palette-item-padding-inline);
|
|
80
|
+
color: var(--_et-command-palette-muted-color);
|
|
81
|
+
font-size: 12px;
|
|
82
|
+
font-weight: 600;
|
|
83
|
+
letter-spacing: 0.02em;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.et-command-palette-empty {
|
|
87
|
+
margin: 0;
|
|
88
|
+
padding-block: 24px;
|
|
89
|
+
color: var(--_et-command-palette-muted-color);
|
|
90
|
+
text-align: center;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Held near the top of the viewport rather than centered: the list grows downwards as the reader
|
|
94
|
+
types, and a centered panel would shift the row under the pointer on every keystroke. */
|
|
95
|
+
.et-overlay.et-command-palette-panel {
|
|
96
|
+
align-self: start;
|
|
97
|
+
margin-block-start: 12vh;
|
|
98
|
+
padding: 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-description-list-row-gap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 8px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-description-list-column-gap {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: false;
|
|
11
|
+
initial-value: 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-description-list-stacked-term-gap {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 2px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-description-list-term-min-width {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: false;
|
|
23
|
+
initial-value: 120px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-description-list-term-font-size {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 14px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-description-list-detail-font-size {
|
|
33
|
+
syntax: '<length>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 14px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.et-description-list {
|
|
39
|
+
display: grid;
|
|
40
|
+
grid-template-columns: minmax(var(--et-description-list-term-min-width), max-content) 1fr;
|
|
41
|
+
row-gap: var(--et-description-list-row-gap);
|
|
42
|
+
column-gap: var(--et-description-list-column-gap);
|
|
43
|
+
margin: 0;
|
|
44
|
+
|
|
45
|
+
> div {
|
|
46
|
+
display: contents;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
dt {
|
|
50
|
+
grid-column: 1;
|
|
51
|
+
font-size: var(--et-description-list-term-font-size);
|
|
52
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
dd {
|
|
56
|
+
grid-column: 2;
|
|
57
|
+
margin: 0;
|
|
58
|
+
font-size: var(--et-description-list-detail-font-size);
|
|
59
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:where([data-variant='stacked']) {
|
|
63
|
+
grid-template-columns: 1fr;
|
|
64
|
+
row-gap: var(--et-description-list-stacked-term-gap);
|
|
65
|
+
|
|
66
|
+
dt,
|
|
67
|
+
dd {
|
|
68
|
+
grid-column: 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
:is(dd, div) + dt,
|
|
72
|
+
:is(dd, div) + div > dt:first-child {
|
|
73
|
+
margin-block-start: max(0px, var(--et-description-list-row-gap) - var(--et-description-list-stacked-term-gap));
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-divider-thickness {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 1px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-divider-spacing {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-divider-inset {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 0px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.et-divider {
|
|
21
|
+
display: block;
|
|
22
|
+
flex: none;
|
|
23
|
+
background: var(--et-divider-color, var(--et-surface-border-solid, rgb(255 255 255 / 0.1)));
|
|
24
|
+
block-size: var(--et-divider-thickness);
|
|
25
|
+
margin-block: var(--et-divider-spacing);
|
|
26
|
+
margin-inline: var(--et-divider-inset);
|
|
27
|
+
|
|
28
|
+
&:where([data-orientation='vertical']) {
|
|
29
|
+
align-self: stretch;
|
|
30
|
+
block-size: auto;
|
|
31
|
+
inline-size: var(--et-divider-thickness);
|
|
32
|
+
margin-block: var(--et-divider-inset);
|
|
33
|
+
margin-inline: var(--et-divider-spacing);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-empty-state-padding {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 32px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-empty-state-gap {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-empty-state-icon-size {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 32px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-empty-state-max-inline-size {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 320px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-empty-state-title-font-size {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 14px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-empty-state-description-font-size {
|
|
33
|
+
syntax: '<length>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 13px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.et-empty-state {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: center;
|
|
42
|
+
box-sizing: border-box;
|
|
43
|
+
gap: var(--et-empty-state-gap);
|
|
44
|
+
padding: var(--et-empty-state-padding);
|
|
45
|
+
max-inline-size: var(--et-empty-state-max-inline-size);
|
|
46
|
+
margin-inline: auto;
|
|
47
|
+
text-align: center;
|
|
48
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
49
|
+
|
|
50
|
+
> .et-icon {
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
width: var(--et-empty-state-icon-size);
|
|
53
|
+
height: var(--et-empty-state-icon-size);
|
|
54
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
> [etEmptyStateAction] {
|
|
58
|
+
margin-block-start: var(--et-empty-state-gap);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.et-empty-state-title {
|
|
63
|
+
margin: 0;
|
|
64
|
+
font-size: var(--et-empty-state-title-font-size);
|
|
65
|
+
font-weight: 600;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.et-empty-state-description {
|
|
69
|
+
margin: 0;
|
|
70
|
+
font-size: var(--et-empty-state-description-font-size);
|
|
71
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-floating-action-inset-inline-end {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 24px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-floating-action-inset-block-end {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 24px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-floating-action-z-index {
|
|
15
|
+
syntax: '<number>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 10;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-floating-action-duration {
|
|
21
|
+
syntax: '<time>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 200ms;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.et-floating-action {
|
|
27
|
+
display: block;
|
|
28
|
+
|
|
29
|
+
/* The trigger is the same element throughout — inline, floating, gone — so the tab order never changes and
|
|
30
|
+
assistive technology never sees a button appear or disappear. Only its position does. */
|
|
31
|
+
.et-floating-action-trigger:where([data-floating-action-state='floating'], [data-floating-action-state='hidden']) {
|
|
32
|
+
position: fixed;
|
|
33
|
+
inset-inline-end: var(--et-floating-action-inset-inline-end);
|
|
34
|
+
/* Plus the home-bar inset on a phone, when there is one, and whatever a surface above the page has
|
|
35
|
+
reserved on that edge - a docked devtools panel - so the button never sits under either. */
|
|
36
|
+
inset-block-end: calc(
|
|
37
|
+
var(--et-floating-action-inset-block-end) + env(safe-area-inset-bottom, 0px) +
|
|
38
|
+
var(--et-viewport-inset-bottom, 0px)
|
|
39
|
+
);
|
|
40
|
+
z-index: var(--et-floating-action-z-index);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.et-floating-action-trigger:where([data-floating-action-state='hidden']) {
|
|
44
|
+
scale: 0;
|
|
45
|
+
/* Not merely invisible: a zero-scale button is still focusable, so tabbing would land on something the
|
|
46
|
+
reader cannot see. */
|
|
47
|
+
visibility: hidden;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
52
|
+
.et-floating-action {
|
|
53
|
+
/* Scaling *in* is a keyframe rather than a transition: the first time the trigger detaches there is no
|
|
54
|
+
previous scale to animate from. */
|
|
55
|
+
.et-floating-action-trigger:where([data-floating-action-state='floating']) {
|
|
56
|
+
animation: et-floating-action-in var(--et-floating-action-duration) var(--ease-3, ease-out);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/* Out is a transition, and `visibility` is held back to the end of it so the scale-out stays watchable
|
|
60
|
+
while the button still becomes properly unfocusable afterwards. */
|
|
61
|
+
.et-floating-action-trigger:where([data-floating-action-state='hidden']) {
|
|
62
|
+
transition:
|
|
63
|
+
scale var(--et-floating-action-duration) var(--ease-3, ease-out),
|
|
64
|
+
visibility 0s linear var(--et-floating-action-duration);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes et-floating-action-in {
|
|
69
|
+
from {
|
|
70
|
+
scale: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
to {
|
|
74
|
+
scale: 1;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-focus-ring {
|
|
3
|
+
--_et-focus-ring-offset: 3px;
|
|
4
|
+
--_et-focus-ring-width: 2px;
|
|
5
|
+
--_et-focus-ring-color: var(--et-theme-color-primary-solid, currentColor);
|
|
6
|
+
outline: var(--_et-focus-ring-width) solid transparent;
|
|
7
|
+
outline-offset: var(--_et-focus-ring-offset);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.et-focus-ring:focus-visible {
|
|
11
|
+
outline-color: var(--_et-focus-ring-color);
|
|
12
|
+
}
|
|
13
|
+
}
|