@taiga-ui/kit 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 (191) 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/button-copy.component.d.ts +17 -0
  4. package/components/copy/copy.d.ts +2 -1
  5. package/components/copy/copy.directive.d.ts +5 -2
  6. package/components/copy/copy.options.d.ts +1 -3
  7. package/components/copy/index.d.ts +1 -0
  8. package/components/counter/counter.component.d.ts +17 -0
  9. package/components/counter/counter.options.d.ts +14 -0
  10. package/components/counter/index.d.ts +2 -0
  11. package/components/index.d.ts +2 -3
  12. package/components/input-chip/input-chip.component.d.ts +5 -0
  13. package/components/input-chip/input-chip.directive.d.ts +1 -1
  14. package/components/input-date/input-date.directive.d.ts +2 -2
  15. package/components/input-date/input-date.options.d.ts +2 -4
  16. package/components/input-date-multi/input-date-multi.directive.d.ts +1 -1
  17. package/components/input-month/input-month.directive.d.ts +1 -1
  18. package/components/input-month/input-month.options.d.ts +1 -7
  19. package/components/input-month-range/input-month-range.directive.d.ts +1 -1
  20. package/components/input-month-range/input-month-range.options.d.ts +1 -3
  21. package/components/input-number/index.d.ts +1 -0
  22. package/components/input-number/input-number.directive.d.ts +1 -0
  23. package/components/input-number/step/input-number-step.component.d.ts +3 -5
  24. package/components/input-number/step/input-number-step.service.d.ts +12 -0
  25. package/components/input-slider/input-slider.d.ts +1 -1
  26. package/components/input-time/input-time.directive.d.ts +1 -1
  27. package/components/input-time/input-time.options.d.ts +1 -3
  28. package/components/input-year/input-year.directive.d.ts +1 -1
  29. package/components/line-clamp/line-clamp-box.component.d.ts +2 -0
  30. package/components/line-clamp/line-clamp.component.d.ts +2 -0
  31. package/components/multi-select/multi-select-group/multi-select-group.directive.d.ts +1 -0
  32. package/components/range/range.component.d.ts +2 -2
  33. package/components/select/select-option/select-option.component.d.ts +1 -1
  34. package/components/switch/switch.component.d.ts +1 -1
  35. package/components/switch/switch.options.d.ts +1 -1
  36. package/components/timeline/index.d.ts +3 -0
  37. package/components/timeline/timeline-item.component.d.ts +14 -0
  38. package/components/timeline/timeline.component.d.ts +16 -0
  39. package/components/timeline/timeline.d.ts +3 -0
  40. package/directives/password/password.options.d.ts +2 -4
  41. package/fesm2022/taiga-ui-kit-components-accordion.mjs +2 -2
  42. package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
  43. package/fesm2022/taiga-ui-kit-components-action-bar.mjs +2 -2
  44. package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
  45. package/fesm2022/taiga-ui-kit-components-avatar.mjs +4 -4
  46. package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
  47. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +2 -2
  48. package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
  49. package/fesm2022/taiga-ui-kit-components-badge.mjs +2 -2
  50. package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
  51. package/fesm2022/taiga-ui-kit-components-block.mjs +2 -2
  52. package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
  53. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +2 -2
  54. package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
  55. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +24 -14
  56. package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +15 -17
  58. package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-kit-components-chip.mjs +3 -3
  60. package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-kit-components-comment.mjs +3 -3
  62. package/fesm2022/taiga-ui-kit-components-comment.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-kit-components-compass.mjs +2 -2
  64. package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-kit-components-copy.mjs +87 -24
  66. package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-kit-components-counter.mjs +65 -0
  68. package/fesm2022/taiga-ui-kit-components-counter.mjs.map +1 -0
  69. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +2 -2
  70. package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
  71. package/fesm2022/taiga-ui-kit-components-files.mjs +4 -4
  72. package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
  73. package/fesm2022/taiga-ui-kit-components-input-chip.mjs +16 -10
  74. package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
  75. package/fesm2022/taiga-ui-kit-components-input-color.mjs +3 -3
  76. package/fesm2022/taiga-ui-kit-components-input-color.mjs.map +1 -1
  77. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +6 -5
  78. package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
  79. package/fesm2022/taiga-ui-kit-components-input-date.mjs +9 -7
  80. package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
  81. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -2
  82. package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
  83. package/fesm2022/taiga-ui-kit-components-input-month.mjs +4 -10
  84. package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
  85. package/fesm2022/taiga-ui-kit-components-input-number.mjs +44 -23
  86. package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
  87. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +2 -2
  88. package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
  89. package/fesm2022/taiga-ui-kit-components-input-phone.mjs +2 -2
  90. package/fesm2022/taiga-ui-kit-components-input-phone.mjs.map +1 -1
  91. package/fesm2022/taiga-ui-kit-components-input-pin.mjs +2 -2
  92. package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
  93. package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-kit-components-input-slider.mjs +1 -1
  95. package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-kit-components-input-time.mjs +4 -3
  97. package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-kit-components-input-year.mjs +8 -6
  99. package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-kit-components-like.mjs +2 -2
  101. package/fesm2022/taiga-ui-kit-components-like.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +16 -5
  103. package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-kit-components-message.mjs +2 -2
  105. package/fesm2022/taiga-ui-kit-components-message.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-kit-components-multi-select.mjs +15 -8
  107. package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +2 -2
  109. package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-kit-components-pagination.mjs +2 -2
  111. package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
  112. package/fesm2022/taiga-ui-kit-components-pin.mjs +3 -3
  113. package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
  114. package/fesm2022/taiga-ui-kit-components-preview.mjs +8 -8
  115. package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
  116. package/fesm2022/taiga-ui-kit-components-progress.mjs +4 -4
  117. package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
  118. package/fesm2022/taiga-ui-kit-components-push.mjs +2 -2
  119. package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
  120. package/fesm2022/taiga-ui-kit-components-radio-list.mjs +4 -4
  121. package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
  122. package/fesm2022/taiga-ui-kit-components-range.mjs +17 -14
  123. package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
  124. package/fesm2022/taiga-ui-kit-components-segmented.mjs +3 -3
  125. package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-kit-components-select.mjs +11 -12
  127. package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-kit-components-status.mjs +3 -3
  129. package/fesm2022/taiga-ui-kit-components-status.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-kit-components-stepper.mjs +2 -2
  131. package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-kit-components-switch.mjs +3 -3
  133. package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
  134. package/fesm2022/taiga-ui-kit-components-tabs.mjs +16 -11
  135. package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
  136. package/fesm2022/taiga-ui-kit-components-textarea.mjs +4 -4
  137. package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
  138. package/fesm2022/taiga-ui-kit-components-timeline.mjs +68 -0
  139. package/fesm2022/taiga-ui-kit-components-timeline.mjs.map +1 -0
  140. package/fesm2022/taiga-ui-kit-components-toast.mjs +2 -2
  141. package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
  142. package/fesm2022/taiga-ui-kit-components.mjs +2 -3
  143. package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
  144. package/fesm2022/taiga-ui-kit-directives-button-group.mjs +2 -2
  145. package/fesm2022/taiga-ui-kit-directives-button-group.mjs.map +1 -1
  146. package/fesm2022/taiga-ui-kit-directives-chevron.mjs +2 -2
  147. package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
  148. package/fesm2022/taiga-ui-kit-directives-fade.mjs +2 -2
  149. package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
  150. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +1 -1
  151. package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
  152. package/fesm2022/taiga-ui-kit-directives-password.mjs +1 -7
  153. package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
  154. package/package.json +36 -41
  155. package/tokens/i18n.d.ts +0 -1
  156. package/components/checkbox/checkbox.component.d.ts +0 -10
  157. package/components/checkbox/checkbox.options.d.ts +0 -10
  158. package/components/checkbox/index.d.ts +0 -2
  159. package/components/radio/index.d.ts +0 -4
  160. package/components/radio/radio.component.d.ts +0 -18
  161. package/components/radio/radio.d.ts +0 -3
  162. package/components/radio/radio.directive.d.ts +0 -8
  163. package/components/radio/radio.options.d.ts +0 -7
  164. package/components/slider/helpers/key-steps.d.ts +0 -27
  165. package/components/slider/helpers/slider-key-steps.directive.d.ts +0 -32
  166. package/components/slider/helpers/slider-readonly.directive.d.ts +0 -15
  167. package/components/slider/helpers/slider-thumb-label.component.d.ts +0 -13
  168. package/components/slider/index.d.ts +0 -6
  169. package/components/slider/slider.component.d.ts +0 -22
  170. package/components/slider/slider.d.ts +0 -5
  171. package/fesm2022/taiga-ui-kit-components-checkbox.mjs +0 -37
  172. package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +0 -1
  173. package/fesm2022/taiga-ui-kit-components-radio.mjs +0 -91
  174. package/fesm2022/taiga-ui-kit-components-radio.mjs.map +0 -1
  175. package/fesm2022/taiga-ui-kit-components-slider.mjs +0 -337
  176. package/fesm2022/taiga-ui-kit-components-slider.mjs.map +0 -1
  177. package/styles/components/avatar.less +0 -188
  178. package/styles/components/badge.less +0 -127
  179. package/styles/components/block.less +0 -118
  180. package/styles/components/checkbox.less +0 -84
  181. package/styles/components/chip.less +0 -131
  182. package/styles/components/comment.less +0 -64
  183. package/styles/components/compass.less +0 -49
  184. package/styles/components/like.less +0 -67
  185. package/styles/components/message.less +0 -33
  186. package/styles/components/pin.less +0 -164
  187. package/styles/components/progress-bar.less +0 -117
  188. package/styles/components/radio.less +0 -59
  189. package/styles/components/status.less +0 -40
  190. package/styles/components/switch.less +0 -103
  191. package/styles/components/toast.less +0 -44
