@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,40 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-toolbar-gap {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: false;
|
|
5
|
+
initial-value: 4px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-toolbar-padding {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: false;
|
|
11
|
+
initial-value: 4px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-toolbar-border-radius {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: false;
|
|
17
|
+
initial-value: 8px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-toolbar-background {
|
|
21
|
+
syntax: '<color>';
|
|
22
|
+
inherits: false;
|
|
23
|
+
initial-value: transparent;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.et-toolbar {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
gap: var(--et-toolbar-gap);
|
|
30
|
+
padding: var(--et-toolbar-padding);
|
|
31
|
+
border-radius: var(--et-toolbar-border-radius);
|
|
32
|
+
background: var(--et-toolbar-background);
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
|
|
35
|
+
&:where([aria-orientation='vertical']) {
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
align-items: stretch;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-tooltip-font-size {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 13px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-tooltip-line-height {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 18px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-tooltip-font-weight {
|
|
15
|
+
syntax: '<number>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 500;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-tooltip-letter-spacing {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: -0.13px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-tooltip-padding-inline {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 14px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-tooltip-padding-block {
|
|
33
|
+
syntax: '<length>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 12px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.et-overlay.et-overlay--tooltip {
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.et-overlay.et-overlay--tooltip > :not(.et-overlay-container-drag-handle):not(.et-overlay-arrow) {
|
|
43
|
+
display: block;
|
|
44
|
+
overflow: visible;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.et-tooltip {
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
-webkit-user-select: none;
|
|
50
|
+
user-select: none;
|
|
51
|
+
font-size: var(--et-tooltip-font-size);
|
|
52
|
+
font-weight: var(--et-tooltip-font-weight);
|
|
53
|
+
line-height: var(--et-tooltip-line-height);
|
|
54
|
+
letter-spacing: var(--et-tooltip-letter-spacing);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.et-tooltip__surface {
|
|
58
|
+
padding: calc(var(--et-tooltip-padding-block) + 2px) calc(var(--et-tooltip-padding-inline) + 2px);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.et-tooltip__content {
|
|
62
|
+
gap: 6px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
@layer components {
|
|
2
|
+
@property --et-tree-indent {
|
|
3
|
+
syntax: '<length>';
|
|
4
|
+
inherits: true;
|
|
5
|
+
initial-value: 18px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
@property --et-tree-node-padding-block {
|
|
9
|
+
syntax: '<length>';
|
|
10
|
+
inherits: true;
|
|
11
|
+
initial-value: 5px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@property --et-tree-node-padding-inline {
|
|
15
|
+
syntax: '<length>';
|
|
16
|
+
inherits: true;
|
|
17
|
+
initial-value: 6px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@property --et-tree-node-gap {
|
|
21
|
+
syntax: '<length>';
|
|
22
|
+
inherits: true;
|
|
23
|
+
initial-value: 6px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@property --et-tree-node-radius {
|
|
27
|
+
syntax: '<length>';
|
|
28
|
+
inherits: true;
|
|
29
|
+
initial-value: 6px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@property --et-tree-marker-size {
|
|
33
|
+
syntax: '<length>';
|
|
34
|
+
inherits: true;
|
|
35
|
+
initial-value: 12px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@property --et-tree-check-size {
|
|
39
|
+
syntax: '<length>';
|
|
40
|
+
inherits: true;
|
|
41
|
+
initial-value: 16px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@property --et-tree-duration {
|
|
45
|
+
syntax: '<time>';
|
|
46
|
+
inherits: true;
|
|
47
|
+
initial-value: 150ms;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@property --_et-tree-node-depth {
|
|
51
|
+
syntax: '<number>';
|
|
52
|
+
inherits: false;
|
|
53
|
+
initial-value: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.et-tree {
|
|
57
|
+
display: block;
|
|
58
|
+
color: var(--et-surface-color-solid, CanvasText);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.et-tree-node,
|
|
62
|
+
.et-tree-status {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
gap: var(--et-tree-node-gap);
|
|
66
|
+
padding-block: var(--et-tree-node-padding-block);
|
|
67
|
+
padding-inline: calc(var(--et-tree-node-padding-inline) + var(--_et-tree-node-depth) * var(--et-tree-indent))
|
|
68
|
+
var(--et-tree-node-padding-inline);
|
|
69
|
+
border-radius: var(--et-tree-node-radius);
|
|
70
|
+
box-sizing: border-box;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.et-tree-node-marker {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex: none;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
inline-size: var(--et-tree-marker-size);
|
|
79
|
+
block-size: var(--et-tree-marker-size);
|
|
80
|
+
color: var(--et-surface-color-muted-solid, GrayText);
|
|
81
|
+
|
|
82
|
+
.et-tree-node-chevron {
|
|
83
|
+
inline-size: 100%;
|
|
84
|
+
block-size: 100%;
|
|
85
|
+
rotate: 90deg;
|
|
86
|
+
transition: rotate var(--et-tree-duration) cubic-bezier(0.25, 0, 0.1, 1);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.et-tree-node {
|
|
91
|
+
cursor: pointer;
|
|
92
|
+
-webkit-user-select: none;
|
|
93
|
+
user-select: none;
|
|
94
|
+
transition: background-color var(--et-tree-duration) ease;
|
|
95
|
+
|
|
96
|
+
.et-tree-node-label {
|
|
97
|
+
flex: 1;
|
|
98
|
+
min-inline-size: 0;
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.et-tree-node-error {
|
|
105
|
+
flex: none;
|
|
106
|
+
color: var(--et-tree-error-color, var(--et-surface-color-muted-solid, GrayText));
|
|
107
|
+
font-size: 0.875em;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:where([data-expanded]) .et-tree-node-chevron {
|
|
111
|
+
rotate: 180deg;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:dir(rtl) {
|
|
115
|
+
.et-tree-node-chevron {
|
|
116
|
+
rotate: -90deg;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:where([data-expanded]) .et-tree-node-chevron {
|
|
120
|
+
rotate: 180deg;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&:where([data-error]) .et-tree-node-marker {
|
|
125
|
+
color: var(--et-tree-error-color, var(--et-surface-color-muted-solid, GrayText));
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&:not(:where([aria-disabled])):hover {
|
|
129
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 7%, transparent);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&:not(:where([aria-disabled])):active {
|
|
133
|
+
background: color-mix(in srgb, var(--et-surface-interaction-solid, gray) 14%, transparent);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
&:focus-visible {
|
|
137
|
+
outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
|
|
138
|
+
outline-offset: -2px;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&:where([aria-disabled]) {
|
|
142
|
+
opacity: 0.4;
|
|
143
|
+
cursor: default;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* Must stay after `.et-tree-node`: it weighs the same as the bare interaction states, so source
|
|
148
|
+
order is what keeps a selected row's accent while hovered. */
|
|
149
|
+
.et-tree:not(:where([aria-multiselectable])) .et-tree-node:where([data-selected]) {
|
|
150
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid, gray) 16%, transparent);
|
|
151
|
+
color: var(--et-theme-color-ink-solid, inherit);
|
|
152
|
+
|
|
153
|
+
&:not(:where([aria-disabled])):hover {
|
|
154
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid, gray) 24%, transparent);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&:not(:where([aria-disabled])):active {
|
|
158
|
+
background: color-mix(in srgb, var(--et-theme-color-primary-solid, gray) 32%, transparent);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.et-tree-node-check {
|
|
163
|
+
position: relative;
|
|
164
|
+
flex: none;
|
|
165
|
+
inline-size: var(--et-tree-check-size);
|
|
166
|
+
block-size: var(--et-tree-check-size);
|
|
167
|
+
box-sizing: border-box;
|
|
168
|
+
border: 2px solid var(--et-surface-border-solid, rgb(255 255 255 / 0.3));
|
|
169
|
+
border-radius: 4px;
|
|
170
|
+
transition:
|
|
171
|
+
background var(--et-tree-duration) ease,
|
|
172
|
+
border-color var(--et-tree-duration) ease;
|
|
173
|
+
|
|
174
|
+
&::after {
|
|
175
|
+
content: '';
|
|
176
|
+
position: absolute;
|
|
177
|
+
inset: 0;
|
|
178
|
+
margin: auto;
|
|
179
|
+
inline-size: 4px;
|
|
180
|
+
block-size: 8px;
|
|
181
|
+
border: solid var(--et-theme-color-on-primary, rgb(0 0 0));
|
|
182
|
+
border-width: 0 2px 2px 0;
|
|
183
|
+
translate: 0 -1px;
|
|
184
|
+
rotate: 45deg;
|
|
185
|
+
opacity: 0;
|
|
186
|
+
transition: opacity var(--et-tree-duration) ease;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.et-tree-node:where([data-selected]) > .et-tree-node-check {
|
|
191
|
+
border-color: var(--et-theme-color-primary-solid, currentColor);
|
|
192
|
+
background: var(--et-theme-color-primary-solid, currentColor);
|
|
193
|
+
|
|
194
|
+
&::after {
|
|
195
|
+
opacity: 1;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.et-tree-status {
|
|
200
|
+
color: var(--et-surface-color-muted-solid, GrayText);
|
|
201
|
+
|
|
202
|
+
&:where(.et-tree-status--error) {
|
|
203
|
+
color: var(--et-tree-error-color, var(--et-surface-color-muted-solid, GrayText));
|
|
204
|
+
cursor: pointer;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&:focus-visible {
|
|
208
|
+
outline: 2px solid var(--et-theme-color-primary-solid, currentColor);
|
|
209
|
+
outline-offset: -2px;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@media (prefers-reduced-motion: reduce) {
|
|
214
|
+
.et-tree-node,
|
|
215
|
+
.et-tree-node-check,
|
|
216
|
+
.et-tree-node-check::after,
|
|
217
|
+
.et-tree-node .et-tree-node-chevron {
|
|
218
|
+
transition: none;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -301,7 +301,7 @@ declare const createTabBarDriver: <T>(fixture: ComponentFixture<T>, options?: Ta
|
|
|
301
301
|
|
|
302
302
|
/**
|
|
303
303
|
* Installs the browser APIs jsdom lacks and `@ethlete/components` needs to render: `ResizeObserver`,
|
|
304
|
-
* `IntersectionObserver`, `matchMedia` and `Element.prototype.
|
|
304
|
+
* `IntersectionObserver`, `matchMedia`, `Element.prototype.animate` and `Element.prototype.scroll`. Call it once in a test setup file;
|
|
305
305
|
* an API that already exists is left alone. The fakes never report: observers never fire, no media query
|
|
306
306
|
* matches, and an animation finishes on the next microtask.
|
|
307
307
|
*/
|