@taiga-ui/core 4.4.1 → 4.5.0-canary.49229f4

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.
Files changed (123) hide show
  1. package/components/calendar/calendar-sheet.component.d.ts +1 -1
  2. package/components/data-list/data-list.component.d.ts +1 -1
  3. package/components/dialog/dialog.component.d.ts +1 -1
  4. package/components/notification/notification.directive.d.ts +1 -1
  5. package/components/spin-button/spin-button.component.d.ts +1 -1
  6. package/components/textfield/index.d.ts +1 -0
  7. package/components/textfield/textfield-content.directive.d.ts +6 -0
  8. package/components/textfield/textfield.component.d.ts +7 -6
  9. package/components/textfield/textfield.directive.d.ts +0 -1
  10. package/directives/appearance/appearance.directive.d.ts +7 -3
  11. package/directives/appearance/appearance.options.d.ts +6 -1
  12. package/directives/dropdown/dropdown.directive.d.ts +1 -1
  13. package/directives/hint/hint.component.d.ts +1 -1
  14. package/esm2022/components/alert/alert.component.mjs +6 -6
  15. package/esm2022/components/alert/alerts.component.mjs +4 -3
  16. package/esm2022/components/button/button.directive.mjs +2 -2
  17. package/esm2022/components/calendar/calendar-sheet.component.mjs +6 -6
  18. package/esm2022/components/calendar/calendar-spin.component.mjs +3 -3
  19. package/esm2022/components/calendar/calendar-year.component.mjs +4 -4
  20. package/esm2022/components/calendar/calendar.component.mjs +6 -6
  21. package/esm2022/components/data-list/data-list.component.mjs +6 -6
  22. package/esm2022/components/dialog/dialog.component.mjs +7 -6
  23. package/esm2022/components/dialog/dialogs.component.mjs +3 -3
  24. package/esm2022/components/expand/expand.component.mjs +3 -3
  25. package/esm2022/components/icon/icon.component.mjs +3 -3
  26. package/esm2022/components/label/label.directive.mjs +2 -2
  27. package/esm2022/components/loader/loader.component.mjs +3 -3
  28. package/esm2022/components/notification/notification.directive.mjs +2 -2
  29. package/esm2022/components/root/root.component.mjs +8 -8
  30. package/esm2022/components/scrollbar/scroll-controls.component.mjs +6 -6
  31. package/esm2022/components/scrollbar/scrollbar.component.mjs +4 -4
  32. package/esm2022/components/scrollbar/scrollbar.directive.mjs +5 -5
  33. package/esm2022/components/scrollbar/scrollbar.service.mjs +3 -3
  34. package/esm2022/components/spin-button/spin-button.component.mjs +3 -3
  35. package/esm2022/components/textfield/index.mjs +2 -1
  36. package/esm2022/components/textfield/select.directive.mjs +3 -3
  37. package/esm2022/components/textfield/textfield-content.directive.mjs +19 -0
  38. package/esm2022/components/textfield/textfield.component.mjs +18 -13
  39. package/esm2022/components/textfield/textfield.directive.mjs +3 -5
  40. package/esm2022/directives/appearance/appearance.bindings.mjs +4 -4
  41. package/esm2022/directives/appearance/appearance.directive.mjs +19 -9
  42. package/esm2022/directives/appearance/appearance.options.mjs +1 -1
  43. package/esm2022/directives/dropdown/dropdown-hover.directive.mjs +3 -3
  44. package/esm2022/directives/dropdown/dropdown.bindings.mjs +3 -3
  45. package/esm2022/directives/dropdown/dropdown.component.mjs +3 -3
  46. package/esm2022/directives/dropdown/dropdown.directive.mjs +4 -2
  47. package/esm2022/directives/group/group.directive.mjs +5 -5
  48. package/esm2022/directives/hint/hint-describe.directive.mjs +3 -3
  49. package/esm2022/directives/hint/hint-unstyled.component.mjs +3 -3
  50. package/esm2022/directives/hint/hint.component.mjs +6 -5
  51. package/esm2022/directives/hint/hints.component.mjs +4 -4
  52. package/esm2022/directives/icons/icons.directive.mjs +2 -2
  53. package/esm2022/directives/surface/surface.directive.mjs +2 -2
  54. package/esm2022/directives/title/title.directive.mjs +2 -2
  55. package/esm2022/pipes/order-week-days/order-week-days.pipe.mjs +2 -5
  56. package/esm2022/services/breakpoint.service.mjs +3 -3
  57. package/fesm2022/taiga-ui-core-components-alert.mjs +7 -7
  58. package/fesm2022/taiga-ui-core-components-alert.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-core-components-button.mjs +2 -2
  60. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-core-components-calendar.mjs +16 -16
  62. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-core-components-data-list.mjs +5 -5
  64. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-core-components-dialog.mjs +8 -8
  66. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-core-components-expand.mjs +2 -2
  68. package/fesm2022/taiga-ui-core-components-expand.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-core-components-icon.mjs +2 -2
  70. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-core-components-label.mjs +2 -2
  72. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-core-components-loader.mjs +2 -2
  74. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-core-components-notification.mjs +2 -2
  76. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-core-components-root.mjs +8 -8
  78. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +12 -12
  80. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-core-components-spin-button.mjs +3 -3
  82. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-core-components-textfield.mjs +39 -19
  84. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-core-directives-appearance.mjs +21 -11
  86. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +8 -8
  88. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-core-directives-group.mjs +4 -4
  90. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-core-directives-hint.mjs +10 -10
  92. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-core-directives-icons.mjs +2 -2
  94. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-core-directives-surface.mjs +2 -2
  96. package/fesm2022/taiga-ui-core-directives-surface.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-core-directives-title.mjs +2 -2
  98. package/fesm2022/taiga-ui-core-directives-title.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +1 -4
  100. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-core-services.mjs +2 -2
  102. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  103. package/package.json +324 -324
  104. package/pipes/order-week-days/order-week-days.pipe.d.ts +1 -3
  105. package/styles/components/button.less +5 -5
  106. package/styles/components/group.less +12 -35
  107. package/styles/components/icon.less +10 -3
  108. package/styles/components/icons.less +2 -2
  109. package/styles/components/label.less +2 -2
  110. package/styles/components/notification.less +2 -2
  111. package/styles/components/textfield.less +23 -16
  112. package/styles/components/title.less +1 -1
  113. package/styles/mixins/mixins.less +5 -5
  114. package/styles/mixins/picker.less +18 -18
  115. package/styles/mixins/slider.less +2 -2
  116. package/styles/mixins/slider.scss +2 -2
  117. package/styles/theme/appearance/floating.less +2 -2
  118. package/styles/theme/appearance/glass.less +3 -3
  119. package/styles/theme/appearance/opposite.less +2 -2
  120. package/styles/theme/appearance/textfield.less +8 -4
  121. package/styles/theme/palette.less +62 -60
  122. package/styles/theme/wrapper.less +3 -3
  123. package/tokens/i18n.d.ts +3 -3
