@benev/web 0.1.0-3 → 0.1.0-4
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 +38 -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 +3 -0
- package/s/dom/loader/view.ts +2 -1
- 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 +38 -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 +3 -0
- package/x/dom/loader/style.css.js.map +1 -1
- package/x/dom/loader/view.js +1 -1
- 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 +47 -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 +386 -69
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@benev/web",
|
|
3
|
-
"version": "0.1.0-
|
|
3
|
+
"version": "0.1.0-4",
|
|
4
4
|
"description": "✨ benev web sdk",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"count": "find s -path '*/_archive' -prune -o -name '*.ts' -exec wc -l {} +"
|
|
21
21
|
},
|
|
22
22
|
"allowScripts": {
|
|
23
|
-
"esbuild@0.28.
|
|
23
|
+
"esbuild@0.28.2": true
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"@e280/sly": "^0.4.4",
|
|
@@ -28,13 +28,16 @@
|
|
|
28
28
|
"lit": "^3.3.2"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@e280/
|
|
31
|
+
"@e280/authlocal": "^0.3.0",
|
|
32
|
+
"@e280/kv": "^0.2.0",
|
|
33
|
+
"@e280/renraku": "0.6.0-6",
|
|
34
|
+
"@e280/stz": "^0.3.10"
|
|
32
35
|
},
|
|
33
36
|
"devDependencies": {
|
|
34
|
-
"@e280/hottie": "^0.1.
|
|
35
|
-
"@e280/octo": "^0.1.
|
|
36
|
-
"@e280/science": "^0.1.
|
|
37
|
-
"@e280/scute": "^0.5.
|
|
37
|
+
"@e280/hottie": "^0.1.5",
|
|
38
|
+
"@e280/octo": "^0.1.5",
|
|
39
|
+
"@e280/science": "^0.1.12",
|
|
40
|
+
"@e280/scute": "^0.5.2",
|
|
38
41
|
"typescript": "^7.0.2"
|
|
39
42
|
},
|
|
40
43
|
"author": "Chase Moskal <chasemoskal@gmail.com>",
|
package/s/bconfig.ts
ADDED
|
@@ -91,6 +91,44 @@ benev-header {
|
|
|
91
91
|
height: var(--benev-b-size);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
+
|
|
95
|
+
a {
|
|
96
|
+
position: relative;
|
|
97
|
+
color: var(--benev-prime);
|
|
98
|
+
padding: 0.2em;
|
|
99
|
+
font-size: 1.2em;
|
|
100
|
+
|
|
101
|
+
&[data-active] {
|
|
102
|
+
text-shadow: 0 0 0.5em currentColor;
|
|
103
|
+
|
|
104
|
+
&::after {
|
|
105
|
+
content: "•";
|
|
106
|
+
display: block;
|
|
107
|
+
position: absolute;
|
|
108
|
+
top: 90%;
|
|
109
|
+
left: 0;
|
|
110
|
+
right: 0;
|
|
111
|
+
line-height: 0;
|
|
112
|
+
text-align: center;
|
|
113
|
+
text-shadow:
|
|
114
|
+
0 0 0.5em currentColor,
|
|
115
|
+
0 0 0.5em currentColor;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
benev-footer {
|
|
122
|
+
width: 100%;
|
|
123
|
+
max-width: var(--benev-site-width);
|
|
124
|
+
margin-left: auto;
|
|
125
|
+
margin-right: auto;
|
|
126
|
+
|
|
127
|
+
display: flex;
|
|
128
|
+
gap: var(--benev-space);
|
|
129
|
+
justify-content: end;
|
|
130
|
+
padding: var(--benev-space);
|
|
131
|
+
--benev-link: #fffa;
|
|
94
132
|
}
|
|
95
133
|
|
|
96
134
|
[benev-prose] {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import {templateString as css} from "@e280/stz"
|
|
3
|
-
import {
|
|
3
|
+
import {bconfig} from "../../bconfig.js"
|
|
4
4
|
export default css`
|
|
5
5
|
|
|
6
6
|
--benev-font-size: 18px;
|
|
@@ -28,7 +28,7 @@ export default css`
|
|
|
28
28
|
|
|
29
29
|
--benev-pad: 0.5em;
|
|
30
30
|
--benev-space: 1em;
|
|
31
|
-
--benev-anim: ${
|
|
31
|
+
--benev-anim: ${bconfig.anim}ms;
|
|
32
32
|
--benev-round: 0.5em;
|
|
33
33
|
--benev-blur: blur(1em);
|
|
34
34
|
--benev-backdrop: #0008;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
import {html} from "lit"
|
|
3
|
+
import {shadowElement, useCss} from "@e280/sly"
|
|
4
|
+
|
|
5
|
+
import {Account} from "./account.js"
|
|
6
|
+
import styleCss from "./style.css.js"
|
|
7
|
+
import {themeCss} from "../../css/theme.css.js"
|
|
8
|
+
|
|
9
|
+
export const makeBenevAccount = (_account: Account) => shadowElement(() => {
|
|
10
|
+
useCss(themeCss, styleCss)
|
|
11
|
+
|
|
12
|
+
return html`
|
|
13
|
+
<benev-auth>Sign in</benev-auth>
|
|
14
|
+
`
|
|
15
|
+
})
|
|
16
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
import {html} from "lit"
|
|
3
|
+
import {useCss} from "@e280/sly"
|
|
4
|
+
|
|
5
|
+
import styleCss from "./style.css.js"
|
|
6
|
+
import {themeCss} from "../../css/theme.css.js"
|
|
7
|
+
import {shadowDuplex} from "../tools/shadow-duplex.js"
|
|
8
|
+
|
|
9
|
+
export const [FooterView, makeBenevFooter] = shadowDuplex("benev-footer", () => {
|
|
10
|
+
useCss(themeCss, styleCss)
|
|
11
|
+
return html`<slot></slot>`
|
|
12
|
+
})
|
|
13
|
+
|
package/s/dom/header/view.ts
CHANGED
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
import {html} from "lit"
|
|
3
|
-
import {
|
|
3
|
+
import {useCss} from "@e280/sly"
|
|
4
|
+
|
|
5
|
+
import styleCss from "./style.css.js"
|
|
4
6
|
import {Shell} from "../../vitals/shell.js"
|
|
5
7
|
import {bDataPng} from "../../assets/b.png.js"
|
|
6
8
|
import {themeCss} from "../../css/theme.css.js"
|
|
7
|
-
import
|
|
9
|
+
import {shadowDuplex} from "../tools/shadow-duplex.js"
|
|
10
|
+
|
|
11
|
+
export const [HeaderView, makeBenevHeader] = shadowDuplex("benev-header", (shell: Shell) => {
|
|
12
|
+
useCss(themeCss, styleCss)
|
|
8
13
|
|
|
9
|
-
const Header = (shell: Shell) => {
|
|
10
14
|
const click = () => shell.toggle()
|
|
15
|
+
|
|
11
16
|
return html`
|
|
12
17
|
<nav part=nav ?data-opened=${shell.open} ?data-closed=${!shell.open}>
|
|
13
18
|
<button benev-button=naked title="b menu" @click=${click}>
|
|
@@ -16,16 +21,5 @@ const Header = (shell: Shell) => {
|
|
|
16
21
|
<slot></slot>
|
|
17
22
|
</nav>
|
|
18
23
|
`
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export const HeaderView = shadow((shell: Shell) => {
|
|
22
|
-
useName("header")
|
|
23
|
-
useCss(themeCss, styleCss)
|
|
24
|
-
return Header(shell)
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
export const headerElement = (shell: Shell) => shadowElement(() => {
|
|
28
|
-
useCss(themeCss, styleCss)
|
|
29
|
-
return Header(shell)
|
|
30
24
|
})
|
|
31
25
|
|
package/s/dom/loader/loader.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import {nap} from "@e280/stz"
|
|
3
3
|
import {Content, dom} from "@e280/sly"
|
|
4
|
-
import {
|
|
4
|
+
import {bconfig} from "../../bconfig.js"
|
|
5
5
|
|
|
6
6
|
export class Loader {
|
|
7
7
|
original
|
|
@@ -12,7 +12,7 @@ export class Loader {
|
|
|
12
12
|
|
|
13
13
|
constructor(
|
|
14
14
|
public element: HTMLElement,
|
|
15
|
-
public anim =
|
|
15
|
+
public anim = bconfig.anim,
|
|
16
16
|
) {
|
|
17
17
|
|
|
18
18
|
this.original = document.createElement("template")
|
|
@@ -14,15 +14,18 @@ export default css`@layer benev.view {
|
|
|
14
14
|
pointer-events: none;
|
|
15
15
|
|
|
16
16
|
opacity: 1;
|
|
17
|
+
transform: scale(100%);
|
|
17
18
|
visibility: visible;
|
|
18
19
|
|
|
19
20
|
transition:
|
|
20
21
|
opacity var(--benev-anim) linear,
|
|
22
|
+
transform var(--benev-anim) ease,
|
|
21
23
|
visiblity 0ms linear allow-discrete;
|
|
22
24
|
}
|
|
23
25
|
|
|
24
26
|
:host(:not([loading])) .veil {
|
|
25
27
|
opacity: 0;
|
|
28
|
+
transform: scale(0%);
|
|
26
29
|
visiblity: hidden;
|
|
27
30
|
}
|
|
28
31
|
|
package/s/dom/loader/view.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
|
|
2
2
|
import {html} from "lit"
|
|
3
3
|
import {shadowElement, useCss} from "@e280/sly"
|
|
4
|
+
|
|
5
|
+
import styleCss from "./style.css.js"
|
|
4
6
|
import {themeCss} from "../../css/theme.css.js"
|
|
5
7
|
import {bDataPng} from "../../assets/b.png.js"
|
|
6
|
-
import styleCss from "./style.css.js"
|
|
7
8
|
|
|
8
9
|
export const BenevLoader = shadowElement(() => {
|
|
9
10
|
useCss(themeCss, styleCss)
|
package/s/dom/menu/view.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {onKeypress} from "./utils/on-keypress.js"
|
|
|
9
9
|
import {clickBackdrop} from "./utils/click-backdrop.js"
|
|
10
10
|
import {useAfterFirstRender} from "./utils/use-after-first-render.js"
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const makeBenevMenu = (shell: Shell) => shadowElement(() => {
|
|
13
13
|
useCss(themeCss, styleCss)
|
|
14
14
|
useAfterFirstRender(shadow => shell.attach(dom("dialog", shadow)))
|
|
15
15
|
useMount(onKeypress(["KeyB", "Escape"], () => shell.toggle()))
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
import {Content, shadow, shadowElement, useName} from "@e280/sly"
|
|
3
|
+
|
|
4
|
+
export function shadowDuplex<P extends any[]>(name: string, render: (...p: P) => Content) {
|
|
5
|
+
const view = shadow((...p: P) => {
|
|
6
|
+
useName(name)
|
|
7
|
+
return render(...p)
|
|
8
|
+
})
|
|
9
|
+
|
|
10
|
+
const makeElement = (...p: P) => shadowElement(() => render(...p))
|
|
11
|
+
|
|
12
|
+
return [view, makeElement] as [
|
|
13
|
+
view: typeof view,
|
|
14
|
+
makeElement: typeof makeElement,
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
|
package/s/index-ssg.ts
CHANGED
package/s/index.html.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import {template, html, socialCard, dataSvgEmoji} from "@e280/scute"
|
|
3
|
+
import {topNav} from "./ssg/top-nav.js"
|
|
3
4
|
import {benevCssText} from "./css/benev.csstext.js"
|
|
4
5
|
|
|
5
6
|
export default template(import.meta.url, async orb => html`
|
|
@@ -27,10 +28,12 @@ export default template(import.meta.url, async orb => html`
|
|
|
27
28
|
})}
|
|
28
29
|
</head>
|
|
29
30
|
<body>
|
|
30
|
-
<benev-menu
|
|
31
|
+
<benev-menu>
|
|
32
|
+
<benev-account></benev-account>
|
|
33
|
+
</benev-menu>
|
|
31
34
|
|
|
32
35
|
<benev-header>
|
|
33
|
-
|
|
36
|
+
${topNav("games")}
|
|
34
37
|
</benev-header>
|
|
35
38
|
|
|
36
39
|
<benev-loader>
|
package/s/index.ts
CHANGED
package/s/ssg/top-nav.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
import {html} from "@e280/scute"
|
|
3
|
+
import {Zone} from "../types.js"
|
|
4
|
+
import { bconfig } from "../bconfig.js"
|
|
5
|
+
|
|
6
|
+
export function topNav(currentZone: Zone) {
|
|
7
|
+
return html`
|
|
8
|
+
${navlink(currentZone, "games")}
|
|
9
|
+
${navlink(currentZone, "devlog")}
|
|
10
|
+
`
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const navlink = (currentZone: string, zone: Zone) => (
|
|
14
|
+
(zone === currentZone)
|
|
15
|
+
? html`<a href="${bconfig.zones[zone].path}" data-active>${zone}</a>`
|
|
16
|
+
: html`<a href="${bconfig.zones[zone].path}">${zone}</a>`
|
|
17
|
+
)
|
|
18
|
+
|
package/s/types.ts
ADDED
package/s/vitals/setup.ts
CHANGED
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
|
|
2
|
+
import {Auth, makeAuthWidget} from "@e280/authlocal"
|
|
2
3
|
import {Shell} from "./shell.js"
|
|
4
|
+
import {Account} from "../dom/account/account.js"
|
|
3
5
|
import {BenevLoader} from "../dom/loader/view.js"
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
+
import {makeBenevMenu} from "../dom/menu/view.js"
|
|
7
|
+
import {makeBenevFooter} from "../dom/footer/view.js"
|
|
8
|
+
import {makeBenevHeader} from "../dom/header/view.js"
|
|
9
|
+
import {makeBenevAccount} from "../dom/account/view.js"
|
|
6
10
|
|
|
7
11
|
export async function setupBenev() {
|
|
8
12
|
const shell = new Shell()
|
|
13
|
+
const auth = new Auth()
|
|
14
|
+
const account = new Account(auth)
|
|
9
15
|
|
|
10
16
|
const elements = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
BenevLoader,
|
|
18
|
+
BenevFooter: makeBenevFooter(),
|
|
19
|
+
BenevMenu: makeBenevMenu(shell),
|
|
20
|
+
BenevHeader: makeBenevHeader(shell),
|
|
21
|
+
BenevAccount: makeBenevAccount(account),
|
|
22
|
+
BenevAuth: makeAuthWidget(account.auth),
|
|
14
23
|
}
|
|
15
24
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
25
|
+
await auth.remember()
|
|
26
|
+
|
|
27
|
+
return {account, shell, elements}
|
|
20
28
|
}
|
|
21
29
|
|
package/s/vitals/shell.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import {tracker} from "@e280/strata"
|
|
3
2
|
import {got, nap} from "@e280/stz"
|
|
4
|
-
import {
|
|
3
|
+
import {tracker} from "@e280/strata"
|
|
4
|
+
import {bconfig} from "../bconfig.js"
|
|
5
5
|
|
|
6
6
|
export class Shell {
|
|
7
7
|
#dialog?: HTMLDialogElement
|
|
@@ -52,7 +52,7 @@ export class Shell {
|
|
|
52
52
|
const token = ++this.#closeToken
|
|
53
53
|
dialog.setAttribute("data-closing", "")
|
|
54
54
|
|
|
55
|
-
nap(
|
|
55
|
+
nap(bconfig.anim).then(() => {
|
|
56
56
|
if (token !== this.#closeToken)
|
|
57
57
|
return
|
|
58
58
|
|
package/x/bconfig.d.ts
ADDED
package/x/bconfig.js
ADDED
package/x/bconfig.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bconfig.js","sourceRoot":"","sources":["../s/bconfig.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG;IACtB,IAAI,EAAE,GAAG;IACT,KAAK,EAAE;QACN,KAAK,EAAE,EAAC,IAAI,EAAE,GAAG,EAAC;QAClB,MAAM,EAAE,EAAC,IAAI,EAAE,KAAK,EAAC;KACrB;CACD,CAAA"}
|
|
@@ -90,6 +90,44 @@ benev-header {
|
|
|
90
90
|
height: var(--benev-b-size);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
+
|
|
94
|
+
a {
|
|
95
|
+
position: relative;
|
|
96
|
+
color: var(--benev-prime);
|
|
97
|
+
padding: 0.2em;
|
|
98
|
+
font-size: 1.2em;
|
|
99
|
+
|
|
100
|
+
&[data-active] {
|
|
101
|
+
text-shadow: 0 0 0.5em currentColor;
|
|
102
|
+
|
|
103
|
+
&::after {
|
|
104
|
+
content: "•";
|
|
105
|
+
display: block;
|
|
106
|
+
position: absolute;
|
|
107
|
+
top: 90%;
|
|
108
|
+
left: 0;
|
|
109
|
+
right: 0;
|
|
110
|
+
line-height: 0;
|
|
111
|
+
text-align: center;
|
|
112
|
+
text-shadow:
|
|
113
|
+
0 0 0.5em currentColor,
|
|
114
|
+
0 0 0.5em currentColor;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
benev-footer {
|
|
121
|
+
width: 100%;
|
|
122
|
+
max-width: var(--benev-site-width);
|
|
123
|
+
margin-left: auto;
|
|
124
|
+
margin-right: auto;
|
|
125
|
+
|
|
126
|
+
display: flex;
|
|
127
|
+
gap: var(--benev-space);
|
|
128
|
+
justify-content: end;
|
|
129
|
+
padding: var(--benev-space);
|
|
130
|
+
--benev-link: #fffa;
|
|
93
131
|
}
|
|
94
132
|
|
|
95
133
|
[benev-prose] {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.csstext.js","sourceRoot":"","sources":["../../../s/css/parts/common.csstext.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,IAAI,GAAG,EAAC,MAAM,WAAW,CAAA;AAC/C,eAAe,GAAG,CAAA
|
|
1
|
+
{"version":3,"file":"common.csstext.js","sourceRoot":"","sources":["../../../s/css/parts/common.csstext.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,IAAI,GAAG,EAAC,MAAM,WAAW,CAAA;AAC/C,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+MjB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { templateString as css } from "@e280/stz";
|
|
2
|
-
import {
|
|
2
|
+
import { bconfig } from "../../bconfig.js";
|
|
3
3
|
export default css `
|
|
4
4
|
|
|
5
5
|
--benev-font-size: 18px;
|
|
@@ -27,7 +27,7 @@ export default css `
|
|
|
27
27
|
|
|
28
28
|
--benev-pad: 0.5em;
|
|
29
29
|
--benev-space: 1em;
|
|
30
|
-
--benev-anim: ${
|
|
30
|
+
--benev-anim: ${bconfig.anim}ms;
|
|
31
31
|
--benev-round: 0.5em;
|
|
32
32
|
--benev-blur: blur(1em);
|
|
33
33
|
--benev-backdrop: #0008;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vars.csstext.js","sourceRoot":"","sources":["../../../s/css/parts/vars.csstext.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,IAAI,GAAG,EAAC,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"vars.csstext.js","sourceRoot":"","sources":["../../../s/css/parts/vars.csstext.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,cAAc,IAAI,GAAG,EAAC,MAAM,WAAW,CAAA;AAC/C,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAA;AACxC,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA2BF,OAAO,CAAC,IAAI;;;;;;;;CAQ3B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../s/dom/account/account.ts"],"names":[],"mappings":"AAGA,MAAM,OAAO,OAAO;IACA,IAAI;IAAvB,YAAmB,IAAU;oBAAV,IAAI;IAAS,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../s/dom/account/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA;;EAEhB,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { html } from "lit";
|
|
2
|
+
import { shadowElement, useCss } from "@e280/sly";
|
|
3
|
+
import styleCss from "./style.css.js";
|
|
4
|
+
import { themeCss } from "../../css/theme.css.js";
|
|
5
|
+
export const makeBenevAccount = (_account) => shadowElement(() => {
|
|
6
|
+
useCss(themeCss, styleCss);
|
|
7
|
+
return html `
|
|
8
|
+
<benev-auth>Sign in</benev-auth>
|
|
9
|
+
`;
|
|
10
|
+
});
|
|
11
|
+
//# sourceMappingURL=view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../s/dom/account/view.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,KAAK,CAAA;AACxB,OAAO,EAAC,aAAa,EAAE,MAAM,EAAC,MAAM,WAAW,CAAA;AAG/C,OAAO,QAAQ,MAAM,gBAAgB,CAAA;AACrC,OAAO,EAAC,QAAQ,EAAC,MAAM,wBAAwB,CAAA;AAE/C,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,QAAiB,EAAE,EAAE,CAAC,aAAa,CAAC,GAAG,EAAE;IACzE,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;IAE1B,OAAO,IAAI,CAAA;;EAEV,CAAA;AACF,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.css.js","sourceRoot":"","sources":["../../../s/dom/footer/style.css.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AACvB,eAAe,GAAG,CAAA;;EAEhB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FooterView: import("@e280/sly").ShadowView<[]>, makeBenevFooter: () => new () => HTMLElement;
|
|
@@ -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;
|