@taiga-ui/kit 5.0.0-rc.2 → 5.0.0-rc.3

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 (146) hide show
  1. package/components/calendar-month/calendar-month.component.d.ts +4 -3
  2. package/components/copy/button-copy.component.d.ts +17 -0
  3. package/components/copy/copy.d.ts +2 -1
  4. package/components/copy/copy.directive.d.ts +5 -2
  5. package/components/copy/copy.options.d.ts +1 -3
  6. package/components/copy/index.d.ts +1 -0
  7. package/components/index.d.ts +0 -3
  8. package/components/input-chip/input-chip.component.d.ts +5 -0
  9. package/components/input-chip/input-chip.directive.d.ts +1 -1
  10. package/components/input-date/input-date.directive.d.ts +2 -2
  11. package/components/input-date/input-date.options.d.ts +2 -4
  12. package/components/input-date-multi/input-date-multi.directive.d.ts +1 -1
  13. package/components/input-month/input-month.directive.d.ts +1 -1
  14. package/components/input-month/input-month.options.d.ts +1 -7
  15. package/components/input-month-range/input-month-range.directive.d.ts +1 -1
  16. package/components/input-month-range/input-month-range.options.d.ts +1 -3
  17. package/components/input-number/input-number.directive.d.ts +1 -0
  18. package/components/input-slider/input-slider.d.ts +1 -1
  19. package/components/input-time/input-time.directive.d.ts +1 -1
  20. package/components/input-time/input-time.options.d.ts +1 -3
  21. package/components/input-year/input-year.directive.d.ts +1 -1
  22. package/components/line-clamp/line-clamp-box.component.d.ts +2 -0
  23. package/components/line-clamp/line-clamp.component.d.ts +2 -0
  24. package/components/range/range.component.d.ts +2 -2
  25. package/components/select/select-option/select-option.component.d.ts +1 -1
  26. package/components/switch/switch.component.d.ts +1 -1
  27. package/components/switch/switch.options.d.ts +1 -1
  28. package/directives/password/password.options.d.ts +2 -4
  29. package/fesm2022/taiga-ui-kit-components-avatar.mjs +2 -2
  30. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-kit-components-badge.mjs +2 -2
  32. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-kit-components-block.mjs +2 -2
  34. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  35. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +24 -14
  36. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-kit-components-chip.mjs +3 -3
  38. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-kit-components-comment.mjs +3 -3
  40. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-kit-components-compass.mjs +2 -2
  42. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-kit-components-copy.mjs +87 -24
  44. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +2 -2
  46. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +11 -7
  48. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-kit-components-input-color.mjs +3 -3
  50. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +3 -2
  52. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-kit-components-input-date.mjs +6 -5
  54. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -2
  56. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-kit-components-input-month.mjs +4 -10
  58. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-kit-components-input-number.mjs +9 -4
  60. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +2 -2
  62. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +2 -2
  64. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  66. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +1 -1
  67. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  68. package/fesm2022/taiga-ui-kit-components-input-time.mjs +4 -3
  69. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-kit-components-input-year.mjs +3 -2
  71. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  72. package/fesm2022/taiga-ui-kit-components-like.mjs +2 -2
  73. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +16 -5
  75. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-kit-components-message.mjs +2 -2
  77. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +5 -5
  79. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-kit-components-pin.mjs +3 -3
  81. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-kit-components-preview.mjs +2 -2
  83. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-kit-components-progress.mjs +2 -2
  85. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +2 -2
  87. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-range.mjs +17 -14
  89. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-select.mjs +6 -9
  91. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-status.mjs +3 -3
  93. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-switch.mjs +3 -3
  95. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-tabs.mjs +13 -8
  97. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-textarea.mjs +4 -4
  99. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-toast.mjs +2 -2
  101. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components.mjs +0 -3
  103. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +2 -2
  105. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-directives-fade.mjs +2 -2
  107. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-directives-password.mjs +1 -7
  109. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  110. package/package.json +32 -45
  111. package/components/checkbox/checkbox.component.d.ts +0 -10
  112. package/components/checkbox/checkbox.options.d.ts +0 -10
  113. package/components/checkbox/index.d.ts +0 -2
  114. package/components/radio/index.d.ts +0 -4
  115. package/components/radio/radio.component.d.ts +0 -18
  116. package/components/radio/radio.d.ts +0 -3
  117. package/components/radio/radio.directive.d.ts +0 -8
  118. package/components/radio/radio.options.d.ts +0 -7
  119. package/components/slider/helpers/key-steps.d.ts +0 -27
  120. package/components/slider/helpers/slider-key-steps.directive.d.ts +0 -32
  121. package/components/slider/helpers/slider-readonly.directive.d.ts +0 -15
  122. package/components/slider/helpers/slider-thumb-label.component.d.ts +0 -13
  123. package/components/slider/index.d.ts +0 -6
  124. package/components/slider/slider.component.d.ts +0 -22
  125. package/components/slider/slider.d.ts +0 -5
  126. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +0 -37
  127. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +0 -1
  128. package/fesm2022/taiga-ui-kit-components-radio.mjs +0 -91
  129. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +0 -1
  130. package/fesm2022/taiga-ui-kit-components-slider.mjs +0 -337
  131. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +0 -1
  132. package/styles/components/avatar.less +0 -188
  133. package/styles/components/badge.less +0 -127
  134. package/styles/components/block.less +0 -118
  135. package/styles/components/checkbox.less +0 -84
  136. package/styles/components/chip.less +0 -131
  137. package/styles/components/comment.less +0 -64
  138. package/styles/components/compass.less +0 -49
  139. package/styles/components/like.less +0 -67
  140. package/styles/components/message.less +0 -33
  141. package/styles/components/pin.less +0 -164
  142. package/styles/components/progress-bar.less +0 -117
  143. package/styles/components/radio.less +0 -59
  144. package/styles/components/status.less +0 -40
  145. package/styles/components/switch.less +0 -103
  146. package/styles/components/toast.less +0 -44
