@taiga-ui/styles 5.0.0-canary.c4ce5ac → 5.0.0-canary.c9deb18

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.
@@ -147,7 +147,7 @@
147
147
 
148
148
  &._badge {
149
149
  mask: radial-gradient(
150
- circle at calc(max(var(--tui-inline), 0) * 100% - var(--tui-inline) * var(--t-corner-offset))
150
+ circle at ~'calc(max(var(--tui-inline), 0) * 100% - var(--tui-inline) * var(--t-corner-offset))'
151
151
  calc(100% - var(--t-corner-offset)),
152
152
  black 0.23rem,
153
153
  transparent 0.25rem,
@@ -46,12 +46,10 @@
46
46
  font-size: var(--t-icon-size) !important;
47
47
  }
48
48
 
49
- &[data-appearance='error'], /* TODO @deprecated remove in v5 */
50
49
  &[data-appearance='negative'] {
51
50
  --t-status: var(--tui-status-negative);
52
51
  }
53
52
 
54
- &[data-appearance='success'], /* TODO @deprecated remove in v5 */
55
53
  &[data-appearance='positive'] {
56
54
  --t-status: var(--tui-status-positive);
57
55
  }
@@ -104,8 +102,6 @@
104
102
  }
105
103
  }
106
104
 
107
- &[tuiAppearance][data-appearance='error'], /* TODO @deprecated remove in v5 */
108
- &[tuiAppearance][data-appearance='success'], /* TODO @deprecated remove in v5 */
109
105
  &[tuiAppearance][data-appearance='negative'],
110
106
  &[tuiAppearance][data-appearance='positive'],
111
107
  &[tuiAppearance][data-appearance='warning'],
@@ -69,8 +69,8 @@
69
69
  font: var(--tui-typography-body-s);
70
70
 
71
71
  tui-icon,
72
- &:not([tuiIconButton][data-appearance='icon'], [tuiIconButton][data-appearance^='action-'])::before,
73
- &:not([tuiIconButton][data-appearance='icon'], [tuiIconButton][data-appearance^='action-'])::after {
72
+ &:not([tuiIconButton][data-appearance='icon'], [tuiIconButton][data-appearance^='action'])::before,
73
+ &:not([tuiIconButton][data-appearance='icon'], [tuiIconButton][data-appearance^='action'])::after {
74
74
  font-size: 1rem;
75
75
  }
76
76
  }
@@ -120,6 +120,11 @@
120
120
  max-block-size: calc(var(--t-line-height) * 2);
121
121
  }
122
122
  }
123
+
124
+ &:is(a):not([href]) {
125
+ opacity: var(--tui-disabled-opacity);
126
+ pointer-events: none;
127
+ }
123
128
  }
124
129
 
