@leavepulse/ui 0.70.1 → 0.71.1

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 (321) hide show
  1. package/README.md +91 -0
  2. package/dist/assets/{LpCommandPalette-u-zOxKWa.css → LpCommandPalette-DgPZX0us.css} +24 -17
  3. package/dist/assets/{LpPaletteFacts-B9FdVmIO.css → LpPaletteFacts-CVNh5ICn.css} +16 -16
  4. package/dist/assets/{LpPaletteStats-ClE-37MK.css → LpPaletteStats-ZiZmR6vz.css} +5 -5
  5. package/dist/assets/{LpTable-DHxEQ_-3.css → LpTable-DHvorDiU.css} +19 -19
  6. package/dist/assets/LpTabs-CO3EcsNV.css +18 -0
  7. package/dist/chunks/{ContextMenuItems-6kxEivBI.js → ContextMenuItems-eS7qx9gD.js} +1 -1
  8. package/dist/chunks/{DropzoneLinkField-Bw8Flkhk.js → DropzoneLinkField-DkFhdfEJ.js} +2 -2
  9. package/dist/chunks/{FieldWrapper-BiennROB.js → FieldWrapper-YzbvvC3M.js} +1 -1
  10. package/dist/chunks/{LayoutCanvas-BsJIzhdd.js → LayoutCanvas-Ba4A9QC5.js} +1 -1
  11. package/dist/chunks/{LayoutNode-DJVhkSGk.js → LayoutNode-CTTTLMDM.js} +1 -1
  12. package/dist/chunks/{LpActionBar-CzOFar5t.js → LpActionBar-B7anGlkI.js} +2 -2
  13. package/dist/chunks/{LpAddressInput-Chv_Xf8q.js → LpAddressInput-CD0bzrt-.js} +7 -7
  14. package/dist/chunks/{LpAlert-C5igj802.js → LpAlert-BHi7ARqu.js} +1 -1
  15. package/dist/chunks/{LpAppShell-BiWByLmt.js → LpAppShell-1RmBp6xQ.js} +3 -3
  16. package/dist/chunks/{LpAutocomplete-D92niDHE.js → LpAutocomplete-DDqe2M5g.js} +5 -2
  17. package/dist/chunks/{LpAvatar-CLPl-qOF.js → LpAvatar-DqfKCIdr.js} +1 -1
  18. package/dist/chunks/{LpBadge-BBq1Er9T.js → LpBadge-C8fKEmTF.js} +1 -1
  19. package/dist/chunks/{LpBreadcrumbs-JKEi_yFF.js → LpBreadcrumbs-DhcoStFa.js} +1 -1
  20. package/dist/chunks/{LpButton-CVxBfGjd.js → LpButton-BQDAFXBd.js} +3 -0
  21. package/dist/chunks/{LpCalendar-pVL91-Pl.js → LpCalendar-NmrA47J9.js} +1 -1
  22. package/dist/chunks/{LpCheckbox-DHc2bHDe.js → LpCheckbox-BoOuLnGB.js} +5 -2
  23. package/dist/chunks/{LpCodeBlock-BGsQhxw8.js → LpCodeBlock-Czu-fq1M.js} +2 -2
  24. package/dist/chunks/{LpCodeDisplay-CbJMs-IK.js → LpCodeDisplay-BK2FHbtM.js} +5 -5
  25. package/dist/chunks/{LpColorPicker-B7HSIFmn.js → LpColorPicker-Ee1DZiRd.js} +2 -2
  26. package/dist/chunks/LpCommandScope-ubtWDMa0.js +53 -0
  27. package/dist/chunks/{LpConfirmDialog-CfGCux8m.js → LpConfirmDialog-i15pulMT.js} +3 -3
  28. package/dist/chunks/{LpConfirmHost-exB7JmcO.js → LpConfirmHost-D0oGavtd.js} +1 -1
  29. package/dist/chunks/{LpContextMenu-Cj96ENDC.js → LpContextMenu-DXpFJjlO.js} +13 -3
  30. package/dist/chunks/{LpCopyButton-DzHjnFs0.js → LpCopyButton-Dmq7DmFw.js} +3 -3
  31. package/dist/chunks/{LpCountdown-BQnmB4gq.js → LpCountdown-DTdMF8DL.js} +1 -1
  32. package/dist/chunks/{LpDataList-CHNYQw7h.js → LpDataList-CFPtSsBB.js} +3 -3
  33. package/dist/chunks/{LpDatePicker-ac1_6o5P.js → LpDatePicker-cC9K-Pk8.js} +4 -4
  34. package/dist/chunks/{LpDateRangePicker-B15gYrZJ.js → LpDateRangePicker-BVQKPbvo.js} +2 -2
  35. package/dist/chunks/{LpDisclosure-DOarzlAG.js → LpDisclosure-hRnX3FWL.js} +4 -1
  36. package/dist/chunks/{LpDrawer-DGNKRsGq.js → LpDrawer-u4rxnuR-.js} +1 -1
  37. package/dist/chunks/{LpDropdownMenu-R4aYVtVV.js → LpDropdownMenu-BgZ0Z_Im.js} +13 -3
  38. package/dist/chunks/{LpEditable-Ws3DNQHn.js → LpEditable-CjxuOVh_.js} +2 -2
  39. package/dist/chunks/{LpEmptyState-KTKipws2.js → LpEmptyState-CKFTtQgJ.js} +1 -1
  40. package/dist/chunks/{LpFieldNotice-CurbNuXI.js → LpFieldNotice-CPI8EwtU.js} +1 -1
  41. package/dist/chunks/{LpFileTree-DDNg34tJ.js → LpFileTree-BH0gNlSJ.js} +2 -2
  42. package/dist/chunks/{LpFileTreeNode-DmPuYNZ_.js → LpFileTreeNode-gPVB1oXM.js} +4 -4
  43. package/dist/chunks/{LpFormField-BWwgm1E4.js → LpFormField-gRASfyj2.js} +4 -1
  44. package/dist/chunks/{LpGauge-C14Z9503.js → LpGauge-BdjPGnqw.js} +1 -1
  45. package/dist/chunks/{LpHintLayer-HvwUA5Ec.js → LpHintLayer-C2asBIfs.js} +2 -2
  46. package/dist/chunks/{LpHints-DxbPKOzQ.js → LpHints-CNZQ76JV.js} +3 -3
  47. package/dist/chunks/{LpIcon-HJP5xMz4.js → LpIcon-DkP-9mzK.js} +1 -1
  48. package/dist/chunks/{LpInfraNode-D64hywJI.js → LpInfraNode-yTh4-5qa.js} +2 -2
  49. package/dist/chunks/{LpInput-CDuwODJG.js → LpInput-2H-5ILOB.js} +5 -2
  50. package/dist/chunks/{LpLightbox-XJ0LpTcZ.js → LpLightbox-lAt5uIfx.js} +2 -2
  51. package/dist/chunks/{LpLogViewer-DKK4ySZl.js → LpLogViewer-x78YfhJf.js} +5 -5
  52. package/dist/chunks/{LpMapPicker-BtIl7NOM.js → LpMapPicker-Dp5RSCi9.js} +1 -1
  53. package/dist/chunks/{LpMediaGallery-rmI1DjKN.js → LpMediaGallery-D92oJfY_.js} +3 -3
  54. package/dist/chunks/{LpModal-eBMt2Fqn.js → LpModal-CpH0bNo7.js} +1 -1
  55. package/dist/chunks/{LpModalNav-DiyFCHiZ.js → LpModalNav-BH4ANQGJ.js} +4 -4
  56. package/dist/chunks/{LpNotificationBell-D-WhE5m2.js → LpNotificationBell-BdUQqZhs.js} +6 -6
  57. package/dist/chunks/{LpNumberField-B9k-h2HE.js → LpNumberField-DZY3Z670.js} +4 -1
  58. package/dist/chunks/{LpNumberFlow-Cfyh033Q.js → LpNumberFlow-5khYxsfX.js} +6 -3
  59. package/dist/chunks/{LpPagination-VNCX6pFC.js → LpPagination-DbeACavM.js} +1 -1
  60. package/dist/chunks/LpPaletteTheme-CqWNRwHE.js +104 -0
  61. package/dist/chunks/{LpPasswordInput-GL2KOFK8.js → LpPasswordInput-BzAZsf5V.js} +4 -2
  62. package/dist/chunks/{LpPhoneInput-C60tx1tC.js → LpPhoneInput-BMpd-0QR.js} +2 -2
  63. package/dist/chunks/{LpPie-BgXZ3xmm.js → LpPie-DdFSTbGE.js} +4 -4
  64. package/dist/chunks/{LpPipeline-B31h41Mu.js → LpPipeline-zjEM1Lwc.js} +3 -3
  65. package/dist/chunks/{LpProgress-CE-m5OpD.js → LpProgress-BX33EKkN.js} +1 -1
  66. package/dist/chunks/{LpQuota-DaL8TgNe.js → LpQuota-DqNv1yjs.js} +2 -2
  67. package/dist/chunks/{LpRadioGroup-CGBr5nIp.js → LpRadioGroup-CsXeV9Ct.js} +4 -1
  68. package/dist/chunks/{LpRangeCalendar-c5qj7YcC.js → LpRangeCalendar-l-0nSFmY.js} +1 -1
  69. package/dist/chunks/{LpRangeSlider-Dv6lNvHY.js → LpRangeSlider-CM-0ZITZ.js} +3 -0
  70. package/dist/chunks/{LpRelativeTime-yin9uQP7.js → LpRelativeTime-UM8EkfrN.js} +1 -1
  71. package/dist/chunks/{LpRepeater-D0S7jjwr.js → LpRepeater-OvzByE5L.js} +2 -2
  72. package/dist/chunks/{LpSecretField-CfWyHv9m.js → LpSecretField-DwQiPOko.js} +9 -7
  73. package/dist/chunks/{LpSection-BW4xJ-Li.js → LpSection-DcQsieHG.js} +1 -1
  74. package/dist/chunks/{LpSegmented-BO99Sr4m.js → LpSegmented-D2VST0o3.js} +4 -1
  75. package/dist/chunks/{LpSelect-C_8cJtj6.js → LpSelect-DYX2-u5A.js} +36 -6
  76. package/dist/chunks/{LpSidebar-CZRXtvem.js → LpSidebar-D44peKq2.js} +3 -3
  77. package/dist/chunks/{LpSidebarNav-DBg1U1oW.js → LpSidebarNav--VwkXO_a.js} +3 -3
  78. package/dist/chunks/{LpSlider-DuoRpOrH.js → LpSlider-DxYoCJJO.js} +3 -0
  79. package/dist/chunks/{LpStat-DFKlPJgy.js → LpStat-DIsQfbeD.js} +3 -3
  80. package/dist/chunks/{LpStatus-BsGLrpor.js → LpStatus-BQU1TUsv.js} +1 -1
  81. package/dist/chunks/{LpStepMark-TrzOioa9.js → LpStepMark-CXa7DJy_.js} +1 -1
  82. package/dist/chunks/{LpStepper-BbnS5jUr.js → LpStepper-C9RM_yTG.js} +1 -1
  83. package/dist/chunks/{LpSwitch-DrzKrZZV.js → LpSwitch-bGZxUDSx.js} +3 -0
  84. package/dist/chunks/{LpTableFilter-DyvHGbOk.js → LpTableFilter-CTZMqFDU.js} +2 -2
  85. package/dist/chunks/{LpTableOfContents-rYvo8z5T.js → LpTableOfContents-CraicEs4.js} +2 -2
  86. package/dist/chunks/{LpTagsInput-DZg80W-B.js → LpTagsInput-DrjmrOge.js} +8 -5
  87. package/dist/chunks/{LpTextarea-DiWjeVoJ.js → LpTextarea-BbYqmG1S.js} +4 -1
  88. package/dist/chunks/{LpThemeStudio-DxVZMtzN.js → LpThemeStudio-B2nPaG-h.js} +18 -14
  89. package/dist/chunks/{LpThemeSwitcher-CadVBTBn.js → LpThemeSwitcher-C0A5sg_E.js} +5 -3
  90. package/dist/chunks/{LpTimeField-BFQVf_PW.js → LpTimeField-DQ8WvPr2.js} +4 -1
  91. package/dist/chunks/{LpToaster-Wv9ksj4q.js → LpToaster-BTTl_wuy.js} +2 -2
  92. package/dist/chunks/{LpTooltip-Cz8SQwRt.js → LpTooltip-BcBvIx4z.js} +23 -5
  93. package/dist/chunks/{LpTopologyCanvas-C17A1XCb.js → LpTopologyCanvas-B0wEvAoq.js} +1 -1
  94. package/dist/chunks/{LpTour-CY2bFXge.js → LpTour-BgCfNlaW.js} +1 -1
  95. package/dist/chunks/{LpTruncate-D_5Pfv5B.js → LpTruncate-TcqfkyJM.js} +2 -2
  96. package/dist/chunks/{LpUptimeBar-Tew1Ykx4.js → LpUptimeBar-DRadGq4Y.js} +136 -47
  97. package/dist/chunks/{MenuTitle-BjQZX8tQ.js → MenuTitle-Dab3EGOp.js} +1 -1
  98. package/dist/chunks/{OptionContent-CmYUUeWj.js → OptionContent-DPzNsybd.js} +1 -1
  99. package/dist/chunks/PalettePreviewBoundary-B0Hhu3Yw.js +20 -0
  100. package/dist/chunks/{PickerField-DoHv0WMH.js → PickerField-DwLw7j0L.js} +1 -1
  101. package/dist/chunks/{RevealToggle-C-KzaQGJ.js → RevealToggle-BVFM_FAU.js} +3 -3
  102. package/dist/chunks/{TourCard-BJ8i7dk0.js → TourCard--2IfgnUU.js} +2 -2
  103. package/dist/chunks/icons-CLu1iR1j.js +43 -0
  104. package/dist/chunks/palette-BiY7yQZL.js +29 -0
  105. package/dist/component-names.d.ts +1 -1
  106. package/dist/components/ContextMenuItems.vue.js +1 -1
  107. package/dist/components/DropzoneLinkField.vue.js +1 -1
  108. package/dist/components/FieldWrapper.vue.js +1 -1
  109. package/dist/components/LayoutCanvas.vue.js +1 -1
  110. package/dist/components/LayoutNode.vue.js +1 -1
  111. package/dist/components/LpActionBar.vue.js +1 -1
  112. package/dist/components/LpAddressInput.vue.d.ts +1 -1
  113. package/dist/components/LpAddressInput.vue.js +1 -1
  114. package/dist/components/LpAlert.vue.d.ts +3 -3
  115. package/dist/components/LpAlert.vue.js +1 -1
  116. package/dist/components/LpAppShell.vue.js +1 -1
  117. package/dist/components/LpAutocomplete.vue.d.ts +7 -1
  118. package/dist/components/LpAutocomplete.vue.js +1 -1
  119. package/dist/components/LpAvatar.vue.js +1 -1
  120. package/dist/components/LpBadge.vue.d.ts +2 -2
  121. package/dist/components/LpBadge.vue.js +1 -1
  122. package/dist/components/LpBreadcrumbs.vue.js +1 -1
  123. package/dist/components/LpButton.vue.d.ts +4 -0
  124. package/dist/components/LpButton.vue.js +1 -1
  125. package/dist/components/LpCalendar.vue.js +1 -1
  126. package/dist/components/LpChart.vue.js +2 -2
  127. package/dist/components/LpCheckbox.vue.d.ts +8 -1
  128. package/dist/components/LpCheckbox.vue.js +1 -1
  129. package/dist/components/LpCodeBlock.vue.js +1 -1
  130. package/dist/components/LpCodeDisplay.vue.js +1 -1
  131. package/dist/components/LpColorPicker.vue.d.ts +2 -2
  132. package/dist/components/LpColorPicker.vue.js +1 -1
  133. package/dist/components/LpCommandPalette.vue.d.ts +43 -7
  134. package/dist/components/LpCommandPalette.vue.js +451 -126
  135. package/dist/components/LpCommandScope.vue.d.ts +28 -0
  136. package/dist/components/LpCommandScope.vue.js +4 -0
  137. package/dist/components/LpConfirmDialog.vue.js +1 -1
  138. package/dist/components/LpConfirmHost.vue.js +1 -1
  139. package/dist/components/LpContextMenu.vue.d.ts +5 -1
  140. package/dist/components/LpContextMenu.vue.js +1 -1
  141. package/dist/components/LpCopyButton.vue.d.ts +1 -1
  142. package/dist/components/LpCopyButton.vue.js +1 -1
  143. package/dist/components/LpCountdown.vue.js +1 -1
  144. package/dist/components/LpDataList.vue.js +1 -1
  145. package/dist/components/LpDatePicker.vue.js +1 -1
  146. package/dist/components/LpDateRangePicker.vue.js +1 -1
  147. package/dist/components/LpDisclosure.vue.d.ts +4 -0
  148. package/dist/components/LpDisclosure.vue.js +1 -1
  149. package/dist/components/LpDock.vue.js +2 -2
  150. package/dist/components/LpDrawer.vue.js +1 -1
  151. package/dist/components/LpDropdownMenu.vue.d.ts +5 -1
  152. package/dist/components/LpDropdownMenu.vue.js +1 -1
  153. package/dist/components/LpDropzone.vue.js +2 -2
  154. package/dist/components/LpEditable.vue.js +1 -1
  155. package/dist/components/LpEmptyState.vue.js +1 -1
  156. package/dist/components/LpFieldNotice.vue.js +1 -1
  157. package/dist/components/LpFileTree.vue.d.ts +1 -1
  158. package/dist/components/LpFileTree.vue.js +1 -1
  159. package/dist/components/LpFileTreeNode.vue.js +1 -1
  160. package/dist/components/LpFormField.vue.js +1 -1
  161. package/dist/components/LpGauge.vue.js +1 -1
  162. package/dist/components/LpHintLayer.vue.js +1 -1
  163. package/dist/components/LpHints.vue.js +1 -1
  164. package/dist/components/LpIcon.vue.js +1 -1
  165. package/dist/components/LpImageEditor.vue.js +3 -2
  166. package/dist/components/LpInfraNode.vue.js +1 -1
  167. package/dist/components/LpInput.vue.d.ts +6 -0
  168. package/dist/components/LpInput.vue.js +1 -1
  169. package/dist/components/LpLightbox.vue.js +1 -1
  170. package/dist/components/LpLoader.vue.d.ts +1 -1
  171. package/dist/components/LpLogViewer.vue.js +1 -1
  172. package/dist/components/LpMapPicker.vue.js +1 -1
  173. package/dist/components/LpMediaGallery.vue.d.ts +2 -2
  174. package/dist/components/LpMediaGallery.vue.js +1 -1
  175. package/dist/components/LpModal.vue.js +1 -1
  176. package/dist/components/LpModalNav.vue.js +1 -1
  177. package/dist/components/LpNotificationBell.vue.js +1 -1
  178. package/dist/components/LpNumberField.vue.d.ts +6 -0
  179. package/dist/components/LpNumberField.vue.js +1 -1
  180. package/dist/components/LpNumberFlow.vue.js +1 -1
  181. package/dist/components/LpPagination.vue.js +1 -1
  182. package/dist/components/LpPaletteFacts.vue.d.ts +1 -0
  183. package/dist/components/LpPaletteFacts.vue.js +40 -26
  184. package/dist/components/LpPaletteHeader.vue.js +2 -2
  185. package/dist/components/LpPaletteStats.vue.d.ts +1 -0
  186. package/dist/components/LpPaletteStats.vue.js +45 -21
  187. package/dist/components/LpPaletteTheme.vue.d.ts +7 -0
  188. package/dist/components/LpPaletteTheme.vue.js +4 -0
  189. package/dist/components/LpPasswordInput.vue.js +1 -1
  190. package/dist/components/LpPhoneInput.vue.js +1 -1
  191. package/dist/components/LpPie.vue.js +1 -1
  192. package/dist/components/LpPipeline.vue.js +1 -1
  193. package/dist/components/LpProgress.vue.d.ts +1 -1
  194. package/dist/components/LpProgress.vue.js +1 -1
  195. package/dist/components/LpQuota.vue.js +1 -1
  196. package/dist/components/LpRadioGroup.vue.d.ts +6 -1
  197. package/dist/components/LpRadioGroup.vue.js +1 -1
  198. package/dist/components/LpRangeCalendar.vue.js +1 -1
  199. package/dist/components/LpRangeSlider.vue.d.ts +6 -0
  200. package/dist/components/LpRangeSlider.vue.js +1 -1
  201. package/dist/components/LpRelativeTime.vue.js +1 -1
  202. package/dist/components/LpRepeater.vue.js +1 -1
  203. package/dist/components/LpSecretField.vue.js +1 -1
  204. package/dist/components/LpSection.vue.js +1 -1
  205. package/dist/components/LpSegmented.vue.d.ts +6 -0
  206. package/dist/components/LpSegmented.vue.js +1 -1
  207. package/dist/components/LpSelect.vue.d.ts +3 -0
  208. package/dist/components/LpSelect.vue.js +1 -1
  209. package/dist/components/LpShinyText.vue.d.ts +1 -1
  210. package/dist/components/LpShortcutsDialog.vue.js +1 -1
  211. package/dist/components/LpSidebar.vue.js +1 -1
  212. package/dist/components/LpSidebarNav.vue.js +1 -1
  213. package/dist/components/LpSlider.vue.d.ts +6 -0
  214. package/dist/components/LpSlider.vue.js +1 -1
  215. package/dist/components/LpStat.vue.js +1 -1
  216. package/dist/components/LpStatus.vue.js +1 -1
  217. package/dist/components/LpStepMark.vue.js +1 -1
  218. package/dist/components/LpStepper.vue.js +1 -1
  219. package/dist/components/LpSwitch.vue.d.ts +6 -0
  220. package/dist/components/LpSwitch.vue.js +1 -1
  221. package/dist/components/LpTable.vue.d.ts +6 -0
  222. package/dist/components/LpTable.vue.js +74 -35
  223. package/dist/components/LpTableFilter.vue.js +1 -1
  224. package/dist/components/LpTableOfContents.vue.js +1 -1
  225. package/dist/components/LpTabs.vue.d.ts +1 -1
  226. package/dist/components/LpTabs.vue.js +14 -5
  227. package/dist/components/LpTagsInput.vue.d.ts +6 -0
  228. package/dist/components/LpTagsInput.vue.js +1 -1
  229. package/dist/components/LpTextarea.vue.d.ts +8 -1
  230. package/dist/components/LpTextarea.vue.js +1 -1
  231. package/dist/components/LpThemeStudio.vue.js +1 -1
  232. package/dist/components/LpThemeSwitcher.vue.js +1 -1
  233. package/dist/components/LpTimeField.vue.d.ts +6 -0
  234. package/dist/components/LpTimeField.vue.js +1 -1
  235. package/dist/components/LpToaster.vue.js +1 -1
  236. package/dist/components/LpTooltip.vue.js +1 -1
  237. package/dist/components/LpTopologyCanvas.vue.js +1 -1
  238. package/dist/components/LpTour.vue.js +1 -1
  239. package/dist/components/LpTruncate.vue.js +1 -1
  240. package/dist/components/LpUptimeBar.vue.d.ts +18 -9
  241. package/dist/components/LpUptimeBar.vue.js +1 -1
  242. package/dist/components/MenuTitle.vue.js +1 -1
  243. package/dist/components/OptionContent.vue.js +1 -1
  244. package/dist/components/PalettePreviewBoundary.vue.d.ts +13 -0
  245. package/dist/components/PalettePreviewBoundary.vue.js +4 -0
  246. package/dist/components/PickerField.vue.js +1 -1
  247. package/dist/components/RevealToggle.vue.js +1 -1
  248. package/dist/components/TourCard.vue.js +1 -1
  249. package/dist/components/commandPalette.d.ts +33 -0
  250. package/dist/components/commandPalette.js +21 -1
  251. package/dist/components/commandSearch.d.ts +5 -0
  252. package/dist/components/commandSearch.js +22 -2
  253. package/dist/components/format.d.ts +7 -0
  254. package/dist/components/format.js +4 -0
  255. package/dist/components/menuWhen.js +1 -1
  256. package/dist/components/uptimeBar.d.ts +45 -0
  257. package/dist/components/uptimeBar.js +51 -0
  258. package/dist/composables/scroll.d.ts +5 -0
  259. package/dist/composables/scroll.js +7 -0
  260. package/dist/composables/useField.d.ts +4 -0
  261. package/dist/composables/useField.js +3 -0
  262. package/dist/composables/usePaletteCommands.d.ts +61 -0
  263. package/dist/composables/usePaletteCommands.js +226 -0
  264. package/dist/composables/useReveal.js +21 -0
  265. package/dist/composables/useView.js +5 -1
  266. package/dist/icons-all.js +1 -1
  267. package/dist/index.d.ts +14 -1
  268. package/dist/index.js +101 -85
  269. package/dist/theme/palette.d.ts +9 -0
  270. package/dist/theme/studio.d.ts +12 -1
  271. package/package.json +1 -1
  272. package/src/component-names.ts +2 -0
  273. package/src/components/LpAutocomplete.vue +6 -1
  274. package/src/components/LpButton.vue +5 -1
  275. package/src/components/LpCheckbox.vue +7 -2
  276. package/src/components/LpCommandPalette.vue +263 -29
  277. package/src/components/LpCommandScope.vue +35 -0
  278. package/src/components/LpContextMenu.vue +13 -2
  279. package/src/components/LpDisclosure.vue +5 -1
  280. package/src/components/LpDropdownMenu.vue +13 -2
  281. package/src/components/LpFormField.vue +3 -0
  282. package/src/components/LpInput.vue +6 -1
  283. package/src/components/LpNumberField.vue +6 -1
  284. package/src/components/LpNumberFlow.vue +12 -2
  285. package/src/components/LpPaletteFacts.vue +11 -6
  286. package/src/components/LpPaletteStats.vue +12 -5
  287. package/src/components/LpPaletteTheme.vue +48 -0
  288. package/src/components/LpPasswordInput.vue +3 -0
  289. package/src/components/LpRadioGroup.vue +4 -1
  290. package/src/components/LpRangeSlider.vue +6 -1
  291. package/src/components/LpSecretField.vue +3 -0
  292. package/src/components/LpSegmented.vue +6 -1
  293. package/src/components/LpSelect.vue +41 -2
  294. package/src/components/LpSlider.vue +6 -1
  295. package/src/components/LpSwitch.vue +6 -1
  296. package/src/components/LpTable.vue +35 -2
  297. package/src/components/LpTableOfContents.vue +2 -4
  298. package/src/components/LpTabs.vue +7 -0
  299. package/src/components/LpTagsInput.vue +6 -1
  300. package/src/components/LpTextarea.vue +7 -2
  301. package/src/components/LpThemeStudio.vue +7 -5
  302. package/src/components/LpThemeSwitcher.vue +3 -0
  303. package/src/components/LpTimeField.vue +6 -1
  304. package/src/components/LpTooltip.vue +23 -1
  305. package/src/components/LpUptimeBar.vue +69 -41
  306. package/src/components/PalettePreviewBoundary.vue +5 -0
  307. package/src/components/commandPalette.ts +22 -1
  308. package/src/components/commandSearch.ts +23 -1
  309. package/src/components/format.ts +10 -0
  310. package/src/components/uptimeBar.ts +98 -0
  311. package/src/composables/scroll.ts +11 -0
  312. package/src/composables/useField.ts +7 -0
  313. package/src/composables/usePaletteCommands.ts +226 -0
  314. package/src/composables/useReveal.ts +29 -0
  315. package/src/composables/useView.ts +5 -1
  316. package/src/index.ts +18 -1
  317. package/src/kit-icons.ts +1 -1
  318. package/src/theme/palette.ts +26 -0
  319. package/src/theme/studio.ts +15 -8
  320. package/dist/assets/LpTabs-BJ-nrJuI.css +0 -18
  321. package/dist/chunks/icons-4IywzkHk.js +0 -43
