@luzmo/lucero 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/components/accordion/index.cjs +1 -1
  2. package/components/accordion/index.js +1 -1
  3. package/components/{accordion-BJLsCC-2.js → accordion-C9cVd8A8.js} +1 -1
  4. package/components/{accordion-OQ0RoC_7.cjs → accordion-DulsAsi7.cjs} +1 -1
  5. package/components/action-bar/index.cjs +1 -1
  6. package/components/action-bar/index.js +1 -1
  7. package/components/{action-bar-Dyt2tyjr.cjs → action-bar-BjTUUATD.cjs} +1 -1
  8. package/components/{action-bar-B-Y-gJ8B.js → action-bar-XpNzXzkl.js} +4 -4
  9. package/components/action-button/index.cjs +1 -1
  10. package/components/action-button/index.js +1 -1
  11. package/components/{action-button-CL4ZlryE.cjs → action-button-Cz4jSv__.cjs} +1 -1
  12. package/components/{action-button-BB3ZZFNN.js → action-button-LmKtPKfe.js} +1 -1
  13. package/components/action-group/index.cjs +1 -1
  14. package/components/action-group/index.js +1 -1
  15. package/components/{action-group-HECoPCas.js → action-group-CPxKx_oR.js} +1 -1
  16. package/components/{action-group-Doll-3Bf.cjs → action-group-DBxQJRLs.cjs} +1 -1
  17. package/components/action-menu/index.cjs +1 -1
  18. package/components/action-menu/index.js +1 -1
  19. package/components/{action-menu-DphCCjvX.cjs → action-menu-BFy0mEyu.cjs} +1 -1
  20. package/components/{action-menu-Bv9EA7__.js → action-menu-CT0OYS56.js} +3 -3
  21. package/components/avatar/index.cjs +1 -1
  22. package/components/avatar/index.js +1 -1
  23. package/components/{avatar-CVRQDsx6.js → avatar-BEk23sDA.js} +1 -1
  24. package/components/{avatar-DFzJbtId.cjs → avatar-C9EAInfy.cjs} +1 -1
  25. package/components/badge/index.cjs +1 -1
  26. package/components/badge/index.js +1 -1
  27. package/components/{badge-DzElGOcl.cjs → badge-CPpKOWh2.cjs} +1 -1
  28. package/components/{badge-BSfzmBRf.js → badge-bODlaAG_.js} +1 -1
  29. package/components/button/index.cjs +1 -1
  30. package/components/button/index.js +2 -2
  31. package/components/{button-CpaltgRZ.js → button-5jzMIMLW.js} +3 -3
  32. package/components/{button-BGEWdRbY.cjs → button-CjgL13CD.cjs} +1 -1
  33. package/components/button-group/index.cjs +1 -1
  34. package/components/button-group/index.js +1 -1
  35. package/components/{button-group-DMsT6N0P.js → button-group-B59rXxDn.js} +1 -1
  36. package/components/{button-group-C23OtGC0.cjs → button-group-DxMfPmBg.cjs} +1 -1
  37. package/components/calendar/index.cjs +1 -1
  38. package/components/calendar/index.js +1 -1
  39. package/components/{calendar-BqyGW8gU.cjs → calendar-4h_Fe-mw.cjs} +1 -1
  40. package/components/{calendar-D4x5gp_0.js → calendar-5V1hrKWy.js} +2 -2
  41. package/components/chat-message/index.cjs +1 -1
  42. package/components/chat-message/index.js +1 -1
  43. package/components/{chat-message-5gP_qbiz.js → chat-message--nzqHl6e.js} +1 -1
  44. package/components/{chat-message-Dn5GKsSD.cjs → chat-message-BzSel33p.cjs} +1 -1
  45. package/components/chat-message-group/index.cjs +1 -1
  46. package/components/chat-message-group/index.js +1 -1
  47. package/components/{chat-message-group-Bp4mshBY.js → chat-message-group-BIXlrlYi.js} +1 -1
  48. package/components/{chat-message-group-CJddlS85.cjs → chat-message-group-DLkSlQah.cjs} +1 -1
  49. package/components/checkbox/checkbox.d.ts +2 -0
  50. package/components/checkbox/index.cjs +1 -1
  51. package/components/checkbox/index.js +1 -1
  52. package/components/{checkbox-NSSgVzJg.cjs → checkbox-CFQqGnDX.cjs} +1 -1
  53. package/components/{checkbox-fW7WI915.js → checkbox-D884zXBt.js} +1 -1
  54. package/components/{close-button-7zS6PUzh.js → close-button-Bw8knwnc.js} +1 -1
  55. package/components/{close-button-B06i2hJn.cjs → close-button-DhHKKvHu.cjs} +1 -1
  56. package/components/color-field/index.cjs +1 -1
  57. package/components/color-field/index.js +1 -1
  58. package/components/{color-field-l-aJ6O4a.cjs → color-field-B-GC4H0K.cjs} +1 -1
  59. package/components/{color-field-BZljmVHt.js → color-field-vmTnlDec.js} +1 -1
  60. package/components/color-menu/index.cjs +1 -1
  61. package/components/color-menu/index.js +1 -1
  62. package/components/{color-menu-C56xj5Oe.cjs → color-menu-a_TXvQLC.cjs} +1 -1
  63. package/components/{color-menu-CEtmpeN7.js → color-menu-tt_e0XSY.js} +5 -5
  64. package/components/color-palette/index.cjs +1 -1
  65. package/components/color-palette/index.js +1 -1
  66. package/components/{color-palette-D5NZDz5I.cjs → color-palette-C4Y8VU9j.cjs} +1 -1
  67. package/components/{color-palette-UU7Feiwh.js → color-palette-UnwRum-W.js} +1 -1
  68. package/components/color-palette-group/index.cjs +1 -1
  69. package/components/color-palette-group/index.js +1 -1
  70. package/components/{color-palette-group-DhGh0Db8.cjs → color-palette-group-BiPNlMgu.cjs} +1 -1
  71. package/components/{color-palette-group-CwmC9iR1.js → color-palette-group-jhNz9Gto.js} +1 -1
  72. package/components/color-picker/index.cjs +1 -1
  73. package/components/color-picker/index.js +1 -1
  74. package/components/{color-picker-BDqJodTR.js → color-picker-C6-8JGHh.js} +4 -4
  75. package/components/{color-picker-CLGNQIkK.cjs → color-picker-D6KSj7M_.cjs} +1 -1
  76. package/components/date-range-picker/index.cjs +1 -1
  77. package/components/date-range-picker/index.js +1 -1
  78. package/components/{date-range-picker-DyJdcFiA.cjs → date-range-picker-B7J_RFW6.cjs} +1 -1
  79. package/components/{date-range-picker-CoCz3uDz.js → date-range-picker-BilkNV82.js} +4 -4
  80. package/components/date-time-picker/index.cjs +1 -1
  81. package/components/date-time-picker/index.js +1 -1
  82. package/components/{date-time-picker-CEEeMXGn.cjs → date-time-picker-BNUIfpzG.cjs} +1 -1
  83. package/components/{date-time-picker-CsgO17tA.js → date-time-picker-DOsLR0EN.js} +4 -4
  84. package/components/divider/index.cjs +1 -1
  85. package/components/divider/index.js +1 -1
  86. package/components/{divider-fWGUxO6A.cjs → divider-BS5chsgx.cjs} +1 -1
  87. package/components/{divider-Bt0NIqfu.js → divider-CJRCMeKA.js} +1 -1
  88. package/components/field-label/index.cjs +1 -1
  89. package/components/field-label/index.js +1 -1
  90. package/components/{field-label-B3IsGUTv.cjs → field-label-61lILUqu.cjs} +1 -1
  91. package/components/{field-label-DOUnHwwh.js → field-label-B_VLKIJn.js} +1 -1
  92. package/components/index.cjs +1 -1
  93. package/components/index.js +72 -71
  94. package/components/infield-button/index.cjs +1 -1
  95. package/components/infield-button/index.js +1 -1
  96. package/components/{infield-button-uD1GqTLW.cjs → infield-button-B0qcV4gq.cjs} +1 -1
  97. package/components/{infield-button-CeE_JxR6.js → infield-button-CcaKuxAs.js} +1 -1
  98. package/components/menu/index.cjs +1 -1
  99. package/components/menu/index.js +1 -1
  100. package/components/{menu-f2S0m6h9.js → menu-CM-ZA_ZM.js} +1 -1
  101. package/components/{menu-CoJ5oERs.cjs → menu-tDMNLuND.cjs} +1 -1
  102. package/components/multi-language-field/index.cjs +1 -1
  103. package/components/multi-language-field/index.js +1 -1
  104. package/components/{multi-language-field-SZObnneZ.js → multi-language-field-B6Ne8_Yw.js} +2 -2
  105. package/components/{multi-language-field-nJmWDtPL.cjs → multi-language-field-C5C5yS94.cjs} +1 -1
  106. package/components/notice/index.cjs +1 -1
  107. package/components/notice/index.js +1 -1
  108. package/components/{notice-CrLVNmqL.js → notice-62Wpb7BH.js} +2 -2
  109. package/components/{notice-f0p0TiGw.cjs → notice-DrrmwMlw.cjs} +1 -1
  110. package/components/number-field/index.cjs +1 -1
  111. package/components/number-field/index.js +1 -1
  112. package/components/{number-field-BEt0cfcB.js → number-field-CMM5MC2R.js} +2 -2
  113. package/components/{number-field-DrarDCm4.cjs → number-field-N6nInW0X.cjs} +1 -1
  114. package/components/options/index.cjs +1 -1
  115. package/components/options/index.js +1 -1
  116. package/components/{options-BH_Y3UB6.cjs → options-CsRLHwaY.cjs} +1 -1
  117. package/components/{options-BiA2h1-i.js → options-DtJTjiP8.js} +2 -2
  118. package/components/{pending-state-A6NrvaQj.cjs → pending-state-CQuz9Qiv.cjs} +1 -1
  119. package/components/{pending-state-BuYmUP6G.js → pending-state-KsPO-6Ei.js} +1 -1
  120. package/components/permission-box/index.cjs +18 -0
  121. package/components/permission-box/index.d.ts +9 -0
  122. package/components/permission-box/index.js +19 -0
  123. package/components/permission-box/permission-box.d.ts +157 -0
  124. package/components/permission-box/types.d.ts +73 -0
  125. package/components/permission-box-BsmcqGnU.cjs +176 -0
  126. package/components/permission-box-yUZKSyS9.js +405 -0
  127. package/components/picker/index.cjs +1 -1
  128. package/components/picker/index.js +1 -1
  129. package/components/picker-button/index.cjs +1 -1
  130. package/components/picker-button/index.js +1 -1
  131. package/components/{picker-button-BWDfzx38.cjs → picker-button-CEo39nlA.cjs} +1 -1
  132. package/components/{picker-button-BhfY9gyk.js → picker-button-svME8NW2.js} +1 -1
  133. package/components/{picker-Dd25S3rP.cjs → picker-h0nO2GgS.cjs} +1 -1
  134. package/components/{picker-JhsRAtSd.js → picker-nWTz5f1J.js} +5 -5
  135. package/components/popover/index.cjs +1 -1
  136. package/components/popover/index.js +1 -1
  137. package/components/{popover-CFzz83f8.cjs → popover-6Qy-GpJj.cjs} +1 -1
  138. package/components/{popover-CWrRLzOL.js → popover-BdoJqBC5.js} +1 -1
  139. package/components/progress-bar/index.cjs +1 -1
  140. package/components/progress-bar/index.js +1 -1
  141. package/components/{progress-bar-D6wIZV5l.js → progress-bar-Bc5zjNDp.js} +1 -1
  142. package/components/{progress-bar-9Qg0PYAq.cjs → progress-bar-BsBnhg4r.cjs} +1 -1
  143. package/components/progress-circle/index.cjs +1 -1
  144. package/components/progress-circle/index.js +1 -1
  145. package/components/{progress-circle-DcGKwBTC.js → progress-circle-C5UOMP96.js} +1 -1
  146. package/components/{progress-circle-C_9UZs2Y.cjs → progress-circle-D-JW7zZS.cjs} +1 -1
  147. package/components/progress-steps/index.cjs +1 -1
  148. package/components/progress-steps/index.js +1 -1
  149. package/components/{progress-steps-Byem5ieS.js → progress-steps-BwV4fEcH.js} +1 -1
  150. package/components/{progress-steps-5MhpnGKv.cjs → progress-steps-l0tbGl3P.cjs} +1 -1
  151. package/components/prompt-box/index.cjs +1 -1
  152. package/components/prompt-box/index.js +1 -1
  153. package/components/{prompt-box-B1rmo4DX.cjs → prompt-box-B3gDbsQo.cjs} +1 -1
  154. package/components/{prompt-box-CL0ld3Na.js → prompt-box-BUMtyCsa.js} +4 -4
  155. package/components/question-box/index.cjs +1 -1
  156. package/components/question-box/index.js +1 -1
  157. package/components/question-box/question-box-templates.d.ts +1 -1
  158. package/components/question-box/question-box.d.ts +4 -1
  159. package/components/question-box-C7oXNWje.cjs +401 -0
  160. package/components/{question-box-BAyRPZ8j.js → question-box-wYSFkVoP.js} +184 -188
  161. package/components/radio/index.cjs +1 -1
  162. package/components/radio/index.js +1 -1
  163. package/components/{radio-CyxICbLM.js → radio-B_oHwHgO.js} +1 -1
  164. package/components/{radio-Dd-GgUMm.cjs → radio-DJmITM2m.cjs} +1 -1
  165. package/components/search/index.cjs +1 -1
  166. package/components/search/index.js +1 -1
  167. package/components/{search-1KUNWKWg.cjs → search-CXuXsgJt.cjs} +1 -1
  168. package/components/{search-_NUUJLz0.js → search-Dl5y1IqM.js} +2 -2
  169. package/components/select/index.cjs +1 -1
  170. package/components/select/index.js +1 -1
  171. package/components/{select-ChM3Zfxd.cjs → select-Dm7rf5Un.cjs} +1 -1
  172. package/components/{select-8gtm46qA.js → select-lS54kKFO.js} +6 -6
  173. package/components/{sized-mixin-CSajkMro.cjs → sized-mixin-BqV6ywDw.cjs} +1 -1
  174. package/components/{sized-mixin-BmxIAuoH.js → sized-mixin-Cb-47MjG.js} +17 -1
  175. package/components/slider/index.cjs +1 -1
  176. package/components/slider/index.js +1 -1
  177. package/components/{slider-CD-aGN9I.js → slider-CRe19ziU.js} +2 -2
  178. package/components/{slider-B1cCAj1x.cjs → slider-CotjHgw-.cjs} +1 -1
  179. package/components/split-view/controllers/pane-visibility-controller.d.ts +22 -0
  180. package/components/split-view/controllers/size-memory-controller.d.ts +27 -0
  181. package/components/split-view/index.cjs +1 -1
  182. package/components/split-view/index.d.ts +1 -0
  183. package/components/split-view/index.js +1 -1
  184. package/components/split-view/split-view-model.d.ts +2 -0
  185. package/components/split-view/split-view.d.ts +63 -6
  186. package/components/split-view-B8CDMni5.js +547 -0
  187. package/components/split-view-vqTtsWjc.cjs +45 -0
  188. package/components/status-light/index.cjs +1 -1
  189. package/components/status-light/index.js +1 -1
  190. package/components/{status-light-Do6z53mM.cjs → status-light-CtETRd_o.cjs} +1 -1
  191. package/components/{status-light-DqHhhZed.js → status-light-kt3QBqrC.js} +1 -1
  192. package/components/swatch/index.cjs +1 -1
  193. package/components/swatch/index.js +1 -1
  194. package/components/{swatch-DiNMN-SZ.cjs → swatch-BX6GGDBs.cjs} +1 -1
  195. package/components/{swatch-BBVsuSAV.js → swatch-bXSCI96I.js} +1 -1
  196. package/components/switch/index.cjs +1 -1
  197. package/components/switch/index.js +1 -1
  198. package/components/{switch-DMhCYTgq.cjs → switch-CnnJrKpy.cjs} +1 -1
  199. package/components/{switch-BBtewLDD.js → switch-Do9jl9ur.js} +1 -1
  200. package/components/table/index.cjs +1 -1
  201. package/components/table/index.js +1 -1
  202. package/components/{table-Bf-00FYb.cjs → table-CF5do4qb.cjs} +1 -1
  203. package/components/{table-CfFwBCp1.js → table-FWX6kbpt.js} +2 -2
  204. package/components/tabs/index.cjs +1 -1
  205. package/components/tabs/index.js +1 -1
  206. package/components/{tabs-Dkt0B_-A.js → tabs-CODc4EYJ.js} +2 -2
  207. package/components/{tabs-B0WHKMuF.cjs → tabs-sIusiEWI.cjs} +1 -1
  208. package/components/tags/index.cjs +1 -1
  209. package/components/tags/index.js +1 -1
  210. package/components/{tags-Be4yrNPw.js → tags-BEfsznJy.js} +3 -3
  211. package/components/{tags-CHDNXpxh.cjs → tags-CWJqZufu.cjs} +1 -1
  212. package/components/text-field/index.cjs +1 -1
  213. package/components/text-field/index.js +2 -2
  214. package/components/{text-field-CBsx1CVo.js → text-field-5Ilezggg.js} +1 -1
  215. package/components/{text-field-CZixBD87.cjs → text-field-8IQu5JLQ.cjs} +1 -1
  216. package/components/{text-field-DwvDSctG.cjs → text-field-CLUvzUDH.cjs} +1 -1
  217. package/components/{text-field-SNbvQYOj.js → text-field-Cn51A87k.js} +2 -2
  218. package/components/toast/index.cjs +1 -1
  219. package/components/toast/index.js +1 -1
  220. package/components/{toast-CXZUVaYz.js → toast-B6x2SjM8.js} +1 -1
  221. package/components/{toast-B6yesIcI.cjs → toast-CpOVCCix.cjs} +1 -1
  222. package/components/tooltip/index.cjs +1 -1
  223. package/components/tooltip/index.js +1 -1
  224. package/components/{tooltip-BE01O3Sg.cjs → tooltip-CjfQup1K.cjs} +1 -1
  225. package/components/{tooltip-g2jd5Wsv.js → tooltip-ElTGebA9.js} +1 -1
  226. package/components/top-nav/index.cjs +1 -1
  227. package/components/top-nav/index.js +1 -1
  228. package/components/{top-nav-B0E1K_zf.cjs → top-nav-BG6vbFst.cjs} +1 -1
  229. package/components/{top-nav-DiUCsUpZ.js → top-nav-BMFB1WB0.js} +1 -1
  230. package/components/utils.cjs +1 -1
  231. package/components/utils.js +8 -8
  232. package/custom-elements.json +1 -1
  233. package/index.d.ts +1 -0
  234. package/package.json +7 -1
  235. package/standalone/accordion.js +3 -3
  236. package/standalone/action-bar.js +4 -4
  237. package/standalone/action-button.js +1 -1
  238. package/standalone/action-group.js +1 -1
  239. package/standalone/action-menu.js +6 -6
  240. package/standalone/avatar.js +5 -5
  241. package/standalone/badge.js +1 -1
  242. package/standalone/button-group.js +1 -1
  243. package/standalone/button.js +1 -1
  244. package/standalone/calendar.js +1 -1
  245. package/standalone/chat-message-group.js +2 -2
  246. package/standalone/chat-message.js +3 -3
  247. package/standalone/checkbox.js +1 -1
  248. package/standalone/chunks/{action-button-C946JGIA.js → action-button-CFXQ66x-.js} +1 -1
  249. package/standalone/chunks/{action-group-DlClwXLO.js → action-group-CX3Dg0Bu.js} +2 -2
  250. package/standalone/chunks/{badge-DPFbBRCY.js → badge-C1_QvLsq.js} +1 -1
  251. package/standalone/chunks/{button-COqfQNJv.js → button-DFVs4O1S.js} +1 -1
  252. package/standalone/chunks/{button-BhSe7abg.js → button-PsWOoEKo.js} +1 -1
  253. package/standalone/chunks/{button-base-DLYrzCSm.js → button-base-BuAaSi-H.js} +2 -2
  254. package/standalone/chunks/{calendar-BVrT8uqP.js → calendar-C8QpCEII.js} +5 -5
  255. package/standalone/chunks/{checkbox-4PoS7Uft.js → checkbox-DYjPiIwY.js} +1 -1
  256. package/standalone/chunks/{checkbox-mixin-HnfmivU3.js → checkbox-mixin-BRuj7--C.js} +2 -2
  257. package/standalone/chunks/{clear-button-qIMg8hR4.js → clear-button-BfZbJISP.js} +1 -1
  258. package/standalone/chunks/{close-button-DEiL5kEh.js → close-button-DdAb7Vyz.js} +1 -1
  259. package/standalone/chunks/color-area-DKqadIPQ.js +66 -0
  260. package/standalone/chunks/{color-field-BKDaLJQo.js → color-field-DlZIotvM.js} +1 -1
  261. package/standalone/chunks/{color-handle-DO7dxFGx.js → color-handle-h3fYn_2h.js} +1 -1
  262. package/standalone/chunks/{color-loupe-_dC69K1Z.js → color-loupe-ceV5LQbI.js} +1 -1
  263. package/standalone/chunks/{color-menu-6LhE-qWn.js → color-menu-BSYeKpnw.js} +2 -2
  264. package/standalone/chunks/{color-slider-MSADvkPC.js → color-slider-w5flr8ev.js} +2 -2
  265. package/standalone/chunks/{divider-vAjIOfo1.js → divider-BLhmxGvJ.js} +1 -1
  266. package/standalone/chunks/{field-group-C1oDgW9m.js → field-group-Pc_Pu61V.js} +1 -1
  267. package/standalone/chunks/{field-label-Djcst_hn.js → field-label-CYs6sh7M.js} +3 -3
  268. package/standalone/chunks/icon-CYZJZELU.js +2 -0
  269. package/standalone/chunks/{infield-button-B8EkjwP9.js → infield-button-umqY7wh3.js} +1 -1
  270. package/standalone/chunks/lucero-runtime-BkqJ2L5f.js +18 -0
  271. package/standalone/chunks/luzmoCheck-BQw4HZFw.js +2 -0
  272. package/standalone/chunks/{manage-help-text-DO3PkWgh.js → manage-help-text-CrQxXqBH.js} +1 -1
  273. package/standalone/chunks/{menu-DtUgXalL.js → menu-BQ1vUHja.js} +6 -6
  274. package/standalone/chunks/{number-field-aOOuxxRh.js → number-field-Cujj8njt.js} +2 -2
  275. package/standalone/chunks/{observe-slot-presence-BxmG6A0m.js → observe-slot-presence-CITwnhtc.js} +1 -1
  276. package/standalone/chunks/{options-CPaX-OWy.js → options-BlDY_bJv.js} +12 -12
  277. package/standalone/chunks/{overlay-CgQMEmrM.js → overlay-Bcwu868u.js} +6 -6
  278. package/standalone/chunks/{pending-state-DnTXKvtm.js → pending-state-BbjpQDWR.js} +1 -1
  279. package/standalone/chunks/{picker-5IvNnimu.js → picker-BOuknvzl.js} +7 -7
  280. package/standalone/chunks/{picker-button-BIqlIkET.js → picker-button-B7gJZHYC.js} +1 -1
  281. package/standalone/chunks/{popover-Ca-FBqiU.js → popover-Dum9nObN.js} +2 -2
  282. package/standalone/chunks/progress-circle-CZodXLYe.js +17 -0
  283. package/standalone/chunks/property-BsZepKFj.js +2 -0
  284. package/standalone/chunks/{radio-BJ3RhyUD.js → radio-fCBCSuw9.js} +2 -2
  285. package/standalone/chunks/{segments-factory-DWNY1AUE.js → segments-factory-PfCggJk6.js} +1 -1
  286. package/standalone/chunks/{skeleton-loader-CymPdQl3.js → skeleton-loader-zvitohC5.js} +1 -1
  287. package/standalone/chunks/swatch-BL10VQ4z.js +33 -0
  288. package/standalone/chunks/{template-property-CyrkVY0Q.js → template-property-BeYccnca.js} +1 -1
  289. package/standalone/chunks/{text-field-C4D5FNRe.js → text-field-KnOMaj3Y.js} +1 -1
  290. package/standalone/chunks/{text-field-DwD97PEo.js → text-field-pIdOTrtY.js} +15 -15
  291. package/standalone/chunks/tooltip-CYQLlhx8.js +41 -0
  292. package/standalone/clear-button.js +1 -1
  293. package/standalone/close-button.js +1 -1
  294. package/standalone/color-area.js +1 -1
  295. package/standalone/color-field.js +1 -1
  296. package/standalone/color-handle.js +1 -1
  297. package/standalone/color-loupe.js +1 -1
  298. package/standalone/color-menu.js +1 -1
  299. package/standalone/color-palette-group.js +3 -3
  300. package/standalone/color-palette.js +1 -1
  301. package/standalone/color-picker.js +2 -2
  302. package/standalone/color-slider.js +1 -1
  303. package/standalone/date-range-picker.js +7 -7
  304. package/standalone/date-time-picker.js +8 -8
  305. package/standalone/divider.js +1 -1
  306. package/standalone/field-group.js +1 -1
  307. package/standalone/field-label.js +1 -1
  308. package/standalone/icon.js +1 -1
  309. package/standalone/infield-button.js +1 -1
  310. package/standalone/label.js +1 -1
  311. package/standalone/lit.js +1 -1
  312. package/standalone/manifest.json +45 -43
  313. package/standalone/menu.js +1 -1
  314. package/standalone/multi-language-field.js +1 -1
  315. package/standalone/notice.js +2 -2
  316. package/standalone/number-field.js +1 -1
  317. package/standalone/options.js +1 -1
  318. package/standalone/overlay.js +1 -1
  319. package/standalone/permission-box.js +178 -0
  320. package/standalone/picker-button.js +1 -1
  321. package/standalone/picker.js +1 -1
  322. package/standalone/popover.js +1 -1
  323. package/standalone/progress-bar.js +2 -2
  324. package/standalone/progress-circle.js +1 -1
  325. package/standalone/progress-steps.js +2 -2
  326. package/standalone/prompt-box.js +3 -3
  327. package/standalone/question-box.js +66 -66
  328. package/standalone/radio.js +1 -1
  329. package/standalone/search.js +2 -2
  330. package/standalone/select.js +9 -9
  331. package/standalone/skeleton-loader.js +1 -1
  332. package/standalone/slider.js +11 -11
  333. package/standalone/split-view.js +5 -3
  334. package/standalone/status-light.js +1 -1
  335. package/standalone/swatch.js +1 -1
  336. package/standalone/switch.js +1 -1
  337. package/standalone/table.js +24 -24
  338. package/standalone/tabs.js +7 -7
  339. package/standalone/tags.js +2 -2
  340. package/standalone/text-field.js +1 -1
  341. package/standalone/toast.js +1 -1
  342. package/standalone/tooltip.js +1 -1
  343. package/standalone/top-nav.js +10 -10
  344. package/standalone/utils.js +1 -1
  345. package/styles/mixins/tests/visually-hidden.test.d.ts +1 -0
  346. package/utils/sized-mixin.d.ts +8 -0
  347. package/components/question-box-D7s2xNAD.cjs +0 -401
  348. package/components/split-view-DDwpoN2O.js +0 -357
  349. package/components/split-view-DNVlr5VD.cjs +0 -43
  350. package/standalone/chunks/color-area-D-AVcZza.js +0 -66
  351. package/standalone/chunks/icon-D69mOw1X.js +0 -2
  352. package/standalone/chunks/lucero-runtime-DMlHjBe_.js +0 -18
  353. package/standalone/chunks/progress-circle-CFtVq9Ou.js +0 -17
  354. package/standalone/chunks/property-BsDbx7Z2.js +0 -2
  355. package/standalone/chunks/swatch-zFOV4NtM.js +0 -33
  356. package/standalone/chunks/tooltip-B-j8PrNl.js +0 -41
