monkey-style-guide 21.2.0 → 21.2.3

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 (30) hide show
  1. package/README.md +24 -24
  2. package/assets/scss/autocomplete/_index.scss +6 -6
  3. package/assets/scss/autocomplete/_styles.scss +149 -149
  4. package/assets/scss/directives/_badge.scss +48 -48
  5. package/assets/scss/directives/_index.scss +8 -8
  6. package/assets/scss/directives/_popover.scss +102 -102
  7. package/assets/scss/directives/_styles.scss +99 -99
  8. package/assets/scss/input/_index.scss +6 -6
  9. package/assets/scss/input/_styles.scss +67 -67
  10. package/assets/scss/partials/_breakpoints.scss +145 -145
  11. package/assets/scss/partials/_grid-system.scss +5069 -5069
  12. package/assets/scss/partials/_helper-classes.scss +373 -373
  13. package/assets/scss/partials/_icons.scss +38 -38
  14. package/assets/scss/partials/_index.scss +14 -14
  15. package/assets/scss/partials/_popover.scss +3 -3
  16. package/assets/scss/partials/_scrollbars.scss +29 -29
  17. package/assets/scss/partials/_skeleton-loading.scss +95 -95
  18. package/assets/scss/partials/_style-reset.scss +191 -191
  19. package/assets/scss/partials/_variables.scss +95 -95
  20. package/assets/scss/table/_index.scss +6 -6
  21. package/assets/scss/table/_styles.scss +11 -11
  22. package/assets/scss/theme.scss +14 -14
  23. package/assets/scss/typography/_index.scss +6 -6
  24. package/assets/scss/typography/_styles.scss +43 -43
  25. package/fesm2022/monkey-style-guide.mjs +2063 -1989
  26. package/fesm2022/monkey-style-guide.mjs.map +1 -1
  27. package/monkey-style-guide-21.2.3.tgz +0 -0
  28. package/package.json +1 -1
  29. package/types/monkey-style-guide.d.ts +21 -4
  30. package/monkey-style-guide-21.2.0.tgz +0 -0
