@ng-cn/core 1.0.16 → 1.0.18

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 (262) hide show
  1. package/package.json +6 -5
  2. package/src/app/lib/components/ui/accordion/accordion-content.component.ts +11 -14
  3. package/src/app/lib/components/ui/accordion/accordion-context.ts +1 -0
  4. package/src/app/lib/components/ui/accordion/accordion-item.component.ts +8 -0
  5. package/src/app/lib/components/ui/accordion/accordion-trigger.component.ts +5 -1
  6. package/src/app/lib/components/ui/accordion/accordion.component.ts +24 -6
  7. package/src/app/lib/components/ui/alert/alert-variants.ts +18 -4
  8. package/src/app/lib/components/ui/alert-dialog/alert-dialog-action.component.ts +1 -0
  9. package/src/app/lib/components/ui/alert-dialog/alert-dialog-cancel.component.ts +1 -1
  10. package/src/app/lib/components/ui/alert-dialog/alert-dialog-content.component.ts +34 -17
  11. package/src/app/lib/components/ui/alert-dialog/alert-dialog-description.component.ts +1 -0
  12. package/src/app/lib/components/ui/alert-dialog/alert-dialog-footer.component.ts +1 -0
  13. package/src/app/lib/components/ui/alert-dialog/alert-dialog-header.component.ts +1 -0
  14. package/src/app/lib/components/ui/alert-dialog/alert-dialog-title.component.ts +1 -0
  15. package/src/app/lib/components/ui/alert-dialog/alert-dialog-trigger.component.ts +1 -0
  16. package/src/app/lib/components/ui/alert-dialog/alert-dialog.component.ts +4 -0
  17. package/src/app/lib/components/ui/aspect-ratio/aspect-ratio.component.ts +1 -0
  18. package/src/app/lib/components/ui/avatar/avatar-context.ts +9 -0
  19. package/src/app/lib/components/ui/avatar/avatar-fallback.component.ts +6 -9
  20. package/src/app/lib/components/ui/avatar/avatar-image.component.ts +40 -11
  21. package/src/app/lib/components/ui/avatar/avatar.component.ts +18 -13
  22. package/src/app/lib/components/ui/avatar/index.ts +1 -0
  23. package/src/app/lib/components/ui/avatar/ui-avatar.component.ts +13 -20
  24. package/src/app/lib/components/ui/badge/badge-variants.ts +1 -1
  25. package/src/app/lib/components/ui/badge/badge.component.ts +1 -0
  26. package/src/app/lib/components/ui/breadcrumb/breadcrumb-ellipsis.component.ts +1 -0
  27. package/src/app/lib/components/ui/breadcrumb/breadcrumb-item.component.ts +3 -7
  28. package/src/app/lib/components/ui/breadcrumb/breadcrumb-link.component.ts +4 -11
  29. package/src/app/lib/components/ui/breadcrumb/breadcrumb-list.component.ts +3 -7
  30. package/src/app/lib/components/ui/breadcrumb/breadcrumb-page.component.ts +1 -0
  31. package/src/app/lib/components/ui/breadcrumb/breadcrumb-separator.component.ts +20 -24
  32. package/src/app/lib/components/ui/breadcrumb/breadcrumb.component.ts +1 -0
  33. package/src/app/lib/components/ui/button/button-variants.ts +3 -3
  34. package/src/app/lib/components/ui/button/button.component.ts +1 -0
  35. package/src/app/lib/components/ui/button-group/button-group.component.ts +1 -0
  36. package/src/app/lib/components/ui/calendar/calendar.component.ts +5 -1
  37. package/src/app/lib/components/ui/carousel/carousel-content.component.ts +1 -0
  38. package/src/app/lib/components/ui/carousel/carousel-item.component.ts +1 -0
  39. package/src/app/lib/components/ui/carousel/carousel-next.component.ts +1 -0
  40. package/src/app/lib/components/ui/carousel/carousel-previous.component.ts +1 -0
  41. package/src/app/lib/components/ui/carousel/carousel.component.ts +1 -0
  42. package/src/app/lib/components/ui/chart/chart-container.component.ts +1 -0
  43. package/src/app/lib/components/ui/chart/chart-legend-content.component.ts +1 -0
  44. package/src/app/lib/components/ui/chart/chart-legend.component.ts +5 -5
  45. package/src/app/lib/components/ui/chart/chart-tooltip-content.component.ts +5 -5
  46. package/src/app/lib/components/ui/chart/chart-tooltip.component.ts +5 -5
  47. package/src/app/lib/components/ui/chart/chart.component.ts +1 -0
  48. package/src/app/lib/components/ui/checkbox/checkbox.component.ts +1 -1
  49. package/src/app/lib/components/ui/collapsible/collapsible-content.component.ts +3 -1
  50. package/src/app/lib/components/ui/collapsible/collapsible-context.ts +1 -0
  51. package/src/app/lib/components/ui/collapsible/collapsible-trigger.component.ts +2 -0
  52. package/src/app/lib/components/ui/collapsible/collapsible.component.ts +4 -0
  53. package/src/app/lib/components/ui/combobox/combobox-content.component.ts +1 -0
  54. package/src/app/lib/components/ui/combobox/combobox-empty.component.ts +1 -0
  55. package/src/app/lib/components/ui/combobox/combobox-group.component.ts +1 -0
  56. package/src/app/lib/components/ui/combobox/combobox-input.component.ts +1 -0
  57. package/src/app/lib/components/ui/combobox/combobox-item.component.ts +1 -4
  58. package/src/app/lib/components/ui/combobox/combobox-list.component.ts +1 -1
  59. package/src/app/lib/components/ui/combobox/combobox-trigger.component.ts +1 -0
  60. package/src/app/lib/components/ui/combobox/combobox-value.component.ts +1 -0
  61. package/src/app/lib/components/ui/combobox/combobox.component.ts +1 -1
  62. package/src/app/lib/components/ui/command/command-dialog.component.ts +1 -0
  63. package/src/app/lib/components/ui/command/command-empty.component.ts +1 -0
  64. package/src/app/lib/components/ui/command/command-group.component.ts +1 -0
  65. package/src/app/lib/components/ui/command/command-input.component.ts +1 -0
  66. package/src/app/lib/components/ui/command/command-item.component.ts +2 -1
  67. package/src/app/lib/components/ui/command/command-list.component.ts +1 -0
  68. package/src/app/lib/components/ui/command/command-separator.component.ts +1 -0
  69. package/src/app/lib/components/ui/command/command-shortcut.component.ts +1 -0
  70. package/src/app/lib/components/ui/command/command.component.ts +1 -0
  71. package/src/app/lib/components/ui/context-menu/context-menu-checkbox-item.component.ts +1 -0
  72. package/src/app/lib/components/ui/context-menu/context-menu-content.component.ts +49 -17
  73. package/src/app/lib/components/ui/context-menu/context-menu-item.component.ts +2 -1
  74. package/src/app/lib/components/ui/context-menu/context-menu-label.component.ts +1 -0
  75. package/src/app/lib/components/ui/context-menu/context-menu-radio-group.component.ts +1 -0
  76. package/src/app/lib/components/ui/context-menu/context-menu-radio-item.component.ts +1 -0
  77. package/src/app/lib/components/ui/context-menu/context-menu-separator.component.ts +1 -0
  78. package/src/app/lib/components/ui/context-menu/context-menu-shortcut.component.ts +1 -0
  79. package/src/app/lib/components/ui/context-menu/context-menu-sub-content.component.ts +3 -0
  80. package/src/app/lib/components/ui/context-menu/context-menu-sub-trigger.component.ts +32 -2
  81. package/src/app/lib/components/ui/context-menu/context-menu-sub.component.ts +4 -0
  82. package/src/app/lib/components/ui/context-menu/context-menu-trigger.component.ts +1 -0
  83. package/src/app/lib/components/ui/context-menu/context-menu.component.ts +1 -0
  84. package/src/app/lib/components/ui/data-table/data-table-content.component.ts +1 -0
  85. package/src/app/lib/components/ui/data-table/data-table-pagination.component.ts +1 -0
  86. package/src/app/lib/components/ui/data-table/data-table-search.component.ts +1 -0
  87. package/src/app/lib/components/ui/data-table/data-table-toolbar.component.ts +1 -0
  88. package/src/app/lib/components/ui/data-table/data-table-view-options.component.ts +1 -0
  89. package/src/app/lib/components/ui/data-table/data-table.component.ts +1 -1
  90. package/src/app/lib/components/ui/date-picker/date-picker.component.ts +1 -0
  91. package/src/app/lib/components/ui/dialog/dialog-close.component.ts +1 -0
  92. package/src/app/lib/components/ui/dialog/dialog-content.component.ts +32 -21
  93. package/src/app/lib/components/ui/dialog/dialog-description.component.ts +1 -0
  94. package/src/app/lib/components/ui/dialog/dialog-footer.component.ts +1 -0
  95. package/src/app/lib/components/ui/dialog/dialog-header.component.ts +1 -0
  96. package/src/app/lib/components/ui/dialog/dialog-title.component.ts +1 -0
  97. package/src/app/lib/components/ui/dialog/dialog-trigger.component.ts +1 -0
  98. package/src/app/lib/components/ui/dialog/dialog.component.ts +1 -0
  99. package/src/app/lib/components/ui/direction/direction-context.ts +9 -0
  100. package/src/app/lib/components/ui/direction/direction.component.ts +48 -0
  101. package/src/app/lib/components/ui/direction/index.ts +2 -0
  102. package/src/app/lib/components/ui/drawer/drawer-close.component.ts +1 -0
  103. package/src/app/lib/components/ui/drawer/drawer-content.component.ts +45 -0
  104. package/src/app/lib/components/ui/drawer/drawer-description.component.ts +1 -0
  105. package/src/app/lib/components/ui/drawer/drawer-footer.component.ts +1 -0
  106. package/src/app/lib/components/ui/drawer/drawer-header.component.ts +1 -0
  107. package/src/app/lib/components/ui/drawer/drawer-title.component.ts +1 -0
  108. package/src/app/lib/components/ui/drawer/drawer-trigger.component.ts +1 -0
  109. package/src/app/lib/components/ui/drawer/drawer.component.ts +4 -0
  110. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-checkbox-item.component.ts +1 -0
  111. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-content.component.ts +3 -2
  112. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-group.component.ts +1 -0
  113. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-item.component.ts +1 -0
  114. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-label.component.ts +1 -0
  115. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-radio-group.component.ts +1 -0
  116. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-radio-item.component.ts +2 -0
  117. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-separator.component.ts +1 -0
  118. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-shortcut.component.ts +1 -0
  119. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-sub-content.component.ts +3 -0
  120. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-sub-trigger.component.ts +30 -3
  121. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-sub.component.ts +4 -0
  122. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu-trigger.component.ts +26 -0
  123. package/src/app/lib/components/ui/dropdown-menu/dropdown-menu.component.ts +1 -0
  124. package/src/app/lib/components/ui/empty/empty-action.component.ts +1 -0
  125. package/src/app/lib/components/ui/empty/empty-description.component.ts +1 -0
  126. package/src/app/lib/components/ui/empty/empty-icon.component.ts +2 -1
  127. package/src/app/lib/components/ui/empty/empty-title.component.ts +1 -0
  128. package/src/app/lib/components/ui/empty/empty.component.ts +1 -0
  129. package/src/app/lib/components/ui/form/form-description.component.ts +2 -2
  130. package/src/app/lib/components/ui/hover-card/hover-card-content.component.ts +109 -60
  131. package/src/app/lib/components/ui/hover-card/hover-card-context.ts +4 -2
  132. package/src/app/lib/components/ui/hover-card/hover-card-trigger.component.ts +6 -3
  133. package/src/app/lib/components/ui/hover-card/hover-card.component.ts +9 -3
  134. package/src/app/lib/components/ui/input-group/input-group-addon.component.ts +1 -0
  135. package/src/app/lib/components/ui/input-group/input-group-input.component.ts +1 -0
  136. package/src/app/lib/components/ui/input-group/input-group.component.ts +1 -0
  137. package/src/app/lib/components/ui/input-otp/input-otp-group.component.ts +1 -0
  138. package/src/app/lib/components/ui/input-otp/input-otp-separator.component.ts +1 -0
  139. package/src/app/lib/components/ui/input-otp/input-otp-slot.component.ts +1 -0
  140. package/src/app/lib/components/ui/input-otp/input-otp.component.ts +1 -0
  141. package/src/app/lib/components/ui/kbd/kbd.component.ts +1 -0
  142. package/src/app/lib/components/ui/menubar/menubar-checkbox-item.component.ts +1 -0
  143. package/src/app/lib/components/ui/menubar/menubar-content.component.ts +2 -1
  144. package/src/app/lib/components/ui/menubar/menubar-item.component.ts +1 -0
  145. package/src/app/lib/components/ui/menubar/menubar-label.component.ts +1 -0
  146. package/src/app/lib/components/ui/menubar/menubar-menu.component.ts +1 -0
  147. package/src/app/lib/components/ui/menubar/menubar-radio-group.component.ts +1 -0
  148. package/src/app/lib/components/ui/menubar/menubar-radio-item.component.ts +1 -0
  149. package/src/app/lib/components/ui/menubar/menubar-separator.component.ts +1 -0
  150. package/src/app/lib/components/ui/menubar/menubar-shortcut.component.ts +1 -0
  151. package/src/app/lib/components/ui/menubar/menubar-sub-content.component.ts +1 -0
  152. package/src/app/lib/components/ui/menubar/menubar-sub-trigger.component.ts +1 -0
  153. package/src/app/lib/components/ui/menubar/menubar-sub.component.ts +1 -0
  154. package/src/app/lib/components/ui/menubar/menubar-trigger.component.ts +1 -0
  155. package/src/app/lib/components/ui/menubar/menubar.component.ts +1 -0
  156. package/src/app/lib/components/ui/native-select/native-select.component.ts +1 -1
  157. package/src/app/lib/components/ui/navigation-menu/navigation-menu-content.component.ts +8 -1
  158. package/src/app/lib/components/ui/navigation-menu/navigation-menu-context.ts +14 -0
  159. package/src/app/lib/components/ui/navigation-menu/navigation-menu-indicator.component.ts +1 -0
  160. package/src/app/lib/components/ui/navigation-menu/navigation-menu-item.component.ts +10 -4
  161. package/src/app/lib/components/ui/navigation-menu/navigation-menu-link.component.ts +1 -0
  162. package/src/app/lib/components/ui/navigation-menu/navigation-menu-list.component.ts +1 -0
  163. package/src/app/lib/components/ui/navigation-menu/navigation-menu-trigger.component.ts +70 -2
  164. package/src/app/lib/components/ui/navigation-menu/navigation-menu-viewport.component.ts +1 -0
  165. package/src/app/lib/components/ui/navigation-menu/navigation-menu.component.ts +36 -4
  166. package/src/app/lib/components/ui/pagination/pagination-content.component.ts +1 -0
  167. package/src/app/lib/components/ui/pagination/pagination-ellipsis.component.ts +1 -0
  168. package/src/app/lib/components/ui/pagination/pagination-item.component.ts +1 -0
  169. package/src/app/lib/components/ui/pagination/pagination-link.component.ts +1 -0
  170. package/src/app/lib/components/ui/pagination/pagination-next.component.ts +1 -0
  171. package/src/app/lib/components/ui/pagination/pagination-previous.component.ts +1 -0
  172. package/src/app/lib/components/ui/pagination/pagination.component.ts +4 -1
  173. package/src/app/lib/components/ui/popover/popover-anchor.component.ts +1 -0
  174. package/src/app/lib/components/ui/popover/popover-content.component.ts +12 -0
  175. package/src/app/lib/components/ui/popover/popover-context.ts +2 -0
  176. package/src/app/lib/components/ui/popover/popover-trigger.component.ts +1 -0
  177. package/src/app/lib/components/ui/popover/popover.component.ts +5 -0
  178. package/src/app/lib/components/ui/progress/progress.component.ts +1 -2
  179. package/src/app/lib/components/ui/resizable/resizable-handle.component.ts +1 -0
  180. package/src/app/lib/components/ui/resizable/resizable-panel-group.component.ts +1 -0
  181. package/src/app/lib/components/ui/resizable/resizable-panel.component.ts +1 -0
  182. package/src/app/lib/components/ui/scroll-area/scroll-area.component.ts +8 -6
  183. package/src/app/lib/components/ui/scroll-area/scroll-bar.component.ts +1 -0
  184. package/src/app/lib/components/ui/segmented/segmented-item.component.ts +1 -0
  185. package/src/app/lib/components/ui/segmented/segmented.component.ts +1 -0
  186. package/src/app/lib/components/ui/select/select-content.component.ts +38 -17
  187. package/src/app/lib/components/ui/select/select-context.ts +10 -0
  188. package/src/app/lib/components/ui/select/select-item.component.ts +25 -7
  189. package/src/app/lib/components/ui/select/select-trigger.component.ts +6 -13
  190. package/src/app/lib/components/ui/select/select.component.ts +46 -0
  191. package/src/app/lib/components/ui/sheet/sheet-close.component.ts +1 -0
  192. package/src/app/lib/components/ui/sheet/sheet-content.component.ts +23 -5
  193. package/src/app/lib/components/ui/sheet/sheet-description.component.ts +1 -0
  194. package/src/app/lib/components/ui/sheet/sheet-footer.component.ts +1 -0
  195. package/src/app/lib/components/ui/sheet/sheet-header.component.ts +1 -0
  196. package/src/app/lib/components/ui/sheet/sheet-title.component.ts +1 -0
  197. package/src/app/lib/components/ui/sheet/sheet-trigger.component.ts +1 -0
  198. package/src/app/lib/components/ui/sheet/sheet.component.ts +4 -0
  199. package/src/app/lib/components/ui/sidebar/sidebar-content.component.ts +1 -0
  200. package/src/app/lib/components/ui/sidebar/sidebar-footer.component.ts +1 -0
  201. package/src/app/lib/components/ui/sidebar/sidebar-group-action.component.ts +1 -0
  202. package/src/app/lib/components/ui/sidebar/sidebar-group-content.component.ts +1 -0
  203. package/src/app/lib/components/ui/sidebar/sidebar-group-label.component.ts +1 -0
  204. package/src/app/lib/components/ui/sidebar/sidebar-group.component.ts +1 -0
  205. package/src/app/lib/components/ui/sidebar/sidebar-header.component.ts +1 -0
  206. package/src/app/lib/components/ui/sidebar/sidebar-input.component.ts +1 -0
  207. package/src/app/lib/components/ui/sidebar/sidebar-inset.component.ts +1 -0
  208. package/src/app/lib/components/ui/sidebar/sidebar-menu-action.component.ts +1 -0
  209. package/src/app/lib/components/ui/sidebar/sidebar-menu-badge.component.ts +1 -0
  210. package/src/app/lib/components/ui/sidebar/sidebar-menu-button.component.ts +1 -0
  211. package/src/app/lib/components/ui/sidebar/sidebar-menu-item.component.ts +1 -0
  212. package/src/app/lib/components/ui/sidebar/sidebar-menu-skeleton.component.ts +1 -0
  213. package/src/app/lib/components/ui/sidebar/sidebar-menu-sub-button.component.ts +1 -0
  214. package/src/app/lib/components/ui/sidebar/sidebar-menu-sub-item.component.ts +1 -0
  215. package/src/app/lib/components/ui/sidebar/sidebar-menu-sub.component.ts +1 -0
  216. package/src/app/lib/components/ui/sidebar/sidebar-menu.component.ts +1 -0
  217. package/src/app/lib/components/ui/sidebar/sidebar-provider.component.ts +1 -0
  218. package/src/app/lib/components/ui/sidebar/sidebar-rail.component.ts +1 -0
  219. package/src/app/lib/components/ui/sidebar/sidebar-separator.component.ts +1 -0
  220. package/src/app/lib/components/ui/sidebar/sidebar-trigger.component.ts +1 -0
  221. package/src/app/lib/components/ui/sidebar/sidebar.component.ts +1 -0
  222. package/src/app/lib/components/ui/slider/slider.component.ts +2 -2
  223. package/src/app/lib/components/ui/sonner/index.ts +2 -0
  224. package/src/app/lib/components/ui/sonner/sonner.component.ts +70 -0
  225. package/src/app/lib/components/ui/spinner/spinner.component.ts +1 -0
  226. package/src/app/lib/components/ui/switch/switch.component.ts +1 -14
  227. package/src/app/lib/components/ui/table/table-body.component.ts +1 -0
  228. package/src/app/lib/components/ui/table/table-caption.component.ts +1 -0
  229. package/src/app/lib/components/ui/table/table-cell.component.ts +1 -0
  230. package/src/app/lib/components/ui/table/table-footer.component.ts +1 -0
  231. package/src/app/lib/components/ui/table/table-head.component.ts +1 -0
  232. package/src/app/lib/components/ui/table/table-header.component.ts +1 -0
  233. package/src/app/lib/components/ui/table/table-row.component.ts +1 -0
  234. package/src/app/lib/components/ui/table/table.component.ts +1 -0
  235. package/src/app/lib/components/ui/tabs/tabs-content.component.ts +3 -6
  236. package/src/app/lib/components/ui/tabs/tabs-list.component.ts +19 -0
  237. package/src/app/lib/components/ui/tabs/tabs-trigger.component.ts +1 -1
  238. package/src/app/lib/components/ui/tabs/tabs.component.ts +1 -0
  239. package/src/app/lib/components/ui/toast/toast-action.component.ts +1 -0
  240. package/src/app/lib/components/ui/toast/toast-description.component.ts +1 -0
  241. package/src/app/lib/components/ui/toast/toast-title.component.ts +1 -0
  242. package/src/app/lib/components/ui/toast/toast.component.ts +1 -0
  243. package/src/app/lib/components/ui/toast/toaster.component.ts +1 -0
  244. package/src/app/lib/components/ui/toggle/toggle-variants.ts +1 -1
  245. package/src/app/lib/components/ui/toggle/toggle.component.ts +12 -6
  246. package/src/app/lib/components/ui/tooltip/tooltip-content.component.ts +142 -17
  247. package/src/app/lib/components/ui/tooltip/tooltip-context.ts +3 -1
  248. package/src/app/lib/components/ui/tooltip/tooltip-provider.component.ts +5 -1
  249. package/src/app/lib/components/ui/tooltip/tooltip-trigger.component.ts +6 -2
  250. package/src/app/lib/components/ui/tooltip/tooltip.component.ts +4 -1
  251. package/src/app/lib/components/ui/typography/typography-blockquote.component.ts +1 -0
  252. package/src/app/lib/components/ui/typography/typography-h1.component.ts +1 -0
  253. package/src/app/lib/components/ui/typography/typography-h2.component.ts +1 -0
  254. package/src/app/lib/components/ui/typography/typography-h3.component.ts +1 -0
  255. package/src/app/lib/components/ui/typography/typography-h4.component.ts +1 -0
  256. package/src/app/lib/components/ui/typography/typography-inline-code.component.ts +1 -0
  257. package/src/app/lib/components/ui/typography/typography-large.component.ts +1 -0
  258. package/src/app/lib/components/ui/typography/typography-lead.component.ts +1 -0
  259. package/src/app/lib/components/ui/typography/typography-list.component.ts +1 -0
  260. package/src/app/lib/components/ui/typography/typography-muted.component.ts +1 -0
  261. package/src/app/lib/components/ui/typography/typography-p.component.ts +1 -0
  262. package/src/app/lib/components/ui/typography/typography-small.component.ts +1 -0
