@everymatrix/general-input 0.0.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 (121) hide show
  1. package/dist/cjs/checkbox-group-input_10.cjs.entry.js +34870 -0
  2. package/dist/cjs/general-input.cjs.entry.js +51 -0
  3. package/dist/cjs/general-input.cjs.js +19 -0
  4. package/dist/cjs/index-1768513d.js +1286 -0
  5. package/dist/cjs/index.cjs.js +2 -0
  6. package/dist/cjs/loader.cjs.js +21 -0
  7. package/dist/collection/collection-manifest.json +22 -0
  8. package/dist/collection/components/checkbox-group-input/checkbox-group-input.css +62 -0
  9. package/dist/collection/components/checkbox-group-input/checkbox-group-input.js +344 -0
  10. package/dist/collection/components/checkbox-input/checkbox-input.css +62 -0
  11. package/dist/collection/components/checkbox-input/checkbox-input.js +322 -0
  12. package/dist/collection/components/date-input/date-input.css +85 -0
  13. package/dist/collection/components/date-input/date-input.js +341 -0
  14. package/dist/collection/components/email-input/email-input.css +83 -0
  15. package/dist/collection/components/email-input/email-input.js +382 -0
  16. package/dist/collection/components/general-input/general-input.css +3 -0
  17. package/dist/collection/components/general-input/general-input.js +296 -0
  18. package/dist/collection/components/number-input/number-input.css +90 -0
  19. package/dist/collection/components/number-input/number-input.js +349 -0
  20. package/dist/collection/components/password-input/password-input.css +86 -0
  21. package/dist/collection/components/password-input/password-input.js +395 -0
  22. package/dist/collection/components/radio-input/radio-input.css +43 -0
  23. package/dist/collection/components/radio-input/radio-input.js +298 -0
  24. package/dist/collection/components/select-input/select-input.css +93 -0
  25. package/dist/collection/components/select-input/select-input.js +412 -0
  26. package/dist/collection/components/tel-input/tel-input.css +116 -0
  27. package/dist/collection/components/tel-input/tel-input.js +421 -0
  28. package/dist/collection/components/text-input/text-input.css +83 -0
  29. package/dist/collection/components/text-input/text-input.js +406 -0
  30. package/dist/collection/index.js +1 -0
  31. package/dist/collection/utils/locale.utils.js +26 -0
  32. package/dist/collection/utils/tooltipIcon.svg +5 -0
  33. package/dist/collection/utils/types.js +1 -0
  34. package/dist/collection/utils/utils.js +5 -0
  35. package/dist/components/active-mixin.js +975 -0
  36. package/dist/components/checkbox-group-input.d.ts +11 -0
  37. package/dist/components/checkbox-group-input.js +6 -0
  38. package/dist/components/checkbox-group-input2.js +5793 -0
  39. package/dist/components/checkbox-input.d.ts +11 -0
  40. package/dist/components/checkbox-input.js +6 -0
  41. package/dist/components/checkbox-input2.js +127 -0
  42. package/dist/components/date-input.d.ts +11 -0
  43. package/dist/components/date-input.js +6 -0
  44. package/dist/components/date-input2.js +5182 -0
  45. package/dist/components/email-input.d.ts +11 -0
  46. package/dist/components/email-input.js +6 -0
  47. package/dist/components/email-input2.js +150 -0
  48. package/dist/components/field-mixin.js +12712 -0
  49. package/dist/components/general-input.d.ts +11 -0
  50. package/dist/components/general-input.js +140 -0
  51. package/dist/components/index.d.ts +26 -0
  52. package/dist/components/index.js +1 -0
  53. package/dist/components/input-field-shared-styles.js +1067 -0
  54. package/dist/components/number-input.d.ts +11 -0
  55. package/dist/components/number-input.js +6 -0
  56. package/dist/components/number-input2.js +139 -0
  57. package/dist/components/password-input.d.ts +11 -0
  58. package/dist/components/password-input.js +6 -0
  59. package/dist/components/password-input2.js +879 -0
  60. package/dist/components/pattern-mixin.js +85 -0
  61. package/dist/components/radio-input.d.ts +11 -0
  62. package/dist/components/radio-input.js +6 -0
  63. package/dist/components/radio-input2.js +115 -0
  64. package/dist/components/select-input.d.ts +11 -0
  65. package/dist/components/select-input.js +6 -0
  66. package/dist/components/select-input2.js +166 -0
  67. package/dist/components/tel-input.d.ts +11 -0
  68. package/dist/components/tel-input.js +6 -0
  69. package/dist/components/tel-input2.js +178 -0
  70. package/dist/components/text-input.d.ts +11 -0
  71. package/dist/components/text-input.js +6 -0
  72. package/dist/components/text-input2.js +157 -0
  73. package/dist/components/tooltipIcon.js +30 -0
  74. package/dist/components/vaadin-button.js +461 -0
  75. package/dist/components/vaadin-combo-box.js +4329 -0
  76. package/dist/components/virtual-keyboard-controller.js +2693 -0
  77. package/dist/esm/checkbox-group-input_10.entry.js +34857 -0
  78. package/dist/esm/general-input.entry.js +47 -0
  79. package/dist/esm/general-input.js +17 -0
  80. package/dist/esm/index-7e24a6f1.js +1259 -0
  81. package/dist/esm/index.js +1 -0
  82. package/dist/esm/loader.js +17 -0
  83. package/dist/esm/polyfills/core-js.js +11 -0
  84. package/dist/esm/polyfills/css-shim.js +1 -0
  85. package/dist/esm/polyfills/dom.js +79 -0
  86. package/dist/esm/polyfills/es5-html-element.js +1 -0
  87. package/dist/esm/polyfills/index.js +34 -0
  88. package/dist/esm/polyfills/system.js +6 -0
  89. package/dist/general-input/general-input.esm.js +1 -0
  90. package/dist/general-input/index.esm.js +0 -0
  91. package/dist/general-input/p-61d76ec3.entry.js +1 -0
  92. package/dist/general-input/p-a79eb0a3.entry.js +4413 -0
  93. package/dist/general-input/p-fb647820.js +1 -0
  94. package/dist/index.cjs.js +1 -0
  95. package/dist/index.js +1 -0
  96. package/dist/stencil.config.js +22 -0
  97. package/dist/types/Users/adrian.pripon/Documents/Work/stencil/widgets-stencil/packages/general-input/.stencil/packages/general-input/stencil.config.d.ts +2 -0
  98. package/dist/types/components/checkbox-group-input/checkbox-group-input.d.ts +72 -0
  99. package/dist/types/components/checkbox-input/checkbox-input.d.ts +64 -0
  100. package/dist/types/components/date-input/date-input.d.ts +70 -0
  101. package/dist/types/components/email-input/email-input.d.ts +77 -0
  102. package/dist/types/components/general-input/general-input.d.ts +60 -0
  103. package/dist/types/components/number-input/number-input.d.ts +70 -0
  104. package/dist/types/components/password-input/password-input.d.ts +79 -0
  105. package/dist/types/components/radio-input/radio-input.d.ts +59 -0
  106. package/dist/types/components/select-input/select-input.d.ts +82 -0
  107. package/dist/types/components/tel-input/tel-input.d.ts +85 -0
  108. package/dist/types/components/text-input/text-input.d.ts +81 -0
  109. package/dist/types/components.d.ts +1140 -0
  110. package/dist/types/index.d.ts +1 -0
  111. package/dist/types/stencil-public-runtime.d.ts +1565 -0
  112. package/dist/types/utils/locale.utils.d.ts +5 -0
  113. package/dist/types/utils/types.d.ts +76 -0
  114. package/dist/types/utils/utils.d.ts +1 -0
  115. package/loader/cdn.js +3 -0
  116. package/loader/index.cjs.js +3 -0
  117. package/loader/index.d.ts +12 -0
  118. package/loader/index.es2017.js +3 -0
  119. package/loader/index.js +4 -0
  120. package/loader/package.json +10 -0
  121. package/package.json +26 -0