@@ -1,4 +1,5 @@
1
1
  import { defineComponent, useSlots, computed, useId, openBlock, createBlock, resolveDynamicComponent, normalizeClass, unref, withCtx, createElementBlock, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, mergeProps } from "vue";
2
+ import { usePaletteControl } from "../composables/usePaletteCommands.js";
2
3
  import { SwitchRoot, SwitchThumb } from "reka-ui";
3
4
  import { useFieldControl } from "../composables/useField.js";
4
5
  import { useOptimisticToggle } from "../composables/useOptimisticToggle.js";
@@ -17,6 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
18
  ...__default__,
18
19
  __name: "LpSwitch",
19
20
  props: {
21
+ palette: { type: [Boolean, Object], default: void 0 },
20
22
  modelValue: { type: Boolean },
21
23
  disabled: { type: Boolean },
22
24
  label: {},
@@ -49,6 +51,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
51
  function onUpdate(value) {
50
52
  void set(value);
51
53
  }
54
+ usePaletteControl({ label: () => props.label, disabled: () => field.value.disabled || pending.value, editorProps: () => ({ action: void 0, "onUpdate:modelValue": onUpdate }) });
52
55
  return (_ctx, _cache) => {
53
56
  return openBlock(), createBlock(resolveDynamicComponent(labelled.value ? "label" : "span"), {
54
57
  class: normalizeClass(labelled.value ? [unref(rootClass), unref(field).disabled && "cursor-not-allowed"] : "contents")
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, openBlock, createElementBlock, createBlock, createCommentVNode, createElementVNode, Fragment, unref, normalizeClass, toDisplayString, createVNode, withCtx, renderList } from "vue";
2
- import { _ as _sfc_main$3 } from "./LpCheckbox-DHc2bHDe.js";
3
- import { _ as _sfc_main$1 } from "./LpInput-CDuwODJG.js";
2
+ import { _ as _sfc_main$3 } from "./LpCheckbox-BoOuLnGB.js";
3
+ import { _ as _sfc_main$1 } from "./LpInput-2H-5ILOB.js";
4
4
  import { _ as _sfc_main$2 } from "./LpShift-DXNsauQZ.js";
5
5
  import { usePaintSelect } from "../composables/usePaintSelect.js";
6
6
  import { matchesQuery, onlyValues, unhideValues, hideAllValues, invertHidden } from "../components/tableFilter.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, ref, useId, onMounted, watch, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeStyle, normalizeClass, createBlock, unref, createCommentVNode, createTextVNode } from "vue";
2
2
  import { Motion } from "motion-v";
3
3
  import { useLabels } from "../composables/useLpConfig.js";
4
- import { scrollParent } from "../composables/scroll.js";
4
+ import { scrollParent, atScrollEnd } from "../composables/scroll.js";
5
5
  import { usePillTransition } from "../composables/usePillTransition.js";
6
6
  const _hoisted_1 = ["aria-label"];
7
7
  const _hoisted_2 = { class: "mb-2.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted" };
@@ -54,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
54
  const line = Math.max(props.offset, view / 4);
55
55
  for (const el of headings) if (el.getBoundingClientRect().top - top <= line + 1) current = el.id;
56
56
  const scrolled = scroller ? scroller.scrollTop : window.scrollY;
57
- const end = scroller ? scroller.scrollTop + scroller.clientHeight >= scroller.scrollHeight - 2 : window.scrollY + window.innerHeight >= document.documentElement.scrollHeight - 2;
57
+ const end = atScrollEnd(headings[0]);
58
58
  if (scrolled > 0 && end) current = headings[headings.length - 1].id;
59
59
  activeId.value = current;
60
60
  };
@@ -1,4 +1,5 @@
1
1
  import { defineComponent, useAttrs, computed, ref, useId, watch, openBlock, createBlock, normalizeStyle, unref, normalizeClass, withCtx, createElementVNode, createVNode, mergeProps, TransitionGroup, createElementBlock, Fragment, renderList, createCommentVNode, toDisplayString, withModifiers } from "vue";
2
+ import { usePaletteControl } from "../composables/usePaletteCommands.js";
2
3
  import { TagsInputRoot, TagsInputItem, TagsInputItemText, TagsInputItemDelete, TagsInputInput, PopoverRoot, PopoverAnchor, PopoverPortal, PopoverContent } from "reka-ui";
3
4
  import { useField, useFieldControl } from "../composables/useField.js";
4
5
  import { prefersReducedMotion } from "../composables/easing.js";
@@ -6,12 +7,12 @@ import { useFieldNotice } from "../composables/useFieldNotice.js";
6
7
  import { useShift } from "../composables/useShift.js";
7
8
  import { useLabels } from "../composables/useLpConfig.js";
8
9
  import { mergeClass } from "../composables/useMergedClass.js";
9
- import { _ as _sfc_main$4 } from "./LpFieldNotice-CurbNuXI.js";
10
- import { _ as _sfc_main$1 } from "./FieldWrapper-BiennROB.js";
10
+ import { _ as _sfc_main$4 } from "./LpFieldNotice-CPI8EwtU.js";
11
+ import { _ as _sfc_main$1 } from "./FieldWrapper-YzbvvC3M.js";
11
12
  import { BADGE_REMOVE } from "../components/badge.js";
12
- import { _ as _sfc_main$2 } from "./LpBadge-BBq1Er9T.js";
13
- import { _ as _sfc_main$3 } from "./LpIcon-HJP5xMz4.js";
14
- import { _ as _sfc_main$5 } from "./OptionContent-CmYUUeWj.js";
13
+ import { _ as _sfc_main$2 } from "./LpBadge-C8fKEmTF.js";
14
+ import { _ as _sfc_main$3 } from "./LpIcon-DkP-9mzK.js";
15
+ import { _ as _sfc_main$5 } from "./OptionContent-DPzNsybd.js";
15
16
  import { POPOVER_PANEL, OPTION_ITEM, optionStagger } from "../components/dropdown.js";
16
17
  import { splitTags, addTags } from "../components/tags.js";
17
18
  import { usePortalTarget, useOutsideGuard } from "../composables/useView.js";
@@ -40,6 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
41
  ...__default__,
41
42
  __name: "LpTagsInput",
42
43
  props: {
44
+ palette: { type: [Boolean, Object], default: void 0 },
43
45
  modelValue: { default: () => [] },
44
46
  placeholder: {},
45
47
  delimiter: { default: () => [",", "\n", " "] },
@@ -297,6 +299,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
297
299
  __expose({ focus: () => inputEl.value?.focus(), add: (value) => add(value) });
298
300
  const portalTo = usePortalTarget();
299
301
  const guardOutside = useOutsideGuard();
302
+ usePaletteControl({ label: () => props.label, disabled: () => field.value.disabled, invalid: () => field.value.invalid, editorProps: () => ({ label: void 0, hint: void 0, error: void 0 }) });
300
303
  return (_ctx, _cache) => {
301
304
  return openBlock(), createBlock(_sfc_main$1, {
302
305
  wrapped: hasField.value,
@@ -1,13 +1,15 @@
1
1
  import { defineComponent, computed, useAttrs, openBlock, createBlock, normalizeStyle, unref, normalizeClass, withCtx, createElementVNode, mergeProps } from "vue";
2
+ import { usePaletteControl } from "../composables/usePaletteCommands.js";
2
3
  import { useFieldControl } from "../composables/useField.js";
3
4
  import { mergeClass } from "../composables/useMergedClass.js";
4
- import { _ as _sfc_main$1 } from "./FieldWrapper-BiennROB.js";
5
+ import { _ as _sfc_main$1 } from "./FieldWrapper-YzbvvC3M.js";
5
6
  const _hoisted_1 = ["id", "value", "placeholder", "rows", "disabled", "required", "aria-invalid", "aria-describedby"];
6
7
  const __default__ = { inheritAttrs: false };
7
8
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  ...__default__,
9
10
  __name: "LpTextarea",
10
11
  props: {
12
+ palette: { type: [Boolean, Object], default: void 0 },
11
13
  modelValue: {},
12
14
  placeholder: {},
13
15
  rows: {},
@@ -42,6 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
44
  hasField.value ? "" : attrs.class
43
45
  )
44
46
  );
47
+ usePaletteControl({ label: () => props.label, disabled: () => field.value.disabled, invalid: () => field.value.invalid, editorProps: () => ({ label: void 0, hint: void 0, error: void 0 }) });
45
48
  return (_ctx, _cache) => {
46
49
  return openBlock(), createBlock(_sfc_main$1, {
47
50
  wrapped: hasField.value,
@@ -1,13 +1,14 @@
1
1
  import { shallowRef, computed, ref, watch, watchEffect, defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, createBlock, withCtx, createVNode, createTextVNode, createCommentVNode, renderSlot, normalizeClass, normalizeStyle, Fragment, renderList } from "vue";
2
+ import { u as usePaletteTheme } from "./palette-BiY7yQZL.js";
2
3
  import { useLabels } from "../composables/useLpConfig.js";
3
4
  import { usePersisted } from "../composables/usePersisted.js";
4
5
  import { parseColor, rgbToHex } from "../components/color.js";
5
6
  import { p as presets, u as useTheme, o as themeToCssRule, s as serializeTheme } from "./useTheme-BOV_-AiY.js";
6
- import { _ as _sfc_main$1 } from "./LpButton-CVxBfGjd.js";
7
- import { _ as _sfc_main$6 } from "./LpCodeBlock-BGsQhxw8.js";
8
- import { _ as _sfc_main$4 } from "./LpColorPicker-B7HSIFmn.js";
9
- import { _ as _sfc_main$2 } from "./LpIcon-HJP5xMz4.js";
10
- import { _ as _sfc_main$5 } from "./LpSegmented-BO99Sr4m.js";
7
+ import { _ as _sfc_main$1 } from "./LpButton-BQDAFXBd.js";
8
+ import { _ as _sfc_main$6 } from "./LpCodeBlock-Czu-fq1M.js";
9
+ import { _ as _sfc_main$4 } from "./LpColorPicker-Ee1DZiRd.js";
10
+ import { _ as _sfc_main$2 } from "./LpIcon-DkP-9mzK.js";
11
+ import { _ as _sfc_main$5 } from "./LpSegmented-D2VST0o3.js";
11
12
  import { _ as _sfc_main$3 } from "./LpThemeStudioSection-BwhqYDLf.js";
12
13
  function defineTheme(base, overrides = {}) {
13
14
  const src = typeof base === "string" ? presets[base] : base;
@@ -169,8 +170,8 @@ function create(key, config) {
169
170
  }
170
171
  });
171
172
  }
172
- const exported = computed(() => {
173
- const s = state.value;
173
+ function exportState(s) {
174
+ const built = build(s);
174
175
  const preset = Object.entries(presets).find(([, p]) => p.name === base(s).name)?.[0];
175
176
  const source = preset ? `"${preset}"` : "yourTheme";
176
177
  const overrides = [];
@@ -178,9 +179,11 @@ function create(key, config) {
178
179
  if (s.size !== "default") overrides.push(`density: ${JSON.stringify(STUDIO_SIZES[s.size])}`);
179
180
  const shaped = overrides.length ? `defineTheme(${source}, { ${overrides.join(", ")} })` : source;
180
181
  const code = s.brand ? `withBrand(${shaped}, "${s.brand}")` : overrides.length ? shaped : preset ? `presets.${preset}` : source;
181
- return { code, json: serializeTheme(theme.value), css: themeToCssRule(theme.value) };
182
- });
183
- return { state, themes, system, theme, brand, changed, exported, pickTheme, tune, reset };
182
+ return { code, json: serializeTheme(built), css: themeToCssRule(built) };
183
+ }
184
+ const exported = computed(() => exportState(state.value));
185
+ const preview = (draft) => ({ theme: build(draft), exported: exportState(draft) });
186
+ return { state, themes, system, theme, brand, changed, exported, pickTheme, tune, reset, preview };
184
187
  }
185
188
  const _hoisted_1 = { class: "flex flex-col gap-4" };
186
189
  const _hoisted_2 = { class: "flex items-center justify-between" };
@@ -246,7 +249,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
246
249
  const r = event.currentTarget?.getBoundingClientRect();
247
250
  return r ? { x: r.left + r.width / 2, y: r.top + r.height / 2 } : void 0;
248
251
  }
249
- const tuneTo = (key) => (value) => studio.tune({ [key]: value });
252
+ const tuneTo = (key, value) => studio.tune({ [key]: value });
253
+ usePaletteTheme(() => studio ?? void 0);
250
254
  return (_ctx, _cache) => {
251
255
  return openBlock(), createElementBlock("div", _hoisted_1, [
252
256
  createElementVNode("div", _hoisted_2, [
@@ -347,7 +351,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
347
351
  "model-value": unref(state).corners,
348
352
  size: "sm",
349
353
  options: [{ value: "sharp", label: unref(text).sharp }, { value: "default", label: unref(text).default }, { value: "round", label: unref(text).round }],
350
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => tuneTo("corners"))
354
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => tuneTo("corners", $event))
351
355
  }, null, 8, ["model-value", "options"])
352
356
  ]),
353
357
  _: 1
@@ -361,7 +365,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
361
365
  "model-value": unref(state).size,
362
366
  size: "sm",
363
367
  options: [{ value: "compact", label: unref(text).compact }, { value: "default", label: unref(text).default }, { value: "comfortable", label: unref(text).comfortable }],
364
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => tuneTo("size"))
368
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => tuneTo("size", $event))
365
369
  }, null, 8, ["model-value", "options"])