@@ -17,22 +17,23 @@
17
17
  * */
18
18
  import "./tokens.js";
19
19
  import { n as e, t } from "./decorate-CpKsOs9z.js";
20
- import { n } from "./sized-mixin-BmxIAuoH.js";
21
- import { t as r } from "./roving-tabindex-BKMkfzY0.js";
20
+ import { n, r } from "./sized-mixin-Cb-47MjG.js";
21
+ import { t as i } from "./roving-tabindex-BKMkfzY0.js";
22
22
  import "./icon-DADJww_a.js";
23
- import { t as i } from "./language-resolution-7rc0khIK.js";
24
- import "./action-button-BB3ZZFNN.js";
25
- import "./badge-BSfzmBRf.js";
26
- import "./button-CpaltgRZ.js";
27
- import "./checkbox-fW7WI915.js";
23
+ import { t as a } from "./language-resolution-7rc0khIK.js";
24
+ import "./action-button-LmKtPKfe.js";
25
+ import "./badge-bODlaAG_.js";
26
+ import "./button-5jzMIMLW.js";
27
+ import "./checkbox-D884zXBt.js";
28
28
  import "./field-group/index.js";
29
- import "./text-field-SNbvQYOj.js";
30
- import "./radio-CyxICbLM.js";
31
- import { html as a, nothing as o, unsafeCSS as s } from "lit";
32
- import { property as c, query as l, state as u } from "lit/decorators.js";
33
- import { luzmoAngleLeft as d, luzmoAngleRight as f, luzmoPencil as p } from "@luzmo/icons";
34
- import { ifDefined as m } from "lit/directives/if-defined.js";
35
- import { repeat as h } from "lit/directives/repeat.js";
29
+ import "./text-field-Cn51A87k.js";
30
+ import "./radio-B_oHwHgO.js";
31
+ import { html as o, nothing as s, unsafeCSS as c } from "lit";
32
+ import { property as l, query as u, state as d } from "lit/decorators.js";
33
+ import { luzmoAngleLeft as ee, luzmoAngleRight as te, luzmoPencil as f } from "@luzmo/icons";
34
+ import { ifDefined as p } from "lit/directives/if-defined.js";
35
+ import { repeat as m } from "lit/directives/repeat.js";
36
+ import { keyed as h } from "lit/directives/keyed.js";
36
37
  // src/components/question-box/question-box.module.scss?inline
