ivt 0.6.2 → 0.6.4

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 (237) hide show
  1. package/dist/accordion/index.mjs +15 -15
  2. package/dist/accordion-table/index.mjs +27 -27
  3. package/dist/alert/index.mjs +2 -2
  4. package/dist/alert-dialog/index.mjs +17 -17
  5. package/dist/aspect-ratio/index.mjs +1 -1
  6. package/dist/avatar/index.mjs +7 -7
  7. package/dist/badge/index.mjs +3 -3
  8. package/dist/base/index.d.ts +90 -3
  9. package/dist/base/index.mjs +188 -46
  10. package/dist/base/index.mjs.map +1 -1
  11. package/dist/breadcrumb/index.mjs +5 -5
  12. package/dist/button/index.mjs +3 -3
  13. package/dist/button-group/index.mjs +4 -4
  14. package/dist/calendar/index.mjs +9 -9
  15. package/dist/card/index.mjs +3 -3
  16. package/dist/carousel/index.mjs +4 -4
  17. package/dist/chart/index.mjs +4 -4
  18. package/dist/checkbox/index.mjs +14 -14
  19. package/dist/chunks/{CalendarRange-DVfhXf4s.mjs → CalendarRange-CSSE2lnb.mjs} +8 -8
  20. package/dist/chunks/{CalendarRange-DVfhXf4s.mjs.map → CalendarRange-CSSE2lnb.mjs.map} +1 -1
  21. package/dist/chunks/{ComboboxField-BkZOYdiv.mjs → ComboboxField-whSP1iXZ.mjs} +9 -9
  22. package/dist/chunks/{ComboboxField-BkZOYdiv.mjs.map → ComboboxField-whSP1iXZ.mjs.map} +1 -1
  23. package/dist/chunks/{Container-Dv9OKRy2.mjs → Container-B-d4mE-S.mjs} +2 -2
  24. package/dist/chunks/{Container-Dv9OKRy2.mjs.map → Container-B-d4mE-S.mjs.map} +1 -1
  25. package/dist/chunks/{DeleteConfirmationModal-uWWIKaEJ.mjs → DeleteConfirmationModal-DXIXFB-K.mjs} +4 -4
  26. package/dist/chunks/{DeleteConfirmationModal-uWWIKaEJ.mjs.map → DeleteConfirmationModal-DXIXFB-K.mjs.map} +1 -1
  27. package/dist/chunks/ListItem-DMi-MHsZ.mjs +27 -0
  28. package/dist/chunks/ListItem-DMi-MHsZ.mjs.map +1 -0
  29. package/dist/chunks/{TooltipIndicator-vtuzMMcA.mjs → TooltipIndicator--2s1dkLz.mjs} +4 -4
  30. package/dist/chunks/{TooltipIndicator-vtuzMMcA.mjs.map → TooltipIndicator--2s1dkLz.mjs.map} +1 -1
  31. package/dist/chunks/{_commonjsHelpers-BS2U17RT.mjs → _commonjsHelpers-Chs9vA-X.mjs} +1 -1
  32. package/dist/chunks/_commonjsHelpers-Chs9vA-X.mjs.map +1 -0
  33. package/dist/chunks/{accordion-DFz3omwg.mjs → accordion-CNQB0EvO.mjs} +11 -11
  34. package/dist/chunks/{accordion-DFz3omwg.mjs.map → accordion-CNQB0EvO.mjs.map} +1 -1
  35. package/dist/chunks/{badge-rIZqy9Ek.mjs → badge-Xgn2whYL.mjs} +2 -2
  36. package/dist/chunks/{badge-rIZqy9Ek.mjs.map → badge-Xgn2whYL.mjs.map} +1 -1
  37. package/dist/chunks/{bundle-mjs-DEAKsOg9.mjs → bundle-mjs-Bsj-DC7F.mjs} +1 -1
  38. package/dist/chunks/{bundle-mjs-DEAKsOg9.mjs.map → bundle-mjs-Bsj-DC7F.mjs.map} +1 -1
  39. package/dist/chunks/{button-NOnRgzwS.mjs → button-w3YgbO4N.mjs} +2 -2
  40. package/dist/chunks/{button-NOnRgzwS.mjs.map → button-w3YgbO4N.mjs.map} +1 -1
  41. package/dist/chunks/{calendar-D380sy27.mjs → calendar-C93_tf2a.mjs} +7 -7
  42. package/dist/chunks/{calendar-D380sy27.mjs.map → calendar-C93_tf2a.mjs.map} +1 -1
  43. package/dist/chunks/{calendar-days-DS4secB2.mjs → calendar-days-D2L6Zk6C.mjs} +2 -2
  44. package/dist/chunks/{calendar-days-DS4secB2.mjs.map → calendar-days-D2L6Zk6C.mjs.map} +1 -1
  45. package/dist/chunks/{card-BlqvJ9NA.mjs → card-C7MCeKlS.mjs} +2 -2
  46. package/dist/chunks/{card-BlqvJ9NA.mjs.map → card-C7MCeKlS.mjs.map} +1 -1
  47. package/dist/chunks/{check-DXZ_15zz.mjs → check-C7sYxkuc.mjs} +2 -2
  48. package/dist/chunks/{check-DXZ_15zz.mjs.map → check-C7sYxkuc.mjs.map} +1 -1
  49. package/dist/chunks/{checkbox-CEbVqw9O.mjs → checkbox-BQiWlwi_.mjs} +11 -11
  50. package/dist/chunks/{checkbox-CEbVqw9O.mjs.map → checkbox-BQiWlwi_.mjs.map} +1 -1
  51. package/dist/chunks/{chevron-down-pTMTQEy7.mjs → chevron-down-1Bc_6jE2.mjs} +2 -2
  52. package/dist/chunks/{chevron-down-pTMTQEy7.mjs.map → chevron-down-1Bc_6jE2.mjs.map} +1 -1
  53. package/dist/chunks/{chevron-left-WlwcK1Lg.mjs → chevron-left-DL-iJCZO.mjs} +2 -2
  54. package/dist/chunks/{chevron-left-WlwcK1Lg.mjs.map → chevron-left-DL-iJCZO.mjs.map} +1 -1
  55. package/dist/chunks/{chevron-right-eWEXbk6Y.mjs → chevron-right-DzD-SgEG.mjs} +2 -2
  56. package/dist/chunks/{chevron-right-eWEXbk6Y.mjs.map → chevron-right-DzD-SgEG.mjs.map} +1 -1
  57. package/dist/chunks/{chevrons-up-down-CchtbsMm.mjs → chevrons-up-down-4ljYv7S3.mjs} +2 -2
  58. package/dist/chunks/{chevrons-up-down-CchtbsMm.mjs.map → chevrons-up-down-4ljYv7S3.mjs.map} +1 -1
  59. package/dist/chunks/{command-DH_XhNOU.mjs → command-Bojrd8ur.mjs} +8 -8
  60. package/dist/chunks/{command-DH_XhNOU.mjs.map → command-Bojrd8ur.mjs.map} +1 -1
  61. package/dist/chunks/{createLucideIcon-Bkij_v5k.mjs → createLucideIcon-CyJmURRz.mjs} +1 -1
  62. package/dist/chunks/{createLucideIcon-Bkij_v5k.mjs.map → createLucideIcon-CyJmURRz.mjs.map} +1 -1
  63. package/dist/chunks/{date-DDoc_o17.mjs → date-DD27VBup.mjs} +2 -2
  64. package/dist/chunks/{date-DDoc_o17.mjs.map → date-DD27VBup.mjs.map} +1 -1
  65. package/dist/chunks/{dialog-lYftBGvM.mjs → dialog-gJyG_-ra.mjs} +4 -4
  66. package/dist/chunks/{dialog-lYftBGvM.mjs.map → dialog-gJyG_-ra.mjs.map} +1 -1
  67. package/dist/chunks/{ellipsis-DmfhrCsy.mjs → ellipsis-O3-odoqB.mjs} +2 -2
  68. package/dist/chunks/{ellipsis-DmfhrCsy.mjs.map → ellipsis-O3-odoqB.mjs.map} +1 -1
  69. package/dist/chunks/{form-Df0a9bm3.mjs → form-CnjyqvxW.mjs} +3 -3
  70. package/dist/chunks/{form-Df0a9bm3.mjs.map → form-CnjyqvxW.mjs.map} +1 -1
  71. package/dist/chunks/{format-D9SXKkws.mjs → format-D3vl8Nt0.mjs} +1 -1
  72. package/dist/chunks/{format-D9SXKkws.mjs.map → format-D3vl8Nt0.mjs.map} +1 -1
  73. package/dist/chunks/{format-numbers-DYEdJYq4.mjs → format-numbers-BZH-5wd0.mjs} +1 -1
  74. package/dist/chunks/{format-numbers-DYEdJYq4.mjs.map → format-numbers-BZH-5wd0.mjs.map} +1 -1
  75. package/dist/chunks/{hover-card-B8hltcfe.mjs → hover-card-C9kr52Sn.mjs} +11 -11
  76. package/dist/chunks/{hover-card-B8hltcfe.mjs.map → hover-card-C9kr52Sn.mjs.map} +1 -1
  77. package/dist/chunks/{index-Blry6DJn.mjs → index-1dIXhFYz.mjs} +1 -1
  78. package/dist/chunks/{index-Blry6DJn.mjs.map → index-1dIXhFYz.mjs.map} +1 -1
  79. package/dist/chunks/{index-DHHfXO1l.mjs → index-6X5LMFJg.mjs} +1 -1
  80. package/dist/chunks/{index-DHHfXO1l.mjs.map → index-6X5LMFJg.mjs.map} +1 -1
  81. package/dist/chunks/{index-lJXVP4Vd.mjs → index-A9sCB-kz.mjs} +1 -1
  82. package/dist/chunks/{index-lJXVP4Vd.mjs.map → index-A9sCB-kz.mjs.map} +1 -1
  83. package/dist/chunks/{index-BYYIvrWN.mjs → index-B4otZW4q.mjs} +9 -9
  84. package/dist/chunks/{index-BYYIvrWN.mjs.map → index-B4otZW4q.mjs.map} +1 -1
  85. package/dist/chunks/{index-D-Ge2tuH.mjs → index-BLX8fFuX.mjs} +3 -3
  86. package/dist/chunks/{index-D-Ge2tuH.mjs.map → index-BLX8fFuX.mjs.map} +1 -1
  87. package/dist/chunks/{index-BgHsh9M4.mjs → index-BTbETlk3.mjs} +2 -2
  88. package/dist/chunks/{index-BgHsh9M4.mjs.map → index-BTbETlk3.mjs.map} +1 -1
  89. package/dist/chunks/{index-CKz1HXp2.mjs → index-B_RTLXiw.mjs} +1 -1
  90. package/dist/chunks/{index-CKz1HXp2.mjs.map → index-B_RTLXiw.mjs.map} +1 -1
  91. package/dist/chunks/{index-BAEn-ttU.mjs → index-BcETtjq7.mjs} +2 -2
  92. package/dist/chunks/{index-BAEn-ttU.mjs.map → index-BcETtjq7.mjs.map} +1 -1
  93. package/dist/chunks/{index-DulxQt34.mjs → index-BnkQwtoI.mjs} +15 -15
  94. package/dist/chunks/{index-DulxQt34.mjs.map → index-BnkQwtoI.mjs.map} +1 -1
  95. package/dist/chunks/{index-Bzbvbywd.mjs → index-C0W5TCYS.mjs} +1 -1
  96. package/dist/chunks/{index-Bzbvbywd.mjs.map → index-C0W5TCYS.mjs.map} +1 -1
  97. package/dist/chunks/{index-BmRFmtMt.mjs → index-CDMXBjs5.mjs} +1 -1
  98. package/dist/chunks/{index-BmRFmtMt.mjs.map → index-CDMXBjs5.mjs.map} +1 -1
  99. package/dist/chunks/{index-DumqgQ_L.mjs → index-CP5IMvF6.mjs} +1 -1
  100. package/dist/chunks/{index-DumqgQ_L.mjs.map → index-CP5IMvF6.mjs.map} +1 -1
  101. package/dist/chunks/{index-zEUnGtr4.mjs → index-CVlrcY4U.mjs} +5 -5
  102. package/dist/chunks/{index-zEUnGtr4.mjs.map → index-CVlrcY4U.mjs.map} +1 -1
  103. package/dist/chunks/{index-DPBBqqVS.mjs → index-Ch7It_oz.mjs} +11 -11
  104. package/dist/chunks/{index-DPBBqqVS.mjs.map → index-Ch7It_oz.mjs.map} +1 -1
  105. package/dist/chunks/{index-GOuU61VI.mjs → index-D2ZM3eSk.mjs} +3 -3
  106. package/dist/chunks/{index-GOuU61VI.mjs.map → index-D2ZM3eSk.mjs.map} +1 -1
  107. package/dist/chunks/{index-ZqM56Bg2.mjs → index-D3raJhg-.mjs} +5 -5
  108. package/dist/chunks/{index-ZqM56Bg2.mjs.map → index-D3raJhg-.mjs.map} +1 -1
  109. package/dist/chunks/{index-BOWGR-j0.mjs → index-DQB8cT4M.mjs} +1 -1
  110. package/dist/chunks/{index-BOWGR-j0.mjs.map → index-DQB8cT4M.mjs.map} +1 -1
  111. package/dist/chunks/{index-DkbzMWJQ.mjs → index-GxLl6H4O.mjs} +7 -7
  112. package/dist/chunks/{index-DkbzMWJQ.mjs.map → index-GxLl6H4O.mjs.map} +1 -1
  113. package/dist/chunks/{index-ZIZ_d3fn.mjs → index-LzZONhgk.mjs} +9 -9
  114. package/dist/chunks/{index-ZIZ_d3fn.mjs.map → index-LzZONhgk.mjs.map} +1 -1
  115. package/dist/chunks/{index-BK8-Ri2-.mjs → index-MMJu4clW.mjs} +2 -2
  116. package/dist/chunks/{index-BK8-Ri2-.mjs.map → index-MMJu4clW.mjs.map} +1 -1
  117. package/dist/chunks/{index-DiRTrqor.mjs → index-P_DA76lP.mjs} +1 -1
  118. package/dist/chunks/{index-DiRTrqor.mjs.map → index-P_DA76lP.mjs.map} +1 -1
  119. package/dist/chunks/{index-QO5xEicn.mjs → index-uSC1GXit.mjs} +2 -2
  120. package/dist/chunks/{index-QO5xEicn.mjs.map → index-uSC1GXit.mjs.map} +1 -1
  121. package/dist/chunks/{index-CeEyI_xT.mjs → index-xsn786mg.mjs} +1 -1
  122. package/dist/chunks/{index-CeEyI_xT.mjs.map → index-xsn786mg.mjs.map} +1 -1
  123. package/dist/chunks/{input-CiG-skbB.mjs → input-CRSidXiN.mjs} +2 -2
  124. package/dist/chunks/{input-CiG-skbB.mjs.map → input-CRSidXiN.mjs.map} +1 -1
  125. package/dist/chunks/{label-DdQ_Z6Ra.mjs → label-CoCA5N9R.mjs} +3 -3
  126. package/dist/chunks/{label-DdQ_Z6Ra.mjs.map → label-CoCA5N9R.mjs.map} +1 -1
  127. package/dist/chunks/{loader-circle-CsRZgbvV.mjs → loader-circle-CJThtpM8.mjs} +2 -2
  128. package/dist/chunks/{loader-circle-CsRZgbvV.mjs.map → loader-circle-CJThtpM8.mjs.map} +1 -1
  129. package/dist/chunks/menubar-IxCRcc3h.mjs +571 -0
  130. package/dist/chunks/menubar-IxCRcc3h.mjs.map +1 -0
  131. package/dist/chunks/{multi-select-DEAh0Ex1.mjs → multi-select-DNB39SYt.mjs} +55 -28
  132. package/dist/chunks/multi-select-DNB39SYt.mjs.map +1 -0
  133. package/dist/chunks/{pagination-FTHztFJM.mjs → pagination-pfERksJd.mjs} +6 -6
  134. package/dist/chunks/{pagination-FTHztFJM.mjs.map → pagination-pfERksJd.mjs.map} +1 -1
  135. package/dist/chunks/{popover-LInfsDo_.mjs → popover-CoM9Bdak.mjs} +13 -13
  136. package/dist/chunks/{popover-LInfsDo_.mjs.map → popover-CoM9Bdak.mjs.map} +1 -1
  137. package/dist/chunks/{progress-DVdCfPzW.mjs → progress-PAATxYFo.mjs} +4 -4
  138. package/dist/chunks/{progress-DVdCfPzW.mjs.map → progress-PAATxYFo.mjs.map} +1 -1
  139. package/dist/chunks/{react-number-format.es-BvUP1xbd.mjs → react-number-format.es-Dgl0O_tF.mjs} +1 -1
  140. package/dist/chunks/{react-number-format.es-BvUP1xbd.mjs.map → react-number-format.es-Dgl0O_tF.mjs.map} +1 -1
  141. package/dist/chunks/{scroll-area-Dv3_G1tJ.mjs → scroll-area-BEXJ0PYK.mjs} +11 -11
  142. package/dist/chunks/{scroll-area-Dv3_G1tJ.mjs.map → scroll-area-BEXJ0PYK.mjs.map} +1 -1
  143. package/dist/chunks/{select-CQ6Sxheq.mjs → select-BaMJUcD-.mjs} +5 -5
  144. package/dist/chunks/{select-CQ6Sxheq.mjs.map → select-BaMJUcD-.mjs.map} +1 -1
  145. package/dist/chunks/{separator-DgWXe8vE.mjs → separator-CT0d-bQx.mjs} +3 -3
  146. package/dist/chunks/{separator-DgWXe8vE.mjs.map → separator-CT0d-bQx.mjs.map} +1 -1
  147. package/dist/chunks/{sheet-DHSb1zwg.mjs → sheet-DBCCU2LY.mjs} +4 -4
  148. package/dist/chunks/{sheet-DHSb1zwg.mjs.map → sheet-DBCCU2LY.mjs.map} +1 -1
  149. package/dist/chunks/{skeleton-zEA6NgVv.mjs → skeleton-BGyVdjEB.mjs} +2 -2
  150. package/dist/chunks/{skeleton-zEA6NgVv.mjs.map → skeleton-BGyVdjEB.mjs.map} +1 -1
  151. package/dist/chunks/{sortable-BRl48bdi.mjs → sortable-Due8fPR6.mjs} +3 -3
  152. package/dist/chunks/{sortable-BRl48bdi.mjs.map → sortable-Due8fPR6.mjs.map} +1 -1
  153. package/dist/chunks/{table-_Xpm32SS.mjs → table-BCwQzaUG.mjs} +2 -2
  154. package/dist/chunks/{table-_Xpm32SS.mjs.map → table-BCwQzaUG.mjs.map} +1 -1
  155. package/dist/chunks/{textarea-BWJeW5B0.mjs → textarea-CkF8UcX5.mjs} +2 -2
  156. package/dist/chunks/{textarea-BWJeW5B0.mjs.map → textarea-CkF8UcX5.mjs.map} +1 -1
  157. package/dist/chunks/{toggle-DWQhf68A.mjs → toggle-CXSa2200.mjs} +5 -5
  158. package/dist/chunks/{toggle-DWQhf68A.mjs.map → toggle-CXSa2200.mjs.map} +1 -1
  159. package/dist/chunks/{tooltip-CCCTni3M.mjs → tooltip-DLElmpyh.mjs} +13 -13
  160. package/dist/chunks/{tooltip-CCCTni3M.mjs.map → tooltip-DLElmpyh.mjs.map} +1 -1
  161. package/dist/chunks/{trash-2-Lrm9CnmY.mjs → trash-2-C4LWxYG0.mjs} +2 -2
  162. package/dist/chunks/{trash-2-Lrm9CnmY.mjs.map → trash-2-C4LWxYG0.mjs.map} +1 -1
  163. package/dist/chunks/{triangle-alert-CJM7uYhj.mjs → triangle-alert-AD47bW6b.mjs} +2 -2
  164. package/dist/chunks/{triangle-alert-CJM7uYhj.mjs.map → triangle-alert-AD47bW6b.mjs.map} +1 -1
  165. package/dist/chunks/{tslib.es6-BUkHi4uJ.mjs → tslib.es6-BIgLG7bA.mjs} +1 -1
  166. package/dist/chunks/{tslib.es6-BUkHi4uJ.mjs.map → tslib.es6-BIgLG7bA.mjs.map} +1 -1
  167. package/dist/chunks/{utils-BiySr2fz.mjs → utils-Do8DRzMk.mjs} +2 -2
  168. package/dist/chunks/{utils-BiySr2fz.mjs.map → utils-Do8DRzMk.mjs.map} +1 -1
  169. package/dist/chunks/{x-CFUvolXV.mjs → x-DrN_X0V4.mjs} +2 -2
  170. package/dist/chunks/{x-CFUvolXV.mjs.map → x-DrN_X0V4.mjs.map} +1 -1
  171. package/dist/collapsible/index.mjs +9 -9
  172. package/dist/combobox/index.mjs +26 -26
  173. package/dist/command/index.mjs +20 -20
  174. package/dist/context-menu/index.mjs +23 -23
  175. package/dist/dash/index.mjs +25 -25
  176. package/dist/data-table/index.mjs +35 -35
  177. package/dist/date-picker/index.mjs +27 -27
  178. package/dist/dialog/index.mjs +19 -19
  179. package/dist/drawer/index.mjs +16 -16
  180. package/dist/dropdown-menu/index.mjs +23 -23
  181. package/dist/dropzone/index.mjs +18 -18
  182. package/dist/editable-table/index.mjs +10 -10
  183. package/dist/empty/index.mjs +2 -2
  184. package/dist/field/index.mjs +5 -5
  185. package/dist/form/index.mjs +5 -5
  186. package/dist/form-fields/index.mjs +28 -28
  187. package/dist/hover-card/index.mjs +15 -15
  188. package/dist/icon/index.mjs +1 -1
  189. package/dist/index.css +1 -1
  190. package/dist/input/index.mjs +3 -3
  191. package/dist/input-group/index.mjs +5 -5
  192. package/dist/input-otp/index.mjs +3 -3
  193. package/dist/item/index.mjs +4 -4
  194. package/dist/ivt.css +1 -1
  195. package/dist/kbd/index.mjs +2 -2
  196. package/dist/label/index.mjs +4 -4
  197. package/dist/layout/index.d.ts +3 -0
  198. package/dist/layout/index.mjs +28 -25
  199. package/dist/layout/index.mjs.map +1 -1
  200. package/dist/menubar/index.mjs +27 -581
  201. package/dist/menubar/index.mjs.map +1 -1
  202. package/dist/multi-input-list/index.d.ts +24 -0
  203. package/dist/multi-input-list/index.mjs +217 -0
  204. package/dist/multi-input-list/index.mjs.map +1 -0
  205. package/dist/multi-select/index.d.ts +4 -1
  206. package/dist/multi-select/index.mjs +31 -31
  207. package/dist/navigation-menu/index.mjs +17 -17
  208. package/dist/pagination/index.mjs +8 -8
  209. package/dist/popover/index.mjs +18 -18
  210. package/dist/progress/index.mjs +5 -5
  211. package/dist/radio-group/index.mjs +17 -17
  212. package/dist/resizable/index.mjs +3 -3
  213. package/dist/scroll-area/index.mjs +12 -12
  214. package/dist/select/index.mjs +6 -6
  215. package/dist/separator/index.mjs +4 -4
  216. package/dist/shared/index.mjs +5 -5
  217. package/dist/sheet/index.mjs +19 -19
  218. package/dist/sidebar/index.mjs +27 -27
  219. package/dist/skeleton/index.mjs +3 -3
  220. package/dist/skeleton-component/index.mjs +26 -26
  221. package/dist/skeleton-component/index.mjs.map +1 -1
  222. package/dist/slider/index.mjs +12 -12
  223. package/dist/sortable/index.mjs +4 -4
  224. package/dist/spinner/index.mjs +4 -4
  225. package/dist/switch/index.mjs +10 -10
  226. package/dist/table/index.mjs +3 -3
  227. package/dist/table-filter/index.mjs +52 -52
  228. package/dist/table-filter/index.mjs.map +1 -1
  229. package/dist/tabs/index.mjs +13 -13
  230. package/dist/textarea/index.mjs +3 -3
  231. package/dist/toast/index.mjs +15 -15
  232. package/dist/toggle/index.mjs +7 -7
  233. package/dist/toggle-group/index.mjs +13 -13
  234. package/dist/tooltip/index.mjs +17 -17
  235. package/package.json +466 -462
  236. package/dist/chunks/_commonjsHelpers-BS2U17RT.mjs.map +0 -1
  237. package/dist/chunks/multi-select-DEAh0Ex1.mjs.map +0 -1