366
370
  ]),
367
371
  _: 1
@@ -375,7 +379,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
375
379
  "model-value": unref(state).motion,
376
380
  size: "sm",
377
381
  options: [{ value: "fast", label: unref(text).fast }, { value: "normal", label: unref(text).normal }, { value: "slow", label: unref(text).slow }],
378
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => tuneTo("motion"))
382
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => tuneTo("motion", $event))
379
383
  }, null, 8, ["model-value", "options"])
380
384
  ]),
381
385
  _: 1
@@ -1,12 +1,13 @@
1
1
  import { defineComponent, ref, useId, computed, onMounted, openBlock, createBlock, unref, withCtx, createVNode, createElementVNode, normalizeClass, createElementBlock, createCommentVNode, renderSlot, normalizeProps, guardReactiveProps } from "vue";
2
+ import { u as usePaletteTheme } from "./palette-BiY7yQZL.js";
2
3
  import { PopoverRoot, PopoverAnchor, PopoverPortal, PopoverContent } from "reka-ui";
3
4
  import { useLabels } from "../composables/useLpConfig.js";
4
5
  import { usePortalTarget, useOutsideGuard } from "../composables/useView.js";
5
6
  import { u as useTheme, p as presets } from "./useTheme-BOV_-AiY.js";
