@beeq/core 1.8.0-beta.2 → 1.8.0-beta.4

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 (605) hide show
  1. package/dist/beeq/beeq.css +1 -1
  2. package/dist/beeq/beeq.esm.js +4 -4
  3. package/dist/beeq/beeq.esm.js.map +1 -1
  4. package/dist/beeq/index.esm.js +6 -6
  5. package/dist/beeq/{p-0c42c08a.js → p-01df4baa.js} +38 -23
  6. package/dist/beeq/p-01df4baa.js.map +1 -0
  7. package/dist/beeq/{p-7c06dfec.entry.js → p-03749fbf.entry.js} +74 -66
  8. package/dist/beeq/{p-7c06dfec.entry.js.map → p-03749fbf.entry.js.map} +1 -1
  9. package/dist/beeq/p-03e23dca.entry.js +105 -0
  10. package/dist/beeq/{p-600e7c38.entry.js.map → p-03e23dca.entry.js.map} +1 -1
  11. package/dist/beeq/{p-513bab02.js → p-0fce4de9.js} +2 -2
  12. package/dist/beeq/{p-951ba558.js → p-1defeea3.js} +19 -19
  13. package/dist/beeq/{p-951ba558.js.map → p-1defeea3.js.map} +1 -1
  14. package/dist/beeq/p-27974392.entry.js +197 -0
  15. package/dist/beeq/p-27974392.entry.js.map +1 -0
  16. package/dist/beeq/p-2b2d8b0c.entry.js +114 -0
  17. package/dist/beeq/{p-37466506.entry.js.map → p-2b2d8b0c.entry.js.map} +1 -1
  18. package/dist/beeq/p-3e3fd7b5.entry.js +87 -0
  19. package/dist/beeq/{p-12dbc6ac.entry.js.map → p-3e3fd7b5.entry.js.map} +1 -1
  20. package/dist/beeq/{p-0ebe73ef.entry.js → p-3ed73068.entry.js} +42 -38
  21. package/dist/beeq/{p-0ebe73ef.entry.js.map → p-3ed73068.entry.js.map} +1 -1
  22. package/dist/beeq/p-5a12011a.entry.js +161 -0
  23. package/dist/beeq/{p-e7d75b87.entry.js.map → p-5a12011a.entry.js.map} +1 -1
  24. package/dist/beeq/{p-0ab0b58d.js → p-5a9a73a0.js} +2 -1
  25. package/dist/beeq/p-5a9a73a0.js.map +1 -0
  26. package/dist/beeq/{p-4dd962a7.entry.js → p-5d51cadd.entry.js} +63 -46
  27. package/dist/beeq/{p-4dd962a7.entry.js.map → p-5d51cadd.entry.js.map} +1 -1
  28. package/dist/beeq/p-5d8d6717.entry.js +190 -0
  29. package/dist/beeq/{p-ceb3bb9a.entry.js.map → p-5d8d6717.entry.js.map} +1 -1
  30. package/dist/beeq/p-5fcbf15f.entry.js +158 -0
  31. package/dist/beeq/{p-ae94b9f8.entry.js.map → p-5fcbf15f.entry.js.map} +1 -1
  32. package/dist/beeq/p-60ab652b.entry.js +102 -0
  33. package/dist/beeq/{p-900d4e78.entry.js.map → p-60ab652b.entry.js.map} +1 -1
  34. package/dist/beeq/p-7695fc8d.entry.js +215 -0
  35. package/dist/beeq/p-7695fc8d.entry.js.map +1 -0
  36. package/dist/beeq/p-7aa47927.entry.js +215 -0
  37. package/dist/beeq/p-7aa47927.entry.js.map +1 -0
  38. package/dist/beeq/p-7ea146b8.entry.js +184 -0
  39. package/dist/beeq/p-7ea146b8.entry.js.map +1 -0
  40. package/dist/beeq/p-818cd6d7.entry.js +244 -0
  41. package/dist/beeq/{p-19df76ba.entry.js.map → p-818cd6d7.entry.js.map} +1 -1
  42. package/dist/beeq/p-89665044.entry.js +349 -0
  43. package/dist/beeq/p-89665044.entry.js.map +1 -0
  44. package/dist/beeq/p-8b6fc3ef.entry.js +135 -0
  45. package/dist/beeq/p-8b6fc3ef.entry.js.map +1 -0
  46. package/dist/beeq/p-908c57e9.entry.js +84 -0
  47. package/dist/beeq/{p-41033fe6.entry.js.map → p-908c57e9.entry.js.map} +1 -1
  48. package/dist/beeq/p-98de0101.entry.js +146 -0
  49. package/dist/beeq/p-98de0101.entry.js.map +1 -0
  50. package/dist/beeq/p-a84d4562.js +64 -0
  51. package/dist/beeq/p-a84d4562.js.map +1 -0
  52. package/dist/beeq/p-a94d15f9.entry.js +156 -0
  53. package/dist/beeq/{p-7089c66a.entry.js.map → p-a94d15f9.entry.js.map} +1 -1
  54. package/dist/beeq/p-ac0d84a6.entry.js +122 -0
  55. package/dist/beeq/{p-5eab4f55.entry.js.map → p-ac0d84a6.entry.js.map} +1 -1
  56. package/dist/beeq/p-b877d662.entry.js +412 -0
  57. package/dist/beeq/p-b877d662.entry.js.map +1 -0
  58. package/dist/beeq/p-bb14b231.entry.js +460 -0
  59. package/dist/beeq/p-bb14b231.entry.js.map +1 -0
  60. package/dist/beeq/{p-4a3d8532.entry.js → p-bc60faa1.entry.js} +21 -15
  61. package/dist/beeq/{p-4a3d8532.entry.js.map → p-bc60faa1.entry.js.map} +1 -1
  62. package/dist/beeq/p-be746e37.entry.js +269 -0
  63. package/dist/beeq/p-be746e37.entry.js.map +1 -0
  64. package/dist/beeq/{p-38d4bd8a.js → p-c78ae3c2.js} +270 -226
  65. package/dist/beeq/p-c78ae3c2.js.map +1 -0
  66. package/dist/beeq/p-cb917e68.entry.js +177 -0
  67. package/dist/beeq/p-cb917e68.entry.js.map +1 -0
  68. package/dist/beeq/p-cdd5b425.entry.js +274 -0
  69. package/dist/beeq/{p-734853f9.entry.js.map → p-cdd5b425.entry.js.map} +1 -1
  70. package/dist/beeq/p-d2f682a9.entry.js +530 -0
  71. package/dist/beeq/p-d2f682a9.entry.js.map +1 -0
  72. package/dist/beeq/{p-d7a88b16.js → p-d7ce7165.js} +6 -7
  73. package/dist/beeq/p-d7ce7165.js.map +1 -0
  74. package/dist/beeq/p-d8f7bf11.entry.js +272 -0
  75. package/dist/beeq/p-d8f7bf11.entry.js.map +1 -0
  76. package/dist/beeq/p-d9bcaeed.entry.js +320 -0
  77. package/dist/beeq/p-d9bcaeed.entry.js.map +1 -0
  78. package/dist/beeq/p-e06c8398.entry.js +294 -0
  79. package/dist/beeq/p-e06c8398.entry.js.map +1 -0
  80. package/dist/beeq/{p-11eaeb5d.entry.js → p-e6911710.entry.js} +116 -81
  81. package/dist/beeq/p-e6911710.entry.js.map +1 -0
  82. package/dist/beeq/p-f11a3beb.entry.js +90 -0
  83. package/dist/beeq/{p-4fc098bb.entry.js.map → p-f11a3beb.entry.js.map} +1 -1
  84. package/dist/beeq/{p-2ef721e1.entry.js → p-f1d6a960.entry.js} +59 -49
  85. package/dist/beeq/p-f1d6a960.entry.js.map +1 -0
  86. package/dist/beeq/p-f350516b.entry.js +154 -0
  87. package/dist/beeq/p-f350516b.entry.js.map +1 -0
  88. package/dist/beeq/p-f5d59aba.entry.js +136 -0
  89. package/dist/beeq/p-f5d59aba.entry.js.map +1 -0
  90. package/dist/beeq/p-f5eb8fff.entry.js +336 -0
  91. package/dist/beeq/p-f5eb8fff.entry.js.map +1 -0
  92. package/dist/beeq/p-f69d2900.entry.js +269 -0
  93. package/dist/beeq/p-f69d2900.entry.js.map +1 -0
  94. package/dist/beeq/p-fe57aa48.entry.js +135 -0
  95. package/dist/beeq/p-fe57aa48.entry.js.map +1 -0
  96. package/dist/cjs/{assetsPath-7ead23b7.js → assetsPath-6ac8935a.js} +9 -33
  97. package/dist/cjs/assetsPath-6ac8935a.js.map +1 -0
  98. package/dist/cjs/beeq.cjs.js +3 -3
  99. package/dist/cjs/beeq.cjs.js.map +1 -1
  100. package/dist/cjs/bq-accordion-group.cjs.entry.js +4 -4
  101. package/dist/cjs/bq-accordion-group.cjs.entry.js.map +1 -1
  102. package/dist/cjs/bq-accordion.cjs.entry.js +84 -48
  103. package/dist/cjs/bq-accordion.cjs.entry.js.map +1 -1
  104. package/dist/cjs/bq-alert.cjs.entry.js +58 -43
  105. package/dist/cjs/bq-alert.cjs.entry.js.map +1 -1
  106. package/dist/cjs/bq-avatar.cjs.entry.js +41 -40
  107. package/dist/cjs/bq-avatar.cjs.entry.js.map +1 -1
  108. package/dist/cjs/bq-badge.cjs.entry.js +43 -42
  109. package/dist/cjs/bq-badge.cjs.entry.js.map +1 -1
  110. package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +40 -29
  111. package/dist/cjs/bq-breadcrumb-item.cjs.entry.js.map +1 -1
  112. package/dist/cjs/bq-breadcrumb.cjs.entry.js +46 -30
  113. package/dist/cjs/bq-breadcrumb.cjs.entry.js.map +1 -1
  114. package/dist/cjs/bq-button_2.cjs.entry.js +105 -86
  115. package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
  116. package/dist/cjs/bq-card.cjs.entry.js +4 -4
  117. package/dist/cjs/bq-card.cjs.entry.js.map +1 -1
  118. package/dist/cjs/bq-checkbox.cjs.entry.js +64 -54
  119. package/dist/cjs/bq-checkbox.cjs.entry.js.map +1 -1
  120. package/dist/cjs/bq-date-picker.cjs.entry.js +161 -140
  121. package/dist/cjs/bq-date-picker.cjs.entry.js.map +1 -1
  122. package/dist/cjs/bq-dialog.cjs.entry.js +72 -50
  123. package/dist/cjs/bq-dialog.cjs.entry.js.map +1 -1
  124. package/dist/cjs/bq-divider.cjs.entry.js +24 -21
  125. package/dist/cjs/bq-divider.cjs.entry.js.map +1 -1
  126. package/dist/cjs/bq-drawer.cjs.entry.js +49 -34
  127. package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
  128. package/dist/cjs/bq-dropdown_2.cjs.entry.js +44 -34
  129. package/dist/cjs/bq-dropdown_2.cjs.entry.js.map +1 -1
  130. package/dist/cjs/bq-empty-state.cjs.entry.js +26 -22
  131. package/dist/cjs/bq-empty-state.cjs.entry.js.map +1 -1
  132. package/dist/cjs/bq-input.cjs.entry.js +117 -90
  133. package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
  134. package/dist/cjs/bq-notification.cjs.entry.js +63 -48
  135. package/dist/cjs/bq-notification.cjs.entry.js.map +1 -1
  136. package/dist/cjs/bq-option-group.cjs.entry.js +3 -3
  137. package/dist/cjs/bq-option-group.cjs.entry.js.map +1 -1
  138. package/dist/cjs/bq-option-list_2.cjs.entry.js +74 -54
  139. package/dist/cjs/bq-option-list_2.cjs.entry.js.map +1 -1
  140. package/dist/cjs/bq-option.cjs.entry.js +62 -45
  141. package/dist/cjs/bq-option.cjs.entry.js.map +1 -1
  142. package/dist/cjs/bq-page-title.cjs.entry.js +37 -32
  143. package/dist/cjs/bq-page-title.cjs.entry.js.map +1 -1
  144. package/dist/cjs/bq-progress.cjs.entry.js +4 -4
  145. package/dist/cjs/bq-progress.cjs.entry.js.map +1 -1
  146. package/dist/cjs/bq-radio-group.cjs.entry.js +13 -7
  147. package/dist/cjs/bq-radio-group.cjs.entry.js.map +1 -1
  148. package/dist/cjs/bq-radio.cjs.entry.js +43 -37
  149. package/dist/cjs/bq-radio.cjs.entry.js.map +1 -1
  150. package/dist/cjs/bq-select.cjs.entry.js +186 -168
  151. package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
  152. package/dist/cjs/bq-side-menu-item.cjs.entry.js +69 -55
  153. package/dist/cjs/bq-side-menu-item.cjs.entry.js.map +1 -1
  154. package/dist/cjs/bq-side-menu.cjs.entry.js +47 -32
  155. package/dist/cjs/bq-side-menu.cjs.entry.js.map +1 -1
  156. package/dist/cjs/bq-slider.cjs.entry.js +161 -145
  157. package/dist/cjs/bq-slider.cjs.entry.js.map +1 -1
  158. package/dist/cjs/bq-spinner.cjs.entry.js +53 -51
  159. package/dist/cjs/bq-spinner.cjs.entry.js.map +1 -1
  160. package/dist/cjs/bq-status.cjs.entry.js +4 -4
  161. package/dist/cjs/bq-status.cjs.entry.js.map +1 -1
  162. package/dist/cjs/bq-step-item.cjs.entry.js +16 -11
  163. package/dist/cjs/bq-step-item.cjs.entry.js.map +1 -1
  164. package/dist/cjs/bq-steps.cjs.entry.js +13 -10
  165. package/dist/cjs/bq-steps.cjs.entry.js.map +1 -1
  166. package/dist/cjs/bq-switch.cjs.entry.js +44 -32
  167. package/dist/cjs/bq-switch.cjs.entry.js.map +1 -1
  168. package/dist/cjs/bq-tab-group.cjs.entry.js +65 -57
  169. package/dist/cjs/bq-tab-group.cjs.entry.js.map +1 -1
  170. package/dist/cjs/bq-tab.cjs.entry.js +44 -33
  171. package/dist/cjs/bq-tab.cjs.entry.js.map +1 -1
  172. package/dist/cjs/bq-textarea.cjs.entry.js +81 -58
  173. package/dist/cjs/bq-textarea.cjs.entry.js.map +1 -1
  174. package/dist/cjs/bq-toast.cjs.entry.js +44 -37
  175. package/dist/cjs/bq-toast.cjs.entry.js.map +1 -1
  176. package/dist/cjs/bq-tooltip.cjs.entry.js +46 -42
  177. package/dist/cjs/bq-tooltip.cjs.entry.js.map +1 -1
  178. package/dist/cjs/{cssVariables-7139f0c6.js → cssVariables-a0e1e906.js} +3 -1
  179. package/dist/cjs/cssVariables-a0e1e906.js.map +1 -0
  180. package/dist/cjs/{debounce-f94a239b.js → debounce-1f7e1176.js} +3 -3
  181. package/dist/cjs/debounce-1f7e1176.js.map +1 -0
  182. package/dist/cjs/{index-1d3aac65.js → index-34edf639.js} +29 -14
  183. package/dist/cjs/index-34edf639.js.map +1 -0
  184. package/dist/cjs/{index-e4c116b6.js → index-fc7876d6.js} +63 -19
  185. package/dist/cjs/index-fc7876d6.js.map +1 -0
  186. package/dist/cjs/index.cjs.js +5 -5
  187. package/dist/cjs/{isDefined-a9dd6d5b.js → isDefined-ee0026ed.js} +2 -2
  188. package/dist/cjs/{isDefined-a9dd6d5b.js.map → isDefined-ee0026ed.js.map} +1 -1
  189. package/dist/cjs/loader.cjs.js +2 -2
  190. package/dist/cjs/{slot-dd6f7db9.js → slot-2fee189a.js} +3 -4
  191. package/dist/{beeq/p-d7a88b16.js.map → cjs/slot-2fee189a.js.map} +1 -1
  192. package/dist/collection/_storybook/foundation/helper/index.js +3 -3
  193. package/dist/collection/_storybook/foundation/helper/index.js.map +1 -1
  194. package/dist/collection/collection-manifest.json +2 -2
  195. package/dist/collection/components/accordion/bq-accordion.js +72 -39
  196. package/dist/collection/components/accordion/bq-accordion.js.map +1 -1
  197. package/dist/collection/components/accordion/helper/index.js +10 -4
  198. package/dist/collection/components/accordion/helper/index.js.map +1 -1
  199. package/dist/collection/components/accordion/scss/bq-accordion.css +1 -1
  200. package/dist/collection/components/accordion-group/bq-accordion-group.js +5 -0
  201. package/dist/collection/components/accordion-group/bq-accordion-group.js.map +1 -1
  202. package/dist/collection/components/accordion-group/scss/bq-accordion-group.css +1 -1
  203. package/dist/collection/components/alert/bq-alert.js +55 -37
  204. package/dist/collection/components/alert/bq-alert.js.map +1 -1
  205. package/dist/collection/components/alert/scss/bq-alert.css +1 -1
  206. package/dist/collection/components/avatar/bq-avatar.js +40 -36
  207. package/dist/collection/components/avatar/bq-avatar.js.map +1 -1
  208. package/dist/collection/components/avatar/scss/bq-avatar.css +1 -1
  209. package/dist/collection/components/badge/bq-badge.js +40 -36
  210. package/dist/collection/components/badge/bq-badge.js.map +1 -1
  211. package/dist/collection/components/badge/scss/bq-badge.css +1 -1
  212. package/dist/collection/components/breadcrumb/bq-breadcrumb.js +45 -26
  213. package/dist/collection/components/breadcrumb/bq-breadcrumb.js.map +1 -1
  214. package/dist/collection/components/breadcrumb/scss/bq-breadcrumb.css +1 -1
  215. package/dist/collection/components/breadcrumb-item/bq-breadcrumb-item.js +40 -24
  216. package/dist/collection/components/breadcrumb-item/bq-breadcrumb-item.js.map +1 -1
  217. package/dist/collection/components/breadcrumb-item/scss/bq-breadcrumb-item.css +1 -1
  218. package/dist/collection/components/button/bq-button.js +57 -41
  219. package/dist/collection/components/button/bq-button.js.map +1 -1
  220. package/dist/collection/components/button/scss/bq-button.css +1 -1
  221. package/dist/collection/components/card/bq-card.js +5 -0
  222. package/dist/collection/components/card/bq-card.js.map +1 -1
  223. package/dist/collection/components/card/scss/bq-card.css +1 -1
  224. package/dist/collection/components/checkbox/bq-checkbox.js +63 -50
  225. package/dist/collection/components/checkbox/bq-checkbox.js.map +1 -1
  226. package/dist/collection/components/checkbox/scss/bq-checkbox.css +1 -1
  227. package/dist/collection/components/date-picker/bq-date-picker.js +158 -134
  228. package/dist/collection/components/date-picker/bq-date-picker.js.map +1 -1
  229. package/dist/collection/components/date-picker/scss/bq-date-picker.css +1 -1
  230. package/dist/collection/components/dialog/bq-dialog.js +70 -45
  231. package/dist/collection/components/dialog/bq-dialog.js.map +1 -1
  232. package/dist/collection/components/dialog/scss/bq-dialog.css +1 -1
  233. package/dist/collection/components/divider/bq-divider.js +21 -15
  234. package/dist/collection/components/divider/bq-divider.js.map +1 -1
  235. package/dist/collection/components/divider/scss/bq-divider.css +1 -1
  236. package/dist/collection/components/drawer/bq-drawer.js +47 -29
  237. package/dist/collection/components/drawer/bq-drawer.js.map +1 -1
  238. package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
  239. package/dist/collection/components/dropdown/bq-dropdown.js +34 -23
  240. package/dist/collection/components/dropdown/bq-dropdown.js.map +1 -1
  241. package/dist/collection/components/empty-state/bq-empty-state.js +25 -18
  242. package/dist/collection/components/empty-state/bq-empty-state.js.map +1 -1
  243. package/dist/collection/components/icon/bq-icon.js +41 -37
  244. package/dist/collection/components/icon/bq-icon.js.map +1 -1
  245. package/dist/collection/components/icon/helper/request.js +2 -0
  246. package/dist/collection/components/icon/helper/request.js.map +1 -1
  247. package/dist/collection/components/icon/scss/bq-icon.css +1 -1
  248. package/dist/collection/components/input/bq-input.js +113 -83
  249. package/dist/collection/components/input/bq-input.js.map +1 -1
  250. package/dist/collection/components/input/scss/bq-input.css +1 -1
  251. package/dist/collection/components/notification/bq-notification.js +60 -42
  252. package/dist/collection/components/notification/bq-notification.js.map +1 -1
  253. package/dist/collection/components/notification/scss/bq-notification.css +1 -1
  254. package/dist/collection/components/option/bq-option.js +60 -40
  255. package/dist/collection/components/option/bq-option.js.map +1 -1
  256. package/dist/collection/components/option/scss/bq-option.css +1 -1
  257. package/dist/collection/components/option-group/bq-option-group.js +5 -0
  258. package/dist/collection/components/option-group/bq-option-group.js.map +1 -1
  259. package/dist/collection/components/option-group/scss/bq-option-group.css +1 -1
  260. package/dist/collection/components/option-list/bq-option-list.js +10 -0
  261. package/dist/collection/components/option-list/bq-option-list.js.map +1 -1
  262. package/dist/collection/components/option-list/scss/bq-option-list.css +1 -1
  263. package/dist/collection/components/page-title/bq-page-title.js +35 -27
  264. package/dist/collection/components/page-title/bq-page-title.js.map +1 -1
  265. package/dist/collection/components/page-title/scss/bq-page-title.css +1 -1
  266. package/dist/collection/components/panel/bq-panel.js +11 -6
  267. package/dist/collection/components/panel/bq-panel.js.map +1 -1
  268. package/dist/collection/components/panel/scss/bq-panel.css +1 -1
  269. package/dist/collection/components/progress/bq-progress.js +5 -0
  270. package/dist/collection/components/progress/bq-progress.js.map +1 -1
  271. package/dist/collection/components/progress/scss/bq-progress.css +1 -1
  272. package/dist/collection/components/radio/bq-radio.js +43 -34
  273. package/dist/collection/components/radio/bq-radio.js.map +1 -1
  274. package/dist/collection/components/radio/scss/bq-radio.css +1 -1
  275. package/dist/collection/components/radio-group/bq-radio-group.js +12 -3
  276. package/dist/collection/components/radio-group/bq-radio-group.js.map +1 -1
  277. package/dist/collection/components/select/bq-select.js +182 -161
  278. package/dist/collection/components/select/bq-select.js.map +1 -1
  279. package/dist/collection/components/select/scss/bq-select.css +1 -1
  280. package/dist/collection/components/side-menu/bq-side-menu.js +44 -29
  281. package/dist/collection/components/side-menu/bq-side-menu.js.map +1 -1
  282. package/dist/collection/components/side-menu/scss/bq-side-menu.css +1 -1
  283. package/dist/collection/components/side-menu-item/bq-side-menu-item.js +68 -51
  284. package/dist/collection/components/side-menu-item/bq-side-menu-item.js.map +1 -1
  285. package/dist/collection/components/side-menu-item/scss/bq-side-menu-item.css +1 -1
  286. package/dist/collection/components/slider/bq-slider.js +159 -140
  287. package/dist/collection/components/slider/bq-slider.js.map +1 -1
  288. package/dist/collection/components/slider/scss/bq-slider.css +1 -1
  289. package/dist/collection/components/spinner/bq-spinner.js +51 -46
  290. package/dist/collection/components/spinner/bq-spinner.js.map +1 -1
  291. package/dist/collection/components/spinner/scss/bq-spinner.css +1 -1
  292. package/dist/collection/components/status/bq-status.js +5 -0
  293. package/dist/collection/components/status/bq-status.js.map +1 -1
  294. package/dist/collection/components/status/scss/bq-status.css +1 -1
  295. package/dist/collection/components/step-item/bq-step-item.js +17 -7
  296. package/dist/collection/components/step-item/bq-step-item.js.map +1 -1
  297. package/dist/collection/components/step-item/scss/bq-step-item.css +1 -1
  298. package/dist/collection/components/steps/bq-steps.js +12 -6
  299. package/dist/collection/components/steps/bq-steps.js.map +1 -1
  300. package/dist/collection/components/steps/scss/bq-steps.css +1 -1
  301. package/dist/collection/components/switch/bq-switch.js +42 -27
  302. package/dist/collection/components/switch/bq-switch.js.map +1 -1
  303. package/dist/collection/components/switch/scss/bq-switch.css +1 -1
  304. package/dist/collection/components/tab/bq-tab.js +42 -28
  305. package/dist/collection/components/tab/bq-tab.js.map +1 -1
  306. package/dist/collection/components/tab/scss/bq-tab.css +1 -1
  307. package/dist/collection/components/tab-group/bq-tab-group.js +64 -53
  308. package/dist/collection/components/tab-group/bq-tab-group.js.map +1 -1
  309. package/dist/collection/components/tag/bq-tag.js +64 -46
  310. package/dist/collection/components/tag/bq-tag.js.map +1 -1
  311. package/dist/collection/components/tag/scss/bq-tag.css +1 -1
  312. package/dist/collection/components/textarea/bq-textarea.js +78 -52
  313. package/dist/collection/components/textarea/bq-textarea.js.map +1 -1
  314. package/dist/collection/components/textarea/scss/bq-textarea.css +1 -1
  315. package/dist/collection/components/toast/bq-toast.js +42 -32
  316. package/dist/collection/components/toast/bq-toast.js.map +1 -1
  317. package/dist/collection/components/toast/scss/bq-toast.css +1 -1
  318. package/dist/collection/components/tooltip/bq-tooltip.js +45 -38
  319. package/dist/collection/components/tooltip/bq-tooltip.js.map +1 -1
  320. package/dist/collection/components/tooltip/scss/bq-tooltip.css +1 -1
  321. package/dist/collection/index.js +0 -1
  322. package/dist/collection/index.js.map +1 -1
  323. package/dist/collection/services/libraries/floating-ui/index.js +4 -0
  324. package/dist/collection/services/libraries/floating-ui/index.js.map +1 -1
  325. package/dist/collection/shared/utils/assetsPath.js +8 -32
  326. package/dist/collection/shared/utils/assetsPath.js.map +1 -1
  327. package/dist/collection/shared/utils/cssVariables.js +2 -0
  328. package/dist/collection/shared/utils/cssVariables.js.map +1 -1
  329. package/dist/collection/shared/utils/debounce.js +2 -2
  330. package/dist/collection/shared/utils/debounce.js.map +1 -1
  331. package/dist/collection/shared/utils/slot.js +2 -3
  332. package/dist/collection/shared/utils/slot.js.map +1 -1
  333. package/dist/components/assetsPath.js +8 -32
  334. package/dist/components/assetsPath.js.map +1 -1
  335. package/dist/components/bq-accordion-group.js +2 -2
  336. package/dist/components/bq-accordion-group.js.map +1 -1
  337. package/dist/components/bq-accordion.js +81 -45
  338. package/dist/components/bq-accordion.js.map +1 -1
  339. package/dist/components/bq-alert.js +54 -39
  340. package/dist/components/bq-alert.js.map +1 -1
  341. package/dist/components/bq-avatar.js +39 -38
  342. package/dist/components/bq-avatar.js.map +1 -1
  343. package/dist/components/bq-badge2.js +39 -38
  344. package/dist/components/bq-badge2.js.map +1 -1
  345. package/dist/components/bq-breadcrumb-item.js +37 -26
  346. package/dist/components/bq-breadcrumb-item.js.map +1 -1
  347. package/dist/components/bq-breadcrumb.js +44 -28
  348. package/dist/components/bq-breadcrumb.js.map +1 -1
  349. package/dist/components/bq-button2.js +56 -43
  350. package/dist/components/bq-button2.js.map +1 -1
  351. package/dist/components/bq-card.js +2 -2
  352. package/dist/components/bq-card.js.map +1 -1
  353. package/dist/components/bq-checkbox.js +62 -52
  354. package/dist/components/bq-checkbox.js.map +1 -1
  355. package/dist/components/bq-date-picker.js +157 -136
  356. package/dist/components/bq-date-picker.js.map +1 -1
  357. package/dist/components/bq-dialog.js +69 -47
  358. package/dist/components/bq-dialog.js.map +1 -1
  359. package/dist/components/bq-divider2.js +20 -17
  360. package/dist/components/bq-divider2.js.map +1 -1
  361. package/dist/components/bq-drawer.js +46 -31
  362. package/dist/components/bq-drawer.js.map +1 -1
  363. package/dist/components/bq-dropdown2.js +32 -24
  364. package/dist/components/bq-dropdown2.js.map +1 -1
  365. package/dist/components/bq-empty-state.js +23 -19
  366. package/dist/components/bq-empty-state.js.map +1 -1
  367. package/dist/components/bq-icon2.js +44 -38
  368. package/dist/components/bq-icon2.js.map +1 -1
  369. package/dist/components/bq-input.js +112 -85
  370. package/dist/components/bq-input.js.map +1 -1
  371. package/dist/components/bq-notification.js +59 -44
  372. package/dist/components/bq-notification.js.map +1 -1
  373. package/dist/components/bq-option-group.js +2 -2
  374. package/dist/components/bq-option-group.js.map +1 -1
  375. package/dist/components/bq-option-list2.js +7 -2
  376. package/dist/components/bq-option-list2.js.map +1 -1
  377. package/dist/components/bq-option.js +59 -42
  378. package/dist/components/bq-option.js.map +1 -1
  379. package/dist/components/bq-page-title.js +34 -29
  380. package/dist/components/bq-page-title.js.map +1 -1
  381. package/dist/components/bq-panel2.js +10 -8
  382. package/dist/components/bq-panel2.js.map +1 -1
  383. package/dist/components/bq-progress.js +2 -2
  384. package/dist/components/bq-progress.js.map +1 -1
  385. package/dist/components/bq-radio-group.js +10 -4
  386. package/dist/components/bq-radio-group.js.map +1 -1
  387. package/dist/components/bq-radio.js +43 -37
  388. package/dist/components/bq-radio.js.map +1 -1
  389. package/dist/components/bq-select.js +181 -163
  390. package/dist/components/bq-select.js.map +1 -1
  391. package/dist/components/bq-side-menu-item.js +67 -53
  392. package/dist/components/bq-side-menu-item.js.map +1 -1
  393. package/dist/components/bq-side-menu.js +45 -30
  394. package/dist/components/bq-side-menu.js.map +1 -1
  395. package/dist/components/bq-slider.js +158 -142
  396. package/dist/components/bq-slider.js.map +1 -1
  397. package/dist/components/bq-spinner.js +49 -47
  398. package/dist/components/bq-spinner.js.map +1 -1
  399. package/dist/components/bq-status.js +2 -2
  400. package/dist/components/bq-status.js.map +1 -1
  401. package/dist/components/bq-step-item.js +14 -9
  402. package/dist/components/bq-step-item.js.map +1 -1
  403. package/dist/components/bq-steps.js +11 -8
  404. package/dist/components/bq-steps.js.map +1 -1
  405. package/dist/components/bq-switch.js +41 -29
  406. package/dist/components/bq-switch.js.map +1 -1
  407. package/dist/components/bq-tab-group.js +62 -54
  408. package/dist/components/bq-tab-group.js.map +1 -1
  409. package/dist/components/bq-tab.js +41 -30
  410. package/dist/components/bq-tab.js.map +1 -1
  411. package/dist/components/bq-tag2.js +63 -48
  412. package/dist/components/bq-tag2.js.map +1 -1
  413. package/dist/components/bq-textarea.js +77 -54
  414. package/dist/components/bq-textarea.js.map +1 -1
  415. package/dist/components/bq-toast.js +41 -34
  416. package/dist/components/bq-toast.js.map +1 -1
  417. package/dist/components/bq-tooltip2.js +44 -40
  418. package/dist/components/bq-tooltip2.js.map +1 -1
  419. package/dist/components/cssVariables.js +2 -0
  420. package/dist/components/cssVariables.js.map +1 -1
  421. package/dist/components/debounce.js +2 -2
  422. package/dist/components/debounce.js.map +1 -1
  423. package/dist/components/index2.js +62 -18
  424. package/dist/components/index2.js.map +1 -1
  425. package/dist/components/slot.js +2 -3
  426. package/dist/components/slot.js.map +1 -1
  427. package/dist/esm/{assetsPath-c02b0e16.js → assetsPath-e2f1ceb9.js} +9 -33
  428. package/dist/esm/assetsPath-e2f1ceb9.js.map +1 -0
  429. package/dist/esm/beeq.js +4 -4
  430. package/dist/esm/beeq.js.map +1 -1
  431. package/dist/esm/bq-accordion-group.entry.js +4 -4
  432. package/dist/esm/bq-accordion-group.entry.js.map +1 -1
  433. package/dist/esm/bq-accordion.entry.js +84 -48
  434. package/dist/esm/bq-accordion.entry.js.map +1 -1
  435. package/dist/esm/bq-alert.entry.js +58 -43
  436. package/dist/esm/bq-alert.entry.js.map +1 -1
  437. package/dist/esm/bq-avatar.entry.js +41 -40
  438. package/dist/esm/bq-avatar.entry.js.map +1 -1
  439. package/dist/esm/bq-badge.entry.js +43 -42
  440. package/dist/esm/bq-badge.entry.js.map +1 -1
  441. package/dist/esm/bq-breadcrumb-item.entry.js +40 -29
  442. package/dist/esm/bq-breadcrumb-item.entry.js.map +1 -1
  443. package/dist/esm/bq-breadcrumb.entry.js +46 -30
  444. package/dist/esm/bq-breadcrumb.entry.js.map +1 -1
  445. package/dist/esm/bq-button_2.entry.js +105 -86
  446. package/dist/esm/bq-button_2.entry.js.map +1 -1
  447. package/dist/esm/bq-card.entry.js +4 -4
  448. package/dist/esm/bq-card.entry.js.map +1 -1
  449. package/dist/esm/bq-checkbox.entry.js +64 -54
  450. package/dist/esm/bq-checkbox.entry.js.map +1 -1
  451. package/dist/esm/bq-date-picker.entry.js +161 -140
  452. package/dist/esm/bq-date-picker.entry.js.map +1 -1
  453. package/dist/esm/bq-dialog.entry.js +72 -50
  454. package/dist/esm/bq-dialog.entry.js.map +1 -1
  455. package/dist/esm/bq-divider.entry.js +24 -21
  456. package/dist/esm/bq-divider.entry.js.map +1 -1
  457. package/dist/esm/bq-drawer.entry.js +49 -34
  458. package/dist/esm/bq-drawer.entry.js.map +1 -1
  459. package/dist/esm/bq-dropdown_2.entry.js +44 -34
  460. package/dist/esm/bq-dropdown_2.entry.js.map +1 -1
  461. package/dist/esm/bq-empty-state.entry.js +26 -22
  462. package/dist/esm/bq-empty-state.entry.js.map +1 -1
  463. package/dist/esm/bq-input.entry.js +117 -90
  464. package/dist/esm/bq-input.entry.js.map +1 -1
  465. package/dist/esm/bq-notification.entry.js +63 -48
  466. package/dist/esm/bq-notification.entry.js.map +1 -1
  467. package/dist/esm/bq-option-group.entry.js +3 -3
  468. package/dist/esm/bq-option-group.entry.js.map +1 -1
  469. package/dist/esm/bq-option-list_2.entry.js +74 -54
  470. package/dist/esm/bq-option-list_2.entry.js.map +1 -1
  471. package/dist/esm/bq-option.entry.js +62 -45
  472. package/dist/esm/bq-option.entry.js.map +1 -1
  473. package/dist/esm/bq-page-title.entry.js +37 -32
  474. package/dist/esm/bq-page-title.entry.js.map +1 -1
  475. package/dist/esm/bq-progress.entry.js +4 -4
  476. package/dist/esm/bq-progress.entry.js.map +1 -1
  477. package/dist/esm/bq-radio-group.entry.js +13 -7
  478. package/dist/esm/bq-radio-group.entry.js.map +1 -1
  479. package/dist/esm/bq-radio.entry.js +43 -37
  480. package/dist/esm/bq-radio.entry.js.map +1 -1
  481. package/dist/esm/bq-select.entry.js +186 -168
  482. package/dist/esm/bq-select.entry.js.map +1 -1
  483. package/dist/esm/bq-side-menu-item.entry.js +69 -55
  484. package/dist/esm/bq-side-menu-item.entry.js.map +1 -1
  485. package/dist/esm/bq-side-menu.entry.js +47 -32
  486. package/dist/esm/bq-side-menu.entry.js.map +1 -1
  487. package/dist/esm/bq-slider.entry.js +161 -145
  488. package/dist/esm/bq-slider.entry.js.map +1 -1
  489. package/dist/esm/bq-spinner.entry.js +53 -51
  490. package/dist/esm/bq-spinner.entry.js.map +1 -1
  491. package/dist/esm/bq-status.entry.js +4 -4
  492. package/dist/esm/bq-status.entry.js.map +1 -1
  493. package/dist/esm/bq-step-item.entry.js +16 -11
  494. package/dist/esm/bq-step-item.entry.js.map +1 -1
  495. package/dist/esm/bq-steps.entry.js +13 -10
  496. package/dist/esm/bq-steps.entry.js.map +1 -1
  497. package/dist/esm/bq-switch.entry.js +44 -32
  498. package/dist/esm/bq-switch.entry.js.map +1 -1
  499. package/dist/esm/bq-tab-group.entry.js +65 -57
  500. package/dist/esm/bq-tab-group.entry.js.map +1 -1
  501. package/dist/esm/bq-tab.entry.js +44 -33
  502. package/dist/esm/bq-tab.entry.js.map +1 -1
  503. package/dist/esm/bq-textarea.entry.js +81 -58
  504. package/dist/esm/bq-textarea.entry.js.map +1 -1
  505. package/dist/esm/bq-toast.entry.js +44 -37
  506. package/dist/esm/bq-toast.entry.js.map +1 -1
  507. package/dist/esm/bq-tooltip.entry.js +46 -42
  508. package/dist/esm/bq-tooltip.entry.js.map +1 -1
  509. package/dist/esm/{cssVariables-5ffccc29.js → cssVariables-23e3ca0d.js} +3 -1
  510. package/dist/esm/cssVariables-23e3ca0d.js.map +1 -0
  511. package/dist/esm/{debounce-c82e3da1.js → debounce-3e72f418.js} +3 -3
  512. package/dist/esm/debounce-3e72f418.js.map +1 -0
  513. package/dist/esm/{index-f69556fe.js → index-033f1efb.js} +29 -15
  514. package/dist/esm/index-033f1efb.js.map +1 -0
  515. package/dist/esm/{index-136429a6.js → index-1618c78b.js} +63 -19
  516. package/dist/esm/index-1618c78b.js.map +1 -0
  517. package/dist/esm/index.js +6 -6
  518. package/dist/esm/{isDefined-1e676215.js → isDefined-650befc3.js} +2 -2
  519. package/dist/esm/{isDefined-1e676215.js.map → isDefined-650befc3.js.map} +1 -1
  520. package/dist/esm/loader.js +3 -3
  521. package/dist/esm/{slot-179d109d.js → slot-58bfedb5.js} +3 -4
  522. package/dist/esm/slot-58bfedb5.js.map +1 -0
  523. package/dist/hydrate/index.d.ts +10 -4
  524. package/dist/hydrate/index.js +3778 -1946
  525. package/dist/hydrate/index.mjs +3778 -1946
  526. package/dist/types/_storybook/foundation/helper/index.d.ts +1 -3
  527. package/dist/types/components/radio/bq-radio.d.ts +0 -5
  528. package/dist/types/index.d.ts +1 -1
  529. package/dist/types/shared/utils/assetsPath.d.ts +1 -10
  530. package/dist/types/shared/utils/cssVariables.d.ts +1 -1
  531. package/dist/types/stencil-public-runtime.d.ts +4 -0
  532. package/package.json +4 -4
  533. package/dist/beeq/p-026222c6.entry.js +0 -309
  534. package/dist/beeq/p-026222c6.entry.js.map +0 -1
  535. package/dist/beeq/p-04d98ed3.entry.js +0 -257
  536. package/dist/beeq/p-04d98ed3.entry.js.map +0 -1
  537. package/dist/beeq/p-05685544.entry.js +0 -121
  538. package/dist/beeq/p-05685544.entry.js.map +0 -1
  539. package/dist/beeq/p-0ab0b58d.js.map +0 -1
  540. package/dist/beeq/p-0c42c08a.js.map +0 -1
  541. package/dist/beeq/p-11eaeb5d.entry.js.map +0 -1
  542. package/dist/beeq/p-12dbc6ac.entry.js +0 -87
  543. package/dist/beeq/p-19df76ba.entry.js +0 -220
  544. package/dist/beeq/p-2ef721e1.entry.js.map +0 -1
  545. package/dist/beeq/p-37466506.entry.js +0 -103
  546. package/dist/beeq/p-377c70d1.entry.js +0 -173
  547. package/dist/beeq/p-377c70d1.entry.js.map +0 -1
  548. package/dist/beeq/p-38d4bd8a.js.map +0 -1
  549. package/dist/beeq/p-3dd0e436.entry.js +0 -130
  550. package/dist/beeq/p-3dd0e436.entry.js.map +0 -1
  551. package/dist/beeq/p-41033fe6.entry.js +0 -84
  552. package/dist/beeq/p-43e4fcdb.entry.js +0 -173
  553. package/dist/beeq/p-43e4fcdb.entry.js.map +0 -1
  554. package/dist/beeq/p-4a235cd2.entry.js +0 -258
  555. package/dist/beeq/p-4a235cd2.entry.js.map +0 -1
  556. package/dist/beeq/p-4eccc020.entry.js +0 -203
  557. package/dist/beeq/p-4eccc020.entry.js.map +0 -1
  558. package/dist/beeq/p-4fc098bb.entry.js +0 -90
  559. package/dist/beeq/p-5eab4f55.entry.js +0 -117
  560. package/dist/beeq/p-600e7c38.entry.js +0 -102
  561. package/dist/beeq/p-7089c66a.entry.js +0 -156
  562. package/dist/beeq/p-734853f9.entry.js +0 -259
  563. package/dist/beeq/p-7774eec3.entry.js +0 -135
  564. package/dist/beeq/p-7774eec3.entry.js.map +0 -1
  565. package/dist/beeq/p-7b9ff03f.entry.js +0 -437
  566. package/dist/beeq/p-7b9ff03f.entry.js.map +0 -1
  567. package/dist/beeq/p-900d4e78.entry.js +0 -102
  568. package/dist/beeq/p-911e07b7.entry.js +0 -513
  569. package/dist/beeq/p-911e07b7.entry.js.map +0 -1
  570. package/dist/beeq/p-924ebf7d.entry.js +0 -394
  571. package/dist/beeq/p-924ebf7d.entry.js.map +0 -1
  572. package/dist/beeq/p-9aa18e2f.entry.js +0 -303
  573. package/dist/beeq/p-9aa18e2f.entry.js.map +0 -1
  574. package/dist/beeq/p-ae94b9f8.entry.js +0 -144
  575. package/dist/beeq/p-b38e8c5a.entry.js +0 -208
  576. package/dist/beeq/p-b38e8c5a.entry.js.map +0 -1
  577. package/dist/beeq/p-b4278945.entry.js +0 -195
  578. package/dist/beeq/p-b4278945.entry.js.map +0 -1
  579. package/dist/beeq/p-b48545b6.entry.js +0 -248
  580. package/dist/beeq/p-b48545b6.entry.js.map +0 -1
  581. package/dist/beeq/p-c907de72.entry.js +0 -145
  582. package/dist/beeq/p-c907de72.entry.js.map +0 -1
  583. package/dist/beeq/p-ceb3bb9a.entry.js +0 -187
  584. package/dist/beeq/p-d3008f60.entry.js +0 -279
  585. package/dist/beeq/p-d3008f60.entry.js.map +0 -1
  586. package/dist/beeq/p-e5afdf8c.js +0 -87
  587. package/dist/beeq/p-e5afdf8c.js.map +0 -1
  588. package/dist/beeq/p-e7d75b87.entry.js +0 -144
  589. package/dist/beeq/p-f00abfb8.entry.js +0 -145
  590. package/dist/beeq/p-f00abfb8.entry.js.map +0 -1
  591. package/dist/beeq/p-f8663855.entry.js +0 -329
  592. package/dist/beeq/p-f8663855.entry.js.map +0 -1
  593. package/dist/cjs/assetsPath-7ead23b7.js.map +0 -1
  594. package/dist/cjs/cssVariables-7139f0c6.js.map +0 -1
  595. package/dist/cjs/debounce-f94a239b.js.map +0 -1
  596. package/dist/cjs/index-1d3aac65.js.map +0 -1
  597. package/dist/cjs/index-e4c116b6.js.map +0 -1
  598. package/dist/cjs/slot-dd6f7db9.js.map +0 -1
  599. package/dist/esm/assetsPath-c02b0e16.js.map +0 -1
  600. package/dist/esm/cssVariables-5ffccc29.js.map +0 -1
  601. package/dist/esm/debounce-c82e3da1.js.map +0 -1
  602. package/dist/esm/index-136429a6.js.map +0 -1
  603. package/dist/esm/index-f69556fe.js.map +0 -1
  604. package/dist/esm/slot-179d109d.js.map +0 -1
  605. /package/dist/beeq/{p-513bab02.js.map → p-0fce4de9.js.map} +0 -0
