@leavepulse/ui 0.72.5 → 0.73.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/{LpNumberFlow-Chp9pEDe.css → LpNumberFlow-P1balINP.css} +1 -1
- package/dist/chunks/{LpAppShell-DMSJg18Q.js → LpAppShell-rr5kqiK3.js} +8 -2
- package/dist/chunks/{LpCodeDisplay-AQx-3nNb.js → LpCodeDisplay-CE9TxCA4.js} +1 -1
- package/dist/chunks/{LpCommandScope-BlKcgBnK.js → LpCommandScope-CtUhJe8T.js} +1 -1
- package/dist/chunks/{LpCountdown-BxE7stYk.js → LpCountdown-DgeY3cLG.js} +1 -1
- package/dist/chunks/{LpGauge-BO1PYYqD.js → LpGauge-KZaQ_FDR.js} +1 -1
- package/dist/chunks/{LpModalNav-CE3iLnxB.js → LpModalNav-DQpV2kdn.js} +1 -1
- package/dist/chunks/{LpNumberFlow-CcxEGUy0.js → LpNumberFlow-Vqj0tP7B.js} +1 -1
- package/dist/chunks/{LpPaletteTheme-CdEEMMEF.js → LpPaletteTheme-DiLYKQiZ.js} +1 -1
- package/dist/chunks/{LpPie-Mr3EtFEd.js → LpPie-DrZepi0p.js} +1 -1
- package/dist/chunks/{LpProgress-rOlyafqp.js → LpProgress-Yr6ONG5t.js} +1 -1
- package/dist/chunks/{LpQuota-B12yijdB.js → LpQuota-Dk2MyI2Z.js} +1 -1
- package/dist/chunks/{LpSidebar-BciLMBgY.js → LpSidebar-BoNLKgh-.js} +1 -1
- package/dist/chunks/{LpSidebarNav-HYcG-ib8.js → LpSidebarNav-Bky8chrv.js} +1 -1
- package/dist/chunks/{LpSidebarRow-Di2VYz-Z.js → LpSidebarRow-BRYhNDSo.js} +1 -1
- package/dist/chunks/{LpStat-D6V6Fdfc.js → LpStat-BVf2UvEc.js} +1 -1
- package/dist/chunks/{LpTableOfContents-CraicEs4.js → LpTableOfContents-BN5zvpnx.js} +2 -2
- package/dist/chunks/{LpThemeStudio-BJDKf3_Z.js → LpThemeStudio-BpORDvH6.js} +1 -1
- package/dist/chunks/{LpThemeSwitcher-BDrIJswA.js → LpThemeSwitcher-BnEn_mvf.js} +2 -2
- package/dist/chunks/{LpUptimeBar-BtkZRwY0.js → LpUptimeBar-DqNvvMBK.js} +1 -1
- package/dist/chunks/{palette-Cvxl_1tM.js → palette-Co8tSASo.js} +1 -1
- package/dist/components/LpAppShell.vue.d.ts +20 -0
- package/dist/components/LpAppShell.vue.js +1 -1
- package/dist/components/LpCodeDisplay.vue.js +1 -1
- package/dist/components/LpCommandScope.vue.js +1 -1
- package/dist/components/LpCountdown.vue.js +1 -1
- package/dist/components/LpGauge.vue.js +1 -1
- package/dist/components/LpModalNav.vue.js +1 -1
- package/dist/components/LpNumberFlow.vue.js +1 -1
- package/dist/components/LpPaletteStats.vue.js +1 -1
- package/dist/components/LpPaletteTheme.vue.js +1 -1
- package/dist/components/LpPie.vue.js +1 -1
- package/dist/components/LpProgress.vue.js +1 -1
- package/dist/components/LpQuota.vue.js +1 -1
- package/dist/components/LpSidebar.vue.js +1 -1
- package/dist/components/LpSidebarNav.vue.js +1 -1
- package/dist/components/LpSidebarRow.vue.js +1 -1
- package/dist/components/LpStat.vue.js +1 -1
- package/dist/components/LpTableOfContents.vue.js +1 -1
- package/dist/components/LpThemeStudio.vue.js +1 -1
- package/dist/components/LpThemeSwitcher.vue.js +1 -1
- package/dist/components/LpUptimeBar.vue.js +1 -1
- package/dist/components/commandSearch.d.ts +2 -1
- package/dist/components/commandSearch.js +15 -6
- package/dist/components/format.d.ts +6 -6
- package/dist/components/quota.d.ts +1 -1
- package/dist/components/timeSpan.d.ts +1 -1
- package/dist/composables/scroll.d.ts +2 -0
- package/dist/composables/scroll.js +4 -0
- package/dist/composables/scrollMemory.d.ts +1 -0
- package/dist/composables/scrollMemory.js +111 -0
- package/dist/index.js +18 -18
- package/dist/theme/palette.d.ts +2 -1
- package/package.json +1 -1
- package/src/components/LpAppShell.vue +18 -2
- package/src/components/LpNumberFlow.vue +3 -3
- package/src/components/LpStat.vue +1 -1
- package/src/components/LpTableOfContents.vue +4 -2
- package/src/components/commandSearch.ts +17 -6
- package/src/components/format.ts +9 -9
- package/src/components/quota.ts +1 -1
- package/src/components/timeSpan.ts +1 -1
- package/src/composables/scroll.ts +5 -0
- package/src/composables/scrollMemory.ts +145 -0
- package/src/composables/useLocale.ts +1 -1
- package/src/nuxt.ts +1 -14
- package/src/theme/palette.ts +3 -3
|
@@ -5,7 +5,7 @@ import { injectConfigProviderContext } from "reka-ui"
|
|
|
5
5
|
* The locale a date is written in: the component's own `locale`, else the one
|
|
6
6
|
* the app gave reka's ConfigProvider, else undefined, which lets Intl use the
|
|
7
7
|
* browser's. The calendars already followed ConfigProvider while the field
|
|
8
|
-
* that shows the picked date did not, so a
|
|
8
|
+
* that shows the picked date did not, so a French app showed a French
|
|
9
9
|
* calendar under "Oct 8, 2026".
|
|
10
10
|
*/
|
|
11
11
|
export function useLocale(own?: MaybeRefOrGetter<string | undefined>): ComputedRef<string | undefined> {
|
package/src/nuxt.ts
CHANGED
|
@@ -56,20 +56,7 @@ function iconsPlugin(mode: LeavepulseUiOptions["icons"], srcDir: string): string
|
|
|
56
56
|
export default defineNuxtModule<LeavepulseUiOptions>({
|
|
57
57
|
meta: { name: "@leavepulse/ui", configKey: "leavepulseUi" },
|
|
58
58
|
defaults: { theme: true, link: true, icons: "scan" },
|
|
59
|
-
setup(
|
|
60
|
-
options: LeavepulseUiOptions,
|
|
61
|
-
nuxt: {
|
|
62
|
-
options: {
|
|
63
|
-
runtimeConfig: { public: Record<string, unknown> }
|
|
64
|
-
alias: Record<string, string>
|
|
65
|
-
srcDir: string
|
|
66
|
-
}
|
|
67
|
-
hook: (
|
|
68
|
-
name: "prepare:types",
|
|
69
|
-
fn: (options: { references: { path: string }[] }) => void,
|
|
70
|
-
) => void
|
|
71
|
-
},
|
|
72
|
-
) {
|
|
59
|
+
setup(options, nuxt) {
|
|
73
60
|
const resolver = createResolver(import.meta.url)
|
|
74
61
|
const skip = new Set(options.exclude ?? [])
|
|
75
62
|
for (const name of COMPONENT_NAMES) {
|
package/src/theme/palette.ts
CHANGED
|
@@ -7,8 +7,8 @@ import { useLabels } from "../composables/useLpConfig"
|
|
|
7
7
|
const Editor = defineAsyncComponent(() => import("../components/LpPaletteTheme.vue"))
|
|
8
8
|
|
|
9
9
|
/** Registers the studio itself; no second list of theme options in the app. */
|
|
10
|
-
/** `hide` leaves out the same studio rows the app hides in its own studio. */
|
|
11
|
-
export function usePaletteTheme(studio: MaybeRefOrGetter<ThemeStudio | undefined>, options: { id?: string; label?: string; scope?: PaletteScope; hide?: ThemeStudioPart[] } = {}) {
|
|
10
|
+
/** `hide` leaves out the same studio rows the app hides in its own studio; `keywords` adds the app's own search words. */
|
|
11
|
+
export function usePaletteTheme(studio: MaybeRefOrGetter<ThemeStudio | undefined>, options: { id?: string; label?: string; scope?: PaletteScope; hide?: ThemeStudioPart[]; keywords?: string[] } = {}) {
|
|
12
12
|
const scope = options.scope ?? usePaletteScope()
|
|
13
13
|
const text = useLabels("paletteTheme", { title: "Theme" })
|
|
14
14
|
const currentStudio = () => {
|
|
@@ -21,7 +21,7 @@ export function usePaletteTheme(studio: MaybeRefOrGetter<ThemeStudio | undefined
|
|
|
21
21
|
if (!current) return []
|
|
22
22
|
return [{
|
|
23
23
|
id: `${scope?.id}/${options.id ?? "theme"}`, label: options.label ?? text.value.title, icon: "lucide:palette",
|
|
24
|
-
description: current.theme.value.name, keywords: ["theme", "appearance", "accent", "density",
|
|
24
|
+
description: current.theme.value.name, keywords: ["theme", "appearance", "accent", "density", ...(options.keywords ?? [])],
|
|
25
25
|
previewComponent: preview, editInPreview: true,
|
|
26
26
|
}]
|
|
27
27
|
}, { scope: options.scope })
|