monkey-style-guide-v2 0.0.28 → 0.0.30

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monkey-style-guide-v2",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14",
@@ -1,23 +0,0 @@
1
- /** ************************
2
- * Copyright Monkey Exchange. All Rights Reserved
3
- * This style guide was developed by Monkey Exchange Team
4
- * MIT Licence
5
- ************************* */
6
-
7
- @import '../partials/variables';
8
-
9
- @function f-size($key) {
10
- @return map-get($mecx-sizes, $key);
11
- }
12
-
13
- @function f-lh($key) {
14
- @return map-get($mecx-lh, $key);
15
- }
16
-
17
- @function f-weight($key) {
18
- @return map-get($mecx-weight, $key);
19
- }
20
-
21
- @function f-cl-gray($key) {
22
- @return map-get($mecx-gray, $key);
23
- }
@@ -1,111 +0,0 @@
1
- /** ************************
2
- * Copyright Monkey Exchange. All Rights Reserved
3
- * This style guide was developed by Monkey Exchange Team
4
- * MIT Licence
5
- ************************* */
6
-
7
- @import '../partials/variables';
8
- @import 'function';
9
-
10
- @mixin mecx-font($props: ()) {
11
- $default-props: (
12
- size: f-size(base),
13
- weight: f-weight(regular),
14
- line-height: f-lh(base),
15
- color: #000
16
- );
17
- $properties: (
18
- size: font-size,
19
- weight: font-weight,
20
- height: line-height,
21
- color: color
22
- );
23
-
24
- @each $key, $property in $properties {
25
- $value: if(map-has-key($props, $key), map-get($props, $key), map-get($default-props, $key));
26
-
27
- @if $value != null {
28
- #{$property}: #{$value};
29
- }
30
- }
31
- }
32
-
33
- @mixin sizes() {
34
- @each $key, $value in $mecx-sizes {
35
- &-#{$key} {
36
- font-size: $value !important;
37
- }
38
- }
39
- }
40
-
41
- @mixin weight() {
42
- @each $key, $value in $mecx-weight {
43
- &-weight-#{$key} {
44
- font-weight: $value !important;
45
- }
46
- }
47
- }
48
-
49
- @mixin line-height() {
50
- @each $key, $value in $mecx-lh {
51
- &-lh-#{$key} {
52
- line-height: $value !important;
53
- }
54
- }
55
- }
56
-
57
- @mixin align() {
58
- @each $key, $value in $mecx-align {
59
- &-a-#{$key} {
60
- text-align: $value !important;
61
- }
62
- }
63
- }
64
-
65
- @mixin gray-cl($attribute: 'color') {
66
- @each $key, $value in $mecx-gray {
67
- &-cl-gray-#{$key} {
68
- #{$attribute}: $value !important;
69
- }
70
- }
71
- }
72
-
73
- @mixin theme-cl($attribute: 'color') {
74
- @each $key, $value in $mecx-theme {
75
- @if type-of($value) != 'map' {
76
- &-cl-theme-#{$key} {
77
- #{$attribute}: $value !important;
78
- }
79
- }
80
- }
81
- }
82
-
83
- @mixin warning-cl($attribute: 'color') {
84
- @each $key, $value in $mecx-warning {
85
- @if type-of($value) != 'map' {
86
- &-cl-warning-#{$key} {
87
- #{$attribute}: $value !important;
88
- }
89
- }
90
- }
91
- }
92
-
93
- @mixin success-cl($attribute: 'color') {
94
- @each $key, $value in $mecx-success {
95
- @if type-of($value) != 'map' {
96
- &-cl-success-#{$key} {
97
- #{$attribute}: $value !important;
98
- }
99
- }
100
- }
101
- }
102
-
103
- @mixin error-cl($attribute: 'color') {
104
- @each $key, $value in $mecx-error {
105
- @if type-of($value) != 'map' {
106
- &-cl-error-#{$key} {
107
- #{$attribute}: $value !important;
108
- }
109
- }
110
- }
111
- }
Binary file