@me1a/ui 2.2.0 → 2.2.2

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 (376) hide show
  1. package/dist/atoms/accordion.d.mts +94 -0
  2. package/dist/atoms/accordion.d.ts +94 -0
  3. package/dist/atoms/accordion.js +2 -0
  4. package/dist/atoms/accordion.js.map +1 -0
  5. package/dist/atoms/accordion.mjs +2 -0
  6. package/dist/atoms/accordion.mjs.map +1 -0
  7. package/dist/atoms/avatar.d.mts +34 -0
  8. package/dist/atoms/avatar.d.ts +34 -0
  9. package/dist/atoms/avatar.js +2 -0
  10. package/dist/atoms/avatar.js.map +1 -0
  11. package/dist/atoms/avatar.mjs +2 -0
  12. package/dist/atoms/avatar.mjs.map +1 -0
  13. package/dist/atoms/badge.d.mts +40 -0
  14. package/dist/atoms/badge.d.ts +40 -0
  15. package/dist/atoms/badge.js +2 -0
  16. package/dist/atoms/badge.js.map +1 -0
  17. package/dist/atoms/badge.mjs +2 -0
  18. package/dist/atoms/badge.mjs.map +1 -0
  19. package/dist/atoms/box.d.mts +50 -0
  20. package/dist/atoms/box.d.ts +50 -0
  21. package/dist/atoms/box.js +2 -0
  22. package/dist/atoms/box.js.map +1 -0
  23. package/dist/atoms/box.mjs +2 -0
  24. package/dist/atoms/box.mjs.map +1 -0
  25. package/dist/atoms/breadcrumb.d.mts +35 -0
  26. package/dist/atoms/breadcrumb.d.ts +35 -0
  27. package/dist/atoms/breadcrumb.js +2 -0
  28. package/dist/atoms/breadcrumb.js.map +1 -0
  29. package/dist/atoms/breadcrumb.mjs +2 -0
  30. package/dist/atoms/breadcrumb.mjs.map +1 -0
  31. package/dist/{tooltip-B4jzaurK.d.mts → atoms/button.d.mts} +1 -23
  32. package/dist/{tooltip-B4jzaurK.d.ts → atoms/button.d.ts} +1 -23
  33. package/dist/atoms/button.js +2 -0
  34. package/dist/atoms/button.js.map +1 -0
  35. package/dist/atoms/button.mjs +2 -0
  36. package/dist/atoms/button.mjs.map +1 -0
  37. package/dist/atoms/checkbox.d.mts +21 -0
  38. package/dist/atoms/checkbox.d.ts +21 -0
  39. package/dist/atoms/checkbox.js +2 -0
  40. package/dist/atoms/checkbox.js.map +1 -0
  41. package/dist/atoms/checkbox.mjs +2 -0
  42. package/dist/atoms/checkbox.mjs.map +1 -0
  43. package/dist/atoms/collapsible.d.mts +26 -0
  44. package/dist/atoms/collapsible.d.ts +26 -0
  45. package/dist/atoms/collapsible.js +2 -0
  46. package/dist/atoms/collapsible.js.map +1 -0
  47. package/dist/atoms/collapsible.mjs +2 -0
  48. package/dist/atoms/collapsible.mjs.map +1 -0
  49. package/dist/atoms/command.d.mts +122 -0
  50. package/dist/atoms/command.d.ts +122 -0
  51. package/dist/atoms/command.js +2 -0
  52. package/dist/atoms/command.js.map +1 -0
  53. package/dist/atoms/command.mjs +2 -0
  54. package/dist/atoms/command.mjs.map +1 -0
  55. package/dist/atoms/container.js +2 -0
  56. package/dist/atoms/container.js.map +1 -0
  57. package/dist/atoms/container.mjs +2 -0
  58. package/dist/atoms/container.mjs.map +1 -0
  59. package/dist/atoms/dialog.d.mts +35 -0
  60. package/dist/atoms/dialog.d.ts +35 -0
  61. package/dist/atoms/dialog.js +2 -0
  62. package/dist/atoms/dialog.js.map +1 -0
  63. package/dist/atoms/dialog.mjs +2 -0
  64. package/dist/atoms/dialog.mjs.map +1 -0
  65. package/dist/atoms/input.d.mts +12 -0
  66. package/dist/atoms/input.d.ts +12 -0
  67. package/dist/atoms/input.js +2 -0
  68. package/dist/atoms/input.js.map +1 -0
  69. package/dist/atoms/input.mjs +2 -0
  70. package/dist/atoms/input.mjs.map +1 -0
  71. package/dist/atoms/label.d.mts +18 -0
  72. package/dist/atoms/label.d.ts +18 -0
  73. package/dist/atoms/label.js +2 -0
  74. package/dist/atoms/label.js.map +1 -0
  75. package/dist/atoms/label.mjs +2 -0
  76. package/dist/atoms/label.mjs.map +1 -0
  77. package/dist/atoms/page-loader.d.mts +29 -0
  78. package/dist/atoms/page-loader.d.ts +29 -0
  79. package/dist/atoms/page-loader.js +2 -0
  80. package/dist/atoms/page-loader.js.map +1 -0
  81. package/dist/atoms/page-loader.mjs +2 -0
  82. package/dist/atoms/page-loader.mjs.map +1 -0
  83. package/dist/atoms/pagination.d.mts +105 -0
  84. package/dist/atoms/pagination.d.ts +105 -0
  85. package/dist/atoms/pagination.js +2 -0
  86. package/dist/atoms/pagination.js.map +1 -0
  87. package/dist/atoms/pagination.mjs +2 -0
  88. package/dist/atoms/pagination.mjs.map +1 -0
  89. package/dist/atoms/popover.d.mts +30 -0
  90. package/dist/atoms/popover.d.ts +30 -0
  91. package/dist/atoms/popover.js +2 -0
  92. package/dist/atoms/popover.js.map +1 -0
  93. package/dist/atoms/popover.mjs +2 -0
  94. package/dist/atoms/popover.mjs.map +1 -0
  95. package/dist/{checkbox-DxgDKaHx.d.mts → atoms/radio-group.d.mts} +4 -50
  96. package/dist/{checkbox-DxgDKaHx.d.ts → atoms/radio-group.d.ts} +4 -50
  97. package/dist/atoms/radio-group.js +2 -0
  98. package/dist/atoms/radio-group.js.map +1 -0
  99. package/dist/atoms/radio-group.mjs +2 -0
  100. package/dist/atoms/radio-group.mjs.map +1 -0
  101. package/dist/atoms/resizable.d.mts +53 -0
  102. package/dist/atoms/resizable.d.ts +53 -0
  103. package/dist/atoms/resizable.js +2 -0
  104. package/dist/atoms/resizable.js.map +1 -0
  105. package/dist/atoms/resizable.mjs +2 -0
  106. package/dist/atoms/resizable.mjs.map +1 -0
  107. package/dist/atoms/separator.d.mts +13 -0
  108. package/dist/atoms/separator.d.ts +13 -0
  109. package/dist/atoms/separator.js +2 -0
  110. package/dist/atoms/separator.js.map +1 -0
  111. package/dist/atoms/separator.mjs +2 -0
  112. package/dist/atoms/separator.mjs.map +1 -0
  113. package/dist/atoms/sheet.d.mts +42 -0
  114. package/dist/atoms/sheet.d.ts +42 -0
  115. package/dist/atoms/sheet.js +2 -0
  116. package/dist/atoms/sheet.js.map +1 -0
  117. package/dist/atoms/sheet.mjs +2 -0
  118. package/dist/atoms/sheet.mjs.map +1 -0
  119. package/dist/atoms/skeleton.js +2 -0
  120. package/dist/atoms/skeleton.js.map +1 -0
  121. package/dist/atoms/skeleton.mjs +2 -0
  122. package/dist/atoms/skeleton.mjs.map +1 -0
  123. package/dist/atoms/stack.d.mts +121 -0
  124. package/dist/atoms/stack.d.ts +121 -0
  125. package/dist/atoms/stack.js +2 -0
  126. package/dist/atoms/stack.js.map +1 -0
  127. package/dist/atoms/stack.mjs +2 -0
  128. package/dist/atoms/stack.mjs.map +1 -0
  129. package/dist/atoms/switch.d.mts +21 -0
  130. package/dist/atoms/switch.d.ts +21 -0
  131. package/dist/atoms/switch.js +2 -0
  132. package/dist/atoms/switch.js.map +1 -0
  133. package/dist/atoms/switch.mjs +2 -0
  134. package/dist/atoms/switch.mjs.map +1 -0
  135. package/dist/atoms/table.d.mts +53 -0
  136. package/dist/atoms/table.d.ts +53 -0
  137. package/dist/atoms/table.js +2 -0
  138. package/dist/atoms/table.js.map +1 -0
  139. package/dist/atoms/table.mjs +2 -0
  140. package/dist/atoms/table.mjs.map +1 -0
  141. package/dist/atoms/text-field.d.mts +65 -0
  142. package/dist/atoms/text-field.d.ts +65 -0
  143. package/dist/atoms/text-field.js +2 -0
  144. package/dist/atoms/text-field.js.map +1 -0
  145. package/dist/atoms/text-field.mjs +2 -0
  146. package/dist/atoms/text-field.mjs.map +1 -0
  147. package/dist/atoms/textarea.js +2 -0
  148. package/dist/atoms/textarea.js.map +1 -0
  149. package/dist/atoms/textarea.mjs +2 -0
  150. package/dist/atoms/textarea.mjs.map +1 -0
  151. package/dist/{toast-2xT7L1tJ.d.mts → atoms/toast.d.mts} +1 -1
  152. package/dist/{toast-2xT7L1tJ.d.ts → atoms/toast.d.ts} +1 -1
  153. package/dist/atoms/toast.js +2 -0
  154. package/dist/atoms/toast.js.map +1 -0
  155. package/dist/atoms/toast.mjs +2 -0
  156. package/dist/atoms/toast.mjs.map +1 -0
  157. package/dist/atoms/toaster.d.mts +26 -0
  158. package/dist/atoms/toaster.d.ts +26 -0
  159. package/dist/atoms/toaster.js +2 -0
  160. package/dist/atoms/toaster.js.map +1 -0
  161. package/dist/atoms/toaster.mjs +2 -0
  162. package/dist/atoms/toaster.mjs.map +1 -0
  163. package/dist/atoms/tooltip.d.mts +25 -0
  164. package/dist/atoms/tooltip.d.ts +25 -0
  165. package/dist/atoms/tooltip.js +2 -0
  166. package/dist/atoms/tooltip.js.map +1 -0
  167. package/dist/atoms/tooltip.mjs +2 -0
  168. package/dist/atoms/tooltip.mjs.map +1 -0
  169. package/dist/atoms/typography.d.mts +24 -0
  170. package/dist/atoms/typography.d.ts +24 -0
  171. package/dist/atoms/typography.js +2 -0
  172. package/dist/atoms/typography.js.map +1 -0
  173. package/dist/atoms/typography.mjs +2 -0
  174. package/dist/atoms/typography.mjs.map +1 -0
  175. package/dist/atoms.d.mts +213 -27
  176. package/dist/atoms.d.ts +213 -27
  177. package/dist/atoms.js +2 -0
  178. package/dist/atoms.js.map +1 -0
  179. package/dist/atoms.mjs +2 -0
  180. package/dist/atoms.mjs.map +1 -0
  181. package/dist/hooks.d.mts +10 -4
  182. package/dist/hooks.d.ts +10 -4
  183. package/dist/hooks.js +2 -0
  184. package/dist/hooks.js.map +1 -0
  185. package/dist/hooks.mjs +2 -0
  186. package/dist/hooks.mjs.map +1 -0
  187. package/dist/index.d.mts +2619 -30
  188. package/dist/index.d.ts +2619 -30
  189. package/dist/index.js +2 -0
  190. package/dist/index.js.map +1 -0
  191. package/dist/index.mjs +2 -0
  192. package/dist/index.mjs.map +1 -0
  193. package/dist/molecules/card.d.mts +72 -0
  194. package/dist/molecules/card.d.ts +72 -0
  195. package/dist/molecules/card.js +2 -0
  196. package/dist/molecules/card.js.map +1 -0
  197. package/dist/molecules/card.mjs +2 -0
  198. package/dist/molecules/card.mjs.map +1 -0
  199. package/dist/molecules/navigation-menu.d.mts +103 -0
  200. package/dist/molecules/navigation-menu.d.ts +103 -0
  201. package/dist/molecules/navigation-menu.js +2 -0
  202. package/dist/molecules/navigation-menu.js.map +1 -0
  203. package/dist/molecules/navigation-menu.mjs +2 -0
  204. package/dist/molecules/navigation-menu.mjs.map +1 -0
  205. package/dist/molecules/tabs.d.mts +32 -0
  206. package/dist/molecules/tabs.d.ts +32 -0
  207. package/dist/molecules/tabs.js +2 -0
  208. package/dist/molecules/tabs.js.map +1 -0
  209. package/dist/molecules/tabs.mjs +2 -0
  210. package/dist/molecules/tabs.mjs.map +1 -0
  211. package/dist/molecules.d.mts +1 -1
  212. package/dist/molecules.d.ts +1 -1
  213. package/dist/molecules.js +2 -0
  214. package/dist/molecules.js.map +1 -0
  215. package/dist/molecules.mjs +2 -0
  216. package/dist/molecules.mjs.map +1 -0
  217. package/dist/organisms/drawer.d.mts +63 -0
  218. package/dist/organisms/drawer.d.ts +63 -0
  219. package/dist/organisms/drawer.js +2 -0
  220. package/dist/organisms/drawer.js.map +1 -0
  221. package/dist/organisms/drawer.mjs +2 -0
  222. package/dist/organisms/drawer.mjs.map +1 -0
  223. package/dist/organisms/dropdown-menu.d.mts +335 -0
  224. package/dist/organisms/dropdown-menu.d.ts +335 -0
  225. package/dist/organisms/dropdown-menu.js +2 -0
  226. package/dist/organisms/dropdown-menu.js.map +1 -0
  227. package/dist/organisms/dropdown-menu.mjs +2 -0
  228. package/dist/organisms/dropdown-menu.mjs.map +1 -0
  229. package/dist/organisms/sidebar.d.mts +328 -0
  230. package/dist/organisms/sidebar.d.ts +328 -0
  231. package/dist/organisms/sidebar.js +2 -0
  232. package/dist/organisms/sidebar.js.map +1 -0
  233. package/dist/organisms/sidebar.mjs +2 -0
  234. package/dist/organisms/sidebar.mjs.map +1 -0
  235. package/dist/organisms.d.mts +56 -12
  236. package/dist/organisms.d.ts +56 -12
  237. package/dist/organisms.js +2 -0
  238. package/dist/organisms.js.map +1 -0
  239. package/dist/organisms.mjs +2 -0
  240. package/dist/organisms.mjs.map +1 -0
  241. package/dist/rhf/form.d.mts +96 -0
  242. package/dist/rhf/form.d.ts +96 -0
  243. package/dist/rhf/form.js +2 -0
  244. package/dist/rhf/form.js.map +1 -0
  245. package/dist/rhf/form.mjs +2 -0
  246. package/dist/rhf/form.mjs.map +1 -0
  247. package/dist/rhf/rhf-checkbox.d.mts +57 -0
  248. package/dist/rhf/rhf-checkbox.d.ts +57 -0
  249. package/dist/rhf/rhf-checkbox.js +2 -0
  250. package/dist/rhf/rhf-checkbox.js.map +1 -0
  251. package/dist/rhf/rhf-checkbox.mjs +2 -0
  252. package/dist/rhf/rhf-checkbox.mjs.map +1 -0
  253. package/dist/rhf/rhf-multi-select.d.mts +84 -0
  254. package/dist/rhf/rhf-multi-select.d.ts +84 -0
  255. package/dist/rhf/rhf-multi-select.js +2 -0
  256. package/dist/rhf/rhf-multi-select.js.map +1 -0
  257. package/dist/rhf/rhf-multi-select.mjs +2 -0
  258. package/dist/rhf/rhf-multi-select.mjs.map +1 -0
  259. package/dist/rhf/rhf-radio-button-group.d.mts +73 -0
  260. package/dist/rhf/rhf-radio-button-group.d.ts +73 -0
  261. package/dist/rhf/rhf-radio-button-group.js +2 -0
  262. package/dist/rhf/rhf-radio-button-group.js.map +1 -0
  263. package/dist/rhf/rhf-radio-button-group.mjs +2 -0
  264. package/dist/rhf/rhf-radio-button-group.mjs.map +1 -0
  265. package/dist/rhf/rhf-radio-group.d.mts +103 -0
  266. package/dist/rhf/rhf-radio-group.d.ts +103 -0
  267. package/dist/rhf/rhf-radio-group.js +2 -0
  268. package/dist/rhf/rhf-radio-group.js.map +1 -0
  269. package/dist/rhf/rhf-radio-group.mjs +2 -0
  270. package/dist/rhf/rhf-radio-group.mjs.map +1 -0
  271. package/dist/rhf/rhf-select.d.mts +80 -0
  272. package/dist/rhf/rhf-select.d.ts +80 -0
  273. package/dist/rhf/rhf-select.js +2 -0
  274. package/dist/rhf/rhf-select.js.map +1 -0
  275. package/dist/rhf/rhf-select.mjs +2 -0
  276. package/dist/rhf/rhf-select.mjs.map +1 -0
  277. package/dist/rhf/rhf-switch.d.mts +57 -0
  278. package/dist/rhf/rhf-switch.d.ts +57 -0
  279. package/dist/rhf/rhf-switch.js +2 -0
  280. package/dist/rhf/rhf-switch.js.map +1 -0
  281. package/dist/rhf/rhf-switch.mjs +2 -0
  282. package/dist/rhf/rhf-switch.mjs.map +1 -0
  283. package/dist/rhf/rhf-textarea.d.mts +66 -0
  284. package/dist/rhf/rhf-textarea.d.ts +66 -0
  285. package/dist/rhf/rhf-textarea.js +2 -0
  286. package/dist/rhf/rhf-textarea.js.map +1 -0
  287. package/dist/rhf/rhf-textarea.mjs +2 -0
  288. package/dist/rhf/rhf-textarea.mjs.map +1 -0
  289. package/dist/rhf.d.mts +213 -7
  290. package/dist/rhf.d.ts +213 -7
  291. package/dist/rhf.js +2 -0
  292. package/dist/rhf.js.map +1 -0
  293. package/dist/rhf.mjs +2 -0
  294. package/dist/rhf.mjs.map +1 -0
  295. package/dist/types.js +2 -0
  296. package/dist/{types.cjs.js.map → types.js.map} +1 -1
  297. package/dist/types.mjs +2 -0
  298. package/dist/{types.esm.js.map → types.mjs.map} +1 -1
  299. package/dist/{chunk-SL2ZUI4G.cjs.js → utils.js} +2 -2
  300. package/dist/utils.js.map +1 -0
  301. package/dist/utils.mjs +2 -0
  302. package/dist/utils.mjs.map +1 -0
  303. package/package.json +241 -15
  304. package/dist/atoms.cjs.js +0 -2
  305. package/dist/atoms.cjs.js.map +0 -1
  306. package/dist/atoms.esm.js +0 -2
  307. package/dist/atoms.esm.js.map +0 -1
  308. package/dist/chunk-23T2PH5G.esm.js +0 -2
  309. package/dist/chunk-23T2PH5G.esm.js.map +0 -1
  310. package/dist/chunk-2QG3QTSW.cjs.js +0 -2
  311. package/dist/chunk-2QG3QTSW.cjs.js.map +0 -1
  312. package/dist/chunk-C26U3FL4.esm.js +0 -2
  313. package/dist/chunk-C26U3FL4.esm.js.map +0 -1
  314. package/dist/chunk-DTM5LZHM.cjs.js +0 -2
  315. package/dist/chunk-DTM5LZHM.cjs.js.map +0 -1
  316. package/dist/chunk-HW32JE75.cjs.js +0 -2
  317. package/dist/chunk-HW32JE75.cjs.js.map +0 -1
  318. package/dist/chunk-J5A6PILI.cjs.js +0 -2
  319. package/dist/chunk-J5A6PILI.cjs.js.map +0 -1
  320. package/dist/chunk-JIRS6MWF.cjs.js +0 -2
  321. package/dist/chunk-JIRS6MWF.cjs.js.map +0 -1
  322. package/dist/chunk-JKTYFZ5M.esm.js +0 -2
  323. package/dist/chunk-JKTYFZ5M.esm.js.map +0 -1
  324. package/dist/chunk-JUZG25DH.esm.js +0 -2
  325. package/dist/chunk-JUZG25DH.esm.js.map +0 -1
  326. package/dist/chunk-KOYJODOP.cjs.js +0 -2
  327. package/dist/chunk-KOYJODOP.cjs.js.map +0 -1
  328. package/dist/chunk-M4S5YZ56.esm.js +0 -2
  329. package/dist/chunk-M4S5YZ56.esm.js.map +0 -1
  330. package/dist/chunk-MOYOCJW6.esm.js +0 -2
  331. package/dist/chunk-MOYOCJW6.esm.js.map +0 -1
  332. package/dist/chunk-MVWMLXLL.cjs.js +0 -2
  333. package/dist/chunk-MVWMLXLL.cjs.js.map +0 -1
  334. package/dist/chunk-Q76IMLQ3.esm.js +0 -2
  335. package/dist/chunk-Q76IMLQ3.esm.js.map +0 -1
  336. package/dist/chunk-SL2ZUI4G.cjs.js.map +0 -1
  337. package/dist/chunk-STRDPP3B.esm.js +0 -2
  338. package/dist/chunk-STRDPP3B.esm.js.map +0 -1
  339. package/dist/chunk-U4NMIMU7.esm.js +0 -2
  340. package/dist/chunk-U4NMIMU7.esm.js.map +0 -1
  341. package/dist/chunk-UK47BFA3.cjs.js +0 -2
  342. package/dist/chunk-UK47BFA3.cjs.js.map +0 -1
  343. package/dist/chunk-WJNYKJP6.cjs.js +0 -2
  344. package/dist/chunk-WJNYKJP6.cjs.js.map +0 -1
  345. package/dist/chunk-YEZB7AOJ.esm.js +0 -2
  346. package/dist/chunk-YEZB7AOJ.esm.js.map +0 -1
  347. package/dist/hooks.cjs.js +0 -2
  348. package/dist/hooks.cjs.js.map +0 -1
  349. package/dist/hooks.esm.js +0 -2
  350. package/dist/hooks.esm.js.map +0 -1
  351. package/dist/index.cjs.js +0 -2
  352. package/dist/index.cjs.js.map +0 -1
  353. package/dist/index.esm.js +0 -2
  354. package/dist/index.esm.js.map +0 -1
  355. package/dist/molecules.cjs.js +0 -2
  356. package/dist/molecules.cjs.js.map +0 -1
  357. package/dist/molecules.esm.js +0 -2
  358. package/dist/molecules.esm.js.map +0 -1
  359. package/dist/organisms.cjs.js +0 -2
  360. package/dist/organisms.cjs.js.map +0 -1
  361. package/dist/organisms.esm.js +0 -2
  362. package/dist/organisms.esm.js.map +0 -1
  363. package/dist/rhf.cjs.js +0 -2
  364. package/dist/rhf.cjs.js.map +0 -1
  365. package/dist/rhf.esm.js +0 -2
  366. package/dist/rhf.esm.js.map +0 -1
  367. package/dist/types.cjs.js +0 -2
  368. package/dist/types.d.mts +0 -2
  369. package/dist/types.d.ts +0 -2
  370. package/dist/types.esm.js +0 -2
  371. package/dist/utils.cjs.js +0 -2
  372. package/dist/utils.cjs.js.map +0 -1
  373. package/dist/utils.d.mts +0 -5
  374. package/dist/utils.d.ts +0 -5
  375. package/dist/utils.esm.js +0 -2
  376. package/dist/utils.esm.js.map +0 -1
