@leavepulse/ui 0.71.1 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{LpCommandPalette-DgPZX0us.css → LpCommandPalette-Rtbg669l.css} +19 -19
- package/dist/assets/{LpNumberFlow-rZkwQwlU.css → LpNumberFlow-Chp9pEDe.css} +8 -0
- package/dist/assets/LpTabs-CDchzoRL.css +18 -0
- package/dist/chunks/{ContextMenuItems-eS7qx9gD.js → ContextMenuItems-BXumicbh.js} +1 -1
- package/dist/chunks/{DropzoneLinkField-DkFhdfEJ.js → DropzoneLinkField-D2Rnkcys.js} +2 -2
- package/dist/chunks/{FieldWrapper-YzbvvC3M.js → FieldWrapper-DnA1rxZ8.js} +1 -1
- package/dist/chunks/{LayoutCanvas-Ba4A9QC5.js → LayoutCanvas-CNOAUk7D.js} +1 -1
- package/dist/chunks/{LayoutNode-CTTTLMDM.js → LayoutNode-DF5BMN0J.js} +1 -1
- package/dist/chunks/{LpActionBar-B7anGlkI.js → LpActionBar-DfiBL1dE.js} +3 -3
- package/dist/chunks/{LpAddressInput-CD0bzrt-.js → LpAddressInput-B1bB3F6M.js} +7 -7
- package/dist/chunks/{LpAlert-BHi7ARqu.js → LpAlert-CpRF9eYr.js} +3 -3
- package/dist/chunks/{LpAppShell-1RmBp6xQ.js → LpAppShell-D8Q0Jv9d.js} +68 -18
- package/dist/chunks/{LpAutocomplete-DDqe2M5g.js → LpAutocomplete-DOu7FN5P.js} +2 -2
- package/dist/chunks/{LpAvatar-DqfKCIdr.js → LpAvatar-Cg6Az3wz.js} +1 -1
- package/dist/chunks/{LpBadge-C8fKEmTF.js → LpBadge-vtCpsDmv.js} +3 -3
- package/dist/chunks/LpBottomNav-VXJf0cKc.js +89 -0
- package/dist/chunks/{LpBreadcrumbs-DhcoStFa.js → LpBreadcrumbs-BdzjQcql.js} +3 -3
- package/dist/chunks/{LpButton-BQDAFXBd.js → LpButton-Dk7eT4ro.js} +1 -1
- package/dist/chunks/{LpCalendar-NmrA47J9.js → LpCalendar-CuoWks-0.js} +1 -1
- package/dist/chunks/{LpCard-CqKLnEhl.js → LpCard-Ce3rw8zm.js} +1 -1
- package/dist/chunks/{LpCheckbox-BoOuLnGB.js → LpCheckbox-DLX4amba.js} +2 -2
- package/dist/chunks/{LpCodeBlock-Czu-fq1M.js → LpCodeBlock-j0W5bpmF.js} +2 -2
- package/dist/chunks/{LpCodeDisplay-BK2FHbtM.js → LpCodeDisplay-COdiv4xu.js} +6 -6
- package/dist/chunks/{LpColorPicker-Ee1DZiRd.js → LpColorPicker-1y1QJHZR.js} +56 -28
- package/dist/chunks/{LpCommandScope-ubtWDMa0.js → LpCommandScope-BlKcgBnK.js} +1 -1
- package/dist/chunks/{LpConfirmDialog-i15pulMT.js → LpConfirmDialog-w1ni5nxh.js} +3 -3
- package/dist/chunks/{LpConfirmHost-D0oGavtd.js → LpConfirmHost-Br_-Gn-6.js} +1 -1
- package/dist/chunks/{LpContextMenu-DXpFJjlO.js → LpContextMenu-rx2tCjwk.js} +2 -2
- package/dist/chunks/{LpCopyButton-Dmq7DmFw.js → LpCopyButton-DaD1KCn6.js} +2 -2
- package/dist/chunks/{LpCountdown-DTdMF8DL.js → LpCountdown-Cgy0mVEq.js} +3 -3
- package/dist/chunks/{LpDataList-CFPtSsBB.js → LpDataList-CkcGFJgv.js} +3 -3
- package/dist/chunks/{LpDatePicker-cC9K-Pk8.js → LpDatePicker-CA0QTfBC.js} +4 -4
- package/dist/chunks/{LpDateRangePicker-BVQKPbvo.js → LpDateRangePicker-u3J51xXk.js} +2 -2
- package/dist/chunks/{LpDisclosure-hRnX3FWL.js → LpDisclosure-Cpa7Hc5T.js} +1 -1
- package/dist/chunks/{LpDrawer-u4rxnuR-.js → LpDrawer-RRamxbLV.js} +1 -1
- package/dist/chunks/{LpDropdownMenu-BgZ0Z_Im.js → LpDropdownMenu-Dl7Z4ZhS.js} +2 -2
- package/dist/chunks/{LpEditable-CjxuOVh_.js → LpEditable-D3PvD6Zm.js} +5 -5
- package/dist/chunks/{LpEmptyState-CKFTtQgJ.js → LpEmptyState-EQHiRYhG.js} +7 -3
- package/dist/chunks/{LpFieldNotice-CPI8EwtU.js → LpFieldNotice-CzQ2_5rQ.js} +1 -1
- package/dist/chunks/{LpFileTree-BH0gNlSJ.js → LpFileTree-D7KTaJiM.js} +2 -2
- package/dist/chunks/{LpFileTreeNode-gPVB1oXM.js → LpFileTreeNode-14GVqQTd.js} +5 -5
- package/dist/chunks/{LpFormField-gRASfyj2.js → LpFormField-MSQhRCTz.js} +2 -2
- package/dist/chunks/{LpGauge-BdjPGnqw.js → LpGauge-BO1PYYqD.js} +2 -2
- package/dist/chunks/{LpHintLayer-C2asBIfs.js → LpHintLayer-CmYm37z7.js} +2 -2
- package/dist/chunks/{LpHints-CNZQ76JV.js → LpHints-iLIRUkCj.js} +3 -3
- package/dist/chunks/{LpIcon-DkP-9mzK.js → LpIcon--5WSb3jJ.js} +1 -1
- package/dist/chunks/{LpInfraNode-yTh4-5qa.js → LpInfraNode-BT0VQrOa.js} +2 -2
- package/dist/chunks/{LpInput-2H-5ILOB.js → LpInput-1eNvtzXs.js} +2 -2
- package/dist/chunks/{LpLightbox-lAt5uIfx.js → LpLightbox-DWw6OSA4.js} +3 -3
- package/dist/chunks/{LpLoader-DjJEX8hL.js → LpLoader-B82_CcV0.js} +1 -1
- package/dist/chunks/{LpLogViewer-x78YfhJf.js → LpLogViewer-pzanZASC.js} +6 -6
- package/dist/chunks/{LpMapPicker-Dp5RSCi9.js → LpMapPicker-DNIUvF6V.js} +2 -2
- package/dist/chunks/{LpMediaGallery-D92oJfY_.js → LpMediaGallery-Dx8xzg5N.js} +3 -3
- package/dist/chunks/{LpModal-CpH0bNo7.js → LpModal-BnjZ2iem.js} +1 -1
- package/dist/chunks/{LpModalNav-BH4ANQGJ.js → LpModalNav-Cu04W1pV.js} +4 -4
- package/dist/chunks/{LpNotificationBell-BdUQqZhs.js → LpNotificationBell-PSQqFqEv.js} +8 -8
- package/dist/chunks/{LpNumberField-DZY3Z670.js → LpNumberField-e0IBkWU1.js} +1 -1
- package/dist/chunks/{LpNumberFlow-5khYxsfX.js → LpNumberFlow-CcxEGUy0.js} +10 -7
- package/dist/chunks/{LpPagination-DbeACavM.js → LpPagination-BIIiYHXR.js} +1 -1
- package/dist/chunks/{LpPaletteTheme-CqWNRwHE.js → LpPaletteTheme-D05ywM1W.js} +8 -6
- package/dist/chunks/{LpPasswordInput-BzAZsf5V.js → LpPasswordInput-vdcw-koG.js} +2 -2
- package/dist/chunks/{LpPhoneInput-BMpd-0QR.js → LpPhoneInput-CETEp5W7.js} +2 -2
- package/dist/chunks/{LpPie-DdFSTbGE.js → LpPie-BlWDxCtG.js} +6 -6
- package/dist/chunks/{LpPipeline-zjEM1Lwc.js → LpPipeline-BXjoxkq_.js} +4 -4
- package/dist/chunks/{LpProgress-BX33EKkN.js → LpProgress-rOlyafqp.js} +1 -1
- package/dist/chunks/{LpQuota-DqNv1yjs.js → LpQuota-B12yijdB.js} +3 -3
- package/dist/chunks/{LpRadioGroup-CsXeV9Ct.js → LpRadioGroup-ggaPL92T.js} +1 -1
- package/dist/chunks/{LpRangeCalendar-l-0nSFmY.js → LpRangeCalendar-CYYUYqJ7.js} +1 -1
- package/dist/chunks/{LpRelativeTime-UM8EkfrN.js → LpRelativeTime-DwgCb5-8.js} +1 -1
- package/dist/chunks/{LpRepeater-OvzByE5L.js → LpRepeater-fliVBcN7.js} +3 -3
- package/dist/chunks/LpRollingText-B54Pje7P.js +86 -0
- package/dist/chunks/{LpScramble-TDO5Kdou.js → LpScramble-Cw-af0Yh.js} +1 -1
- package/dist/chunks/{LpSecretField-DwQiPOko.js → LpSecretField-D_IMxEGW.js} +7 -7
- package/dist/chunks/{LpSection-DcQsieHG.js → LpSection-DFK_uoJE.js} +1 -1
- package/dist/chunks/{LpSegmented-D2VST0o3.js → LpSegmented-CeACsMMA.js} +4 -2
- package/dist/chunks/{LpSelect-DYX2-u5A.js → LpSelect-Cxq4yBGd.js} +7 -7
- package/dist/chunks/LpShift-BAp8lGoa.js +160 -0
- package/dist/chunks/LpSidebar-BftYsk5d.js +494 -0
- package/dist/chunks/LpSidebarNav-BzNWMZfc.js +357 -0
- package/dist/chunks/LpSidebarRow-BIReMT1f.js +302 -0
- package/dist/chunks/{LpStat-DIsQfbeD.js → LpStat-BFCM6fUn.js} +9 -7
- package/dist/chunks/{LpStatus-BQU1TUsv.js → LpStatus-BWTLVPVh.js} +3 -3
- package/dist/chunks/{LpStepMark-CXa7DJy_.js → LpStepMark-DkdkebLC.js} +3 -3
- package/dist/chunks/{LpStepper-C9RM_yTG.js → LpStepper-BgqjKrqg.js} +1 -1
- package/dist/chunks/{LpSwap-DzE6M3Mg.js → LpSwap-B5YOXgtx.js} +1 -1
- package/dist/chunks/{LpSwitch-bGZxUDSx.js → LpSwitch-DyrRes7s.js} +1 -1
- package/dist/chunks/LpTabFace-D6BMCbAP.js +77 -0
- package/dist/chunks/{LpTableFilter-CTZMqFDU.js → LpTableFilter-Dkzamzkl.js} +3 -3
- package/dist/chunks/{LpTagsInput-DrjmrOge.js → LpTagsInput-DAZNNehI.js} +5 -5
- package/dist/chunks/{LpTextarea-BbYqmG1S.js → LpTextarea-DbmVPj2X.js} +32 -7
- package/dist/chunks/{useTheme-BOV_-AiY.js → LpThemeProvider-8MG6yqU9.js} +66 -1
- package/dist/chunks/{LpThemeStudio-B2nPaG-h.js → LpThemeStudio-DWtG6OZZ.js} +140 -106
- package/dist/chunks/LpThemeStudioSection-B7bt8Iyg.js +32 -0
- package/dist/chunks/{LpThemeSwitcher-C0A5sg_E.js → LpThemeSwitcher-Dcx-VkSk.js} +9 -8
- package/dist/chunks/{LpTimeField-DQ8WvPr2.js → LpTimeField-BawSVsmt.js} +1 -1
- package/dist/chunks/{LpToaster-BTTl_wuy.js → LpToaster-50hp_B5O.js} +2 -2
- package/dist/chunks/{LpTopologyCanvas-B0wEvAoq.js → LpTopologyCanvas-CnUh8uzS.js} +43 -13
- package/dist/chunks/{LpTour-BgCfNlaW.js → LpTour-DC3LTlxg.js} +1 -1
- package/dist/chunks/{LpTruncate-TcqfkyJM.js → LpTruncate-Ced4gquB.js} +1 -1
- package/dist/chunks/{LpUptimeBar-DRadGq4Y.js → LpUptimeBar-CuB0LX8K.js} +4 -4
- package/dist/chunks/{MenuTitle-Dab3EGOp.js → MenuTitle-BmCNNTKH.js} +1 -1
- package/dist/chunks/{OptionContent-DPzNsybd.js → OptionContent-22UT8zLn.js} +1 -1
- package/dist/chunks/{PickerField-DwLw7j0L.js → PickerField-Bfh8id3d.js} +2 -2
- package/dist/chunks/{RevealToggle-BVFM_FAU.js → RevealToggle-B0ITuIX-.js} +2 -2
- package/dist/chunks/{TourCard--2IfgnUU.js → TourCard-CBkj1GYi.js} +5 -5
- package/dist/chunks/{icons-CLu1iR1j.js → icons-DMITlfw5.js} +1 -1
- package/dist/chunks/{palette-BiY7yQZL.js → palette-Cvxl_1tM.js} +1 -1
- package/dist/component-names.d.ts +1 -1
- package/dist/components/ContextMenuItems.vue.js +1 -1
- package/dist/components/DropzoneLinkField.vue.js +1 -1
- package/dist/components/FieldWrapper.vue.js +1 -1
- package/dist/components/LayoutCanvas.vue.js +1 -1
- package/dist/components/LayoutNode.vue.js +1 -1
- package/dist/components/LpActionBar.vue.js +1 -1
- package/dist/components/LpAddressInput.vue.js +1 -1
- package/dist/components/LpAlert.vue.js +1 -1
- package/dist/components/LpAppShell.vue.d.ts +67 -2
- package/dist/components/LpAppShell.vue.js +1 -1
- package/dist/components/LpAutocomplete.vue.js +1 -1
- package/dist/components/LpAvatar.vue.js +1 -1
- package/dist/components/LpBadge.vue.js +1 -1
- package/dist/components/LpBottomNav.vue.d.ts +28 -0
- package/dist/components/LpBottomNav.vue.js +4 -0
- package/dist/components/LpBreadcrumbs.vue.js +1 -1
- package/dist/components/LpButton.vue.js +1 -1
- package/dist/components/LpCalendar.vue.js +1 -1
- package/dist/components/LpCard.vue.js +1 -1
- package/dist/components/LpChart.vue.js +26 -8
- package/dist/components/LpCheckbox.vue.js +1 -1
- package/dist/components/LpCodeBlock.vue.js +1 -1
- package/dist/components/LpCodeDisplay.vue.js +1 -1
- package/dist/components/LpColorPicker.vue.d.ts +15 -2
- package/dist/components/LpColorPicker.vue.js +1 -1
- package/dist/components/LpCommandPalette.vue.js +47 -26
- package/dist/components/LpCommandScope.vue.js +1 -1
- package/dist/components/LpConfirmDialog.vue.js +1 -1
- package/dist/components/LpConfirmHost.vue.js +1 -1
- package/dist/components/LpContextMenu.vue.js +1 -1
- package/dist/components/LpCopyButton.vue.js +1 -1
- package/dist/components/LpCountdown.vue.js +1 -1
- package/dist/components/LpDataList.vue.js +1 -1
- package/dist/components/LpDatePicker.vue.js +1 -1
- package/dist/components/LpDateRangePicker.vue.js +1 -1
- package/dist/components/LpDisclosure.vue.js +1 -1
- package/dist/components/LpDock.vue.js +1 -1
- package/dist/components/LpDrawer.vue.js +1 -1
- package/dist/components/LpDropdownMenu.vue.js +1 -1
- package/dist/components/LpDropzone.vue.js +2 -2
- package/dist/components/LpEditable.vue.js +1 -1
- package/dist/components/LpEmptyState.vue.d.ts +2 -0
- package/dist/components/LpEmptyState.vue.js +1 -1
- package/dist/components/LpFieldNotice.vue.js +1 -1
- package/dist/components/LpFileTree.vue.js +1 -1
- package/dist/components/LpFileTreeNode.vue.js +1 -1
- package/dist/components/LpFormField.vue.js +1 -1
- package/dist/components/LpGauge.vue.js +1 -1
- package/dist/components/LpHintLayer.vue.js +1 -1
- package/dist/components/LpHints.vue.js +1 -1
- package/dist/components/LpIcon.vue.js +1 -1
- package/dist/components/LpImageEditor.vue.js +2 -2
- package/dist/components/LpInfraNode.vue.js +1 -1
- package/dist/components/LpInput.vue.js +1 -1
- package/dist/components/LpLightbox.vue.js +1 -1
- package/dist/components/LpLoader.vue.js +1 -1
- package/dist/components/LpLogViewer.vue.d.ts +1 -1
- package/dist/components/LpLogViewer.vue.js +1 -1
- package/dist/components/LpMapPicker.vue.js +1 -1
- package/dist/components/LpMediaGallery.vue.js +1 -1
- package/dist/components/LpModal.vue.js +1 -1
- package/dist/components/LpModalNav.vue.js +1 -1
- package/dist/components/LpNotificationBell.vue.js +1 -1
- package/dist/components/LpNumberField.vue.js +1 -1
- package/dist/components/LpNumberFlow.vue.js +1 -1
- package/dist/components/LpPagination.vue.js +1 -1
- package/dist/components/LpPaletteFacts.vue.js +2 -2
- package/dist/components/LpPaletteHeader.vue.js +2 -2
- package/dist/components/LpPaletteStats.vue.js +2 -2
- package/dist/components/LpPaletteTheme.vue.d.ts +2 -0
- package/dist/components/LpPaletteTheme.vue.js +1 -1
- package/dist/components/LpPasswordInput.vue.js +1 -1
- package/dist/components/LpPhoneInput.vue.js +1 -1
- package/dist/components/LpPie.vue.js +1 -1
- package/dist/components/LpPipeline.vue.js +1 -1
- package/dist/components/LpProgress.vue.js +1 -1
- package/dist/components/LpQuota.vue.js +1 -1
- package/dist/components/LpRadioGroup.vue.js +1 -1
- package/dist/components/LpRangeCalendar.vue.js +1 -1
- package/dist/components/LpRelativeTime.vue.js +1 -1
- package/dist/components/LpRepeater.vue.js +1 -1
- package/dist/components/LpRollingText.vue.d.ts +2 -2
- package/dist/components/LpRollingText.vue.js +1 -1
- package/dist/components/LpScramble.vue.js +1 -1
- package/dist/components/LpSecretField.vue.js +1 -1
- package/dist/components/LpSection.vue.js +1 -1
- package/dist/components/LpSegmented.vue.js +1 -1
- package/dist/components/LpSelect.vue.js +1 -1
- package/dist/components/LpShift.vue.d.ts +20 -0
- package/dist/components/LpShift.vue.js +1 -1
- package/dist/components/LpShortcutsDialog.vue.js +1 -1
- package/dist/components/LpSidebar.vue.d.ts +74 -23
- package/dist/components/LpSidebar.vue.js +1 -1
- package/dist/components/LpSidebarNav.vue.d.ts +30 -2
- package/dist/components/LpSidebarNav.vue.js +1 -1
- package/dist/components/LpSidebarRow.vue.d.ts +49 -0
- package/dist/components/LpSidebarRow.vue.js +4 -0
- package/dist/components/LpStat.vue.d.ts +11 -0
- package/dist/components/LpStat.vue.js +1 -1
- package/dist/components/LpStatus.vue.js +1 -1
- package/dist/components/LpStepMark.vue.js +1 -1
- package/dist/components/LpStepper.vue.js +1 -1
- package/dist/components/LpSwap.vue.js +1 -1
- package/dist/components/LpSwitch.vue.js +1 -1
- package/dist/components/LpTabFace.vue.d.ts +14 -0
- package/dist/components/LpTabFace.vue.js +4 -0
- package/dist/components/LpTable.vue.js +11 -11
- package/dist/components/LpTableFilter.vue.js +1 -1
- package/dist/components/LpTabs.vue.d.ts +12 -4
- package/dist/components/LpTabs.vue.js +22 -74
- package/dist/components/LpTagsInput.vue.js +1 -1
- package/dist/components/LpTextarea.vue.d.ts +19 -1
- package/dist/components/LpTextarea.vue.js +1 -1
- package/dist/components/LpThemeProvider.vue.js +1 -1
- package/dist/components/LpThemeStudio.vue.d.ts +2 -2
- package/dist/components/LpThemeStudio.vue.js +1 -1
- package/dist/components/LpThemeStudioSection.vue.d.ts +4 -1
- package/dist/components/LpThemeStudioSection.vue.js +1 -1
- package/dist/components/LpThemeSwitcher.vue.js +1 -1
- package/dist/components/LpTimeField.vue.js +1 -1
- package/dist/components/LpToaster.vue.js +1 -1
- package/dist/components/LpTopologyCanvas.vue.d.ts +3 -1
- package/dist/components/LpTopologyCanvas.vue.js +1 -1
- package/dist/components/LpTour.vue.js +1 -1
- package/dist/components/LpTruncate.vue.js +1 -1
- package/dist/components/LpUptimeBar.vue.js +1 -1
- package/dist/components/MenuTitle.vue.js +1 -1
- package/dist/components/OptionContent.vue.js +1 -1
- package/dist/components/PickerField.vue.js +1 -1
- package/dist/components/RevealToggle.vue.js +1 -1
- package/dist/components/TourCard.vue.js +1 -1
- package/dist/components/chart.d.ts +14 -0
- package/dist/components/chart.js +13 -0
- package/dist/components/format.d.ts +10 -3
- package/dist/components/format.js +14 -2
- package/dist/components/menuWhen.js +1 -1
- package/dist/components/rolling.d.ts +5 -0
- package/dist/components/rolling.js +23 -0
- package/dist/components/sidebar.d.ts +33 -0
- package/dist/components/tabs.d.ts +3 -0
- package/dist/components/tabs.js +6 -0
- package/dist/composables/usePaletteCommands.js +1 -0
- package/dist/composables/useReveal.js +1 -22
- package/dist/icons-all.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +156 -154
- package/dist/theme/palette.d.ts +3 -0
- package/package.json +1 -1
- package/src/component-names.ts +1 -0
- package/src/components/LpAppShell.vue +75 -7
- package/src/components/LpBottomNav.vue +84 -0
- package/src/components/LpChart.vue +23 -3
- package/src/components/LpColorPicker.vue +32 -1
- package/src/components/LpCommandPalette.vue +23 -5
- package/src/components/LpEmptyState.vue +4 -1
- package/src/components/LpNumberFlow.vue +23 -9
- package/src/components/LpPaletteTheme.vue +3 -3
- package/src/components/LpRollingText.vue +27 -2
- package/src/components/LpSegmented.vue +3 -1
- package/src/components/LpSelect.vue +5 -4
- package/src/components/LpShift.vue +174 -2
- package/src/components/LpSidebar.vue +304 -18
- package/src/components/LpSidebarNav.vue +200 -70
- package/src/components/LpSidebarRow.vue +238 -0
- package/src/components/LpStat.vue +12 -4
- package/src/components/LpTabFace.vue +52 -0
- package/src/components/LpTabs.vue +15 -42
- package/src/components/LpTextarea.vue +34 -4
- package/src/components/LpThemeStudio.vue +92 -56
- package/src/components/LpThemeStudioSection.vue +15 -7
- package/src/components/LpThemeSwitcher.vue +4 -1
- package/src/components/LpTopologyCanvas.vue +35 -4
- package/src/components/chart.ts +26 -0
- package/src/components/format.ts +31 -5
- package/src/components/rolling.ts +28 -0
- package/src/components/sidebar.ts +33 -0
- package/src/components/tabs.ts +9 -0
- package/src/composables/usePaletteCommands.ts +3 -0
- package/src/composables/useReveal.ts +7 -30
- package/src/index.ts +2 -1
- package/src/kit-icons.ts +1 -1
- package/src/theme/palette.ts +4 -2
- package/dist/assets/LpTabs-CO3EcsNV.css +0 -18
- package/dist/chunks/LpRollingText-DiL717LK.js +0 -51
- package/dist/chunks/LpShift-DXNsauQZ.js +0 -40
- package/dist/chunks/LpSidebar-D44peKq2.js +0 -256
- package/dist/chunks/LpSidebarNav--VwkXO_a.js +0 -211
- package/dist/chunks/LpThemeProvider-DcbfOxsU.js +0 -69
- package/dist/chunks/LpThemeStudioSection-BwhqYDLf.js +0 -20
|
@@ -1,15 +1,15 @@
|
|
|
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
|
|
3
|
-
import { _ as _sfc_main$4 } from "./LpNumberFlow-
|
|
2
|
+
import { _ as _sfc_main$2 } from "./LpIcon--5WSb3jJ.js";
|
|
3
|
+
import { _ as _sfc_main$4 } from "./LpNumberFlow-CcxEGUy0.js";
|
|
4
4
|
import { _ as _sfc_main$3 } from "./LpSkeleton-BB6XIV-w.js";
|
|
5
|
-
import { _ as _sfc_main$1 } from "./LpStatus-
|
|
5
|
+
import { _ as _sfc_main$1 } from "./LpStatus-BWTLVPVh.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" };
|
|
9
9
|
const _hoisted_2 = { class: "text-[11px] font-semibold uppercase tracking-[0.08em] text-muted" };
|
|
10
10
|
const _hoisted_3 = { key: 1 };
|
|
11
|
-
const _hoisted_4 = { class: "flex items-baseline gap-2" };
|
|
12
|
-
const _hoisted_5 = { class: "font-mono text-3xl font-medium tracking-tight text-ink" };
|
|
11
|
+
const _hoisted_4 = { class: "flex flex-wrap items-baseline gap-x-2" };
|
|
12
|
+
const _hoisted_5 = { class: "whitespace-nowrap font-mono text-3xl font-medium tracking-tight text-ink" };
|
|
13
13
|
const _hoisted_6 = { key: "loading" };
|
|
14
14
|
const _hoisted_7 = { key: "value" };
|
|
15
15
|
const _hoisted_8 = {
|
|
@@ -33,6 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
value: {},
|
|
34
34
|
compact: { type: Boolean },
|
|
35
35
|
grouped: { type: Boolean },
|
|
36
|
+
animateOnMount: { type: Boolean, default: true },
|
|
36
37
|
decimals: { default: 0 },
|
|
37
38
|
prefix: {},
|
|
38
39
|
valueSuffix: {},
|
|
@@ -126,10 +127,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
126
127
|
value: __props.value,
|
|
127
128
|
compact: __props.compact,
|
|
128
129
|
grouped: __props.grouped,
|
|
130
|
+
"animate-on-mount": __props.animateOnMount,
|
|
129
131
|
decimals: __props.decimals,
|
|
130
132
|
prefix: __props.prefix,
|
|
131
133
|
suffix: __props.valueSuffix
|
|
132
|
-
}, null, 8, ["value", "compact", "grouped", "decimals", "prefix", "suffix"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
134
|
+
}, null, 8, ["value", "compact", "grouped", "animate-on-mount", "decimals", "prefix", "suffix"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
133
135
|
createTextVNode(toDisplayString(__props.value), 1)
|
|
134
136
|
], 64))
|
|
135
137
|
]))
|
|
@@ -141,7 +143,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
141
143
|
createVNode(_sfc_main$3, { class: "inline-block h-[0.9em] w-10 align-middle" })
|
|
142
144
|
])) : showDelta.value ? (openBlock(), createElementBlock("span", {
|
|
143
145
|
key: 1,
|
|
144
|
-
class: normalizeClass(["inline-flex items-center gap-0.5 text-sm font-medium tabular-nums", trendColor.value])
|
|
146
|
+
class: normalizeClass(["inline-flex items-center gap-0.5 whitespace-nowrap text-sm font-medium tabular-nums", trendColor.value])
|
|
145
147
|
}, [
|
|
146
148
|
createVNode(_sfc_main$2, {
|
|
147
149
|
name: trendIcon.value,
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
5
|
-
import { _ as _sfc_main$2 } from "./LpRollingText-
|
|
6
|
-
import { _ as _sfc_main$3 } from "./LpShift-
|
|
4
|
+
import { _ as _sfc_main$1 } from "./LpBadge-vtCpsDmv.js";
|
|
5
|
+
import { _ as _sfc_main$2 } from "./LpRollingText-B54Pje7P.js";
|
|
6
|
+
import { _ as _sfc_main$3 } from "./LpShift-BAp8lGoa.js";
|
|
7
7
|
import { TONE_COLOR } from "../components/meter.js";
|
|
8
8
|
import { STATUS_LABELS, STATUS_LOOK } from "../components/status.js";
|
|
9
9
|
import '../assets/LpStatus-430OGTZY.css';const _hoisted_1 = {
|
|
@@ -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
|
|
4
|
-
import { _ as _sfc_main$2 } from "./LpLoader-
|
|
5
|
-
import { _ as _sfc_main$1 } from "./LpRollingText-
|
|
3
|
+
import { _ as _sfc_main$3 } from "./LpIcon--5WSb3jJ.js";
|
|
4
|
+
import { _ as _sfc_main$2 } from "./LpLoader-B82_CcV0.js";
|
|
5
|
+
import { _ as _sfc_main$1 } from "./LpRollingText-B54Pje7P.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-
|
|
2
|
+
import { _ as _sfc_main$1 } from "./LpStepMark-DkdkebLC.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,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, openBlock, createBlock, withCtx, createVNode, Transition, createElementBlock, renderSlot } from "vue";
|
|
2
|
-
import { _ as _sfc_main$1 } from "./LpShift-
|
|
2
|
+
import { _ as _sfc_main$1 } from "./LpShift-BAp8lGoa.js";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "LpSwap",
|
|
5
5
|
props: {
|
|
@@ -3,7 +3,7 @@ import { usePaletteControl } from "../composables/usePaletteCommands.js";
|
|
|
3
3
|
import { SwitchRoot, SwitchThumb } from "reka-ui";
|
|
4
4
|
import { useFieldControl } from "../composables/useField.js";
|
|
5
5
|
import { useOptimisticToggle } from "../composables/useOptimisticToggle.js";
|
|
6
|
-
import { _ as _sfc_main$1 } from "./LpLoader-
|
|
6
|
+
import { _ as _sfc_main$1 } from "./LpLoader-B82_CcV0.js";
|
|
7
7
|
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
8
8
|
const _hoisted_1 = {
|
|
9
9
|
key: 0,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, Fragment, createVNode, createBlock, createCommentVNode, Transition, withCtx, createElementVNode, normalizeClass, toDisplayString } from "vue";
|
|
2
|
+
import { _ as _sfc_main$2 } from "./AttentionDot-DCBf4aWg.js";
|
|
3
|
+
import { _ as _sfc_main$3 } from "./LpBadge-vtCpsDmv.js";
|
|
4
|
+
import { _ as _sfc_main$1 } from "./LpIcon--5WSb3jJ.js";
|
|
5
|
+
import { _ as _sfc_main$4 } from "./LpRollingText-B54Pje7P.js";
|
|
6
|
+
const _hoisted_1 = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "relative z-10 inline-flex"
|
|
9
|
+
};
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "LpTabFace",
|
|
12
|
+
props: {
|
|
13
|
+
item: {},
|
|
14
|
+
bottom: { type: Boolean },
|
|
15
|
+
compact: { type: Boolean },
|
|
16
|
+
active: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
setup(__props) {
|
|
19
|
+
return (_ctx, _cache) => {
|
|
20
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
21
|
+
__props.item.icon ? (openBlock(), createElementBlock("span", _hoisted_1, [
|
|
22
|
+
createVNode(_sfc_main$1, {
|
|
23
|
+
name: __props.item.icon,
|
|
24
|
+
size: __props.bottom ? 22 : 14
|
|
25
|
+
}, null, 8, ["name", "size"]),
|
|
26
|
+
__props.item.dot ? (openBlock(), createBlock(_sfc_main$2, {
|
|
27
|
+
key: 0,
|
|
28
|
+
corner: ""
|
|
29
|
+
})) : createCommentVNode("", true),
|
|
30
|
+
createVNode(Transition, { name: "lp-tab-badge" }, {
|
|
31
|
+
default: withCtx(() => [
|
|
32
|
+
__props.bottom && __props.item.badge != null ? (openBlock(), createBlock(_sfc_main$3, {
|
|
33
|
+
key: 0,
|
|
34
|
+
size: "sm",
|
|
35
|
+
tone: __props.active ? "brand" : "neutral",
|
|
36
|
+
class: "absolute -right-3 -top-1.5 min-w-[18px] justify-center"
|
|
37
|
+
}, {
|
|
38
|
+
default: withCtx(() => [
|
|
39
|
+
createVNode(_sfc_main$4, {
|
|
40
|
+
value: __props.item.badge
|
|
41
|
+
}, null, 8, ["value"])
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
}, 8, ["tone"])) : createCommentVNode("", true)
|
|
45
|
+
]),
|
|
46
|
+
_: 1
|
|
47
|
+
})
|
|
48
|
+
])) : createCommentVNode("", true),
|
|
49
|
+
createElementVNode("span", {
|
|
50
|
+
class: normalizeClass(["relative z-10", __props.bottom ? "max-w-full truncate" : __props.compact && __props.item.icon ? "sr-only" : ""])
|
|
51
|
+
}, toDisplayString(__props.item.label), 3),
|
|
52
|
+
__props.item.dot && !__props.item.icon ? (openBlock(), createBlock(_sfc_main$2, { key: 1 })) : createCommentVNode("", true),
|
|
53
|
+
createVNode(Transition, { name: "lp-tab-badge" }, {
|
|
54
|
+
default: withCtx(() => [
|
|
55
|
+
!(__props.bottom && __props.item.icon) && __props.item.badge != null ? (openBlock(), createBlock(_sfc_main$3, {
|
|
56
|
+
key: 0,
|
|
57
|
+
size: "sm",
|
|
58
|
+
tone: __props.active ? "brand" : "neutral",
|
|
59
|
+
class: "relative z-10 min-w-[18px] justify-center"
|
|
60
|
+
}, {
|
|
61
|
+
default: withCtx(() => [
|
|
62
|
+
createVNode(_sfc_main$4, {
|
|
63
|
+
value: __props.item.badge
|
|
64
|
+
}, null, 8, ["value"])
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
}, 8, ["tone"])) : createCommentVNode("", true)
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
})
|
|
71
|
+
], 64);
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
export {
|
|
76
|
+
_sfc_main as _
|
|
77
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
3
|
-
import { _ as _sfc_main$1 } from "./LpInput-
|
|
4
|
-
import { _ as _sfc_main$2 } from "./LpShift-
|
|
2
|
+
import { _ as _sfc_main$3 } from "./LpCheckbox-DLX4amba.js";
|
|
3
|
+
import { _ as _sfc_main$1 } from "./LpInput-1eNvtzXs.js";
|
|
4
|
+
import { _ as _sfc_main$2 } from "./LpShift-BAp8lGoa.js";
|
|
5
5
|
import { usePaintSelect } from "../composables/usePaintSelect.js";
|
|
6
6
|
import { matchesQuery, onlyValues, unhideValues, hideAllValues, invertHidden } from "../components/tableFilter.js";
|
|
7
7
|
const _hoisted_1 = { class: "flex flex-col gap-2" };
|
|
@@ -7,12 +7,12 @@ import { useFieldNotice } from "../composables/useFieldNotice.js";
|
|
|
7
7
|
import { useShift } from "../composables/useShift.js";
|
|
8
8
|
import { useLabels } from "../composables/useLpConfig.js";
|
|
9
9
|
import { mergeClass } from "../composables/useMergedClass.js";
|
|
10
|
-
import { _ as _sfc_main$4 } from "./LpFieldNotice-
|
|
11
|
-
import { _ as _sfc_main$1 } from "./FieldWrapper-
|
|
10
|
+
import { _ as _sfc_main$4 } from "./LpFieldNotice-CzQ2_5rQ.js";
|
|
11
|
+
import { _ as _sfc_main$1 } from "./FieldWrapper-DnA1rxZ8.js";
|
|
12
12
|
import { BADGE_REMOVE } from "../components/badge.js";
|
|
13
|
-
import { _ as _sfc_main$2 } from "./LpBadge-
|
|
14
|
-
import { _ as _sfc_main$3 } from "./LpIcon
|
|
15
|
-
import { _ as _sfc_main$5 } from "./OptionContent-
|
|
13
|
+
import { _ as _sfc_main$2 } from "./LpBadge-vtCpsDmv.js";
|
|
14
|
+
import { _ as _sfc_main$3 } from "./LpIcon--5WSb3jJ.js";
|
|
15
|
+
import { _ as _sfc_main$5 } from "./OptionContent-22UT8zLn.js";
|
|
16
16
|
import { POPOVER_PANEL, OPTION_ITEM, optionStagger } from "../components/dropdown.js";
|
|
17
17
|
import { splitTags, addTags } from "../components/tags.js";
|
|
18
18
|
import { usePortalTarget, useOutsideGuard } from "../composables/useView.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, computed, useAttrs, openBlock, createBlock, normalizeStyle, unref, normalizeClass, withCtx, createElementVNode, mergeProps } from "vue";
|
|
1
|
+
import { defineComponent, computed, useAttrs, ref, watch, nextTick, onMounted, openBlock, createBlock, normalizeStyle, unref, normalizeClass, withCtx, createElementVNode, mergeProps } from "vue";
|
|
2
2
|
import { usePaletteControl } from "../composables/usePaletteCommands.js";
|
|
3
3
|
import { useFieldControl } from "../composables/useField.js";
|
|
4
4
|
import { mergeClass } from "../composables/useMergedClass.js";
|
|
5
|
-
import { _ as _sfc_main$1 } from "./FieldWrapper-
|
|
5
|
+
import { _ as _sfc_main$1 } from "./FieldWrapper-DnA1rxZ8.js";
|
|
6
6
|
const _hoisted_1 = ["id", "value", "placeholder", "rows", "disabled", "required", "aria-invalid", "aria-describedby"];
|
|
7
7
|
const __default__ = { inheritAttrs: false };
|
|
8
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -18,10 +18,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
18
18
|
label: {},
|
|
19
19
|
hint: {},
|
|
20
20
|
error: {},
|
|
21
|
-
required: { type: Boolean }
|
|
21
|
+
required: { type: Boolean },
|
|
22
|
+
autosize: { type: Boolean },
|
|
23
|
+
maxRows: { default: 8 }
|
|
22
24
|
},
|
|
23
25
|
emits: ["update:modelValue"],
|
|
24
|
-
setup(__props) {
|
|
26
|
+
setup(__props, { expose: __expose }) {
|
|
25
27
|
const props = __props;
|
|
26
28
|
const hasField = computed(() => !!props.label || !!props.hint || !!props.error);
|
|
27
29
|
const attrs = useAttrs();
|
|
@@ -37,9 +39,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
39
|
required: props.required,
|
|
38
40
|
disabled: props.disabled
|
|
39
41
|
}));
|
|
42
|
+
const box = ref(null);
|
|
43
|
+
function fit() {
|
|
44
|
+
const el = box.value;
|
|
45
|
+
if (!props.autosize || !el) return;
|
|
46
|
+
const style = getComputedStyle(el);
|
|
47
|
+
const line = parseFloat(style.lineHeight) || parseFloat(style.fontSize) * 1.4;
|
|
48
|
+
const borders = parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
|
|
49
|
+
const padding = parseFloat(style.paddingTop) + parseFloat(style.paddingBottom);
|
|
50
|
+
el.style.height = "auto";
|
|
51
|
+
const max = line * props.maxRows + padding + borders;
|
|
52
|
+
el.style.height = `${Math.min(el.scrollHeight + borders, max)}px`;
|
|
53
|
+
el.style.overflowY = el.scrollHeight + borders > max + 1 ? "auto" : "hidden";
|
|
54
|
+
}
|
|
55
|
+
watch(() => props.modelValue, () => nextTick(fit));
|
|
56
|
+
onMounted(fit);
|
|
57
|
+
__expose({ el: box, fit });
|
|
40
58
|
const textareaClass = computed(
|
|
41
59
|
() => mergeClass(
|
|
42
|
-
"w-full resize-
|
|
60
|
+
props.autosize ? "w-full resize-none" : "w-full resize-y",
|
|
61
|
+
"rounded-control border bg-surface-soft px-3 py-2 text-sm text-ink outline-none transition-colors duration-[var(--duration-fast)] placeholder:text-muted focus:border-brand focus:ring-2 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-55",
|
|
43
62
|
field.value.invalid ? "border-danger focus:border-danger focus:ring-danger-soft" : "border-line",
|
|
44
63
|
hasField.value ? "" : attrs.class
|
|
45
64
|
)
|
|
@@ -57,7 +76,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
76
|
style: normalizeStyle(unref(attrs).style)
|
|
58
77
|
}, {
|
|
59
78
|
default: withCtx(() => [
|
|
60
|
-
createElementVNode("textarea", mergeProps(
|
|
79
|
+
createElementVNode("textarea", mergeProps({
|
|
80
|
+
ref_key: "box",
|
|
81
|
+
ref: box
|
|
82
|
+
}, textareaAttrs.value, {
|
|
61
83
|
id: unref(field).id,
|
|
62
84
|
value: __props.modelValue,
|
|
63
85
|
placeholder: __props.placeholder,
|
|
@@ -68,7 +90,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
68
90
|
"aria-describedby": unref(field).describedBy,
|
|
69
91
|
class: textareaClass.value,
|
|
70
92
|
style: hasField.value ? void 0 : unref(attrs).style,
|
|
71
|
-
onInput: _cache[0] || (_cache[0] = ($event) =>
|
|
93
|
+
onInput: _cache[0] || (_cache[0] = ($event) => {
|
|
94
|
+
_ctx.$emit("update:modelValue", $event.target.value);
|
|
95
|
+
fit();
|
|
96
|
+
})
|
|
72
97
|
}), null, 16, _hoisted_1)
|
|
73
98
|
]),
|
|
74
99
|
_: 1
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { computed, readonly, shallowRef } from "vue";
|
|
1
|
+
import { computed, readonly, shallowRef, defineComponent, ref, watch, nextTick, openBlock, createBlock, resolveDynamicComponent, mergeProps, unref, withCtx, renderSlot } from "vue";
|
|
2
2
|
import { prefersReducedMotion, easingToken } from "../composables/easing.js";
|
|
3
3
|
import { d as detectBackdropFilter } from "./backdrop-Dkf2vM81.js";
|
|
4
|
+
import { useMergedAttrs } from "../composables/useMergedClass.js";
|
|
4
5
|
const sharedShape = { radiusControl: 8, radiusCard: 14, radiusPill: 9999 };
|
|
5
6
|
const sharedDensity = { spacingUnit: 4, controlSm: 32, controlMd: 38, controlLg: 44 };
|
|
6
7
|
const interFont = {
|
|
@@ -547,9 +548,73 @@ function useTheme() {
|
|
|
547
548
|
bootstrap: bootstrapTheme
|
|
548
549
|
};
|
|
549
550
|
}
|
|
551
|
+
const PRESS_FRESH_MS = 1500;
|
|
552
|
+
let lastPress = null;
|
|
553
|
+
if (typeof window !== "undefined") {
|
|
554
|
+
window.addEventListener(
|
|
555
|
+
"pointerdown",
|
|
556
|
+
(event) => lastPress = { x: event.clientX, y: event.clientY, at: performance.now() },
|
|
557
|
+
{ capture: true, passive: true }
|
|
558
|
+
);
|
|
559
|
+
}
|
|
560
|
+
const __default__ = { inheritAttrs: false };
|
|
561
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
562
|
+
...__default__,
|
|
563
|
+
__name: "LpThemeProvider",
|
|
564
|
+
props: {
|
|
565
|
+
theme: {},
|
|
566
|
+
as: { default: "div" },
|
|
567
|
+
transition: { type: Boolean, default: false }
|
|
568
|
+
},
|
|
569
|
+
setup(__props) {
|
|
570
|
+
const props = __props;
|
|
571
|
+
const { class: rootClass, attrs: rest } = useMergedAttrs("bg-surface text-ink");
|
|
572
|
+
const root = ref(null);
|
|
573
|
+
const shown = shallowRef(props.theme);
|
|
574
|
+
const style = computed(() => ({
|
|
575
|
+
...Object.fromEntries(themeEntries(shown.value)),
|
|
576
|
+
colorScheme: shown.value.mode
|
|
577
|
+
}));
|
|
578
|
+
function originOf() {
|
|
579
|
+
if (lastPress && performance.now() - lastPress.at < PRESS_FRESH_MS) return lastPress;
|
|
580
|
+
const value = root.value;
|
|
581
|
+
const el = value instanceof HTMLElement ? value : value?.$el;
|
|
582
|
+
const box = el?.getBoundingClientRect?.();
|
|
583
|
+
return box ? { x: box.left + box.width / 2, y: box.top + box.height / 2 } : void 0;
|
|
584
|
+
}
|
|
585
|
+
watch(
|
|
586
|
+
() => props.theme,
|
|
587
|
+
(next) => {
|
|
588
|
+
if (!props.transition) {
|
|
589
|
+
shown.value = next;
|
|
590
|
+
return;
|
|
591
|
+
}
|
|
592
|
+
revealTransition(async () => {
|
|
593
|
+
shown.value = next;
|
|
594
|
+
await nextTick();
|
|
595
|
+
}, originOf());
|
|
596
|
+
}
|
|
597
|
+
);
|
|
598
|
+
return (_ctx, _cache) => {
|
|
599
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.as), mergeProps({
|
|
600
|
+
ref_key: "root",
|
|
601
|
+
ref: root,
|
|
602
|
+
style: style.value,
|
|
603
|
+
"data-theme-mode": shown.value.mode,
|
|
604
|
+
class: unref(rootClass)
|
|
605
|
+
}, unref(rest)), {
|
|
606
|
+
default: withCtx(() => [
|
|
607
|
+
renderSlot(_ctx.$slots, "default")
|
|
608
|
+
]),
|
|
609
|
+
_: 3
|
|
610
|
+
}, 16, ["style", "data-theme-mode", "class"]);
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
});
|
|
550
614
|
export {
|
|
551
615
|
DEFAULT_SURFACE as D,
|
|
552
616
|
THEME_COOKIE as T,
|
|
617
|
+
_sfc_main as _,
|
|
553
618
|
parseTheme as a,
|
|
554
619
|
amber as b,
|
|
555
620
|
applyTheme as c,
|