package/README.md CHANGED
@@ -1,24 +1,24 @@
1
- # MonkeyStyleGuideV2
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project monkey-style-guide-v2` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project monkey-style-guide-v2`.
8
- > Note: Don't forget to add `--project monkey-style-guide-v2` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build monkey-style-guide-v2` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build monkey-style-guide-v2`, go to the dist folder `cd dist/monkey-style-guide-v2` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test monkey-style-guide-v2` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
1
+ # MonkeyStyleGuideV2
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 17.3.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project monkey-style-guide-v2` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project monkey-style-guide-v2`.
8
+ > Note: Don't forget to add `--project monkey-style-guide-v2` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build monkey-style-guide-v2` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build monkey-style-guide-v2`, go to the dist folder `cd dist/monkey-style-guide-v2` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test monkey-style-guide-v2` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -1,6 +1,6 @@
1
- /**************************
2
- * Copyright Monkey Exchange. All Rights Reserved
3
- * This style guide was developed by Monkey Exchange Team
4
- * MIT Licence
5
- **************************/
6
- @use 'styles';
1
+ /**************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ **************************/
6
+ @use 'styles';
@@ -1,149 +1,149 @@
1
- /* stylelint-disable property-no-vendor-prefix */
2
-
3
- /** ************************
4
- * Copyright Monkey Exchange. All Rights Reserved
5
- * This style guide was developed by Monkey Exchange Team
6
- * MIT Licence
7
- ************************* */
8
- .mecx-autocomplete-address-wrapper {
9
- position: relative;
10
- padding: 4px;
11
- display: flex;
12
- flex-direction: column;
13
- justify-content: space-between;
14
- min-height: 100px;
15
-
16
- .mecx-autocomplete-address-loading,
17
- .mecx-autocomplete-address-no-data {
18
- padding: 12px;
19
- display: flex;
20
- justify-content: center;
21
- flex-direction: column;
22
- align-items: center;
23
- gap: 4px;
24
- color: var(--mecx-color-gray-600);
25
- font-size: 12px;
26
- letter-spacing: 0.54px;
27
- text-align: center;
28
-
29
- &-icon {
30
- svg {
31
- path {
32
- stroke: var(--mecx-color-gray-600);
33
- }
34
- }
35
- }
36
- }
37
-
38
- .mecx-autocomplete-address-loading {
39
- position: absolute;
40
- width: 100%;
41
- height: 100%;
42
- left: 0px;
43
- top: 0;
44
- z-index: 1;
45
- background: var(--mecx-color-gray-100);
46
- opacity: 0.5;
47
- border-radius: 6px;
48
- padding: 0;
49
- color: var(--mecx-color-gray-900);
50
- }
51
-
52
- .mecx-autocomplete-address-footer {
53
- display: flex;
54
- justify-content: flex-end;
55
- padding: 8px 4px 0px;
56
- border-top: 1px solid var(--mecx-color-gray-200);
57
- margin-top: 4px;
58
- opacity: 0.5;
59
- }
60
- }
61
-
62
- .mecx-autocomplete-address-options {
63
- display: flex;
64
- flex-direction: column;
65
- gap: 4px;
66
- padding: 2px;
67
- max-height: 300px;
68
- overflow: hidden auto;
69
- }
70
-
71
- .mecx-autocomplete-address-option {
72
- display: flex;
73
- position: relative;
74
- cursor: pointer;
75
- line-height: 16px;
76
- font-size: 14px;
77
- color: var(--mecx-color-gray-900);
78
- transition: all 0.1s ease-in-out;
79
- border-radius: 4px;
80
- align-items: center;
81
- gap: 8px;
82
- padding: unset;
83
-
84
- div {
85
- display: flex;
86
- align-items: center;
87
- gap: 8px;
88
- padding: 8px;
89
- }
90
- }
91
-
92
- .mecx-autocomplete-wrapper {
93
- padding: 4px;
94
-
95
- .mecx-autocomplete-loading,
96
- .mecx-autocomplete-no-data {
97
- padding: 12px;
98
- display: flex;
99
- justify-content: center;
100
- flex-direction: column;
101
- align-items: center;
102
- gap: 4px;
103
- color: var(--mecx-color-gray-600);
104
- font-size: 12px;
105
- letter-spacing: 0.54px;
106
- text-align: center;
107
- }
108
- }
109
-
110
- .mecx-autocomplete-options {
111
- display: flex;
112
- flex-direction: column;
113
- gap: 4px;
114
- padding: 2px;
115
- max-height: 300px;
116
- overflow: hidden auto;
117
-
118
- .mecx-autocomplete-option {
119
- display: flex;
120
- position: relative;
121
- cursor: pointer;
122
- line-height: 16px;
123
- font-size: 14px;
124
- color: var(--mecx-color-gray-900);
125
- transition: all 0.1s ease-in-out;
126
- border-radius: 4px;
127
-
128
- monkey-option {
129
- border-radius: 4px;
130
- width: 100%;
131
- }
132
-
133
- &:hover {
134
- border-radius: 4px;
135
- color: var(--mecx-color-gray-900);
136
- background-color: var(--mecx-color-gray-100);
137
- }
138
-
139
- &.mecx-autocomplete-selected {
140
- color: var(--mecx-color-theme-contrast-main);
141
- background-color: var(--mecx-color-theme-main);
142
-
143
- monkey-option {
144
- color: var(--mecx-color-theme-contrast-main);
145
- background-color: var(--mecx-color-theme-main);
146
- }
147
- }
148
- }
149
- }
1
+ /* stylelint-disable property-no-vendor-prefix */
2
+
3
+ /** ************************
4
+ * Copyright Monkey Exchange. All Rights Reserved
5
+ * This style guide was developed by Monkey Exchange Team
6
+ * MIT Licence
7
+ ************************* */
8
+ .mecx-autocomplete-address-wrapper {
9
+ position: relative;
10
+ padding: 4px;
11
+ display: flex;
12
+ flex-direction: column;
13
+ justify-content: space-between;
14
+ min-height: 100px;
15
+
16
+ .mecx-autocomplete-address-loading,
17
+ .mecx-autocomplete-address-no-data {
18
+ padding: 12px;
19
+ display: flex;
20
+ justify-content: center;
21
+ flex-direction: column;
22
+ align-items: center;
23
+ gap: 4px;
24
+ color: var(--mecx-color-gray-600);
25
+ font-size: 12px;
26
+ letter-spacing: 0.54px;
27
+ text-align: center;
28
+
29
+ &-icon {
30
+ svg {
31
+ path {
32
+ stroke: var(--mecx-color-gray-600);
33
+ }
34
+ }
35
+ }
36
+ }
37
+
38
+ .mecx-autocomplete-address-loading {
39
+ position: absolute;
40
+ width: 100%;
41
+ height: 100%;
42
+ left: 0px;
43
+ top: 0;
44
+ z-index: 1;
45
+ background: var(--mecx-color-gray-100);
46
+ opacity: 0.5;
47
+ border-radius: 6px;
48
+ padding: 0;
49
+ color: var(--mecx-color-gray-900);
50
+ }
51
+
52
+ .mecx-autocomplete-address-footer {
53
+ display: flex;
54
+ justify-content: flex-end;
55
+ padding: 8px 4px 0px;
56
+ border-top: 1px solid var(--mecx-color-gray-200);
57
+ margin-top: 4px;
58
+ opacity: 0.5;
59
+ }
60
+ }
61
+
62
+ .mecx-autocomplete-address-options {
63
+ display: flex;
64
+ flex-direction: column;
65
+ gap: 4px;
66
+ padding: 2px;
67
+ max-height: 300px;
68
+ overflow: hidden auto;
69
+ }
70
+
71
+ .mecx-autocomplete-address-option {
72
+ display: flex;
73
+ position: relative;
74
+ cursor: pointer;
75
+ line-height: 16px;
76
+ font-size: 14px;
77
+ color: var(--mecx-color-gray-900);
78
+ transition: all 0.1s ease-in-out;
79
+ border-radius: 4px;
80
+ align-items: center;
81
+ gap: 8px;
82
+ padding: unset;
83
+
84
+ div {
85
+ display: flex;
86
+ align-items: center;
87
+ gap: 8px;
88
+ padding: 8px;
89
+ }
90
+ }
91
+
92
+ .mecx-autocomplete-wrapper {
93
+ padding: 4px;
94
+
95
+ .mecx-autocomplete-loading,
96
+ .mecx-autocomplete-no-data {
97
+ padding: 12px;
98
+ display: flex;
99
+ justify-content: center;
100
+ flex-direction: column;
101
+ align-items: center;
102
+ gap: 4px;
103
+ color: var(--mecx-color-gray-600);
104
+ font-size: 12px;
105
+ letter-spacing: 0.54px;
106
+ text-align: center;
107
+ }
108
+ }
109
+
110
+ .mecx-autocomplete-options {
111
+ display: flex;
112
+ flex-direction: column;
113
+ gap: 4px;
114
+ padding: 2px;
115
+ max-height: 300px;
116
+ overflow: hidden auto;
117
+
118
+ .mecx-autocomplete-option {
119
+ display: flex;
120
+ position: relative;
121
+ cursor: pointer;
122
+ line-height: 16px;
123
+ font-size: 14px;
124
+ color: var(--mecx-color-gray-900);
125
+ transition: all 0.1s ease-in-out;
126
+ border-radius: 4px;
127
+
128
+ monkey-option {
129
+ border-radius: 4px;
130
+ width: 100%;
131
+ }
132
+
133
+ &:hover {
134
+ border-radius: 4px;
135
+ color: var(--mecx-color-gray-900);
136
+ background-color: var(--mecx-color-gray-100);
137
+ }
138
+
139
+ &.mecx-autocomplete-selected {
140
+ color: var(--mecx-color-theme-contrast-main);
141
+ background-color: var(--mecx-color-theme-main);
142
+
143
+ monkey-option {
144
+ color: var(--mecx-color-theme-contrast-main);
145
+ background-color: var(--mecx-color-theme-main);
146
+ }
147
+ }
148
+ }
149
+ }
@@ -1,48 +1,48 @@
1
- /**************************
2
- * Copyright Monkey Exchange. All Rights Reserved
3
- * This style guide was developed by Monkey Exchange Team
4
- * MIT Licence
5
- **************************/
6
- @mixin badge-size-empty($suffix, $size) {
7
- &-#{$suffix}:empty {
8
- width: $size;
9
- height: $size;
10
- min-width: unset;
11
- border-radius: 50%;
12
- }
13
- }
14
-
15
- @mixin badge-size($suffix, $size, $fontSize) {
16
- &-#{$suffix} {
17
- height: $size;
18
- min-width: $size;
19
- font-size: $fontSize;
20
- }
21
- }
22
-
23
- .monkey-badge {
24
- top: 0;
25
- right: 0;
26
- padding: 2px;
27
- display: flex;
28
- color: var(--badge-color, var(--mecx-color-white));
29
- width: max-content;
30
- position: absolute;
31
- border-radius: 30px;
32
- background-color: var(--badge-background, var(--mecx-color-success-main));
33
- box-sizing: border-box;
34
- justify-content: center;
35
- transform: translate(40%, -40%);
36
-
37
- @include badge-size('sm', 12px, 8px);
38
- @include badge-size('md', 16px, 12px);
39
- @include badge-size('lg', 20px, 16px);
40
- @include badge-size-empty('sm', 10px);
41
- @include badge-size-empty('md', 12px);
42
- @include badge-size-empty('lg', 14px);
43
-
44
- &-left {
45
- left: 0;
46
- transform: translate(-30%, -30%);
47
- }
48
- }
1
+ /**************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ **************************/
6
+ @mixin badge-size-empty($suffix, $size) {
7
+ &-#{$suffix}:empty {
8
+ width: $size;
9
+ height: $size;
10
+ min-width: unset;
11
+ border-radius: 50%;
12
+ }
13
+ }
14
+
15
+ @mixin badge-size($suffix, $size, $fontSize) {
16
+ &-#{$suffix} {
17
+ height: $size;
18
+ min-width: $size;
19
+ font-size: $fontSize;
20
+ }
21
+ }
22
+
23
+ .monkey-badge {
24
+ top: 0;
25
+ right: 0;
26
+ padding: 2px;
27
+ display: flex;
28
+ color: var(--badge-color, var(--mecx-color-white));
29
+ width: max-content;
30
+ position: absolute;
31
+ border-radius: 30px;
32
+ background-color: var(--badge-background, var(--mecx-color-success-main));
33
+ box-sizing: border-box;
34
+ justify-content: center;
35
+ transform: translate(40%, -40%);
36
+
37
+ @include badge-size('sm', 12px, 8px);
38
+ @include badge-size('md', 16px, 12px);
39
+ @include badge-size('lg', 20px, 16px);
40
+ @include badge-size-empty('sm', 10px);
41
+ @include badge-size-empty('md', 12px);
42
+ @include badge-size-empty('lg', 14px);
43
+
44
+ &-left {
45
+ left: 0;
46
+ transform: translate(-30%, -30%);
47
+ }
48
+ }
@@ -1,8 +1,8 @@
1
- /**************************
2
- * Copyright Monkey Exchange. All Rights Reserved
3
- * This style guide was developed by Monkey Exchange Team
4
- * MIT Licence
5
- **************************/
6
- @use 'styles';
7
- @use 'badge';
8
- @use 'popover';
1
+ /**************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ **************************/
6
+ @use 'styles';
7
+ @use 'badge';
8
+ @use 'popover';
@@ -1,102 +1,102 @@
1
- .mecx-popover-container {
2
- display: flex;
3
- flex-direction: column;
4
- border-radius: 8px;
5
- border: 2px solid var(--mecx-color-gray-200);
6
- background: var(--mecx-color-white);
7
- box-shadow:
8
- 0px 8px 12px -4px var(--mecx-color-box-shadow),
9
- 0px 8px 8px 0px var(--mecx-color-box-shadow);
10
- margin-bottom: 4px;
11
- }
12
-
13
- .mecx-popover-header {
14
- display: flex;
15
- padding: 12px 16px 8px 24px;
16
- align-items: center;
17
- gap: 8px;
18
- align-self: stretch;
19
- color: var(--mecx-color-gray-900);
20
- font-size: 18px;
21
- font-style: normal;
22
- font-weight: 600;
23
- line-height: 24px;
24
- letter-spacing: 0.18px;
25
- border-bottom: 2px solid var(--mecx-color-gray-200);
26
- position: relative;
27
- min-height: 24px;
28
-
29
- .mecx-popover-close {
30
- display: flex;
31
- align-items: center;
32
- justify-content: center;
33
- cursor: pointer;
34
- position: absolute;
35
- right: 12px;
36
- top: 12px;
37
-
38
- &:hover {
39
- border-radius: 12px;
40
- background: var(--mecx-color-gray-100);
41
- }
42
- }
43
- }
44
-
45
- .mecx-popover-header > :first-child {
46
- margin-right: 0px;
47
- max-width: 480px;
48
- }
49
-
50
- .mecx-popover-content {
51
- flex: 1;
52
-
53
- &.add-radius {
54
- border-radius: 16px;
55
- }
56
-
57
- &:not(.add-radius) {
58
- monkey-date-range {
59
- .header {
60
- border-radius: unset !important;
61
- }
62
- }
63
- }
64
- }
65
-
66
- .mecx-popover-content > :first-child {
67
- border: none !important;
68
- }
69
-
70
- .mecx-popover-actions {
71
- display: flex;
72
- padding: 14px 24px;
73
- justify-content: flex-end;
74
- align-items: center;
75
- gap: 24px;
76
- align-self: stretch;
77
- border-top: 2px solid var(--mecx-color-gray-200);
78
- background: var(--mecx-color-white);
79
- border-bottom-left-radius: 16px;
80
- border-bottom-right-radius: 16px;
81
- }
82
-
83
- .mecx-popover-content .context-menu {
84
- display: flex;
85
- flex-direction: column;
86
- align-items: start;
87
- min-width: 150px;
88
- padding: 4px;
89
- gap: 4px;
90
-
91
- monkey-button {
92
- width: 100%;
93
-
94
- button {
95
- justify-content: start;
96
-
97
- span {
98
- text-decoration: none;
99
- }
100
- }
101
- }
102
- }
1
+ .mecx-popover-container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ border-radius: 8px;
5
+ border: 2px solid var(--mecx-color-gray-200);
6
+ background: var(--mecx-color-white);
7
+ box-shadow:
8
+ 0px 8px 12px -4px var(--mecx-color-box-shadow),
9
+ 0px 8px 8px 0px var(--mecx-color-box-shadow);
10
+ margin-bottom: 4px;
11
+ }
12
+
13
+ .mecx-popover-header {
14
+ display: flex;
15
+ padding: 12px 16px 8px 24px;
16
+ align-items: center;
17
+ gap: 8px;
18
+ align-self: stretch;
19
+ color: var(--mecx-color-gray-900);
20
+ font-size: 18px;
21
+ font-style: normal;
22
+ font-weight: 600;
23
+ line-height: 24px;
24
+ letter-spacing: 0.18px;
25
+ border-bottom: 2px solid var(--mecx-color-gray-200);
26
+ position: relative;
27
+ min-height: 24px;
28
+
29
+ .mecx-popover-close {
30
+ display: flex;
31
+ align-items: center;
32
+ justify-content: center;
33
+ cursor: pointer;
34
+ position: absolute;
35
+ right: 12px;
36
+ top: 12px;
37
+
38
+ &:hover {
39
+ border-radius: 12px;
40
+ background: var(--mecx-color-gray-100);
41
+ }
42
+ }
43
+ }
44
+
45
+ .mecx-popover-header > :first-child {
46
+ margin-right: 0px;
47
+ max-width: 480px;
48
+ }
49
+
50
+ .mecx-popover-content {
51
+ flex: 1;
52
+
53
+ &.add-radius {
54
+ border-radius: 16px;
55
+ }
56
+
57
+ &:not(.add-radius) {
58
+ monkey-date-range {
59
+ .header {
60
+ border-radius: unset !important;
61
+ }
62
+ }
63
+ }
64
+ }
65
+
66
+ .mecx-popover-content > :first-child {
67
+ border: none !important;
68
+ }
69
+
70
+ .mecx-popover-actions {
71
+ display: flex;
72
+ padding: 14px 24px;
73
+ justify-content: flex-end;
74
+ align-items: center;
75
+ gap: 24px;
76
+ align-self: stretch;
77
+ border-top: 2px solid var(--mecx-color-gray-200);
78
+ background: var(--mecx-color-white);
79
+ border-bottom-left-radius: 16px;
80
+ border-bottom-right-radius: 16px;
81
+ }
82
+
83
+ .mecx-popover-content .context-menu {
84
+ display: flex;
85
+ flex-direction: column;
86
+ align-items: start;
87
+ min-width: 150px;
88
+ padding: 4px;
89
+ gap: 4px;
90
+
91
+ monkey-button {
92
+ width: 100%;
93
+
94
+ button {
95
+ justify-content: start;
96
+
97
+ span {
98
+ text-decoration: none;
99
+ }
100
+ }
101
+ }
102
+ }