@@ -39,6 +39,7 @@ import { DIALOG_CONTEXT, type DialogContextValue } from './dialog-context';
39
39
  },
40
40
  ],
41
41
  host: {
42
+ 'attr.data-slot': '"dialog"',
42
43
  style: 'display: contents',
43
44
  },
44
45
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -0,0 +1,9 @@
1
+ import { InjectionToken, signal } from '@angular/core';
2
+
3
+ export type Direction = 'ltr' | 'rtl';
4
+
5
+ export interface DirectionContext {
6
+ dir: ReturnType<typeof signal<Direction>>;
7
+ }
8
+
9
+ export const DIRECTION_CONTEXT = new InjectionToken<DirectionContext>('DirectionContext');
@@ -0,0 +1,48 @@
1
+ import { ChangeDetectionStrategy, Component, effect, forwardRef, input, signal } from '@angular/core';
2
+ import {
3
+ DIRECTION_CONTEXT,
4
+ type Direction as DirectionType,
5
+ type DirectionContext,
6
+ } from './direction-context';
7
+
8
+ /**
9
+ * Direction component - provides RTL/LTR direction context to descendants.
10
+ * Equivalent to Radix UI's DirectionProvider.
11
+ *
12
+ * @example
13
+ * <Direction dir="rtl">
14
+ * <!-- All components inside will be RTL -->
15
+ * <Select>...</Select>
16
+ * </Direction>
17
+ */
18
+ @Component({
19
+ selector: 'Direction',
20
+ template: `<ng-content />`,
21
+ changeDetection: ChangeDetectionStrategy.OnPush,
22
+ host: {
23
+ 'attr.data-slot': '"direction"',
24
+ '[attr.dir]': 'dir()',
25
+ style: 'display: contents',
26
+ },
27
+ providers: [
28
+ {
29
+ provide: DIRECTION_CONTEXT,
30
+ useFactory: (component: Direction) => component.context,
31
+ deps: [forwardRef(() => Direction)],
32
+ },
33
+ ],
34
+ })
35
+ export class Direction {
36
+ /** Text direction */
37
+ readonly dir = input<DirectionType>('ltr');
38
+
39
+ readonly context: DirectionContext = {
40
+ dir: signal<DirectionType>(this.dir()),
41
+ };
42
+
43
+ constructor() {
44
+ effect(() => {
45
+ this.context.dir.set(this.dir());
46
+ });
47
+ }
48
+ }
@@ -0,0 +1,2 @@
1
+ export { Direction } from './direction.component';
2
+ export { DIRECTION_CONTEXT, type Direction as DirectionType, type DirectionContext } from './direction-context';
@@ -9,6 +9,7 @@ import { DRAWER_CONTEXT } from './drawer-context';
9
9
  selector: 'DrawerClose',
