feather-k-demo-utils 0.0.42 → 0.0.44

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,127 @@
1
+ import { defineComponent as v, ref as b, computed as c, openBlock as r, createElementBlock as i, normalizeClass as p, createElementVNode as d, toDisplayString as h, createCommentVNode as _, useSlots as g, renderSlot as m, withModifiers as k } from "vue";
2
+ const y = ["aria-expanded"], x = { key: 0 }, S = { key: 1 }, C = { key: 2 }, $ = /* @__PURE__ */ v({
3
+ __name: "DemoStats",
4
+ props: {
5
+ publishDate: {},
6
+ version: {},
7
+ active: { type: Boolean }
8
+ },
9
+ setup(t) {
10
+ const e = b(t.active ?? !1), a = (n) => {
11
+ e.value = !e.value, n && n.stopPropagation();
12
+ }, s = c(() => ({
13
+ "demo-stats": !0,
14
+ "tb-v8_2_0": !0,
15
+ active: e.value
16
+ }));
17
+ return (n, u) => t.publishDate || t.version ? (r(), i("div", {
18
+ key: 0,
19
+ class: p(s.value),
20
+ role: "region",
21
+ "aria-label": "Demo Stats",
22
+ "aria-expanded": e.value
23
+ }, [
24
+ d("button", {
25
+ class: "toggle-btn",
26
+ onClick: a,
27
+ "aria-label": "Toggle Stats",
28
+ type: "button",
29
+ tabindex: "0"
30
+ }, " 📊 "),
31
+ t.version ? (r(), i("div", x, "using @featherk/styles@" + h(t.version), 1)) : _("", !0),
32
+ t.publishDate ? (r(), i("div", S, "Published: " + h(t.publishDate), 1)) : (r(), i("div", C, [...u[0] || (u[0] = [
33
+ d("a", {
34
+ href: "https://github.com/NantHealth/feather-k-demo-utils/blob/integration/README.md",
35
+ target: "_blank",
36
+ rel: "noopener noreferrer",
37
+ style: { "pointer-events": "auto !important" }
38
+ }, " Setup Publish Date ", -1)
39
+ ])]))
40
+ ], 10, y)) : _("", !0);
41
+ }
42
+ }), f = (t, l) => {
43
+ const e = t.__vccOpts || t;
44
+ for (const [a, s] of l)
45
+ e[a] = s;
46
+ return e;
47
+ }, I = /* @__PURE__ */ f($, [["__scopeId", "data-v-af654d7b"]]), B = ["aria-expanded"], A = /* @__PURE__ */ v({
48
+ __name: "DemoDebug",
49
+ props: {
50
+ active: { type: Boolean }
51
+ },
52
+ setup(t) {
53
+ const e = b(t.active ?? !1), a = g(), s = c(() => !!a.default && a.default({}).some((o) => o.children)), n = (o) => {
54
+ e.value = !e.value, o && o.stopPropagation();
55
+ }, u = c(() => ({
56
+ "demo-debug": !0,
57
+ "tb-v8_2_0": !0,
58
+ hidden: !s.value,
59
+ active: e.value
60
+ }));
61
+ return (o, D) => (r(), i("div", {
62
+ class: p(u.value),
63
+ role: "region",
64
+ "aria-label": "Demo Debug",
65
+ "aria-expanded": e.value
66
+ }, [
67
+ d("button", {
68
+ class: "toggle-btn",
69
+ onClick: n,
70
+ "aria-label": "Toggle Debug",
71
+ type: "button",
72
+ tabindex: "0"
73
+ }, " 🐞 "),
74
+ m(o.$slots, "default", {}, void 0, !0)
75
+ ], 10, B));
76
+ }
77
+ }), T = /* @__PURE__ */ f(A, [["__scopeId", "data-v-2cfcbdc1"]]), E = ["aria-expanded"], N = /* @__PURE__ */ v({
78
+ __name: "DemoSettings",
79
+ props: {
80
+ active: { type: Boolean }
81
+ },
82
+ setup(t) {
83
+ const e = b(t.active ?? !1), a = g(), s = c(() => !!a.default && a.default({}).some((o) => o.children)), n = () => {
84
+ e.value = !e.value;
85
+ }, u = c(() => ({
86
+ "demo-settings": !0,
87
+ "tb-v8_2_0": !0,
88
+ hidden: !s.value,
89
+ active: e.value
90
+ }));
91
+ return (o, D) => (r(), i("div", {
92
+ class: p(u.value),
93
+ role: "region",
94
+ "aria-label": "Demo Settings",
95
+ "aria-expanded": e.value
96
+ }, [
97
+ d("button", {
98
+ class: "toggle-btn",
99
+ onClick: k(n, ["stop"]),
100
+ "aria-label": "Toggle Demo Settings",
101
+ tabindex: "0"
102
+ }, " ⚙️ "),
103
+ m(o.$slots, "default", {}, void 0, !0)
104
+ ], 10, E));
105
+ }
106
+ }), M = /* @__PURE__ */ f(N, [["__scopeId", "data-v-12ecdff9"]]), V = /* @__PURE__ */ v({
107
+ __name: "DemoNotes",
108
+ setup(t) {
109
+ const l = g(), e = c(() => !!l.default && l.default({}).some((s) => s.children)), a = c(() => ({
110
+ "demo-notes": !0,
111
+ "tb-v8_2_0": !0
112
+ }));
113
+ return (s, n) => e.value ? (r(), i("div", {
114
+ key: 0,
115
+ class: p(a.value),
116
+ tabindex: "0"
117
+ }, [
118
+ m(s.$slots, "default")
119
+ ], 2)) : _("", !0);
120
+ }
121
+ });
122
+ export {
123
+ T as D,
124
+ V as _,
125
+ M as a,
126
+ I as b
127
+ };
@@ -1,7 +1,7 @@
1
- import { _ as s, a, b as t, c as m } from "../DemoNotes.vue_vue_type_script_setup_true_lang-Db3MeRJb.js";
1
+ import { D as s, _ as a, a as t, b as D } from "../DemoNotes.vue_vue_type_script_setup_true_lang-CkAIcxaN.js";
2
2
  export {
3
3
  s as DemoDebug,
4
4
  a as DemoNotes,
5
5
  t as DemoSettings,
6
- m as DemoStats
6
+ D as DemoStats
7
7
  };
