@beeq/core 1.12.2-beta.0 → 1.12.2

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 (431) hide show
  1. package/dist/beeq/beeq.esm.js +1 -44
  2. package/dist/beeq/index.esm.js +1 -69
  3. package/dist/beeq/p-04dac1c6.entry.js +6 -0
  4. package/dist/beeq/{p-ff327b98.entry.js.map → p-04dac1c6.entry.js.map} +1 -1
  5. package/dist/beeq/p-08c11d40.entry.js +6 -0
  6. package/dist/beeq/{p-c34fc2c7.entry.js.map → p-08c11d40.entry.js.map} +1 -1
  7. package/dist/beeq/p-1f8fbd9d.entry.js +6 -0
  8. package/dist/beeq/{p-ff73f344.entry.js.map → p-1f8fbd9d.entry.js.map} +1 -1
  9. package/dist/beeq/p-214ec65e.entry.js +6 -0
  10. package/dist/beeq/{p-110c262d.entry.js.map → p-214ec65e.entry.js.map} +1 -1
  11. package/dist/beeq/p-2a7b2e52.entry.js +6 -0
  12. package/dist/beeq/{p-978b2249.entry.js.map → p-2a7b2e52.entry.js.map} +1 -1
  13. package/dist/beeq/p-2eb81c09.entry.js +6 -0
  14. package/dist/beeq/{p-47571092.entry.js.map → p-2eb81c09.entry.js.map} +1 -1
  15. package/dist/beeq/p-39888c37.entry.js +6 -0
  16. package/dist/beeq/{p-11671252.entry.js.map → p-39888c37.entry.js.map} +1 -1
  17. package/dist/beeq/p-3abc34ec.entry.js +6 -0
  18. package/dist/beeq/{p-94c2081a.entry.js.map → p-3abc34ec.entry.js.map} +1 -1
  19. package/dist/beeq/p-4588abed.entry.js +6 -0
  20. package/dist/beeq/{p-f6d82c39.entry.js.map → p-4588abed.entry.js.map} +1 -1
  21. package/dist/{components/p-C8_OKNHL.js → beeq/p-4c32eb15.entry.js} +2 -221
  22. package/dist/beeq/{p-20162842.entry.js.map → p-4c32eb15.entry.js.map} +1 -1
  23. package/dist/beeq/p-4fbfc43c.entry.js +6 -0
  24. package/dist/beeq/{p-70607940.entry.js.map → p-4fbfc43c.entry.js.map} +1 -1
  25. package/dist/beeq/p-520335c7.entry.js +6 -0
  26. package/dist/beeq/{p-b194e120.entry.js.map → p-520335c7.entry.js.map} +1 -1
  27. package/dist/beeq/p-586937fa.entry.js +6 -0
  28. package/dist/beeq/{p-ac7cd72b.entry.js.map → p-586937fa.entry.js.map} +1 -1
  29. package/dist/beeq/p-64bf3252.entry.js +6 -0
  30. package/dist/beeq/{p-6d708caf.entry.js.map → p-64bf3252.entry.js.map} +1 -1
  31. package/dist/beeq/p-6e1856ec.entry.js +6 -0
  32. package/dist/beeq/{p-54ddd09f.entry.js.map → p-6e1856ec.entry.js.map} +1 -1
  33. package/dist/beeq/p-7dd86b3a.entry.js +6 -0
  34. package/dist/beeq/{p-1aba3eec.entry.js.map → p-7dd86b3a.entry.js.map} +1 -1
  35. package/dist/beeq/p-81d78b05.entry.js +6 -0
  36. package/dist/beeq/{p-c630a8b8.entry.js.map → p-81d78b05.entry.js.map} +1 -1
  37. package/dist/beeq/p-82ee164d.entry.js +6 -0
  38. package/dist/beeq/{p-9a78587d.entry.js.map → p-82ee164d.entry.js.map} +1 -1
  39. package/dist/{components/p-CXLw0i9p.js → beeq/p-85d57b16.entry.js} +2 -291
  40. package/dist/beeq/{p-f97c679f.entry.js.map → p-85d57b16.entry.js.map} +1 -1
  41. package/dist/beeq/p-91c69867.entry.js +6 -0
  42. package/dist/beeq/{p-72c376a9.entry.js.map → p-91c69867.entry.js.map} +1 -1
  43. package/dist/beeq/p-B4sM1t6Z.js +1 -8
  44. package/dist/beeq/p-BNvWMggA.js +1 -23
  45. package/dist/beeq/p-BRMw_HGf.js +1 -8
  46. package/dist/beeq/p-BRbYDZoo.js +1 -10
  47. package/dist/beeq/p-BcPwGxIn.js +1 -9
  48. package/dist/beeq/p-BsSDkLU5.js +1 -26
  49. package/dist/beeq/p-BtYhUEAn.js +1 -4
  50. package/dist/beeq/p-C33fRBEf.js +1 -151
  51. package/dist/beeq/p-CCNjsDdb.js +1 -88
  52. package/dist/beeq/p-CVw85-WU.js +1 -64
  53. package/dist/beeq/p-Cau9SvT4.js +1 -12
  54. package/dist/beeq/p-CmKvDWiL.js +1 -1782
  55. package/dist/beeq/p-CpKQ7XUL.js +1 -284
  56. package/dist/beeq/p-D1A0LpG_.js +1 -10
  57. package/dist/beeq/p-D1N0tWF3.js +7 -0
  58. package/dist/beeq/p-D1N0tWF3.js.map +1 -0
  59. package/dist/beeq/p-DdvbF5yL.js +1 -119
  60. package/dist/beeq/p-DnkZCdMA.js +1 -8
  61. package/dist/beeq/p-Ds7rcaFH.js +1 -65
  62. package/dist/beeq/p-Dx-CEPSQ.js +1 -13
  63. package/dist/beeq/p-_RvVpeh2.js +1 -29
  64. package/dist/beeq/p-a350925a.entry.js +6 -0
  65. package/dist/beeq/{p-cc6b349e.entry.js.map → p-a350925a.entry.js.map} +1 -1
  66. package/dist/beeq/p-a416eb22.entry.js +6 -0
  67. package/dist/beeq/{p-8b5934a3.entry.js.map → p-a416eb22.entry.js.map} +1 -1
  68. package/dist/beeq/p-a4865383.entry.js +6 -0
  69. package/dist/beeq/{p-1011ae42.entry.js.map → p-a4865383.entry.js.map} +1 -1
  70. package/dist/beeq/p-a6cd9c8c.entry.js +6 -0
  71. package/dist/beeq/{p-b0f9a0cb.entry.js.map → p-a6cd9c8c.entry.js.map} +1 -1
  72. package/dist/beeq/p-aec68c6d.entry.js +6 -0
  73. package/dist/beeq/{p-b2858324.entry.js.map → p-aec68c6d.entry.js.map} +1 -1
  74. package/dist/beeq/p-aede4b4e.entry.js +6 -0
  75. package/dist/beeq/{p-3a4c4de9.entry.js.map → p-aede4b4e.entry.js.map} +1 -1
  76. package/dist/beeq/{p-db09cc1e.entry.js → p-c0e9a6cf.entry.js} +2 -83
  77. package/dist/beeq/{p-78bbd845.entry.js.map → p-c0e9a6cf.entry.js.map} +1 -1
  78. package/dist/beeq/p-c6fdcdf6.entry.js +6 -0
  79. package/dist/beeq/{p-f83010e9.entry.js.map → p-c6fdcdf6.entry.js.map} +1 -1
  80. package/dist/beeq/p-c9ff0a5c.entry.js +6 -0
  81. package/dist/beeq/{p-426fd908.entry.js.map → p-c9ff0a5c.entry.js.map} +1 -1
  82. package/dist/{components/p-DBPU_cIr.js → beeq/p-cc634b64.entry.js} +2 -334
  83. package/dist/beeq/{p-8012f01d.entry.js.map → p-cc634b64.entry.js.map} +1 -1
  84. package/dist/beeq/p-d1d71d1c.entry.js +6 -0
  85. package/dist/beeq/{p-db09cc1e.entry.js.map → p-d1d71d1c.entry.js.map} +1 -1
  86. package/dist/beeq/p-df16b51b.entry.js +6 -0
  87. package/dist/beeq/{p-11fcb99b.entry.js.map → p-df16b51b.entry.js.map} +1 -1
  88. package/dist/{components/p-YyF6_fWE.js → beeq/p-e4767c3c.entry.js} +2 -381
  89. package/dist/beeq/{p-6b68123f.entry.js.map → p-e4767c3c.entry.js.map} +1 -1
  90. package/dist/beeq/p-e9ac61fd.entry.js +6 -0
  91. package/dist/beeq/{p-cb9b1edc.entry.js.map → p-e9ac61fd.entry.js.map} +1 -1
  92. package/dist/beeq/p-ea2214aa.entry.js +6 -0
  93. package/dist/beeq/{p-ae85a23a.entry.js.map → p-ea2214aa.entry.js.map} +1 -1
  94. package/dist/beeq/{p-ff327b98.entry.js → p-ea3db4eb.entry.js} +2 -116
  95. package/dist/beeq/{p-49e90223.entry.js.map → p-ea3db4eb.entry.js.map} +1 -1
  96. package/dist/beeq/p-f0729f34.entry.js +6 -0
  97. package/dist/beeq/{p-95979cb0.entry.js.map → p-f0729f34.entry.js.map} +1 -1
  98. package/dist/beeq/p-f159529e.entry.js +6 -0
  99. package/dist/beeq/{p-4b00a155.entry.js.map → p-f159529e.entry.js.map} +1 -1
  100. package/dist/beeq/p-fb8f84c3.entry.js +6 -0
  101. package/dist/beeq/{p-d0edfaa5.entry.js.map → p-fb8f84c3.entry.js.map} +1 -1
  102. package/dist/beeq/p-lysmVw2n.js +1 -12
  103. package/dist/beeq/p-uqkxeAeG.js +1 -88
  104. package/dist/beeq/p-zh4P02Kn.js +1 -21
  105. package/dist/beeq.html-custom-data.json +80 -80
  106. package/dist/cjs/beeq.cjs.js +1 -1
  107. package/dist/cjs/bq-accordion-group.cjs.entry.js +2 -2
  108. package/dist/cjs/bq-accordion-group.cjs.entry.js.map +1 -1
  109. package/dist/cjs/bq-accordion.cjs.entry.js +1 -1
  110. package/dist/cjs/bq-alert.cjs.entry.js +2 -2
  111. package/dist/cjs/bq-alert.cjs.entry.js.map +1 -1
  112. package/dist/cjs/bq-avatar.cjs.entry.js +2 -2
  113. package/dist/cjs/bq-avatar.cjs.entry.js.map +1 -1
  114. package/dist/cjs/bq-badge.cjs.entry.js +1 -1
  115. package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +2 -2
  116. package/dist/cjs/bq-breadcrumb-item.cjs.entry.js.map +1 -1
  117. package/dist/cjs/bq-breadcrumb.cjs.entry.js +2 -2
  118. package/dist/cjs/bq-breadcrumb.cjs.entry.js.map +1 -1
  119. package/dist/cjs/bq-button_2.cjs.entry.js +2 -2
  120. package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
  121. package/dist/cjs/bq-card.cjs.entry.js +2 -2
  122. package/dist/cjs/bq-card.cjs.entry.js.map +1 -1
  123. package/dist/cjs/bq-checkbox.cjs.entry.js +2 -2
  124. package/dist/cjs/bq-checkbox.cjs.entry.js.map +1 -1
  125. package/dist/cjs/bq-date-picker.cjs.entry.js +2 -2
  126. package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -1
  127. package/dist/cjs/bq-dialog.cjs.entry.js +2 -2
  128. package/dist/cjs/bq-dialog.cjs.entry.js.map +1 -1
  129. package/dist/cjs/bq-divider.cjs.entry.js +1 -1
  130. package/dist/cjs/bq-drawer.cjs.entry.js +2 -2
  131. package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
  132. package/dist/cjs/bq-dropdown_2.cjs.entry.js +3 -3
  133. package/dist/cjs/bq-dropdown_2.cjs.entry.js.map +1 -1
  134. package/dist/cjs/bq-empty-state.cjs.entry.js +2 -2
  135. package/dist/cjs/bq-empty-state.cjs.entry.js.map +1 -1
  136. package/dist/cjs/bq-input.cjs.entry.js +2 -2
  137. package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
  138. package/dist/cjs/bq-notification.cjs.entry.js +2 -2
  139. package/dist/cjs/bq-notification.cjs.entry.js.map +1 -1
  140. package/dist/cjs/bq-option-group.cjs.entry.js +2 -2
  141. package/dist/cjs/bq-option-group.cjs.entry.js.map +1 -1
  142. package/dist/cjs/bq-option-list_2.cjs.entry.js +3 -3
  143. package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -1
  144. package/dist/cjs/bq-option.cjs.entry.js +1 -1
  145. package/dist/cjs/bq-page-title.cjs.entry.js +2 -2
  146. package/dist/cjs/bq-page-title.cjs.entry.js.map +1 -1
  147. package/dist/cjs/bq-progress.cjs.entry.js +2 -2
  148. package/dist/cjs/bq-progress.cjs.entry.js.map +1 -1
  149. package/dist/cjs/bq-radio-group.cjs.entry.js +1 -1
  150. package/dist/cjs/bq-radio.cjs.entry.js +1 -1
  151. package/dist/cjs/bq-select.cjs.entry.js +2 -2
  152. package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
  153. package/dist/cjs/bq-side-menu-item.cjs.entry.js +2 -2
  154. package/dist/cjs/bq-side-menu-item.cjs.entry.js.map +1 -1
  155. package/dist/cjs/bq-side-menu.cjs.entry.js +1 -1
  156. package/dist/cjs/bq-slider.cjs.entry.js +1 -1
  157. package/dist/cjs/bq-spinner.cjs.entry.js +2 -2
  158. package/dist/cjs/bq-spinner.cjs.entry.js.map +1 -1
  159. package/dist/cjs/bq-status.cjs.entry.js +2 -2
  160. package/dist/cjs/bq-status.cjs.entry.js.map +1 -1
  161. package/dist/cjs/bq-step-item.cjs.entry.js +2 -2
  162. package/dist/cjs/bq-step-item.cjs.entry.js.map +1 -1
  163. package/dist/cjs/bq-steps.cjs.entry.js +1 -1
  164. package/dist/cjs/bq-switch.cjs.entry.js +2 -2
  165. package/dist/cjs/bq-switch.cjs.entry.js.map +1 -1
  166. package/dist/cjs/bq-tab-group.cjs.entry.js +1 -1
  167. package/dist/cjs/bq-tab.cjs.entry.js +2 -2
  168. package/dist/cjs/bq-tab.cjs.entry.js.map +1 -1
  169. package/dist/cjs/bq-textarea.cjs.entry.js +2 -2
  170. package/dist/cjs/bq-textarea.cjs.entry.js.map +1 -1
  171. package/dist/cjs/bq-toast.cjs.entry.js +2 -2
  172. package/dist/cjs/bq-toast.cjs.entry.js.map +1 -1
  173. package/dist/cjs/bq-tooltip.cjs.entry.js +1 -1
  174. package/dist/cjs/{index-BwvwUnfB.js → index-CvbyQUB9.js} +2 -19
  175. package/dist/cjs/index-CvbyQUB9.js.map +1 -0
  176. package/dist/cjs/loader.cjs.js +1 -1
  177. package/dist/collection/components/select/bq-select.js +2 -2
  178. package/dist/collection/components/select/scss/bq-select.css +1 -1
  179. package/dist/collection/components/step-item/scss/bq-step-item.css +1 -1
  180. package/dist/collection/components/tag/scss/bq-tag.css +1 -1
  181. package/dist/components/bq-accordion-group.js +1 -157
  182. package/dist/components/bq-accordion-group.js.map +1 -1
  183. package/dist/components/bq-accordion.js +1 -444
  184. package/dist/components/bq-accordion.js.map +1 -1
  185. package/dist/components/bq-alert.js +1 -354
  186. package/dist/components/bq-alert.js.map +1 -1
  187. package/dist/components/bq-avatar.js +1 -206
  188. package/dist/components/bq-avatar.js.map +1 -1
  189. package/dist/components/bq-badge.js +1 -8
  190. package/dist/components/bq-breadcrumb-item.js +1 -129
  191. package/dist/components/bq-breadcrumb-item.js.map +1 -1
  192. package/dist/components/bq-breadcrumb.js +1 -138
  193. package/dist/components/bq-breadcrumb.js.map +1 -1
  194. package/dist/components/bq-button.js +1 -8
  195. package/dist/components/bq-card.js +1 -118
  196. package/dist/components/bq-card.js.map +1 -1
  197. package/dist/components/bq-checkbox.js +1 -314
  198. package/dist/components/bq-checkbox.js.map +1 -1
  199. package/dist/components/bq-date-picker.js +1 -1113
  200. package/dist/components/bq-date-picker.js.map +1 -1
  201. package/dist/components/bq-dialog.js +1 -347
  202. package/dist/components/bq-dialog.js.map +1 -1
  203. package/dist/components/bq-divider.js +1 -8
  204. package/dist/components/bq-drawer.js +1 -356
  205. package/dist/components/bq-drawer.js.map +1 -1
  206. package/dist/components/bq-dropdown.js +1 -8
  207. package/dist/components/bq-empty-state.js +1 -192
  208. package/dist/components/bq-empty-state.js.map +1 -1
  209. package/dist/components/bq-icon.js +1 -8
  210. package/dist/components/bq-input.js +1 -502
  211. package/dist/components/bq-input.js.map +1 -1
  212. package/dist/components/bq-notification.js +1 -381
  213. package/dist/components/bq-notification.js.map +1 -1
  214. package/dist/components/bq-option-group.js +1 -104
  215. package/dist/components/bq-option-group.js.map +1 -1
  216. package/dist/components/bq-option-list.js +1 -8
  217. package/dist/components/bq-option.js +1 -200
  218. package/dist/components/bq-option.js.map +1 -1
  219. package/dist/components/bq-page-title.js +1 -150
  220. package/dist/components/bq-page-title.js.map +1 -1
  221. package/dist/components/bq-panel.js +1 -8
  222. package/dist/components/bq-progress.js +1 -220
  223. package/dist/components/bq-progress.js.map +1 -1
  224. package/dist/components/bq-radio-group.js +1 -457
  225. package/dist/components/bq-radio-group.js.map +1 -1
  226. package/dist/components/bq-radio.js +1 -219
  227. package/dist/components/bq-radio.js.map +1 -1
  228. package/dist/components/bq-select.js +1 -794
  229. package/dist/components/bq-select.js.map +1 -1
  230. package/dist/components/bq-side-menu-item.js +1 -181
  231. package/dist/components/bq-side-menu-item.js.map +1 -1
  232. package/dist/components/bq-side-menu.js +1 -200
  233. package/dist/components/bq-side-menu.js.map +1 -1
  234. package/dist/components/bq-slider.js +1 -443
  235. package/dist/components/bq-slider.js.map +1 -1
  236. package/dist/components/bq-spinner.js +1 -248
  237. package/dist/components/bq-spinner.js.map +1 -1
  238. package/dist/components/bq-status.js +1 -119
  239. package/dist/components/bq-status.js.map +1 -1
  240. package/dist/components/bq-step-item.js +1 -236
  241. package/dist/components/bq-step-item.js.map +1 -1
  242. package/dist/components/bq-steps.js +1 -175
  243. package/dist/components/bq-steps.js.map +1 -1
  244. package/dist/components/bq-switch.js +1 -330
  245. package/dist/components/bq-switch.js.map +1 -1
  246. package/dist/components/bq-tab-group.js +1 -273
  247. package/dist/components/bq-tab-group.js.map +1 -1
  248. package/dist/components/bq-tab.js +1 -248
  249. package/dist/components/bq-tab.js.map +1 -1
  250. package/dist/components/bq-tag.js +1 -8
  251. package/dist/components/bq-textarea.js +1 -393
  252. package/dist/components/bq-textarea.js.map +1 -1
  253. package/dist/components/bq-toast.js +1 -281
  254. package/dist/components/bq-toast.js.map +1 -1
  255. package/dist/components/bq-tooltip.js +1 -8
  256. package/dist/components/index.js +1 -149
  257. package/dist/components/index.js.map +1 -1
  258. package/dist/components/p--ouTGcG3.js +6 -0
  259. package/dist/components/p--ouTGcG3.js.map +1 -0
  260. package/dist/components/p-B4sM1t6Z.js +1 -8
  261. package/dist/components/p-B4sM1t6Z.js.map +1 -1
  262. package/dist/components/p-BAkBsRtN.js +6 -0
  263. package/dist/components/{p-C8_OKNHL.js.map → p-BAkBsRtN.js.map} +1 -1
  264. package/dist/components/p-BRMw_HGf.js +1 -8
  265. package/dist/components/p-BRMw_HGf.js.map +1 -1
  266. package/dist/components/p-BRbYDZoo.js +1 -10
  267. package/dist/components/p-BRbYDZoo.js.map +1 -1
  268. package/dist/components/p-B_4UApqI.js +6 -0
  269. package/dist/components/{p-DSqLegVR.js.map → p-B_4UApqI.js.map} +1 -1
  270. package/dist/components/p-BcPwGxIn.js +1 -9
  271. package/dist/components/p-BcPwGxIn.js.map +1 -1
  272. package/dist/components/p-BhbDh_JY.js +6 -0
  273. package/dist/components/{p-DBPU_cIr.js.map → p-BhbDh_JY.js.map} +1 -1
  274. package/dist/components/p-BoJH_4tj.js +6 -0
  275. package/dist/components/{p-DHhUeR-_.js.map → p-BoJH_4tj.js.map} +1 -1
  276. package/dist/components/p-BsSDkLU5.js +1 -26
  277. package/dist/components/p-BsSDkLU5.js.map +1 -1
  278. package/dist/components/p-CLmlNuSo.js +6 -0
  279. package/dist/components/{p-CMejKLsB.js.map → p-CLmlNuSo.js.map} +1 -1
  280. package/dist/{beeq/p-1011ae42.entry.js → components/p-CN6wf6ZV.js} +2 -89
  281. package/dist/components/{p-YyF6_fWE.js.map → p-CN6wf6ZV.js.map} +1 -1
  282. package/dist/components/p-CVw85-WU.js +1 -64
  283. package/dist/components/p-CVw85-WU.js.map +1 -1
  284. package/dist/components/p-CmKvDWiL.js +1 -1782
  285. package/dist/components/p-CmKvDWiL.js.map +1 -1
  286. package/dist/components/p-D1A0LpG_.js +1 -10
  287. package/dist/components/p-D1A0LpG_.js.map +1 -1
  288. package/dist/components/p-DGQflEm1.js +6 -0
  289. package/dist/components/{p-C97BzPa8.js.map → p-DGQflEm1.js.map} +1 -1
  290. package/dist/{beeq/p-6b68123f.entry.js → components/p-DYvRNhKc.js} +2 -246
  291. package/dist/components/{p-CXLw0i9p.js.map → p-DYvRNhKc.js.map} +1 -1
  292. package/dist/components/p-DdvbF5yL.js +1 -119
  293. package/dist/components/p-DdvbF5yL.js.map +1 -1
  294. package/dist/components/p-DnkZCdMA.js +1 -8
  295. package/dist/components/p-DnkZCdMA.js.map +1 -1
  296. package/dist/components/p-Dx-CEPSQ.js +1 -13
  297. package/dist/components/p-Dx-CEPSQ.js.map +1 -1
  298. package/dist/components/p-Hb8O3M5O.js +6 -0
  299. package/dist/components/{p-qOL6hl5s.js.map → p-Hb8O3M5O.js.map} +1 -1
  300. package/dist/components/p-_RvVpeh2.js +1 -29
  301. package/dist/components/p-_RvVpeh2.js.map +1 -1
  302. package/dist/components/p-lysmVw2n.js +1 -12
  303. package/dist/components/p-lysmVw2n.js.map +1 -1
  304. package/dist/components/p-uqkxeAeG.js +1 -88
  305. package/dist/components/p-uqkxeAeG.js.map +1 -1
  306. package/dist/components/p-zh4P02Kn.js +1 -21
  307. package/dist/components/p-zh4P02Kn.js.map +1 -1
  308. package/dist/custom-elements.json +1513 -1513
  309. package/dist/esm/beeq.js +2 -2
  310. package/dist/esm/bq-accordion-group.entry.js +2 -2
  311. package/dist/esm/bq-accordion-group.entry.js.map +1 -1
  312. package/dist/esm/bq-accordion.entry.js +1 -1
  313. package/dist/esm/bq-alert.entry.js +2 -2
  314. package/dist/esm/bq-alert.entry.js.map +1 -1
  315. package/dist/esm/bq-avatar.entry.js +2 -2
  316. package/dist/esm/bq-avatar.entry.js.map +1 -1
  317. package/dist/esm/bq-badge.entry.js +1 -1
  318. package/dist/esm/bq-breadcrumb-item.entry.js +2 -2
  319. package/dist/esm/bq-breadcrumb-item.entry.js.map +1 -1
  320. package/dist/esm/bq-breadcrumb.entry.js +2 -2
  321. package/dist/esm/bq-breadcrumb.entry.js.map +1 -1
  322. package/dist/esm/bq-button_2.entry.js +2 -2
  323. package/dist/esm/bq-button_2.entry.js.map +1 -1
  324. package/dist/esm/bq-card.entry.js +2 -2
  325. package/dist/esm/bq-card.entry.js.map +1 -1
  326. package/dist/esm/bq-checkbox.entry.js +2 -2
  327. package/dist/esm/bq-checkbox.entry.js.map +1 -1
  328. package/dist/esm/bq-date-picker.entry.js +2 -2
  329. package/dist/esm/bq-date-picker.entry.js.map +1 -1
  330. package/dist/esm/bq-dialog.entry.js +2 -2
  331. package/dist/esm/bq-dialog.entry.js.map +1 -1
  332. package/dist/esm/bq-divider.entry.js +1 -1
  333. package/dist/esm/bq-drawer.entry.js +2 -2
  334. package/dist/esm/bq-drawer.entry.js.map +1 -1
  335. package/dist/esm/bq-dropdown_2.entry.js +3 -3
  336. package/dist/esm/bq-dropdown_2.entry.js.map +1 -1
  337. package/dist/esm/bq-empty-state.entry.js +2 -2
  338. package/dist/esm/bq-empty-state.entry.js.map +1 -1
  339. package/dist/esm/bq-input.entry.js +2 -2
  340. package/dist/esm/bq-input.entry.js.map +1 -1
  341. package/dist/esm/bq-notification.entry.js +2 -2
  342. package/dist/esm/bq-notification.entry.js.map +1 -1
  343. package/dist/esm/bq-option-group.entry.js +2 -2
  344. package/dist/esm/bq-option-group.entry.js.map +1 -1
  345. package/dist/esm/bq-option-list_2.entry.js +3 -3
  346. package/dist/esm/bq-option-list_2.entry.js.map +1 -1
  347. package/dist/esm/bq-option.entry.js +1 -1
  348. package/dist/esm/bq-page-title.entry.js +2 -2
  349. package/dist/esm/bq-page-title.entry.js.map +1 -1
  350. package/dist/esm/bq-progress.entry.js +2 -2
  351. package/dist/esm/bq-progress.entry.js.map +1 -1
  352. package/dist/esm/bq-radio-group.entry.js +1 -1
  353. package/dist/esm/bq-radio.entry.js +1 -1
  354. package/dist/esm/bq-select.entry.js +2 -2
  355. package/dist/esm/bq-select.entry.js.map +1 -1
  356. package/dist/esm/bq-side-menu-item.entry.js +2 -2
  357. package/dist/esm/bq-side-menu-item.entry.js.map +1 -1
  358. package/dist/esm/bq-side-menu.entry.js +1 -1
  359. package/dist/esm/bq-slider.entry.js +1 -1
  360. package/dist/esm/bq-spinner.entry.js +2 -2
  361. package/dist/esm/bq-spinner.entry.js.map +1 -1
  362. package/dist/esm/bq-status.entry.js +2 -2
  363. package/dist/esm/bq-status.entry.js.map +1 -1
  364. package/dist/esm/bq-step-item.entry.js +2 -2
  365. package/dist/esm/bq-step-item.entry.js.map +1 -1
  366. package/dist/esm/bq-steps.entry.js +1 -1
  367. package/dist/esm/bq-switch.entry.js +2 -2
  368. package/dist/esm/bq-switch.entry.js.map +1 -1
  369. package/dist/esm/bq-tab-group.entry.js +1 -1
  370. package/dist/esm/bq-tab.entry.js +2 -2
  371. package/dist/esm/bq-tab.entry.js.map +1 -1
  372. package/dist/esm/bq-textarea.entry.js +2 -2
  373. package/dist/esm/bq-textarea.entry.js.map +1 -1
  374. package/dist/esm/bq-toast.entry.js +2 -2
  375. package/dist/esm/bq-toast.entry.js.map +1 -1
  376. package/dist/esm/bq-tooltip.entry.js +1 -1
  377. package/dist/esm/{index-D0hQxkOP.js → index-D1N0tWF3.js} +2 -19
  378. package/dist/esm/index-D1N0tWF3.js.map +1 -0
  379. package/dist/esm/loader.js +2 -2
  380. package/dist/hydrate/index.js +3 -3
  381. package/dist/hydrate/index.mjs +3 -3
  382. package/package.json +1 -1
  383. package/dist/beeq/p-110c262d.entry.js +0 -173
  384. package/dist/beeq/p-11671252.entry.js +0 -128
  385. package/dist/beeq/p-11fcb99b.entry.js +0 -281
  386. package/dist/beeq/p-1aba3eec.entry.js +0 -150
  387. package/dist/beeq/p-20162842.entry.js +0 -151
  388. package/dist/beeq/p-3a4c4de9.entry.js +0 -188
  389. package/dist/beeq/p-426fd908.entry.js +0 -215
  390. package/dist/beeq/p-47571092.entry.js +0 -289
  391. package/dist/beeq/p-49e90223.entry.js +0 -86
  392. package/dist/beeq/p-4b00a155.entry.js +0 -747
  393. package/dist/beeq/p-54ddd09f.entry.js +0 -392
  394. package/dist/beeq/p-6d708caf.entry.js +0 -339
  395. package/dist/beeq/p-70607940.entry.js +0 -174
  396. package/dist/beeq/p-72c376a9.entry.js +0 -165
  397. package/dist/beeq/p-78bbd845.entry.js +0 -109
  398. package/dist/beeq/p-8012f01d.entry.js +0 -556
  399. package/dist/beeq/p-8b5934a3.entry.js +0 -158
  400. package/dist/beeq/p-94c2081a.entry.js +0 -681
  401. package/dist/beeq/p-95979cb0.entry.js +0 -289
  402. package/dist/beeq/p-978b2249.entry.js +0 -196
  403. package/dist/beeq/p-9a78587d.entry.js +0 -138
  404. package/dist/beeq/p-D0hQxkOP.js +0 -2816
  405. package/dist/beeq/p-D0hQxkOP.js.map +0 -1
  406. package/dist/beeq/p-ac7cd72b.entry.js +0 -322
  407. package/dist/beeq/p-ae85a23a.entry.js +0 -408
  408. package/dist/beeq/p-b0f9a0cb.entry.js +0 -296
  409. package/dist/beeq/p-b194e120.entry.js +0 -293
  410. package/dist/beeq/p-b2858324.entry.js +0 -210
  411. package/dist/beeq/p-c34fc2c7.entry.js +0 -351
  412. package/dist/beeq/p-c630a8b8.entry.js +0 -442
  413. package/dist/beeq/p-cb9b1edc.entry.js +0 -232
  414. package/dist/beeq/p-cc6b349e.entry.js +0 -172
  415. package/dist/beeq/p-d0edfaa5.entry.js +0 -388
  416. package/dist/beeq/p-f6d82c39.entry.js +0 -206
  417. package/dist/beeq/p-f83010e9.entry.js +0 -118
  418. package/dist/beeq/p-f97c679f.entry.js +0 -233
  419. package/dist/beeq/p-ff73f344.entry.js +0 -396
  420. package/dist/cjs/index-BwvwUnfB.js.map +0 -1
  421. package/dist/components/p-C97BzPa8.js +0 -177
  422. package/dist/components/p-CMejKLsB.js +0 -248
  423. package/dist/components/p-DDCN9O42.js +0 -2669
  424. package/dist/components/p-DDCN9O42.js.map +0 -1
  425. package/dist/components/p-DHhUeR-_.js +0 -377
  426. package/dist/components/p-DSqLegVR.js +0 -100
  427. package/dist/components/p-qOL6hl5s.js +0 -298
  428. package/dist/esm/index-D0hQxkOP.js.map +0 -1
  429. /package/dist/types/{Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System → home/runner/work/BEEQ/BEEQ}/.stencil/packages/beeq/jest.config.d.ts +0 -0
  430. /package/dist/types/{Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System → home/runner/work/BEEQ/BEEQ}/.stencil/packages/beeq/stencil.config.d.ts +0 -0
  431. /package/dist/types/{Users/dramos/PROJECTs/ENDAVA/BEEQ-Design-System → home/runner/work/BEEQ/BEEQ}/.stencil/tailwind.config.d.ts +0 -0
