@luzmo/lucero 2.5.1 → 2.6.0

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 (490) hide show
  1. package/components/accordion/index.cjs +1 -1
  2. package/components/accordion/index.js +1 -2
  3. package/components/{accordion-ciplqKwM.js → accordion-BJLsCC-2.js} +7 -8
  4. package/components/{accordion-BK0LfhmL.cjs → accordion-OQ0RoC_7.cjs} +1 -1
  5. package/components/action-bar/index.cjs +1 -1
  6. package/components/action-bar/index.js +1 -2
  7. package/components/{action-bar-BZBIeGo7.js → action-bar-B-Y-gJ8B.js} +9 -17
  8. package/components/{action-bar-DAqG_7VG.cjs → action-bar-Dyt2tyjr.cjs} +1 -1
  9. package/components/action-button/index.cjs +1 -1
  10. package/components/action-button/index.js +1 -2
  11. package/components/{action-button-DU95RNNi.js → action-button-BB3ZZFNN.js} +6 -8
  12. package/components/{action-button-B4_uvHiN.cjs → action-button-CL4ZlryE.cjs} +1 -1
  13. package/components/action-group/index.cjs +1 -1
  14. package/components/action-group/index.js +1 -2
  15. package/components/{action-group-oo7YV0EW.cjs → action-group-Doll-3Bf.cjs} +1 -1
  16. package/components/{action-group-DSiruuF0.js → action-group-HECoPCas.js} +7 -9
  17. package/components/action-menu/index.cjs +1 -1
  18. package/components/action-menu/index.js +1 -2
  19. package/components/{action-menu-C_vyFNJt.cjs → action-menu-BW-XpCVO.cjs} +1 -1
  20. package/components/{action-menu-B6nNYwlL.js → action-menu-LnXQ7reF.js} +11 -13
  21. package/components/avatar/index.cjs +1 -1
  22. package/components/avatar/index.js +1 -2
  23. package/components/{avatar-CwSyYAKV.js → avatar-CVRQDsx6.js} +7 -9
  24. package/components/{avatar-DHS5UGTJ.cjs → avatar-DFzJbtId.cjs} +1 -1
  25. package/components/badge/index.cjs +1 -1
  26. package/components/badge/index.js +1 -2
  27. package/components/{badge-Bp-1d70q.js → badge-BSfzmBRf.js} +6 -8
  28. package/components/{badge-CNeUkS4b.cjs → badge-DzElGOcl.cjs} +1 -1
  29. package/components/button/index.cjs +1 -1
  30. package/components/button/index.js +2 -2
  31. package/components/{button-B1V_2tHk.cjs → button-BGEWdRbY.cjs} +2 -2
  32. package/components/{button-QXavBh1X.js → button-CpaltgRZ.js} +12 -13
  33. package/components/{button-base-DiPzVpp4.js → button-base-BzakIKd0.js} +12 -35
  34. package/components/{button-base-DiNxrttk.cjs → button-base-CpK2ktvQ.cjs} +3 -3
  35. package/components/button-group/index.cjs +1 -1
  36. package/components/button-group/index.js +1 -2
  37. package/components/{button-group-Du7R4SxZ.cjs → button-group-C23OtGC0.cjs} +1 -1
  38. package/components/{button-group-Duf-Igst.js → button-group-DMsT6N0P.js} +4 -6
  39. package/components/calendar/index.cjs +1 -1
  40. package/components/calendar/index.js +1 -2
  41. package/components/{calendar-CLGqcox8.cjs → calendar-BqyGW8gU.cjs} +3 -3
  42. package/components/{calendar-BNGwCJsG.js → calendar-D4x5gp_0.js} +14 -33
  43. package/components/chat-message/index.cjs +1 -1
  44. package/components/chat-message/index.js +1 -2
  45. package/components/{chat-message-D6U-sprD.js → chat-message-5gP_qbiz.js} +665 -654
  46. package/components/chat-message-Dn5GKsSD.cjs +148 -0
  47. package/components/chat-message-group/index.cjs +1 -1
  48. package/components/chat-message-group/index.js +1 -2
  49. package/components/{chat-message-group-k9lo-ZqD.js → chat-message-group-Bp4mshBY.js} +18 -18
  50. package/components/{chat-message-group-CvxdX3jt.cjs → chat-message-group-CJddlS85.cjs} +1 -1
  51. package/components/checkbox/index.cjs +1 -1
  52. package/components/checkbox/index.js +1 -2
  53. package/components/checkbox-CVi4GMoo.cjs +25 -0
  54. package/components/{checkbox-CydI9yXG.js → checkbox-CvRvgRzh.js} +7 -13
  55. package/components/{checkbox-mixin-jqmrh48O.js → checkbox-mixin-BIuvxtEt.js} +2 -3
  56. package/components/{checkbox-mixin-rFRXqyrK.cjs → checkbox-mixin-DAdnTm-F.cjs} +1 -1
  57. package/components/{close-button-Dlvtf9lB.js → close-button-7zS6PUzh.js} +5 -6
  58. package/components/{close-button-BAELImQY.cjs → close-button-B06i2hJn.cjs} +1 -1
  59. package/components/color-area/color-area.d.ts +15 -0
  60. package/components/color-area/index.cjs +1 -1
  61. package/components/color-area/index.d.ts +1 -0
  62. package/components/color-area/index.js +1 -2
  63. package/components/color-area-CFBE-rG3.cjs +80 -0
  64. package/components/{color-area-lbg8wwZG.js → color-area-GGa8KJyd.js} +88 -57
  65. package/components/color-controller-BpdydwTO.cjs +18 -0
  66. package/components/{color-controller-Rg_Zl0sT.js → color-controller-CauSxC_r.js} +1 -2
  67. package/components/color-field/index.cjs +1 -1
  68. package/components/color-field/index.js +1 -2
  69. package/components/{color-field-BH9x46k_.cjs → color-field-CN8shDl_.cjs} +1 -1
  70. package/components/{color-field-C9S-Fv46.js → color-field-CVyDNZ4b.js} +5 -7
  71. package/components/color-handle/index.cjs +1 -1
  72. package/components/color-handle/index.js +1 -2
  73. package/components/{color-handle-BEDQ1RcS.js → color-handle-Ya92rdpA.js} +9 -8
  74. package/components/{color-handle-2iFLp9FN.cjs → color-handle-hJ7Kblh4.cjs} +1 -1
  75. package/components/color-loupe/index.cjs +1 -1
  76. package/components/color-loupe/index.js +1 -2
  77. package/components/{color-loupe-6NcLbFco.cjs → color-loupe-2X1bCYU9.cjs} +1 -1
  78. package/components/{color-loupe-CqHyyvjQ.js → color-loupe-Bu37Uwk6.js} +3 -5
  79. package/components/color-menu/color-menu.d.ts +11 -0
  80. package/components/color-menu/index.cjs +1 -1
  81. package/components/color-menu/index.d.ts +1 -0
  82. package/components/color-menu/index.js +1 -2
  83. package/components/{color-menu-BYTgxLQG.cjs → color-menu-COhe5VUB.cjs} +1 -1
  84. package/components/{color-menu-qJK_clDq.js → color-menu-Ct3f01bI.js} +15 -14
  85. package/components/color-palette/index.cjs +1 -1
  86. package/components/color-palette/index.js +1 -2
  87. package/components/{color-palette-x6W09EBL.cjs → color-palette-D5NZDz5I.cjs} +1 -1
  88. package/components/{color-palette-CqiO5ohz.js → color-palette-UU7Feiwh.js} +7 -8
  89. package/components/color-palette-group/index.cjs +1 -1
  90. package/components/color-palette-group/index.js +1 -2
  91. package/components/{color-palette-group-zByrO_qb.js → color-palette-group-CwmC9iR1.js} +5 -7
  92. package/components/{color-palette-group-D4k_7pW6.cjs → color-palette-group-DhGh0Db8.cjs} +1 -1
  93. package/components/color-picker/color-picker.d.ts +13 -0
  94. package/components/color-picker/index.cjs +1 -1
  95. package/components/color-picker/index.d.ts +1 -0
  96. package/components/color-picker/index.js +1 -2
  97. package/components/{color-picker-CSuAPo5X.js → color-picker-DWERcNZi.js} +13 -12
  98. package/components/{color-picker-BAikpqUT.cjs → color-picker-ELa0yF2F.cjs} +1 -1
  99. package/components/color-slider/color-slider.d.ts +17 -0
  100. package/components/color-slider/index.cjs +1 -1
  101. package/components/color-slider/index.d.ts +1 -0
  102. package/components/color-slider/index.js +1 -2
  103. package/components/{color-slider-0JzdSRTy.js → color-slider-DNd_ZrD6.js} +97 -64
  104. package/components/color-slider-IYBn2DL7.cjs +58 -0
  105. package/components/{condition-attribute-with-id-BdnTdWKz.js → condition-attribute-with-id-v1wjKZc3.js} +1 -2
  106. package/components/date-range-picker/index.cjs +1 -1
  107. package/components/date-range-picker/index.js +1 -2
  108. package/components/{date-range-picker-5SDPe2fQ.js → date-range-picker-CoCz3uDz.js} +28 -29
  109. package/components/{date-range-picker-CLfEEYkE.cjs → date-range-picker-DyJdcFiA.cjs} +3 -3
  110. package/components/date-time-picker/index.cjs +1 -1
  111. package/components/date-time-picker/index.js +1 -2
  112. package/components/{date-time-picker-DXTksnPd.cjs → date-time-picker-CEEeMXGn.cjs} +3 -3
  113. package/components/{date-time-picker-s3xujamC.js → date-time-picker-CsgO17tA.js} +23 -36
  114. package/components/{decorate-CkCg3wfh.js → decorate-CpKsOs9z.js} +18 -19
  115. package/components/{decorate-Dq34MBGe.cjs → decorate-SO02l0A6.cjs} +1 -1
  116. package/components/{dependency-manger-wHEXoU92.js → dependency-manger-BneVBZQi.js} +1 -2
  117. package/components/divider/index.cjs +1 -1
  118. package/components/divider/index.js +1 -2
  119. package/components/{divider-Cz5nyvP9.js → divider-Bt0NIqfu.js} +5 -7
  120. package/components/{divider-BcE8D-pH.cjs → divider-fWGUxO6A.cjs} +1 -1
  121. package/components/{divider.module-CPEKsaqR.js → divider.module-B_GRUJ4d.js} +1 -2
  122. package/components/{element-resolution-gap51AVo.js → element-resolution-BYvcpZwK.js} +1 -2
  123. package/components/field-group/index.cjs +1 -1
  124. package/components/field-group/index.js +2 -3
  125. package/components/{field-group-Dd5xYczm.cjs → field-group-B8mhEhNJ.cjs} +1 -1
  126. package/components/{field-group-C_kRq7pJ.js → field-group-CdDcdMO1.js} +3 -4
  127. package/components/field-label/index.cjs +1 -1
  128. package/components/field-label/index.js +1 -2
  129. package/components/{field-label-C0vfY1b6.cjs → field-label-B3IsGUTv.cjs} +2 -2
  130. package/components/{field-label-C28wWqC5.js → field-label-DOUnHwwh.js} +9 -15
  131. package/components/focus-group-C0ncbmUD.cjs +18 -0
  132. package/components/{focus-group-DVPa1zxz.js → focus-group-lQqPbdDl.js} +5 -7
  133. package/components/{focus-visible-DNHNlrty.cjs → focus-visible-BQAhwoxi.cjs} +1 -1
  134. package/components/{focus-visible-Bt2uDmuM.js → focus-visible-D6TRtUd7.js} +2 -3
  135. package/components/focusable-BIHTrJd6.cjs +18 -0
  136. package/components/{focusable-selectors-BWpiuXz5.js → focusable-selectors-BDNeWxbe.js} +1 -2
  137. package/components/{focusable-DuP0-Kuy.js → focusable-xjv79E40.js} +9 -17
  138. package/components/{get-label-from-slot-Bo9mqYCZ.js → get-label-from-slot-Bw5crGFw.js} +1 -2
  139. package/components/icon/index.cjs +1 -1
  140. package/components/icon/index.js +1 -2
  141. package/components/{icon-zOPAWCdx.cjs → icon-BlbMP3mJ.cjs} +1 -1
  142. package/components/{icon-CsJZMhIm.js → icon-DADJww_a.js} +4 -7
  143. package/components/index.cjs +1 -1
  144. package/components/index.js +71 -71
  145. package/components/infield-button/index.cjs +1 -1
  146. package/components/infield-button/index.js +1 -2
  147. package/components/{infield-button-DiE8R6ol.js → infield-button-CeE_JxR6.js} +5 -7
  148. package/components/{infield-button-kilVRjwB.cjs → infield-button-uD1GqTLW.cjs} +1 -1
  149. package/components/interaction-BjXWVy_C.cjs +18 -0
  150. package/components/interaction-BpCLJ1OV.js +83 -0
  151. package/components/label/index.cjs +1 -1
  152. package/components/label/index.js +1 -2
  153. package/components/{label-e6Y13vrS.js → label-D1v4e6mN.js} +3 -5
  154. package/components/{label-B3zs6OX0.cjs → label-uuwIy_Ge.cjs} +1 -1
  155. package/components/{language-resolution-BaKYDD1a.js → language-resolution-7rc0khIK.js} +3 -4
  156. package/components/{language-resolution-CSjktYg5.cjs → language-resolution-B7D3hQ6_.cjs} +1 -1
  157. package/components/{like-anchor-DXCaEv7O.js → like-anchor-DcFv8rEo.js} +2 -3
  158. package/components/{like-anchor-BX4PSB3d.cjs → like-anchor-De9STeWr.cjs} +1 -1
  159. package/components/{manage-help-text-ByLb0QYX.js → manage-help-text-CFUaqINN.js} +4 -6
  160. package/components/{match-media-C5X2OZiD.js → match-media-UNh23w4s.js} +1 -2
  161. package/components/menu/index.cjs +1 -1
  162. package/components/menu/index.js +1 -2
  163. package/components/menu-BKwt6rnv.cjs +108 -0
  164. package/components/{menu-fdJseu1y.js → menu-L5qYivn6.js} +43 -67
  165. package/components/multi-language-field/index.cjs +1 -1
  166. package/components/multi-language-field/index.js +1 -2
  167. package/components/{multi-language-field-vJMK-osi.js → multi-language-field-NY2XwK2M.js} +6 -8
  168. package/components/{multi-language-field-BndVikur.cjs → multi-language-field-djoM4Okc.cjs} +1 -1
  169. package/components/notice/index.cjs +1 -1
  170. package/components/notice/index.js +1 -2
  171. package/components/{notice-CQI5kFRd.js → notice-CrLVNmqL.js} +6 -8
  172. package/components/{notice-CQFyo6OE.cjs → notice-f0p0TiGw.cjs} +1 -1
  173. package/components/number-field/index.cjs +1 -1
  174. package/components/number-field/index.js +1 -2
  175. package/components/number-field/number-field.d.ts +4 -0
  176. package/components/{number-field-xxXgR70l.cjs → number-field-CV7g2Q20.cjs} +2 -2
  177. package/components/{number-field-DAOy_AvQ.js → number-field-Crol6vc9.js} +26 -28
  178. package/components/{observe-slot-presence-BKY6n06-.js → observe-slot-presence-t2N_C6Ud.js} +1 -2
  179. package/components/{observe-slot-text-CvL-2ey3.cjs → observe-slot-text-BqwCIv2a.cjs} +1 -1
  180. package/components/{observe-slot-text-Db8Kx3P-.js → observe-slot-text-Dzkb_VqN.js} +2 -3
  181. package/components/options/index.cjs +1 -1
  182. package/components/options/index.js +1 -2
  183. package/components/{options-D_ifU0DH.js → options-BHDesKbF.js} +20 -31
  184. package/components/{options-CP9V2CSJ.cjs → options-Dk1uFeUT.cjs} +5 -5
  185. package/components/overlay/index.cjs +1 -1
  186. package/components/overlay/index.js +2 -2
  187. package/components/overlay-DAOyrYJL.cjs +102 -0
  188. package/components/{overlay-DpHIYJtd.js → overlay-D_Xfq92b.js} +62 -118
  189. package/components/{pending-state-CGHvTtKR.cjs → pending-state-A6NrvaQj.cjs} +1 -1
  190. package/components/{pending-state-D_b45qvi.js → pending-state-BuYmUP6G.js} +2 -3
  191. package/components/picker/index.cjs +1 -1
  192. package/components/picker/index.js +2 -3
  193. package/components/{picker-Czkf6auL.js → picker-C5eX5WBl.js} +24 -40
  194. package/components/{picker-C1tD-4ac.cjs → picker-CQCAt4Mx.cjs} +4 -4
  195. package/components/picker-button/index.cjs +1 -1
  196. package/components/picker-button/index.js +1 -2
  197. package/components/{picker-button-B8Jbf9jK.cjs → picker-button-BWDfzx38.cjs} +2 -2
  198. package/components/{picker-button-CJQJshbo.js → picker-button-BhfY9gyk.js} +11 -12
  199. package/components/{platform-Ce9pNsR9.js → platform-CDW-WdXN.js} +1 -2
  200. package/components/popover/index.cjs +1 -1
  201. package/components/popover/index.js +1 -2
  202. package/components/{popover-BsdqkvKI.cjs → popover-CFzz83f8.cjs} +1 -1
  203. package/components/{popover-DC8tkee-.js → popover-CWrRLzOL.js} +4 -6
  204. package/components/progress-bar/index.cjs +1 -1
  205. package/components/progress-bar/index.js +1 -2
  206. package/components/{progress-bar-CrodWzcc.cjs → progress-bar-9Qg0PYAq.cjs} +2 -2
  207. package/components/{progress-bar-D4iFHkp7.js → progress-bar-D6wIZV5l.js} +16 -22
  208. package/components/progress-circle/index.cjs +1 -1
  209. package/components/progress-circle/index.js +1 -2
  210. package/components/{progress-circle-bO_VAX3N.cjs → progress-circle-C_9UZs2Y.cjs} +1 -1
  211. package/components/{progress-circle-By6qUQYe.js → progress-circle-DcGKwBTC.js} +5 -7
  212. package/components/progress-steps/index.cjs +1 -1
  213. package/components/progress-steps/index.js +1 -2
  214. package/components/progress-steps/progress-steps-model.d.ts +5 -0
  215. package/components/progress-steps/progress-steps.d.ts +4 -3
  216. package/components/progress-steps-5MhpnGKv.cjs +98 -0
  217. package/components/{progress-steps-CXJEaaUg.js → progress-steps-Byem5ieS.js} +43 -51
  218. package/components/prompt-box/index.cjs +1 -1
  219. package/components/prompt-box/index.js +1 -2
  220. package/components/{prompt-box-CA8bsoZP.js → prompt-box-CrtFGmjm.js} +80 -112
  221. package/components/{prompt-box-DyODaKXV.cjs → prompt-box-D7owyhfG.cjs} +15 -15
  222. package/components/question-box/index.cjs +1 -1
  223. package/components/question-box/index.js +1 -2
  224. package/components/{question-box-DSwTpxAW.js → question-box-BJYYLghb.js} +40 -86
  225. package/components/{question-box-cBeVshAq.cjs → question-box-ym1eakXA.cjs} +3 -3
  226. package/components/radio/index.cjs +1 -1
  227. package/components/radio/index.js +1 -2
  228. package/components/{radio-B6hX9Klr.js → radio-CyxICbLM.js} +9 -15
  229. package/components/{radio-CRTfoEX_.cjs → radio-Dd-GgUMm.cjs} +2 -2
  230. package/components/{random-id-CiMDyX7v.js → random-id-CO3s9i3n.js} +1 -2
  231. package/components/{rolldown-runtime-Dy4uBu1J.js → rolldown-runtime-CGnMp29N.js} +1 -2
  232. package/components/{roving-tabindex-pomAn3z-.js → roving-tabindex-BKMkfzY0.js} +2 -3
  233. package/components/{roving-tabindex-BoPao4td.cjs → roving-tabindex-BUFR8hPH.cjs} +1 -1
  234. package/components/{scaled-indicator-C-TupV4L.js → scaled-indicator-CsfzvTDr.js} +1 -2
  235. package/components/search/index.cjs +1 -1
  236. package/components/search/index.js +1 -2
  237. package/components/{search-CFTOvmWA.js → search-C5uFmm6S.js} +7 -9
  238. package/components/{search-DJ6KwOam.cjs → search-DiCwSHFf.cjs} +1 -1
  239. package/components/segments-factory-BFgL5o9K.cjs +18 -0
  240. package/components/{segments-factory-BCRi1NKb.js → segments-factory-B_IBjpdp.js} +5 -12
  241. package/components/select/index.cjs +1 -1
  242. package/components/select/index.js +1 -2
  243. package/components/{select-CKMCEJf7.cjs → select-2Fvb7tpj.cjs} +6 -6
  244. package/components/{select-B86uAHme.js → select-HqF3tcHz.js} +31 -56
  245. package/components/{sized-mixin-DzQTebN-.js → sized-mixin-BmxIAuoH.js} +2 -3
  246. package/components/{sized-mixin-BT7cv-fT.cjs → sized-mixin-CSajkMro.cjs} +1 -1
  247. package/components/skeleton-loader/index.cjs +1 -1
  248. package/components/skeleton-loader/index.js +1 -2
  249. package/components/{skeleton-loader-CNcwCh4V.cjs → skeleton-loader-CEca0cqz.cjs} +1 -1
  250. package/components/{skeleton-loader-BeCsYADg.js → skeleton-loader-tin9y3xc.js} +3 -5
  251. package/components/slider/index.cjs +1 -1
  252. package/components/slider/index.d.ts +1 -0
  253. package/components/slider/index.js +1 -2
  254. package/components/slider/slider.d.ts +18 -0
  255. package/components/{slider-Bsl8Xrme.js → slider-BFTuAXK1.js} +178 -175
  256. package/components/slider-Ce6qgPZ4.cjs +136 -0
  257. package/components/{slottable-request-event-MRSZbgTu.js → slottable-request-event-24jJOhbh.js} +1 -2
  258. package/components/split-view/index.cjs +1 -1
  259. package/components/split-view/index.js +1 -2
  260. package/components/{split-view-CDwHDmII.js → split-view-DDwpoN2O.js} +8 -11
  261. package/components/{split-view-BwCFYey6.cjs → split-view-DNVlr5VD.cjs} +1 -1
  262. package/components/status-light/index.cjs +1 -1
  263. package/components/status-light/index.js +1 -2
  264. package/components/{status-light-COApWq-B.cjs → status-light-Do6z53mM.cjs} +1 -1
  265. package/components/{status-light-B1T3aGJs.js → status-light-DqHhhZed.js} +5 -7
  266. package/components/strategies-C6hzAW86.cjs +18 -0
  267. package/components/{strategies-COS7mShJ.js → strategies-DgPG-vNk.js} +6 -13
  268. package/components/{streaming-listener-Bfyk6Fsx.cjs → streaming-listener-BzGZUHkj.cjs} +1 -1
  269. package/components/{streaming-listener-CtcMpYfS.js → streaming-listener-DyS3scAi.js} +2 -3
  270. package/components/swatch/index.cjs +1 -1
  271. package/components/swatch/index.js +1 -2
  272. package/components/{swatch-Bj2FARl1.js → swatch-BBVsuSAV.js} +25 -44
  273. package/components/{swatch-CQ0inIHK.cjs → swatch-DiNMN-SZ.cjs} +3 -3
  274. package/components/switch/index.cjs +1 -1
  275. package/components/switch/index.js +1 -2
  276. package/components/{switch-CpG-hSWY.js → switch-BBtewLDD.js} +6 -8
  277. package/components/{switch-qwpYXVnO.cjs → switch-DMhCYTgq.cjs} +1 -1
  278. package/components/table/index.cjs +1 -1
  279. package/components/table/index.js +1 -2
  280. package/components/{table-Bcq2K21l.cjs → table-CLMLGloR.cjs} +11 -11
  281. package/components/{table-BckZkgeh.js → table-DlOWqm5C.js} +47 -103
  282. package/components/tabs/index.cjs +1 -1
  283. package/components/tabs/index.js +1 -2
  284. package/components/{tabs-CMU8X4ho.cjs → tabs-B0WHKMuF.cjs} +2 -2
  285. package/components/{tabs-D8U2PxcE.js → tabs-Dkt0B_-A.js} +17 -22
  286. package/components/tags/index.cjs +1 -1
  287. package/components/tags/index.js +1 -2
  288. package/components/{tags-ZzY_q4TH.js → tags-Be4yrNPw.js} +9 -11
  289. package/components/{tags-D8F1o4UZ.cjs → tags-CHDNXpxh.cjs} +1 -1
  290. package/components/{template-property-DNDi7lQv.js → template-property-Bks4Db5C.js} +1 -2
  291. package/components/text-field/index.cjs +1 -1
  292. package/components/text-field/index.js +2 -2
  293. package/components/{text-field-3fDtTQkR.cjs → text-field-BVl-HWzb.cjs} +1 -1
  294. package/components/{text-field-CmyqQxq0.js → text-field-D49lAD7L.js} +4 -5
  295. package/components/{text-field-CbN4nydd.cjs → text-field-DCcOZSvY.cjs} +1 -1
  296. package/components/{text-field-CmSym2QK.js → text-field-DpvP_tCP.js} +7 -10
  297. package/components/{text-field.module-BHhBReKL.js → text-field.module-hEHhPVFf.js} +1 -2
  298. package/components/toast/index.cjs +1 -1
  299. package/components/toast/index.js +1 -2
  300. package/components/{toast-DRrGgznK.cjs → toast-B6yesIcI.cjs} +1 -1
  301. package/components/{toast-KwHx-agn.js → toast-CXZUVaYz.js} +5 -7
  302. package/components/tokens.js +1 -2
  303. package/components/tooltip/index.cjs +1 -1
  304. package/components/tooltip/index.js +1 -2
  305. package/components/{tooltip-DjOW52n2.cjs → tooltip-BE01O3Sg.cjs} +1 -1
  306. package/components/{tooltip-xTa9Q5JW.js → tooltip-g2jd5Wsv.js} +19 -24
  307. package/components/top-nav/index.cjs +1 -1
  308. package/components/top-nav/index.js +1 -2
  309. package/components/{top-nav-81IKEGjR.cjs → top-nav-B0E1K_zf.cjs} +1 -1
  310. package/components/{top-nav-CXjnpdFR.js → top-nav-DiUCsUpZ.js} +9 -11
  311. package/components/utils.cjs +1 -1
  312. package/components/utils.js +8 -8
  313. package/components/{voice-recorder-CTg3kRxx.js → voice-recorder-BXY_l_78.js} +1 -2
  314. package/custom-elements.json +1 -1
  315. package/package.json +1 -1
  316. package/standalone/accordion.js +6 -2
  317. package/standalone/action-bar.js +1 -1
  318. package/standalone/action-button.js +1 -1
  319. package/standalone/action-group.js +1 -1
  320. package/standalone/action-menu.js +1 -1
  321. package/standalone/avatar.js +1 -1
  322. package/standalone/badge.js +1 -1
  323. package/standalone/button-group.js +1 -1
  324. package/standalone/button.js +1 -1
  325. package/standalone/calendar.js +1 -1
  326. package/standalone/chat-message-group.js +1 -1
  327. package/standalone/chat-message.js +31 -31
  328. package/standalone/checkbox.js +1 -1
  329. package/standalone/chunks/NumberFormatter-COykocAS.js +2 -0
  330. package/standalone/chunks/NumberParser--1Rm0Yk7.js +2 -0
  331. package/standalone/chunks/{action-button-BJGE_BDu.js → action-button-0d4u0dWv.js} +1 -1
  332. package/standalone/chunks/{action-group-DTxf-0tP.js → action-group-DlClwXLO.js} +5 -1
  333. package/standalone/chunks/async-directive-ByLzVnWY.js +2 -0
  334. package/standalone/chunks/async-directive-DNgXlN7F.js +2 -0
  335. package/standalone/chunks/{badge-SNXdnyCZ.js → badge-DPFbBRCY.js} +1 -1
  336. package/standalone/chunks/{button-DTL9dD2r.js → button-Bgc3zdEa.js} +1 -1
  337. package/standalone/chunks/{button-DHan4NJY.js → button-BhSe7abg.js} +1 -1
  338. package/standalone/chunks/button-base-DLYrzCSm.js +9 -0
  339. package/standalone/chunks/calendar-BxARYymw.js +122 -0
  340. package/standalone/chunks/checkbox-Cl6YBcGA.js +9 -0
  341. package/standalone/chunks/{checkbox-mixin-BAQWmwps.js → checkbox-mixin-HnfmivU3.js} +1 -1
  342. package/standalone/chunks/class-map-E9JVium5.js +2 -0
  343. package/standalone/chunks/{clear-button-3zpCVxG5.js → clear-button-B4r_oxfc.js} +1 -1
  344. package/standalone/chunks/{close-button-C96dazyi.js → close-button-DVCeu3_f.js} +1 -1
  345. package/standalone/chunks/color-area-D-AVcZza.js +66 -0
  346. package/standalone/chunks/color-controller-BlFueK6Y.js +2 -0
  347. package/standalone/chunks/{color-field-BFvUGE4L.js → color-field-BaVvupq0.js} +1 -1
  348. package/standalone/chunks/{color-handle-BHrAxEG2.js → color-handle-DO7dxFGx.js} +1 -1
  349. package/standalone/chunks/{color-loupe-C34cms5t.js → color-loupe-_dC69K1Z.js} +1 -1
  350. package/standalone/chunks/{color-menu-BIKuitbH.js → color-menu-DIX2y9m_.js} +1 -1
  351. package/standalone/chunks/color-slider-MSADvkPC.js +50 -0
  352. package/standalone/chunks/{directive-helpers-Bu8icI7Y.js → directive-helpers-DM8VtBpR.js} +1 -1
  353. package/standalone/chunks/{divider-Bf9Drp2z.js → divider-vAjIOfo1.js} +1 -1
  354. package/standalone/chunks/{field-group-D8EjgC6F.js → field-group-C1oDgW9m.js} +1 -1
  355. package/standalone/chunks/{field-label-VWHDlW9_.js → field-label-Djcst_hn.js} +2 -2
  356. package/standalone/chunks/flow-CL5kBpdV.js +2 -0
  357. package/standalone/chunks/focus-group-xdTxdfaB.js +4 -0
  358. package/standalone/chunks/{icon-BypO7M7G.js → icon-6P1RsbD1.js} +1 -1
  359. package/standalone/chunks/{infield-button-D03MpU_s.js → infield-button-B8EkjwP9.js} +1 -1
  360. package/standalone/chunks/interaction-BQyflxg-.js +2 -0
  361. package/standalone/chunks/keyed-DYJaQjip.js +2 -0
  362. package/standalone/chunks/{language-resolution-BWHk9A73.js → language-resolution-BwIkGyuH.js} +1 -1
  363. package/standalone/chunks/lit-DWANyjiY.js +3 -0
  364. package/standalone/chunks/lucero-runtime-DMlHjBe_.js +18 -0
  365. package/standalone/chunks/{luzmo-icons-B-pCv-xg.js → luzmo-icons-vtQE0BSI.js} +1 -1
  366. package/standalone/chunks/{manage-help-text-Cl9OJ2xf.js → manage-help-text-DO3PkWgh.js} +1 -1
  367. package/standalone/chunks/menu-CefrRBIS.js +100 -0
  368. package/standalone/chunks/{number-field-B6BDXkL7.js → number-field-BoIKbmIv.js} +2 -2
  369. package/standalone/chunks/observe-slot-presence-BxmG6A0m.js +2 -0
  370. package/standalone/chunks/options-rb_zaAJ6.js +89 -0
  371. package/standalone/chunks/overlay-CgQMEmrM.js +122 -0
  372. package/standalone/chunks/{pending-state-DxeRqe6Q.js → pending-state-DnTXKvtm.js} +1 -1
  373. package/standalone/chunks/{picker-jZI5AjVJ.js → picker-HoERLlkx.js} +4 -4
  374. package/standalone/chunks/{picker-button-BZWqDoNQ.js → picker-button-DbamPU-T.js} +2 -2
  375. package/standalone/chunks/platform-wNs7qaiE.js +10 -0
  376. package/standalone/chunks/{popover-BsB3dmQe.js → popover-Ca-FBqiU.js} +1 -1
  377. package/standalone/chunks/{progress-circle-CEx1b5Sv.js → progress-circle-CFtVq9Ou.js} +1 -1
  378. package/standalone/chunks/property-BsDbx7Z2.js +2 -0
  379. package/standalone/chunks/{radio-2vHhfmHw.js → radio-BJ3RhyUD.js} +2 -2
  380. package/standalone/chunks/random-id-0GBXy8EY.js +2 -0
  381. package/standalone/chunks/repeat-CtNle5_O.js +2 -0
  382. package/standalone/chunks/{roving-tabindex-CB4xC55P.js → roving-tabindex-CivopiNn.js} +1 -1
  383. package/standalone/chunks/scaled-indicator-Do5uhz24.js +10 -0
  384. package/standalone/chunks/segments-factory-B6oGyosS.js +2 -0
  385. package/standalone/chunks/{skeleton-loader-BxYcRRJr.js → skeleton-loader-CymPdQl3.js} +1 -1
  386. package/standalone/chunks/strategies-yujlVHBS.js +4 -0
  387. package/standalone/chunks/streaming-listener-0FSzb9QY.js +8 -0
  388. package/standalone/chunks/style-map-DmBaq1-c.js +2 -0
  389. package/standalone/chunks/{swatch-CGR_GWqO.js → swatch-DivHeYOK.js} +4 -4
  390. package/standalone/chunks/{template-property-Dn64faHO.js → template-property-CyrkVY0Q.js} +1 -1
  391. package/standalone/chunks/{text-field-4OKvLOXG.js → text-field-D5ncaa2n.js} +1 -1
  392. package/standalone/chunks/{text-field-C2oROxum.js → text-field-DXzpM1Qn.js} +1 -1
  393. package/standalone/chunks/{tooltip-DB6jRVyB.js → tooltip-B-j8PrNl.js} +13 -1
  394. package/standalone/chunks/{unsafe-html-BPQaWy0v.js → unsafe-html-BeDipvu3.js} +1 -1
  395. package/standalone/clear-button.js +1 -1
  396. package/standalone/close-button.js +1 -1
  397. package/standalone/color-area.js +1 -1
  398. package/standalone/color-field.js +1 -1
  399. package/standalone/color-handle.js +1 -1
  400. package/standalone/color-loupe.js +1 -1
  401. package/standalone/color-menu.js +1 -1
  402. package/standalone/color-palette-group.js +1 -1
  403. package/standalone/color-palette.js +1 -1
  404. package/standalone/color-picker.js +1 -1
  405. package/standalone/color-slider.js +1 -1
  406. package/standalone/date-range-picker.js +3 -3
  407. package/standalone/date-time-picker.js +3 -3
  408. package/standalone/divider.js +1 -1
  409. package/standalone/field-group.js +1 -1
  410. package/standalone/field-label.js +1 -1
  411. package/standalone/icon.js +1 -1
  412. package/standalone/infield-button.js +1 -1
  413. package/standalone/label.js +1 -1
  414. package/standalone/lit.js +1 -1
  415. package/standalone/manifest.json +66 -66
  416. package/standalone/menu.js +1 -1
  417. package/standalone/multi-language-field.js +1 -1
  418. package/standalone/notice.js +1 -1
  419. package/standalone/number-field.js +1 -1
  420. package/standalone/options.js +1 -1
  421. package/standalone/overlay.js +1 -1
  422. package/standalone/picker-button.js +1 -1
  423. package/standalone/picker.js +1 -1
  424. package/standalone/popover.js +1 -1
  425. package/standalone/progress-bar.js +2 -2
  426. package/standalone/progress-circle.js +1 -1
  427. package/standalone/progress-steps.js +10 -10
  428. package/standalone/prompt-box.js +17 -17
  429. package/standalone/question-box.js +3 -3
  430. package/standalone/radio.js +1 -1
  431. package/standalone/search.js +1 -1
  432. package/standalone/select.js +6 -6
  433. package/standalone/skeleton-loader.js +1 -1
  434. package/standalone/slider.js +11 -10
  435. package/standalone/split-view.js +1 -1
  436. package/standalone/status-light.js +1 -1
  437. package/standalone/swatch.js +1 -1
  438. package/standalone/switch.js +1 -1
  439. package/standalone/table.js +22 -22
  440. package/standalone/tabs.js +2 -2
  441. package/standalone/tags.js +1 -1
  442. package/standalone/text-field.js +1 -1
  443. package/standalone/toast.js +1 -1
  444. package/standalone/tooltip.js +1 -1
  445. package/standalone/top-nav.js +1 -1
  446. package/standalone/utils.js +1 -1
  447. package/utils/reactive-controllers/interaction.d.ts +85 -0
  448. package/components/chat-message-BDfomRm-.cjs +0 -148
  449. package/components/checkbox-JCvBro0K.cjs +0 -25
  450. package/components/color-area-CmKlQG1i.cjs +0 -80
  451. package/components/color-controller-DbyPc33Y.cjs +0 -18
  452. package/components/color-slider-CMW8gJ0Z.cjs +0 -57
  453. package/components/focus-group-C8lOjbi9.cjs +0 -18
  454. package/components/focusable-B6h03pAe.cjs +0 -18
  455. package/components/menu-CrhA2iPZ.cjs +0 -108
  456. package/components/overlay-Dn7EbA_W.cjs +0 -102
  457. package/components/progress-steps-Dqh53oC1.cjs +0 -98
  458. package/components/segments-factory-DtPyN5sh.cjs +0 -18
  459. package/components/slider-C_8pSK4N.cjs +0 -135
  460. package/components/strategies-Bb7zEjrU.cjs +0 -18
  461. package/standalone/chunks/NumberFormatter-DMCfW685.js +0 -2
  462. package/standalone/chunks/NumberParser-r_jv94LA.js +0 -2
  463. package/standalone/chunks/async-directive-BA2_dM-5.js +0 -2
  464. package/standalone/chunks/async-directive-CPdA0BOw.js +0 -2
  465. package/standalone/chunks/button-base-C7jeeyLp.js +0 -9
  466. package/standalone/chunks/calendar-BOzu003d.js +0 -122
  467. package/standalone/chunks/checkbox-DQ4wPgG_.js +0 -9
  468. package/standalone/chunks/class-map-CxQ0PcQP.js +0 -2
  469. package/standalone/chunks/color-area-Cj8oPsIF.js +0 -64
  470. package/standalone/chunks/color-controller-fJNWRHVI.js +0 -2
  471. package/standalone/chunks/color-slider-CAqvxsgS.js +0 -41
  472. package/standalone/chunks/flow-aCcJ5kgi.js +0 -2
  473. package/standalone/chunks/focus-group-Cl6MLy-C.js +0 -2
  474. package/standalone/chunks/keyed-CNWmQd2J.js +0 -2
  475. package/standalone/chunks/lit-BN_lRQbJ.js +0 -3
  476. package/standalone/chunks/lucero-runtime-DGJ9-isg.js +0 -16
  477. package/standalone/chunks/menu-DSMoQt1w.js +0 -92
  478. package/standalone/chunks/observe-slot-presence-DWPtw22K.js +0 -2
  479. package/standalone/chunks/options-CkmITqgV.js +0 -89
  480. package/standalone/chunks/overlay-C4ir0iyC.js +0 -31
  481. package/standalone/chunks/overlay-C_XW8yry.js +0 -57
  482. package/standalone/chunks/platform-BfrBbd97.js +0 -2
  483. package/standalone/chunks/property-CLXrnTGx.js +0 -2
  484. package/standalone/chunks/random-id-CeLe5NEk.js +0 -2
  485. package/standalone/chunks/repeat-CZdNcszA.js +0 -2
  486. package/standalone/chunks/scaled-indicator-k-1JmS0b.js +0 -10
  487. package/standalone/chunks/segments-factory-Da9ojsLC.js +0 -2
  488. package/standalone/chunks/strategies-C-vW4MlK.js +0 -2
  489. package/standalone/chunks/streaming-listener-DFczLm8I.js +0 -2
  490. package/standalone/chunks/style-map-D4QeV3m0.js +0 -2
