matcha-theme 19.43.0 → 19.44.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.
@@ -0,0 +1,141 @@
1
+ @mixin matcha-spin($theme) {
2
+ matcha-spin {
3
+ // Red
4
+ &[color="red"] .spin-progress {
5
+ stroke: getRed($theme);
6
+ }
7
+ // Pink
8
+ &[color="pink"] .spin-progress {
9
+ stroke: getPink($theme);
10
+ }
11
+ // Purple
12
+ &[color="purple"] .spin-progress {
13
+ stroke: getPurple($theme);
14
+ }
15
+ // Deep Purple
16
+ &[color="deep-purple"] .spin-progress {
17
+ stroke: getDeepPurple($theme);
18
+ }
19
+ // Indigo
20
+ &[color="indigo"] .spin-progress {
21
+ stroke: getIndigo($theme);
22
+ }
23
+ // Blue
24
+ &[color="blue"] .spin-progress {
25
+ stroke: getBlue($theme);
26
+ }
27
+ // Light Blue
28
+ &[color="light-blue"] .spin-progress {
29
+ stroke: getLightBlue($theme);
30
+ }
31
+ // Cyan
32
+ &[color="cyan"] .spin-progress {
33
+ stroke: getCyan($theme);
34
+ }
35
+ // Teal
36
+ &[color="teal"] .spin-progress {
37
+ stroke: getTeal($theme);
38
+ }
39
+ // Green
40
+ &[color="green"] .spin-progress {
41
+ stroke: getGreen($theme);
42
+ }
43
+ // Light Green
44
+ &[color="light-green"] .spin-progress {
45
+ stroke: getLightGreen($theme);
46
+ }
47
+ // Lime
48
+ &[color="lime"] .spin-progress {
49
+ stroke: getLime($theme);
50
+ }
51
+ // Yellow
52
+ &[color="yellow"] .spin-progress {
53
+ stroke: getYellow($theme);
54
+ }
55
+ // Amber
56
+ &[color="amber"] .spin-progress {
57
+ stroke: getAmber($theme);
58
+ }
59
+ // Orange
60
+ &[color="orange"] .spin-progress {
61
+ stroke: getOrange($theme);
62
+ }
63
+ // Deep Orange
64
+ &[color="deep-orange"] .spin-progress {
65
+ stroke: getDeepOrange($theme);
66
+ }
67
+ // Brown
68
+ &[color="brown"] .spin-progress {
69
+ stroke: getBrown($theme);
70
+ }
71
+ // Grey
72
+ &[color="grey"] .spin-progress {
73
+ stroke: getGrey($theme);
74
+ }
75
+ // Blue Grey
76
+ &[color="blue-grey"] .spin-progress {
77
+ stroke: getBlueGrey($theme);
78
+ }
79
+ // Accent
80
+ &[color="accent"] .spin-progress {
81
+ stroke: getAccent($theme);
82
+ }
83
+ // Primary
84
+ &[color="primary"] .spin-progress {
85
+ stroke: getPrimary($theme);
86
+ }
87
+ // Warn
88
+ &[color="warn"] .spin-progress {
89
+ stroke: getWarn($theme);
90
+ }
91
+ .spin-placeholder {
92
+ stroke: getDisabled($theme);
93
+ }
94
+ }
95
+ }
96
+ matcha-spin:not([progress]) .spin-progress {
97
+ animation:
98
+ matcha-spin-rotate 1.5s linear infinite,
99
+ matcha-spin-dash 1.5s ease-in-out infinite;
100
+ }
101
+
102
+ .matcha-spin {
103
+ display: inline-block;
104
+ position: relative;
105
+
106
+ svg {
107
+ transform: rotate(-90deg);
108
+ }
109
+
110
+ .spin-placeholder {
111
+ fill: none;
112
+ }
113
+
114
+ .spin-progress {
115
+ fill: none;
116
+ stroke-linecap: round;
117
+ transform-origin: center;
118
+ transition: stroke-dashoffset 0.3s linear;
119
+ }
120
+
121
+ @keyframes matcha-spin-rotate {
122
+ 100% {
123
+ transform: rotate(360deg);
124
+ }
125
+ }
126
+
127
+ @keyframes matcha-spin-dash {
128
+ 0% {
129
+ stroke-dasharray: 1, 200;
130
+ stroke-dashoffset: 0;
131
+ }
132
+ 50% {
133
+ stroke-dasharray: 100, 200;
134
+ stroke-dashoffset: -15;
135
+ }
136
+ 100% {
137
+ stroke-dasharray: 100, 200;
138
+ stroke-dashoffset: -200;
139
+ }
140
+ }
141
+ }
package/main.scss CHANGED
@@ -38,6 +38,7 @@
38
38
  @import "./components/matcha-checkbox.scss";
39
39
  @import "./components/matcha-accordion.scss";
40
40
  @import "./components/matcha-ripple.scss"; // matcha-ripple-theme($theme)
41
+ @import "./components/matcha-spin.scss"; // matcha-spin-theme($theme)
41
42
 
42
43
  // VENDORS
43
44
  @import "./vendors/angular-editor.scss";
@@ -136,4 +137,5 @@
136
137
  @include matcha-menu-theme($theme);
137
138
  @include matcha-form-field($theme);
138
139
  @include matcha-checkbox($theme);
140
+ @include matcha-spin($theme);
139
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-theme",
3
- "version": "19.43.0",
3
+ "version": "19.44.0",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {