@luzmo/lucero 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/components/accordion/index.cjs +5 -5
  2. package/components/accordion/index.js +9 -10
  3. package/components/action-bar/index.cjs +4 -4
  4. package/components/action-bar/index.js +10 -10
  5. package/components/action-button/index.cjs +2 -2
  6. package/components/action-button/index.js +4 -4
  7. package/components/action-group/index.cjs +1 -1
  8. package/components/action-group/index.js +1 -1
  9. package/components/action-group-B59CWNnT.cjs +20 -0
  10. package/components/{action-group-Bf28z235.js → action-group-DzT5e9uS.js} +8 -9
  11. package/components/action-menu/index.cjs +9 -9
  12. package/components/action-menu/index.js +8 -9
  13. package/components/avatar/index.cjs +3 -3
  14. package/components/avatar/index.js +6 -7
  15. package/components/base-CCsOyfm4.js +632 -0
  16. package/components/base-CaRKlVkL.cjs +36 -0
  17. package/components/button/index.cjs +2 -2
  18. package/components/button/index.js +7 -7
  19. package/components/{button-base-CDLQV7Vk.js → button-base-BUylwU1F.js} +5 -6
  20. package/components/button-base-D62oiPcu.cjs +25 -0
  21. package/components/button-group/index.cjs +1 -1
  22. package/components/button-group/index.js +6 -6
  23. package/components/checkbox/index.cjs +4 -4
  24. package/components/checkbox/index.js +4 -4
  25. package/components/{checkbox-mixin-DXUIwtea.js → checkbox-mixin-CM4VUJxF.js} +9 -10
  26. package/components/{checkbox-mixin-DaXMsrtV.cjs → checkbox-mixin-CifGmiLR.cjs} +3 -3
  27. package/components/{clear-button-Dh2Mq0cc.js → clear-button-BmUyRVoz.js} +4 -4
  28. package/components/clear-button-Cc5-XUOJ.cjs +18 -0
  29. package/components/{close-button-BsYkXOVh.js → close-button-BekXo6bQ.js} +10 -10
  30. package/components/close-button-Bf8yzpLd.cjs +18 -0
  31. package/components/color-area/index.cjs +6 -6
  32. package/components/color-area/index.js +10 -11
  33. package/components/color-field/index.cjs +2 -2
  34. package/components/color-field/index.js +3 -3
  35. package/components/color-handle/index.cjs +2 -2
  36. package/components/color-handle/index.js +6 -6
  37. package/components/color-loupe/index.cjs +1 -1
  38. package/components/color-loupe/index.js +1 -1
  39. package/components/color-loupe-CLzp2MiI.cjs +56 -0
  40. package/components/{color-loupe-BCfIVFkB.js → color-loupe-DiegGLZu.js} +4 -4
  41. package/components/color-menu/index.cjs +5 -5
  42. package/components/color-menu/index.js +5 -7
  43. package/components/color-picker/index.cjs +4 -4
  44. package/components/color-picker/index.js +11 -13
  45. package/components/color-slider/index.cjs +7 -7
  46. package/components/color-slider/index.js +6 -7
  47. package/components/divider/index.cjs +1 -1
  48. package/components/divider/index.js +6 -6
  49. package/components/field-group/index.cjs +1 -1
  50. package/components/field-group/index.js +1 -1
  51. package/components/{field-group-CwZULltm.js → field-group-BPZvGJi1.js} +6 -6
  52. package/components/field-group-CodR_26L.cjs +23 -0
  53. package/components/field-label/index.cjs +1 -1
  54. package/components/field-label/index.js +1 -1
  55. package/components/{field-label-C3HFlH91.js → field-label-6AaW05kA.js} +7 -8
  56. package/components/field-label-B91K6moC.cjs +25 -0
  57. package/components/focusable-BFdecx5l.cjs +18 -0
  58. package/components/{focusable-zT9NFFYs.js → focusable-CxA_NMK_.js} +2 -1
  59. package/components/icon/index.cjs +1 -1
  60. package/components/icon/index.js +6 -6
  61. package/components/index-Cg_y7WKM.cjs +77 -0
  62. package/components/{index-C2qG2Sm8.js → index-QeYYAZQR.js} +15 -18
  63. package/components/index.cjs +1 -1
  64. package/components/index.js +16 -16
  65. package/components/infield-button/index.cjs +2 -2
  66. package/components/infield-button/index.js +4 -4
  67. package/components/label/index.cjs +1 -1
  68. package/components/label/index.js +5 -5
  69. package/components/{like-anchor-DoJWh4Uu.js → like-anchor-D7tY6am5.js} +21 -21
  70. package/components/like-anchor-b3cNzw52.cjs +32 -0
  71. package/components/{manage-help-text-BzWK2v8i.js → manage-help-text-CmE_nfjl.js} +8 -8
  72. package/components/{manage-help-text-BKlmmlgp.cjs → manage-help-text-CoX77cTJ.cjs} +3 -3
  73. package/components/menu/index.cjs +1 -1
  74. package/components/menu/index.js +1 -1
  75. package/components/multi-language-field/index.cjs +2 -2
  76. package/components/multi-language-field/index.js +7 -7
  77. package/components/number-field/index.cjs +4 -4
  78. package/components/number-field/index.js +16 -17
  79. package/components/observe-slot-text-ByPG1Lqw.cjs +18 -0
  80. package/components/{observe-slot-text-BG0H7bQK.js → observe-slot-text-CugmOzNZ.js} +20 -21
  81. package/components/overlay/index.cjs +7 -7
  82. package/components/overlay/index.js +45 -49
  83. package/components/overlay-BWBJGJN_.cjs +47 -0
  84. package/components/{overlay-D7EbnA6E.js → overlay-CtdbWiFs.js} +71 -74
  85. package/components/{pending-state-DHXuiejX.js → pending-state-B_JeaE62.js} +2 -2
  86. package/components/{pending-state-BHCOneQ7.cjs → pending-state-DWvTsSoS.cjs} +2 -2
  87. package/components/picker/index.cjs +1 -1
  88. package/components/picker/index.js +2 -2
  89. package/components/picker-CaC1rQOK.cjs +123 -0
  90. package/components/{picker-ChtCbFLB.js → picker-DwbcFve2.js} +109 -140
  91. package/components/popover/index.cjs +1 -1
  92. package/components/popover/index.js +1 -1
  93. package/components/popover-C4w3aY8m.cjs +30 -0
  94. package/components/{popover-bg0EQQ8p.js → popover-DLFHilGS.js} +6 -7
  95. package/components/progress-circle/index.cjs +1 -1
  96. package/components/progress-circle/index.js +1 -1
  97. package/components/progress-circle-BXyXtMcs.cjs +33 -0
  98. package/components/{progress-circle-BT2qW7LK.js → progress-circle-CUCJ_Ehs.js} +6 -7
  99. package/components/radio/index.cjs +2 -2
  100. package/components/radio/index.js +9 -10
  101. package/components/search/index.cjs +7 -7
  102. package/components/search/index.js +4 -5
  103. package/components/{base-BjTwmyRF.cjs → sized-mixin-DcvJLFeo.cjs} +1 -5
  104. package/components/{sized-mixin-PyCYpyQq.js → sized-mixin-cJbo3PKR.js} +5 -5
  105. package/components/slider/index.cjs +1 -1
  106. package/components/slider/index.js +6 -6
  107. package/components/{streaming-listener-wjMvsv4N.js → streaming-listener-BgCzt2TI.js} +5 -6
  108. package/components/streaming-listener-C2bsIc4J.cjs +18 -0
  109. package/components/swatch/index.cjs +7 -7
  110. package/components/swatch/index.js +11 -12
  111. package/components/switch/index.cjs +2 -2
  112. package/components/switch/index.js +5 -5
  113. package/components/tags/index.cjs +4 -4
  114. package/components/tags/index.js +12 -13
  115. package/components/text-field/index.cjs +3 -3
  116. package/components/text-field/index.js +8 -8
  117. package/components/text-field-BX_aHXSW.js +288 -0
  118. package/components/text-field-DAr2RyH9.cjs +81 -0
  119. package/components/toast/index.cjs +5 -5
  120. package/components/toast/index.js +5 -5
  121. package/components/tooltip/index.cjs +4 -4
  122. package/components/tooltip/index.js +6 -7
  123. package/components/unit-input/index.cjs +6 -6
  124. package/components/unit-input/index.js +5 -6
  125. package/components/utils.cjs +1 -1
  126. package/components/utils.js +4 -4
  127. package/package.json +1 -1
  128. package/components/action-group-BBoV2VL9.cjs +0 -20
  129. package/components/async-directive-CV2MII86.cjs +0 -22
  130. package/components/async-directive-FGzMycjH.js +0 -82
  131. package/components/base-D76d76ww.js +0 -26
  132. package/components/base-DNrOP9L3.js +0 -391
  133. package/components/base-DzbGOAPo.cjs +0 -30
  134. package/components/button-base-C1ceE1LF.cjs +0 -25
  135. package/components/clear-button-pnT9_M8M.cjs +0 -18
  136. package/components/close-button-CPtjRQ0R.cjs +0 -18
  137. package/components/color-loupe-DIBrhG1Y.cjs +0 -56
  138. package/components/directive-C7oCP5Bh.cjs +0 -22
  139. package/components/directive-helpers-BLDZnGQv.js +0 -28
  140. package/components/directive-helpers-C2vOfhFx.cjs +0 -22
  141. package/components/directive-oAbCiebi.js +0 -44
  142. package/components/field-group-eICRTHzI.cjs +0 -23
  143. package/components/field-label-DOIVL4S4.cjs +0 -25
  144. package/components/focusable-zn6qaMtV.cjs +0 -18
  145. package/components/if-defined-CYpcjGCb.js +0 -27
  146. package/components/if-defined-Cv6xanXh.cjs +0 -22
  147. package/components/index-BYumXRH5.cjs +0 -77
  148. package/components/like-anchor-CmIcmz5k.cjs +0 -32
  149. package/components/lit-html-B3ugcwD9.js +0 -248
  150. package/components/lit-html-p4Oxv2-5.cjs +0 -24
  151. package/components/observe-slot-text-CP_EB97X.cjs +0 -18
  152. package/components/overlay-B1JDPmUJ.cjs +0 -47
  153. package/components/picker-CLKdhX0B.cjs +0 -127
  154. package/components/popover-CdkB6GFb.cjs +0 -30
  155. package/components/progress-circle-DTeqfeun.cjs +0 -33
  156. package/components/query-BL-TJj7K.cjs +0 -22
  157. package/components/query-D_KR_GUc.js +0 -51
  158. package/components/query-assigned-elements-DjfhL1cl.js +0 -36
  159. package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
  160. package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
  161. package/components/query-assigned-nodes-C76XVPWY.js +0 -36
  162. package/components/sized-mixin-BEemErtP.cjs +0 -18
  163. package/components/state-BG4JQVA1.js +0 -29
  164. package/components/state-DHaIxrnQ.cjs +0 -22
  165. package/components/streaming-listener-BQxEN4sL.cjs +0 -18
  166. package/components/style-map-BjBGQ_u3.cjs +0 -22
  167. package/components/style-map-BqvQDFJt.js +0 -53
  168. package/components/text-field-7ITo3Lac.js +0 -315
  169. package/components/text-field-CtUKbEQN.cjs +0 -85
  170. package/components/when-CDK1Tt5Y.js +0 -28
  171. package/components/when-CDZyJPvd.cjs +0 -22