@@ -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
- require("./tokens.cjs");const e=require("./decorate-Dq34MBGe.cjs"),t=require("./sized-mixin-BT7cv-fT.cjs"),n=require("./focusable-B6h03pAe.cjs");require("./popover-BsdqkvKI.cjs"),require("./color-handle-2iFLp9FN.cjs"),require("./color-area-CmKlQG1i.cjs"),require("./color-field-BH9x46k_.cjs"),require("./color-slider-CMW8gJ0Z.cjs"),require("./divider-BcE8D-pH.cjs"),require("./swatch-CQ0inIHK.cjs");let r=require("lit"),i=require("lit/decorators.js"),a=require("@luzmo/icons"),o=require("@ctrl/tinycolor");var s=`:host{width:var(--luzmo-color-menu-width,var(--color-menu-width))}.hue-opacity-text-swatches-container{gap:var(--luzmo-color-menu-color-controls-vertical-gap,var(--color-menu-color-controls-vertical-gap));padding:var(--luzmo-color-menu-hue-opacity-text-swatches-vertical-padding,var(--color-menu-hue-opacity-text-swatches-vertical-padding)) var(--luzmo-color-menu-hue-opacity-text-swatches-horizontal-padding,var(--color-menu-hue-opacity-text-swatches-horizontal-padding));flex-direction:column;display:flex}.swatch-sliders-container{gap:var(--luzmo-color-menu-swatch-to-sliders-space,var(--color-menu-swatch-to-sliders-space));display:flex}.swatch-example-container{align-items:center;display:flex}.field-container{align-items:center;gap:var(--luzmo-color-menu-format-field-to-format-space,var(--color-menu-format-field-to-format-space));display:flex}.format-container{text-transform:uppercase;height:var(--luzmo-color-menu-format-height,var(--color-menu-format-height));cursor:pointer;font-size:var(--luzmo-color-menu-format-font-size,var(--color-menu-format-font-size));color:var(--luzmo-color-menu-format-font-color,var(--color-menu-format-font-color));align-items:center;gap:var(--luzmo-color-menu-format-name-to-icon,var(--color-menu-format-name-to-icon-space));padding:0 var(--luzmo-color-menu-format-horizontal-padding,var(--color-menu-format-horizontal-padding));background:0 0;border:none;outline:none;display:flex;position:relative}.format-container:hover{color:var(--luzmo-color-menu-format-font-color-hover,var(--color-menu-format-font-color-hover))}.format-container:focus-visible{outline:none}.format-container:focus-visible:after{content:"";box-sizing:border-box;border:var(--luzmo-color-menu-format-indicator-width,var(--luzmo-indicator-width)) solid var(--luzmo-color-menu-format-indicator-color,var(--luzmo-indicator-color));border-radius:var(--luzmo-color-menu-format-label-indicator-border-radius,var(--luzmo-border-radius-s));width:100%;height:100%;position:absolute;top:0;left:0}.format-container:focus-visible,.format-container:active{color:var(--luzmo-color-menu-format-font-color-down,var(--color-menu-format-font-color-down))}.format-container .format-label{-webkit-user-select:none;user-select:none}.format-container .angle-icon{height:calc(var(--color-menu-format-font-size) / 1.5);align-items:center;display:flex}.slider-container{justify-content:center;gap:var(--luzmo-color-menu-slider-gap,var(--color-menu-slider-gap));flex-direction:column;display:flex}luzmo-color-area{width:100%;height:var(--luzmo-color-menu-height,var(--color-menu-height))}luzmo-color-slider{width:100%}luzmo-divider{margin:var(--luzmo-spacing-5) à}.swatches-container{gap:var(--luzmo-color-menu-swatches-gap,var(--color-menu-swatches-gap));grid-template-columns:repeat(6,1fr);display:grid}.swatches-container luzmo-swatch{cursor:pointer}.swatches-container .swatch-choice{justify-content:center;align-items:center;display:flex}:host{--luzmo-text-field-icon-size-valid:0px;--luzmo-text-field-icon-spacing-inline-end-valid:1px;--luzmo-text-field-text-align:center;--color-menu-width:290px;--luzmo-text-field-width:220px;--luzmo-color-slider-control-track-width:8px;--color-menu-height:140px;--color-menu-hue-opacity-text-swatches-horizontal-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-hue-opacity-text-swatches-vertical-padding:var(--luzmo-spacing-5);--color-menu-color-controls-vertical-gap:var(--luzmo-spacing-5);--color-menu-swatch-to-sliders-space:var(--luzmo-spacing-5);--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-format-height:var(--luzmo-component-height);--color-menu-format-font-size:var(--luzmo-font-size-s);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-2);--color-menu-format-field-to-format-space:var(--luzmo-spacing-2);--color-menu-format-horizontal-padding:var(--luzmo-spacing-3);--color-menu-format-font-color:var(--luzmo-font-color);--color-menu-format-font-color-hover:var(--luzmo-font-color-hover);--color-menu-format-font-color-down:var(--luzmo-font-color-down);--color-menu-swatches-gap:var(--luzmo-spacing-4)}:host .swatches-container{--luzmo-swatch-size:22px}:host([size=s]){--color-menu-width:260px;--luzmo-text-field-width:200px;--luzmo-color-slider-control-track-width:8px;--color-menu-hue-opacity-text-swatches-horizontal-padding:var(--luzmo-spacing-5);--color-menu-hue-opacity-text-swatches-vertical-padding:var(--luzmo-spacing-4);--color-menu-color-controls-vertical-gap:var(--luzmo-spacing-4);--color-menu-swatch-to-sliders-space:var(--luzmo-spacing-4);--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-format-height:var(--luzmo-component-height-s);--color-menu-format-font-size:var(--luzmo-font-size-xs);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-2);--color-menu-format-field-to-format-space:var(--luzmo-spacing-2);--color-menu-format-horizontal-padding:var(--luzmo-spacing-2);--color-menu-swatches-gap:var(--luzmo-spacing-3)}:host([size=s]) .swatches-container{--luzmo-swatch-size:20px}:host([size=l]){--color-menu-width:350px;--luzmo-text-field-width:240px;--luzmo-color-slider-control-track-width:16px;--color-menu-hue-opacity-text-swatches-horizontal-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--color-menu-hue-opacity-text-swatches-vertical-padding:var(--luzmo-spacing-5);--color-menu-color-controls-vertical-gap:var(--luzmo-spacing-5);--color-menu-swatch-to-sliders-space:var(--luzmo-spacing-5);--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--color-menu-format-height:var(--luzmo-component-height-l);--color-menu-format-font-size:var(--luzmo-font-size);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-3);--color-menu-format-field-to-format-space:var(--luzmo-spacing-2);--color-menu-format-horizontal-padding:var(--luzmo-spacing-4);--color-menu-swatches-gap:var(--luzmo-spacing-4)}:host([size=l]) .swatches-container{--luzmo-swatch-size:24px}:host([size=l]) .swatch-example-container{--luzmo-swatch-size:56px}:host([size=xl]){--color-menu-width:380px;--luzmo-text-field-width:280px;--luzmo-color-slider-control-track-width:16px;--color-menu-hue-opacity-text-swatches-horizontal-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--color-menu-hue-opacity-text-swatches-vertical-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-color-controls-vertical-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-swatch-to-sliders-space:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-format-height:var(--luzmo-component-height-xl);--color-menu-format-font-size:var(--luzmo-font-size-l);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-3);--color-menu-format-field-to-format-space:var(--luzmo-spacing-3);--color-menu-format-horizontal-padding:var(--luzmo-spacing-4);--color-menu-swatches-gap:var(--luzmo-spacing-4)}:host([size=xl]) .swatches-container{--luzmo-swatch-size:26px}:host([size=xl]) .swatch-example-container{--luzmo-swatch-size:64px}`,c=class extends t.n(n.t){constructor(...e){super(...e),this.color=`rgb(255, 0, 0)`,this.noAlphaChannel=!1,this._alpha=1,this._rgbColor=`rgb(255, 0, 0)`,this._rgbaColor=`rgb(255, 0, 0, 1)`,this._previousColor=`rgb(255, 0, 0)`}static{this.styles=(0,r.unsafeCSS)(s)}setColor(e){let t=new o.TinyColor(e?.target?.color);this._format=t.format===`name`?`rgb`:t.format,this._rgbaColor=t.toRgbString(),this._alpha=this.noAlphaChannel?1:t.getAlpha(),this._rgbColor=t.setAlpha(1).toRgbString(),this.hueSliderElement.color=this._rgbColor,this.areaElement.color=this._rgbColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.swatchElement.color=this._rgbaColor,this.colorFieldElement.value=this.formatTextField(t),this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent(`change`,{detail:this.color}))}handleAreaChange(e){e.stopPropagation(),e.preventDefault(),this._rgbColor=this.areaElement.color;let t=new o.TinyColor(this._rgbColor);this._rgbaColor=t.setAlpha(this._alpha).toRgbString(),this.colorFieldElement.value=this._rgbaColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.colorFieldElement.value=this.formatTextField(t),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent(`change`,{detail:this.color}))}get focusElement(){return this.areaElement||this.colorFieldElement||this}handleHueSliderChange(e){e.stopPropagation(),e.preventDefault();let t=new o.TinyColor(this._rgbColor).toHsl();t.h=this.hueSliderElement.value;let n=new o.TinyColor(t);this._rgbColor=n.toRgbString(),this._rgbaColor=n.setAlpha(this._alpha).toRgbString(),this.areaElement.color=`hsla(${t.h}, ${t.s*100}%, ${t.l*100}%, ${t.a})`,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.colorFieldElement.value=this.formatTextField(n),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent(`change`,{detail:this.color}))}handleOpacitySliderChange(e){e.stopPropagation(),e.preventDefault(),this._alpha=this.opacitySliderElement.sliderHandlePosition/100;let t=new o.TinyColor(this._rgbColor).setAlpha(this._alpha);this._rgbaColor=t.toRgbString(),this.colorFieldElement.value=this.formatTextField(t),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent(`change`,{detail:this.color}))}handleFieldChange(e){if(e.stopPropagation(),e.preventDefault(),this.colorFieldElement.checkValidity()){let e=new o.TinyColor(this.colorFieldElement.value);this._format=e.format,this._rgbaColor=e.toRgbString(),this._alpha=e.getAlpha(),this._rgbColor=e.setAlpha(1).toRgbString(),this.noAlphaChannel&&(this._rgbaColor=this._rgbColor,this._alpha=1),this.hueSliderElement.color=this._rgbColor,this.areaElement.color=this._rgbColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent(`change`,{detail:this.color}))}}formatTextField(e){return this._format===`hsl`?e.toHslString():this._format===`hex`?this.noAlphaChannel?e.toHexString():e.toHex8String():(this._format===`name`&&(this._format=`rgb`),e.toRgbString())}cycleFormat(){let e=[`rgb`,`hsl`,`hex`];this._format=e[(e.indexOf(this._format)+1)%e.length];let t=new o.TinyColor(this.color),n=this.formatTextField(t);this.colorFieldElement.value=n}updated(e){if(e.has(`color`)&&this.color!==this._previousColor){this._previousColor=this.color;let e=new o.TinyColor(this.color);this._alpha=e.getAlpha(),this._rgbColor=e.setAlpha(1).toRgbString(),this._rgbaColor=e.setAlpha(this._alpha).toRgbString(),this.areaElement.color=this._rgbColor,this.hueSliderElement.color=this._rgbColor,this.colorFieldElement.value=this._rgbaColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.swatchElement.color=this._rgbaColor,this._format=`rgb`}e.has(`noAlphaChannel`)&&!this.noAlphaChannel&&(this.opacitySliderElement.color=this._rgbaColor)}renderOpacitySlider(){return r.html`
18
+ require("./tokens.cjs");const e=require("./decorate-SO02l0A6.cjs"),t=require("./sized-mixin-CSajkMro.cjs"),n=require("./focusable-BIHTrJd6.cjs");require("./popover-CFzz83f8.cjs"),require("./color-handle-hJ7Kblh4.cjs"),require("./color-area-CFBE-rG3.cjs"),require("./color-field-CN8shDl_.cjs"),require("./color-slider-IYBn2DL7.cjs"),require("./divider-fWGUxO6A.cjs"),require("./swatch-DiNMN-SZ.cjs");let r=require("lit"),i=require("lit/decorators.js"),a=require("@luzmo/icons"),o=require("@ctrl/tinycolor");var s=`:host{width:var(--luzmo-color-menu-width,var(--color-menu-width))}.hue-opacity-text-swatches-container{gap:var(--luzmo-color-menu-color-controls-vertical-gap,var(--color-menu-color-controls-vertical-gap));padding:var(--luzmo-color-menu-hue-opacity-text-swatches-vertical-padding,var(--color-menu-hue-opacity-text-swatches-vertical-padding)) var(--luzmo-color-menu-hue-opacity-text-swatches-horizontal-padding,var(--color-menu-hue-opacity-text-swatches-horizontal-padding));flex-direction:column;display:flex}.swatch-sliders-container{gap:var(--luzmo-color-menu-swatch-to-sliders-space,var(--color-menu-swatch-to-sliders-space));display:flex}.swatch-example-container{align-items:center;display:flex}.field-container{align-items:center;gap:var(--luzmo-color-menu-format-field-to-format-space,var(--color-menu-format-field-to-format-space));display:flex}.format-container{text-transform:uppercase;height:var(--luzmo-color-menu-format-height,var(--color-menu-format-height));cursor:pointer;font-size:var(--luzmo-color-menu-format-font-size,var(--color-menu-format-font-size));color:var(--luzmo-color-menu-format-font-color,var(--color-menu-format-font-color));align-items:center;gap:var(--luzmo-color-menu-format-name-to-icon,var(--color-menu-format-name-to-icon-space));padding:0 var(--luzmo-color-menu-format-horizontal-padding,var(--color-menu-format-horizontal-padding));background:0 0;border:none;outline:none;display:flex;position:relative}.format-container:hover{color:var(--luzmo-color-menu-format-font-color-hover,var(--color-menu-format-font-color-hover))}.format-container:focus-visible{outline:none}.format-container:focus-visible:after{content:"";box-sizing:border-box;border:var(--luzmo-color-menu-format-indicator-width,var(--luzmo-indicator-width)) solid var(--luzmo-color-menu-format-indicator-color,var(--luzmo-indicator-color));border-radius:var(--luzmo-color-menu-format-label-indicator-border-radius,var(--luzmo-border-radius-s));width:100%;height:100%;position:absolute;top:0;left:0}.format-container:focus-visible,.format-container:active{color:var(--luzmo-color-menu-format-font-color-down,var(--color-menu-format-font-color-down))}.format-container .format-label{-webkit-user-select:none;user-select:none}.format-container .angle-icon{height:calc(var(--color-menu-format-font-size) / 1.5);align-items:center;display:flex}.slider-container{justify-content:center;gap:var(--luzmo-color-menu-slider-gap,var(--color-menu-slider-gap));flex-direction:column;display:flex}luzmo-color-area{width:100%;height:var(--luzmo-color-menu-height,var(--color-menu-height))}luzmo-color-slider{width:100%}luzmo-divider{margin:var(--luzmo-spacing-5) à}.swatches-container{gap:var(--luzmo-color-menu-swatches-gap,var(--color-menu-swatches-gap));grid-template-columns:repeat(6,1fr);display:grid}.swatches-container luzmo-swatch{cursor:pointer}.swatches-container .swatch-choice{justify-content:center;align-items:center;display:flex}:host{--luzmo-text-field-icon-size-valid:0px;--luzmo-text-field-icon-spacing-inline-end-valid:1px;--luzmo-text-field-text-align:center;--color-menu-width:290px;--luzmo-text-field-width:220px;--luzmo-color-slider-control-track-width:8px;--color-menu-height:140px;--color-menu-hue-opacity-text-swatches-horizontal-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-hue-opacity-text-swatches-vertical-padding:var(--luzmo-spacing-5);--color-menu-color-controls-vertical-gap:var(--luzmo-spacing-5);--color-menu-swatch-to-sliders-space:var(--luzmo-spacing-5);--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-format-height:var(--luzmo-component-height);--color-menu-format-font-size:var(--luzmo-font-size-s);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-2);--color-menu-format-field-to-format-space:var(--luzmo-spacing-2);--color-menu-format-horizontal-padding:var(--luzmo-spacing-3);--color-menu-format-font-color:var(--luzmo-font-color);--color-menu-format-font-color-hover:var(--luzmo-font-color-hover);--color-menu-format-font-color-down:var(--luzmo-font-color-down);--color-menu-swatches-gap:var(--luzmo-spacing-4)}:host .swatches-container{--luzmo-swatch-size:22px}:host([size=s]){--color-menu-width:260px;--luzmo-text-field-width:200px;--luzmo-color-slider-control-track-width:8px;--color-menu-hue-opacity-text-swatches-horizontal-padding:var(--luzmo-spacing-5);--color-menu-hue-opacity-text-swatches-vertical-padding:var(--luzmo-spacing-4);--color-menu-color-controls-vertical-gap:var(--luzmo-spacing-4);--color-menu-swatch-to-sliders-space:var(--luzmo-spacing-4);--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-format-height:var(--luzmo-component-height-s);--color-menu-format-font-size:var(--luzmo-font-size-xs);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-2);--color-menu-format-field-to-format-space:var(--luzmo-spacing-2);--color-menu-format-horizontal-padding:var(--luzmo-spacing-2);--color-menu-swatches-gap:var(--luzmo-spacing-3)}:host([size=s]) .swatches-container{--luzmo-swatch-size:20px}:host([size=l]){--color-menu-width:350px;--luzmo-text-field-width:240px;--luzmo-color-slider-control-track-width:16px;--color-menu-hue-opacity-text-swatches-horizontal-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--color-menu-hue-opacity-text-swatches-vertical-padding:var(--luzmo-spacing-5);--color-menu-color-controls-vertical-gap:var(--luzmo-spacing-5);--color-menu-swatch-to-sliders-space:var(--luzmo-spacing-5);--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--color-menu-format-height:var(--luzmo-component-height-l);--color-menu-format-font-size:var(--luzmo-font-size);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-3);--color-menu-format-field-to-format-space:var(--luzmo-spacing-2);--color-menu-format-horizontal-padding:var(--luzmo-spacing-4);--color-menu-swatches-gap:var(--luzmo-spacing-4)}:host([size=l]) .swatches-container{--luzmo-swatch-size:24px}:host([size=l]) .swatch-example-container{--luzmo-swatch-size:56px}:host([size=xl]){--color-menu-width:380px;--luzmo-text-field-width:280px;--luzmo-color-slider-control-track-width:16px;--color-menu-hue-opacity-text-swatches-horizontal-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--color-menu-hue-opacity-text-swatches-vertical-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-color-controls-vertical-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-swatch-to-sliders-space:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-format-height:var(--luzmo-component-height-xl);--color-menu-format-font-size:var(--luzmo-font-size-l);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-3);--color-menu-format-field-to-format-space:var(--luzmo-spacing-3);--color-menu-format-horizontal-padding:var(--luzmo-spacing-4);--color-menu-swatches-gap:var(--luzmo-spacing-4)}:host([size=xl]) .swatches-container{--luzmo-swatch-size:26px}:host([size=xl]) .swatch-example-container{--luzmo-swatch-size:64px}`,c=class extends t.n(n.t){constructor(...e){super(...e),this.color=`rgb(255, 0, 0)`,this.noAlphaChannel=!1,this._alpha=1,this._rgbColor=`rgb(255, 0, 0)`,this._rgbaColor=`rgb(255, 0, 0, 1)`,this._previousColor=`rgb(255, 0, 0)`}static{this.styles=(0,r.unsafeCSS)(s)}setColor(e){let t=new o.TinyColor(e?.target?.color);this._format=t.format===`name`?`rgb`:t.format,this._rgbaColor=t.toRgbString(),this._alpha=this.noAlphaChannel?1:t.getAlpha(),this._rgbColor=t.setAlpha(1).toRgbString(),this.hueSliderElement.color=this._rgbColor,this.areaElement.color=this._rgbColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.swatchElement.color=this._rgbaColor,this.colorFieldElement.value=this.formatTextField(t),this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent(`change`,{detail:this.color}))}handleAreaChange(e){e.stopPropagation(),e.preventDefault(),this._rgbColor=this.areaElement.color;let t=new o.TinyColor(this._rgbColor);this._rgbaColor=t.setAlpha(this._alpha).toRgbString(),this.colorFieldElement.value=this._rgbaColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.colorFieldElement.value=this.formatTextField(t),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent(`change`,{detail:this.color}))}endInteraction(){this.areaElement?.endInteraction(),this.hueSliderElement?.endInteraction(),this.opacitySliderElement?.endInteraction()}get focusElement(){return this.areaElement||this.colorFieldElement||this}handleHueSliderChange(e){e.stopPropagation(),e.preventDefault();let t=new o.TinyColor(this._rgbColor).toHsl();t.h=this.hueSliderElement.value;let n=new o.TinyColor(t);this._rgbColor=n.toRgbString(),this._rgbaColor=n.setAlpha(this._alpha).toRgbString(),this.areaElement.color=`hsla(${t.h}, ${t.s*100}%, ${t.l*100}%, ${t.a})`,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.colorFieldElement.value=this.formatTextField(n),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent(`change`,{detail:this.color}))}handleOpacitySliderChange(e){e.stopPropagation(),e.preventDefault(),this._alpha=this.opacitySliderElement.sliderHandlePosition/100;let t=new o.TinyColor(this._rgbColor).setAlpha(this._alpha);this._rgbaColor=t.toRgbString(),this.colorFieldElement.value=this.formatTextField(t),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent(`change`,{detail:this.color}))}handleFieldChange(e){if(e.stopPropagation(),e.preventDefault(),this.colorFieldElement.checkValidity()){let e=new o.TinyColor(this.colorFieldElement.value);this._format=e.format,this._rgbaColor=e.toRgbString(),this._alpha=e.getAlpha(),this._rgbColor=e.setAlpha(1).toRgbString(),this.noAlphaChannel&&(this._rgbaColor=this._rgbColor,this._alpha=1),this.hueSliderElement.color=this._rgbColor,this.areaElement.color=this._rgbColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.swatchElement.color=this._rgbaColor,this._previousColor=this._rgbaColor,this.color=this._rgbaColor,this.dispatchEvent(new CustomEvent(`change`,{detail:this.color}))}}formatTextField(e){return this._format===`hsl`?e.toHslString():this._format===`hex`?this.noAlphaChannel?e.toHexString():e.toHex8String():(this._format===`name`&&(this._format=`rgb`),e.toRgbString())}cycleFormat(){let e=[`rgb`,`hsl`,`hex`];this._format=e[(e.indexOf(this._format)+1)%e.length];let t=new o.TinyColor(this.color),n=this.formatTextField(t);this.colorFieldElement.value=n}updated(e){if(e.has(`color`)&&this.color!==this._previousColor){this._previousColor=this.color;let e=new o.TinyColor(this.color);this._alpha=e.getAlpha(),this._rgbColor=e.setAlpha(1).toRgbString(),this._rgbaColor=e.setAlpha(this._alpha).toRgbString(),this.areaElement.color=this._rgbColor,this.hueSliderElement.color=this._rgbColor,this.colorFieldElement.value=this._rgbaColor,this.noAlphaChannel||(this.opacitySliderElement.color=this._rgbaColor),this.swatchElement.color=this._rgbaColor,this._format=`rgb`}e.has(`noAlphaChannel`)&&!this.noAlphaChannel&&(this.opacitySliderElement.color=this._rgbaColor)}renderOpacitySlider(){return r.html`
19
19
  <luzmo-color-slider
