@taiga-ui/legacy 5.0.0 → 5.1.0-canary.71f34cd
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/fesm2022/taiga-ui-legacy-components-carousel.mjs +15 -15
- package/fesm2022/taiga-ui-legacy-components-dialog.mjs +9 -9
- package/fesm2022/taiga-ui-legacy-components-mobile-dialog.mjs +6 -6
- package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +9 -9
- package/package.json +9 -9
- package/styles/basic/keyframes.less +19 -0
- package/styles/basic/main.less +72 -0
- package/styles/markup/tui-container.less +61 -0
- package/styles/markup/tui-form.less +146 -0
- package/styles/markup/tui-island.less +200 -0
- package/styles/markup/tui-list.less +136 -0
- package/styles/markup/tui-mobile-only.less +5 -0
- package/styles/markup/tui-required.less +13 -0
- package/styles/markup/tui-row.less +137 -0
- package/styles/markup/tui-skeleton.less +43 -0
- package/styles/markup/tui-space.less +52 -0
- package/styles/markup/tui-table.less +184 -0
- package/styles/markup/tui-text.less +57 -0
- package/styles/taiga-ui-global.less +14 -0
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
@height-cell-large: 5rem;
|
|
2
|
+
|
|
3
|
+
.tui-table {
|
|
4
|
+
inline-size: 100%;
|
|
5
|
+
|
|
6
|
+
&_layout_fixed {
|
|
7
|
+
table-layout: fixed;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&__tr {
|
|
11
|
+
.transition(background);
|
|
12
|
+
|
|
13
|
+
outline: none;
|
|
14
|
+
|
|
15
|
+
&:not(&_hover_disabled):hover {
|
|
16
|
+
background: var(--tui-background-base-alt);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&:not(&_border_none) {
|
|
20
|
+
border-block-end: 1px solid var(--tui-border-normal);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&_border_top {
|
|
24
|
+
border-block-start: 1px solid var(--tui-border-normal);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&_cursor_pointer {
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__th {
|
|
33
|
+
.text-overflow();
|
|
34
|
+
|
|
35
|
+
font: var(--tui-typography-body-s);
|
|
36
|
+
padding: 0.5rem 1rem;
|
|
37
|
+
vertical-align: middle;
|
|
38
|
+
block-size: 2.5rem;
|
|
39
|
+
color: var(--tui-text-secondary);
|
|
40
|
+
background: inherit;
|
|
41
|
+
|
|
42
|
+
&_font-size_l,
|
|
43
|
+
.tui-table_font-size_l & {
|
|
44
|
+
font: var(--tui-typography-body-m);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&__td {
|
|
49
|
+
font: var(--tui-typography-body-m);
|
|
50
|
+
padding: 1rem 1rem 0.875rem;
|
|
51
|
+
vertical-align: top;
|
|
52
|
+
overflow-wrap: break-word;
|
|
53
|
+
block-size: 3.4375rem;
|
|
54
|
+
color: var(--tui-text-primary);
|
|
55
|
+
background: inherit;
|
|
56
|
+
|
|
57
|
+
&_size_l,
|
|
58
|
+
.tui-table_size_l & {
|
|
59
|
+
block-size: @height-cell-large - 0.0625rem;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&_font-size_l,
|
|
63
|
+
.tui-table_font-size_l & {
|
|
64
|
+
font: var(--tui-typography-body-l);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&_font-size_s,
|
|
68
|
+
.tui-table_font-size_s & {
|
|
69
|
+
font: var(--tui-typography-body-s);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&_align_center {
|
|
73
|
+
vertical-align: middle;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&__td,
|
|
78
|
+
&__th {
|
|
79
|
+
box-sizing: border-box;
|
|
80
|
+
text-align: start;
|
|
81
|
+
|
|
82
|
+
.tui-table_size_l &::before {
|
|
83
|
+
inline-size: 1rem;
|
|
84
|
+
border-top-left-radius: 1rem;
|
|
85
|
+
border-bottom-left-radius: 1rem;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&_first::before,
|
|
89
|
+
&_last::before {
|
|
90
|
+
content: '';
|
|
91
|
+
position: absolute;
|
|
92
|
+
inset-block-start: 0;
|
|
93
|
+
inline-size: 0.75rem;
|
|
94
|
+
block-size: 100%;
|
|
95
|
+
background: inherit;
|
|
96
|
+
border-top-left-radius: 0.75rem;
|
|
97
|
+
border-bottom-left-radius: 0.75rem;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&_first {
|
|
101
|
+
position: relative;
|
|
102
|
+
padding-inline-start: 0;
|
|
103
|
+
overflow: visible;
|
|
104
|
+
|
|
105
|
+
&::before {
|
|
106
|
+
inset-inline-end: 100%;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&_last {
|
|
111
|
+
position: relative;
|
|
112
|
+
padding-inline-end: 0;
|
|
113
|
+
overflow: visible;
|
|
114
|
+
|
|
115
|
+
&::before {
|
|
116
|
+
inset-inline-start: 100%;
|
|
117
|
+
transform: scaleX(-1);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&_text_center {
|
|
122
|
+
text-align: center;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&_text_right {
|
|
126
|
+
text-align: end;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&_text_overflow {
|
|
130
|
+
.text-overflow();
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&__subtext {
|
|
135
|
+
font: var(--tui-typography-body-s);
|
|
136
|
+
margin: 0.25rem 0 0;
|
|
137
|
+
color: var(--tui-text-tertiary);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&__sort {
|
|
141
|
+
.button-clear();
|
|
142
|
+
.transition(color);
|
|
143
|
+
|
|
144
|
+
position: relative;
|
|
145
|
+
display: inline-flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
outline: none;
|
|
148
|
+
cursor: pointer;
|
|
149
|
+
|
|
150
|
+
&:hover {
|
|
151
|
+
color: var(--tui-text-primary);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&_active {
|
|
155
|
+
color: var(--tui-text-action);
|
|
156
|
+
|
|
157
|
+
&:hover {
|
|
158
|
+
color: var(--tui-text-action-hover);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&__sort-icon {
|
|
164
|
+
.center-top();
|
|
165
|
+
|
|
166
|
+
inset-inline-start: 100%;
|
|
167
|
+
margin-inline-start: 0.125rem;
|
|
168
|
+
inline-size: 1rem;
|
|
169
|
+
block-size: 1rem;
|
|
170
|
+
flex-shrink: 0;
|
|
171
|
+
opacity: 0;
|
|
172
|
+
|
|
173
|
+
.tui-table__sort_active &,
|
|
174
|
+
.tui-table__sort:hover & {
|
|
175
|
+
.transition(transform);
|
|
176
|
+
|
|
177
|
+
opacity: 1;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.tui-table__sort_active.tui-table__sort_up & {
|
|
181
|
+
transform: rotate(180deg) translateY(50%);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.tui-text {
|
|
2
|
+
&_h1 {
|
|
3
|
+
font: var(--tui-typography-heading-h1);
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&_h2 {
|
|
7
|
+
font: var(--tui-typography-heading-h2);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&_h3 {
|
|
11
|
+
font: var(--tui-typography-heading-h3);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&_h4 {
|
|
15
|
+
font: var(--tui-typography-heading-h4);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&_h5 {
|
|
19
|
+
font: var(--tui-typography-heading-h5);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&_h6 {
|
|
23
|
+
font: var(--tui-typography-heading-h6);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&_body-l {
|
|
27
|
+
font: var(--tui-typography-body-l);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&_body-l-2 {
|
|
31
|
+
font: var(--tui-typography-ui-l);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&_body-m {
|
|
35
|
+
font: var(--tui-typography-body-m);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&_body-m-2 {
|
|
39
|
+
font: var(--tui-typography-ui-m);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&_body-s {
|
|
43
|
+
font: var(--tui-typography-body-s);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&_body-s-2 {
|
|
47
|
+
font: var(--tui-typography-ui-s);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&_body-xs {
|
|
51
|
+
font: var(--tui-typography-body-xs);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&_bold {
|
|
55
|
+
font-weight: bold;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@import '@taiga-ui/styles/utils.less';
|
|
2
|
+
@import 'basic/keyframes.less';
|
|
3
|
+
@import 'basic/main.less';
|
|
4
|
+
@import 'markup/tui-container.less';
|
|
5
|
+
@import 'markup/tui-form.less';
|
|
6
|
+
@import 'markup/tui-island.less';
|
|
7
|
+
@import 'markup/tui-list.less';
|
|
8
|
+
@import 'markup/tui-mobile-only.less';
|
|
9
|
+
@import 'markup/tui-required.less';
|
|
10
|
+
@import 'markup/tui-row.less';
|
|
11
|
+
@import 'markup/tui-skeleton.less';
|
|
12
|
+
@import 'markup/tui-space.less';
|
|
13
|
+
@import 'markup/tui-table.less';
|
|
14
|
+
@import 'markup/tui-text.less';
|