ecabs-components 1.0.34 → 1.0.36

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ecabs-components",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "^16.0.3",
6
6
  "@angular/common": "^16.0.4",
@@ -1,3 +1,5 @@
1
+ @import "../../../styles/scss/utilities/helpers";
2
+
1
3
  .mat-mdc-form-field {
2
4
  display: block !important;
3
5
 
@@ -24,7 +26,7 @@
24
26
  }
25
27
  }
26
28
 
27
- &-label {
29
+ &-label, label:not([class*=mat-slide-toggle-label], [class*=mat-radio-label]) {
28
30
  @extend .form-field__label;
29
31
  }
30
32
 
@@ -76,7 +78,7 @@
76
78
  }
77
79
  }
78
80
 
79
- &-label {
81
+ &-label, label:not([class*=mat-slide-toggle-label], [class*=mat-radio-label]) {
80
82
  @extend .form-field__label;
81
83
  }
82
84
 
@@ -144,13 +146,19 @@
144
146
  }
145
147
 
146
148
  .mdc-text-field {
147
- padding: 0rem !important;
149
+ padding: 0 !important;
148
150
  }
149
151
 
150
152
  .mat-mdc-form-field-focus-overlay {
151
153
  background-color: inherit !important;
152
154
  }
153
155
 
154
- label {
155
- @extend .form-field__label;
156
+ .form-field--required {
157
+ .form-field__label, label {
158
+ &:not([class*=mat-slide-toggle-label], [class*=mat-radio-label]) {
159
+ &:after {
160
+ @extend %required;
161
+ }
162
+ }
163
+ }
156
164
  }
@@ -10,6 +10,10 @@ ecabs-phone {
10
10
 
11
11
  .country-selector {
12
12
  @extend .country-selector;
13
+
14
+ .country-selector-code {
15
+ padding-right: .2rem;
16
+ }
13
17
  }
14
18
  }
15
19
 
@@ -31,14 +35,6 @@ ecabs-phone {
31
35
  background-color: unset !important;
32
36
  }
33
37
  }
34
-
35
- .mat-mdc-input-element:disabled {
36
- color: var(--color-black);
37
- }
38
-
39
- .country-selector:disabled {
40
- color: var(--color-black) !important;
41
- }
42
38
  }
43
39
 
44
40
  .ngx-mat-tel-input-mat-menu-panel {
@@ -149,19 +149,9 @@ form {
149
149
 
150
150
  // #Required
151
151
  @include m(required) {
152
- .form-field__label, label {
153
- &:not([class*=mat-slide-toggle-label], [class*=mat-radio-label]) {
154
- &:after {
155
- @extend %required;
156
- }
157
- }
158
- }
159
-
160
- label span {
161
- &.mat-radio-label-content, &.mat-slide-toggle-content {
162
- &:after {
163
- @extend %required;
164
- }
152
+ .form-field__label {
153
+ &:after {
154
+ @extend %required;
165
155
  }
166
156
  }
167
157
  }
@@ -1,28 +1,31 @@
1
1
  .ecabs-phone {
2
- @include fontSize($font-size-lg);
3
- font-size: 1rem;
4
-
5
2
  .ngx-mat-tel-input-container {
6
3
  position: relative;
7
4
  border-radius: $border-radius-base;
8
5
  border: 1px solid var(--color-gray-500);
9
6
 
10
7
  .ngx-mat-tel-input-input {
11
- padding: calc-rem(10) calc-rem(10) calc-rem(10) 105px !important;
8
+ padding: calc-rem(8) 6px calc-rem(8) 105px !important;
12
9
  }
10
+
13
11
  .country-selector {
14
12
  opacity: 1 !important;
15
- padding: 0rem;
13
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02IDcuNDEwMTZMMCAxLjQxMDE2TDEuNDEgMC4wMDAxNTY0MDNMNiA0LjU4MDE2TDEwLjU5IDAuMDAwMTU2NDAzTDEyIDEuNDEwMTZMNiA3LjQxMDE2WiIgZmlsbD0iIzZCNkQ3MyIvPgo8L3N2Zz4K");
14
+ background-size: calc-rem(12px 7.41px);
15
+ padding-right: .36rem;
16
16
  }
17
- .country-selector-code {
18
- font-size: 1rem;
17
+
18
+ .country-selector-flag.flag {
19
+ filter: unset;
19
20
  }
20
21
  }
22
+
21
23
  .error {
22
24
  .ngx-mat-tel-input-container {
23
25
  border: 1px solid var(--color-error);
24
26
  }
25
27
  }
28
+
26
29
  .disabled-field {
27
30
  background-color: var(--color-white-opacity-05) !important;
28
31
  }
@@ -1,13 +1,7 @@
1
- app-form-timepicker {
1
+ app-timepicker {
2
2
  .timeInputWrapper {
3
- position: relative;
4
- display: inline-block;
5
3
  z-index: 1;
6
- width: 100%;
7
- .timeInputFieldWrapper {
8
- position: relative;
9
- z-index: 1;
10
- }
4
+
11
5
  input {
12
6
  min-height: 42px;
13
7
  width: 100%;
@@ -20,6 +14,7 @@ app-form-timepicker {
20
14
  color: var(--color-black);
21
15
  outline: none;
22
16
  transition: all 300ms ease-in-out;
17
+
23
18
  &::placeholder {
24
19
  color: rgba(22, 42, 76, 0.5);
25
20
  }
@@ -43,18 +38,18 @@ app-form-timepicker {
43
38
  }
44
39
  }
45
40
  }
41
+
46
42
  .form-time-list {
47
43
  z-index: 98;
48
- display: inline-block;
49
- position: absolute;
44
+
50
45
  .list {
51
46
  background-color: white;
52
47
  position: absolute;
53
48
  width: 100%;
54
49
  box-sizing: border-box;
55
- box-shadow: 0px 4px 6px rgba(22, 42, 76, 0.08), 0px 2px 16px rgba(22, 42, 76, 0.06),
56
- 0px 8px 12px rgba(22, 42, 76, 0.04);
57
- border-radius: 0px 0px 4px 4px;
50
+ box-shadow: 0 4px 6px rgba(22, 42, 76, 0.08), 0 2px 16px rgba(22, 42, 76, 0.06),
51
+ 0 8px 12px rgba(22, 42, 76, 0.04);
52
+ border-radius: 0 0 4px 4px;
58
53
  height: 224px;
59
54
  overflow: hidden;
60
55
 
@@ -66,8 +61,8 @@ app-form-timepicker {
66
61
  .inner {
67
62
  ul {
68
63
  list-style: none;
69
- padding: 0px;
70
- margin: 0px;
64
+ padding: 0;
65
+ margin: 0;
71
66
  display: block;
72
67
 
73
68
  li {
@@ -78,6 +73,7 @@ app-form-timepicker {
78
73
  font-weight: normal;
79
74
  color: rgba(22, 42, 76, 0.9);
80
75
  cursor: pointer;
76
+
81
77
  &:last-child {
82
78
  border-color: transparent;
83
79
  }
@@ -85,6 +81,7 @@ app-form-timepicker {
85
81
  &.active {
86
82
  color: #376bfb;
87
83
  }
84
+
88
85
  &.hovered {
89
86
  background: rgba(22, 42, 76, 0.075);
90
87
  }