125
130
  [tuiIconButton]:where(*&) {
@@ -30,8 +30,8 @@ tui-compass:where(*&) {
30
30
  &::before {
31
31
  content: '';
32
32
  position: absolute;
33
- top: 0;
34
- left: 0.125rem;
33
+ inset-block-start: 0;
34
+ inset-inline-start: 0.125rem;
35
35
  mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><path d="M0 8.99993C4 8 8 8 12 8.99993C9.91509 5.73239 8.5 3 6 0C3.5 3 2 5.5 0 8.99993Z"/></svg>');
36
36
  transform: rotate(var(--t-degrees)) translateY(-0.625rem) translateZ(-1rem);
37
37
  inline-size: 0.75rem;
@@ -181,6 +181,7 @@ tui-textfield:where(*&) {
181
181
  & > .t-template,
182
182
  .t-filler,
183
183
  [tuiInput] {
184
+ inset-block-end: 0;
184
185
  padding-block-start: calc(var(--t-height) / 3);
185
186
  padding-block-end: 0;
186
187
  }
@@ -200,10 +201,9 @@ tui-textfield:where(*&) {
200
201
  .t-filler,
201
202
  [tuiInput] {
202
203
  position: absolute;
203
- inset-block-start: 0;
204
204
  inset-inline: 0;
205
205
  inline-size: auto;
206
- block-size: 100%;
206
+ block-size: var(--t-height);
207
207
  appearance: none;
208
208
  background: none;
209
209
  font: inherit;
@@ -267,7 +267,6 @@ tui-textfield:where(*&) {
267
267
  user-select: none;
268
268
  padding: calc(var(--t-height) / 2 - 0.625em) 0;
269
269
  line-height: 1.25 !important;
270
- letter-spacing: calc((max(1em, 0.75rem) - 1em) * 0.4);
271
270
  transition-duration: inherit;
272
271
 
273
272
  + .t-content {
@@ -1,5 +1,5 @@
1
- @import 'miscellaneous';
2
- @import '../variables/media';
1
+ @import 'miscellaneous.scss';
2
+ @import '../variables/media.scss';
3
3
 
4
4
  @mixin appearance-hover {
5
5
  @include interactive {
@@ -92,7 +92,7 @@
92
92
  }
93
93
 
94
94
  &:not(:last-child)::before {
95
- right: -1rem;
95
+ inset-inline-end: -1rem;
96
96
  }
97
97
 
98
98
  &::after {
@@ -109,7 +109,7 @@
109
109
  }
110
110
 
111
111
  &:not(:first-child)::before {
112
- left: -1rem;
112
+ inset-inline-start: -1rem;
113
113
  }
114
114
 
115
115
  &::after {
@@ -1,4 +1,4 @@
1
- @import 'miscellaneous';
1
+ @import 'miscellaneous.scss';
2
2
 
3
3
  @mixin date-picker {
4
4
  .t-row {
@@ -92,7 +92,7 @@
92
92
  }
93
93
 
94
94
  &:not(:last-child)::before {
95
- right: -1rem;
95
+ inset-inline-end: -1rem;
96
96
  }
97
97
 
98
98
  &::after {
@@ -109,7 +109,7 @@
109
109
  }
110
110
 
111
111
  &:not(:first-child)::before {
112
- left: -1rem;
112
+ inset-inline-start: -1rem;
113
113
  }
114
114
 
115
115
  &::after {
@@ -1,4 +1,4 @@
1
- @import '../variables/media';
1
+ @import '../variables/media.scss';
2
2
 
3
3
  @mixin hitbox($size) {
4
4
  @media ($tui-mobile) {
@@ -6,23 +6,26 @@
6
6
  }
7
7
  }
8
8
 
9
+ // TODO: rename to center-horizontal
9
10
  // centering with translate
10
11
  .center-left() {
11
12
  position: absolute;
13
+ // stylelint-disable-next-line -- TODO: fix later
12
14
  left: 50%;
13
15
  transform: translate(-50%, 0);
14
16
  }
15
17
 
18
+ // TODO: rename to center-vertical
16
19
  .center-top() {
17
20
  position: absolute;
21
+ // stylelint-disable-next-line -- TODO: fix later
18
22
  top: 50%;
19
23
  transform: translate(0, -50%);
20
24
  }
21
25
 
22
26
  .center-all() {
23
27
  position: absolute;
24
- top: 50%;
25
- left: 50%;
28
+ inset: 50% auto auto 50%;
26
29
  transform: translate(-50%, -50%);
27
30
  }
28
31
 
@@ -30,8 +33,8 @@
30
33
  // @deprecated TODO remove in 5.0 in favor of inset: 0
31
34
  .fullsize(@position: absolute, @mode: height) {
32
35
  position: @position;
33
- top: 0;
34
- left: 0;
36
+ inset-block-start: 0;
37
+ inset-inline-start: 0;
35
38
 
36
39
  & when (@mode = height) {
37
40
  inline-size: 100%;
@@ -39,8 +42,8 @@
39
42
  }
40
43
 
41
44
  & when (@mode = inset) {
42
- bottom: 0;
43
- right: 0;
45
+ inset-block-end: 0;
46
+ inset-inline-end: 0;
44
47
  }
45
48
  }
46
49
 
@@ -104,10 +107,8 @@
104
107
  }
105
108
 
106
109
  .scrollbar-hidden() {
107
- /* stylelint-disable*/
108
110
  scrollbar-width: none;
109
111
  -ms-overflow-style: none;
110
- /* stylelint-enable*/
111
112
 
112
113
  &::-webkit-scrollbar,
113
114
  &::-webkit-scrollbar-thumb {
@@ -1,4 +1,4 @@
1
- @import 'browsers';
1
+ @import 'browsers.scss';
2
2
 
3
3
  @mixin interactive {
4
4
  &:is(a, button, select, textarea, input, label, .tui-interactive):not(:disabled) {
@@ -6,40 +6,43 @@
6
6
  }
7
7
  }
8
8
 
9
+ // TODO: rename to center-horizontal
9
10
  // centering with translate
10
11
  @mixin center-left() {
11
12
  position: absolute;
13
+ // stylelint-disable-next-line -- TODO: fix later
12
14
  left: 50%;
13
15
  transform: translate(-50%, 0);
14
16
  }
15
17
 
18
+ // TODO: rename to center-vertical
16
19
  @mixin center-top() {
17
20
  position: absolute;
21
+ // stylelint-disable-next-line -- TODO: fix later
18
22
  top: 50%;
19
23
  transform: translate(0, -50%);
20
24
  }
21
25
 
22
26
  @mixin center-all() {
23
27
  position: absolute;
24
- top: 50%;
25
- left: 50%;
28
+ inset: 50% auto auto 50%;
26
29
  transform: translate(-50%, -50%);
27
30
  }
28
31
 
29
32
  //.fullsize
30
33
  @mixin fullsize($position: absolute, $mode: height) {
31
34
  position: $position;
32
- top: 0;
33
- left: 0;
35
+ inset-block-start: 0;
36
+ inset-inline-start: 0;
34
37
 
35
38
  @if ($mode == height) {
36
- width: 100%;
37
- height: 100%;
39
+ inline-size: 100%;
40
+ block-size: 100%;
38
41
  }
39
42
 
40
43
  @if ($mode == inset) {
41
- bottom: 0;
42
- right: 0;
44
+ inset-block-end: 0;
45
+ inset-inline-end: 0;
43
46
  }
44
47
  }
45
48
 
@@ -64,7 +67,7 @@
64
67
  white-space: nowrap;
65
68
  overflow: hidden;
66
69
  vertical-align: middle;
67
- max-width: 100%;
70
+ max-inline-size: 100%;
68
71
  gap: calc(var(--t-gap) - 2 * var(--t-margin));
69
72
 
70
73
  > img,
@@ -75,8 +78,8 @@
75
78
  > [tuiRadio],
76
79
  > [tuiSwitch],
77
80
  > [tuiCheckbox],
78
- &[tuiIcons]:before,
79
- &[tuiIcons]:after {
81
+ &[tuiIcons]::before,
82
+ &[tuiIcons]::after {
80
83
  margin: var(--t-margin);
81
84
  }
82
85
  }
@@ -101,10 +104,8 @@
101
104
  }
102
105
 
103
106
  @mixin scrollbar-hidden() {
104
- /* stylelint-disable*/
105
107
  scrollbar-width: none;
106
108
  -ms-overflow-style: none;
107
- /* stylelint-enable*/
108
109
 
109
110
  &::-webkit-scrollbar,
110
111
  &::-webkit-scrollbar-thumb {
@@ -117,8 +118,8 @@
117
118
  position: absolute;
118
119
  clip: rect(1px, 1px, 1px, 1px);
119
120
  clip-path: inset(50%);
120
- height: 1px;
121
- width: 1px;
121
+ block-size: 1px;
122
+ inline-size: 1px;
122
123
  margin: -1px;
123
124
  overflow: hidden;
124
125
  padding: 0;
@@ -143,6 +144,7 @@
143
144
 
144
145
  @mixin text-truncate() {
145
146
  @include text-overflow();
147
+
146
148
  flex: 1;
147
149
  min-inline-size: 0;
148
150
  max-inline-size: max-content;
@@ -150,7 +152,7 @@
150
152
 
151
153
  @mixin tui-line-clamp($count: 3) {
152
154
  display: -webkit-box;
153
- -webkit-box-orient: vertical;
155
+ -webkit-box-orient: block-axis;
154
156
  -webkit-line-clamp: $count;
155
157
  line-clamp: $count;
156
158
  overflow: hidden;
package/package.json CHANGED
@@ -1,12 +1,30 @@
1
1
  {
2
2
  "name": "@taiga-ui/styles",
3
- "version": "5.0.0-canary.c4ce5ac",
3
+ "version": "5.0.0-canary.c9deb18",
4
4
  "description": "Framework-agnostic package with styles for Taiga UI",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/taiga-family/taiga-ui"
8
+ },
5
9
  "license": "Apache-2.0",
10
+ "contributors": [
11
+ {
12
+ "name": "Alex Inkin",
13
+ "email": "alexander@inkin.ru"
14
+ },
15
+ {
16
+ "name": "Vladimir Potekhin",
17
+ "email": "vladimir.potekh@gmail.com"
18
+ },
19
+ {
20
+ "name": "Nikita Barsukov",
21
+ "email": "nikita.s.barsukov@gmail.com"
22
+ }
23
+ ],
6
24
  "exports": {
7
25
  "./*": "./*"
8
26
  },
9
27
  "peerDependencies": {
10
- "@taiga-ui/design-tokens": "~0.286.0"
28
+ "@taiga-ui/design-tokens": "~0.287.0"
11
29
  }
12
30
  }
@@ -1,4 +1,2 @@
1
- // stylelint-disable
2
- // https://github.com/stackblitz/core/issues/2104#issuecomment-1397086512
3
- //noinspection CssUnknownTarget
1
+ // stylelint-disable-next-line -- https://github.com/stackblitz/core/issues/2104#issuecomment-1397086512
4
2
  @import (optional) url(https://fonts.googleapis.com/css2?family=Manrope:wght@500;800&display=swap);
@@ -11,7 +11,6 @@
11
11
  overflow: hidden;
12
12
 
13
13
  &:not(tui-textfield[multi], tui-input-card-group) [tuiInput]:not(textarea) {
14
- block-size: var(--t-height);
15
14
  border-block-end: 100rem solid transparent;
16
15
  box-sizing: content-box;
17
16
  }
@@ -2,7 +2,6 @@
2
2
  @import 'appearance/action.less';
3
3
  @import 'appearance/flat.less';
4
4
  @import 'appearance/floating.less';
5
- @import 'appearance/glass.less';
6
5
  @import 'appearance/outline.less';
7
6
  @import 'appearance/primary.less';
8
7
  @import 'appearance/secondary.less';
package/utils.scss CHANGED
@@ -1,7 +1,7 @@
1
- @import 'mixins/browsers';
2
- @import 'mixins/date-picker';
3
- @import 'mixins/miscellaneous';
4
- @import 'mixins/slider';
5
- @import 'mixins/appearance';
6
- @import 'mixins/hitbox';
7
- @import 'variables/media';
1
+ @import 'mixins/browsers.scss';
2
+ @import 'mixins/date-picker.scss';
3
+ @import 'mixins/miscellaneous.scss';
4
+ @import 'mixins/slider.scss';
5
+ @import 'mixins/appearance.scss';
6
+ @import 'mixins/hitbox.scss';
7
+ @import 'variables/media.scss';
@@ -1,30 +0,0 @@
1
- @import '../../utils.less';
2
-
3
- [tuiAppearance][data-appearance='glass'] {
4
- background: rgba(0, 0, 0, 0.4);
5
- color: #fff;
6
- backdrop-filter: blur(1rem);
7
-
8
- --tui-border-focus: rgba(255, 255, 255, 0.64);
9
-
10
- .appearance-hover({
11
- background: rgba(0, 0, 0, 0.48);
12
- });
13
-
14
- .appearance-active({
15
- background: rgba(0, 0, 0, 0.6);
16
- });
17
- }
18
-
19
- [tuiTheme='dark'] [tuiAppearance][data-appearance='glass'],
20
- [tuiTheme='dark'][tuiAppearance][data-appearance='glass'] {
21
- background: rgba(255, 255, 255, 0.3);
22
-
23
- .appearance-hover({
24
- background: rgba(255, 255, 255, 0.4);
25
- });
26
-
27
- .appearance-active({
28
- background: rgba(255, 255, 255, 0.5);
29
- });
30
- }