package/lib/index.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { F as a, a as t, f as o, g as r, b as S } from "./cdnVersion-DGJCb4AH.js";
2
- import { _ as E, a as D, b as F, c as _ } from "./DemoNotes.vue_vue_type_script_setup_true_lang-Db3MeRJb.js";
2
+ import { D, _ as E, a as F, b as _ } from "./DemoNotes.vue_vue_type_script_setup_true_lang-CkAIcxaN.js";
3
3
  export {
4
- E as DemoDebug,
5
- D as DemoNotes,
4
+ D as DemoDebug,
5
+ E as DemoNotes,
6
6
  F as DemoSettings,
7
7
  _ as DemoStats,
8
8
  a as FEATHERK_STYLES_CDN_URL,
@@ -177,10 +177,12 @@
177
177
  &.active,
178
178
  &:focus-visible {
179
179
  left: -1em;
180
- outline: 2px solid var(--kendo-color-primary-subtle-active);
181
180
  outline-offset: 4px;
182
181
  color: initial;
183
182
  }
183
+ /* &:focus-visible {
184
+ outline: 2px solid var(--kendo-color-primary-subtle-active);
185
+ } */
184
186
  &::before {
185
187
  content: "DEBUG";
186
188
  font-weight: bold;
@@ -188,7 +190,7 @@
188
190
  display: block;
189
191
  margin-bottom: var(--kendo-spacing-2);
190
192
  }
191
- &::after {
193
+ /* &::after {
192
194
  content: "🐛";
193
195
  content: "🐜";
194
196
  content: "🪳";
@@ -200,6 +202,18 @@
200
202
  right: 0.25em;
201
203
  display: block;
202
204
  margin-top: 0;
205
+ } */
206
+ & .toggle-btn {
207
+ position: absolute;
208
+ top: 0.25em;
209
+ right: 0.25em;
210
+ font-size: var(--kendo-font-size-xl);
211
+ background: none;
212
+ border: none;
213
+ cursor: pointer;
214
+ color: var(--kendo-color-secondary);
215
+ padding: 0;
216
+ margin: 0;
203
217
  }
204
218
  }
205
219
 
@@ -226,7 +240,7 @@
226
240
  &.active,
227
241
  &:focus-visible {
228
242
  left: -1em;
229
- outline: 2px solid var(--kendo-color-primary-emphasis);
243
+ /* outline: 2px solid var(--kendo-color-primary-emphasis); */
230
244
  outline-offset: 4px;
231
245
  color: initial;
232
246
  }
@@ -238,7 +252,7 @@
238
252
  display: block;
239
253
  margin-bottom: var(--kendo-spacing-2);
240
254
  }
