matcha-theme 18.0.27 → 18.0.28

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.
Files changed (67) hide show
  1. package/README.md +304 -0
  2. package/abstracts/_breakpoints.scss +33 -0
  3. package/abstracts/_colors.scss +833 -0
  4. package/abstracts/_elevation.scss +102 -0
  5. package/abstracts/_functions.scss +424 -0
  6. package/abstracts/_grid.scss +163 -0
  7. package/abstracts/_order.scss +46 -0
  8. package/abstracts/_position.scss +51 -0
  9. package/abstracts/_sizes.scss +95 -0
  10. package/abstracts/_spacings.scss +216 -0
  11. package/abstracts/_typography.scss +124 -0
  12. package/base/_helpers.scss +2181 -0
  13. package/base/_reset.scss +9 -0
  14. package/base/_typography.scss +244 -0
  15. package/components/matcha-audio-player.scss +37 -0
  16. package/components/matcha-buttons.scss +165 -0
  17. package/components/matcha-cards.scss +93 -0
  18. package/components/matcha-color-pick.scss +32 -0
  19. package/components/matcha-draggable.scss +25 -0
  20. package/components/matcha-header.scss +327 -0
  21. package/components/matcha-horizontal-tree.scss +277 -0
  22. package/components/matcha-menu.scss +71 -0
  23. package/components/matcha-progress-bar.scss +107 -0
  24. package/components/matcha-scrollbar.scss +36 -0
  25. package/components/matcha-scrollbox-shadow.scss +127 -0
  26. package/components/matcha-table.scss +279 -0
  27. package/css/matcha-style.css +76772 -0
  28. package/fonts/CircularStd-Black.eot +0 -0
  29. package/fonts/CircularStd-Black.svg +3426 -0
  30. package/fonts/CircularStd-Black.ttf +0 -0
  31. package/fonts/CircularStd-Black.woff +0 -0
  32. package/fonts/CircularStd-Black.woff2 +0 -0
  33. package/fonts/CircularStd-Bold.eot +0 -0
  34. package/fonts/CircularStd-Bold.otf +0 -0
  35. package/fonts/CircularStd-Bold.svg +13532 -0
  36. package/fonts/CircularStd-Bold.ttf +0 -0
  37. package/fonts/CircularStd-Bold.woff +0 -0
  38. package/fonts/CircularStd-Bold.woff2 +0 -0
  39. package/fonts/CircularStd-Medium.eot +0 -0
  40. package/fonts/CircularStd-Medium.otf +0 -0
  41. package/fonts/CircularStd-Medium.svg +13511 -0
  42. package/fonts/CircularStd-Medium.ttf +0 -0
  43. package/fonts/CircularStd-Medium.woff +0 -0
  44. package/fonts/CircularStd-Medium.woff2 +0 -0
  45. package/fonts/CircularStd-Regular.eot +0 -0
  46. package/fonts/CircularStd-Regular.otf +0 -0
  47. package/fonts/CircularStd-Regular.svg +2378 -0
  48. package/fonts/CircularStd-Regular.ttf +0 -0
  49. package/fonts/CircularStd-Regular.woff +0 -0
  50. package/fonts/CircularStd-Regular.woff2 +0 -0
  51. package/main.scss +135 -0
  52. package/package.json +2 -2
  53. package/tokens/_animations.scss +37 -0
  54. package/tokens/_breakpoints.scss +38 -0
  55. package/tokens/_color-tokens.scss +1216 -0
  56. package/tokens/_elevation-tokens.scss +14 -0
  57. package/tokens/_spacing-tokens.scss +96 -0
  58. package/tokens/_typography-tokens.scss +25 -0
  59. package/vendors/angular-editor.scss +56 -0
  60. package/vendors/angular-material-fixes.scss +261 -0
  61. package/vendors/calendar.scss +2880 -0
  62. package/vendors/charts.scss +92 -0
  63. package/vendors/ng5-slider.scss +56 -0
  64. package/vendors/ngx-material-timepicker.scss +50 -0
  65. package/core.scss +0 -1210
  66. package/matcha-core.css +0 -62385
  67. package/matcha-core.min.css +0 -1
