@taiga-ui/core 3.55.0 → 3.56.0-canary.ac3cedc
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/bundles/taiga-ui-core-components-alert.umd.js +1 -1
- package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-calendar.umd.js +22 -6
- package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js +1 -1
- package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +7 -7
- package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
- package/bundles/taiga-ui-core-components-root.umd.js +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.js +1 -1
- package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js +1 -1
- package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
- package/components/calendar/calendar.component.d.ts +6 -4
- package/components/hosted-dropdown/hosted-dropdown.component.d.ts +5 -4
- package/constants/cache-basting-payload.d.ts +1 -1
- package/esm2015/components/alert/alert.component.js +2 -2
- package/esm2015/components/calendar/calendar.component.js +15 -7
- package/esm2015/components/dialog/dialog.component.js +2 -2
- package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +8 -8
- package/esm2015/components/root/root.component.js +1 -1
- package/esm2015/components/theme-night/theme-night.component.js +1 -1
- package/esm2015/directives/dropdown/dropdown.component.js +2 -2
- package/esm2015/types/calendar-view.js +2 -0
- package/esm2015/types/index.js +2 -1
- package/fesm2015/taiga-ui-core-components-alert.js +1 -1
- package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-calendar.js +14 -6
- package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-dialog.js +1 -1
- package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +7 -7
- package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
- package/fesm2015/taiga-ui-core-components-root.js +1 -1
- package/fesm2015/taiga-ui-core-components-theme-night.js +1 -1
- package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js +1 -1
- package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
- package/package.json +42 -42
- package/styles/mixins/appearance.less +3 -12
- package/styles/mixins/appearance.scss +3 -12
- package/styles/mixins/mixins.less +48 -11
- package/styles/mixins/mixins.scss +40 -0
- package/styles/mixins/slider.less +1 -1
- package/styles/theme/appearance/icon.less +25 -0
- package/styles/theme/appearance/outline.less +6 -1
- package/styles/theme/variables.less +17 -0
- package/types/calendar-view.d.ts +1 -0
- package/types/index.d.ts +1 -0
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
.interactive(@ruleset) {
|
|
2
|
+
// TODO switch to :is after Safari 14 and FF 78 support
|
|
3
|
+
&:-webkit-any(a, button, select, textarea, input, label) {
|
|
4
|
+
@ruleset();
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&:-moz-any(a, button, select, textarea, input, label) {
|
|
8
|
+
@ruleset();
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
1
12
|
// centering with translate
|
|
2
13
|
.center-left() {
|
|
3
14
|
position: absolute;
|
|
@@ -54,6 +65,34 @@
|
|
|
54
65
|
text-decoration: none;
|
|
55
66
|
}
|
|
56
67
|
|
|
68
|
+
.button-base() {
|
|
69
|
+
.clearbtn();
|
|
70
|
+
position: relative;
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
vertical-align: middle;
|
|
78
|
+
max-width: 100%;
|
|
79
|
+
gap: calc(var(--t-gap) - 2 * var(--t-margin));
|
|
80
|
+
|
|
81
|
+
> img,
|
|
82
|
+
> tui-svg,
|
|
83
|
+
> tui-icon,
|
|
84
|
+
> tui-avatar,
|
|
85
|
+
> tui-badge,
|
|
86
|
+
> [tuiBadge],
|
|
87
|
+
> [tuiRadio],
|
|
88
|
+
> [tuiToggle],
|
|
89
|
+
> [tuiCheckbox],
|
|
90
|
+
&._icon-left:before,
|
|
91
|
+
&._icon-right:after {
|
|
92
|
+
margin: var(--t-margin);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
57
96
|
.autofill(@mode:default) {
|
|
58
97
|
&:-webkit-autofill,
|
|
59
98
|
&:-webkit-autofill:hover,
|
|
@@ -155,44 +194,42 @@
|
|
|
155
194
|
}
|
|
156
195
|
}
|
|
157
196
|
|
|
158
|
-
//
|
|
197
|
+
// @TODO: remove in v4.0
|
|
198
|
+
// shadow @deprecated
|
|
159
199
|
.shadow(@mode: 1) {
|
|
160
200
|
// Default
|
|
161
201
|
& when (@mode = 1) {
|
|
162
|
-
box-shadow:
|
|
202
|
+
box-shadow: var(--tui-shadow);
|
|
163
203
|
}
|
|
164
204
|
|
|
165
205
|
// Dropdown
|
|
166
206
|
& when (@mode = 2) {
|
|
167
|
-
box-shadow:
|
|
168
|
-
0 1.5rem 1rem rgba(0, 0, 0, 0.03),
|
|
169
|
-
0 0.75rem 0.75rem rgba(0, 0, 0, 0.04),
|
|
170
|
-
0 0.25rem 0.375rem rgba(0, 0, 0, 0.05);
|
|
207
|
+
box-shadow: var(--tui-shadow-dropdown);
|
|
171
208
|
}
|
|
172
209
|
|
|
173
210
|
// Modal
|
|
174
211
|
& when (@mode = 3) {
|
|
175
|
-
box-shadow:
|
|
212
|
+
box-shadow: var(--tui-shadow-modal);
|
|
176
213
|
}
|
|
177
214
|
|
|
178
215
|
// Sidebar
|
|
179
216
|
& when (@mode = 4) {
|
|
180
|
-
box-shadow:
|
|
217
|
+
box-shadow: var(--tui-shadow-sidebar);
|
|
181
218
|
}
|
|
182
219
|
|
|
183
220
|
// Hover
|
|
184
221
|
& when (@mode = 5) {
|
|
185
|
-
box-shadow:
|
|
222
|
+
box-shadow: var(--tui-shadow-hover);
|
|
186
223
|
}
|
|
187
224
|
|
|
188
225
|
// Navigation
|
|
189
226
|
& when (@mode = 6) {
|
|
190
|
-
box-shadow:
|
|
227
|
+
box-shadow: var(--tui-shadow-basic-navigation);
|
|
191
228
|
}
|
|
192
229
|
|
|
193
230
|
// Modal mobile
|
|
194
231
|
& when (@mode = 7) {
|
|
195
|
-
box-shadow:
|
|
232
|
+
box-shadow: var(--tui-shadow-sheet);
|
|
196
233
|
}
|
|
197
234
|
}
|
|
198
235
|
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
@mixin interactive {
|
|
2
|
+
// TODO switch to :is after Safari 14 and FF 78 support
|
|
3
|
+
&:-webkit-any(a, button, select, textarea, input) {
|
|
4
|
+
@content;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&:-moz-any(a, button, select, textarea, input) {
|
|
8
|
+
@content;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
1
12
|
// centering with translate
|
|
2
13
|
@mixin center-left() {
|
|
3
14
|
position: absolute;
|
|
@@ -53,6 +64,35 @@
|
|
|
53
64
|
line-height: inherit;
|
|
54
65
|
}
|
|
55
66
|
|
|
67
|
+
@mixin button-base() {
|
|
68
|
+
@include clearbtn();
|
|
69
|
+
|
|
70
|
+
position: relative;
|
|
71
|
+
display: inline-flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
flex-shrink: 0;
|
|
74
|
+
box-sizing: border-box;
|
|
75
|
+
white-space: nowrap;
|
|
76
|
+
overflow: hidden;
|
|
77
|
+
vertical-align: middle;
|
|
78
|
+
max-width: 100%;
|
|
79
|
+
gap: calc(var(--t-gap) - 2 * var(--t-margin));
|
|
80
|
+
|
|
81
|
+
> img,
|
|
82
|
+
> tui-svg,
|
|
83
|
+
> tui-icon,
|
|
84
|
+
> tui-avatar,
|
|
85
|
+
> tui-badge,
|
|
86
|
+
> [tuiBadge],
|
|
87
|
+
> [tuiRadio],
|
|
88
|
+
> [tuiToggle],
|
|
89
|
+
> [tuiCheckbox],
|
|
90
|
+
&._icon-left:before,
|
|
91
|
+
&._icon-right:after {
|
|
92
|
+
margin: var(--t-margin);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
56
96
|
@mixin autofill($mode: default) {
|
|
57
97
|
&:-webkit-autofill,
|
|
58
98
|
&:-webkit-autofill:hover,
|
|
@@ -11,3 +11,28 @@
|
|
|
11
11
|
color: var(--tui-text-01);
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
// Icons with the directive
|
|
16
|
+
[tuiAppearance][data-appearance='whiteblock'],
|
|
17
|
+
[tuiAppearance][data-appearance='neutral'],
|
|
18
|
+
[tuiAppearance][data-appearance='floating'] {
|
|
19
|
+
&:before,
|
|
20
|
+
&:after {
|
|
21
|
+
.transition(color);
|
|
22
|
+
color: var(--tui-text-03);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.appearance-hover({
|
|
26
|
+
&:before,
|
|
27
|
+
&:after {
|
|
28
|
+
color: var(--tui-text-02);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
.appearance-active({
|
|
33
|
+
&:before,
|
|
34
|
+
&:after {
|
|
35
|
+
color: var(--tui-text-01);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import '../../taiga-ui-local.less';
|
|
2
2
|
|
|
3
|
-
[tuiAppearance][data-appearance='outline']
|
|
3
|
+
[tuiAppearance][data-appearance='outline'],
|
|
4
|
+
[tuiAppearance][data-appearance='whiteblock'] {
|
|
4
5
|
background: transparent;
|
|
5
6
|
color: var(--tui-link);
|
|
6
7
|
box-shadow: inset 0 0 0 1px var(--tui-base-04);
|
|
@@ -27,3 +28,7 @@
|
|
|
27
28
|
});
|
|
28
29
|
}
|
|
29
30
|
}
|
|
31
|
+
|
|
32
|
+
[tuiAppearance][data-appearance='whiteblock'] {
|
|
33
|
+
color: var(--tui-text-01);
|
|
34
|
+
}
|
|
@@ -154,6 +154,15 @@
|
|
|
154
154
|
--tui-chart-2: var(--tui-support-21);
|
|
155
155
|
--tui-chart-3: var(--tui-support-11);
|
|
156
156
|
--tui-chart-4: var(--tui-base-05);
|
|
157
|
+
//
|
|
158
|
+
--tui-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.12);
|
|
159
|
+
--tui-shadow-hover: 0 0.75rem 2.25rem rgba(0, 0, 0, 0.2);
|
|
160
|
+
--tui-shadow-dropdown: 0 1.5rem 1rem rgba(0, 0, 0, 0.03), 0 0.75rem 0.75rem rgba(0, 0, 0, 0.04),
|
|
161
|
+
0 0.25rem 0.375rem rgba(0, 0, 0, 0.05);
|
|
162
|
+
--tui-shadow-modal: 0 1.125rem 1.875rem rgba(0, 0, 0, 0.48);
|
|
163
|
+
--tui-shadow-sidebar: 0.25rem 0 1.5rem rgba(0, 0, 0, 0.12);
|
|
164
|
+
--tui-shadow-navigation: 0 0.125rem 1rem rgba(0, 0, 0, 0.08);
|
|
165
|
+
--tui-shadow-sheet: 0 -1rem 1.75rem rgba(0, 0, 0, 0.24);
|
|
157
166
|
}
|
|
158
167
|
|
|
159
168
|
[tuiTheme='night'] {
|
|
@@ -201,6 +210,14 @@
|
|
|
201
210
|
--tui-autofill: var(--tui-autofill-night);
|
|
202
211
|
--tui-elevation-01: #222;
|
|
203
212
|
--tui-elevation-02: #222;
|
|
213
|
+
--tui-shadow: 0 0.25rem 1.5rem rgba(0, 0, 0, 0.12);
|
|
214
|
+
--tui-shadow-hover: 0 0.75rem 2.25rem rgba(0, 0, 0, 0.2);
|
|
215
|
+
--tui-shadow-dropdown: 0 1.5rem 1rem rgba(0, 0, 0, 0.03), 0 0.75rem 0.75rem rgba(0, 0, 0, 0.04),
|
|
216
|
+
0 0.25rem 0.375rem rgba(0, 0, 0, 0.05);
|
|
217
|
+
--tui-shadow-modal: 0 1.125rem 1.875rem rgba(0, 0, 0, 0.48);
|
|
218
|
+
--tui-shadow-sidebar: 0.25rem 0 1.5rem rgba(0, 0, 0, 0.12);
|
|
219
|
+
--tui-shadow-navigation: 0 0.125rem 1rem rgba(0, 0, 0, 0.08);
|
|
220
|
+
--tui-shadow-sheet: 0 -1rem 1.75rem rgba(0, 0, 0, 0.24);
|
|
204
221
|
|
|
205
222
|
tui-notification {
|
|
206
223
|
--tui-base-01: #000;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type TuiCalendarView = 'month' | 'year';
|