@leavepulse/ui 0.70.0 → 0.71.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 (345) hide show
  1. package/README.md +103 -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/LpRepeater-C1Cw27hj.css +21 -0
  6. package/dist/assets/{LpRollingText-BGnE6q9j.css → LpRollingText-dyOXedGO.css} +7 -0
  7. package/dist/assets/{LpTable-DHxEQ_-3.css → LpTable-DHvorDiU.css} +19 -19
  8. package/dist/assets/LpTabs-CO3EcsNV.css +18 -0
  9. package/dist/chunks/{ContextMenuItems-B5uE8Znw.js → ContextMenuItems-eS7qx9gD.js} +11 -5
  10. package/dist/chunks/{DropzoneLinkField-Bw8Flkhk.js → DropzoneLinkField-DkFhdfEJ.js} +2 -2
  11. package/dist/chunks/{FieldWrapper-BiennROB.js → FieldWrapper-YzbvvC3M.js} +1 -1
  12. package/dist/chunks/{LayoutCanvas-BsJIzhdd.js → LayoutCanvas-Ba4A9QC5.js} +1 -1
  13. package/dist/chunks/{LayoutNode-DJVhkSGk.js → LayoutNode-CTTTLMDM.js} +1 -1
  14. package/dist/chunks/{LpActionBar-CzOFar5t.js → LpActionBar-B7anGlkI.js} +2 -2
  15. package/dist/chunks/{LpAddressInput-CNnLTDZg.js → LpAddressInput-CD0bzrt-.js} +7 -7
  16. package/dist/chunks/{LpAlert-C5igj802.js → LpAlert-BHi7ARqu.js} +1 -1
  17. package/dist/chunks/{LpAppShell-CEUAB8kK.js → LpAppShell-1RmBp6xQ.js} +3 -3
  18. package/dist/chunks/{LpAutocomplete-D92niDHE.js → LpAutocomplete-DDqe2M5g.js} +5 -2
  19. package/dist/chunks/{LpAvatar-CLPl-qOF.js → LpAvatar-DqfKCIdr.js} +1 -1
  20. package/dist/chunks/{LpBadge-HOEPBYmi.js → LpBadge-C8fKEmTF.js} +2 -2
  21. package/dist/chunks/{LpBreadcrumbs-DYoPc3P4.js → LpBreadcrumbs-DhcoStFa.js} +2 -2
  22. package/dist/chunks/{LpButton-CVxBfGjd.js → LpButton-BQDAFXBd.js} +3 -0
  23. package/dist/chunks/{LpCalendar-pVL91-Pl.js → LpCalendar-NmrA47J9.js} +1 -1
  24. package/dist/chunks/{LpCheckbox-DHc2bHDe.js → LpCheckbox-BoOuLnGB.js} +5 -2
  25. package/dist/chunks/{LpCodeBlock-BGsQhxw8.js → LpCodeBlock-Czu-fq1M.js} +2 -2
  26. package/dist/chunks/{LpCodeDisplay-CIKKT2iW.js → LpCodeDisplay-BK2FHbtM.js} +6 -6
  27. package/dist/chunks/{LpColorPicker-DFugXNUi.js → LpColorPicker-Ee1DZiRd.js} +3 -3
  28. package/dist/chunks/LpCommandScope-ubtWDMa0.js +53 -0
  29. package/dist/chunks/{LpConfirmDialog-CfGCux8m.js → LpConfirmDialog-i15pulMT.js} +3 -3
  30. package/dist/chunks/{LpConfirmHost-exB7JmcO.js → LpConfirmHost-D0oGavtd.js} +1 -1
  31. package/dist/chunks/{LpContextMenu-COwOwRgI.js → LpContextMenu-DXpFJjlO.js} +17 -6
  32. package/dist/chunks/{LpCopyButton-DzHjnFs0.js → LpCopyButton-Dmq7DmFw.js} +3 -3
  33. package/dist/chunks/{LpCountdown-Dtq1ihlJ.js → LpCountdown-DTdMF8DL.js} +2 -2
  34. package/dist/chunks/{LpDataList-B-5nHfNw.js → LpDataList-CFPtSsBB.js} +7 -6
  35. package/dist/chunks/{LpDatePicker-BUe1VUC0.js → LpDatePicker-cC9K-Pk8.js} +7 -6
  36. package/dist/chunks/{LpDateRangePicker-C_k65vGR.js → LpDateRangePicker-BVQKPbvo.js} +5 -4
  37. package/dist/chunks/{LpDisclosure-DOarzlAG.js → LpDisclosure-hRnX3FWL.js} +4 -1
  38. package/dist/chunks/{LpDrawer-DGNKRsGq.js → LpDrawer-u4rxnuR-.js} +1 -1
  39. package/dist/chunks/{LpDropdownMenu-CRgrhdAH.js → LpDropdownMenu-BgZ0Z_Im.js} +17 -4
  40. package/dist/chunks/{LpEditable-DTqLt2lT.js → LpEditable-CjxuOVh_.js} +7 -5
  41. package/dist/chunks/{LpEmptyState-KTKipws2.js → LpEmptyState-CKFTtQgJ.js} +1 -1
  42. package/dist/chunks/{LpFieldNotice-CurbNuXI.js → LpFieldNotice-CPI8EwtU.js} +1 -1
  43. package/dist/chunks/{LpFileTree-DMISXVHC.js → LpFileTree-BH0gNlSJ.js} +2 -2
  44. package/dist/chunks/{LpFileTreeNode-CPXB_Yy3.js → LpFileTreeNode-gPVB1oXM.js} +4 -4
  45. package/dist/chunks/{LpFormField-BWwgm1E4.js → LpFormField-gRASfyj2.js} +4 -1
  46. package/dist/chunks/{LpGauge-Bk8TwJj0.js → LpGauge-BdjPGnqw.js} +2 -2
  47. package/dist/chunks/{LpHintLayer-p4hqzdyA.js → LpHintLayer-C2asBIfs.js} +2 -2
  48. package/dist/chunks/{LpHints-CCrhRfy9.js → LpHints-CNZQ76JV.js} +3 -3
  49. package/dist/chunks/{LpIcon-HJP5xMz4.js → LpIcon-DkP-9mzK.js} +1 -1
  50. package/dist/chunks/{LpInfraNode-CUC3t4na.js → LpInfraNode-yTh4-5qa.js} +2 -2
  51. package/dist/chunks/{LpInput-CDuwODJG.js → LpInput-2H-5ILOB.js} +5 -2
  52. package/dist/chunks/{LpLightbox-XJ0LpTcZ.js → LpLightbox-lAt5uIfx.js} +2 -2
  53. package/dist/chunks/{LpLogViewer-elZHbj85.js → LpLogViewer-x78YfhJf.js} +5 -5
  54. package/dist/chunks/{LpMapPicker-BtIl7NOM.js → LpMapPicker-Dp5RSCi9.js} +1 -1
  55. package/dist/chunks/{LpMediaGallery-D5swlmZ_.js → LpMediaGallery-D92oJfY_.js} +3 -3
  56. package/dist/chunks/{LpModal-eBMt2Fqn.js → LpModal-CpH0bNo7.js} +1 -1
  57. package/dist/chunks/{LpModalNav-D4Z0wVHR.js → LpModalNav-BH4ANQGJ.js} +4 -4
  58. package/dist/chunks/{LpNotificationBell-DPZmP5dM.js → LpNotificationBell-BdUQqZhs.js} +8 -8
  59. package/dist/chunks/{LpNumberField-B9k-h2HE.js → LpNumberField-DZY3Z670.js} +4 -1
  60. package/dist/chunks/{LpNumberFlow-Cfyh033Q.js → LpNumberFlow-5khYxsfX.js} +6 -3
  61. package/dist/chunks/{LpPagination-VNCX6pFC.js → LpPagination-DbeACavM.js} +1 -1
  62. package/dist/chunks/LpPaletteTheme-CqWNRwHE.js +104 -0
  63. package/dist/chunks/{LpPasswordInput-DTV18FIh.js → LpPasswordInput-BzAZsf5V.js} +14 -8
  64. package/dist/chunks/{LpPhoneInput-C60tx1tC.js → LpPhoneInput-BMpd-0QR.js} +2 -2
  65. package/dist/chunks/{LpPie-CFuV7pZv.js → LpPie-DdFSTbGE.js} +5 -5
  66. package/dist/chunks/{LpPipeline-D81yh_NX.js → LpPipeline-zjEM1Lwc.js} +4 -4
  67. package/dist/chunks/{LpPopover-BEIcqb9p.js → LpPopover-DmZ3wUtP.js} +6 -5
  68. package/dist/chunks/{LpProgress-CE-m5OpD.js → LpProgress-BX33EKkN.js} +1 -1
  69. package/dist/chunks/{LpQuota-2Sw_gqcJ.js → LpQuota-DqNv1yjs.js} +3 -3
  70. package/dist/chunks/{LpRadioGroup-CGBr5nIp.js → LpRadioGroup-CsXeV9Ct.js} +4 -1
  71. package/dist/chunks/{LpRangeCalendar-c5qj7YcC.js → LpRangeCalendar-l-0nSFmY.js} +1 -1
  72. package/dist/chunks/{LpRangeSlider-Dv6lNvHY.js → LpRangeSlider-CM-0ZITZ.js} +3 -0
  73. package/dist/chunks/{LpRelativeTime-CKzVqAo9.js → LpRelativeTime-UM8EkfrN.js} +2 -2
  74. package/dist/chunks/LpRepeater-OvzByE5L.js +180 -0
  75. package/dist/chunks/{LpRollingText-DB7upf-5.js → LpRollingText-DiL717LK.js} +4 -3
  76. package/dist/chunks/{LpSecretField-DMfdJ1cQ.js → LpSecretField-DwQiPOko.js} +27 -16
  77. package/dist/chunks/{LpSection-BW4xJ-Li.js → LpSection-DcQsieHG.js} +1 -1
  78. package/dist/chunks/{LpSegmented-BO99Sr4m.js → LpSegmented-D2VST0o3.js} +4 -1
  79. package/dist/chunks/{LpSelect-B4f_yRi5.js → LpSelect-DYX2-u5A.js} +43 -18
  80. package/dist/chunks/{LpSidebar-D-M0Y_7U.js → LpSidebar-D44peKq2.js} +3 -3
  81. package/dist/chunks/{LpSidebarNav-DF-TYxOV.js → LpSidebarNav--VwkXO_a.js} +3 -3
  82. package/dist/chunks/{LpSlider-DuoRpOrH.js → LpSlider-DxYoCJJO.js} +3 -0
  83. package/dist/chunks/{LpStat-B2ix1Q7t.js → LpStat-DIsQfbeD.js} +3 -3
  84. package/dist/chunks/{LpStatus-C7kx5PKE.js → LpStatus-BQU1TUsv.js} +2 -2
  85. package/dist/chunks/{LpStepMark-DK-5BKAt.js → LpStepMark-CXa7DJy_.js} +2 -2
  86. package/dist/chunks/{LpStepper-DRFfdJaq.js → LpStepper-C9RM_yTG.js} +1 -1
  87. package/dist/chunks/{LpSwitch-DrzKrZZV.js → LpSwitch-bGZxUDSx.js} +3 -0
  88. package/dist/chunks/{LpTableFilter-DyvHGbOk.js → LpTableFilter-CTZMqFDU.js} +2 -2
  89. package/dist/chunks/{LpTableOfContents-rYvo8z5T.js → LpTableOfContents-CraicEs4.js} +2 -2
  90. package/dist/chunks/{LpTagsInput-DgpBFRV2.js → LpTagsInput-DrjmrOge.js} +8 -5
  91. package/dist/chunks/{LpTextarea-DiWjeVoJ.js → LpTextarea-BbYqmG1S.js} +4 -1
  92. package/dist/chunks/{LpThemeStudio-DguwHdGt.js → LpThemeStudio-B2nPaG-h.js} +18 -14
  93. package/dist/chunks/{LpThemeSwitcher-D5uz0MhK.js → LpThemeSwitcher-C0A5sg_E.js} +6 -4
  94. package/dist/chunks/{LpTimeField-BFQVf_PW.js → LpTimeField-DQ8WvPr2.js} +4 -1
  95. package/dist/chunks/{LpToaster-Wv9ksj4q.js → LpToaster-BTTl_wuy.js} +2 -2
  96. package/dist/chunks/{LpTooltip-Cz8SQwRt.js → LpTooltip-BcBvIx4z.js} +23 -5
  97. package/dist/chunks/{LpTopologyCanvas-ZhKthfgz.js → LpTopologyCanvas-B0wEvAoq.js} +1 -1
  98. package/dist/chunks/{LpTour-NfRJNEIP.js → LpTour-BgCfNlaW.js} +1 -1
  99. package/dist/chunks/{LpTruncate-D_5Pfv5B.js → LpTruncate-TcqfkyJM.js} +2 -2
  100. package/dist/chunks/{LpUptimeBar-DWegV2p6.js → LpUptimeBar-DRadGq4Y.js} +136 -47
  101. package/dist/chunks/{MenuTitle-BjQZX8tQ.js → MenuTitle-Dab3EGOp.js} +1 -1
  102. package/dist/chunks/{OptionContent-CmYUUeWj.js → OptionContent-DPzNsybd.js} +1 -1
  103. package/dist/chunks/PalettePreviewBoundary-B0Hhu3Yw.js +20 -0
  104. package/dist/chunks/{PickerField-CHRS1h7K.js → PickerField-DwLw7j0L.js} +26 -17
  105. package/dist/chunks/{RevealToggle-C-KzaQGJ.js → RevealToggle-BVFM_FAU.js} +3 -3
  106. package/dist/chunks/{TourCard-BXuVHsfn.js → TourCard--2IfgnUU.js} +3 -3
  107. package/dist/chunks/icons-CLu1iR1j.js +43 -0
  108. package/dist/chunks/palette-BiY7yQZL.js +29 -0
  109. package/dist/component-names.d.ts +1 -1
  110. package/dist/components/ContextMenuItems.vue.js +1 -1
  111. package/dist/components/DropzoneLinkField.vue.js +1 -1
  112. package/dist/components/FieldWrapper.vue.js +1 -1
  113. package/dist/components/LayoutCanvas.vue.js +1 -1
  114. package/dist/components/LayoutNode.vue.js +1 -1
  115. package/dist/components/LpActionBar.vue.js +1 -1
  116. package/dist/components/LpAddressInput.vue.d.ts +1 -1
  117. package/dist/components/LpAddressInput.vue.js +1 -1
  118. package/dist/components/LpAlert.vue.d.ts +3 -3
  119. package/dist/components/LpAlert.vue.js +1 -1
  120. package/dist/components/LpAppShell.vue.js +1 -1
  121. package/dist/components/LpAutocomplete.vue.d.ts +7 -1
  122. package/dist/components/LpAutocomplete.vue.js +1 -1
  123. package/dist/components/LpAvatar.vue.js +1 -1
  124. package/dist/components/LpBadge.vue.d.ts +2 -2
  125. package/dist/components/LpBadge.vue.js +1 -1
  126. package/dist/components/LpBreadcrumbs.vue.js +1 -1
  127. package/dist/components/LpButton.vue.d.ts +4 -0
  128. package/dist/components/LpButton.vue.js +1 -1
  129. package/dist/components/LpCalendar.vue.js +1 -1
  130. package/dist/components/LpChart.vue.js +27 -25
  131. package/dist/components/LpCheckbox.vue.d.ts +8 -1
  132. package/dist/components/LpCheckbox.vue.js +1 -1
  133. package/dist/components/LpCodeBlock.vue.js +1 -1
  134. package/dist/components/LpCodeDisplay.vue.js +1 -1
  135. package/dist/components/LpColorPicker.vue.d.ts +2 -2
  136. package/dist/components/LpColorPicker.vue.js +1 -1
  137. package/dist/components/LpCommandPalette.vue.d.ts +43 -7
  138. package/dist/components/LpCommandPalette.vue.js +451 -126
  139. package/dist/components/LpCommandScope.vue.d.ts +28 -0
  140. package/dist/components/LpCommandScope.vue.js +4 -0
  141. package/dist/components/LpConfirmDialog.vue.js +1 -1
  142. package/dist/components/LpConfirmHost.vue.js +1 -1
  143. package/dist/components/LpContextMenu.vue.d.ts +5 -1
  144. package/dist/components/LpContextMenu.vue.js +1 -1
  145. package/dist/components/LpCopyButton.vue.d.ts +1 -1
  146. package/dist/components/LpCopyButton.vue.js +1 -1
  147. package/dist/components/LpCountdown.vue.js +1 -1
  148. package/dist/components/LpDataList.vue.js +1 -1
  149. package/dist/components/LpDatePicker.vue.d.ts +2 -0
  150. package/dist/components/LpDatePicker.vue.js +1 -1
  151. package/dist/components/LpDateRangePicker.vue.d.ts +2 -0
  152. package/dist/components/LpDateRangePicker.vue.js +1 -1
  153. package/dist/components/LpDisclosure.vue.d.ts +4 -0
  154. package/dist/components/LpDisclosure.vue.js +1 -1
  155. package/dist/components/LpDock.vue.js +2 -2
  156. package/dist/components/LpDrawer.vue.js +1 -1
  157. package/dist/components/LpDropdownMenu.vue.d.ts +5 -1
  158. package/dist/components/LpDropdownMenu.vue.js +1 -1
  159. package/dist/components/LpDropzone.vue.js +2 -2
  160. package/dist/components/LpEditable.vue.js +1 -1
  161. package/dist/components/LpEmptyState.vue.js +1 -1
  162. package/dist/components/LpFieldNotice.vue.js +1 -1
  163. package/dist/components/LpFileTree.vue.d.ts +1 -1
  164. package/dist/components/LpFileTree.vue.js +1 -1
  165. package/dist/components/LpFileTreeNode.vue.js +1 -1
  166. package/dist/components/LpFormField.vue.js +1 -1
  167. package/dist/components/LpGauge.vue.js +1 -1
  168. package/dist/components/LpHintLayer.vue.js +1 -1
  169. package/dist/components/LpHints.vue.js +1 -1
  170. package/dist/components/LpIcon.vue.js +1 -1
  171. package/dist/components/LpImageEditor.vue.js +3 -2
  172. package/dist/components/LpInfraNode.vue.js +1 -1
  173. package/dist/components/LpInput.vue.d.ts +6 -0
  174. package/dist/components/LpInput.vue.js +1 -1
  175. package/dist/components/LpLightbox.vue.js +1 -1
  176. package/dist/components/LpLoader.vue.d.ts +1 -1
  177. package/dist/components/LpLogViewer.vue.js +1 -1
  178. package/dist/components/LpMapPicker.vue.js +1 -1
  179. package/dist/components/LpMediaGallery.vue.d.ts +2 -2
  180. package/dist/components/LpMediaGallery.vue.js +1 -1
  181. package/dist/components/LpModal.vue.js +1 -1
  182. package/dist/components/LpModalNav.vue.js +1 -1
  183. package/dist/components/LpNotificationBell.vue.js +1 -1
  184. package/dist/components/LpNumberField.vue.d.ts +6 -0
  185. package/dist/components/LpNumberField.vue.js +1 -1
  186. package/dist/components/LpNumberFlow.vue.js +1 -1
  187. package/dist/components/LpPagination.vue.js +1 -1
  188. package/dist/components/LpPaletteFacts.vue.d.ts +1 -0
  189. package/dist/components/LpPaletteFacts.vue.js +40 -26
  190. package/dist/components/LpPaletteHeader.vue.js +2 -2
  191. package/dist/components/LpPaletteStats.vue.d.ts +1 -0
  192. package/dist/components/LpPaletteStats.vue.js +45 -21
  193. package/dist/components/LpPaletteTheme.vue.d.ts +7 -0
  194. package/dist/components/LpPaletteTheme.vue.js +4 -0
  195. package/dist/components/LpPasswordInput.vue.d.ts +7 -1
  196. package/dist/components/LpPasswordInput.vue.js +1 -1
  197. package/dist/components/LpPhoneInput.vue.js +1 -1
  198. package/dist/components/LpPie.vue.js +1 -1
  199. package/dist/components/LpPipeline.vue.js +1 -1
  200. package/dist/components/LpPopover.vue.js +1 -1
  201. package/dist/components/LpProgress.vue.d.ts +1 -1
  202. package/dist/components/LpProgress.vue.js +1 -1
  203. package/dist/components/LpQuota.vue.js +1 -1
  204. package/dist/components/LpRadioGroup.vue.d.ts +6 -1
  205. package/dist/components/LpRadioGroup.vue.js +1 -1
  206. package/dist/components/LpRangeCalendar.vue.js +1 -1
  207. package/dist/components/LpRangeSlider.vue.d.ts +6 -0
  208. package/dist/components/LpRangeSlider.vue.js +1 -1
  209. package/dist/components/LpRelativeTime.vue.js +1 -1
  210. package/dist/components/LpRepeater.vue.js +1 -1
  211. package/dist/components/LpRollingText.vue.d.ts +2 -0
  212. package/dist/components/LpRollingText.vue.js +1 -1
  213. package/dist/components/LpSecretField.vue.js +1 -1
  214. package/dist/components/LpSection.vue.js +1 -1
  215. package/dist/components/LpSegmented.vue.d.ts +6 -0
  216. package/dist/components/LpSegmented.vue.js +1 -1
  217. package/dist/components/LpSelect.vue.d.ts +3 -0
  218. package/dist/components/LpSelect.vue.js +1 -1
  219. package/dist/components/LpShinyText.vue.d.ts +1 -1
  220. package/dist/components/LpShortcutsDialog.vue.js +1 -1
  221. package/dist/components/LpSidebar.vue.js +1 -1
  222. package/dist/components/LpSidebarNav.vue.js +1 -1
  223. package/dist/components/LpSlider.vue.d.ts +6 -0
  224. package/dist/components/LpSlider.vue.js +1 -1
  225. package/dist/components/LpStat.vue.js +1 -1
  226. package/dist/components/LpStatus.vue.js +1 -1
  227. package/dist/components/LpStepMark.vue.js +1 -1
  228. package/dist/components/LpStepper.vue.js +1 -1
  229. package/dist/components/LpSwitch.vue.d.ts +6 -0
  230. package/dist/components/LpSwitch.vue.js +1 -1
  231. package/dist/components/LpTable.vue.d.ts +6 -0
  232. package/dist/components/LpTable.vue.js +74 -35
  233. package/dist/components/LpTableFilter.vue.js +1 -1
  234. package/dist/components/LpTableOfContents.vue.js +1 -1
  235. package/dist/components/LpTabs.vue.d.ts +1 -1
  236. package/dist/components/LpTabs.vue.js +15 -6
  237. package/dist/components/LpTagsInput.vue.d.ts +6 -0
  238. package/dist/components/LpTagsInput.vue.js +1 -1
  239. package/dist/components/LpTextarea.vue.d.ts +8 -1
  240. package/dist/components/LpTextarea.vue.js +1 -1
  241. package/dist/components/LpThemeStudio.vue.js +1 -1
  242. package/dist/components/LpThemeSwitcher.vue.js +1 -1
  243. package/dist/components/LpTimeField.vue.d.ts +6 -0
  244. package/dist/components/LpTimeField.vue.js +1 -1
  245. package/dist/components/LpToaster.vue.js +1 -1
  246. package/dist/components/LpTooltip.vue.js +1 -1
  247. package/dist/components/LpTopologyCanvas.vue.js +1 -1
  248. package/dist/components/LpTour.vue.js +1 -1
  249. package/dist/components/LpTruncate.vue.js +1 -1
  250. package/dist/components/LpUptimeBar.vue.d.ts +18 -9
  251. package/dist/components/LpUptimeBar.vue.js +1 -1
  252. package/dist/components/MenuTitle.vue.js +1 -1
  253. package/dist/components/OptionContent.vue.js +1 -1
  254. package/dist/components/PalettePreviewBoundary.vue.d.ts +13 -0
  255. package/dist/components/PalettePreviewBoundary.vue.js +4 -0
  256. package/dist/components/PickerField.vue.d.ts +5 -3
  257. package/dist/components/PickerField.vue.js +1 -1
  258. package/dist/components/RevealToggle.vue.js +1 -1
  259. package/dist/components/TourCard.vue.js +1 -1
  260. package/dist/components/commandPalette.d.ts +33 -0
  261. package/dist/components/commandPalette.js +21 -1
  262. package/dist/components/commandSearch.d.ts +5 -0
  263. package/dist/components/commandSearch.js +22 -2
  264. package/dist/components/format.d.ts +7 -0
  265. package/dist/components/format.js +4 -0
  266. package/dist/components/menuWhen.js +1 -1
  267. package/dist/components/uptimeBar.d.ts +45 -0
  268. package/dist/components/uptimeBar.js +51 -0
  269. package/dist/composables/scroll.d.ts +5 -0
  270. package/dist/composables/scroll.js +7 -0
  271. package/dist/composables/useField.d.ts +9 -0
  272. package/dist/composables/useField.js +24 -1
  273. package/dist/composables/useForm.js +13 -4
  274. package/dist/composables/usePaletteCommands.d.ts +61 -0
  275. package/dist/composables/usePaletteCommands.js +220 -0
  276. package/dist/composables/useReveal.js +21 -0
  277. package/dist/composables/useView.js +9 -2
  278. package/dist/icons-all.js +1 -1
  279. package/dist/index.d.ts +14 -1
  280. package/dist/index.js +103 -87
  281. package/dist/theme/palette.d.ts +9 -0
  282. package/dist/theme/studio.d.ts +12 -1
  283. package/package.json +4 -1
  284. package/src/component-names.ts +2 -0
  285. package/src/components/ContextMenuItems.vue +5 -2
  286. package/src/components/LpAutocomplete.vue +6 -1
  287. package/src/components/LpButton.vue +5 -1
  288. package/src/components/LpChart.vue +19 -17
  289. package/src/components/LpCheckbox.vue +7 -2
  290. package/src/components/LpCommandPalette.vue +263 -29
  291. package/src/components/LpCommandScope.vue +35 -0
  292. package/src/components/LpContextMenu.vue +17 -5
  293. package/src/components/LpDataList.vue +2 -2
  294. package/src/components/LpDatePicker.vue +2 -0
  295. package/src/components/LpDateRangePicker.vue +2 -0
  296. package/src/components/LpDisclosure.vue +5 -1
  297. package/src/components/LpDropdownMenu.vue +14 -3
  298. package/src/components/LpEditable.vue +3 -1
  299. package/src/components/LpFormField.vue +3 -0
  300. package/src/components/LpInput.vue +6 -1
  301. package/src/components/LpNumberField.vue +6 -1
  302. package/src/components/LpNumberFlow.vue +12 -2
  303. package/src/components/LpPaletteFacts.vue +11 -6
  304. package/src/components/LpPaletteStats.vue +12 -5
  305. package/src/components/LpPaletteTheme.vue +48 -0
  306. package/src/components/LpPasswordInput.vue +13 -5
  307. package/src/components/LpPopover.vue +4 -0
  308. package/src/components/LpRadioGroup.vue +4 -1
  309. package/src/components/LpRangeSlider.vue +6 -1
  310. package/src/components/LpRepeater.vue +64 -13
  311. package/src/components/LpRollingText.vue +12 -1
  312. package/src/components/LpSecretField.vue +18 -8
  313. package/src/components/LpSegmented.vue +6 -1
  314. package/src/components/LpSelect.vue +44 -10
  315. package/src/components/LpSlider.vue +6 -1
  316. package/src/components/LpSwitch.vue +6 -1
  317. package/src/components/LpTable.vue +35 -2
  318. package/src/components/LpTableOfContents.vue +2 -4
  319. package/src/components/LpTabs.vue +7 -0
  320. package/src/components/LpTagsInput.vue +6 -1
  321. package/src/components/LpTextarea.vue +7 -2
  322. package/src/components/LpThemeStudio.vue +7 -5
  323. package/src/components/LpThemeSwitcher.vue +3 -0
  324. package/src/components/LpTimeField.vue +6 -1
  325. package/src/components/LpTooltip.vue +23 -1
  326. package/src/components/LpUptimeBar.vue +69 -41
  327. package/src/components/PalettePreviewBoundary.vue +5 -0
  328. package/src/components/PickerField.vue +5 -4
  329. package/src/components/commandPalette.ts +22 -1
  330. package/src/components/commandSearch.ts +23 -1
  331. package/src/components/format.ts +10 -0
  332. package/src/components/uptimeBar.ts +98 -0
  333. package/src/composables/scroll.ts +11 -0
  334. package/src/composables/useField.ts +33 -1
  335. package/src/composables/useForm.ts +14 -5
  336. package/src/composables/usePaletteCommands.ts +220 -0
  337. package/src/composables/useReveal.ts +29 -0
  338. package/src/composables/useView.ts +8 -1
  339. package/src/index.ts +18 -1
  340. package/src/kit-icons.ts +1 -1
  341. package/src/theme/palette.ts +26 -0
  342. package/src/theme/studio.ts +15 -8
  343. package/dist/assets/LpTabs-BJ-nrJuI.css +0 -18
  344. package/dist/chunks/LpRepeater-D0VjmD6y.js +0 -140
  345. package/dist/chunks/icons-4IywzkHk.js +0 -43
