@inchurch/matcha-theme 21.4.0 → 22.1.0
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/abstracts/_colors.scss +236 -236
- package/abstracts/_elevation.scss +108 -108
- package/abstracts/_functions.scss +321 -321
- package/abstracts/_media-breakpoint.scss +26 -26
- package/abstracts/_theme-api.scss +219 -219
- package/abstracts/_typography.scss +128 -128
- package/base/_reset.scss +446 -445
- package/components/app-page-header.scss +260 -260
- package/components/matcha-accordion.scss +293 -293
- package/components/matcha-audio-player.scss +31 -31
- package/components/matcha-autocomplete.scss +145 -145
- package/components/matcha-avatar.scss +440 -301
- package/components/matcha-badge.scss +120 -120
- package/components/matcha-breadcrumb.scss +231 -231
- package/components/matcha-button-toggle.scss +383 -384
- package/components/matcha-buttons.scss +913 -913
- package/components/matcha-calendar.scss +218 -218
- package/components/matcha-cards.scss +230 -230
- package/components/matcha-chart-card.scss +53 -53
- package/components/matcha-checkbox.scss +255 -255
- package/components/matcha-chip.scss +292 -292
- package/components/matcha-color-pick.scss +34 -34
- package/components/matcha-command-palette.scss +316 -316
- package/components/matcha-contact.scss +35 -0
- package/components/matcha-crop.scss +406 -406
- package/components/matcha-date.scss +81 -81
- package/components/matcha-divider.scss +100 -100
- package/components/matcha-draggable.scss +23 -23
- package/components/matcha-drawer.scss +376 -376
- package/components/matcha-drop-image.scss +14 -14
- package/components/matcha-drop-list.scss +430 -430
- package/components/matcha-emoji.scss +69 -69
- package/components/matcha-empty-state.scss +230 -230
- package/components/matcha-file-uploader.scss +471 -471
- package/components/matcha-flag.scss +103 -103
- package/components/matcha-footer.scss +91 -91
- package/components/matcha-form-field.scss +606 -606
- package/components/matcha-form-section.scss +100 -100
- package/components/matcha-header.scss +135 -135
- package/components/matcha-highlight.scss +164 -164
- package/components/matcha-hint-text.scss +90 -90
- package/components/matcha-horizontal-tree.scss +316 -316
- package/components/matcha-icon.scss +98 -98
- package/components/matcha-image.scss +61 -61
- package/components/matcha-list.scss +211 -211
- package/components/matcha-menu.scss +99 -99
- package/components/matcha-modal.scss +210 -210
- package/components/matcha-nav.scss +581 -581
- package/components/matcha-notification.scss +413 -413
- package/components/matcha-option.scss +170 -170
- package/components/matcha-page-builder.scss +4196 -4196
- package/components/matcha-paginator.scss +689 -689
- package/components/matcha-panel.scss +194 -194
- package/components/matcha-profile-card.scss +50 -50
- package/components/matcha-progress-bar.scss +313 -313
- package/components/matcha-radio.scss +320 -320
- package/components/matcha-ripple.scss +7 -7
- package/components/matcha-scrollbar.scss +33 -33
- package/components/matcha-scrollbox-shadow.scss +120 -120
- package/components/matcha-section.scss +102 -102
- package/components/matcha-select-multiple.scss +56 -56
- package/components/matcha-select.scss +667 -667
- package/components/matcha-skeleton.scss +155 -155
- package/components/matcha-slide-toggle.scss +369 -369
- package/components/matcha-slider.scss +285 -285
- package/components/matcha-snack-bar.scss +259 -259
- package/components/matcha-spin.scss +164 -164
- package/components/matcha-spinner.scss +97 -97
- package/components/matcha-status-pill.scss +38 -18
- package/components/matcha-stepper.scss +376 -376
- package/components/matcha-table-cell.scss +49 -41
- package/components/matcha-table.scss +579 -579
- package/components/matcha-tabs.scss +600 -600
- package/components/matcha-text-editor.scss +105 -105
- package/components/matcha-time.scss +33 -33
- package/components/matcha-timepicker.scss +13 -13
- package/components/matcha-toolbar.scss +359 -359
- package/components/matcha-tooltip.scss +224 -224
- package/components/matcha-tree-view.scss +257 -257
- package/layout/matcha-page-layout.scss +778 -778
- package/main.scss +331 -329
- package/package.json +1 -1
- package/tokens/_animations-tokens.scss +37 -37
- package/tokens/_breakpoints-tokens.scss +35 -35
- package/tokens/_color-tokens.scss +274 -274
- package/tokens/_elevation-tokens.scss +33 -33
- package/tokens/_emit-tokens.scss +324 -324
- package/tokens/_material-palette.scss +1149 -1149
- package/tokens/_primitives.scss +98 -98
- package/tokens/_semantic-aliases.scss +120 -120
- package/tokens/_spacing-tokens.scss +94 -94
- package/tokens/_static-tokens.scss +137 -137
- package/tokens/_typography-tokens.scss +65 -65
- package/vendors/charts.scss +90 -90
|
@@ -1,98 +1,98 @@
|
|
|
1
|
-
// =============================================================================
|
|
2
|
-
// matcha-icon.scss — Icon sizing and theming tokens
|
|
3
|
-
// Aligned with Figma matcha/icon-slot (glyph + container)
|
|
4
|
-
// =============================================================================
|
|
5
|
-
|
|
6
|
-
// ── Icon glyph sizes ────────────────────────────────────────────────────────
|
|
7
|
-
// These override the generated matcha-icons.css with CSS custom properties
|
|
8
|
-
// so consumers can adjust icon sizes at runtime.
|
|
9
|
-
//
|
|
10
|
-
// Glyph scale: xs(12) → sm(16) → md(24) → lg(32) → xl(48)
|
|
11
|
-
// Container: 24px 32px 40px 48px 64px (glyph + 2×8px padding)
|
|
12
|
-
|
|
13
|
-
$icon-size-xs: 12px;
|
|
14
|
-
$icon-size-sm: 16px;
|
|
15
|
-
$icon-size-md: 24px;
|
|
16
|
-
$icon-size-lg: 32px;
|
|
17
|
-
$icon-size-xl: 48px;
|
|
18
|
-
|
|
19
|
-
// matcha-icon[library="symbols"] — renderiza SVG inline via figma-icons.ts.
|
|
20
|
-
// Sem dependência de font externa. Apenas tamanho via [size="..."] tokens.
|
|
21
|
-
|
|
22
|
-
[class^="i-matcha-"],
|
|
23
|
-
[class*=" i-matcha-"],
|
|
24
|
-
matcha-icon[library="symbols"] {
|
|
25
|
-
font-size: var(--matcha-icon-size-md);
|
|
26
|
-
width: var(--matcha-icon-size-md);
|
|
27
|
-
height: var(--matcha-icon-size-md);
|
|
28
|
-
line-height: var(--matcha-icon-size-md);
|
|
29
|
-
|
|
30
|
-
&.i-size-xs,
|
|
31
|
-
&[size="xs"] {
|
|
32
|
-
font-size: var(--matcha-icon-size-xs, #{$icon-size-xs});
|
|
33
|
-
width: var(--matcha-icon-size-xs, #{$icon-size-xs});
|
|
34
|
-
height: var(--matcha-icon-size-xs, #{$icon-size-xs});
|
|
35
|
-
line-height: var(--matcha-icon-size-xs, #{$icon-size-xs});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
&.i-size-sm,
|
|
39
|
-
&[size="sm"] {
|
|
40
|
-
font-size: var(--matcha-icon-size-sm);
|
|
41
|
-
width: var(--matcha-icon-size-sm);
|
|
42
|
-
height: var(--matcha-icon-size-sm);
|
|
43
|
-
line-height: var(--matcha-icon-size-sm);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&.i-size-md,
|
|
47
|
-
&[size="md"] {
|
|
48
|
-
font-size: var(--matcha-icon-size-md);
|
|
49
|
-
width: var(--matcha-icon-size-md);
|
|
50
|
-
height: var(--matcha-icon-size-md);
|
|
51
|
-
line-height: var(--matcha-icon-size-md);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.i-size-lg,
|
|
55
|
-
&[size="lg"] {
|
|
56
|
-
font-size: var(--matcha-icon-size-lg);
|
|
57
|
-
width: var(--matcha-icon-size-lg);
|
|
58
|
-
height: var(--matcha-icon-size-lg);
|
|
59
|
-
line-height: var(--matcha-icon-size-lg);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
&.i-size-xl,
|
|
63
|
-
&[size="xl"] {
|
|
64
|
-
font-size: var(--matcha-icon-size-xl);
|
|
65
|
-
width: var(--matcha-icon-size-xl);
|
|
66
|
-
height: var(--matcha-icon-size-xl);
|
|
67
|
-
line-height: var(--matcha-icon-size-xl);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// ── Theme mixin (color inheritance) ─────────────────────────────────────────
|
|
72
|
-
// Pattern CSS-var: `--matcha-icon-color` resolve a cor final.
|
|
73
|
-
// Cascateia naturalmente — qualquer parent pode override sem specificity battle.
|
|
74
|
-
//
|
|
75
|
-
// <!-- Override no consumer (sem [color] attr): -->
|
|
76
|
-
// .my-banner { --matcha-icon-color: var(--matcha-color-feedback-danger); }
|
|
77
|
-
//
|
|
78
|
-
// <!-- Override no proprio matcha-icon: -->
|
|
79
|
-
// <matcha-icon color="danger" /> // attr seta --matcha-icon-color via SCSS abaixo
|
|
80
|
-
@mixin matcha-icon-theme($theme) {
|
|
81
|
-
matcha-icon,
|
|
82
|
-
[class^="i-matcha-"],
|
|
83
|
-
[class*=" i-matcha-"] {
|
|
84
|
-
color: var(--matcha-icon-color, var(--matcha-color-icon-default));
|
|
85
|
-
|
|
86
|
-
&.color-fg, &[color="fg"] { --matcha-icon-color: var(--matcha-color-fg); }
|
|
87
|
-
&.color-accent, &[color="accent"] { --matcha-icon-color: var(--matcha-color-accent); }
|
|
88
|
-
&.color-primary, &[color="primary"] { --matcha-icon-color: var(--matcha-color-primary); }
|
|
89
|
-
&.color-danger, &[color="danger"] { --matcha-icon-color: var(--matcha-color-danger); }
|
|
90
|
-
&.color-warn, &[color="warn"] { --matcha-icon-color: var(--matcha-color-warn); }
|
|
91
|
-
&.color-success, &[color="success"] { --matcha-icon-color: var(--matcha-color-success); }
|
|
92
|
-
|
|
93
|
-
&[disabled],
|
|
94
|
-
&.disabled {
|
|
95
|
-
opacity: var(--matcha-opacity-disabled, 0.38);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// matcha-icon.scss — Icon sizing and theming tokens
|
|
3
|
+
// Aligned with Figma matcha/icon-slot (glyph + container)
|
|
4
|
+
// =============================================================================
|
|
5
|
+
|
|
6
|
+
// ── Icon glyph sizes ────────────────────────────────────────────────────────
|
|
7
|
+
// These override the generated matcha-icons.css with CSS custom properties
|
|
8
|
+
// so consumers can adjust icon sizes at runtime.
|
|
9
|
+
//
|
|
10
|
+
// Glyph scale: xs(12) → sm(16) → md(24) → lg(32) → xl(48)
|
|
11
|
+
// Container: 24px 32px 40px 48px 64px (glyph + 2×8px padding)
|
|
12
|
+
|
|
13
|
+
$icon-size-xs: 12px;
|
|
14
|
+
$icon-size-sm: 16px;
|
|
15
|
+
$icon-size-md: 24px;
|
|
16
|
+
$icon-size-lg: 32px;
|
|
17
|
+
$icon-size-xl: 48px;
|
|
18
|
+
|
|
19
|
+
// matcha-icon[library="symbols"] — renderiza SVG inline via figma-icons.ts.
|
|
20
|
+
// Sem dependência de font externa. Apenas tamanho via [size="..."] tokens.
|
|
21
|
+
|
|
22
|
+
[class^="i-matcha-"],
|
|
23
|
+
[class*=" i-matcha-"],
|
|
24
|
+
matcha-icon[library="symbols"] {
|
|
25
|
+
font-size: var(--matcha-icon-size-md);
|
|
26
|
+
width: var(--matcha-icon-size-md);
|
|
27
|
+
height: var(--matcha-icon-size-md);
|
|
28
|
+
line-height: var(--matcha-icon-size-md);
|
|
29
|
+
|
|
30
|
+
&.i-size-xs,
|
|
31
|
+
&[size="xs"] {
|
|
32
|
+
font-size: var(--matcha-icon-size-xs, #{$icon-size-xs});
|
|
33
|
+
width: var(--matcha-icon-size-xs, #{$icon-size-xs});
|
|
34
|
+
height: var(--matcha-icon-size-xs, #{$icon-size-xs});
|
|
35
|
+
line-height: var(--matcha-icon-size-xs, #{$icon-size-xs});
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.i-size-sm,
|
|
39
|
+
&[size="sm"] {
|
|
40
|
+
font-size: var(--matcha-icon-size-sm);
|
|
41
|
+
width: var(--matcha-icon-size-sm);
|
|
42
|
+
height: var(--matcha-icon-size-sm);
|
|
43
|
+
line-height: var(--matcha-icon-size-sm);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.i-size-md,
|
|
47
|
+
&[size="md"] {
|
|
48
|
+
font-size: var(--matcha-icon-size-md);
|
|
49
|
+
width: var(--matcha-icon-size-md);
|
|
50
|
+
height: var(--matcha-icon-size-md);
|
|
51
|
+
line-height: var(--matcha-icon-size-md);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.i-size-lg,
|
|
55
|
+
&[size="lg"] {
|
|
56
|
+
font-size: var(--matcha-icon-size-lg);
|
|
57
|
+
width: var(--matcha-icon-size-lg);
|
|
58
|
+
height: var(--matcha-icon-size-lg);
|
|
59
|
+
line-height: var(--matcha-icon-size-lg);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&.i-size-xl,
|
|
63
|
+
&[size="xl"] {
|
|
64
|
+
font-size: var(--matcha-icon-size-xl);
|
|
65
|
+
width: var(--matcha-icon-size-xl);
|
|
66
|
+
height: var(--matcha-icon-size-xl);
|
|
67
|
+
line-height: var(--matcha-icon-size-xl);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ── Theme mixin (color inheritance) ─────────────────────────────────────────
|
|
72
|
+
// Pattern CSS-var: `--matcha-icon-color` resolve a cor final.
|
|
73
|
+
// Cascateia naturalmente — qualquer parent pode override sem specificity battle.
|
|
74
|
+
//
|
|
75
|
+
// <!-- Override no consumer (sem [color] attr): -->
|
|
76
|
+
// .my-banner { --matcha-icon-color: var(--matcha-color-feedback-danger); }
|
|
77
|
+
//
|
|
78
|
+
// <!-- Override no proprio matcha-icon: -->
|
|
79
|
+
// <matcha-icon color="danger" /> // attr seta --matcha-icon-color via SCSS abaixo
|
|
80
|
+
@mixin matcha-icon-theme($theme) {
|
|
81
|
+
matcha-icon,
|
|
82
|
+
[class^="i-matcha-"],
|
|
83
|
+
[class*=" i-matcha-"] {
|
|
84
|
+
color: var(--matcha-icon-color, var(--matcha-color-icon-default));
|
|
85
|
+
|
|
86
|
+
&.color-fg, &[color="fg"] { --matcha-icon-color: var(--matcha-color-fg); }
|
|
87
|
+
&.color-accent, &[color="accent"] { --matcha-icon-color: var(--matcha-color-accent); }
|
|
88
|
+
&.color-primary, &[color="primary"] { --matcha-icon-color: var(--matcha-color-primary); }
|
|
89
|
+
&.color-danger, &[color="danger"] { --matcha-icon-color: var(--matcha-color-danger); }
|
|
90
|
+
&.color-warn, &[color="warn"] { --matcha-icon-color: var(--matcha-color-warn); }
|
|
91
|
+
&.color-success, &[color="success"] { --matcha-icon-color: var(--matcha-color-success); }
|
|
92
|
+
|
|
93
|
+
&[disabled],
|
|
94
|
+
&.disabled {
|
|
95
|
+
opacity: var(--matcha-opacity-disabled, 0.38);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
// =============================================================================
|
|
4
|
-
// matcha-image.scss — Image container with aspect ratio support
|
|
5
|
-
// Aligned with Figma matcha/image:
|
|
6
|
-
// Estado(2: Desativo, Ativado) × Ratio(16:9 default)
|
|
7
|
-
// Angular: matcha-image
|
|
8
|
-
// =============================================================================
|
|
9
|
-
|
|
10
|
-
@mixin matcha-image-theme($theme) {
|
|
11
|
-
|
|
12
|
-
.matcha-image {
|
|
13
|
-
background: var(--matcha-color-surface);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.matcha-image__placeholder-icon {
|
|
17
|
-
color: var(--matcha-color-text-placeholder);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// ── Layout ──────────────────────────────────────────────────────────────────
|
|
22
|
-
|
|
23
|
-
.matcha-image {
|
|
24
|
-
position: relative;
|
|
25
|
-
display: flex;
|
|
26
|
-
align-items: center;
|
|
27
|
-
justify-content: center;
|
|
28
|
-
border-radius: var(--matcha-radius-lg, 8px);
|
|
29
|
-
overflow: hidden;
|
|
30
|
-
width: 100%;
|
|
31
|
-
aspect-ratio: 16 / 9;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.matcha-image__img {
|
|
35
|
-
width: 100%;
|
|
36
|
-
height: 100%;
|
|
37
|
-
object-fit: cover;
|
|
38
|
-
display: block;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.matcha-image__placeholder-icon {
|
|
42
|
-
width: var(--matcha-icon-size-lg, 48px);
|
|
43
|
-
height: var(--matcha-icon-size-lg, 48px);
|
|
44
|
-
opacity: 0.5;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// ── Ratios ──────────────────────────────────────────────────────────────────
|
|
48
|
-
|
|
49
|
-
.matcha-image--1x1 {
|
|
50
|
-
aspect-ratio: 1 / 1;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.matcha-image--4x3 {
|
|
54
|
-
aspect-ratio: 4 / 3;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.matcha-image--3x2 {
|
|
58
|
-
aspect-ratio: 3 / 2;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// 16:9 is default, no modifier needed
|
|
1
|
+
@use "sass:map";
|
|
2
|
+
|
|
3
|
+
// =============================================================================
|
|
4
|
+
// matcha-image.scss — Image container with aspect ratio support
|
|
5
|
+
// Aligned with Figma matcha/image:
|
|
6
|
+
// Estado(2: Desativo, Ativado) × Ratio(16:9 default)
|
|
7
|
+
// Angular: matcha-image
|
|
8
|
+
// =============================================================================
|
|
9
|
+
|
|
10
|
+
@mixin matcha-image-theme($theme) {
|
|
11
|
+
|
|
12
|
+
.matcha-image {
|
|
13
|
+
background: var(--matcha-color-surface);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.matcha-image__placeholder-icon {
|
|
17
|
+
color: var(--matcha-color-text-placeholder);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// ── Layout ──────────────────────────────────────────────────────────────────
|
|
22
|
+
|
|
23
|
+
.matcha-image {
|
|
24
|
+
position: relative;
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
border-radius: var(--matcha-radius-lg, 8px);
|
|
29
|
+
overflow: hidden;
|
|
30
|
+
width: 100%;
|
|
31
|
+
aspect-ratio: 16 / 9;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.matcha-image__img {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 100%;
|
|
37
|
+
object-fit: cover;
|
|
38
|
+
display: block;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.matcha-image__placeholder-icon {
|
|
42
|
+
width: var(--matcha-icon-size-lg, 48px);
|
|
43
|
+
height: var(--matcha-icon-size-lg, 48px);
|
|
44
|
+
opacity: 0.5;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// ── Ratios ──────────────────────────────────────────────────────────────────
|
|
48
|
+
|
|
49
|
+
.matcha-image--1x1 {
|
|
50
|
+
aspect-ratio: 1 / 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.matcha-image--4x3 {
|
|
54
|
+
aspect-ratio: 4 / 3;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.matcha-image--3x2 {
|
|
58
|
+
aspect-ratio: 3 / 2;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// 16:9 is default, no modifier needed
|