ecabs-components 1.0.5 → 1.0.7

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 (126) hide show
  1. package/esm2022/lib/base/directives/date-mask.directive.mjs +3 -3
  2. package/esm2022/lib/base/directives/date-mask.directive.module.mjs +4 -4
  3. package/esm2022/lib/base/directives/digits-only.directive.mjs +3 -3
  4. package/esm2022/lib/base/directives/digits-only.directive.module.mjs +4 -4
  5. package/esm2022/lib/base/directives/number-border.directive.mjs +3 -3
  6. package/esm2022/lib/base/directives/number-border.directive.module.mjs +4 -4
  7. package/esm2022/lib/base/element-base.mjs +3 -3
  8. package/esm2022/lib/base/element-wrapper/element-wrapper.component.mjs +3 -3
  9. package/esm2022/lib/base/element-wrapper/element-wrapper.module.mjs +4 -4
  10. package/esm2022/lib/base/hint/hint.component.mjs +3 -3
  11. package/esm2022/lib/base/hint/hint.module.mjs +4 -4
  12. package/esm2022/lib/base/validation/validation.component.mjs +3 -3
  13. package/esm2022/lib/base/validation/validation.module.mjs +4 -4
  14. package/esm2022/lib/ecabs-breadcrumb/ecabs-breadcrumb.component.mjs +3 -3
  15. package/esm2022/lib/ecabs-breadcrumb/ecabs-breadcrumb.module.mjs +4 -4
  16. package/esm2022/lib/ecabs-buttons/ecabs-buttons.component.mjs +3 -3
  17. package/esm2022/lib/ecabs-buttons/ecabs-buttons.module.mjs +4 -4
  18. package/esm2022/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.component.mjs +3 -3
  19. package/esm2022/lib/ecabs-checkbox-toggle/ecabs-checkbox-toggle.module.mjs +4 -4
  20. package/esm2022/lib/ecabs-date-picker/components/ecabs-date-picker-header/ecabs-date-picker-header.component.mjs +3 -3
  21. package/esm2022/lib/ecabs-date-picker/ecabs-date-picker.component.mjs +3 -3
  22. package/esm2022/lib/ecabs-date-picker/ecabs-date-picker.module.mjs +4 -4
  23. package/esm2022/lib/ecabs-date-time-picker/components/ecabs-date-time-picker-header/ecabs-date-time-picker-header.component.mjs +3 -3
  24. package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.component.mjs +3 -3
  25. package/esm2022/lib/ecabs-date-time-picker/ecabs-date-time-picker.module.mjs +4 -4
  26. package/esm2022/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.component.mjs +3 -3
  27. package/esm2022/lib/ecabs-dialog-confirm/ecabs-dialog-confirm.module.mjs +4 -4
  28. package/esm2022/lib/ecabs-dialog-message/ecabs-dialog-message.component.mjs +5 -5
  29. package/esm2022/lib/ecabs-dialog-message/ecabs-dialog-message.module.mjs +4 -4
  30. package/esm2022/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.component.mjs +3 -3
  31. package/esm2022/lib/ecabs-empty-placeholder/ecabs-empty-placeholder.module.mjs +4 -4
  32. package/esm2022/lib/ecabs-expansion-panel/ecabs-expansion-panel.component.mjs +3 -3
  33. package/esm2022/lib/ecabs-expansion-panel/ecabs-expansion-panel.module.mjs +4 -4
  34. package/esm2022/lib/ecabs-increment/ecabs-increment.component.mjs +3 -3
  35. package/esm2022/lib/ecabs-increment/ecabs-increment.module.mjs +4 -4
  36. package/esm2022/lib/ecabs-input/ecabs-input.component.mjs +3 -3
  37. package/esm2022/lib/ecabs-input/ecabs-input.module.mjs +4 -4
  38. package/esm2022/lib/ecabs-language-selector/ecabs-language-selector.component.mjs +3 -3
  39. package/esm2022/lib/ecabs-language-selector/ecabs-language-selector.module.mjs +4 -4
  40. package/esm2022/lib/ecabs-loading/ecabs-loading.component.mjs +3 -3
  41. package/esm2022/lib/ecabs-loading/ecabs-loading.module.mjs +4 -4
  42. package/esm2022/lib/ecabs-loading/spinner/spinner.component.mjs +3 -3
  43. package/esm2022/lib/ecabs-note/ecabs-note.component.mjs +3 -3
  44. package/esm2022/lib/ecabs-note/ecabs-note.module.mjs +4 -4
  45. package/esm2022/lib/ecabs-phone/ecabs-phone.component.mjs +3 -3
  46. package/esm2022/lib/ecabs-phone/ecabs-phone.module.mjs +4 -4
  47. package/esm2022/lib/ecabs-picker-header/ecabs-picker-header.component.mjs +3 -3
  48. package/esm2022/lib/ecabs-picker-header/ecabs-picker-header.module.mjs +4 -4
  49. package/esm2022/lib/ecabs-radio-button-list/ecabs-radio-button-list.component.mjs +3 -3
  50. package/esm2022/lib/ecabs-radio-button-list/ecabs-radio-button-list.module.mjs +4 -4
  51. package/esm2022/lib/ecabs-select/ecabs-select.component.mjs +3 -3
  52. package/esm2022/lib/ecabs-select/ecabs-select.module.mjs +4 -4
  53. package/esm2022/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.component.mjs +3 -3
  54. package/esm2022/lib/ecabs-table/ecabs-table-filter-wrapper/ecabs-table-filter-wrapper.module.mjs +4 -4
  55. package/esm2022/lib/ecabs-table/ecabs-table.component.mjs +3 -3
  56. package/esm2022/lib/ecabs-table/ecabs-table.module.mjs +4 -4
  57. package/esm2022/lib/ecabs-textarea/ecabs-textarea.component.mjs +3 -3
  58. package/esm2022/lib/ecabs-textarea/ecabs-textarea.module.mjs +4 -4
  59. package/esm2022/lib/ecabs-timepicker/componets/ecabs-time-list-panel/ecabs-time-list-panel.component.mjs +3 -3
  60. package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.component.mjs +3 -3
  61. package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.module.mjs +4 -4
  62. package/esm2022/lib/ecabs-timepicker/ecabs-timepicker.service.mjs +3 -3
  63. package/esm2022/lib/services/ecabs-components.service.mjs +3 -3
  64. package/fesm2022/ecabs-components.mjs +218 -218
  65. package/fesm2022/ecabs-components.mjs.map +1 -1
  66. package/lib/ecabs-dialog-message/ecabs-dialog-message.component.d.ts +1 -0
  67. package/package.json +1 -1
  68. package/styles/material/_theme.scss +0 -74
  69. package/styles/material/overrides/_autocomplete.scss +0 -11
  70. package/styles/material/overrides/_button.scss +0 -81
  71. package/styles/material/overrides/_card.scss +0 -17
  72. package/styles/material/overrides/_chip.scss +0 -108
  73. package/styles/material/overrides/_datepicker.scss +0 -169
  74. package/styles/material/overrides/_dialog.scss +0 -12
  75. package/styles/material/overrides/_divider.scss +0 -3
  76. package/styles/material/overrides/_expansion.scss +0 -31
  77. package/styles/material/overrides/_form.scss +0 -144
  78. package/styles/material/overrides/_icon.scss +0 -3
  79. package/styles/material/overrides/_menu.scss +0 -3
  80. package/styles/material/overrides/_paginator.scss +0 -0
  81. package/styles/material/overrides/_phone.scss +0 -32
  82. package/styles/material/overrides/_select.scss +0 -52
  83. package/styles/material/overrides/_tab.scss +0 -23
  84. package/styles/material/overrides/_table.scss +0 -12
  85. package/styles/material/overrides/_toaster.scss +0 -38
  86. package/styles/material/overrides/_toggle.scss +0 -15
  87. package/styles/material/overrides/_toolbar.scss +0 -3
  88. package/styles/material/overrides/_tooltip.scss +0 -3
  89. package/styles/material/overrides/index.scss +0 -20
  90. package/styles/scss/base/_heading.scss +0 -17
  91. package/styles/scss/base/_normalize.scss +0 -78
  92. package/styles/scss/base/index.scss +0 -5
  93. package/styles/scss/modules/_autocomplete.scss +0 -29
  94. package/styles/scss/modules/_button.scss +0 -221
  95. package/styles/scss/modules/_card.scss +0 -23
  96. package/styles/scss/modules/_chip.scss +0 -56
  97. package/styles/scss/modules/_datepicker.scss +0 -426
  98. package/styles/scss/modules/_dialog.scss +0 -14
  99. package/styles/scss/modules/_divider.scss +0 -3
  100. package/styles/scss/modules/_form.scss +0 -233
  101. package/styles/scss/modules/_icon.scss +0 -30
  102. package/styles/scss/modules/_img.scss +0 -32
  103. package/styles/scss/modules/_legend.scss +0 -64
  104. package/styles/scss/modules/_list.scss +0 -17
  105. package/styles/scss/modules/_map.scss +0 -112
  106. package/styles/scss/modules/_percentage.scss +0 -33
  107. package/styles/scss/modules/_phone.scss +0 -29
  108. package/styles/scss/modules/_select.scss +0 -41
  109. package/styles/scss/modules/_statuses.scss +0 -31
  110. package/styles/scss/modules/_tab.scss +0 -16
  111. package/styles/scss/modules/_table.scss +0 -107
  112. package/styles/scss/modules/_timepicker.scss +0 -96
  113. package/styles/scss/modules/_toaster.scss +0 -53
  114. package/styles/scss/modules/_tooltip.scss +0 -7
  115. package/styles/scss/modules/drag-drop.scss +0 -31
  116. package/styles/scss/modules/index.scss +0 -23
  117. package/styles/scss/utilities/_colors.scss +0 -52
  118. package/styles/scss/utilities/_fonts.scss +0 -26
  119. package/styles/scss/utilities/_functions.scss +0 -27
  120. package/styles/scss/utilities/_helpers.scss +0 -5
  121. package/styles/scss/utilities/_mixins.scss +0 -65
  122. package/styles/scss/utilities/_palettes.scss +0 -74
  123. package/styles/scss/utilities/_variables.scss +0 -19
  124. package/styles/scss/utilities/index.scss +0 -6
  125. package/styles/styles.scss +0 -5
  126. package/styles/tailwind/index.scss +0 -756
