pure-react-ui 1.5.5 → 1.5.7
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.
- package/README.md +57 -4
- package/lib/components/Form/Form.css +626 -41
- package/lib/components/Form/FormItem.js +6 -6
- package/lib/components/Form/FormItem.js.map +1 -1
- package/lib/components/Form/Select.d.ts +22 -16
- package/lib/components/Form/Select.d.ts.map +1 -1
- package/lib/components/Form/Select.js +270 -135
- package/lib/components/Form/Select.js.map +1 -1
- package/package.json +1 -1
|
@@ -302,7 +302,17 @@
|
|
|
302
302
|
color: #6c757d;
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
/* Select */
|
|
305
|
+
/* Pure Custom Select Container */
|
|
306
|
+
.pure-custom-select {
|
|
307
|
+
position: relative;
|
|
308
|
+
width: 100%;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.pure-custom-select * {
|
|
312
|
+
box-sizing: border-box;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/* Pure Select Wrapper */
|
|
306
316
|
.pure-select-wrapper {
|
|
307
317
|
display: flex;
|
|
308
318
|
flex-direction: column;
|
|
@@ -313,61 +323,505 @@
|
|
|
313
323
|
width: 100%;
|
|
314
324
|
}
|
|
315
325
|
|
|
316
|
-
|
|
326
|
+
/* Pure Select Trigger (Main button) */
|
|
327
|
+
.pure-select-trigger {
|
|
328
|
+
display: flex;
|
|
329
|
+
align-items: center;
|
|
330
|
+
justify-content: space-between;
|
|
331
|
+
gap: 0.5rem;
|
|
332
|
+
width: 100%;
|
|
333
|
+
padding: 0.625rem 1rem;
|
|
334
|
+
background-color: #ffffff;
|
|
335
|
+
border: 1px solid #d1d5db;
|
|
336
|
+
border-radius: 0.5rem;
|
|
337
|
+
cursor: pointer;
|
|
338
|
+
transition-property: all;
|
|
339
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
340
|
+
transition-duration: 200ms;
|
|
341
|
+
min-height: 2.75rem;
|
|
342
|
+
outline: none;
|
|
317
343
|
font-size: 0.875rem;
|
|
318
|
-
|
|
319
|
-
color: #
|
|
344
|
+
line-height: 1.25rem;
|
|
345
|
+
color: #111827;
|
|
346
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.pure-select-trigger:hover:not(.pure-select-disabled) {
|
|
350
|
+
border-color: #9ca3af;
|
|
351
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.pure-select-trigger:focus:not(.pure-select-disabled) {
|
|
355
|
+
outline: 2px solid transparent;
|
|
356
|
+
outline-offset: 2px;
|
|
357
|
+
border-color: #3b82f6;
|
|
358
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.pure-select-trigger.pure-select-open {
|
|
362
|
+
border-color: #3b82f6;
|
|
363
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.pure-select-trigger.pure-select-disabled {
|
|
367
|
+
background-color: #f9fafb;
|
|
368
|
+
cursor: not-allowed;
|
|
369
|
+
opacity: 0.6;
|
|
370
|
+
box-shadow: none;
|
|
320
371
|
}
|
|
321
372
|
|
|
322
|
-
.pure-select {
|
|
373
|
+
.pure-select-trigger.pure-select-full-width {
|
|
323
374
|
width: 100%;
|
|
324
|
-
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/* Pure Size Variants */
|
|
378
|
+
.pure-select-trigger.pure-select-small {
|
|
379
|
+
padding: 0.5rem 0.75rem;
|
|
380
|
+
font-size: 0.8125rem;
|
|
381
|
+
line-height: 1.125rem;
|
|
382
|
+
min-height: 2.25rem;
|
|
383
|
+
border-radius: 0.375rem;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
.pure-select-trigger.pure-select-medium {
|
|
387
|
+
padding: 0.625rem 1rem;
|
|
388
|
+
font-size: 0.875rem;
|
|
389
|
+
line-height: 1.25rem;
|
|
390
|
+
min-height: 2.75rem;
|
|
391
|
+
border-radius: 0.5rem;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
.pure-select-trigger.pure-select-large {
|
|
395
|
+
padding: 0.875rem 1.25rem;
|
|
325
396
|
font-size: 1rem;
|
|
326
|
-
line-height: 1.
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
397
|
+
line-height: 1.5rem;
|
|
398
|
+
min-height: 3.25rem;
|
|
399
|
+
border-radius: 0.5rem;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
/* Pure Select Value Container */
|
|
403
|
+
.pure-select-value {
|
|
404
|
+
flex: 1 1 0%;
|
|
405
|
+
display: flex;
|
|
406
|
+
align-items: center;
|
|
407
|
+
overflow: hidden;
|
|
408
|
+
min-height: 1.5rem;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.pure-select-placeholder {
|
|
412
|
+
color: #9ca3af;
|
|
413
|
+
font-weight: 400;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/* Pure Tags Container */
|
|
417
|
+
.pure-select-tags-container {
|
|
418
|
+
display: flex;
|
|
419
|
+
align-items: center;
|
|
420
|
+
gap: 0.375rem;
|
|
421
|
+
flex-wrap: wrap;
|
|
422
|
+
width: 100%;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
/* Pure Individual Tag */
|
|
426
|
+
.pure-select-tag {
|
|
427
|
+
display: inline-flex;
|
|
428
|
+
align-items: center;
|
|
429
|
+
gap: 0.375rem;
|
|
430
|
+
padding: 0.25rem 0.625rem;
|
|
431
|
+
background-color: #eff6ff;
|
|
432
|
+
color: #1e40af;
|
|
433
|
+
border: 1px solid #dbeafe;
|
|
330
434
|
border-radius: 0.375rem;
|
|
331
|
-
|
|
435
|
+
font-size: 0.8125rem;
|
|
436
|
+
line-height: 1.125rem;
|
|
437
|
+
max-width: 12.5rem;
|
|
438
|
+
font-weight: 500;
|
|
439
|
+
transition-property: all;
|
|
440
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
441
|
+
transition-duration: 150ms;
|
|
442
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.pure-select-tag:hover {
|
|
446
|
+
background-color: #dbeafe;
|
|
447
|
+
border-color: #bfdbfe;
|
|
448
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.pure-select-tag span {
|
|
452
|
+
white-space: nowrap;
|
|
453
|
+
overflow: hidden;
|
|
454
|
+
text-overflow: ellipsis;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
/* Pure Tag Close Button */
|
|
458
|
+
.pure-select-tag-close {
|
|
459
|
+
cursor: pointer;
|
|
460
|
+
display: flex;
|
|
461
|
+
align-items: center;
|
|
462
|
+
justify-content: center;
|
|
463
|
+
width: 1rem;
|
|
464
|
+
height: 1rem;
|
|
465
|
+
flex-shrink: 0;
|
|
466
|
+
transition-property: all;
|
|
467
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
468
|
+
transition-duration: 150ms;
|
|
469
|
+
border-radius: 0.25rem;
|
|
470
|
+
color: #1e40af;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
.pure-select-tag-close:hover {
|
|
474
|
+
background-color: rgba(30, 64, 175, 0.15);
|
|
475
|
+
color: #1e3a8a;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/* Pure Counter Badge (+N) */
|
|
479
|
+
.pure-select-counter {
|
|
480
|
+
display: inline-flex;
|
|
481
|
+
align-items: center;
|
|
482
|
+
padding: 0.25rem 0.625rem;
|
|
483
|
+
background-color: #f3f4f6;
|
|
484
|
+
color: #374151;
|
|
485
|
+
border: 1px solid #e5e7eb;
|
|
486
|
+
border-radius: 0.375rem;
|
|
487
|
+
font-size: 0.8125rem;
|
|
488
|
+
line-height: 1.125rem;
|
|
489
|
+
font-weight: 600;
|
|
490
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
/* Pure Icons Container */
|
|
494
|
+
.pure-select-icons {
|
|
495
|
+
display: flex;
|
|
496
|
+
align-items: center;
|
|
497
|
+
gap: 0.25rem;
|
|
498
|
+
flex-shrink: 0;
|
|
499
|
+
margin-left: 0.5rem;
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
/* Pure Clear Button */
|
|
503
|
+
.pure-select-clear {
|
|
504
|
+
display: flex;
|
|
505
|
+
align-items: center;
|
|
506
|
+
justify-content: center;
|
|
507
|
+
padding: 0.375rem;
|
|
508
|
+
cursor: pointer;
|
|
509
|
+
border-radius: 0.375rem;
|
|
510
|
+
transition-property: all;
|
|
511
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
512
|
+
transition-duration: 150ms;
|
|
513
|
+
color: #6b7280;
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
.pure-select-clear:hover {
|
|
517
|
+
background-color: #f3f4f6;
|
|
518
|
+
color: #374151;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
/* Pure Arrow Icon */
|
|
522
|
+
.pure-select-arrow {
|
|
523
|
+
display: flex;
|
|
524
|
+
align-items: center;
|
|
525
|
+
padding: 0.25rem;
|
|
526
|
+
transition-property: transform;
|
|
527
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
528
|
+
transition-duration: 200ms;
|
|
529
|
+
color: #6b7280;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.pure-select-arrow.pure-select-arrow-open {
|
|
533
|
+
transform: rotate(180deg);
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/* Pure Dropdown Container */
|
|
537
|
+
.pure-select-dropdown {
|
|
538
|
+
position: absolute;
|
|
539
|
+
top: calc(100% + 0.5rem);
|
|
540
|
+
left: 0;
|
|
541
|
+
right: 0;
|
|
542
|
+
min-width: 100%;
|
|
543
|
+
background-color: #ffffff;
|
|
544
|
+
border: 1px solid #e5e7eb;
|
|
545
|
+
border-radius: 0.5rem;
|
|
546
|
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
|
|
547
|
+
0 4px 6px -2px rgba(0, 0, 0, 0.05),
|
|
548
|
+
0 0 0 1px rgba(0, 0, 0, 0.05);
|
|
549
|
+
max-height: 20rem;
|
|
550
|
+
overflow: hidden;
|
|
551
|
+
display: flex;
|
|
552
|
+
flex-direction: column;
|
|
553
|
+
z-index: 50;
|
|
554
|
+
animation: pure-select-slide-down 0.15s ease-out;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
@keyframes pure-select-slide-down {
|
|
558
|
+
from {
|
|
559
|
+
opacity: 0;
|
|
560
|
+
transform: translateY(-0.5rem) scale(0.95);
|
|
561
|
+
}
|
|
562
|
+
to {
|
|
563
|
+
opacity: 1;
|
|
564
|
+
transform: translateY(0) scale(1);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/* Pure Search Input Container */
|
|
569
|
+
.pure-select-search {
|
|
570
|
+
padding: 0.75rem;
|
|
571
|
+
border-bottom: 1px solid #f3f4f6;
|
|
572
|
+
background-color: #ffffff;
|
|
573
|
+
flex-shrink: 0;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
.pure-select-search-wrapper {
|
|
577
|
+
position: relative;
|
|
578
|
+
display: flex;
|
|
579
|
+
align-items: center;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.pure-select-search input {
|
|
583
|
+
width: 100%;
|
|
584
|
+
padding: 0.625rem 0.875rem;
|
|
585
|
+
padding-left: 2.5rem;
|
|
586
|
+
border: 1px solid #e5e7eb;
|
|
587
|
+
border-radius: 0.5rem;
|
|
588
|
+
font-size: 0.875rem;
|
|
589
|
+
line-height: 1.25rem;
|
|
332
590
|
outline: none;
|
|
591
|
+
transition-property: all;
|
|
592
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
593
|
+
transition-duration: 150ms;
|
|
594
|
+
font-family: inherit;
|
|
595
|
+
color: #111827;
|
|
596
|
+
background-color: #f9fafb;
|
|
597
|
+
box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
.pure-select-search input:focus {
|
|
601
|
+
outline: 2px solid transparent;
|
|
602
|
+
outline-offset: 2px;
|
|
603
|
+
border-color: #3b82f6;
|
|
604
|
+
background-color: #ffffff;
|
|
605
|
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
.pure-select-search input::placeholder {
|
|
609
|
+
color: #9ca3af;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.pure-select-search-icon {
|
|
613
|
+
position: absolute;
|
|
614
|
+
left: 0.75rem;
|
|
615
|
+
top: 50%;
|
|
616
|
+
transform: translateY(-50%);
|
|
617
|
+
color: #9ca3af;
|
|
618
|
+
pointer-events: none;
|
|
619
|
+
display: flex;
|
|
620
|
+
align-items: center;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/* Pure Options List Container */
|
|
624
|
+
.pure-select-options {
|
|
625
|
+
overflow-y: auto;
|
|
626
|
+
overflow-x: hidden;
|
|
627
|
+
flex: 1 1 0%;
|
|
628
|
+
padding: 0.25rem;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/* Pure Scrollbar Styling */
|
|
632
|
+
.pure-select-options::-webkit-scrollbar {
|
|
633
|
+
width: 0.5rem;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
.pure-select-options::-webkit-scrollbar-track {
|
|
637
|
+
background-color: transparent;
|
|
638
|
+
border-radius: 0.25rem;
|
|
639
|
+
}
|
|
640
|
+
|
|
641
|
+
.pure-select-options::-webkit-scrollbar-thumb {
|
|
642
|
+
background-color: #e5e7eb;
|
|
643
|
+
border-radius: 0.25rem;
|
|
644
|
+
border: 2px solid transparent;
|
|
645
|
+
background-clip: padding-box;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.pure-select-options::-webkit-scrollbar-thumb:hover {
|
|
649
|
+
background-color: #d1d5db;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/* Pure Individual Option */
|
|
653
|
+
.pure-select-option {
|
|
654
|
+
display: flex;
|
|
655
|
+
align-items: center;
|
|
656
|
+
gap: 0.75rem;
|
|
657
|
+
padding: 0.625rem 0.875rem;
|
|
333
658
|
cursor: pointer;
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
659
|
+
transition-property: all;
|
|
660
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
661
|
+
transition-duration: 150ms;
|
|
662
|
+
color: #374151;
|
|
663
|
+
border-radius: 0.375rem;
|
|
664
|
+
margin-bottom: 0.125rem;
|
|
665
|
+
font-size: 0.875rem;
|
|
666
|
+
line-height: 1.25rem;
|
|
339
667
|
}
|
|
340
668
|
|
|
341
|
-
.pure-select:
|
|
342
|
-
|
|
343
|
-
box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
|
|
669
|
+
.pure-select-option:last-child {
|
|
670
|
+
margin-bottom: 0;
|
|
344
671
|
}
|
|
345
672
|
|
|
346
|
-
.pure-select:disabled {
|
|
347
|
-
background-color: #
|
|
673
|
+
.pure-select-option:hover:not(.pure-select-option-disabled) {
|
|
674
|
+
background-color: #f9fafb;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
.pure-select-option:active:not(.pure-select-option-disabled) {
|
|
678
|
+
background-color: #f3f4f6;
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
.pure-select-option.pure-select-option-selected {
|
|
682
|
+
background-color: #eff6ff;
|
|
683
|
+
color: #1e40af;
|
|
684
|
+
font-weight: 500;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.pure-select-option.pure-select-option-selected:hover {
|
|
688
|
+
background-color: #dbeafe;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
.pure-select-option.pure-select-option-disabled {
|
|
692
|
+
opacity: 0.5;
|
|
348
693
|
cursor: not-allowed;
|
|
349
|
-
opacity: 0.65;
|
|
350
694
|
}
|
|
351
695
|
|
|
352
|
-
.pure-select
|
|
353
|
-
|
|
696
|
+
.pure-select-option-icon {
|
|
697
|
+
display: flex;
|
|
698
|
+
align-items: center;
|
|
699
|
+
flex-shrink: 0;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/* Pure Custom Checkbox */
|
|
703
|
+
.pure-custom-checkbox {
|
|
704
|
+
width: 1.125rem;
|
|
705
|
+
height: 1.125rem;
|
|
706
|
+
border: 2px solid #d1d5db;
|
|
707
|
+
border-radius: 0.25rem;
|
|
708
|
+
display: flex;
|
|
709
|
+
align-items: center;
|
|
710
|
+
justify-content: center;
|
|
711
|
+
flex-shrink: 0;
|
|
712
|
+
background-color: #ffffff;
|
|
713
|
+
transition-property: all;
|
|
714
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
715
|
+
transition-duration: 150ms;
|
|
716
|
+
position: relative;
|
|
717
|
+
box-shadow: inset 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.pure-custom-checkbox.pure-checkbox-checked {
|
|
721
|
+
background-color: #3b82f6;
|
|
722
|
+
border-color: #3b82f6;
|
|
723
|
+
color: #ffffff;
|
|
724
|
+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
.pure-select-option:hover .pure-custom-checkbox:not(.pure-checkbox-checked) {
|
|
728
|
+
border-color: #9ca3af;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
/* Pure Checkbox Checkmark using SVG */
|
|
732
|
+
.pure-custom-checkbox svg {
|
|
733
|
+
width: 0.875rem;
|
|
734
|
+
height: 0.875rem;
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/* Pure Option Text */
|
|
738
|
+
.pure-select-option-text {
|
|
739
|
+
flex: 1 1 0%;
|
|
740
|
+
overflow: hidden;
|
|
741
|
+
text-overflow: ellipsis;
|
|
742
|
+
white-space: nowrap;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
/* Pure Check Icon (for single select) */
|
|
746
|
+
.pure-select-check-icon {
|
|
747
|
+
flex-shrink: 0;
|
|
748
|
+
color: #3b82f6;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/* Pure Empty State */
|
|
752
|
+
.pure-select-empty {
|
|
753
|
+
padding: 3rem 1.5rem;
|
|
754
|
+
text-align: center;
|
|
755
|
+
color: #9ca3af;
|
|
354
756
|
font-size: 0.875rem;
|
|
355
|
-
|
|
757
|
+
line-height: 1.25rem;
|
|
356
758
|
}
|
|
357
759
|
|
|
358
|
-
.pure-select
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
760
|
+
.pure-select-empty-icon {
|
|
761
|
+
width: 3rem;
|
|
762
|
+
height: 3rem;
|
|
763
|
+
margin: 0 auto 0.75rem;
|
|
764
|
+
color: #d1d5db;
|
|
362
765
|
}
|
|
363
766
|
|
|
364
|
-
|
|
365
|
-
|
|
767
|
+
/* Pure Icon Sizes */
|
|
768
|
+
.pure-icon {
|
|
769
|
+
width: 1.125rem;
|
|
770
|
+
height: 1.125rem;
|
|
771
|
+
flex-shrink: 0;
|
|
366
772
|
}
|
|
367
773
|
|
|
368
|
-
.pure-
|
|
369
|
-
|
|
370
|
-
|
|
774
|
+
.pure-icon-sm {
|
|
775
|
+
width: 0.875rem;
|
|
776
|
+
height: 0.875rem;
|
|
777
|
+
flex-shrink: 0;
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
.pure-icon-md {
|
|
781
|
+
width: 1rem;
|
|
782
|
+
height: 1rem;
|
|
783
|
+
flex-shrink: 0;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/* Pure Label */
|
|
787
|
+
.pure-select-label {
|
|
788
|
+
display: block;
|
|
789
|
+
font-size: 0.875rem;
|
|
790
|
+
line-height: 1.25rem;
|
|
791
|
+
font-weight: 500;
|
|
792
|
+
color: #374151;
|
|
793
|
+
margin-bottom: 0.5rem;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
.pure-select-label-required::after {
|
|
797
|
+
content: '*';
|
|
798
|
+
color: #ef4444;
|
|
799
|
+
margin-left: 0.25rem;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
/* Pure Helper Text */
|
|
803
|
+
.pure-select-helper {
|
|
804
|
+
margin-top: 0.5rem;
|
|
805
|
+
font-size: 0.8125rem;
|
|
806
|
+
line-height: 1.125rem;
|
|
807
|
+
color: #6b7280;
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
/* Pure Error Text */
|
|
811
|
+
.pure-select-error-text {
|
|
812
|
+
margin-top: 0.5rem;
|
|
813
|
+
font-size: 0.8125rem;
|
|
814
|
+
line-height: 1.125rem;
|
|
815
|
+
color: #ef4444;
|
|
816
|
+
display: flex;
|
|
817
|
+
align-items: center;
|
|
818
|
+
gap: 0.375rem;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.pure-select-error-icon {
|
|
822
|
+
width: 1rem;
|
|
823
|
+
height: 1rem;
|
|
824
|
+
flex-shrink: 0;
|
|
371
825
|
}
|
|
372
826
|
|
|
373
827
|
.pure-select-error {
|
|
@@ -380,21 +834,152 @@
|
|
|
380
834
|
color: #6c757d;
|
|
381
835
|
}
|
|
382
836
|
|
|
383
|
-
/*
|
|
384
|
-
.pure-select-
|
|
837
|
+
/* Pure Error State */
|
|
838
|
+
.pure-select-trigger.pure-select-error {
|
|
839
|
+
border-color: #ef4444;
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
.pure-select-trigger.pure-select-error:focus {
|
|
843
|
+
border-color: #ef4444;
|
|
844
|
+
box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
/* Loading State */
|
|
848
|
+
.pure-select-loading {
|
|
849
|
+
display: flex;
|
|
850
|
+
align-items: center;
|
|
851
|
+
justify-content: center;
|
|
852
|
+
padding: 2rem;
|
|
853
|
+
color: #9ca3af;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
.pure-select-spinner {
|
|
857
|
+
width: 1.5rem;
|
|
858
|
+
height: 1.5rem;
|
|
859
|
+
border: 2px solid #e5e7eb;
|
|
860
|
+
border-top-color: #3b82f6;
|
|
861
|
+
border-radius: 50%;
|
|
862
|
+
animation: pure-select-spin 0.6s linear infinite;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.pure-select-spinner-sm {
|
|
866
|
+
width: 1rem;
|
|
867
|
+
height: 1rem;
|
|
868
|
+
border: 2px solid #e5e7eb;
|
|
869
|
+
border-top-color: #3b82f6;
|
|
870
|
+
border-radius: 50%;
|
|
871
|
+
animation: pure-select-spin 0.6s linear infinite;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
@keyframes pure-select-spin {
|
|
875
|
+
to {
|
|
876
|
+
transform: rotate(360deg);
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
/* Load More Styles */
|
|
881
|
+
.pure-select-load-more-trigger {
|
|
882
|
+
padding: 0.5rem 0.25rem;
|
|
883
|
+
margin-top: 0.25rem;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.pure-select-load-more-button {
|
|
385
887
|
width: 100%;
|
|
888
|
+
display: flex;
|
|
889
|
+
align-items: center;
|
|
890
|
+
justify-content: center;
|
|
891
|
+
gap: 0.5rem;
|
|
892
|
+
padding: 0.625rem 1rem;
|
|
893
|
+
background-color: #f9fafb;
|
|
894
|
+
border: 1px solid #e5e7eb;
|
|
895
|
+
border-radius: 0.375rem;
|
|
896
|
+
color: #374151;
|
|
897
|
+
font-size: 0.875rem;
|
|
898
|
+
line-height: 1.25rem;
|
|
899
|
+
font-weight: 500;
|
|
900
|
+
cursor: pointer;
|
|
901
|
+
transition-property: all;
|
|
902
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
903
|
+
transition-duration: 150ms;
|
|
904
|
+
font-family: inherit;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.pure-select-load-more-button:hover {
|
|
908
|
+
background-color: #f3f4f6;
|
|
909
|
+
border-color: #d1d5db;
|
|
910
|
+
color: #1f2937;
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
.pure-select-load-more-button:active {
|
|
914
|
+
background-color: #e5e7eb;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.pure-select-load-more-button svg {
|
|
918
|
+
transition: transform 0.2s ease;
|
|
386
919
|
}
|
|
387
920
|
|
|
388
|
-
.pure-select-
|
|
921
|
+
.pure-select-load-more-button:hover svg {
|
|
922
|
+
transform: translateY(2px);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
.pure-select-load-more-loading {
|
|
926
|
+
display: flex;
|
|
927
|
+
align-items: center;
|
|
928
|
+
justify-content: center;
|
|
929
|
+
gap: 0.5rem;
|
|
930
|
+
padding: 0.625rem 1rem;
|
|
931
|
+
color: #6b7280;
|
|
932
|
+
font-size: 0.875rem;
|
|
933
|
+
line-height: 1.25rem;
|
|
934
|
+
}
|
|
935
|
+
|
|
936
|
+
/* Pure Utility Classes */
|
|
937
|
+
.pure-w-full {
|
|
389
938
|
width: 100%;
|
|
390
939
|
}
|
|
391
940
|
|
|
392
|
-
|
|
393
|
-
|
|
941
|
+
/* Responsive Design */
|
|
942
|
+
@media (max-width: 768px) {
|
|
943
|
+
.pure-select-trigger {
|
|
944
|
+
padding: 0.625rem 0.875rem;
|
|
945
|
+
min-height: 2.75rem;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
.pure-select-trigger.pure-select-small {
|
|
949
|
+
padding: 0.5rem 0.75rem;
|
|
950
|
+
min-height: 2.25rem;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
.pure-select-trigger.pure-select-large {
|
|
954
|
+
padding: 0.75rem 1rem;
|
|
955
|
+
min-height: 3.25rem;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
.pure-select-dropdown {
|
|
959
|
+
max-height: 16rem;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
.pure-select-tag {
|
|
963
|
+
font-size: 0.75rem;
|
|
964
|
+
padding: 0.1875rem 0.5rem;
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.pure-select-search input {
|
|
968
|
+
padding: 0.5rem 0.75rem;
|
|
969
|
+
padding-left: 2.25rem;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
/* Pure Focus Visible (Accessibility) */
|
|
974
|
+
.pure-select-trigger:focus-visible {
|
|
975
|
+
outline: 2px solid #3b82f6;
|
|
976
|
+
outline-offset: 2px;
|
|
394
977
|
}
|
|
395
978
|
|
|
396
|
-
.pure-select-
|
|
397
|
-
|
|
979
|
+
.pure-select-option:focus-visible {
|
|
980
|
+
outline: 2px solid #3b82f6;
|
|
981
|
+
outline-offset: -2px;
|
|
982
|
+
background-color: #f9fafb;
|
|
398
983
|
}
|
|
399
984
|
|
|
400
985
|
/* Checkbox */
|