@taiga-ui/kit 5.0.0-canary.ba4fa64 → 5.0.0-canary.bf29cbb

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 (185) hide show
  1. package/components/calendar-month/calendar-month.component.d.ts +4 -3
  2. package/components/calendar-range/calendar-range.component.d.ts +3 -3
  3. package/components/copy/copy.directive.d.ts +1 -1
  4. package/components/copy/copy.options.d.ts +1 -3
  5. package/components/counter/counter.component.d.ts +17 -0
  6. package/components/counter/counter.options.d.ts +14 -0
  7. package/components/counter/index.d.ts +2 -0
  8. package/components/index.d.ts +2 -3
  9. package/components/input-chip/input-chip.directive.d.ts +1 -1
  10. package/components/input-date/input-date.directive.d.ts +2 -2
  11. package/components/input-date/input-date.options.d.ts +2 -4
  12. package/components/input-date-multi/input-date-multi.directive.d.ts +1 -1
  13. package/components/input-month/input-month.directive.d.ts +1 -1
  14. package/components/input-month/input-month.options.d.ts +1 -7
  15. package/components/input-month-range/input-month-range.directive.d.ts +1 -1
  16. package/components/input-month-range/input-month-range.options.d.ts +1 -3
  17. package/components/input-number/index.d.ts +1 -0
  18. package/components/input-number/input-number.directive.d.ts +1 -0
  19. package/components/input-number/step/input-number-step.component.d.ts +3 -5
  20. package/components/input-number/step/input-number-step.service.d.ts +12 -0
  21. package/components/input-slider/input-slider.d.ts +1 -1
  22. package/components/input-time/input-time.directive.d.ts +1 -1
  23. package/components/input-time/input-time.options.d.ts +1 -3
  24. package/components/input-year/input-year.directive.d.ts +1 -1
  25. package/components/line-clamp/line-clamp-box.component.d.ts +2 -0
  26. package/components/line-clamp/line-clamp.component.d.ts +2 -0
  27. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +1 -0
  28. package/components/range/range.component.d.ts +2 -2
  29. package/components/select/select-option/select-option.component.d.ts +1 -1
  30. package/components/switch/switch.component.d.ts +1 -1
  31. package/components/switch/switch.options.d.ts +1 -1
  32. package/components/timeline/index.d.ts +3 -0
  33. package/components/timeline/timeline-item.component.d.ts +14 -0
  34. package/components/timeline/timeline.component.d.ts +16 -0
  35. package/components/timeline/timeline.d.ts +3 -0
  36. package/directives/password/password.options.d.ts +2 -4
  37. package/fesm2022/taiga-ui-kit-components-accordion.mjs +2 -2
  38. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  39. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +2 -2
  40. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  41. package/fesm2022/taiga-ui-kit-components-avatar.mjs +4 -4
  42. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +2 -2
  44. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-kit-components-badge.mjs +2 -2
  46. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-kit-components-block.mjs +2 -2
  48. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +2 -2
  50. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +24 -14
  52. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +15 -17
  54. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-kit-components-chip.mjs +3 -3
  56. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-kit-components-comment.mjs +3 -3
  58. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-kit-components-compass.mjs +2 -2
  60. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-kit-components-copy.mjs +7 -7
  62. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-kit-components-counter.mjs +65 -0
  64. package/fesm2022/taiga-ui-kit-components-counter.mjs.map +1 -0
  65. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +2 -2
  66. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-kit-components-files.mjs +4 -4
  68. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  69. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +10 -8
  70. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-kit-components-input-color.mjs +2 -2
  72. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +6 -5
  74. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-kit-components-input-date.mjs +8 -6
  76. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -2
  78. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-kit-components-input-month.mjs +4 -10
  80. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-kit-components-input-number.mjs +44 -23
  82. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +2 -2
  84. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +2 -2
  86. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  88. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +1 -1
  89. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  90. package/fesm2022/taiga-ui-kit-components-input-time.mjs +4 -3
  91. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-kit-components-input-year.mjs +8 -6
  93. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-like.mjs +2 -2
  95. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +16 -5
  97. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-message.mjs +2 -2
  99. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +15 -8
  101. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +2 -2
  103. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-pagination.mjs +2 -2
  105. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-pin.mjs +3 -3
  107. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-preview.mjs +8 -8
  109. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-progress.mjs +4 -4
  111. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-push.mjs +2 -2
  113. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +4 -4
  115. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-range.mjs +17 -14
  117. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-segmented.mjs +3 -3
  119. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-select.mjs +11 -12
  121. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-status.mjs +3 -3
  123. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-kit-components-stepper.mjs +2 -2
  125. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-switch.mjs +3 -3
  127. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-tabs.mjs +5 -5
  129. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-textarea.mjs +4 -4
  131. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-timeline.mjs +68 -0
  133. package/fesm2022/taiga-ui-kit-components-timeline.mjs.map +1 -0
  134. package/fesm2022/taiga-ui-kit-components-toast.mjs +2 -2
  135. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components.mjs +2 -3
  137. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +2 -2
  139. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  140. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +2 -2
  141. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-directives-fade.mjs +2 -2
  143. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +1 -1
  145. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-directives-password.mjs +1 -7
  147. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  148. package/package.json +44 -49
  149. package/tokens/i18n.d.ts +0 -1
  150. package/components/checkbox/checkbox.component.d.ts +0 -10
  151. package/components/checkbox/checkbox.options.d.ts +0 -10
  152. package/components/checkbox/index.d.ts +0 -2
  153. package/components/radio/index.d.ts +0 -4
  154. package/components/radio/radio.component.d.ts +0 -18
  155. package/components/radio/radio.d.ts +0 -3
  156. package/components/radio/radio.directive.d.ts +0 -8
  157. package/components/radio/radio.options.d.ts +0 -7
  158. package/components/slider/helpers/key-steps.d.ts +0 -27
  159. package/components/slider/helpers/slider-key-steps.directive.d.ts +0 -32
  160. package/components/slider/helpers/slider-readonly.directive.d.ts +0 -15
  161. package/components/slider/helpers/slider-thumb-label.component.d.ts +0 -13
  162. package/components/slider/index.d.ts +0 -6
  163. package/components/slider/slider.component.d.ts +0 -22
  164. package/components/slider/slider.d.ts +0 -5
  165. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +0 -37
  166. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +0 -1
  167. package/fesm2022/taiga-ui-kit-components-radio.mjs +0 -91
  168. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +0 -1
  169. package/fesm2022/taiga-ui-kit-components-slider.mjs +0 -337
  170. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +0 -1
  171. package/styles/components/avatar.less +0 -188
  172. package/styles/components/badge.less +0 -127
  173. package/styles/components/block.less +0 -118
  174. package/styles/components/checkbox.less +0 -84
  175. package/styles/components/chip.less +0 -131
  176. package/styles/components/comment.less +0 -64
  177. package/styles/components/compass.less +0 -49
  178. package/styles/components/like.less +0 -67
  179. package/styles/components/message.less +0 -33
  180. package/styles/components/pin.less +0 -164
  181. package/styles/components/progress-bar.less +0 -117
  182. package/styles/components/radio.less +0 -59
  183. package/styles/components/status.less +0 -40
  184. package/styles/components/switch.less +0 -103
  185. package/styles/components/toast.less +0 -44
