@taiga-ui/core 5.0.0-rc.2 → 5.0.0-rc.4

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 (138) hide show
  1. package/components/calendar/calendar-sheet.component.d.ts +8 -15
  2. package/components/calendar/calendar-spin.component.d.ts +5 -8
  3. package/components/calendar/calendar-year.component.d.ts +11 -19
  4. package/components/calendar/calendar.component.d.ts +7 -9
  5. package/components/checkbox/checkbox.component.d.ts +10 -0
  6. package/components/checkbox/checkbox.options.d.ts +10 -0
  7. package/components/checkbox/index.d.ts +2 -0
  8. package/components/data-list/data-list.component.d.ts +1 -0
  9. package/components/index.d.ts +3 -0
  10. package/components/input/input.directive.d.ts +2 -0
  11. package/components/loader/loader.component.d.ts +0 -2
  12. package/components/radio/index.d.ts +4 -0
  13. package/components/radio/radio.component.d.ts +18 -0
  14. package/components/radio/radio.d.ts +3 -0
  15. package/components/radio/radio.directive.d.ts +8 -0
  16. package/components/radio/radio.options.d.ts +7 -0
  17. package/components/slider/helpers/key-steps.d.ts +27 -0
  18. package/components/slider/helpers/slider-key-steps.directive.d.ts +32 -0
  19. package/components/slider/helpers/slider-readonly.directive.d.ts +15 -0
  20. package/components/slider/helpers/slider-thumb-label.component.d.ts +13 -0
  21. package/components/slider/index.d.ts +6 -0
  22. package/components/slider/slider.component.d.ts +22 -0
  23. package/components/slider/slider.d.ts +5 -0
  24. package/components/textfield/index.d.ts +0 -1
  25. package/components/textfield/textfield.component.d.ts +1 -0
  26. package/directives/items-handlers/items-handlers.validator.d.ts +1 -0
  27. package/fesm2022/taiga-ui-core-components-button.mjs +2 -2
  28. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  29. package/fesm2022/taiga-ui-core-components-calendar.mjs +84 -174
  30. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  31. package/fesm2022/taiga-ui-core-components-cell.mjs +2 -2
  32. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -1
  33. package/fesm2022/taiga-ui-core-components-checkbox.mjs +37 -0
  34. package/fesm2022/taiga-ui-core-components-checkbox.mjs.map +1 -0
  35. package/fesm2022/taiga-ui-core-components-data-list.mjs +10 -4
  36. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  37. package/fesm2022/taiga-ui-core-components-error.mjs +3 -3
  38. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-core-components-icon.mjs +2 -2
  40. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-core-components-input.mjs +4 -2
  42. package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-core-components-label.mjs +3 -3
  44. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-core-components-link.mjs +2 -2
  46. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-core-components-loader.mjs +5 -8
  48. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-core-components-notification.mjs +2 -2
  50. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-core-components-radio.mjs +91 -0
  52. package/fesm2022/taiga-ui-core-components-radio.mjs.map +1 -0
  53. package/fesm2022/taiga-ui-core-components-root.mjs +2 -2
  54. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-core-components-slider.mjs +337 -0
  56. package/fesm2022/taiga-ui-core-components-slider.mjs.map +1 -0
  57. package/fesm2022/taiga-ui-core-components-spin-button.mjs +2 -2
  58. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-core-components-textfield.mjs +20 -21
  60. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-core-components-title.mjs +3 -3
  62. package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-core-components.mjs +3 -0
  64. package/fesm2022/taiga-ui-core-components.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-core-directives-appearance.mjs +3 -3
  66. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-core-directives-group.mjs +3 -3
  68. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-core-directives-icons.mjs +3 -3
  70. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +7 -1
  72. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-core-portals-alert.mjs +2 -2
  74. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-core-portals-dialog.mjs +2 -2
  76. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-core-portals-dropdown.mjs +167 -115
  78. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-core-portals-hint.mjs +3 -3
  80. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-core-portals-modal.mjs +2 -2
  82. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-core-portals-popup.mjs +2 -2
  84. package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-core-tokens.mjs +1 -1
  86. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  88. package/package.json +32 -20
  89. package/portals/dropdown/dropdown-a11y.directive.d.ts +10 -0
  90. package/portals/dropdown/dropdown-close.directive.d.ts +3 -3
  91. package/portals/dropdown/dropdown-open.directive.d.ts +4 -3
  92. package/portals/dropdown/dropdown-selection.directive.d.ts +1 -0
  93. package/portals/dropdown/dropdown.d.ts +2 -1
  94. package/portals/dropdown/dropdown.directive.d.ts +5 -5
  95. package/portals/dropdown/index.d.ts +1 -0
  96. package/utils/miscellaneous/font-scaling.d.ts +2 -2
  97. package/components/textfield/textfield-icon.d.ts +0 -6
  98. package/styles/components/appearance.less +0 -51
  99. package/styles/components/button.less +0 -134
  100. package/styles/components/group.less +0 -172
  101. package/styles/components/icon.less +0 -83
  102. package/styles/components/icons.less +0 -79
  103. package/styles/components/label.less +0 -51
  104. package/styles/components/link.less +0 -69
  105. package/styles/components/notification.less +0 -184
  106. package/styles/components/textfield.less +0 -358
  107. package/styles/components/title.less +0 -80
  108. package/styles/mixins/appearance.less +0 -56
  109. package/styles/mixins/appearance.scss +0 -57
  110. package/styles/mixins/browsers.less +0 -23
  111. package/styles/mixins/browsers.scss +0 -23
  112. package/styles/mixins/date-picker.less +0 -152
  113. package/styles/mixins/mixins.less +0 -168
  114. package/styles/mixins/mixins.scss +0 -161
  115. package/styles/mixins/picker.less +0 -200
  116. package/styles/mixins/picker.scss +0 -199
  117. package/styles/mixins/slider.less +0 -67
  118. package/styles/mixins/slider.scss +0 -67
  119. package/styles/taiga-ui-fonts.less +0 -4
  120. package/styles/taiga-ui-local.less +0 -7
  121. package/styles/taiga-ui-local.scss +0 -6
  122. package/styles/taiga-ui-theme.less +0 -4
  123. package/styles/theme/appearance/accent.less +0 -14
  124. package/styles/theme/appearance/action.less +0 -38
  125. package/styles/theme/appearance/flat.less +0 -23
  126. package/styles/theme/appearance/floating.less +0 -21
  127. package/styles/theme/appearance/glass.less +0 -30
  128. package/styles/theme/appearance/outline.less +0 -78
  129. package/styles/theme/appearance/primary.less +0 -48
  130. package/styles/theme/appearance/secondary.less +0 -77
  131. package/styles/theme/appearance/status.less +0 -125
  132. package/styles/theme/appearance/table.less +0 -68
  133. package/styles/theme/appearance/textfield.less +0 -80
  134. package/styles/theme/appearance.less +0 -12
  135. package/styles/theme/palette.less +0 -161
  136. package/styles/theme/variables.less +0 -42
  137. package/styles/variables/media.less +0 -23
  138. package/styles/variables/media.scss +0 -23
