@taiga-ui/core 2.20.0 → 2.24.0

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 (456) hide show
  1. package/README.md +7 -3
  2. package/abstract/abstract-hint.d.ts +3 -1
  3. package/abstract/taiga-ui-core-abstract.metadata.json +1 -1
  4. package/bundles/taiga-ui-core-abstract.umd.js +4 -2
  5. package/bundles/taiga-ui-core-abstract.umd.js.map +1 -1
  6. package/bundles/taiga-ui-core-abstract.umd.min.js +1 -1
  7. package/bundles/taiga-ui-core-abstract.umd.min.js.map +1 -1
  8. package/bundles/taiga-ui-core-components-button.umd.js +21 -7
  9. package/bundles/taiga-ui-core-components-button.umd.js.map +1 -1
  10. package/bundles/taiga-ui-core-components-button.umd.min.js +1 -1
  11. package/bundles/taiga-ui-core-components-button.umd.min.js.map +1 -1
  12. package/bundles/taiga-ui-core-components-calendar.umd.js +1 -1
  13. package/bundles/taiga-ui-core-components-calendar.umd.js.map +1 -1
  14. package/bundles/taiga-ui-core-components-calendar.umd.min.js +1 -1
  15. package/bundles/taiga-ui-core-components-calendar.umd.min.js.map +1 -1
  16. package/bundles/taiga-ui-core-components-data-list.umd.js +6 -5
  17. package/bundles/taiga-ui-core-components-data-list.umd.js.map +1 -1
  18. package/bundles/taiga-ui-core-components-data-list.umd.min.js +2 -2
  19. package/bundles/taiga-ui-core-components-data-list.umd.min.js.map +1 -1
  20. package/bundles/taiga-ui-core-components-dialog.umd.js +2 -2
  21. package/bundles/taiga-ui-core-components-dialog.umd.js.map +1 -1
  22. package/bundles/taiga-ui-core-components-dialog.umd.min.js +1 -1
  23. package/bundles/taiga-ui-core-components-dialog.umd.min.js.map +1 -1
  24. package/bundles/taiga-ui-core-components-dropdown-box.umd.js +1 -1
  25. package/bundles/taiga-ui-core-components-dropdown-box.umd.min.js +1 -1
  26. package/bundles/taiga-ui-core-components-error.umd.js +1 -1
  27. package/bundles/taiga-ui-core-components-error.umd.min.js +1 -1
  28. package/bundles/taiga-ui-core-components-expand.umd.js +3 -2
  29. package/bundles/taiga-ui-core-components-expand.umd.js.map +1 -1
  30. package/bundles/taiga-ui-core-components-expand.umd.min.js +1 -1
  31. package/bundles/taiga-ui-core-components-expand.umd.min.js.map +1 -1
  32. package/bundles/taiga-ui-core-components-hints-host.umd.js +11 -5
  33. package/bundles/taiga-ui-core-components-hints-host.umd.js.map +1 -1
  34. package/bundles/taiga-ui-core-components-hints-host.umd.min.js +1 -1
  35. package/bundles/taiga-ui-core-components-hints-host.umd.min.js.map +1 -1
  36. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js +2 -15
  37. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.js.map +1 -1
  38. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js +1 -1
  39. package/bundles/taiga-ui-core-components-hosted-dropdown.umd.min.js.map +1 -1
  40. package/bundles/taiga-ui-core-components-label.umd.js +1 -1
  41. package/bundles/taiga-ui-core-components-label.umd.js.map +1 -1
  42. package/bundles/taiga-ui-core-components-label.umd.min.js +1 -1
  43. package/bundles/taiga-ui-core-components-label.umd.min.js.map +1 -1
  44. package/bundles/taiga-ui-core-components-link.umd.js +1 -1
  45. package/bundles/taiga-ui-core-components-link.umd.min.js +1 -1
  46. package/bundles/taiga-ui-core-components-link.umd.min.js.map +1 -1
  47. package/bundles/taiga-ui-core-components-loader.umd.js +2 -2
  48. package/bundles/taiga-ui-core-components-loader.umd.js.map +1 -1
  49. package/bundles/taiga-ui-core-components-loader.umd.min.js +1 -1
  50. package/bundles/taiga-ui-core-components-loader.umd.min.js.map +1 -1
  51. package/bundles/taiga-ui-core-components-notification.umd.js +1 -1
  52. package/bundles/taiga-ui-core-components-notification.umd.min.js +1 -1
  53. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js +2 -2
  54. package/bundles/taiga-ui-core-components-primitive-calendar.umd.js.map +1 -1
  55. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js +1 -1
  56. package/bundles/taiga-ui-core-components-primitive-calendar.umd.min.js.map +1 -1
  57. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.js +2 -2
  58. package/bundles/taiga-ui-core-components-primitive-spin-button.umd.min.js +1 -1
  59. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js +138 -106
  60. package/bundles/taiga-ui-core-components-primitive-textfield.umd.js.map +1 -1
  61. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js +2 -2
  62. package/bundles/taiga-ui-core-components-primitive-textfield.umd.min.js.map +1 -1
  63. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js +2 -2
  64. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.js.map +1 -1
  65. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js +1 -1
  66. package/bundles/taiga-ui-core-components-primitive-year-picker.umd.min.js.map +1 -1
  67. package/bundles/taiga-ui-core-components-scroll-controls.umd.js +2 -2
  68. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js +1 -1
  69. package/bundles/taiga-ui-core-components-scroll-controls.umd.min.js.map +1 -1
  70. package/bundles/taiga-ui-core-components-scrollbar.umd.js +34 -24
  71. package/bundles/taiga-ui-core-components-scrollbar.umd.js.map +1 -1
  72. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js +2 -2
  73. package/bundles/taiga-ui-core-components-scrollbar.umd.min.js.map +1 -1
  74. package/bundles/taiga-ui-core-components-theme-night.umd.js +7 -11
  75. package/bundles/taiga-ui-core-components-theme-night.umd.js.map +1 -1
  76. package/bundles/taiga-ui-core-components-theme-night.umd.min.js +2 -2
  77. package/bundles/taiga-ui-core-components-theme-night.umd.min.js.map +1 -1
  78. package/bundles/taiga-ui-core-components-tooltip.umd.js +1 -1
  79. package/bundles/taiga-ui-core-components-tooltip.umd.min.js +1 -1
  80. package/bundles/taiga-ui-core-components-wrapper.umd.js +1 -1
  81. package/bundles/taiga-ui-core-components-wrapper.umd.min.js +1 -1
  82. package/bundles/taiga-ui-core-components-wrapper.umd.min.js.map +1 -1
  83. package/bundles/taiga-ui-core-constants.umd.js +10 -1
  84. package/bundles/taiga-ui-core-constants.umd.js.map +1 -1
  85. package/bundles/taiga-ui-core-constants.umd.min.js +1 -1
  86. package/bundles/taiga-ui-core-constants.umd.min.js.map +1 -1
  87. package/bundles/taiga-ui-core-directives-border.umd.js +291 -0
  88. package/bundles/taiga-ui-core-directives-border.umd.js.map +1 -0
  89. package/bundles/taiga-ui-core-directives-border.umd.min.js +16 -0
  90. package/bundles/taiga-ui-core-directives-border.umd.min.js.map +1 -0
  91. package/bundles/taiga-ui-core-directives-hint.umd.js +7 -4
  92. package/bundles/taiga-ui-core-directives-hint.umd.js.map +1 -1
  93. package/bundles/taiga-ui-core-directives-hint.umd.min.js +1 -1
  94. package/bundles/taiga-ui-core-directives-hint.umd.min.js.map +1 -1
  95. package/bundles/taiga-ui-core-directives-manual-hint.umd.js +7 -4
  96. package/bundles/taiga-ui-core-directives-manual-hint.umd.js.map +1 -1
  97. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js +1 -1
  98. package/bundles/taiga-ui-core-directives-manual-hint.umd.min.js.map +1 -1
  99. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js +1 -1
  100. package/bundles/taiga-ui-core-directives-pointer-hint.umd.js.map +1 -1
  101. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js +1 -1
  102. package/bundles/taiga-ui-core-directives-pointer-hint.umd.min.js.map +1 -1
  103. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js +9 -3
  104. package/bundles/taiga-ui-core-directives-textfield-controller.umd.js.map +1 -1
  105. package/bundles/taiga-ui-core-directives-textfield-controller.umd.min.js.map +1 -1
  106. package/bundles/taiga-ui-core-directives.umd.js +12 -4
  107. package/bundles/taiga-ui-core-directives.umd.js.map +1 -1
  108. package/bundles/taiga-ui-core-directives.umd.min.js +1 -1
  109. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js +1 -1
  110. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.js.map +1 -1
  111. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js +1 -1
  112. package/bundles/taiga-ui-core-internal-primitive-year-month-pagination.umd.min.js.map +1 -1
  113. package/bundles/taiga-ui-core-modules-notifications.umd.js +2 -2
  114. package/bundles/taiga-ui-core-modules-notifications.umd.js.map +1 -1
  115. package/bundles/taiga-ui-core-modules-notifications.umd.min.js +1 -1
  116. package/bundles/taiga-ui-core-modules-notifications.umd.min.js.map +1 -1
  117. package/bundles/taiga-ui-core-tokens.umd.js +9 -0
  118. package/bundles/taiga-ui-core-tokens.umd.js.map +1 -1
  119. package/bundles/taiga-ui-core-tokens.umd.min.js +1 -1
  120. package/bundles/taiga-ui-core-tokens.umd.min.js.map +1 -1
  121. package/bundles/taiga-ui-core-utils-dom.umd.js +3 -1
  122. package/bundles/taiga-ui-core-utils-dom.umd.js.map +1 -1
  123. package/bundles/taiga-ui-core-utils-dom.umd.min.js +1 -1
  124. package/bundles/taiga-ui-core-utils-dom.umd.min.js.map +1 -1
  125. package/bundles/taiga-ui-core-utils-mask.umd.js +28 -8
  126. package/bundles/taiga-ui-core-utils-mask.umd.js.map +1 -1
  127. package/bundles/taiga-ui-core-utils-mask.umd.min.js +1 -1
  128. package/bundles/taiga-ui-core-utils-mask.umd.min.js.map +1 -1
  129. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js +2 -4
  130. package/bundles/taiga-ui-core-utils-miscellaneous.umd.js.map +1 -1
  131. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js +1 -1
  132. package/bundles/taiga-ui-core-utils-miscellaneous.umd.min.js.map +1 -1
  133. package/components/button/button-options.d.ts +10 -0
  134. package/components/button/button.component.d.ts +8 -7
  135. package/components/button/index.d.ts +1 -0
  136. package/components/button/taiga-ui-core-components-button.metadata.json +1 -1
  137. package/components/calendar/taiga-ui-core-components-calendar.metadata.json +1 -1
  138. package/components/data-list/taiga-ui-core-components-data-list.metadata.json +1 -1
  139. package/components/dialog/taiga-ui-core-components-dialog.metadata.json +1 -1
  140. package/components/dropdown-box/taiga-ui-core-components-dropdown-box.metadata.json +1 -1
  141. package/components/error/taiga-ui-core-components-error.metadata.json +1 -1
  142. package/components/expand/taiga-ui-core-components-expand.metadata.json +1 -1
  143. package/components/hints-host/taiga-ui-core-components-hints-host.metadata.json +1 -1
  144. package/components/hosted-dropdown/hosted-dropdown.component.d.ts +1 -3
  145. package/components/hosted-dropdown/taiga-ui-core-components-hosted-dropdown.metadata.json +1 -1
  146. package/components/label/taiga-ui-core-components-label.metadata.json +1 -1
  147. package/components/link/taiga-ui-core-components-link.metadata.json +1 -1
  148. package/components/loader/taiga-ui-core-components-loader.metadata.json +1 -1
  149. package/components/notification/taiga-ui-core-components-notification.metadata.json +1 -1
  150. package/components/primitive-calendar/primitive-calendar.component.d.ts +1 -1
  151. package/components/primitive-calendar/taiga-ui-core-components-primitive-calendar.metadata.json +1 -1
  152. package/components/primitive-spin-button/taiga-ui-core-components-primitive-spin-button.metadata.json +1 -1
  153. package/components/primitive-textfield/index.d.ts +1 -0
  154. package/components/primitive-textfield/primitive-textfield.component.d.ts +9 -16
  155. package/components/primitive-textfield/taiga-ui-core-components-primitive-textfield.metadata.json +1 -1
  156. package/components/primitive-textfield/value-decoration/value-decoration.component.d.ts +18 -0
  157. package/components/primitive-year-picker/taiga-ui-core-components-primitive-year-picker.metadata.json +1 -1
  158. package/components/scroll-controls/scroll-controls.component.d.ts +1 -1
  159. package/components/scroll-controls/taiga-ui-core-components-scroll-controls.metadata.json +1 -1
  160. package/components/scrollbar/scrollable.directive.d.ts +5 -1
  161. package/components/scrollbar/scrollbar.component.d.ts +4 -3
  162. package/components/scrollbar/taiga-ui-core-components-scrollbar.metadata.json +1 -1
  163. package/components/theme-night/taiga-ui-core-components-theme-night.metadata.json +1 -1
  164. package/components/theme-night/theme-night.component.d.ts +0 -1
  165. package/components/tooltip/taiga-ui-core-components-tooltip.metadata.json +1 -1
  166. package/components/wrapper/taiga-ui-core-components-wrapper.metadata.json +1 -1
  167. package/constants/events.d.ts +5 -0
  168. package/constants/media.d.ts +1 -0
  169. package/constants/regexp.d.ts +1 -0
  170. package/constants/taiga-ui-core-constants.metadata.json +1 -1
  171. package/constants/version.d.ts +1 -1
  172. package/directives/border/border.directive.d.ts +9 -0
  173. package/directives/border/border.module.d.ts +2 -0
  174. package/directives/border/index.d.ts +2 -0
  175. package/directives/border/package.json +13 -0
  176. package/directives/border/taiga-ui-core-directives-border.d.ts +4 -0
  177. package/directives/border/taiga-ui-core-directives-border.metadata.json +1 -0
  178. package/directives/hint/hint.directive.d.ts +2 -2
  179. package/directives/hint/taiga-ui-core-directives-hint.metadata.json +1 -1
  180. package/directives/index.d.ts +1 -0
  181. package/directives/manual-hint/manual-hint.directive.d.ts +2 -1
  182. package/directives/manual-hint/taiga-ui-core-directives-manual-hint.metadata.json +1 -1
  183. package/directives/taiga-ui-core-directives.metadata.json +1 -1
  184. package/directives/textfield-controller/taiga-ui-core-directives-textfield-controller.metadata.json +1 -1
  185. package/esm2015/abstract/abstract-hint.js +6 -4
  186. package/esm2015/components/button/button-options.js +10 -0
  187. package/esm2015/components/button/button.component.js +12 -8
  188. package/esm2015/components/button/index.js +2 -1
  189. package/esm2015/components/calendar/calendar.component.js +2 -2
  190. package/esm2015/components/data-list/data-list.component.js +4 -3
  191. package/esm2015/components/data-list/option/option.component.js +4 -4
  192. package/esm2015/components/dialog/dialog.component.js +3 -3
  193. package/esm2015/components/dropdown-box/dropdown-box.component.js +1 -1
  194. package/esm2015/components/error/error.component.js +1 -1
  195. package/esm2015/components/expand/expand.component.js +4 -3
  196. package/esm2015/components/hints-host/hint-box/hint-box.component.js +3 -3
  197. package/esm2015/components/hints-host/hints-host.component.js +3 -3
  198. package/esm2015/components/hints-host/hints-host.module.js +9 -3
  199. package/esm2015/components/hosted-dropdown/hosted-dropdown.component.js +4 -13
  200. package/esm2015/components/label/label.component.js +2 -2
  201. package/esm2015/components/link/link.component.js +1 -1
  202. package/esm2015/components/loader/loader.component.js +3 -3
  203. package/esm2015/components/notification/notification.component.js +1 -1
  204. package/esm2015/components/primitive-calendar/primitive-calendar.component.js +3 -3
  205. package/esm2015/components/primitive-spin-button/primitive-spin-button.component.js +2 -2
  206. package/esm2015/components/primitive-textfield/index.js +2 -1
  207. package/esm2015/components/primitive-textfield/primitive-textfield.component.js +38 -67
  208. package/esm2015/components/primitive-textfield/primitive-textfield.module.js +7 -2
  209. package/esm2015/components/primitive-textfield/value-decoration/value-decoration.component.js +65 -0
  210. package/esm2015/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  211. package/esm2015/components/scroll-controls/scroll-controls.component.js +2 -2
  212. package/esm2015/components/scrollbar/scrollable.directive.js +18 -4
  213. package/esm2015/components/scrollbar/scrollbar.component.js +20 -18
  214. package/esm2015/components/theme-night/theme-night.component.js +4 -12
  215. package/esm2015/components/tooltip/tooltip.component.js +1 -1
  216. package/esm2015/components/wrapper/wrapper.component.js +1 -1
  217. package/esm2015/constants/events.js +6 -1
  218. package/esm2015/constants/media.js +2 -1
  219. package/esm2015/constants/regexp.js +2 -1
  220. package/esm2015/constants/version.js +2 -2
  221. package/esm2015/directives/border/border.directive.js +42 -0
  222. package/esm2015/directives/border/border.module.js +13 -0
  223. package/esm2015/directives/border/index.js +3 -0
  224. package/esm2015/directives/border/taiga-ui-core-directives-border.js +5 -0
  225. package/esm2015/directives/hint/hint.directive.js +10 -7
  226. package/esm2015/directives/index.js +2 -1
  227. package/esm2015/directives/manual-hint/manual-hint.directive.js +10 -7
  228. package/esm2015/directives/pointer-hint/pointer-hint.directive.js +2 -2
  229. package/esm2015/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
  230. package/esm2015/directives/textfield-controller/textfield-size.directive.js +4 -2
  231. package/esm2015/directives/textfield-controller/textfield-type.directive.js +4 -2
  232. package/esm2015/interfaces/index.js +1 -1
  233. package/esm2015/interfaces/media.js +1 -0
  234. package/esm2015/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  235. package/esm2015/modules/notifications/notification-alert/notification-alert.component.js +2 -2
  236. package/esm2015/modules/notifications/notifications-host/notifications-host.component.js +1 -1
  237. package/esm2015/tokens/index.js +2 -1
  238. package/esm2015/tokens/media.js +9 -0
  239. package/esm2015/utils/dom/process-icon.js +4 -2
  240. package/esm2015/utils/mask/create-number-mask.js +28 -10
  241. package/esm2015/utils/miscellaneous/get-border.js +3 -5
  242. package/esm5/abstract/abstract-hint.js +6 -4
  243. package/esm5/components/button/button-options.js +10 -0
  244. package/esm5/components/button/button.component.js +12 -8
  245. package/esm5/components/button/index.js +2 -1
  246. package/esm5/components/calendar/calendar.component.js +2 -2
  247. package/esm5/components/data-list/data-list.component.js +4 -3
  248. package/esm5/components/data-list/option/option.component.js +4 -4
  249. package/esm5/components/dialog/dialog.component.js +3 -3
  250. package/esm5/components/dropdown-box/dropdown-box.component.js +1 -1
  251. package/esm5/components/error/error.component.js +1 -1
  252. package/esm5/components/expand/expand.component.js +4 -3
  253. package/esm5/components/hints-host/hint-box/hint-box.component.js +3 -3
  254. package/esm5/components/hints-host/hints-host.component.js +3 -3
  255. package/esm5/components/hints-host/hints-host.module.js +9 -3
  256. package/esm5/components/hosted-dropdown/hosted-dropdown.component.js +4 -17
  257. package/esm5/components/label/label.component.js +2 -2
  258. package/esm5/components/link/link.component.js +1 -1
  259. package/esm5/components/loader/loader.component.js +3 -3
  260. package/esm5/components/notification/notification.component.js +1 -1
  261. package/esm5/components/primitive-calendar/primitive-calendar.component.js +3 -3
  262. package/esm5/components/primitive-spin-button/primitive-spin-button.component.js +2 -2
  263. package/esm5/components/primitive-textfield/index.js +2 -1
  264. package/esm5/components/primitive-textfield/primitive-textfield.component.js +43 -104
  265. package/esm5/components/primitive-textfield/primitive-textfield.module.js +7 -2
  266. package/esm5/components/primitive-textfield/value-decoration/value-decoration.component.js +99 -0
  267. package/esm5/components/primitive-year-picker/primitive-year-picker.component.js +3 -3
  268. package/esm5/components/scroll-controls/scroll-controls.component.js +2 -2
  269. package/esm5/components/scrollbar/scrollable.directive.js +17 -5
  270. package/esm5/components/scrollbar/scrollbar.component.js +20 -22
  271. package/esm5/components/theme-night/theme-night.component.js +6 -11
  272. package/esm5/components/tooltip/tooltip.component.js +1 -1
  273. package/esm5/components/wrapper/wrapper.component.js +1 -1
  274. package/esm5/constants/events.js +6 -1
  275. package/esm5/constants/media.js +2 -1
  276. package/esm5/constants/regexp.js +2 -1
  277. package/esm5/constants/version.js +2 -2
  278. package/esm5/directives/border/border.directive.js +51 -0
  279. package/esm5/directives/border/border.module.js +16 -0
  280. package/esm5/directives/border/index.js +3 -0
  281. package/esm5/directives/border/taiga-ui-core-directives-border.js +5 -0
  282. package/esm5/directives/hint/hint.directive.js +10 -7
  283. package/esm5/directives/index.js +2 -1
  284. package/esm5/directives/manual-hint/manual-hint.directive.js +10 -7
  285. package/esm5/directives/pointer-hint/pointer-hint.directive.js +2 -2
  286. package/esm5/directives/textfield-controller/textfield-cleaner.directive.js +4 -2
  287. package/esm5/directives/textfield-controller/textfield-size.directive.js +4 -2
  288. package/esm5/directives/textfield-controller/textfield-type.directive.js +4 -2
  289. package/esm5/interfaces/index.js +1 -1
  290. package/esm5/interfaces/media.js +1 -0
  291. package/esm5/internal/primitive-year-month-pagination/primitive-year-month-pagination.component.js +2 -2
  292. package/esm5/modules/notifications/notification-alert/notification-alert.component.js +2 -2
  293. package/esm5/modules/notifications/notifications-host/notifications-host.component.js +1 -1
  294. package/esm5/tokens/index.js +2 -1
  295. package/esm5/tokens/media.js +9 -0
  296. package/esm5/utils/dom/process-icon.js +4 -2
  297. package/esm5/utils/mask/create-number-mask.js +30 -10
  298. package/esm5/utils/miscellaneous/get-border.js +3 -5
  299. package/fesm2015/taiga-ui-core-abstract.js +4 -2
  300. package/fesm2015/taiga-ui-core-abstract.js.map +1 -1
  301. package/fesm2015/taiga-ui-core-components-button.js +21 -9
  302. package/fesm2015/taiga-ui-core-components-button.js.map +1 -1
  303. package/fesm2015/taiga-ui-core-components-calendar.js +1 -1
  304. package/fesm2015/taiga-ui-core-components-calendar.js.map +1 -1
  305. package/fesm2015/taiga-ui-core-components-data-list.js +6 -5
  306. package/fesm2015/taiga-ui-core-components-data-list.js.map +1 -1
  307. package/fesm2015/taiga-ui-core-components-dialog.js +2 -2
  308. package/fesm2015/taiga-ui-core-components-dialog.js.map +1 -1
  309. package/fesm2015/taiga-ui-core-components-dropdown-box.js +1 -1
  310. package/fesm2015/taiga-ui-core-components-error.js +1 -1
  311. package/fesm2015/taiga-ui-core-components-expand.js +3 -2
  312. package/fesm2015/taiga-ui-core-components-expand.js.map +1 -1
  313. package/fesm2015/taiga-ui-core-components-hints-host.js +12 -6
  314. package/fesm2015/taiga-ui-core-components-hints-host.js.map +1 -1
  315. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js +3 -12
  316. package/fesm2015/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  317. package/fesm2015/taiga-ui-core-components-label.js +1 -1
  318. package/fesm2015/taiga-ui-core-components-label.js.map +1 -1
  319. package/fesm2015/taiga-ui-core-components-link.js +1 -1
  320. package/fesm2015/taiga-ui-core-components-loader.js +2 -2
  321. package/fesm2015/taiga-ui-core-components-loader.js.map +1 -1
  322. package/fesm2015/taiga-ui-core-components-notification.js +1 -1
  323. package/fesm2015/taiga-ui-core-components-primitive-calendar.js +2 -2
  324. package/fesm2015/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  325. package/fesm2015/taiga-ui-core-components-primitive-spin-button.js +2 -2
  326. package/fesm2015/taiga-ui-core-components-primitive-textfield.js +102 -69
  327. package/fesm2015/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  328. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js +2 -2
  329. package/fesm2015/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  330. package/fesm2015/taiga-ui-core-components-scroll-controls.js +2 -2
  331. package/fesm2015/taiga-ui-core-components-scrollbar.js +33 -17
  332. package/fesm2015/taiga-ui-core-components-scrollbar.js.map +1 -1
  333. package/fesm2015/taiga-ui-core-components-theme-night.js +3 -11
  334. package/fesm2015/taiga-ui-core-components-theme-night.js.map +1 -1
  335. package/fesm2015/taiga-ui-core-components-tooltip.js +1 -1
  336. package/fesm2015/taiga-ui-core-components-wrapper.js +1 -1
  337. package/fesm2015/taiga-ui-core-constants.js +9 -2
  338. package/fesm2015/taiga-ui-core-constants.js.map +1 -1
  339. package/fesm2015/taiga-ui-core-directives-border.js +57 -0
  340. package/fesm2015/taiga-ui-core-directives-border.js.map +1 -0
  341. package/fesm2015/taiga-ui-core-directives-hint.js +9 -6
  342. package/fesm2015/taiga-ui-core-directives-hint.js.map +1 -1
  343. package/fesm2015/taiga-ui-core-directives-manual-hint.js +9 -6
  344. package/fesm2015/taiga-ui-core-directives-manual-hint.js.map +1 -1
  345. package/fesm2015/taiga-ui-core-directives-pointer-hint.js +1 -1
  346. package/fesm2015/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  347. package/fesm2015/taiga-ui-core-directives-textfield-controller.js +9 -3
  348. package/fesm2015/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  349. package/fesm2015/taiga-ui-core-directives.js +1 -0
  350. package/fesm2015/taiga-ui-core-directives.js.map +1 -1
  351. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  352. package/fesm2015/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  353. package/fesm2015/taiga-ui-core-modules-notifications.js +2 -2
  354. package/fesm2015/taiga-ui-core-modules-notifications.js.map +1 -1
  355. package/fesm2015/taiga-ui-core-tokens.js +9 -1
  356. package/fesm2015/taiga-ui-core-tokens.js.map +1 -1
  357. package/fesm2015/taiga-ui-core-utils-dom.js +3 -1
  358. package/fesm2015/taiga-ui-core-utils-dom.js.map +1 -1
  359. package/fesm2015/taiga-ui-core-utils-mask.js +27 -9
  360. package/fesm2015/taiga-ui-core-utils-mask.js.map +1 -1
  361. package/fesm2015/taiga-ui-core-utils-miscellaneous.js +2 -4
  362. package/fesm2015/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  363. package/fesm5/taiga-ui-core-abstract.js +4 -2
  364. package/fesm5/taiga-ui-core-abstract.js.map +1 -1
  365. package/fesm5/taiga-ui-core-components-button.js +21 -9
  366. package/fesm5/taiga-ui-core-components-button.js.map +1 -1
  367. package/fesm5/taiga-ui-core-components-calendar.js +1 -1
  368. package/fesm5/taiga-ui-core-components-calendar.js.map +1 -1
  369. package/fesm5/taiga-ui-core-components-data-list.js +6 -5
  370. package/fesm5/taiga-ui-core-components-data-list.js.map +1 -1
  371. package/fesm5/taiga-ui-core-components-dialog.js +2 -2
  372. package/fesm5/taiga-ui-core-components-dialog.js.map +1 -1
  373. package/fesm5/taiga-ui-core-components-dropdown-box.js +1 -1
  374. package/fesm5/taiga-ui-core-components-error.js +1 -1
  375. package/fesm5/taiga-ui-core-components-expand.js +3 -2
  376. package/fesm5/taiga-ui-core-components-expand.js.map +1 -1
  377. package/fesm5/taiga-ui-core-components-hints-host.js +12 -6
  378. package/fesm5/taiga-ui-core-components-hints-host.js.map +1 -1
  379. package/fesm5/taiga-ui-core-components-hosted-dropdown.js +3 -16
  380. package/fesm5/taiga-ui-core-components-hosted-dropdown.js.map +1 -1
  381. package/fesm5/taiga-ui-core-components-label.js +1 -1
  382. package/fesm5/taiga-ui-core-components-label.js.map +1 -1
  383. package/fesm5/taiga-ui-core-components-link.js +1 -1
  384. package/fesm5/taiga-ui-core-components-loader.js +2 -2
  385. package/fesm5/taiga-ui-core-components-loader.js.map +1 -1
  386. package/fesm5/taiga-ui-core-components-notification.js +1 -1
  387. package/fesm5/taiga-ui-core-components-primitive-calendar.js +2 -2
  388. package/fesm5/taiga-ui-core-components-primitive-calendar.js.map +1 -1
  389. package/fesm5/taiga-ui-core-components-primitive-spin-button.js +2 -2
  390. package/fesm5/taiga-ui-core-components-primitive-textfield.js +141 -106
  391. package/fesm5/taiga-ui-core-components-primitive-textfield.js.map +1 -1
  392. package/fesm5/taiga-ui-core-components-primitive-year-picker.js +2 -2
  393. package/fesm5/taiga-ui-core-components-primitive-year-picker.js.map +1 -1
  394. package/fesm5/taiga-ui-core-components-scroll-controls.js +2 -2
  395. package/fesm5/taiga-ui-core-components-scrollbar.js +32 -22
  396. package/fesm5/taiga-ui-core-components-scrollbar.js.map +1 -1
  397. package/fesm5/taiga-ui-core-components-theme-night.js +5 -10
  398. package/fesm5/taiga-ui-core-components-theme-night.js.map +1 -1
  399. package/fesm5/taiga-ui-core-components-tooltip.js +1 -1
  400. package/fesm5/taiga-ui-core-components-wrapper.js +1 -1
  401. package/fesm5/taiga-ui-core-constants.js +9 -2
  402. package/fesm5/taiga-ui-core-constants.js.map +1 -1
  403. package/fesm5/taiga-ui-core-directives-border.js +69 -0
  404. package/fesm5/taiga-ui-core-directives-border.js.map +1 -0
  405. package/fesm5/taiga-ui-core-directives-hint.js +9 -6
  406. package/fesm5/taiga-ui-core-directives-hint.js.map +1 -1
  407. package/fesm5/taiga-ui-core-directives-manual-hint.js +9 -6
  408. package/fesm5/taiga-ui-core-directives-manual-hint.js.map +1 -1
  409. package/fesm5/taiga-ui-core-directives-pointer-hint.js +1 -1
  410. package/fesm5/taiga-ui-core-directives-pointer-hint.js.map +1 -1
  411. package/fesm5/taiga-ui-core-directives-textfield-controller.js +9 -3
  412. package/fesm5/taiga-ui-core-directives-textfield-controller.js.map +1 -1
  413. package/fesm5/taiga-ui-core-directives.js +1 -0
  414. package/fesm5/taiga-ui-core-directives.js.map +1 -1
  415. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js +1 -1
  416. package/fesm5/taiga-ui-core-internal-primitive-year-month-pagination.js.map +1 -1
  417. package/fesm5/taiga-ui-core-modules-notifications.js +2 -2
  418. package/fesm5/taiga-ui-core-modules-notifications.js.map +1 -1
  419. package/fesm5/taiga-ui-core-tokens.js +9 -1
  420. package/fesm5/taiga-ui-core-tokens.js.map +1 -1
  421. package/fesm5/taiga-ui-core-utils-dom.js +3 -1
  422. package/fesm5/taiga-ui-core-utils-dom.js.map +1 -1
  423. package/fesm5/taiga-ui-core-utils-mask.js +30 -10
  424. package/fesm5/taiga-ui-core-utils-mask.js.map +1 -1
  425. package/fesm5/taiga-ui-core-utils-miscellaneous.js +2 -4
  426. package/fesm5/taiga-ui-core-utils-miscellaneous.js.map +1 -1
  427. package/interfaces/index.d.ts +1 -0
  428. package/interfaces/media.d.ts +6 -0
  429. package/interfaces/taiga-ui-core-interfaces.metadata.json +1 -1
  430. package/internal/primitive-year-month-pagination/taiga-ui-core-internal-primitive-year-month-pagination.metadata.json +1 -1
  431. package/modules/notifications/taiga-ui-core-modules-notifications.metadata.json +1 -1
  432. package/package.json +5 -5
  433. package/styles/basic/main.less +2 -4
  434. package/styles/markup/tui-autofill.less +2 -0
  435. package/styles/markup/tui-container-old.less +69 -0
  436. package/styles/markup/tui-form-old.less +141 -0
  437. package/styles/markup/tui-form.less +12 -12
  438. package/styles/markup/tui-group-old.less +322 -0
  439. package/styles/markup/tui-group.less +2 -2
  440. package/styles/markup/tui-mobile-only.less +1 -1
  441. package/styles/markup/tui-row-old.less +157 -0
  442. package/styles/markup/tui-table.less +2 -2
  443. package/styles/mixins/mixins.less +8 -3
  444. package/styles/mixins/picker.less +1 -1
  445. package/styles/mixins/textfield.less +37 -78
  446. package/styles/taiga-ui-global-old.less +18 -0
  447. package/styles/taiga-ui-local-old.less +7 -0
  448. package/styles/theme/variables.less +4 -0
  449. package/styles/theme/wrapper/table.less +4 -0
  450. package/styles/variables/media-old.less +48 -0
  451. package/styles/variables/media.less +4 -4
  452. package/tokens/index.d.ts +1 -0
  453. package/tokens/media.d.ts +3 -0
  454. package/tokens/taiga-ui-core-tokens.metadata.json +1 -1
  455. package/utils/mask/create-number-mask.d.ts +1 -0
  456. package/utils/miscellaneous/get-border.d.ts +1 -1
