feather-k-demo-utils 0.0.21 → 0.0.23
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/README.md +2 -42
- package/lib/DemoStats.vue_vue_type_script_setup_true_lang-JUBFuGaw.js +32 -0
- package/lib/components/index.es.js +1 -1
- package/lib/index.es.js +1 -1
- package/lib/styles/demo.css +128 -9
- package/lib/utils/index.es.js +1 -1
- package/package.json +1 -1
- package/lib/DemoStats-0D9d7DGR.js +0 -37
package/README.md
CHANGED
|
@@ -23,51 +23,11 @@ Enter your email address
|
|
|
23
23
|
>increment version number...
|
|
24
24
|
npm publish --access public
|
|
25
25
|
|
|
26
|
-
Your prepublishOnly script will build before publishing. If you see any errors, let me know and I’ll help troubleshoot!
|
|
27
|
-
|
|
28
26
|
## Setting the Publish Date in Consuming Projects
|
|
29
27
|
|
|
30
28
|
This package no longer exposes an in-package `PUBLISH_DATE`. If you need a build-time publish date in your consuming app, set it via your build (for example, with Vite's `define` option) and consume it from your application code directly.
|
|
31
29
|
|
|
32
30
|
## Quick Usage
|
|
33
31
|
|
|
34
|
-
-
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
npm install feather-k-demo-utils
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
- **Include demo styles:**
|
|
41
|
-
|
|
42
|
-
```js
|
|
43
|
-
import 'feather-k-demo-utils/styles/demo.css';
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
- **Use utils:**
|
|
47
|
-
|
|
48
|
-
```js
|
|
49
|
-
import { featherkStylesVersion } from 'feather-k-demo-utils/utils';
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
- **Use components:**
|
|
53
|
-
|
|
54
|
-
```vue
|
|
55
|
-
<script setup lang="ts">
|
|
56
|
-
import { DemoStats } from 'feather-k-demo-utils';
|
|
57
|
-
</script>
|
|
58
|
-
|
|
59
|
-
<template>
|
|
60
|
-
<DemoStats />
|
|
61
|
-
</template>
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
- **Verify package contents locally:**
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
npm run build
|
|
68
|
-
npm pack
|
|
69
|
-
tar -tf feather-k-demo-utils-<version>.tgz
|
|
70
|
-
# confirm package/lib/styles/demo.css and package/lib/utils/index.js are present
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
> Note: If you want a dedicated components subpath (e.g. `feather-k-demo-utils/components`), we can add it to `package.json` `exports`.
|
|
32
|
+
<!-- link to DEMO-UTIL.md -->
|
|
33
|
+
see [DEMO-UTILS.md](https://github.com/NantHealth/feather-k-demo-utils/blob/integration/DEMO-UTILS.md)
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as a, openBlock as t, createElementBlock as o, toDisplayString as i, createCommentVNode as n, createElementVNode as r } from "vue";
|
|
2
|
+
const l = { class: "demo-stats-wrapper tb-v8_2_0" }, d = {
|
|
3
|
+
key: 0,
|
|
4
|
+
class: "demo-stats",
|
|
5
|
+
tabindex: "0",
|
|
6
|
+
role: "region",
|
|
7
|
+
"aria-label": "Demo Stats"
|
|
8
|
+
}, m = { key: 0 }, h = { key: 1 }, u = { key: 2 }, v = /* @__PURE__ */ a({
|
|
9
|
+
__name: "DemoStats",
|
|
10
|
+
props: {
|
|
11
|
+
publishDate: {},
|
|
12
|
+
version: {}
|
|
13
|
+
},
|
|
14
|
+
setup(e) {
|
|
15
|
+
return (c, s) => (t(), o("div", l, [
|
|
16
|
+
e.publishDate || e.version ? (t(), o("div", d, [
|
|
17
|
+
e.version ? (t(), o("div", m, "using @featherk/styles@" + i(e.version), 1)) : n("", !0),
|
|
18
|
+
e.publishDate ? (t(), o("div", h, "Published: " + i(e.publishDate), 1)) : (t(), o("div", u, [...s[0] || (s[0] = [
|
|
19
|
+
r("a", {
|
|
20
|
+
href: "https://github.com/NantHealth/feather-k-demo-utils/blob/integration/README.md",
|
|
21
|
+
target: "_blank",
|
|
22
|
+
rel: "noopener noreferrer",
|
|
23
|
+
style: { "pointer-events": "auto !important" }
|
|
24
|
+
}, " Setup Publish Date ", -1)
|
|
25
|
+
])]))
|
|
26
|
+
])) : n("", !0)
|
|
27
|
+
]));
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
v as _
|
|
32
|
+
};
|
package/lib/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as s, a as t, f as a, g as S, b as o } from "./cdnVersion-DGJCb4AH.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as F } from "./DemoStats.vue_vue_type_script_setup_true_lang-JUBFuGaw.js";
|
|
3
3
|
export {
|
|
4
4
|
F as DemoStats,
|
|
5
5
|
s as FEATHERK_STYLES_CDN_URL,
|
package/lib/styles/demo.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
h1 {
|
|
2
|
-
color: var(--kendo-color-primary, limegreen);
|
|
3
|
-
}
|
|
4
|
-
|
|
5
1
|
/* moved from demo-utilities */
|
|
6
|
-
.featherk-demo
|
|
2
|
+
/* .featherk-demo {
|
|
3
|
+
max-width: 1180px;
|
|
4
|
+
margin: 0 auto;
|
|
5
|
+
}
|
|
6
|
+
.demo-form {
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
|
|
@@ -14,19 +14,138 @@ h1 {
|
|
|
14
14
|
gap: 0.5em;
|
|
15
15
|
justify-content: flex-start;
|
|
16
16
|
}
|
|
17
|
+
} */
|
|
18
|
+
.demo-app {
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
gap: 1em;
|
|
23
|
+
align-items: center;
|
|
24
|
+
}
|
|
25
|
+
.demo-selection {
|
|
26
|
+
position: absolute;
|
|
27
|
+
right: 1rem;
|
|
28
|
+
top: 1rem;
|
|
29
|
+
& > .k-dropdownlist {
|
|
30
|
+
min-width: 30ch;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.featherk-demo {
|
|
34
|
+
max-width: 1180px;
|
|
35
|
+
.demo-form {
|
|
36
|
+
border: 1px solid var(--kendo-color-border);
|
|
37
|
+
padding: 1em;
|
|
38
|
+
max-width: 100%;
|
|
39
|
+
}
|
|
40
|
+
.demo-actions {
|
|
41
|
+
display: flex;
|
|
42
|
+
gap: 1em;
|
|
43
|
+
}
|
|
44
|
+
.demo-notes {
|
|
45
|
+
background-color: var(--kendo-color-light);
|
|
46
|
+
padding: 1em;
|
|
47
|
+
margin-top: 1em;
|
|
48
|
+
width: 800px;
|
|
49
|
+
}
|
|
17
50
|
}
|
|
18
51
|
|
|
19
|
-
|
|
52
|
+
.demo-notes {
|
|
53
|
+
ul {
|
|
54
|
+
list-style-type: none;
|
|
55
|
+
.todo {
|
|
56
|
+
&::before {
|
|
57
|
+
content: "☐ - ";
|
|
58
|
+
color: #333;
|
|
59
|
+
font-weight: bold;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.done {
|
|
63
|
+
color: var(--kendo-color-tertiary);
|
|
64
|
+
&::before {
|
|
65
|
+
content: "✔️ - ";
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.strike {
|
|
70
|
+
text-decoration: line-through;
|
|
71
|
+
text-decoration-color: var(--kendo-color-tertiary);
|
|
72
|
+
color: hsl(from var(--kendo-color-primary) h 60% l);
|
|
73
|
+
&::before {
|
|
74
|
+
content: "~~";
|
|
75
|
+
font-weight: bold;
|
|
76
|
+
}
|
|
77
|
+
&::after {
|
|
78
|
+
content: "~~";
|
|
79
|
+
font-weight: bold;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.info,
|
|
83
|
+
.note {
|
|
84
|
+
color: var(--kendo-color-secondary);
|
|
85
|
+
&::before {
|
|
86
|
+
content: "ℹ️ - ";
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
.question {
|
|
90
|
+
color: var(--kendo-color-error);
|
|
91
|
+
&::before {
|
|
92
|
+
content: "❓ - ";
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
.pro,
|
|
96
|
+
.con {
|
|
97
|
+
padding: 0.5em;
|
|
98
|
+
}
|
|
99
|
+
.pro {
|
|
100
|
+
color: var(--kendo-color-success);
|
|
101
|
+
background-color: var(--kendo-color-success-subtle);
|
|
102
|
+
text-align: left;
|
|
103
|
+
&::before {
|
|
104
|
+
content: "✅ - ";
|
|
105
|
+
font-weight: bold;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
.con {
|
|
109
|
+
color: var(--kendo-color-error);
|
|
110
|
+
background-color: var(--kendo-color-error-subtle);
|
|
111
|
+
text-align: right;
|
|
112
|
+
a {
|
|
113
|
+
font-size: 1.25em;
|
|
114
|
+
color: var(--kendo-color-error);
|
|
115
|
+
text-decoration: dotted underline;
|
|
116
|
+
}
|
|
117
|
+
&::after {
|
|
118
|
+
content: " - ❌";
|
|
119
|
+
font-weight: bold;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* TODO: DemoStats.vue SCOPED STYLES NOT WORKING - moved to demo.css */
|
|
126
|
+
.demo-stats-wrapper {
|
|
20
127
|
.demo-stats {
|
|
21
128
|
position: fixed;
|
|
22
129
|
right: var(--kendo-spacing-4);
|
|
23
130
|
bottom: var(--kendo-spacing-4);
|
|
24
|
-
background: hsl(from var(--kendo-color-primary) h s 90% / 0.
|
|
131
|
+
background: hsl(from var(--kendo-color-primary) h s 90% / 0.3);
|
|
132
|
+
color: var(--kendo-color-primary-subtle);
|
|
25
133
|
font-size: var(--kendo-font-size-sm);
|
|
26
134
|
margin: var(--kendo-spacing-2);
|
|
27
135
|
padding: var(--kendo-spacing-2);
|
|
28
136
|
border-radius: var(--kendo-border-radius-md);
|
|
29
137
|
box-shadow: var(--kendo-elevation-2);
|
|
30
|
-
|
|
138
|
+
&:hover {
|
|
139
|
+
background: hsl(from var(--kendo-color-primary) h s 90% / 0.5);
|
|
140
|
+
color: var(--kendo-color-primary);
|
|
141
|
+
box-shadow: var(--kendo-elevation-4);
|
|
142
|
+
}
|
|
143
|
+
&:focus,
|
|
144
|
+
&:focus-visible {
|
|
145
|
+
background: var(--kendo-color-primary);
|
|
146
|
+
color: var(--kendo-color-surface);
|
|
147
|
+
outline: 2px solid var(--kendo-color-primary);
|
|
148
|
+
outline-offset: 2px;
|
|
149
|
+
}
|
|
31
150
|
}
|
|
32
|
-
}
|
|
151
|
+
}
|
package/lib/utils/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as s, a as t, f as a, g as S, b as o } from "../cdnVersion-DGJCb4AH.js";
|
|
2
|
-
import {
|
|
2
|
+
import { _ as F } from "../DemoStats.vue_vue_type_script_setup_true_lang-JUBFuGaw.js";
|
|
3
3
|
export {
|
|
4
4
|
F as DemoStats,
|
|
5
5
|
s as FEATHERK_STYLES_CDN_URL,
|
package/package.json
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, openBlock as o, createElementBlock as s, toDisplayString as a, createCommentVNode as r, createElementVNode as d } from "vue";
|
|
2
|
-
const m = { class: "demo-stats-wrapper tb-v8_2_0" }, u = {
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "demo-stats",
|
|
5
|
-
tabindex: "0",
|
|
6
|
-
role: "region",
|
|
7
|
-
"aria-label": "Demo Stats"
|
|
8
|
-
}, h = { key: 0 }, v = { key: 1 }, b = { key: 2 }, _ = /* @__PURE__ */ c({
|
|
9
|
-
__name: "DemoStats",
|
|
10
|
-
props: {
|
|
11
|
-
publishDate: {},
|
|
12
|
-
version: {}
|
|
13
|
-
},
|
|
14
|
-
setup(e) {
|
|
15
|
-
return (n, t) => (o(), s("div", m, [
|
|
16
|
-
e.publishDate || e.version ? (o(), s("div", u, [
|
|
17
|
-
e.version ? (o(), s("div", h, "using @featherk/styles@" + a(e.version), 1)) : r("", !0),
|
|
18
|
-
e.publishDate ? (o(), s("div", v, "Published: " + a(e.publishDate), 1)) : (o(), s("div", b, [...t[0] || (t[0] = [
|
|
19
|
-
d("a", {
|
|
20
|
-
href: "https://github.com/NantHealth/feather-k-demo-utils/blob/integration/README.md",
|
|
21
|
-
target: "_blank",
|
|
22
|
-
rel: "noopener noreferrer",
|
|
23
|
-
style: { "pointer-events": "auto !important" }
|
|
24
|
-
}, " Setup Publish Date ", -1)
|
|
25
|
-
])]))
|
|
26
|
-
])) : r("", !0)
|
|
27
|
-
]));
|
|
28
|
-
}
|
|
29
|
-
}), p = (e, n) => {
|
|
30
|
-
const t = e.__vccOpts || e;
|
|
31
|
-
for (const [i, l] of n)
|
|
32
|
-
t[i] = l;
|
|
33
|
-
return t;
|
|
34
|
-
}, k = /* @__PURE__ */ p(_, [["__scopeId", "data-v-57c6e8c2"]]);
|
|
35
|
-
export {
|
|
36
|
-
k as D
|
|
37
|
-
};
|