@luzmo/lucero 2.7.0 → 2.8.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 (356) hide show
  1. package/components/accordion/index.cjs +1 -1
  2. package/components/accordion/index.js +1 -1
  3. package/components/{accordion-BJLsCC-2.js → accordion-C9cVd8A8.js} +1 -1
  4. package/components/{accordion-OQ0RoC_7.cjs → accordion-DulsAsi7.cjs} +1 -1
  5. package/components/action-bar/index.cjs +1 -1
  6. package/components/action-bar/index.js +1 -1
  7. package/components/{action-bar-Dyt2tyjr.cjs → action-bar-BjTUUATD.cjs} +1 -1
  8. package/components/{action-bar-B-Y-gJ8B.js → action-bar-XpNzXzkl.js} +4 -4
  9. package/components/action-button/index.cjs +1 -1
  10. package/components/action-button/index.js +1 -1
  11. package/components/{action-button-CL4ZlryE.cjs → action-button-Cz4jSv__.cjs} +1 -1
  12. package/components/{action-button-BB3ZZFNN.js → action-button-LmKtPKfe.js} +1 -1
  13. package/components/action-group/index.cjs +1 -1
  14. package/components/action-group/index.js +1 -1
  15. package/components/{action-group-HECoPCas.js → action-group-CPxKx_oR.js} +1 -1
  16. package/components/{action-group-Doll-3Bf.cjs → action-group-DBxQJRLs.cjs} +1 -1
  17. package/components/action-menu/index.cjs +1 -1
  18. package/components/action-menu/index.js +1 -1
  19. package/components/{action-menu-DphCCjvX.cjs → action-menu-BFy0mEyu.cjs} +1 -1
  20. package/components/{action-menu-Bv9EA7__.js → action-menu-CT0OYS56.js} +3 -3
  21. package/components/avatar/index.cjs +1 -1
  22. package/components/avatar/index.js +1 -1
  23. package/components/{avatar-CVRQDsx6.js → avatar-BEk23sDA.js} +1 -1
  24. package/components/{avatar-DFzJbtId.cjs → avatar-C9EAInfy.cjs} +1 -1
  25. package/components/badge/index.cjs +1 -1
  26. package/components/badge/index.js +1 -1
  27. package/components/{badge-DzElGOcl.cjs → badge-CPpKOWh2.cjs} +1 -1
  28. package/components/{badge-BSfzmBRf.js → badge-bODlaAG_.js} +1 -1
  29. package/components/button/index.cjs +1 -1
  30. package/components/button/index.js +2 -2
  31. package/components/{button-CpaltgRZ.js → button-5jzMIMLW.js} +3 -3
  32. package/components/{button-BGEWdRbY.cjs → button-CjgL13CD.cjs} +1 -1
  33. package/components/button-group/index.cjs +1 -1
  34. package/components/button-group/index.js +1 -1
  35. package/components/{button-group-DMsT6N0P.js → button-group-B59rXxDn.js} +1 -1
  36. package/components/{button-group-C23OtGC0.cjs → button-group-DxMfPmBg.cjs} +1 -1
  37. package/components/calendar/index.cjs +1 -1
  38. package/components/calendar/index.js +1 -1
  39. package/components/{calendar-BqyGW8gU.cjs → calendar-4h_Fe-mw.cjs} +1 -1
  40. package/components/{calendar-D4x5gp_0.js → calendar-5V1hrKWy.js} +2 -2
  41. package/components/chat-message/index.cjs +1 -1
  42. package/components/chat-message/index.js +1 -1
  43. package/components/{chat-message-5gP_qbiz.js → chat-message--nzqHl6e.js} +1 -1
  44. package/components/{chat-message-Dn5GKsSD.cjs → chat-message-BzSel33p.cjs} +1 -1
  45. package/components/chat-message-group/index.cjs +1 -1
  46. package/components/chat-message-group/index.js +1 -1
  47. package/components/{chat-message-group-Bp4mshBY.js → chat-message-group-BIXlrlYi.js} +1 -1
  48. package/components/{chat-message-group-CJddlS85.cjs → chat-message-group-DLkSlQah.cjs} +1 -1
  49. package/components/checkbox/checkbox.d.ts +2 -0
  50. package/components/checkbox/index.cjs +1 -1
  51. package/components/checkbox/index.js +1 -1
  52. package/components/{checkbox-NSSgVzJg.cjs → checkbox-CFQqGnDX.cjs} +1 -1
  53. package/components/{checkbox-fW7WI915.js → checkbox-D884zXBt.js} +1 -1
  54. package/components/{close-button-7zS6PUzh.js → close-button-Bw8knwnc.js} +1 -1
  55. package/components/{close-button-B06i2hJn.cjs → close-button-DhHKKvHu.cjs} +1 -1
  56. package/components/color-field/index.cjs +1 -1
  57. package/components/color-field/index.js +1 -1
  58. package/components/{color-field-l-aJ6O4a.cjs → color-field-B-GC4H0K.cjs} +1 -1
  59. package/components/{color-field-BZljmVHt.js → color-field-vmTnlDec.js} +1 -1
  60. package/components/color-menu/index.cjs +1 -1
  61. package/components/color-menu/index.js +1 -1
  62. package/components/{color-menu-C56xj5Oe.cjs → color-menu-a_TXvQLC.cjs} +1 -1
  63. package/components/{color-menu-CEtmpeN7.js → color-menu-tt_e0XSY.js} +5 -5
  64. package/components/color-palette/index.cjs +1 -1
  65. package/components/color-palette/index.js +1 -1
  66. package/components/{color-palette-D5NZDz5I.cjs → color-palette-C4Y8VU9j.cjs} +1 -1
  67. package/components/{color-palette-UU7Feiwh.js → color-palette-UnwRum-W.js} +1 -1
  68. package/components/color-palette-group/index.cjs +1 -1
  69. package/components/color-palette-group/index.js +1 -1
  70. package/components/{color-palette-group-DhGh0Db8.cjs → color-palette-group-BiPNlMgu.cjs} +1 -1
  71. package/components/{color-palette-group-CwmC9iR1.js → color-palette-group-jhNz9Gto.js} +1 -1
  72. package/components/color-picker/index.cjs +1 -1
  73. package/components/color-picker/index.js +1 -1
  74. package/components/{color-picker-BDqJodTR.js → color-picker-C6-8JGHh.js} +4 -4
  75. package/components/{color-picker-CLGNQIkK.cjs → color-picker-D6KSj7M_.cjs} +1 -1
  76. package/components/date-range-picker/index.cjs +1 -1
  77. package/components/date-range-picker/index.js +1 -1
  78. package/components/{date-range-picker-DyJdcFiA.cjs → date-range-picker-B7J_RFW6.cjs} +1 -1
  79. package/components/{date-range-picker-CoCz3uDz.js → date-range-picker-BilkNV82.js} +4 -4
  80. package/components/date-time-picker/index.cjs +1 -1
  81. package/components/date-time-picker/index.js +1 -1
  82. package/components/{date-time-picker-CEEeMXGn.cjs → date-time-picker-BNUIfpzG.cjs} +1 -1
  83. package/components/{date-time-picker-CsgO17tA.js → date-time-picker-DOsLR0EN.js} +4 -4
  84. package/components/divider/index.cjs +1 -1
  85. package/components/divider/index.js +1 -1
  86. package/components/{divider-fWGUxO6A.cjs → divider-BS5chsgx.cjs} +1 -1
  87. package/components/{divider-Bt0NIqfu.js → divider-CJRCMeKA.js} +1 -1
  88. package/components/field-label/index.cjs +1 -1
  89. package/components/field-label/index.js +1 -1
  90. package/components/{field-label-B3IsGUTv.cjs → field-label-61lILUqu.cjs} +1 -1
  91. package/components/{field-label-DOUnHwwh.js → field-label-B_VLKIJn.js} +1 -1
  92. package/components/index.cjs +1 -1
  93. package/components/index.js +72 -71
  94. package/components/infield-button/index.cjs +1 -1
  95. package/components/infield-button/index.js +1 -1
  96. package/components/{infield-button-uD1GqTLW.cjs → infield-button-B0qcV4gq.cjs} +1 -1
  97. package/components/{infield-button-CeE_JxR6.js → infield-button-CcaKuxAs.js} +1 -1
  98. package/components/menu/index.cjs +1 -1
  99. package/components/menu/index.js +1 -1
  100. package/components/{menu-f2S0m6h9.js → menu-CM-ZA_ZM.js} +1 -1
  101. package/components/{menu-CoJ5oERs.cjs → menu-tDMNLuND.cjs} +1 -1
  102. package/components/multi-language-field/index.cjs +1 -1
  103. package/components/multi-language-field/index.js +1 -1
  104. package/components/{multi-language-field-SZObnneZ.js → multi-language-field-B6Ne8_Yw.js} +2 -2
  105. package/components/{multi-language-field-nJmWDtPL.cjs → multi-language-field-C5C5yS94.cjs} +1 -1
  106. package/components/notice/index.cjs +1 -1
  107. package/components/notice/index.js +1 -1
  108. package/components/{notice-CrLVNmqL.js → notice-62Wpb7BH.js} +2 -2
  109. package/components/{notice-f0p0TiGw.cjs → notice-DrrmwMlw.cjs} +1 -1
  110. package/components/number-field/index.cjs +1 -1
  111. package/components/number-field/index.js +1 -1
  112. package/components/{number-field-BEt0cfcB.js → number-field-CMM5MC2R.js} +2 -2
  113. package/components/{number-field-DrarDCm4.cjs → number-field-N6nInW0X.cjs} +1 -1
  114. package/components/options/index.cjs +1 -1
  115. package/components/options/index.js +1 -1
  116. package/components/{options-BH_Y3UB6.cjs → options-CsRLHwaY.cjs} +1 -1
  117. package/components/{options-BiA2h1-i.js → options-DtJTjiP8.js} +2 -2
  118. package/components/{pending-state-A6NrvaQj.cjs → pending-state-CQuz9Qiv.cjs} +1 -1
  119. package/components/{pending-state-BuYmUP6G.js → pending-state-KsPO-6Ei.js} +1 -1
  120. package/components/permission-box/index.cjs +18 -0
  121. package/components/permission-box/index.d.ts +9 -0
  122. package/components/permission-box/index.js +19 -0
  123. package/components/permission-box/permission-box.d.ts +157 -0
  124. package/components/permission-box/types.d.ts +73 -0
  125. package/components/permission-box-BsmcqGnU.cjs +176 -0
  126. package/components/permission-box-yUZKSyS9.js +405 -0
  127. package/components/picker/index.cjs +1 -1
  128. package/components/picker/index.js +1 -1
  129. package/components/picker-button/index.cjs +1 -1
  130. package/components/picker-button/index.js +1 -1
  131. package/components/{picker-button-BWDfzx38.cjs → picker-button-CEo39nlA.cjs} +1 -1
  132. package/components/{picker-button-BhfY9gyk.js → picker-button-svME8NW2.js} +1 -1
  133. package/components/{picker-Dd25S3rP.cjs → picker-h0nO2GgS.cjs} +1 -1
  134. package/components/{picker-JhsRAtSd.js → picker-nWTz5f1J.js} +5 -5
  135. package/components/popover/index.cjs +1 -1
  136. package/components/popover/index.js +1 -1
  137. package/components/{popover-CFzz83f8.cjs → popover-6Qy-GpJj.cjs} +1 -1
  138. package/components/{popover-CWrRLzOL.js → popover-BdoJqBC5.js} +1 -1
  139. package/components/progress-bar/index.cjs +1 -1
  140. package/components/progress-bar/index.js +1 -1
  141. package/components/{progress-bar-D6wIZV5l.js → progress-bar-Bc5zjNDp.js} +1 -1
  142. package/components/{progress-bar-9Qg0PYAq.cjs → progress-bar-BsBnhg4r.cjs} +1 -1
  143. package/components/progress-circle/index.cjs +1 -1
  144. package/components/progress-circle/index.js +1 -1
  145. package/components/{progress-circle-DcGKwBTC.js → progress-circle-C5UOMP96.js} +1 -1
  146. package/components/{progress-circle-C_9UZs2Y.cjs → progress-circle-D-JW7zZS.cjs} +1 -1
  147. package/components/progress-steps/index.cjs +1 -1
  148. package/components/progress-steps/index.js +1 -1
  149. package/components/{progress-steps-Byem5ieS.js → progress-steps-BwV4fEcH.js} +1 -1
  150. package/components/{progress-steps-5MhpnGKv.cjs → progress-steps-l0tbGl3P.cjs} +1 -1
  151. package/components/prompt-box/index.cjs +1 -1
  152. package/components/prompt-box/index.js +1 -1
  153. package/components/{prompt-box-B1rmo4DX.cjs → prompt-box-B3gDbsQo.cjs} +1 -1
  154. package/components/{prompt-box-CL0ld3Na.js → prompt-box-BUMtyCsa.js} +4 -4
  155. package/components/question-box/index.cjs +1 -1
  156. package/components/question-box/index.js +1 -1
  157. package/components/question-box/question-box-templates.d.ts +1 -1
  158. package/components/question-box/question-box.d.ts +4 -1
  159. package/components/question-box-C7oXNWje.cjs +401 -0
  160. package/components/{question-box-BAyRPZ8j.js → question-box-wYSFkVoP.js} +184 -188
  161. package/components/radio/index.cjs +1 -1
  162. package/components/radio/index.js +1 -1
  163. package/components/{radio-CyxICbLM.js → radio-B_oHwHgO.js} +1 -1
  164. package/components/{radio-Dd-GgUMm.cjs → radio-DJmITM2m.cjs} +1 -1
  165. package/components/search/index.cjs +1 -1
  166. package/components/search/index.js +1 -1
  167. package/components/{search-1KUNWKWg.cjs → search-CXuXsgJt.cjs} +1 -1
  168. package/components/{search-_NUUJLz0.js → search-Dl5y1IqM.js} +2 -2
  169. package/components/select/index.cjs +1 -1
  170. package/components/select/index.js +1 -1
  171. package/components/{select-ChM3Zfxd.cjs → select-Dm7rf5Un.cjs} +1 -1
  172. package/components/{select-8gtm46qA.js → select-lS54kKFO.js} +6 -6
  173. package/components/{sized-mixin-CSajkMro.cjs → sized-mixin-BqV6ywDw.cjs} +1 -1
  174. package/components/{sized-mixin-BmxIAuoH.js → sized-mixin-Cb-47MjG.js} +17 -1
  175. package/components/slider/index.cjs +1 -1
  176. package/components/slider/index.js +1 -1
  177. package/components/{slider-CD-aGN9I.js → slider-CRe19ziU.js} +2 -2
  178. package/components/{slider-B1cCAj1x.cjs → slider-CotjHgw-.cjs} +1 -1
  179. package/components/split-view/controllers/pane-visibility-controller.d.ts +22 -0
  180. package/components/split-view/controllers/size-memory-controller.d.ts +27 -0
  181. package/components/split-view/index.cjs +1 -1
  182. package/components/split-view/index.d.ts +1 -0
  183. package/components/split-view/index.js +1 -1
  184. package/components/split-view/split-view-model.d.ts +2 -0
  185. package/components/split-view/split-view.d.ts +63 -6
  186. package/components/split-view-B8CDMni5.js +547 -0
  187. package/components/split-view-vqTtsWjc.cjs +45 -0
  188. package/components/status-light/index.cjs +1 -1
  189. package/components/status-light/index.js +1 -1
  190. package/components/{status-light-Do6z53mM.cjs → status-light-CtETRd_o.cjs} +1 -1
  191. package/components/{status-light-DqHhhZed.js → status-light-kt3QBqrC.js} +1 -1
  192. package/components/swatch/index.cjs +1 -1
  193. package/components/swatch/index.js +1 -1
  194. package/components/{swatch-DiNMN-SZ.cjs → swatch-BX6GGDBs.cjs} +1 -1
  195. package/components/{swatch-BBVsuSAV.js → swatch-bXSCI96I.js} +1 -1
  196. package/components/switch/index.cjs +1 -1
  197. package/components/switch/index.js +1 -1
  198. package/components/{switch-DMhCYTgq.cjs → switch-CnnJrKpy.cjs} +1 -1
  199. package/components/{switch-BBtewLDD.js → switch-Do9jl9ur.js} +1 -1
  200. package/components/table/index.cjs +1 -1
  201. package/components/table/index.js +1 -1
  202. package/components/{table-Bf-00FYb.cjs → table-CF5do4qb.cjs} +1 -1
  203. package/components/{table-CfFwBCp1.js → table-FWX6kbpt.js} +2 -2
  204. package/components/tabs/index.cjs +1 -1
  205. package/components/tabs/index.js +1 -1
  206. package/components/{tabs-Dkt0B_-A.js → tabs-CODc4EYJ.js} +2 -2
  207. package/components/{tabs-B0WHKMuF.cjs → tabs-sIusiEWI.cjs} +1 -1
  208. package/components/tags/index.cjs +1 -1
  209. package/components/tags/index.js +1 -1
  210. package/components/{tags-Be4yrNPw.js → tags-BEfsznJy.js} +3 -3
  211. package/components/{tags-CHDNXpxh.cjs → tags-CWJqZufu.cjs} +1 -1
  212. package/components/text-field/index.cjs +1 -1
  213. package/components/text-field/index.js +2 -2
  214. package/components/{text-field-CBsx1CVo.js → text-field-5Ilezggg.js} +1 -1
  215. package/components/{text-field-CZixBD87.cjs → text-field-8IQu5JLQ.cjs} +1 -1
  216. package/components/{text-field-DwvDSctG.cjs → text-field-CLUvzUDH.cjs} +1 -1
  217. package/components/{text-field-SNbvQYOj.js → text-field-Cn51A87k.js} +2 -2
  218. package/components/toast/index.cjs +1 -1
  219. package/components/toast/index.js +1 -1
  220. package/components/{toast-CXZUVaYz.js → toast-B6x2SjM8.js} +1 -1
  221. package/components/{toast-B6yesIcI.cjs → toast-CpOVCCix.cjs} +1 -1
  222. package/components/tooltip/index.cjs +1 -1
  223. package/components/tooltip/index.js +1 -1
  224. package/components/{tooltip-BE01O3Sg.cjs → tooltip-CjfQup1K.cjs} +1 -1
  225. package/components/{tooltip-g2jd5Wsv.js → tooltip-ElTGebA9.js} +1 -1
  226. package/components/top-nav/index.cjs +1 -1
  227. package/components/top-nav/index.js +1 -1
  228. package/components/{top-nav-B0E1K_zf.cjs → top-nav-BG6vbFst.cjs} +1 -1
  229. package/components/{top-nav-DiUCsUpZ.js → top-nav-BMFB1WB0.js} +1 -1
  230. package/components/utils.cjs +1 -1
  231. package/components/utils.js +8 -8
  232. package/custom-elements.json +1 -1
  233. package/index.d.ts +1 -0
  234. package/package.json +7 -1
  235. package/standalone/accordion.js +3 -3
  236. package/standalone/action-bar.js +4 -4
  237. package/standalone/action-button.js +1 -1
  238. package/standalone/action-group.js +1 -1
  239. package/standalone/action-menu.js +6 -6
  240. package/standalone/avatar.js +5 -5
  241. package/standalone/badge.js +1 -1
  242. package/standalone/button-group.js +1 -1
  243. package/standalone/button.js +1 -1
  244. package/standalone/calendar.js +1 -1
  245. package/standalone/chat-message-group.js +2 -2
  246. package/standalone/chat-message.js +3 -3
  247. package/standalone/checkbox.js +1 -1
  248. package/standalone/chunks/{action-button-C946JGIA.js → action-button-CFXQ66x-.js} +1 -1
  249. package/standalone/chunks/{action-group-DlClwXLO.js → action-group-CX3Dg0Bu.js} +2 -2
  250. package/standalone/chunks/{badge-DPFbBRCY.js → badge-C1_QvLsq.js} +1 -1
  251. package/standalone/chunks/{button-COqfQNJv.js → button-DFVs4O1S.js} +1 -1
  252. package/standalone/chunks/{button-BhSe7abg.js → button-PsWOoEKo.js} +1 -1
  253. package/standalone/chunks/{button-base-DLYrzCSm.js → button-base-BuAaSi-H.js} +2 -2
  254. package/standalone/chunks/{calendar-BVrT8uqP.js → calendar-C8QpCEII.js} +5 -5
  255. package/standalone/chunks/{checkbox-4PoS7Uft.js → checkbox-DYjPiIwY.js} +1 -1
  256. package/standalone/chunks/{checkbox-mixin-HnfmivU3.js → checkbox-mixin-BRuj7--C.js} +2 -2
  257. package/standalone/chunks/{clear-button-qIMg8hR4.js → clear-button-BfZbJISP.js} +1 -1
  258. package/standalone/chunks/{close-button-DEiL5kEh.js → close-button-DdAb7Vyz.js} +1 -1
  259. package/standalone/chunks/color-area-DKqadIPQ.js +66 -0
  260. package/standalone/chunks/{color-field-BKDaLJQo.js → color-field-DlZIotvM.js} +1 -1
  261. package/standalone/chunks/{color-handle-DO7dxFGx.js → color-handle-h3fYn_2h.js} +1 -1
  262. package/standalone/chunks/{color-loupe-_dC69K1Z.js → color-loupe-ceV5LQbI.js} +1 -1
  263. package/standalone/chunks/{color-menu-6LhE-qWn.js → color-menu-BSYeKpnw.js} +2 -2
  264. package/standalone/chunks/{color-slider-MSADvkPC.js → color-slider-w5flr8ev.js} +2 -2
  265. package/standalone/chunks/{divider-vAjIOfo1.js → divider-BLhmxGvJ.js} +1 -1
  266. package/standalone/chunks/{field-group-C1oDgW9m.js → field-group-Pc_Pu61V.js} +1 -1
  267. package/standalone/chunks/{field-label-Djcst_hn.js → field-label-CYs6sh7M.js} +3 -3
  268. package/standalone/chunks/icon-CYZJZELU.js +2 -0
  269. package/standalone/chunks/{infield-button-B8EkjwP9.js → infield-button-umqY7wh3.js} +1 -1
  270. package/standalone/chunks/lucero-runtime-BkqJ2L5f.js +18 -0
  271. package/standalone/chunks/luzmoCheck-BQw4HZFw.js +2 -0
  272. package/standalone/chunks/{manage-help-text-DO3PkWgh.js → manage-help-text-CrQxXqBH.js} +1 -1
  273. package/standalone/chunks/{menu-DtUgXalL.js → menu-BQ1vUHja.js} +6 -6
  274. package/standalone/chunks/{number-field-aOOuxxRh.js → number-field-Cujj8njt.js} +2 -2
  275. package/standalone/chunks/{observe-slot-presence-BxmG6A0m.js → observe-slot-presence-CITwnhtc.js} +1 -1
  276. package/standalone/chunks/{options-CPaX-OWy.js → options-BlDY_bJv.js} +12 -12
  277. package/standalone/chunks/{overlay-CgQMEmrM.js → overlay-Bcwu868u.js} +6 -6
  278. package/standalone/chunks/{pending-state-DnTXKvtm.js → pending-state-BbjpQDWR.js} +1 -1
  279. package/standalone/chunks/{picker-5IvNnimu.js → picker-BOuknvzl.js} +7 -7
  280. package/standalone/chunks/{picker-button-BIqlIkET.js → picker-button-B7gJZHYC.js} +1 -1
  281. package/standalone/chunks/{popover-Ca-FBqiU.js → popover-Dum9nObN.js} +2 -2
  282. package/standalone/chunks/progress-circle-CZodXLYe.js +17 -0
  283. package/standalone/chunks/property-BsZepKFj.js +2 -0
  284. package/standalone/chunks/{radio-BJ3RhyUD.js → radio-fCBCSuw9.js} +2 -2
  285. package/standalone/chunks/{segments-factory-DWNY1AUE.js → segments-factory-PfCggJk6.js} +1 -1
  286. package/standalone/chunks/{skeleton-loader-CymPdQl3.js → skeleton-loader-zvitohC5.js} +1 -1
  287. package/standalone/chunks/swatch-BL10VQ4z.js +33 -0
  288. package/standalone/chunks/{template-property-CyrkVY0Q.js → template-property-BeYccnca.js} +1 -1
  289. package/standalone/chunks/{text-field-C4D5FNRe.js → text-field-KnOMaj3Y.js} +1 -1
  290. package/standalone/chunks/{text-field-DwD97PEo.js → text-field-pIdOTrtY.js} +15 -15
  291. package/standalone/chunks/tooltip-CYQLlhx8.js +41 -0
  292. package/standalone/clear-button.js +1 -1
  293. package/standalone/close-button.js +1 -1
  294. package/standalone/color-area.js +1 -1
  295. package/standalone/color-field.js +1 -1
  296. package/standalone/color-handle.js +1 -1
  297. package/standalone/color-loupe.js +1 -1
  298. package/standalone/color-menu.js +1 -1
  299. package/standalone/color-palette-group.js +3 -3
  300. package/standalone/color-palette.js +1 -1
  301. package/standalone/color-picker.js +2 -2
  302. package/standalone/color-slider.js +1 -1
  303. package/standalone/date-range-picker.js +7 -7
  304. package/standalone/date-time-picker.js +8 -8
  305. package/standalone/divider.js +1 -1
  306. package/standalone/field-group.js +1 -1
  307. package/standalone/field-label.js +1 -1
  308. package/standalone/icon.js +1 -1
  309. package/standalone/infield-button.js +1 -1
  310. package/standalone/label.js +1 -1
  311. package/standalone/lit.js +1 -1
  312. package/standalone/manifest.json +45 -43
  313. package/standalone/menu.js +1 -1
  314. package/standalone/multi-language-field.js +1 -1
  315. package/standalone/notice.js +2 -2
  316. package/standalone/number-field.js +1 -1
  317. package/standalone/options.js +1 -1
  318. package/standalone/overlay.js +1 -1
  319. package/standalone/permission-box.js +178 -0
  320. package/standalone/picker-button.js +1 -1
  321. package/standalone/picker.js +1 -1
  322. package/standalone/popover.js +1 -1
  323. package/standalone/progress-bar.js +2 -2
  324. package/standalone/progress-circle.js +1 -1
  325. package/standalone/progress-steps.js +2 -2
  326. package/standalone/prompt-box.js +3 -3
  327. package/standalone/question-box.js +66 -66
  328. package/standalone/radio.js +1 -1
  329. package/standalone/search.js +2 -2
  330. package/standalone/select.js +9 -9
  331. package/standalone/skeleton-loader.js +1 -1
  332. package/standalone/slider.js +11 -11
  333. package/standalone/split-view.js +5 -3
  334. package/standalone/status-light.js +1 -1
  335. package/standalone/swatch.js +1 -1
  336. package/standalone/switch.js +1 -1
  337. package/standalone/table.js +24 -24
  338. package/standalone/tabs.js +7 -7
  339. package/standalone/tags.js +2 -2
  340. package/standalone/text-field.js +1 -1
  341. package/standalone/toast.js +1 -1
  342. package/standalone/tooltip.js +1 -1
  343. package/standalone/top-nav.js +10 -10
  344. package/standalone/utils.js +1 -1
  345. package/styles/mixins/tests/visually-hidden.test.d.ts +1 -0
  346. package/utils/sized-mixin.d.ts +8 -0
  347. package/components/question-box-D7s2xNAD.cjs +0 -401
  348. package/components/split-view-DDwpoN2O.js +0 -357
  349. package/components/split-view-DNVlr5VD.cjs +0 -43
  350. package/standalone/chunks/color-area-D-AVcZza.js +0 -66
  351. package/standalone/chunks/icon-D69mOw1X.js +0 -2
  352. package/standalone/chunks/lucero-runtime-DMlHjBe_.js +0 -18
  353. package/standalone/chunks/progress-circle-CFtVq9Ou.js +0 -17
  354. package/standalone/chunks/property-BsDbx7Z2.js +0 -2
  355. package/standalone/chunks/swatch-zFOV4NtM.js +0 -33
  356. package/standalone/chunks/tooltip-B-j8PrNl.js +0 -41