37
38
  var g = ":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)}", _ = "__other__", v = {
38
39
  continue: "Next",
@@ -76,13 +77,13 @@ var g = ":host{font-family:var(--question-box-font-family);font-size:var(--quest
76
77
  let t = /* @__PURE__ */ new Set(), n = [];
77
78
  for (let r of e) t.has(r) || (t.add(r), n.push(r));
78
79
  return n;
79
- }, E = (e) => {
80
+ }, ne = (e) => {
80
81
  let t = new Set(e.options.map((e) => e.value));
81
82
  return b(e) && t.add(_), t;
82
- }, D = (e, t) => {
83
+ }, E = (e, t) => {
83
84
  let n = t[e.id];
84
85
  return e.type === "single" ? typeof n == "string" && n ? [n] : [] : Array.isArray(n) ? T(n) : [];
85
- }, O = (e, t) => D(e, t).includes(_), ee = (e) => {
86
+ }, D = (e, t) => E(e, t).includes(_), O = (e) => {
86
87
  let t = Object.fromEntries(Object.entries(e).filter(([, e]) => e !== void 0));
87
88
  return {
88
89
  ...v,
@@ -117,7 +118,7 @@ var g = ":host{font-family:var(--question-box-font-family);font-size:var(--quest
117
118
  }, j = (e, t) => {
118
119
  let n = Object.fromEntries([]);
119
120
  for (let r of e) {
120
- let e = E(r), i = t[r.id], a = Object.hasOwn(t, r.id);
121
+ let e = ne(r), i = t[r.id], a = Object.hasOwn(t, r.id);
121
122
  if (r.type === "single") typeof i == "string" && e.has(i) ? C(n, r.id, i) : !a && typeof r.default == "string" && (e.has(r.default) || r.options.length === 0) && C(n, r.id, r.options.length === 0 ? _ : r.default);
122
123
  else {
123
124
  let t = [...r.options.map((e) => e.value), ...b(r) ? [_] : []], o = T(Array.isArray(i) ? i.filter((t) => e.has(t)) : []);
@@ -131,45 +132,45 @@ var g = ":host{font-family:var(--question-box-font-family);font-size:var(--quest
131
132
  typeof s == "string" ? C(n, o, s) : !a && r.options.length === 0 && typeof r.default == "string" && C(n, o, r.default);
132
133
  }
133
134
  return n;
134
- }, M = (e) => e.minSelected ?? +!!e.required, N = (e, t) => {
135
+ }, M = (e) => e.minSelected ?? +!!e.required, re = (e, t) => {
135
136
  let n = M(e), r = e.maxSelected;
136
137
  return n > 0 && r !== void 0 ? k(t.selectionRangeDescription, {
137
138
  min: String(n),
138
139
  max: String(r)
139
140
  }) : n === 1 ? t.requiredSelectionDescription : n > 1 ? k(t.minSelectedError, { min: String(n) }) : r === void 0 ? void 0 : k(t.maxSelectedError, { max: String(r) });
140
- }, P = (e, t) => {
141
- let n = D(e, t), r = M(e), i = e.maxSelected;
141
+ }, N = (e, t) => {
142
+ let n = E(e, t), r = M(e), i = e.maxSelected;
142
143
  if (n.length < r) return r <= 1 ? "missing" : "minimum";
143
144
  if (i !== void 0 && n.length > i) return "maximum";
144
- if (O(e, t) && !String(t[y(e.id)] ?? "").trim()) return "otherText";
145
- }, te = (e, t) => P(e, t) !== void 0, ne = (e, t, n) => {
146
- switch (P(e, t)) {
145
+ if (D(e, t) && !String(t[y(e.id)] ?? "").trim()) return "otherText";
146
+ }, ie = (e, t) => N(e, t) !== void 0, ae = (e, t, n) => {
147
+ switch (N(e, t)) {
147
148
  case "minimum": return k(n.minSelectedError, { min: String(M(e)) });
148
149
  case "maximum": return k(n.maxSelectedError, { max: String(e.maxSelected) });
149
150
  case "otherText": return n.otherRequiredError;
150
151
  default: return;
151
152
  }
152
- }, re = (e, t, n, r, i) => {
153
+ }, oe = (e, t, n, r, i) => {
153
154
  if (i || t.disabled) return !0;
154
155
  if (e.type !== "multiple" || n) return !1;
155
156
  let a = e.maxSelected;
156
- return a !== void 0 && D(e, r).length >= a;
157
- }, ie = (e, t) => k(e === 1 ? t.selectedCountOne : t.selectedCount, { count: String(e) }), F, ae = (e, t) => {
157
+ return a !== void 0 && E(e, r).length >= a;
158
+ }, se = (e, t) => k(e === 1 ? t.selectedCountOne : t.selectedCount, { count: String(e) }), P, ce = (e, t) => {
158
159
  try {
159
- return F?.language !== t && (F = {
160
+ return P?.language !== t && (P = {
160
161
  language: t,
161
162
  formatter: new Intl.ListFormat(t, {
162
163
  style: "narrow",
163
164
  type: "conjunction"
164
165
  })
165
- }), F.formatter.format(e);
166
+ }), P.formatter.format(e);
166
167
  } catch {
167
168
  return e.join(", ");
168
169
  }
169
- }, oe = (e, t) => e.recommended ? k(t.recommendedSuffix, {
170
+ }, le = (e, t) => e.recommended ? k(t.recommendedSuffix, {
170
171
  label: e.label,
171
172
  recommended: t.recommended
172
- }) : e.label, se = (e) => {
173
+ }) : e.label, F = (e) => {
173
174
  let t = e.options.map((e) => ({
174
175
  const: e.value,
175
176
  title: e.label
@@ -178,10 +179,10 @@ var g = ":host{font-family:var(--question-box-font-family);font-size:var(--quest
178
179
  const: _,
179
180
  title: typeof e.other == "object" && e.other.label || v.other
180
181
  }), t;
181
- }, ce = (e) => {
182
+ }, I = (e) => {
182
183
  let t = { type: "string" };
183
184
  return typeof e.other == "object" && e.other.label && (t.title = e.other.label), t;
184
- }, I = (e) => {
185
+ }, L = (e) => {
185
186
  let t = [], n = [];
186
187
  for (let r of e) {
187
188
  if (r.options.length === 0) {
@@ -189,7 +190,7 @@ var g = ":host{font-family:var(--question-box-font-family);font-size:var(--quest
189
190
  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);
190
191
  continue;
191
192
  }
192
- let e = se(r);
193
+ let e = F(r);
193
194
  if (r.type === "single") {
194
195
  let n = {
195
196
  type: "string",
@@ -209,7 +210,7 @@ var g = ":host{font-family:var(--question-box-font-family);font-size:var(--quest
209
210
  }
210
211
  t.push([r.id, n]);
211
212
  }
212
- r.required && n.push(r.id), b(r) && t.push([y(r.id), ce(r)]);
213
+ r.required && n.push(r.id), b(r) && t.push([y(r.id), I(r)]);
213
214
  }
214
215
  let r = Object.fromEntries(t);
215
216
  return n.length > 0 ? {
@@ -220,23 +221,23 @@ var g = ":host{font-family:var(--question-box-font-family);font-size:var(--quest
220
221
  type: "object",
221
222
  properties: r
222
223
  };
223
- }, L = (e, t) => String(t[y(e.id)] ?? "").trim(), R = (e, t) => {
224
+ }, R = (e, t) => String(t[y(e.id)] ?? "").trim(), z = (e, t) => {
224
225
  let n = [];
225
226
  for (let r of e) {
226
- let e = L(r, t);
227
+ let e = R(r, t);
227
228
  if (r.options.length === 0) {
228
229
  e && n.push([r.id, e]);
229
230
  continue;
230
231
  }
231
- let i = D(r, t);
232
- r.type === "single" ? i[0] && n.push([r.id, i[0]]) : i.length > 0 && n.push([r.id, [...i]]), b(r) && O(r, t) && e && n.push([y(r.id), e]);
232
+ let i = E(r, t);
233
+ r.type === "single" ? i[0] && n.push([r.id, i[0]]) : i.length > 0 && n.push([r.id, [...i]]), b(r) && D(r, t) && e && n.push([y(r.id), e]);
233
234
  }
234
235
  return Object.fromEntries(n);
235
- }, z = (e) => !!e && typeof e == "object" && !Array.isArray(e), B = (e) => z(e) ? e : {}, V = (e) => {
236
+ }, B = (e) => !!e && typeof e == "object" && !Array.isArray(e), V = (e) => B(e) ? e : {}, H = (e) => {
236
237
  let t = e.oneOf ?? e.items?.anyOf;
237
238
  if (Array.isArray(t)) {
238
239
  let e = [], n = /* @__PURE__ */ new Set();
239
- for (let r of t) z(r) && typeof r.const == "string" && r.const && !n.has(r.const) && (n.add(r.const), e.push({
240
+ for (let r of t) B(r) && typeof r.const == "string" && r.const && !n.has(r.const) && (n.add(r.const), e.push({
240
241
  value: r.const,
241
242
  label: typeof r.title == "string" && r.title ? r.title : r.const
242
243
  }));
@@ -266,20 +267,20 @@ var g = ":host{font-family:var(--question-box-font-family);font-size:var(--quest
266
267
  declared: !1,
267
268
  options: []
268
269
  };
269
- }, H = (e) => y(e), U = (e) => e.format !== void 0 || e.minLength !== void 0 || e.maxLength !== void 0 || e.pattern !== void 0, W = (e) => e.type === "string" && !V(e).declared && !U(e), le = (e) => {
270
+ }, U = (e) => y(e), W = (e) => e.format !== void 0 || e.minLength !== void 0 || e.maxLength !== void 0 || e.pattern !== void 0, ue = (e) => e.type === "string" && !H(e).declared && !W(e), de = (e) => {
270
271
  if (e.type !== "object" || !e.properties) return [];
271
272
  let t = e.properties, n = new Set(e.required ?? []), r = /* @__PURE__ */ new Set();
272
273
  for (let e of Object.keys(t)) {
273
- let n = H(e), i = V(B(t[e])), a = B(t[n]);
274
- n in t && W(a) && i.options.some((e) => e.value === "__other__") && r.add(n);
274
+ let n = U(e), i = H(V(t[e])), a = V(t[n]);
275
+ n in t && ue(a) && i.options.some((e) => e.value === "__other__") && r.add(n);
275
276
  }
276
277
  let i = [];
277
278
  for (let [e, a] of Object.entries(t)) {
278
279
  if (r.has(e)) continue;
279
- let o = B(a), s = V(o), c = s.options.some((e) => e.value === _), l = H(e);
280
+ let o = V(a), s = H(o), c = s.options.some((e) => e.value === _), l = U(e);
280
281
  if (c && !r.has(l)) continue;
281
282
  let u = s.options.filter((e) => e.value !== _);
282
- 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 && U(o)) continue;
283
+ 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 && W(o)) continue;
283
284
  let d = {
284
285
  id: e,
285
286
  type: o.type === "array" ? "multiple" : "single",
@@ -287,7 +288,7 @@ var g = ":host{font-family:var(--question-box-font-family);font-size:var(--quest
287
288
  options: u
288
289
  };
289
290
  if (o.description && (d.description = o.description), n.has(e) && (d.required = !0), o.type === "array" ? (o.minItems !== void 0 && (d.minSelected = o.minItems), o.maxItems !== void 0 && (d.maxSelected = o.maxItems), Array.isArray(o.default) && o.default.length > 0 && (d.default = o.default)) : typeof o.default == "string" && (d.default = o.default), c && l in t) {
290
- let e = B(t[l]);
291
+ let e = V(t[l]);
291
292
  d.other = !e.title || { label: e.title };
292
293
  }
293
294
  i.push(d);
@@ -296,14 +297,6 @@ var g = ":host{font-family:var(--question-box-font-family);font-size:var(--quest
296
297
  };
297
298
  // src/components/question-box/question-box-templates.ts
298
299
  function G(e) {
299
- switch (e) {
300
- case "s": return "xs";
301
- case "m": return "s";
302
- case "l": return "m";
303
- default: return "l";
304
- }
305
- }
306
- function K(e) {
307
300
  switch (e) {
308
301
  case "m": return "xs";
309
302
  case "l": return "s";
@@ -312,38 +305,41 @@ function K(e) {
312
305
  default: return "xxs";
313
306
  }
314
307
  }
315
- function q(e) {
308
+ function K(e) {
316
309
  return e.step >= e.questions.length - 1;
317
310
  }
318
- function ue(e, t) {
311
+ function q(e, t) {
312
+ return e.disabled ? !0 : e.readonly ? K(e) : e.questionInvalid(t);
313
+ }
314
+ function fe(e, t) {
319
315
  let n = e.selectedValues(t);
320
- return n.length === 0 ? "" : ae(n.map((n) => {
316
+ return n.length === 0 ? "" : ce(n.map((n) => {
321
317
  if (n === "__other__") return String(e.value[y(t.id)] ?? e.copy.other);
322
318
  let r = t.options.find((e) => e.value === n);
323
- return r ? oe(r, e.copy) : n;
319
+ return r ? le(r, e.copy) : n;
324
320
  }), e.language);
325
321
  }
326
- function de(e, t) {
327
- let n = ue(e, t), r = e.copy.answer.split("{answer}").map((e, t) => a`${t > 0 ? a`<span class="summary-answer">${n}</span>` : o}${e}`);
328
- return a`<span class="summary-value">${r}</span>`;
322
+ function pe(e, t) {
323
+ let n = fe(e, t), r = e.copy.answer.split("{answer}").map((e, t) => o`${t > 0 ? o`<span class="summary-answer">${n}</span>` : s}${e}`);
324
+ return o`<span class="summary-value">${r}</span>`;
329
325
  }
330
- function fe(e) {
326
+ function me(e) {
331
327
  let t = e.copy, n = e.questions.reduce((t, n) => t + e.selectedValues(n).length, 0);
332
- return a`
328
+ return o`
333
329
  <div class="card resolved">
334
330
  <div class="summary">
335
331
  <h2 class="summary-heading" id="resolved-title" tabindex="-1">
336
332
  ${n === 1 ? t.answerTitle : t.answersTitle}
337
333
  </h2>
338
- ${h(e.questions, (e) => e.id, (t) => a`
334
+ ${m(e.questions, (e) => e.id, (t) => o`
339
335
  <div class="summary-row">
340
336
  <span class="summary-title">${t.title}</span>
341
- ${de(e, t)}
337
+ ${pe(e, t)}
342
338
  </div>
343
339
  `)}
344
340
  </div>
345
341
  <div class="summary-actions">
346
- ${!e.submitted || e.showChange ? a`
342
+ ${!e.submitted || e.showChange ? o`
347
343
  <luzmo-button
348
344
  id="change-button"
349
345
  dir=${e.dir}
@@ -354,8 +350,8 @@ function fe(e) {
354
350
  @click=${e.handlers.change}
355
351
  >${t.change}</luzmo-button
356
352
  >
357
- ` : o}
358
- ${e.submitted ? o : a`
353
+ ` : s}
354
+ ${e.submitted ? s : o`
359
355
  <luzmo-button
360
356
  id="review-submit-button"
361
357
  dir=${e.dir}
@@ -371,76 +367,76 @@ function fe(e) {
371
367
  `;
372
368
  }
373
369
  function J(e, t, n) {
374
- let r = e.optionIndicator === "letters" && n < 26 ? String.fromCharCode(65 + n) : String(n + 1);
375
- return a`
370
+ let i = e.optionIndicator === "letters" && n < 26 ? String.fromCharCode(65 + n) : String(n + 1);
371
+ return o`
376
372
  <span
377
373
  class=${t.description ? "option-content option-content--detailed" : "option-content"}
378
374
  >
379
- <span class="option-number" aria-hidden="true">${r}</span>
375
+ <span class="option-number" aria-hidden="true">${i}</span>
380
376
  <span class="option-copy">
381
377
  <span class="option-heading">
382
378
  <span class="option-text">
383
379
  <span class="option-label">${t.label}</span>
384
- ${t.hint ? a`<span class="option-hint">${t.hint}</span>` : o}
380
+ ${t.hint ? o`<span class="option-hint">${t.hint}</span>` : s}
385
381
  </span>
386
- ${t.recommended ? a`<luzmo-badge
382
+ ${t.recommended ? o`<luzmo-badge
387
383
  class="recommended-label"
388
384
  dir=${e.dir}
389
385
  variant="neutral"
390
386
  treatment="subtle"
391
- size=${G(e.size)}
387
+ size=${r(e.size)}
392
388
  >${e.copy.recommended}</luzmo-badge
393
- >` : o}
389
+ >` : s}
394
390
  </span>
395
- ${t.description ? a`<span class="option-description"
391
+ ${t.description ? o`<span class="option-description"
396
392
  >${t.description}</span
397
- >` : o}
393
+ >` : s}
398
394
  </span>
399
395
  </span>
400
396
  `;
401
397
  }
402
398
  function Y(e, t) {
403
- return e.disabledReason ? a`<span class="visually-hidden" id="option-reason-${t}"
399
+ return e.disabledReason ? o`<span class="visually-hidden" id="option-reason-${t}"
404
400
  >${e.disabledReason}</span
405
- >` : o;
401
+ >` : s;
406
402
  }
407
- function pe(e, t) {
408
- return t ? a`
403
+ function he(e, t) {
404
+ return t ? o`
409
405
  <luzmo-help-text
410
406
  id="question-error"
411
407
  dir=${e.dir}
412
408
  slot="negative-help-text"
413
409
  >${t}</luzmo-help-text
414
410
  >
415
- ` : o;
411
+ ` : s;
416
412
  }
417
413
  function X(e, t) {
418
- if (t.type !== "multiple") return o;
414
+ if (t.type !== "multiple") return s;
419
415
  let n = e.showError ? e.questionError(t) : void 0;
420
- return a`
416
+ return o`
421
417
  <span class="selected-count" aria-live="polite"
422
- >${n ? a`<luzmo-help-text
418
+ >${n ? o`<luzmo-help-text
423
419
  id="question-error"
424
420
  class="status-error"
425
421
  dir=${e.dir}
426
422
  variant="negative"
427
423
  >${n}</luzmo-help-text
428
- >` : ie(e.selectedValues(t).length, e.copy)}</span
424
+ >` : se(e.selectedValues(t).length, e.copy)}</span
429
425
  >
430
426
  `;
431
427
  }
432
- function me(e, t) {
433
- return a`
428
+ function ge(e, t) {
429
+ return o`
434
430
  <div class="other-actions">
435
431
  ${X(e, t)}
436
- ${e.hideSkip ? o : a`
432
+ ${e.hideSkip ? s : o`
437
433
  <luzmo-button
438
434
  id="other-skip-button"
439
435
  dir=${e.dir}
440
436
  variant="primary"
441
- size=${G(e.size)}
437
+ size=${r(e.size)}
442
438
  quiet
443
- ?disabled=${e.disabled}
439
+ ?disabled=${e.disabled || e.readonly}
444
440
  @click=${e.handlers.skip}
445
441
  >${e.copy.skip}</luzmo-button
446
442
  >
@@ -451,23 +447,23 @@ function me(e, t) {
451
447
  class="other-primary"
452
448
  variant="primary"
453
449
  treatment="outline"
454
- size=${G(e.size)}
455
- ?disabled=${e.disabled || e.readonly || e.questionInvalid(t)}
450
+ size=${r(e.size)}
451
+ ?disabled=${q(e, t)}
456
452
  @click=${e.handlers.primary}
457
- >${q(e) ? e.copy.submit : e.copy.continue}</luzmo-button
453
+ >${K(e) ? e.copy.submit : e.copy.continue}</luzmo-button
458
454
  >
459
455
  </div>
460
456
  `;
461
457
  }
462
- function he(e, t) {
458
+ function _e(e, t) {
463
459
  return e.isOtherSelected(t) && String(e.value[y(t.id)] ?? "").trim().length > 0;
464
460
  }
465
461
  function Z(e, t) {
466
- let n = x(t), r = y(t.id), i = e.isOtherSelected(t), o = e.optionDisabled(t, {
462
+ let n = x(t), r = y(t.id), i = e.isOtherSelected(t), a = e.optionDisabled(t, {
467
463
  value: _,
468
464
  label: n.label || e.copy.other
469
465
  }, i), s = e.showError && i && !!e.questionError(t);
470
- return a`
466
+ return o`
471
467
  <luzmo-text-field
472
468
  id="other-field"
473
469
  dir=${e.dir}
@@ -480,7 +476,7 @@ function Z(e, t) {
480
476
  grows
481
477
  rows="1"
482
478
  .value=${String(e.value[r] ?? "")}
483
- ?disabled=${o}
479
+ ?disabled=${a}
484
480
  ?readonly=${e.readonly}
485
481
  ?invalid=${s}
486
482
  @keydown=${e.handlers.otherKeydown}
@@ -489,25 +485,25 @@ function Z(e, t) {
489
485
  ></luzmo-text-field>
490
486
  `;
491
487
  }
492
- function ge(e, t) {
493
- let n = he(e, t);
494
- return t.type === "multiple" || e.hideSkip && !n ? o : a`
488
+ function Q(e, t) {
489
+ let n = _e(e, t);
490
+ return t.type === "multiple" || e.hideSkip && !n ? s : o`
495
491
  <luzmo-button
496
492
  id="other-row-action"
497
493
  dir=${e.dir}
498
494
  class="other-primary"
499
495
  variant="primary"
500
496
  treatment="outline"
501
- size=${G(e.size)}
502
- ?disabled=${n ? e.disabled || e.readonly || e.questionInvalid(t) : e.disabled}
497
+ size=${r(e.size)}
498
+ ?disabled=${n ? q(e, t) : e.disabled || e.readonly}
503
499
  @click=${n ? e.handlers.primary : e.handlers.skip}
504
- >${n ? q(e) ? e.copy.submit : e.copy.continue : e.copy.skip}</luzmo-button
500
+ >${n ? K(e) ? e.copy.submit : e.copy.continue : e.copy.skip}</luzmo-button
505
501
  >
506
502
  `;
507
503
  }
508
- function _e(e, t, n) {
504
+ function ve(e, t, n) {
509
505
  let r = e.selectedValues(t)[0] ?? "", i = t.options.some((e) => e.description) ? "options options--descriptive" : "options";
510
- return a`
506
+ return o`
511
507
  <luzmo-radio-group
512
508
  id="options"
513
509
  dir=${e.dir}
@@ -515,15 +511,15 @@ function _e(e, t, n) {
515
511
  vertical
516
512
  label=${t.title}
517
513
  manual-selection
518
- aria-readonly=${m(e.readonly ? "true" : void 0)}
519
- aria-required=${m(t.required ? "true" : void 0)}
514
+ aria-readonly=${p(e.readonly ? "true" : void 0)}
515
+ aria-required=${p(t.required ? "true" : void 0)}
520
516
  .selected=${r}
521
517
  ?invalid=${!!n}
522
518
  @change=${e.handlers.radioChange}
523
519
  @focusin=${e.handlers.focusIn}
524
520
  @focusout=${e.handlers.focusOut}
525
521
  >
526
- ${h(t.options, (e) => e.value, (n, i) => a`
522
+ ${m(t.options, (e) => e.value, (n, i) => o`
527
523
  <luzmo-radio
528
524
  class="numbered-option"
529
525
  dir=${e.dir}
@@ -533,7 +529,7 @@ function _e(e, t, n) {
533
529
  emphasized
534
530
  ?disabled=${e.optionDisabled(t, n, n.value === r)}
535
531
  ?readonly=${e.readonly}
536
- aria-describedby=${m(n.disabledReason ? `option-reason-${i}` : void 0)}
532
+ aria-describedby=${p(n.disabledReason ? `option-reason-${i}` : void 0)}
537
533
  @click=${e.handlers.radioClick}
538
534
  @change=${e.handlers.radioChange}
539
535
  >
@@ -541,7 +537,7 @@ function _e(e, t, n) {
541
537
  ${Y(n, i)}
542
538
  </luzmo-radio>
543
539
  `)}
544
- ${b(t) ? a`
540
+ ${b(t) ? o`
545
541
  <div class="other-option-row">
546
542
  <div class="other-option-answer">
547
543
  <luzmo-radio
@@ -560,38 +556,38 @@ function _e(e, t, n) {
560
556
  <luzmo-icon
561
557
  block
562
558
  dir=${e.dir}
563
- .size=${K(e.size)}
564
- .icon=${p}
559
+ .size=${G(e.size)}
560
+ .icon=${f}
565
561
  ></luzmo-icon>
566
562
  </span>
567
563
  </luzmo-radio>
568
564
  ${Z(e, t)}
569
565
  </div>
570
- ${ge(e, t)}
566
+ ${Q(e, t)}
571
567
  </div>
572
- ` : o}
573
- ${pe(e, n)}
568
+ ` : s}
569
+ ${he(e, n)}
574
570
  </luzmo-radio-group>
575
571
  `;
576
572
  }
577
- function Q(e, t, n) {
578
- let r = new Set(e.selectedValues(t)), i = e.isOtherSelected(t), s = t.options.some((e) => e.description) ? "options options--descriptive" : "options", c = N(t, e.copy);
579
- return a`
580
- ${c ? a`<span class="visually-hidden" id="selection-requirement"
573
+ function ye(e, t, n) {
574
+ let r = new Set(e.selectedValues(t)), i = e.isOtherSelected(t), a = t.options.some((e) => e.description) ? "options options--descriptive" : "options", c = re(t, e.copy);
575
+ return o`
576
+ ${c ? o`<span class="visually-hidden" id="selection-requirement"
581
577
  >${c}</span
582
- >` : o}
578
+ >` : s}
583
579
  <luzmo-field-group
584
580
  id="options"
585
581
  dir=${e.dir}
586
- class=${s}
582
+ class=${a}
587
583
  vertical
588
584
  label=${t.title}
589
- aria-describedby=${m(c ? "selection-requirement" : void 0)}
585
+ aria-describedby=${p(c ? "selection-requirement" : void 0)}
590
586
  ?invalid=${!!n}
591
587
  @focusin=${e.handlers.focusIn}
592
588
  @focusout=${e.handlers.focusOut}
593
589
  >
594
- ${h(t.options, (e) => e.value, (n, i) => a`
590
+ ${m(t.options, (e) => e.value, (n, i) => o`
595
591
  <luzmo-checkbox
596
592
  class="numbered-option"
597
593
  dir=${e.dir}
@@ -602,14 +598,14 @@ function Q(e, t, n) {
602
598
  ?checked=${r.has(n.value)}
603
599
  ?disabled=${e.optionDisabled(t, n, r.has(n.value))}
604
600
  ?readonly=${e.readonly}
605
- aria-describedby=${m(n.disabledReason ? `option-reason-${i}` : void 0)}
601
+ aria-describedby=${p(n.disabledReason ? `option-reason-${i}` : void 0)}
606
602
  @change=${e.handlers.checkboxChange}
607
603
  >
608
604
  ${J(e, n, i)}
609
605
  ${Y(n, i)}
610
606
  </luzmo-checkbox>
611
607
  `)}
612
- ${b(t) ? a`
608
+ ${b(t) ? o`
613
609
  <div class="other-option-row other-option-row--multiple">
614
610
  <div class="other-option-answer">
615
611
  <luzmo-checkbox
@@ -631,8 +627,8 @@ function Q(e, t, n) {
631
627
  <luzmo-icon
632
628
  block
633
629
  dir=${e.dir}
634
- .size=${K(e.size)}
635
- .icon=${p}
630
+ .size=${G(e.size)}
631
+ .icon=${f}
636
632
  ></luzmo-icon>
637
633
  </span>
638
634
  <span class="visually-hidden"
@@ -642,34 +638,34 @@ function Q(e, t, n) {
642
638
  ${Z(e, t)}
643
639
  </div>
644
640
  </div>
645
- ${me(e, t)}
646
- ` : o}
641
+ ${ge(e, t)}
642
+ ` : s}
647
643
  </luzmo-field-group>
648
644
  `;
649
645
  }
650
- function ve(e, t) {
651
- let n = e.copy, r = k(n.progress, {
646
+ function be(e, t) {
647
+ let n = e.copy, i = k(n.progress, {
652
648
  current: String(e.step + 1),
653
649
  total: String(e.questions.length)
654
- }), i = !e.questionInvalid(t);
655
- return a`
650
+ });
651
+ return o`
656
652
  <header class="header">
657
653
  <div class="heading">
658
654
  <h2 class="title" id="question-title" tabindex="-1">
659
655
  ${t.title}
660
656
  </h2>
661
- ${t.description ? a`<p class="description" id="question-description">
657
+ ${t.description ? o`<p class="description" id="question-description">
662
658
  ${t.description}
663
- </p>` : o}
659
+ </p>` : s}
664
660
  </div>
665
661
  <div class="header-actions">
666
- ${e.questions.length > 1 ? a`
667
- <nav class="step-navigation" aria-label=${r}>
662
+ ${e.questions.length > 1 ? o`
663
+ <nav class="step-navigation" aria-label=${i}>
668
664
  <luzmo-action-button
669
665
  id="back-button"
670
666
  dir=${e.dir}
671
667
  quiet
672
- size=${G(e.size)}
668
+ size=${r(e.size)}
673
669
  label=${n.back}
674
670
  ?disabled=${e.disabled || e.step === 0}
675
671
  @click=${e.handlers.back}
@@ -678,35 +674,35 @@ function ve(e, t) {
678
674
  <luzmo-icon
679
675
  block
680
676
  dir=${e.dir}
681
- .size=${G(e.size)}
682
- .icon=${d}
677
+ .size=${r(e.size)}
678
+ .icon=${ee}
683
679
  ></luzmo-icon>
684
680
  </div>
685
681
  </luzmo-action-button>
686
682
  <p class="progress" id="progress" aria-live="polite">
687
- ${r}
683
+ ${i}
688
684
  </p>
689
685
  <luzmo-action-button
690
686
  id="continue-button"
691
687
  dir=${e.dir}
692
688
  quiet
693
- size=${G(e.size)}
689
+ size=${r(e.size)}
694
690
  label=${n.continue}
695
- ?disabled=${e.disabled || e.readonly || q(e) || !i}
691
+ ?disabled=${q(e, t) || K(e)}
696
692
  @click=${e.handlers.primary}
697
693
  >
698
694
  <div slot="icon">
699
695
  <luzmo-icon
700
696
  block
701
697
  dir=${e.dir}
702
- .size=${G(e.size)}
703
- .icon=${f}
698
+ .size=${r(e.size)}
699
+ .icon=${te}
704
700
  ></luzmo-icon>
705
701
  </div>
706
702
  </luzmo-action-button>
707
703
  </nav>
708
- ` : o}
709
- ${e.hideClose ? o : a`
704
+ ` : s}
705
+ ${e.hideClose ? s : o`
710
706
  <luzmo-close-button
711
707
  id="close-button"
712
708
  dir=${e.dir}
@@ -721,62 +717,62 @@ function ve(e, t) {
721
717
  </header>
722
718
  `;
723
719
  }
724
- function ye(e, t) {
725
- let n = e.copy, r = !e.questionInvalid(t);
726
- return a`
720
+ function xe(e, t) {
721
+ let n = e.copy;
722
+ return o`
727
723
  <footer class="footer">
728
724
  <div class="status">${X(e, t)}</div>
729
725
  <div class="actions">
730
- ${e.hideSkip ? o : a`
726
+ ${e.hideSkip ? s : o`
731
727
  <luzmo-button
732
728
  id="skip-button"
733
729
  dir=${e.dir}
734
730
  variant="primary"
735
731
  treatment="outline"
736
- size=${G(e.size)}
737
- ?disabled=${e.disabled}
732
+ size=${r(e.size)}
733
+ ?disabled=${e.disabled || e.readonly}
738
734
  @click=${e.handlers.skip}
739
735
  >${n.skip}</luzmo-button
740
736
  >
741
737
  `}
742
- ${q(e) && t.type === "multiple" ? a`
738
+ ${K(e) && t.type === "multiple" ? o`
743
739
  <luzmo-button
744
740
  id="submit-button"
745
741
  dir=${e.dir}
746
742
  variant="primary"
747
743
  treatment="outline"
748
- size=${G(e.size)}
749
- ?disabled=${e.disabled || e.readonly || !r}
744
+ size=${r(e.size)}
745
+ ?disabled=${q(e, t)}
750
746
  @click=${e.handlers.primary}
751
747
  >${n.submit}</luzmo-button
752
748
  >
753
- ` : o}
749
+ ` : s}
754
750
  </div>
755
751
  </footer>
756
752
  `;
757
753
  }
758
- function be(e) {
759
- if (e.questions.length === 0) return o;
760
- if (e.resolved) return fe(e);
754
+ function Se(e) {
755
+ if (e.questions.length === 0) return s;
756
+ if (e.resolved) return me(e);
761
757
  let t = e.questions[e.step];
762
- if (!t) return o;
758
+ if (!t) return s;
763
759
  let n = e.showError ? e.questionError(t) : void 0, r = !b(t) && (t.type === "multiple" || !e.hideSkip), i = [
764
760
  e.questions.length > 1 ? "progress" : "",
765
761
  t.description ? "question-description" : "",
766
762
  n ? "question-error" : ""
767
763
  ].filter(Boolean).join(" ") || void 0;
768
- return a`
764
+ return o`
769
765
  <div class="card" @click=${e.handlers.contentClick}>
770
- ${ve(e, t)}
766
+ ${be(e, t)}
771
767
  <div
772
768
  class="body"
773
769
  role="group"
774
770
  aria-labelledby="question-title"
775
- aria-describedby=${m(i)}
771
+ aria-describedby=${p(i)}
776
772
  >
777
- ${t.type === "single" ? _e(e, t, n) : Q(e, t, n)}
773
+ ${h(t.id, t.type === "single" ? ve(e, t, n) : ye(e, t, n))}
778
774
  </div>
779
- ${r ? ye(e, t) : o}
775
+ ${r ? xe(e, t) : s}
780
776
  </div>
781
777
  `;
782
778
  }
@@ -788,7 +784,7 @@ var $ = class extends n(e, { validSizes: [
788
784
  "xl"
789
785
  ] }) {
790
786
  constructor(...e) {
791
- 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 i(this), this._radioChangeAdvanced = !1, this.multipleChoiceRoving = new r(this, {
787
+ 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 a(this), this._radioChangeAdvanced = !1, this.multipleChoiceRoving = new i(this, {
792
788
  direction: "vertical",
793
789
  elements: () => [...this.shadowRoot?.querySelectorAll("luzmo-field-group#options luzmo-checkbox[data-option-index]") ?? []],
794
790
  focusInIndex: (e) => {
@@ -838,12 +834,12 @@ var $ = class extends n(e, { validSizes: [
838
834
  }, this.handleCancelClick = (e) => {
839
835
  e.preventDefault(), this.cancel();
840
836
  }, this.handleSkip = (e) => {
841
- e.preventDefault(), !this.disabled && this.emitResult("decline");
837
+ e.preventDefault(), !(this.disabled || this.readonly) && this.emitResult("decline");
842
838
  }, this.handleBack = (e) => {
843
839
  e.preventDefault(), !(this.disabled || this._step === 0) && (this._showError = !1, --this._step, this.updateComplete.then(() => this.moveFocus(this.questionTitle)));
844
840
  }, this.handlePrimary = () => {
845
841
  let e = this.currentQuestion;
846
- !e || this.disabled || this.readonly || (this.questionInvalid(e) ? (this._showError = !0, this.focusOptions()) : (this._showError = !1, this._step < this.questions.length - 1 ? (this._step += 1, this.updateComplete.then(() => this.moveFocus(this.questionTitle))) : this.acceptFlow()));
842
+ e && !this.disabled && (!this.readonly && this.questionInvalid(e) ? (this._showError = !0, this.focusOptions()) : (this._showError = !1, this._step < this.questions.length - 1 ? (this._step += 1, this.updateComplete.then(() => this.moveFocus(this.questionTitle))) : this.readonly || this.acceptFlow()));
847
843
  }, this.handleChange = () => {
848
844
  this._resolved = !1, this._submitted = !1, this._showError = !1, this.updateComplete.then(() => this.focusOptions());
849
845
  }, this.handleRadioChange = (e) => {
@@ -893,7 +889,7 @@ var $ = class extends n(e, { validSizes: [
893
889
  }
894
890
  static get styles() {
895
891
  let e = super.styles;
896
- return [...Array.isArray(e) ? e : e ? [e] : [], s(g)];
892
+ return [...Array.isArray(e) ? e : e ? [e] : [], c(g)];
897
893
  }
898
894
  get optionIndicator() {
899
895
  return this._optionIndicator;
@@ -942,7 +938,7 @@ var $ = class extends n(e, { validSizes: [
942
938
  super.updated(e), (e.has("questions") || e.has("size") || e.has("disabled") || e.has("readonly") || e.has("_step") || e.has("_resolved")) && this.multipleChoiceRoving.clearElementCache();
943
939
  }
944
940
  render() {
945
- return be(this.renderContext);
941
+ return Se(this.renderContext);
946
942
  }
947
943
  get renderContext() {
948
944
  return {
@@ -989,7 +985,7 @@ var $ = class extends n(e, { validSizes: [
989
985
  };
990
986
  }
991
987
  get copy() {
992
- return ee(this.labels);
988
+ return O(this.labels);
993
989
  }
994
990
  get currentQuestion() {
995
991
  return this.questions[this._step];
@@ -1039,7 +1035,7 @@ var $ = class extends n(e, { validSizes: [
1039
1035
  }
1040
1036
  acceptFlow() {
1041
1037
  let e = this.questions.findIndex((e) => this.questionInvalid(e));
1042
- e === -1 ? (this._showError = !1, this._resolved = !0, this._submitted = !0, this.emitResult("accept", R(this.questions, this.value)), this.updateComplete.then(() => this.focus())) : (this._step = e, this._showError = !0, this.updateComplete.then(() => this.focusOptions()));
1038
+ e === -1 ? (this._showError = !1, this._resolved = !0, this._submitted = !0, this.emitResult("accept", z(this.questions, this.value)), this.updateComplete.then(() => this.focus())) : (this._step = e, this._showError = !0, this.updateComplete.then(() => this.focusOptions()));
1043
1039
  }
1044
1040
  commitAnswer(e, t, n) {
1045
1041
  let r = S(this.value);
@@ -1085,42 +1081,42 @@ var $ = class extends n(e, { validSizes: [
1085
1081
  }));
1086
1082
  }
1087
1083
  selectedValues(e) {
1088
- return D(e, this.value);
1084
+ return E(e, this.value);
1089
1085
  }
1090
1086
  isOtherSelected(e) {
1091
- return O(e, this.value);
1087
+ return D(e, this.value);
1092
1088
  }
1093
1089
  questionError(e) {
1094
- return ne(e, this.value, this.copy);
1090
+ return ae(e, this.value, this.copy);
1095
1091
  }
1096
1092
  questionInvalid(e) {
1097
- return te(e, this.value);
1093
+ return ie(e, this.value);
1098
1094
  }
1099
1095
  optionDisabled(e, t, n) {
1100
- return re(e, t, n, this.value, this.disabled);
1096
+ return oe(e, t, n, this.value, this.disabled);
1101
1097
  }
1102
1098
  };
1103
1099
  // src/components/question-box/index.ts
1104
- t([c({ attribute: !1 })], $.prototype, "questions", void 0), t([c({ attribute: !1 })], $.prototype, "value", void 0), t([c({ attribute: !1 })], $.prototype, "labels", void 0), t([c({ reflect: !0 })], $.prototype, "dir", void 0), t([c({
1100
+ t([l({ attribute: !1 })], $.prototype, "questions", void 0), t([l({ attribute: !1 })], $.prototype, "value", void 0), t([l({ attribute: !1 })], $.prototype, "labels", void 0), t([l({ reflect: !0 })], $.prototype, "dir", void 0), t([l({
1105
1101
  type: Boolean,
1106
1102
  reflect: !0
1107
- })], $.prototype, "disabled", void 0), t([c({
1103
+ })], $.prototype, "disabled", void 0), t([l({
1108
1104
  type: Boolean,
1109
1105
  reflect: !0
1110
- })], $.prototype, "readonly", void 0), t([c({
1106
+ })], $.prototype, "readonly", void 0), t([l({
1111
1107
  type: Boolean,
1112
1108
  reflect: !0,
1113
1109
  attribute: "hide-close"
1114
- })], $.prototype, "hideClose", void 0), t([c({
1110
+ })], $.prototype, "hideClose", void 0), t([l({
1115
1111
  type: Boolean,
1116
1112
  reflect: !0,
1117
1113
  attribute: "hide-skip"
1118
- })], $.prototype, "hideSkip", void 0), t([c({
1114
+ })], $.prototype, "hideSkip", void 0), t([l({
1119
1115
  type: Boolean,
1120
1116
  reflect: !0,
1121
1117
  attribute: "show-change"
1122
- })], $.prototype, "showChange", void 0), t([c({
1118
+ })], $.prototype, "showChange", void 0), t([l({
1123
1119
  reflect: !0,
1124
1120
  attribute: "option-indicator"
1125
- })], $.prototype, "optionIndicator", null), t([u()], $.prototype, "_step", void 0), t([u()], $.prototype, "_resolved", void 0), t([u()], $.prototype, "_submitted", void 0), t([u()], $.prototype, "_showError", void 0), t([l("#question-title")], $.prototype, "questionTitle", void 0), t([l("#other-field")], $.prototype, "otherField", void 0), t([l("#options")], $.prototype, "optionsGroup", void 0), t([l("#resolved-title")], $.prototype, "resolvedTitle", void 0), typeof customElements < "u" && !customElements.get("luzmo-question-box") && customElements.define("luzmo-question-box", $);
1126
- export { v as a, R as i, I as n, _ as o, le as r, y as s, $ as t };
1121
+ })], $.prototype, "optionIndicator", null), t([d()], $.prototype, "_step", void 0), t([d()], $.prototype, "_resolved", void 0), t([d()], $.prototype, "_submitted", void 0), t([d()], $.prototype, "_showError", void 0), t([u("#question-title")], $.prototype, "questionTitle", void 0), t([u("#other-field")], $.prototype, "otherField", void 0), t([u("#options")], $.prototype, "optionsGroup", void 0), t([u("#resolved-title")], $.prototype, "resolvedTitle", void 0), typeof customElements < "u" && !customElements.get("luzmo-question-box") && customElements.define("luzmo-question-box", $);
1122
+ export { v as a, z as i, L as n, _ as o, de as r, y as s, $ as t };