@@ -1,584 +1,30 @@
1
- import * as React from 'react';
2
- import { createCollection } from '@radix-ui/react-collection';
3
- import { u as useDirection } from '../chunks/index-BmRFmtMt.mjs';
4
- import { c as composeEventHandlers } from '../chunks/index-lJXVP4Vd.mjs';
5
- import { u as useComposedRefs } from '../chunks/index-DiRTrqor.mjs';
6
- import { c as createContextScope } from '../chunks/index-Blry6DJn.mjs';
7
- import { u as useId } from '../chunks/index-QO5xEicn.mjs';
8
- import { c as createMenuScope, P as Portal, R as Root3$1, A as Anchor2, C as Content2$1, G as Group, S as Separator, L as Label, I as Item2, a as CheckboxItem, b as ItemIndicator, h as RadioGroup, d as RadioItem, e as Sub, g as SubTrigger, f as SubContent, i as Arrow2, j as Circle } from '../chunks/index-DulxQt34.mjs';
9
- import { c as createRovingFocusGroupScope, R as Root, I as Item } from '../chunks/index-ZIZ_d3fn.mjs';
10
- import { P as Primitive } from '../chunks/index-DumqgQ_L.mjs';
11
- import { u as useControllableState } from '../chunks/index-BgHsh9M4.mjs';
12
- import { jsx } from 'react/jsx-runtime';
13
- import { c as cn } from '../chunks/utils-BiySr2fz.mjs';
14
- import { C as Check } from '../chunks/check-DXZ_15zz.mjs';
15
- import { C as ChevronRight } from '../chunks/chevron-right-eWEXbk6Y.mjs';
16
- import '../chunks/index-CKz1HXp2.mjs';
17
- import '../chunks/createLucideIcon-Bkij_v5k.mjs';
18
- import '../chunks/index-ZqM56Bg2.mjs';
19
- import '../chunks/index-CeEyI_xT.mjs';
20
- import '../chunks/index-zEUnGtr4.mjs';
21
- import '../chunks/tslib.es6-BUkHi4uJ.mjs';
22
- import '../chunks/index-DkbzMWJQ.mjs';
1
+ export { M as Menubar, j as MenubarCheckboxItem, d as MenubarContent, e as MenubarGroup, h as MenubarItem, g as MenubarLabel, b as MenubarMenu, a as MenubarPortal, k as MenubarRadioGroup, l as MenubarRadioItem, f as MenubarSeparator, i as MenubarShortcut, m as MenubarSub, o as MenubarSubContent, n as MenubarSubTrigger, c as MenubarTrigger } from '../chunks/menubar-IxCRcc3h.mjs';
2
+ import 'react';
3
+ import '@radix-ui/react-collection';
4
+ import '../chunks/index-CDMXBjs5.mjs';
5
+ import 'react/jsx-runtime';
6
+ import '../chunks/index-A9sCB-kz.mjs';
7
+ import '../chunks/index-P_DA76lP.mjs';
8
+ import '../chunks/index-1dIXhFYz.mjs';
9
+ import '../chunks/index-uSC1GXit.mjs';
10
+ import '../chunks/index-B_RTLXiw.mjs';
11
+ import '../chunks/index-BnkQwtoI.mjs';
12
+ import '../chunks/createLucideIcon-CyJmURRz.mjs';
13
+ import '../chunks/index-D3raJhg-.mjs';
14
+ import '../chunks/index-CP5IMvF6.mjs';
23
15
  import 'react-dom';
