@leaflink/stash 46.7.0 → 46.7.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.
|
@@ -8,7 +8,7 @@ const p = ["data-variant"], h = /* @__PURE__ */ a({
|
|
|
8
8
|
throw new Error("DescriptionListDetail must be used within a DescriptionList component.");
|
|
9
9
|
const { variant: e } = t;
|
|
10
10
|
return (s, _) => (o(), r("dd", {
|
|
11
|
-
class: c(["stash-description-list-detail tw-text-ice-700", {
|
|
11
|
+
class: c(["stash-description-list-detail tw-flex-1 tw-text-ice-700", {
|
|
12
12
|
"md:tw-text-right": i(e) === "space-between"
|
|
13
13
|
}]),
|
|
14
14
|
"data-test": "stash-description-list-detail",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionListDetail.js","sources":["../src/components/DescriptionListDetail/DescriptionListDetail.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { inject } from 'vue';\n\n import { DESCRIPTION_LIST_INJECTION } from '../DescriptionList/DescriptionList.keys';\n\n const descriptionListInjectedValues = inject(DESCRIPTION_LIST_INJECTION.key);\n if (!descriptionListInjectedValues) {\n throw new Error('DescriptionListDetail must be used within a DescriptionList component.');\n }\n const { variant } = descriptionListInjectedValues;\n</script>\n\n<template>\n <dd\n class=\"stash-description-list-detail tw-text-ice-700\"\n :class=\"{\n 'md:tw-text-right': variant === 'space-between',\n }\"\n data-test=\"stash-description-list-detail\"\n :data-variant=\"variant\"\n >\n <!-- @slot Default slot, for rendering a description detail -->\n <slot></slot>\n </dd>\n</template>\n"],"names":["descriptionListInjectedValues","inject","DESCRIPTION_LIST_INJECTION","variant"],"mappings":";;;;;AAKQ,UAAAA,IAAgCC,EAAOC,EAA2B,GAAG;AAC3E,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,wEAAwE;AAEpF,UAAA,EAAE,SAAAG,EAAY,IAAAH;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"DescriptionListDetail.js","sources":["../src/components/DescriptionListDetail/DescriptionListDetail.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { inject } from 'vue';\n\n import { DESCRIPTION_LIST_INJECTION } from '../DescriptionList/DescriptionList.keys';\n\n const descriptionListInjectedValues = inject(DESCRIPTION_LIST_INJECTION.key);\n if (!descriptionListInjectedValues) {\n throw new Error('DescriptionListDetail must be used within a DescriptionList component.');\n }\n const { variant } = descriptionListInjectedValues;\n</script>\n\n<template>\n <dd\n class=\"stash-description-list-detail tw-flex-1 tw-text-ice-700\"\n :class=\"{\n 'md:tw-text-right': variant === 'space-between',\n }\"\n data-test=\"stash-description-list-detail\"\n :data-variant=\"variant\"\n >\n <!-- @slot Default slot, for rendering a description detail -->\n <slot></slot>\n </dd>\n</template>\n"],"names":["descriptionListInjectedValues","inject","DESCRIPTION_LIST_INJECTION","variant"],"mappings":";;;;;AAKQ,UAAAA,IAAgCC,EAAOC,EAA2B,GAAG;AAC3E,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,wEAAwE;AAEpF,UAAA,EAAE,SAAAG,EAAY,IAAAH;;;;;;;;;;;;"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as n, inject as
|
|
1
|
+
import { defineComponent as n, inject as o, openBlock as r, createElementBlock as p, normalizeClass as d, unref as t, renderSlot as c } from "vue";
|
|
2
2
|
import { D as l } from "./DescriptionList.keys-c906ce05.js";
|
|
3
3
|
const w = ["data-divide", "data-variant"], v = /* @__PURE__ */ n({
|
|
4
4
|
__name: "DescriptionListGroup",
|
|
5
5
|
setup(m) {
|
|
6
|
-
const s =
|
|
6
|
+
const s = o(l.key);
|
|
7
7
|
if (!s)
|
|
8
8
|
throw new Error("DescriptionListDetail must be used within a DescriptionList component.");
|
|
9
9
|
const { divide: i, variant: e } = s;
|
|
10
|
-
return (a,
|
|
10
|
+
return (a, u) => (r(), p("div", {
|
|
11
11
|
class: d(["stash-description-list-group", {
|
|
12
|
-
"md:tw-flex md:tw-
|
|
12
|
+
"md:tw-flex md:tw-gap-x-6": t(e) === "columns" || t(e) === "space-between",
|
|
13
13
|
"tw-justify-between": t(e) === "space-between",
|
|
14
14
|
"md:tw-flex": t(e) === "inline",
|
|
15
15
|
"tw-py-1.5 first:tw-pt-0 last:tw-pb-0": !t(i),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionListGroup.js","sources":["../src/components/DescriptionListGroup/DescriptionListGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { inject } from 'vue';\n\n import { DESCRIPTION_LIST_INJECTION } from '../DescriptionList/DescriptionList.keys';\n\n const descriptionListInjectedValues = inject(DESCRIPTION_LIST_INJECTION.key);\n if (!descriptionListInjectedValues) {\n throw new Error('DescriptionListDetail must be used within a DescriptionList component.');\n }\n const { divide, variant } = descriptionListInjectedValues;\n</script>\n\n<template>\n <div\n class=\"stash-description-list-group\"\n :class=\"{\n 'md:tw-flex md:tw-
|
|
1
|
+
{"version":3,"file":"DescriptionListGroup.js","sources":["../src/components/DescriptionListGroup/DescriptionListGroup.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { inject } from 'vue';\n\n import { DESCRIPTION_LIST_INJECTION } from '../DescriptionList/DescriptionList.keys';\n\n const descriptionListInjectedValues = inject(DESCRIPTION_LIST_INJECTION.key);\n if (!descriptionListInjectedValues) {\n throw new Error('DescriptionListDetail must be used within a DescriptionList component.');\n }\n const { divide, variant } = descriptionListInjectedValues;\n</script>\n\n<template>\n <div\n class=\"stash-description-list-group\"\n :class=\"{\n 'md:tw-flex md:tw-gap-x-6': variant === 'columns' || variant === 'space-between',\n 'tw-justify-between': variant === 'space-between',\n 'md:tw-flex': variant === 'inline',\n 'tw-py-1.5 first:tw-pt-0 last:tw-pb-0': !divide,\n 'tw-py-3 first:tw-pt-0 last:tw-pb-0': divide,\n }\"\n data-test=\"stash-description-list-group\"\n :data-divide=\"divide\"\n :data-variant=\"variant\"\n >\n <!-- @slot Default slot, for rendering a description detail -->\n <slot></slot>\n </div>\n</template>\n"],"names":["descriptionListInjectedValues","inject","DESCRIPTION_LIST_INJECTION","divide","variant"],"mappings":";;;;;AAKQ,UAAAA,IAAgCC,EAAOC,EAA2B,GAAG;AAC3E,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,wEAAwE;AAEpF,UAAA,EAAE,QAAAG,GAAQ,SAAAC,EAAY,IAAAJ;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as o, inject as r, openBlock as i, createElementBlock as n, normalizeClass as c, unref as e, renderSlot as d, createCommentVNode as m } from "vue";
|
|
2
2
|
import { D as l } from "./DescriptionList.keys-c906ce05.js";
|
|
3
3
|
const p = ["data-variant"], w = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "tw-hidden md:tw-inline"
|
|
6
|
-
}, k = /* @__PURE__ */
|
|
6
|
+
}, k = /* @__PURE__ */ o({
|
|
7
7
|
__name: "DescriptionListTerm",
|
|
8
8
|
setup(_) {
|
|
9
|
-
const s =
|
|
9
|
+
const s = r(l.key);
|
|
10
10
|
if (!s)
|
|
11
11
|
throw new Error("DescriptionListDetail must be used within a DescriptionList component.");
|
|
12
12
|
const { variant: t } = s;
|
|
13
|
-
return (
|
|
13
|
+
return (a, u) => (i(), n("dt", {
|
|
14
14
|
class: c(["stash-description-list-term tw-font-medium tw-text-ice-900", {
|
|
15
|
-
"md:tw-w-
|
|
15
|
+
"md:tw-max-w-40 md:tw-basis-2/5": e(t) === "columns",
|
|
16
16
|
"tw-mr-1.5": e(t) === "inline",
|
|
17
17
|
"tw-pb-1.5": e(t) === "stacked",
|
|
18
18
|
"tw-pb-1.5 md:tw-pb-0": e(t) !== "stacked"
|
|
@@ -20,8 +20,8 @@ const p = ["data-variant"], w = {
|
|
|
20
20
|
"data-test": "stash-description-list-term",
|
|
21
21
|
"data-variant": e(t)
|
|
22
22
|
}, [
|
|
23
|
-
|
|
24
|
-
e(t) === "inline" ? (
|
|
23
|
+
d(a.$slots, "default"),
|
|
24
|
+
e(t) === "inline" ? (i(), n("span", w, ":")) : m("", !0)
|
|
25
25
|
], 10, p));
|
|
26
26
|
}
|
|
27
27
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DescriptionListTerm.js","sources":["../src/components/DescriptionListTerm/DescriptionListTerm.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { inject } from 'vue';\n\n import { DESCRIPTION_LIST_INJECTION } from '../DescriptionList/DescriptionList.keys';\n\n const descriptionListInjectedValues = inject(DESCRIPTION_LIST_INJECTION.key);\n if (!descriptionListInjectedValues) {\n throw new Error('DescriptionListDetail must be used within a DescriptionList component.');\n }\n const { variant } = descriptionListInjectedValues;\n</script>\n\n<template>\n <dt\n class=\"stash-description-list-term tw-font-medium tw-text-ice-900\"\n :class=\"{\n 'md:tw-w-
|
|
1
|
+
{"version":3,"file":"DescriptionListTerm.js","sources":["../src/components/DescriptionListTerm/DescriptionListTerm.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { inject } from 'vue';\n\n import { DESCRIPTION_LIST_INJECTION } from '../DescriptionList/DescriptionList.keys';\n\n const descriptionListInjectedValues = inject(DESCRIPTION_LIST_INJECTION.key);\n if (!descriptionListInjectedValues) {\n throw new Error('DescriptionListDetail must be used within a DescriptionList component.');\n }\n const { variant } = descriptionListInjectedValues;\n</script>\n\n<template>\n <dt\n class=\"stash-description-list-term tw-font-medium tw-text-ice-900\"\n :class=\"{\n 'md:tw-max-w-40 md:tw-basis-2/5': variant === 'columns',\n 'tw-mr-1.5': variant === 'inline',\n 'tw-pb-1.5': variant === 'stacked',\n 'tw-pb-1.5 md:tw-pb-0': variant !== 'stacked',\n }\"\n data-test=\"stash-description-list-term\"\n :data-variant=\"variant\"\n >\n <!-- @slot Default slot, for rendering a term -->\n <slot></slot><span v-if=\"variant === 'inline'\" class=\"tw-hidden md:tw-inline\">:</span>\n </dt>\n</template>\n"],"names":["descriptionListInjectedValues","inject","DESCRIPTION_LIST_INJECTION","variant"],"mappings":";;;;;;;;AAKQ,UAAAA,IAAgCC,EAAOC,EAA2B,GAAG;AAC3E,QAAI,CAACF;AACG,YAAA,IAAI,MAAM,wEAAwE;AAEpF,UAAA,EAAE,SAAAG,EAAY,IAAAH;;;;;;;;;;;;;;;;"}
|