@ethlete/components 1.0.0-next.102 → 1.0.0-next.104
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 +27 -0
- package/design/sdk/components/breadcrumb/breadcrumb.ts +3 -3
- package/design/sdk/components/tabs/tabs.ts +20 -5
- package/design/sdk/components/timeline/timeline.ts +7 -1
- package/design/sdk/components/toolbar/toolbar.ts +7 -1
- package/design/sdk/foundations/colors/colors.css +46 -0
- package/fesm2022/ethlete-components.mjs +156 -156
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/generators.json +5 -0
- package/generators/migrate-state-token-names/migration.js +33 -0
- package/generators/migrate-state-token-names/schema.json +26 -0
- package/generators/migrate-state-token-names/state-token-names.js +53 -0
- package/migrations.json +9 -0
- package/package.json +1 -1
- package/src/lib/accordion/accordion.component.css +5 -5
- package/src/lib/bracket/bracket-pick-card.component.css +1 -1
- package/src/lib/bracket/bracket.component.css +11 -1
- package/src/lib/breadcrumb/breadcrumb-overflow.component.css +2 -2
- package/src/lib/breadcrumb/breadcrumb.component.css +4 -0
- package/src/lib/button/button-properties-styles.component.css +19 -19
- package/src/lib/button/button.component.css +4 -4
- package/src/lib/button/fab.component.css +1 -1
- package/src/lib/button/icon-button.component.css +2 -2
- package/src/lib/button/split-button.component.css +2 -2
- package/src/lib/button/text-button.component.css +1 -1
- package/src/lib/button/window-control-button.component.css +2 -2
- package/src/lib/calendar/calendar.component.css +3 -3
- package/src/lib/carousel/carousel-autoplay-styles.component.css +5 -2
- package/src/lib/carousel/carousel.component.css +20 -6
- package/src/lib/chart/bar-chart.component.css +5 -1
- package/src/lib/chart/line-chart.component.css +5 -1
- package/src/lib/chart/sankey-chart.component.css +1 -1
- package/src/lib/chip/chip.component.css +6 -6
- package/src/lib/command-palette/command-palette-item.component.css +1 -1
- package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +2 -2
- package/src/lib/forms/cascader/cascader-panel.component.css +8 -4
- package/src/lib/forms/checkbox/checkbox.component.css +2 -2
- package/src/lib/forms/choice-field/choice-field-card-styles.component.css +2 -2
- package/src/lib/forms/dropzone/dropzone-item.component.css +5 -1
- package/src/lib/forms/dropzone/dropzone.component.css +7 -3
- package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +2 -2
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +7 -7
- package/src/lib/forms/form-field/form-field.component.css +2 -2
- package/src/lib/forms/input/number-input.component.css +2 -2
- package/src/lib/forms/input/password-input.component.css +2 -2
- package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +3 -3
- package/src/lib/forms/rating/rating.component.css +2 -2
- package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +2 -2
- package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +1 -1
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +1 -1
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +1 -1
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +1 -1
- package/src/lib/forms/select/select-extras-styles.component.css +8 -4
- package/src/lib/forms/select/select-option-styles.component.css +8 -8
- package/src/lib/forms/select/select-panel.component.css +1 -1
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +6 -2
- package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +7 -3
- package/src/lib/forms/selection-list/radio-group/radio.component.css +7 -3
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +1 -1
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +5 -5
- package/src/lib/forms/slider/range-slider.component.css +1 -1
- package/src/lib/forms/slider/slider.component.css +1 -1
- package/src/lib/forms/switch/switch.component.css +16 -8
- package/src/lib/kbd/kbd.component.css +1 -1
- package/src/lib/loader/progress-bar/progress-bar.component.css +4 -0
- package/src/lib/match/match-card.component.css +12 -4
- package/src/lib/match/match-participant.component.css +3 -3
- package/src/lib/menu/menu-item-shortcut.component.css +2 -0
- package/src/lib/menu/menu-search-styles.component.css +1 -1
- package/src/lib/menu/menu.component.css +2 -2
- package/src/lib/pagination/pagination.component.css +5 -1
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +1 -1
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +25 -0
- package/src/lib/scrollable/headless/scrollable-masks.component.css +21 -0
- package/src/lib/scrollbar/scrollbar.component.css +3 -3
- package/src/lib/skeleton/skeleton.component.css +8 -2
- package/src/lib/standings/standings-pick.component.css +15 -7
- package/src/lib/standings/standings.component.css +4 -4
- package/src/lib/stream/pip/pip-stage-styles.component.css +4 -2
- package/src/lib/stream/pip/pip-window.component.css +2 -1
- package/src/lib/table/table-expander-cell.component.css +2 -2
- package/src/lib/table/table-reorder-overlay.component.css +1 -1
- package/src/lib/table/table-row-box-styles.component.css +6 -2
- package/src/lib/table/table-sticky-columns-styles.component.css +1 -1
- package/src/lib/table/table.component.css +23 -14
- package/src/lib/tabs/tab-bar-styles.component.css +1 -1
- package/src/lib/time-picker/time-picker.component.css +1 -1
- package/src/lib/tree/tree.component.css +2 -2
- package/types/ethlete-components.d.ts +1 -1
- package/design/sdk/lint-baseline.json +0 -6
|
@@ -51,6 +51,11 @@
|
|
|
51
51
|
"schema": "./migrate-pip-window-z-index/schema.json",
|
|
52
52
|
"description": "Move --et-pip-window-z-index into providePipWindowConfig and report the sites it cannot move"
|
|
53
53
|
},
|
|
54
|
+
"migrate-state-token-names": {
|
|
55
|
+
"factory": "./migrate-state-token-names/migration",
|
|
56
|
+
"schema": "./migrate-state-token-names/schema.json",
|
|
57
|
+
"description": "Rename the component state tokens to one pattern, state before property"
|
|
58
|
+
},
|
|
54
59
|
"migrate-tabs-active-underline": {
|
|
55
60
|
"factory": "./migrate-tabs-active-underline/migration",
|
|
56
61
|
"schema": "./migrate-tabs-active-underline/schema.json",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { formatFiles } from '@nx/devkit';
|
|
2
|
+
import { createMigrationScope } from '../migrate-query-error-labels/migration-scope.js';
|
|
3
|
+
import { isStateTokenCandidate, renameStateTokens } from './state-token-names.js';
|
|
4
|
+
export default async function migrateStateTokenNames(tree, schema) {
|
|
5
|
+
console.log('\n🔎 Renaming the component state tokens...');
|
|
6
|
+
const scope = createMigrationScope(tree, schema);
|
|
7
|
+
console.log(` Scope: ${scope.describe()}`);
|
|
8
|
+
const changed = [];
|
|
9
|
+
scope.visit(tree, (filePath) => {
|
|
10
|
+
if (!isStateTokenCandidate(filePath))
|
|
11
|
+
return;
|
|
12
|
+
const content = tree.read(filePath, 'utf-8');
|
|
13
|
+
if (!content)
|
|
14
|
+
return;
|
|
15
|
+
const next = renameStateTokens(content);
|
|
16
|
+
if (next === null)
|
|
17
|
+
return;
|
|
18
|
+
tree.write(filePath, next);
|
|
19
|
+
changed.push(filePath);
|
|
20
|
+
});
|
|
21
|
+
if (!schema.skipFormat) {
|
|
22
|
+
await formatFiles(tree);
|
|
23
|
+
}
|
|
24
|
+
if (changed.length > 0) {
|
|
25
|
+
console.log(`\n✅ Renamed the state tokens in ${changed.length} file(s):`);
|
|
26
|
+
for (const filePath of changed)
|
|
27
|
+
console.log(` ${filePath}`);
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
console.log('\n✅ Nothing to do.');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=migration.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "migrate-state-token-names",
|
|
4
|
+
"title": "Rename the component state tokens to one pattern: --et-<component>[-<part>][-<variant>]-<state>[-<property>]",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"projects": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": { "type": "string" },
|
|
10
|
+
"description": "Nx projects to scan. Defaults to every project in the workspace.",
|
|
11
|
+
"alias": "project"
|
|
12
|
+
},
|
|
13
|
+
"include": {
|
|
14
|
+
"type": "array",
|
|
15
|
+
"items": { "type": "string" },
|
|
16
|
+
"description": "Path prefixes to scan, relative to the workspace root (e.g. 'apps/shop'). Unioned with `projects`.",
|
|
17
|
+
"alias": "includePath"
|
|
18
|
+
},
|
|
19
|
+
"skipFormat": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"description": "Skip formatting files after migration",
|
|
22
|
+
"default": false
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": []
|
|
26
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export const STATE_TOKEN_RENAMES = {
|
|
2
|
+
'--et-accordion-header-active-background': '--et-accordion-header-active',
|
|
3
|
+
'--et-accordion-header-hover-background': '--et-accordion-header-hover',
|
|
4
|
+
'--et-button-opacity-disabled': '--et-button-disabled-opacity',
|
|
5
|
+
'--et-button-outline-active-background': '--et-button-outline-active',
|
|
6
|
+
'--et-button-outline-hover-background': '--et-button-outline-hover',
|
|
7
|
+
'--et-button-transparent-active-background': '--et-button-transparent-active',
|
|
8
|
+
'--et-button-transparent-hover-background': '--et-button-transparent-hover',
|
|
9
|
+
'--et-button-variant-opacity-active-delta': '--et-button-variant-active-opacity-delta',
|
|
10
|
+
'--et-button-variant-opacity-focus-delta': '--et-button-variant-focus-opacity-delta',
|
|
11
|
+
'--et-button-variant-opacity-hover-delta': '--et-button-variant-hover-opacity-delta',
|
|
12
|
+
'--et-carousel-dot-active-color': '--et-carousel-dot-active',
|
|
13
|
+
'--et-carousel-dot-hover-color': '--et-carousel-dot-hover',
|
|
14
|
+
'--et-carousel-dot-pressed-color': '--et-carousel-dot-pressed',
|
|
15
|
+
'--et-checkbox-opacity-disabled': '--et-checkbox-disabled-opacity',
|
|
16
|
+
'--et-checkbox-option-opacity-disabled': '--et-checkbox-option-disabled-opacity',
|
|
17
|
+
'--et-chip-opacity-disabled': '--et-chip-disabled-opacity',
|
|
18
|
+
'--et-dropzone-opacity-disabled': '--et-dropzone-disabled-opacity',
|
|
19
|
+
'--et-form-field-control-border-color-focus': '--et-form-field-control-focus-border-color',
|
|
20
|
+
'--et-form-field-control-border-color-hover': '--et-form-field-control-hover-border-color',
|
|
21
|
+
'--et-form-field-label-color-active': '--et-form-field-label-active-color',
|
|
22
|
+
'--et-form-field-value-color-active': '--et-form-field-value-active-color',
|
|
23
|
+
'--et-pagination-item-border-color-hover': '--et-pagination-item-hover-border-color',
|
|
24
|
+
'--et-radio-opacity-disabled': '--et-radio-disabled-opacity',
|
|
25
|
+
'--et-scrollbar-thumb-active-color': '--et-scrollbar-thumb-active',
|
|
26
|
+
'--et-segmented-button-hover-fill': '--et-segmented-button-hover',
|
|
27
|
+
'--et-segmented-button-opacity-disabled': '--et-segmented-button-disabled-opacity',
|
|
28
|
+
'--et-select-option-background-active': '--et-select-option-active',
|
|
29
|
+
'--et-select-option-background-hover': '--et-select-option-hover',
|
|
30
|
+
'--et-select-option-color-active': '--et-select-option-active-color',
|
|
31
|
+
'--et-select-option-color-hover': '--et-select-option-hover-color',
|
|
32
|
+
'--et-select-option-color-selected': '--et-select-option-selected-color',
|
|
33
|
+
'--et-select-option-outline-color-active': '--et-select-option-active-outline-color',
|
|
34
|
+
'--et-select-panel-action-background-hover': '--et-select-panel-action-hover',
|
|
35
|
+
'--et-switch-opacity-disabled': '--et-switch-disabled-opacity',
|
|
36
|
+
'--et-tab-hover-underline-opacity': '--et-tab-underline-hover-opacity',
|
|
37
|
+
'--et-table-opacity-disabled': '--et-table-disabled-opacity',
|
|
38
|
+
'--et-table-row-hover-background': '--et-table-row-hover',
|
|
39
|
+
'--et-window-control-button-close-background-active': '--et-window-control-button-close-active',
|
|
40
|
+
};
|
|
41
|
+
const SCANNED = /\.(css|scss|sass|less|html|ts)$/;
|
|
42
|
+
const OLD_NAME = new RegExp(`(?<![\\w-])(${Object.keys(STATE_TOKEN_RENAMES)
|
|
43
|
+
.sort((a, b) => b.length - a.length)
|
|
44
|
+
.join('|')})(?![\\w-])`, 'g');
|
|
45
|
+
export const isStateTokenCandidate = (filePath) => SCANNED.test(filePath) && !filePath.endsWith('.d.ts');
|
|
46
|
+
/** Returns the content with every old state token name renamed, or `null` when it holds none. */
|
|
47
|
+
export const renameStateTokens = (content) => {
|
|
48
|
+
if (!content.includes('--et-'))
|
|
49
|
+
return null;
|
|
50
|
+
const next = content.replace(OLD_NAME, (name) => STATE_TOKEN_RENAMES[name] ?? name);
|
|
51
|
+
return next === content ? null : next;
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=state-token-names.js.map
|
package/migrations.json
CHANGED
|
@@ -206,6 +206,15 @@
|
|
|
206
206
|
"description": "Remove activeUnderline from provideTabsConfig, which is removed: the active underline is always on.",
|
|
207
207
|
"generator": "@ethlete/components:migrate-tabs-active-underline",
|
|
208
208
|
"docs": "/components/tabs"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"name": "state-token-names",
|
|
212
|
+
"version": "1.0.0-next.104",
|
|
213
|
+
"kind": "auto",
|
|
214
|
+
"level": "required",
|
|
215
|
+
"description": "Rename the component state tokens to one pattern (--et-<component>[-<part>][-<variant>]-<state>[-<property>]), e.g. --et-select-option-background-hover to --et-select-option-hover.",
|
|
216
|
+
"generator": "@ethlete/components:migrate-state-token-names",
|
|
217
|
+
"docs": "/core/theming"
|
|
209
218
|
}
|
|
210
219
|
]
|
|
211
220
|
}
|
package/package.json
CHANGED
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
&:has(.et-accordion-trigger:hover:not([aria-disabled='true'])) {
|
|
67
67
|
--_et-accordion-border-color: color-mix(
|
|
68
68
|
in srgb,
|
|
69
|
-
var(--et-surface-
|
|
69
|
+
var(--et-surface-tint, var(--et-surface-text, gray)) 35%,
|
|
70
70
|
var(--et-surface-border, rgb(128 128 128 / 0.25))
|
|
71
71
|
);
|
|
72
72
|
}
|
|
@@ -111,8 +111,8 @@
|
|
|
111
111
|
@media (hover: hover) {
|
|
112
112
|
&:hover {
|
|
113
113
|
background: var(
|
|
114
|
-
--et-accordion-header-hover
|
|
115
|
-
color-mix(in srgb, var(--et-surface-tint, gray) 7%, transparent)
|
|
114
|
+
--et-accordion-header-hover,
|
|
115
|
+
color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text, gray)) 7%, transparent)
|
|
116
116
|
);
|
|
117
117
|
|
|
118
118
|
&:not([aria-disabled='true']) {
|
|
@@ -127,8 +127,8 @@
|
|
|
127
127
|
|
|
128
128
|
&:active {
|
|
129
129
|
background: var(
|
|
130
|
-
--et-accordion-header-active
|
|
131
|
-
color-mix(in srgb, var(--et-surface-tint, gray) 14%, transparent)
|
|
130
|
+
--et-accordion-header-active,
|
|
131
|
+
color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text, gray)) 14%, transparent)
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
134
|
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
&:where(button):hover {
|
|
67
|
-
background: color-mix(in srgb, var(--et-surface-tint, #777) 12%, transparent);
|
|
67
|
+
background: color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text, #777)) 12%, transparent);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&:where(button)[aria-pressed='true']:hover {
|
|
@@ -35,9 +35,19 @@
|
|
|
35
35
|
top var(--et-bracket-move-duration, 0.2s) var(--et-bracket-move-easing, ease);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
.et-bracket-section-title::after {
|
|
39
|
+
content: '';
|
|
40
|
+
position: absolute;
|
|
41
|
+
inset-inline: 0;
|
|
42
|
+
inset-block-end: 0;
|
|
43
|
+
border-block-end: var(--et-bracket-section-title-rule-width, 0) solid
|
|
44
|
+
var(--et-bracket-section-title-rule-color, var(--et-surface-border, rgb(255 255 255 / 0.1)));
|
|
45
|
+
pointer-events: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
38
48
|
.et-bracket-section-title-sticky {
|
|
39
49
|
position: sticky;
|
|
40
|
-
inset-inline-start:
|
|
50
|
+
inset-inline-start: var(--et-scrollable-start-fade, 0px);
|
|
41
51
|
inline-size: max-content;
|
|
42
52
|
max-inline-size: 100%;
|
|
43
53
|
block-size: 100%;
|
|
@@ -26,12 +26,12 @@
|
|
|
26
26
|
color 120ms ease;
|
|
27
27
|
|
|
28
28
|
&:where(a, button):hover {
|
|
29
|
-
background: color-mix(in srgb, var(--et-surface-tint) 12%, transparent);
|
|
29
|
+
background: color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text)) 12%, transparent);
|
|
30
30
|
text-decoration-color: transparent;
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&:where(a, button):active {
|
|
34
|
-
background: color-mix(in srgb, var(--et-surface-tint) 20%, transparent);
|
|
34
|
+
background: color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text)) 20%, transparent);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -29,25 +29,25 @@
|
|
|
29
29
|
initial-value: pointer;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
@property --et-button-opacity
|
|
32
|
+
@property --et-button-disabled-opacity {
|
|
33
33
|
syntax: '<number>';
|
|
34
34
|
inherits: false;
|
|
35
35
|
initial-value: 0.4;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
@property --et-button-variant-opacity-
|
|
38
|
+
@property --et-button-variant-hover-opacity-delta {
|
|
39
39
|
syntax: '<number>';
|
|
40
40
|
inherits: false;
|
|
41
41
|
initial-value: 0.08;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
@property --et-button-variant-opacity-
|
|
44
|
+
@property --et-button-variant-focus-opacity-delta {
|
|
45
45
|
syntax: '<number>';
|
|
46
46
|
inherits: false;
|
|
47
47
|
initial-value: 0.12;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
@property --et-button-variant-opacity-
|
|
50
|
+
@property --et-button-variant-active-opacity-delta {
|
|
51
51
|
syntax: '<number>';
|
|
52
52
|
inherits: false;
|
|
53
53
|
initial-value: 0.16;
|
|
@@ -87,16 +87,16 @@
|
|
|
87
87
|
|
|
88
88
|
@media (hover: hover) {
|
|
89
89
|
&:not([disabled], [aria-disabled='true']):hover {
|
|
90
|
-
--_et-tone-fill-opacity: var(--et-button-variant-opacity-
|
|
90
|
+
--_et-tone-fill-opacity: var(--et-button-variant-hover-opacity-delta);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
&:focus-visible {
|
|
95
|
-
--_et-tone-fill-opacity: var(--et-button-variant-opacity-
|
|
95
|
+
--_et-tone-fill-opacity: var(--et-button-variant-focus-opacity-delta);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
&:not([disabled], [aria-disabled='true']):active {
|
|
99
|
-
--_et-tone-fill-opacity: var(--et-button-variant-opacity-
|
|
99
|
+
--_et-tone-fill-opacity: var(--et-button-variant-active-opacity-delta);
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -106,18 +106,18 @@
|
|
|
106
106
|
):not([disabled], [aria-disabled='true']) {
|
|
107
107
|
@media (hover: hover) {
|
|
108
108
|
&:hover {
|
|
109
|
-
--_et-button-state-background: var(--et-button-outline-hover
|
|
109
|
+
--_et-button-state-background: var(--et-button-outline-hover);
|
|
110
110
|
--_et-button-state-border-color: var(--et-button-outline-hover-border-color);
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
&:focus-visible {
|
|
115
|
-
--_et-button-state-background: var(--et-button-outline-hover
|
|
115
|
+
--_et-button-state-background: var(--et-button-outline-hover);
|
|
116
116
|
--_et-button-state-border-color: var(--et-button-outline-hover-border-color);
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
&:active {
|
|
120
|
-
--_et-button-state-background: var(--et-button-outline-active
|
|
120
|
+
--_et-button-state-background: var(--et-button-outline-active);
|
|
121
121
|
--_et-button-state-border-color: var(--et-button-outline-active-border-color);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -128,16 +128,16 @@
|
|
|
128
128
|
) {
|
|
129
129
|
@media (hover: hover) {
|
|
130
130
|
&:hover {
|
|
131
|
-
--_et-button-state-background: var(--et-button-transparent-hover
|
|
131
|
+
--_et-button-state-background: var(--et-button-transparent-hover);
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
&:focus-visible {
|
|
136
|
-
--_et-button-state-background: var(--et-button-transparent-hover
|
|
136
|
+
--_et-button-state-background: var(--et-button-transparent-hover);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
&:active {
|
|
140
|
-
--_et-button-state-background: var(--et-button-transparent-active
|
|
140
|
+
--_et-button-state-background: var(--et-button-transparent-active);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
|
|
@@ -146,16 +146,16 @@
|
|
|
146
146
|
|
|
147
147
|
@media (hover: hover) {
|
|
148
148
|
&:not([disabled], [aria-disabled='true']):hover {
|
|
149
|
-
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-opacity-
|
|
149
|
+
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-hover-opacity-delta));
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
&:focus-visible {
|
|
154
|
-
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-opacity-
|
|
154
|
+
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-focus-opacity-delta));
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
&:not([disabled], [aria-disabled='true']):active {
|
|
158
|
-
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-opacity-
|
|
158
|
+
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-active-opacity-delta));
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
|
|
@@ -165,16 +165,16 @@
|
|
|
165
165
|
|
|
166
166
|
@media (hover: hover) {
|
|
167
167
|
&:not([disabled], [aria-disabled='true']):hover {
|
|
168
|
-
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-opacity-
|
|
168
|
+
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-hover-opacity-delta));
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
&:focus-visible {
|
|
173
|
-
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-opacity-
|
|
173
|
+
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-focus-opacity-delta));
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
&:not([disabled], [aria-disabled='true']):active {
|
|
177
|
-
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-opacity-
|
|
177
|
+
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-active-opacity-delta));
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
&:where([disabled], [aria-disabled='true']:not([data-loading='true'])):where([data-variant='tonal']),
|
|
99
99
|
&:where([disabled], [aria-disabled='true']:not([data-loading='true'])):where([data-variant='transparent']),
|
|
100
100
|
&:where([disabled], [aria-disabled='true']:not([data-loading='true']))[data-pressed='true'] {
|
|
101
|
-
opacity: var(--et-button-opacity
|
|
101
|
+
opacity: var(--et-button-disabled-opacity);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
&:where([data-variant='outline']) {
|
|
@@ -123,16 +123,16 @@
|
|
|
123
123
|
|
|
124
124
|
@media (hover: hover) {
|
|
125
125
|
&:not([disabled], [aria-disabled='true']):hover {
|
|
126
|
-
--_et-tone-fill-opacity: var(--et-button-variant-opacity-
|
|
126
|
+
--_et-tone-fill-opacity: var(--et-button-variant-hover-opacity-delta);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
&:focus-visible {
|
|
131
|
-
--_et-tone-fill-opacity: var(--et-button-variant-opacity-
|
|
131
|
+
--_et-tone-fill-opacity: var(--et-button-variant-focus-opacity-delta);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
&:not([disabled], [aria-disabled='true']):active {
|
|
135
|
-
--_et-tone-fill-opacity: var(--et-button-variant-opacity-
|
|
135
|
+
--_et-tone-fill-opacity: var(--et-button-variant-active-opacity-delta);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
&[data-loading='true']:not([disabled], [aria-disabled='true']) {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
|
|
82
82
|
&:where([disabled]),
|
|
83
83
|
&:where([aria-disabled='true']:not([data-loading='true'])) {
|
|
84
|
-
opacity: var(--et-button-opacity
|
|
84
|
+
opacity: var(--et-button-disabled-opacity);
|
|
85
85
|
cursor: not-allowed;
|
|
86
86
|
pointer-events: none;
|
|
87
87
|
}
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
&:focus-visible {
|
|
107
|
-
--_et-tone-fill-opacity: calc(1 - var(--et-button-variant-opacity-
|
|
107
|
+
--_et-tone-fill-opacity: calc(1 - var(--et-button-variant-focus-opacity-delta));
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&:not([disabled], [aria-disabled='true']):active {
|
|
@@ -92,11 +92,11 @@
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
&:where([data-variant='outline'], [data-variant='transparent']) {
|
|
95
|
-
--_et-tone-fill-opacity: var(--et-button-variant-opacity-
|
|
95
|
+
--_et-tone-fill-opacity: var(--et-button-variant-hover-opacity-delta);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
&:where([data-variant='tonal']) {
|
|
99
|
-
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-opacity-
|
|
99
|
+
--_et-tone-fill-opacity: calc(0.16 + var(--et-button-variant-hover-opacity-delta));
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -172,13 +172,13 @@
|
|
|
172
172
|
}
|
|
173
173
|
|
|
174
174
|
&:where([data-kind='close']:not([data-shape='round'])):active {
|
|
175
|
-
background: var(--et-window-control-button-close-
|
|
175
|
+
background: var(--et-window-control-button-close-active, rgba(196, 14, 29, 0.96));
|
|
176
176
|
color: var(--et-window-control-button-close-color, #ffffff);
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
&:where([disabled]),
|
|
180
180
|
&:where([aria-disabled='true']:not([data-loading='true'])) {
|
|
181
|
-
opacity: var(--et-button-opacity
|
|
181
|
+
opacity: var(--et-button-disabled-opacity);
|
|
182
182
|
cursor: not-allowed;
|
|
183
183
|
pointer-events: none;
|
|
184
184
|
}
|
|
@@ -39,12 +39,12 @@
|
|
|
39
39
|
|
|
40
40
|
@media (hover: hover) {
|
|
41
41
|
&:not([disabled], [aria-disabled='true']):hover {
|
|
42
|
-
background: color-mix(in srgb, var(--et-surface-tint) 12%, transparent);
|
|
42
|
+
background: color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text)) 12%, transparent);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
&:not([disabled], [aria-disabled='true']):active {
|
|
47
|
-
background: color-mix(in srgb, var(--et-surface-tint) 22%, transparent);
|
|
47
|
+
background: color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text)) 22%, transparent);
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&:focus-visible {
|
|
@@ -237,7 +237,7 @@
|
|
|
237
237
|
|
|
238
238
|
@media (hover: hover) {
|
|
239
239
|
&:where(:not([data-disabled])):hover .et-calendar-cell-content {
|
|
240
|
-
background: color-mix(in srgb, var(--et-surface-tint) 12%, transparent);
|
|
240
|
+
background: color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text)) 12%, transparent);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
content: '';
|
|
52
52
|
position: absolute;
|
|
53
53
|
inset: 0;
|
|
54
|
-
background: var(--et-carousel-dot-active
|
|
54
|
+
background: var(--et-carousel-dot-active, light-dark(var(--et-tone-text), var(--et-tone-fill)));
|
|
55
55
|
rotate: -180deg;
|
|
56
56
|
/* At -180deg the flat edge lies on this half's clip edge, and at a fractional device pixel ratio the
|
|
57
57
|
anti-aliasing of the two leaks a one-pixel line. The sweep keyframes show it again. */
|
|
@@ -98,7 +98,10 @@
|
|
|
98
98
|
inline-size: var(--et-carousel-dot-ring-size);
|
|
99
99
|
block-size: var(--et-carousel-dot-ring-size);
|
|
100
100
|
border: var(--et-carousel-dot-ring-width) solid
|
|
101
|
-
var(
|
|
101
|
+
var(
|
|
102
|
+
--et-carousel-dot-ring-track-color,
|
|
103
|
+
color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text, gray)) 30%, transparent)
|
|
104
|
+
);
|
|
102
105
|
border-radius: 50%;
|
|
103
106
|
opacity: 0;
|
|
104
107
|
scale: 0.55;
|
|
@@ -157,6 +157,14 @@
|
|
|
157
157
|
&:where(.et-carousel-control-icon--next) {
|
|
158
158
|
rotate: 90deg;
|
|
159
159
|
}
|
|
160
|
+
|
|
161
|
+
&:where(.et-carousel-control-icon--previous):dir(rtl) {
|
|
162
|
+
rotate: 90deg;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&:where(.et-carousel-control-icon--next):dir(rtl) {
|
|
166
|
+
rotate: -90deg;
|
|
167
|
+
}
|
|
160
168
|
}
|
|
161
169
|
|
|
162
170
|
.et-carousel-dots {
|
|
@@ -182,27 +190,33 @@
|
|
|
182
190
|
inline-size: var(--et-carousel-dot-size);
|
|
183
191
|
block-size: var(--et-carousel-dot-size);
|
|
184
192
|
border-radius: 50%;
|
|
185
|
-
background: var(
|
|
193
|
+
background: var(
|
|
194
|
+
--et-carousel-dot-color,
|
|
195
|
+
color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text, gray)) 35%, transparent)
|
|
196
|
+
);
|
|
186
197
|
}
|
|
187
198
|
|
|
188
199
|
&:hover::before {
|
|
189
|
-
background: var(
|
|
200
|
+
background: var(
|
|
201
|
+
--et-carousel-dot-hover,
|
|
202
|
+
color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text, gray)) 55%, transparent)
|
|
203
|
+
);
|
|
190
204
|
}
|
|
191
205
|
|
|
192
206
|
&:active::before {
|
|
193
207
|
background: var(
|
|
194
|
-
--et-carousel-dot-pressed
|
|
195
|
-
color-mix(in srgb, var(--et-surface-tint, gray) 85%, transparent)
|
|
208
|
+
--et-carousel-dot-pressed,
|
|
209
|
+
color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text, gray)) 85%, transparent)
|
|
196
210
|
);
|
|
197
211
|
}
|
|
198
212
|
|
|
199
213
|
&:where([data-active])::before {
|
|
200
|
-
background: var(--et-carousel-dot-active
|
|
214
|
+
background: var(--et-carousel-dot-active, light-dark(var(--et-tone-text), var(--et-tone-fill)));
|
|
201
215
|
}
|
|
202
216
|
|
|
203
217
|
/* `:hover`/`:active` above outrank the `:where()` rule, so the selected dot needs its own state selector. */
|
|
204
218
|
&:where([data-active]):is(:hover, :active)::before {
|
|
205
|
-
background: var(--et-carousel-dot-active
|
|
219
|
+
background: var(--et-carousel-dot-active, light-dark(var(--et-tone-text), var(--et-tone-fill)));
|
|
206
220
|
}
|
|
207
221
|
}
|
|
208
222
|
|
|
@@ -95,7 +95,11 @@
|
|
|
95
95
|
var(--et-tone-fill, currentColor) var(--_et-chart-accent-mix, 100%),
|
|
96
96
|
var(--et-surface-background, transparent)
|
|
97
97
|
);
|
|
98
|
-
--_et-bar-chart-column-tint: color-mix(
|
|
98
|
+
--_et-bar-chart-column-tint: color-mix(
|
|
99
|
+
in srgb,
|
|
100
|
+
var(--et-surface-tint, var(--et-surface-text, currentColor)) 6%,
|
|
101
|
+
transparent
|
|
102
|
+
);
|
|
99
103
|
--_et-bar-chart-mark-tint: color-mix(
|
|
100
104
|
in srgb,
|
|
101
105
|
var(--_et-bar-chart-color) 85%,
|
|
@@ -131,7 +131,11 @@
|
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.et-line-chart-slice {
|
|
134
|
-
--_et-line-chart-slice-tint: color-mix(
|
|
134
|
+
--_et-line-chart-slice-tint: color-mix(
|
|
135
|
+
in srgb,
|
|
136
|
+
var(--et-surface-tint, var(--et-surface-text, currentColor)) 6%,
|
|
137
|
+
transparent
|
|
138
|
+
);
|
|
135
139
|
|
|
136
140
|
outline: none;
|
|
137
141
|
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
&:where([data-active]) .et-sankey-chart-node-target {
|
|
132
|
-
fill: color-mix(in srgb, var(--et-surface-tint, currentColor) 8%, transparent);
|
|
132
|
+
fill: color-mix(in srgb, var(--et-surface-tint, var(--et-surface-text, currentColor)) 8%, transparent);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
&:focus-visible .et-sankey-chart-node-target {
|