@@ -15,12 +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 { unsafeCSS as d, html as p } from "lit";
19
- import { s as g } from "./mutation-controller-DH7YOCyj.js";
20
- import { a as h, n as c } from "./base-DNrOP9L3.js";
21
- import { e as b } from "./query-D_KR_GUc.js";
18
+ import { a as d, r as p, x as g } from "./base-CCsOyfm4.js";
19
+ import { s as h } from "./mutation-controller-DH7YOCyj.js";
20
+ import { property as c, query as b } from "lit/decorators.js";
22
21
  import { R as m } from "./roving-tabindex-DOg4z6ZU.js";
23
- import { S as v } from "./sized-mixin-PyCYpyQq.js";
22
+ import { S as v } from "./sized-mixin-cJbo3PKR.js";
24
23
  const z = ":host{gap:var(--luzmo-action-group-horizontal-spacing-regular, var(--action-group-horizontal-spacing-regular));flex-wrap:wrap;display:flex}::slotted(*){flex-shrink:0}::slotted(:focus-visible){z-index:3}:host(:not([vertical]):not([compact])) ::slotted(*){flex-shrink:0}:host([vertical]){gap:var(--luzmo-action-group-vertical-spacing-regular, var(--action-group-vertical-spacing-regular));flex-direction:column;display:inline-flex}:host([compact]){gap:var(--luzmo-action-group-gap-size-compact, var(--action-group-gap-size-compact))}:host([compact]:not([quiet])){flex-wrap:nowrap}:host([compact]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset));z-index:0;position:relative}:host([compact]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0px 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-start-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact]:not([quiet])) ::slotted(:not(:first-child)){--luzmo-actionbutton-focus-indicator-border-radius: 0px;margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact))}:host([compact]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius: 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0px;border-start-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset))}:host([compact]:not([quiet])) ::slotted([selected]){z-index:1}@media (hover: hover){:host([compact]:not([quiet])) ::slotted(:hover){z-index:2}}:host([compact]:not([quiet])) ::slotted(:focus-visible){z-index:3}:host([compact]:not([quiet])[vertical]){gap:var(--luzmo-action-group-gap-size-compact, var(--action-group-gap-size-compact))}:host([compact][vertical]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0px 0px;border-start-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-start-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-inline-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:not(:first-child)){margin-block-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-inline-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset));margin-inline-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius: 0px 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([justified]) ::slotted(*){flex:1}:host{--action-group-gap-size-compact: 0px;--action-group-horizontal-spacing-compact: -1px;--action-group-vertical-spacing-compact: -1px;--action-group-button-spacing-reset: 0px;--action-group-border-radius-reset: 0px;--action-group-border-radius: var(--luzmo-border-radius);--action-group-horizontal-spacing-regular: var(--luzmo-spacing-3);--action-group-vertical-spacing-regular: var(--luzmo-spacing-3)}:host([size=xs]),:host([size=s]){--action-group-horizontal-spacing-regular: var(--luzmo-spacing-2);--action-group-vertical-spacing-regular: var(--luzmo-spacing-2)}:host,:host([size=l]),:host([size=xl]){--action-group-horizontal-spacing-regular: var(--luzmo-spacing-3);--action-group-vertical-spacing-regular: var(--luzmo-spacing-3)}:host([dir][compact][vertical]) ::slotted(:nth-child(n)){margin-right:0;margin-left:0}:host([justified]) ::slotted(:not([role])),:host([vertical]) ::slotted(:not([role])){display:flex;flex-direction:column;align-items:stretch}:host([compact]:not([quiet])) ::slotted(:not([role])){--overriden-border-radius: 0;--luzmo-action-button-border-radius: var(--overriden-border-radius)}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):first-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):last-child){--overriden-border-radius: 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([compact]:not([quiet])) ::slotted(*){--luzmo-action-button-focus-ring-border-radius: 0}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}";