@@ -1,11 +1,9 @@
1
1
  import type { PipeTransform } from '@angular/core';
2
2
  import type { Observable } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
- type WeekDays<T> = [T, T, T, T, T, T, T];
5
4
  export declare class TuiOrderWeekDaysPipe implements PipeTransform {
6
5
  private readonly firstDayOfWeekIndex;
7
- transform<T>(mondayFirstWeekDays$: Observable<WeekDays<T>>): Observable<WeekDays<T>>;
6
+ transform(mondayFirstWeekDays$: Observable<readonly string[]>): Observable<readonly string[]>;
8
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiOrderWeekDaysPipe, never>;
9
8
  static ɵpipe: i0.ɵɵPipeDeclaration<TuiOrderWeekDaysPipe, "tuiOrderWeekDays", true>;
10
9
  }
11
- export {};
@@ -26,7 +26,7 @@
26
26
 
27
27
  .button-base();
28
28
 
29
- height: var(--t-size);
29
+ block-size: var(--t-size);
30
30
  justify-content: center;
31
31
  border-radius: var(--t-radius);
32
32
  padding: var(--t-padding);
@@ -116,22 +116,22 @@
116
116
 
117
117
  flex-direction: column;
118
118
  flex-shrink: 1;
119
- height: auto;
119
+ block-size: auto;
120
120
  padding: 0.75rem;