@@ -0,0 +1,412 @@
1
+ import { Component, h, Prop, State, Watch, Event, Element, 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 SelectInput {
6
+ constructor() {
7
+ /**
8
+ * Default value for the input.
9
+ */
10
+ this.defaultValue = '';
11
+ /**
12
+ * Options of the input.
13
+ */
14
+ this.options = [];
15
+ /**
16
+ * Client custom styling via inline style
17
+ */
18
+ this.clientStyling = '';
19
+ this.limitStylingAppends = false;
20
+ this.showTooltip = false;
21
+ this.setClientStyling = () => {
22
+ let sheet = document.createElement('style');
23
+ sheet.innerHTML = this.clientStyling;
24
+ this.stylingContainer.prepend(sheet);
25
+ };
26
+ }
27
+ validityChanged() {
28
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
29
+ if (this.emitValue == true) {
30
+ this.valueHandler({ name: this.name, value: this.value });
31
+ }
32
+ }
33
+ validityStateHandler(inputStateEvent) {
34
+ this.sendValidityState.emit(inputStateEvent);
35
+ }
36
+ emitValueHandler(newValue) {
37
+ if (newValue == true && this.isValid) {
38
+ this.valueHandler({ name: this.name, value: this.value });
39
+ }
40
+ }
41
+ valueHandler(inputValueEvent) {
42
+ this.sendInputValue.emit(inputValueEvent);
43
+ }
44
+ handleClickOutside(event) {
45
+ if (event.composedPath()[0] === this.tooltipIconReference)
46
+ return;
47
+ if (event.composedPath()[0] !== this.tooltipReference)
48
+ this.showTooltip = false;
49
+ }
50
+ connectedCallback() {
51
+ this.displayedOptions = this.options;
52
+ }
53
+ componentWillLoad() {
54
+ if (this.action && !this.options.length) {
55
+ if (this.action.split(" ")[0] == 'GET') {
56
+ return this.getOptions().then((options) => {
57
+ this.displayedOptions = options.countries.map(option => {
58
+ return { label: option.Name, value: option.Alpha2Code };
59
+ });
60
+ });
61
+ }
62
+ }
63
+ }
64
+ componentDidRender() {
65
+ // start custom styling area
66
+ if (!this.limitStylingAppends && this.stylingContainer) {
67
+ if (this.clientStyling)
68
+ this.setClientStyling();
69
+ this.limitStylingAppends = true;
70
+ }
71
+ // end custom styling area
72
+ }
73
+ componentDidLoad() {
74
+ this.inputReference = this.element.shadowRoot.querySelector('input');
75
+ if (this.defaultValue) {
76
+ this.value = this.defaultValue;
77
+ this.valueHandler({ name: this.name, value: this.value });
78
+ }
79
+ }
80
+ getOptions() {
81
+ // TEMPORARY FOR DEMO PURPOSES UNTIL NORWAY CONFIGURES AN ACTUAL ENDPOINT...
82
+ const url = new URL("https://demo-api.stage.norway.everymatrix.com/v1/player/countries");
83
+ return new Promise((resolve, reject) => {
84
+ fetch(url.href)
85
+ .then((res) => res.json())
86
+ .then((options) => {
87
+ resolve(options);
88
+ }).catch((err) => {
89
+ console.error(err);
90
+ reject(err);
91
+ });
92
+ });
93
+ }
94
+ handleChange(event) {
95
+ this.value = event.target.value;
96
+ this.errorMessage = this.setErrorMessage();
97
+ this.isValid = this.setValidity();
98
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
99
+ this.emitValueHandler(true);
100
+ }
101
+ setValidity() {
102
+ return this.inputReference.validity.valid;
103
+ }
104
+ setErrorMessage() {
105
+ if (this.inputReference.validity.valueMissing) {
106
+ return translate('requiredError', this.language);
107
+ }
108
+ }
109
+ renderTooltip() {
110
+ if (this.showTooltip) {
111
+ return (h("div", { class: `select__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
112
+ }
113
+ return null;
114
+ }
115
+ render() {
116
+ const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'select__input--invalid';
117
+ return h("div", { class: 'select__wrapper', ref: el => this.stylingContainer = el },
118
+ h("div", { class: 'select__wrapper--flex' },
119
+ h("label", { class: 'select__label', htmlFor: `${this.name}__input` }, `${this.displayName} ${this.validation.mandatory ? '*' : ''}`),
120
+ h("div", { class: 'select__wrapper--relative' },
121
+ this.tooltip &&
122
+ h("img", { class: 'select__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
123
+ this.renderTooltip())),
124
+ h("vaadin-combo-box", { name: this.name, id: `${this.name}__input`, class: `select__input ${invalidClass}`, "item-label-path": "label", "item-value-path": "value", readOnly: this.autofilled, required: this.validation.mandatory, value: this.defaultValue, placeholder: `${this.placeholder} ${this.placeholder && this.validation.mandatory ? '*' : ''}`, items: this.displayedOptions, onChange: (e) => this.handleChange(e) }),
125
+ h("small", { class: 'select__error-message' }, this.errorMessage));
126
+ }
127
+ static get is() { return "select-input"; }
128
+ static get encapsulation() { return "shadow"; }
129
+ static get originalStyleUrls() { return {
130
+ "$": ["select-input.scss"]
131
+ }; }
132
+ static get styleUrls() { return {
133
+ "$": ["select-input.css"]
134
+ }; }
135
+ static get properties() { return {
136
+ "name": {
137
+ "type": "string",
138
+ "mutable": false,
139
+ "complexType": {
140
+ "original": "string",
141
+ "resolved": "string",
142
+ "references": {}
143
+ },
144
+ "required": false,
145
+ "optional": false,
146
+ "docs": {
147
+ "tags": [],
148
+ "text": "Name of the input."
149
+ },
150
+ "attribute": "name",
151
+ "reflect": true
152
+ },
153
+ "displayName": {
154
+ "type": "string",
155
+ "mutable": false,
156
+ "complexType": {
157
+ "original": "string",
158
+ "resolved": "string",
159
+ "references": {}
160
+ },
161
+ "required": false,
162
+ "optional": false,
163
+ "docs": {
164
+ "tags": [],
165
+ "text": "Name of input to be shown to the user."
166
+ },
167
+ "attribute": "display-name",
168
+ "reflect": true
169
+ },
170
+ "placeholder": {
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": "Placeholder text to be shown."
183
+ },
184
+ "attribute": "placeholder",
185
+ "reflect": true
186
+ },
187
+ "action": {
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": "Special behaviour an input should have. Can be fetching for data."
200
+ },
201
+ "attribute": "action",
202
+ "reflect": true
203
+ },
204
+ "defaultValue": {
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": "Default value for the input."
217
+ },
218
+ "attribute": "default-value",
219
+ "reflect": true,
220
+ "defaultValue": "''"
221
+ },
222
+ "autofilled": {
223
+ "type": "boolean",
224
+ "mutable": false,
225
+ "complexType": {
226
+ "original": "boolean",
227
+ "resolved": "boolean",
228
+ "references": {}
229
+ },
230
+ "required": false,
231
+ "optional": false,
232
+ "docs": {
233
+ "tags": [],
234
+ "text": "Boolean. Determines if input should be readonly."
235
+ },
236
+ "attribute": "autofilled",
237
+ "reflect": true
238
+ },
239
+ "tooltip": {
240
+ "type": "string",
241
+ "mutable": false,
242
+ "complexType": {
243
+ "original": "string",
244
+ "resolved": "string",
245
+ "references": {}
246
+ },
247
+ "required": false,
248
+ "optional": false,
249
+ "docs": {
250
+ "tags": [],
251
+ "text": "Tooltip text."
252
+ },
253
+ "attribute": "tooltip",
254
+ "reflect": true
255
+ },
256
+ "options": {
257
+ "type": "unknown",
258
+ "mutable": false,
259
+ "complexType": {
260
+ "original": "Option[]",
261
+ "resolved": "Option[]",
262
+ "references": {
263
+ "Option": {
264
+ "location": "import",
265
+ "path": "../../utils/types"
266
+ }
267
+ }
268
+ },
269
+ "required": false,
270
+ "optional": false,
271
+ "docs": {
272
+ "tags": [],
273
+ "text": "Options of the input."
274
+ },
275
+ "defaultValue": "[]"
276
+ },
277
+ "validation": {
278
+ "type": "unknown",
279
+ "mutable": false,
280
+ "complexType": {
281
+ "original": "ValidationSchema",
282
+ "resolved": "ValidationSchema",
283
+ "references": {
284
+ "ValidationSchema": {
285
+ "location": "import",
286
+ "path": "../../utils/types"
287
+ }
288
+ }
289
+ },
290
+ "required": false,
291
+ "optional": false,
292
+ "docs": {
293
+ "tags": [],
294
+ "text": "Object of validation rules for the input."
295
+ }
296
+ },
297
+ "language": {
298
+ "type": "string",
299
+ "mutable": false,
300
+ "complexType": {
301
+ "original": "string",
302
+ "resolved": "string",
303
+ "references": {}
304
+ },
305
+ "required": false,
306
+ "optional": false,
307
+ "docs": {
308
+ "tags": [],
309
+ "text": "Currently selected language."
310
+ },
311
+ "attribute": "language",
312
+ "reflect": true
313
+ },
314
+ "emitValue": {
315
+ "type": "boolean",
316
+ "mutable": false,
317
+ "complexType": {
318
+ "original": "boolean",
319
+ "resolved": "boolean",
320
+ "references": {}
321
+ },
322
+ "required": false,
323
+ "optional": false,
324
+ "docs": {
325
+ "tags": [],
326
+ "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
327
+ },
328
+ "attribute": "emit-value",
329
+ "reflect": true
330
+ },
331
+ "clientStyling": {
332
+ "type": "string",
333
+ "mutable": false,
334
+ "complexType": {
335
+ "original": "string",
336
+ "resolved": "string",
337
+ "references": {}
338
+ },
339
+ "required": false,
340
+ "optional": false,
341
+ "docs": {
342
+ "tags": [],
343
+ "text": "Client custom styling via inline style"
344
+ },
345
+ "attribute": "client-styling",
346
+ "reflect": true,
347
+ "defaultValue": "''"
348
+ }
349
+ }; }
350
+ static get states() { return {
351
+ "errorMessage": {},
352
+ "isValid": {},
353
+ "limitStylingAppends": {},
354
+ "showTooltip": {}
355
+ }; }
356
+ static get events() { return [{
357
+ "method": "sendValidityState",
358
+ "name": "sendValidityState",
359
+ "bubbles": true,
360
+ "cancelable": true,
361
+ "composed": true,
362
+ "docs": {
363
+ "tags": [],
364
+ "text": ""
365
+ },
366
+ "complexType": {
367
+ "original": "InputStateEvent",
368
+ "resolved": "InputStateEvent",
369
+ "references": {
370
+ "InputStateEvent": {
371
+ "location": "import",
372
+ "path": "../../utils/types"
373
+ }
374
+ }
375
+ }
376
+ }, {
377
+ "method": "sendInputValue",
378
+ "name": "sendInputValue",
379
+ "bubbles": true,
380
+ "cancelable": true,
381
+ "composed": true,
382
+ "docs": {
383
+ "tags": [],
384
+ "text": ""
385
+ },
386
+ "complexType": {
387
+ "original": "InputValueEvent",
388
+ "resolved": "InputValueEvent",
389
+ "references": {
390
+ "InputValueEvent": {
391
+ "location": "import",
392
+ "path": "../../utils/types"
393
+ }
394
+ }
395
+ }
396
+ }]; }
397
+ static get elementRef() { return "element"; }
398
+ static get watchers() { return [{
399
+ "propName": "isValid",
400
+ "methodName": "validityChanged"
401
+ }, {
402
+ "propName": "emitValue",
403
+ "methodName": "emitValueHandler"
404
+ }]; }
405
+ static get listeners() { return [{
406
+ "name": "click",
407
+ "method": "handleClickOutside",
408
+ "target": "document",
409
+ "capture": false,
410
+ "passive": false
411
+ }]; }
412
+ }
@@ -0,0 +1,116 @@
1
+ *,
2
+ *::before,
3
+ *::after {
4
+ padding: 0;
5
+ margin: 0;
6
+ box-sizing: border-box;
7
+ }
8
+
9
+ .tel {
10
+ font-family: "Roboto";
11
+ font-style: normal;
12
+ }
13
+ .tel__wrapper {
14
+ position: relative;
15
+ width: 100%;
16
+ }
17
+ .tel__wrapper--flex {
18
+ width: inherit;
19
+ display: flex;
20
+ align-items: stretch;
21
+ border-radius: 4px;
22
+ border: 2px solid #DEE1EE;
23
+ }
24
+ .tel__wrapper--flex:focus-within {
25
+ border: 2px solid #3E3E3E;
26
+ }
27
+ .tel__wrapper--flex--invalid {
28
+ border: 2px solid #cc0000b3;
29
+ }
30
+ .tel__wrapper--flex-label {
31
+ display: flex;
32
+ gap: 5px;
33
+ }
34
+ .tel__wrapper--flex--relative {
35
+ position: relative;
36
+ }
37
+ .tel__label {
38
+ font-family: inherit;
39
+ font-style: normal;
40
+ font-weight: 500;
41
+ font-size: 16px;
42
+ line-height: 20px;
43
+ color: #1F1F1F;
44
+ }
45
+ .tel__label--required::after {
46
+ content: "*";
47
+ font-family: inherit;
48
+ color: #1F1F1F;
49
+ margin-left: 2px;
50
+ }
51
+ .tel__prefix {
52
+ width: 120px;
53
+ }
54
+ .tel__prefix[focus] {
55
+ outline: none;
56
+ }
57
+ .tel__prefix::part(input-field) {
58
+ border-radius: 0 4px 4px 0;
59
+ background-color: #DEE1EE;
60
+ color: #1F1F1F;
61
+ font-family: inherit;
62
+ font-style: normal;
63
+ font-weight: 300;
64
+ font-size: 16px;
65
+ line-height: 19px;
66
+ }
67
+ .tel__input {
68
+ border-radius: 4px;
69
+ background-color: transparent;
70
+ font-family: inherit;
71
+ font-style: normal;
72
+ font-weight: 300;
73
+ font-size: 16px;
74
+ line-height: 19px;
75
+ color: #2A2E3F;
76
+ border: none;
77
+ padding: 8px 20px;
78
+ width: inherit;
79
+ position: relative;
80
+ /* Firefox */
81
+ -moz-appearance: textfield;
82
+ /* Chrome, Safari, Edge, Opera */
83
+ }
84
+ .tel__input:focus {
85
+ outline: none;
86
+ }
87
+ .tel__input::-webkit-outer-spin-button, .tel__input::-webkit-inner-spin-button {
88
+ -webkit-appearance: none;
89
+ margin: 0;
90
+ }
91
+ .tel__error-message {
92
+ position: absolute;
93
+ top: calc(100% + 5px);
94
+ left: 0;
95
+ color: #cc0000b3;
96
+ }
97
+ .tel__tooltip-icon {
98
+ width: 16px;
99
+ height: auto;
100
+ }
101
+ .tel__tooltip {
102
+ position: absolute;
103
+ top: 0;
104
+ left: 20px;
105
+ background-color: #FFFFFF;
106
+ border: 1px solid #B0B0B0;
107
+ color: #2B2D3F;
108
+ padding: 10px;
109
+ border-radius: 5px;
110
+ opacity: 0;
111
+ transition: opacity 0.3s ease-in-out;
112
+ z-index: 10;
113
+ }
114
+ .tel__tooltip.visible {
115
+ opacity: 1;
116
+ }