@ethlete/components 1.0.0-next.68 → 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 +55 -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 +1543 -352
- 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 +275 -36
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-select-panel {
|
|
3
|
+
.et-select-busy-bar {
|
|
4
|
+
position: absolute;
|
|
5
|
+
inset-block-start: 0;
|
|
6
|
+
inset-inline: 0;
|
|
7
|
+
block-size: 2px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 10%, transparent);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.et-select-busy-bar::after {
|
|
13
|
+
content: '';
|
|
14
|
+
display: block;
|
|
15
|
+
inline-size: 40%;
|
|
16
|
+
block-size: 100%;
|
|
17
|
+
border-radius: 999px;
|
|
18
|
+
background: var(--et-theme-color-primary-solid, currentColor);
|
|
19
|
+
animation: et-select-busy-sweep 1.1s ease-in-out infinite;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (prefers-reduced-motion: reduce) {
|
|
23
|
+
.et-select-busy-bar::after {
|
|
24
|
+
inline-size: 100%;
|
|
25
|
+
animation: none;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.et-select-state {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: 8px;
|
|
33
|
+
min-block-size: var(--et-select-option-height, 36px);
|
|
34
|
+
padding-inline: var(--et-select-option-padding-inline, 10px);
|
|
35
|
+
font-size: var(--et-select-option-font-size, 14px);
|
|
36
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
37
|
+
|
|
38
|
+
&.et-select-state--error {
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
/* the element carries the error color theme via etProvideColor */
|
|
41
|
+
color: var(--et-theme-color-ink-solid, rgb(248 113 113));
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.et-select-state-content {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
gap: 8px;
|
|
49
|
+
opacity: 0;
|
|
50
|
+
transition: opacity 120ms ease;
|
|
51
|
+
|
|
52
|
+
&.et-select-state-content--visible {
|
|
53
|
+
opacity: 1;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@media (prefers-reduced-motion: reduce) {
|
|
58
|
+
.et-select-state-content {
|
|
59
|
+
transition: none;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.et-select-load-more,
|
|
64
|
+
.et-select-add-new {
|
|
65
|
+
position: relative;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: var(--et-select-option-gap, 8px);
|
|
69
|
+
inline-size: 100%;
|
|
70
|
+
min-block-size: var(--et-select-option-height, 36px);
|
|
71
|
+
margin-block-start: 7px;
|
|
72
|
+
padding-inline: var(--et-select-option-padding-inline, 10px);
|
|
73
|
+
border: none;
|
|
74
|
+
border-radius: var(--et-select-option-border-radius, 6px);
|
|
75
|
+
background: transparent;
|
|
76
|
+
font: inherit;
|
|
77
|
+
font-size: var(--et-select-option-font-size, 14px);
|
|
78
|
+
text-align: start;
|
|
79
|
+
color: var(--et-theme-color-ink-solid, currentColor);
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
appearance: none;
|
|
82
|
+
transition: background 120ms ease;
|
|
83
|
+
|
|
84
|
+
&::before {
|
|
85
|
+
content: '';
|
|
86
|
+
position: absolute;
|
|
87
|
+
inset-inline: calc(var(--et-select-panel-padding, 6px) * -1);
|
|
88
|
+
inset-block-start: -4px;
|
|
89
|
+
block-size: 1px;
|
|
90
|
+
background: var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@media (hover: hover) {
|
|
94
|
+
&:not(:disabled):hover {
|
|
95
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, rgb(255 255 255)) 12%, transparent);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
&:not(:disabled):active {
|
|
100
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, rgb(255 255 255)) 20%, transparent);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&:disabled {
|
|
104
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
105
|
+
cursor: default;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&.et-select-load-more--loading {
|
|
109
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
110
|
+
cursor: default;
|
|
111
|
+
pointer-events: none;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.et-icon {
|
|
115
|
+
flex: none;
|
|
116
|
+
inline-size: 16px;
|
|
117
|
+
block-size: 16px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.et-select-load-more + .et-select-add-new {
|
|
122
|
+
margin-block-start: 2px;
|
|
123
|
+
|
|
124
|
+
&::before {
|
|
125
|
+
content: none;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.et-select-load-more-icon {
|
|
130
|
+
rotate: 180deg;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@keyframes et-select-busy-sweep {
|
|
135
|
+
from {
|
|
136
|
+
transform: translateX(-100%);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
to {
|
|
140
|
+
transform: translateX(250%);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-select-option-group-label-font-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 12px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
et-select-option-group {
|
|
9
|
+
display: block;
|
|
10
|
+
|
|
11
|
+
&[data-hidden] {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* separate groups with a hairline above all but the first *visible* one — search
|
|
16
|
+
filtering hides groups via [data-hidden], and a hidden group must neither draw a
|
|
17
|
+
divider nor count as the preceding sibling (hence ~ instead of +) */
|
|
18
|
+
&:where(:not([data-hidden])) ~ &:where(:not([data-hidden])) .et-select-option-group-label {
|
|
19
|
+
margin-block-start: 4px;
|
|
20
|
+
padding-block-start: 8px;
|
|
21
|
+
border-block-start: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.et-select-option-group-label {
|
|
25
|
+
padding: 6px 10px 2px;
|
|
26
|
+
font-size: var(--et-select-option-group-label-font-size);
|
|
27
|
+
font-weight: 600;
|
|
28
|
+
letter-spacing: 0.02em;
|
|
29
|
+
text-transform: uppercase;
|
|
30
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
31
|
+
-webkit-user-select: none;
|
|
32
|
+
user-select: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-select-option-height {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 36px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-select-option-padding-inline {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 10px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-select-option-gap {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 8px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-select-option-border-radius {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 6px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-select-option-font-size {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 14px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-select-option-check-size {
|
|
33
|
+
syntax: '<length>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 16px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.et-select-option {
|
|
39
|
+
&[data-filtered] {
|
|
40
|
+
display: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
gap: var(--et-select-option-gap);
|
|
46
|
+
min-block-size: var(--et-select-option-height);
|
|
47
|
+
padding-inline: var(--et-select-option-padding-inline);
|
|
48
|
+
border-radius: var(--et-select-option-border-radius);
|
|
49
|
+
font-size: var(--et-select-option-font-size);
|
|
50
|
+
cursor: pointer;
|
|
51
|
+
-webkit-user-select: none;
|
|
52
|
+
user-select: none;
|
|
53
|
+
-webkit-tap-highlight-color: transparent;
|
|
54
|
+
/* The intrinsic size must stay 0: it sizes the content box, so a row height here stacks on
|
|
55
|
+
top of a consumer's padding and the panel opens too tall. */
|
|
56
|
+
content-visibility: auto;
|
|
57
|
+
contain-intrinsic-block-size: auto 0;
|
|
58
|
+
transition:
|
|
59
|
+
background 120ms ease,
|
|
60
|
+
color 120ms ease,
|
|
61
|
+
opacity 120ms ease;
|
|
62
|
+
|
|
63
|
+
&:where([data-active][data-active-source='keyboard']) {
|
|
64
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, rgb(255 255 255)) 12%, transparent);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (hover: hover) {
|
|
68
|
+
&:where([data-active]:hover) {
|
|
69
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, rgb(255 255 255)) 12%, transparent);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:active {
|
|
74
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, rgb(255 255 255)) 20%, transparent);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:where([aria-disabled='true']) {
|
|
78
|
+
opacity: 0.4;
|
|
79
|
+
cursor: not-allowed;
|
|
80
|
+
|
|
81
|
+
&:active {
|
|
82
|
+
background: transparent;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.et-select-option-check {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
flex: none;
|
|
91
|
+
inline-size: var(--et-select-option-check-size);
|
|
92
|
+
block-size: var(--et-select-option-check-size);
|
|
93
|
+
color: var(--et-theme-color-primary-solid, currentColor);
|
|
94
|
+
/* hidden via opacity, NOT visibility — an explicit `visibility: visible` would punch
|
|
95
|
+
through the pane's positioning phase (`visibility: hidden`) and paint the check
|
|
96
|
+
before the panel itself becomes visible */
|
|
97
|
+
opacity: 0;
|
|
98
|
+
|
|
99
|
+
.et-icon {
|
|
100
|
+
inline-size: 100%;
|
|
101
|
+
block-size: 100%;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&:where([data-selected]) .et-select-option-check {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.et-select-option-label {
|
|
110
|
+
flex: 1;
|
|
111
|
+
overflow: hidden;
|
|
112
|
+
text-overflow: ellipsis;
|
|
113
|
+
white-space: nowrap;
|
|
114
|
+
min-inline-size: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&.et-select-create-option {
|
|
118
|
+
color: var(--et-theme-color-ink-solid, currentColor);
|
|
119
|
+
|
|
120
|
+
.et-select-option-check {
|
|
121
|
+
display: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.et-select-option-label {
|
|
125
|
+
display: flex;
|
|
126
|
+
align-items: center;
|
|
127
|
+
gap: var(--et-select-option-gap);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.et-select-create-option-icon {
|
|
131
|
+
flex: none;
|
|
132
|
+
inline-size: var(--et-select-option-check-size);
|
|
133
|
+
block-size: var(--et-select-option-check-size);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-select-panel-max-height {
|
|
3
|
+
syntax: '<length-percentage>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 40vh;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-select-panel-padding {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 6px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.et-overlay--select {
|
|
15
|
+
--et-floating-panel-enter-duration: 140ms;
|
|
16
|
+
--et-floating-panel-leave-duration: 100ms;
|
|
17
|
+
--et-floating-panel-distance: 0.3rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.et-select-panel {
|
|
21
|
+
/* the containing block for the busy bar, which is rendered inside the scroller but must stay
|
|
22
|
+
pinned to the panel's top edge while the options scroll under it */
|
|
23
|
+
position: relative;
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-rows: minmax(0, 1fr);
|
|
26
|
+
/* while resizing, the scroller's `overflow: clip` is no scroll container, so an `auto` track
|
|
27
|
+
would grow to a long option's min-content and push the panel out of the field-wide pane */
|
|
28
|
+
grid-template-columns: minmax(0, 1fr);
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
/* an anchored pane does not clip, so dropping the pane's own cap here lets a panel taller than
|
|
31
|
+
the room next to the field hang out of the pane and past the viewport edge */
|
|
32
|
+
max-block-size: min(var(--et-select-panel-max-height), var(--et-overlay-max-height, 100vh));
|
|
33
|
+
/* the host paints the chrome and clips; scrolling lives on the inner scroller — a
|
|
34
|
+
scroller's own background is dragged along by macOS rubber-band overscroll (it is
|
|
35
|
+
painted into the scrolling contents layer), which would expose the page behind the
|
|
36
|
+
panel while the border stays put */
|
|
37
|
+
overflow: hidden;
|
|
38
|
+
/* re-published as an inheriting alias: the registered token is `inherits: false`, so the
|
|
39
|
+
scroller below could not read a value a consumer sets on the panel element */
|
|
40
|
+
--_et-select-panel-padding: var(--et-select-panel-padding);
|
|
41
|
+
|
|
42
|
+
.et-select-panel-scroller {
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
overflow-y: auto;
|
|
45
|
+
overscroll-behavior: contain;
|
|
46
|
+
padding: var(--_et-select-panel-padding);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.et-select-panel--resizing .et-select-panel-scroller {
|
|
50
|
+
overflow: clip;
|
|
51
|
+
}
|
|
52
|
+
border-radius: 10px;
|
|
53
|
+
border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
54
|
+
background: var(--et-surface-background-solid, rgb(32 32 32));
|
|
55
|
+
color: var(--et-surface-color-solid, rgb(244 244 245));
|
|
56
|
+
/* base font size for panel content beyond the options themselves (custom search inputs
|
|
57
|
+
etc.) — the detached pane would otherwise inherit the root font size (10px here) */
|
|
58
|
+
font-size: var(--et-select-option-font-size, 14px);
|
|
59
|
+
box-shadow: var(--et-anchored-panel-shadow, 0 10px 24px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.16));
|
|
60
|
+
|
|
61
|
+
/* the listbox wraps only the options, and the extras wrapper only the state/action rows —
|
|
62
|
+
both are structural (ARIA grouping); `display: contents` keeps every child in the panel's
|
|
63
|
+
own flow, so the layout is identical to when they were flat panel children */
|
|
64
|
+
.et-select-listbox,
|
|
65
|
+
.et-select-panel-extras {
|
|
66
|
+
display: contents;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/* compact triggers (`mirrorPanelWidth={false}`): the pane is content-sized rather than pinned
|
|
71
|
+
to the field width, so the panel needs an upper bound to stop a long option from stretching
|
|
72
|
+
it across the viewport. When the panel *does* mirror the field, the pane width already sizes
|
|
73
|
+
it and no cap must apply — otherwise fields wider than 400px stop matching the panel. */
|
|
74
|
+
.et-overlay--select-content-width .et-select-panel {
|
|
75
|
+
max-inline-size: min(400px, calc(100vw - 24px));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.et-select-panel-search {
|
|
79
|
+
position: sticky;
|
|
80
|
+
inset-block-start: calc(var(--et-select-panel-padding, 6px) * -1);
|
|
81
|
+
margin-block-start: calc(var(--et-select-panel-padding, 6px) * -1);
|
|
82
|
+
margin-inline: calc(var(--et-select-panel-padding, 6px) * -1);
|
|
83
|
+
padding: var(--et-select-panel-padding, 6px);
|
|
84
|
+
background: var(--et-surface-background-solid, rgb(32 32 32));
|
|
85
|
+
z-index: 1;
|
|
86
|
+
|
|
87
|
+
input[etselectsearch] {
|
|
88
|
+
inline-size: 100%;
|
|
89
|
+
block-size: 36px;
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
padding-inline: 10px;
|
|
92
|
+
border-radius: 6px;
|
|
93
|
+
border: 1px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.1));
|
|
94
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, rgb(255 255 255)) 6%, transparent);
|
|
95
|
+
color: inherit;
|
|
96
|
+
font: inherit;
|
|
97
|
+
outline: none;
|
|
98
|
+
caret-color: var(--et-theme-color-primary-solid, currentColor);
|
|
99
|
+
transition:
|
|
100
|
+
border-color 120ms ease,
|
|
101
|
+
background 120ms ease;
|
|
102
|
+
|
|
103
|
+
&:focus-visible {
|
|
104
|
+
border-color: var(--et-theme-color-primary-solid, rgb(255 255 255 / 0.3));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&::placeholder {
|
|
108
|
+
color: var(--et-surface-color-muted-solid, rgb(255 255 255 / 0.55));
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
et-select {
|
|
3
|
+
--_et-select-trigger-busy-fade: 24px;
|
|
4
|
+
--_et-select-trigger-busy-cover: 16px;
|
|
5
|
+
--_et-select-trigger-busy-mask-direction: to right;
|
|
6
|
+
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
gap: 6px;
|
|
10
|
+
flex: 1;
|
|
11
|
+
min-inline-size: 0;
|
|
12
|
+
color: inherit;
|
|
13
|
+
|
|
14
|
+
.et-select-trigger {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: 6px;
|
|
18
|
+
flex: 1;
|
|
19
|
+
outline: none;
|
|
20
|
+
color: inherit;
|
|
21
|
+
min-inline-size: 0;
|
|
22
|
+
text-align: start;
|
|
23
|
+
cursor: pointer;
|
|
24
|
+
-webkit-user-select: none;
|
|
25
|
+
user-select: none;
|
|
26
|
+
touch-action: manipulation;
|
|
27
|
+
|
|
28
|
+
&[data-disabled] {
|
|
29
|
+
cursor: not-allowed;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[data-readonly] {
|
|
33
|
+
cursor: default;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.et-select-trigger-content {
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-wrap: wrap;
|
|
39
|
+
align-items: center;
|
|
40
|
+
gap: 6px;
|
|
41
|
+
flex: 1;
|
|
42
|
+
min-inline-size: 0;
|
|
43
|
+
|
|
44
|
+
&.et-select-trigger-content--stacked {
|
|
45
|
+
display: grid;
|
|
46
|
+
grid-template-columns: minmax(0, 1fr);
|
|
47
|
+
|
|
48
|
+
> * {
|
|
49
|
+
grid-area: 1 / 1;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:has(.et-select-value-custom) input[etselectsearch] {
|
|
53
|
+
caret-color: transparent;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
input[etselectsearch] {
|
|
59
|
+
flex: 1 1 60px;
|
|
60
|
+
min-inline-size: 60px;
|
|
61
|
+
border: none;
|
|
62
|
+
outline: none;
|
|
63
|
+
background: transparent;
|
|
64
|
+
font: inherit;
|
|
65
|
+
color: inherit;
|
|
66
|
+
padding: 0;
|
|
67
|
+
caret-color: var(--et-theme-color-primary-solid, currentColor);
|
|
68
|
+
cursor: text;
|
|
69
|
+
|
|
70
|
+
&::placeholder {
|
|
71
|
+
color: var(--et-surface-color-muted-solid, color-mix(in srgb, currentColor 46%, transparent));
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Before the disabled rule: a disabled input is :read-only too, and there
|
|
75
|
+
not-allowed must win. */
|
|
76
|
+
&:read-only {
|
|
77
|
+
cursor: default;
|
|
78
|
+
caret-color: transparent;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:disabled {
|
|
82
|
+
cursor: not-allowed;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&:has(input[etselectsearch]) .et-select-value {
|
|
87
|
+
flex: 0 1 auto;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.et-select-value {
|
|
92
|
+
flex: 1;
|
|
93
|
+
min-block-size: 1lh;
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
text-overflow: ellipsis;
|
|
96
|
+
white-space: nowrap;
|
|
97
|
+
min-inline-size: 0;
|
|
98
|
+
|
|
99
|
+
&[data-placeholder] {
|
|
100
|
+
color: var(--et-surface-color-muted-solid, color-mix(in srgb, currentColor 46%, transparent));
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
&[data-mixed] .et-select-value,
|
|
105
|
+
&[data-mixed] input[etselectsearch]:not(:focus) {
|
|
106
|
+
font-style: italic;
|
|
107
|
+
color: color-mix(in srgb, currentColor 72%, transparent);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.et-select-value-custom {
|
|
111
|
+
display: flex;
|
|
112
|
+
align-items: center;
|
|
113
|
+
flex: 1;
|
|
114
|
+
min-inline-size: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.et-select-trigger-content:has(input[etselectsearch]) .et-select-value-custom {
|
|
118
|
+
flex: 0 1 auto;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.et-select-trigger-content:has(.et-select-value-custom) input[etselectsearch]::placeholder {
|
|
122
|
+
color: transparent;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.et-select-chips {
|
|
126
|
+
display: contents;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.et-select-trigger-busy {
|
|
130
|
+
position: relative;
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
align-self: stretch;
|
|
134
|
+
flex: none;
|
|
135
|
+
padding-inline-start: var(--_et-select-trigger-busy-fade);
|
|
136
|
+
margin-inline-start: calc(
|
|
137
|
+
-1 * (var(--_et-select-trigger-busy-fade) + var(--_et-select-trigger-busy-cover) + 6px)
|
|
138
|
+
);
|
|
139
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&:dir(rtl) {
|
|
143
|
+
--_et-select-trigger-busy-mask-direction: to left;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.et-select-trigger:has(> .et-select-trigger-busy) .et-select-trigger-content {
|
|
147
|
+
mask-image: linear-gradient(
|
|
148
|
+
var(--_et-select-trigger-busy-mask-direction),
|
|
149
|
+
black calc(100% - var(--_et-select-trigger-busy-cover) - var(--_et-select-trigger-busy-fade)),
|
|
150
|
+
transparent calc(100% - var(--_et-select-trigger-busy-cover))
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.et-select-trigger-busy--enter {
|
|
155
|
+
animation: et-select-busy-in 120ms ease;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@media (prefers-reduced-motion: reduce) {
|
|
159
|
+
.et-select-trigger-busy--enter {
|
|
160
|
+
animation: none;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.et-form-field-control-frame:has(et-select) {
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/* outside the `et-select` block on purpose: the chevron renders in the form field's suffix slot,
|
|
170
|
+
which is not a descendant of the host. */
|
|
171
|
+
.et-select-arrow .et-icon {
|
|
172
|
+
rotate: 180deg;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@keyframes et-select-busy-in {
|
|
176
|
+
from {
|
|
177
|
+
opacity: 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|