10
10
  template: `<ng-content />`,
11
11
  host: {
12
+ 'attr.data-slot': '"drawer-close"',
12
13
  '(click)': 'onClick($event)',
13
14
  },
14
15
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -11,6 +11,7 @@ import {
11
11
  Injector,
12
12
  input,
13
13
  OnDestroy,
14
+ signal,
14
15
  viewChild,
15
16
  } from '@angular/core';
16
17
  import { DRAWER_CONTEXT } from './drawer-context';
@@ -35,6 +36,7 @@ import { DRAWER_CONTEXT } from './drawer-context';
35
36
  <div
36
37
  #contentEl
37
38
  [class]="computedClass()"
39
+ [style]="swipeStyle()"
38
40
  [attr.data-state]="context.open() ? 'open' : 'closed'"
39
41
  role="dialog"
40
42
  aria-modal="true"
@@ -44,6 +46,9 @@ import { DRAWER_CONTEXT } from './drawer-context';
44
46
  hlmFocusTrap
45
47
  [trapFocus]="context.open()"
46
48
  (keydown.escape)="onEscapeKey()"
49
+ (touchstart)="onTouchStart($event)"
50
+ (touchmove)="onTouchMove($event)"
51
+ (touchend)="onTouchEnd()"
47
52
  >
48
53
  <!-- Handle -->