@@ -0,0 +1,9 @@
1
+ @mixin base-body-reset-theme($theme) {
2
+ $background: map-get($theme, background);
3
+ $foreground: map-get($theme, foreground);
4
+
5
+ & {
6
+ color: map-get($foreground, text);
7
+ background: map-get($background, background);
8
+ }
9
+ }
@@ -0,0 +1,244 @@
1
+ /*
2
+ How to use
3
+ @import '~matcha-ds/assets/scss/components/matcha-typography.scss';
4
+ @include base-typography-theme($theme);
5
+ */
6
+ // -----------------------------------------------------------------------------------------------------
7
+ // Typography [Theme]
8
+ // -----------------------------------------------------------------------------------------------------
9
+ @mixin base-typography-theme($theme) {
10
+ $is-dark: map-get($theme, is-dark);
11
+ $accent: map-get($theme, accent);
12
+ $warn: map-get($theme, warn);
13
+ $primary: map-get($theme, primary);
14
+ $background: map-get($theme, background);
15
+ $foreground: map-get($theme, foreground);
16
+
17
+ a {
18
+ color: map-get($accent, default);
19
+ }
20
+
21
+ code {
22
+ &:not(.highlight) {
23
+ background-color: map-get($background, card);
24
+ }
25
+ }
26
+
27
+ .changelog {
28
+ .entry {
29
+ background-color: map-get($background, card);
30
+ }
31
+ }
32
+
33
+ .text-boxed {
34
+ @if ($is-dark) {
35
+ background-color: rgba(255, 255, 255, 0.12);
36
+ color: rgba(255, 255, 255, 0.54);
37
+ } @else {
38
+ background-color: rgba(0, 0, 0, 0.12);
39
+ color: rgba(0, 0, 0, 0.54);
40
+ }
41
+ }
42
+
43
+ .text-primary {
44
+ color: map-get($primary, default) !important;
45
+ }
46
+
47
+ .text-warn {
48
+ color: map-get($warn, default) !important;
49
+ }
50
+
51
+ .text-label {
52
+ color: map-get($foreground, label) !important;
53
+ }
54
+
55
+ .text-placeholder {
56
+ color: map-get($foreground, placeholder) !important;
57
+ }
58
+
59
+ .text-basic {
60
+ color: map-get($foreground, text) !important;
61
+ }
62
+
63
+ // Changelog
64
+ .changelog {
65
+ .entry {
66
+ .groups {
67
+ .breaking-changes {
68
+ .title {
69
+ background: map-get($background, red);
70
+ }
71
+ }
72
+
73
+ .new {
74
+ .title {
75
+ background: map-get($background, green);
76
+ }
77
+ }
78
+
79
+ .improved {
80
+ .title {
81
+ background: map-get($background, purple);
82
+ }
83
+ }
84
+
85
+ .fixed {
86
+ .title {
87
+ background: map-get($background, blue);
88
+ }
89
+ }
90
+ }
91
+ }
92
+ }
93
+
94
+ // Code
95
+ code {
96
+ &:not(.highlight) {
97
+ color: map-get($background, blue);
98
+ }
99
+ }
100
+
101
+ // Mark
102
+ mark {
103
+ background: map-get($background, yellow);
104
+ }
105
+
106
+ // Message boxes
107
+ .matcha-message-box,
108
+ .matcha-msg-box,
109
+ .message-box {
110
+ background-color: rgba(map-get($primary, default), 0.2);
111
+ border-left-color: map-get($primary, default);
112
+ color: map-get($foreground, text);
113
+
114
+ &.error,
115
+ &.warning,
116
+ &.success,
117
+ &.info,
118
+ &--error,
119
+ &--warning,
120
+ &--success,
121
+ &--info {
122
+ color: map-get($foreground, text);
123
+ }
124
+
125
+ &--error,
126
+ &.error {
127
+ background-color: map-get($background, red-alpha);
128
+ border-left-color: map-get($background, red);
129
+ }
130
+
131
+ &--warning,
132
+ &.warning {
133
+ background-color: map-get($background, yellow-alpha);
134
+ border-left-color: map-get($background, yellow);
135
+ }
136
+
137
+ &--success,
138
+ &.success {
139
+ background-color: map-get($background, green-alpha);
140
+ border-left-color: map-get($background, green);
141
+ }
142
+
143
+ &--info,
144
+ &.info {
145
+ background-color: map-get($background, blue-alpha);
146
+ border-left-color: map-get($background, blue);
147
+ }
148
+ }
149
+ }
150
+
151
+ // -----------------------------------------------------------------------------------------------------
152
+ // Typography [Style]
153
+ // -----------------------------------------------------------------------------------------------------
154
+ // Paragraph
155
+ .par-xs {
156
+ font-size: 12px !important;
157
+ }
158
+
159
+ .par-sm,
160
+ .par-p {
161
+ font-size: 14px !important;
162
+ }
163
+
164
+ .par-md,
165
+ .par-m {
166
+ font-size: 16px !important;
167
+ }
168
+
169
+ .par-lg {
170
+ font-size: 20px !important;
171
+ }
172
+
173
+ .par-xl {
174
+ font-size: 24px !important;
175
+ }
176
+ .text-medium,
177
+ .text-semibold {
178
+ font-weight: 500;
179
+ }
180
+
181
+ .text-regular,
182
+ .text-book {
183
+ font-weight: 400;
184
+ }
185
+
186
+ .text-bold {
187
+ font-weight: 700;
188
+ }
189
+
190
+ .text-black {
191
+ font-weight: 900;
192
+ }
193
+
194
+ .matcha-message-box,
195
+ .matcha-msg-box,
196
+ .message-box {
197
+ padding: 16px;
198
+ border-left: 6px solid;
199
+
200
+ &.error,
201
+ &.warning,
202
+ &.success,
203
+ &.info,
204
+ &--error,
205
+ &--warning,
206
+ &--success,
207
+ &--info {
208
+ padding: 16px;
209
+ border-left: 6px solid;
210
+ }
211
+ }
212
+
213
+ .title {
214
+ line-height: 24px;
215
+ margin: 0 0 16px 0;
216
+ display: flex;
217
+ align-items: center;
218
+
219
+ .title-bullet {
220
+ margin: 0px 8px 0 0;
221
+ display: inline-block;
222
+ position: relative;
223
+ border-radius: 10px;
224
+ }
225
+
226
+ .title-content {
227
+ line-height: 20px;
228
+ display: -webkit-box;
229
+ -webkit-line-clamp: 2;
230
+ overflow: hidden;
231
+ text-overflow: ellipsis;
232
+ word-break: break-word;
233
+ white-space: initial;
234
+ -webkit-box-orient: vertical;
235
+ text-transform: capitalize;
236
+ }
237
+ }
238
+
239
+ .title-sm {
240
+ display: block;
241
+ overflow: hidden;
242
+ text-overflow: ellipsis;
243
+ white-space: nowrap;
244
+ }
@@ -0,0 +1,37 @@
1
+ /*
2
+ How to use
3
+ @import '~matcha-ds/assets/scss/components/matcha-audio-player.scss';
4
+ @include matcha-audio-player-theme($theme);
5
+ */
6
+ // -----------------------------------------------------------------------------------------------------
7
+ // Audio Player [Theme]
8
+ // -----------------------------------------------------------------------------------------------------
9
+ @mixin matcha-audio-player-theme($theme) {
10
+ $accent: map-get($theme, accent);
11
+ $warn: map-get($theme, warn);
12
+ $primary: map-get($theme, primary);
13
+ $background: map-get($theme, background);
14
+ $foreground: map-get($theme, foreground);
15
+
16
+ .matcha-audio-player {
17
+ .audio-player {
18
+ audio {
19
+ // display:none
20
+ }
21
+
22
+ .audio & {
23
+ a {
24
+ display: none;
25
+ }
26
+
27
+ audio {
28
+ display: inline-block;
29
+ }
30
+ }
31
+ }
32
+
33
+ .is-selected {
34
+ box-shadow: 0px 0px 0px 2px inset map-get($accent, default);
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,165 @@
1
+ @mixin matcha-button-theme($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
+ .matcha-button {
9
+ border: 0px solid currentColor;
10
+ transition: all 50ms linear;
11
+ overflow: hidden;
12
+ position: relative;
13
+ font-size: 16px;
14
+ font-weight: 700;
15
+ height: 56px;
16
+ appearance: auto;
17
+ text-rendering: auto;
18
+ letter-spacing: normal;
19
+ word-spacing: normal;
20
+ line-height: normal;
21
+ text-transform: none;
22
+ text-indent: 0px;
23
+ text-shadow: none;
24
+ display: inline-block;
25
+ text-align: center;
26
+ align-items: flex-start;
27
+ cursor: default;
28
+ box-sizing: border-box;
29
+ *{
30
+ pointer-events: none;
31
+ }
32
+ &-xs {
33
+ padding: 0 px-to-rem(32px);
34
+ border-radius: px-to-rem(8px);
35
+ line-height: px-to-rem(32px);
36
+ max-height: px-to-rem(32px);
37
+ }
38
+
39
+ &-sm {
40
+ padding: 0 px-to-rem(32px);
41
+ border-radius: px-to-rem(8px);
42
+ line-height: px-to-rem(40px);
43
+ max-height: px-to-rem(40px);
44
+ }
45
+
46
+ &-md {
47
+ padding: 0 px-to-rem(32px);
48
+ border-radius: px-to-rem(8px);
49
+ line-height: px-to-rem(48px);
50
+ max-height: px-to-rem(48px);
51
+ }
52
+
53
+ &-lg {
54
+ padding: 0 px-to-rem(32px);
55
+ border-radius: px-to-rem(8px);
56
+ line-height: px-to-rem(56px);
57
+ max-height: px-to-rem(56px);
58
+ }
59
+
60
+ &-xl {
61
+ padding: 0 px-to-rem(32px);
62
+ border-radius: px-to-rem(8px);
63
+ line-height: px-to-rem(56px);
64
+ max-height: px-to-rem(56px);
65
+ }
66
+
67
+ &-main {
68
+ background: map-get($background, background);
69
+ line-height: px-to-rem(32px);
70
+ padding: 0 px-to-rem(16px);
71
+ }
72
+
73
+ &-xs,
74
+ &-sm,
75
+ &-md,
76
+ &-lg,
77
+ &-xl {
78
+ min-width: 24px;
79
+
80
+ &.stroked {
81
+ box-shadow: 0px 0px 0px 2px inset;
82
+
83
+ &.color-label {
84
+ box-shadow: 0px 0px 0px 2px inset map-get($foreground, label);
85
+ color: map-get($foreground, label);
86
+ }
87
+
88
+ &.color-placeholder {
89
+ box-shadow: 0px 0px 0px 2px inset map-get($foreground, placeholder);
90
+ color: map-get($foreground, placeholder);
91
+ }
92
+ }
93
+ }
94
+ &:hover{
95
+ // filter: brightness(1.1);
96
+ }
97
+
98
+ &:active{
99
+ // filter: brightness(0.9);
100
+ }
101
+
102
+ &:disabled {
103
+ background-color: map-get($background, disabled);
104
+ color: map-get($foreground, disabled);
105
+ border-color: map-get($foreground, disabled);
106
+ }
107
+
108
+ &-basic {
109
+ border: 0px solid currentColor;
110
+ box-shadow: 0px 0px 0px 0px inset;
111
+ background: transparent !important;
112
+ }
113
+
114
+ &-outline {
115
+ border: 0px solid currentColor;
116
+ box-shadow: 0px 0px 0px 2px inset;
117
+ background: transparent !important;
118
+ }
119
+
120
+ &-pill {
121
+ border-radius: 999px;
122
+ }
123
+
124
+ &-link {
125
+ background-color: transparent;
126
+ color: map-get($foreground, label);
127
+ text-transform: initial;
128
+ letter-spacing: 0;
129
+ text-decoration: underline;
130
+ padding: 0;
131
+ }
132
+
133
+ &-icon {
134
+ aspect-ratio: 1;
135
+ padding: 0 !important;
136
+ display: flex;
137
+ align-items: center;
138
+ justify-content: center;
139
+ }
140
+
141
+ .ripple {
142
+ position: absolute;
143
+ border-radius: 999px;
144
+ transform: scale(0);
145
+ pointer-events: none;
146
+ }
147
+ .ripple.show {
148
+ animation: ripple 400ms ease-out;
149
+ }
150
+
151
+ @keyframes ripple {
152
+ 0% {
153
+ opacity: 0;
154
+ transform: scale(0);
155
+ }
156
+ 25% {
157
+ opacity: 1;
158
+ }
159
+ 100% {
160
+ opacity: 0;
161
+ transform: scale(2);
162
+ }
163
+ }
164
+ }
165
+ }
@@ -0,0 +1,93 @@
1
+ @mixin matcha-cards-theme($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
+ .matcha-card,
9
+ .matcha-card-flat {
10
+ // background: map-get($background, card);
11
+ }
12
+ }
13
+
14
+ // -----------------------------------------------------------------------------------------------------
15
+ // @ Cards
16
+ // -----------------------------------------------------------------------------------------------------
17
+ .matcha-card,
18
+ .matcha-card-flat {
19
+ padding: 16px;
20
+ border-radius: 8px;
21
+
22
+ &-border,
23
+ &-border-left {
24
+ border-left: 8px solid;
25
+ }
26
+
27
+ &-border-right {
28
+ border-right: 8px solid;
29
+ }
30
+
31
+ &.disabled {
32
+ transition: opacity 100ms linear;
33
+ opacity: 0.5;
34
+ pointer-events: none;
35
+ }
36
+
37
+ &.enabled {
38
+ transition: opacity 100ms linear;
39
+ opacity: 1;
40
+ }
41
+
42
+ &.variable-width {
43
+ min-width: 0;
44
+ }
45
+
46
+ &.auto-width {
47
+ min-width: 0;
48
+ max-width: none;
49
+ }
50
+
51
+ &.fixed-width {
52
+ min-width: 264px;
53
+ max-width: 264px;
54
+ width: 264px;
55
+ }
56
+
57
+ // Buttons
58
+ .mat-button {
59
+ min-width: 0 !important;
60
+ padding: 0 8px !important;
61
+ }
62
+
63
+ // Button Toggle Group
64
+ .mat-button-toggle-group,
65
+ .mat-button-toggle-standalone {
66
+ box-shadow: none !important;
67
+ }
68
+
69
+ .mat-tab-label {
70
+ min-width: 0 !important;
71
+ }
72
+
73
+ // Divider
74
+ .card-divider {
75
+ margin: 16px;
76
+
77
+ &.full-width {
78
+ margin: 0;
79
+ }
80
+ }
81
+
82
+ // Expand Area
83
+ .card-expand-area {
84
+ overflow: hidden;
85
+
86
+ .card-expanded-content {
87
+ padding: 8px 16px 16px 16px;
88
+ line-height: 1.75;
89
+ }
90
+ }
91
+
92
+ }
93
+
@@ -0,0 +1,32 @@
1
+ /*
2
+ How to use
3
+ @import '~matcha-ds/assets/scss/components/matcha-color-pick.scss';
4
+ @include matcha-color-pick-theme($theme);
5
+ */
6
+ // -----------------------------------------------------------------------------------------------------
7
+ // Color Pick [Theme]
8
+ // -----------------------------------------------------------------------------------------------------
9
+ @mixin matcha-color-pick-theme($theme) {
10
+ $accent: map-get($theme, accent);
11
+ $warn: map-get($theme, warn);
12
+ $primary: map-get($theme, primary);
13
+ $background: map-get($theme, background);
14
+ $foreground: map-get($theme, foreground);
15
+
16
+ .matcha-color-pick {
17
+ .mat-radio-group {
18
+ .mat-radio-button {
19
+ .mat-radio-label {
20
+ .mat-radio-label-content {
21
+ width: 100%;
22
+ }
23
+ }
24
+ }
25
+ }
26
+
27
+ .is-selected {
28
+ border-radius: 8px;
29
+ box-shadow: 0px 0px 0px 2px map-get($background, card);
30
+ }
31
+ }
32
+ }
@@ -0,0 +1,25 @@
1
+ /*
2
+ How to use
3
+ @import '~matcha-ds/assets/scss/components/matcha-draggable.scss';
4
+ @include matcha-draggable-theme($theme);
5
+ */
6
+ // -----------------------------------------------------------------------------------------------------
7
+ // Draggable [Theme]
8
+ // -----------------------------------------------------------------------------------------------------
9
+ @mixin matcha-draggable-theme($theme) {
10
+ $accent: map-get($theme, accent);
11
+ $warn: map-get($theme, warn);
12
+ $primary: map-get($theme, primary);
13
+ $background: map-get($theme, background);
14
+ $foreground: map-get($theme, foreground);
15
+
16
+ .matcha-draggable {
17
+ .check-with-label:checked+.label-for-check {
18
+ box-shadow: 0px 0px 0px 8px map-get($background, card), 0px 0px 0px 10px map-get($foreground, placeholder);
19
+ }
20
+
21
+ .is-selected {
22
+ box-shadow: 0px 0px 0px 8px map-get($background, card), 0px 0px 0px 10px map-get($foreground, placeholder);
23
+ }
24
+ }
25
+ }