@taiga-ui/core 5.0.0-canary.b049509 → 5.0.0-canary.c343ecb

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 (60) hide show
  1. package/fesm2022/taiga-ui-core-classes.mjs +3 -3
  2. package/fesm2022/taiga-ui-core-components-button.mjs +6 -6
  3. package/fesm2022/taiga-ui-core-components-calendar.mjs +23 -33
  4. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  5. package/fesm2022/taiga-ui-core-components-cell.mjs +7 -7
  6. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -1
  7. package/fesm2022/taiga-ui-core-components-data-list.mjs +17 -17
  8. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  9. package/fesm2022/taiga-ui-core-components-error.mjs +10 -12
  10. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  11. package/fesm2022/taiga-ui-core-components-expand.mjs +3 -3
  12. package/fesm2022/taiga-ui-core-components-icon.mjs +8 -12
  13. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  14. package/fesm2022/taiga-ui-core-components-input.mjs +6 -6
  15. package/fesm2022/taiga-ui-core-components-label.mjs +6 -6
  16. package/fesm2022/taiga-ui-core-components-link.mjs +6 -6
  17. package/fesm2022/taiga-ui-core-components-loader.mjs +3 -3
  18. package/fesm2022/taiga-ui-core-components-notification.mjs +17 -19
  19. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  20. package/fesm2022/taiga-ui-core-components-root.mjs +3 -3
  21. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +24 -30
  22. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  23. package/fesm2022/taiga-ui-core-components-spin-button.mjs +3 -3
  24. package/fesm2022/taiga-ui-core-components-textfield.mjs +22 -24
  25. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  26. package/fesm2022/taiga-ui-core-components-title.mjs +6 -6
  27. package/fesm2022/taiga-ui-core-directives-appearance.mjs +12 -16
  28. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-core-directives-button-x.mjs +3 -3
  30. package/fesm2022/taiga-ui-core-directives-date-format.mjs +3 -3
  31. package/fesm2022/taiga-ui-core-directives-group.mjs +6 -6
  32. package/fesm2022/taiga-ui-core-directives-icons.mjs +9 -9
  33. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +12 -18
  34. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-core-directives-number-format.mjs +3 -3
  36. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +3 -3
  37. package/fesm2022/taiga-ui-core-portals-alert.mjs +9 -9
  38. package/fesm2022/taiga-ui-core-portals-dialog.mjs +13 -15
  39. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -1
  40. package/fesm2022/taiga-ui-core-portals-dropdown.mjs +57 -69
  41. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -1
  42. package/fesm2022/taiga-ui-core-portals-hint.mjs +40 -48
  43. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -1
  44. package/fesm2022/taiga-ui-core-portals-modal.mjs +6 -6
  45. package/fesm2022/taiga-ui-core-portals-popup.mjs +11 -15
  46. package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-core-services.mjs +7 -9
  48. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-core-tokens.mjs +16 -32
  50. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  51. package/package.json +50 -50
  52. package/styles/components/appearance.less +1 -0
  53. package/styles/components/notification.less +1 -1
  54. package/styles/mixins/slider.less +12 -15
  55. package/styles/mixins/slider.scss +12 -17
  56. package/styles/theme/appearance/action.less +0 -14
  57. package/styles/theme/appearance/floating.less +5 -0
  58. package/tokens/i18n.d.ts +4 -0
  59. package/tokens/index.d.ts +0 -1
  60. package/tokens/theme.d.ts +0 -2
@@ -1,20 +1,15 @@
1
- $thumb-diameters: (
2
- 's': 0.5rem,
3
- 'm': 0.75rem,
4
- 'l': 0.75rem,
5
- );
6
-
7
1
  $track-inset: (
8
2
  's': 0.625rem,
9
3
  'm': 0.75rem,
10
4
  'l': 1rem,
11
5
  );
12
6
 