@@ -2,8 +2,8 @@ import { defineComponent, computed, openBlock, createBlock, withCtx, createEleme
2
2
  import { useLocale } from "../composables/useLocale.js";
3
3
  import { useMergedAttrs } from "../composables/useMergedClass.js";
4
4
  import { useNow } from "../composables/useNow.js";
5
- import { _ as _sfc_main$2 } from "./LpRollingText-DB7upf-5.js";
6
- import { _ as _sfc_main$1 } from "./LpTooltip-Cz8SQwRt.js";
5
+ import { _ as _sfc_main$2 } from "./LpRollingText-DiL717LK.js";
6
+ import { _ as _sfc_main$1 } from "./LpTooltip-BcBvIx4z.js";
7
7
  import { formatRelativeTime } from "../components/relativeTime.js";
8
8
  import { toEpoch } from "../components/timeSpan.js";
9
9
  const _hoisted_1 = ["datetime"];
@@ -0,0 +1,180 @@
1
+ import { defineComponent, useModel, ref, openBlock, createElementBlock, mergeProps, unref, createElementVNode, toDisplayString, createCommentVNode, createVNode, withCtx, createTextVNode, TransitionGroup, Fragment, renderList, renderSlot, mergeModels, nextTick } from "vue";
2
+ import { useFieldControl } from "../composables/useField.js";
3
+ import { useLabels } from "../composables/useLpConfig.js";
4
+ import { useMergedAttrs } from "../composables/useMergedClass.js";
5
+ import { useRepeater } from "../composables/useRepeater.js";
6
+ import { usePrefersReducedMotion } from "../composables/useReducedMotion.js";
7
+ import { _ as _sfc_main$1 } from "./LpButton-BQDAFXBd.js";
8
+ import { _ as _sfc_main$2 } from "./LpIcon-DkP-9mzK.js";
9
+ import { _ as _sfc_main$3 } from "./LpShift-DXNsauQZ.js";
10
+ import '../assets/LpRepeater-C1Cw27hj.css';const _hoisted_1 = { class: "flex items-center justify-between gap-2" };
11
+ const _hoisted_2 = {
12
+ key: 0,
13
+ class: "text-sm font-medium text-ink"
14
+ };
15
+ const _hoisted_3 = { class: "min-w-0 flex-1" };
16
+ const _hoisted_4 = {
17
+ key: "empty",
18
+ class: "text-xs text-muted"
19
+ };
20
+ const focusable = 'input:not([type="hidden"]):not([disabled]), textarea:not([disabled]), select:not([disabled]), button:not([disabled]), [tabindex="0"], [contenteditable="true"]';
21
+ const _sfc_main = /* @__PURE__ */ defineComponent({
22
+ ...{ inheritAttrs: false },
23
+ __name: "LpRepeater",
24
+ props: /* @__PURE__ */ mergeModels({
25
+ createItem: { type: Function },
26
+ itemKey: { type: Function },
27
+ label: {},
28
+ disabled: { type: Boolean },
29
+ labels: {}
30
+ }, {
31
+ "modelValue": { default: () => [] },
32
+ "modelModifiers": {}
33
+ }),
34
+ emits: ["update:modelValue"],
35
+ setup(__props, { expose: __expose }) {
36
+ const props = __props;
37
+ const model = useModel(__props, "modelValue");
38
+ const field = useFieldControl(() => ({ wrapped: false, disabled: props.disabled }));
39
+ const text = useLabels("repeater", { add: "Add item", remove: "Remove item {index}", empty: "No items" }, () => props.labels);
40
+ const list = useRepeater({
41
+ value: () => model.value,
42
+ set: (items) => {
43
+ model.value = items;
44
+ },
45
+ createItem: () => props.createItem(),
46
+ itemKey: () => props.itemKey,
47
+ disabled: () => field.value.disabled
48
+ });
49
+ const { rows } = list;
50
+ const rowsHost = ref(null);
51
+ const reducedMotion = usePrefersReducedMotion();
52
+ const addButton = ref(null);
53
+ function focusRow(index) {
54
+ rowAt(index)?.querySelector(focusable)?.focus({ preventScroll: true });
55
+ }
56
+ function rowAt(index) {
57
+ return Array.from(rowsHost.value?.children ?? []).filter(
58
+ (node) => node.hasAttribute("data-lp-repeater-row") && !node.hasAttribute("inert")
59
+ )[index];
60
+ }
61
+ function beforeLeave(el) {
62
+ const row = el;
63
+ row.style.width = `${row.offsetWidth}px`;
64
+ row.style.top = `${row.offsetTop}px`;
65
+ row.setAttribute("inert", "");
66
+ row.setAttribute("aria-hidden", "true");
67
+ }
68
+ function beforeEnter(el) {
69
+ const row = el;
70
+ row.removeAttribute("inert");
71
+ row.removeAttribute("aria-hidden");
72
+ row.style.removeProperty("top");
73
+ row.style.removeProperty("width");
74
+ }
75
+ async function add() {
76
+ if (field.value.disabled) return;
77
+ list.add();
78
+ await nextTick();
79
+ focusRow(model.value.length - 1);
80
+ }
81
+ async function remove(index) {
82
+ if (field.value.disabled) return;
83
+ const row = rowAt(index);
84
+ const restore = row?.contains(row.ownerDocument.activeElement);
85
+ list.remove(index);
86
+ if (!restore) return;
87
+ await nextTick();
88
+ if (model.value.length) focusRow(Math.min(index, model.value.length - 1));
89
+ else addButton.value?.$el?.focus({ preventScroll: true });
90
+ }
91
+ __expose({ add, remove, update: list.update });
92
+ const { class: rootClass, attrs: rest } = useMergedAttrs("flex min-w-0 flex-col gap-2");
93
+ return (_ctx, _cache) => {
94
+ return openBlock(), createElementBlock("div", mergeProps(unref(rest), { class: unref(rootClass) }), [
95
+ createElementVNode("div", _hoisted_1, [
96
+ __props.label ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.label), 1)) : createCommentVNode("", true),
97
+ createVNode(_sfc_main$1, {
98
+ ref_key: "addButton",
99
+ ref: addButton,
100
+ size: "xs",
101
+ variant: "ghost",
102
+ disabled: unref(field).disabled,
103
+ onClick: add
104
+ }, {
105
+ default: withCtx(() => [
106
+ createVNode(_sfc_main$2, {
107
+ name: "lucide:plus",
108
+ size: 14
109
+ }),
110
+ createTextVNode(toDisplayString(unref(text).add), 1)
111
+ ]),
112
+ _: 1
113
+ }, 8, ["disabled"])
114
+ ]),
115
+ createVNode(_sfc_main$3, { axis: "height" }, {
116
+ default: withCtx(() => [
117
+ createElementVNode("div", {
118
+ ref_key: "rowsHost",
119
+ ref: rowsHost,
120
+ class: "relative flex min-w-0 flex-col gap-2"
121
+ }, [
122
+ createVNode(TransitionGroup, {
123
+ name: "lp-repeater",
124
+ css: !unref(reducedMotion),
125
+ onBeforeEnter: beforeEnter,
126
+ onBeforeLeave: beforeLeave
127
+ }, {
128
+ default: withCtx(() => [
129
+ (openBlock(true), createElementBlock(Fragment, null, renderList(unref(rows), ({ item, key }, index) => {
130
+ return openBlock(), createElementBlock("div", {
131
+ key,
132
+ "data-lp-repeater-row": "",
133
+ class: "flex min-w-0 items-start gap-2"
134
+ }, [
135
+ createElementVNode("div", _hoisted_3, [
136
+ renderSlot(_ctx.$slots, "default", {
137
+ item,
138
+ index,
139
+ disabled: unref(field).disabled,
140
+ update: (next) => unref(list).update(index, next),
141
+ remove: () => remove(index)
142
+ })
143
+ ]),
144
+ createVNode(_sfc_main$1, {
145
+ variant: "ghost",
146
+ size: "sm",
147
+ square: "",
148
+ disabled: unref(field).disabled,
149
+ "aria-label": unref(text).remove.replace("{index}", String(index + 1)),
150
+ onClick: ($event) => remove(index)
151
+ }, {
152
+ default: withCtx(() => [
153
+ createVNode(_sfc_main$2, {
154
+ name: "lucide:x",
155
+ size: 14
156
+ })
157
+ ]),
158
+ _: 1
159
+ }, 8, ["disabled", "aria-label", "onClick"])
160
+ ]);
161
+ }), 128)),
162
+ !unref(rows).length ? (openBlock(), createElementBlock("div", _hoisted_4, [
163
+ renderSlot(_ctx.$slots, "empty", {}, () => [
164
+ createTextVNode(toDisplayString(unref(text).empty), 1)
165
+ ])
166
+ ])) : createCommentVNode("", true)
167
+ ]),
168
+ _: 3
169
+ }, 8, ["css"])
170
+ ], 512)
171
+ ]),
172
+ _: 3
173
+ })
174
+ ], 16);
175
+ };
176
+ }
177
+ });
178
+ export {
179
+ _sfc_main as _
180
+ };
@@ -1,12 +1,13 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, normalizeStyle, normalizeClass, createVNode, Transition, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
2
- import '../assets/LpRollingText-BGnE6q9j.css';const _sfc_main = /* @__PURE__ */ defineComponent({
2
+ import '../assets/LpRollingText-dyOXedGO.css';const _sfc_main = /* @__PURE__ */ defineComponent({
3
3
  __name: "LpRollingText",
4
4
  props: {
5
5
  value: {},
6
6
  mode: { default: "slide" },
7
7
  direction: { default: "up" },
8
8
  duration: { default: 320 },
9
- align: { default: "center" }
9
+ align: { default: "center" },
10
+ wrap: { type: Boolean }
10
11
  },
11
12
  setup(__props) {
12
13
  const props = __props;
@@ -25,7 +26,7 @@ import '../assets/LpRollingText-BGnE6q9j.css';const _sfc_main = /* @__PURE__ */
25
26
  }));
26
27
  return (_ctx, _cache) => {
27
28
  return openBlock(), createElementBlock("span", {
28
- class: normalizeClass(["lp-roll relative inline-flex overflow-hidden align-bottom", justify.value]),
29
+ class: normalizeClass(["lp-roll relative inline-flex overflow-hidden align-bottom", [justify.value, __props.wrap && "lp-roll--wrap"]]),
29
30
  style: normalizeStyle(style.value)
30
31
  }, [
31
32
  createVNode(Transition, { name: name.value }, {
@@ -1,16 +1,18 @@
1
1
  import { defineComponent, useModel, computed, ref, watch, onMounted, onBeforeUnmount, useId, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, createCommentVNode, renderSlot, createVNode, normalizeStyle, normalizeClass, createElementVNode, Transition, createElementBlock, toDisplayString, mergeModels } from "vue";
2
+ import { suppressPaletteDiscovery } from "../composables/usePaletteCommands.js";
2
3
  import { prefersReducedMotion } from "../composables/easing.js";
3
4
  import { useScramble } from "../composables/useScramble.js";
4
5
  import { useLabels } from "../composables/useLpConfig.js";
6
+ import { useFieldControl } from "../composables/useField.js";
5
7
  import { mergeClass } from "../composables/useMergedClass.js";
6
- import { _ as _sfc_main$5 } from "./FieldWrapper-BiennROB.js";
7
- import { _ as _sfc_main$3 } from "./LpButton-CVxBfGjd.js";
8
- import { _ as _sfc_main$2 } from "./LpCopyButton-DzHjnFs0.js";
9
- import { _ as _sfc_main$4 } from "./LpIcon-HJP5xMz4.js";
10
- import { _ as _sfc_main$1 } from "./LpPasswordInput-DTV18FIh.js";
8
+ import { _ as _sfc_main$5 } from "./FieldWrapper-YzbvvC3M.js";
9
+ import { _ as _sfc_main$3 } from "./LpButton-BQDAFXBd.js";
10
+ import { _ as _sfc_main$2 } from "./LpCopyButton-Dmq7DmFw.js";
11
+ import { _ as _sfc_main$4 } from "./LpIcon-DkP-9mzK.js";
12
+ import { _ as _sfc_main$1 } from "./LpPasswordInput-BzAZsf5V.js";
11
13
  import { _ as _sfc_main$6 } from "./LpShift-DXNsauQZ.js";
12
- import { _ as _sfc_main$8 } from "./LpTooltip-Cz8SQwRt.js";
13
- import { _ as _sfc_main$7 } from "./RevealToggle-C-KzaQGJ.js";
14
+ import { _ as _sfc_main$8 } from "./LpTooltip-BcBvIx4z.js";
15
+ import { _ as _sfc_main$7 } from "./RevealToggle-BVFM_FAU.js";
14
16
  const _hoisted_1 = ["id", "aria-label"];
15
17
  const _hoisted_2 = {
16
18
  key: "empty",
@@ -57,7 +59,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
57
59
  setup(__props, { emit: __emit }) {
58
60
  const props = __props;
59
61
  const emit = __emit;
60
- const revealed = useModel(__props, "revealed");
62
+ const revealedModel = useModel(__props, "revealed");
63
+ const revealed = computed({
64
+ get: () => props.revealable && revealedModel.value,
65
+ set: (value) => {
66
+ revealedModel.value = value;
67
+ }
68
+ });
61
69
  const text = useLabels(
62
70
  "secretField",
63
71
  {
@@ -71,6 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
71
79
  () => props.labels
72
80
  );
73
81
  const secret = computed(() => (props.input ? props.modelValue : props.value) ?? "");
82
+ const control = useFieldControl(() => ({ wrapped: false, disabled: props.disabled }));
74
83
  const decrypt = useScramble(() => revealed.value ? secret.value : "", { onChange: true, duration: 650 });
75
84
  const mask = computed(() => "•".repeat(props.maskLength));
76
85
  let hideTimer;
@@ -117,11 +126,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
117
126
  () => mergeClass(
118
127
  "relative flex w-full items-center gap-1 overflow-hidden rounded-control border bg-surface-soft text-ink transition-colors duration-(--duration-fast)",
119
128
  props.error ? "border-danger" : "border-line",
120
- props.disabled ? "opacity-55" : "",
129
+ control.value.disabled ? "opacity-55" : "",
121
130
  props.wrap ? "py-1.5" : "",
122
131
  { sm: "min-h-(--size-control-sm) pl-2.5 pr-1 text-xs", md: "min-h-(--size-control-md) pl-3 pr-1.5 text-sm", lg: "min-h-(--size-control-lg) pl-3.5 pr-1.5 text-sm" }[props.size]
123
132
  )
124
133
  );
134
+ suppressPaletteDiscovery();
125
135
  return (_ctx, _cache) => {
126
136
  return __props.input ? (openBlock(), createBlock(_sfc_main$1, mergeProps({
127
137
  key: 0,
@@ -133,7 +143,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
133
143
  class: "[&_input]:font-mono",
134
144
  "model-value": __props.modelValue,
135
145
  placeholder: __props.placeholder,
136
- disabled: __props.disabled,
146
+ disabled: unref(control).disabled,
147
+ revealable: __props.revealable,
137
148
  label: __props.label,
138
149
  hint: __props.hint,
139
150
  error: __props.error,
@@ -147,7 +158,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
147
158
  value: secret.value,
148
159
  size: "xs",
149
160
  class: "size-7",
150
- disabled: __props.disabled,
161
+ disabled: unref(control).disabled,
151
162
  onCopied: _cache[0] || (_cache[0] = (t) => emit("copied", t))
152
163
  }, null, 8, ["value", "disabled"])) : createCommentVNode("", true),
153
164
  renderSlot(_ctx.$slots, "actions"),
@@ -160,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
160
171
  "aria-label": unref(text).regenerate,
161
172
  title: unref(text).regenerate,
162
173
  action: __props.regenerate,
163
- disabled: __props.disabled
174
+ disabled: unref(control).disabled
164
175
  }, {
165
176
  default: withCtx(() => [
166
177
  createVNode(_sfc_main$4, {
@@ -180,7 +191,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
180
191
  ]),
181
192
  key: "0"
182
193
  } : void 0
183
- ]), 1040, ["visible", "model-value", "placeholder", "disabled", "label", "hint", "error", "size", "labels"])) : (openBlock(), createBlock(_sfc_main$5, {
194
+ ]), 1040, ["visible", "model-value", "placeholder", "disabled", "revealable", "label", "hint", "error", "size", "labels"])) : (openBlock(), createBlock(_sfc_main$5, {
184
195
  key: 1,
185
196
  wrapped: !!(__props.label || __props.hint || __props.error),
186
197
  id: unref(id),
@@ -239,7 +250,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
239
250
  "icon-size": iconSize.value,
240
251
  "show-label": unref(text).show,
241
252
  "hide-label": unref(text).hide,
242
- disabled: __props.disabled,
253
+ disabled: unref(control).disabled,
243
254
  controls: unref(id),
244
255
  class: "size-7"
245
256
  }, null, 8, ["modelValue", "icon-size", "show-label", "hide-label", "disabled", "controls"])) : createCommentVNode("", true),
@@ -248,7 +259,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
248
259
  value: secret.value,
249
260
  size: copySize.value,
250
261
  class: "size-7 text-muted hover:text-ink",
251
- disabled: __props.disabled,
262
+ disabled: unref(control).disabled,
252
263
  onCopied: _cache[4] || (_cache[4] = (t) => emit("copied", t))
253
264
  }, null, 8, ["value", "size", "disabled"])) : createCommentVNode("", true),
254
265
  renderSlot(_ctx.$slots, "actions"),
@@ -264,7 +275,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
264
275
  square: "",
265
276
  class: "size-7 text-muted hover:text-ink",
266
277
  action: __props.regenerate,
267
- disabled: __props.disabled
278
+ disabled: unref(control).disabled
268
279
  }, {
269
280
  default: withCtx(() => [
270
281
  createVNode(_sfc_main$4, {
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, useSlots, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
2
2
  import { tv } from "tailwind-variants";
3
- import { _ as _sfc_main$1 } from "./LpIcon-HJP5xMz4.js";
3
+ import { _ as _sfc_main$1 } from "./LpIcon-DkP-9mzK.js";
4
4
  const _hoisted_1 = { class: "min-w-0 flex-1 break-words" };
5
5
  const _hoisted_2 = { class: "flex flex-wrap items-center gap-2" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,11 +1,12 @@
1
1
  import { defineComponent, useId, ref, openBlock, createBlock, unref, mergeProps, withCtx, createElementBlock, Fragment, renderList, normalizeClass, createCommentVNode, createVNode, toDisplayString } from "vue";
2
+ import { usePaletteControl } from "../composables/usePaletteCommands.js";
2
3
  import { Motion } from "motion-v";
3
4
  import { ToggleGroupRoot, ToggleGroupItem } from "reka-ui";
4
5
  import { useFieldControl } from "../composables/useField.js";
5
6
  import { useMergedAttrs } from "../composables/useMergedClass.js";
6
7
  import { usePillTransition } from "../composables/usePillTransition.js";
7
8
  import { _ as _sfc_main$2 } from "./AttentionDot-DCBf4aWg.js";
8
- import { _ as _sfc_main$1 } from "./LpIcon-HJP5xMz4.js";
9
+ import { _ as _sfc_main$1 } from "./LpIcon-DkP-9mzK.js";
9
10
  const _hoisted_1 = {
10
11
  key: 1,
11
12
  class: "relative z-10 inline-flex shrink-0"
@@ -19,6 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
20
  ...__default__,
20
21
  __name: "LpSegmented",
21
22
  props: {
23
+ palette: { type: [Boolean, Object], default: void 0 },
22
24
  modelValue: {},
23
25
  options: {},
24
26
  size: { default: "md" },
@@ -59,6 +61,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
61
  const target = event.currentTarget;
60
62
  if (target instanceof HTMLElement) target.blur();
61
63
  }
64
+ usePaletteControl({ disabled: () => field.value.disabled });
62
65
  return (_ctx, _cache) => {
63
66
  return openBlock(), createBlock(unref(ToggleGroupRoot), mergeProps({
64
67
  "model-value": __props.modelValue,
@@ -1,12 +1,13 @@
1
- import { defineComponent, computed, ref, useId, useAttrs, reactive, watch, nextTick, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, normalizeClass, createElementVNode, toDisplayString, createElementBlock, TransitionGroup, Fragment, renderList, createCommentVNode, withModifiers, createTextVNode, normalizeStyle } from "vue";
1
+ import { defineComponent, computed, ref, useAttrs, useId, reactive, watch, nextTick, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, normalizeClass, createElementVNode, toDisplayString, createElementBlock, TransitionGroup, Fragment, renderList, createCommentVNode, withModifiers, createTextVNode, normalizeStyle } from "vue";
2
+ import { usePaletteControl } from "../composables/usePaletteCommands.js";
2
3
  import { ComboboxRoot, ComboboxAnchor, ComboboxTrigger, ComboboxPortal, ComboboxContent, ComboboxInput, ComboboxViewport, ComboboxEmpty, ComboboxItem, ComboboxItemIndicator } from "reka-ui";
3
- import { useFieldControl } from "../composables/useField.js";
4
+ import { useFieldControl, useFieldBlur } from "../composables/useField.js";
4
5
  import { useLabels } from "../composables/useLpConfig.js";
5
6
  import { useMergedAttrs } from "../composables/useMergedClass.js";
6
7
  import { POPOVER_PANEL, OPTION_ITEM, optionStagger } from "../components/dropdown.js";
7
- import { _ as _sfc_main$1 } from "./LpIcon-HJP5xMz4.js";
8
- import { _ as _sfc_main$3 } from "./OptionContent-CmYUUeWj.js";
9
- import { _ as _sfc_main$2 } from "./LpRollingText-DB7upf-5.js";
8
+ import { _ as _sfc_main$1 } from "./LpIcon-DkP-9mzK.js";
9
+ import { _ as _sfc_main$3 } from "./OptionContent-DPzNsybd.js";
10
+ import { _ as _sfc_main$2 } from "./LpRollingText-DiL717LK.js";
10
11
  import { fitChips, toggledValues } from "../components/select.js";
11
12
  import { usePortalTarget, useOutsideGuard } from "../composables/useView.js";
12
13
  import { useResizeObserver } from "../composables/useResizeObserver.js";
@@ -48,6 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
48
49
  ...__default__,
49
50
  __name: "LpSelect",
50
51
  props: {
52
+ palette: { type: [Boolean, Object], default: void 0 },
51
53
  modelValue: {},
52
54
  options: {},
53
55
  placeholder: {},
@@ -112,11 +114,29 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
114
  isOpen.value = open;
113
115
  query.value = "";
114
116
  }
115
- const partOf = `lp-select-${useId()}`;
116
- function onFocusOut(event) {
117
- const next = event.relatedTarget;
118
- const inside = !!next && typeof next.closest === "function" && !!next.closest(`[data-lp-select-part="${partOf}"]`);
119
- if (!inside) emit("blur", event);
117
+ async function openFromKeyboard(event) {
118
+ if (field.value.disabled || isOpen.value || !["ArrowDown", "ArrowUp"].includes(event.key)) return;
119
+ event.preventDefault();
120
+ event.stopPropagation();
121
+ const trigger = event.currentTarget;
122
+ trigger.click();
123
+ await nextTick();
124
+ const panel = trigger.ownerDocument.getElementById(trigger.getAttribute("aria-controls") ?? "");
125
+ const search = panel?.querySelector("input:not([disabled])");
126
+ const items = panel?.querySelectorAll('[role="option"]:not([data-disabled])');
127
+ const selected = panel?.querySelector('[role="option"][aria-selected="true"]:not([data-disabled])');
128
+ const target = search ?? selected ?? (event.key === "ArrowUp" ? items?.[items.length - 1] : items?.[0]);
129
+ target?.focus();
130
+ }
131
+ const { partId, onFocusOut } = useFieldBlur((event) => emit("blur", event));
132
+ const triggerRef = ref(null);
133
+ function onListFocusOut(event) {
134
+ const trigger = triggerRef.value?.$el;
135
+ if (isOpen.value || event.relatedTarget || !trigger?.isConnected) {
136
+ onFocusOut(event);
137
+ return;
138
+ }
139
+ trigger.focus({ preventScroll: true });
120
140
  }
121
141
  const attrs = useAttrs();
122
142
  const valueId = `lp-select-${useId()}-value`;
@@ -238,6 +258,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
238
258
  }
239
259
  const portalTo = usePortalTarget();
240
260
  const guardOutside = useOutsideGuard();
261
+ usePaletteControl({ disabled: () => field.value.disabled, invalid: () => field.value.invalid, editorProps: () => ({ selected: props.multiple ? modelList.value.map((value, index) => shown(value, index)) : current.value }) });
241
262
  return (_ctx, _cache) => {
242
263
  return openBlock(), createBlock(unref(ComboboxRoot), mergeProps({
243
264
  "model-value": comboModel.value,
@@ -254,8 +275,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
254
275
  }), {
255
276
  default: withCtx(() => [
256
277
  createVNode(unref(ComboboxAnchor), {
257
- "data-lp-select-part": partOf,
258
- onFocusout: onFocusOut,
278
+ "data-lp-field-part": unref(partId),
279
+ onFocusout: unref(onFocusOut),
259
280
  class: normalizeClass([
260
281
  anchorHeight.value,
261
282
  "group flex w-full items-center gap-2 rounded-control border bg-surface-soft px-3 text-sm text-ink transition-colors duration-[var(--duration-fast)] focus-within:ring-2",
@@ -269,7 +290,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
269
290
  hidden: ""
270
291
  }, toDisplayString(valueText.value), 1),
271
292
  createVNode(unref(ComboboxTrigger), mergeProps({
272
- id: unref(field).id
293
+ ref_key: "triggerRef",
294
+ ref: triggerRef,
295
+ id: unref(field).id,
296
+ tabindex: unref(field).disabled ? -1 : 0,
297
+ onKeydown: openFromKeyboard
273
298
  }, triggerName.value, {
274
299
  "aria-invalid": unref(field).invalid || void 0,
275
300
  "aria-describedby": unref(field).describedBy,
@@ -362,7 +387,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
362
387
  }, 8, ["value"]))
363
388
  ]),
364
389
  _: 1
365
- }, 16, ["id", "aria-invalid", "aria-describedby"]),
390
+ }, 16, ["id", "tabindex", "aria-invalid", "aria-describedby"]),
366
391
  __props.clearable && hasValue.value && !unref(field).disabled ? (openBlock(), createElementBlock("button", {
367
392
  key: 0,
368
393
  type: "button",
@@ -394,12 +419,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
394
419
  })
395
420
  ]),
396
421
  _: 1
397
- }, 8, ["class"]),
422
+ }, 8, ["data-lp-field-part", "onFocusout", "class"]),
398
423
  createVNode(unref(ComboboxPortal), { to: unref(portalTo) }, {
399
424
  default: withCtx(() => [
400
425
  createVNode(unref(ComboboxContent), {
401
- "data-lp-select-part": partOf,
402
- onFocusout: onFocusOut,
426
+ "data-lp-field-part": unref(partId),
427
+ onFocusout: onListFocusOut,
403
428
  onInteractOutside: unref(guardOutside),
404
429
  onEscapeKeyDown: unref(guardOutside),
405
430
  position: "popper",
@@ -455,7 +480,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
455
480
  })
456
481
  ]),
457
482
  _: 1
458
- }, 8, ["onInteractOutside", "onEscapeKeyDown", "class"])
483
+ }, 8, ["data-lp-field-part", "onInteractOutside", "onEscapeKeyDown", "class"])
459
484
  ]),
460
485
  _: 1
461
486
  }, 8, ["to"])
@@ -1,9 +1,9 @@
1
1
  import { defineComponent, computed, ref, useId, openBlock, createElementBlock, Fragment, createElementVNode, mergeProps, unref, normalizeClass, renderSlot, createCommentVNode, createBlock, createVNode, createSlots, withCtx, normalizeProps, guardReactiveProps } from "vue";
2
2
  import { usePersisted } from "../composables/usePersisted.js";
3
3
  import { useLabels } from "../composables/useLpConfig.js";
4
- import { _ as _sfc_main$3 } from "./LpDrawer-DGNKRsGq.js";
5
- import { _ as _sfc_main$1 } from "./LpInput-CDuwODJG.js";
6
- import { _ as _sfc_main$2 } from "./LpSidebarNav-DF-TYxOV.js";
4
+ import { _ as _sfc_main$3 } from "./LpDrawer-u4rxnuR-.js";
5
+ import { _ as _sfc_main$1 } from "./LpInput-2H-5ILOB.js";
6
+ import { _ as _sfc_main$2 } from "./LpSidebarNav--VwkXO_a.js";
7
7
  const _hoisted_1 = ["aria-label"];
8
8
  const _hoisted_2 = {
9
9
  key: 2,
@@ -2,9 +2,9 @@ import { defineComponent, computed, ref, openBlock, createBlock, mergeProps, unr
2
2
  import { Motion } from "motion-v";
3
3
  import { CollapsibleRoot, CollapsibleTrigger, CollapsibleContent } from "reka-ui";
4
4
  import { usePillTransition } from "../composables/usePillTransition.js";
5
- import { _ as _sfc_main$4 } from "./LpBadge-HOEPBYmi.js";
6
- import { _ as _sfc_main$5 } from "./LpContextMenu-COwOwRgI.js";
7
- import { _ as _sfc_main$3 } from "./LpIcon-HJP5xMz4.js";
5
+ import { _ as _sfc_main$4 } from "./LpBadge-C8fKEmTF.js";
6
+ import { _ as _sfc_main$5 } from "./LpContextMenu-DXpFJjlO.js";
7
+ import { _ as _sfc_main$3 } from "./LpIcon-DkP-9mzK.js";
8
8
  import { _ as _sfc_main$2 } from "./LpScrollArea-Hz3-JWUG.js";
9
9
  import { _ as _sfc_main$1 } from "./LpSkeleton-BB6XIV-w.js";
10
10
  import { resolveLink } from "../components/link.js";
@@ -1,4 +1,5 @@
1
1
  import { defineComponent, openBlock, createBlock, unref, mergeProps, withCtx, createVNode } from "vue";
2
+ import { usePaletteControl } from "../composables/usePaletteCommands.js";
2
3
  import { SliderRoot, SliderTrack, SliderRange, SliderThumb } from "reka-ui";
3
4
  import { useFieldControl } from "../composables/useField.js";
4
5
  import { useMergedAttrs } from "../composables/useMergedClass.js";
@@ -8,6 +9,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
9
  ...__default__,
9
10
  __name: "LpSlider",
10
11
  props: {
12
+ palette: { type: [Boolean, Object], default: void 0 },
11
13
  modelValue: { default: 0 },
12
14
  min: { default: 0 },
13
15
  max: { default: 100 },
@@ -30,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
32
  `relative flex h-5 w-full touch-none select-none items-center data-[disabled]:opacity-55 ${SLIDER_GLIDE}`
31
33
  );
32
34
  const { dragging, onPointerDown } = useSliderDrag();
35
+ usePaletteControl({ disabled: () => field.value.disabled });
33
36
  return (_ctx, _cache) => {
34
37
  return openBlock(), createBlock(unref(SliderRoot), mergeProps({
35
38
  "model-value": [props.modelValue],
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, createElementVNode, createBlock, createCommentVNode, createVNode, Transition, normalizeProps, guardReactiveProps, withCtx, toDisplayString, Fragment, createTextVNode, normalizeClass, renderSlot } from "vue";
2
- import { _ as _sfc_main$2 } from "./LpIcon-HJP5xMz4.js";
3
- import { _ as _sfc_main$4 } from "./LpNumberFlow-Cfyh033Q.js";
2
+ import { _ as _sfc_main$2 } from "./LpIcon-DkP-9mzK.js";
3
+ import { _ as _sfc_main$4 } from "./LpNumberFlow-5khYxsfX.js";
4
4
  import { _ as _sfc_main$3 } from "./LpSkeleton-BB6XIV-w.js";
5
- import { _ as _sfc_main$1 } from "./LpStatus-C7kx5PKE.js";
5
+ import { _ as _sfc_main$1 } from "./LpStatus-BQU1TUsv.js";
6
6
  import { useMergedAttrs } from "../composables/useMergedClass.js";
7
7
  import { TONES } from "../components/tone.js";
8
8
  const _hoisted_1 = { class: "flex items-center gap-2" };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, mergeProps, unref, withCtx, createElementVNode, normalizeClass, normalizeStyle, createElementBlock, toDisplayString, createVNode } from "vue";
2
2
  import { useLabels } from "../composables/useLpConfig.js";
3
3
  import { useMergedAttrs } from "../composables/useMergedClass.js";
4
- import { _ as _sfc_main$1 } from "./LpBadge-HOEPBYmi.js";
5
- import { _ as _sfc_main$2 } from "./LpRollingText-DB7upf-5.js";
4
+ import { _ as _sfc_main$1 } from "./LpBadge-C8fKEmTF.js";
5
+ import { _ as _sfc_main$2 } from "./LpRollingText-DiL717LK.js";
6
6
  import { _ as _sfc_main$3 } from "./LpShift-DXNsauQZ.js";
7
7
  import { TONE_COLOR } from "../components/meter.js";
8
8
  import { STATUS_LABELS, STATUS_LOOK } from "../components/status.js";
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, createCommentVNode, createVNode, withCtx, createBlock, normalizeClass, Fragment, createTextVNode, toDisplayString } from "vue";
2
2
  import { useMergedAttrs } from "../composables/useMergedClass.js";
3
- import { _ as _sfc_main$3 } from "./LpIcon-HJP5xMz4.js";
3
+ import { _ as _sfc_main$3 } from "./LpIcon-DkP-9mzK.js";
4
4
  import { _ as _sfc_main$2 } from "./LpLoader-DjJEX8hL.js";
5
- import { _ as _sfc_main$1 } from "./LpRollingText-DB7upf-5.js";
5
+ import { _ as _sfc_main$1 } from "./LpRollingText-DiL717LK.js";
6
6
  import { TONES } from "../components/tone.js";
7
7
  import '../assets/LpStepMark-Drvx33Vg.css';const _hoisted_1 = ["role", "aria-label", "aria-hidden", "data-status"];
8
8
  const _hoisted_2 = {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, Fragment, renderList, createElementVNode, createVNode, normalizeClass, createTextVNode, toDisplayString, createBlock, createCommentVNode } from "vue";
2
- import { _ as _sfc_main$1 } from "./LpStepMark-DK-5BKAt.js";
2
+ import { _ as _sfc_main$1 } from "./LpStepMark-CXa7DJy_.js";
3
3
  import { _ as _sfc_main$2 } from "./StepConnector-37OgEOXA.js";
4
4
  import { useMergedAttrs } from "../composables/useMergedClass.js";
5
5
  const _hoisted_1 = ["aria-current"];
@@ -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";