@inchurch/matcha-theme 20.0.3
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/README.md +303 -0
- package/abstracts/_colors.scss +405 -0
- package/abstracts/_elevation.scss +102 -0
- package/abstracts/_functions.scss +1213 -0
- package/abstracts/_media-breakpoint.scss +23 -0
- package/abstracts/_typography.scss +127 -0
- package/base/_reset.scss +438 -0
- package/components/matcha-accordion.scss +157 -0
- package/components/matcha-audio-player.scss +32 -0
- package/components/matcha-autocomplete.scss +134 -0
- package/components/matcha-avatar.scss +161 -0
- package/components/matcha-badge.scss +120 -0
- package/components/matcha-breadcrumb.scss +126 -0
- package/components/matcha-button-toggle.scss +363 -0
- package/components/matcha-buttons.scss +784 -0
- package/components/matcha-calendar.scss +154 -0
- package/components/matcha-cards.scss +205 -0
- package/components/matcha-chart-card.scss +60 -0
- package/components/matcha-checkbox.scss +554 -0
- package/components/matcha-chip.scss +212 -0
- package/components/matcha-color-pick.scss +35 -0
- package/components/matcha-command-palette.scss +89 -0
- package/components/matcha-crop.scss +172 -0
- package/components/matcha-date.scss +81 -0
- package/components/matcha-divider.scss +45 -0
- package/components/matcha-draggable.scss +24 -0
- package/components/matcha-drawer.scss +235 -0
- package/components/matcha-drop-list.scss +390 -0
- package/components/matcha-emoji.scss +69 -0
- package/components/matcha-empty-state.scss +118 -0
- package/components/matcha-flag.scss +62 -0
- package/components/matcha-footer.scss +187 -0
- package/components/matcha-form-field.scss +552 -0
- package/components/matcha-form-section.scss +101 -0
- package/components/matcha-header.scss +325 -0
- package/components/matcha-highlight.scss +296 -0
- package/components/matcha-hint-text.scss +66 -0
- package/components/matcha-horizontal-tree.scss +317 -0
- package/components/matcha-icon.scss +106 -0
- package/components/matcha-image.scss +62 -0
- package/components/matcha-list.scss +212 -0
- package/components/matcha-menu.scss +86 -0
- package/components/matcha-modal.scss +234 -0
- package/components/matcha-nav.scss +450 -0
- package/components/matcha-notification.scss +197 -0
- package/components/matcha-option.scss +95 -0
- package/components/matcha-page-builder.scss +4186 -0
- package/components/matcha-paginator.scss +235 -0
- package/components/matcha-panel.scss +167 -0
- package/components/matcha-profile-card.scss +50 -0
- package/components/matcha-progress-bar.scss +209 -0
- package/components/matcha-radio.scss +528 -0
- package/components/matcha-ripple.scss +7 -0
- package/components/matcha-scrollbar.scss +35 -0
- package/components/matcha-scrollbox-shadow.scss +123 -0
- package/components/matcha-section.scss +105 -0
- package/components/matcha-select.scss +661 -0
- package/components/matcha-skeleton.scss +138 -0
- package/components/matcha-slide-toggle.scss +590 -0
- package/components/matcha-slider.scss +188 -0
- package/components/matcha-snack-bar.scss +266 -0
- package/components/matcha-spin.scss +252 -0
- package/components/matcha-spinner.scss +78 -0
- package/components/matcha-stepper.scss +177 -0
- package/components/matcha-table-cell.scss +41 -0
- package/components/matcha-table.scss +785 -0
- package/components/matcha-tabs.scss +469 -0
- package/components/matcha-text-editor.scss +151 -0
- package/components/matcha-time.scss +33 -0
- package/components/matcha-timepicker.scss +13 -0
- package/components/matcha-toolbar.scss +206 -0
- package/components/matcha-tooltip.scss +128 -0
- package/components/matcha-uploader.scss +215 -0
- package/css/matcha-style.css +76772 -0
- package/fonts/CircularStd-Black.eot +0 -0
- package/fonts/CircularStd-Black.svg +3426 -0
- 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 +13532 -0
- 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 +13511 -0
- 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 +2378 -0
- package/fonts/CircularStd-Regular.ttf +0 -0
- package/fonts/CircularStd-Regular.woff +0 -0
- package/fonts/CircularStd-Regular.woff2 +0 -0
- package/main.scss +262 -0
- package/package.json +11 -0
- package/tokens/_animations-tokens.scss +37 -0
- package/tokens/_breakpoints-tokens.scss +26 -0
- package/tokens/_color-tokens.scss +1153 -0
- package/tokens/_css-custom-properties.scss +568 -0
- package/tokens/_elevation-tokens.scss +33 -0
- package/tokens/_spacing-tokens.scss +94 -0
- package/tokens/_typography-tokens.scss +65 -0
- package/vendors/angular-editor.scss +56 -0
- package/vendors/angular-material-fixes.scss +297 -0
- package/vendors/calendar.scss +2880 -0
- package/vendors/charts.scss +92 -0
- package/vendors/ng5-slider.scss +56 -0
- package/vendors/ngx-material-timepicker.scss +50 -0
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// =============================================================================
|
|
2
|
+
// matcha-option.scss — Dropdown option item
|
|
3
|
+
// Aligned with Figma matcha/option (7 states, tokenized)
|
|
4
|
+
// =============================================================================
|
|
5
|
+
|
|
6
|
+
// ── Structural (outside mixin) ──────────────────────────────────────────────
|
|
7
|
+
|
|
8
|
+
.matcha-option {
|
|
9
|
+
// Figma matcha/option: pad 12/16, gap 16, h 44
|
|
10
|
+
position: relative;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: var(--matcha-space-200, 16px);
|
|
14
|
+
padding: var(--matcha-space-150, 12px) var(--matcha-space-200, 16px);
|
|
15
|
+
min-height: var(--matcha-option-height, 44px);
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
border-radius: var(--matcha-radius-md, 4px);
|
|
19
|
+
margin: var(--matcha-space-025, 2px) var(--matcha-space-050, 4px);
|
|
20
|
+
transition: background-color var(--matcha-duration-instant, 80ms) ease;
|
|
21
|
+
|
|
22
|
+
// Disabled — pointer/cursor only
|
|
23
|
+
&[aria-disabled="true"],
|
|
24
|
+
&[disabled],
|
|
25
|
+
&.matcha-option-disabled {
|
|
26
|
+
pointer-events: none;
|
|
27
|
+
cursor: default;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@media (prefers-reduced-motion: reduce) {
|
|
31
|
+
transition: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// ── Theme mixin ─────────────────────────────────────────────────────────────
|
|
36
|
+
|
|
37
|
+
@mixin matcha-option-theme($theme) {
|
|
38
|
+
.matcha-option {
|
|
39
|
+
color: var(--matcha-color-text-primary);
|
|
40
|
+
background: transparent;
|
|
41
|
+
|
|
42
|
+
// ── Hover — direto no background (sem state layer tipo 2021) ──
|
|
43
|
+
&:hover:not([aria-disabled="true"]):not([disabled]):not(.matcha-option-disabled) {
|
|
44
|
+
background: var(--matcha-color-surface-bg);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// ── Selected — tint primary + weight medium + inset marker lateral ──
|
|
48
|
+
&[aria-selected="true"] {
|
|
49
|
+
background: var(--matcha-color-primary-surface-hover);
|
|
50
|
+
color: var(--matcha-color-primary);
|
|
51
|
+
font-weight: var(--matcha-weight-medium, 500);
|
|
52
|
+
|
|
53
|
+
// Hover sobre selected: intensifica o tint primary
|
|
54
|
+
&:hover:not([aria-disabled="true"]) {
|
|
55
|
+
background: var(--matcha-color-primary-surface-pressed);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// ── Danger ──
|
|
60
|
+
&.matcha-option--danger {
|
|
61
|
+
color: var(--matcha-color-danger, #{getDanger($theme)});
|
|
62
|
+
|
|
63
|
+
&:hover:not([aria-disabled="true"]) {
|
|
64
|
+
background: var(--matcha-color-danger-surface-hover, rgba(211, 47, 47, 0.08));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// ── Disabled ──
|
|
69
|
+
&[aria-disabled="true"],
|
|
70
|
+
&[disabled],
|
|
71
|
+
&.matcha-option-disabled {
|
|
72
|
+
color: var(--matcha-color-interaction-disabled-fg);
|
|
73
|
+
opacity: var(--matcha-opacity-disabled, 0.38);
|
|
74
|
+
background: transparent;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// ── Focus ring ──
|
|
78
|
+
&:focus-visible:not([aria-disabled="true"]):not([disabled]):not(.matcha-option-disabled) {
|
|
79
|
+
outline: var(--matcha-state-focus-ring-width, 2px) solid var(--matcha-color-primary);
|
|
80
|
+
outline-offset: var(--matcha-state-focus-ring-offset, 2px);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// ── Keyboard highlight (cursor de navegação, orthogonal a selected) ──
|
|
84
|
+
// Aplicado pelo matcha-select ao navegar com ArrowUp/Down.
|
|
85
|
+
// Hover-like mas um pouco mais intenso pra destacar a posição atual.
|
|
86
|
+
&.matcha-option-highlighted:not([aria-disabled="true"]):not([disabled]) {
|
|
87
|
+
background: var(--matcha-color-surface-hover);
|
|
88
|
+
|
|
89
|
+
// Combinado com selected: mantém tint primary + leve inset
|
|
90
|
+
&[aria-selected="true"] {
|
|
91
|
+
background: var(--matcha-color-primary-surface-pressed);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|