6
- import { u as useThemeStudio, S as STUDIO_SYSTEM, _ as _sfc_main$5 } from "./LpThemeStudio-DxVZMtzN.js";
7
+ import { u as useThemeStudio, S as STUDIO_SYSTEM, _ as _sfc_main$5 } from "./LpThemeStudio-B2nPaG-h.js";
7
8
  import { POPOVER_PANEL } from "../components/dropdown.js";
8
- import { _ as _sfc_main$1 } from "./LpContextMenu-Cj96ENDC.js";
9
- import { _ as _sfc_main$2 } from "./LpIcon-HJP5xMz4.js";
9
+ import { _ as _sfc_main$1 } from "./LpContextMenu-DXpFJjlO.js";
10
+ import { _ as _sfc_main$2 } from "./LpIcon-DkP-9mzK.js";
10
11
  import { _ as _sfc_main$4 } from "./LpRollingText-DiL717LK.js";
11
12
  import { _ as _sfc_main$3 } from "./LpShift-DXNsauQZ.js";
12
13
  const _hoisted_1 = ["aria-label", "title"];
@@ -168,6 +169,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
168
169
  const triggerLabel = computed(
169
170
  () => props["aria-label"] ?? text.value.trigger.replace("{name}", labelName.value)
170
171
  );