13
- // TODO(v5): use `l` by default (default size for new textfields)
14
- @mixin tui-slider-ticks-labels($input-size: m) {
15
- $thumb: map-get($thumb-diameters, $input-size);
7
+ $thumb-diameter: var(--tui-thumb-size, 0.75rem);
8
+ $thumb-radius: calc($thumb-diameter / 2);
9
+ $track-thickness: max(calc($thumb-radius - 0.25rem), 0.125rem);
16
10
 
17
- --t-offset: calc($thumb / 2);
11
+ @mixin tui-slider-ticks-labels() {
12
+ --t-offset: $thumb-radius;
18
13
 
19
14
  display: flex;
20
15
  font: var(--tui-font-body-s);
@@ -40,33 +35,33 @@ $track-inset: (
40
35
  }
41
36
 
42
37
  tui-range + & {
43
- --t-offset: $thumb;
38
+ --t-offset: $thumb-diameter;
44
39
  }
45
40
 
46
41
  /* TODO: add :has([tuiInputSlider]) */
47
42
  tui-textfield[data-size='l'] + & {
48
- --t-offset: calc(map-get($track-inset, 'l') + $thumb / 2);
43
+ --t-offset: calc(map-get($track-inset, 'l') + $thumb-radius);
49
44
  }
50
45
 
51
46
  /* TODO: add :has([tuiInputSlider]) */
52
47
  tui-textfield[data-size='m'] + & {
53
- --t-offset: calc(map-get($track-inset, 'm') + $thumb / 2);
48
+ --t-offset: calc(map-get($track-inset, 'm') + $thumb-radius);
54
49
  }
55
50
 
56
51
  /* TODO: add :has([tuiInputSlider]) */
57
52
  tui-textfield[data-size='s'] + & {
58
- --t-offset: calc(map-get($track-inset, 's') + $thumb / 2);
53
+ --t-offset: calc(map-get($track-inset, 's') + $thumb-radius);
59
54
  }
60
55
 
61
56
  tui-input-range[data-size='l'] + & {
62
- --t-offset: calc(map-get($track-inset, 'l') + $thumb);
57
+ --t-offset: calc(map-get($track-inset, 'l') + $thumb-diameter);
63
58
  }
64
59
 
65
60
  tui-input-range[data-size='m'] + & {
66
- --t-offset: calc(map-get($track-inset, 'm') + $thumb);
61
+ --t-offset: calc(map-get($track-inset, 'm') + $thumb-diameter);
67
62
  }
68
63
 
69
64
  tui-input-range[data-size='s'] + & {
70
- --t-offset: calc(map-get($track-inset, 's') + $thumb);
65
+ --t-offset: calc(map-get($track-inset, 's') + $thumb-diameter);
71
66
  }
72
67
  }
@@ -1,17 +1,3 @@
1
- /* TODO @deprecated remove in v5 */
2
- [tuiAppearance][data-appearance='link'] {
3
- color: var(--tui-text-action);
4
- background: transparent;
5
-
6
- .appearance-hover({
7
- color: var(--tui-text-action-hover);
8
- });
9
-
10
- .appearance-active({
11
- color: var(--tui-text-action-hover);
12
- });
13
- }
14
-
15
1
  [tuiAppearance][data-appearance='action'] {
16
2
  color: var(--tui-text-action);
17
3
  background: transparent;
@@ -5,6 +5,11 @@
5
5
  color: var(--tui-text-primary);
6
6
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
7
7
 
8
+ &::before,
9
+ &::after {
10
+ transition-property: color;
11
+ }
12
+
8
13
  .appearance-hover({
9
14
  box-shadow: 0 0.875rem 2.625rem rgba(0, 0, 0, 0.14);
10
15
  });
package/tokens/i18n.d.ts CHANGED
@@ -7,6 +7,10 @@ export declare const TUI_MONTHS: InjectionToken<import("@angular/core").Signal<r
7
7
  * i18n 'close' word
8
8
  */
9
9
  export declare const TUI_CLOSE_WORD: InjectionToken<import("@angular/core").Signal<string>>;
10
+ /**
11
+ * i18n 'back' word
12
+ */
13
+ export declare const TUI_BACK_WORD: InjectionToken<import("@angular/core").Signal<string>>;
10
14
  /**
11
15
  * i18n 'clear' word
12
16
  */
package/tokens/index.d.ts CHANGED
@@ -13,6 +13,5 @@ export * from './media';
13
13
  export * from './number-format';
14
14
  export * from './reduced-motion';
15
15
  export * from './selection-stream';
16
- export * from './theme';
17
16
  export * from './validation-errors';
18
17
  export * from './viewport';
package/tokens/theme.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const TUI_THEME: InjectionToken<string>;