49
54
  <div class="mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"></div>
@@ -52,6 +57,7 @@ import { DRAWER_CONTEXT } from './drawer-context';
52
57
  </Presence>
53
58
  `,
54
59
  host: {
60
+ 'attr.data-slot': '"drawer-content"',
55
61
  class: 'contents',
56
62
  },
57
63
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -104,6 +110,17 @@ export class DrawerContent implements OnDestroy {
104
110
  );
105
111
  });
106
112
 
113
+ protected readonly swipeDelta = signal(0);
114
+ private touchStartCoord = 0;
115
+
116
+ protected readonly swipeStyle = computed(() => {
117
+ const delta = this.swipeDelta();
118
+ if (delta === 0) return '';
119
+ const dir = this.context.direction;
120
+ if (dir === 'bottom' || dir === 'top') return { transform: `translateY(${delta}px)` };
121
+ return { transform: `translateX(${delta}px)` };
122
+ });
123
+
107
124
  /** Previous body overflow style for restoration */
108
125
  private previousBodyOverflow = '';
109
126
 
@@ -118,6 +135,34 @@ export class DrawerContent implements OnDestroy {
118
135
  onEscapeKey(): void {
119
136
  this.context.setOpen(false);
120
137
  }
138
+ onTouchStart(event: TouchEvent): void {
139
+ const touch = event.touches[0];
140
+ const dir = this.context.direction;
141
+ this.touchStartCoord = dir === 'bottom' || dir === 'top' ? touch.clientY : touch.clientX;
142
+ }
143
+ onTouchMove(event: TouchEvent): void {
144
+ const touch = event.touches[0];
145
+ const dir = this.context.direction;
146
+ const coord = dir === 'bottom' || dir === 'top' ? touch.clientY : touch.clientX;
147
+ const rawDelta = coord - this.touchStartCoord;
148
+ // Only allow dragging in the "away" direction
149
+ const isAway =
150
+ (dir === 'bottom' && rawDelta > 0) ||
151
+ (dir === 'top' && rawDelta < 0) ||
152
+ (dir === 'right' && rawDelta > 0) ||
153
+ (dir === 'left' && rawDelta < 0);
154
+ this.swipeDelta.set(isAway ? rawDelta : 0);
155
+ }
156
+ onTouchEnd(): void {
157
+ const threshold = 80;
158
+ if (Math.abs(this.swipeDelta()) >= threshold) {
159
+ this.swipeDelta.set(0);
160
+ this.context.setOpen(false);
161
+ } else {
162
+ this.swipeDelta.set(0);
163
+ }
164
+ this.touchStartCoord = 0;
165
+ }
121
166
 
122
167
  private focusFirstElement(): void {
123
168
  setTimeout(() => {
@@ -10,6 +10,7 @@ import { DRAWER_CONTEXT } from './drawer-context';
10
10
  selector: 'DrawerDescription',
11
11
  template: `<ng-content />`,
12
12
  host: {
13
+ 'attr.data-slot': '"drawer-description"',
13
14
  '[class]': 'computedClass()',
14
15
  '[attr.id]': 'context.descriptionId',
15
16
  },
@@ -9,6 +9,7 @@ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/co
9
9
  selector: 'DrawerFooter',
10
10
  template: `<ng-content />`,
11
11
  host: {
12
+ 'attr.data-slot': '"drawer-footer"',
12
13
  '[class]': 'computedClass()',
13
14
  },
14
15
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -9,6 +9,7 @@ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/co
9
9
  selector: 'DrawerHeader',
10
10
  template: `<ng-content />`,
11
11
  host: {
12
+ 'attr.data-slot': '"drawer-header"',
12
13
  '[class]': 'computedClass()',
13
14
  },
14
15
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -10,6 +10,7 @@ import { DRAWER_CONTEXT } from './drawer-context';
10
10
  selector: 'DrawerTitle',
11
11
  template: `<ng-content />`,
12
12
  host: {
13
+ 'attr.data-slot': '"drawer-title"',
13
14
  '[class]': 'computedClass()',
14
15
  '[attr.id]': 'context.titleId',
15
16
  },
@@ -9,6 +9,7 @@ import { DRAWER_CONTEXT } from './drawer-context';
9
9
  selector: 'DrawerTrigger',
10
10
  template: `<ng-content />`,
11
11
  host: {
12
+ 'attr.data-slot': '"drawer-trigger"',
12
13
  '(click)': 'onClick($event)',
13
14
  '[attr.aria-controls]': 'context.contentId',
14
15
  '[attr.aria-expanded]': 'context.open()',
@@ -37,6 +37,10 @@ import { DRAWER_CONTEXT, type DrawerContextValue } from './drawer-context';
37
37
  @Component({
38
38
  selector: 'Drawer',
39
39
  template: `<ng-content />`,
40
+ host: {
41
+ 'attr.data-slot': '"drawer"',
42
+ style: 'display: contents',
43
+ },
40
44
  providers: [
41
45
  {
42
46
  provide: DRAWER_CONTEXT,
@@ -27,6 +27,7 @@ import { DROPDOWN_MENU_CONTEXT } from './dropdown-menu-context';
27
27
  <ng-content />
28
28
  `,
