@ethlete/components 1.0.0-next.100 → 1.0.0-next.102
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 +45 -0
- package/design/banner.ts +1 -1
- package/design/breadcrumb.ts +0 -1
- package/design/button.ts +0 -2
- package/design/card.ts +1 -1
- package/design/dialog.ts +1 -7
- package/design/grid.ts +3 -3
- package/design/masonry.ts +3 -3
- package/design/menu.ts +5 -3
- package/design/notification.ts +0 -1
- package/design/scheduler.ts +1 -1
- package/design/sdk/components/accent-on-light/accent-on-light.css +5 -5
- package/design/sdk/components/accordion/accordion.css +3 -3
- package/design/sdk/components/action-sheet/action-sheet.css +13 -13
- package/design/sdk/components/action-sheet/action-sheet.ts +5 -3
- package/design/sdk/components/anchored-dialog/anchored-dialog.css +5 -5
- package/design/sdk/components/avatar/avatar.css +3 -3
- package/design/sdk/components/badge/badge.css +3 -3
- package/design/sdk/components/banner/banner.css +4 -4
- package/design/sdk/components/bracket/bracket.css +8 -11
- package/design/sdk/components/breadcrumb/breadcrumb.css +4 -4
- package/design/sdk/components/button/button.css +3 -13
- package/design/sdk/components/calendar/calendar.css +7 -7
- package/design/sdk/components/card/card.css +4 -4
- package/design/sdk/components/carousel/carousel.css +6 -6
- package/design/sdk/components/chart/chart.css +8 -8
- package/design/sdk/components/checkbox/checkbox.css +2 -2
- package/design/sdk/components/chip/chip.css +4 -4
- package/design/sdk/components/copy-button/copy-button.css +3 -3
- package/design/sdk/components/description-list/description-list.css +2 -2
- package/design/sdk/components/dialog/dialog.css +4 -4
- package/design/sdk/components/divider/divider.css +2 -2
- package/design/sdk/components/empty-state/empty-state.css +4 -4
- package/design/sdk/components/floating-action/floating-action.css +4 -4
- package/design/sdk/components/grid/grid.css +4 -4
- package/design/sdk/components/input/input.css +13 -22
- package/design/sdk/components/kbd/kbd.css +2 -2
- package/design/sdk/components/loader/loader.css +6 -6
- package/design/sdk/components/masonry/masonry.css +2 -2
- package/design/sdk/components/match/match.css +5 -8
- package/design/sdk/components/menu/menu.css +2 -2
- package/design/sdk/components/menu/menu.ts +2 -2
- package/design/sdk/components/notification/notification.css +6 -6
- package/design/sdk/components/otp-input/otp-input.css +8 -8
- package/design/sdk/components/pagination/pagination.css +2 -2
- package/design/sdk/components/picture/picture.css +5 -5
- package/design/sdk/components/progress-steps/progress-steps.css +6 -6
- package/design/sdk/components/query-error/query-error.css +5 -11
- package/design/sdk/components/radio-group/radio-group.css +2 -2
- package/design/sdk/components/scheduler/scheduler.css +9 -15
- package/design/sdk/components/scrollable/scrollable.css +5 -5
- package/design/sdk/components/scrollbar/scrollbar.css +3 -3
- package/design/sdk/components/select/select.css +1 -1
- package/design/sdk/components/skeleton/skeleton.css +2 -2
- package/design/sdk/components/slider/slider.css +8 -13
- package/design/sdk/components/standings/standings.css +7 -8
- package/design/sdk/components/stat-tile/stat-tile.css +3 -3
- package/design/sdk/components/stream/stream.css +7 -13
- package/design/sdk/components/table/table.css +13 -13
- package/design/sdk/components/tabs/tabs.css +2 -2
- package/design/sdk/components/textarea/textarea.css +13 -22
- package/design/sdk/components/timeline/timeline.css +4 -4
- package/design/sdk/components/toolbar/toolbar.css +6 -6
- package/design/sdk/components/tooltip/tooltip.css +3 -3
- package/design/sdk/components/tooltip/tooltip.ts +1 -1
- package/design/sdk/components/tree/selected-tint.css +3 -3
- package/design/sdk/foundations/colors/colors.css +363 -421
- package/design/sdk/foundations/colors/colors.ts +27 -25
- package/design/sdk/foundations/colors/shared/contrast.ts +10 -10
- package/design/sdk/foundations/elevation/elevation.css +2 -2
- package/design/sdk/foundations/elevation/elevation.ts +1 -1
- package/design/sdk/foundations/elevation/shared/elevation/scene.css +16 -11
- package/design/sdk/ready.json +4 -109
- package/design/tabs.ts +1 -1
- package/design/toggletip.ts +85 -0
- package/fesm2022/ethlete-components.mjs +725 -417
- package/fesm2022/ethlete-components.mjs.map +1 -1
- package/generators/generators.json +10 -0
- package/generators/migrate-overlay-and-column-api/column-visibility-host.js +102 -0
- package/generators/migrate-overlay-and-column-api/migration.js +39 -0
- package/generators/migrate-overlay-and-column-api/overlay-and-column-api.js +18 -0
- package/generators/migrate-overlay-and-column-api/overlay-result.js +399 -0
- package/generators/migrate-overlay-and-column-api/schema.json +26 -0
- package/generators/migrate-overlay-and-column-api/source-scan.js +171 -0
- package/generators/migrate-tabs-active-underline/migration.js +31 -0
- package/generators/migrate-tabs-active-underline/schema.json +26 -0
- package/generators/migrate-tabs-active-underline/tabs-active-underline.js +46 -0
- package/migrations.json +18 -0
- package/package.json +2 -2
- package/src/lib/accordion/accordion.component.css +10 -11
- package/src/lib/avatar/avatar-group.component.css +1 -1
- package/src/lib/avatar/avatar.component.css +3 -3
- package/src/lib/badge/badge.component.css +13 -9
- package/src/lib/banner/banner.component.css +5 -5
- package/src/lib/bracket/bracket-default-continue.component.css +2 -2
- package/src/lib/bracket/bracket-default-final-match.component.css +6 -6
- package/src/lib/bracket/bracket-default-round-header.component.css +2 -2
- package/src/lib/bracket/bracket-default-section-title.component.css +1 -1
- package/src/lib/bracket/bracket-pick-card.component.css +21 -21
- package/src/lib/bracket/bracket-rounds-list.component.css +1 -1
- package/src/lib/bracket/bracket.component.css +2 -2
- package/src/lib/bracket/layouts/swiss/bracket-swiss-round-header.component.css +65 -0
- package/src/lib/bracket/layouts/swiss/bracket-swiss-styles.component.css +5 -1
- package/src/lib/breadcrumb/breadcrumb-overflow.component.css +3 -3
- package/src/lib/breadcrumb/breadcrumb.component.css +5 -6
- package/src/lib/button/button-properties-styles.component.css +12 -12
- package/src/lib/button/button.component.css +52 -35
- package/src/lib/button/fab.component.css +17 -20
- package/src/lib/button/icon-button.component.css +15 -19
- package/src/lib/button/split-button.component.css +11 -14
- package/src/lib/button/text-button.component.css +1 -1
- package/src/lib/button/window-control-button.component.css +21 -32
- package/src/lib/calendar/calendar-comparison-band-styles.component.css +1 -1
- package/src/lib/calendar/calendar-week-numbers-styles.component.css +3 -3
- package/src/lib/calendar/calendar.component.css +21 -23
- package/src/lib/card/card.component.css +5 -5
- package/src/lib/carousel/carousel-autoplay-styles.component.css +2 -8
- package/src/lib/carousel/carousel.component.css +7 -19
- package/src/lib/chart/bar-chart.component.css +6 -6
- package/src/lib/chart/chart-grid.component.css +1 -1
- package/src/lib/chart/chart-legend.component.css +2 -2
- package/src/lib/chart/chart-tooltip.component.css +2 -2
- package/src/lib/chart/line-chart-tooltip.component.css +2 -2
- package/src/lib/chart/line-chart.component.css +11 -11
- package/src/lib/chart/pie-chart.component.css +8 -8
- package/src/lib/chart/sankey-chart.component.css +13 -13
- package/src/lib/chip/chip.component.css +15 -17
- package/src/lib/command-palette/command-palette-item.component.css +5 -5
- package/src/lib/command-palette/command-palette.component.css +3 -3
- package/src/lib/description-list/description-list.component.css +2 -2
- package/src/lib/divider/divider.component.css +2 -2
- package/src/lib/empty-state/empty-state.component.css +4 -4
- package/src/lib/floating-action/floating-action-styles.component.css +3 -3
- package/src/lib/focus-ring/focus-ring-styles.component.css +1 -1
- package/src/lib/forms/cascader/cascader-breadcrumb-styles.component.css +8 -8
- package/src/lib/forms/cascader/cascader-panel.component.css +27 -24
- package/src/lib/forms/cascader/cascader-sheet-styles.component.css +3 -3
- package/src/lib/forms/cascader/cascader.component.css +1 -1
- package/src/lib/forms/checkbox/checkbox.component.css +26 -39
- package/src/lib/forms/choice-field/choice-field-card-styles.component.css +3 -3
- package/src/lib/forms/choice-field/choice-field.component.css +7 -7
- package/src/lib/forms/color-input/color-input.component.css +2 -3
- package/src/lib/forms/color-input/color-picker-panel.component.css +16 -15
- package/src/lib/forms/date-time/date-input/date-input.component.css +1 -1
- package/src/lib/forms/date-time/date-picker-panel.component.css +8 -5
- package/src/lib/forms/date-time/date-range-presets.component.css +2 -2
- package/src/lib/forms/date-time/date-time-input/date-time-input.component.css +4 -4
- package/src/lib/forms/date-time/date-time-range-input/date-time-range-input.component.css +3 -3
- package/src/lib/forms/date-time/duration-input/duration-input.component.css +3 -3
- package/src/lib/forms/date-time/range-input-shell-styles.component.css +2 -2
- package/src/lib/forms/date-time/time-input/time-input.component.css +1 -1
- package/src/lib/forms/description/description.component.css +1 -1
- package/src/lib/forms/dropzone/dropzone-crop.component.css +8 -8
- package/src/lib/forms/dropzone/dropzone-item.component.css +5 -5
- package/src/lib/forms/dropzone/dropzone-preview-styles.component.css +5 -5
- package/src/lib/forms/dropzone/dropzone-readonly-styles.component.css +1 -1
- package/src/lib/forms/dropzone/dropzone-row-styles.component.css +3 -3
- package/src/lib/forms/dropzone/dropzone.component.css +20 -22
- package/src/lib/forms/form-field/counter.component.css +2 -2
- package/src/lib/forms/form-field/form-field-control-suffix-styles.component.css +12 -14
- package/src/lib/forms/form-field/form-field-suffix-overlap-styles.component.css +1 -1
- package/src/lib/forms/form-field/form-field-text-shell-styles.component.css +22 -35
- package/src/lib/forms/form-field/form-field.component.css +9 -10
- package/src/lib/forms/form-field/form-support-styles.component.css +2 -2
- package/src/lib/forms/form-field/headless/label.directive.css +2 -2
- package/src/lib/forms/form-field/hint.component.css +2 -2
- package/src/lib/forms/input/input.component.css +1 -1
- package/src/lib/forms/input/number-input.component.css +5 -5
- package/src/lib/forms/input/password-input.component.css +7 -8
- package/src/lib/forms/multi-language-rich-text-editor/tools/multi-language-rich-text-editor-language-tool.component.css +7 -10
- package/src/lib/forms/otp-input/otp-input.component.css +11 -15
- package/src/lib/forms/phone-input/phone-input.component.css +4 -5
- package/src/lib/forms/rating/rating.component.css +8 -9
- package/src/lib/forms/rich-text-editor/rich-text-content-styles.component.css +6 -6
- package/src/lib/forms/rich-text-editor/rich-text-editor-floating-toolbar.component.css +7 -4
- package/src/lib/forms/rich-text-editor/rich-text-editor-image-editor.component.css +6 -6
- package/src/lib/forms/rich-text-editor/rich-text-editor-link-editor.component.css +4 -4
- package/src/lib/forms/rich-text-editor/rich-text-editor-token-popup.component.css +12 -9
- package/src/lib/forms/rich-text-editor/rich-text-editor.component.css +6 -8
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-image-styles.component.css +7 -7
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-styles.component.css +2 -2
- package/src/lib/forms/rich-text-editor/tools/rich-text-editor-table-tool.component.css +4 -4
- package/src/lib/forms/select/select-extras-styles.component.css +10 -13
- package/src/lib/forms/select/select-option-group.component.css +2 -2
- package/src/lib/forms/select/select-option-styles.component.css +6 -6
- package/src/lib/forms/select/select-panel.component.css +13 -10
- package/src/lib/forms/select/select.component.css +4 -4
- package/src/lib/forms/selection-card-styles.component.css +10 -14
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group-select-all.component.css +11 -21
- package/src/lib/forms/selection-list/checkbox-group/checkbox-group.component.css +4 -4
- package/src/lib/forms/selection-list/checkbox-group/checkbox-option.component.css +11 -21
- package/src/lib/forms/selection-list/radio-group/radio-group.component.css +4 -4
- package/src/lib/forms/selection-list/radio-group/radio.component.css +10 -20
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button-group.component.css +7 -7
- package/src/lib/forms/selection-list/segmented-button-group/segmented-button.component.css +16 -15
- package/src/lib/forms/slider/range-slider.component.css +18 -24
- package/src/lib/forms/slider/slider.component.css +18 -24
- package/src/lib/forms/switch/switch.component.css +19 -22
- package/src/lib/forms/tag-input/tag-input.component.css +1 -1
- package/src/lib/forms/textarea/textarea.component.css +1 -1
- package/src/lib/grid/grid-debug.component.css +18 -18
- package/src/lib/grid/grid-item-default-actions.component.css +2 -2
- package/src/lib/grid/grid-item.component.css +3 -4
- package/src/lib/grid/grid.component.css +2 -2
- package/src/lib/kbd/kbd.component.css +3 -3
- package/src/lib/loader/brand-loader/brand-loader.component.css +3 -3
- package/src/lib/loader/progress-bar/progress-bar.component.css +1 -1
- package/src/lib/loader/spinner/spinner-styles.component.css +1 -1
- package/src/lib/match/match-card.component.css +18 -29
- package/src/lib/match/match-participant.component.css +11 -11
- package/src/lib/match/match-score.component.css +1 -1
- package/src/lib/match/match-scoreline.component.css +3 -3
- package/src/lib/menu/menu-group-label.component.css +1 -1
- package/src/lib/menu/menu-item-shortcut.component.css +1 -1
- package/src/lib/menu/menu-item-submenu-icon.component.css +1 -1
- package/src/lib/menu/menu-search-styles.component.css +3 -3
- package/src/lib/menu/menu-selection-item.component.css +2 -2
- package/src/lib/menu/menu-separator.component.css +1 -1
- package/src/lib/menu/menu.component.css +13 -10
- package/src/lib/notification/notification.component.css +10 -10
- package/src/lib/overlay/alert-dialog/alert-dialog.component.css +2 -2
- package/src/lib/overlay/floating-tip-styles.component.css +4 -4
- package/src/lib/overlay/overlay-container.component.css +9 -6
- package/src/lib/overlay/strategies/overlay-arrow-styles.component.css +2 -2
- package/src/lib/overlay/strategies/sheet-styles.component.css +2 -2
- package/src/lib/pagination/pagination.component.css +9 -10
- package/src/lib/progress-steps/progress-step.component.css +19 -19
- package/src/lib/query-error/query-error.component.css +1 -1
- package/src/lib/scheduler/scheduler-agenda-view.component.css +8 -8
- package/src/lib/scheduler/scheduler-appointment-drag-styles.component.css +4 -1
- package/src/lib/scheduler/scheduler-appointment-styles.component.css +12 -10
- package/src/lib/scheduler/scheduler-edit-color.component.css +2 -2
- package/src/lib/scheduler/scheduler-edit-surface-breadcrumb.component.css +2 -2
- package/src/lib/scheduler/scheduler-edit-surface-children.component.css +4 -4
- package/src/lib/scheduler/scheduler-month-view.component.css +16 -18
- package/src/lib/scheduler/scheduler-time-grid-view.component.css +24 -26
- package/src/lib/scheduler/scheduler.component.css +1 -1
- package/src/lib/scrollable/headless/scrollable-buttons.component.css +55 -6
- package/src/lib/scrollable/headless/scrollable-masks.component.css +2 -2
- package/src/lib/scrollable/headless/scrollable-navigation.component.css +2 -2
- package/src/lib/scrollbar/scrollbar.component.css +2 -2
- package/src/lib/skeleton/skeleton.component.css +2 -8
- package/src/lib/standings/standings-pick.component.css +13 -21
- package/src/lib/standings/standings.component.css +24 -30
- package/src/lib/stat-tile/stat-tile-sparkline.component.css +2 -2
- package/src/lib/stat-tile/stat-tile.component.css +5 -5
- package/src/lib/stream/consent/stream-consent.component.css +2 -2
- package/src/lib/stream/error/stream-player-error.component.css +2 -2
- package/src/lib/stream/loading/stream-player-loading.component.css +3 -3
- package/src/lib/stream/pip/pip-slot-placeholder.component.css +2 -2
- package/src/lib/stream/pip/pip-stage-styles.component.css +3 -6
- package/src/lib/stream/pip/pip-window.component.css +4 -5
- package/src/lib/stream/stream-overlay-card-styles.component.css +4 -4
- package/src/lib/stream/stream-player-slot-styles.component.css +1 -1
- package/src/lib/table/table-column-menu-trigger.component.css +1 -1
- package/src/lib/table/table-expander-cell.component.css +2 -2
- package/src/lib/table/table-filter-trigger.component.css +4 -4
- package/src/lib/table/table-group-header-row.component.css +1 -1
- package/src/lib/table/table-reorder-overlay.component.css +4 -4
- package/src/lib/table/table-resize-grip.component.css +4 -5
- package/src/lib/table/table-row-box-styles.component.css +7 -11
- package/src/lib/table/table-select-cell.component.css +7 -7
- package/src/lib/table/table-sort-priority-styles.component.css +1 -1
- package/src/lib/table/table.component.css +37 -49
- package/src/lib/tabs/tab-bar-styles.component.css +44 -8
- package/src/lib/time-picker/time-picker.component.css +16 -25
- package/src/lib/timeline/timeline-item.component.css +7 -10
- package/src/lib/timeline/timeline.component.css +1 -1
- package/src/lib/toggletip/toggletip.component.css +6 -1
- package/src/lib/toolbar/toolbar.component.css +1 -1
- package/src/lib/tooltip/tooltip.component.css +4 -4
- package/src/lib/tree/tree.component.css +18 -18
- package/types/ethlete-components.d.ts +85 -28
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
const OPENERS = '([{';
|
|
2
|
+
const CLOSERS = ')]}';
|
|
3
|
+
/** Replaces string, template and comment contents with spaces, keeping every offset and newline. */
|
|
4
|
+
export const maskSource = (source) => {
|
|
5
|
+
const out = source.split('');
|
|
6
|
+
const blank = (from, to) => {
|
|
7
|
+
for (let i = from; i < to; i++)
|
|
8
|
+
if (out[i] !== '\n')
|
|
9
|
+
out[i] = ' ';
|
|
10
|
+
};
|
|
11
|
+
const templateDepths = [];
|
|
12
|
+
let depth = 0;
|
|
13
|
+
let i = 0;
|
|
14
|
+
const scanTemplate = () => {
|
|
15
|
+
const start = i;
|
|
16
|
+
while (i < source.length) {
|
|
17
|
+
if (source[i] === '\\') {
|
|
18
|
+
i += 2;
|
|
19
|
+
continue;
|
|
20
|
+
}
|
|
21
|
+
if (source[i] === '`') {
|
|
22
|
+
blank(start, i);
|
|
23
|
+
i++;
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (source[i] === '$' && source[i + 1] === '{') {
|
|
27
|
+
blank(start, i);
|
|
28
|
+
templateDepths.push(depth);
|
|
29
|
+
depth++;
|
|
30
|
+
i += 2;
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
i++;
|
|
34
|
+
}
|
|
35
|
+
blank(start, i);
|
|
36
|
+
};
|
|
37
|
+
while (i < source.length) {
|
|
38
|
+
const char = source[i];
|
|
39
|
+
const next = source[i + 1];
|
|
40
|
+
if (char === '/' && next === '/') {
|
|
41
|
+
const end = source.indexOf('\n', i);
|
|
42
|
+
const stop = end === -1 ? source.length : end;
|
|
43
|
+
blank(i, stop);
|
|
44
|
+
i = stop;
|
|
45
|
+
}
|
|
46
|
+
else if (char === '/' && next === '*') {
|
|
47
|
+
const end = source.indexOf('*/', i + 2);
|
|
48
|
+
const stop = end === -1 ? source.length : end + 2;
|
|
49
|
+
blank(i, stop);
|
|
50
|
+
i = stop;
|
|
51
|
+
}
|
|
52
|
+
else if (char === "'" || char === '"') {
|
|
53
|
+
let j = i + 1;
|
|
54
|
+
while (j < source.length && source[j] !== char && source[j] !== '\n')
|
|
55
|
+
j += source[j] === '\\' ? 2 : 1;
|
|
56
|
+
blank(i + 1, j);
|
|
57
|
+
i = j + 1;
|
|
58
|
+
}
|
|
59
|
+
else if (char === '`') {
|
|
60
|
+
i++;
|
|
61
|
+
scanTemplate();
|
|
62
|
+
}
|
|
63
|
+
else if (char === '{') {
|
|
64
|
+
depth++;
|
|
65
|
+
i++;
|
|
66
|
+
}
|
|
67
|
+
else if (char === '}') {
|
|
68
|
+
depth--;
|
|
69
|
+
i++;
|
|
70
|
+
if (templateDepths.length > 0 && templateDepths[templateDepths.length - 1] === depth) {
|
|
71
|
+
templateDepths.pop();
|
|
72
|
+
scanTemplate();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
i++;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return out.join('');
|
|
80
|
+
};
|
|
81
|
+
/** The index of the bracket closing the one at `open`, or -1. */
|
|
82
|
+
export const matchForward = (masked, open) => {
|
|
83
|
+
let depth = 0;
|
|
84
|
+
for (let i = open; i < masked.length; i++) {
|
|
85
|
+
const char = masked[i] ?? '';
|
|
86
|
+
if (OPENERS.includes(char))
|
|
87
|
+
depth++;
|
|
88
|
+
else if (CLOSERS.includes(char) && --depth === 0)
|
|
89
|
+
return i;
|
|
90
|
+
}
|
|
91
|
+
return -1;
|
|
92
|
+
};
|
|
93
|
+
/** The index of the unclosed `bracket` that encloses `from`, or -1. */
|
|
94
|
+
export const enclosingOpen = (masked, from, bracket) => {
|
|
95
|
+
let depth = 0;
|
|
96
|
+
for (let i = from - 1; i >= 0; i--) {
|
|
97
|
+
const char = masked[i] ?? '';
|
|
98
|
+
if (CLOSERS.includes(char))
|
|
99
|
+
depth++;
|
|
100
|
+
else if (OPENERS.includes(char)) {
|
|
101
|
+
if (depth === 0)
|
|
102
|
+
return char === bracket ? i : -1;
|
|
103
|
+
depth--;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
return -1;
|
|
107
|
+
};
|
|
108
|
+
/** The end of an expression starting at `from`: the first depth-0 `,` `;` or unmatched closer. */
|
|
109
|
+
export const expressionEnd = (masked, from) => {
|
|
110
|
+
let depth = 0;
|
|
111
|
+
for (let i = from; i < masked.length; i++) {
|
|
112
|
+
const char = masked[i] ?? '';
|
|
113
|
+
if (OPENERS.includes(char))
|
|
114
|
+
depth++;
|
|
115
|
+
else if (CLOSERS.includes(char)) {
|
|
116
|
+
if (depth === 0)
|
|
117
|
+
return i;
|
|
118
|
+
depth--;
|
|
119
|
+
}
|
|
120
|
+
else if (depth === 0 && (char === ',' || char === ';'))
|
|
121
|
+
return i;
|
|
122
|
+
}
|
|
123
|
+
return masked.length;
|
|
124
|
+
};
|
|
125
|
+
export const skipSpace = (masked, from) => {
|
|
126
|
+
let i = from;
|
|
127
|
+
while (i < masked.length && /\s/.test(masked[i] ?? ''))
|
|
128
|
+
i++;
|
|
129
|
+
return i;
|
|
130
|
+
};
|
|
131
|
+
export const skipSpaceBack = (masked, from) => {
|
|
132
|
+
let i = from;
|
|
133
|
+
while (i >= 0 && /\s/.test(masked[i] ?? ''))
|
|
134
|
+
i--;
|
|
135
|
+
return i;
|
|
136
|
+
};
|
|
137
|
+
/** Splits `text` at depth-0 occurrences of `separator`, returning `[start, end]` ranges. */
|
|
138
|
+
export const splitTopLevel = (masked, from, to, separator) => {
|
|
139
|
+
const ranges = [];
|
|
140
|
+
let depth = 0;
|
|
141
|
+
let start = from;
|
|
142
|
+
for (let i = from; i < to; i++) {
|
|
143
|
+
const char = masked[i] ?? '';
|
|
144
|
+
if (OPENERS.includes(char) || char === '<')
|
|
145
|
+
depth++;
|
|
146
|
+
else if (CLOSERS.includes(char) || (char === '>' && masked[i - 1] !== '='))
|
|
147
|
+
depth--;
|
|
148
|
+
else if (depth === 0 && char === separator) {
|
|
149
|
+
ranges.push([start, i]);
|
|
150
|
+
start = i + 1;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
ranges.push([start, to]);
|
|
154
|
+
return ranges;
|
|
155
|
+
};
|
|
156
|
+
export const lineAt = (source, offset) => source.slice(0, offset).split('\n').length;
|
|
157
|
+
export const lineText = (source, offset) => source.split('\n')[lineAt(source, offset) - 1]?.trim() ?? '';
|
|
158
|
+
export const finding = (source, offset, reason) => ({
|
|
159
|
+
line: lineAt(source, offset),
|
|
160
|
+
reason,
|
|
161
|
+
text: lineText(source, offset),
|
|
162
|
+
});
|
|
163
|
+
export const applyEdits = (source, edits) => {
|
|
164
|
+
const unique = [...new Map(edits.map((edit) => [`${edit.start}:${edit.end}`, edit])).values()];
|
|
165
|
+
return unique
|
|
166
|
+
.sort((a, b) => b.start - a.start)
|
|
167
|
+
.reduce((text, edit) => text.slice(0, edit.start) + edit.text + text.slice(edit.end), source);
|
|
168
|
+
};
|
|
169
|
+
export const importsEthleteComponents = (source) => /from\s*['"]@ethlete\/components(?:\/[^'"]*)?['"]/.test(source);
|
|
170
|
+
export const escapeRegExp = (value) => value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
171
|
+
//# sourceMappingURL=source-scan.js.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { formatFiles } from '@nx/devkit';
|
|
2
|
+
import { createMigrationScope } from '../migrate-query-error-labels/migration-scope.js';
|
|
3
|
+
import { importsEthleteComponents, removeActiveUnderline } from './tabs-active-underline.js';
|
|
4
|
+
export default async function migrateTabsActiveUnderline(tree, schema) {
|
|
5
|
+
console.log('\n🔎 Removing activeUnderline from provideTabsConfig...');
|
|
6
|
+
const scope = createMigrationScope(tree, schema);
|
|
7
|
+
console.log(` Scope: ${scope.describe()}`);
|
|
8
|
+
const changed = [];
|
|
9
|
+
scope.visit(tree, (filePath) => {
|
|
10
|
+
if (!filePath.endsWith('.ts') || filePath.endsWith('.d.ts'))
|
|
11
|
+
return;
|
|
12
|
+
const content = tree.read(filePath, 'utf-8');
|
|
13
|
+
if (!content || !importsEthleteComponents(content))
|
|
14
|
+
return;
|
|
15
|
+
const next = removeActiveUnderline(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✅ Removed activeUnderline from provideTabsConfig in ${changed.length} file(s).`);
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
console.log('\n✅ Nothing to do.');
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=migration.js.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "migrate-tabs-active-underline",
|
|
4
|
+
"title": "Remove activeUnderline from provideTabsConfig calls",
|
|
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,46 @@
|
|
|
1
|
+
const CALL = /provideTabsConfig\s*\(\s*\{/g;
|
|
2
|
+
const PROPERTIES = [
|
|
3
|
+
/^[ \t]*activeUnderline[ \t]*:[ \t]*(?:true|false)[ \t]*,?[ \t]*(?:\r?\n|(?=\s*\}))/m,
|
|
4
|
+
/activeUnderline\s*:\s*(?:true|false)\s*,\s*/,
|
|
5
|
+
/\s*,\s*activeUnderline\s*:\s*(?:true|false)(?=\s*\})/,
|
|
6
|
+
/activeUnderline\s*:\s*(?:true|false)/,
|
|
7
|
+
];
|
|
8
|
+
const removeProperty = (body) => {
|
|
9
|
+
for (const property of PROPERTIES) {
|
|
10
|
+
if (property.test(body))
|
|
11
|
+
return body.replace(property, '');
|
|
12
|
+
}
|
|
13
|
+
return body;
|
|
14
|
+
};
|
|
15
|
+
const closingBrace = (content, open) => {
|
|
16
|
+
let depth = 0;
|
|
17
|
+
for (let i = open; i < content.length; i++) {
|
|
18
|
+
if (content[i] === '{')
|
|
19
|
+
depth++;
|
|
20
|
+
if (content[i] === '}' && --depth === 0)
|
|
21
|
+
return i;
|
|
22
|
+
}
|
|
23
|
+
return -1;
|
|
24
|
+
};
|
|
25
|
+
export const importsEthleteComponents = (content) => /from\s*['"]@ethlete\/components(?:\/[^'"]*)?['"]/.test(content);
|
|
26
|
+
/** Returns the source without `activeUnderline` in its `provideTabsConfig({...})` calls, or `null` when there is none. */
|
|
27
|
+
export const removeActiveUnderline = (content) => {
|
|
28
|
+
let result = content;
|
|
29
|
+
let from = 0;
|
|
30
|
+
for (;;) {
|
|
31
|
+
CALL.lastIndex = from;
|
|
32
|
+
const call = CALL.exec(result);
|
|
33
|
+
if (!call)
|
|
34
|
+
break;
|
|
35
|
+
const open = call.index + call[0].length - 1;
|
|
36
|
+
const close = closingBrace(result, open);
|
|
37
|
+
if (close === -1)
|
|
38
|
+
break;
|
|
39
|
+
const body = result.slice(open + 1, close);
|
|
40
|
+
const next = removeProperty(`${body}}`).slice(0, -1);
|
|
41
|
+
result = result.slice(0, open + 1) + next + result.slice(close);
|
|
42
|
+
from = open + 1 + next.length;
|
|
43
|
+
}
|
|
44
|
+
return result === content ? null : result;
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=tabs-active-underline.js.map
|
package/migrations.json
CHANGED
|
@@ -180,6 +180,15 @@
|
|
|
180
180
|
"instructions": "./migrations/components-sdk-layer.md",
|
|
181
181
|
"docs": "/components/setup"
|
|
182
182
|
},
|
|
183
|
+
{
|
|
184
|
+
"name": "overlay-and-column-api",
|
|
185
|
+
"version": "1.0.0-next.83",
|
|
186
|
+
"kind": "auto",
|
|
187
|
+
"level": "required",
|
|
188
|
+
"description": "Give opener afterClosed and beforeClosed callbacks a T | undefined result, rename injectCommandPalette to createCommandPaletteOpener and the TableColumnVisibilityHost allColumns key to availableColumns, and report the rest.",
|
|
189
|
+
"generator": "@ethlete/components:migrate-overlay-and-column-api",
|
|
190
|
+
"docs": "/components/overlay-openers"
|
|
191
|
+
},
|
|
183
192
|
{
|
|
184
193
|
"name": "pip-window-z-index",
|
|
185
194
|
"version": "1.0.0-next.100",
|
|
@@ -188,6 +197,15 @@
|
|
|
188
197
|
"description": "Move --et-pip-window-z-index, which is removed, into providePipWindowConfig({ overlayLayer }), and report the sites that need it by hand.",
|
|
189
198
|
"generator": "@ethlete/components:migrate-pip-window-z-index",
|
|
190
199
|
"docs": "/components/stream"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
"name": "tabs-active-underline",
|
|
203
|
+
"version": "1.0.0-next.101",
|
|
204
|
+
"kind": "auto",
|
|
205
|
+
"level": "required",
|
|
206
|
+
"description": "Remove activeUnderline from provideTabsConfig, which is removed: the active underline is always on.",
|
|
207
|
+
"generator": "@ethlete/components:migrate-tabs-active-underline",
|
|
208
|
+
"docs": "/components/tabs"
|
|
191
209
|
}
|
|
192
210
|
]
|
|
193
211
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethlete/components",
|
|
3
|
-
"version": "1.0.0-next.
|
|
3
|
+
"version": "1.0.0-next.102",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/ethlete-io/ethdk",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ethlete/bracket": "^1.0.0-next.
|
|
26
|
+
"@ethlete/bracket": "^1.0.0-next.7",
|
|
27
27
|
"tslib": "^2.3.0"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
@@ -54,10 +54,10 @@
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.et-accordion {
|
|
57
|
-
--_et-accordion-border-color: var(--et-surface-border
|
|
57
|
+
--_et-accordion-border-color: var(--et-surface-border, rgb(128 128 128 / 0.25));
|
|
58
58
|
|
|
59
59
|
display: block;
|
|
60
|
-
color: var(--et-surface-
|
|
60
|
+
color: var(--et-surface-text, CanvasText);
|
|
61
61
|
border-block-end: 1px solid var(--_et-accordion-border-color);
|
|
62
62
|
|
|
63
63
|
/* The hover lives on the trigger and the border on the host, so this has to reach back up with
|
|
@@ -66,8 +66,8 @@
|
|
|
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-
|
|
70
|
-
var(--et-surface-border
|
|
69
|
+
var(--et-surface-control-text, gray) 35%,
|
|
70
|
+
var(--et-surface-border, rgb(128 128 128 / 0.25))
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
.et-accordion-trigger {
|
|
88
|
-
--_et-accordion-secondary-color: var(--et-surface-
|
|
88
|
+
--_et-accordion-secondary-color: var(--et-surface-text-muted, GrayText);
|
|
89
89
|
|
|
90
90
|
display: flex;
|
|
91
91
|
align-items: center;
|
|
@@ -112,11 +112,11 @@
|
|
|
112
112
|
&:hover {
|
|
113
113
|
background: var(
|
|
114
114
|
--et-accordion-header-hover-background,
|
|
115
|
-
color-mix(in srgb, var(--et-surface-
|
|
115
|
+
color-mix(in srgb, var(--et-surface-tint, gray) 7%, transparent)
|
|
116
116
|
);
|
|
117
117
|
|
|
118
118
|
&:not([aria-disabled='true']) {
|
|
119
|
-
--_et-accordion-secondary-color: var(--et-surface-
|
|
119
|
+
--_et-accordion-secondary-color: var(--et-surface-text, CanvasText);
|
|
120
120
|
|
|
121
121
|
.et-accordion-label {
|
|
122
122
|
text-decoration: var(--et-accordion-header-hover-text-decoration, none);
|
|
@@ -128,18 +128,17 @@
|
|
|
128
128
|
&:active {
|
|
129
129
|
background: var(
|
|
130
130
|
--et-accordion-header-active-background,
|
|
131
|
-
color-mix(in srgb, var(--et-surface-
|
|
131
|
+
color-mix(in srgb, var(--et-surface-tint, gray) 14%, transparent)
|
|
132
132
|
);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
&:focus-visible {
|
|
136
|
-
outline: 2px solid
|
|
137
|
-
light-dark(var(--et-theme-color-ink-solid, currentColor), var(--et-theme-color-primary-solid, currentColor));
|
|
136
|
+
outline: 2px solid light-dark(var(--et-tone-text, currentColor), var(--et-tone-fill, currentColor));
|
|
138
137
|
outline-offset: -2px;
|
|
139
138
|
}
|
|
140
139
|
|
|
141
140
|
&:where([aria-disabled='true']) {
|
|
142
|
-
color: var(--et-surface-
|
|
141
|
+
color: var(--et-surface-text-muted, GrayText);
|
|
143
142
|
cursor: default;
|
|
144
143
|
|
|
145
144
|
&:hover,
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.et-avatar {
|
|
24
|
-
box-shadow: 0 0 0 var(--et-avatar-group-ring-width) var(--et-surface-background
|
|
24
|
+
box-shadow: 0 0 0 var(--et-avatar-group-ring-width) var(--et-surface-background, Canvas);
|
|
25
25
|
|
|
26
26
|
&:not(:first-child) {
|
|
27
27
|
margin-inline-start: calc(-1 * var(--et-avatar-group-overlap));
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
.et-avatar {
|
|
27
27
|
--_et-avatar-icon-size: 2rem;
|
|
28
|
-
--
|
|
28
|
+
--_et-tone-fill-opacity: 1;
|
|
29
29
|
|
|
30
30
|
display: inline-flex;
|
|
31
31
|
align-items: center;
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
overflow: hidden;
|
|
39
39
|
background: var(
|
|
40
40
|
--et-avatar-background,
|
|
41
|
-
|
|
41
|
+
color-mix(in srgb, var(--et-tone-fill) calc(var(--_et-tone-fill-opacity, 1) * 100%), transparent)
|
|
42
42
|
);
|
|
43
|
-
color: var(--et-avatar-color, var(--et-
|
|
43
|
+
color: var(--et-avatar-color, var(--et-tone-on-fill));
|
|
44
44
|
font-size: var(--et-avatar-font-size);
|
|
45
45
|
font-weight: var(--et-avatar-font-weight);
|
|
46
46
|
line-height: 1;
|
|
@@ -36,8 +36,12 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.et-badge {
|
|
39
|
-
--_et-badge-background:
|
|
40
|
-
|
|
39
|
+
--_et-badge-background: color-mix(
|
|
40
|
+
in srgb,
|
|
41
|
+
var(--et-tone-fill) calc(var(--_et-tone-fill-opacity, 1) * 100%),
|
|
42
|
+
transparent
|
|
43
|
+
);
|
|
44
|
+
--_et-badge-color: var(--et-tone-text);
|
|
41
45
|
--_et-badge-border-color: transparent;
|
|
42
46
|
|
|
43
47
|
display: inline-flex;
|
|
@@ -61,19 +65,19 @@
|
|
|
61
65
|
user-select: none;
|
|
62
66
|
|
|
63
67
|
&:where([data-variant='filled']) {
|
|
64
|
-
--
|
|
65
|
-
--_et-badge-color: var(--et-
|
|
66
|
-
--_et-badge-border-color:
|
|
68
|
+
--_et-tone-fill-opacity: 1;
|
|
69
|
+
--_et-badge-color: var(--et-tone-on-fill);
|
|
70
|
+
--_et-badge-border-color: transparent;
|
|
67
71
|
}
|
|
68
72
|
|
|
69
73
|
&:where([data-variant='tonal']) {
|
|
70
|
-
--
|
|
71
|
-
--_et-badge-border-color: var(--et-
|
|
74
|
+
--_et-tone-fill-opacity: 0.16;
|
|
75
|
+
--_et-badge-border-color: var(--et-tone-text);
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
&:where([data-variant='outline']) {
|
|
75
|
-
--
|
|
76
|
-
--_et-badge-border-color: var(--et-
|
|
79
|
+
--_et-tone-fill-opacity: 0;
|
|
80
|
+
--_et-badge-border-color: var(--et-tone-text);
|
|
77
81
|
}
|
|
78
82
|
|
|
79
83
|
/* `md` is the token initial values above, left unset so an ancestor token override still reaches it. */
|
|
@@ -55,14 +55,14 @@
|
|
|
55
55
|
border-radius: var(--et-banner-border-radius);
|
|
56
56
|
/* The tint is whatever type/color resolved onto this host's color scope, so the banner reads as its
|
|
57
57
|
type without a hardcoded color - including a neutral `currentColor` tint for `info` with nothing forced. */
|
|
58
|
-
background: color-mix(in srgb, var(--et-
|
|
59
|
-
border: var(--et-banner-border-width) solid var(--et-
|
|
58
|
+
background: color-mix(in srgb, var(--et-tone-fill, currentColor) 8%, transparent);
|
|
59
|
+
border: var(--et-banner-border-width) solid var(--et-tone-text);
|
|
60
60
|
|
|
61
61
|
> .et-icon {
|
|
62
62
|
flex-shrink: 0;
|
|
63
63
|
inline-size: var(--et-banner-icon-size);
|
|
64
64
|
block-size: var(--et-banner-icon-size);
|
|
65
|
-
color: var(--et-
|
|
65
|
+
color: var(--et-tone-text, currentColor);
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
.et-banner-content {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
margin: 0;
|
|
80
80
|
font-size: var(--et-banner-heading-size);
|
|
81
81
|
font-weight: var(--et-banner-heading-weight);
|
|
82
|
-
color: var(--et-surface-
|
|
82
|
+
color: var(--et-surface-text, currentColor);
|
|
83
83
|
overflow-wrap: anywhere;
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
[etBannerBody] {
|
|
88
88
|
margin: 0;
|
|
89
89
|
font-size: var(--et-banner-description-size);
|
|
90
|
-
color: var(--et-surface-
|
|
90
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
91
91
|
overflow-wrap: anywhere;
|
|
92
92
|
}
|
|
93
93
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
inline-size: 100%;
|
|
11
11
|
block-size: 100%;
|
|
12
12
|
padding: 10px;
|
|
13
|
-
color: var(--et-surface-
|
|
14
|
-
border: 1px dashed var(--et-surface-border
|
|
13
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
14
|
+
border: 1px dashed var(--et-surface-border, rgb(255 255 255 / 0.1));
|
|
15
15
|
border-radius: var(--et-match-card-border-radius, 10px);
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
block-size: 100%;
|
|
12
12
|
gap: 6px;
|
|
13
13
|
padding: 10px;
|
|
14
|
-
background: color-mix(in srgb, var(--et-
|
|
15
|
-
border: 1px solid color-mix(in srgb, var(--et-
|
|
14
|
+
background: color-mix(in srgb, var(--et-tone-fill, transparent) 6%, transparent);
|
|
15
|
+
border: 1px solid color-mix(in srgb, var(--et-tone-fill, currentColor) 45%, transparent);
|
|
16
16
|
border-radius: calc(var(--et-match-card-border-radius, 10px) + 4px);
|
|
17
|
-
box-shadow: 0 0 24px -8px color-mix(in srgb, var(--et-
|
|
17
|
+
box-shadow: 0 0 24px -8px color-mix(in srgb, var(--et-tone-fill, transparent) 50%, transparent);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.et-bracket-final-header {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
justify-content: center;
|
|
24
24
|
gap: 6px;
|
|
25
25
|
min-inline-size: 0;
|
|
26
|
-
color: var(--et-
|
|
26
|
+
color: var(--et-tone-text, currentColor);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.et-bracket-final-trophy {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
overflow: hidden;
|
|
63
63
|
font-size: 11px;
|
|
64
64
|
line-height: 1.3;
|
|
65
|
-
color: var(--et-surface-
|
|
65
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
66
66
|
text-align: center;
|
|
67
67
|
text-overflow: ellipsis;
|
|
68
68
|
white-space: nowrap;
|
|
@@ -71,6 +71,6 @@
|
|
|
71
71
|
/* Decided: the champion line is the answer everyone came for, so it stops being a caption. */
|
|
72
72
|
.et-bracket-final-host:where([data-decided]) .et-bracket-final-champion {
|
|
73
73
|
font-weight: 600;
|
|
74
|
-
color: var(--et-
|
|
74
|
+
color: var(--et-tone-text, currentColor);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
font-size: 14px;
|
|
19
19
|
font-weight: 600;
|
|
20
20
|
line-height: 1.3;
|
|
21
|
-
color: var(--et-surface-
|
|
21
|
+
color: var(--et-surface-text, currentColor);
|
|
22
22
|
text-overflow: ellipsis;
|
|
23
23
|
white-space: nowrap;
|
|
24
24
|
}
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
font-size: 11px;
|
|
31
31
|
line-height: 1.3;
|
|
32
|
-
color: var(--et-surface-
|
|
32
|
+
color: var(--et-surface-text-muted, currentColor);
|
|
33
33
|
text-overflow: ellipsis;
|
|
34
34
|
white-space: nowrap;
|
|
35
35
|
}
|