@taiga-ui/styles 5.33.0 → 5.34.0-canary.c4718f9

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.
@@ -34,6 +34,11 @@
34
34
  font: var(--tui-typography-ui-s);
35
35
  color: var(--tui-text-secondary);
36
36
 
37
+ // TODO: remove attribute in 6.0
38
+ tui-dropdown[tuiDropdownMobile] & {
39
+ display: none;
40
+ }
41
+
37
42
  &.tui-enter,
38
43
  &.tui-leave {
39
44
  animation-name: tuiSlide;
@@ -76,3 +81,7 @@ tui-sheet-dialog [tuiFloatingContainer]:where(*&) {
76
81
  margin-block-end: ~'calc(-1* max(1.5rem, env(safe-area-inset-bottom)))';
77
82
  animation-timing-function: cubic-bezier(0.1, 0.8, 0.5, 1);
78
83
  }
84
+
85
+ tui-dialog[data-appearance~='fullscreen'] [tuiFloatingContainer]:where(*&) {
86
+ margin-block-end: ~'calc(-1* max(1rem, env(safe-area-inset-bottom)))';
87
+ }
@@ -60,7 +60,7 @@
60
60
  display: grid;
61
61
  flex-wrap: wrap;
62
62
  gap: inherit;
63
- grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
63
+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
64
64
  border: none;
65
65
  padding: 0;
66
66
  margin: 0;
@@ -21,7 +21,7 @@
21
21
  --t-icon-start: none;
22
22
  --t-icon-end: none;
23
23
  // Equals to 1 if the font offset is over 10px (150% OS scaling)
24
- --t-zoom: ~'calc(clamp(0, var(--t-font-offset, 0) - 10, 1))';
24
+ --t-zoom: ~'clamp(0, (var(--tui-font-scale-factor, 1) - 1.4999) * 10000, 1)';
25
25
 
26
26
  &::before,
27
27
  &::after {
@@ -6,6 +6,7 @@
6
6
  }
7
7
  }
8
8
 
9
+ // TODO: Replace transform with translate for easier composition in v6
9
10
  // TODO: rename to center-horizontal
10
11
  // centering with translate
11
12
  .center-left() {
@@ -6,6 +6,7 @@
6
6
  }
7
7
  }
8
8
 
9
+ // TODO: Replace transform with translate for easier composition in v6
9
10
  // TODO: rename to center-horizontal
10
11
  // centering with translate
