feather-k-demo-utils 0.0.30 → 0.0.32

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.
@@ -0,0 +1,76 @@
1
+ import { defineComponent as c, openBlock as a, createElementBlock as l, toDisplayString as u, createCommentVNode as d, createElementVNode as v, useSlots as m, computed as r, normalizeClass as g, renderSlot as b } from "vue";
2
+ const _ = { key: 0 }, f = { key: 1 }, p = { key: 2 }, D = /* @__PURE__ */ c({
3
+ __name: "DemoStats",
4
+ props: {
5
+ publishDate: {},
6
+ version: {}
7
+ },
8
+ setup(t) {
9
+ const s = () => {
10
+ const n = document.querySelector(".demo-stats");
11
+ n && n.classList.toggle("active");
12
+ };
13
+ return (n, o) => t.publishDate || t.version ? (a(), l("div", {
14
+ key: 0,
15
+ class: "demo-stats tb-v8_2_0 active",
16
+ tabindex: "0",
17
+ role: "region",
18
+ "aria-label": "Demo Stats",
19
+ onClick: s
20
+ }, [
21
+ t.version ? (a(), l("div", _, "using @featherk/styles@" + u(t.version), 1)) : d("", !0),
22
+ t.publishDate ? (a(), l("div", f, "Published: " + u(t.publishDate), 1)) : (a(), l("div", p, [...o[0] || (o[0] = [
23
+ v("a", {
24
+ href: "https://github.com/NantHealth/feather-k-demo-utils/blob/integration/README.md",
25
+ target: "_blank",
26
+ rel: "noopener noreferrer",
27
+ style: { "pointer-events": "auto !important" }
28
+ }, " Setup Publish Date ", -1)
29
+ ])]))
30
+ ])) : d("", !0);
31
+ }
32
+ }), y = /* @__PURE__ */ c({
33
+ __name: "DemoDebug",
34
+ setup(t) {
35
+ const s = m(), n = r(() => !!s.default && s.default({}).some((e) => e.children)), o = () => {
36
+ const e = document.querySelector(".demo-debug");
37
+ e && e.classList.toggle("active");
38
+ }, i = r(() => ({
39
+ "demo-debug": !0,
40
+ "tb-v8_2_0": !0,
41
+ hidden: !n.value
42
+ }));
43
+ return (e, h) => (a(), l("div", {
44
+ class: g(i.value),
45
+ onClick: o,
46
+ tabindex: "0"
47
+ }, [
48
+ b(e.$slots, "default")
49
+ ], 2));
50
+ }
51
+ }), S = /* @__PURE__ */ c({
52
+ __name: "DemoSettings",
53
+ setup(t) {
54
+ const s = m(), n = r(() => !!s.default && s.default({}).some((e) => e.children)), o = () => {
55
+ const e = document.querySelector(".demo-settings");
56
+ e && e.classList.toggle("active");
57
+ }, i = r(() => ({
58
+ "demo-settings": !0,
59
+ "tb-v8_2_0": !0,
60
+ hidden: !n.value
61
+ // active: true,
62
+ }));
63
+ return (e, h) => (a(), l("div", {
64
+ class: g(i.value),
65
+ onClick: o,
66
+ tabindex: "0"
67
+ }, [
68
+ b(e.$slots, "default")
69
+ ], 2));
70
+ }
71
+ });
72
+ export {
73
+ y as _,
74
+ S as a,
75
+ D as b
76
+ };
@@ -1,4 +1,4 @@
1
- import { _ as o, a as s, b as t } from "../DemoSettings.vue_vue_type_script_setup_true_lang-oD1BkxXn.js";
1
+ import { _ as o, a as s, b as t } from "../DemoSettings.vue_vue_type_script_setup_true_lang-C-HWMDnB.js";
2
2
  export {
3
3
  o as DemoDebug,
4
4
  s as DemoSettings,
package/lib/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { F as a, a as t, f as r, g as o, b as S } from "./cdnVersion-DGJCb4AH.js";
2
- import { _ as m, a as F, b as _ } from "./DemoSettings.vue_vue_type_script_setup_true_lang-oD1BkxXn.js";
2
+ import { _ as m, a as F, b as _ } from "./DemoSettings.vue_vue_type_script_setup_true_lang-C-HWMDnB.js";
3
3
  export {
4
4
  m as DemoDebug,
5
5
  F as DemoSettings,
@@ -1,5 +1,5 @@
1
1
  import { F as a, a as t, f as r, g as o, b as S } from "../cdnVersion-DGJCb4AH.js";
2
- import { _ as m, a as F, b as _ } from "../DemoSettings.vue_vue_type_script_setup_true_lang-oD1BkxXn.js";
2
+ import { _ as m, a as F, b as _ } from "../DemoSettings.vue_vue_type_script_setup_true_lang-C-HWMDnB.js";
3
3
  export {
4
4
  m as DemoDebug,
5
5
  F as DemoSettings,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "feather-k-demo-utils",
3
3
  "private": false,
4
- "version": "0.0.30",
4
+ "version": "0.0.32",
5
5
  "type": "module",
6
6
  "main": "lib/index.es.js",
7
7
  "module": "lib/index.es.js",
@@ -41,7 +41,8 @@
41
41
  },
42
42
  "scripts": {
43
43
  "dev": "vite",
44
- "build": "vite build && tsc --project tsconfig.build.json --emitDeclarationOnly && npm run clean-lib",
44
+ "type-check": "tsc --noEmit",
45
+ "build": "npm run type-check && vite build && tsc --project tsconfig.build.json --emitDeclarationOnly && npm run clean-lib",
45
46
  "clean-lib": "node scripts/cleanup-lib.js",
46
47
  "preview": "vite preview",
47
48
  "prepublishOnly": "npm run build"
@@ -1,82 +0,0 @@
1
- import { defineComponent as c, openBlock as o, createElementBlock as a, toDisplayString as u, createCommentVNode as d, createElementVNode as h, computed as i, useSlots as m, normalizeClass as g, renderSlot as b } from "vue";
2
- const v = { key: 0 }, _ = { key: 1 }, f = { key: 2 }, k = /* @__PURE__ */ c({
3
- __name: "DemoStats",
4
- props: {
5
- publishDate: {},
6
- version: {}
7
- },
8
- setup(t) {
9
- const l = () => {
10
- const s = document.querySelector(".demo-stats");
11
- s && s.classList.toggle("active");
12
- };
13
- return (s, n) => t.publishDate || t.version ? (o(), a("div", {
14
- key: 0,
15
- class: "demo-stats tb-v8_2_0 active",
16
- tabindex: "0",
17
- role: "region",
18
- "aria-label": "Demo Stats",
19
- onClick: l
20
- }, [
21
- t.version ? (o(), a("div", v, "using @featherk/styles@" + u(t.version), 1)) : d("", !0),
22
- t.publishDate ? (o(), a("div", _, "Published: " + u(t.publishDate), 1)) : (o(), a("div", f, [...n[0] || (n[0] = [
23
- h("a", {
24
- href: "https://github.com/NantHealth/feather-k-demo-utils/blob/integration/README.md",
25
- target: "_blank",
26
- rel: "noopener noreferrer",
27
- style: { "pointer-events": "auto !important" }
28
- }, " Setup Publish Date ", -1)
29
- ])]))
30
- ])) : d("", !0);
31
- }
32
- }), D = /* @__PURE__ */ c({
33
- __name: "DemoDebug",
34
- setup(t) {
35
- const l = i(() => {
36
- const e = m();
37
- return !!e.default && e.default().some((r) => r.children);
38
- }), s = () => {
39
- const e = document.querySelector(".demo-debug");
40
- e && e.classList.toggle("active");
41
- }, n = i(() => ({
42
- "demo-debug": !0,
43
- "tb-v8_2_0": !0,
44
- hidden: !l.value
45
- }));
46
- return (e, r) => (o(), a("div", {
47
- class: g(n.value),
48
- onClick: s,
49
- tabindex: "0"
50
- }, [
51
- b(e.$slots, "default")
52
- ], 2));
53
- }
54
- }), y = /* @__PURE__ */ c({
55
- __name: "DemoSettings",
56
- setup(t) {
57
- const l = i(() => {
58
- const e = m();
59
- return !!e.default && e.default().some((r) => r.children);
60
- }), s = () => {
61
- const e = document.querySelector(".demo-settings");
62
- e && e.classList.toggle("active");
63
- }, n = i(() => ({
64
- "demo-settings": !0,
65
- "tb-v8_2_0": !0,
66
- hidden: !l.value
67
- // active: true,
68
- }));
69
- return (e, r) => (o(), a("div", {
70
- class: g(n.value),
71
- onClick: s,
72
- tabindex: "0"
73
- }, [
74
- b(e.$slots, "default")
75
- ], 2));
76
- }
77
- });
78
- export {
79
- D as _,
80
- y as a,
81
- k as b
82
- };