@inchurch/matcha-theme 20.0.8 → 20.276.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 +1212 -1212
- package/abstracts/_media-breakpoint.scss +23 -23
- package/abstracts/_typography.scss +127 -127
- package/base/_reset.scss +438 -438
- package/components/app-page-header.scss +260 -0
- package/components/matcha-accordion.scss +294 -157
- package/components/matcha-avatar.scss +171 -31
- package/components/matcha-badge.scss +4 -4
- package/components/matcha-breadcrumb.scss +232 -126
- package/components/matcha-button-toggle.scss +44 -0
- package/components/matcha-buttons.scss +908 -784
- package/components/matcha-calendar.scss +70 -2
- package/components/matcha-cards.scss +28 -2
- package/components/matcha-checkbox.scss +191 -490
- package/components/matcha-chip.scss +297 -212
- package/components/matcha-command-palette.scss +291 -63
- package/components/matcha-crop.scss +407 -172
- package/components/matcha-date.scss +81 -81
- package/components/matcha-divider.scss +86 -31
- package/components/matcha-drawer.scss +201 -50
- package/components/matcha-drop-image.scss +14 -0
- package/components/matcha-drop-list.scss +42 -1
- package/components/matcha-empty-state.scss +195 -83
- package/components/matcha-flag.scss +93 -52
- package/components/matcha-footer.scss +68 -164
- package/components/matcha-form-field.scss +52 -0
- package/components/matcha-form-section.scss +101 -101
- package/components/matcha-header.scss +135 -325
- package/components/matcha-highlight.scss +65 -197
- package/components/matcha-hint-text.scss +21 -0
- package/components/matcha-horizontal-tree.scss +317 -317
- package/components/matcha-icon.scss +17 -25
- package/components/matcha-list.scss +5 -5
- package/components/matcha-menu.scss +13 -0
- package/components/matcha-modal.scss +58 -84
- package/components/matcha-nav.scss +361 -230
- package/components/matcha-notification.scss +413 -197
- package/components/matcha-option.scss +79 -23
- package/components/matcha-paginator.scss +689 -235
- package/components/matcha-panel.scss +42 -26
- 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-scrollbox-shadow.scss +122 -122
- package/components/matcha-select.scss +3 -3
- package/components/matcha-skeleton.scss +18 -0
- package/components/matcha-slide-toggle.scss +47 -2
- package/components/matcha-slider.scss +172 -75
- package/components/matcha-snack-bar.scss +114 -121
- package/components/matcha-spinner.scss +76 -57
- package/components/matcha-status-pill.scss +82 -0
- package/components/matcha-stepper.scss +377 -177
- package/components/matcha-table.scss +569 -785
- package/components/matcha-tabs.scss +624 -469
- package/components/matcha-text-editor.scss +98 -144
- package/components/matcha-toolbar.scss +359 -206
- package/components/matcha-tooltip.scss +156 -62
- package/components/matcha-tree-view.scss +189 -0
- package/components/matcha-uploader.scss +240 -62
- package/fonts/manrope/manrope-latin-ext.woff2 +0 -0
- package/fonts/manrope/manrope-latin.woff2 +0 -0
- package/layout/matcha-page-layout.scss +776 -0
- package/main.scss +232 -261
- package/package.json +1 -1
- package/tokens/_animations-tokens.scss +37 -37
- package/tokens/_breakpoints-tokens.scss +35 -26
- package/tokens/_color-tokens.scss +1152 -1152
- package/tokens/_css-custom-properties.scss +650 -568
- 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/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,151 +1,105 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
// =============================================================================
|
|
4
|
-
// matcha-text-editor.scss — Rich text editor wrapper (Tiptap)
|
|
5
|
-
// Aligned with Figma matcha/text-editor:
|
|
6
|
-
// Toolbar (icon-buttons) + Editor area (Tiptap content) + Footer (word count)
|
|
7
|
-
// Angular: matcha-text-editor
|
|
8
|
-
// =============================================================================
|
|
9
|
-
|
|
10
1
|
@mixin matcha-text-editor-theme($theme) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
2
|
+
matcha-text-editor .sun-editor,
|
|
3
|
+
matcha-text-editor .sun-editor-editable {
|
|
4
|
+
// ── Backgrounds ──────────────────────────────────────────────────────
|
|
5
|
+
--se-main-background-color: #{getBackground($theme)};
|
|
6
|
+
--se-edit-background-color: #{getSurface($theme)};
|
|
7
|
+
--se-edit-background-pre: #{getBackground($theme)};
|
|
8
|
+
--se-modal-background-color: #{getSurface($theme)};
|
|
9
|
+
--se-controller-background-color: #{getSurface($theme)};
|
|
10
|
+
--se-code-view-background-color: #{getBackground($theme)};
|
|
11
|
+
--se-code-view-line-background-color: #{getSurface($theme)};
|
|
12
|
+
--se-markdown-view-background-color: #{getBackground($theme)};
|
|
13
|
+
--se-markdown-view-line-background-color:#{getSurface($theme)};
|
|
14
|
+
--se-table-picker-color: #{getSurface($theme)};
|
|
15
|
+
--se-doc-background: #{getBackground($theme)};
|
|
16
|
+
|
|
17
|
+
// ── Text / foreground ─────────────────────────────────────────────
|
|
18
|
+
--se-main-color: #{getForeground($theme)};
|
|
19
|
+
--se-main-font-color: #{getForeground($theme)};
|
|
20
|
+
--se-main-color-lighter: #{getForegroundAlpha($theme)};
|
|
21
|
+
--se-edit-font-color: #{getForeground($theme)};
|
|
22
|
+
--se-edit-font-pre: #{getForegroundAlpha($theme)};
|
|
23
|
+
--se-edit-font-quote: #{getForegroundAlpha($theme)};
|
|
24
|
+
--se-modal-color: #{getForeground($theme)};
|
|
25
|
+
--se-controller-color: #{getForeground($theme)};
|
|
26
|
+
--se-dropdown-font-color: #{getForeground($theme)};
|
|
27
|
+
--se-statusbar-font-color: #{getForegroundAlpha($theme)};
|
|
28
|
+
--se-code-view-color: #{getForeground($theme)};
|
|
29
|
+
--se-code-view-line-color: #{getForegroundAlpha($theme)};
|
|
30
|
+
--se-markdown-view-color: #{getForeground($theme)};
|
|
31
|
+
--se-markdown-view-line-color:#{getForegroundAlpha($theme)};
|
|
32
|
+
--se-caret-color: #{getForeground($theme)};
|
|
33
|
+
--se-placeholder-color: #{getDisabled($theme)};
|
|
34
|
+
|
|
35
|
+
// ── Borders / dividers ────────────────────────────────────────────
|
|
36
|
+
--se-main-border-color: #{getDisabled($theme)};
|
|
37
|
+
--se-main-divider-color: #{getDisabled($theme)};
|
|
38
|
+
--se-main-outline-color: #{getDisabled($theme)};
|
|
39
|
+
--se-main-out-color: #{getDisabled($theme)};
|
|
40
|
+
--se-main-shadow-color: #{getDisabled($theme)};
|
|
41
|
+
--se-modal-border-color: #{getDisabled($theme)};
|
|
42
|
+
--se-controller-border-color: #{getDisabled($theme)};
|
|
43
|
+
--se-input-btn-border-color: #{getDisabled($theme)};
|
|
44
|
+
--se-edit-border-light: #{getDisabled($theme)};
|
|
45
|
+
--se-edit-border-dark: #{getDisabled($theme)};
|
|
46
|
+
--se-edit-border-dark-n1: #{getDisabled($theme)};
|
|
47
|
+
--se-edit-border-dark-n2: #{getDisabled($theme)};
|
|
48
|
+
--se-edit-border-table: #{getDisabled($theme)};
|
|
49
|
+
--se-edit-hr-color: #{getDisabled($theme)};
|
|
50
|
+
--se-table-picker-border-color: #{getDisabled($theme)};
|
|
51
|
+
|
|
52
|
+
// ── Active / accent ───────────────────────────────────────────────
|
|
53
|
+
--se-active-color: #{getAccent($theme)};
|
|
54
|
+
--se-active-hover-color: #{getAccent($theme)};
|
|
55
|
+
--se-active-dark-color: #{getAccent($theme)};
|
|
56
|
+
--se-active-dark2-color: #{getAccent($theme)};
|
|
57
|
+
--se-active-dark3-color: #{getAccent($theme)};
|
|
58
|
+
--se-active-dark4-color: #{getAccent($theme)};
|
|
59
|
+
--se-active-dark5-color: #{getAccent($theme)};
|
|
60
|
+
--se-active-light-color: #{getAccentAlpha($theme)};
|
|
61
|
+
--se-active-light2-color: #{getAccentAlpha($theme)};
|
|
62
|
+
--se-active-light3-color: #{getAccentAlpha($theme)};
|
|
63
|
+
--se-active-light4-color: #{getAccentAlpha($theme)};
|
|
64
|
+
--se-active-light5-color: #{getAccentAlpha($theme)};
|
|
65
|
+
--se-active-light6-color: #{getAccentAlpha($theme)};
|
|
66
|
+
--se-edit-active: #{getAccent($theme)};
|
|
67
|
+
--se-edit-hover: #{getAccentAlpha($theme)};
|
|
68
|
+
--se-edit-hr-on-back: #{getAccentAlpha($theme)};
|
|
69
|
+
--se-edit-anchor: #{getAccent($theme)};
|
|
70
|
+
--se-edit-anchor-on-back: #{getAccentAlpha($theme)};
|
|
71
|
+
--se-edit-anchor-on-font: #{getAccent($theme)};
|
|
72
|
+
--se-table-picker-highlight-color: #{getAccentAlpha($theme)};
|
|
73
|
+
--se-table-picker-highlight-border-color: #{getAccent($theme)};
|
|
74
|
+
--se-loading-color: #{getAccent($theme)};
|
|
75
|
+
--se-drag-caret-color: #{getAccent($theme)};
|
|
76
|
+
|
|
77
|
+
// ── Modals / overlays ─────────────────────────────────────────────
|
|
78
|
+
--se-modal-anchor-color: #{getAccent($theme)};
|
|
79
|
+
--se-overlay-background-color: #{getBackground($theme)};
|
|
80
|
+
--se-modal-file-input-background-color: #{getBackground($theme)};
|
|
81
|
+
--se-modal-input-disabled-background-color: #{getDisabled($theme)};
|
|
82
|
+
--se-modal-input-disabled-color: #{getForegroundAlpha($theme)};
|
|
83
|
+
--se-modal-preview-color: #{getForegroundAlpha($theme)};
|
|
84
|
+
|
|
85
|
+
// ── Hover states ──────────────────────────────────────────────────
|
|
86
|
+
--se-hover-color: #{getForeground($theme)};
|
|
87
|
+
--se-hover-dark-color: #{getForegroundAlpha($theme)};
|
|
88
|
+
--se-hover-dark2-color: #{getForegroundAlpha($theme)};
|
|
89
|
+
--se-hover-dark3-color: #{getForegroundAlpha($theme)};
|
|
90
|
+
--se-hover-light-color: #{getDisabled($theme)};
|
|
91
|
+
--se-hover-light2-color: #{getDisabled($theme)};
|
|
92
|
+
--se-hover-light3-color: #{getDisabled($theme)};
|
|
47
93
|
}
|
|
48
|
-
}
|
|
49
94
|
}
|
|
50
95
|
|
|
51
|
-
// ──
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
flex-direction: column;
|
|
56
|
-
width: 100%;
|
|
57
|
-
border: var(--matcha-border-hairline, 1px) solid transparent;
|
|
58
|
-
border-radius: var(--matcha-radius-lg, 8px);
|
|
59
|
-
overflow: hidden;
|
|
60
|
-
box-sizing: border-box;
|
|
61
|
-
transition: border-color var(--matcha-duration-instant, 80ms) linear;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// ── Toolbar ──
|
|
65
|
-
.matcha-text-editor__toolbar {
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
gap: var(--matcha-space-025, 2px);
|
|
69
|
-
padding: var(--matcha-space-050, 4px) var(--matcha-space-100, 8px);
|
|
70
|
-
flex-wrap: wrap;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.matcha-text-editor__toolbar-group {
|
|
74
|
-
display: flex;
|
|
75
|
-
align-items: center;
|
|
76
|
-
gap: var(--matcha-space-025, 2px);
|
|
77
|
-
}
|
|
96
|
+
// ── Estrutura (não depende de tema) ──────────────────────────────────────────
|
|
97
|
+
matcha-text-editor {
|
|
98
|
+
display: block;
|
|
99
|
+
width: 100%;
|
|
78
100
|
|
|
79
|
-
.
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
margin: 0 var(--matcha-space-050, 4px);
|
|
83
|
-
opacity: 0.2;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
// ── Editor content ──
|
|
87
|
-
.matcha-text-editor__content {
|
|
88
|
-
flex: 1;
|
|
89
|
-
min-height: 200px;
|
|
90
|
-
padding: var(--matcha-space-200, 16px);
|
|
91
|
-
font-family: var(--matcha-font-family);
|
|
92
|
-
font-size: var(--matcha-text-body-md, 14px);
|
|
93
|
-
line-height: var(--matcha-leading-body-md, 20px);
|
|
94
|
-
outline: none;
|
|
95
|
-
|
|
96
|
-
// Tiptap overrides
|
|
97
|
-
.ProseMirror {
|
|
98
|
-
outline: none;
|
|
99
|
-
min-height: inherit;
|
|
100
|
-
|
|
101
|
-
p { margin: 0 0 var(--matcha-space-100, 8px); }
|
|
102
|
-
h1, h2, h3 { font-family: var(--matcha-font-family); font-weight: 700; }
|
|
103
|
-
ul, ol { padding-left: var(--matcha-space-300, 24px); }
|
|
104
|
-
a { color: var(--matcha-color-accent); text-decoration: underline; }
|
|
105
|
-
blockquote {
|
|
106
|
-
border-left: var(--matcha-border-medium, 4px) solid var(--matcha-color-accent);
|
|
107
|
-
padding-left: var(--matcha-space-200, 16px);
|
|
108
|
-
margin-left: 0;
|
|
109
|
-
opacity: 0.8;
|
|
101
|
+
.sun-editor {
|
|
102
|
+
border-radius: 8px;
|
|
103
|
+
overflow: hidden;
|
|
110
104
|
}
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.matcha-text-editor__placeholder {
|
|
115
|
-
font-family: var(--matcha-font-family);
|
|
116
|
-
font-size: var(--matcha-text-body-md, 14px);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// ── Footer ──
|
|
120
|
-
.matcha-text-editor__footer {
|
|
121
|
-
display: flex;
|
|
122
|
-
align-items: center;
|
|
123
|
-
justify-content: flex-end;
|
|
124
|
-
padding: var(--matcha-space-100, 8px) var(--matcha-space-200, 16px);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.matcha-text-editor__word-count {
|
|
128
|
-
font-family: var(--matcha-font-family);
|
|
129
|
-
font-size: var(--matcha-text-caption, 11px);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// ── Responsive ──────────────────────────────────────────────────────────────
|
|
133
|
-
|
|
134
|
-
@include media-breakpoint('xs') {
|
|
135
|
-
.matcha-text-editor__content {
|
|
136
|
-
min-height: 160px;
|
|
137
|
-
padding: var(--matcha-space-150, 12px);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.matcha-text-editor__toolbar {
|
|
141
|
-
padding: var(--matcha-space-050, 4px);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
// ── Reduced motion ──────────────────────────────────────────────────────────
|
|
146
|
-
|
|
147
|
-
@media (prefers-reduced-motion: reduce) {
|
|
148
|
-
.matcha-text-editor {
|
|
149
|
-
transition: none;
|
|
150
|
-
}
|
|
151
105
|
}
|