@@ -15,26 +15,6 @@ const BqDropdown = /*@__PURE__*/ proxyCustomElement(class BqDropdown extends HTM
15
15
  this.__registerHost();
16
16
  this.__attachShadow();
17
17
  this.bqOpen = createEvent(this, "bqOpen", 7);
18
- // Own Properties
19
- // ====================
20
- this.dropdownPanelId = `bq-dropdown-panel-${++id}`;
21
- // Public methods API
22
- // These methods are exposed on the host element.
23
- // Always use two lines.
24
- // Public Methods must be async.
25
- // Requires JSDocs for public API documentation.
26
- // ===============================================
27
- // Local methods
28
- // Internal business logic.
29
- // These methods cannot be called from the host element.
30
- // =======================================================
31
- this.togglePanel = () => {
32
- var _a;
33
- // Don't toggle the panel if the component is disabled or the trigger element is disabled
34
- if (this.disabled || ((_a = this.triggerElem) === null || _a === void 0 ? void 0 : _a.hasAttribute('disabled')))
35
- return;
36
- this.open = !this.open;
37
- };
38
18
  this.disabled = false;
39
19
  this.distance = 4;
40
20
  this.keepOpenOnSelect = false;
@@ -45,18 +25,31 @@ const BqDropdown = /*@__PURE__*/ proxyCustomElement(class BqDropdown extends HTM
45
25
  this.skidding = 0;
46
26
  this.strategy = 'fixed';
47
27
  }
28
+ // Own Properties
29
+ // ====================
30
+ dropdownPanelId = `bq-dropdown-panel-${++id}`;
31
+ triggerElem;
32
+ get el() { return this; }
48
33
  // Prop lifecycle events
49
34
  // =======================
50
35
  onOpenChange() {
51
36
  this.bqOpen.emit({ open: this.open });
52
37
  }
53
38
  handleDisabledChange() {
54
- var _a, _b;
55
39
  if (!this.triggerElem)
56
40
  return;
57
41
  // set 'disabled' attribute based on 'this.disabled' value, ensuring consistent state handling
58
- this.disabled ? (_a = this.triggerElem) === null || _a === void 0 ? void 0 : _a.setAttribute('disabled', 'true') : (_b = this.triggerElem) === null || _b === void 0 ? void 0 : _b.removeAttribute('disabled');
42
+ if (!this.disabled) {
43
+ this.triggerElem?.removeAttribute('disabled');
44
+ return;
45
+ }
46
+ this.triggerElem?.setAttribute('disabled', 'true');
59
47
  }
48
+ // Events section
49
+ // Requires JSDocs for public API documentation
50
+ // ==============================================
51
+ /** Callback handler to be called when the dropdown panel is opened or closed. */
52
+ bqOpen;
60
53
  // Component lifecycle events
61
54
  // Ordered by their natural call order
62
55
  // =====================================
@@ -94,6 +87,22 @@ const BqDropdown = /*@__PURE__*/ proxyCustomElement(class BqDropdown extends HTM
94
87
  return;
95
88
  this.open = false;
96
89
  }
90
+ // Public methods API
91
+ // These methods are exposed on the host element.
92
+ // Always use two lines.
93
+ // Public Methods must be async.
94
+ // Requires JSDocs for public API documentation.
95
+ // ===============================================
96
+ // Local methods
97
+ // Internal business logic.
98
+ // These methods cannot be called from the host element.
99
+ // =======================================================
100
+ togglePanel = () => {
101
+ // Don't toggle the panel if the component is disabled or the trigger element is disabled
102
+ if (this.disabled || this.triggerElem?.hasAttribute('disabled'))
103
+ return;
104
+ this.open = !this.open;
105
+ };
97
106
  // render() function
98
107
  // Always the last one in the class.
99
108
  // ===================================
@@ -101,9 +110,8 @@ const BqDropdown = /*@__PURE__*/ proxyCustomElement(class BqDropdown extends HTM
101
110
  const style = {
102
111
  ...(this.panelHeight && { '--bq-panel--height': this.panelHeight }),
103
112
  };
104
- return (h("div", { key: '952b1eb133f00d22fd504a0975b2d23671e9898e', class: "bq-dropdown", part: "base" }, h("div", { key: 'b59b3aa571d0a463191687144def31d10302de59', class: "bq-dropdown__trigger block", "aria-controls": this.dropdownPanelId, "aria-haspopup": "true", onClick: this.togglePanel, part: "trigger" }, h("slot", { key: '18cde485c4085aaea0cdbd93861135156a48d01c', name: "trigger" })), h("bq-panel", { key: '136b936d68aa417ae6d69108f192f364dfa28687', style: style, id: this.dropdownPanelId, class: "bq-dropdown__panel", distance: this.distance, placement: this.placement, open: this.open, sameWidth: this.sameWidth, skidding: this.skidding, strategy: this.strategy, role: "group", part: "dropdown", exportparts: "panel" }, h("slot", { key: '92b21fb933471e42d1be39bc2e0bd6cc3b642b2b' }))));
113
+ return (h("div", { key: '2ac61eda06d45f2b8854b267644853bf4a51ef01', class: "bq-dropdown", part: "base" }, h("div", { key: '59edd47afa2965bb12cabcb06fdaf9de0b9b4b5f', class: "bq-dropdown__trigger block", "aria-controls": this.dropdownPanelId, "aria-haspopup": "true", onClick: this.togglePanel, part: "trigger" }, h("slot", { key: '6a17b3bf90a78c5098ebe90df4fe50d43b056e91', name: "trigger" })), h("bq-panel", { key: 'd90f69501154639e9aebc37dbecf2ddaf8b3dd7f', style: style, id: this.dropdownPanelId, class: "bq-dropdown__panel", distance: this.distance, placement: this.placement, open: this.open, sameWidth: this.sameWidth, skidding: this.skidding, strategy: this.strategy, role: "group", part: "dropdown", exportparts: "panel" }, h("slot", { key: '7f8f659817324022d6dc31726094a1c82e6cab91' }))));
105
114
  }
106
- get el() { return this; }
107
115
  static get watchers() { return {
108
116
  "open": ["onOpenChange"],
109
117
  "disabled": ["handleDisabledChange"]
@@ -1 +1 @@
1
- {"file":"bq-dropdown2.js","mappings":";;;;;;;AAAA,MAAM,aAAa,GAAG,whlBAAwhlB,CAAC;AAC/ilB,yBAAe,aAAa;;ACG5B,IAAI,EAAE,GAAG,CAAC,CAAC;MAaE,UAAU;;;;;;;;QAIb,oBAAe,GAAG,qBAAqB,EAAE,EAAE,EAAE,CAAC;;;;;;;;;;;QA2H9C,gBAAW,GAAG;;;YAEpB,IAAI,IAAI,CAAC,QAAQ,KAAI,MAAA,IAAI,CAAC,WAAW,0CAAE,YAAY,CAAC,UAAU,CAAC,CAAA;gBAAE,OAAO;YAExE,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;SACxB,CAAC;wBAhH4C,KAAK;wBAGN,CAAC;gCAGQ,KAAK;yBAGV,cAAc;oBAGN,KAAK;;yBAMf,KAAK;wBAGP,CAAC;wBAGa,OAAO;;;;IAMlE,YAAY;QACV,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;KACvC;IAGD,oBAAoB;;QAClB,IAAI,CAAC,IAAI,CAAC,WAAW;YAAE,OAAO;;QAG9B,IAAI,CAAC,QAAQ,GAAG,MAAA,IAAI,CAAC,WAAW,0CAAE,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,GAAG,MAAA,IAAI,CAAC,WAAW,0CAAE,eAAe,CAAC,UAAU,CAAC,CAAC;KACpH;;;;IAaD,gBAAgB;QACd,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;QAC7D,IAAI,CAAC,oBAAoB,EAAE,CAAC;KAC7B;;;;;;IASD,cA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,IAAI,EACf,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,UAAU,EACf,WAAW,EAAC,OAAO,IAEnB,8DAAQ,CACC,CACP,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../../packages/beeq/src/components/dropdown/scss/bq-dropdown.scss?tag=bq-dropdown&encapsulation=shadow","../../packages/beeq/src/components/dropdown/bq-dropdown.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Dropdown styles */\n/* -------------------------------------------------------------------------- */\n\n:host {\n @apply relative inline-block;\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Prop, Watch } from '@stencil/core';\n\nimport { Placement } from '../../services/interfaces';\n\nlet id = 0;\n\n/**\n * @part base - The component's internal wrapper.\n * @part dropdown - The `<bq-panel>` element used under the hood to display the dropdown panel\n * @part panel - The `<div>` element used to display and style the panel inside the `<bq-panel>` element\n * @part trigger - The `<div>` element that hosts the trigger element\n */\n@Component({\n tag: 'bq-dropdown',\n styleUrl: './scss/bq-dropdown.scss',\n shadow: true,\n})\nexport class BqDropdown {\n // Own Properties\n // ====================\n\n private dropdownPanelId = `bq-dropdown-panel-${++id}`;\n private triggerElem: HTMLElement;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqDropdownElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** If true, the dropdown panel will be visible and won't be shown. */\n @Prop({ reflect: true }) disabled?: boolean = false;\n\n /** Represents the distance (gutter or margin) between the panel and the trigger element. */\n @Prop({ reflect: true }) distance?: number = 4;\n\n /** If true, the panel will remain open after a selection is made. */\n @Prop({ reflect: true }) keepOpenOnSelect?: boolean = false;\n\n /** Position of the panel */\n @Prop({ reflect: true }) placement?: Placement = 'bottom-start';\n\n /** If true, the panel will be visible. */\n @Prop({ reflect: true, mutable: true }) open?: boolean = false;\n\n /** When set, it will override the height of the dropdown panel */\n @Prop({ reflect: true }) panelHeight?: string;\n\n /** Whether the panel should have the same width as the trigger element */\n @Prop({ reflect: true }) sameWidth?: boolean = false;\n\n /** Represents the skidding between the panel and the trigger element. */\n @Prop({ reflect: true }) skidding?: number = 0;\n\n /** Defines the strategy to position the panel */\n @Prop({ reflect: true }) strategy?: 'fixed' | 'absolute' = 'fixed';\n\n // Prop lifecycle events\n // =======================\n\n @Watch('open')\n onOpenChange() {\n this.bqOpen.emit({ open: this.open });\n }\n\n @Watch('disabled')\n handleDisabledChange() {\n if (!this.triggerElem) return;\n\n // set 'disabled' attribute based on 'this.disabled' value, ensuring consistent state handling\n this.disabled ? this.triggerElem?.setAttribute('disabled', 'true') : this.triggerElem?.removeAttribute('disabled');\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler to be called when the dropdown panel is opened or closed. */\n @Event() bqOpen: EventEmitter<{ open: boolean }>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentDidLoad() {\n this.triggerElem = this.el.querySelector('[slot=\"trigger\"]');\n this.handleDisabledChange();\n }\n\n // Listeners\n // ==============\n\n /** Listens for the 'click' event on the document object\n * and closes the dropdown panel if the click is outside the component.\n */\n @Listen('click', { target: 'document', passive: true })\n onClickOutside(event: MouseEvent) {\n if (!this.open) return;\n\n // Close when clicking outside of the close element\n const path = event.composedPath();\n if (!path.includes(this.el)) {\n this.open = false;\n }\n }\n\n /**\n * Listens for the 'keyup' event on the window object\n * and closes the dropdown panel if the 'Escape' key or 'Tab' key outside the component is pressed.\n */\n @Listen('keyup', { target: 'window', passive: true })\n onEscape(event: KeyboardEvent) {\n if (!this.open) return;\n\n if (event.key === 'Escape' || (event.key === 'Tab' && !event.composedPath().includes(this.el))) {\n this.open = false;\n }\n }\n\n @Listen('bqSelect', { passive: true })\n onItemSelect() {\n if (this.keepOpenOnSelect) return;\n\n this.open = false;\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 // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private togglePanel = (): void => {\n // Don't toggle the panel if the component is disabled or the trigger element is disabled\n if (this.disabled || this.triggerElem?.hasAttribute('disabled')) return;\n\n this.open = !this.open;\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const style = {\n ...(this.panelHeight && { '--bq-panel--height': this.panelHeight }),\n };\n\n return (\n <div class=\"bq-dropdown\" part=\"base\">\n {/* TRIGGER CONTAINER */}\n <div\n class=\"bq-dropdown__trigger block\"\n aria-controls={this.dropdownPanelId}\n aria-haspopup=\"true\"\n onClick={this.togglePanel}\n part=\"trigger\"\n >\n <slot name=\"trigger\" />\n </div>\n {/* PANEL */}\n <bq-panel\n style={style}\n id={this.dropdownPanelId}\n class=\"bq-dropdown__panel\"\n distance={this.distance}\n placement={this.placement}\n open={this.open}\n sameWidth={this.sameWidth}\n skidding={this.skidding}\n strategy={this.strategy}\n role=\"group\"\n part=\"dropdown\"\n exportparts=\"panel\"\n >\n <slot />\n </bq-panel>\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"bq-dropdown2.js","mappings":";;;;;;;AAAA,MAAM,aAAa,GAAG,whlBAAwhlB,CAAC;AAC/ilB,yBAAe,aAAa;;ACG5B,IAAI,EAAE,GAAG,CAAC,CAAC;MAaE,UAAU;;;;;;wBAoByB,KAAK;wBAGN,CAAC;gCAGQ,KAAK;yBAGV,cAAc;oBAGN,KAAK;;yBAMf,KAAK;wBAGP,CAAC;wBAGa,OAAO;;;;IAxC1D,eAAe,GAAG,qBAAqB,EAAE,EAAE,EAAE,CAAC;IAC9C,WAAW,CAAc;;;;IA6CjC,YAAY;QACV,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAA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I,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,UAAU,CAAC;YAAE,OAAO;QAExE,IAAI,CAAC,IAAI,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC;KACxB,CAAC;;;;IAMF,MAAM;QACJ,MAAM,KAAK,GAAG;YACZ,IAAI,IAAI,CAAC,WAAW,IAAI,EAAE,oBAAoB,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;SACpE,CAAC;QAEF,QACE,4DAAK,KAAK,EAAC,aAAa,EAAC,IAAI,EAAC,MAAM,IAElC,4DACE,KAAK,EAAC,4BAA4B,mBACnB,IAAI,CAAC,eAAe,mBACrB,MAAM,EACpB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,IAAI,EAAC,SAAS,IAEd,6DAAM,IAAI,EAAC,SAAS,GAAG,CACnB,EAEN,iEACE,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,IAAI,CAAC,eAAe,EACxB,KAAK,EAAC,oBAAoB,EAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,OAAO,EACZ,IAAI,EAAC,UAAU,EACf,WAAW,EAAC,OAAO,IAEnB,8DAAQ,CACC,CACP,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../../packages/beeq/src/components/dropdown/scss/bq-dropdown.scss?tag=bq-dropdown&encapsulation=shadow","../../packages/beeq/src/components/dropdown/bq-dropdown.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Dropdown styles */\n/* -------------------------------------------------------------------------- */\n\n:host {\n @apply relative inline-block;\n}\n","import { Component, Element, Event, EventEmitter, h, Listen, Prop, Watch } from '@stencil/core';\n\nimport { Placement } from '../../services/interfaces';\n\nlet id = 0;\n\n/**\n * @part base - The component's internal wrapper.\n * @part dropdown - The `<bq-panel>` element used under the hood to display the dropdown panel\n * @part panel - The `<div>` element used to display and style the panel inside the `<bq-panel>` element\n * @part trigger - The `<div>` element that hosts the trigger element\n */\n@Component({\n tag: 'bq-dropdown',\n styleUrl: './scss/bq-dropdown.scss',\n shadow: true,\n})\nexport class BqDropdown {\n // Own Properties\n // ====================\n\n private dropdownPanelId = `bq-dropdown-panel-${++id}`;\n private triggerElem: HTMLElement;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqDropdownElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** If true, the dropdown panel will be visible and won't be shown. */\n @Prop({ reflect: true }) disabled?: boolean = false;\n\n /** Represents the distance (gutter or margin) between the panel and the trigger element. */\n @Prop({ reflect: true }) distance?: number = 4;\n\n /** If true, the panel will remain open after a selection is made. */\n @Prop({ reflect: true }) keepOpenOnSelect?: boolean = false;\n\n /** Position of the panel */\n @Prop({ reflect: true }) placement?: Placement = 'bottom-start';\n\n /** If true, the panel will be visible. */\n @Prop({ reflect: true, mutable: true }) open?: boolean = false;\n\n /** When set, it will override the height of the dropdown panel */\n @Prop({ reflect: true }) panelHeight?: string;\n\n /** Whether the panel should have the same width as the trigger element */\n @Prop({ reflect: true }) sameWidth?: boolean = false;\n\n /** Represents the skidding between the panel and the trigger element. */\n @Prop({ reflect: true }) skidding?: number = 0;\n\n /** Defines the strategy to position the panel */\n @Prop({ reflect: true }) strategy?: 'fixed' | 'absolute' = 'fixed';\n\n // Prop lifecycle events\n // =======================\n\n @Watch('open')\n onOpenChange() {\n this.bqOpen.emit({ open: this.open });\n }\n\n @Watch('disabled')\n handleDisabledChange() {\n if (!this.triggerElem) return;\n\n // set 'disabled' attribute based on 'this.disabled' value, ensuring consistent state handling\n if (!this.disabled) {\n this.triggerElem?.removeAttribute('disabled');\n return;\n }\n this.triggerElem?.setAttribute('disabled', 'true');\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler to be called when the dropdown panel is opened or closed. */\n @Event() bqOpen: EventEmitter<{ open: boolean }>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentDidLoad() {\n this.triggerElem = this.el.querySelector('[slot=\"trigger\"]');\n this.handleDisabledChange();\n }\n\n // Listeners\n // ==============\n\n /** Listens for the 'click' event on the document object\n * and closes the dropdown panel if the click is outside the component.\n */\n @Listen('click', { target: 'document', passive: true })\n onClickOutside(event: MouseEvent) {\n if (!this.open) return;\n\n // Close when clicking outside of the close element\n const path = event.composedPath();\n if (!path.includes(this.el)) {\n this.open = false;\n }\n }\n\n /**\n * Listens for the 'keyup' event on the window object\n * and closes the dropdown panel if the 'Escape' key or 'Tab' key outside the component is pressed.\n */\n @Listen('keyup', { target: 'window', passive: true })\n onEscape(event: KeyboardEvent) {\n if (!this.open) return;\n\n if (event.key === 'Escape' || (event.key === 'Tab' && !event.composedPath().includes(this.el))) {\n this.open = false;\n }\n }\n\n @Listen('bqSelect', { passive: true })\n onItemSelect() {\n if (this.keepOpenOnSelect) return;\n\n this.open = false;\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 // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private togglePanel = (): void => {\n // Don't toggle the panel if the component is disabled or the trigger element is disabled\n if (this.disabled || this.triggerElem?.hasAttribute('disabled')) return;\n\n this.open = !this.open;\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const style = {\n ...(this.panelHeight && { '--bq-panel--height': this.panelHeight }),\n };\n\n return (\n <div class=\"bq-dropdown\" part=\"base\">\n {/* TRIGGER CONTAINER */}\n <div\n class=\"bq-dropdown__trigger block\"\n aria-controls={this.dropdownPanelId}\n aria-haspopup=\"true\"\n onClick={this.togglePanel}\n part=\"trigger\"\n >\n <slot name=\"trigger\" />\n </div>\n {/* PANEL */}\n <bq-panel\n style={style}\n id={this.dropdownPanelId}\n class=\"bq-dropdown__panel\"\n distance={this.distance}\n placement={this.placement}\n open={this.open}\n sameWidth={this.sameWidth}\n skidding={this.skidding}\n strategy={this.strategy}\n role=\"group\"\n part=\"dropdown\"\n exportparts=\"panel\"\n >\n <slot />\n </bq-panel>\n </div>\n );\n }\n}\n"],"version":3}
@@ -23,28 +23,15 @@ const BqEmptyState$1 = /*@__PURE__*/ proxyCustomElement(class BqEmptyState exten
23
23
  super();
24
24
  this.__registerHost();
25
25
  this.__attachShadow();
26
- // Listeners
27
- // ==============
28
- // Public methods API
29
- // These methods are exposed on the host element.
30
- // Always use two lines.
31
- // Public Methods must be async.
32
- // Requires JSDocs for public API documentation.
33
- // ===============================================
34
- // Local methods
35
- // Internal business logic.
36
- // These methods cannot be called from the host element.
37
- // =======================================================
38
- this.handleContentSlotChange = () => {
39
- this.hasBody = hasSlotContent(this.bodyElem, 'body');
40
- };
41
- this.handleFooterSlotChange = () => {
42
- this.hasFooter = hasSlotContent(this.footerElem, 'footer');
43
- };
44
26
  this.hasBody = false;
45
27
  this.hasFooter = false;
46
28
  this.size = 'medium';
47
29
  }
30
+ // Own Properties
31
+ // ====================
32
+ bodyElem;
33
+ footerElem;
34
+ get el() { return this; }
48
35
  // Prop lifecycle events
49
36
  // =======================
50
37
  checkPropValues() {
@@ -59,6 +46,24 @@ const BqEmptyState$1 = /*@__PURE__*/ proxyCustomElement(class BqEmptyState exten
59
46
  componentWillLoad() {
60
47
  this.checkPropValues();
61
48
  }
49
+ // Listeners
50
+ // ==============
51
+ // Public methods API
52
+ // These methods are exposed on the host element.
53
+ // Always use two lines.
54
+ // Public Methods must be async.
55
+ // Requires JSDocs for public API documentation.
56
+ // ===============================================
57
+ // Local methods
58
+ // Internal business logic.
59
+ // These methods cannot be called from the host element.
60
+ // =======================================================
61
+ handleContentSlotChange = () => {
62
+ this.hasBody = hasSlotContent(this.bodyElem, 'body');
63
+ };
64
+ handleFooterSlotChange = () => {
65
+ this.hasFooter = hasSlotContent(this.footerElem, 'footer');
66
+ };
62
67
  get iconSize() {
63
68
  return SIZE_TO_VALUE_MAP[this.size] || SIZE_TO_VALUE_MAP.medium;
64
69
  }
@@ -88,7 +93,6 @@ const BqEmptyState$1 = /*@__PURE__*/ proxyCustomElement(class BqEmptyState exten
88
93
  'm-be-xl': this.size === 'large' && this.hasFooter,
89
94
  }, ref: (div) => (this.bodyElem = div), part: "body" }, h("slot", { key: '42a967e534f2806881bc1c27baad90f7d8174693', name: "body", onSlotchange: this.handleContentSlotChange })), h("div", { key: '4196f39c435a23d92494af48b7a7724b7354f7a2', class: { 'flex items-start gap-xs': true }, ref: (div) => (this.footerElem = div), part: "footer" }, h("slot", { key: '93586a303fc4c43c06d32755a506c9fce16c98a4', name: "footer", onSlotchange: this.handleFooterSlotChange }))));
90
95
  }
91
- get el() { return this; }
92
96
  static get watchers() { return {
93
97
  "size": ["checkPropValues"]
94
98
  }; }
@@ -1 +1 @@
1
- {"file":"bq-empty-state.js","mappings":";;;;;;;;;;AAAO,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAU,CAAC;AAG/D,MAAM,iBAAiB,GAAoC;IAChE,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,KAAK,EAAE,GAAG;CACX;;ACPD,MAAM,eAAe,GAAG,qqnBAAqqnB,CAAC;AAC9rnB,2BAAe,eAAe;;MCkBjBA,cAAY;;;;;;;;;;;;;;;;;QA4Df,4BAAuB,GAAG;YAChC,IAAI,CAAC,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;SACtD,CAAC;QAEM,2BAAsB,GAAG;YAC/B,IAAI,CAAC,SAAS,GAAG,cAAc,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAA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AAI,EAAC,OAAO,IAEZ,8DAAQ,CACJ,EACN,4DACE,KAAK,EAAE;gBACL,6BAA6B,EAAE,IAAI;gBACnC,QAAQ,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBAC/B,QAAQ,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ;gBAChC,QAAQ,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO;gBAC/B,QAAQ,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,SAAS;gBACjD,QAAQ,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,SAAS;gBAClD,SAAS,EAAE,IAAI,CAAC,IAAI,KAAK,OAAO,IAAI,IAAI,CAAC,SAAS;aACnD,EACD,GAAG,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,QAAQ,GAAG,GAAG,CAAC,EACnC,IAAI,EAAC,MAAM,IAEX,6DAAM,IAAI,EAAC,MAAM,EAAC,YAAY,EAAE,IAAI,CAAC,uBAAuB,GAAI,CAC5D,EACN,4DAAK,KAAK,EAAE,EAAE,yBAAyB,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,UAAU,GAAG,GAAG,CAAC,EAAE,IAAI,EAAC,QAAQ,IACnG,6DAAM,IAAI,EAAC,QAAQ,EAAC,YAAY,EAAE,IAAI,CAAC,sBAAsB,GAAI,CAC7D,CACF,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["BqEmptyState"],"sources":["../../packages/beeq/src/components/empty-state/bq-empty-state.types.ts","../../packages/beeq/src/components/empty-state/scss/bq-empty-state.scss?tag=bq-empty-state&encapsulation=shadow","../../packages/beeq/src/components/empty-state/bq-empty-state.tsx"],"sourcesContent":["export const EMPTY_STATE_SIZE = ['small', 'medium', 'large'] as const;\nexport type TEmptyStateSize = (typeof EMPTY_STATE_SIZE)[number];\n\nexport const SIZE_TO_VALUE_MAP: Record<TEmptyStateSize, number> = {\n small: 40,\n medium: 80,\n large: 180,\n};\n","/* -------------------------------------------------------------------------- */\n/* Empty state styles */\n/* -------------------------------------------------------------------------- */\n\n:host {\n @apply relative inline-block;\n}\n","import { Component, Element, h, Prop, State, Watch } from '@stencil/core';\n\nimport { EMPTY_STATE_SIZE, SIZE_TO_VALUE_MAP, TEmptyStateSize } from './bq-empty-state.types';\nimport { hasSlotContent, validatePropValue } from '../../shared/utils';\n\n/**\n * @part body - The container `<div>` that wraps the alert description content\n * @part footer - The container `<div>` that wraps the alert footer content\n * @part icon - The `<bq-icon>` element used to render a predefined icon size based on the empty state size (small, medium, large)\n * @part thumbnail - The container `<div>` that wraps the thumbnail element\n * @part title - The container `<div>` that wraps the empty state title content\n * @part wrapper - The wrapper container `<div>` of the element inside the shadow DOM\n */\n\n@Component({\n tag: 'bq-empty-state',\n styleUrl: './scss/bq-empty-state.scss',\n shadow: true,\n})\nexport class BqEmptyState {\n // Own Properties\n // ====================\n\n private bodyElem: HTMLDivElement;\n private footerElem: HTMLDivElement;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqEmptyStateElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private hasBody = false;\n @State() private hasFooter = false;\n\n // Public Property API\n // ========================\n\n /** The size of the empty state component */\n @Prop({ reflect: true, mutable: true }) size: TEmptyStateSize = 'medium';\n\n // Prop lifecycle events\n // =======================\n\n @Watch('size')\n checkPropValues() {\n validatePropValue(EMPTY_STATE_SIZE, 'medium', this.el, 'size');\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.checkPropValues();\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 // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleContentSlotChange = () => {\n this.hasBody = hasSlotContent(this.bodyElem, 'body');\n };\n\n private handleFooterSlotChange = () => {\n this.hasFooter = hasSlotContent(this.footerElem, 'footer');\n };\n\n private get iconSize(): number {\n return SIZE_TO_VALUE_MAP[this.size] || SIZE_TO_VALUE_MAP.medium;\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div class=\"inline-flex flex-col items-center\" part=\"wrapper\">\n <div\n class={{\n 'm-be-m': this.size === 'small',\n 'm-be-xl': this.size === 'medium',\n 'm-be-xxl': this.size === 'large',\n }}\n part=\"thumbnail\"\n >\n <slot name=\"thumbnail\">\n <bq-icon size={this.iconSize} name=\"database\" part=\"icon\" exportparts=\"base,svg\" />\n </slot>\n </div>\n <div\n class={{\n 'title-font font-bold leading-regular text-text-primary': true,\n 'text-m': this.size === 'small',\n 'text-l': this.size === 'medium',\n 'text-xxl2': this.size === 'large',\n 'm-be-xs': this.size === 'small' && this.hasBody,\n 'm-be-m': this.size === 'medium' && this.hasBody,\n 'm-be-l': this.size === 'large' && this.hasBody,\n }}\n part=\"title\"\n >\n <slot />\n </div>\n <div\n class={{\n 'font-normal leading-regular': true,\n 'text-s': this.size === 'small',\n 'text-m': this.size === 'medium',\n 'text-l': this.size === 'large',\n 'm-be-m': this.size === 'small' && this.hasFooter,\n 'm-be-l': this.size === 'medium' && this.hasFooter,\n 'm-be-xl': this.size === 'large' && this.hasFooter,\n }}\n ref={(div) => (this.bodyElem = div)}\n part=\"body\"\n >\n <slot name=\"body\" onSlotchange={this.handleContentSlotChange} />\n </div>\n <div class={{ 'flex items-start gap-xs': true }} ref={(div) => (this.footerElem = div)} part=\"footer\">\n <slot name=\"footer\" onSlotchange={this.handleFooterSlotChange} />\n </div>\n </div>\n );\n }\n}\n"],"version":3}
1
+ {"file":"bq-empty-state.js","mappings":";;;;;;;;;;AAAO,MAAM,gBAAgB,GAAG,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CA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AI,CAAC,UAAU,GAAG,GAAG,CAAC,EAAE,IAAI,EAAC,QAAQ,IACnG,6DAAM,IAAI,EAAC,QAAQ,EAAC,YAAY,EAAE,IAAI,CAAC,sBAAsB,GAAI,CAC7D,CACF,EACN;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["BqEmptyState"],"sources":["../../packages/beeq/src/components/empty-state/bq-empty-state.types.ts","../../packages/beeq/src/components/empty-state/scss/bq-empty-state.scss?tag=bq-empty-state&encapsulation=shadow","../../packages/beeq/src/components/empty-state/bq-empty-state.tsx"],"sourcesContent":["export const EMPTY_STATE_SIZE = ['small', 'medium', 'large'] as const;\nexport type TEmptyStateSize = (typeof EMPTY_STATE_SIZE)[number];\n\nexport const SIZE_TO_VALUE_MAP: Record<TEmptyStateSize, number> = {\n small: 40,\n medium: 80,\n large: 180,\n};\n","/* -------------------------------------------------------------------------- */\n/* Empty state styles */\n/* -------------------------------------------------------------------------- */\n\n:host {\n @apply relative inline-block;\n}\n","import { Component, Element, h, Prop, State, Watch } from '@stencil/core';\n\nimport { EMPTY_STATE_SIZE, SIZE_TO_VALUE_MAP, TEmptyStateSize } from './bq-empty-state.types';\nimport { hasSlotContent, validatePropValue } from '../../shared/utils';\n\n/**\n * @part body - The container `<div>` that wraps the alert description content\n * @part footer - The container `<div>` that wraps the alert footer content\n * @part icon - The `<bq-icon>` element used to render a predefined icon size based on the empty state size (small, medium, large)\n * @part thumbnail - The container `<div>` that wraps the thumbnail element\n * @part title - The container `<div>` that wraps the empty state title content\n * @part wrapper - The wrapper container `<div>` of the element inside the shadow DOM\n */\n\n@Component({\n tag: 'bq-empty-state',\n styleUrl: './scss/bq-empty-state.scss',\n shadow: true,\n})\nexport class BqEmptyState {\n // Own Properties\n // ====================\n\n private bodyElem: HTMLDivElement;\n private footerElem: HTMLDivElement;\n\n // Reference to host HTML element\n // ===================================\n\n @Element() el!: HTMLBqEmptyStateElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private hasBody = false;\n @State() private hasFooter = false;\n\n // Public Property API\n // ========================\n\n /** The size of the empty state component */\n @Prop({ reflect: true, mutable: true }) size: TEmptyStateSize = 'medium';\n\n // Prop lifecycle events\n // =======================\n\n @Watch('size')\n checkPropValues() {\n validatePropValue(EMPTY_STATE_SIZE, 'medium', this.el, 'size');\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n componentWillLoad() {\n this.checkPropValues();\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 // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleContentSlotChange = () => {\n this.hasBody = hasSlotContent(this.bodyElem, 'body');\n };\n\n private handleFooterSlotChange = () => {\n this.hasFooter = hasSlotContent(this.footerElem, 'footer');\n };\n\n private get iconSize(): number {\n return SIZE_TO_VALUE_MAP[this.size] || SIZE_TO_VALUE_MAP.medium;\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div class=\"inline-flex flex-col items-center\" part=\"wrapper\">\n <div\n class={{\n 'm-be-m': this.size === 'small',\n 'm-be-xl': this.size === 'medium',\n 'm-be-xxl': this.size === 'large',\n }}\n part=\"thumbnail\"\n >\n <slot name=\"thumbnail\">\n <bq-icon size={this.iconSize} name=\"database\" part=\"icon\" exportparts=\"base,svg\" />\n </slot>\n </div>\n <div\n class={{\n 'title-font font-bold leading-regular text-text-primary': true,\n 'text-m': this.size === 'small',\n 'text-l': this.size === 'medium',\n 'text-xxl2': this.size === 'large',\n 'm-be-xs': this.size === 'small' && this.hasBody,\n 'm-be-m': this.size === 'medium' && this.hasBody,\n 'm-be-l': this.size === 'large' && this.hasBody,\n }}\n part=\"title\"\n >\n <slot />\n </div>\n <div\n class={{\n 'font-normal leading-regular': true,\n 'text-s': this.size === 'small',\n 'text-m': this.size === 'medium',\n 'text-l': this.size === 'large',\n 'm-be-m': this.size === 'small' && this.hasFooter,\n 'm-be-l': this.size === 'medium' && this.hasFooter,\n 'm-be-xl': this.size === 'large' && this.hasFooter,\n }}\n ref={(div) => (this.bodyElem = div)}\n part=\"body\"\n >\n <slot name=\"body\" onSlotchange={this.handleContentSlotChange} />\n </div>\n <div class={{ 'flex items-start gap-xs': true }} ref={(div) => (this.footerElem = div)} part=\"footer\">\n <slot name=\"footer\" onSlotchange={this.handleFooterSlotChange} />\n </div>\n </div>\n );\n }\n}\n"],"version":3}
@@ -42,6 +42,8 @@ const getSvgContent = async (url, sanitize) => {
42
42
  return req;
43
43
  };
44
44
  const validateContent = (svgContent) => {
45
+ if (typeof document === 'undefined')
46
+ return '';
45
47
  const svgTag = 'svg';
46
48
  const iconCssClass = 'bq-icon__svg';
47
49
  const div = document.createElement('div');
@@ -88,7 +90,7 @@ const isValid = (elm) => {
88
90
  return true;
89
91
  };
90
92
 
91
- const bqIconCss = "::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{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);font-family:var(--bq-font-family);line-height:var(--bq-font-line-height--regular);min-height:100vh;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}}: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.light,.light,:root,[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-200);--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}.beeq.dark,.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-800);--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}.endava,[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,[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-200);--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-800);--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}.bq-icon__svg,.scale-x-\\[--bq-icon--direction\\],.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}.inline-block{display:inline-block}.scale-x-\\[--bq-icon--direction\\]{--tw-scale-x:var(--bq-icon--direction)}.scale-x-\\[--bq-icon--direction\\],.transform{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))}@-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-icon--color:inherit;--bq-icon--size:24px;display:inline-block}.bq-icon__svg{--tw-scale-x:var(--bq-icon--direction);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))}.static{position:static}.flex{display:flex}.text-\\[color\\:--bq-icon--color\\]{color:var(--bq-icon--color)}.bs-\\[--bq-icon--size\\]{block-size:var(--bq-icon--size)}.is-\\[--bq-icon--size\\]{inline-size:var(--bq-icon--size)}";
93
+ const bqIconCss = ".bq-icon__svg,.scale-x-\\[--bq-icon--direction\\],.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}::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{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);font-family:var(--bq-font-family);line-height:var(--bq-font-line-height--regular);min-height:100vh;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}}: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.light,.light,:root,[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-200);--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}.beeq.dark,.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-800);--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}.endava,[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,[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-200);--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-800);--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}.inline-block{display:inline-block}.scale-x-\\[--bq-icon--direction\\]{--tw-scale-x:var(--bq-icon--direction)}.scale-x-\\[--bq-icon--direction\\],.transform{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))}@-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-icon--color:inherit;--bq-icon--size:24px;display:inline-block}.bq-icon__svg{--tw-scale-x:var(--bq-icon--direction);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))}.static{position:static}.flex{display:flex}.text-\\[color\\:--bq-icon--color\\]{color:var(--bq-icon--color)}.bs-\\[--bq-icon--size\\]{block-size:var(--bq-icon--size)}.is-\\[--bq-icon--size\\]{inline-size:var(--bq-icon--size)}";
92
94
  const BqIconStyle0 = bqIconCss;
93
95
 
94
96
  const BqIcon = /*@__PURE__*/ proxyCustomElement(class BqIcon extends HTMLElement {
@@ -97,41 +99,6 @@ const BqIcon = /*@__PURE__*/ proxyCustomElement(class BqIcon extends HTMLElement
97
99
  this.__registerHost();
98
100
  this.__attachShadow();
99
101
  this.svgLoaded = createEvent(this, "svgLoaded", 7);
100
- // Listeners
101
- // ==============
102
- // Public methods API
103
- // These methods are exposed on the host element.
104
- // Always use two lines.
105
- // Public Methods must be async.
106
- // Requires JSDocs for public API documentation.
107
- // ===============================================
108
- // Local methods
109
- // Internal business logic.
110
- // These methods cannot be called from the host element.
111
- // =======================================================
112
- this.setupIconComponent = () => {
113
- this.loadIcon(this.name);
114
- // !TO BE REMOVED: Delete this once the deprecated `weight` property is removed
115
- if (!isNil(this.weight))
116
- this.handleWeightChange();
117
- };
118
- this.getIconSource = (name) => {
119
- if (!this.name && !this.src)
120
- return;
121
- // Return the src if it is set
122
- if (this.src)
123
- return this.src;
124
- const SVG_EXTENSION = '.svg';
125
- const iconFileName = `${name}${SVG_EXTENSION}`;
126
- return getBasePath(iconFileName);
127
- };
128
- this.loadIcon = (name) => {
129
- const url = this.getIconSource(name);
130
- getSvgContent(url, true).then(() => {
131
- this._svgContent = iconContent.get(url);
132
- this.svgLoaded.emit(this._svgContent);
133
- });
134
- };
135
102
  this._svgContent = undefined;
136
103
  this.label = undefined;
137
104
  this.color = undefined;
@@ -166,6 +133,11 @@ const BqIcon = /*@__PURE__*/ proxyCustomElement(class BqIcon extends HTMLElement
166
133
  const iconName = `${this.name}${weightSuffix}`;
167
134
  this.loadIcon(iconName);
168
135
  }
136
+ // Events section
137
+ // Requires JSDocs for public API documentation
138
+ // ==============================================
139
+ /** Callback handler to be called when the SVG has loaded */
140
+ svgLoaded;
169
141
  // Component lifecycle events
170
142
  // Ordered by their natural call order
171
143
  // =====================================
@@ -175,16 +147,50 @@ const BqIcon = /*@__PURE__*/ proxyCustomElement(class BqIcon extends HTMLElement
175
147
  componentWillLoad() {
176
148
  this.setupIconComponent();
177
149
  }
150
+ // Listeners
151
+ // ==============
152
+ // Public methods API
153
+ // These methods are exposed on the host element.
154
+ // Always use two lines.
155
+ // Public Methods must be async.
156
+ // Requires JSDocs for public API documentation.
157
+ // ===============================================
158
+ // Local methods
159
+ // Internal business logic.
160
+ // These methods cannot be called from the host element.
161
+ // =======================================================
162
+ setupIconComponent = () => {
163
+ this.loadIcon(this.name);
164
+ // !TO BE REMOVED: Delete this once the deprecated `weight` property is removed
165
+ if (!isNil(this.weight))
166
+ this.handleWeightChange();
167
+ };
168
+ getIconSource = (name) => {
169
+ if (!this.name && !this.src)
170
+ return;
171
+ // Return the src if it is set
172
+ if (this.src)
173
+ return this.src;
174
+ const SVG_EXTENSION = '.svg';
175
+ const iconFileName = `${name}${SVG_EXTENSION}`;
176
+ return getBasePath(iconFileName);
177
+ };
178
+ loadIcon = (name) => {
179
+ const url = this.getIconSource(name);
180
+ getSvgContent(url, true).then(() => {
181
+ this._svgContent = iconContent.get(url);
182
+ this.svgLoaded.emit(this._svgContent);
183
+ });
184
+ };
178
185
  // render() function
179
186
  // Always the last one in the class.
180
187
  // ===================================
181
188
  render() {
182
- var _a;
183
189
  const styles = {
184
190
  ...(this.color && { '--bq-icon--color': getColorCSSVariable(this.color) }),
185
191
  ...(this.size && { '--bq-icon--size': `${this.size}px` }),
186
192
  };
187
- return (h(Host, { key: '69753077792209616891575d12aeeefbd767f29c', style: styles }, h("div", { key: 'b7df52fa6437e598b9a79e686c9b036cd3dbe864', "aria-label": (_a = this.label) !== null && _a !== void 0 ? _a : `${this.name} icon`, class: "flex text-[color:--bq-icon--color] bs-[--bq-icon--size] is-[--bq-icon--size]", innerHTML: this._svgContent, part: "base", role: "img" })));
193
+ return (h(Host, { key: '69753077792209616891575d12aeeefbd767f29c', style: styles }, h("div", { key: 'b7df52fa6437e598b9a79e686c9b036cd3dbe864', "aria-label": this.label ?? `${this.name} icon`, class: "flex text-[color:--bq-icon--color] bs-[--bq-icon--size] is-[--bq-icon--size]", innerHTML: this._svgContent, part: "base", role: "img" })));
188
194
  }
189
195
  static get assetsDirs() { return ["svg"]; }
190
196
  static get watchers() { return {
@@ -1 +1 @@
1
- {"file":"bq-icon2.js","mappings":";;;;;;;;;;AAAA;AAMA,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AK,CAAC,EAAE,CAAC;YAC1E,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;SAC1D,CAAC;QAEF,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,MAAM,IACjB,0EACc,MAAA,IAAI,CAAC,KAAK,mCAAI,GAAG,IAAI,CAAC,IAAI,OAAO,EAC7C,KAAK,EAAC,8EAA8E,EACpF,SAAS,EAAE,IAAI,CAAC,WAAW,EAC3B,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,KAAK,GACV,CACG,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../../packages/beeq/src/components/icon/helper/request.ts","../../packages/beeq/src/components/icon/scss/bq-icon.scss?tag=bq-icon&encapsulation=shadow","../../packages/beeq/src/components/icon/bq-icon.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Icon request helper */\n/* -------------------------------------------------------------------------- */\n\nimport { isNil, isString } from '../../../shared/utils';\n\nconst requests = new Map<string, Promise<unknown>>();\n\nconst fetchSvg = async (url: string, sanitize: boolean): Promise<unknown> => {\n if (typeof fetch === 'undefined' || typeof document === 'undefined') return;\n\n if (requests.has(url)) return requests.get(url);\n\n try {\n const response = await fetch(url);\n\n if (!response.ok) {\n iconContent.set(url, '');\n return;\n }\n\n let svgContent = (await response.text()) || '';\n\n if (svgContent && sanitize !== false) svgContent = validateContent(svgContent);\n\n iconContent.set(url, svgContent);\n } catch (error) {\n console.error(`[BqIcon] Failed to fetch SVG from ${url}:`, error);\n iconContent.set(url, '');\n }\n};\n\nexport const iconContent = new Map<string, string>();\n\nexport const getSvgContent = async (url: string, sanitize: boolean) => {\n let req = requests.get(url);\n\n // NOTE: if the request does not exists we will cache it\n if (isNil(req)) {\n req = fetchSvg(url, sanitize);\n requests.set(url, req);\n }\n return req;\n};\n\nexport const validateContent = (svgContent: string): string => {\n const svgTag = 'svg';\n const iconCssClass = 'bq-icon__svg';\n\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== svgTag) {\n div.removeChild(div.childNodes[i]);\n }\n }\n\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === svgTag) {\n // keep other CSS classes (if there's any) and add the `bq-icon__svg` CSS class\n const othersCssClasses = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', `${othersCssClasses} ${iconCssClass}`.trim());\n // set the shadow DOM part for the SVG element\n svgElm.setAttribute('part', svgTag);\n\n // remove height and width attribute, if for some reason they are still present in the SVG tag\n svgElm.removeAttribute('height');\n svgElm.removeAttribute('width');\n\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm as HTMLElement)) return div.innerHTML;\n }\n\n return '';\n};\n\nexport const isValid = (elm: HTMLElement): boolean => {\n if (elm.nodeType === Node.ELEMENT_NODE) {\n if (elm.nodeName.toLowerCase() === 'script') return false;\n\n for (const attribute of Array.from(elm.attributes)) {\n const value = attribute.value;\n if (isString(value) && value.toLowerCase().startsWith('on')) {\n return false;\n }\n }\n\n for (const childNode of Array.from(elm.children) as HTMLElement[]) {\n if (!isValid(childNode)) return false;\n }\n }\n return true;\n};\n","/* -------------------------------------------------------------------------- */\n/* Icon styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-icon.variables';\n\n:host {\n @apply inline-block;\n}\n\n/**\n * This class is added on packages/beeq/src/components/icon/helper/request.ts\n * See lines 42 and 58 for details.\n */\n.bq-icon__svg {\n @apply scale-x-[--bq-icon--direction];\n}\n","import { Component, Event, EventEmitter, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { TIconWeight } from './bq-icon.types';\nimport { getSvgContent, iconContent } from './helper/request';\nimport { getBasePath, getColorCSSVariable, isNil } from '../../shared/utils';\n\n/**\n * Icons are simplified images that graphically explain the meaning of an object on the screen.\n *\n * @part base - The component's internal wrapper that holds the icon SVG content.\n * @part svg - The `<svg>` tag element inside the component.\n */\n@Component({\n assetsDirs: ['svg'],\n tag: 'bq-icon',\n styleUrl: './scss/bq-icon.scss',\n shadow: true,\n})\nexport class BqIcon {\n // Own Properties\n // ====================\n\n // Reference to host HTML element\n // ===================================\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private _svgContent: string;\n\n // Public Property API\n // ========================\n\n /** Label for the icon, used for accessibility */\n @Prop({ reflect: true }) label?: string;\n\n /** Set the stroke color of the SVG. The value should be a valid value of the palette color */\n @Prop({ reflect: true }) color?: string;\n\n /** Icon name to load. Please check all available icons [here](https://phosphoricons.com/) */\n @Prop({ reflect: true }) name?: string;\n\n /** Set the size of the SVG */\n @Prop({ reflect: true }) size?: string | number = 24;\n\n /** Set the source of the SVG. If the source is set, the name property will be ignored */\n @Prop({ reflect: true }) src?: string;\n\n /** @deprecated It set the icon weight/style */\n @Prop({ reflect: true }) weight?: TIconWeight = undefined;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('color')\n @Watch('name')\n @Watch('size')\n handlePropsChange() {\n this.loadIcon(this.name);\n }\n\n /**\n * !TO BE REMOVED: Delete this `@Watch()` once the deprecated `weight` property is removed\n * We need to maintain retro-compatibility until the next major release\n */\n @Watch('weight')\n handleWeightChange() {\n if (this.name.includes(this.weight)) return;\n\n console.warn(\n `❗️ [bq-icon]: the 'weight' property is deprecated, you should add the weight to the icon name.\\n\n For example, '<bq-icon name=\"bell-fill\"></bq-icon>' instead of '<bq-icon name=\"bell\" weight=\"fill\"></bq-icon>'`,\n );\n // Check if the icon is weighted. An icon is considered weighted if its weight is not 'regular' and ENV_SVG_PATH is not set.\n // Eg: if the weight is 'bold' and ENV_SVG_PATH is not set, isWeightedIcon will be true.\n const REGULAR = 'regular';\n const isWeightedIcon = !isNil(this.weight) && this.weight !== REGULAR;\n // If the icon is weighted, append the weight to the icon name. Otherwise, append nothing.\n // Eg: if isWeightedIcon is true and the weight is 'bold', weightSuffix will be '-bold'.\n const weightSuffix = isWeightedIcon ? `-${this.weight}` : '';\n // Construct the icon name by appending the weight suffix (if any) and the file extension.\n // Eg: if the name is 'my-icon' and weightSuffix is '-bold', iconName will be 'my-icon-bold.svg'.\n const iconName = `${this.name}${weightSuffix}`;\n this.loadIcon(iconName);\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler to be called when the SVG has loaded */\n @Event() svgLoaded: EventEmitter;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n connectedCallback() {\n this.setupIconComponent();\n }\n\n componentWillLoad() {\n this.setupIconComponent();\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 // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private setupIconComponent = () => {\n this.loadIcon(this.name);\n // !TO BE REMOVED: Delete this once the deprecated `weight` property is removed\n if (!isNil(this.weight)) this.handleWeightChange();\n };\n\n private getIconSource = (name: string) => {\n if (!this.name && !this.src) return;\n // Return the src if it is set\n if (this.src) return this.src;\n\n const SVG_EXTENSION = '.svg';\n const iconFileName = `${name}${SVG_EXTENSION}`;\n\n return getBasePath(iconFileName);\n };\n\n private loadIcon = (name: string) => {\n const url = this.getIconSource(name);\n getSvgContent(url, true).then(() => {\n this._svgContent = iconContent.get(url);\n this.svgLoaded.emit(this._svgContent);\n });\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const styles = {\n ...(this.color && { '--bq-icon--color': getColorCSSVariable(this.color) }),\n ...(this.size && { '--bq-icon--size': `${this.size}px` }),\n };\n\n return (\n <Host style={styles}>\n <div\n aria-label={this.label ?? `${this.name} icon`}\n class=\"flex text-[color:--bq-icon--color] bs-[--bq-icon--size] is-[--bq-icon--size]\"\n innerHTML={this._svgContent}\n part=\"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CAAC,WAAW,CAAC,CAAC;SACvC,CAAC,CAAC;KACJ,CAAC;;;;IAMF,MAAM;QACJ,MAAM,MAAM,GAAG;YACb,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE,kBAAkB,EAAE,mBAAmB,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAC1E,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;SAC1D,CAAC;QAEF,QACE,EAAC,IAAI,qDAAC,KAAK,EAAE,MAAM,IACjB,0EACc,IAAI,CAAC,KAAK,IAAI,GAAG,IAAI,CAAC,IAAI,OAAO,EAC7C,KAAK,EAAC,8EAA8E,EACpF,SAAS,EAAE,IAAI,CAAC,WAAW,EAC3B,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,KAAK,GACV,CACG,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["../../packages/beeq/src/components/icon/helper/request.ts","../../packages/beeq/src/components/icon/scss/bq-icon.scss?tag=bq-icon&encapsulation=shadow","../../packages/beeq/src/components/icon/bq-icon.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Icon request helper */\n/* -------------------------------------------------------------------------- */\n\nimport { isNil, isString } from '../../../shared/utils';\n\nconst requests = new Map<string, Promise<unknown>>();\n\nconst fetchSvg = async (url: string, sanitize: boolean): Promise<unknown> => {\n if (typeof fetch === 'undefined' || typeof document === 'undefined') return;\n\n if (requests.has(url)) return requests.get(url);\n\n try {\n const response = await fetch(url);\n\n if (!response.ok) {\n iconContent.set(url, '');\n return;\n }\n\n let svgContent = (await response.text()) || '';\n\n if (svgContent && sanitize !== false) svgContent = validateContent(svgContent);\n\n iconContent.set(url, svgContent);\n } catch (error) {\n console.error(`[BqIcon] Failed to fetch SVG from ${url}:`, error);\n iconContent.set(url, '');\n }\n};\n\nexport const iconContent = new Map<string, string>();\n\nexport const getSvgContent = async (url: string, sanitize: boolean) => {\n let req = requests.get(url);\n\n // NOTE: if the request does not exists we will cache it\n if (isNil(req)) {\n req = fetchSvg(url, sanitize);\n requests.set(url, req);\n }\n return req;\n};\n\nexport const validateContent = (svgContent: string): string => {\n if (typeof document === 'undefined') return '';\n\n const svgTag = 'svg';\n const iconCssClass = 'bq-icon__svg';\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== svgTag) {\n div.removeChild(div.childNodes[i]);\n }\n }\n\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === svgTag) {\n // keep other CSS classes (if there's any) and add the `bq-icon__svg` CSS class\n const othersCssClasses = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', `${othersCssClasses} ${iconCssClass}`.trim());\n // set the shadow DOM part for the SVG element\n svgElm.setAttribute('part', svgTag);\n\n // remove height and width attribute, if for some reason they are still present in the SVG tag\n svgElm.removeAttribute('height');\n svgElm.removeAttribute('width');\n\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm as HTMLElement)) return div.innerHTML;\n }\n\n return '';\n};\n\nexport const isValid = (elm: HTMLElement): boolean => {\n if (elm.nodeType === Node.ELEMENT_NODE) {\n if (elm.nodeName.toLowerCase() === 'script') return false;\n\n for (const attribute of Array.from(elm.attributes)) {\n const value = attribute.value;\n if (isString(value) && value.toLowerCase().startsWith('on')) {\n return false;\n }\n }\n\n for (const childNode of Array.from(elm.children) as HTMLElement[]) {\n if (!isValid(childNode)) return false;\n }\n }\n return true;\n};\n","/* -------------------------------------------------------------------------- */\n/* Icon styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-icon.variables';\n\n:host {\n @apply inline-block;\n}\n\n/**\n * This class is added on packages/beeq/src/components/icon/helper/request.ts\n * See lines 42 and 58 for details.\n */\n.bq-icon__svg {\n @apply scale-x-[--bq-icon--direction];\n}\n","import { Component, Event, EventEmitter, h, Host, Prop, State, Watch } from '@stencil/core';\n\nimport { TIconWeight } from './bq-icon.types';\nimport { getSvgContent, iconContent } from './helper/request';\nimport { getBasePath, getColorCSSVariable, isNil } from '../../shared/utils';\n\n/**\n * Icons are simplified images that graphically explain the meaning of an object on the screen.\n *\n * @part base - The component's internal wrapper that holds the icon SVG content.\n * @part svg - The `<svg>` tag element inside the component.\n */\n@Component({\n assetsDirs: ['svg'],\n tag: 'bq-icon',\n styleUrl: './scss/bq-icon.scss',\n shadow: true,\n})\nexport class BqIcon {\n // Own Properties\n // ====================\n\n // Reference to host HTML element\n // ===================================\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n @State() private _svgContent: string;\n\n // Public Property API\n // ========================\n\n /** Label for the icon, used for accessibility */\n @Prop({ reflect: true }) label?: string;\n\n /** Set the stroke color of the SVG. The value should be a valid value of the palette color */\n @Prop({ reflect: true }) color?: string;\n\n /** Icon name to load. Please check all available icons [here](https://phosphoricons.com/) */\n @Prop({ reflect: true }) name?: string;\n\n /** Set the size of the SVG */\n @Prop({ reflect: true }) size?: string | number = 24;\n\n /** Set the source of the SVG. If the source is set, the name property will be ignored */\n @Prop({ reflect: true }) src?: string;\n\n /** @deprecated It set the icon weight/style */\n @Prop({ reflect: true }) weight?: TIconWeight = undefined;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('color')\n @Watch('name')\n @Watch('size')\n handlePropsChange() {\n this.loadIcon(this.name);\n }\n\n /**\n * !TO BE REMOVED: Delete this `@Watch()` once the deprecated `weight` property is removed\n * We need to maintain retro-compatibility until the next major release\n */\n @Watch('weight')\n handleWeightChange() {\n if (this.name.includes(this.weight)) return;\n\n console.warn(\n `❗️ [bq-icon]: the 'weight' property is deprecated, you should add the weight to the icon name.\\n\n For example, '<bq-icon name=\"bell-fill\"></bq-icon>' instead of '<bq-icon name=\"bell\" weight=\"fill\"></bq-icon>'`,\n );\n // Check if the icon is weighted. An icon is considered weighted if its weight is not 'regular' and ENV_SVG_PATH is not set.\n // Eg: if the weight is 'bold' and ENV_SVG_PATH is not set, isWeightedIcon will be true.\n const REGULAR = 'regular';\n const isWeightedIcon = !isNil(this.weight) && this.weight !== REGULAR;\n // If the icon is weighted, append the weight to the icon name. Otherwise, append nothing.\n // Eg: if isWeightedIcon is true and the weight is 'bold', weightSuffix will be '-bold'.\n const weightSuffix = isWeightedIcon ? `-${this.weight}` : '';\n // Construct the icon name by appending the weight suffix (if any) and the file extension.\n // Eg: if the name is 'my-icon' and weightSuffix is '-bold', iconName will be 'my-icon-bold.svg'.\n const iconName = `${this.name}${weightSuffix}`;\n this.loadIcon(iconName);\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler to be called when the SVG has loaded */\n @Event() svgLoaded: EventEmitter;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n connectedCallback() {\n this.setupIconComponent();\n }\n\n componentWillLoad() {\n this.setupIconComponent();\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 // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private setupIconComponent = () => {\n this.loadIcon(this.name);\n // !TO BE REMOVED: Delete this once the deprecated `weight` property is removed\n if (!isNil(this.weight)) this.handleWeightChange();\n };\n\n private getIconSource = (name: string) => {\n if (!this.name && !this.src) return;\n // Return the src if it is set\n if (this.src) return this.src;\n\n const SVG_EXTENSION = '.svg';\n const iconFileName = `${name}${SVG_EXTENSION}`;\n\n return getBasePath(iconFileName);\n };\n\n private loadIcon = (name: string) => {\n const url = this.getIconSource(name);\n getSvgContent(url, true).then(() => {\n this._svgContent = iconContent.get(url);\n this.svgLoaded.emit(this._svgContent);\n });\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n const styles = {\n ...(this.color && { '--bq-icon--color': getColorCSSVariable(this.color) }),\n ...(this.size && { '--bq-icon--size': `${this.size}px` }),\n };\n\n return (\n <Host style={styles}>\n <div\n aria-label={this.label ?? `${this.name} icon`}\n class=\"flex text-[color:--bq-icon--color] bs-[--bq-icon--size] is-[--bq-icon--size]\"\n innerHTML={this._svgContent}\n part=\"base\"\n role=\"img\"\n />\n </Host>\n );\n }\n}\n"],"version":3}