@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,125 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiAppearance][data-appearance='negative'],
4
- [tuiAppearance][data-appearance='positive'],
5
- [tuiAppearance][data-appearance='warning'],
6
- [tuiAppearance][data-appearance='info'],
7
- [tuiAppearance][data-appearance='neutral'] {
8
- background: var(--t-bg);
9
- color: var(--tui-text-primary);
10
-
11
- &:checked:not([data-mode]),
12
- &[data-mode~='checked'] {
13
- color: #fff;
14
- }
15
- }
16
-
17
- [tuiAppearance][data-appearance='negative'] {
18
- --t-bg: var(--tui-status-negative-pale);
19
-
20
- &::before,
21
- &::after {
22
- color: var(--tui-status-negative);
23
- }
24
-
25
- .appearance-hover({
26
- --t-bg: var(--tui-status-negative-pale-hover);
27
- });
28
-
29
- .appearance-active({
30
- --t-bg: var(--tui-status-negative-pale-hover);
31
- });
32
-
33
- &:checked:not([data-mode]),
34
- &[data-mode~='checked'] {
35
- background: var(--tui-status-negative);
36
- }
37
- }
38
-
39
- [tuiAppearance][data-appearance='positive'] {
40
- --t-bg: var(--tui-status-positive-pale);
41
-
42
- &::before,
43
- &::after {
44
- color: var(--tui-status-positive);
45
- }
46
-
47
- .appearance-hover({
48
- --t-bg: var(--tui-status-positive-pale-hover);
49
- });
50
-
51
- .appearance-active({
52
- --t-bg: var(--tui-status-positive-pale-hover);
53
- });
54
-
55
- &:checked:not([data-mode]),
56
- &[data-mode~='checked'] {
57
- background: var(--tui-status-positive);
58
- }
59
- }
60
-
61
- [tuiAppearance][data-appearance='warning'] {
62
- --t-bg: var(--tui-status-warning-pale);
63
-
64
- &::before,
65
- &::after {
66
- color: var(--tui-status-warning);
67
- }
68
-
69
- .appearance-hover({
70
- --t-bg: var(--tui-status-warning-pale-hover);
71
- });
72
-
73
- .appearance-active({
74
- --t-bg: var(--tui-status-warning-pale-hover);
75
- });
76
-
77
- &:checked:not([data-mode]),
78
- &[data-mode~='checked'] {
79
- background: var(--tui-status-warning);
80
- }
81
- }
82
-
83
- [tuiAppearance][data-appearance='info'] {
84
- --t-bg: var(--tui-status-info-pale);
85
-
86
- &::before,
87
- &::after {
88
- color: var(--tui-status-info);
89
- }
90
-
91
- .appearance-hover({
92
- --t-bg: var(--tui-status-info-pale-hover);
93
- });
94
-
95
- .appearance-active({
96
- --t-bg: var(--tui-status-info-pale-hover);
97
- });
98
-
99
- &:checked:not([data-mode]),
100
- &[data-mode~='checked'] {
101
- background: var(--tui-status-info);
102
- }
103
- }
104
-
105
- [tuiAppearance][data-appearance='neutral'] {
106
- --t-bg: var(--tui-background-neutral-1);
107
-
108
- &::before,
109
- &::after {
110
- color: var(--tui-status-neutral);
111
- }
112
-
113
- .appearance-hover({
114
- --t-bg: var(--tui-background-neutral-1-hover);
115
- });
116
-
117
- .appearance-active({
118
- --t-bg: var(--tui-background-neutral-1-pressed);
119
- });
120
-
121
- &:checked:not([data-mode]),
122
- &[data-mode~='checked'] {
123
- background: var(--tui-status-neutral);
124
- }
125
- }
@@ -1,68 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiAppearance][data-appearance='table'] {
4
- min-block-size: calc(100% + 1px);
5
- border-radius: 0 !important;
6
- background: transparent;
7
- color: var(--tui-text-primary);
8
- border: none;
9
- outline: none;
10
- margin: -1px -1px 0;
11
- overflow: hidden;
12
-
13
- &:not(tui-textfield[multi], tui-input-card-group) [tuiInput]:not(textarea) {
14
- block-size: var(--t-height);
15
- border-block-end: 100rem solid transparent;
16
- box-sizing: content-box;
17
- }
18
-
19
- &::before,
20
- &::after {
21
- color: var(--tui-text-tertiary);
22
- }
23
-
24
- &:not([data-mode~='readonly']) {
25
- .appearance-hover({
26
- &[data-focus='false'] {
27
- background-color: var(--tui-background-neutral-1);
28
- }
29
-
30
- &::before,
31
- &::after {
32
- color: var(--tui-text-secondary);
33
- }
34
- });
35
- }
36
-
37
- .appearance-focus({
38
- border-image: conic-gradient(var(--tui-border-focus) 0 0) 1 / 0.125rem / 0 0 1px;
39
- });
40
-
41
- .appearance-invalid({
42
- background:
43
- linear-gradient(to top right, transparent 0% 50%, var(--tui-status-negative) 50% 100%)
44
- top right / 0.5rem 0.5rem
45
- no-repeat
46
- border-box;
47
-
48
- &[data-focus='false'] {
49
- background-color: var(--tui-status-negative-pale);
50
- }
51
-
52
- .appearance-hover({
53
- &[data-focus='false'] {
54
- background-color: var(--tui-status-negative-pale-hover);
55
- }
56
- });
57
-
58
- .appearance-disabled({
59
- background: transparent;
60
- outline: none;
61
- });
62
-
63
- .appearance-focus({
64
- background-color: transparent;
65
- border-image: conic-gradient(var(--tui-status-negative) 0 0) 1 / 1px / 0 0 1px;
66
- });
67
- });
68
- }
@@ -1,80 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- [tuiAppearance][data-appearance='textfield'] {
4
- .transition(~'box-shadow, background-color, outline-color, border-color, color');
5
-
6
- --t-shadow: 0 0.125rem 0.1875rem rgba(0, 0, 0, 0.1);
7
-
8
- background-color: var(--tui-background-base);
9
- color: var(--tui-text-tertiary);
10
- box-shadow: var(--t-shadow);
11
- outline: 1px solid var(--tui-border-normal);
12
- outline-offset: -1px;
13
- border-width: 0;
14
-
15
- &:is(input, textarea, select) {
16
- color: var(--tui-text-primary) !important;
17
- }
18
-
19
- &::before,
20
- &::after {
21
- transition-property: transform;
22
- }
23
-
24
- &:not([data-mode~='readonly']) {
25
- .appearance-hover({
26
- --t-shadow: 0 0.125rem 0.3125rem rgba(0, 0, 0, 0.16);
27
- color: var(--tui-text-secondary);
28
- });
29
- }
30
-
31
- .appearance-focus({
32
- box-shadow: none;
33
- outline: 0.125rem solid var(--tui-background-accent-1);
34
- outline-offset: -0.125rem;
35
- });
36
-
37
- .appearance-disabled({
38
- box-shadow: none;
39
- });
40
-
41
- .appearance-invalid({
42
- outline-color: var(--tui-status-negative);
43
- });
44
-
45
- &[data-mode~='readonly'],
46
- &[data-state='disabled'],
47
- &:disabled,
48
- &._disabled {
49
- background: transparent !important;
50
- box-shadow: none !important;
51
- outline-color: var(--tui-border-normal) !important;
52
- }
53
-
54
- [tuiInput][chrome-autofilled], /* Chrome on IOS */
55
- [tuiInput]:-webkit-autofill {
56
- -webkit-text-fill-color: var(--tui-text-primary) !important;
57
- caret-color: var(--tui-text-primary) !important;
58
- box-shadow: 0 0 0 100rem var(--tui-service-autofill-background) inset !important;
59
- transition: background-color 600000s 0s;
60
- clip-path: inset(0.125rem round calc(var(--tui-radius-m) - 0.125rem));
61
- }
62
-
63
- &[data-size='l'] [tuiInput][chrome-autofilled], /* Chrome on IOS */
64
- &[data-size='l'] [tuiInput]:-webkit-autofill {
65
- clip-path: inset(0.125rem round calc(var(--tui-radius-l) - 0.125rem));
66
- }
67
- }
68
-
69
- [tuiTheme='dark'] [tuiAppearance][data-appearance='textfield'],
70
- [tuiTheme='dark'][tuiAppearance][data-appearance='textfield'] {
71
- background-color: var(--tui-background-neutral-1);
72
-
73
- .appearance-hover({
74
- background-color: var(--tui-background-neutral-1-hover);
75
- });
76
-
77
- .appearance-focus({
78
- background-color: transparent !important;
79
- });
80
- }
@@ -1,12 +0,0 @@
1
- @import 'appearance/accent.less';
2
- @import 'appearance/action.less';
3
- @import 'appearance/flat.less';
4
- @import 'appearance/floating.less';
5
- @import 'appearance/glass.less';
6
- @import 'appearance/outline.less';
7
- @import 'appearance/primary.less';
8
- @import 'appearance/secondary.less';
9
- @import 'appearance/status.less';
10
- @import 'appearance/table.less';
11
- // Do not add it, we need it separately in proprietary theme
12
- // @import 'appearance/textfield.less';
@@ -1,161 +0,0 @@
1
- .dark() {
2
- // Backgrounds
3
- --tui-background-base: #222;
4
- --tui-background-base-alt: #333;
5
- --tui-background-neutral-1: rgba(255, 255, 255, 0.08);
6
- --tui-background-neutral-1-hover: rgba(255, 255, 255, 0.16);
7
- --tui-background-neutral-1-pressed: rgba(255, 255, 255, 0.24);
8
- --tui-background-neutral-2: rgba(255, 255, 255, 0.24);
9
- --tui-background-neutral-2-hover: rgba(255, 255, 255, 0.32);
10
- --tui-background-neutral-2-pressed: rgba(255, 255, 255, 0.4);
11
- --tui-background-accent-opposite: #fff;
12
- --tui-background-accent-opposite-hover: #f6f6f6;
13
- --tui-background-accent-opposite-pressed: #ededed;
14
- --tui-background-elevation-1: #292929;
15
- --tui-background-elevation-2: #2f2f2f;
16
- --tui-background-elevation-3: #373737;
17
- // Other
18
- --tui-service-autofill-background: rgb(85, 74, 42);
19
- --tui-border-normal: rgba(255, 255, 255, 0.14);
20
- --tui-border-hover: rgba(255, 255, 255, 0.6);
21
- --tui-border-focus: rgba(255, 255, 255, 0.64);
22
- // Statuses
23
- --tui-status-negative: rgba(255, 140, 103, 1);
24
- --tui-status-negative-pale: rgba(244, 87, 37, 0.32);
25
- --tui-status-negative-pale-hover: rgba(244, 87, 37, 0.4);
26
- --tui-status-positive: rgb(74, 201, 155);
27
- --tui-status-positive-pale: rgba(74, 201, 155, 0.32);
28
- --tui-status-positive-pale-hover: rgba(74, 201, 155, 0.4);
29
- --tui-status-warning: rgb(255, 199, 0);
30
- --tui-status-warning-pale: rgba(255, 199, 0, 0.32);
31
- --tui-status-warning-pale-hover: rgba(255, 199, 0, 0.4);
32
- --tui-status-info: rgb(112, 182, 246);
33
- --tui-status-info-pale: rgba(112, 182, 246, 0.32);
34
- --tui-status-info-pale-hover: rgba(112, 182, 246, 0.4);
35
- --tui-status-neutral: rgb(149, 155, 164);
36
- // Text
37
- --tui-text-primary: rgba(255, 255, 255, 1);
38
- --tui-text-secondary: rgba(255, 255, 255, 0.72);
39
- --tui-text-tertiary: rgba(255, 255, 255, 0.6);
40
- --tui-text-action: #6788ff;
41
- --tui-text-action-hover: #526ed3;
42
- --tui-text-positive: #44c596;
43
- --tui-text-positive-hover: #3aa981;
44
- --tui-text-negative: #ff8c67;
45
- --tui-text-negative-hover: #bb593a;
46
- }
47
-
48
- .light() {
49
- // Backgrounds
50
- --tui-background-base: #fff;
51
- --tui-background-base-alt: #f6f6f6;
52
- --tui-background-neutral-1: rgba(0, 0, 0, 0.04);
53
- --tui-background-neutral-1-hover: rgba(0, 0, 0, 0.08);
54
- --tui-background-neutral-1-pressed: rgba(0, 0, 0, 0.12);
55
- --tui-background-neutral-2: rgba(0, 0, 0, 0.08);
56
- --tui-background-neutral-2-hover: rgba(0, 0, 0, 0.1);
57
- --tui-background-neutral-2-pressed: rgba(0, 0, 0, 0.14);
58
- --tui-background-accent-1: #526ed3;
59
- --tui-background-accent-1-hover: #6c86e2;
60
- --tui-background-accent-1-pressed: #314692;
61
- --tui-background-accent-2: #ff7043;
62
- --tui-background-accent-2-hover: #ff9a94;
63
- --tui-background-accent-2-pressed: #e7716a;
64
- --tui-background-accent-opposite: #000;
65
- --tui-background-accent-opposite-hover: #333;
66
- --tui-background-accent-opposite-pressed: #808080;
67
- --tui-background-elevation-1: #fff;
68
- --tui-background-elevation-2: #fff;
69
- --tui-background-elevation-3: #fff;
70
- // Other
71
- --tui-service-autofill-background: #fff5c0;
72
- --tui-service-selection-background: rgba(112, 182, 246, 0.12);
73
- --tui-service-backdrop: rgba(0, 0, 0, 0.75);
74
- --tui-border-normal: rgba(0, 0, 0, 0.1);
75
- --tui-border-hover: rgba(0, 0, 0, 0.16);
76
- --tui-border-focus: rgba(51, 51, 51, 0.64);
77
- // Statuses
78
- --tui-status-negative: rgba(244, 87, 37, 1);
79
- --tui-status-negative-pale: rgba(244, 87, 37, 0.12);
80
- --tui-status-negative-pale-hover: rgba(244, 87, 37, 0.24);
81
- --tui-status-positive: rgba(74, 201, 155, 1);
82
- --tui-status-positive-pale: rgba(74, 201, 155, 0.12);
83
- --tui-status-positive-pale-hover: rgba(74, 201, 155, 0.24);
84
- --tui-status-warning: rgba(255, 199, 0, 1);
85
- --tui-status-warning-pale: rgba(255, 199, 0, 0.12);
86
- --tui-status-warning-pale-hover: rgba(255, 199, 0, 0.24);
87
- --tui-status-info: rgba(112, 182, 246, 1);
88
- --tui-status-info-pale: rgba(112, 182, 246, 0.12);
89
- --tui-status-info-pale-hover: rgba(112, 182, 246, 0.24);
90
- --tui-status-neutral: rgb(121, 129, 140);
91
- // Text
92
- --tui-text-primary: rgba(27, 31, 59, 1);
93
- --tui-text-secondary: rgba(27, 31, 59, 0.65);
94
- --tui-text-tertiary: rgba(27, 31, 59, 0.4);
95
- --tui-text-primary-on-accent-1: #fff;
96
- --tui-text-primary-on-accent-2: #fff;
97
- --tui-text-action: #4c66c3;
98
- --tui-text-action-hover: #6c86e2;
99
- --tui-text-positive: #3aa981;
100
- --tui-text-positive-hover: #7ac5aa;
101
- --tui-text-negative: #dd4c1e;
102
- --tui-text-negative-hover: #e38163;
103
- // Charts
104
- --tui-chart-categorical-00: var(--tui-background-accent-1);
105
- --tui-chart-categorical-01: #ea97c4;
106
- --tui-chart-categorical-02: #a0c5df;
107
- --tui-chart-categorical-03: #fee797;
108
- --tui-chart-categorical-04: #b0b0b0;
109
- --tui-chart-categorical-05: #e29398;
110
- --tui-chart-categorical-06: #b8474e;
111
- --tui-chart-categorical-07: #fcc068;
112
- --tui-chart-categorical-08: #ff8a00;
113
- --tui-chart-categorical-09: #dab3f9;
114
- --tui-chart-categorical-10: #7b439e;
115
- --tui-chart-categorical-11: #8dda71;
116
- --tui-chart-categorical-12: #fcbb14;
117
- --tui-chart-categorical-13: #a8cef1;
118
- --tui-chart-categorical-14: #bd65a4;
119
- --tui-chart-categorical-15: #7fd7cc;
120
- --tui-chart-categorical-16: #2fad96;
121
- --tui-chart-categorical-17: #d4aca2;
122
- --tui-chart-categorical-18: #9d6f64;
123
- --tui-chart-categorical-19: #d2e9a2;
124
- --tui-chart-categorical-20: #aadc42;
125
- --tui-chart-categorical-21: #3682db;
126
- --tui-chart-categorical-22: #34b41f;
127
- // Shadows
128
- --tui-shadow-small: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.1);
129
- --tui-shadow-small-hover: 0 1rem 2.5rem rgba(0, 0, 0, 0.14);
130
- --tui-shadow-medium: 0 0.375rem 2rem rgba(0, 0, 0, 0.12);
131
- --tui-shadow-medium-hover: 0 1.25rem 4rem rgba(0, 0, 0, 0.18);
132
- --tui-shadow-popup: 0 1.25rem 3rem rgba(0, 0, 0, 0.2);
133
- }
134
-
135
- @media screen {
136
- [tuiTheme='dark'] {
137
- color-scheme: dark;
138
-
139
- .dark();
140
- }
141
-
142
- [tuiTheme='light'] {
143
- color-scheme: light;
144
- }
145
-
146
- &:root,
147
- :host,
148
- [tuiTheme='light'] {
149
- .light();
150
- }
151
- }
152
-
153
- @media print {
154
- &:root,
155
- :host,
156
- [tuiTheme] {
157
- color-scheme: light;
158
-
159
- .light();
160
- }
161
- }
@@ -1,42 +0,0 @@
1
- &:root,
2
- &:host {
3
- // Fonts
4
- --tui-font-family-text: 'Manrope', system-ui, sans-serif;
5
- --tui-font-family-display: 'Manrope', system-ui, sans-serif;
6
- --tui-font-offset: ~'0rem';
7
- // Heading
8
- --tui-font-heading-h1: bold calc(var(--tui-font-offset) + 3.125rem) / calc(50 / 56) var(--tui-font-family-display);
9
- --tui-font-heading-h2: bold calc(var(--tui-font-offset) + 2.75rem) / calc(48 / 44) var(--tui-font-family-display);
10
- --tui-font-heading-h3: bold calc(var(--tui-font-offset) + 2.25rem) / calc(40 / 36) var(--tui-font-family-display);
11
- --tui-font-heading-h4: bold calc(var(--tui-font-offset) + 1.75rem) / calc(32 / 28) var(--tui-font-family-display);
12
- --tui-font-heading-h5: bold calc(var(--tui-font-offset) + 1.5rem) / calc(28 / 24) var(--tui-font-family-display);
13
- --tui-font-heading-h6: bold calc(var(--tui-font-offset) + 1.25rem) / calc(24 / 20) var(--tui-font-family-display);
14
- // Body
15
- --tui-font-body-l: normal calc(var(--tui-font-offset) + 1.0625rem) / calc(28 / 17) var(--tui-font-family-text);
16
- --tui-font-body-m: normal calc(var(--tui-font-offset) + 1rem) / calc(24 / 16) var(--tui-font-family-text);
17
- --tui-font-body-s: normal calc(var(--tui-font-offset) + 0.8125rem) / calc(20 / 13) var(--tui-font-family-text);
18
- --tui-font-body-xs: normal calc(var(--tui-font-offset) + 0.6875rem) / calc(16 / 11) var(--tui-font-family-text);
19
- // Reduced
20
- --tui-font-ui-l: normal calc(var(--tui-font-offset) + 1.0625rem) / calc(24 / 17) var(--tui-font-family-text);
21
- --tui-font-ui-m: normal calc(var(--tui-font-offset) + 1rem) / calc(20 / 16) var(--tui-font-family-text);
22
- --tui-font-ui-s: normal calc(var(--tui-font-offset) + 0.8125rem) / calc(16 / 13) var(--tui-font-family-text);
23
- --tui-font-ui-xs: normal calc(var(--tui-font-offset) + 0.6875rem) / calc(13 / 11) var(--tui-font-family-text);
24
- // Radii
25
- --tui-radius-xs: 0.25rem;
26
- --tui-radius-s: 0.5rem;
27
- --tui-radius-m: 0.625rem;
28
- --tui-radius-l: 0.75rem;
29
- --tui-radius-xl: 1.5rem;
30
- // Sizes
31
- --tui-height-xs: 1.5rem;
32
- --tui-height-s: 2rem;
33
- --tui-height-m: 2.75rem;
34
- --tui-height-l: 3.5rem;
35
- // Input padding
36
- --tui-padding-s: 0.625rem;
37
- --tui-padding-m: 0.75rem;
38
- --tui-padding-l: 1rem;
39
- // Misc
40
- --tui-duration: 0.3s;
41
- --tui-disabled-opacity: 0.56;
42
- }
@@ -1,23 +0,0 @@
1
- @tui-media-retina: ~'(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)';
2
- @tui-media-retina-mobile: ~'(-webkit-min-device-pixel-ratio: 2) and (max-width: 599.4px), (min-resolution: 192dpi) and (max-width: 599.4px)';
3
- @tui-media-retina-tablet: ~'(-webkit-min-device-pixel-ratio: 2) and (max-width: 1023.4px), (min-resolution: 192dpi) and (max-width: 1023.4px)';
4
- @tui-media-retina-desktop: ~'(-webkit-min-device-pixel-ratio: 2) and (max-width: 1359.4px), (min-resolution: 192dpi) and (max-width: 1359.4px)';
5
-
6
- @tui-mobile: ~'screen and (max-width: 767.4px)';
7
- @tui-mobile-min: ~'screen and (min-width: 360px)';
8
- @tui-mobile-interval: ~'(min-width: 360px) and (max-width: 767.4px)';
9
-
10
- @tui-tablet: ~'screen and (max-width: 1023.4px)';
11
- @tui-tablet-min: ~'screen and (min-width: 768px)';
12
- @tui-tablet-interval: ~'(min-width: 768px) and (max-width: 1023.4px)';
13
-
14
- @tui-desktop: ~'screen and (max-width: 1279.4px)';
15
- @tui-desktop-min: ~'screen and (min-width: 1024px)';
16
- @tui-desktop-interval: ~'(min-width: 1024px) and (max-width: 1279.4px)';
17
-
18
- @tui-desktop-lg-min: ~'screen and (min-width: 1280px)';
19
-
20
- @tui-touch: ~'(hover: none) and (pointer: coarse)';
21
- @tui-stylus: ~'(hover: none) and (pointer: fine)';
22
- @tui-pointer: ~'(hover: hover) and (pointer: coarse)';
23
- @tui-mouse: ~'(hover: hover) and (pointer: fine)';
@@ -1,23 +0,0 @@
1
- $tui-media-retina: '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)';
2
- $tui-media-retina-mobile: '(-webkit-min-device-pixel-ratio: 2) and (max-width: 599.4px), (min-resolution: 192dpi) and (max-width: 599.4px)';
3
- $tui-media-retina-tablet: '(-webkit-min-device-pixel-ratio: 2) and (max-width: 1023.4px), (min-resolution: 192dpi) and (max-width: 1023.4px)';
4
- $tui-media-retina-desktop: '(-webkit-min-device-pixel-ratio: 2) and (max-width: 1359.4px), (min-resolution: 192dpi) and (max-width: 1359.4px)';
5
-
6
- $tui-mobile: 'screen and (max-width: 767.4px)';
7
- $tui-mobile-min: 'screen and (min-width: 360px)';
8
- $tui-mobile-interval: '(min-width: 360px) and (max-width: 767.4px)';
9
-
10
- $tui-tablet: 'screen and (max-width: 1023.4px)';
11
- $tui-tablet-min: 'screen and (min-width: 768px)';
12
- $tui-tablet-interval: '(min-width: 768px) and (max-width: 1023.4px)';
13
-
14
- $tui-desktop: 'screen and (max-width: 1279.4px)';
15
- $tui-desktop-min: 'screen and (min-width: 1024px)';
16
- $tui-desktop-interval: '(min-width: 1024px) and (max-width: 1279.4px)';
17
-
18
- $tui-desktop-lg-min: 'screen and (min-width: 1280px)';
19
-
20
- $tui-touch: '(hover: none) and (pointer: coarse)';
21
- $tui-stylus: '(hover: none) and (pointer: fine)';
22
- $tui-pointer: '(hover: hover) and (pointer: coarse)';
23
- $tui-mouse: '(hover: hover) and (pointer: fine)';