@benev/web 0.1.0-3 → 0.1.0-5
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/package.json +10 -7
- package/s/bconfig.ts +9 -0
- package/s/css/parts/common.csstext.ts +37 -0
- package/s/css/parts/core.csstext.ts +1 -1
- package/s/css/parts/vars.csstext.ts +2 -2
- package/s/dom/account/account.ts +7 -0
- package/s/dom/account/style.css.ts +6 -0
- package/s/dom/account/view.ts +16 -0
- package/s/dom/footer/style.css.ts +6 -0
- package/s/dom/footer/view.ts +13 -0
- package/s/dom/header/view.ts +8 -14
- package/s/dom/loader/loader.ts +2 -2
- package/s/dom/loader/style.css.ts +25 -15
- package/s/dom/loader/view.ts +6 -3
- package/s/dom/menu/view.ts +1 -1
- package/s/dom/tools/shadow-duplex.ts +17 -0
- package/s/index-ssg.ts +4 -0
- package/s/index.html.ts +5 -2
- package/s/index.ts +2 -1
- package/s/ssg/top-nav.ts +18 -0
- package/s/types.ts +5 -0
- package/s/vitals/setup.ts +17 -9
- package/s/vitals/shell.ts +3 -3
- package/x/bconfig.d.ts +11 -0
- package/x/bconfig.js +8 -0
- package/x/bconfig.js.map +1 -0
- package/x/css/parts/common.csstext.js +37 -0
- package/x/css/parts/common.csstext.js.map +1 -1
- package/x/css/parts/core.csstext.js +1 -1
- package/x/css/parts/vars.csstext.js +2 -2
- package/x/css/parts/vars.csstext.js.map +1 -1
- package/x/dom/account/account.d.ts +5 -0
- package/x/dom/account/account.js +7 -0
- package/x/dom/account/account.js.map +1 -0
- package/x/dom/account/style.css.d.ts +2 -0
- package/x/dom/account/style.css.js +5 -0
- package/x/dom/account/style.css.js.map +1 -0
- package/x/dom/account/view.d.ts +2 -0
- package/x/dom/account/view.js +11 -0
- package/x/dom/account/view.js.map +1 -0
- package/x/dom/footer/style.css.d.ts +2 -0
- package/x/dom/footer/style.css.js +5 -0
- package/x/dom/footer/style.css.js.map +1 -0
- package/x/dom/footer/view.d.ts +1 -0
- package/x/dom/footer/view.js +10 -0
- package/x/dom/footer/view.js.map +1 -0
- package/x/dom/header/view.d.ts +1 -2
- package/x/dom/header/view.js +5 -12
- package/x/dom/header/view.js.map +1 -1
- package/x/dom/loader/loader.js +2 -2
- package/x/dom/loader/loader.js.map +1 -1
- package/x/dom/loader/style.css.js +25 -15
- package/x/dom/loader/style.css.js.map +1 -1
- package/x/dom/loader/view.js +5 -3
- package/x/dom/loader/view.js.map +1 -1
- package/x/dom/menu/view.d.ts +1 -1
- package/x/dom/menu/view.js +1 -1
- package/x/dom/tools/shadow-duplex.d.ts +2 -0
- package/x/dom/tools/shadow-duplex.js +10 -0
- package/x/dom/tools/shadow-duplex.js.map +1 -0
- package/x/index-ssg.d.ts +3 -0
- package/x/index-ssg.js +3 -0
- package/x/index-ssg.js.map +1 -1
- package/x/index.d.ts +2 -1
- package/x/index.html +46 -4
- package/x/index.html.js +5 -2
- package/x/index.html.js.map +1 -1
- package/x/index.js +2 -1
- package/x/index.js.map +1 -1
- package/x/main.bundle.min.js +395 -70
- package/x/main.bundle.min.js.LEGAL.txt +7 -0
- package/x/main.bundle.min.js.map +4 -4
- package/x/ssg/top-nav.d.ts +2 -0
- package/x/ssg/top-nav.js +12 -0
- package/x/ssg/top-nav.js.map +1 -0
- package/x/types.d.ts +2 -0
- package/x/types.js +2 -0
- package/x/types.js.map +1 -0
- package/x/vitals/setup.d.ts +7 -2
- package/x/vitals/setup.js +16 -9
- package/x/vitals/setup.js.map +1 -1
- package/x/vitals/shell.js +3 -3
- package/x/vitals/shell.js.map +1 -1
- package/s/consts.ts +0 -5
- package/x/consts.d.ts +0 -3
- package/x/consts.js +0 -4
- package/x/consts.js.map +0 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { useCss } from "@e280/sly";
|
|
3
|
+
import styleCss from "./style.css.js";
|
|
4
|
+
import { themeCss } from "../../css/theme.css.js";
|
|
5
|
+
import { shadowDuplex } from "../tools/shadow-duplex.js";
|
|
6
|
+
export const [FooterView, makeBenevFooter] = shadowDuplex("benev-footer", () => {
|
|
7
|
+
useCss(themeCss, styleCss);
|
|
8
|
+
return html `<slot></slot>`;
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/footer/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAA;AAEhC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAA;AAEtD,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG,YAAY,CAAC,cAAc,EAAE,GAAG,EAAE;IAC9E,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAC1B,OAAO,IAAI,CAAA,eAAe,CAAA;AAC3B,CAAC,CAAC,CAAA"}
|
package/x/dom/header/view.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { Shell } from "../../vitals/shell.js";
|
|
2
|
-
export declare const HeaderView: import("@e280/sly").ShadowView<[shell: Shell]
|
|
3
|
-
export declare const headerElement: (shell: Shell) => new () => HTMLElement;
|
|
2
|
+
export declare const HeaderView: import("@e280/sly").ShadowView<[shell: Shell]>, makeBenevHeader: (shell: Shell) => new () => HTMLElement;
|
package/x/dom/header/view.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
|
-
import {
|
|
2
|
+
import { useCss } from "@e280/sly";
|
|
3
|
+
import styleCss from "./style.css.js";
|
|
3
4
|
import { bDataPng } from "../../assets/b.png.js";
|
|
4
5
|
import { themeCss } from "../../css/theme.css.js";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
6
|
+
import { shadowDuplex } from "../tools/shadow-duplex.js";
|
|
7
|
+
export const [HeaderView, makeBenevHeader] = shadowDuplex("benev-header", (shell) => {
|
|
8
|
+
useCss(themeCss, styleCss);
|
|
7
9
|
const click = () => shell.toggle();
|
|
8
10
|
return html `
|
|
9
11
|
<nav part=nav ?data-opened=${shell.open} ?data-closed=${!shell.open}>
|
|
@@ -13,14 +15,5 @@ const Header = (shell) => {
|
|
|
13
15
|
<slot></slot>
|
|
14
16
|
</nav>
|
|
15
17
|
`;
|
|
16
|
-
};
|
|
17
|
-
export const HeaderView = shadow((shell) => {
|
|
18
|
-
useName("header");
|
|
19
|
-
useCss(themeCss, styleCss);
|
|
20
|
-
return Header(shell);
|
|
21
|
-
});
|
|
22
|
-
export const headerElement = (shell) => shadowElement(() => {
|
|
23
|
-
useCss(themeCss, styleCss);
|
|
24
|
-
return Header(shell);
|
|
25
18
|
});
|
|
26
19
|
//# sourceMappingURL=view.js.map
|
package/x/dom/header/view.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/header/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/header/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,MAAM,EAAC,MAAM,WAAW,CAAA;AAEhC,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AAErC,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAC,YAAY,EAAC,MAAM,2BAA2B,CAAA;AAEtD,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,eAAe,CAAC,GAAG,YAAY,CAAC,cAAc,EAAE,CAAC,KAAY,EAAE,EAAE;IAC1F,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAE1B,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,CAAA;IAElC,OAAO,IAAI,CAAA;+BACmB,KAAK,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,IAAI;sDACf,KAAK;yBAClC,QAAQ;;;;EAI/B,CAAA;AACF,CAAC,CAAC,CAAA"}
|
package/x/dom/loader/loader.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nap } from "@e280/stz";
|
|
2
2
|
import { dom } from "@e280/sly";
|
|
3
|
-
import {
|
|
3
|
+
import { bconfig } from "../../bconfig.js";
|
|
4
4
|
export class Loader {
|
|
5
5
|
element;
|
|
6
6
|
anim;
|
|
@@ -8,7 +8,7 @@ export class Loader {
|
|
|
8
8
|
#loading;
|
|
9
9
|
#content;
|
|
10
10
|
#operation = 0;
|
|
11
|
-
constructor(element, anim =
|
|
11
|
+
constructor(element, anim = bconfig.anim) {
|
|
12
12
|
this.element = element;
|
|
13
13
|
this.anim = anim;
|
|
14
14
|
this.original = document.createElement("template");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../s/dom/loader/loader.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAA;AAC7B,OAAO,EAAU,GAAG,EAAC,MAAM,WAAW,CAAA;AACtC,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"loader.js","sourceRoot":"","sources":["../../../s/dom/loader/loader.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,WAAW,CAAA;AAC7B,OAAO,EAAU,GAAG,EAAC,MAAM,WAAW,CAAA;AACtC,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAA;AAExC,MAAM,OAAO,MAAM;IAQT,OAAO;IACP,IAAI;IARb,QAAQ,CAAA;IAER,QAAQ,CAAA;IACR,QAAQ,CAAA;IACR,UAAU,GAAG,CAAC,CAAA;IAEd,YACS,OAAoB,EACpB,IAAI,GAAG,OAAO,CAAC,IAAI;uBADnB,OAAO;oBACP,IAAI;QAGZ,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,UAAU,CAAC,CAAA;QAClD,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;QAE3C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QAC7C,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,GAAG,UAAU,CAAA;QACxC,IAAI,CAAC,QAAQ,CAAC,IAAI,GAAG,SAAS,CAAA;QAE9B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAA;QAC7C,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,GAAG,UAAU,CAAA;QACxC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAA;QAEzD,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE,CAAA;QAC9B,IAAI,CAAC,OAAO,CAAC,MAAM,CAClB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,QAAQ,CACb,CAAA;IACF,CAAC;IAED,KAAK,CAAC,IAAI,CACR,UAAyB,EACzB,UAAkC;QAGnC,IAAI,CAAC,UAAU,IAAI,CAAC,CAAA;QACpB,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,CAAA;QACjC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,UAAU,KAAK,SAAS,CAAC,CAAA;QACtD,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,IAAI,CAAA;QACzB,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,SAAS,EAAE,IAAI,CAAC,CAAA;QAC7C,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAA;QAEvC,IAAI,CAAC;YACJ,MAAM,CAAC,OAAO,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;gBACnC,UAAU,EAAE;gBACZ,GAAG,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;aAClB,CAAC,CAAA;YAEF,IAAI,QAAQ,EAAE,EAAE,CAAC;gBAChB,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;gBAC9C,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAA;gBAC1B,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;gBAClC,MAAM,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YACrB,CAAC;QACF,CAAC;gBACO,CAAC;YACR,IAAI,QAAQ,EAAE,EAAE,CAAC;gBAChB,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;gBAC9C,IAAI,CAAC,OAAO,CAAC,KAAK,GAAG,KAAK,CAAA;gBAC1B,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAA;YAChC,CAAC;QACF,CAAC;IACF,CAAC;CACD"}
|
|
@@ -6,38 +6,48 @@ export default css `@layer benev.view {
|
|
|
6
6
|
position: relative;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
.veil {
|
|
9
|
+
.veil, .scalar {
|
|
10
10
|
position: absolute;
|
|
11
11
|
inset: 0;
|
|
12
|
-
background: var(--benev-bg);
|
|
13
|
-
pointer-events: none;
|
|
14
|
-
|
|
15
|
-
opacity: 1;
|
|
16
|
-
visibility: visible;
|
|
17
|
-
|
|
18
12
|
transition:
|
|
19
13
|
opacity var(--benev-anim) linear,
|
|
14
|
+
transform var(--benev-anim) ease,
|
|
20
15
|
visiblity 0ms linear allow-discrete;
|
|
21
|
-
}
|
|
22
16
|
|
|
23
|
-
:host(:not([loading])) .veil {
|
|
24
|
-
opacity: 0;
|
|
25
|
-
visiblity: hidden;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.veil {
|
|
29
17
|
display: flex;
|
|
30
18
|
flex-direction: column;
|
|
31
19
|
justify-content: center;
|
|
32
20
|
align-items: center;
|
|
33
21
|
gap: var(--benev-space);
|
|
22
|
+
}
|
|
34
23
|
|
|
35
|
-
|
|
24
|
+
.veil {
|
|
25
|
+
pointer-events: all;
|
|
26
|
+
background: var(--benev-bg);
|
|
27
|
+
|
|
28
|
+
opacity: 1;
|
|
29
|
+
visibility: visible;
|
|
30
|
+
|
|
31
|
+
.scalar {
|
|
32
|
+
transform: scale(100%);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.logo {
|
|
36
36
|
width: 100%;
|
|
37
37
|
max-width: 10em;
|
|
38
38
|
aspect-ratio: 1 / 1;
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
:host(:not([loading])) .veil {
|
|
43
|
+
pointer-events: none;
|
|
44
|
+
opacity: 0;
|
|
45
|
+
visiblity: hidden;
|
|
46
|
+
|
|
47
|
+
.scalar {
|
|
48
|
+
transform: scale(0%);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
42
52
|
}`;
|
|
43
53
|
//# sourceMappingURL=style.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../s/dom/loader/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../s/dom/loader/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkDhB,CAAA"}
|
package/x/dom/loader/view.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { html } from "lit";
|
|
2
2
|
import { shadowElement, useCss } from "@e280/sly";
|
|
3
|
+
import styleCss from "./style.css.js";
|
|
3
4
|
import { themeCss } from "../../css/theme.css.js";
|
|
4
5
|
import { bDataPng } from "../../assets/b.png.js";
|
|
5
|
-
import styleCss from "./style.css.js";
|
|
6
6
|
export const BenevLoader = shadowElement(() => {
|
|
7
7
|
useCss(themeCss, styleCss);
|
|
8
8
|
return html `
|
|
9
9
|
<slot></slot>
|
|
10
10
|
|
|
11
11
|
<div class=veil>
|
|
12
|
-
<
|
|
13
|
-
|
|
12
|
+
<div class=scalar>
|
|
13
|
+
<img class=logo src="${bDataPng}" alt="" draggable="false"/>
|
|
14
|
+
<slot name=loading></slot>
|
|
15
|
+
</div>
|
|
14
16
|
</div>
|
|
15
17
|
`;
|
|
16
18
|
});
|
package/x/dom/loader/view.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/loader/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,aAAa,EAAE,MAAM,EAAC,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/loader/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,aAAa,EAAE,MAAM,EAAC,MAAM,WAAW,CAAA;AAE/C,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAE9C,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC,GAAG,EAAE;IAC7C,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAE1B,OAAO,IAAI,CAAA;;;;;2BAKe,QAAQ;;;;EAIjC,CAAA;AACF,CAAC,CAAC,CAAA"}
|
package/x/dom/menu/view.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Shell } from "../../vitals/shell.js";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const makeBenevMenu: (shell: Shell) => new () => HTMLElement;
|
package/x/dom/menu/view.js
CHANGED
|
@@ -6,7 +6,7 @@ import { themeCss } from "../../css/theme.css.js";
|
|
|
6
6
|
import { onKeypress } from "./utils/on-keypress.js";
|
|
7
7
|
import { clickBackdrop } from "./utils/click-backdrop.js";
|
|
8
8
|
import { useAfterFirstRender } from "./utils/use-after-first-render.js";
|
|
9
|
-
export const
|
|
9
|
+
export const makeBenevMenu = (shell) => shadowElement(() => {
|
|
10
10
|
useCss(themeCss, styleCss);
|
|
11
11
|
useAfterFirstRender(shadow => shell.attach(dom("dialog", shadow)));
|
|
12
12
|
useMount(onKeypress(["KeyB", "Escape"], () => shell.toggle()));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { shadow, shadowElement, useName } from "@e280/sly";
|
|
2
|
+
export function shadowDuplex(name, render) {
|
|
3
|
+
const view = shadow((...p) => {
|
|
4
|
+
useName(name);
|
|
5
|
+
return render(...p);
|
|
6
|
+
});
|
|
7
|
+
const makeElement = (...p) => shadowElement(() => render(...p));
|
|
8
|
+
return [view, makeElement];
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=shadow-duplex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shadow-duplex.js","sourceRoot":"","sources":["../../../s/dom/tools/shadow-duplex.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,MAAM,EAAE,aAAa,EAAE,OAAO,EAAC,MAAM,WAAW,CAAA;AAEjE,MAAM,UAAU,YAAY,CAAkB,IAAY,EAAE,MAA4B;IACvF,MAAM,IAAI,GAAG,MAAM,CAAC,CAAC,GAAG,CAAI,EAAE,EAAE;QAC/B,OAAO,CAAC,IAAI,CAAC,CAAA;QACb,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;IACpB,CAAC,CAAC,CAAA;IAEF,MAAM,WAAW,GAAG,CAAC,GAAG,CAAI,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;IAElE,OAAO,CAAC,IAAI,EAAE,WAAW,CAGxB,CAAA;AACF,CAAC"}
|
package/x/index-ssg.d.ts
CHANGED
package/x/index-ssg.js
CHANGED
package/x/index-ssg.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index-ssg.js","sourceRoot":"","sources":["../s/index-ssg.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index-ssg.js","sourceRoot":"","sources":["../s/index-ssg.ts"],"names":[],"mappings":"AACA,cAAc,wBAAwB,CAAA;AACtC,cAAc,kBAAkB,CAAA;AAEhC,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
|
package/x/index.d.ts
CHANGED
package/x/index.html
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
<title>@benev/web</title>
|
|
9
9
|
<link rel="icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='0.9em' font-size='90'>😇</text></svg>"/>
|
|
10
|
-
<script type="module" src="main.bundle.min.js?v=
|
|
10
|
+
<script type="module" src="main.bundle.min.js?v=ff95a7dd9b79"></script>
|
|
11
11
|
<style>
|
|
12
12
|
@layer benev, demo;
|
|
13
13
|
|
|
@@ -103,7 +103,7 @@ text-decoration: none;
|
|
|
103
103
|
&:hover, &:focus-visible {
|
|
104
104
|
color: inherit;
|
|
105
105
|
text-decoration: none;
|
|
106
|
-
filter: brightness(
|
|
106
|
+
filter: brightness(110%);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
&:active {
|
|
@@ -210,6 +210,43 @@ margin: 0 auto;
|
|
|
210
210
|
height: var(--benev-b-size);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
+
|
|
214
|
+
a {
|
|
215
|
+
position: relative;
|
|
216
|
+
color: var(--benev-prime);
|
|
217
|
+
font-size: 1em;
|
|
218
|
+
|
|
219
|
+
&[data-active] {
|
|
220
|
+
text-shadow: 0 0 0.5em currentColor;
|
|
221
|
+
|
|
222
|
+
&::after {
|
|
223
|
+
content: "•";
|
|
224
|
+
display: block;
|
|
225
|
+
position: absolute;
|
|
226
|
+
top: 100%;
|
|
227
|
+
left: 0;
|
|
228
|
+
right: 0;
|
|
229
|
+
line-height: 0;
|
|
230
|
+
text-align: center;
|
|
231
|
+
text-shadow:
|
|
232
|
+
0 0 0.5em currentColor,
|
|
233
|
+
0 0 0.5em currentColor;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
benev-footer {
|
|
240
|
+
width: 100%;
|
|
241
|
+
max-width: var(--benev-site-width);
|
|
242
|
+
margin-left: auto;
|
|
243
|
+
margin-right: auto;
|
|
244
|
+
|
|
245
|
+
display: flex;
|
|
246
|
+
gap: var(--benev-space);
|
|
247
|
+
justify-content: end;
|
|
248
|
+
padding: var(--benev-space);
|
|
249
|
+
--benev-link: #fffa;
|
|
213
250
|
}
|
|
214
251
|
|
|
215
252
|
[benev-prose] {
|
|
@@ -352,10 +389,15 @@ main {
|
|
|
352
389
|
|
|
353
390
|
</head>
|
|
354
391
|
<body>
|
|
355
|
-
<benev-menu
|
|
392
|
+
<benev-menu>
|
|
393
|
+
<benev-account></benev-account>
|
|
394
|
+
</benev-menu>
|
|
356
395
|
|
|
357
396
|
<benev-header>
|
|
358
|
-
|
|
397
|
+
|
|
398
|
+
<a href="/" data-active>games</a>
|
|
399
|
+
<a href="/d/">devlog</a>
|
|
400
|
+
|
|
359
401
|
</benev-header>
|
|
360
402
|
|
|
361
403
|
<benev-loader>
|
package/x/index.html.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { template, html, socialCard, dataSvgEmoji } from "@e280/scute";
|
|
2
|
+
import { topNav } from "./ssg/top-nav.js";
|
|
2
3
|
import { benevCssText } from "./css/benev.csstext.js";
|
|
3
4
|
export default template(import.meta.url, async (orb) => html `
|
|
4
5
|
<!doctype html>
|
|
@@ -25,10 +26,12 @@ export default template(import.meta.url, async (orb) => html `
|
|
|
25
26
|
})}
|
|
26
27
|
</head>
|
|
27
28
|
<body>
|
|
28
|
-
<benev-menu
|
|
29
|
+
<benev-menu>
|
|
30
|
+
<benev-account></benev-account>
|
|
31
|
+
</benev-menu>
|
|
29
32
|
|
|
30
33
|
<benev-header>
|
|
31
|
-
|
|
34
|
+
${topNav("games")}
|
|
32
35
|
</benev-header>
|
|
33
36
|
|
|
34
37
|
<benev-loader>
|
package/x/index.html.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.html.js","sourceRoot":"","sources":["../s/index.html.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,aAAa,CAAA;AACpE,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAA;AAEnD,eAAe,QAAQ,CAAC,OAAO,IAAI,CAAC,GAAG,EAAE,KAAK,EAAC,GAAG,EAAC,EAAE,CAAC,IAAI,CAAA;;;;;;;;;4BAS9B,YAAY,CAAC,IAAI,CAAC;gCACd,GAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC;;;MAG3D,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC;MACtB,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC;;;KAG3B,UAAU,CAAC;IACZ,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,sBAAsB;CACnC,CAAC
|
|
1
|
+
{"version":3,"file":"index.html.js","sourceRoot":"","sources":["../s/index.html.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,QAAQ,EAAE,IAAI,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,aAAa,CAAA;AACpE,OAAO,EAAC,MAAM,EAAC,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,wBAAwB,CAAA;AAEnD,eAAe,QAAQ,CAAC,OAAO,IAAI,CAAC,GAAG,EAAE,KAAK,EAAC,GAAG,EAAC,EAAE,CAAC,IAAI,CAAA;;;;;;;;;4BAS9B,YAAY,CAAC,IAAI,CAAC;gCACd,GAAG,CAAC,OAAO,CAAC,oBAAoB,CAAC;;;MAG3D,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC;MACtB,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC;;;KAG3B,UAAU,CAAC;IACZ,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,YAAY;IACtB,KAAK,EAAE,YAAY;IACnB,WAAW,EAAE,sBAAsB;CACnC,CAAC;;;;;;;;MAQC,MAAM,CAAC,OAAO,CAAC;;;;;;;;;;;CAWpB,CAAC,CAAA"}
|
package/x/index.js
CHANGED
|
@@ -6,5 +6,6 @@ export * from "./dom/header/view.js";
|
|
|
6
6
|
export * from "./dom/loader/view.js";
|
|
7
7
|
export * from "./dom/loader/loader.js";
|
|
8
8
|
export * from "./dom/menu/view.js";
|
|
9
|
-
export * from "./
|
|
9
|
+
export * from "./bconfig.js";
|
|
10
|
+
export * from "./types.js";
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
package/x/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../s/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAElC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAElC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../s/index.ts"],"names":[],"mappings":"AACA,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAElC,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAElC,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA"}
|