@ethlete/components 1.0.0-next.69 → 1.0.0-next.71
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 +35 -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 +830 -108
- 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,366 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-calendar-cell-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 40px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.et-calendar {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
gap: 4px;
|
|
12
|
+
-webkit-user-select: none;
|
|
13
|
+
user-select: none;
|
|
14
|
+
|
|
15
|
+
.et-calendar-header {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: center;
|
|
18
|
+
gap: 4px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.et-calendar-header-label {
|
|
22
|
+
position: relative;
|
|
23
|
+
display: inline-flex;
|
|
24
|
+
flex: 1;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
padding: 4px 22px;
|
|
28
|
+
border: none;
|
|
29
|
+
border-radius: 8px;
|
|
30
|
+
background: transparent;
|
|
31
|
+
font: inherit;
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
color: var(--et-surface-color-solid);
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
transition: background-color 140ms var(--ease-3, ease-out);
|
|
37
|
+
touch-action: manipulation;
|
|
38
|
+
-webkit-tap-highlight-color: transparent;
|
|
39
|
+
|
|
40
|
+
@media (hover: hover) {
|
|
41
|
+
&:hover {
|
|
42
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid) 12%, transparent);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:active {
|
|
47
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid) 22%, transparent);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:focus-visible {
|
|
51
|
+
outline: 2px solid var(--et-theme-color-primary-solid);
|
|
52
|
+
outline-offset: 1px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.et-calendar-header-label-text {
|
|
57
|
+
position: relative;
|
|
58
|
+
display: inline-grid;
|
|
59
|
+
grid-template-areas: 'label';
|
|
60
|
+
justify-items: center;
|
|
61
|
+
white-space: nowrap;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.et-calendar-header-label-value {
|
|
65
|
+
grid-area: label;
|
|
66
|
+
|
|
67
|
+
&:where([data-nav='forward']) {
|
|
68
|
+
animation: et-calendar-label-in-forward 200ms ease;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&:where([data-nav='backward']) {
|
|
72
|
+
animation: et-calendar-label-in-backward 200ms ease;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:where([data-nav='zoomIn'], [data-nav='zoomOut']) {
|
|
76
|
+
animation: et-calendar-label-in-zoom 160ms ease;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.et-calendar-header-label-value--leave {
|
|
81
|
+
position: absolute;
|
|
82
|
+
inset-block: 0;
|
|
83
|
+
animation: et-calendar-label-out 140ms ease forwards;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.et-calendar-header-label-icon {
|
|
87
|
+
position: absolute;
|
|
88
|
+
inset-inline-end: 6px;
|
|
89
|
+
inset-block-start: 50%;
|
|
90
|
+
inline-size: 12px;
|
|
91
|
+
block-size: 12px;
|
|
92
|
+
rotate: 180deg;
|
|
93
|
+
translate: 0 -50%;
|
|
94
|
+
transition: rotate 200ms var(--ease-3, ease-out);
|
|
95
|
+
opacity: 0.7;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:where([data-view='multiYear']) .et-calendar-header-label-icon {
|
|
99
|
+
rotate: 0deg;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.et-calendar-nav-button--previous .et-icon {
|
|
103
|
+
rotate: -90deg;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.et-calendar-nav-button--next .et-icon {
|
|
107
|
+
rotate: 90deg;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.et-calendar-grid {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.et-calendar-weeks-viewport {
|
|
116
|
+
position: relative;
|
|
117
|
+
display: grid;
|
|
118
|
+
flex: 1;
|
|
119
|
+
grid-template-areas: 'weeks';
|
|
120
|
+
align-content: start;
|
|
121
|
+
justify-items: center;
|
|
122
|
+
min-inline-size: calc(
|
|
123
|
+
(var(--et-calendar-cell-size) * 7 + var(--_et-calendar-week-column)) * var(--_et-calendar-months, 1) + 16px *
|
|
124
|
+
(var(--_et-calendar-months, 1) - 1)
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.et-calendar-weeks {
|
|
129
|
+
grid-area: weeks;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
--_et-calendar-week-column: 0px;
|
|
133
|
+
|
|
134
|
+
.et-calendar-weekdays,
|
|
135
|
+
.et-calendar-week {
|
|
136
|
+
display: grid;
|
|
137
|
+
grid-template-columns: repeat(7, var(--et-calendar-cell-size));
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.et-calendar-months {
|
|
141
|
+
display: flex;
|
|
142
|
+
gap: 16px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.et-calendar-month-label {
|
|
146
|
+
padding-block-end: 4px;
|
|
147
|
+
text-align: center;
|
|
148
|
+
font-size: 13px;
|
|
149
|
+
font-weight: 600;
|
|
150
|
+
color: var(--et-surface-color-solid);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.et-calendar-cell--empty {
|
|
154
|
+
pointer-events: none;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.et-calendar-weeks {
|
|
158
|
+
&:where([data-nav='forward']) {
|
|
159
|
+
animation: et-calendar-weeks-in-forward 200ms ease;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&:where([data-nav='backward']) {
|
|
163
|
+
animation: et-calendar-weeks-in-backward 200ms ease;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&:where([data-nav='zoomIn'], [data-nav='zoomOut']) {
|
|
167
|
+
animation: et-calendar-weeks-in-zoom 160ms ease;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.et-calendar-weeks--leave {
|
|
172
|
+
animation: et-calendar-weeks-out 140ms ease forwards;
|
|
173
|
+
pointer-events: none;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.et-calendar-weekday {
|
|
177
|
+
display: inline-flex;
|
|
178
|
+
align-items: center;
|
|
179
|
+
justify-content: center;
|
|
180
|
+
block-size: 32px;
|
|
181
|
+
font-size: 12px;
|
|
182
|
+
color: var(--et-surface-color-muted-solid);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.et-calendar-cell {
|
|
186
|
+
position: relative;
|
|
187
|
+
display: inline-flex;
|
|
188
|
+
align-items: center;
|
|
189
|
+
justify-content: center;
|
|
190
|
+
block-size: var(--et-calendar-cell-size);
|
|
191
|
+
padding: 0;
|
|
192
|
+
border: none;
|
|
193
|
+
background: transparent;
|
|
194
|
+
font: inherit;
|
|
195
|
+
font-size: 13px;
|
|
196
|
+
color: var(--et-surface-color-solid);
|
|
197
|
+
cursor: pointer;
|
|
198
|
+
touch-action: manipulation;
|
|
199
|
+
-webkit-tap-highlight-color: transparent;
|
|
200
|
+
|
|
201
|
+
&::before {
|
|
202
|
+
content: '';
|
|
203
|
+
position: absolute;
|
|
204
|
+
inset-block: 4px;
|
|
205
|
+
inset-inline: 0;
|
|
206
|
+
display: none;
|
|
207
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid) 12%, transparent);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&:where([data-band])::before {
|
|
211
|
+
display: block;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&:where([data-band='start'])::before {
|
|
215
|
+
inset-inline-start: 50%;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
&:where([data-band='end'])::before {
|
|
219
|
+
inset-inline-end: 50%;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.et-calendar-cell-content {
|
|
223
|
+
position: relative;
|
|
224
|
+
display: inline-flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
justify-content: center;
|
|
227
|
+
inline-size: calc(var(--et-calendar-cell-size) - 6px);
|
|
228
|
+
block-size: calc(var(--et-calendar-cell-size) - 6px);
|
|
229
|
+
border-radius: 999px;
|
|
230
|
+
transition:
|
|
231
|
+
background-color 150ms ease,
|
|
232
|
+
color 150ms ease;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
@media (hover: hover) {
|
|
236
|
+
&:where(:not([data-disabled])):hover .et-calendar-cell-content {
|
|
237
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid) 12%, transparent);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
&:focus-visible {
|
|
242
|
+
outline: none;
|
|
243
|
+
|
|
244
|
+
.et-calendar-cell-content {
|
|
245
|
+
outline: 2px solid var(--et-theme-color-primary-solid);
|
|
246
|
+
outline-offset: 1px;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&:where([data-outside-month]) {
|
|
251
|
+
color: var(--et-surface-color-muted-solid);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&:where([data-today]) .et-calendar-cell-content {
|
|
255
|
+
box-shadow: inset 0 0 0 1px var(--et-theme-color-ink-solid);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&:where([data-band='start'], [data-band='end']):where(:not([data-selected])) {
|
|
259
|
+
color: var(--et-theme-color-on-primary);
|
|
260
|
+
|
|
261
|
+
.et-calendar-cell-content {
|
|
262
|
+
background: var(--et-theme-color-primary-solid);
|
|
263
|
+
font-weight: 600;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
@media (hover: hover) {
|
|
268
|
+
&:where([data-band='start'], [data-band='end']):where(:not([data-selected])):hover .et-calendar-cell-content {
|
|
269
|
+
background: var(--et-theme-color-primary-solid);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&:where([data-selected]) {
|
|
274
|
+
color: var(--et-theme-color-on-primary);
|
|
275
|
+
|
|
276
|
+
.et-calendar-cell-content {
|
|
277
|
+
background: var(--et-theme-color-primary-solid);
|
|
278
|
+
font-weight: 600;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@media (hover: hover) {
|
|
283
|
+
&:where([data-selected]):hover .et-calendar-cell-content {
|
|
284
|
+
background: var(--et-theme-color-primary-solid);
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
&:where([data-disabled]) {
|
|
289
|
+
color: var(--et-surface-color-subtle-solid);
|
|
290
|
+
cursor: default;
|
|
291
|
+
|
|
292
|
+
.et-calendar-cell-content {
|
|
293
|
+
background: transparent;
|
|
294
|
+
text-decoration: line-through;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
@keyframes et-calendar-weeks-in-forward {
|
|
301
|
+
from {
|
|
302
|
+
opacity: 0;
|
|
303
|
+
transform: translateX(14px);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
@keyframes et-calendar-weeks-in-backward {
|
|
308
|
+
from {
|
|
309
|
+
opacity: 0;
|
|
310
|
+
transform: translateX(-14px);
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
@keyframes et-calendar-weeks-in-zoom {
|
|
315
|
+
from {
|
|
316
|
+
opacity: 0;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@keyframes et-calendar-weeks-out {
|
|
321
|
+
to {
|
|
322
|
+
opacity: 0;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
@keyframes et-calendar-label-in-forward {
|
|
327
|
+
from {
|
|
328
|
+
opacity: 0;
|
|
329
|
+
transform: translateX(6px);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
@keyframes et-calendar-label-in-backward {
|
|
334
|
+
from {
|
|
335
|
+
opacity: 0;
|
|
336
|
+
transform: translateX(-6px);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
@keyframes et-calendar-label-in-zoom {
|
|
341
|
+
from {
|
|
342
|
+
opacity: 0;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
@keyframes et-calendar-label-out {
|
|
347
|
+
to {
|
|
348
|
+
opacity: 0;
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
@media (prefers-reduced-motion: reduce) {
|
|
353
|
+
.et-calendar {
|
|
354
|
+
& .et-calendar-weeks,
|
|
355
|
+
& .et-calendar-weeks--leave,
|
|
356
|
+
& .et-calendar-header-label-value,
|
|
357
|
+
& .et-calendar-header-label-value--leave {
|
|
358
|
+
animation: none;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
& .et-calendar-header-label-icon {
|
|
362
|
+
transition: none;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-card-padding {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 16px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-card-gap {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 12px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-card-border-radius {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 8px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.et-card {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
gap: var(--et-card-gap);
|
|
24
|
+
padding: var(--et-card-padding);
|
|
25
|
+
border-radius: var(--et-card-border-radius);
|
|
26
|
+
box-sizing: border-box;
|
|
27
|
+
background: var(--et-surface-background-solid, Canvas);
|
|
28
|
+
color: var(--et-surface-color-solid, currentColor);
|
|
29
|
+
border: 1px solid transparent;
|
|
30
|
+
|
|
31
|
+
&:where([data-variant='outlined']) {
|
|
32
|
+
border-color: var(--et-surface-border-solid, currentColor);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:where([data-variant='elevated']) {
|
|
36
|
+
box-shadow: 0 4px 16px rgb(var(--et-shadow-color-rgb, 0 0 0) / 0.12);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
/* The autoplay countdown ring. Deliberately smaller than the tap target and thicker than a hairline —
|
|
3
|
+
drawn at the target size it read as a stray outline rather than as a countdown. */
|
|
4
|
+
@property --et-carousel-dot-ring-size {
|
|
5
|
+
syntax: '<length>';
|
|
6
|
+
inherits: true;
|
|
7
|
+
initial-value: 18px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@property --et-carousel-dot-ring-width {
|
|
11
|
+
syntax: '<length>';
|
|
12
|
+
inherits: true;
|
|
13
|
+
initial-value: 2.5px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.et-carousel-dot-progress {
|
|
17
|
+
position: absolute;
|
|
18
|
+
inline-size: var(--et-carousel-dot-ring-size);
|
|
19
|
+
block-size: var(--et-carousel-dot-ring-size);
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
opacity: 0;
|
|
22
|
+
scale: 0.55;
|
|
23
|
+
mask: radial-gradient(
|
|
24
|
+
closest-side,
|
|
25
|
+
transparent calc(100% - var(--et-carousel-dot-ring-width)),
|
|
26
|
+
black calc(100% - var(--et-carousel-dot-ring-width))
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
/* The countdown, as two rotations rather than a growing gradient.
|
|
30
|
+
|
|
31
|
+
It was a `conic-gradient` whose angle came from an animated registered property, which reads beautifully
|
|
32
|
+
and cannot be composited: a gradient has to be re-rasterized for every value, and animating a registered
|
|
33
|
+
property recalculates the element's style every frame whether or not the value actually changed. Idle, a
|
|
34
|
+
counting-down ring cost ~1120 paints and ~510 style recalculations over nine seconds. Stepping the
|
|
35
|
+
property halved the paints and did nothing at all for the recalculations — the recalculation is the
|
|
36
|
+
animation existing, not the value moving.
|
|
37
|
+
|
|
38
|
+
So nothing here animates a custom property or a paint-only property. Each half of the circle holds a
|
|
39
|
+
half-disc pinned to the centre, rotating from `-180deg` (entirely in the other half, clipped away) to
|
|
40
|
+
`0deg` (filling this one), and its own half clips it. The first sweeps the right half over the first half
|
|
41
|
+
of the slide's duration; the second the left half over the second, via a delay. `rotate` is composited, so
|
|
42
|
+
the whole countdown runs off the main thread: ~120 paints and ~45 recalculations over the same nine
|
|
43
|
+
seconds, which is the floor — what the page costs with no ring at all. */
|
|
44
|
+
.et-carousel-dot-progress-half {
|
|
45
|
+
position: absolute;
|
|
46
|
+
inset-block: 0;
|
|
47
|
+
inline-size: 50%;
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
|
|
50
|
+
&::before {
|
|
51
|
+
content: '';
|
|
52
|
+
position: absolute;
|
|
53
|
+
inset: 0;
|
|
54
|
+
background: var(--et-theme-color-primary-solid, currentColor);
|
|
55
|
+
rotate: -180deg;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:first-child {
|
|
59
|
+
inset-inline-start: 50%;
|
|
60
|
+
|
|
61
|
+
&::before {
|
|
62
|
+
border-radius: 0 100% 100% 0 / 0 50% 50% 0;
|
|
63
|
+
transform-origin: 0 50%;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:last-child {
|
|
68
|
+
inset-inline-start: 0;
|
|
69
|
+
|
|
70
|
+
&::before {
|
|
71
|
+
border-radius: 100% 0 0 100% / 50% 0 0 50%;
|
|
72
|
+
transform-origin: 100% 50%;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@keyframes et-carousel-autoplay-sweep {
|
|
78
|
+
from {
|
|
79
|
+
rotate: -180deg;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
to {
|
|
83
|
+
rotate: 0deg;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.et-carousel-dot {
|
|
88
|
+
position: relative;
|
|
89
|
+
|
|
90
|
+
&::after {
|
|
91
|
+
content: '';
|
|
92
|
+
position: absolute;
|
|
93
|
+
inline-size: var(--et-carousel-dot-ring-size);
|
|
94
|
+
block-size: var(--et-carousel-dot-ring-size);
|
|
95
|
+
border: var(--et-carousel-dot-ring-width) solid
|
|
96
|
+
color-mix(in srgb, var(--et-surface-interaction-solid, gray) 30%, transparent);
|
|
97
|
+
border-radius: 50%;
|
|
98
|
+
opacity: 0;
|
|
99
|
+
scale: 0.55;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&:where([data-counting]) {
|
|
103
|
+
& .et-carousel-dot-progress {
|
|
104
|
+
opacity: 1;
|
|
105
|
+
scale: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
& .et-carousel-dot-progress-half::before {
|
|
109
|
+
animation: et-carousel-autoplay-sweep calc(var(--_et-carousel-autoplay-duration, 5000ms) / 2) linear forwards;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
& .et-carousel-dot-progress-half:last-child::before {
|
|
113
|
+
animation-delay: calc(var(--_et-carousel-autoplay-duration, 5000ms) / 2);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&::after {
|
|
117
|
+
opacity: 1;
|
|
118
|
+
scale: 1;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:where([data-counting])::before {
|
|
123
|
+
scale: 0.75;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* The icon button lays its projected icons out in a flex row, which would put play and pause side by side.
|
|
128
|
+
Three classes deep because that rule is one class deep on the button and is injected at runtime, so it
|
|
129
|
+
would win at equal specificity however this file is ordered. */
|
|
130
|
+
.et-carousel .et-carousel-play-toggle .et-icon-button-icon {
|
|
131
|
+
display: grid;
|
|
132
|
+
place-items: center;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.et-carousel-play-toggle {
|
|
136
|
+
& .et-carousel-play-toggle-icon {
|
|
137
|
+
grid-area: 1 / 1;
|
|
138
|
+
opacity: 0;
|
|
139
|
+
scale: 0.55;
|
|
140
|
+
rotate: -35deg;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&:not([data-playing]) .et-icon--et-play,
|
|
144
|
+
&:where([data-playing]) .et-icon--et-pause {
|
|
145
|
+
opacity: 1;
|
|
146
|
+
scale: 1;
|
|
147
|
+
rotate: 0deg;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.et-carousel:where(.et-carousel--can-animate) {
|
|
152
|
+
& .et-carousel-dot-progress,
|
|
153
|
+
& .et-carousel-dot::after {
|
|
154
|
+
transition:
|
|
155
|
+
opacity 220ms var(--ease-3, ease-out),
|
|
156
|
+
scale 220ms var(--ease-3, ease-out);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
& .et-carousel-play-toggle-icon {
|
|
160
|
+
transition:
|
|
161
|
+
opacity 180ms var(--ease-3, ease-out),
|
|
162
|
+
scale 180ms var(--ease-3, ease-out),
|
|
163
|
+
rotate 220ms var(--ease-3, ease-out);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|