@@ -1,131 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Chip
5
- * @selector [tuiChip]
6
- *
7
- * @description
8
- * A chip component that can be used on it's own or on buttons/links/inputs
9
- *
10
- * @attributes
11
- * data-size — size (default: 's') ('xxs' | 'xs' | 's' | 'm')
12
- *
13
- * @example
14
- * <span tuiChip>Sale</span>
15
- *
16
- * @see-also
17
- * Icons, Appearance, Badge, Block
18
- */
19
- [tuiChip]:where(*&) {
20
- --t-gap: 0.125rem;
21
- --t-margin: -0.125rem;
22
- --t-icon-size: 1rem;
23
- --t-padding: 0 0.625rem;
24
- --t-size: var(--tui-height-s);
25
-
26
- .button-base();
27
-
28
- font: var(--tui-font-body-s);
29
- border-radius: var(--tui-radius-m);
30
- padding: var(--t-padding);
31
- block-size: var(--t-size);
32
- inline-size: fit-content;
33
- max-inline-size: 100%;
34
- isolation: isolate;
35
-
36
- .interactive({
37
- cursor: pointer;
38
- });
39
-
40
- > tui-icon,
41
- &[tuiIcons]::before,
42
- &[tuiIcons]::after {
43
- font-size: var(--t-icon-size) !important;
44
- }
45
-
46
- & > [tuiIconButton] {
47
- margin: -0.375rem;
48
- }
49
-
50
- > [tuiBadge] {
51
- margin-inline-end: 0;
52
- }
53
-
54
- &[data-size='xxs'] {
55
- // StackBlitz changes "0rem" to "0" breaking calc
56
- --t-gap: ~'0rem';
57
- --t-padding: 0 0.25rem;
58
- --t-size: 1rem;
59
- --t-icon-size: 0.75rem;
60
-
61
- font: var(--tui-font-body-xs);
62
- border-radius: var(--tui-radius-xs);
63
-
64
- & > [tuiIconButton] {
65
- margin: -0.5rem;
66
- transform: scale(0.75);
67
- }
68
- }
69
-
70
- &[data-size='xs'] {
71
- --t-padding: 0 0.375rem;
72
- --t-size: var(--tui-height-xs);
73
-
74
- border-radius: var(--tui-radius-xs);
75
-
76
- & > [tuiIconButton] {
77
- margin: -0.375rem;
78
- }
79
- }
80
-
81
- &[data-size='m'] {
82
- --t-margin: -0.375rem;
83
- --t-icon-size: 1.5rem;
84
- --t-padding: 0 1rem;
85
- --t-size: var(--tui-height-m);
86
-
87
- font: var(--tui-font-body-m);
88
-
89
- & > [tuiIconButton] {
90
- margin: -0.75rem;
91
- }
92
-
93
- & > [tuiBadge] {
94
- margin-inline-start: -0.375rem;
95
- }
96
- }
97
-
98
- & > img,
99
- [tuiAvatar] {
100
- inline-size: 1.5rem;
101
- margin-inline-start: -0.375rem;
102
- }
103
-
104
- & > [tuiFade] {
105
- &:first-of-type {
106
- flex: 1 0 30%;
107
- max-inline-size: fit-content;
108
- }
109
-
110
- &:last-of-type {
111
- flex: 0 1 auto;
112
- }
113
- }
114
-
115
- & > input[tuiChip] {
116
- .fullsize();
117
-
118
- margin: 0;
119
-
120
- &[type='checkbox'],
121
- &[type='radio'] {
122
- z-index: -1;
123
- }
124
- }
125
- }
126
-
127
- input[tuiChip]:where(*&) {
128
- .interactive({
129
- cursor: text;
130
- });
131
- }
@@ -1,64 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Comment
5
- * @selector [tuiComment]
6
- *
7
- * @description
8
- * A comment bubble with an arrow
9
- *
10
- * @attributes
11
- * data-direction — arrow direction (default: 'top') ('top' | 'bottom' | 'start' | 'end')
12
- *
13
- * @example
14
- * <label data-direction="top" tuiComment>Amazing product!</label>
15
- */
16
- [tuiComment]:where(*&) {
17
- position: relative;
18
- display: inline-flex;
19
- font: var(--tui-font-body-m);
20
- color: #fff;
21
- padding: 0.5rem 0.75rem;
22
- min-inline-size: 2.5rem;
23
- border-radius: 1rem;
24
- line-height: 1.125rem;
25
- background: var(--tui-background-accent-2);
26
- align-items: center;
27
- justify-content: center;
28
-
29
- &::before {
30
- content: '';
31
- position: absolute;
32
- inset-block-end: 100%;
33
- inset-inline-start: 50%;
34
- inline-size: 1.5625rem;
35
- block-size: 0.5625rem;
36
- background: inherit;
37
- transform: translate(calc(-50% * var(--tui-inline)));
38
- mask: url("data:image/svg+xml,%3Csvg width='25' height='9' viewBox='0 0 25 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.23309 6.67813L7.56191 3.83178C9.4546 1.5185 10.4009 0.361853 11.5998 0.10488C12.0834 0.00123882 12.5834 0.00123882 13.0669 0.10488C14.2658 0.361853 15.2121 1.5185 17.1048 3.83178L19.4337 6.67813C20.636 8.14771 22.4346 9 24.3334 9H0.333374C2.23217 9 4.0307 8.14772 5.23309 6.67813Z' fill='black'/%3E%3C/svg%3E%0A")
39
- no-repeat;
40
- }
41
-
42
- &[data-direction='bottom'] {
43
- &::before {
44
- inset-block: 100% auto;
45
- transform: translate(calc(-50% * var(--tui-inline))) rotate(180deg);
46
- }
47
- }
48
-
49
- &[data-direction='start'] {
50
- &::before {
51
- inset-block: 50% 100%;
52
- inset-inline: auto 100%;
53
- transform: translate(calc(0.785rem * var(--tui-inline)), -50%) rotate(calc(-90deg * var(--tui-inline)));
54
- }
55
- }
56
-
57
- &[data-direction='end'] {
58
- &::before {
59
- inset-block: 50% 100%;
60
- inset-inline: 100% auto;
61
- transform: translate(calc(-0.785rem * var(--tui-inline)), -50%) rotate(calc(90deg * var(--tui-inline)));
62
- }
63
- }
64
- }
@@ -1,49 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Compass
5
- * @selector tui-compass
6
- *
7
- * @description
8
- * A compass arrow for the map
9
- *
10
- * @vars
11
- * --t-degrees — rotation
12
- *
13
- * @example
14
- * <tui-compass style="--t-degrees: 45deg"></tui-compass>
15
- *
16
- * @see-also
17
- * Pin
18
- */
19
- tui-compass:where(*&) {
20
- position: relative;
21
- display: inline-block;
22
- color: var(--tui-background-accent-1);
23
- border-radius: 50%;
24
- inline-size: 1rem;
25
- block-size: 1rem;
26
- border: 0.1875rem solid var(--tui-background-base);
27
- box-shadow: 0 0 0.1875rem rgba(0, 0, 0, 0.3);
28
- transform-style: preserve-3d; // z-index doesn't work on pseudo-element
29
-
30
- &::before {
31
- content: '';
32
- position: absolute;
33
- top: 0;
34
- left: 0.125rem;
35
- mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"><path d="M0 8.99993C4 8 8 8 12 8.99993C9.91509 5.73239 8.5 3 6 0C3.5 3 2 5.5 0 8.99993Z"/></svg>');
36
- transform: rotate(var(--t-degrees)) translateY(-0.625rem) translateZ(-1rem);
37
- inline-size: 0.75rem;
38
- block-size: 1rem;
39
- background: currentColor;
40
- }
41
-
42
- &::after {
43
- .fullsize(absolute, inset);
44
-
45
- content: '';
46
- border-radius: inherit;
47
- background: currentColor linear-gradient(-45deg, rgba(0, 0, 0, 0.2), transparent);
48
- }
49
- }
@@ -1,67 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Like
5
- * @selector [tuiLike]
6
- *
7
- * @description
8
- * A stylized input type="checkbox"
9
- *
10
- * @attributes
11
- * data-size — size (default: 'm') ('s' | 'm')
12
- *
13
- * @vars
14
- * --t-icon-color — custom color for `:checked` state
15
- * --t-icon-start — default state icon
16
- * --t-icon-end — checkmark icon
17
- *
18
- * @example
19
- * <input tuiLike tuiIcons tuiAppearance data-appearance="secondary" />
20
- *
21
- * @see-also
22
- * Checkbox, Switch, Radio, Appearance
23
- */
24
- [tuiLike]:where(*&) {
25
- inline-size: 1em;
26
- block-size: 1em;
27
- font-size: var(--tui-height-m);
28
- border-radius: 100%;
29
- cursor: pointer;
30
- margin: 0;
31
- flex-shrink: 0;
32
-
33
- &::before,
34
- &::after {
35
- .fullsize();
36
-
37
- font-size: 1.25rem;
38
- transition-property: transform, opacity;
39
- }
40
-
41
- &::after {
42
- opacity: 0;
43
- color: var(--t-icon-color, inherit);
44
- transform: scale(0);
45
- }
46
-
47
- &:checked {
48
- &::before {
49
- opacity: 0;
50
- }
51
-
52
- &::after {
53
- opacity: 1;
54
- transform: scale(1);
55
- transition-timing-function: cubic-bezier(0.2, 0.6, 0.5, 1.8), ease-in-out;
56
- }
57
- }
58
-
59
- &[data-size='s'] {
60
- font-size: var(--tui-height-s);
61
-
62
- &::before,
63
- &::after {
64
- font-size: 1rem;
65
- }
66
- }
67
- }
@@ -1,33 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Message
5
- * @selector [tuiMessage]
6
- *
7
- * @description
8
- * A message component that can be used on buttons/links/inputs
9
- *
10
- * @example
11
- * <span tuiMessage>Message text</span>
12
- *
13
- * @see-also
14
- * Chip, Badge, Block
15
- */
16
- [tuiMessage]:where(*&) {
17
- display: inline-flex;
18
- padding: 0.5rem 0.625rem;
19
- min-block-size: 2.25rem;
20
- block-size: auto;
21
- box-sizing: border-box;
22
- inline-size: fit-content;
23
- isolation: isolate;
24
- white-space: nowrap;
25
- text-align: start;
26
- font: var(--tui-font-ui-m);
27
- border-radius: var(--tui-radius-l);
28
-
29
- > [tuiLink] {
30
- color: inherit !important;
31
- text-decoration: underline solid !important;
32
- }
33
- }
@@ -1,164 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Pin
5
- * @selector tui-pin,[tuiPin]
6
- *
7
- * @description
8
- * A toggleable pin to be used on maps
9
- *
10
- * @example
11
- * <button tuiPin><img src="avatar.jpg" /></button>
12
- *
13
- * @see-also
14
- * Compass
15
- */
16
- [tuiPin]:where(*&) {
17
- --t-size: 2rem;
18
-
19
- .transition(~'width, height, border, margin');
20
- .button-clear();
21
-
22
- position: relative;
23
- display: flex;
24
- inline-size: var(--t-size);
25
- block-size: var(--t-size);
26
- align-items: stretch;
27
- flex-direction: column;
28
- justify-content: center;
29
- text-align: center;
30
- border-radius: 100%;
31
- font: var(--tui-font-body-s);
32
- font-weight: bold;
33
- box-sizing: border-box;
34
- color: var(--tui-text-primary-on-accent-2);
35
- background: var(--tui-background-accent-2);
36
- box-shadow: 0 0 0 0.125rem var(--tui-background-elevation-2);
37
- border: 0 solid var(--tui-background-accent-2);
38
- transform: translate(-50%, -50%);
39
-
40
- .interactive({
41
- cursor: pointer;
42
- });
43
-
44
- &:empty {
45
- --t-size: 0.75rem;
46
-
47
- &::before {
48
- display: none;
49
- }
50
- }
51
-
52
- > input {
53
- .fullsize();
54
-
55
- appearance: none;
56
- border-radius: 100%;
57
- }
58
-
59
- > img {
60
- max-block-size: 100%;
61
- box-sizing: border-box;
62
- border-radius: 100%;
63
- background: var(--tui-background-base);
64
- }
65
-
66
- > tui-icon {
67
- .transition(~'width, height');
68
-
69
- font-size: 1.25rem;
70
- align-self: center;
71
- }
72
-
73
- &:has(:checked) {
74
- --t-size: 3.5rem;
75
-
76
- font: var(--tui-font-body-m);
77
- font-weight: bold;
78
- border-width: 0;
79
- margin-block-start: -2.75rem;
80
-
81
- > img {
82
- padding: 0.125rem;
83
- }
84
-
85
- > tui-icon {
86
- font-size: 2.125rem;
87
- }
88
-
89
- &::before {
90
- transform: scale(0.99) translate(-1.875rem, -1.875rem);
91
- opacity: 1;
92
- }
93
-
94
- &::after {
95
- top: 4.5rem;
96
- opacity: 1;
97
- }
98
- }
99
-
100
- // TODO: Fallback until Safari 15.4
101
- &._open {
102
- --t-size: 3.5rem;
103
-
104
- font: var(--tui-font-body-m);
105
- font-weight: bold;
106
- border-width: 0;
107
- margin-block-start: -2.75rem;
108
-
109
- > img {
110
- padding: 0.125rem;
111
- }
112
-
113
- > tui-icon {
114
- font-size: 2.125rem;
115
- }
116
-
117
- &::before {
118
- transform: scale(0.99) translate(-1.875rem, -1.875rem);
119
- opacity: 1;
120
- }
121
-
122
- &::after {
123
- top: 4.5rem;
124
- opacity: 1;
125
- }
126
- }
127
-
128
- &::before {
129
- .transition(~'transform, opacity');
130
-
131
- content: '';
132
- position: absolute;
133
- top: 50%;
134
- left: 50%;
135
- right: -0.25rem;
136
- bottom: -0.625rem;
137
- box-sizing: border-box;
138
- border-width: 2.2rem 2rem;
139
- border-style: solid;
140
- border-color: inherit;
141
- opacity: 0;
142
- transform: scale(0.57) translate(-1.875rem, -1.875rem);
143
- transform-origin: top left;
144
- pointer-events: none;
145
- mask: url('data:image/svg+xml,<svg width="60" height="66" viewBox="0 0 60 66" xmlns="http://www.w3.org/2000/svg"><path d="M0 30.0917C0 13.4726 13.4313 0 30.0002 0C46.5687 0 60 13.4726 60 30.0917C60 44.2105 50.4927 56.0529 37.4162 59.2986C32.5552 60.5551 31.0408 65.275 31.0408 65.275C30.8892 65.697 30.4909 66 30.0183 66C29.5453 66 29.147 65.697 28.9938 65.275C28.9938 65.275 27.481 60.5551 22.6199 59.2986C9.46433 56.0206 0 43.5901 0 30.0917ZM30 57.75C45.3259 57.75 57.75 45.3259 57.75 30C57.75 14.6741 45.3259 2.25 30 2.25C14.6741 2.25 2.25 14.6741 2.25 30C2.25 45.3259 14.6741 57.75 30 57.75Z" /></svg>')
146
- no-repeat;
147
- }
148
-
149
- &::after {
150
- .transition(~'top, opacity');
151
-
152
- content: '';
153
- position: absolute;
154
- top: 50%;
155
- left: 50%;
156
- border: 0.1875rem solid currentColor;
157
- border-color: inherit;
158
- border-radius: 100%;
159
- box-sizing: border-box;
160
- box-shadow: inherit;
161
- transform: translate(-50%, -50%);
162
- opacity: 0;
163
- }
164
- }
@@ -1,117 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name ProgressBar
5
- * @selector [tuiProgressBar]
6
- *
7
- * @description
8
- * A stylized native progress element
9
- *
10
- * @attributes
11
- * data-size — size (default: 'm') ('xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' )
12
- *
13
- * @example
14
- * <progress tuiProgressBar value="33"></progress>
15
- */
16
- .clearProgress() {
17
- -webkit-appearance: none;
18
- -moz-appearance: none;
19
- appearance: none;
20
- border: none;
21
- }
22
-
23
- /* used to style inner value bar */
24
- .progressValue(@ruleset) {
25
- &::-webkit-progress-value {
26
- @ruleset(); // Chromium Edge | Chrome | Opera | Safari
27
- }
28
-
29
- &::-moz-progress-bar {
30
- @ruleset(); // Mozilla
31
- }
32
- }
33
-
34
- /*
35
- * Edge and IE animate the progress bar right out of the box
36
- * Chrome | Opera | Safari animation is controlled by its mixins
37
- * No possibility for firefox animation (https://snook.ca/archives/html_and_css/animating-progress)
38
- */
39
- .progressAnimation() {
40
- &::-webkit-progress-value {
41
- transition: inline-size var(--tui-duration) linear;
42
- }
43
- }
44
-
45
- @keyframes tuiIndeterminateAnimation {
46
- 50% {
47
- background-position: left;
48
- }
49
- }
50
-
51
- [tuiProgressBar]:where(*&) {
52
- @track-color: var(--tui-background-neutral-2);
53
- @progress-color: var(--tui-progress-color, currentColor);
54
-
55
- .clearProgress();
56
- .progressAnimation();
57
- .progressValue({ background: @progress-color; border-radius: inherit });
58
-
59
- --t-height: 0.75rem;
60
-
61
- display: block;
62
- inline-size: 100%;
63
- block-size: var(--t-height);
64
- color: var(--tui-background-accent-1);
65
- background: @track-color;
66
- clip-path: inset(0 0.5px round var(--tui-radius-m)); // 0.5px is a hack to prevent jagged edges on low dpi screens
67
- overflow: hidden;
68
- border-radius: 1rem;
69
- flex-shrink: 0;
70
-
71
- &[data-size='xxs'] {
72
- --t-height: 0.125rem;
73
- }
74
-
75
- &[data-size='xs'] {
76
- --t-height: 0.25rem;
77
- }
78
-
79
- &[data-size='s'] {
80
- --t-height: 0.5rem;
81
- }
82
-
83
- &[data-size='l'] {
84
- --t-height: 1rem;
85
- }
86
-
87
- &[data-size='xl'] {
88
- --t-height: 1.25rem;
89
- }
90
-
91
- &[data-size='xxl'] {
92
- --t-height: 1.5rem;
93
- }
94
-
95
- &:indeterminate {
96
- .progressValue({ background: transparent });
97
-
98
- background: linear-gradient(to right, @track-color 0 45%, @progress-color 45% 55%, @track-color 55% 100%) right;
99
- background-size: 225%;
100
- animation: tuiIndeterminateAnimation 3s infinite ease-in-out;
101
- }
102
-
103
- &::-webkit-progress-inner-element {
104
- border-radius: inherit;
105
- }
106
-
107
- &::-webkit-progress-bar {
108
- background: transparent;
109
- border-radius: inherit;
110
- }
111
-
112
- label[tuiProgressLabel] &:not(:first-child) {
113
- .fullsize();
114
-
115
- background: transparent;
116
- }
117
- }
@@ -1,59 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Radio
5
- * @selector [tuiRadio]
6
- *
7
- * @description
8
- * A stylized input type="radio"
9
- *
10
- * @attributes
11
- * data-size — size (default: 'm') ('s' | 'm')
12
- *
13
- * @example
14
- * <input type="radio" tuiRadio />
15
- *
16
- * @see-also
17
- * Checkbox, Switch, Appearance
18
- */
19
- [tuiRadio]:where(*&) {
20
- --t-size: 1.5rem;
21
-
22
- .transition(~'background, box-shadow');
23
-
24
- inline-size: var(--t-size);
25
- block-size: var(--t-size);
26
- cursor: pointer;
27
- margin: 0;
28
- flex-shrink: 0;
29
- border-radius: 100%;
30
- color: var(--tui-text-primary-on-accent-1);
31
-
32
- &:disabled._readonly._readonly {
33
- opacity: 1;
34
- }
35
-
36
- &::before {
37
- .fullsize(absolute, inset);
38
-
39
- content: '';
40
- margin: auto;
41
- border-radius: 100%;
42
- background: currentColor;
43
- transform: scale(0);
44
- transition-property: transform;
45
- }
46
-
47
- &:checked::before {
48
- transform: scale(0.5);
49
- }
50
-
51
- &[data-size='s'] {
52
- --t-size: 1rem;
53
- }
54
-
55
- &:invalid:not([data-mode]),
56
- &[data-mode~='invalid'] {
57
- color: #fff;
58
- }
59
- }