20
20
  id="luzmo-opacity-slider"
21
21
  label="Opacity"
@@ -16,21 +16,21 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import "./tokens.js";
19
- import { t as e } from "./decorate-CkCg3wfh.js";
20
- import { n as t } from "./sized-mixin-DzQTebN-.js";
21
- import { t as n } from "./focusable-DuP0-Kuy.js";
22
- import "./popover-DC8tkee-.js";
23
- import "./color-handle-BEDQ1RcS.js";
24
- import "./color-area-lbg8wwZG.js";
25
- import "./color-field-C9S-Fv46.js";
26
- import "./color-slider-0JzdSRTy.js";
27
- import "./divider-Cz5nyvP9.js";
28
- import "./swatch-Bj2FARl1.js";
19
+ import { t as e } from "./decorate-CpKsOs9z.js";
20
+ import { n as t } from "./sized-mixin-BmxIAuoH.js";
21
+ import { t as n } from "./focusable-xjv79E40.js";
22
+ import "./popover-CWrRLzOL.js";
23
+ import "./color-handle-Ya92rdpA.js";
24
+ import "./color-area-GGa8KJyd.js";
25
+ import "./color-field-CVyDNZ4b.js";
26
+ import "./color-slider-DNd_ZrD6.js";
27
+ import "./divider-Bt0NIqfu.js";
28
+ import "./swatch-BBVsuSAV.js";
29
29
  import { html as r, unsafeCSS as i } from "lit";
