@luzmo/lucero 0.0.11 → 0.0.13
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/components/accordion/index.cjs +6 -6
- package/components/accordion/index.js +7 -8
- package/components/action-bar/index.cjs +4 -4
- package/components/action-bar/index.js +8 -9
- package/components/action-button/index.cjs +2 -2
- package/components/action-button/index.js +3 -4
- package/components/action-group/index.cjs +1 -1
- package/components/action-group/index.js +1 -1
- package/components/action-group-Uimj-MJP.cjs +20 -0
- package/components/{action-group-Bf28z235.js → action-group-enfc-YnW.js} +7 -8
- package/components/action-menu/index.cjs +5 -5
- package/components/action-menu/index.js +6 -7
- package/components/{async-directive-FGzMycjH.js → async-directive-DWRUSKKF.js} +1 -1
- package/components/{async-directive-CV2MII86.cjs → async-directive-D_Ter1F8.cjs} +1 -1
- package/components/avatar/index.cjs +3 -3
- package/components/avatar/index.js +5 -6
- package/components/base-B7Pfl2if.cjs +40 -0
- package/components/base-CawdqE7p.js +666 -0
- package/components/button/index.cjs +2 -2
- package/components/button/index.js +6 -7
- package/components/{button-base-CDLQV7Vk.js → button-base-B7v4eeRh.js} +4 -5
- package/components/button-base-DmjYs2s9.cjs +25 -0
- package/components/button-group/index.cjs +1 -1
- package/components/button-group/index.js +7 -8
- package/components/checkbox/index.cjs +4 -4
- package/components/checkbox/index.js +3 -4
- package/components/{checkbox-mixin-DXUIwtea.js → checkbox-mixin-BFGTmw17.js} +10 -11
- package/components/{checkbox-mixin-DaXMsrtV.cjs → checkbox-mixin-DUhXwD46.cjs} +3 -3
- package/components/{clear-button-Dh2Mq0cc.js → clear-button-DgZmX5RX.js} +6 -7
- package/components/clear-button-KdrF2jaV.cjs +18 -0
- package/components/{close-button-BsYkXOVh.js → close-button-CFHQnbsK.js} +4 -5
- package/components/close-button-DVGUppyd.cjs +18 -0
- package/components/color-area/index.cjs +4 -4
- package/components/color-area/index.js +9 -10
- package/components/color-field/index.cjs +2 -2
- package/components/color-field/index.js +2 -3
- package/components/color-handle/index.cjs +2 -2
- package/components/color-handle/index.js +5 -6
- package/components/color-loupe/index.cjs +1 -1
- package/components/color-loupe/index.js +1 -1
- package/components/{color-loupe-BCfIVFkB.js → color-loupe-DxcqXoJ6.js} +3 -4
- package/components/color-loupe-SskbNeMp.cjs +56 -0
- package/components/color-menu/index.cjs +5 -5
- package/components/color-menu/index.js +5 -6
- package/components/color-picker/index.cjs +4 -4
- package/components/color-picker/index.js +9 -10
- package/components/color-slider/index.cjs +4 -4
- package/components/color-slider/index.js +5 -6
- package/components/{directive-helpers-C2vOfhFx.cjs → directive-helpers-TkFq2eZF.cjs} +1 -1
- package/components/{directive-helpers-BLDZnGQv.js → directive-helpers-nlQRAaQt.js} +1 -1
- package/components/divider/index.cjs +1 -1
- package/components/divider/index.js +5 -6
- package/components/field-group/index.cjs +1 -1
- package/components/field-group/index.js +1 -1
- package/components/{field-group-CwZULltm.js → field-group-DAhrTCfl.js} +5 -6
- package/components/field-group-DSY2HUoj.cjs +23 -0
- package/components/field-label/index.cjs +1 -1
- package/components/field-label/index.js +1 -1
- package/components/{field-label-C3HFlH91.js → field-label-CAFfGxEL.js} +6 -7
- package/components/field-label-CjsQ3ujK.cjs +25 -0
- package/components/{focusable-zn6qaMtV.cjs → focusable-DGWL1v1p.cjs} +1 -1
- package/components/{focusable-zT9NFFYs.js → focusable-cj2QhwDT.js} +1 -1
- package/components/icon/index.cjs +1 -1
- package/components/icon/index.js +4 -5
- package/components/{if-defined-Cv6xanXh.cjs → if-defined-B56xGmAg.cjs} +2 -2
- package/components/{if-defined-CYpcjGCb.js → if-defined-BSAr_4u4.js} +1 -1
- package/components/{index-C2qG2Sm8.js → index-CMvLpPKD.js} +7 -8
- package/components/{index-BYumXRH5.cjs → index-DnWavOZD.cjs} +15 -15
- package/components/index.cjs +1 -1
- package/components/index.js +16 -16
- package/components/infield-button/index.cjs +2 -2
- package/components/infield-button/index.js +3 -4
- package/components/label/index.cjs +1 -1
- package/components/label/index.js +4 -5
- package/components/{like-anchor-CmIcmz5k.cjs → like-anchor-Bmabl9ra.cjs} +4 -4
- package/components/{like-anchor-DoJWh4Uu.js → like-anchor-QBlvwFfT.js} +8 -9
- package/components/{manage-help-text-BzWK2v8i.js → manage-help-text-Cozl9Sgn.js} +6 -6
- package/components/{manage-help-text-BKlmmlgp.cjs → manage-help-text-OHXDgxyj.cjs} +2 -2
- package/components/menu/index.cjs +1 -1
- package/components/menu/index.js +1 -1
- package/components/multi-language-field/index.cjs +2 -2
- package/components/multi-language-field/index.js +6 -7
- package/components/number-field/index.cjs +4 -4
- package/components/number-field/index.js +15 -16
- package/components/{observe-slot-text-CP_EB97X.cjs → observe-slot-text-CrYB2Pj-.cjs} +1 -1
- package/components/{observe-slot-text-BG0H7bQK.js → observe-slot-text-ggb4kKgY.js} +1 -1
- package/components/overlay/index.cjs +7 -7
- package/components/overlay/index.js +33 -35
- package/components/{overlay-D7EbnA6E.js → overlay-CJ9by37f.js} +8 -9
- package/components/overlay-Deh6Ki6I.cjs +47 -0
- package/components/{pending-state-BHCOneQ7.cjs → pending-state-Do522lTd.cjs} +2 -2
- package/components/{pending-state-DHXuiejX.js → pending-state-TJj1x9xn.js} +2 -2
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -2
- package/components/{picker-ChtCbFLB.js → picker-833Apxe4.js} +19 -21
- package/components/{picker-CLKdhX0B.cjs → picker-DDx8ii73.cjs} +25 -25
- package/components/popover/index.cjs +1 -1
- package/components/popover/index.js +1 -1
- package/components/popover-BGOgXaka.cjs +30 -0
- package/components/{popover-bg0EQQ8p.js → popover-DlkzrLpl.js} +5 -6
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/{progress-circle-BT2qW7LK.js → progress-circle-Be24kv6B.js} +5 -6
- package/components/progress-circle-NNbCMK2i.cjs +33 -0
- package/components/radio/index.cjs +2 -2
- package/components/radio/index.js +6 -7
- package/components/search/index.cjs +8 -8
- package/components/search/index.js +3 -4
- package/components/{sized-mixin-PyCYpyQq.js → sized-mixin-BxMraZLS.js} +1 -1
- package/components/{sized-mixin-BEemErtP.cjs → sized-mixin-D9LkrMjb.cjs} +1 -1
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.js +5 -6
- package/components/{state-DHaIxrnQ.cjs → state-C5I1gP3G.cjs} +1 -1
- package/components/{state-BG4JQVA1.js → state-CYxk12SV.js} +1 -1
- package/components/{streaming-listener-wjMvsv4N.js → streaming-listener-CCalHg57.js} +2 -2
- package/components/streaming-listener-KVex1WWB.cjs +18 -0
- package/components/{style-map-BqvQDFJt.js → style-map-Ct2LiEds.js} +1 -1
- package/components/{style-map-BjBGQ_u3.cjs → style-map-uMq-yDJ3.cjs} +2 -2
- package/components/swatch/index.cjs +7 -7
- package/components/swatch/index.js +4 -5
- package/components/switch/index.cjs +2 -2
- package/components/switch/index.js +4 -5
- package/components/tags/index.cjs +4 -4
- package/components/tags/index.js +11 -12
- package/components/text-field/index.cjs +3 -3
- package/components/text-field/index.js +7 -8
- package/components/{text-field-CtUKbEQN.cjs → text-field-5_ev9way.cjs} +15 -15
- package/components/{text-field-7ITo3Lac.js → text-field-CvKSS59x.js} +27 -29
- package/components/toast/index.cjs +11 -11
- package/components/toast/index.js +4 -5
- package/components/tooltip/index.cjs +4 -4
- package/components/tooltip/index.js +5 -6
- package/components/unit-input/index.cjs +3 -3
- package/components/unit-input/index.js +5 -6
- package/components/utils.cjs +1 -1
- package/components/utils.js +4 -4
- package/package.json +1 -1
- package/components/action-group-BBoV2VL9.cjs +0 -20
- package/components/base-DNrOP9L3.js +0 -391
- package/components/base-DzbGOAPo.cjs +0 -30
- package/components/button-base-C1ceE1LF.cjs +0 -25
- package/components/clear-button-pnT9_M8M.cjs +0 -18
- package/components/close-button-CPtjRQ0R.cjs +0 -18
- package/components/color-loupe-DIBrhG1Y.cjs +0 -56
- package/components/field-group-eICRTHzI.cjs +0 -23
- package/components/field-label-DOIVL4S4.cjs +0 -25
- package/components/lit-html-B3ugcwD9.js +0 -248
- package/components/lit-html-p4Oxv2-5.cjs +0 -24
- package/components/overlay-B1JDPmUJ.cjs +0 -47
- package/components/popover-CdkB6GFb.cjs +0 -30
- package/components/progress-circle-DTeqfeun.cjs +0 -33
- package/components/streaming-listener-BQxEN4sL.cjs +0 -18
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
import { LitElement as w } from "lit";
|
|
19
|
-
/**
|
|
20
|
-
* @license
|
|
21
|
-
* Copyright 2019 Google LLC
|
|
22
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/
|
|
24
|
-
const u = globalThis, y = u.ShadowRoot && (u.ShadyCSS === void 0 || u.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, v = Symbol(), $ = /* @__PURE__ */ new WeakMap();
|
|
25
|
-
let P = class {
|
|
26
|
-
constructor(t, e, s) {
|
|
27
|
-
if (this._$cssResult$ = !0, s !== v) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
28
|
-
this.cssText = t, this.t = e;
|
|
29
|
-
}
|
|
30
|
-
get styleSheet() {
|
|
31
|
-
let t = this.o;
|
|
32
|
-
const e = this.t;
|
|
33
|
-
if (y && t === void 0) {
|
|
34
|
-
const s = e !== void 0 && e.length === 1;
|
|
35
|
-
s && (t = $.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && $.set(e, t));
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
}
|
|
39
|
-
toString() {
|
|
40
|
-
return this.cssText;
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const U = (r) => new P(typeof r == "string" ? r : r + "", void 0, v), C = (r, t) => {
|
|
44
|
-
if (y) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
45
|
-
else for (const e of t) {
|
|
46
|
-
const s = document.createElement("style"), i = u.litNonce;
|
|
47
|
-
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
|
48
|
-
}
|
|
49
|
-
}, S = y ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
|
50
|
-
let e = "";
|
|
51
|
-
for (const s of t.cssRules) e += s.cssText;
|
|
52
|
-
return U(e);
|
|
53
|
-
})(r) : r;
|
|
54
|
-
/**
|
|
55
|
-
* @license
|
|
56
|
-
* Copyright 2017 Google LLC
|
|
57
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/
|
|
59
|
-
const { is: A, defineProperty: O, getOwnPropertyDescriptor: M, getOwnPropertyNames: R, getOwnPropertySymbols: T, getPrototypeOf: L } = Object, h = globalThis, _ = h.trustedTypes, k = _ ? _.emptyScript : "", m = h.reactiveElementPolyfillSupport, d = (r, t) => r, p = { toAttribute(r, t) {
|
|
60
|
-
switch (t) {
|
|
61
|
-
case Boolean:
|
|
62
|
-
r = r ? k : null;
|
|
63
|
-
break;
|
|
64
|
-
case Object:
|
|
65
|
-
case Array:
|
|
66
|
-
r = r == null ? r : JSON.stringify(r);
|
|
67
|
-
}
|
|
68
|
-
return r;
|
|
69
|
-
}, fromAttribute(r, t) {
|
|
70
|
-
let e = r;
|
|
71
|
-
switch (t) {
|
|
72
|
-
case Boolean:
|
|
73
|
-
e = r !== null;
|
|
74
|
-
break;
|
|
75
|
-
case Number:
|
|
76
|
-
e = r === null ? null : Number(r);
|
|
77
|
-
break;
|
|
78
|
-
case Object:
|
|
79
|
-
case Array:
|
|
80
|
-
try {
|
|
81
|
-
e = JSON.parse(r);
|
|
82
|
-
} catch {
|
|
83
|
-
e = null;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
return e;
|
|
87
|
-
} }, g = (r, t) => !A(r, t), b = { attribute: !0, type: String, converter: p, reflect: !1, hasChanged: g };
|
|
88
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), h.litPropertyMetadata ?? (h.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
89
|
-
class l extends HTMLElement {
|
|
90
|
-
static addInitializer(t) {
|
|
91
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
92
|
-
}
|
|
93
|
-
static get observedAttributes() {
|
|
94
|
-
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
|
95
|
-
}
|
|
96
|
-
static createProperty(t, e = b) {
|
|
97
|
-
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
98
|
-
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
|
99
|
-
i !== void 0 && O(this.prototype, t, i);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
static getPropertyDescriptor(t, e, s) {
|
|
103
|
-
const { get: i, set: n } = M(this.prototype, t) ?? { get() {
|
|
104
|
-
return this[e];
|
|
105
|
-
}, set(o) {
|
|
106
|
-
this[e] = o;
|
|
107
|
-
} };
|
|
108
|
-
return { get() {
|
|
109
|
-
return i == null ? void 0 : i.call(this);
|
|
110
|
-
}, set(o) {
|
|
111
|
-
const a = i == null ? void 0 : i.call(this);
|
|
112
|
-
n.call(this, o), this.requestUpdate(t, a, s);
|
|
113
|
-
}, configurable: !0, enumerable: !0 };
|
|
114
|
-
}
|
|
115
|
-
static getPropertyOptions(t) {
|
|
116
|
-
return this.elementProperties.get(t) ?? b;
|
|
117
|
-
}
|
|
118
|
-
static _$Ei() {
|
|
119
|
-
if (this.hasOwnProperty(d("elementProperties"))) return;
|
|
120
|
-
const t = L(this);
|
|
121
|
-
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
122
|
-
}
|
|
123
|
-
static finalize() {
|
|
124
|
-
if (this.hasOwnProperty(d("finalized"))) return;
|
|
125
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(d("properties"))) {
|
|
126
|
-
const e = this.properties, s = [...R(e), ...T(e)];
|
|
127
|
-
for (const i of s) this.createProperty(i, e[i]);
|
|
128
|
-
}
|
|
129
|
-
const t = this[Symbol.metadata];
|
|
130
|
-
if (t !== null) {
|
|
131
|
-
const e = litPropertyMetadata.get(t);
|
|
132
|
-
if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
|
|
133
|
-
}
|
|
134
|
-
this._$Eh = /* @__PURE__ */ new Map();
|
|
135
|
-
for (const [e, s] of this.elementProperties) {
|
|
136
|
-
const i = this._$Eu(e, s);
|
|
137
|
-
i !== void 0 && this._$Eh.set(i, e);
|
|
138
|
-
}
|
|
139
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
|
140
|
-
}
|
|
141
|
-
static finalizeStyles(t) {
|
|
142
|
-
const e = [];
|
|
143
|
-
if (Array.isArray(t)) {
|
|
144
|
-
const s = new Set(t.flat(1 / 0).reverse());
|
|
145
|
-
for (const i of s) e.unshift(S(i));
|
|
146
|
-
} else t !== void 0 && e.push(S(t));
|
|
147
|
-
return e;
|
|
148
|
-
}
|
|
149
|
-
static _$Eu(t, e) {
|
|
150
|
-
const s = e.attribute;
|
|
151
|
-
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
|
152
|
-
}
|
|
153
|
-
constructor() {
|
|
154
|
-
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
155
|
-
}
|
|
156
|
-
_$Ev() {
|
|
157
|
-
var t;
|
|
158
|
-
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
|
159
|
-
}
|
|
160
|
-
addController(t) {
|
|
161
|
-
var e;
|
|
162
|
-
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
|
163
|
-
}
|
|
164
|
-
removeController(t) {
|
|
165
|
-
var e;
|
|
166
|
-
(e = this._$EO) == null || e.delete(t);
|
|
167
|
-
}
|
|
168
|
-
_$E_() {
|
|
169
|
-
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
|
170
|
-
for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
|
171
|
-
t.size > 0 && (this._$Ep = t);
|
|
172
|
-
}
|
|
173
|
-
createRenderRoot() {
|
|
174
|
-
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
175
|
-
return C(t, this.constructor.elementStyles), t;
|
|
176
|
-
}
|
|
177
|
-
connectedCallback() {
|
|
178
|
-
var t;
|
|
179
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
|
180
|
-
var s;
|
|
181
|
-
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
enableUpdating(t) {
|
|
185
|
-
}
|
|
186
|
-
disconnectedCallback() {
|
|
187
|
-
var t;
|
|
188
|
-
(t = this._$EO) == null || t.forEach((e) => {
|
|
189
|
-
var s;
|
|
190
|
-
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
attributeChangedCallback(t, e, s) {
|
|
194
|
-
this._$AK(t, s);
|
|
195
|
-
}
|
|
196
|
-
_$EC(t, e) {
|
|
197
|
-
var n;
|
|
198
|
-
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
|
199
|
-
if (i !== void 0 && s.reflect === !0) {
|
|
200
|
-
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : p).toAttribute(e, s.type);
|
|
201
|
-
this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
_$AK(t, e) {
|
|
205
|
-
var n;
|
|
206
|
-
const s = this.constructor, i = s._$Eh.get(t);
|
|
207
|
-
if (i !== void 0 && this._$Em !== i) {
|
|
208
|
-
const o = s.getPropertyOptions(i), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : p;
|
|
209
|
-
this._$Em = i, this[i] = a.fromAttribute(e, o.type), this._$Em = null;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
requestUpdate(t, e, s) {
|
|
213
|
-
if (t !== void 0) {
|
|
214
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? g)(this[t], e)) return;
|
|
215
|
-
this.P(t, e, s);
|
|
216
|
-
}
|
|
217
|
-
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
|
218
|
-
}
|
|
219
|
-
P(t, e, s) {
|
|
220
|
-
this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
|
221
|
-
}
|
|
222
|
-
async _$ET() {
|
|
223
|
-
this.isUpdatePending = !0;
|
|
224
|
-
try {
|
|
225
|
-
await this._$ES;
|
|
226
|
-
} catch (e) {
|
|
227
|
-
Promise.reject(e);
|
|
228
|
-
}
|
|
229
|
-
const t = this.scheduleUpdate();
|
|
230
|
-
return t != null && await t, !this.isUpdatePending;
|
|
231
|
-
}
|
|
232
|
-
scheduleUpdate() {
|
|
233
|
-
return this.performUpdate();
|
|
234
|
-
}
|
|
235
|
-
performUpdate() {
|
|
236
|
-
var s;
|
|
237
|
-
if (!this.isUpdatePending) return;
|
|
238
|
-
if (!this.hasUpdated) {
|
|
239
|
-
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
240
|
-
for (const [n, o] of this._$Ep) this[n] = o;
|
|
241
|
-
this._$Ep = void 0;
|
|
242
|
-
}
|
|
243
|
-
const i = this.constructor.elementProperties;
|
|
244
|
-
if (i.size > 0) for (const [n, o] of i) o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
|
|
245
|
-
}
|
|
246
|
-
let t = !1;
|
|
247
|
-
const e = this._$AL;
|
|
248
|
-
try {
|
|
249
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
|
|
250
|
-
var n;
|
|
251
|
-
return (n = i.hostUpdate) == null ? void 0 : n.call(i);
|
|
252
|
-
}), this.update(e)) : this._$EU();
|
|
253
|
-
} catch (i) {
|
|
254
|
-
throw t = !1, this._$EU(), i;
|
|
255
|
-
}
|
|
256
|
-
t && this._$AE(e);
|
|
257
|
-
}
|
|
258
|
-
willUpdate(t) {
|
|
259
|
-
}
|
|
260
|
-
_$AE(t) {
|
|
261
|
-
var e;
|
|
262
|
-
(e = this._$EO) == null || e.forEach((s) => {
|
|
263
|
-
var i;
|
|
264
|
-
return (i = s.hostUpdated) == null ? void 0 : i.call(s);
|
|
265
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
|
266
|
-
}
|
|
267
|
-
_$EU() {
|
|
268
|
-
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
|
269
|
-
}
|
|
270
|
-
get updateComplete() {
|
|
271
|
-
return this.getUpdateComplete();
|
|
272
|
-
}
|
|
273
|
-
getUpdateComplete() {
|
|
274
|
-
return this._$ES;
|
|
275
|
-
}
|
|
276
|
-
shouldUpdate(t) {
|
|
277
|
-
return !0;
|
|
278
|
-
}
|
|
279
|
-
update(t) {
|
|
280
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
|
|
281
|
-
}
|
|
282
|
-
updated(t) {
|
|
283
|
-
}
|
|
284
|
-
firstUpdated(t) {
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
l.elementStyles = [], l.shadowRootOptions = { mode: "open" }, l[d("elementProperties")] = /* @__PURE__ */ new Map(), l[d("finalized")] = /* @__PURE__ */ new Map(), m == null || m({ ReactiveElement: l }), (h.reactiveElementVersions ?? (h.reactiveElementVersions = [])).push("2.0.4");
|
|
288
|
-
/**
|
|
289
|
-
* @license
|
|
290
|
-
* Copyright 2017 Google LLC
|
|
291
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
292
|
-
*/
|
|
293
|
-
const z = { attribute: !0, type: String, converter: p, reflect: !1, hasChanged: g }, x = (r = z, t, e) => {
|
|
294
|
-
const { kind: s, metadata: i } = e;
|
|
295
|
-
let n = globalThis.litPropertyMetadata.get(i);
|
|
296
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), n.set(e.name, r), s === "accessor") {
|
|
297
|
-
const { name: o } = e;
|
|
298
|
-
return { set(a) {
|
|
299
|
-
const c = t.get.call(this);
|
|
300
|
-
t.set.call(this, a), this.requestUpdate(o, c, r);
|
|
301
|
-
}, init(a) {
|
|
302
|
-
return a !== void 0 && this.P(o, void 0, r), a;
|
|
303
|
-
} };
|
|
304
|
-
}
|
|
305
|
-
if (s === "setter") {
|
|
306
|
-
const { name: o } = e;
|
|
307
|
-
return function(a) {
|
|
308
|
-
const c = this[o];
|
|
309
|
-
t.call(this, a), this.requestUpdate(o, c, r);
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
throw Error("Unsupported decorator location: " + s);
|
|
313
|
-
};
|
|
314
|
-
function H(r) {
|
|
315
|
-
return (t, e) => typeof e == "object" ? x(r, t, e) : ((s, i, n) => {
|
|
316
|
-
const o = i.hasOwnProperty(n);
|
|
317
|
-
return i.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
|
318
|
-
})(r, t, e);
|
|
319
|
-
}
|
|
320
|
-
const E = /* @__PURE__ */ new Set(), D = () => {
|
|
321
|
-
const r = document.documentElement.dir === "rtl" ? document.documentElement.dir : "ltr";
|
|
322
|
-
E.forEach((t) => {
|
|
323
|
-
t.setAttribute("dir", r);
|
|
324
|
-
});
|
|
325
|
-
}, N = new MutationObserver(D);
|
|
326
|
-
N.observe(document.documentElement, {
|
|
327
|
-
attributes: !0,
|
|
328
|
-
attributeFilter: ["dir"]
|
|
329
|
-
});
|
|
330
|
-
const j = (r) => r.startManagingContentDirection !== void 0 || r.tagName === "LUZMO-THEME";
|
|
331
|
-
function q(r) {
|
|
332
|
-
class t extends r {
|
|
333
|
-
/**
|
|
334
|
-
* @private
|
|
335
|
-
*/
|
|
336
|
-
get isLTR() {
|
|
337
|
-
return this.dir === "ltr";
|
|
338
|
-
}
|
|
339
|
-
hasVisibleFocusInTree() {
|
|
340
|
-
const i = ((n = document) => {
|
|
341
|
-
var c;
|
|
342
|
-
let o = n.activeElement;
|
|
343
|
-
for (; o != null && o.shadowRoot && o.shadowRoot.activeElement; )
|
|
344
|
-
o = o.shadowRoot.activeElement;
|
|
345
|
-
const a = o ? [o] : [];
|
|
346
|
-
for (; o; ) {
|
|
347
|
-
const f = o.assignedSlot || o.parentElement || ((c = o.getRootNode()) == null ? void 0 : c.host);
|
|
348
|
-
f && a.push(f), o = f;
|
|
349
|
-
}
|
|
350
|
-
return a;
|
|
351
|
-
})(this.getRootNode())[0];
|
|
352
|
-
if (!i)
|
|
353
|
-
return !1;
|
|
354
|
-
try {
|
|
355
|
-
return i.matches(":focus-visible") || i.matches(".focus-visible");
|
|
356
|
-
} catch {
|
|
357
|
-
return i.matches(".focus-visible");
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
connectedCallback() {
|
|
361
|
-
if (!this.hasAttribute("dir")) {
|
|
362
|
-
let s = this.assignedSlot || this.parentNode;
|
|
363
|
-
for (; s !== document.documentElement && !j(s); )
|
|
364
|
-
s = s.assignedSlot || // step into the shadow DOM of the parent of a slotted node
|
|
365
|
-
s.parentNode || // DOM Element detected
|
|
366
|
-
s.host;
|
|
367
|
-
if (this.dir = s.dir === "rtl" ? s.dir : this.dir || "ltr", s === document.documentElement)
|
|
368
|
-
E.add(this);
|
|
369
|
-
else {
|
|
370
|
-
const { localName: i } = s;
|
|
371
|
-
i.search("-") > -1 && !customElements.get(i) ? customElements.whenDefined(i).then(() => {
|
|
372
|
-
s.startManagingContentDirection(this);
|
|
373
|
-
}) : s.startManagingContentDirection(this);
|
|
374
|
-
}
|
|
375
|
-
this._dirParent = s;
|
|
376
|
-
}
|
|
377
|
-
super.connectedCallback();
|
|
378
|
-
}
|
|
379
|
-
disconnectedCallback() {
|
|
380
|
-
super.disconnectedCallback(), this._dirParent && (this._dirParent === document.documentElement ? E.delete(this) : this._dirParent.stopManagingContentDirection(this), this.removeAttribute("dir"));
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
return t;
|
|
384
|
-
}
|
|
385
|
-
class I extends q(w) {
|
|
386
|
-
}
|
|
387
|
-
export {
|
|
388
|
-
q as L,
|
|
389
|
-
I as a,
|
|
390
|
-
H as n
|
|
391
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
"use strict";const P=require("lit");/**
|
|
19
|
-
* @license
|
|
20
|
-
* Copyright 2019 Google LLC
|
|
21
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
22
|
-
*/const u=globalThis,y=u.ShadowRoot&&(u.ShadyCSS===void 0||u.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,v=Symbol(),$=new WeakMap;let U=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==v)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(y&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=$.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&$.set(e,t))}return t}toString(){return this.cssText}};const C=r=>new U(typeof r=="string"?r:r+"",void 0,v),A=(r,t)=>{if(y)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const s=document.createElement("style"),i=u.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},S=y?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return C(e)})(r):r;/**
|
|
23
|
-
* @license
|
|
24
|
-
* Copyright 2017 Google LLC
|
|
25
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
26
|
-
*/const{is:O,defineProperty:M,getOwnPropertyDescriptor:R,getOwnPropertyNames:L,getOwnPropertySymbols:T,getPrototypeOf:z}=Object,h=globalThis,_=h.trustedTypes,k=_?_.emptyScript:"",m=h.reactiveElementPolyfillSupport,d=(r,t)=>r,p={toAttribute(r,t){switch(t){case Boolean:r=r?k:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},g=(r,t)=>!O(r,t),b={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:g};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),h.litPropertyMetadata??(h.litPropertyMetadata=new WeakMap);class l extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=b){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&M(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:n}=R(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return i==null?void 0:i.call(this)},set(o){const a=i==null?void 0:i.call(this);n.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=z(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d("properties"))){const e=this.properties,s=[...L(e),...T(e)];for(const i of s)this.createProperty(i,e[i])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(S(i))}else t!==void 0&&e.push(S(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return A(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var n;const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){const o=(((n=s.converter)==null?void 0:n.toAttribute)!==void 0?s.converter:p).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){var n;const s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){const o=s.getPropertyOptions(i),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:p;this._$Em=i,this[i]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??g)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const i=this.constructor.elementProperties;if(i.size>0)for(const[n,o]of i)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(i=>{var n;return(n=i.hostUpdate)==null?void 0:n.call(i)}),this.update(e)):this._$EU()}catch(i){throw t=!1,this._$EU(),i}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var i;return(i=s.hostUpdated)==null?void 0:i.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}l.elementStyles=[],l.shadowRootOptions={mode:"open"},l[d("elementProperties")]=new Map,l[d("finalized")]=new Map,m==null||m({ReactiveElement:l}),(h.reactiveElementVersions??(h.reactiveElementVersions=[])).push("2.0.4");/**
|
|
27
|
-
* @license
|
|
28
|
-
* Copyright 2017 Google LLC
|
|
29
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
|
-
*/const x={attribute:!0,type:String,converter:p,reflect:!1,hasChanged:g},D=(r=x,t,e)=>{const{kind:s,metadata:i}=e;let n=globalThis.litPropertyMetadata.get(i);if(n===void 0&&globalThis.litPropertyMetadata.set(i,n=new Map),n.set(e.name,r),s==="accessor"){const{name:o}=e;return{set(a){const c=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,c,r)},init(a){return a!==void 0&&this.P(o,void 0,r),a}}}if(s==="setter"){const{name:o}=e;return function(a){const c=this[o];t.call(this,a),this.requestUpdate(o,c,r)}}throw Error("Unsupported decorator location: "+s)};function N(r){return(t,e)=>typeof e=="object"?D(r,t,e):((s,i,n)=>{const o=i.hasOwnProperty(n);return i.constructor.createProperty(n,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(i,n):void 0})(r,t,e)}const E=new Set,j=()=>{const r=document.documentElement.dir==="rtl"?document.documentElement.dir:"ltr";E.forEach(t=>{t.setAttribute("dir",r)})},q=new MutationObserver(j);q.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const F=r=>r.startManagingContentDirection!==void 0||r.tagName==="LUZMO-THEME";function w(r){class t extends r{get isLTR(){return this.dir==="ltr"}hasVisibleFocusInTree(){const i=((n=document)=>{var c;let o=n.activeElement;for(;o!=null&&o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;const a=o?[o]:[];for(;o;){const f=o.assignedSlot||o.parentElement||((c=o.getRootNode())==null?void 0:c.host);f&&a.push(f),o=f}return a})(this.getRootNode())[0];if(!i)return!1;try{return i.matches(":focus-visible")||i.matches(".focus-visible")}catch{return i.matches(".focus-visible")}}connectedCallback(){if(!this.hasAttribute("dir")){let s=this.assignedSlot||this.parentNode;for(;s!==document.documentElement&&!F(s);)s=s.assignedSlot||s.parentNode||s.host;if(this.dir=s.dir==="rtl"?s.dir:this.dir||"ltr",s===document.documentElement)E.add(this);else{const{localName:i}=s;i.search("-")>-1&&!customElements.get(i)?customElements.whenDefined(i).then(()=>{s.startManagingContentDirection(this)}):s.startManagingContentDirection(this)}this._dirParent=s}super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this._dirParent&&(this._dirParent===document.documentElement?E.delete(this):this._dirParent.stopManagingContentDirection(this),this.removeAttribute("dir"))}}return t}class B extends w(P.LitElement){}exports.LuzmoElement=B;exports.LuzmoMixin=w;exports.n=N;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
"use strict";const i=require("lit"),h=require("./base-DzbGOAPo.cjs"),c=require("./query-BL-TJj7K.cjs"),u=require("./focusable-zn6qaMtV.cjs"),p=require("./like-anchor-CmIcmz5k.cjs"),d=require("./observe-slot-text-CP_EB97X.cjs"),b=":host{display:inline-flex;vertical-align:top;--parent-element-progress-circle-size: 18px;--icon-size: 18px}:host([dir]){-webkit-appearance:none}:host([disabled]){pointer-events:none;cursor:auto}#button{position:absolute;top:0;right:0;bottom:0;left:0}::slotted(luzmo-overlay),::slotted(luzmo-tooltip){position:absolute}:host:after{pointer-events:none}::slotted(*){pointer-events:none}::slotted([slot=icon]){--parent-element-icon-vertical-align: 0}slot[name=icon]::slotted(svg),slot[name=icon]::slotted(img){fill:currentcolor;stroke:currentcolor;block-size:var(--luzmo-button-icon-size, var(--icon-size));inline-size:var(--luzmo-button-icon-size, var(--icon-size))}[icon-only]+#label{display:contents}:host([size=s]){--parent-element-progress-circle-size: 16px;--icon-size: 16px}:host([size=l]){--parent-element-progress-circle-size: 20px;--icon-size: 20px}:host([size=xl]){--parent-element-progress-circle-size: 22px;--icon-size: 22px}";var f=Object.defineProperty,l=(n,e,t,m)=>{for(var s=void 0,o=n.length-1,a;o>=0;o--)(a=n[o])&&(s=a(e,t,s)||s);return s&&f(e,t,s),s};class r extends d.ObserveSlotText(p.LikeAnchor(u.Focusable),"",["luzmo-overlay,luzmo-tooltip"]){constructor(){super(),this.active=!1,this.type="button",this.proxyFocus=this.proxyFocus.bind(this),this.addEventListener("click",this.handleClickCapture,{capture:!0})}static get styles(){return[i.unsafeCSS(b)]}get focusElement(){return this}get hasLabel(){return this.slotHasContent}get buttonContent(){return[i.html` <slot name="icon" ?icon-only=${!this.hasLabel}></slot> `,i.html`
|
|
19
|
-
<span id="label">
|
|
20
|
-
<slot @slotchange=${this.manageTextObservedSlot}></slot>
|
|
21
|
-
</span>
|
|
22
|
-
`]}handleClickCapture(e){if(this.disabled)return e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation(),!1;this.shouldProxyClick()}proxyFocus(){this.focus()}shouldProxyClick(){let e=!1;if(this.anchorElement)this.anchorElement.click(),e=!0;else if(this.type!=="button"){const t=document.createElement("button");t.type=this.type,this.insertAdjacentElement("afterend",t),t.click(),t.remove(),e=!0}return e}renderAnchor(){return i.html`
|
|
23
|
-
${this.buttonContent}
|
|
24
|
-
${super.renderAnchor({id:"button",ariaHidden:!0,className:"button anchor hidden"})}
|
|
25
|
-
`}renderButton(){return i.html` ${this.buttonContent} `}render(){return this.href&&this.href.length>0?this.renderAnchor():this.renderButton()}handleKeydown(e){const{code:t}=e;switch(t){case"Space":{e.preventDefault(),this.href===void 0&&(this.addEventListener("keyup",this.handleKeyup),this.active=!0);break}}}handleKeypress(e){const{code:t}=e;switch(t){case"Enter":case"NumpadEnter":{this.click();break}}}handleKeyup(e){const{code:t}=e;switch(t){case"Space":{this.removeEventListener("keyup",this.handleKeyup),this.active=!1,this.click();break}}}manageAnchor(){this.href&&this.href.length>0?(!this.hasAttribute("role")||this.getAttribute("role")==="button")&&this.setAttribute("role","link"):(!this.hasAttribute("role")||this.getAttribute("role")==="link")&&this.setAttribute("role","button")}firstUpdated(e){super.firstUpdated(e),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),e.has("label")&&(this.label?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label")),this.manageAnchor(),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keypress",this.handleKeypress)}updated(e){super.updated(e),e.has("href")&&this.manageAnchor(),this.anchorElement&&(this.anchorElement.addEventListener("focus",this.proxyFocus),this.anchorElement.tabIndex=-1)}update(e){super.update(e),e.has("label")&&(this.label?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label"))}}l([h.n({type:Boolean,reflect:!0})],r.prototype,"active");l([h.n({type:String})],r.prototype,"type");l([c.e(".anchor")],r.prototype,"anchorElement");exports.LuzmoButtonBase=r;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
"use strict";const n=require("@luzmo/icons"),l=require("lit"),i=require("./base-DzbGOAPo.cjs"),s=require("./sized-mixin-BEemErtP.cjs"),b=require("./button-base-C1ceE1LF.cjs"),d=":host{font-size:var(--luzmo-clear-button-icon-size, var(--clear-button-icon-size));cursor:pointer;background-color:initial;background-color:var(--luzmo-clear-button-background-color, transparent);padding:var(--luzmo-clear-button-padding, var(--clear-button-padding));color:var(--luzmo-clear-button-icon-color, var(--clear-button-icon-color));border:none;border-radius:100%;margin:0}.icon{margin-block:0;margin-inline:auto}@media (hover: hover){:host(:hover){color:var(--highcontrast-clear-button-icon-color-hover, var(--luzmo-clear-button-icon-color-hover, var(--clear-button-icon-color-hover)))}:host(:hover) .fill{background-color:var(--luzmo-clear-button-background-color-hover, var(--clear-button-background-color-hover))}}:host(:is(:active,[active])){color:var(--luzmo-clear-button-icon-color-down, var(--clear-button-icon-color-down))}:host(:is(:active,[active])) .fill{background-color:var(--luzmo-clear-button-background-color-down, var(--clear-button-background-color-down))}:host([focus-within]) .js-focus-within,:host(:focus-visible),:host:focus-within{color:var(--luzmo-clear-button-icon-color-key-focus, var(--clear-button-icon-color-key-focus))}:host([focus-within]) .js-focus-within .fill,:host(:focus-visible) .fill,:host:focus-within .fill{background-color:var(--luzmo-clear-button-background-color-key-focus, var(--clear-button-background-color-key-focus))}:host([disabled]){--clear-button-icon-color: var( --luzmo-clear-button-icon-color-disabled, var(--disabled-content-color) );--clear-button-background-color: var( --luzmo-clear-button-background-color-disabled, transparent )}.fill{background-color:var(--luzmo-clear-button-background-color, var(--clear-button-background-color));inline-size:100%;block-size:100%;border-radius:100%;justify-content:center;align-items:center;display:flex}:host([variant=overBackground]:focus-visible){outline:none}@media (forced-colors: active){:host:not(:disabled){--highcontrast-clear-button-icon-color-hover: Highlight}}:host{--clear-button-background-color: transparent;--clear-button-background-color-hover: transparent;--clear-button-background-color-down: transparent;--clear-button-background-color-key-focus: transparent;--clear-button-icon-size: var(--luzmo-font-size);--clear-button-padding: 0px;--clear-button-icon-color: var(--luzmo-font-color);--clear-button-icon-color-hover: var(--luzmo-font-color-hover);--clear-button-icon-color-down: var(--luzmo-font-color-down);--clear-button-icon-color-key-focus: var(--luzmo-font-color-focus)}:host([size=s]){--clear-button-icon-size: var(--luzmo-font-size-s)}:host([size=l]){--clear-button-icon-size: var(--luzmo-font-size-l)}:host([size=xl]){--clear-button-icon-size: var(--luzmo-font-size-xl)}:host .luzmo-ClearButton--quiet{--clear-button-background-color: transparent;--clear-button-background-color-hover: transparent;--clear-button-background-color-down: transparent;--clear-button-background-color-key-focus: transparent}:host([variant=overBackground]){--clear-button-icon-color: rgb(255, 255, 255);--clear-button-icon-color-hover: rgb(255, 255, 255);--clear-button-icon-color-down: rgb(255, 255, 255);--clear-button-icon-color-key-focus: rgb(255, 255, 255);--clear-button-background-color: transparent;--clear-button-background-color-hover: rgba(255, 255, 255, .25);--clear-button-background-color-down: rgba(255, 255, 255, .4);--clear-button-background-color-key-focus: rgba(255, 255, 255, .25)}:host([disabled]){--clear-button-icon-color: var(--luzmo-disabled-color);--clear-button-icon-color-hover: var(--luzmo-disabled-color);--clear-button-icon-color-down: var(--luzmo-disabled-color);--clear-button-background-color: transparent}:host{box-sizing:border-box}";var v=Object.defineProperty,h=(o,t,a,z)=>{for(var r=void 0,c=o.length-1,e;c>=0;c--)(e=o[c])&&(r=e(t,a,r)||r);return r&&v(t,a,r),r};const g=o=>{const t=o==="s"?n.luzmoClear12:["xl","l"].includes(o)?n.luzmoClear16:n.luzmoClear14;return l.html` <div class="icon" slot="icon">${n.luzmoIcon(t)}</div> `};class u extends s.SizedMixin(b.LuzmoButtonBase,{noDefaultSize:!0}){constructor(){super(...arguments),this.variant=""}static get styles(){return[...super.styles,l.unsafeCSS(d)]}get buttonContent(){return[g(this.size)]}render(){return l.html` <div class="fill">${super.render()}</div> `}}h([i.n({reflect:!0})],u.prototype,"variant");exports.LuzmoClearButton=u;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
"use strict";const n=require("@luzmo/icons"),i=require("lit"),e=require("./base-DzbGOAPo.cjs"),b=require("./sized-mixin-BEemErtP.cjs");require("./icon/index.cjs");const d=require("./button-base-C1ceE1LF.cjs"),h=':host{cursor:pointer;-webkit-user-select:none;user-select:none;box-sizing:border-box;font-family:var(--luzmo-button-font-family, var(--luzmo-sans-font-family-stack, var(--luzmo-font-family)));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:var(--luzmo-button-line-height, var(--luzmo-line-height, 1.3));text-transform:none;vertical-align:top;-webkit-appearance:button;transition:background var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,border-color var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,color var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out,box-shadow var(--luzmo-button-animation-duration, var(--luzmo-animation-duration)) ease-out;border-style:solid;margin:0;-webkit-text-decoration:none;text-decoration:none;overflow:visible}:host(:focus){outline:none}:host([disabled]){cursor:default}:host a{-webkit-user-select:none;user-select:none;-webkit-appearance:none}@media (forced-colors: active){:host{--highcontrast-close-button-icon-color-disabled: GrayText;--highcontrast-close-button-icon-color-down: Highlight;--highcontrast-close-button-icon-color-hover: Highlight;--highcontrast-close-button-icon-color-focus: Highlight;--highcontrast-close-button-background-color-default: ButtonFace;--highcontrast-close-button-focus-indicator-color: ButtonText}:host(:focus-visible):after{forced-color-adjust:none;margin:var(--luzmo-close-button-focus-indicator-gap, var(--close-button-focus-indicator-gap));transition:opacity var(--luzmo-close-button-animation-duration, var(--close-button-animation-duration)) ease-out,margin var(--luzmo-close-button-animation-duraction, var(--close-button-animation-duration)) ease-out}:host([static-color=black]){--highcontrast-close-button-static-background-color-default: ButtonFace;--highcontrast-close-button-icon-color-default: Highlight;--highcontrast-close-button-icon-color-disabled: GrayText}:host([static-color=white]){--highcontrast-close-button-static-background-color-default: ButtonFace;--highcontrast-close-button-icon-color-default: Highlight;--highcontrast-close-button-icon-color-disabled: Highlight}}:host{block-size:var(--luzmo-close-button-height, var(--close-button-size));inline-size:var(--luzmo-close-button-width, var(--close-button-size));font-size:var(--luzmo-close-button-icon-size, var(--close-button-icon-size));color:inherit;border-radius:var(--luzmo-close-button-border-radius, var(--close-button-size));transition:border-color var(--luzmo-close-button-animation-duration, var(--close-button-animation-duration)) ease-in-out;margin-inline:var(--luzmo-close-button-margin-inline);justify-content:center;align-items:center;align-self:var(--luzmo-close-button-align-self);border-width:0;border-color:#0000;flex-direction:row;margin-block-start:var(--luzmo-close-button-margin-top);padding:0;display:inline-flex;position:relative}:host:after{pointer-events:none;content:"";margin:calc(var(--luzmo-close-button-focus-indicator-gap, var(--close-button-focus-indicator-gap)) * -1);border-radius:calc(var(--luzmo-close-button-size, var(--close-button-size)) + var(--luzmo-close-button-focus-indicator-gap, var(--close-button-focus-indicator-gap)));transition:box-shadow var(--luzmo-close-button-animation-duration, var(--close-button-animation-duration)) ease-in-out;position:absolute;inset-block:0;inset-inline:0}:host(:focus-visible){box-shadow:none;outline:none}:host(:focus-visible):after{box-shadow:0 0 0 var(--luzmo-close-button-focus-indicator-thickness, var(--close-button-focus-indicator-thickness)) var(--highcontrast-close-button-focus-indicator-color, var(--luzmo-close-button-focus-indicator-color, var(--close-button-focus-indicator-color)))}:host(:not([disabled])){background-color:var(--highcontrast-close-button-background-color-default, var(--luzmo-close-button-background-color-default, var(--close-button-background-color-default)))}:host(:not([disabled]):is(:active,[active])){background-color:var(--luzmo-close-button-background-color-down, var(--close-button-background-color-down))}:host(:not([disabled]):is(:active,[active])) .icon{color:var(--highcontrast-close-button-icon-color-down, var(--luzmo-close-button-icon-color-down, var(--close-button-icon-color-down)))}:host([focused]:not([disabled])),:host(:not([disabled]):focus-visible){background-color:var(--luzmo-close-button-background-color-focus, var(--close-button-background-color-focus))}:host([focused]:not([disabled])) .icon,:host(:not([disabled]):focus-visible) .icon{color:var(--highcontrast-close-button-icon-color-focus, var(--luzmo-close-button-icon-color-focus, var(--close-button-icon-color-focus)))}:host(:not([disabled])) .icon{color:var(--luzmo-close-button-icon-color-default, var(--close-button-icon-color-default))}:host([focused]:not([disabled])) .icon,:host(:not([disabled]):focus) .icon{color:var(--highcontrast-close-button-icon-color-focus, var(--luzmo-close-button-icon-color-focus, var(--close-button-icon-color-focus)))}:host([disabled]){background-color:var(--luzmo-close-button-background-color-default, var(--close-button-background-color-default))}:host([disabled]) .icon{color:var(--highcontrast-close-button-icon-color-disabled, var(--luzmo-close-button-icon-color-disabled, var(--close-button-icon-color-disabled)))}:host([static-color=black]:not([disabled])),:host([static-color=white]:not([disabled])){background-color:var(--highcontrast-close-button-static-background-color-default, var(--luzmo-close-button-static-background-color-default, var(--close-button-static-background-color-default)))}@media (hover: hover){:host(:not([disabled]):hover){--luzmo-icon-color: var( --luzmo-close-button-icon-color-hover, var(--close-button-icon-color-hover) );background-color:var(--luzmo-close-button-background-color-hover, var(--close-button-background-color-hover))}:host(:not([disabled]):hover) .icon{color:var(--highcontrast-close-button-icon-color-hover, var(--luzmo-close-button-icon-color-hover, var(--close-button-icon-color-hover)))}:host([static-color=black]:not([disabled]):hover),:host([static-color=white]:not([disabled]):hover){background-color:var(--highcontrast-close-button-static-background-color-hover, var(--luzmo-close-button-static-background-color-hover, var(--close-button-static-background-color-hover)))}:host([static-color=black]:not([disabled]):hover) .icon,:host([static-color=white]:not([disabled]):hover) .icon{color:var(--highcontrast-close-button-icon-color-default, var(--luzmo-close-button-icon-color-default, var(--close-button-icon-color-default)))}}:host([static-color=black]:not([disabled]):is(:active,[active])),:host([static-color=white]:not([disabled]):is(:active,[active])){background-color:var(--highcontrast-close-button-static-background-color-down, var(--luzmo-close-button-static-background-color-down, var(--close-button-static-background-color-down)))}:host([static-color=black]:not([disabled]):is(:active,[active])) .icon,:host([static-color=white]:not([disabled]):is(:active,[active])) .icon{color:var(--highcontrast-close-button-icon-color-default, var(--luzmo-close-button-icon-color-default, var(--close-button-icon-color-default)))}:host([static-color=black][focused]:not([disabled])),:host([static-color=black]:not([disabled]):focus-visible),:host([static-color=white][focused]:not([disabled])),:host([static-color=white]:not([disabled]):focus-visible){background-color:var(--highcontrast-close-button-static-background-color-focus, var(--luzmo-close-button-static-background-color-focus, var(--close-button-static-background-color-focus)))}:host([static-color=black][focused]:not([disabled])) .icon,:host([static-color=black]:not([disabled]):focus) .icon,:host([static-color=black]:not([disabled]):focus-visible) .icon,:host([static-color=white][focused]:not([disabled])) .icon,:host([static-color=white]:not([disabled]):focus) .icon,:host([static-color=white]:not([disabled]):focus-visible) .icon{color:var(--highcontrast-close-button-icon-color-default, var(--luzmo-close-button-icon-color-default, var(--close-button-icon-color-default)))}:host([static-color=black]:not([disabled])) .icon,:host([static-color=white]:not([disabled])) .icon{color:var(--luzmo-close-button-icon-color-default, var(--close-button-icon-color-default))}:host([static-color=black][disabled]) .icon,:host([static-color=white][disabled]) .icon{color:var(--highcontrast-close-button-icon-disabled, var(--luzmo-close-button-icon-color-disabled, var(--close-button-icon-color-disabled)))}.icon{margin:0}:host{--close-button-background-color-default: transparent;--close-button-background-color-hover: var(--luzmo-background-color-hover);--close-button-background-color-down: var(--luzmo-background-color-down);--close-button-background-color-focus: var(--luzmo-background-color-focus);--close-button-icon-color-default: var(--luzmo-font-color);--close-button-icon-color-hover: var(--luzmo-font-color-hover);--close-button-icon-color-down: var(--luzmo-font-color-down);--close-button-icon-color-focus: var(--luzmo-font-color-focus);--close-button-icon-color-disabled: var(--luzmo-color-disabled);--close-button-focus-indicator-thickness: var(--luzmo-indicator-width);--close-button-focus-indicator-gap: var(--luzmo-indicator-gap);--close-button-focus-indicator-color: var(--luzmo-indicator-color);--close-button-animation-duration: var(--luzmo-animation-duration);--close-button-size: var(--luzmo-component-height)}:host([static-color=white]){--close-button-static-background-color-default: transparent;--close-button-static-background-color-hover: rgba(255, 255, 255, .2);--close-button-static-background-color-down: rgba(255, 255, 255, .4);--close-button-static-background-color-focus: rgba(255, 255, 255, .2);--close-button-icon-color-default: rgb(255, 255, 255);--close-button-icon-color-disabled: rgba(255, 255, 255, .2);--close-button-focus-indicator-color: rgb(255, 255, 255)}:host([static-color=black]){--close-button-static-background-color-default: transparent;--close-button-static-background-color-hover: rgba(0, 0, 0, .2);--close-button-static-background-color-down: rgba(0, 0, 0, .4);--close-button-static-background-color-focus: rgba(0, 0, 0, .2);--close-button-icon-color-default: rgb(0, 0, 0);--close-button-icon-color-disabled: rgba(0, 0, 0, .2);--close-button-focus-indicator-color: rgb(0, 0, 0)}:host([size=s]){--close-button-size: var(--luzmo-component-height-s);--close-button-icon-size: var(--luzmo-font-size-s)}:host{--close-button-size: var(--luzmo-component-height);--close-button-icon-size: var(--luzmo-font-size)}:host([size=l]){--close-button-size: var(--luzmo-component-height-l);--close-button-icon-size: var(--luzmo-font-size-l)}:host([size=xl]){--close-button-size: var(--luzmo-component-height-xl);--close-button-icon-size: var(--luzmo-font-size-xl)}';var v=Object.defineProperty,u=(o,c,a,f)=>{for(var t=void 0,l=o.length-1,s;l>=0;l--)(s=o[l])&&(t=s(c,a,t)||t);return t&&v(c,a,t),t};const g=o=>{const c=o==="s"?n.luzmoClose12:o==="l"?n.luzmoClose16:n.luzmoClose14;return i.html` <div class="icon" slot="icon">${n.luzmoIcon(c)}</div> `};class r extends b.SizedMixin(d.LuzmoButtonBase,{noDefaultSize:!0}){constructor(){super(...arguments),this.variant=""}static get styles(){return[...super.styles,i.unsafeCSS(h)]}get buttonContent(){return[g(this.size)]}}u([e.n({reflect:!0})],r.prototype,"variant");u([e.n({reflect:!0,attribute:"static-color"})],r.prototype,"staticColor");exports.LuzmoCloseButton=r;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
"use strict";const u=require("lit"),l=require("./base-DzbGOAPo.cjs"),n=':host{inline-size:var(--luzmo-color-loupe-width, 48px);block-size:var(--luzmo-color-loupe-height, 64px);transform:translateY(var(--luzmo-color-loupe-animation-distance, 8px));opacity:0;transform-origin:bottom;pointer-events:none;filter:drop-shadow(var(--luzmo-color-loupe-drop-shadow-x, 0) var(--luzmo-color-loupe-drop-shadow-y, 2px) var(--luzmo-color-loupe-drop-shadow-blur, 8px) var(--luzmo-color-loupe-drop-shadow-color, rgba(0, 0, 0, .25)));transition:transform .1s ease-in-out,opacity .125s ease-in-out;position:absolute;inset-block-end:calc(var(--luzmo-color-handle-size, 16px) - var(--luzmo-color-handle-outer-border-width, 1px) + var(--luzmo-color-loupe-offset, 12px));inset-inline-end:calc(50% - var(--luzmo-color-loupe-width, 48px) / 2)}:host:dir(rtl),:host([dir=rtl]){inset-inline-end:calc(50% - var(--luzmo-color-loupe-width, 48px) / 2 - 1px)}:host([open]){opacity:1;transform:translate(0)}.luzmo-color-loupe-inner-border{fill:var(--luzmo-picked-color);stroke:var(--luzmo-color-loupe-inner-border-color, rgba(0, 0, 0, .1));stroke-width:var(--luzmo-color-loupe-inner-border-width, 1px)}.luzmo-color-loupe-outer-border{fill:none;stroke:var(--luzmo-color-loupe-outer-border-color, white);stroke-width:calc(var(--luzmo-color-loupe-outer-border-width, 2px) + 2px);transform:translate(calc((var(--luzmo-color-loupe-outer-border-width, 2px) + 2px) / 2))}.luzmo-color-loupe-checkerboard-pattern{fill:var(--luzmo-color-loupe-checkerboard-dark-color, rgb(230, 230, 230))}.luzmo-color-loupe-checkerboard-background{fill:var(--luzmo-color-loupe-checkerboard-light-color, rgb(255, 255, 255))}.luzmo-color-loupe-checkerboard-fill{fill:var(--luzmo-color-loupe-checkerboard-fill, url(#checkerboard-primary))}@media (forced-colors: active){:host{--highcontrast-colorloupe-outer-border-color: CanvasText}}svg{width:inherit;height:inherit}.loupe-clipped{clip-path:path("M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ")}.opacity-checkerboard{position:absolute;top:2px;left:2px;block-size:100%;inline-size:100%}.opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-color-loupe-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-color-loupe-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-color-loupe-checkerboard-position, left top)/calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2) calc(var(--luzmo-color-loupe-checkerboard-size, 8px) * 2)}';var d=Object.defineProperty,s=(a,c,i,h)=>{for(var o=void 0,e=a.length-1,p;e>=0;e--)(p=a[e])&&(o=p(c,i,o)||o);return o&&d(c,i,o),o};const t=class t extends l.LuzmoElement{constructor(){super(...arguments),this.open=!1,this.color="rgba(255, 0, 0, 0.5)"}render(){return u.html`
|
|
19
|
-
<div class="opacity-checkerboard loupe-clipped"></div>
|
|
20
|
-
<div class="luzmo-color-loupe-inner-border loupe-clipped"></div>
|
|
21
|
-
<div class="luzmo-color-loupe-outer-border loupe-clipped"></div>
|
|
22
|
-
<svg
|
|
23
|
-
aria-hidden="true"
|
|
24
|
-
class="luzmo-color-loupe is-open"
|
|
25
|
-
overflow="visible"
|
|
26
|
-
style="--luzmo-picked-color: ${this.color}; position: absolute;"
|
|
27
|
-
>
|
|
28
|
-
<defs>
|
|
29
|
-
<path
|
|
30
|
-
id="loupe-path"
|
|
31
|
-
d="M23 61.575C19.0044 57.435 15.2591 53.0606 11.784 48.475C8.68949 44.4532 5.96348 40.1608 3.639 35.65C1.224 30.8 0 26.549 0 23C0.00319993 17.6937 1.84059 12.5516 5.20091 8.44488C8.56122 4.33815 13.2378 1.51928 18.4385 0.465803C23.6392 -0.587678 29.0442 0.189006 33.7378 2.66428C38.4314 5.13955 42.125 9.16122 44.193 14.048C45.3915 16.88 46.0061 19.9248 46 23C46 26.551 44.774 30.811 42.355 35.661C40.0274 40.1747 37.298 44.4698 34.2 48.494C30.7297 53.0728 26.9898 57.4409 23 61.575ZZ"
|
|
32
|
-
transform="translate(2, 2)"
|
|
33
|
-
/>
|
|
34
|
-
<mask id="loupe-mask">
|
|
35
|
-
<rect x="0" y="0" height="100" width="100" fill="white" />
|
|
36
|
-
<use xlink:href="#path" fill="black" />
|
|
37
|
-
</mask>
|
|
38
|
-
</defs>
|
|
39
|
-
|
|
40
|
-
<g class="luzmo-color-loupe-loupe">
|
|
41
|
-
<g>
|
|
42
|
-
<use
|
|
43
|
-
xlink:href="#loupe-path"
|
|
44
|
-
mask="url(#loupe-mask)"
|
|
45
|
-
transform="translate(2, 2)"
|
|
46
|
-
class="luzmo-color-loupe-inner-border"
|
|
47
|
-
/>
|
|
48
|
-
<use
|
|
49
|
-
xlink:href="#loupe-path"
|
|
50
|
-
mask="url(#loupe-mask)"
|
|
51
|
-
class="luzmo-color-loupe-outer-border"
|
|
52
|
-
/>
|
|
53
|
-
</g>
|
|
54
|
-
</g>
|
|
55
|
-
</svg>
|
|
56
|
-
`}};t.styles=u.unsafeCSS(n);let r=t;s([l.n({type:Boolean,reflect:!0})],r.prototype,"open");s([l.n({type:String})],r.prototype,"color");exports.LuzmoColorLoupe=r;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/*! * Lucero - The design system for Luzmo.
|
|
2
|
-
*
|
|
3
|
-
* Copyright © 2025 Luzmo
|
|
4
|
-
* All rights reserved.
|
|
5
|
-
* Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
|
|
6
|
-
* This license allows users with a current active Luzmo account to use Lucero.
|
|
7
|
-
* This license terminates automatically if a user no longer has an active Luzmo account.
|
|
8
|
-
* Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
|
|
9
|
-
*
|
|
10
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
11
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
13
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
14
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
15
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
16
|
-
* SOFTWARE.
|
|
17
|
-
* */
|
|
18
|
-
"use strict";const d=require("lit"),l=require("./base-DzbGOAPo.cjs"),u=require("./manage-help-text-BKlmmlgp.cjs"),p='.luzmo-FieldGroup--toplabel{flex-direction:column}.luzmo-FieldGroup--sidelabel{flex-direction:row}.group{flex-flow:column wrap;display:flex}:host([vertical]) .group{flex-direction:column}:host([horizontal]) .group{flex-direction:row}:host([horizontal]) .group slot:not([name])::slotted(:not(:last-child)){margin-inline-end:var(--field-group-margin)}:host([horizontal]) .group .luzmo-HelpText{flex-basis:100%}:host{--field-group-margin: 16px;--field-group-readonly-delimiter: ","}:host([horizontal][dir=rtl]) slot:not([name])::slotted(*:not(:last-child)),:host([dir=rtl]:not([vertical])) slot:not([name])::slotted(*:not(:last-child)){margin:0 0 0 var(--field-group-margin)}:host([horizontal][dir=ltr]) slot:not([name])::slotted(*:not(:last-child)),:host([dir=ltr]:not([vertical])) slot:not([name])::slotted(*:not(:last-child)){margin:0 var(--field-group-margin) 0 0}';var h=Object.defineProperty,r=(i,t,n,c)=>{for(var e=void 0,a=i.length-1,s;a>=0;a--)(s=i[a])&&(e=s(t,n,e)||e);return e&&h(t,n,e),e};class o extends u.ManageHelpText(l.LuzmoElement,{mode:"external"}){constructor(){super(...arguments),this.horizontal=!1,this.invalid=!1,this.label="",this.vertical=!1}static get styles(){return[d.unsafeCSS(p)]}handleSlotchange(){}render(){return d.html`
|
|
19
|
-
<div class="group" role="presentation">
|
|
20
|
-
<slot @slotchange=${this.handleSlotchange}></slot>
|
|
21
|
-
</div>
|
|
22
|
-
${this.renderHelpText(this.invalid)}
|
|
23
|
-
`}firstUpdated(t){super.firstUpdated(t),this.hasAttribute("role")||this.setAttribute("role","group")}updated(t){super.updated(t),t.has("label")&&(this.label?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label"))}}r([l.n({type:Boolean,reflect:!0})],o.prototype,"horizontal");r([l.n({type:Boolean,reflect:!0})],o.prototype,"invalid");r([l.n()],o.prototype,"label");r([l.n({type:Boolean,reflect:!0})],o.prototype,"vertical");exports.LuzmoFieldGroup=o;
|