@luzmo/lucero 0.0.9 → 0.0.11

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 (153) 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/custom-elements.json +1 -1
  140. package/package.json +2 -1
  141. package/components/action-group-Uimj-MJP.cjs +0 -20
  142. package/components/base-B7Pfl2if.cjs +0 -40
  143. package/components/base-CawdqE7p.js +0 -666
  144. package/components/button-base-DmjYs2s9.cjs +0 -25
  145. package/components/clear-button-KdrF2jaV.cjs +0 -18
  146. package/components/close-button-DVGUppyd.cjs +0 -18
  147. package/components/color-loupe-SskbNeMp.cjs +0 -56
  148. package/components/field-group-DSY2HUoj.cjs +0 -23
  149. package/components/field-label-CjsQ3ujK.cjs +0 -25
  150. package/components/overlay-Deh6Ki6I.cjs +0 -47
  151. package/components/popover-BGOgXaka.cjs +0 -30
  152. package/components/progress-circle-NNbCMK2i.cjs +0 -33
  153. package/components/streaming-listener-KVex1WWB.cjs +0 -18
@@ -15,7 +15,8 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { a, r as s, x as d, n as i } from "../base-CawdqE7p.js";
18
+ import { unsafeCSS as a, html as s } from "lit";
19
+ import { a as d, n as i } from "../base-DNrOP9L3.js";
19
20
  const z = () => {
20
21
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
21
22
  const o = document.createElement("style");
@@ -29,15 +30,15 @@ var b = Object.defineProperty, n = (o, m, t, g) => {
29
30
  (c = o[e]) && (l = c(m, t, l) || l);
30
31
  return l && b(m, t, l), l;
31
32
  };
32
- const u = class u extends a {
33
+ const u = class u extends d {
33
34
  constructor() {
34
35
  super(...arguments), this.label = "", this.tooltip = "";
35
36
  }
36
37
  render() {
37
- return d` <span> ${this.label} </span> `;
38
+ return s` <span> ${this.label} </span> `;
38
39
  }
39
40
  };
40
- u.styles = s(f);
41
+ u.styles = a(f);
41
42
  let r = u;
42
43
  n([
43
44
  i({ type: String })
@@ -15,7 +15,7 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";const t=require("./base-B7Pfl2if.cjs"),r=require("./if-defined-B56xGmAg.cjs");var f=Object.defineProperty,n=(l,e,s,d)=>{for(var o=void 0,i=l.length-1,a;i>=0;i--)(a=l[i])&&(o=a(e,s,o)||o);return o&&f(e,s,o),o};function c(l){class e extends l{renderAnchor({id:d,className:o,ariaHidden:i,labelledby:a,tabindex:p,anchorContent:h=t.x`<slot></slot>`}){return t.x`
18
+ "use strict";const h=require("lit"),t=require("./base-DzbGOAPo.cjs"),r=require("./if-defined-Cv6xanXh.cjs");var f=Object.defineProperty,i=(l,e,s,d)=>{for(var o=void 0,n=l.length-1,a;n>=0;n--)(a=l[n])&&(o=a(e,s,o)||o);return o&&f(e,s,o),o};function $(l){class e extends l{renderAnchor({id:d,className:o,ariaHidden:n,labelledby:a,tabindex:p,anchorContent:c=h.html`<slot></slot>`}){return h.html`
19
19
  <a
20
20
  id=${d}
21
21
  class=${r.o(o)}
@@ -24,9 +24,9 @@
24
24
  target=${r.o(this.target)}
25
25
  aria-label=${r.o(this.label)}
26
26
  aria-labelledby=${r.o(a)}
27
- aria-hidden=${r.o(i?"true":void 0)}
27
+ aria-hidden=${r.o(n?"true":void 0)}
28
28
  tabindex=${r.o(p)}
29
29
  referrerpolicy=${r.o(this.referrerpolicy)}
30
30
  rel=${r.o(this.rel)}
31
- >${h}</a>
32
- `}}return n([t.n()],e.prototype,"download"),n([t.n()],e.prototype,"label"),n([t.n()],e.prototype,"href"),n([t.n()],e.prototype,"target"),n([t.n()],e.prototype,"referrerpolicy"),n([t.n()],e.prototype,"rel"),e}exports.LikeAnchor=c;
31
+ >${c}</a>
32
+ `}}return i([t.n()],e.prototype,"download"),i([t.n()],e.prototype,"label"),i([t.n()],e.prototype,"href"),i([t.n()],e.prototype,"target"),i([t.n()],e.prototype,"referrerpolicy"),i([t.n()],e.prototype,"rel"),e}exports.LikeAnchor=$;
@@ -15,12 +15,13 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { n as o, x as s } from "./base-CawdqE7p.js";
19
- import { o as e } from "./if-defined-BSAr_4u4.js";
20
- var $ = Object.defineProperty, l = (i, r, p, d) => {
21
- for (var t = void 0, a = i.length - 1, n; a >= 0; a--)
22
- (n = i[a]) && (t = n(r, p, t) || t);
23
- return t && $(r, p, t), t;
18
+ import { html as s } from "lit";
19
+ import { n as o } from "./base-DNrOP9L3.js";
20
+ import { o as e } from "./if-defined-CYpcjGCb.js";
21
+ var $ = Object.defineProperty, l = (i, r, n, d) => {
22
+ for (var t = void 0, a = i.length - 1, p; a >= 0; a--)
23
+ (p = i[a]) && (t = p(r, n, t) || t);
24
+ return t && $(r, n, t), t;
24
25
  };
25
26
  function b(i) {
26
27
  class r extends i {
@@ -28,7 +29,7 @@ function b(i) {
28
29
  id: d,
29
30
  className: t,
30
31
  ariaHidden: a,
31
- labelledby: n,
32
+ labelledby: p,
32
33
  tabindex: f,
33
34
  // prettier-ignore
34
35
  anchorContent: h = s`<slot></slot>`
@@ -41,7 +42,7 @@ function b(i) {
41
42
  download=${e(this.download)}
42
43
  target=${e(this.target)}
43
44
  aria-label=${e(this.label)}
44
- aria-labelledby=${e(n)}
45
+ aria-labelledby=${e(p)}
45
46
  aria-hidden=${e(a ? "true" : void 0)}
46
47
  tabindex=${e(f)}
47
48
  referrerpolicy=${e(this.referrerpolicy)}
@@ -0,0 +1,248 @@
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 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */
23
+ const y = globalThis, b = y.trustedTypes, U = b ? b.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, W = "$lit$", p = `lit$${Math.random().toFixed(9).slice(2)}$`, k = "?" + p, D = `<${k}>`, f = document, C = () => f.createComment(""), x = (r) => r === null || typeof r != "object" && typeof r != "function", I = Array.isArray, z = (r) => I(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", w = `[
24
+ \f\r]`, v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, O = /-->/g, R = />/g, u = RegExp(`>|${w}(?:([^\\s"'>=/]+)(${w}*=${w}*(?:[^
25
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), B = /'/g, L = /"/g, V = /^(?:script|style|textarea|title)$/i, H = Symbol.for("lit-noChange"), A = Symbol.for("lit-nothing"), P = /* @__PURE__ */ new WeakMap(), g = f.createTreeWalker(f, 129);
26
+ function j(r, t) {
27
+ if (!I(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
28
+ return U !== void 0 ? U.createHTML(t) : t;
29
+ }
30
+ const Z = (r, t) => {
31
+ const s = r.length - 1, i = [];
32
+ let e, h = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = v;
33
+ for (let a = 0; a < s; a++) {
34
+ const o = r[a];
35
+ let $, _, l = -1, c = 0;
36
+ for (; c < o.length && (n.lastIndex = c, _ = n.exec(o), _ !== null); ) c = n.lastIndex, n === v ? _[1] === "!--" ? n = O : _[1] !== void 0 ? n = R : _[2] !== void 0 ? (V.test(_[2]) && (e = RegExp("</" + _[2], "g")), n = u) : _[3] !== void 0 && (n = u) : n === u ? _[0] === ">" ? (n = e ?? v, l = -1) : _[1] === void 0 ? l = -2 : (l = n.lastIndex - _[2].length, $ = _[1], n = _[3] === void 0 ? u : _[3] === '"' ? L : B) : n === L || n === B ? n = u : n === O || n === R ? n = v : (n = u, e = void 0);
37
+ const d = n === u && r[a + 1].startsWith("/>") ? " " : "";
38
+ h += n === v ? o + D : l >= 0 ? (i.push($), o.slice(0, l) + W + o.slice(l) + p + d) : o + p + (l === -2 ? a : d);
39
+ }
40
+ return [j(r, h + (r[s] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
41
+ };
42
+ class N {
43
+ constructor({ strings: t, _$litType$: s }, i) {
44
+ let e;
45
+ this.parts = [];
46
+ let h = 0, n = 0;
47
+ const a = t.length - 1, o = this.parts, [$, _] = Z(t, s);
48
+ if (this.el = N.createElement($, i), g.currentNode = this.el.content, s === 2 || s === 3) {
49
+ const l = this.el.content.firstChild;
50
+ l.replaceWith(...l.childNodes);
51
+ }
52
+ for (; (e = g.nextNode()) !== null && o.length < a; ) {
53
+ if (e.nodeType === 1) {
54
+ if (e.hasAttributes()) for (const l of e.getAttributeNames()) if (l.endsWith(W)) {
55
+ const c = _[n++], d = e.getAttribute(l).split(p), T = /([.?@])?(.*)/.exec(c);
56
+ o.push({ type: 1, index: h, name: T[2], strings: d, ctor: T[1] === "." ? q : T[1] === "?" ? G : T[1] === "@" ? J : S }), e.removeAttribute(l);
57
+ } else l.startsWith(p) && (o.push({ type: 6, index: h }), e.removeAttribute(l));
58
+ if (V.test(e.tagName)) {
59
+ const l = e.textContent.split(p), c = l.length - 1;
60
+ if (c > 0) {
61
+ e.textContent = b ? b.emptyScript : "";
62
+ for (let d = 0; d < c; d++) e.append(l[d], C()), g.nextNode(), o.push({ type: 2, index: ++h });
63
+ e.append(l[c], C());
64
+ }
65
+ }
66
+ } else if (e.nodeType === 8) if (e.data === k) o.push({ type: 2, index: h });
67
+ else {
68
+ let l = -1;
69
+ for (; (l = e.data.indexOf(p, l + 1)) !== -1; ) o.push({ type: 7, index: h }), l += p.length - 1;
70
+ }
71
+ h++;
72
+ }
73
+ }
74
+ static createElement(t, s) {
75
+ const i = f.createElement("template");
76
+ return i.innerHTML = t, i;
77
+ }
78
+ }
79
+ function m(r, t, s = r, i) {
80
+ var n, a;
81
+ if (t === H) return t;
82
+ let e = i !== void 0 ? (n = s._$Co) == null ? void 0 : n[i] : s._$Cl;
83
+ const h = x(t) ? void 0 : t._$litDirective$;
84
+ return (e == null ? void 0 : e.constructor) !== h && ((a = e == null ? void 0 : e._$AO) == null || a.call(e, !1), h === void 0 ? e = void 0 : (e = new h(r), e._$AT(r, s, i)), i !== void 0 ? (s._$Co ?? (s._$Co = []))[i] = e : s._$Cl = e), e !== void 0 && (t = m(r, e._$AS(r, t.values), e, i)), t;
85
+ }
86
+ class F {
87
+ constructor(t, s) {
88
+ this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = s;
89
+ }
90
+ get parentNode() {
91
+ return this._$AM.parentNode;
92
+ }
93
+ get _$AU() {
94
+ return this._$AM._$AU;
95
+ }
96
+ u(t) {
97
+ const { el: { content: s }, parts: i } = this._$AD, e = ((t == null ? void 0 : t.creationScope) ?? f).importNode(s, !0);
98
+ g.currentNode = e;
99
+ let h = g.nextNode(), n = 0, a = 0, o = i[0];
100
+ for (; o !== void 0; ) {
101
+ if (n === o.index) {
102
+ let $;
103
+ o.type === 2 ? $ = new M(h, h.nextSibling, this, t) : o.type === 1 ? $ = new o.ctor(h, o.name, o.strings, this, t) : o.type === 6 && ($ = new K(h, this, t)), this._$AV.push($), o = i[++a];
104
+ }
105
+ n !== (o == null ? void 0 : o.index) && (h = g.nextNode(), n++);
106
+ }
107
+ return g.currentNode = f, e;
108
+ }
109
+ p(t) {
110
+ let s = 0;
111
+ for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, s), s += i.strings.length - 2) : i._$AI(t[s])), s++;
112
+ }
113
+ }
114
+ class M {
115
+ get _$AU() {
116
+ var t;
117
+ return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
118
+ }
119
+ constructor(t, s, i, e) {
120
+ this.type = 2, this._$AH = A, this._$AN = void 0, this._$AA = t, this._$AB = s, this._$AM = i, this.options = e, this._$Cv = (e == null ? void 0 : e.isConnected) ?? !0;
121
+ }
122
+ get parentNode() {
123
+ let t = this._$AA.parentNode;
124
+ const s = this._$AM;
125
+ return s !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = s.parentNode), t;
126
+ }
127
+ get startNode() {
128
+ return this._$AA;
129
+ }
130
+ get endNode() {
131
+ return this._$AB;
132
+ }
133
+ _$AI(t, s = this) {
134
+ t = m(this, t, s), x(t) ? t === A || t == null || t === "" ? (this._$AH !== A && this._$AR(), this._$AH = A) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : z(t) ? this.k(t) : this._(t);
135
+ }
136
+ O(t) {
137
+ return this._$AA.parentNode.insertBefore(t, this._$AB);
138
+ }
139
+ T(t) {
140
+ this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
141
+ }
142
+ _(t) {
143
+ this._$AH !== A && x(this._$AH) ? this._$AA.nextSibling.data = t : this.T(f.createTextNode(t)), this._$AH = t;
144
+ }
145
+ $(t) {
146
+ var h;
147
+ const { values: s, _$litType$: i } = t, e = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = N.createElement(j(i.h, i.h[0]), this.options)), i);
148
+ if (((h = this._$AH) == null ? void 0 : h._$AD) === e) this._$AH.p(s);
149
+ else {
150
+ const n = new F(e, this), a = n.u(this.options);
151
+ n.p(s), this.T(a), this._$AH = n;
152
+ }
153
+ }
154
+ _$AC(t) {
155
+ let s = P.get(t.strings);
156
+ return s === void 0 && P.set(t.strings, s = new N(t)), s;
157
+ }
158
+ k(t) {
159
+ I(this._$AH) || (this._$AH = [], this._$AR());
160
+ const s = this._$AH;
161
+ let i, e = 0;
162
+ for (const h of t) e === s.length ? s.push(i = new M(this.O(C()), this.O(C()), this, this.options)) : i = s[e], i._$AI(h), e++;
163
+ e < s.length && (this._$AR(i && i._$AB.nextSibling, e), s.length = e);
164
+ }
165
+ _$AR(t = this._$AA.nextSibling, s) {
166
+ var i;
167
+ for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, s); t && t !== this._$AB; ) {
168
+ const e = t.nextSibling;
169
+ t.remove(), t = e;
170
+ }
171
+ }
172
+ setConnected(t) {
173
+ var s;
174
+ this._$AM === void 0 && (this._$Cv = t, (s = this._$AP) == null || s.call(this, t));
175
+ }
176
+ }
177
+ class S {
178
+ get tagName() {
179
+ return this.element.tagName;
180
+ }
181
+ get _$AU() {
182
+ return this._$AM._$AU;
183
+ }
184
+ constructor(t, s, i, e, h) {
185
+ this.type = 1, this._$AH = A, this._$AN = void 0, this.element = t, this.name = s, this._$AM = e, this.options = h, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = A;
186
+ }
187
+ _$AI(t, s = this, i, e) {
188
+ const h = this.strings;
189
+ let n = !1;
190
+ if (h === void 0) t = m(this, t, s, 0), n = !x(t) || t !== this._$AH && t !== H, n && (this._$AH = t);
191
+ else {
192
+ const a = t;
193
+ let o, $;
194
+ for (t = h[0], o = 0; o < h.length - 1; o++) $ = m(this, a[i + o], s, o), $ === H && ($ = this._$AH[o]), n || (n = !x($) || $ !== this._$AH[o]), $ === A ? t = A : t !== A && (t += ($ ?? "") + h[o + 1]), this._$AH[o] = $;
195
+ }
196
+ n && !e && this.j(t);
197
+ }
198
+ j(t) {
199
+ t === A ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
200
+ }
201
+ }
202
+ class q extends S {
203
+ constructor() {
204
+ super(...arguments), this.type = 3;
205
+ }
206
+ j(t) {
207
+ this.element[this.name] = t === A ? void 0 : t;
208
+ }
209
+ }
210
+ class G extends S {
211
+ constructor() {
212
+ super(...arguments), this.type = 4;
213
+ }
214
+ j(t) {
215
+ this.element.toggleAttribute(this.name, !!t && t !== A);
216
+ }
217
+ }
218
+ class J extends S {
219
+ constructor(t, s, i, e, h) {
220
+ super(t, s, i, e, h), this.type = 5;
221
+ }
222
+ _$AI(t, s = this) {
223
+ if ((t = m(this, t, s, 0) ?? A) === H) return;
224
+ const i = this._$AH, e = t === A && i !== A || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, h = t !== A && (i === A || e);
225
+ e && this.element.removeEventListener(this.name, this, i), h && this.element.addEventListener(this.name, this, t), this._$AH = t;
226
+ }
227
+ handleEvent(t) {
228
+ var s;
229
+ typeof this._$AH == "function" ? this._$AH.call(((s = this.options) == null ? void 0 : s.host) ?? this.element, t) : this._$AH.handleEvent(t);
230
+ }
231
+ }
232
+ class K {
233
+ constructor(t, s, i) {
234
+ this.element = t, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = i;
235
+ }
236
+ get _$AU() {
237
+ return this._$AM._$AU;
238
+ }
239
+ _$AI(t) {
240
+ m(this, t);
241
+ }
242
+ }
243
+ const E = y.litHtmlPolyfillSupport;
244
+ E == null || E(N, M), (y.litHtmlVersions ?? (y.litHtmlVersions = [])).push("3.2.1");
245
+ export {
246
+ A as E,
247
+ H as T
248
+ };
@@ -0,0 +1,24 @@
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";/**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const H=globalThis,b=H.trustedTypes,U=b?b.createPolicy("lit-html",{createHTML:r=>r}):void 0,W="$lit$",p=`lit$${Math.random().toFixed(9).slice(2)}$`,k="?"+p,D=`<${k}>`,f=document,C=()=>f.createComment(""),x=r=>r===null||typeof r!="object"&&typeof r!="function",I=Array.isArray,z=r=>I(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",E=`[
23
+ \f\r]`,y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,O=/-->/g,R=/>/g,u=RegExp(`>|${E}(?:([^\\s"'>=/]+)(${E}*=${E}*(?:[^
24
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,L=/"/g,V=/^(?:script|style|textarea|title)$/i,m=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),P=new WeakMap,g=f.createTreeWalker(f,129);function j(r,t){if(!I(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return U!==void 0?U.createHTML(t):t}const Z=(r,t)=>{const s=r.length-1,i=[];let e,h=t===2?"<svg>":t===3?"<math>":"",n=y;for(let a=0;a<s;a++){const o=r[a];let A,c,l=-1,_=0;for(;_<o.length&&(n.lastIndex=_,c=n.exec(o),c!==null);)_=n.lastIndex,n===y?c[1]==="!--"?n=O:c[1]!==void 0?n=R:c[2]!==void 0?(V.test(c[2])&&(e=RegExp("</"+c[2],"g")),n=u):c[3]!==void 0&&(n=u):n===u?c[0]===">"?(n=e??y,l=-1):c[1]===void 0?l=-2:(l=n.lastIndex-c[2].length,A=c[1],n=c[3]===void 0?u:c[3]==='"'?L:B):n===L||n===B?n=u:n===O||n===R?n=y:(n=u,e=void 0);const d=n===u&&r[a+1].startsWith("/>")?" ":"";h+=n===y?o+D:l>=0?(i.push(A),o.slice(0,l)+W+o.slice(l)+p+d):o+p+(l===-2?a:d)}return[j(r,h+(r[s]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class N{constructor({strings:t,_$litType$:s},i){let e;this.parts=[];let h=0,n=0;const a=t.length-1,o=this.parts,[A,c]=Z(t,s);if(this.el=N.createElement(A,i),g.currentNode=this.el.content,s===2||s===3){const l=this.el.content.firstChild;l.replaceWith(...l.childNodes)}for(;(e=g.nextNode())!==null&&o.length<a;){if(e.nodeType===1){if(e.hasAttributes())for(const l of e.getAttributeNames())if(l.endsWith(W)){const _=c[n++],d=e.getAttribute(l).split(p),T=/([.?@])?(.*)/.exec(_);o.push({type:1,index:h,name:T[2],strings:d,ctor:T[1]==="."?q:T[1]==="?"?G:T[1]==="@"?J:S}),e.removeAttribute(l)}else l.startsWith(p)&&(o.push({type:6,index:h}),e.removeAttribute(l));if(V.test(e.tagName)){const l=e.textContent.split(p),_=l.length-1;if(_>0){e.textContent=b?b.emptyScript:"";for(let d=0;d<_;d++)e.append(l[d],C()),g.nextNode(),o.push({type:2,index:++h});e.append(l[_],C())}}}else if(e.nodeType===8)if(e.data===k)o.push({type:2,index:h});else{let l=-1;for(;(l=e.data.indexOf(p,l+1))!==-1;)o.push({type:7,index:h}),l+=p.length-1}h++}}static createElement(t,s){const i=f.createElement("template");return i.innerHTML=t,i}}function v(r,t,s=r,i){var n,a;if(t===m)return t;let e=i!==void 0?(n=s._$Co)==null?void 0:n[i]:s._$Cl;const h=x(t)?void 0:t._$litDirective$;return(e==null?void 0:e.constructor)!==h&&((a=e==null?void 0:e._$AO)==null||a.call(e,!1),h===void 0?e=void 0:(e=new h(r),e._$AT(r,s,i)),i!==void 0?(s._$Co??(s._$Co=[]))[i]=e:s._$Cl=e),e!==void 0&&(t=v(r,e._$AS(r,t.values),e,i)),t}class F{constructor(t,s){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=s}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:s},parts:i}=this._$AD,e=((t==null?void 0:t.creationScope)??f).importNode(s,!0);g.currentNode=e;let h=g.nextNode(),n=0,a=0,o=i[0];for(;o!==void 0;){if(n===o.index){let A;o.type===2?A=new M(h,h.nextSibling,this,t):o.type===1?A=new o.ctor(h,o.name,o.strings,this,t):o.type===6&&(A=new K(h,this,t)),this._$AV.push(A),o=i[++a]}n!==(o==null?void 0:o.index)&&(h=g.nextNode(),n++)}return g.currentNode=f,e}p(t){let s=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,s),s+=i.strings.length-2):i._$AI(t[s])),s++}}class M{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,s,i,e){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=s,this._$AM=i,this.options=e,this._$Cv=(e==null?void 0:e.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const s=this._$AM;return s!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=s.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,s=this){t=v(this,t,s),x(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==m&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):z(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==$&&x(this._$AH)?this._$AA.nextSibling.data=t:this.T(f.createTextNode(t)),this._$AH=t}$(t){var h;const{values:s,_$litType$:i}=t,e=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=N.createElement(j(i.h,i.h[0]),this.options)),i);if(((h=this._$AH)==null?void 0:h._$AD)===e)this._$AH.p(s);else{const n=new F(e,this),a=n.u(this.options);n.p(s),this.T(a),this._$AH=n}}_$AC(t){let s=P.get(t.strings);return s===void 0&&P.set(t.strings,s=new N(t)),s}k(t){I(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,e=0;for(const h of t)e===s.length?s.push(i=new M(this.O(C()),this.O(C()),this,this.options)):i=s[e],i._$AI(h),e++;e<s.length&&(this._$AR(i&&i._$AB.nextSibling,e),s.length=e)}_$AR(t=this._$AA.nextSibling,s){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,s);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var s;this._$AM===void 0&&(this._$Cv=t,(s=this._$AP)==null||s.call(this,t))}}class S{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,s,i,e,h){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=s,this._$AM=e,this.options=h,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=$}_$AI(t,s=this,i,e){const h=this.strings;let n=!1;if(h===void 0)t=v(this,t,s,0),n=!x(t)||t!==this._$AH&&t!==m,n&&(this._$AH=t);else{const a=t;let o,A;for(t=h[0],o=0;o<h.length-1;o++)A=v(this,a[i+o],s,o),A===m&&(A=this._$AH[o]),n||(n=!x(A)||A!==this._$AH[o]),A===$?t=$:t!==$&&(t+=(A??"")+h[o+1]),this._$AH[o]=A}n&&!e&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class q extends S{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}}class G extends S{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==$)}}class J extends S{constructor(t,s,i,e,h){super(t,s,i,e,h),this.type=5}_$AI(t,s=this){if((t=v(this,t,s,0)??$)===m)return;const i=this._$AH,e=t===$&&i!==$||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,h=t!==$&&(i===$||e);e&&this.element.removeEventListener(this.name,this,i),h&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var s;typeof this._$AH=="function"?this._$AH.call(((s=this.options)==null?void 0:s.host)??this.element,t):this._$AH.handleEvent(t)}}class K{constructor(t,s,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=s,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){v(this,t)}}const w=H.litHtmlPolyfillSupport;w==null||w(N,M),(H.litHtmlVersions??(H.litHtmlVersions=[])).push("3.2.1");exports.E=$;exports.T=m;
@@ -15,7 +15,7 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";const d=require("./base-B7Pfl2if.cjs"),r=require("./if-defined-B56xGmAg.cjs"),a=require("./condition-attribute-with-id-DrQYZzFS.cjs"),s=require("./random-id-CqvckpWe.cjs");class l{constructor(e,{mode:i}={mode:"internal"}){this.mode="internal",this.handleSlotchange=({target:t})=>{this.handleHelpText(t),this.handleNegativeHelpText(t)},this.host=e,this.id=`luzmo-help-text-${s.randomID()}`,this.mode=i}get isInternal(){return this.mode==="internal"}render(e){return d.x`
18
+ "use strict";const d=require("lit"),r=require("./if-defined-Cv6xanXh.cjs"),l=require("./condition-attribute-with-id-DrQYZzFS.cjs"),s=require("./random-id-CqvckpWe.cjs");class a{constructor(e,{mode:i}={mode:"internal"}){this.mode="internal",this.handleSlotchange=({target:t})=>{this.handleHelpText(t),this.handleNegativeHelpText(t)},this.host=e,this.id=`luzmo-help-text-${s.randomID()}`,this.mode=i}get isInternal(){return this.mode==="internal"}render(e){return d.html`
19
19
  <div
20
20
  id=${r.o(this.isInternal?this.id:void 0)}
21
21
  aria-live="assertive"
@@ -27,4 +27,4 @@
27
27
  <slot name="help-text"></slot>
28
28
  </slot>
29
29
  </div>
30
- `}addId(){const e=this.helpTextElement?this.helpTextElement.id:this.id;this.conditionId=a.conditionAttributeWithId(this.host,"aria-describedby",e),this.host.hasAttribute("tabindex")&&(this.previousTabindex=Number.parseFloat(this.host.getAttribute("tabindex"))),this.host.tabIndex=0}removeId(){this.conditionId&&(this.conditionId(),delete this.conditionId),!this.helpTextElement&&(this.previousTabindex?this.host.tabIndex=this.previousTabindex:this.host.removeAttribute("tabindex"))}handleHelpText(e){if(this.isInternal)return;this.helpTextElement&&this.helpTextElement.id===this.id&&this.helpTextElement.removeAttribute("id"),this.removeId();const t=e.assignedElements()[0];this.helpTextElement=t,t&&(t.id||(t.id=this.id),this.addId())}handleNegativeHelpText(e){if(e.name!=="negative-help-text")return;e.assignedElements().forEach(t=>t.variant="negative")}}function o(n,{mode:e}={mode:"internal"}){class i extends n{constructor(){super(...arguments),this.helpTextManager=new l(this,{mode:e})}get helpTextId(){return this.helpTextManager.id}renderHelpText(h){return this.helpTextManager.render(h)}}return i}exports.ManageHelpText=o;
30
+ `}addId(){const e=this.helpTextElement?this.helpTextElement.id:this.id;this.conditionId=l.conditionAttributeWithId(this.host,"aria-describedby",e),this.host.hasAttribute("tabindex")&&(this.previousTabindex=Number.parseFloat(this.host.getAttribute("tabindex"))),this.host.tabIndex=0}removeId(){this.conditionId&&(this.conditionId(),delete this.conditionId),!this.helpTextElement&&(this.previousTabindex?this.host.tabIndex=this.previousTabindex:this.host.removeAttribute("tabindex"))}handleHelpText(e){if(this.isInternal)return;this.helpTextElement&&this.helpTextElement.id===this.id&&this.helpTextElement.removeAttribute("id"),this.removeId();const t=e.assignedElements()[0];this.helpTextElement=t,t&&(t.id||(t.id=this.id),this.addId())}handleNegativeHelpText(e){if(e.name!=="negative-help-text")return;e.assignedElements().forEach(t=>t.variant="negative")}}function o(n,{mode:e}={mode:"internal"}){class i extends n{constructor(){super(...arguments),this.helpTextManager=new a(this,{mode:e})}get helpTextId(){return this.helpTextManager.id}renderHelpText(h){return this.helpTextManager.render(h)}}return i}exports.ManageHelpText=o;
@@ -15,11 +15,11 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { x as r } from "./base-CawdqE7p.js";
19
- import { o as d } from "./if-defined-BSAr_4u4.js";
20
- import { c as a } from "./condition-attribute-with-id-Dv4lSRbe.js";
18
+ import { html as r } from "lit";
19
+ import { o as d } from "./if-defined-CYpcjGCb.js";
20
+ import { c as l } from "./condition-attribute-with-id-Dv4lSRbe.js";
21
21
  import { r as n } from "./random-id-ByCz1xaq.js";
22
- class l {
22
+ class a {
23
23
  constructor(e, { mode: i } = { mode: "internal" }) {
24
24
  this.mode = "internal", this.handleSlotchange = ({
25
25
  target: t
@@ -47,7 +47,7 @@ class l {
47
47
  }
48
48
  addId() {
49
49
  const e = this.helpTextElement ? this.helpTextElement.id : this.id;
50
- this.conditionId = a(
50
+ this.conditionId = l(
51
51
  this.host,
52
52
  "aria-describedby",
53
53
  e
@@ -76,7 +76,7 @@ class l {
76
76
  function u(s, { mode: e } = { mode: "internal" }) {
77
77
  class i extends s {
78
78
  constructor() {
79
- super(...arguments), this.helpTextManager = new l(this, { mode: e });
79
+ super(...arguments), this.helpTextManager = new a(this, { mode: e });
80
80
  }
81
81
  get helpTextId() {
82
82
  return this.helpTextManager.id;
@@ -15,4 +15,4 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-DnWavOZD.cjs");exports.LuzmoMenu=e.LuzmoMenu;exports.LuzmoMenuDivider=e.LuzmoMenuDivider;exports.LuzmoMenuGroup=e.LuzmoMenuGroup;exports.LuzmoMenuItem=e.LuzmoMenuItem;exports.MenuItemAddedOrUpdatedEvent=e.MenuItemAddedOrUpdatedEvent;
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../index-BYumXRH5.cjs");exports.LuzmoMenu=e.LuzmoMenu;exports.LuzmoMenuDivider=e.LuzmoMenuDivider;exports.LuzmoMenuGroup=e.LuzmoMenuGroup;exports.LuzmoMenuItem=e.LuzmoMenuItem;exports.MenuItemAddedOrUpdatedEvent=e.MenuItemAddedOrUpdatedEvent;
@@ -15,7 +15,7 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { L as u, a as m, b as c, c as z, M as n } from "../index-CMvLpPKD.js";
18
+ import { L as u, a as m, b as c, c as z, M as n } from "../index-C2qG2Sm8.js";
19
19
  const l = () => {
20
20
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
21
21
  const o = document.createElement("style");
@@ -15,7 +15,7 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../base-B7Pfl2if.cjs"),u=require("../sized-mixin-D9LkrMjb.cjs");require("../text-field/index.cjs");const p=require("../manage-help-text-OHXDgxyj.cjs"),h=":host{display:inline-block}:host luzmo-text-field{width:100%}";var d=Object.defineProperty,l=(n,i,r,g)=>{for(var a=void 0,o=n.length-1,s;o>=0;o--)(s=n[o])&&(a=s(i,r,a)||a);return a&&d(i,r,a),a};class t extends p.ManageHelpText(u.SizedMixin(e.LuzmoElement,{noDefaultSize:!0})){constructor(){super(...arguments),this.allowedKeys="",this.i18nPlaceholder={},this.type="text",this.grows=!1,this.maxlength=-1,this.minlength=-1,this.multiline=!1,this.rows=-1,this.quiet=!1,this.disabled=!1,this.required=!1,this.readonly=!1,this.language="en",this.defaultLanguage="en",this.value={}}static get styles(){return[e.r(h)]}get _localizedValue(){const i={...this.value};return i[this.language]??i[this.defaultLanguage]??Object.values(i)[0]??""}get _localizedPlaceholder(){const i={...this.i18nPlaceholder};return i[this.language]??i[this.defaultLanguage]??Object.values(i)[0]??""}handleChange(i){i.stopPropagation(),i.preventDefault();const r=i.target;this.value[this.language]!==r.value&&(this.value={...this.value,[this.language]:r.value},this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.value}})))}render(){return e.x`
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("lit"),t=require("../base-DzbGOAPo.cjs"),p=require("../sized-mixin-BEemErtP.cjs");require("../text-field/index.cjs");const h=require("../manage-help-text-BKlmmlgp.cjs"),d=":host{display:inline-block}:host luzmo-text-field{width:100%}";var g=Object.defineProperty,l=(n,i,r,y)=>{for(var a=void 0,o=n.length-1,s;o>=0;o--)(s=n[o])&&(a=s(i,r,a)||a);return a&&g(i,r,a),a};class e extends h.ManageHelpText(p.SizedMixin(t.LuzmoElement,{noDefaultSize:!0})){constructor(){super(...arguments),this.allowedKeys="",this.i18nPlaceholder={},this.type="text",this.grows=!1,this.maxlength=-1,this.minlength=-1,this.multiline=!1,this.rows=-1,this.quiet=!1,this.disabled=!1,this.required=!1,this.readonly=!1,this.language="en",this.defaultLanguage="en",this.value={}}static get styles(){return[u.unsafeCSS(d)]}get _localizedValue(){const i={...this.value};return i[this.language]??i[this.defaultLanguage]??Object.values(i)[0]??""}get _localizedPlaceholder(){const i={...this.i18nPlaceholder};return i[this.language]??i[this.defaultLanguage]??Object.values(i)[0]??""}handleChange(i){i.stopPropagation(),i.preventDefault();const r=i.target;this.value[this.language]!==r.value&&(this.value={...this.value,[this.language]:r.value},this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,cancelable:!0,detail:{value:this.value}})))}render(){return u.html`
19
19
  <luzmo-text-field
20
20
  .value=${this._localizedValue}
21
21
  .size=${this.size}
@@ -36,4 +36,4 @@
36
36
  @input=${this.handleChange}
37
37
  @change=${this.handleChange}
38
38
  ></luzmo-text-field>
39
- `}}l([e.n({attribute:"allowed-keys"})],t.prototype,"allowedKeys");l([e.n({type:String,reflect:!0})],t.prototype,"name");l([e.n({type:Object,attribute:"i18n-placeholder"})],t.prototype,"i18nPlaceholder");l([e.n({attribute:"type",reflect:!0})],t.prototype,"type");l([e.n()],t.prototype,"pattern");l([e.n({type:Boolean,reflect:!0})],t.prototype,"grows");l([e.n({type:Number})],t.prototype,"maxlength");l([e.n({type:Number})],t.prototype,"minlength");l([e.n({type:Boolean,reflect:!0})],t.prototype,"multiline");l([e.n({type:Number})],t.prototype,"rows");l([e.n({type:Boolean,reflect:!0})],t.prototype,"quiet");l([e.n({type:Boolean,reflect:!0})],t.prototype,"disabled");l([e.n({type:Boolean,reflect:!0})],t.prototype,"required");l([e.n({type:Boolean,reflect:!0})],t.prototype,"readonly");l([e.n({type:String,reflect:!0})],t.prototype,"autocomplete");l([e.n({type:String,reflect:!0})],t.prototype,"language");l([e.n({type:String,reflect:!0})],t.prototype,"defaultLanguage");l([e.n({type:Object,reflect:!0})],t.prototype,"value");customElements.get("luzmo-multi-language-field")||customElements.define("luzmo-multi-language-field",t);exports.LuzmoMultiLangField=t;
39
+ `}}l([t.n({attribute:"allowed-keys"})],e.prototype,"allowedKeys");l([t.n({type:String,reflect:!0})],e.prototype,"name");l([t.n({type:Object,attribute:"i18n-placeholder"})],e.prototype,"i18nPlaceholder");l([t.n({attribute:"type",reflect:!0})],e.prototype,"type");l([t.n()],e.prototype,"pattern");l([t.n({type:Boolean,reflect:!0})],e.prototype,"grows");l([t.n({type:Number})],e.prototype,"maxlength");l([t.n({type:Number})],e.prototype,"minlength");l([t.n({type:Boolean,reflect:!0})],e.prototype,"multiline");l([t.n({type:Number})],e.prototype,"rows");l([t.n({type:Boolean,reflect:!0})],e.prototype,"quiet");l([t.n({type:Boolean,reflect:!0})],e.prototype,"disabled");l([t.n({type:Boolean,reflect:!0})],e.prototype,"required");l([t.n({type:Boolean,reflect:!0})],e.prototype,"readonly");l([t.n({type:String,reflect:!0})],e.prototype,"autocomplete");l([t.n({type:String,reflect:!0})],e.prototype,"language");l([t.n({type:String,reflect:!0})],e.prototype,"defaultLanguage");l([t.n({type:Object,reflect:!0})],e.prototype,"value");customElements.get("luzmo-multi-language-field")||customElements.define("luzmo-multi-language-field",e);exports.LuzmoMultiLangField=e;
@@ -15,10 +15,11 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { a as m, r as c, x as d, n as e } from "../base-CawdqE7p.js";
19
- import { S as p } from "../sized-mixin-BxMraZLS.js";
18
+ import { unsafeCSS as m, html as c } from "lit";
19
+ import { a as d, n as e } from "../base-DNrOP9L3.js";
20
+ import { S as p } from "../sized-mixin-PyCYpyQq.js";
20
21
  import "../text-field/index.js";
21
- import { M as z } from "../manage-help-text-Cozl9Sgn.js";
22
+ import { M as z } from "../manage-help-text-BzWK2v8i.js";
22
23
  const s = () => {
23
24
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
24
25
  const r = document.createElement("style");
@@ -33,7 +34,7 @@ var h = Object.defineProperty, l = (r, t, i, f) => {
33
34
  return u && h(t, i, u), u;
34
35
  };
35
36
  class o extends z(
36
- p(m, {
37
+ p(d, {
37
38
  noDefaultSize: !0
38
39
  })
39
40
  ) {
@@ -41,7 +42,7 @@ class o extends z(
41
42
  super(...arguments), this.allowedKeys = "", this.i18nPlaceholder = {}, this.type = "text", this.grows = !1, this.maxlength = -1, this.minlength = -1, this.multiline = !1, this.rows = -1, this.quiet = !1, this.disabled = !1, this.required = !1, this.readonly = !1, this.language = "en", this.defaultLanguage = "en", this.value = {};
42
43
  }
43
44
  static get styles() {
44
- return [c(g)];
45
+ return [m(g)];
45
46
  }
46
47
  get _localizedValue() {
47
48
  const t = { ...this.value };
@@ -64,7 +65,7 @@ class o extends z(
64
65
  ));
65
66
  }
66
67
  render() {
67
- return d`
68
+ return c`
68
69
  <luzmo-text-field
69
70
  .value=${this._localizedValue}
70
71
  .size=${this.size}