@1337exp/taoui 1.3.5 → 1.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/README.md +24 -4
- package/README.ru.md +24 -4
- package/dist/index.cjs +742 -334
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +255 -88
- package/dist/index.mjs +743 -335
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +395 -103
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
.tao-button[data-v-
|
|
2
|
+
.tao-button[data-v-c3034f66] {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
align-items: center;
|
|
5
5
|
justify-content: center;
|
|
@@ -13,83 +13,152 @@
|
|
|
13
13
|
transition: var(--tao-transition-base);
|
|
14
14
|
position: relative;
|
|
15
15
|
}
|
|
16
|
-
.tao-button[data-v-
|
|
16
|
+
.tao-button[data-v-c3034f66]:active:not(.tao-button--text) {
|
|
17
17
|
transform: translateY(1px);
|
|
18
18
|
}
|
|
19
|
-
.tao-button[data-v-
|
|
19
|
+
.tao-button[data-v-c3034f66]:focus-visible {
|
|
20
20
|
outline: 2px solid var(--tao-color-accent);
|
|
21
21
|
outline-offset: 2px;
|
|
22
22
|
}
|
|
23
|
-
.tao-button--small[data-v-
|
|
23
|
+
.tao-button--small[data-v-c3034f66] {
|
|
24
24
|
padding: var(--tao-space-1) var(--tao-space-3);
|
|
25
25
|
font-size: var(--tao-font-size-xs);
|
|
26
26
|
height: 26px;
|
|
27
27
|
}
|
|
28
|
-
.tao-button--medium[data-v-
|
|
28
|
+
.tao-button--medium[data-v-c3034f66] {
|
|
29
29
|
padding: var(--tao-space-2) var(--tao-space-4);
|
|
30
30
|
font-size: var(--tao-font-size-md);
|
|
31
31
|
height: 30px;
|
|
32
32
|
}
|
|
33
|
-
.tao-button--large[data-v-
|
|
33
|
+
.tao-button--large[data-v-c3034f66] {
|
|
34
34
|
padding: var(--tao-space-2) var(--tao-space-6);
|
|
35
35
|
font-size: var(--tao-font-size-lg);
|
|
36
36
|
height: 38px;
|
|
37
37
|
}
|
|
38
|
-
.tao-button--primary[data-v-
|
|
38
|
+
.tao-button--primary[data-v-c3034f66] {
|
|
39
39
|
background-color: var(--tao-color-accent);
|
|
40
40
|
color: var(--tao-color-on-accent);
|
|
41
41
|
}
|
|
42
|
-
.tao-button--primary[data-v-
|
|
42
|
+
.tao-button--primary[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
43
43
|
background-color: var(--tao-color-accent-hover);
|
|
44
44
|
}
|
|
45
|
-
.tao-button--secondary[data-v-
|
|
45
|
+
.tao-button--secondary[data-v-c3034f66] {
|
|
46
46
|
background-color: var(--tao-color-surface-sunken);
|
|
47
47
|
color: var(--tao-color-text);
|
|
48
48
|
border: 1px solid var(--tao-color-border-strong);
|
|
49
49
|
}
|
|
50
|
-
.tao-button--secondary[data-v-
|
|
50
|
+
.tao-button--secondary[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
51
51
|
background-color: var(--tao-color-surface-hover);
|
|
52
52
|
color: var(--tao-color-text-strong);
|
|
53
53
|
}
|
|
54
|
-
.tao-button--ghost[data-v-
|
|
54
|
+
.tao-button--ghost[data-v-c3034f66] {
|
|
55
55
|
background-color: transparent;
|
|
56
56
|
color: var(--tao-color-accent);
|
|
57
57
|
}
|
|
58
|
-
.tao-button--ghost[data-v-
|
|
58
|
+
.tao-button--ghost[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
59
59
|
background-color: var(--tao-color-accent-subtle-hover);
|
|
60
60
|
}
|
|
61
|
-
.tao-button--
|
|
61
|
+
.tao-button--text[data-v-c3034f66] {
|
|
62
|
+
height: auto;
|
|
63
|
+
padding: 2px 4px;
|
|
64
|
+
background: transparent;
|
|
65
|
+
color: var(--tao-color-accent);
|
|
66
|
+
}
|
|
67
|
+
.tao-button--text.tao-button--small[data-v-c3034f66],
|
|
68
|
+
.tao-button--text.tao-button--medium[data-v-c3034f66],
|
|
69
|
+
.tao-button--text.tao-button--large[data-v-c3034f66] {
|
|
70
|
+
height: auto;
|
|
71
|
+
padding: 2px 4px;
|
|
72
|
+
}
|
|
73
|
+
.tao-button--text[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
74
|
+
color: var(--tao-color-accent-hover);
|
|
75
|
+
background-color: var(--tao-color-accent-subtle-hover);
|
|
76
|
+
}
|
|
77
|
+
.tao-button--danger[data-v-c3034f66] {
|
|
62
78
|
background-color: var(--tao-color-danger);
|
|
63
79
|
color: var(--tao-color-text-strong);
|
|
64
80
|
}
|
|
65
|
-
.tao-button--danger[data-v-
|
|
81
|
+
.tao-button--danger[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
66
82
|
background-color: var(--tao-color-danger-hover);
|
|
67
83
|
}
|
|
68
|
-
.tao-button--
|
|
84
|
+
.tao-button--ghost.tao-button--tone-danger[data-v-c3034f66],
|
|
85
|
+
.tao-button--text.tao-button--tone-danger[data-v-c3034f66] {
|
|
86
|
+
color: var(--tao-color-danger);
|
|
87
|
+
}
|
|
88
|
+
.tao-button--ghost.tao-button--tone-danger[data-v-c3034f66]:hover:not(.tao-button--disabled),
|
|
89
|
+
.tao-button--text.tao-button--tone-danger[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
90
|
+
color: var(--tao-color-danger-hover);
|
|
91
|
+
background-color: var(--tao-color-danger-subtle);
|
|
92
|
+
}
|
|
93
|
+
.tao-button--ghost.tao-button--tone-success[data-v-c3034f66],
|
|
94
|
+
.tao-button--text.tao-button--tone-success[data-v-c3034f66] {
|
|
95
|
+
color: var(--tao-color-success);
|
|
96
|
+
}
|
|
97
|
+
.tao-button--ghost.tao-button--tone-success[data-v-c3034f66]:hover:not(.tao-button--disabled),
|
|
98
|
+
.tao-button--text.tao-button--tone-success[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
99
|
+
color: var(--tao-color-success-hover);
|
|
100
|
+
background-color: var(--tao-color-success-subtle);
|
|
101
|
+
}
|
|
102
|
+
.tao-button--ghost.tao-button--tone-warning[data-v-c3034f66],
|
|
103
|
+
.tao-button--text.tao-button--tone-warning[data-v-c3034f66] {
|
|
104
|
+
color: var(--tao-color-warning);
|
|
105
|
+
}
|
|
106
|
+
.tao-button--ghost.tao-button--tone-warning[data-v-c3034f66]:hover:not(.tao-button--disabled),
|
|
107
|
+
.tao-button--text.tao-button--tone-warning[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
108
|
+
color: var(--tao-color-warning-hover);
|
|
109
|
+
background-color: var(--tao-color-warning-subtle);
|
|
110
|
+
}
|
|
111
|
+
.tao-button--ghost.tao-button--tone-info[data-v-c3034f66],
|
|
112
|
+
.tao-button--text.tao-button--tone-info[data-v-c3034f66] {
|
|
113
|
+
color: var(--tao-color-info);
|
|
114
|
+
}
|
|
115
|
+
.tao-button--ghost.tao-button--tone-info[data-v-c3034f66]:hover:not(.tao-button--disabled),
|
|
116
|
+
.tao-button--text.tao-button--tone-info[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
117
|
+
color: var(--tao-color-info-hover);
|
|
118
|
+
background-color: var(--tao-color-info-subtle);
|
|
119
|
+
}
|
|
120
|
+
.tao-button--secondary.tao-button--tone-danger[data-v-c3034f66] {
|
|
121
|
+
color: var(--tao-color-danger);
|
|
122
|
+
border-color: color-mix(in srgb, var(--tao-color-danger) 40%, transparent);
|
|
123
|
+
}
|
|
124
|
+
.tao-button--secondary.tao-button--tone-danger[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
125
|
+
color: var(--tao-color-danger-hover);
|
|
126
|
+
background-color: var(--tao-color-danger-subtle);
|
|
127
|
+
}
|
|
128
|
+
.tao-button--primary.tao-button--tone-danger[data-v-c3034f66],
|
|
129
|
+
.tao-button--danger.tao-button--tone-danger[data-v-c3034f66] {
|
|
130
|
+
background-color: var(--tao-color-danger);
|
|
131
|
+
color: var(--tao-color-text-strong);
|
|
132
|
+
}
|
|
133
|
+
.tao-button--primary.tao-button--tone-danger[data-v-c3034f66]:hover:not(.tao-button--disabled),
|
|
134
|
+
.tao-button--danger.tao-button--tone-danger[data-v-c3034f66]:hover:not(.tao-button--disabled) {
|
|
135
|
+
background-color: var(--tao-color-danger-hover);
|
|
136
|
+
}
|
|
137
|
+
.tao-button--disabled[data-v-c3034f66] {
|
|
69
138
|
opacity: 0.6;
|
|
70
139
|
cursor: not-allowed;
|
|
71
140
|
}
|
|
72
|
-
.tao-button--block[data-v-
|
|
141
|
+
.tao-button--block[data-v-c3034f66] {
|
|
73
142
|
width: 100%;
|
|
74
143
|
}
|
|
75
|
-
.tao-button--loading .tao-button__content[data-v-
|
|
144
|
+
.tao-button--loading .tao-button__content[data-v-c3034f66] {
|
|
76
145
|
opacity: 0;
|
|
77
146
|
}
|
|
78
|
-
.tao-button__loader[data-v-
|
|
147
|
+
.tao-button__loader[data-v-c3034f66] {
|
|
79
148
|
position: absolute;
|
|
80
149
|
width: 16px;
|
|
81
150
|
height: 16px;
|
|
82
151
|
border: 2px solid color-mix(in srgb, currentColor 15%, transparent);
|
|
83
152
|
border-top-color: currentColor;
|
|
84
153
|
border-radius: var(--tao-radius-full);
|
|
85
|
-
animation: tao-spin-
|
|
154
|
+
animation: tao-spin-c3034f66 0.8s linear infinite;
|
|
86
155
|
}
|
|
87
|
-
.tao-button__icon[data-v-
|
|
156
|
+
.tao-button__icon[data-v-c3034f66] {
|
|
88
157
|
display: flex;
|
|
89
158
|
align-items: center;
|
|
90
159
|
justify-content: center;
|
|
91
160
|
}
|
|
92
|
-
@keyframes tao-spin-
|
|
161
|
+
@keyframes tao-spin-c3034f66 {
|
|
93
162
|
to {
|
|
94
163
|
transform: rotate(360deg);
|
|
95
164
|
}
|
|
@@ -673,110 +742,77 @@ to {
|
|
|
673
742
|
color: var(--tao-color-text);
|
|
674
743
|
}
|
|
675
744
|
|
|
676
|
-
.tao-tooltip
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
745
|
+
.tao-tooltip {
|
|
746
|
+
z-index: 1060;
|
|
747
|
+
position: fixed;
|
|
748
|
+
box-sizing: border-box;
|
|
749
|
+
width: max-content;
|
|
750
|
+
max-width: min(280px, calc(100vw - 16px));
|
|
682
751
|
padding: var(--tao-space-2) var(--tao-space-3);
|
|
683
752
|
background: var(--tao-color-surface-raised);
|
|
684
753
|
color: var(--tao-color-text-strong);
|
|
685
754
|
font-size: var(--tao-font-size-xs);
|
|
755
|
+
font-family: var(--tao-font-family);
|
|
756
|
+
line-height: 1.3;
|
|
686
757
|
border-radius: var(--tao-radius-control);
|
|
687
|
-
white-space: nowrap;
|
|
688
|
-
z-index: 1000;
|
|
689
758
|
box-shadow: var(--tao-shadow-lg);
|
|
690
|
-
/* Тултип — не интерактивный элемент: не должен перехватывать
|
|
691
|
-
курсор и мешать mouseleave на wrapper'е (иначе при наведении
|
|
692
|
-
на сам тултип он "залипает" и не скрывается). */
|
|
693
759
|
pointer-events: none;
|
|
694
760
|
}
|
|
695
|
-
.tao-
|
|
696
|
-
content: '';
|
|
761
|
+
.tao-tooltip__arrow {
|
|
697
762
|
position: absolute;
|
|
698
763
|
width: 8px;
|
|
699
764
|
height: 8px;
|
|
700
765
|
background: var(--tao-color-surface-raised);
|
|
701
|
-
transform: rotate(45deg);
|
|
702
|
-
}
|
|
703
|
-
.tao-tooltip--top[data-v-fa4a9dac] {
|
|
704
|
-
bottom: 100%;
|
|
705
|
-
left: 50%;
|
|
706
|
-
transform: translateX(-50%);
|
|
707
|
-
margin-bottom: var(--tao-space-2);
|
|
708
766
|
}
|
|
709
|
-
.tao-tooltip--top
|
|
767
|
+
.tao-tooltip--top .tao-tooltip__arrow {
|
|
710
768
|
top: 100%;
|
|
711
|
-
left: 50%;
|
|
712
769
|
margin-top: -4px;
|
|
713
|
-
|
|
770
|
+
transform: translateX(-50%) rotate(45deg);
|
|
714
771
|
}
|
|
715
|
-
.tao-tooltip--bottom
|
|
716
|
-
top: 100%;
|
|
717
|
-
left: 50%;
|
|
718
|
-
transform: translateX(-50%);
|
|
719
|
-
margin-top: var(--tao-space-2);
|
|
720
|
-
}
|
|
721
|
-
.tao-tooltip--bottom[data-v-fa4a9dac]::after {
|
|
772
|
+
.tao-tooltip--bottom .tao-tooltip__arrow {
|
|
722
773
|
bottom: 100%;
|
|
723
|
-
left: 50%;
|
|
724
774
|
margin-bottom: -4px;
|
|
775
|
+
transform: translateX(-50%) rotate(45deg);
|
|
776
|
+
}
|
|
777
|
+
.tao-tooltip--left .tao-tooltip__arrow {
|
|
778
|
+
left: 100%;
|
|
725
779
|
margin-left: -4px;
|
|
780
|
+
transform: translateY(-50%) rotate(45deg);
|
|
726
781
|
}
|
|
727
|
-
.tao-tooltip--
|
|
782
|
+
.tao-tooltip--right .tao-tooltip__arrow {
|
|
728
783
|
right: 100%;
|
|
729
|
-
top: 50%;
|
|
730
|
-
transform: translateY(-50%);
|
|
731
|
-
margin-right: var(--tao-space-2);
|
|
732
|
-
}
|
|
733
|
-
.tao-tooltip--left[data-v-fa4a9dac]::after {
|
|
734
|
-
right: 0;
|
|
735
|
-
top: 50%;
|
|
736
|
-
margin-top: -4px;
|
|
737
784
|
margin-right: -4px;
|
|
785
|
+
transform: translateY(-50%) rotate(45deg);
|
|
738
786
|
}
|
|
739
|
-
.tao-tooltip
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
margin-left: var(--tao-space-2);
|
|
744
|
-
}
|
|
745
|
-
.tao-tooltip--right[data-v-fa4a9dac]::after {
|
|
746
|
-
left: 0;
|
|
747
|
-
top: 50%;
|
|
748
|
-
margin-top: -4px;
|
|
749
|
-
margin-left: -4px;
|
|
750
|
-
}
|
|
751
|
-
.tao-tooltip-fade-enter-active[data-v-fa4a9dac],
|
|
752
|
-
.tao-tooltip-fade-leave-active[data-v-fa4a9dac] {
|
|
753
|
-
transition: opacity var(--tao-duration-base) var(--tao-ease-base),
|
|
787
|
+
.tao-tooltip-fade-enter-active,
|
|
788
|
+
.tao-tooltip-fade-leave-active {
|
|
789
|
+
transition:
|
|
790
|
+
opacity var(--tao-duration-base) var(--tao-ease-base),
|
|
754
791
|
transform var(--tao-duration-base) var(--tao-ease-base);
|
|
755
792
|
}
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
поверх базового центрирующего transform каждой позиции — иначе
|
|
759
|
-
общий translateX(-50%) конфликтует с left/right, где центрирование
|
|
760
|
-
идёт по вертикали (translateY(-50%)), и блок "убегает" в сторону. */
|
|
761
|
-
.tao-tooltip--top.tao-tooltip-fade-enter-from[data-v-fa4a9dac],
|
|
762
|
-
.tao-tooltip--top.tao-tooltip-fade-leave-to[data-v-fa4a9dac] {
|
|
793
|
+
.tao-tooltip--top.tao-tooltip-fade-enter-from,
|
|
794
|
+
.tao-tooltip--top.tao-tooltip-fade-leave-to {
|
|
763
795
|
opacity: 0;
|
|
764
|
-
transform:
|
|
796
|
+
transform: translateY(4px);
|
|
765
797
|
}
|
|
766
|
-
.tao-tooltip--bottom.tao-tooltip-fade-enter-from
|
|
767
|
-
.tao-tooltip--bottom.tao-tooltip-fade-leave-to
|
|
798
|
+
.tao-tooltip--bottom.tao-tooltip-fade-enter-from,
|
|
799
|
+
.tao-tooltip--bottom.tao-tooltip-fade-leave-to {
|
|
768
800
|
opacity: 0;
|
|
769
|
-
transform:
|
|
801
|
+
transform: translateY(-4px);
|
|
770
802
|
}
|
|
771
|
-
.tao-tooltip--left.tao-tooltip-fade-enter-from
|
|
772
|
-
.tao-tooltip--left.tao-tooltip-fade-leave-to
|
|
803
|
+
.tao-tooltip--left.tao-tooltip-fade-enter-from,
|
|
804
|
+
.tao-tooltip--left.tao-tooltip-fade-leave-to {
|
|
773
805
|
opacity: 0;
|
|
774
|
-
transform:
|
|
806
|
+
transform: translateX(4px);
|
|
775
807
|
}
|
|
776
|
-
.tao-tooltip--right.tao-tooltip-fade-enter-from
|
|
777
|
-
.tao-tooltip--right.tao-tooltip-fade-leave-to
|
|
808
|
+
.tao-tooltip--right.tao-tooltip-fade-enter-from,
|
|
809
|
+
.tao-tooltip--right.tao-tooltip-fade-leave-to {
|
|
778
810
|
opacity: 0;
|
|
779
|
-
transform:
|
|
811
|
+
transform: translateX(-4px);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
.tao-tooltip-wrapper[data-v-926dfa73] {
|
|
815
|
+
display: inline-block;
|
|
780
816
|
}
|
|
781
817
|
|
|
782
818
|
.tao-popover__panel {
|
|
@@ -1130,50 +1166,112 @@ to {
|
|
|
1130
1166
|
border-color: var(--tao-color-danger);
|
|
1131
1167
|
}
|
|
1132
1168
|
|
|
1133
|
-
.tao-tag[data-v-
|
|
1169
|
+
.tao-tag[data-v-5bd7ca79] {
|
|
1134
1170
|
box-sizing: border-box;
|
|
1135
|
-
display: inline-
|
|
1171
|
+
display: inline-flex;
|
|
1172
|
+
align-items: center;
|
|
1173
|
+
gap: 6px;
|
|
1174
|
+
max-width: 100%;
|
|
1136
1175
|
height: auto;
|
|
1137
1176
|
margin: 0;
|
|
1138
|
-
padding
|
|
1177
|
+
padding: 1px var(--tao-space-2);
|
|
1178
|
+
vertical-align: middle;
|
|
1139
1179
|
white-space: nowrap;
|
|
1140
1180
|
text-align: start;
|
|
1181
|
+
line-height: 1.25;
|
|
1141
1182
|
color: var(--tao-color-accent);
|
|
1142
1183
|
background: var(--tao-color-accent-subtle);
|
|
1143
1184
|
border: 1px solid var(--tao-color-border);
|
|
1144
1185
|
border-radius: var(--tao-radius-sm);
|
|
1145
1186
|
transition: var(--tao-transition-base);
|
|
1146
1187
|
}
|
|
1147
|
-
.tao-tag--pointer[data-v-
|
|
1188
|
+
.tao-tag--pointer[data-v-5bd7ca79] {
|
|
1148
1189
|
cursor: pointer;
|
|
1149
1190
|
user-select: none;
|
|
1150
1191
|
}
|
|
1151
|
-
.tao-tag--
|
|
1192
|
+
.tao-tag--prefix[data-v-5bd7ca79] {
|
|
1193
|
+
padding-block: 2px;
|
|
1194
|
+
padding-inline-start: 3px;
|
|
1195
|
+
}
|
|
1196
|
+
.tao-tag--closable[data-v-5bd7ca79] {
|
|
1197
|
+
padding-inline-end: 2px;
|
|
1198
|
+
}
|
|
1199
|
+
.tao-tag__prefix[data-v-5bd7ca79] {
|
|
1200
|
+
display: inline-flex;
|
|
1201
|
+
flex-shrink: 0;
|
|
1202
|
+
align-items: center;
|
|
1203
|
+
justify-content: center;
|
|
1204
|
+
}
|
|
1205
|
+
.tao-tag__prefix[data-v-5bd7ca79] .tao-avatar {
|
|
1206
|
+
display: block;
|
|
1207
|
+
}
|
|
1208
|
+
.tao-tag__text[data-v-5bd7ca79] {
|
|
1209
|
+
min-width: 0;
|
|
1210
|
+
overflow: hidden;
|
|
1211
|
+
text-overflow: ellipsis;
|
|
1212
|
+
}
|
|
1213
|
+
.tao-tag__close[data-v-5bd7ca79] {
|
|
1214
|
+
display: inline-flex;
|
|
1215
|
+
flex-shrink: 0;
|
|
1216
|
+
align-items: center;
|
|
1217
|
+
justify-content: center;
|
|
1218
|
+
width: 18px;
|
|
1219
|
+
height: 18px;
|
|
1220
|
+
margin: 0;
|
|
1221
|
+
padding: 0;
|
|
1222
|
+
border: none;
|
|
1223
|
+
border-radius: var(--tao-radius-full);
|
|
1224
|
+
background: transparent;
|
|
1225
|
+
color: currentColor;
|
|
1226
|
+
opacity: 0.72;
|
|
1227
|
+
font-family: inherit;
|
|
1228
|
+
font-size: 11px;
|
|
1229
|
+
line-height: 1;
|
|
1230
|
+
cursor: pointer;
|
|
1231
|
+
}
|
|
1232
|
+
.tao-tag__close[data-v-5bd7ca79]:hover {
|
|
1233
|
+
opacity: 1;
|
|
1234
|
+
background: color-mix(in srgb, currentColor 14%, transparent);
|
|
1235
|
+
}
|
|
1236
|
+
.tao-tag__close[data-v-5bd7ca79]:focus-visible {
|
|
1237
|
+
outline: 2px solid var(--tao-color-accent);
|
|
1238
|
+
outline-offset: 1px;
|
|
1239
|
+
}
|
|
1240
|
+
.tao-tag--neutral[data-v-5bd7ca79] {
|
|
1152
1241
|
color: var(--tao-color-text);
|
|
1153
1242
|
background: var(--tao-color-surface-sunken);
|
|
1154
1243
|
border-color: var(--tao-color-border-strong);
|
|
1155
1244
|
}
|
|
1156
|
-
.tao-tag--success[data-v-
|
|
1245
|
+
.tao-tag--success[data-v-5bd7ca79] {
|
|
1157
1246
|
color: var(--tao-color-success);
|
|
1158
1247
|
background: color-mix(in srgb, var(--tao-color-success) 12%, transparent);
|
|
1159
1248
|
border-color: color-mix(in srgb, var(--tao-color-success) 30%, transparent);
|
|
1160
1249
|
}
|
|
1161
|
-
.tao-tag--danger[data-v-
|
|
1162
|
-
.tao-tag--error[data-v-
|
|
1250
|
+
.tao-tag--danger[data-v-5bd7ca79],
|
|
1251
|
+
.tao-tag--error[data-v-5bd7ca79] {
|
|
1163
1252
|
color: var(--tao-color-danger);
|
|
1164
1253
|
background: var(--tao-color-danger-subtle);
|
|
1165
1254
|
border-color: color-mix(in srgb, var(--tao-color-danger) 30%, transparent);
|
|
1166
1255
|
}
|
|
1167
|
-
.tao-tag--warning[data-v-
|
|
1256
|
+
.tao-tag--warning[data-v-5bd7ca79] {
|
|
1168
1257
|
color: var(--tao-color-warning);
|
|
1169
1258
|
background: var(--tao-color-warning-subtle);
|
|
1170
1259
|
border-color: color-mix(in srgb, var(--tao-color-warning) 30%, transparent);
|
|
1171
1260
|
}
|
|
1172
|
-
.tao-tag--info[data-v-
|
|
1261
|
+
.tao-tag--info[data-v-5bd7ca79] {
|
|
1173
1262
|
color: var(--tao-color-info);
|
|
1174
1263
|
background: var(--tao-color-info-subtle);
|
|
1175
1264
|
border-color: color-mix(in srgb, var(--tao-color-info) 30%, transparent);
|
|
1176
1265
|
}
|
|
1266
|
+
.tao-tag--flat[data-v-5bd7ca79],
|
|
1267
|
+
.tao-tag--flat.tao-tag--neutral[data-v-5bd7ca79],
|
|
1268
|
+
.tao-tag--flat.tao-tag--success[data-v-5bd7ca79],
|
|
1269
|
+
.tao-tag--flat.tao-tag--danger[data-v-5bd7ca79],
|
|
1270
|
+
.tao-tag--flat.tao-tag--error[data-v-5bd7ca79],
|
|
1271
|
+
.tao-tag--flat.tao-tag--warning[data-v-5bd7ca79],
|
|
1272
|
+
.tao-tag--flat.tao-tag--info[data-v-5bd7ca79] {
|
|
1273
|
+
border-color: transparent;
|
|
1274
|
+
}
|
|
1177
1275
|
|
|
1178
1276
|
/* variant="gap" — пустой отступ заданной высоты, без линии */
|
|
1179
1277
|
.tao-divider-gap[data-v-8187a15d] {
|
|
@@ -2519,6 +2617,200 @@ to {
|
|
|
2519
2617
|
color: var(--tao-color-text);
|
|
2520
2618
|
}
|
|
2521
2619
|
|
|
2620
|
+
.tao-segmented[data-v-cb3c591b] {
|
|
2621
|
+
display: inline-flex;
|
|
2622
|
+
flex-direction: column;
|
|
2623
|
+
align-items: flex-start;
|
|
2624
|
+
margin: 0;
|
|
2625
|
+
padding: 0;
|
|
2626
|
+
border: none;
|
|
2627
|
+
min-width: 0;
|
|
2628
|
+
vertical-align: top;
|
|
2629
|
+
}
|
|
2630
|
+
.tao-segmented--block[data-v-cb3c591b] {
|
|
2631
|
+
display: flex;
|
|
2632
|
+
width: 100%;
|
|
2633
|
+
align-items: stretch;
|
|
2634
|
+
}
|
|
2635
|
+
.tao-segmented__legend[data-v-cb3c591b] {
|
|
2636
|
+
padding: 0;
|
|
2637
|
+
margin-bottom: var(--tao-space-2);
|
|
2638
|
+
font-size: var(--tao-font-size-sm);
|
|
2639
|
+
font-weight: 500;
|
|
2640
|
+
color: var(--tao-color-text);
|
|
2641
|
+
}
|
|
2642
|
+
.tao-segmented__track[data-v-cb3c591b] {
|
|
2643
|
+
position: relative;
|
|
2644
|
+
display: inline-flex;
|
|
2645
|
+
flex-wrap: nowrap;
|
|
2646
|
+
align-items: stretch;
|
|
2647
|
+
max-width: 100%;
|
|
2648
|
+
padding: 2px;
|
|
2649
|
+
overflow: hidden;
|
|
2650
|
+
background: var(--tao-color-surface-sunken);
|
|
2651
|
+
border: 1px solid var(--tao-color-border-strong);
|
|
2652
|
+
border-radius: var(--tao-radius-control);
|
|
2653
|
+
}
|
|
2654
|
+
.tao-segmented--block .tao-segmented__track[data-v-cb3c591b] {
|
|
2655
|
+
display: flex;
|
|
2656
|
+
width: 100%;
|
|
2657
|
+
}
|
|
2658
|
+
.tao-segmented--block .tao-segmented__track[data-v-cb3c591b] > .tao-segmented-option {
|
|
2659
|
+
flex: 1 1 0;
|
|
2660
|
+
min-width: 0;
|
|
2661
|
+
}
|
|
2662
|
+
.tao-segmented--block .tao-segmented__track[data-v-cb3c591b] > .tao-segmented-option__label {
|
|
2663
|
+
overflow: hidden;
|
|
2664
|
+
text-overflow: ellipsis;
|
|
2665
|
+
}
|
|
2666
|
+
.tao-segmented__thumb[data-v-cb3c591b] {
|
|
2667
|
+
position: absolute;
|
|
2668
|
+
top: 0;
|
|
2669
|
+
left: 0;
|
|
2670
|
+
z-index: 0;
|
|
2671
|
+
background: var(--tao-color-surface-raised);
|
|
2672
|
+
border: 1px solid var(--tao-color-border);
|
|
2673
|
+
border-radius: calc(var(--tao-radius-control) - 1px);
|
|
2674
|
+
box-shadow: var(--tao-shadow-sm);
|
|
2675
|
+
pointer-events: none;
|
|
2676
|
+
transition:
|
|
2677
|
+
transform var(--tao-duration-base) var(--tao-ease-base),
|
|
2678
|
+
width var(--tao-duration-base) var(--tao-ease-base),
|
|
2679
|
+
height var(--tao-duration-base) var(--tao-ease-base),
|
|
2680
|
+
opacity var(--tao-duration-base) var(--tao-ease-base);
|
|
2681
|
+
}
|
|
2682
|
+
.tao-segmented--invalid .tao-segmented__track[data-v-cb3c591b] {
|
|
2683
|
+
border-color: var(--tao-color-danger);
|
|
2684
|
+
}
|
|
2685
|
+
.tao-segmented--disabled[data-v-cb3c591b] {
|
|
2686
|
+
cursor: not-allowed;
|
|
2687
|
+
opacity: 0.6;
|
|
2688
|
+
}
|
|
2689
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2690
|
+
.tao-segmented__thumb[data-v-cb3c591b] {
|
|
2691
|
+
transition: none;
|
|
2692
|
+
}
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
.tao-segmented-option[data-v-1a9357a1] {
|
|
2696
|
+
position: relative;
|
|
2697
|
+
z-index: 1;
|
|
2698
|
+
display: inline-flex;
|
|
2699
|
+
flex: 0 0 auto;
|
|
2700
|
+
align-items: center;
|
|
2701
|
+
min-width: 0;
|
|
2702
|
+
cursor: pointer;
|
|
2703
|
+
user-select: none;
|
|
2704
|
+
color: var(--tao-color-text-muted);
|
|
2705
|
+
}
|
|
2706
|
+
.tao-segmented-option__face[data-v-1a9357a1] {
|
|
2707
|
+
display: inline-flex;
|
|
2708
|
+
align-items: center;
|
|
2709
|
+
justify-content: center;
|
|
2710
|
+
gap: var(--tao-space-1);
|
|
2711
|
+
width: 100%;
|
|
2712
|
+
border-radius: calc(var(--tao-radius-control) - 1px);
|
|
2713
|
+
font-family: inherit;
|
|
2714
|
+
font-weight: 500;
|
|
2715
|
+
line-height: 1.25;
|
|
2716
|
+
white-space: nowrap;
|
|
2717
|
+
transition:
|
|
2718
|
+
color var(--tao-duration-base) var(--tao-ease-base),
|
|
2719
|
+
background var(--tao-duration-base) var(--tao-ease-base);
|
|
2720
|
+
}
|
|
2721
|
+
.tao-segmented-option--small .tao-segmented-option__face[data-v-1a9357a1] {
|
|
2722
|
+
min-height: 20px;
|
|
2723
|
+
padding: 0 var(--tao-space-2);
|
|
2724
|
+
font-size: var(--tao-font-size-xs);
|
|
2725
|
+
}
|
|
2726
|
+
.tao-segmented-option--medium .tao-segmented-option__face[data-v-1a9357a1] {
|
|
2727
|
+
min-height: 24px;
|
|
2728
|
+
padding: 0 var(--tao-space-3);
|
|
2729
|
+
font-size: var(--tao-font-size-sm);
|
|
2730
|
+
}
|
|
2731
|
+
.tao-segmented-option--large .tao-segmented-option__face[data-v-1a9357a1] {
|
|
2732
|
+
min-height: 32px;
|
|
2733
|
+
padding: 0 var(--tao-space-4);
|
|
2734
|
+
font-size: var(--tao-font-size-md);
|
|
2735
|
+
}
|
|
2736
|
+
.tao-segmented-option--icon-only.tao-segmented-option--small .tao-segmented-option__face[data-v-1a9357a1] {
|
|
2737
|
+
min-width: 20px;
|
|
2738
|
+
padding: 0;
|
|
2739
|
+
}
|
|
2740
|
+
.tao-segmented-option--icon-only.tao-segmented-option--medium .tao-segmented-option__face[data-v-1a9357a1] {
|
|
2741
|
+
min-width: 24px;
|
|
2742
|
+
padding: 0;
|
|
2743
|
+
}
|
|
2744
|
+
.tao-segmented-option--icon-only.tao-segmented-option--large .tao-segmented-option__face[data-v-1a9357a1] {
|
|
2745
|
+
min-width: 32px;
|
|
2746
|
+
padding: 0;
|
|
2747
|
+
}
|
|
2748
|
+
.tao-segmented-option__icon[data-v-1a9357a1] {
|
|
2749
|
+
display: inline-flex;
|
|
2750
|
+
flex-shrink: 0;
|
|
2751
|
+
align-items: center;
|
|
2752
|
+
justify-content: center;
|
|
2753
|
+
line-height: 1;
|
|
2754
|
+
}
|
|
2755
|
+
.tao-segmented-option__label[data-v-1a9357a1] {
|
|
2756
|
+
min-width: 0;
|
|
2757
|
+
line-height: 1.25;
|
|
2758
|
+
}
|
|
2759
|
+
.tao-segmented-option__count[data-v-1a9357a1] {
|
|
2760
|
+
display: inline-flex;
|
|
2761
|
+
flex-shrink: 0;
|
|
2762
|
+
align-items: center;
|
|
2763
|
+
justify-content: center;
|
|
2764
|
+
min-width: 1.15em;
|
|
2765
|
+
height: 1.15em;
|
|
2766
|
+
padding: 0 4px;
|
|
2767
|
+
border-radius: var(--tao-radius-full);
|
|
2768
|
+
background: var(--tao-color-accent-subtle);
|
|
2769
|
+
color: var(--tao-color-accent);
|
|
2770
|
+
font-size: 10px;
|
|
2771
|
+
font-weight: 700;
|
|
2772
|
+
line-height: 1;
|
|
2773
|
+
}
|
|
2774
|
+
.tao-segmented-option[data-v-1a9357a1]:hover:not(.tao-segmented-option--disabled):not(.tao-segmented-option--checked) {
|
|
2775
|
+
color: var(--tao-color-text);
|
|
2776
|
+
}
|
|
2777
|
+
.tao-segmented-option--checked[data-v-1a9357a1] {
|
|
2778
|
+
color: var(--tao-color-accent);
|
|
2779
|
+
}
|
|
2780
|
+
.tao-segmented-option--checked .tao-segmented-option__count[data-v-1a9357a1] {
|
|
2781
|
+
background: color-mix(in srgb, var(--tao-color-accent) 22%, transparent);
|
|
2782
|
+
}
|
|
2783
|
+
.tao-segmented-option--disabled[data-v-1a9357a1] {
|
|
2784
|
+
cursor: not-allowed;
|
|
2785
|
+
opacity: 0.55;
|
|
2786
|
+
}
|
|
2787
|
+
.tao-segmented-option__input[data-v-1a9357a1] {
|
|
2788
|
+
position: absolute;
|
|
2789
|
+
width: 1px;
|
|
2790
|
+
height: 1px;
|
|
2791
|
+
padding: 0;
|
|
2792
|
+
margin: -1px;
|
|
2793
|
+
overflow: hidden;
|
|
2794
|
+
clip: rect(0, 0, 0, 0);
|
|
2795
|
+
white-space: nowrap;
|
|
2796
|
+
border: 0;
|
|
2797
|
+
}
|
|
2798
|
+
.tao-segmented-option__sr[data-v-1a9357a1] {
|
|
2799
|
+
position: absolute;
|
|
2800
|
+
width: 1px;
|
|
2801
|
+
height: 1px;
|
|
2802
|
+
padding: 0;
|
|
2803
|
+
margin: -1px;
|
|
2804
|
+
overflow: hidden;
|
|
2805
|
+
clip: rect(0, 0, 0, 0);
|
|
2806
|
+
white-space: nowrap;
|
|
2807
|
+
border: 0;
|
|
2808
|
+
}
|
|
2809
|
+
.tao-segmented-option__input:focus-visible + .tao-segmented-option__face[data-v-1a9357a1] {
|
|
2810
|
+
outline: 2px solid var(--tao-color-accent);
|
|
2811
|
+
outline-offset: -2px;
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2522
2814
|
.tao-alert[data-v-4c89fa1f] {
|
|
2523
2815
|
--tao-alert-tone: var(--tao-color-info);
|
|
2524
2816
|
|