@ethlete/components 1.0.0-next.69 → 1.0.0-next.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/design/button.ts +57 -0
- package/design/form-field.ts +210 -0
- package/design/select.ts +110 -0
- package/fesm2022/ethlete-components-testing.mjs +3 -1
- package/fesm2022/ethlete-components-testing.mjs.map +1 -1
- package/fesm2022/ethlete-components.mjs +823 -105
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/package.json +20 -14
- package/src/lib/accordion/accordion-group.component.css +12 -0
- package/src/lib/accordion/accordion.component.css +185 -0
- package/src/lib/avatar/avatar-group.component.css +31 -0
- package/src/lib/avatar/avatar.component.css +75 -0
- package/src/lib/badge/badge.component.css +111 -0
- package/src/lib/banner/banner.component.css +94 -0
- package/src/lib/bracket/bracket-default-continue.component.css +29 -0
- package/src/lib/bracket/bracket-default-final-match.component.css +76 -0
- package/src/lib/bracket/bracket-default-match.component.css +21 -0
- package/src/lib/bracket/bracket-default-round-header.component.css +36 -0
- package/src/lib/bracket/bracket-participants.component.css +13 -0
- package/src/lib/bracket/bracket-pick-card.component.css +232 -0
- package/src/lib/bracket/bracket-rounds-list.component.css +75 -0
- package/src/lib/bracket/bracket-skeleton.component.css +55 -0
- package/src/lib/bracket/bracket.component.css +102 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +10 -0
- package/src/lib/breadcrumb/breadcrumb-overflow.component.css +38 -0
- package/src/lib/breadcrumb/breadcrumb.component.css +120 -0
- package/src/lib/button/button-properties-styles.component.css +143 -0
- package/src/lib/button/button.component.css +196 -0
- package/src/lib/button/fab.component.css +252 -0
- package/src/lib/button/icon-button.component.css +143 -0
- package/src/lib/button/split-button.component.css +77 -0
- package/src/lib/button/text-button.component.css +140 -0
- package/src/lib/button/window-control-button.component.css +158 -0
- package/src/lib/calendar/calendar-coarse-grid-styles.component.css +29 -0
- package/src/lib/calendar/calendar-comparison-band-styles.component.css +36 -0
- package/src/lib/calendar/calendar-week-numbers-styles.component.css +32 -0
- package/src/lib/calendar/calendar.component.css +366 -0
- package/src/lib/card/card.component.css +39 -0
- package/src/lib/carousel/carousel-autoplay-styles.component.css +166 -0
- package/src/lib/carousel/carousel-transition-styles.component.css +179 -0
- package/src/lib/carousel/carousel.component.css +142 -0
- package/src/lib/chart/bar-chart.component.css +176 -0
- package/src/lib/chart/chart-axis.component.css +40 -0
- package/src/lib/chart/chart-grid.component.css +6 -0
- package/src/lib/chart/chart-legend.component.css +46 -0
- package/src/lib/chart/chart-tooltip.component.css +34 -0
- package/src/lib/chart/line-chart-tooltip.component.css +51 -0
- package/src/lib/chart/line-chart.component.css +234 -0
- package/src/lib/chart/pie-chart.component.css +176 -0
- package/src/lib/chart/sankey-chart.component.css +221 -0
- package/src/lib/chip/chip.component.css +155 -0
- package/src/lib/command-palette/command-palette-item.component.css +94 -0
- package/src/lib/command-palette/command-palette.component.css +100 -0
- package/src/lib/description-list/description-list.component.css +77 -0
- package/src/lib/divider/divider.component.css +36 -0
- package/src/lib/empty-state/empty-state.component.css +73 -0
- package/src/lib/floating-action/floating-action-styles.component.css +78 -0
- package/src/lib/focus-ring/focus-ring-styles.component.css +13 -0
- package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +98 -0
- package/src/lib/forms/cascader/cascader-panel.component.css +386 -0
- package/src/lib/forms/cascader/cascader-sheet-styles.component.css +241 -0
- package/src/lib/forms/cascader/cascader.component.css +52 -0
- package/src/lib/forms/checkbox/checkbox.component.css +247 -0
- package/src/lib/forms/choice-field/choice-field-card-styles.component.css +59 -0
- package/src/lib/forms/choice-field/choice-field.component.css +186 -0
- package/src/lib/forms/color-input/color-input.component.css +108 -0
- package/src/lib/forms/color-input/color-picker-panel.component.css +349 -0
- package/src/lib/forms/date-time/date-input/date-input.component.css +35 -0
- package/src/lib/forms/date-time/date-picker-panel.component.css +115 -0
- package/src/lib/forms/date-time/date-range-input/date-range-input.component.css +16 -0
- package/src/lib/forms/date-time/date-range-presets.component.css +60 -0
- package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +151 -0
- package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +121 -0
- package/src/lib/forms/date-time/duration-input/duration-input.component.css +88 -0
- package/src/lib/forms/date-time/range-input-shell-styles.component.css +55 -0
- package/src/lib/forms/date-time/time-input/time-input.component.css +35 -0
- package/src/lib/forms/date-time/time-range-input/time-range-input.component.css +16 -0
- package/src/lib/forms/dropzone/dropzone-item.component.css +51 -0
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +67 -0
- package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +34 -0
- package/src/lib/forms/dropzone/dropzone.component.css +267 -0
- package/src/lib/forms/form-field/counter.component.css +25 -0
- package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +116 -0
- package/src/lib/forms/form-field/form-field-rich-text-styles.component.css +31 -0
- package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +66 -0
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +312 -0
- package/src/lib/forms/form-field/form-field-textarea-styles.component.css +32 -0
- package/src/lib/forms/form-field/form-field.component.css +328 -0
- package/src/lib/forms/form-field/form-support-styles.component.css +102 -0
- package/src/lib/forms/form-field/headless/label.directive.css +25 -0
- package/src/lib/forms/form-field/hint.component.css +20 -0
- package/src/lib/forms/input/input.component.css +49 -0
- package/src/lib/forms/input/number-input.component.css +128 -0
- package/src/lib/forms/input/password-input.component.css +103 -0
- package/src/lib/forms/multi-language-rich-text-editor/multi-language-rich-text-editor.component.css +8 -0
- package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +104 -0
- package/src/lib/forms/otp-input/otp-input.component.css +194 -0
- package/src/lib/forms/phone-input/phone-input.component.css +126 -0
- package/src/lib/forms/rating/rating.component.css +197 -0
- package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +234 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +90 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +172 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +149 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-palette.component.css +18 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +199 -0
- package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +175 -0
- package/src/lib/forms/rich-text-editor/rich-text-viewer.component.css +6 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-align-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-heading-tool.component.css +5 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +109 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +21 -0
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +44 -0
- package/src/lib/forms/select/select-all-option.component.css +14 -0
- package/src/lib/forms/select/select-extras-styles.component.css +143 -0
- package/src/lib/forms/select/select-option-group.component.css +35 -0
- package/src/lib/forms/select/select-option-styles.component.css +137 -0
- package/src/lib/forms/select/select-panel.component.css +112 -0
- package/src/lib/forms/select/select.component.css +180 -0
- package/src/lib/forms/selection-card-styles.component.css +136 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +89 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +142 -0
- package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +153 -0
- package/src/lib/forms/selection-list/radio-group/radio-group.component.css +134 -0
- package/src/lib/forms/selection-list/radio-group/radio.component.css +137 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +149 -0
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +180 -0
- package/src/lib/forms/slider/range-slider.component.css +348 -0
- package/src/lib/forms/slider/slider.component.css +342 -0
- package/src/lib/forms/switch/switch.component.css +187 -0
- package/src/lib/forms/tag-input/tag-input.component.css +54 -0
- package/src/lib/forms/textarea/textarea-autosize-styles.component.css +17 -0
- package/src/lib/forms/textarea/textarea.component.css +40 -0
- package/src/lib/grid/grid-debug.component.css +130 -0
- package/src/lib/grid/grid-item-default-actions.component.css +11 -0
- package/src/lib/grid/grid-item.component.css +172 -0
- package/src/lib/grid/grid.component.css +56 -0
- package/src/lib/icon/headless/icon-styles.component.css +7 -0
- package/src/lib/kbd/kbd.component.css +62 -0
- package/src/lib/loader/brand-loader/brand-loader.component.css +130 -0
- package/src/lib/loader/progress-bar/progress-bar.component.css +176 -0
- package/src/lib/loader/spinner/spinner.component.css +216 -0
- package/src/lib/masonry/masonry-styles.component.css +84 -0
- package/src/lib/match/match-card.component.css +441 -0
- package/src/lib/match/match-participant.component.css +137 -0
- package/src/lib/match/match-score.component.css +74 -0
- package/src/lib/menu/menu-group-label.component.css +12 -0
- package/src/lib/menu/menu-item-shortcut.component.css +10 -0
- package/src/lib/menu/menu-item-submenu-icon.component.css +18 -0
- package/src/lib/menu/menu-item.component.css +32 -0
- package/src/lib/menu/menu-search-styles.component.css +56 -0
- package/src/lib/menu/menu-selection-item.component.css +88 -0
- package/src/lib/menu/menu-separator.component.css +9 -0
- package/src/lib/menu/menu.component.css +296 -0
- package/src/lib/notification/notification-stack.component.css +114 -0
- package/src/lib/notification/notification.component.css +271 -0
- package/src/lib/overlay/alert-dialog/alert-dialog.component.css +45 -0
- package/src/lib/overlay/floating-panel-styles.component.css +71 -0
- package/src/lib/overlay/floating-tip-styles.component.css +78 -0
- package/src/lib/overlay/overlay-container.component.css +167 -0
- package/src/lib/overlay/overlay-main-styles.component.css +105 -0
- package/src/lib/overlay/overlay-template-host.component.css +7 -0
- package/src/lib/overlay/routing/overlay-route-header-template-outlet.component.css +36 -0
- package/src/lib/overlay/routing/overlay-router-outlet.component.css +207 -0
- package/src/lib/overlay/routing/overlay-shared-route-template-outlet.component.css +5 -0
- package/src/lib/overlay/sidebar/overlay-sidebar.component.css +16 -0
- package/src/lib/overlay/strategies/anchored-dialog-styles.component.css +51 -0
- package/src/lib/overlay/strategies/dialog-styles.component.css +50 -0
- package/src/lib/overlay/strategies/full-screen-dialog-styles.component.css +83 -0
- package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +112 -0
- package/src/lib/overlay/strategies/overlay-origin-clone.component.css +63 -0
- package/src/lib/overlay/strategies/sheet-styles.component.css +143 -0
- package/src/lib/pagination/page-size-select.component.css +102 -0
- package/src/lib/pagination/pagination.component.css +192 -0
- package/src/lib/picture/picture.component.css +66 -0
- package/src/lib/progress-steps/progress-step.component.css +187 -0
- package/src/lib/progress-steps/progress-steps.component.css +26 -0
- package/src/lib/query-error/query-error.component.css +21 -0
- package/src/lib/scheduler/scheduler-agenda-view.component.css +97 -0
- package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +56 -0
- package/src/lib/scheduler/scheduler-appointment-styles.component.css +111 -0
- package/src/lib/scheduler/scheduler-edit-color.component.css +16 -0
- package/src/lib/scheduler/scheduler-edit-surface-actions.component.css +14 -0
- package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +26 -0
- package/src/lib/scheduler/scheduler-edit-surface-children.component.css +57 -0
- package/src/lib/scheduler/scheduler-edit-surface-fields.component.css +11 -0
- package/src/lib/scheduler/scheduler-edit-surface-footer.component.css +7 -0
- package/src/lib/scheduler/scheduler-edit-surface-header.component.css +15 -0
- package/src/lib/scheduler/scheduler-edit-time-range.component.css +11 -0
- package/src/lib/scheduler/scheduler-month-view.component.css +143 -0
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +260 -0
- package/src/lib/scheduler/scheduler.component.css +87 -0
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +122 -0
- package/src/lib/scrollable/headless/scrollable-footer.css +25 -0
- package/src/lib/scrollable/headless/scrollable-masks.component.css +112 -0
- package/src/lib/scrollable/headless/scrollable-navigation.component.css +94 -0
- package/src/lib/scrollable/scrollable.component.css +192 -0
- package/src/lib/scrollbar/scrollbar.component.css +110 -0
- package/src/lib/skeleton/skeleton.component.css +108 -0
- package/src/lib/standings/standings-pick.component.css +172 -0
- package/src/lib/standings/standings.component.css +201 -0
- package/src/lib/stat-tile/stat-tile-sparkline.component.css +49 -0
- package/src/lib/stat-tile/stat-tile.component.css +111 -0
- package/src/lib/stream/pip/pip-chrome.component.css +96 -0
- package/src/lib/stream/pip/pip-player.component.css +40 -0
- package/src/lib/stream/pip/pip-window.component.css +222 -0
- package/src/lib/stream/stream-manager-styles.component.css +10 -0
- package/src/lib/stream/stream-overlay-card-styles.component.css +43 -0
- package/src/lib/stream/stream-player-slot-styles.component.css +14 -0
- package/src/lib/table/table-column-chooser.component.css +17 -0
- package/src/lib/table/table-column-menu-trigger.component.css +31 -0
- package/src/lib/table/table-detail-styles.component.css +103 -0
- package/src/lib/table/table-drag-scroll-styles.component.css +18 -0
- package/src/lib/table/table-expander-cell.component.css +58 -0
- package/src/lib/table/table-filter-trigger.component.css +44 -0
- package/src/lib/table/table-group-header-row.component.css +38 -0
- package/src/lib/table/table-inline-edit-styles.component.css +20 -0
- package/src/lib/table/table-page-sticky-header-styles.component.css +77 -0
- package/src/lib/table/table-reorder-overlay.component.css +42 -0
- package/src/lib/table/table-resize-grip.component.css +65 -0
- package/src/lib/table/table-row-box-styles.component.css +260 -0
- package/src/lib/table/table-select-cell.component.css +89 -0
- package/src/lib/table/table-skeleton-rows.component.css +19 -0
- package/src/lib/table/table-sort-priority-styles.component.css +15 -0
- package/src/lib/table/table-sticky-columns-styles.component.css +80 -0
- package/src/lib/table/table-virtual-scroll-styles.component.css +9 -0
- package/src/lib/table/table.component.css +829 -0
- package/src/lib/tabs/nav-tabs/nav-tab-link-styles.component.css +33 -0
- package/src/lib/tabs/tab-bar-styles.component.css +173 -0
- package/src/lib/tabs/tab-scale-styles.component.css +61 -0
- package/src/lib/time-picker/time-picker.component.css +220 -0
- package/src/lib/timeline/timeline-item.component.css +116 -0
- package/src/lib/timeline/timeline.component.css +7 -0
- package/src/lib/toggletip/toggletip.component.css +83 -0
- package/src/lib/toolbar/toolbar.component.css +40 -0
- package/src/lib/tooltip/tooltip.component.css +64 -0
- package/src/lib/tree/tree.component.css +221 -0
- package/types/ethlete-components-testing.d.ts +1 -1
- package/types/ethlete-components.d.ts +172 -7
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-icon-button-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 39px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-icon-button-icon-size {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 20px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.et-icon-button {
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
position: relative;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
width: var(--et-icon-button-size);
|
|
20
|
+
height: var(--et-icon-button-size);
|
|
21
|
+
background: rgb(var(--et-theme-color-primary-rgb) / var(--et-theme-color-primary-opacity));
|
|
22
|
+
color: var(--et-theme-color-ink-solid);
|
|
23
|
+
border: none;
|
|
24
|
+
border-radius: var(--et-icon-button-border-radius, 9999px);
|
|
25
|
+
padding: 0;
|
|
26
|
+
font-size: var(--et-button-font-size);
|
|
27
|
+
cursor: var(--et-button-cursor);
|
|
28
|
+
appearance: none;
|
|
29
|
+
box-sizing: border-box;
|
|
30
|
+
-webkit-user-select: none;
|
|
31
|
+
user-select: none;
|
|
32
|
+
-webkit-tap-highlight-color: transparent;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
flex-shrink: 0;
|
|
35
|
+
|
|
36
|
+
&[data-can-animate] {
|
|
37
|
+
transition:
|
|
38
|
+
background 120ms ease,
|
|
39
|
+
color 120ms ease,
|
|
40
|
+
box-shadow 120ms ease,
|
|
41
|
+
outline-color 120ms ease,
|
|
42
|
+
opacity 120ms ease;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:where([data-size='xs']) {
|
|
46
|
+
--et-icon-button-size: 2.4rem;
|
|
47
|
+
--et-icon-button-icon-size: 1.4rem;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&:where([data-size='sm']) {
|
|
51
|
+
--et-icon-button-size: 3.1rem;
|
|
52
|
+
--et-icon-button-icon-size: 1.8rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:where([data-size='md']) {
|
|
56
|
+
--et-icon-button-size: 3.9rem;
|
|
57
|
+
--et-icon-button-icon-size: 2rem;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:where([data-size='lg']) {
|
|
61
|
+
--et-icon-button-size: 4.6rem;
|
|
62
|
+
--et-icon-button-icon-size: 2.4rem;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:where([data-size='xl']) {
|
|
66
|
+
--et-icon-button-size: 5.7rem;
|
|
67
|
+
--et-icon-button-icon-size: 2.8rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:where([disabled]),
|
|
71
|
+
&:where([aria-disabled='true']) {
|
|
72
|
+
opacity: var(--et-button-opacity-disabled);
|
|
73
|
+
cursor: not-allowed;
|
|
74
|
+
pointer-events: none;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:where([data-variant='filled']) {
|
|
78
|
+
--et-theme-color-primary-opacity: 1;
|
|
79
|
+
color: var(--et-theme-color-on-primary);
|
|
80
|
+
|
|
81
|
+
@media (hover: hover) {
|
|
82
|
+
&:hover {
|
|
83
|
+
--et-theme-color-primary-opacity: calc(1 - var(--et-button-variant-opacity-hover-delta));
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:focus-visible {
|
|
88
|
+
--et-theme-color-primary-opacity: calc(1 - var(--et-button-variant-opacity-focus-delta));
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&:active {
|
|
92
|
+
--et-theme-color-primary-opacity: calc(1 - var(--et-button-variant-opacity-active-delta));
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&:where([data-variant='outline']) {
|
|
97
|
+
border: var(--et-button-border-width, 0.1rem) solid var(--et-theme-color-ink-solid);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&[data-pressed='true']:where([data-pressed-variant='filled']) {
|
|
101
|
+
--et-theme-color-primary-opacity: 1;
|
|
102
|
+
color: var(--et-theme-color-on-primary);
|
|
103
|
+
|
|
104
|
+
@media (hover: hover) {
|
|
105
|
+
&:hover {
|
|
106
|
+
--et-theme-color-primary-opacity: calc(1 - var(--et-button-variant-opacity-hover-delta));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:focus-visible {
|
|
111
|
+
--et-theme-color-primary-opacity: calc(1 - var(--et-button-variant-opacity-focus-delta));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:active {
|
|
115
|
+
--et-theme-color-primary-opacity: calc(1 - var(--et-button-variant-opacity-active-delta));
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.et-icon-button-icon {
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: center;
|
|
122
|
+
justify-content: center;
|
|
123
|
+
width: 100%;
|
|
124
|
+
height: 100%;
|
|
125
|
+
transition: opacity 120ms ease;
|
|
126
|
+
|
|
127
|
+
.et-icon {
|
|
128
|
+
width: var(--et-icon-button-icon-size);
|
|
129
|
+
height: var(--et-icon-button-icon-size);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&[data-loading='true'] {
|
|
134
|
+
.et-icon-button-icon {
|
|
135
|
+
opacity: 0;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.et-button-loader {
|
|
139
|
+
opacity: 1;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-split-button-divider-color {
|
|
3
|
+
syntax: '*';
|
|
4
|
+
inherits: true;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.et-split-button {
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: stretch;
|
|
10
|
+
|
|
11
|
+
.et-split-button-action,
|
|
12
|
+
.et-split-button-trigger {
|
|
13
|
+
position: relative;
|
|
14
|
+
|
|
15
|
+
&:focus-visible {
|
|
16
|
+
z-index: 1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@media (hover: hover) {
|
|
20
|
+
&:hover {
|
|
21
|
+
z-index: 1;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.et-split-button-action {
|
|
27
|
+
border-start-end-radius: 0;
|
|
28
|
+
border-end-end-radius: 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.et-split-button-trigger {
|
|
32
|
+
/* icon buttons carry a fixed per-size height that would beat the group's
|
|
33
|
+
align-items: stretch — let the action segment dictate the height instead */
|
|
34
|
+
height: auto;
|
|
35
|
+
border-start-start-radius: 0;
|
|
36
|
+
border-end-start-radius: 0;
|
|
37
|
+
border-start-end-radius: var(--et-button-border-radius);
|
|
38
|
+
border-end-end-radius: var(--et-button-border-radius);
|
|
39
|
+
|
|
40
|
+
/* icon buttons are fully round and don't carry the per-size radius scale —
|
|
41
|
+
mirror the surface button's values so both segments share the outer radius */
|
|
42
|
+
&:where([data-size='xs']) {
|
|
43
|
+
--et-button-border-radius: 0.3rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&:where([data-size='sm']),
|
|
47
|
+
&:where([data-size='md']) {
|
|
48
|
+
--et-button-border-radius: 0.4rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:where([data-size='lg']) {
|
|
52
|
+
--et-button-border-radius: 0.6rem;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&:where([data-size='xl']) {
|
|
56
|
+
--et-button-border-radius: 0.8rem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* filled/tonal/transparent: the trigger's inline-start border doubles as the divider */
|
|
61
|
+
.et-split-button-trigger:not([data-variant='outline']) {
|
|
62
|
+
border-inline-start: var(--et-button-border-width, 0.1rem) solid
|
|
63
|
+
var(--et-split-button-divider-color, color-mix(in srgb, currentColor 32%, transparent));
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* outline: both segments bring their own border — overlap them so the shared edge stays single-width */
|
|
67
|
+
.et-split-button-trigger:where([data-variant='outline']) {
|
|
68
|
+
margin-inline-start: calc(var(--et-button-border-width, 0.1rem) * -1);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* the surface button keeps filled fully opaque while disabled — mirror that for icon-button
|
|
72
|
+
triggers so a disabled filled split button doesn't fade only on one side */
|
|
73
|
+
.et-icon-button.et-split-button-trigger:where([data-variant='filled']):where([disabled], [aria-disabled='true']) {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-text-button {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
position: relative;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
gap: var(--et-button-gap);
|
|
8
|
+
background: transparent;
|
|
9
|
+
color: var(--et-theme-color-ink-solid);
|
|
10
|
+
border: none;
|
|
11
|
+
padding: 0;
|
|
12
|
+
border-radius: 0.2rem;
|
|
13
|
+
font-size: var(--et-button-font-size);
|
|
14
|
+
font-weight: var(--et-button-font-weight);
|
|
15
|
+
cursor: var(--et-button-cursor);
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
appearance: none;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
-webkit-user-select: none;
|
|
20
|
+
user-select: none;
|
|
21
|
+
-webkit-tap-highlight-color: transparent;
|
|
22
|
+
line-height: var(--et-button-line-height);
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
|
|
25
|
+
&[data-can-animate] {
|
|
26
|
+
transition:
|
|
27
|
+
color 120ms ease,
|
|
28
|
+
box-shadow 120ms ease,
|
|
29
|
+
outline-color 120ms ease,
|
|
30
|
+
opacity 120ms ease;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:where([data-size='xs']) {
|
|
34
|
+
--et-button-font-size: 1.2rem;
|
|
35
|
+
--et-button-gap: 0.4rem;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:where([data-size='sm']) {
|
|
39
|
+
--et-button-font-size: 1.4rem;
|
|
40
|
+
--et-button-gap: 0.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:where([data-size='md']) {
|
|
44
|
+
--et-button-font-size: 1.4rem;
|
|
45
|
+
--et-button-gap: 0.6rem;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&:where([data-size='lg']) {
|
|
49
|
+
--et-button-font-size: 1.6rem;
|
|
50
|
+
--et-button-gap: 0.7rem;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:where([data-size='xl']) {
|
|
54
|
+
--et-button-font-size: 1.8rem;
|
|
55
|
+
--et-button-gap: 0.8rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@media (hover: hover) {
|
|
59
|
+
&:hover {
|
|
60
|
+
.et-text-button-contents::after {
|
|
61
|
+
opacity: 0.9;
|
|
62
|
+
transform: scaleX(1);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:focus-visible {
|
|
68
|
+
.et-text-button-contents::after {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
transform: scaleX(1);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:active {
|
|
75
|
+
.et-text-button-contents::after {
|
|
76
|
+
opacity: 1;
|
|
77
|
+
transform: scaleX(0.98);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:where([disabled]),
|
|
82
|
+
&:where([aria-disabled='true']) {
|
|
83
|
+
opacity: var(--et-button-opacity-disabled);
|
|
84
|
+
cursor: not-allowed;
|
|
85
|
+
pointer-events: none;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.et-text-button-icon {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
transition: opacity 120ms ease;
|
|
94
|
+
|
|
95
|
+
&:empty {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.et-icon {
|
|
100
|
+
width: 1em;
|
|
101
|
+
height: 1em;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.et-text-button-contents {
|
|
106
|
+
display: inline-flex;
|
|
107
|
+
align-items: center;
|
|
108
|
+
min-width: 0;
|
|
109
|
+
position: relative;
|
|
110
|
+
transition: opacity 120ms ease;
|
|
111
|
+
|
|
112
|
+
&::after {
|
|
113
|
+
content: '';
|
|
114
|
+
position: absolute;
|
|
115
|
+
inset-inline: 0.04em;
|
|
116
|
+
bottom: 0.15em;
|
|
117
|
+
height: 0.08em;
|
|
118
|
+
border-radius: 999px;
|
|
119
|
+
background: currentColor;
|
|
120
|
+
opacity: 0;
|
|
121
|
+
transform: scaleX(0.6);
|
|
122
|
+
transform-origin: center;
|
|
123
|
+
transition:
|
|
124
|
+
opacity 160ms ease,
|
|
125
|
+
transform 200ms ease;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&[data-loading='true'] {
|
|
130
|
+
.et-text-button-icon,
|
|
131
|
+
.et-text-button-contents {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.et-button-loader {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --_et-window-control-button-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: false;
|
|
5
|
+
initial-value: 32px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --_et-window-control-button-icon-size {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.et-window-control-button {
|
|
15
|
+
--et-theme-color-primary-opacity: 0;
|
|
16
|
+
--_et-window-control-button-fallback-background: transparent;
|
|
17
|
+
--_et-window-control-button-fallback-color: rgba(255, 255, 255, 0.92);
|
|
18
|
+
--_et-window-control-button-border-radius: 4px;
|
|
19
|
+
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
position: relative;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
width: var(--_et-window-control-button-size);
|
|
25
|
+
height: var(--_et-window-control-button-size);
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
border: none;
|
|
29
|
+
border-radius: var(--_et-window-control-button-border-radius);
|
|
30
|
+
background: var(--et-theme-color-primary, var(--_et-window-control-button-fallback-background));
|
|
31
|
+
color: var(--et-theme-color-ink-solid, var(--_et-window-control-button-fallback-color));
|
|
32
|
+
cursor: var(--et-button-cursor);
|
|
33
|
+
font-size: var(--_et-window-control-button-icon-size);
|
|
34
|
+
line-height: 1;
|
|
35
|
+
text-decoration: none;
|
|
36
|
+
appearance: none;
|
|
37
|
+
box-sizing: border-box;
|
|
38
|
+
-webkit-user-select: none;
|
|
39
|
+
user-select: none;
|
|
40
|
+
-webkit-tap-highlight-color: transparent;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
|
|
43
|
+
&[data-can-animate] {
|
|
44
|
+
transition:
|
|
45
|
+
background 120ms ease,
|
|
46
|
+
color 120ms ease,
|
|
47
|
+
box-shadow 120ms ease,
|
|
48
|
+
outline-color 120ms ease,
|
|
49
|
+
opacity 120ms ease;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:where([data-size='sm']) {
|
|
53
|
+
--_et-window-control-button-size: 2.8rem;
|
|
54
|
+
--_et-window-control-button-icon-size: 1.4rem;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&:where([data-size='md']) {
|
|
58
|
+
--_et-window-control-button-size: 3.2rem;
|
|
59
|
+
--_et-window-control-button-icon-size: 1.6rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&:where([data-size='lg']) {
|
|
63
|
+
--_et-window-control-button-size: 3.6rem;
|
|
64
|
+
--_et-window-control-button-icon-size: 1.8rem;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (hover: hover) {
|
|
68
|
+
&:hover {
|
|
69
|
+
--et-theme-color-primary-opacity: 0.14;
|
|
70
|
+
--_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.14);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:focus-visible {
|
|
75
|
+
--et-theme-color-primary-opacity: 0.18;
|
|
76
|
+
--_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.18);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&:active {
|
|
80
|
+
--et-theme-color-primary-opacity: 0.22;
|
|
81
|
+
--_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.22);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&[data-pressed='true'] {
|
|
85
|
+
--et-theme-color-primary-opacity: 0.18;
|
|
86
|
+
--_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.18);
|
|
87
|
+
|
|
88
|
+
@media (hover: hover) {
|
|
89
|
+
&:hover {
|
|
90
|
+
--et-theme-color-primary-opacity: 0.24;
|
|
91
|
+
--_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.24);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:focus-visible {
|
|
96
|
+
--et-theme-color-primary-opacity: 0.28;
|
|
97
|
+
--_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.28);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&:active {
|
|
101
|
+
--et-theme-color-primary-opacity: 0.32;
|
|
102
|
+
--_et-window-control-button-fallback-background: rgba(255, 255, 255, 0.32);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&:where([data-kind='close']):focus-visible {
|
|
107
|
+
background: var(--et-window-control-button-close-background, rgba(232, 17, 35, 0.92));
|
|
108
|
+
color: var(--et-window-control-button-close-color, #ffffff);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@media (hover: hover) {
|
|
112
|
+
&:where([data-kind='close']):hover {
|
|
113
|
+
background: var(--et-window-control-button-close-background, rgba(232, 17, 35, 0.92));
|
|
114
|
+
color: var(--et-window-control-button-close-color, #ffffff);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&:where([data-kind='close']):active {
|
|
119
|
+
background: var(--et-window-control-button-close-background-active, rgba(196, 14, 29, 0.96));
|
|
120
|
+
color: var(--et-window-control-button-close-color, #ffffff);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
&:where([disabled]),
|
|
124
|
+
&:where([aria-disabled='true']) {
|
|
125
|
+
opacity: var(--et-button-opacity-disabled);
|
|
126
|
+
cursor: not-allowed;
|
|
127
|
+
pointer-events: none;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.et-window-control-button-icon {
|
|
131
|
+
display: flex;
|
|
132
|
+
align-items: center;
|
|
133
|
+
justify-content: center;
|
|
134
|
+
width: 100%;
|
|
135
|
+
height: 100%;
|
|
136
|
+
transition: opacity 120ms ease;
|
|
137
|
+
|
|
138
|
+
&:empty {
|
|
139
|
+
display: none;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.et-icon {
|
|
143
|
+
width: var(--_et-window-control-button-icon-size);
|
|
144
|
+
height: var(--_et-window-control-button-icon-size);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&[data-loading='true'] {
|
|
149
|
+
.et-window-control-button-icon {
|
|
150
|
+
opacity: 0;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.et-button-loader {
|
|
154
|
+
opacity: 1;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-calendar {
|
|
3
|
+
.et-calendar-coarse-row {
|
|
4
|
+
display: grid;
|
|
5
|
+
grid-template-columns: repeat(4, 1fr);
|
|
6
|
+
inline-size: calc(var(--et-calendar-cell-size) * 7 + var(--_et-calendar-week-column));
|
|
7
|
+
block-size: var(--et-calendar-cell-size);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&:where([data-view='year'], [data-view='multiYear']) .et-calendar-weeks-viewport {
|
|
11
|
+
align-content: center;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.et-calendar-cell--coarse {
|
|
15
|
+
block-size: 100%;
|
|
16
|
+
|
|
17
|
+
.et-calendar-cell-content {
|
|
18
|
+
inline-size: calc(100% - 6px);
|
|
19
|
+
block-size: calc(var(--et-calendar-cell-size) - 6px);
|
|
20
|
+
padding-inline: 4px;
|
|
21
|
+
border-radius: 999px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&::before {
|
|
25
|
+
inset-block: 3px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
.et-calendar {
|
|
3
|
+
.et-calendar-cell {
|
|
4
|
+
&::after {
|
|
5
|
+
content: '';
|
|
6
|
+
position: absolute;
|
|
7
|
+
inset-block-end: 1px;
|
|
8
|
+
inset-inline: 0;
|
|
9
|
+
display: none;
|
|
10
|
+
block-size: 3px;
|
|
11
|
+
background: var(--et-surface-color-muted-solid);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:where([data-comparison-band])::after {
|
|
15
|
+
display: block;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&:where([data-comparison-band='start'])::after {
|
|
19
|
+
inset-inline-start: 50%;
|
|
20
|
+
border-start-start-radius: 999px;
|
|
21
|
+
border-end-start-radius: 999px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:where([data-comparison-band='end'])::after {
|
|
25
|
+
inset-inline-end: 50%;
|
|
26
|
+
border-start-end-radius: 999px;
|
|
27
|
+
border-end-end-radius: 999px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:where([data-comparison-band='single'])::after {
|
|
31
|
+
inset-inline: 25%;
|
|
32
|
+
border-radius: 999px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-calendar-week-number-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 28px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.et-calendar {
|
|
9
|
+
&:where([data-week-numbers]) {
|
|
10
|
+
--_et-calendar-week-column: var(--et-calendar-week-number-size);
|
|
11
|
+
|
|
12
|
+
& .et-calendar-weekdays,
|
|
13
|
+
& .et-calendar-week {
|
|
14
|
+
grid-template-columns: var(--et-calendar-week-number-size) repeat(7, var(--et-calendar-cell-size));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.et-calendar-week-number {
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
border-inline-end: 1px solid var(--et-surface-border-solid);
|
|
23
|
+
font-size: 11px;
|
|
24
|
+
font-variant-numeric: tabular-nums;
|
|
25
|
+
color: var(--et-surface-color-muted-solid);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.et-calendar-week-number-heading {
|
|
29
|
+
border-inline-end: 1px solid var(--et-surface-border-solid);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|