241
- &::after {
255
+ /* &::after {
242
256
  content: "\2699";
243
257
  content: "⚙️";
244
258
  font-size: var(--kendo-font-size-xl);
@@ -247,6 +261,23 @@
247
261
  right: 0.25em;
248
262
  display: block;
249
263
  margin-top: 0;
264
+ } */
265
+ & .toggle-btn {
266
+ position: absolute;
267
+ top: 0;
268
+ right: 0.125em;
269
+ display: flex;
270
+ justify-content: flex-end;
271
+ border: none;
272
+ cursor: pointer;
273
+ font-size: 1.5em;
274
+ height: 100%;
275
+ border-radius: 0 0.25em 0.25em 0;
276
+ background: linear-gradient(
277
+ 28deg,
278
+ hsl(from currentColor h s 95% / 0.5) 60%,
279
+ var(--kendo-color-primary-emphasis) 75%
280
+ );
250
281
  }
251
282
  }
252
283
 
@@ -275,7 +306,7 @@
275
306
  &.active,
276
307
  &:focus-visible {
277
308
  right: -1em;
278
- outline: 2px solid var(--kendo-color-primary-emphasis);
309
+ /* outline: 2px solid var(--kendo-color-primary-emphasis); */
279
310
  outline-offset: 4px;
280
311
  color: initial;
281
312
  }
@@ -289,7 +320,7 @@
289
320
  left: 0.5em;
290
321
  top: 0.25em;
291
322
  }
292
- &::after {
323
+ /* &::after {
293
324
  content: "📊";
294
325
  font-size: var(--kendo-font-size-xl);
295
326
  position: absolute;
@@ -297,6 +328,24 @@
297
328
  left: 0.25em;
298
329
  display: block;
299
330
  margin-top: 0;
331
+ } */
332
+
333
+ & .toggle-btn {
334
+ position: absolute;
335
+ top: 0;
336
+ left: 0.125em;
337
+ display: flex;
338
+ justify-content: flex-end;
339
+ border: none;
340
+ cursor: pointer;
341
+ font-size: 1.5em;
342
+ height: 100%;
343
+ border-radius: 0 0.25em 0.25em 0;
344
+ background: linear-gradient(
345
+ 315deg,
346
+ hsl(from currentColor h s 95% / 0.5) 40%,
347
+ var(--kendo-color-primary-subtle-hover) 55%
348
+ );
300
349
  }
301
350
  }
302
351
 
@@ -1,8 +1,8 @@
1
1
  import { F as a, a as t, f as o, g as r, b as S } from "../cdnVersion-DGJCb4AH.js";