@@ -0,0 +1,141 @@
1
+ @fields-space: @space * 5;
2
+ @fields-space-mobile: @space * 4;
3
+ @fields-space-large: @space * 8;
4
+ @fields-space-large-mobile: @space * 6;
5
+
6
+ .tui-form {
7
+ &__header {
8
+ margin-top: @fields-space-large;
9
+
10
+ &_margin-top_none {
11
+ margin-top: 0;
12
+ }
13
+
14
+ &_margin-bottom_none {
15
+ margin-bottom: 0;
16
+ }
17
+
18
+ &_margin-bottom_small {
19
+ @media @mobile {
20
+ margin-bottom: @fields-space-mobile - @space;
21
+ }
22
+
23
+ @media @tablet-min {
24
+ margin-bottom: @fields-space - @space;
25
+ }
26
+ }
27
+
28
+ @media @mobile {
29
+ font: var(--tui-font-text-l);
30
+ font-weight: bold;
31
+ margin-bottom: @fields-space-mobile;
32
+ }
33
+
34
+ @media @tablet-min {
35
+ font: var(--tui-font-heading-5);
36
+ margin-bottom: @fields-space;
37
+ }
38
+ }
39
+
40
+ &__row {
41
+ margin-top: @fields-space;
42
+
43
+ &:first-child {
44
+ margin-top: 0;
45
+ }
46
+
47
+ &_multi-fields {
48
+ display: flex;
49
+
50
+ @media @mobile {
51
+ flex-wrap: wrap;
52
+ }
53
+ }
54
+
55
+ &_half-width {
56
+ width: ~'calc(50% - @{fields-space} / 2)';
57
+
58
+ @media @mobile {
59
+ width: 100%;
60
+ }
61
+ }
62
+
63
+ &_checkboxes {
64
+ display: flex;
65
+ flex-wrap: wrap;
66
+ }
67
+
68
+ @media @mobile {
69
+ margin-top: @fields-space-mobile;
70
+ }
71
+ }
72
+
73
+ &__multi-field {
74
+ flex: 1 1 0;
75
+ min-width: 0;
76
+ margin-left: @fields-space;
77
+
78
+ &:first-child {
79
+ margin-left: 0;
80
+ }
81
+
82
+ @media @mobile {
83
+ flex-basis: 100%;
84
+ margin-top: @fields-space-mobile;
85
+ margin-left: 0;
86
+
87
+ &:first-child {
88
+ margin-top: 0;
89
+ }
90
+ }
91
+ }
92
+
93
+ &__field-note {
94
+ font: var(--tui-font-text-s);
95
+ margin-top: @space;
96
+ color: var(--tui-text-02);
97
+ }
98
+
99
+ &__field-checkbox {
100
+ margin-top: @space * 2;
101
+ }
102
+
103
+ &__checkbox {
104
+ flex: ~'1 1 calc(50% - 0.625rem)';
105
+
106
+ &:nth-child(even) {
107
+ margin-left: 1.25rem;
108
+ }
109
+
110
+ &:nth-child(n + 3) {
111
+ margin-top: 1rem;
112
+ }
113
+ }
114
+
115
+ &__buttons {
116
+ display: flex;
117
+ margin-top: @fields-space-large;
118
+
119
+ &_align_end {
120
+ justify-content: flex-end;
121
+ }
122
+
123
+ @media @mobile {
124
+ flex-direction: column;
125
+ margin-top: @fields-space-large-mobile;
126
+ }
127
+ }
128
+
129
+ &__button {
130
+ margin-left: @space * 3;
131
+
132
+ &:first-child {
133
+ margin-left: 0;
134
+ }
135
+
136
+ @media @mobile {
137
+ margin-top: @space * 2;
138
+ margin-left: 0;
139
+ }
140
+ }
141
+ }
@@ -7,17 +7,6 @@
7
7
  &__header {
8
8
  margin-top: @fields-space-large;
9
9
 
10
- @media @mobile-m {
11
- font: var(--tui-font-text-l);
12
- font-weight: bold;
13
- margin-bottom: @fields-space-mobile;
14
- }
15
-
16
- @media @desktop-s-min {
17
- font: var(--tui-font-heading-5);
18
- margin-bottom: @fields-space;
19
- }
20
-
21
10
  &_margin-top_none {
22
11
  margin-top: 0;
23
12
  }
@@ -35,6 +24,17 @@
35
24
  margin-bottom: @fields-space - @space;
36
25
  }