@@ -0,0 +1,33 @@
1
+
2
+ import"../tokens.js";import{c as e,y as t}from"./lit-DWANyjiY.js";import{a as n,c as r,d as i,f as a,h as o,i as s,r as c,x as l}from"./lucero-runtime-BkqJ2L5f.js";import{t as u}from"./luzmoDash-oXMu8wBK.js";import{t as d}from"./luzmo-icon-markup-DaKoHMY8.js";import{t as f}from"./when-BWvpqCBs.js";import{t as p}from"./roving-tabindex-CivopiNn.js";var m=`@media (forced-colors:active){:host{--highcontrast-swatch-disabled-icon-color:GrayText;--highcontrast-swatch-focus-indicator-color:ButtonText;--highcontrast-swatch-background-color-selected:Background;--highcontrast-swatch-border-color-selected:Highlight;--highcontrast-swatch-border-color:ButtonText;--highcontrast-swatch-fill-foreground-color:ButtonText}.fill{forced-color-adjust:none}:host([disabled]),:host([disabled]){--highcontrast-swatch-border-color:GrayText}}:host{box-sizing:border-box;inline-size:var(--luzmo-swatch-size,var(--swatch-size));block-size:var(--luzmo-swatch-size,var(--swatch-size));-webkit-user-select:none;user-select:none;outline:none;justify-content:center;align-items:center;display:flex;position:relative}.disabled-icon{inline-size:var(--luzmo-swatch-disabled-icon-size,var(--swatch-disabled-icon-size));block-size:var(--luzmo-swatch-disabled-icon-size,var(--swatch-disabled-icon-size))}:host,:host:before{border-radius:var(--luzmo-swatch-border-radius,var(--swatch-border-radius))}:host([selected]){background-color:var(--highcontrast-swatch-background-color-selected,var(--luzmo-swatch-inner-border-color-selected,var(--swatch-inner-border-color-selected)))}:host([selected]) .fill:before{box-shadow:none;border-radius:0}:host([selected]):before{opacity:1}:host .is-image .fill:before{background-color:initial}:host([mixed-value]) .fill{background:0 0;background:var(--picked-color,transparent)}:host([mixed-value]) .mixed-value-icon{color:var(--swatch-dash-icon-color);display:block}:host([nothing]) .fill{background-color:initial;background-color:var(--picked-color,transparent);background-image:none}:host([nothing]) .fill:after{inline-size:var(--luzmo-swatch-slash-thickness,var(--swatch-slash-thickness));content:"";background:var(--highcontrast-swatch-fill-foreground-color,var(--luzmo-swatch-slash-icon-color,var(--swatch-slash-icon-color)));block-size:200%;position:absolute;transform:rotate(-45deg)}:host([nothing][shape=rectangle]) .fill:after{transform:rotate(-25deg)}:host([disabled]) .disabled-icon,:host([disabled]) .disabled-icon{display:block}:host:before{content:"";opacity:0;pointer-events:none;position:absolute;inset:0;border-width:var(--luzmo-swatch-border-thickness-selected,var(--swatch-border-thickness-selected))!important;border-style:solid!important;border-color:var(--highcontrast-swatch-border-color-selected,var(--luzmo-swatch-border-color-selected,var(--swatch-border-color-selected)))!important}:host:after{content:"";inset:calc(var(--luzmo-swatch-focus-indicator-gap,var(--swatch-focus-indicator-gap)) * -2);background-color:var(--luzmo-swatch-focus-indicator-background-color,var(--luzmo-background-color));z-index:-1;opacity:0;border-radius:var(--luzmo-swatch-focus-indicator-border-radius,var(--swatch-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute;border-width:var(--luzmo-swatch-focus-indicator-width,var(--swatch-focus-indicator-width))!important;border-style:solid!important;border-color:var(--highcontrast-swatch-focus-indicator-color,var(--luzmo-swatch-focus-indicator-color,var(--swatch-focus-indicator-color)))!important}:host(:focus-visible):after{opacity:1}.fill{box-sizing:border-box;border-radius:var(--luzmo-swatch-border-radius,var(--swatch-border-radius));justify-content:center;align-items:center;block-size:100%;inline-size:100%;display:flex;position:relative;overflow:hidden}.fill:before{content:"";z-index:0;box-sizing:border-box;box-shadow:inset 0 0 0 var(--luzmo-swatch-border-thickness,var(--swatch-border-thickness)) var(--highcontrast-swatch-border-color,var(--luzmo-swatch-border-color,var(--swatch-border-color)));border-radius:var(--luzmo-swatch-border-radius,var(--swatch-border-radius));position:absolute;inset:0}:host([border=none]) .fill:before,.fill:before{background-color:initial;background-color:var(--picked-color,transparent)}:host([border=none]) .fill:before{box-shadow:none}.mixed-value-icon{pointer-events:none;color:var(--picked-color,transparent);display:none}.disabled-icon{z-index:1;pointer-events:none;color:var(--highcontrast-swatch-disabled-icon-color,var(--luzmo-swatch-disabled-icon-color,var(--swatch-disabled-icon-color)));stroke:var(--highcontrast-swatch-disabled-icon-color,var(--luzmo-swatch-disabled-icon-color,var(--swatch-disabled-icon-color)));display:none;position:relative}.disabled-icon path:first-child{fill:var(--highcontrast-swatch-disabled-icon-color,var(--luzmo-swatch-disabled-icon-color,var(--swatch-disabled-icon-color)))}.disabled-icon path:last-child{fill:var(--luzmo-swatch-icon-border-color,var(--swatch-icon-border-color))}:host([shape=rectangle]){inline-size:calc(var(--luzmo-swatch-size,var(--swatch-size)) * 2)}:host([rounding=none]),:host([rounding=none]) .fill,:host([rounding=none]) .fill:before,:host([rounding=none][selected]) .fill,:host([rounding=none][selected]) .fill:before,:host([rounding=none]):after,:host([rounding=none]):before{border-radius:0}:host([rounding=full][selected]:not([shape=rectangle])) .fill,:host([rounding=full][selected]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])),:host([rounding=full]:not([shape=rectangle])) .fill,:host([rounding=full]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])):after,:host([rounding=full]:not([shape=rectangle])):before{border-radius:100%}:host([selected]) .fill{width:calc(var(--luzmo-swatch-size,var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected,var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap,var(--swatch-focus-indicator-gap)));height:calc(var(--luzmo-swatch-size,var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected,var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap,var(--swatch-focus-indicator-gap)))}:host([selected][shape=rectangle]) .fill{width:calc(var(--luzmo-swatch-size,var(--swatch-size)) * 2 - 2 * var(--luzmo-swatch-border-thickness-selected,var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap,var(--swatch-focus-indicator-gap)))}::slotted([slot=image]){object-fit:contain;block-size:100%;inline-size:100%;transition:width var(--luzmo-animation-duration) ease-in-out, height var(--luzmo-animation-duration) ease-in-out}:host([size=xl]){--swatch-size:var(--luzmo-component-height-xl);--swatch-disabled-icon-size:24px;--swatch-slash-thickness:6px}:host([size=l]){--swatch-size:var(--luzmo-component-height-l);--swatch-disabled-icon-size:20px;--swatch-slash-thickness:5px}:host([size=s]){--swatch-size:var(--luzmo-component-height-s);--swatch-disabled-icon-size:16px;--swatch-slash-thickness:3px}:host([size=xs]){--swatch-size:var(--luzmo-component-height-xs);--swatch-disabled-icon-size:16px;--swatch-slash-thickness:2px}:host([size=xxs]){--swatch-size:var(--luzmo-component-height-xxs);--swatch-disabled-icon-size:14px;--swatch-slash-thickness:2px}:host{--swatch-size:var(--luzmo-component-height);--swatch-disabled-icon-size:18px;--swatch-slash-thickness:4px;--swatch-border-radius:var(--luzmo-border-radius-s);--swatch-focus-indicator-border-radius:var(--luzmo-border-radius-s);--swatch-border-thickness:var(--luzmo-border-width);--swatch-border-thickness-selected:var(--luzmo-border-width);--swatch-focus-indicator-width:var(--luzmo-indicator-width);--swatch-focus-indicator-gap:var(--luzmo-indicator-gap);--swatch-border-color:var(--luzmo-border-color-down);--swatch-icon-border-color:var(--luzmo-border-color);--swatch-border-color-selected:var(--luzmo-border-color-full-down);--swatch-inner-border-color-selected:var(--luzmo-background-color);--swatch-disabled-icon-color:#fff;--swatch-dash-icon-color:var(--luzmo-font-color);--swatch-slash-icon-color:var(--luzmo-negative-color);--swatch-focus-indicator-color:var(--luzmo-primary)}.fill:before,:host([border=none]) .fill:before{background:var(--picked-color,transparent)}:host .is-image .fill:before{background:0 0}:host .opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-swatch-checkerboard-light,#fff) 0 25%, var(--luzmo-swatch-checkerboard-dark,#e6e6e6) 0 50%) var(--luzmo-swatch-checkerboard-position,left top)/calc(var(--luzmo-swatch-checkerboard-size,8px) * 2) calc(var(--luzmo-swatch-checkerboard-size,8px) * 2)}`,h=class extends r(n,{validSizes:[`xxs`,`xs`,`s`,`m`,`l`,`xl`],noDefaultSize:!0}){constructor(...t){super(...t),this.color=``,this.label=``,this.mixedValue=!1,this.nothing=!1,this.role=`button`,this.selected=!1,this.readonly=!1,this.renderDisabled=()=>e`
3
+ <svg
4
+ xmlns="http://www.w3.org/2000/svg"
5
+ class="disabled-icon"
6
+ viewBox="0 0 20 20"
7
+ >
8
+ <path
9
+ d="M9.889,1a8.889,8.889,0,1,0,8.889,8.889A8.889,8.889,0,0,0,9.889,1Zm6.667,8.889a6.635,6.635,0,0,1-1.233,3.863l-9.3-9.3A6.667,6.667,0,0,1,16.556,9.889Zm-13.333,0A6.636,6.636,0,0,1,4.455,6.026l9.3,9.3A6.667,6.667,0,0,1,3.222,9.889Z"
10
+ stroke="none"
11
+ fill="var(--swatch-disabled-icon-color)"
12
+ />
13
+ <path
14
+ d="M 9.888889312744141 1 C 4.979689598083496 1 1 4.979689598083496 1 9.888889312744141 C 1 14.7980899810791 4.979689598083496 18.77777862548828 9.888889312744141 18.77777862548828 C 14.7980899810791 18.77777862548828 18.77777862548828 14.7980899810791 18.77777862548828 9.888889312744141 C 18.77777862548828 4.979689598083496 14.7980899810791 1 9.888889312744141 1 M 15.32277870178223 13.75166893005371 L 6.02610969543457 4.454998970031738 C 8.059318542480469 3.009572982788086 10.72937774658203 2.820217132568359 12.9462194442749 3.964249610900879 C 15.16304969787598 5.10828971862793 16.55568885803223 7.394259452819824 16.5555591583252 9.888889312744141 C 16.55776977539062 11.27357959747314 16.126708984375 12.62425994873047 15.32277870178223 13.75166893005371 M 9.888258934020996 16.55648612976074 C 8.843273162841797 16.55648612976074 7.794573783874512 16.31111145019531 6.831318855285645 15.8139591217041 C 4.614439010620117 14.66977882385254 3.221879959106445 12.38361930847168 3.222219467163086 9.888889312744141 C 3.220088958740234 8.504219055175781 3.651140213012695 7.153559684753418 4.454998970031738 6.02610969543457 L 13.75166893005371 15.32333946228027 C 12.60186290740967 16.14075088500977 11.24825286865234 16.55648612976074 9.888258934020996 16.55648612976074 M 9.888889312744141 0 C 15.34163951873779 0 19.77777862548828 4.436139106750488 19.77777862548828 9.888889312744141 C 19.77777862548828 15.34163951873779 15.34163951873779 19.77777862548828 9.888889312744141 19.77777862548828 C 4.436139106750488 19.77777862548828 0 15.34163951873779 0 9.888889312744141 C 0 4.436139106750488 4.436139106750488 0 9.888889312744141 0 Z M 15.10232830047607 12.11699867248535 C 15.40205764770508 11.41858959197998 15.55679702758789 10.66494941711426 15.5555591583252 9.89048957824707 C 15.5556697845459 7.759209632873535 14.38009929656982 5.829549789428711 12.48761940002441 4.852889060974121 C 11.68764972686768 4.440059661865234 10.78924942016602 4.22184944152832 9.889529228210449 4.22184944152832 C 9.114802360534668 4.22184944152832 8.360831260681152 4.377038955688477 7.661839485168457 4.676509857177734 L 15.10232830047607 12.11699867248535 Z M 12.11597919464111 15.10181331634521 L 4.675475120544434 7.660861015319824 C 4.375750541687012 8.359296798706055 4.221027374267578 9.112875938415527 4.222219467163086 9.887349128723145 C 4.221929550170898 12.01874923706055 5.397418975830078 13.94855880737305 7.289958953857422 14.92533874511719 C 8.08997917175293 15.3382396697998 8.988459587097168 15.55648994445801 9.888258934020996 15.55648994445801 C 10.66298007965088 15.55648994445801 11.41698551177979 15.40128421783447 12.11597919464111 15.10181331634521 Z"
15
+ stroke="none"
16
+ fill="var(--swatch-disabled-icon-stroke-color)"
17
+ />
18
+ </svg>
19
+ `,this.renderMixedValue=()=>d(u)}static get styles(){return[t(m)]}get value(){return this._value||this.color||this.label}set value(e){if(e===this._value)return;let t=this.value;this._value=e,this.requestUpdate(`value`,t)}get focusElement(){return this}toggle(e){this.readonly||(this.selected=e??!this.selected)}handleClick(){this.disabled||this.mixedValue||(this.toggle(),this.dispatchEvent(new Event(`change`,{cancelable:!0,bubbles:!0}))||this.toggle())}handleKeydown(e){let{code:t}=e;t===`Space`&&(e.preventDefault(),this.addEventListener(`keyup`,this.handleKeyup))}handleKeypress(e){let{code:t}=e;switch(t){case`Enter`:case`NumpadEnter`:this.click()}}handleKeyup(e){let{code:t}=e;t===`Space`&&(this.removeEventListener(`keyup`,this.handleKeyup),this.click())}render(){return e`
20
+ <div
21
+ class="opacity-checkerboard fill"
22
+ style=${s(this.color?`--picked-color: ${this.color}`:void 0)}
23
+ >
24
+ <slot name="image"></slot>
25
+ ${f(this.disabled,this.renderDisabled)}
26
+ ${f(this.mixedValue,this.renderMixedValue)}
27
+ </div>
28
+ `}willUpdate(e){if(this.getAttribute(`role`)||this.setAttribute(`role`,`button`),(e.has(`selected`)||e.has(`role`))&&!this.readonly){let t=this.role===`button`?`aria-pressed`:`aria-checked`,n=this.role===`button`?`aria-checked`:`aria-pressed`;e.has(`role`)&&this.removeAttribute(n),this.setAttribute(t,this.selected?`true`:`false`)}(e.has(`label`)||e.has(`color`)||e.has(`mixedValue`)||e.has(`nothing`))&&(this.label!==this.color&&this.label?.length?this.setAttribute(`aria-label`,this.label):this.color?this.setAttribute(`aria-label`,this.color):this.mixedValue?this.setAttribute(`aria-label`,`Mixed`):this.nothing?this.setAttribute(`aria-label`,`None`):this.removeAttribute(`aria-label`))}firstUpdated(e){super.firstUpdated(e),this.addEventListener(`click`,this.handleClick),this.addEventListener(`keydown`,this.handleKeydown),this.addEventListener(`keypress`,this.handleKeypress),this.hasAttribute(`tabindex`)||this.setAttribute(`tabindex`,`0`)}};i([l({reflect:!0})],h.prototype,`border`,void 0),i([l()],h.prototype,`color`,void 0),i([l()],h.prototype,`label`,void 0),i([l({type:Boolean,reflect:!0,attribute:`mixed-value`})],h.prototype,`mixedValue`,void 0),i([l({type:Boolean,reflect:!0})],h.prototype,`nothing`,void 0),i([l({reflect:!0})],h.prototype,`role`,void 0),i([l({reflect:!0})],h.prototype,`rounding`,void 0),i([l({type:Boolean,reflect:!0})],h.prototype,`selected`,void 0),i([l({type:Boolean,reflect:!0})],h.prototype,`readonly`,void 0),i([l({reflect:!0})],h.prototype,`shape`,void 0),i([l()],h.prototype,`value`,null);var g=`:host{justify-content:flex-start;align-items:flex-start;gap:var(--luzmo-swatch-group-spacing-regular,var(--swatch-group-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--luzmo-swatch-group-spacing-compact,var(--swatch-group-spacing-compact))}:host([density=spacious]){gap:var(--luzmo-swatch-group-spacing-spacious,var(--swatch-group-spacing-spacious))}:host{--swatch-group-spacing-compact:2px;--swatch-group-spacing-regular:4px;--swatch-group-spacing-spacious:8px}`,_=class extends r(a,{validSizes:[`xs`,`s`,`m`,`l`],noDefaultSize:!0}){static get styles(){return[t(g)]}get selected(){return this._selected}set selected(e){if(e===this.selected)return;let t=this.selected;this._selected=e,this.requestUpdate(`selected`,t)}constructor(){super(),this._selected=[],this.selectedSet=/* @__PURE__ */ new Set,this.rovingTabindexController=new p(this,{focusInIndex:e=>{let t=-1,n=e.findIndex((n,r)=>(!e[t]&&!n.disabled&&(t=r),n.selected&&!n.disabled));return e[n]?n:t},elements:()=>this.swatches,isFocusableElement:e=>!e.disabled}),this.manageChange=async()=>{let e=/* @__PURE__ */ new Set;this.selectedSet=new Set(this.selected),await Promise.all(this.swatches.map(e=>e.updateComplete)),this.swatches.forEach(t=>{e.add(t.value),t.selected&&this.selectedSet.add(t.value)}),this.selectedSet.forEach(t=>{e.has(t)||this.selectedSet.delete(t)}),this._selected=[...this.selectedSet],this.rovingTabindexController.clearElementCache()},new c(this,{config:{attributes:!0,childList:!0,subtree:!0},callback:()=>{this.manageChange()}})}focus(e){this.rovingTabindexController.focus(e)}handleChange(e){e.stopPropagation();let t=this.selected;if(!this.selects)e.preventDefault();else{if(this.selects===`single`){let{target:t}=e;if(t.tabIndex=0,t.selected=!0,this.selectedSet.has(t.value))return;this.selectedSet.clear(),this.selectedSet.add(t.value),this.rovingTabindexController.elements.forEach(e=>{e!==t&&(e.selected=!1)})}else if(this.selects===`multiple`){let{target:t}=e;t.selected?this.selectedSet.add(t.value):this.selectedSet.delete(t.value)}this._selected=[...this.selectedSet],this.dispatchEvent(new Event(`change`,{cancelable:!0,bubbles:!0}))||(this._selected=t,e.preventDefault())}}getPassthroughSwatchActions(e){let t={};e.has(`selects`)&&(this.selects||e.get(`selects`)!==void 0)&&(t.selects=this.selects),e.has(`border`)&&(this.border||e.get(`border`)!==void 0)&&(t.border=this.border),e.has(`rounding`)&&(this.rounding||e.get(`rounding`)!==void 0)&&(t.rounding=this.rounding),e.has(`size`)&&(this.size!==`m`||e.get(`size`)!==void 0)&&(t.size=this.size),e.has(`shape`)&&(this.shape||e.get(`shape`)!==void 0)&&(t.shape=this.shape);let n=[];return Object.keys(t).length>0&&n.push(e=>{`border`in t&&(e.border=t.border),`rounding`in t&&(e.rounding=t.rounding),`shape`in t&&(e.shape=t.shape),`size`in t&&(e.size=t.size)}),n}getSelectionSwatchActions(e){let t=[];if(!e.has(`selects`))return t;this.selects?this.setAttribute(`role`,this.selects===`single`?`radiogroup`:`group`):this.removeAttribute(`role`);let n=this.selects?{single:`radio`,multiple:`checkbox`}[this.selects]:`button`;return t.push(e=>{e.setAttribute(`role`,n)}),t}render(){return e`
29
+ <slot
30
+ @change=${this.handleChange}
31
+ @slotchange=${this.manageChange}
32
+ ></slot>
33
+ `}willUpdate(e){let t=[...this.getPassthroughSwatchActions(e),...this.getSelectionSwatchActions(e)],n=new Set(this.selected),r=/* @__PURE__ */ new Set;e.has(`selected`)&&t.push(e=>{r.add(e.value),e.selected=!!(n.has(e.value)||!this.hasUpdated&&e.selected)});let i=()=>{n=new Set(this.selected),this.swatches.forEach(e=>{t.forEach(t=>{t(e)})}),e.has(`selected`)&&(this._selected=[...n.values()].filter(e=>r.has(e)))};this.hasUpdated?i():this.renderRoot.addEventListener(`slotchange`,()=>{requestAnimationFrame(i)},{once:!0})}};i([l({reflect:!0})],_.prototype,`border`,void 0),i([l({reflect:!0})],_.prototype,`density`,void 0),i([l({reflect:!0})],_.prototype,`rounding`,void 0),i([l({type:Array})],_.prototype,`selected`,null),i([l()],_.prototype,`selects`,void 0),i([l({reflect:!0})],_.prototype,`shape`,void 0),i([o({flatten:!0})],_.prototype,`swatches`,void 0),customElements.get(`luzmo-swatch`)||customElements.define(`luzmo-swatch`,h),customElements.get(`luzmo-swatch-group`)||customElements.define(`luzmo-swatch-group`,_);export{h as n,_ as t};
@@ -1,2 +1,2 @@
1
1
 
