@taiga-ui/core 4.3.0 → 4.4.0-canary.6e6e993

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 (49) hide show
  1. package/components/icon/icon.component.d.ts +5 -4
  2. package/components/scrollbar/scrollbar.component.d.ts +2 -1
  3. package/components/textfield/textfield.component.d.ts +1 -0
  4. package/esm2022/components/calendar/calendar-sheet.component.mjs +3 -3
  5. package/esm2022/components/icon/icon.component.mjs +17 -23
  6. package/esm2022/components/notification/notification.options.mjs +2 -2
  7. package/esm2022/components/root/root.component.mjs +1 -1
  8. package/esm2022/components/scrollbar/scrollbar.component.mjs +12 -11
  9. package/esm2022/components/scrollbar/scrollbar.directive.mjs +7 -5
  10. package/esm2022/components/textfield/textfield.component.mjs +6 -3
  11. package/esm2022/directives/icons/icons.directive.mjs +2 -2
  12. package/esm2022/pipes/month/month.pipe.mjs +2 -2
  13. package/esm2022/services/breakpoint.service.mjs +2 -2
  14. package/esm2022/services/dark-theme.service.mjs +4 -1
  15. package/esm2022/tokens/dark-mode.mjs +40 -0
  16. package/esm2022/tokens/icon-resolver.mjs +12 -10
  17. package/esm2022/tokens/icons.mjs +8 -4
  18. package/esm2022/tokens/index.mjs +2 -1
  19. package/esm2022/utils/format/number-to-string-without-exp.mjs +2 -2
  20. package/fesm2022/taiga-ui-core-components-calendar.mjs +2 -2
  21. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  22. package/fesm2022/taiga-ui-core-components-icon.mjs +16 -22
  23. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  24. package/fesm2022/taiga-ui-core-components-notification.mjs +1 -1
  25. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
  27. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +17 -14
  28. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-core-components-textfield.mjs +5 -2
  30. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-core-directives-icons.mjs +2 -2
  32. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-core-pipes-month.mjs +1 -1
  34. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-core-services.mjs +4 -1
  36. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-core-tokens.mjs +57 -15
  38. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-core-utils-format.mjs +1 -1
  40. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  41. package/package.json +324 -324
  42. package/services/dark-theme.service.d.ts +3 -0
  43. package/styles/components/icon.less +1 -1
  44. package/styles/components/icons.less +1 -0
  45. package/styles/components/textfield.less +1 -0
  46. package/tokens/dark-mode.d.ts +6 -0
  47. package/tokens/icon-resolver.d.ts +4 -0
  48. package/tokens/icons.d.ts +4 -0
  49. package/tokens/index.d.ts +1 -0
@@ -1,5 +1,8 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * @deprecated use {@link TUI_DARK_MODE} instead
5
+ */
3
6
  export declare class TuiDarkThemeService extends Observable<boolean> {
4
7
  constructor();
5
8
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiDarkThemeService, never>;
@@ -34,7 +34,7 @@ tui-icon {
34
34
 
35
35
  content: '';
36
36
  display: block;
37
- mask: var(--t-icon) no-repeat center/contain;
37
+ mask: var(--t-icon) no-repeat center/contain intersect;
38
38
  background: currentColor;
39
39
  }
40
40
  }
@@ -25,6 +25,7 @@
25
25
  display: var(--t-icon-start);
26
26
  width: 1em;
27
27
  height: 1em;
28
+ line-height: 1em;
28
29
  font-size: 1.5rem;
29
30
  flex-shrink: 0;
30
31
  background: currentColor;
@@ -257,6 +257,7 @@ tui-textfield {
257
257
  align-items: center;
258
258
  gap: 0.25rem;
259
259
  margin-inline-start: auto;
260
+ isolation: isolate;
260
261
  }
261
262
 
262
263
  .t-clear {
@@ -0,0 +1,6 @@
1
+ import { InjectionToken, type WritableSignal } from '@angular/core';
2
+ export declare const TUI_DARK_MODE_DEFAULT_KEY = "tuiDark";
3
+ export declare const TUI_DARK_MODE_KEY: InjectionToken<string>;
4
+ export declare const TUI_DARK_MODE: InjectionToken<WritableSignal<boolean> & {
5
+ reset(): void;
6
+ }>;
@@ -1,5 +1,9 @@
1
1
  import type { Provider } from '@angular/core';
2
2
  import type { TuiStringHandler } from '@taiga-ui/cdk/types';
3
+ export declare const TUI_ICON_RESOLVER: import("@angular/core").InjectionToken<TuiStringHandler<string>>;
4
+ /**
5
+ * @deprecated use {@link TUI_ICON_RESOLVER}
6
+ */
3
7
  export declare const TUI_ICON_START_RESOLVER: import("@angular/core").InjectionToken<TuiStringHandler<string>>;
4
8
  export declare function tuiInjectIconResolver(): TuiStringHandler<string>;
5
9
  export declare function tuiIconResolverProvider(useValue: TuiStringHandler<string>): Provider;
package/tokens/icons.d.ts CHANGED
@@ -1,3 +1,7 @@
1
1
  import type { FactoryProvider } from '@angular/core';
2
+ export declare const TUI_ICON_REGISTRY: import("@angular/core").InjectionToken<Record<string, string>>;
3
+ /**
4
+ * @deprecated: use {@link TUI_ICON_REGISTRY}
5
+ */
2
6
  export declare const TUI_ICON_STARTS: import("@angular/core").InjectionToken<Record<string, string>>;
3
7
  export declare function tuiIconsProvider(icons: Record<string, string>): FactoryProvider;
package/tokens/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export * from './animations-speed';
2
2
  export * from './assets-path';
3
3
  export * from './common-icons';
4
+ export * from './dark-mode';
4
5
  export * from './date-format';
5
6
  export * from './day-type-handler';
6
7
  export * from './first-day-of-week';