30
30
  import { property as a, query as o, state as s } from "lit/decorators.js";
31
31
  import { luzmoAngleDown as c, luzmoAngleUp as l, luzmoIcon as u } from "@luzmo/icons";
32
32
  import { TinyColor as d } from "@ctrl/tinycolor";
33
- //#region src/components/color-menu/color-menu.module.scss?inline
33
+ // src/components/color-menu/color-menu.module.scss?inline
34
34
  var f = ":host{width:var(--luzmo-color-menu-width,var(--color-menu-width))}.hue-opacity-text-swatches-container{gap:var(--luzmo-color-menu-color-controls-vertical-gap,var(--color-menu-color-controls-vertical-gap));padding:var(--luzmo-color-menu-hue-opacity-text-swatches-vertical-padding,var(--color-menu-hue-opacity-text-swatches-vertical-padding)) var(--luzmo-color-menu-hue-opacity-text-swatches-horizontal-padding,var(--color-menu-hue-opacity-text-swatches-horizontal-padding));flex-direction:column;display:flex}.swatch-sliders-container{gap:var(--luzmo-color-menu-swatch-to-sliders-space,var(--color-menu-swatch-to-sliders-space));display:flex}.swatch-example-container{align-items:center;display:flex}.field-container{align-items:center;gap:var(--luzmo-color-menu-format-field-to-format-space,var(--color-menu-format-field-to-format-space));display:flex}.format-container{text-transform:uppercase;height:var(--luzmo-color-menu-format-height,var(--color-menu-format-height));cursor:pointer;font-size:var(--luzmo-color-menu-format-font-size,var(--color-menu-format-font-size));color:var(--luzmo-color-menu-format-font-color,var(--color-menu-format-font-color));align-items:center;gap:var(--luzmo-color-menu-format-name-to-icon,var(--color-menu-format-name-to-icon-space));padding:0 var(--luzmo-color-menu-format-horizontal-padding,var(--color-menu-format-horizontal-padding));background:0 0;border:none;outline:none;display:flex;position:relative}.format-container:hover{color:var(--luzmo-color-menu-format-font-color-hover,var(--color-menu-format-font-color-hover))}.format-container:focus-visible{outline:none}.format-container:focus-visible:after{content:\"\";box-sizing:border-box;border:var(--luzmo-color-menu-format-indicator-width,var(--luzmo-indicator-width)) solid var(--luzmo-color-menu-format-indicator-color,var(--luzmo-indicator-color));border-radius:var(--luzmo-color-menu-format-label-indicator-border-radius,var(--luzmo-border-radius-s));width:100%;height:100%;position:absolute;top:0;left:0}.format-container:focus-visible,.format-container:active{color:var(--luzmo-color-menu-format-font-color-down,var(--color-menu-format-font-color-down))}.format-container .format-label{-webkit-user-select:none;user-select:none}.format-container .angle-icon{height:calc(var(--color-menu-format-font-size) / 1.5);align-items:center;display:flex}.slider-container{justify-content:center;gap:var(--luzmo-color-menu-slider-gap,var(--color-menu-slider-gap));flex-direction:column;display:flex}luzmo-color-area{width:100%;height:var(--luzmo-color-menu-height,var(--color-menu-height))}luzmo-color-slider{width:100%}luzmo-divider{margin:var(--luzmo-spacing-5) à}.swatches-container{gap:var(--luzmo-color-menu-swatches-gap,var(--color-menu-swatches-gap));grid-template-columns:repeat(6,1fr);display:grid}.swatches-container luzmo-swatch{cursor:pointer}.swatches-container .swatch-choice{justify-content:center;align-items:center;display:flex}:host{--luzmo-text-field-icon-size-valid:0px;--luzmo-text-field-icon-spacing-inline-end-valid:1px;--luzmo-text-field-text-align:center;--color-menu-width:290px;--luzmo-text-field-width:220px;--luzmo-color-slider-control-track-width:8px;--color-menu-height:140px;--color-menu-hue-opacity-text-swatches-horizontal-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-hue-opacity-text-swatches-vertical-padding:var(--luzmo-spacing-5);--color-menu-color-controls-vertical-gap:var(--luzmo-spacing-5);--color-menu-swatch-to-sliders-space:var(--luzmo-spacing-5);--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-format-height:var(--luzmo-component-height);--color-menu-format-font-size:var(--luzmo-font-size-s);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-2);--color-menu-format-field-to-format-space:var(--luzmo-spacing-2);--color-menu-format-horizontal-padding:var(--luzmo-spacing-3);--color-menu-format-font-color:var(--luzmo-font-color);--color-menu-format-font-color-hover:var(--luzmo-font-color-hover);--color-menu-format-font-color-down:var(--luzmo-font-color-down);--color-menu-swatches-gap:var(--luzmo-spacing-4)}:host .swatches-container{--luzmo-swatch-size:22px}:host([size=s]){--color-menu-width:260px;--luzmo-text-field-width:200px;--luzmo-color-slider-control-track-width:8px;--color-menu-hue-opacity-text-swatches-horizontal-padding:var(--luzmo-spacing-5);--color-menu-hue-opacity-text-swatches-vertical-padding:var(--luzmo-spacing-4);--color-menu-color-controls-vertical-gap:var(--luzmo-spacing-4);--color-menu-swatch-to-sliders-space:var(--luzmo-spacing-4);--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-format-height:var(--luzmo-component-height-s);--color-menu-format-font-size:var(--luzmo-font-size-xs);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-2);--color-menu-format-field-to-format-space:var(--luzmo-spacing-2);--color-menu-format-horizontal-padding:var(--luzmo-spacing-2);--color-menu-swatches-gap:var(--luzmo-spacing-3)}:host([size=s]) .swatches-container{--luzmo-swatch-size:20px}:host([size=l]){--color-menu-width:350px;--luzmo-text-field-width:240px;--luzmo-color-slider-control-track-width:16px;--color-menu-hue-opacity-text-swatches-horizontal-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--color-menu-hue-opacity-text-swatches-vertical-padding:var(--luzmo-spacing-5);--color-menu-color-controls-vertical-gap:var(--luzmo-spacing-5);--color-menu-swatch-to-sliders-space:var(--luzmo-spacing-5);--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--color-menu-format-height:var(--luzmo-component-height-l);--color-menu-format-font-size:var(--luzmo-font-size);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-3);--color-menu-format-field-to-format-space:var(--luzmo-spacing-2);--color-menu-format-horizontal-padding:var(--luzmo-spacing-4);--color-menu-swatches-gap:var(--luzmo-spacing-4)}:host([size=l]) .swatches-container{--luzmo-swatch-size:24px}:host([size=l]) .swatch-example-container{--luzmo-swatch-size:56px}:host([size=xl]){--color-menu-width:380px;--luzmo-text-field-width:280px;--luzmo-color-slider-control-track-width:16px;--color-menu-hue-opacity-text-swatches-horizontal-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-2));--color-menu-hue-opacity-text-swatches-vertical-padding:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-color-controls-vertical-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-swatch-to-sliders-space:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-slider-gap:calc(var(--luzmo-spacing-5) + var(--luzmo-spacing-1));--color-menu-format-height:var(--luzmo-component-height-xl);--color-menu-format-font-size:var(--luzmo-font-size-l);--color-menu-format-name-to-icon-space:var(--luzmo-spacing-3);--color-menu-format-field-to-format-space:var(--luzmo-spacing-3);--color-menu-format-horizontal-padding:var(--luzmo-spacing-4);--color-menu-swatches-gap:var(--luzmo-spacing-4)}:host([size=xl]) .swatches-container{--luzmo-swatch-size:26px}:host([size=xl]) .swatch-example-container{--luzmo-swatch-size:64px}", p = class extends t(n) {
35
35
  constructor(...e) {
36
36
  super(...e), this.color = "rgb(255, 0, 0)", this.noAlphaChannel = !1, this._alpha = 1, this._rgbColor = "rgb(255, 0, 0)", this._rgbaColor = "rgb(255, 0, 0, 1)", this._previousColor = "rgb(255, 0, 0)";
@@ -47,6 +47,9 @@ var f = ":host{width:var(--luzmo-color-menu-width,var(--color-menu-width))}.hue-
47
47
  let t = new d(this._rgbColor);
48
48
  this._rgbaColor = t.setAlpha(this._alpha).toRgbString(), this.colorFieldElement.value = this._rgbaColor, this.noAlphaChannel || (this.opacitySliderElement.color = this._rgbaColor), this.colorFieldElement.value = this.formatTextField(t), this.swatchElement.color = this._rgbaColor, this._previousColor = this._rgbaColor, this.color = this._rgbaColor, this.dispatchEvent(new CustomEvent("change", { detail: this.color }));
49
49
  }
50
+ endInteraction() {
51
+ this.areaElement?.endInteraction(), this.hueSliderElement?.endInteraction(), this.opacitySliderElement?.endInteraction();
52
+ }
50
53
  get focusElement() {
51
54
  return this.areaElement || this.colorFieldElement || this;
52
55
  }
@@ -167,8 +170,7 @@ var f = ":host{width:var(--luzmo-color-menu-width,var(--color-menu-width))}.hue-
167
170
  `;
168
171
  }
169
172
  };
170
- //#endregion
171
- //#region src/components/color-menu/index.ts
173
+ // src/components/color-menu/index.ts
172
174
  e([a({
173
175
  type: String,
174
176
  reflect: !0
@@ -180,5 +182,4 @@ e([a({
180
182
  type: Array,
181
183
  reflect: !0
182
184
  })], p.prototype, "swatches", void 0), e([o("luzmo-color-area")], p.prototype, "areaElement", void 0), e([o("#luzmo-hue-slider")], p.prototype, "hueSliderElement", void 0), e([o("#luzmo-opacity-slider")], p.prototype, "opacitySliderElement", void 0), e([o("luzmo-color-field")], p.prototype, "colorFieldElement", void 0), e([o("luzmo-swatch")], p.prototype, "swatchElement", void 0), e([s()], p.prototype, "_format", void 0), customElements.get("luzmo-color-menu") || customElements.define("luzmo-color-menu", p);
183
- //#endregion
184
185
  export { p as t };
@@ -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
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../color-palette-x6W09EBL.cjs");exports.LuzmoColorPalette=e.t;
18
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../color-palette-D5NZDz5I.cjs");exports.LuzmoColorPalette=e.t;
@@ -16,5 +16,4 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import "../tokens.js";
19
- import { t as e } from "../color-palette-CqiO5ohz.js";
20
- export { e as LuzmoColorPalette };
19
+ export { t as LuzmoColorPalette } from "../color-palette-UU7Feiwh.js";
@@ -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
- require("./tokens.cjs");const e=require("./decorate-Dq34MBGe.cjs"),t=require("./sized-mixin-BT7cv-fT.cjs"),n=require("./focusable-B6h03pAe.cjs");let r=require("lit"),i=require("lit/decorators.js");var a=`:host{box-sizing:border-box}:host([focused]),:host(:focus-visible){outline:none}:host([focused]) #palette,:host(:focus-visible) #palette{border:var(--luzmo-color-palette-focus-indicator-width,var(--color-palette-focus-indicator-width)) solid var(--luzmo-color-palette-focus-indicator-color,var(--color-palette-focus-indicator-color))!important}:host([disabled]){pointer-events:none;cursor:not-allowed}:host([disabled]) #palette{opacity:var(--luzmo-color-palette-disabled-opacity,.3);background-color:var(--luzmo-color-palette-disabled-background-color,var(--color-palette-disabled-background-color))!important;border-color:#0000!important}:host([selected]) #palette{border-color:var(--luzmo-color-palette-selected-border-color,var(--color-palette-selected-border-color));background-color:var(--luzmo-color-palette-selected-background-color,var(--color-palette-selected-background-color))}:host:hover #palette{border-color:var(--luzmo-color-palette-hover-border-color,var(--color-palette-hover-border-color))}#palette{box-sizing:border-box;width:fit-content;height:100%;padding:var(--luzmo-color-palette-padding,var(--color-palette-padding));border:var(--luzmo-color-palette-border-width,var(--color-palette-border-width)) solid transparent;cursor:pointer;border-radius:var(--luzmo-color-palette-border-radius,var(--color-palette-border-radius));display:flex}#palette>div{box-sizing:border-box;border:var(--luzmo-color-palette-color-border-width,var(--color-palette-color-border-width)) solid var(--luzmo-color-palette-color-border-color,var(--color-palette-color-border-color));height:var(--luzmo-color-palette-color-height,var(--color-palette-color-height));width:var(--luzmo-color-palette-color-width,var(--color-palette-color-width))}#palette:hover{background-color:var(--luzmo-color-palette-hover-background-color,var(--color-palette-hover-background-color))}#palette:focus-visible{outline:none}:host(:not([reverse]):not([horizontal])) #palette{flex-direction:column}:host(:not([reverse]):not([horizontal])) #palette>div:not(:first-child){border-top:0}:host(:not([reverse]):not([horizontal])) #palette>div:first-child{border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host(:not([reverse]):not([horizontal])) #palette>div:last-child{border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([reverse]:not([horizontal])) #palette{flex-direction:column-reverse}:host([reverse]:not([horizontal])) #palette>div:not(:first-child){border-bottom:0}:host([reverse]:not([horizontal])) #palette>div:first-child{border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([reverse]:not([horizontal])) #palette>div:last-child{border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal]:not([reverse])) #palette{flex-direction:row}:host([horizontal]:not([reverse])) #palette>div:not(:first-child){border-left:0}:host([horizontal]:not([reverse])) #palette>div:first-child{border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal]:not([reverse])) #palette>div:last-child{border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal][reverse]) #palette{flex-direction:row-reverse}:host([horizontal][reverse]) #palette>div:not(:first-child){border-right:0}:host([horizontal][reverse]) #palette>div:first-child{border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal][reverse]) #palette>div:last-child{border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host{--color-palette-padding:var(--luzmo-spacing-1);--color-palette-background-color:transparent;--color-palette-hover-background-color:var(--luzmo-background-color-highlight);--color-palette-selected-border-color:var(--luzmo-border-color-down);--color-palette-selected-background-color:var(--luzmo-background-color-highlight-hover);--color-palette-disabled-background-color:transparent;--color-palette-border-width:var(--luzmo-border-width);--color-palette-hover-border-color:var(--luzmo-border-color);--color-palette-focus-indicator-width:var(--luzmo-indicator-width);--color-palette-focus-indicator-color:var(--luzmo-indicator-color);--color-palette-color-width:var(--luzmo-spacing-5);--color-palette-color-height:1.25rem;--color-palette-color-border-radius:var(--luzmo-border-radius);--color-palette-color-border-width:var(--luzmo-border-width);--color-palette-color-border-color:var(--luzmo-border-color);--color-palette-border-radius:calc(var(--color-palette-color-border-radius) + var(--color-palette-padding))}:host([horizontal]){--color-palette-color-height:var(--luzmo-spacing-5);--color-palette-color-width:1.25rem}:host([size=s]){--color-palette-color-width:.75rem;--color-palette-color-height:var(--luzmo-spacing-5);--color-palette-padding:var(--luzmo-spacing-1);--color-palette-color-border-radius:var(--luzmo-border-radius-s)}:host([size=s][horizontal]){--color-palette-color-height:.75rem;--color-palette-color-width:var(--luzmo-spacing-5)}:host([size=l]){--color-palette-color-width:1.25rem;--color-palette-color-height:1.5rem;--color-palette-padding:var(--luzmo-spacing-2);--color-palette-color-border-radius:var(--luzmo-border-radius-l)}:host([size=l][horizontal]){--color-palette-color-height:1.25rem;--color-palette-color-width:1.5rem}:host([size=xl]){--color-palette-color-width:1.5rem;--color-palette-color-height:1.75rem;--color-palette-padding:var(--luzmo-spacing-2);--color-palette-color-border-radius:var(--luzmo-border-radius-xl)}:host([size=xl][horizontal]){--color-palette-color-height:1.5rem;--color-palette-color-width:1.75rem}`,o=class extends t.n(n.t,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0}){constructor(...e){super(...e),this.disabled=!1,this.focused=!1,this.selected=!1,this.active=!1,this.reverse=!1,this.horizontal=!1}static{this.styles=(0,r.unsafeCSS)(a)}get focusElement(){return this}render(){return r.html` <div id="palette">${this.colors?.map(e=>r.html`<div class="color" style="background-color: ${e}"></div>`)}</div> `}firstUpdated(e){super.firstUpdated(e)}updated(e){super.updated(e),e.has(`selected`)&&this.setAttribute(`tabindex`,this.selected?`0`:`-1`),e.has(`disabled`)&&(this.disabled?this.setAttribute(`aria-disabled`,`true`):this.removeAttribute(`aria-disabled`))}};e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`disabled`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`focused`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`selected`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`active`,void 0),e.t([(0,i.property)({type:String,reflect:!0})],o.prototype,`value`,void 0),e.t([(0,i.property)({type:Array,reflect:!0})],o.prototype,`colors`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`reverse`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`horizontal`,void 0),customElements.get(`luzmo-color-palette`)||customElements.define(`luzmo-color-palette`,o),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
18
+ require("./tokens.cjs");const e=require("./decorate-SO02l0A6.cjs"),t=require("./sized-mixin-CSajkMro.cjs"),n=require("./focusable-BIHTrJd6.cjs");let r=require("lit"),i=require("lit/decorators.js");var a=`:host{box-sizing:border-box}:host([focused]),:host(:focus-visible){outline:none}:host([focused]) #palette,:host(:focus-visible) #palette{border:var(--luzmo-color-palette-focus-indicator-width,var(--color-palette-focus-indicator-width)) solid var(--luzmo-color-palette-focus-indicator-color,var(--color-palette-focus-indicator-color))!important}:host([disabled]){pointer-events:none;cursor:not-allowed}:host([disabled]) #palette{opacity:var(--luzmo-color-palette-disabled-opacity,.3);background-color:var(--luzmo-color-palette-disabled-background-color,var(--color-palette-disabled-background-color))!important;border-color:#0000!important}:host([selected]) #palette{border-color:var(--luzmo-color-palette-selected-border-color,var(--color-palette-selected-border-color));background-color:var(--luzmo-color-palette-selected-background-color,var(--color-palette-selected-background-color))}:host:hover #palette{border-color:var(--luzmo-color-palette-hover-border-color,var(--color-palette-hover-border-color))}#palette{box-sizing:border-box;width:fit-content;height:100%;padding:var(--luzmo-color-palette-padding,var(--color-palette-padding));border:var(--luzmo-color-palette-border-width,var(--color-palette-border-width)) solid transparent;cursor:pointer;border-radius:var(--luzmo-color-palette-border-radius,var(--color-palette-border-radius));display:flex}#palette>div{box-sizing:border-box;border:var(--luzmo-color-palette-color-border-width,var(--color-palette-color-border-width)) solid var(--luzmo-color-palette-color-border-color,var(--color-palette-color-border-color));height:var(--luzmo-color-palette-color-height,var(--color-palette-color-height));width:var(--luzmo-color-palette-color-width,var(--color-palette-color-width))}#palette:hover{background-color:var(--luzmo-color-palette-hover-background-color,var(--color-palette-hover-background-color))}#palette:focus-visible{outline:none}:host(:not([reverse]):not([horizontal])) #palette{flex-direction:column}:host(:not([reverse]):not([horizontal])) #palette>div:not(:first-child){border-top:0}:host(:not([reverse]):not([horizontal])) #palette>div:first-child{border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host(:not([reverse]):not([horizontal])) #palette>div:last-child{border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([reverse]:not([horizontal])) #palette{flex-direction:column-reverse}:host([reverse]:not([horizontal])) #palette>div:not(:first-child){border-bottom:0}:host([reverse]:not([horizontal])) #palette>div:first-child{border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([reverse]:not([horizontal])) #palette>div:last-child{border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal]:not([reverse])) #palette{flex-direction:row}:host([horizontal]:not([reverse])) #palette>div:not(:first-child){border-left:0}:host([horizontal]:not([reverse])) #palette>div:first-child{border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal]:not([reverse])) #palette>div:last-child{border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal][reverse]) #palette{flex-direction:row-reverse}:host([horizontal][reverse]) #palette>div:not(:first-child){border-right:0}:host([horizontal][reverse]) #palette>div:first-child{border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal][reverse]) #palette>div:last-child{border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host{--color-palette-padding:var(--luzmo-spacing-1);--color-palette-background-color:transparent;--color-palette-hover-background-color:var(--luzmo-background-color-highlight);--color-palette-selected-border-color:var(--luzmo-border-color-down);--color-palette-selected-background-color:var(--luzmo-background-color-highlight-hover);--color-palette-disabled-background-color:transparent;--color-palette-border-width:var(--luzmo-border-width);--color-palette-hover-border-color:var(--luzmo-border-color);--color-palette-focus-indicator-width:var(--luzmo-indicator-width);--color-palette-focus-indicator-color:var(--luzmo-indicator-color);--color-palette-color-width:var(--luzmo-spacing-5);--color-palette-color-height:1.25rem;--color-palette-color-border-radius:var(--luzmo-border-radius);--color-palette-color-border-width:var(--luzmo-border-width);--color-palette-color-border-color:var(--luzmo-border-color);--color-palette-border-radius:calc(var(--color-palette-color-border-radius) + var(--color-palette-padding))}:host([horizontal]){--color-palette-color-height:var(--luzmo-spacing-5);--color-palette-color-width:1.25rem}:host([size=s]){--color-palette-color-width:.75rem;--color-palette-color-height:var(--luzmo-spacing-5);--color-palette-padding:var(--luzmo-spacing-1);--color-palette-color-border-radius:var(--luzmo-border-radius-s)}:host([size=s][horizontal]){--color-palette-color-height:.75rem;--color-palette-color-width:var(--luzmo-spacing-5)}:host([size=l]){--color-palette-color-width:1.25rem;--color-palette-color-height:1.5rem;--color-palette-padding:var(--luzmo-spacing-2);--color-palette-color-border-radius:var(--luzmo-border-radius-l)}:host([size=l][horizontal]){--color-palette-color-height:1.25rem;--color-palette-color-width:1.5rem}:host([size=xl]){--color-palette-color-width:1.5rem;--color-palette-color-height:1.75rem;--color-palette-padding:var(--luzmo-spacing-2);--color-palette-color-border-radius:var(--luzmo-border-radius-xl)}:host([size=xl][horizontal]){--color-palette-color-height:1.5rem;--color-palette-color-width:1.75rem}`,o=class extends t.n(n.t,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0}){constructor(...e){super(...e),this.disabled=!1,this.focused=!1,this.selected=!1,this.active=!1,this.reverse=!1,this.horizontal=!1}static{this.styles=(0,r.unsafeCSS)(a)}get focusElement(){return this}render(){let e=this.colors?.map(e=>r.html`<div class="color" style="background-color: ${e}"></div>`);return r.html` <div id="palette">${e}</div> `}firstUpdated(e){super.firstUpdated(e)}updated(e){super.updated(e),e.has(`selected`)&&this.setAttribute(`tabindex`,this.selected?`0`:`-1`),e.has(`disabled`)&&(this.disabled?this.setAttribute(`aria-disabled`,`true`):this.removeAttribute(`aria-disabled`))}};e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`disabled`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`focused`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`selected`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`active`,void 0),e.t([(0,i.property)({type:String,reflect:!0})],o.prototype,`value`,void 0),e.t([(0,i.property)({type:Array,reflect:!0})],o.prototype,`colors`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`reverse`,void 0),e.t([(0,i.property)({type:Boolean,reflect:!0})],o.prototype,`horizontal`,void 0),customElements.get(`luzmo-color-palette`)||customElements.define(`luzmo-color-palette`,o),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
@@ -16,12 +16,12 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import "./tokens.js";
19
- import { t as e } from "./decorate-CkCg3wfh.js";
20
- import { n as t } from "./sized-mixin-DzQTebN-.js";
21
- import { t as n } from "./focusable-DuP0-Kuy.js";
19
+ import { t as e } from "./decorate-CpKsOs9z.js";
20
+ import { n as t } from "./sized-mixin-BmxIAuoH.js";
21
+ import { t as n } from "./focusable-xjv79E40.js";
22
22
  import { html as r, unsafeCSS as i } from "lit";
