@luzmo/lucero 0.0.8 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (152) hide show
  1. package/components/accordion/index.cjs +6 -6
  2. package/components/accordion/index.js +8 -7
  3. package/components/action-bar/index.cjs +4 -4
  4. package/components/action-bar/index.js +9 -8
  5. package/components/action-button/index.cjs +2 -2
  6. package/components/action-button/index.js +4 -3
  7. package/components/action-group/index.cjs +1 -1
  8. package/components/action-group/index.js +1 -1
  9. package/components/action-group-BBoV2VL9.cjs +20 -0
  10. package/components/{action-group-enfc-YnW.js → action-group-Bf28z235.js} +8 -7
  11. package/components/action-menu/index.cjs +5 -5
  12. package/components/action-menu/index.js +7 -6
  13. package/components/{async-directive-D_Ter1F8.cjs → async-directive-CV2MII86.cjs} +1 -1
  14. package/components/{async-directive-DWRUSKKF.js → async-directive-FGzMycjH.js} +1 -1
  15. package/components/avatar/index.cjs +3 -3
  16. package/components/avatar/index.js +6 -5
  17. package/components/base-DNrOP9L3.js +391 -0
  18. package/components/base-DzbGOAPo.cjs +30 -0
  19. package/components/button/index.cjs +2 -2
  20. package/components/button/index.js +7 -6
  21. package/components/button-base-C1ceE1LF.cjs +25 -0
  22. package/components/{button-base-B7v4eeRh.js → button-base-CDLQV7Vk.js} +5 -4
  23. package/components/button-group/index.cjs +1 -1
  24. package/components/button-group/index.js +8 -7
  25. package/components/checkbox/index.cjs +4 -4
  26. package/components/checkbox/index.js +4 -3
  27. package/components/{checkbox-mixin-BFGTmw17.js → checkbox-mixin-DXUIwtea.js} +11 -10
  28. package/components/{checkbox-mixin-DUhXwD46.cjs → checkbox-mixin-DaXMsrtV.cjs} +3 -3
  29. package/components/{clear-button-DgZmX5RX.js → clear-button-Dh2Mq0cc.js} +7 -6
  30. package/components/clear-button-pnT9_M8M.cjs +18 -0
  31. package/components/{close-button-CFHQnbsK.js → close-button-BsYkXOVh.js} +5 -4
  32. package/components/close-button-CPtjRQ0R.cjs +18 -0
  33. package/components/color-area/index.cjs +4 -4
  34. package/components/color-area/index.js +10 -9
  35. package/components/color-field/index.cjs +2 -2
  36. package/components/color-field/index.js +3 -2
  37. package/components/color-handle/index.cjs +2 -2
  38. package/components/color-handle/index.js +6 -5
  39. package/components/color-loupe/index.cjs +1 -1
  40. package/components/color-loupe/index.js +1 -1
  41. package/components/{color-loupe-DxcqXoJ6.js → color-loupe-BCfIVFkB.js} +4 -3
  42. package/components/color-loupe-DIBrhG1Y.cjs +56 -0
  43. package/components/color-menu/index.cjs +5 -5
  44. package/components/color-menu/index.js +6 -5
  45. package/components/color-picker/index.cjs +4 -4
  46. package/components/color-picker/index.js +10 -9
  47. package/components/color-slider/index.cjs +4 -4
  48. package/components/color-slider/index.js +6 -5
  49. package/components/{directive-helpers-nlQRAaQt.js → directive-helpers-BLDZnGQv.js} +1 -1
  50. package/components/{directive-helpers-TkFq2eZF.cjs → directive-helpers-C2vOfhFx.cjs} +1 -1
  51. package/components/divider/index.cjs +1 -1
  52. package/components/divider/index.js +6 -5
  53. package/components/field-group/index.cjs +1 -1
  54. package/components/field-group/index.js +1 -1
  55. package/components/{field-group-DAhrTCfl.js → field-group-CwZULltm.js} +6 -5
  56. package/components/field-group-eICRTHzI.cjs +23 -0
  57. package/components/field-label/index.cjs +1 -1
  58. package/components/field-label/index.js +1 -1
  59. package/components/{field-label-CAFfGxEL.js → field-label-C3HFlH91.js} +7 -6
  60. package/components/field-label-DOIVL4S4.cjs +25 -0
  61. package/components/{focusable-cj2QhwDT.js → focusable-zT9NFFYs.js} +1 -1
  62. package/components/{focusable-DGWL1v1p.cjs → focusable-zn6qaMtV.cjs} +1 -1
  63. package/components/icon/index.cjs +1 -1
  64. package/components/icon/index.js +5 -4
  65. package/components/{if-defined-BSAr_4u4.js → if-defined-CYpcjGCb.js} +1 -1
  66. package/components/{if-defined-B56xGmAg.cjs → if-defined-Cv6xanXh.cjs} +2 -2
  67. package/components/{index-DnWavOZD.cjs → index-BYumXRH5.cjs} +15 -15
  68. package/components/{index-CMvLpPKD.js → index-C2qG2Sm8.js} +8 -7
  69. package/components/index.cjs +1 -1
  70. package/components/index.js +16 -16
  71. package/components/infield-button/index.cjs +2 -2
  72. package/components/infield-button/index.js +4 -3
  73. package/components/label/index.cjs +1 -1
  74. package/components/label/index.js +5 -4
  75. package/components/{like-anchor-Bmabl9ra.cjs → like-anchor-CmIcmz5k.cjs} +4 -4
  76. package/components/{like-anchor-QBlvwFfT.js → like-anchor-DoJWh4Uu.js} +9 -8
  77. package/components/lit-html-B3ugcwD9.js +248 -0
  78. package/components/lit-html-p4Oxv2-5.cjs +24 -0
  79. package/components/{manage-help-text-OHXDgxyj.cjs → manage-help-text-BKlmmlgp.cjs} +2 -2
  80. package/components/{manage-help-text-Cozl9Sgn.js → manage-help-text-BzWK2v8i.js} +6 -6
  81. package/components/menu/index.cjs +1 -1
  82. package/components/menu/index.js +1 -1
  83. package/components/multi-language-field/index.cjs +2 -2
  84. package/components/multi-language-field/index.js +7 -6
  85. package/components/number-field/index.cjs +4 -4
  86. package/components/number-field/index.js +16 -15
  87. package/components/{observe-slot-text-ggb4kKgY.js → observe-slot-text-BG0H7bQK.js} +1 -1
  88. package/components/{observe-slot-text-CrYB2Pj-.cjs → observe-slot-text-CP_EB97X.cjs} +1 -1
  89. package/components/overlay/index.cjs +7 -7
  90. package/components/overlay/index.js +35 -33
  91. package/components/overlay-B1JDPmUJ.cjs +47 -0
  92. package/components/{overlay-CJ9by37f.js → overlay-D7EbnA6E.js} +9 -8
  93. package/components/{pending-state-Do522lTd.cjs → pending-state-BHCOneQ7.cjs} +2 -2
  94. package/components/{pending-state-TJj1x9xn.js → pending-state-DHXuiejX.js} +2 -2
  95. package/components/picker/index.cjs +1 -1
  96. package/components/picker/index.js +2 -2
  97. package/components/{picker-DDx8ii73.cjs → picker-CLKdhX0B.cjs} +25 -25
  98. package/components/{picker-833Apxe4.js → picker-ChtCbFLB.js} +21 -19
  99. package/components/popover/index.cjs +1 -1
  100. package/components/popover/index.js +1 -1
  101. package/components/popover-CdkB6GFb.cjs +30 -0
  102. package/components/{popover-DlkzrLpl.js → popover-bg0EQQ8p.js} +6 -5
  103. package/components/progress-circle/index.cjs +1 -1
  104. package/components/progress-circle/index.js +1 -1
  105. package/components/{progress-circle-Be24kv6B.js → progress-circle-BT2qW7LK.js} +6 -5
  106. package/components/progress-circle-DTeqfeun.cjs +33 -0
  107. package/components/radio/index.cjs +2 -2
  108. package/components/radio/index.js +7 -6
  109. package/components/search/index.cjs +8 -8
  110. package/components/search/index.js +4 -3
  111. package/components/{sized-mixin-D9LkrMjb.cjs → sized-mixin-BEemErtP.cjs} +1 -1
  112. package/components/{sized-mixin-BxMraZLS.js → sized-mixin-PyCYpyQq.js} +1 -1
  113. package/components/slider/index.cjs +1 -1
  114. package/components/slider/index.js +6 -5
  115. package/components/{state-CYxk12SV.js → state-BG4JQVA1.js} +1 -1
  116. package/components/{state-C5I1gP3G.cjs → state-DHaIxrnQ.cjs} +1 -1
  117. package/components/streaming-listener-BQxEN4sL.cjs +18 -0
  118. package/components/{streaming-listener-CCalHg57.js → streaming-listener-wjMvsv4N.js} +2 -2
  119. package/components/{style-map-uMq-yDJ3.cjs → style-map-BjBGQ_u3.cjs} +2 -2
  120. package/components/{style-map-Ct2LiEds.js → style-map-BqvQDFJt.js} +1 -1
  121. package/components/swatch/index.cjs +7 -7
  122. package/components/swatch/index.js +5 -4
  123. package/components/switch/index.cjs +2 -2
  124. package/components/switch/index.js +5 -4
  125. package/components/tags/index.cjs +4 -4
  126. package/components/tags/index.js +12 -11
  127. package/components/text-field/index.cjs +3 -3
  128. package/components/text-field/index.js +8 -7
  129. package/components/{text-field-CvKSS59x.js → text-field-7ITo3Lac.js} +29 -27
  130. package/components/{text-field-5_ev9way.cjs → text-field-CtUKbEQN.cjs} +15 -15
  131. package/components/toast/index.cjs +11 -11
  132. package/components/toast/index.js +5 -4
  133. package/components/tooltip/index.cjs +4 -4
  134. package/components/tooltip/index.js +6 -5
  135. package/components/unit-input/index.cjs +3 -3
  136. package/components/unit-input/index.js +6 -5
  137. package/components/utils.cjs +1 -1
  138. package/components/utils.js +4 -4
  139. package/package.json +3 -3
  140. package/components/action-group-Uimj-MJP.cjs +0 -20
  141. package/components/base-B7Pfl2if.cjs +0 -40
  142. package/components/base-CawdqE7p.js +0 -666
  143. package/components/button-base-DmjYs2s9.cjs +0 -25
  144. package/components/clear-button-KdrF2jaV.cjs +0 -18
  145. package/components/close-button-DVGUppyd.cjs +0 -18
  146. package/components/color-loupe-SskbNeMp.cjs +0 -56
  147. package/components/field-group-DSY2HUoj.cjs +0 -23
  148. package/components/field-label-CjsQ3ujK.cjs +0 -25
  149. package/components/overlay-Deh6Ki6I.cjs +0 -47
  150. package/components/popover-BGOgXaka.cjs +0 -30
  151. package/components/progress-circle-NNbCMK2i.cjs +0 -33
  152. package/components/streaming-listener-KVex1WWB.cjs +0 -18
