@taiga-ui/core 4.43.0 → 4.44.0-canary.0bcf1bf

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 (150) hide show
  1. package/components/alert/alert.tokens.d.ts +5 -4
  2. package/components/calendar/calendar-sheet.options.d.ts +2 -1
  3. package/components/data-list/data-list.tokens.d.ts +3 -2
  4. package/components/data-list/option/option-content.d.ts +2 -1
  5. package/components/dialog/dialog.factory.d.ts +3 -3
  6. package/components/dialog/dialog.tokens.d.ts +4 -3
  7. package/components/link/link.options.d.ts +2 -1
  8. package/components/loader/loader.options.d.ts +2 -1
  9. package/components/spin-button/spin-button.component.d.ts +0 -2
  10. package/components/textfield/select-like.directive.d.ts +0 -1
  11. package/components/textfield/textfield-accessor.d.ts +2 -1
  12. package/components/textfield/textfield-multi/textfield-item.component.d.ts +1 -0
  13. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +2 -1
  14. package/components/textfield/textfield.component.d.ts +2 -2
  15. package/components/textfield/textfield.options.d.ts +2 -1
  16. package/directives/appearance/appearance.options.d.ts +2 -1
  17. package/directives/dropdown/dropdown-hover.options.d.ts +2 -1
  18. package/directives/dropdown/dropdown-options.directive.d.ts +2 -1
  19. package/directives/dropdown/dropdown.providers.d.ts +3 -2
  20. package/directives/group/group.options.d.ts +2 -1
  21. package/directives/hint/hint-options.directive.d.ts +2 -1
  22. package/directives/hint/hint.providers.d.ts +2 -1
  23. package/directives/items-handlers/items-handlers.tokens.d.ts +2 -1
  24. package/esm2022/components/alert/alert.component.mjs +3 -3
  25. package/esm2022/components/alert/alert.tokens.mjs +28 -21
  26. package/esm2022/components/calendar/calendar-sheet.component.mjs +3 -3
  27. package/esm2022/components/calendar/calendar-sheet.options.mjs +6 -3
  28. package/esm2022/components/calendar/calendar.component.mjs +3 -3
  29. package/esm2022/components/data-list/data-list.component.mjs +3 -3
  30. package/esm2022/components/data-list/data-list.tokens.mjs +5 -4
  31. package/esm2022/components/data-list/option/option-content.mjs +3 -4
  32. package/esm2022/components/dialog/dialog.component.mjs +3 -3
  33. package/esm2022/components/dialog/dialog.factory.mjs +1 -1
  34. package/esm2022/components/dialog/dialog.tokens.mjs +12 -5
  35. package/esm2022/components/dialog/dialogs.component.mjs +3 -3
  36. package/esm2022/components/label/label.directive.mjs +2 -2
  37. package/esm2022/components/link/link.options.mjs +6 -3
  38. package/esm2022/components/loader/loader.component.mjs +3 -3
  39. package/esm2022/components/loader/loader.options.mjs +6 -3
  40. package/esm2022/components/notification/notification.directive.mjs +2 -2
  41. package/esm2022/components/root/root.component.mjs +3 -3
  42. package/esm2022/components/scrollbar/scroll-controls.component.mjs +3 -3
  43. package/esm2022/components/scrollbar/scrollbar.directive.mjs +3 -2
  44. package/esm2022/components/scrollbar/scrollbar.service.mjs +7 -3
  45. package/esm2022/components/spin-button/spin-button.component.mjs +5 -11
  46. package/esm2022/components/textfield/select-like.directive.mjs +4 -16
  47. package/esm2022/components/textfield/textfield-accessor.mjs +4 -3
  48. package/esm2022/components/textfield/textfield-dropdown.directive.mjs +7 -2
  49. package/esm2022/components/textfield/textfield-multi/textfield-item.component.mjs +7 -4
  50. package/esm2022/components/textfield/textfield-multi/textfield-multi.component.mjs +20 -10
  51. package/esm2022/components/textfield/textfield.component.mjs +11 -9
  52. package/esm2022/components/textfield/textfield.options.mjs +9 -7
  53. package/esm2022/directives/appearance/appearance.options.mjs +6 -3
  54. package/esm2022/directives/dropdown/dropdown-hover.options.mjs +6 -3
  55. package/esm2022/directives/dropdown/dropdown-options.directive.mjs +6 -4
  56. package/esm2022/directives/dropdown/dropdown.providers.mjs +6 -4
  57. package/esm2022/directives/group/group.directive.mjs +2 -2
  58. package/esm2022/directives/group/group.options.mjs +6 -3
  59. package/esm2022/directives/hint/hint-options.directive.mjs +6 -4
  60. package/esm2022/directives/hint/hint.providers.mjs +5 -3
  61. package/esm2022/directives/items-handlers/items-handlers.tokens.mjs +5 -4
  62. package/esm2022/directives/title/title.directive.mjs +2 -2
  63. package/esm2022/tokens/animations-speed.mjs +5 -4
  64. package/esm2022/tokens/assets-path.mjs +5 -3
  65. package/esm2022/tokens/auxiliary.mjs +6 -3
  66. package/esm2022/tokens/common-icons.mjs +6 -3
  67. package/esm2022/tokens/dark-mode.mjs +34 -31
  68. package/esm2022/tokens/date-format.mjs +5 -4
  69. package/esm2022/tokens/day-type-handler.mjs +5 -3
  70. package/esm2022/tokens/first-day-of-week.mjs +5 -3
  71. package/esm2022/tokens/i18n.mjs +23 -9
  72. package/esm2022/tokens/icon-resolver.mjs +7 -6
  73. package/esm2022/tokens/icon.mjs +8 -4
  74. package/esm2022/tokens/icons.mjs +5 -4
  75. package/esm2022/tokens/media.mjs +8 -6
  76. package/esm2022/tokens/number-format.mjs +5 -4
  77. package/esm2022/tokens/reduced-motion.mjs +6 -5
  78. package/esm2022/tokens/scroll-ref.mjs +5 -4
  79. package/esm2022/tokens/selection-stream.mjs +7 -6
  80. package/esm2022/tokens/spin-icons.mjs +7 -5
  81. package/esm2022/tokens/theme.mjs +5 -3
  82. package/esm2022/tokens/viewport.mjs +27 -25
  83. package/fesm2022/taiga-ui-core-components-alert.mjs +29 -22
  84. package/fesm2022/taiga-ui-core-components-alert.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-core-components-calendar.mjs +9 -7
  86. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-core-components-data-list.mjs +7 -7
  88. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-core-components-dialog.mjs +15 -9
  90. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-core-components-label.mjs +2 -2
  92. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-core-components-link.mjs +5 -3
  94. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  95. package/fesm2022/taiga-ui-core-components-loader.mjs +7 -5
  96. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  97. package/fesm2022/taiga-ui-core-components-notification.mjs +2 -2
  98. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  99. package/fesm2022/taiga-ui-core-components-root.mjs +2 -2
  100. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  101. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +10 -5
  102. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  103. package/fesm2022/taiga-ui-core-components-spin-button.mjs +4 -10
  104. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  105. package/fesm2022/taiga-ui-core-components-textfield.mjs +50 -41
  106. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  107. package/fesm2022/taiga-ui-core-directives-appearance.mjs +5 -3
  108. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  109. package/fesm2022/taiga-ui-core-directives-dropdown.mjs +12 -6
  110. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +1 -1
  111. package/fesm2022/taiga-ui-core-directives-group.mjs +7 -5
  112. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  113. package/fesm2022/taiga-ui-core-directives-hint.mjs +8 -4
  114. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +1 -1
  115. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +5 -3
  116. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  117. package/fesm2022/taiga-ui-core-directives-title.mjs +2 -2
  118. package/fesm2022/taiga-ui-core-directives-title.mjs.map +1 -1
  119. package/fesm2022/taiga-ui-core-tokens.mjs +143 -87
  120. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  121. package/package.json +3 -3
  122. package/styles/components/group.less +17 -0
  123. package/styles/components/label.less +2 -2
  124. package/styles/components/notification.less +9 -21
  125. package/styles/components/textfield.less +12 -3
  126. package/styles/components/title.less +8 -0
  127. package/styles/mixins/mixins.less +1 -1
  128. package/styles/mixins/slider.less +3 -3
  129. package/styles/mixins/slider.scss +3 -3
  130. package/styles/theme/appearance/table.less +1 -1
  131. package/tokens/animations-speed.d.ts +2 -1
  132. package/tokens/assets-path.d.ts +2 -1
  133. package/tokens/auxiliary.d.ts +2 -1
  134. package/tokens/common-icons.d.ts +2 -1
  135. package/tokens/dark-mode.d.ts +3 -2
  136. package/tokens/date-format.d.ts +2 -1
  137. package/tokens/day-type-handler.d.ts +2 -1
  138. package/tokens/first-day-of-week.d.ts +2 -1
  139. package/tokens/i18n.d.ts +8 -7
  140. package/tokens/icon-resolver.d.ts +3 -2
  141. package/tokens/icon.d.ts +3 -2
  142. package/tokens/icons.d.ts +3 -2
  143. package/tokens/media.d.ts +2 -1
  144. package/tokens/number-format.d.ts +2 -1
  145. package/tokens/reduced-motion.d.ts +2 -1
  146. package/tokens/scroll-ref.d.ts +2 -2
  147. package/tokens/selection-stream.d.ts +2 -1
  148. package/tokens/spin-icons.d.ts +2 -1
  149. package/tokens/theme.d.ts +2 -1
  150. package/tokens/viewport.d.ts +2 -1