2
- import{c as e,i as t}from"./lit-DWANyjiY.js";import{y as n}from"./lucero-runtime-DMlHjBe_.js";import{r,t as i}from"./directive-Du_3lDov.js";import{t as a}from"./async-directive-ByLzVnWY.js";import"./async-directive-DNgXlN7F.js";function o(e){if(!e.context.includes(e.implicit))throw Error(`The implicit template value must name a context argument.`);return n({attribute:!1})}var s=i(class extends a{constructor(e){if(super(e),this.args=[],e.type!==r.CHILD)throw Error(`Template renderers must be used in child expressions.`)}render(e,n){return e!==this.factory&&this.dispose(),this.factory=e,this.args=n,this.isConnected?(this.view?this.view.update(n):this.view=e(n),this.view.nodes):t}disconnected(){this.dispose()}reconnected(){this.factory&&this.setValue(this.render(this.factory,this.args))}dispose(){this.view?.destroy(),this.view=void 0}});function c(t){return(...n)=>e`${s(t,n)}`}export{o as n,c as t};
2
+ import{c as e,i as t}from"./lit-DWANyjiY.js";import{x as n}from"./lucero-runtime-BkqJ2L5f.js";import{r,t as i}from"./directive-Du_3lDov.js";import{t as a}from"./async-directive-ByLzVnWY.js";import"./async-directive-DNgXlN7F.js";function o(e){if(!e.context.includes(e.implicit))throw Error(`The implicit template value must name a context argument.`);return n({attribute:!1})}var s=i(class extends a{constructor(e){if(super(e),this.args=[],e.type!==r.CHILD)throw Error(`Template renderers must be used in child expressions.`)}render(e,n){return e!==this.factory&&this.dispose(),this.factory=e,this.args=n,this.isConnected?(this.view?this.view.update(n):this.view=e(n),this.view.nodes):t}disconnected(){this.dispose()}reconnected(){this.factory&&this.setValue(this.render(this.factory,this.args))}dispose(){this.view?.destroy(),this.view=void 0}});function c(t){return(...n)=>e`${s(t,n)}`}export{o as n,c as t};
@@ -1,5 +1,5 @@
1
1
 
