@beeq/core 1.7.0 → 1.8.0-beta.1

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 (371) hide show
  1. package/dist/beeq/beeq.esm.js +43 -1
  2. package/dist/beeq/beeq.esm.js.map +1 -1
  3. package/dist/beeq/index.esm.js +64 -1
  4. package/dist/beeq/index.esm.js.map +1 -1
  5. package/dist/beeq/p-063a3968.entry.js +388 -0
  6. package/dist/beeq/p-063a3968.entry.js.map +1 -0
  7. package/dist/beeq/p-0979fdfd.entry.js +297 -0
  8. package/dist/beeq/{p-a453d36c.entry.js.map → p-0979fdfd.entry.js.map} +1 -1
  9. package/dist/beeq/p-0ab0b58d.js +25 -1
  10. package/dist/beeq/p-0ab0b58d.js.map +1 -1
  11. package/dist/beeq/p-0c42c08a.js +1811 -0
  12. package/dist/beeq/p-0c42c08a.js.map +1 -0
  13. package/dist/beeq/p-0f48adcc.entry.js +117 -0
  14. package/dist/beeq/{p-bcf6e585.entry.js.map → p-0f48adcc.entry.js.map} +1 -1
  15. package/dist/beeq/p-115ed5b2.js +25 -1
  16. package/dist/beeq/p-115ed5b2.js.map +1 -1
  17. package/dist/beeq/p-14b44a4b.entry.js +205 -0
  18. package/dist/beeq/{p-4f8ce653.entry.js.map → p-14b44a4b.entry.js.map} +1 -1
  19. package/dist/beeq/p-1715ac80.entry.js +274 -0
  20. package/dist/beeq/{p-554d0f45.entry.js.map → p-1715ac80.entry.js.map} +1 -1
  21. package/dist/beeq/p-1c8b6eb4.js +12 -1
  22. package/dist/beeq/p-1c8b6eb4.js.map +1 -1
  23. package/dist/beeq/p-1f3a4359.js +11 -1
  24. package/dist/beeq/p-1f3a4359.js.map +1 -1
  25. package/dist/beeq/p-242ac28a.entry.js +145 -0
  26. package/dist/beeq/{p-64835973.entry.js.map → p-242ac28a.entry.js.map} +1 -1
  27. package/dist/beeq/p-297fb76b.entry.js +220 -0
  28. package/dist/beeq/{p-4291b23f.entry.js.map → p-297fb76b.entry.js.map} +1 -1
  29. package/dist/beeq/p-2bb65f53.entry.js +204 -0
  30. package/dist/beeq/p-2bb65f53.entry.js.map +1 -0
  31. package/dist/beeq/p-2e66fc4f.entry.js +434 -0
  32. package/dist/beeq/{p-bcc85103.entry.js.map → p-2e66fc4f.entry.js.map} +1 -1
  33. package/dist/beeq/p-36652891.entry.js +102 -0
  34. package/dist/beeq/{p-21a51ee0.entry.js.map → p-36652891.entry.js.map} +1 -1
  35. package/dist/beeq/p-38d4bd8a.js +1939 -0
  36. package/dist/beeq/p-38d4bd8a.js.map +1 -0
  37. package/dist/beeq/p-39b7c578.entry.js +84 -0
  38. package/dist/beeq/{p-3711298a.entry.js.map → p-39b7c578.entry.js.map} +1 -1
  39. package/dist/beeq/p-39d77ba6.entry.js +90 -0
  40. package/dist/beeq/{p-f7d3f428.entry.js.map → p-39d77ba6.entry.js.map} +1 -1
  41. package/dist/beeq/p-3fd0d92d.js +1228 -1
  42. package/dist/beeq/p-3fd0d92d.js.map +1 -1
  43. package/dist/beeq/p-4688e046.js +16 -0
  44. package/dist/beeq/{p-aee056e5.js.map → p-4688e046.js.map} +1 -1
  45. package/dist/beeq/p-49249dda.entry.js +156 -0
  46. package/dist/beeq/{p-a062b9c4.entry.js.map → p-49249dda.entry.js.map} +1 -1
  47. package/dist/beeq/p-548b45b7.entry.js +104 -0
  48. package/dist/beeq/{p-c3e33045.entry.js.map → p-548b45b7.entry.js.map} +1 -1
  49. package/dist/beeq/p-57621be1.js +9 -1
  50. package/dist/beeq/p-57621be1.js.map +1 -1
  51. package/dist/beeq/p-57a55ac5.entry.js +261 -0
  52. package/dist/beeq/{p-d4ca1283.entry.js.map → p-57a55ac5.entry.js.map} +1 -1
  53. package/dist/beeq/p-5e11b866.entry.js +102 -0
  54. package/dist/beeq/{p-39f3d9d2.entry.js.map → p-5e11b866.entry.js.map} +1 -1
  55. package/dist/beeq/p-687da041.js +20 -1
  56. package/dist/beeq/p-687da041.js.map +1 -1
  57. package/dist/beeq/p-6a4e104b.entry.js +263 -0
  58. package/dist/beeq/{p-7691bdfc.entry.js.map → p-6a4e104b.entry.js.map} +1 -1
  59. package/dist/beeq/p-6a5a79a3.entry.js +184 -0
  60. package/dist/beeq/{p-fbb780c2.entry.js.map → p-6a5a79a3.entry.js.map} +1 -1
  61. package/dist/beeq/p-7f301da8.entry.js +508 -0
  62. package/dist/beeq/p-7f301da8.entry.js.map +1 -0
  63. package/dist/beeq/p-81f1c3ba.entry.js +121 -0
  64. package/dist/beeq/{p-819acf02.entry.js.map → p-81f1c3ba.entry.js.map} +1 -1
  65. package/dist/beeq/p-822773ae.entry.js +195 -0
  66. package/dist/beeq/{p-b2c55a62.entry.js.map → p-822773ae.entry.js.map} +1 -1
  67. package/dist/beeq/p-951ba558.js +64 -1
  68. package/dist/beeq/p-951ba558.js.map +1 -1
  69. package/dist/beeq/p-99829fc7.js +8 -1
  70. package/dist/beeq/p-99829fc7.js.map +1 -1
  71. package/dist/beeq/p-9990889d.entry.js +222 -0
  72. package/dist/beeq/{p-a9ca89e7.entry.js.map → p-9990889d.entry.js.map} +1 -1
  73. package/dist/beeq/p-a1b43de6.entry.js +248 -0
  74. package/dist/beeq/{p-889e6317.entry.js.map → p-a1b43de6.entry.js.map} +1 -1
  75. package/dist/beeq/p-a5dc1c94.js +118 -1
  76. package/dist/beeq/p-a5dc1c94.js.map +1 -1
  77. package/dist/beeq/p-a6489187.entry.js +103 -0
  78. package/dist/beeq/{p-d62cad31.entry.js.map → p-a6489187.entry.js.map} +1 -1
  79. package/dist/beeq/p-a8cad5ab.js +5 -1
  80. package/dist/beeq/p-a8cad5ab.js.map +1 -1
  81. package/dist/beeq/p-ac969486.entry.js +330 -0
  82. package/dist/beeq/{p-d9a3844f.entry.js.map → p-ac969486.entry.js.map} +1 -1
  83. package/dist/beeq/p-af062402.js +12 -0
  84. package/dist/beeq/p-af062402.js.map +1 -0
  85. package/dist/beeq/p-afc9fd80.entry.js +144 -0
  86. package/dist/beeq/{p-8b870d05.entry.js.map → p-afc9fd80.entry.js.map} +1 -1
  87. package/dist/beeq/p-bef53750.js +79 -0
  88. package/dist/beeq/p-bef53750.js.map +1 -0
  89. package/dist/beeq/p-bf2320dd.entry.js +329 -0
  90. package/dist/beeq/{p-67367b7d.entry.js.map → p-bf2320dd.entry.js.map} +1 -1
  91. package/dist/beeq/p-c34e292e.entry.js +127 -0
  92. package/dist/beeq/{p-5402707e.entry.js.map → p-c34e292e.entry.js.map} +1 -1
  93. package/dist/beeq/p-d7a88b16.js +87 -1
  94. package/dist/beeq/p-d7a88b16.js.map +1 -1
  95. package/dist/beeq/p-db18eba1.entry.js +173 -0
  96. package/dist/beeq/{p-02202605.entry.js.map → p-db18eba1.entry.js.map} +1 -1
  97. package/dist/beeq/p-dd950c12.entry.js +309 -0
  98. package/dist/beeq/p-dd950c12.entry.js.map +1 -0
  99. package/dist/beeq/p-e301647a.entry.js +87 -0
  100. package/dist/beeq/{p-6b824dba.entry.js.map → p-e301647a.entry.js.map} +1 -1
  101. package/dist/beeq/p-e3aa2886.entry.js +203 -0
  102. package/dist/beeq/{p-9c3030c7.entry.js.map → p-e3aa2886.entry.js.map} +1 -1
  103. package/dist/beeq/p-e41f07ae.entry.js +173 -0
  104. package/dist/beeq/p-e41f07ae.entry.js.map +1 -0
  105. package/dist/beeq/p-e88257a8.entry.js +259 -0
  106. package/dist/beeq/p-e88257a8.entry.js.map +1 -0
  107. package/dist/beeq/p-e9a54b49.entry.js +145 -0
  108. package/dist/beeq/{p-61c97bdc.entry.js.map → p-e9a54b49.entry.js.map} +1 -1
  109. package/dist/beeq/p-ecd27cf2.js +11 -1
  110. package/dist/beeq/p-ecd27cf2.js.map +1 -1
  111. package/dist/beeq/p-f77d9b8b.entry.js +144 -0
  112. package/dist/beeq/{p-a2157e4d.entry.js.map → p-f77d9b8b.entry.js.map} +1 -1
  113. package/dist/beeq/p-fd658de1.entry.js +135 -0
  114. package/dist/beeq/{p-c88ca7e9.entry.js.map → p-fd658de1.entry.js.map} +1 -1
  115. package/dist/beeq/p-ffb48c40.entry.js +258 -0
  116. package/dist/beeq/p-ffb48c40.entry.js.map +1 -0
  117. package/dist/beeq/p-ffddc425.entry.js +149 -0
  118. package/dist/beeq/{p-2e8e7e37.entry.js.map → p-ffddc425.entry.js.map} +1 -1
  119. package/dist/cjs/app-globals-b11284b9.js.map +1 -1
  120. package/dist/cjs/assetsPath-3938a05d.js +78 -0
  121. package/dist/cjs/assetsPath-3938a05d.js.map +1 -0
  122. package/dist/cjs/beeq.cjs.js +2 -2
  123. package/dist/cjs/bq-accordion-group.cjs.entry.js +2 -2
  124. package/dist/cjs/bq-accordion.cjs.entry.js +2 -2
  125. package/dist/cjs/bq-alert.cjs.entry.js +2 -2
  126. package/dist/cjs/bq-avatar.cjs.entry.js +2 -2
  127. package/dist/cjs/bq-badge.cjs.entry.js +2 -2
  128. package/dist/cjs/bq-breadcrumb-item.cjs.entry.js +3 -3
  129. package/dist/cjs/bq-breadcrumb.cjs.entry.js +2 -2
  130. package/dist/cjs/bq-button_2.cjs.entry.js +25 -21
  131. package/dist/cjs/bq-button_2.cjs.entry.js.map +1 -1
  132. package/dist/cjs/bq-card.cjs.entry.js +2 -2
  133. package/dist/cjs/bq-checkbox.cjs.entry.js +57 -6
  134. package/dist/cjs/bq-checkbox.cjs.entry.js.map +1 -1
  135. package/dist/cjs/bq-date-picker.cjs.entry.js +3 -3
  136. package/dist/cjs/bq-dialog.cjs.entry.js +3 -3
  137. package/dist/cjs/bq-divider.cjs.entry.js +2 -2
  138. package/dist/cjs/bq-drawer.cjs.entry.js +7 -7
  139. package/dist/cjs/bq-drawer.cjs.entry.js.map +1 -1
  140. package/dist/cjs/bq-dropdown_2.cjs.entry.js +2 -2
  141. package/dist/cjs/bq-empty-state.cjs.entry.js +2 -2
  142. package/dist/cjs/bq-input.cjs.entry.js +43 -16
  143. package/dist/cjs/bq-input.cjs.entry.js.map +1 -1
  144. package/dist/cjs/bq-notification.cjs.entry.js +2 -2
  145. package/dist/cjs/bq-option-group.cjs.entry.js +1 -1
  146. package/dist/cjs/bq-option-list_2.cjs.entry.js +5 -5
  147. package/dist/cjs/bq-option.cjs.entry.js +2 -2
  148. package/dist/cjs/bq-page-title.cjs.entry.js +2 -2
  149. package/dist/cjs/bq-progress.cjs.entry.js +2 -2
  150. package/dist/cjs/bq-radio-group.cjs.entry.js +2 -2
  151. package/dist/cjs/bq-radio.cjs.entry.js +1 -1
  152. package/dist/cjs/bq-select.cjs.entry.js +78 -30
  153. package/dist/cjs/bq-select.cjs.entry.js.map +1 -1
  154. package/dist/cjs/bq-side-menu-item.cjs.entry.js +2 -2
  155. package/dist/cjs/bq-side-menu.cjs.entry.js +2 -2
  156. package/dist/cjs/bq-slider.cjs.entry.js +2 -2
  157. package/dist/cjs/bq-spinner.cjs.entry.js +2 -2
  158. package/dist/cjs/bq-status.cjs.entry.js +2 -2
  159. package/dist/cjs/bq-step-item.cjs.entry.js +2 -2
  160. package/dist/cjs/bq-steps.cjs.entry.js +2 -2
  161. package/dist/cjs/bq-switch.cjs.entry.js +2 -2
  162. package/dist/cjs/bq-tab-group.cjs.entry.js +32 -16
  163. package/dist/cjs/bq-tab-group.cjs.entry.js.map +1 -1
  164. package/dist/cjs/bq-tab.cjs.entry.js +14 -8
  165. package/dist/cjs/bq-tab.cjs.entry.js.map +1 -1
  166. package/dist/cjs/bq-tab.types-a8b320b0.js +15 -0
  167. package/dist/cjs/bq-tab.types-a8b320b0.js.map +1 -0
  168. package/dist/cjs/bq-textarea.cjs.entry.js +5 -5
  169. package/dist/cjs/bq-toast.cjs.entry.js +3 -3
  170. package/dist/cjs/bq-tooltip.cjs.entry.js +3 -3
  171. package/dist/cjs/{index-76b0999c.js → index-1d3aac65.js} +48 -2
  172. package/dist/cjs/index-1d3aac65.js.map +1 -0
  173. package/dist/cjs/{index-a09d1c08.js → index-e4c116b6.js} +12 -9
  174. package/dist/cjs/index-e4c116b6.js.map +1 -0
  175. package/dist/cjs/index.cjs.js +2 -2
  176. package/dist/cjs/{isDefined-4f4a320b.js → isDefined-750bffc4.js} +2 -2
  177. package/dist/cjs/{isDefined-4f4a320b.js.map → isDefined-750bffc4.js.map} +1 -1
  178. package/dist/cjs/loader.cjs.js +2 -2
  179. package/dist/collection/components/checkbox/bq-checkbox.js +67 -3
  180. package/dist/collection/components/checkbox/bq-checkbox.js.map +1 -1
  181. package/dist/collection/components/dialog/scss/bq-dialog.css +1 -1
  182. package/dist/collection/components/drawer/bq-drawer.js +7 -5
  183. package/dist/collection/components/drawer/bq-drawer.js.map +1 -1
  184. package/dist/collection/components/drawer/scss/bq-drawer.css +1 -1
  185. package/dist/collection/components/icon/helper/request.js +23 -19
  186. package/dist/collection/components/icon/helper/request.js.map +1 -1
  187. package/dist/collection/components/input/bq-input.js +34 -13
  188. package/dist/collection/components/input/bq-input.js.map +1 -1
  189. package/dist/collection/components/select/bq-select.js +71 -29
  190. package/dist/collection/components/select/bq-select.js.map +1 -1
  191. package/dist/collection/components/tab/bq-tab.js +62 -4
  192. package/dist/collection/components/tab/bq-tab.js.map +1 -1
  193. package/dist/collection/components/tab/bq-tab.types.js +2 -0
  194. package/dist/collection/components/tab/bq-tab.types.js.map +1 -1
  195. package/dist/collection/components/tab/scss/bq-tab.css +1 -1
  196. package/dist/collection/components/tab-group/bq-tab-group.js +81 -14
  197. package/dist/collection/components/tab-group/bq-tab-group.js.map +1 -1
  198. package/dist/collection/components/tab-group/scss/bq-tab-group.css +1 -1
  199. package/dist/collection/components/tag/bq-tag.js +3 -3
  200. package/dist/collection/components/textarea/bq-textarea.js +3 -3
  201. package/dist/collection/components/toast/bq-toast.js +1 -1
  202. package/dist/collection/components/tooltip/bq-tooltip.js +1 -1
  203. package/dist/collection/shared/utils/assetsPath.js +52 -26
  204. package/dist/collection/shared/utils/assetsPath.js.map +1 -1
  205. package/dist/components/assetsPath.js +52 -26
  206. package/dist/components/assetsPath.js.map +1 -1
  207. package/dist/components/bq-checkbox.js +53 -6
  208. package/dist/components/bq-checkbox.js.map +1 -1
  209. package/dist/components/bq-dialog.js +1 -1
  210. package/dist/components/bq-drawer.js +5 -5
  211. package/dist/components/bq-drawer.js.map +1 -1
  212. package/dist/components/bq-icon2.js +23 -19
  213. package/dist/components/bq-icon2.js.map +1 -1
  214. package/dist/components/bq-input.js +35 -13
  215. package/dist/components/bq-input.js.map +1 -1
  216. package/dist/components/bq-select.js +71 -28
  217. package/dist/components/bq-select.js.map +1 -1
  218. package/dist/components/bq-tab-group.js +36 -16
  219. package/dist/components/bq-tab-group.js.map +1 -1
  220. package/dist/components/bq-tab.js +17 -7
  221. package/dist/components/bq-tab.js.map +1 -1
  222. package/dist/components/bq-tab.types.js +3 -1
  223. package/dist/components/bq-tab.types.js.map +1 -1
  224. package/dist/components/bq-tag2.js +3 -3
  225. package/dist/components/bq-textarea.js +3 -3
  226. package/dist/components/bq-toast.js +1 -1
  227. package/dist/components/bq-tooltip2.js +1 -1
  228. package/dist/components/index2.js +11 -8
  229. package/dist/components/index2.js.map +1 -1
  230. package/dist/esm/app-globals-de5a646b.js.map +1 -1
  231. package/dist/esm/assetsPath-a1b58980.js +75 -0
  232. package/dist/esm/assetsPath-a1b58980.js.map +1 -0
  233. package/dist/esm/beeq.js +3 -3
  234. package/dist/esm/bq-accordion-group.entry.js +2 -2
  235. package/dist/esm/bq-accordion.entry.js +2 -2
  236. package/dist/esm/bq-alert.entry.js +2 -2
  237. package/dist/esm/bq-avatar.entry.js +2 -2
  238. package/dist/esm/bq-badge.entry.js +2 -2
  239. package/dist/esm/bq-breadcrumb-item.entry.js +3 -3
  240. package/dist/esm/bq-breadcrumb.entry.js +2 -2
  241. package/dist/esm/bq-button_2.entry.js +25 -21
  242. package/dist/esm/bq-button_2.entry.js.map +1 -1
  243. package/dist/esm/bq-card.entry.js +2 -2
  244. package/dist/esm/bq-checkbox.entry.js +57 -6
  245. package/dist/esm/bq-checkbox.entry.js.map +1 -1
  246. package/dist/esm/bq-date-picker.entry.js +3 -3
  247. package/dist/esm/bq-dialog.entry.js +3 -3
  248. package/dist/esm/bq-divider.entry.js +2 -2
  249. package/dist/esm/bq-drawer.entry.js +7 -7
  250. package/dist/esm/bq-drawer.entry.js.map +1 -1
  251. package/dist/esm/bq-dropdown_2.entry.js +2 -2
  252. package/dist/esm/bq-empty-state.entry.js +2 -2
  253. package/dist/esm/bq-input.entry.js +43 -16
  254. package/dist/esm/bq-input.entry.js.map +1 -1
  255. package/dist/esm/bq-notification.entry.js +2 -2
  256. package/dist/esm/bq-option-group.entry.js +1 -1
  257. package/dist/esm/bq-option-list_2.entry.js +5 -5
  258. package/dist/esm/bq-option.entry.js +2 -2
  259. package/dist/esm/bq-page-title.entry.js +2 -2
  260. package/dist/esm/bq-progress.entry.js +2 -2
  261. package/dist/esm/bq-radio-group.entry.js +2 -2
  262. package/dist/esm/bq-radio.entry.js +1 -1
  263. package/dist/esm/bq-select.entry.js +79 -31
  264. package/dist/esm/bq-select.entry.js.map +1 -1
  265. package/dist/esm/bq-side-menu-item.entry.js +2 -2
  266. package/dist/esm/bq-side-menu.entry.js +2 -2
  267. package/dist/esm/bq-slider.entry.js +2 -2
  268. package/dist/esm/bq-spinner.entry.js +2 -2
  269. package/dist/esm/bq-status.entry.js +2 -2
  270. package/dist/esm/bq-step-item.entry.js +2 -2
  271. package/dist/esm/bq-steps.entry.js +2 -2
  272. package/dist/esm/bq-switch.entry.js +2 -2
  273. package/dist/esm/bq-tab-group.entry.js +32 -16
  274. package/dist/esm/bq-tab-group.entry.js.map +1 -1
  275. package/dist/esm/bq-tab.entry.js +14 -8
  276. package/dist/esm/bq-tab.entry.js.map +1 -1
  277. package/dist/esm/bq-tab.types-36e2666e.js +11 -0
  278. package/dist/esm/bq-tab.types-36e2666e.js.map +1 -0
  279. package/dist/esm/bq-textarea.entry.js +5 -5
  280. package/dist/esm/bq-toast.entry.js +3 -3
  281. package/dist/esm/bq-tooltip.entry.js +3 -3
  282. package/dist/esm/{index-138f308e.js → index-136429a6.js} +12 -9
  283. package/dist/esm/index-136429a6.js.map +1 -0
  284. package/dist/esm/{index-7eed7a88.js → index-f69556fe.js} +48 -2
  285. package/dist/esm/index-f69556fe.js.map +1 -0
  286. package/dist/esm/index.js +3 -3
  287. package/dist/esm/{isDefined-91ae4cd3.js → isDefined-170f3095.js} +2 -2
  288. package/dist/esm/{isDefined-91ae4cd3.js.map → isDefined-170f3095.js.map} +1 -1
  289. package/dist/esm/loader.js +3 -3
  290. package/dist/hydrate/index.js +348 -133
  291. package/dist/hydrate/index.mjs +348 -133
  292. package/dist/types/components/checkbox/bq-checkbox.d.ts +9 -0
  293. package/dist/types/components/drawer/bq-drawer.d.ts +3 -1
  294. package/dist/types/components/input/bq-input.d.ts +4 -1
  295. package/dist/types/components/select/bq-select.d.ts +18 -0
  296. package/dist/types/components/tab/bq-tab.d.ts +5 -1
  297. package/dist/types/components/tab/bq-tab.types.d.ts +4 -0
  298. package/dist/types/components/tab-group/bq-tab-group.d.ts +5 -1
  299. package/dist/types/components.d.ts +42 -2
  300. package/dist/types/home/workflows/workspace/packages/beeq/.stencil/packages/beeq/stencil.config.d.ts +2 -0
  301. package/dist/types/shared/utils/assetsPath.d.ts +18 -11
  302. package/package.json +24 -24
  303. package/dist/beeq/p-02202605.entry.js +0 -6
  304. package/dist/beeq/p-0f528ec6.js +0 -6
  305. package/dist/beeq/p-0f528ec6.js.map +0 -1
  306. package/dist/beeq/p-1d3f236b.entry.js +0 -6
  307. package/dist/beeq/p-1d3f236b.entry.js.map +0 -1
  308. package/dist/beeq/p-21a51ee0.entry.js +0 -6
  309. package/dist/beeq/p-2e8e7e37.entry.js +0 -6
  310. package/dist/beeq/p-3711298a.entry.js +0 -6
  311. package/dist/beeq/p-39f3d9d2.entry.js +0 -6
  312. package/dist/beeq/p-3a1f06e1.entry.js +0 -6
  313. package/dist/beeq/p-3a1f06e1.entry.js.map +0 -1
  314. package/dist/beeq/p-4291b23f.entry.js +0 -6
  315. package/dist/beeq/p-463a17cf.js +0 -7
  316. package/dist/beeq/p-463a17cf.js.map +0 -1
  317. package/dist/beeq/p-48b27aef.entry.js +0 -6
  318. package/dist/beeq/p-48b27aef.entry.js.map +0 -1
  319. package/dist/beeq/p-4f8ce653.entry.js +0 -6
  320. package/dist/beeq/p-5402707e.entry.js +0 -6
  321. package/dist/beeq/p-554d0f45.entry.js +0 -6
  322. package/dist/beeq/p-61c97bdc.entry.js +0 -6
  323. package/dist/beeq/p-64835973.entry.js +0 -6
  324. package/dist/beeq/p-67367b7d.entry.js +0 -6
  325. package/dist/beeq/p-68fdea6a.js +0 -6
  326. package/dist/beeq/p-68fdea6a.js.map +0 -1
  327. package/dist/beeq/p-6b824dba.entry.js +0 -6
  328. package/dist/beeq/p-6edc8a33.js +0 -6
  329. package/dist/beeq/p-6edc8a33.js.map +0 -1
  330. package/dist/beeq/p-7567ae06.entry.js +0 -6
  331. package/dist/beeq/p-7567ae06.entry.js.map +0 -1
  332. package/dist/beeq/p-7691bdfc.entry.js +0 -6
  333. package/dist/beeq/p-819acf02.entry.js +0 -6
  334. package/dist/beeq/p-889e6317.entry.js +0 -6
  335. package/dist/beeq/p-8b870d05.entry.js +0 -6
  336. package/dist/beeq/p-9c3030c7.entry.js +0 -6
  337. package/dist/beeq/p-a062b9c4.entry.js +0 -6
  338. package/dist/beeq/p-a2157e4d.entry.js +0 -6
  339. package/dist/beeq/p-a453d36c.entry.js +0 -6
  340. package/dist/beeq/p-a9ca89e7.entry.js +0 -6
  341. package/dist/beeq/p-aae41e31.entry.js +0 -6
  342. package/dist/beeq/p-aae41e31.entry.js.map +0 -1
  343. package/dist/beeq/p-aee056e5.js +0 -6
  344. package/dist/beeq/p-b2c55a62.entry.js +0 -6
  345. package/dist/beeq/p-bcc85103.entry.js +0 -6
  346. package/dist/beeq/p-bcf6e585.entry.js +0 -6
  347. package/dist/beeq/p-c3e33045.entry.js +0 -6
  348. package/dist/beeq/p-c88ca7e9.entry.js +0 -6
  349. package/dist/beeq/p-cec068b9.entry.js +0 -6
  350. package/dist/beeq/p-cec068b9.entry.js.map +0 -1
  351. package/dist/beeq/p-d4ca1283.entry.js +0 -6
  352. package/dist/beeq/p-d62cad31.entry.js +0 -6
  353. package/dist/beeq/p-d9a3844f.entry.js +0 -6
  354. package/dist/beeq/p-ec4a6d10.entry.js +0 -6
  355. package/dist/beeq/p-ec4a6d10.entry.js.map +0 -1
  356. package/dist/beeq/p-f7d3f428.entry.js +0 -6
  357. package/dist/beeq/p-fbb780c2.entry.js +0 -6
  358. package/dist/cjs/assetsPath-eac0a3bf.js +0 -52
  359. package/dist/cjs/assetsPath-eac0a3bf.js.map +0 -1
  360. package/dist/cjs/bq-tab.types-9fe0234a.js +0 -11
  361. package/dist/cjs/bq-tab.types-9fe0234a.js.map +0 -1
  362. package/dist/cjs/index-76b0999c.js.map +0 -1
  363. package/dist/cjs/index-a09d1c08.js.map +0 -1
  364. package/dist/esm/assetsPath-ae18c25e.js +0 -49
  365. package/dist/esm/assetsPath-ae18c25e.js.map +0 -1
  366. package/dist/esm/bq-tab.types-f64aa67d.js +0 -9
  367. package/dist/esm/bq-tab.types-f64aa67d.js.map +0 -1
  368. package/dist/esm/index-138f308e.js.map +0 -1
  369. package/dist/esm/index-7eed7a88.js.map +0 -1
  370. package/dist/types/home/runner/work/BEEQ/BEEQ/packages/beeq/.stencil/packages/beeq/stencil.config.d.ts +0 -2
  371. /package/dist/types/home/{runner/work/BEEQ/BEEQ → workflows/workspace}/packages/beeq/.stencil/tailwind.config.d.ts +0 -0