@@ -1,426 +0,0 @@
1
- @import "../utilities/index";
2
-
3
- ecabs-date-picker {
4
- .mat-datepicker-input {
5
- // max-height: 2.625rem;;
6
- }
7
-
8
- .dateTimeWrapper {
9
- position: relative;
10
- display: flex;
11
- width: 100%;
12
-
13
- .datePart {
14
- flex: 2;
15
- }
16
-
17
- .timePart {
18
- flex: 1;
19
- padding-left: 10px;
20
- vertical-align: top;
21
- max-width: calc-rem(160);
22
-
23
- ecabs-timepicker .timeInputWrapper {
24
- display: block;
25
- }
26
-
27
- ecabs-timepicker {
28
- width: 100%;
29
-
30
- .inputWrapper {
31
- display: block;
32
- }
33
- }
34
- }
35
-
36
- .dateInputWrapper {
37
- position: relative;
38
- }
39
-
40
- input {
41
- min-height: 42px;
42
- width: 100%;
43
- display: block;
44
- box-sizing: border-box;
45
- font-size: 14px;
46
- font-weight: 500;
47
- padding-left: 10px;
48
- border-radius: 4px;
49
- border: 1px solid rgb(107, 109, 115);
50
- outline: none;
51
- transition: all 300ms ease-in-out;
52
-
53
- &:disabled {
54
- border-bottom-width: 1px;
55
- background-color: var(--color-white-opacity-05);
56
- }
57
- }
58
-
59
- input[type='date']::-webkit-calendar-picker-indicator,
60
- input[type='date']::-webkit-inner-spin-button {
61
- display: none;
62
- }
63
-
64
- input[type='date']::-webkit-clear-button {
65
- display: none;
66
- }
67
-
68
- .calendar-icon {
69
- float: right;
70
- margin-top: -38px;
71
- padding: 5px 10px 5px 5px;
72
- display: block;
73
- font-size: 13px;
74
- line-height: 20px;
75
- color: var(--color-gray-500);
76
- position: relative;
77
- width: 40px;
78
- height: 30px;
79
- cursor: pointer;
80
- background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI1LjQuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0OCA0OCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDggNDg7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojNkI2RDczO30KPC9zdHlsZT4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTksNDRjLTAuOCwwLTEuNS0wLjMtMi4xLTAuOUM2LjMsNDIuNSw2LDQxLjgsNiw0MVYxMGMwLTAuOCwwLjMtMS41LDAuOS0yLjFTOC4yLDcsOSw3aDMuMlY0aDMuMnYzaDE3VjRoMy4ydjMKCUgzOWMwLjgsMCwxLjUsMC4zLDIuMSwwLjlDNDEuNyw4LjUsNDIsOS4yLDQyLDEwdjMxYzAsMC44LTAuMywxLjUtMC45LDIuMUM0MC41LDQzLjcsMzkuOCw0NCwzOSw0NEg5eiBNOSw0MWgzMGwwLDBsMCwwVjE5LjVIOVY0MQoJTDksNDFMOSw0MXogTTksMTYuNWgzMFYxMGwwLDBsMCwwSDlsMCwwbDAsMFYxNi41eiBNOSwxNi41VjEwbDAsMGwwLDBsMCwwbDAsMFYxNi41eiIvPgo8L3N2Zz4K);
81
- background-position: center center;
82
- background-repeat: no-repeat;
83
- background-size: calc-rem(22);
84
-
85
- &.disabled {
86
- cursor: not-allowed;
87
- }
88
- }
89
- }
90
-
91
- .app-element-wrapper {
92
- &.focused {
93
- label {
94
- color: #376bfb;
95
- }
96
-
97
- input {
98
- border-bottom-width: 2px;
99
- border-bottom-color: #376bfb;
100
- }
101
- }
102
-
103
- &.validationError {
104
- label {
105
- color: #ff4c4c;
106
- }
107
-
108
- input {
109
- border-bottom-color: #ff4c4c;
110
- border-bottom-width: 2px;
111
- }
112
- }
113
- }
114
- }
115
-
116
- // ------------------------ datepicker component css override --------------
117
-
118
- .ng-mydp {
119
- .myDpSelector {
120
- border: 0;
121
- padding: 0;
122
- box-shadow: 0 4px 6px rgba(22, 42, 76, 0.08),
123
- 0 2px 16px rgba(22, 42, 76, 0.06), 0 8px 12px rgba(22, 42, 76, 0.04);
124
- border-radius: 0 0 4px 4px;
125
- background: white;
126
-
127
- &:focus {
128
- box-shadow: 0 4px 6px rgba(22, 42, 76, 0.08),
129
- 0 2px 16px rgba(22, 42, 76, 0.06), 0 8px 12px rgba(22, 42, 76, 0.04);
130
- }
131
-
132
- .myDpWeekDayTitle {
133
- background-color: white;
134
- font-weight: 500;
135
- font-size: 11px;
136
- color: rgba(22, 42, 76, 0.7);
137
- }
138
-
139
- .myDpNextBtn {
140
- margin-left: auto;
141
- margin-right: 16px;
142
-
143
- .myDpIconRightArrow {
144
- line-height: 26px;
145
- height: 25px;
146
-
147
- &::before {
148
- color: #376bfb;
149
- font-size: 13px;
150
- }
151
- }
152
- }
153
-
154
- .myDpPrevBtn {
155
- margin-left: 16px;
156
-
157
- .myDpIconLeftArrow {
158
- line-height: 26px;
159
- height: 25px;
160
-
161
- &::before {
162
- color: #376bfb;
163
- font-size: 13px;
164
- }
165
- }
166
- }
167
-
168
- .myDpMonthYearSelBar {
169
- height: 52px;
170
- padding-top: 10px;
171
- border: 0;
172
- }
173
-
174
- .myDpMonthYearText {
175
- button {
176
- font-weight: 500;
177
- font-size: 13px;
178
- line-height: 20px;
179
- color: #376bfb;
180
- }
181
-
182
- .myDpMonthBtn {
183
- padding-right: 7px;
184
- position: relative;
185
- margin-right: 15px;
186
-
187
- &::after {
188
- position: absolute;
189
- content: '';
190
- height: 14px;
191
- width: 1px;
192
- right: -7px;
193
- top: 6px;
194
- background: rgba(22, 42, 76, 0.5);
195
- }
196
- }
197
-
198
- .myDpYearBtn {
199
- padding-left: 6px;
200
- }
201
- }
202
-
203
- .myDpCalTable {
204
- height: calc(100% - 54px);
205
- width: calc(100% - 20px);
206
- margin: 0 10px;
207
- }
208
-
209
- //---------------- days table -------------------------------
210
- table.myDpCalTable {
211
- td {
212
- .myDpDayValue {
213
- border-radius: 4px;
214
- background: #f0f2f5;
215
- display: inline-block;
216
- box-sizing: border-box;
217
- width: 32px;
218
- height: 28px;
219
- font-size: 13px;
220
- line-height: 28px;
221
- text-align: center;
222
- color: rgba(22, 42, 76, 0.9);
223
-
224
- &.myDpMarkCurrDay {
225
- border-bottom: 0;
226
- color: #376bfb;
227
- }
228
- }
229
-
230
- &.myDpSelectedDay {
231
- .myDpDayValue {
232
- color: white !important;
233
- background: #6ab72a !important;
234
- }
235
- }
236
-
237
- &.myDpDisabled {
238
- background: unset;
239
-
240
- .myDpDayValue {
241
- background: unset !important;
242
- color: rgba(22, 42, 76, 0.5);
243
- cursor: not-allowed;
244
-
245
- &:hover {
246
- background: unset !important;
247
- }
248
- }
249
- }
250
-
251
- &.myDpRangeColor {
252
- background-color: white;
253
-
254
- .myDpDayValue {
255
- background: #bee39d !important;
256
- }
257
-
258
- &.myDpSelectedDay {
259
- .myDpDayValue {
260
- color: white !important;
261
- background: #6ab72a !important;
262
- }
263
- }
264
- }
265
-
266
- &.myDpDaycell:focus {
267
- box-shadow: unset;
268
- outline: unset;
269
- }
270
-
271
- &.myDpPrevMonth,
272
- &.myDpNextMonth {
273
- .myDpDayValue {
274
- background: #f6f7f9;
275
- color: rgba(22, 42, 76, 0.5);
276
- }
277
- }
278
-
279
- .myDpDimDay {
280
- opacity: 1;
281
- }
282
- }
283
-
284
- .myDpTableSingleDay:hover {
285
- background-color: white;
286
-
287
- .myDpDayValue {
288
- background: #bee39d;
289
- color: rgba(22, 42, 76, 0.9);
290
- }
291
- }
292
-
293
- .myDpSelectedDay,
294
- .myDpSelectedMonth,
295
- .myDpSelectedYear {
296
- background-color: white;
297
- border-radius: 0;
298
- }
299
- }
300
-
301
- //================== months table =====================
302
- .myDpMonthTable {
303
- height: 128px;
304
- width: calc(100% - 20px);
305
- margin: 0 10px;
306
-
307
- td {
308
- .myDpMonthValue {
309
- display: inline-block;
310
- height: 28px;
311
- width: 80px;
312
- background: #f0f2f5;
313
- vertical-align: middle;
314
- text-align: center;
315
- line-height: 28px;
316
- font-weight: normal;
317
- font-size: 13px;
318
- color: rgba(22, 42, 76, 0.9);
319
- border-radius: 4px;
320
-
321
- &.myDpMarkCurrMonth {
322
- border: 0;
323
- color: #376bfb;
324
- }
325
-
326
- &:hover {
327
- background: #bee39d;
328
- }
329
- }
330
-
331
- &.myDpDisabled {
332
- background: unset;
333
-
334
- .myDpMonthValue {
335
- background: unset !important;
336
- color: rgba(22, 42, 76, 0.5) !important;
337
- cursor: not-allowed;
338
- }
339
- }
340
-
341
- &.myDpSelectedMonth {
342
- background-color: white;
343
-
344
- .myDpMonthValue {
345
- background: #6ab72a !important;
346
- color: white !important;
347
- }
348
- }
349
-
350
- &.myDpTableSingleMonth:hover {
351
- background-color: white;
352
- }
353
- }
354
- }
355
-
356
- //================== years table =====================
357
-
358
- .myDpYearTable {
359
- height: 160px;
360
- width: calc(100% - 20px);
361
- margin: 0 10px;
362
-
363
- td {
364
- .myDpYearValue {
365
- display: inline-block;
366
- height: 28px;
367
- width: 46px;
368
- background: #f0f2f5;
369
- vertical-align: middle;
370
- text-align: center;
371
- line-height: 28px;
372
- font-weight: normal;
373
- font-size: 13px;
374
- color: rgba(22, 42, 76, 0.9);
375
- border-radius: 4px;
376
-
377
- &.myDpMarkCurrYear {
378
- border: 0;
379
- color: #376bfb;
380
- }
381
-
382
- &:hover {
383
- background: #bee39d;
384
- }
385
- }
386
-
387
- &.myDpDisabled {
388
- background: unset;
389
-
390
- .myDpYearValue {
391
- background: unset !important;
392
- color: rgba(22, 42, 76, 0.5) !important;
393
- cursor: not-allowed;
394
- }
395
- }
396
-
397
- &.myDpSelectedYear {
398
- background-color: white;
399
-
400
- .myDpYearValue {
401
- background: #6ab72a !important;
402
- color: white !important;
403
- }
404
- }
405
-
406
- &.myDpTableSingleYear:hover {
407
- background-color: white;
408
- }
409
- }
410
- }
411
- }
412
-
413
- .myDpSelectorArrow {
414
- height: 272px !important;
415
- width: 268px !important;
416
- margin-top: -12px;
417
-
418
- &::after {
419
- display: none;
420
- }
421
-
422
- &::before {
423
- display: none;
424
- }
425
- }
426
- }
@@ -1,14 +0,0 @@
1
- .dialog {
2
- @include e(title) {
3
- @include fontSize($font-heading-xs);
4
-
5
- font-weight: $font-weight-semibold;
6
- color: var(--color-brand-dark);
7
- }
8
-
9
- @include m(maps) {
10
- padding: 1px;
11
- border-radius: $border-radius-base * 2;
12
- background: #9cc0f9;
13
- }
14
- }
@@ -1,3 +0,0 @@
1
- .divider {
2
- border-top-color: var(--color-gray-300);
3
- }
@@ -1,233 +0,0 @@
1
- $form-input-icon-size: 18px;
2
-
3
- .form,
4
- form {
5
- &-field {
6
- margin-bottom: 1rem;
7
- position: relative;
8
- // #Label
9
- @include e(label) {
10
- @include fontSize($font-size-xs);
11
-
12
- display: inline-block;
13
- margin-bottom: 0.25rem;
14
- color: var(--color-gray-500);
15
- cursor: pointer;
16
-
17
-
18
- .icon {
19
- @include fontSize($font-size-base);
20
-
21
- display: inline;
22
- vertical-align: middle;
23
- margin-left: calc-rem(6px);
24
- }
25
- }
26
-
27
- // #Input
28
- @include e(input) {
29
- @include fontSize($font-size-base);
30
- display: block;
31
- width: 100%;
32
- padding: calc-rem(8) calc-rem(16);
33
- border-radius: $border-radius-base;
34
- border: 1px solid var(--color-gray-500);
35
- color: var(--color-black);
36
- line-height: $base-line-height;
37
-
38
- &:focus {
39
- border-color: var(--color-brand-dark);
40
- }
41
-
42
- @include m(wrapper) {
43
- // wrapper
44
- display: flex;
45
- position: relative;
46
- line-height: 1;
47
- }
48
-
49
- @include m(suffix) {
50
- // suffix
51
- position: absolute !important;
52
- top: 50%;
53
- right: calc-rem(16);
54
- color: var(--color-gray-500);
55
- transform: translateY(-50%);
56
-
57
- &,
58
- i,
59
- .mat-icon {
60
- @include fontSize($form-input-icon-size);
61
- width: calc-rem($form-input-icon-size);
62
- height: calc-rem($form-input-icon-size);
63
- }
64
- }
65
-
66
- @include m(prefix) {
67
- // prefix
68
- @extend .form-field__input--suffix;
69
-
70
- right: unset;
71
- left: calc-rem(16);
72
- }
73
-
74
- @include m(disabled) {
75
- // disabled
76
- background-color: var(--color-gray-100);
77
- border-color: transparent;
78
- }
79
-
80
- @include m(invalid) {
81
- // invalid
82
- border-color: var(--color-error);
83
- color: var(--color-error);
84
- }
85
- }
86
-
87
- // #Textarea
88
- @include e(textarea) {
89
- @include fontSize($font-size-base);
90
- display: block;
91
- width: 100%;
92
- padding: calc-rem(16);
93
- border-radius: $border-radius-base;
94
- border: 1px solid var(--color-gray-500);
95
- color: var(--color-black);
96
- line-height: $base-line-height;
97
-
98
- &:focus {
99
- border-color: var(--color-brand-dark);
100
- }
101
-
102
- @include m(wrapper) {
103
- // wrapper
104
- display: flex;
105
- position: relative;
106
- line-height: 1;
107
- }
108
-
109
- @include m(suffix) {
110
- // suffix
111
- position: absolute !important;
112
- top: 50%;
113
- right: calc-rem(16);
114
- color: var(--color-gray-500);
115
- transform: translateY(-50%);
116
-
117
- &,
118
- i,
119
- .mat-icon {
120
- @include fontSize($form-input-icon-size);
121
- width: calc-rem($form-input-icon-size);
122
- height: calc-rem($form-input-icon-size);
123
- }
124
- }
125
-
126
- @include m(prefix) {
127
- // prefix
128
- @extend .form-field__input--suffix;
129
-
130
- right: unset;
131
- left: calc-rem(16);
132
- }
133
-
134
- @include m(disabled) {
135
- // disabled
136
- background-color: var(--color-gray-100);
137
- border-color: transparent;
138
- }
139
- }
140
-
141
- // #Invalid
142
- @include m(invalid) {
143
- .form-field__input,
144
- .form-field__textarea {
145
- color: var(--color-error);
146
- border-color: var(--color-error);
147
- }
148
- }
149
-
150
- // #Required
151
- @include m(required) {
152
- .form-field__label {
153
- &:after {
154
- @extend %pseudos;
155
-
156
- content: '*';
157
- margin-left: 0.2rem;
158
- margin-top: 2px;
159
- color: var(--color-error);
160
- }
161
- }
162
- }
163
-
164
- // #Validation
165
- @include e(validation) {
166
- padding-top: 0.5rem;
167
- @include fontSize($font-size-xs);
168
- color: var(--color-error);
169
- @include m(item) {
170
- padding-bottom: 0.6rem;
171
-
172
- &:last-of-type {
173
- padding-bottom: 0;
174
- }
175
- }
176
- }
177
-
178
- // #Subscript
179
- @include e(subscript) {
180
- @include m(wrapper) {
181
- @extend %pseudos;
182
-
183
- margin-top: 1.2rem;
184
- }
185
- }
186
-
187
- &.disabled input,
188
- .disabled textarea {
189
- background-color: var(--color-white-opacity-05);
190
- }
191
-
192
- .spinner {
193
- position: absolute;
194
- right: 0.25rem;
195
- bottom: 0.5rem;
196
- }
197
-
198
- .hint {
199
- font-size: 10px;
200
- text-align: right;
201
- margin-right: calc-rem(17px);
202
- transform: translateY(-1rem);
203
- margin-bottom: -1rem;
204
- }
205
- }
206
-
207
- // ==========================================================================
208
- // #OVERRIDES
209
- // ==========================================================================
210
- .mat-mdc-form-field-appearance-standard .mat-mdc-form-field-flex {
211
- padding-top: 0;
212
- }
213
-
214
- .mat-mdc-form-field-infix {
215
- border-top: 0;
216
- }
217
-
218
- .mat-mdc-form-field .mat-mdc-form-field-flex {
219
- padding-top: 0;
220
- }
221
- }
222
-
223
- .mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix {
224
- width: auto;
225
- }
226
-
227
- .mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix {
228
- width: auto;
229
- }
230
-
231
- .mat-mdc-text-field-wrapper {
232
- padding-bottom: 0;
233
- }
@@ -1,30 +0,0 @@
1
- .icon {
2
- color: var(--color-gray-500);
3
-
4
- &:hover {
5
- color: var(--color-brand-light);
6
- }
7
-
8
- @include e(bordered) {
9
- @extend .icon;
10
-
11
- &:after {
12
- @extend %pseudos;
13
-
14
- border: 1px solid var(--color-gray-400);
15
- border-radius: $border-radius-base;
16
- width: calc(100% + 0.8rem);
17
- height: calc(100% + 0.8rem);
18
- top: -0.4rem;
19
- left: -0.4rem;
20
- }
21
- }
22
- }
23
-
24
- .eyes-icon-label {
25
- border-color: var(--color-gray-400);
26
- background-color: var(--color-white);
27
- color: var(--color-black);
28
- padding: 0.125rem;
29
- transform: translateY(-1.25rem);
30
- }