25
24
  var f = Object.defineProperty, x = Object.getOwnPropertyDescriptor, s = (n, t, r, e) => {
26
25
  for (var o = e > 1 ? void 0 : e ? x(t, r) : t, a = n.length - 1, i; a >= 0; a--)
@@ -28,7 +27,7 @@ var f = Object.defineProperty, x = Object.getOwnPropertyDescriptor, s = (n, t, r
28
27
  return e && o && f(t, r, o), o;
29
28
  };
30
29
  const l = [];
31
- class u extends v(h, {
30
+ class u extends v(d, {
32
31
  validSizes: ["xs", "s", "m", "l", "xl"],
33
32
  noDefaultSize: !0
34
33
  }) {
@@ -67,7 +66,7 @@ class u extends v(h, {
67
66
  }), this.setSelected([...this.selected, ...e]);
68
67
  }
69
68
  this.manageChildren(), this.manageSelects(), this.hasManaged = !0;
70
- }, new g(this, {
69
+ }, new h(this, {
71
70
  config: {
72
71
  childList: !0,
73
72
  subtree: !0
@@ -79,7 +78,7 @@ class u extends v(h, {
79
78
  });
80
79
  }
81
80
  static get styles() {
82
- return [d(z)];
81
+ return [p(z)];
83
82
  }
84
83
  set buttons(t) {
85
84
  t !== this.buttons && (this._buttons = t, this.rovingTabindexController.clearElementCache());
@@ -202,7 +201,7 @@ class u extends v(h, {
202
201
  this.hasAttribute("role") || this.setAttribute("role", "toolbar");
203
202
  }
204
203
  render() {
205
- return p`
204
+ return g`
206
205
  <slot role="presentation" @slotchange=${this.manageButtons}></slot>
207
206
  `;
208
207
  }
@@ -15,8 +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
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("@luzmo/icons"),o=require("lit"),h=require("../base-DzbGOAPo.cjs"),b=require("../state-DHaIxrnQ.cjs"),u=require("../if-defined-Cv6xanXh.cjs"),p=require("../index-BYumXRH5.cjs"),v=require("../observe-slot-text-CP_EB97X.cjs"),y=require("../slottable-request-event-BfUUt1Mh.cjs"),d=require("../picker-CLKdhX0B.cjs");require("../action-button/index.cjs");require("../icon/index.cjs");require("../overlay/index.cjs");require("../popover/index.cjs");const f=":host{display:inline-flex}:host([quiet]){min-width:0}:host>luzmo-menu{display:none}::slotted([slot=icon]){flex-shrink:0}.icon{flex-shrink:0}#popover{max-width:none}:host([dir=ltr]) ::slotted([slot=icon]),:host([dir=ltr]) .icon{margin-left:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir=rtl]) ::slotted([slot=icon]),:host([dir=rtl]) .icon{margin-right:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir]) slot[icon-only]::slotted([slot=icon]),:host([dir]) slot[icon-only] .icon{margin-inline:calc((var(--luzmo-action-button-edge-to-text, var(--action-button-edge-to-text)) - var(--luzmo-action-button-edge-to-visual-only, var(--action-button-edge-to-visual-only))) * -1)}luzmo-overlay:not(:defined){display:none}";var z=Object.defineProperty,g=Object.getOwnPropertyDescriptor,c=(l,t,s,i)=>{for(var e=i>1?void 0:i?g(t,s):t,r=l.length-1,a;r>=0;r--)(a=l[r])&&(e=(i?a(t,s,e):a(e))||e);return i&&e&&z(t,s,e),e};class n extends p.ObserveSlotPresence(v.ObserveSlotText(d.LuzmoPickerBase,"label"),'[slot="label-only"]'){constructor(){super(...arguments),this.selects=void 0,this.listRole="menu",this.itemRole="menuitem",this.handleSlottableRequest=t=>{this.dispatchEvent(new y.SlottableRequestEvent(t.name,t.data))}}static get styles(){return[o.unsafeCSS(f)]}get hasLabel(){return this.slotHasContent}get labelOnly(){return this.slotContentIsPresent}get buttonContent(){return[o.html`
19
- ${this.labelOnly?o.html``:o.html`
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("@luzmo/icons"),o=require("../base-CaRKlVkL.cjs"),c=require("lit/decorators.js"),u=require("lit/directives/if-defined.js"),p=require("../index-Cg_y7WKM.cjs"),m=require("../observe-slot-text-ByPG1Lqw.cjs"),f=require("../slottable-request-event-BfUUt1Mh.cjs"),h=require("../picker-CaC1rQOK.cjs");require("../action-button/index.cjs");require("../icon/index.cjs");require("../overlay/index.cjs");require("../popover/index.cjs");const v=":host{display:inline-flex}:host([quiet]){min-width:0}:host>luzmo-menu{display:none}::slotted([slot=icon]){flex-shrink:0}.icon{flex-shrink:0}#popover{max-width:none}:host([dir=ltr]) ::slotted([slot=icon]),:host([dir=ltr]) .icon{margin-left:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir=rtl]) ::slotted([slot=icon]),:host([dir=rtl]) .icon{margin-right:calc(-1 * (var(--luzmo-action-button-textonly-padding-left-adjusted) - var(--luzmo-action-button-padding-left-adjusted)))}:host([dir]) slot[icon-only]::slotted([slot=icon]),:host([dir]) slot[icon-only] .icon{margin-inline:calc((var(--luzmo-action-button-edge-to-text, var(--action-button-edge-to-text)) - var(--luzmo-action-button-edge-to-visual-only, var(--action-button-edge-to-visual-only))) * -1)}luzmo-overlay:not(:defined){display:none}";var y=Object.defineProperty,z=Object.getOwnPropertyDescriptor,d=(l,t,s,i)=>{for(var e=i>1?void 0:i?z(t,s):t,r=l.length-1,a;r>=0;r--)(a=l[r])&&(e=(i?a(t,s,e):a(e))||e);return i&&e&&y(t,s,e),e};class n extends p.ObserveSlotPresence(m.ObserveSlotText(h.LuzmoPickerBase,"label"),'[slot="label-only"]'){constructor(){super(...arguments),this.selects=void 0,this.listRole="menu",this.itemRole="menuitem",this.handleSlottableRequest=t=>{this.dispatchEvent(new f.SlottableRequestEvent(t.name,t.data))}}static get styles(){return[o.r(v)]}get hasLabel(){return this.slotHasContent}get labelOnly(){return this.slotContentIsPresent}get buttonContent(){return[o.x`
19
+ ${this.labelOnly?o.x``:o.x`
20
20
  <slot
21
21
  name="icon"
22
22
  slot="icon"
@@ -25,7 +25,7 @@
25
25
  >
26
26
  <luzmo-icon
27
27
  class="icon"
28
- .icon=${m.luzmoEllipsisHorizontal}
28
+ .icon=${b.luzmoEllipsisHorizontal}
29
29
  size=${this.size}
30
30
  ></luzmo-icon>
31
31
  </slot>
@@ -33,15 +33,15 @@
33
33
  <slot name="label" ?hidden=${!this.hasLabel}></slot>
34
34
  <slot name="label-only"></slot>
35
35
  <slot name="tooltip" @slotchange=${this.handleTooltipSlotchange}></slot>
36
- `]}render(){return this.tooltipEl&&(this.tooltipEl.disabled=this.open),o.html`
36
+ `]}render(){return this.tooltipEl&&(this.tooltipEl.disabled=this.open),o.x`
37
37
  <luzmo-action-button
38
- aria-describedby=${d.DESCRIPTION_ID}
38
+ aria-describedby=${h.DESCRIPTION_ID}
39
39
  ?quiet=${this.quiet}
40
- static-color=${u.o(this.staticColor)}
40
+ static-color=${u.ifDefined(this.staticColor)}
41
41
  aria-haspopup="true"
42
- aria-controls=${u.o(this.open?"menu":void 0)}
42
+ aria-controls=${u.ifDefined(this.open?"menu":void 0)}
43
43
  aria-expanded=${this.open?"true":"false"}
44
- aria-label=${u.o(this.label||void 0)}
44
+ aria-label=${u.ifDefined(this.label||void 0)}
45
45
  id="button"
46
46
  class="button"
47
47
  size=${this.size}
@@ -53,4 +53,4 @@
53
53
  ${this.buttonContent}
54
54
  </luzmo-action-button>
55
55
  ${this.renderMenu} ${this.renderDescriptionSlot}
56
- `}update(t){t.has("invalid")&&(this.invalid=!1),super.update(t)}}c([h.n({type:String})],n.prototype,"selects",2);c([h.n({reflect:!0,attribute:"static-color"})],n.prototype,"staticColor",2);c([b.r()],n.prototype,"labelOnly",1);customElements.get("luzmo-action-menu")||customElements.define("luzmo-action-menu",n);exports.LuzmoActionMenu=n;
56
+ `}update(t){t.has("invalid")&&(this.invalid=!1),super.update(t)}}d([c.property({type:String})],n.prototype,"selects",2);d([c.property({reflect:!0,attribute:"static-color"})],n.prototype,"staticColor",2);d([c.state()],n.prototype,"labelOnly",1);customElements.get("luzmo-action-menu")||customElements.define("luzmo-action-menu",n);exports.LuzmoActionMenu=n;
@@ -16,14 +16,13 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import { luzmoEllipsisHorizontal as z } from "@luzmo/icons";
19
- import { unsafeCSS as b, html as r } from "lit";
20
- import { n as c } from "../base-DNrOP9L3.js";
21
- import { r as h } from "../state-BG4JQVA1.js";
22
- import { o as a } from "../if-defined-CYpcjGCb.js";
23
- import { O as p } from "../index-C2qG2Sm8.js";
24
- import { O as f } from "../observe-slot-text-BG0H7bQK.js";
19
+ import { r as b, x as r } from "../base-CCsOyfm4.js";
20
+ import { property as c, state as p } from "lit/decorators.js";
21
+ import { ifDefined as a } from "lit/directives/if-defined.js";
22
+ import { O as h } from "../index-QeYYAZQR.js";
23
+ import { O as f } from "../observe-slot-text-CugmOzNZ.js";
25
24
  import { S as g } from "../slottable-request-event-DggLA4Rx.js";
26
- import { L as x, D as v } from "../picker-ChtCbFLB.js";
25
+ import { L as x, D as v } from "../picker-DwbcFve2.js";
27
26
  import "../action-button/index.js";
28
27
  import "../icon/index.js";
29
28
  import "../overlay/index.js";
@@ -41,7 +40,7 @@ var w = Object.defineProperty, $ = Object.getOwnPropertyDescriptor, m = (l, o, n
41
40
  (s = l[u]) && (e = (t ? s(o, n, e) : s(e)) || e);
42
41
  return t && e && w(o, n, e), e;
43
42
  };
44
- class i extends p(
43
+ class i extends h(
45
44
  f(x, "label"),
46
45
  '[slot="label-only"]'
47
46
  ) {
@@ -119,7 +118,7 @@ m([
119
118
  c({ reflect: !0, attribute: "static-color" })
120
119
  ], i.prototype, "staticColor", 2);
121
120
  m([
122
- h()
121
+ p()
123
122
  ], i.prototype, "labelOnly", 1);
124
123
  customElements.get("luzmo-action-menu") || customElements.define("luzmo-action-menu", i);
125
124
  export {
@@ -15,10 +15,10 @@
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 v=require("lit"),s=require("../base-DzbGOAPo.cjs"),u=require("../query-BL-TJj7K.cjs"),d=require("../if-defined-Cv6xanXh.cjs"),z=require("../focusable-zn6qaMtV.cjs"),h=require("../like-anchor-CmIcmz5k.cjs"),l=require("../sized-mixin-BEemErtP.cjs"),m='@media (forced-colors: active){:host{--highcontrast-avatar-focus-indicator-color: CanvasText}}:host{--avatar-border-radius: var( --luzmo-avatar-border-radius, var(--luzmo-avatar-size, var(--avatar-size)) );inline-size:var(--luzmo-avatar-size, var(--avatar-size));block-size:var(--luzmo-avatar-size, var(--avatar-size));border-radius:var(--avatar-border-radius);-webkit-user-drag:none;-webkit-user-select:none;user-select:none;opacity:var(--luzmo-avatar-color-opacity, var(--avatar-color-opacity));border-width:0;outline:none;display:inline-block;position:relative;overflow:visible}:host([disabled]){opacity:var(--highcontrast-avatar-color-opacity-disabled, var(--luzmo-avatar-color-opacity-disabled, var(--avatar-color-opacity-disabled)))}:host(:not([disabled])) .is-focused:after,:host(:not([disabled])) .link:focus-visible:after{pointer-events:none;content:"";inline-size:calc(var(--luzmo-avatar-custom-size, var(--luzmo-avatar-size, var(--avatar-size))) + var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) * 2);block-size:calc(var(--luzmo-avatar-custom-size, var(--luzmo-avatar-size, var(--avatar-size))) + var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) * 2);border-style:solid;border-width:var(--luzmo-avatar-focus-indicator-thickness, var(--avatar-focus-indicator-thickness));border-color:var(--highcontrast-avatar-focus-indicator-color, var(--luzmo-avatar-focus-indicator-color, var(--avatar-focus-indicator-color)));border-radius:var(--avatar-border-radius);position:absolute;inset-block-start:calc((var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) + var(--luzmo-avatar-focus-indicator-thickness, var(--avatar-focus-indicator-thickness))) * -1);inset-inline-start:calc((var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) + var(--luzmo-avatar-focus-indicator-thickness, var(--avatar-focus-indicator-thickness))) * -1)}.link{outline:0}.image{inline-size:var(--luzmo-avatar-size, var(--avatar-size));block-size:var(--luzmo-avatar-size, var(--avatar-size));border-radius:var(--avatar-border-radius)}:host([rounding=none]){border-radius:0}:host([rounding=none]) img{border-radius:0}:host([rounding=full]){border-radius:100%}:host([rounding=full]) img{border-radius:100%}:host([border=light]){border:var(--luzmo-avatar-border-width, var(--avatar-border-width)) solid var(--luzmo-avatar-border-color, var(--avatar-border-color))}:host([border=none]){border:0}:host{--avatar-color-opacity: 1;--avatar-border-width: var(--luzmo-border-width);--avatar-border-color: var(--luzmo-border-color);--avatar-size: 32px;--avatar-focus-indicator-thickness: var(--luzmo-indicator-width);--avatar-focus-indicator-gap: var(--luzmo-indicator-gap);--avatar-focus-indicator-color: var(--luzmo-indicator-color);--avatar-color-opacity-disabled: .3}:host([size=xxs]){--avatar-size: var(--luzmo-component-height-xxs)}:host([size=xs]){--avatar-size: var(--luzmo-component-height-xs)}:host([size=s]){--avatar-size: var(--luzmo-component-height-s)}:host{--avatar-size: var(--luzmo-component-height)}:host([size=l]){--avatar-size: var(--luzmo-component-height-l)}:host([size=xl]){--avatar-size: var(--luzmo-component-height-xl)}:host([size=xxl]){--avatar-size: var(--luzmo-component-height-xxl)}img{vertical-align:top}';var b=Object.defineProperty,t=(e,o,n,f)=>{for(var a=void 0,i=e.length-1,c;i>=0;i--)(c=e[i])&&(a=c(o,n,a)||a);return a&&b(o,n,a),a};class r extends h.LikeAnchor(l.SizedMixin(z.Focusable,{validSizes:Object.values(l.ElementSizes)})){constructor(){super(...arguments),this.src=""}static get styles(){return[v.unsafeCSS(m)]}get focusElement(){return this.anchorElement||this}render(){const o=v.html`
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../base-CaRKlVkL.cjs"),t=require("lit/decorators.js"),d=require("lit/directives/if-defined.js"),u=require("../focusable-BFdecx5l.cjs"),z=require("../like-anchor-b3cNzw52.cjs"),l=require("../sized-mixin-DcvJLFeo.cjs"),h='@media (forced-colors: active){:host{--highcontrast-avatar-focus-indicator-color: CanvasText}}:host{--avatar-border-radius: var( --luzmo-avatar-border-radius, var(--luzmo-avatar-size, var(--avatar-size)) );inline-size:var(--luzmo-avatar-size, var(--avatar-size));block-size:var(--luzmo-avatar-size, var(--avatar-size));border-radius:var(--avatar-border-radius);-webkit-user-drag:none;-webkit-user-select:none;user-select:none;opacity:var(--luzmo-avatar-color-opacity, var(--avatar-color-opacity));border-width:0;outline:none;display:inline-block;position:relative;overflow:visible}:host([disabled]){opacity:var(--highcontrast-avatar-color-opacity-disabled, var(--luzmo-avatar-color-opacity-disabled, var(--avatar-color-opacity-disabled)))}:host(:not([disabled])) .is-focused:after,:host(:not([disabled])) .link:focus-visible:after{pointer-events:none;content:"";inline-size:calc(var(--luzmo-avatar-custom-size, var(--luzmo-avatar-size, var(--avatar-size))) + var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) * 2);block-size:calc(var(--luzmo-avatar-custom-size, var(--luzmo-avatar-size, var(--avatar-size))) + var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) * 2);border-style:solid;border-width:var(--luzmo-avatar-focus-indicator-thickness, var(--avatar-focus-indicator-thickness));border-color:var(--highcontrast-avatar-focus-indicator-color, var(--luzmo-avatar-focus-indicator-color, var(--avatar-focus-indicator-color)));border-radius:var(--avatar-border-radius);position:absolute;inset-block-start:calc((var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) + var(--luzmo-avatar-focus-indicator-thickness, var(--avatar-focus-indicator-thickness))) * -1);inset-inline-start:calc((var(--luzmo-avatar-focus-indicator-gap, var(--avatar-focus-indicator-gap)) + var(--luzmo-avatar-focus-indicator-thickness, var(--avatar-focus-indicator-thickness))) * -1)}.link{outline:0}.image{inline-size:var(--luzmo-avatar-size, var(--avatar-size));block-size:var(--luzmo-avatar-size, var(--avatar-size));border-radius:var(--avatar-border-radius)}:host([rounding=none]){border-radius:0}:host([rounding=none]) img{border-radius:0}:host([rounding=full]){border-radius:100%}:host([rounding=full]) img{border-radius:100%}:host([border=light]){border:var(--luzmo-avatar-border-width, var(--avatar-border-width)) solid var(--luzmo-avatar-border-color, var(--avatar-border-color))}:host([border=none]){border:0}:host{--avatar-color-opacity: 1;--avatar-border-width: var(--luzmo-border-width);--avatar-border-color: var(--luzmo-border-color);--avatar-size: 32px;--avatar-focus-indicator-thickness: var(--luzmo-indicator-width);--avatar-focus-indicator-gap: var(--luzmo-indicator-gap);--avatar-focus-indicator-color: var(--luzmo-indicator-color);--avatar-color-opacity-disabled: .3}:host([size=xxs]){--avatar-size: var(--luzmo-component-height-xxs)}:host([size=xs]){--avatar-size: var(--luzmo-component-height-xs)}:host([size=s]){--avatar-size: var(--luzmo-component-height-s)}:host{--avatar-size: var(--luzmo-component-height)}:host([size=l]){--avatar-size: var(--luzmo-component-height-l)}:host([size=xl]){--avatar-size: var(--luzmo-component-height-xl)}:host([size=xxl]){--avatar-size: var(--luzmo-component-height-xxl)}img{vertical-align:top}';var m=Object.defineProperty,e=(i,o,c,b)=>{for(var a=void 0,s=i.length-1,n;s>=0;s--)(n=i[s])&&(a=n(o,c,a)||a);return a&&m(o,c,a),a};class r extends z.LikeAnchor(l.SizedMixin(u.Focusable,{validSizes:Object.values(l.ElementSizes)})){constructor(){super(...arguments),this.src=""}static get styles(){return[v.r(h)]}get focusElement(){return this.anchorElement||this}render(){const o=v.x`
19
19
  <img
20
20
  class="image"
21
- alt=${d.o(this.label||void 0)}
21
+ alt=${d.ifDefined(this.label||void 0)}
22
22
  src=${this.src}
23
23
  />
24
- `;return this.href?this.renderAnchor({id:"link",className:"link",anchorContent:o}):o}}t([s.n({type:String,reflect:!0})],r.prototype,"border");t([s.n({type:String,reflect:!0})],r.prototype,"rounding");t([u.e("#link")],r.prototype,"anchorElement");t([s.n()],r.prototype,"src");customElements.get("luzmo-avatar")||customElements.define("luzmo-avatar",r);exports.LuzmoAvatar=r;
24
+ `;return this.href?this.renderAnchor({id:"link",className:"link",anchorContent:o}):o}}e([t.property({type:String,reflect:!0})],r.prototype,"border");e([t.property({type:String,reflect:!0})],r.prototype,"rounding");e([t.query("#link")],r.prototype,"anchorElement");e([t.property()],r.prototype,"src");customElements.get("luzmo-avatar")||customElements.define("luzmo-avatar",r);exports.LuzmoAvatar=r;
@@ -15,13 +15,12 @@
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 { unsafeCSS as n, html as m } from "lit";
19
- import { n as i } from "../base-DNrOP9L3.js";
20
- import { e as d } from "../query-D_KR_GUc.js";
21
- import { o as z } from "../if-defined-CYpcjGCb.js";
22
- import { F as v } from "../focusable-zT9NFFYs.js";
23
- import { L as b } from "../like-anchor-DoJWh4Uu.js";
24
- import { S as f, E as h } from "../sized-mixin-PyCYpyQq.js";
18
+ import { r as n, x as m } from "../base-CCsOyfm4.js";
19
+ import { property as i, query as d } from "lit/decorators.js";
20
+ import { ifDefined as z } from "lit/directives/if-defined.js";
21
+ import { F as v } from "../focusable-CxA_NMK_.js";
22
+ import { L as b } from "../like-anchor-D7tY6am5.js";
23
+ import { S as f, E as h } from "../sized-mixin-cJbo3PKR.js";
25
24
  const u = () => {
26
25
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
27
26
  const o = document.createElement("style");