@everymatrix/general-input 1.31.2 → 1.32.4

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 (136) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +3 -2
  3. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +0 -36077
  4. package/dist/cjs/general-input.cjs.entry.js +0 -75
  5. package/dist/cjs/general-input.cjs.js +0 -19
  6. package/dist/cjs/index-132a0774.js +0 -1327
  7. package/dist/cjs/index.cjs.js +0 -18
  8. package/dist/cjs/loader.cjs.js +0 -21
  9. package/dist/cjs/locale.utils-cef1d3b6.js +0 -128
  10. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +0 -85
  11. package/dist/cjs/tooltipIcon-092a795f.js +0 -5
  12. package/dist/collection/collection-manifest.json +0 -23
  13. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +0 -82
  14. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +0 -366
  15. package/dist/collection/components/checkbox-input/checkbox-input.css +0 -68
  16. package/dist/collection/components/checkbox-input/checkbox-input.js +0 -324
  17. package/dist/collection/components/date-input/date-input.css +0 -101
  18. package/dist/collection/components/date-input/date-input.js +0 -396
  19. package/dist/collection/components/email-input/email-input.css +0 -95
  20. package/dist/collection/components/email-input/email-input.js +0 -403
  21. package/dist/collection/components/general-input/general-input.css +0 -4
  22. package/dist/collection/components/general-input/general-input.js +0 -373
  23. package/dist/collection/components/number-input/number-input.css +0 -102
  24. package/dist/collection/components/number-input/number-input.js +0 -368
  25. package/dist/collection/components/password-input/password-input.css +0 -182
  26. package/dist/collection/components/password-input/password-input.js +0 -527
  27. package/dist/collection/components/radio-input/radio-input.css +0 -43
  28. package/dist/collection/components/radio-input/radio-input.js +0 -297
  29. package/dist/collection/components/select-input/select-input.css +0 -122
  30. package/dist/collection/components/select-input/select-input.js +0 -429
  31. package/dist/collection/components/tel-input/tel-input.css +0 -145
  32. package/dist/collection/components/tel-input/tel-input.js +0 -440
  33. package/dist/collection/components/text-input/text-input.css +0 -98
  34. package/dist/collection/components/text-input/text-input.js +0 -448
  35. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +0 -82
  36. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +0 -324
  37. package/dist/collection/index.js +0 -17
  38. package/dist/collection/utils/locale.utils.js +0 -123
  39. package/dist/collection/utils/tooltipIcon.svg +0 -5
  40. package/dist/collection/utils/types.js +0 -1
  41. package/dist/collection/utils/utils.js +0 -5
  42. package/dist/components/active-mixin.js +0 -975
  43. package/dist/components/checkbox-group-input.d.ts +0 -11
  44. package/dist/components/checkbox-group-input.js +0 -6
  45. package/dist/components/checkbox-group-input2.js +0 -1078
  46. package/dist/components/checkbox-input.d.ts +0 -11
  47. package/dist/components/checkbox-input.js +0 -6
  48. package/dist/components/checkbox-input2.js +0 -129
  49. package/dist/components/date-input.d.ts +0 -11
  50. package/dist/components/date-input.js +0 -6
  51. package/dist/components/date-input2.js +0 -11556
  52. package/dist/components/email-input.d.ts +0 -11
  53. package/dist/components/email-input.js +0 -6
  54. package/dist/components/email-input2.js +0 -171
  55. package/dist/components/field-mixin.js +0 -12426
  56. package/dist/components/general-input.d.ts +0 -11
  57. package/dist/components/general-input.js +0 -6
  58. package/dist/components/general-input2.js +0 -341
  59. package/dist/components/index.d.ts +0 -26
  60. package/dist/components/index.js +0 -18
  61. package/dist/components/input-field-shared-styles.js +0 -1211
  62. package/dist/components/number-input.d.ts +0 -11
  63. package/dist/components/number-input.js +0 -6
  64. package/dist/components/number-input2.js +0 -158
  65. package/dist/components/password-input.d.ts +0 -11
  66. package/dist/components/password-input.js +0 -6
  67. package/dist/components/password-input2.js +0 -1041
  68. package/dist/components/radio-input.d.ts +0 -11
  69. package/dist/components/radio-input.js +0 -6
  70. package/dist/components/radio-input2.js +0 -114
  71. package/dist/components/select-input.d.ts +0 -11
  72. package/dist/components/select-input.js +0 -6
  73. package/dist/components/select-input2.js +0 -183
  74. package/dist/components/tel-input.d.ts +0 -11
  75. package/dist/components/tel-input.js +0 -6
  76. package/dist/components/tel-input2.js +0 -197
  77. package/dist/components/text-input.d.ts +0 -11
  78. package/dist/components/text-input.js +0 -6
  79. package/dist/components/text-input2.js +0 -199
  80. package/dist/components/toggle-checkbox-input.d.ts +0 -11
  81. package/dist/components/toggle-checkbox-input.js +0 -6
  82. package/dist/components/tooltipIcon.js +0 -127
  83. package/dist/components/vaadin-button.js +0 -490
  84. package/dist/components/vaadin-combo-box.js +0 -4512
  85. package/dist/components/virtual-keyboard-controller.js +0 -2001
  86. package/dist/esm/checkbox-group-input_10.entry.js +0 -36064
  87. package/dist/esm/general-input.entry.js +0 -71
  88. package/dist/esm/general-input.js +0 -17
  89. package/dist/esm/index-db76d5b5.js +0 -1299
  90. package/dist/esm/index.js +0 -16
  91. package/dist/esm/loader.js +0 -17
  92. package/dist/esm/locale.utils-de759721.js +0 -125
  93. package/dist/esm/polyfills/core-js.js +0 -11
  94. package/dist/esm/polyfills/css-shim.js +0 -1
  95. package/dist/esm/polyfills/dom.js +0 -79
  96. package/dist/esm/polyfills/es5-html-element.js +0 -1
  97. package/dist/esm/polyfills/index.js +0 -34
  98. package/dist/esm/polyfills/system.js +0 -6
  99. package/dist/esm/toggle-checkbox-input.entry.js +0 -81
  100. package/dist/esm/tooltipIcon-99c1c7b7.js +0 -3
  101. package/dist/general-input/general-input.esm.js +0 -1
  102. package/dist/general-input/index.esm.js +0 -1
  103. package/dist/general-input/p-10efdf3f.js +0 -1
  104. package/dist/general-input/p-613c3e00.entry.js +0 -1
  105. package/dist/general-input/p-660bcdd1.entry.js +0 -1
  106. package/dist/general-input/p-9b6b0396.entry.js +0 -3646
  107. package/dist/general-input/p-b408093e.js +0 -1
  108. package/dist/general-input/p-f4f4ccda.js +0 -1
  109. package/dist/index.cjs.js +0 -1
  110. package/dist/index.js +0 -1
  111. package/dist/stencil.config.js +0 -22
  112. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +0 -2
  113. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +0 -74
  114. package/dist/types/components/checkbox-input/checkbox-input.d.ts +0 -65
  115. package/dist/types/components/date-input/date-input.d.ts +0 -84
  116. package/dist/types/components/email-input/email-input.d.ts +0 -80
  117. package/dist/types/components/general-input/general-input.d.ts +0 -75
  118. package/dist/types/components/number-input/number-input.d.ts +0 -74
  119. package/dist/types/components/password-input/password-input.d.ts +0 -91
  120. package/dist/types/components/radio-input/radio-input.d.ts +0 -59
  121. package/dist/types/components/select-input/select-input.d.ts +0 -83
  122. package/dist/types/components/tel-input/tel-input.d.ts +0 -89
  123. package/dist/types/components/text-input/text-input.d.ts +0 -84
  124. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +0 -67
  125. package/dist/types/components.d.ts +0 -1268
  126. package/dist/types/index.d.ts +0 -1
  127. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  128. package/dist/types/utils/locale.utils.d.ts +0 -17
  129. package/dist/types/utils/types.d.ts +0 -87
  130. package/dist/types/utils/utils.d.ts +0 -1
  131. package/loader/cdn.js +0 -3
  132. package/loader/index.cjs.js +0 -3
  133. package/loader/index.d.ts +0 -12
  134. package/loader/index.es2017.js +0 -3
  135. package/loader/index.js +0 -4
  136. package/loader/package.json +0 -10
