@leavepulse/ui 0.28.4 → 0.28.5

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.
@@ -3,9 +3,9 @@ import { OSM_TILES, createNominatimProvider, emptyAddress, formatAddress } from
3
3
  import { flagEmoji, loadCountries } from "../components/countries.js";
4
4
  import { _ as _sfc_main$2 } from "./LpAutocomplete-DExlIZe_.js";
5
5
  import { _ as _sfc_main$3 } from "./LpButton-5VXXCjwF.js";
6
- import { _ as _sfc_main$1 } from "./LpFormField-DEaakcHe.js";
6
+ import { _ as _sfc_main$1 } from "./LpFormField-fV_2ZdCk.js";
7
7
  import { _ as _sfc_main$4 } from "./LpIcon-CCnX5_2j.js";
8
- import { _ as _sfc_main$5 } from "./LpInput-BXr40nqX.js";
8
+ import { _ as _sfc_main$5 } from "./LpInput-CYcTL9gj.js";
9
9
  import { _ as _sfc_main$7 } from "./LpModal-D_o-56To.js";
10
10
  import { _ as _sfc_main$6 } from "./LpSelect-ANIVtrpM.js";
11
11
  const _hoisted_1 = { class: "flex flex-col gap-3" };
@@ -40,9 +40,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
40
40
  renderSlot(_ctx.$slots, "default", { id: unref(id) }),
41
41
  createVNode(_sfc_main$1, { axis: "height" }, {
42
42
  default: withCtx(() => [
43
- __props.error ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(__props.error), 1)) : __props.hint ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
43
+ __props.error ? (openBlock(), createElementBlock("p", _hoisted_3, toDisplayString(__props.error), 1)) : __props.hint || _ctx.$slots.hint ? (openBlock(), createElementBlock("p", _hoisted_4, [
44
+ renderSlot(_ctx.$slots, "hint", {}, () => [
45
+ createTextVNode(toDisplayString(__props.hint), 1)
46
+ ])
47
+ ])) : createCommentVNode("", true)
44
48
  ]),
45
- _: 1
49
+ _: 3
46
50
  })
47
51
  ]);
48
52
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, useSlots, useAttrs, ref, openBlock, createBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, withCtx, createElementVNode, createElementBlock, renderSlot, createCommentVNode, mergeProps, unref } from "vue";
2
2
  import { tv } from "tailwind-variants";
3
3
  import { useInputFilter } from "../composables/useInputFilter.js";
4
- import { _ as _sfc_main$1 } from "./LpFormField-DEaakcHe.js";
4
+ import { _ as _sfc_main$1 } from "./LpFormField-fV_2ZdCk.js";
5
5
  import { _ as _sfc_main$2 } from "./LpIcon-CCnX5_2j.js";
6
6
  const _hoisted_1 = {
7
7
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, openBlock, createBlock, createSlots, withCtx, createElementVNode, createVNode, renderSlot } from "vue";
2
2
  import { _ as _sfc_main$2 } from "./LpIcon-CCnX5_2j.js";
3
- import { _ as _sfc_main$1 } from "./LpInput-BXr40nqX.js";
3
+ import { _ as _sfc_main$1 } from "./LpInput-CYcTL9gj.js";
4
4
  const _hoisted_1 = ["aria-label"];
5
5
  const __default__ = { inheritAttrs: false };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createBlock, resolveDynamicComponent, normalizeClass, withCtx, createElementVNode } from "vue";
2
- import { _ as _sfc_main$1 } from "./LpFormField-DEaakcHe.js";
2
+ import { _ as _sfc_main$1 } from "./LpFormField-fV_2ZdCk.js";
3
3
  const _hoisted_1 = ["value", "placeholder", "rows", "disabled", "required"];
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "LpTextarea",
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../chunks/LpAddressInput-BoTkszLk.js";
1
+ import { _ as _sfc_main } from "../chunks/LpAddressInput-Bk6D8Bcy.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -6,9 +6,11 @@ type __VLS_Props = {
6
6
  };
7
7
  declare var __VLS_7: {
8
8
  id: string;
9
- };
9
+ }, __VLS_15: {};
10
10
  type __VLS_Slots = {} & {
11
11
  default?: (props: typeof __VLS_7) => any;
12
+ } & {
13
+ hint?: (props: typeof __VLS_15) => any;
12
14
  };
13
15
  declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
16
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../chunks/LpFormField-DEaakcHe.js";
1
+ import { _ as _sfc_main } from "../chunks/LpFormField-fV_2ZdCk.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../chunks/LpInput-BXr40nqX.js";
1
+ import { _ as _sfc_main } from "../chunks/LpInput-CYcTL9gj.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../chunks/LpPasswordInput-Bdv6o8ae.js";
1
+ import { _ as _sfc_main } from "../chunks/LpPasswordInput-DrYE4J5d.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { _ as _sfc_main } from "../chunks/LpTextarea-tc8N4UO_.js";
1
+ import { _ as _sfc_main } from "../chunks/LpTextarea-BMIOfw5l.js";
2
2
  export {
3
3
  _sfc_main as default
4
4
  };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { _ } from "./chunks/LayoutCanvas-Dd20boUG.js";