@@ -1,164 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Pin
5
- * @selector tui-pin,[tuiPin]
6
- *
7
- * @description
8
- * A toggleable pin to be used on maps
9
- *
10
- * @example
11
- * <button tuiPin><img src="avatar.jpg" /></button>
12
- *
13
- * @see-also
14
- * Compass
15
- */
16
- [tuiPin]:where(*&) {
17
- --t-size: 2rem;
18
-
19
- .transition(~'width, height, border, margin');
20
- .button-clear();
21
-
22
- position: relative;
23
- display: flex;
24
- inline-size: var(--t-size);
25
- block-size: var(--t-size);
26
- align-items: stretch;
27
- flex-direction: column;
28
- justify-content: center;
29
- text-align: center;
30
- border-radius: 100%;
31
- font: var(--tui-font-body-s);
32
- font-weight: bold;
33
- box-sizing: border-box;
34
- color: var(--tui-text-primary-on-accent-2);
35
- background: var(--tui-background-accent-2);
36
- box-shadow: 0 0 0 0.125rem var(--tui-background-elevation-2);
37
- border: 0 solid var(--tui-background-accent-2);
38
- transform: translate(-50%, -50%);
39
-
40
- .interactive({
41
- cursor: pointer;
42
- });
43
-
44
- &:empty {
45
- --t-size: 0.75rem;
46
-
47
- &::before {
48
- display: none;
49
- }
50
- }
51
-
52
- > input {
53
- .fullsize();
54
-
55
- appearance: none;
56
- border-radius: 100%;
57
- }
58
-
59
- > img {
60
- max-block-size: 100%;
61
- box-sizing: border-box;
62
- border-radius: 100%;
63
- background: var(--tui-background-base);
64
- }
65
-
66
- > tui-icon {
67
- .transition(~'width, height');
68
-
69
- font-size: 1.25rem;
70
- align-self: center;
71
- }
72
-
73
- &:has(:checked) {
74
- --t-size: 3.5rem;
75
-
76
- font: var(--tui-font-body-m);
77
- font-weight: bold;
78
- border-width: 0;
79
- margin-block-start: -2.75rem;
80
-
81
- > img {
82
- padding: 0.125rem;
83
- }
84
-
85
- > tui-icon {
86
- font-size: 2.125rem;
87
- }
88
-
89
- &::before {
90
- transform: scale(0.99) translate(-1.875rem, -1.875rem);
91
- opacity: 1;
92
- }
93
-
94
- &::after {
95
- top: 4.5rem;
96
- opacity: 1;
97
- }
98
- }
99
-
100
- // TODO: Fallback until Safari 15.4
101
- &._open {
102
- --t-size: 3.5rem;
103
-
104
- font: var(--tui-font-body-m);
105
- font-weight: bold;
106
- border-width: 0;
107
- margin-block-start: -2.75rem;
108
-
109
- > img {
110
- padding: 0.125rem;
111
- }
112
-
113
- > tui-icon {
114
- font-size: 2.125rem;
115
- }
116
-
117
- &::before {
118
- transform: scale(0.99) translate(-1.875rem, -1.875rem);
119
- opacity: 1;
120
- }
121
-
122
- &::after {
123
- top: 4.5rem;
124
- opacity: 1;
125
- }
126
- }
127
-
128
- &::before {
129
- .transition(~'transform, opacity');
130
-
131
- content: '';
132
- position: absolute;
133
- top: 50%;
134
- left: 50%;
135
- right: -0.25rem;
136
- bottom: -0.625rem;
137
- box-sizing: border-box;
138
- border-width: 2.2rem 2rem;
139
- border-style: solid;
140
- border-color: inherit;
141
- opacity: 0;
142
- transform: scale(0.57) translate(-1.875rem, -1.875rem);
143
- transform-origin: top left;
144
- pointer-events: none;
145
- mask: url('data:image/svg+xml,<svg width="60" height="66" viewBox="0 0 60 66" xmlns="http://www.w3.org/2000/svg"><path d="M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z" /></svg>')
146
- no-repeat;
147
- }
148
-
149
- &::after {
150
- .transition(~'top, opacity');
151
-
152
- content: '';
153
- position: absolute;
154
- top: 50%;
155
- left: 50%;
156
- border: 0.1875rem solid currentColor;
157
- border-color: inherit;
158
- border-radius: 100%;
159
- box-sizing: border-box;
160
- box-shadow: inherit;
161
- transform: translate(-50%, -50%);
162
- opacity: 0;
163
- }
164
- }
@@ -1,117 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name ProgressBar
5
- * @selector [tuiProgressBar]
6
- *
7
- * @description
8
- * A stylized native progress element
9
- *
10
- * @attributes
11
- * data-size — size (default: 'm') ('xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' )
12
- *
13
- * @example
14
- * <progress tuiProgressBar value="33"></progress>
15
- */
16
- .clearProgress() {
17
- -webkit-appearance: none;
18
- -moz-appearance: none;
19
- appearance: none;
20
- border: none;
21
- }
22
-
23
- /* used to style inner value bar */
24
- .progressValue(@ruleset) {
25
- &::-webkit-progress-value {
26
- @ruleset(); // Chromium Edge | Chrome | Opera | Safari
27
- }
28
-
29
- &::-moz-progress-bar {
30
- @ruleset(); // Mozilla
31
- }
32
- }
33
-
34
- /*
35
- * Edge and IE animate the progress bar right out of the box
36
- * Chrome | Opera | Safari animation is controlled by its mixins
37
- * No possibility for firefox animation (https://snook.ca/archives/html_and_css/animating-progress)
38
- */
39
- .progressAnimation() {
40
- &::-webkit-progress-value {
41
- transition: inline-size var(--tui-duration) linear;
42
- }
43
- }
44
-
45
- @keyframes tuiIndeterminateAnimation {
46
- 50% {
47
- background-position: left;
48
- }
49
- }
50
-
51
- [tuiProgressBar]:where(*&) {
52
- @track-color: var(--tui-background-neutral-2);
53
- @progress-color: var(--tui-progress-color, currentColor);
54
-
55
- .clearProgress();
56
- .progressAnimation();
57
- .progressValue({ background: @progress-color; border-radius: inherit });
58
-
59
- --t-height: 0.75rem;
60
-
61
- display: block;
62
- inline-size: 100%;
63
- block-size: var(--t-height);
64
- color: var(--tui-background-accent-1);
65
- background: @track-color;
66
- clip-path: inset(0 0.5px round var(--tui-radius-m)); // 0.5px is a hack to prevent jagged edges on low dpi screens
67
- overflow: hidden;
68
- border-radius: 1rem;
69
- flex-shrink: 0;
70
-
71
- &[data-size='xxs'] {
72
- --t-height: 0.125rem;
73
- }
74
-
75
- &[data-size='xs'] {
76
- --t-height: 0.25rem;
77
- }
78
-
79
- &[data-size='s'] {
80
- --t-height: 0.5rem;
81
- }
82
-
83
- &[data-size='l'] {
84
- --t-height: 1rem;
85
- }
86
-
87
- &[data-size='xl'] {
88
- --t-height: 1.25rem;
89
- }
90
-
91
- &[data-size='xxl'] {
92
- --t-height: 1.5rem;
93
- }
94
-
95
- &:indeterminate {
96
- .progressValue({ background: transparent });
97
-
98
- background: linear-gradient(to right, @track-color 0 45%, @progress-color 45% 55%, @track-color 55% 100%) right;
99
- background-size: 225%;
100
- animation: tuiIndeterminateAnimation 3s infinite ease-in-out;
101
- }
102
-
103
- &::-webkit-progress-inner-element {
104
- border-radius: inherit;
105
- }
106
-
107
- &::-webkit-progress-bar {
108
- background: transparent;
109
- border-radius: inherit;
110
- }
111
-
112
- label[tuiProgressLabel] &:not(:first-child) {
113
- .fullsize();
114
-
115
- background: transparent;
116
- }
117
- }
@@ -1,59 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Radio
5
- * @selector [tuiRadio]
6
- *
7
- * @description
8
- * A stylized input type="radio"
9
- *
10
- * @attributes
11
- * data-size — size (default: 'm') ('s' | 'm')
12
- *
13
- * @example
14
- * <input type="radio" tuiRadio />
15
- *
16
- * @see-also
17
- * Checkbox, Switch, Appearance
18
- */
19
- [tuiRadio]:where(*&) {
20
- --t-size: 1.5rem;
21
-
22
- .transition(~'background, box-shadow');
23
-
24
- inline-size: var(--t-size);
25
- block-size: var(--t-size);
26
- cursor: pointer;
27
- margin: 0;
28
- flex-shrink: 0;
29
- border-radius: 100%;
30
- color: var(--tui-text-primary-on-accent-1);
31
-
32
- &:disabled._readonly._readonly {
33
- opacity: 1;
34
- }
35
-
36
- &::before {
37
- .fullsize(absolute, inset);
38
-
39
- content: '';
40
- margin: auto;
41
- border-radius: 100%;
42
- background: currentColor;
43
- transform: scale(0);
44
- transition-property: transform;
45
- }
46
-
47
- &:checked::before {
48
- transform: scale(0.5);
49
- }
50
-
51
- &[data-size='s'] {
52
- --t-size: 1rem;
53
- }
54
-
55
- &:invalid:not([data-mode]),
56
- &[data-mode~='invalid'] {
57
- color: #fff;
58
- }
59
- }
@@ -1,40 +0,0 @@
1
- /**
2
- * @name Status
3
- * @selector [tuiStatus]
4
- *
5
- * @description
6
- * An indicator of a status with a color dot
7
- *
8
- * @vars
9
- * --t-status — color of the dot
10
- *
11
- * @example
12
- * <span tuiStatus style="--t-status: green">Success</span>
13
- *
14
- * @see-also
15
- * Badge, Chip
16
- */
17
- [tuiStatus]:where(*&) {
18
- display: inline-flex;
19
- align-items: center;
20
- gap: 0.5rem;
21
-
22
- &::before {
23
- content: '';
24
- display: var(--t-status, none);
25
- inline-size: 0.5rem;
26
- block-size: 0.5rem;
27
- border-radius: 100%;
28
- background: var(--t-status);
29
- }
30
-
31
- &[data-size='s'],
32
- &[data-size='m'],
33
- &[data-size='l'] {
34
- gap: 0.25rem;
35
- }
36
-
37
- &[data-size='xl'] {
38
- gap: 0.375rem;
39
- }
40
- }
@@ -1,103 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Switch
5
- * @selector [tuiSwitch]
6
- *
7
- * @description
8
- * A stylized input type="checkbox" switch
9
- *
10
- * @attributes
11
- * data-size — size (default: 'm') ('s' | 'm')
12
- *
13
- * @vars
14
- * --t-icon-start — checkmark icon
15
- *
16
- * @example
17
- * <input type="checkbox" tuiSwitch tuiAppearance data-appearance="primary" />
18
- *
19
- * @see-also
20
- * Checkbox, Radio
21
- */
22
- [tuiSwitch]:where(*&) {
23
- .transition(~'background, box-shadow');
24
-
25
- display: inline-block;
26
- inline-size: 3rem;
27
- block-size: 1.5rem;
28
- border-radius: 2rem;
29
- overflow: hidden;
30
- cursor: pointer;
31
- margin: 0;
32
- flex-shrink: 0;
33
- color: #fff !important;
34
-
35
- &[data-size='s'] {
36
- block-size: 1rem;
37
- inline-size: 2rem;
38
-
39
- &::before {
40
- inline-size: 1rem;
41
- transform: translateX(-1rem);
42
- font-size: 0.75rem;
43
- }
44
-
45
- &::after {
46
- inline-size: 1rem;
47
- box-shadow: -2.625rem 0 0 0.5rem var(--tui-background-base);
48
- outline-width: 0.167rem;
49
- transform: scale(0.375);
50
- }
51
-
52
- &:checked::after {
53
- transform: scale(0.375) translateX(2.625rem);
54
- }
55
- }
56
-
57
- &:checked {
58
- &::before {
59
- transform: none;
60
- }
61
-
62
- &::after {
63
- transform: scale(0.33333) translateX(4.5rem);
64
- }
65
- }
66
-
67
- &:disabled._readonly._readonly {
68
- opacity: 1;
69
- }
70
-
71
- &::before,
72
- &::after {
73
- position: absolute;
74
- block-size: 100%;
75
- inline-size: 1.5rem;
76
- transition-property: transform;
77
- }
78
-
79
- &::before {
80
- left: 0.125rem;
81
- font-size: 1rem;
82
- transform: translateX(-1.5rem);
83
- }
84
-
85
- &::after {
86
- right: 0;
87
- display: block;
88
- border-radius: 100%;
89
- background: none;
90
- transform: scale(0.33333);
91
- box-shadow: -4.5rem 0 0 0.75rem var(--tui-background-base);
92
- outline: 0.375rem solid var(--tui-background-neutral-2-pressed);
93
- }
94
-
95
- &:not([data-icon-start])::after {
96
- outline-offset: 20rem;
97
- }
98
-
99
- &:invalid:not([data-mode]),
100
- &[data-mode~='invalid'] {
101
- color: #fff;
102
- }
103
- }
@@ -1,44 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiToast]:where(*&) {
4
- .transition(transform);
5
-
6
- display: flex;
7
- grid-row: 1 / span 2;
8
- box-sizing: border-box;
9
- gap: 0.75rem;
10
- color: var(--tui-text-primary);
11
- background: var(--tui-background-elevation-3);
12
- min-block-size: 3.5rem;
13
- border-radius: 1rem;
14
- padding: 0.75rem 1rem;
15
- box-shadow: var(--tui-shadow-medium);
16
- align-items: center;
17
- justify-content: center;
18
- inline-size: max-content;
19
- font: var(--tui-font-ui-s);
20
- max-inline-size: ~'min(calc(100vw - 2rem), 25rem)';
21
- border: inherit;
22
- text-decoration: none;
23
- overflow: hidden;
24
-
25
- .interactive({
26
- cursor: pointer;
27
- });
28
-
29
- > *,
30
- &::after,
31
- &::before {
32
- max-inline-size: 50%;
33
- margin: 0 -0.25rem;
34
- }
35
-
36
- &::after {
37
- font-size: 1rem;
38
- color: var(--tui-text-tertiary);
39
- }
40
-
41
- [tuiAvatar] {
42
- margin-inline-end: 0;
43
- }
44
- }