@taiga-ui/core 4.19.0 → 4.20.0

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 (35) 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 +1 -1
  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-textfield.mjs +7 -4
  18. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  19. package/fesm2022/taiga-ui-core-directives-appearance.mjs +2 -2
  20. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  21. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +2 -2
  22. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-core-directives-group.mjs +6 -4
  24. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  25. package/fesm2022/taiga-ui-core-directives-hint.mjs +2 -1
  26. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  27. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +3 -1
  28. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  29. package/package.json +9 -9
  30. package/styles/components/appearance.less +2 -1
  31. package/styles/components/group.less +36 -14
  32. package/styles/components/textfield.less +8 -9
  33. package/styles/theme/appearance/outline.less +1 -1
  34. package/styles/theme/palette.less +28 -9
  35. package/utils/miscellaneous/to-animation-options.d.ts +1 -1
@@ -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;