37
26
  }
27
+
28
+ @media @mobile-m {
29
+ font: var(--tui-font-text-l);
30
+ font-weight: bold;
31
+ margin-bottom: @fields-space-mobile;
32
+ }
33
+
34
+ @media @desktop-s-min {
35
+ font: var(--tui-font-heading-5);
36
+ margin-bottom: @fields-space;
37
+ }
38
38
  }
39
39
 
40
40
  &__row {
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  &_half-width {
56
- width: ~'calc(50% - @{fields-space} / 2)';
56
+ width: ~'calc(50% - (@{fields-space} / 2))';
57
57
 
58
58
  @media @mobile-m {
59
59
  width: 100%;
@@ -0,0 +1,322 @@
1
+ .tui-group {
2
+ .createStackingContext();
3
+ display: flex;
4
+
5
+ & > * {
6
+ flex: 1 1 0;
7
+ min-width: 0;
8
+
9
+ &:nth-child(n) {
10
+ border-radius: 0;
11
+ }
12
+
13
+ &:not(:last-child) {
14
+ margin-right: (@space / 2);
15
+ }
16
+ }
17
+
18
+ /* stylelint-disable */
19
+ &_collapsed {
20
+ & > * {
21
+ z-index: 1;
22
+
23
+ &:not(:last-child) {
24
+ margin-right: -0.0625rem;
25
+ }
26
+
27
+ &._readonly,
28
+ &._disabled,
29
+ &._readonly:hover,
30
+ &._disabled:hover {
31
+ z-index: 0;
32
+ }
33
+
34
+ &:hover,
35
+ &._hovered,
36
+ &._pressed {
37
+ z-index: 3;
38
+ }
39
+
40
+ &._invalid {
41
+ z-index: 2;
42
+
43
+ &:hover,
44
+ &._hovered,
45
+ &._pressed {
46
+ z-index: 4;
47
+ }
48
+ }
49
+
50
+ // @bad TODO: remove "touched" and "focus-visible"
51
+ &._hosted_dropdown_focused,
52
+ &._focus-visible,
53
+ &._focused.ng-touched,
54
+ &._focused.ng-untouched {
55
+ z-index: 5;
56
+ }
57
+
58
+ &._active,
59
+ &[data-appearance='whiteblock-active'] {
60
+ z-index: 6;
61
+ }
62
+
63
+ &._focus-visible {
64
+ &._focused,
65
+ &._active,
66
+ &[data-appearance='whiteblock-active'] {
67
+ z-index: 7;
68
+ }
69
+ }
70
+ }
71
+ }
72
+
73
+ &_orientation_vertical {
74
+ display: inline-flex;
75
+ flex-direction: column;
76
+
77
+ & > * {
78
+ min-height: auto;
79
+ flex: 0 0 auto;
80
+
81
+ &:not(:last-child) {
82
+ margin-right: 0;
83
+ margin-bottom: (@space / 2);
84
+ }
85
+ }
86
+
87
+ &.tui-group_collapsed {
88
+ & > * {
89
+ &:not(:last-child) {
90
+ margin-right: 0;
91
+ margin-bottom: -0.0625rem;
92
+ }
93
+ }
94
+ }
95
+ }
96
+
97
+ &_rounded.tui-group_orientation_horizontal {
98
+ & > * {
99
+ &:first-child {
100
+ border-top-left-radius: var(--tui-radius-m);
101
+ border-bottom-left-radius: var(--tui-radius-m);
102
+ }
103
+
104
+ &:last-child {
105
+ border-top-right-radius: var(--tui-radius-m);
106
+ border-bottom-right-radius: var(--tui-radius-m);
107
+ }
108
+ }
109
+ }
110
+
111
+ &_rounded.tui-group_orientation_horizontal.tui-group_radius_large {
112
+ & > * {
113
+ &:first-child {
114
+ border-top-left-radius: var(--tui-radius-l);
115
+ border-bottom-left-radius: var(--tui-radius-l);
116
+ }
117
+
118
+ &:last-child {
119
+ border-top-right-radius: var(--tui-radius-l);
120
+ border-bottom-right-radius: var(--tui-radius-l);
121
+ }
122
+ }
123
+ }
124
+
125
+ &_rounded.tui-group_orientation_vertical {
126
+ & > * {
127
+ &:first-child {
128
+ border-top-left-radius: var(--tui-radius-m);
129
+ border-top-right-radius: var(--tui-radius-m);
130
+ }
131
+
132
+ &:last-child {
133
+ border-bottom-left-radius: var(--tui-radius-m);
134
+ border-bottom-right-radius: var(--tui-radius-m);
135
+ }
136
+ }
137
+ }
138
+
139
+ &_rounded.tui-group_orientation_vertical.tui-group_radius_large {
140
+ & > * {
141
+ &:first-child {
142
+ border-top-left-radius: var(--tui-radius-l);
143
+ border-top-right-radius: var(--tui-radius-l);
144
+ }
145
+
146
+ &:last-child {
147
+ border-bottom-left-radius: var(--tui-radius-l);
148
+ border-bottom-right-radius: var(--tui-radius-l);
149
+ }
150
+ }
151
+ }
152
+
153
+ &_rounded.tui-group_adaptive {
154
+ &.tui-group_orientation_vertical:not(.tui-group_collapsed),
155
+ &.tui-group_orientation_horizontal {
156
+ & > * {
157
+ @media @mobile {
158
+ &:first-child:not(:last-child),
159
+ &:last-child:not(:first-child) {
160
+ border-radius: var(--tui-radius-m);
161
+ }
162
+ }
163
+ }
164
+ }
165
+ }
166
+
167
+ &_rounded.tui-group_adaptive.tui-group_radius_large {
168
+ &.tui-group_orientation_vertical:not(.tui-group_collapsed),
169
+ &.tui-group_orientation_horizontal {
170
+ & > * {
171
+ @media @mobile {
172
+ &:first-child:not(:last-child),
173
+ &:last-child:not(:first-child) {
174
+ border-radius: var(--tui-radius-l);
175
+ }
176
+ }
177
+ }
178
+ }
179
+ }
180
+
181
+ &_adaptive {
182
+ &.tui-group_orientation_vertical {
183
+ @media @mobile {
184
+ width: 100%;
185
+
186
+ & > * {
187
+ &:nth-child(n):not(:only-child) {
188
+ border-radius: var(--tui-radius-m);
189
+ }
190
+
191
+ &:not(:last-child) {
192
+ margin-bottom: @space * 4;
193
+ }
194
+ }
195
+
196
+ &.tui-group_collapsed {
197
+ & > * {
198
+ &:nth-child(n):not(:only-child) {
199
+ border-radius: 0;
200
+ }
201
+
202
+ &:first-child:not(:last-child) {
203
+ border-radius: var(--tui-radius-m) var(--tui-radius-m) 0 0;
204
+ }
205
+
206
+ &:last-child:not(:first-child) {
207
+ border-radius: 0 0 var(--tui-radius-m) var(--tui-radius-m);
208
+ }
209
+
210
+ &:not(:last-child) {
211
+ margin-bottom: -0.0625rem;
212
+ }
213
+ }
214
+ }
215
+ }
216
+ }
217
+
218
+ &.tui-group_orientation_horizontal {
219
+ @media @mobile {
220
+ flex-direction: column;
221
+ width: 100%;
222
+
223
+ & > * {
224
+ &:nth-child(n):not(:only-child) {
225
+ border-radius: var(--tui-radius-m);
226
+ }
227
+
228
+ &:not(:last-child) {
229
+ margin-right: 0;
230
+ margin-bottom: @space * 4;
231
+ }
232
+ }
233
+
234
+ &.tui-group_collapsed {
235
+ & > * {
236
+ &:nth-child(n):not(:only-child) {
237
+ border-radius: 0;
238
+ }
239
+
240
+ &:first-child:not(:last-child) {
241
+ border-radius: var(--tui-radius-m) var(--tui-radius-m) 0 0;
242
+ }
243
+
244
+ &:last-child:not(:first-child) {
245
+ border-radius: 0 0 var(--tui-radius-m) var(--tui-radius-m);
246
+ }
247
+
248
+ &:not(:last-child) {
249
+ margin-right: 0;
250
+ margin-bottom: -0.0625rem;
251
+ }
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
257
+
258
+ &_adaptive.tui-group_radius_large {
259
+ &.tui-group_orientation_vertical {
260
+ @media @mobile {
261
+ & > * {
262
+ &:nth-child(n):not(:only-child) {
263
+ border-radius: var(--tui-radius-l);
264
+ }
265
+ }
266
+
267
+ &.tui-group_collapsed {
268
+ & > * {
269
+ &:nth-child(n):not(:only-child) {
270
+ border-radius: 0;
271
+ }
272
+
273
+ &:first-child:not(:last-child) {
274
+ border-radius: var(--tui-radius-l) var(--tui-radius-l) 0 0;
275
+ }
276
+
277
+ &:last-child:not(:first-child) {
278
+ border-radius: 0 0 var(--tui-radius-l) var(--tui-radius-l);
279
+ }
280
+ }
281
+ }
282
+ }
283
+ }
284
+
285
+ &.tui-group_orientation_horizontal {
286
+ @media @mobile {
287
+ & > * {
288
+ &:nth-child(n):not(:only-child) {
289
+ border-radius: var(--tui-radius-l);
290
+ }
291
+ }
292
+
293
+ &.tui-group_collapsed {
294
+ & > * {
295
+ &:nth-child(n):not(:only-child) {
296
+ border-radius: 0;
297
+ }
298
+
299
+ &:first-child:not(:last-child) {
300
+ border-radius: var(--tui-radius-l) var(--tui-radius-l) 0 0;
301
+ }
302
+
303
+ &:last-child:not(:first-child) {
304
+ border-radius: 0 0 var(--tui-radius-l) var(--tui-radius-l);
305
+ }
306
+ }
307
+ }
308
+ }
309
+ }
310
+ }
311
+ /* stylelint-enable */
312
+
313
+ &__auto-width-item {
314
+ min-width: auto;
315
+ flex: 0 0 auto;
316
+ }
317
+
318
+ // specificity is the reason of this selector
319
+ & .tui-group__inherit-item {
320
+ border-radius: inherit;
321
+ }
322
+ }
@@ -11,7 +11,7 @@
11
11
  }
12
12
 
13
13
  &:not(:last-child) {
14
- margin-right: @space / 2;
14
+ margin-right: (@space / 2);
15
15
  }
16
16
  }
17
17
 
@@ -80,7 +80,7 @@
80
80
 
81
81
  &:not(:last-child) {
82
82
  margin-right: 0;
83
- margin-bottom: @space / 2;
83
+ margin-bottom: (@space / 2);
84
84
  }
85
85
  }
86
86
 
@@ -1,4 +1,4 @@
1
- @media @desktop-s-min {
1
+ @media not @mobile-m {
2
2
  .tui-mobile-only {
3
3
  display: none !important;
4
4
  }
@@ -0,0 +1,157 @@
1
+ @space-small: 0.5rem;
2
+ @space-normal: 1.25rem;
3
+ @space-large: 1.5rem;
4
+
5
+ /* stylelint-disable order/order */
6
+ .generate-columns(@infix, @n, @padding, @i: 1) when (@i =< @n) {
7
+ &_@{infix}-@{i} {
8
+ width: (@i * 100% / @n);
9
+ padding-left: @padding;
10
+ padding-right: @padding;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ .generate-columns(@infix, @n, @padding, (@i + 1));
15
+ }
16
+
17
+ .generate-offset-columns(@infix, @n, @i: 1) when (@i =< @n) {
18
+ &_@{infix}-@{i} {
19
+ margin-left: (@i * 100% / @n);
20
+ }
21
+
22
+ .generate-offset-columns(@infix, @n, (@i + 1));
23
+ }
24
+
25
+ .generate-sme-columns(@n, @padding, @i: 1) when (@i =< @n) {
26
+ &_@{i} {
27
+ width: (@i * 100% / @n);
28
+ padding-left: @padding;
29
+ padding-right: @padding;
30
+ box-sizing: border-box;
31
+ }
32
+
33
+ .generate-sme-columns(@n, @padding, (@i + 1));
34
+ }
35
+
36
+ .generate-sme-offset-columns(@n, @i: 1) when (@i =< @n) {
37
+ &_@{i} {
38
+ margin-left: (@i * 100% / @n);
39
+ }
40
+
41
+ .generate-sme-offset-columns(@n, (@i + 1));
42
+ }
43
+ /* stylelint-enable order/order */
44
+
45
+ .tui-row {
46
+ display: flex;
47
+ flex-wrap: wrap;
48
+
49
+ &_align_center {
50
+ align-items: center;
51
+ }
52
+
53
+ &_align_start {
54
+ align-items: flex-start;
55
+ }
56
+
57
+ &_align_end {
58
+ align-items: flex-end;
59
+ }
60
+
61
+ &_adaptive.tui-row {
62
+ @media @desktop-lg-min {
63
+ margin-left: -@space-large;
64
+ margin-right: -@space-large;
65
+ }
66
+
67
+ @media @desktop {
68
+ margin-left: -@space-normal;
69
+ margin-right: -@space-normal;
70
+ }
71
+
72
+ @media @tablet {
73
+ margin-left: -@space-small;
74
+ margin-right: -@space-small;
75
+ }
76
+
77
+ @media @mobile {
78
+ margin-left: -@space-small;
79
+ margin-right: -@space-small;
80
+ }
81
+ }
82
+
83
+ &_temporary.tui-row {
84
+ margin-left: -@space-normal;
85
+ margin-right: -@space-normal;
86
+ }
87
+
88
+ @media @desktop-lg-min {
89
+ margin-left: -@space-large;
90
+ margin-right: -@space-large;
91
+ }
92
+
93
+ @media @desktop {
94
+ margin-left: -@space-normal;
95
+ margin-right: -@space-normal;
96
+ }
97
+ }
98
+
99
+ .tui-col {
100
+ .generate-sme-columns(12, @space-normal);
101
+ .generate-columns(md, 12, @space-normal);
102
+
103
+ &_stretch {
104
+ display: flex;
105
+ }
106
+
107
+ .tui-row_adaptive & {
108
+ @media @desktop-lg-min {
109
+ .generate-columns(lg, 12, @space-large);
110
+ }
111
+
112
+ @media @desktop {
113
+ .generate-columns(md, 12, @space-normal);
114
+ }
115
+
116
+ @media @tablet {
117
+ .generate-columns(sm, 12, @space-small);
118
+ }
119
+
120
+ @media @tablet-s {
121
+ .generate-columns(s, 12, @space-small);
122
+ }
123
+
124
+ @media @mobile {
125
+ .generate-columns(xs, 12, @space-small);
126
+ }
127
+ }
128
+
129
+ .tui-row_temporary & {
130
+ .generate-sme-columns(12, @space-normal);
131
+ }
132
+
133
+ @media @desktop-lg-min {
134
+ .generate-sme-columns(12, @space-large);
135
+ }
136
+ }
137
+
138
+ .tui-col-offset {
139
+ .generate-sme-offset-columns(12);
140
+
141
+ @media @mobile-interval {
142
+ .generate-offset-columns(xs, 12);
143
+ }
144
+
145
+ @media @tablet-interval {
146
+ .generate-offset-columns(sm, 12);
147
+ .generate-offset-columns(s, 12);
148
+ }
149
+
150
+ @media @desktop-interval {
151
+ .generate-offset-columns(md, 12);
152
+ }
153
+
154
+ @media @desktop-lg-min {
155
+ .generate-offset-columns(lg, 12);
156
+ }
157
+ }
@@ -29,8 +29,8 @@
29
29
  }
30
30
 
31
31
  &__th {
32
- font: var(--tui-font-text-s);
33
32
  .text-overflow();
33
+ font: var(--tui-font-text-s);
34
34
  padding: 0.5rem 1rem;
35
35
  vertical-align: middle;
36
36
  height: 2.5rem;
@@ -127,7 +127,7 @@
127
127
  &__sort-icon {
128
128
  .center-top();
129
129
  left: 100%;
130
- margin-left: @space / 2;
130
+ margin-left: (@space / 2);
131
131
  width: 1rem;
132
132
  height: 1rem;
133
133
  flex-shrink: 0;