@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,421 @@
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.setClientStyling = () => {
15
+ let sheet = document.createElement('style');
16
+ sheet.innerHTML = this.clientStyling;
17
+ this.stylingContainer.prepend(sheet);
18
+ };
19
+ }
20
+ validityChanged() {
21
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
22
+ if (this.emitValue == true) {
23
+ this.valueHandler({ name: this.name, value: this.value });
24
+ }
25
+ }
26
+ validityStateHandler(inputStateEvent) {
27
+ this.sendValidityState.emit(inputStateEvent);
28
+ }
29
+ emitValueHandler(newValue) {
30
+ if (newValue == true && this.isValid) {
31
+ this.valueHandler({ name: this.name, value: this.value });
32
+ }
33
+ }
34
+ valueHandler(inputValueEvent) {
35
+ this.sendInputValue.emit(inputValueEvent);
36
+ }
37
+ handleClickOutside(event) {
38
+ if (event.composedPath()[0] === this.tooltipIconReference)
39
+ return;
40
+ if (event.composedPath()[0] !== this.tooltipReference)
41
+ this.showTooltip = false;
42
+ }
43
+ connectedCallback() {
44
+ this.validationPattern = this.setPattern();
45
+ if (this.defaultValue) {
46
+ this.prefixValue = this.defaultValue.split('|')[0];
47
+ this.phoneValue = this.defaultValue.split('|')[1];
48
+ }
49
+ }
50
+ componentWillLoad() {
51
+ if (this.action) {
52
+ if (this.action.split(" ")[0] == 'GET') {
53
+ return this.getPhoneCodes().then((options) => {
54
+ this.phoneCodesOptions = options.phoneCodes.map(code => {
55
+ return { label: code.Prefix, value: code.Prefix };
56
+ });
57
+ });
58
+ }
59
+ }
60
+ }
61
+ componentDidRender() {
62
+ // start custom styling area
63
+ if (!this.limitStylingAppends && this.stylingContainer) {
64
+ if (this.clientStyling)
65
+ this.setClientStyling();
66
+ this.limitStylingAppends = true;
67
+ }
68
+ // end custom styling area
69
+ if (this.defaultValue) {
70
+ this.value = `${this.prefixValue}|${this.phoneValue}`;
71
+ this.valueHandler({ name: this.name, value: this.value });
72
+ }
73
+ }
74
+ getPhoneCodes() {
75
+ // TEMPORARY FOR DEMO PURPOSES UNTIL NORWAY CONFIGURES AN ACTUAL ENDPOINT...
76
+ const url = new URL("https://demo-api.stage.norway.everymatrix.com/v1/player/phonecodes");
77
+ return new Promise((resolve, reject) => {
78
+ fetch(url.href)
79
+ .then((res) => res.json())
80
+ .then((options) => {
81
+ resolve(options);
82
+ }).catch((err) => {
83
+ console.error(err);
84
+ reject(err);
85
+ });
86
+ });
87
+ }
88
+ handleInput(event) {
89
+ this.phoneValue = event.target.value;
90
+ this.value = `${this.prefixValue}|${this.phoneValue}`;
91
+ this.errorMessage = this.setErrorMessage();
92
+ this.isValid = this.setValidity();
93
+ this.validityStateHandler({ valid: this.isValid, name: this.name });
94
+ this.emitValueHandler(true);
95
+ }
96
+ handlePrefixInput(event) {
97
+ this.prefixValue = event.target.value;
98
+ this.value = `${this.prefixValue}|${this.phoneValue}`;
99
+ this.emitValueHandler(true);
100
+ }
101
+ setValidity() {
102
+ return this.inputReference.validity.valid;
103
+ }
104
+ setPattern() {
105
+ var _a, _b;
106
+ if (((_a = this.validation.custom) === null || _a === void 0 ? void 0 : _a.length) > 0) {
107
+ return (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.pattern;
108
+ }
109
+ }
110
+ setErrorMessage() {
111
+ var _a;
112
+ if (this.inputReference.validity.patternMismatch) {
113
+ return (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorMessage;
114
+ }
115
+ if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
116
+ return translate('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
117
+ }
118
+ if (this.inputReference.validity.valueMissing) {
119
+ return translate('requiredError', this.language);
120
+ }
121
+ }
122
+ renderTooltip() {
123
+ if (this.showTooltip) {
124
+ return (h("div", { class: `tel__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
125
+ }
126
+ return null;
127
+ }
128
+ render() {
129
+ const invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'tel__wrapper--flex--invalid';
130
+ return h("div", { class: 'tel__wrapper', ref: el => this.stylingContainer = el },
131
+ h("div", { class: 'tel__wrapper--flex-label' },
132
+ h("label", { class: `tel__label ${this.validation.mandatory ? 'tel__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName),
133
+ h("div", { class: 'tel__wrapper--relative' },
134
+ this.tooltip &&
135
+ h("img", { class: 'tel__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
136
+ this.renderTooltip())),
137
+ h("div", { class: `tel__wrapper--flex ${invalidClass}` },
138
+ h("vaadin-combo-box", { class: 'tel__prefix', items: this.phoneCodesOptions, value: this.prefixValue, readOnly: this.autofilled, onChange: (e) => this.handlePrefixInput(e) }),
139
+ 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} ${this.placeholder && this.validation.mandatory ? '*' : ''}`, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, pattern: this.validationPattern, onBlur: (e) => this.handleInput(e) })),
140
+ h("small", { class: 'tel__error-message' }, this.errorMessage));
141
+ }
142
+ static get is() { return "tel-input"; }
143
+ static get encapsulation() { return "shadow"; }
144
+ static get originalStyleUrls() { return {
145
+ "$": ["tel-input.scss"]
146
+ }; }
147
+ static get styleUrls() { return {
148
+ "$": ["tel-input.css"]
149
+ }; }
150
+ static get properties() { return {
151
+ "name": {
152
+ "type": "string",
153
+ "mutable": false,
154
+ "complexType": {
155
+ "original": "string",
156
+ "resolved": "string",
157
+ "references": {}
158
+ },
159
+ "required": false,
160
+ "optional": false,
161
+ "docs": {
162
+ "tags": [],
163
+ "text": "Name of the input."
164
+ },
165
+ "attribute": "name",
166
+ "reflect": true
167
+ },
168
+ "displayName": {
169
+ "type": "string",
170
+ "mutable": false,
171
+ "complexType": {
172
+ "original": "string",
173
+ "resolved": "string",
174
+ "references": {}
175
+ },
176
+ "required": false,
177
+ "optional": false,
178
+ "docs": {
179
+ "tags": [],
180
+ "text": "Name of input to be shown to the user."
181
+ },
182
+ "attribute": "display-name",
183
+ "reflect": true
184
+ },
185
+ "placeholder": {
186
+ "type": "string",
187
+ "mutable": false,
188
+ "complexType": {
189
+ "original": "string",
190
+ "resolved": "string",
191
+ "references": {}
192
+ },
193
+ "required": false,
194
+ "optional": false,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": "Placeholder text to be shown."
198
+ },
199
+ "attribute": "placeholder",
200
+ "reflect": true
201
+ },
202
+ "showLabels": {
203
+ "type": "boolean",
204
+ "mutable": false,
205
+ "complexType": {
206
+ "original": "boolean",
207
+ "resolved": "boolean",
208
+ "references": {}
209
+ },
210
+ "required": false,
211
+ "optional": false,
212
+ "docs": {
213
+ "tags": [],
214
+ "text": "Boolean that defines if the widget show labels or placeholders."
215
+ },
216
+ "attribute": "show-labels",
217
+ "reflect": true
218
+ },
219
+ "action": {
220
+ "type": "string",
221
+ "mutable": false,
222
+ "complexType": {
223
+ "original": "string",
224
+ "resolved": "string",
225
+ "references": {}
226
+ },
227
+ "required": false,
228
+ "optional": false,
229
+ "docs": {
230
+ "tags": [],
231
+ "text": "Special behaviour an input should have. Can be fetching for data."
232
+ },
233
+ "attribute": "action",
234
+ "reflect": true
235
+ },
236
+ "validation": {
237
+ "type": "unknown",
238
+ "mutable": false,
239
+ "complexType": {
240
+ "original": "ValidationSchema",
241
+ "resolved": "ValidationSchema",
242
+ "references": {
243
+ "ValidationSchema": {
244
+ "location": "import",
245
+ "path": "../../utils/types"
246
+ }
247
+ }
248
+ },
249
+ "required": false,
250
+ "optional": false,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": "Object of validation rules for the input."
254
+ }
255
+ },
256
+ "defaultValue": {
257
+ "type": "string",
258
+ "mutable": false,
259
+ "complexType": {
260
+ "original": "string",
261
+ "resolved": "string",
262
+ "references": {}
263
+ },
264
+ "required": false,
265
+ "optional": false,
266
+ "docs": {
267
+ "tags": [],
268
+ "text": "Default value for the input."
269
+ },
270
+ "attribute": "default-value",
271
+ "reflect": true
272
+ },
273
+ "autofilled": {
274
+ "type": "boolean",
275
+ "mutable": false,
276
+ "complexType": {
277
+ "original": "boolean",
278
+ "resolved": "boolean",
279
+ "references": {}
280
+ },
281
+ "required": false,
282
+ "optional": false,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": "Boolean. Determines if input should be readonly."
286
+ },
287
+ "attribute": "autofilled",
288
+ "reflect": true
289
+ },
290
+ "tooltip": {
291
+ "type": "string",
292
+ "mutable": false,
293
+ "complexType": {
294
+ "original": "string",
295
+ "resolved": "string",
296
+ "references": {}
297
+ },
298
+ "required": false,
299
+ "optional": false,
300
+ "docs": {
301
+ "tags": [],
302
+ "text": "Tooltip text."
303
+ },
304
+ "attribute": "tooltip",
305
+ "reflect": true
306
+ },
307
+ "language": {
308
+ "type": "string",
309
+ "mutable": false,
310
+ "complexType": {
311
+ "original": "string",
312
+ "resolved": "string",
313
+ "references": {}
314
+ },
315
+ "required": false,
316
+ "optional": false,
317
+ "docs": {
318
+ "tags": [],
319
+ "text": "Currently selected language."
320
+ },
321
+ "attribute": "language",
322
+ "reflect": true
323
+ },
324
+ "emitValue": {
325
+ "type": "boolean",
326
+ "mutable": false,
327
+ "complexType": {
328
+ "original": "boolean",
329
+ "resolved": "boolean",
330
+ "references": {}
331
+ },
332
+ "required": false,
333
+ "optional": false,
334
+ "docs": {
335
+ "tags": [],
336
+ "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
337
+ },
338
+ "attribute": "emit-value",
339
+ "reflect": true
340
+ },
341
+ "clientStyling": {
342
+ "type": "string",
343
+ "mutable": false,
344
+ "complexType": {
345
+ "original": "string",
346
+ "resolved": "string",
347
+ "references": {}
348
+ },
349
+ "required": false,
350
+ "optional": false,
351
+ "docs": {
352
+ "tags": [],
353
+ "text": "Client custom styling via inline style"
354
+ },
355
+ "attribute": "client-styling",
356
+ "reflect": true,
357
+ "defaultValue": "''"
358
+ }
359
+ }; }
360
+ static get states() { return {
361
+ "isValid": {},
362
+ "errorMessage": {},
363
+ "limitStylingAppends": {},
364
+ "showTooltip": {}
365
+ }; }
366
+ static get events() { return [{
367
+ "method": "sendValidityState",
368
+ "name": "sendValidityState",
369
+ "bubbles": true,
370
+ "cancelable": true,
371
+ "composed": true,
372
+ "docs": {
373
+ "tags": [],
374
+ "text": ""
375
+ },
376
+ "complexType": {
377
+ "original": "InputStateEvent",
378
+ "resolved": "InputStateEvent",
379
+ "references": {
380
+ "InputStateEvent": {
381
+ "location": "import",
382
+ "path": "../../utils/types"
383
+ }
384
+ }
385
+ }
386
+ }, {
387
+ "method": "sendInputValue",
388
+ "name": "sendInputValue",
389
+ "bubbles": true,
390
+ "cancelable": true,
391
+ "composed": true,
392
+ "docs": {
393
+ "tags": [],
394
+ "text": ""
395
+ },
396
+ "complexType": {
397
+ "original": "InputValueEvent",
398
+ "resolved": "InputValueEvent",
399
+ "references": {
400
+ "InputValueEvent": {
401
+ "location": "import",
402
+ "path": "../../utils/types"
403
+ }
404
+ }
405
+ }
406
+ }]; }
407
+ static get watchers() { return [{
408
+ "propName": "isValid",
409
+ "methodName": "validityChanged"
410
+ }, {
411
+ "propName": "emitValue",
412
+ "methodName": "emitValueHandler"
413
+ }]; }
414
+ static get listeners() { return [{
415
+ "name": "click",
416
+ "method": "handleClickOutside",
417
+ "target": "document",
418
+ "capture": false,
419
+ "passive": false
420
+ }]; }
421
+ }
@@ -0,0 +1,83 @@
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
+ }
17
+ .text__wrapper--flex {
18
+ display: flex;
19
+ gap: 5px;
20
+ }
21
+ .text__wrapper--relative {
22
+ position: relative;
23
+ }
24
+ .text__label {
25
+ font-family: inherit;
26
+ font-style: normal;
27
+ font-weight: 500;
28
+ font-size: 16px;
29
+ line-height: 20px;
30
+ color: #1F1F1F;
31
+ }
32
+ .text__label--required::after {
33
+ content: "*";
34
+ font-family: inherit;
35
+ color: #1F1F1F;
36
+ margin-left: 2px;
37
+ }
38
+ .text__input {
39
+ border-radius: 4px;
40
+ background-color: transparent;
41
+ font-family: inherit;
42
+ font-style: normal;
43
+ font-weight: 300;
44
+ font-size: 16px;
45
+ line-height: 19px;
46
+ color: #2A2E3F;
47
+ padding: 8px 20px;
48
+ width: inherit;
49
+ position: relative;
50
+ border: 2px solid #DEE1EE;
51
+ }
52
+ .text__input:focus {
53
+ outline-color: #3E3E3E;
54
+ }
55
+ .text__input--invalid {
56
+ border: 2px solid #cc0000b3;
57
+ }
58
+ .text__error-message {
59
+ position: absolute;
60
+ top: calc(100% + 5px);
61
+ left: 0;
62
+ color: #cc0000b3;
63
+ }
64
+ .text__tooltip-icon {
65
+ width: 16px;
66
+ height: auto;
67
+ }
68
+ .text__tooltip {
69
+ position: absolute;
70
+ top: 0;
71
+ left: 20px;
72
+ background-color: #FFFFFF;
73
+ border: 1px solid #B0B0B0;
74
+ color: #2B2D3F;
75
+ padding: 10px;
76
+ border-radius: 5px;
77
+ opacity: 0;
78
+ transition: opacity 0.3s ease-in-out;
79
+ z-index: 10;
80
+ }
81
+ .text__tooltip.visible {
82
+ opacity: 1;
83
+ }