@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.
Files changed (67) hide show
  1. package/dist/assets/{LpNumberFlow-Chp9pEDe.css → LpNumberFlow-P1balINP.css} +1 -1
  2. package/dist/chunks/{LpAppShell-DMSJg18Q.js → LpAppShell-rr5kqiK3.js} +8 -2
  3. package/dist/chunks/{LpCodeDisplay-AQx-3nNb.js → LpCodeDisplay-CE9TxCA4.js} +1 -1
  4. package/dist/chunks/{LpCommandScope-BlKcgBnK.js → LpCommandScope-CtUhJe8T.js} +1 -1
  5. package/dist/chunks/{LpCountdown-BxE7stYk.js → LpCountdown-DgeY3cLG.js} +1 -1
  6. package/dist/chunks/{LpGauge-BO1PYYqD.js → LpGauge-KZaQ_FDR.js} +1 -1
  7. package/dist/chunks/{LpModalNav-CE3iLnxB.js → LpModalNav-DQpV2kdn.js} +1 -1
  8. package/dist/chunks/{LpNumberFlow-CcxEGUy0.js → LpNumberFlow-Vqj0tP7B.js} +1 -1
  9. package/dist/chunks/{LpPaletteTheme-CdEEMMEF.js → LpPaletteTheme-DiLYKQiZ.js} +1 -1
  10. package/dist/chunks/{LpPie-Mr3EtFEd.js → LpPie-DrZepi0p.js} +1 -1
  11. package/dist/chunks/{LpProgress-rOlyafqp.js → LpProgress-Yr6ONG5t.js} +1 -1
  12. package/dist/chunks/{LpQuota-B12yijdB.js → LpQuota-Dk2MyI2Z.js} +1 -1
  13. package/dist/chunks/{LpSidebar-BciLMBgY.js → LpSidebar-BoNLKgh-.js} +1 -1
  14. package/dist/chunks/{LpSidebarNav-HYcG-ib8.js → LpSidebarNav-Bky8chrv.js} +1 -1
  15. package/dist/chunks/{LpSidebarRow-Di2VYz-Z.js → LpSidebarRow-BRYhNDSo.js} +1 -1
  16. package/dist/chunks/{LpStat-D6V6Fdfc.js → LpStat-BVf2UvEc.js} +1 -1
  17. package/dist/chunks/{LpTableOfContents-CraicEs4.js → LpTableOfContents-BN5zvpnx.js} +2 -2
  18. package/dist/chunks/{LpThemeStudio-BJDKf3_Z.js → LpThemeStudio-BpORDvH6.js} +1 -1
  19. package/dist/chunks/{LpThemeSwitcher-BDrIJswA.js → LpThemeSwitcher-BnEn_mvf.js} +2 -2
  20. package/dist/chunks/{LpUptimeBar-BtkZRwY0.js → LpUptimeBar-DqNvvMBK.js} +1 -1
  21. package/dist/chunks/{palette-Cvxl_1tM.js → palette-Co8tSASo.js} +1 -1
  22. package/dist/components/LpAppShell.vue.d.ts +20 -0
  23. package/dist/components/LpAppShell.vue.js +1 -1
  24. package/dist/components/LpCodeDisplay.vue.js +1 -1
  25. package/dist/components/LpCommandScope.vue.js +1 -1
  26. package/dist/components/LpCountdown.vue.js +1 -1
  27. package/dist/components/LpGauge.vue.js +1 -1
  28. package/dist/components/LpModalNav.vue.js +1 -1
  29. package/dist/components/LpNumberFlow.vue.js +1 -1
  30. package/dist/components/LpPaletteStats.vue.js +1 -1
  31. package/dist/components/LpPaletteTheme.vue.js +1 -1
  32. package/dist/components/LpPie.vue.js +1 -1
  33. package/dist/components/LpProgress.vue.js +1 -1
  34. package/dist/components/LpQuota.vue.js +1 -1
  35. package/dist/components/LpSidebar.vue.js +1 -1
  36. package/dist/components/LpSidebarNav.vue.js +1 -1
  37. package/dist/components/LpSidebarRow.vue.js +1 -1
  38. package/dist/components/LpStat.vue.js +1 -1
  39. package/dist/components/LpTableOfContents.vue.js +1 -1
  40. package/dist/components/LpThemeStudio.vue.js +1 -1
  41. package/dist/components/LpThemeSwitcher.vue.js +1 -1
  42. package/dist/components/LpUptimeBar.vue.js +1 -1
  43. package/dist/components/commandSearch.d.ts +2 -1
  44. package/dist/components/commandSearch.js +15 -6
  45. package/dist/components/format.d.ts +6 -6
  46. package/dist/components/quota.d.ts +1 -1
  47. package/dist/components/timeSpan.d.ts +1 -1
  48. package/dist/composables/scroll.d.ts +2 -0
  49. package/dist/composables/scroll.js +4 -0
  50. package/dist/composables/scrollMemory.d.ts +1 -0
  51. package/dist/composables/scrollMemory.js +111 -0
  52. package/dist/index.js +18 -18
  53. package/dist/theme/palette.d.ts +2 -1
  54. package/package.json +1 -1
  55. package/src/components/LpAppShell.vue +18 -2
  56. package/src/components/LpNumberFlow.vue +3 -3
  57. package/src/components/LpStat.vue +1 -1
  58. package/src/components/LpTableOfContents.vue +4 -2
  59. package/src/components/commandSearch.ts +17 -6
  60. package/src/components/format.ts +9 -9
  61. package/src/components/quota.ts +1 -1
  62. package/src/components/timeSpan.ts +1 -1
  63. package/src/composables/scroll.ts +5 -0
  64. package/src/composables/scrollMemory.ts +145 -0
  65. package/src/composables/useLocale.ts +1 -1
  66. package/src/nuxt.ts +1 -14
  67. 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 Russian app showed a Russian
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) {
@@ -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 })