@elmethis/vue 0.3.2 → 0.4.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/components/others/ElmJsonComponentRenderer.vue2.mjs +8 -1
- package/dist/components/typography/ElmParagraph.stories.d.ts +2 -0
- package/dist/components/typography/ElmParagraph.vue.d.ts +2 -0
- package/dist/components/typography/ElmParagraph.vue2.mjs +7 -1
- package/dist/components/typography/ElmParagraph.vue3.mjs +2 -2
- package/package.json +6 -6
|
@@ -81,7 +81,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
81
81
|
},
|
|
82
82
|
{ default: () => render2(slots.default) }
|
|
83
83
|
),
|
|
84
|
-
Paragraph: ({ slots }) => h(
|
|
84
|
+
Paragraph: ({ props: props2, slots }) => h(
|
|
85
|
+
ElmParagraph,
|
|
86
|
+
{
|
|
87
|
+
color: props2?.color,
|
|
88
|
+
backgroundColor: props2?.backgroundColor
|
|
89
|
+
},
|
|
90
|
+
{ default: () => render2(slots.default) }
|
|
91
|
+
),
|
|
85
92
|
ListItem: ({ slots }) => h("li", {}, { default: () => render2(slots.default) }),
|
|
86
93
|
List: ({ props: props2, slots }) => h(
|
|
87
94
|
_sfc_main$2,
|
|
@@ -2,6 +2,10 @@ import { defineComponent, ref, createElementBlock, openBlock, normalizeStyle, no
|
|
|
2
2
|
import { useIntersectionObserver } from "@vueuse/core";
|
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
4
|
__name: "ElmParagraph",
|
|
5
|
+
props: {
|
|
6
|
+
color: {},
|
|
7
|
+
backgroundColor: {}
|
|
8
|
+
},
|
|
5
9
|
setup(__props) {
|
|
6
10
|
const target = ref(null);
|
|
7
11
|
const targetIsVisible = ref(false);
|
|
@@ -14,7 +18,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
18
|
ref: target,
|
|
15
19
|
class: normalizeClass(_ctx.$style.paragraph),
|
|
16
20
|
style: normalizeStyle({
|
|
17
|
-
"--opacity": targetIsVisible.value ? 1 : 0
|
|
21
|
+
"--opacity": targetIsVisible.value ? 1 : 0,
|
|
22
|
+
"--color": __props.color,
|
|
23
|
+
"--background-color": __props.backgroundColor
|
|
18
24
|
})
|
|
19
25
|
}, [
|
|
20
26
|
renderSlot(_ctx.$slots, "default")
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
try {
|
|
4
4
|
if (typeof document != "undefined") {
|
|
5
5
|
var elementStyle = document.createElement("style");
|
|
6
|
-
elementStyle.appendChild(document.createTextNode(".
|
|
6
|
+
elementStyle.appendChild(document.createTextNode("._paragraph_1tklt_1{margin-block:2rem;opacity:var(--opacity);transition:opacity .8s;color:var(--color);background-color:inherit;background-color:var(--background-color, inherit)}._paragraph_1tklt_1::-moz-selection{color:#ffffffb3;background-color:#000000b3}._paragraph_1tklt_1::selection{color:#ffffffb3;background-color:#000000b3}[data-theme=dark] ._paragraph_1tklt_1{color:#ffffffb3}[data-theme=dark] ._paragraph_1tklt_1::-moz-selection{color:#000000b3;background-color:#ffffffb3}[data-theme=dark] ._paragraph_1tklt_1::selection{color:#000000b3;background-color:#ffffffb3}"));
|
|
7
7
|
document.head.appendChild(elementStyle);
|
|
8
8
|
}
|
|
9
9
|
} catch (e) {
|
|
10
10
|
console.error("vite-plugin-css-injected-by-js", e);
|
|
11
11
|
}
|
|
12
12
|
})();
|
|
13
|
-
const paragraph = "
|
|
13
|
+
const paragraph = "_paragraph_1tklt_1";
|
|
14
14
|
const style0 = {
|
|
15
15
|
paragraph
|
|
16
16
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@ag-ui/core": "^0.0.45",
|
|
39
39
|
"@notionhq/client": "^5.9.0",
|
|
40
|
-
"storybook": "^10.2.10",
|
|
41
40
|
"@storybook/addon-docs": "^10.2.10",
|
|
42
41
|
"@storybook/vue3-vite": "10.2.10",
|
|
43
42
|
"@types/json-schema": "^7.0.15",
|
|
@@ -45,18 +44,19 @@
|
|
|
45
44
|
"@types/lodash-es": "^4.17.12",
|
|
46
45
|
"@types/prismjs": "^1.26.6",
|
|
47
46
|
"@vitejs/plugin-vue": "^6.0.4",
|
|
47
|
+
"@vue/tsconfig": "^0.8.1",
|
|
48
48
|
"csstype": "^3.2.3",
|
|
49
|
-
"jarkup-ts": "^0.
|
|
49
|
+
"jarkup-ts": "^0.8.0",
|
|
50
50
|
"openapi-types": "^12.1.3",
|
|
51
51
|
"postcss": "^8.5.6",
|
|
52
52
|
"postcss-preset-env": "^11.2.0",
|
|
53
53
|
"sass": "^1.97.3",
|
|
54
|
+
"storybook": "^10.2.10",
|
|
55
|
+
"typescript": "^5.9.3",
|
|
54
56
|
"vite": "^7.3.1",
|
|
55
57
|
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
56
58
|
"vite-plugin-dts": "^4.5.4",
|
|
57
|
-
"vue-tsc": "^3.2.5"
|
|
58
|
-
"@vue/tsconfig": "^0.8.1",
|
|
59
|
-
"typescript": "^5.9.3"
|
|
59
|
+
"vue-tsc": "^3.2.5"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"vue": "^3.4.0"
|