@everymatrix/general-input 1.32.4 → 1.33.1

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/dist/cjs/checkbox-group-input_10.cjs.entry.js +36077 -0
  2. package/dist/cjs/general-input.cjs.entry.js +75 -0
  3. package/dist/cjs/general-input.cjs.js +19 -0
  4. package/dist/cjs/index-132a0774.js +1327 -0
  5. package/dist/cjs/index.cjs.js +18 -0
  6. package/dist/cjs/loader.cjs.js +21 -0
  7. package/dist/cjs/locale.utils-cef1d3b6.js +128 -0
  8. package/dist/cjs/toggle-checkbox-input.cjs.entry.js +85 -0
  9. package/dist/cjs/tooltipIcon-092a795f.js +5 -0
  10. package/dist/collection/collection-manifest.json +23 -0
  11. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +82 -0
  12. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +366 -0
  13. package/dist/collection/components/checkbox-input/checkbox-input.css +68 -0
  14. package/dist/collection/components/checkbox-input/checkbox-input.js +324 -0
  15. package/dist/collection/components/date-input/date-input.css +101 -0
  16. package/dist/collection/components/date-input/date-input.js +396 -0
  17. package/dist/collection/components/email-input/email-input.css +95 -0
  18. package/dist/collection/components/email-input/email-input.js +403 -0
  19. package/dist/collection/components/general-input/general-input.css +4 -0
  20. package/dist/collection/components/general-input/general-input.js +373 -0
  21. package/dist/collection/components/number-input/number-input.css +102 -0
  22. package/dist/collection/components/number-input/number-input.js +368 -0
  23. package/dist/collection/components/password-input/password-input.css +182 -0
  24. package/dist/collection/components/password-input/password-input.js +527 -0
  25. package/dist/collection/components/radio-input/radio-input.css +43 -0
  26. package/dist/collection/components/radio-input/radio-input.js +297 -0
  27. package/dist/collection/components/select-input/select-input.css +122 -0
  28. package/dist/collection/components/select-input/select-input.js +429 -0
  29. package/dist/collection/components/tel-input/tel-input.css +145 -0
  30. package/dist/collection/components/tel-input/tel-input.js +440 -0
  31. package/dist/collection/components/text-input/text-input.css +98 -0
  32. package/dist/collection/components/text-input/text-input.js +448 -0
  33. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.css +82 -0
  34. package/dist/collection/components/toggle-checkbox-input/toggle-checkbox-input.js +324 -0
  35. package/dist/collection/index.js +17 -0
  36. package/dist/collection/utils/locale.utils.js +123 -0
  37. package/dist/collection/utils/tooltipIcon.svg +5 -0
  38. package/dist/collection/utils/types.js +1 -0
  39. package/dist/collection/utils/utils.js +5 -0
  40. package/dist/components/active-mixin.js +975 -0
  41. package/dist/components/checkbox-group-input.d.ts +11 -0
  42. package/dist/components/checkbox-group-input.js +6 -0
  43. package/dist/components/checkbox-group-input2.js +1078 -0
  44. package/dist/components/checkbox-input.d.ts +11 -0
  45. package/dist/components/checkbox-input.js +6 -0
  46. package/dist/components/checkbox-input2.js +129 -0
  47. package/dist/components/date-input.d.ts +11 -0
  48. package/dist/components/date-input.js +6 -0
  49. package/dist/components/date-input2.js +11556 -0
  50. package/dist/components/email-input.d.ts +11 -0
  51. package/dist/components/email-input.js +6 -0
  52. package/dist/components/email-input2.js +171 -0
  53. package/dist/components/field-mixin.js +12426 -0
  54. package/dist/components/general-input.d.ts +11 -0
  55. package/dist/components/general-input.js +6 -0
  56. package/dist/components/general-input2.js +341 -0
  57. package/dist/components/index.d.ts +26 -0
  58. package/dist/components/index.js +18 -0
  59. package/dist/components/input-field-shared-styles.js +1211 -0
  60. package/dist/components/number-input.d.ts +11 -0
  61. package/dist/components/number-input.js +6 -0
  62. package/dist/components/number-input2.js +158 -0
  63. package/dist/components/password-input.d.ts +11 -0
  64. package/dist/components/password-input.js +6 -0
  65. package/dist/components/password-input2.js +1041 -0
  66. package/dist/components/radio-input.d.ts +11 -0
  67. package/dist/components/radio-input.js +6 -0
  68. package/dist/components/radio-input2.js +114 -0
  69. package/dist/components/select-input.d.ts +11 -0
  70. package/dist/components/select-input.js +6 -0
  71. package/dist/components/select-input2.js +183 -0
  72. package/dist/components/tel-input.d.ts +11 -0
  73. package/dist/components/tel-input.js +6 -0
  74. package/dist/components/tel-input2.js +197 -0
  75. package/dist/components/text-input.d.ts +11 -0
  76. package/dist/components/text-input.js +6 -0
  77. package/dist/components/text-input2.js +199 -0
  78. package/dist/components/toggle-checkbox-input.d.ts +11 -0
  79. package/dist/components/toggle-checkbox-input.js +6 -0
  80. package/dist/components/tooltipIcon.js +127 -0
  81. package/dist/components/vaadin-button.js +490 -0
  82. package/dist/components/vaadin-combo-box.js +4512 -0
  83. package/dist/components/virtual-keyboard-controller.js +2001 -0
  84. package/dist/esm/checkbox-group-input_10.entry.js +36064 -0
  85. package/dist/esm/general-input.entry.js +71 -0
  86. package/dist/esm/general-input.js +17 -0
  87. package/dist/esm/index-db76d5b5.js +1299 -0
  88. package/dist/esm/index.js +16 -0
  89. package/dist/esm/loader.js +17 -0
  90. package/dist/esm/locale.utils-de759721.js +125 -0
  91. package/dist/esm/polyfills/core-js.js +11 -0
  92. package/dist/esm/polyfills/css-shim.js +1 -0
  93. package/dist/esm/polyfills/dom.js +79 -0
  94. package/dist/esm/polyfills/es5-html-element.js +1 -0
  95. package/dist/esm/polyfills/index.js +34 -0
  96. package/dist/esm/polyfills/system.js +6 -0
  97. package/dist/esm/toggle-checkbox-input.entry.js +81 -0
  98. package/dist/esm/tooltipIcon-99c1c7b7.js +3 -0
  99. package/dist/general-input/general-input.esm.js +1 -0
  100. package/dist/general-input/index.esm.js +1 -0
  101. package/dist/general-input/p-10efdf3f.js +1 -0
  102. package/dist/general-input/p-613c3e00.entry.js +1 -0
  103. package/dist/general-input/p-660bcdd1.entry.js +1 -0
  104. package/dist/general-input/p-9b6b0396.entry.js +3646 -0
  105. package/dist/general-input/p-b408093e.js +1 -0
  106. package/dist/general-input/p-f4f4ccda.js +1 -0
  107. package/dist/index.cjs.js +1 -0
  108. package/dist/index.js +1 -0
  109. package/dist/stencil.config.js +22 -0
  110. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +2 -0
  111. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +74 -0
  112. package/dist/types/components/checkbox-input/checkbox-input.d.ts +65 -0
  113. package/dist/types/components/date-input/date-input.d.ts +84 -0
  114. package/dist/types/components/email-input/email-input.d.ts +80 -0
  115. package/dist/types/components/general-input/general-input.d.ts +75 -0
  116. package/dist/types/components/number-input/number-input.d.ts +74 -0
  117. package/dist/types/components/password-input/password-input.d.ts +91 -0
  118. package/dist/types/components/radio-input/radio-input.d.ts +59 -0
  119. package/dist/types/components/select-input/select-input.d.ts +83 -0
  120. package/dist/types/components/tel-input/tel-input.d.ts +89 -0
  121. package/dist/types/components/text-input/text-input.d.ts +84 -0
  122. package/dist/types/components/toggle-checkbox-input/toggle-checkbox-input.d.ts +67 -0
  123. package/dist/types/components.d.ts +1268 -0
  124. package/dist/types/index.d.ts +1 -0
  125. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  126. package/dist/types/utils/locale.utils.d.ts +17 -0
  127. package/dist/types/utils/types.d.ts +87 -0
  128. package/dist/types/utils/utils.d.ts +1 -0
  129. package/loader/cdn.js +3 -0
  130. package/loader/index.cjs.js +3 -0
  131. package/loader/index.d.ts +12 -0
  132. package/loader/index.es2017.js +3 -0
  133. package/loader/index.js +4 -0
  134. package/loader/package.json +10 -0
  135. package/package.json +2 -3
  136. package/LICENSE +0 -21
@@ -0,0 +1,440 @@
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
+ }
@@ -0,0 +1,98 @@
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
+ }