@urnetwork/elements 0.0.1-beta.4 → 0.0.1-beta.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/dist/components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as s, a as t, b as o, c as e, I, d as c, e as T, f as i, g as r, h as u, i as S, j as B, L as N, M as m, k as b, l, S as p, m as A, T as L, n as M } from "./selected-location-
|
|
1
|
+
import { B as s, a as t, b as o, c as e, I, d as c, e as T, f as i, g as r, h as u, i as S, j as B, L as N, M as m, k as b, l, S as p, m as A, T as L, n as M } from "./selected-location-Bz_81KoS.js";
|
|
2
2
|
export {
|
|
3
3
|
s as BUTTON_TYPES,
|
|
4
4
|
t as BUTTON_VARIANTS,
|
package/dist/react.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as e from "react";
|
|
3
3
|
import { createComponent as a } from "@lit/react";
|
|
4
|
-
import { c as u, j as m, n as l, b as i, h as I, e as U, f as p, M as N, k as d, l as f, S as k, L as B } from "./selected-location-
|
|
5
|
-
import { B as J, a as K, I as Q, T as W } from "./selected-location-
|
|
4
|
+
import { c as u, j as m, n as l, b as i, h as I, e as U, f as p, M as N, k as d, l as f, S as k, L as B } from "./selected-location-Bz_81KoS.js";
|
|
5
|
+
import { B as J, a as K, I as Q, T as W } from "./selected-location-Bz_81KoS.js";
|
|
6
6
|
const g = a({
|
|
7
7
|
tagName: "ur-button",
|
|
8
8
|
elementClass: u,
|
|
@@ -40,7 +40,7 @@ const ut = (i) => new dt(typeof i == "string" ? i : i + "", void 0, rt), ft = (i
|
|
|
40
40
|
const o = document.createElement("style"), r = D.litNonce;
|
|
41
41
|
r !== void 0 && o.setAttribute("nonce", r), o.textContent = e.cssText, i.appendChild(o);
|
|
42
42
|
}
|
|
43
|
-
},
|
|
43
|
+
}, Y = V ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
|
|
44
44
|
let e = "";
|
|
45
45
|
for (const o of t.cssRules) e += o.cssText;
|
|
46
46
|
return ut(e);
|
|
@@ -50,7 +50,7 @@ const ut = (i) => new dt(typeof i == "string" ? i : i + "", void 0, rt), ft = (i
|
|
|
50
50
|
* Copyright 2017 Google LLC
|
|
51
51
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
52
52
|
*/
|
|
53
|
-
const { is: vt, defineProperty: mt, getOwnPropertyDescriptor: gt, getOwnPropertyNames: bt, getOwnPropertySymbols: yt, getPrototypeOf: wt } = Object, y = globalThis,
|
|
53
|
+
const { is: vt, defineProperty: mt, getOwnPropertyDescriptor: gt, getOwnPropertyNames: bt, getOwnPropertySymbols: yt, getPrototypeOf: wt } = Object, y = globalThis, X = y.trustedTypes, Ct = X ? X.emptyScript : "", T = y.reactiveElementPolyfillSupport, E = (i, t) => i, H = { toAttribute(i, t) {
|
|
54
54
|
switch (t) {
|
|
55
55
|
case Boolean:
|
|
56
56
|
i = i ? Ct : null;
|
|
@@ -134,8 +134,8 @@ class M extends HTMLElement {
|
|
|
134
134
|
const e = [];
|
|
135
135
|
if (Array.isArray(t)) {
|
|
136
136
|
const o = new Set(t.flat(1 / 0).reverse());
|
|
137
|
-
for (const r of o) e.unshift(
|
|
138
|
-
} else t !== void 0 && e.push(
|
|
137
|
+
for (const r of o) e.unshift(Y(r));
|
|
138
|
+
} else t !== void 0 && e.push(Y(t));
|
|
139
139
|
return e;
|
|
140
140
|
}
|
|
141
141
|
static _$Eu(t, e) {
|
|
@@ -455,8 +455,10 @@ const St = c`
|
|
|
455
455
|
display: none;
|
|
456
456
|
position: absolute;
|
|
457
457
|
left: 50%;
|
|
458
|
-
|
|
458
|
+
top: 50%;
|
|
459
|
+
transform: translate(-50%, -50%);
|
|
459
460
|
}
|
|
461
|
+
|
|
460
462
|
:host([loading]) .button-content {
|
|
461
463
|
visibility: hidden;
|
|
462
464
|
}
|
|
@@ -1520,8 +1522,8 @@ const Gt = c`
|
|
|
1520
1522
|
color: var(--ur-color-green);
|
|
1521
1523
|
}
|
|
1522
1524
|
`;
|
|
1523
|
-
var Jt = Object.defineProperty,
|
|
1524
|
-
for (var r = o > 1 ? void 0 : o ?
|
|
1525
|
+
var Jt = Object.defineProperty, Yt = Object.getOwnPropertyDescriptor, st = (i, t, e, o) => {
|
|
1526
|
+
for (var r = o > 1 ? void 0 : o ? Yt(t, e) : t, s = i.length - 1, l; s >= 0; s--)
|
|
1525
1527
|
(l = i[s]) && (r = (o ? l(t, e, r) : l(r)) || r);
|
|
1526
1528
|
return o && r && Jt(t, e, r), r;
|
|
1527
1529
|
};
|
|
@@ -1772,7 +1774,7 @@ function tt(i) {
|
|
|
1772
1774
|
const t = i.replace("#", ""), e = parseInt(t, 16);
|
|
1773
1775
|
return [e >> 16 & 255, e >> 8 & 255, e & 255];
|
|
1774
1776
|
}
|
|
1775
|
-
function
|
|
1777
|
+
function Xt(i, t, e) {
|
|
1776
1778
|
return "#" + [i, t, e].map((o) => {
|
|
1777
1779
|
const r = o.toString(16);
|
|
1778
1780
|
return r.length === 1 ? "0" + r : r;
|
|
@@ -1791,7 +1793,7 @@ function et(i, t) {
|
|
|
1791
1793
|
}
|
|
1792
1794
|
function te(i, t) {
|
|
1793
1795
|
const [e, o, r] = tt(i), [s, l, a] = tt(t), v = Math.round((e + s) / 2), B = Math.round((o + l) / 2), ht = Math.round((r + a) / 2);
|
|
1794
|
-
return
|
|
1796
|
+
return Xt(v, B, ht);
|
|
1795
1797
|
}
|
|
1796
1798
|
function lt(i) {
|
|
1797
1799
|
const t = i.toLowerCase();
|
package/package.json
CHANGED