@@ -0,0 +1,335 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React$1 from 'react';
3
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import * as class_variance_authority_types from 'class-variance-authority/types';
6
+
7
+ /**
8
+ * DropdownMenu component for creating accessible dropdown menus.
9
+ * Built on top of Radix UI's DropdownMenu primitive.
10
+ *
11
+ * @url https://sergii-melnykov.github.io/ui/?path=/docs/organisms-dropdown-menu--docs
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <DropdownMenu>
16
+ * <DropdownMenuTrigger>Open Menu</DropdownMenuTrigger>
17
+ * <DropdownMenuContent>
18
+ * <DropdownMenuItem>Item 1</DropdownMenuItem>
19
+ * <DropdownMenuItem>Item 2</DropdownMenuItem>
20
+ * <DropdownMenuItem>Item 3</DropdownMenuItem>
21
+ * </DropdownMenuContent>
22
+ * </DropdownMenu>
23
+ * ```
24
+ */
25
+ declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
26
+ declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
27
+ declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
28
+ declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
29
+ declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
30
+ declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
31
+ declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
32
+ inset?: boolean;
33
+ } & React$1.RefAttributes<HTMLDivElement>>;
34
+ declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
35
+ declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
36
+ declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
37
+ inset?: boolean;
38
+ } & React$1.RefAttributes<HTMLDivElement>>;
39
+ declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
40
+ declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
41
+ declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
42
+ inset?: boolean;
43
+ } & React$1.RefAttributes<HTMLDivElement>>;
44
+ declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
45
+ declare const DropdownMenuShortcut: {
46
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
47
+ displayName: string;
48
+ };
49
+
50
+ declare const dropdownMenuTriggerStyle: (props?: ({
51
+ variant?: "link" | "default" | "outline" | "ghost" | null | undefined;
52
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
53
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
54
+
55
+ type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
56
+ interface DropdownMenuProps {
57
+ /**
58
+ * The content of the dropdown menu
59
+ */
60
+ children: React.ReactNode;
61
+ /**
62
+ * The open state of the dropdown menu
63
+ */
64
+ open?: boolean;
65
+ /**
66
+ * The default open state of the dropdown menu
67
+ */
68
+ defaultOpen?: boolean;
69
+ /**
70
+ * The controlled open state of the dropdown menu
71
+ */
72
+ onOpenChange?: (open: boolean) => void;
73
+ /**
74
+ * The modal state of the dropdown menu
75
+ */
76
+ modal?: boolean;
77
+ }
78
+ interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, DropdownMenuTriggerVariants {
79
+ /**
80
+ * The content of the trigger
81
+ */
82
+ children: React.ReactNode;
83
+ /**
84
+ * The variant of the trigger
85
+ */
86
+ variant?: DropdownMenuTriggerVariants["variant"];
87
+ /**
88
+ * The size of the trigger
89
+ */
90
+ size?: DropdownMenuTriggerVariants["size"];
91
+ }
92
+ interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
93
+ /**
94
+ * The content of the dropdown menu
95
+ */
96
+ children: React.ReactNode;
97
+ /**
98
+ * The side offset of the dropdown menu
99
+ */
100
+ sideOffset?: number;
101
+ /**
102
+ * The align offset of the dropdown menu
103
+ */
104
+ alignOffset?: number;
105
+ /**
106
+ * The side of the dropdown menu
107
+ */
108
+ side?: "top" | "right" | "bottom" | "left";
109
+ /**
110
+ * The alignment of the dropdown menu
111
+ */
112
+ align?: "start" | "center" | "end";
113
+ /**
114
+ * The collision padding of the dropdown menu
115
+ */
116
+ collisionPadding?: number;
117
+ /**
118
+ * The collision boundary of the dropdown menu
119
+ */
120
+ collisionBoundary?: Element | null | Array<Element | null>;
121
+ /**
122
+ * The arrow padding of the dropdown menu
123
+ */
124
+ arrowPadding?: number;
125
+ /**
126
+ * The sticky state of the dropdown menu
127
+ */
128
+ sticky?: "partial" | "always";
129
+ /**
130
+ * The hide when detached state of the dropdown menu
131
+ */
132
+ hideWhenDetached?: boolean;
133
+ /**
134
+ * The update position strategy of the dropdown menu
135
+ */
136
+ updatePositionStrategy?: "optimized" | "always";
137
+ /**
138
+ * The force mount state of the dropdown menu
139
+ */
140
+ forceMount?: boolean;
141
+ /**
142
+ * The container of the dropdown menu
143
+ */
144
+ container?: HTMLElement;
145
+ }
146
+ interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
147
+ /**
148
+ * The content of the dropdown menu item
149
+ */
150
+ children: React.ReactNode;
151
+ /**
152
+ * The inset state of the dropdown menu item
153
+ */
154
+ inset?: boolean;
155
+ /**
156
+ * The disabled state of the dropdown menu item
157
+ */
158
+ disabled?: boolean;
159
+ /**
160
+ * The selected state of the dropdown menu item
161
+ */
162
+ selected?: boolean;
163
+ }
164
+ interface DropdownMenuCheckboxItemProps extends React.HTMLAttributes<HTMLDivElement> {
165
+ /**
166
+ * The content of the dropdown menu checkbox item
167
+ */
168
+ children: React.ReactNode;
169
+ /**
170
+ * The checked state of the dropdown menu checkbox item
171
+ */
172
+ checked?: boolean;
173
+ /**
174
+ * The disabled state of the dropdown menu checkbox item
175
+ */
176
+ disabled?: boolean;
177
+ /**
178
+ * The on checked change handler of the dropdown menu checkbox item
179
+ */
180
+ onCheckedChange?: (checked: boolean) => void;
181
+ }
182
+ interface DropdownMenuRadioItemProps extends React.HTMLAttributes<HTMLDivElement> {
183
+ /**
184
+ * The content of the dropdown menu radio item
185
+ */
186
+ children: React.ReactNode;
187
+ /**
188
+ * The value of the dropdown menu radio item
189
+ */
190
+ value: string;
191
+ /**
192
+ * The disabled state of the dropdown menu radio item
193
+ */
194
+ disabled?: boolean;
195
+ }
196
+ interface DropdownMenuLabelProps extends React.HTMLAttributes<HTMLDivElement> {
197
+ /**
198
+ * The content of the dropdown menu label
199
+ */
200
+ children: React.ReactNode;
201
+ /**
202
+ * The inset state of the dropdown menu label
203
+ */
204
+ inset?: boolean;
205
+ }
206
+ interface DropdownMenuSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
207
+ }
208
+ interface DropdownMenuShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
209
+ /**
210
+ * The content of the dropdown menu shortcut
211
+ */
212
+ children: React.ReactNode;
213
+ }
214
+ interface DropdownMenuGroupProps extends React.HTMLAttributes<HTMLDivElement> {
215
+ /**
216
+ * The content of the dropdown menu group
217
+ */
218
+ children: React.ReactNode;
219
+ }
220
+ interface DropdownMenuPortalProps {
221
+ /**
222
+ * The content of the dropdown menu portal
223
+ */
224
+ children: React.ReactNode;
225
+ /**
226
+ * The container of the dropdown menu portal
227
+ */
228
+ container?: HTMLElement;
229
+ }
230
+ interface DropdownMenuSubProps {
231
+ /**
232
+ * The content of the dropdown menu sub
233
+ */
234
+ children: React.ReactNode;
235
+ /**
236
+ * The open state of the dropdown menu sub
237
+ */
238
+ open?: boolean;
239
+ /**
240
+ * The default open state of the dropdown menu sub
241
+ */
242
+ defaultOpen?: boolean;
243
+ /**
244
+ * The controlled open state of the dropdown menu sub
245
+ */
246
+ onOpenChange?: (open: boolean) => void;
247
+ }
248
+ interface DropdownMenuSubContentProps extends React.HTMLAttributes<HTMLDivElement> {
249
+ /**
250
+ * The content of the dropdown menu sub content
251
+ */
252
+ children: React.ReactNode;
253
+ /**
254
+ * The side offset of the dropdown menu sub content
255
+ */
256
+ sideOffset?: number;
257
+ /**
258
+ * The align offset of the dropdown menu sub content
259
+ */
260
+ alignOffset?: number;
261
+ /**
262
+ * The side of the dropdown menu sub content
263
+ */
264
+ side?: "top" | "right" | "bottom" | "left";
265
+ /**
266
+ * The alignment of the dropdown menu sub content
267
+ */
268
+ align?: "start" | "center" | "end";
269
+ /**
270
+ * The collision padding of the dropdown menu sub content
271
+ */
272
+ collisionPadding?: number;
273
+ /**
274
+ * The collision boundary of the dropdown menu sub content
275
+ */
276
+ collisionBoundary?: Element | null | Array<Element | null>;
277
+ /**
278
+ * The arrow padding of the dropdown menu sub content
279
+ */
280
+ arrowPadding?: number;
281
+ /**
282
+ * The sticky state of the dropdown menu sub content
283
+ */
284
+ sticky?: "partial" | "always";
285
+ /**
286
+ * The hide when detached state of the dropdown menu sub content
287
+ */
288
+ hideWhenDetached?: boolean;
289
+ /**
290
+ * The update position strategy of the dropdown menu sub content
291
+ */
292
+ updatePositionStrategy?: "optimized" | "always";
293
+ /**
294
+ * The force mount state of the dropdown menu sub content
295
+ */
296
+ forceMount?: boolean;
297
+ /**
298
+ * The container of the dropdown menu sub content
299
+ */
300
+ container?: HTMLElement;
301
+ }
302
+ interface DropdownMenuSubTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
303
+ /**
304
+ * The content of the dropdown menu sub trigger
305
+ */
306
+ children: React.ReactNode;
307
+ /**
308
+ * The inset state of the dropdown menu sub trigger
309
+ */
310
+ inset?: boolean;
311
+ /**
312
+ * The disabled state of the dropdown menu sub trigger
313
+ */
314
+ disabled?: boolean;
315
+ }
316
+ interface DropdownMenuRadioGroupProps {
317
+ /**
318
+ * The content of the dropdown menu radio group
319
+ */
320
+ children: React.ReactNode;
321
+ /**
322
+ * The value of the dropdown menu radio group
323
+ */
324
+ value?: string;
325
+ /**
326
+ * The default value of the dropdown menu radio group
327
+ */
328
+ defaultValue?: string;
329
+ /**
330
+ * The controlled value of the dropdown menu radio group
331
+ */
332
+ onValueChange?: (value: string) => void;
333
+ }
334
+
335
+ export { DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps };
@@ -0,0 +1,335 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import * as React$1 from 'react';
3
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
4
+ import { VariantProps } from 'class-variance-authority';
5
+ import * as class_variance_authority_types from 'class-variance-authority/types';
6
+
7
+ /**
8
+ * DropdownMenu component for creating accessible dropdown menus.
9
+ * Built on top of Radix UI's DropdownMenu primitive.
10
+ *
11
+ * @url https://sergii-melnykov.github.io/ui/?path=/docs/organisms-dropdown-menu--docs
12
+ *
13
+ * @example
14
+ * ```tsx
15
+ * <DropdownMenu>
16
+ * <DropdownMenuTrigger>Open Menu</DropdownMenuTrigger>
17
+ * <DropdownMenuContent>
18
+ * <DropdownMenuItem>Item 1</DropdownMenuItem>
19
+ * <DropdownMenuItem>Item 2</DropdownMenuItem>
20
+ * <DropdownMenuItem>Item 3</DropdownMenuItem>
21
+ * </DropdownMenuContent>
22
+ * </DropdownMenu>
23
+ * ```
24
+ */
25
+ declare const DropdownMenu: React$1.FC<DropdownMenuPrimitive.DropdownMenuProps>;
26
+ declare const DropdownMenuTrigger: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
27
+ declare const DropdownMenuGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React$1.RefAttributes<HTMLDivElement>>;
28
+ declare const DropdownMenuPortal: React$1.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
29
+ declare const DropdownMenuSub: React$1.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
30
+ declare const DropdownMenuRadioGroup: React$1.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
31
+ declare const DropdownMenuSubTrigger: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
32
+ inset?: boolean;
33
+ } & React$1.RefAttributes<HTMLDivElement>>;
34
+ declare const DropdownMenuSubContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
35
+ declare const DropdownMenuContent: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
36
+ declare const DropdownMenuItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
37
+ inset?: boolean;
38
+ } & React$1.RefAttributes<HTMLDivElement>>;
39
+ declare const DropdownMenuCheckboxItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
40
+ declare const DropdownMenuRadioItem: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
41
+ declare const DropdownMenuLabel: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & {
42
+ inset?: boolean;
43
+ } & React$1.RefAttributes<HTMLDivElement>>;
44
+ declare const DropdownMenuSeparator: React$1.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React$1.RefAttributes<HTMLDivElement>, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
45
+ declare const DropdownMenuShortcut: {
46
+ ({ className, ...props }: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime.JSX.Element;
47
+ displayName: string;
48
+ };
49
+
50
+ declare const dropdownMenuTriggerStyle: (props?: ({
51
+ variant?: "link" | "default" | "outline" | "ghost" | null | undefined;
52
+ size?: "default" | "sm" | "lg" | "icon" | null | undefined;
53
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
54
+
55
+ type DropdownMenuTriggerVariants = VariantProps<typeof dropdownMenuTriggerStyle>;
56
+ interface DropdownMenuProps {
57
+ /**
58
+ * The content of the dropdown menu
59
+ */
60
+ children: React.ReactNode;
61
+ /**
62
+ * The open state of the dropdown menu
63
+ */
64
+ open?: boolean;
65
+ /**
66
+ * The default open state of the dropdown menu
67
+ */
68
+ defaultOpen?: boolean;
69
+ /**
70
+ * The controlled open state of the dropdown menu
71
+ */
72
+ onOpenChange?: (open: boolean) => void;
73
+ /**
74
+ * The modal state of the dropdown menu
75
+ */
76
+ modal?: boolean;
77
+ }
78
+ interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, DropdownMenuTriggerVariants {
79
+ /**
80
+ * The content of the trigger
81
+ */
82
+ children: React.ReactNode;
83
+ /**
84
+ * The variant of the trigger
85
+ */
86
+ variant?: DropdownMenuTriggerVariants["variant"];
87
+ /**
88
+ * The size of the trigger
89
+ */
90
+ size?: DropdownMenuTriggerVariants["size"];
91
+ }
92
+ interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
93
+ /**
94
+ * The content of the dropdown menu
95
+ */
96
+ children: React.ReactNode;
97
+ /**
98
+ * The side offset of the dropdown menu
99
+ */
100
+ sideOffset?: number;
101
+ /**
102
+ * The align offset of the dropdown menu
103
+ */
104
+ alignOffset?: number;
105
+ /**
106
+ * The side of the dropdown menu
107
+ */
108
+ side?: "top" | "right" | "bottom" | "left";
109
+ /**
110
+ * The alignment of the dropdown menu
111
+ */
112
+ align?: "start" | "center" | "end";
113
+ /**
114
+ * The collision padding of the dropdown menu
115
+ */
116
+ collisionPadding?: number;
117
+ /**
118
+ * The collision boundary of the dropdown menu
119
+ */
120
+ collisionBoundary?: Element | null | Array<Element | null>;
121
+ /**
122
+ * The arrow padding of the dropdown menu
123
+ */
124
+ arrowPadding?: number;
125
+ /**
126
+ * The sticky state of the dropdown menu
127
+ */
128
+ sticky?: "partial" | "always";
129
+ /**
130
+ * The hide when detached state of the dropdown menu
131
+ */
132
+ hideWhenDetached?: boolean;
133
+ /**
134
+ * The update position strategy of the dropdown menu
135
+ */
136
+ updatePositionStrategy?: "optimized" | "always";
137
+ /**
138
+ * The force mount state of the dropdown menu
139
+ */
140
+ forceMount?: boolean;
141
+ /**
142
+ * The container of the dropdown menu
143
+ */
144
+ container?: HTMLElement;
145
+ }
146
+ interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
147
+ /**
148
+ * The content of the dropdown menu item
149
+ */
150
+ children: React.ReactNode;
151
+ /**
152
+ * The inset state of the dropdown menu item
153
+ */
154
+ inset?: boolean;
155
+ /**
156
+ * The disabled state of the dropdown menu item
157
+ */
158
+ disabled?: boolean;
159
+ /**
160
+ * The selected state of the dropdown menu item
161
+ */
162
+ selected?: boolean;
163
+ }
164
+ interface DropdownMenuCheckboxItemProps extends React.HTMLAttributes<HTMLDivElement> {
165
+ /**
166
+ * The content of the dropdown menu checkbox item
167
+ */
168
+ children: React.ReactNode;
169
+ /**
170
+ * The checked state of the dropdown menu checkbox item
171
+ */
172
+ checked?: boolean;
173
+ /**
174
+ * The disabled state of the dropdown menu checkbox item
175
+ */
176
+ disabled?: boolean;
177
+ /**
178
+ * The on checked change handler of the dropdown menu checkbox item
179
+ */
180
+ onCheckedChange?: (checked: boolean) => void;
181
+ }
182
+ interface DropdownMenuRadioItemProps extends React.HTMLAttributes<HTMLDivElement> {
183
+ /**
184
+ * The content of the dropdown menu radio item
185
+ */
186
+ children: React.ReactNode;
187
+ /**
188
+ * The value of the dropdown menu radio item
189
+ */
190
+ value: string;
191
+ /**
192
+ * The disabled state of the dropdown menu radio item
193
+ */
194
+ disabled?: boolean;
195
+ }
196
+ interface DropdownMenuLabelProps extends React.HTMLAttributes<HTMLDivElement> {
197
+ /**
198
+ * The content of the dropdown menu label
199
+ */
200
+ children: React.ReactNode;
201
+ /**
202
+ * The inset state of the dropdown menu label
203
+ */
204
+ inset?: boolean;
205
+ }
206
+ interface DropdownMenuSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
207
+ }
208
+ interface DropdownMenuShortcutProps extends React.HTMLAttributes<HTMLSpanElement> {
209
+ /**
210
+ * The content of the dropdown menu shortcut
211
+ */
212
+ children: React.ReactNode;
213
+ }
214
+ interface DropdownMenuGroupProps extends React.HTMLAttributes<HTMLDivElement> {
215
+ /**
216
+ * The content of the dropdown menu group
217
+ */
218
+ children: React.ReactNode;
219
+ }
220
+ interface DropdownMenuPortalProps {
221
+ /**
222
+ * The content of the dropdown menu portal
223
+ */
224
+ children: React.ReactNode;
225
+ /**
226
+ * The container of the dropdown menu portal
227
+ */
228
+ container?: HTMLElement;
229
+ }
230
+ interface DropdownMenuSubProps {
231
+ /**
232
+ * The content of the dropdown menu sub
233
+ */
234
+ children: React.ReactNode;
235
+ /**
236
+ * The open state of the dropdown menu sub
237
+ */
238
+ open?: boolean;
239
+ /**
240
+ * The default open state of the dropdown menu sub
241
+ */
242
+ defaultOpen?: boolean;
243
+ /**
244
+ * The controlled open state of the dropdown menu sub
245
+ */
246
+ onOpenChange?: (open: boolean) => void;
247
+ }
248
+ interface DropdownMenuSubContentProps extends React.HTMLAttributes<HTMLDivElement> {
249
+ /**
250
+ * The content of the dropdown menu sub content
251
+ */
252
+ children: React.ReactNode;
253
+ /**
254
+ * The side offset of the dropdown menu sub content
255
+ */
256
+ sideOffset?: number;
257
+ /**
258
+ * The align offset of the dropdown menu sub content
259
+ */
260
+ alignOffset?: number;
261
+ /**
262
+ * The side of the dropdown menu sub content
263
+ */
264
+ side?: "top" | "right" | "bottom" | "left";
265
+ /**
266
+ * The alignment of the dropdown menu sub content
267
+ */
268
+ align?: "start" | "center" | "end";
269
+ /**
270
+ * The collision padding of the dropdown menu sub content
271
+ */
272
+ collisionPadding?: number;
273
+ /**
274
+ * The collision boundary of the dropdown menu sub content
275
+ */
276
+ collisionBoundary?: Element | null | Array<Element | null>;
277
+ /**
278
+ * The arrow padding of the dropdown menu sub content
279
+ */
280
+ arrowPadding?: number;
281
+ /**
282
+ * The sticky state of the dropdown menu sub content
283
+ */
284
+ sticky?: "partial" | "always";
285
+ /**
286
+ * The hide when detached state of the dropdown menu sub content
287
+ */
288
+ hideWhenDetached?: boolean;
289
+ /**
290
+ * The update position strategy of the dropdown menu sub content
291
+ */
292
+ updatePositionStrategy?: "optimized" | "always";
293
+ /**
294
+ * The force mount state of the dropdown menu sub content
295
+ */
296
+ forceMount?: boolean;
297
+ /**
298
+ * The container of the dropdown menu sub content
299
+ */
300
+ container?: HTMLElement;
301
+ }
302
+ interface DropdownMenuSubTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
303
+ /**
304
+ * The content of the dropdown menu sub trigger
305
+ */
306
+ children: React.ReactNode;
307
+ /**
308
+ * The inset state of the dropdown menu sub trigger
309
+ */
310
+ inset?: boolean;
311
+ /**
312
+ * The disabled state of the dropdown menu sub trigger
313
+ */
314
+ disabled?: boolean;
315
+ }
316
+ interface DropdownMenuRadioGroupProps {
317
+ /**
318
+ * The content of the dropdown menu radio group
319
+ */
320
+ children: React.ReactNode;
321
+ /**
322
+ * The value of the dropdown menu radio group
323
+ */
324
+ value?: string;
325
+ /**
326
+ * The default value of the dropdown menu radio group
327
+ */
328
+ defaultValue?: string;
329
+ /**
330
+ * The controlled value of the dropdown menu radio group
331
+ */
332
+ onValueChange?: (value: string) => void;
333
+ }
334
+
335
+ export { DropdownMenu, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuPortal, type DropdownMenuPortalProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuShortcut, type DropdownMenuShortcutProps, DropdownMenuSub, DropdownMenuSubContent, type DropdownMenuSubContentProps, type DropdownMenuSubProps, DropdownMenuSubTrigger, type DropdownMenuSubTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps };
@@ -0,0 +1,2 @@
1
+ 'use strict';var d=require('react'),e=require('@radix-ui/react-dropdown-menu'),lucideReact=require('lucide-react'),clsx=require('clsx'),tailwindMerge=require('tailwind-merge'),jsxRuntime=require('react/jsx-runtime');function _interopNamespace(e){if(e&&e.__esModule)return e;var n=Object.create(null);if(e){Object.keys(e).forEach(function(k){if(k!=='default'){var d=Object.getOwnPropertyDescriptor(e,k);Object.defineProperty(n,k,d.get?d:{enumerable:true,get:function(){return e[k]}});}})}n.default=e;return Object.freeze(n)}var d__namespace=/*#__PURE__*/_interopNamespace(d);var e__namespace=/*#__PURE__*/_interopNamespace(e);function a(...o){return tailwindMerge.twMerge(clsx.clsx(o))}var h=e__namespace.Root,x=e__namespace.Trigger,C=e__namespace.Group,I=e__namespace.Portal,N=e__namespace.Sub,S=e__namespace.RadioGroup,m=d__namespace.forwardRef(({className:o,inset:t,children:n,...i},p)=>jsxRuntime.jsxs(e__namespace.SubTrigger,{ref:p,className:a("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",o),...i,children:[n,jsxRuntime.jsx(lucideReact.ChevronRight,{className:"ml-auto h-4 w-4"})]}));m.displayName=e__namespace.SubTrigger.displayName;var u=d__namespace.forwardRef(({className:o,...t},n)=>jsxRuntime.jsx(e__namespace.SubContent,{ref:n,className:a("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o),...t}));u.displayName=e__namespace.SubContent.displayName;var c=d__namespace.forwardRef(({className:o,sideOffset:t=4,...n},i)=>jsxRuntime.jsx(e__namespace.Portal,{children:jsxRuntime.jsx(e__namespace.Content,{ref:i,sideOffset:t,className:a("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o),...n})}));c.displayName=e__namespace.Content.displayName;var l=d__namespace.forwardRef(({className:o,inset:t,...n},i)=>jsxRuntime.jsx(e__namespace.Item,{ref:i,className:a("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",o),...n}));l.displayName=e__namespace.Item.displayName;var w=d__namespace.forwardRef(({className:o,children:t,checked:n,...i},p)=>jsxRuntime.jsxs(e__namespace.CheckboxItem,{ref:p,className:a("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),checked:n,...i,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(e__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Check,{className:"h-4 w-4"})})}),t]}));w.displayName=e__namespace.CheckboxItem.displayName;var f=d__namespace.forwardRef(({className:o,children:t,...n},i)=>jsxRuntime.jsxs(e__namespace.RadioItem,{ref:i,className:a("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",o),...n,children:[jsxRuntime.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsxRuntime.jsx(e__namespace.ItemIndicator,{children:jsxRuntime.jsx(lucideReact.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));f.displayName=e__namespace.RadioItem.displayName;var M=d__namespace.forwardRef(({className:o,inset:t,...n},i)=>jsxRuntime.jsx(e__namespace.Label,{ref:i,className:a("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",o),...n}));M.displayName=e__namespace.Label.displayName;var D=d__namespace.forwardRef(({className:o,...t},n)=>jsxRuntime.jsx(e__namespace.Separator,{ref:n,className:a("-mx-1 my-1 h-px bg-muted",o),...t}));D.displayName=e__namespace.Separator.displayName;var P=({className:o,...t})=>jsxRuntime.jsx("span",{className:a("ml-auto text-xs tracking-widest opacity-60",o),...t});P.displayName="DropdownMenuShortcut";exports.DropdownMenu=h;exports.DropdownMenuCheckboxItem=w;exports.DropdownMenuContent=c;exports.DropdownMenuGroup=C;exports.DropdownMenuItem=l;exports.DropdownMenuLabel=M;exports.DropdownMenuPortal=I;exports.DropdownMenuRadioGroup=S;exports.DropdownMenuRadioItem=f;exports.DropdownMenuSeparator=D;exports.DropdownMenuShortcut=P;exports.DropdownMenuSub=N;exports.DropdownMenuSubContent=u;exports.DropdownMenuSubTrigger=m;exports.DropdownMenuTrigger=x;//# sourceMappingURL=dropdown-menu.js.map
2
+ //# sourceMappingURL=dropdown-menu.js.map