@acronis-platform/ui-react 0.54.0 → 0.56.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 (300) hide show
  1. package/README.md +1 -1
  2. package/package.json +4 -2
  3. package/dist/components/ui/accordion/accordion.js +0 -53
  4. package/dist/components/ui/accordion/accordion.js.map +0 -1
  5. package/dist/components/ui/alert/alert.js +0 -99
  6. package/dist/components/ui/alert/alert.js.map +0 -1
  7. package/dist/components/ui/app-shell/app-shell.js +0 -75
  8. package/dist/components/ui/app-shell/app-shell.js.map +0 -1
  9. package/dist/components/ui/auth-layout/auth-layout.js +0 -56
  10. package/dist/components/ui/auth-layout/auth-layout.js.map +0 -1
  11. package/dist/components/ui/avatar/avatar.js +0 -70
  12. package/dist/components/ui/avatar/avatar.js.map +0 -1
  13. package/dist/components/ui/breadcrumb/breadcrumb.js +0 -116
  14. package/dist/components/ui/breadcrumb/breadcrumb.js.map +0 -1
  15. package/dist/components/ui/button/button.js +0 -50
  16. package/dist/components/ui/button/button.js.map +0 -1
  17. package/dist/components/ui/button-icon/button-icon.js +0 -35
  18. package/dist/components/ui/button-icon/button-icon.js.map +0 -1
  19. package/dist/components/ui/button-menu/button-menu.js +0 -52
  20. package/dist/components/ui/button-menu/button-menu.js.map +0 -1
  21. package/dist/components/ui/card/card.js +0 -92
  22. package/dist/components/ui/card/card.js.map +0 -1
  23. package/dist/components/ui/card-filter/card-filter.js +0 -63
  24. package/dist/components/ui/card-filter/card-filter.js.map +0 -1
  25. package/dist/components/ui/chart/chart.js +0 -213
  26. package/dist/components/ui/chart/chart.js.map +0 -1
  27. package/dist/components/ui/checkbox/checkbox.js +0 -70
  28. package/dist/components/ui/checkbox/checkbox.js.map +0 -1
  29. package/dist/components/ui/chip/chip.js +0 -70
  30. package/dist/components/ui/chip/chip.js.map +0 -1
  31. package/dist/components/ui/collapsible/collapsible.js +0 -22
  32. package/dist/components/ui/collapsible/collapsible.js.map +0 -1
  33. package/dist/components/ui/combobox/combobox.js +0 -149
  34. package/dist/components/ui/combobox/combobox.js.map +0 -1
  35. package/dist/components/ui/data-table/data-table-column-header.js +0 -36
  36. package/dist/components/ui/data-table/data-table-column-header.js.map +0 -1
  37. package/dist/components/ui/data-table/data-table-pagination.js +0 -89
  38. package/dist/components/ui/data-table/data-table-pagination.js.map +0 -1
  39. package/dist/components/ui/data-table/data-table-toolbar.js +0 -46
  40. package/dist/components/ui/data-table/data-table-toolbar.js.map +0 -1
  41. package/dist/components/ui/data-table/data-table-view-options.js +0 -40
  42. package/dist/components/ui/data-table/data-table-view-options.js.map +0 -1
  43. package/dist/components/ui/data-table/data-table.js +0 -89
  44. package/dist/components/ui/data-table/data-table.js.map +0 -1
  45. package/dist/components/ui/description-list/description-list.js +0 -54
  46. package/dist/components/ui/description-list/description-list.js.map +0 -1
  47. package/dist/components/ui/dialog/dialog.js +0 -140
  48. package/dist/components/ui/dialog/dialog.js.map +0 -1
  49. package/dist/components/ui/dropdown-menu/dropdown-menu.js +0 -159
  50. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +0 -1
  51. package/dist/components/ui/empty/empty.js +0 -78
  52. package/dist/components/ui/empty/empty.js.map +0 -1
  53. package/dist/components/ui/field/field.js +0 -189
  54. package/dist/components/ui/field/field.js.map +0 -1
  55. package/dist/components/ui/form/form.js +0 -16
  56. package/dist/components/ui/form/form.js.map +0 -1
  57. package/dist/components/ui/grid/grid.js +0 -69
  58. package/dist/components/ui/grid/grid.js.map +0 -1
  59. package/dist/components/ui/input/input.js +0 -22
  60. package/dist/components/ui/input/input.js.map +0 -1
  61. package/dist/components/ui/input-date-picker/input-date-picker.js +0 -104
  62. package/dist/components/ui/input-date-picker/input-date-picker.js.map +0 -1
  63. package/dist/components/ui/input-search/input-search.js +0 -57
  64. package/dist/components/ui/input-search/input-search.js.map +0 -1
  65. package/dist/components/ui/input-select/input-select.js +0 -265
  66. package/dist/components/ui/input-select/input-select.js.map +0 -1
  67. package/dist/components/ui/input-text/input-text.js +0 -87
  68. package/dist/components/ui/input-text/input-text.js.map +0 -1
  69. package/dist/components/ui/input-text-area/input-text-area.js +0 -77
  70. package/dist/components/ui/input-text-area/input-text-area.js.map +0 -1
  71. package/dist/components/ui/label/label.js +0 -12
  72. package/dist/components/ui/label/label.js.map +0 -1
  73. package/dist/components/ui/link/link.js +0 -39
  74. package/dist/components/ui/link/link.js.map +0 -1
  75. package/dist/components/ui/number-field/number-field.js +0 -61
  76. package/dist/components/ui/number-field/number-field.js.map +0 -1
  77. package/dist/components/ui/page-content/page-content.js +0 -19
  78. package/dist/components/ui/page-content/page-content.js.map +0 -1
  79. package/dist/components/ui/page-header/page-header.js +0 -74
  80. package/dist/components/ui/page-header/page-header.js.map +0 -1
  81. package/dist/components/ui/pagination/pagination.js +0 -87
  82. package/dist/components/ui/pagination/pagination.js.map +0 -1
  83. package/dist/components/ui/popover/popover.js +0 -48
  84. package/dist/components/ui/popover/popover.js.map +0 -1
  85. package/dist/components/ui/progress/progress.js +0 -30
  86. package/dist/components/ui/progress/progress.js.map +0 -1
  87. package/dist/components/ui/progress-circle/progress-circle.js +0 -115
  88. package/dist/components/ui/progress-circle/progress-circle.js.map +0 -1
  89. package/dist/components/ui/radio/radio.js +0 -44
  90. package/dist/components/ui/radio/radio.js.map +0 -1
  91. package/dist/components/ui/resizable/resizable.js +0 -52
  92. package/dist/components/ui/resizable/resizable.js.map +0 -1
  93. package/dist/components/ui/scroll-area/scroll-area.js +0 -61
  94. package/dist/components/ui/scroll-area/scroll-area.js.map +0 -1
  95. package/dist/components/ui/search/search.js +0 -93
  96. package/dist/components/ui/search/search.js.map +0 -1
  97. package/dist/components/ui/search-global/search-global.js +0 -60
  98. package/dist/components/ui/search-global/search-global.js.map +0 -1
  99. package/dist/components/ui/section/section.js +0 -37
  100. package/dist/components/ui/section/section.js.map +0 -1
  101. package/dist/components/ui/separator/separator.js +0 -22
  102. package/dist/components/ui/separator/separator.js.map +0 -1
  103. package/dist/components/ui/sheet/sheet-details.js +0 -80
  104. package/dist/components/ui/sheet/sheet-details.js.map +0 -1
  105. package/dist/components/ui/sheet/sheet.js +0 -138
  106. package/dist/components/ui/sheet/sheet.js.map +0 -1
  107. package/dist/components/ui/sidebar-primary/sidebar-primary.js +0 -252
  108. package/dist/components/ui/sidebar-primary/sidebar-primary.js.map +0 -1
  109. package/dist/components/ui/sidebar-secondary/sidebar-secondary.js +0 -470
  110. package/dist/components/ui/sidebar-secondary/sidebar-secondary.js.map +0 -1
  111. package/dist/components/ui/skeleton/skeleton.js +0 -22
  112. package/dist/components/ui/skeleton/skeleton.js.map +0 -1
  113. package/dist/components/ui/slider/slider.js +0 -42
  114. package/dist/components/ui/slider/slider.js.map +0 -1
  115. package/dist/components/ui/spinner/spinner.js +0 -38
  116. package/dist/components/ui/spinner/spinner.js.map +0 -1
  117. package/dist/components/ui/stack/stack.js +0 -61
  118. package/dist/components/ui/stack/stack.js.map +0 -1
  119. package/dist/components/ui/switch/switch.js +0 -41
  120. package/dist/components/ui/switch/switch.js.map +0 -1
  121. package/dist/components/ui/table/table.js +0 -118
  122. package/dist/components/ui/table/table.js.map +0 -1
  123. package/dist/components/ui/tabs/tabs.js +0 -44
  124. package/dist/components/ui/tabs/tabs.js.map +0 -1
  125. package/dist/components/ui/tag/tag.js +0 -47
  126. package/dist/components/ui/tag/tag.js.map +0 -1
  127. package/dist/components/ui/toast/toast.js +0 -83
  128. package/dist/components/ui/toast/toast.js.map +0 -1
  129. package/dist/components/ui/toggle-group/toggle-group.js +0 -47
  130. package/dist/components/ui/toggle-group/toggle-group.js.map +0 -1
  131. package/dist/components/ui/tooltip/tooltip.js +0 -49
  132. package/dist/components/ui/tooltip/tooltip.js.map +0 -1
  133. package/dist/components/ui/widget-placeholder/widget-placeholder.js +0 -106
  134. package/dist/components/ui/widget-placeholder/widget-placeholder.js.map +0 -1
  135. package/dist/index.d.ts +0 -2
  136. package/dist/index.js +0 -360
  137. package/dist/index.js.map +0 -1
  138. package/dist/lib/utils.js +0 -9
  139. package/dist/lib/utils.js.map +0 -1
  140. package/dist/node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.js +0 -104
  141. package/dist/node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.js.map +0 -1
  142. package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js +0 -1900
  143. package/dist/node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js.map +0 -1
  144. package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js +0 -36
  145. package/dist/node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js.map +0 -1
  146. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -17
  147. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js.map +0 -1
  148. package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-resizable-panels/dist/react-resizable-panels.js +0 -2093
  149. package/dist/node_modules/.pnpm/react-resizable-panels@4.11.2_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/react-resizable-panels/dist/react-resizable-panels.js.map +0 -1
  150. package/dist/node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2996
  151. package/dist/node_modules/.pnpm/tailwind-merge@3.6.0/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
  152. package/dist/react.d.ts +0 -2
  153. package/dist/react.js +0 -360
  154. package/dist/react.js.map +0 -1
  155. package/dist/src/components/ui/accordion/accordion.d.ts +0 -7
  156. package/dist/src/components/ui/accordion/index.d.ts +0 -1
  157. package/dist/src/components/ui/alert/alert.d.ts +0 -14
  158. package/dist/src/components/ui/alert/index.d.ts +0 -2
  159. package/dist/src/components/ui/app-shell/app-shell.d.ts +0 -8
  160. package/dist/src/components/ui/app-shell/index.d.ts +0 -1
  161. package/dist/src/components/ui/auth-layout/auth-layout.d.ts +0 -6
  162. package/dist/src/components/ui/auth-layout/index.d.ts +0 -1
  163. package/dist/src/components/ui/avatar/avatar.d.ts +0 -27
  164. package/dist/src/components/ui/avatar/index.d.ts +0 -1
  165. package/dist/src/components/ui/breadcrumb/breadcrumb.d.ts +0 -30
  166. package/dist/src/components/ui/breadcrumb/index.d.ts +0 -1
  167. package/dist/src/components/ui/button/button.d.ts +0 -16
  168. package/dist/src/components/ui/button/index.d.ts +0 -1
  169. package/dist/src/components/ui/button-icon/button-icon.d.ts +0 -20
  170. package/dist/src/components/ui/button-icon/index.d.ts +0 -1
  171. package/dist/src/components/ui/button-menu/button-menu.d.ts +0 -29
  172. package/dist/src/components/ui/button-menu/index.d.ts +0 -1
  173. package/dist/src/components/ui/card/card.d.ts +0 -17
  174. package/dist/src/components/ui/card/index.d.ts +0 -1
  175. package/dist/src/components/ui/card-filter/card-filter.d.ts +0 -27
  176. package/dist/src/components/ui/card-filter/index.d.ts +0 -1
  177. package/dist/src/components/ui/chart/chart.d.ts +0 -55
  178. package/dist/src/components/ui/chart/index.d.ts +0 -2
  179. package/dist/src/components/ui/checkbox/checkbox.d.ts +0 -10
  180. package/dist/src/components/ui/checkbox/index.d.ts +0 -1
  181. package/dist/src/components/ui/chip/chip.d.ts +0 -20
  182. package/dist/src/components/ui/chip/index.d.ts +0 -1
  183. package/dist/src/components/ui/collapsible/collapsible.d.ts +0 -5
  184. package/dist/src/components/ui/collapsible/index.d.ts +0 -1
  185. package/dist/src/components/ui/combobox/combobox.d.ts +0 -28
  186. package/dist/src/components/ui/combobox/index.d.ts +0 -2
  187. package/dist/src/components/ui/data-table/data-table-column-header.d.ts +0 -8
  188. package/dist/src/components/ui/data-table/data-table-pagination.d.ts +0 -8
  189. package/dist/src/components/ui/data-table/data-table-toolbar.d.ts +0 -9
  190. package/dist/src/components/ui/data-table/data-table-view-options.d.ts +0 -6
  191. package/dist/src/components/ui/data-table/data-table.d.ts +0 -24
  192. package/dist/src/components/ui/data-table/data-table.docs.d.ts +0 -22
  193. package/dist/src/components/ui/data-table/index.d.ts +0 -5
  194. package/dist/src/components/ui/description-list/description-list.d.ts +0 -8
  195. package/dist/src/components/ui/description-list/index.d.ts +0 -1
  196. package/dist/src/components/ui/dialog/dialog.d.ts +0 -39
  197. package/dist/src/components/ui/dialog/dialog.docs.d.ts +0 -24
  198. package/dist/src/components/ui/dialog/index.d.ts +0 -1
  199. package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +0 -39
  200. package/dist/src/components/ui/dropdown-menu/dropdown-menu.docs.d.ts +0 -25
  201. package/dist/src/components/ui/dropdown-menu/index.d.ts +0 -1
  202. package/dist/src/components/ui/empty/empty.d.ts +0 -9
  203. package/dist/src/components/ui/empty/index.d.ts +0 -1
  204. package/dist/src/components/ui/field/field.d.ts +0 -39
  205. package/dist/src/components/ui/field/field.docs.d.ts +0 -27
  206. package/dist/src/components/ui/field/index.d.ts +0 -2
  207. package/dist/src/components/ui/form/form.d.ts +0 -6
  208. package/dist/src/components/ui/form/index.d.ts +0 -1
  209. package/dist/src/components/ui/grid/grid.d.ts +0 -15
  210. package/dist/src/components/ui/grid/index.d.ts +0 -1
  211. package/dist/src/components/ui/input/index.d.ts +0 -1
  212. package/dist/src/components/ui/input/input.d.ts +0 -4
  213. package/dist/src/components/ui/input-date-picker/index.d.ts +0 -1
  214. package/dist/src/components/ui/input-date-picker/input-date-picker.d.ts +0 -27
  215. package/dist/src/components/ui/input-search/index.d.ts +0 -1
  216. package/dist/src/components/ui/input-search/input-search.d.ts +0 -10
  217. package/dist/src/components/ui/input-select/index.d.ts +0 -1
  218. package/dist/src/components/ui/input-select/input-select.d.ts +0 -46
  219. package/dist/src/components/ui/input-text/index.d.ts +0 -1
  220. package/dist/src/components/ui/input-text/input-text.d.ts +0 -20
  221. package/dist/src/components/ui/input-text-area/index.d.ts +0 -1
  222. package/dist/src/components/ui/input-text-area/input-text-area.d.ts +0 -16
  223. package/dist/src/components/ui/label/index.d.ts +0 -1
  224. package/dist/src/components/ui/label/label.d.ts +0 -5
  225. package/dist/src/components/ui/label/label.docs.d.ts +0 -10
  226. package/dist/src/components/ui/link/index.d.ts +0 -1
  227. package/dist/src/components/ui/link/link.d.ts +0 -15
  228. package/dist/src/components/ui/number-field/index.d.ts +0 -1
  229. package/dist/src/components/ui/number-field/number-field.d.ts +0 -7
  230. package/dist/src/components/ui/page-content/index.d.ts +0 -1
  231. package/dist/src/components/ui/page-content/page-content.d.ts +0 -4
  232. package/dist/src/components/ui/page-header/index.d.ts +0 -1
  233. package/dist/src/components/ui/page-header/page-header.d.ts +0 -8
  234. package/dist/src/components/ui/pagination/index.d.ts +0 -2
  235. package/dist/src/components/ui/pagination/pagination.d.ts +0 -25
  236. package/dist/src/components/ui/popover/index.d.ts +0 -1
  237. package/dist/src/components/ui/popover/popover.d.ts +0 -27
  238. package/dist/src/components/ui/popover/popover.docs.d.ts +0 -25
  239. package/dist/src/components/ui/progress/index.d.ts +0 -1
  240. package/dist/src/components/ui/progress/progress.d.ts +0 -9
  241. package/dist/src/components/ui/progress/progress.docs.d.ts +0 -16
  242. package/dist/src/components/ui/progress-circle/index.d.ts +0 -1
  243. package/dist/src/components/ui/progress-circle/progress-circle.d.ts +0 -47
  244. package/dist/src/components/ui/progress-circle/progress-circle.docs.d.ts +0 -21
  245. package/dist/src/components/ui/radio/index.d.ts +0 -1
  246. package/dist/src/components/ui/radio/radio.d.ts +0 -8
  247. package/dist/src/components/ui/resizable/index.d.ts +0 -1
  248. package/dist/src/components/ui/resizable/resizable.d.ts +0 -9
  249. package/dist/src/components/ui/scroll-area/index.d.ts +0 -1
  250. package/dist/src/components/ui/scroll-area/scroll-area.d.ts +0 -10
  251. package/dist/src/components/ui/search/index.d.ts +0 -1
  252. package/dist/src/components/ui/search/search.d.ts +0 -7
  253. package/dist/src/components/ui/search-global/index.d.ts +0 -1
  254. package/dist/src/components/ui/search-global/search-global.d.ts +0 -7
  255. package/dist/src/components/ui/section/index.d.ts +0 -1
  256. package/dist/src/components/ui/section/section.d.ts +0 -7
  257. package/dist/src/components/ui/select/index.d.ts +0 -1
  258. package/dist/src/components/ui/select/select.d.ts +0 -1
  259. package/dist/src/components/ui/separator/index.d.ts +0 -1
  260. package/dist/src/components/ui/separator/separator.d.ts +0 -3
  261. package/dist/src/components/ui/sheet/index.d.ts +0 -3
  262. package/dist/src/components/ui/sheet/sheet-details.d.ts +0 -42
  263. package/dist/src/components/ui/sheet/sheet.d.ts +0 -36
  264. package/dist/src/components/ui/sheet/sheet.docs.d.ts +0 -21
  265. package/dist/src/components/ui/sidebar-primary/index.d.ts +0 -1
  266. package/dist/src/components/ui/sidebar-primary/sidebar-primary.d.ts +0 -54
  267. package/dist/src/components/ui/sidebar-secondary/index.d.ts +0 -1
  268. package/dist/src/components/ui/sidebar-secondary/sidebar-secondary.d.ts +0 -112
  269. package/dist/src/components/ui/skeleton/index.d.ts +0 -1
  270. package/dist/src/components/ui/skeleton/skeleton.d.ts +0 -4
  271. package/dist/src/components/ui/slider/index.d.ts +0 -1
  272. package/dist/src/components/ui/slider/slider.d.ts +0 -7
  273. package/dist/src/components/ui/spinner/index.d.ts +0 -1
  274. package/dist/src/components/ui/spinner/spinner.d.ts +0 -9
  275. package/dist/src/components/ui/stack/index.d.ts +0 -1
  276. package/dist/src/components/ui/stack/stack.d.ts +0 -13
  277. package/dist/src/components/ui/switch/index.d.ts +0 -1
  278. package/dist/src/components/ui/switch/switch.d.ts +0 -8
  279. package/dist/src/components/ui/table/index.d.ts +0 -1
  280. package/dist/src/components/ui/table/table.d.ts +0 -23
  281. package/dist/src/components/ui/tabs/index.d.ts +0 -1
  282. package/dist/src/components/ui/tabs/tabs.d.ts +0 -6
  283. package/dist/src/components/ui/tabs/tabs.docs.d.ts +0 -25
  284. package/dist/src/components/ui/tag/index.d.ts +0 -1
  285. package/dist/src/components/ui/tag/tag.d.ts +0 -12
  286. package/dist/src/components/ui/toast/index.d.ts +0 -1
  287. package/dist/src/components/ui/toast/toast.d.ts +0 -48
  288. package/dist/src/components/ui/toast/toast.docs.d.ts +0 -12
  289. package/dist/src/components/ui/toggle-group/index.d.ts +0 -1
  290. package/dist/src/components/ui/toggle-group/toggle-group.d.ts +0 -7
  291. package/dist/src/components/ui/tooltip/index.d.ts +0 -1
  292. package/dist/src/components/ui/tooltip/tooltip.d.ts +0 -13
  293. package/dist/src/components/ui/widget-placeholder/index.d.ts +0 -1
  294. package/dist/src/components/ui/widget-placeholder/widget-placeholder.d.ts +0 -18
  295. package/dist/src/components/ui/widget-placeholder/widget-placeholder.docs.d.ts +0 -14
  296. package/dist/src/index.d.ts +0 -66
  297. package/dist/src/lib/utils.d.ts +0 -2
  298. package/dist/src/react.d.ts +0 -1
  299. package/dist/styles.d.ts +0 -1
  300. package/dist/ui-react.css +0 -1