@@ -2,318 +2,5 @@
2
2
  * Built by Endavans
3
3
  * © https://beeq.design - Apache 2 License.
4
4
  */
5
- import { p as r, H as a, c as e, j as b, d as n, t } from "./p-DDCN9O42.js";
6
-
7
- import { i } from "./p-BcPwGxIn.js";
8
-
9
- const bqCheckboxCss = () => `.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}::backdrop,:root{--bq-blue-100:#e7f0fd;--bq-blue-200:#d0e2fb;--bq-blue-300:#a1c5f7;--bq-blue-400:#73a8f3;--bq-blue-500:#448bef;--bq-blue-600:#156eeb;--bq-blue-700:#1158bc;--bq-blue-800:#0d428d;--bq-blue-900:#082c5e;--bq-blue-1000:#04162f;--bq-corai-100:#fff2f2;--bq-corai-200:#ffe6e6;--bq-corai-300:#ffccce;--bq-corai-400:#ffb3b5;--bq-corai-500:#ff999d;--bq-corai-600:#ff8084;--bq-corai-700:#cc666a;--bq-corai-800:#994d4f;--bq-corai-900:#663335;--bq-corai-1000:#331a1a;--bq-cyan-100:#e8f7fb;--bq-cyan-200:#d2f0f8;--bq-cyan-300:#a5e1f1;--bq-cyan-400:#78d1e9;--bq-cyan-500:#4bc2e2;--bq-cyan-600:#1eb3db;--bq-cyan-700:#188faf;--bq-cyan-800:#126b83;--bq-cyan-900:#0c4858;--bq-cyan-1000:#06242c;--bq-gold-100:#fbf4ec;--bq-gold-200:#f7e9da;--bq-gold-300:#f0d3b6;--bq-gold-400:#e8bc91;--bq-gold-500:#e1a66d;--bq-gold-600:#d99048;--bq-gold-700:#ae733a;--bq-gold-800:#82562b;--bq-gold-900:#573a1d;--bq-gold-1000:#2b1d0e;--bq-green-100:#e8f8ef;--bq-green-200:#d2f1e0;--bq-green-300:#a5e3c1;--bq-green-400:#78d5a1;--bq-green-500:#4bc782;--bq-green-600:#1eb963;--bq-green-700:#18944f;--bq-green-800:#126f3b;--bq-green-900:#0c4a28;--bq-green-1000:#062514;--bq-grey-100:#f1f2f4;--bq-grey-200:#e7e8eb;--bq-grey-300:#caccd2;--bq-grey-400:#a6aab3;--bq-grey-50:#f6f6f8;--bq-grey-500:#898e99;--bq-grey-600:#646a77;--bq-grey-700:#3f4350;--bq-grey-800:#2a2c35;--bq-grey-900:#1c1d23;--bq-grey-950:#15161a;--bq-grey-1000:#0d0e11;--bq-indigo-100:#edecfc;--bq-indigo-200:#dcdafa;--bq-indigo-300:#b9b5f5;--bq-indigo-400:#9590ef;--bq-indigo-500:#726bea;--bq-indigo-600:#4f46e5;--bq-indigo-700:#3f38b7;--bq-indigo-800:#2f2a89;--bq-indigo-900:#201c5c;--bq-indigo-1000:#100e2e;--bq-iris-100:#e9f0ff;--bq-iris-200:#d6e0ff;--bq-iris-300:#b2c0fe;--bq-iris-400:#8691f8;--bq-iris-500:#6061ee;--bq-iris-600:#4f46e5;--bq-iris-700:#413abd;--bq-iris-800:#332e95;--bq-iris-900:#26216d;--bq-iris-1000:#181545;--bq-lime-100:#f5fae8;--bq-lime-200:#ecf6d2;--bq-lime-300:#d9eda5;--bq-lime-400:#c5e379;--bq-lime-500:#b2da4c;--bq-lime-600:#9fd11f;--bq-lime-700:#7fa719;--bq-lime-800:#5f7d13;--bq-lime-900:#40540c;--bq-lime-1000:#202a06;--bq-magenta-100:#fce7f4;--bq-magenta-200:#f9cfea;--bq-magenta-300:#f39fd6;--bq-magenta-400:#ee6fbf;--bq-magenta-500:#e83fab;--bq-magenta-600:#de1395;--bq-magenta-700:#b20f77;--bq-magenta-800:#850c59;--bq-magenta-900:#58083c;--bq-magenta-1000:#2c041e;--bq-neutral-white:#fbfbfc;--bq-neutral-black:#060708;--bq-orange-100:#fbf0e9;--bq-orange-200:#f8e1d4;--bq-orange-300:#f1c2a8;--bq-orange-400:#eaa47d;--bq-orange-500:#e38551;--bq-orange-600:#dc6726;--bq-orange-700:#b0521e;--bq-orange-800:#843e17;--bq-orange-900:#58290f;--bq-orange-1000:#2c1508;--bq-purple-100:#efebf8;--bq-purple-200:#e0d7f2;--bq-purple-300:#c1afe5;--bq-purple-400:#a388d8;--bq-purple-500:#8460cb;--bq-purple-600:#6538be;--bq-purple-700:#512d98;--bq-purple-800:#3d2272;--bq-purple-900:#28164c;--bq-purple-1000:#140b26;--bq-red-100:#fce7ea;--bq-red-200:#f9d1d5;--bq-red-300:#f3a2ac;--bq-red-400:#ed7482;--bq-red-500:#e74559;--bq-red-600:#e1172f;--bq-red-700:#b41226;--bq-red-800:#870e1c;--bq-red-900:#5a0913;--bq-red-1000:#2d0509;--bq-sky-100:#eff4fb;--bq-sky-200:#dfeaf8;--bq-sky-300:#bfd5f1;--bq-sky-400:#9ec1e9;--bq-sky-500:#7eace2;--bq-sky-600:#5e97db;--bq-sky-700:#4b79af;--bq-sky-800:#385b83;--bq-sky-900:#263c58;--bq-sky-1000:#131e2c;--bq-teal-100:#e5f7f5;--bq-teal-200:#ccf0eb;--bq-teal-300:#99e1d8;--bq-teal-400:#66d2c4;--bq-teal-500:#33c3b1;--bq-teal-600:#00b49d;--bq-teal-700:#00907e;--bq-teal-800:#006c5e;--bq-teal-900:#00483f;--bq-teal-1000:#00241f;--bq-volcano-100:#feede7;--bq-volcano-200:#fddbd1;--bq-volcano-300:#fbb8a3;--bq-volcano-400:#fa9474;--bq-volcano-500:#f87146;--bq-volcano-600:#f64d18;--bq-volcano-700:#c53e13;--bq-volcano-800:#942e0e;--bq-volcano-900:#621f0a;--bq-volcano-1000:#310f05;--bq-yellow-100:#fefbe7;--bq-yellow-200:#fcf6d0;--bq-yellow-300:#faeea0;--bq-yellow-400:#f7e571;--bq-yellow-500:#f5dd41;--bq-yellow-600:#f2d412;--bq-yellow-700:#c2aa0e;--bq-yellow-800:#917f0b;--bq-yellow-900:#615507;--bq-yellow-1000:#302a04;--bq-endava-grey-50:#f7f7f8;--bq-endava-grey-100:#e4e6e7;--bq-endava-grey-200:#b5babe;--bq-endava-grey-300:#949ca1;--bq-endava-grey-400:#737d84;--bq-endava-grey-500:#525f67;--bq-endava-grey-600:#30404b;--bq-endava-grey-700:#2b3942;--bq-endava-grey-800:#263139;--bq-endava-grey-900:#192b37;--bq-endava-grey-950:#151b1e;--bq-endava-grey-1000:#0f1316;--bq-endava-neutral-white:#fafbfb;--bq-endava-neutral-black:#060708;--bq-endava-orange-100:#fef3f1;--bq-endava-orange-200:#fbd6d1;--bq-endava-orange-300:#fab7af;--bq-endava-orange-400:#fa988b;--bq-endava-orange-500:#fc7866;--bq-endava-orange-600:#ff5640;--bq-endava-orange-700:#ce4a39;--bq-endava-orange-800:#a03d30;--bq-endava-orange-900:#722e25;--bq-endava-orange-1000:#471e19}*,:after,:before{box-sizing:border-box}*{font:inherit;margin:0}ol[role=list],ul[role=list]{list-style-type:none}html{text-size-adjust:none;font-family:var(--bq-font-family);font-size:var(--bq-font-size--m)}html:focus-within{scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bq-background--primary);color:var(--bq-text--primary);line-height:var(--bq-font-line-height--regular);min-height:100vb;text-rendering:optimizeSpeed}a:not([class]){text-decoration-skip-ink:auto}canvas,img,picture,svg,video{display:block;max-width:100%}button,input,select,textarea{font:inherit}h1,h2,h3,h4,h5,h6,p{overflow-wrap:break-word}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto;transition-duration:.01ms!important}}:where(:root){--bq-white:#fff;--bq-black:#060708;--bq-neutral-50:var(--bq-grey-50);--bq-neutral-100:var(--bq-grey-100);--bq-neutral-200:var(--bq-grey-200);--bq-neutral-300:var(--bq-grey-300);--bq-neutral-400:var(--bq-grey-400);--bq-neutral-500:var(--bq-grey-500);--bq-neutral-600:var(--bq-grey-600);--bq-neutral-700:var(--bq-grey-700);--bq-neutral-800:var(--bq-grey-800);--bq-neutral-900:var(--bq-grey-900);--bq-neutral-950:var(--bq-grey-950);--bq-neutral-1000:var(--bq-grey-1000);--bq-brand-light:var(--bq-iris-100);--bq-brand:var(--bq-iris-600);--bq-brand-dark:var(--bq-iris-1000);--bq-accent-light:var(--bq-purple-100);--bq-accent:var(--bq-purple-600);--bq-accent-dark:var(--bq-purple-1000);--bq-success-light:var(--bq-teal-100);--bq-success:var(--bq-teal-600);--bq-success-dark:var(--bq-teal-1000);--bq-danger-light:var(--bq-red-100);--bq-danger:var(--bq-red-600);--bq-danger-dark:var(--bq-red-1000);--bq-warning-light:var(--bq-gold-100);--bq-warning:var(--bq-gold-600);--bq-warning-dark:var(--bq-gold-1000);--bq-info-light:var(--bq-iris-100);--bq-info:var(--bq-iris-600);--bq-info-dark:var(--bq-iris-1000);--bq-focus:var(--bq-iris-600);--bq-data-01:var(--bq-brand);--bq-data-02:var(--bq-purple-600);--bq-data-03:var(--bq-magenta-600);--bq-data-04:var(--bq-cyan-600);--bq-data-05:var(--bq-teal-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-yellow-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-blue-600);--bq-data-10:var(--bq-grey-600);--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white);--bq-radius--none:0;--bq-radius--xs2:0.125rem;--bq-radius--xs:0.25rem;--bq-radius--s:0.5rem;--bq-radius--m:0.75rem;--bq-radius--l:1.5rem;--bq-radius--full:9999px;--bq-box-shadow--xs:0 2px 0 rgba(0,0,0,.016);--bq-box-shadow--s:0 8px 24px rgba(0,0,0,.04);--bq-box-shadow--m:0 10px 48px -16px rgba(0,0,0,.12);--bq-box-shadow--l:0 20px 58px -16px rgba(0,0,0,.16);--bq-font-family:"Outfit",sans-serif;--bq-font-size--xs:0.75rem;--bq-font-size--s:0.875rem;--bq-font-size--m:1rem;--bq-font-size--l:1.125rem;--bq-font-size--xl:1.5rem;--bq-font-size--xxl:2rem;--bq-font-size--xxl2:2.5rem;--bq-font-size--xxl3:3rem;--bq-font-size--xxl4:3.5rem;--bq-font-size--xxl5:4rem;--bq-font-weight--thin:100;--bq-font-weight--light:300;--bq-font-weight--regular:400;--bq-font-weight--medium:500;--bq-font-weight--semibold:600;--bq-font-weight--bold:700;--bq-font-line-height--small:1.2;--bq-font-line-height--regular:1.5;--bq-font-line-height--large:1.5;--bq-spacing-xs3:0.125rem;--bq-spacing-xs2:0.25rem;--bq-spacing-xs:0.5rem;--bq-spacing-s:0.75rem;--bq-spacing-m:1rem;--bq-spacing-l:1.5rem;--bq-spacing-xl:2rem;--bq-spacing-xxl:2.5rem;--bq-spacing-xxl2:3.5rem;--bq-spacing-xxl3:4rem;--bq-spacing-xxl4:4.5rem;--bq-stroke-s:1px;--bq-stroke-m:2px;--bq-stroke-l:3px}.beeq:not([bq-mode]),.light,:root:not([bq-theme]):not([bq-mode]),:root[bq-theme=beeq]:not([bq-mode]),[bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--alt:var(--bq-white);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-100);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-light);--bq-hover:#bcbfc5;--bq-active:#444546}.dark,[bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-950);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-950);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-dark);--bq-hover:#444546;--bq-active:#1f2026}:where(.endava),:where([bq-theme=endava]){--bq-font-family:"Poppins",sans-serif;--bq-white:#fafbfb;--bq-black:#030406;--bq-neutral-50:var(--bq-endava-grey-50);--bq-neutral-100:var(--bq-endava-grey-100);--bq-neutral-200:var(--bq-endava-grey-200);--bq-neutral-300:var(--bq-endava-grey-300);--bq-neutral-400:var(--bq-endava-grey-400);--bq-neutral-500:var(--bq-endava-grey-500);--bq-neutral-600:var(--bq-endava-grey-600);--bq-neutral-700:var(--bq-endava-grey-700);--bq-neutral-800:var(--bq-endava-grey-800);--bq-neutral-900:var(--bq-endava-grey-900);--bq-neutral-950:var(--bq-endava-grey-950);--bq-neutral-1000:var(--bq-endava-grey-1000);--bq-brand-light:var(--bq-endava-orange-100);--bq-brand:var(--bq-endava-orange-600);--bq-brand-dark:var(--bq-endava-orange-1000);--bq-accent-light:var(--bq-endava-orange-100);--bq-accent:var(--bq-endava-orange-600);--bq-accent-dark:var(--bq-endava-orange-1000);--bq-success-light:var(--bq-green-100);--bq-success:var(--bq-green-600);--bq-success-dark:var(--bq-green-1000);--bq-danger-light:var(--bq-corai-100);--bq-danger:var(--bq-corai-600);--bq-danger-dark:var(--bq-corai-1000);--bq-warning-light:var(--bq-yellow-100);--bq-warning:var(--bq-yellow-600);--bq-warning-dark:var(--bq-yellow-1000);--bq-info-light:var(--bq-blue-100);--bq-info:var(--bq-blue-600);--bq-info-dark:var(--bq-blue-1000);--bq-focus:var(--bq-endava-orange-600);--bq-data-01:var(--bq-brand);--bq-data-02:#af0cd8;--bq-data-03:#0ca8d8;--bq-data-04:var(--bq-teal-600);--bq-data-05:var(--bq-yellow-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-blue-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-purple-600);--bq-data-10:#394b56;--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white)}.endava.light,.endava:not([bq-mode]),[bq-theme=endava]:not([bq-mode]),[bq-theme=endava][bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--brand-alt:var(--bq-brand-light);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-100);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--brand:var(--bq-brand);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-light);--bq-hover:#444546;--bq-active:#1f2026}.endava.dark,[bq-theme=endava][bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-900);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--brand-alt:var(--bq-brand-dark);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-neutral-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-950);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-dark);--bq-hover:#444546;--bq-active:#1f2026}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.cursor-pointer{cursor:pointer}.select-none{user-select:none}.rounded-\\[--bq-checkbox--border-radius\\]{border-radius:var(--bq-checkbox--border-radius)}.rounded-s{border-radius:var(--bq-radius--s)}.border-\\[length\\:--bq-checkbox--border-width\\]{border-width:var(--bq-checkbox--border-width)}.border-solid{border-style:solid}.border-\\[color\\:--bq-icon--primary\\]{border-color:var(--bq-icon--primary)}.border-brand{border-color:var(--bq-stroke--brand)}.bg-ui-brand{background-color:var(--bq-ui--brand)}.opacity-60{opacity:.6}.transition-\\[color\\2c background-color\\2c border-color\\2c box-shadow\\]{transition-duration:.15s;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.bg-hover-ui-brand{background-color:color-mix(in srgb,var(--bq-ui--brand),var(--bq-hover) 20%)}.bg-hover-ui-primary{background-color:color-mix(in srgb,var(--bq-ui--primary),var(--bq-hover) 20%)}.border-hover-brand{border-color:color-mix(in srgb,var(--bq-stroke--brand),var(--bq-hover) 20%)}.p-b-xs{padding-block:var(--bq-spacing-xs)}.p-i-xs{padding-inline:var(--bq-spacing-xs)}.focus{outline:var(--bq-ring-width,2px) solid var(--bq-ring-color-focus,var(--bq-focus));outline-offset:var(--bq-ring-offset-width,1px)}@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}:host{--bq-checkbox--size:24px;--bq-checkbox--border-radius:var(--bq-radius--xs);--bq-checkbox--border-width:var(--bq-stroke-m);display:inline-block}.bq-checkbox{border-radius:var(--bq-radius--s);box-sizing:border-box;cursor:pointer;display:inline-flex;padding-block:var(--bq-spacing-xs);padding-inline:var(--bq-spacing-xs);transition-duration:.3s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);user-select:none}.bq-checkbox:not(.is-checked):not(.is-disabled):hover .bq-checkbox__checkbox,.bq-checkbox:not(.is-indeterminate):not(.is-disabled):hover .bq-checkbox__checkbox{border-color:color-mix(in srgb,var(--bq-stroke--brand),var(--bq-hover) 20%)}.bq-checkbox.has-background:not(.is-disabled):hover{background-color:color-mix(in srgb,var(--bq-ui--primary),var(--bq-hover) 20%)}.bq-checkbox.is-checked:not(.is-disabled):hover .bq-checkbox__checkbox,.bq-checkbox.is-indeterminate:not(.is-disabled):hover .bq-checkbox__checkbox{background-color:color-mix(in srgb,var(--bq-ui--brand),var(--bq-hover) 20%);border-color:color-mix(in srgb,var(--bq-stroke--brand),var(--bq-hover) 20%)}.bq-checkbox__input:focus-visible~.bq-checkbox__checkbox,.bq-checkbox__input:focus~.bq-checkbox__checkbox{border-color:var(--bq-stroke--brand);outline:var(--bq-ring-width,2px) solid var(--bq-ring-color-focus,var(--bq-focus));outline-offset:var(--bq-ring-offset-width,1px)}.bq-checkbox__input:checked~.bq-checkbox__checkbox,.bq-checkbox__input:indeterminate~.bq-checkbox__checkbox{background-color:var(--bq-ui--brand);border-color:var(--bq-stroke--brand)}.bq-checkbox__input:checked:disabled~.bq-checkbox__checkbox,.bq-checkbox__input:indeterminate:disabled~.bq-checkbox__checkbox{opacity:.6}.bq-checkbox__input:disabled~.bq-checkbox__checkbox{opacity:.6}.bq-checkbox__checkbox{border-color:var(--bq-icon--primary);border-radius:var(--bq-checkbox--border-radius);border-style:solid;border-width:var(--bq-checkbox--border-width)}.bq-checkbox__checkbox,.bq-checkbox__label{transition-duration:.3s;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.flex{display:flex}.\\!cursor-not-allowed{cursor:not-allowed!important}.items-center{align-items:center}.justify-center{justify-content:center}.ps-xs{padding-inline-start:var(--bq-spacing-xs)}.text-start{text-align:start}.font-medium{font-weight:var(--bq-font-weight--medium)}.leading-regular{line-height:var(--bq-font-line-height--regular)}.text-neutral-white{color:var(--bq-neutral-white)}.text-primary{color:var(--bq-text--primary)}.opacity-0{opacity:0}.bs-\\[--bq-checkbox--size\\]{block-size:var(--bq-checkbox--size)}.bs-full{block-size:100%}.is-\\[--bq-checkbox--size\\]{inline-size:var(--bq-checkbox--size)}.is-full{inline-size:100%}.p-b-0{padding-block:0}.p-b-xs3{padding-block:var(--bq-spacing-xs3)}.p-i-0{padding-inline:0}.p-i-xs3{padding-inline:var(--bq-spacing-xs3)}.m-b-0{margin-block:0}.m-i-0{margin-inline:0}.group:hover .group-hover-\\[\\&\\:not\\(\\.is-disabled\\)\\]\\:text-hover-primary{color:color-mix(in srgb,var(--bq-text--primary),var(--bq-hover) 20%)}.group.is-disabled .group-\\[\\.is-disabled\\]\\:opacity-60{opacity:.6}`;
10
-
11
- const q = r(class r extends a {
12
- constructor(r) {
13
- super();
14
- if (r !== false) {
15
- this.__registerHost();
16
- }
17
- this.__attachShadow();
18
- this.bqChange = e(this, "bqChange");
19
- this.bqFocus = e(this, "bqFocus");
20
- this.bqBlur = e(this, "bqBlur");
21
- this.internals = this.attachInternals();
22
- }
23
- // Own Properties
24
- // ====================
25
- inputElem;
26
- prevCheckedValue;
27
- get el() {
28
- return this;
29
- }
30
- internals;
31
- // State() variables
32
- // Inlined decorator, alphabetical order
33
- // =======================================
34
- // Public Property API
35
- // ========================
36
- /** If true checkbox displays background on hover */
37
- backgroundOnHover=false;
38
- /** The form ID that the checkbox is associated with */
39
- formId;
40
- /** The native form validation message */
41
- formValidationMessage;
42
- /** If true checkbox is checked */
43
- checked;
44
- /** If true checkbox is disabled */
45
- disabled=false;
46
- /** A state that is neither checked nor unchecked */
47
- indeterminate=false;
48
- /** Name of the HTML input form control. Submitted with the form as part of a name/value pair. */
49
- name;
50
- /** If `true`, it will indicate that the user must specify a value for the checkbox before the owning form can be submitted */
51
- required;
52
- /** A string representing the value of the checkbox. Primarily used to differentiate a list of related checkboxes that have the same name. */
53
- value;
54
- // Prop lifecycle events
55
- // =======================
56
- handleIndeterminatePropChange() {
57
- if (!this.inputElem) return;
58
- this.inputElem.indeterminate = this.indeterminate;
59
- if (this.indeterminate) {
60
- this.checked = false;
61
- }
62
- }
63
- handleRequiredPropChange() {
64
- this.updateFormValidity();
65
- }
66
- // Events section
67
- // Requires JSDocs for public API documentation
68
- // ==============================================
69
- /** Handler to be called when the checkbox state changes */
70
- bqChange;
71
- /** Handler to be called when the checkbox gets focus */
72
- bqFocus;
73
- /** Handler to be called when the checkbox loses focus */
74
- bqBlur;
75
- // Component lifecycle events
76
- // Ordered by their natural call order
77
- // =====================================
78
- componentWillLoad() {
79
- this.prevCheckedValue = this.checked;
80
- }
81
- componentDidUpdate() {
82
- /**
83
- * We need to trigger the `bqChange` immediately after the first update happens
84
- * so the checked attribute get applied, otherwise, a delay will happen
85
- * between the event emits and when the checked attribute value gets reflected in the element host.
86
- */
87
- if (this.checked !== this.prevCheckedValue) {
88
- if (!this.indeterminate) {
89
- this.bqChange.emit({
90
- checked: this.checked
91
- });
92
- }
93
- this.prevCheckedValue = this.checked;
94
- }
95
- }
96
- formAssociatedCallback() {
97
- this.setFormValue(this.checked);
98
- this.updateFormValidity();
99
- }
100
- formResetCallback() {
101
- // Reset the form value and validity state
102
- this.checked = false;
103
- this.indeterminate = false;
104
- this.inputElem.removeAttribute("checked");
105
- this.internals?.setFormValue(undefined);
106
- this.updateFormValidity();
107
- }
108
- // Listeners
109
- // ==============
110
- // Public methods API
111
- // These methods are exposed on the host element.
112
- // Always use two lines.
113
- // Public Methods must be async.
114
- // Requires JSDocs for public API documentation.
115
- // ===============================================
116
- /**
117
- * Simulate a click event on the native `<input>` HTML element used under the hood.
118
- * Use this method instead of the global `element.click()`.
119
- */
120
- async vClick() {
121
- this.inputElem?.click();
122
- }
123
- /**
124
- * Sets focus on the native `<input>` HTML element used under the hood.
125
- * Use this method instead of the global `element.focus()`.
126
- */ async vFocus() {
127
- this.inputElem?.focus();
128
- }
129
- /**
130
- * Remove focus from the native `<input>` HTML element used under the hood.
131
- * Use this method instead of the global `element.blur()`.
132
- */ async vBlur() {
133
- this.inputElem?.blur();
134
- }
135
- // Local methods
136
- // Internal business logic.
137
- // These methods cannot be called from the host element.
138
- // =======================================================
139
- setFormValue=r => {
140
- const a = r ? "on" : undefined;
141
- // Set form value based on the checked state
142
- // Here we also pass the state of the checkbox (2nd argument) as the state of the form control
143
- // Details: https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setFormValue
144
- this.internals?.setFormValue(a, `${this.checked}`);
145
- };
146
- updateFormValidity=() => {
147
- const {formValidationMessage: r, internals: a, required: e, checked: b, inputElem: n} = this;
148
- // Clear the validity state
149
- a?.states.clear();
150
- if (!(e && !b)) {
151
- // If the checkbox is not required or is checked, set the validity state to valid
152
- a?.states.add("valid");
153
- a?.setValidity({});
154
- return;
155
- }
156
- // Set validity state based on the required property and checked state
157
- a?.states.add("invalid");
158
- a?.setValidity({
159
- valueMissing: true
160
- }, r, n);
161
- };
162
- handleChange=() => {
163
- this.checked = !this.checked;
164
- this.indeterminate = false;
165
- this.setFormValue(this.checked);
166
- this.updateFormValidity();
167
- };
168
- handleOnFocus=() => {
169
- this.bqFocus.emit(this.el);
170
- };
171
- handleOnBlur=() => {
172
- this.bqBlur.emit(this.el);
173
- };
174
- // render() function
175
- // Always the last one in the class.
176
- // ===================================
177
- render() {
178
- return b("label", {
179
- "aria-label": this.name || "checkbox",
180
- class: {
181
- "bq-checkbox group": true,
182
- "is-checked": this.checked,
183
- "is-indeterminate": this.indeterminate,
184
- "is-disabled !cursor-not-allowed": this.disabled,
185
- "has-background": this.backgroundOnHover
186
- },
187
- part: "base",
188
- children: [ b("div", {
189
- class: "bq-checkbox__control bs-[--bq-checkbox--size] is-[--bq-checkbox--size] relative box-border flex items-center justify-center p-b-xs3 p-i-xs3",
190
- part: "control",
191
- children: [ n("input", {
192
- "aria-checked": this.checked ? "true" : "false",
193
- "aria-disabled": this.disabled ? "true" : "false",
194
- checked: this.checked,
195
- class: "bq-checkbox__input pointer-events-none absolute m-b-0 m-i-0 p-b-0 p-i-0 opacity-0",
196
- disabled: this.disabled,
197
- form: this.formId,
198
- indeterminate: this.indeterminate,
199
- name: !i(this.name) ? this.name : undefined,
200
- onBlur: this.handleOnBlur,
201
- onChange: this.handleChange,
202
- onFocus: this.handleOnFocus,
203
- part: "input",
204
- ref: r => {
205
- this.inputElem = r;
206
- },
207
- required: this.required,
208
- tabindex: "0",
209
- type: "checkbox",
210
- value: this.value
211
- }, "82705831b212ce4295abf361b33778096b1830d0"), b("span", {
212
- class: "bq-checkbox__checkbox bs-full is-[--bq-checkbox--size] relative box-border flex items-center justify-center",
213
- part: "checkbox",
214
- children: [ this.checked && b("svg", {
215
- "aria-hidden": "true",
216
- class: "bs-full is-full absolute text-neutral-white",
217
- viewBox: "0 0 256 256",
218
- xmlns: "http://www.w3.org/2000/svg",
219
- children: [ n("path", {
220
- d: "M0 0h256v256H0z",
221
- fill: "none"
222
- }, "b9639c45ba423f57e3d52ffcc139f7806cd16a4c"), n("path", {
223
- d: "M216 72 104 184l-56-56",
224
- fill: "none",
225
- stroke: "currentColor",
226
- "stroke-linecap": "round",
227
- "stroke-linejoin": "round",
228
- "stroke-width": "32"
229
- }, "0e870063a942e07968558c4c6217ba5e5e4cb07e") ]
230
- }, "7eec03aadbeaf92e76cad339ef8b71d7a7202cf2"), !this.checked && this.indeterminate && b("svg", {
231
- "aria-hidden": "true",
232
- class: "bs-full is-full absolute text-neutral-white",
233
- fill: "currentColor",
234
- viewBox: "0 0 256 256",
235
- xmlns: "http://www.w3.org/2000/svg",
236
- children: [ n("path", {
237
- d: "M0 0h256v256H0z",
238
- fill: "none"
239
- }, "4b0cf7e0dcf552aa21c9778eee796de3f4927916"), n("path", {
240
- d: "M40 128h176",
241
- fill: "none",
242
- stroke: "currentColor",
243
- "stroke-linecap": "round",
244
- "stroke-linejoin": "round",
245
- "stroke-width": "32"
246
- }, "bfc9017dd7d5c89b68f292dcc91501b072f8374b") ]
247
- }, "65ad79b2823f8a4a20459687fab6e1462943e013") ]
248
- }, "49f2681d3ac70f03a2f3b12f0404cb7d0e8f842e") ]
249
- }, "8a6ccdc8d6386f308467c816351c5fbdc1ff3ec5"), n("span", {
250
- class: "bq-checkbox__label ps-xs text-start font-medium text-primary leading-regular group-hover-[&:not(.is-disabled)]:text-hover-primary group-[.is-disabled]:opacity-60",
251
- part: "label",
252
- children: n("slot", {}, "91709a8ae5aca9ea6b9db45d13eec7664961bb5d")
253
- }, "a52dfe3e8800c3988a0af094a853396ee37d4167") ]
254
- }, "5bac9ae4cab3a640fc43608f5e6a78f3a14f359f");
255
- }
256
- static get delegatesFocus() {
257
- return true;
258
- }
259
- static get formAssociated() {
260
- return true;
261
- }
262
- static get watchers() {
263
- return {
264
- indeterminate: [ {
265
- handleIndeterminatePropChange: 0
266
- } ],
267
- required: [ {
268
- handleRequiredPropChange: 0
269
- } ]
270
- };
271
- }
272
- static get style() {
273
- return bqCheckboxCss();
274
- }
275
- }, [ 849, "bq-checkbox", {
276
- backgroundOnHover: [ 516, "background-on-hover" ],
277
- formId: [ 513, "form-id" ],
278
- formValidationMessage: [ 1025, "form-validation-message" ],
279
- checked: [ 1540 ],
280
- disabled: [ 516 ],
281
- indeterminate: [ 1540 ],
282
- name: [ 513 ],
283
- required: [ 516 ],
284
- value: [ 513 ],
285
- vClick: [ 64 ],
286
- vFocus: [ 64 ],
287
- vBlur: [ 64 ]
288
- }, undefined, {
289
- indeterminate: [ {
290
- handleIndeterminatePropChange: 0
291
- } ],
292
- required: [ {
293
- handleRequiredPropChange: 0
294
- } ]
295
- } ]);
296
-
297
- function defineCustomElement$1() {
298
- if (typeof customElements === "undefined") {
299
- return;
300
- }
301
- const r = [ "bq-checkbox" ];
302
- r.forEach((r => {
303
- switch (r) {
304
- case "bq-checkbox":
305
- if (!customElements.get(t(r))) {
306
- customElements.define(t(r), q);
307
- }
308
- break;
309
- }
310
- }));
311
- }
312
-
313
- const o = q;
314
-
315
- const s = defineCustomElement$1;
316
-
317
- export { o as BqCheckbox, s as defineCustomElement };
318
- //# sourceMappingURL=bq-checkbox.js.map
5
+ import{p as r,H as a,c as e,j as b,d as n,t}from"./p--ouTGcG3.js";import{i}from"./p-BcPwGxIn.js";const q=()=>`.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}::backdrop,:root{--bq-blue-100:#e7f0fd;--bq-blue-200:#d0e2fb;--bq-blue-300:#a1c5f7;--bq-blue-400:#73a8f3;--bq-blue-500:#448bef;--bq-blue-600:#156eeb;--bq-blue-700:#1158bc;--bq-blue-800:#0d428d;--bq-blue-900:#082c5e;--bq-blue-1000:#04162f;--bq-corai-100:#fff2f2;--bq-corai-200:#ffe6e6;--bq-corai-300:#ffccce;--bq-corai-400:#ffb3b5;--bq-corai-500:#ff999d;--bq-corai-600:#ff8084;--bq-corai-700:#cc666a;--bq-corai-800:#994d4f;--bq-corai-900:#663335;--bq-corai-1000:#331a1a;--bq-cyan-100:#e8f7fb;--bq-cyan-200:#d2f0f8;--bq-cyan-300:#a5e1f1;--bq-cyan-400:#78d1e9;--bq-cyan-500:#4bc2e2;--bq-cyan-600:#1eb3db;--bq-cyan-700:#188faf;--bq-cyan-800:#126b83;--bq-cyan-900:#0c4858;--bq-cyan-1000:#06242c;--bq-gold-100:#fbf4ec;--bq-gold-200:#f7e9da;--bq-gold-300:#f0d3b6;--bq-gold-400:#e8bc91;--bq-gold-500:#e1a66d;--bq-gold-600:#d99048;--bq-gold-700:#ae733a;--bq-gold-800:#82562b;--bq-gold-900:#573a1d;--bq-gold-1000:#2b1d0e;--bq-green-100:#e8f8ef;--bq-green-200:#d2f1e0;--bq-green-300:#a5e3c1;--bq-green-400:#78d5a1;--bq-green-500:#4bc782;--bq-green-600:#1eb963;--bq-green-700:#18944f;--bq-green-800:#126f3b;--bq-green-900:#0c4a28;--bq-green-1000:#062514;--bq-grey-100:#f1f2f4;--bq-grey-200:#e7e8eb;--bq-grey-300:#caccd2;--bq-grey-400:#a6aab3;--bq-grey-50:#f6f6f8;--bq-grey-500:#898e99;--bq-grey-600:#646a77;--bq-grey-700:#3f4350;--bq-grey-800:#2a2c35;--bq-grey-900:#1c1d23;--bq-grey-950:#15161a;--bq-grey-1000:#0d0e11;--bq-indigo-100:#edecfc;--bq-indigo-200:#dcdafa;--bq-indigo-300:#b9b5f5;--bq-indigo-400:#9590ef;--bq-indigo-500:#726bea;--bq-indigo-600:#4f46e5;--bq-indigo-700:#3f38b7;--bq-indigo-800:#2f2a89;--bq-indigo-900:#201c5c;--bq-indigo-1000:#100e2e;--bq-iris-100:#e9f0ff;--bq-iris-200:#d6e0ff;--bq-iris-300:#b2c0fe;--bq-iris-400:#8691f8;--bq-iris-500:#6061ee;--bq-iris-600:#4f46e5;--bq-iris-700:#413abd;--bq-iris-800:#332e95;--bq-iris-900:#26216d;--bq-iris-1000:#181545;--bq-lime-100:#f5fae8;--bq-lime-200:#ecf6d2;--bq-lime-300:#d9eda5;--bq-lime-400:#c5e379;--bq-lime-500:#b2da4c;--bq-lime-600:#9fd11f;--bq-lime-700:#7fa719;--bq-lime-800:#5f7d13;--bq-lime-900:#40540c;--bq-lime-1000:#202a06;--bq-magenta-100:#fce7f4;--bq-magenta-200:#f9cfea;--bq-magenta-300:#f39fd6;--bq-magenta-400:#ee6fbf;--bq-magenta-500:#e83fab;--bq-magenta-600:#de1395;--bq-magenta-700:#b20f77;--bq-magenta-800:#850c59;--bq-magenta-900:#58083c;--bq-magenta-1000:#2c041e;--bq-neutral-white:#fbfbfc;--bq-neutral-black:#060708;--bq-orange-100:#fbf0e9;--bq-orange-200:#f8e1d4;--bq-orange-300:#f1c2a8;--bq-orange-400:#eaa47d;--bq-orange-500:#e38551;--bq-orange-600:#dc6726;--bq-orange-700:#b0521e;--bq-orange-800:#843e17;--bq-orange-900:#58290f;--bq-orange-1000:#2c1508;--bq-purple-100:#efebf8;--bq-purple-200:#e0d7f2;--bq-purple-300:#c1afe5;--bq-purple-400:#a388d8;--bq-purple-500:#8460cb;--bq-purple-600:#6538be;--bq-purple-700:#512d98;--bq-purple-800:#3d2272;--bq-purple-900:#28164c;--bq-purple-1000:#140b26;--bq-red-100:#fce7ea;--bq-red-200:#f9d1d5;--bq-red-300:#f3a2ac;--bq-red-400:#ed7482;--bq-red-500:#e74559;--bq-red-600:#e1172f;--bq-red-700:#b41226;--bq-red-800:#870e1c;--bq-red-900:#5a0913;--bq-red-1000:#2d0509;--bq-sky-100:#eff4fb;--bq-sky-200:#dfeaf8;--bq-sky-300:#bfd5f1;--bq-sky-400:#9ec1e9;--bq-sky-500:#7eace2;--bq-sky-600:#5e97db;--bq-sky-700:#4b79af;--bq-sky-800:#385b83;--bq-sky-900:#263c58;--bq-sky-1000:#131e2c;--bq-teal-100:#e5f7f5;--bq-teal-200:#ccf0eb;--bq-teal-300:#99e1d8;--bq-teal-400:#66d2c4;--bq-teal-500:#33c3b1;--bq-teal-600:#00b49d;--bq-teal-700:#00907e;--bq-teal-800:#006c5e;--bq-teal-900:#00483f;--bq-teal-1000:#00241f;--bq-volcano-100:#feede7;--bq-volcano-200:#fddbd1;--bq-volcano-300:#fbb8a3;--bq-volcano-400:#fa9474;--bq-volcano-500:#f87146;--bq-volcano-600:#f64d18;--bq-volcano-700:#c53e13;--bq-volcano-800:#942e0e;--bq-volcano-900:#621f0a;--bq-volcano-1000:#310f05;--bq-yellow-100:#fefbe7;--bq-yellow-200:#fcf6d0;--bq-yellow-300:#faeea0;--bq-yellow-400:#f7e571;--bq-yellow-500:#f5dd41;--bq-yellow-600:#f2d412;--bq-yellow-700:#c2aa0e;--bq-yellow-800:#917f0b;--bq-yellow-900:#615507;--bq-yellow-1000:#302a04;--bq-endava-grey-50:#f7f7f8;--bq-endava-grey-100:#e4e6e7;--bq-endava-grey-200:#b5babe;--bq-endava-grey-300:#949ca1;--bq-endava-grey-400:#737d84;--bq-endava-grey-500:#525f67;--bq-endava-grey-600:#30404b;--bq-endava-grey-700:#2b3942;--bq-endava-grey-800:#263139;--bq-endava-grey-900:#192b37;--bq-endava-grey-950:#151b1e;--bq-endava-grey-1000:#0f1316;--bq-endava-neutral-white:#fafbfb;--bq-endava-neutral-black:#060708;--bq-endava-orange-100:#fef3f1;--bq-endava-orange-200:#fbd6d1;--bq-endava-orange-300:#fab7af;--bq-endava-orange-400:#fa988b;--bq-endava-orange-500:#fc7866;--bq-endava-orange-600:#ff5640;--bq-endava-orange-700:#ce4a39;--bq-endava-orange-800:#a03d30;--bq-endava-orange-900:#722e25;--bq-endava-orange-1000:#471e19}*,:after,:before{box-sizing:border-box}*{font:inherit;margin:0}ol[role=list],ul[role=list]{list-style-type:none}html{text-size-adjust:none;font-family:var(--bq-font-family);font-size:var(--bq-font-size--m)}html:focus-within{scroll-behavior:smooth}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--bq-background--primary);color:var(--bq-text--primary);line-height:var(--bq-font-line-height--regular);min-height:100vb;text-rendering:optimizeSpeed}a:not([class]){text-decoration-skip-ink:auto}canvas,img,picture,svg,video{display:block;max-width:100%}button,input,select,textarea{font:inherit}h1,h2,h3,h4,h5,h6,p{overflow-wrap:break-word}@media (prefers-reduced-motion:reduce){html:focus-within{scroll-behavior:auto}*,:after,:before{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto;transition-duration:.01ms!important}}:where(:root){--bq-white:#fff;--bq-black:#060708;--bq-neutral-50:var(--bq-grey-50);--bq-neutral-100:var(--bq-grey-100);--bq-neutral-200:var(--bq-grey-200);--bq-neutral-300:var(--bq-grey-300);--bq-neutral-400:var(--bq-grey-400);--bq-neutral-500:var(--bq-grey-500);--bq-neutral-600:var(--bq-grey-600);--bq-neutral-700:var(--bq-grey-700);--bq-neutral-800:var(--bq-grey-800);--bq-neutral-900:var(--bq-grey-900);--bq-neutral-950:var(--bq-grey-950);--bq-neutral-1000:var(--bq-grey-1000);--bq-brand-light:var(--bq-iris-100);--bq-brand:var(--bq-iris-600);--bq-brand-dark:var(--bq-iris-1000);--bq-accent-light:var(--bq-purple-100);--bq-accent:var(--bq-purple-600);--bq-accent-dark:var(--bq-purple-1000);--bq-success-light:var(--bq-teal-100);--bq-success:var(--bq-teal-600);--bq-success-dark:var(--bq-teal-1000);--bq-danger-light:var(--bq-red-100);--bq-danger:var(--bq-red-600);--bq-danger-dark:var(--bq-red-1000);--bq-warning-light:var(--bq-gold-100);--bq-warning:var(--bq-gold-600);--bq-warning-dark:var(--bq-gold-1000);--bq-info-light:var(--bq-iris-100);--bq-info:var(--bq-iris-600);--bq-info-dark:var(--bq-iris-1000);--bq-focus:var(--bq-iris-600);--bq-data-01:var(--bq-brand);--bq-data-02:var(--bq-purple-600);--bq-data-03:var(--bq-magenta-600);--bq-data-04:var(--bq-cyan-600);--bq-data-05:var(--bq-teal-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-yellow-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-blue-600);--bq-data-10:var(--bq-grey-600);--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white);--bq-radius--none:0;--bq-radius--xs2:0.125rem;--bq-radius--xs:0.25rem;--bq-radius--s:0.5rem;--bq-radius--m:0.75rem;--bq-radius--l:1.5rem;--bq-radius--full:9999px;--bq-box-shadow--xs:0 2px 0 rgba(0,0,0,.016);--bq-box-shadow--s:0 8px 24px rgba(0,0,0,.04);--bq-box-shadow--m:0 10px 48px -16px rgba(0,0,0,.12);--bq-box-shadow--l:0 20px 58px -16px rgba(0,0,0,.16);--bq-font-family:"Outfit",sans-serif;--bq-font-size--xs:0.75rem;--bq-font-size--s:0.875rem;--bq-font-size--m:1rem;--bq-font-size--l:1.125rem;--bq-font-size--xl:1.5rem;--bq-font-size--xxl:2rem;--bq-font-size--xxl2:2.5rem;--bq-font-size--xxl3:3rem;--bq-font-size--xxl4:3.5rem;--bq-font-size--xxl5:4rem;--bq-font-weight--thin:100;--bq-font-weight--light:300;--bq-font-weight--regular:400;--bq-font-weight--medium:500;--bq-font-weight--semibold:600;--bq-font-weight--bold:700;--bq-font-line-height--small:1.2;--bq-font-line-height--regular:1.5;--bq-font-line-height--large:1.5;--bq-spacing-xs3:0.125rem;--bq-spacing-xs2:0.25rem;--bq-spacing-xs:0.5rem;--bq-spacing-s:0.75rem;--bq-spacing-m:1rem;--bq-spacing-l:1.5rem;--bq-spacing-xl:2rem;--bq-spacing-xxl:2.5rem;--bq-spacing-xxl2:3.5rem;--bq-spacing-xxl3:4rem;--bq-spacing-xxl4:4.5rem;--bq-stroke-s:1px;--bq-stroke-m:2px;--bq-stroke-l:3px}.beeq:not([bq-mode]),.light,:root:not([bq-theme]):not([bq-mode]),:root[bq-theme=beeq]:not([bq-mode]),[bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--alt:var(--bq-white);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-100);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-light);--bq-hover:#bcbfc5;--bq-active:#444546}.dark,[bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-950);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-brand);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-brand);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-brand);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-950);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-brand);--bq-ui--info-alt:var(--bq-brand-dark);--bq-hover:#444546;--bq-active:#1f2026}:where(.endava),:where([bq-theme=endava]){--bq-font-family:"Poppins",sans-serif;--bq-white:#fafbfb;--bq-black:#030406;--bq-neutral-50:var(--bq-endava-grey-50);--bq-neutral-100:var(--bq-endava-grey-100);--bq-neutral-200:var(--bq-endava-grey-200);--bq-neutral-300:var(--bq-endava-grey-300);--bq-neutral-400:var(--bq-endava-grey-400);--bq-neutral-500:var(--bq-endava-grey-500);--bq-neutral-600:var(--bq-endava-grey-600);--bq-neutral-700:var(--bq-endava-grey-700);--bq-neutral-800:var(--bq-endava-grey-800);--bq-neutral-900:var(--bq-endava-grey-900);--bq-neutral-950:var(--bq-endava-grey-950);--bq-neutral-1000:var(--bq-endava-grey-1000);--bq-brand-light:var(--bq-endava-orange-100);--bq-brand:var(--bq-endava-orange-600);--bq-brand-dark:var(--bq-endava-orange-1000);--bq-accent-light:var(--bq-endava-orange-100);--bq-accent:var(--bq-endava-orange-600);--bq-accent-dark:var(--bq-endava-orange-1000);--bq-success-light:var(--bq-green-100);--bq-success:var(--bq-green-600);--bq-success-dark:var(--bq-green-1000);--bq-danger-light:var(--bq-corai-100);--bq-danger:var(--bq-corai-600);--bq-danger-dark:var(--bq-corai-1000);--bq-warning-light:var(--bq-yellow-100);--bq-warning:var(--bq-yellow-600);--bq-warning-dark:var(--bq-yellow-1000);--bq-info-light:var(--bq-blue-100);--bq-info:var(--bq-blue-600);--bq-info-dark:var(--bq-blue-1000);--bq-focus:var(--bq-endava-orange-600);--bq-data-01:var(--bq-brand);--bq-data-02:#af0cd8;--bq-data-03:#0ca8d8;--bq-data-04:var(--bq-teal-600);--bq-data-05:var(--bq-yellow-600);--bq-data-06:var(--bq-orange-600);--bq-data-07:var(--bq-blue-600);--bq-data-08:var(--bq-red-600);--bq-data-09:var(--bq-purple-600);--bq-data-10:#394b56;--bq-data-11:var(--bq-black);--bq-data-12:var(--bq-white)}.endava.light,.endava:not([bq-mode]),[bq-theme=endava]:not([bq-mode]),[bq-theme=endava][bq-mode=light]{--bq-background--primary:var(--bq-white);--bq-background--secondary:var(--bq-neutral-100);--bq-background--tertiary:var(--bq-neutral-200);--bq-background--alt:var(--bq-neutral-300);--bq-background--inverse:var(--bq-neutral-900);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-800);--bq-icon--secondary:var(--bq-neutral-600);--bq-icon--inverse:var(--bq-neutral-50);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-200);--bq-stroke--secondary:var(--bq-neutral-600);--bq-stroke--tertiary:var(--bq-neutral-900);--bq-stroke--inverse:var(--bq-white);--bq-stroke--brand:var(--bq-brand);--bq-stroke--alt:var(--bq-neutral-50);--bq-stroke--brand-alt:var(--bq-brand-light);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-800);--bq-text--secondary:var(--bq-neutral-600);--bq-text--inverse:var(--bq-neutral-50);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-white);--bq-ui--secondary:var(--bq-neutral-100);--bq-ui--tertiary:var(--bq-neutral-500);--bq-ui--inverse:var(--bq-neutral-900);--bq-ui--alt:var(--bq-neutral-50);--bq-ui--brand-alt:var(--bq-brand-light);--bq-ui--brand:var(--bq-brand);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-light);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-light);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-light);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-light);--bq-hover:#444546;--bq-active:#1f2026}.endava.dark,[bq-theme=endava][bq-mode=dark]{--bq-background--primary:var(--bq-neutral-1000);--bq-background--secondary:var(--bq-neutral-900);--bq-background--tertiary:var(--bq-neutral-800);--bq-background--alt:var(--bq-neutral-700);--bq-background--inverse:var(--bq-neutral-600);--bq-background--brand:var(--bq-brand);--bq-background--overlay:var(--bq-neutral-900);--bq-icon--primary:var(--bq-neutral-100);--bq-icon--secondary:var(--bq-neutral-400);--bq-icon--inverse:var(--bq-neutral-800);--bq-icon--brand:var(--bq-brand);--bq-icon--alt:var(--bq-white);--bq-icon--info:var(--bq-info);--bq-icon--success:var(--bq-success);--bq-icon--warning:var(--bq-warning);--bq-icon--danger:var(--bq-danger);--bq-stroke--primary:var(--bq-neutral-900);--bq-stroke--secondary:var(--bq-neutral-700);--bq-stroke--tertiary:var(--bq-neutral-400);--bq-stroke--inverse:var(--bq-neutral-950);--bq-stroke--brand:var(--bq-brand);--bq-stroke--brand-alt:var(--bq-brand-dark);--bq-stroke--alt:var(--bq-neutral-1000);--bq-stroke--success:var(--bq-success);--bq-stroke--warning:var(--bq-warning);--bq-stroke--danger:var(--bq-danger);--bq-stroke--info:var(--bq-info);--bq-text--primary:var(--bq-neutral-100);--bq-text--secondary:var(--bq-neutral-400);--bq-text--inverse:var(--bq-neutral-800);--bq-text--brand:var(--bq-brand);--bq-text--alt:var(--bq-neutral-white);--bq-text--info:var(--bq-info);--bq-text--success:var(--bq-success);--bq-text--warning:var(--bq-warning);--bq-text--danger:var(--bq-danger);--bq-ui--primary:var(--bq-neutral-900);--bq-ui--secondary:var(--bq-neutral-950);--bq-ui--tertiary:var(--bq-neutral-700);--bq-ui--inverse:var(--bq-neutral-100);--bq-ui--brand:var(--bq-brand);--bq-ui--brand-alt:var(--bq-brand-dark);--bq-ui--alt:var(--bq-neutral-950);--bq-ui--success:var(--bq-success);--bq-ui--success-alt:var(--bq-success-dark);--bq-ui--warning:var(--bq-warning);--bq-ui--warning-alt:var(--bq-warning-dark);--bq-ui--danger:var(--bq-danger);--bq-ui--danger-alt:var(--bq-danger-dark);--bq-ui--info:var(--bq-info);--bq-ui--info-alt:var(--bq-info-dark);--bq-hover:#444546;--bq-active:#1f2026}.box-border{box-sizing:border-box}.inline-block{display:inline-block}.inline-flex{display:inline-flex}.cursor-pointer{cursor:pointer}.select-none{user-select:none}.rounded-\\[--bq-checkbox--border-radius\\]{border-radius:var(--bq-checkbox--border-radius)}.rounded-s{border-radius:var(--bq-radius--s)}.border-\\[length\\:--bq-checkbox--border-width\\]{border-width:var(--bq-checkbox--border-width)}.border-solid{border-style:solid}.border-\\[color\\:--bq-icon--primary\\]{border-color:var(--bq-icon--primary)}.border-brand{border-color:var(--bq-stroke--brand)}.bg-ui-brand{background-color:var(--bq-ui--brand)}.opacity-60{opacity:.6}.transition-\\[color\\2c background-color\\2c border-color\\2c box-shadow\\]{transition-duration:.15s;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.bg-hover-ui-brand{background-color:color-mix(in srgb,var(--bq-ui--brand),var(--bq-hover) 20%)}.bg-hover-ui-primary{background-color:color-mix(in srgb,var(--bq-ui--primary),var(--bq-hover) 20%)}.border-hover-brand{border-color:color-mix(in srgb,var(--bq-stroke--brand),var(--bq-hover) 20%)}.p-b-xs{padding-block:var(--bq-spacing-xs)}.p-i-xs{padding-inline:var(--bq-spacing-xs)}.focus{outline:var(--bq-ring-width,2px) solid var(--bq-ring-color-focus,var(--bq-focus));outline-offset:var(--bq-ring-offset-width,1px)}@-webkit-keyframes fade-in{0%{opacity:0}}@keyframes fade-in{0%{opacity:0}}@-webkit-keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@keyframes slide-in{0%{-webkit-transform:translateY(10px);transform:translateY(10px)}}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}:host{--bq-checkbox--size:24px;--bq-checkbox--border-radius:var(--bq-radius--xs);--bq-checkbox--border-width:var(--bq-stroke-m);display:inline-block}.bq-checkbox{border-radius:var(--bq-radius--s);box-sizing:border-box;cursor:pointer;display:inline-flex;padding-block:var(--bq-spacing-xs);padding-inline:var(--bq-spacing-xs);transition-duration:.3s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);user-select:none}.bq-checkbox:not(.is-checked):not(.is-disabled):hover .bq-checkbox__checkbox,.bq-checkbox:not(.is-indeterminate):not(.is-disabled):hover .bq-checkbox__checkbox{border-color:color-mix(in srgb,var(--bq-stroke--brand),var(--bq-hover) 20%)}.bq-checkbox.has-background:not(.is-disabled):hover{background-color:color-mix(in srgb,var(--bq-ui--primary),var(--bq-hover) 20%)}.bq-checkbox.is-checked:not(.is-disabled):hover .bq-checkbox__checkbox,.bq-checkbox.is-indeterminate:not(.is-disabled):hover .bq-checkbox__checkbox{background-color:color-mix(in srgb,var(--bq-ui--brand),var(--bq-hover) 20%);border-color:color-mix(in srgb,var(--bq-stroke--brand),var(--bq-hover) 20%)}.bq-checkbox__input:focus-visible~.bq-checkbox__checkbox,.bq-checkbox__input:focus~.bq-checkbox__checkbox{border-color:var(--bq-stroke--brand);outline:var(--bq-ring-width,2px) solid var(--bq-ring-color-focus,var(--bq-focus));outline-offset:var(--bq-ring-offset-width,1px)}.bq-checkbox__input:checked~.bq-checkbox__checkbox,.bq-checkbox__input:indeterminate~.bq-checkbox__checkbox{background-color:var(--bq-ui--brand);border-color:var(--bq-stroke--brand)}.bq-checkbox__input:checked:disabled~.bq-checkbox__checkbox,.bq-checkbox__input:indeterminate:disabled~.bq-checkbox__checkbox{opacity:.6}.bq-checkbox__input:disabled~.bq-checkbox__checkbox{opacity:.6}.bq-checkbox__checkbox{border-color:var(--bq-icon--primary);border-radius:var(--bq-checkbox--border-radius);border-style:solid;border-width:var(--bq-checkbox--border-width)}.bq-checkbox__checkbox,.bq-checkbox__label{transition-duration:.3s;transition-property:color,background-color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.pointer-events-none{pointer-events:none}.static{position:static}.absolute{position:absolute}.relative{position:relative}.flex{display:flex}.\\!cursor-not-allowed{cursor:not-allowed!important}.items-center{align-items:center}.justify-center{justify-content:center}.ps-xs{padding-inline-start:var(--bq-spacing-xs)}.text-start{text-align:start}.font-medium{font-weight:var(--bq-font-weight--medium)}.leading-regular{line-height:var(--bq-font-line-height--regular)}.text-neutral-white{color:var(--bq-neutral-white)}.text-primary{color:var(--bq-text--primary)}.opacity-0{opacity:0}.bs-\\[--bq-checkbox--size\\]{block-size:var(--bq-checkbox--size)}.bs-full{block-size:100%}.is-\\[--bq-checkbox--size\\]{inline-size:var(--bq-checkbox--size)}.is-full{inline-size:100%}.p-b-0{padding-block:0}.p-b-xs3{padding-block:var(--bq-spacing-xs3)}.p-i-0{padding-inline:0}.p-i-xs3{padding-inline:var(--bq-spacing-xs3)}.m-b-0{margin-block:0}.m-i-0{margin-inline:0}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.group:hover .group-hover-\\[\\&\\:not\\(\\.is-disabled\\)\\]\\:text-hover-primary{color:color-mix(in srgb,var(--bq-text--primary),var(--bq-hover) 20%)}.group.is-disabled .group-\\[\\.is-disabled\\]\\:opacity-60{opacity:.6}`;const o=r(class r extends a{constructor(r){super();if(r!==false){this.__registerHost()}this.__attachShadow();this.bqChange=e(this,"bqChange");this.bqFocus=e(this,"bqFocus");this.bqBlur=e(this,"bqBlur");this.internals=this.attachInternals()}inputElem;prevCheckedValue;get el(){return this}internals;backgroundOnHover=false;formId;formValidationMessage;checked;disabled=false;indeterminate=false;name;required;value;handleIndeterminatePropChange(){if(!this.inputElem)return;this.inputElem.indeterminate=this.indeterminate;if(this.indeterminate){this.checked=false}}handleRequiredPropChange(){this.updateFormValidity()}bqChange;bqFocus;bqBlur;componentWillLoad(){this.prevCheckedValue=this.checked}componentDidUpdate(){if(this.checked!==this.prevCheckedValue){if(!this.indeterminate){this.bqChange.emit({checked:this.checked})}this.prevCheckedValue=this.checked}}formAssociatedCallback(){this.setFormValue(this.checked);this.updateFormValidity()}formResetCallback(){this.checked=false;this.indeterminate=false;this.inputElem.removeAttribute("checked");this.internals?.setFormValue(undefined);this.updateFormValidity()}async vClick(){this.inputElem?.click()}async vFocus(){this.inputElem?.focus()}async vBlur(){this.inputElem?.blur()}setFormValue=r=>{const a=r?"on":undefined;this.internals?.setFormValue(a,`${this.checked}`)};updateFormValidity=()=>{const{formValidationMessage:r,internals:a,required:e,checked:b,inputElem:n}=this;a?.states.clear();if(!(e&&!b)){a?.states.add("valid");a?.setValidity({});return}a?.states.add("invalid");a?.setValidity({valueMissing:true},r,n)};handleChange=()=>{this.checked=!this.checked;this.indeterminate=false;this.setFormValue(this.checked);this.updateFormValidity()};handleOnFocus=()=>{this.bqFocus.emit(this.el)};handleOnBlur=()=>{this.bqBlur.emit(this.el)};render(){return b("label",{"aria-label":this.name||"checkbox",class:{"bq-checkbox group":true,"is-checked":this.checked,"is-indeterminate":this.indeterminate,"is-disabled !cursor-not-allowed":this.disabled,"has-background":this.backgroundOnHover},part:"base",children:[b("div",{class:"bq-checkbox__control bs-[--bq-checkbox--size] is-[--bq-checkbox--size] relative box-border flex items-center justify-center p-b-xs3 p-i-xs3",part:"control",children:[n("input",{"aria-checked":this.checked?"true":"false","aria-disabled":this.disabled?"true":"false",checked:this.checked,class:"bq-checkbox__input pointer-events-none absolute m-b-0 m-i-0 p-b-0 p-i-0 opacity-0",disabled:this.disabled,form:this.formId,indeterminate:this.indeterminate,name:!i(this.name)?this.name:undefined,onBlur:this.handleOnBlur,onChange:this.handleChange,onFocus:this.handleOnFocus,part:"input",ref:r=>{this.inputElem=r},required:this.required,tabindex:"0",type:"checkbox",value:this.value},"82705831b212ce4295abf361b33778096b1830d0"),b("span",{class:"bq-checkbox__checkbox bs-full is-[--bq-checkbox--size] relative box-border flex items-center justify-center",part:"checkbox",children:[this.checked&&b("svg",{"aria-hidden":"true",class:"bs-full is-full absolute text-neutral-white",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",children:[n("path",{d:"M0 0h256v256H0z",fill:"none"},"b9639c45ba423f57e3d52ffcc139f7806cd16a4c"),n("path",{d:"M216 72 104 184l-56-56",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},"0e870063a942e07968558c4c6217ba5e5e4cb07e")]},"7eec03aadbeaf92e76cad339ef8b71d7a7202cf2"),!this.checked&&this.indeterminate&&b("svg",{"aria-hidden":"true",class:"bs-full is-full absolute text-neutral-white",fill:"currentColor",viewBox:"0 0 256 256",xmlns:"http://www.w3.org/2000/svg",children:[n("path",{d:"M0 0h256v256H0z",fill:"none"},"4b0cf7e0dcf552aa21c9778eee796de3f4927916"),n("path",{d:"M40 128h176",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},"bfc9017dd7d5c89b68f292dcc91501b072f8374b")]},"65ad79b2823f8a4a20459687fab6e1462943e013")]},"49f2681d3ac70f03a2f3b12f0404cb7d0e8f842e")]},"8a6ccdc8d6386f308467c816351c5fbdc1ff3ec5"),n("span",{class:"bq-checkbox__label ps-xs text-start font-medium text-primary leading-regular group-hover-[&:not(.is-disabled)]:text-hover-primary group-[.is-disabled]:opacity-60",part:"label",children:n("slot",{},"91709a8ae5aca9ea6b9db45d13eec7664961bb5d")},"a52dfe3e8800c3988a0af094a853396ee37d4167")]},"5bac9ae4cab3a640fc43608f5e6a78f3a14f359f")}static get delegatesFocus(){return true}static get formAssociated(){return true}static get watchers(){return{indeterminate:[{handleIndeterminatePropChange:0}],required:[{handleRequiredPropChange:0}]}}static get style(){return q()}},[849,"bq-checkbox",{backgroundOnHover:[516,"background-on-hover"],formId:[513,"form-id"],formValidationMessage:[1025,"form-validation-message"],checked:[1540],disabled:[516],indeterminate:[1540],name:[513],required:[516],value:[513],vClick:[64],vFocus:[64],vBlur:[64]},undefined,{indeterminate:[{handleIndeterminatePropChange:0}],required:[{handleRequiredPropChange:0}]}]);function s(){if(typeof customElements==="undefined"){return}const r=["bq-checkbox"];r.forEach((r=>{switch(r){case"bq-checkbox":if(!customElements.get(t(r))){customElements.define(t(r),o)}break}}))}const c=o;const d=s;export{c as BqCheckbox,d as defineCustomElement};
319
6
  //# sourceMappingURL=bq-checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["bqCheckboxCss","BqCheckbox","__stencil_proxyCustomElement","HTMLElement","inputElem","prevCheckedValue","internals","backgroundOnHover","formId","formValidationMessage","checked","disabled","indeterminate","name","required","value","handleIndeterminatePropChange","this","handleRequiredPropChange","updateFormValidity","bqChange","bqFocus","bqBlur","componentWillLoad","componentDidUpdate","emit","formAssociatedCallback","setFormValue","formResetCallback","removeAttribute","undefined","vClick","click","vFocus","focus","vBlur","blur","states","clear","add","setValidity","valueMissing","handleChange","handleOnFocus","el","handleOnBlur","render","_jsxs","class","part","children","_jsx","form","isNil","onBlur","onChange","onFocus","ref","input","tabindex","type","viewBox","xmlns","d","fill","stroke"],"sources":["../../packages/beeq/src/components/checkbox/scss/bq-checkbox.scss?tag=bq-checkbox&encapsulation=shadow","../../packages/beeq/src/components/checkbox/bq-checkbox.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Checkbox styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-checkbox.variables';\n\n:host {\n @apply inline-block;\n}\n\n.bq-checkbox {\n @apply box-border inline-flex cursor-pointer select-none rounded-s transition-colors duration-300 ease-in-out p-b-xs p-i-xs;\n\n // Default hover state\n &:not(.is-checked),\n &:not(.is-indeterminate) {\n &:not(.is-disabled):hover .bq-checkbox__checkbox {\n @apply border-hover-brand;\n }\n }\n\n // Display background on hover (if enabled)\n &.has-background:not(.is-disabled):hover {\n @apply bg-hover-ui-primary;\n }\n\n // Checked/Indeterminate hover state\n &.is-checked,\n &.is-indeterminate {\n &:not(.is-disabled):hover .bq-checkbox__checkbox {\n @apply bg-hover-ui-brand border-hover-brand;\n }\n }\n}\n\n.bq-checkbox__input {\n // Checkbox square icon has `FOCUS`\n &:focus,\n &:focus-visible {\n ~ .bq-checkbox__checkbox {\n @apply focus border-brand;\n }\n }\n\n // Checkbox square icon is `CHECKED/INDETERMINATE`\n &:checked,\n &:indeterminate {\n ~ .bq-checkbox__checkbox {\n @apply border-brand bg-ui-brand;\n }\n }\n\n // Checkbox square icon is `CHECKED/INDETERMINATE` and `DISABLED`\n &:checked:disabled,\n &:indeterminate:disabled {\n ~ .bq-checkbox__checkbox {\n @apply opacity-60;\n }\n }\n\n &:disabled {\n ~ .bq-checkbox__checkbox {\n @apply opacity-60;\n }\n }\n}\n\n// Checkbox square icon `DEFAULT` state (not checked/indeterminate, not hover, not disabled)\n.bq-checkbox__checkbox {\n @apply rounded-[--bq-checkbox--border-radius] border-[length:--bq-checkbox--border-width] border-solid border-[color:--bq-icon--primary];\n}\n\n.bq-checkbox__checkbox,\n.bq-checkbox__label {\n @apply transition-[color,background-color,border-color,box-shadow] duration-300;\n}\n","import type { EventEmitter } from '@stencil/core';\nimport { AttachInternals, Component, Element, Event, Method, Prop, Watch } from '@stencil/core';\n\nimport { isNil } from '../../shared/utils';\n\n/**\n * The checkbox is a UI component that allows users to select one or more options from a list of choices.\n * It is commonly used in forms, surveys, and settings pages.\n *\n * @example How to use it\n * ```html\n * <bq-checkbox name=\"bq-checkbox\" value=\"checkbox-value\" background-on-hover>\n * Checkbox label\n * </bq-checkbox>\n * ```\n *\n * @documentation https://www.beeq.design/3d466e231/p/431f17-checkbox\n * @status stable\n *\n * @attr {boolean} background-on-hover - If true checkbox displays background on hover\n * @attr {string} form-id - The form ID that the checkbox is associated with\n * @attr {string} form-validation-message - The native form validation message\n * @attr {boolean} checked - If true checkbox is checked\n * @attr {boolean} disabled - If true checkbox is disabled\n * @attr {boolean} indeterminate - A state that is neither checked nor unchecked\n * @attr {string} name - Name of the HTML input form control. Submitted with the form as part of a name/value pair\n * @attr {boolean} required - If `true`, it will indicate that the user must specify a value for the checkbox before the owning form can be submitted\n * @attr {string} value - A string representing the value of the checkbox. Primarily used to differentiate a list of related checkboxes that have the same name\n *\n * @method vClick - Simulate a click event on the native `<input>` HTML element used under the hood\n * @method vFocus - Sets focus on the native `<input>` HTML element used under the hood\n * @method vBlur - Remove focus from the native `<input>` HTML element used under the hood\n *\n * @event bqChange - Handler to be called when the checkbox state changes\n * @event bqFocus - Handler to be called when the checkbox gets focus\n * @event bqBlur - Handler to be called when the checkbox loses focus\n *\n * @slot - The content of the checkbox component\n *\n * @part base - The component's internal wrapper of the checkbox component.\n * @part control - The container `<div>` element that holds the custom checkbox.\n * @part input - The native HTML `<input type=\"checkbox\">` used under the hood.\n * @part checkbox - The `<span>` element that renders the custom checked/indeterminate state.\n * @part label - The `<span>` element that holds the text content.\n *\n * @cssprop --bq-checkbox--size - Checkbox size\n * @cssprop --bq-checkbox--border-radius - Checkbox border radius\n * @cssprop --bq-checkbox--border-width - Checkbox border width\n */\n@Component({\n tag: 'bq-checkbox',\n styleUrl: './scss/bq-checkbox.scss',\n formAssociated: true,\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class BqCheckbox {\n // Own Properties\n // ====================\n\n private inputElem: HTMLInputElement;\n private prevCheckedValue: boolean;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqCheckboxElement;\n @AttachInternals() internals!: ElementInternals;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** If true checkbox displays background on hover */\n @Prop({ reflect: true }) backgroundOnHover? = false;\n\n /** The form ID that the checkbox is associated with */\n @Prop({ reflect: true }) formId?: string;\n\n /** The native form validation message */\n @Prop({ mutable: true }) formValidationMessage?: string;\n\n /** If true checkbox is checked */\n @Prop({ reflect: true, mutable: true }) checked?: boolean;\n\n /** If true checkbox is disabled */\n @Prop({ reflect: true }) disabled? = false;\n\n /** A state that is neither checked nor unchecked */\n @Prop({ reflect: true, mutable: true }) indeterminate? = false;\n\n /** Name of the HTML input form control. Submitted with the form as part of a name/value pair. */\n @Prop({ reflect: true }) name!: string;\n\n /** If `true`, it will indicate that the user must specify a value for the checkbox before the owning form can be submitted */\n @Prop({ reflect: true }) required?: boolean;\n\n /** A string representing the value of the checkbox. Primarily used to differentiate a list of related checkboxes that have the same name. */\n @Prop({ reflect: true }) value!: string;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('indeterminate')\n handleIndeterminatePropChange() {\n if (!this.inputElem) return;\n\n this.inputElem.indeterminate = this.indeterminate;\n if (this.indeterminate) {\n this.checked = false;\n }\n }\n\n @Watch('required')\n handleRequiredPropChange() {\n this.updateFormValidity();\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Handler to be called when the checkbox state changes */\n @Event() bqChange: EventEmitter<{ checked: boolean }>;\n\n /** Handler to be called when the checkbox gets focus */\n @Event() bqFocus: EventEmitter<HTMLBqCheckboxElement>;\n\n /** Handler to be called when the checkbox loses focus */\n @Event() bqBlur: EventEmitter<HTMLBqCheckboxElement>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.prevCheckedValue = this.checked;\n }\n\n componentDidUpdate() {\n /**\n * We need to trigger the `bqChange` immediately after the first update happens\n * so the checked attribute get applied, otherwise, a delay will happen\n * between the event emits and when the checked attribute value gets reflected in the element host.\n */\n if (this.checked !== this.prevCheckedValue) {\n if (!this.indeterminate) {\n this.bqChange.emit({ checked: this.checked });\n }\n this.prevCheckedValue = this.checked;\n }\n }\n\n formAssociatedCallback() {\n this.setFormValue(this.checked);\n this.updateFormValidity();\n }\n\n formResetCallback() {\n // Reset the form value and validity state\n this.checked = false;\n this.indeterminate = false;\n this.inputElem.removeAttribute('checked');\n this.internals?.setFormValue(undefined);\n this.updateFormValidity();\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n /**\n * Simulate a click event on the native `<input>` HTML element used under the hood.\n * Use this method instead of the global `element.click()`.\n */\n @Method()\n async vClick() {\n this.inputElem?.click();\n }\n\n /**\n * Sets focus on the native `<input>` HTML element used under the hood.\n * Use this method instead of the global `element.focus()`.\n */\n @Method()\n async vFocus() {\n this.inputElem?.focus();\n }\n\n /**\n * Remove focus from the native `<input>` HTML element used under the hood.\n * Use this method instead of the global `element.blur()`.\n */\n @Method()\n async vBlur() {\n this.inputElem?.blur();\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private setFormValue = (checked: boolean) => {\n const value = checked ? 'on' : undefined;\n // Set form value based on the checked state\n // Here we also pass the state of the checkbox (2nd argument) as the state of the form control\n // Details: https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setFormValue\n this.internals?.setFormValue(value, `${this.checked}`);\n };\n\n private updateFormValidity = () => {\n const { formValidationMessage, internals, required, checked, inputElem } = this;\n // Clear the validity state\n internals?.states.clear();\n\n if (!(required && !checked)) {\n // If the checkbox is not required or is checked, set the validity state to valid\n internals?.states.add('valid');\n internals?.setValidity({});\n return;\n }\n\n // Set validity state based on the required property and checked state\n internals?.states.add('invalid');\n internals?.setValidity({ valueMissing: true }, formValidationMessage, inputElem);\n };\n\n private handleChange = () => {\n this.checked = !this.checked;\n this.indeterminate = false;\n\n this.setFormValue(this.checked);\n this.updateFormValidity();\n };\n\n private handleOnFocus = () => {\n this.bqFocus.emit(this.el);\n };\n\n private handleOnBlur = () => {\n this.bqBlur.emit(this.el);\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <label\n aria-label={this.name || 'checkbox'}\n class={{\n 'bq-checkbox group': true,\n 'is-checked': this.checked,\n 'is-indeterminate': this.indeterminate,\n 'is-disabled !cursor-not-allowed': this.disabled,\n 'has-background': this.backgroundOnHover,\n }}\n part=\"base\"\n >\n <div\n class=\"bq-checkbox__control bs-[--bq-checkbox--size] is-[--bq-checkbox--size] relative box-border flex items-center justify-center p-b-xs3 p-i-xs3\"\n part=\"control\"\n >\n <input\n aria-checked={this.checked ? 'true' : 'false'}\n aria-disabled={this.disabled ? 'true' : 'false'}\n checked={this.checked}\n class=\"bq-checkbox__input pointer-events-none absolute m-b-0 m-i-0 p-b-0 p-i-0 opacity-0\"\n disabled={this.disabled}\n form={this.formId}\n indeterminate={this.indeterminate}\n name={!isNil(this.name) ? this.name : undefined}\n onBlur={this.handleOnBlur}\n onChange={this.handleChange}\n onFocus={this.handleOnFocus}\n part=\"input\"\n ref={(input: HTMLInputElement) => {\n this.inputElem = input;\n }}\n required={this.required}\n tabindex=\"0\"\n type=\"checkbox\"\n value={this.value}\n />\n <span\n class=\"bq-checkbox__checkbox bs-full is-[--bq-checkbox--size] relative box-border flex items-center justify-center\"\n part=\"checkbox\"\n >\n {/*\n We could move these SVGs to separated functional components, but it seems there's a weird issue with\n Stencil and pure SVG components: https://stencil-worldwide.slack.com/archives/C79EANFL7/p1663779385026389\n */}\n {this.checked && (\n <svg\n aria-hidden=\"true\"\n class=\"bs-full is-full absolute text-neutral-white\"\n viewBox=\"0 0 256 256\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M0 0h256v256H0z\" fill=\"none\" />\n <path\n d=\"M216 72 104 184l-56-56\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"32\"\n />\n </svg>\n )}\n {!this.checked && this.indeterminate && (\n <svg\n aria-hidden=\"true\"\n class=\"bs-full is-full absolute text-neutral-white\"\n fill=\"currentColor\"\n viewBox=\"0 0 256 256\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M0 0h256v256H0z\" fill=\"none\" />\n <path\n d=\"M40 128h176\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"32\"\n />\n </svg>\n )}\n </span>\n </div>\n <span\n class=\"bq-checkbox__label ps-xs text-start font-medium text-primary leading-regular group-hover-[&:not(.is-disabled)]:text-hover-primary group-[.is-disabled]:opacity-60\"\n part=\"label\"\n >\n <slot />\n </span>\n </label>\n );\n }\n}\n"],"mappings":";;;;;;;;AAAA,MAAMA,gBAAgB,MAAM;;MCyDfC,KAAUC,EAAA,MAAAD,UAAAE;;;;;;;;;;;;;;EAIbC;EACAC;;;;EAMWC;;;;;;;EAUMC,kBAAqB;;EAGrBC;;EAGAC;;EAGeC;;EAGfC,SAAY;;EAGGC,cAAiB;;EAGhCC;;EAGAC;;EAGAC;;;EAMzB,6BAAAC;IACE,KAAKC,KAAKb,WAAW;IAErBa,KAAKb,UAAUQ,gBAAgBK,KAAKL;IACpC,IAAIK,KAAKL,eAAe;MACtBK,KAAKP,UAAU;;;EAKnB,wBAAAQ;IACED,KAAKE;;;;;;EAQEC;;EAGAC;;EAGAC;;;;EAMT,iBAAAC;IACEN,KAAKZ,mBAAmBY,KAAKP;;EAG/B,kBAAAc;;;;;;IAME,IAAIP,KAAKP,YAAYO,KAAKZ,kBAAkB;MAC1C,KAAKY,KAAKL,eAAe;QACvBK,KAAKG,SAASK,KAAK;UAAEf,SAASO,KAAKP;;;MAErCO,KAAKZ,mBAAmBY,KAAKP;;;EAIjC,sBAAAgB;IACET,KAAKU,aAAaV,KAAKP;IACvBO,KAAKE;;EAGP,iBAAAS;;IAEEX,KAAKP,UAAU;IACfO,KAAKL,gBAAgB;IACrBK,KAAKb,UAAUyB,gBAAgB;IAC/BZ,KAAKX,WAAWqB,aAAaG;IAC7Bb,KAAKE;;;;;;;;;;;;;;EAkBP,YAAMY;IACJd,KAAKb,WAAW4B;;;;;SAQlB,YAAMC;IACJhB,KAAKb,WAAW8B;;;;;SAQlB,WAAMC;IACJlB,KAAKb,WAAWgC;;;;;;EAQVT,aAAgBjB;IACtB,MAAMK,IAAQL,IAAU,OAAOoB;;;;QAI/Bb,KAAKX,WAAWqB,aAAaZ,GAAO,GAAGE,KAAKP;AAAU;EAGhDS,mBAAqB;IAC3B,OAAMV,uBAAEA,GAAqBH,WAAEA,GAASQ,UAAEA,GAAQJ,SAAEA,GAAON,WAAEA,KAAca;;QAE3EX,GAAW+B,OAAOC;IAElB,MAAMxB,MAAaJ,IAAU;;MAE3BJ,GAAW+B,OAAOE,IAAI;MACtBjC,GAAWkC,YAAY;MACvB;;;QAIFlC,GAAW+B,OAAOE,IAAI;IACtBjC,GAAWkC,YAAY;MAAEC,cAAc;OAAQhC,GAAuBL;AAAU;EAG1EsC,aAAe;IACrBzB,KAAKP,WAAWO,KAAKP;IACrBO,KAAKL,gBAAgB;IAErBK,KAAKU,aAAaV,KAAKP;IACvBO,KAAKE;AAAoB;EAGnBwB,cAAgB;IACtB1B,KAAKI,QAAQI,KAAKR,KAAK2B;AAAG;EAGpBC,aAAe;IACrB5B,KAAKK,OAAOG,KAAKR,KAAK2B;AAAG;;;;EAO3B,MAAAE;IACE,OACEC;MAAAA,cACc9B,KAAKJ,QAAQ;MACzBmC,OAAO;QACL,qBAAqB;QACrB,cAAc/B,KAAKP;QACnB,oBAAoBO,KAAKL;QACzB,mCAAmCK,KAAKN;QACxC,kBAAkBM,KAAKV;;MAEzB0C,MAAK;MAELC,UAAA,EAAAH,EAAA;QACEC,OAAM;QACNC,MAAK;QAASC,UAAA,EAEdC,EACgB;UAAA,gBAAAlC,KAAKP,UAAU,SAAS;UACvB,iBAAAO,KAAKN,WAAW,SAAS;UACxCD,SAASO,KAAKP;UACdsC,OAAM;UACNrC,UAAUM,KAAKN;UACfyC,MAAMnC,KAAKT;UACXI,eAAeK,KAAKL;UACpBC,OAAOwC,EAAMpC,KAAKJ,QAAQI,KAAKJ,OAAOiB;UACtCwB,QAAQrC,KAAK4B;UACbU,UAAUtC,KAAKyB;UACfc,SAASvC,KAAK0B;UACdM,MAAK;UACLQ,KAAMC;YACJzC,KAAKb,YAAYsD;AAAK;UAExB5C,UAAUG,KAAKH;UACf6C,UAAS;UACTC,MAAK;UACL7C,OAAOE,KAAKF;WAAK,6CAEnBgC,EAAA;UACEC,OAAM;UACNC,MAAK;UAAUC,UAAA,EAMdjC,KAAKP,WACJqC,EACc;YAAA;YACZC,OAAM;YACNa,SAAQ;YACRC,OAAM;YAA4BZ,UAAA,EAElCC,EAAM;cAAAY,GAAE;cAAkBC,MAAK;eAAM,6CACrCb,EACE;cAAAY,GAAE;cACFC,MAAK;cACLC,QAAO;cAAc,kBACN;cAAO,mBACN;cACH;eACb;aAAA,8CAGJhD,KAAKP,WAAWO,KAAKL,iBACrBmC,EAAA;YAAA,eACc;YACZC,OAAM;YACNgB,MAAK;YACLH,SAAQ;YACRC,OAAM;YAA4BZ,UAAA,EAElCC,EAAM;cAAAY,GAAE;cAAkBC,MAAK;eAAS,6CACxCb;cACEY,GAAE;cACFC,MAAK;cACLC,QAAO;cAAc,kBACN;cAAO,mBACN;cACH;eACb;aAAA;WAGD;SAAA,6CAETd,EAAA;QACEH,OAAM;QACNC,MAAK;QAAOC,UAEZC;SACK;OAAA","ignoreList":[]}
1
+ {"version":3,"names":["bqCheckboxCss","BqCheckbox","__stencil_proxyCustomElement","HTMLElement","inputElem","prevCheckedValue","internals","backgroundOnHover","formId","formValidationMessage","checked","disabled","indeterminate","name","required","value","handleIndeterminatePropChange","this","handleRequiredPropChange","updateFormValidity","bqChange","bqFocus","bqBlur","componentWillLoad","componentDidUpdate","emit","formAssociatedCallback","setFormValue","formResetCallback","removeAttribute","undefined","vClick","click","vFocus","focus","vBlur","blur","states","clear","add","setValidity","valueMissing","handleChange","handleOnFocus","el","handleOnBlur","render","_jsxs","class","part","children","_jsx","form","isNil","onBlur","onChange","onFocus","ref","input","tabindex","type","viewBox","xmlns","d","fill","stroke"],"sources":["../../packages/beeq/src/components/checkbox/scss/bq-checkbox.scss?tag=bq-checkbox&encapsulation=shadow","../../packages/beeq/src/components/checkbox/bq-checkbox.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Checkbox styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-checkbox.variables';\n\n:host {\n @apply inline-block;\n}\n\n.bq-checkbox {\n @apply box-border inline-flex cursor-pointer select-none rounded-s transition-colors duration-300 ease-in-out p-b-xs p-i-xs;\n\n // Default hover state\n &:not(.is-checked),\n &:not(.is-indeterminate) {\n &:not(.is-disabled):hover .bq-checkbox__checkbox {\n @apply border-hover-brand;\n }\n }\n\n // Display background on hover (if enabled)\n &.has-background:not(.is-disabled):hover {\n @apply bg-hover-ui-primary;\n }\n\n // Checked/Indeterminate hover state\n &.is-checked,\n &.is-indeterminate {\n &:not(.is-disabled):hover .bq-checkbox__checkbox {\n @apply bg-hover-ui-brand border-hover-brand;\n }\n }\n}\n\n.bq-checkbox__input {\n // Checkbox square icon has `FOCUS`\n &:focus,\n &:focus-visible {\n ~ .bq-checkbox__checkbox {\n @apply focus border-brand;\n }\n }\n\n // Checkbox square icon is `CHECKED/INDETERMINATE`\n &:checked,\n &:indeterminate {\n ~ .bq-checkbox__checkbox {\n @apply border-brand bg-ui-brand;\n }\n }\n\n // Checkbox square icon is `CHECKED/INDETERMINATE` and `DISABLED`\n &:checked:disabled,\n &:indeterminate:disabled {\n ~ .bq-checkbox__checkbox {\n @apply opacity-60;\n }\n }\n\n &:disabled {\n ~ .bq-checkbox__checkbox {\n @apply opacity-60;\n }\n }\n}\n\n// Checkbox square icon `DEFAULT` state (not checked/indeterminate, not hover, not disabled)\n.bq-checkbox__checkbox {\n @apply rounded-[--bq-checkbox--border-radius] border-[length:--bq-checkbox--border-width] border-solid border-[color:--bq-icon--primary];\n}\n\n.bq-checkbox__checkbox,\n.bq-checkbox__label {\n @apply transition-[color,background-color,border-color,box-shadow] duration-300;\n}\n","import type { EventEmitter } from '@stencil/core';\nimport { AttachInternals, Component, Element, Event, Method, Prop, Watch } from '@stencil/core';\n\nimport { isNil } from '../../shared/utils';\n\n/**\n * The checkbox is a UI component that allows users to select one or more options from a list of choices.\n * It is commonly used in forms, surveys, and settings pages.\n *\n * @example How to use it\n * ```html\n * <bq-checkbox name=\"bq-checkbox\" value=\"checkbox-value\" background-on-hover>\n * Checkbox label\n * </bq-checkbox>\n * ```\n *\n * @documentation https://www.beeq.design/3d466e231/p/431f17-checkbox\n * @status stable\n *\n * @attr {boolean} background-on-hover - If true checkbox displays background on hover\n * @attr {string} form-id - The form ID that the checkbox is associated with\n * @attr {string} form-validation-message - The native form validation message\n * @attr {boolean} checked - If true checkbox is checked\n * @attr {boolean} disabled - If true checkbox is disabled\n * @attr {boolean} indeterminate - A state that is neither checked nor unchecked\n * @attr {string} name - Name of the HTML input form control. Submitted with the form as part of a name/value pair\n * @attr {boolean} required - If `true`, it will indicate that the user must specify a value for the checkbox before the owning form can be submitted\n * @attr {string} value - A string representing the value of the checkbox. Primarily used to differentiate a list of related checkboxes that have the same name\n *\n * @method vClick - Simulate a click event on the native `<input>` HTML element used under the hood\n * @method vFocus - Sets focus on the native `<input>` HTML element used under the hood\n * @method vBlur - Remove focus from the native `<input>` HTML element used under the hood\n *\n * @event bqChange - Handler to be called when the checkbox state changes\n * @event bqFocus - Handler to be called when the checkbox gets focus\n * @event bqBlur - Handler to be called when the checkbox loses focus\n *\n * @slot - The content of the checkbox component\n *\n * @part base - The component's internal wrapper of the checkbox component.\n * @part control - The container `<div>` element that holds the custom checkbox.\n * @part input - The native HTML `<input type=\"checkbox\">` used under the hood.\n * @part checkbox - The `<span>` element that renders the custom checked/indeterminate state.\n * @part label - The `<span>` element that holds the text content.\n *\n * @cssprop --bq-checkbox--size - Checkbox size\n * @cssprop --bq-checkbox--border-radius - Checkbox border radius\n * @cssprop --bq-checkbox--border-width - Checkbox border width\n */\n@Component({\n tag: 'bq-checkbox',\n styleUrl: './scss/bq-checkbox.scss',\n formAssociated: true,\n shadow: {\n delegatesFocus: true,\n },\n})\nexport class BqCheckbox {\n // Own Properties\n // ====================\n\n private inputElem: HTMLInputElement;\n private prevCheckedValue: boolean;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqCheckboxElement;\n @AttachInternals() internals!: ElementInternals;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** If true checkbox displays background on hover */\n @Prop({ reflect: true }) backgroundOnHover? = false;\n\n /** The form ID that the checkbox is associated with */\n @Prop({ reflect: true }) formId?: string;\n\n /** The native form validation message */\n @Prop({ mutable: true }) formValidationMessage?: string;\n\n /** If true checkbox is checked */\n @Prop({ reflect: true, mutable: true }) checked?: boolean;\n\n /** If true checkbox is disabled */\n @Prop({ reflect: true }) disabled? = false;\n\n /** A state that is neither checked nor unchecked */\n @Prop({ reflect: true, mutable: true }) indeterminate? = false;\n\n /** Name of the HTML input form control. Submitted with the form as part of a name/value pair. */\n @Prop({ reflect: true }) name!: string;\n\n /** If `true`, it will indicate that the user must specify a value for the checkbox before the owning form can be submitted */\n @Prop({ reflect: true }) required?: boolean;\n\n /** A string representing the value of the checkbox. Primarily used to differentiate a list of related checkboxes that have the same name. */\n @Prop({ reflect: true }) value!: string;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('indeterminate')\n handleIndeterminatePropChange() {\n if (!this.inputElem) return;\n\n this.inputElem.indeterminate = this.indeterminate;\n if (this.indeterminate) {\n this.checked = false;\n }\n }\n\n @Watch('required')\n handleRequiredPropChange() {\n this.updateFormValidity();\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Handler to be called when the checkbox state changes */\n @Event() bqChange: EventEmitter<{ checked: boolean }>;\n\n /** Handler to be called when the checkbox gets focus */\n @Event() bqFocus: EventEmitter<HTMLBqCheckboxElement>;\n\n /** Handler to be called when the checkbox loses focus */\n @Event() bqBlur: EventEmitter<HTMLBqCheckboxElement>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.prevCheckedValue = this.checked;\n }\n\n componentDidUpdate() {\n /**\n * We need to trigger the `bqChange` immediately after the first update happens\n * so the checked attribute get applied, otherwise, a delay will happen\n * between the event emits and when the checked attribute value gets reflected in the element host.\n */\n if (this.checked !== this.prevCheckedValue) {\n if (!this.indeterminate) {\n this.bqChange.emit({ checked: this.checked });\n }\n this.prevCheckedValue = this.checked;\n }\n }\n\n formAssociatedCallback() {\n this.setFormValue(this.checked);\n this.updateFormValidity();\n }\n\n formResetCallback() {\n // Reset the form value and validity state\n this.checked = false;\n this.indeterminate = false;\n this.inputElem.removeAttribute('checked');\n this.internals?.setFormValue(undefined);\n this.updateFormValidity();\n }\n\n // Listeners\n // ==============\n\n // Public methods API\n // These methods are exposed on the host element.\n // Always use two lines.\n // Public Methods must be async.\n // Requires JSDocs for public API documentation.\n // ===============================================\n\n /**\n * Simulate a click event on the native `<input>` HTML element used under the hood.\n * Use this method instead of the global `element.click()`.\n */\n @Method()\n async vClick() {\n this.inputElem?.click();\n }\n\n /**\n * Sets focus on the native `<input>` HTML element used under the hood.\n * Use this method instead of the global `element.focus()`.\n */\n @Method()\n async vFocus() {\n this.inputElem?.focus();\n }\n\n /**\n * Remove focus from the native `<input>` HTML element used under the hood.\n * Use this method instead of the global `element.blur()`.\n */\n @Method()\n async vBlur() {\n this.inputElem?.blur();\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private setFormValue = (checked: boolean) => {\n const value = checked ? 'on' : undefined;\n // Set form value based on the checked state\n // Here we also pass the state of the checkbox (2nd argument) as the state of the form control\n // Details: https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/setFormValue\n this.internals?.setFormValue(value, `${this.checked}`);\n };\n\n private updateFormValidity = () => {\n const { formValidationMessage, internals, required, checked, inputElem } = this;\n // Clear the validity state\n internals?.states.clear();\n\n if (!(required && !checked)) {\n // If the checkbox is not required or is checked, set the validity state to valid\n internals?.states.add('valid');\n internals?.setValidity({});\n return;\n }\n\n // Set validity state based on the required property and checked state\n internals?.states.add('invalid');\n internals?.setValidity({ valueMissing: true }, formValidationMessage, inputElem);\n };\n\n private handleChange = () => {\n this.checked = !this.checked;\n this.indeterminate = false;\n\n this.setFormValue(this.checked);\n this.updateFormValidity();\n };\n\n private handleOnFocus = () => {\n this.bqFocus.emit(this.el);\n };\n\n private handleOnBlur = () => {\n this.bqBlur.emit(this.el);\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <label\n aria-label={this.name || 'checkbox'}\n class={{\n 'bq-checkbox group': true,\n 'is-checked': this.checked,\n 'is-indeterminate': this.indeterminate,\n 'is-disabled !cursor-not-allowed': this.disabled,\n 'has-background': this.backgroundOnHover,\n }}\n part=\"base\"\n >\n <div\n class=\"bq-checkbox__control bs-[--bq-checkbox--size] is-[--bq-checkbox--size] relative box-border flex items-center justify-center p-b-xs3 p-i-xs3\"\n part=\"control\"\n >\n <input\n aria-checked={this.checked ? 'true' : 'false'}\n aria-disabled={this.disabled ? 'true' : 'false'}\n checked={this.checked}\n class=\"bq-checkbox__input pointer-events-none absolute m-b-0 m-i-0 p-b-0 p-i-0 opacity-0\"\n disabled={this.disabled}\n form={this.formId}\n indeterminate={this.indeterminate}\n name={!isNil(this.name) ? this.name : undefined}\n onBlur={this.handleOnBlur}\n onChange={this.handleChange}\n onFocus={this.handleOnFocus}\n part=\"input\"\n ref={(input: HTMLInputElement) => {\n this.inputElem = input;\n }}\n required={this.required}\n tabindex=\"0\"\n type=\"checkbox\"\n value={this.value}\n />\n <span\n class=\"bq-checkbox__checkbox bs-full is-[--bq-checkbox--size] relative box-border flex items-center justify-center\"\n part=\"checkbox\"\n >\n {/*\n We could move these SVGs to separated functional components, but it seems there's a weird issue with\n Stencil and pure SVG components: https://stencil-worldwide.slack.com/archives/C79EANFL7/p1663779385026389\n */}\n {this.checked && (\n <svg\n aria-hidden=\"true\"\n class=\"bs-full is-full absolute text-neutral-white\"\n viewBox=\"0 0 256 256\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M0 0h256v256H0z\" fill=\"none\" />\n <path\n d=\"M216 72 104 184l-56-56\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"32\"\n />\n </svg>\n )}\n {!this.checked && this.indeterminate && (\n <svg\n aria-hidden=\"true\"\n class=\"bs-full is-full absolute text-neutral-white\"\n fill=\"currentColor\"\n viewBox=\"0 0 256 256\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path d=\"M0 0h256v256H0z\" fill=\"none\" />\n <path\n d=\"M40 128h176\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"32\"\n />\n </svg>\n )}\n </span>\n </div>\n <span\n class=\"bq-checkbox__label ps-xs text-start font-medium text-primary leading-regular group-hover-[&:not(.is-disabled)]:text-hover-primary group-[.is-disabled]:opacity-60\"\n part=\"label\"\n >\n <slot />\n </span>\n </label>\n );\n }\n}\n"],"mappings":"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","ignoreList":[]}