@@ -186,6 +186,7 @@ tui-textfield {
186
186
  &::before {
187
187
  z-index: 1;
188
188
  margin-inline-end: 0.5rem;
189
+ pointer-events: none;
189
190
  }
190
191
 
191
192
  &:has(:disabled:not(.t-filler, button, option, [tuiChip]))::before,
@@ -278,9 +279,10 @@ tui-textfield {
278
279
  select:defined,
279
280
  textarea:defined {
280
281
  pointer-events: auto;
281
- background: transparent;
282
+ background: none;
282
283
 
283
- &:read-only ~ .t-filler {
284
+ // TODO: Remove :not when we drop old select tuiTextfield in v5
285
+ &:not(select):read-only ~ .t-filler {
284
286
  display: none;
285
287
  }
286
288
 
@@ -411,7 +413,6 @@ tui-textfield {
411
413
 
412
414
  & > .t-filler:defined {
413
415
  pointer-events: none;
414
- background: none;
415
416
  color: var(--tui-text-tertiary);
416
417
  opacity: 1;
417
418
  }
@@ -419,4 +420,12 @@ tui-textfield {
419
420
  [tuiFluidTypography] {
420
421
  font-weight: bold;
421
422
  }
423
+
424
+ [tuiSelectLike]:not(:read-only) {
425
+ cursor: pointer;
426
+ }
427
+
428
+ &:has(input[type='tel']) {
429
+ direction: ltr;
430
+ }
422
431
  }
@@ -70,3 +70,11 @@
70
70
  font: var(--tui-font-text-ui-s);
71
71
  margin: 0;
72
72
  }
73
+
74
+ [tuiButton] [tuiTitle] {
75
+ margin-inline-end: auto;
76
+
77
+ [tuiSubtitle] {
78
+ color: var(--tui-text-secondary);
79
+ }
80
+ }
@@ -162,7 +162,7 @@
162
162
 
163
163
  .tui-line-clamp(@count: 3) {
164
164
  display: -webkit-box;
165
- -webkit-box-orient: vertical;
165
+ -webkit-box-orient: block-axis;
166
166
  -webkit-line-clamp: @count;
167
167
  line-clamp: @count;
168
168
  overflow: hidden;
@@ -30,15 +30,15 @@
30
30
 
31
31
  tui-textfield + &, /* TODO: add :has([tuiInputSlider]) */
32
32
  tui-input-slider + & {
33
- margin-left: calc(var(--tui-radius-m) / 2 + @first-tick-center);
33
+ margin-inline-start: calc(var(--tui-radius-m) / 2 + @first-tick-center);
34
34
  }
35
35
 
36
36
  tui-input-range + &,
37
37
  tui-range + & {
38
38
  @thumb: @thumb-diameters[@@input-size];
39
39
 
40
- margin-left: @thumb;
41
- margin-right: @thumb;
40
+ margin-inline-start: @thumb;
41
+ margin-inline-end: @thumb;
42
42
 
43
43
  & > * {
44
44
  &:first-child {
@@ -29,14 +29,14 @@ $thumb-diameters: (
29
29
  }
30
30
 
31
31
  tui-input-slider + & {
32
- margin-left: calc(var(--tui-radius-m) / 2 + #{$first-tick-center});
32
+ margin-inline-start: calc(var(--tui-radius-m) / 2 + #{$first-tick-center});
33
33
  }
34
34
 
35
35
  tui-input-range + &,
36
36
  tui-range + & {
37
37
  $thumb: map-get($thumb-diameters, $input-size);
38
- margin-left: $thumb;
39
- margin-right: $thumb;
38
+ margin-inline-start: $thumb;
39
+ margin-inline-end: $thumb;
40
40
 
41
41
  & > * {
42
42
  &:first-child {
@@ -17,7 +17,7 @@ TODO: remove :not([tuiWrapper]) after legacy controls deletion
17
17
  background: transparent;
18
18
  border: none;
19
19
  outline: none;
20
- border-bottom: calc(var(--t-row-height) - var(--t-height)) solid transparent;
20
+ border-block-end: calc(var(--t-row-height) - var(--t-height)) solid transparent;
21
21
 
22
22
  &:not(._empty) {
23
23
  color: var(--tui-text-primary);
@@ -1,4 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  /**
2
3
  * Speed of all Taiga UI animations. 1 equals 300ms.
3
4
  */
4
- export declare const TUI_ANIMATIONS_SPEED: import("@angular/core").InjectionToken<number>;
5
+ export declare const TUI_ANIMATIONS_SPEED: InjectionToken<number>;
@@ -1,3 +1,4 @@
1
1
  import type { ValueProvider } from '@angular/core';
2
- export declare const TUI_ASSETS_PATH: import("@angular/core").InjectionToken<string>;
2
+ import { InjectionToken } from '@angular/core';
3
+ export declare const TUI_ASSETS_PATH: InjectionToken<string>;
3
4
  export declare function tuiAssetsPathProvider(useValue: string): ValueProvider;
@@ -1,3 +1,4 @@
1
1
  import type { Provider, Type } from '@angular/core';
2
- export declare const TUI_AUXILIARY: import("@angular/core").InjectionToken<null>;
2
+ import { InjectionToken } from '@angular/core';
3
+ export declare const TUI_AUXILIARY: InjectionToken<null>;
3
4
  export declare function tuiAsAuxiliary(x: Type<unknown>): Provider;
@@ -1,4 +1,5 @@
1
1
  import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  export interface TuiCommonIcons {
3
4
  readonly check: string;
4
5
  readonly close: string;
@@ -7,5 +8,5 @@ export interface TuiCommonIcons {
7
8
  readonly search: string;
8
9
  readonly ellipsis: string;
9
10
  }
10
- export declare const TUI_COMMON_ICONS: import("@angular/core").InjectionToken<TuiCommonIcons>;
11
+ export declare const TUI_COMMON_ICONS: InjectionToken<TuiCommonIcons>;
11
12
  export declare function tuiCommonIconsProvider(icons: Partial<TuiCommonIcons>): Provider;
@@ -1,6 +1,7 @@
1
1
  import type { WritableSignal } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  export declare const TUI_DARK_MODE_DEFAULT_KEY = "tuiDark";
3
- export declare const TUI_DARK_MODE_KEY: import("@angular/core").InjectionToken<string>;
4
- export declare const TUI_DARK_MODE: import("@angular/core").InjectionToken<WritableSignal<boolean> & {
4
+ export declare const TUI_DARK_MODE_KEY: InjectionToken<string>;
5
+ export declare const TUI_DARK_MODE: InjectionToken<WritableSignal<boolean> & {
5
6
  reset(): void;
6
7
  }>;
@@ -1,4 +1,5 @@
1
- import type { InjectionToken, Provider } from '@angular/core';
1
+ import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { TuiDateMode } from '@taiga-ui/cdk/date-time';
3
4
  import type { Observable } from 'rxjs';
4
5
  /**
@@ -1,6 +1,7 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  import type { TuiDay } from '@taiga-ui/cdk/date-time';
2
3
  import type { TuiHandler } from '@taiga-ui/cdk/types';
3
4
  /**
4
5
  * Token for adding data-type attribute to calendar cell
5
6
  */
6
- export declare const TUI_DAY_TYPE_HANDLER: import("@angular/core").InjectionToken<TuiHandler<TuiDay, string>>;
7
+ export declare const TUI_DAY_TYPE_HANDLER: InjectionToken<TuiHandler<TuiDay, string>>;
@@ -1,4 +1,5 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  /**
2
3
  * The first day of the week index
3
4
  */
4
- export declare const TUI_FIRST_DAY_OF_WEEK: import("@angular/core").InjectionToken<0 | 1 | 2 | 3 | 4 | 5 | 6>;
5
+ export declare const TUI_FIRST_DAY_OF_WEEK: InjectionToken<0 | 1 | 2 | 3 | 4 | 5 | 6>;
package/tokens/i18n.d.ts CHANGED
@@ -1,28 +1,29 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  /**
2
3
  * Localized months names
3
4
  */
4
- export declare const TUI_MONTHS: import("@angular/core").InjectionToken<import("rxjs").Observable<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
5
+ export declare const TUI_MONTHS: InjectionToken<import("rxjs").Observable<readonly [January: string, February: string, March: string, April: string, May: string, June: string, July: string, August: string, September: string, October: string, November: string, December: string]>>;
5
6
  /**
6
7
  * i18n 'close' word
7
8
  */
8
- export declare const TUI_CLOSE_WORD: import("@angular/core").InjectionToken<import("rxjs").Observable<string>>;
9
+ export declare const TUI_CLOSE_WORD: InjectionToken<import("rxjs").Observable<string>>;
9
10
  /**
10
11
  * i18n 'clear' word
11
12
  */
12
- export declare const TUI_CLEAR_WORD: import("@angular/core").InjectionToken<import("rxjs").Observable<string>>;
13
+ export declare const TUI_CLEAR_WORD: InjectionToken<import("rxjs").Observable<string>>;
13
14
  /**
14
15
  * i18n 'Nothing found' message
15
16
  */
16
- export declare const TUI_NOTHING_FOUND_MESSAGE: import("@angular/core").InjectionToken<import("rxjs").Observable<string>>;
17
+ export declare const TUI_NOTHING_FOUND_MESSAGE: InjectionToken<import("rxjs").Observable<string>>;
17
18
  /**
18
19
  * i18n of error message
19
20
  */
20
- export declare const TUI_DEFAULT_ERROR_MESSAGE: import("@angular/core").InjectionToken<import("rxjs").Observable<string>>;
21
+ export declare const TUI_DEFAULT_ERROR_MESSAGE: InjectionToken<import("rxjs").Observable<string>>;
21
22
  /**
22
23
  * spin i18n texts
23
24
  */
24
- export declare const TUI_SPIN_TEXTS: import("@angular/core").InjectionToken<import("rxjs").Observable<readonly [previous: string, next: string]>>;
25
+ export declare const TUI_SPIN_TEXTS: InjectionToken<import("rxjs").Observable<readonly [previous: string, next: string]>>;
25
26
  /**
26
27
  * calendars i18n texts
27
28
  */
28
- export declare const TUI_SHORT_WEEK_DAYS: import("@angular/core").InjectionToken<import("rxjs").Observable<readonly [Monday: string, Tuesday: string, Wednesday: string, Thursday: string, Friday: string, Saturday: string, Sunday: string]>>;
29
+ export declare const TUI_SHORT_WEEK_DAYS: InjectionToken<import("rxjs").Observable<readonly [Monday: string, Tuesday: string, Wednesday: string, Thursday: string, Friday: string, Saturday: string, Sunday: string]>>;
@@ -1,9 +1,10 @@
1
1
  import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { TuiStringHandler } from '@taiga-ui/cdk/types';
3
- export declare const TUI_ICON_RESOLVER: import("@angular/core").InjectionToken<TuiStringHandler<string>>;
4
+ export declare const TUI_ICON_RESOLVER: InjectionToken<TuiStringHandler<string>>;
4
5
  /**
5
6
  * @deprecated use {@link TUI_ICON_RESOLVER}
6
7
  */
7
- export declare const TUI_ICON_START_RESOLVER: import("@angular/core").InjectionToken<TuiStringHandler<string>>;
8
+ export declare const TUI_ICON_START_RESOLVER: InjectionToken<TuiStringHandler<string>>;
8
9
  export declare function tuiInjectIconResolver(): TuiStringHandler<string>;
9
10
  export declare function tuiIconResolverProvider(useValue: TuiStringHandler<string>): Provider;
package/tokens/icon.d.ts CHANGED
@@ -1,2 +1,3 @@
1
- export declare const TUI_ICON_START: import("@angular/core").InjectionToken<string>;
2
- export declare const TUI_ICON_END: import("@angular/core").InjectionToken<string>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const TUI_ICON_START: InjectionToken<string>;
3
+ export declare const TUI_ICON_END: InjectionToken<string>;
package/tokens/icons.d.ts CHANGED
@@ -1,7 +1,8 @@
1
1
  import type { FactoryProvider } from '@angular/core';
2
- export declare const TUI_ICON_REGISTRY: import("@angular/core").InjectionToken<Record<string, string>>;
2
+ import { InjectionToken } from '@angular/core';
3
+ export declare const TUI_ICON_REGISTRY: InjectionToken<Record<string, string>>;
3
4
  /**
4
5
  * @deprecated: use {@link TUI_ICON_REGISTRY}
5
6
  */
6
- export declare const TUI_ICON_STARTS: import("@angular/core").InjectionToken<Record<string, string>>;
7
+ export declare const TUI_ICON_STARTS: InjectionToken<Record<string, string>>;
7
8
  export declare function tuiIconsProvider(icons: Record<string, string>): FactoryProvider;
package/tokens/media.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  export interface TuiMedia {
2
3
  readonly desktopLarge: number;
3
4
  readonly desktopSmall: number;
@@ -7,4 +8,4 @@ export interface TuiMedia {
7
8
  /**
8
9
  * Token for media constant
9
10
  */
10
- export declare const TUI_MEDIA: import("@angular/core").InjectionToken<TuiMedia>;
11
+ export declare const TUI_MEDIA: InjectionToken<TuiMedia>;
@@ -1,4 +1,5 @@
1
- import type { InjectionToken, Provider } from '@angular/core';
1
+ import type { Provider } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { TuiRounding } from '@taiga-ui/cdk/types';
3
4
  import type { Observable } from 'rxjs';
4
5
  export type TuiDecimalMode = 'always' | 'not-zero' | 'pad';
@@ -1 +1,2 @@
1
- export declare const TUI_REDUCED_MOTION: import("@angular/core").InjectionToken<boolean>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const TUI_REDUCED_MOTION: InjectionToken<boolean>;
@@ -1,2 +1,2 @@
1
- import { ElementRef } from '@angular/core';
2
- export declare const TUI_SCROLL_REF: import("@angular/core").InjectionToken<ElementRef<HTMLElement>>;
1
+ import { ElementRef, InjectionToken } from '@angular/core';
2
+ export declare const TUI_SCROLL_REF: InjectionToken<ElementRef<HTMLElement>>;
@@ -1,5 +1,6 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  import type { Observable } from 'rxjs';
2
3
  /**
3
4
  * A stream of possible selection changes
4
5
  */
5
- export declare const TUI_SELECTION_STREAM: import("@angular/core").InjectionToken<Observable<unknown>>;
6
+ export declare const TUI_SELECTION_STREAM: InjectionToken<Observable<unknown>>;
@@ -1,5 +1,6 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  export interface TuiSpinIcons {
2
3
  readonly decrement: string;
3
4
  readonly increment: string;
4
5
  }
5
- export declare const TUI_SPIN_ICONS: import("@angular/core").InjectionToken<TuiSpinIcons>;
6
+ export declare const TUI_SPIN_ICONS: InjectionToken<TuiSpinIcons>;
package/tokens/theme.d.ts CHANGED
@@ -1 +1,2 @@
1
- export declare const TUI_THEME: import("@angular/core").InjectionToken<string>;
1
+ import { InjectionToken } from '@angular/core';
2
+ export declare const TUI_THEME: InjectionToken<string>;
@@ -1,7 +1,8 @@
1
1
  import type { Provider, Type } from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
2
3
  import type { TuiRectAccessor } from '@taiga-ui/core/classes';
3
4
  /**
4
5
  * Viewport accessor
5
6
  */
6
- export declare const TUI_VIEWPORT: import("@angular/core").InjectionToken<TuiRectAccessor>;
7
+ export declare const TUI_VIEWPORT: InjectionToken<TuiRectAccessor>;
7
8
  export declare function tuiAsViewport(accessor: Type<TuiRectAccessor>): Provider;