@taiga-ui/core 3.54.0 → 3.55.0-canary.17e839c

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 (111) hide show
  1. package/bundles/taiga-ui-core-components-alert.umd.js +1 -1
  2. package/bundles/taiga-ui-core-components-alert.umd.js.map +1 -1
  3. package/bundles/taiga-ui-core-components-button.umd.js +1 -1
  4. package/bundles/taiga-ui-core-components-calendar.umd.js +22 -6
  5. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  6. package/bundles/taiga-ui-core-components-data-list.umd.js +1 -1
  7. package/bundles/taiga-ui-core-components-dialog.umd.js +4 -4
  8. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  9. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +8 -8
  10. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  11. package/bundles/taiga-ui-core-components-link.umd.js +1 -1
  12. package/bundles/taiga-ui-core-components-notification.umd.js +1 -1
  13. package/bundles/taiga-ui-core-components-notification.umd.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-root.umd.js +1 -1
  15. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +10 -10
  16. package/bundles/taiga-ui-core-components-scroll-controls.umd.js.map +1 -1
  17. package/bundles/taiga-ui-core-components-theme-night.umd.js +1 -1
  18. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  19. package/bundles/taiga-ui-core-directives-dropdown.umd.js +1 -1
  20. package/bundles/taiga-ui-core-directives-dropdown.umd.js.map +1 -1
  21. package/bundles/taiga-ui-core-directives-hint.umd.js +0 -1
  22. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  23. package/bundles/taiga-ui-core-enums.umd.js.map +1 -1
  24. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js +6 -6
  25. package/bundles/taiga-ui-core-pipes-order-week-days.umd.js.map +1 -1
  26. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  27. package/bundles/taiga-ui-core-utils-dom.umd.js +0 -1
  28. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  29. package/bundles/taiga-ui-core-utils-mask.umd.js +92 -93
  30. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  31. package/components/calendar/calendar.component.d.ts +6 -4
  32. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +5 -4
  33. package/constants/cache-basting-payload.d.ts +1 -1
  34. package/enums/interactive-state.d.ts +1 -0
  35. package/esm2015/components/alert/alert.component.js +2 -2
  36. package/esm2015/components/button/button.component.js +1 -1
  37. package/esm2015/components/calendar/calendar.component.js +15 -7
  38. package/esm2015/components/data-list/option/option.component.js +1 -1
  39. package/esm2015/components/dialog/dialog.component.js +5 -5
  40. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +9 -9
  41. package/esm2015/components/link/link.component.js +1 -1
  42. package/esm2015/components/notification/notification.component.js +1 -1
  43. package/esm2015/components/root/root.component.js +1 -1
  44. package/esm2015/components/scroll-controls/scrollbar.directive.js +7 -7
  45. package/esm2015/components/theme-night/theme-night.component.js +1 -1
  46. package/esm2015/directives/dropdown/dropdown.component.js +2 -2
  47. package/esm2015/directives/hint/hint-position.directive.js +1 -2
  48. package/esm2015/directives/hint/hint.directive.js +1 -2
  49. package/esm2015/directives/hint/hint.providers.js +1 -2
  50. package/esm2015/enums/interactive-state.js +1 -1
  51. package/esm2015/pipes/order-week-days/order-week-days.pipe.js +8 -8
  52. package/esm2015/tokens/common-icon.js +1 -1
  53. package/esm2015/tokens/ordered-short-week-days.js +1 -1
  54. package/esm2015/types/calendar-view.js +2 -0
  55. package/esm2015/types/index.js +2 -1
  56. package/esm2015/utils/dom/get-word-range.js +1 -2
  57. package/esm2015/utils/mask/create-auto-corrected-money-pipe.js +43 -43
  58. package/esm2015/utils/mask/create-number-mask.js +45 -46
  59. package/fesm2015/taiga-ui-core-components-alert.js +1 -1
  60. package/fesm2015/taiga-ui-core-components-alert.js.map +1 -1
  61. package/fesm2015/taiga-ui-core-components-button.js +1 -1
  62. package/fesm2015/taiga-ui-core-components-calendar.js +14 -6
  63. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  64. package/fesm2015/taiga-ui-core-components-data-list.js +1 -1
  65. package/fesm2015/taiga-ui-core-components-dialog.js +5 -5
  66. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  67. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +8 -8
  68. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  69. package/fesm2015/taiga-ui-core-components-link.js +1 -1
  70. package/fesm2015/taiga-ui-core-components-notification.js +1 -1
  71. package/fesm2015/taiga-ui-core-components-notification.js.map +1 -1
  72. package/fesm2015/taiga-ui-core-components-root.js +1 -1
  73. package/fesm2015/taiga-ui-core-components-scroll-controls.js +6 -6
  74. package/fesm2015/taiga-ui-core-components-scroll-controls.js.map +1 -1
  75. package/fesm2015/taiga-ui-core-components-theme-night.js +1 -1
  76. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  77. package/fesm2015/taiga-ui-core-directives-dropdown.js +1 -1
  78. package/fesm2015/taiga-ui-core-directives-dropdown.js.map +1 -1
  79. package/fesm2015/taiga-ui-core-directives-hint.js +0 -1
  80. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  81. package/fesm2015/taiga-ui-core-enums.js.map +1 -1
  82. package/fesm2015/taiga-ui-core-pipes-order-week-days.js +7 -7
  83. package/fesm2015/taiga-ui-core-pipes-order-week-days.js.map +1 -1
  84. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  85. package/fesm2015/taiga-ui-core-utils-dom.js +0 -1
  86. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  87. package/fesm2015/taiga-ui-core-utils-mask.js +86 -87
  88. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  89. package/package.json +42 -42
  90. package/styles/mixins/appearance.less +41 -0
  91. package/styles/mixins/appearance.scss +41 -0
  92. package/styles/mixins/mixins.less +49 -11
  93. package/styles/mixins/mixins.scss +40 -0
  94. package/styles/mixins/slider.less +1 -1
  95. package/styles/taiga-ui-local.less +1 -0
  96. package/styles/taiga-ui-local.scss +1 -0
  97. package/styles/taiga-ui-theme.less +1 -0
  98. package/styles/theme/appearance/accent.less +14 -0
  99. package/styles/theme/appearance/base.less +18 -0
  100. package/styles/theme/appearance/floating.less +16 -0
  101. package/styles/theme/appearance/glass.less +30 -0
  102. package/styles/theme/appearance/icon.less +38 -0
  103. package/styles/theme/appearance/opposite.less +31 -0
  104. package/styles/theme/appearance/outline.less +34 -0
  105. package/styles/theme/appearance/primary.less +14 -0
  106. package/styles/theme/appearance/secondary.less +24 -0
  107. package/styles/theme/appearance/status.less +66 -0
  108. package/styles/theme/appearance.less +10 -0
  109. package/styles/theme/variables.less +68 -0
  110. package/types/calendar-view.d.ts +1 -0
  111. package/types/index.d.ts +1 -0