@@ -1,199 +0,0 @@
1
- @import 'mixins.scss';
2
-
3
- // @deprecated
4
- @mixin picker($itemSize) {
5
- :host {
6
- display: block;
7
- font: var(--tui-font-body-m);
8
- }
9
-
10
- .t-row {
11
- position: relative;
12
- display: flex;
13
- justify-content: space-between;
14
- height: 2.25rem;
15
- isolation: isolate;
16
- }
17
-
18
- .t-item {
19
- position: relative;
20
- flex: 1;
21
- line-height: 2rem;
22
- border-radius: var(--tui-radius-m);
23
-
24
- &:before,
25
- &:after {
26
- @include fullsize(absolute, inset);
27
-
28
- content: '';
29
- z-index: -1;
30
- border-radius: var(--tui-radius-m);
31
- }
32
-
33
- &:after {
34
- border-radius: 0.5rem;
35
- }
36
- }
37
-
38
- .t-cell {
39
- position: relative;
40
- display: flex;
41
- align-items: center;
42
- justify-content: center;
43
- width: $itemSize;
44
- text-align: center;
45
- outline: none;
46
- cursor: pointer;
47
- background-clip: content-box;
48
- box-sizing: border-box;
49
- border: 0.125rem solid transparent;
50
-
51
- &:before {
52
- content: '';
53
- position: absolute;
54
- top: 0;
55
- left: 0;
56
- right: 0;
57
- bottom: 0;
58
- z-index: -1;
59
- border-radius: var(--tui-radius-m);
60
- }
61
-
62
- &_today:after {
63
- @include center-left();
64
- content: '';
65
- bottom: 0.3125rem;
66
- height: 0.125rem;
67
- width: 0.75rem;
68
- border-radius: 0.375rem;
69
- background: var(--tui-text-primary);
70
- }
71
-
72
- &_interval {
73
- &:before {
74
- background: var(--tui-background-base-alt);
75
-
76
- :host._single & {
77
- background: var(--tui-background-neutral-1-hover);
78
- }
79
- }
80
-
81
- &:not(:last-child):before {
82
- right: -0.1875rem;
83
- border-top-right-radius: 0;
84
- border-bottom-right-radius: 0;
85
- }
86
-
87
- &:not([data-range='start']):not(:first-child):before {
88
- border-top-left-radius: 0;
89
- border-bottom-left-radius: 0;
90
- }
91
-
92
- &:last-child:first-child:before {
93
- right: 0;
94
- }
95
-
96
- &:first-child > .t-item {
97
- border-top-left-radius: var(--tui-radius-m);
98
- border-bottom-left-radius: var(--tui-radius-m);
99
- }
100
-
101
- &:last-child > .t-item {
102
- border-top-right-radius: var(--tui-radius-m);
103
- border-bottom-right-radius: var(--tui-radius-m);
104
- }
105
-
106
- & > .t-item {
107
- border-radius: 0;
108
- }
109
- }
110
-
111
- &[data-range] {
112
- &:after {
113
- background: var(--tui-text-primary-on-accent-1);
114
- }
115
-
116
- & > .t-item {
117
- color: var(--tui-text-primary-on-accent-1);
118
-
119
- &:before,
120
- &:after {
121
- background: var(--tui-background-accent-1);
122
- }
123
- }
124
-
125
- &:hover > .t-item:before,
126
- &:hover > .t-item:after {
127
- background: var(--tui-background-accent-1-hover);
128
- }
129
-
130
- &:active > .t-item:before,
131
- &:active > .t-item:after {
132
- background: var(--tui-background-accent-1-pressed);
133
- }
134
- }
135
-
136
- &[data-range='end'] {
137
- &:before {
138
- background: var(--tui-background-base-alt);
139
-
140
- :host._single & {
141
- background: var(--tui-background-neutral-1-hover);
142
- }
143
- }
144
-
145
- &:not(:first-child):before {
146
- border-top-left-radius: 0;
147
- border-bottom-left-radius: 0;
148
- }
149
- }
150
-
151
- &[data-range='end'] > .t-item {
152
- &:before {
153
- left: 0.625rem;
154
- border-top-left-radius: 0;
155
- border-bottom-left-radius: 0;
156
- }
157
-
158
- &:after {
159
- left: -2rem;
160
- right: 100%;
161
- transform: translateX(1.6rem) scaleY(0.83) scaleX(0.5) rotate(45deg);
162
- }
163
- }
164
-
165
- &[data-range='start'] > .t-item {
166
- &:before {
167
- right: 0.625rem;
168
- border-top-right-radius: 0;
169
- border-bottom-right-radius: 0;
170
- }
171
-
172
- &:after {
173
- left: 100%;
174
- right: -2rem;
175
- transform: translateX(-1.6rem) scaleY(0.83) scaleX(0.5) rotate(45deg);
176
- }
177
- }
178
-
179
- &[data-range='single'] > .t-item:after {
180
- display: none;
181
- }
182
-
183
- &_disabled {
184
- pointer-events: none;
185
-
186
- & > .t-item {
187
- opacity: 0.36;
188
- }
189
- }
190
-
191
- &:hover:not([data-range]) > .t-item {
192
- background: var(--tui-background-neutral-1-hover);
193
- }
194
-
195
- &:active:not([data-range]) > .t-item {
196
- background: var(--tui-background-neutral-1-pressed);
197
- }
198
- }
199
- }
@@ -1,67 +0,0 @@
1
- @track-inset: {
2
- @s: 0.625rem;
3
- @m: 0.75rem;
4
- @l: 1rem;
5
- };
6
-
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);
10
-
11
- .tui-slider-ticks-labels() {
12
- --t-offset: @thumb-radius;
13
-
14
- display: flex;
15
- font: var(--tui-font-body-s);
16
- color: var(--tui-text-secondary);
17
- margin: 0.25rem var(--t-offset) 0;
18
-
19
- & > * {
20
- position: relative;
21
- flex: 2;
22
- text-align: center;
23
-
24
- &:first-child {
25
- inset-inline-start: calc(-1 * var(--t-offset));
26
- flex: 1;
27
- text-align: start;
28
- }
29
-
30
- &:last-child {
31
- inset-inline-end: calc(-1 * var(--t-offset));
32
- flex: 1;
33
- text-align: end;
34
- }
35
- }
36
-
37
- tui-range + & {
38
- --t-offset: @thumb-diameter;
39
- }
40
-
41
- /* TODO: add :has([tuiInputSlider]) */
42
- tui-textfield[data-size='l'] + & {
43
- --t-offset: calc(@track-inset[@l] + @thumb-radius);
44
- }
45
-
46
- /* TODO: add :has([tuiInputSlider]) */
47
- tui-textfield[data-size='m'] + & {
48
- --t-offset: calc(@track-inset[@m] + @thumb-radius);
49
- }
50
-
51
- /* TODO: add :has([tuiInputSlider]) */
52
- tui-textfield[data-size='s'] + & {
53
- --t-offset: calc(@track-inset[@s] + @thumb-radius);
54
- }
55
-
56
- tui-input-range[data-size='l'] + & {
57
- --t-offset: calc(@track-inset[@l] + @thumb-diameter);
58
- }
59
-
60
- tui-input-range[data-size='m'] + & {
61
- --t-offset: calc(@track-inset[@m] + @thumb-diameter);
62
- }
63
-
64
- tui-input-range[data-size='s'] + & {
65
- --t-offset: calc(@track-inset[@s] + @thumb-diameter);
66
- }
67
- }
@@ -1,67 +0,0 @@
1
- $track-inset: (
2
- 's': 0.625rem,
3
- 'm': 0.75rem,
4
- 'l': 1rem,
5
- );
6
-
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);
10
-
11
- @mixin tui-slider-ticks-labels() {
12
- --t-offset: $thumb-radius;
13
-
14
- display: flex;
15
- font: var(--tui-font-body-s);
16
- color: var(--tui-text-secondary);
17
- margin: 0.25rem var(--t-offset) 0;
18
-
19
- & > * {
20
- position: relative;
21
- flex: 2;
22
- text-align: center;
23
-
24
- &:first-child {
25
- inset-inline-start: calc(-1 * var(--t-offset));
26
- flex: 1;
27
- text-align: start;
28
- }
29
-
30
- &:last-child {
31
- inset-inline-end: calc(-1 * var(--t-offset));
32
- flex: 1;
33
- text-align: end;
34
- }
35
- }
36
-
37
- tui-range + & {
38
- --t-offset: $thumb-diameter;
39
- }
40
-
41
- /* TODO: add :has([tuiInputSlider]) */
42
- tui-textfield[data-size='l'] + & {
43
- --t-offset: calc(map-get($track-inset, 'l') + $thumb-radius);
44
- }
45
-
46
- /* TODO: add :has([tuiInputSlider]) */
47
- tui-textfield[data-size='m'] + & {
48
- --t-offset: calc(map-get($track-inset, 'm') + $thumb-radius);
49
- }
50
-
51
- /* TODO: add :has([tuiInputSlider]) */
52
- tui-textfield[data-size='s'] + & {
53
- --t-offset: calc(map-get($track-inset, 's') + $thumb-radius);
54
- }
55
-
56
- tui-input-range[data-size='l'] + & {
57
- --t-offset: calc(map-get($track-inset, 'l') + $thumb-diameter);
58
- }
59
-
60
- tui-input-range[data-size='m'] + & {
61
- --t-offset: calc(map-get($track-inset, 'm') + $thumb-diameter);
62
- }
63
-
64
- tui-input-range[data-size='s'] + & {
65
- --t-offset: calc(map-get($track-inset, 's') + $thumb-diameter);
66
- }
67
- }
@@ -1,4 +0,0 @@
1
- // stylelint-disable
2
- // https://github.com/stackblitz/core/issues/2104#issuecomment-1397086512
3
- //noinspection CssUnknownTarget
4
- @import (optional) url(https://fonts.googleapis.com/css2?family=Manrope:wght@500;800&display=swap);
@@ -1,7 +0,0 @@
1
- @import 'mixins/browsers.less';
2
- @import 'mixins/date-picker.less';
3
- @import 'mixins/mixins.less';
4
- @import 'mixins/picker.less';
5
- @import 'mixins/slider.less';
6
- @import 'mixins/appearance.less';
7
- @import 'variables/media.less';
@@ -1,6 +0,0 @@
1
- @import 'mixins/browsers.scss';
2
- @import 'mixins/mixins.scss';
3
- @import 'mixins/picker.scss';
4
- @import 'mixins/slider.scss';
5
- @import 'mixins/appearance.scss';
6
- @import 'variables/media.scss';
@@ -1,4 +0,0 @@
1
- @import 'theme/variables.less';
2
- @import 'theme/palette.less';
3
- @import 'theme/appearance.less';
4
- @import 'theme/appearance/textfield.less';
@@ -1,14 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiAppearance][data-appearance='accent'] {
4
- background: var(--tui-background-accent-2);
5
- color: var(--tui-text-primary-on-accent-2);
6
-
7
- .appearance-hover({
8
- background: var(--tui-background-accent-2-hover);
9
- });
10
-
11
- .appearance-active({
12
- background: var(--tui-background-accent-2-pressed);
13
- });
14
- }
@@ -1,38 +0,0 @@
1
- [tuiAppearance][data-appearance='action'] {
2
- color: var(--tui-text-action);
3
- background: transparent;
4
-
5
- .appearance-hover({
6
- color: var(--tui-text-action-hover);
7
- });
8
-
9
- .appearance-active({
10
- color: var(--tui-text-action-hover);
11
- });
12
- }
13
-
14
- [tuiAppearance][data-appearance='action-destructive'] {
15
- color: var(--tui-text-negative);
16
- background: transparent;
17
-
18
- .appearance-hover({
19
- color: var(--tui-text-negative-hover);
20
- });
21
-
22
- .appearance-active({
23
- color: var(--tui-text-negative-hover);
24
- });
25
- }
26
-
27
- [tuiAppearance][data-appearance='action-grayscale'] {
28
- color: var(--tui-text-secondary);
29
- background: transparent;
30
-
31
- .appearance-hover({
32
- color: var(--tui-text-primary);
33
- });
34
-
35
- .appearance-active({
36
- color: var(--tui-text-primary);
37
- });
38
- }
@@ -1,23 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiAppearance][data-appearance='flat'],
4
- [tuiAppearance][data-appearance='flat-destructive'],
5
- [tuiAppearance][data-appearance='flat-grayscale'] {
6
- color: var(--tui-text-action);
7
-
8
- .appearance-hover({
9
- background: var(--tui-background-neutral-1-hover);
10
- });
11
-
12
- .appearance-active({
13
- background: var(--tui-background-neutral-1-pressed);
14
- });
15
- }
16
-
17
- [tuiAppearance][data-appearance='flat-destructive'] {
18
- color: var(--tui-text-negative);
19
- }
20
-
21
- [tuiAppearance][data-appearance='flat-grayscale'] {
22
- color: var(--tui-text-primary);
23
- }
@@ -1,21 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiAppearance][data-appearance='floating'] {
4
- background: var(--tui-background-elevation-2);
5
- color: var(--tui-text-primary);
6
- box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
7
-
8
- &::before,
9
- &::after {
10
- transition-property: color;
11
- }
12
-
13
- .appearance-hover({
14
- box-shadow: 0 0.875rem 2.625rem rgba(0, 0, 0, 0.14);
15
- });
16
-
17
- .appearance-active({
18
- background: var(--tui-background-base-alt);
19
- box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
20
- });
21
- }
@@ -1,30 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiAppearance][data-appearance='glass'] {
4
- background: rgba(0, 0, 0, 0.4);
5
- color: #fff;
6
- backdrop-filter: blur(1rem);
7
-
8
- --tui-border-focus: rgba(255, 255, 255, 0.64);
9
-
10
- .appearance-hover({
11
- background: rgba(0, 0, 0, 0.48);
12
- });
13
-
14
- .appearance-active({
15
- background: rgba(0, 0, 0, 0.6);
16
- });
17
- }
18
-
19
- [tuiTheme='dark'] [tuiAppearance][data-appearance='glass'],
20
- [tuiTheme='dark'][tuiAppearance][data-appearance='glass'] {
21
- background: rgba(255, 255, 255, 0.3);
22
-
23
- .appearance-hover({
24
- background: rgba(255, 255, 255, 0.4);
25
- });
26
-
27
- .appearance-active({
28
- background: rgba(255, 255, 255, 0.5);
29
- });
30
- }
@@ -1,78 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiAppearance][data-appearance='outline'],
4
- [tuiAppearance][data-appearance='outline-destructive'],
5
- [tuiAppearance][data-appearance='outline-grayscale'] {
6
- --t-bs: var(--tui-border-normal);
7
-
8
- color: var(--tui-text-action);
9
- box-shadow: inset 0 0 0 1px var(--t-bs);
10
-
11
- &:checked:not([data-mode]),
12
- &[data-mode~='checked'] {
13
- --t-bs: var(--tui-background-accent-1);
14
-
15
- box-shadow: inset 0 0 0 2px var(--t-bs);
16
-
17
- .appearance-hover({
18
- --t-bs: var(--tui-background-accent-1-hover);
19
- });
20
-
21
- .appearance-active({
22
- --t-bs: var(--tui-background-accent-1-pressed);
23
- });
24
- }
25
-
26
- .appearance-invalid({
27
- box-shadow: inset 0 0 0 1px var(--tui-status-negative-pale-hover);
28
-
29
- &:checked,
30
- &[data-mode~='checked'] {
31
- box-shadow: inset 0 0 0 2px var(--tui-status-negative);
32
- }
33
- });
34
-
35
- .appearance-hover({
36
- cursor: pointer;
37
- --t-bs: var(--tui-border-hover);
38
- });
39
-
40
- .appearance-active({
41
- background: var(--tui-background-neutral-1);
42
- --t-bs: var(--tui-border-hover);
43
- });
44
- }
45
-
46
- [tuiAppearance][data-appearance='outline-grayscale'] {
47
- color: var(--tui-text-primary);
48
- }
49
-
50
- [tuiAppearance][data-appearance='outline-destructive'] {
51
- color: var(--tui-text-negative);
52
- }
53
-
54
- [tuiAppearance][data-appearance='icon'],
55
- [tuiAppearance][data-appearance='outline-grayscale'],
56
- [tuiAppearance][data-appearance='floating'] {
57
- color: var(--tui-text-primary);
58
-
59
- &::before,
60
- &::after {
61
- transition-property: color, transform;
62
- color: var(--tui-text-tertiary);
63
- }
64
-
65
- .appearance-hover({
66
- &:before,
67
- &:after {
68
- color: var(--tui-text-secondary);
69
- }
70
- });
71
-
72
- .appearance-active({
73
- &:before,
74
- &:after {
75
- color: var(--tui-text-primary);
76
- }
77
- });
78
- }
@@ -1,48 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiAppearance][data-appearance='primary'] {
4
- --t-bg: var(--tui-background-accent-1);
5
-
6
- background: var(--t-bg);
7
- color: var(--tui-text-primary-on-accent-1);
8
-
9
- .appearance-invalid({
10
- background: var(--tui-status-negative);
11
- });
12
-
13
- .appearance-hover({
14
- --t-bg: var(--tui-background-accent-1-hover);
15
- });
16
-
17
- .appearance-active({
18
- --t-bg: var(--tui-background-accent-1-pressed);
19
- });
20
- }
21
-
22
- [tuiAppearance][data-appearance='primary-destructive'] {
23
- color: #fff;
24
- background: var(--tui-status-negative);
25
-
26
- .appearance-hover({
27
- filter: saturate(1) brightness(1.3);
28
- });
29
-
30
- .appearance-active({
31
- filter: saturate(0.8) brightness(1);
32
- });
33
- }
34
-
35
- [tuiAppearance][data-appearance='primary-grayscale'] {
36
- --tui-border-focus: #979797;
37
-
38
- background: var(--tui-background-accent-opposite);
39
- color: var(--tui-background-base);
40
-
41
- .appearance-hover({
42
- background: var(--tui-background-accent-opposite-hover);
43
- });
44
-
45
- .appearance-active({
46
- background: var(--tui-background-accent-opposite-pressed);
47
- });
48
- }
@@ -1,77 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiAppearance][data-appearance='secondary'],
4
- [tuiAppearance][data-appearance='secondary-destructive'],
5
- [tuiAppearance][data-appearance='secondary-grayscale'] {
6
- background: var(--tui-background-neutral-1);
7
- color: var(--tui-text-action);
8
-
9
- .appearance-hover({
10
- background: var(--tui-background-neutral-1-hover);
11
- });
12
-
13
- .appearance-active({
14
- background: var(--tui-background-neutral-1-pressed);
15
- });
16
-
17
- &:checked:not([data-mode]),
18
- &[data-mode~='checked'],
19
- &[type='checkbox']:indeterminate:not([data-mode]) {
20
- background: var(--tui-background-accent-1);
21
- color: var(--tui-text-primary-on-accent-1);
22
-
23
- .appearance-hover({
24
- background: var(--tui-background-accent-1-hover);
25
- });
26
-
27
- .appearance-active({
28
- background: var(--tui-background-accent-1-pressed);
29
- });
30
-
31
- .appearance-invalid({
32
- background: var(--tui-status-negative);
33
- color: #fff;
34
-
35
- .appearance-hover({
36
- background: var(--tui-status-negative);
37
- color: #fff;
38
- });
39
-
40
- .appearance-active({
41
- background: var(--tui-status-negative);
42
- color: #fff;
43
- });
44
- });
45
- }
46
-
47
- .appearance-invalid({
48
- color: var(--tui-text-negative);
49
- background: var(--tui-status-negative-pale);
50
-
51
- .appearance-hover({
52
- color: var(--tui-text-negative-hover);
53
- background: var(--tui-status-negative-pale-hover);
54
- });
55
-
56
- .appearance-active({
57
- color: var(--tui-text-negative-hover);
58
- background: var(--tui-status-negative-pale-hover);
59
- });
60
- });
61
- }
62
-
63
- [tuiAppearance][data-appearance='secondary-destructive'] {
64
- color: var(--tui-text-negative);
65
- }
66
-
67
- [tuiAppearance][data-appearance='secondary-grayscale'] {
68
- color: var(--tui-text-primary);
69
- }
70
-
71
- // Overriding to darker colors for small items
72
- input[type='checkbox'][data-appearance='secondary'],
73
- input[type='radio'][data-appearance='secondary'] {
74
- --tui-background-neutral-1: var(--tui-background-neutral-2);
75
- --tui-background-neutral-1-hover: var(--tui-background-neutral-2-hover);
76
- --tui-background-neutral-1-pressed: var(--tui-background-neutral-2-pressed);
77
- }