172
+ usePaletteTheme(() => tuner ?? void 0);
171
173
  return (_ctx, _cache) => {
172
174
  return openBlock(), createBlock(unref(PopoverRoot), {
173
175
  open: studioOpen.value,
@@ -1,14 +1,16 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, unref, mergeProps, withCtx, createCommentVNode, createElementBlock, Fragment, renderList, createTextVNode, toDisplayString } from "vue";
2
+ import { usePaletteControl } from "../composables/usePaletteCommands.js";
2
3
  import { Time } from "@internationalized/date";
3
4
  import { TimeFieldRoot, TimeFieldInput } from "reka-ui";
4
5
  import { useFieldControl, focusLeft } from "../composables/useField.js";
5
6
  import { useMergedAttrs } from "../composables/useMergedClass.js";
6
- import { _ as _sfc_main$1 } from "./LpIcon-HJP5xMz4.js";
7
+ import { _ as _sfc_main$1 } from "./LpIcon-DkP-9mzK.js";
7
8
  const __default__ = { inheritAttrs: false };
8
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
10
  ...__default__,
10
11
  __name: "LpTimeField",
11
12
  props: {
13
+ palette: { type: [Boolean, Object], default: void 0 },
12
14
  modelValue: {},
13
15
  disabled: { type: Boolean },
14
16
  invalid: { type: Boolean },
@@ -53,6 +55,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
55
  field.value.invalid ? "border-danger focus-within:ring-danger-soft" : "border-line focus-within:border-brand"
54
56
  ].join(" ")
55
57
  );
58
+ usePaletteControl({ disabled: () => field.value.disabled, invalid: () => field.value.invalid });
56
59
  return (_ctx, _cache) => {
57
60
  return openBlock(), createBlock(unref(TimeFieldRoot), mergeProps({
58
61
  "model-value": value.value,
@@ -4,8 +4,8 @@ import { prefersReducedMotion } from "../composables/easing.js";
4
4
  import { useLabels } from "../composables/useLpConfig.js";
5
5
  import { useToast } from "../composables/useToast.js";
6
6
  import { CLOSE_ICON } from "../components/dropdown.js";
7
- import { _ as _sfc_main$2 } from "./LpCopyButton-DzHjnFs0.js";
8
- import { _ as _sfc_main$1 } from "./LpIcon-HJP5xMz4.js";
7
+ import { _ as _sfc_main$2 } from "./LpCopyButton-Dmq7DmFw.js";
8
+ import { _ as _sfc_main$1 } from "./LpIcon-DkP-9mzK.js";
9
9
  import { toneLook } from "../components/tone.js";
10
10
  import { usePortalTarget } from "../composables/useView.js";
11
11
  const _hoisted_1 = { class: "flex items-start gap-3 p-3.5" };
@@ -1,10 +1,11 @@
1
- import { defineComponent, ref, watch, onBeforeUnmount, openBlock, createBlock, resolveDynamicComponent, unref, normalizeProps, guardReactiveProps, withCtx, createVNode, renderSlot, normalizeStyle, normalizeClass, createTextVNode, toDisplayString } from "vue";
1
+ import { defineComponent, ref, watch, onBeforeUnmount, openBlock, createBlock, resolveDynamicComponent, unref, normalizeProps, guardReactiveProps, withCtx, createVNode, renderSlot, normalizeStyle, normalizeClass, createElementVNode, createTextVNode, toDisplayString } from "vue";
2
2
  import { injectTooltipProviderContext, TooltipProvider, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent } from "reka-ui";
3
3
  import { springStep, springSettled } from "../composables/usePillTransition.js";
4
4
  import { PANEL_SURFACE, TOOLTIP_ANIM } from "../components/dropdown.js";
5
5
  import { prefersReducedMotion } from "../composables/easing.js";
6
6
  import { usePortalTarget, useOutsideGuard } from "../composables/useView.js";
7
- import '../assets/LpTooltip-B61SYd4K.css';const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ import '../assets/LpTooltip-B61SYd4K.css';const EDGE = 8;
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  __name: "LpTooltip",
9
10
  props: {
10
11
  content: {},
@@ -22,6 +23,17 @@ import '../assets/LpTooltip-B61SYd4K.css';const _sfc_main = /* @__PURE__ */ defi
22
23
  const PassThrough = (_, { slots }) => slots.default?.();
23
24
  const target = { x: 0, y: 0 };
24
25
  const offset = ref({ x: 0, y: 0 });
26
+ const tipBody = ref(null);
27
+ function inView(x) {
28
+ const panel = tipBody.value?.parentElement;
29
+ if (!panel) return x;
30
+ const rect = panel.getBoundingClientRect();
31
+ const placed = rect.left - offset.value.x;
32
+ const width = panel.ownerDocument.defaultView?.innerWidth ?? window.innerWidth;
33
+ const min = EDGE - placed;
34
+ const max = width - EDGE - rect.width - placed;
35
+ return max < min ? x : Math.min(max, Math.max(min, x));
36
+ }
25
37
  let sx = { value: 0, velocity: 0 };
26
38
  let sy = { value: 0, velocity: 0 };
27
39
  let frame = 0;
@@ -53,6 +65,7 @@ import '../assets/LpTooltip-B61SYd4K.css';const _sfc_main = /* @__PURE__ */ defi
53
65
  const half = props.side === "top" || props.side === "bottom" ? rect.height / 2 : 0;
54
66
  const dir = props.side === "bottom" ? -1 : 1;
55
67
  target.y = e.clientY - (rect.top + rect.height / 2) + half * dir;
68
+ target.x = inView(target.x);
56
69
  if (prefersReducedMotion()) {
57
70
  offset.value = { x: target.x, y: target.y };
58
71
  return;
@@ -121,9 +134,14 @@ import '../assets/LpTooltip-B61SYd4K.css';const _sfc_main = /* @__PURE__ */ defi
121
134
  style: normalizeStyle(__props.followCursor ? { translate: `${offset.value.x}px ${offset.value.y}px` } : void 0)
122
135
  }, {
123
136
  default: withCtx(() => [
124
- renderSlot(_ctx.$slots, "content", {}, () => [
125
- createTextVNode(toDisplayString(__props.content), 1)
126
- ])
137
+ createElementVNode("div", {
138
+ ref_key: "tipBody",
139
+ ref: tipBody
140
+ }, [
141
+ renderSlot(_ctx.$slots, "content", {}, () => [
142
+ createTextVNode(toDisplayString(__props.content), 1)
143
+ ])
144
+ ], 512)
127
145
  ]),
128
146
  _: 3
129
147
  }, 8, ["onInteractOutside", "onEscapeKeyDown", "side", "side-offset", "data-lp-follow", "class", "style"])
@@ -3,7 +3,7 @@ import { Background } from "@vue-flow/background";
3
3
  import { Controls } from "@vue-flow/controls";
4
4
  import { MarkerType, useVueFlow, VueFlow, SelectionMode, Panel } from "@vue-flow/core";
5
5
  import { MiniMap } from "@vue-flow/minimap";
6
- import { _ as _sfc_main$3 } from "./LpInfraNode-D64hywJI.js";
6
+ import { _ as _sfc_main$3 } from "./LpInfraNode-yTh4-5qa.js";
7
7
  import { _ as _sfc_main$1 } from "./LpLaneNode-HtnQf2FF.js";
8
8
  import { _ as _sfc_main$2 } from "./LpServiceNode-D8uJ8sGk.js";
9
9
  import { _ as _sfc_main$4 } from "./LpWaypointEdge-D8yHlQiw.js";
@@ -8,7 +8,7 @@ import { useMediaQuery } from "../composables/useMediaQuery.js";
8
8
  import { useView, usePortalTarget, viewDocument, viewWindow } from "../composables/useView.js";
9
9
  import { scrollToElement } from "../composables/scroll.js";
10
10
  import { PANEL_SURFACE } from "../components/dropdown.js";
11
- import { _ as _sfc_main$1 } from "./TourCard-BJ8i7dk0.js";
11
+ import { _ as _sfc_main$1 } from "./TourCard--2IfgnUU.js";
12
12
  import { holeOf, panelsAround, holeClip } from "../components/tour.js";
13
13
  const _hoisted_1 = ["aria-label"];
14
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, ref, onMounted, watch, nextTick, computed, openBlock, createElementBlock, mergeProps, unref, createVNode, withCtx, createElementVNode, normalizeStyle, normalizeClass, Fragment, toDisplayString, createTextVNode, createBlock, createCommentVNode } from "vue";
2
2
  import { useMergedAttrs } from "../composables/useMergedClass.js";
3
3
  import { useResizeObserver } from "../composables/useResizeObserver.js";
4
- import { _ as _sfc_main$2 } from "./LpCopyButton-DzHjnFs0.js";
5
- import { _ as _sfc_main$1 } from "./LpTooltip-Cz8SQwRt.js";
4
+ import { _ as _sfc_main$2 } from "./LpCopyButton-Dmq7DmFw.js";
5
+ import { _ as _sfc_main$1 } from "./LpTooltip-BcBvIx4z.js";
6
6
  import { middleTruncate } from "../components/fieldText.js";
7
7
  const _hoisted_1 = ["tabindex"];
8
8
  const _hoisted_2 = { "aria-hidden": "true" };
@@ -1,12 +1,16 @@
1
1
  import { defineComponent, computed, ref, openBlock, createElementBlock, mergeProps, unref, toDisplayString, createCommentVNode, createElementVNode, createVNode, withCtx, createBlock, Fragment, renderList, normalizeStyle, createTextVNode } from "vue";
2
- import { _ as _sfc_main$5 } from "./LpNumberFlow-Cfyh033Q.js";
3
- import { _ as _sfc_main$4 } from "./LpRollingText-DiL717LK.js";
2
+ import { _ as _sfc_main$6 } from "./LpNumberFlow-5khYxsfX.js";
3
+ import { _ as _sfc_main$5 } from "./LpRollingText-DiL717LK.js";
4
+ import { _ as _sfc_main$4 } from "./LpShift-DXNsauQZ.js";
4
5
  import { _ as _sfc_main$2 } from "./LpSkeleton-BB6XIV-w.js";
5
6
  import { _ as _sfc_main$1 } from "./LpSwap-DzE6M3Mg.js";
6
- import { _ as _sfc_main$3 } from "./LpTooltip-Cz8SQwRt.js";
7
+ import { _ as _sfc_main$3 } from "./LpTooltip-BcBvIx4z.js";
7
8
  import { TONES } from "../components/tone.js";
8
9
  import { useMergedAttrs } from "../composables/useMergedClass.js";
9
10
  import { useLabels } from "../composables/useLpConfig.js";
11
+ import { useLocale } from "../composables/useLocale.js";
12
+ import { DEFAULT_UNIT_LABELS, toEpoch, formatTime } from "../components/timeSpan.js";
13
+ import { uptimeShare, UPTIME_SEVERITY, uptimeRange, uptimeFigure } from "../components/uptimeBar.js";
10
14
  import '../assets/LpUptimeBar-B98o9krI.css';const _hoisted_1 = ["aria-busy"];
11
15
  const _hoisted_2 = {
12
16
  key: 0,
@@ -17,21 +21,33 @@ const _hoisted_3 = {
17
21
  class: "text-xs"
18
22
  };
19
23
  const _hoisted_4 = { class: "font-medium text-ink" };
20
- const _hoisted_5 = {
24
+ const _hoisted_5 = { class: "flex min-w-36 flex-col gap-1" };
25
+ const _hoisted_6 = { class: "flex items-center gap-1.5" };
26
+ const _hoisted_7 = {
27
+ key: 1,
28
+ class: "mt-0.5 flex flex-col gap-0.5"
29
+ };
30
+ const _hoisted_8 = { class: "flex-1" };
31
+ const _hoisted_9 = {
32
+ key: 2,
33
+ class: "mt-0.5 flex flex-col gap-0.5 border-t border-current/15 pt-1"
34
+ };
35
+ const _hoisted_10 = {
21
36
  key: 0,
22
- class: "flex items-center gap-1.5"
37
+ class: "opacity-70"
23
38
  };
24
- const _hoisted_6 = ["tabindex", "aria-label", "onPointerenter", "onFocus", "onBlur", "onKeydown"];
25
- const _hoisted_7 = {
39
+ const _hoisted_11 = ["tabindex", "aria-label", "onPointerenter", "onFocus", "onBlur", "onKeydown"];
40
+ const _hoisted_12 = {
26
41
  key: 2,
27
42
  class: "flex items-center gap-2 text-xs text-muted"
28
43
  };
29
- const _hoisted_8 = { class: "shrink-0" };
30
- const _hoisted_9 = {
44
+ const _hoisted_13 = { class: "shrink-0" };
45
+ const _hoisted_14 = {
31
46
  key: 0,
32
47
  class: "shrink-0 text-muted-strong"
33
48
  };
34
- const _hoisted_10 = { class: "shrink-0" };
49
+ const _hoisted_15 = { class: "ml-1 text-muted" };
50
+ const _hoisted_16 = { class: "shrink-0" };
35
51
  const __default__ = { inheritAttrs: false };
36
52
  const _sfc_main = /* @__PURE__ */ defineComponent({
37
53
  ...__default__,
@@ -41,6 +57,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
57
  startLabel: {},
42
58
  endLabel: {},
43
59
  showUptime: { type: Boolean, default: true },
60
+ uptime: {},
61
+ locale: {},
44
62
  title: {},
45
63
  colors: {},
46
64
  labels: {},
@@ -66,17 +84,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
66
84
  down: "Down",
67
85
  maintenance: "Maintenance",
68
86
  empty: "No data",
69
- loading: "Loading"
87
+ loading: "Loading",
88
+ uptime: "uptime"
70
89
  },
71
90
  () => props.labels
72
91
  );
73
92
  const skeletonCount = computed(() => props.segments.length || props.skeletonSlices);
74
- const uptimePct = computed(() => {
75
- const tracked = props.segments.filter((s) => s.status !== "empty");
76
- if (!tracked.length) return null;
77
- const up = tracked.filter((s) => s.status === "operational" || s.status === "maintenance").length;
78
- return up / tracked.length * 100;
79
- });
93
+ const locale = useLocale(() => props.locale);
94
+ const units = useLabels("time", DEFAULT_UNIT_LABELS);
95
+ const uptimePct = computed(() => (props.uptime ?? null) !== null ? props.uptime : uptimeShare(props.segments));
80
96
  const MARK_WIDTH = 0.64;
81
97
  const hovered = ref(null);
82
98
  const tip = computed(() => {
@@ -84,7 +100,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
100
  if (i == null) return null;
85
101
  const seg = props.segments[i];
86
102
  if (!seg) return null;
87
- return { status: seg.status, text: seg.label ?? statusLabel.value[seg.status] };
103
+ return {
104
+ status: seg.status,
105
+ text: seg.label ?? statusLabel.value[seg.status],
106
+ range: seg.start !== void 0 ? uptimeRange(seg.start, seg.end, locale.value) : "",
107
+ parts: UPTIME_SEVERITY.filter((st) => (seg.durations?.[st] ?? 0) > 0).map((st) => ({
108
+ status: st,
109
+ text: statusLabel.value[st],
110
+ time: formatTime(seg.durations[st], "units", units.value, 2)
111
+ })),
112
+ events: (seg.events ?? []).slice(0, 4).map((e) => ({
113
+ status: e.status ?? seg.status,
114
+ text: e.text,
115
+ at: e.at !== void 0 && Number.isFinite(toEpoch(e.at)) ? new Intl.DateTimeFormat(locale.value, { hour: "2-digit", minute: "2-digit" }).format(toEpoch(e.at)) : ""
116
+ })),
117
+ more: Math.max(0, (seg.events?.length ?? 0) - 4)
118
+ };
88
119
  });
89
120
  const focusIndex = ref(-1);
90
121
  const slots = ref([]);
@@ -99,12 +130,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
99
130
  focusIndex.value = next;
100
131
  slots.value[next]?.focus();
101
132
  }
102
- const uptimeDecimals = computed(() => {
103
- const v = uptimePct.value;
104
- if (v == null) return 0;
105
- const trimmed = Number(v.toFixed(2));
106
- return Number.isInteger(trimmed) ? 0 : String(trimmed).split(".")[1].length;
107
- });
133
+ const figure = computed(() => uptimePct.value == null ? null : uptimeFigure(uptimePct.value));
108
134
  const { class: rootClass, attrs: rest } = useMergedAttrs(
109
135
  "flex flex-col gap-1.5"
110
136
  );
@@ -144,17 +170,79 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
144
170
  disabled: hovered.value === null
145
171
  }, {
146
172
  content: withCtx(() => [
147
- tip.value ? (openBlock(), createElementBlock("span", _hoisted_5, [
148
- createElementVNode("span", {
149
- class: "size-1.5 shrink-0 rounded-full",
150
- style: normalizeStyle({ backgroundColor: colorFor(tip.value.status) })
151
- }, null, 4),
152
- createVNode(_sfc_main$4, {
153
- value: tip.value.text,
154
- duration: 180,
155
- align: "start"
156
- }, null, 8, ["value"])
157
- ])) : createCommentVNode("", true)
173
+ tip.value ? (openBlock(), createBlock(_sfc_main$4, {
174
+ key: 0,
175
+ axis: "both",
176
+ class: "flex"
177
+ }, {
178
+ default: withCtx(() => [
179
+ createElementVNode("span", _hoisted_5, [
180
+ createElementVNode("span", _hoisted_6, [
181
+ createElementVNode("span", {
182
+ class: "size-1.5 shrink-0 rounded-full transition-colors duration-[var(--duration-fast)]",
183
+ style: normalizeStyle({ backgroundColor: colorFor(tip.value.status) })
184
+ }, null, 4),
185
+ createVNode(_sfc_main$5, {
186
+ value: tip.value.text,
187
+ duration: 180,
188
+ align: "start",
189
+ class: "font-medium"
190
+ }, null, 8, ["value"])
191
+ ]),
192
+ tip.value.range ? (openBlock(), createBlock(_sfc_main$5, {
193
+ key: 0,
194
+ value: tip.value.range,
195
+ duration: 180,
196
+ align: "start",
197
+ class: "text-[0.7rem] opacity-70 tabular-nums"
198
+ }, null, 8, ["value"])) : createCommentVNode("", true),
199
+ tip.value.parts.length > 1 || tip.value.parts.length === 1 && tip.value.parts[0].status !== tip.value.status ? (openBlock(), createElementBlock("span", _hoisted_7, [
200
+ (openBlock(true), createElementBlock(Fragment, null, renderList(tip.value.parts, (part) => {
201
+ return openBlock(), createElementBlock("span", {
202
+ key: part.status,
203
+ class: "flex items-center gap-1.5 tabular-nums"
204
+ }, [
205
+ createElementVNode("span", {
206
+ class: "size-1.5 shrink-0 rounded-full",
207
+ style: normalizeStyle({ backgroundColor: colorFor(part.status) })
208
+ }, null, 4),
209
+ createElementVNode("span", _hoisted_8, toDisplayString(part.text), 1),
210
+ createVNode(_sfc_main$5, {
211
+ value: part.time,
212
+ duration: 180,
213
+ align: "end",
214
+ class: "opacity-80"
215
+ }, null, 8, ["value"])
216
+ ]);
217
+ }), 128))
218
+ ])) : createCommentVNode("", true),
219
+ tip.value.events.length ? (openBlock(), createElementBlock("span", _hoisted_9, [
220
+ (openBlock(true), createElementBlock(Fragment, null, renderList(tip.value.events, (event, n) => {
221
+ return openBlock(), createElementBlock("span", {
222
+ key: n,
223
+ class: "flex items-baseline gap-1.5"
224
+ }, [
225
+ event.at ? (openBlock(), createBlock(_sfc_main$5, {
226
+ key: 0,
227
+ value: event.at,
228
+ duration: 180,
229
+ align: "start",
230
+ class: "shrink-0 tabular-nums opacity-70"
231
+ }, null, 8, ["value"])) : createCommentVNode("", true),
232
+ createVNode(_sfc_main$5, {
233
+ value: event.text,
234
+ duration: 180,
235
+ align: "start",
236
+ wrap: ""
237
+ }, null, 8, ["value"])
238
+ ]);
239
+ }), 128)),
240
+ tip.value.more ? (openBlock(), createElementBlock("span", _hoisted_10, "+" + toDisplayString(tip.value.more), 1)) : createCommentVNode("", true)
241
+ ])) : createCommentVNode("", true)
242
+ ])
243
+ ]),
244
+ _: 1
245
+ })) : createCommentVNode("", true)
158
246
  ]),
159
247
  default: withCtx(() => [
160
248
  createElementVNode("div", {
@@ -170,7 +258,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
170
258
  type: "button",
171
259
  class: "lp-uptime__slot min-w-0 flex-1 outline-none focus-visible:ring-2 focus-visible:ring-ring",
172
260
  tabindex: i === tabStop.value ? 0 : -1,
173
- "aria-label": seg.label ?? unref(statusLabel)[seg.status],
261
+ "aria-label": [seg.label ?? unref(statusLabel)[seg.status], seg.start !== void 0 ? unref(uptimeRange)(seg.start, seg.end, unref(locale)) : ""].filter(Boolean).join(", "),
174
262
  onPointerenter: ($event) => hovered.value = i,
175
263
  onFocus: ($event) => {
176
264
  focusIndex.value = i;
@@ -190,7 +278,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
190
278
  scale: hovered.value === i ? `${MARK_WIDTH} 1.12` : void 0
191
279
  })
192
280
  }, null, 4)
193
- ], 40, _hoisted_6);
281
+ ], 40, _hoisted_11);
194
282
  }), 128))