@@ -10,4 +10,5 @@
10
10
  @import 'mixins/text.less';
11
11
  @import 'mixins/textfield.less';
12
12
  @import 'mixins/wrapper.less';
13
+ @import 'mixins/appearance.less';
13
14
  @import 'variables/media.less';
@@ -10,4 +10,5 @@ $space: 0.25rem;
10
10
  @import 'mixins/text.scss';
11
11
  @import 'mixins/textfield.scss';
12
12
  @import 'mixins/wrapper.scss';
13
+ @import 'mixins/appearance.scss';
13
14
  @import 'variables/media.scss';
@@ -1,3 +1,4 @@
1
1
  @import 'theme/variables.less';
2
+ @import 'theme/appearance.less';
2
3
  @import 'theme/wrapper.less';
3
4
  @import 'theme/calendar.less';
@@ -0,0 +1,14 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ [tuiAppearance][data-appearance='accent'] {
4
+ background: var(--tui-accent);
5
+ color: var(--tui-accent-text);
6
+
7
+ .appearance-hover({
8
+ background: var(--tui-accent-hover);
9
+ });
10
+
11
+ .appearance-active({
12
+ background: var(--tui-accent-active);
13
+ });
14
+ }
@@ -0,0 +1,18 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ [tuiAppearance] {
4
+ .transition(~'color, background, opacity, box-shadow');
5
+ position: relative;
6
+ appearance: none;
7
+ outline: 0.125rem solid transparent;
8
+ outline-offset: -0.125rem;
9
+
10
+ .appearance-focus({
11
+ outline-color: var(--tui-focus);
12
+ });
13
+
14
+ .appearance-disabled({
15
+ pointer-events: none;
16
+ opacity: var(--tui-disabled-opacity);
17
+ });
18
+ }
@@ -0,0 +1,16 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ [tuiAppearance][data-appearance='floating'] {
4
+ background: #fff;
5
+ color: rgba(0, 0, 0, 0.8);
6
+ box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
7
+
8
+ .appearance-hover({
9
+ box-shadow: 0 0.875rem 2.625rem rgba(0, 0, 0, 0.14);
10
+ });
11
+
12
+ .appearance-active({
13
+ background: #f6f7f8;
14
+ box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
15
+ });
16
+ }
@@ -0,0 +1,30 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ /* stylelint-disable order/order */
4
+ [tuiAppearance][data-appearance='glass'] {
5
+ background: rgba(0, 0, 0, 0.4);
6
+ color: #fff;
7
+ backdrop-filter: blur(1rem);
8
+
9
+ --tui-focus: rgba(255, 255, 255, 0.64);
10
+
11
+ .appearance-hover({
12
+ background: rgba(0, 0, 0, 0.48);
13
+ });
14
+
15
+ .appearance-active({
16
+ background: rgba(0, 0, 0, 0.6);
17
+ });
18
+
19
+ [tuiTheme='night'] & {
20
+ background: rgba(255, 255, 255, 0.3);
21
+
22
+ .appearance-hover({
23
+ background: rgba(255, 255, 255, 0.4);
24
+ });
25
+
26
+ .appearance-active({
27
+ background: rgba(255, 255, 255, 0.5);
28
+ });
29
+ }
30
+ }
@@ -0,0 +1,38 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ [tuiAppearance][data-appearance='icon'] {
4
+ color: var(--tui-text-03);
5
+
6
+ .appearance-hover({
7
+ color: var(--tui-text-02);
8
+ });
9
+
10
+ .appearance-active({
11
+ color: var(--tui-text-01);
12
+ });
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
+ }
@@ -0,0 +1,31 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ [tuiAppearance][data-appearance='opposite'] {
4
+ background: #000;
5
+ color: #fff;
6
+
7
+ --tui-focus: rgba(255, 255, 255, 0.64);
8
+
9
+ .appearance-hover({
10
+ background: #333;
11
+ });
12
+
13
+ .appearance-active({
14
+ background: #5c636b;
15
+ });
16
+
17
+ [tuiTheme='night'] & {
18
+ color: rgba(0, 0, 0, 0.8);
19
+ background: #fff;
20
+
21
+ --tui-focus: rgba(51, 51, 51, 0.48);
22
+
23
+ .appearance-hover({
24
+ background: #f3F4f6;
25
+ });
26
+
27
+ .appearance-active({
28
+ background: #eaecee;
29
+ });
30
+ }
31
+ }
@@ -0,0 +1,34 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ [tuiAppearance][data-appearance='outline'],
4
+ [tuiAppearance][data-appearance='whiteblock'] {
5
+ background: transparent;
6
+ color: var(--tui-link);
7
+ box-shadow: inset 0 0 0 1px var(--tui-base-04);
8
+
9
+ .appearance-hover({
10
+ background: var(--tui-clear);
11
+ box-shadow: inset 0 0 0 1px var(--tui-base-05);
12
+ });
13
+
14
+ .appearance-active({
15
+ background: var(--tui-clear);
16
+ box-shadow: inset 0 0 0 1px var(--tui-base-06);
17
+ });
18
+
19
+ &:checked {
20
+ box-shadow: inset 0 0 0 2px var(--tui-primary);
21
+
22
+ .appearance-hover({
23
+ box-shadow: inset 0 0 0 2px var(--tui-primary-hover);
24
+ });
25
+
26
+ .appearance-active({
27
+ box-shadow: inset 0 0 0 2px var(--tui-primary-active);
28
+ });
29
+ }
30
+ }
31
+
32
+ [tuiAppearance][data-appearance='whiteblock'] {
33
+ color: var(--tui-text-01);
34
+ }
@@ -0,0 +1,14 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ [tuiAppearance][data-appearance='primary'] {
4
+ background: var(--tui-primary);
5
+ color: var(--tui-primary-text);
6
+
7
+ .appearance-hover({
8
+ background: var(--tui-primary-hover);
9
+ });
10
+
11
+ .appearance-active({
12
+ background: var(--tui-primary-active);
13
+ });
14
+ }
@@ -0,0 +1,24 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ [tuiAppearance][data-appearance='secondary'],
4
+ [tuiAppearance][data-appearance='flat'],
5
+ [tuiAppearance][data-appearance='destructive'] {
6
+ background: var(--tui-secondary);
7
+ color: var(--tui-link);
8
+
9
+ .appearance-hover({
10
+ background: var(--tui-secondary-hover);
11
+ });
12
+
13
+ .appearance-active({
14
+ background: var(--tui-secondary-active);
15
+ });
16
+ }
17
+
18
+ [tuiAppearance][data-appearance='flat'] {
19
+ background: transparent;
20
+ }
21
+
22
+ [tuiAppearance][data-appearance='destructive'] {
23
+ color: var(--tui-negative);
24
+ }
@@ -0,0 +1,66 @@
1
+ @import '../../taiga-ui-local.less';
2
+
3
+ [tuiAppearance][data-appearance='error'] {
4
+ color: var(--tui-text-01);
5
+ background: var(--tui-error-bg);
6
+
7
+ .appearance-hover({
8
+ background: var(--tui-error-bg-hover);
9
+ });
10
+
11
+ .appearance-active({
12
+ background: var(--tui-error-bg-hover);
13
+ });
14
+ }
15
+
16
+ [tuiAppearance][data-appearance='success'] {
17
+ color: var(--tui-text-01);
18
+ background: var(--tui-success-bg);
19
+
20
+ .appearance-hover({
21
+ background: var(--tui-success-bg-hover);
22
+ });
23
+
24
+ .appearance-active({
25
+ background: var(--tui-success-bg-hover);
26
+ });
27
+ }
28
+
29
+ [tuiAppearance][data-appearance='warning'] {
30
+ color: var(--tui-text-01);
31
+ background: var(--tui-warning-bg);
32
+
33
+ .appearance-hover({
34
+ background: var(--tui-warning-bg-hover);
35
+ });
36
+
37
+ .appearance-active({
38
+ background: var(--tui-warning-bg-hover);
39
+ });
40
+ }
41
+
42
+ [tuiAppearance][data-appearance='info'] {
43
+ color: var(--tui-text-01);
44
+ background: var(--tui-info-bg);
45
+
46
+ .appearance-hover({
47
+ background: var(--tui-info-bg-hover);
48
+ });
49
+
50
+ .appearance-active({
51
+ background: var(--tui-info-bg-hover);
52
+ });
53
+ }
54
+
55
+ [tuiAppearance][data-appearance='neutral'] {
56
+ color: var(--tui-text-01);
57
+ background: var(--tui-neutral-bg);
58
+
59
+ .appearance-hover({
60
+ background: var(--tui-neutral-bg-hover);
61
+ });
62
+
63
+ .appearance-active({
64
+ background: var(--tui-neutral-bg-hover);
65
+ });
66
+ }
@@ -0,0 +1,10 @@
1
+ @import 'appearance/base.less';
2
+ @import 'appearance/accent.less';
3
+ @import 'appearance/floating.less';
4
+ @import 'appearance/glass.less';
5
+ @import 'appearance/icon.less';
6
+ @import 'appearance/opposite.less';
7
+ @import 'appearance/outline.less';
8
+ @import 'appearance/primary.less';
9
+ @import 'appearance/secondary.less';
10
+ @import 'appearance/status.less';
@@ -154,4 +154,72 @@
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);
166
+ }
167
+
168
+ [tuiTheme='night'] {
169
+ --tui-base-01: #222;
170
+ --tui-base-02: #333;
171
+ --tui-base-03: #808080;
172
+ --tui-base-04: #959595;
173
+ --tui-base-05: #b0b0b0;
174
+ --tui-base-06: #d7d7d7;
175
+ --tui-base-07: #ededed;
176
+ --tui-base-08: #f6f6f6;
177
+ --tui-base-09: #fff;
178
+ --tui-focus: rgba(51, 51, 51, 0.64);
179
+ --tui-secondary: rgba(255, 255, 255, 0.16);
180
+ --tui-secondary-hover: rgba(255, 255, 255, 0.24);
181
+ --tui-secondary-active: rgba(255, 255, 255, 0.4);
182
+ --tui-clear: rgba(255, 255, 255, 0.16);
183
+ --tui-clear-disabled: rgba(255, 255, 255, 0.08);
184
+ --tui-clear-hover: rgba(255, 255, 255, 0.24);
185
+ --tui-clear-active: rgba(255, 255, 255, 0.4);
186
+ --tui-error-fill: rgba(255, 140, 103, 1);
187
+ --tui-error-bg: rgba(244, 87, 37, 0.32);
188
+ --tui-error-bg-hover: rgba(244, 87, 37, 0.4);
189
+ --tui-success-fill: rgb(74, 201, 155);
190
+ --tui-success-bg: rgba(74, 201, 155, 0.32);
191
+ --tui-success-bg-hover: rgba(74, 201, 155, 0.4);
192
+ --tui-warning-fill: rgb(255, 199, 0);
193
+ --tui-warning-bg: rgba(255, 199, 0, 0.32);
194
+ --tui-warning-bg-hover: rgba(255, 199, 0, 0.4);
195
+ --tui-info-fill: rgb(112, 182, 246);
196
+ --tui-info-bg: rgba(112, 182, 246, 0.32);
197
+ --tui-info-bg-hover: rgba(112, 182, 246, 0.4);
198
+ --tui-neutral-fill: rgb(149, 155, 164);
199
+ --tui-neutral-bg: rgba(149, 155, 164, 0.32);
200
+ --tui-neutral-bg-hover: rgba(149, 155, 164, 0.48);
201
+ --tui-text-01: rgba(255, 255, 255, 1);
202
+ --tui-text-02: rgba(255, 255, 255, 0.72);
203
+ --tui-text-03: rgba(255, 255, 255, 0.6);
204
+ --tui-link: #6788ff;
205
+ --tui-link-hover: #526ed3;
206
+ --tui-positive: #44c596;
207
+ --tui-positive-hover: #3aa981;
208
+ --tui-negative: #ff8c67;
209
+ --tui-negative-hover: #bb593a;
210
+ --tui-autofill: var(--tui-autofill-night);
211
+ --tui-elevation-01: #222;
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);
221
+
222
+ tui-notification {
223
+ --tui-base-01: #000;
224
+ }
157
225
  }
@@ -0,0 +1 @@
1
+ export declare type TuiCalendarView = 'month' | 'year';
package/types/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './brightness';
2
+ export * from './calendar-view';
2
3
  export * from './data-list-role';
3
4
  export * from './decimal';
4
5
  export * from './decimal-symbol';