@taiga-ui/core 4.19.0 → 4.20.0-canary.ef907c4

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 (36) hide show
  1. package/components/dialog/dialog.factory.d.ts +5 -1
  2. package/components/textfield/textfield-content.directive.d.ts +4 -2
  3. package/directives/dropdown/with-dropdown-open.directive.d.ts +1 -1
  4. package/directives/hint/hint-manual.directive.d.ts +1 -1
  5. package/esm2022/components/dialog/dialog.factory.mjs +8 -5
  6. package/esm2022/components/root/root.component.mjs +2 -2
  7. package/esm2022/components/textfield/textfield-content.directive.mjs +6 -3
  8. package/esm2022/components/textfield/textfield.component.mjs +3 -3
  9. package/esm2022/directives/appearance/appearance.directive.mjs +2 -2
  10. package/esm2022/directives/dropdown/with-dropdown-open.directive.mjs +3 -3
  11. package/esm2022/directives/group/group.directive.mjs +7 -5
  12. package/esm2022/directives/hint/hint-manual.directive.mjs +3 -2
  13. package/esm2022/utils/miscellaneous/to-animation-options.mjs +4 -2
  14. package/fesm2022/taiga-ui-core-components-dialog.mjs +7 -4
  15. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
  16. package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
  17. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  18. package/fesm2022/taiga-ui-core-components-textfield.mjs +7 -4
  19. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-core-directives-appearance.mjs +2 -2
  21. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +2 -2
  23. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-core-directives-group.mjs +6 -4
  25. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-core-directives-hint.mjs +2 -1
  27. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  28. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +3 -1
  29. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  30. package/package.json +9 -9
  31. package/styles/components/appearance.less +2 -1
  32. package/styles/components/group.less +36 -14
  33. package/styles/components/textfield.less +8 -9
  34. package/styles/theme/appearance/outline.less +1 -1
  35. package/styles/theme/palette.less +28 -9
  36. package/utils/miscellaneous/to-animation-options.d.ts +1 -1
@@ -17,6 +17,7 @@ tui-textfield {
17
17
  border-radius: var(--tui-radius-l);
18
18
  font: var(--tui-font-text-m);
19
19
  box-sizing: border-box;
20
+ gap: 0.25rem;
20
21
 
21
22
  &[style*='--t-icon-start:'] {
22
23
  --t-left: 2.25rem;
@@ -26,10 +27,6 @@ tui-textfield {
26
27
  --t-right: 2.25rem;
27
28
  }
28
29
 
29
- &::after {
30
- margin-inline-start: 0.25rem;
31
- }
32
-
33
30
  input,
34
31
  select {
35
32
  font: var(--tui-font-text-m);
@@ -40,6 +37,7 @@ tui-textfield {
40
37
  --t-padding: var(--tui-padding-s);
41
38
 
42
39
  border-radius: var(--tui-radius-m);
40
+ gap: 0;
43
41
  font: var(--tui-font-text-s);
44
42
 
45
43
  &[style*='--t-icon-start:'] {
@@ -66,7 +64,6 @@ tui-textfield {
66
64
  }
67
65
 
68
66
  .t-content {
69
- gap: 0;
70
67
  margin-inline-end: -0.325rem;
71
68
  }
72
69
  }
@@ -87,11 +84,11 @@ tui-textfield {
87
84
  }
88
85
 
89
86
  &::before {
90
- margin: 0 0.375rem 0 -0.125rem;
87
+ margin: 0 0.125rem 0 -0.125rem;
91
88
  }
92
89
 
93
90
  &::after {
94
- margin: 0 -0.125rem 0 0.5rem;
91
+ margin: 0 -0.125rem 0 0.25rem;
95
92
  }
96
93
 
97
94
  input,
@@ -122,7 +119,7 @@ tui-textfield {
122
119
 
123
120
  &::before {
124
121
  z-index: 1;
125
- margin-inline-end: 0.75rem;
122
+ margin-inline-end: 0.5rem;
126
123
  }
127
124
 
128
125
  &:has(:disabled:not(.t-filler, button, option))::before,
@@ -182,8 +179,10 @@ tui-textfield {
182
179
  .t-template {
183
180
  display: flex;
184
181
  align-items: center;
182
+ color: var(--tui-text-primary);
185
183
  }
186
184
 
185
+ &._with-template input,
187
186
  &._with-template select {
188
187
  color: transparent !important;
189
188
  }
@@ -276,7 +275,7 @@ tui-textfield {
276
275
  .t-content {
277
276
  display: flex;
278
277
  align-items: center;
279
- gap: 0.25rem;
278
+ gap: inherit;
280
279
  margin-inline-start: auto;
281
280
  isolation: isolate;
282
281
  border-radius: inherit;
@@ -66,7 +66,7 @@
66
66
 
67
67
  &::before,
68
68
  &::after {
69
- .transition(color);
69
+ .transition(~'color, transform');
70
70
 
71
71
  color: var(--tui-text-tertiary);
72
72
  }
@@ -1,6 +1,4 @@
1
- [tuiTheme='dark'] {
2
- color-scheme: dark;
3
-
1
+ .dark() {
4
2
  // Backgrounds
5
3
  --tui-background-base: #222;
6
4
  --tui-background-base-alt: #333;
@@ -47,12 +45,7 @@
47
45
  --tui-text-negative-hover: #bb593a;
48
46
  }
49
47
 
50
- [tuiTheme='light'] {
51
- color-scheme: light;
52
- }
53
-
54
- &:root,
55
- [tuiTheme='light'] {
48
+ .light() {
56
49
  // Backgrounds
57
50
  --tui-background-base: #fff;
58
51
  --tui-background-base-alt: #f6f6f6;
@@ -138,3 +131,29 @@
138
131
  --tui-shadow-medium-hover: 0 1.25rem 4rem rgba(0, 0, 0, 0.18);
139
132
  --tui-shadow-popup: 0 1.25rem 3rem rgba(0, 0, 0, 0.2);
140
133
  }
134
+
135
+ @media screen {
136
+ [tuiTheme='dark'] {
137
+ color-scheme: dark;
138
+
139
+ .dark();
140
+ }
141
+
142
+ [tuiTheme='light'] {
143
+ color-scheme: light;
144
+ }
145
+
146
+ &:root,
147
+ [tuiTheme='light'] {
148
+ .light();
149
+ }
150
+ }
151
+
152
+ @media print {
153
+ &:root,
154
+ [tuiTheme] {
155
+ color-scheme: light;
156
+
157
+ .light();
158
+ }
159
+ }
@@ -1,4 +1,4 @@
1
1
  import type { AnimationOptions } from '@angular/animations';
2
2
  export declare const TUI_ANIMATIONS_DEFAULT_DURATION = 300;
3
- export declare function tuiToAnimationOptions(speed: number, easing?: string): AnimationOptions;
3
+ export declare function tuiToAnimationOptions(speed?: number, easing?: string): AnimationOptions;
4
4
  export declare function tuiGetDuration(speed: number): number;