121
121
  gap: 0.375rem;
122
- min-width: 5rem;
122
+ min-inline-size: 5rem;
123
123
  white-space: pre-line;
124
124
  font: var(--tui-font-text-ui-s);
125
125
 
126
126
  & > * {
127
- max-height: calc(var(--t-line-height) * 2);
127
+ max-block-size: calc(var(--t-line-height) * 2);
128
128
  }
129
129
  }
130
130
  }
131
131
 
132
132
  [tuiIconButton] {
133
133
  gap: 0;
134
- width: var(--t-size);
134
+ inline-size: var(--t-size);
135
135
  font-size: 0 !important;
136
136
  padding: 0;
137
137
 
@@ -26,26 +26,23 @@
26
26
 
27
27
  --t-group-radius: var(--tui-radius-l);
28
28
  --t-group-margin: -1px;
29
- --t-group-clip: inset(-1px 1px -1px -1px);
29
+ --t-group-clip: inset(-1rem 1px -1rem -1rem);
30
30
 
31
31
  & > * {
32
32
  z-index: 1;
33
33
  flex: 1 1 0;
34
- min-width: 0;
34
+ min-inline-size: 0;
35
35
 
36
- &._disabled,
37
- &._disabled:hover {
36
+ &:disabled,
37
+ &._disabled {
38
38
  z-index: 0;
39
39
  }
40
40
 
41
- &:invalid {
41
+ &:invalid,
42
+ &[data-mode='invalid'] {
42
43
  z-index: 2;
43
44
 
44
45
  --t-group-clip: none;
45
-
46
- &:hover {
47
- z-index: 4;
48
- }
49
46
  }
50
47
 
51
48
  &:has(:invalid),
@@ -53,44 +50,28 @@
53
50
  z-index: 2;
54
51
 
55
52
  --t-group-clip: none;
56
-
57
- &:hover {
58
- z-index: 4;
59
- }
60
- }
61
-
62
- &:hover {
63
- z-index: 3;
64
-
65
- --t-group-clip: inset(-1px 0.5px -1px -1px);
66
- }
67
-
68
- &:has([data-state='hover']) {
69
- z-index: 3;
70
-
71
- --t-group-clip: none;
72
53
  }
73
54
 
74
55
  &:focus-within {
75
- z-index: 5;
56
+ z-index: 3;
76
57
 
77
58
  --t-group-clip: none;
78
59
  }
79
60
 
80
61
  &:has([data-focus='true']) {
81
- z-index: 5;
62
+ z-index: 3;
82
63
 
83
64
  --t-group-clip: none;
84
65
  }
85
66
 
86
67
  &[data-mode='checked'] {
87
- z-index: 6;
68
+ z-index: 4;
88
69
 
89
70
  --t-group-clip: none;
90
71
  }
91
72
 
92
73
  &:has([tuiBlock]:checked) {
93
- z-index: 6;
74
+ z-index: 4;
94
75
 
95
76
  --t-group-clip: none;
96
77
  }
@@ -124,10 +105,10 @@
124
105
  display: inline-flex;
125
106
  flex-direction: column;
126
107
 
127
- --t-group-clip: inset(-1px -1px 1px -1px);
108
+ --t-group-clip: inset(-1rem -1rem 1px -1rem);
128
109
 
129
110
  & > * {
130
- min-height: auto;
111
+ min-block-size: auto;
131
112
  flex: 0 0 auto;
132
113
 
133
114
  &:not(:last-child) {
@@ -146,10 +127,6 @@
146
127
  &:only-child {
147
128
  border-radius: var(--t-group-radius);
148
129
  }
149
-
150
- &:hover {
151
- --t-group-clip: inset(-1px -1px 0.5px -1px);
152
- }
153
130
  }
154
131
  }
155
132
  }
@@ -20,21 +20,28 @@
20
20
  tui-icon {
21
21
  position: relative;
22
22
  display: inline-block;
23
- width: 1em;
24
- height: 1em;
23
+ inline-size: 1em;
24
+ block-size: 1em;
25
25
  font-size: 1.5rem;
26
26
  flex-shrink: 0;
27
27
  vertical-align: middle;
28
28
  box-sizing: border-box;
29
29
  mask: var(--t-icon-bg) no-repeat center/contain;
30
30
 
31
+ @media (hover: hover) {
32
+ &[data-appearance='icon']:hover {
33
+ color: var(--tui-text-secondary);
34
+ }
35
+ }
36
+
31
37
  &::after,
32
38
  &[tuiIcons]::after {
33
39
  .fullsize();
34
40
 
35
41
  content: '';
36
42
  display: block;
37
- mask: var(--t-icon) no-repeat center/contain intersect;
43
+ mask: var(--t-icon) no-repeat center/contain;
44
+ mask-composite: intersect;
38
45
  background: currentColor;
39
46
  }
40
47
  }
@@ -23,8 +23,8 @@
23
23
  &::after {
24
24
  content: '';
25
25
  display: var(--t-icon-start);
26
- width: 1em;
27
- height: 1em;
26
+ inline-size: 1em;
27
+ block-size: 1em;
28
28
  line-height: 1em;
29
29
  font-size: 1.5rem;
30
30
  flex-shrink: 0;
@@ -23,7 +23,7 @@
23
23
 
24
24
  &:not([data-orientation='vertical']) {
25
25
  flex-direction: row;
26
- width: fit-content;
26
+ inline-size: fit-content;
27
27
  font: var(--tui-font-text-m);
28
28
  }
29
29
 
@@ -32,7 +32,7 @@
32
32
  &:has(tui-primitive-textfield),
33
33
  &:has(tui-textarea) {
34
34
  flex-direction: column !important;
35
- width: auto !important;
35
+ inline-size: auto !important;
36
36
  font: var(--tui-font-text-s) !important;
37
37
  }
38
38
 
@@ -27,7 +27,7 @@ tui-notification,
27
27
 
28
28
  position: relative;
29
29
  display: flex;
30
- max-height: 100%;
30
+ max-block-size: 100%;
31
31
  color: var(--tui-text-primary);
32
32
  gap: 0.5rem;
33
33
  padding: 1rem;
@@ -35,7 +35,7 @@ tui-notification,
35
35
  border-radius: var(--tui-radius-l);
36
36
  box-sizing: border-box;
37
37
  overflow: hidden;
38
- text-align: left;
38
+ text-align: start;
39
39
  text-decoration: none;
40
40
 
41
41
  &::after {
@@ -10,7 +10,7 @@ tui-textfield {
10
10
  align-items: center;
11
11
  pointer-events: none;
12
12
  cursor: pointer;
13
- height: var(--t-height);
13
+ block-size: var(--t-height);
14
14
  color: var(--tui-text-tertiary);
15
15
  padding: 0 var(--tui-padding-l);
16
16
  border-radius: var(--tui-radius-l);
@@ -25,10 +25,6 @@ tui-textfield {
25
25
  --t-right: 2.25rem;
26
26
  }
27
27
 
28
- &::before {
29
- margin-inline-end: 0.75rem;
30
- }
31
-
32
28
  &::after {
33
29
  margin-inline-start: 0.25rem;
34
30
  }
@@ -102,12 +98,25 @@ tui-textfield {
102
98
  }
103
99
  }
104
100
 
101
+ /*
102
+ TODO: refactor to the following way after Chrome 105+ & Safari 15.4+
103
+ &:hover:has(input:not(:read-only)),
104
+ &:hover:has(select:not([data-mode='readonly'])) {
105
+ color: var(--tui-text-secondary);
106
+ }
107
+ */
105
108
  &:hover {
106
109
  color: var(--tui-text-secondary);
110
+
111
+ &:has(input:read-only),
112
+ &:has(select[data-mode='readonly']) {
113
+ color: var(--tui-text-tertiary);
114
+ }
107
115
  }
108
116
 
109
117
  &::before {
110
118
  z-index: 1;
119
+ margin-inline-end: 0.75rem;
111
120
  }
112
121
 
113
122
  &:has(:disabled:not(.t-filler, button, option))::before,
@@ -153,7 +162,7 @@ tui-textfield {
153
162
  .t-template,
154
163
  input:defined,
155
164
  select:defined {
156
- .fullsize();
165
+ .fullsize(absolute, inset);
157
166
 
158
167
  appearance: none;
159
168
  box-sizing: border-box;
@@ -185,6 +194,7 @@ tui-textfield {
185
194
  }
186
195
  }
187
196
 
197
+ &:-webkit-autofill,
188
198
  &:not(._empty):not(:placeholder-shown) {
189
199
  & ~ label {
190
200
  font-size: 0.83em;
@@ -215,6 +225,13 @@ tui-textfield {
215
225
  }
216
226
  });
217
227
  }
228
+
229
+ .ios-only({
230
+ &._ios-fix {
231
+ position: fixed;
232
+ left: 1000rem;
233
+ }
234
+ });
218
235
  }
219
236
 
220
237
  label:not([data-orientation='vertical']) {
@@ -237,16 +254,6 @@ tui-textfield {
237
254
  cursor: pointer;
238
255
  }
239
256
 
240
- input:defined,
241
- select:defined {
242
- .ios-only({
243
- &._ios-fix {
244
- position: fixed;
245
- left: 1000rem;
246
- }
247
- });
248
- }
249
-
250
257
  button,
251
258
  a {
252
259
  pointer-events: auto;
@@ -22,7 +22,7 @@
22
22
  position: relative;
23
23
  display: flex;
24
24
  flex-direction: column;
25
- text-align: left;
25
+ text-align: start;
26
26
  gap: 0.25rem;
27
27
  margin: 0;
28
28
  font: var(--tui-font-text-ui-m);
@@ -38,8 +38,8 @@
38
38
  left: 0;
39
39
 
40
40
  & when (@mode = height) {
41
- width: 100%;
42
- height: 100%;
41
+ inline-size: 100%;
42
+ block-size: 100%;
43
43
  }
44
44
 
45
45
  & when (@mode = inset) {
@@ -69,7 +69,7 @@
69
69
  white-space: nowrap;
70
70
  overflow: hidden;
71
71
  vertical-align: middle;
72
- max-width: 100%;
72
+ max-inline-size: 100%;
73
73
  gap: calc(var(--t-gap, var(--t-0, 0rem)) - 2 * var(--t-margin, 0rem));
74
74
 
75
75
  > img,
@@ -123,8 +123,8 @@
123
123
  position: absolute;
124
124
  clip: rect(1px, 1px, 1px, 1px);
125
125
  clip-path: inset(50%);
126
- height: 1px;
127
- width: 1px;
126
+ block-size: 1px;
127
+ inline-size: 1px;
128
128
  margin: -1px;
129
129
  overflow: hidden;
130
130
  padding: 0;
@@ -10,7 +10,7 @@
10
10
  position: relative;
11
11
  display: flex;
12
12
  justify-content: space-between;
13
- height: 2.25rem;
13
+ block-size: 2.25rem;
14
14
  isolation: isolate;
15
15
  }
16
16
 
@@ -39,7 +39,7 @@
39
39
  display: flex;
40
40
  align-items: center;
41
41
  justify-content: center;
42
- width: @itemSize;
42
+ inline-size: @itemSize;
43
43
  text-align: center;
44
44
  outline: none;
45
45
  cursor: pointer;
@@ -63,8 +63,8 @@
63
63
 
64
64
  content: '';
65
65
  bottom: 0.3125rem;
66
- height: 0.125rem;
67
- width: 0.75rem;
66
+ block-size: 0.125rem;
67
+ inline-size: 0.75rem;
68
68
  border-radius: 0.375rem;
69
69
  background: var(--tui-text-primary);
70
70
  }
@@ -80,13 +80,13 @@
80
80
 
81
81
  &:not(:last-child)::before {
82
82
  right: -0.1875rem;
83
- border-top-right-radius: 0;
84
- border-bottom-right-radius: 0;
83
+ border-start-end-radius: 0;
84
+ border-end-end-radius: 0;
85
85
  }
86
86
 
87
87
  &:not([data-range='start']):not(:first-child)::before {
88
- border-top-left-radius: 0;
89
- border-bottom-left-radius: 0;
88
+ border-start-start-radius: 0;
89
+ border-end-start-radius: 0;
90
90
  }
91
91
 
92
92
  &:last-child:first-child::before {
@@ -94,13 +94,13 @@
94
94
  }
95
95
 
96
96
  &:first-child > .t-item {
97
- border-top-left-radius: var(--tui-radius-m);
98
- border-bottom-left-radius: var(--tui-radius-m);
97
+ border-start-start-radius: var(--tui-radius-m);
98
+ border-end-start-radius: var(--tui-radius-m);
99
99
  }
100
100
 
101
101
  &:last-child > .t-item {
102
- border-top-right-radius: var(--tui-radius-m);
103
- border-bottom-right-radius: var(--tui-radius-m);
102
+ border-start-end-radius: var(--tui-radius-m);
103
+ border-end-end-radius: var(--tui-radius-m);
104
104
  }
105
105
 
106
106
  & > .t-item {
@@ -143,16 +143,16 @@
143
143
  }
144
144
 
145
145
  &:not(:first-child)::before {
146
- border-top-left-radius: 0;
147
- border-bottom-left-radius: 0;
146
+ border-start-start-radius: 0;
147
+ border-end-start-radius: 0;
148
148
  }
149
149
  }
150
150
 
151
151
  &[data-range='end'] > .t-item {
152
152
  &::before {
153
153
  left: 0.625rem;
154
- border-top-left-radius: 0;
155
- border-bottom-left-radius: 0;
154
+ border-start-start-radius: 0;
155
+ border-end-start-radius: 0;
156
156
  }
157
157
 
158
158
  &::after {
@@ -165,8 +165,8 @@
165
165
  &[data-range='start'] > .t-item {
166
166
  &::before {
167
167
  right: 0.625rem;
168
- border-top-right-radius: 0;
169
- border-bottom-right-radius: 0;
168
+ border-start-end-radius: 0;
169
+ border-end-end-radius: 0;
170
170
  }
171
171
 
172
172
  &::after {
@@ -18,13 +18,13 @@
18
18
  &:first-child {
19
19
  left: -@first-tick-center;
20
20
  flex: 1;
21
- text-align: left;
21
+ text-align: start;
22
22
  }
23
23
 
24
24
  &:last-child {
25
25
  right: -@first-tick-center;
26
26
  flex: 1;
27
- text-align: right;
27
+ text-align: end;
28
28
  }
29
29
  }
30
30
 
@@ -18,13 +18,13 @@ $thumb-diameters: (
18
18
  &:first-child {
19
19
  left: -$first-tick-center;
20
20
  flex: 1;
21
- text-align: left;
21
+ text-align: start;
22
22
  }
23
23
 
24
24
  &:last-child {
25
25
  right: -$first-tick-center;
26
26
  flex: 1;
27
- text-align: right;
27
+ text-align: end;
28
28
  }
29
29
  }
30
30
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  [tuiAppearance][data-appearance='floating'] {
4
4
  background: #fff;
5
- color: rgba(0, 0, 0, 0.8);
6
- box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
5
+ color: rgb(0 0 0 / 80%);
6
+ box-shadow: 0 0.25rem 1.25rem rgb(0 0 0 / 10%);
7
7
 
8
8
  .appearance-hover({
9
9
  box-shadow: 0 0.875rem 2.625rem rgba(0, 0, 0, 0.14);
@@ -1,11 +1,11 @@
1
1
  @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
2
 
3
3
  [tuiAppearance][data-appearance='glass'] {
4
- background: rgba(0, 0, 0, 0.4);
4
+ background: rgb(0 0 0 / 40%);
5
5
  color: #fff;
6
6
  backdrop-filter: blur(1rem);
7
7
 
8
- --tui-border-focus: rgba(255, 255, 255, 0.64);
8
+ --tui-border-focus: rgb(255 255 255 / 64%);
9
9
 
10
10
  .appearance-hover({
11
11
  background: rgba(0, 0, 0, 0.48);
@@ -18,7 +18,7 @@
18
18
 
19
19
  [tuiTheme='dark'] [tuiAppearance][data-appearance='glass'],
20
20
  [tuiTheme='dark'][tuiAppearance][data-appearance='glass'] {
21
- background: rgba(255, 255, 255, 0.3);
21
+ background: rgb(255 255 255 / 30%);
22
22
 
23
23
  .appearance-hover({
24
24
  background: rgba(255, 255, 255, 0.4);
@@ -1,7 +1,7 @@
1
1
  @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
2
 
3
3
  [tuiAppearance][data-appearance='opposite'] {
4
- --tui-border-focus: rgba(255, 255, 255, 0.64);
4
+ --tui-border-focus: rgb(255 255 255 / 64%);
5
5
 
6
6
  background: var(--tui-background-accent-opposite);
7
7
  color: var(--tui-background-base);
@@ -17,5 +17,5 @@
17
17
 
18
18
  [tuiTheme='dark'] [tuiAppearance][data-appearance='opposite'],
19
19
  [tuiTheme='dark'][tuiAppearance][data-appearance='opposite'] {
20
- --tui-border-focus: rgba(51, 51, 51, 0.48);
20
+ --tui-border-focus: rgb(51 51 51 / 48%);
21
21
  }
@@ -1,9 +1,9 @@
1
1
  @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
2
 
3
3
  [tuiAppearance][data-appearance='textfield'] {
4
- .transition(~'box-shadow, background, outline-color');
4
+ .transition(~'box-shadow, background, outline-color, border-color');
5
5
 
6
- --t-shadow: 0 0.125rem 0.1875rem rgba(0, 0, 0, 0.1);
6
+ --t-shadow: 0 0.125rem 0.1875rem rgb(0 0 0 / 10%);
7
7
 
8
8
  background-color: var(--tui-background-base);
9
9
  color: var(--tui-text-primary);
@@ -31,21 +31,25 @@
31
31
  outline-color: var(--tui-status-negative);
32
32
  }
33
33
 
34
- &[data-mode='readonly'] {
34
+ &[data-mode='readonly'],
35
+ input&:read-only:not([data-mode]) {
35
36
  box-shadow: none;
36
37
  outline-color: var(--tui-border-normal) !important;
37
38
  }
38
39
 
39
40
  &:-webkit-autofill {
40
41
  -webkit-text-fill-color: var(--tui-text-primary) !important;
41
- border-color: var(--tui-service-autofill-background);
42
+ caret-color: var(--tui-text-primary) !important;
43
+ border-color: var(--tui-service-autofill-background) !important;
42
44
  box-shadow: 0 0 0 100rem var(--tui-service-autofill-background) inset !important;
45
+ transition: background-color 600000s 0s;
43
46
  }
44
47
  }
45
48
 
46
49
  [tuiTheme='dark'] [tuiAppearance][data-appearance='textfield'],
47
50
  [tuiTheme='dark'][tuiAppearance][data-appearance='textfield'] {
48
51
  background-color: var(--tui-background-neutral-1);
52
+ color-scheme: dark;
49
53
 
50
54
  .appearance-hover({
51
55
  background-color: var(--tui-background-neutral-1-hover);