@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.
Files changed (87) hide show
  1. package/package.json +10 -7
  2. package/s/bconfig.ts +9 -0
  3. package/s/css/parts/common.csstext.ts +38 -0
  4. package/s/css/parts/core.csstext.ts +1 -1
  5. package/s/css/parts/vars.csstext.ts +2 -2
  6. package/s/dom/account/account.ts +7 -0
  7. package/s/dom/account/style.css.ts +6 -0
  8. package/s/dom/account/view.ts +16 -0
  9. package/s/dom/footer/style.css.ts +6 -0
  10. package/s/dom/footer/view.ts +13 -0
  11. package/s/dom/header/view.ts +8 -14
  12. package/s/dom/loader/loader.ts +2 -2
  13. package/s/dom/loader/style.css.ts +3 -0
  14. package/s/dom/loader/view.ts +2 -1
  15. package/s/dom/menu/view.ts +1 -1
  16. package/s/dom/tools/shadow-duplex.ts +17 -0
  17. package/s/index-ssg.ts +4 -0
  18. package/s/index.html.ts +5 -2
  19. package/s/index.ts +2 -1
  20. package/s/ssg/top-nav.ts +18 -0
  21. package/s/types.ts +5 -0
  22. package/s/vitals/setup.ts +17 -9
  23. package/s/vitals/shell.ts +3 -3
  24. package/x/bconfig.d.ts +11 -0
  25. package/x/bconfig.js +8 -0
  26. package/x/bconfig.js.map +1 -0
  27. package/x/css/parts/common.csstext.js +38 -0
  28. package/x/css/parts/common.csstext.js.map +1 -1
  29. package/x/css/parts/core.csstext.js +1 -1
  30. package/x/css/parts/vars.csstext.js +2 -2
  31. package/x/css/parts/vars.csstext.js.map +1 -1
  32. package/x/dom/account/account.d.ts +5 -0
  33. package/x/dom/account/account.js +7 -0
  34. package/x/dom/account/account.js.map +1 -0
  35. package/x/dom/account/style.css.d.ts +2 -0
  36. package/x/dom/account/style.css.js +5 -0
  37. package/x/dom/account/style.css.js.map +1 -0
  38. package/x/dom/account/view.d.ts +2 -0
  39. package/x/dom/account/view.js +11 -0
  40. package/x/dom/account/view.js.map +1 -0
  41. package/x/dom/footer/style.css.d.ts +2 -0
  42. package/x/dom/footer/style.css.js +5 -0
  43. package/x/dom/footer/style.css.js.map +1 -0
  44. package/x/dom/footer/view.d.ts +1 -0
  45. package/x/dom/footer/view.js +10 -0
  46. package/x/dom/footer/view.js.map +1 -0
  47. package/x/dom/header/view.d.ts +1 -2
  48. package/x/dom/header/view.js +5 -12
  49. package/x/dom/header/view.js.map +1 -1
  50. package/x/dom/loader/loader.js +2 -2
  51. package/x/dom/loader/loader.js.map +1 -1
  52. package/x/dom/loader/style.css.js +3 -0
  53. package/x/dom/loader/style.css.js.map +1 -1
  54. package/x/dom/loader/view.js +1 -1
  55. package/x/dom/loader/view.js.map +1 -1
  56. package/x/dom/menu/view.d.ts +1 -1
  57. package/x/dom/menu/view.js +1 -1
  58. package/x/dom/tools/shadow-duplex.d.ts +2 -0
  59. package/x/dom/tools/shadow-duplex.js +10 -0
  60. package/x/dom/tools/shadow-duplex.js.map +1 -0
  61. package/x/index-ssg.d.ts +3 -0
  62. package/x/index-ssg.js +3 -0
  63. package/x/index-ssg.js.map +1 -1
  64. package/x/index.d.ts +2 -1
  65. package/x/index.html +47 -4
  66. package/x/index.html.js +5 -2
  67. package/x/index.html.js.map +1 -1
  68. package/x/index.js +2 -1
  69. package/x/index.js.map +1 -1
  70. package/x/main.bundle.min.js +386 -69
  71. package/x/main.bundle.min.js.LEGAL.txt +7 -0
  72. package/x/main.bundle.min.js.map +4 -4
  73. package/x/ssg/top-nav.d.ts +2 -0
  74. package/x/ssg/top-nav.js +12 -0
  75. package/x/ssg/top-nav.js.map +1 -0
  76. package/x/types.d.ts +2 -0
  77. package/x/types.js +2 -0
  78. package/x/types.js.map +1 -0
  79. package/x/vitals/setup.d.ts +7 -2
  80. package/x/vitals/setup.js +16 -9
  81. package/x/vitals/setup.js.map +1 -1
  82. package/x/vitals/shell.js +3 -3
  83. package/x/vitals/shell.js.map +1 -1
  84. package/s/consts.ts +0 -5
  85. package/x/consts.d.ts +0 -3
  86. package/x/consts.js +0 -4
  87. 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",
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.1": true
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/stz": "^0.3.7"
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.2",
35
- "@e280/octo": "^0.1.3",
36
- "@e280/science": "^0.1.11",
37
- "@e280/scute": "^0.5.0",
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
@@ -0,0 +1,9 @@
1
+
2
+ export const bconfig = {
3
+ anim: 300,
4
+ zones: {
5
+ games: {path: "/"},
6
+ devlog: {path: "/d/"},
7
+ },
8
+ }
9
+
@@ -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] {
@@ -42,7 +42,7 @@ a {
42
42
  &:hover, &:focus-visible {
43
43
  color: inherit;
44
44
  text-decoration: none;
45
- filter: brightness(105%);
45
+ filter: brightness(110%);
46
46
  }
47
47
 
48
48
  &:active {
@@ -1,6 +1,6 @@
1
1
 
2
2
  import {templateString as css} from "@e280/stz"
3
- import {consts} from "../../consts.js"
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: ${consts.anim}ms;
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,7 @@
1
+
2
+ import {Auth} from "@e280/authlocal"
3
+
4
+ export class Account {
5
+ constructor(public auth: Auth) {}
6
+ }
7
+
@@ -0,0 +1,6 @@
1
+
2
+ import {css} from "lit"
3
+ export default css`@layer benev.view {
4
+
5
+ }`
6
+
@@ -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,6 @@
1
+
2
+ import {css} from "lit"
3
+ export default css`@layer benev.view {
4
+
5
+ }`
6
+
@@ -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
+
@@ -1,13 +1,18 @@
1
1
 
2
2
  import {html} from "lit"
3
- import {shadow, shadowElement, useCss, useName} from "@e280/sly"
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 styleCss from "./style.css.js"
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
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  import {nap} from "@e280/stz"
3
3
  import {Content, dom} from "@e280/sly"
4
- import {consts} from "../../consts.js"
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 = consts.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
 
@@ -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)
@@ -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 menuComponent = (shell: Shell) => shadowElement(() => {
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
@@ -1,3 +1,7 @@
1
1
 
2
2
  export * from "./css/benev.csstext.js"
3
+ export * from "./ssg/top-nav.js"
4
+
5
+ export * from "./bconfig.js"
6
+ export * from "./types.js"
3
7
 
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></benev-menu>
31
+ <benev-menu>
32
+ <benev-account></benev-account>
33
+ </benev-menu>
31
34
 
32
35
  <benev-header>
33
- <a href="https://benev.gg/">benev.gg</a>
36
+ ${topNav("games")}
34
37
  </benev-header>
35
38
 
36
39
  <benev-loader>
package/s/index.ts CHANGED
@@ -10,5 +10,6 @@ export * from "./dom/loader/view.js"
10
10
  export * from "./dom/loader/loader.js"
11
11
  export * from "./dom/menu/view.js"
12
12
 
13
- export * from "./consts.js"
13
+ export * from "./bconfig.js"
14
+ export * from "./types.js"
14
15
 
@@ -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
@@ -0,0 +1,5 @@
1
+
2
+ import type {bconfig} from "./bconfig.js"
3
+
4
+ export type Zone = keyof (typeof bconfig)["zones"]
5
+
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 {menuComponent} from "../dom/menu/view.js"
5
- import {headerElement} from "../dom/header/view.js"
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
- BenevHeader: headerElement(shell),
12
- BenevMenu: menuComponent(shell),
13
- BenevLoader: BenevLoader,
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
- return {
17
- shell,
18
- elements,
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 {consts} from "../consts.js"
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(consts.anim).then(() => {
55
+ nap(bconfig.anim).then(() => {
56
56
  if (token !== this.#closeToken)
57
57
  return
58
58
 
package/x/bconfig.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ export declare const bconfig: {
2
+ anim: number;
3
+ zones: {
4
+ games: {
5
+ path: string;
6
+ };
7
+ devlog: {
8
+ path: string;
9
+ };
10
+ };
11
+ };
package/x/bconfig.js ADDED
@@ -0,0 +1,8 @@
1
+ export const bconfig = {
2
+ anim: 300,
3
+ zones: {
4
+ games: { path: "/" },
5
+ devlog: { path: "/d/" },
6
+ },
7
+ };
8
+ //# sourceMappingURL=bconfig.js.map
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyKjB,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"}
@@ -41,7 +41,7 @@ a {
41
41
  &:hover, &:focus-visible {
42
42
  color: inherit;
43
43
  text-decoration: none;
44
- filter: brightness(105%);
44
+ filter: brightness(110%);
45
45
  }
46
46
 
47
47
  &:active {
@@ -1,5 +1,5 @@
1
1
  import { templateString as css } from "@e280/stz";
2
- import { consts } from "../../consts.js";
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: ${consts.anim}ms;
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,MAAM,EAAC,MAAM,iBAAiB,CAAA;AACtC,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA2BF,MAAM,CAAC,IAAI;;;;;;;;CAQ1B,CAAA"}
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,5 @@
1
+ import { Auth } from "@e280/authlocal";
2
+ export declare class Account {
3
+ auth: Auth;
4
+ constructor(auth: Auth);
5
+ }
@@ -0,0 +1,7 @@
1
+ export class Account {
2
+ auth;
3
+ constructor(auth) {
4
+ this.auth = auth;
5
+ }
6
+ }
7
+ //# sourceMappingURL=account.js.map
@@ -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,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { css } from "lit";
2
+ export default css `@layer benev.view {
3
+
4
+ }`;
5
+ //# sourceMappingURL=style.css.js.map
@@ -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,2 @@
1
+ import { Account } from "./account.js";
2
+ export declare const makeBenevAccount: (_account: Account) => new () => HTMLElement;
@@ -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,2 @@
1
+ declare const _default: import("lit").CSSResult;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { css } from "lit";
2
+ export default css `@layer benev.view {
3
+
4
+ }`;
5
+ //# sourceMappingURL=style.css.js.map
@@ -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"}
@@ -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;