2
- import"../tokens.js";import{c as e,i as t,y as n}from"./lit-DWANyjiY.js";import{c as r,l as i,u as a,y as o}from"./lucero-runtime-DMlHjBe_.js";import{t as s}from"./luzmoClose14-CpeGUk1z.js";import{t as c}from"./luzmo-icon-markup-DaKoHMY8.js";import{t as l}from"./text-field-DwD97PEo.js";var u=`@media (forced-colors:active){:host{--highcontrast-helptext-content-color-default:CanvasText;--highcontrast-helptext-icon-color-default:CanvasText}:host,.text,.icon{forced-color-adjust:none}}:host{--helptext-bottom-to-workflow-icon:3px;color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--helptext-content-color-default)));font-family:var(--luzmo-helptext-font-family,var(--luzmo-font-family));font-weight:var(--luzmo-helptext-font-weight,var(--luzmo-font-weight));font-size:var(--luzmo-helptext-font-size,var(--helptext-font-size,var(--luzmo-font-size-s)));min-block-size:var(--luzmo-helptext-min-height,var(--helptext-min-height,24px));display:flex}.icon{block-size:var(--luzmo-helptext-icon-size,var(--helptext-icon-size,18px));inline-size:var(--luzmo-helptext-icon-size,var(--helptext-icon-size,18px));flex-shrink:0;margin-inline-end:var(--luzmo-helptext-text-to-visual,var(--helptext-text-to-visual,7px));padding-block-start:var(--luzmo-helptext-top-to-workflow-icon,var(--helptext-top-to-workflow-icon,3px));padding-block-end:var(--luzmo-helptext-bottom-to-workflow-icon,var(--helptext-bottom-to-workflow-icon,3px))}.text{line-height:var(--luzmo-helptext-line-height,var(--helptext-line-height,1.3));padding-block-start:var(--luzmo-helptext-top-to-text,var(--helptext-top-to-text,4px));padding-block-end:var(--luzmo-helptext-bottom-to-text,var(--helptext-bottom-to-text,5px))}:host(:lang(ja)) .text,:host(:lang(ko)) .text,:host(:lang(zh)) .text{line-height:var(--luzmo-helptext-line-height-cjk,var(--helptext-line-height-cjk,1.4))}:host([variant=neutral]) .text{color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--helptext-content-color-default)))}:host([variant=neutral]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--luzmo-helptext-icon-color-default,var(--helptext-icon-color-default)))}:host([variant=negative]) .text{color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--luzmo-negative-color-down)))}:host([variant=negative]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--luzmo-helptext-icon-color-default,var(--helptext-icon-color-default)))}:host([disabled]) .text{color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--luzmo-font-color)))}:host([disabled]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--luzmo-helptext-icon-color-default,var(--helptext-icon-color-default)))}:host{--helptext-line-height:1.3;--helptext-content-color-default:var(--luzmo-font-color);--helptext-icon-color-default:var(--luzmo-font-color);--helptext-disabled-content-color:var(--luzmo-font-color-disabled)}:host([variant=neutral]){--helptext-content-color-default:var(--luzmo-font-color);--helptext-icon-color-default:var(--luzmo-font-color)}:host([variant=negative]){--helptext-content-color-default:var(--luzmo-negative-color);--helptext-icon-color-default:var(--luzmo-negative-color)}:host([disabled]){--helptext-content-color-default:var(--luzmo-font-color-disabled);--helptext-icon-color-default:var(--luzmo-font-color-disabled)}:host(:lang(ja)),:host(:lang(zh)),:host(:lang(ko)){--helptext-line-height-cjk:1.4}:host([size=s]){--helptext-min-height:24px;--helptext-icon-size:16px;--helptext-font-size:12px;--helptext-text-to-visual:7px;--helptext-top-to-workflow-icon:4px;--helptext-top-to-text:4px;--helptext-bottom-to-text:5px}:host{--helptext-min-height:24px;--helptext-icon-size:18px;--helptext-font-size:12px;--helptext-text-to-visual:7px;--helptext-top-to-workflow-icon:3px;--helptext-top-to-text:4px;--helptext-bottom-to-text:5px}:host([size=l]){--helptext-min-height:32px;--helptext-icon-size:20px;--helptext-font-size:14px;--helptext-text-to-visual:8px;--helptext-top-to-workflow-icon:6px;--helptext-top-to-text:6px;--helptext-bottom-to-text:5px}:host([size=xl]){--helptext-min-height:40px;--helptext-icon-size:22px;--helptext-font-size:16px;--helptext-text-to-visual:9px;--helptext-top-to-workflow-icon:9px;--helptext-top-to-text:9px;--helptext-bottom-to-text:12px}`,d=class extends r(a,{noDefaultSize:!0}){constructor(...e){super(...e),this.icon=!1,this.variant=`neutral`}static get styles(){return[n(u)]}render(){return e`
2
+ import"../tokens.js";import{c as e,i as t,y as n}from"./lit-DWANyjiY.js";import{c as r,d as i,f as a,x as o}from"./lucero-runtime-BkqJ2L5f.js";import{t as s}from"./luzmoClose14-CpeGUk1z.js";import{t as c}from"./luzmo-icon-markup-DaKoHMY8.js";import{t as l}from"./text-field-pIdOTrtY.js";var u=`@media (forced-colors:active){:host{--highcontrast-helptext-content-color-default:CanvasText;--highcontrast-helptext-icon-color-default:CanvasText}:host,.text,.icon{forced-color-adjust:none}}:host{--helptext-bottom-to-workflow-icon:3px;color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--helptext-content-color-default)));font-family:var(--luzmo-helptext-font-family,var(--luzmo-font-family));font-weight:var(--luzmo-helptext-font-weight,var(--luzmo-font-weight));font-size:var(--luzmo-helptext-font-size,var(--helptext-font-size,var(--luzmo-font-size-s)));min-block-size:var(--luzmo-helptext-min-height,var(--helptext-min-height,24px));display:flex}.icon{block-size:var(--luzmo-helptext-icon-size,var(--helptext-icon-size,18px));inline-size:var(--luzmo-helptext-icon-size,var(--helptext-icon-size,18px));flex-shrink:0;margin-inline-end:var(--luzmo-helptext-text-to-visual,var(--helptext-text-to-visual,7px));padding-block-start:var(--luzmo-helptext-top-to-workflow-icon,var(--helptext-top-to-workflow-icon,3px));padding-block-end:var(--luzmo-helptext-bottom-to-workflow-icon,var(--helptext-bottom-to-workflow-icon,3px))}.text{line-height:var(--luzmo-helptext-line-height,var(--helptext-line-height,1.3));padding-block-start:var(--luzmo-helptext-top-to-text,var(--helptext-top-to-text,4px));padding-block-end:var(--luzmo-helptext-bottom-to-text,var(--helptext-bottom-to-text,5px))}:host(:lang(ja)) .text,:host(:lang(ko)) .text,:host(:lang(zh)) .text{line-height:var(--luzmo-helptext-line-height-cjk,var(--helptext-line-height-cjk,1.4))}:host([variant=neutral]) .text{color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--helptext-content-color-default)))}:host([variant=neutral]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--luzmo-helptext-icon-color-default,var(--helptext-icon-color-default)))}:host([variant=negative]) .text{color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--luzmo-negative-color-down)))}:host([variant=negative]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--luzmo-helptext-icon-color-default,var(--helptext-icon-color-default)))}:host([disabled]) .text{color:var(--highcontrast-helptext-content-color-default,var(--luzmo-helptext-content-color-default,var(--luzmo-font-color)))}:host([disabled]) .icon{color:var(--highcontrast-helptext-icon-color-default,var(--luzmo-helptext-icon-color-default,var(--helptext-icon-color-default)))}:host{--helptext-line-height:1.3;--helptext-content-color-default:var(--luzmo-font-color);--helptext-icon-color-default:var(--luzmo-font-color);--helptext-disabled-content-color:var(--luzmo-font-color-disabled)}:host([variant=neutral]){--helptext-content-color-default:var(--luzmo-font-color);--helptext-icon-color-default:var(--luzmo-font-color)}:host([variant=negative]){--helptext-content-color-default:var(--luzmo-negative-color);--helptext-icon-color-default:var(--luzmo-negative-color)}:host([disabled]){--helptext-content-color-default:var(--luzmo-font-color-disabled);--helptext-icon-color-default:var(--luzmo-font-color-disabled)}:host(:lang(ja)),:host(:lang(zh)),:host(:lang(ko)){--helptext-line-height-cjk:1.4}:host([size=s]){--helptext-min-height:24px;--helptext-icon-size:16px;--helptext-font-size:12px;--helptext-text-to-visual:7px;--helptext-top-to-workflow-icon:4px;--helptext-top-to-text:4px;--helptext-bottom-to-text:5px}:host{--helptext-min-height:24px;--helptext-icon-size:18px;--helptext-font-size:12px;--helptext-text-to-visual:7px;--helptext-top-to-workflow-icon:3px;--helptext-top-to-text:4px;--helptext-bottom-to-text:5px}:host([size=l]){--helptext-min-height:32px;--helptext-icon-size:20px;--helptext-font-size:14px;--helptext-text-to-visual:8px;--helptext-top-to-workflow-icon:6px;--helptext-top-to-text:6px;--helptext-bottom-to-text:5px}:host([size=xl]){--helptext-min-height:40px;--helptext-icon-size:22px;--helptext-font-size:16px;--helptext-text-to-visual:9px;--helptext-top-to-workflow-icon:9px;--helptext-top-to-text:9px;--helptext-bottom-to-text:12px}`,d=class extends r(a,{noDefaultSize:!0}){constructor(...e){super(...e),this.icon=!1,this.variant=`neutral`}static get styles(){return[n(u)]}render(){return e`
3
3
  ${this.variant===`negative`&&this.icon?e` ${c(s)} `:t}
