@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,187 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-progress-step-marker-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 24px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-progress-step-label-font-size {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 14px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-progress-step-description-font-size {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 12px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.et-progress-step {
|
|
21
|
+
position: relative;
|
|
22
|
+
display: flex;
|
|
23
|
+
flex: 1;
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: 8px;
|
|
27
|
+
min-inline-size: 0;
|
|
28
|
+
/* Purely CSS: each step increments the group's counter, so the marker's number never has to be
|
|
29
|
+
passed in or computed from a self-registered index. */
|
|
30
|
+
counter-increment: et-progress-step;
|
|
31
|
+
|
|
32
|
+
&:not(:last-child)::after {
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
inset-block-start: calc(var(--et-progress-step-marker-size) / 2 - 1px);
|
|
36
|
+
inset-inline-start: 50%;
|
|
37
|
+
/* +gap: the connector spans from this marker's center to the next one's, and steps sit
|
|
38
|
+
`--et-progress-steps-gap` apart - without it the line falls short by exactly that gap. */
|
|
39
|
+
inline-size: calc(100% + var(--et-progress-steps-gap, 8px));
|
|
40
|
+
block-size: 2px;
|
|
41
|
+
background: var(--et-surface-border-solid, currentColor);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/* Every resolved state fills its connector. The color comes from the step's own forced theme, so
|
|
45
|
+
a failed step's segment is red with no per-state rule here. */
|
|
46
|
+
&:is([data-state='complete'], [data-state='success'], [data-state='warning'], [data-state='error']):not(
|
|
47
|
+
:last-child
|
|
48
|
+
)::after {
|
|
49
|
+
background: var(--et-theme-color-primary-solid, currentColor);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.et-progress-step-marker {
|
|
53
|
+
position: relative;
|
|
54
|
+
z-index: 1;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
inline-size: var(--et-progress-step-marker-size);
|
|
59
|
+
block-size: var(--et-progress-step-marker-size);
|
|
60
|
+
border-radius: 50%;
|
|
61
|
+
border: 2px solid var(--et-surface-border-solid, currentColor);
|
|
62
|
+
background: var(--et-surface-background-solid, Canvas);
|
|
63
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
64
|
+
font-size: calc(var(--et-progress-step-marker-size) * 0.5);
|
|
65
|
+
/* Without this the number's line box inherits the page's line-height (~1.5), and flex
|
|
66
|
+
centers that whole box rather than the glyph inside it - the digit then sits visibly
|
|
67
|
+
above center, since a line box's extra leading isn't split evenly around the glyph. */
|
|
68
|
+
line-height: 1;
|
|
69
|
+
|
|
70
|
+
/* The icon's own SVG is `width/height: 100%` (fills its box) with no intrinsic size of its
|
|
71
|
+
own, so left unset it stretches to whatever the flex layout gives it - explicitly sizing
|
|
72
|
+
it to `1em` is what keeps it square and proportioned to the marker, same as
|
|
73
|
+
`.et-button-icon .et-icon` in button.component.css. */
|
|
74
|
+
.et-icon {
|
|
75
|
+
inline-size: 1em;
|
|
76
|
+
block-size: 1em;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&[data-state='current'] .et-progress-step-marker {
|
|
81
|
+
border-color: var(--et-theme-color-primary-solid, currentColor);
|
|
82
|
+
color: var(--et-theme-color-ink-solid, currentColor);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:is([data-state='complete'], [data-state='success'], [data-state='warning'], [data-state='error'])
|
|
86
|
+
.et-progress-step-marker {
|
|
87
|
+
border-color: var(--et-theme-color-primary-solid, currentColor);
|
|
88
|
+
background: var(--et-theme-color-primary-solid, currentColor);
|
|
89
|
+
color: var(--et-theme-color-on-primary-solid, white);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.et-progress-step-marker-number::before {
|
|
93
|
+
content: counter(et-progress-step);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Keep the label's font-size on this element, not on the label: the vertical orientation's
|
|
97
|
+
optical centering below measures `1lh` here, and inheriting the page's size instead would
|
|
98
|
+
leave the label sitting off-center against its marker. */
|
|
99
|
+
.et-progress-step-text {
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
gap: 2px;
|
|
103
|
+
min-inline-size: 0;
|
|
104
|
+
font-size: var(--et-progress-step-label-font-size);
|
|
105
|
+
text-align: center;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.et-progress-step-label {
|
|
109
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
[etProgressStepDescription] {
|
|
113
|
+
margin: 0;
|
|
114
|
+
font-size: var(--et-progress-step-description-font-size);
|
|
115
|
+
color: var(--et-surface-color-muted-solid, currentColor);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&[data-state='current'] .et-progress-step-label {
|
|
119
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
120
|
+
font-weight: 600;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:is([data-state='success'], [data-state='warning'], [data-state='error']) .et-progress-step-label {
|
|
124
|
+
color: var(--et-theme-color-ink-solid, currentColor);
|
|
125
|
+
font-weight: 600;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* --- Vertical --- */
|
|
129
|
+
|
|
130
|
+
/* The connector is purpose-built rather than rotated: horizontally it spans marker-center to
|
|
131
|
+
marker-center across the gap, vertically it hangs from below the marker down to the next one,
|
|
132
|
+
and the step turns into a row with the label beside the marker instead of under it. */
|
|
133
|
+
.et-progress-steps[data-orientation='vertical'] & {
|
|
134
|
+
flex: none;
|
|
135
|
+
flex-direction: row;
|
|
136
|
+
align-items: flex-start;
|
|
137
|
+
|
|
138
|
+
&:not(:last-child)::after {
|
|
139
|
+
inset-block-start: var(--et-progress-step-marker-size);
|
|
140
|
+
inset-inline-start: calc(var(--et-progress-step-marker-size) / 2 - 1px);
|
|
141
|
+
inline-size: 2px;
|
|
142
|
+
block-size: calc(100% - var(--et-progress-step-marker-size) + var(--et-progress-steps-gap, 8px));
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.et-progress-step-text {
|
|
146
|
+
text-align: start;
|
|
147
|
+
/* Optically centered against the marker rather than its box: the label's own line box is
|
|
148
|
+
shorter than the marker, so aligning the boxes would leave the text sitting high. */
|
|
149
|
+
padding-block-start: calc((var(--et-progress-step-marker-size) - 1lh) / 2);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* --- Interactive --- */
|
|
154
|
+
|
|
155
|
+
/* A step is a link or a button when the consumer writes it as one (`<a et-progress-step>`), the
|
|
156
|
+
same way the button family works - so `routerLink` and everything else on their element keeps
|
|
157
|
+
working, and the whole step is the target. */
|
|
158
|
+
&:is(a, button) {
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
text-decoration: none;
|
|
161
|
+
color: inherit;
|
|
162
|
+
font: inherit;
|
|
163
|
+
background: none;
|
|
164
|
+
border: none;
|
|
165
|
+
padding: 0;
|
|
166
|
+
appearance: none;
|
|
167
|
+
-webkit-tap-highlight-color: transparent;
|
|
168
|
+
|
|
169
|
+
@media (hover: hover) {
|
|
170
|
+
&:hover {
|
|
171
|
+
.et-progress-step-marker {
|
|
172
|
+
border-color: var(--et-theme-color-primary-solid, currentColor);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.et-progress-step-label {
|
|
176
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&:is([disabled], [aria-disabled='true']) {
|
|
182
|
+
cursor: not-allowed;
|
|
183
|
+
pointer-events: none;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-progress-steps-gap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
/* Inherited so each step's connector (progress-step.component.css) can span the gap too - a
|
|
5
|
+
step doesn't otherwise know the row's own gap. */
|
|
6
|
+
inherits: true;
|
|
7
|
+
initial-value: 8px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.et-progress-steps {
|
|
11
|
+
display: flex;
|
|
12
|
+
gap: var(--et-progress-steps-gap);
|
|
13
|
+
/* Numbers the projected .et-progress-steps, in DOM order, purely in CSS - see the marker's
|
|
14
|
+
counter() in progress-step.component.css. */
|
|
15
|
+
counter-reset: et-progress-step;
|
|
16
|
+
|
|
17
|
+
&:where([data-orientation='vertical']) {
|
|
18
|
+
/* A row's gap is horizontal breathing room between labels; a column's is the length of the
|
|
19
|
+
connector between two markers, and 8px reads as a dash rather than a line. */
|
|
20
|
+
--et-progress-steps-gap: 20px;
|
|
21
|
+
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
align-items: stretch;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-query-error-host {
|
|
3
|
+
display: block;
|
|
4
|
+
|
|
5
|
+
.et-query-error-list {
|
|
6
|
+
padding-inline-start: 1.5em;
|
|
7
|
+
|
|
8
|
+
.et-query-error-list-item {
|
|
9
|
+
/* Violation lists are read item by item, so they need a little air between them. */
|
|
10
|
+
margin-block: 0.15em;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.et-query-error-actions {
|
|
15
|
+
display: flex;
|
|
16
|
+
flex-wrap: wrap;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-scheduler-agenda-view {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: 12px;
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.et-scheduler-agenda-view-month {
|
|
10
|
+
margin: 8px 0 0;
|
|
11
|
+
font-size: 14px;
|
|
12
|
+
font-weight: 600;
|
|
13
|
+
color: var(--et-surface-color-solid);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.et-scheduler-agenda-view-day {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: 4px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.et-scheduler-agenda-view-day-header {
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
gap: 8px;
|
|
26
|
+
padding-block-end: 4px;
|
|
27
|
+
border-block-end: 1px solid var(--et-surface-border-solid);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.et-scheduler-agenda-view-day-weekday {
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
font-weight: 600;
|
|
33
|
+
color: var(--et-surface-color-muted-solid);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.et-scheduler-agenda-view-day-date {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
inline-size: 22px;
|
|
41
|
+
block-size: 22px;
|
|
42
|
+
border-radius: 999px;
|
|
43
|
+
font-size: 13px;
|
|
44
|
+
font-variant-numeric: tabular-nums;
|
|
45
|
+
color: var(--et-surface-color-solid);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.et-scheduler-agenda-view-day-header:where([data-today]) .et-scheduler-agenda-view-day-date {
|
|
49
|
+
background: var(--et-theme-color-primary-solid);
|
|
50
|
+
color: var(--et-theme-color-on-primary);
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.et-scheduler-agenda-view-day-appointments {
|
|
55
|
+
display: flex;
|
|
56
|
+
flex-direction: column;
|
|
57
|
+
gap: 2px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.et-scheduler-agenda-view-appointment {
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: stretch;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.et-scheduler-agenda-view-appointment .et-scheduler-appointment {
|
|
66
|
+
flex: 1;
|
|
67
|
+
min-inline-size: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.et-scheduler-agenda-view-guide {
|
|
71
|
+
position: relative;
|
|
72
|
+
flex: none;
|
|
73
|
+
inline-size: 14px;
|
|
74
|
+
|
|
75
|
+
&:where([data-guide='trunk'], [data-guide='branch'], [data-guide='last-branch'])::before {
|
|
76
|
+
content: '';
|
|
77
|
+
position: absolute;
|
|
78
|
+
inset-block: -1px;
|
|
79
|
+
inset-inline-start: 50%;
|
|
80
|
+
inline-size: 1px;
|
|
81
|
+
background: var(--et-surface-border-solid, currentColor);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:where([data-guide='last-branch'])::before {
|
|
85
|
+
inset-block: -1px 50%;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&:where([data-guide='branch'], [data-guide='last-branch'])::after {
|
|
89
|
+
content: '';
|
|
90
|
+
position: absolute;
|
|
91
|
+
inset-block-start: 50%;
|
|
92
|
+
inset-inline: 50% 0;
|
|
93
|
+
block-size: 1px;
|
|
94
|
+
background: var(--et-surface-border-solid, currentColor);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-scheduler-time-grid-all-day-resize {
|
|
3
|
+
position: absolute;
|
|
4
|
+
inset-block: 0;
|
|
5
|
+
inline-size: min(8px, 25%);
|
|
6
|
+
cursor: ew-resize;
|
|
7
|
+
|
|
8
|
+
&:where([data-edge='start']) {
|
|
9
|
+
inset-inline-start: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&:where([data-edge='end']) {
|
|
13
|
+
inset-inline-end: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@media (any-pointer: coarse) {
|
|
17
|
+
inline-size: min(14px, 25%);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Bare attribute selector, not `:where()` - this sheet and the base rule's mount in different
|
|
22
|
+
order depending on which view renders first, so the tie has to be won on specificity. */
|
|
23
|
+
.et-scheduler-time-grid-block[data-draggable] {
|
|
24
|
+
cursor: grab;
|
|
25
|
+
|
|
26
|
+
/* a move arms on a long press, which is also what raises iOS' selection callout */
|
|
27
|
+
-webkit-touch-callout: none;
|
|
28
|
+
-webkit-user-select: none;
|
|
29
|
+
user-select: none;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.et-scheduler-time-grid-block[data-dragging] {
|
|
33
|
+
z-index: 1;
|
|
34
|
+
box-shadow: var(--et-scheduler-appointment-drag-shadow, 0 2px 8px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.25));
|
|
35
|
+
cursor: grabbing;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.et-scheduler-time-grid-block-resize {
|
|
39
|
+
position: absolute;
|
|
40
|
+
inset-inline: 0;
|
|
41
|
+
block-size: min(8px, 25%);
|
|
42
|
+
cursor: ns-resize;
|
|
43
|
+
|
|
44
|
+
&:where([data-edge='start']) {
|
|
45
|
+
inset-block-start: 0;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-edge='end']) {
|
|
49
|
+
inset-block-end: 0;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (any-pointer: coarse) {
|
|
53
|
+
block-size: min(14px, 25%);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-scheduler-appointment {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 6px;
|
|
6
|
+
padding: 2px 6px;
|
|
7
|
+
border: none;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid) 14%, transparent);
|
|
10
|
+
color: var(--et-theme-color-ink-solid);
|
|
11
|
+
font: inherit;
|
|
12
|
+
font-size: 12px;
|
|
13
|
+
text-align: start;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
touch-action: manipulation;
|
|
16
|
+
-webkit-tap-highlight-color: transparent;
|
|
17
|
+
|
|
18
|
+
@media (hover: hover) {
|
|
19
|
+
&:hover {
|
|
20
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid) 22%, transparent);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:focus-visible {
|
|
25
|
+
outline: 2px solid var(--et-theme-color-primary-solid);
|
|
26
|
+
outline-offset: 1px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:where([data-selected]) {
|
|
30
|
+
background: var(--et-theme-color-primary-solid);
|
|
31
|
+
color: var(--et-theme-color-on-primary);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:where([data-draggable]) {
|
|
35
|
+
cursor: grab;
|
|
36
|
+
|
|
37
|
+
/* a move arms on a long press, which is also what raises iOS' selection callout */
|
|
38
|
+
-webkit-touch-callout: none;
|
|
39
|
+
-webkit-user-select: none;
|
|
40
|
+
user-select: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:where([data-dragging]) {
|
|
44
|
+
box-shadow: var(--et-scheduler-appointment-drag-shadow, 0 2px 8px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.25));
|
|
45
|
+
cursor: grabbing;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.et-scheduler-appointment-title {
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
min-inline-size: 0;
|
|
53
|
+
flex: 1;
|
|
54
|
+
text-overflow: ellipsis;
|
|
55
|
+
white-space: nowrap;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.et-scheduler-appointment-dot {
|
|
59
|
+
flex-shrink: 0;
|
|
60
|
+
inline-size: 6px;
|
|
61
|
+
block-size: 6px;
|
|
62
|
+
border-radius: 999px;
|
|
63
|
+
background: var(--et-theme-color-primary-solid);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where(.et-scheduler-appointment, .et-scheduler-time-grid-block):where([data-selected])
|
|
67
|
+
.et-scheduler-appointment-dot {
|
|
68
|
+
background: var(--et-theme-color-on-primary);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.et-scheduler-appointment-time-range {
|
|
72
|
+
flex-shrink: 0;
|
|
73
|
+
font-variant-numeric: tabular-nums;
|
|
74
|
+
white-space: nowrap;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.et-scheduler-appointment-location {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-shrink: 0;
|
|
80
|
+
align-items: center;
|
|
81
|
+
gap: 3px;
|
|
82
|
+
max-inline-size: 40%;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.et-scheduler-appointment-location-icon {
|
|
86
|
+
flex-shrink: 0;
|
|
87
|
+
inline-size: 10px;
|
|
88
|
+
block-size: 10px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.et-scheduler-appointment-location-text {
|
|
92
|
+
overflow: hidden;
|
|
93
|
+
min-inline-size: 0;
|
|
94
|
+
text-overflow: ellipsis;
|
|
95
|
+
white-space: nowrap;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.et-scheduler-appointment-chain-count {
|
|
99
|
+
display: flex;
|
|
100
|
+
flex-shrink: 0;
|
|
101
|
+
align-items: center;
|
|
102
|
+
gap: 2px;
|
|
103
|
+
font-variant-numeric: tabular-nums;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.et-scheduler-appointment-chain-count-icon {
|
|
107
|
+
inline-size: 8px;
|
|
108
|
+
block-size: 8px;
|
|
109
|
+
transform: rotate(90deg);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-scheduler-edit-color-swatch {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
vertical-align: middle;
|
|
5
|
+
margin-inline-end: 6px;
|
|
6
|
+
inline-size: 14px;
|
|
7
|
+
block-size: 14px;
|
|
8
|
+
border-radius: 4px;
|
|
9
|
+
background: var(--et-theme-color-primary-solid, currentColor);
|
|
10
|
+
|
|
11
|
+
&:where([data-empty]) {
|
|
12
|
+
background: transparent;
|
|
13
|
+
border: 1px solid var(--et-surface-border-solid, currentColor);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-scheduler-edit-surface-breadcrumb {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-wrap: wrap;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: 4px;
|
|
7
|
+
margin-block-end: 16px;
|
|
8
|
+
font-size: 13px;
|
|
9
|
+
color: var(--et-surface-color-muted-solid);
|
|
10
|
+
|
|
11
|
+
&[hidden] {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.et-scheduler-edit-surface-breadcrumb-item {
|
|
17
|
+
color: inherit;
|
|
18
|
+
text-decoration: underline;
|
|
19
|
+
text-underline-offset: 2px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.et-scheduler-edit-surface-breadcrumb-current {
|
|
23
|
+
color: var(--et-surface-color-solid);
|
|
24
|
+
font-weight: 600;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-scheduler-edit-surface-children {
|
|
3
|
+
display: block;
|
|
4
|
+
margin-block-start: 20px;
|
|
5
|
+
|
|
6
|
+
&[hidden] {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.et-scheduler-edit-surface-children-heading {
|
|
12
|
+
margin: 0 0 8px;
|
|
13
|
+
font-size: 13px;
|
|
14
|
+
font-weight: 600;
|
|
15
|
+
color: var(--et-surface-color-muted-solid);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.et-scheduler-edit-surface-children-list {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
gap: 4px;
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
list-style: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.et-scheduler-edit-surface-children-item {
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: baseline;
|
|
30
|
+
gap: 8px;
|
|
31
|
+
inline-size: 100%;
|
|
32
|
+
color: var(--et-theme-color-ink-solid, var(--et-surface-color-solid));
|
|
33
|
+
text-align: start;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.et-scheduler-edit-surface-children-item-time {
|
|
37
|
+
flex: none;
|
|
38
|
+
font-size: 12px;
|
|
39
|
+
font-variant-numeric: tabular-nums;
|
|
40
|
+
color: var(--et-surface-color-muted-solid);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.et-scheduler-edit-surface-children-item-title {
|
|
44
|
+
flex: 1;
|
|
45
|
+
min-inline-size: 0;
|
|
46
|
+
overflow: hidden;
|
|
47
|
+
text-overflow: ellipsis;
|
|
48
|
+
white-space: nowrap;
|
|
49
|
+
text-decoration: underline;
|
|
50
|
+
text-underline-offset: 2px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.et-scheduler-edit-surface-children-item .et-scheduler-appointment-chain-count {
|
|
54
|
+
flex: none;
|
|
55
|
+
color: var(--et-surface-color-muted-solid);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-scheduler-edit-surface-header {
|
|
3
|
+
display: flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
gap: 12px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.et-scheduler-edit-surface-title {
|
|
9
|
+
flex: 1;
|
|
10
|
+
min-inline-size: 0;
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
text-overflow: ellipsis;
|
|
13
|
+
white-space: nowrap;
|
|
14
|
+
}
|
|
15
|
+
}
|