@leavepulse/ui 0.39.0 → 0.39.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
1
 
2
- .lp-cmd-excerpt[data-v-eecd2c28] {
2
+ .lp-cmd-excerpt[data-v-fcb38dbd] {
3
3
  display: -webkit-box;
4
4
  -webkit-box-orient: vertical;
5
5
  overflow: hidden;
6
6
  }
7
7
  /* Each result eases in; honours reduced motion. */
8
- .lp-cmd-item[data-v-eecd2c28] {
9
- animation: lp-cmd-in-eecd2c28 140ms ease-out both;
8
+ .lp-cmd-item[data-v-fcb38dbd] {
9
+ animation: lp-cmd-in-fcb38dbd 140ms ease-out both;
10
10
  }
11
- @keyframes lp-cmd-in-eecd2c28 {
11
+ @keyframes lp-cmd-in-fcb38dbd {
12
12
  from {
13
13
  opacity: 0;
14
14
  transform: translateY(3px);
15
15
  }
16
16
  }
17
17
  @media (prefers-reduced-motion: reduce) {
18
- .lp-cmd-item[data-v-eecd2c28] {
18
+ .lp-cmd-item[data-v-fcb38dbd] {
19
19
  animation: none;
20
20
  }
21
21
  }
@@ -149,6 +149,11 @@ type __VLS_Props = {
149
149
  * pane lets it be read without leaving the page. Opt-in and fixed while
150
150
  * open, so the dialog does not change width as results come and go.
151
151
  * Hidden below the md breakpoint, where there is no room beside the list.
152
+ *
153
+ * The dialog takes one width class or the other, never a base width plus
154
+ * an `md:` override: a consumer's Tailwind build can emit the two in an
155
+ * order where the base wins, and the pane opened squeezed into 40rem.
156
+ * Both widths are 92vw on a narrow screen, so no breakpoint is needed.
152
157
  */
153
158
  previewPane?: boolean;
154
159
  /**
@@ -6,7 +6,7 @@ import { useAsyncTask } from "../composables/useAsyncTask.js";
6
6
  import { useClipboard } from "../composables/useClipboard.js";
7
7
  import { useHotkeys } from "../composables/useHotkeys.js";
8
8
  import { _ as _export_sfc } from "../chunks/_plugin-vue_export-helper-1tPrXgE0.js";
9
- import '../assets/LpCommandPalette-DdETX0-G.css';const _hoisted_1 = { class: "flex shrink-0 items-center gap-2.5 border-b border-line px-4" };
9
+ import '../assets/LpCommandPalette-DKL4O4JP.css';const _hoisted_1 = { class: "flex shrink-0 items-center gap-2.5 border-b border-line px-4" };
10
10
  const _hoisted_2 = ["title", "onClick"];
11
11
  const _hoisted_3 = ["aria-activedescendant", "placeholder", "onKeydown"];
12
12
  const _hoisted_4 = { class: "flex min-h-0 flex-1" };
@@ -484,9 +484,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
484
484
  class: normalizeClass([{ "lp-scrim--light": __props.glass }, "lp-scrim fixed inset-0 z-(--z-overlay) data-[state=open]:animate-[fade-in_150ms_ease] data-[state=closed]:animate-[fade-out_130ms_ease]"])
485
485
  }, null, 8, ["class"]),
486
486
  createVNode(unref(DialogContent), {
487
- class: normalizeClass(["fixed left-1/2 top-[12vh] z-(--z-modal) flex max-h-[76vh] w-[min(92vw,40rem)] -translate-x-1/2 flex-col overflow-hidden rounded-card border border-line shadow-panel outline-none data-[state=open]:animate-[pop-in_160ms_var(--ease-emphasized)] data-[state=closed]:animate-[pop-out_130ms_ease]", [
487
+ class: normalizeClass(["fixed left-1/2 top-[12vh] z-(--z-modal) flex max-h-[76vh] -translate-x-1/2 flex-col overflow-hidden rounded-card border border-line shadow-panel outline-none data-[state=open]:animate-[pop-in_160ms_var(--ease-emphasized)] data-[state=closed]:animate-[pop-out_130ms_ease]", [
488
488
  __props.glass ? "lp-glass-overlay" : "bg-surface-raised",
489
- __props.previewPane && "md:h-[min(76vh,36rem)] md:w-[min(92vw,64rem)]"
489
+ __props.previewPane ? "w-[min(92vw,64rem)] md:h-[min(76vh,36rem)]" : "w-[min(92vw,40rem)]"
490
490
  ]]),
491
491
  onOpenAutoFocus: _cache[2] || (_cache[2] = withModifiers(() => {
492
492
  }, ["prevent"]))
@@ -761,7 +761,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
761
761
  };
762
762
  }
763
763
  });
764
- const LpCommandPalette = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-eecd2c28"]]);
764
+ const LpCommandPalette = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fcb38dbd"]]);
765
765
  export {
766
766
  LpCommandPalette as default
767
767
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavepulse/ui",
3
- "version": "0.39.0",
3
+ "version": "0.39.1",
4
4
  "type": "module",
5
5
  "description": "LeavePulse token-driven Vue component kit.",
6
6
  "repository": {
@@ -197,6 +197,11 @@ const props = withDefaults(
197
197
  * pane lets it be read without leaving the page. Opt-in and fixed while
198
198
  * open, so the dialog does not change width as results come and go.
199
199
  * Hidden below the md breakpoint, where there is no room beside the list.
200
+ *
201
+ * The dialog takes one width class or the other, never a base width plus
202
+ * an `md:` override: a consumer's Tailwind build can emit the two in an
203
+ * order where the base wins, and the pane opened squeezed into 40rem.
204
+ * Both widths are 92vw on a narrow screen, so no breakpoint is needed.
200
205
  */
201
206
  previewPane?: boolean
202
207
  /**
@@ -836,10 +841,10 @@ useHotkeys(() =>
836
841
  class="lp-scrim fixed inset-0 z-(--z-overlay) data-[state=open]:animate-[fade-in_150ms_ease] data-[state=closed]:animate-[fade-out_130ms_ease]"
837
842
  />
838
843
  <DialogContent
839
- class="fixed left-1/2 top-[12vh] z-(--z-modal) flex max-h-[76vh] w-[min(92vw,40rem)] -translate-x-1/2 flex-col overflow-hidden rounded-card border border-line shadow-panel outline-none data-[state=open]:animate-[pop-in_160ms_var(--ease-emphasized)] data-[state=closed]:animate-[pop-out_130ms_ease]"
844
+ class="fixed left-1/2 top-[12vh] z-(--z-modal) flex max-h-[76vh] -translate-x-1/2 flex-col overflow-hidden rounded-card border border-line shadow-panel outline-none data-[state=open]:animate-[pop-in_160ms_var(--ease-emphasized)] data-[state=closed]:animate-[pop-out_130ms_ease]"
840
845
  :class="[
841
846
  glass ? 'lp-glass-overlay' : 'bg-surface-raised',
842
- previewPane && 'md:h-[min(76vh,36rem)] md:w-[min(92vw,64rem)]',
847
+ previewPane ? 'w-[min(92vw,64rem)] md:h-[min(76vh,36rem)]' : 'w-[min(92vw,40rem)]',
843
848
  ]"
844
849
  @open-auto-focus.prevent
845
850
  >