@@ -1,40 +0,0 @@
1
- import { jsxs as o, jsx as n } from "react/jsx-runtime";
2
- import { CogIcon as t } from "@acronis-platform/icons-react/stroke-mono";
3
- import { DropdownMenu as a, DropdownMenuTrigger as d, DropdownMenuContent as l, DropdownMenuLabel as p, DropdownMenuSeparator as s, DropdownMenuCheckboxItem as c } from "../dropdown-menu/dropdown-menu.js";
4
- import { Button as g } from "../button/button.js";
5
- function w({
6
- table: r
7
- }) {
8
- return /* @__PURE__ */ o(a, { children: [
9
- /* @__PURE__ */ o(
10
- d,
11
- {
12
- render: /* @__PURE__ */ n(g, { variant: "secondary", className: "ml-auto hidden h-8 gap-2 lg:flex" }),
13
- children: [
14
- /* @__PURE__ */ n(t, {}),
15
- "View"
16
- ]
17
- }
18
- ),
19
- /* @__PURE__ */ o(l, { align: "end", className: "w-[150px]", children: [
20
- /* @__PURE__ */ n(p, { children: "Toggle columns" }),
21
- /* @__PURE__ */ n(s, {}),
22
- r.getAllColumns().filter(
23
- (e) => typeof e.accessorFn < "u" && e.getCanHide()
24
- ).map((e) => /* @__PURE__ */ n(
25
- c,
26
- {
27
- className: "capitalize",
28
- checked: e.getIsVisible(),
29
- onCheckedChange: (i) => e.toggleVisibility(!!i),
30
- children: e.id
31
- },
32
- e.id
33
- ))
34
- ] })
35
- ] });
36
- }
37
- export {
38
- w as DataTableViewOptions
39
- };
40
- //# sourceMappingURL=data-table-view-options.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-table-view-options.js","sources":["../../../../src/components/ui/data-table/data-table-view-options.tsx"],"sourcesContent":["import type { Table } from '@tanstack/react-table';\nimport { CogIcon } from '@acronis-platform/icons-react/stroke-mono';\n\nimport { Button } from '../button';\nimport {\n DropdownMenu,\n DropdownMenuCheckboxItem,\n DropdownMenuContent,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuTrigger,\n} from '../dropdown-menu';\n\ninterface DataTableViewOptionsProps<TData> {\n table: Table<TData>;\n}\n\nexport function DataTableViewOptions<TData>({\n table,\n}: DataTableViewOptionsProps<TData>) {\n return (\n <DropdownMenu>\n <DropdownMenuTrigger\n render={\n <Button variant=\"secondary\" className=\"ml-auto hidden h-8 gap-2 lg:flex\" />\n }\n >\n <CogIcon />\n View\n </DropdownMenuTrigger>\n <DropdownMenuContent align=\"end\" className=\"w-[150px]\">\n <DropdownMenuLabel>Toggle columns</DropdownMenuLabel>\n <DropdownMenuSeparator />\n {table\n .getAllColumns()\n .filter(\n (column) =>\n typeof column.accessorFn !== 'undefined' && column.getCanHide()\n )\n .map((column) => (\n <DropdownMenuCheckboxItem\n key={column.id}\n className=\"capitalize\"\n checked={column.getIsVisible()}\n onCheckedChange={(value) => column.toggleVisibility(!!value)}\n >\n {column.id}\n </DropdownMenuCheckboxItem>\n ))}\n </DropdownMenuContent>\n </DropdownMenu>\n );\n}\n"],"names":["DataTableViewOptions","table","DropdownMenu","jsxs","DropdownMenuTrigger","jsx","Button","CogIcon","DropdownMenuContent","DropdownMenuLabel","DropdownMenuSeparator","column","DropdownMenuCheckboxItem","value"],"mappings":";;;;AAiBO,SAASA,EAA4B;AAAA,EAC1C,OAAAC;AACF,GAAqC;AACnC,2BACGC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAC;AAAA,MAACC;AAAA,MAAA;AAAA,QACC,QACE,gBAAAC,EAACC,GAAA,EAAO,SAAQ,aAAY,WAAU,oCAAmC;AAAA,QAG3E,UAAA;AAAA,UAAA,gBAAAD,EAACE,GAAA,EAAQ;AAAA,UAAE;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,IAGb,gBAAAJ,EAACK,GAAA,EAAoB,OAAM,OAAM,WAAU,aACzC,UAAA;AAAA,MAAA,gBAAAH,EAACI,KAAkB,UAAA,iBAAA,CAAc;AAAA,wBAChCC,GAAA,EAAsB;AAAA,MACtBT,EACE,gBACA;AAAA,QACC,CAACU,MACC,OAAOA,EAAO,aAAe,OAAeA,EAAO,WAAA;AAAA,MAAW,EAEjE,IAAI,CAACA,MACJ,gBAAAN;AAAA,QAACO;AAAA,QAAA;AAAA,UAEC,WAAU;AAAA,UACV,SAASD,EAAO,aAAA;AAAA,UAChB,iBAAiB,CAACE,MAAUF,EAAO,iBAAiB,CAAC,CAACE,CAAK;AAAA,UAE1D,UAAAF,EAAO;AAAA,QAAA;AAAA,QALHA,EAAO;AAAA,MAAA,CAOf;AAAA,IAAA,EAAA,CACL;AAAA,EAAA,GACF;AAEJ;"}
@@ -1,89 +0,0 @@
1
- import { jsx as e, jsxs as u } from "react/jsx-runtime";
2
- import { useState as t, Fragment as H } from "react";
3
- import { useReactTable as P, flexRender as h } from "../../../node_modules/.pnpm/@tanstack_react-table@8.21.3_react-dom@19.2.6_react@19.2.6__react@19.2.6/node_modules/@tanstack/react-table/build/lib/index.js";
4
- import { cn as p } from "../../../lib/utils.js";
5
- import { Table as j, TableHeader as A, TableRow as a, TableHead as B, TableBody as L, TableCell as d } from "../table/table.js";
6
- import { getFilteredRowModel as $, getSortedRowModel as q, getPaginationRowModel as z, getExpandedRowModel as G, getCoreRowModel as J } from "../../../node_modules/.pnpm/@tanstack_table-core@8.21.3/node_modules/@tanstack/table-core/build/lib/index.js";
7
- function Z({
8
- columns: b,
9
- data: C,
10
- getRowCanExpand: f,
11
- renderExpandedRow: g,
12
- striped: v = !1,
13
- bordered: R = !1,
14
- highlightCurrentRow: i = !1,
15
- skeleton: x = !1,
16
- skeletonRows: S = 5
17
- }) {
18
- const [M, w] = t([]), [y, N] = t([]), [T, F] = t({}), [V, _] = t({}), [k, E] = t({}), [I, D] = t(), s = P({
19
- data: C,
20
- columns: b,
21
- getCoreRowModel: J(),
22
- getExpandedRowModel: G(),
23
- getPaginationRowModel: z(),
24
- getRowCanExpand: f,
25
- onExpandedChange: E,
26
- onSortingChange: w,
27
- getSortedRowModel: q(),
28
- onColumnFiltersChange: N,
29
- getFilteredRowModel: $(),
30
- onColumnVisibilityChange: F,
31
- onRowSelectionChange: _,
32
- state: { sorting: M, columnFilters: y, columnVisibility: T, rowSelection: V, expanded: k }
33
- }), n = s.getRowModel().rows;
34
- return /* @__PURE__ */ e(
35
- "div",
36
- {
37
- className: p(
38
- "rounded-md border border-[var(--ui-table-global-cell-border-color)]",
39
- R ? "[&_th:not(:last-child)]:border-r [&_td:not(:last-child)]:border-r [&_th]:border-[var(--ui-table-global-cell-border-color)] [&_td]:border-[var(--ui-table-global-cell-border-color)]" : void 0
40
- ),
41
- children: /* @__PURE__ */ u(j, { children: [
42
- /* @__PURE__ */ e(A, { children: s.getHeaderGroups().map((l) => /* @__PURE__ */ e(a, { children: l.headers.map((o) => /* @__PURE__ */ e(B, { children: o.isPlaceholder ? null : h(
43
- o.column.columnDef.header,
44
- o.getContext()
45
- ) }, o.id)) }, l.id)) }),
46
- /* @__PURE__ */ e(L, { children: x ? Array.from({ length: S }).map((l, o) => /* @__PURE__ */ e(a, { className: "hover:bg-transparent", children: s.getVisibleLeafColumns().map((r) => /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e("div", { className: "h-4 w-full animate-pulse rounded bg-[var(--ui-background-surface-secondary)]" }) }, r.id)) }, `skeleton-${o}`)) : n != null && n.length ? n.map((l, o) => {
47
- const r = l.getIsSelected(), m = i && I === l.id;
48
- return /* @__PURE__ */ u(H, { children: [
49
- /* @__PURE__ */ e(
50
- a,
51
- {
52
- selected: r,
53
- onClick: i ? () => D(l.id) : void 0,
54
- className: p(
55
- i && "cursor-pointer",
56
- v && o % 2 === 1 && !r && !m && "bg-[var(--ui-background-surface-secondary)]",
57
- m && !r && "bg-[var(--ui-table-global-row-color-active)]"
58
- ),
59
- children: l.getVisibleCells().map((c) => /* @__PURE__ */ e(d, { children: h(
60
- c.column.columnDef.cell,
61
- c.getContext()
62
- ) }, c.id))
63
- }
64
- ),
65
- g && l.getIsExpanded() && /* @__PURE__ */ e(a, { className: "hover:bg-transparent", children: /* @__PURE__ */ e(
66
- d,
67
- {
68
- className: "h-auto py-3",
69
- colSpan: l.getVisibleCells().length,
70
- children: g(l)
71
- }
72
- ) })
73
- ] }, l.id);
74
- }) : /* @__PURE__ */ e(a, { children: /* @__PURE__ */ e(
75
- d,
76
- {
77
- colSpan: b.length,
78
- className: "h-24 text-center text-[var(--ui-table-data-value-color-disabled)]",
79
- children: "No results."
80
- }
81
- ) }) })
82
- ] })
83
- }
84
- );
85
- }
86
- export {
87
- Z as DataTable
88
- };
89
- //# sourceMappingURL=data-table.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"data-table.js","sources":["../../../../src/components/ui/data-table/data-table.tsx"],"sourcesContent":["import { Fragment, type ReactNode, useState } from 'react';\nimport {\n type ColumnDef,\n type ColumnFiltersState,\n type ExpandedState,\n type Row,\n type SortingState,\n type VisibilityState,\n flexRender,\n getCoreRowModel,\n getExpandedRowModel,\n getFilteredRowModel,\n getPaginationRowModel,\n getSortedRowModel,\n useReactTable,\n} from '@tanstack/react-table';\n\nimport { cn } from '@/lib/utils';\nimport {\n Table,\n TableBody,\n TableCell,\n TableHead,\n TableHeader,\n TableRow,\n} from '../table';\n\n// Ported from `@acronis-platform/shadcn-uikit`'s `data-table`\n// (packages/ui-legacy/src/components/ui/data-table/). A TanStack-react-table v8\n// data grid composed over the ui-react Table primitives — sorting, filtering,\n// column visibility, row selection, pagination, and optional row expansion. The\n// presentational flags (`striped`, `bordered`, `skeleton`, `highlightCurrentRow`)\n// are borrowed from the Vue `AvTable`; behavioral features come from TanStack.\n// Pair with DataTableToolbar / DataTablePagination / DataTableColumnHeader, which\n// take the `table` instance returned to column cells via TanStack context.\n// The grid cells/rows/headers are themed by the Table primitives' `--ui-table-*`\n// tier; DataTable's own chrome reuses that tier too — the wrapper border matches\n// the cell borders (`--ui-table-global-cell-border-color`), the empty-state uses\n// the muted table-value color, the current row the active-row color, and stripes\n// the secondary surface.\n\nexport interface DataTableProps<TData, TValue> {\n columns: ColumnDef<TData, TValue>[];\n data: TData[];\n /** Enables row expansion for rows that return true. Pair with `renderExpandedRow`. */\n getRowCanExpand?: (row: Row<TData>) => boolean;\n /**\n * Renders expanded content for an expanded row. Used together with\n * `getRowCanExpand`.\n */\n renderExpandedRow?: (row: Row<TData>) => ReactNode;\n /** Alternating row backgrounds. */\n striped?: boolean;\n /** Vertical borders between columns (rows already have horizontal borders). */\n bordered?: boolean;\n /** Highlight the row the user last clicked (the \"current\" row). */\n highlightCurrentRow?: boolean;\n /** Render placeholder skeleton rows instead of data (loading state). */\n skeleton?: boolean;\n /** Number of skeleton rows to render when `skeleton` is set. */\n skeletonRows?: number;\n}\n\nexport function DataTable<TData, TValue>({\n columns,\n data,\n getRowCanExpand,\n renderExpandedRow,\n striped = false,\n bordered = false,\n highlightCurrentRow = false,\n skeleton = false,\n skeletonRows = 5,\n}: DataTableProps<TData, TValue>) {\n const [sorting, setSorting] = useState<SortingState>([]);\n const [columnFilters, setColumnFilters] = useState<ColumnFiltersState>([]);\n const [columnVisibility, setColumnVisibility] = useState<VisibilityState>({});\n const [rowSelection, setRowSelection] = useState({});\n const [expanded, setExpanded] = useState<ExpandedState>({});\n const [currentRowId, setCurrentRowId] = useState<string>();\n\n const table = useReactTable({\n data,\n columns,\n getCoreRowModel: getCoreRowModel(),\n getExpandedRowModel: getExpandedRowModel(),\n getPaginationRowModel: getPaginationRowModel(),\n getRowCanExpand,\n onExpandedChange: setExpanded,\n onSortingChange: setSorting,\n getSortedRowModel: getSortedRowModel(),\n onColumnFiltersChange: setColumnFilters,\n getFilteredRowModel: getFilteredRowModel(),\n onColumnVisibilityChange: setColumnVisibility,\n onRowSelectionChange: setRowSelection,\n state: { sorting, columnFilters, columnVisibility, rowSelection, expanded },\n });\n\n const rows = table.getRowModel().rows;\n // Vertical borders are opt-in; a trailing border on the last cell would\n // double up with the wrapper, so suppress it.\n const borderedClass = bordered\n ? '[&_th:not(:last-child)]:border-r [&_td:not(:last-child)]:border-r [&_th]:border-[var(--ui-table-global-cell-border-color)] [&_td]:border-[var(--ui-table-global-cell-border-color)]'\n : undefined;\n\n return (\n <div\n className={cn(\n 'rounded-md border border-[var(--ui-table-global-cell-border-color)]',\n borderedClass\n )}\n >\n <Table>\n <TableHeader>\n {table.getHeaderGroups().map((headerGroup) => (\n <TableRow key={headerGroup.id}>\n {headerGroup.headers.map((header) => (\n <TableHead key={header.id}>\n {header.isPlaceholder\n ? null\n : flexRender(\n header.column.columnDef.header,\n header.getContext()\n )}\n </TableHead>\n ))}\n </TableRow>\n ))}\n </TableHeader>\n <TableBody>\n {skeleton ? (\n Array.from({ length: skeletonRows }).map((_, rowIndex) => (\n <TableRow key={`skeleton-${rowIndex}`} className=\"hover:bg-transparent\">\n {table.getVisibleLeafColumns().map((column) => (\n <TableCell key={column.id}>\n <div className=\"h-4 w-full animate-pulse rounded bg-[var(--ui-background-surface-secondary)]\" />\n </TableCell>\n ))}\n </TableRow>\n ))\n ) : rows?.length ? (\n rows.map((row, rowIndex) => {\n const isSelected = row.getIsSelected();\n const isCurrent = highlightCurrentRow && currentRowId === row.id;\n return (\n <Fragment key={row.id}>\n <TableRow\n selected={isSelected}\n onClick={\n highlightCurrentRow\n ? () => setCurrentRowId(row.id)\n : undefined\n }\n className={cn(\n highlightCurrentRow && 'cursor-pointer',\n striped &&\n rowIndex % 2 === 1 &&\n !isSelected &&\n !isCurrent &&\n 'bg-[var(--ui-background-surface-secondary)]',\n isCurrent &&\n !isSelected &&\n 'bg-[var(--ui-table-global-row-color-active)]'\n )}\n >\n {row.getVisibleCells().map((cell) => (\n <TableCell key={cell.id}>\n {flexRender(\n cell.column.columnDef.cell,\n cell.getContext()\n )}\n </TableCell>\n ))}\n </TableRow>\n {renderExpandedRow && row.getIsExpanded() && (\n <TableRow className=\"hover:bg-transparent\">\n <TableCell\n className=\"h-auto py-3\"\n colSpan={row.getVisibleCells().length}\n >\n {renderExpandedRow(row)}\n </TableCell>\n </TableRow>\n )}\n </Fragment>\n );\n })\n ) : (\n <TableRow>\n <TableCell\n colSpan={columns.length}\n className=\"h-24 text-center text-[var(--ui-table-data-value-color-disabled)]\"\n >\n No results.\n </TableCell>\n </TableRow>\n )}\n </TableBody>\n </Table>\n </div>\n );\n}\n"],"names":["DataTable","columns","data","getRowCanExpand","renderExpandedRow","striped","bordered","highlightCurrentRow","skeleton","skeletonRows","sorting","setSorting","useState","columnFilters","setColumnFilters","columnVisibility","setColumnVisibility","rowSelection","setRowSelection","expanded","setExpanded","currentRowId","setCurrentRowId","table","useReactTable","getCoreRowModel","getExpandedRowModel","getPaginationRowModel","getSortedRowModel","getFilteredRowModel","rows","jsx","cn","Table","TableHeader","headerGroup","TableRow","header","TableHead","flexRender","TableBody","_","rowIndex","column","TableCell","row","isSelected","isCurrent","Fragment","cell"],"mappings":";;;;;;AA+DO,SAASA,EAAyB;AAAA,EACvC,SAAAC;AAAA,EACA,MAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,UAAAC,IAAW;AAAA,EACX,qBAAAC,IAAsB;AAA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AAA;AAAA,YAAA,EACxB,CACF;AAAA,UAAA,EAAA,GArCWA,EAAI,EAuCnB;AAAA,QAEJ,CAAC,IAED,gBAAAd,EAACK,GAAA,EACC,UAAA,gBAAAL;AAAA,UAACa;AAAA,UAAA;AAAA,YACC,SAAS3C,EAAQ;AAAA,YACjB,WAAU;AAAA,YACX,UAAA;AAAA,UAAA;AAAA,QAAA,GAGH,EAAA,CAEJ;AAAA,MAAA,EAAA,CACF;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,54 +0,0 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import * as r from "react";
3
- import { cn as a } from "../../../lib/utils.js";
4
- const o = r.forwardRef(({ className: s, ...e }, i) => /* @__PURE__ */ t("dl", { ref: i, className: a("w-full", s), ...e }));
5
- o.displayName = "DescriptionList";
6
- const c = r.forwardRef(({ className: s, ...e }, i) => /* @__PURE__ */ t(
7
- "div",
8
- {
9
- ref: i,
10
- className: a(
11
- // `px-6` insets the content while the `border-t` divider stays full-bleed
12
- // (the Figma card look). Override the padding via className when the
13
- // surrounding container already pads (e.g. `-mx-6` inside a padded body).
14
- "grid grid-cols-[var(--description-list-label,14rem)_minmax(0,1fr)] gap-x-4 border-t border-border px-6 py-3 text-sm leading-6",
15
- s
16
- ),
17
- ...e
18
- }
19
- ));
20
- c.displayName = "DescriptionListItem";
21
- const n = r.forwardRef(({ className: s, ...e }, i) => /* @__PURE__ */ t("dt", { ref: i, className: a("text-foreground", s), ...e }));
22
- n.displayName = "DescriptionListLabel";
23
- const p = r.forwardRef(({ className: s, ...e }, i) => /* @__PURE__ */ t(
24
- "dd",
25
- {
26
- ref: i,
27
- className: a(
28
- "flex min-w-0 items-start gap-2 text-foreground [&>svg]:mt-0.5 [&>svg]:size-4 [&>svg]:shrink-0",
29
- s
30
- ),
31
- ...e
32
- }
33
- ));
34
- p.displayName = "DescriptionListValue";
35
- const d = r.forwardRef(({ className: s, ...e }, i) => /* @__PURE__ */ t("p", { ref: i, className: a("text-muted-foreground", s), ...e }));
36
- d.displayName = "DescriptionListValueDescription";
37
- const l = r.forwardRef(({ className: s, ...e }, i) => /* @__PURE__ */ t(
38
- "div",
39
- {
40
- ref: i,
41
- className: a("flex flex-wrap items-center gap-4", s),
42
- ...e
43
- }
44
- ));
45
- l.displayName = "DescriptionListActions";
46
- export {
47
- o as DescriptionList,
48
- l as DescriptionListActions,
49
- c as DescriptionListItem,
50
- n as DescriptionListLabel,
51
- p as DescriptionListValue,
52
- d as DescriptionListValueDescription
53
- };
54
- //# sourceMappingURL=description-list.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"description-list.js","sources":["../../../../src/components/ui/description-list/description-list.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport { cn } from '@/lib/utils';\n\n// A key/value data list — rows of `label → value`, where the value can be plain\n// text, a status (leading icon + value + a muted description), or action links.\n// Built from the Figma \"Service status\" design (Cyber-Compliance node\n// 3001-20448). Semantic HTML: a `<dl>` of `<div>`-grouped `<dt>`/`<dd>` rows.\n// No `--ui-description-list-*` tier — it composes the shared semantic tokens:\n// • label / value -> text-foreground (--ui-text-on-surface-primary)\n// • description -> text-muted-foreground (--ui-text-on-surface-secondary)\n// • row divider -> border-border (--ui-border-on-surface-border)\n// • status icon color -> caller-provided (--ui-text-on-status-*)\n// • action links -> compose the `Link` component\n// The 2-column row grid uses a fixed label column (overridable per item via\n// className / the `--description-list-label` custom property).\n\nconst DescriptionList = React.forwardRef<\n HTMLDListElement,\n React.HTMLAttributes<HTMLDListElement>\n>(({ className, ...props }, ref) => (\n <dl ref={ref} className={cn('w-full', className)} {...props} />\n));\nDescriptionList.displayName = 'DescriptionList';\n\nconst DescriptionListItem = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n // `px-6` insets the content while the `border-t` divider stays full-bleed\n // (the Figma card look). Override the padding via className when the\n // surrounding container already pads (e.g. `-mx-6` inside a padded body).\n 'grid grid-cols-[var(--description-list-label,14rem)_minmax(0,1fr)] gap-x-4 border-t border-border px-6 py-3 text-sm leading-6',\n className\n )}\n {...props}\n />\n));\nDescriptionListItem.displayName = 'DescriptionListItem';\n\nconst DescriptionListLabel = React.forwardRef<\n HTMLElement,\n React.HTMLAttributes<HTMLElement>\n>(({ className, ...props }, ref) => (\n <dt ref={ref} className={cn('text-foreground', className)} {...props} />\n));\nDescriptionListLabel.displayName = 'DescriptionListLabel';\n\nconst DescriptionListValue = React.forwardRef<\n HTMLElement,\n React.HTMLAttributes<HTMLElement>\n>(({ className, ...props }, ref) => (\n <dd\n ref={ref}\n className={cn(\n 'flex min-w-0 items-start gap-2 text-foreground [&>svg]:mt-0.5 [&>svg]:size-4 [&>svg]:shrink-0',\n className\n )}\n {...props}\n />\n));\nDescriptionListValue.displayName = 'DescriptionListValue';\n\nconst DescriptionListValueDescription = React.forwardRef<\n HTMLParagraphElement,\n React.HTMLAttributes<HTMLParagraphElement>\n>(({ className, ...props }, ref) => (\n <p ref={ref} className={cn('text-muted-foreground', className)} {...props} />\n));\nDescriptionListValueDescription.displayName = 'DescriptionListValueDescription';\n\nconst DescriptionListActions = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn('flex flex-wrap items-center gap-4', className)}\n {...props}\n />\n));\nDescriptionListActions.displayName = 'DescriptionListActions';\n\nexport {\n DescriptionList,\n DescriptionListItem,\n DescriptionListLabel,\n DescriptionListValue,\n DescriptionListValueDescription,\n DescriptionListActions,\n};\n"],"names":["DescriptionList","React","className","props","ref","cn","DescriptionListItem","jsx","DescriptionListLabel","DescriptionListValue","DescriptionListValueDescription","DescriptionListActions"],"mappings":";;;AAiBA,MAAMA,IAAkBC,EAAM,WAG5B,CAAC,EAAE,WAAAC,GAAW,GAAGC,KAASC,wBACzB,MAAA,EAAG,KAAAA,GAAU,WAAWC,EAAG,UAAUH,CAAS,GAAI,GA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as i from "react";
3
- import { Dialog as r } from "@base-ui/react/dialog";
4
- import { TimesIcon as x } from "@acronis-platform/icons-react/stroke-mono";
5
- import { cva as D } from "../../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js";
6
- import { cn as l } from "../../../lib/utils.js";
7
- const y = D(
8
- "fixed left-1/2 top-1/2 z-50 flex w-full -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-lg bg-muted text-foreground shadow-lg duration-200 data-[open]:animate-in data-[open]:fade-in-0 data-[open]:zoom-in-95 data-[closed]:animate-out data-[closed]:fade-out-0 data-[closed]:zoom-out-95",
9
- {
10
- variants: {
11
- size: {
12
- xs: "max-w-[464px]",
13
- sm: "max-w-lg",
14
- md: "max-w-2xl",
15
- lg: "max-w-[832px]",
16
- xl: "max-w-[992px]",
17
- "2xl": "max-w-[1136px]"
18
- }
19
- },
20
- defaultVariants: {
21
- size: "sm"
22
- }
23
- }
24
- ), j = r.Root, F = r.Trigger, H = r.Portal, O = r.Close, d = i.forwardRef(({ className: o, ...a }, e) => /* @__PURE__ */ t(
25
- r.Backdrop,
26
- {
27
- ref: e,
28
- className: l(
29
- "fixed inset-0 z-50 bg-[var(--ui-background-overlay-primary)] duration-200 data-[open]:animate-in data-[open]:fade-in-0 data-[closed]:animate-out data-[closed]:fade-out-0",
30
- o
31
- ),
32
- ...a
33
- }
34
- ));
35
- d.displayName = "DialogOverlay";
36
- const b = i.forwardRef(
37
- ({
38
- className: o,
39
- children: a,
40
- size: e,
41
- portal: m = !0,
42
- portalContainer: c,
43
- keepMounted: f,
44
- ...g
45
- }, p) => {
46
- const s = /* @__PURE__ */ n(u, { children: [
47
- /* @__PURE__ */ t(d, {}),
48
- /* @__PURE__ */ t(
49
- r.Popup,
50
- {
51
- ref: p,
52
- className: l(y({ size: e }), o),
53
- ...g,
54
- children: a
55
- }
56
- )
57
- ] });
58
- return m ? /* @__PURE__ */ t(r.Portal, { container: c, keepMounted: f, children: s }) : s;
59
- }
60
- );
61
- b.displayName = "DialogContent";
62
- const w = i.forwardRef(({ className: o, ...a }, e) => /* @__PURE__ */ t(
63
- "div",
64
- {
65
- ref: e,
66
- className: l(
67
- "flex h-16 items-center gap-4 border-b border-border bg-background px-5 py-4",
68
- o
69
- ),
70
- ...a
71
- }
72
- ));
73
- w.displayName = "DialogHeader";
74
- const v = i.forwardRef(({ className: o, ...a }, e) => /* @__PURE__ */ t(
75
- "div",
76
- {
77
- ref: e,
78
- className: l(
79
- "flex h-16 items-center justify-end gap-4 border-t border-border bg-background px-6 py-4",
80
- o
81
- ),
82
- ...a
83
- }
84
- ));
85
- v.displayName = "DialogFooter";
86
- const N = i.forwardRef(({ className: o, ...a }, e) => /* @__PURE__ */ t("div", { ref: e, className: l("flex-1 overflow-auto p-6", o), ...a }));
87
- N.displayName = "DialogBody";
88
- const R = i.forwardRef(({ className: o, ...a }, e) => /* @__PURE__ */ t(
89
- r.Title,
90
- {
91
- ref: e,
92
- className: l(
93
- "flex-1 text-2xl font-normal leading-8 text-foreground",
94
- o
95
- ),
96
- ...a
97
- }
98
- ));
99
- R.displayName = "DialogTitle";
100
- const h = i.forwardRef(({ className: o, ...a }, e) => /* @__PURE__ */ t(
101
- r.Description,
102
- {
103
- ref: e,
104
- className: l("text-sm text-muted-foreground", o),
105
- ...a
106
- }
107
- ));
108
- h.displayName = "DialogDescription";
109
- const C = i.forwardRef(({ className: o, ...a }, e) => /* @__PURE__ */ n(
110
- r.Close,
111
- {
112
- ref: e,
113
- className: l(
114
- "rounded p-1 text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ui-focus-primary)] disabled:pointer-events-none",
115
- o
116
- ),
117
- ...a,
118
- children: [
119
- /* @__PURE__ */ t(x, { size: 24 }),
120
- /* @__PURE__ */ t("span", { className: "sr-only", children: "Close" })
121
- ]
122
- }
123
- ));
124
- C.displayName = "DialogCloseButton";
125
- export {
126
- j as Dialog,
127
- N as DialogBody,
128
- O as DialogClose,
129
- C as DialogCloseButton,
130
- b as DialogContent,
131
- h as DialogDescription,
132
- v as DialogFooter,
133
- w as DialogHeader,
134
- d as DialogOverlay,
135
- H as DialogPortal,
136
- R as DialogTitle,
137
- F as DialogTrigger,
138
- y as dialogContentVariants
139
- };
140
- //# sourceMappingURL=dialog.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dialog.js","sources":["../../../../src/components/ui/dialog/dialog.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Dialog as DialogPrimitive } from '@base-ui/react/dialog';\nimport { TimesIcon } from '@acronis-platform/icons-react/stroke-mono';\nimport { cva, type VariantProps } from 'class-variance-authority';\n\nimport { cn } from '@/lib/utils';\n\n// Initial version ported from `@acronis-platform/shadcn-uikit`'s `dialog`\n// (packages/ui-legacy/src/components/ui/dialog.tsx). A modal overlay built on\n// the Base UI Dialog primitive (keyboard, focus trap, scroll lock, ARIA come\n// from Base UI). No `--ui-dialog-*` token tier exists yet, so this design-\n// pending v1 themes from the shared semantic tokens via bridged Tailwind names:\n// • overlay -> var(--ui-background-overlay-primary) (legacy `bg-black/80`)\n// • popup -> bg-muted = --ui-background-surface-secondary\n// • header / footer -> bg-background = --ui-background-surface-primary (white\n// bars over the muted body), divided by border-border\n// • title -> text-foreground / description -> text-muted-foreground\n// • close -> text-muted-foreground → hover text-foreground (replaces the\n// legacy opacity hack), focus ring var(--ui-focus-primary)\n// Enter/exit animations use `tw-animate-css` (imported in styles/index.css),\n// keyed to Base UI's data-[open] / data-[closed] state attributes — overlay\n// fades, popup fades + zooms. The `size` scale (max-width) mirrors the reference\n// design's six widths; until a `--ui-dialog-*` tier defines them, they are plain\n// max-width utilities. Reconcile against the real design with\n// `/figma-component Dialog <url> --update` once a mockup lands.\n\n// Popup width scale. `sm` (512px) is the default and matches the pre-size width.\nconst dialogContentVariants = cva(\n 'fixed left-1/2 top-1/2 z-50 flex w-full -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-lg bg-muted text-foreground shadow-lg duration-200 data-[open]:animate-in data-[open]:fade-in-0 data-[open]:zoom-in-95 data-[closed]:animate-out data-[closed]:fade-out-0 data-[closed]:zoom-out-95',\n {\n variants: {\n size: {\n xs: 'max-w-[464px]',\n sm: 'max-w-lg',\n md: 'max-w-2xl',\n lg: 'max-w-[832px]',\n xl: 'max-w-[992px]',\n '2xl': 'max-w-[1136px]',\n },\n },\n defaultVariants: {\n size: 'sm',\n },\n }\n);\n\nconst Dialog = DialogPrimitive.Root;\n\nconst DialogTrigger = DialogPrimitive.Trigger;\n\nconst DialogPortal = DialogPrimitive.Portal;\n\nconst DialogClose = DialogPrimitive.Close;\n\nconst DialogOverlay = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Backdrop>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Backdrop>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Backdrop\n ref={ref}\n className={cn(\n 'fixed inset-0 z-50 bg-[var(--ui-background-overlay-primary)] duration-200 data-[open]:animate-in data-[open]:fade-in-0 data-[closed]:animate-out data-[closed]:fade-out-0',\n className\n )}\n {...props}\n />\n));\nDialogOverlay.displayName = 'DialogOverlay';\n\nexport interface DialogContentProps\n extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Popup>,\n VariantProps<typeof dialogContentVariants> {\n /**\n * Popup max-width. `sm` 512 · `xs` 464 · `md` 672 · `lg` 832 · `xl` 992 ·\n * `2xl` 1136 (px). Defaults to `sm`.\n */\n size?: VariantProps<typeof dialogContentVariants>['size'];\n /**\n * Render the content inside a portal (default `true`). Base UI requires the\n * Popup to sit in a Portal for correct stacking; set `false` for inline usage\n * (e.g. when the caller supplies its own `DialogPortal`, or in tests).\n */\n portal?: boolean;\n /**\n * Portal container. Pass a shadow-root mount for isolated-style previews\n * (the docs demos do this via `useShadowMount`).\n */\n portalContainer?: DialogPrimitive.Portal.Props['container'];\n /** Keep the content mounted while closed (Base UI `Portal` prop). */\n keepMounted?: DialogPrimitive.Portal.Props['keepMounted'];\n}\n\nconst DialogContent = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Popup>,\n DialogContentProps\n>(\n (\n {\n className,\n children,\n size,\n portal = true,\n portalContainer,\n keepMounted,\n ...props\n },\n ref\n ) => {\n const popup = (\n <>\n <DialogOverlay />\n <DialogPrimitive.Popup\n ref={ref}\n className={cn(dialogContentVariants({ size }), className)}\n {...props}\n >\n {children}\n </DialogPrimitive.Popup>\n </>\n );\n\n return portal ? (\n <DialogPrimitive.Portal container={portalContainer} keepMounted={keepMounted}>\n {popup}\n </DialogPrimitive.Portal>\n ) : (\n popup\n );\n }\n);\nDialogContent.displayName = 'DialogContent';\n\nconst DialogHeader = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'flex h-16 items-center gap-4 border-b border-border bg-background px-5 py-4',\n className\n )}\n {...props}\n />\n));\nDialogHeader.displayName = 'DialogHeader';\n\nconst DialogFooter = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'flex h-16 items-center justify-end gap-4 border-t border-border bg-background px-6 py-4',\n className\n )}\n {...props}\n />\n));\nDialogFooter.displayName = 'DialogFooter';\n\nconst DialogBody = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div ref={ref} className={cn('flex-1 overflow-auto p-6', className)} {...props} />\n));\nDialogBody.displayName = 'DialogBody';\n\nconst DialogTitle = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Title\n ref={ref}\n className={cn(\n 'flex-1 text-2xl font-normal leading-8 text-foreground',\n className\n )}\n {...props}\n />\n));\nDialogTitle.displayName = 'DialogTitle';\n\nconst DialogDescription = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Description\n ref={ref}\n className={cn('text-sm text-muted-foreground', className)}\n {...props}\n />\n));\nDialogDescription.displayName = 'DialogDescription';\n\nconst DialogCloseButton = React.forwardRef<\n React.ElementRef<typeof DialogPrimitive.Close>,\n React.ComponentPropsWithoutRef<typeof DialogPrimitive.Close>\n>(({ className, ...props }, ref) => (\n <DialogPrimitive.Close\n ref={ref}\n className={cn(\n 'rounded p-1 text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--ui-focus-primary)] disabled:pointer-events-none',\n className\n )}\n {...props}\n >\n <TimesIcon size={24} />\n <span className=\"sr-only\">Close</span>\n </DialogPrimitive.Close>\n));\nDialogCloseButton.displayName = 'DialogCloseButton';\n\nexport {\n Dialog,\n DialogPortal,\n DialogOverlay,\n DialogClose,\n DialogCloseButton,\n DialogTrigger,\n DialogContent,\n DialogHeader,\n DialogFooter,\n DialogTitle,\n DialogBody,\n DialogDescription,\n dialogContentVariants,\n};\n"],"names":["dialogContentVariants","cva","Dialog","DialogPrimitive","DialogTrigger","DialogPortal","DialogClose","DialogOverlay","React","className","props","ref","jsx","cn","DialogContent","children","size","portal","portalContainer","keepMounted","popup","jsxs","Fragment","DialogHeader","DialogFooter","DialogBody","DialogTitle","DialogDescription","DialogCloseButton","TimesIcon"],"mappings":";;;;;;AA2BA,MAAMA,IAAwBC;AAAA,EAC5B;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,MAAM;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,OAAO;AAAA,MAAA;AAAA,IACT;AAAA,IAEF,iBAAiB;AAAA,MACf,MAAM;AAAA,IAAA;AAAA,EACR;AAEJ,GAEMC,IAASC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;AAAA,MACrB,gBAAAjB,EAAC,QAAA,EAAK,WAAU,WAAU,UAAA,QAAA,CAAK;AAAA,IAAA;AAAA,EAAA;AACjC,CACD;AACDgB,EAAkB,cAAc;"}
@@ -1,159 +0,0 @@
1
- import { jsxs as l, jsx as t } from "react/jsx-runtime";
2
- import * as s from "react";
3
- import { Menu as n } from "@base-ui/react/menu";
4
- import { CheckIcon as b, ChevronRightIcon as h } from "@acronis-platform/icons-react/stroke-mono";
5
- import { cn as d } from "../../../lib/utils.js";
6
- const T = n.Root, j = n.Trigger, G = n.Group, _ = n.Portal, L = n.SubmenuRoot, q = n.RadioGroup, p = "z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-border bg-background py-1 text-foreground shadow-md outline-none duration-200 data-[open]:animate-in data-[closed]:animate-out data-[open]:fade-in-0 data-[closed]:fade-out-0 data-[open]:zoom-in-95 data-[closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2", m = "relative flex cursor-default select-none items-center gap-2 px-4 py-2 text-sm leading-6 outline-none transition-colors data-[highlighted]:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0", N = s.forwardRef(
7
- ({
8
- className: e,
9
- side: o,
10
- align: a,
11
- sideOffset: r = 4,
12
- portal: i = !0,
13
- portalContainer: u,
14
- keepMounted: f,
15
- ...g
16
- }, w) => {
17
- const c = /* @__PURE__ */ t(
18
- n.Positioner,
19
- {
20
- side: o,
21
- align: a,
22
- sideOffset: r,
23
- className: "z-50",
24
- children: /* @__PURE__ */ t(
25
- n.Popup,
26
- {
27
- ref: w,
28
- className: d(p, e),
29
- ...g
30
- }
31
- )
32
- }
33
- );
34
- return i ? /* @__PURE__ */ t(n.Portal, { container: u, keepMounted: f, children: c }) : c;
35
- }
36
- );
37
- N.displayName = "DropdownMenuContent";
38
- const M = s.forwardRef(({ className: e, sideOffset: o = 4, ...a }, r) => /* @__PURE__ */ t(n.Positioner, { sideOffset: o, className: "z-50", children: /* @__PURE__ */ t(
39
- n.Popup,
40
- {
41
- ref: r,
42
- className: d(p, e),
43
- ...a
44
- }
45
- ) }));
46
- M.displayName = "DropdownMenuSubContent";
47
- const x = s.forwardRef(({ className: e, inset: o, ...a }, r) => /* @__PURE__ */ t(
48
- n.Item,
49
- {
50
- ref: r,
51
- className: d(m, o && "pl-8", e),
52
- ...a
53
- }
54
- ));
55
- x.displayName = "DropdownMenuItem";
56
- const D = s.forwardRef(({ className: e, inset: o, children: a, ...r }, i) => /* @__PURE__ */ l(
57
- n.SubmenuTrigger,
58
- {
59
- ref: i,
60
- className: d(
61
- m,
62
- "data-[popup-open]:bg-accent",
63
- o && "pl-8",
64
- e
65
- ),
66
- ...r,
67
- children: [
68
- a,
69
- /* @__PURE__ */ t(h, { className: "ml-auto" })
70
- ]
71
- }
72
- ));
73
- D.displayName = "DropdownMenuSubTrigger";
74
- const y = s.forwardRef(({ className: e, children: o, ...a }, r) => /* @__PURE__ */ l(
75
- n.CheckboxItem,
76
- {
77
- ref: r,
78
- className: d(
79
- "relative flex cursor-default select-none items-center py-2 pl-8 pr-4 text-sm leading-6 outline-none transition-colors data-[highlighted]:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
80
- e
81
- ),
82
- ...a,
83
- children: [
84
- /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.CheckboxItemIndicator, { children: /* @__PURE__ */ t(b, { className: "size-4" }) }) }),
85
- o
86
- ]
87
- }
88
- ));
89
- y.displayName = "DropdownMenuCheckboxItem";
90
- const R = s.forwardRef(({ className: e, children: o, ...a }, r) => /* @__PURE__ */ l(
91
- n.RadioItem,
92
- {
93
- ref: r,
94
- className: d(
95
- "relative flex cursor-default select-none items-center py-2 pl-8 pr-4 text-sm leading-6 outline-none transition-colors data-[highlighted]:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
96
- e
97
- ),
98
- ...a,
99
- children: [
100
- /* @__PURE__ */ t("span", { className: "absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ t(n.RadioItemIndicator, { children: /* @__PURE__ */ t("span", { className: "size-2 rounded-full bg-current" }) }) }),
101
- o
102
- ]
103
- }
104
- ));
105
- R.displayName = "DropdownMenuRadioItem";
106
- const v = s.forwardRef(({ className: e, inset: o, ...a }, r) => /* @__PURE__ */ t(
107
- "div",
108
- {
109
- ref: r,
110
- className: d(
111
- "px-4 py-2 text-sm font-semibold leading-6",
112
- o && "pl-8",
113
- e
114
- ),
115
- ...a
116
- }
117
- ));
118
- v.displayName = "DropdownMenuLabel";
119
- const I = s.forwardRef(({ className: e, ...o }, a) => /* @__PURE__ */ t(
120
- "div",
121
- {
122
- ref: a,
123
- role: "separator",
124
- className: d("my-1 h-px bg-border", e),
125
- ...o
126
- }
127
- ));
128
- I.displayName = "DropdownMenuSeparator";
129
- function C({
130
- className: e,
131
- ...o
132
- }) {
133
- return /* @__PURE__ */ t(
134
- "span",
135
- {
136
- className: d("ml-auto text-xs tracking-widest text-muted-foreground", e),
137
- ...o
138
- }
139
- );
140
- }
141
- C.displayName = "DropdownMenuShortcut";
142
- export {
143
- T as DropdownMenu,
144
- y as DropdownMenuCheckboxItem,
145
- N as DropdownMenuContent,
146
- G as DropdownMenuGroup,
147
- x as DropdownMenuItem,
148
- v as DropdownMenuLabel,
149
- _ as DropdownMenuPortal,
150
- q as DropdownMenuRadioGroup,
151
- R as DropdownMenuRadioItem,
152
- I as DropdownMenuSeparator,
153
- C as DropdownMenuShortcut,
154
- L as DropdownMenuSub,
155
- M as DropdownMenuSubContent,
156
- D as DropdownMenuSubTrigger,
157
- j as DropdownMenuTrigger
158
- };
159
- //# sourceMappingURL=dropdown-menu.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropdown-menu.js","sources":["../../../../src/components/ui/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Menu as MenuPrimitive } from '@base-ui/react/menu';\nimport { CheckIcon, ChevronRightIcon } from '@acronis-platform/icons-react/stroke-mono';\n\nimport { cn } from '@/lib/utils';\n\n// Ported from `@acronis-platform/shadcn-uikit`'s `dropdown-menu`\n// (packages/ui-legacy/src/components/ui/dropdown-menu.tsx). A menu of actions\n// anchored to a trigger, built on the Base UI Menu primitive (positioning, focus\n// management, typeahead, outside-press / Esc dismissal, ARIA). No `--ui-menu-*`\n// token tier exists yet, so this design-pending v1 themes from the shared\n// semantic tokens:\n// • popup surface -> bg-background / text-foreground / border-border, shadow-md\n// (legacy `bg-popover` / `text-popover-foreground` have no ui-react bridge)\n// • item highlight -> bg-accent on data-[highlighted] (Base UI sets it on both\n// pointer hover and keyboard nav; replaces legacy hover:bg-primary/10)\n// • separator -> bg-border · shortcut -> text-muted-foreground (no opacity hack)\n// Enter/exit animations use `tw-animate-css` keyed to data-[open]/[closed]/[side].\n// Reconcile with `/figma-component DropdownMenu <url> --update` once a mockup lands.\n\nconst DropdownMenu = MenuPrimitive.Root;\nconst DropdownMenuTrigger = MenuPrimitive.Trigger;\nconst DropdownMenuGroup = MenuPrimitive.Group;\nconst DropdownMenuPortal = MenuPrimitive.Portal;\nconst DropdownMenuSub = MenuPrimitive.SubmenuRoot;\nconst DropdownMenuRadioGroup = MenuPrimitive.RadioGroup;\n\nconst popupClassName =\n 'z-50 min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border border-border bg-background py-1 text-foreground shadow-md outline-none duration-200 data-[open]:animate-in data-[closed]:animate-out data-[open]:fade-in-0 data-[closed]:fade-out-0 data-[open]:zoom-in-95 data-[closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=top]:slide-in-from-bottom-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2';\n\nconst itemClassName =\n 'relative flex cursor-default select-none items-center gap-2 px-4 py-2 text-sm leading-6 outline-none transition-colors data-[highlighted]:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0';\n\nexport interface DropdownMenuContentProps\n extends React.ComponentPropsWithoutRef<typeof MenuPrimitive.Popup> {\n side?: MenuPrimitive.Positioner.Props['side'];\n align?: MenuPrimitive.Positioner.Props['align'];\n sideOffset?: number;\n /** Render inside a portal (default `true`). */\n portal?: boolean;\n /** Portal container — pass a shadow-root mount for isolated-style previews. */\n portalContainer?: MenuPrimitive.Portal.Props['container'];\n keepMounted?: MenuPrimitive.Portal.Props['keepMounted'];\n}\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof MenuPrimitive.Popup>,\n DropdownMenuContentProps\n>(\n (\n {\n className,\n side,\n align,\n sideOffset = 4,\n portal = true,\n portalContainer,\n keepMounted,\n ...props\n },\n ref\n ) => {\n const positioner = (\n <MenuPrimitive.Positioner\n side={side}\n align={align}\n sideOffset={sideOffset}\n className=\"z-50\"\n >\n <MenuPrimitive.Popup\n ref={ref}\n className={cn(popupClassName, className)}\n {...props}\n />\n </MenuPrimitive.Positioner>\n );\n return portal ? (\n <MenuPrimitive.Portal container={portalContainer} keepMounted={keepMounted}>\n {positioner}\n </MenuPrimitive.Portal>\n ) : (\n positioner\n );\n }\n);\nDropdownMenuContent.displayName = 'DropdownMenuContent';\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof MenuPrimitive.Popup>,\n React.ComponentPropsWithoutRef<typeof MenuPrimitive.Popup> & {\n sideOffset?: number;\n }\n>(({ className, sideOffset = 4, ...props }, ref) => (\n <MenuPrimitive.Positioner sideOffset={sideOffset} className=\"z-50\">\n <MenuPrimitive.Popup\n ref={ref}\n className={cn(popupClassName, className)}\n {...props}\n />\n </MenuPrimitive.Positioner>\n));\nDropdownMenuSubContent.displayName = 'DropdownMenuSubContent';\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof MenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof MenuPrimitive.Item> & { inset?: boolean }\n>(({ className, inset, ...props }, ref) => (\n <MenuPrimitive.Item\n ref={ref}\n className={cn(itemClassName, inset && 'pl-8', className)}\n {...props}\n />\n));\nDropdownMenuItem.displayName = 'DropdownMenuItem';\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof MenuPrimitive.SubmenuTrigger>,\n React.ComponentPropsWithoutRef<typeof MenuPrimitive.SubmenuTrigger> & {\n inset?: boolean;\n }\n>(({ className, inset, children, ...props }, ref) => (\n <MenuPrimitive.SubmenuTrigger\n ref={ref}\n className={cn(\n itemClassName,\n 'data-[popup-open]:bg-accent',\n inset && 'pl-8',\n className\n )}\n {...props}\n >\n {children}\n <ChevronRightIcon className=\"ml-auto\" />\n </MenuPrimitive.SubmenuTrigger>\n));\nDropdownMenuSubTrigger.displayName = 'DropdownMenuSubTrigger';\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof MenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof MenuPrimitive.CheckboxItem>\n>(({ className, children, ...props }, ref) => (\n <MenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-2 pl-8 pr-4 text-sm leading-6 outline-none transition-colors data-[highlighted]:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenuPrimitive.CheckboxItemIndicator>\n <CheckIcon className=\"size-4\" />\n </MenuPrimitive.CheckboxItemIndicator>\n </span>\n {children}\n </MenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = 'DropdownMenuCheckboxItem';\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof MenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof MenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <MenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n 'relative flex cursor-default select-none items-center py-2 pl-8 pr-4 text-sm leading-6 outline-none transition-colors data-[highlighted]:bg-accent data-[disabled]:pointer-events-none data-[disabled]:opacity-50',\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex size-3.5 items-center justify-center\">\n <MenuPrimitive.RadioItemIndicator>\n <span className=\"size-2 rounded-full bg-current\" />\n </MenuPrimitive.RadioItemIndicator>\n </span>\n {children}\n </MenuPrimitive.RadioItem>\n));\nDropdownMenuRadioItem.displayName = 'DropdownMenuRadioItem';\n\nconst DropdownMenuLabel = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement> & { inset?: boolean }\n>(({ className, inset, ...props }, ref) => (\n <div\n ref={ref}\n className={cn(\n 'px-4 py-2 text-sm font-semibold leading-6',\n inset && 'pl-8',\n className\n )}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = 'DropdownMenuLabel';\n\nconst DropdownMenuSeparator = React.forwardRef<\n HTMLDivElement,\n React.HTMLAttributes<HTMLDivElement>\n>(({ className, ...props }, ref) => (\n <div\n ref={ref}\n role=\"separator\"\n className={cn('my-1 h-px bg-border', className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = 'DropdownMenuSeparator';\n\nfunction DropdownMenuShortcut({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) {\n return (\n <span\n className={cn('ml-auto text-xs tracking-widest text-muted-foreground', className)}\n {...props}\n />\n );\n}\nDropdownMenuShortcut.displayName = 'DropdownMenuShortcut';\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n};\n"],"names":["DropdownMenu","MenuPrimitive","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","popupClassName","itemClassName","DropdownMenuContent","React","className","side","align","sideOffset","portal","portalContainer","keepMounted","props","ref","positioner","jsx","cn","DropdownMenuSubContent","DropdownMenuItem","inset","DropdownMenuSubTrigger","children","jsxs","ChevronRightIcon","DropdownMenuCheckboxItem","CheckIcon","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","DropdownMenuShortcut"],"mappings":";;;;;AAoBA,MAAMA,IAAeC,EAAc,MAC7BC,IAAsBD,EAAc,SACpCE,IAAoBF,EAAc,OAClCG,IAAqBH,EAAc,QACnCI,IAAkBJ,EAAc,aAChCK,IAAyBL,EAAc,YAEvCM,IACJ,2cAEIC,IACJ,kRAcIC,IAAsBC,EAAM;AAAA,EAIhC,CACE;AAAA,IACE,WAAAC;AAAA,IACA,MAAAC;AAAA,IACA,OAAAC;AAAA,IACA,YAAAC,IAAa;AAAA,IACb,QAAAC,IAAS;AAAA,IACT,iBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,GAELC,MACG;AACH,UAAMC,IACJ,gBAAAC;AAAA,MAACpB,EAAc;AAAA,MAAd;AAAA,QACC,MAAAW;AAAA,QACA,OAAAC;AAAA,QACA,YAAAC;AAAA,QACA,WAAU;AAAA,QAEV,UAAA,gBAAAO;AAAA,UAACpB,EAAc;AAAA,UAAd;AAAA,YACC,KAAAkB;AAAA,YACA,WAAWG,EAAGf,GAAgBI,CAAS;AAAA,YACtC,GAAGO;AAAA,UAAA;AAAA,QAAA;AAAA,MACN;AAAA,IAAA;AAGJ,WAAOH,sBACJd,EAAc,QAAd,EAAqB,WAAWe,GAAiB,aAAAC,GAC/C,UAAAG,EAAA,CACH,IAEAA;AAAA,EAEJ;AACF;AACAX,EAAoB,cAAc;AAElC,MAAMc,IAAyBb,EAAM,WAKnC,CAAC,EAAE,WAAA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