@luzmo/lucero 1.0.3-alpha.9 → 2.0.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 (414) hide show
  1. package/components/accordion/index.cjs +1 -1
  2. package/components/accordion/index.js +2 -2
  3. package/components/{accordion-DC7cjb1c.js → accordion-BDchhAjE.js} +4 -4
  4. package/components/accordion-DpsYMoeb.cjs +43 -0
  5. package/components/action-bar/index.cjs +1 -1
  6. package/components/action-bar/index.js +2 -2
  7. package/components/{action-bar-Dn4IDXEF.js → action-bar-BhYEHEfo.js} +7 -7
  8. package/components/action-bar-VhZT8kQM.cjs +39 -0
  9. package/components/action-button/action-button.d.ts +12 -1
  10. package/components/action-button/index.cjs +1 -1
  11. package/components/action-button/index.d.ts +1 -1
  12. package/components/action-button/index.js +2 -2
  13. package/components/action-button-CWAg-5tz.cjs +22 -0
  14. package/components/{action-button-DC-ZFZTm.js → action-button-cULkUUi6.js} +8 -6
  15. package/components/action-group/index.cjs +1 -1
  16. package/components/action-group/index.js +2 -2
  17. package/components/{action-group-DYKpp-mz.js → action-group-BQ-fyPYS.js} +3 -3
  18. package/components/action-group-D1G30Iir.cjs +20 -0
  19. package/components/action-menu/index.cjs +1 -1
  20. package/components/action-menu/index.js +2 -2
  21. package/components/{action-menu-BlR6cLpi.js → action-menu-CkU-u55D.js} +21 -21
  22. package/components/{action-menu-C1C1Gx39.cjs → action-menu-DREgNCXt.cjs} +15 -15
  23. package/components/avatar/avatar.d.ts +17 -1
  24. package/components/avatar/index.cjs +1 -1
  25. package/components/avatar/index.js +2 -2
  26. package/components/avatar-Cu9c0sCS.cjs +34 -0
  27. package/components/avatar-Nb0368Wi.js +98 -0
  28. package/components/badge/badge.d.ts +1 -1
  29. package/components/badge/index.cjs +1 -1
  30. package/components/badge/index.js +2 -2
  31. package/components/badge-BzQfqgq6.cjs +23 -0
  32. package/components/badge-Dnkh-mfN.js +94 -0
  33. package/components/button/button-base.d.ts +1 -0
  34. package/components/button/button.d.ts +0 -1
  35. package/components/button/index.cjs +1 -1
  36. package/components/button/index.js +3 -3
  37. package/components/button-BJ0Y6wlM.cjs +20 -0
  38. package/components/{button-D1a4B85S.js → button-BtWr5Lag.js} +6 -6
  39. package/components/{button-base-CzTYjZND.js → button-base-DsUg0bJB.js} +26 -12
  40. package/components/{button-base-Dj2qQqwO.cjs → button-base-aTiE83bl.cjs} +3 -3
  41. package/components/button-group/index.cjs +1 -1
  42. package/components/button-group/index.js +2 -2
  43. package/components/button-group-6M8M-TUI.cjs +18 -0
  44. package/components/{button-group-BiQxYcQ2.js → button-group-DaANSInm.js} +2 -2
  45. package/components/calendar/index.cjs +1 -1
  46. package/components/calendar/index.js +2 -2
  47. package/components/{calendar-BNRjXf9B.js → calendar-CXjdC7jm.js} +5 -9
  48. package/components/calendar-DSlKZZCR.cjs +138 -0
  49. package/components/chat-message/chat-message.d.ts +0 -1
  50. package/components/chat-message/index.cjs +1 -1
  51. package/components/chat-message/index.js +2 -2
  52. package/components/chat-message-7cx2Bpo8.cjs +148 -0
  53. package/components/{chat-message-DJgocVNj.js → chat-message-CJ7Xk7tz.js} +757 -545
  54. package/components/chat-message-group/index.cjs +1 -1
  55. package/components/chat-message-group/index.js +2 -2
  56. package/components/chat-message-group-CzCwyW7F.cjs +24 -0
  57. package/components/{chat-message-group-B4U2MzHx.js → chat-message-group-D7vdn2gG.js} +2 -2
  58. package/components/checkbox/checkbox.d.ts +7 -0
  59. package/components/checkbox/index.cjs +1 -1
  60. package/components/checkbox/index.js +2 -2
  61. package/components/{checkbox-CPS-tR_i.js → checkbox-6YzkdHR4.js} +9 -5
  62. package/components/checkbox-DdatW4xE.cjs +25 -0
  63. package/components/{checkbox-mixin-C5sLMo5L.js → checkbox-mixin-jqmrh48O.js} +2 -2
  64. package/components/{checkbox-mixin-D4HeLrMj.cjs → checkbox-mixin-rFRXqyrK.cjs} +3 -3
  65. package/components/{close-button-MgaJT7yO.js → close-button-WomHVbgz.js} +4 -4
  66. package/components/close-button-hicleVjQ.cjs +18 -0
  67. package/components/color-area/index.cjs +1 -1
  68. package/components/color-area/index.js +2 -2
  69. package/components/{color-area-mWOctRNt.js → color-area-BRrtUbvH.js} +6 -6
  70. package/components/color-area-ayGmH8dj.cjs +80 -0
  71. package/components/color-controller-DbyPc33Y.cjs +18 -0
  72. package/components/color-field/index.cjs +1 -1
  73. package/components/color-field/index.js +2 -2
  74. package/components/{color-field-D7_7z2A2.cjs → color-field-BNGnBRSO.cjs} +2 -2
  75. package/components/{color-field-CxdIoSq6.js → color-field-CUdHxonc.js} +3 -3
  76. package/components/color-handle/index.cjs +1 -1
  77. package/components/color-handle/index.js +2 -2
  78. package/components/color-handle-DIoVrLRF.cjs +24 -0
  79. package/components/{color-handle-BOusOFFx.js → color-handle-TKbLs1ax.js} +2 -2
  80. package/components/color-loupe/index.cjs +1 -1
  81. package/components/color-loupe/index.js +2 -2
  82. package/components/{color-loupe-bEzi2P0y.js → color-loupe-DAxrNPJz.js} +2 -2
  83. package/components/color-loupe-sY1wOisV.cjs +56 -0
  84. package/components/color-menu/index.cjs +1 -1
  85. package/components/color-menu/index.js +2 -2
  86. package/components/color-menu-DOq9PAWG.cjs +89 -0
  87. package/components/{color-menu-Cryp_5Gh.js → color-menu-iKU6Vw8a.js} +24 -24
  88. package/components/color-palette/index.cjs +1 -1
  89. package/components/color-palette/index.js +2 -2
  90. package/components/color-palette-CidHsmE0.cjs +18 -0
  91. package/components/{color-palette-BAdaNySC.js → color-palette-FQyIMSwP.js} +3 -3
  92. package/components/color-palette-group/index.cjs +1 -1
  93. package/components/color-palette-group/index.js +2 -2
  94. package/components/color-palette-group-B4r4tPfY.cjs +28 -0
  95. package/components/{color-palette-group-D8Mavsd2.js → color-palette-group-o6bnF-Ir.js} +3 -3
  96. package/components/color-picker/index.cjs +1 -1
  97. package/components/color-picker/index.js +2 -2
  98. package/components/{color-picker-DgjqWiVd.js → color-picker-Bw5UKyME.js} +6 -6
  99. package/components/{color-picker-DL7rqWnW.cjs → color-picker-D3WFls0M.cjs} +2 -2
  100. package/components/color-slider/index.cjs +1 -1
  101. package/components/color-slider/index.js +2 -2
  102. package/components/color-slider-BiVpn9_U.cjs +57 -0
  103. package/components/{color-slider-ihAIFt5p.js → color-slider-BtPNTmQu.js} +6 -5
  104. package/components/{condition-attribute-with-id-DauPaLSS.cjs → condition-attribute-with-id-Cw92IbcP.cjs} +1 -1
  105. package/components/date-range-picker/index.cjs +1 -1
  106. package/components/date-range-picker/index.js +2 -2
  107. package/components/date-range-picker-DMq8EaiB.cjs +180 -0
  108. package/components/{date-range-picker-CcDzRDm5.js → date-range-picker-DaHFLwQL.js} +13 -13
  109. package/components/date-time-picker/index.cjs +1 -1
  110. package/components/date-time-picker/index.js +2 -2
  111. package/components/date-time-picker-DdtcziBG.cjs +105 -0
  112. package/components/{date-time-picker-PHKHDgL9.js → date-time-picker-hjeFVUz9.js} +11 -11
  113. package/components/{decorate-aGxJUVxg.js → decorate-CkCg3wfh.js} +1 -1
  114. package/components/decorate-Dq34MBGe.cjs +18 -0
  115. package/components/{dependency-manger-CHy9t__e.cjs → dependency-manger-BSaHw9ju.cjs} +1 -1
  116. package/components/divider/index.cjs +1 -1
  117. package/components/divider/index.js +2 -2
  118. package/components/{divider-cU0lVwOp.js → divider-CGbT-CL8.js} +3 -3
  119. package/components/divider-wana0uPI.cjs +18 -0
  120. package/components/{divider.module-CL60P_z8.cjs → divider.module-BV6tmpOY.cjs} +1 -1
  121. package/components/{element-resolution-C0aiOB0Y.cjs → element-resolution-BjaAlqwX.cjs} +1 -1
  122. package/components/field-group/index.cjs +1 -1
  123. package/components/field-group/index.js +2 -2
  124. package/components/{field-group-C7ROsWq3.js → field-group-C_kRq7pJ.js} +2 -2
  125. package/components/{field-group-OcI5Lgu7.cjs → field-group-Dd5xYczm.cjs} +2 -2
  126. package/components/field-label/index.cjs +1 -1
  127. package/components/field-label/index.js +2 -2
  128. package/components/{field-label-CtGCEmdp.js → field-label-B9S41b7c.js} +5 -5
  129. package/components/field-label-C5vdJ1ys.cjs +25 -0
  130. package/components/focus-group-C8lOjbi9.cjs +18 -0
  131. package/components/{focus-group-BshI1RpM.js → focus-group-DVPa1zxz.js} +1 -1
  132. package/components/{focus-visible-CrooVCUu.js → focus-visible-Bt2uDmuM.js} +2 -2
  133. package/components/focus-visible-DNHNlrty.cjs +18 -0
  134. package/components/focusable-B6h03pAe.cjs +18 -0
  135. package/components/{focusable-BmS8IzhH.js → focusable-DuP0-Kuy.js} +2 -2
  136. package/components/{focusable-selectors-5n5liBn0.cjs → focusable-selectors-DJqGLTJo.cjs} +1 -1
  137. package/components/{get-label-from-slot-LO_DZP60.cjs → get-label-from-slot-TV4APBYs.cjs} +1 -1
  138. package/components/icon/index.cjs +1 -1
  139. package/components/icon/index.js +2 -2
  140. package/components/icon-CSqR-OOO.cjs +18 -0
  141. package/components/{icon-CwBAE1eU.js → icon-DB1DRieA.js} +5 -2
  142. package/components/index.cjs +1 -1
  143. package/components/index.js +71 -69
  144. package/components/infield-button/index.cjs +1 -1
  145. package/components/infield-button/index.js +2 -2
  146. package/components/{infield-button-BvKsbtKr.js → infield-button-BmGfFDDA.js} +3 -3
  147. package/components/infield-button-Cdee_UPX.cjs +22 -0
  148. package/components/label/index.cjs +1 -1
  149. package/components/label/index.js +2 -2
  150. package/components/{label-ClJE2esm.js → label-B1HYQ4Pp.js} +1 -1
  151. package/components/label-DPG13Ib0.cjs +18 -0
  152. package/components/{language-resolution-BYemISJC.cjs → language-resolution-BUeKpSce.cjs} +1 -1
  153. package/components/{like-anchor-BZJXts_H.cjs → like-anchor-BX4PSB3d.cjs} +2 -2
  154. package/components/{like-anchor-DeOXX-MX.js → like-anchor-DXCaEv7O.js} +1 -1
  155. package/components/{manage-help-text-CF0xBh0F.js → manage-help-text-ByLb0QYX.js} +13 -10
  156. package/components/{manage-help-text-D9VbYRf_.cjs → manage-help-text-DtFJsl0k.cjs} +3 -3
  157. package/components/menu/index.cjs +1 -1
  158. package/components/menu/index.js +2 -2
  159. package/components/menu/menu-item.d.ts +1 -1
  160. package/components/menu/menu.d.ts +12 -1
  161. package/components/{menu-Cdz2FEB7.js → menu-C9ogB7Bq.js} +82 -65
  162. package/components/menu-DXONqtwu.cjs +108 -0
  163. package/components/multi-language-field/index.cjs +1 -1
  164. package/components/multi-language-field/index.js +2 -2
  165. package/components/{multi-language-field-DmoMyCBH.cjs → multi-language-field-Cfy3M_ZS.cjs} +2 -2
  166. package/components/{multi-language-field-BzY75rOY.js → multi-language-field-DhQ98r2D.js} +4 -4
  167. package/components/notice/index.cjs +18 -0
  168. package/components/notice/index.d.ts +8 -0
  169. package/components/notice/index.js +25 -0
  170. package/components/notice/notice.d.ts +121 -0
  171. package/components/notice-BeL9oE94.js +218 -0
  172. package/components/notice-COZLmk94.cjs +60 -0
  173. package/components/number-field/index.cjs +1 -1
  174. package/components/number-field/index.js +2 -2
  175. package/components/number-field-D19qjVbk.cjs +57 -0
  176. package/components/{number-field-DrJURvoW.js → number-field-DjvWkjL8.js} +42 -42
  177. package/components/observe-slot-presence-CS8pMePk.cjs +18 -0
  178. package/components/observe-slot-text-CvL-2ey3.cjs +18 -0
  179. package/components/{observe-slot-text-Ddf1OC6F.js → observe-slot-text-Db8Kx3P-.js} +7 -7
  180. package/components/options/index.cjs +1 -1
  181. package/components/options/index.d.ts +5 -3
  182. package/components/options/index.js +2 -2
  183. package/components/options/option.d.ts +0 -1
  184. package/components/{options-BGwKMvng.js → options-C1MoEq26.js} +9 -9
  185. package/components/{options-CKi3VkNR.cjs → options-yWbz0D6O.cjs} +3 -3
  186. package/components/overlay/index.cjs +1 -1
  187. package/components/overlay/index.d.ts +3 -2
  188. package/components/overlay/index.js +4 -4
  189. package/components/overlay/overlay-trigger.d.ts +1 -1
  190. package/components/overlay-B-gaxspw.cjs +47 -0
  191. package/components/{overlay-BGI4wOGe.cjs → overlay-CPZvL0Ic.cjs} +2 -2
  192. package/components/{overlay-BbQuYBxp.js → overlay-CyBsHuOL.js} +20 -15
  193. package/components/{overlay-mdk7-NOt.js → overlay-DdIs4w5M.js} +3 -3
  194. package/components/{pending-state-DFcNf5rd.js → pending-state-BeG7qBDP.js} +1 -1
  195. package/components/{pending-state-DIeF18qg.cjs → pending-state-a527YMWV.cjs} +2 -2
  196. package/components/picker/index.cjs +1 -1
  197. package/components/picker/index.js +2 -2
  198. package/components/picker/picker.d.ts +1 -0
  199. package/components/{picker-DOiM_cUu.js → picker-Bufw-biD.js} +64 -66
  200. package/components/picker-D6ZM08K8.cjs +124 -0
  201. package/components/picker-button/index.cjs +1 -1
  202. package/components/picker-button/index.js +2 -2
  203. package/components/{picker-button-VAxzuhhg.js → picker-button-CF6yD_1d.js} +5 -5
  204. package/components/picker-button-Dh2gGZ8R.cjs +37 -0
  205. package/components/platform-BAjeJp2W.cjs +18 -0
  206. package/components/{platform-D4V_cOJF.js → platform-Ce9pNsR9.js} +2 -2
  207. package/components/popover/index.cjs +1 -1
  208. package/components/popover/index.js +2 -2
  209. package/components/{popover-DyC9xGhX.js → popover-DTsrgH-f.js} +4 -4
  210. package/components/popover-DWWYpY-k.cjs +30 -0
  211. package/components/progress-bar/index.cjs +1 -1
  212. package/components/progress-bar/index.js +2 -2
  213. package/components/{progress-bar-DHgFRml1.js → progress-bar-BJO8j1aX.js} +9 -6
  214. package/components/progress-bar-C7wJ5bxS.cjs +34 -0
  215. package/components/progress-circle/index.cjs +1 -1
  216. package/components/progress-circle/index.js +2 -2
  217. package/components/{progress-circle-Cg_ua9Ff.js → progress-circle-BVToDWX8.js} +3 -3
  218. package/components/progress-circle-DyApSKdm.cjs +33 -0
  219. package/components/progress-steps/index.cjs +1 -1
  220. package/components/progress-steps/index.js +2 -2
  221. package/components/progress-steps-Ba4VbAKR.cjs +96 -0
  222. package/components/{progress-steps-Da8aZWx3.js → progress-steps-nJ8Xw-nG.js} +10 -10
  223. package/components/prompt-box/index.cjs +1 -1
  224. package/components/prompt-box/index.js +2 -2
  225. package/components/prompt-box/prompt-box-templates.d.ts +1 -0
  226. package/components/prompt-box/prompt-box.d.ts +3 -0
  227. package/components/prompt-box-D358CWoY.cjs +314 -0
  228. package/components/{prompt-box-DahvVbcc.js → prompt-box-y7qWHF3P.js} +102 -96
  229. package/components/question-box/index.cjs +18 -0
  230. package/components/question-box/index.d.ts +11 -0
  231. package/components/question-box/index.js +25 -0
  232. package/components/question-box/question-box-elicitation.d.ts +58 -0
  233. package/components/question-box/question-box-model.d.ts +25 -0
  234. package/components/question-box/question-box-templates.d.ts +65 -0
  235. package/components/question-box/question-box.d.ts +182 -0
  236. package/components/question-box/types.d.ts +124 -0
  237. package/components/question-box-9F6Ppakl.js +1171 -0
  238. package/components/question-box-DaAgC3_D.cjs +401 -0
  239. package/components/radio/index.cjs +1 -1
  240. package/components/radio/index.js +2 -2
  241. package/components/radio/radio-group.d.ts +5 -1
  242. package/components/radio/radio.d.ts +7 -1
  243. package/components/{radio-BzEPGUmQ.js → radio-DRI4on-W.js} +30 -26
  244. package/components/radio-O3a1rmCe.cjs +22 -0
  245. package/components/{random-id-B51lUxUB.cjs → random-id-BcUJAxUZ.cjs} +1 -1
  246. package/components/{random-id-Dd4boCPV.js → random-id-CiMDyX7v.js} +1 -1
  247. package/components/{roving-tabindex-B7x5ePUB.cjs → roving-tabindex-BoPao4td.cjs} +1 -1
  248. package/components/{roving-tabindex-BP6mQbXf.js → roving-tabindex-pomAn3z-.js} +1 -1
  249. package/components/{scaled-indicator-Bl-3A2gz.cjs → scaled-indicator-DLJIztx0.cjs} +2 -2
  250. package/components/search/index.cjs +1 -1
  251. package/components/search/index.js +2 -2
  252. package/components/search-B2DQb14U.js +100 -0
  253. package/components/search-CsNvKd8x.cjs +47 -0
  254. package/components/segments-factory-DtPyN5sh.cjs +18 -0
  255. package/components/select/index.cjs +1 -1
  256. package/components/select/index.js +2 -2
  257. package/components/select-B_E-w1a2.cjs +158 -0
  258. package/components/{select-C2gh8zRr.js → select-CE6pIRX3.js} +12 -12
  259. package/components/{chunk-D-qHiVGv.cjs → sized-mixin-BT7cv-fT.cjs} +1 -1
  260. package/components/{sized-mixin-DaBoZkVS.js → sized-mixin-DzQTebN-.js} +1 -1
  261. package/components/skeleton-loader/index.cjs +1 -1
  262. package/components/skeleton-loader/index.js +2 -2
  263. package/components/{skeleton-loader-oJVESWls.js → skeleton-loader-C0LH3prK.js} +1 -1
  264. package/components/skeleton-loader-Cm50Ztzk.cjs +18 -0
  265. package/components/slider/controllers/slider-handle-controller.d.ts +79 -0
  266. package/components/slider/index.cjs +1 -1
  267. package/components/slider/index.d.ts +5 -1
  268. package/components/slider/index.js +3 -3
  269. package/components/slider/slider-control-templates.d.ts +36 -0
  270. package/components/slider/slider-handle.d.ts +62 -0
  271. package/components/slider/slider-model.d.ts +16 -0
  272. package/components/slider/slider-templates.d.ts +6 -0
  273. package/components/slider/slider.d.ts +197 -19
  274. package/components/slider/types.d.ts +57 -0
  275. package/components/slider-CDrXecqO.cjs +135 -0
  276. package/components/slider-CfgH3NK8.js +921 -0
  277. package/components/{slottable-request-event-gAcEQan2.cjs → slottable-request-event-C6eb7Ch3.cjs} +1 -1
  278. package/components/status-light/index.cjs +1 -1
  279. package/components/status-light/index.js +2 -2
  280. package/components/{status-light-DXWPBufE.js → status-light-BlfBJpqa.js} +2 -2
  281. package/components/status-light-Bu0G8-lH.cjs +21 -0
  282. package/components/strategies-BwNbUXYS.cjs +18 -0
  283. package/components/{strategies-DhxJGIZT.js → strategies-Cl59wdNZ.js} +21 -19
  284. package/components/streaming-listener-Bfyk6Fsx.cjs +18 -0
  285. package/components/swatch/index.cjs +1 -1
  286. package/components/swatch/index.js +2 -2
  287. package/components/{swatch-BLuV-hlF.js → swatch-C2ty27bJ.js} +4 -4
  288. package/components/{swatch-G70JUe6I.cjs → swatch-DUmBmg4S.cjs} +2 -2
  289. package/components/switch/index.cjs +1 -1
  290. package/components/switch/index.js +2 -2
  291. package/components/switch-B-gu-War.cjs +22 -0
  292. package/components/{switch-CSuMgmAh.js → switch-DOuXlFwI.js} +5 -5
  293. package/components/tabs/index.cjs +1 -1
  294. package/components/tabs/index.js +2 -2
  295. package/components/tabs/tabs.d.ts +1 -2
  296. package/components/{tabs-Jo_qqM_H.cjs → tabs-CcnIX4jQ.cjs} +2 -2
  297. package/components/{tabs-B54ELQtU.js → tabs-D1puCPrL.js} +11 -11
  298. package/components/tags/index.cjs +1 -1
  299. package/components/tags/index.js +2 -2
  300. package/components/tags/tag.d.ts +4 -3
  301. package/components/{tags-Bpl4u-eo.js → tags-Bw-y2Wfl.js} +26 -26
  302. package/components/tags-Cr8ObbWn.cjs +47 -0
  303. package/components/text-field/help-text-manager.d.ts +3 -1
  304. package/components/text-field/help-text.d.ts +4 -0
  305. package/components/text-field/index.cjs +1 -1
  306. package/components/text-field/index.js +3 -3
  307. package/components/text-field/manage-help-text.d.ts +2 -1
  308. package/components/text-field/text-field.d.ts +9 -0
  309. package/components/{text-field-FJr8ZUhI.cjs → text-field-3fDtTQkR.cjs} +2 -2
  310. package/components/{text-field-BoGAvXvh.js → text-field-C2MHZbTp.js} +3 -3
  311. package/components/{text-field-Cs8HYRYL.js → text-field-CmSym2QK.js} +5 -5
  312. package/components/text-field-wJK2bzMT.cjs +21 -0
  313. package/components/{text-field.module-Btsve-VN.js → text-field.module-BHhBReKL.js} +1 -1
  314. package/components/{text-field.module-D5oDP7MB.cjs → text-field.module-l8CaTCwE.cjs} +1 -1
  315. package/components/toast/index.cjs +1 -1
  316. package/components/toast/index.js +2 -2
  317. package/components/toast-BPhdMJTx.cjs +51 -0
  318. package/components/{toast-Bd0fleYT.js → toast-D90C9Cim.js} +4 -4
  319. package/components/tooltip/index.cjs +1 -1
  320. package/components/tooltip/index.js +2 -2
  321. package/components/{tooltip-CVSSKlDP.js → tooltip-Byl1h4nN.js} +4 -4
  322. package/components/tooltip-Sm0pruxL.cjs +45 -0
  323. package/components/top-nav/index.cjs +1 -1
  324. package/components/top-nav/index.js +2 -2
  325. package/components/{top-nav-B3w3DZ56.js → top-nav-B9YKdtFB.js} +7 -11
  326. package/components/top-nav-BcZLCBP_.cjs +41 -0
  327. package/components/utils.cjs +1 -1
  328. package/components/utils.js +7 -7
  329. package/components/{voice-recorder-BUtmSvPO.cjs → voice-recorder-B1tBrGTV.cjs} +1 -1
  330. package/custom-elements.json +1 -1
  331. package/index.d.ts +2 -0
  332. package/package.json +15 -4
  333. package/utils/button-interaction-controllers/interaction-controller.d.ts +4 -2
  334. package/utils/reactive-controllers/match-media.d.ts +1 -0
  335. package/components/accordion-BHBIfsLU.cjs +0 -43
  336. package/components/action-bar-BSMX042X.cjs +0 -39
  337. package/components/action-button-Cr_QN4On.cjs +0 -22
  338. package/components/action-group-CH8FTW0i.cjs +0 -20
  339. package/components/avatar-CyY_ZSD0.js +0 -65
  340. package/components/avatar-PulwjkMI.cjs +0 -24
  341. package/components/badge-D1Ry32wi.cjs +0 -23
  342. package/components/badge-D6p2hPj8.js +0 -94
  343. package/components/button-C5hcfigl.cjs +0 -20
  344. package/components/button-group-DIz5TZvc.cjs +0 -18
  345. package/components/calendar-BWArK3rh.cjs +0 -142
  346. package/components/chat-message-CNE-mGuP.cjs +0 -149
  347. package/components/chat-message-group-COmhCN-R.cjs +0 -24
  348. package/components/checkbox-DFwDrIdY.cjs +0 -25
  349. package/components/close-button-_EXjp6_m.cjs +0 -18
  350. package/components/color-area-C3Y2d5cu.cjs +0 -80
  351. package/components/color-controller-DueaXfnX.cjs +0 -18
  352. package/components/color-handle-Cka48yPY.cjs +0 -24
  353. package/components/color-loupe-DMk8uWZW.cjs +0 -56
  354. package/components/color-menu-BAKmi_EI.cjs +0 -89
  355. package/components/color-palette-349EkPMg.cjs +0 -18
  356. package/components/color-palette-group-BvP09zmT.cjs +0 -28
  357. package/components/color-slider-DxjJ72ue.cjs +0 -57
  358. package/components/date-range-picker-A-XRRg1X.cjs +0 -180
  359. package/components/date-time-picker-Ca9GEA4N.cjs +0 -105
  360. package/components/decorate-B2wePfNm.cjs +0 -18
  361. package/components/divider-Dn8XqbB6.cjs +0 -18
  362. package/components/field-label-BCl6R1uO.cjs +0 -25
  363. package/components/focus-group-SF8Kj7iB.cjs +0 -18
  364. package/components/focus-visible-B0NNezGc.cjs +0 -18
  365. package/components/focusable-CupEoHmn.cjs +0 -18
  366. package/components/icon-B7hKwn_q.cjs +0 -18
  367. package/components/infield-button-D5cuBWE5.cjs +0 -22
  368. package/components/label-CqolZbJo.cjs +0 -18
  369. package/components/menu-DFKS4sRU.cjs +0 -108
  370. package/components/number-field-BmWODnnR.cjs +0 -57
  371. package/components/observe-slot-presence-Dx8hzNzK.cjs +0 -18
  372. package/components/observe-slot-text-BhTcGuHY.cjs +0 -18
  373. package/components/overlay-DU_p8MNs.cjs +0 -47
  374. package/components/picker-CssPvvau.cjs +0 -123
  375. package/components/picker-button-adl1JO5u.cjs +0 -37
  376. package/components/platform-B7Sk7Qon.cjs +0 -18
  377. package/components/popover-dgL04x6P.cjs +0 -30
  378. package/components/progress-bar-BR28tISC.cjs +0 -31
  379. package/components/progress-circle-DuzwUiGN.cjs +0 -33
  380. package/components/progress-steps-WriXaZpE.cjs +0 -96
  381. package/components/prompt-box-DfTe3nG0.cjs +0 -311
  382. package/components/radio-d-2GUbYE.cjs +0 -22
  383. package/components/search-CCvT87FX.cjs +0 -47
  384. package/components/search-Dtff2EzC.js +0 -100
  385. package/components/segments-factory-CHo9oQw7.cjs +0 -18
  386. package/components/select-qAKOLhmQ.cjs +0 -158
  387. package/components/sized-mixin-StFA4y0J.cjs +0 -18
  388. package/components/skeleton-loader-dNRfq6lt.cjs +0 -18
  389. package/components/slider-D8w2ipBg.cjs +0 -18
  390. package/components/slider-Fy-VeKrU.js +0 -96
  391. package/components/status-light-BG_kopZQ.cjs +0 -21
  392. package/components/strategies-kuvLVIKO.cjs +0 -18
  393. package/components/streaming-listener-BnDW38lt.cjs +0 -18
  394. package/components/switch-nuCOB2P3.cjs +0 -22
  395. package/components/tags-Dj7Xm3KI.cjs +0 -47
  396. package/components/text-field-A4Obzs4l.cjs +0 -21
  397. package/components/toast-NZ0Z1lz9.cjs +0 -51
  398. package/components/tooltip-6y-g7e9V.cjs +0 -45
  399. package/components/top-nav-DZO8yZs6.cjs +0 -45
  400. /package/components/{color-controller-G2_v2xSl.js → color-controller-Rg_Zl0sT.js} +0 -0
  401. /package/components/{condition-attribute-with-id-Duo51HZ7.js → condition-attribute-with-id-BdnTdWKz.js} +0 -0
  402. /package/components/{dependency-manger-DMrulWcJ.js → dependency-manger-wHEXoU92.js} +0 -0
  403. /package/components/{divider.module-C65RfSUa.js → divider.module-CPEKsaqR.js} +0 -0
  404. /package/components/{element-resolution-Bs1x89vU.js → element-resolution-gap51AVo.js} +0 -0
  405. /package/components/{focusable-selectors-Bg60_Kra.js → focusable-selectors-BWpiuXz5.js} +0 -0
  406. /package/components/{get-label-from-slot-5vVnfSgN.js → get-label-from-slot-Bo9mqYCZ.js} +0 -0
  407. /package/components/{language-resolution-BpfGTC29.js → language-resolution-DR30FsWE.js} +0 -0
  408. /package/components/{observe-slot-presence-BCqd3VSd.js → observe-slot-presence-BKY6n06-.js} +0 -0
  409. /package/components/{rolldown-runtime-CAFD8bLK.js → rolldown-runtime-Dy4uBu1J.js} +0 -0
  410. /package/components/{scaled-indicator-fMYan6VK.js → scaled-indicator-C-TupV4L.js} +0 -0
  411. /package/components/{segments-factory-D0IveW-q.js → segments-factory-BCRi1NKb.js} +0 -0
  412. /package/components/{slottable-request-event-DZ2Z_BLk.js → slottable-request-event-MRSZbgTu.js} +0 -0
  413. /package/components/{streaming-listener-2NcP7ys7.js → streaming-listener-CtcMpYfS.js} +0 -0
  414. /package/components/{voice-recorder-477xPHRU.js → voice-recorder-CTg3kRxx.js} +0 -0
