@cmeslib/components 0.1.2 → 0.1.3

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,10 +1,17 @@
1
+ import { jsxs, jsx } from 'vue/jsx-runtime';
1
2
  import { defineComponent, ref, createBlock, openBlock } from 'vue';
2
3
 
3
4
  var script = /* @__PURE__ */ defineComponent({
4
5
  __name: "label",
5
6
  setup(__props) {
6
7
  const count = ref(0);
7
- const RenderContent = () => /* @__PURE__ */ h("div", { class: "container" }, /* @__PURE__ */ h("h1", null, "TSX in Script Setup"), /* @__PURE__ */ h("button", { onClick: () => count.value++ }, "Value: ", count.value));
8
+ const RenderContent = () => /* @__PURE__ */ jsxs("div", { class: "container", children: [
9
+ /* @__PURE__ */ jsx("h1", { children: "TSX in Script Setup" }),
10
+ /* @__PURE__ */ jsxs("button", { onClick: () => count.value++, children: [
11
+ "Value: ",
12
+ count.value
13
+ ] })
14
+ ] });
8
15
  return (_ctx, _cache) => {
9
16
  return openBlock(), createBlock(RenderContent);
10
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"label.vue2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"label.vue2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,9 +1,13 @@
1
+ import { jsxs } from 'vue/jsx-runtime';
1
2
  import { defineComponent, ref } from 'vue';
2
3
 
3
4
  var mycomp = defineComponent({
4
5
  setup() {
5
6
  const count = ref(0);
6
- return () => /* @__PURE__ */ h("div", { onClick: () => count.value++ }, count.value);
7
+ return () => /* @__PURE__ */ jsxs("div", { onClick: () => count.value++, children: [
8
+ "count: ",
9
+ count.value
10
+ ] });
7
11
  }
8
12
  });
9
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"mycomp.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
1
+ {"version":3,"file":"mycomp.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
@@ -2,13 +2,20 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var jsxRuntime = require('vue/jsx-runtime');
5
6
  var vue = require('vue');
6
7
 
7
8
  var script = /* @__PURE__ */ vue.defineComponent({
8
9
  __name: "label",
9
10
  setup(__props) {
10
11
  const count = vue.ref(0);
11
- const RenderContent = () => /* @__PURE__ */ h("div", { class: "container" }, /* @__PURE__ */ h("h1", null, "TSX in Script Setup"), /* @__PURE__ */ h("button", { onClick: () => count.value++ }, "Value: ", count.value));
12
+ const RenderContent = () => /* @__PURE__ */ jsxRuntime.jsxs("div", { class: "container", children: [
13
+ /* @__PURE__ */ jsxRuntime.jsx("h1", { children: "TSX in Script Setup" }),
14
+ /* @__PURE__ */ jsxRuntime.jsxs("button", { onClick: () => count.value++, children: [
15
+ "Value: ",
16
+ count.value
17
+ ] })
18
+ ] });
12
19
  return (_ctx, _cache) => {
13
20
  return vue.openBlock(), vue.createBlock(RenderContent);
14
21
  };
@@ -1 +1 @@
1
- {"version":3,"file":"label.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"label.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,12 +2,16 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
+ var jsxRuntime = require('vue/jsx-runtime');
5
6
  var vue = require('vue');
6
7
 
7
8
  var mycomp = vue.defineComponent({
8
9
  setup() {
9
10
  const count = vue.ref(0);
10
- return () => /* @__PURE__ */ h("div", { onClick: () => count.value++ }, count.value);
11
+ return () => /* @__PURE__ */ jsxRuntime.jsxs("div", { onClick: () => count.value++, children: [
12
+ "count: ",
13
+ count.value
14
+ ] });
11
15
  }
12
16
  });
13
17
 
@@ -1 +1 @@
1
- {"version":3,"file":"mycomp.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"mycomp.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmeslib/components",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",