@hotelcard/ui 0.0.11 → 0.0.12
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/README.md +40 -0
- package/dist/index.cjs +209 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +201 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +69 -1
- package/dist/index.d.ts +69 -1
- package/dist/index.js +208 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -2497,4 +2497,205 @@
|
|
|
2497
2497
|
.hc-date-selector__dropdown--mobile.hc-date-selector__dropdown--open {
|
|
2498
2498
|
transform: translateY(0);
|
|
2499
2499
|
}
|
|
2500
|
+
|
|
2501
|
+
/* src/components/GuestSelector/GuestContent.css */
|
|
2502
|
+
.hc-guest-content {
|
|
2503
|
+
display: flex;
|
|
2504
|
+
flex-direction: column;
|
|
2505
|
+
width: 100%;
|
|
2506
|
+
}
|
|
2507
|
+
.hc-guest-content__row {
|
|
2508
|
+
display: flex;
|
|
2509
|
+
align-items: center;
|
|
2510
|
+
justify-content: space-between;
|
|
2511
|
+
height: 76px;
|
|
2512
|
+
padding: var(--size-rem-1, 16px) 0;
|
|
2513
|
+
}
|
|
2514
|
+
.hc-guest-content__row--children {
|
|
2515
|
+
flex-direction: column;
|
|
2516
|
+
align-items: unset !important;
|
|
2517
|
+
justify-content: unset !important;
|
|
2518
|
+
height: auto;
|
|
2519
|
+
min-height: auto;
|
|
2520
|
+
}
|
|
2521
|
+
.hc-guest-content__row-header {
|
|
2522
|
+
display: flex;
|
|
2523
|
+
align-items: center;
|
|
2524
|
+
justify-content: space-between;
|
|
2525
|
+
margin-bottom: var(--size-rem-1, 16px);
|
|
2526
|
+
}
|
|
2527
|
+
.hc-guest-content__row:not(:last-child) {
|
|
2528
|
+
border-bottom: 1px solid var(--border-general-divider, #E5E7EB);
|
|
2529
|
+
}
|
|
2530
|
+
.hc-guest-content__label {
|
|
2531
|
+
display: flex;
|
|
2532
|
+
flex-direction: column;
|
|
2533
|
+
gap: var(--size-rem-0-25, 4px);
|
|
2534
|
+
}
|
|
2535
|
+
.hc-guest-content__name {
|
|
2536
|
+
color: var(--content-general-primary, #1F2937);
|
|
2537
|
+
font-family: var(--text-label-large-font-family, system-ui, -apple-system, sans-serif);
|
|
2538
|
+
font-size: var(--text-label-large-font-size, 18px);
|
|
2539
|
+
font-style: normal;
|
|
2540
|
+
font-weight: 500;
|
|
2541
|
+
line-height: var(--text-label-large-line-height, 1.56);
|
|
2542
|
+
}
|
|
2543
|
+
.hc-guest-content__counter {
|
|
2544
|
+
display: flex;
|
|
2545
|
+
align-items: center;
|
|
2546
|
+
gap: var(--size-rem-0-5, 8px);
|
|
2547
|
+
}
|
|
2548
|
+
.hc-guest-content__counter-button {
|
|
2549
|
+
border-radius: 88888888px !important;
|
|
2550
|
+
border: 2px solid var(--border-action-secondary-idle, #D1D5DB) !important;
|
|
2551
|
+
background: var(--background-action-secondary-idle, #FFFFFF) !important;
|
|
2552
|
+
display: flex;
|
|
2553
|
+
width: 44px !important;
|
|
2554
|
+
height: 44px !important;
|
|
2555
|
+
padding: 12px !important;
|
|
2556
|
+
justify-content: center !important;
|
|
2557
|
+
align-items: center;
|
|
2558
|
+
aspect-ratio: 1 / 1;
|
|
2559
|
+
cursor: pointer !important;
|
|
2560
|
+
transition: all 0.2s ease;
|
|
2561
|
+
}
|
|
2562
|
+
.hc-guest-content__counter-button svg {
|
|
2563
|
+
width: 20px;
|
|
2564
|
+
height: 20px;
|
|
2565
|
+
flex-shrink: 0;
|
|
2566
|
+
}
|
|
2567
|
+
.hc-guest-content__counter-button:hover:not(:disabled) {
|
|
2568
|
+
border-color: var(--color-red-500, #EF4444);
|
|
2569
|
+
color: var(--color-red-500, #EF4444);
|
|
2570
|
+
}
|
|
2571
|
+
.hc-guest-content__counter-button:active:not(:disabled) {
|
|
2572
|
+
transform: scale(0.95);
|
|
2573
|
+
}
|
|
2574
|
+
.hc-guest-content__counter-button:disabled {
|
|
2575
|
+
cursor: not-allowed;
|
|
2576
|
+
border-radius: 88888888px !important;
|
|
2577
|
+
background: var(--background-action-disabled-idle, #F3F4F6) !important;
|
|
2578
|
+
border: none !important;
|
|
2579
|
+
}
|
|
2580
|
+
.hc-guest-content__counter-value {
|
|
2581
|
+
color: var(--content-general-primary, #1F2937);
|
|
2582
|
+
text-align: center;
|
|
2583
|
+
font-family: var(--text-paragraph-base-font-family, system-ui, -apple-system, sans-serif);
|
|
2584
|
+
font-size: var(--text-paragraph-base-font-size, 16px);
|
|
2585
|
+
font-style: normal;
|
|
2586
|
+
font-weight: var(--text-paragraph-base-font-weight, 400);
|
|
2587
|
+
line-height: var(--text-paragraph-base-line-height, 1.5);
|
|
2588
|
+
width: 24px;
|
|
2589
|
+
min-width: 24px;
|
|
2590
|
+
}
|
|
2591
|
+
.hc-guest-content__toggle-wrapper {
|
|
2592
|
+
display: flex;
|
|
2593
|
+
align-items: center;
|
|
2594
|
+
}
|
|
2595
|
+
.hc-guest-content__toggle {
|
|
2596
|
+
position: relative;
|
|
2597
|
+
display: inline-block;
|
|
2598
|
+
width: 50px;
|
|
2599
|
+
height: 28px;
|
|
2600
|
+
aspect-ratio: 25/14;
|
|
2601
|
+
}
|
|
2602
|
+
.hc-guest-content__toggle input {
|
|
2603
|
+
opacity: 0;
|
|
2604
|
+
width: 0;
|
|
2605
|
+
height: 0;
|
|
2606
|
+
}
|
|
2607
|
+
.hc-guest-content__slider {
|
|
2608
|
+
position: absolute;
|
|
2609
|
+
cursor: pointer;
|
|
2610
|
+
inset: 0;
|
|
2611
|
+
transition: 0.3s;
|
|
2612
|
+
border-radius: 999px;
|
|
2613
|
+
border-radius: 88888888px;
|
|
2614
|
+
background: var(--background-action-disabled-idle, #F3F4F6);
|
|
2615
|
+
}
|
|
2616
|
+
.hc-guest-content__slider::before {
|
|
2617
|
+
position: absolute;
|
|
2618
|
+
content: "";
|
|
2619
|
+
height: 24px;
|
|
2620
|
+
width: 24px;
|
|
2621
|
+
left: 2px;
|
|
2622
|
+
top: 2px;
|
|
2623
|
+
background-color: var(--color-ink-base-white, #FFFFFF);
|
|
2624
|
+
transition: 0.3s;
|
|
2625
|
+
border-radius: 88888888px;
|
|
2626
|
+
}
|
|
2627
|
+
.hc-guest-content__toggle input:checked + .hc-guest-content__slider {
|
|
2628
|
+
border-radius: 88888888px;
|
|
2629
|
+
background: var(--content-action-highlight-idle, #C81E4C);
|
|
2630
|
+
}
|
|
2631
|
+
.hc-guest-content__toggle input:checked + .hc-guest-content__slider::before {
|
|
2632
|
+
transform: translateX(22px);
|
|
2633
|
+
}
|
|
2634
|
+
.hc-guest-content__children-dropdowns {
|
|
2635
|
+
display: grid;
|
|
2636
|
+
gap: 12px;
|
|
2637
|
+
width: 100%;
|
|
2638
|
+
max-height: max-content;
|
|
2639
|
+
padding: var(--size-rem-1, 16px);
|
|
2640
|
+
overflow: auto;
|
|
2641
|
+
border-radius: var(--size-rem-0-75, 12px);
|
|
2642
|
+
background: var(--background-general-tertiary, #F9FAFB);
|
|
2643
|
+
box-sizing: border-box;
|
|
2644
|
+
}
|
|
2645
|
+
.hc-guest-content__child-dropdown {
|
|
2646
|
+
display: flex;
|
|
2647
|
+
flex-direction: column;
|
|
2648
|
+
align-items: flex-start;
|
|
2649
|
+
gap: var(--size-rem-0-5, 8px);
|
|
2650
|
+
align-self: stretch;
|
|
2651
|
+
border-radius: var(--size-rem-0-75, 12px);
|
|
2652
|
+
height: max-content;
|
|
2653
|
+
}
|
|
2654
|
+
.hc-guest-content__child-dropdown label {
|
|
2655
|
+
color: var(--content-general-primary, #1F2937);
|
|
2656
|
+
font-family: var(--text-label-medium-font-family, system-ui, -apple-system, sans-serif);
|
|
2657
|
+
font-size: var(--text-label-medium-font-size, 14px);
|
|
2658
|
+
font-style: normal;
|
|
2659
|
+
font-weight: 500;
|
|
2660
|
+
line-height: var(--text-label-medium-line-height, 1.5);
|
|
2661
|
+
}
|
|
2662
|
+
.hc-guest-content__select {
|
|
2663
|
+
appearance: none;
|
|
2664
|
+
-webkit-appearance: none;
|
|
2665
|
+
-moz-appearance: none;
|
|
2666
|
+
width: 100%;
|
|
2667
|
+
display: flex;
|
|
2668
|
+
padding: var(--size-rem-0-75, 12px);
|
|
2669
|
+
align-items: center;
|
|
2670
|
+
gap: var(--size-rem-0-75, 12px);
|
|
2671
|
+
align-self: stretch;
|
|
2672
|
+
border-radius: var(--size-rem-0-5, 8px);
|
|
2673
|
+
border: 1px solid var(--border-action-secondary-idle, #D1D5DB);
|
|
2674
|
+
background: var(--background-general-primary, #FFFFFF);
|
|
2675
|
+
color: var(--content-general-primary, #1F2937);
|
|
2676
|
+
font-family: var(--text-paragraph-base-font-family, system-ui, -apple-system, sans-serif);
|
|
2677
|
+
font-size: var(--text-paragraph-base-font-size, 16px);
|
|
2678
|
+
font-style: normal;
|
|
2679
|
+
font-weight: var(--text-paragraph-base-font-weight, 400);
|
|
2680
|
+
line-height: var(--text-paragraph-base-line-height, 1.5);
|
|
2681
|
+
}
|
|
2682
|
+
.hc-guest-content__select-wrapper {
|
|
2683
|
+
position: relative;
|
|
2684
|
+
width: 100%;
|
|
2685
|
+
}
|
|
2686
|
+
.hc-guest-content__select-icon {
|
|
2687
|
+
position: absolute;
|
|
2688
|
+
right: 12px;
|
|
2689
|
+
top: 50%;
|
|
2690
|
+
transform: translateY(-50%);
|
|
2691
|
+
pointer-events: none;
|
|
2692
|
+
transition: transform 0.2s ease;
|
|
2693
|
+
}
|
|
2694
|
+
.hc-guest-content__select--error {
|
|
2695
|
+
border: 1px solid var(--color-red-500, #EF4444) !important;
|
|
2696
|
+
}
|
|
2697
|
+
.hc-guest-content__error-text {
|
|
2698
|
+
color: var(--color-red-500, #EF4444);
|
|
2699
|
+
font-size: 12px;
|
|
2700
|
+
}
|
|
2500
2701
|
/*# sourceMappingURL=index.css.map */
|