@sia-ui/react-web 0.4.0 → 0.5.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.
- package/CHANGELOG.md +53 -0
- package/README.md +129 -74
- package/dist/index.cjs +472 -363
- package/dist/index.css +303 -233
- package/dist/index.d.cts +81 -9
- package/dist/index.d.ts +81 -9
- package/dist/index.js +473 -366
- package/package.json +6 -6
package/dist/index.css
CHANGED
|
@@ -136,6 +136,11 @@
|
|
|
136
136
|
--sia-elevation-overlay: 0 10px 30px rgb(15 23 42 / 0.12), 0 2px 8px rgb(15 23 42 / 0.06);
|
|
137
137
|
--sia-elevation-modal: 0 24px 60px rgb(15 23 42 / 0.22);
|
|
138
138
|
}
|
|
139
|
+
:where(*),
|
|
140
|
+
:where(*)::before,
|
|
141
|
+
:where(*)::after {
|
|
142
|
+
box-sizing: border-box;
|
|
143
|
+
}
|
|
139
144
|
:root {
|
|
140
145
|
--sia-scrollbar-size:.625rem;
|
|
141
146
|
--sia-scrollbar-thumb:color-mix(in srgb,var(--sia-muted) 52%,transparent);
|
|
@@ -3462,27 +3467,246 @@
|
|
|
3462
3467
|
flex-wrap: wrap;
|
|
3463
3468
|
}
|
|
3464
3469
|
|
|
3470
|
+
/* src/components/Select/styles.css */
|
|
3471
|
+
.sia-select {
|
|
3472
|
+
position: relative;
|
|
3473
|
+
width: 100%;
|
|
3474
|
+
min-width: 0;
|
|
3475
|
+
}
|
|
3476
|
+
.sia-select--disabled {
|
|
3477
|
+
opacity: .6;
|
|
3478
|
+
}
|
|
3479
|
+
.sia-select__trigger {
|
|
3480
|
+
display: flex;
|
|
3481
|
+
align-items: center;
|
|
3482
|
+
justify-content: space-between;
|
|
3483
|
+
gap: .75rem;
|
|
3484
|
+
width: 100%;
|
|
3485
|
+
min-height: 2.5rem;
|
|
3486
|
+
padding: .55rem .7rem .55rem .75rem;
|
|
3487
|
+
border: 1px solid var(--sia-border);
|
|
3488
|
+
border-radius: var(--sia-radius);
|
|
3489
|
+
color: var(--sia-foreground);
|
|
3490
|
+
background: var(--sia-background);
|
|
3491
|
+
font: inherit;
|
|
3492
|
+
text-align: left;
|
|
3493
|
+
cursor: pointer;
|
|
3494
|
+
}
|
|
3495
|
+
.sia-select__trigger:hover:not(:disabled) {
|
|
3496
|
+
border-color: color-mix(in srgb, var(--sia-primary) 55%, var(--sia-border));
|
|
3497
|
+
}
|
|
3498
|
+
.sia-select__trigger:focus-visible {
|
|
3499
|
+
outline: 3px solid color-mix(in srgb, var(--sia-primary) 30%, transparent);
|
|
3500
|
+
outline-offset: 2px;
|
|
3501
|
+
}
|
|
3502
|
+
.sia-select__trigger--invalid {
|
|
3503
|
+
border-color: var(--sia-danger);
|
|
3504
|
+
}
|
|
3505
|
+
.sia-select__trigger:disabled {
|
|
3506
|
+
cursor: not-allowed;
|
|
3507
|
+
}
|
|
3508
|
+
.sia-select__value {
|
|
3509
|
+
min-width: 0;
|
|
3510
|
+
overflow: hidden;
|
|
3511
|
+
text-overflow: ellipsis;
|
|
3512
|
+
white-space: nowrap;
|
|
3513
|
+
}
|
|
3514
|
+
.sia-select__placeholder {
|
|
3515
|
+
color: var(--sia-muted);
|
|
3516
|
+
}
|
|
3517
|
+
.sia-select__actions {
|
|
3518
|
+
display: inline-flex;
|
|
3519
|
+
align-items: center;
|
|
3520
|
+
gap: .35rem;
|
|
3521
|
+
flex: none;
|
|
3522
|
+
color: var(--sia-muted);
|
|
3523
|
+
}
|
|
3524
|
+
.sia-select__clear {
|
|
3525
|
+
display: inline-grid;
|
|
3526
|
+
place-items: center;
|
|
3527
|
+
width: 1.35rem;
|
|
3528
|
+
height: 1.35rem;
|
|
3529
|
+
border-radius: 50%;
|
|
3530
|
+
font-size: 1.05rem;
|
|
3531
|
+
line-height: 1;
|
|
3532
|
+
}
|
|
3533
|
+
.sia-select__clear:hover {
|
|
3534
|
+
color: var(--sia-foreground);
|
|
3535
|
+
background: var(--sia-surface);
|
|
3536
|
+
}
|
|
3537
|
+
.sia-select__chevron {
|
|
3538
|
+
transform: translateY(-.5rem);
|
|
3539
|
+
font-size: 1.1rem;
|
|
3540
|
+
}
|
|
3541
|
+
.sia-select__overlay {
|
|
3542
|
+
overflow: hidden;
|
|
3543
|
+
border: 1px solid var(--sia-border);
|
|
3544
|
+
border-radius: var(--sia-radius);
|
|
3545
|
+
color: var(--sia-foreground);
|
|
3546
|
+
background: var(--sia-background);
|
|
3547
|
+
box-shadow: 0 14px 36px rgb(15 23 42 / .16);
|
|
3548
|
+
}
|
|
3549
|
+
.sia-select__panel {
|
|
3550
|
+
display: grid;
|
|
3551
|
+
min-width: 12rem;
|
|
3552
|
+
max-height: min(22rem, calc(100vh - 1rem));
|
|
3553
|
+
}
|
|
3554
|
+
.sia-select__search-wrap {
|
|
3555
|
+
display: flex;
|
|
3556
|
+
align-items: center;
|
|
3557
|
+
gap: .5rem;
|
|
3558
|
+
padding: .55rem .65rem;
|
|
3559
|
+
color: var(--sia-muted);
|
|
3560
|
+
border-bottom: 1px solid var(--sia-border);
|
|
3561
|
+
}
|
|
3562
|
+
.sia-select__search {
|
|
3563
|
+
min-width: 0;
|
|
3564
|
+
width: 100%;
|
|
3565
|
+
padding: .2rem 0;
|
|
3566
|
+
border: 0;
|
|
3567
|
+
outline: 0;
|
|
3568
|
+
color: var(--sia-foreground);
|
|
3569
|
+
background: transparent;
|
|
3570
|
+
font: inherit;
|
|
3571
|
+
}
|
|
3572
|
+
.sia-select__options {
|
|
3573
|
+
overflow-y: auto;
|
|
3574
|
+
padding: .35rem;
|
|
3575
|
+
}
|
|
3576
|
+
.sia-select__option {
|
|
3577
|
+
display: flex;
|
|
3578
|
+
align-items: center;
|
|
3579
|
+
justify-content: space-between;
|
|
3580
|
+
gap: .75rem;
|
|
3581
|
+
width: 100%;
|
|
3582
|
+
padding: .55rem .65rem;
|
|
3583
|
+
border: 0;
|
|
3584
|
+
border-radius: calc(var(--sia-radius) * .7);
|
|
3585
|
+
color: inherit;
|
|
3586
|
+
background: transparent;
|
|
3587
|
+
font: inherit;
|
|
3588
|
+
text-align: left;
|
|
3589
|
+
cursor: pointer;
|
|
3590
|
+
}
|
|
3591
|
+
.sia-select__option:hover:not(:disabled),
|
|
3592
|
+
.sia-select__option--active:not(:disabled) {
|
|
3593
|
+
background: var(--sia-surface);
|
|
3594
|
+
}
|
|
3595
|
+
.sia-select__option[aria-selected=true] {
|
|
3596
|
+
color: var(--sia-primary);
|
|
3597
|
+
background: color-mix(in srgb, var(--sia-primary) 10%, transparent);
|
|
3598
|
+
}
|
|
3599
|
+
.sia-select__option:disabled {
|
|
3600
|
+
opacity: .5;
|
|
3601
|
+
cursor: not-allowed;
|
|
3602
|
+
}
|
|
3603
|
+
.sia-select__option-content {
|
|
3604
|
+
display: grid;
|
|
3605
|
+
gap: .15rem;
|
|
3606
|
+
min-width: 0;
|
|
3607
|
+
}
|
|
3608
|
+
.sia-select__option-content small {
|
|
3609
|
+
color: var(--sia-muted);
|
|
3610
|
+
font-size: .78rem;
|
|
3611
|
+
line-height: 1.35;
|
|
3612
|
+
}
|
|
3613
|
+
.sia-select__status {
|
|
3614
|
+
padding: 1rem;
|
|
3615
|
+
color: var(--sia-muted);
|
|
3616
|
+
font-size: .875rem;
|
|
3617
|
+
text-align: center;
|
|
3618
|
+
}
|
|
3619
|
+
.sia-select__status--error {
|
|
3620
|
+
color: var(--sia-danger);
|
|
3621
|
+
}
|
|
3622
|
+
.sia-select__chevron {
|
|
3623
|
+
display: block;
|
|
3624
|
+
line-height: 1;
|
|
3625
|
+
transform: none;
|
|
3626
|
+
}
|
|
3627
|
+
.sia-select__chevron {
|
|
3628
|
+
width: 1.05em;
|
|
3629
|
+
height: 1.05em;
|
|
3630
|
+
flex: none;
|
|
3631
|
+
color: var(--sia-muted);
|
|
3632
|
+
transition: transform var(--sia-duration-base) var(--sia-easing-standard), color var(--sia-duration-fast) var(--sia-easing-standard);
|
|
3633
|
+
}
|
|
3634
|
+
[aria-expanded=true] > .sia-select__chevron {
|
|
3635
|
+
transform: rotate(180deg);
|
|
3636
|
+
color: var(--sia-primary);
|
|
3637
|
+
}
|
|
3638
|
+
.sia-select__trigger:hover:not(:disabled) .sia-select__chevron {
|
|
3639
|
+
color: var(--sia-foreground);
|
|
3640
|
+
}
|
|
3641
|
+
.sia-select__menu,
|
|
3642
|
+
.sia-select__panel,
|
|
3643
|
+
.sia-select__list {
|
|
3644
|
+
animation: sia-scale-in var(--sia-duration-base) var(--sia-easing-entrance);
|
|
3645
|
+
transform-origin: top center;
|
|
3646
|
+
box-shadow: var(--sia-elevation-overlay);
|
|
3647
|
+
}
|
|
3648
|
+
.sia-select--embedded {
|
|
3649
|
+
width: auto;
|
|
3650
|
+
}
|
|
3651
|
+
.sia-select--embedded .sia-select__trigger {
|
|
3652
|
+
width: auto;
|
|
3653
|
+
min-height: 0;
|
|
3654
|
+
gap: .35rem;
|
|
3655
|
+
padding: 0 .35rem;
|
|
3656
|
+
border-color: transparent;
|
|
3657
|
+
background: transparent;
|
|
3658
|
+
}
|
|
3659
|
+
.sia-select--embedded .sia-select__trigger:hover:not(:disabled) {
|
|
3660
|
+
border-color: transparent;
|
|
3661
|
+
background: var(--sia-surface);
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3465
3664
|
/* src/components/Pagination/styles.css */
|
|
3466
3665
|
.sia-pagination {
|
|
3666
|
+
--sia-pagination-size: 2.25rem;
|
|
3667
|
+
container: sia-pagination / inline-size;
|
|
3668
|
+
display: flex;
|
|
3669
|
+
flex-wrap: wrap;
|
|
3670
|
+
align-items: center;
|
|
3671
|
+
justify-content: space-between;
|
|
3672
|
+
gap: .75rem 1.5rem;
|
|
3673
|
+
width: 100%;
|
|
3674
|
+
}
|
|
3675
|
+
.sia-pagination__pages {
|
|
3467
3676
|
display: flex;
|
|
3677
|
+
flex-wrap: wrap;
|
|
3468
3678
|
align-items: center;
|
|
3469
3679
|
gap: .3rem;
|
|
3680
|
+
min-width: 0;
|
|
3681
|
+
}
|
|
3682
|
+
.sia-pagination__settings {
|
|
3683
|
+
display: flex;
|
|
3470
3684
|
flex-wrap: wrap;
|
|
3685
|
+
align-items: center;
|
|
3686
|
+
justify-content: flex-end;
|
|
3687
|
+
gap: .5rem 1.25rem;
|
|
3688
|
+
margin-left: auto;
|
|
3689
|
+
color: var(--sia-muted);
|
|
3690
|
+
font-size: .8rem;
|
|
3691
|
+
white-space: nowrap;
|
|
3471
3692
|
}
|
|
3472
|
-
.sia-
|
|
3693
|
+
.sia-pagination__step,
|
|
3694
|
+
.sia-pagination__page {
|
|
3473
3695
|
display: inline-flex;
|
|
3474
3696
|
align-items: center;
|
|
3475
3697
|
justify-content: center;
|
|
3476
3698
|
gap: .35rem;
|
|
3477
|
-
min-width:
|
|
3478
|
-
|
|
3699
|
+
min-width: var(--sia-pagination-size);
|
|
3700
|
+
height: var(--sia-pagination-size);
|
|
3479
3701
|
padding: 0 .65rem;
|
|
3480
3702
|
border: 1px solid var(--sia-border);
|
|
3481
3703
|
border-radius: var(--sia-radius);
|
|
3482
3704
|
color: var(--sia-foreground);
|
|
3483
3705
|
background: var(--sia-background);
|
|
3484
3706
|
font: inherit;
|
|
3707
|
+
font-size: .875rem;
|
|
3485
3708
|
font-variant-numeric: tabular-nums;
|
|
3709
|
+
line-height: 1;
|
|
3486
3710
|
cursor: pointer;
|
|
3487
3711
|
transition:
|
|
3488
3712
|
background-color var(--sia-duration-fast) var(--sia-easing-standard),
|
|
@@ -3490,27 +3714,36 @@
|
|
|
3490
3714
|
color var(--sia-duration-fast) var(--sia-easing-standard),
|
|
3491
3715
|
transform var(--sia-duration-instant) var(--sia-easing-standard);
|
|
3492
3716
|
}
|
|
3493
|
-
.sia-
|
|
3717
|
+
.sia-pagination__step:hover:not(:disabled),
|
|
3718
|
+
.sia-pagination__page:hover:not([aria-current=page]) {
|
|
3719
|
+
border-color: var(--sia-border-strong);
|
|
3494
3720
|
background: var(--sia-surface);
|
|
3495
3721
|
}
|
|
3496
|
-
.sia-
|
|
3722
|
+
.sia-pagination__step:active:not(:disabled),
|
|
3723
|
+
.sia-pagination__page:active {
|
|
3497
3724
|
transform: scale(.94);
|
|
3498
3725
|
}
|
|
3499
|
-
.sia-
|
|
3726
|
+
.sia-pagination__step:disabled {
|
|
3500
3727
|
cursor: not-allowed;
|
|
3501
3728
|
opacity: .5;
|
|
3502
3729
|
}
|
|
3503
|
-
.sia-
|
|
3730
|
+
.sia-pagination__step:focus-visible,
|
|
3731
|
+
.sia-pagination__page:focus-visible {
|
|
3504
3732
|
outline: 3px solid color-mix(in srgb, var(--sia-primary) 30%, transparent);
|
|
3505
3733
|
outline-offset: 2px;
|
|
3506
3734
|
}
|
|
3507
|
-
.sia-
|
|
3735
|
+
.sia-pagination__page[aria-current=page] {
|
|
3508
3736
|
color: var(--sia-primary-foreground);
|
|
3509
3737
|
border-color: var(--sia-primary);
|
|
3510
3738
|
background: var(--sia-primary);
|
|
3511
3739
|
font-weight: 600;
|
|
3512
3740
|
animation: sia-pagination-current var(--sia-duration-base) var(--sia-easing-spring);
|
|
3513
3741
|
}
|
|
3742
|
+
.sia-pagination__page[aria-current=page]:hover {
|
|
3743
|
+
color: var(--sia-primary-foreground);
|
|
3744
|
+
border-color: color-mix(in srgb, var(--sia-primary) 85%, var(--sia-foreground));
|
|
3745
|
+
background: color-mix(in srgb, var(--sia-primary) 85%, var(--sia-foreground));
|
|
3746
|
+
}
|
|
3514
3747
|
@keyframes sia-pagination-current {
|
|
3515
3748
|
0% {
|
|
3516
3749
|
transform: scale(.85);
|
|
@@ -3527,48 +3760,57 @@
|
|
|
3527
3760
|
font-size: .9em;
|
|
3528
3761
|
}
|
|
3529
3762
|
.sia-pagination__gap {
|
|
3530
|
-
|
|
3763
|
+
display: inline-flex;
|
|
3764
|
+
align-items: center;
|
|
3765
|
+
justify-content: center;
|
|
3766
|
+
min-width: 1.25rem;
|
|
3767
|
+
height: var(--sia-pagination-size);
|
|
3531
3768
|
color: var(--sia-muted);
|
|
3532
3769
|
}
|
|
3533
3770
|
.sia-pagination--compact .sia-pagination__step {
|
|
3534
3771
|
padding: 0 .5rem;
|
|
3535
3772
|
}
|
|
3536
|
-
@media (max-width: 480px) {
|
|
3537
|
-
.sia-pagination__step span {
|
|
3538
|
-
display: none;
|
|
3539
|
-
}
|
|
3540
|
-
}
|
|
3541
3773
|
.sia-pagination__total {
|
|
3542
|
-
margin-left: .5rem;
|
|
3543
|
-
color: var(--sia-muted);
|
|
3544
|
-
font-size: .8rem;
|
|
3545
3774
|
font-variant-numeric: tabular-nums;
|
|
3546
|
-
white-space: nowrap;
|
|
3547
3775
|
}
|
|
3776
|
+
.sia-pagination__size,
|
|
3548
3777
|
.sia-pagination__jump {
|
|
3549
|
-
display: flex;
|
|
3778
|
+
display: inline-flex;
|
|
3550
3779
|
align-items: center;
|
|
3551
|
-
gap: .
|
|
3552
|
-
margin-left: .5rem;
|
|
3553
|
-
color: var(--sia-muted);
|
|
3554
|
-
font-size: .8rem;
|
|
3555
|
-
white-space: nowrap;
|
|
3780
|
+
gap: .5rem;
|
|
3556
3781
|
}
|
|
3557
3782
|
.sia-pagination__jump label {
|
|
3558
3783
|
cursor: pointer;
|
|
3559
3784
|
}
|
|
3785
|
+
.sia-pagination__size .sia-select__trigger,
|
|
3560
3786
|
.sia-pagination__jump input {
|
|
3561
|
-
|
|
3562
|
-
min-height: 2.25rem;
|
|
3563
|
-
padding: 0 .5rem;
|
|
3787
|
+
height: var(--sia-pagination-size);
|
|
3564
3788
|
border: 1px solid var(--sia-border);
|
|
3565
3789
|
border-radius: var(--sia-radius);
|
|
3566
|
-
background: var(--sia-background);
|
|
3567
3790
|
color: var(--sia-foreground);
|
|
3791
|
+
background: var(--sia-background);
|
|
3568
3792
|
font: inherit;
|
|
3793
|
+
font-size: .875rem;
|
|
3569
3794
|
font-variant-numeric: tabular-nums;
|
|
3795
|
+
transition: background-color var(--sia-duration-fast) var(--sia-easing-standard), border-color var(--sia-duration-fast) var(--sia-easing-standard);
|
|
3796
|
+
}
|
|
3797
|
+
.sia-pagination__size .sia-select__trigger {
|
|
3798
|
+
min-height: 0;
|
|
3799
|
+
min-width: 4.25rem;
|
|
3800
|
+
padding: 0 .5rem 0 .7rem;
|
|
3801
|
+
justify-content: space-between;
|
|
3802
|
+
}
|
|
3803
|
+
.sia-pagination__size .sia-select__trigger:hover:not(:disabled) {
|
|
3804
|
+
border-color: var(--sia-border-strong);
|
|
3805
|
+
background: var(--sia-surface);
|
|
3806
|
+
}
|
|
3807
|
+
.sia-pagination__jump input {
|
|
3808
|
+
width: 3.25rem;
|
|
3809
|
+
padding: 0 .5rem;
|
|
3570
3810
|
text-align: center;
|
|
3571
|
-
|
|
3811
|
+
}
|
|
3812
|
+
.sia-pagination__jump input:hover {
|
|
3813
|
+
border-color: var(--sia-border-strong);
|
|
3572
3814
|
}
|
|
3573
3815
|
.sia-pagination__jump input:focus-visible {
|
|
3574
3816
|
border-color: var(--sia-primary);
|
|
@@ -3578,11 +3820,32 @@
|
|
|
3578
3820
|
.sia-pagination__jump-total {
|
|
3579
3821
|
font-variant-numeric: tabular-nums;
|
|
3580
3822
|
}
|
|
3581
|
-
@
|
|
3582
|
-
.sia-
|
|
3823
|
+
@container sia-pagination (max-width: 52rem) {
|
|
3824
|
+
.sia-pagination__settings {
|
|
3825
|
+
justify-content: flex-end;
|
|
3583
3826
|
width: 100%;
|
|
3584
3827
|
margin-left: 0;
|
|
3585
|
-
|
|
3828
|
+
}
|
|
3829
|
+
.sia-pagination__total {
|
|
3830
|
+
margin-right: auto;
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
@container sia-pagination (max-width: 34rem) {
|
|
3834
|
+
.sia-pagination__pages {
|
|
3835
|
+
justify-content: center;
|
|
3836
|
+
width: 100%;
|
|
3837
|
+
}
|
|
3838
|
+
.sia-pagination__settings {
|
|
3839
|
+
justify-content: center;
|
|
3840
|
+
column-gap: 1.5rem;
|
|
3841
|
+
}
|
|
3842
|
+
.sia-pagination__total {
|
|
3843
|
+
margin-right: 0;
|
|
3844
|
+
}
|
|
3845
|
+
}
|
|
3846
|
+
@container sia-pagination (max-width: 26rem) {
|
|
3847
|
+
.sia-pagination__step span {
|
|
3848
|
+
display: none;
|
|
3586
3849
|
}
|
|
3587
3850
|
}
|
|
3588
3851
|
|
|
@@ -4249,185 +4512,6 @@
|
|
|
4249
4512
|
grid-column: 2;
|
|
4250
4513
|
}
|
|
4251
4514
|
|
|
4252
|
-
/* src/components/Select/styles.css */
|
|
4253
|
-
.sia-select {
|
|
4254
|
-
position: relative;
|
|
4255
|
-
width: 100%;
|
|
4256
|
-
min-width: 0;
|
|
4257
|
-
}
|
|
4258
|
-
.sia-select--disabled {
|
|
4259
|
-
opacity: .6;
|
|
4260
|
-
}
|
|
4261
|
-
.sia-select__trigger {
|
|
4262
|
-
display: flex;
|
|
4263
|
-
align-items: center;
|
|
4264
|
-
justify-content: space-between;
|
|
4265
|
-
gap: .75rem;
|
|
4266
|
-
width: 100%;
|
|
4267
|
-
min-height: 2.5rem;
|
|
4268
|
-
padding: .55rem .7rem .55rem .75rem;
|
|
4269
|
-
border: 1px solid var(--sia-border);
|
|
4270
|
-
border-radius: var(--sia-radius);
|
|
4271
|
-
color: var(--sia-foreground);
|
|
4272
|
-
background: var(--sia-background);
|
|
4273
|
-
font: inherit;
|
|
4274
|
-
text-align: left;
|
|
4275
|
-
cursor: pointer;
|
|
4276
|
-
}
|
|
4277
|
-
.sia-select__trigger:hover:not(:disabled) {
|
|
4278
|
-
border-color: color-mix(in srgb, var(--sia-primary) 55%, var(--sia-border));
|
|
4279
|
-
}
|
|
4280
|
-
.sia-select__trigger:focus-visible {
|
|
4281
|
-
outline: 3px solid color-mix(in srgb, var(--sia-primary) 30%, transparent);
|
|
4282
|
-
outline-offset: 2px;
|
|
4283
|
-
}
|
|
4284
|
-
.sia-select__trigger--invalid {
|
|
4285
|
-
border-color: var(--sia-danger);
|
|
4286
|
-
}
|
|
4287
|
-
.sia-select__trigger:disabled {
|
|
4288
|
-
cursor: not-allowed;
|
|
4289
|
-
}
|
|
4290
|
-
.sia-select__value {
|
|
4291
|
-
min-width: 0;
|
|
4292
|
-
overflow: hidden;
|
|
4293
|
-
text-overflow: ellipsis;
|
|
4294
|
-
white-space: nowrap;
|
|
4295
|
-
}
|
|
4296
|
-
.sia-select__placeholder {
|
|
4297
|
-
color: var(--sia-muted);
|
|
4298
|
-
}
|
|
4299
|
-
.sia-select__actions {
|
|
4300
|
-
display: inline-flex;
|
|
4301
|
-
align-items: center;
|
|
4302
|
-
gap: .35rem;
|
|
4303
|
-
flex: none;
|
|
4304
|
-
color: var(--sia-muted);
|
|
4305
|
-
}
|
|
4306
|
-
.sia-select__clear {
|
|
4307
|
-
display: inline-grid;
|
|
4308
|
-
place-items: center;
|
|
4309
|
-
width: 1.35rem;
|
|
4310
|
-
height: 1.35rem;
|
|
4311
|
-
border-radius: 50%;
|
|
4312
|
-
font-size: 1.05rem;
|
|
4313
|
-
line-height: 1;
|
|
4314
|
-
}
|
|
4315
|
-
.sia-select__clear:hover {
|
|
4316
|
-
color: var(--sia-foreground);
|
|
4317
|
-
background: var(--sia-surface);
|
|
4318
|
-
}
|
|
4319
|
-
.sia-select__chevron {
|
|
4320
|
-
transform: translateY(-.5rem);
|
|
4321
|
-
font-size: 1.1rem;
|
|
4322
|
-
}
|
|
4323
|
-
.sia-select__overlay {
|
|
4324
|
-
overflow: hidden;
|
|
4325
|
-
border: 1px solid var(--sia-border);
|
|
4326
|
-
border-radius: var(--sia-radius);
|
|
4327
|
-
color: var(--sia-foreground);
|
|
4328
|
-
background: var(--sia-background);
|
|
4329
|
-
box-shadow: 0 14px 36px rgb(15 23 42 / .16);
|
|
4330
|
-
}
|
|
4331
|
-
.sia-select__panel {
|
|
4332
|
-
display: grid;
|
|
4333
|
-
min-width: 12rem;
|
|
4334
|
-
max-height: min(22rem, calc(100vh - 1rem));
|
|
4335
|
-
}
|
|
4336
|
-
.sia-select__search-wrap {
|
|
4337
|
-
display: flex;
|
|
4338
|
-
align-items: center;
|
|
4339
|
-
gap: .5rem;
|
|
4340
|
-
padding: .55rem .65rem;
|
|
4341
|
-
color: var(--sia-muted);
|
|
4342
|
-
border-bottom: 1px solid var(--sia-border);
|
|
4343
|
-
}
|
|
4344
|
-
.sia-select__search {
|
|
4345
|
-
min-width: 0;
|
|
4346
|
-
width: 100%;
|
|
4347
|
-
padding: .2rem 0;
|
|
4348
|
-
border: 0;
|
|
4349
|
-
outline: 0;
|
|
4350
|
-
color: var(--sia-foreground);
|
|
4351
|
-
background: transparent;
|
|
4352
|
-
font: inherit;
|
|
4353
|
-
}
|
|
4354
|
-
.sia-select__options {
|
|
4355
|
-
overflow-y: auto;
|
|
4356
|
-
padding: .35rem;
|
|
4357
|
-
}
|
|
4358
|
-
.sia-select__option {
|
|
4359
|
-
display: flex;
|
|
4360
|
-
align-items: center;
|
|
4361
|
-
justify-content: space-between;
|
|
4362
|
-
gap: .75rem;
|
|
4363
|
-
width: 100%;
|
|
4364
|
-
padding: .55rem .65rem;
|
|
4365
|
-
border: 0;
|
|
4366
|
-
border-radius: calc(var(--sia-radius) * .7);
|
|
4367
|
-
color: inherit;
|
|
4368
|
-
background: transparent;
|
|
4369
|
-
font: inherit;
|
|
4370
|
-
text-align: left;
|
|
4371
|
-
cursor: pointer;
|
|
4372
|
-
}
|
|
4373
|
-
.sia-select__option:hover:not(:disabled),
|
|
4374
|
-
.sia-select__option--active:not(:disabled) {
|
|
4375
|
-
background: var(--sia-surface);
|
|
4376
|
-
}
|
|
4377
|
-
.sia-select__option[aria-selected=true] {
|
|
4378
|
-
color: var(--sia-primary);
|
|
4379
|
-
background: color-mix(in srgb, var(--sia-primary) 10%, transparent);
|
|
4380
|
-
}
|
|
4381
|
-
.sia-select__option:disabled {
|
|
4382
|
-
opacity: .5;
|
|
4383
|
-
cursor: not-allowed;
|
|
4384
|
-
}
|
|
4385
|
-
.sia-select__option-content {
|
|
4386
|
-
display: grid;
|
|
4387
|
-
gap: .15rem;
|
|
4388
|
-
min-width: 0;
|
|
4389
|
-
}
|
|
4390
|
-
.sia-select__option-content small {
|
|
4391
|
-
color: var(--sia-muted);
|
|
4392
|
-
font-size: .78rem;
|
|
4393
|
-
line-height: 1.35;
|
|
4394
|
-
}
|
|
4395
|
-
.sia-select__status {
|
|
4396
|
-
padding: 1rem;
|
|
4397
|
-
color: var(--sia-muted);
|
|
4398
|
-
font-size: .875rem;
|
|
4399
|
-
text-align: center;
|
|
4400
|
-
}
|
|
4401
|
-
.sia-select__status--error {
|
|
4402
|
-
color: var(--sia-danger);
|
|
4403
|
-
}
|
|
4404
|
-
.sia-select__chevron {
|
|
4405
|
-
display: block;
|
|
4406
|
-
line-height: 1;
|
|
4407
|
-
transform: none;
|
|
4408
|
-
}
|
|
4409
|
-
.sia-select__chevron {
|
|
4410
|
-
width: 1.05em;
|
|
4411
|
-
height: 1.05em;
|
|
4412
|
-
flex: none;
|
|
4413
|
-
color: var(--sia-muted);
|
|
4414
|
-
transition: transform var(--sia-duration-base) var(--sia-easing-standard), color var(--sia-duration-fast) var(--sia-easing-standard);
|
|
4415
|
-
}
|
|
4416
|
-
[aria-expanded=true] > .sia-select__chevron {
|
|
4417
|
-
transform: rotate(180deg);
|
|
4418
|
-
color: var(--sia-primary);
|
|
4419
|
-
}
|
|
4420
|
-
.sia-select__trigger:hover:not(:disabled) .sia-select__chevron {
|
|
4421
|
-
color: var(--sia-foreground);
|
|
4422
|
-
}
|
|
4423
|
-
.sia-select__menu,
|
|
4424
|
-
.sia-select__panel,
|
|
4425
|
-
.sia-select__list {
|
|
4426
|
-
animation: sia-scale-in var(--sia-duration-base) var(--sia-easing-entrance);
|
|
4427
|
-
transform-origin: top center;
|
|
4428
|
-
box-shadow: var(--sia-elevation-overlay);
|
|
4429
|
-
}
|
|
4430
|
-
|
|
4431
4515
|
/* src/components/MultiSelect/styles.css */
|
|
4432
4516
|
.sia-multi-select__values {
|
|
4433
4517
|
display: flex;
|
|
@@ -5326,20 +5410,22 @@
|
|
|
5326
5410
|
letter-spacing: .02em;
|
|
5327
5411
|
}
|
|
5328
5412
|
.sia-phone__country {
|
|
5329
|
-
position: relative;
|
|
5330
5413
|
display: inline-flex;
|
|
5331
5414
|
align-items: center;
|
|
5332
5415
|
gap: .3rem;
|
|
5333
|
-
padding-right: .
|
|
5416
|
+
padding-right: .35rem;
|
|
5334
5417
|
border-right: 1px solid var(--sia-border);
|
|
5335
5418
|
color: var(--sia-foreground);
|
|
5336
5419
|
font-size: .85rem;
|
|
5337
5420
|
white-space: nowrap;
|
|
5338
|
-
transition: background-color var(--sia-duration-fast) var(--sia-easing-standard);
|
|
5339
|
-
border-radius: var(--sia-radius) 0 0 var(--sia-radius);
|
|
5340
5421
|
}
|
|
5341
|
-
.sia-phone__country
|
|
5342
|
-
|
|
5422
|
+
.sia-phone__country .sia-select__trigger {
|
|
5423
|
+
align-self: stretch;
|
|
5424
|
+
}
|
|
5425
|
+
.sia-phone__value {
|
|
5426
|
+
display: inline-flex;
|
|
5427
|
+
align-items: center;
|
|
5428
|
+
gap: .3rem;
|
|
5343
5429
|
}
|
|
5344
5430
|
.sia-phone__flag {
|
|
5345
5431
|
font-size: 1.05rem;
|
|
@@ -5349,22 +5435,6 @@
|
|
|
5349
5435
|
color: var(--sia-muted);
|
|
5350
5436
|
font-variant-numeric: tabular-nums;
|
|
5351
5437
|
}
|
|
5352
|
-
.sia-phone__select {
|
|
5353
|
-
position: absolute;
|
|
5354
|
-
inset: 0;
|
|
5355
|
-
width: 100%;
|
|
5356
|
-
height: 100%;
|
|
5357
|
-
border: 0;
|
|
5358
|
-
opacity: 0;
|
|
5359
|
-
cursor: pointer;
|
|
5360
|
-
appearance: none;
|
|
5361
|
-
}
|
|
5362
|
-
.sia-phone__select:disabled {
|
|
5363
|
-
cursor: not-allowed;
|
|
5364
|
-
}
|
|
5365
|
-
.sia-phone__select:focus-visible + * {
|
|
5366
|
-
outline: 2px solid var(--sia-primary);
|
|
5367
|
-
}
|
|
5368
5438
|
|
|
5369
5439
|
/* src/components/Popover/styles.css */
|
|
5370
5440
|
.sia-popover-anchor {
|