monkey-style-guide-v2 0.0.42 → 0.0.44

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,7 @@
1
+ /**************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ **************************/
6
+
7
+ @use 'styles';
@@ -0,0 +1,147 @@
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
+
9
+ .mecx-autocomplete-address-wrapper {
10
+ position: relative;
11
+ padding: 4px;
12
+ min-height: 70px;
13
+
14
+ .mecx-autocomplete-address-loading,
15
+ .mecx-autocomplete-address-no-data {
16
+ padding: 12px;
17
+ display: flex;
18
+ justify-content: center;
19
+ flex-direction: column;
20
+ align-items: center;
21
+ gap: 4px;
22
+ color: var(--mecx-color-gray-600);
23
+ font-size: 12px;
24
+ letter-spacing: 0.54px;
25
+ text-align: center;
26
+
27
+ &-icon {
28
+ svg {
29
+ path {
30
+ stroke: var(--mecx-color-gray-600);
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ .mecx-autocomplete-address-loading {
37
+ position: absolute;
38
+ width: 100%;
39
+ height: 100%;
40
+ left: 0px;
41
+ top: 0;
42
+ z-index: 1;
43
+ background: var(--mecx-color-gray-100);
44
+ opacity: 0.8;
45
+ border-radius: 6px;
46
+ padding: 0;
47
+ color: var(--mecx-color-gray-900);
48
+ }
49
+
50
+ .mecx-autocomplete-address-footer {
51
+ display: flex;
52
+ justify-content: flex-end;
53
+ padding: 8px 4px 0px;
54
+ border-top: 1px solid var(--mecx-color-gray-200);
55
+ margin-top: 4px;
56
+ opacity: 0.5;
57
+ }
58
+ }
59
+
60
+ .mecx-autocomplete-address-options {
61
+ display: flex;
62
+ flex-direction: column;
63
+ gap: 4px;
64
+ padding: 2px;
65
+ max-height: 300px;
66
+ overflow: hidden auto;
67
+ }
68
+
69
+ .mecx-autocomplete-address-option {
70
+ display: flex;
71
+ position: relative;
72
+ cursor: pointer;
73
+ line-height: 16px;
74
+ font-size: 14px;
75
+ color: var(--mecx-color-gray-900);
76
+ transition: all 0.1s ease-in-out;
77
+ border-radius: 4px;
78
+ align-items: center;
79
+ gap: 8px;
80
+ padding: unset;
81
+
82
+ div {
83
+ display: flex;
84
+ align-items: center;
85
+ gap: 8px;
86
+ padding: 8px;
87
+ }
88
+ }
89
+
90
+ .mecx-autocomplete-wrapper {
91
+ padding: 4px;
92
+
93
+ .mecx-autocomplete-loading,
94
+ .mecx-autocomplete-no-data {
95
+ padding: 12px;
96
+ display: flex;
97
+ justify-content: center;
98
+ flex-direction: column;
99
+ align-items: center;
100
+ gap: 4px;
101
+ color: var(--mecx-color-gray-600);
102
+ font-size: 12px;
103
+ letter-spacing: 0.54px;
104
+ text-align: center;
105
+ }
106
+ }
107
+
108
+ .mecx-autocomplete-options {
109
+ display: flex;
110
+ flex-direction: column;
111
+ gap: 4px;
112
+ padding: 2px;
113
+ max-height: 300px;
114
+ overflow: hidden auto;
115
+
116
+ .mecx-autocomplete-option {
117
+ display: flex;
118
+ position: relative;
119
+ cursor: pointer;
120
+ line-height: 16px;
121
+ font-size: 14px;
122
+ color: var(--mecx-color-gray-900);
123
+ transition: all 0.1s ease-in-out;
124
+ border-radius: 4px;
125
+
126
+ monkey-option {
127
+ border-radius: 4px;
128
+ width: 100%;
129
+ }
130
+
131
+ &:hover {
132
+ border-radius: 4px;
133
+ color: var(--mecx-color-gray-900);
134
+ background-color: var(--mecx-color-gray-100);
135
+ }
136
+
137
+ &.mecx-autocomplete-selected {
138
+ color: var(--mecx-color-theme-contrast-main);
139
+ background-color: var(--mecx-color-theme-main);
140
+
141
+ monkey-option {
142
+ color: var(--mecx-color-theme-contrast-main);
143
+ background-color: var(--mecx-color-theme-main);
144
+ }
145
+ }
146
+ }
147
+ }
@@ -43,7 +43,7 @@
43
43
  }
44
44
 
45
45
  .mecx-popover-header > :first-child {
46
- margin-right: 24px;
46
+ margin-right: 0px;
47
47
  max-width: 480px;
48
48
  }
49
49
 
@@ -40,3 +40,28 @@ input[type='date']::-webkit-calendar-picker-indicator {
40
40
  -webkit-appearance: none;
41
41
  opacity: 0;
42
42
  }
43
+
44
+ .mecx-inputautocomplete-wrapper {
45
+ padding: 4px;
46
+
47
+ .mecx-autocomplete-loading {
48
+ padding: 12px;
49
+ display: flex;
50
+ justify-content: center;
51
+ flex-direction: column;
52
+ align-items: center;
53
+ gap: 4px;
54
+ color: var(--mecx-color-gray-600);
55
+ font-size: 12px;
56
+ letter-spacing: 0.54px;
57
+ text-align: center;
58
+
59
+ &-icon {
60
+ svg {
61
+ path {
62
+ stroke: var(--mecx-color-gray-600);
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
@@ -8,6 +8,7 @@
8
8
  @use '@angular/cdk/overlay-prebuilt.css';
9
9
  @use './partials';
10
10
  @use './input';
11
+ @use './autocomplete';
11
12
  @use './directives';
12
13
  @use './table';
13
14
  @use './typography';