@hotelcard/ui 0.0.16 → 0.0.17

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.

Potentially problematic release.


This version of @hotelcard/ui might be problematic. Click here for more details.

package/dist/index.css CHANGED
@@ -3472,4 +3472,506 @@
3472
3472
  .clearAllBtn {
3473
3473
  margin-left: var(--size-rem-0-5, 8px);
3474
3474
  }
3475
+
3476
+ /* src/components/Filters/FilterPanel.module.css */
3477
+ .filterPanel {
3478
+ display: flex;
3479
+ flex-direction: column;
3480
+ width: 100%;
3481
+ background: var(--background-general-primary);
3482
+ }
3483
+ .content {
3484
+ flex: 1;
3485
+ overflow-y: auto;
3486
+ padding: 0;
3487
+ }
3488
+ .filterSection {
3489
+ padding: 24px 0;
3490
+ border-bottom: 1px solid var(--border-general-divider);
3491
+ }
3492
+ .filterTitle {
3493
+ font-family: var(--font-primary);
3494
+ font-size: var(--text-label-large-font-size);
3495
+ font-weight: var(--font-weight-medium);
3496
+ line-height: var(--text-label-large-line-height);
3497
+ color: var(--content-general-secondary);
3498
+ margin: 0 0 16px 0;
3499
+ }
3500
+ .priceRangeWrapper {
3501
+ position: relative;
3502
+ padding: 0 16px;
3503
+ }
3504
+ .histogram {
3505
+ display: flex;
3506
+ align-items: flex-end;
3507
+ height: 45px;
3508
+ width: 100%;
3509
+ }
3510
+ .histogramBar {
3511
+ flex: 1;
3512
+ min-width: 1px;
3513
+ background-color: var(--border-general-divider);
3514
+ border-right: 1px solid var(--background-general-primary);
3515
+ transition: background-color 0.15s ease;
3516
+ }
3517
+ .histogramBar:last-child {
3518
+ border-right: none;
3519
+ }
3520
+ .histogramBarActive {
3521
+ background-color: var(--content-action-highlight-idle);
3522
+ }
3523
+ .sliderContainer {
3524
+ position: relative;
3525
+ height: 44px;
3526
+ display: flex;
3527
+ align-items: center;
3528
+ user-select: none;
3529
+ }
3530
+ .sliderTrack {
3531
+ position: absolute;
3532
+ left: 0;
3533
+ right: 0;
3534
+ height: 4px;
3535
+ background-color: var(--border-general-divider);
3536
+ border-radius: 2px;
3537
+ }
3538
+ .sliderActiveTrack {
3539
+ position: absolute;
3540
+ height: 4px;
3541
+ background-color: var(--content-action-highlight-idle);
3542
+ border-radius: 2px;
3543
+ pointer-events: none;
3544
+ }
3545
+ .sliderHandle {
3546
+ position: absolute;
3547
+ width: 26px;
3548
+ height: 26px;
3549
+ background-color: var(--background-general-primary);
3550
+ border-radius: 50%;
3551
+ box-shadow: 0px 0.5px 4px 0px rgba(0, 0, 0, 0.12), 0px 6px 13px 0px rgba(0, 0, 0, 0.12);
3552
+ cursor: grab;
3553
+ transform: translateX(-50%);
3554
+ z-index: 2;
3555
+ transition: box-shadow 0.15s ease;
3556
+ }
3557
+ .sliderHandle:hover {
3558
+ box-shadow: 0px 0.5px 4px 0px rgba(0, 0, 0, 0.16), 0px 6px 16px 0px rgba(0, 0, 0, 0.16);
3559
+ }
3560
+ .sliderHandleActive {
3561
+ cursor: grabbing;
3562
+ box-shadow: 0px 0.5px 4px 0px rgba(0, 0, 0, 0.2), 0px 8px 18px 0px rgba(0, 0, 0, 0.2);
3563
+ }
3564
+ .sliderHandle:focus {
3565
+ outline: none;
3566
+ box-shadow:
3567
+ 0px 0.5px 4px 0px rgba(0, 0, 0, 0.12),
3568
+ 0px 6px 13px 0px rgba(0, 0, 0, 0.12),
3569
+ 0 0 0 2px var(--content-action-highlight-idle);
3570
+ }
3571
+ .priceInputs {
3572
+ display: flex;
3573
+ align-items: center;
3574
+ gap: 20px;
3575
+ margin-top: 16px;
3576
+ }
3577
+ .priceInputWrapper {
3578
+ flex: 1;
3579
+ }
3580
+ .priceInput {
3581
+ width: 100%;
3582
+ height: 45px;
3583
+ padding: 12px;
3584
+ background-color: var(--background-general-primary);
3585
+ border: 1px solid var(--content-general-tertiary);
3586
+ border-radius: 4px;
3587
+ font-family: var(--font-primary);
3588
+ font-size: var(--text-paragraph-base-font-size);
3589
+ font-weight: var(--font-weight-regular);
3590
+ line-height: 1.4;
3591
+ color: var(--content-general-primary);
3592
+ box-sizing: border-box;
3593
+ }
3594
+ .priceInput:hover {
3595
+ border-radius: var(--size-rem-0-5);
3596
+ border: 1px solid var(--border-action-secondary-hover);
3597
+ background: var(--background-general-primary);
3598
+ color: var(--content-general-secondary);
3599
+ font-family: var(--text-paragraph-base-font-family) !important;
3600
+ font-size: var(--text-paragraph-base-font-size) !important;
3601
+ font-style: normal;
3602
+ font-weight: var(--text-paragraph-base-font-weight) !important;
3603
+ line-height: var(--text-paragraph-base-line-height) !important;
3604
+ }
3605
+ .priceInput:focus {
3606
+ outline: none;
3607
+ border-radius: var(--size-rem-0-5);
3608
+ border: 1px solid var(--misc-focus);
3609
+ background: var(--background-general-primary);
3610
+ box-shadow: 0 0 0 2px var(--misc-focus), 0 0 16px 4px var(--misc-focus);
3611
+ color: var(--content-general-primary) !important;
3612
+ font-family: var(--text-paragraph-base-font-family) !important;
3613
+ font-size: var(--text-paragraph-base-font-size) !important;
3614
+ font-style: normal;
3615
+ font-weight: var(--text-paragraph-base-font-weight) !important;
3616
+ line-height: var(--text-paragraph-base-line-height) !important;
3617
+ }
3618
+ .priceInputDivider {
3619
+ width: 12px;
3620
+ height: 1px;
3621
+ background-color: var(--content-general-primary);
3622
+ flex-shrink: 0;
3623
+ }
3624
+ .discountList {
3625
+ display: flex;
3626
+ flex-direction: column;
3627
+ padding: var(--size-rem-0-75) var(--size-rem-0-875) var(--size-rem-0-75);
3628
+ }
3629
+ .discountRow {
3630
+ display: flex;
3631
+ justify-content: space-between;
3632
+ align-items: center;
3633
+ padding: 10px 0;
3634
+ }
3635
+ .discountCheckboxLabel {
3636
+ display: flex;
3637
+ align-items: center;
3638
+ gap: 8px;
3639
+ cursor: pointer;
3640
+ user-select: none;
3641
+ }
3642
+ .checkboxButton {
3643
+ width: 24px;
3644
+ height: 24px;
3645
+ position: relative;
3646
+ overflow: hidden;
3647
+ }
3648
+ .checkbox {
3649
+ position: absolute;
3650
+ opacity: 0;
3651
+ width: 0;
3652
+ height: 0;
3653
+ }
3654
+ .checkboxBox {
3655
+ position: absolute;
3656
+ top: 2px;
3657
+ left: 2px;
3658
+ display: flex;
3659
+ align-items: center;
3660
+ justify-content: center;
3661
+ width: 20px;
3662
+ height: 20px;
3663
+ background-color: var(--background-general-primary);
3664
+ border: 1px solid var(--border-general-divider);
3665
+ border-radius: 2px;
3666
+ transition: all 0.15s ease;
3667
+ }
3668
+ .checkbox:checked + .checkboxBox {
3669
+ background-color: var(--background-action-highlight-idle);
3670
+ }
3671
+ .checkbox:focus + .checkboxBox {
3672
+ box-shadow: none !important;
3673
+ }
3674
+ .discountCheckboxLabel:hover .checkboxBox {
3675
+ border-color: var(--content-action-highlight-idle);
3676
+ }
3677
+ .checkIcon {
3678
+ width: 12px;
3679
+ height: 10px;
3680
+ color: var(--background-general-primary);
3681
+ }
3682
+ .discountLabel {
3683
+ color: var(--content-general-primary);
3684
+ font-family: var(--text-label-medium-font-family);
3685
+ font-size: var(--text-label-medium-font-size);
3686
+ font-style: normal;
3687
+ font-weight: 500;
3688
+ line-height: var(--text-label-medium-line-height);
3689
+ }
3690
+ .discountCount {
3691
+ color: var(--content-general-tertiary);
3692
+ font-family: var(--text-label-medium-font-family);
3693
+ font-size: var(--text-label-medium-font-size);
3694
+ font-style: normal;
3695
+ font-weight: 500;
3696
+ line-height: var(--text-label-medium-line-height);
3697
+ }
3698
+ .discountRowDisabled {
3699
+ opacity: 0.5;
3700
+ pointer-events: none;
3701
+ cursor: not-allowed;
3702
+ }
3703
+ .discountRowDisabled .discountCheckboxLabel {
3704
+ cursor: not-allowed;
3705
+ }
3706
+ .discountRowDisabled .checkboxBox {
3707
+ background-color: var(--background-general-secondary);
3708
+ }
3709
+ .categoryChips {
3710
+ display: flex;
3711
+ flex-wrap: wrap;
3712
+ gap: 8px;
3713
+ }
3714
+ .categoryChip {
3715
+ display: flex;
3716
+ align-items: center;
3717
+ gap: 8px;
3718
+ padding: 8px 8px 8px 16px;
3719
+ background-color: var(--background-general-primary);
3720
+ border: 2px solid var(--border-general-divider);
3721
+ border-radius: 9999px;
3722
+ cursor: pointer;
3723
+ transition: all 0.15s ease;
3724
+ user-select: none;
3725
+ }
3726
+ .categoryChip:hover {
3727
+ border-color: var(--content-action-highlight-idle);
3728
+ }
3729
+ .categoryChipSelected {
3730
+ background-color: var(--background-action-secondary-idle);
3731
+ border-color: var(--content-action-highlight-idle);
3732
+ }
3733
+ .categoryStars {
3734
+ display: flex;
3735
+ align-items: center;
3736
+ gap: 0;
3737
+ }
3738
+ .categoryStar {
3739
+ width: 16px;
3740
+ height: 16px;
3741
+ color: var(--content-general-tertiary);
3742
+ }
3743
+ .categoryChipSelected .categoryStar {
3744
+ color: var(--content-action-highlight-idle);
3745
+ }
3746
+ .categoryLabel {
3747
+ font-family: var(--font-primary);
3748
+ font-size: var(--text-paragraph-base-font-size);
3749
+ font-weight: var(--font-weight-medium);
3750
+ line-height: 24px;
3751
+ color: var(--content-general-primary);
3752
+ white-space: nowrap;
3753
+ }
3754
+ .categoryCount {
3755
+ display: flex;
3756
+ align-items: center;
3757
+ justify-content: center;
3758
+ padding: 0 8px;
3759
+ min-width: 28px;
3760
+ height: 28px;
3761
+ background-color: var(--background-general-secondary);
3762
+ border-radius: 9999px;
3763
+ font-family: var(--font-primary);
3764
+ font-size: var(--text-label-large-font-size);
3765
+ font-weight: var(--font-weight-medium);
3766
+ line-height: 28px;
3767
+ color: var(--content-general-primary);
3768
+ }
3769
+ .categoryFooter {
3770
+ margin-top: 16px;
3771
+ }
3772
+ .categoryFooterText {
3773
+ font-family: var(--font-primary);
3774
+ font-size: var(--text-label-small-font-size);
3775
+ font-weight: var(--font-weight-medium);
3776
+ line-height: 16px;
3777
+ color: var(--content-general-tertiary);
3778
+ }
3779
+ .categoryFooterLink {
3780
+ color: var(--content-action-link-idle);
3781
+ text-decoration: underline;
3782
+ }
3783
+ .categoryFooterLink:hover {
3784
+ color: var(--content-action-link-hover);
3785
+ }
3786
+ .clearSection {
3787
+ padding: 24px 0;
3788
+ }
3789
+ .clearAllLink {
3790
+ font-family: var(--font-primary);
3791
+ font-size: var(--text-paragraph-base-font-size);
3792
+ font-weight: var(--font-weight-medium);
3793
+ line-height: 24px;
3794
+ color: var(--content-action-link-idle);
3795
+ text-decoration: underline;
3796
+ background: none;
3797
+ border: none;
3798
+ padding: 0;
3799
+ cursor: pointer;
3800
+ }
3801
+ .clearAllLink:hover {
3802
+ color: var(--content-action-link-hover);
3803
+ }
3804
+ .hidden {
3805
+ display: none;
3806
+ }
3807
+ @media (min-width: 1024px) {
3808
+ .filterPanel {
3809
+ display: flex;
3810
+ width: 100%;
3811
+ flex-shrink: 0;
3812
+ }
3813
+ }
3814
+
3815
+ /* src/components/Filters/FilterModal.module.css */
3816
+ .overlay {
3817
+ position: fixed;
3818
+ top: 0;
3819
+ left: 0;
3820
+ right: 0;
3821
+ bottom: 0;
3822
+ width: 100%;
3823
+ height: 100%;
3824
+ height: 100dvh;
3825
+ z-index: 9999;
3826
+ background-color: rgba(0, 0, 0, 0.5);
3827
+ display: flex;
3828
+ align-items: center;
3829
+ justify-content: center;
3830
+ padding: var(--size-rem-4, 64px);
3831
+ box-sizing: border-box;
3832
+ animation: fadeIn 0.2s ease-out;
3833
+ }
3834
+ @keyframes fadeIn {
3835
+ from {
3836
+ opacity: 0;
3837
+ }
3838
+ to {
3839
+ opacity: 1;
3840
+ }
3841
+ }
3842
+ .modal {
3843
+ position: relative;
3844
+ width: 100%;
3845
+ max-width: 560px;
3846
+ height: 100%;
3847
+ max-height: calc(100vh - var(--size-rem-8, 128px));
3848
+ background-color: var(--background-general-primary);
3849
+ display: flex;
3850
+ flex-direction: column;
3851
+ border-radius: var(--radius-xl, 16px);
3852
+ box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.25);
3853
+ animation: slideUp 0.3s ease-out;
3854
+ overflow: hidden;
3855
+ }
3856
+ @keyframes slideUp {
3857
+ from {
3858
+ opacity: 0;
3859
+ transform: translateY(20px);
3860
+ }
3861
+ to {
3862
+ opacity: 1;
3863
+ transform: translateY(0);
3864
+ }
3865
+ }
3866
+ @media (max-width: 767px) {
3867
+ .overlay {
3868
+ background-color: var(--background-general-primary);
3869
+ padding: 0;
3870
+ }
3871
+ .modal {
3872
+ width: 100%;
3873
+ max-width: 100%;
3874
+ height: 100%;
3875
+ max-height: 100%;
3876
+ border-radius: 0;
3877
+ box-shadow: none;
3878
+ padding-top: env(safe-area-inset-top);
3879
+ padding-bottom: env(safe-area-inset-bottom);
3880
+ }
3881
+ }
3882
+ .header {
3883
+ display: flex;
3884
+ align-items: center;
3885
+ justify-content: space-between;
3886
+ padding: var(--size-rem-1, 16px);
3887
+ height: 76px;
3888
+ flex-shrink: 0;
3889
+ border-bottom: 1px solid var(--border-general-divider);
3890
+ background-color: var(--background-general-primary);
3891
+ }
3892
+ .selectedFilters {
3893
+ padding: var(--size-rem-0, 0) var(--size-rem-3, 48px) var(--size-rem-1-5, 24px) var(--size-rem-3, 48px);
3894
+ background-color: var(--background-general-primary);
3895
+ flex-shrink: 0;
3896
+ overflow-x: auto;
3897
+ -webkit-overflow-scrolling: touch;
3898
+ }
3899
+ @media (max-width: 1023px) {
3900
+ .selectedFilters {
3901
+ border-bottom: unset !important;
3902
+ padding: var(--size-rem-0, 0) var(--size-rem-1, 16px);
3903
+ }
3904
+ }
3905
+ .title {
3906
+ flex: 1;
3907
+ margin: 0;
3908
+ color: var(--content-general-primary);
3909
+ text-align: center;
3910
+ font-family: var(--text-heading-small-font-family, inherit);
3911
+ font-size: var(--text-heading-small-font-size, 18px);
3912
+ font-style: normal;
3913
+ font-weight: 500;
3914
+ line-height: var(--text-heading-small-line-height, 1.33);
3915
+ letter-spacing: -0.6px;
3916
+ }
3917
+ @media (max-width: 1023px) {
3918
+ .title {
3919
+ text-align: left;
3920
+ }
3921
+ }
3922
+ .content {
3923
+ flex: 1;
3924
+ overflow-y: auto;
3925
+ -webkit-overflow-scrolling: touch;
3926
+ }
3927
+ .filterPanel {
3928
+ padding: var(--size-rem-0, 0) var(--size-rem-3, 48px) var(--size-rem-1-5, 24px) var(--size-rem-3, 48px);
3929
+ margin: 0;
3930
+ width: 100% !important;
3931
+ display: flex !important;
3932
+ }
3933
+ @media (max-width: 1023px) {
3934
+ .filterPanel {
3935
+ padding: var(--size-rem-0, 0) var(--size-rem-1, 16px);
3936
+ }
3937
+ }
3938
+ .footer {
3939
+ display: flex;
3940
+ align-items: center;
3941
+ justify-content: space-between;
3942
+ padding: var(--size-rem-1-5, 24px) var(--size-rem-3, 48px) var(--size-rem-1-5, 24px) var(--size-rem-3, 48px);
3943
+ height: 92px;
3944
+ flex-shrink: 0;
3945
+ border-top: 1px solid var(--border-general-divider);
3946
+ background-color: var(--background-general-primary);
3947
+ }
3948
+ @media (max-width: 1023px) {
3949
+ .footer {
3950
+ padding: var(--size-rem-1-5, 24px) var(--size-rem-1, 16px);
3951
+ }
3952
+ }
3953
+ .footerLink {
3954
+ transition: color 0.15s ease;
3955
+ color: var(--content-action-link-idle);
3956
+ font-family: var(--text-label-large-font-family, inherit);
3957
+ font-size: var(--text-label-large-font-size, 16px);
3958
+ font-style: normal;
3959
+ font-weight: 500;
3960
+ line-height: var(--text-label-large-line-height, 1.55);
3961
+ text-decoration-line: underline;
3962
+ text-decoration-style: solid;
3963
+ text-decoration-skip-ink: none;
3964
+ text-decoration-thickness: auto;
3965
+ text-underline-offset: auto;
3966
+ text-underline-position: from-font;
3967
+ cursor: pointer;
3968
+ }
3969
+ .footerLink:focus {
3970
+ outline: none;
3971
+ box-shadow: none;
3972
+ }
3973
+ .footerLink:disabled {
3974
+ color: var(--content-action-disabled-idle);
3975
+ cursor: not-allowed;
3976
+ }
3475
3977
  /*# sourceMappingURL=index.css.map */