@@ -1,440 +0,0 @@
1
- import { Component, h, Prop, State, Event, Watch, Listen } from '@stencil/core';
2
- import { translate } from '../../utils/locale.utils';
3
- import '@vaadin/combo-box';
4
- import tooltipIcon from '../../utils/tooltipIcon.svg';
5
- export class TelInput {
6
- constructor() {
7
- /**
8
- * Client custom styling via inline style
9
- */
10
- this.clientStyling = '';
11
- this.limitStylingAppends = false;
12
- this.showTooltip = false;
13
- this.validationPattern = '';
14
- this.touched = false;
15
- this.handleInput = (event) => {
16
- this.phoneValue = event.target.value;
17
- this.value = { prefix: this.prefixValue, phone: this.phoneValue };
18
- this.touched = true;
19
- if (this.debounceTime) {
20
- clearTimeout(this.debounceTime);
21
- }
22
- this.debounceTime = setTimeout(() => {
23
- this.isValid = this.setValidity();
24
- this.errorMessage = this.setErrorMessage();
25
- this.emitValueHandler(true);
26
- }, 500);
27
- };
28
- this.handleBlur = () => {
29
- this.isValid = this.setValidity();
30
- this.touched = true;
31
- this.errorMessage = this.setErrorMessage();
32
- };
33
- this.setClientStyling = () => {
34
- let sheet = document.createElement('style');
35
- sheet.innerHTML = this.clientStyling;
36
- this.stylingContainer.prepend(sheet);
37
- };
38
- }
39
- validityChanged() {
40
- this.validityStateHandler({ valid: this.isValid, name: this.name });
41
- if (this.emitValue == true) {
42
- this.valueHandler({ name: this.name, value: this.value, type: 'tel' });
43
- }
44
- }
45
- validityStateHandler(inputStateEvent) {
46
- this.sendValidityState.emit(inputStateEvent);
47
- }
48
- emitValueHandler(newValue) {
49
- if (newValue == true && this.isValid) {
50
- this.valueHandler({ name: this.name, value: this.value, type: 'tel' });
51
- }
52
- }
53
- valueHandler(inputValueEvent) {
54
- this.sendInputValue.emit(inputValueEvent);
55
- }
56
- handleClickOutside(event) {
57
- if (event.composedPath()[0] === this.tooltipIconReference)
58
- return;
59
- if (event.composedPath()[0] !== this.tooltipReference)
60
- this.showTooltip = false;
61
- }
62
- connectedCallback() {
63
- this.validationPattern = this.setPattern();
64
- if (this.defaultValue) {
65
- this.prefixValue = this.defaultValue.prefix ? this.defaultValue.prefix : this.defaultValue;
66
- this.phoneValue = this.defaultValue.phone || null;
67
- }
68
- }
69
- componentWillLoad() {
70
- if (this.action) {
71
- if (this.action.split(" ")[0] == 'GET') {
72
- const endpoint = this.action.split(" ")[1];
73
- return this.getPhoneCodes(endpoint).then((options) => {
74
- this.phoneCodesOptions = options.phoneCodes.map(code => {
75
- return { label: code.Prefix, value: code.Prefix };
76
- });
77
- });
78
- }
79
- }
80
- }
81
- componentDidRender() {
82
- // start custom styling area
83
- if (!this.limitStylingAppends && this.stylingContainer) {
84
- if (this.clientStyling)
85
- this.setClientStyling();
86
- this.limitStylingAppends = true;
87
- }
88
- // end custom styling area
89
- }
90
- componentDidLoad() {
91
- this.isValid = this.setValidity();
92
- if (this.defaultValue) {
93
- this.value = this.defaultValue;
94
- this.valueHandler({ name: this.name, value: this.value, type: 'tel' });
95
- }
96
- }
97
- getPhoneCodes(endpoint) {
98
- const url = new URL(endpoint);
99
- return new Promise((resolve, reject) => {
100
- fetch(url.href)
101
- .then((res) => res.json())
102
- .then((options) => {
103
- resolve(options);
104
- }).catch((err) => {
105
- console.error(err);
106
- reject(err);
107
- });
108
- });
109
- }
110
- handlePrefixInput(event) {
111
- this.prefixValue = event.target.value;
112
- this.value = { prefix: this.prefixValue, phone: this.phoneValue };
113
- this.emitValueHandler(true);
114
- }
115
- setValidity() {
116
- return this.inputReference.validity.valid;
117
- }
118
- setPattern() {
119
- var _a, _b;
120
- if (((_a = this.validation.custom) === null || _a === void 0 ? void 0 : _a.length) > 0) {
121
- return (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.pattern;
122
- }
123
- }
124
- setErrorMessage() {
125
- var _a, _b;
126
- if (this.inputReference.validity.patternMismatch) {
127
- const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
128
- const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
129
- return translate(`${errorCode}`, this.language) ? translate(`${errorCode}`, this.language) : errorMessage;
130
- }
131
- if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
132
- return translate('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
133
- }
134
- if (this.inputReference.validity.valueMissing) {
135
- return translate('requiredError', this.language);
136
- }
137
- }
138
- renderTooltip() {
139
- if (this.showTooltip) {
140
- return (h("div", { class: `tel__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
141
- }
142
- return null;
143
- }
144
- render() {
145
- let invalidClass = '';
146
- if (this.touched) {
147
- invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
148
- }
149
- return h("div", { class: `tel__wrapper ${this.autofilled ? 'tel__wrapper--autofilled' : ''} ${this.name}__input`, ref: el => this.stylingContainer = el },
150
- h("div", { class: 'tel__wrapper--flex-label' },
151
- h("label", { class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName),
152
- h("div", { class: 'tel__wrapper--relative' },
153
- this.tooltip &&
154
- h("img", { class: 'tel__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
155
- this.renderTooltip())),
156
- h("div", { class: `tel__wrapper--flex ${invalidClass}` },
157
- h("vaadin-combo-box", { class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (e) => this.handlePrefixInput(e) }),
158
- h("input", { type: "tel", ref: (el) => this.inputReference = el, id: `${this.name}__input`, readOnly: this.autofilled, class: `tel__input`, value: this.phoneValue, placeholder: `${this.placeholder}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onInput: this.handleInput, onBlur: this.handleBlur })),
159
- h("small", { class: 'tel__error-message' }, this.errorMessage));
160
- }
161
- static get is() { return "tel-input"; }
162
- static get encapsulation() { return "shadow"; }
163
- static get originalStyleUrls() { return {
164
- "$": ["tel-input.scss"]
165
- }; }
166
- static get styleUrls() { return {
167
- "$": ["tel-input.css"]
168
- }; }
169
- static get properties() { return {
170
- "name": {
171
- "type": "string",
172
- "mutable": false,
173
- "complexType": {
174
- "original": "string",
175
- "resolved": "string",
176
- "references": {}
177
- },
178
- "required": false,
179
- "optional": false,
180
- "docs": {
181
- "tags": [],
182
- "text": "Name of the input."
183
- },
184
- "attribute": "name",
185
- "reflect": true
186
- },
187
- "displayName": {
188
- "type": "string",
189
- "mutable": false,
190
- "complexType": {
191
- "original": "string",
192
- "resolved": "string",
193
- "references": {}
194
- },
195
- "required": false,
196
- "optional": false,
197
- "docs": {
198
- "tags": [],
199
- "text": "Name of input to be shown to the user."
200
- },
201
- "attribute": "display-name",
202
- "reflect": true
203
- },
204
- "placeholder": {
205
- "type": "string",
206
- "mutable": false,
207
- "complexType": {
208
- "original": "string",
209
- "resolved": "string",
210
- "references": {}
211
- },
212
- "required": false,
213
- "optional": false,
214
- "docs": {
215
- "tags": [],
216
- "text": "Placeholder text to be shown."
217
- },
218
- "attribute": "placeholder",
219
- "reflect": true
220
- },
221
- "showLabels": {
222
- "type": "boolean",
223
- "mutable": false,
224
- "complexType": {
225
- "original": "boolean",
226
- "resolved": "boolean",
227
- "references": {}
228
- },
229
- "required": false,
230
- "optional": false,
231
- "docs": {
232
- "tags": [],
233
- "text": "Boolean that defines if the widget show labels or placeholders."
234
- },
235
- "attribute": "show-labels",
236
- "reflect": true
237
- },
238
- "action": {
239
- "type": "string",
240
- "mutable": false,
241
- "complexType": {
242
- "original": "string",
243
- "resolved": "string",
244
- "references": {}
245
- },
246
- "required": false,
247
- "optional": false,
248
- "docs": {
249
- "tags": [],
250
- "text": "Special behaviour an input should have. Can be fetching for data."
251
- },
252
- "attribute": "action",
253
- "reflect": true
254
- },
255
- "validation": {
256
- "type": "unknown",
257
- "mutable": false,
258
- "complexType": {
259
- "original": "ValidationSchema",
260
- "resolved": "ValidationSchema",
261
- "references": {
262
- "ValidationSchema": {
263
- "location": "import",
264
- "path": "../../utils/types"
265
- }
266
- }
267
- },
268
- "required": false,
269
- "optional": false,
270
- "docs": {
271
- "tags": [],
272
- "text": "Object of validation rules for the input."
273
- }
274
- },
275
- "defaultValue": {
276
- "type": "any",
277
- "mutable": false,
278
- "complexType": {
279
- "original": "string | any",
280
- "resolved": "any",
281
- "references": {}
282
- },
283
- "required": false,
284
- "optional": false,
285
- "docs": {
286
- "tags": [],
287
- "text": "Default value for the input."
288
- },
289
- "attribute": "default-value",
290
- "reflect": true
291
- },
292
- "autofilled": {
293
- "type": "boolean",
294
- "mutable": false,
295
- "complexType": {
296
- "original": "boolean",
297
- "resolved": "boolean",
298
- "references": {}
299
- },
300
- "required": false,
301
- "optional": false,
302
- "docs": {
303
- "tags": [],
304
- "text": "Boolean. Determines if input should be readonly."
305
- },
306
- "attribute": "autofilled",
307
- "reflect": true
308
- },
309
- "tooltip": {
310
- "type": "string",
311
- "mutable": false,
312
- "complexType": {
313
- "original": "string",
314
- "resolved": "string",
315
- "references": {}
316
- },
317
- "required": false,
318
- "optional": false,
319
- "docs": {
320
- "tags": [],
321
- "text": "Tooltip text."
322
- },
323
- "attribute": "tooltip",
324
- "reflect": true
325
- },
326
- "language": {
327
- "type": "string",
328
- "mutable": false,
329
- "complexType": {
330
- "original": "string",
331
- "resolved": "string",
332
- "references": {}
333
- },
334
- "required": false,
335
- "optional": false,
336
- "docs": {
337
- "tags": [],
338
- "text": "Currently selected language."
339
- },
340
- "attribute": "language",
341
- "reflect": true
342
- },
343
- "emitValue": {
344
- "type": "boolean",
345
- "mutable": false,
346
- "complexType": {
347
- "original": "boolean",
348
- "resolved": "boolean",
349
- "references": {}
350
- },
351
- "required": false,
352
- "optional": false,
353
- "docs": {
354
- "tags": [],
355
- "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
356
- },
357
- "attribute": "emit-value",
358
- "reflect": true
359
- },
360
- "clientStyling": {
361
- "type": "string",
362
- "mutable": false,
363
- "complexType": {
364
- "original": "string",
365
- "resolved": "string",
366
- "references": {}
367
- },
368
- "required": false,
369
- "optional": false,
370
- "docs": {
371
- "tags": [],
372
- "text": "Client custom styling via inline style"
373
- },
374
- "attribute": "client-styling",
375
- "reflect": true,
376
- "defaultValue": "''"
377
- }
378
- }; }
379
- static get states() { return {
380
- "isValid": {},
381
- "errorMessage": {},
382
- "limitStylingAppends": {},
383
- "showTooltip": {}
384
- }; }
385
- static get events() { return [{
386
- "method": "sendValidityState",
387
- "name": "sendValidityState",
388
- "bubbles": true,
389
- "cancelable": true,
390
- "composed": true,
391
- "docs": {
392
- "tags": [],
393
- "text": ""
394
- },
395
- "complexType": {
396
- "original": "InputStateEvent",
397
- "resolved": "InputStateEvent",
398
- "references": {
399
- "InputStateEvent": {
400
- "location": "import",
401
- "path": "../../utils/types"
402
- }
403
- }
404
- }
405
- }, {
406
- "method": "sendInputValue",
407
- "name": "sendInputValue",
408
- "bubbles": true,
409
- "cancelable": true,
410
- "composed": true,
411
- "docs": {
412
- "tags": [],
413
- "text": ""
414
- },
415
- "complexType": {
416
- "original": "InputValueEvent",
417
- "resolved": "InputValueEvent",
418
- "references": {
419
- "InputValueEvent": {
420
- "location": "import",
421
- "path": "../../utils/types"
422
- }
423
- }
424
- }
425
- }]; }
426
- static get watchers() { return [{
427
- "propName": "isValid",
428
- "methodName": "validityChanged"
429
- }, {
430
- "propName": "emitValue",
431
- "methodName": "emitValueHandler"
432
- }]; }
433
- static get listeners() { return [{
434
- "name": "click",
435
- "method": "handleClickOutside",
436
- "target": "document",
437
- "capture": false,
438
- "passive": false
439
- }]; }
440
- }
@@ -1,98 +0,0 @@
1
- *,
2
- *::before,
3
- *::after {
4
- padding: 0;
5
- margin: 0;
6
- box-sizing: border-box;
7
- }
8
-
9
- .text {
10
- font-family: "Roboto";
11
- font-style: normal;
12
- }
13
- .text__wrapper {
14
- position: relative;
15
- width: 100%;
16
- display: flex;
17
- flex-direction: column;
18
- gap: 5px;
19
- height: 100%;
20
- }
21
- .text__wrapper--autofilled {
22
- pointer-events: none;
23
- }
24
- .text__wrapper--autofilled .text__label {
25
- color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
26
- }
27
- .text__wrapper--autofilled .text__input::part(input-field) {
28
- color: var(--emfe-w-color-black, #000000);
29
- }
30
- .text__wrapper--flex {
31
- display: flex;
32
- gap: 5px;
33
- }
34
- .text__wrapper--relative {
35
- position: relative;
36
- }
37
- .text__label {
38
- font-family: inherit;
39
- font-style: normal;
40
- font-weight: 500;
41
- font-size: 16px;
42
- line-height: 20px;
43
- color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
44
- }
45
- .text__label--required::after {
46
- content: "*";
47
- font-family: inherit;
48
- color: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
49
- margin-left: 2px;
50
- }
51
- .text__input {
52
- font-family: inherit;
53
- width: 100%;
54
- height: 44px;
55
- border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
56
- background-color: var(--emfe-w-color-white, #FFFFFF);
57
- color: var(--emfe-w-color-black, #000000);
58
- border-radius: 5px;
59
- font-size: 16px;
60
- font-weight: 300;
61
- line-height: 1.5;
62
- padding: 5px 15px;
63
- }
64
- .text__input:focus {
65
- border: 1px solid var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
66
- }
67
- .text__input--invalid {
68
- border: 1px solid var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
69
- }
70
- .text__input::placeholder {
71
- color: var(--emfe-w-color-gray-150, #828282);
72
- }
73
- .text__error-message {
74
- position: absolute;
75
- top: calc(100% + 5px);
76
- left: 0;
77
- color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
78
- }
79
- .text__tooltip-icon {
80
- width: 16px;
81
- height: auto;
82
- }
83
- .text__tooltip {
84
- position: absolute;
85
- top: 0;
86
- left: 20px;
87
- background-color: var(--emfe-w-color-white, #FFFFFF);
88
- border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
89
- color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
90
- padding: 10px;
91
- border-radius: 5px;
92
- opacity: 0;
93
- transition: opacity 0.3s ease-in-out;
94
- z-index: 10;
95
- }
96
- .text__tooltip.visible {
97
- opacity: 1;
98
- }