@prosopo/client-bundle-example 2.10.24 → 2.11.0

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 (51) hide show
  1. package/.turbo/turbo-build$colon$cjs.log +5 -4
  2. package/.turbo/turbo-build$colon$tsc.log +11 -11
  3. package/.turbo/turbo-build.log +6 -5
  4. package/CHANGELOG.md +16 -0
  5. package/dist/cjs/index.cjs +13 -41
  6. package/dist/cjs/plugins/pages.cjs +113 -0
  7. package/dist/index.js +2 -42
  8. package/dist/plugins/pages.js +103 -0
  9. package/package.json +2 -2
  10. package/src/frictionless-explicit-web3.html +10 -23
  11. package/src/frictionless-explicit.html +10 -22
  12. package/src/frictionless-implicit.html +60 -86
  13. package/src/frictionless-manual-start.html +13 -33
  14. package/src/image-explicit-web3.html +8 -24
  15. package/src/image-explicit.html +8 -23
  16. package/src/image-implicit.html +192 -0
  17. package/src/index.html +11 -26
  18. package/src/index.ts +1 -62
  19. package/src/invisible-frictionless-explicit.html +8 -17
  20. package/src/invisible-frictionless-implicit.html +8 -25
  21. package/src/invisible-image-explicit.html +8 -23
  22. package/src/invisible-image-implicit.html +8 -24
  23. package/src/invisible-pow-explicit.html +8 -23
  24. package/src/invisible-pow-implicit.html +9 -21
  25. package/src/invisible-puzzle-explicit.html +8 -23
  26. package/src/invisible-puzzle-implicit.html +9 -21
  27. package/src/plugins/code-snippet-injector.ts +179 -0
  28. package/src/plugins/form-filler-injector.ts +36 -121
  29. package/src/plugins/layout-injector.ts +238 -0
  30. package/src/plugins/logo.ts +15 -0
  31. package/src/plugins/pages.ts +219 -0
  32. package/src/plugins/placement-injector.ts +25 -64
  33. package/src/plugins/slots.ts +32 -0
  34. package/src/plugins/status-log-injector.ts +35 -114
  35. package/src/pow-explicit-web3.html +8 -24
  36. package/src/pow-explicit.html +8 -23
  37. package/src/pow-implicit-sessionid.html +10 -24
  38. package/src/pow-implicit.html +9 -24
  39. package/src/puzzle-bind-explicit.html +9 -24
  40. package/src/puzzle-explicit.html +8 -23
  41. package/src/puzzle-implicit.html +9 -24
  42. package/src/styles/demo.css +803 -0
  43. package/src/tests/plugins.unit.test.ts +285 -118
  44. package/tsconfig.tsbuildinfo +1 -1
  45. package/vite.config.ts +5 -5
  46. package/src/plugins/explanation-injector.ts +0 -294
  47. package/src/plugins/navigation-injector.ts +0 -606
  48. package/src/styles/captcha.css +0 -78
  49. package/src/styles/field.css +0 -12
  50. package/src/tests/floatLabel.unit.test.ts +0 -195
  51. package/src/tests/floatLabelReady.unit.test.ts +0 -36
