@everymatrix/general-input 1.31.1 → 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/sebastian.strulea/Documents/work/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,448 +0,0 @@
1
- import { Component, h, Prop, State, Watch, Event, Listen } from '@stencil/core';
2
- import { translate } from '../../utils/locale.utils';
3
- import tooltipIcon from '../../utils/tooltipIcon.svg';
4
- export class TextInput {
5
- constructor() {
6
- /**
7
- * Default value for the input.
8
- */
9
- this.defaultValue = '';
10
- /**
11
- * Client custom styling via inline style
12
- */
13
- this.clientStyling = '';
14
- this.errorMessage = '';
15
- this.limitStylingAppends = false;
16
- this.showTooltip = false;
17
- this.value = '';
18
- this.validationPattern = '';
19
- this.duplicateInputValue = null;
20
- this.touched = false;
21
- this.handleInput = (event) => {
22
- this.value = event.target.value;
23
- this.touched = true;
24
- if (this.debounceTime) {
25
- clearTimeout(this.debounceTime);
26
- }
27
- this.debounceTime = setTimeout(() => {
28
- this.isValid = this.setValidity();
29
- this.errorMessage = this.setErrorMessage();
30
- this.validityStateHandler({ valid: this.isValid, name: this.name });
31
- this.emitValueHandler(true);
32
- }, 500);
33
- };
34
- this.handleBlur = (event) => {
35
- this.value = event.target.value;
36
- this.touched = true;
37
- this.isValid = this.setValidity();
38
- this.errorMessage = this.setErrorMessage();
39
- this.validityStateHandler({ valid: this.isValid, name: this.name });
40
- };
41
- this.setClientStyling = () => {
42
- let sheet = document.createElement('style');
43
- sheet.innerHTML = this.clientStyling;
44
- this.stylingContainer.prepend(sheet);
45
- };
46
- }
47
- validityChanged() {
48
- this.validityStateHandler({ valid: this.isValid, name: this.name });
49
- if (this.emitValue == true) {
50
- this.valueHandler({ name: this.name, value: this.value });
51
- }
52
- }
53
- emitValueHandler(newValue) {
54
- if (newValue == true && this.isValid) {
55
- this.valueHandler({ name: this.name, value: this.value });
56
- }
57
- }
58
- validityStateHandler(inputStateEvent) {
59
- this.sendValidityState.emit(inputStateEvent);
60
- }
61
- valueHandler(inputValueEvent) {
62
- this.sendInputValue.emit(inputValueEvent);
63
- }
64
- handleClickOutside(event) {
65
- if (event.composedPath()[0] === this.tooltipIconReference)
66
- return;
67
- if (event.composedPath()[0] !== this.tooltipReference)
68
- this.showTooltip = false;
69
- }
70
- valueChangedHandler(event) {
71
- if (this.isDuplicateInput && this.name === event.detail.name + 'Duplicate') {
72
- this.duplicateInputValue = event.detail.value;
73
- if (this.touched) {
74
- this.isValid = this.setValidity();
75
- this.errorMessage = this.setErrorMessage();
76
- }
77
- }
78
- if (this.name === event.detail.name + 'Duplicate'
79
- && this.name.replace('Duplicate', '') === event.detail.name
80
- && this.touched === true) {
81
- this.isValid = this.setValidity();
82
- this.errorMessage = this.setErrorMessage();
83
- }
84
- }
85
- connectedCallback() {
86
- this.validationPattern = this.setPattern();
87
- }
88
- componentDidRender() {
89
- // start custom styling area
90
- if (!this.limitStylingAppends && this.stylingContainer) {
91
- if (this.clientStyling)
92
- this.setClientStyling();
93
- this.limitStylingAppends = true;
94
- }
95
- // end custom styling area
96
- }
97
- componentDidLoad() {
98
- if (this.defaultValue) {
99
- this.value = this.defaultValue;
100
- this.valueHandler({ name: this.name, value: this.value });
101
- if (this.isDuplicateInput) {
102
- this.touched = true;
103
- }
104
- }
105
- this.isValid = this.setValidity();
106
- }
107
- setValidity() {
108
- var _a;
109
- if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
110
- return false;
111
- }
112
- else {
113
- return (_a = this.inputReference) === null || _a === void 0 ? void 0 : _a.validity.valid;
114
- }
115
- }
116
- setPattern() {
117
- var _a, _b;
118
- if (((_a = this.validation.custom) === null || _a === void 0 ? void 0 : _a.length) > 0) {
119
- return (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.pattern;
120
- }
121
- }
122
- setErrorMessage() {
123
- var _a, _b, _c, _d;
124
- if (this.inputReference.validity.patternMismatch) {
125
- const errorCode = (_a = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _a === void 0 ? void 0 : _a.errorKey;
126
- const errorMessage = (_b = this.validation.custom.find(customValidation => customValidation.rule === 'regex')) === null || _b === void 0 ? void 0 : _b.errorMessage;
127
- return translate(`${errorCode}`, this.language) ? translate(`${errorCode}`, this.language) : errorMessage;
128
- }
129
- if (this.inputReference.validity.tooShort || this.inputReference.validity.tooLong) {
130
- return translate('lengthError', this.language, { values: { minLength: this.validation.minLength, maxLength: this.validation.maxLength } });
131
- }
132
- if (this.inputReference.validity.valueMissing) {
133
- return translate('requiredError', this.language);
134
- }
135
- if (this.isDuplicateInput && this.duplicateInputValue !== this.value) {
136
- const errorCode = (_c = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _c === void 0 ? void 0 : _c.errorKey;
137
- const errorMessage = (_d = this.validation.custom.find(customRule => customRule.rule === 'duplicate-input')) === null || _d === void 0 ? void 0 : _d.errorMessage;
138
- return translate(`${errorCode}`, this.language) ? translate(`${errorCode}`, this.language) : errorMessage;
139
- }
140
- }
141
- renderTooltip() {
142
- if (this.showTooltip) {
143
- return (h("div", { class: `text__tooltip ${this.showTooltip ? 'visible' : ''}`, ref: (el) => this.tooltipReference = el, innerHTML: this.tooltip }));
144
- }
145
- return null;
146
- }
147
- render() {
148
- let invalidClass = '';
149
- if (this.touched) {
150
- invalidClass = this.isValid == true || this.isValid == undefined ? '' : 'text__input--invalid';
151
- }
152
- return h("div", { class: `text__wrapper ${this.name}__input ${this.autofilled ? 'text__wrapper--autofilled' : ''}`, ref: el => this.stylingContainer = el },
153
- h("div", { class: 'text__wrapper--flex' },
154
- h("label", { class: `text__label ${this.validation.mandatory ? 'text__label--required' : ''}`, htmlFor: `${this.name}__input` }, this.displayName),
155
- h("div", { class: 'text__wrapper--relative' },
156
- this.tooltip &&
157
- h("img", { class: 'text__tooltip-icon', src: tooltipIcon, alt: "", ref: (el) => this.tooltipIconReference = el, onClick: () => this.showTooltip = !this.showTooltip }),
158
- this.renderTooltip())),
159
- h("input", { name: this.name, id: `${this.name}__input`, value: this.defaultValue, type: 'text', class: `text__input ${invalidClass}`, placeholder: `${this.placeholder}`, ref: (el) => this.inputReference = el, readOnly: this.autofilled, pattern: this.validationPattern, required: this.validation.mandatory, minlength: this.validation.minLength, maxlength: this.validation.maxLength, onInput: this.handleInput, onBlur: this.handleBlur }),
160
- h("small", { class: 'text__error-message' }, this.errorMessage));
161
- }
162
- static get is() { return "text-input"; }
163
- static get encapsulation() { return "shadow"; }
164
- static get originalStyleUrls() { return {
165
- "$": ["text-input.scss"]
166
- }; }
167
- static get styleUrls() { return {
168
- "$": ["text-input.css"]
169
- }; }
170
- static get properties() { return {
171
- "name": {
172
- "type": "string",
173
- "mutable": false,
174
- "complexType": {
175
- "original": "string",
176
- "resolved": "string",
177
- "references": {}
178
- },
179
- "required": false,
180
- "optional": false,
181
- "docs": {
182
- "tags": [],
183
- "text": "Name of the input."
184
- },
185
- "attribute": "name",
186
- "reflect": true
187
- },
188
- "displayName": {
189
- "type": "string",
190
- "mutable": false,
191
- "complexType": {
192
- "original": "string",
193
- "resolved": "string",
194
- "references": {}
195
- },
196
- "required": false,
197
- "optional": false,
198
- "docs": {
199
- "tags": [],
200
- "text": "Name of input to be shown to the user."
201
- },
202
- "attribute": "display-name",
203
- "reflect": true
204
- },
205
- "placeholder": {
206
- "type": "string",
207
- "mutable": false,
208
- "complexType": {
209
- "original": "string",
210
- "resolved": "string",
211
- "references": {}
212
- },
213
- "required": false,
214
- "optional": false,
215
- "docs": {
216
- "tags": [],
217
- "text": "Placeholder text to be shown."
218
- },
219
- "attribute": "placeholder",
220
- "reflect": true
221
- },
222
- "validation": {
223
- "type": "unknown",
224
- "mutable": false,
225
- "complexType": {
226
- "original": "ValidationSchema",
227
- "resolved": "ValidationSchema",
228
- "references": {
229
- "ValidationSchema": {
230
- "location": "import",
231
- "path": "../../utils/types"
232
- }
233
- }
234
- },
235
- "required": false,
236
- "optional": false,
237
- "docs": {
238
- "tags": [],
239
- "text": "Object of validation rules for the input."
240
- }
241
- },
242
- "defaultValue": {
243
- "type": "string",
244
- "mutable": false,
245
- "complexType": {
246
- "original": "string",
247
- "resolved": "string",
248
- "references": {}
249
- },
250
- "required": false,
251
- "optional": false,
252
- "docs": {
253
- "tags": [],
254
- "text": "Default value for the input."
255
- },
256
- "attribute": "default-value",
257
- "reflect": true,
258
- "defaultValue": "''"
259
- },
260
- "autofilled": {
261
- "type": "boolean",
262
- "mutable": false,
263
- "complexType": {
264
- "original": "boolean",
265
- "resolved": "boolean",
266
- "references": {}
267
- },
268
- "required": false,
269
- "optional": false,
270
- "docs": {
271
- "tags": [],
272
- "text": "Boolean. Determines if input should be readonly."
273
- },
274
- "attribute": "autofilled",
275
- "reflect": true
276
- },
277
- "tooltip": {
278
- "type": "string",
279
- "mutable": false,
280
- "complexType": {
281
- "original": "string",
282
- "resolved": "string",
283
- "references": {}
284
- },
285
- "required": false,
286
- "optional": false,
287
- "docs": {
288
- "tags": [],
289
- "text": "Tooltip text."
290
- },
291
- "attribute": "tooltip",
292
- "reflect": true
293
- },
294
- "language": {
295
- "type": "string",
296
- "mutable": false,
297
- "complexType": {
298
- "original": "string",
299
- "resolved": "string",
300
- "references": {}
301
- },
302
- "required": false,
303
- "optional": false,
304
- "docs": {
305
- "tags": [],
306
- "text": "Currently selected language."
307
- },
308
- "attribute": "language",
309
- "reflect": true
310
- },
311
- "checkValidity": {
312
- "type": "boolean",
313
- "mutable": false,
314
- "complexType": {
315
- "original": "boolean",
316
- "resolved": "boolean",
317
- "references": {}
318
- },
319
- "required": false,
320
- "optional": false,
321
- "docs": {
322
- "tags": [],
323
- "text": "State passed down from the parent element. Will trigger the input to check for validity."
324
- },
325
- "attribute": "check-validity",
326
- "reflect": true
327
- },
328
- "emitValue": {
329
- "type": "boolean",
330
- "mutable": false,
331
- "complexType": {
332
- "original": "boolean",
333
- "resolved": "boolean",
334
- "references": {}
335
- },
336
- "required": false,
337
- "optional": false,
338
- "docs": {
339
- "tags": [],
340
- "text": "State passed down from the parent element. Will trigger the input to send it's value through an event."
341
- },
342
- "attribute": "emit-value",
343
- "reflect": true
344
- },
345
- "isDuplicateInput": {
346
- "type": "boolean",
347
- "mutable": false,
348
- "complexType": {
349
- "original": "boolean",
350
- "resolved": "boolean",
351
- "references": {}
352
- },
353
- "required": false,
354
- "optional": false,
355
- "docs": {
356
- "tags": [],
357
- "text": "Boolean that triggers certain validation rules, for duplicated inputs."
358
- },
359
- "attribute": "is-duplicate-input",
360
- "reflect": true
361
- },
362
- "clientStyling": {
363
- "type": "string",
364
- "mutable": false,
365
- "complexType": {
366
- "original": "string",
367
- "resolved": "string",
368
- "references": {}
369
- },
370
- "required": false,
371
- "optional": false,
372
- "docs": {
373
- "tags": [],
374
- "text": "Client custom styling via inline style"
375
- },
376
- "attribute": "client-styling",
377
- "reflect": true,
378
- "defaultValue": "''"
379
- }
380
- }; }
381
- static get states() { return {
382
- "isValid": {},
383
- "errorMessage": {},
384
- "limitStylingAppends": {},
385
- "showTooltip": {}
386
- }; }
387
- static get events() { return [{
388
- "method": "sendValidityState",
389
- "name": "sendValidityState",
390
- "bubbles": true,
391
- "cancelable": true,
392
- "composed": true,
393
- "docs": {
394
- "tags": [],
395
- "text": ""
396
- },
397
- "complexType": {
398
- "original": "InputStateEvent",
399
- "resolved": "InputStateEvent",
400
- "references": {
401
- "InputStateEvent": {
402
- "location": "import",
403
- "path": "../../utils/types"
404
- }
405
- }
406
- }
407
- }, {
408
- "method": "sendInputValue",
409
- "name": "sendInputValue",
410
- "bubbles": true,
411
- "cancelable": true,
412
- "composed": true,
413
- "docs": {
414
- "tags": [],
415
- "text": ""
416
- },
417
- "complexType": {
418
- "original": "InputValueEvent",
419
- "resolved": "InputValueEvent",
420
- "references": {
421
- "InputValueEvent": {
422
- "location": "import",
423
- "path": "../../utils/types"
424
- }
425
- }
426
- }
427
- }]; }
428
- static get watchers() { return [{
429
- "propName": "isValid",
430
- "methodName": "validityChanged"
431
- }, {
432
- "propName": "emitValue",
433
- "methodName": "emitValueHandler"
434
- }]; }
435
- static get listeners() { return [{
436
- "name": "click",
437
- "method": "handleClickOutside",
438
- "target": "document",
439
- "capture": false,
440
- "passive": false
441
- }, {
442
- "name": "sendInputValue",
443
- "method": "valueChangedHandler",
444
- "target": "body",
445
- "capture": false,
446
- "passive": false
447
- }]; }
448
- }
@@ -1,82 +0,0 @@
1
- *,
2
- *::before,
3
- *::after {
4
- padding: 0;
5
- margin: 0;
6
- box-sizing: border-box;
7
- }
8
-
9
- .togglecheckbox {
10
- font-family: "Roboto";
11
- font-style: normal;
12
- font-size: 15px;
13
- }
14
- .togglecheckbox__wrapper {
15
- position: relative;
16
- }
17
- .togglecheckbox__wrapper--flex {
18
- display: flex;
19
- gap: 10px;
20
- align-items: baseline;
21
- }
22
- .togglecheckbox__wrapper--relative {
23
- position: relative;
24
- display: inline;
25
- }
26
- .togglecheckbox__input {
27
- transform: scale(1.307, 1.307);
28
- margin-left: 2px;
29
- accent-color: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
30
- }
31
- .togglecheckbox__label {
32
- font-style: inherit;
33
- font-family: inherit;
34
- font-weight: 400;
35
- font-size: 16px;
36
- color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
37
- line-height: 1.5;
38
- cursor: pointer;
39
- padding: 0;
40
- }
41
- .togglecheckbox__label-text {
42
- font-size: 16px;
43
- }
44
- .togglecheckbox__label a {
45
- color: var(--emfe-w-login-color-primary, var(--emfe-w-color-primary, #D0046C));
46
- }
47
- .togglecheckbox__error-message {
48
- position: absolute;
49
- top: calc(100% + 5px);
50
- left: 0;
51
- color: var(--emfe-w-color-error, var(--emfe-w-color-red, #ed0909));
52
- }
53
- .togglecheckbox__tooltip-icon {
54
- width: 16px;
55
- height: auto;
56
- }
57
- .togglecheckbox__tooltip {
58
- position: absolute;
59
- top: 0;
60
- right: 0;
61
- background-color: var(--emfe-w-color-white, #FFFFFF);
62
- border: 1px solid var(--emfe-w-color-gray-100, #E6E6E6);
63
- color: var(--emfe-w-registration-typography, var(--emfe-w-color-black, #000000));
64
- padding: 10px;
65
- border-radius: 5px;
66
- opacity: 0;
67
- transition: opacity 0.3s ease-in-out;
68
- z-index: 10;
69
- }
70
- .togglecheckbox__tooltip.visible {
71
- opacity: 1;
72
- }
73
- .togglecheckbox__fields-wrapper {
74
- margin-top: 40px;
75
- display: flex;
76
- flex-direction: column;
77
- gap: 40px;
78
- }
79
-
80
- .hidden {
81
- display: none;
82
- }