@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.
- package/components/calendar/calendar-sheet.component.d.ts +8 -15
- package/components/calendar/calendar-spin.component.d.ts +5 -8
- package/components/calendar/calendar-year.component.d.ts +11 -19
- package/components/calendar/calendar.component.d.ts +7 -9
- package/components/checkbox/checkbox.component.d.ts +10 -0
- package/components/checkbox/checkbox.options.d.ts +10 -0
- package/components/checkbox/index.d.ts +2 -0
- package/components/data-list/data-list.component.d.ts +1 -0
- package/components/index.d.ts +3 -0
- package/components/input/input.directive.d.ts +2 -0
- package/components/loader/loader.component.d.ts +0 -2
- package/components/radio/index.d.ts +4 -0
- package/components/radio/radio.component.d.ts +18 -0
- package/components/radio/radio.d.ts +3 -0
- package/components/radio/radio.directive.d.ts +8 -0
- package/components/radio/radio.options.d.ts +7 -0
- package/components/slider/helpers/key-steps.d.ts +27 -0
- package/components/slider/helpers/slider-key-steps.directive.d.ts +32 -0
- package/components/slider/helpers/slider-readonly.directive.d.ts +15 -0
- package/components/slider/helpers/slider-thumb-label.component.d.ts +13 -0
- package/components/slider/index.d.ts +6 -0
- package/components/slider/slider.component.d.ts +22 -0
- package/components/slider/slider.d.ts +5 -0
- package/components/textfield/index.d.ts +0 -1
- package/components/textfield/textfield.component.d.ts +1 -0
- package/directives/items-handlers/items-handlers.validator.d.ts +1 -0
- package/fesm2022/taiga-ui-core-components-button.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-calendar.mjs +84 -174
- package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-cell.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-checkbox.mjs +37 -0
- package/fesm2022/taiga-ui-core-components-checkbox.mjs.map +1 -0
- package/fesm2022/taiga-ui-core-components-data-list.mjs +10 -4
- package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-error.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-icon.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-input.mjs +4 -2
- package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-label.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-link.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-loader.mjs +5 -8
- package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-notification.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-radio.mjs +91 -0
- package/fesm2022/taiga-ui-core-components-radio.mjs.map +1 -0
- package/fesm2022/taiga-ui-core-components-root.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-slider.mjs +337 -0
- package/fesm2022/taiga-ui-core-components-slider.mjs.map +1 -0
- package/fesm2022/taiga-ui-core-components-spin-button.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-textfield.mjs +20 -21
- package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-title.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components.mjs +3 -0
- package/fesm2022/taiga-ui-core-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-appearance.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-group.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-icons.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +7 -1
- package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-alert.mjs +2 -2
- package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-dialog.mjs +2 -2
- package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-dropdown.mjs +167 -115
- package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-hint.mjs +3 -3
- package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-modal.mjs +2 -2
- package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-popup.mjs +2 -2
- package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-tokens.mjs +1 -1
- package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
- package/package.json +32 -20
- package/portals/dropdown/dropdown-a11y.directive.d.ts +10 -0
- package/portals/dropdown/dropdown-close.directive.d.ts +3 -3
- package/portals/dropdown/dropdown-open.directive.d.ts +4 -3
- package/portals/dropdown/dropdown-selection.directive.d.ts +1 -0
- package/portals/dropdown/dropdown.d.ts +2 -1
- package/portals/dropdown/dropdown.directive.d.ts +5 -5
- package/portals/dropdown/index.d.ts +1 -0
- package/utils/miscellaneous/font-scaling.d.ts +2 -2
- package/components/textfield/textfield-icon.d.ts +0 -6
- package/styles/components/appearance.less +0 -51
- package/styles/components/button.less +0 -134
- package/styles/components/group.less +0 -172
- package/styles/components/icon.less +0 -83
- package/styles/components/icons.less +0 -79
- package/styles/components/label.less +0 -51
- package/styles/components/link.less +0 -69
- package/styles/components/notification.less +0 -184
- package/styles/components/textfield.less +0 -358
- package/styles/components/title.less +0 -80
- package/styles/mixins/appearance.less +0 -56
- package/styles/mixins/appearance.scss +0 -57
- package/styles/mixins/browsers.less +0 -23
- package/styles/mixins/browsers.scss +0 -23
- package/styles/mixins/date-picker.less +0 -152
- package/styles/mixins/mixins.less +0 -168
- package/styles/mixins/mixins.scss +0 -161
- package/styles/mixins/picker.less +0 -200
- package/styles/mixins/picker.scss +0 -199
- package/styles/mixins/slider.less +0 -67
- package/styles/mixins/slider.scss +0 -67
- package/styles/taiga-ui-fonts.less +0 -4
- package/styles/taiga-ui-local.less +0 -7
- package/styles/taiga-ui-local.scss +0 -6
- package/styles/taiga-ui-theme.less +0 -4
- package/styles/theme/appearance/accent.less +0 -14
- package/styles/theme/appearance/action.less +0 -38
- package/styles/theme/appearance/flat.less +0 -23
- package/styles/theme/appearance/floating.less +0 -21
- package/styles/theme/appearance/glass.less +0 -30
- package/styles/theme/appearance/outline.less +0 -78
- package/styles/theme/appearance/primary.less +0 -48
- package/styles/theme/appearance/secondary.less +0 -77
- package/styles/theme/appearance/status.less +0 -125
- package/styles/theme/appearance/table.less +0 -68
- package/styles/theme/appearance/textfield.less +0 -80
- package/styles/theme/appearance.less +0 -12
- package/styles/theme/palette.less +0 -161
- package/styles/theme/variables.less +0 -42
- package/styles/variables/media.less +0 -23
- 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,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
|
-
}
|