@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
package/vendors/charts.scss
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
@mixin vendor-chart($theme) {
|
|
2
|
-
$primary: map-get($theme, primary);
|
|
3
|
-
$accent: map-get($theme, accent);
|
|
4
|
-
$warn: map-get($theme, warn);
|
|
5
|
-
$background: map-get($theme, background);
|
|
6
|
-
$foreground: map-get($theme, foreground);
|
|
7
|
-
|
|
8
|
-
// Fixer wrappers
|
|
9
|
-
.matcha-card,
|
|
10
|
-
.matcha-card-flat,
|
|
11
|
-
.matcha-section {
|
|
12
|
-
|
|
13
|
-
//Google Chart
|
|
14
|
-
google-chart {
|
|
15
|
-
width: 100% !important;
|
|
16
|
-
max-width: 100% !important;
|
|
17
|
-
min-width: 100% !important;
|
|
18
|
-
height: 100%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
google-chart * {
|
|
22
|
-
max-width: 100% !important;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
#ngxcharts {
|
|
27
|
-
ngx-charts-chart {
|
|
28
|
-
svg {
|
|
29
|
-
height: 400px;
|
|
30
|
-
width: 400px;
|
|
31
|
-
|
|
32
|
-
g {}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.chart-legend {
|
|
38
|
-
background-color: transparent;
|
|
39
|
-
padding: 0;
|
|
40
|
-
width: 200px !important;
|
|
41
|
-
min-width: 200px;
|
|
42
|
-
max-width: 300px;
|
|
43
|
-
display: -webkit-box;
|
|
44
|
-
display: flex;
|
|
45
|
-
right: 0;
|
|
46
|
-
|
|
47
|
-
div {
|
|
48
|
-
width: 100% !important;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.legend-labels {
|
|
52
|
-
background: transparent !important;
|
|
53
|
-
|
|
54
|
-
.active {
|
|
55
|
-
.legend-label-text {
|
|
56
|
-
color: map-get($foreground, label);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.legend-label-color {
|
|
62
|
-
border-radius: 12px !important;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.legend-label-text {
|
|
66
|
-
font-weight: normal;
|
|
67
|
-
font-size: 16px !important;
|
|
68
|
-
line-height: 20px;
|
|
69
|
-
color: map-get($foreground, foreground);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Large devices (tablets and small monitors, 1024px and up < 1440px)
|
|
74
|
-
@media (min-width: 1024px) {
|
|
75
|
-
.chart-legend {
|
|
76
|
-
margin: 0 24px 0 0;
|
|
77
|
-
border-radius: 8px;
|
|
78
|
-
position: absolute;
|
|
79
|
-
background-color: map-get($background, background-alpha);
|
|
80
|
-
@include elevation(1);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.pie-chart {
|
|
85
|
-
.pie-label {
|
|
86
|
-
fill: map-get($foreground, label);
|
|
87
|
-
font-size: 16px !important;
|
|
88
|
-
line-height: 20px;
|
|
89
|
-
padding: 8px;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
1
|
+
@mixin vendor-chart($theme) {
|
|
2
|
+
$primary: map-get($theme, primary);
|
|
3
|
+
$accent: map-get($theme, accent);
|
|
4
|
+
$warn: map-get($theme, warn);
|
|
5
|
+
$background: map-get($theme, background);
|
|
6
|
+
$foreground: map-get($theme, foreground);
|
|
7
|
+
|
|
8
|
+
// Fixer wrappers
|
|
9
|
+
.matcha-card,
|
|
10
|
+
.matcha-card-flat,
|
|
11
|
+
.matcha-section {
|
|
12
|
+
|
|
13
|
+
//Google Chart
|
|
14
|
+
google-chart {
|
|
15
|
+
width: 100% !important;
|
|
16
|
+
max-width: 100% !important;
|
|
17
|
+
min-width: 100% !important;
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
google-chart * {
|
|
22
|
+
max-width: 100% !important;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
#ngxcharts {
|
|
27
|
+
ngx-charts-chart {
|
|
28
|
+
svg {
|
|
29
|
+
height: 400px;
|
|
30
|
+
width: 400px;
|
|
31
|
+
|
|
32
|
+
g {}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.chart-legend {
|
|
38
|
+
background-color: transparent;
|
|
39
|
+
padding: 0;
|
|
40
|
+
width: 200px !important;
|
|
41
|
+
min-width: 200px;
|
|
42
|
+
max-width: 300px;
|
|
43
|
+
display: -webkit-box;
|
|
44
|
+
display: flex;
|
|
45
|
+
right: 0;
|
|
46
|
+
|
|
47
|
+
div {
|
|
48
|
+
width: 100% !important;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.legend-labels {
|
|
52
|
+
background: transparent !important;
|
|
53
|
+
|
|
54
|
+
.active {
|
|
55
|
+
.legend-label-text {
|
|
56
|
+
color: map-get($foreground, label);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.legend-label-color {
|
|
62
|
+
border-radius: 12px !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.legend-label-text {
|
|
66
|
+
font-weight: normal;
|
|
67
|
+
font-size: 16px !important;
|
|
68
|
+
line-height: 20px;
|
|
69
|
+
color: map-get($foreground, foreground);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Large devices (tablets and small monitors, 1024px and up < 1440px)
|
|
74
|
+
@media (min-width: 1024px) {
|
|
75
|
+
.chart-legend {
|
|
76
|
+
margin: 0 24px 0 0;
|
|
77
|
+
border-radius: 8px;
|
|
78
|
+
position: absolute;
|
|
79
|
+
background-color: map-get($background, background-alpha);
|
|
80
|
+
@include elevation(1);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.pie-chart {
|
|
85
|
+
.pie-label {
|
|
86
|
+
fill: map-get($foreground, label);
|
|
87
|
+
font-size: 16px !important;
|
|
88
|
+
line-height: 20px;
|
|
89
|
+
padding: 8px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
package/vendors/ng5-slider.scss
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
@mixin vendor-ng-5-theme($theme) {
|
|
2
|
-
$accent: map-get($theme, accent);
|
|
3
|
-
$background: map-get($theme, background);
|
|
4
|
-
$foreground: map-get($theme, foreground);
|
|
5
|
-
|
|
6
|
-
.ng5-slider {
|
|
7
|
-
&.animate {
|
|
8
|
-
.ng5-slider-pointer {
|
|
9
|
-
transition: all 50ms linear !important;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ng5-slider-bubble {
|
|
14
|
-
bottom: 20px;
|
|
15
|
-
padding: 0;
|
|
16
|
-
margin: 0px auto;
|
|
17
|
-
background: map-get($background, card);
|
|
18
|
-
color: map-get($foreground, label);
|
|
19
|
-
transition: all 50ms linear !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ng5-slider-bar {
|
|
23
|
-
background-color: map-get($background, disabled);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ng5-slider-pointer,
|
|
27
|
-
.ng5-slider-selection {
|
|
28
|
-
background-color: map-get($accent, default);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.ng5-slider-pointer:after {
|
|
32
|
-
width: 16px;
|
|
33
|
-
height: 16px;
|
|
34
|
-
position: absolute;
|
|
35
|
-
top: 8px;
|
|
36
|
-
left: 8px;
|
|
37
|
-
border-radius: 8px;
|
|
38
|
-
background-color: map-get($background, card);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.ng5-slider-pointer:active:after {
|
|
42
|
-
background-color: map-get($background, card);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.ng5-slider-pointer.ng5-slider-active:after {
|
|
46
|
-
width: 16px;
|
|
47
|
-
height: 16px;
|
|
48
|
-
position: absolute;
|
|
49
|
-
top: 8px;
|
|
50
|
-
left: 8px;
|
|
51
|
-
border-radius: 8px;
|
|
52
|
-
background: map-get($background, background);
|
|
53
|
-
background-color: map-get($background, background);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
@mixin vendor-ng-5-theme($theme) {
|
|
2
|
+
$accent: map-get($theme, accent);
|
|
3
|
+
$background: map-get($theme, background);
|
|
4
|
+
$foreground: map-get($theme, foreground);
|
|
5
|
+
|
|
6
|
+
.ng5-slider {
|
|
7
|
+
&.animate {
|
|
8
|
+
.ng5-slider-pointer {
|
|
9
|
+
transition: all 50ms linear !important;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ng5-slider-bubble {
|
|
14
|
+
bottom: 20px;
|
|
15
|
+
padding: 0;
|
|
16
|
+
margin: 0px auto;
|
|
17
|
+
background: map-get($background, card);
|
|
18
|
+
color: map-get($foreground, label);
|
|
19
|
+
transition: all 50ms linear !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ng5-slider-bar {
|
|
23
|
+
background-color: map-get($background, disabled);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.ng5-slider-pointer,
|
|
27
|
+
.ng5-slider-selection {
|
|
28
|
+
background-color: map-get($accent, default);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.ng5-slider-pointer:after {
|
|
32
|
+
width: 16px;
|
|
33
|
+
height: 16px;
|
|
34
|
+
position: absolute;
|
|
35
|
+
top: 8px;
|
|
36
|
+
left: 8px;
|
|
37
|
+
border-radius: 8px;
|
|
38
|
+
background-color: map-get($background, card);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.ng5-slider-pointer:active:after {
|
|
42
|
+
background-color: map-get($background, card);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ng5-slider-pointer.ng5-slider-active:after {
|
|
46
|
+
width: 16px;
|
|
47
|
+
height: 16px;
|
|
48
|
+
position: absolute;
|
|
49
|
+
top: 8px;
|
|
50
|
+
left: 8px;
|
|
51
|
+
border-radius: 8px;
|
|
52
|
+
background: map-get($background, background);
|
|
53
|
+
background-color: map-get($background, background);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
@mixin vendor-ngx-material-timepicker($theme) {
|
|
2
|
-
$primary: map-get($theme, primary);
|
|
3
|
-
$accent: map-get($theme, accent);
|
|
4
|
-
$warn: map-get($theme, warn);
|
|
5
|
-
$background: map-get($theme, background);
|
|
6
|
-
$foreground: map-get($theme, foreground);
|
|
7
|
-
|
|
8
|
-
ngx-material-timepicker-container {
|
|
9
|
-
z-index: 10000;
|
|
10
|
-
|
|
11
|
-
.timepicker__header,
|
|
12
|
-
.clock-face__number>span.active {
|
|
13
|
-
background-color: map-get($accent, default) !important;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.timepicker-dial__control {
|
|
17
|
-
color: map-color($foreground, foreground-inverse, 0.5) !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.clock-face__number>span.active,
|
|
21
|
-
.dial__control,
|
|
22
|
-
.timepicker-dial__item_active,
|
|
23
|
-
.timepicker-dial__time {
|
|
24
|
-
color: map-get($foreground, foreground-inverse) !important;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.timepicker-button {
|
|
28
|
-
color: map-get($accent, default) !important;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.timepicker__body,
|
|
32
|
-
.timepicker__actions {
|
|
33
|
-
background-color: map-get($background, card) !important;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.clock-face__clock-hand,
|
|
37
|
-
.clock-face__clock-hand_minute {
|
|
38
|
-
background-color: map-get($accent, default) !important;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.clock-face__clock-hand_minute::before {
|
|
42
|
-
border-color: map-get($accent, default) !important;
|
|
43
|
-
background-color: map-get($background, card) !important;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.clock-face {
|
|
47
|
-
background-color: map-get($background, background) !important;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
1
|
+
@mixin vendor-ngx-material-timepicker($theme) {
|
|
2
|
+
$primary: map-get($theme, primary);
|
|
3
|
+
$accent: map-get($theme, accent);
|
|
4
|
+
$warn: map-get($theme, warn);
|
|
5
|
+
$background: map-get($theme, background);
|
|
6
|
+
$foreground: map-get($theme, foreground);
|
|
7
|
+
|
|
8
|
+
ngx-material-timepicker-container {
|
|
9
|
+
z-index: 10000;
|
|
10
|
+
|
|
11
|
+
.timepicker__header,
|
|
12
|
+
.clock-face__number>span.active {
|
|
13
|
+
background-color: map-get($accent, default) !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.timepicker-dial__control {
|
|
17
|
+
color: map-color($foreground, foreground-inverse, 0.5) !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.clock-face__number>span.active,
|
|
21
|
+
.dial__control,
|
|
22
|
+
.timepicker-dial__item_active,
|
|
23
|
+
.timepicker-dial__time {
|
|
24
|
+
color: map-get($foreground, foreground-inverse) !important;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.timepicker-button {
|
|
28
|
+
color: map-get($accent, default) !important;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.timepicker__body,
|
|
32
|
+
.timepicker__actions {
|
|
33
|
+
background-color: map-get($background, card) !important;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.clock-face__clock-hand,
|
|
37
|
+
.clock-face__clock-hand_minute {
|
|
38
|
+
background-color: map-get($accent, default) !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.clock-face__clock-hand_minute::before {
|
|
42
|
+
border-color: map-get($accent, default) !important;
|
|
43
|
+
background-color: map-get($background, card) !important;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.clock-face {
|
|
47
|
+
background-color: map-get($background, background) !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
@use "sass:map";
|
|
2
|
-
|
|
3
|
-
// =============================================================================
|
|
4
|
-
// matcha-uploader.scss — File upload component
|
|
5
|
-
// Aligned with Figma matcha/uploader:
|
|
6
|
-
// Estado(3: Dropzone, Enviando, Completo)
|
|
7
|
-
// Angular: matcha-uploader
|
|
8
|
-
// =============================================================================
|
|
9
|
-
|
|
10
|
-
@mixin matcha-uploader-theme($theme) {
|
|
11
|
-
$is-dark: map.get($theme, is-dark);
|
|
12
|
-
|
|
13
|
-
// ── Dropzone ──
|
|
14
|
-
.matcha-uploader-dropzone {
|
|
15
|
-
background: var(--matcha-color-surface-bg, #{getBackground($theme)});
|
|
16
|
-
border-color: var(--matcha-color-border, #{getGrey($theme)});
|
|
17
|
-
|
|
18
|
-
&.matcha-uploader-dragover {
|
|
19
|
-
background: var(--matcha-color-accent-alpha, #{getAccentAlpha($theme)});
|
|
20
|
-
border-color: var(--matcha-color-accent, #{getAccent($theme)});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.matcha-uploader-error {
|
|
24
|
-
border-color: var(--matcha-color-feedback-danger, #{getDanger($theme)});
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.matcha-uploader-dropzone__icon {
|
|
29
|
-
background: var(--matcha-color-accent-alpha, #{getAccentAlpha($theme)});
|
|
30
|
-
color: var(--matcha-color-accent, #{getAccent($theme)});
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.matcha-uploader-dropzone__title {
|
|
34
|
-
color: var(--matcha-color-fg, #{getForeground($theme)});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.matcha-uploader-dropzone__hint {
|
|
38
|
-
color: var(--matcha-color-text-hint, #{getBlueGrey($theme)});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// ── File item ──
|
|
42
|
-
.matcha-uploader-file {
|
|
43
|
-
background: var(--matcha-color-surface, #{getSurface($theme)});
|
|
44
|
-
border-color: var(--matcha-color-border, #{getGrey($theme)});
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.matcha-uploader-file__name {
|
|
48
|
-
color: var(--matcha-color-fg, #{getForeground($theme)});
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.matcha-uploader-file__size {
|
|
52
|
-
color: var(--matcha-color-text-hint, #{getBlueGrey($theme)});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.matcha-uploader-file__progress-fill {
|
|
56
|
-
background: var(--matcha-color-accent, #{getAccent($theme)});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.matcha-uploader-file__percent {
|
|
60
|
-
color: var(--matcha-color-text-label, #{getBlueGrey($theme)});
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.matcha-uploader-file__check {
|
|
64
|
-
color: var(--matcha-color-feedback-success, #{getSuccess($theme)});
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.matcha-uploader-file__error-text {
|
|
68
|
-
color: var(--matcha-color-feedback-danger, #{getDanger($theme)});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.matcha-uploader-file__progress {
|
|
72
|
-
background: var(--matcha-color-border, #{getGrey($theme)});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// ── Dropzone Layout ─────────────────────────────────────────────────────────
|
|
77
|
-
|
|
78
|
-
.matcha-uploader-dropzone {
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-direction: column;
|
|
81
|
-
align-items: center;
|
|
82
|
-
justify-content: center;
|
|
83
|
-
// Figma matcha/uploader Dropzone: pad 32/24, gap 16, radius 8
|
|
84
|
-
gap: var(--matcha-space-200, 16px);
|
|
85
|
-
padding: var(--matcha-space-400, 32px) var(--matcha-space-300, 24px);
|
|
86
|
-
border: 2px dashed transparent;
|
|
87
|
-
border-radius: var(--matcha-radius-lg, 8px);
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
transition: background-color var(--matcha-duration-instant, 80ms) linear,
|
|
90
|
-
border-color var(--matcha-duration-instant, 80ms) linear;
|
|
91
|
-
|
|
92
|
-
&:hover {
|
|
93
|
-
opacity: 0.9;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.matcha-uploader-dropzone__icon {
|
|
98
|
-
display: flex;
|
|
99
|
-
align-items: center;
|
|
100
|
-
justify-content: center;
|
|
101
|
-
width: var(--matcha-icon-size-lg, 48px);
|
|
102
|
-
height: var(--matcha-icon-size-lg, 48px);
|
|
103
|
-
border-radius: var(--matcha-radius-pill, 9999px);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
.matcha-uploader-dropzone__text {
|
|
107
|
-
display: flex;
|
|
108
|
-
flex-direction: column;
|
|
109
|
-
align-items: center;
|
|
110
|
-
gap: var(--matcha-space-050, 4px);
|
|
111
|
-
text-align: center;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.matcha-uploader-dropzone__title {
|
|
115
|
-
font-family: var(--matcha-font-family);
|
|
116
|
-
font-size: var(--matcha-text-body-md, 14px);
|
|
117
|
-
font-weight: var(--matcha-weight-semibold, 600);
|
|
118
|
-
line-height: var(--matcha-leading-body-md, 20px);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.matcha-uploader-dropzone__hint {
|
|
122
|
-
font-family: var(--matcha-font-family);
|
|
123
|
-
font-size: var(--matcha-text-body-sm, 12px);
|
|
124
|
-
line-height: var(--matcha-leading-body-sm, 16px);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
// Hidden input
|
|
128
|
-
.matcha-uploader-input {
|
|
129
|
-
display: none;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// ── File Item Layout ────────────────────────────────────────────────────────
|
|
133
|
-
|
|
134
|
-
.matcha-uploader-file {
|
|
135
|
-
display: flex;
|
|
136
|
-
align-items: center;
|
|
137
|
-
gap: var(--matcha-space-150, 12px);
|
|
138
|
-
padding: var(--matcha-space-150, 12px) var(--matcha-space-200, 16px);
|
|
139
|
-
border: var(--matcha-border-hairline, 1px) solid transparent;
|
|
140
|
-
border-radius: var(--matcha-radius-lg, 8px);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.matcha-uploader-file__icon {
|
|
144
|
-
width: var(--matcha-space-500, 40px);
|
|
145
|
-
height: var(--matcha-space-500, 40px);
|
|
146
|
-
border-radius: var(--matcha-radius-md, 4px);
|
|
147
|
-
flex-shrink: 0;
|
|
148
|
-
overflow: hidden;
|
|
149
|
-
|
|
150
|
-
img {
|
|
151
|
-
width: 100%;
|
|
152
|
-
height: 100%;
|
|
153
|
-
object-fit: cover;
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.matcha-uploader-file__info {
|
|
158
|
-
display: flex;
|
|
159
|
-
flex-direction: column;
|
|
160
|
-
gap: var(--matcha-space-050, 4px);
|
|
161
|
-
flex: 1;
|
|
162
|
-
min-width: 0;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
.matcha-uploader-file__name {
|
|
166
|
-
font-family: var(--matcha-font-family);
|
|
167
|
-
font-size: var(--matcha-text-body-sm, 12px);
|
|
168
|
-
font-weight: var(--matcha-weight-medium, 500);
|
|
169
|
-
line-height: var(--matcha-leading-body-sm, 16px);
|
|
170
|
-
white-space: nowrap;
|
|
171
|
-
overflow: hidden;
|
|
172
|
-
text-overflow: ellipsis;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.matcha-uploader-file__size {
|
|
176
|
-
font-family: var(--matcha-font-family);
|
|
177
|
-
font-size: var(--matcha-text-caption, 11px);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// ── Progress ──
|
|
181
|
-
.matcha-uploader-file__progress {
|
|
182
|
-
width: 100%;
|
|
183
|
-
height: var(--matcha-border-medium, 4px);
|
|
184
|
-
border-radius: var(--matcha-radius-xs, 2px);
|
|
185
|
-
overflow: hidden;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.matcha-uploader-file__progress-fill {
|
|
189
|
-
height: 100%;
|
|
190
|
-
border-radius: var(--matcha-radius-xs, 2px);
|
|
191
|
-
transition: width var(--matcha-duration-moderate, 300ms) ease;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.matcha-uploader-file__percent {
|
|
195
|
-
font-family: var(--matcha-font-family);
|
|
196
|
-
font-size: var(--matcha-text-body-sm, 12px);
|
|
197
|
-
flex-shrink: 0;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
// ── Responsive ──────────────────────────────────────────────────────────────
|
|
201
|
-
|
|
202
|
-
@include media-breakpoint('xs') {
|
|
203
|
-
.matcha-uploader-dropzone {
|
|
204
|
-
padding: var(--matcha-space-300, 24px) var(--matcha-space-200, 16px);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
// ── Reduced motion ──────────────────────────────────────────────────────────
|
|
209
|
-
|
|
210
|
-
@media (prefers-reduced-motion: reduce) {
|
|
211
|
-
.matcha-uploader-dropzone,
|
|
212
|
-
.matcha-uploader-file__progress-fill {
|
|
213
|
-
transition: none;
|
|
214
|
-
}
|
|
215
|
-
}
|
|
Binary file
|