@taiga-ui/core 4.52.0-canary.46625cf → 4.52.0-canary.49575ff

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 (312) hide show
  1. package/README.md +1 -1
  2. package/classes/accessors.d.ts +2 -2
  3. package/components/calendar/calendar-sheet.component.d.ts +1 -1
  4. package/components/calendar/calendar-sheet.options.d.ts +1 -3
  5. package/{pipes/calendar-sheet → components/calendar}/calendar-sheet.pipe.d.ts +2 -2
  6. package/components/calendar/calendar-spin.component.d.ts +1 -0
  7. package/components/calendar/calendar-year.component.d.ts +1 -1
  8. package/components/calendar/calendar.options.d.ts +9 -0
  9. package/components/calendar/index.d.ts +3 -0
  10. package/{pipes/order-week-days → components/calendar}/order-week-days.pipe.d.ts +1 -1
  11. package/components/data-list/data-list.component.d.ts +8 -12
  12. package/components/data-list/data-list.d.ts +3 -4
  13. package/components/data-list/data-list.tokens.d.ts +1 -23
  14. package/components/data-list/index.d.ts +3 -4
  15. package/components/data-list/opt-group.directive.d.ts +2 -2
  16. package/components/data-list/option-content.directive.d.ts +14 -0
  17. package/components/data-list/option-with-value.directive.d.ts +9 -0
  18. package/components/data-list/option.directive.d.ts +19 -0
  19. package/components/error/error.component.d.ts +1 -1
  20. package/components/icon/icon.component.d.ts +2 -2
  21. package/components/index.d.ts +2 -3
  22. package/components/input/index.d.ts +2 -0
  23. package/components/input/input.d.ts +5 -0
  24. package/components/input/input.directive.d.ts +30 -0
  25. package/components/label/label.directive.d.ts +1 -1
  26. package/components/link/index.d.ts +0 -1
  27. package/components/link/link.directive.d.ts +8 -6
  28. package/components/loader/loader.component.d.ts +7 -7
  29. package/components/loader/loader.options.d.ts +1 -3
  30. package/components/notification/index.d.ts +3 -0
  31. package/components/notification/notification.component.d.ts +14 -0
  32. package/components/notification/notification.d.ts +3 -0
  33. package/components/notification/notification.directive.d.ts +7 -12
  34. package/components/notification/notification.options.d.ts +10 -7
  35. package/components/notification/notification.service.d.ts +17 -0
  36. package/components/root/root.component.d.ts +1 -1
  37. package/components/scrollbar/scroll-into-view.directive.d.ts +3 -2
  38. package/components/scrollbar/scroll-ref.directive.d.ts +2 -0
  39. package/components/scrollbar/scrollbar.component.d.ts +1 -5
  40. package/components/scrollbar/scrollbar.directive.d.ts +2 -2
  41. package/components/spin-button/spin-button.component.d.ts +9 -10
  42. package/components/textfield/index.d.ts +0 -1
  43. package/components/textfield/textfield-multi/textfield-item.component.d.ts +3 -2
  44. package/components/textfield/textfield-multi/textfield-multi.component.d.ts +10 -14
  45. package/components/textfield/textfield.component.d.ts +23 -36
  46. package/components/textfield/textfield.d.ts +2 -3
  47. package/components/textfield/textfield.options.d.ts +8 -11
  48. package/directives/date-format/date-format.directive.d.ts +3 -7
  49. package/directives/group/group.directive.d.ts +7 -7
  50. package/directives/group/group.options.d.ts +1 -3
  51. package/directives/index.d.ts +0 -4
  52. package/directives/items-handlers/items-handlers.directive.d.ts +5 -9
  53. package/directives/items-handlers/items-handlers.tokens.d.ts +4 -4
  54. package/directives/number-format/number-format.directive.d.ts +3 -7
  55. package/fesm2022/taiga-ui-core-classes.mjs +9 -11
  56. package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
  57. package/fesm2022/taiga-ui-core-components-button.mjs +7 -7
  58. package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
  59. package/fesm2022/taiga-ui-core-components-calendar.mjs +139 -35
  60. package/fesm2022/taiga-ui-core-components-calendar.mjs.map +1 -1
  61. package/fesm2022/taiga-ui-core-components-cell.mjs +7 -7
  62. package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -1
  63. package/fesm2022/taiga-ui-core-components-data-list.mjs +111 -280
  64. package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
  65. package/fesm2022/taiga-ui-core-components-error.mjs +14 -13
  66. package/fesm2022/taiga-ui-core-components-error.mjs.map +1 -1
  67. package/fesm2022/taiga-ui-core-components-expand.mjs +3 -3
  68. package/fesm2022/taiga-ui-core-components-icon.mjs +10 -11
  69. package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
  70. package/fesm2022/taiga-ui-core-components-input.mjs +104 -0
  71. package/fesm2022/taiga-ui-core-components-input.mjs.map +1 -0
  72. package/fesm2022/taiga-ui-core-components-label.mjs +11 -13
  73. package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
  74. package/fesm2022/taiga-ui-core-components-link.mjs +14 -31
  75. package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
  76. package/fesm2022/taiga-ui-core-components-loader.mjs +16 -34
  77. package/fesm2022/taiga-ui-core-components-loader.mjs.map +1 -1
  78. package/fesm2022/taiga-ui-core-components-notification.mjs +104 -49
  79. package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
  80. package/fesm2022/taiga-ui-core-components-root.mjs +9 -14
  81. package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
  82. package/fesm2022/taiga-ui-core-components-scrollbar.mjs +68 -82
  83. package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
  84. package/fesm2022/taiga-ui-core-components-spin-button.mjs +18 -31
  85. package/fesm2022/taiga-ui-core-components-spin-button.mjs.map +1 -1
  86. package/fesm2022/taiga-ui-core-components-textfield.mjs +124 -327
  87. package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
  88. package/fesm2022/{taiga-ui-core-directives-title.mjs → taiga-ui-core-components-title.mjs} +8 -8
  89. package/fesm2022/{taiga-ui-core-directives-title.mjs.map → taiga-ui-core-components-title.mjs.map} +1 -1
  90. package/fesm2022/taiga-ui-core-components.mjs +2 -3
  91. package/fesm2022/taiga-ui-core-components.mjs.map +1 -1
  92. package/fesm2022/taiga-ui-core-directives-appearance.mjs +16 -16
  93. package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
  94. package/fesm2022/taiga-ui-core-directives-date-format.mjs +26 -20
  95. package/fesm2022/taiga-ui-core-directives-date-format.mjs.map +1 -1
  96. package/fesm2022/taiga-ui-core-directives-group.mjs +23 -35
  97. package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
  98. package/fesm2022/taiga-ui-core-directives-icons.mjs +12 -12
  99. package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
  100. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs +18 -42
  101. package/fesm2022/taiga-ui-core-directives-items-handlers.mjs.map +1 -1
  102. package/fesm2022/taiga-ui-core-directives-number-format.mjs +32 -20
  103. package/fesm2022/taiga-ui-core-directives-number-format.mjs.map +1 -1
  104. package/fesm2022/taiga-ui-core-directives.mjs +0 -4
  105. package/fesm2022/taiga-ui-core-directives.mjs.map +1 -1
  106. package/fesm2022/taiga-ui-core-pipes-format-number.mjs +21 -15
  107. package/fesm2022/taiga-ui-core-pipes-format-number.mjs.map +1 -1
  108. package/fesm2022/taiga-ui-core-pipes.mjs +0 -7
  109. package/fesm2022/taiga-ui-core-pipes.mjs.map +1 -1
  110. package/fesm2022/taiga-ui-core-portals-alert.mjs +73 -0
  111. package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -0
  112. package/fesm2022/taiga-ui-core-portals-dialog.mjs +158 -0
  113. package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -0
  114. package/fesm2022/{taiga-ui-core-directives-dropdown.mjs → taiga-ui-core-portals-dropdown.mjs} +171 -302
  115. package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -0
  116. package/fesm2022/{taiga-ui-core-directives-hint.mjs → taiga-ui-core-portals-hint.mjs} +145 -235
  117. package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -0
  118. package/fesm2022/taiga-ui-core-portals-modal.mjs +89 -0
  119. package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -0
  120. package/fesm2022/{taiga-ui-core-directives-popup.mjs → taiga-ui-core-portals-popup.mjs} +12 -13
  121. package/fesm2022/taiga-ui-core-portals-popup.mjs.map +1 -0
  122. package/fesm2022/taiga-ui-core-portals.mjs +11 -0
  123. package/fesm2022/taiga-ui-core-portals.mjs.map +1 -0
  124. package/fesm2022/taiga-ui-core-services.mjs +15 -79
  125. package/fesm2022/taiga-ui-core-services.mjs.map +1 -1
  126. package/fesm2022/taiga-ui-core-tokens.mjs +51 -60
  127. package/fesm2022/taiga-ui-core-tokens.mjs.map +1 -1
  128. package/fesm2022/taiga-ui-core-utils-format.mjs +1 -22
  129. package/fesm2022/taiga-ui-core-utils-format.mjs.map +1 -1
  130. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs +20 -20
  131. package/fesm2022/taiga-ui-core-utils-miscellaneous.mjs.map +1 -1
  132. package/fesm2022/taiga-ui-core.mjs +1 -1
  133. package/index.d.ts +1 -1
  134. package/package.json +67 -89
  135. package/pipes/format-number/format-number.pipe.d.ts +6 -4
  136. package/pipes/index.d.ts +0 -7
  137. package/portals/alert/alert.directive.d.ts +11 -0
  138. package/portals/alert/alert.service.d.ts +12 -0
  139. package/portals/alert/index.d.ts +2 -0
  140. package/{components → portals}/dialog/dialog.component.d.ts +3 -4
  141. package/portals/dialog/dialog.directive.d.ts +8 -0
  142. package/{components → portals}/dialog/dialog.options.d.ts +2 -3
  143. package/{components → portals}/dialog/dialog.providers.d.ts +1 -2
  144. package/portals/dialog/dialog.service.d.ts +10 -0
  145. package/{components → portals}/dialog/index.d.ts +0 -1
  146. package/{directives → portals}/dropdown/dropdown-hover.directive.d.ts +5 -10
  147. package/{directives → portals}/dropdown/dropdown-hover.options.d.ts +1 -3
  148. package/{directives → portals}/dropdown/dropdown-manual.directive.d.ts +2 -2
  149. package/portals/dropdown/dropdown-open.directive.d.ts +30 -0
  150. package/{directives → portals}/dropdown/dropdown-options.directive.d.ts +0 -4
  151. package/{directives → portals}/dropdown/dropdown-position-sided.directive.d.ts +3 -3
  152. package/{directives → portals}/dropdown/dropdown-position.directive.d.ts +5 -5
  153. package/{directives → portals}/dropdown/dropdown-selection.directive.d.ts +4 -5
  154. package/{directives → portals}/dropdown/dropdown.bindings.d.ts +0 -1
  155. package/{directives → portals}/dropdown/dropdown.d.ts +1 -2
  156. package/{directives → portals}/dropdown/dropdown.directive.d.ts +6 -8
  157. package/{directives → portals}/dropdown/index.d.ts +0 -1
  158. package/{directives → portals}/hint/hint-describe.directive.d.ts +4 -6
  159. package/{directives → portals}/hint/hint-host.directive.d.ts +2 -2
  160. package/{directives → portals}/hint/hint-hover.directive.d.ts +3 -4
  161. package/{directives → portals}/hint/hint-manual.directive.d.ts +2 -2
  162. package/{directives → portals}/hint/hint-overflow.directive.d.ts +2 -2
  163. package/{directives → portals}/hint/hint-position.directive.d.ts +6 -7
  164. package/{directives → portals}/hint/hint-unstyled.component.d.ts +2 -7
  165. package/{directives → portals}/hint/hint.component.d.ts +7 -6
  166. package/portals/hint/hint.directive.d.ts +24 -0
  167. package/{directives → portals}/hint/index.d.ts +0 -2
  168. package/portals/index.d.ts +6 -0
  169. package/portals/modal/index.d.ts +2 -0
  170. package/portals/modal/modal.component.d.ts +17 -0
  171. package/portals/modal/modal.service.d.ts +13 -0
  172. package/services/index.d.ts +0 -3
  173. package/styles/components/appearance.less +5 -0
  174. package/styles/components/button.less +10 -20
  175. package/styles/components/icon.less +11 -0
  176. package/styles/components/icons.less +2 -1
  177. package/styles/components/label.less +3 -12
  178. package/styles/components/link.less +9 -24
  179. package/styles/components/notification.less +21 -22
  180. package/styles/components/textfield.less +35 -68
  181. package/styles/components/title.less +8 -8
  182. package/styles/mixins/appearance.less +10 -26
  183. package/styles/mixins/appearance.scss +8 -24
  184. package/styles/mixins/date-picker.less +1 -1
  185. package/styles/mixins/mixins.less +0 -13
  186. package/styles/mixins/mixins.scss +0 -13
  187. package/styles/mixins/picker.less +1 -1
  188. package/styles/mixins/picker.scss +1 -1
  189. package/styles/mixins/slider.less +1 -1
  190. package/styles/mixins/slider.scss +2 -3
  191. package/styles/taiga-ui-local.less +0 -1
  192. package/styles/taiga-ui-local.scss +0 -1
  193. package/styles/taiga-ui-theme.less +0 -1
  194. package/styles/theme/appearance/outline.less +9 -18
  195. package/styles/theme/appearance/primary.less +2 -4
  196. package/styles/theme/appearance/secondary.less +6 -14
  197. package/styles/theme/appearance/status.less +0 -4
  198. package/styles/theme/appearance/table.less +38 -31
  199. package/styles/theme/appearance.less +0 -1
  200. package/styles/theme/variables.less +18 -19
  201. package/tokens/breakpoint.d.ts +4 -0
  202. package/tokens/common-icons.d.ts +3 -3
  203. package/tokens/date-format.d.ts +2 -3
  204. package/tokens/i18n.d.ts +7 -7
  205. package/tokens/icons.d.ts +0 -4
  206. package/tokens/index.d.ts +1 -4
  207. package/tokens/number-format.d.ts +2 -3
  208. package/types/index.d.ts +0 -3
  209. package/types/point.d.ts +1 -1
  210. package/types/size.d.ts +0 -11
  211. package/utils/format/index.d.ts +0 -1
  212. package/utils/miscellaneous/font-scaling.d.ts +2 -1
  213. package/utils/miscellaneous/get-duration.d.ts +2 -0
  214. package/utils/miscellaneous/index.d.ts +1 -1
  215. package/animations/animations.d.ts +0 -109
  216. package/animations/index.d.ts +0 -1
  217. package/components/alert/alert.component.d.ts +0 -13
  218. package/components/alert/alert.directive.d.ts +0 -8
  219. package/components/alert/alert.interfaces.d.ts +0 -14
  220. package/components/alert/alert.service.d.ts +0 -10
  221. package/components/alert/alert.tokens.d.ts +0 -5
  222. package/components/alert/index.d.ts +0 -5
  223. package/components/data-list/data-list.directive.d.ts +0 -7
  224. package/components/data-list/option/option-content.d.ts +0 -16
  225. package/components/data-list/option/option-legacy.component.d.ts +0 -24
  226. package/components/data-list/option/option.directive.d.ts +0 -27
  227. package/components/dialog/active-zone-adapter.directive.d.ts +0 -11
  228. package/components/dialog/dialog.directive.d.ts +0 -7
  229. package/components/dialog/dialog.service.d.ts +0 -7
  230. package/components/dialog/dialogs.component.d.ts +0 -8
  231. package/components/header/header.directive.d.ts +0 -17
  232. package/components/header/index.d.ts +0 -1
  233. package/components/link/link.options.d.ts +0 -12
  234. package/components/textfield/textfield.directive.d.ts +0 -38
  235. package/directives/dropdown/dropdown-open-legacy.directive.d.ts +0 -12
  236. package/directives/dropdown/dropdown-open.directive.d.ts +0 -33
  237. package/directives/hint/hint.directive.d.ts +0 -26
  238. package/directives/hint/hint.service.d.ts +0 -13
  239. package/directives/hint/hints.component.d.ts +0 -12
  240. package/fesm2022/taiga-ui-core-animations.mjs +0 -370
  241. package/fesm2022/taiga-ui-core-animations.mjs.map +0 -1
  242. package/fesm2022/taiga-ui-core-components-alert.mjs +0 -112
  243. package/fesm2022/taiga-ui-core-components-alert.mjs.map +0 -1
  244. package/fesm2022/taiga-ui-core-components-dialog.mjs +0 -215
  245. package/fesm2022/taiga-ui-core-components-dialog.mjs.map +0 -1
  246. package/fesm2022/taiga-ui-core-components-header.mjs +0 -42
  247. package/fesm2022/taiga-ui-core-components-header.mjs.map +0 -1
  248. package/fesm2022/taiga-ui-core-directives-dropdown.mjs.map +0 -1
  249. package/fesm2022/taiga-ui-core-directives-hint.mjs.map +0 -1
  250. package/fesm2022/taiga-ui-core-directives-popup.mjs.map +0 -1
  251. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs +0 -25
  252. package/fesm2022/taiga-ui-core-pipes-auto-color.mjs.map +0 -1
  253. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs +0 -94
  254. package/fesm2022/taiga-ui-core-pipes-calendar-sheet.mjs.map +0 -1
  255. package/fesm2022/taiga-ui-core-pipes-flag.mjs +0 -32
  256. package/fesm2022/taiga-ui-core-pipes-flag.mjs.map +0 -1
  257. package/fesm2022/taiga-ui-core-pipes-format-date.mjs +0 -28
  258. package/fesm2022/taiga-ui-core-pipes-format-date.mjs.map +0 -1
  259. package/fesm2022/taiga-ui-core-pipes-initials.mjs +0 -29
  260. package/fesm2022/taiga-ui-core-pipes-initials.mjs.map +0 -1
  261. package/fesm2022/taiga-ui-core-pipes-month.mjs +0 -29
  262. package/fesm2022/taiga-ui-core-pipes-month.mjs.map +0 -1
  263. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs +0 -36
  264. package/fesm2022/taiga-ui-core-pipes-order-week-days.mjs.map +0 -1
  265. package/pipes/auto-color/auto-color.pipe.d.ts +0 -7
  266. package/pipes/auto-color/index.d.ts +0 -1
  267. package/pipes/calendar-sheet/index.d.ts +0 -1
  268. package/pipes/calendar-sheet/utils.d.ts +0 -20
  269. package/pipes/flag/flag.pipe.d.ts +0 -14
  270. package/pipes/flag/index.d.ts +0 -1
  271. package/pipes/format-date/format-date.pipe.d.ts +0 -9
  272. package/pipes/format-date/index.d.ts +0 -1
  273. package/pipes/initials/index.d.ts +0 -1
  274. package/pipes/initials/initials.pipe.d.ts +0 -7
  275. package/pipes/month/index.d.ts +0 -1
  276. package/pipes/month/month.pipe.d.ts +0 -10
  277. package/pipes/order-week-days/index.d.ts +0 -1
  278. package/services/breakpoint.service.d.ts +0 -16
  279. package/services/dark-theme.service.d.ts +0 -10
  280. package/services/format-date.service.d.ts +0 -8
  281. package/styles/mixins/wrapper.less +0 -64
  282. package/styles/mixins/wrapper.scss +0 -61
  283. package/styles/theme/appearance/opposite.less +0 -17
  284. package/styles/theme/wrapper.less +0 -211
  285. package/tokens/day-type-handler.d.ts +0 -7
  286. package/tokens/first-day-of-week.d.ts +0 -5
  287. package/tokens/scroll-ref.d.ts +0 -2
  288. package/tokens/spin-icons.d.ts +0 -6
  289. package/types/portal-item.d.ts +0 -9
  290. package/types/range-state.d.ts +0 -4
  291. package/types/value-content-context.d.ts +0 -4
  292. package/utils/format/string-hash-to-hsl.d.ts +0 -6
  293. package/utils/miscellaneous/to-animation-options.d.ts +0 -4
  294. /package/{directives → components}/title/index.d.ts +0 -0
  295. /package/{directives → components}/title/title.directive.d.ts +0 -0
  296. /package/{components → portals}/dialog/dialog.factory.d.ts +0 -0
  297. /package/{directives → portals}/dropdown/dropdown-content.directive.d.ts +0 -0
  298. /package/{directives → portals}/dropdown/dropdown-context.directive.d.ts +0 -0
  299. /package/{directives → portals}/dropdown/dropdown-limit-width.d.ts +0 -0
  300. /package/{directives → portals}/dropdown/dropdown.component.d.ts +0 -0
  301. /package/{directives → portals}/dropdown/dropdown.driver.d.ts +0 -0
  302. /package/{directives → portals}/dropdown/dropdown.providers.d.ts +0 -0
  303. /package/{directives → portals}/dropdown/with-dropdown-open.directive.d.ts +0 -0
  304. /package/{directives → portals}/hint/hint-driver.directive.d.ts +0 -0
  305. /package/{directives → portals}/hint/hint-options.directive.d.ts +0 -0
  306. /package/{directives → portals}/hint/hint-pointer.directive.d.ts +0 -0
  307. /package/{directives → portals}/hint/hint.d.ts +0 -0
  308. /package/{directives → portals}/hint/hint.providers.d.ts +0 -0
  309. /package/{directives → portals}/popup/index.d.ts +0 -0
  310. /package/{directives → portals}/popup/popup.directive.d.ts +0 -0
  311. /package/{directives → portals}/popup/popup.service.d.ts +0 -0
  312. /package/{directives → portals}/popup/popups.component.d.ts +0 -0