@@ -1,666 +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
- /**
19
- * @license
20
- * Copyright 2019 Google LLC
21
- * SPDX-License-Identifier: BSD-3-Clause
22
- */
23
- const T = globalThis, j = T.ShadowRoot && (T.ShadyCSS === void 0 || T.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, et = Symbol(), W = /* @__PURE__ */ new WeakMap();
24
- let ot = class {
25
- constructor(t, e, s) {
26
- if (this._$cssResult$ = !0, s !== et) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
27
- this.cssText = t, this.t = e;
28
- }
29
- get styleSheet() {
30
- let t = this.o;
31
- const e = this.t;
32
- if (j && t === void 0) {
33
- const s = e !== void 0 && e.length === 1;
34
- s && (t = W.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && W.set(e, t));
35
- }
36
- return t;
37
- }
38
- toString() {
39
- return this.cssText;
40
- }
41
- };
42
- const ht = (n) => new ot(typeof n == "string" ? n : n + "", void 0, et), at = (n, t) => {
43
- if (j) n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
44
- else for (const e of t) {
45
- const s = document.createElement("style"), i = T.litNonce;
46
- i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, n.appendChild(s);
47
- }
48
- }, q = j ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
49
- let e = "";
50
- for (const s of t.cssRules) e += s.cssText;
51
- return ht(e);
52
- })(n) : n;
53
- /**
54
- * @license
55
- * Copyright 2017 Google LLC
56
- * SPDX-License-Identifier: BSD-3-Clause
57
- */
58
- const { is: lt, defineProperty: ct, getOwnPropertyDescriptor: dt, getOwnPropertyNames: ut, getOwnPropertySymbols: pt, getPrototypeOf: $t } = Object, f = globalThis, F = f.trustedTypes, _t = F ? F.emptyScript : "", k = f.reactiveElementPolyfillSupport, S = (n, t) => n, H = { toAttribute(n, t) {
59
- switch (t) {
60
- case Boolean:
61
- n = n ? _t : null;
62
- break;
63
- case Object:
64
- case Array:
65
- n = n == null ? n : JSON.stringify(n);
66
- }
67
- return n;
68
- }, fromAttribute(n, t) {
69
- let e = n;
70
- switch (t) {
71
- case Boolean:
72
- e = n !== null;
73
- break;
74
- case Number:
75
- e = n === null ? null : Number(n);
76
- break;
77
- case Object:
78
- case Array:
79
- try {
80
- e = JSON.parse(n);
81
- } catch {
82
- e = null;
83
- }
84
- }
85
- return e;
86
- } }, B = (n, t) => !lt(n, t), Z = { attribute: !0, type: String, converter: H, reflect: !1, hasChanged: B };
87
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), f.litPropertyMetadata ?? (f.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
88
- class y extends HTMLElement {
89
- static addInitializer(t) {
90
- this._$Ei(), (this.l ?? (this.l = [])).push(t);
91
- }
92
- static get observedAttributes() {
93
- return this.finalize(), this._$Eh && [...this._$Eh.keys()];
94
- }
95
- static createProperty(t, e = Z) {
96
- if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
97
- const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
98
- i !== void 0 && ct(this.prototype, t, i);
99
- }
100
- }
101
- static getPropertyDescriptor(t, e, s) {
102
- const { get: i, set: o } = dt(this.prototype, t) ?? { get() {
103
- return this[e];
104
- }, set(r) {
105
- this[e] = r;
106
- } };
107
- return { get() {
108
- return i == null ? void 0 : i.call(this);
109
- }, set(r) {
110
- const a = i == null ? void 0 : i.call(this);
111
- o.call(this, r), this.requestUpdate(t, a, s);
112
- }, configurable: !0, enumerable: !0 };
113
- }
114
- static getPropertyOptions(t) {
115
- return this.elementProperties.get(t) ?? Z;
116
- }
117
- static _$Ei() {
118
- if (this.hasOwnProperty(S("elementProperties"))) return;
119
- const t = $t(this);
120
- t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
121
- }
122
- static finalize() {
123
- if (this.hasOwnProperty(S("finalized"))) return;
124
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(S("properties"))) {
125
- const e = this.properties, s = [...ut(e), ...pt(e)];
126
- for (const i of s) this.createProperty(i, e[i]);
127
- }
128
- const t = this[Symbol.metadata];
129
- if (t !== null) {
130
- const e = litPropertyMetadata.get(t);
131
- if (e !== void 0) for (const [s, i] of e) this.elementProperties.set(s, i);
132
- }
133
- this._$Eh = /* @__PURE__ */ new Map();
134
- for (const [e, s] of this.elementProperties) {
135
- const i = this._$Eu(e, s);
136
- i !== void 0 && this._$Eh.set(i, e);
137
- }
138
- this.elementStyles = this.finalizeStyles(this.styles);
139
- }
140
- static finalizeStyles(t) {
141
- const e = [];
142
- if (Array.isArray(t)) {
143
- const s = new Set(t.flat(1 / 0).reverse());
144
- for (const i of s) e.unshift(q(i));
145
- } else t !== void 0 && e.push(q(t));
146
- return e;
147
- }
148
- static _$Eu(t, e) {
149
- const s = e.attribute;
150
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
151
- }
152
- constructor() {
153
- super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
154
- }
155
- _$Ev() {
156
- var t;
157
- 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));
158
- }
159
- addController(t) {
160
- var e;
161
- (this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
162
- }
163
- removeController(t) {
164
- var e;
165
- (e = this._$EO) == null || e.delete(t);
166
- }
167
- _$E_() {
168
- const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
169
- for (const s of e.keys()) this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
170
- t.size > 0 && (this._$Ep = t);
171
- }
172
- createRenderRoot() {
173
- const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
174
- return at(t, this.constructor.elementStyles), t;
175
- }
176
- connectedCallback() {
177
- var t;
178
- this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
179
- var s;
180
- return (s = e.hostConnected) == null ? void 0 : s.call(e);
181
- });
182
- }
183
- enableUpdating(t) {
184
- }
185
- disconnectedCallback() {
186
- var t;
187
- (t = this._$EO) == null || t.forEach((e) => {
188
- var s;
189
- return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
190
- });
191
- }
192
- attributeChangedCallback(t, e, s) {
193
- this._$AK(t, s);
194
- }
195
- _$EC(t, e) {
196
- var o;
197
- const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
198
- if (i !== void 0 && s.reflect === !0) {
199
- const r = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : H).toAttribute(e, s.type);
200
- this._$Em = t, r == null ? this.removeAttribute(i) : this.setAttribute(i, r), this._$Em = null;
201
- }
202
- }
203
- _$AK(t, e) {
204
- var o;
205
- const s = this.constructor, i = s._$Eh.get(t);
206
- if (i !== void 0 && this._$Em !== i) {
207
- const r = s.getPropertyOptions(i), a = typeof r.converter == "function" ? { fromAttribute: r.converter } : ((o = r.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? r.converter : H;
208
- this._$Em = i, this[i] = a.fromAttribute(e, r.type), this._$Em = null;
209
- }
210
- }
211
- requestUpdate(t, e, s) {
212
- if (t !== void 0) {
213
- if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? B)(this[t], e)) return;
214
- this.P(t, e, s);
215
- }
216
- this.isUpdatePending === !1 && (this._$ES = this._$ET());
217
- }
218
- P(t, e, s) {
219
- this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
220
- }
221
- async _$ET() {
222
- this.isUpdatePending = !0;
223
- try {
224
- await this._$ES;
225
- } catch (e) {
226
- Promise.reject(e);
227
- }
228
- const t = this.scheduleUpdate();
229
- return t != null && await t, !this.isUpdatePending;
230
- }
231
- scheduleUpdate() {
232
- return this.performUpdate();
233
- }
234
- performUpdate() {
235
- var s;
236
- if (!this.isUpdatePending) return;
237
- if (!this.hasUpdated) {
238
- if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
239
- for (const [o, r] of this._$Ep) this[o] = r;
240
- this._$Ep = void 0;
241
- }
242
- const i = this.constructor.elementProperties;
243
- if (i.size > 0) for (const [o, r] of i) r.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], r);
244
- }
245
- let t = !1;
246
- const e = this._$AL;
247
- try {
248
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$EO) == null || s.forEach((i) => {
249
- var o;
250
- return (o = i.hostUpdate) == null ? void 0 : o.call(i);
251
- }), this.update(e)) : this._$EU();
252
- } catch (i) {
253
- throw t = !1, this._$EU(), i;
254
- }
255
- t && this._$AE(e);
256
- }
257
- willUpdate(t) {
258
- }
259
- _$AE(t) {
260
- var e;
261
- (e = this._$EO) == null || e.forEach((s) => {
262
- var i;
263
- return (i = s.hostUpdated) == null ? void 0 : i.call(s);
264
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
265
- }
266
- _$EU() {
267
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
268
- }
269
- get updateComplete() {
270
- return this.getUpdateComplete();
271
- }
272
- getUpdateComplete() {
273
- return this._$ES;
274
- }
275
- shouldUpdate(t) {
276
- return !0;
277
- }
278
- update(t) {
279
- this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
280
- }
281
- updated(t) {
282
- }
283
- firstUpdated(t) {
284
- }
285
- }
286
- y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[S("elementProperties")] = /* @__PURE__ */ new Map(), y[S("finalized")] = /* @__PURE__ */ new Map(), k == null || k({ ReactiveElement: y }), (f.reactiveElementVersions ?? (f.reactiveElementVersions = [])).push("2.0.4");
287
- /**
288
- * @license
289
- * Copyright 2017 Google LLC
290
- * SPDX-License-Identifier: BSD-3-Clause
291
- */
292
- const w = globalThis, N = w.trustedTypes, J = N ? N.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, st = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, it = "?" + _, ft = `<${it}>`, A = document, P = () => A.createComment(""), U = (n) => n === null || typeof n != "object" && typeof n != "function", V = Array.isArray, mt = (n) => V(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", L = `[
293
- \f\r]`, b = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, K = /-->/g, G = />/g, m = RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^
294
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Q = /'/g, X = /"/g, nt = /^(?:script|style|textarea|title)$/i, gt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), Ht = gt(1), v = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Y = /* @__PURE__ */ new WeakMap(), g = A.createTreeWalker(A, 129);
295
- function rt(n, t) {
296
- if (!V(n) || !n.hasOwnProperty("raw")) throw Error("invalid template strings array");
297
- return J !== void 0 ? J.createHTML(t) : t;
298
- }
299
- const At = (n, t) => {
300
- const e = n.length - 1, s = [];
301
- let i, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", r = b;
302
- for (let a = 0; a < e; a++) {
303
- const h = n[a];
304
- let c, u, l = -1, p = 0;
305
- for (; p < h.length && (r.lastIndex = p, u = r.exec(h), u !== null); ) p = r.lastIndex, r === b ? u[1] === "!--" ? r = K : u[1] !== void 0 ? r = G : u[2] !== void 0 ? (nt.test(u[2]) && (i = RegExp("</" + u[2], "g")), r = m) : u[3] !== void 0 && (r = m) : r === m ? u[0] === ">" ? (r = i ?? b, l = -1) : u[1] === void 0 ? l = -2 : (l = r.lastIndex - u[2].length, c = u[1], r = u[3] === void 0 ? m : u[3] === '"' ? X : Q) : r === X || r === Q ? r = m : r === K || r === G ? r = b : (r = m, i = void 0);
306
- const $ = r === m && n[a + 1].startsWith("/>") ? " " : "";
307
- o += r === b ? h + ft : l >= 0 ? (s.push(c), h.slice(0, l) + st + h.slice(l) + _ + $) : h + _ + (l === -2 ? a : $);
308
- }
309
- return [rt(n, o + (n[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
310
- };
311
- class x {
312
- constructor({ strings: t, _$litType$: e }, s) {
313
- let i;
314
- this.parts = [];
315
- let o = 0, r = 0;
316
- const a = t.length - 1, h = this.parts, [c, u] = At(t, e);
317
- if (this.el = x.createElement(c, s), g.currentNode = this.el.content, e === 2 || e === 3) {
318
- const l = this.el.content.firstChild;
319
- l.replaceWith(...l.childNodes);
320
- }
321
- for (; (i = g.nextNode()) !== null && h.length < a; ) {
322
- if (i.nodeType === 1) {
323
- if (i.hasAttributes()) for (const l of i.getAttributeNames()) if (l.endsWith(st)) {
324
- const p = u[r++], $ = i.getAttribute(l).split(_), O = /([.?@])?(.*)/.exec(p);
325
- h.push({ type: 1, index: o, name: O[2], strings: $, ctor: O[1] === "." ? vt : O[1] === "?" ? Et : O[1] === "@" ? bt : R }), i.removeAttribute(l);
326
- } else l.startsWith(_) && (h.push({ type: 6, index: o }), i.removeAttribute(l));
327
- if (nt.test(i.tagName)) {
328
- const l = i.textContent.split(_), p = l.length - 1;
329
- if (p > 0) {
330
- i.textContent = N ? N.emptyScript : "";
331
- for (let $ = 0; $ < p; $++) i.append(l[$], P()), g.nextNode(), h.push({ type: 2, index: ++o });
332
- i.append(l[p], P());
333
- }
334
- }
335
- } else if (i.nodeType === 8) if (i.data === it) h.push({ type: 2, index: o });
336
- else {
337
- let l = -1;
338
- for (; (l = i.data.indexOf(_, l + 1)) !== -1; ) h.push({ type: 7, index: o }), l += _.length - 1;
339
- }
340
- o++;
341
- }
342
- }
343
- static createElement(t, e) {
344
- const s = A.createElement("template");
345
- return s.innerHTML = t, s;
346
- }
347
- }
348
- function E(n, t, e = n, s) {
349
- var r, a;
350
- if (t === v) return t;
351
- let i = s !== void 0 ? (r = e._$Co) == null ? void 0 : r[s] : e._$Cl;
352
- const o = U(t) ? void 0 : t._$litDirective$;
353
- return (i == null ? void 0 : i.constructor) !== o && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), o === void 0 ? i = void 0 : (i = new o(n), i._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = E(n, i._$AS(n, t.values), i, s)), t;
354
- }
355
- class yt {
356
- constructor(t, e) {
357
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
358
- }
359
- get parentNode() {
360
- return this._$AM.parentNode;
361
- }
362
- get _$AU() {
363
- return this._$AM._$AU;
364
- }
365
- u(t) {
366
- const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? A).importNode(e, !0);
367
- g.currentNode = i;
368
- let o = g.nextNode(), r = 0, a = 0, h = s[0];
369
- for (; h !== void 0; ) {
370
- if (r === h.index) {
371
- let c;
372
- h.type === 2 ? c = new M(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new St(o, this, t)), this._$AV.push(c), h = s[++a];
373
- }
374
- r !== (h == null ? void 0 : h.index) && (o = g.nextNode(), r++);
375
- }
376
- return g.currentNode = A, i;
377
- }
378
- p(t) {
379
- let e = 0;
380
- for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
381
- }
382
- }
383
- class M {
384
- get _$AU() {
385
- var t;
386
- return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
387
- }
388
- constructor(t, e, s, i) {
389
- this.type = 2, this._$AH = d, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
390
- }
391
- get parentNode() {
392
- let t = this._$AA.parentNode;
393
- const e = this._$AM;
394
- return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
395
- }
396
- get startNode() {
397
- return this._$AA;
398
- }
399
- get endNode() {
400
- return this._$AB;
401
- }
402
- _$AI(t, e = this) {
403
- t = E(this, t, e), U(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== v && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : mt(t) ? this.k(t) : this._(t);
404
- }
405
- O(t) {
406
- return this._$AA.parentNode.insertBefore(t, this._$AB);
407
- }
408
- T(t) {
409
- this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
410
- }
411
- _(t) {
412
- this._$AH !== d && U(this._$AH) ? this._$AA.nextSibling.data = t : this.T(A.createTextNode(t)), this._$AH = t;
413
- }
414
- $(t) {
415
- var o;
416
- const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = x.createElement(rt(s.h, s.h[0]), this.options)), s);
417
- if (((o = this._$AH) == null ? void 0 : o._$AD) === i) this._$AH.p(e);
418
- else {
419
- const r = new yt(i, this), a = r.u(this.options);
420
- r.p(e), this.T(a), this._$AH = r;
421
- }
422
- }
423
- _$AC(t) {
424
- let e = Y.get(t.strings);
425
- return e === void 0 && Y.set(t.strings, e = new x(t)), e;
426
- }
427
- k(t) {
428
- V(this._$AH) || (this._$AH = [], this._$AR());
429
- const e = this._$AH;
430
- let s, i = 0;
431
- for (const o of t) i === e.length ? e.push(s = new M(this.O(P()), this.O(P()), this, this.options)) : s = e[i], s._$AI(o), i++;
432
- i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
433
- }
434
- _$AR(t = this._$AA.nextSibling, e) {
435
- var s;
436
- for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
437
- const i = t.nextSibling;
438
- t.remove(), t = i;
439
- }
440
- }
441
- setConnected(t) {
442
- var e;
443
- this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
444
- }
445
- }
446
- class R {
447
- get tagName() {
448
- return this.element.tagName;
449
- }
450
- get _$AU() {
451
- return this._$AM._$AU;
452
- }
453
- constructor(t, e, s, i, o) {
454
- this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = d;
455
- }
456
- _$AI(t, e = this, s, i) {
457
- const o = this.strings;
458
- let r = !1;
459
- if (o === void 0) t = E(this, t, e, 0), r = !U(t) || t !== this._$AH && t !== v, r && (this._$AH = t);
460
- else {
461
- const a = t;
462
- let h, c;
463
- for (t = o[0], h = 0; h < o.length - 1; h++) c = E(this, a[s + h], e, h), c === v && (c = this._$AH[h]), r || (r = !U(c) || c !== this._$AH[h]), c === d ? t = d : t !== d && (t += (c ?? "") + o[h + 1]), this._$AH[h] = c;
464
- }
465
- r && !i && this.j(t);
466
- }
467
- j(t) {
468
- t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
469
- }
470
- }
471
- class vt extends R {
472
- constructor() {
473
- super(...arguments), this.type = 3;
474
- }
475
- j(t) {
476
- this.element[this.name] = t === d ? void 0 : t;
477
- }
478
- }
479
- class Et extends R {
480
- constructor() {
481
- super(...arguments), this.type = 4;
482
- }
483
- j(t) {
484
- this.element.toggleAttribute(this.name, !!t && t !== d);
485
- }
486
- }
487
- class bt extends R {
488
- constructor(t, e, s, i, o) {
489
- super(t, e, s, i, o), this.type = 5;
490
- }
491
- _$AI(t, e = this) {
492
- if ((t = E(this, t, e, 0) ?? d) === v) return;
493
- const s = this._$AH, i = t === d && s !== d || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== d && (s === d || i);
494
- i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
495
- }
496
- handleEvent(t) {
497
- var e;
498
- typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
499
- }
500
- }
501
- class St {
502
- constructor(t, e, s) {
503
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
504
- }
505
- get _$AU() {
506
- return this._$AM._$AU;
507
- }
508
- _$AI(t) {
509
- E(this, t);
510
- }
511
- }
512
- const D = w.litHtmlPolyfillSupport;
513
- D == null || D(x, M), (w.litHtmlVersions ?? (w.litHtmlVersions = [])).push("3.2.1");
514
- const wt = (n, t, e) => {
515
- const s = (e == null ? void 0 : e.renderBefore) ?? t;
516
- let i = s._$litPart$;
517
- if (i === void 0) {
518
- const o = (e == null ? void 0 : e.renderBefore) ?? null;
519
- s._$litPart$ = i = new M(t.insertBefore(P(), o), o, void 0, e ?? {});
520
- }
521
- return i._$AI(n), i;
522
- };
523
- /**
524
- * @license
525
- * Copyright 2017 Google LLC
526
- * SPDX-License-Identifier: BSD-3-Clause
527
- */
528
- let C = class extends y {
529
- constructor() {
530
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
531
- }
532
- createRenderRoot() {
533
- var e;
534
- const t = super.createRenderRoot();
535
- return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
536
- }
537
- update(t) {
538
- const e = this.render();
539
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = wt(e, this.renderRoot, this.renderOptions);
540
- }
541
- connectedCallback() {
542
- var t;
543
- super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
544
- }
545
- disconnectedCallback() {
546
- var t;
547
- super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
548
- }
549
- render() {
550
- return v;
551
- }
552
- };
553
- var tt;
554
- C._$litElement$ = !0, C.finalized = !0, (tt = globalThis.litElementHydrateSupport) == null || tt.call(globalThis, { LitElement: C });
555
- const z = globalThis.litElementPolyfillSupport;
556
- z == null || z({ LitElement: C });
557
- (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
558
- /**
559
- * @license
560
- * Copyright 2017 Google LLC
561
- * SPDX-License-Identifier: BSD-3-Clause
562
- */
563
- const Ct = { attribute: !0, type: String, converter: H, reflect: !1, hasChanged: B }, Pt = (n = Ct, t, e) => {
564
- const { kind: s, metadata: i } = e;
565
- let o = globalThis.litPropertyMetadata.get(i);
566
- if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, n), s === "accessor") {
567
- const { name: r } = e;
568
- return { set(a) {
569
- const h = t.get.call(this);
570
- t.set.call(this, a), this.requestUpdate(r, h, n);
571
- }, init(a) {
572
- return a !== void 0 && this.P(r, void 0, n), a;
573
- } };
574
- }
575
- if (s === "setter") {
576
- const { name: r } = e;
577
- return function(a) {
578
- const h = this[r];
579
- t.call(this, a), this.requestUpdate(r, h, n);
580
- };
581
- }
582
- throw Error("Unsupported decorator location: " + s);
583
- };
584
- function Rt(n) {
585
- return (t, e) => typeof e == "object" ? Pt(n, t, e) : ((s, i, o) => {
586
- const r = i.hasOwnProperty(o);
587
- return i.constructor.createProperty(o, r ? { ...s, wrapped: !0 } : s), r ? Object.getOwnPropertyDescriptor(i, o) : void 0;
588
- })(n, t, e);
589
- }
590
- const I = /* @__PURE__ */ new Set(), Ut = () => {
591
- const n = document.documentElement.dir === "rtl" ? document.documentElement.dir : "ltr";
592
- I.forEach((t) => {
593
- t.setAttribute("dir", n);
594
- });
595
- }, xt = new MutationObserver(Ut);
596
- xt.observe(document.documentElement, {
597
- attributes: !0,
598
- attributeFilter: ["dir"]
599
- });
600
- const Mt = (n) => n.startManagingContentDirection !== void 0 || n.tagName === "LUZMO-THEME";
601
- function Ot(n) {
602
- class t extends n {
603
- /**
604
- * @private
605
- */
606
- get isLTR() {
607
- return this.dir === "ltr";
608
- }
609
- hasVisibleFocusInTree() {
610
- const i = ((o = document) => {
611
- var h;
612
- let r = o.activeElement;
613
- for (; r != null && r.shadowRoot && r.shadowRoot.activeElement; )
614
- r = r.shadowRoot.activeElement;
615
- const a = r ? [r] : [];
616
- for (; r; ) {
617
- const c = r.assignedSlot || r.parentElement || ((h = r.getRootNode()) == null ? void 0 : h.host);
618
- c && a.push(c), r = c;
619
- }
620
- return a;
621
- })(this.getRootNode())[0];
622
- if (!i)
623
- return !1;
624
- try {
625
- return i.matches(":focus-visible") || i.matches(".focus-visible");
626
- } catch {
627
- return i.matches(".focus-visible");
628
- }
629
- }
630
- connectedCallback() {
631
- if (!this.hasAttribute("dir")) {
632
- let s = this.assignedSlot || this.parentNode;
633
- for (; s !== document.documentElement && !Mt(s); )
634
- s = s.assignedSlot || // step into the shadow DOM of the parent of a slotted node
635
- s.parentNode || // DOM Element detected
636
- s.host;
637
- if (this.dir = s.dir === "rtl" ? s.dir : this.dir || "ltr", s === document.documentElement)
638
- I.add(this);
639
- else {
640
- const { localName: i } = s;
641
- i.search("-") > -1 && !customElements.get(i) ? customElements.whenDefined(i).then(() => {
642
- s.startManagingContentDirection(this);
643
- }) : s.startManagingContentDirection(this);
644
- }
645
- this._dirParent = s;
646
- }
647
- super.connectedCallback();
648
- }
649
- disconnectedCallback() {
650
- super.disconnectedCallback(), this._dirParent && (this._dirParent === document.documentElement ? I.delete(this) : this._dirParent.stopManagingContentDirection(this), this.removeAttribute("dir"));
651
- }
652
- }
653
- return t;
654
- }
655
- class kt extends Ot(C) {
656
- }
657
- export {
658
- wt as B,
659
- d as E,
660
- Ot as L,
661
- v as T,
662
- kt as a,
663
- Rt as n,
664
- ht as r,
665
- Ht as x
666
- };
@@ -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 s=require("./base-B7Pfl2if.cjs"),h=require("./query-BL-TJj7K.cjs"),c=require("./focusable-DGWL1v1p.cjs"),u=require("./like-anchor-Bmabl9ra.cjs"),p=require("./observe-slot-text-CrYB2Pj-.cjs"),d=":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 b=Object.defineProperty,l=(n,e,t,f)=>{for(var i=void 0,o=n.length-1,a;o>=0;o--)(a=n[o])&&(i=a(e,t,i)||i);return i&&b(e,t,i),i};class r extends p.ObserveSlotText(u.LikeAnchor(c.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[s.r(d)]}get focusElement(){return this}get hasLabel(){return this.slotHasContent}get buttonContent(){return[s.x` <slot name="icon" ?icon-only=${!this.hasLabel}></slot> `,s.x`
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 s.x`
23
- ${this.buttonContent}
24
- ${super.renderAnchor({id:"button",ariaHidden:!0,className:"button anchor hidden"})}
25
- `}renderButton(){return s.x` ${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([s.n({type:Boolean,reflect:!0})],r.prototype,"active");l([s.n({type:String})],r.prototype,"type");l([h.e(".anchor")],r.prototype,"anchorElement");exports.LuzmoButtonBase=r;