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