29
29
  host: {
30
+ 'attr.data-slot': '"dropdown-menu-checkbox-item"',
30
31
  '[class]': 'computedClass()',
31
32
  '[attr.role]': '"menuitemcheckbox"',
32
33
  '[attr.aria-checked]': 'checked()',
@@ -42,6 +42,7 @@ import { DROPDOWN_MENU_CONTEXT } from './dropdown-menu-context';
42
42
  </Presence>
43
43
  `,
44
44
  host: {
45
+ 'attr.data-slot': '"dropdown-menu-content"',
45
46
  class: 'contents',
46
47
  '(document:click)': 'onDocumentClick($event)',
47
48
  '(document:keydown.escape)': 'onEscapeKey()',
@@ -110,7 +111,7 @@ export class DropdownMenuContent implements OnDestroy {
110
111
  /** Additional CSS classes */
111
112
  readonly class = input<string>('');
112
113
  /** Positioning strategy: 'absolute' stays within parent, 'fixed' escapes overflow containers */
113
- readonly strategy = input<'absolute' | 'fixed'>('absolute');
114
+ readonly strategy = input<'absolute' | 'fixed'>('fixed');
114
115
 
115
116
  private readonly _elementRef = inject(ElementRef);
116
117
 
@@ -197,7 +198,7 @@ export class DropdownMenuContent implements OnDestroy {
197
198
  if (content) {
198
199
  this.menuItems = Array.from(
199
200
  content.querySelectorAll(
200
- '[role="menuitem"]:not([aria-disabled="true"]):not([data-disabled])',
201
+ '[role="menuitem"]:not([aria-disabled="true"]):not([data-disabled=""])',
201
202
  ),
202
203
  );
203
204
  }
@@ -8,6 +8,7 @@ import { ChangeDetectionStrategy, Component } from '@angular/core';
8
8
  selector: 'DropdownMenuGroup',
9
9
  template: `<ng-content />`,
10
10
  host: {
11
+ 'attr.data-slot': '"dropdown-menu-group"',
11
12
  '[attr.role]': '"group"',
12
13
  },
13
14
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -10,6 +10,7 @@ import { DROPDOWN_MENU_CONTEXT } from './dropdown-menu-context';
10
10
  selector: 'DropdownMenuItem',
11
11
  template: `<ng-content />`,
12
12
  host: {
13
+ 'attr.data-slot': '"dropdown-menu-item"',
13
14
  '[class]': 'computedClass()',
14
15
  '[attr.role]': '"menuitem"',
15
16
  '[attr.tabindex]': 'disabled() ? -1 : 0',
@@ -9,6 +9,7 @@ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/co
9
9
  selector: 'DropdownMenuLabel',
10
10
  template: `<ng-content />`,
11
11
  host: {
12
+ 'attr.data-slot': '"dropdown-menu-label"',
12
13
  '[class]': 'computedClass()',
13
14
  },
14
15
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -37,6 +37,7 @@ export const DROPDOWN_MENU_RADIO_GROUP_CONTEXT = new InjectionToken<DropdownMenu
37
37
  },
38
38
  ],
39
39
  host: {
40
+ 'attr.data-slot': '"dropdown-menu-radio-group"',
40
41
  '[attr.role]': '"group"',
41
42
  },
42
43
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -20,6 +20,7 @@ import { DROPDOWN_MENU_RADIO_GROUP_CONTEXT } from './dropdown-menu-radio-group.c
20
20
  <ng-content />
21
21
  `,
22
22
  host: {
23
+ 'attr.data-slot': '"dropdown-menu-radio-item"',
23
24
  '[class]': 'computedClass()',
24
25
  '[attr.role]': '"menuitemradio"',
25
26
  '[attr.aria-checked]': 'isSelected()',
@@ -66,5 +67,6 @@ export class DropdownMenuRadioItem {
66
67
  }
67
68
  this._radioGroupContext.setValue(this.value());
68
69
  this.onSelect.emit();
70
+ this._context.open.set(false);
69
71
  }
70
72
  }
