tyrell-components 1.0.0-TC53 → 1.0.0-TC55
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/dist/tyrell.js +1 -1
- package/lib/components/calendar-month.js +17 -4
- package/lib/components/calendar.d.ts +5 -3
- package/lib/components/calendar.js +20 -14
- package/lib/components/copy.js +5 -4
- package/lib/components/date-picker.d.ts +7 -0
- package/lib/components/date-picker.js +25 -0
- package/lib/components/option.js +1 -1
- package/lib/components/scroll-container.js +9 -11
- package/lib/components/select.d.ts +70 -11
- package/lib/components/select.js +142 -62
- package/lib/components/selected-tags.js +4 -0
- package/lib/components/tabs.js +23 -18
- package/lib/styles/calendar-month.js +4 -4
- package/lib/styles/calendar-navigation.d.ts +1 -1
- package/lib/styles/calendar-navigation.js +8 -4
- package/lib/styles/calendar.d.ts +1 -1
- package/lib/styles/calendar.js +1 -0
- package/lib/styles/select-base.js +81 -14
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -555,18 +555,26 @@ font-weight: 500;
|
|
|
555
555
|
color: var(--ty-text-faint);
|
|
556
556
|
margin-left: 0.25rem;
|
|
557
557
|
}
|
|
558
|
-
.dropdown-mode-mobile .mobile-
|
|
558
|
+
.dropdown-mode-mobile .mobile-body .section-header {
|
|
559
|
+
height: 36px;
|
|
560
|
+
flex: 0 0 36px;
|
|
561
|
+
}
|
|
562
|
+
.dropdown-mode-mobile .mobile-selected-section,
|
|
563
|
+
.dropdown-mode-mobile .mobile-available-section {
|
|
559
564
|
display: flex;
|
|
560
565
|
flex-direction: column;
|
|
561
566
|
background: var(--ty-input-bg);
|
|
562
567
|
overflow: hidden;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
transition:
|
|
568
|
+
min-height: 36px;
|
|
569
|
+
flex: 0 1 36px;
|
|
570
|
+
transition: flex-grow 220ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
571
|
+
}
|
|
572
|
+
.dropdown-mode-mobile .mobile-body[data-expanded="selected"] .mobile-selected-section,
|
|
573
|
+
.dropdown-mode-mobile .mobile-body[data-expanded="available"] .mobile-available-section {
|
|
574
|
+
flex-grow: 1;
|
|
566
575
|
}
|
|
567
576
|
.dropdown-mode-mobile .mobile-selected-section[data-empty="true"] {
|
|
568
|
-
|
|
569
|
-
flex: 0 0 36px;
|
|
577
|
+
flex-grow: 0;
|
|
570
578
|
}
|
|
571
579
|
.dropdown-mode-mobile .mobile-selected-section .section-content {
|
|
572
580
|
flex: 1;
|
|
@@ -581,14 +589,6 @@ align-content: flex-start;
|
|
|
581
589
|
-webkit-mask-image: linear-gradient(to bottom, black calc(100% - 12px), transparent);
|
|
582
590
|
mask-image: linear-gradient(to bottom, black calc(100% - 12px), transparent);
|
|
583
591
|
}
|
|
584
|
-
.dropdown-mode-mobile .mobile-available-section {
|
|
585
|
-
display: flex;
|
|
586
|
-
flex-direction: column;
|
|
587
|
-
background: var(--ty-input-bg);
|
|
588
|
-
overflow: hidden;
|
|
589
|
-
flex: 1 1 auto;
|
|
590
|
-
min-height: 0;
|
|
591
|
-
}
|
|
592
592
|
.dropdown-mode-mobile .mobile-available-section .section-content {
|
|
593
593
|
flex: 1;
|
|
594
594
|
min-height: 0;
|
|
@@ -600,6 +600,73 @@ flex-wrap: wrap;
|
|
|
600
600
|
gap: 0.5rem;
|
|
601
601
|
align-content: flex-start;
|
|
602
602
|
}
|
|
603
|
+
@media (prefers-reduced-motion: reduce) {
|
|
604
|
+
.dropdown-mode-mobile .mobile-selected-section,
|
|
605
|
+
.dropdown-mode-mobile .mobile-available-section {
|
|
606
|
+
transition: none;
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
.dropdown-mode-mobile .mobile-body .section-header {
|
|
610
|
+
display: flex;
|
|
611
|
+
align-items: center;
|
|
612
|
+
justify-content: space-between;
|
|
613
|
+
width: 100%;
|
|
614
|
+
border: none;
|
|
615
|
+
background: transparent;
|
|
616
|
+
font: inherit;
|
|
617
|
+
text-align: left;
|
|
618
|
+
cursor: pointer;
|
|
619
|
+
-webkit-tap-highlight-color: transparent;
|
|
620
|
+
}
|
|
621
|
+
.dropdown-mode-mobile .mobile-body .section-header svg {
|
|
622
|
+
width: 1rem;
|
|
623
|
+
height: 1rem;
|
|
624
|
+
flex-shrink: 0;
|
|
625
|
+
opacity: 0.5;
|
|
626
|
+
transition: transform 180ms ease;
|
|
627
|
+
}
|
|
628
|
+
.dropdown-mode-mobile .mobile-body .section-header[aria-expanded="true"] svg {
|
|
629
|
+
transform: rotate(180deg);
|
|
630
|
+
}
|
|
631
|
+
.dropdown-mode-mobile .mobile-selected-section[data-empty="true"] .section-header {
|
|
632
|
+
cursor: default;
|
|
633
|
+
}
|
|
634
|
+
.dropdown-mode-mobile .mobile-selected-section[data-empty="true"] .section-header svg {
|
|
635
|
+
display: none;
|
|
636
|
+
}
|
|
637
|
+
.dropdown-mode-mobile .mobile-selected-chip {
|
|
638
|
+
display: inline-flex;
|
|
639
|
+
align-items: center;
|
|
640
|
+
gap: 0.375rem;
|
|
641
|
+
padding: 0.25rem 0.5rem 0.25rem 0.625rem;
|
|
642
|
+
border: 1px solid var(--ty-border);
|
|
643
|
+
border-radius: 9999px;
|
|
644
|
+
background: var(--ty-surface-content);
|
|
645
|
+
color: var(--ty-text);
|
|
646
|
+
font: inherit;
|
|
647
|
+
font-size: var(--ty-font-sm);
|
|
648
|
+
line-height: var(--ty-leading-sm);
|
|
649
|
+
cursor: pointer;
|
|
650
|
+
transition: transform 0.1s ease, border-color 0.15s ease;
|
|
651
|
+
animation: ty-select-tag-enter 180ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
652
|
+
}
|
|
653
|
+
.dropdown-mode-mobile .mobile-selected-chip svg {
|
|
654
|
+
width: 0.875rem;
|
|
655
|
+
height: 0.875rem;
|
|
656
|
+
flex-shrink: 0;
|
|
657
|
+
opacity: 0.6;
|
|
658
|
+
}
|
|
659
|
+
@media (hover: hover) {
|
|
660
|
+
.dropdown-mode-mobile .mobile-selected-chip:hover {
|
|
661
|
+
border-color: var(--ty-text-soft);
|
|
662
|
+
}
|
|
663
|
+
.dropdown-mode-mobile .mobile-selected-chip:hover svg {
|
|
664
|
+
opacity: 1;
|
|
665
|
+
}
|
|
666
|
+
}
|
|
667
|
+
.dropdown-mode-mobile .mobile-selected-chip:active {
|
|
668
|
+
transform: scale(0.96);
|
|
669
|
+
}
|
|
603
670
|
.dropdown-mode-mobile .empty-state {
|
|
604
671
|
display: none;
|
|
605
672
|
width: 100%;
|
package/lib/version.d.ts
CHANGED
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '1.0.0-
|
|
1
|
+
export const VERSION = '1.0.0-TC55';
|