@@ -3,14 +3,12 @@ import * as i0 from "@angular/core";
3
3
  export declare class TuiHintDescribe extends TuiDriver {
4
4
  private readonly doc;
5
5
  private readonly el;
6
- private readonly zone;
7
- private readonly id$;
8
- private readonly stream$;
6
+ protected readonly element: import("@angular/core").Signal<Element>;
7
+ readonly id: import("@angular/core").InputSignal<string | null | undefined>;
9
8
  readonly type = "hint";
9
+ protected readonly stream$: import("rxjs").Observable<boolean>;
10
10
  constructor();
11
- set tuiHintDescribe(id: string | null | undefined);
12
- private get element();
13
11
  private get focused();
14
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintDescribe, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintDescribe, "[tuiHintDescribe]", never, { "tuiHintDescribe": { "alias": "tuiHintDescribe"; "required": false; }; }, {}, never, never, true, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintDescribe, "[tuiHintDescribe]", never, { "id": { "alias": "tuiHintDescribe"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
16
14
  }
@@ -1,9 +1,9 @@
1
1
  import { TuiRectAccessor } from '@taiga-ui/core/classes';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class TuiHintHost extends TuiRectAccessor {
4
- tuiHintHost?: HTMLElement;
4
+ readonly tuiHintHost: import("@angular/core").InputSignal<HTMLElement | undefined>;
5
5
  readonly type = "hint";
6
6
  getClientRect(): DOMRect;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintHost, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintHost, "[tuiHint][tuiHintHost]", never, { "tuiHintHost": { "alias": "tuiHintHost"; "required": false; }; }, {}, never, never, true, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintHost, "[tuiHint][tuiHintHost]", never, { "tuiHintHost": { "alias": "tuiHintHost"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
9
  }
@@ -1,5 +1,4 @@
1
1
  import { TuiDriver } from '@taiga-ui/core/classes';
2
- import { type TuiHintOptions } from './hint-options.directive';
3
2
  import * as i0 from "@angular/core";
4
3
  export declare class TuiHintHover extends TuiDriver {
5
4
  private readonly isMobile;
@@ -10,13 +9,13 @@ export declare class TuiHintHover extends TuiDriver {
10
9
  private readonly toggle$;
11
10
  private readonly stream$;
12
11
  private readonly parent;
13
- tuiHintShowDelay: TuiHintOptions['showDelay'];
14
- tuiHintHideDelay: TuiHintOptions['hideDelay'];
12
+ readonly showDelay: import("@angular/core").InputSignal<number>;
13
+ readonly hideDelay: import("@angular/core").InputSignal<number>;
15
14
  readonly type = "hint";
16
15
  enabled: boolean;
17
16
  constructor();
18
17
  toggle(visible?: boolean): void;
19
18
  close(): void;
20
19
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintHover, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintHover, never, ["tuiHintHover"], { "tuiHintShowDelay": { "alias": "tuiHintShowDelay"; "required": false; }; "tuiHintHideDelay": { "alias": "tuiHintHideDelay"; "required": false; }; }, {}, never, never, true, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintHover, never, ["tuiHintHover"], { "showDelay": { "alias": "tuiHintShowDelay"; "required": false; "isSignal": true; }; "hideDelay": { "alias": "tuiHintHideDelay"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
22
21
  }
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  export declare class TuiHintManual extends TuiDriver implements OnChanges {
5
5
  private readonly hover;
6
6
  private readonly stream$;
7
- tuiHintManual: boolean | null;
7
+ readonly visible: import("@angular/core").InputSignal<boolean | null>;
8
8
  readonly type = "hint";
9
9
  constructor();
10
10
  ngOnChanges(): void;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintManual, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintManual, "[tuiHint][tuiHintManual]", never, { "tuiHintManual": { "alias": "tuiHintManual"; "required": false; }; }, {}, never, never, true, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintManual, "[tuiHint][tuiHintManual]", never, { "visible": { "alias": "tuiHintManual"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
13
13
  }
@@ -2,8 +2,8 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./hint.directive";
3
3
  export declare class TuiHintOverflow {
4
4
  private readonly hint;
5
- tuiHintOverflow: string | null;
5
+ readonly content: import("@angular/core").InputSignal<string | null>;
6
6
  protected onMouseEnter({ scrollWidth, clientWidth, textContent }: Element): void;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintOverflow, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintOverflow, "[tuiHintOverflow]", never, { "tuiHintOverflow": { "alias": "tuiHintOverflow"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.TuiHintDirective; inputs: { "tuiHintAppearance": "tuiHintAppearance"; }; outputs: {}; }]>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintOverflow, "[tuiHintOverflow]", never, { "content": { "alias": "tuiHintOverflow"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.TuiHintDirective; inputs: { "tuiHintAppearance": "tuiHintAppearance"; }; outputs: {}; }]>;
9
9
  }
@@ -1,21 +1,20 @@
1
- import { EventEmitter } from '@angular/core';
2
1
  import { TuiPositionAccessor } from '@taiga-ui/core/classes';
3
2
  import { type TuiPoint } from '@taiga-ui/core/types';
4
- import { type TuiHintDirection, type TuiHintOptions } from './hint-options.directive';
3
+ import { type TuiHintDirection } from './hint-options.directive';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class TuiHintPosition extends TuiPositionAccessor {
7
6
  private readonly el;
8
- private readonly offset;
9
7
  private readonly viewport;
10
8
  private readonly accessor;
11
9
  private readonly points;
12
- direction: TuiHintOptions['direction'];
13
- readonly directionChange: EventEmitter<TuiHintDirection>;
10
+ readonly direction: import("@angular/core").InputSignal<TuiHintDirection | TuiHintDirection[]>;
11
+ readonly offset: import("@angular/core").InputSignal<number>;
12
+ readonly directionChange: import("@angular/core").OutputEmitterRef<TuiHintDirection>;
14
13
  readonly type = "hint";
15
14
  emitDirection(direction: TuiHintDirection): void;
16
- getPosition(rect: DOMRect, el?: HTMLElement): TuiPoint;
15
+ getPosition({ width, height }: DOMRect): TuiPoint;
17
16
  private get fallback();
18
17
  private checkPosition;
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintPosition, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintPosition, never, never, { "direction": { "alias": "tuiHintDirection"; "required": false; }; }, { "directionChange": "tuiHintDirectionChange"; }, never, never, true, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintPosition, never, never, { "direction": { "alias": "tuiHintDirection"; "required": false; "isSignal": true; }; "offset": { "alias": "tuiHintOffset"; "required": false; "isSignal": true; }; }, { "directionChange": "tuiHintDirectionChange"; }, never, never, true, never>;
21
20
  }
@@ -1,12 +1,7 @@
1
- import { type WritableSignal } from '@angular/core';
2
- import { type TuiContext } from '@taiga-ui/cdk/types';
3
- import { type TuiPortalItem } from '@taiga-ui/core/types';
4
- import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
1
+ import { TuiHintDirective } from './hint.directive';
5
2
  import * as i0 from "@angular/core";
6
3
  export declare class TuiHintUnstyledComponent {
7
- protected readonly context: TuiContext<TuiPortalItem<any> & {
8
- content: WritableSignal<PolymorpheusContent>;
9
- }>;
4
+ protected readonly hint: TuiHintDirective<any>;
10
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintUnstyledComponent, never>;
11
6
  static ɵcmp: i0.ɵɵComponentDeclaration<TuiHintUnstyledComponent, "ng-component", never, {}, {}, never, never, true, never>;
12
7
  }
@@ -6,23 +6,24 @@ import { TuiHintPointer } from './hint-pointer.directive';
6
6
  import * as i0 from "@angular/core";
7
7
  import * as i1 from "@taiga-ui/core/directives/appearance";
8
8
  import * as i2 from "@taiga-ui/cdk/directives/animated";
9
+ import * as i3 from "@taiga-ui/cdk/directives/active-zone";
9
10
  export declare const TUI_HINT_PROVIDERS: (import("@angular/core").FactoryProvider | typeof TuiHoveredService | typeof TuiPositionService)[];
10
- export declare class TuiHintComponent<C = any> {
11
+ export declare class TuiHintComponent {
11
12
  private readonly el;
12
13
  private readonly hover;
13
14
  private readonly vvs;
14
15
  private readonly viewport;
15
16
  protected readonly pointer: TuiHintPointer | null;
16
17
  protected readonly accessor: TuiRectAccessor;
17
- protected readonly hint: TuiHintDirective<C>;
18
+ protected readonly hint: TuiHintDirective<any>;
18
19
  protected readonly isMobile: boolean;
19
- protected readonly content: import("@angular/core").WritableSignal<import("@taiga-ui/polymorpheus").PolymorpheusContent<C>>;
20
+ protected readonly content: import("@angular/core").InputSignal<import("@taiga-ui/polymorpheus").PolymorpheusContent<any>> | import("@angular/core").WritableSignal<string>;
20
21
  protected readonly theme: string | null | undefined;
21
- protected readonly appearance: import("@angular/core").WritableSignal<string>;
22
+ protected readonly appearance: import("@angular/core").Signal<string>;
22
23
  constructor();
23
24
  protected onClick(target: HTMLElement): void;
24
25
  private apply;
25
26
  private update;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintComponent<any>, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<TuiHintComponent<any>, "tui-hint", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.TuiAppearance; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAnimated; inputs: {}; outputs: {}; }]>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiHintComponent, "tui-hint", never, {}, {}, never, ["*"], true, [{ directive: typeof i1.TuiAppearance; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i3.TuiActiveZone; inputs: {}; outputs: {}; }]>;
28
29
  }
@@ -0,0 +1,24 @@
1
+ import { type OnChanges, type OnDestroy } from '@angular/core';
2
+ import { type TuiRectAccessor, type TuiVehicle } from '@taiga-ui/core/classes';
3
+ import { PolymorpheusComponent, type PolymorpheusContent } from '@taiga-ui/polymorpheus';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "./hint-driver.directive";
6
+ import * as i2 from "./hint-hover.directive";
7
+ import * as i3 from "./hint-position.directive";
8
+ export declare class TuiHintDirective<C> implements OnDestroy, OnChanges, TuiRectAccessor, TuiVehicle {
9
+ private readonly service;
10
+ private ref?;
11
+ readonly content: import("@angular/core").InputSignal<PolymorpheusContent<C>>;
12
+ readonly context: import("@angular/core").InputSignal<C | undefined>;
13
+ readonly appearance: import("@angular/core").InputSignal<"" | ("accent" | "action-destructive" | "action-grayscale" | "action" | "flat-destructive" | "flat-grayscale" | "flat" | "floating" | "glass" | "icon" | "info" | "negative" | "neutral" | "outline-destructive" | "outline-grayscale" | "outline" | "positive" | "primary-destructive" | "primary-grayscale" | "primary" | "secondary-destructive" | "secondary-grayscale" | "secondary" | "textfield" | "warning" | (Record<never, never> & string))>;
14
+ readonly visible: import("@angular/core").OutputEmitterRef<boolean>;
15
+ component: PolymorpheusComponent<any>;
16
+ readonly el: HTMLElement;
17
+ readonly type = "hint";
18
+ ngOnChanges(): void;
19
+ ngOnDestroy(): void;
20
+ getClientRect(): DOMRect;
21
+ toggle(show: boolean): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiHintDirective<any>, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TuiHintDirective<any>, "[tuiHint]:not(ng-container):not(ng-template)", never, { "content": { "alias": "tuiHint"; "required": false; "isSignal": true; }; "context": { "alias": "tuiHintContext"; "required": false; "isSignal": true; }; "appearance": { "alias": "tuiHintAppearance"; "required": false; "isSignal": true; }; }, { "visible": "tuiHintVisible"; }, never, never, true, [{ directive: typeof i1.TuiHintDriver; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiHintHover; inputs: { "tuiHintHideDelay": "tuiHintHideDelay"; "tuiHintShowDelay": "tuiHintShowDelay"; }; outputs: {}; }, { directive: typeof i3.TuiHintPosition; inputs: { "tuiHintDirection": "tuiHintDirection"; "tuiHintOffset": "tuiHintOffset"; }; outputs: { "tuiHintDirectionChange": "tuiHintDirectionChange"; }; }]>;
24
+ }
@@ -2,7 +2,6 @@ export * from './hint';
2
2
  export * from './hint.component';
3
3
  export * from './hint.directive';
4
4
  export * from './hint.providers';
5
- export * from './hint.service';
6
5
  export * from './hint-describe.directive';
7
6
  export * from './hint-driver.directive';
8
7
  export * from './hint-host.directive';
@@ -13,4 +12,3 @@ export * from './hint-overflow.directive';
13
12
  export * from './hint-pointer.directive';
14
13
  export * from './hint-position.directive';
15
14
  export * from './hint-unstyled.component';
16
- export * from './hints.component';
@@ -0,0 +1,6 @@
1
+ export * from '@taiga-ui/core/portals/alert';
2
+ export * from '@taiga-ui/core/portals/dialog';
3
+ export * from '@taiga-ui/core/portals/dropdown';
4
+ export * from '@taiga-ui/core/portals/hint';
5
+ export * from '@taiga-ui/core/portals/modal';
6
+ export * from '@taiga-ui/core/portals/popup';
@@ -0,0 +1,2 @@
1
+ export * from './modal.component';
2
+ export * from './modal.service';
@@ -0,0 +1,17 @@
1
+ import { type OnDestroy, type OnInit } from '@angular/core';
2
+ import { type TuiPortalContext } from '@taiga-ui/cdk/portals';
3
+ import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "@taiga-ui/cdk/directives/active-zone";
6
+ import * as i2 from "@taiga-ui/cdk/directives/focus-trap";
7
+ import * as i3 from "@taiga-ui/core/components/scrollbar";
8
+ export declare class TuiModalComponent<T> implements OnDestroy, OnInit {
9
+ private readonly current;
10
+ private readonly parent;
11
+ readonly context: TuiPortalContext<T>;
12
+ readonly component: import("@angular/core").WritableSignal<PolymorpheusContent<TuiPortalContext<T>>>;
13
+ ngOnInit(): void;
14
+ ngOnDestroy(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiModalComponent<any>, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<TuiModalComponent<any>, "tui-modal", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiActiveZone; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiFocusTrap; inputs: {}; outputs: {}; }, { directive: typeof i3.TuiScrollRef; inputs: {}; outputs: {}; }]>;
17
+ }
@@ -0,0 +1,13 @@
1
+ import { type Type } from '@angular/core';
2
+ import { TuiPortal } from '@taiga-ui/cdk/portals';
3
+ import { PolymorpheusComponent } from '@taiga-ui/polymorpheus';
4
+ import { TuiModalComponent } from './modal.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare abstract class TuiModalService<T, K = void> extends TuiPortal<T, K> {
7
+ protected abstract readonly content: Type<unknown>;
8
+ protected readonly component: typeof TuiModalComponent;
9
+ constructor();
10
+ protected add(component: PolymorpheusComponent<TuiModalComponent<T>>): () => void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<TuiModalService<any, any>, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<TuiModalService<any, any>>;
13
+ }
@@ -1,5 +1,2 @@
1
- export * from './breakpoint.service';
2
- export * from './dark-theme.service';
3
- export * from './format-date.service';
4
1
  export * from './position.service';
5
2
  export * from './visual-viewport.service';
@@ -41,5 +41,10 @@
41
41
  .appearance-disabled({
42
42
  cursor: initial;
43
43
  opacity: var(--tui-disabled-opacity);
44
+
45
+ &::before,
46
+ &::after {
47
+ cursor: initial;
48
+ }
44
49
  });
45
50
  }
@@ -32,7 +32,7 @@
32
32
  padding: var(--t-padding);
33
33
  user-select: none;
34
34
  cursor: pointer;
35
- font: var(--tui-font-text-m);
35
+ font: var(--tui-font-body-m);
36
36
  font-weight: bold;
37
37
 
38
38
  > .t-loader {
@@ -50,10 +50,11 @@
50
50
  --t-padding: 0 0.375rem;
51
51
  --t-margin: -0.125rem;
52
52
 
53
- font: var(--tui-font-text-s);
53
+ font: var(--tui-font-body-s);
54
54
 
55
55
  tui-icon,
56
- &::before {
56
+ &::before,
57
+ &::after {
57
58
  font-size: 1rem;
58
59
  }
59
60
  }
@@ -65,10 +66,11 @@
65
66
  --t-padding: 0 0.625rem;
66
67
  --t-margin: -0.125rem;
67
68
 
68
- font: var(--tui-font-text-s);
69
+ font: var(--tui-font-body-s);
69
70
 
70
71
  tui-icon,
71
- &:not([tuiIconButton][data-appearance='icon']):not([tuiIconButton][data-appearance='link'])::before {
72
+ &:not([tuiIconButton][data-appearance='icon'], [tuiIconButton][data-appearance='link'])::before,
73
+ &:not([tuiIconButton][data-appearance='icon'], [tuiIconButton][data-appearance='link'])::after {
72
74
  font-size: 1rem;
73
75
  }
74
76
  }
@@ -80,12 +82,8 @@
80
82
  --t-padding: 0 1rem;
81
83
  --t-margin: -0.375rem;
82
84
 
83
- font: var(--tui-font-text-m);
85
+ font: var(--tui-font-body-m);
84
86
  font-weight: bold;
85
-
86
- &::after {
87
- margin-inline-end: -0.125rem;
88
- }
89
87
  }
90
88
 
91
89
  &._loading {
@@ -104,10 +102,6 @@
104
102
  }
105
103
  }
106
104
 
107
- &[tuiIcons]::after {
108
- font-size: 1rem;
109
- }
110
-
111
105
  &[tuiButtonVertical] {
112
106
  // StackBlitz changes "0rem" to "0" breaking calc
113
107
  --t-margin: ~'0rem' !important;
@@ -120,7 +114,7 @@
120
114
  gap: 0.375rem;
121
115
  min-inline-size: 5rem;
122
116
  white-space: pre-line;
123
- font: var(--tui-font-text-ui-s);
117
+ font: var(--tui-font-ui-s);
124
118
 
125
119
  & > * {
126
120
  max-block-size: calc(var(--t-line-height) * 2);
@@ -134,11 +128,7 @@
134
128
  font-size: 0 !important;
135
129
  padding: 0;
136
130
 
137
- &[data-size='l']::after {
138
- margin: 0;
139
- }
140
-
141
- &&[style*='--t-icon-start:']::after {
131
+ &&[data-icon-start]::after {
142
132
  display: none;
143
133
  }
144
134
  }
@@ -31,6 +31,7 @@ tui-icon {
31
31
  vertical-align: middle;
32
32
  box-sizing: border-box;
33
33
  mask: var(--t-icon-bg) no-repeat center / calc(100% + 10 * var(--tui-stroke-width, 0.125rem)) 100%;
34
+ zoom: ~'calc(100% * (min(max(var(--tui-font-offset) - 10px, 0px), 1px) / 0.8px))';
34
35
 
35
36
  @media @tui-mouse {
36
37
  &[data-appearance='icon']:hover {
@@ -69,4 +70,14 @@ tui-icon {
69
70
  --tui-icon-size: 0.5715em;
70
71
  }
71
72
  }
73
+
74
+ &[data-icon-start='img']::before,
75
+ &[data-icon-end='img']::after {
76
+ zoom: 1;
77
+ }
78
+
79
+ &[data-icon-start='font']::before,
80
+ &[data-icon-end='font']::after {
81
+ zoom: 0.667;
82
+ }
72
83
  }
@@ -31,6 +31,7 @@
31
31
  flex-shrink: 0;
32
32
  box-sizing: content-box;
33
33
  background: currentColor;
34
+ zoom: ~'calc(100% * (min(max(var(--tui-font-offset) - 10px, 0px), 1px) / 0.8px))';
34
35
  }
35
36
 
36
37
  &::before {
@@ -62,7 +63,7 @@
62
63
  display: grid;
63
64
  mask: none;
64
65
  background: none;
65
- font: 1.3em/1 var(--tui-font-icon, inherit);
66
+ font: 1.5em / 1 var(--tui-font-icon, inherit);
66
67
  text-align: center;
67
68
  place-content: center;
68
69
  text-transform: none;
@@ -18,22 +18,13 @@
18
18
  display: flex;
19
19
  gap: 0.25rem;
20
20
  flex-direction: column;
21
- font: var(--tui-font-text-s);
21
+ font: var(--tui-font-body-s);
22
22
  color: var(--tui-text-primary);
23
23
 
24
24
  &:not([data-orientation='vertical']) {
25
25
  flex-direction: row;
26
26
  inline-size: fit-content;
27
- font: var(--tui-font-text-m);
28
- }
29
-
30
- // TODO: Remove after legacy inputs are dropped
31
- &:has(tui-textfield),
32
- &:has(tui-primitive-textfield),
33
- &:has(tui-textarea) {
34
- flex-direction: column !important;
35
- inline-size: auto !important;
36
- font: var(--tui-font-text-s) !important;
27
+ font: var(--tui-font-body-m);
37
28
  }
38
29
 
39
30
  input[type='checkbox'],
@@ -47,7 +38,7 @@
47
38
  }
48
39
 
49
40
  small {
50
- font: var(--tui-font-text-s);
41
+ font: var(--tui-font-body-s);
51
42
  }
52
43
 
53
44
  [tuiTitle] {
@@ -21,19 +21,14 @@
21
21
  border: none;
22
22
  cursor: pointer;
23
23
  font: inherit;
24
- color: var(--tui-text-primary);
25
- text-decoration: none dashed currentColor;
24
+ color: inherit;
25
+ border-radius: 0.125rem;
26
+ outline-width: 1px;
27
+ outline-offset: -1px;
26
28
  text-underline-offset: 0.2em;
27
- text-decoration-thickness: 0.7px;
29
+ text-decoration: none dashed currentColor 1px;
28
30
  text-decoration-color: color-mix(in lch, currentColor, transparent);
29
31
 
30
- // TODO: Remove in v5
31
- @media @tui-mouse {
32
- &:hover {
33
- --tui-text-secondary: var(--tui-text-primary);
34
- }
35
- }
36
-
37
32
  &::before {
38
33
  margin-inline-end: 0.25rem;
39
34
  }
@@ -51,18 +46,13 @@
51
46
  line-height: 0;
52
47
  box-sizing: border-box;
53
48
  mask-size: calc(100% + 10 * var(--tui-stroke-width, 0.125rem)) 100%;
49
+ transition: none;
54
50
  }
55
51
 
56
52
  &[tuiChevron]::after {
57
53
  display: inline-block;
58
54
  }
59
55
 
60
- .appearance-focus({
61
- outline: none;
62
- background: var(--tui-service-selection-background);
63
- background: color-mix(in lch, currentColor 12%, transparent);
64
- });
65
-
66
56
  .appearance-hover({
67
57
  text-decoration-color: currentColor;
68
58
  });
@@ -71,13 +61,8 @@
71
61
  text-decoration-color: currentColor;
72
62
  });
73
63
 
74
- @media @tui-mouse {
75
- &[data-appearance='']:hover {
76
- opacity: 0.7;
77
- }
78
- }
79
-
80
- &[data-appearance='']:active {
81
- opacity: 0.7;
64
+ &[data-appearance=''] {
65
+ text-decoration-line: underline;
66
+ text-decoration-style: solid;
82
67
  }
83
68
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  /**
4
4
  * @name Notification
5
- * @selector tui-notification, [tuiNotification]
5
+ * @selector [tuiNotification]
6
6
  *
7
7
  * @description
8
8
  * A colored rounded block of information with optional icon, title, subtitle and actions
@@ -11,17 +11,16 @@
11
11
  * data-size — size (default: 'l') ('s' | 'm' | 'l')
12
12
  *
13
13
  * @example
14
- * <tui-notification tuiAppearance data-appearance="negative">
14
+ * <div tuiNotification tuiAppearance data-appearance="negative">
15
15
  * <span tuiTitle>
16
16
  * Error
17
17
  * <span tuiSubtitle>Something went wrong</span>
18
18
  * </span>
19
- * </tui-notification>
19
+ * </div>
20
20
  *
21
21
  * @see-also
22
22
  * Icons, Appearance
23
23
  */
24
- tui-notification,
25
24
  [tuiNotification] {
26
25
  .button-clear();
27
26
 
@@ -30,7 +29,7 @@ tui-notification,
30
29
  max-block-size: 100%;
31
30
  color: var(--tui-text-primary);
32
31
  padding: 1rem;
33
- font: var(--tui-font-text-m);
32
+ font: var(--tui-font-body-m);
34
33
  line-height: 1.5rem;
35
34
  border-radius: var(--tui-radius-l);
36
35
  box-sizing: border-box;
@@ -39,14 +38,18 @@ tui-notification,
39
38
  border-inline-start: var(--t-start) solid transparent;
40
39
  border-inline-end: var(--t-end) solid transparent;
41
40
 
41
+ .interactive({
42
+ cursor: pointer;
43
+ });
44
+
42
45
  --t-start: 0;
43
46
  --t-end: 0;
44
47
 
45
- &[style*='--t-icon-start:'] {
48
+ &[data-icon-start] {
46
49
  --t-start: 2rem;
47
50
  }
48
51
 
49
- &[style*='--t-icon-end:'] {
52
+ &[data-icon-end] {
50
53
  --t-end: 1.5rem;
51
54
  }
52
55
 
@@ -74,11 +77,11 @@ tui-notification,
74
77
 
75
78
  &[data-size='s'] {
76
79
  padding: 0.375rem 0.625rem;
77
- font: var(--tui-font-text-s);
80
+ font: var(--tui-font-body-s);
78
81
  line-height: 1.25rem;
79
82
  border-radius: var(--tui-radius-m);
80
83
 
81
- &[style*='--t-icon-start:'] {
84
+ &[data-icon-start] {
82
85
  --t-start: 1.5rem;
83
86
  }
84
87
 
@@ -103,12 +106,12 @@ tui-notification,
103
106
  }
104
107
 
105
108
  [tuiTitle] {
106
- font: var(--tui-font-text-s);
109
+ font: var(--tui-font-body-s);
107
110
  font-weight: bold;
108
111
  }
109
112
 
110
113
  [tuiSubtitle] {
111
- font: var(--tui-font-text-s);
114
+ font: var(--tui-font-body-s);
112
115
  }
113
116
 
114
117
  [tuiSubtitle] + * {
@@ -129,11 +132,11 @@ tui-notification,
129
132
 
130
133
  &[data-size='m'] {
131
134
  padding: 0.75rem;
132
- font: var(--tui-font-text-s);
135
+ font: var(--tui-font-body-s);
133
136
  line-height: 1.25rem;
134
137
  border-radius: var(--tui-radius-m);
135
138
 
136
- &[style*='--t-icon-start:'] {
139
+ &[data-icon-start] {
137
140
  --t-start: 1.625rem;
138
141
  }
139
142
 
@@ -157,12 +160,12 @@ tui-notification,
157
160
  }
158
161
 
159
162
  [tuiTitle] {
160
- font: var(--tui-font-text-ui-m);
163
+ font: var(--tui-font-ui-m);
161
164
  font-weight: bold;
162
165
  }
163
166
 
164
167
  [tuiSubtitle] {
165
- font: var(--tui-font-text-s);
168
+ font: var(--tui-font-body-s);
166
169
  }
167
170
 
168
171
  [tuiSubtitle] + * {
@@ -183,19 +186,19 @@ tui-notification,
183
186
 
184
187
  [tuiTitle] {
185
188
  gap: 0.125rem;
186
- font: var(--tui-font-text-ui-l);
189
+ font: var(--tui-font-ui-l);
187
190
  font-weight: bold;
188
191
  }
189
192
 
190
193
  [tuiSubtitle] {
191
- font: var(--tui-font-text-m);
194
+ font: var(--tui-font-body-m);
192
195
 
193
196
  + * {
194
197
  display: flex;
195
198
  align-items: center;
196
199
  gap: 1.25rem;
197
200
  margin-block-start: 0.625rem;
198
- font: var(--tui-font-text-s);
201
+ font: var(--tui-font-body-s);
199
202
  }
200
203
  }
201
204
 
@@ -212,7 +215,3 @@ tui-notification,
212
215
  }
213
216
  }
214
217
  }
215
-
216
- [tuiNotification] {
217
- cursor: pointer;
218
- }