@@ -9,6 +9,7 @@ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/co
9
9
  selector: 'DropdownMenuSeparator',
10
10
  template: ``,
11
11
  host: {
12
+ 'attr.data-slot': '"dropdown-menu-separator"',
12
13
  '[class]': 'computedClass()',
13
14
  '[attr.role]': '"separator"',
14
15
  },
@@ -9,6 +9,7 @@ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/co
9
9
  selector: 'DropdownMenuShortcut',
10
10
  template: `<ng-content />`,
11
11
  host: {
12
+ 'attr.data-slot': '"dropdown-menu-shortcut"',
12
13
  '[class]': 'computedClass()',
13
14
  },
14
15
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -21,6 +21,7 @@ import { DROPDOWN_MENU_SUB_CONTEXT } from './dropdown-menu-sub.component';
21
21
  </Presence>
22
22
  `,
23
23
  host: {
24
+ 'attr.data-slot': '"dropdown-menu-sub-content"',
24
25
  class: 'contents',
25
26
  '(mouseenter)': 'onMouseEnter()',
26
27
  '(mouseleave)': 'onMouseLeave()',
@@ -42,9 +43,11 @@ export class DropdownMenuSubContent {
42
43
  );
43
44
 
44
45
  protected onMouseEnter(): void {
46
+ this.subContext.isMouseInSubContent.set(true);
45
47
  this.subContext.open.set(true);
46
48
  }
47
49
  protected onMouseLeave(): void {
50
+ this.subContext.isMouseInSubContent.set(false);
48
51
  this.subContext.open.set(false);
49
52
  }
50
53
  }
@@ -15,10 +15,16 @@ import { DROPDOWN_MENU_SUB_CONTEXT } from './dropdown-menu-sub.component';
15
15
  <lucide-icon [img]="ChevronRightIcon" class="ml-auto h-4 w-4" />
16
16
  `,
