ecabs-components 2.0.0-alpha.3 → 2.0.0-alpha.6
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/README.md +136 -83
- package/fesm2022/ecabs-components.mjs +3076 -1091
- package/fesm2022/ecabs-components.mjs.map +1 -1
- package/lib/base/consts/buttons.consts.d.ts +2 -0
- package/lib/base/consts/input.consts.d.ts +1 -0
- package/lib/base/directives/date-mask.directive.d.ts +6 -7
- package/lib/base/directives/digits-only.directive.d.ts +13 -2
- package/lib/base/directives/time-mask.directive.d.ts +2 -3
- package/lib/base/directives/time-range.directive.d.ts +1 -2
- package/lib/base/models/element.models.d.ts +0 -5
- package/lib/base/models/phone.models.d.ts +8 -1
- package/lib/base/models/select.models.d.ts +6 -2
- package/lib/base/models/sidebar.models.d.ts +10 -5
- package/lib/base/models/waypoint.models.d.ts +30 -0
- package/lib/base/pipes/phone-number-country-code.pipe.d.ts +8 -0
- package/lib/base/pipes/separator-append.pipe.d.ts +7 -0
- package/lib/base/utils/object-utils.d.ts +1 -0
- package/lib/base/utils/phone-number.utils.d.ts +7 -0
- package/lib/base/utils/select.utils.d.ts +2 -0
- package/lib/base/utils/time-mask.util.d.ts +3 -0
- package/lib/ecabs-button-toggle/ecabs-button-toggle.component.d.ts +25 -0
- package/lib/ecabs-button-toggle/ecabs-button-toggle.module.d.ts +9 -0
- package/lib/ecabs-buttons-v2/ecabs-buttons-v2.component.d.ts +23 -0
- package/lib/ecabs-buttons-v2/ecabs-buttons-v2.module.d.ts +11 -0
- package/lib/ecabs-checkbox-v2/ecabs-checkbox-v2.component.d.ts +30 -0
- package/lib/ecabs-checkbox-v2/ecabs-checkbox-v2.module.d.ts +12 -0
- package/lib/ecabs-chip-autocomplete/ecabs-chip-autocomplete.component.d.ts +56 -0
- package/lib/ecabs-chip-group/ecabs-chip-group.component.d.ts +24 -0
- package/lib/ecabs-chip-group/ecabs-chip-group.module.d.ts +12 -0
- package/lib/ecabs-date-range-picker-v2/components/ecabs-date-range-picker-header/ecabs-date-range-picker-header-v2.component.d.ts +9 -0
- package/lib/ecabs-date-range-picker-v2/ecabs-date-range-picker-v2.component.d.ts +69 -0
- package/lib/ecabs-date-range-picker-v2/ecabs-date-range-picker-v2.module.d.ts +21 -0
- package/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.d.ts +4 -2
- package/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.d.ts +1 -0
- package/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.d.ts +2 -1
- package/lib/ecabs-input/ecabs-input.component.d.ts +12 -4
- package/lib/ecabs-input-range/ecabs-input-range.component.d.ts +44 -0
- package/lib/ecabs-input-range/ecabs-input-range.module.d.ts +13 -0
- package/lib/ecabs-phone/ecabs-phone.module.d.ts +5 -4
- package/lib/ecabs-place-autocomplete-v2/ecabs-place-autocomplete-v2.component.d.ts +64 -0
- package/lib/ecabs-place-autocomplete-v2/ecabs-place-autocomplete-v2.module.d.ts +13 -0
- package/lib/ecabs-segment/ecabs-segment.component.d.ts +8 -0
- package/lib/ecabs-select/ecabs-select.component.d.ts +7 -13
- package/lib/ecabs-select/ecabs-select.module.d.ts +5 -4
- package/lib/ecabs-select-icon/ecabs-select-icon.component.d.ts +8 -0
- package/lib/ecabs-select-icon/ecabs-select-icon.module.d.ts +9 -0
- package/lib/ecabs-select-v2/ecabs-select-v2.component.d.ts +25 -25
- package/lib/ecabs-select-v2/ecabs-select-v2.module.d.ts +2 -1
- package/lib/ecabs-table/ecabs-table.component.d.ts +4 -1
- package/lib/ecabs-time-range-input-v2/config.model.d.ts +5 -0
- package/lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.component.d.ts +52 -0
- package/lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.module.d.ts +11 -0
- package/lib/ecabs-time-range-input-v2/ecabs-time-range-input-v2.service.d.ts +12 -0
- package/lib/ecabs-timepicker/ecabs-timepicker.component.d.ts +0 -5
- package/package.json +20 -19
- package/public-api.d.ts +25 -0
- package/src/assets/styles/material/_theme.scss +17 -12
- package/src/assets/styles/material/overrides/_autocomplete.scss +27 -0
- package/src/assets/styles/material/overrides/_button.scss +95 -10
- package/src/assets/styles/material/overrides/_card.scss +43 -2
- package/src/assets/styles/material/overrides/_chip.scss +118 -1
- package/src/assets/styles/material/overrides/_datepicker.scss +33 -7
- package/src/assets/styles/material/overrides/_dialog.scss +4 -1
- package/src/assets/styles/material/overrides/_divider.scss +5 -2
- package/src/assets/styles/material/overrides/_expansion.scss +11 -6
- package/src/assets/styles/material/overrides/_form.scss +15 -2
- package/src/assets/styles/material/overrides/_icon.scss +6 -0
- package/src/assets/styles/material/overrides/_menu.scss +7 -1
- package/src/assets/styles/material/overrides/_paginator.scss +16 -12
- package/src/assets/styles/material/overrides/_phone.scss +18 -12
- package/src/assets/styles/material/overrides/_progress.scss +1 -1
- package/src/assets/styles/material/overrides/_select.scss +73 -47
- package/src/assets/styles/material/overrides/_sidebar.scss +3 -1
- package/src/assets/styles/material/overrides/_tab.scss +27 -1
- package/src/assets/styles/material/overrides/_table.scss +5 -1
- package/src/assets/styles/material/overrides/_toaster.scss +1 -0
- package/src/assets/styles/material/overrides/_toggle.scss +11 -2
- package/src/assets/styles/material/overrides/_tooltip.scss +1 -0
- package/src/assets/styles/material/overrides/index.scss +22 -22
- package/src/assets/styles/scss/base/_heading.scss +11 -8
- package/src/assets/styles/scss/base/_normalize.scss +19 -24
- package/src/assets/styles/scss/base/index.scss +2 -2
- package/src/assets/styles/scss/modules/_autocomplete.scss +26 -8
- package/src/assets/styles/scss/modules/_button.scss +105 -49
- package/src/assets/styles/scss/modules/_card.scss +39 -11
- package/src/assets/styles/scss/modules/_chip.scss +36 -20
- package/src/assets/styles/scss/modules/_datepicker.scss +7 -4
- package/src/assets/styles/scss/modules/_dialog.scss +10 -6
- package/src/assets/styles/scss/modules/_divider.scss +2 -1
- package/src/assets/styles/scss/modules/_form.scss +209 -56
- package/src/assets/styles/scss/modules/_icon.scss +6 -2
- package/src/assets/styles/scss/modules/_legend.scss +21 -15
- package/src/assets/styles/scss/modules/_list.scss +9 -6
- package/src/assets/styles/scss/modules/_map.scss +27 -22
- package/src/assets/styles/scss/modules/_phone.scss +11 -13
- package/src/assets/styles/scss/modules/_select.scss +9 -5
- package/src/assets/styles/scss/modules/_statuses.scss +13 -8
- package/src/assets/styles/scss/modules/_tab.scss +3 -1
- package/src/assets/styles/scss/modules/_table.scss +26 -20
- package/src/assets/styles/scss/modules/_timepicker.scss +11 -7
- package/src/assets/styles/scss/modules/_tooltip.scss +7 -3
- package/src/assets/styles/scss/modules/drag-drop.scss +13 -9
- package/src/assets/styles/scss/modules/index.scss +23 -23
- package/src/assets/styles/scss/utilities/_colors.scss +20 -16
- package/src/assets/styles/scss/utilities/_fonts.scss +6 -1
- package/src/assets/styles/scss/utilities/_functions.scss +4 -3
- package/src/assets/styles/scss/utilities/_mixins.scss +43 -6
- package/src/assets/styles/scss/utilities/_variables.scss +14 -0
- package/src/assets/styles/scss/utilities/index.scss +6 -6
- package/src/assets/styles/styles.scss +5 -26
- package/src/assets/styles/tailwind/index.scss +2 -2
- package/lib/base/consts/date-mask.consts.d.ts +0 -7
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
@use "../utilities/helpers";
|
|
2
|
+
@use "../utilities/fonts";
|
|
3
|
+
@use "../utilities/functions";
|
|
4
|
+
@use "../utilities/mixins";
|
|
5
|
+
@use "../utilities/variables";
|
|
6
|
+
|
|
1
7
|
$form-input-icon-size: 18px;
|
|
2
8
|
|
|
3
9
|
.form,
|
|
@@ -6,8 +12,8 @@ form {
|
|
|
6
12
|
margin-bottom: 1rem;
|
|
7
13
|
position: relative;
|
|
8
14
|
// #Label
|
|
9
|
-
@include e(label) {
|
|
10
|
-
@include fontSize(
|
|
15
|
+
@include mixins.e(label) {
|
|
16
|
+
@include mixins.fontSize(fonts.$font-size-xs);
|
|
11
17
|
|
|
12
18
|
display: inline-block;
|
|
13
19
|
margin-bottom: 0.25rem;
|
|
@@ -16,17 +22,17 @@ form {
|
|
|
16
22
|
|
|
17
23
|
|
|
18
24
|
.icon {
|
|
19
|
-
@include fontSize(
|
|
25
|
+
@include mixins.fontSize(fonts.$font-size-base);
|
|
20
26
|
|
|
21
27
|
display: inline;
|
|
22
28
|
vertical-align: middle;
|
|
23
|
-
margin-left: calc-rem(6px);
|
|
29
|
+
margin-left: functions.calc-rem(6px);
|
|
24
30
|
}
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
// #Label Note
|
|
28
|
-
@include e(label-note) {
|
|
29
|
-
@include fontSize(
|
|
34
|
+
@include mixins.e(label-note) {
|
|
35
|
+
@include mixins.fontSize(fonts.$font-size-md);
|
|
30
36
|
|
|
31
37
|
display: inline-block;
|
|
32
38
|
margin-bottom: 0.25rem;
|
|
@@ -35,59 +41,135 @@ form {
|
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
// #Input
|
|
38
|
-
@include e(input) {
|
|
39
|
-
@include fontSize(
|
|
44
|
+
@include mixins.e(input) {
|
|
45
|
+
@include mixins.fontSize(fonts.$font-size-base);
|
|
40
46
|
display: block;
|
|
41
47
|
width: 100%;
|
|
42
|
-
padding: calc-rem(
|
|
43
|
-
border-radius:
|
|
44
|
-
border: 1px solid var(--color-gray-
|
|
48
|
+
padding: functions.calc-rem(8px 16px);
|
|
49
|
+
border-radius: variables.$border-radius-medium;
|
|
50
|
+
border: 1px solid var(--color-gray-300);
|
|
45
51
|
color: var(--color-black);
|
|
46
|
-
line-height:
|
|
52
|
+
line-height: fonts.$base-line-height;
|
|
47
53
|
|
|
48
54
|
&:focus {
|
|
49
55
|
border-color: var(--color-brand-dark);
|
|
50
56
|
}
|
|
51
57
|
|
|
52
|
-
|
|
58
|
+
&:focus-visible {
|
|
59
|
+
outline: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@include mixins.m(wrapper) {
|
|
53
63
|
// wrapper
|
|
54
64
|
display: flex;
|
|
55
65
|
position: relative;
|
|
56
66
|
line-height: 1;
|
|
67
|
+
|
|
68
|
+
@include mixins.m(fluid) {
|
|
69
|
+
width: fit-content;
|
|
70
|
+
max-width: 100%;
|
|
71
|
+
margin-left: auto; // pin the right edge, grow leftward
|
|
72
|
+
align-items: stretch;
|
|
73
|
+
overflow: hidden;
|
|
74
|
+
border: 1px solid var(--color-gray-300);
|
|
75
|
+
border-radius: variables.$border-radius-medium;
|
|
76
|
+
background-color: var(--color-white, #fff);
|
|
77
|
+
|
|
78
|
+
&:focus-within {
|
|
79
|
+
border-color: var(--color-brand-dark);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.form-field__input {
|
|
83
|
+
width: auto;
|
|
84
|
+
min-width: 0;
|
|
85
|
+
flex: 0 0 auto;
|
|
86
|
+
box-sizing: border-box;
|
|
87
|
+
border: 0;
|
|
88
|
+
border-radius: 0;
|
|
89
|
+
padding-right: 0;
|
|
90
|
+
text-align: right;
|
|
91
|
+
background-color: transparent;
|
|
92
|
+
|
|
93
|
+
&:focus {
|
|
94
|
+
border-color: transparent;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.form-field__input--suffix {
|
|
99
|
+
position: static !important;
|
|
100
|
+
top: auto;
|
|
101
|
+
right: auto;
|
|
102
|
+
flex: 0 0 auto;
|
|
103
|
+
display: inline-flex;
|
|
104
|
+
align-items: center;
|
|
105
|
+
transform: none;
|
|
106
|
+
margin-left: functions.calc-rem(4px); // gap between the value and the symbol
|
|
107
|
+
padding-right: functions.calc-rem(16px);
|
|
108
|
+
white-space: nowrap;
|
|
109
|
+
pointer-events: none;
|
|
110
|
+
|
|
111
|
+
&,
|
|
112
|
+
i,
|
|
113
|
+
.mat-icon {
|
|
114
|
+
@include mixins.fontSize(fonts.$font-size-base);
|
|
115
|
+
|
|
116
|
+
width: auto;
|
|
117
|
+
height: auto;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
@include mixins.m(sizer) {
|
|
124
|
+
@include mixins.fontSize(fonts.$font-size-base);
|
|
125
|
+
|
|
126
|
+
position: absolute;
|
|
127
|
+
top: 0;
|
|
128
|
+
left: 0;
|
|
129
|
+
height: 0;
|
|
130
|
+
padding: 0 0 0 functions.calc-rem(16px);
|
|
131
|
+
border: 0;
|
|
132
|
+
box-sizing: border-box;
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
visibility: hidden;
|
|
135
|
+
pointer-events: none;
|
|
136
|
+
white-space: pre;
|
|
137
|
+
line-height: fonts.$base-line-height;
|
|
57
138
|
}
|
|
58
139
|
|
|
59
|
-
@include m(suffix) {
|
|
140
|
+
@include mixins.m(suffix) {
|
|
60
141
|
// suffix
|
|
61
142
|
position: absolute !important;
|
|
62
143
|
top: 50%;
|
|
63
|
-
right: calc-rem(
|
|
64
|
-
color: var(--color-gray-
|
|
144
|
+
right: functions.calc-rem(16px);
|
|
145
|
+
color: var(--color-gray-300);
|
|
65
146
|
transform: translateY(-50%);
|
|
66
147
|
|
|
67
148
|
&,
|
|
68
149
|
i,
|
|
69
150
|
.mat-icon {
|
|
70
|
-
@include fontSize($form-input-icon-size);
|
|
71
|
-
width: calc-rem($form-input-icon-size);
|
|
72
|
-
height: calc-rem($form-input-icon-size);
|
|
151
|
+
@include mixins.fontSize($form-input-icon-size);
|
|
152
|
+
width: functions.calc-rem($form-input-icon-size);
|
|
153
|
+
height: functions.calc-rem($form-input-icon-size);
|
|
73
154
|
}
|
|
74
155
|
}
|
|
75
156
|
|
|
76
|
-
@include m(prefix) {
|
|
157
|
+
@include mixins.m(prefix) {
|
|
77
158
|
// prefix
|
|
78
159
|
@extend .form-field__input--suffix;
|
|
79
160
|
|
|
80
161
|
right: unset;
|
|
81
|
-
left: calc-rem(
|
|
162
|
+
left: functions.calc-rem(16px);
|
|
82
163
|
}
|
|
83
164
|
|
|
84
|
-
@include m(disabled) {
|
|
165
|
+
@include mixins.m(disabled) {
|
|
85
166
|
// disabled
|
|
86
167
|
background-color: var(--color-gray-100);
|
|
87
|
-
|
|
168
|
+
opacity: .5;
|
|
169
|
+
pointer-events: none;
|
|
88
170
|
}
|
|
89
171
|
|
|
90
|
-
@include m(invalid) {
|
|
172
|
+
@include mixins.m(invalid) {
|
|
91
173
|
// invalid
|
|
92
174
|
border-color: var(--color-error);
|
|
93
175
|
color: var(--color-error);
|
|
@@ -95,71 +177,146 @@ form {
|
|
|
95
177
|
}
|
|
96
178
|
|
|
97
179
|
// #Textarea
|
|
98
|
-
@include e(textarea) {
|
|
99
|
-
@include fontSize(
|
|
180
|
+
@include mixins.e(textarea) {
|
|
181
|
+
@include mixins.fontSize(fonts.$font-size-base);
|
|
100
182
|
display: block;
|
|
101
183
|
width: 100%;
|
|
102
|
-
padding: calc-rem(
|
|
103
|
-
border-radius:
|
|
104
|
-
border: 1px solid var(--color-gray-
|
|
184
|
+
padding: functions.calc-rem(16px);
|
|
185
|
+
border-radius: variables.$border-radius-medium;
|
|
186
|
+
border: 1px solid var(--color-gray-300);
|
|
105
187
|
color: var(--color-black);
|
|
106
|
-
line-height:
|
|
188
|
+
line-height: fonts.$base-line-height;
|
|
107
189
|
|
|
108
190
|
&:focus {
|
|
109
191
|
border-color: var(--color-brand-dark);
|
|
110
192
|
}
|
|
111
193
|
|
|
112
|
-
@include m(wrapper) {
|
|
194
|
+
@include mixins.m(wrapper) {
|
|
113
195
|
// wrapper
|
|
114
196
|
display: flex;
|
|
115
197
|
position: relative;
|
|
116
198
|
line-height: 1;
|
|
117
199
|
}
|
|
118
200
|
|
|
119
|
-
@include m(suffix) {
|
|
201
|
+
@include mixins.m(suffix) {
|
|
120
202
|
// suffix
|
|
121
203
|
position: absolute !important;
|
|
122
204
|
top: 50%;
|
|
123
|
-
right: calc-rem(
|
|
124
|
-
color: var(--color-gray-
|
|
205
|
+
right: functions.calc-rem(16px);
|
|
206
|
+
color: var(--color-gray-100);
|
|
125
207
|
transform: translateY(-50%);
|
|
126
208
|
|
|
127
209
|
&,
|
|
128
210
|
i,
|
|
129
211
|
.mat-icon {
|
|
130
|
-
@include fontSize($form-input-icon-size);
|
|
131
|
-
width: calc-rem($form-input-icon-size);
|
|
132
|
-
height: calc-rem($form-input-icon-size);
|
|
212
|
+
@include mixins.fontSize($form-input-icon-size);
|
|
213
|
+
width: functions.calc-rem($form-input-icon-size);
|
|
214
|
+
height: functions.calc-rem($form-input-icon-size);
|
|
133
215
|
}
|
|
134
216
|
}
|
|
135
217
|
|
|
136
|
-
@include m(prefix) {
|
|
218
|
+
@include mixins.m(prefix) {
|
|
137
219
|
// prefix
|
|
138
220
|
@extend .form-field__input--suffix;
|
|
139
221
|
|
|
140
222
|
right: unset;
|
|
141
|
-
left: calc-rem(
|
|
223
|
+
left: functions.calc-rem(16px);
|
|
142
224
|
}
|
|
143
225
|
|
|
144
|
-
@include m(disabled) {
|
|
226
|
+
@include mixins.m(disabled) {
|
|
145
227
|
// disabled
|
|
146
228
|
background-color: var(--color-gray-100);
|
|
147
|
-
|
|
229
|
+
opacity: .5;
|
|
230
|
+
pointer-events: none;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// #Range
|
|
235
|
+
@include mixins.e(range) {
|
|
236
|
+
@include mixins.fontSize(fonts.$font-size-base);
|
|
237
|
+
display: block;
|
|
238
|
+
width: 100%;
|
|
239
|
+
padding: functions.calc-rem(8px 16px);
|
|
240
|
+
color: var(--color-black);
|
|
241
|
+
line-height: fonts.$base-line-height;
|
|
242
|
+
border: none;
|
|
243
|
+
|
|
244
|
+
&:focus-visible {
|
|
245
|
+
outline: none;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
@include mixins.m(wrapper) {
|
|
249
|
+
// wrapper
|
|
250
|
+
display: grid;
|
|
251
|
+
grid-template-columns: 1fr auto 1fr;
|
|
252
|
+
border-radius: functions.calc-rem(variables.$border-radius-large);
|
|
253
|
+
border: 1px solid var(--color-gray-300);
|
|
254
|
+
align-items: center;
|
|
255
|
+
line-height: 1;
|
|
256
|
+
background-color: var(--color-white);
|
|
257
|
+
|
|
258
|
+
&:focus-within {
|
|
259
|
+
border-color: var(--color-brand-dark);
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
@include mixins.m(suffix) {
|
|
264
|
+
// suffix
|
|
265
|
+
position: absolute !important;
|
|
266
|
+
top: 50%;
|
|
267
|
+
right: functions.calc-rem(16px);
|
|
268
|
+
color: var(--color-gray-100);
|
|
269
|
+
transform: translateY(-50%);
|
|
270
|
+
|
|
271
|
+
&,
|
|
272
|
+
i,
|
|
273
|
+
.mat-icon {
|
|
274
|
+
@include mixins.fontSize($form-input-icon-size);
|
|
275
|
+
width: functions.calc-rem($form-input-icon-size);
|
|
276
|
+
height: functions.calc-rem($form-input-icon-size);
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
@include mixins.m(prefix) {
|
|
281
|
+
// prefix
|
|
282
|
+
@extend .form-field__range--suffix;
|
|
283
|
+
|
|
284
|
+
right: unset;
|
|
285
|
+
left: functions.calc-rem(16px);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
@include mixins.m(disabled) {
|
|
289
|
+
// disabled
|
|
290
|
+
background-color: var(--color-gray-100);
|
|
291
|
+
opacity: .5;
|
|
292
|
+
pointer-events: none;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
@include mixins.m(invalid) {
|
|
296
|
+
// invalid
|
|
297
|
+
border-color: var(--color-error) !important;
|
|
298
|
+
color: var(--color-error) !important;
|
|
148
299
|
}
|
|
149
300
|
}
|
|
150
301
|
|
|
151
302
|
// #Invalid
|
|
152
|
-
@include m(invalid) {
|
|
303
|
+
@include mixins.m(invalid) {
|
|
153
304
|
&,
|
|
154
305
|
.form-field__input,
|
|
155
|
-
.form-field__textarea
|
|
306
|
+
.form-field__textarea,
|
|
307
|
+
.form-field__range {
|
|
156
308
|
color: var(--color-error);
|
|
157
309
|
border-color: var(--color-error);
|
|
158
310
|
}
|
|
311
|
+
|
|
312
|
+
&,
|
|
313
|
+
.form-field__range--wrapper {
|
|
314
|
+
border-color: var(--color-error);
|
|
315
|
+
}
|
|
159
316
|
}
|
|
160
317
|
|
|
161
318
|
// #Required
|
|
162
|
-
@include m(required) {
|
|
319
|
+
@include mixins.m(required) {
|
|
163
320
|
.form-field__label {
|
|
164
321
|
&:after {
|
|
165
322
|
@extend %required;
|
|
@@ -168,11 +325,13 @@ form {
|
|
|
168
325
|
}
|
|
169
326
|
|
|
170
327
|
// #Validation
|
|
171
|
-
@include e(validation) {
|
|
328
|
+
@include mixins.e(validation) {
|
|
329
|
+
@include mixins.fontSize(fonts.$font-size-xs);
|
|
330
|
+
|
|
172
331
|
padding-top: 0.5rem;
|
|
173
|
-
@include fontSize($font-size-xs);
|
|
174
332
|
color: var(--color-error);
|
|
175
|
-
|
|
333
|
+
|
|
334
|
+
@include mixins.m(item) {
|
|
176
335
|
padding-bottom: 0.6rem;
|
|
177
336
|
|
|
178
337
|
&:last-of-type {
|
|
@@ -182,20 +341,14 @@ form {
|
|
|
182
341
|
}
|
|
183
342
|
|
|
184
343
|
// #Subscript
|
|
185
|
-
@include e(subscript) {
|
|
186
|
-
@include m(wrapper) {
|
|
344
|
+
@include mixins.e(subscript) {
|
|
345
|
+
@include mixins.m(wrapper) {
|
|
187
346
|
@extend %pseudos;
|
|
188
347
|
|
|
189
348
|
margin-top: 1.2rem;
|
|
190
349
|
}
|
|
191
350
|
}
|
|
192
351
|
|
|
193
|
-
&.disabled input,
|
|
194
|
-
&.disabled textarea {
|
|
195
|
-
background-color: var(--color-white-opacity-05);
|
|
196
|
-
border-color: var(--color-gray-300);
|
|
197
|
-
}
|
|
198
|
-
|
|
199
352
|
.spinner {
|
|
200
353
|
position: absolute;
|
|
201
354
|
right: 0.25rem;
|
|
@@ -205,7 +358,7 @@ form {
|
|
|
205
358
|
.hint {
|
|
206
359
|
font-size: 10px;
|
|
207
360
|
text-align: right;
|
|
208
|
-
margin-right: calc-rem(17px);
|
|
361
|
+
margin-right: functions.calc-rem(17px);
|
|
209
362
|
transform: translateY(-1rem);
|
|
210
363
|
margin-bottom: -1rem;
|
|
211
364
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use "../utilities/helpers";
|
|
2
|
+
@use "../utilities/mixins";
|
|
3
|
+
@use "../utilities/variables";
|
|
4
|
+
|
|
1
5
|
.icon {
|
|
2
6
|
color: var(--color-gray-500);
|
|
3
7
|
|
|
@@ -5,14 +9,14 @@
|
|
|
5
9
|
color: var(--color-brand-light);
|
|
6
10
|
}
|
|
7
11
|
|
|
8
|
-
@include e(bordered) {
|
|
12
|
+
@include mixins.e(bordered) {
|
|
9
13
|
@extend .icon;
|
|
10
14
|
|
|
11
15
|
&:after {
|
|
12
16
|
@extend %pseudos;
|
|
13
17
|
|
|
14
18
|
border: 1px solid var(--color-gray-400);
|
|
15
|
-
border-radius:
|
|
19
|
+
border-radius: variables.$border-radius-base;
|
|
16
20
|
width: calc(100% + 0.8rem);
|
|
17
21
|
height: calc(100% + 0.8rem);
|
|
18
22
|
top: -0.4rem;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
+
@use "../utilities/helpers";
|
|
2
|
+
@use "../utilities/fonts";
|
|
3
|
+
@use "../utilities/functions";
|
|
4
|
+
@use "../utilities/mixins";
|
|
5
|
+
@use "../utilities/variables";
|
|
6
|
+
|
|
1
7
|
.legend {
|
|
2
|
-
@include fontSize(
|
|
8
|
+
@include mixins.fontSize(fonts.$font-size-md);
|
|
3
9
|
position: relative;
|
|
4
10
|
display: inline-block;
|
|
5
|
-
margin-left: calc-rem(12);
|
|
6
|
-
padding-left: calc-rem(24);
|
|
11
|
+
margin-left: functions.calc-rem(12);
|
|
12
|
+
padding-left: functions.calc-rem(24);
|
|
7
13
|
vertical-align: top;
|
|
8
|
-
|
|
14
|
+
|
|
9
15
|
&:first-of-type {
|
|
10
16
|
margin-left: 0;
|
|
11
17
|
}
|
|
@@ -13,50 +19,50 @@
|
|
|
13
19
|
&:before {
|
|
14
20
|
@extend %pseudos;
|
|
15
21
|
|
|
16
|
-
border-radius:
|
|
17
|
-
width: calc-rem(16);
|
|
18
|
-
height: calc-rem(16);
|
|
19
|
-
top: calc-rem(3);
|
|
22
|
+
border-radius: variables.$border-radius-base;
|
|
23
|
+
width: functions.calc-rem(16);
|
|
24
|
+
height: functions.calc-rem(16);
|
|
25
|
+
top: functions.calc-rem(3);
|
|
20
26
|
left: 0;
|
|
21
27
|
}
|
|
22
28
|
|
|
23
|
-
@include m(asap) {
|
|
29
|
+
@include mixins.m(asap) {
|
|
24
30
|
&:before {
|
|
25
31
|
background-color: #eded0d;
|
|
26
32
|
}
|
|
27
33
|
}
|
|
28
34
|
|
|
29
|
-
@include m(mobile) {
|
|
35
|
+
@include mixins.m(mobile) {
|
|
30
36
|
&:before {
|
|
31
37
|
background-color: #feb6e2;
|
|
32
38
|
}
|
|
33
39
|
}
|
|
34
40
|
|
|
35
|
-
@include m(delivery) {
|
|
41
|
+
@include mixins.m(delivery) {
|
|
36
42
|
&:before {
|
|
37
43
|
background-color: #dd9750;
|
|
38
44
|
}
|
|
39
45
|
}
|
|
40
46
|
|
|
41
|
-
@include m(walkin) {
|
|
47
|
+
@include mixins.m(walkin) {
|
|
42
48
|
&:before {
|
|
43
49
|
background-color: #87b5ca;
|
|
44
50
|
}
|
|
45
51
|
}
|
|
46
52
|
|
|
47
|
-
@include m(concierge) {
|
|
53
|
+
@include mixins.m(concierge) {
|
|
48
54
|
&:before {
|
|
49
55
|
background-color: #2be879;
|
|
50
56
|
}
|
|
51
57
|
}
|
|
52
58
|
|
|
53
|
-
@include m(in-fifteen) {
|
|
59
|
+
@include mixins.m(in-fifteen) {
|
|
54
60
|
&:before {
|
|
55
61
|
background-color: #e64c4a;
|
|
56
62
|
}
|
|
57
63
|
}
|
|
58
64
|
|
|
59
|
-
@include m(standard) {
|
|
65
|
+
@include mixins.m(standard) {
|
|
60
66
|
&:before {
|
|
61
67
|
background-color: #d7d8d3;
|
|
62
68
|
}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
|
+
@use "../utilities/functions";
|
|
2
|
+
@use "../utilities/mixins";
|
|
3
|
+
|
|
1
4
|
.list {
|
|
2
5
|
list-style-type: none;
|
|
3
6
|
|
|
4
|
-
@include m(bordered) {
|
|
7
|
+
@include mixins.m(bordered) {
|
|
5
8
|
.list__item {
|
|
6
|
-
border-bottom: 1px solid var(--color-gray-
|
|
9
|
+
border-bottom: 1px solid var(--color-gray-50);
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
12
|
|
|
10
|
-
@include e(item) {
|
|
11
|
-
|
|
13
|
+
@include mixins.e(item) {
|
|
14
|
+
padding: functions.calc-rem(20 0);
|
|
15
|
+
|
|
16
|
+
@include mixins.m(count) {
|
|
12
17
|
margin-right: 2.4rem;
|
|
13
18
|
}
|
|
14
|
-
|
|
15
|
-
padding: calc-rem(20 0);
|
|
16
19
|
}
|
|
17
20
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "../../scss/utilities/index";
|
|
2
|
+
@use "../utilities/fonts";
|
|
3
|
+
@use "../utilities/functions";
|
|
4
|
+
@use "../utilities/mixins";
|
|
5
|
+
@use "../utilities/variables";
|
|
6
|
+
|
|
2
7
|
|
|
3
8
|
div {
|
|
4
9
|
.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon {
|
|
@@ -58,9 +63,9 @@ div {
|
|
|
58
63
|
|
|
59
64
|
&.leaflet-control-zoom-in,
|
|
60
65
|
&.leaflet-control-zoom-out {
|
|
61
|
-
@include fontSize(28px);
|
|
66
|
+
@include mixins.fontSize(28px);
|
|
62
67
|
|
|
63
|
-
font-weight:
|
|
68
|
+
font-weight: fonts.$font-weight-thin;
|
|
64
69
|
}
|
|
65
70
|
}
|
|
66
71
|
|
|
@@ -115,13 +120,13 @@ div {
|
|
|
115
120
|
|
|
116
121
|
.pac-container {
|
|
117
122
|
&.pac-logo {
|
|
118
|
-
box-shadow:
|
|
119
|
-
border-bottom-right-radius:
|
|
120
|
-
border-bottom-left-radius:
|
|
123
|
+
box-shadow: variables.$box-shadow-default;
|
|
124
|
+
border-bottom-right-radius: variables.$border-radius-base;
|
|
125
|
+
border-bottom-left-radius: variables.$border-radius-base;
|
|
121
126
|
|
|
122
127
|
.pac-item {
|
|
123
|
-
border-color: var(--color-gray-
|
|
124
|
-
padding: calc-rem(6px) calc-rem(12px);
|
|
128
|
+
border-color: var(--color-gray-50);
|
|
129
|
+
padding: functions.calc-rem(6px) functions.calc-rem(12px);
|
|
125
130
|
|
|
126
131
|
.pac-icon.pac-icon-marker {
|
|
127
132
|
display: none;
|
|
@@ -150,21 +155,21 @@ div {
|
|
|
150
155
|
}
|
|
151
156
|
|
|
152
157
|
.rounded-rectangle {
|
|
153
|
-
@include fontSize(12px);
|
|
158
|
+
@include mixins.fontSize(12px);
|
|
154
159
|
|
|
155
160
|
position: relative;
|
|
156
|
-
box-shadow:
|
|
161
|
+
box-shadow: variables.$box-shadow-default;
|
|
157
162
|
border-radius: 20px;
|
|
158
163
|
display: flex;
|
|
159
164
|
width: 100%;
|
|
160
|
-
min-width: calc-rem(96px);
|
|
161
|
-
height: calc-rem(36px);
|
|
162
|
-
padding-left: calc-rem(6px);
|
|
165
|
+
min-width: functions.calc-rem(96px);
|
|
166
|
+
height: functions.calc-rem(36px);
|
|
167
|
+
padding-left: functions.calc-rem(6px);
|
|
163
168
|
align-items: center;
|
|
164
169
|
justify-content: center;
|
|
165
170
|
background-color: #fff;
|
|
166
171
|
color: var(--color-brand-dark);
|
|
167
|
-
font-weight:
|
|
172
|
+
font-weight: fonts.$font-weight-semibold;
|
|
168
173
|
line-height: 1.5;
|
|
169
174
|
text-align: center;
|
|
170
175
|
z-index: 99;
|
|
@@ -173,10 +178,10 @@ div {
|
|
|
173
178
|
.straight-line {
|
|
174
179
|
position: absolute;
|
|
175
180
|
border-radius: 2px;
|
|
176
|
-
top: calc-rem(30px);
|
|
181
|
+
top: functions.calc-rem(30px);
|
|
177
182
|
left: 50%;
|
|
178
|
-
width: calc-rem(3px);
|
|
179
|
-
height: calc-rem(48px);
|
|
183
|
+
width: functions.calc-rem(3px);
|
|
184
|
+
height: functions.calc-rem(48px);
|
|
180
185
|
background-color: var(--color-brand-dark);
|
|
181
186
|
transform: translateX(-50%);
|
|
182
187
|
z-index: 1;
|
|
@@ -184,18 +189,18 @@ div {
|
|
|
184
189
|
|
|
185
190
|
.map-circle-point {
|
|
186
191
|
position: absolute;
|
|
187
|
-
width: calc-rem(16px);
|
|
188
|
-
height: calc-rem(16px);
|
|
192
|
+
width: functions.calc-rem(16px);
|
|
193
|
+
height: functions.calc-rem(16px);
|
|
189
194
|
background-color: var(--color-brand-light);
|
|
190
195
|
border-radius: 50%;
|
|
191
|
-
top: calc-rem(70px);
|
|
196
|
+
top: functions.calc-rem(70px);
|
|
192
197
|
left: 50%;
|
|
193
198
|
transform: translateX(-50%);
|
|
194
199
|
}
|
|
195
200
|
|
|
196
201
|
.inner-circle {
|
|
197
|
-
width: calc-rem(8px);
|
|
198
|
-
height: calc-rem(8px);
|
|
202
|
+
width: functions.calc-rem(8px);
|
|
203
|
+
height: functions.calc-rem(8px);
|
|
199
204
|
background-color: var(--color-white);
|
|
200
205
|
border-radius: 50%;
|
|
201
206
|
position: absolute;
|
|
@@ -1,26 +1,24 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "../utilities/functions";
|
|
2
|
+
@use "../utilities/variables";
|
|
2
3
|
|
|
3
4
|
.ecabs-phone {
|
|
4
5
|
.ecabs-tel-input-container {
|
|
5
6
|
position: relative;
|
|
6
|
-
border-radius:
|
|
7
|
-
border: 1px solid var(--color-gray-
|
|
7
|
+
border-radius: variables.$border-radius-base;
|
|
8
|
+
border: 1px solid var(--color-gray-300);
|
|
8
9
|
|
|
9
10
|
.ecabs-tel-input-input {
|
|
10
|
-
padding: calc-rem(
|
|
11
|
+
padding: functions.calc-rem(8px 8px 8px 105px) !important;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
padding: calc-rem(3px);
|
|
19
|
-
transform: rotate(45deg);
|
|
20
|
-
-webkit-transform: rotate(45deg);
|
|
14
|
+
.country-selector {
|
|
15
|
+
opacity: 1 !important;
|
|
16
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02IDcuNDEwMTZMMCAxLjQxMDE2TDEuNDEgMC4wMDAxNTY0MDNMNiA0LjU4MDE2TDEwLjU5IDAuMDAwMTU2NDAzTDEyIDEuNDEwMTZMNiA3LjQxMDE2WiIgZmlsbD0iIzZCNkQ3MyIvPgo8L3N2Zz4K");
|
|
17
|
+
background-size: functions.calc-rem(12px 7.41px);
|
|
18
|
+
padding-right: .36rem;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
.
|
|
21
|
+
.country-selector-flag.flag {
|
|
24
22
|
filter: unset;
|
|
25
23
|
}
|
|
26
24
|
}
|