@inchurch/matcha-theme 20.0.11 → 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.
Files changed (98) hide show
  1. package/abstracts/_colors.scss +404 -404
  2. package/abstracts/_elevation.scss +102 -102
  3. package/abstracts/_functions.scss +1212 -1212
  4. package/abstracts/_media-breakpoint.scss +23 -23
  5. package/abstracts/_typography.scss +127 -127
  6. package/base/_reset.scss +438 -438
  7. package/components/app-page-header.scss +260 -0
  8. package/components/matcha-accordion.scss +294 -157
  9. package/components/matcha-avatar.scss +171 -31
  10. package/components/matcha-badge.scss +4 -4
  11. package/components/matcha-breadcrumb.scss +232 -126
  12. package/components/matcha-button-toggle.scss +44 -0
  13. package/components/matcha-buttons.scss +908 -784
  14. package/components/matcha-calendar.scss +70 -2
  15. package/components/matcha-cards.scss +28 -2
  16. package/components/matcha-checkbox.scss +191 -490
  17. package/components/matcha-chip.scss +297 -212
  18. package/components/matcha-command-palette.scss +291 -63
  19. package/components/matcha-crop.scss +407 -172
  20. package/components/matcha-date.scss +81 -81
  21. package/components/matcha-divider.scss +86 -31
  22. package/components/matcha-drawer.scss +201 -50
  23. package/components/matcha-drop-image.scss +14 -0
  24. package/components/matcha-drop-list.scss +42 -1
  25. package/components/matcha-empty-state.scss +195 -83
  26. package/components/matcha-flag.scss +93 -52
  27. package/components/matcha-footer.scss +68 -164
  28. package/components/matcha-form-field.scss +52 -0
  29. package/components/matcha-form-section.scss +101 -101
  30. package/components/matcha-header.scss +135 -325
  31. package/components/matcha-highlight.scss +65 -197
  32. package/components/matcha-hint-text.scss +21 -0
  33. package/components/matcha-horizontal-tree.scss +317 -317
  34. package/components/matcha-icon.scss +17 -25
  35. package/components/matcha-list.scss +5 -5
  36. package/components/matcha-menu.scss +13 -0
  37. package/components/matcha-modal.scss +58 -84
  38. package/components/matcha-nav.scss +361 -230
  39. package/components/matcha-notification.scss +413 -197
  40. package/components/matcha-option.scss +79 -23
  41. package/components/matcha-paginator.scss +689 -235
  42. package/components/matcha-panel.scss +42 -26
  43. package/components/matcha-profile-card.scss +50 -50
  44. package/components/matcha-progress-bar.scss +257 -153
  45. package/components/matcha-radio.scss +244 -452
  46. package/components/matcha-scrollbox-shadow.scss +122 -122
  47. package/components/matcha-select.scss +3 -3
  48. package/components/matcha-skeleton.scss +18 -0
  49. package/components/matcha-slide-toggle.scss +47 -2
  50. package/components/matcha-slider.scss +172 -75
  51. package/components/matcha-snack-bar.scss +114 -121
  52. package/components/matcha-spinner.scss +76 -57
  53. package/components/matcha-status-pill.scss +82 -0
  54. package/components/matcha-stepper.scss +377 -177
  55. package/components/matcha-table.scss +569 -785
  56. package/components/matcha-tabs.scss +624 -469
  57. package/components/matcha-toolbar.scss +359 -206
  58. package/components/matcha-tooltip.scss +156 -62
  59. package/components/matcha-tree-view.scss +189 -0
  60. package/components/matcha-uploader.scss +240 -62
  61. package/fonts/manrope/manrope-latin-ext.woff2 +0 -0
  62. package/fonts/manrope/manrope-latin.woff2 +0 -0
  63. package/layout/matcha-page-layout.scss +4 -4
  64. package/main.scss +232 -265
  65. package/package.json +1 -1
  66. package/tokens/_animations-tokens.scss +37 -37
  67. package/tokens/_breakpoints-tokens.scss +35 -26
  68. package/tokens/_color-tokens.scss +1152 -1152
  69. package/tokens/_css-custom-properties.scss +650 -568
  70. package/tokens/_spacing-tokens.scss +94 -94
  71. package/vendors/angular-editor.scss +56 -56
  72. package/vendors/angular-material-fixes.scss +297 -297
  73. package/vendors/charts.scss +92 -92
  74. package/vendors/ng5-slider.scss +56 -56
  75. package/vendors/ngx-material-timepicker.scss +50 -50
  76. package/fonts/CircularStd-Black.eot +0 -0
  77. package/fonts/CircularStd-Black.svg +0 -3426
  78. package/fonts/CircularStd-Black.ttf +0 -0
  79. package/fonts/CircularStd-Black.woff +0 -0
  80. package/fonts/CircularStd-Black.woff2 +0 -0
  81. package/fonts/CircularStd-Bold.eot +0 -0
  82. package/fonts/CircularStd-Bold.otf +0 -0
  83. package/fonts/CircularStd-Bold.svg +0 -13532
  84. package/fonts/CircularStd-Bold.ttf +0 -0
  85. package/fonts/CircularStd-Bold.woff +0 -0
  86. package/fonts/CircularStd-Bold.woff2 +0 -0
  87. package/fonts/CircularStd-Medium.eot +0 -0
  88. package/fonts/CircularStd-Medium.otf +0 -0
  89. package/fonts/CircularStd-Medium.svg +0 -13511
  90. package/fonts/CircularStd-Medium.ttf +0 -0
  91. package/fonts/CircularStd-Medium.woff +0 -0
  92. package/fonts/CircularStd-Medium.woff2 +0 -0
  93. package/fonts/CircularStd-Regular.eot +0 -0
  94. package/fonts/CircularStd-Regular.otf +0 -0
  95. package/fonts/CircularStd-Regular.svg +0 -2378
  96. package/fonts/CircularStd-Regular.ttf +0 -0
  97. package/fonts/CircularStd-Regular.woff +0 -0
  98. package/fonts/CircularStd-Regular.woff2 +0 -0