24
- import '../chunks/index-BK8-Ri2-.mjs';
25
- import '../chunks/index-D-Ge2tuH.mjs';
26
- import '../chunks/index-GOuU61VI.mjs';
27
16
  import '@radix-ui/react-slot';
28
- import '../chunks/bundle-mjs-DEAKsOg9.mjs';
29
-
30
- var MENUBAR_NAME = "Menubar";
31
- var [Collection, useCollection, createCollectionScope] = createCollection(MENUBAR_NAME);
32
- var [createMenubarContext] = createContextScope(MENUBAR_NAME, [
33
- createCollectionScope,
34
- createRovingFocusGroupScope
35
- ]);
36
- var useMenuScope = createMenuScope();
37
- var useRovingFocusGroupScope = createRovingFocusGroupScope();
38
- var [MenubarContextProvider, useMenubarContext] = createMenubarContext(MENUBAR_NAME);
39
- var Menubar$1 = React.forwardRef((props, forwardedRef)=>{
40
- const { __scopeMenubar, value: valueProp, onValueChange, defaultValue, loop = true, dir, ...menubarProps } = props;
41
- const direction = useDirection(dir);
42
- const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenubar);
43
- const [value, setValue] = useControllableState({
44
- prop: valueProp,
45
- onChange: onValueChange,
46
- defaultProp: defaultValue ?? "",
47
- caller: MENUBAR_NAME
48
- });
49
- const [currentTabStopId, setCurrentTabStopId] = React.useState(null);
50
- return /* @__PURE__ */ jsx(MenubarContextProvider, {
51
- scope: __scopeMenubar,
52
- value,
53
- onMenuOpen: React.useCallback((value2)=>{
54
- setValue(value2);
55
- setCurrentTabStopId(value2);
56
- }, [
57
- setValue
58
- ]),
59
- onMenuClose: React.useCallback(()=>setValue(""), [
60
- setValue
61
- ]),
62
- onMenuToggle: React.useCallback((value2)=>{
63
- setValue((prevValue)=>prevValue ? "" : value2);
64
- setCurrentTabStopId(value2);
65
- }, [
66
- setValue
67
- ]),
68
- dir: direction,
69
- loop,
70
- children: /* @__PURE__ */ jsx(Collection.Provider, {
71
- scope: __scopeMenubar,
72
- children: /* @__PURE__ */ jsx(Collection.Slot, {
73
- scope: __scopeMenubar,
74
- children: /* @__PURE__ */ jsx(Root, {
75
- asChild: true,
76
- ...rovingFocusGroupScope,
77
- orientation: "horizontal",
78
- loop,
79
- dir: direction,
80
- currentTabStopId,
81
- onCurrentTabStopIdChange: setCurrentTabStopId,
82
- children: /* @__PURE__ */ jsx(Primitive.div, {
83
- role: "menubar",
84
- ...menubarProps,
85
- ref: forwardedRef
86
- })
87
- })
88
- })
89
- })
90
- });
91
- });
92
- Menubar$1.displayName = MENUBAR_NAME;
93
- var MENU_NAME = "MenubarMenu";
94
- var [MenubarMenuProvider, useMenubarMenuContext] = createMenubarContext(MENU_NAME);
95
- var MenubarMenu$1 = (props)=>{
96
- const { __scopeMenubar, value: valueProp, ...menuProps } = props;
97
- const autoValue = useId();
98
- const value = valueProp || autoValue || "LEGACY_REACT_AUTO_VALUE";
99
- const context = useMenubarContext(MENU_NAME, __scopeMenubar);
100
- const menuScope = useMenuScope(__scopeMenubar);
101
- const triggerRef = React.useRef(null);
102
- const wasKeyboardTriggerOpenRef = React.useRef(false);
103
- const open = context.value === value;
104
- React.useEffect(()=>{
105
- if (!open) wasKeyboardTriggerOpenRef.current = false;
106
- }, [
107
- open
108
- ]);
109
- return /* @__PURE__ */ jsx(MenubarMenuProvider, {
110
- scope: __scopeMenubar,
111
- value,
112
- triggerId: useId(),
113
- triggerRef,
114
- contentId: useId(),
115
- wasKeyboardTriggerOpenRef,
116
- children: /* @__PURE__ */ jsx(Root3$1, {
117
- ...menuScope,
118
- open,
119
- onOpenChange: (open2)=>{
120
- if (!open2) context.onMenuClose();
121
- },
122
- modal: false,
123
- dir: context.dir,
124
- ...menuProps
125
- })
126
- });
127
- };
128
- MenubarMenu$1.displayName = MENU_NAME;
129
- var TRIGGER_NAME = "MenubarTrigger";
130
- var MenubarTrigger$1 = React.forwardRef((props, forwardedRef)=>{
131
- const { __scopeMenubar, disabled = false, ...triggerProps } = props;
132
- const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenubar);
133
- const menuScope = useMenuScope(__scopeMenubar);
134
- const context = useMenubarContext(TRIGGER_NAME, __scopeMenubar);
135
- const menuContext = useMenubarMenuContext(TRIGGER_NAME, __scopeMenubar);
136
- const ref = React.useRef(null);
137
- const composedRefs = useComposedRefs(forwardedRef, ref, menuContext.triggerRef);
138
- const [isFocused, setIsFocused] = React.useState(false);
139
- const open = context.value === menuContext.value;
140
- return /* @__PURE__ */ jsx(Collection.ItemSlot, {
141
- scope: __scopeMenubar,
142
- value: menuContext.value,
143
- disabled,
144
- children: /* @__PURE__ */ jsx(Item, {
145
- asChild: true,
146
- ...rovingFocusGroupScope,
147
- focusable: !disabled,
148
- tabStopId: menuContext.value,
149
- children: /* @__PURE__ */ jsx(Anchor2, {
150
- asChild: true,
151
- ...menuScope,
152
- children: /* @__PURE__ */ jsx(Primitive.button, {
153
- type: "button",
154
- role: "menuitem",
155
- id: menuContext.triggerId,
156
- "aria-haspopup": "menu",
157
- "aria-expanded": open,
158
- "aria-controls": open ? menuContext.contentId : void 0,
159
- "data-highlighted": isFocused ? "" : void 0,
160
- "data-state": open ? "open" : "closed",
161
- "data-disabled": disabled ? "" : void 0,
162
- disabled,
163
- ...triggerProps,
164
- ref: composedRefs,
165
- onPointerDown: composeEventHandlers(props.onPointerDown, (event)=>{
166
- if (!disabled && event.button === 0 && event.ctrlKey === false) {
167
- context.onMenuOpen(menuContext.value);
168
- if (!open) event.preventDefault();
169
- }
170
- }),
171
- onPointerEnter: composeEventHandlers(props.onPointerEnter, ()=>{
172
- const menubarOpen = Boolean(context.value);
173
- if (menubarOpen && !open) {
174
- context.onMenuOpen(menuContext.value);
175
- ref.current?.focus();
176
- }
177
- }),
178
- onKeyDown: composeEventHandlers(props.onKeyDown, (event)=>{
179
- if (disabled) return;
180
- if ([
181
- "Enter",
182
- " "
183
- ].includes(event.key)) context.onMenuToggle(menuContext.value);
184
- if (event.key === "ArrowDown") context.onMenuOpen(menuContext.value);
185
- if ([
186
- "Enter",
187
- " ",
188
- "ArrowDown"
189
- ].includes(event.key)) {
190
- menuContext.wasKeyboardTriggerOpenRef.current = true;
191
- event.preventDefault();
192
- }
193
- }),
194
- onFocus: composeEventHandlers(props.onFocus, ()=>setIsFocused(true)),
195
- onBlur: composeEventHandlers(props.onBlur, ()=>setIsFocused(false))
196
- })
197
- })
198
- })
199
- });
200
- });
201
- MenubarTrigger$1.displayName = TRIGGER_NAME;
202
- var PORTAL_NAME = "MenubarPortal";
203
- var MenubarPortal$1 = (props)=>{
204
- const { __scopeMenubar, ...portalProps } = props;
205
- const menuScope = useMenuScope(__scopeMenubar);
206
- return /* @__PURE__ */ jsx(Portal, {
207
- ...menuScope,
208
- ...portalProps
209
- });
210
- };
211
- MenubarPortal$1.displayName = PORTAL_NAME;
212
- var CONTENT_NAME = "MenubarContent";
213
- var MenubarContent$1 = React.forwardRef((props, forwardedRef)=>{
214
- const { __scopeMenubar, align = "start", ...contentProps } = props;
215
- const menuScope = useMenuScope(__scopeMenubar);
216
- const context = useMenubarContext(CONTENT_NAME, __scopeMenubar);
217
- const menuContext = useMenubarMenuContext(CONTENT_NAME, __scopeMenubar);
218
- const getItems = useCollection(__scopeMenubar);
219
- const hasInteractedOutsideRef = React.useRef(false);
220
- return /* @__PURE__ */ jsx(Content2$1, {
221
- id: menuContext.contentId,
222
- "aria-labelledby": menuContext.triggerId,
223
- "data-radix-menubar-content": "",
224
- ...menuScope,
225
- ...contentProps,
226
- ref: forwardedRef,
227
- align,
228
- onCloseAutoFocus: composeEventHandlers(props.onCloseAutoFocus, (event)=>{
229
- const menubarOpen = Boolean(context.value);
230
- if (!menubarOpen && !hasInteractedOutsideRef.current) {
231
- menuContext.triggerRef.current?.focus();
232
- }
233
- hasInteractedOutsideRef.current = false;
234
- event.preventDefault();
235
- }),
236
- onFocusOutside: composeEventHandlers(props.onFocusOutside, (event)=>{
237
- const target = event.target;
238
- const isMenubarTrigger = getItems().some((item)=>item.ref.current?.contains(target));
239
- if (isMenubarTrigger) event.preventDefault();
240
- }),
241
- onInteractOutside: composeEventHandlers(props.onInteractOutside, ()=>{
242
- hasInteractedOutsideRef.current = true;
243
- }),
244
- onEntryFocus: (event)=>{
245
- if (!menuContext.wasKeyboardTriggerOpenRef.current) event.preventDefault();
246
- },
247
- onKeyDown: composeEventHandlers(props.onKeyDown, (event)=>{
248
- if ([
249
- "ArrowRight",
250
- "ArrowLeft"
251
- ].includes(event.key)) {
252
- const target = event.target;
253
- const targetIsSubTrigger = target.hasAttribute("data-radix-menubar-subtrigger");
254
- const isKeyDownInsideSubMenu = target.closest("[data-radix-menubar-content]") !== event.currentTarget;
255
- const prevMenuKey = context.dir === "rtl" ? "ArrowRight" : "ArrowLeft";
256
- const isPrevKey = prevMenuKey === event.key;
257
- const isNextKey = !isPrevKey;
258
- if (isNextKey && targetIsSubTrigger) return;
259
- if (isKeyDownInsideSubMenu && isPrevKey) return;
260
- const items = getItems().filter((item)=>!item.disabled);
261
- let candidateValues = items.map((item)=>item.value);
262
- if (isPrevKey) candidateValues.reverse();
263
- const currentIndex = candidateValues.indexOf(menuContext.value);
264
- candidateValues = context.loop ? wrapArray(candidateValues, currentIndex + 1) : candidateValues.slice(currentIndex + 1);
265
- const [nextValue] = candidateValues;
266
- if (nextValue) context.onMenuOpen(nextValue);
267
- }
268
- }, {
269
- checkForDefaultPrevented: false
270
- }),
271
- style: {
272
- ...props.style,
273
- // re-namespace exposed content custom properties
274
- ...{
275
- "--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
276
- "--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
277
- "--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
278
- "--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
279
- "--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
280
- }
281
- }
282
- });
283
- });
284
- MenubarContent$1.displayName = CONTENT_NAME;
285
- var GROUP_NAME = "MenubarGroup";
286
- var MenubarGroup$1 = React.forwardRef((props, forwardedRef)=>{
287
- const { __scopeMenubar, ...groupProps } = props;
288
- const menuScope = useMenuScope(__scopeMenubar);
289
- return /* @__PURE__ */ jsx(Group, {
290
- ...menuScope,
291
- ...groupProps,
292
- ref: forwardedRef
293
- });
294
- });
295
- MenubarGroup$1.displayName = GROUP_NAME;
296
- var LABEL_NAME = "MenubarLabel";
297
- var MenubarLabel$1 = React.forwardRef((props, forwardedRef)=>{
298
- const { __scopeMenubar, ...labelProps } = props;
299
- const menuScope = useMenuScope(__scopeMenubar);
300
- return /* @__PURE__ */ jsx(Label, {
301
- ...menuScope,
302
- ...labelProps,
303
- ref: forwardedRef
304
- });
305
- });
306
- MenubarLabel$1.displayName = LABEL_NAME;
307
- var ITEM_NAME = "MenubarItem";
308
- var MenubarItem$1 = React.forwardRef((props, forwardedRef)=>{
309
- const { __scopeMenubar, ...itemProps } = props;
310
- const menuScope = useMenuScope(__scopeMenubar);
311
- return /* @__PURE__ */ jsx(Item2, {
312
- ...menuScope,
313
- ...itemProps,
314
- ref: forwardedRef
315
- });
316
- });
317
- MenubarItem$1.displayName = ITEM_NAME;
318
- var CHECKBOX_ITEM_NAME = "MenubarCheckboxItem";
319
- var MenubarCheckboxItem$1 = React.forwardRef((props, forwardedRef)=>{
320
- const { __scopeMenubar, ...checkboxItemProps } = props;
321
- const menuScope = useMenuScope(__scopeMenubar);
322
- return /* @__PURE__ */ jsx(CheckboxItem, {
323
- ...menuScope,
324
- ...checkboxItemProps,
325
- ref: forwardedRef
326
- });
327
- });
328
- MenubarCheckboxItem$1.displayName = CHECKBOX_ITEM_NAME;
329
- var RADIO_GROUP_NAME = "MenubarRadioGroup";
330
- var MenubarRadioGroup$1 = React.forwardRef((props, forwardedRef)=>{
331
- const { __scopeMenubar, ...radioGroupProps } = props;
332
- const menuScope = useMenuScope(__scopeMenubar);
333
- return /* @__PURE__ */ jsx(RadioGroup, {
334
- ...menuScope,
335
- ...radioGroupProps,
336
- ref: forwardedRef
337
- });
338
- });
339
- MenubarRadioGroup$1.displayName = RADIO_GROUP_NAME;
340
- var RADIO_ITEM_NAME = "MenubarRadioItem";
341
- var MenubarRadioItem$1 = React.forwardRef((props, forwardedRef)=>{
342
- const { __scopeMenubar, ...radioItemProps } = props;
343
- const menuScope = useMenuScope(__scopeMenubar);
344
- return /* @__PURE__ */ jsx(RadioItem, {
345
- ...menuScope,
346
- ...radioItemProps,
347
- ref: forwardedRef
348
- });
349
- });
350
- MenubarRadioItem$1.displayName = RADIO_ITEM_NAME;
351
- var INDICATOR_NAME = "MenubarItemIndicator";
352
- var MenubarItemIndicator = React.forwardRef((props, forwardedRef)=>{
353
- const { __scopeMenubar, ...itemIndicatorProps } = props;
354
- const menuScope = useMenuScope(__scopeMenubar);
355
- return /* @__PURE__ */ jsx(ItemIndicator, {
356
- ...menuScope,
357
- ...itemIndicatorProps,
358
- ref: forwardedRef
359
- });
360
- });
361
- MenubarItemIndicator.displayName = INDICATOR_NAME;
362
- var SEPARATOR_NAME = "MenubarSeparator";
363
- var MenubarSeparator$1 = React.forwardRef((props, forwardedRef)=>{
364
- const { __scopeMenubar, ...separatorProps } = props;
365
- const menuScope = useMenuScope(__scopeMenubar);
366
- return /* @__PURE__ */ jsx(Separator, {
367
- ...menuScope,
368
- ...separatorProps,
369
- ref: forwardedRef
370
- });
371
- });
372
- MenubarSeparator$1.displayName = SEPARATOR_NAME;
373
- var ARROW_NAME = "MenubarArrow";
374
- var MenubarArrow = React.forwardRef((props, forwardedRef)=>{
375
- const { __scopeMenubar, ...arrowProps } = props;
376
- const menuScope = useMenuScope(__scopeMenubar);
377
- return /* @__PURE__ */ jsx(Arrow2, {
378
- ...menuScope,
379
- ...arrowProps,
380
- ref: forwardedRef
381
- });
382
- });
383
- MenubarArrow.displayName = ARROW_NAME;
384
- var SUB_NAME = "MenubarSub";
385
- var MenubarSub$1 = (props)=>{
386
- const { __scopeMenubar, children, open: openProp, onOpenChange, defaultOpen } = props;
387
- const menuScope = useMenuScope(__scopeMenubar);
388
- const [open, setOpen] = useControllableState({
389
- prop: openProp,
390
- defaultProp: defaultOpen ?? false,
391
- onChange: onOpenChange,
392
- caller: SUB_NAME
393
- });
394
- return /* @__PURE__ */ jsx(Sub, {
395
- ...menuScope,
396
- open,
397
- onOpenChange: setOpen,
398
- children
399
- });
400
- };
401
- MenubarSub$1.displayName = SUB_NAME;
402
- var SUB_TRIGGER_NAME = "MenubarSubTrigger";
403
- var MenubarSubTrigger$1 = React.forwardRef((props, forwardedRef)=>{
404
- const { __scopeMenubar, ...subTriggerProps } = props;
405
- const menuScope = useMenuScope(__scopeMenubar);
406
- return /* @__PURE__ */ jsx(SubTrigger, {
407
- "data-radix-menubar-subtrigger": "",
408
- ...menuScope,
409
- ...subTriggerProps,
410
- ref: forwardedRef
411
- });
412
- });
413
- MenubarSubTrigger$1.displayName = SUB_TRIGGER_NAME;
414
- var SUB_CONTENT_NAME = "MenubarSubContent";
415
- var MenubarSubContent$1 = React.forwardRef((props, forwardedRef)=>{
416
- const { __scopeMenubar, ...subContentProps } = props;
417
- const menuScope = useMenuScope(__scopeMenubar);
418
- return /* @__PURE__ */ jsx(SubContent, {
419
- ...menuScope,
420
- "data-radix-menubar-content": "",
421
- ...subContentProps,
422
- ref: forwardedRef,
423
- style: {
424
- ...props.style,
425
- // re-namespace exposed content custom properties
426
- ...{
427
- "--radix-menubar-content-transform-origin": "var(--radix-popper-transform-origin)",
428
- "--radix-menubar-content-available-width": "var(--radix-popper-available-width)",
429
- "--radix-menubar-content-available-height": "var(--radix-popper-available-height)",
430
- "--radix-menubar-trigger-width": "var(--radix-popper-anchor-width)",
431
- "--radix-menubar-trigger-height": "var(--radix-popper-anchor-height)"
432
- }
433
- }
434
- });
435
- });
436
- MenubarSubContent$1.displayName = SUB_CONTENT_NAME;
437
- function wrapArray(array, startIndex) {
438
- return array.map((_, index)=>array[(startIndex + index) % array.length]);
439
- }
440
- var Root3 = Menubar$1;
441
- var Menu = MenubarMenu$1;
442
- var Trigger = MenubarTrigger$1;
443
- var Portal2 = MenubarPortal$1;
444
- var Content2 = MenubarContent$1;
445
- var Group2 = MenubarGroup$1;
446
- var Label2 = MenubarLabel$1;
447
- var Item3 = MenubarItem$1;
448
- var CheckboxItem2 = MenubarCheckboxItem$1;
449
- var RadioGroup2 = MenubarRadioGroup$1;
450
- var RadioItem2 = MenubarRadioItem$1;
451
- var ItemIndicator2 = MenubarItemIndicator;
452
- var Separator2 = MenubarSeparator$1;
453
- var Sub2 = MenubarSub$1;
454
- var SubTrigger2 = MenubarSubTrigger$1;
455
- var SubContent2 = MenubarSubContent$1;
456
-
457
- function Menubar({ className, ...props }) {
458
- return /*#__PURE__*/ React.createElement(Root3, {
459
- "data-slot": "menubar",
460
- className: cn("bg-background *:font-lato flex h-9 w-fit items-center gap-1 rounded-md border p-1 shadow-xs", className),
461
- ...props
462
- });
463
- }
464
- function MenubarMenu({ ...props }) {
465
- return /*#__PURE__*/ React.createElement(Menu, {
466
- "data-slot": "menubar-menu",
467
- ...props
468
- });
469
- }
470
- function MenubarGroup({ ...props }) {
471
- return /*#__PURE__*/ React.createElement(Group2, {
472
- "data-slot": "menubar-group",
473
- ...props
474
- });
475
- }
476
- function MenubarPortal({ ...props }) {
477
- return /*#__PURE__*/ React.createElement(Portal2, {
478
- "data-slot": "menubar-portal",
479
- ...props
480
- });
481
- }
482
- function MenubarRadioGroup({ ...props }) {
483
- return /*#__PURE__*/ React.createElement(RadioGroup2, {
484
- "data-slot": "menubar-radio-group",
485
- ...props
486
- });
487
- }
488
- function MenubarTrigger({ className, ...props }) {
489
- return /*#__PURE__*/ React.createElement(Trigger, {
490
- "data-slot": "menubar-trigger",
491
- className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground *:font-lato flex items-center rounded-sm px-2 py-1 text-sm font-medium outline-hidden select-none", className),
492
- ...props
493
- });
494
- }
495
- function MenubarContent({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }) {
496
- return /*#__PURE__*/ React.createElement(MenubarPortal, null, /*#__PURE__*/ React.createElement(Content2, {
497
- "data-slot": "menubar-content",
498
- align: align,
499
- alignOffset: alignOffset,
500
- sideOffset: sideOffset,
501
- className: cn("bg-popover text-popover-foreground data-[state=open]:animate-in 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 *:font-lato z-50 min-w-[12rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-md", className),
502
- ...props
503
- }));
504
- }
505
- function MenubarItem({ className, inset, variant = "default", ...props }) {
506
- return /*#__PURE__*/ React.createElement(Item3, {
507
- "data-slot": "menubar-item",
508
- "data-inset": inset,
509
- "data-variant": variant,
510
- className: cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground *:font-lato relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
511
- ...props
512
- });
513
- }
514
- function MenubarCheckboxItem({ className, children, checked, ...props }) {
515
- return /*#__PURE__*/ React.createElement(CheckboxItem2, {
516
- "data-slot": "menubar-checkbox-item",
517
- className: cn("focus:bg-accent focus:text-accent-foreground *:font-lato relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
518
- checked: checked,
519
- ...props
520
- }, /*#__PURE__*/ React.createElement("span", {
521
- className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center"
522
- }, /*#__PURE__*/ React.createElement(ItemIndicator2, null, /*#__PURE__*/ React.createElement(Check, {
523
- className: "size-4"
524
- }))), children);
525
- }
526
- function MenubarRadioItem({ className, children, ...props }) {
527
- return /*#__PURE__*/ React.createElement(RadioItem2, {
528
- "data-slot": "menubar-radio-item",
529
- className: cn("focus:bg-accent focus:text-accent-foreground *:font-lato relative flex cursor-default items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", className),
530
- ...props
531
- }, /*#__PURE__*/ React.createElement("span", {
532
- className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center"
533
- }, /*#__PURE__*/ React.createElement(ItemIndicator2, null, /*#__PURE__*/ React.createElement(Circle, {
534
- className: "size-2 fill-current"
535
- }))), children);
536
- }
537
- function MenubarLabel({ className, inset, ...props }) {
538
- return /*#__PURE__*/ React.createElement(Label2, {
539
- "data-slot": "menubar-label",
540
- "data-inset": inset,
541
- className: cn("*:font-lato px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
542
- ...props
543
- });
544
- }
545
- function MenubarSeparator({ className, ...props }) {
546
- return /*#__PURE__*/ React.createElement(Separator2, {
547
- "data-slot": "menubar-separator",
548
- className: cn("bg-border *:font-lato -mx-1 my-1 h-px", className),
549
- ...props
550
- });
551
- }
552
- function MenubarShortcut({ className, ...props }) {
553
- return /*#__PURE__*/ React.createElement("span", {
554
- "data-slot": "menubar-shortcut",
555
- className: cn("text-muted-foreground *:font-lato ml-auto text-xs tracking-widest", className),
556
- ...props
557
- });
558
- }
559
- function MenubarSub({ ...props }) {
560
- return /*#__PURE__*/ React.createElement(Sub2, {
561
- "data-slot": "menubar-sub",
562
- ...props
563
- });
564
- }
565
- function MenubarSubTrigger({ className, inset, children, ...props }) {
566
- return /*#__PURE__*/ React.createElement(SubTrigger2, {
567
- "data-slot": "menubar-sub-trigger",
568
- "data-inset": inset,
569
- className: cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground *:font-lato flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[inset]:pl-8", className),
570
- ...props
571
- }, children, /*#__PURE__*/ React.createElement(ChevronRight, {
572
- className: "ml-auto h-4 w-4"
573
- }));
574
- }
575
- function MenubarSubContent({ className, ...props }) {
576
- return /*#__PURE__*/ React.createElement(SubContent2, {
577
- "data-slot": "menubar-sub-content",
578
- className: cn("bg-popover text-popover-foreground 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 *:font-lato z-50 min-w-[8rem] origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", className),
579
- ...props
580
- });
581
- }
582
-
583
- export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger };
17
+ import '../chunks/index-xsn786mg.mjs';
18
+ import '../chunks/index-CVlrcY4U.mjs';
19
+ import '../chunks/tslib.es6-BIgLG7bA.mjs';
20
+ import '../chunks/index-GxLl6H4O.mjs';
21
+ import '../chunks/index-MMJu4clW.mjs';
22
+ import '../chunks/index-BLX8fFuX.mjs';
23
+ import '../chunks/index-D2ZM3eSk.mjs';
24
+ import '../chunks/index-LzZONhgk.mjs';
25
+ import '../chunks/index-BTbETlk3.mjs';
26
+ import '../chunks/utils-Do8DRzMk.mjs';
27
+ import '../chunks/bundle-mjs-Bsj-DC7F.mjs';
28
+ import '../chunks/check-C7sYxkuc.mjs';
29
+ import '../chunks/chevron-right-DzD-SgEG.mjs';
584
30
  //# sourceMappingURL=index.mjs.map