@@ -1,606 +0,0 @@
1
- // Copyright 2021-2026 Prosopo (UK) Ltd.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
- // Vite plugin to inject navigation into HTML files
15
- import path from "node:path";
16
- import {
17
- type IndexHtmlTransformContext,
18
- type Plugin,
19
- normalizePath,
20
- } from "vite";
21
-
22
- interface CaptchaTypeDetails {
23
- path: string;
24
- exists: boolean;
25
- }
26
-
27
- interface CaptchaType {
28
- [key: string]: CaptchaTypeDetails;
29
- }
30
-
31
- interface CaptchaTypes {
32
- [key: string]: CaptchaType;
33
- }
34
-
35
- export default function navigationInjector(): Plugin {
36
- // Define all pages, including existing and planned
37
- const pageDefinitions = {
38
- standard: {
39
- image: {
40
- implicit: { path: "index.html", exists: true },
41
- explicit: { path: "image-explicit.html", exists: true },
42
- },
43
- pow: {
44
- implicit: { path: "pow-implicit.html", exists: true },
45
- explicit: { path: "pow-explicit.html", exists: true },
46
- },
47
- frictionless: {
48
- implicit: { path: "frictionless-implicit.html", exists: true },
49
- explicit: { path: "frictionless-explicit.html", exists: true },
50
- manual: { path: "frictionless-manual-start.html", exists: true },
51
- },
52
- puzzle: {
53
- implicit: { path: "puzzle-implicit.html", exists: true },
54
- explicit: { path: "puzzle-explicit.html", exists: true },
55
- bound: { path: "puzzle-bind-explicit.html", exists: true },
56
- },
57
- },
58
- invisible: {
59
- image: {
60
- implicit: { path: "invisible-image-implicit.html", exists: true },
61
- explicit: { path: "invisible-image-explicit.html", exists: true },
62
- },
63
- pow: {
64
- implicit: { path: "invisible-pow-implicit.html", exists: true },
65
- explicit: { path: "invisible-pow-explicit.html", exists: true },
66
- },
67
- frictionless: {
68
- implicit: {
69
- path: "invisible-frictionless-implicit.html",
70
- exists: true,
71
- },
72
- explicit: {
73
- path: "invisible-frictionless-explicit.html",
74
- exists: true,
75
- },
76
- },
77
- puzzle: {
78
- implicit: { path: "invisible-puzzle-implicit.html", exists: true },
79
- explicit: { path: "invisible-puzzle-explicit.html", exists: true },
80
- },
81
- },
82
- };
83
-
84
- // Style for the navigation bar
85
- const navStyle = `
86
- <style>
87
- .nav-topbar {
88
- background-color: #2196F3;
89
- padding: 0;
90
- margin-bottom: 20px;
91
- transition: all 0.3s ease;
92
- overflow-y: auto;
93
- overflow-x: hidden;
94
- -webkit-overflow-scrolling: touch;
95
- max-height: 90vh;
96
- box-shadow: 0 2px 5px rgba(0,0,0,0.2);
97
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
98
- }
99
- .nav-topbar.collapsed {
100
- max-height: 60px;
101
- overflow: hidden;
102
- }
103
- .nav-container {
104
- max-width: 1200px;
105
- margin: 0 auto;
106
- padding: 0 20px;
107
- position: relative;
108
- }
109
- .nav-header {
110
- display: flex;
111
- justify-content: space-between;
112
- align-items: center;
113
- padding: 12px 0;
114
- position: relative;
115
- z-index: 20;
116
- }
117
- .nav-title {
118
- color: white;
119
- font-size: 1.25rem;
120
- font-weight: 600;
121
- margin: 0;
122
- display: flex;
123
- align-items: center;
124
- gap: 8px;
125
- }
126
- .nav-title-text {
127
- margin-right: 8px;
128
- }
129
- .nav-title-hint {
130
- font-size: 0.875rem;
131
- font-weight: normal;
132
- opacity: 0;
133
- transition: opacity 0.3s ease;
134
- color: rgba(255,255,255,0.8);
135
- }
136
- .collapsed .nav-title-hint {
137
- opacity: 0.8;
138
- }
139
- .nav-toggle {
140
- background-color: rgba(255,255,255,0.1);
141
- color: white;
142
- border: none;
143
- padding: 8px 12px;
144
- cursor: pointer;
145
- border-radius: 6px;
146
- z-index: 10;
147
- display: flex;
148
- align-items: center;
149
- justify-content: center;
150
- transition: background-color 0.2s ease;
151
- }
152
- .nav-toggle:hover {
153
- background-color: rgba(255,255,255,0.2);
154
- }
155
- .nav-toggle-icon {
156
- width: 24px;
157
- height: 24px;
158
- display: inline-block;
159
- position: relative;
160
- }
161
- .nav-toggle-icon svg {
162
- position: absolute;
163
- top: 0;
164
- left: 0;
165
- transition: opacity 0.3s ease;
166
- }
167
- .nav-toggle-icon .icon-collapse {
168
- opacity: 1;
169
- }
170
- .nav-toggle-icon .icon-expand {
171
- opacity: 0;
172
- }
173
- .collapsed .nav-toggle-icon .icon-collapse {
174
- opacity: 0;
175
- }
176
- .collapsed .nav-toggle-icon .icon-expand {
177
- opacity: 1;
178
- }
179
- .nav-content {
180
- padding: 0 0 20px 0;
181
- transition: opacity 0.3s ease;
182
- }
183
- .collapsed .nav-content {
184
- opacity: 0;
185
- }
186
- .nav-sections {
187
- display: flex;
188
- flex-wrap: wrap;
189
- gap: 20px;
190
- }
191
- .nav-section {
192
- flex: 1;
193
- min-width: 280px;
194
- }
195
- .nav-section h3 {
196
- color: white;
197
- font-size: 1rem;
198
- font-weight: 600;
199
- margin: 0 0 12px 0;
200
- padding-bottom: 8px;
201
- border-bottom: 1px solid rgba(255,255,255,0.2);
202
- }
203
- .nav-group {
204
- background: rgba(255,255,255,0.1);
205
- border-radius: 8px;
206
- padding: 12px;
207
- margin-bottom: 12px;
208
- }
209
- .nav-group-title {
210
- color: rgba(255,255,255,0.9);
211
- font-size: 0.875rem;
212
- font-weight: 500;
213
- margin: 0 0 8px 0;
214
- text-transform: uppercase;
215
- letter-spacing: 0.5px;
216
- }
217
- .nav-group-links {
218
- list-style: none;
219
- margin: 0;
220
- padding: 0;
221
- }
222
- .nav-group-links li {
223
- margin: 6px 0;
224
- }
225
- .nav-group-links a {
226
- color: white;
227
- text-decoration: none;
228
- font-weight: 500;
229
- padding: 6px 8px;
230
- display: inline-block;
231
- border-radius: 4px;
232
- transition: background-color 0.2s ease;
233
- }
234
- .nav-group-links a:hover {
235
- background-color: rgba(255,255,255,0.2);
236
- }
237
- .nav-group-links .active {
238
- background-color: rgba(255,255,255,0.2);
239
- font-weight: 600;
240
- }
241
- .nav-group-links .disabled {
242
- color: rgba(255,255,255,0.5);
243
- cursor: not-allowed;
244
- opacity: 0.7;
245
- }
246
-
247
- @media (max-width: 768px) {
248
- .nav-container {
249
- padding: 0 16px;
250
- }
251
- .nav-title {
252
- font-size: 1.125rem;
253
- }
254
- .nav-title-hint {
255
- display: none;
256
- }
257
- .nav-sections {
258
- flex-direction: column;
259
- gap: 16px;
260
- }
261
- .nav-section {
262
- min-width: 100%;
263
- }
264
- .nav-section h3 {
265
- font-size: 0.875rem;
266
- }
267
- .nav-group {
268
- padding: 10px;
269
- }
270
- .nav-group-title {
271
- font-size: 0.8125rem;
272
- }
273
- .nav-group-links a {
274
- padding: 8px 10px;
275
- width: 100%;
276
- }
277
- }
278
-
279
- @media (max-width: 480px) {
280
- .nav-title {
281
- font-size: 1rem;
282
- }
283
- .nav-toggle {
284
- padding: 6px 10px;
285
- }
286
- }
287
-
288
- .nav-group-dropdown {
289
- position: relative;
290
- display: inline-block;
291
- }
292
-
293
- .nav-group-dropdown-btn {
294
- background: none;
295
- border: none;
296
- color: white;
297
- font-weight: 500;
298
- padding: 6px 8px;
299
- cursor: pointer;
300
- display: flex;
301
- align-items: center;
302
- gap: 4px;
303
- border-radius: 4px;
304
- transition: background-color 0.2s ease;
305
- }
306
-
307
- .nav-group-dropdown-btn:hover {
308
- background-color: rgba(255,255,255,0.2);
309
- }
310
-
311
- .nav-group-dropdown-btn svg {
312
- width: 16px;
313
- height: 16px;
314
- transition: transform 0.2s ease;
315
- }
316
-
317
- .nav-group-dropdown-btn.open svg {
318
- transform: rotate(180deg);
319
- }
320
-
321
- .nav-group-dropdown-content {
322
- display: none;
323
- position: absolute;
324
- background-color: rgba(33, 150, 243, 0.95);
325
- min-width: 160px;
326
- box-shadow: 0 8px 16px rgba(0,0,0,0.2);
327
- z-index: 1;
328
- border-radius: 4px;
329
- padding: 8px 0;
330
- margin-top: 4px;
331
- }
332
-
333
- .nav-group-dropdown-btn.open + .nav-group-dropdown-content {
334
- display: block;
335
- }
336
-
337
- .nav-group-dropdown-content a {
338
- color: white;
339
- padding: 8px 16px;
340
- text-decoration: none;
341
- display: block;
342
- transition: background-color 0.2s ease;
343
- }
344
-
345
- .nav-group-dropdown-content a:hover {
346
- background-color: rgba(255,255,255,0.2);
347
- }
348
-
349
- .nav-group-dropdown-content a.active {
350
- background-color: rgba(255,255,255,0.2);
351
- font-weight: 600;
352
- }
353
-
354
- @media (max-width: 768px) {
355
- .nav-group-dropdown-content {
356
- position: static;
357
- box-shadow: none;
358
- background-color: rgba(255,255,255,0.1);
359
- margin-top: 8px;
360
- }
361
- }
362
- </style>
363
- `;
364
-
365
- // JavaScript for toggling navigation
366
- const navScript = `
367
- <script>
368
- document.addEventListener('DOMContentLoaded', function() {
369
- const toggleBtn = document.getElementById('nav-toggle');
370
- const navBar = document.getElementById('nav-topbar');
371
- const navHeader = document.getElementById('nav-header');
372
- const isMobile = window.innerWidth <= 768;
373
-
374
- // Check if navigation was previously collapsed. On mobile default to
375
- // collapsed on the first visit so the nav does not dominate the
376
- // viewport; on desktop default to expanded.
377
- const storedCollapsed = localStorage.getItem('navCollapsed');
378
- const navCollapsed = storedCollapsed === null ? isMobile : storedCollapsed === 'true';
379
- if (navCollapsed) {
380
- navBar.classList.add('collapsed');
381
- }
382
-
383
- // Function to expand the navigation
384
- function expandNav() {
385
- if (navBar.classList.contains('collapsed')) {
386
- navBar.classList.remove('collapsed');
387
- localStorage.setItem('navCollapsed', 'false');
388
- }
389
- }
390
-
391
- // Function to collapse the navigation
392
- function collapseNav() {
393
- if (!navBar.classList.contains('collapsed')) {
394
- navBar.classList.add('collapsed');
395
- localStorage.setItem('navCollapsed', 'true');
396
- }
397
- }
398
-
399
- // Function to toggle the navigation
400
- function toggleNav() {
401
- navBar.classList.toggle('collapsed');
402
- localStorage.setItem('navCollapsed', navBar.classList.contains('collapsed'));
403
- }
404
-
405
- // Toggle on button click
406
- toggleBtn.addEventListener('click', function(e) {
407
- e.stopPropagation();
408
- toggleNav();
409
- });
410
-
411
- // Expand on toggle button hover when collapsed (desktop only)
412
- if (!isMobile) {
413
- toggleBtn.addEventListener('mouseenter', function() {
414
- if (navBar.classList.contains('collapsed')) {
415
- expandNav();
416
- }
417
- });
418
- }
419
-
420
- // Toggle on header click
421
- navHeader.addEventListener('click', function(e) {
422
- if (e.target.tagName === 'A') {
423
- return;
424
- }
425
- toggleNav();
426
- });
427
-
428
- // Make the header appear clickable with cursor style
429
- navHeader.style.cursor = 'pointer';
430
-
431
- // Handle window resize
432
- window.addEventListener('resize', function() {
433
- const newIsMobile = window.innerWidth <= 768;
434
- if (newIsMobile !== isMobile) {
435
- if (newIsMobile) {
436
- // On mobile, collapse the nav by default
437
- collapseNav();
438
- } else {
439
- // On desktop, expand the nav by default
440
- expandNav();
441
- }
442
- }
443
- });
444
-
445
- // Handle dropdown toggles
446
- document.querySelectorAll('.nav-group-dropdown-btn').forEach(button => {
447
- button.addEventListener('click', function(e) {
448
- e.stopPropagation();
449
- this.classList.toggle('open');
450
- });
451
- });
452
-
453
- // Close dropdowns when clicking outside
454
- document.addEventListener('click', function(e) {
455
- if (!e.target.closest('.nav-group-dropdown')) {
456
- document.querySelectorAll('.nav-group-dropdown-btn').forEach(button => {
457
- button.classList.remove('open');
458
- });
459
- }
460
- });
461
- });
462
- </script>
463
- `;
464
-
465
- return {
466
- name: "navigation-injector",
467
- transformIndexHtml: {
468
- order: "pre",
469
- handler(html: string, ctx: IndexHtmlTransformContext): string {
470
- // Get the relative path from the root
471
- const relativePath = ctx.filename
472
- ? normalizePath(path.relative(process.cwd(), ctx.filename))
473
- : "";
474
-
475
- // Extract the page path relative to src or dist directory
476
- let pagePath = "";
477
- const srcDir = "src/";
478
- const distDir = "dist/";
479
-
480
- if (relativePath.includes(srcDir)) {
481
- pagePath = relativePath.substring(
482
- relativePath.indexOf(srcDir) + srcDir.length,
483
- );
484
- } else if (relativePath.includes(distDir)) {
485
- pagePath = relativePath.substring(
486
- relativePath.indexOf(distDir) + distDir.length,
487
- );
488
- }
489
-
490
- console.log(`Processing file: ${relativePath}, pagePath: ${pagePath}`);
491
-
492
- // Build navigation structure
493
- const standardNav = buildCaptchaNavGroup(
494
- "Standard Captchas",
495
- pageDefinitions.standard,
496
- pagePath,
497
- );
498
- const invisibleNav = buildCaptchaNavGroup(
499
- "Invisible Captchas",
500
- pageDefinitions.invisible,
501
- pagePath,
502
- );
503
-
504
- const navHtml = `
505
- <div id="nav-topbar" class="nav-topbar">
506
- <div class="nav-container">
507
- <div id="nav-header" class="nav-header">
508
- <h1 class="nav-title">
509
- <span class="nav-title-text">Procaptcha Demo Playground</span>
510
- <span class="nav-title-hint">(Click anywhere to see more examples)</span>
511
- </h1>
512
- <button id="nav-toggle" class="nav-toggle" aria-label="Toggle navigation">
513
- <span class="nav-toggle-icon">
514
- <svg class="icon-collapse" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
515
- <polyline points="18 15 12 9 6 15"></polyline>
516
- </svg>
517
- <svg class="icon-expand" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
518
- <polyline points="6 9 12 15 18 9"></polyline>
519
- </svg>
520
- </span>
521
- </button>
522
- </div>
523
- <div class="nav-content">
524
- <div class="nav-sections">
525
- ${standardNav}
526
- ${invisibleNav}
527
- </div>
528
- </div>
529
- </div>
530
- </div>
531
- `;
532
-
533
- // Inject navigation after <body> tag and script before </body>
534
- if (html.includes("<body>") && html.includes("</body>")) {
535
- const viewportMeta = `<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">`;
536
- return html
537
- .replace("<head>", `<head>\n ${viewportMeta}`)
538
- .replace("</head>", `${navStyle}</head>`)
539
- .replace("<body>", `<body>\n${navHtml}`)
540
- .replace("</body>", `${navScript}\n</body>`);
541
- }
542
-
543
- return html;
544
- },
545
- },
546
- };
547
-
548
- // Helper function to build a navigation group for each captcha type
549
- function buildCaptchaNavGroup(
550
- title: string,
551
- captchaTypes: CaptchaTypes,
552
- currentPath: string,
553
- ): string {
554
- const navGroups: string[] = [];
555
-
556
- for (const [typeName, captchaType] of Object.entries(captchaTypes)) {
557
- const typeTitle = typeName.charAt(0).toUpperCase() + typeName.slice(1);
558
- const links: string[] = [];
559
-
560
- // Create simple buttons for each implementation
561
- for (const [implName, implDetails] of Object.entries(
562
- captchaType as CaptchaType,
563
- )) {
564
- const pagePath = implDetails.path;
565
- const pageExists = implDetails.exists;
566
- const implTitle = implName.charAt(0).toUpperCase() + implName.slice(1);
567
-
568
- // Calculate relative path
569
- let href: string;
570
- if (currentPath.includes("/")) {
571
- const depth = (currentPath.match(/\//g) || []).length;
572
- href = "../".repeat(depth) + pagePath;
573
- } else {
574
- href = pagePath;
575
- }
576
-
577
- if (pageExists) {
578
- const activeClass = currentPath === pagePath ? ' class="active"' : "";
579
- links.push(`<a href="${href}"${activeClass}>${implTitle}</a>`);
580
- } else {
581
- links.push(
582
- `<span class="disabled" title="Coming Soon">${implTitle}</span>`,
583
- );
584
- }
585
- }
586
-
587
- navGroups.push(`
588
- <div class="nav-group">
589
- <div class="nav-group-title">${typeTitle}</div>
590
- <div class="nav-group-links">
591
- ${links.join("\n ")}
592
- </div>
593
- </div>
594
- `);
595
- }
596
-
597
- return `
598
- <div class="nav-section">
599
- <h3>${title}</h3>
600
- <div class="nav-row">
601
- ${navGroups.join("\n ")}
602
- </div>
603
- </div>
604
- `;
605
- }
606
- }
@@ -1,78 +0,0 @@
1
- .console-output {
2
- margin-top: 20px;
3
- padding: 10px;
4
- background-color: #f5f5f5;
5
- border: 1px solid #ddd;
6
- border-radius: 4px;
7
- font-family: monospace;
8
- white-space: pre-wrap;
9
- max-height: 200px;
10
- overflow-y: auto;
11
- }
12
- .info-box {
13
- background-color: #e7f3fe;
14
- border-left: 4px solid #2196f3;
15
- padding: 15px;
16
- margin: 20px 0;
17
- }
18
- .explanation {
19
- margin: 20px 0;
20
- padding: 20px;
21
- background-color: #f9f9f9;
22
- border-radius: 5px;
23
- border: 1px solid #ddd;
24
- }
25
- code {
26
- background-color: #f0f0f0;
27
- padding: 2px 4px;
28
- border-radius: 3px;
29
- font-family: monospace;
30
- }
31
- pre {
32
- background-color: #f5f5f5;
33
- padding: 10px;
34
- border-radius: 5px;
35
- overflow-x: auto;
36
- border: 1px solid #ddd;
37
- }
38
- .captcha-status {
39
- margin-top: 20px;
40
- padding: 15px;
41
- background-color: #f0f8ff;
42
- border: 2px solid #2196f3;
43
- border-radius: 5px;
44
- font-family: monospace;
45
- font-size: 14px;
46
- }
47
- .status-item {
48
- margin: 5px 0;
49
- padding: 5px;
50
- }
51
- .status-success {
52
- color: #4caf50;
53
- font-weight: bold;
54
- }
55
- .status-error {
56
- color: #f44336;
57
- font-weight: bold;
58
- }
59
- .status-info {
60
- color: #2196f3;
61
- }
62
- .status-warning {
63
- color: #ff9800;
64
- }
65
- .status-title {
66
- font-weight: bold;
67
- margin-bottom: 10px;
68
- border-bottom: 1px solid #2196f3;
69
- padding-bottom: 5px;
70
- }
71
-
72
- .account-select {
73
- margin: 10px 0;
74
- padding: 10px;
75
- background-color: #f9f9f9;
76
- border-radius: 5px;
77
- border: 1px solid #ddd;
78
- }
@@ -1,12 +0,0 @@
1
- /* smooth transition by default */
2
- .mui-textfield--float-label label {
3
- transition: opacity .15s ease, transform .15s ease;
4
- }
5
-
6
- /* when wrapper gets .label-hidden, hide the label visually (keeps it in DOM) */
7
- .mui-textfield--float-label.label-hidden > label {
8
- opacity: 0 !important;
9
- visibility: hidden !important;
10
- pointer-events: none !important;
11
- transform: translateY(-6px) !important;
12
- }