11
12
  @mixin center-left() {
@@ -37,7 +37,7 @@
37
37
  --tui-text-primary: rgba(255, 255, 255, 1);
38
38
  --tui-text-secondary: rgba(255, 255, 255, 0.72);
39
39
  --tui-text-tertiary: rgba(255, 255, 255, 0.6);
40
- --tui-text-action: #6788ff;
40
+ --tui-text-action: #7693ff;
41
41
  --tui-text-action-hover: #526ed3;
42
42
  --tui-text-positive: #44c596;
43
43
  --tui-text-positive-hover: #3aa981;
@@ -94,11 +94,11 @@
94
94
  --tui-text-tertiary: rgba(27, 31, 59, 0.4);
95
95
  --tui-text-primary-on-accent-1: #fff;
96
96
  --tui-text-primary-on-accent-2: #fff;
97
- --tui-text-action: #4c66c3;
97
+ --tui-text-action: #4c65c2;
98
98
  --tui-text-action-hover: #6c86e2;
99
99
  --tui-text-positive: #008764;
100
100
  --tui-text-positive-hover: #7ac5aa;
101
- --tui-text-negative: #eb1700;
101
+ --tui-text-negative: #e01600;
102
102
  --tui-text-negative-hover: #ff4d4d;
103
103
  // Charts
104
104
  --tui-chart-categorical-00: var(--tui-background-accent-1);
@@ -3,7 +3,9 @@
3
3
  --tui-typography-family-text: 'Manrope', system-ui, sans-serif;
4
4
  --tui-typography-family-display: 'Manrope', system-ui, sans-serif;
5
5
  --tui-font-offset: calc(var(--t-font-offset, 0) * 1px);
6
- --tui-font-scale: calc((22 + var(--t-font-offset, 0)) / 22);
6
+ --tui-font-scale-factor: calc((22 + var(--t-font-offset, 0)) / 22);
7
+ // @deprecated TODO: remove in v6
8
+ --tui-font-scale: var(--tui-font-scale-factor);
7
9
  // Heading
8
10
  --tui-typography-heading-h1: bold calc(var(--tui-font-offset) + 3.125rem) / calc(56 / 50) var(--tui-typography-family-display);
9
11
  --tui-typography-heading-h2: bold calc(var(--tui-font-offset) + 2.75rem) / calc(48 / 44) var(--tui-typography-family-display);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/styles",
3
- "version": "5.33.0",
3
+ "version": "5.34.0-canary.c4718f9",
4
4
  "description": "Framework-agnostic package with styles for Taiga UI",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,8 @@
24
24
  --tui-typography-family-text: 'Manrope', system-ui, sans-serif;
25
25
  --tui-typography-family-display: 'Manrope', system-ui, sans-serif;
26
26
  --tui-font-offset: calc(var(--t-font-offset, 0) * 1px);
27
- --tui-font-scale: calc((22 + var(--t-font-offset, 0)) / 22);
27
+ --tui-font-scale-factor: calc((22 + var(--t-font-offset, 0)) / 22);
28
+ --tui-font-scale: var(--tui-font-scale-factor);
28
29
  --tui-typography-heading-h1: bold calc(var(--tui-font-offset) + 3.125rem) / calc(56 / 50) var(--tui-typography-family-display);
29
30
  --tui-typography-heading-h2: bold calc(var(--tui-font-offset) + 2.75rem) / calc(48 / 44) var(--tui-typography-family-display);
30
31
  --tui-typography-heading-h3: bold calc(var(--tui-font-offset) + 2.25rem) / calc(40 / 36) var(--tui-typography-family-display);
@@ -111,7 +112,7 @@
111
112
  --tui-text-primary: #ffffff;
112
113
  --tui-text-secondary: rgba(255, 255, 255, 0.72);
113
114
  --tui-text-tertiary: rgba(255, 255, 255, 0.6);
114
- --tui-text-action: #6788ff;
115
+ --tui-text-action: #7693ff;
115
116
  --tui-text-action-hover: #526ed3;
116
117
  --tui-text-positive: #44c596;
117
118
  --tui-text-positive-hover: #3aa981;
@@ -168,11 +169,11 @@
168
169
  --tui-text-tertiary: rgba(27, 31, 59, 0.4);
169
170
  --tui-text-primary-on-accent-1: #fff;
170
171
  --tui-text-primary-on-accent-2: #fff;
171
- --tui-text-action: #4c66c3;
172
+ --tui-text-action: #4c65c2;
172
173
  --tui-text-action-hover: #6c86e2;
173
174
  --tui-text-positive: #008764;
174
175
  --tui-text-positive-hover: #7ac5aa;
175
- --tui-text-negative: #eb1700;
176
+ --tui-text-negative: #e01600;
176
177
  --tui-text-negative-hover: #ff4d4d;
177
178
  --tui-chart-categorical-00: var(--tui-background-accent-1);
178
179
  --tui-chart-categorical-01: #ea97c4;
@@ -253,11 +254,11 @@
253
254
  --tui-text-tertiary: rgba(27, 31, 59, 0.4);
254
255
  --tui-text-primary-on-accent-1: #fff;
255
256
  --tui-text-primary-on-accent-2: #fff;
256
- --tui-text-action: #4c66c3;
257
+ --tui-text-action: #4c65c2;
257
258
  --tui-text-action-hover: #6c86e2;
258
259
  --tui-text-positive: #008764;
259
260
  --tui-text-positive-hover: #7ac5aa;
260
- --tui-text-negative: #eb1700;
261
+ --tui-text-negative: #e01600;
261
262
  --tui-text-negative-hover: #ff4d4d;
262
263
  --tui-chart-categorical-00: var(--tui-background-accent-1);
263
264
  --tui-chart-categorical-01: #ea97c4;
@@ -1137,11 +1138,13 @@ input[type='radio'][data-appearance='secondary'] {
1137
1138
  color: var(--tui-text-secondary);
1138
1139
  }
1139
1140
  [tuiAppearance][data-appearance='textfield']:focus-visible:not([data-focus='false']) {
1141
+ background-color: transparent !important;
1140
1142
  box-shadow: none;
1141
1143
  outline: 0.125rem solid var(--tui-background-accent-1);
1142
1144
  outline-offset: -0.125rem;
1143
1145
  }
1144
1146
  [tuiAppearance][data-appearance='textfield'][data-focus='true'] {
1147
+ background-color: transparent !important;
1145
1148
  box-shadow: none;
1146
1149
  outline: 0.125rem solid var(--tui-background-accent-1);
1147
1150
  outline-offset: -0.125rem;
@@ -1188,11 +1191,7 @@ input[type='radio'][data-appearance='secondary'] {
1188
1191
  [tuiTheme='dark'][tuiAppearance][data-appearance='textfield'][data-state='hover'] {
1189
1192
  background-color: var(--tui-background-neutral-1-hover);
1190
1193
  }
1191
- [tuiTheme='dark'] [tuiAppearance][data-appearance='textfield']:focus-visible:not([data-focus='false']),
1192
- [tuiTheme='dark'][tuiAppearance][data-appearance='textfield']:focus-visible:not([data-focus='false']) {
1193
- background-color: transparent !important;
1194
- }
1195
- [tuiTheme='dark'] [tuiAppearance][data-appearance='textfield'][data-focus='true'],
1196
- [tuiTheme='dark'][tuiAppearance][data-appearance='textfield'][data-focus='true'] {
1194
+ [tuiTheme='light'] [tuiAppearance][data-appearance='textfield'],
1195
+ [tuiTheme='light'][tuiAppearance][data-appearance='textfield'] {
1197
1196
  background-color: transparent !important;
1198
1197
  }
@@ -29,6 +29,7 @@
29
29
  }
30
30
 
31
31
  .appearance-focus({
32
+ background-color: transparent !important;
32
33
  box-shadow: none;
33
34
  outline: 0.125rem solid var(--tui-background-accent-1);
34
35
  outline-offset: -0.125rem;
@@ -73,8 +74,9 @@
73
74
  .appearance-hover({
74
75
  background-color: var(--tui-background-neutral-1-hover);
75
76
  });
77
+ }
76
78
 
77
- .appearance-focus({
78
- background-color: transparent !important;
79
- });
79
+ [tuiTheme='light'] [tuiAppearance][data-appearance='textfield'],
80
+ [tuiTheme='light'][tuiAppearance][data-appearance='textfield'] {
81
+ background-color: transparent !important;
80
82
  }