@@ -1,127 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Badge
5
- * @selector [tuiBadge]
6
- *
7
- * @description
8
- * A basic badge that can be used on it's own or on buttons/links
9
- *
10
- * @attributes
11
- * data-size — size (default: 'l') ('s' | 'm' | 'l' | 'xl')
12
- *
13
- * @example
14
- * <div[tuiBadge]>99+</div>
15
- *
16
- * @see-also
17
- * Icons, Appearance, Chip, Block
18
- */
19
- [tuiBadge]:where(*&) {
20
- --t-icon-size: 1rem;
21
- --t-padding: 0 0.5rem;
22
- --t-size: var(--tui-height-xs);
23
- --t-margin: -0.25rem;
24
-
25
- .button-base();
26
-
27
- border-radius: 6rem;
28
- justify-content: center;
29
- background: #959595;
30
- color: var(--tui-background-base);
31
- padding: var(--t-padding);
32
- block-size: var(--t-size);
33
- min-inline-size: var(--t-size);
34
- inline-size: fit-content;
35
- font: var(--tui-font-body-s);
36
-
37
- &[tuiStatus]::before {
38
- inline-size: 0.375rem;
39
- block-size: 0.375rem;
40
- margin: 0;
41
- }
42
-
43
- > tui-icon,
44
- &[tuiIcons]::before,
45
- &[tuiIcons]::after {
46
- font-size: var(--t-icon-size) !important;
47
- }
48
-
49
- &[data-appearance='error'], /* TODO @deprecated remove in v5 */
50
- &[data-appearance='negative'] {
51
- --t-status: var(--tui-status-negative);
52
- }
53
-
54
- &[data-appearance='success'], /* TODO @deprecated remove in v5 */
55
- &[data-appearance='positive'] {
56
- --t-status: var(--tui-status-positive);
57
- }
58
-
59
- &[data-appearance='warning'] {
60
- --t-status: var(--tui-status-warning);
61
- }
62
-
63
- &[data-appearance='info'] {
64
- --t-status: var(--tui-status-info);
65
- }
66
-
67
- &[data-appearance='neutral'] {
68
- --t-status: var(--tui-status-neutral);
69
- }
70
-
71
- &[data-size='s'] {
72
- --t-padding: 0 0.3125rem;
73
- --t-size: 1rem;
74
- --t-icon-size: 0.625rem;
75
- --t-margin: -0.125rem;
76
-
77
- font: var(--tui-font-body-xs);
78
-
79
- &[tuiStatus]::before {
80
- inline-size: 0.25rem;
81
- block-size: 0.25rem;
82
- margin-inline-end: -0.125rem;
83
- }
84
- }
85
-
86
- &[data-size='m'] {
87
- --t-padding: 0 0.375rem;
88
- --t-size: 1.25rem;
89
- --t-icon-size: 0.75rem;
90
- --t-margin: -0.125rem;
91
- }
92
-
93
- &[data-size='xl'] {
94
- --t-margin: -0.25rem;
95
- --t-padding: 0 0.75rem;
96
- --t-size: var(--tui-height-s);
97
-
98
- font: var(--tui-font-body-m);
99
-
100
- &[tuiStatus]::before {
101
- inline-size: 0.5rem;
102
- block-size: 0.5rem;
103
- margin-inline-end: -0.125rem;
104
- }
105
- }
106
-
107
- &[tuiAppearance][data-appearance='error'], /* TODO @deprecated remove in v5 */
108
- &[tuiAppearance][data-appearance='success'], /* TODO @deprecated remove in v5 */
109
- &[tuiAppearance][data-appearance='negative'],
110
- &[tuiAppearance][data-appearance='positive'],
111
- &[tuiAppearance][data-appearance='warning'],
112
- &[tuiAppearance][data-appearance='info'],
113
- &[tuiAppearance][data-appearance='neutral'] {
114
- color: var(--tui-text-primary);
115
- }
116
- }
117
-
118
- img[tuiBadge]:where(*&) {
119
- padding: 0;
120
- inline-size: var(--t-size);
121
- }
122
-
123
- tui-icon[tuiBadge]:where(*&)::before {
124
- .fullsize();
125
-
126
- --t-margin: 0;
127
- }
@@ -1,118 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Block
5
- * @selector [tuiBlock]
6
- *
7
- * @description
8
- * A general purpose container, typically used for labels and inputs
9
- *
10
- * @attributes
11
- * data-size — size (default: 'l') ('s' | 'm' | 'l')
12
- *
13
- * @example
14
- * <label tuiBlock>
15
- * Click me
16
- * <input tuiBlock />
17
- * </label>
18
- *
19
- * @see-also
20
- * Icons, Appearance, Link, Button
21
- */
22
- [tuiBlock]:where(*&) {
23
- --t-height: var(--tui-height-l);
24
- --t-radius: var(--tui-radius-l);
25
-
26
- position: relative;
27
- display: inline-flex;
28
- gap: 0.75rem;
29
- color: var(--tui-text-primary);
30
- border-radius: var(--t-radius);
31
- min-block-size: var(--t-height);
32
- margin: 0;
33
- box-sizing: border-box;
34
- cursor: pointer;
35
- overflow: hidden;
36
- font: var(--tui-font-body-m);
37
- padding: var(--tui-padding-l);
38
- isolation: isolate;
39
-
40
- &[data-size='s'] {
41
- gap: 0.5rem;
42
- font: var(--tui-font-ui-s);
43
- padding: 0.5rem;
44
-
45
- --t-height: var(--tui-height-s);
46
- --t-radius: var(--tui-radius-m);
47
-
48
- [tuiSubtitle] {
49
- font: var(--tui-font-ui-xs);
50
- }
51
-
52
- [tuiTooltip] {
53
- margin: 0 0.125rem;
54
- }
55
- }
56
-
57
- &[data-size='m'] {
58
- gap: 0.625rem;
59
- font: var(--tui-font-ui-m);
60
- padding: var(--tui-padding-m);
61
-
62
- --t-height: var(--tui-height-m);
63
- --t-radius: var(--tui-radius-m);
64
-
65
- input:not([tuiBlock]) {
66
- margin: 0.125rem;
67
- }
68
-
69
- [tuiTooltip] {
70
- margin: 0.125rem;
71
- }
72
- }
73
-
74
- &._disabled {
75
- pointer-events: none;
76
- opacity: var(--tui-disabled-opacity);
77
-
78
- :focus {
79
- visibility: hidden;
80
- }
81
- }
82
-
83
- &[data-appearance=''] {
84
- justify-content: center;
85
- }
86
-
87
- input[tuiBlock] {
88
- .fullsize();
89
-
90
- z-index: -1;
91
- min-block-size: 0;
92
- pointer-events: none;
93
- border-radius: inherit;
94
- padding: 0;
95
- }
96
-
97
- [tuiAvatar] {
98
- margin: -0.25rem;
99
- }
100
-
101
- [tuiTitle] {
102
- flex: 1;
103
- gap: 0;
104
- font: inherit;
105
- color: var(--tui-text-primary);
106
- }
107
-
108
- [tuiSubtitle] {
109
- color: var(--tui-text-secondary);
110
- }
111
-
112
- [tuiTooltip] {
113
- vertical-align: bottom;
114
- margin: 0.25rem;
115
- font-size: 1rem;
116
- border: none;
117
- }
118
- }
@@ -1,84 +0,0 @@
1
- @import '@taiga-ui/core/styles/taiga-ui-local.less';
2
-
3
- /**
4
- * @name Checkbox
5
- * @selector [tuiCheckbox]
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-start — checkmark icon
15
- * --t-icon-end — indeterminate state icon
16
- *
17
- * @example
18
- * <input type="checkbox" tuiCheckbox tuiIcons tuiAppearance data-appearance='secondary' />
19
- *
20
- * @see-also
21
- * Switch, Radio, Appearance
22
- */
23
- [tuiCheckbox]:where(*&) {
24
- --t-size: 1.5rem;
25
- --t-radius: var(--tui-radius-s);
26
-
27
- inline-size: var(--t-size);
28
- block-size: var(--t-size);
29
- border-radius: var(--t-radius);
30
- cursor: pointer;
31
- margin: 0;
32
- flex-shrink: 0;
33
-
34
- &::before {
35
- position: absolute;
36
- block-size: 100%;
37
- inline-size: 100%;
38
- font-size: 1rem;
39
- mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg"></svg>');
40
- transform: scale(0);
41
- transition:
42
- transform var(--tui-duration) ease-in-out,
43
- mask 0s var(--tui-duration) ease-in-out;
44
- }
45
-
46
- &::after {
47
- display: none;
48
- }
49
-
50
- &:disabled._readonly._readonly {
51
- opacity: 1;
52
- pointer-events: none;
53
- }
54
-
55
- &:checked,
56
- &:indeterminate {
57
- &::before {
58
- mask-image: var(--t-icon-start);
59
- transform: scale(1);
60
- transition:
61
- transform var(--tui-duration) ease-in-out,
62
- mask 0s ease-in-out;
63
- transition-duration: inherit;
64
- }
65
- }
66
-
67
- &:indeterminate::before {
68
- mask-image: var(--t-icon-end);
69
- }
70
-
71
- &[data-size='s'] {
72
- --t-size: 1rem;
73
- --t-radius: var(--tui-radius-xs);
74
-
75
- &::before {
76
- font-size: 0.875rem;
77
- }
78
- }
79
-
80
- &:invalid:not([data-mode]),
81
- &[data-mode~='invalid'] {
82
- color: #fff;
83
- }
84
- }
@@ -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
- }