4
4
  <div class="text"><slot></slot></div>
5
5
  `}};i([o({type:Boolean,reflect:!0})],d.prototype,`icon`,void 0),i([o({reflect:!0})],d.prototype,`variant`,void 0),customElements.get(`luzmo-text-field`)||customElements.define(`luzmo-text-field`,l),customElements.get(`luzmo-help-text`)||customElements.define(`luzmo-help-text`,d);export{d as t};
@@ -1,5 +1,5 @@
1
1
 
2
- import{c as e,i as t,o as n,y as r}from"./lit-DWANyjiY.js";import{a as i,c as a,g as o,i as s,l as c,v as l,y as u}from"./lucero-runtime-DMlHjBe_.js";import{t as d}from"./luzmoCheckHeavy-JAzxJeXk.js";import{t as f}from"./luzmoAlert-lLzK3UPQ.js";import{t as p}from"./luzmo-icon-markup-DaKoHMY8.js";import{n as m,r as h,t as g}from"./directive-Du_3lDov.js";import{i as _,r as v}from"./directive-helpers-DM8VtBpR.js";import{t as y}from"./manage-help-text-DO3PkWgh.js";import{t as b}from"./text-field.module-ClDE7laI.js";var x=g(class extends m{constructor(e){if(super(e),e.type!==h.PROPERTY&&e.type!==h.ATTRIBUTE&&e.type!==h.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!_(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[r]){if(r===n||r===t)return r;let i=e.element,a=e.name;if(e.type===h.PROPERTY){if(r===i[a])return n}else if(e.type===h.BOOLEAN_ATTRIBUTE){if(!!r===i.hasAttribute(a))return n}else if(e.type===h.ATTRIBUTE&&i.getAttribute(a)===r+``)return n;return v(e),r}}),S=[`text`,`url`,`tel`,`email`,`password`],C=class extends y(a(i,{noDefaultSize:!0})){constructor(...e){super(...e),this.allowedKeys=``,this.focused=!1,this.invalid=!1,this.label=``,this.placeholder=``,this._type=`text`,this.grows=!1,this.maxlength=-1,this.minlength=-1,this.multiline=!1,this.readonly=!1,this.rows=-1,this.maxRows=-1,this.valid=!1,this.hideValidationIcons=!1,this._value=``,this.quiet=!1,this.required=!1}static get styles(){return[r(b)]}applyFocusElementLabel(e){this.appliedLabel=e}set type(e){let t=this._type;this._type=e,this.requestUpdate(`type`,t)}get type(){return S.find(e=>e===this._type)??`text`}set value(e){if(e===this.value)return;let t=this._value;this._value=e,this.requestUpdate(`value`,t)}get value(){return this._value}get focusElement(){return this.inputElement}setSelectionRange(e,t,n=`none`){this.inputElement.setSelectionRange(e,t,n)}select(){this.inputElement.select()}handleInput(e){if(this.allowedKeys&&this.inputElement.value&&!RegExp(`^[${this.allowedKeys}]*$`,`u`).test(this.inputElement.value)){let e=this.inputElement.selectionStart-1;this.inputElement.value=this.value.toString(),this.inputElement.setSelectionRange(e,e)}else this.value=this.inputElement.value}handleChange(){this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}onFocus(){this.focused=!this.readonly&&!0}onBlur(e){this.focused=!this.readonly&&!1}handleInputElementPointerdown(){}renderStateIcons(){return this.hideValidationIcons?t:this.invalid?e`
2
+ import{c as e,i as t,o as n,y as r}from"./lit-DWANyjiY.js";import{a as i,b as a,c as o,d as s,i as c,v as l,x as u}from"./lucero-runtime-BkqJ2L5f.js";import{t as d}from"./luzmoCheckHeavy-JAzxJeXk.js";import{t as f}from"./luzmoAlert-lLzK3UPQ.js";import{t as p}from"./luzmo-icon-markup-DaKoHMY8.js";import{n as m,r as h,t as g}from"./directive-Du_3lDov.js";import{i as _,r as v}from"./directive-helpers-DM8VtBpR.js";import{t as y}from"./manage-help-text-CrQxXqBH.js";import{t as b}from"./text-field.module-ClDE7laI.js";var x=g(class extends m{constructor(e){if(super(e),e.type!==h.PROPERTY&&e.type!==h.ATTRIBUTE&&e.type!==h.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!_(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[r]){if(r===n||r===t)return r;let i=e.element,a=e.name;if(e.type===h.PROPERTY){if(r===i[a])return n}else if(e.type===h.BOOLEAN_ATTRIBUTE){if(!!r===i.hasAttribute(a))return n}else if(e.type===h.ATTRIBUTE&&i.getAttribute(a)===r+``)return n;return v(e),r}}),S=[`text`,`url`,`tel`,`email`,`password`],C=class extends y(o(i,{noDefaultSize:!0})){constructor(...e){super(...e),this.allowedKeys=``,this.focused=!1,this.invalid=!1,this.label=``,this.placeholder=``,this._type=`text`,this.grows=!1,this.maxlength=-1,this.minlength=-1,this.multiline=!1,this.readonly=!1,this.rows=-1,this.maxRows=-1,this.valid=!1,this.hideValidationIcons=!1,this._value=``,this.quiet=!1,this.required=!1}static get styles(){return[r(b)]}applyFocusElementLabel(e){this.appliedLabel=e}set type(e){let t=this._type;this._type=e,this.requestUpdate(`type`,t)}get type(){return S.find(e=>e===this._type)??`text`}set value(e){if(e===this.value)return;let t=this._value;this._value=e,this.requestUpdate(`value`,t)}get value(){return this._value}get focusElement(){return this.inputElement}setSelectionRange(e,t,n=`none`){this.inputElement.setSelectionRange(e,t,n)}select(){this.inputElement.select()}handleInput(e){if(this.allowedKeys&&this.inputElement.value&&!RegExp(`^[${this.allowedKeys}]*$`,`u`).test(this.inputElement.value)){let e=this.inputElement.selectionStart-1;this.inputElement.value=this.value.toString(),this.inputElement.setSelectionRange(e,e)}else this.value=this.inputElement.value}handleChange(){this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}onFocus(){this.focused=!this.readonly&&!0}onBlur(e){this.focused=!this.readonly&&!1}handleInputElementPointerdown(){}renderStateIcons(){return this.hideValidationIcons?t:this.invalid?e`
3
3
  <div id="invalid" class="icon">${p(f)}</div>
4
4
  `:this.valid?e`
5
5
  <div id="valid" class="icon">${p(d)}</div>
@@ -10,15 +10,15 @@ import{c as e,i as t,o as n,y as r}from"./lit-DWANyjiY.js";import{a as i,c as a,
10
10
  `:t}
11
11
  <!-- @ts-ignore -->
12
12
  <textarea
13
- name=${s(this.name||void 0)}
13
+ name=${c(this.name||void 0)}
14
14
  aria-describedby=${this.helpTextId}
15
15
  aria-label=${this.label||this.appliedLabel||this.placeholder}
16
- aria-invalid=${s(this.invalid||void 0)}
16
+ aria-invalid=${c(this.invalid||void 0)}
17
17
  class="input"
18
- maxlength=${s(this.maxlength>-1?this.maxlength:void 0)}
19
- minlength=${s(this.minlength>-1?this.minlength:void 0)}
18
+ maxlength=${c(this.maxlength>-1?this.maxlength:void 0)}
19
+ minlength=${c(this.minlength>-1?this.minlength:void 0)}
20
20
  title=${this.invalid?``:t}
21
- pattern=${s(this.pattern)}
21
+ pattern=${c(this.pattern)}
22
22
  placeholder=${this.placeholder}
23
23
  .value=${this.displayValue}
24
24
  @change=${this.handleChange}
@@ -28,22 +28,22 @@ import{c as e,i as t,o as n,y as r}from"./lit-DWANyjiY.js";import{a as i,c as a,
28
28
  ?disabled=${this.disabled}
29
29
  ?required=${this.required}
30
30
  ?readonly=${this.readonly}
31
- rows=${s(this.rows>-1?this.rows:void 0)}
32
- autocomplete=${s(this.autocomplete)}
31
+ rows=${c(this.rows>-1?this.rows:void 0)}
32
+ autocomplete=${c(this.autocomplete)}
33
33
  ></textarea>
34
34
  `}get renderInput(){return e`
35
35
  <!-- @ts-ignore -->
36
36
  <input
37
- name=${s(this.name||void 0)}
37
+ name=${c(this.name||void 0)}
38
38
  type=${this.type}
39
39
  aria-describedby=${this.helpTextId}
40
40
  aria-label=${this.label||this.appliedLabel||this.placeholder}
41
- aria-invalid=${s(this.invalid||void 0)}
41
+ aria-invalid=${c(this.invalid||void 0)}
42
42
  class="input"
43
43
  title=${this.invalid?``:t}
44
- maxlength=${s(this.maxlength>-1?this.maxlength:void 0)}
45
- minlength=${s(this.minlength>-1?this.minlength:void 0)}
46
- pattern=${s(this.pattern)}
44
+ maxlength=${c(this.maxlength>-1?this.maxlength:void 0)}
45
+ minlength=${c(this.minlength>-1?this.minlength:void 0)}
46
+ pattern=${c(this.pattern)}
47
47
  placeholder=${this.placeholder}
48
48
  .value=${x(this.displayValue)}
49
49
  @change=${this.handleChange}
@@ -54,7 +54,7 @@ import{c as e,i as t,o as n,y as r}from"./lit-DWANyjiY.js";import{a as i,c as a,
54
54
  ?disabled=${this.disabled}
55
55
  ?required=${this.required}
56
56
  ?readonly=${this.readonly}
57
- autocomplete=${s(this.autocomplete)}
57
+ autocomplete=${c(this.autocomplete)}
58
58
  />
59
59
  `}renderField(){return e`
60
60
  ${this.renderStateIcons()}
@@ -62,4 +62,4 @@ import{c as e,i as t,o as n,y as r}from"./lit-DWANyjiY.js";import{a as i,c as a,
62
62
  `}render(){return e`
63
63
  <div id="text-field">${this.renderField()}</div>
64
64
  ${this.renderHelpText(this.invalid)}
65
- `}update(e){(e.has(`value`)||e.has(`required`)&&this.required)&&this.updateComplete.then(()=>{this.checkValidity()}),e.has(`maxRows`)&&(this.maxRows>=1?this.setAttribute(`max-rows`,String(this.maxRows)):this.removeAttribute(`max-rows`)),(e.has(`maxRows`)||e.has(`multiline`)||e.has(`grows`)||e.has(`size`)||e.has(`value`)&&this.multiline&&this.grows&&this.maxRows>=1)&&requestAnimationFrame(()=>{this.recalculateMaxHeight()}),super.update(e)}firstUpdated(e){super.firstUpdated(e),this.updateComplete.then(()=>{requestAnimationFrame(()=>{this.recalculateMaxHeight()})})}recalculateMaxHeight(){let e=this.calculateMaxHeight();this.calculatedMaxHeight!==e&&(this.calculatedMaxHeight=e)}checkValidity(){let e=this.inputElement.checkValidity();return(this.required||this.value&&this.pattern)&&(this.disabled||this.multiline)&&this.pattern&&(e=RegExp(`^${this.pattern}$`,`u`).test(this.value.toString())),this.minlength>-1&&this.value.toString().length>0&&(e&&=this.value.toString().length>=this.minlength),(this.required||this.pattern||this.minlength>-1)&&(!this.required&&this.value.toString().length===0?(this.valid=!1,this.invalid=!1):(this.valid=e,this.invalid=!e)),e}};c([l()],C.prototype,`appliedLabel`,void 0),c([l()],C.prototype,`calculatedMaxHeight`,void 0),c([u({attribute:`allowed-keys`})],C.prototype,`allowedKeys`,void 0),c([u({type:Boolean,reflect:!0})],C.prototype,`focused`,void 0),c([o(`.input:not(#sizer)`)],C.prototype,`inputElement`,void 0),c([o(`#sizer`)],C.prototype,`sizerElement`,void 0),c([u({type:Boolean,reflect:!0})],C.prototype,`invalid`,void 0),c([u()],C.prototype,`label`,void 0),c([u({type:String,reflect:!0})],C.prototype,`name`,void 0),c([u()],C.prototype,`placeholder`,void 0),c([l()],C.prototype,`type`,null),c([u({attribute:`type`,reflect:!0})],C.prototype,`_type`,void 0),c([u()],C.prototype,`pattern`,void 0),c([u({type:Boolean,reflect:!0})],C.prototype,`grows`,void 0),c([u({type:Number})],C.prototype,`maxlength`,void 0),c([u({type:Number})],C.prototype,`minlength`,void 0),c([u({type:Boolean,reflect:!0})],C.prototype,`multiline`,void 0),c([u({type:Boolean,reflect:!0})],C.prototype,`readonly`,void 0),c([u({type:Number})],C.prototype,`rows`,void 0),c([u({type:Number,attribute:`max-rows`})],C.prototype,`maxRows`,void 0),c([u({type:Boolean,reflect:!0})],C.prototype,`valid`,void 0),c([u({type:Boolean,reflect:!0,attribute:`hide-validation-icons`})],C.prototype,`hideValidationIcons`,void 0),c([u({type:String})],C.prototype,`value`,null),c([u({type:Boolean,reflect:!0})],C.prototype,`quiet`,void 0),c([u({type:Boolean,reflect:!0})],C.prototype,`required`,void 0),c([u({type:String,reflect:!0})],C.prototype,`autocomplete`,void 0);var w=class extends C{constructor(...e){super(...e),this._value=``}set value(e){if(e===this.value)return;let t=this._value;this._value=e,this.requestUpdate(`value`,t)}get value(){return this._value}};c([u({type:String})],w.prototype,`value`,null);export{C as n,w as t};
65
+ `}update(e){(e.has(`value`)||e.has(`required`)&&this.required)&&this.updateComplete.then(()=>{this.checkValidity()}),e.has(`maxRows`)&&(this.maxRows>=1?this.setAttribute(`max-rows`,String(this.maxRows)):this.removeAttribute(`max-rows`)),(e.has(`maxRows`)||e.has(`multiline`)||e.has(`grows`)||e.has(`size`)||e.has(`value`)&&this.multiline&&this.grows&&this.maxRows>=1)&&requestAnimationFrame(()=>{this.recalculateMaxHeight()}),super.update(e)}firstUpdated(e){super.firstUpdated(e),this.updateComplete.then(()=>{requestAnimationFrame(()=>{this.recalculateMaxHeight()})})}recalculateMaxHeight(){let e=this.calculateMaxHeight();this.calculatedMaxHeight!==e&&(this.calculatedMaxHeight=e)}checkValidity(){let e=this.inputElement.checkValidity();return(this.required||this.value&&this.pattern)&&(this.disabled||this.multiline)&&this.pattern&&(e=RegExp(`^${this.pattern}$`,`u`).test(this.value.toString())),this.minlength>-1&&this.value.toString().length>0&&(e&&=this.value.toString().length>=this.minlength),(this.required||this.pattern||this.minlength>-1)&&(!this.required&&this.value.toString().length===0?(this.valid=!1,this.invalid=!1):(this.valid=e,this.invalid=!e)),e}};s([a()],C.prototype,`appliedLabel`,void 0),s([a()],C.prototype,`calculatedMaxHeight`,void 0),s([u({attribute:`allowed-keys`})],C.prototype,`allowedKeys`,void 0),s([u({type:Boolean,reflect:!0})],C.prototype,`focused`,void 0),s([l(`.input:not(#sizer)`)],C.prototype,`inputElement`,void 0),s([l(`#sizer`)],C.prototype,`sizerElement`,void 0),s([u({type:Boolean,reflect:!0})],C.prototype,`invalid`,void 0),s([u()],C.prototype,`label`,void 0),s([u({type:String,reflect:!0})],C.prototype,`name`,void 0),s([u()],C.prototype,`placeholder`,void 0),s([a()],C.prototype,`type`,null),s([u({attribute:`type`,reflect:!0})],C.prototype,`_type`,void 0),s([u()],C.prototype,`pattern`,void 0),s([u({type:Boolean,reflect:!0})],C.prototype,`grows`,void 0),s([u({type:Number})],C.prototype,`maxlength`,void 0),s([u({type:Number})],C.prototype,`minlength`,void 0),s([u({type:Boolean,reflect:!0})],C.prototype,`multiline`,void 0),s([u({type:Boolean,reflect:!0})],C.prototype,`readonly`,void 0),s([u({type:Number})],C.prototype,`rows`,void 0),s([u({type:Number,attribute:`max-rows`})],C.prototype,`maxRows`,void 0),s([u({type:Boolean,reflect:!0})],C.prototype,`valid`,void 0),s([u({type:Boolean,reflect:!0,attribute:`hide-validation-icons`})],C.prototype,`hideValidationIcons`,void 0),s([u({type:String})],C.prototype,`value`,null),s([u({type:Boolean,reflect:!0})],C.prototype,`quiet`,void 0),s([u({type:Boolean,reflect:!0})],C.prototype,`required`,void 0),s([u({type:String,reflect:!0})],C.prototype,`autocomplete`,void 0);var w=class extends C{constructor(...e){super(...e),this._value=``}set value(e){if(e===this.value)return;let t=this._value;this._value=e,this.requestUpdate(`value`,t)}get value(){return this._value}};s([u({type:String})],w.prototype,`value`,null);export{C as n,w as t};
@@ -0,0 +1,41 @@
1
+
2
+ import"../tokens.js";import{c as e,y as t}from"./lit-DWANyjiY.js";import{c as n,d as r,f as i,i as a,v as o,x as s}from"./lucero-runtime-BkqJ2L5f.js";import{t as c}from"./dependency-manger-BPrqqTnJ.js";import{t as l}from"./focusable-selectors-D5e0OxNL.js";var u=`#tooltip{pointer-events:none;visibility:hidden;opacity:0;transition:transform .13s ease-in-out,opacity .13s ease-in-out,visibility 0s linear .13s;transition:transform var(--luzmo-overlay-animation-duration,.13s) ease-in-out, opacity var(--luzmo-overlay-animation-duration,.13s) ease-in-out, visibility 0s linear var(--luzmo-overlay-animation-duration,.13s)}:host([open]) #tooltip{pointer-events:auto;visibility:visible;opacity:1;transition-delay:0s;transition-delay:var(--luzmo-overlay-animation-duration-opened,0s)}@media (forced-colors:active){#tooltip{border:1px solid #0000}#tip{--highcontrast-tooltip-background-color-default:CanvasText;--highcontrast-tooltip-background-color-informative:CanvasText;--highcontrast-tooltip-background-color-positive:CanvasText;--highcontrast-tooltip-background-color-negative:CanvasText;forced-color-adjust:none}}#tooltip{box-sizing:border-box;vertical-align:top;inline-size:auto;padding-inline:var(--luzmo-tooltip-spacing-inline,.688rem);border-radius:var(--luzmo-tooltip-border-radius,.313rem);block-size:auto;min-block-size:var(--luzmo-tooltip-height,1.875rem);max-inline-size:var(--luzmo-tooltip-max-inline-size,12.5rem);background-color:var(--highcontrast-tooltip-background-color-default,var(--luzmo-tooltip-background-color-default,#6d6d6d));color:var(--luzmo-tooltip-content-color,white);font-size:var(--luzmo-tooltip-font-size,var(--tooltip-font-size,.938rem));font-weight:var(--luzmo-tooltip-font-weight,400);line-height:var(--luzmo-tooltip-line-height,1.3);word-break:break-word;-webkit-font-smoothing:antialiased;cursor:default;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;display:inline-flex;position:relative}:host(:lang(ja)) #tooltip,:host(:lang(ko)) #tooltip,:host(:lang(zh)) #tooltip{line-height:var(--luzmo-tooltip-cjk-line-height,1.5)}#tooltip p{margin:0}:host([variant=info]) #tooltip{background-color:var(--highcontrast-tooltip-background-color-informative,var(--luzmo-tooltip-background-color-informative,#0265dc))}:host([variant=positive]) #tooltip{background-color:var(--highcontrast-tooltip-background-color-positive,var(--luzmo-tooltip-background-color-positive,#007a4d))}:host([variant=negative]) #tooltip{background-color:var(--highcontrast-tooltip-background-color-negative,var(--luzmo-tooltip-background-color-negative,#d31510))}#tip{block-size:var(--luzmo-tooltip-tip-square-size,.625rem);inline-size:var(--luzmo-tooltip-tip-square-size,.625rem);background-color:var(--highcontrast-tooltip-background-color-default,var(--luzmo-tooltip-background-color-default,#6d6d6d));clip-path:polygon(0 calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)), 50% var(--luzmo-tooltip-tip-height-percentage,50%), 100% calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)));inset-block-start:100%;position:absolute;left:50%;transform:translate(-50%)}:host([variant=info]) #tooltip #tip{background-color:var(--highcontrast-tooltip-background-color-informative,var(--luzmo-tooltip-background-color-informative,#0265dc))}:host([variant=positive]) #tooltip #tip{background-color:var(--highcontrast-tooltip-background-color-positive,var(--luzmo-tooltip-background-color-positive,#007a4d))}:host([variant=negative]) #tooltip #tip{background-color:var(--highcontrast-tooltip-background-color-negative,var(--luzmo-tooltip-background-color-negative,#d31510))}:host([placement*=top]) #tooltip #tip,.luzmo-Tooltip--top-end #tip,.luzmo-Tooltip--top-left #tip,.luzmo-Tooltip--top-right #tip,.luzmo-Tooltip--top-start #tip{inset-block-start:100%}:host([placement*=bottom]) #tooltip #tip,.luzmo-Tooltip--bottom-end #tip,.luzmo-Tooltip--bottom-left #tip,.luzmo-Tooltip--bottom-right #tip,.luzmo-Tooltip--bottom-start #tip{clip-path:polygon(50% calc(100% - var(--luzmo-tooltip-tip-height-percentage,50%)), 0 calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)), 100% calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)));inset-block:auto 100%}.luzmo-Tooltip--bottom-end #tip,.luzmo-Tooltip--bottom-left #tip,.luzmo-Tooltip--bottom-right #tip,.luzmo-Tooltip--bottom-start #tip,.luzmo-Tooltip--top-end #tip,.luzmo-Tooltip--top-left #tip,.luzmo-Tooltip--top-right #tip,.luzmo-Tooltip--top-start #tip{transform:none}.luzmo-Tooltip--bottom-left #tip,.luzmo-Tooltip--top-left #tip{inset-inline-start:var(--luzmo-tooltip-pointer-corner-spacing,.313rem)}.luzmo-Tooltip--bottom-right #tip,.luzmo-Tooltip--top-right #tip{inset-inline:auto var(--luzmo-tooltip-pointer-corner-spacing,.313rem)}.luzmo-Tooltip--bottom-start #tip,.luzmo-Tooltip--top-start #tip{inset-inline:var(--luzmo-tooltip-pointer-corner-spacing,.313rem) auto}:host([dir=rtl]) .luzmo-Tooltip--bottom-start #tip,:host([dir=rtl]) .luzmo-Tooltip--top-start #tip{right:var(--luzmo-tooltip-pointer-corner-spacing,.313rem);left:auto}.luzmo-Tooltip--bottom-start #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:var(--luzmo-tooltip-pointer-corner-spacing,.313rem);left:auto}.luzmo-Tooltip--top-start #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){right:var(--luzmo-tooltip-pointer-corner-spacing,.313rem);left:auto}.luzmo-Tooltip--bottom-end #tip,.luzmo-Tooltip--top-end #tip{inset-inline:auto var(--luzmo-tooltip-pointer-corner-spacing,.313rem)}:host([dir=rtl]) .luzmo-Tooltip--bottom-end #tip,:host([dir=rtl]) .luzmo-Tooltip--top-end #tip{left:var(--luzmo-tooltip-pointer-corner-spacing,.313rem);right:auto}.luzmo-Tooltip--bottom-end #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:var(--luzmo-tooltip-pointer-corner-spacing,.313rem);right:auto}.luzmo-Tooltip--top-end #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){left:var(--luzmo-tooltip-pointer-corner-spacing,.313rem);right:auto}.luzmo-Tooltip--end #tip,.luzmo-Tooltip--end-bottom #tip,.luzmo-Tooltip--end-top #tip,:host([placement*=left]) #tooltip #tip,.luzmo-Tooltip--left-bottom #tip,.luzmo-Tooltip--left-top #tip,:host([placement*=right]) #tooltip #tip,.luzmo-Tooltip--right-bottom #tip,.luzmo-Tooltip--right-top #tip,.luzmo-Tooltip--start #tip,.luzmo-Tooltip--start-bottom #tip,.luzmo-Tooltip--start-top #tip{inset-block-start:50%;transform:translateY(-50%)}.luzmo-Tooltip--end-bottom #tip,.luzmo-Tooltip--end-top #tip,.luzmo-Tooltip--left-bottom #tip,.luzmo-Tooltip--left-top #tip,.luzmo-Tooltip--right-bottom #tip,.luzmo-Tooltip--right-top #tip,.luzmo-Tooltip--start-bottom #tip,.luzmo-Tooltip--start-top #tip{inset-block-start:auto;transform:none}.luzmo-Tooltip--end #tip,.luzmo-Tooltip--end-bottom #tip,.luzmo-Tooltip--end-top #tip,:host([placement*=right]) #tooltip #tip,.luzmo-Tooltip--right-bottom #tip,.luzmo-Tooltip--right-top #tip{clip-path:polygon(calc(100% - var(--luzmo-tooltip-tip-height-percentage,50%)) 50%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0);inset-inline:auto 100%}:host([placement*=left]) #tooltip #tip,.luzmo-Tooltip--left-bottom #tip,.luzmo-Tooltip--left-top #tip,.luzmo-Tooltip--start #tip,.luzmo-Tooltip--start-bottom #tip,.luzmo-Tooltip--start-top #tip{clip-path:polygon(calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0, calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, var(--luzmo-tooltip-tip-height-percentage,50%) 50%);inset-inline-start:100%}.luzmo-Tooltip--end-top #tip,.luzmo-Tooltip--left-top #tip,.luzmo-Tooltip--right-top #tip,.luzmo-Tooltip--start-top #tip{inset-block-start:var(--luzmo-tooltip-pointer-corner-spacing,.313rem)}.luzmo-Tooltip--end-bottom #tip,.luzmo-Tooltip--left-bottom #tip,.luzmo-Tooltip--right-bottom #tip,.luzmo-Tooltip--start-bottom #tip{inset-block-end:var(--luzmo-tooltip-pointer-corner-spacing,.313rem)}:host([dir=rtl]) .luzmo-Tooltip--end #tip,:host([dir=rtl]) .luzmo-Tooltip--end-bottom #tip,:host([dir=rtl]) .luzmo-Tooltip--end-top #tip,:host([dir=rtl][placement*=left]) #tooltip #tip,:host([dir=rtl]) .luzmo-Tooltip--left-bottom #tip,:host([dir=rtl]) .luzmo-Tooltip--left-top #tip{clip-path:polygon(calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0, calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, var(--luzmo-tooltip-tip-height-percentage,50%) 50%);left:100%;right:auto}.luzmo-Tooltip--end #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0, calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, var(--luzmo-tooltip-tip-height-percentage,50%) 50%);left:100%;right:auto}.luzmo-Tooltip--end-bottom #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0, calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, var(--luzmo-tooltip-tip-height-percentage,50%) 50%);left:100%;right:auto}.luzmo-Tooltip--end-top #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0, calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, var(--luzmo-tooltip-tip-height-percentage,50%) 50%);left:100%;right:auto}:host([placement*=left]) #tooltip #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0, calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, var(--luzmo-tooltip-tip-height-percentage,50%) 50%);left:100%;right:auto}.luzmo-Tooltip--left-bottom #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0, calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, var(--luzmo-tooltip-tip-height-percentage,50%) 50%);left:100%;right:auto}.luzmo-Tooltip--left-top #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0, calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, var(--luzmo-tooltip-tip-height-percentage,50%) 50%);left:100%;right:auto}:host([dir=rtl][placement*=right]) #tooltip #tip,:host([dir=rtl]) .luzmo-Tooltip--right-bottom #tip,:host([dir=rtl]) .luzmo-Tooltip--right-top #tip,:host([dir=rtl]) .luzmo-Tooltip--start #tip,:host([dir=rtl]) .luzmo-Tooltip--start-bottom #tip,:host([dir=rtl]) .luzmo-Tooltip--start-top #tip{clip-path:polygon(var(--luzmo-tooltip-tip-height-percentage,50%) 50%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0);left:auto;right:100%}:host([placement*=right]) #tooltip #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(var(--luzmo-tooltip-tip-height-percentage,50%) 50%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0);left:auto;right:100%}.luzmo-Tooltip--right-bottom #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(var(--luzmo-tooltip-tip-height-percentage,50%) 50%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0);left:auto;right:100%}.luzmo-Tooltip--right-top #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(var(--luzmo-tooltip-tip-height-percentage,50%) 50%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0);left:auto;right:100%}.luzmo-Tooltip--start #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(var(--luzmo-tooltip-tip-height-percentage,50%) 50%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0);left:auto;right:100%}.luzmo-Tooltip--start-bottom #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(var(--luzmo-tooltip-tip-height-percentage,50%) 50%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0);left:auto;right:100%}.luzmo-Tooltip--start-top #tip:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)){clip-path:polygon(var(--luzmo-tooltip-tip-height-percentage,50%) 50%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 100%, calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset,.5px)) 0);left:auto;right:100%}::slotted([slot=icon]){inline-size:var(--luzmo-tooltip-icon-width,1.125rem);block-size:var(--luzmo-tooltip-icon-height,1.125rem);flex-shrink:0;align-self:flex-start;margin-block-start:var(--luzmo-tooltip-icon-spacing-block-start,.313rem);margin-inline-start:calc(var(--luzmo-tooltip-icon-spacing-inline-start,.563rem) - var(--luzmo-tooltip-spacing-inline,.688rem));margin-inline-end:var(--luzmo-tooltip-icon-spacing-inline-end,.563rem)}#label{line-height:var(--luzmo-tooltip-line-height,1.3);margin-block-start:var(--luzmo-tooltip-spacing-block-start,.313rem);margin-block-end:var(--luzmo-tooltip-spacing-block-end,.375rem)}#tooltip,:host([placement*=top]) #tooltip,.luzmo-Tooltip--top-end,.luzmo-Tooltip--top-left,.luzmo-Tooltip--top-right,.luzmo-Tooltip--top-start{margin-block-end:calc(var(--luzmo-tooltip-tip-block-size,.313rem) + var(--luzmo-tooltip-margin,0rem))}:host([open]) .luzmo-Tooltip--top-end,:host([open]) .luzmo-Tooltip--top-left,:host([open]) .luzmo-Tooltip--top-right,:host([open]) .luzmo-Tooltip--top-start,:host([placement*=top][open]) #tooltip,:host([open]) #tooltip{transform:translateY(calc(var(--luzmo-tooltip-animation-distance,.313rem) * -1))}:host([placement*=bottom]) #tooltip,.luzmo-Tooltip--bottom-end,.luzmo-Tooltip--bottom-left,.luzmo-Tooltip--bottom-right,.luzmo-Tooltip--bottom-start{margin-block-start:calc(var(--luzmo-tooltip-tip-block-size,.313rem) + var(--luzmo-tooltip-margin,0rem))}:host([open]) .luzmo-Tooltip--bottom-end,:host([open]) .luzmo-Tooltip--bottom-left,:host([open]) .luzmo-Tooltip--bottom-right,:host([open]) .luzmo-Tooltip--bottom-start,:host([placement*=bottom][open]) #tooltip{transform:translateY(var(--luzmo-tooltip-animation-distance,.313rem))}:host([placement*=right]) #tooltip,.luzmo-Tooltip--right-bottom,.luzmo-Tooltip--right-top{margin-left:calc(var(--luzmo-tooltip-tip-block-size,.313rem) + var(--luzmo-tooltip-margin,0rem))}:host([open]) .luzmo-Tooltip--right-bottom,:host([open]) .luzmo-Tooltip--right-top,:host([placement*=right][open]) #tooltip{transform:translateX(var(--luzmo-tooltip-animation-distance,.313rem))}:host([placement*=left]) #tooltip,.luzmo-Tooltip--left-bottom,.luzmo-Tooltip--left-top{margin-right:calc(var(--luzmo-tooltip-tip-block-size,.313rem) + var(--luzmo-tooltip-margin,0rem))}:host([open]) .luzmo-Tooltip--left-bottom,:host([open]) .luzmo-Tooltip--left-top,:host([placement*=left][open]) #tooltip{transform:translateX(calc(var(--luzmo-tooltip-animation-distance,.313rem) * -1))}.luzmo-Tooltip--start,.luzmo-Tooltip--start-bottom,.luzmo-Tooltip--start-top{margin-inline-end:calc(var(--luzmo-tooltip-tip-block-size,.313rem) + var(--luzmo-tooltip-margin,0rem))}:host([open]) .luzmo-Tooltip--start-bottom,:host([open]) .luzmo-Tooltip--start-top,:host([open]) .luzmo-Tooltip--start{transform:translateX(calc(var(--luzmo-tooltip-animation-distance,.313rem) * -1))}:is(:host([open]) .luzmo-Tooltip--start-bottom:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),:host([open]) .luzmo-Tooltip--start-top:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),:host([open]) .luzmo-Tooltip--start:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),:host([dir=rtl][open]) .luzmo-Tooltip--start-bottom,:host([dir=rtl][open]) .luzmo-Tooltip--start-top,:host([dir=rtl][open]) .luzmo-Tooltip--start){transform:translateX(var(--luzmo-tooltip-animation-distance,.313rem))}.luzmo-Tooltip--end,.luzmo-Tooltip--end-bottom,.luzmo-Tooltip--end-top{margin-inline-start:calc(var(--luzmo-tooltip-tip-block-size,.313rem) + var(--luzmo-tooltip-margin,0rem))}:host([open]) .luzmo-Tooltip--end-bottom,:host([open]) .luzmo-Tooltip--end-top,:host([open]) .luzmo-Tooltip--end{transform:translateX(var(--luzmo-tooltip-animation-distance,.313rem))}:is(:host([open]) .luzmo-Tooltip--end-bottom:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),:host([open]) .luzmo-Tooltip--end-top:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),:host([open]) .luzmo-Tooltip--end:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)),:host([dir=rtl][open]) .luzmo-Tooltip--end-bottom,:host([dir=rtl][open]) .luzmo-Tooltip--end-top,:host([dir=rtl][open]) .luzmo-Tooltip--end){transform:translateX(calc(var(--luzmo-tooltip-animation-distance,.313rem) * -1))}:host{--luzmo-tooltip-background-color-default:#000;--tooltip-font-size:var(--luzmo-font-size);font-family:var(--luzmo-tooltip-font-family,var(--luzmo-font-family))}:host([size=s]){--tooltip-font-size:var(--luzmo-font-size-s)}:host([size=m]){--tooltip-font-size:var(--luzmo-font-size-m)}:host([size=l]){--tooltip-font-size:var(--luzmo-font-size-l)}:host([size=xl]){--tooltip-font-size:var(--luzmo-font-size-xl)}:host{white-space:initial;display:contents}#tooltip{inline-size:max-content}#tip{clip-path:polygon(0 -5%,50% 50%,100% -5%);width:.625rem!important;height:.625rem!important}#tip[style]{transform:none!important}:host(:not([placement*=top])) #tooltip{margin-bottom:0}:host([placement*=top]) #tooltip #tip{inset-block-start:100%}:host([placement*=bottom]) #tooltip #tip{clip-path:polygon(50% 50%,0 105%,100% 105%);inset-block-end:100%;top:auto}:host([placement*=left]) #tooltip #tip,:host([placement*=right]) #tooltip #tip{inset-block-start:50%;transform:translateY(-50%)}:host([placement*=right]) #tooltip #tip{clip-path:polygon(50% 50%,105% 100%,105% 0);inset-inline:calc(var(--luzmo-tooltip-tip-block-size,.313rem) * -2) 100%}:host([placement*=left]) #tooltip #tip{clip-path:polygon(-5% 0,-5% 100%,50% 50%);inset-inline-start:100%}luzmo-overlay:not(:defined){display:none}`,d=class extends HTMLElement{constructor(){super(),this._open=!1,this._placement=`top`,this.addEventListener(`luzmo-opened`,this.redispatchEvent),this.addEventListener(`luzmo-closed`,this.redispatchEvent)}redispatchEvent(e){e.stopPropagation(),this.tooltip.dispatchEvent(new CustomEvent(e.type,{bubbles:e.bubbles,composed:e.composed,detail:e.detail}))}get tooltip(){return this.getRootNode().host}static get observedAttributes(){return[`open`,`placement`]}attributeChangedCallback(e,t,n){switch(e){
3
+ /* c8 ignore next 3 */
4
+ case`open`:this.open=n!==null;break;case`placement`:this.placement=n}}set open(e){this._open=e;let{tooltip:t}=this;
5
+ /* c8 ignore next 3 */
6
+ t&&(t.open=e)}
7
+ /* c8 ignore next 3 */
8
+ get open(){return this._open}set placement(e){this._placement=e;let{tooltip:t}=this;t&&(t.placement=e)}
9
+ /* c8 ignore next 3 */
10
+ get placement(){return this._placement}get tipElement(){return this.tooltip.tipElement}};customElements.get(`luzmo-tooltip-openable`)||customElements.define(`luzmo-tooltip-openable`,d);var f=class extends n(i,{defaultSize:`s`}){constructor(...e){super(...e),this.delayed=!1,this.dependencyManager=new c(this),this.disabled=!1,this.showOnlyIfTruncated=!1,this.selfManaged=!1,this.offset=0,this._open=!1,this._variant=``,this.handleOpenOverlay=()=>{this.open=!0},this.handleCloseOverlay=()=>{this.open=!1},this._overlayDependencyRegistered=!1,this._triggerElement=null}static get styles(){return[t(u)]}get open(){return this._open}set open(e){e&&this.showOnlyIfTruncated&&!this.isContentTruncated()||(this._open=e)}get variant(){return this._variant}set variant(e){e!==this.variant&&([`info`,`positive`,`negative`].includes(e)?(this.setAttribute(`variant`,e),this._variant=e):(this.removeAttribute(`variant`),this._variant=``))}isContentTruncated(){let e=this.triggerElement;if(!e)return!1;if(this.truncatedElementSelector){let t=e.querySelector(this.truncatedElementSelector);if(t)return t.scrollWidth>t.clientWidth}return e.scrollWidth>e.clientWidth}forwardTransitionEvent(e){this.dispatchEvent(new TransitionEvent(e.type,{bubbles:!0,composed:!0,propertyName:e.propertyName}))}ensureOverlayDependency(){this._overlayDependencyRegistered||(this._overlayDependencyRegistered=!0,this.dependencyManager.add(`luzmo-overlay`),import(`../overlay.js`))}willUpdate(e){super.willUpdate(e),e.has(`selfManaged`)&&this.selfManaged&&this.ensureOverlayDependency()}set triggerElement(e){this._triggerElement=e,this.overlayElement&&(this.overlayElement.triggerElement=e)}get triggerElement(){return this._triggerElement||this.resolveSelfManagedTriggerElement()}resolveSelfManagedTriggerElement(){let e=this.assignedSlot||this,t=e.getRootNode();if(t===document)return null;let n=e.parentElement||t.host||
11
+ /* c8 ignore next 1 */
12
+ t,r=0;for(;!n?.matches?.(l);){if(!n.isConnected)return null;let i=n;if(e=n.assignedSlot||n,t=e.getRootNode(),t===document||(n=e.parentElement||t.host||
13
+ /* c8 ignore next 1 */
14
+ t,n===i||++r>1e3))return null}return n}render(){let t=e`
15
+ <luzmo-tooltip-openable
16
+ id="tooltip"
17
+ placement=${a(this.placement)}
18
+ @transitionrun=${this.forwardTransitionEvent}
19
+ @transitionend=${this.forwardTransitionEvent}
20
+ @transitioncancel=${this.forwardTransitionEvent}
21
+ >
22
+ <slot name="icon"></slot>
23
+ <span id="label"><slot></slot></span>
24
+ <span id="tip" aria-hidden="true"></span>
25
+ </luzmo-tooltip-openable>
26
+ `;return this.selfManaged?e`
27
+ <luzmo-overlay
28
+ ?open=${this.open&&!this.disabled&&this.dependencyManager.loaded}
29
+ ?delayed=${this.delayed}
30
+ ?disabled=${this.disabled}
31
+ offset=${this.offset}
32
+ .placement=${this.placement}
33
+ type="hint"
34
+ .tipPadding=${this.tipPadding}
35
+ .triggerInteraction=${`hover`}
36
+ @luzmo-opened=${this.handleOpenOverlay}
37
+ @luzmo-closed=${this.handleCloseOverlay}
38
+ >
39
+ ${t}
40
+ </luzmo-overlay>
41
+ `:t}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{if(!this.selfManaged||!this.isConnected)return;let e=this.overlayElement;e&&(e.triggerElement=this.triggerElement)})}disconnectedCallback(){this._triggerElement=null,super.disconnectedCallback()}};r([s({type:Boolean})],f.prototype,`delayed`,void 0),r([s({type:Boolean})],f.prototype,`disabled`,void 0),r([s({type:Boolean,attribute:`show-only-if-truncated`})],f.prototype,`showOnlyIfTruncated`,void 0),r([s({type:String,attribute:`truncated-element-selector`})],f.prototype,`truncatedElementSelector`,void 0),r([s({type:Boolean,attribute:`self-managed`})],f.prototype,`selfManaged`,void 0),r([s({type:Number})],f.prototype,`offset`,void 0),r([s({type:Boolean,reflect:!0})],f.prototype,`open`,null),r([o(`luzmo-overlay`)],f.prototype,`overlayElement`,void 0),r([s({reflect:!0})],f.prototype,`placement`,void 0),r([o(`#tip`)],f.prototype,`tipElement`,void 0),r([s({type:Number})],f.prototype,`tipPadding`,void 0),r([s({type:String})],f.prototype,`variant`,null),customElements.get(`luzmo-tooltip`)||customElements.define(`luzmo-tooltip`,f);export{f as t};
@@ -17,4 +17,4 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";import{t as e}from"./chunks/clear-button-qIMg8hR4.js";typeof customElements<`u`&&!customElements.get(`luzmo-clear-button`)&&customElements.define(`luzmo-clear-button`,e);export{e as LuzmoClearButton};
20
+ import"./tokens.js";import{t as e}from"./chunks/clear-button-BfZbJISP.js";typeof customElements<`u`&&!customElements.get(`luzmo-clear-button`)&&customElements.define(`luzmo-clear-button`,e);export{e as LuzmoClearButton};
@@ -17,4 +17,4 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";export{t as LuzmoCloseButton}from"./chunks/close-button-DEiL5kEh.js";
20
+ import"./tokens.js";export{t as LuzmoCloseButton}from"./chunks/close-button-DdAb7Vyz.js";
@@ -17,4 +17,4 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";export{t as LuzmoColorArea}from"./chunks/color-area-D-AVcZza.js";
20
+ import"./tokens.js";export{t as LuzmoColorArea}from"./chunks/color-area-DKqadIPQ.js";
@@ -17,4 +17,4 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";export{t as LuzmoColorField}from"./chunks/color-field-BKDaLJQo.js";
20
+ import"./tokens.js";export{t as LuzmoColorField}from"./chunks/color-field-DlZIotvM.js";
@@ -17,4 +17,4 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";export{t as LuzmoColorHandle}from"./chunks/color-handle-DO7dxFGx.js";
20
+ import"./tokens.js";export{t as LuzmoColorHandle}from"./chunks/color-handle-h3fYn_2h.js";
@@ -17,4 +17,4 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";export{t as LuzmoColorLoupe}from"./chunks/color-loupe-_dC69K1Z.js";
20
+ import"./tokens.js";export{t as LuzmoColorLoupe}from"./chunks/color-loupe-ceV5LQbI.js";
@@ -17,4 +17,4 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";export{t as LuzmoColorMenu}from"./chunks/color-menu-6LhE-qWn.js";
20
+ import"./tokens.js";export{t as LuzmoColorMenu}from"./chunks/color-menu-BSYeKpnw.js";
@@ -17,14 +17,14 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";import{c as e,y as t}from"./chunks/lit-DWANyjiY.js";import{c as n,g as r,i,l as a,r as o,u as s,y as c}from"./chunks/lucero-runtime-DMlHjBe_.js";import{t as l}from"./chunks/roving-tabindex-CivopiNn.js";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(s,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0}){static get styles(){return[t(u)]}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 l(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(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 e`
20
+ import"./tokens.js";import{c as e,y as t}from"./chunks/lit-DWANyjiY.js";import{c as n,d as r,f as i,i as a,r as o,v as s,x as c}from"./chunks/lucero-runtime-BkqJ2L5f.js";import{t as l}from"./chunks/roving-tabindex-CivopiNn.js";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(i,{validSizes:[`s`,`m`,`l`,`xl`],noDefaultSize:!0}){static get styles(){return[t(u)]}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 l(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(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 e`
21
21
  <div
22
22
  class="color-palette-group"
23
- aria-label=${i(this.label??void 0)}
23
+ aria-label=${a(this.label??void 0)}
24
24
  role="radiogroup"
25
25
  @keydown=${this._onKeyDown}
26
26
  @slotchange=${this.manageColorPalettes}
27
27
  >
28
28
  <slot role="presentation"></slot>
29
29
  </div>
30
- `}firstUpdated(e){super.firstUpdated(e),this.addEventListener(`click`,this._handleClick)}updated(e){super.updated(e),e.has(`horizontal`)&&this.palettes.forEach(e=>{e.horizontal=this.horizontal}),this.manageSelects(),this.manageChildren(),e.has(`size`)&&this.manageChildren(e),e.has(`label`)&&(this.label||e.get(`label`)!==void 0)&&(this.label.length>0?this.setAttribute(`aria-label`,this.label):this.removeAttribute(`aria-label`))}manageChildren(e){this.palettes.forEach(t=>{t.setAttribute(`aria-label`,`color palette: ${t.value}`),t.selected=!!(t.value&&this.selected===t.value),this.size&&(this.size!==`m`||e?.get(`size`)!==void 0)&&(t.size=this.size),this.disabled&&(t.disabled=!0),t.horizontal=this.horizontal})}};a([c({type:Boolean,reflect:!0})],d.prototype,`disabled`,void 0),a([c({type:Boolean,reflect:!0})],d.prototype,`horizontal`,void 0),a([c({type:String})],d.prototype,`label`,void 0),a([c({type:String})],d.prototype,`selected`,null),a([r(`slot`)],d.prototype,`slotElement`,void 0),customElements.get(`luzmo-color-palette-group`)||customElements.define(`luzmo-color-palette-group`,d);export{d as LuzmoColorPaletteGroup};
30
+ `}firstUpdated(e){super.firstUpdated(e),this.addEventListener(`click`,this._handleClick)}updated(e){super.updated(e),e.has(`horizontal`)&&this.palettes.forEach(e=>{e.horizontal=this.horizontal}),this.manageSelects(),this.manageChildren(),e.has(`size`)&&this.manageChildren(e),e.has(`label`)&&(this.label||e.get(`label`)!==void 0)&&(this.label.length>0?this.setAttribute(`aria-label`,this.label):this.removeAttribute(`aria-label`))}manageChildren(e){this.palettes.forEach(t=>{t.setAttribute(`aria-label`,`color palette: ${t.value}`),t.selected=!!(t.value&&this.selected===t.value),this.size&&(this.size!==`m`||e?.get(`size`)!==void 0)&&(t.size=this.size),this.disabled&&(t.disabled=!0),t.horizontal=this.horizontal})}};r([c({type:Boolean,reflect:!0})],d.prototype,`disabled`,void 0),r([c({type:Boolean,reflect:!0})],d.prototype,`horizontal`,void 0),r([c({type:String})],d.prototype,`label`,void 0),r([c({type:String})],d.prototype,`selected`,null),r([s(`slot`)],d.prototype,`slotElement`,void 0),customElements.get(`luzmo-color-palette-group`)||customElements.define(`luzmo-color-palette-group`,d);export{d as LuzmoColorPaletteGroup};
@@ -17,4 +17,4 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";import{c as e,y as t}from"./chunks/lit-DWANyjiY.js";import{a as n,c as r,l as i,y as a}from"./chunks/lucero-runtime-DMlHjBe_.js";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 r(n,{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=t(o)}get focusElement(){return this}render(){let t=this.colors?.map(t=>e`<div class="color" style="background-color: ${t}"></div>`);return e` <div id="palette">${t}</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`))}};i([a({type:Boolean,reflect:!0})],s.prototype,`disabled`,void 0),i([a({type:Boolean,reflect:!0})],s.prototype,`focused`,void 0),i([a({type:Boolean,reflect:!0})],s.prototype,`selected`,void 0),i([a({type:Boolean,reflect:!0})],s.prototype,`active`,void 0),i([a({type:String,reflect:!0})],s.prototype,`value`,void 0),i([a({type:Array,reflect:!0})],s.prototype,`colors`,void 0),i([a({type:Boolean,reflect:!0})],s.prototype,`reverse`,void 0),i([a({type:Boolean,reflect:!0})],s.prototype,`horizontal`,void 0),customElements.get(`luzmo-color-palette`)||customElements.define(`luzmo-color-palette`,s);export{s as LuzmoColorPalette};
20
+ import"./tokens.js";import{c as e,y as t}from"./chunks/lit-DWANyjiY.js";import{a as n,c as r,d as i,x as a}from"./chunks/lucero-runtime-BkqJ2L5f.js";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 r(n,{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=t(o)}get focusElement(){return this}render(){let t=this.colors?.map(t=>e`<div class="color" style="background-color: ${t}"></div>`);return e` <div id="palette">${t}</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`))}};i([a({type:Boolean,reflect:!0})],s.prototype,`disabled`,void 0),i([a({type:Boolean,reflect:!0})],s.prototype,`focused`,void 0),i([a({type:Boolean,reflect:!0})],s.prototype,`selected`,void 0),i([a({type:Boolean,reflect:!0})],s.prototype,`active`,void 0),i([a({type:String,reflect:!0})],s.prototype,`value`,void 0),i([a({type:Array,reflect:!0})],s.prototype,`colors`,void 0),i([a({type:Boolean,reflect:!0})],s.prototype,`reverse`,void 0),i([a({type:Boolean,reflect:!0})],s.prototype,`horizontal`,void 0),customElements.get(`luzmo-color-palette`)||customElements.define(`luzmo-color-palette`,s);export{s as LuzmoColorPalette};
@@ -17,7 +17,7 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";import{c as e,y as t}from"./chunks/lit-DWANyjiY.js";import{c as n,g as r,l as i,u as a,v as o,y as s}from"./chunks/lucero-runtime-DMlHjBe_.js";import"./chunks/popover-Ca-FBqiU.js";import{n as c}from"./chunks/slottable-request-event-D9FhiqH1.js";import"./chunks/overlay-CgQMEmrM.js";import"./chunks/swatch-zFOV4NtM.js";import"./chunks/color-menu-6LhE-qWn.js";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(a){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=t(l)}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!==c})}updated(e){e.has(`open`)&&this.open===!0&&(this._renderMenu=!0)}renderColorMenu(){return e`
20
+ import"./tokens.js";import{c as e,y as t}from"./chunks/lit-DWANyjiY.js";import{b as n,c as r,d as i,f as a,v as o,x as s}from"./chunks/lucero-runtime-BkqJ2L5f.js";import"./chunks/popover-Dum9nObN.js";import{n as c}from"./chunks/slottable-request-event-D9FhiqH1.js";import"./chunks/overlay-Bcwu868u.js";import"./chunks/swatch-BL10VQ4z.js";import"./chunks/color-menu-BSYeKpnw.js";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 r(a){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=t(l)}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!==c})}updated(e){e.has(`open`)&&this.open===!0&&(this._renderMenu=!0)}renderColorMenu(){return e`
21
21
  <luzmo-color-menu
22
22
  .size=${this.size}
23
23
  .color=${this.color}
@@ -47,4 +47,4 @@ import"./tokens.js";import{c as e,y as t}from"./chunks/lit-DWANyjiY.js";import{c
47
47
  ${this._renderMenu?this.renderColorMenu():e``}
48
48
  </luzmo-popover>
49
49
  </luzmo-overlay>
50
- `}};i([s({type:String,reflect:!0})],u.prototype,`color`,void 0),i([s({type:Boolean,reflect:!0})],u.prototype,`open`,void 0),i([s({type:Boolean,reflect:!0})],u.prototype,`disabled`,void 0),i([s({type:Boolean,reflect:!0,attribute:`read-only`})],u.prototype,`readOnly`,void 0),i([s({type:String,reflect:!0})],u.prototype,`placement`,void 0),i([s({type:String,reflect:!0})],u.prototype,`rounding`,void 0),i([s({type:String,reflect:!0})],u.prototype,`shape`,void 0),i([s({type:Array,reflect:!0})],u.prototype,`swatches`,void 0),i([s({type:Boolean,reflect:!0,attribute:`no-alpha-channel`})],u.prototype,`noAlphaChannel`,void 0),i([r(`luzmo-color-menu`)],u.prototype,`menuElement`,void 0),i([r(`luzmo-overlay`)],u.prototype,`overlayElement`,void 0),i([o()],u.prototype,`_renderMenu`,void 0),customElements.get(`luzmo-color-picker`)||customElements.define(`luzmo-color-picker`,u);export{u as LuzmoColorPicker};
50
+ `}};i([s({type:String,reflect:!0})],u.prototype,`color`,void 0),i([s({type:Boolean,reflect:!0})],u.prototype,`open`,void 0),i([s({type:Boolean,reflect:!0})],u.prototype,`disabled`,void 0),i([s({type:Boolean,reflect:!0,attribute:`read-only`})],u.prototype,`readOnly`,void 0),i([s({type:String,reflect:!0})],u.prototype,`placement`,void 0),i([s({type:String,reflect:!0})],u.prototype,`rounding`,void 0),i([s({type:String,reflect:!0})],u.prototype,`shape`,void 0),i([s({type:Array,reflect:!0})],u.prototype,`swatches`,void 0),i([s({type:Boolean,reflect:!0,attribute:`no-alpha-channel`})],u.prototype,`noAlphaChannel`,void 0),i([o(`luzmo-color-menu`)],u.prototype,`menuElement`,void 0),i([o(`luzmo-overlay`)],u.prototype,`overlayElement`,void 0),i([n()],u.prototype,`_renderMenu`,void 0),customElements.get(`luzmo-color-picker`)||customElements.define(`luzmo-color-picker`,u);export{u as LuzmoColorPicker};
@@ -17,4 +17,4 @@
17
17
  *
18
18
  */
19
19
 
20
- import"./tokens.js";export{t as LuzmoColorSlider}from"./chunks/color-slider-MSADvkPC.js";
20
+ import"./tokens.js";export{t as LuzmoColorSlider}from"./chunks/color-slider-w5flr8ev.js";