2
- import { _ as _2 } from "./chunks/LpAddressInput-BoTkszLk.js";
2
+ import { _ as _2 } from "./chunks/LpAddressInput-Bk6D8Bcy.js";
3
3
  import { _ as _3 } from "./chunks/LpMapPicker-CXvoTrAe.js";
4
4
  import { OSM_TILES, createNominatimProvider, emptyAddress, formatAddress, project, tileUrl, unproject } from "./components/address.js";
5
5
  import { _ as _4 } from "./chunks/LpAlert-BAYHDSS1.js";
@@ -27,11 +27,11 @@ import { default as default3 } from "./components/LpDropzone.vue.js";
27
27
  import { _ as _23 } from "./chunks/LpEmptyState-BV3q7Qyi.js";
28
28
  import { _ as _24 } from "./chunks/LpFileTree-BaV7f0O7.js";
29
29
  import { ancestorIds, checkStateOf, checkedCount, computeStats, fileIcon, formatModified, formatSize, sortNodes, subtreeIds, subtreeSize } from "./components/fileTree.js";
30
- import { _ as _25 } from "./chunks/LpFormField-DEaakcHe.js";
30
+ import { _ as _25 } from "./chunks/LpFormField-fV_2ZdCk.js";
31
31
  import { _ as _26 } from "./chunks/LpIcon-CCnX5_2j.js";
32
32
  import { default as default4 } from "./components/LpImageEditor.vue.js";
33
33
  import { _ as _27 } from "./chunks/LpInfraNode-qIL3l7IO.js";
34
- import { _ as _28 } from "./chunks/LpInput-BXr40nqX.js";
34
+ import { _ as _28 } from "./chunks/LpInput-CYcTL9gj.js";
35
35
  import { _ as _29 } from "./chunks/LpLightbox-Ci35Y_xP.js";
36
36
  import { fileNameOf } from "./components/lightbox.js";
37
37
  import { _ as _30 } from "./chunks/LpLink-BHZ1CLlF.js";
@@ -42,7 +42,7 @@ import { _ as _34 } from "./chunks/LpNumberField-NPE8Bumx.js";
42
42
  import { _ as _35 } from "./chunks/LpNumberFlow-amWYaeuA.js";
43
43
  import { _ as _36 } from "./chunks/LpOtpInput-DqaT0Z75.js";
44
44
  import { _ as _37 } from "./chunks/LpPagination-CeGuNe_q.js";
45
- import { _ as _38 } from "./chunks/LpPasswordInput-Bdv6o8ae.js";
45
+ import { _ as _38 } from "./chunks/LpPasswordInput-DrYE4J5d.js";
46
46
  import { _ as _39 } from "./chunks/LpPie-BkjWlfSw.js";
47
47
  import { _ as _40 } from "./chunks/LpPhoneInput-NXXjciJJ.js";
48
48
  import { flagEmoji, loadCountries, matchCountryByValue } from "./components/countries.js";
@@ -68,7 +68,7 @@ import { _ as _58 } from "./chunks/LpSwitch-v6fnccSM.js";
68
68
  import { _ as _59 } from "./chunks/LpTable-DTj52qlg.js";
69
69
  import { _ as _60 } from "./chunks/LpTableOfContents-CjvxPMpU.js";
70
70
  import { _ as _61 } from "./chunks/LpTabs-Cefe_lys.js";
71
- import { _ as _62 } from "./chunks/LpTextarea-tc8N4UO_.js";
71
+ import { _ as _62 } from "./chunks/LpTextarea-BMIOfw5l.js";
72
72
  import { p as presets, a as parseTheme, s as serializeTheme } from "./chunks/LpThemeSwitcher-7mAK6bI7.js";
73
73
  import { D, _ as _63, N, T, b, c, d, e, f, g, i, l, h, j, n, r, t, k, m, u, v } from "./chunks/LpThemeSwitcher-7mAK6bI7.js";
74
74
  import { _ as _64 } from "./chunks/LpTilt-DuyKbpkA.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leavepulse/ui",
3
- "version": "0.28.4",
3
+ "version": "0.28.5",
4
4
  "type": "module",
5
5
  "description": "LeavePulse token-driven Vue component kit.",
6
6
  "repository": {
@@ -46,7 +46,13 @@ const id = useId()
46
46
  a step the easing could not cover, since it exists even at height 0. -->
47
47
  <LpShift axis="height">
48
48
  <p v-if="error" class="pt-1.5 text-xs text-danger">{{ error }}</p>
49
- <p v-else-if="hint" class="pt-1.5 text-xs text-muted">{{ hint }}</p>
49
+ <!-- The hint is a slot as well as a prop: most are a sentence, but some
50
+ carry a link or a unit in <code>, and a prop can only be text. Callers
51
+ had been reaching for `#hint` on the assumption it existed — it
52
+ rendered nothing, so the explanation silently went missing. -->
53
+ <p v-else-if="hint || $slots.hint" class="pt-1.5 text-xs text-muted">
54
+ <slot name="hint">{{ hint }}</slot>
55
+ </p>
50
56
  </LpShift>
51
57
  </div>
52
58
  </template>