@inchurch/matcha-theme 20.0.11 → 20.277.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 +404 -404
- package/abstracts/_elevation.scss +102 -102
- package/abstracts/_functions.scss +1186 -1212
- package/abstracts/_media-breakpoint.scss +23 -23
- package/abstracts/_theme-api.scss +230 -0
- package/abstracts/_typography.scss +127 -127
- package/base/_reset.scss +438 -438
- package/components/app-page-header.scss +259 -0
- package/components/matcha-accordion.scss +293 -157
- package/components/matcha-audio-player.scss +1 -2
- package/components/matcha-autocomplete.scss +10 -11
- package/components/matcha-avatar.scss +173 -33
- package/components/matcha-badge.scss +15 -15
- package/components/matcha-breadcrumb.scss +231 -126
- package/components/matcha-button-toggle.scss +46 -2
- package/components/matcha-buttons.scss +908 -784
- package/components/matcha-calendar.scss +99 -35
- package/components/matcha-cards.scss +58 -33
- package/components/matcha-chart-card.scss +5 -12
- package/components/matcha-checkbox.scss +191 -490
- package/components/matcha-chip.scss +297 -212
- package/components/matcha-color-pick.scss +1 -2
- package/components/matcha-command-palette.scss +290 -63
- package/components/matcha-crop.scss +406 -172
- package/components/matcha-date.scss +81 -81
- package/components/matcha-divider.scss +86 -31
- package/components/matcha-draggable.scss +4 -5
- package/components/matcha-drawer.scss +207 -66
- package/components/matcha-drop-image.scss +14 -0
- package/components/matcha-drop-list.scss +87 -47
- package/components/matcha-emoji.scss +2 -2
- package/components/matcha-empty-state.scss +195 -83
- package/components/matcha-file-uploader.scss +462 -0
- package/components/matcha-flag.scss +93 -52
- package/components/matcha-footer.scss +67 -164
- package/components/matcha-form-field.scss +55 -3
- package/components/matcha-form-section.scss +100 -101
- package/components/matcha-header.scss +134 -325
- package/components/matcha-highlight.scss +65 -197
- package/components/matcha-hint-text.scss +25 -4
- package/components/matcha-horizontal-tree.scss +316 -317
- package/components/matcha-icon.scss +37 -45
- package/components/matcha-image.scss +2 -3
- package/components/matcha-list.scss +14 -15
- package/components/matcha-menu.scss +15 -2
- package/components/matcha-modal.scss +59 -86
- package/components/matcha-nav.scss +362 -231
- package/components/matcha-notification.scss +412 -197
- package/components/matcha-option.scss +98 -23
- package/components/matcha-page-builder.scss +16 -16
- package/components/matcha-paginator.scss +688 -235
- package/components/matcha-panel.scss +42 -27
- package/components/matcha-profile-card.scss +50 -50
- package/components/matcha-progress-bar.scss +257 -153
- package/components/matcha-radio.scss +244 -452
- package/components/matcha-scrollbar.scss +1 -2
- package/components/matcha-scrollbox-shadow.scss +120 -122
- package/components/matcha-section.scss +5 -9
- package/components/matcha-select-multiple.scss +56 -0
- package/components/matcha-select.scss +10 -10
- package/components/matcha-skeleton.scss +24 -7
- package/components/matcha-slide-toggle.scss +80 -301
- package/components/matcha-slider.scss +174 -77
- package/components/matcha-snack-bar.scss +123 -131
- package/components/matcha-spin.scss +12 -103
- package/components/matcha-spinner.scss +76 -57
- package/components/matcha-status-pill.scss +82 -0
- package/components/matcha-stepper.scss +376 -177
- package/components/matcha-table.scss +568 -785
- package/components/matcha-tabs.scss +622 -469
- package/components/matcha-text-editor.scss +78 -78
- package/components/matcha-time.scss +2 -2
- package/components/matcha-toolbar.scss +359 -206
- package/components/matcha-tooltip.scss +158 -62
- package/components/matcha-tree-view.scss +189 -0
- package/fonts/manrope/manrope-latin-ext.woff2 +0 -0
- package/fonts/manrope/manrope-latin.woff2 +0 -0
- package/layout/matcha-page-layout.scss +4 -4
- package/main.scss +237 -265
- package/package.json +1 -1
- package/tokens/_animations-tokens.scss +37 -37
- package/tokens/_breakpoints-tokens.scss +35 -26
- package/tokens/_color-tokens.scss +1149 -1152
- package/tokens/_css-custom-properties.scss +704 -568
- package/tokens/_primitives.scss +82 -0
- package/tokens/_semantic-aliases.scss +120 -0
- package/tokens/_spacing-tokens.scss +94 -94
- package/vendors/angular-editor.scss +56 -56
- package/vendors/angular-material-fixes.scss +297 -297
- package/vendors/charts.scss +92 -92
- package/vendors/ng5-slider.scss +56 -56
- package/vendors/ngx-material-timepicker.scss +50 -50
- package/components/matcha-uploader.scss +0 -215
- package/fonts/CircularStd-Black.eot +0 -0
- package/fonts/CircularStd-Black.svg +0 -3426
- package/fonts/CircularStd-Black.ttf +0 -0
- package/fonts/CircularStd-Black.woff +0 -0
- package/fonts/CircularStd-Black.woff2 +0 -0
- package/fonts/CircularStd-Bold.eot +0 -0
- package/fonts/CircularStd-Bold.otf +0 -0
- package/fonts/CircularStd-Bold.svg +0 -13532
- package/fonts/CircularStd-Bold.ttf +0 -0
- package/fonts/CircularStd-Bold.woff +0 -0
- package/fonts/CircularStd-Bold.woff2 +0 -0
- package/fonts/CircularStd-Medium.eot +0 -0
- package/fonts/CircularStd-Medium.otf +0 -0
- package/fonts/CircularStd-Medium.svg +0 -13511
- package/fonts/CircularStd-Medium.ttf +0 -0
- package/fonts/CircularStd-Medium.woff +0 -0
- package/fonts/CircularStd-Medium.woff2 +0 -0
- package/fonts/CircularStd-Regular.eot +0 -0
- package/fonts/CircularStd-Regular.otf +0 -0
- package/fonts/CircularStd-Regular.svg +0 -2378
- package/fonts/CircularStd-Regular.ttf +0 -0
- package/fonts/CircularStd-Regular.woff +0 -0
- package/fonts/CircularStd-Regular.woff2 +0 -0
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
// =========================================================
|
|
2
|
-
// * Matcha Date Styles
|
|
3
|
-
// =========================================================
|
|
4
|
-
|
|
5
|
-
@mixin matcha-date-theme($theme) {
|
|
6
|
-
.matcha-date-input {
|
|
7
|
-
color: var(--matcha-color-fg
|
|
8
|
-
|
|
9
|
-
&::placeholder {
|
|
10
|
-
color: var(--matcha-color-text-placeholder
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
&:disabled {
|
|
14
|
-
opacity: var(--matcha-opacity-disabled, 0.38);
|
|
15
|
-
color: var(--matcha-color-disabled
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.matcha-date-input {
|
|
21
|
-
width: 100%;
|
|
22
|
-
font-size: var(--matcha-text-body-md, 14px);
|
|
23
|
-
font-family: inherit;
|
|
24
|
-
line-height: 1.5;
|
|
25
|
-
color: var(--matcha-text-primary, #333);
|
|
26
|
-
background-color: transparent;
|
|
27
|
-
border: none;
|
|
28
|
-
outline: none;
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
|
|
31
|
-
&::placeholder {
|
|
32
|
-
color: var(--matcha-text-placeholder, #999);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
&:disabled {
|
|
36
|
-
pointer-events: none; cursor: default;
|
|
37
|
-
opacity: 0.6;
|
|
38
|
-
color: var(--matcha-text-disabled, #999);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Customização do ícone do calendário
|
|
42
|
-
&::-webkit-calendar-picker-indicator {
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
filter: opacity(0.6);
|
|
45
|
-
transition: filter 0.2s ease;
|
|
46
|
-
|
|
47
|
-
&:hover {
|
|
48
|
-
filter: opacity(1);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
&:disabled::-webkit-calendar-picker-indicator {
|
|
53
|
-
pointer-events: none; cursor: default;
|
|
54
|
-
opacity: 0.3;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Firefox
|
|
58
|
-
&::-moz-calendar-picker-indicator {
|
|
59
|
-
cursor: pointer;
|
|
60
|
-
opacity: 0.6;
|
|
61
|
-
transition: opacity 0.2s ease;
|
|
62
|
-
|
|
63
|
-
&:hover {
|
|
64
|
-
opacity: 1;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
&:disabled::-moz-calendar-picker-indicator {
|
|
69
|
-
pointer-events: none; cursor: default;
|
|
70
|
-
opacity: 0.3;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// Integração com matcha-form-field
|
|
75
|
-
matcha-form-field {
|
|
76
|
-
matcha-date {
|
|
77
|
-
width: 100%;
|
|
78
|
-
display: block;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
1
|
+
// =========================================================
|
|
2
|
+
// * Matcha Date Styles
|
|
3
|
+
// =========================================================
|
|
4
|
+
|
|
5
|
+
@mixin matcha-date-theme($theme) {
|
|
6
|
+
.matcha-date-input {
|
|
7
|
+
color: var(--matcha-color-fg);
|
|
8
|
+
|
|
9
|
+
&::placeholder {
|
|
10
|
+
color: var(--matcha-color-text-placeholder);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&:disabled {
|
|
14
|
+
opacity: var(--matcha-opacity-disabled, 0.38);
|
|
15
|
+
color: var(--matcha-color-disabled);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.matcha-date-input {
|
|
21
|
+
width: 100%;
|
|
22
|
+
font-size: var(--matcha-text-body-md, 14px);
|
|
23
|
+
font-family: inherit;
|
|
24
|
+
line-height: 1.5;
|
|
25
|
+
color: var(--matcha-text-primary, #333);
|
|
26
|
+
background-color: transparent;
|
|
27
|
+
border: none;
|
|
28
|
+
outline: none;
|
|
29
|
+
cursor: pointer;
|
|
30
|
+
|
|
31
|
+
&::placeholder {
|
|
32
|
+
color: var(--matcha-text-placeholder, #999);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:disabled {
|
|
36
|
+
pointer-events: none; cursor: default;
|
|
37
|
+
opacity: 0.6;
|
|
38
|
+
color: var(--matcha-text-disabled, #999);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Customização do ícone do calendário
|
|
42
|
+
&::-webkit-calendar-picker-indicator {
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
filter: opacity(0.6);
|
|
45
|
+
transition: filter 0.2s ease;
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
filter: opacity(1);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&:disabled::-webkit-calendar-picker-indicator {
|
|
53
|
+
pointer-events: none; cursor: default;
|
|
54
|
+
opacity: 0.3;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Firefox
|
|
58
|
+
&::-moz-calendar-picker-indicator {
|
|
59
|
+
cursor: pointer;
|
|
60
|
+
opacity: 0.6;
|
|
61
|
+
transition: opacity 0.2s ease;
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
opacity: 1;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&:disabled::-moz-calendar-picker-indicator {
|
|
69
|
+
pointer-events: none; cursor: default;
|
|
70
|
+
opacity: 0.3;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Integração com matcha-form-field
|
|
75
|
+
matcha-form-field {
|
|
76
|
+
matcha-date {
|
|
77
|
+
width: 100%;
|
|
78
|
+
display: block;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -1,45 +1,100 @@
|
|
|
1
1
|
// =============================================================================
|
|
2
|
-
// matcha-divider.scss —
|
|
3
|
-
//
|
|
2
|
+
// matcha-divider.scss — Figma DSV3 matcha/divider (14905:34)
|
|
3
|
+
// 2 variants visuais: Direção=Horizontal (280×1px) / Vertical (1×80px+)
|
|
4
|
+
// Cor: matcha/color/text/hint @ matcha/opacity/strong (0.3)
|
|
5
|
+
// Tipografia label: matcha/text/caption (11/14)
|
|
6
|
+
// + extensão M3: slot label opcional ("OU", "Nova seção") + inset variant
|
|
4
7
|
// =============================================================================
|
|
5
8
|
|
|
6
9
|
// ── Structural ──────────────────────────────────────────────────────────────
|
|
10
|
+
// Note: divider não tem animação por design — não precisa de prefers-reduced-motion.
|
|
7
11
|
|
|
8
12
|
matcha-divider {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
flex-shrink: 0;
|
|
12
|
-
|
|
13
|
-
&[direction="horizontal"],
|
|
14
|
-
&:not([direction]) {
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
width: 100%;
|
|
17
|
-
|
|
18
|
-
.matcha-divider-line {
|
|
19
|
-
width: 100%;
|
|
20
|
-
height: 0;
|
|
21
|
-
border-top: var(--matcha-border-hairline, 1px) solid;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
flex-shrink: 0;
|
|
24
15
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
16
|
+
// ── Horizontal default (sem direction ou direction="horizontal") ──
|
|
17
|
+
&[direction="horizontal"],
|
|
18
|
+
&:not([direction]) {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
align-items: center;
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
// ── Vertical ──
|
|
26
|
+
&[direction="vertical"] {
|
|
27
|
+
display: inline-flex;
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: center;
|
|
30
|
+
align-self: stretch;
|
|
33
31
|
}
|
|
34
|
-
}
|
|
35
32
|
}
|
|
36
33
|
|
|
37
|
-
// ──
|
|
34
|
+
// ── Linha — 1px hairline com text/hint @ opacity-strong (canônico Figma) ────
|
|
35
|
+
.matcha-divider-line {
|
|
36
|
+
flex: 1 1 auto;
|
|
37
|
+
background-color: var(--matcha-color-text-hint, #9AA0A6);
|
|
38
|
+
opacity: var(--matcha-opacity-strong, 0.3);
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
matcha-divider[direction="horizontal"] .matcha-divider-line,
|
|
43
|
+
matcha-divider:not([direction]) .matcha-divider-line {
|
|
44
|
+
height: var(--matcha-border-hairline, 1px);
|
|
45
|
+
min-width: var(--matcha-border-hairline, 1px);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
matcha-divider[direction="vertical"] .matcha-divider-line {
|
|
49
|
+
width: var(--matcha-border-hairline, 1px);
|
|
50
|
+
min-height: var(--matcha-border-hairline, 1px);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// ── Inset variants — linha não-completa (M3 List Divider) ──────────────────
|
|
54
|
+
// Útil em listas com avatar (linha começa depois do avatar)
|
|
55
|
+
matcha-divider[direction="horizontal"][inset="start"] .matcha-divider-line:first-of-type,
|
|
56
|
+
matcha-divider:not([direction])[inset="start"] .matcha-divider-line:first-of-type {
|
|
57
|
+
margin-left: var(--matcha-space-700, 56px);
|
|
58
|
+
}
|
|
59
|
+
matcha-divider[direction="horizontal"][inset="end"] .matcha-divider-line:last-of-type,
|
|
60
|
+
matcha-divider:not([direction])[inset="end"] .matcha-divider-line:last-of-type {
|
|
61
|
+
margin-right: var(--matcha-space-300, 24px);
|
|
62
|
+
}
|
|
63
|
+
matcha-divider[direction="horizontal"][inset="both"] .matcha-divider-line,
|
|
64
|
+
matcha-divider:not([direction])[inset="both"] .matcha-divider-line {
|
|
65
|
+
margin-left: var(--matcha-space-300, 24px);
|
|
66
|
+
margin-right: var(--matcha-space-300, 24px);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// ── Label slot ──────────────────────────────────────────────────────────────
|
|
70
|
+
// Tipografia: matcha/text/caption (11/14 Regular) text-secondary.
|
|
71
|
+
// Quando vazio (:empty), CSS :has esconde slot + segunda linha.
|
|
72
|
+
.matcha-divider-label {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
justify-content: center;
|
|
76
|
+
flex: 0 0 auto;
|
|
77
|
+
padding: 0 var(--matcha-space-100, 8px);
|
|
78
|
+
font-family: var(--matcha-font-family);
|
|
79
|
+
font-size: var(--matcha-text-p-tiny, 11px);
|
|
80
|
+
font-weight: var(--matcha-weight-regular, 400);
|
|
81
|
+
line-height: var(--matcha-leading-p-tiny, 14px);
|
|
82
|
+
color: var(--matcha-color-text-secondary);
|
|
83
|
+
white-space: nowrap;
|
|
84
|
+
user-select: none;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Vertical: padding em volta vertical (não horizontal)
|
|
88
|
+
matcha-divider[direction="vertical"] .matcha-divider-label {
|
|
89
|
+
padding: var(--matcha-space-100, 8px) 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// ============================================================================
|
|
93
|
+
// Theme mixin — vazia. Todas as cores/tokens via CSS custom properties globais
|
|
94
|
+
// (já reagem a tema light/dark via _css-custom-properties.scss).
|
|
95
|
+
// Mantida só por compat com main.scss que faz @include matcha-divider-theme($theme).
|
|
96
|
+
// ============================================================================
|
|
38
97
|
|
|
39
98
|
@mixin matcha-divider-theme($theme) {
|
|
40
|
-
|
|
41
|
-
.matcha-divider-line {
|
|
42
|
-
border-color: var(--matcha-color-border, #{getGrey($theme)});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
99
|
+
// Sem overrides — tokens globais bastam.
|
|
45
100
|
}
|
|
@@ -6,19 +6,18 @@
|
|
|
6
6
|
// =============================================================================
|
|
7
7
|
|
|
8
8
|
@mixin matcha-draggable-theme($theme) {
|
|
9
|
-
$is-dark: map.get($theme, is-dark);
|
|
10
9
|
|
|
11
10
|
.matcha-draggable {
|
|
12
11
|
.check-with-label:checked + .label-for-check {
|
|
13
12
|
box-shadow:
|
|
14
|
-
0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface
|
|
15
|
-
0 0 0 10px var(--matcha-color-text-placeholder
|
|
13
|
+
0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface),
|
|
14
|
+
0 0 0 10px var(--matcha-color-text-placeholder);
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
.is-selected {
|
|
19
18
|
box-shadow:
|
|
20
|
-
0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface
|
|
21
|
-
0 0 0 10px var(--matcha-color-text-placeholder
|
|
19
|
+
0 0 0 var(--matcha-border-thick, 8px) var(--matcha-color-surface),
|
|
20
|
+
0 0 0 10px var(--matcha-color-text-placeholder);
|
|
22
21
|
}
|
|
23
22
|
}
|
|
24
23
|
}
|