2
- import { _ as E, a as D, b as F, c as _ } from "../DemoNotes.vue_vue_type_script_setup_true_lang-Db3MeRJb.js";
2
+ import { D, _ as E, a as F, b as _ } from "../DemoNotes.vue_vue_type_script_setup_true_lang-CkAIcxaN.js";
3
3
  export {
4
- E as DemoDebug,
5
- D as DemoNotes,
4
+ D as DemoDebug,
5
+ E as DemoNotes,
6
6
  F as DemoSettings,
7
7
  _ as DemoStats,
8
8
  a as FEATHERK_STYLES_CDN_URL,
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.42",
4
+ "version": "0.0.44",
5
5
  "type": "module",
6
6
  "main": "lib/index.es.js",
7
7
  "module": "lib/index.es.js",
@@ -1,108 +0,0 @@
1
- import { defineComponent as d, ref as m, computed as r, openBlock as n, createElementBlock as l, normalizeClass as v, toDisplayString as b, createCommentVNode as p, createElementVNode as g, useSlots as _, renderSlot as h } from "vue";
2
- const D = ["aria-expanded"], k = { key: 0 }, x = { key: 1 }, y = { key: 2 }, B = /* @__PURE__ */ d({
3
- __name: "DemoStats",
4
- props: {
5
- publishDate: {},
6
- version: {},
7
- active: { type: Boolean }
8
- },
9
- setup(t) {
10
- const e = m(t.active ?? !1), s = () => {
11
- e.value = !e.value;
12
- }, a = r(() => ({
13
- "demo-stats": !0,
14
- "tb-v8_2_0": !0,
15
- active: e.value
16
- }));
17
- return (u, i) => t.publishDate || t.version ? (n(), l("div", {
18
- key: 0,
19
- class: v(a.value),
20
- onClick: s,
21
- tabindex: "0",
22
- role: "region",
23
- "aria-label": "Demo Stats",
24
- "aria-expanded": e.value
25
- }, [
26
- t.version ? (n(), l("div", k, "using @featherk/styles@" + b(t.version), 1)) : p("", !0),
27
- t.publishDate ? (n(), l("div", x, "Published: " + b(t.publishDate), 1)) : (n(), l("div", y, [...i[0] || (i[0] = [
28
- g("a", {
29
- href: "https://github.com/NantHealth/feather-k-demo-utils/blob/integration/README.md",
30
- target: "_blank",
31
- rel: "noopener noreferrer",
32
- style: { "pointer-events": "auto !important" }
33
- }, " Setup Publish Date ", -1)
34
- ])]))
35
- ], 10, D)) : p("", !0);
36
- }
37
- }), C = ["aria-expanded"], A = /* @__PURE__ */ d({
38
- __name: "DemoDebug",
39
- props: {
40
- active: { type: Boolean }
41
- },
42
- setup(t) {
43
- const e = m(t.active ?? !1), s = _(), a = r(() => !!s.default && s.default({}).some((o) => o.children)), u = () => {
44
- e.value = !e.value;
45
- }, i = r(() => ({
46
- "demo-debug": !0,
47
- "tb-v8_2_0": !0,
48
- hidden: !a.value,
49
- active: e.value
50
- }));
51
- return (o, f) => (n(), l("div", {
52
- class: v(i.value),
53
- onClick: u,
54
- tabindex: "0",
55
- role: "region",
56
- "aria-label": "Demo Debug",
57
- "aria-expanded": e.value
58
- }, [
59
- h(o.$slots, "default")
60
- ], 10, C));
61
- }
62
- }), S = ["aria-expanded"], E = /* @__PURE__ */ d({
63
- __name: "DemoSettings",
64
- props: {
65
- active: { type: Boolean }
66
- },
67
- setup(t) {
68
- const e = m(t.active ?? !1), s = _(), a = r(() => !!s.default && s.default({}).some((o) => o.children)), u = () => {
69
- e.value = !e.value;
70
- }, i = r(() => ({
71
- "demo-settings": !0,
72
- "tb-v8_2_0": !0,
73
- hidden: !a.value,
74
- active: e.value
75
- }));
76
- return (o, f) => (n(), l("div", {
77
- class: v(i.value),
78
- onClick: u,
79
- tabindex: "0",
80
- role: "region",
81
- "aria-label": "Demo Settings",
82
- "aria-expanded": e.value
83
- }, [
84
- h(o.$slots, "default")
85
- ], 10, S));
86
- }
87
- }), N = /* @__PURE__ */ d({
88
- __name: "DemoNotes",
89
- setup(t) {
90
- const c = _(), e = r(() => !!c.default && c.default({}).some((a) => a.children)), s = r(() => ({
91
- "demo-notes": !0,
92
- "tb-v8_2_0": !0
93
- }));
94
- return (a, u) => e.value ? (n(), l("div", {
95
- key: 0,
96
- class: v(s.value),
97
- tabindex: "0"
98
- }, [
99
- h(a.$slots, "default")
100
- ], 2)) : p("", !0);
101
- }
102
- });
103
- export {
104
- A as _,
105
- N as a,
106
- E as b,
107
- B as c
108
- };