@luzmo/lucero 0.0.4 → 0.0.6

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 (373) hide show
  1. package/components/accordion/accordion-item.d.ts +24 -0
  2. package/components/accordion/accordion.d.ts +42 -0
  3. package/components/accordion/index.cjs +43 -0
  4. package/components/accordion/index.d.ts +10 -0
  5. package/{lib → components}/accordion/index.js +10 -11
  6. package/components/action-bar/action-bar.d.ts +42 -0
  7. package/components/action-bar/index.cjs +39 -0
  8. package/components/action-bar/index.d.ts +7 -0
  9. package/{lib → components}/action-bar/index.js +9 -10
  10. package/components/action-button/action-button.d.ts +81 -0
  11. package/components/action-button/index.cjs +24 -0
  12. package/components/action-button/index.d.ts +7 -0
  13. package/{lib → components}/action-button/index.js +6 -7
  14. package/components/action-group/action-group.d.ts +50 -0
  15. package/{lib → components}/action-group/index.cjs +1 -1
  16. package/components/action-group/index.d.ts +7 -0
  17. package/{lib → components}/action-group/index.js +1 -1
  18. package/{lib/action-group-BoIH8s8R.js → components/action-group-B7oQXv30.js} +11 -12
  19. package/components/action-group-C8YUQzt8.cjs +20 -0
  20. package/components/action-menu/action-menu.d.ts +40 -0
  21. package/{lib → components}/action-menu/index.cjs +5 -5
  22. package/components/action-menu/index.d.ts +7 -0
  23. package/{lib → components}/action-menu/index.js +10 -11
  24. package/{lib/async-directive-FGzMycjH.js → components/async-directive-BhRGSTWB.js} +1 -1
  25. package/{lib/async-directive-CV2MII86.cjs → components/async-directive-_65ULPLK.cjs} +1 -1
  26. package/components/avatar/avatar.d.ts +31 -0
  27. package/components/avatar/index.cjs +24 -0
  28. package/components/avatar/index.d.ts +7 -0
  29. package/{lib → components}/avatar/index.js +13 -14
  30. package/components/base-CxUap9HL.js +665 -0
  31. package/components/base-rtxi7uaR.cjs +40 -0
  32. package/components/button/button-base.d.ts +44 -0
  33. package/components/button/button.d.ts +59 -0
  34. package/components/button/clear-button.d.ts +22 -0
  35. package/components/button/close-button.d.ts +24 -0
  36. package/components/button/index.cjs +20 -0
  37. package/components/button/index.d.ts +13 -0
  38. package/{lib → components}/button/index.js +11 -12
  39. package/{lib/button-base-DgtT6sU5.js → components/button-base-CgrTYVgq.js} +11 -12
  40. package/components/button-base-DjqSZyn2.cjs +25 -0
  41. package/components/button-group/button-group.d.ts +19 -0
  42. package/components/button-group/index.cjs +18 -0
  43. package/components/button-group/index.d.ts +7 -0
  44. package/{lib → components}/button-group/index.js +7 -8
  45. package/components/checkbox/checkbox-base.d.ts +9 -0
  46. package/components/checkbox/checkbox-mixin.d.ts +14 -0
  47. package/components/checkbox/checkbox.d.ts +54 -0
  48. package/components/checkbox/index.cjs +25 -0
  49. package/components/checkbox/index.d.ts +7 -0
  50. package/{lib → components}/checkbox/index.js +5 -6
  51. package/{lib/checkbox-mixin-DegQlk5C.js → components/checkbox-mixin-BRluTF9s.js} +15 -16
  52. package/{lib/checkbox-mixin-H0Hm-VLk.cjs → components/checkbox-mixin-iB-0ivgo.cjs} +3 -3
  53. package/{lib/clear-button-Ap5H3UyH.js → components/clear-button-CyLF5dx_.js} +6 -7
  54. package/components/clear-button-DFXE6MLx.cjs +18 -0
  55. package/components/close-button-CcD-aVqh.cjs +18 -0
  56. package/{lib/close-button-CGISEF33.js → components/close-button-CzpdWCWI.js} +8 -9
  57. package/components/color-area/color-area.d.ts +67 -0
  58. package/components/color-area/index.cjs +80 -0
  59. package/components/color-area/index.d.ts +7 -0
  60. package/{lib → components}/color-area/index.js +9 -10
  61. package/components/color-field/color-field.d.ts +20 -0
  62. package/components/color-field/index.cjs +23 -0
  63. package/components/color-field/index.d.ts +7 -0
  64. package/{lib → components}/color-field/index.js +2 -3
  65. package/components/color-handle/color-handle.d.ts +13 -0
  66. package/components/color-handle/index.cjs +24 -0
  67. package/components/color-handle/index.d.ts +7 -0
  68. package/{lib → components}/color-handle/index.js +2 -3
  69. package/components/color-loupe/color-loupe.d.ts +7 -0
  70. package/{lib → components}/color-loupe/index.cjs +1 -1
  71. package/components/color-loupe/index.d.ts +7 -0
  72. package/{lib → components}/color-loupe/index.js +1 -1
  73. package/components/color-loupe-BN3k1ACF.cjs +56 -0
  74. package/{lib/color-loupe-DBEApMDT.js → components/color-loupe-CD-dhmB1.js} +3 -4
  75. package/components/color-menu/color-menu.d.ts +54 -0
  76. package/components/color-menu/index.cjs +86 -0
  77. package/components/color-menu/index.d.ts +7 -0
  78. package/{lib → components}/color-menu/index.js +9 -10
  79. package/components/color-picker/color-picker.d.ts +39 -0
  80. package/components/color-picker/index.cjs +48 -0
  81. package/components/color-picker/index.d.ts +7 -0
  82. package/{lib → components}/color-picker/index.js +33 -34
  83. package/components/color-slider/color-slider.d.ts +57 -0
  84. package/components/color-slider/index.cjs +57 -0
  85. package/components/color-slider/index.d.ts +7 -0
  86. package/{lib → components}/color-slider/index.js +5 -6
  87. package/{lib/directive-helpers-C2vOfhFx.cjs → components/directive-helpers-C3pAxRR3.cjs} +1 -1
  88. package/{lib/directive-helpers-BLDZnGQv.js → components/directive-helpers-D0vm0gvF.js} +1 -1
  89. package/components/divider/divider.d.ts +24 -0
  90. package/components/divider/index.cjs +18 -0
  91. package/components/divider/index.d.ts +7 -0
  92. package/{lib → components}/divider/index.js +5 -6
  93. package/components/field-group/field-group.d.ts +24 -0
  94. package/{lib → components}/field-group/index.cjs +1 -1
  95. package/components/field-group/index.d.ts +7 -0
  96. package/{lib → components}/field-group/index.js +1 -1
  97. package/{lib/field-group-CBWafIUV.js → components/field-group-DAImvhSF.js} +2 -3
  98. package/components/field-group-d5Hkb8UW.cjs +23 -0
  99. package/components/field-label/field-label.d.ts +50 -0
  100. package/{lib → components}/field-label/index.cjs +1 -1
  101. package/components/field-label/index.d.ts +7 -0
  102. package/{lib → components}/field-label/index.js +1 -1
  103. package/components/field-label-D1zKXSG6.cjs +25 -0
  104. package/{lib/field-label-BK_tk8vP.js → components/field-label-DY9iRmRI.js} +14 -15
  105. package/{lib/focusable-DbUg-3Vp.js → components/focusable-Bze9xE25.js} +1 -1
  106. package/{lib/focusable-Dv_6CFaY.cjs → components/focusable-DyyBr-J-.cjs} +1 -1
  107. package/components/icon/icon-base.d.ts +11 -0
  108. package/components/icon/icon.d.ts +12 -0
  109. package/components/icon/index.cjs +18 -0
  110. package/components/icon/index.d.ts +7 -0
  111. package/{lib → components}/icon/index.js +4 -5
  112. package/{lib/if-defined-Cv6xanXh.cjs → components/if-defined-C-8FyBSN.cjs} +2 -2
  113. package/{lib/if-defined-CYpcjGCb.js → components/if-defined-XzWkhMhg.js} +1 -1
  114. package/{lib/index-yNcLzjhM.cjs → components/index-CNtoBntg.cjs} +15 -15
  115. package/{lib/index-ovT-qVzf.js → components/index-Ci6Jnhu4.js} +8 -9
  116. package/components/index.cjs +27 -0
  117. package/{lib/legend-position → components}/index.js +150 -28
  118. package/components/infield-button/index.cjs +22 -0
  119. package/components/infield-button/index.d.ts +7 -0
  120. package/{lib → components}/infield-button/index.js +3 -4
  121. package/components/infield-button/infield-button.d.ts +25 -0
  122. package/components/label/index.cjs +18 -0
  123. package/components/label/index.d.ts +7 -0
  124. package/{lib → components}/label/index.js +1 -2
  125. package/components/label/label.d.ts +7 -0
  126. package/components/legend-position/index.d.ts +7 -0
  127. package/components/legend-position/legend-position.d.ts +10 -0
  128. package/{lib/like-anchor-K8W0QYwC.cjs → components/like-anchor-DKuw8fJA.cjs} +4 -4
  129. package/{lib/like-anchor-cDeGGeHh.js → components/like-anchor-DnsAwo_O.js} +8 -9
  130. package/{lib/manage-help-text-2mSEy-AD.js → components/manage-help-text-B-FXFXgT.js} +8 -8
  131. package/{lib/manage-help-text-iOk-zmy8.cjs → components/manage-help-text-I5aYDAKT.cjs} +3 -3
  132. package/{lib → components}/menu/index.cjs +1 -1
  133. package/components/menu/index.d.ts +16 -0
  134. package/{lib → components}/menu/index.js +1 -1
  135. package/components/menu/menu-divider.d.ts +14 -0
  136. package/components/menu/menu-group.d.ts +17 -0
  137. package/components/menu/menu-item.d.ts +125 -0
  138. package/components/menu/menu.d.ts +119 -0
  139. package/components/multi-language-field/index.cjs +39 -0
  140. package/components/multi-language-field/index.d.ts +7 -0
  141. package/{lib → components}/multi-language-field/index.js +6 -7
  142. package/components/multi-language-field/multi-language-field.d.ts +41 -0
  143. package/components/number-field/index.cjs +57 -0
  144. package/components/number-field/index.d.ts +7 -0
  145. package/{lib → components}/number-field/index.js +23 -24
  146. package/components/number-field/number-field.d.ts +113 -0
  147. package/{lib/observe-slot-text-BmsCNJig.cjs → components/observe-slot-text-DeSKIzvP.cjs} +1 -1
  148. package/{lib/observe-slot-text-BoFRF-VI.js → components/observe-slot-text-DrM71me1.js} +1 -1
  149. package/components/overlay/abstract-overlay.d.ts +72 -0
  150. package/components/overlay/click-controller.d.ts +14 -0
  151. package/components/overlay/events.d.ts +23 -0
  152. package/components/overlay/full-size-plugin.d.ts +12 -0
  153. package/components/overlay/hover-controller.d.ts +20 -0
  154. package/components/overlay/index.cjs +73 -0
  155. package/components/overlay/index.d.ts +22 -0
  156. package/{lib → components}/overlay/index.js +53 -36
  157. package/components/overlay/interaction-controller.d.ts +38 -0
  158. package/components/overlay/loader.d.ts +4 -0
  159. package/components/overlay/longpress-controller.d.ts +21 -0
  160. package/components/overlay/overlay-dialog.d.ts +4 -0
  161. package/components/overlay/overlay-events.d.ts +11 -0
  162. package/components/overlay/overlay-no-popover.d.ts +4 -0
  163. package/components/overlay/overlay-popover.d.ts +4 -0
  164. package/components/overlay/overlay-stack.d.ts +44 -0
  165. package/components/overlay/overlay-timer.d.ts +21 -0
  166. package/components/overlay/overlay-trigger-directive.d.ts +26 -0
  167. package/components/overlay/overlay-trigger.d.ts +53 -0
  168. package/components/overlay/overlay-types.d.ts +50 -0
  169. package/components/overlay/overlay.d.ts +464 -0
  170. package/components/overlay/placement-controller.d.ts +157 -0
  171. package/components/overlay/slottable-request-directive.d.ts +17 -0
  172. package/components/overlay/slottable-request-event.d.ts +12 -0
  173. package/components/overlay/strategies.d.ts +8 -0
  174. package/components/overlay/virtual-trigger.d.ts +7 -0
  175. package/{lib/overlay-C7QKFqRc.js → components/overlay-C2Cck0Az.js} +53 -43
  176. package/components/overlay-dn6Xe_vz.cjs +47 -0
  177. package/{lib/pending-state-D5KTK4_1.js → components/pending-state--XOfTjzE.js} +2 -2
  178. package/{lib/pending-state-Dbc2HIM2.cjs → components/pending-state-BeJ7iP-O.cjs} +2 -2
  179. package/components/picker/desktop-controller.d.ts +7 -0
  180. package/{lib → components}/picker/index.cjs +1 -1
  181. package/components/picker/index.d.ts +7 -0
  182. package/{lib → components}/picker/index.js +2 -2
  183. package/components/picker/interaction-controller.d.ts +43 -0
  184. package/components/picker/mobile-controller.d.ts +9 -0
  185. package/components/picker/picker.d.ts +154 -0
  186. package/components/picker/strategies.d.ts +6 -0
  187. package/components/picker-8cOc-jjh.cjs +127 -0
  188. package/components/picker-BZAWrSDk.js +655 -0
  189. package/{lib → components}/popover/index.cjs +1 -1
  190. package/components/popover/index.d.ts +7 -0
  191. package/{lib → components}/popover/index.js +1 -1
  192. package/components/popover/popover.d.ts +29 -0
  193. package/components/popover-CCzs4VH8.cjs +30 -0
  194. package/{lib/popover-ZRVxogyp.js → components/popover-D0EliN0L.js} +7 -8
  195. package/{lib → components}/progress-circle/index.cjs +1 -1
  196. package/components/progress-circle/index.d.ts +7 -0
  197. package/{lib → components}/progress-circle/index.js +1 -1
  198. package/components/progress-circle/progress-circle.d.ts +35 -0
  199. package/components/progress-circle-DYSSkjlY.cjs +33 -0
  200. package/{lib/progress-circle-DpXiqW6a.js → components/progress-circle-_-9sAlMM.js} +5 -6
  201. package/components/radio/index.cjs +22 -0
  202. package/components/radio/index.d.ts +10 -0
  203. package/{lib → components}/radio/index.js +10 -11
  204. package/components/radio/radio-group.d.ts +27 -0
  205. package/components/radio/radio.d.ts +39 -0
  206. package/components/search/index.cjs +45 -0
  207. package/components/search/index.d.ts +7 -0
  208. package/{lib → components}/search/index.js +3 -4
  209. package/components/search/search.d.ts +27 -0
  210. package/{lib/sized-mixin-BSYHt8nT.cjs → components/sized-mixin-BAI6NiE2.cjs} +1 -1
  211. package/{lib/sized-mixin-Dl0KoEcV.js → components/sized-mixin-DcJTTohI.js} +1 -1
  212. package/components/slider/index.cjs +18 -0
  213. package/components/slider/index.d.ts +7 -0
  214. package/{lib → components}/slider/index.js +5 -6
  215. package/components/slider/slider.d.ts +24 -0
  216. package/{lib/state-BAO-13Bs.js → components/state-D8vot9IB.js} +1 -1
  217. package/{lib/state-DReJ3hB6.cjs → components/state-WWHLNMRG.cjs} +1 -1
  218. package/{lib/streaming-listener-DLo0wkMc.js → components/streaming-listener-BbmNyKWO.js} +2 -2
  219. package/components/streaming-listener-C2A7ZJZP.cjs +18 -0
  220. package/{lib/style-map-BqvQDFJt.js → components/style-map-CoBJRbvu.js} +1 -1
  221. package/{lib/style-map-BjBGQ_u3.cjs → components/style-map-DH0jkl7s.cjs} +2 -2
  222. package/components/swatch/index.cjs +49 -0
  223. package/components/swatch/index.d.ts +10 -0
  224. package/{lib → components}/swatch/index.js +9 -10
  225. package/components/swatch/swatch-group.d.ts +41 -0
  226. package/components/swatch/swatch.d.ts +40 -0
  227. package/components/switch/index.cjs +22 -0
  228. package/components/switch/index.d.ts +7 -0
  229. package/{lib → components}/switch/index.js +6 -7
  230. package/components/switch/switch.d.ts +27 -0
  231. package/components/tags/index.cjs +32 -0
  232. package/components/tags/index.d.ts +10 -0
  233. package/{lib → components}/tags/index.js +17 -18
  234. package/components/tags/tag.d.ts +29 -0
  235. package/components/tags/tags.d.ts +28 -0
  236. package/components/text-field/help-text-manager.d.ts +19 -0
  237. package/components/text-field/help-text.d.ts +20 -0
  238. package/components/text-field/index.cjs +21 -0
  239. package/components/text-field/index.d.ts +14 -0
  240. package/{lib → components}/text-field/index.js +9 -9
  241. package/components/text-field/manage-help-text.d.ts +13 -0
  242. package/components/text-field/text-field.d.ts +142 -0
  243. package/{lib/text-field-DPk332j9.js → components/text-field-05QNK_Lj.js} +28 -30
  244. package/{lib/text-field-C6Aa7XOb.cjs → components/text-field-BU7yxiOR.cjs} +15 -15
  245. package/components/toast/index.cjs +51 -0
  246. package/components/toast/index.d.ts +7 -0
  247. package/{lib → components}/toast/index.js +2 -3
  248. package/components/toast/toast.d.ts +77 -0
  249. package/components/tooltip/index.cjs +45 -0
  250. package/components/tooltip/index.d.ts +8 -0
  251. package/{lib → components}/tooltip/index.js +10 -11
  252. package/components/tooltip/tooltip-directive.d.ts +5 -0
  253. package/components/tooltip/tooltip.d.ts +55 -0
  254. package/components/unit-input/index.cjs +43 -0
  255. package/components/unit-input/index.d.ts +7 -0
  256. package/{lib → components}/unit-input/index.js +5 -6
  257. package/components/unit-input/unit-input.d.ts +33 -0
  258. package/index.d.ts +39 -0
  259. package/package.json +139 -101
  260. package/utils/base.d.ts +16 -0
  261. package/utils/condition-attribute-with-id.d.ts +2 -0
  262. package/utils/first-focusable-in.d.ts +3 -0
  263. package/utils/focus-visible.d.ts +29 -0
  264. package/utils/focusable-selectors.d.ts +2 -0
  265. package/utils/focusable.d.ts +58 -0
  266. package/utils/get-css-variable.d.ts +1 -0
  267. package/utils/get-label-from-slot.d.ts +1 -0
  268. package/utils/like-anchor.d.ts +23 -0
  269. package/utils/observe-slot-presence.d.ts +12 -0
  270. package/utils/observe-slot-text.d.ts +11 -0
  271. package/utils/platform.d.ts +10 -0
  272. package/utils/random-id.d.ts +1 -0
  273. package/utils/reactive-controllers/color.d.ts +54 -0
  274. package/utils/reactive-controllers/dependency-manger.d.ts +26 -0
  275. package/utils/reactive-controllers/element-resolution.d.ts +23 -0
  276. package/utils/reactive-controllers/focus-group.d.ts +62 -0
  277. package/utils/reactive-controllers/language-resolution.d.ts +11 -0
  278. package/utils/reactive-controllers/match-media.d.ts +13 -0
  279. package/utils/reactive-controllers/pending-state.d.ts +41 -0
  280. package/utils/reactive-controllers/roving-tabindex.d.ts +19 -0
  281. package/utils/reparent-child.d.ts +4 -0
  282. package/utils/sized-mixin.d.ts +17 -0
  283. package/utils/streaming-listener.d.ts +48 -0
  284. package/lib/accordion/index.cjs +0 -43
  285. package/lib/action-bar/index.cjs +0 -39
  286. package/lib/action-button/index.cjs +0 -24
  287. package/lib/action-group-D4MxBrq8.cjs +0 -20
  288. package/lib/avatar/index.cjs +0 -24
  289. package/lib/base-BCmA9Wxv.cjs +0 -30
  290. package/lib/base-nYalvNMy.js +0 -390
  291. package/lib/button/index.cjs +0 -20
  292. package/lib/button-base-B0iB_JTv.cjs +0 -25
  293. package/lib/button-group/index.cjs +0 -18
  294. package/lib/checkbox/index.cjs +0 -25
  295. package/lib/clear-button-D0djuaLb.cjs +0 -18
  296. package/lib/close-button-BrfeZvjk.cjs +0 -18
  297. package/lib/color-area/index.cjs +0 -80
  298. package/lib/color-field/index.cjs +0 -23
  299. package/lib/color-handle/index.cjs +0 -24
  300. package/lib/color-loupe-BICpNqFs.cjs +0 -56
  301. package/lib/color-menu/index.cjs +0 -86
  302. package/lib/color-picker/index.cjs +0 -48
  303. package/lib/color-slider/index.cjs +0 -57
  304. package/lib/divider/index.cjs +0 -18
  305. package/lib/field-group-TUFvhJkk.cjs +0 -23
  306. package/lib/field-label-BrJaeORz.cjs +0 -25
  307. package/lib/icon/index.cjs +0 -18
  308. package/lib/index.cjs +0 -18
  309. package/lib/index.js +0 -133
  310. package/lib/infield-button/index.cjs +0 -22
  311. package/lib/label/index.cjs +0 -18
  312. package/lib/legend-position/index.cjs +0 -27
  313. package/lib/lit-html-B3ugcwD9.js +0 -248
  314. package/lib/lit-html-p4Oxv2-5.cjs +0 -24
  315. package/lib/multi-language-field/index.cjs +0 -39
  316. package/lib/number-field/index.cjs +0 -57
  317. package/lib/overlay/index.cjs +0 -73
  318. package/lib/overlay-DScraBAi.cjs +0 -47
  319. package/lib/picker--2OCYWnV.js +0 -657
  320. package/lib/picker-B9W7Haf4.cjs +0 -127
  321. package/lib/popover-CVbjhSnx.cjs +0 -30
  322. package/lib/progress-circle-CiJoS8J7.cjs +0 -33
  323. package/lib/radio/index.cjs +0 -22
  324. package/lib/search/index.cjs +0 -45
  325. package/lib/slider/index.cjs +0 -18
  326. package/lib/streaming-listener-Bw4jE33f.cjs +0 -18
  327. package/lib/swatch/index.cjs +0 -49
  328. package/lib/switch/index.cjs +0 -22
  329. package/lib/tags/index.cjs +0 -32
  330. package/lib/text-field/index.cjs +0 -21
  331. package/lib/toast/index.cjs +0 -51
  332. package/lib/tooltip/index.cjs +0 -45
  333. package/lib/unit-input/index.cjs +0 -43
  334. /package/{lib → components}/base-BjTwmyRF.cjs +0 -0
  335. /package/{lib → components}/base-D76d76ww.js +0 -0
  336. /package/{lib → components}/color-Bg3tYsAQ.js +0 -0
  337. /package/{lib → components}/color-DphK4hwx.cjs +0 -0
  338. /package/{lib → components}/condition-attribute-with-id-DrQYZzFS.cjs +0 -0
  339. /package/{lib → components}/condition-attribute-with-id-Dv4lSRbe.js +0 -0
  340. /package/{lib → components}/dependency-manger-C5HCkMMB.cjs +0 -0
  341. /package/{lib → components}/dependency-manger-CEXvGQUV.js +0 -0
  342. /package/{lib → components}/directive-C7oCP5Bh.cjs +0 -0
  343. /package/{lib → components}/directive-oAbCiebi.js +0 -0
  344. /package/{lib → components}/divider.module-CXMNveQc.cjs +0 -0
  345. /package/{lib → components}/divider.module-DwOuLGU3.js +0 -0
  346. /package/{lib → components}/element-resolution-BvRLGqIU.cjs +0 -0
  347. /package/{lib → components}/element-resolution-FCUT-wql.js +0 -0
  348. /package/{lib → components}/focus-group-DHeTq18L.js +0 -0
  349. /package/{lib → components}/focus-group-DnxZUBhQ.cjs +0 -0
  350. /package/{lib → components}/focus-visible-B0P9aY_G.cjs +0 -0
  351. /package/{lib → components}/focus-visible-DBlJGoEW.js +0 -0
  352. /package/{lib → components}/focusable-selectors-B4YgbghQ.js +0 -0
  353. /package/{lib → components}/focusable-selectors-BgFlyFcY.cjs +0 -0
  354. /package/{lib → components}/index-C1chwzNp.js +0 -0
  355. /package/{lib → components}/index-DCKCHDTt.cjs +0 -0
  356. /package/{lib → components}/mutation-controller-DH7YOCyj.js +0 -0
  357. /package/{lib → components}/mutation-controller-DkOMCW-c.cjs +0 -0
  358. /package/{lib → components}/platform-CQzYNWKq.cjs +0 -0
  359. /package/{lib → components}/platform-DQYMG7JI.js +0 -0
  360. /package/{lib → components}/query-BL-TJj7K.cjs +0 -0
  361. /package/{lib → components}/query-D_KR_GUc.js +0 -0
  362. /package/{lib → components}/query-assigned-elements-DjfhL1cl.js +0 -0
  363. /package/{lib → components}/query-assigned-elements-DsKsfk7G.cjs +0 -0
  364. /package/{lib → components}/query-assigned-nodes-BcKWmGzy.cjs +0 -0
  365. /package/{lib → components}/query-assigned-nodes-C76XVPWY.js +0 -0
  366. /package/{lib → components}/random-id-ByCz1xaq.js +0 -0
  367. /package/{lib → components}/random-id-CqvckpWe.cjs +0 -0
  368. /package/{lib → components}/roving-tabindex-By_fCy_e.cjs +0 -0
  369. /package/{lib → components}/roving-tabindex-DOg4z6ZU.js +0 -0
  370. /package/{lib → components}/slottable-request-event-BfUUt1Mh.cjs +0 -0
  371. /package/{lib → components}/slottable-request-event-DggLA4Rx.js +0 -0
  372. /package/{lib → components}/when-CDK1Tt5Y.js +0 -0
  373. /package/{lib → components}/when-CDZyJPvd.cjs +0 -0