195
283
  ], 32)
196
284
  ]),
@@ -199,25 +287,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
199
287
  ]),
200
288
  _: 1
201
289
  }, 8, ["swap-key"]),
202
- __props.startLabel || __props.endLabel || __props.showUptime ? (openBlock(), createElementBlock("div", _hoisted_7, [
203
- createElementVNode("span", _hoisted_8, toDisplayString(__props.startLabel), 1),
204
- _cache[3] || (_cache[3] = createElementVNode("span", { class: "h-px flex-1 bg-line" }, null, -1)),
205
- __props.showUptime ? (openBlock(), createElementBlock("span", _hoisted_9, [
290
+ __props.startLabel || __props.endLabel || __props.showUptime ? (openBlock(), createElementBlock("div", _hoisted_12, [
291
+ createElementVNode("span", _hoisted_13, toDisplayString(__props.startLabel), 1),
292
+ _cache[2] || (_cache[2] = createElementVNode("span", { class: "h-px flex-1 bg-line" }, null, -1)),
293
+ __props.showUptime ? (openBlock(), createElementBlock("span", _hoisted_14, [
206
294
  __props.loading ? (openBlock(), createBlock(_sfc_main$2, {
207
295
  key: 0,
208
296
  class: "inline-block h-[0.9em] w-8 align-middle"
209
- })) : uptimePct.value != null ? (openBlock(), createBlock(_sfc_main$5, {
297
+ })) : figure.value ? (openBlock(), createBlock(_sfc_main$6, {
210
298
  key: 1,
211
- value: uptimePct.value,
212
- decimals: uptimeDecimals.value,
299
+ value: figure.value.value,
300
+ decimals: figure.value.decimals,
301
+ grouped: "",
213
302
  suffix: "%"
214
303
  }, null, 8, ["value", "decimals"])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
215
304
  createTextVNode("—")
216
305
  ], 64)),
217
- _cache[2] || (_cache[2] = createElementVNode("span", { class: "text-muted" }, " uptime", -1))
306
+ createElementVNode("span", _hoisted_15, toDisplayString(unref(statusLabel).uptime), 1)
218
307
  ])) : createCommentVNode("", true),
219
- _cache[4] || (_cache[4] = createElementVNode("span", { class: "h-px flex-1 bg-line" }, null, -1)),
220
- createElementVNode("span", _hoisted_10, toDisplayString(__props.endLabel), 1)
308
+ _cache[3] || (_cache[3] = createElementVNode("span", { class: "h-px flex-1 bg-line" }, null, -1)),
309
+ createElementVNode("span", _hoisted_16, toDisplayString(__props.endLabel), 1)
221
310
  ])) : createCommentVNode("", true)
222
311
  ], 16, _hoisted_1);
223
312
  };