@@ -0,0 +1,401 @@
1
+ /*! * Lucero - The design system for Luzmo.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ * This license allows users with a current active Luzmo account to use Lucero.
7
+ * This license terminates automatically if a user no longer has an active Luzmo account.
8
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ * SOFTWARE.
17
+ * */
18
+ const e=require("./decorate-Dq34MBGe.cjs"),t=require("./sized-mixin-BT7cv-fT.cjs"),n=require("./roving-tabindex-BoPao4td.cjs");require("./icon-CSqR-OOO.cjs"),require("./action-button-CWAg-5tz.cjs"),require("./badge-BzQfqgq6.cjs"),require("./button-BJ0Y6wlM.cjs");const r=require("./language-resolution-BUeKpSce.cjs");require("./checkbox-DdatW4xE.cjs"),require("./field-group/index.cjs"),require("./text-field-wJK2bzMT.cjs"),require("./radio-O3a1rmCe.cjs");let i=require("lit"),a=require("lit/decorators.js"),o=require("@luzmo/icons"),s=require("lit/directives/if-defined.js"),c=require("lit/directives/repeat.js");var l=`:host{font-family:var(--question-box-font-family);font-size:var(--question-box-font-size);color:var(--highcontrast-question-box-color,var(--question-box-color));box-sizing:border-box;inline-size:100%;max-inline-size:var(--luzmo-question-box-max-inline-size,var(--question-box-max-inline-size));display:block}:host([disabled]){pointer-events:none}.card{gap:var(--question-box-gap);padding:var(--question-box-padding);box-sizing:border-box;border-width:var(--question-box-border-width);border-style:solid;border-color:var(--highcontrast-question-box-border-color,var(--question-box-border-color));border-radius:var(--question-box-border-radius);background-color:var(--highcontrast-question-box-background-color,var(--question-box-background-color));flex-direction:column;display:flex}.header{justify-content:space-between;align-items:flex-start;gap:var(--question-box-header-gap);display:flex}.header-actions,.step-navigation{align-items:center;display:flex}.header-actions{gap:var(--question-box-header-actions-gap);min-block-size:0;block-size:max(var(--question-box-title-font-size) * var(--question-box-title-line-height), var(--question-box-header-control-size) - 2 * (var(--question-box-padding) - var(--question-box-header-actions-inset)));flex-shrink:0;margin-inline-start:auto;overflow:visible}.step-navigation{gap:var(--question-box-copy-gap)}.heading{gap:var(--question-box-heading-copy-gap);flex-direction:column;min-inline-size:0;display:flex}.progress{font-size:var(--question-box-progress-font-size);color:var(--question-box-muted-color);margin:0}.title{font-size:var(--question-box-title-font-size);font-weight:var(--luzmo-font-weight-bold);line-height:var(--question-box-title-line-height);margin:0}.title:focus,.summary-heading:focus{outline:none}.title:focus-visible,.summary-heading:focus-visible{-webkit-text-decoration-color:var(--question-box-focus-ring-color);text-decoration-color:var(--question-box-focus-ring-color);text-decoration-line:underline;text-decoration-thickness:var(--question-box-focus-ring-width);text-underline-offset:var(--question-box-focus-ring-gap);outline:none}.description{color:var(--question-box-muted-color);font-size:inherit;margin:0;margin-block-start:var(--question-box-heading-copy-offset);line-height:1.4}.close{flex-shrink:0}.body{gap:var(--question-box-option-gap);max-block-size:var(--luzmo-question-box-body-max-block-size,var(--question-box-body-max-block-size));padding-block:var(--question-box-body-focus-inset);margin-block:calc(var(--question-box-body-focus-inset) * -1);flex-direction:column;display:flex;overflow:hidden auto}.body::-webkit-scrollbar{width:var(--luzmo-question-box-scrollbar-width,var(--question-box-scrollbar-width));height:var(--luzmo-question-box-scrollbar-width,var(--question-box-scrollbar-width))}.body::-webkit-scrollbar-track{background:var(--luzmo-question-box-scrollbar-track-background,var(--question-box-scrollbar-track-background));border-radius:var(--luzmo-question-box-scrollbar-track-border-radius,var(--question-box-scrollbar-track-border-radius))}.body::-webkit-scrollbar-thumb{background:var(--luzmo-question-box-scrollbar-thumb-background,var(--question-box-scrollbar-thumb-background));border-radius:var(--luzmo-question-box-scrollbar-thumb-border-radius,var(--question-box-scrollbar-thumb-border-radius))}.body::-webkit-scrollbar-thumb:hover{background:var(--luzmo-question-box-scrollbar-thumb-hover-background,var(--question-box-scrollbar-thumb-hover-background))}.body{scrollbar-width:var(--luzmo-scrollbar-width,thin);scrollbar-color:var(--luzmo-question-box-scrollbar-thumb-background,var(--question-box-scrollbar-thumb-background)) var(--luzmo-question-box-scrollbar-track-background,var(--question-box-scrollbar-track-background))}.options{box-sizing:border-box;flex-direction:column;inline-size:100%;min-inline-size:0;display:flex}.options--descriptive luzmo-radio,.options--descriptive luzmo-checkbox,.options--descriptive .other-option-answer{padding-block:var(--luzmo-question-box-descriptive-option-padding-block,var(--question-box-descriptive-option-padding-block))}.body:has(.options--descriptive){margin-block:calc(var(--question-box-option-padding-block) - var(--question-box-body-focus-inset) - var(--luzmo-question-box-descriptive-option-padding-block,var(--question-box-descriptive-option-padding-block)))}luzmo-radio,luzmo-checkbox{box-sizing:border-box;inline-size:100%;min-block-size:var(--question-box-option-min-block-size);padding-block:var(--question-box-option-padding-block);padding-inline:var(--question-box-option-padding-inline);border-block-end-width:var(--luzmo-question-box-divider-width,var(--question-box-divider-width));border-block-end-style:solid;border-block-end-color:var(--luzmo-question-box-divider-color,var(--question-box-divider-color));border-radius:var(--luzmo-border-radius-s);align-items:center;display:flex}luzmo-radio:hover,luzmo-checkbox:hover{background-color:var(--question-box-option-hover-background)}.other-option-row{align-items:center;gap:var(--question-box-option-gap);box-sizing:border-box;border-block-end-width:var(--luzmo-question-box-divider-width,var(--question-box-divider-width));border-block-end-style:solid;border-block-end-color:var(--luzmo-question-box-divider-color,var(--question-box-divider-color));inline-size:100%;max-inline-size:100%;display:flex}.other-option-answer{align-items:center;gap:var(--question-box-option-gap);box-sizing:border-box;min-inline-size:0;min-block-size:var(--question-box-option-min-block-size);padding-block:var(--question-box-option-padding-block);padding-inline:var(--question-box-option-padding-inline);border-radius:var(--luzmo-border-radius-s);flex:1;display:flex}.other-option-answer:hover{background-color:var(--question-box-option-hover-background)}luzmo-radio.other-option,luzmo-checkbox.other-option{border:0;flex:none;min-block-size:auto;inline-size:auto;padding:0}luzmo-radio.other-option{--luzmo-radio-button-top-to-control:0px}luzmo-radio.numbered-option{--luzmo-radio-button-control-size:0px;--luzmo-radio-button-top-to-control:0px;--luzmo-radio-text-to-control:0px;--luzmo-radio-border-width:0px;--luzmo-radio-focus-indicator-width:0px}luzmo-checkbox.numbered-option{--luzmo-checkbox-control-size:0px;--luzmo-checkbox-text-to-control:0px;--luzmo-checkbox-top-to-text:0px;--luzmo-checkbox-border-width:0px;--luzmo-checkbox-selected-border-width:0px;--luzmo-checkbox-focus-indicator-width:0px}luzmo-radio.numbered-option::part(control),luzmo-checkbox.numbered-option::part(control){display:none}luzmo-radio.other-option:hover,luzmo-checkbox.other-option:hover{background-color:#0000}.other-field{inline-size:auto;min-inline-size:0;max-inline-size:100%;min-block-size:var(--question-box-other-field-min-block-size);font-size:var(--question-box-other-field-font-size);--luzmo-text-field-width:100%;--luzmo-text-field-height:var(--question-box-other-field-min-block-size);--luzmo-text-field-background-color:transparent;--luzmo-text-field-background-color-disabled:transparent;--luzmo-text-field-placeholder-font-size:var(--question-box-other-field-font-size);--luzmo-text-field-border-width:0px;--luzmo-text-field-spacing-inline:0px;--luzmo-text-field-spacing-block-start:0px;--luzmo-text-field-spacing-block-end:0px;flex:1;justify-content:center}.other-primary{flex:none}.other-actions{box-sizing:border-box;justify-content:flex-end;align-items:center;gap:var(--question-box-copy-gap-detailed);inline-size:100%;padding-inline:var(--question-box-option-padding-inline);margin-block-start:var(--question-box-copy-gap-detailed);display:flex}.selected-count{font-size:var(--luzmo-question-box-selected-count-font-size,var(--question-box-selected-count-font-size))}.other-actions .selected-count{min-inline-size:0;margin-inline-end:auto}.other-actions luzmo-button{flex:none}.status-error{--luzmo-helptext-font-size:var(--luzmo-question-box-selected-count-font-size,var(--question-box-selected-count-font-size));--luzmo-helptext-min-height:0;--luzmo-helptext-top-to-text:0;--luzmo-helptext-bottom-to-text:0}.visually-hidden{clip-path:inset(50%);white-space:nowrap;border:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.option-content{align-items:flex-start;gap:var(--question-box-option-gap);inline-size:100%;display:flex}.option-number{forced-color-adjust:none;inline-size:var(--question-box-option-number-size);block-size:var(--question-box-option-number-size);box-sizing:border-box;border:var(--luzmo-border-width) solid var(--highcontrast-question-box-option-number-border-color,var(--question-box-option-number-border-color));border-radius:var(--luzmo-border-radius);color:var(--highcontrast-question-box-option-number-color,var(--question-box-option-number-color));background-color:var(--highcontrast-question-box-option-number-background,var(--question-box-option-number-background));transition:color var(--luzmo-animation-duration) ease-in-out, border-color var(--luzmo-animation-duration) ease-in-out, background-color var(--luzmo-animation-duration) ease-in-out;flex:none;justify-content:center;align-items:center;line-height:1;display:inline-flex}luzmo-radio[checked] .option-number,luzmo-checkbox[checked] .option-number{color:var(--highcontrast-question-box-option-number-selected-color,var(--question-box-option-number-selected-color));border-color:var(--highcontrast-question-box-option-number-selected-background,var(--question-box-option-number-selected-background));background-color:var(--highcontrast-question-box-option-number-selected-background,var(--question-box-option-number-selected-background))}luzmo-radio[data-focus-visible] .option-number,luzmo-checkbox[data-focus-visible] .option-number,.option-number--focused{outline:var(--luzmo-question-box-focus-ring-width,var(--question-box-focus-ring-width)) solid var(--highcontrast-question-box-focus-ring-color,var(--luzmo-question-box-focus-ring-color,var(--question-box-focus-ring-color)));outline-offset:var(--luzmo-question-box-focus-ring-gap,var(--question-box-focus-ring-gap))}luzmo-radio[disabled] .option-number,luzmo-checkbox[disabled] .option-number{opacity:.5}.option-copy{gap:var(--question-box-copy-gap);flex-direction:column;flex:1;min-inline-size:0;display:flex}.option-edit luzmo-icon{color:inherit}.option-heading{align-items:center;gap:var(--question-box-recommended-gap);min-block-size:var(--question-box-option-number-size);flex-wrap:wrap;display:flex}.option-text{align-items:baseline;gap:var(--question-box-recommended-gap);flex-wrap:wrap;min-inline-size:0;display:flex}.option-description{color:var(--question-box-muted-color);line-height:1.4}.option-hint{color:var(--question-box-muted-color);font-size:var(--luzmo-font-size-s)}.footer{justify-content:space-between;align-items:center;gap:var(--question-box-option-gap);flex-wrap:wrap;display:flex}.status{color:var(--question-box-muted-color);font-size:var(--luzmo-question-box-selected-count-font-size,var(--question-box-selected-count-font-size))}.actions{justify-content:flex-end;gap:var(--question-box-recommended-gap);flex-wrap:wrap;margin-inline-start:auto;display:flex}:host([dir=rtl]) .step-navigation luzmo-icon{transform:scaleX(-1)}.resolved{gap:var(--question-box-summary-gap)}.summary-actions{justify-content:flex-end;gap:var(--question-box-recommended-gap);flex-wrap:wrap;display:flex}.summary{gap:var(--question-box-option-gap);flex-direction:column;display:flex}.summary-heading{font-size:var(--question-box-title-font-size);line-height:var(--question-box-title-line-height);margin:0}.summary-row{gap:var(--question-box-copy-gap);flex-direction:column;display:flex}.summary-title{color:var(--question-box-muted-color);font-size:var(--luzmo-font-size-s)}.summary-answer{font-weight:var(--luzmo-font-weight-bold)}@media (prefers-reduced-motion:reduce){.option-number{transition-duration:0s}}@media (forced-colors:active){:host{--highcontrast-question-box-border-color:CanvasText;--highcontrast-question-box-background-color:Canvas;--highcontrast-question-box-color:CanvasText;--highcontrast-question-box-focus-ring-color:Highlight;--highcontrast-question-box-option-number-border-color:ButtonText;--highcontrast-question-box-option-number-color:ButtonText;--highcontrast-question-box-option-number-background:Canvas;--highcontrast-question-box-option-number-selected-background:Highlight;--highcontrast-question-box-option-number-selected-color:HighlightText}}:host{--question-box-font-family:var(--luzmo-font-family);--question-box-font-size:var(--luzmo-font-size-m);--question-box-color:var(--luzmo-font-color);--question-box-muted-color:color-mix(in srgb, var(--luzmo-font-color) 80%, var(--luzmo-background-color));--question-box-background-color:var(--luzmo-background-color);--question-box-border-color:var(--luzmo-border-color);--question-box-border-width:var(--luzmo-border-width);--question-box-border-radius:var(--luzmo-border-radius-l);--question-box-padding:var(--luzmo-spacing-5);--question-box-gap:var(--luzmo-spacing-4);--question-box-header-gap:var(--luzmo-spacing-3);--question-box-header-actions-gap:var(--luzmo-spacing-2);--question-box-header-actions-inset:var(--luzmo-spacing-2);--question-box-header-control-size:var(--luzmo-component-height);--question-box-max-inline-size:40rem;--question-box-body-max-block-size:24rem;--question-box-title-font-size:var(--question-box-font-size);--question-box-title-line-height:1.3;--question-box-progress-font-size:var(--luzmo-font-size-s);--question-box-selected-count-font-size:var(--luzmo-font-size-s);--question-box-option-min-block-size:var(--luzmo-component-height);--question-box-option-hover-background:var(--luzmo-background-color-hover);--question-box-option-number-size:var(--luzmo-component-height-xs);--question-box-descriptive-option-padding-block:var(--question-box-option-padding-block);--question-box-option-padding-block:var(--luzmo-spacing-1);--question-box-option-padding-inline:var(--luzmo-spacing-3);--question-box-option-gap:var(--luzmo-spacing-3);--question-box-heading-copy-gap:0px;--question-box-heading-copy-offset:calc(var(--question-box-font-size) * -.25);--question-box-copy-gap:var(--luzmo-spacing-1);--question-box-copy-gap-detailed:var(--luzmo-spacing-2);--question-box-recommended-gap:var(--luzmo-spacing-2);--question-box-summary-gap:var(--luzmo-spacing-4);--question-box-body-focus-inset:calc(var(--luzmo-indicator-gap) + var(--luzmo-indicator-width));--question-box-focus-ring-width:var(--luzmo-indicator-width);--question-box-focus-ring-gap:var(--luzmo-indicator-gap);--question-box-focus-ring-color:var(--luzmo-indicator-color);--question-box-divider-width:0px;--question-box-option-number-background:var(--luzmo-background-color);--question-box-option-number-border-color:var(--luzmo-border-color);--question-box-option-number-color:var(--luzmo-font-color);--question-box-option-number-selected-background:var(--luzmo-primary);--question-box-option-number-selected-color:var(--luzmo-primary-inverse-color);--question-box-other-field-min-block-size:var(--question-box-option-min-block-size);--question-box-other-field-font-size:var(--question-box-font-size);--question-box-divider-color:var(--luzmo-border-color);--question-box-scrollbar-width:var(--luzmo-scrollbar-size);--question-box-scrollbar-track-background:var(--luzmo-scrollbar-track-background);--question-box-scrollbar-track-border-radius:var(--luzmo-scrollbar-track-border-radius);--question-box-scrollbar-thumb-background:var(--luzmo-scrollbar-thumb-background);--question-box-scrollbar-thumb-border-radius:var(--luzmo-scrollbar-thumb-border-radius);--question-box-scrollbar-thumb-hover-background:var(--luzmo-scrollbar-thumb-hover-background)}:host([size=s]){--question-box-padding:var(--luzmo-spacing-4);--question-box-font-size:var(--luzmo-font-size-s);--question-box-selected-count-font-size:var(--luzmo-font-size-xs);--question-box-title-font-size:var(--question-box-font-size);--question-box-header-control-size:var(--luzmo-component-height-s);--question-box-option-min-block-size:var(--luzmo-component-height-s);--question-box-option-number-size:var(--luzmo-component-height-xs);--question-box-other-field-min-block-size:var(--question-box-option-min-block-size);--question-box-other-field-font-size:var(--question-box-font-size)}:host([size=l]){--question-box-font-size:var(--luzmo-font-size-l);--question-box-selected-count-font-size:var(--luzmo-font-size-m);--question-box-title-font-size:var(--question-box-font-size);--question-box-header-control-size:var(--luzmo-component-height-l);--question-box-option-min-block-size:var(--luzmo-component-height-l);--question-box-option-number-size:var(--luzmo-component-height-s);--question-box-other-field-min-block-size:var(--question-box-option-min-block-size);--question-box-other-field-font-size:var(--question-box-font-size)}:host([size=xl]){--question-box-font-size:var(--luzmo-font-size-xl);--question-box-selected-count-font-size:var(--luzmo-font-size-l);--question-box-title-font-size:var(--question-box-font-size);--question-box-header-control-size:var(--luzmo-component-height-xl);--question-box-option-min-block-size:var(--luzmo-component-height-xl);--question-box-option-number-size:var(--luzmo-component-height);--question-box-other-field-min-block-size:var(--question-box-option-min-block-size);--question-box-other-field-font-size:var(--question-box-font-size)}`,u=`__other__`,d={continue:`Next`,back:`Back`,submit:`Submit`,skip:`Skip`,change:`Change`,close:`Close`,other:`Something else`,otherPlaceholder:`Something else`,recommended:`Recommended`,answerTitle:`Answer`,answersTitle:`Answers`,progress:`{current} of {total}`,selectedCount:`{count} selected`,selectedCountOne:`{count} selected`,recommendedSuffix:`{label} ({recommended})`,answer:`{answer}`,requiredSelectionDescription:`Choose one or more options.`,selectionRangeDescription:`Choose between {min} and {max} options.`,minSelectedError:`Choose at least {min} options.`,maxSelectedError:`Choose at most {max} options.`,otherRequiredError:`Enter a value for this option.`},f=e=>`${e}Other`,p=e=>!!e.other||e.options.length===0,m=e=>typeof e.other==`object`&&e.other?e.other:{},h=e=>Object.fromEntries(Object.entries(e)),g=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},_=(e,t)=>{let n=new Set([...Object.keys(e),...Object.keys(t)]);for(let r of n){let n=e[r],i=t[r];if(Array.isArray(n)||Array.isArray(i)){if(!Array.isArray(n)||!Array.isArray(i)||n.length!==i.length||n.some((e,t)=>e!==i[t]))return!1}else if(n!==i)return!1}return!0},v=e=>{let t=new Set,n=[];for(let r of e)t.has(r)||(t.add(r),n.push(r));return n},y=e=>{let t=new Set(e.options.map(e=>e.value));return p(e)&&t.add(u),t},b=(e,t)=>{let n=t[e.id];return e.type===`single`?typeof n==`string`&&n?[n]:[]:Array.isArray(n)?v(n):[]},x=(e,t)=>b(e,t).includes(u),S=e=>{let t=Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0));return{...d,...t}},C=(e,t)=>{let n=e;for(let[e,r]of Object.entries(t))n=n.replaceAll(`{${e}}`,r);return n},w=e=>{let t=new Set;for(let n of e){if(!n.id)throw TypeError(`luzmo-question-box: every question needs an id.`);if(t.has(n.id))throw TypeError(`luzmo-question-box: duplicate question id "${n.id}".`);t.add(n.id);let r=f(n.id);if(e.some(e=>e.id===r))throw TypeError(`luzmo-question-box: question id "${r}" collides with Other text for "${n.id}".`);if(n.type!==`multiple`&&(n.minSelected!==void 0||n.maxSelected!==void 0))throw TypeError(`luzmo-question-box: minSelected and maxSelected only apply to multiple-choice question "${n.id}".`);for(let[e,t]of[[`minSelected`,n.minSelected],[`maxSelected`,n.maxSelected]])if(t!==void 0&&(!Number.isInteger(t)||t<0))throw TypeError(`luzmo-question-box: ${e} must be a non-negative integer on "${n.id}".`);let i=n.minSelected??+!!n.required;if(n.maxSelected!==void 0&&i>n.maxSelected)throw TypeError(`luzmo-question-box: minSelected cannot exceed maxSelected on "${n.id}".`);let a=n.options.filter(e=>!e.disabled).length+ +!!p(n);if(n.type===`multiple`&&i>a)throw TypeError(`luzmo-question-box: minSelected exceeds the available options on "${n.id}".`);let o=new Set;for(let e of n.options){if(!e.value)throw TypeError(`luzmo-question-box: option values cannot be empty on "${n.id}".`);if(e.value===`__other__`)throw TypeError(`luzmo-question-box: "${u}" is reserved on "${n.id}".`);if(o.has(e.value))throw TypeError(`luzmo-question-box: duplicate option value "${e.value}" on "${n.id}".`);o.add(e.value)}}},T=(e,t)=>{let n=Object.fromEntries([]);for(let r of e){let e=y(r),i=t[r.id],a=Object.hasOwn(t,r.id);if(r.type===`single`)typeof i==`string`&&e.has(i)?g(n,r.id,i):!a&&typeof r.default==`string`&&(e.has(r.default)||r.options.length===0)&&g(n,r.id,r.options.length===0?u:r.default);else{let t=[...r.options.map(e=>e.value),...p(r)?[u]:[]],o=v(Array.isArray(i)?i.filter(t=>e.has(t)):[]);if(o.length>0)g(n,r.id,t.filter(e=>o.includes(e)));else if(!a&&Array.isArray(r.default)){let i=v(r.default.filter(t=>e.has(t)));i.length>0&&g(n,r.id,t.filter(e=>i.includes(e)))}}let o=f(r.id),s=t[o];typeof s==`string`?g(n,o,s):!a&&r.options.length===0&&typeof r.default==`string`&&g(n,o,r.default)}return n},E=e=>e.minSelected??+!!e.required,D=(e,t)=>{let n=E(e),r=e.maxSelected;return n>0&&r!==void 0?C(t.selectionRangeDescription,{min:String(n),max:String(r)}):n===1?t.requiredSelectionDescription:n>1?C(t.minSelectedError,{min:String(n)}):r===void 0?void 0:C(t.maxSelectedError,{max:String(r)})},O=(e,t)=>{let n=b(e,t),r=E(e),i=e.maxSelected;if(n.length<r)return r<=1?`missing`:`minimum`;if(i!==void 0&&n.length>i)return`maximum`;if(x(e,t)&&!String(t[f(e.id)]??``).trim())return`otherText`},k=(e,t)=>O(e,t)!==void 0,A=(e,t,n)=>{switch(O(e,t)){case`minimum`:return C(n.minSelectedError,{min:String(E(e))});case`maximum`:return C(n.maxSelectedError,{max:String(e.maxSelected)});case`otherText`:return n.otherRequiredError;default:return}},j=(e,t,n,r,i)=>{if(i||t.disabled)return!0;if(e.type!==`multiple`||n)return!1;let a=e.maxSelected;return a!==void 0&&b(e,r).length>=a},M=(e,t)=>C(e===1?t.selectedCountOne:t.selectedCount,{count:String(e)}),N,ee=(e,t)=>{try{return N?.language!==t&&(N={language:t,formatter:new Intl.ListFormat(t,{style:`narrow`,type:`conjunction`})}),N.formatter.format(e)}catch{return e.join(`, `)}},te=(e,t)=>e.recommended?C(t.recommendedSuffix,{label:e.label,recommended:t.recommended}):e.label,ne=e=>{let t=e.options.map(e=>({const:e.value,title:e.label}));return p(e)&&e.options.length>0&&t.push({const:u,title:typeof e.other==`object`&&e.other.label||d.other}),t},re=e=>{let t={type:`string`};return typeof e.other==`object`&&e.other.label&&(t.title=e.other.label),t},ie=e=>{let t=[],n=[];for(let r of e){if(r.options.length===0){let e={type:`string`};r.title&&(e.title=r.title),r.description&&(e.description=r.description),typeof r.default==`string`&&(e.default=r.default),t.push([r.id,e]),r.required&&n.push(r.id);continue}let e=ne(r);if(r.type===`single`){let n={type:`string`,oneOf:e};r.title&&(n.title=r.title),r.description&&(n.description=r.description),typeof r.default==`string`&&r.options.some(e=>e.value===r.default)&&(n.default=r.default),t.push([r.id,n])}else{let n={type:`array`,items:{anyOf:e}};r.title&&(n.title=r.title),r.description&&(n.description=r.description);let i=r.minSelected??(r.required?1:void 0);if(i!==void 0&&(n.minItems=i),r.maxSelected!==void 0&&(n.maxItems=r.maxSelected),Array.isArray(r.default)){let t=new Set(e.map(e=>e.const)),i=r.default.filter(e=>t.has(e));i.length>0&&(n.default=i)}t.push([r.id,n])}r.required&&n.push(r.id),p(r)&&t.push([f(r.id),re(r)])}let r=Object.fromEntries(t);return n.length>0?{type:`object`,properties:r,required:n}:{type:`object`,properties:r}},ae=(e,t)=>String(t[f(e.id)]??``).trim(),P=(e,t)=>{let n=[];for(let r of e){let e=ae(r,t);if(r.options.length===0){e&&n.push([r.id,e]);continue}let i=b(r,t);r.type===`single`?i[0]&&n.push([r.id,i[0]]):i.length>0&&n.push([r.id,[...i]]),p(r)&&x(r,t)&&e&&n.push([f(r.id),e])}return Object.fromEntries(n)},F=e=>!!e&&typeof e==`object`&&!Array.isArray(e),I=e=>F(e)?e:{},L=e=>{let t=e.oneOf??e.items?.anyOf;if(Array.isArray(t)){let e=[],n=new Set;for(let r of t)!F(r)||typeof r.const!=`string`||!r.const||n.has(r.const)||(n.add(r.const),e.push({value:r.const,label:typeof r.title==`string`&&r.title?r.title:r.const}));return{declared:!0,options:e}}let n=e.enum??e.items?.enum;if(Array.isArray(n)){let t=e.enumNames??e.items?.enumNames,r=new Set,i=[];for(let[e,a]of n.entries()){if(typeof a!=`string`||!a||r.has(a))continue;r.add(a);let n=t?.[e];i.push({value:a,label:typeof n==`string`&&n?n:a})}return{declared:!0,options:i}}return{declared:!1,options:[]}},R=e=>f(e),z=e=>e.format!==void 0||e.minLength!==void 0||e.maxLength!==void 0||e.pattern!==void 0,B=e=>e.type===`string`&&!L(e).declared&&!z(e),V=e=>{if(e.type!==`object`||!e.properties)return[];let t=e.properties,n=new Set(e.required??[]),r=new Set;for(let e of Object.keys(t)){let n=R(e),i=L(I(t[e])),a=I(t[n]);n in t&&B(a)&&i.options.some(e=>e.value===`__other__`)&&r.add(n)}let i=[];for(let[e,a]of Object.entries(t)){if(r.has(e))continue;let o=I(a),s=L(o),c=s.options.some(e=>e.value===u),l=R(e);if(c&&!r.has(l))continue;let d=s.options.filter(e=>e.value!==u);if(o.type===`number`||o.type===`integer`||o.type===`boolean`||o.type!==`string`&&o.type!==`array`||s.declared&&s.options.length===0||o.type===`array`&&!s.declared||o.type===`string`&&!s.declared&&z(o))continue;let f={id:e,type:o.type===`array`?`multiple`:`single`,title:o.title||e,options:d};if(o.description&&(f.description=o.description),n.has(e)&&(f.required=!0),o.type===`array`?(o.minItems!==void 0&&(f.minSelected=o.minItems),o.maxItems!==void 0&&(f.maxSelected=o.maxItems),Array.isArray(o.default)&&o.default.length>0&&(f.default=o.default)):typeof o.default==`string`&&(f.default=o.default),c&&l in t){let e=I(t[l]);f.other=!e.title||{label:e.title}}i.push(f)}return i};function H(e){switch(e){case`s`:return`xs`;case`m`:return`s`;case`l`:return`m`;default:return`l`}}function U(e){switch(e){case`m`:return`xs`;case`l`:return`s`;case`xl`:case`xxl`:return`m`;default:return`xxs`}}function W(e){return e.step>=e.questions.length-1}function G(e,t){let n=e.selectedValues(t);return n.length===0?``:ee(n.map(n=>{if(n===`__other__`)return String(e.value[f(t.id)]??e.copy.other);let r=t.options.find(e=>e.value===n);return r?te(r,e.copy):n}),e.language)}function K(e,t){let n=G(e,t);return i.html`<span class="summary-value">${e.copy.answer.split(`{answer}`).map((e,t)=>i.html`${t>0?i.html`<span class="summary-answer">${n}</span>`:i.nothing}${e}`)}</span>`}function q(e){let t=e.copy;return i.html`
19
+ <div class="card resolved">
20
+ <div class="summary">
21
+ <h2 class="summary-heading" id="resolved-title" tabindex="-1">
22
+ ${e.questions.reduce((t,n)=>t+e.selectedValues(n).length,0)===1?t.answerTitle:t.answersTitle}
23
+ </h2>
24
+ ${(0,c.repeat)(e.questions,e=>e.id,t=>i.html`
25
+ <div class="summary-row">
26
+ <span class="summary-title">${t.title}</span>
27
+ ${K(e,t)}
28
+ </div>
29
+ `)}
30
+ </div>
31
+ <div class="summary-actions">
32
+ ${!e.submitted||e.showChange?i.html`
33
+ <luzmo-button
34
+ id="change-button"
35
+ dir=${e.dir}
36
+ variant="primary"
37
+ treatment=${e.submitted?`fill`:`outline`}
38
+ size=${e.size}
39
+ ?disabled=${e.disabled}
40
+ @click=${e.handlers.change}
41
+ >${t.change}</luzmo-button
42
+ >
43
+ `:i.nothing}
44
+ ${e.submitted?i.nothing:i.html`
45
+ <luzmo-button
46
+ id="review-submit-button"
47
+ dir=${e.dir}
48
+ variant="primary"
49
+ size=${e.size}
50
+ ?disabled=${e.disabled||e.readonly}
51
+ @click=${e.handlers.primary}
52
+ >${t.submit}</luzmo-button
53
+ >
54
+ `}
55
+ </div>
56
+ </div>
57
+ `}function J(e,t,n){let r=e.optionIndicator===`letters`&&n<26?String.fromCharCode(65+n):String(n+1);return i.html`
58
+ <span
59
+ class=${t.description?`option-content option-content--detailed`:`option-content`}
60
+ >
61
+ <span class="option-number" aria-hidden="true">${r}</span>
62
+ <span class="option-copy">
63
+ <span class="option-heading">
64
+ <span class="option-text">
65
+ <span class="option-label">${t.label}</span>
66
+ ${t.hint?i.html`<span class="option-hint">${t.hint}</span>`:i.nothing}
67
+ </span>
68
+ ${t.recommended?i.html`<luzmo-badge
69
+ class="recommended-label"
70
+ dir=${e.dir}
71
+ variant="neutral"
72
+ treatment="subtle"
73
+ size=${H(e.size)}
74
+ >${e.copy.recommended}</luzmo-badge
75
+ >`:i.nothing}
76
+ </span>
77
+ ${t.description?i.html`<span class="option-description"
78
+ >${t.description}</span
79
+ >`:i.nothing}
80
+ </span>
81
+ </span>
82
+ `}function Y(e,t){return e.disabledReason?i.html`<span class="visually-hidden" id="option-reason-${t}"
83
+ >${e.disabledReason}</span
84
+ >`:i.nothing}function oe(e,t){return t?i.html`
85
+ <luzmo-help-text
86
+ id="question-error"
87
+ dir=${e.dir}
88
+ slot="negative-help-text"
89
+ >${t}</luzmo-help-text
90
+ >
91
+ `:i.nothing}function X(e,t){if(t.type!==`multiple`)return i.nothing;let n=e.showError?e.questionError(t):void 0;return i.html`
92
+ <span class="selected-count" aria-live="polite"
93
+ >${n?i.html`<luzmo-help-text
94
+ id="question-error"
95
+ class="status-error"
96
+ dir=${e.dir}
97
+ variant="negative"
98
+ >${n}</luzmo-help-text
99
+ >`:M(e.selectedValues(t).length,e.copy)}</span
100
+ >
101
+ `}function se(e,t){return i.html`
102
+ <div class="other-actions">
103
+ ${X(e,t)}
104
+ ${e.hideSkip?i.nothing:i.html`
105
+ <luzmo-button
106
+ id="other-skip-button"
107
+ dir=${e.dir}
108
+ variant="primary"
109
+ size=${H(e.size)}
110
+ quiet
111
+ ?disabled=${e.disabled}
112
+ @click=${e.handlers.skip}
113
+ >${e.copy.skip}</luzmo-button
114
+ >
115
+ `}
116
+ <luzmo-button
117
+ id="other-primary-button"
118
+ dir=${e.dir}
119
+ class="other-primary"
120
+ variant="primary"
121
+ treatment="outline"
122
+ size=${H(e.size)}
123
+ ?disabled=${e.disabled||e.readonly||e.questionInvalid(t)}
124
+ @click=${e.handlers.primary}
125
+ >${W(e)?e.copy.submit:e.copy.continue}</luzmo-button
126
+ >
127
+ </div>
128
+ `}function ce(e,t){return e.isOtherSelected(t)&&String(e.value[f(t.id)]??``).trim().length>0}function Z(e,t){let n=m(t),r=f(t.id),a=e.isOtherSelected(t),o=e.optionDisabled(t,{value:u,label:n.label||e.copy.other},a),s=e.showError&&a&&!!e.questionError(t);return i.html`
129
+ <luzmo-text-field
130
+ id="other-field"
131
+ dir=${e.dir}
132
+ class="other-field"
133
+ size=${e.size}
134
+ label=${n.label||e.copy.other}
135
+ placeholder=${n.placeholder||e.copy.otherPlaceholder}
136
+ border="none"
137
+ multiline
138
+ grows
139
+ rows="1"
140
+ .value=${String(e.value[r]??``)}
141
+ ?disabled=${o}
142
+ ?readonly=${e.readonly}
143
+ ?invalid=${s}
144
+ @keydown=${e.handlers.otherKeydown}
145
+ @input=${e.handlers.otherInput}
146
+ @change=${e.handlers.otherChange}
147
+ ></luzmo-text-field>
148
+ `}function le(e,t){let n=ce(e,t);return t.type===`multiple`||e.hideSkip&&!n?i.nothing:i.html`
149
+ <luzmo-button
150
+ id="other-row-action"
151
+ dir=${e.dir}
152
+ class="other-primary"
153
+ variant="primary"
154
+ treatment="outline"
155
+ size=${H(e.size)}
156
+ ?disabled=${n?e.disabled||e.readonly||e.questionInvalid(t):e.disabled}
157
+ @click=${n?e.handlers.primary:e.handlers.skip}
158
+ >${n?W(e)?e.copy.submit:e.copy.continue:e.copy.skip}</luzmo-button
159
+ >
160
+ `}function ue(e,t,n){let r=e.selectedValues(t)[0]??``,a=t.options.some(e=>e.description)?`options options--descriptive`:`options`;return i.html`
161
+ <luzmo-radio-group
162
+ id="options"
163
+ dir=${e.dir}
164
+ class=${a}
165
+ vertical
166
+ label=${t.title}
167
+ manual-selection
168
+ aria-readonly=${(0,s.ifDefined)(e.readonly?`true`:void 0)}
169
+ aria-required=${(0,s.ifDefined)(t.required?`true`:void 0)}
170
+ .selected=${r}
171
+ ?invalid=${!!n}
172
+ @change=${e.handlers.radioChange}
173
+ @focusin=${e.handlers.focusIn}
174
+ @focusout=${e.handlers.focusOut}
175
+ >
176
+ ${(0,c.repeat)(t.options,e=>e.value,(n,a)=>i.html`
177
+ <luzmo-radio
178
+ class="numbered-option"
179
+ dir=${e.dir}
180
+ value=${n.value}
181
+ data-option-index=${a}
182
+ size=${e.size}
183
+ emphasized
184
+ ?disabled=${e.optionDisabled(t,n,n.value===r)}
185
+ ?readonly=${e.readonly}
186
+ aria-describedby=${(0,s.ifDefined)(n.disabledReason?`option-reason-${a}`:void 0)}
187
+ @click=${e.handlers.radioClick}
188
+ @change=${e.handlers.radioChange}
189
+ >
190
+ ${J(e,n,a)}
191
+ ${Y(n,a)}
192
+ </luzmo-radio>
193
+ `)}
194
+ ${p(t)?i.html`
195
+ <div class="other-option-row">
196
+ <div class="other-option-answer">
197
+ <luzmo-radio
198
+ class="numbered-option other-option"
199
+ dir=${e.dir}
200
+ value=${u}
201
+ data-option-index=${t.options.length}
202
+ size=${e.size}
203
+ emphasized
204
+ aria-label=${m(t).label||e.copy.other}
205
+ ?disabled=${e.disabled}
206
+ ?readonly=${e.readonly}
207
+ @change=${e.handlers.radioChange}
208
+ >
209
+ <span class="option-number option-edit" aria-hidden="true">
210
+ <luzmo-icon
211
+ block
212
+ dir=${e.dir}
213
+ .size=${U(e.size)}
214
+ .icon=${o.luzmoPencil}
215
+ ></luzmo-icon>
216
+ </span>
217
+ </luzmo-radio>
218
+ ${Z(e,t)}
219
+ </div>
220
+ ${le(e,t)}
221
+ </div>
222
+ `:i.nothing}
223
+ ${oe(e,n)}
224
+ </luzmo-radio-group>
225
+ `}function Q(e,t,n){let r=new Set(e.selectedValues(t)),a=e.isOtherSelected(t),l=t.options.some(e=>e.description)?`options options--descriptive`:`options`,d=D(t,e.copy);return i.html`
226
+ ${d?i.html`<span class="visually-hidden" id="selection-requirement"
227
+ >${d}</span
228
+ >`:i.nothing}
229
+ <luzmo-field-group
230
+ id="options"
231
+ dir=${e.dir}
232
+ class=${l}
233
+ vertical
234
+ label=${t.title}
235
+ aria-describedby=${(0,s.ifDefined)(d?`selection-requirement`:void 0)}
236
+ ?invalid=${!!n}
237
+ @focusin=${e.handlers.focusIn}
238
+ @focusout=${e.handlers.focusOut}
239
+ >
240
+ ${(0,c.repeat)(t.options,e=>e.value,(n,a)=>i.html`
241
+ <luzmo-checkbox
242
+ class="numbered-option"
243
+ dir=${e.dir}
244
+ data-value=${n.value}
245
+ data-option-index=${a}
246
+ size=${e.size}
247
+ emphasized
248
+ ?checked=${r.has(n.value)}
249
+ ?disabled=${e.optionDisabled(t,n,r.has(n.value))}
250
+ ?readonly=${e.readonly}
251
+ aria-describedby=${(0,s.ifDefined)(n.disabledReason?`option-reason-${a}`:void 0)}
252
+ @change=${e.handlers.checkboxChange}
253
+ >
254
+ ${J(e,n,a)}
255
+ ${Y(n,a)}
256
+ </luzmo-checkbox>
257
+ `)}
258
+ ${p(t)?i.html`
259
+ <div class="other-option-row other-option-row--multiple">
260
+ <div class="other-option-answer">
261
+ <luzmo-checkbox
262
+ class="numbered-option other-option"
263
+ dir=${e.dir}
264
+ data-value=${u}
265
+ data-option-index=${t.options.length}
266
+ size=${e.size}
267
+ emphasized
268
+ ?checked=${a}
269
+ ?disabled=${e.optionDisabled(t,{value:u,label:e.copy.other},a)}
270
+ ?readonly=${e.readonly}
271
+ @change=${e.handlers.checkboxChange}
272
+ >
273
+ <span class="option-number option-edit" aria-hidden="true">
274
+ <luzmo-icon
275
+ block
276
+ dir=${e.dir}
277
+ .size=${U(e.size)}
278
+ .icon=${o.luzmoPencil}
279
+ ></luzmo-icon>
280
+ </span>
281
+ <span class="visually-hidden"
282
+ >${m(t).label||e.copy.other}</span
283
+ >
284
+ </luzmo-checkbox>
285
+ ${Z(e,t)}
286
+ </div>
287
+ </div>
288
+ ${se(e,t)}
289
+ `:i.nothing}
290
+ </luzmo-field-group>
291
+ `}function de(e,t){let n=e.copy,r=C(n.progress,{current:String(e.step+1),total:String(e.questions.length)}),a=!e.questionInvalid(t);return i.html`
292
+ <header class="header">
293
+ <div class="heading">
294
+ <h2 class="title" id="question-title" tabindex="-1">
295
+ ${t.title}
296
+ </h2>
297
+ ${t.description?i.html`<p class="description" id="question-description">
298
+ ${t.description}
299
+ </p>`:i.nothing}
300
+ </div>
301
+ <div class="header-actions">
302
+ ${e.questions.length>1?i.html`
303
+ <nav class="step-navigation" aria-label=${r}>
304
+ <luzmo-action-button
305
+ id="back-button"
306
+ dir=${e.dir}
307
+ quiet
308
+ size=${H(e.size)}
309
+ label=${n.back}
310
+ ?disabled=${e.disabled||e.step===0}
311
+ @click=${e.handlers.back}
312
+ >
313
+ <div slot="icon">
314
+ <luzmo-icon
315
+ block
316
+ dir=${e.dir}
317
+ .size=${H(e.size)}
318
+ .icon=${o.luzmoAngleLeft}
319
+ ></luzmo-icon>
320
+ </div>
321
+ </luzmo-action-button>
322
+ <p class="progress" id="progress" aria-live="polite">
323
+ ${r}
324
+ </p>
325
+ <luzmo-action-button
326
+ id="continue-button"
327
+ dir=${e.dir}
328
+ quiet
329
+ size=${H(e.size)}
330
+ label=${n.continue}
331
+ ?disabled=${e.disabled||e.readonly||W(e)||!a}
332
+ @click=${e.handlers.primary}
333
+ >
334
+ <div slot="icon">
335
+ <luzmo-icon
336
+ block
337
+ dir=${e.dir}
338
+ .size=${H(e.size)}
339
+ .icon=${o.luzmoAngleRight}
340
+ ></luzmo-icon>
341
+ </div>
342
+ </luzmo-action-button>
343
+ </nav>
344
+ `:i.nothing}
345
+ ${e.hideClose?i.nothing:i.html`
346
+ <luzmo-close-button
347
+ id="close-button"
348
+ dir=${e.dir}
349
+ class="close"
350
+ label=${n.close}
351
+ size=${e.size}
352
+ ?disabled=${e.disabled}
353
+ @click=${e.handlers.cancel}
354
+ ></luzmo-close-button>
355
+ `}
356
+ </div>
357
+ </header>
358
+ `}function fe(e,t){let n=e.copy,r=!e.questionInvalid(t);return i.html`
359
+ <footer class="footer">
360
+ <div class="status">${X(e,t)}</div>
361
+ <div class="actions">
362
+ ${e.hideSkip?i.nothing:i.html`
363
+ <luzmo-button
364
+ id="skip-button"
365
+ dir=${e.dir}
366
+ variant="primary"
367
+ treatment="outline"
368
+ size=${H(e.size)}
369
+ ?disabled=${e.disabled}
370
+ @click=${e.handlers.skip}
371
+ >${n.skip}</luzmo-button
372
+ >
373
+ `}
374
+ ${W(e)&&t.type===`multiple`?i.html`
375
+ <luzmo-button
376
+ id="submit-button"
377
+ dir=${e.dir}
378
+ variant="primary"
379
+ treatment="outline"
380
+ size=${H(e.size)}
381
+ ?disabled=${e.disabled||e.readonly||!r}
382
+ @click=${e.handlers.primary}
383
+ >${n.submit}</luzmo-button
384
+ >
385
+ `:i.nothing}
386
+ </div>
387
+ </footer>
388
+ `}function pe(e){if(e.questions.length===0)return i.nothing;if(e.resolved)return q(e);let t=e.questions[e.step];if(!t)return i.nothing;let n=e.showError?e.questionError(t):void 0,r=!p(t)&&(t.type===`multiple`||!e.hideSkip),a=[e.questions.length>1?`progress`:``,t.description?`question-description`:``,n?`question-error`:``].filter(Boolean).join(` `)||void 0;return i.html`
389
+ <div class="card" @click=${e.handlers.contentClick}>
390
+ ${de(e,t)}
391
+ <div
392
+ class="body"
393
+ role="group"
394
+ aria-labelledby="question-title"
395
+ aria-describedby=${(0,s.ifDefined)(a)}
396
+ >
397
+ ${t.type===`single`?ue(e,t,n):Q(e,t,n)}
398
+ </div>
399
+ ${r?fe(e,t):i.nothing}
400
+ </div>
401
+ `}var $=class extends t.n(e.n,{validSizes:[`s`,`m`,`l`,`xl`]}){constructor(...e){super(...e),this.questions=[],this.value={},this.labels={},this.dir=`ltr`,this.disabled=!1,this.readonly=!1,this.hideClose=!1,this.hideSkip=!1,this.showChange=!1,this._optionIndicator=`numbers`,this._step=0,this._resolved=!1,this._submitted=!1,this._showError=!1,this.languageResolver=new r.t(this),this._radioChangeAdvanced=!1,this.multipleChoiceRoving=new n.t(this,{direction:`vertical`,elements:()=>[...this.shadowRoot?.querySelectorAll(`luzmo-field-group#options luzmo-checkbox[data-option-index]`)??[]],focusInIndex:e=>{let t=e.findIndex(e=>e.checked&&!e.disabled);return t===-1?e.findIndex(e=>!e.disabled):t},isFocusableElement:e=>!e.disabled,listenerScope:()=>this.shadowRoot?.querySelector(`luzmo-field-group#options`)}),this.handleKeydown=e=>{if(this.disabled)return;let t=e.composedPath(),n=this.shadowRoot?.activeElement;if(e.key!==`Escape`&&this.otherField&&(t.includes(this.otherField)||n===this.otherField))return;let r=this.focusedOptionForEvent(e),i=this.currentQuestion;if(i?.type===`multiple`&&r&&this.multipleChoiceRoving.acceptsEventCode(e.code)&&!e.defaultPrevented){let t=this.multipleChoiceRoving.elements.indexOf(r);t!==-1&&(this.multipleChoiceRoving.currentIndex=t),this.multipleChoiceRoving.hostContainsFocus(),this.multipleChoiceRoving.handleKeydown(e);return}if(!this.readonly&&e.code===`Space`&&r&&!r.hasAttribute(`disabled`)){e.preventDefault();return}let a=this.optionIndicator===`letters`&&/^[a-z]$/i.test(e.key)?e.key.toUpperCase().charCodeAt(0)-65:this.optionIndicator===`numbers`&&/^[1-9]$/.test(e.key)?Number(e.key)-1:-1,o=!this.readonly&&r&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&a>=0?this.shadowRoot?.querySelector(`[data-option-index="${a}"]:not([disabled])`):void 0;if(o){e.preventDefault();let t=o.getAttribute(`value`)??o.dataset.value;if(i?.type===`single`&&t!==`__other__`&&this.selectedValues(i)[0]===t){this.advanceAfterSingleSelection();return}o.click();return}e.key===`Escape`&&(e.preventDefault(),!this.disabled&&this.cancel())},this.handleKeyup=e=>{if(this.disabled||this.readonly||e.code!==`Space`)return;let t=this.focusedOptionForEvent(e);!t||t.hasAttribute(`disabled`)||(e.preventDefault(),t.click())},this.handleFocusIn=e=>{let t=this.focusedOptionForEvent(e);this.markKeyboardFocus(t&&this.optionShowsKeyboardFocus(t)?t:void 0)},this.handleContentClick=e=>{this.disabled||e.composedPath().some(e=>e instanceof Element&&e.matches(`a[href], button, input, select, textarea, [contenteditable="true"], [data-option-index], #other-field, luzmo-action-button, luzmo-button, luzmo-close-button`))||this.focusOptions()},this.handleFocusOut=()=>{requestAnimationFrame(()=>{let e=this.shadowRoot?.activeElement;(!(e instanceof HTMLElement)||e.dataset.optionIndex===void 0)&&this.markKeyboardFocus()})},this.handleCancelClick=e=>{e.preventDefault(),this.cancel()},this.handleSkip=e=>{e.preventDefault(),!this.disabled&&this.emitResult(`decline`)},this.handleBack=e=>{e.preventDefault(),!(this.disabled||this._step===0)&&(this._showError=!1,--this._step,this.updateComplete.then(()=>this.moveFocus(this.questionTitle)))},this.handlePrimary=()=>{let e=this.currentQuestion;if(!(!e||this.disabled||this.readonly)){if(this.questionInvalid(e)){this._showError=!0,this.focusOptions();return}if(this._showError=!1,this._step<this.questions.length-1){this._step+=1,this.updateComplete.then(()=>this.moveFocus(this.questionTitle));return}this.acceptFlow()}},this.handleChange=()=>{this._resolved=!1,this._submitted=!1,this._showError=!1,this.updateComplete.then(()=>this.focusOptions())},this.handleRadioChange=e=>{if(e.stopPropagation(),this.disabled||this.readonly)return;let t=this.currentQuestion;if(!t)return;let n=e.target.value||e.currentTarget.selected;if(n){if(n===`__other__`&&!String(this.value[f(t.id)]??``).trim()){this.requestUpdate(),this.updateComplete.then(()=>this.moveFocus(this.otherField));return}this.commitAnswer(t.id,n,!0),n!==`__other__`&&(this._radioChangeAdvanced=!0,this.advanceAfterSingleSelection(),queueMicrotask(()=>{this._radioChangeAdvanced=!1}))}},this.handleRadioClick=e=>{if(this._radioChangeAdvanced||this.disabled||this.readonly)return;let t=this.currentQuestion,n=e.currentTarget;t?.type===`single`&&n.value!==`__other__`&&this.selectedValues(t)[0]===n.value&&this.advanceAfterSingleSelection()},this.handleCheckboxChange=e=>{if(e.stopPropagation(),this.disabled||this.readonly)return;let t=this.currentQuestion;if(!t)return;let n=e.currentTarget,r=n.dataset.value;if(!r)return;let i=new Set(this.selectedValues(t));if(r===`__other__`&&n.checked&&!String(this.value[f(t.id)]??``).trim()){n.checked=!1,this.moveFocus(this.otherField);return}n.checked?i.add(r):i.delete(r);let a=[...t.options.map(e=>e.value),...p(t)?[u]:[]].filter(e=>i.has(e));this.commitAnswer(t.id,v(a),!0),r===`__other__`&&n.checked&&this.updateComplete.then(()=>this.moveFocus(this.otherField))},this.handleOtherInput=e=>{if(e.stopPropagation(),this.disabled||this.readonly)return;let t=this.currentQuestion;if(!t)return;let n=e.currentTarget;this.commitOther(t,n.value,!1)},this.handleOtherChange=e=>{if(e.stopPropagation(),this.disabled||this.readonly)return;let t=this.currentQuestion;if(!t)return;let n=e.currentTarget;this.commitOther(t,n.value,!0)},this.handleOtherKeydown=e=>{if(e.key!==`Enter`||e.shiftKey||e.isComposing||this.disabled||this.readonly)return;e.preventDefault();let t=this.currentQuestion;t&&String(this.value[f(t.id)]??``).trim()&&this.handlePrimary()}}static get styles(){let e=super.styles;return[...Array.isArray(e)?e:e?[e]:[],(0,i.unsafeCSS)(l)]}get optionIndicator(){return this._optionIndicator}set optionIndicator(e){let t=this._optionIndicator;this._optionIndicator=e===`letters`?`letters`:`numbers`,this.requestUpdate(`optionIndicator`,t)}connectedCallback(){super.connectedCallback(),this.addEventListener(`keydown`,this.handleKeydown),this.addEventListener(`keyup`,this.handleKeyup),this.addEventListener(`focusin`,this.handleFocusIn)}attributeChangedCallback(e,t,n){if(e===`option-indicator`&&n!==null&&n!==`numbers`&&n!==`letters`){this.setAttribute(`option-indicator`,`numbers`);return}super.attributeChangedCallback(e,t,n)}disconnectedCallback(){this.removeEventListener(`keydown`,this.handleKeydown),this.removeEventListener(`keyup`,this.handleKeyup),this.removeEventListener(`focusin`,this.handleFocusIn),super.disconnectedCallback()}focus(){if(this._resolved){this.moveFocus(this.resolvedTitle);return}this.focusOptions()}checkValidity(){return this.questions.every(e=>!this.questionInvalid(e))}submit(){this.disabled||this.readonly||this._submitted||this.acceptFlow()}reset(){this._resolved=!1,this._submitted=!1,this._showError=!1,this._step=0,this.value={}}cancel(){this.emitResult(`cancel`)}willUpdate(e){if(super.willUpdate(e),e.has(`questions`)||e.has(`value`)){if(e.has(`questions`)){w(this.questions);let t=(e.get(`questions`)??[]).map(e=>e.id),n=this.questions.map(e=>e.id);t.join(`\0`)!==n.join(`\0`)&&(this._step=0,this._resolved=!1,this._submitted=!1,this._showError=!1)}let t=T(this.questions,this.value);_(t,this.value)||(this.value=t)}e.has(`questions`)&&(this._step=Math.min(this._step,Math.max(0,this.questions.length-1)))}updated(e){super.updated(e),(e.has(`questions`)||e.has(`size`)||e.has(`disabled`)||e.has(`readonly`)||e.has(`_step`)||e.has(`_resolved`))&&this.multipleChoiceRoving.clearElementCache()}render(){return pe(this.renderContext)}get renderContext(){return{questions:this.questions,value:this.value,copy:this.copy,step:this._step,resolved:this._resolved,submitted:this._submitted,showError:this._showError,disabled:this.disabled,readonly:this.readonly,hideClose:this.hideClose,hideSkip:this.hideSkip,showChange:this.showChange,optionIndicator:this.optionIndicator,size:this.size,dir:this.dir,language:this.languageResolver.language,selectedValues:e=>this.selectedValues(e),isOtherSelected:e=>this.isOtherSelected(e),questionError:e=>this.questionError(e),questionInvalid:e=>this.questionInvalid(e),optionDisabled:(e,t,n)=>this.optionDisabled(e,t,n),handlers:this.renderHandlers}}get renderHandlers(){return{contentClick:this.handleContentClick,back:this.handleBack,primary:this.handlePrimary,skip:this.handleSkip,cancel:this.handleCancelClick,change:this.handleChange,radioChange:this.handleRadioChange,radioClick:this.handleRadioClick,checkboxChange:this.handleCheckboxChange,otherInput:this.handleOtherInput,otherChange:this.handleOtherChange,otherKeydown:this.handleOtherKeydown,focusIn:this.handleFocusIn,focusOut:this.handleFocusOut}}get copy(){return S(this.labels)}get currentQuestion(){return this.questions[this._step]}optionShowsKeyboardFocus(e){let t=e=>{if(!e)return!1;try{return e.matches(`:focus-visible`)||e.matches(`.focus-visible`)}catch{return e.matches(`.focus-visible`)}};return t(e)||t(e.shadowRoot?.activeElement)||this.hasVisibleFocusInTree()}markKeyboardFocus(e){this.shadowRoot?.querySelectorAll(`[data-focus-visible]`).forEach(e=>delete e.dataset.focusVisible),this.shadowRoot?.querySelectorAll(`.option-number--focused`).forEach(e=>e.classList.remove(`option-number--focused`)),e&&(e.dataset.focusVisible=``,e.querySelector(`.option-number`)?.classList.add(`option-number--focused`))}focusedOptionForEvent(e){let t=e.composedPath().find(e=>e instanceof HTMLElement&&e.dataset.optionIndex!==void 0);if(t)return t;let n=this.shadowRoot?.activeElement;return n instanceof HTMLElement&&n.dataset.optionIndex!==void 0?n:void 0}moveFocus(e){if(e)try{e.focus()}catch{try{HTMLElement.prototype.focus.call(e)}catch{return}}}focusOptions(){let e=this.optionsGroup;if(!e){this.moveFocus(this.questionTitle);return}let t=this.currentQuestion,n=t?.type===`single`?this.selectedValues(t)[0]:void 0,r=n?e.querySelector(`luzmo-radio[value="${CSS.escape(n)}"]:not([disabled])`):void 0,i=e.querySelector(`[data-option-index]:not([disabled])`);this.moveFocus(r??i??e)}advanceAfterSingleSelection(){if(this._step<this.questions.length-1){this._step+=1,this.updateComplete.then(()=>this.moveFocus(this.questionTitle));return}this._resolved=!0,this._submitted=!1,this.updateComplete.then(()=>this.focus())}acceptFlow(){let e=this.questions.findIndex(e=>this.questionInvalid(e));if(e!==-1){this._step=e,this._showError=!0,this.updateComplete.then(()=>this.focusOptions());return}this._showError=!1,this._resolved=!0,this._submitted=!0,this.emitResult(`accept`,P(this.questions,this.value)),this.updateComplete.then(()=>this.focus())}commitAnswer(e,t,n){let r=h(this.value);g(r,e,t),this.assignValue(r,n)}commitOther(e,t,n){let r=h(this.value);g(r,f(e.id),t);let i=t.trim().length>0;if(e.type===`single`)i?g(r,e.id,u):r[e.id]===`__other__`&&g(r,e.id,``);else{let t=new Set(this.selectedValues(e));i?t.add(u):t.delete(u),g(r,e.id,[...e.options.map(e=>e.value),u].filter(e=>t.has(e)))}this.assignValue(r,n)}assignValue(e,t){_(e,this.value)||(this.value=e,this.dispatchEvent(new Event(`input`,{bubbles:!0,composed:!0}))),t&&this.dispatchEvent(new Event(`change`,{bubbles:!0,composed:!0}))}emitResult(e,t){let n=e===`accept`?{action:e,content:t}:{action:e};if(e===`accept`){this.dispatchEvent(new CustomEvent(`luzmo-submit`,{detail:n,bubbles:!0,composed:!0}));return}if(e===`decline`){this.dispatchEvent(new CustomEvent(`luzmo-decline`,{detail:n,bubbles:!0,composed:!0}));return}this.dispatchEvent(new CustomEvent(`luzmo-cancel`,{detail:n,bubbles:!0,composed:!0}))}selectedValues(e){return b(e,this.value)}isOtherSelected(e){return x(e,this.value)}questionError(e){return A(e,this.value,this.copy)}questionInvalid(e){return k(e,this.value)}optionDisabled(e,t,n){return j(e,t,n,this.value,this.disabled)}};e.t([(0,a.property)({attribute:!1})],$.prototype,`questions`,void 0),e.t([(0,a.property)({attribute:!1})],$.prototype,`value`,void 0),e.t([(0,a.property)({attribute:!1})],$.prototype,`labels`,void 0),e.t([(0,a.property)({reflect:!0})],$.prototype,`dir`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0})],$.prototype,`disabled`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0})],$.prototype,`readonly`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0,attribute:`hide-close`})],$.prototype,`hideClose`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0,attribute:`hide-skip`})],$.prototype,`hideSkip`,void 0),e.t([(0,a.property)({type:Boolean,reflect:!0,attribute:`show-change`})],$.prototype,`showChange`,void 0),e.t([(0,a.property)({reflect:!0,attribute:`option-indicator`})],$.prototype,`optionIndicator`,null),e.t([(0,a.state)()],$.prototype,`_step`,void 0),e.t([(0,a.state)()],$.prototype,`_resolved`,void 0),e.t([(0,a.state)()],$.prototype,`_submitted`,void 0),e.t([(0,a.state)()],$.prototype,`_showError`,void 0),e.t([(0,a.query)(`#question-title`)],$.prototype,`questionTitle`,void 0),e.t([(0,a.query)(`#other-field`)],$.prototype,`otherField`,void 0),e.t([(0,a.query)(`#options`)],$.prototype,`optionsGroup`,void 0),e.t([(0,a.query)(`#resolved-title`)],$.prototype,`resolvedTitle`,void 0),typeof customElements<`u`&&!customElements.get(`luzmo-question-box`)&&customElements.define(`luzmo-question-box`,$),Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return P}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return ie}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return $}});
@@ -15,4 +15,4 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../radio-d-2GUbYE.cjs`);exports.LuzmoRadio=e.n,exports.LuzmoRadioGroup=e.t;
18
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../radio-O3a1rmCe.cjs");exports.LuzmoRadio=e.n,exports.LuzmoRadioGroup=e.t;
@@ -18,8 +18,8 @@
18
18
  (() => {
19
19
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
20
20
  let e = document.createElement("style");
21
- e.setAttribute("data-luzmo-vars", ""), e.textContent = "html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-border-width: 1px;--luzmo-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-primary-rgb: 68, 52, 255;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5%);--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5%);--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-secondary: #d000d0;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 208, 0, 208;--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba( var(--luzmo-border-color-rgb), 0.4 );--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-width: thin;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-negative-inverse-color: #ffffff;--luzmo-positive-color: rgb(18, 133, 90);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-rgb: 18, 133, 90;--luzmo-positive-inverse-color: #ffffff;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-informative-color: #1670dd;--luzmo-informative-color-rgb: 22, 112, 221;--luzmo-notice-color: rgb(229, 127, 0);--luzmo-seafoam-color: rgb(0, 140, 140);--luzmo-indigo-color: rgb(68, 52, 255);--luzmo-purple-color: rgb(112, 48, 210);--luzmo-fuchsia-color: rgb(205, 30, 170);--luzmo-magenta-color: rgb(203, 36, 98);--luzmo-yellow-color: rgb(228, 208, 0);--luzmo-gray-color: rgb(110, 110, 110);--luzmo-red-color: rgb(202, 34, 28);--luzmo-orange-color: rgb(218, 123, 17);--luzmo-chartreuse-color: rgb(85, 135, 0);--luzmo-celery-color: rgb(48, 134, 22);--luzmo-green-color: rgb(18, 133, 90);--luzmo-cyan-color: rgb(0, 134, 180);--luzmo-blue-color: rgb(22, 112, 221);--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 10px;--luzmo-icon-size-xs: 12px;--luzmo-icon-size-s: 14px;--luzmo-icon-size-m: 16px;--luzmo-icon-size-l: 18px;--luzmo-icon-size-xl: 20px;--luzmo-icon-size-xxl: 32px}", document.head.appendChild(e);
21
+ e.setAttribute("data-luzmo-vars", ""), e.textContent = "html{--luzmo-animation-duration: 0.15s;--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.1);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.15);--luzmo-border-color-rgb: 0, 0, 0;--luzmo-border-color-full: rgb(180, 180, 180);--luzmo-border-color-full-hover: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), black 45%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), black 25%);--luzmo-border-color-disabled: #dddddd;--luzmo-border-radius: 6px;--luzmo-border-radius-s: 4px;--luzmo-border-radius-l: 8px;--luzmo-border-radius-xl: 12px;--luzmo-border-radius-full: 999rem;--luzmo-border-width: 1px;--luzmo-shadow-color-rgb: 0, 0, 0;--luzmo-shadow-opacity: 0.1;--luzmo-shadow-color: rgba( var(--luzmo-shadow-color-rgb), var(--luzmo-shadow-opacity) );--luzmo-font-family: -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Oxygen-Sans, Ubuntu, Cantarell, \"Helvetica Neue\", Helvetica, Arial, sans-serif;--luzmo-font-size-xs: 10px;--luzmo-font-size-s: 12px;--luzmo-font-size-m: 14px;--luzmo-font-size: 14px;--luzmo-font-size-l: 16px;--luzmo-font-size-xl: 18px;--luzmo-font-size-xxl: 20px;--luzmo-font-style: normal;--luzmo-line-height: normal;--luzmo-font-weight: 400;--luzmo-font-weight-semibold: 500;--luzmo-font-weight-bold: 600;--luzmo-font-color: #333;--luzmo-font-color-disabled: var(--luzmo-disabled-color);--luzmo-font-color-extra-dimmed: #888;--luzmo-font-color-hover: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), black 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), black 8%);--luzmo-primary: #4434ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), black 20%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), black 8%);--luzmo-primary-inverse-color: #ffffff;--luzmo-accent-on-subtle-color: var(--luzmo-primary);--luzmo-primary-rgb: 68, 52, 255;--luzmo-background-color: #ffffff;--luzmo-background-color-rgb: 255, 255, 255;--luzmo-background-color-disabled: #eeeeee;--luzmo-background-color-hover: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5%);--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 7%), black 1%);--luzmo-background-color-focus: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 5%), black 1.5%);--luzmo-background-color-highlight: rgb(240, 240, 240);--luzmo-background-color-highlight-disabled: rgb(245, 245, 245);--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), black 20%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), black 10%);--luzmo-secondary: #d000d0;--luzmo-secondary-hover: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-down: color-mix(in oklch, var(--luzmo-secondary), black 20%);--luzmo-secondary-focus: color-mix(in oklch, var(--luzmo-secondary), black 8%);--luzmo-secondary-inverse-color: #ffffff;--luzmo-secondary-rgb: 208, 0, 208;--luzmo-scrollbar-size: 6px;--luzmo-scrollbar-thumb-background: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-scrollbar-thumb-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-thumb-hover-background: rgba( var(--luzmo-border-color-rgb), 0.4 );--luzmo-scrollbar-track-background: transparent;--luzmo-scrollbar-track-border-radius: var(--luzmo-border-radius-s);--luzmo-scrollbar-width: thin;--luzmo-negative-color: #ca221c;--luzmo-negative-color-hover: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), black 20%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), black 8%);--luzmo-negative-on-subtle-color: var(--luzmo-negative-color);--luzmo-negative-color-rgb: 202, 34, 28;--luzmo-negative-inverse-color: #ffffff;--luzmo-positive-color: rgb(18, 133, 90);--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), black 20%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), black 8%);--luzmo-positive-on-subtle-color: color-mix( in oklch, var(--luzmo-positive-color), var(--luzmo-font-color) 11% );--luzmo-positive-color-rgb: 18, 133, 90;--luzmo-positive-inverse-color: #ffffff;--luzmo-selected-color: rgb(110, 110, 110);--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), black 45%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), black 25%);--luzmo-selected-color-hard: #1e1e1e;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), black 45%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), black 25%);--luzmo-neutral-on-subtle-color: var(--luzmo-selected-color-hard);--luzmo-informative-color: #1670dd;--luzmo-informative-color-hover: color-mix(in oklch, var(--luzmo-informative-color), black 8%);--luzmo-informative-color-down: color-mix(in oklch, var(--luzmo-informative-color), black 20%);--luzmo-informative-color-focus: var(--luzmo-informative-color-hover);--luzmo-informative-on-subtle-color: color-mix( in oklch, var(--luzmo-informative-color), var(--luzmo-font-color) 9% );--luzmo-informative-color-rgb: 22, 112, 221;--luzmo-informative-inverse-color: #ffffff;--luzmo-notice-color: rgb(229, 127, 0);--luzmo-notice-color-hover: color-mix(in oklch, var(--luzmo-notice-color), black 8%);--luzmo-notice-color-down: color-mix(in oklch, var(--luzmo-notice-color), black 20%);--luzmo-notice-color-focus: var(--luzmo-notice-color-hover);--luzmo-notice-on-subtle-color: color-mix( in oklch, var(--luzmo-notice-color), var(--luzmo-font-color) 40% );--luzmo-notice-inverse-color: var(--luzmo-selected-color-hard);--luzmo-seafoam-color: rgb(0, 140, 140);--luzmo-indigo-color: rgb(68, 52, 255);--luzmo-purple-color: rgb(112, 48, 210);--luzmo-fuchsia-color: rgb(205, 30, 170);--luzmo-magenta-color: rgb(203, 36, 98);--luzmo-yellow-color: rgb(228, 208, 0);--luzmo-gray-color: rgb(110, 110, 110);--luzmo-red-color: rgb(202, 34, 28);--luzmo-orange-color: rgb(218, 123, 17);--luzmo-chartreuse-color: rgb(85, 135, 0);--luzmo-celery-color: rgb(48, 134, 22);--luzmo-green-color: rgb(18, 133, 90);--luzmo-cyan-color: rgb(0, 134, 180);--luzmo-blue-color: rgb(22, 112, 221);--luzmo-disabled-color: #aaaaaa;--luzmo-spacing-1: 2px;--luzmo-spacing-2: 4px;--luzmo-spacing-3: 8px;--luzmo-spacing-4: 12px;--luzmo-spacing-5: 16px;--luzmo-indicator-gap: 2px;--luzmo-indicator-width: 1px;--luzmo-indicator-color: var(--luzmo-primary);--luzmo-component-height-xxs: 20px;--luzmo-component-height-xs: 24px;--luzmo-component-height-s: 28px;--luzmo-component-height: 32px;--luzmo-component-height-l: 40px;--luzmo-component-height-xl: 48px;--luzmo-component-height-xxl: 64px;--luzmo-icon-size-xxs: 10px;--luzmo-icon-size-xs: 12px;--luzmo-icon-size-s: 14px;--luzmo-icon-size-m: 16px;--luzmo-icon-size-l: 18px;--luzmo-icon-size-xl: 20px;--luzmo-icon-size-xxl: 32px}html.dark,html.dark-theme,:where(.dark-theme){--luzmo-border-color: rgba(var(--luzmo-border-color-rgb), 0.2);--luzmo-border-color-hover: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-down: rgba(var(--luzmo-border-color-rgb), 0.35);--luzmo-border-color-focus: rgba(var(--luzmo-border-color-rgb), 0.3);--luzmo-border-color-rgb: 255, 255, 255;--luzmo-border-color-full: #4c4c57;--luzmo-border-color-full-hover: color-mix(in oklch, var(--luzmo-border-color-full), white 20%);--luzmo-border-color-full-down: color-mix(in oklch, var(--luzmo-border-color-full), white 35%);--luzmo-border-color-full-focus: color-mix(in oklch, var(--luzmo-border-color-full), white 20%);--luzmo-border-color-disabled: #333;--luzmo-shadow-opacity: 0.35;--luzmo-shadow-color: rgba( var(--luzmo-shadow-color-rgb), var(--luzmo-shadow-opacity) );--luzmo-font-color: #ced4da;--luzmo-font-color-extra-dimmed: #72787f;--luzmo-font-color-hover: color-mix(in oklch, var(--luzmo-font-color), white 8%);--luzmo-font-color-down: color-mix(in oklch, var(--luzmo-font-color), white 20%);--luzmo-font-color-focus: color-mix(in oklch, var(--luzmo-font-color), white 8%);--luzmo-primary: #7b90ff;--luzmo-primary-hover: color-mix(in oklch, var(--luzmo-primary), white 12%);--luzmo-primary-down: color-mix(in oklch, var(--luzmo-primary), white 24%);--luzmo-primary-focus: color-mix(in oklch, var(--luzmo-primary), white 12%);--luzmo-accent-on-subtle-color: color-mix( in oklch, var(--luzmo-primary), var(--luzmo-font-color) 1% );--luzmo-background-color: #262626;--luzmo-background-color-rgb: 0, 0, 0;--luzmo-background-color-disabled: #939ea8;--luzmo-background-color-hover: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 3%), white 14%);--luzmo-background-color-down: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 3%), white 25%);--luzmo-background-color-focus: color-mix(in oklch, color-mix(in oklch, var(--luzmo-background-color), var(--luzmo-primary) 3%), white 14%);--luzmo-background-color-highlight: rgb(72, 72, 72);--luzmo-background-color-highlight-disabled: #313131;--luzmo-background-color-highlight-hover: color-mix(in oklch, var(--luzmo-background-color-highlight), white 20%);--luzmo-background-color-highlight-down: color-mix(in oklch, var(--luzmo-background-color-highlight), white 35%);--luzmo-background-color-highlight-focus: color-mix(in oklch, var(--luzmo-background-color-highlight), white 20%);--luzmo-primary-inverse-color: var(--luzmo-background-color);--luzmo-indicator-color: var(--luzmo-primary);--luzmo-primary-rgb: 94, 113, 208;--luzmo-secondary: #ebff00;--luzmo-secondary-inverse-color: #333;--luzmo-secondary-rgb: 200, 219, 0;--luzmo-negative-color: #f76d74;--luzmo-negative-color-hover: color-mix(in oklch, var(--luzmo-negative-color), white 12%);--luzmo-negative-color-down: color-mix(in oklch, var(--luzmo-negative-color), white 24%);--luzmo-negative-color-focus: color-mix(in oklch, var(--luzmo-negative-color), white 12%);--luzmo-negative-on-subtle-color: color-mix( in oklch, var(--luzmo-negative-color), var(--luzmo-font-color) 40% );--luzmo-negative-color-rgb: 247, 109, 116;--luzmo-negative-inverse-color: var(--luzmo-background-color);--luzmo-positive-color: #39a875;--luzmo-positive-color-hover: color-mix(in oklch, var(--luzmo-positive-color), white 12%);--luzmo-positive-color-down: color-mix(in oklch, var(--luzmo-positive-color), white 24%);--luzmo-positive-color-focus: color-mix(in oklch, var(--luzmo-positive-color), white 12%);--luzmo-positive-on-subtle-color: color-mix( in oklch, var(--luzmo-positive-color), var(--luzmo-font-color) 35% );--luzmo-positive-color-rgb: 57, 168, 117;--luzmo-positive-inverse-color: var(--luzmo-background-color);--luzmo-selected-color: #afafaf;--luzmo-selected-color-hover: color-mix(in oklch, var(--luzmo-selected-color), white 20%);--luzmo-selected-color-down: color-mix(in oklch, var(--luzmo-selected-color), white 35%);--luzmo-selected-color-focus: color-mix(in oklch, var(--luzmo-selected-color), white 20%);--luzmo-selected-color-hard: #e9e9e9;--luzmo-selected-color-hard-hover: color-mix(in oklch, var(--luzmo-selected-color-hard), white 20%);--luzmo-selected-color-hard-down: color-mix(in oklch, var(--luzmo-selected-color-hard), white 35%);--luzmo-selected-color-hard-focus: color-mix(in oklch, var(--luzmo-selected-color-hard), white 20%);--luzmo-neutral-on-subtle-color: var(--luzmo-selected-color-hard);--luzmo-informative-color: #5c94ff;--luzmo-informative-color-hover: color-mix(in oklch, var(--luzmo-informative-color), white 12%);--luzmo-informative-color-down: color-mix(in oklch, var(--luzmo-informative-color), white 24%);--luzmo-informative-color-focus: var(--luzmo-informative-color-hover);--luzmo-informative-on-subtle-color: color-mix( in oklch, var(--luzmo-informative-color), var(--luzmo-font-color) 36% );--luzmo-informative-color-rgb: 92, 148, 255;--luzmo-informative-inverse-color: var(--luzmo-background-color);--luzmo-notice-color-hover: color-mix(in oklch, var(--luzmo-notice-color), white 12%);--luzmo-notice-color-down: color-mix(in oklch, var(--luzmo-notice-color), white 24%);--luzmo-notice-color-focus: var(--luzmo-notice-color-hover);--luzmo-notice-on-subtle-color: var(--luzmo-notice-color);--luzmo-notice-inverse-color: var(--luzmo-background-color);--luzmo-disabled-color: #75797b}", document.head.appendChild(e);
22
22
  }
23
23
  })();
24
- import { n as e, t } from "../radio-BzEPGUmQ.js";
24
+ import { n as e, t } from "../radio-DRI4on-W.js";
25
25
  export { e as LuzmoRadio, t as LuzmoRadioGroup };
@@ -11,10 +11,14 @@ declare const LuzmoRadioGroup_base: typeof LuzmoFieldGroup;
11
11
  * @slot negative-help-text - negative help text to associate to your form element when `invalid`
12
12
  *
13
13
  * @fires change - An alteration to the value of the element has been committed by the user.
14
+ * @attr manual-selection - Move focus with arrow keys without selecting until Space is pressed.
14
15
  */
15
16
  export declare class LuzmoRadioGroup extends LuzmoRadioGroup_base {
16
17
  name: string;
17
- defaultNodes: Node[];
18
+ /**
19
+ * Move focus with arrow keys without selecting until Space is pressed.
20
+ */
21
+ manualSelection: boolean;
18
22
  get buttons(): LuzmoRadio[];
19
23
  rovingTabindexController: RovingTabindexController<LuzmoRadio>;
20
24
  focus(): void;
@@ -13,7 +13,13 @@ declare const LuzmoRadio_base: typeof LuzmoElement & {
13
13
  * @attr checked - Represents when the input is checked
14
14
  * @attr value - Identifies this radio button within its radio group
15
15
  *
16
- * @fires change - When the input is interacted with and its state is changed
16
+ * @fires change - The checked value was committed by the user.
17
+ * @csspart control - Native radio indicator. Hidden when used inside `luzmo-question-box`.
18
+ * @cssprop --luzmo-radio-button-control-size - Native indicator size.
19
+ * @cssprop --luzmo-radio-button-top-to-control - Space from the top of the control to the native indicator.
20
+ * @cssprop --luzmo-radio-text-to-control - Space between the label and the native indicator.
21
+ * @cssprop --luzmo-radio-border-width - Native indicator border width.
22
+ * @cssprop --luzmo-radio-focus-indicator-width - Focus indicator width around the native indicator.
17
23
  */
18
24
  export declare class LuzmoRadio extends LuzmoRadio_base {
19
25
  static get styles(): CSSResultArray;