@@ -16,10 +16,9 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import { luzmoIcon as s, luzmoCornerTriangle as g } from "@luzmo/icons";
19
- import { S as m } from "../sized-mixin-Dl0KoEcV.js";
20
- import { unsafeCSS as h, html as v } from "lit";
21
- import { n as a } from "../base-nYalvNMy.js";
22
- import { B as z } from "../button-base-DgtT6sU5.js";
19
+ import { r as m, x as h, n as a } from "../base-CxUap9HL.js";
20
+ import { S as v } from "../sized-mixin-DcJTTohI.js";
21
+ import { B as z } from "../button-base-CgrTYVgq.js";
23
22
  const b = () => {
24
23
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
25
24
  const c = document.createElement("style");
@@ -35,7 +34,7 @@ var p = Object.defineProperty, x = Object.getOwnPropertyDescriptor, e = (c, o, t
35
34
  };
36
35
  const w = 300;
37
36
  let d;
38
- class r extends m(z, {
37
+ class r extends v(z, {
39
38
  validSizes: ["xs", "s", "m", "l", "xl"],
40
39
  noDefaultSize: !0
41
40
  }) {
@@ -53,7 +52,7 @@ class r extends m(z, {
53
52
  }, this.addEventListener("click", this.onClick);
54
53
  }
55
54
  static get styles() {
56
- return [...super.styles, h(f)];
55
+ return [...super.styles, m(f)];
57
56
  }
58
57
  get value() {
59
58
  return this._value || this.itemText;
@@ -112,7 +111,7 @@ class r extends m(z, {
112
111
  }
113
112
  get buttonContent() {
114
113
  const o = super.buttonContent;
115
- return this.holdAffordance && o.unshift(v`
114
+ return this.holdAffordance && o.unshift(h`
116
115
  <div
117
116
  class="hold-affordance corner-triangle-${this.size}"
118
117
  >
@@ -0,0 +1,50 @@
1
+ import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
2
+ import { LuzmoElement } from '../../utils/base';
3
+ import { RovingTabindexController } from '../../utils/reactive-controllers/roving-tabindex';
4
+ import { LuzmoActionButton } from '../action-button';
5
+ declare const LuzmoActionGroup_base: typeof LuzmoElement & {
6
+ new (...args: any[]): import("../../utils/sized-mixin").SizedElementInterface;
7
+ prototype: import("../../utils/sized-mixin").SizedElementInterface;
8
+ };
9
+ /**
10
+ * @element luzmo-action-group
11
+ * @slot - the luzmo-action-button elements that make up the group
12
+ *
13
+ * @fires change - Announces that selection state has been changed by user
14
+ */
15
+ export declare class LuzmoActionGroup extends LuzmoActionGroup_base {
16
+ static get styles(): CSSResultArray;
17
+ set buttons(buttons: LuzmoActionButton[]);
18
+ get buttons(): LuzmoActionButton[];
19
+ _buttons: LuzmoActionButton[];
20
+ protected _buttonSelector: string;
21
+ constructor();
22
+ rovingTabindexController: RovingTabindexController<LuzmoActionButton>;
23
+ compact: boolean;
24
+ emphasized: boolean;
25
+ justified: boolean;
26
+ label: string;
27
+ quiet: boolean;
28
+ selects: undefined | 'single' | 'multiple';
29
+ staticColor?: 'white' | 'black';
30
+ vertical: boolean;
31
+ private _selected;
32
+ set selected(selected: string[]);
33
+ get selected(): string[];
34
+ slotElement: HTMLSlotElement;
35
+ private dispatchChange;
36
+ private setSelected;
37
+ focus(options?: FocusOptions): void;
38
+ private deselectSelectedButtons;
39
+ private handleActionButtonChange;
40
+ private handleClick;
41
+ private applySelects;
42
+ private manageSelects;
43
+ protected render(): TemplateResult;
44
+ protected firstUpdated(changes: PropertyValues): void;
45
+ protected updated(changes: PropertyValues): void;
46
+ private manageChildren;
47
+ private hasManaged;
48
+ private manageButtons;
49
+ }
50
+ export {};
@@ -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 o=require("../action-group-D4MxBrq8.cjs");customElements.get("luzmo-action-group")||customElements.define("luzmo-action-group",o.LuzmoActionGroup);exports.LuzmoActionGroup=o.LuzmoActionGroup;
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../action-group-C8YUQzt8.cjs");customElements.get("luzmo-action-group")||customElements.define("luzmo-action-group",o.LuzmoActionGroup);exports.LuzmoActionGroup=o.LuzmoActionGroup;
@@ -0,0 +1,7 @@
1
+ import { LuzmoActionGroup } from './action-group';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-action-group': LuzmoActionGroup;
5
+ }
6
+ }
7
+ export { LuzmoActionGroup } from './action-group';
@@ -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 r } from "../action-group-BoIH8s8R.js";
18
+ import { L as r } from "../action-group-B7oQXv30.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,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 { L as h, n as c } from "./base-nYalvNMy.js";
21
- import { R as b } from "./roving-tabindex-DOg4z6ZU.js";
22
- import { S as m } from "./sized-mixin-Dl0KoEcV.js";
23
- import { e as v } from "./query-D_KR_GUc.js";
18
+ import { L as d, r as p, x as g, n as c } from "./base-CxUap9HL.js";
19
+ import { s as h } from "./mutation-controller-DH7YOCyj.js";
20
+ import { e as b } from "./query-D_KR_GUc.js";
21
+ import { R as m } from "./roving-tabindex-DOg4z6ZU.js";
22
+ import { S as v } from "./sized-mixin-DcJTTohI.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,12 +27,12 @@ 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 m(h, {
30
+ class u extends v(d, {
32
31
  validSizes: ["xs", "s", "m", "l", "xl"],
33
32
  noDefaultSize: !0
34
33
  }) {
35
34
  constructor() {
36
- super(), this._buttons = [], this._buttonSelector = "luzmo-action-button, luzmo-action-menu", this.rovingTabindexController = new b(
35
+ super(), this._buttons = [], this._buttonSelector = "luzmo-action-button, luzmo-action-menu", this.rovingTabindexController = new m(
37
36
  this,
38
37
  {
39
38
  focusInIndex: (t) => {
@@ -67,7 +66,7 @@ class u extends m(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 m(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 m(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
  }
@@ -252,7 +251,7 @@ s([
252
251
  c({ type: Array })
253
252
  ], u.prototype, "selected", 1);
254
253
  s([
255
- v("slot")
254
+ b("slot")
256
255
  ], u.prototype, "slotElement", 2);
257
256
  export {
258
257
  u as L
@@ -0,0 +1,20 @@
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-rtxi7uaR.cjs"),d=require("./mutation-controller-DkOMCW-c.cjs"),p=require("./query-BL-TJj7K.cjs"),g=require("./roving-tabindex-By_fCy_e.cjs"),b=require("./sized-mixin-BAI6NiE2.cjs"),h=":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))}";var m=Object.defineProperty,v=Object.getOwnPropertyDescriptor,c=(n,t,r,e)=>{for(var o=e>1?void 0:e?v(t,r):t,a=n.length-1,i;a>=0;a--)(i=n[a])&&(o=(e?i(t,r,o):i(o))||o);return e&&o&&m(t,r,o),o};const l=[];class u extends b.SizedMixin(s.LuzmoElement,{validSizes:["xs","s","m","l","xl"],noDefaultSize:!0}){constructor(){super(),this._buttons=[],this._buttonSelector="luzmo-action-button, luzmo-action-menu",this.rovingTabindexController=new g.RovingTabindexController(this,{focusInIndex:t=>{let r=-1;const e=t.findIndex((o,a)=>(!t[r]&&!o.disabled&&(r=a),o.selected&&!o.disabled));return t[e]?e:r},elements:()=>this.buttons,isFocusableElement:t=>!t.disabled}),this.compact=!1,this.emphasized=!1,this.justified=!1,this.label="",this.quiet=!1,this.vertical=!1,this._selected=l,this.hasManaged=!1,this.manageButtons=()=>{if(!this.slotElement)return;const r=this.slotElement.assignedElements({flatten:!0}).reduce((e,o)=>{if(o.matches(this._buttonSelector))e.push(o);else{const a=[...o.querySelectorAll(`:scope > ${this._buttonSelector}`)];e.push(...a)}return e},[]);if(this.buttons=r,this.selects||!this.hasManaged){const e=[];this.buttons.forEach(o=>{o.selected&&e.push(o.value)}),this.setSelected([...this.selected,...e])}this.manageChildren(),this.manageSelects(),this.hasManaged=!0},new d.s(this,{config:{childList:!0,subtree:!0},callback:()=>{this.manageButtons()},skipInitial:!0})}static get styles(){return[s.r(h)]}set buttons(t){t!==this.buttons&&(this._buttons=t,this.rovingTabindexController.clearElementCache())}get buttons(){return this._buttons}set selected(t){this.requestUpdate("selected",this._selected),this._selected=t,this.updateComplete.then(()=>{this.applySelects(),this.manageChildren()})}get selected(){return this._selected}dispatchChange(t){this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,cancelable:!0}))||(this.setSelected(t),this.buttons.map(e=>{e.selected=this.selected.includes(e.value)}))}setSelected(t,r){if(t===this.selected)return;const e=this.selected;this.requestUpdate("selected",e),this._selected=t,r&&this.dispatchChange(e)}focus(t){this.rovingTabindexController.focus(t)}deselectSelectedButtons(){this.buttons.forEach(t=>{t.selected&&(t.selected=!1,t.tabIndex=-1,t.setAttribute(this.selects?"aria-checked":"aria-pressed","false"))})}handleActionButtonChange(t){t.stopPropagation(),t.preventDefault()}handleClick(t){const r=t.target;if(r.value!==void 0)switch(this.selects){case"single":{this.deselectSelectedButtons(),r.selected=!0,r.tabIndex=0,r.setAttribute("aria-checked","true"),this.setSelected([r.value],!0);break}case"multiple":{const e=[...this.selected];r.selected=!r.selected,r.setAttribute("aria-checked",r.selected?"true":"false"),r.selected?e.push(r.value):e.splice(this.selected.indexOf(r.value),1),this.setSelected(e,!0),this.buttons.forEach(o=>{o.tabIndex=-1}),r.tabIndex=0;break}}}async applySelects(){await this.manageSelects(!0)}async manageSelects(t){if(this.buttons.length===0)return;const r=this.buttons;switch(this.selects){case"single":{this.setAttribute("role","radiogroup");const e=[],o=r.map(async i=>{await i.updateComplete,i.setAttribute("role","radio"),i.setAttribute("aria-checked",i.selected?"true":"false"),i.selected&&e.push(i)});if(t)break;await Promise.all(o);const a=e.map(i=>i.value);this.setSelected(a||l);break}case"multiple":{this.getAttribute("role")==="radiogroup"&&this.removeAttribute("role");const e=[],o=r.map(async i=>{await i.updateComplete,i.setAttribute("role","checkbox"),i.setAttribute("aria-checked",i.selected?"true":"false"),i.selected&&e.push(i.value)});if(t)break;await Promise.all(o);const a=e.length>0?e:l;this.setSelected(a);break}default:if(this.selected.length>0){const e=[],o=r.map(async a=>{await a.updateComplete,a.setAttribute("role","button"),a.selected?(a.setAttribute("aria-pressed","true"),e.push(a)):a.removeAttribute("aria-pressed")});if(t)break;await Promise.all(o),this.setSelected(e.map(a=>a.value))}else{this.buttons.forEach(e=>{e.setAttribute("role","button")});break}}this.hasAttribute("role")||this.setAttribute("role","toolbar")}render(){return s.x`
19
+ <slot role="presentation" @slotchange=${this.manageButtons}></slot>
20
+ `}firstUpdated(t){super.firstUpdated(t),this.addEventListener("click",this.handleClick)}updated(t){super.updated(t),t.has("selects")&&(this.manageSelects(),this.manageChildren(),this.selects?this.renderRoot.addEventListener("change",this.handleActionButtonChange):this.renderRoot.removeEventListener("change",this.handleActionButtonChange)),(t.has("quiet")||t.has("emphasized")||t.has("size")||t.has("staticColor"))&&this.manageChildren(t),t.has("label")&&(this.label||t.get("label")!==void 0)&&(this.label.length>0?this.setAttribute("aria-label",this.label):this.removeAttribute("aria-label"))}manageChildren(t){this.buttons.forEach(r=>{(this.quiet||t!=null&&t.get("quiet"))&&(r.quiet=this.quiet),(this.emphasized||t!=null&&t.get("emphasized"))&&(r.emphasized=this.emphasized),(this.staticColor||t!=null&&t.get("staticColor"))&&(r.staticColor=this.staticColor),(this.selects||!this.hasManaged)&&(r.selected=this.selected.includes(r.value)),this.size&&(this.size!=="m"||(t==null?void 0:t.get("size"))!==void 0)&&(r.size=this.size)})}}c([s.n({type:Boolean,reflect:!0})],u.prototype,"compact",2);c([s.n({type:Boolean,reflect:!0})],u.prototype,"emphasized",2);c([s.n({type:Boolean,reflect:!0})],u.prototype,"justified",2);c([s.n({type:String})],u.prototype,"label",2);c([s.n({type:Boolean,reflect:!0})],u.prototype,"quiet",2);c([s.n({type:String})],u.prototype,"selects",2);c([s.n({reflect:!0,attribute:"static-color"})],u.prototype,"staticColor",2);c([s.n({type:Boolean,reflect:!0})],u.prototype,"vertical",2);c([s.n({type:Array})],u.prototype,"selected",1);c([p.e("slot")],u.prototype,"slotElement",2);exports.LuzmoActionGroup=u;
@@ -0,0 +1,40 @@
1
+ import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
2
+ import { SlottableRequestEvent } from '../overlay/slottable-request-event';
3
+ import { LuzmoPickerBase } from '../picker/picker';
4
+ import './../action-button';
5
+ import './../icon';
6
+ import './../overlay';
7
+ import './../popover';
8
+ declare const LuzmoActionMenu_base: typeof LuzmoPickerBase & {
9
+ new (...args: any[]): import("../../utils/observe-slot-text").SlotTextObservingInterface;
10
+ prototype: import("../../utils/observe-slot-text").SlotTextObservingInterface;
11
+ } & {
12
+ new (...args: any[]): import("../../utils/observe-slot-presence").SlotPresenceObservingInterface;
13
+ prototype: import("../../utils/observe-slot-presence").SlotPresenceObservingInterface;
14
+ };
15
+ /**
16
+ * @element luzmo-action-menu
17
+ *
18
+ * @slot - menu items to be listed in the Action Menu
19
+ * @slot icon - The icon to use for the Action Menu
20
+ * @slot label - The label to use for the Action Menu
21
+ * @slot label-only - The label to use for the Action Menu (no icon space reserved)
22
+ * @slot tooltip - Tooltip to be applied to the Action Button
23
+ * @attr selects - By default `luzmo-action-menu` does not manage a selection. If
24
+ * you'd like for a selection to be held by the `luzmo-menu` that it presents in
25
+ * its overlay, use `selects="single" to activate this functionality.
26
+ */
27
+ export declare class LuzmoActionMenu extends LuzmoActionMenu_base {
28
+ static get styles(): CSSResultArray;
29
+ selects: undefined | 'single';
30
+ staticColor?: 'white' | 'black';
31
+ protected listRole: 'listbox' | 'menu';
32
+ protected itemRole: string;
33
+ private get hasLabel();
34
+ private get labelOnly();
35
+ handleSlottableRequest: (event: SlottableRequestEvent) => void;
36
+ protected get buttonContent(): TemplateResult[];
37
+ protected render(): TemplateResult;
38
+ protected update(changedProperties: PropertyValues<this>): void;
39
+ }
40
+ export {};
@@ -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"),b=require("../index-yNcLzjhM.cjs"),p=require("../observe-slot-text-BmsCNJig.cjs"),o=require("lit"),h=require("../base-BCmA9Wxv.cjs"),v=require("../state-DReJ3hB6.cjs"),u=require("../if-defined-Cv6xanXh.cjs"),y=require("../slottable-request-event-BfUUt1Mh.cjs"),d=require("../picker-B9W7Haf4.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 b.ObserveSlotPresence(p.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 h=require("@luzmo/icons"),o=require("../base-rtxi7uaR.cjs"),b=require("../state-WWHLNMRG.cjs"),u=require("../if-defined-C-8FyBSN.cjs"),m=require("../index-CNtoBntg.cjs"),p=require("../observe-slot-text-DeSKIzvP.cjs"),v=require("../slottable-request-event-BfUUt1Mh.cjs"),d=require("../picker-8cOc-jjh.cjs");require("../action-button/index.cjs");require("../icon/index.cjs");require("../overlay/index.cjs");require("../popover/index.cjs");const y=":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 f=Object.defineProperty,z=Object.getOwnPropertyDescriptor,c=(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&&f(t,s,e),e};class n extends m.ObserveSlotPresence(p.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 v.SlottableRequestEvent(t.name,t.data))}}static get styles(){return[o.r(y)]}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=${h.luzmoEllipsisHorizontal}
29
29
  size=${this.size}
30
30
  ></luzmo-icon>
31
31
  </slot>
@@ -33,7 +33,7 @@
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
38
  aria-describedby=${d.DESCRIPTION_ID}
39
39
  ?quiet=${this.quiet}
@@ -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([v.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)}}c([o.n({type:String})],n.prototype,"selects",2);c([o.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;
@@ -0,0 +1,7 @@
1
+ import { LuzmoActionMenu } from './action-menu';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-action-menu': LuzmoActionMenu;
5
+ }
6
+ }
7
+ export { LuzmoActionMenu } from './action-menu';
@@ -16,14 +16,13 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import { luzmoEllipsisHorizontal as z } from "@luzmo/icons";
19
- import { O as b } from "../index-ovT-qVzf.js";
20
- import { O as h } from "../observe-slot-text-BoFRF-VI.js";
21
- import { unsafeCSS as p, html as r } from "lit";
22
- import { n as c } from "../base-nYalvNMy.js";
23
- import { r as f } from "../state-BAO-13Bs.js";
24
- import { o as a } from "../if-defined-CYpcjGCb.js";
19
+ import { r as b, x as r, n as c } from "../base-CxUap9HL.js";
20
+ import { r as h } from "../state-D8vot9IB.js";
21
+ import { o as a } from "../if-defined-XzWkhMhg.js";
22
+ import { O as p } from "../index-Ci6Jnhu4.js";
23
+ import { O as f } from "../observe-slot-text-DrM71me1.js";
25
24
  import { S as g } from "../slottable-request-event-DggLA4Rx.js";
26
- import { L as x, D as v } from "../picker--2OCYWnV.js";
25
+ import { L as x, D as v } from "../picker-BZAWrSDk.js";
27
26
  import "../action-button/index.js";
28
27
  import "../icon/index.js";
29
28
  import "../overlay/index.js";
@@ -41,8 +40,8 @@ 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 b(
45
- h(x, "label"),
43
+ class i extends p(
44
+ f(x, "label"),
46
45
  '[slot="label-only"]'
47
46
  ) {
48
47
  constructor() {
@@ -51,7 +50,7 @@ class i extends b(
51
50
  };
52
51
  }
53
52
  static get styles() {
54
- return [p(y)];
53
+ return [b(y)];
55
54
  }
56
55
  get hasLabel() {
57
56
  return this.slotHasContent;
@@ -119,7 +118,7 @@ m([
119
118
  c({ reflect: !0, attribute: "static-color" })
120
119
  ], i.prototype, "staticColor", 2);
121
120
  m([
122
- f()
121
+ h()
123
122
  ], i.prototype, "labelOnly", 1);
124
123
  customElements.get("luzmo-action-menu") || customElements.define("luzmo-action-menu", i);
125
124
  export {
@@ -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 { f as _ } from "./directive-helpers-BLDZnGQv.js";
18
+ import { f as _ } from "./directive-helpers-D0vm0gvF.js";
19
19
  import { i as f, t as A } from "./directive-oAbCiebi.js";
20
20
  /**
21
21
  * @license
@@ -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 $=require("./directive-helpers-C2vOfhFx.cjs"),c=require("./directive-C7oCP5Bh.cjs");/**
18
+ "use strict";const $=require("./directive-helpers-C3pAxRR3.cjs"),c=require("./directive-C7oCP5Bh.cjs");/**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
@@ -0,0 +1,31 @@
1
+ import { CSSResultArray, TemplateResult } from 'lit';
2
+ import { Focusable } from '../../utils/focusable';
3
+ declare const LuzmoAvatar_base: typeof Focusable & {
4
+ new (...args: any[]): import("../../utils/sized-mixin").SizedElementInterface;
5
+ prototype: import("../../utils/sized-mixin").SizedElementInterface;
6
+ } & {
7
+ new (...args: any[]): import("../../utils/like-anchor").LikeAnchorInterface;
8
+ prototype: import("../../utils/like-anchor").LikeAnchorInterface;
9
+ };
10
+ /**
11
+ * @element luzmo-avatar
12
+ */
13
+ export declare class LuzmoAvatar extends LuzmoAvatar_base {
14
+ static get styles(): CSSResultArray;
15
+ /**
16
+ * The border style of the avatar image
17
+ */
18
+ border?: 'none' | 'light';
19
+ /**
20
+ * The rounding of the avatar image
21
+ */
22
+ rounding?: 'none' | 'full';
23
+ private anchorElement;
24
+ get focusElement(): HTMLElement;
25
+ /**
26
+ * The src of the avatar image.
27
+ */
28
+ src: string;
29
+ protected render(): TemplateResult;
30
+ }
31
+ export {};
@@ -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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../base-rtxi7uaR.cjs"),l=require("../query-BL-TJj7K.cjs"),u=require("../if-defined-C-8FyBSN.cjs"),d=require("../focusable-DyyBr-J-.cjs"),z=require("../like-anchor-DKuw8fJA.cjs"),v=require("../sized-mixin-BAI6NiE2.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,n,b)=>{for(var a=void 0,s=i.length-1,c;s>=0;s--)(c=i[s])&&(a=c(o,n,a)||a);return a&&m(o,n,a),a};class r extends z.LikeAnchor(v.SizedMixin(d.Focusable,{validSizes:Object.values(v.ElementSizes)})){constructor(){super(...arguments),this.src=""}static get styles(){return[t.r(h)]}get focusElement(){return this.anchorElement||this}render(){const o=t.x`
19
+ <img
20
+ class="image"
21
+ alt=${u.o(this.label||void 0)}
22
+ src=${this.src}
23
+ />
24
+ `;return this.href?this.renderAnchor({id:"link",className:"link",anchorContent:o}):o}}e([t.n({type:String,reflect:!0})],r.prototype,"border");e([t.n({type:String,reflect:!0})],r.prototype,"rounding");e([l.e("#link")],r.prototype,"anchorElement");e([t.n()],r.prototype,"src");customElements.get("luzmo-avatar")||customElements.define("luzmo-avatar",r);exports.LuzmoAvatar=r;
@@ -0,0 +1,7 @@
1
+ import { LuzmoAvatar } from './avatar';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-avatar': LuzmoAvatar;
5
+ }
6
+ }
7
+ export { LuzmoAvatar } from './avatar';
@@ -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 { F as n } from "../focusable-DbUg-3Vp.js";
19
- import { L as m } from "../like-anchor-cDeGGeHh.js";
20
- import { S as d, E as z } from "../sized-mixin-Dl0KoEcV.js";
21
- import { unsafeCSS as v, html as b } from "lit";
22
- import { n as i } from "../base-nYalvNMy.js";
23
- import { e as f } from "../query-D_KR_GUc.js";
24
- import { o as h } from "../if-defined-CYpcjGCb.js";
18
+ import { r as n, x as m, n as i } from "../base-CxUap9HL.js";
19
+ import { e as d } from "../query-D_KR_GUc.js";
20
+ import { o as z } from "../if-defined-XzWkhMhg.js";
21
+ import { F as v } from "../focusable-Bze9xE25.js";
22
+ import { L as b } from "../like-anchor-DnsAwo_O.js";
23
+ import { S as f, E as h } from "../sized-mixin-DcJTTohI.js";
25
24
  const u = () => {
26
25
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
27
26
  const o = document.createElement("style");
@@ -35,25 +34,25 @@ var p = Object.defineProperty, l = (o, a, s, x) => {
35
34
  (c = o[t]) && (r = c(a, s, r) || r);
36
35
  return r && p(a, s, r), r;
37
36
  };
38
- class e extends m(
39
- d(n, {
40
- validSizes: Object.values(z)
37
+ class e extends b(
38
+ f(v, {
39
+ validSizes: Object.values(h)
41
40
  })
42
41
  ) {
43
42
  constructor() {
44
43
  super(...arguments), this.src = "";
45
44
  }
46
45
  static get styles() {
47
- return [v(g)];
46
+ return [n(g)];
48
47
  }
49
48
  get focusElement() {
50
49
  return this.anchorElement || this;
51
50
  }
52
51
  render() {
53
- const a = b`
52
+ const a = m`
54
53
  <img
55
54
  class="image"
56
- alt=${h(this.label || void 0)}
55
+ alt=${z(this.label || void 0)}
57
56
  src=${this.src}
58
57
  />
59
58
  `;
@@ -71,7 +70,7 @@ l([
71
70
  i({ type: String, reflect: !0 })
72
71
  ], e.prototype, "rounding");
73
72
  l([
74
- f("#link")
73
+ d("#link")
75
74
  ], e.prototype, "anchorElement");
76
75
  l([
77
76
  i()