17
17
  host: {
18
+ 'attr.data-slot': '"dropdown-menu-sub-trigger"',
18
19
  '[class]': 'computedClass()',
19
20
  '(mouseenter)': 'onMouseEnter()',
20
21
  '(mouseleave)': 'onMouseLeave()',
22
+ '(keydown)': 'onKeyDown($event)',
21
23
  '[attr.data-state]': 'subContext.open() ? "open" : "closed"',
24
+ 'role': 'menuitem',
25
+ '[attr.aria-haspopup]': '"menu"',
26
+ '[attr.aria-expanded]': 'subContext.open()',
27
+ '[attr.tabindex]': '"-1"',
22
28
  },
23
29
  changeDetection: ChangeDetectionStrategy.OnPush,
24
30
  })
@@ -33,7 +39,7 @@ export class DropdownMenuSubTrigger {
33
39
 
34
40
  protected readonly computedClass = computed(() =>
35
41
  cn(
36
- 'flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&>svg]:size-4 [&>svg]:shrink-0',
42
+ 'flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&>svg]:size-4 [&>svg]:shrink-0 [&>lucide-icon]:size-4 [&>lucide-icon]:shrink-0',
37
43
  this.inset() && 'pl-8',
38
44
  this.class(),
39
45
  ),
@@ -45,9 +51,30 @@ export class DropdownMenuSubTrigger {
45
51
  this.subContext.open.set(true);
46
52
  }
47
53
  protected onMouseLeave(): void {
48
- // Delay closing to allow mouse to move to sub-content
49
54
  setTimeout(() => {
50
- // Check if mouse is still outside both trigger and content
55
+ if (!this.subContext.isMouseInSubContent()) {
56
+ this.subContext.open.set(false);
57
+ }
51
58
  }, 100);
52
59
  }
60
+ protected onKeyDown(event: KeyboardEvent): void {
61
+ if (event.key === 'ArrowRight' || event.key === 'Enter' || event.key === ' ') {
62
+ event.preventDefault();
63
+ event.stopPropagation();
64
+ this.subContext.open.set(true);
65
+ // Focus first focusable item in sub-content after it renders
66
+ setTimeout(() => {
67
+ const subContent = (event.target as HTMLElement)
68
+ .closest('DropdownMenuSub')
69
+ ?.querySelector<HTMLElement>('[role="menu"] [role="menuitem"]:not([aria-disabled="true"]):not([data-disabled=""])');
70
+ if (subContent) {
71
+ subContent.focus();
72
+ }
73
+ }, 10);
74
+ }
75
+ if (event.key === 'ArrowLeft') {
76
+ event.preventDefault();
77
+ this.subContext.open.set(false);
78
+ }
79
+ }
53
80
  }
@@ -8,6 +8,8 @@ import {
8
8
 
9
9
  export interface DropdownMenuSubContext {
10
10
  open: WritableSignal<boolean>;
11
+ /** True while the mouse is hovering over the sub-content panel */
12
+ isMouseInSubContent: WritableSignal<boolean>;
11
13
  }
12
14
 
13
15
  export const DROPDOWN_MENU_SUB_CONTEXT = new InjectionToken<DropdownMenuSubContext>(
@@ -26,10 +28,12 @@ export const DROPDOWN_MENU_SUB_CONTEXT = new InjectionToken<DropdownMenuSubConte
26
28
  provide: DROPDOWN_MENU_SUB_CONTEXT,
27
29
  useFactory: (): DropdownMenuSubContext => ({
28
30
  open: signal(false),
31
+ isMouseInSubContent: signal(false),
29
32
  }),
30
33
  },
31
34
  ],
32
35
  host: {
36
+ 'attr.data-slot': '"dropdown-menu-sub"',
33
37
  class: 'relative',
34
38
  },
35
39
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -9,6 +9,7 @@ import { DROPDOWN_MENU_CONTEXT } from './dropdown-menu-context';
9
9
  selector: 'DropdownMenuTrigger',
10
10
  template: `<ng-content />`,
11
11
  host: {
12
+ 'attr.data-slot': '"dropdown-menu-trigger"',
12
13
  class: 'cursor-pointer',
13
14
  '(click)': 'toggle()',
14
15
  '(keydown)': 'onKeyDown($event)',
@@ -35,6 +36,31 @@ export class DropdownMenuTrigger {
35
36
  this.context.open.set(true);
36
37
  this.context.focusedIndex.set(0);
37
38
  break;
39
+ case 'ArrowUp':
40
+ event.preventDefault();
41
+ this.context.triggerElement.set(this._elementRef.nativeElement);
42
+ this.context.open.set(true);
43
+ // Set focusedIndex to -1 so the content effect opens normally,
44
+ // then after it renders and focuses the first item we move to last.
45
+ this.context.focusedIndex.set(-1);
46
+ setTimeout(() => {
47
+ // After the content's own setTimeout(0) has run and focused item[0],
48
+ // query the menu items and focus the last one.
49
+ const menu = document.querySelector('[data-slot="dropdown-menu-content"] [role="menu"]');
50
+ if (menu) {
51
+ const items = Array.from(
52
+ menu.querySelectorAll<HTMLElement>(
53
+ '[role="menuitem"]:not([aria-disabled="true"]):not([data-disabled=""])',
54
+ ),
55
+ );
56
+ if (items.length > 0) {
57
+ const lastIndex = items.length - 1;
58
+ items[lastIndex].focus();
59
+ this.context.focusedIndex.set(lastIndex);
60
+ }
61
+ }
62
+ }, 10);
63
+ break;
38
64
  case 'Enter':
39
65
  case ' ':
40
66
  event.preventDefault();
@@ -25,6 +25,7 @@ import { DROPDOWN_MENU_CONTEXT, type DropdownMenuContextValue } from './dropdown
25
25
  },
26
26
  ],
27
27
  host: {
28
+ 'attr.data-slot': '"dropdown-menu"',
28
29
  class: 'relative inline-block',
29
30
  },
30
31
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -8,6 +8,7 @@ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/co
8
8
  selector: 'EmptyAction',
9
9
  template: `<ng-content />`,
10
10
  host: {
11
+ 'attr.data-slot': '"empty-action"',
11
12
  '[class]': 'computedClass()',
12
13
  },
13
14
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -8,6 +8,7 @@ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/co
8
8
  selector: 'EmptyDescription',
9
9
  template: `<ng-content />`,
10
10
  host: {
11
+ 'attr.data-slot': '"empty-description"',
11
12
  '[class]': 'computedClass()',
12
13
  },
13
14
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -8,6 +8,7 @@ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/co
8
8
  selector: 'EmptyIcon',
9
9
  template: `<ng-content />`,
10
10
  host: {
11
+ 'attr.data-slot': '"empty-icon"',
11
12
  '[class]': 'computedClass()',
12
13
  },
13
14
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -19,7 +20,7 @@ export class EmptyIcon {
19
20
  /** Computed class combining base styles and custom classes */
20
21
  protected readonly computedClass = computed(() =>
21
22
  cn(
22
- 'mx-auto flex size-12 items-center justify-center rounded-full bg-muted text-muted-foreground [&>svg]:size-6',
23
+ 'mx-auto flex size-12 items-center justify-center rounded-full bg-muted text-muted-foreground [&>svg]:size-6 [&>lucide-icon]:size-6',
23
24
  this.class(),
24
25
  ),
25
26
  );
@@ -8,6 +8,7 @@ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/co
8
8
  selector: 'EmptyTitle',
9
9
  template: `<ng-content />`,
10
10
  host: {
11
+ 'attr.data-slot': '"empty-title"',
11
12
  '[class]': 'computedClass()',
12
13
  },
13
14
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -30,6 +30,7 @@ import { ChangeDetectionStrategy, Component, computed, input } from '@angular/co
30
30
  selector: 'Empty',
31
31
  template: `<ng-content />`,
32
32
  host: {
33
+ 'attr.data-slot': '"empty"',
33
34
  '[class]': 'computedClass()',
34
35
  },
35
36
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -14,7 +14,7 @@ import { FORM_FIELD_CONTEXT } from './form-context';
14
14
  host: {
15
15
  '[class]': 'computedClass()',
16
16
  '[attr.id]': 'fieldContext?.formDescriptionId()',
17
- 'data-slot': 'form-description',
17
+ 'attr.data-slot': '"form-description"',
18
18
  },
19
19
  changeDetection: ChangeDetectionStrategy.OnPush,
20
20
  })
@@ -26,6 +26,6 @@ export class FormDescription {
26
26
 
27
27
  /** Computed class combining base styles and custom classes */
28
28
  protected readonly computedClass = computed(() =>
29
- cn('text-muted-foreground text-[0.8rem]', this.class()),
29
+ cn('text-muted-foreground text-[length:var(--font-size-description)]', this.class()),
30
30
  );
31
31
  }