@@ -1,23 +1,23 @@
1
- // -------------------------------------------------------------------------------------------------------------------
2
- // @ Theme mixins
3
- // --------------------------------------------------------------------------------------------------------------------
4
- /*
5
- Esse mixin foi criado para não precisar escrever o valor em pixels de cada breakpoint toda vez que for necessário
6
- criar um media query. Se em algum momento for necessário alterar o valor de um breakpoint, basta alterar o valor nos
7
- tokens e o mixin irá se encarregar de atualizar todos os media queries que utilizam aquele breakpoint.
8
-
9
- Exemplo de uso:
10
-
11
-
12
-
13
- */
14
- @mixin media-breakpoint($breakpointName) {
15
- $mediaQuery: map-get($breakpoints, $breakpointName);
16
- @if ($mediaQuery == null) {
17
- @content;
18
- } @else {
19
- @media #{$mediaQuery} {
20
- @content;
21
- }
22
- }
23
- }
1
+ // -------------------------------------------------------------------------------------------------------------------
2
+ // @ Theme mixins
3
+ // --------------------------------------------------------------------------------------------------------------------
4
+ /*
5
+ Esse mixin foi criado para não precisar escrever o valor em pixels de cada breakpoint toda vez que for necessário
6
+ criar um media query. Se em algum momento for necessário alterar o valor de um breakpoint, basta alterar o valor nos
7
+ tokens e o mixin irá se encarregar de atualizar todos os media queries que utilizam aquele breakpoint.
8
+
9
+ Exemplo de uso:
10
+
11
+
12
+
13
+ */
14
+ @mixin media-breakpoint($breakpointName) {
15
+ $mediaQuery: map-get($breakpoints, $breakpointName);
16
+ @if ($mediaQuery == null) {
17
+ @content;
18
+ } @else {
19
+ @media #{$mediaQuery} {
20
+ @content;
21
+ }
22
+ }
23
+ }
@@ -1,127 +1,127 @@
1
- // -------------------------------------------------------------------------------------------------------------------
2
- // @ Typography mixins
3
- // -------------------------------------------------------------------------------------------------------------------
4
- // Outputs the shorthand `font` CSS property, based on a set of typography values. Falls back to
5
- // the individual properties if a value that isn't allowed in the shorthand is passed in.
6
- @mixin matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family) {
7
- // If any of the values are set to `inherit`, we can't use the shorthand
8
- // so we fall back to passing in the individual properties.
9
- @if (
10
- $font-size
11
- ==inherit or
12
- $font-weight
13
- ==inherit or
14
- $line-height
15
- ==inherit or
16
- $font-family
17
- ==inherit or
18
- $font-size
19
- ==null or
20
- $font-weight
21
- ==null or
22
- $line-height
23
- ==null or
24
- $font-family
25
- ==null
26
- ) {
27
- font-size: $font-size;
28
- font-weight: $font-weight;
29
- line-height: $line-height;
30
- font-family: $font-family;
31
- } @else {
32
- // Otherwise use the shorthand `font`, because it's the least amount of bytes. Note
33
- // that we need to use interpolation for `font-size/line-height` in order to prevent
34
- // Sass from dividing the two values.
35
- font: $font-weight #{$font-size}/#{$line-height} $font-family;
36
- }
37
- }
38
-
39
- // Converts a typography level into CSS styles.
40
- @mixin matcha-typography-level-to-styles($config, $level) {
41
- $font-size: matcha-font-size($config, $level);
42
- $font-weight: matcha-font-weight($config, $level);
43
- $line-height: matcha-line-height($config, $level);
44
- $font-family: matcha-font-family($config, $level);
45
-
46
- @include matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family);
47
- letter-spacing: matcha-letter-spacing($config, $level);
48
- }
49
-
50
- // Represents a collection of typography levels.
51
- // Defaults come from https://material.io/guidelines/style/typography.html
52
- // Note: The spec doesn't mention letter spacing. The values here come from
53
- // eyeballing it until it looked exactly like the spec examples.
54
-
55
- // h1 40px headline - bold
56
- // h2 32px title - medium
57
- // h3 24px subheading - bold
58
- // h4 20px subheading - bold
59
-
60
- // h5-5 18px '' - bold
61
- // h6 18px '' - bold
62
- // h7 18px '' - bold
63
- // h8 12px '' - bold
64
-
65
- // m 16px body - regular
66
- // p 14px body - regular
67
- // small 12px caption - regular
68
- @mixin matcha-reset-typography($config) {
69
- // Headings — aligned with Figma matcha/text/* styles
70
- .h1,
71
- h1 {
72
- @include matcha-typography-level-to-styles($config, display);
73
- }
74
-
75
- .h2,
76
- h2 {
77
- @include matcha-typography-level-to-styles($config, headline);
78
- }
79
-
80
- .h3,
81
- h3 {
82
- @include matcha-typography-level-to-styles($config, title-lg);
83
- }
84
-
85
- .h4,
86
- h4 {
87
- @include matcha-typography-level-to-styles($config, title-md);
88
- }
89
-
90
- .h5,
91
- h5 {
92
- @include matcha-typography-level-to-styles($config, title-sm);
93
- }
94
-
95
- .h6,
96
- h6 {
97
- @include matcha-typography-level-to-styles($config, label-sm);
98
- }
99
-
100
- .text-bold,
101
- strong,
102
- b {
103
- font-weight: matcha-font-weight($config, title-lg);
104
- }
105
-
106
- & {
107
- font-family: matcha-font-family($config, body-md);
108
- }
109
-
110
- button {
111
- font-family: matcha-font-family($config, button-md);
112
- font-weight: matcha-font-weight($config, button-md);
113
- }
114
-
115
- input[type="text"],
116
- input[type="email"],
117
- input[type="tel"],
118
- input[type="url"],
119
- input[type="password"],
120
- input[type="number"],
121
- input[type="search"],
122
- textarea {
123
- font-family: matcha-font-family($config, body-md);
124
- font-weight: matcha-font-weight($config, body-md);
125
- font-size: px-to-rem(16px);
126
- }
127
- }
1
+ // -------------------------------------------------------------------------------------------------------------------
2
+ // @ Typography mixins
3
+ // -------------------------------------------------------------------------------------------------------------------
4
+ // Outputs the shorthand `font` CSS property, based on a set of typography values. Falls back to
5
+ // the individual properties if a value that isn't allowed in the shorthand is passed in.
6
+ @mixin matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family) {
7
+ // If any of the values are set to `inherit`, we can't use the shorthand
8
+ // so we fall back to passing in the individual properties.
9
+ @if (
10
+ $font-size
11
+ ==inherit or
12
+ $font-weight
13
+ ==inherit or
14
+ $line-height
15
+ ==inherit or
16
+ $font-family
17
+ ==inherit or
18
+ $font-size
19
+ ==null or
20
+ $font-weight
21
+ ==null or
22
+ $line-height
23
+ ==null or
24
+ $font-family
25
+ ==null
26
+ ) {
27
+ font-size: $font-size;
28
+ font-weight: $font-weight;
29
+ line-height: $line-height;
30
+ font-family: $font-family;
31
+ } @else {
32
+ // Otherwise use the shorthand `font`, because it's the least amount of bytes. Note
33
+ // that we need to use interpolation for `font-size/line-height` in order to prevent
34
+ // Sass from dividing the two values.
35
+ font: $font-weight #{$font-size}/#{$line-height} $font-family;
36
+ }
37
+ }
38
+
39
+ // Converts a typography level into CSS styles.
40
+ @mixin matcha-typography-level-to-styles($config, $level) {
41
+ $font-size: matcha-font-size($config, $level);
42
+ $font-weight: matcha-font-weight($config, $level);
43
+ $line-height: matcha-line-height($config, $level);
44
+ $font-family: matcha-font-family($config, $level);
45
+
46
+ @include matcha-typography-font-shorthand($font-size, $font-weight, $line-height, $font-family);
47
+ letter-spacing: matcha-letter-spacing($config, $level);
48
+ }
49
+
50
+ // Represents a collection of typography levels.
51
+ // Defaults come from https://material.io/guidelines/style/typography.html
52
+ // Note: The spec doesn't mention letter spacing. The values here come from
53
+ // eyeballing it until it looked exactly like the spec examples.
54
+
55
+ // h1 40px headline - bold
56
+ // h2 32px title - medium
57
+ // h3 24px subheading - bold
58
+ // h4 20px subheading - bold
59
+
60
+ // h5-5 18px '' - bold
61
+ // h6 18px '' - bold
62
+ // h7 18px '' - bold
63
+ // h8 12px '' - bold
64
+
65
+ // m 16px body - regular
66
+ // p 14px body - regular
67
+ // small 12px caption - regular
68
+ @mixin matcha-reset-typography($config) {
69
+ // Headings — aligned with Figma matcha/text/* styles
70
+ .h1,
71
+ h1 {
72
+ @include matcha-typography-level-to-styles($config, display);
73
+ }
74
+
75
+ .h2,
76
+ h2 {
77
+ @include matcha-typography-level-to-styles($config, headline);
78
+ }
79
+
80
+ .h3,
81
+ h3 {
82
+ @include matcha-typography-level-to-styles($config, title-lg);
83
+ }
84
+
85
+ .h4,
86
+ h4 {
87
+ @include matcha-typography-level-to-styles($config, title-md);
88
+ }
89
+
90
+ .h5,
91
+ h5 {
92
+ @include matcha-typography-level-to-styles($config, title-sm);
93
+ }
94
+
95
+ .h6,
96
+ h6 {
97
+ @include matcha-typography-level-to-styles($config, label-sm);
98
+ }
99
+
100
+ .text-bold,
101
+ strong,
102
+ b {
103
+ font-weight: matcha-font-weight($config, title-lg);
104
+ }
105
+
106
+ & {
107
+ font-family: matcha-font-family($config, body-md);
108
+ }
109
+
110
+ button {
111
+ font-family: matcha-font-family($config, button-md);
112
+ font-weight: matcha-font-weight($config, button-md);
113
+ }
114
+
115
+ input[type="text"],
116
+ input[type="email"],
117
+ input[type="tel"],
118
+ input[type="url"],
119
+ input[type="password"],
120
+ input[type="number"],
121
+ input[type="search"],
122
+ textarea {
123
+ font-family: matcha-font-family($config, body-md);
124
+ font-weight: matcha-font-weight($config, body-md);
125
+ font-size: px-to-rem(16px);
126
+ }
127
+ }