23
23
  import { property as a } from "lit/decorators.js";
24
- //#region src/components/color-palette/color-palette.module.scss?inline
24
+ // src/components/color-palette/color-palette.module.scss?inline
25
25
  var o = ":host{box-sizing:border-box}:host([focused]),:host(:focus-visible){outline:none}:host([focused]) #palette,:host(:focus-visible) #palette{border:var(--luzmo-color-palette-focus-indicator-width,var(--color-palette-focus-indicator-width)) solid var(--luzmo-color-palette-focus-indicator-color,var(--color-palette-focus-indicator-color))!important}:host([disabled]){pointer-events:none;cursor:not-allowed}:host([disabled]) #palette{opacity:var(--luzmo-color-palette-disabled-opacity,.3);background-color:var(--luzmo-color-palette-disabled-background-color,var(--color-palette-disabled-background-color))!important;border-color:#0000!important}:host([selected]) #palette{border-color:var(--luzmo-color-palette-selected-border-color,var(--color-palette-selected-border-color));background-color:var(--luzmo-color-palette-selected-background-color,var(--color-palette-selected-background-color))}:host:hover #palette{border-color:var(--luzmo-color-palette-hover-border-color,var(--color-palette-hover-border-color))}#palette{box-sizing:border-box;width:fit-content;height:100%;padding:var(--luzmo-color-palette-padding,var(--color-palette-padding));border:var(--luzmo-color-palette-border-width,var(--color-palette-border-width)) solid transparent;cursor:pointer;border-radius:var(--luzmo-color-palette-border-radius,var(--color-palette-border-radius));display:flex}#palette>div{box-sizing:border-box;border:var(--luzmo-color-palette-color-border-width,var(--color-palette-color-border-width)) solid var(--luzmo-color-palette-color-border-color,var(--color-palette-color-border-color));height:var(--luzmo-color-palette-color-height,var(--color-palette-color-height));width:var(--luzmo-color-palette-color-width,var(--color-palette-color-width))}#palette:hover{background-color:var(--luzmo-color-palette-hover-background-color,var(--color-palette-hover-background-color))}#palette:focus-visible{outline:none}:host(:not([reverse]):not([horizontal])) #palette{flex-direction:column}:host(:not([reverse]):not([horizontal])) #palette>div:not(:first-child){border-top:0}:host(:not([reverse]):not([horizontal])) #palette>div:first-child{border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host(:not([reverse]):not([horizontal])) #palette>div:last-child{border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([reverse]:not([horizontal])) #palette{flex-direction:column-reverse}:host([reverse]:not([horizontal])) #palette>div:not(:first-child){border-bottom:0}:host([reverse]:not([horizontal])) #palette>div:first-child{border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([reverse]:not([horizontal])) #palette>div:last-child{border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal]:not([reverse])) #palette{flex-direction:row}:host([horizontal]:not([reverse])) #palette>div:not(:first-child){border-left:0}:host([horizontal]:not([reverse])) #palette>div:first-child{border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal]:not([reverse])) #palette>div:last-child{border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal][reverse]) #palette{flex-direction:row-reverse}:host([horizontal][reverse]) #palette>div:not(:first-child){border-right:0}:host([horizontal][reverse]) #palette>div:first-child{border-top-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-right-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host([horizontal][reverse]) #palette>div:last-child{border-top-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius));border-bottom-left-radius:var(--luzmo-color-palette-color-border-radius,var(--color-palette-color-border-radius))}:host{--color-palette-padding:var(--luzmo-spacing-1);--color-palette-background-color:transparent;--color-palette-hover-background-color:var(--luzmo-background-color-highlight);--color-palette-selected-border-color:var(--luzmo-border-color-down);--color-palette-selected-background-color:var(--luzmo-background-color-highlight-hover);--color-palette-disabled-background-color:transparent;--color-palette-border-width:var(--luzmo-border-width);--color-palette-hover-border-color:var(--luzmo-border-color);--color-palette-focus-indicator-width:var(--luzmo-indicator-width);--color-palette-focus-indicator-color:var(--luzmo-indicator-color);--color-palette-color-width:var(--luzmo-spacing-5);--color-palette-color-height:1.25rem;--color-palette-color-border-radius:var(--luzmo-border-radius);--color-palette-color-border-width:var(--luzmo-border-width);--color-palette-color-border-color:var(--luzmo-border-color);--color-palette-border-radius:calc(var(--color-palette-color-border-radius) + var(--color-palette-padding))}:host([horizontal]){--color-palette-color-height:var(--luzmo-spacing-5);--color-palette-color-width:1.25rem}:host([size=s]){--color-palette-color-width:.75rem;--color-palette-color-height:var(--luzmo-spacing-5);--color-palette-padding:var(--luzmo-spacing-1);--color-palette-color-border-radius:var(--luzmo-border-radius-s)}:host([size=s][horizontal]){--color-palette-color-height:.75rem;--color-palette-color-width:var(--luzmo-spacing-5)}:host([size=l]){--color-palette-color-width:1.25rem;--color-palette-color-height:1.5rem;--color-palette-padding:var(--luzmo-spacing-2);--color-palette-color-border-radius:var(--luzmo-border-radius-l)}:host([size=l][horizontal]){--color-palette-color-height:1.25rem;--color-palette-color-width:1.5rem}:host([size=xl]){--color-palette-color-width:1.5rem;--color-palette-color-height:1.75rem;--color-palette-padding:var(--luzmo-spacing-2);--color-palette-color-border-radius:var(--luzmo-border-radius-xl)}:host([size=xl][horizontal]){--color-palette-color-height:1.5rem;--color-palette-color-width:1.75rem}", s = class extends t(n, {
26
26
  validSizes: [
27
27
  "s",
@@ -41,7 +41,8 @@ var o = ":host{box-sizing:border-box}:host([focused]),:host(:focus-visible){outl
41
41
  return this;
42
42
  }
43
43
  render() {
44
- return r` <div id="palette">${this.colors?.map((e) => r`<div class="color" style="background-color: ${e}"></div>`)}</div> `;
44
+ let e = this.colors?.map((e) => r`<div class="color" style="background-color: ${e}"></div>`);
45
+ return r` <div id="palette">${e}</div> `;
45
46
  }
46
47
  firstUpdated(e) {
47
48
  super.firstUpdated(e);
@@ -50,8 +51,7 @@ var o = ":host{box-sizing:border-box}:host([focused]),:host(:focus-visible){outl
50
51
  super.updated(e), e.has("selected") && this.setAttribute("tabindex", this.selected ? "0" : "-1"), e.has("disabled") && (this.disabled ? this.setAttribute("aria-disabled", "true") : this.removeAttribute("aria-disabled"));
51
52
  }
52
53
  };
53
- //#endregion
54
- //#region src/components/color-palette/index.ts
54
+ // src/components/color-palette/index.ts
55
55
  e([a({
56
56
  type: Boolean,
57
57
  reflect: !0
@@ -77,5 +77,4 @@ e([a({
77
77
  type: Boolean,
78
78
  reflect: !0
79
79
  })], s.prototype, "horizontal", void 0), customElements.get("luzmo-color-palette") || customElements.define("luzmo-color-palette", s);
80
- //#endregion
81
80
  export { s as t };
@@ -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
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../color-palette-group-D4k_7pW6.cjs");exports.LuzmoColorPaletteGroup=e.t;
18
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../color-palette-group-DhGh0Db8.cjs");exports.LuzmoColorPaletteGroup=e.t;
@@ -16,5 +16,4 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import "../tokens.js";
19
- import { t as e } from "../color-palette-group-zByrO_qb.js";
20
- export { e as LuzmoColorPaletteGroup };
19
+ export { t as LuzmoColorPaletteGroup } from "../color-palette-group-CwmC9iR1.js";
@@ -16,14 +16,14 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import "./tokens.js";
19
- import { n as e, t } from "./decorate-CkCg3wfh.js";
20
- import { n } from "./sized-mixin-DzQTebN-.js";
21
- import { t as r } from "./roving-tabindex-pomAn3z-.js";
19
+ import { n as e, t } from "./decorate-CpKsOs9z.js";
20
+ import { n } from "./sized-mixin-BmxIAuoH.js";
21
+ import { t as r } from "./roving-tabindex-BKMkfzY0.js";
22
22
  import { html as i, unsafeCSS as a } from "lit";
23
23
  import { property as o, query as s } from "lit/decorators.js";
24
24
  import { ifDefined as c } from "lit/directives/if-defined.js";
25
25
  import { MutationController as l } from "@lit-labs/observers/mutation-controller.js";
26
- //#region src/components/color-palette-group/color-palette-group.module.scss?inline
26
+ // src/components/color-palette-group/color-palette-group.module.scss?inline
27
27
  var u = ".color-palette-group{column-gap:var(--luzmo-color-palette-group-column-gap,var(--color-palette-group-column-gap));row-gap:var(--luzmo-color-palette-group-row-gap,var(--color-palette-group-row-gap));flex-wrap:wrap;display:flex}::slotted(*){flex-shrink:0}::slotted(:focus-visible){z-index:1}:host{--color-palette-group-column-gap:var(--luzmo-spacing-3);--color-palette-group-row-gap:var(--luzmo-spacing-3)}:host([size=s]){--color-palette-group-column-gap:var(--luzmo-spacing-2);--color-palette-group-row-gap:var(--luzmo-spacing-2)}:host,:host([size=l]),:host([size=xl]){--color-palette-group-column-gap:var(--luzmo-spacing-3);--color-palette-group-row-gap:var(--luzmo-spacing-3)}", d = class extends n(e, {
28
28
  validSizes: [
29
29
  "s",
@@ -151,8 +151,7 @@ var u = ".color-palette-group{column-gap:var(--luzmo-color-palette-group-column-
151
151
  });
152
152
  }
153
153
  };
154
- //#endregion
155
- //#region src/components/color-palette-group/index.ts
154
+ // src/components/color-palette-group/index.ts
156
155
  t([o({
157
156
  type: Boolean,
158
157
  reflect: !0
@@ -160,5 +159,4 @@ t([o({
160
159
  type: Boolean,
161
160
  reflect: !0
162
161
  })], d.prototype, "horizontal", void 0), t([o({ type: String })], d.prototype, "label", void 0), t([o({ type: String })], d.prototype, "selected", null), t([s("slot")], d.prototype, "slotElement", void 0), customElements.get("luzmo-color-palette-group") || customElements.define("luzmo-color-palette-group", d);
163
- //#endregion
164
162
  export { d as t };
@@ -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
- require("./tokens.cjs");const e=require("./decorate-Dq34MBGe.cjs"),t=require("./sized-mixin-BT7cv-fT.cjs"),n=require("./roving-tabindex-BoPao4td.cjs");let r=require("lit"),i=require("lit/decorators.js"),a=require("lit/directives/if-defined.js"),o=require("@lit-labs/observers/mutation-controller.js");var s=`.color-palette-group{column-gap:var(--luzmo-color-palette-group-column-gap,var(--color-palette-group-column-gap));row-gap:var(--luzmo-color-palette-group-row-gap,var(--color-palette-group-row-gap));flex-wrap:wrap;display:flex}::slotted(*){flex-shrink:0}::slotted(:focus-visible){z-index:1}:host{--color-palette-group-column-gap:var(--luzmo-spacing-3);--color-palette-group-row-gap:var(--luzmo-spacing-3)}:host([size=s]){--color-palette-group-column-gap:var(--luzmo-spacing-2);--color-palette-group-row-gap:var(--luzmo-spacing-2)}:host,:host([size=l]),:host([size=xl]){--color-palette-group-column-gap:var(--luzmo-spacing-3);--color-palette-group-row-gap:var(--luzmo-spacing-3)}`,c=class extends t.n(e.n,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0}){static get styles(){return[(0,r.unsafeCSS)(s)]}set palettes(e){e!==this.palettes&&(this._palettes=e,this.rovingTabindexController.clearElementCache())}get palettes(){return this._palettes}constructor(){super(),this.disabled=!1,this.horizontal=!1,this._palettes=[],this.rovingTabindexController=new n.t(this,{focusInIndex:e=>e.findIndex(e=>this.selected?!e.disabled&&e.value===this.selected:!e.disabled),elements:()=>this.palettes,isFocusableElement:e=>!e.disabled}),this.label=``,this._onKeyDown=e=>{if(e.code===`Enter`||e.code===`Space`){e.preventDefault();let t=e.target;if(t.value===void 0)return;this.deselectSelectedPalettes(),t.selected=!0,t.tabIndex=0,t.setAttribute(`aria-checked`,`true`),this.setSelected(t.value,!0)}},this.manageColorPalettes=()=>{if(!this.slotElement)return;let e=this.slotElement.assignedElements({flatten:!0}).reduce((e,t)=>{if(t.matches(`luzmo-color-palette`))e.push(t);else{let n=[...t.querySelectorAll(`:scope > luzmo-color-palette`)];e.push(...n)}return e},[]);this.palettes=e,this.manageChildren(),this.manageSelects()},new o.MutationController(this,{config:{childList:!0,subtree:!0},callback:()=>{this.manageColorPalettes()},skipInitial:!0})}get selected(){return this._selected}set selected(e){this.requestUpdate(`selected`,this._selected),this._selected=e,this.updateComplete.then(()=>{this.applySelects(),this.manageChildren()})}dispatchChange(e){this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0,cancelable:!0}))||(this.setSelected(e),this.palettes.map(e=>{e.selected=!!(e.value&&this.selected===e.value)}))}setSelected(e,t){if(e===this.selected)return;let n=this.selected;this.requestUpdate(`selected`,n),this._selected=e,t&&this.dispatchChange(n)}focus(e){this.rovingTabindexController.focus(e)}deselectSelectedPalettes(){this.palettes.forEach(e=>{e.selected&&(e.selected=!1,e.tabIndex=-1,e.setAttribute(`aria-checked`,`false`))})}_handleClick(e){let t=e.target;t.value!==void 0&&(this.deselectSelectedPalettes(),t.selected=!0,t.tabIndex=0,t.setAttribute(`aria-checked`,`true`),this.setSelected(t.value,!0))}async applySelects(){await this.manageSelects()}async manageSelects(){if(this.palettes.length===0)return;let e=this.palettes;this.setAttribute(`role`,`radiogroup`);let t=[],n=e.map(async e=>{await e.updateComplete,e.setAttribute(`role`,`radio`),e.setAttribute(`aria-checked`,e.selected?`true`:`false`),e.selected&&t.push(e)});await Promise.all(n);let r=t.map(e=>e.value).find(Boolean);this.setSelected(r)}render(){return r.html`
18
+ require("./tokens.cjs");const e=require("./decorate-SO02l0A6.cjs"),t=require("./sized-mixin-CSajkMro.cjs"),n=require("./roving-tabindex-BUFR8hPH.cjs");let r=require("lit"),i=require("lit/decorators.js"),a=require("lit/directives/if-defined.js"),o=require("@lit-labs/observers/mutation-controller.js");var s=`.color-palette-group{column-gap:var(--luzmo-color-palette-group-column-gap,var(--color-palette-group-column-gap));row-gap:var(--luzmo-color-palette-group-row-gap,var(--color-palette-group-row-gap));flex-wrap:wrap;display:flex}::slotted(*){flex-shrink:0}::slotted(:focus-visible){z-index:1}:host{--color-palette-group-column-gap:var(--luzmo-spacing-3);--color-palette-group-row-gap:var(--luzmo-spacing-3)}:host([size=s]){--color-palette-group-column-gap:var(--luzmo-spacing-2);--color-palette-group-row-gap:var(--luzmo-spacing-2)}:host,:host([size=l]),:host([size=xl]){--color-palette-group-column-gap:var(--luzmo-spacing-3);--color-palette-group-row-gap:var(--luzmo-spacing-3)}`,c=class extends t.n(e.n,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0}){static get styles(){return[(0,r.unsafeCSS)(s)]}set palettes(e){e!==this.palettes&&(this._palettes=e,this.rovingTabindexController.clearElementCache())}get palettes(){return this._palettes}constructor(){super(),this.disabled=!1,this.horizontal=!1,this._palettes=[],this.rovingTabindexController=new n.t(this,{focusInIndex:e=>e.findIndex(e=>this.selected?!e.disabled&&e.value===this.selected:!e.disabled),elements:()=>this.palettes,isFocusableElement:e=>!e.disabled}),this.label=``,this._onKeyDown=e=>{if(e.code===`Enter`||e.code===`Space`){e.preventDefault();let t=e.target;if(t.value===void 0)return;this.deselectSelectedPalettes(),t.selected=!0,t.tabIndex=0,t.setAttribute(`aria-checked`,`true`),this.setSelected(t.value,!0)}},this.manageColorPalettes=()=>{if(!this.slotElement)return;let e=this.slotElement.assignedElements({flatten:!0}).reduce((e,t)=>{if(t.matches(`luzmo-color-palette`))e.push(t);else{let n=[...t.querySelectorAll(`:scope > luzmo-color-palette`)];e.push(...n)}return e},[]);this.palettes=e,this.manageChildren(),this.manageSelects()},new o.MutationController(this,{config:{childList:!0,subtree:!0},callback:()=>{this.manageColorPalettes()},skipInitial:!0})}get selected(){return this._selected}set selected(e){this.requestUpdate(`selected`,this._selected),this._selected=e,this.updateComplete.then(()=>{this.applySelects(),this.manageChildren()})}dispatchChange(e){this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0,cancelable:!0}))||(this.setSelected(e),this.palettes.map(e=>{e.selected=!!(e.value&&this.selected===e.value)}))}setSelected(e,t){if(e===this.selected)return;let n=this.selected;this.requestUpdate(`selected`,n),this._selected=e,t&&this.dispatchChange(n)}focus(e){this.rovingTabindexController.focus(e)}deselectSelectedPalettes(){this.palettes.forEach(e=>{e.selected&&(e.selected=!1,e.tabIndex=-1,e.setAttribute(`aria-checked`,`false`))})}_handleClick(e){let t=e.target;t.value!==void 0&&(this.deselectSelectedPalettes(),t.selected=!0,t.tabIndex=0,t.setAttribute(`aria-checked`,`true`),this.setSelected(t.value,!0))}async applySelects(){await this.manageSelects()}async manageSelects(){if(this.palettes.length===0)return;let e=this.palettes;this.setAttribute(`role`,`radiogroup`);let t=[],n=e.map(async e=>{await e.updateComplete,e.setAttribute(`role`,`radio`),e.setAttribute(`aria-checked`,e.selected?`true`:`false`),e.selected&&t.push(e)});await Promise.all(n);let r=t.map(e=>e.value).find(Boolean);this.setSelected(r)}render(){return r.html`
19
19
  <div
20
20
  class="color-palette-group"
21
21
  aria-label=${(0,a.ifDefined)(this.label??void 0)}
@@ -15,6 +15,13 @@ declare const LuzmoColorPicker_base: typeof LuzmoElement & {
15
15
  * @element luzmo-color-picker
16
16
  * @fires input - The value of the Color Picker has changed.
17
17
  * @fires change - An alteration to the value of the Color Picker has been committed by the user.
18
+ * @fires {CustomEvent<InteractionEventDetail>} luzmo-interaction-start - Bubbles
19
+ * up from the menu's color area or color sliders when a pointer drag or
20
+ * held-key interaction starts, before the first `change` it causes.
21
+ * @fires {CustomEvent<InteractionEventDetail>} luzmo-interaction-end - Bubbles
22
+ * up when that interaction ends, after its last `change`. Closing the popover
23
+ * ends an interaction in progress. Swatch picks and typed values are single
24
+ * `change` events without an interaction.
18
25
  */
19
26
  export declare class LuzmoColorPicker extends LuzmoColorPicker_base {
20
27
  static styles: import("lit").CSSResult;
@@ -58,6 +65,12 @@ export declare class LuzmoColorPicker extends LuzmoColorPicker_base {
58
65
  private overlayElement;
59
66
  private _renderMenu;
60
67
  private overlayCloseEvent;
68
+ /**
69
+ * Finishes a drag or held-key interaction in progress inside the open menu
70
+ * as if the user released it, so a host can settle the color before it
71
+ * removes or hides the picker. Does nothing otherwise.
72
+ */
73
+ endInteraction(): void;
61
74
  private overlayOpenEvent;
62
75
  private handleColorChange;
63
76
  protected firstUpdated(): void;
@@ -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
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../color-picker-BAikpqUT.cjs");exports.LuzmoColorPicker=e.t;
18
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../color-picker-ELa0yF2F.cjs");exports.LuzmoColorPicker=e.t;
@@ -5,3 +5,4 @@ declare global {
5
5
  }
6
6
  }
7
7
  export { LuzmoColorPicker } from './color-picker';
8
+ export type { InteractionEventDetail, InteractionSource } from '../../utils/reactive-controllers/interaction';
@@ -16,5 +16,4 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import "../tokens.js";
19
- import { t as e } from "../color-picker-CSuAPo5X.js";
20
- export { e as LuzmoColorPicker };
19
+ export { t as LuzmoColorPicker } from "../color-picker-DWERcNZi.js";
@@ -16,16 +16,16 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import "./tokens.js";
19
- import { n as e, t } from "./decorate-CkCg3wfh.js";
20
- import { n } from "./sized-mixin-DzQTebN-.js";
21
- import "./popover-DC8tkee-.js";
22
- import { n as r } from "./slottable-request-event-MRSZbgTu.js";
23
- import "./overlay-DpHIYJtd.js";
24
- import "./swatch-Bj2FARl1.js";
25
- import "./color-menu-qJK_clDq.js";
19
+ import { n as e, t } from "./decorate-CpKsOs9z.js";
20
+ import { n } from "./sized-mixin-BmxIAuoH.js";
21
+ import "./popover-CWrRLzOL.js";
22
+ import { n as r } from "./slottable-request-event-24jJOhbh.js";
23
+ import "./overlay-D_Xfq92b.js";
24
+ import "./swatch-BBVsuSAV.js";
25
+ import "./color-menu-Ct3f01bI.js";
26
26
  import { html as i, unsafeCSS as a } from "lit";
27
27
  import { property as o, query as s, state as c } from "lit/decorators.js";
28
- //#region src/components/color-picker/color-picker.module.scss?inline
28
+ // src/components/color-picker/color-picker.module.scss?inline
29
29
  var l = "luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-gap,var(--color-picker-popover-horizontal-gap));margin-right:var(--luzmo-color-picker-popover-horizontal-gap,var(--color-picker-popover-horizontal-gap))}luzmo-swatch{cursor:pointer}:host([read-only]) luzmo-swatch{cursor:default;pointer-events:none}:host{--luzmo-popover-content-area-spacing-vertical:0;--color-picker-popover-horizontal-gap:var(--luzmo-spacing-4)}:host([size=s]){--color-picker-popover-horizontal-gap:var(--luzmo-spacing-3)}:host([size=l]),:host([size=xl]){--color-picker-popover-horizontal-gap:var(--luzmo-spacing-5)}", u = class extends n(e) {
30
30
  constructor(...e) {
31
31
  super(...e), this.color = "rgb(255, 0, 0)", this.open = !1, this.disabled = !1, this.readOnly = !1, this.placement = "left-start", this.rounding = "full", this.swatches = [], this.noAlphaChannel = !1, this._renderMenu = !1;
@@ -34,7 +34,10 @@ var l = "luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-g
34
34
  this.styles = a(l);
35
35
  }
36
36
  overlayCloseEvent() {
37
- this.open = !1;
37
+ this.endInteraction(), this.open = !1;
38
+ }
39
+ endInteraction() {
40
+ this.menuElement?.endInteraction();
38
41
  }
39
42
  overlayOpenEvent() {
40
43
  this.open = !0;
@@ -91,8 +94,7 @@ var l = "luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-g
91
94
  `;
92
95
  }
93
96
  };
94
- //#endregion
95
- //#region src/components/color-picker/index.ts
97
+ // src/components/color-picker/index.ts
96
98
  t([o({
97
99
  type: String,
98
100
  reflect: !0
@@ -123,5 +125,4 @@ t([o({
123
125
  reflect: !0,
124
126
  attribute: "no-alpha-channel"
125
127
  })], u.prototype, "noAlphaChannel", void 0), t([s("luzmo-color-menu")], u.prototype, "menuElement", void 0), t([s("luzmo-overlay")], u.prototype, "overlayElement", void 0), t([c()], u.prototype, "_renderMenu", void 0), customElements.get("luzmo-color-picker") || customElements.define("luzmo-color-picker", u);
126
- //#endregion
127
128
  export { u as t };
@@ -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
- require("./tokens.cjs");const e=require("./decorate-Dq34MBGe.cjs"),t=require("./sized-mixin-BT7cv-fT.cjs");require("./popover-BsdqkvKI.cjs");const n=require("./slottable-request-event-C6eb7Ch3.cjs");require("./overlay-Dn7EbA_W.cjs"),require("./swatch-CQ0inIHK.cjs"),require("./color-menu-BYTgxLQG.cjs");let r=require("lit"),i=require("lit/decorators.js");var a=`luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-gap,var(--color-picker-popover-horizontal-gap));margin-right:var(--luzmo-color-picker-popover-horizontal-gap,var(--color-picker-popover-horizontal-gap))}luzmo-swatch{cursor:pointer}:host([read-only]) luzmo-swatch{cursor:default;pointer-events:none}:host{--luzmo-popover-content-area-spacing-vertical:0;--color-picker-popover-horizontal-gap:var(--luzmo-spacing-4)}:host([size=s]){--color-picker-popover-horizontal-gap:var(--luzmo-spacing-3)}:host([size=l]),:host([size=xl]){--color-picker-popover-horizontal-gap:var(--luzmo-spacing-5)}`,o=class extends t.n(e.n){constructor(...e){super(...e),this.color=`rgb(255, 0, 0)`,this.open=!1,this.disabled=!1,this.readOnly=!1,this.placement=`left-start`,this.rounding=`full`,this.swatches=[],this.noAlphaChannel=!1,this._renderMenu=!1}static{this.styles=(0,r.unsafeCSS)(a)}overlayCloseEvent(){this.open=!1}overlayOpenEvent(){this.open=!0}handleColorChange(){let e=this.menuElement.color;this.color=typeof e==`string`?e:String(e),this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}firstUpdated(){this.overlayElement.addEventListener(`slottable-request`,e=>{this._renderMenu=e.data!==n.n})}updated(e){e.has(`open`)&&this.open===!0&&(this._renderMenu=!0)}renderColorMenu(){return r.html`
18
+ require("./tokens.cjs");const e=require("./decorate-SO02l0A6.cjs"),t=require("./sized-mixin-CSajkMro.cjs");require("./popover-CFzz83f8.cjs");const n=require("./slottable-request-event-C6eb7Ch3.cjs");require("./overlay-DAOyrYJL.cjs"),require("./swatch-DiNMN-SZ.cjs"),require("./color-menu-COhe5VUB.cjs");let r=require("lit"),i=require("lit/decorators.js");var a=`luzmo-popover{margin-left:var(--luzmo-color-picker-popover-horizontal-gap,var(--color-picker-popover-horizontal-gap));margin-right:var(--luzmo-color-picker-popover-horizontal-gap,var(--color-picker-popover-horizontal-gap))}luzmo-swatch{cursor:pointer}:host([read-only]) luzmo-swatch{cursor:default;pointer-events:none}:host{--luzmo-popover-content-area-spacing-vertical:0;--color-picker-popover-horizontal-gap:var(--luzmo-spacing-4)}:host([size=s]){--color-picker-popover-horizontal-gap:var(--luzmo-spacing-3)}:host([size=l]),:host([size=xl]){--color-picker-popover-horizontal-gap:var(--luzmo-spacing-5)}`,o=class extends t.n(e.n){constructor(...e){super(...e),this.color=`rgb(255, 0, 0)`,this.open=!1,this.disabled=!1,this.readOnly=!1,this.placement=`left-start`,this.rounding=`full`,this.swatches=[],this.noAlphaChannel=!1,this._renderMenu=!1}static{this.styles=(0,r.unsafeCSS)(a)}overlayCloseEvent(){this.endInteraction(),this.open=!1}endInteraction(){this.menuElement?.endInteraction()}overlayOpenEvent(){this.open=!0}handleColorChange(){let e=this.menuElement.color;this.color=typeof e==`string`?e:String(e),this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}firstUpdated(){this.overlayElement.addEventListener(`slottable-request`,e=>{this._renderMenu=e.data!==n.n})}updated(e){e.has(`open`)&&this.open===!0&&(this._renderMenu=!0)}renderColorMenu(){return r.html`
19
19
  <luzmo-color-menu
20
20
  .size=${this.size}
21
21
  .color=${this.color}
@@ -6,6 +6,11 @@ import { ColorValue } from '../../utils/reactive-controllers/color';
6
6
  * @element luzmo-color-slider
7
7
  * @fires input - The value of the Color Slider has changed.
8
8
  * @fires change - An alteration to the value of the Color Slider has been committed by the user.
9
+ * @fires {CustomEvent<InteractionEventDetail>} luzmo-interaction-start - A
10
+ * pointer drag or held-key interaction starts, before its first value change.
11
+ * @fires {CustomEvent<InteractionEventDetail>} luzmo-interaction-end - The
12
+ * interaction ends after its last `input`/`change`, even when nothing changed.
13
+ * A cancelled pointer commits and ends the same way.
9
14
  */
10
15
  export declare class LuzmoColorSlider extends Focusable {
11
16
  static get styles(): CSSResultArray;
@@ -18,6 +23,7 @@ export declare class LuzmoColorSlider extends Focusable {
18
23
  vertical: boolean;
19
24
  private languageResolver;
20
25
  private colorController;
26
+ private readonly _interaction;
21
27
  get value(): number;
22
28
  set value(value: number);
23
29
  sliderHandlePosition: number;
@@ -31,6 +37,7 @@ export declare class LuzmoColorSlider extends Focusable {
31
37
  input: HTMLInputElement;
32
38
  get focusElement(): HTMLInputElement;
33
39
  private handleKeydown;
40
+ private handleKeyup;
34
41
  private handleInput;
35
42
  private handleChange;
36
43
  focus(focusOptions?: FocusOptions): void;
@@ -39,9 +46,18 @@ export declare class LuzmoColorSlider extends Focusable {
39
46
  private handleBlur;
40
47
  private boundingClientRect;
41
48
  private _pointerDown;
49
+ private _capturedPointer?;
42
50
  private handlePointerdown;
43
51
  private handlePointermove;
44
52
  private handlePointerup;
53
+ /** Commits the pointer interaction in progress, then ends it. */
54
+ private _finishPointer;
55
+ /**
56
+ * Finishes the pointer drag or held-key interaction in progress as if the
57
+ * user released it, so a host can settle the value before it removes or
58
+ * hides the slider. Does nothing when no interaction is in progress.
59
+ */
60
+ endInteraction(): void;
45
61
  /**
46
62
  * Returns the value under the cursor
47
63
  * @param: PointerEvent on slider
@@ -52,6 +68,7 @@ export declare class LuzmoColorSlider extends Focusable {
52
68
  private get handlePositionStyles();
53
69
  private get getColorSliderStyle();
54
70
  protected render(): TemplateResult;
71
+ disconnectedCallback(): void;
55
72
  protected firstUpdated(changed: PropertyValues): void;
56
73
  protected updated(changedProperties: PropertyValues): void;
57
74
  }
@@ -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
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../color-slider-CMW8gJ0Z.cjs");exports.LuzmoColorSlider=e.t;
18
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require("../tokens.cjs");const e=require("../color-slider-IYBn2DL7.cjs");exports.LuzmoColorSlider=e.t;
@@ -5,3 +5,4 @@ declare global {
5
5
  }
6
6
  }
7
7
  export { LuzmoColorSlider } from './color-slider';
8
+ export type { InteractionEventDetail, InteractionSource } from '../../utils/reactive-controllers/interaction';
@@ -16,5 +16,4 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import "../tokens.js";
19
- import { t as e } from "../color-slider-0JzdSRTy.js";
20
- export { e as LuzmoColorSlider };
19
+ export { t as LuzmoColorSlider } from "../color-slider-DNd_ZrD6.js";