@leavepulse/ui 0.71.1 → 0.72.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/dist/assets/{LpCommandPalette-DgPZX0us.css → LpCommandPalette-Rtbg669l.css} +19 -19
  2. package/dist/assets/{LpNumberFlow-rZkwQwlU.css → LpNumberFlow-Chp9pEDe.css} +8 -0
  3. package/dist/assets/LpTabs-CDchzoRL.css +18 -0
  4. package/dist/chunks/{ContextMenuItems-eS7qx9gD.js → ContextMenuItems-BXumicbh.js} +1 -1
  5. package/dist/chunks/{DropzoneLinkField-DkFhdfEJ.js → DropzoneLinkField-D2Rnkcys.js} +2 -2
  6. package/dist/chunks/{FieldWrapper-YzbvvC3M.js → FieldWrapper-DnA1rxZ8.js} +1 -1
  7. package/dist/chunks/{LayoutCanvas-Ba4A9QC5.js → LayoutCanvas-CNOAUk7D.js} +1 -1
  8. package/dist/chunks/{LayoutNode-CTTTLMDM.js → LayoutNode-DF5BMN0J.js} +1 -1
  9. package/dist/chunks/{LpActionBar-B7anGlkI.js → LpActionBar-DfiBL1dE.js} +3 -3
  10. package/dist/chunks/{LpAddressInput-CD0bzrt-.js → LpAddressInput-B1bB3F6M.js} +7 -7
  11. package/dist/chunks/{LpAlert-BHi7ARqu.js → LpAlert-CpRF9eYr.js} +3 -3
  12. package/dist/chunks/{LpAppShell-1RmBp6xQ.js → LpAppShell-D8Q0Jv9d.js} +68 -18
  13. package/dist/chunks/{LpAutocomplete-DDqe2M5g.js → LpAutocomplete-DOu7FN5P.js} +2 -2
  14. package/dist/chunks/{LpAvatar-DqfKCIdr.js → LpAvatar-Cg6Az3wz.js} +1 -1
  15. package/dist/chunks/{LpBadge-C8fKEmTF.js → LpBadge-vtCpsDmv.js} +3 -3
  16. package/dist/chunks/LpBottomNav-VXJf0cKc.js +89 -0
  17. package/dist/chunks/{LpBreadcrumbs-DhcoStFa.js → LpBreadcrumbs-BdzjQcql.js} +3 -3
  18. package/dist/chunks/{LpButton-BQDAFXBd.js → LpButton-Dk7eT4ro.js} +1 -1
  19. package/dist/chunks/{LpCalendar-NmrA47J9.js → LpCalendar-CuoWks-0.js} +1 -1
  20. package/dist/chunks/{LpCard-CqKLnEhl.js → LpCard-Ce3rw8zm.js} +1 -1
  21. package/dist/chunks/{LpCheckbox-BoOuLnGB.js → LpCheckbox-DLX4amba.js} +2 -2
  22. package/dist/chunks/{LpCodeBlock-Czu-fq1M.js → LpCodeBlock-j0W5bpmF.js} +2 -2
  23. package/dist/chunks/{LpCodeDisplay-BK2FHbtM.js → LpCodeDisplay-COdiv4xu.js} +6 -6
  24. package/dist/chunks/{LpColorPicker-Ee1DZiRd.js → LpColorPicker-1y1QJHZR.js} +56 -28
  25. package/dist/chunks/{LpCommandScope-ubtWDMa0.js → LpCommandScope-BlKcgBnK.js} +1 -1
  26. package/dist/chunks/{LpConfirmDialog-i15pulMT.js → LpConfirmDialog-w1ni5nxh.js} +3 -3
  27. package/dist/chunks/{LpConfirmHost-D0oGavtd.js → LpConfirmHost-Br_-Gn-6.js} +1 -1
  28. package/dist/chunks/{LpContextMenu-DXpFJjlO.js → LpContextMenu-rx2tCjwk.js} +2 -2
  29. package/dist/chunks/{LpCopyButton-Dmq7DmFw.js → LpCopyButton-DaD1KCn6.js} +2 -2
  30. package/dist/chunks/{LpCountdown-DTdMF8DL.js → LpCountdown-Cgy0mVEq.js} +3 -3
  31. package/dist/chunks/{LpDataList-CFPtSsBB.js → LpDataList-CkcGFJgv.js} +3 -3
  32. package/dist/chunks/{LpDatePicker-cC9K-Pk8.js → LpDatePicker-CA0QTfBC.js} +4 -4
  33. package/dist/chunks/{LpDateRangePicker-BVQKPbvo.js → LpDateRangePicker-u3J51xXk.js} +2 -2
  34. package/dist/chunks/{LpDisclosure-hRnX3FWL.js → LpDisclosure-Cpa7Hc5T.js} +1 -1
  35. package/dist/chunks/{LpDrawer-u4rxnuR-.js → LpDrawer-RRamxbLV.js} +1 -1
  36. package/dist/chunks/{LpDropdownMenu-BgZ0Z_Im.js → LpDropdownMenu-Dl7Z4ZhS.js} +2 -2
  37. package/dist/chunks/{LpEditable-CjxuOVh_.js → LpEditable-D3PvD6Zm.js} +5 -5
  38. package/dist/chunks/{LpEmptyState-CKFTtQgJ.js → LpEmptyState-EQHiRYhG.js} +7 -3
  39. package/dist/chunks/{LpFieldNotice-CPI8EwtU.js → LpFieldNotice-CzQ2_5rQ.js} +1 -1
  40. package/dist/chunks/{LpFileTree-BH0gNlSJ.js → LpFileTree-D7KTaJiM.js} +2 -2
  41. package/dist/chunks/{LpFileTreeNode-gPVB1oXM.js → LpFileTreeNode-14GVqQTd.js} +5 -5
  42. package/dist/chunks/{LpFormField-gRASfyj2.js → LpFormField-MSQhRCTz.js} +2 -2
  43. package/dist/chunks/{LpGauge-BdjPGnqw.js → LpGauge-BO1PYYqD.js} +2 -2
  44. package/dist/chunks/{LpHintLayer-C2asBIfs.js → LpHintLayer-CmYm37z7.js} +2 -2
  45. package/dist/chunks/{LpHints-CNZQ76JV.js → LpHints-iLIRUkCj.js} +3 -3
  46. package/dist/chunks/{LpIcon-DkP-9mzK.js → LpIcon--5WSb3jJ.js} +1 -1
  47. package/dist/chunks/{LpInfraNode-yTh4-5qa.js → LpInfraNode-BT0VQrOa.js} +2 -2
  48. package/dist/chunks/{LpInput-2H-5ILOB.js → LpInput-1eNvtzXs.js} +2 -2
  49. package/dist/chunks/{LpLightbox-lAt5uIfx.js → LpLightbox-DWw6OSA4.js} +3 -3
  50. package/dist/chunks/{LpLoader-DjJEX8hL.js → LpLoader-B82_CcV0.js} +1 -1
  51. package/dist/chunks/{LpLogViewer-x78YfhJf.js → LpLogViewer-pzanZASC.js} +6 -6
  52. package/dist/chunks/{LpMapPicker-Dp5RSCi9.js → LpMapPicker-DNIUvF6V.js} +2 -2
  53. package/dist/chunks/{LpMediaGallery-D92oJfY_.js → LpMediaGallery-Dx8xzg5N.js} +3 -3
  54. package/dist/chunks/{LpModal-CpH0bNo7.js → LpModal-BnjZ2iem.js} +1 -1
  55. package/dist/chunks/{LpModalNav-BH4ANQGJ.js → LpModalNav-Cu04W1pV.js} +4 -4
  56. package/dist/chunks/{LpNotificationBell-BdUQqZhs.js → LpNotificationBell-PSQqFqEv.js} +8 -8
  57. package/dist/chunks/{LpNumberField-DZY3Z670.js → LpNumberField-e0IBkWU1.js} +1 -1
  58. package/dist/chunks/{LpNumberFlow-5khYxsfX.js → LpNumberFlow-CcxEGUy0.js} +10 -7
  59. package/dist/chunks/{LpPagination-DbeACavM.js → LpPagination-BIIiYHXR.js} +1 -1
  60. package/dist/chunks/{LpPaletteTheme-CqWNRwHE.js → LpPaletteTheme-D05ywM1W.js} +8 -6
  61. package/dist/chunks/{LpPasswordInput-BzAZsf5V.js → LpPasswordInput-vdcw-koG.js} +2 -2
  62. package/dist/chunks/{LpPhoneInput-BMpd-0QR.js → LpPhoneInput-CETEp5W7.js} +2 -2
  63. package/dist/chunks/{LpPie-DdFSTbGE.js → LpPie-BlWDxCtG.js} +6 -6
  64. package/dist/chunks/{LpPipeline-zjEM1Lwc.js → LpPipeline-BXjoxkq_.js} +4 -4
  65. package/dist/chunks/{LpProgress-BX33EKkN.js → LpProgress-rOlyafqp.js} +1 -1
  66. package/dist/chunks/{LpQuota-DqNv1yjs.js → LpQuota-B12yijdB.js} +3 -3
  67. package/dist/chunks/{LpRadioGroup-CsXeV9Ct.js → LpRadioGroup-ggaPL92T.js} +1 -1
  68. package/dist/chunks/{LpRangeCalendar-l-0nSFmY.js → LpRangeCalendar-CYYUYqJ7.js} +1 -1
  69. package/dist/chunks/{LpRelativeTime-UM8EkfrN.js → LpRelativeTime-DwgCb5-8.js} +1 -1
  70. package/dist/chunks/{LpRepeater-OvzByE5L.js → LpRepeater-fliVBcN7.js} +3 -3
  71. package/dist/chunks/LpRollingText-B54Pje7P.js +86 -0
  72. package/dist/chunks/{LpScramble-TDO5Kdou.js → LpScramble-Cw-af0Yh.js} +1 -1
  73. package/dist/chunks/{LpSecretField-DwQiPOko.js → LpSecretField-D_IMxEGW.js} +7 -7
  74. package/dist/chunks/{LpSection-DcQsieHG.js → LpSection-DFK_uoJE.js} +1 -1
  75. package/dist/chunks/{LpSegmented-D2VST0o3.js → LpSegmented-CeACsMMA.js} +4 -2
  76. package/dist/chunks/{LpSelect-DYX2-u5A.js → LpSelect-Cxq4yBGd.js} +7 -7
  77. package/dist/chunks/LpShift-BAp8lGoa.js +160 -0
  78. package/dist/chunks/LpSidebar-BftYsk5d.js +494 -0
  79. package/dist/chunks/LpSidebarNav-BzNWMZfc.js +357 -0
  80. package/dist/chunks/LpSidebarRow-BIReMT1f.js +302 -0
  81. package/dist/chunks/{LpStat-DIsQfbeD.js → LpStat-BFCM6fUn.js} +9 -7
  82. package/dist/chunks/{LpStatus-BQU1TUsv.js → LpStatus-BWTLVPVh.js} +3 -3
  83. package/dist/chunks/{LpStepMark-CXa7DJy_.js → LpStepMark-DkdkebLC.js} +3 -3
  84. package/dist/chunks/{LpStepper-C9RM_yTG.js → LpStepper-BgqjKrqg.js} +1 -1
  85. package/dist/chunks/{LpSwap-DzE6M3Mg.js → LpSwap-B5YOXgtx.js} +1 -1
  86. package/dist/chunks/{LpSwitch-bGZxUDSx.js → LpSwitch-DyrRes7s.js} +1 -1
  87. package/dist/chunks/LpTabFace-D6BMCbAP.js +77 -0
  88. package/dist/chunks/{LpTableFilter-CTZMqFDU.js → LpTableFilter-Dkzamzkl.js} +3 -3
  89. package/dist/chunks/{LpTagsInput-DrjmrOge.js → LpTagsInput-DAZNNehI.js} +5 -5
  90. package/dist/chunks/{LpTextarea-BbYqmG1S.js → LpTextarea-DbmVPj2X.js} +32 -7
  91. package/dist/chunks/{useTheme-BOV_-AiY.js → LpThemeProvider-8MG6yqU9.js} +66 -1
  92. package/dist/chunks/{LpThemeStudio-B2nPaG-h.js → LpThemeStudio-DWtG6OZZ.js} +140 -106
  93. package/dist/chunks/LpThemeStudioSection-B7bt8Iyg.js +32 -0
  94. package/dist/chunks/{LpThemeSwitcher-C0A5sg_E.js → LpThemeSwitcher-Dcx-VkSk.js} +9 -8
  95. package/dist/chunks/{LpTimeField-DQ8WvPr2.js → LpTimeField-BawSVsmt.js} +1 -1
  96. package/dist/chunks/{LpToaster-BTTl_wuy.js → LpToaster-50hp_B5O.js} +2 -2
  97. package/dist/chunks/{LpTopologyCanvas-B0wEvAoq.js → LpTopologyCanvas-CnUh8uzS.js} +43 -13
  98. package/dist/chunks/{LpTour-BgCfNlaW.js → LpTour-DC3LTlxg.js} +1 -1
  99. package/dist/chunks/{LpTruncate-TcqfkyJM.js → LpTruncate-Ced4gquB.js} +1 -1
  100. package/dist/chunks/{LpUptimeBar-DRadGq4Y.js → LpUptimeBar-CuB0LX8K.js} +4 -4
  101. package/dist/chunks/{MenuTitle-Dab3EGOp.js → MenuTitle-BmCNNTKH.js} +1 -1
  102. package/dist/chunks/{OptionContent-DPzNsybd.js → OptionContent-22UT8zLn.js} +1 -1
  103. package/dist/chunks/{PickerField-DwLw7j0L.js → PickerField-Bfh8id3d.js} +2 -2
  104. package/dist/chunks/{RevealToggle-BVFM_FAU.js → RevealToggle-B0ITuIX-.js} +2 -2
  105. package/dist/chunks/{TourCard--2IfgnUU.js → TourCard-CBkj1GYi.js} +5 -5
  106. package/dist/chunks/{icons-CLu1iR1j.js → icons-DMITlfw5.js} +1 -1
  107. package/dist/chunks/{palette-BiY7yQZL.js → palette-Cvxl_1tM.js} +1 -1
  108. package/dist/component-names.d.ts +1 -1
  109. package/dist/components/ContextMenuItems.vue.js +1 -1
  110. package/dist/components/DropzoneLinkField.vue.js +1 -1
  111. package/dist/components/FieldWrapper.vue.js +1 -1
  112. package/dist/components/LayoutCanvas.vue.js +1 -1
  113. package/dist/components/LayoutNode.vue.js +1 -1
  114. package/dist/components/LpActionBar.vue.js +1 -1
  115. package/dist/components/LpAddressInput.vue.js +1 -1
  116. package/dist/components/LpAlert.vue.js +1 -1
  117. package/dist/components/LpAppShell.vue.d.ts +67 -2
  118. package/dist/components/LpAppShell.vue.js +1 -1
  119. package/dist/components/LpAutocomplete.vue.js +1 -1
  120. package/dist/components/LpAvatar.vue.js +1 -1
  121. package/dist/components/LpBadge.vue.js +1 -1
  122. package/dist/components/LpBottomNav.vue.d.ts +28 -0
  123. package/dist/components/LpBottomNav.vue.js +4 -0
  124. package/dist/components/LpBreadcrumbs.vue.js +1 -1
  125. package/dist/components/LpButton.vue.js +1 -1
  126. package/dist/components/LpCalendar.vue.js +1 -1
  127. package/dist/components/LpCard.vue.js +1 -1
  128. package/dist/components/LpChart.vue.js +26 -8
  129. package/dist/components/LpCheckbox.vue.js +1 -1
  130. package/dist/components/LpCodeBlock.vue.js +1 -1
  131. package/dist/components/LpCodeDisplay.vue.js +1 -1
  132. package/dist/components/LpColorPicker.vue.d.ts +15 -2
  133. package/dist/components/LpColorPicker.vue.js +1 -1
  134. package/dist/components/LpCommandPalette.vue.js +47 -26
  135. package/dist/components/LpCommandScope.vue.js +1 -1
  136. package/dist/components/LpConfirmDialog.vue.js +1 -1
  137. package/dist/components/LpConfirmHost.vue.js +1 -1
  138. package/dist/components/LpContextMenu.vue.js +1 -1
  139. package/dist/components/LpCopyButton.vue.js +1 -1
  140. package/dist/components/LpCountdown.vue.js +1 -1
  141. package/dist/components/LpDataList.vue.js +1 -1
  142. package/dist/components/LpDatePicker.vue.js +1 -1
  143. package/dist/components/LpDateRangePicker.vue.js +1 -1
  144. package/dist/components/LpDisclosure.vue.js +1 -1
  145. package/dist/components/LpDock.vue.js +1 -1
  146. package/dist/components/LpDrawer.vue.js +1 -1
  147. package/dist/components/LpDropdownMenu.vue.js +1 -1
  148. package/dist/components/LpDropzone.vue.js +2 -2
  149. package/dist/components/LpEditable.vue.js +1 -1
  150. package/dist/components/LpEmptyState.vue.d.ts +2 -0
  151. package/dist/components/LpEmptyState.vue.js +1 -1
  152. package/dist/components/LpFieldNotice.vue.js +1 -1
  153. package/dist/components/LpFileTree.vue.js +1 -1
  154. package/dist/components/LpFileTreeNode.vue.js +1 -1
  155. package/dist/components/LpFormField.vue.js +1 -1
  156. package/dist/components/LpGauge.vue.js +1 -1
  157. package/dist/components/LpHintLayer.vue.js +1 -1
  158. package/dist/components/LpHints.vue.js +1 -1
  159. package/dist/components/LpIcon.vue.js +1 -1
  160. package/dist/components/LpImageEditor.vue.js +2 -2
  161. package/dist/components/LpInfraNode.vue.js +1 -1
  162. package/dist/components/LpInput.vue.js +1 -1
  163. package/dist/components/LpLightbox.vue.js +1 -1
  164. package/dist/components/LpLoader.vue.js +1 -1
  165. package/dist/components/LpLogViewer.vue.d.ts +1 -1
  166. package/dist/components/LpLogViewer.vue.js +1 -1
  167. package/dist/components/LpMapPicker.vue.js +1 -1
  168. package/dist/components/LpMediaGallery.vue.js +1 -1
  169. package/dist/components/LpModal.vue.js +1 -1
  170. package/dist/components/LpModalNav.vue.js +1 -1
  171. package/dist/components/LpNotificationBell.vue.js +1 -1
  172. package/dist/components/LpNumberField.vue.js +1 -1
  173. package/dist/components/LpNumberFlow.vue.js +1 -1
  174. package/dist/components/LpPagination.vue.js +1 -1
  175. package/dist/components/LpPaletteFacts.vue.js +2 -2
  176. package/dist/components/LpPaletteHeader.vue.js +2 -2
  177. package/dist/components/LpPaletteStats.vue.js +2 -2
  178. package/dist/components/LpPaletteTheme.vue.d.ts +2 -0
  179. package/dist/components/LpPaletteTheme.vue.js +1 -1
  180. package/dist/components/LpPasswordInput.vue.js +1 -1
  181. package/dist/components/LpPhoneInput.vue.js +1 -1
  182. package/dist/components/LpPie.vue.js +1 -1
  183. package/dist/components/LpPipeline.vue.js +1 -1
  184. package/dist/components/LpProgress.vue.js +1 -1
  185. package/dist/components/LpQuota.vue.js +1 -1
  186. package/dist/components/LpRadioGroup.vue.js +1 -1
  187. package/dist/components/LpRangeCalendar.vue.js +1 -1
  188. package/dist/components/LpRelativeTime.vue.js +1 -1
  189. package/dist/components/LpRepeater.vue.js +1 -1
  190. package/dist/components/LpRollingText.vue.d.ts +2 -2
  191. package/dist/components/LpRollingText.vue.js +1 -1
  192. package/dist/components/LpScramble.vue.js +1 -1
  193. package/dist/components/LpSecretField.vue.js +1 -1
  194. package/dist/components/LpSection.vue.js +1 -1
  195. package/dist/components/LpSegmented.vue.js +1 -1
  196. package/dist/components/LpSelect.vue.js +1 -1
  197. package/dist/components/LpShift.vue.d.ts +20 -0
  198. package/dist/components/LpShift.vue.js +1 -1
  199. package/dist/components/LpShortcutsDialog.vue.js +1 -1
  200. package/dist/components/LpSidebar.vue.d.ts +74 -23
  201. package/dist/components/LpSidebar.vue.js +1 -1
  202. package/dist/components/LpSidebarNav.vue.d.ts +30 -2
  203. package/dist/components/LpSidebarNav.vue.js +1 -1
  204. package/dist/components/LpSidebarRow.vue.d.ts +49 -0
  205. package/dist/components/LpSidebarRow.vue.js +4 -0
  206. package/dist/components/LpStat.vue.d.ts +11 -0
  207. package/dist/components/LpStat.vue.js +1 -1
  208. package/dist/components/LpStatus.vue.js +1 -1
  209. package/dist/components/LpStepMark.vue.js +1 -1
  210. package/dist/components/LpStepper.vue.js +1 -1
  211. package/dist/components/LpSwap.vue.js +1 -1
  212. package/dist/components/LpSwitch.vue.js +1 -1
  213. package/dist/components/LpTabFace.vue.d.ts +14 -0
  214. package/dist/components/LpTabFace.vue.js +4 -0
  215. package/dist/components/LpTable.vue.js +11 -11
  216. package/dist/components/LpTableFilter.vue.js +1 -1
  217. package/dist/components/LpTabs.vue.d.ts +12 -4
  218. package/dist/components/LpTabs.vue.js +22 -74
  219. package/dist/components/LpTagsInput.vue.js +1 -1
  220. package/dist/components/LpTextarea.vue.d.ts +19 -1
  221. package/dist/components/LpTextarea.vue.js +1 -1
  222. package/dist/components/LpThemeProvider.vue.js +1 -1
  223. package/dist/components/LpThemeStudio.vue.d.ts +2 -2
  224. package/dist/components/LpThemeStudio.vue.js +1 -1
  225. package/dist/components/LpThemeStudioSection.vue.d.ts +4 -1
  226. package/dist/components/LpThemeStudioSection.vue.js +1 -1
  227. package/dist/components/LpThemeSwitcher.vue.js +1 -1
  228. package/dist/components/LpTimeField.vue.js +1 -1
  229. package/dist/components/LpToaster.vue.js +1 -1
  230. package/dist/components/LpTopologyCanvas.vue.d.ts +3 -1
  231. package/dist/components/LpTopologyCanvas.vue.js +1 -1
  232. package/dist/components/LpTour.vue.js +1 -1
  233. package/dist/components/LpTruncate.vue.js +1 -1
  234. package/dist/components/LpUptimeBar.vue.js +1 -1
  235. package/dist/components/MenuTitle.vue.js +1 -1
  236. package/dist/components/OptionContent.vue.js +1 -1
  237. package/dist/components/PickerField.vue.js +1 -1
  238. package/dist/components/RevealToggle.vue.js +1 -1
  239. package/dist/components/TourCard.vue.js +1 -1
  240. package/dist/components/chart.d.ts +14 -0
  241. package/dist/components/chart.js +13 -0
  242. package/dist/components/format.d.ts +10 -3
  243. package/dist/components/format.js +14 -2
  244. package/dist/components/menuWhen.js +1 -1
  245. package/dist/components/rolling.d.ts +5 -0
  246. package/dist/components/rolling.js +23 -0
  247. package/dist/components/sidebar.d.ts +33 -0
  248. package/dist/components/tabs.d.ts +3 -0
  249. package/dist/components/tabs.js +6 -0
  250. package/dist/composables/usePaletteCommands.js +1 -0
  251. package/dist/composables/useReveal.js +1 -22
  252. package/dist/icons-all.js +1 -1
  253. package/dist/index.d.ts +2 -1
  254. package/dist/index.js +156 -154
  255. package/dist/theme/palette.d.ts +3 -0
  256. package/package.json +1 -1
  257. package/src/component-names.ts +1 -0
  258. package/src/components/LpAppShell.vue +75 -7
  259. package/src/components/LpBottomNav.vue +84 -0
  260. package/src/components/LpChart.vue +23 -3
  261. package/src/components/LpColorPicker.vue +32 -1
  262. package/src/components/LpCommandPalette.vue +23 -5
  263. package/src/components/LpEmptyState.vue +4 -1
  264. package/src/components/LpNumberFlow.vue +23 -9
  265. package/src/components/LpPaletteTheme.vue +3 -3
  266. package/src/components/LpRollingText.vue +27 -2
  267. package/src/components/LpSegmented.vue +3 -1
  268. package/src/components/LpSelect.vue +5 -4
  269. package/src/components/LpShift.vue +174 -2
  270. package/src/components/LpSidebar.vue +304 -18
  271. package/src/components/LpSidebarNav.vue +200 -70
  272. package/src/components/LpSidebarRow.vue +238 -0
  273. package/src/components/LpStat.vue +12 -4
  274. package/src/components/LpTabFace.vue +52 -0
  275. package/src/components/LpTabs.vue +15 -42
  276. package/src/components/LpTextarea.vue +34 -4
  277. package/src/components/LpThemeStudio.vue +92 -56
  278. package/src/components/LpThemeStudioSection.vue +15 -7
  279. package/src/components/LpThemeSwitcher.vue +4 -1
  280. package/src/components/LpTopologyCanvas.vue +35 -4
  281. package/src/components/chart.ts +26 -0
  282. package/src/components/format.ts +31 -5
  283. package/src/components/rolling.ts +28 -0
  284. package/src/components/sidebar.ts +33 -0
  285. package/src/components/tabs.ts +9 -0
  286. package/src/composables/usePaletteCommands.ts +3 -0
  287. package/src/composables/useReveal.ts +7 -30
  288. package/src/index.ts +2 -1
  289. package/src/kit-icons.ts +1 -1
  290. package/src/theme/palette.ts +4 -2
  291. package/dist/assets/LpTabs-CO3EcsNV.css +0 -18
  292. package/dist/chunks/LpRollingText-DiL717LK.js +0 -51
  293. package/dist/chunks/LpShift-DXNsauQZ.js +0 -40
  294. package/dist/chunks/LpSidebar-D44peKq2.js +0 -256
  295. package/dist/chunks/LpSidebarNav--VwkXO_a.js +0 -211
  296. package/dist/chunks/LpThemeProvider-DcbfOxsU.js +0 -69
  297. package/dist/chunks/LpThemeStudioSection-BwhqYDLf.js +0 -20
