solid-ui 3.1.3-11 → 3.1.3-12
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 -0
- package/dist/chunks/{account-CdqIoTsl.js → account-Bb818bGF.js} +20 -15
- package/dist/chunks/account-Bb818bGF.js.map +1 -0
- package/dist/chunks/{auth-D8B5yczR.js → auth-ClVI18ss.js} +90 -79
- package/dist/chunks/auth-ClVI18ss.js.map +1 -0
- package/dist/chunks/{avatar-DNGFKkhm.js → avatar-DGu_PX5y.js} +12 -4
- package/dist/chunks/avatar-DGu_PX5y.js.map +1 -0
- package/dist/chunks/{button-oanBb_ha.js → button-B9-nlEpz.js} +2 -2
- package/dist/chunks/{button-oanBb_ha.js.map → button-B9-nlEpz.js.map} +1 -1
- package/dist/chunks/{combobox-Dav1bNHS.js → combobox-DrT0Nb-A.js} +3 -3
- package/dist/chunks/combobox-DrT0Nb-A.js.map +1 -0
- package/dist/chunks/{dialog-Ujvm11_B.js → dialog-kyHgc-uy.js} +2 -2
- package/dist/chunks/{dialog-Ujvm11_B.js.map → dialog-kyHgc-uy.js.map} +1 -1
- package/dist/chunks/{guard-DZGvf4tS.js → guard-DEqOFEs4.js} +78 -52
- package/dist/chunks/guard-DEqOFEs4.js.map +1 -0
- package/dist/chunks/{login-button-Ta3tkpn4.js → login-button-Czm-E9Na.js} +4 -4
- package/dist/chunks/{login-button-Ta3tkpn4.js.map → login-button-Czm-E9Na.js.map} +1 -1
- package/dist/chunks/{logout-button-Db6VmUmJ.js → logout-button-BrR_jOhK.js} +4 -4
- package/dist/chunks/{logout-button-Db6VmUmJ.js.map → logout-button-BrR_jOhK.js.map} +1 -1
- package/dist/chunks/{menu-CQEXqNO6.js → menu-1PG19fCC.js} +3 -3
- package/dist/chunks/{menu-CQEXqNO6.js.map → menu-1PG19fCC.js.map} +1 -1
- package/dist/chunks/{menu-item-BHJ4xljI.js → menu-item-C9uErV38.js} +71 -54
- package/dist/chunks/menu-item-C9uErV38.js.map +1 -0
- package/dist/chunks/{provider-CoVkCkMs.js → provider-qd_4VaKB.js} +5 -2
- package/dist/chunks/provider-qd_4VaKB.js.map +1 -0
- package/dist/chunks/{signup-button-wO4uoqUi.js → signup-button-BnA5p-uJ.js} +4 -4
- package/dist/chunks/{signup-button-wO4uoqUi.js.map → signup-button-BnA5p-uJ.js.map} +1 -1
- package/dist/chunks/{src-B9CXYA44.js → src-DJOb1wMf.js} +2 -2
- package/dist/chunks/{src-B9CXYA44.js.map → src-DJOb1wMf.js.map} +1 -1
- package/dist/components/account/Account.cjs.js +6 -4
- package/dist/components/account/Account.cjs.js.map +1 -1
- package/dist/components/account/Account.d.ts +2 -0
- package/dist/components/account/Account.d.ts.map +1 -1
- package/dist/components/account/Account.esm.js +10 -4
- package/dist/components/account/Account.esm.js.map +1 -1
- package/dist/components/account/Account.stories.d.ts +10 -2
- package/dist/components/account/Account.stories.d.ts.map +1 -1
- package/dist/components/account/Account.styles.cjs.js +1 -1
- package/dist/components/account/Account.styles.cjs.js.map +1 -1
- package/dist/components/account/Account.styles.esm.js +1 -1
- package/dist/components/account/Account.styles.esm.js.map +1 -1
- package/dist/components/account.js +1 -1
- package/dist/components/all.cjs.js +1 -0
- package/dist/components/all.d.ts +2 -0
- package/dist/components/all.d.ts.map +1 -0
- package/dist/components/all.esm.js +24 -0
- package/dist/components/avatar/Avatar.cjs.js +1 -1
- package/dist/components/avatar/Avatar.cjs.js.map +1 -1
- package/dist/components/avatar/Avatar.d.ts +3 -0
- package/dist/components/avatar/Avatar.d.ts.map +1 -1
- package/dist/components/avatar/Avatar.esm.js +9 -1
- package/dist/components/avatar/Avatar.esm.js.map +1 -1
- package/dist/components/avatar/Avatar.stories.d.ts +4 -4
- package/dist/components/avatar.js +1 -1
- package/dist/components/button/Button.styles.cjs.js +1 -1
- package/dist/components/button/Button.styles.cjs.js.map +1 -1
- package/dist/components/button/Button.styles.esm.js +1 -1
- package/dist/components/button/Button.styles.esm.js.map +1 -1
- package/dist/components/button.js +1 -1
- package/dist/components/combobox/Combobox.cjs.js +1 -1
- package/dist/components/combobox/Combobox.cjs.js.map +1 -1
- package/dist/components/combobox/Combobox.d.ts.map +1 -1
- package/dist/components/combobox/Combobox.esm.js +1 -1
- package/dist/components/combobox/Combobox.esm.js.map +1 -1
- package/dist/components/combobox/Combobox.styles.cjs.js +1 -1
- package/dist/components/combobox/Combobox.styles.cjs.js.map +1 -1
- package/dist/components/combobox/Combobox.styles.esm.js +1 -1
- package/dist/components/combobox/Combobox.styles.esm.js.map +1 -1
- package/dist/components/combobox.js +1 -1
- package/dist/components/dialog.js +1 -1
- package/dist/components/guard/Guard.cjs.js +4 -2
- package/dist/components/guard/Guard.cjs.js.map +1 -1
- package/dist/components/guard/Guard.d.ts +7 -0
- package/dist/components/guard/Guard.d.ts.map +1 -1
- package/dist/components/guard/Guard.esm.js +74 -48
- package/dist/components/guard/Guard.esm.js.map +1 -1
- package/dist/components/guard/Guard.stories.d.ts +14 -3
- package/dist/components/guard/Guard.stories.d.ts.map +1 -1
- package/dist/components/guard.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.esm.js +1 -24
- package/dist/components/login-button.js +1 -1
- package/dist/components/login-modal.js +1 -1
- package/dist/components/logout-button.js +1 -1
- package/dist/components/menu/Menu.cjs.js +1 -1
- package/dist/components/menu/Menu.cjs.js.map +1 -1
- package/dist/components/menu/Menu.esm.js +1 -1
- package/dist/components/menu/Menu.esm.js.map +1 -1
- package/dist/components/menu/Menu.stories.d.ts.map +1 -1
- package/dist/components/menu/Menu.styles.cjs.js +1 -1
- package/dist/components/menu/Menu.styles.cjs.js.map +1 -1
- package/dist/components/menu/Menu.styles.esm.js +1 -1
- package/dist/components/menu/Menu.styles.esm.js.map +1 -1
- package/dist/components/menu-item/MenuItem.cjs.js +4 -4
- package/dist/components/menu-item/MenuItem.cjs.js.map +1 -1
- package/dist/components/menu-item/MenuItem.d.ts +1 -0
- package/dist/components/menu-item/MenuItem.d.ts.map +1 -1
- package/dist/components/menu-item/MenuItem.esm.js +72 -55
- package/dist/components/menu-item/MenuItem.esm.js.map +1 -1
- package/dist/components/menu-item/MenuItem.styles.cjs.js +1 -1
- package/dist/components/menu-item/MenuItem.styles.cjs.js.map +1 -1
- package/dist/components/menu-item/MenuItem.styles.esm.js +1 -1
- package/dist/components/menu-item/MenuItem.styles.esm.js.map +1 -1
- package/dist/components/menu-item.js +1 -1
- package/dist/components/menu.js +1 -1
- package/dist/components/provider/Provider.cjs.js +1 -1
- package/dist/components/provider/Provider.cjs.js.map +1 -1
- package/dist/components/provider/Provider.d.ts +1 -0
- package/dist/components/provider/Provider.d.ts.map +1 -1
- package/dist/components/provider/Provider.esm.js +3 -0
- package/dist/components/provider/Provider.esm.js.map +1 -1
- package/dist/components/provider.js +1 -1
- package/dist/components/signup-button.js +1 -1
- package/dist/components.js +14 -14
- package/dist/index.js +3 -3
- package/dist/lib/auth/NoopAuth.cjs.js +1 -1
- package/dist/lib/auth/NoopAuth.cjs.js.map +1 -1
- package/dist/lib/auth/NoopAuth.d.ts +2 -2
- package/dist/lib/auth/NoopAuth.d.ts.map +1 -1
- package/dist/lib/auth/NoopAuth.esm.js +2 -3
- package/dist/lib/auth/NoopAuth.esm.js.map +1 -1
- package/dist/lib/auth/SolidAuth.cjs.js +1 -1
- package/dist/lib/auth/SolidAuth.cjs.js.map +1 -1
- package/dist/lib/auth/SolidAuth.d.ts +6 -0
- package/dist/lib/auth/SolidAuth.d.ts.map +1 -1
- package/dist/lib/auth/SolidAuth.esm.js +28 -16
- package/dist/lib/auth/SolidAuth.esm.js.map +1 -1
- package/dist/lib/auth/context.cjs.js.map +1 -1
- package/dist/lib/auth/context.d.ts +2 -0
- package/dist/lib/auth/context.d.ts.map +1 -1
- package/dist/lib/auth/context.esm.js.map +1 -1
- package/dist/loader.js +3 -3
- package/dist/solid-ui.js +92 -88
- package/dist/solid-ui.min.js +92 -88
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/storybook/auth/StorybookAuth.d.ts +1 -0
- package/dist/storybook/auth/StorybookAuth.d.ts.map +1 -1
- package/dist/storybook/components/StorybookProvider.d.ts +1 -0
- package/dist/storybook/components/StorybookProvider.d.ts.map +1 -1
- package/dist/storybook/helpers.d.ts.map +1 -1
- package/dist/storybook/stubs.d.ts +7 -3
- package/dist/storybook/stubs.d.ts.map +1 -1
- package/dist/theme.css +1 -1
- package/package.json +1 -1
- package/dist/chunks/account-CdqIoTsl.js.map +0 -1
- package/dist/chunks/auth-D8B5yczR.js.map +0 -1
- package/dist/chunks/avatar-DNGFKkhm.js.map +0 -1
- package/dist/chunks/combobox-Dav1bNHS.js.map +0 -1
- package/dist/chunks/guard-DZGvf4tS.js.map +0 -1
- package/dist/chunks/menu-item-BHJ4xljI.js.map +0 -1
- package/dist/chunks/provider-CoVkCkMs.js.map +0 -1
|
@@ -3,32 +3,32 @@ import { c as n, i as r } from "./lit-C4H1jI4q.js";
|
|
|
3
3
|
import { n as i } from "./decorators-BqWyWiL9.js";
|
|
4
4
|
import { t as a } from "./query-BYu9q8lA.js";
|
|
5
5
|
//#region src/components/menu-item/MenuItem.styles.css
|
|
6
|
-
var o = n`:host{&>a,&>div{width:100%;color:var(--solid-ui-color-gray-600);font-weight:500;font-size:var(--solid-ui-font-size-md);border-radius:5px;justify-content:flex-start;align-items:center;gap:5px;padding:10px;display:flex;position:relative
|
|
7
|
-
function
|
|
8
|
-
|
|
6
|
+
var o = n`:host{&>a,&>div{width:100%;color:var(--solid-ui-color-gray-600);font-weight:500;font-size:var(--solid-ui-font-size-md);border-radius:5px;justify-content:flex-start;align-items:center;gap:5px;padding:10px;display:flex;position:relative;&[data-selected]{background:var(--solid-ui-color-primary-selected)}}& ::slotted([slot=left-icon]),& ::slotted([slot=right-icon]){width:var(--solid-ui-font-size-xl);height:var(--solid-ui-font-size-xl)}& a:after{content:\"\";width:100%;height:100%;position:absolute;top:0;left:0}}`, s, c, l, u, d, f, p, m, h, g, _, v, y, b, x, S;
|
|
7
|
+
function C(e, t, n) {
|
|
8
|
+
w(e, t), t.set(e, n);
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function w(e, t) {
|
|
11
11
|
if (t.has(e)) throw TypeError("Cannot initialize the same private elements twice on an object");
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
return e.set(
|
|
13
|
+
function T(e, t, n) {
|
|
14
|
+
return e.set(D(e, t), n), n;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
17
|
-
return e.get(
|
|
16
|
+
function E(e, t) {
|
|
17
|
+
return e.get(D(e, t));
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function D(e, t, n) {
|
|
20
20
|
if (typeof e == "function" ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
|
|
21
21
|
throw TypeError("Private element is not present on this object");
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
return (t =
|
|
23
|
+
function O(e, t, n) {
|
|
24
|
+
return (t = A(t)) in e ? Object.defineProperty(e, t, {
|
|
25
25
|
value: n,
|
|
26
26
|
enumerable: !0,
|
|
27
27
|
configurable: !0,
|
|
28
28
|
writable: !0
|
|
29
29
|
}) : e[t] = n, e;
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function k(e, t, n, r, i, a) {
|
|
32
32
|
function o(e, t, n) {
|
|
33
33
|
return function(r, i) {
|
|
34
34
|
return n && n(r), e[t].call(r, i);
|
|
@@ -51,13 +51,13 @@ function E(e, t, n, r, i, a) {
|
|
|
51
51
|
n || Array.isArray(_) || (_ = [_]);
|
|
52
52
|
var b = {}, x = [], S = i === 3 ? "get" : i === 4 || p ? "set" : "value";
|
|
53
53
|
d ? (f || p ? b = {
|
|
54
|
-
get:
|
|
54
|
+
get: M(function() {
|
|
55
55
|
return v(this);
|
|
56
56
|
}, r, "get"),
|
|
57
57
|
set: function(e) {
|
|
58
58
|
t[4](this, e);
|
|
59
59
|
}
|
|
60
|
-
} : b[S] = v, f ||
|
|
60
|
+
} : b[S] = v, f || M(b[S], r, i === 2 ? "" : S)) : f || (b = Object.getOwnPropertyDescriptor(e, r));
|
|
61
61
|
}
|
|
62
62
|
for (var C = e, w = _.length - 1; w >= 0; w -= n ? 2 : 1) {
|
|
63
63
|
var T = _[w], E = n ? _[w - 1] : void 0, D = {}, O = {
|
|
@@ -79,18 +79,18 @@ function E(e, t, n, r, i, a) {
|
|
|
79
79
|
try {
|
|
80
80
|
if (y) (g = c(T.call(E, C, O), "class decorators", "return")) && (C = g);
|
|
81
81
|
else {
|
|
82
|
-
var
|
|
83
|
-
O.static = u, O.private = d, d ? i === 2 ?
|
|
82
|
+
var k, A;
|
|
83
|
+
O.static = u, O.private = d, d ? i === 2 ? k = function(e) {
|
|
84
84
|
return h(e), b.value;
|
|
85
|
-
} : (i < 4 && (
|
|
85
|
+
} : (i < 4 && (k = o(b, "get", h)), i !== 3 && (A = o(b, "set", h))) : (k = function(e) {
|
|
86
86
|
return e[r];
|
|
87
|
-
}, (i < 2 || i === 4) && (
|
|
87
|
+
}, (i < 2 || i === 4) && (A = function(e, t) {
|
|
88
88
|
e[r] = t;
|
|
89
89
|
}));
|
|
90
|
-
var
|
|
90
|
+
var j = O.access = { has: d ? m.bind() : function(e) {
|
|
91
91
|
return r in e;
|
|
92
92
|
} };
|
|
93
|
-
if (
|
|
93
|
+
if (k && (j.get = k), A && (j.set = A), C = T.call(E, p ? {
|
|
94
94
|
get: b.get,
|
|
95
95
|
set: b.set
|
|
96
96
|
} : b[S], O), p) {
|
|
@@ -117,7 +117,7 @@ function E(e, t, n, r, i, a) {
|
|
|
117
117
|
if (arguments.length >= 6) var d = a[Symbol.metadata || Symbol.for("Symbol.metadata")];
|
|
118
118
|
var f = Object.create(d ?? null), p = function(e, t, n, r) {
|
|
119
119
|
var i, a, o = [], c = function(t) {
|
|
120
|
-
return
|
|
120
|
+
return N(t) === e;
|
|
121
121
|
}, u = /* @__PURE__ */ new Map();
|
|
122
122
|
function d(e) {
|
|
123
123
|
e && o.push(s.bind(null, e));
|
|
@@ -131,7 +131,7 @@ function E(e, t, n, r, i, a) {
|
|
|
131
131
|
if (!0 === x || x === 3 && m !== 4 || x === 4 && m !== 3) throw Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + h);
|
|
132
132
|
u.set(b, !(m > 2) || m);
|
|
133
133
|
}
|
|
134
|
-
l(v ? e : e.prototype, p, _, g ? "#" + h :
|
|
134
|
+
l(v ? e : e.prototype, p, _, g ? "#" + h : A(h), m, r, v ? a ||= [] : i ||= [], o, v, g, y, m === 1, v && g ? c : n);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
return d(i), d(a), o;
|
|
@@ -144,11 +144,11 @@ function E(e, t, n, r, i, a) {
|
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
function
|
|
148
|
-
var t =
|
|
147
|
+
function A(e) {
|
|
148
|
+
var t = j(e, "string");
|
|
149
149
|
return typeof t == "symbol" ? t : t + "";
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function j(e, t) {
|
|
152
152
|
if (typeof e != "object" || !e) return e;
|
|
153
153
|
var n = e[Symbol.toPrimitive];
|
|
154
154
|
if (n !== void 0) {
|
|
@@ -158,7 +158,7 @@ function O(e, t) {
|
|
|
158
158
|
}
|
|
159
159
|
return (t === "string" ? String : Number)(e);
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function M(e, t, n) {
|
|
162
162
|
typeof t == "symbol" && (t = (t = t.description) ? "[" + t + "]" : "");
|
|
163
163
|
try {
|
|
164
164
|
Object.defineProperty(e, "name", {
|
|
@@ -168,43 +168,52 @@ function k(e, t, n) {
|
|
|
168
168
|
} catch {}
|
|
169
169
|
return e;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function N(e) {
|
|
172
172
|
if (Object(e) !== e) throw TypeError("right-hand side of 'in' should be an object, got " + (e === null ? "null" : typeof e));
|
|
173
173
|
return e;
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function P(e) {
|
|
176
176
|
return e;
|
|
177
177
|
}
|
|
178
|
-
|
|
179
|
-
var
|
|
180
|
-
new (
|
|
178
|
+
m = [t("solid-ui-menu-item")];
|
|
179
|
+
var F;
|
|
180
|
+
new (x = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), d = /*#__PURE__*/ new WeakMap(), S = (h = i({
|
|
181
181
|
type: String,
|
|
182
182
|
reflect: !0
|
|
183
|
-
}),
|
|
183
|
+
}), _ = i({
|
|
184
|
+
type: Boolean,
|
|
185
|
+
reflect: !0
|
|
186
|
+
}), y = a("a"), "href"), c = class extends e {
|
|
184
187
|
constructor(...e) {
|
|
185
|
-
super(...e),
|
|
188
|
+
super(...e), C(this, l, (f(this), g(this))), C(this, u, v(this, !1)), C(this, d, b(this, null));
|
|
186
189
|
}
|
|
187
|
-
get [
|
|
188
|
-
return
|
|
190
|
+
get [S]() {
|
|
191
|
+
return E(l, this);
|
|
189
192
|
}
|
|
190
193
|
set href(e) {
|
|
191
|
-
|
|
194
|
+
T(l, this, e);
|
|
195
|
+
}
|
|
196
|
+
get selected() {
|
|
197
|
+
return E(u, this);
|
|
198
|
+
}
|
|
199
|
+
set selected(e) {
|
|
200
|
+
T(u, this, e);
|
|
192
201
|
}
|
|
193
202
|
get anchor() {
|
|
194
|
-
return
|
|
203
|
+
return E(d, this);
|
|
195
204
|
}
|
|
196
205
|
set anchor(e) {
|
|
197
|
-
|
|
206
|
+
T(d, this, e);
|
|
198
207
|
}
|
|
199
208
|
render() {
|
|
200
209
|
return this.href ? r`
|
|
201
|
-
<a href="${this.href}" target="_blank" rel="noopener noreferrer">
|
|
210
|
+
<a href="${this.href}" target="_blank" rel="noopener noreferrer" ?data-selected=${this.selected}>
|
|
202
211
|
<slot name="left-icon"></slot>
|
|
203
212
|
<slot></slot>
|
|
204
213
|
<slot name="right-icon"></slot>
|
|
205
214
|
</a>
|
|
206
215
|
` : r`
|
|
207
|
-
<div>
|
|
216
|
+
<div ?data-selected=${this.selected}>
|
|
208
217
|
<slot name="left-icon"></slot>
|
|
209
218
|
<slot></slot>
|
|
210
219
|
<slot name="right-icon"></slot>
|
|
@@ -214,23 +223,31 @@ new (v = (l = /*#__PURE__*/ new WeakMap(), u = /*#__PURE__*/ new WeakMap(), y =
|
|
|
214
223
|
click() {
|
|
215
224
|
this.anchor?.click();
|
|
216
225
|
}
|
|
217
|
-
}, {e: [
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
+
}, {e: [g, v, b, f], c: [F, p]} = k(c, [
|
|
227
|
+
[
|
|
228
|
+
h,
|
|
229
|
+
1,
|
|
230
|
+
"href"
|
|
231
|
+
],
|
|
232
|
+
[
|
|
233
|
+
_,
|
|
234
|
+
1,
|
|
235
|
+
"selected"
|
|
236
|
+
],
|
|
237
|
+
[
|
|
238
|
+
y,
|
|
239
|
+
1,
|
|
240
|
+
"anchor"
|
|
241
|
+
]
|
|
242
|
+
], m, 0, void 0, e), c), s = class extends P {
|
|
226
243
|
constructor() {
|
|
227
|
-
super(
|
|
244
|
+
super(F), O(this, "styles", o), p();
|
|
228
245
|
}
|
|
229
|
-
},
|
|
246
|
+
}, O(s, x, void 0), s)();
|
|
230
247
|
//#endregion
|
|
231
248
|
//#region src/components/menu-item/index.ts
|
|
232
|
-
var
|
|
249
|
+
var I = F;
|
|
233
250
|
//#endregion
|
|
234
|
-
export {
|
|
251
|
+
export { F as n, I as t };
|
|
235
252
|
|
|
236
|
-
//# sourceMappingURL=menu-item-
|
|
253
|
+
//# sourceMappingURL=menu-item-C9uErV38.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-item-C9uErV38.js","names":["customElement","WebComponent","property","query","html","styles","_classDecs","_MenuItem","_MenuItem2","_A","WeakMap","_B","_C","_ref","_hrefDecs","type","String","reflect","_selectedDecs","Boolean","_anchorDecs","_MenuItem3","MenuItem","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_href","_init_selected","_init_anchor","_classPrivateFieldGet","href","v","_classPrivateFieldSet","selected","anchor","render","click","e","c","_initClass","_applyDecs","_Class","_identity","_defineProperty","default","MenuItem"],"sources":["../../src/components/menu-item/MenuItem.styles.css","../../src/components/menu-item/MenuItem.ts","../../src/components/menu-item/index.ts"],"sourcesContent":[":host {\n & > a,\n & > div {\n width: 100%;\n display: flex;\n position: relative;\n justify-content: flex-start;\n align-items: center;\n gap: 5px;\n padding: 10px;\n border-radius: 5px;\n color: var(--solid-ui-color-gray-600);\n font-weight: 500;\n font-size: var(--solid-ui-font-size-md);\n\n &[data-selected] {\n background: var(--solid-ui-color-primary-selected);\n }\n }\n\n ::slotted([slot=\"left-icon\"]), ::slotted([slot=\"right-icon\"]) {\n width: var(--solid-ui-font-size-xl);\n height: var(--solid-ui-font-size-xl);\n }\n\n a::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n}\n","import { customElement, WebComponent } from '@/lib/components'\nimport { property, query } from 'lit/decorators.js'\nimport { html } from 'lit'\n\nimport styles from './MenuItem.styles.css'\n\n@customElement('solid-ui-menu-item')\nexport default class MenuItem extends WebComponent {\n static styles = styles\n\n @property({ type: String, reflect: true })\n accessor href: string | undefined\n\n @property({ type: Boolean, reflect: true })\n accessor selected: boolean = false\n\n @query('a')\n private accessor anchor: HTMLAnchorElement | null = null\n\n render () {\n if (this.href) {\n return html`\n <a href=\"${this.href}\" target=\"_blank\" rel=\"noopener noreferrer\" ?data-selected=${this.selected}>\n <slot name=\"left-icon\"></slot>\n <slot></slot>\n <slot name=\"right-icon\"></slot>\n </a>\n `\n }\n\n return html`\n <div ?data-selected=${this.selected}>\n <slot name=\"left-icon\"></slot>\n <slot></slot>\n <slot name=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A;CAAA,IAANuB,OAAMH,GAAA;EAAAC,EAAArB,GAAA,MAAAoB,CAAA;CAAA;CAEvBI,SAAU;EAWR,OAVI,KAAKL,OACA3B,CAAI;mBACE,KAAK2B,KAAI,6DAA8D,KAAKG,SAAQ;;;;;UAQ5F9B,CAAI;8BACe,KAAK8B,SAAQ;;;;;;CAMzC;CAEAG,QAAS;EACP,KAAKF,QAAQE,MAAM;CACrB;AACF,GAAC,CAAAC,GAAA,CAAAX,GAAAC,GAAAC,GAAAH,IAAAa,GAAA,CAAAhC,GAAAiC,MAAAC,EAAApB,GAAA;CAAA;EAAAP;EAAA;EAAA;CAAA;CAAA;EAAAI;EAAA;EAAA;CAAA;CAAA;EAAAE;EAAA;EAAA;CAAA;AAAA,GAAAd,GAAA,GAAA,KAAA,GAnCqCL,CAAY,GAAAoB,IAAAqB,IAAA,cAAAC,EAAA;CAAApB,cAAA;EAAA,MAAAhB,CAAA,GAAAqC,EAAA,MAAA,UAChCvC,CAAM,GAAAmC,EAAA;CAAA;AAAA,GAAAI,EAAAF,GAAAlC,GAAA,KAAA,CAAA,GAAAkC,GAAA;;;ACLxB,IAAA,IAAeI"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as e, n as t } from "./auth-
|
|
1
|
+
import { c as e, n as t } from "./auth-ClVI18ss.js";
|
|
2
2
|
import { n } from "./DialogProvider-ge2aA77F.js";
|
|
3
3
|
import { n as r, r as i } from "./components-PQfnwrHI.js";
|
|
4
4
|
import { i as a } from "./lit-C4H1jI4q.js";
|
|
@@ -187,6 +187,9 @@ h = (d = o({
|
|
|
187
187
|
set auth(e) {
|
|
188
188
|
v(O, this, e);
|
|
189
189
|
}
|
|
190
|
+
async connectedCallback() {
|
|
191
|
+
super.connectedCallback(), await this.auth.initialize();
|
|
192
|
+
}
|
|
190
193
|
willUpdate(e) {
|
|
191
194
|
super.willUpdate(e), e.has("signupUrl") && (this.auth.signupUrl = this.signupUrl ?? "https://solidproject.org/get_a_pod");
|
|
192
195
|
}
|
|
@@ -211,4 +214,4 @@ var k = E;
|
|
|
211
214
|
//#endregion
|
|
212
215
|
export { E as n, k as t };
|
|
213
216
|
|
|
214
|
-
//# sourceMappingURL=provider-
|
|
217
|
+
//# sourceMappingURL=provider-qd_4VaKB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"provider-qd_4VaKB.js","names":["customElement","WebComponent","provide","html","property","authContext","SolidAuth","DEFAULT_SIGNUP_URL","_classDecs","_Provider","_A","WeakMap","_B","_ref","_signupUrlDecs","type","String","reflect","_authDecs","context","Provider","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_signupUrl","_init_auth","_classPrivateFieldGet","signupUrl","v","_classPrivateFieldSet","auth","connectedCallback","initialize","willUpdate","changedProperties","has","render","_Provider2","e","c","_initClass","_applyDecs","default","Provider"],"sources":["../../src/components/provider/Provider.ts","../../src/components/provider/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { provide } from '@lit/context'\nimport { html, type PropertyValues } from 'lit'\nimport { property } from 'lit/decorators.js'\nimport { authContext } from '@/lib/auth'\nimport { SolidAuth, DEFAULT_SIGNUP_URL } from '@/lib/auth'\n\nimport '@/components/dialogs-root'\n\n@customElement('solid-ui-provider')\nexport default class Provider extends WebComponent {\n @property({ type: String, reflect: true })\n accessor signupUrl: string | undefined\n\n @provide({ context: authContext })\n private accessor auth = new SolidAuth()\n\n async connectedCallback () {\n super.connectedCallback()\n\n await this.auth.initialize()\n }\n\n protected willUpdate (changedProperties: PropertyValues<this>) {\n super.willUpdate(changedProperties)\n\n if (changedProperties.has('signupUrl')) {\n this.auth.signupUrl = this.signupUrl ?? DEFAULT_SIGNUP_URL\n }\n }\n\n protected render () {\n return html`\n <slot></slot>\n <solid-ui-dialogs-root></solid-ui-dialogs-root>\n `\n }\n}\n","import Provider from './Provider'\n\nexport { Provider }\nexport default Provider\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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MAAAC,EAAAJ,GAAA,CAAA;CAAAxB;CAAA;CAAA;AAAA,GAAA;CAAAI;CAAA;CAAA;AAAA,CAAA,GAAAV,GAAA,GAAA,KAAA,GA3BqCP,CAAY,GAAAwC,EAAA;;;ACPlD,IAAA,IAAeG"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as e, s as t } from "./auth-
|
|
2
|
-
import { i as n } from "./dialog-
|
|
1
|
+
import { c as e, s as t } from "./auth-ClVI18ss.js";
|
|
2
|
+
import { i as n } from "./dialog-kyHgc-uy.js";
|
|
3
3
|
import { n as r, r as i } from "./components-PQfnwrHI.js";
|
|
4
4
|
import { i as a } from "./lit-C4H1jI4q.js";
|
|
5
|
-
import "./button-
|
|
5
|
+
import "./button-B9-nlEpz.js";
|
|
6
6
|
//#region src/components/signup-button/SignupButton.ts
|
|
7
7
|
var o, s, c, l, u, d, f;
|
|
8
8
|
function p(e, t, n) {
|
|
@@ -208,4 +208,4 @@ var T = C;
|
|
|
208
208
|
//#endregion
|
|
209
209
|
export { C as n, T as t };
|
|
210
210
|
|
|
211
|
-
//# sourceMappingURL=signup-button-
|
|
211
|
+
//# sourceMappingURL=signup-button-BnA5p-uJ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signup-button-
|
|
1
|
+
{"version":3,"file":"signup-button-BnA5p-uJ.js","names":["customElement","WebComponent","consume","html","authContext","DEFAULT_AUTH_CONTEXT","_classDecs","_SignupButton","_A","WeakMap","_ref","_authDecs","context","subscribe","SignupButton","constructor","args","_classPrivateFieldInitSpec","_initProto","_init_auth","_classPrivateFieldGet","auth","v","_classPrivateFieldSet","render","onClick","click","signup","e","preventDefault","_SignupButton2","c","_initClass","_applyDecs","default","SignupButton"],"sources":["../../src/components/signup-button/SignupButton.ts","../../src/components/signup-button/index.ts"],"sourcesContent":["import { customElement, WebComponent } from '@/lib/components'\nimport { consume } from '@lit/context'\nimport { html } from 'lit'\nimport { authContext, AuthContext, DEFAULT_AUTH_CONTEXT } from '@/lib/auth'\n\nimport '@/components/button'\n\n@customElement('solid-ui-signup-button')\nexport default class SignupButton extends WebComponent {\n @consume({ context: authContext, subscribe: true })\n private accessor auth: AuthContext = DEFAULT_AUTH_CONTEXT\n\n protected render () {\n return html`\n <slot name=\"trigger\" @click=${this.onClick}>\n <solid-ui-button>\n <slot>\n Sign Up\n </slot>\n </solid-ui-button>\n </slot>\n `\n }\n\n click () {\n this.auth.signup()\n }\n\n private onClick (e: MouseEvent) {\n e.preventDefault()\n\n this.click()\n }\n}\n","import SignupButton from './SignupButton'\n\nexport { SignupButton }\nexport default SignupButton\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAK4BM,IAAA,CAE3BN,EAAc,wBAAwB,CAAC;AAAA,IAAAO,GAAAC,kBAAA,IAAAC,QAAA;AAAAC,KAAAC,IAErCT,EAAQ;CAAEU,SAASR;CAAaS,WAAW;AAAK,CAAC,GAAC,SAwBpDiB,IAAAhB,cAzByCb,EAAa;CAAAc,YAAA,GAAAC,GAAA;EAAAC,AAAA,MAAA,GAAAD,CAAA,GAAAC,EAAA,MAAAT,IAAAU,EAAA,IAAA,GAAAC,EAAA,MAEhBd,CAAoB,EAAA;CAAA;CAAA,KAAAK,KAAA;EAAA,OAAAU,EAAAZ,GAAA,IAAA;CAAA;CAAA,IAAxCa,KAAIC,GAAA;EAAAC,EAAAf,GAAA,MAAAc,CAAA;CAAA;CAEXE,SAAU;EAClB,OAAOrB,CAAI;oCACqB,KAAKsB,QAAO;;;;;;;;CAQ9C;CAEAC,QAAS;EACP,KAAKL,KAAKM,OAAO;CACnB;CAEQF,QAASG,GAAe;EAG9B,AAFAA,EAAEC,eAAe,GAEjB,KAAKH,MAAM;CACb;AACF,GAAC,CAAAE,GAAA,CAAAT,GAAAD,IAAAa,GAAA,CAAAxB,GAAAyB,MAAAC,EAAAH,GAAA,CAAA;CAAAnB;CAAA;CAAA;AAAA,CAAA,GAAAL,GAAA,GAAA,KAAA,GAzByCL,CAAY,GAAA+B,EAAA;;;ACLtD,IAAA,IAAeG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as e, i as t, n, r, t as i } from "./rolldown-runtime-B1bRi_D7.js";
|
|
2
2
|
import { A as a, C as o, D as s, E as c, F as l, I as u, L as d, M as f, N as p, O as m, P as h, R as g, S as _, T as v, _ as y, a as b, b as x, c as S, d as C, f as w, g as T, h as E, i as D, j as O, k, l as ee, m as A, n as te, o as ne, p as j, r as re, s as ie, t as ae, u as oe, v as se, w as ce, x as le, y as ue, z as de } from "./solid-logic.esm-BrMdCG2_.js";
|
|
3
3
|
import { i as fe, n as pe, r as me, t as he } from "./headerFooterHelpers-CPd5d20q.js";
|
|
4
|
-
import "./auth-
|
|
4
|
+
import "./auth-ClVI18ss.js";
|
|
5
5
|
import "./components-PQfnwrHI.js";
|
|
6
6
|
//#region src/lib/log.ts
|
|
7
7
|
var ge = /* @__PURE__ */ r({
|
|
@@ -16000,4 +16000,4 @@ var wu = /* @__PURE__ */ r({}), Tu = typeof window < "u" ? window.document : nul
|
|
|
16000
16000
|
//#endregion
|
|
16001
16001
|
export { ge as C, Ke as S, qi as _, Ql as a, U as b, zl as c, eo as d, Qa as f, Ba as g, za as h, cu as i, tl as l, Ua as m, wu as n, Zl as o, Ka as p, xu as r, Bl as s, Tu as t, Yc as u, Wi as v, V as x, Ar as y };
|
|
16002
16002
|
|
|
16003
|
-
//# sourceMappingURL=src-
|
|
16003
|
+
//# sourceMappingURL=src-DJOb1wMf.js.map
|