@@ -0,0 +1,127 @@
1
+ /*!
2
+ * Built by Endavans
3
+ * © https://beeq.design - Apache 2 License.
4
+ */
5
+ import { r as a, c as r, h as e, g as b } from "./p-0c42c08a.js";
6
+
7
+ import "./p-bef53750.js";
8
+
9
+ import { i as t } from "./p-57621be1.js";
10
+
11
+ import { v as n } from "./p-687da041.js";
12
+
13
+ import { S as q } from "./p-a8cad5ab.js";
14
+
15
+ const i = [ "default", "current", "completed", "error", "disabled" ];
16
+
17
+ const o = '::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}.transform{--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex{display:flex}.items-center{align-items:center}.justify-center{justify-content:center}.bg-\\[--bq-step-item--prefix-num-bg-color\\]{background-color:var(--bq-step-item--prefix-num-bg-color)}.bg-\\[var\\(--bq-step-item--prefix-color-current\\)\\]{background-color:var(--bq-step-item--prefix-color-current)}.bg-bg-primary{background-color:var(--bq-background--primary)}.bg-ui-danger-alt{background-color:var(--bq-ui--danger-alt)}.bg-ui-success-alt{background-color:var(--bq-ui--success-alt)}.text-m{font-size:var(--bq-font-size--m)}.text-s{font-size:var(--bq-font-size--s)}.font-semibold{font-weight:var(--bq-font-weight--semibold)}.leading-regular{line-height:var(--bq-font-line-height--regular)}.text-\\[--bq-text--alt\\]{color:var(--bq-text--alt)}.text-text-danger{color:var(--bq-text--danger)}.text-text-success{color:var(--bq-text--success)}.opacity-60{opacity:.6}.bs-\\[--bq-step-item--prefix-num-size\\]{block-size:var(--bq-step-item--prefix-num-size)}.is-\\[--bq-step-item--prefix-num-size\\]{inline-size:var(--bq-step-item--prefix-num-size)}.\\[--bq-step-item--prefix-num-size\\:--bq-spacing-l\\]{--bq-step-item--prefix-num-size:var(--bq-spacing-l)}@-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-step-item--prefix-color:var(--bq-icon--secondary);--bq-step-item--prefix-color-current:var(--bq-icon--brand);--bq-step-item--prefix-color-completed:var(--bq-icon--success);--bq-step-item--prefix-color-error:var(--bq-icon--danger);--bq-step-item--prefix-num-size:var(--bq-spacing-xl);--bq-step-item--prefix-num-bg-color:var(--bq-ui--secondary);--bq-icon--color:var(--bq-icon--primary);background-color:var(--bq-background--primary)}.bq-step-item__prefix.dot ::slotted(bq-icon),.bq-step-item__prefix.icon ::slotted(bq-icon){--bq-icon--color:var(--bq-step-item--prefix-color)}.bq-step-item__prefix.dot.current ::slotted(bq-icon),.bq-step-item__prefix.icon.current ::slotted(bq-icon){--bq-icon--color:var(--bq-step-item--prefix-color-current)}.bq-step-item__prefix.dot.completed ::slotted(bq-icon),.bq-step-item__prefix.icon.completed ::slotted(bq-icon){--bq-icon--color:var(--bq-step-item--prefix-color-completed)}.bq-step-item__prefix.dot.error ::slotted(bq-icon),.bq-step-item__prefix.icon.error ::slotted(bq-icon){--bq-icon--color:var(--bq-step-item--prefix-color-error)}.bq-step-item__prefix.dot.disabled ::slotted(bq-icon),.bq-step-item__prefix.icon.disabled ::slotted(bq-icon){opacity:.6}.bq-step-item__prefix.numeric{align-items:center;background-color:var(--bq-step-item--prefix-num-bg-color);block-size:var(--bq-step-item--prefix-num-size);border-radius:var(--bq-radius--full);display:flex;font-size:var(--bq-font-size--m);font-weight:var(--bq-font-weight--semibold);inline-size:var(--bq-step-item--prefix-num-size);justify-content:center;line-height:var(--bq-font-line-height--regular)}.bq-step-item__prefix.numeric.small{--bq-step-item--prefix-num-size:var(--bq-spacing-l);font-size:var(--bq-font-size--s)}.bq-step-item__prefix.numeric.current{background-color:var(--bq-step-item--prefix-color-current);color:var(--bq-text--alt)}.bq-step-item__prefix.numeric.completed{background-color:var(--bq-ui--success-alt);color:var(--bq-text--success)}.bq-step-item__prefix.numeric.error{background-color:var(--bq-ui--danger-alt);color:var(--bq-text--danger)}.bq-step-item__prefix.numeric.disabled{opacity:.6}.bq-step-item__content--description::slotted(*){font-size:var(--bq-font-size--s);line-height:var(--bq-font-line-height--regular);opacity:.6}.pointer-events-none{pointer-events:none}.static{position:static}.relative{position:relative}.gap-s{gap:var(--bq-spacing-s)}.pe-xs3{padding-inline-end:var(--bq-spacing-xs3)}.text-text-brand{color:var(--bq-text--brand)}.text-text-primary{color:var(--bq-text--primary)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.absolute{position:absolute}.-z-10{z-index:-10}.w-full{width:100%}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.p-bs-m{padding-block-start:var(--bq-spacing-m)}.p-bs-s{padding-block-start:var(--bq-spacing-s)}.p-i-s{padding-inline:var(--bq-spacing-s)}.inset-ie-0{inset-inline-end:0}.inset-is-0{inset-inline-start:0}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}';
18
+
19
+ const s = o;
20
+
21
+ const d = class {
22
+ constructor(e) {
23
+ a(this, e);
24
+ this.bqClick = r(this, "bqClick", 7);
25
+ this.handleIconPrefix = () => {
26
+ const a = this.el.querySelector('[slot="prefix"]');
27
+ if (!a || !t(a, "bq-icon")) return;
28
+ a.size = this.size === "small" ? 24 : 32;
29
+ a.weight = this.isCurrent ? "fill" : "regular";
30
+ };
31
+ this.size = "medium";
32
+ this.status = "default";
33
+ this.type = undefined;
34
+ }
35
+ // Prop lifecycle events
36
+ // =======================
37
+ checkPropValues() {
38
+ n(q, "medium", this.el, "size");
39
+ n(i, "default", this.el, "status");
40
+ this.handleIconPrefix();
41
+ }
42
+ // Component lifecycle events
43
+ // Ordered by their natural call order
44
+ // =====================================
45
+ connectedCallback() {
46
+ this.checkPropValues();
47
+ }
48
+ componentDidLoad() {
49
+ this.handleIconPrefix();
50
+ }
51
+ // Listeners
52
+ // ==============
53
+ // Public methods API
54
+ // These methods are exposed on the host element.
55
+ // Always use two lines.
56
+ // Public Methods must be async.
57
+ // Requires JSDocs for public API documentation.
58
+ // ===============================================
59
+ // Local methods
60
+ // Internal business logic.
61
+ // These methods cannot be called from the host element.
62
+ // =======================================================
63
+ get isDisabled() {
64
+ return this.status === "disabled";
65
+ }
66
+ get isCurrent() {
67
+ return this.status === "current";
68
+ }
69
+ // render() function
70
+ // Always the last one in the class.
71
+ // ===================================
72
+ render() {
73
+ return e("div", {
74
+ key: "ee81b4fb2e6555f809767f882076e0a2afc5e569",
75
+ class: {
76
+ "bq-step-item flex gap-s": true,
77
+ [`bq-step-item--${this.status}`]: true,
78
+ "pointer-events-none opacity-60": this.isDisabled
79
+ },
80
+ part: "base"
81
+ }, e("div", {
82
+ key: "96aad17f2fca80d608b10ded6c6ce290b2263302",
83
+ class: `bq-step-item__prefix relative ${this.type} ${this.size} ${this.status}`
84
+ }, e("slot", {
85
+ key: "05aa22e80691a4afc347a48256f77c6ec3cdef26",
86
+ name: "prefix",
87
+ onSlotchange: this.handleIconPrefix
88
+ })), e("div", {
89
+ key: "44746dfb9b20068c0be4f3a199759fedd1dec48e",
90
+ class: "bq-step-item__content"
91
+ }, e("div", {
92
+ key: "b96a100e4bc735e09583ae9b97ccdf5be44daeae",
93
+ class: {
94
+ "bq-step-item__content--title pe-xs3 text-m leading-regular text-text-primary": true,
95
+ "pointer-events-none": this.isDisabled,
96
+ "text-text-brand": this.isCurrent
97
+ },
98
+ part: "title"
99
+ }, e("slot", {
100
+ key: "66630a986de2488dbb5ec464541fd8ba3a37c151"
101
+ })), e("div", {
102
+ key: "39c91c04160c2ddf5aa910e52d7c9549b8cc96d9",
103
+ class: {
104
+ "bq-step-item__content--description text-s leading-regular opacity-60": true,
105
+ "opacity-60": this.isDisabled
106
+ },
107
+ part: "description"
108
+ }, e("slot", {
109
+ key: "bd882789e1595a6ae867ef2f0d2adf47e8b46dbc",
110
+ name: "description"
111
+ }))));
112
+ }
113
+ get el() {
114
+ return b(this);
115
+ }
116
+ static get watchers() {
117
+ return {
118
+ size: [ "checkPropValues" ],
119
+ status: [ "checkPropValues" ]
120
+ };
121
+ }
122
+ };
123
+
124
+ d.style = s;
125
+
126
+ export { d as bq_step_item };
127
+ //# sourceMappingURL=p-c34e292e.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["STEP_ITEM_STATUS","bqStepItemCss","BqStepItemStyle0","BqStepItem","this","handleIconPrefix","iconElem","el","querySelector","isHTMLElement","size","weight","isCurrent","checkPropValues","validatePropValue","STEPS_SIZE","connectedCallback","componentDidLoad","isDisabled","status","render","h","key","class","part","type","name","onSlotchange"],"sources":["../../packages/beeq/src/components/step-item/bq-step-item.types.ts","../../packages/beeq/src/components/step-item/scss/bq-step-item.scss?tag=bq-step-item&encapsulation=shadow","../../packages/beeq/src/components/step-item/bq-step-item.tsx"],"sourcesContent":["export const STEP_ITEM_STATUS = ['default', 'current', 'completed', 'error', 'disabled'] as const;\nexport type TStepItemStatus = (typeof STEP_ITEM_STATUS)[number];\n","/* -------------------------------------------------------------------------- */\n/* Step item styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-step-item.variables';\n\n:host {\n --bq-icon--color: theme(colors.icon.primary);\n\n @apply bg-bg-primary;\n}\n\n.bq-step-item__prefix.dot,\n.bq-step-item__prefix.icon {\n ::slotted(bq-icon) {\n --bq-icon--color: var(--bq-step-item--prefix-color);\n }\n\n &.current {\n ::slotted(bq-icon) {\n --bq-icon--color: var(--bq-step-item--prefix-color-current);\n }\n }\n\n &.completed {\n ::slotted(bq-icon) {\n --bq-icon--color: var(--bq-step-item--prefix-color-completed);\n }\n }\n\n &.error {\n ::slotted(bq-icon) {\n --bq-icon--color: var(--bq-step-item--prefix-color-error);\n }\n }\n\n &.disabled {\n ::slotted(bq-icon) {\n opacity: 0.6;\n }\n }\n}\n\n.bq-step-item__prefix.numeric {\n @apply flex items-center justify-center rounded-full;\n @apply bg-[--bq-step-item--prefix-num-bg-color] bs-[--bq-step-item--prefix-num-size] is-[--bq-step-item--prefix-num-size];\n @apply text-m font-semibold leading-regular;\n\n &.small {\n @apply text-s [--bq-step-item--prefix-num-size:--bq-spacing-l];\n }\n\n // Status\n\n &.current {\n @apply bg-[var(--bq-step-item--prefix-color-current)] text-[--bq-text--alt];\n }\n\n &.completed {\n @apply bg-ui-success-alt text-text-success;\n }\n\n &.error {\n @apply bg-ui-danger-alt text-text-danger;\n }\n\n &.disabled {\n @apply opacity-60;\n }\n}\n\n.bq-step-item__content--description::slotted(*) {\n @apply text-s leading-regular opacity-60;\n}\n","import { Component, Element, Event, EventEmitter, h, Prop, Watch } from '@stencil/core';\n\nimport { STEP_ITEM_STATUS, TStepItemStatus } from './bq-step-item.types';\nimport { isHTMLElement, validatePropValue } from '../../shared/utils';\nimport { STEPS_SIZE, TStepsSize, TStepsType } from '../steps/bq-steps.types';\n\n/**\n * @part base - The component's base wrapper.\n * @part title - The component's title.\n * @part description - The component's description.\n */\n@Component({\n tag: 'bq-step-item',\n styleUrl: './scss/bq-step-item.scss',\n shadow: true,\n})\nexport class BqStepItem {\n // Own Properties\n // ====================\n\n // Reference to host HTML element\n // ===================================\n @Element() el!: HTMLBqStepItemElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** It defines prefix size */\n @Prop({ reflect: true }) size?: TStepsSize = 'medium';\n\n /** It defines step item appearance based on its status */\n @Prop({ reflect: true }) status?: TStepItemStatus = 'default';\n\n /** It defines the step item type used */\n @Prop({ reflect: true }) type?: TStepsType;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('size')\n @Watch('status')\n checkPropValues() {\n validatePropValue(STEPS_SIZE, 'medium', this.el, 'size');\n validatePropValue(STEP_ITEM_STATUS, 'default', this.el, 'status');\n\n this.handleIconPrefix();\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler emitted when the step item is clicked */\n @Event() bqClick: EventEmitter<{ target: HTMLBqStepItemElement; value: string }>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n connectedCallback() {\n this.checkPropValues();\n }\n\n componentDidLoad() {\n this.handleIconPrefix();\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 get isDisabled(): boolean {\n return this.status === 'disabled';\n }\n\n private get isCurrent(): boolean {\n return this.status === 'current';\n }\n\n private handleIconPrefix = () => {\n const iconElem = this.el.querySelector('[slot=\"prefix\"]');\n if (!iconElem || !isHTMLElement(iconElem, 'bq-icon')) return;\n\n iconElem.size = this.size === 'small' ? 24 : 32;\n iconElem.weight = this.isCurrent ? 'fill' : 'regular';\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div\n class={{\n 'bq-step-item flex gap-s': true,\n [`bq-step-item--${this.status}`]: true,\n 'pointer-events-none opacity-60': this.isDisabled,\n }}\n part=\"base\"\n >\n <div class={`bq-step-item__prefix relative ${this.type} ${this.size} ${this.status}`}>\n <slot name=\"prefix\" onSlotchange={this.handleIconPrefix} />\n </div>\n <div class=\"bq-step-item__content\">\n {/* TITLE */}\n <div\n class={{\n 'bq-step-item__content--title pe-xs3 text-m leading-regular text-text-primary': true,\n 'pointer-events-none': this.isDisabled,\n 'text-text-brand': this.isCurrent,\n }}\n part=\"title\"\n >\n <slot />\n </div>\n {/* DESCRIPTION */}\n <div\n class={{\n 'bq-step-item__content--description text-s leading-regular opacity-60': true,\n 'opacity-60': this.isDisabled,\n }}\n part=\"description\"\n >\n <slot name=\"description\" />\n </div>\n </div>\n </div>\n );\n }\n}\n"],"mappings":";;;;6LAAO,MAAMA,EAAmB,CAAC,UAAW,UAAW,YAAa,QAAS,YCA7E,MAAMC,EAAgB,2iuBACtB,MAAAC,EAAeD,E,MCeFE,EAAU,M,0DA8EbC,KAAAC,iBAAmB,KACzB,MAAMC,EAAWF,KAAKG,GAAGC,cAAc,mBACvC,IAAKF,IAAaG,EAAcH,EAAU,WAAY,OAEtDA,EAASI,KAAON,KAAKM,OAAS,QAAU,GAAK,GAC7CJ,EAASK,OAASP,KAAKQ,UAAY,OAAS,SAAS,E,UAnEV,S,YAGO,U,oBAUpD,eAAAC,GACEC,EAAkBC,EAAY,SAAUX,KAAKG,GAAI,QACjDO,EAAkBd,EAAkB,UAAWI,KAAKG,GAAI,UAExDH,KAAKC,kB,CAcP,iBAAAW,GACEZ,KAAKS,iB,CAGP,gBAAAI,GACEb,KAAKC,kB,CAkBP,cAAYa,GACV,OAAOd,KAAKe,SAAW,U,CAGzB,aAAYP,GACV,OAAOR,KAAKe,SAAW,S,CAezB,MAAAC,GACE,OACEC,EAAA,OAAAC,IAAA,2CACEC,MAAO,CACL,0BAA2B,KAC3B,CAAC,iBAAiBnB,KAAKe,UAAW,KAClC,iCAAkCf,KAAKc,YAEzCM,KAAK,QAELH,EAAA,OAAAC,IAAA,2CAAKC,MAAO,iCAAiCnB,KAAKqB,QAAQrB,KAAKM,QAAQN,KAAKe,UAC1EE,EAAA,QAAAC,IAAA,2CAAMI,KAAK,SAASC,aAAcvB,KAAKC,oBAEzCgB,EAAA,OAAAC,IAAA,2CAAKC,MAAM,yBAETF,EAAA,OAAAC,IAAA,2CACEC,MAAO,CACL,+EAAgF,KAChF,sBAAuBnB,KAAKc,WAC5B,kBAAmBd,KAAKQ,WAE1BY,KAAK,SAELH,EAAA,QAAAC,IAAA,8CAGFD,EAAA,OAAAC,IAAA,2CACEC,MAAO,CACL,uEAAwE,KACxE,aAAcnB,KAAKc,YAErBM,KAAK,eAELH,EAAA,QAAAC,IAAA,2CAAMI,KAAK,kB","ignoreList":[]}
1
+ {"version":3,"names":["STEP_ITEM_STATUS","bqStepItemCss","BqStepItemStyle0","BqStepItem","this","handleIconPrefix","iconElem","el","querySelector","isHTMLElement","size","weight","isCurrent","checkPropValues","validatePropValue","STEPS_SIZE","connectedCallback","componentDidLoad","isDisabled","status","render","h","key","class","part","type","name","onSlotchange"],"sources":["../../packages/beeq/src/components/step-item/bq-step-item.types.ts","../../packages/beeq/src/components/step-item/scss/bq-step-item.scss?tag=bq-step-item&encapsulation=shadow","../../packages/beeq/src/components/step-item/bq-step-item.tsx"],"sourcesContent":["export const STEP_ITEM_STATUS = ['default', 'current', 'completed', 'error', 'disabled'] as const;\nexport type TStepItemStatus = (typeof STEP_ITEM_STATUS)[number];\n","/* -------------------------------------------------------------------------- */\n/* Step item styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-step-item.variables';\n\n:host {\n --bq-icon--color: theme(colors.icon.primary);\n\n @apply bg-bg-primary;\n}\n\n.bq-step-item__prefix.dot,\n.bq-step-item__prefix.icon {\n ::slotted(bq-icon) {\n --bq-icon--color: var(--bq-step-item--prefix-color);\n }\n\n &.current {\n ::slotted(bq-icon) {\n --bq-icon--color: var(--bq-step-item--prefix-color-current);\n }\n }\n\n &.completed {\n ::slotted(bq-icon) {\n --bq-icon--color: var(--bq-step-item--prefix-color-completed);\n }\n }\n\n &.error {\n ::slotted(bq-icon) {\n --bq-icon--color: var(--bq-step-item--prefix-color-error);\n }\n }\n\n &.disabled {\n ::slotted(bq-icon) {\n opacity: 0.6;\n }\n }\n}\n\n.bq-step-item__prefix.numeric {\n @apply flex items-center justify-center rounded-full;\n @apply bg-[--bq-step-item--prefix-num-bg-color] bs-[--bq-step-item--prefix-num-size] is-[--bq-step-item--prefix-num-size];\n @apply text-m font-semibold leading-regular;\n\n &.small {\n @apply text-s [--bq-step-item--prefix-num-size:--bq-spacing-l];\n }\n\n // Status\n\n &.current {\n @apply bg-[var(--bq-step-item--prefix-color-current)] text-[--bq-text--alt];\n }\n\n &.completed {\n @apply bg-ui-success-alt text-text-success;\n }\n\n &.error {\n @apply bg-ui-danger-alt text-text-danger;\n }\n\n &.disabled {\n @apply opacity-60;\n }\n}\n\n.bq-step-item__content--description::slotted(*) {\n @apply text-s leading-regular opacity-60;\n}\n","import { Component, Element, Event, EventEmitter, h, Prop, Watch } from '@stencil/core';\n\nimport { STEP_ITEM_STATUS, TStepItemStatus } from './bq-step-item.types';\nimport { isHTMLElement, validatePropValue } from '../../shared/utils';\nimport { STEPS_SIZE, TStepsSize, TStepsType } from '../steps/bq-steps.types';\n\n/**\n * @part base - The component's base wrapper.\n * @part title - The component's title.\n * @part description - The component's description.\n */\n@Component({\n tag: 'bq-step-item',\n styleUrl: './scss/bq-step-item.scss',\n shadow: true,\n})\nexport class BqStepItem {\n // Own Properties\n // ====================\n\n // Reference to host HTML element\n // ===================================\n @Element() el!: HTMLBqStepItemElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** It defines prefix size */\n @Prop({ reflect: true }) size?: TStepsSize = 'medium';\n\n /** It defines step item appearance based on its status */\n @Prop({ reflect: true }) status?: TStepItemStatus = 'default';\n\n /** It defines the step item type used */\n @Prop({ reflect: true }) type?: TStepsType;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('size')\n @Watch('status')\n checkPropValues() {\n validatePropValue(STEPS_SIZE, 'medium', this.el, 'size');\n validatePropValue(STEP_ITEM_STATUS, 'default', this.el, 'status');\n\n this.handleIconPrefix();\n }\n\n // Events section\n // Requires JSDocs for public API documentation\n // ==============================================\n\n /** Callback handler emitted when the step item is clicked */\n @Event() bqClick: EventEmitter<{ target: HTMLBqStepItemElement; value: string }>;\n\n // Component lifecycle events\n // Ordered by their natural call order\n // =====================================\n\n connectedCallback() {\n this.checkPropValues();\n }\n\n componentDidLoad() {\n this.handleIconPrefix();\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 get isDisabled(): boolean {\n return this.status === 'disabled';\n }\n\n private get isCurrent(): boolean {\n return this.status === 'current';\n }\n\n private handleIconPrefix = () => {\n const iconElem = this.el.querySelector('[slot=\"prefix\"]');\n if (!iconElem || !isHTMLElement(iconElem, 'bq-icon')) return;\n\n iconElem.size = this.size === 'small' ? 24 : 32;\n iconElem.weight = this.isCurrent ? 'fill' : 'regular';\n };\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div\n class={{\n 'bq-step-item flex gap-s': true,\n [`bq-step-item--${this.status}`]: true,\n 'pointer-events-none opacity-60': this.isDisabled,\n }}\n part=\"base\"\n >\n <div class={`bq-step-item__prefix relative ${this.type} ${this.size} ${this.status}`}>\n <slot name=\"prefix\" onSlotchange={this.handleIconPrefix} />\n </div>\n <div class=\"bq-step-item__content\">\n {/* TITLE */}\n <div\n class={{\n 'bq-step-item__content--title pe-xs3 text-m leading-regular text-text-primary': true,\n 'pointer-events-none': this.isDisabled,\n 'text-text-brand': this.isCurrent,\n }}\n part=\"title\"\n >\n <slot />\n </div>\n {/* DESCRIPTION */}\n <div\n class={{\n 'bq-step-item__content--description text-s leading-regular opacity-60': true,\n 'opacity-60': this.isDisabled,\n }}\n part=\"description\"\n >\n <slot name=\"description\" />\n </div>\n </div>\n </div>\n );\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAAO,MAAMA,IAAmB,EAAC,WAAW,WAAW,aAAa,SAAS;;ACA7E,MAAMC,IAAgB;;AACtB,MAAAC,IAAeD;;MCeFE,IAAU;;;;IA8EbC,KAAAC,mBAAmB;MACzB,MAAMC,IAAWF,KAAKG,GAAGC,cAAc;MACvC,KAAKF,MAAaG,EAAcH,GAAU,YAAY;MAEtDA,EAASI,OAAON,KAAKM,SAAS,UAAU,KAAK;MAC7CJ,EAASK,SAASP,KAAKQ,YAAY,SAAS;AAAS;gBAnEV;kBAGO;;;;;EAUpD,eAAAC;IACEC,EAAkBC,GAAY,UAAUX,KAAKG,IAAI;IACjDO,EAAkBd,GAAkB,WAAWI,KAAKG,IAAI;IAExDH,KAAKC;;;;;EAcP,iBAAAW;IACEZ,KAAKS;;EAGP,gBAAAI;IACEb,KAAKC;;;;;;;;;;;;;;EAkBP,cAAYa;IACV,OAAOd,KAAKe,WAAW;;EAGzB,aAAYP;IACV,OAAOR,KAAKe,WAAW;;;;;EAezB,MAAAC;IACE,OACEC,EAAA;MAAAC,KAAA;MACEC,OAAO;QACL,2BAA2B;QAC3B,CAAC,iBAAiBnB,KAAKe,WAAW;QAClC,kCAAkCf,KAAKc;;MAEzCM,MAAK;OAELH,EAAA;MAAAC,KAAA;MAAKC,OAAO,iCAAiCnB,KAAKqB,QAAQrB,KAAKM,QAAQN,KAAKe;OAC1EE,EAAA;MAAAC,KAAA;MAAMI,MAAK;MAASC,cAAcvB,KAAKC;SAEzCgB,EAAA;MAAAC,KAAA;MAAKC,OAAM;OAETF,EAAA;MAAAC,KAAA;MACEC,OAAO;QACL,gFAAgF;QAChF,uBAAuBnB,KAAKc;QAC5B,mBAAmBd,KAAKQ;;MAE1BY,MAAK;OAELH,EAAA;MAAAC,KAAA;SAGFD,EAAA;MAAAC,KAAA;MACEC,OAAO;QACL,wEAAwE;QACxE,cAAcnB,KAAKc;;MAErBM,MAAK;OAELH,EAAA;MAAAC,KAAA;MAAMI,MAAK","ignoreList":[]}
@@ -2,5 +2,91 @@
2
2
  * Built by Endavans
3
3
  * © https://beeq.design - Apache 2 License.
4
4
  */
5
- function t(t){return t.nodeType===Node.ELEMENT_NODE}function n(t){return t.nodeType===Node.TEXT_NODE}function e(r,o=1,u=Infinity){let f="";if(o<=u){if(n(r)){f+=r.textContent}else if(t(r)&&r.hasChildNodes()){const t=o+1;r.childNodes.forEach((n=>{f+=e(n,t,u)}))}}return f}function r(e){const r=e.assignedNodes({flatten:true});let o="";[...r].forEach((e=>{if(t(e)){o+=e.outerHTML}if(n(e)){o+=e.textContent}}));return o}function o(t,n){const r=t.assignedNodes({flatten:true});const{recurse:o=false,maxLevel:u}=n!==null&&n!==void 0?n:{};let f="";[...r].forEach((t=>{f+=e(t,1,o?u:1)}));return f.trim()}function u(t,n){return Array.from(t.querySelectorAll("[slot]")).filter((t=>t.slot===n)).length>0}function f(t,n){var e;const r=n?`[name='${n}']`:"";const o=(e=t.querySelector(`slot${r}`))===null||e===void 0?void 0:e.assignedElements({flatten:true});if(!o||!Array.isArray(o))return false;return!!o.length}export{o as a,f as b,r as g,u as h};
5
+ /*=========================================================================================
6
+ = Credit: =
7
+ = https://github.com/shoelace-style/shoelace/blob/next/src/utilities/slot.ts =
8
+ =========================================================================================*/
9
+ function isElementNode(t) {
10
+ return t.nodeType === Node.ELEMENT_NODE;
11
+ }
12
+
13
+ function isTextNode(t) {
14
+ return t.nodeType === Node.TEXT_NODE;
15
+ }
16
+
17
+ function getText(t, e = 1, n = Infinity) {
18
+ let o = "";
19
+ if (e <= n) {
20
+ if (isTextNode(t)) {
21
+ o += t.textContent;
22
+ } else if (isElementNode(t) && t.hasChildNodes()) {
23
+ const r = e + 1;
24
+ t.childNodes.forEach((t => {
25
+ o += getText(t, r, n);
26
+ }));
27
+ }
28
+ }
29
+ return o;
30
+ }
31
+
32
+ /**
33
+ * Iterates over all of its assigned element and text nodes of a given slot and returns the concatenated HTML as a string.
34
+ *
35
+ * @param {HTMLSlotElement} slot - Slot HTML element
36
+ * @return {string} The concatenated HTML as a string
37
+ */ function getInnerHTML(t) {
38
+ const e = t.assignedNodes({
39
+ flatten: true
40
+ });
41
+ let n = "";
42
+ [ ...e ].forEach((t => {
43
+ if (isElementNode(t)) {
44
+ n += t.outerHTML;
45
+ }
46
+ if (isTextNode(t)) {
47
+ n += t.textContent;
48
+ }
49
+ }));
50
+ return n;
51
+ }
52
+
53
+ function getTextContent(t, e) {
54
+ const n = t.assignedNodes({
55
+ flatten: true
56
+ });
57
+ const {recurse: o = false, maxLevel: r} = e !== null && e !== void 0 ? e : {};
58
+ let s = "";
59
+ [ ...n ].forEach((t => {
60
+ s += getText(t, 1, o ? r : 1);
61
+ }));
62
+ return s.trim();
63
+ }
64
+
65
+ /**
66
+ * Determines whether a slot with the given name exists in an element.
67
+ *
68
+ * @param {HTMLElement} el - The HTMl element to check
69
+ * @param {string} name - Name of the slot to check inside the HTML element
70
+ * @return {boolean} True or false if the given HTML element has slot
71
+ */ function hasSlot(t, e) {
72
+ return Array.from(t.querySelectorAll("[slot]")).filter((t => t.slot === e)).length > 0;
73
+ }
74
+
75
+ /**
76
+ * Will return whether if a given slot have HTML children elements or not.
77
+ *
78
+ * @param {HTMLElement} el - The HTML element that holds the slot
79
+ * @param {string} [name] - Optional slot name
80
+ * @return {boolean} True or false if the slot have HTML children elements
81
+ */ function hasSlotContent(t, e) {
82
+ var n;
83
+ const o = e ? `[name='${e}']` : "";
84
+ const r = (n = t.querySelector(`slot${o}`)) === null || n === void 0 ? void 0 : n.assignedElements({
85
+ flatten: true
86
+ });
87
+ if (!r || !Array.isArray(r)) return false;
88
+ return !!r.length;
89
+ }
90
+
91
+ export { getTextContent as a, hasSlotContent as b, getInnerHTML as g, hasSlot as h };
6
92
  //# sourceMappingURL=p-d7a88b16.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["isElementNode","node","nodeType","Node","ELEMENT_NODE","isTextNode","TEXT_NODE","getText","currentLevel","maxLevel","Infinity","text","textContent","hasChildNodes","nextLevel","childNodes","forEach","getInnerHTML","slot","nodes","assignedNodes","flatten","html","outerHTML","getTextContent","options","recurse","trim","hasSlot","el","name","Array","from","querySelectorAll","filter","slottedEl","length","hasSlotContent","slotSelector","slotContent","_a","querySelector","assignedElements","isArray"],"sources":["../../packages/beeq/src/shared/utils/slot.ts"],"sourcesContent":["/*=========================================================================================\n= Credit: =\n= https://github.com/shoelace-style/shoelace/blob/next/src/utilities/slot.ts =\n=========================================================================================*/\n\nfunction isElementNode(node: Node): node is HTMLElement {\n return node.nodeType === Node.ELEMENT_NODE;\n}\n\nfunction isTextNode(node: Node): node is Text {\n return node.nodeType === Node.TEXT_NODE;\n}\n\nfunction getText(node: Node, currentLevel = 1, maxLevel = Infinity): string {\n let text = '';\n if (currentLevel <= maxLevel) {\n if (isTextNode(node)) {\n text += node.textContent;\n } else if (isElementNode(node) && node.hasChildNodes()) {\n const nextLevel = currentLevel + 1;\n node.childNodes.forEach((node) => {\n text += getText(node, nextLevel, maxLevel);\n });\n }\n }\n\n return text;\n}\n\nexport interface IOptions {\n recurse: boolean;\n maxLevel?: number;\n}\n\n/**\n * Iterates over all of its assigned element and text nodes of a given slot and returns the concatenated HTML as a string.\n *\n * @param {HTMLSlotElement} slot - Slot HTML element\n * @return {string} The concatenated HTML as a string\n */\nexport function getInnerHTML(slot: HTMLSlotElement): string {\n const nodes = slot.assignedNodes({ flatten: true });\n let html = '';\n\n [...nodes].forEach((node) => {\n if (isElementNode(node)) {\n html += node.outerHTML;\n }\n\n if (isTextNode(node)) {\n html += node.textContent;\n }\n });\n\n return html;\n}\n\n/**\n * Iterates over all of its assigned text nodes of a given slot and returns the concatenated text as a string.\n *\n * @param {HTMLSlotElement} slot - Slot HTML element\n * @return {string} The concatenated text as a string\n */\nexport function getTextContent(slot: HTMLSlotElement): string;\n/**\n * Iterates over all of its assigned text nodes of a given slot and returns the concatenated text as a string.\n *\n * @param {HTMLSlotElement} slot - Slot HTML element\n * @param {IOptions} options - Options to retrieve text\n * @return {string} The concatenated text as a string\n */\nexport function getTextContent(slot: HTMLSlotElement, options: IOptions): string;\nexport function getTextContent(slot: HTMLSlotElement, options?: IOptions): string {\n const nodes = slot.assignedNodes({ flatten: true });\n const { recurse = false, maxLevel } = options ?? {};\n let text = '';\n\n [...nodes].forEach((node) => {\n text += getText(node, 1, recurse ? maxLevel : 1);\n });\n\n return text.trim();\n}\n\n/**\n * Determines whether a slot with the given name exists in an element.\n *\n * @param {HTMLElement} el - The HTMl element to check\n * @param {string} name - Name of the slot to check inside the HTML element\n * @return {boolean} True or false if the given HTML element has slot\n */\nexport function hasSlot(el: HTMLElement, name: string): boolean {\n return (\n Array.from(el.querySelectorAll('[slot]')).filter((slottedEl: HTMLSlotElement) => slottedEl.slot === name).length > 0\n );\n}\n\n/**\n * Will return whether if a given slot have HTML children elements or not.\n *\n * @param {HTMLElement} el - The HTML element that holds the slot\n * @param {string} [name] - Optional slot name\n * @return {boolean} True or false if the slot have HTML children elements\n */\nexport function hasSlotContent(el: HTMLElement, name?: string): boolean {\n const slotSelector = name ? `[name='${name}']` : '';\n const slotContent = el.querySelector<HTMLSlotElement>(`slot${slotSelector}`)?.assignedElements({ flatten: true });\n if (!slotContent || !Array.isArray(slotContent)) return false;\n\n return !!slotContent.length;\n}\n"],"mappings":";;;;AAKA,SAASA,EAAcC,GACrB,OAAOA,EAAKC,WAAaC,KAAKC,YAChC,CAEA,SAASC,EAAWJ,GAClB,OAAOA,EAAKC,WAAaC,KAAKG,SAChC,CAEA,SAASC,EAAQN,EAAYO,EAAe,EAAGC,EAAWC,UACxD,IAAIC,EAAO,GACX,GAAIH,GAAgBC,EAAU,CAC5B,GAAIJ,EAAWJ,GAAO,CACpBU,GAAQV,EAAKW,W,MACR,GAAIZ,EAAcC,IAASA,EAAKY,gBAAiB,CACtD,MAAMC,EAAYN,EAAe,EACjCP,EAAKc,WAAWC,SAASf,IACvBU,GAAQJ,EAAQN,EAAMa,EAAWL,EAAS,G,EAKhD,OAAOE,CACT,C,SAagBM,EAAaC,GAC3B,MAAMC,EAAQD,EAAKE,cAAc,CAAEC,QAAS,OAC5C,IAAIC,EAAO,GAEX,IAAIH,GAAOH,SAASf,IAClB,GAAID,EAAcC,GAAO,CACvBqB,GAAQrB,EAAKsB,S,CAGf,GAAIlB,EAAWJ,GAAO,CACpBqB,GAAQrB,EAAKW,W,KAIjB,OAAOU,CACT,C,SAiBgBE,EAAeN,EAAuBO,GACpD,MAAMN,EAAQD,EAAKE,cAAc,CAAEC,QAAS,OAC5C,MAAMK,QAAEA,EAAU,MAAKjB,SAAEA,GAAagB,IAAO,MAAPA,SAAO,EAAPA,EAAW,GACjD,IAAId,EAAO,GAEX,IAAIQ,GAAOH,SAASf,IAClBU,GAAQJ,EAAQN,EAAM,EAAGyB,EAAUjB,EAAW,EAAE,IAGlD,OAAOE,EAAKgB,MACd,C,SASgBC,EAAQC,EAAiBC,GACvC,OACEC,MAAMC,KAAKH,EAAGI,iBAAiB,WAAWC,QAAQC,GAA+BA,EAAUjB,OAASY,IAAMM,OAAS,CAEvH,C,SASgBC,EAAeR,EAAiBC,G,MAC9C,MAAMQ,EAAeR,EAAO,UAAUA,MAAW,GACjD,MAAMS,GAAcC,EAAAX,EAAGY,cAA+B,OAAOH,QAAe,MAAAE,SAAA,SAAAA,EAAEE,iBAAiB,CAAErB,QAAS,OAC1G,IAAKkB,IAAgBR,MAAMY,QAAQJ,GAAc,OAAO,MAExD,QAASA,EAAYH,MACvB,Q","ignoreList":[]}
1
+ {"version":3,"names":["isElementNode","node","nodeType","Node","ELEMENT_NODE","isTextNode","TEXT_NODE","getText","currentLevel","maxLevel","Infinity","text","textContent","hasChildNodes","nextLevel","childNodes","forEach","getInnerHTML","slot","nodes","assignedNodes","flatten","html","outerHTML","getTextContent","options","recurse","trim","hasSlot","el","name","Array","from","querySelectorAll","filter","slottedEl","length","hasSlotContent","slotSelector","slotContent","_a","querySelector","assignedElements","isArray"],"sources":["../../packages/beeq/src/shared/utils/slot.ts"],"sourcesContent":["/*=========================================================================================\n= Credit: =\n= https://github.com/shoelace-style/shoelace/blob/next/src/utilities/slot.ts =\n=========================================================================================*/\n\nfunction isElementNode(node: Node): node is HTMLElement {\n return node.nodeType === Node.ELEMENT_NODE;\n}\n\nfunction isTextNode(node: Node): node is Text {\n return node.nodeType === Node.TEXT_NODE;\n}\n\nfunction getText(node: Node, currentLevel = 1, maxLevel = Infinity): string {\n let text = '';\n if (currentLevel <= maxLevel) {\n if (isTextNode(node)) {\n text += node.textContent;\n } else if (isElementNode(node) && node.hasChildNodes()) {\n const nextLevel = currentLevel + 1;\n node.childNodes.forEach((node) => {\n text += getText(node, nextLevel, maxLevel);\n });\n }\n }\n\n return text;\n}\n\nexport interface IOptions {\n recurse: boolean;\n maxLevel?: number;\n}\n\n/**\n * Iterates over all of its assigned element and text nodes of a given slot and returns the concatenated HTML as a string.\n *\n * @param {HTMLSlotElement} slot - Slot HTML element\n * @return {string} The concatenated HTML as a string\n */\nexport function getInnerHTML(slot: HTMLSlotElement): string {\n const nodes = slot.assignedNodes({ flatten: true });\n let html = '';\n\n [...nodes].forEach((node) => {\n if (isElementNode(node)) {\n html += node.outerHTML;\n }\n\n if (isTextNode(node)) {\n html += node.textContent;\n }\n });\n\n return html;\n}\n\n/**\n * Iterates over all of its assigned text nodes of a given slot and returns the concatenated text as a string.\n *\n * @param {HTMLSlotElement} slot - Slot HTML element\n * @return {string} The concatenated text as a string\n */\nexport function getTextContent(slot: HTMLSlotElement): string;\n/**\n * Iterates over all of its assigned text nodes of a given slot and returns the concatenated text as a string.\n *\n * @param {HTMLSlotElement} slot - Slot HTML element\n * @param {IOptions} options - Options to retrieve text\n * @return {string} The concatenated text as a string\n */\nexport function getTextContent(slot: HTMLSlotElement, options: IOptions): string;\nexport function getTextContent(slot: HTMLSlotElement, options?: IOptions): string {\n const nodes = slot.assignedNodes({ flatten: true });\n const { recurse = false, maxLevel } = options ?? {};\n let text = '';\n\n [...nodes].forEach((node) => {\n text += getText(node, 1, recurse ? maxLevel : 1);\n });\n\n return text.trim();\n}\n\n/**\n * Determines whether a slot with the given name exists in an element.\n *\n * @param {HTMLElement} el - The HTMl element to check\n * @param {string} name - Name of the slot to check inside the HTML element\n * @return {boolean} True or false if the given HTML element has slot\n */\nexport function hasSlot(el: HTMLElement, name: string): boolean {\n return (\n Array.from(el.querySelectorAll('[slot]')).filter((slottedEl: HTMLSlotElement) => slottedEl.slot === name).length > 0\n );\n}\n\n/**\n * Will return whether if a given slot have HTML children elements or not.\n *\n * @param {HTMLElement} el - The HTML element that holds the slot\n * @param {string} [name] - Optional slot name\n * @return {boolean} True or false if the slot have HTML children elements\n */\nexport function hasSlotContent(el: HTMLElement, name?: string): boolean {\n const slotSelector = name ? `[name='${name}']` : '';\n const slotContent = el.querySelector<HTMLSlotElement>(`slot${slotSelector}`)?.assignedElements({ flatten: true });\n if (!slotContent || !Array.isArray(slotContent)) return false;\n\n return !!slotContent.length;\n}\n"],"mappings":";;;;;;;;AAKA,SAASA,cAAcC;EACrB,OAAOA,EAAKC,aAAaC,KAAKC;AAChC;;AAEA,SAASC,WAAWJ;EAClB,OAAOA,EAAKC,aAAaC,KAAKG;AAChC;;AAEA,SAASC,QAAQN,GAAYO,IAAe,GAAGC,IAAWC;EACxD,IAAIC,IAAO;EACX,IAAIH,KAAgBC,GAAU;IAC5B,IAAIJ,WAAWJ,IAAO;MACpBU,KAAQV,EAAKW;WACR,IAAIZ,cAAcC,MAASA,EAAKY,iBAAiB;MACtD,MAAMC,IAAYN,IAAe;MACjCP,EAAKc,WAAWC,SAASf;QACvBU,KAAQJ,QAAQN,GAAMa,GAAWL;AAAS;;;EAKhD,OAAOE;AACT;;;;;;;aAagBM,aAAaC;EAC3B,MAAMC,IAAQD,EAAKE,cAAc;IAAEC,SAAS;;EAC5C,IAAIC,IAAO;EAEX,KAAIH,IAAOH,SAASf;IAClB,IAAID,cAAcC,IAAO;MACvBqB,KAAQrB,EAAKsB;;IAGf,IAAIlB,WAAWJ,IAAO;MACpBqB,KAAQrB,EAAKW;;;EAIjB,OAAOU;AACT;;SAiBgBE,eAAeN,GAAuBO;EACpD,MAAMN,IAAQD,EAAKE,cAAc;IAAEC,SAAS;;EAC5C,OAAMK,SAAEA,IAAU,OAAKjB,UAAEA,KAAagB,MAAO,QAAPA,WAAO,IAAPA,IAAW;EACjD,IAAId,IAAO;EAEX,KAAIQ,IAAOH,SAASf;IAClBU,KAAQJ,QAAQN,GAAM,GAAGyB,IAAUjB,IAAW;AAAE;EAGlD,OAAOE,EAAKgB;AACd;;;;;;;;aASgBC,QAAQC,GAAiBC;EACvC,OACEC,MAAMC,KAAKH,EAAGI,iBAAiB,WAAWC,QAAQC,KAA+BA,EAAUjB,SAASY,IAAMM,SAAS;AAEvH;;;;;;;;aASgBC,eAAeR,GAAiBC;;EAC9C,MAAMQ,IAAeR,IAAO,UAAUA,QAAW;EACjD,MAAMS,KAAcC,IAAAX,EAAGY,cAA+B,OAAOH,UAAe,QAAAE,WAAA,aAAAA,EAAEE,iBAAiB;IAAErB,SAAS;;EAC1G,KAAKkB,MAAgBR,MAAMY,QAAQJ,IAAc,OAAO;EAExD,SAASA,EAAYH;AACvB","ignoreList":[]}
@@ -0,0 +1,173 @@
1
+ /*!
2
+ * Built by Endavans
3
+ * © https://beeq.design - Apache 2 License.
4
+ */
5
+ import { r as a, h as r, g as b } from "./p-0c42c08a.js";
6
+
7
+ import { F as e } from "./p-38d4bd8a.js";
8
+
9
+ const t = '::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-tooltip--arrow:before,.rotate-45,.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}.bq-tooltip--panel,.shadow-\\[shadow\\:--bq-tooltip--box-shadow\\]{--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000}.pointer-events-none{pointer-events:none}.fixed{position:fixed}.absolute{position:absolute}.start-0{inset-inline-start:0}.-z-\\[1\\]{z-index:-1}.z-\\[--bq-tooltip--z-index\\]{z-index:var(--bq-tooltip--z-index)}.box-border{box-sizing:border-box}.rotate-45{--tw-rotate:45deg}.rotate-45,.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))}.rounded-\\[--bq-tooltip--border-radius\\]{border-radius:var(--bq-tooltip--border-radius)}.border-\\[length\\:--bq-tooltip--border-width\\]{border-width:var(--bq-tooltip--border-width)}.border-\\[color\\:--bq-tooltip--border-color\\]{border-color:var(--bq-tooltip--border-color)}.bg-\\[--bq-tooltip--background-color\\]{background-color:var(--bq-tooltip--background-color)}.text-\\[length\\:--bq-tooltip--font-size\\]{font-size:var(--bq-tooltip--font-size)}.leading-\\[--bq-tooltip--line-height\\]{line-height:var(--bq-tooltip--line-height)}.text-\\[color\\:--bq-tooltip--text-color\\]{color:var(--bq-tooltip--text-color)}.shadow-\\[shadow\\:--bq-tooltip--box-shadow\\]{--tw-shadow:var(--bq-tooltip--box-shadow);--tw-shadow-colored:var(--bq-tooltip--box-shadow);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.content-empty{--tw-content:"";content:var(--tw-content)}.bs-2{block-size:.5rem}.is-2{inline-size:.5rem}.is-\\[--bq-tooltip--width\\]{inline-size:var(--bq-tooltip--width)}.max-is-\\[--bq-tooltip--max-width\\]{max-inline-size:var(--bq-tooltip--max-width)}.p-b-\\[--bq-tooltip--paddingY\\]{padding-block:var(--bq-tooltip--paddingY)}.p-i-\\[--bq-tooltip--paddingX\\]{padding-inline:var(--bq-tooltip--paddingX)}.inset-bs-0{inset-block-start:0}@-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-tooltip--background-color:var(--bq-ui--inverse);--bq-tooltip--box-shadow:var(--bq-box-shadow--m);--bq-tooltip--font-size:var(--bq-font-size--m);--bq-tooltip--line-height:var(--bq-font-line-height--regular);--bq-tooltip--text-color:var(--bq-text--inverse);--bq-tooltip--paddingX:var(--bq-spacing-xs);--bq-tooltip--paddingY:var(--bq-spacing-xs2);--bq-tooltip--border-color:transparent;--bq-tooltip--border-radius:var(--bq-radius--s);--bq-tooltip--border-style:none;--bq-tooltip--border-width:unset;--bq-tooltip--max-width:320px;--bq-tooltip--width:max-content;--bq-tooltip--z-index:10}.bq-tooltip--panel{--tw-shadow:var(--bq-tooltip--box-shadow);--tw-shadow-colored:var(--bq-tooltip--box-shadow);-webkit-animation:fade-in .3s ease 0s;animation:fade-in .3s ease 0s;background-color:var(--bq-tooltip--background-color);border-color:var(--bq-tooltip--border-color);border-radius:var(--bq-tooltip--border-radius);border-width:var(--bq-tooltip--border-width);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);box-sizing:border-box;color:var(--bq-tooltip--text-color);font-size:var(--bq-tooltip--font-size);inline-size:var(--bq-tooltip--width);line-height:var(--bq-tooltip--line-height);max-inline-size:var(--bq-tooltip--max-width);padding-block:var(--bq-tooltip--paddingY);padding-inline:var(--bq-tooltip--paddingX);pointer-events:none;position:fixed;z-index:var(--bq-tooltip--z-index)}.bq-tooltip--arrow,.bq-tooltip--arrow:before{block-size:.5rem;inline-size:.5rem;position:absolute;z-index:-1}.bq-tooltip--arrow:before{--tw-rotate:45deg;--tw-content:"";background-color:var(--bq-tooltip--background-color);content:var(--tw-content);inset-block-start:0;inset-inline-start:0;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))}.visible{visibility:visible}.static{position:static}.relative{position:relative}.hidden{display:none}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}';
10
+
11
+ const n = t;
12
+
13
+ const q = class {
14
+ constructor(r) {
15
+ a(this, r);
16
+ // Local methods
17
+ // Internal business logic.
18
+ // These methods cannot be called from the host element.
19
+ // =======================================================
20
+ this.handleTriggerMouseOver = () => {
21
+ (async () => {
22
+ if (this.displayOn !== "hover") return;
23
+ await this.show();
24
+ })();
25
+ };
26
+ this.handleTriggerMouseLeave = () => {
27
+ (async () => {
28
+ if (this.displayOn !== "hover") return;
29
+ await this.hide();
30
+ })();
31
+ };
32
+ this.handleTriggerOnClick = () => {
33
+ (async () => {
34
+ if (this.displayOn !== "click") return;
35
+ await (this.visible ? this.hide() : this.show());
36
+ })();
37
+ };
38
+ this.showTooltip = () => {
39
+ var a;
40
+ if (!this.panel) return;
41
+ (a = this.floatingUI) === null || a === void 0 ? void 0 : a.update();
42
+ };
43
+ this.hideTooltip = () => {
44
+ if (!this.panel) return;
45
+ this.visible = false;
46
+ };
47
+ this.alwaysVisible = false;
48
+ this.distance = 10;
49
+ this.hideArrow = false;
50
+ this.placement = "top";
51
+ this.sameWidth = false;
52
+ this.displayOn = "hover";
53
+ this.visible = false;
54
+ }
55
+ // Prop lifecycle events
56
+ // =======================
57
+ async handleVisibleChange() {
58
+ if (!this.visible && !this.alwaysVisible) {
59
+ return await this.hide();
60
+ }
61
+ await this.show();
62
+ }
63
+ handleFloatingUIOptionsChange() {
64
+ this.floatingUI.init({
65
+ placement: this.placement,
66
+ distance: this.distance,
67
+ sameWidth: this.sameWidth,
68
+ strategy: "fixed"
69
+ });
70
+ }
71
+ // Events section
72
+ // Requires JSDocs for public API documentation
73
+ // ==============================================
74
+ // Component lifecycle events
75
+ // Ordered by their natural call order
76
+ // =====================================
77
+ componentDidLoad() {
78
+ this.floatingUI = new e(this.trigger, this.panel, {
79
+ ...!this.hideArrow && {
80
+ arrow: this.arrow
81
+ },
82
+ placement: this.placement,
83
+ distance: this.distance,
84
+ sameWidth: this.sameWidth,
85
+ strategy: "fixed",
86
+ skidding: 0
87
+ });
88
+ }
89
+ disconnectedCallback() {
90
+ var a;
91
+ (a = this.floatingUI) === null || a === void 0 ? void 0 : a.destroy();
92
+ }
93
+ // Listeners
94
+ // ==============
95
+ async handleDocumentMouseDown(a) {
96
+ // Close when clicking outside of the close element
97
+ const r = a.composedPath();
98
+ if (!r.includes(this.el)) {
99
+ await this.hide();
100
+ }
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
+ /** Shows the tooltip */
109
+ async show() {
110
+ this.visible = true;
111
+ this.showTooltip();
112
+ }
113
+ /** Hides the tooltip */ async hide() {
114
+ if (this.alwaysVisible) return;
115
+ this.visible = false;
116
+ this.hideTooltip();
117
+ }
118
+ get isHidden() {
119
+ return !this.visible && !this.alwaysVisible;
120
+ }
121
+ // render() function
122
+ // Always the last one in the class.
123
+ // ===================================
124
+ render() {
125
+ return r("div", {
126
+ key: "c36207e7e8155aae5a2ad3c80120b8fd908df200",
127
+ class: "bq-tooltip relative",
128
+ part: "base"
129
+ }, r("div", {
130
+ key: "e58fbdff053581ef7f9fb10d4b6e3a557978b637",
131
+ class: "bq-tooltip--trigger",
132
+ onMouseOver: this.handleTriggerMouseOver,
133
+ onMouseLeave: this.handleTriggerMouseLeave,
134
+ onClick: this.handleTriggerOnClick,
135
+ ref: a => this.trigger = a,
136
+ part: "trigger"
137
+ }, r("slot", {
138
+ key: "b3fadd7f2fdcdc054f3d520666ab2c99d150c84a",
139
+ name: "trigger"
140
+ })), r("div", {
141
+ key: "c2a93ea78b434e5505c71ad1c60de953f8857f8e",
142
+ class: "bq-tooltip--panel",
143
+ "aria-hidden": this.isHidden,
144
+ hidden: this.isHidden,
145
+ role: "tooltip",
146
+ ref: a => this.panel = a,
147
+ part: "panel"
148
+ }, !this.hideArrow && r("div", {
149
+ key: "0f9d3ab3e82fb0291fc1657a9d069bdec11b901a",
150
+ class: "bq-tooltip--arrow",
151
+ ref: a => this.arrow = a
152
+ }), r("slot", {
153
+ key: "94fbb85a8c8cc0fe05e73d976b4dd71cab6b4bce"
154
+ })));
155
+ }
156
+ get el() {
157
+ return b(this);
158
+ }
159
+ static get watchers() {
160
+ return {
161
+ visible: [ "handleVisibleChange" ],
162
+ distance: [ "handleFloatingUIOptionsChange" ],
163
+ hideArrow: [ "handleFloatingUIOptionsChange" ],
164
+ placement: [ "handleFloatingUIOptionsChange" ],
165
+ sameWidth: [ "handleFloatingUIOptionsChange" ]
166
+ };
167
+ }
168
+ };
169
+
170
+ q.style = n;
171
+
172
+ export { q as bq_tooltip };
173
+ //# sourceMappingURL=p-db18eba1.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["bqTooltipCss","BqTooltipStyle0","BqTooltip","this","handleTriggerMouseOver","displayOn","show","handleTriggerMouseLeave","hide","handleTriggerOnClick","visible","showTooltip","panel","_a","floatingUI","update","hideTooltip","handleVisibleChange","alwaysVisible","handleFloatingUIOptionsChange","init","placement","distance","sameWidth","strategy","componentDidLoad","FloatingUI","trigger","hideArrow","arrow","skidding","disconnectedCallback","destroy","handleDocumentMouseDown","event","path","composedPath","includes","el","isHidden","render","h","key","class","part","onMouseOver","onMouseLeave","onClick","ref","name","hidden","role"],"sources":["../../packages/beeq/src/components/tooltip/scss/bq-tooltip.scss?tag=bq-tooltip&encapsulation=shadow","../../packages/beeq/src/components/tooltip/bq-tooltip.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Tooltip styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-tooltip.variables';\n\n.bq-tooltip--panel {\n @include animation-fade-in;\n @apply pointer-events-none fixed z-[--bq-tooltip--z-index] box-border bg-[--bq-tooltip--background-color];\n @apply is-[--bq-tooltip--width] max-is-[--bq-tooltip--max-width] p-b-[--bq-tooltip--paddingY] p-i-[--bq-tooltip--paddingX];\n @apply text-[length:--bq-tooltip--font-size] leading-[--bq-tooltip--line-height] text-[color:--bq-tooltip--text-color];\n @apply rounded-[--bq-tooltip--border-radius] border-[length:--bq-tooltip--border-width] border-[color:--bq-tooltip--border-color];\n @apply shadow-[shadow:--bq-tooltip--box-shadow];\n}\n\n.bq-tooltip--arrow {\n &,\n &::before {\n @apply absolute -z-[1] bs-2 is-2;\n }\n\n &::before {\n @apply start-0 rotate-45 bg-[--bq-tooltip--background-color] content-empty inset-bs-0;\n }\n}\n","import { Component, Element, h, Listen, Method, Prop, Watch } from '@stencil/core';\n\nimport { Placement } from '../../services/interfaces';\nimport { FloatingUI } from '../../services/libraries';\n\n/**\n * @part base - The component wrapper container inside the shadow DOM\n * @part trigger - The `<div>` container that holds the element which displays tooltip on hover\n * @part panel - The `<div>` container that holds the tooltip content\n */\n@Component({\n tag: 'bq-tooltip',\n styleUrl: './scss/bq-tooltip.scss',\n shadow: true,\n})\nexport class BqTooltip {\n // Own Properties\n // ====================\n private trigger: HTMLElement;\n private panel: HTMLElement;\n private arrow: HTMLElement;\n private floatingUI: FloatingUI;\n\n // Reference to host HTML element\n // ===================================\n @Element() el!: HTMLBqTooltipElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** If true, the tooltip will always be visible */\n @Prop() alwaysVisible?: boolean = false;\n\n /** Distance between trigger element and tooltip */\n @Prop({ reflect: true }) distance?: number = 10;\n\n /** If true, the arrow on the tooltip content won't be shown */\n @Prop({ reflect: true }) hideArrow?: boolean = false;\n\n /* Defines the position of the tooltip */\n @Prop({ reflect: true }) placement?: Placement = 'top';\n\n /** Whether the tooltip should have the same width as the trigger element\n * (applicable only for content shorter than the trigger element) */\n @Prop({ reflect: true }) sameWidth?: boolean = false;\n\n /** Set the action when the tooltip should be displayed, on hover (default) or click */\n @Prop({ reflect: true }) displayOn: 'click' | 'hover' = 'hover';\n\n /**\n * Indicates whether or not the tooltip is visible when the component is first rendered,\n * and when interacting with the trigger\n */\n @Prop({ reflect: true, mutable: true }) visible? = false;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('visible')\n async handleVisibleChange() {\n if (!this.visible && !this.alwaysVisible) {\n return await this.hide();\n }\n\n await this.show();\n }\n\n @Watch('distance')\n @Watch('hideArrow')\n @Watch('placement')\n @Watch('sameWidth')\n handleFloatingUIOptionsChange() {\n this.floatingUI.init({\n placement: this.placement,\n distance: this.distance,\n sameWidth: this.sameWidth,\n strategy: 'fixed',\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 componentDidLoad() {\n this.floatingUI = new FloatingUI(this.trigger, this.panel, {\n ...(!this.hideArrow && { arrow: this.arrow }),\n placement: this.placement,\n distance: this.distance,\n sameWidth: this.sameWidth,\n strategy: 'fixed',\n skidding: 0,\n });\n }\n\n disconnectedCallback() {\n this.floatingUI?.destroy();\n }\n // Listeners\n // ==============\n\n @Listen('mousedown', { target: 'document' })\n async handleDocumentMouseDown(event: MouseEvent) {\n // Close when clicking outside of the close element\n const path = event.composedPath();\n if (!path.includes(this.el)) {\n await this.hide();\n }\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 /** Shows the tooltip */\n @Method()\n async show() {\n this.visible = true;\n this.showTooltip();\n }\n\n /** Hides the tooltip */\n @Method()\n async hide() {\n if (this.alwaysVisible) return;\n\n this.visible = false;\n this.hideTooltip();\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleTriggerMouseOver = () => {\n (async () => {\n if (this.displayOn !== 'hover') return;\n await this.show();\n })();\n };\n\n private handleTriggerMouseLeave = () => {\n (async () => {\n if (this.displayOn !== 'hover') return;\n await this.hide();\n })();\n };\n\n private handleTriggerOnClick = () => {\n (async () => {\n if (this.displayOn !== 'click') return;\n await (this.visible ? this.hide() : this.show());\n })();\n };\n\n private showTooltip = () => {\n if (!this.panel) return;\n this.floatingUI?.update();\n };\n\n private hideTooltip = () => {\n if (!this.panel) return;\n this.visible = false;\n };\n\n private get isHidden() {\n return !this.visible && !this.alwaysVisible;\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div class=\"bq-tooltip relative\" part=\"base\">\n {/* TRIGGER */}\n <div\n class=\"bq-tooltip--trigger\"\n onMouseOver={this.handleTriggerMouseOver}\n onMouseLeave={this.handleTriggerMouseLeave}\n onClick={this.handleTriggerOnClick}\n ref={(el) => (this.trigger = el)}\n part=\"trigger\"\n >\n <slot name=\"trigger\" />\n </div>\n {/* PANEL */}\n <div\n class=\"bq-tooltip--panel\"\n aria-hidden={this.isHidden}\n hidden={this.isHidden}\n role=\"tooltip\"\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n >\n {!this.hideArrow && <div class=\"bq-tooltip--arrow\" ref={(el) => (this.arrow = el)} />}\n <slot />\n </div>\n </div>\n );\n }\n}\n"],"mappings":";;;;sFAAA,MAAMA,EAAe,oqtBACrB,MAAAC,EAAeD,E,MCcFE,EAAS,M,yBAkIZC,KAAAC,uBAAyB,KAC/B,WACE,GAAID,KAAKE,YAAc,QAAS,aAC1BF,KAAKG,MACZ,EAHD,EAGI,EAGEH,KAAAI,wBAA0B,KAChC,WACE,GAAIJ,KAAKE,YAAc,QAAS,aAC1BF,KAAKK,MACZ,EAHD,EAGI,EAGEL,KAAAM,qBAAuB,KAC7B,WACE,GAAIN,KAAKE,YAAc,QAAS,aACzBF,KAAKO,QAAUP,KAAKK,OAASL,KAAKG,OAC1C,EAHD,EAGI,EAGEH,KAAAQ,YAAc,K,MACpB,IAAKR,KAAKS,MAAO,QACjBC,EAAAV,KAAKW,cAAU,MAAAD,SAAA,SAAAA,EAAEE,QAAQ,EAGnBZ,KAAAa,YAAc,KACpB,IAAKb,KAAKS,MAAO,OACjBT,KAAKO,QAAU,KAAK,E,mBA1IY,M,cAGW,G,eAGE,M,eAGE,M,eAIF,M,eAGS,Q,aAML,K,CAMnD,yBAAMO,GACJ,IAAKd,KAAKO,UAAYP,KAAKe,cAAe,CACxC,aAAaf,KAAKK,M,OAGdL,KAAKG,M,CAOb,6BAAAa,GACEhB,KAAKW,WAAWM,KAAK,CACnBC,UAAWlB,KAAKkB,UAChBC,SAAUnB,KAAKmB,SACfC,UAAWpB,KAAKoB,UAChBC,SAAU,S,CAWd,gBAAAC,GACEtB,KAAKW,WAAa,IAAIY,EAAWvB,KAAKwB,QAASxB,KAAKS,MAAO,KACpDT,KAAKyB,WAAa,CAAEC,MAAO1B,KAAK0B,OACrCR,UAAWlB,KAAKkB,UAChBC,SAAUnB,KAAKmB,SACfC,UAAWpB,KAAKoB,UAChBC,SAAU,QACVM,SAAU,G,CAId,oBAAAC,G,OACElB,EAAAV,KAAKW,cAAU,MAAAD,SAAA,SAAAA,EAAEmB,S,CAMnB,6BAAMC,CAAwBC,GAE5B,MAAMC,EAAOD,EAAME,eACnB,IAAKD,EAAKE,SAASlC,KAAKmC,IAAK,OACrBnC,KAAKK,M,EAaf,UAAMF,GACJH,KAAKO,QAAU,KACfP,KAAKQ,a,CAKP,UAAMH,GACJ,GAAIL,KAAKe,cAAe,OAExBf,KAAKO,QAAU,MACfP,KAAKa,a,CAuCP,YAAYuB,GACV,OAAQpC,KAAKO,UAAYP,KAAKe,a,CAOhC,MAAAsB,GACE,OACEC,EAAA,OAAAC,IAAA,2CAAKC,MAAM,sBAAsBC,KAAK,QAEpCH,EAAA,OAAAC,IAAA,2CACEC,MAAM,sBACNE,YAAa1C,KAAKC,uBAClB0C,aAAc3C,KAAKI,wBACnBwC,QAAS5C,KAAKM,qBACduC,IAAMV,GAAQnC,KAAKwB,QAAUW,EAC7BM,KAAK,WAELH,EAAA,QAAAC,IAAA,2CAAMO,KAAK,aAGbR,EAAA,OAAAC,IAAA,2CACEC,MAAM,oBAAmB,cACZxC,KAAKoC,SAClBW,OAAQ/C,KAAKoC,SACbY,KAAK,UACLH,IAAMV,GAAQnC,KAAKS,MAAQ0B,EAC3BM,KAAK,UAEHzC,KAAKyB,WAAaa,EAAA,OAAAC,IAAA,2CAAKC,MAAM,oBAAoBK,IAAMV,GAAQnC,KAAK0B,MAAQS,IAC9EG,EAAA,QAAAC,IAAA,8C","ignoreList":[]}
1
+ {"version":3,"names":["bqTooltipCss","BqTooltipStyle0","BqTooltip","this","handleTriggerMouseOver","displayOn","show","handleTriggerMouseLeave","hide","handleTriggerOnClick","visible","showTooltip","panel","_a","floatingUI","update","hideTooltip","handleVisibleChange","alwaysVisible","handleFloatingUIOptionsChange","init","placement","distance","sameWidth","strategy","componentDidLoad","FloatingUI","trigger","hideArrow","arrow","skidding","disconnectedCallback","destroy","handleDocumentMouseDown","event","path","composedPath","includes","el","isHidden","render","h","key","class","part","onMouseOver","onMouseLeave","onClick","ref","name","hidden","role"],"sources":["../../packages/beeq/src/components/tooltip/scss/bq-tooltip.scss?tag=bq-tooltip&encapsulation=shadow","../../packages/beeq/src/components/tooltip/bq-tooltip.tsx"],"sourcesContent":["/* -------------------------------------------------------------------------- */\n/* Tooltip styles */\n/* -------------------------------------------------------------------------- */\n\n@import './bq-tooltip.variables';\n\n.bq-tooltip--panel {\n @include animation-fade-in;\n @apply pointer-events-none fixed z-[--bq-tooltip--z-index] box-border bg-[--bq-tooltip--background-color];\n @apply is-[--bq-tooltip--width] max-is-[--bq-tooltip--max-width] p-b-[--bq-tooltip--paddingY] p-i-[--bq-tooltip--paddingX];\n @apply text-[length:--bq-tooltip--font-size] leading-[--bq-tooltip--line-height] text-[color:--bq-tooltip--text-color];\n @apply rounded-[--bq-tooltip--border-radius] border-[length:--bq-tooltip--border-width] border-[color:--bq-tooltip--border-color];\n @apply shadow-[shadow:--bq-tooltip--box-shadow];\n}\n\n.bq-tooltip--arrow {\n &,\n &::before {\n @apply absolute -z-[1] bs-2 is-2;\n }\n\n &::before {\n @apply start-0 rotate-45 bg-[--bq-tooltip--background-color] content-empty inset-bs-0;\n }\n}\n","import { Component, Element, h, Listen, Method, Prop, Watch } from '@stencil/core';\n\nimport { Placement } from '../../services/interfaces';\nimport { FloatingUI } from '../../services/libraries';\n\n/**\n * @part base - The component wrapper container inside the shadow DOM\n * @part trigger - The `<div>` container that holds the element which displays tooltip on hover\n * @part panel - The `<div>` container that holds the tooltip content\n */\n@Component({\n tag: 'bq-tooltip',\n styleUrl: './scss/bq-tooltip.scss',\n shadow: true,\n})\nexport class BqTooltip {\n // Own Properties\n // ====================\n private trigger: HTMLElement;\n private panel: HTMLElement;\n private arrow: HTMLElement;\n private floatingUI: FloatingUI;\n\n // Reference to host HTML element\n // ===================================\n @Element() el!: HTMLBqTooltipElement;\n\n // State() variables\n // Inlined decorator, alphabetical order\n // =======================================\n\n // Public Property API\n // ========================\n\n /** If true, the tooltip will always be visible */\n @Prop() alwaysVisible?: boolean = false;\n\n /** Distance between trigger element and tooltip */\n @Prop({ reflect: true }) distance?: number = 10;\n\n /** If true, the arrow on the tooltip content won't be shown */\n @Prop({ reflect: true }) hideArrow?: boolean = false;\n\n /* Defines the position of the tooltip */\n @Prop({ reflect: true }) placement?: Placement = 'top';\n\n /** Whether the tooltip should have the same width as the trigger element\n * (applicable only for content shorter than the trigger element) */\n @Prop({ reflect: true }) sameWidth?: boolean = false;\n\n /** Set the action when the tooltip should be displayed, on hover (default) or click */\n @Prop({ reflect: true }) displayOn: 'click' | 'hover' = 'hover';\n\n /**\n * Indicates whether or not the tooltip is visible when the component is first rendered,\n * and when interacting with the trigger\n */\n @Prop({ reflect: true, mutable: true }) visible? = false;\n\n // Prop lifecycle events\n // =======================\n\n @Watch('visible')\n async handleVisibleChange() {\n if (!this.visible && !this.alwaysVisible) {\n return await this.hide();\n }\n\n await this.show();\n }\n\n @Watch('distance')\n @Watch('hideArrow')\n @Watch('placement')\n @Watch('sameWidth')\n handleFloatingUIOptionsChange() {\n this.floatingUI.init({\n placement: this.placement,\n distance: this.distance,\n sameWidth: this.sameWidth,\n strategy: 'fixed',\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 componentDidLoad() {\n this.floatingUI = new FloatingUI(this.trigger, this.panel, {\n ...(!this.hideArrow && { arrow: this.arrow }),\n placement: this.placement,\n distance: this.distance,\n sameWidth: this.sameWidth,\n strategy: 'fixed',\n skidding: 0,\n });\n }\n\n disconnectedCallback() {\n this.floatingUI?.destroy();\n }\n // Listeners\n // ==============\n\n @Listen('mousedown', { target: 'document' })\n async handleDocumentMouseDown(event: MouseEvent) {\n // Close when clicking outside of the close element\n const path = event.composedPath();\n if (!path.includes(this.el)) {\n await this.hide();\n }\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 /** Shows the tooltip */\n @Method()\n async show() {\n this.visible = true;\n this.showTooltip();\n }\n\n /** Hides the tooltip */\n @Method()\n async hide() {\n if (this.alwaysVisible) return;\n\n this.visible = false;\n this.hideTooltip();\n }\n\n // Local methods\n // Internal business logic.\n // These methods cannot be called from the host element.\n // =======================================================\n\n private handleTriggerMouseOver = () => {\n (async () => {\n if (this.displayOn !== 'hover') return;\n await this.show();\n })();\n };\n\n private handleTriggerMouseLeave = () => {\n (async () => {\n if (this.displayOn !== 'hover') return;\n await this.hide();\n })();\n };\n\n private handleTriggerOnClick = () => {\n (async () => {\n if (this.displayOn !== 'click') return;\n await (this.visible ? this.hide() : this.show());\n })();\n };\n\n private showTooltip = () => {\n if (!this.panel) return;\n this.floatingUI?.update();\n };\n\n private hideTooltip = () => {\n if (!this.panel) return;\n this.visible = false;\n };\n\n private get isHidden() {\n return !this.visible && !this.alwaysVisible;\n }\n\n // render() function\n // Always the last one in the class.\n // ===================================\n\n render() {\n return (\n <div class=\"bq-tooltip relative\" part=\"base\">\n {/* TRIGGER */}\n <div\n class=\"bq-tooltip--trigger\"\n onMouseOver={this.handleTriggerMouseOver}\n onMouseLeave={this.handleTriggerMouseLeave}\n onClick={this.handleTriggerOnClick}\n ref={(el) => (this.trigger = el)}\n part=\"trigger\"\n >\n <slot name=\"trigger\" />\n </div>\n {/* PANEL */}\n <div\n class=\"bq-tooltip--panel\"\n aria-hidden={this.isHidden}\n hidden={this.isHidden}\n role=\"tooltip\"\n ref={(el) => (this.panel = el)}\n part=\"panel\"\n >\n {!this.hideArrow && <div class=\"bq-tooltip--arrow\" ref={(el) => (this.arrow = el)} />}\n <slot />\n </div>\n </div>\n );\n }\n}\n"],"mappings":";;;;;;;;AAAA,MAAMA,IAAe;;AACrB,MAAAC,IAAeD;;MCcFE,IAAS;;;;;;;QAkIZC,KAAAC,yBAAyB;MAC/B;QACE,IAAID,KAAKE,cAAc,SAAS;cAC1BF,KAAKG;AACZ,QAHD;AAGI;IAGEH,KAAAI,0BAA0B;MAChC;QACE,IAAIJ,KAAKE,cAAc,SAAS;cAC1BF,KAAKK;AACZ,QAHD;AAGI;IAGEL,KAAAM,uBAAuB;MAC7B;QACE,IAAIN,KAAKE,cAAc,SAAS;eACzBF,KAAKO,UAAUP,KAAKK,SAASL,KAAKG;AAC1C,QAHD;AAGI;IAGEH,KAAAQ,cAAc;;MACpB,KAAKR,KAAKS,OAAO;OACjBC,IAAAV,KAAKW,gBAAU,QAAAD,WAAA,aAAAA,EAAEE;AAAQ;IAGnBZ,KAAAa,cAAc;MACpB,KAAKb,KAAKS,OAAO;MACjBT,KAAKO,UAAU;AAAK;yBA1IY;oBAGW;qBAGE;qBAGE;qBAIF;qBAGS;mBAML;;;;EAMnD,yBAAMO;IACJ,KAAKd,KAAKO,YAAYP,KAAKe,eAAe;MACxC,aAAaf,KAAKK;;UAGdL,KAAKG;;EAOb,6BAAAa;IACEhB,KAAKW,WAAWM,KAAK;MACnBC,WAAWlB,KAAKkB;MAChBC,UAAUnB,KAAKmB;MACfC,WAAWpB,KAAKoB;MAChBC,UAAU;;;;;;;;;EAWd,gBAAAC;IACEtB,KAAKW,aAAa,IAAIY,EAAWvB,KAAKwB,SAASxB,KAAKS,OAAO;UACpDT,KAAKyB,aAAa;QAAEC,OAAO1B,KAAK0B;;MACrCR,WAAWlB,KAAKkB;MAChBC,UAAUnB,KAAKmB;MACfC,WAAWpB,KAAKoB;MAChBC,UAAU;MACVM,UAAU;;;EAId,oBAAAC;;KACElB,IAAAV,KAAKW,gBAAU,QAAAD,WAAA,aAAAA,EAAEmB;;;;EAMnB,6BAAMC,CAAwBC;;IAE5B,MAAMC,IAAOD,EAAME;IACnB,KAAKD,EAAKE,SAASlC,KAAKmC,KAAK;YACrBnC,KAAKK;;;;;;;;;;EAaf,UAAMF;IACJH,KAAKO,UAAU;IACfP,KAAKQ;;4BAKP,UAAMH;IACJ,IAAIL,KAAKe,eAAe;IAExBf,KAAKO,UAAU;IACfP,KAAKa;;EAuCP,YAAYuB;IACV,QAAQpC,KAAKO,YAAYP,KAAKe;;;;;EAOhC,MAAAsB;IACE,OACEC,EAAA;MAAAC,KAAA;MAAKC,OAAM;MAAsBC,MAAK;OAEpCH,EAAA;MAAAC,KAAA;MACEC,OAAM;MACNE,aAAa1C,KAAKC;MAClB0C,cAAc3C,KAAKI;MACnBwC,SAAS5C,KAAKM;MACduC,KAAMV,KAAQnC,KAAKwB,UAAUW;MAC7BM,MAAK;OAELH,EAAA;MAAAC,KAAA;MAAMO,MAAK;SAGbR,EAAA;MAAAC,KAAA;MACEC,OAAM;MAAmB,eACZxC,KAAKoC;MAClBW,QAAQ/C,KAAKoC;MACbY,MAAK;MACLH,KAAMV,KAAQnC,KAAKS,QAAQ0B;MAC3BM,MAAK;QAEHzC,KAAKyB,aAAaa,EAAA;MAAAC,KAAA;MAAKC,OAAM;MAAoBK,KAAMV,KAAQnC,KAAK0B,QAAQS;QAC9EG,EAAA;MAAAC,KAAA","ignoreList":[]}