@@ -0,0 +1,357 @@
1
+ import { defineComponent, computed, ref, openBlock, createBlock, mergeProps, unref, withCtx, createElementBlock, createElementVNode, createCommentVNode, Fragment, renderList, toDisplayString, createVNode, normalizeClass, createTextVNode, createSlots, renderSlot } from "vue";
2
+ import { CollapsibleRoot, CollapsibleTrigger, CollapsibleContent } from "reka-ui";
3
+ import { _ as _sfc_main$5 } from "./LpBadge-vtCpsDmv.js";
4
+ import "../components/commandSearch.js";
5
+ import "../composables/useHints.js";
6
+ import "../composables/useHintSystem.js";
7
+ import { _ as _sfc_main$4 } from "./LpIcon--5WSb3jJ.js";
8
+ import "../composables/useHotkeys.js";
9
+ import '../assets/MenuShortcut-Cyub0frr.css';import '../assets/LpKeys-BxRhfQda.css';/* empty css */
10
+ /* empty css */
11
+ import { _ as _sfc_main$2 } from "./LpScrollArea-Hz3-JWUG.js";
12
+ import { _ as _sfc_main$1 } from "./LpSkeleton-BB6XIV-w.js";
13
+ import { _ as _sfc_main$3 } from "./LpSidebarRow-BIReMT1f.js";
14
+ import { useMergedAttrs } from "../composables/useMergedClass.js";
15
+ const _hoisted_1 = {
16
+ key: 0,
17
+ class: "flex items-center gap-3 px-1"
18
+ };
19
+ const _hoisted_2 = { class: "space-y-1" };
20
+ const _hoisted_3 = {
21
+ key: 0,
22
+ class: "flex flex-col gap-0.5"
23
+ };
24
+ const _hoisted_4 = {
25
+ key: 0,
26
+ class: "px-2 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted"
27
+ };
28
+ const _hoisted_5 = {
29
+ key: 0,
30
+ class: "flex flex-col gap-0.5"
31
+ };
32
+ const _hoisted_6 = {
33
+ key: 0,
34
+ class: "mx-3 mb-1 border-t border-line"
35
+ };
36
+ const _hoisted_7 = { class: "min-w-0 flex-1 truncate text-left" };
37
+ const _hoisted_8 = {
38
+ key: 2,
39
+ class: "px-2 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted"
40
+ };
41
+ const __default__ = { inheritAttrs: false };
42
+ const _sfc_main = /* @__PURE__ */ defineComponent({
43
+ ...__default__,
44
+ __name: "LpSidebarNav",
45
+ props: {
46
+ groups: {},
47
+ pillId: {},
48
+ itemActive: {},
49
+ loading: { type: Boolean },
50
+ skeletonRows: { default: 6 },
51
+ skeletonHeader: { type: Boolean, default: true },
52
+ collapsedKeys: { default: () => [] },
53
+ hoverFollow: { type: Boolean, default: false },
54
+ compact: { type: Boolean },
55
+ pinnable: { type: Boolean },
56
+ pinned: { default: () => [] },
57
+ previewDelay: { default: 900 },
58
+ labels: {}
59
+ },
60
+ emits: ["activate", "toggle-section", "toggle-pin"],
61
+ setup(__props, { emit: __emit }) {
62
+ const props = __props;
63
+ const emit = __emit;
64
+ function sectionKey(section) {
65
+ return section.key ?? section.title ?? "";
66
+ }
67
+ const foldedKeys = computed(() => {
68
+ const holdsActive = new Set(
69
+ props.groups.filter((g) => g.items.some((i) => props.itemActive(i) || onPath(i))).map(sectionKey)
70
+ );
71
+ return new Set(
72
+ props.collapsedKeys.filter((k) => k && !holdsActive.has(k))
73
+ );
74
+ });
75
+ function isOpen(section) {
76
+ return props.compact || !foldedKeys.value.has(sectionKey(section));
77
+ }
78
+ const hovered = ref(null);
79
+ function hover(item) {
80
+ if (props.hoverFollow && !item.disabled) hovered.value = item.id;
81
+ }
82
+ function pillUnder(item) {
83
+ return hovered.value ? hovered.value === item.id : props.itemActive(item);
84
+ }
85
+ function onPath(item) {
86
+ return !!item.children?.some((c) => props.itemActive(c));
87
+ }
88
+ const opened = ref(/* @__PURE__ */ new Set());
89
+ function expanded(item) {
90
+ return onPath(item) || opened.value.has(item.id);
91
+ }
92
+ function toggle(item) {
93
+ const next = new Set(opened.value);
94
+ if (next.has(item.id)) next.delete(item.id);
95
+ else next.add(item.id);
96
+ opened.value = next;
97
+ }
98
+ const pinnedIds = computed(() => new Set(props.pinned.map((i) => i.id)));
99
+ function menuOf(item) {
100
+ const own = item.menu ?? [];
101
+ if (!props.pinnable) return own;
102
+ const pinned = pinnedIds.value.has(item.id);
103
+ return [
104
+ ...own,
105
+ {
106
+ label: pinned ? props.labels.unpin : props.labels.pin,
107
+ icon: pinned ? "lucide:pin-off" : "lucide:pin",
108
+ separatorBefore: own.length > 0,
109
+ onSelect: () => emit("toggle-pin", item.id)
110
+ }
111
+ ];
112
+ }
113
+ let typed = "";
114
+ let typedAt = 0;
115
+ function onKey(event) {
116
+ const box = event.currentTarget;
117
+ const list = [...box.querySelectorAll("[data-lp-nav-row]")].filter((r) => r.offsetParent !== null);
118
+ const at = list.indexOf(document.activeElement);
119
+ if (at < 0) return;
120
+ const row = list[at];
121
+ const go = (i) => {
122
+ event.preventDefault();
123
+ list[(i + list.length) % list.length]?.focus();
124
+ };
125
+ switch (event.key) {
126
+ case "ArrowDown":
127
+ return go(at + 1);
128
+ case "ArrowUp":
129
+ return go(at - 1);
130
+ case "Home":
131
+ return go(0);
132
+ case "End":
133
+ return go(list.length - 1);
134
+ case "ArrowRight":
135
+ case "ArrowLeft": {
136
+ const open = event.key === "ArrowRight";
137
+ const toggle2 = row.hasAttribute("aria-expanded") ? row : row.parentElement?.querySelector(":scope > button[aria-expanded]");
138
+ if (toggle2 && toggle2.getAttribute("aria-expanded") === "true" !== open) {
139
+ event.preventDefault();
140
+ toggle2.click();
141
+ return;
142
+ }
143
+ if (!open && row.dataset.lpNavNested !== void 0) {
144
+ for (let i = at - 1; i >= 0; i--) if (list[i].dataset.lpNavNested === void 0) return go(i);
145
+ }
146
+ return;
147
+ }
148
+ }
149
+ if (event.key.length !== 1 || event.ctrlKey || event.metaKey || event.altKey) return;
150
+ const now = Date.now();
151
+ typed = now - typedAt > 700 ? event.key : typed + event.key;
152
+ typedAt = now;
153
+ const needle = typed.toLocaleLowerCase();
154
+ for (let k = 1; k <= list.length; k++) {
155
+ const next = list[(at + k) % list.length];
156
+ if ((next.textContent ?? "").trim().toLocaleLowerCase().startsWith(needle)) return go(at + k);
157
+ }
158
+ }
159
+ const SECTION = "lp-section:";
160
+ function sectionItem(section) {
161
+ const icon = section.icon ?? section.items.find((i) => i.icon)?.icon;
162
+ return { id: `${SECTION}${sectionKey(section)}`, label: section.title ?? "", icon, children: section.items };
163
+ }
164
+ function activate(item) {
165
+ if (item.id.startsWith(SECTION)) return;
166
+ if (item.children?.length && !item.to && !item.href) toggle(item);
167
+ emit("activate", item);
168
+ }
169
+ const { class: rootClass, attrs: rest } = useMergedAttrs(
170
+ "flex min-h-0 flex-1 flex-col gap-4"
171
+ );
172
+ return (_ctx, _cache) => {
173
+ return __props.loading ? (openBlock(), createBlock(_sfc_main$1, mergeProps({
174
+ key: 0,
175
+ class: unref(rootClass)
176
+ }, unref(rest)), {
177
+ default: withCtx(() => [
178
+ __props.skeletonHeader ? (openBlock(), createElementBlock("div", _hoisted_1, [..._cache[1] || (_cache[1] = [
179
+ createElementVNode("div", { class: "lp-skeleton-item size-10 shrink-0 rounded-pill bg-surface-soft" }, null, -1),
180
+ createElementVNode("div", { class: "flex-1 space-y-2" }, [
181
+ createElementVNode("div", { class: "lp-skeleton-item h-3.5 w-24 rounded-small bg-surface-soft" }),
182
+ createElementVNode("div", { class: "lp-skeleton-item h-3 w-16 rounded-small bg-surface-soft/60" })
183
+ ], -1)
184
+ ])])) : createCommentVNode("", true),
185
+ createElementVNode("div", _hoisted_2, [
186
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.skeletonRows, (n) => {
187
+ return openBlock(), createElementBlock("div", {
188
+ key: n,
189
+ class: "lp-skeleton-item h-9 rounded-control bg-surface-soft"
190
+ });
191
+ }), 128))
192
+ ])
193
+ ]),
194
+ _: 1
195
+ }, 16, ["class"])) : (openBlock(), createBlock(_sfc_main$2, {
196
+ key: 1,
197
+ class: "min-h-0 flex-1",
198
+ "content-class": __props.compact ? "flex min-h-full flex-col gap-1" : "flex min-h-full flex-col gap-4",
199
+ onPointerleave: _cache[0] || (_cache[0] = ($event) => hovered.value = null)
200
+ }, {
201
+ default: withCtx(() => [
202
+ createElementVNode("div", {
203
+ class: "contents",
204
+ onKeydown: onKey
205
+ }, [
206
+ __props.pinned.length ? (openBlock(), createElementBlock("div", _hoisted_3, [
207
+ !__props.compact ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(__props.labels.pinned), 1)) : createCommentVNode("", true),
208
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.pinned, (item) => {
209
+ return openBlock(), createBlock(_sfc_main$3, {
210
+ key: `pinned:${item.id}`,
211
+ item,
212
+ active: __props.itemActive(item),
213
+ pill: false,
214
+ "pill-id": __props.pillId,
215
+ compact: __props.compact,
216
+ menu: menuOf(item),
217
+ "preview-delay": __props.previewDelay,
218
+ "item-active": __props.itemActive,
219
+ onActivate: activate
220
+ }, null, 8, ["item", "active", "pill-id", "compact", "menu", "preview-delay", "item-active"]);
221
+ }), 128))
222
+ ])) : createCommentVNode("", true),
223
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.groups, (section, si) => {
224
+ return openBlock(), createElementBlock(Fragment, { key: si }, [
225
+ __props.compact && section.collapsible && section.title ? (openBlock(), createElementBlock("div", _hoisted_5, [
226
+ createVNode(_sfc_main$3, {
227
+ item: sectionItem(section),
228
+ active: false,
229
+ pill: false,
230
+ "pill-id": __props.pillId,
231
+ compact: "",
232
+ "on-path": section.items.some((i) => __props.itemActive(i) || onPath(i)),
233
+ "preview-delay": __props.previewDelay,
234
+ "item-active": __props.itemActive,
235
+ onActivate: activate
236
+ }, null, 8, ["item", "pill-id", "on-path", "preview-delay", "item-active"])
237
+ ])) : (openBlock(), createBlock(unref(CollapsibleRoot), {
238
+ key: 1,
239
+ as: "div",
240
+ class: "flex flex-col gap-0.5",
241
+ open: isOpen(section),
242
+ disabled: !section.collapsible || !section.title,
243
+ "onUpdate:open": (o) => emit("toggle-section", sectionKey(section), !o)
244
+ }, {
245
+ default: withCtx(() => [
246
+ __props.compact && (si > 0 || __props.pinned.length) ? (openBlock(), createElementBlock("div", _hoisted_6)) : !__props.compact && section.title && section.collapsible ? (openBlock(), createBlock(unref(CollapsibleTrigger), {
247
+ key: 1,
248
+ "data-lp-nav-row": "",
249
+ class: "group/section mt-2 flex cursor-pointer items-center gap-2 rounded-control px-2 py-1 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted outline-none transition-colors duration-[var(--duration-fast)] hover:bg-ink/[0.04] hover:text-ink focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring"
250
+ }, {
251
+ default: withCtx(() => [
252
+ section.icon ? (openBlock(), createBlock(_sfc_main$4, {
253
+ key: 0,
254
+ name: section.icon,
255
+ size: 14,
256
+ class: "shrink-0"
257
+ }, null, 8, ["name"])) : createCommentVNode("", true),
258
+ createElementVNode("span", _hoisted_7, toDisplayString(section.title), 1),
259
+ createVNode(_sfc_main$5, {
260
+ tone: "neutral",
261
+ class: normalizeClass(["shrink-0 transition-opacity duration-[var(--duration-fast)] motion-reduce:transition-none", isOpen(section) ? "opacity-0" : "opacity-100"]),
262
+ "aria-hidden": isOpen(section) || void 0
263
+ }, {
264
+ default: withCtx(() => [
265
+ createTextVNode(toDisplayString(section.items.length), 1)
266
+ ]),
267
+ _: 2
268
+ }, 1032, ["class", "aria-hidden"]),
269
+ createVNode(_sfc_main$4, {
270
+ name: "lucide:chevron-down",
271
+ size: 14,
272
+ class: "shrink-0 text-muted transition-transform duration-[var(--duration-fast)] ease-[var(--ease-emphasized)] group-data-[state=closed]/section:-rotate-90 motion-reduce:transition-none"
273
+ })
274
+ ]),
275
+ _: 2
276
+ }, 1024)) : !__props.compact && section.title ? (openBlock(), createElementBlock("p", _hoisted_8, toDisplayString(section.title), 1)) : createCommentVNode("", true),
277
+ createVNode(unref(CollapsibleContent), { class: "flex flex-col gap-0.5 overflow-hidden data-[state=open]:animate-[collapsible-down_260ms_var(--ease-emphasized)] data-[state=closed]:animate-[collapsible-up_200ms_var(--ease-emphasized)] motion-reduce:animate-none" }, {
278
+ default: withCtx(() => [
279
+ (openBlock(true), createElementBlock(Fragment, null, renderList(section.items, (item) => {
280
+ return openBlock(), createElementBlock(Fragment, {
281
+ key: item.id
282
+ }, [
283
+ createVNode(_sfc_main$3, {
284
+ item,
285
+ active: __props.itemActive(item),
286
+ pill: pillUnder(item),
287
+ "pill-id": __props.pillId,
288
+ compact: __props.compact,
289
+ menu: menuOf(item),
290
+ expandable: !__props.compact && !!item.children?.length,
291
+ expanded: expanded(item),
292
+ "on-path": onPath(item),
293
+ "preview-delay": __props.previewDelay,
294
+ hovered: hovered.value === item.id,
295
+ "expand-label": __props.labels.expand,
296
+ "item-active": __props.itemActive,
297
+ onActivate: activate,
298
+ onHover: hover,
299
+ onToggle: ($event) => toggle(item)
300
+ }, createSlots({ _: 2 }, [
301
+ _ctx.$slots.item ? {
302
+ name: "default",
303
+ fn: withCtx((slotProps) => [
304
+ renderSlot(_ctx.$slots, "item", mergeProps({ ref_for: true }, slotProps))
305
+ ]),
306
+ key: "0"
307
+ } : void 0
308
+ ]), 1032, ["item", "active", "pill", "pill-id", "compact", "menu", "expandable", "expanded", "on-path", "preview-delay", "hovered", "expand-label", "item-active", "onToggle"]),
309
+ !__props.compact && item.children?.length ? (openBlock(), createBlock(unref(CollapsibleRoot), {
310
+ key: 0,
311
+ open: expanded(item)
312
+ }, {
313
+ default: withCtx(() => [
314
+ createVNode(unref(CollapsibleContent), { class: "flex flex-col gap-0.5 overflow-hidden data-[state=open]:animate-[collapsible-down_220ms_var(--ease-emphasized)] data-[state=closed]:animate-[collapsible-up_180ms_var(--ease-emphasized)] motion-reduce:animate-none" }, {
315
+ default: withCtx(() => [
316
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (child) => {
317
+ return openBlock(), createBlock(_sfc_main$3, {
318
+ key: child.id,
319
+ nested: "",
320
+ item: child,
321
+ active: __props.itemActive(child),
322
+ pill: pillUnder(child),
323
+ "pill-id": __props.pillId,
324
+ menu: menuOf(child),
325
+ "preview-delay": __props.previewDelay,
326
+ hovered: hovered.value === child.id,
327
+ "item-active": __props.itemActive,
328
+ onActivate: activate,
329
+ onHover: hover
330
+ }, null, 8, ["item", "active", "pill", "pill-id", "menu", "preview-delay", "hovered", "item-active"]);
331
+ }), 128))
332
+ ]),
333
+ _: 2
334
+ }, 1024)
335
+ ]),
336
+ _: 2
337
+ }, 1032, ["open"])) : createCommentVNode("", true)
338
+ ], 64);
339
+ }), 128))
340
+ ]),
341
+ _: 2
342
+ }, 1024)
343
+ ]),
344
+ _: 2
345
+ }, 1032, ["open", "disabled", "onUpdate:open"]))
346
+ ], 64);
347
+ }), 128))
348
+ ], 32)
349
+ ]),
350
+ _: 3
351
+ }, 8, ["content-class"]));
352
+ };
353
+ }
354
+ });
355
+ export {
356
+ _sfc_main as _
357
+ };
@@ -0,0 +1,302 @@
1
+ import { defineComponent, ref, watch, onBeforeUnmount, computed, openBlock, createBlock, withCtx, createElementBlock, createElementVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, createTextVNode, unref, Fragment, renderList, mergeProps, createVNode, normalizeClass, normalizeStyle, renderSlot } from "vue";
2
+ import { Motion } from "motion-v";
3
+ import { useLocale } from "../composables/useLocale.js";
4
+ import { usePillTransition } from "../composables/usePillTransition.js";
5
+ import { useLinkComponent } from "../composables/useLpConfig.js";
6
+ import { _ as _sfc_main$2 } from "./LpBadge-vtCpsDmv.js";
7
+ import { _ as _sfc_main$4 } from "./LpContextMenu-rx2tCjwk.js";
8
+ import { _ as _sfc_main$1 } from "./LpHoverCard-spGxyw7T.js";
9
+ import { _ as _sfc_main$3 } from "./LpIcon--5WSb3jJ.js";
10
+ import LpKeys from "../components/LpKeys.vue.js";
11
+ import { _ as _sfc_main$5 } from "./LpNumberFlow-CcxEGUy0.js";
12
+ import { resolveLink } from "../components/link.js";
13
+ const _hoisted_1 = { class: "relative flex flex-col" };
14
+ const _hoisted_2 = {
15
+ key: 1,
16
+ class: "lp-sweep absolute inset-y-0 left-0 w-2/5 rounded-pill bg-brand"
17
+ };
18
+ const _hoisted_3 = {
19
+ key: 0,
20
+ class: "relative z-10 shrink-0"
21
+ };
22
+ const _hoisted_4 = {
23
+ key: 1,
24
+ class: "relative z-10 text-xs font-semibold uppercase"
25
+ };
26
+ const _hoisted_5 = {
27
+ key: 2,
28
+ class: "relative z-10 size-1 shrink-0 rounded-full bg-current opacity-50"
29
+ };
30
+ const _hoisted_6 = { class: "relative z-10 min-w-0 flex-1 truncate text-left" };
31
+ const _hoisted_7 = {
32
+ key: 1,
33
+ class: "relative z-10 size-2 shrink-0 rounded-full bg-brand"
34
+ };
35
+ const _hoisted_8 = {
36
+ key: 0,
37
+ class: "absolute inset-0 animate-ping rounded-pill bg-brand/30"
38
+ };
39
+ const _hoisted_9 = {
40
+ key: 3,
41
+ class: "w-5 shrink-0",
42
+ "aria-hidden": "true"
43
+ };
44
+ const _hoisted_10 = ["aria-label", "aria-expanded"];
45
+ const _hoisted_11 = {
46
+ key: 0,
47
+ class: "flex flex-col"
48
+ };
49
+ const _hoisted_12 = {
50
+ key: 0,
51
+ class: "flex items-center gap-2 border-b border-line px-3 py-2 text-sm font-medium text-ink"
52
+ };
53
+ const _hoisted_13 = { class: "min-w-0 flex-1 truncate" };
54
+ const _hoisted_14 = {
55
+ key: 1,
56
+ class: "flex flex-col gap-0.5"
57
+ };
58
+ const _hoisted_15 = { class: "flex items-center gap-2 px-2 py-1 text-sm font-medium text-ink" };
59
+ const _hoisted_16 = { class: "min-w-0 flex-1 truncate" };
60
+ const _hoisted_17 = {
61
+ key: 0,
62
+ class: "flex max-h-[min(70vh,30rem)] flex-col gap-0.5 overflow-y-auto"
63
+ };
64
+ const _hoisted_18 = { class: "min-w-0 flex-1 truncate" };
65
+ const _sfc_main = /* @__PURE__ */ defineComponent({
66
+ __name: "LpSidebarRow",
67
+ props: {
68
+ item: {},
69
+ active: { type: Boolean },
70
+ pill: { type: Boolean },
71
+ pillId: {},
72
+ compact: { type: Boolean },
73
+ nested: { type: Boolean },
74
+ menu: { default: () => [] },
75
+ expandable: { type: Boolean },
76
+ expanded: { type: Boolean },
77
+ onPath: { type: Boolean },
78
+ previewDelay: { default: 900 },
79
+ hovered: { type: Boolean },
80
+ expandLabel: {},
81
+ itemActive: {}
82
+ },
83
+ emits: ["activate", "hover", "toggle"],
84
+ setup(__props, { emit: __emit }) {
85
+ const props = __props;
86
+ const emit = __emit;
87
+ const locale = useLocale();
88
+ const pillTransition = usePillTransition();
89
+ const linkComponent = useLinkComponent();
90
+ function rowOf(item) {
91
+ const link = item.disabled ? null : resolveLink(linkComponent.value, { to: item.to, href: item.href });
92
+ if (link) return link;
93
+ return { is: "button", props: { type: "button", disabled: item.disabled || void 0 } };
94
+ }
95
+ const bumped = ref(false);
96
+ let bumpTimer;
97
+ watch(
98
+ () => props.item.badge,
99
+ (now, was) => {
100
+ if (typeof now !== "number" || typeof was !== "number" || now <= was) return;
101
+ bumped.value = true;
102
+ clearTimeout(bumpTimer);
103
+ bumpTimer = setTimeout(() => bumped.value = false, 1200);
104
+ }
105
+ );
106
+ onBeforeUnmount(() => clearTimeout(bumpTimer));
107
+ const initials = computed(
108
+ () => props.item.label.split(/\s+/).filter(Boolean).slice(0, 2).map((w) => [...w][0]).join("")
109
+ );
110
+ const hasBadge = computed(() => props.item.badge != null || props.item.dot);
111
+ const card = computed(() => !props.item.disabled && (props.compact || !!props.item.preview));
112
+ const delay = computed(() => props.compact && !props.item.preview ? 250 : props.previewDelay);
113
+ return (_ctx, _cache) => {
114
+ return openBlock(), createBlock(_sfc_main$1, {
115
+ disabled: !card.value,
116
+ side: "right",
117
+ align: "start",
118
+ "side-offset": __props.compact ? 12 : 16,
119
+ "open-delay": delay.value,
120
+ "close-delay": 120,
121
+ touch: "none",
122
+ "panel-class": __props.item.preview ? "w-80 p-0 overflow-hidden" : "w-56 p-2"
123
+ }, {
124
+ trigger: withCtx(() => [
125
+ createElementVNode("div", _hoisted_1, [
126
+ createVNode(_sfc_main$4, {
127
+ items: __props.menu,
128
+ title: (__props.item.menuTitle ?? __props.item.label) || void 0,
129
+ "title-icon": __props.item.icon
130
+ }, {
131
+ default: withCtx(() => [
132
+ (openBlock(), createBlock(resolveDynamicComponent(rowOf(__props.item).is), mergeProps(rowOf(__props.item).props, {
133
+ "aria-current": __props.active ? "page" : void 0,
134
+ "aria-disabled": __props.item.disabled || void 0,
135
+ "aria-label": __props.compact ? __props.item.label : void 0,
136
+ "data-lp-nav-row": "",
137
+ "aria-keyshortcuts": __props.item.hotkey,
138
+ "aria-busy": __props.item.busy ? true : void 0,
139
+ "data-lp-nav-nested": __props.nested || void 0,
140
+ class: ["group/item relative flex items-center rounded-control font-medium outline-none transition-colors duration-[var(--duration-fast)] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", [
141
+ __props.compact ? ["ml-1 size-10 justify-center", __props.onPath && !__props.active ? "bg-ink/[0.06]" : ""] : __props.nested ? "gap-2.5 py-1.5 pl-9 pr-3 text-[13px]" : "gap-3 px-3 py-2 text-sm",
142
+ __props.item.disabled ? "cursor-not-allowed text-muted/50" : __props.active || __props.hovered || __props.onPath ? "text-ink" : "text-muted hover:text-ink"
143
+ ]],
144
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("activate", __props.item)),
145
+ onPointerenter: _cache[1] || (_cache[1] = ($event) => emit("hover", __props.item))
146
+ }), {
147
+ default: withCtx(() => [
148
+ __props.item.busy !== void 0 && __props.item.busy !== false ? (openBlock(), createElementBlock("span", {
149
+ key: 0,
150
+ class: normalizeClass(["pointer-events-none absolute bottom-0.5 z-10 h-0.5 overflow-hidden rounded-pill bg-brand/15", __props.compact ? "inset-x-2" : "inset-x-3"])
151
+ }, [
152
+ typeof __props.item.busy === "number" ? (openBlock(), createElementBlock("span", {
153
+ key: 0,
154
+ class: "block h-full rounded-pill bg-brand transition-[width] duration-(--duration-medium) ease-[var(--ease-emphasized)]",
155
+ style: normalizeStyle({ width: `${Math.round(Math.min(1, Math.max(0, __props.item.busy)) * 100)}%` })
156
+ }, null, 4)) : (openBlock(), createElementBlock("span", _hoisted_2))
157
+ ], 2)) : createCommentVNode("", true),
158
+ __props.pill ? (openBlock(), createBlock(unref(Motion), {
159
+ key: 1,
160
+ "layout-id": __props.pillId,
161
+ transition: unref(pillTransition),
162
+ class: "absolute inset-0 z-0 rounded-control bg-brand-soft"
163
+ }, null, 8, ["layout-id", "transition"])) : createCommentVNode("", true),
164
+ renderSlot(_ctx.$slots, "default", {
165
+ item: __props.item,
166
+ active: __props.active
167
+ }, () => [
168
+ __props.item.icon ? (openBlock(), createElementBlock("span", _hoisted_3, [
169
+ createVNode(_sfc_main$3, {
170
+ name: __props.item.icon,
171
+ size: __props.nested ? 15 : 17,
172
+ class: normalizeClass(["transition-colors", __props.active ? "text-brand" : ""])
173
+ }, null, 8, ["name", "size", "class"]),
174
+ __props.compact && hasBadge.value ? (openBlock(), createElementBlock("span", {
175
+ key: 0,
176
+ class: normalizeClass(["absolute -right-1 -top-1 size-2 rounded-full bg-brand ring-2 ring-surface-raised", bumped.value ? "animate-pulse" : ""])
177
+ }, null, 2)) : createCommentVNode("", true)
178
+ ])) : __props.compact ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(initials.value), 1)) : __props.nested ? (openBlock(), createElementBlock("span", _hoisted_5)) : createCommentVNode("", true),
179
+ !__props.compact ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
180
+ createElementVNode("span", _hoisted_6, toDisplayString(__props.item.label), 1),
181
+ __props.item.hotkey && !hasBadge.value && !__props.expandable ? (openBlock(), createBlock(LpKeys, {
182
+ key: 0,
183
+ combo: __props.item.hotkey,
184
+ size: "sm",
185
+ "aria-hidden": "true",
186
+ class: "pointer-events-none absolute right-2 z-10 rounded-small bg-surface-raised/90 opacity-0 transition-opacity duration-(--duration-fast) group-hover/item:opacity-100 group-focus-visible/item:opacity-100"
187
+ }, null, 8, ["combo"])) : createCommentVNode("", true),
188
+ __props.item.dot && __props.item.badge == null ? (openBlock(), createElementBlock("span", _hoisted_7)) : createCommentVNode("", true),
189
+ __props.item.badge != null ? (openBlock(), createBlock(_sfc_main$2, {
190
+ key: 2,
191
+ tone: __props.active ? "brand" : "neutral",
192
+ class: "relative z-10 shrink-0"
193
+ }, {
194
+ default: withCtx(() => [
195
+ bumped.value ? (openBlock(), createElementBlock("span", _hoisted_8)) : createCommentVNode("", true),
196
+ typeof __props.item.badge === "number" ? (openBlock(), createBlock(_sfc_main$5, {
197
+ key: 1,
198
+ value: __props.item.badge,
199
+ grouped: "",
200
+ locale: unref(locale),
201
+ "animate-on-mount": false
202
+ }, null, 8, ["value", "locale"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
203
+ createTextVNode(toDisplayString(__props.item.badge), 1)
204
+ ], 64))
205
+ ]),
206
+ _: 1
207
+ }, 8, ["tone"])) : createCommentVNode("", true),
208
+ __props.expandable ? (openBlock(), createElementBlock("span", _hoisted_9)) : createCommentVNode("", true)
209
+ ], 64)) : createCommentVNode("", true)
210
+ ])
211
+ ]),
212
+ _: 3
213
+ }, 16, ["aria-current", "aria-disabled", "aria-label", "aria-keyshortcuts", "aria-busy", "data-lp-nav-nested", "class"]))
214
+ ]),
215
+ _: 3
216
+ }, 8, ["items", "title", "title-icon"]),
217
+ __props.expandable && !__props.compact ? (openBlock(), createElementBlock("button", {
218
+ key: 0,
219
+ type: "button",
220
+ class: "absolute right-2 top-1/2 z-20 grid size-6 -translate-y-1/2 place-items-center rounded-small text-muted outline-none transition-colors hover:bg-ink/[0.06] hover:text-ink focus-visible:ring-2 focus-visible:ring-ring",
221
+ "aria-label": __props.expandLabel,
222
+ "aria-expanded": __props.expanded,
223
+ onClick: _cache[2] || (_cache[2] = ($event) => emit("toggle"))
224
+ }, [
225
+ createVNode(_sfc_main$3, {
226
+ name: "lucide:chevron-right",
227
+ size: 14,
228
+ class: normalizeClass(["transition-transform duration-(--duration-fast) ease-[var(--ease-emphasized)] motion-reduce:transition-none", __props.expanded ? "rotate-90" : ""])
229
+ }, null, 8, ["class"])
230
+ ], 8, _hoisted_10)) : createCommentVNode("", true)
231
+ ])
232
+ ]),
233
+ default: withCtx(() => [
234
+ __props.item.preview ? (openBlock(), createElementBlock("div", _hoisted_11, [
235
+ __props.compact ? (openBlock(), createElementBlock("div", _hoisted_12, [
236
+ createElementVNode("span", _hoisted_13, toDisplayString(__props.item.label), 1),
237
+ __props.item.hotkey ? (openBlock(), createBlock(LpKeys, {
238
+ key: 0,
239
+ combo: __props.item.hotkey,
240
+ size: "sm"
241
+ }, null, 8, ["combo"])) : createCommentVNode("", true)
242
+ ])) : createCommentVNode("", true),
243
+ (openBlock(), createBlock(resolveDynamicComponent(__props.item.preview)))
244
+ ])) : (openBlock(), createElementBlock("div", _hoisted_14, [
245
+ createElementVNode("div", _hoisted_15, [
246
+ createElementVNode("span", _hoisted_16, toDisplayString(__props.item.label), 1),
247
+ __props.item.badge != null ? (openBlock(), createBlock(_sfc_main$2, {
248
+ key: 0,
249
+ tone: "neutral"
250
+ }, {
251
+ default: withCtx(() => [
252
+ createTextVNode(toDisplayString(typeof __props.item.badge === "number" ? __props.item.badge.toLocaleString(unref(locale)) : __props.item.badge), 1)
253
+ ]),
254
+ _: 1
255
+ })) : createCommentVNode("", true),
256
+ __props.item.hotkey ? (openBlock(), createBlock(LpKeys, {
257
+ key: 1,
258
+ combo: __props.item.hotkey,
259
+ size: "sm"
260
+ }, null, 8, ["combo"])) : createCommentVNode("", true)
261
+ ]),
262
+ __props.item.children?.length ? (openBlock(), createElementBlock("div", _hoisted_17, [
263
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.item.children, (child) => {
264
+ return openBlock(), createBlock(resolveDynamicComponent(rowOf(child).is), mergeProps({
265
+ key: child.id
266
+ }, { ref_for: true }, rowOf(child).props, {
267
+ "aria-current": __props.itemActive?.(child) ? "page" : void 0,
268
+ class: ["flex shrink-0 items-center gap-2 rounded-control px-2 py-1.5 text-left text-[13px] outline-none transition-colors hover:bg-ink/[0.05] focus-visible:ring-2 focus-visible:ring-ring", child.disabled ? "opacity-50" : __props.itemActive?.(child) ? "text-brand" : "text-muted hover:text-ink"],
269
+ onClick: ($event) => emit("activate", child)
270
+ }), {
271
+ default: withCtx(() => [
272
+ child.icon ? (openBlock(), createBlock(_sfc_main$3, {
273
+ key: 0,
274
+ name: child.icon,
275
+ size: 15,
276
+ class: "shrink-0"
277
+ }, null, 8, ["name"])) : createCommentVNode("", true),
278
+ createElementVNode("span", _hoisted_18, toDisplayString(child.label), 1),
279
+ child.badge != null ? (openBlock(), createBlock(_sfc_main$2, {
280
+ key: 1,
281
+ tone: "neutral"
282
+ }, {
283
+ default: withCtx(() => [
284
+ createTextVNode(toDisplayString(child.badge), 1)
285
+ ]),
286
+ _: 2
287
+ }, 1024)) : createCommentVNode("", true)
288
+ ]),
289
+ _: 2
290
+ }, 1040, ["aria-current", "class", "onClick"]);
291
+ }), 128))
292
+ ])) : createCommentVNode("", true)
293
+ ]))
294
+ ]),
295
+ _: 3
296
+ }, 8, ["disabled", "side-offset", "open-delay", "panel-class"]);
297
+ };
298
+ }
299
+ });
300
+ export {
301
+ _sfc_main as _
302
+ };