@paperless/core 2.0.1-beta.20 → 2.0.1-beta.21

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 (510) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/build/index.esm.js +1 -1
  3. package/dist/build/index.esm.js.map +1 -1
  4. package/dist/build/{p-d26ee54b.entry.js → p-036bb6f4.entry.js} +2 -2
  5. package/dist/build/p-0413fcd0.entry.js +2 -0
  6. package/dist/build/p-0413fcd0.entry.js.map +1 -0
  7. package/dist/build/p-0bbd4d1c.entry.js +2 -0
  8. package/dist/build/p-0bbd4d1c.entry.js.map +1 -0
  9. package/dist/build/{p-8b28c5be.entry.js → p-0c040d86.entry.js} +2 -2
  10. package/dist/build/{p-46cf79b4.entry.js → p-0e1935d5.entry.js} +2 -2
  11. package/dist/build/p-14e63599.entry.js +2 -0
  12. package/dist/build/{p-716a92ae.entry.js → p-1b5ec2b1.entry.js} +2 -2
  13. package/dist/{paperless/p-5f54e4b8.entry.js → build/p-1ed4a75e.entry.js} +3 -3
  14. package/dist/build/{p-5f54e4b8.entry.js.map → p-1ed4a75e.entry.js.map} +1 -1
  15. package/dist/{paperless/p-9f191ebc.entry.js → build/p-214a2978.entry.js} +2 -2
  16. package/dist/{paperless/p-e9ddf7b0.entry.js → build/p-2bd123f4.entry.js} +2 -2
  17. package/dist/{paperless/p-8b38f27d.entry.js → build/p-3a428a06.entry.js} +2 -2
  18. package/dist/build/{p-276d2804.entry.js → p-3b5242e9.entry.js} +2 -2
  19. package/dist/build/{p-8b3b5d3b.entry.js → p-3e393301.entry.js} +2 -2
  20. package/dist/build/{p-d31d6714.entry.js → p-46362798.entry.js} +2 -2
  21. package/dist/build/{p-1ea8012a.entry.js → p-48efb6e4.entry.js} +2 -2
  22. package/dist/{paperless/p-7ef827d5.entry.js → build/p-50134fa1.entry.js} +2 -2
  23. package/dist/build/{p-b27bbec2.entry.js → p-62843ca0.entry.js} +2 -2
  24. package/dist/build/{p-5c6050aa.entry.js → p-638d2138.entry.js} +2 -2
  25. package/dist/{paperless/p-e102e82d.entry.js → build/p-65d9a61f.entry.js} +2 -2
  26. package/dist/build/p-6d8852ca.entry.js +2 -0
  27. package/dist/build/p-889eb696.js +2 -0
  28. package/dist/build/p-958f3c09.entry.js +2 -0
  29. package/dist/build/p-958f3c09.entry.js.map +1 -0
  30. package/dist/build/{p-2f821184.entry.js → p-a56474ea.entry.js} +2 -2
  31. package/dist/build/{p-68ae68c8.entry.js → p-a5934232.entry.js} +2 -2
  32. package/dist/build/p-af468e9f.entry.js +2 -0
  33. package/dist/build/p-af468e9f.entry.js.map +1 -0
  34. package/dist/build/p-bf261165.entry.js +2 -0
  35. package/dist/{paperless/p-db4ea9ce.entry.js → build/p-c3ba61ac.entry.js} +2 -2
  36. package/dist/build/p-c605a1c1.js +2 -0
  37. package/dist/build/p-c605a1c1.js.map +1 -0
  38. package/dist/build/p-c8e79e30.entry.js +2 -0
  39. package/dist/build/{p-00534c3c.entry.js → p-cc3445fc.entry.js} +2 -2
  40. package/dist/{paperless/p-c6a042f7.entry.js → build/p-cfe6ec9a.entry.js} +2 -2
  41. package/dist/{paperless/p-0ffb8f53.entry.js → build/p-d044f441.entry.js} +2 -2
  42. package/dist/build/p-d63066b0.css +1 -0
  43. package/dist/build/p-d6ca5bce.entry.js +2 -0
  44. package/dist/build/p-d6ca5bce.entry.js.map +1 -0
  45. package/dist/build/{p-117de4a8.entry.js → p-d70b3539.entry.js} +2 -2
  46. package/dist/build/p-d8eb3b7b.entry.js +2 -0
  47. package/dist/build/p-d8eb3b7b.entry.js.map +1 -0
  48. package/dist/build/{p-e9a323f2.entry.js → p-d9d8c17c.entry.js} +2 -2
  49. package/dist/build/{p-57fc0eb5.entry.js → p-d9fae6bd.entry.js} +2 -2
  50. package/dist/build/p-dfce711d.entry.js +2 -0
  51. package/dist/build/p-dfce711d.entry.js.map +1 -0
  52. package/dist/build/p-ea577bae.entry.js +2 -0
  53. package/dist/build/p-ea577bae.entry.js.map +1 -0
  54. package/dist/build/{p-b26d5130.entry.js → p-eec56c71.entry.js} +2 -2
  55. package/dist/build/{p-448b6640.entry.js → p-f3d0ea94.entry.js} +2 -2
  56. package/dist/build/{p-955d149f.entry.js → p-f40f89a7.entry.js} +2 -2
  57. package/dist/build/{p-c6fa153f.entry.js → p-fd53acd3.entry.js} +2 -2
  58. package/dist/build/paperless.css +1 -1
  59. package/dist/build/paperless.esm.js +1 -1
  60. package/dist/build/paperless.esm.js.map +1 -1
  61. package/dist/cjs/index-3f9bbc0c.js +16 -4
  62. package/dist/cjs/index.cjs.js +2 -1
  63. package/dist/cjs/index.cjs.js.map +1 -1
  64. package/dist/cjs/loader.cjs.js +1 -1
  65. package/dist/cjs/nonce-0feefc04.js +17 -0
  66. package/dist/cjs/nonce-0feefc04.js.map +1 -0
  67. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  68. package/dist/cjs/p-attachment.cjs.entry.js +4 -4
  69. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  70. package/dist/cjs/p-button_3.cjs.entry.js +446 -0
  71. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
  72. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  73. package/dist/cjs/p-checkbox_3.cjs.entry.js +444 -0
  74. package/dist/cjs/p-checkbox_3.cjs.entry.js.map +1 -0
  75. package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
  76. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  77. package/dist/cjs/p-cropper.cjs.entry.js +3 -3
  78. package/dist/cjs/p-cropper.cjs.entry.js.map +1 -1
  79. package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
  80. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  81. package/dist/cjs/p-drawer-body_3.cjs.entry.js +3 -3
  82. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +2 -2
  83. package/dist/cjs/p-field_3.cjs.entry.js +316 -0
  84. package/dist/cjs/p-field_3.cjs.entry.js.map +1 -0
  85. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +7 -7
  86. package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
  87. package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
  88. package/dist/cjs/p-input-error.cjs.entry.js +1 -1
  89. package/dist/cjs/p-label_3.cjs.entry.js +4 -4
  90. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  91. package/dist/cjs/p-modal-body_4.cjs.entry.js +4 -4
  92. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  93. package/dist/cjs/p-navigation-item.cjs.entry.js +4 -3
  94. package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -1
  95. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  96. package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
  97. package/dist/cjs/p-page-size-select_3.cjs.entry.js +2 -2
  98. package/dist/cjs/p-portal_2.cjs.entry.js +233 -0
  99. package/dist/cjs/p-portal_2.cjs.entry.js.map +1 -0
  100. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  101. package/dist/cjs/p-radio.cjs.entry.js +8 -19
  102. package/dist/cjs/p-radio.cjs.entry.js.map +1 -1
  103. package/dist/cjs/p-select.cjs.entry.js +1 -1
  104. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  105. package/dist/cjs/p-status.cjs.entry.js +2 -2
  106. package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
  107. package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
  108. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  109. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  110. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  111. package/dist/cjs/p-table.cjs.entry.js +15 -17
  112. package/dist/cjs/p-table.cjs.entry.js.map +1 -1
  113. package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
  114. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  115. package/dist/cjs/p-toggle.cjs.entry.js +148 -0
  116. package/dist/cjs/p-toggle.cjs.entry.js.map +1 -0
  117. package/dist/cjs/paperless.cjs.js +1 -1
  118. package/dist/collection/collection-manifest.json +2 -0
  119. package/dist/collection/components/atoms/checkbox/checkbox.component.css +1 -0
  120. package/dist/collection/components/atoms/checkbox/checkbox.component.js +283 -0
  121. package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -0
  122. package/dist/collection/components/atoms/counter/counter.component.js +1 -1
  123. package/dist/collection/components/atoms/divider/divider.component.js +1 -1
  124. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +1 -1
  125. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +1 -1
  126. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +1 -1
  127. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +2 -2
  128. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  129. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +4 -4
  130. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
  131. package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js +1 -1
  132. package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js +1 -1
  133. package/dist/collection/components/atoms/helper/helper.component.js +1 -1
  134. package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +1 -1
  135. package/dist/collection/components/atoms/info-panel/info-panel.component.js +1 -1
  136. package/dist/collection/components/atoms/label/label.component.js +2 -2
  137. package/dist/collection/components/atoms/layout/layout.component.js +1 -1
  138. package/dist/collection/components/atoms/modal-body/modal-body.component.js +1 -1
  139. package/dist/collection/components/atoms/modal-container/modal-container.component.js +1 -1
  140. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +1 -1
  141. package/dist/collection/components/atoms/modal-header/modal-header.component.js +1 -1
  142. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
  143. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +1 -1
  144. package/dist/collection/components/atoms/portal/portal.component.js +1 -1
  145. package/dist/collection/components/atoms/radio/radio.component.css +1 -1
  146. package/dist/collection/components/atoms/radio/radio.component.js +5 -5
  147. package/dist/collection/components/atoms/radio/radio.component.js.map +1 -1
  148. package/dist/collection/components/atoms/segment-container/segment-container.component.js +1 -1
  149. package/dist/collection/components/atoms/segment-item/segment-item.component.js +1 -1
  150. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +1 -1
  151. package/dist/collection/components/atoms/status/status.component.js +2 -2
  152. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +1 -1
  153. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +1 -1
  154. package/dist/collection/components/atoms/tab-group/tab-group.component.js +1 -1
  155. package/dist/collection/components/atoms/tab-item/tab-item.component.js +1 -1
  156. package/dist/collection/components/atoms/table-container/table-container.component.js +1 -1
  157. package/dist/collection/components/atoms/toast-container/toast-container.component.js +1 -1
  158. package/dist/collection/components/atoms/toggle/toggle.component.css +1 -0
  159. package/dist/collection/components/atoms/toggle/toggle.component.js +321 -0
  160. package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -0
  161. package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
  162. package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
  163. package/dist/collection/components/molecules/attachment/attachment.component.js +4 -4
  164. package/dist/collection/components/molecules/button/button.component.css +1 -1
  165. package/dist/collection/components/molecules/button/button.component.js +4 -4
  166. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  167. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  168. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  169. package/dist/collection/components/molecules/cropper/cropper.component.css +1 -1
  170. package/dist/collection/components/molecules/cropper/cropper.component.js +2 -2
  171. package/dist/collection/components/molecules/datepicker/datepicker.component.js +1 -1
  172. package/dist/collection/components/molecules/dropdown/dropdown.component.js +3 -3
  173. package/dist/collection/components/molecules/field/field.component.js +9 -6
  174. package/dist/collection/components/molecules/field/field.component.js.map +1 -1
  175. package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
  176. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -1
  177. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +23 -2
  178. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -1
  179. package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +1 -1
  180. package/dist/collection/components/molecules/pagination/pagination.component.js +1 -1
  181. package/dist/collection/components/molecules/profile/profile.component.js +1 -1
  182. package/dist/collection/components/molecules/select/select.component.js +1 -1
  183. package/dist/collection/components/molecules/stepper/stepper.component.js +1 -1
  184. package/dist/collection/components/molecules/table-cell/table-cell.component.js +1 -1
  185. package/dist/collection/components/molecules/table-footer/table-footer.component.js +1 -1
  186. package/dist/collection/components/molecules/table-row/table-row.component.js +2 -2
  187. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  188. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  189. package/dist/collection/components/organisms/table/table.component.css +1 -1
  190. package/dist/collection/components/organisms/table/table.component.js +13 -16
  191. package/dist/collection/components/organisms/table/table.component.js.map +1 -1
  192. package/dist/collection/tailwind/theme/shadows.js +2 -1
  193. package/dist/collection/tailwind/theme/shadows.js.map +1 -1
  194. package/dist/components/button.component.js +5 -5
  195. package/dist/components/button.component.js.map +1 -1
  196. package/dist/components/calendar.component.js +1 -1
  197. package/dist/components/checkbox.component.js +134 -0
  198. package/dist/components/checkbox.component.js.map +1 -0
  199. package/dist/components/divider.component.js +1 -1
  200. package/dist/components/drawer-body.component.js +1 -1
  201. package/dist/components/drawer-container.component.js +1 -1
  202. package/dist/components/drawer-header.component.js +1 -1
  203. package/dist/components/dropdown-menu-container.component.js +2 -2
  204. package/dist/components/dropdown-menu-item.component.js +12 -6
  205. package/dist/components/dropdown-menu-item.component.js.map +1 -1
  206. package/dist/components/dropdown.component.js +3 -3
  207. package/dist/components/field.component.js +9 -6
  208. package/dist/components/field.component.js.map +1 -1
  209. package/dist/components/floating-menu-container.component.js +1 -1
  210. package/dist/components/floating-menu-item.component.js +1 -1
  211. package/dist/components/helper.component.js +1 -1
  212. package/dist/components/index.js +2 -1
  213. package/dist/components/index.js.map +1 -1
  214. package/dist/components/input-error.component.js +1 -1
  215. package/dist/components/label.component.js +2 -2
  216. package/dist/components/modal-body.component.js +1 -1
  217. package/dist/components/modal-container.component.js +1 -1
  218. package/dist/components/modal-footer.component.js +1 -1
  219. package/dist/components/modal-header.component.js +1 -1
  220. package/dist/components/navigation-title.component.js +1 -1
  221. package/dist/components/nonce.js +15 -0
  222. package/dist/components/nonce.js.map +1 -0
  223. package/dist/components/p-accordion.js +1 -1
  224. package/dist/components/p-attachment.js +4 -4
  225. package/dist/components/p-button-group.js +1 -1
  226. package/dist/components/p-checkbox.d.ts +11 -0
  227. package/dist/components/p-checkbox.js +8 -0
  228. package/dist/components/p-checkbox.js.map +1 -0
  229. package/dist/components/p-content-slider.js +2 -2
  230. package/dist/components/p-counter.js +1 -1
  231. package/dist/components/p-cropper.js +3 -3
  232. package/dist/components/p-cropper.js.map +1 -1
  233. package/dist/components/p-datepicker.js +1 -1
  234. package/dist/components/p-iban-icon.js +1 -1
  235. package/dist/components/p-info-panel.js +1 -1
  236. package/dist/components/p-layout.js +1 -1
  237. package/dist/components/p-navbar.js +1 -1
  238. package/dist/components/p-navigation-item.js +15 -7
  239. package/dist/components/p-navigation-item.js.map +1 -1
  240. package/dist/components/p-navigation-section.js +1 -1
  241. package/dist/components/p-profile.js +1 -1
  242. package/dist/components/p-radio.js +7 -18
  243. package/dist/components/p-radio.js.map +1 -1
  244. package/dist/components/p-select.js +11 -5
  245. package/dist/components/p-select.js.map +1 -1
  246. package/dist/components/p-status.js +2 -2
  247. package/dist/components/p-stepper-item.js +1 -1
  248. package/dist/components/p-stepper.js +1 -1
  249. package/dist/components/p-tab-group.js +1 -1
  250. package/dist/components/p-tab-item.js +1 -1
  251. package/dist/components/p-table.js +22 -19
  252. package/dist/components/p-table.js.map +1 -1
  253. package/dist/components/p-toast-container.js +1 -1
  254. package/dist/components/p-toast.js +1 -1
  255. package/dist/components/p-toggle.d.ts +11 -0
  256. package/dist/components/p-toggle.js +169 -0
  257. package/dist/components/p-toggle.js.map +1 -0
  258. package/dist/components/page-size-select.component.js +8 -2
  259. package/dist/components/page-size-select.component.js.map +1 -1
  260. package/dist/components/pagination-item.component.js +1 -1
  261. package/dist/components/pagination.component.js +1 -1
  262. package/dist/components/portal.component.js +1 -1
  263. package/dist/components/segment-container.component.js +1 -1
  264. package/dist/components/segment-item.component.js +1 -1
  265. package/dist/components/slider-indicator.component.js +1 -1
  266. package/dist/components/stepper-line.component.js +1 -1
  267. package/dist/components/table-cell.component.js +1 -1
  268. package/dist/components/table-container.component.js +1 -1
  269. package/dist/components/table-footer.component.js +9 -3
  270. package/dist/components/table-footer.component.js.map +1 -1
  271. package/dist/components/table-row.component.js +2 -2
  272. package/dist/components/tooltip.component.js +4 -4
  273. package/dist/esm/index-2ef94580.js +16 -4
  274. package/dist/esm/index.js +2 -1
  275. package/dist/esm/index.js.map +1 -1
  276. package/dist/esm/loader.js +1 -1
  277. package/dist/esm/nonce-a9254eb4.js +15 -0
  278. package/dist/esm/nonce-a9254eb4.js.map +1 -0
  279. package/dist/esm/p-accordion.entry.js +1 -1
  280. package/dist/esm/p-attachment.entry.js +4 -4
  281. package/dist/esm/p-button-group.entry.js +1 -1
  282. package/dist/esm/p-button_3.entry.js +440 -0
  283. package/dist/esm/p-button_3.entry.js.map +1 -0
  284. package/dist/esm/p-calendar.entry.js +1 -1
  285. package/dist/esm/p-checkbox_3.entry.js +438 -0
  286. package/dist/esm/p-checkbox_3.entry.js.map +1 -0
  287. package/dist/esm/p-content-slider.entry.js +2 -2
  288. package/dist/esm/p-counter.entry.js +1 -1
  289. package/dist/esm/p-cropper.entry.js +3 -3
  290. package/dist/esm/p-cropper.entry.js.map +1 -1
  291. package/dist/esm/p-datepicker.entry.js +1 -1
  292. package/dist/esm/p-divider.entry.js +1 -1
  293. package/dist/esm/p-drawer-body_3.entry.js +3 -3
  294. package/dist/esm/p-dropdown-menu-container.entry.js +2 -2
  295. package/dist/esm/p-field_3.entry.js +310 -0
  296. package/dist/esm/p-field_3.entry.js.map +1 -0
  297. package/dist/esm/p-floating-menu-container_8.entry.js +7 -7
  298. package/dist/esm/p-iban-icon.entry.js +1 -1
  299. package/dist/esm/p-info-panel.entry.js +1 -1
  300. package/dist/esm/p-input-error.entry.js +1 -1
  301. package/dist/esm/p-label_3.entry.js +4 -4
  302. package/dist/esm/p-layout.entry.js +1 -1
  303. package/dist/esm/p-modal-body_4.entry.js +4 -4
  304. package/dist/esm/p-navbar.entry.js +1 -1
  305. package/dist/esm/p-navigation-item.entry.js +4 -3
  306. package/dist/esm/p-navigation-item.entry.js.map +1 -1
  307. package/dist/esm/p-navigation-section.entry.js +1 -1
  308. package/dist/esm/p-navigation-title.entry.js +1 -1
  309. package/dist/esm/p-page-size-select_3.entry.js +2 -2
  310. package/dist/esm/p-portal_2.entry.js +228 -0
  311. package/dist/esm/p-portal_2.entry.js.map +1 -0
  312. package/dist/esm/p-profile.entry.js +1 -1
  313. package/dist/esm/p-radio.entry.js +7 -18
  314. package/dist/esm/p-radio.entry.js.map +1 -1
  315. package/dist/esm/p-select.entry.js +1 -1
  316. package/dist/esm/p-slider-indicator.entry.js +1 -1
  317. package/dist/esm/p-status.entry.js +2 -2
  318. package/dist/esm/p-stepper-item.entry.js +1 -1
  319. package/dist/esm/p-stepper-line.entry.js +1 -1
  320. package/dist/esm/p-stepper.entry.js +1 -1
  321. package/dist/esm/p-tab-group.entry.js +1 -1
  322. package/dist/esm/p-tab-item.entry.js +1 -1
  323. package/dist/esm/p-table.entry.js +15 -17
  324. package/dist/esm/p-table.entry.js.map +1 -1
  325. package/dist/esm/p-toast-container.entry.js +1 -1
  326. package/dist/esm/p-toast.entry.js +1 -1
  327. package/dist/esm/p-toggle.entry.js +144 -0
  328. package/dist/esm/p-toggle.entry.js.map +1 -0
  329. package/dist/esm/paperless.js +1 -1
  330. package/dist/index.html +1 -1
  331. package/dist/paperless/index.esm.js +1 -1
  332. package/dist/paperless/index.esm.js.map +1 -1
  333. package/dist/paperless/{p-d26ee54b.entry.js → p-036bb6f4.entry.js} +2 -2
  334. package/dist/paperless/p-0413fcd0.entry.js +2 -0
  335. package/dist/paperless/p-0413fcd0.entry.js.map +1 -0
  336. package/dist/paperless/p-0bbd4d1c.entry.js +2 -0
  337. package/dist/paperless/p-0bbd4d1c.entry.js.map +1 -0
  338. package/dist/paperless/{p-8b28c5be.entry.js → p-0c040d86.entry.js} +2 -2
  339. package/dist/paperless/{p-46cf79b4.entry.js → p-0e1935d5.entry.js} +2 -2
  340. package/dist/paperless/p-14e63599.entry.js +2 -0
  341. package/dist/paperless/{p-716a92ae.entry.js → p-1b5ec2b1.entry.js} +2 -2
  342. package/dist/{build/p-5f54e4b8.entry.js → paperless/p-1ed4a75e.entry.js} +3 -3
  343. package/dist/paperless/{p-5f54e4b8.entry.js.map → p-1ed4a75e.entry.js.map} +1 -1
  344. package/dist/{build/p-9f191ebc.entry.js → paperless/p-214a2978.entry.js} +2 -2
  345. package/dist/{build/p-e9ddf7b0.entry.js → paperless/p-2bd123f4.entry.js} +2 -2
  346. package/dist/{build/p-8b38f27d.entry.js → paperless/p-3a428a06.entry.js} +2 -2
  347. package/dist/paperless/{p-276d2804.entry.js → p-3b5242e9.entry.js} +2 -2
  348. package/dist/paperless/{p-8b3b5d3b.entry.js → p-3e393301.entry.js} +2 -2
  349. package/dist/paperless/{p-d31d6714.entry.js → p-46362798.entry.js} +2 -2
  350. package/dist/paperless/{p-1ea8012a.entry.js → p-48efb6e4.entry.js} +2 -2
  351. package/dist/{build/p-7ef827d5.entry.js → paperless/p-50134fa1.entry.js} +2 -2
  352. package/dist/paperless/{p-b27bbec2.entry.js → p-62843ca0.entry.js} +2 -2
  353. package/dist/paperless/{p-5c6050aa.entry.js → p-638d2138.entry.js} +2 -2
  354. package/dist/{build/p-e102e82d.entry.js → paperless/p-65d9a61f.entry.js} +2 -2
  355. package/dist/paperless/p-6d8852ca.entry.js +2 -0
  356. package/dist/paperless/p-958f3c09.entry.js +2 -0
  357. package/dist/paperless/p-958f3c09.entry.js.map +1 -0
  358. package/dist/paperless/{p-2f821184.entry.js → p-a56474ea.entry.js} +2 -2
  359. package/dist/paperless/{p-68ae68c8.entry.js → p-a5934232.entry.js} +2 -2
  360. package/dist/paperless/p-af468e9f.entry.js +2 -0
  361. package/dist/paperless/p-af468e9f.entry.js.map +1 -0
  362. package/dist/paperless/p-bf261165.entry.js +2 -0
  363. package/dist/{build/p-db4ea9ce.entry.js → paperless/p-c3ba61ac.entry.js} +2 -2
  364. package/dist/paperless/p-c605a1c1.js +2 -0
  365. package/dist/paperless/p-c605a1c1.js.map +1 -0
  366. package/dist/paperless/p-c8e79e30.entry.js +2 -0
  367. package/dist/paperless/{p-00534c3c.entry.js → p-cc3445fc.entry.js} +2 -2
  368. package/dist/{build/p-c6a042f7.entry.js → paperless/p-cfe6ec9a.entry.js} +2 -2
  369. package/dist/{build/p-0ffb8f53.entry.js → paperless/p-d044f441.entry.js} +2 -2
  370. package/dist/paperless/p-d6ca5bce.entry.js +2 -0
  371. package/dist/paperless/p-d6ca5bce.entry.js.map +1 -0
  372. package/dist/paperless/{p-117de4a8.entry.js → p-d70b3539.entry.js} +2 -2
  373. package/dist/paperless/p-d8eb3b7b.entry.js +2 -0
  374. package/dist/paperless/p-d8eb3b7b.entry.js.map +1 -0
  375. package/dist/paperless/{p-e9a323f2.entry.js → p-d9d8c17c.entry.js} +2 -2
  376. package/dist/paperless/{p-57fc0eb5.entry.js → p-d9fae6bd.entry.js} +2 -2
  377. package/dist/paperless/p-dfce711d.entry.js +2 -0
  378. package/dist/paperless/p-dfce711d.entry.js.map +1 -0
  379. package/dist/paperless/p-ea577bae.entry.js +2 -0
  380. package/dist/paperless/p-ea577bae.entry.js.map +1 -0
  381. package/dist/paperless/{p-b26d5130.entry.js → p-eec56c71.entry.js} +2 -2
  382. package/dist/paperless/{p-448b6640.entry.js → p-f3d0ea94.entry.js} +2 -2
  383. package/dist/paperless/{p-955d149f.entry.js → p-f40f89a7.entry.js} +2 -2
  384. package/dist/paperless/{p-c6fa153f.entry.js → p-fd53acd3.entry.js} +2 -2
  385. package/dist/paperless/paperless.css +1 -1
  386. package/dist/paperless/paperless.esm.js +1 -1
  387. package/dist/paperless/paperless.esm.js.map +1 -1
  388. package/dist/style/paperless.scss +0 -2
  389. package/dist/sw.js +1 -1
  390. package/dist/sw.js.map +1 -1
  391. package/dist/tailwind/theme/shadows.ts +2 -1
  392. package/dist/types/components/atoms/checkbox/checkbox.component.d.ts +42 -0
  393. package/dist/types/components/atoms/toggle/toggle.component.d.ts +42 -0
  394. package/dist/types/components/molecules/field/field.component.d.ts +2 -1
  395. package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +4 -0
  396. package/dist/types/components/organisms/table/table.component.d.ts +0 -1
  397. package/dist/types/components.d.ts +194 -0
  398. package/dist/types/tailwind/theme/shadows.d.ts +1 -0
  399. package/hydrate/index.js +393 -122
  400. package/hydrate/index.mjs +393 -122
  401. package/package.json +1 -1
  402. package/dist/build/p-17457a9a.entry.js +0 -2
  403. package/dist/build/p-2beae871.entry.js +0 -2
  404. package/dist/build/p-5021f212.entry.js +0 -2
  405. package/dist/build/p-5021f212.entry.js.map +0 -1
  406. package/dist/build/p-8f4ccbe0.entry.js +0 -2
  407. package/dist/build/p-a2ff0942.entry.js +0 -2
  408. package/dist/build/p-a2ff0942.entry.js.map +0 -1
  409. package/dist/build/p-b8a88966.css +0 -1
  410. package/dist/build/p-c8616c4a.js +0 -2
  411. package/dist/build/p-d12bb2d3.entry.js +0 -2
  412. package/dist/build/p-d12bb2d3.entry.js.map +0 -1
  413. package/dist/build/p-ddde168c.entry.js +0 -2
  414. package/dist/build/p-e7bfc9c0.entry.js +0 -2
  415. package/dist/build/p-e7bfc9c0.entry.js.map +0 -1
  416. package/dist/build/p-fb0087cc.entry.js +0 -2
  417. package/dist/build/p-fb0087cc.entry.js.map +0 -1
  418. package/dist/cjs/p-button_8.cjs.entry.js +0 -972
  419. package/dist/cjs/p-button_8.cjs.entry.js.map +0 -1
  420. package/dist/cjs/p-dropdown_2.cjs.entry.js +0 -344
  421. package/dist/cjs/p-dropdown_2.cjs.entry.js.map +0 -1
  422. package/dist/esm/p-button_8.entry.js +0 -961
  423. package/dist/esm/p-button_8.entry.js.map +0 -1
  424. package/dist/esm/p-dropdown_2.entry.js +0 -339
  425. package/dist/esm/p-dropdown_2.entry.js.map +0 -1
  426. package/dist/paperless/p-17457a9a.entry.js +0 -2
  427. package/dist/paperless/p-2beae871.entry.js +0 -2
  428. package/dist/paperless/p-5021f212.entry.js +0 -2
  429. package/dist/paperless/p-5021f212.entry.js.map +0 -1
  430. package/dist/paperless/p-8f4ccbe0.entry.js +0 -2
  431. package/dist/paperless/p-a2ff0942.entry.js +0 -2
  432. package/dist/paperless/p-a2ff0942.entry.js.map +0 -1
  433. package/dist/paperless/p-d12bb2d3.entry.js +0 -2
  434. package/dist/paperless/p-d12bb2d3.entry.js.map +0 -1
  435. package/dist/paperless/p-ddde168c.entry.js +0 -2
  436. package/dist/paperless/p-e7bfc9c0.entry.js +0 -2
  437. package/dist/paperless/p-e7bfc9c0.entry.js.map +0 -1
  438. package/dist/paperless/p-fb0087cc.entry.js +0 -2
  439. package/dist/paperless/p-fb0087cc.entry.js.map +0 -1
  440. package/dist/style/form/_checkbox.scss +0 -135
  441. package/dist/style/form/_input.scss +0 -31
  442. package/dist/style/form/_mixins.scss +0 -140
  443. package/dist/style/form/_radio.scss +0 -58
  444. package/dist/style/form/_range.scss +0 -20
  445. package/dist/style/form/_textarea.scss +0 -31
  446. package/dist/style/form/index.scss +0 -5
  447. /package/dist/build/{p-d26ee54b.entry.js.map → p-036bb6f4.entry.js.map} +0 -0
  448. /package/dist/build/{p-8b28c5be.entry.js.map → p-0c040d86.entry.js.map} +0 -0
  449. /package/dist/build/{p-46cf79b4.entry.js.map → p-0e1935d5.entry.js.map} +0 -0
  450. /package/dist/build/{p-2beae871.entry.js.map → p-14e63599.entry.js.map} +0 -0
  451. /package/dist/build/{p-716a92ae.entry.js.map → p-1b5ec2b1.entry.js.map} +0 -0
  452. /package/dist/build/{p-9f191ebc.entry.js.map → p-214a2978.entry.js.map} +0 -0
  453. /package/dist/build/{p-e9ddf7b0.entry.js.map → p-2bd123f4.entry.js.map} +0 -0
  454. /package/dist/build/{p-8b38f27d.entry.js.map → p-3a428a06.entry.js.map} +0 -0
  455. /package/dist/build/{p-276d2804.entry.js.map → p-3b5242e9.entry.js.map} +0 -0
  456. /package/dist/build/{p-8b3b5d3b.entry.js.map → p-3e393301.entry.js.map} +0 -0
  457. /package/dist/build/{p-d31d6714.entry.js.map → p-46362798.entry.js.map} +0 -0
  458. /package/dist/build/{p-1ea8012a.entry.js.map → p-48efb6e4.entry.js.map} +0 -0
  459. /package/dist/build/{p-7ef827d5.entry.js.map → p-50134fa1.entry.js.map} +0 -0
  460. /package/dist/build/{p-b27bbec2.entry.js.map → p-62843ca0.entry.js.map} +0 -0
  461. /package/dist/build/{p-5c6050aa.entry.js.map → p-638d2138.entry.js.map} +0 -0
  462. /package/dist/build/{p-e102e82d.entry.js.map → p-65d9a61f.entry.js.map} +0 -0
  463. /package/dist/build/{p-ddde168c.entry.js.map → p-6d8852ca.entry.js.map} +0 -0
  464. /package/dist/build/{p-2f821184.entry.js.map → p-a56474ea.entry.js.map} +0 -0
  465. /package/dist/build/{p-68ae68c8.entry.js.map → p-a5934232.entry.js.map} +0 -0
  466. /package/dist/build/{p-17457a9a.entry.js.map → p-bf261165.entry.js.map} +0 -0
  467. /package/dist/build/{p-db4ea9ce.entry.js.map → p-c3ba61ac.entry.js.map} +0 -0
  468. /package/dist/build/{p-8f4ccbe0.entry.js.map → p-c8e79e30.entry.js.map} +0 -0
  469. /package/dist/build/{p-00534c3c.entry.js.map → p-cc3445fc.entry.js.map} +0 -0
  470. /package/dist/build/{p-c6a042f7.entry.js.map → p-cfe6ec9a.entry.js.map} +0 -0
  471. /package/dist/build/{p-0ffb8f53.entry.js.map → p-d044f441.entry.js.map} +0 -0
  472. /package/dist/build/{p-117de4a8.entry.js.map → p-d70b3539.entry.js.map} +0 -0
  473. /package/dist/build/{p-e9a323f2.entry.js.map → p-d9d8c17c.entry.js.map} +0 -0
  474. /package/dist/build/{p-57fc0eb5.entry.js.map → p-d9fae6bd.entry.js.map} +0 -0
  475. /package/dist/build/{p-b26d5130.entry.js.map → p-eec56c71.entry.js.map} +0 -0
  476. /package/dist/build/{p-448b6640.entry.js.map → p-f3d0ea94.entry.js.map} +0 -0
  477. /package/dist/build/{p-955d149f.entry.js.map → p-f40f89a7.entry.js.map} +0 -0
  478. /package/dist/build/{p-c6fa153f.entry.js.map → p-fd53acd3.entry.js.map} +0 -0
  479. /package/dist/paperless/{p-d26ee54b.entry.js.map → p-036bb6f4.entry.js.map} +0 -0
  480. /package/dist/paperless/{p-8b28c5be.entry.js.map → p-0c040d86.entry.js.map} +0 -0
  481. /package/dist/paperless/{p-46cf79b4.entry.js.map → p-0e1935d5.entry.js.map} +0 -0
  482. /package/dist/paperless/{p-2beae871.entry.js.map → p-14e63599.entry.js.map} +0 -0
  483. /package/dist/paperless/{p-716a92ae.entry.js.map → p-1b5ec2b1.entry.js.map} +0 -0
  484. /package/dist/paperless/{p-9f191ebc.entry.js.map → p-214a2978.entry.js.map} +0 -0
  485. /package/dist/paperless/{p-e9ddf7b0.entry.js.map → p-2bd123f4.entry.js.map} +0 -0
  486. /package/dist/paperless/{p-8b38f27d.entry.js.map → p-3a428a06.entry.js.map} +0 -0
  487. /package/dist/paperless/{p-276d2804.entry.js.map → p-3b5242e9.entry.js.map} +0 -0
  488. /package/dist/paperless/{p-8b3b5d3b.entry.js.map → p-3e393301.entry.js.map} +0 -0
  489. /package/dist/paperless/{p-d31d6714.entry.js.map → p-46362798.entry.js.map} +0 -0
  490. /package/dist/paperless/{p-1ea8012a.entry.js.map → p-48efb6e4.entry.js.map} +0 -0
  491. /package/dist/paperless/{p-7ef827d5.entry.js.map → p-50134fa1.entry.js.map} +0 -0
  492. /package/dist/paperless/{p-b27bbec2.entry.js.map → p-62843ca0.entry.js.map} +0 -0
  493. /package/dist/paperless/{p-5c6050aa.entry.js.map → p-638d2138.entry.js.map} +0 -0
  494. /package/dist/paperless/{p-e102e82d.entry.js.map → p-65d9a61f.entry.js.map} +0 -0
  495. /package/dist/paperless/{p-ddde168c.entry.js.map → p-6d8852ca.entry.js.map} +0 -0
  496. /package/dist/paperless/{p-2f821184.entry.js.map → p-a56474ea.entry.js.map} +0 -0
  497. /package/dist/paperless/{p-68ae68c8.entry.js.map → p-a5934232.entry.js.map} +0 -0
  498. /package/dist/paperless/{p-17457a9a.entry.js.map → p-bf261165.entry.js.map} +0 -0
  499. /package/dist/paperless/{p-db4ea9ce.entry.js.map → p-c3ba61ac.entry.js.map} +0 -0
  500. /package/dist/paperless/{p-8f4ccbe0.entry.js.map → p-c8e79e30.entry.js.map} +0 -0
  501. /package/dist/paperless/{p-00534c3c.entry.js.map → p-cc3445fc.entry.js.map} +0 -0
  502. /package/dist/paperless/{p-c6a042f7.entry.js.map → p-cfe6ec9a.entry.js.map} +0 -0
  503. /package/dist/paperless/{p-0ffb8f53.entry.js.map → p-d044f441.entry.js.map} +0 -0
  504. /package/dist/paperless/{p-117de4a8.entry.js.map → p-d70b3539.entry.js.map} +0 -0
  505. /package/dist/paperless/{p-e9a323f2.entry.js.map → p-d9d8c17c.entry.js.map} +0 -0
  506. /package/dist/paperless/{p-57fc0eb5.entry.js.map → p-d9fae6bd.entry.js.map} +0 -0
  507. /package/dist/paperless/{p-b26d5130.entry.js.map → p-eec56c71.entry.js.map} +0 -0
  508. /package/dist/paperless/{p-448b6640.entry.js.map → p-f3d0ea94.entry.js.map} +0 -0
  509. /package/dist/paperless/{p-955d149f.entry.js.map → p-f40f89a7.entry.js.map} +0 -0
  510. /package/dist/paperless/{p-c6fa153f.entry.js.map → p-fd53acd3.entry.js.map} +0 -0
@@ -12,7 +12,7 @@ const ModalBody = class {
12
12
  this.padding = true;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '1b4a6fedbf81cd30f7842fe48878ccae7c0cbb70', class: `p-modal-body variant-${this.variant} ${this.roundedBottom && 'is-rounded-bottom'} ${this.roundedTop && 'is-rounded-top'} ${!this.padding && 'no-padding'}` }, h("slot", { key: '714bb76978da28bea87512fa36bd5b428ea2b31b' })));
15
+ return (h(Host, { key: 'd0b735c1c6aca053bb2d9b36f66dc8c3e6fe42da', class: `p-modal-body variant-${this.variant} ${this.roundedBottom && 'is-rounded-bottom'} ${this.roundedTop && 'is-rounded-top'} ${!this.padding && 'no-padding'}` }, h("slot", { key: '2278b56bf9810ec13f90b8f14ae5167d26442e2f' })));
16
16
  }
17
17
  };
18
18
  ModalBody.style = PModalBodyStyle0;
@@ -40,7 +40,7 @@ const ModalContainer = class {
40
40
  }
41
41
  render() {
42
42
  const sizeClass = modalSizes[this.size];
43
- return (h(Host, { key: '43ff28201d70459575d8b37faae58aa8a992767a', class: `p-modal-container ${this.closing && 'closing'} ${sizeClass}` }, h("slot", { key: 'f44bb8738283f4f6143d4b45f7108340b6deef0b' })));
43
+ return (h(Host, { key: 'f8c36d282ba3b1f4265bad93d5facdeac272726f', class: `p-modal-container ${this.closing && 'closing'} ${sizeClass}` }, h("slot", { key: 'f70d967878d24e66e1bb41ef63690a1a6aa702e8' })));
44
44
  }
45
45
  };
46
46
  ModalContainer.style = PModalContainerStyle0;
@@ -53,7 +53,7 @@ const ModalFooter = class {
53
53
  registerInstance(this, hostRef);
54
54
  }
55
55
  render() {
56
- return (h(Host, { key: '01439496d0b4b238b8fdfffbf5c9fdf3088858ae', class: "p-modal-footer" }, h("p-divider", { key: 'e7dc4fc0c16827f73af2f331faf0ab54cb740f21', class: "mb-6 mt-0 hidden desktop-xs:flex" }), h("slot", { key: '8e3f0ddb9ff38562411e59868719dc7c3c8e51e0' })));
56
+ return (h(Host, { key: '8b95e0bc8927f933dbde6532cfe674c3b795d91d', class: "p-modal-footer" }, h("p-divider", { key: '44924282dcfa7271edb5468db39568bc9a348f6d', class: "mb-6 mt-0 hidden desktop-xs:flex" }), h("slot", { key: 'b09dc0f60512eb72456fa7e3837487f16086ae10' })));
57
57
  }
58
58
  };
59
59
  ModalFooter.style = PModalFooterStyle0;
@@ -72,7 +72,7 @@ const ModalHeader = class {
72
72
  */
73
73
  close;
74
74
  render() {
75
- return (h(Host, { key: '15d09e0835c1ac62e23d1da6fa59042505e8e287', class: 'p-modal-header' }, h("span", { key: 'fe40f919874acd070ebcecaff47b80bd6f6889b7' }, h("slot", { key: 'cd118fa1054845af4c98e9f6779a796a35965ed2' })), this.showClose && (h("p-button", { key: '9d3c23704087e67a8e8e036532dc541b3bd2e022', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: ev => this.close.emit(ev), size: 'sm' }))));
75
+ return (h(Host, { key: '420214cfdb2dd596f7538048593025801122a7b3', class: 'p-modal-header' }, h("span", { key: '10f405e910552ccf368a7ce1ab0799ac193199c8' }, h("slot", { key: '916197272fc2f43bd87f7c97bd36a0b94d304892' })), this.showClose && (h("p-button", { key: 'bfdcec4df0c865693d8d9cc35a8556408447f76e', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: ev => this.close.emit(ev), size: 'sm' }))));
76
76
  }
77
77
  };
78
78
  ModalHeader.style = PModalHeaderStyle0;
@@ -50,7 +50,7 @@ const Navbar = class {
50
50
  this._show = false;
51
51
  }
52
52
  render() {
53
- return (h(Host, { key: '7f038a3c0ec76e24feec7e1cba133a18c68278f1', class: 'p-navbar w-full max-h-screen-safe layout-1280:w-60 layout-1680:w-72' }, h("p-backdrop", { key: '1c534d08af4851b7c775ed4ec931e1ef68748669', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: '8bf242613c6704586eedb15b3576f2c531706b47', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: '39aa317a7af6f0afb6fa827295797435db4968fa', class: 'flex w-full items-center justify-between layout-1280:hidden' }, h("p-button", { key: '2484d018cbc1aca11c00ae0621aa50172e89b940', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, size: 'sm', onClick: () => (this._show = false) })), h("div", { key: '6e1dc7fde01decb77fe83efa5b99e26a2bdcad48', class: 'flex w-full flex-col items-stretch' }, h("slot", { key: '51cd568fd5c5637761317944af974d9bf140c78c', name: 'company' })), h("div", { key: '44e4c7602fe5a188f9b02089b917e0c769e4addd', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, h("slot", { key: 'fe84a1f8a0e35b5a261d858c22135a761dc26735', name: 'content' })), h("div", { key: '2e788343efbfc6d0481d5f0449bc69c72c7dabc3', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, h("slot", { key: '070e9aaea6502c2f9ac92e5738e5a021e2923bb8', name: 'user' }))), h("div", { key: '5b31449262ebad9a900f80288eda91a1ecb3f658', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: 'fb68bb0b590da2096d2721e27c016eeae53d6a3c', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', size: 'sm', onClick: () => (this._show = true) }), h("slot", { key: '629a33f6522b2f8dd3c33119cd87eab80bc837ae', name: 'topbar' }))));
53
+ return (h(Host, { key: 'd0fb08c272ed8209ba4b4eeb0e84db3af7f56b6c', class: 'p-navbar w-full max-h-screen-safe layout-1280:w-60 layout-1680:w-72' }, h("p-backdrop", { key: '03c3f5a31cdb369c0fc9e2e2758c6124f8874323', class: backdrop({ show: this._show }), scrollLock: this._show, onClicked: () => (this._show = false) }), h("div", { key: 'e436eb63373ce0460d04c1e6bf9d2a6d5dd77a22', class: sidebar({ class: sidebarAndTopbar(), show: this._show }) }, h("div", { key: '5cc267234e3f93766244c241c896004f0312e7ab', class: 'flex w-full items-center justify-between layout-1280:hidden' }, h("p-button", { key: 'a1cf06f679fe209a5d9fee1e3f59e4ab1e2b3628', variant: 'secondary', icon: 'menu-arrow', iconFlip: 'horizontal', iconOnly: true, size: 'sm', onClick: () => (this._show = false) })), h("div", { key: '3c2bc5439cfb75cc9d3134f987dc80ebd3971298', class: 'flex w-full flex-col items-stretch' }, h("slot", { key: '9fc8ab5a7648ee33fe8fd7aeadcc6f612b636971', name: 'company' })), h("div", { key: 'b7be3f50a653bb6ec6b175a0d5391555689f7b5d', class: 'flex w-full flex-col gap-6 overflow-y-auto' }, h("slot", { key: '941a9dea07c2270d9ccea702ed1bce4af6dda0a7', name: 'content' })), h("div", { key: 'd104fa1db346b0f6fcd09d55ba3d2cb474a725f2', class: 'mt-auto hidden w-full flex-col layout-1280:flex' }, h("slot", { key: 'a20c417a192f6ec4c5eef06fe12118270fd299ac', name: 'user' }))), h("div", { key: '3a1d9b69bde033789e2e420e49f8702b8a0c92bf', class: topbar({ class: sidebarAndTopbar() }) }, h("p-button", { key: 'bbb50411a3ce918bfbd33f1bacfc14a053f7d118', variant: 'secondary', iconOnly: true, icon: 'menu-arrow', size: 'sm', onClick: () => (this._show = true) }), h("slot", { key: 'a931c9bc1a090b004788693f2fea96d76d2c43bd', name: 'topbar' }))));
54
54
  }
55
55
  handleCloseNavbar() {
56
56
  this._show = false;
@@ -3,7 +3,7 @@ import { c as cva } from './index-10317a74.js';
3
3
  import { c as cn } from './cn-efefe9a7.js';
4
4
  import './clsx-297c1ffe.js';
5
5
 
6
- const navigationItemComponentCss = "*{box-sizing:border-box}.static{position:static!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.aspect-branding{aspect-ratio:23/24!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-\\[inherit\\]{width:inherit!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.rounded-lg{border-radius:.5rem!important}.bg-off-white-600{--tw-bg-opacity:1!important;background-color:rgb(236 234 229/var(--tw-bg-opacity,1))!important}.bg-supportive-lilac{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.pl-1{padding-left:.25rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-medium{font-weight:500!important}.font-semibold{font-weight:600!important}.text-black-teal-400{--tw-text-opacity:1!important;color:rgb(53 85 80/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.hover\\:bg-off-white:hover{--tw-bg-opacity:1!important;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))!important}.hover\\:text-black-teal-500:hover{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}";
6
+ const navigationItemComponentCss = "*{box-sizing:border-box}.static{position:static!important}.ml-auto{margin-left:auto!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.aspect-branding{aspect-ratio:23/24!important}.h-6{height:1.5rem!important}.h-8{height:2rem!important}.w-\\[inherit\\]{width:inherit!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.rounded-lg{border-radius:.5rem!important}.bg-off-white-600{--tw-bg-opacity:1!important;background-color:rgb(236 234 229/var(--tw-bg-opacity,1))!important}.bg-supportive-lilac{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.pl-1{padding-left:.25rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-medium{font-weight:500!important}.font-semibold{font-weight:600!important}.text-black-teal-400{--tw-text-opacity:1!important;color:rgb(53 85 80/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.hover\\:bg-off-white:hover{--tw-bg-opacity:1!important;background-color:rgb(243 241 237/var(--tw-bg-opacity,1))!important}.hover\\:text-black-teal-500:hover{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}";
7
7
  const PNavigationItemStyle0 = navigationItemComponentCss;
8
8
 
9
9
  const navigationItem = cva([
@@ -39,6 +39,7 @@ const NavigationItem = class {
39
39
  registerInstance(this, hostRef);
40
40
  this.icon = undefined;
41
41
  this.active = false;
42
+ this.loading = false;
42
43
  this.as = 'a';
43
44
  this.counter = undefined;
44
45
  this.href = undefined;
@@ -48,10 +49,10 @@ const NavigationItem = class {
48
49
  render() {
49
50
  const TagType = this.as;
50
51
  const active = this.active || this.class?.includes('active');
51
- return (h(Host, { key: '5d7a9016cd51653a7efc94aec1acb1dec95c1576', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: '7e53d93d45d3620808a01cc4119c8ef1fcd58a8f', class: navigationItem({
52
+ return (h(Host, { key: 'd87d8e76973078637e8c2d184b495d630f4fd556', class: cn('p-navigation-item inline-block', this.class) }, h(TagType, { key: 'db37312225ef973cb75c71b0b0b918ed2f8799c3', class: navigationItem({
52
53
  icon: !!this.icon,
53
54
  active,
54
- }), href: this.href, target: this.target }, h("div", { key: 'eb652010934dd9863080e98d7715d088d7a30349', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '3b7b58d4c5b1af285ab66d06ca8ef388fe1d7032', variant: this.icon })), h("span", { key: '840d600c6a1d34872ba1437b38ba38a3f1cb08df', class: this.counter && 'has-counter' }, h("slot", { key: '6f6e3f814e0970d762f6c46991ec9f6634c73e7c' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: 'efbdb0e66ef6cc254ba6533e3bbc6a5225fbe894' }, this.counter)))));
55
+ }), href: this.href, target: this.target }, h("div", { key: '5f56c4395729260e25e6a71da5ac716b09193bd5', class: navigationItemIconContainer({ active }) }, h("p-icon", { key: '0cc4e9b0f0cdf1ad574ef8ba5b8b80f3ce376d3f', variant: this.icon })), h("span", { key: 'a52984e8227ec3af005d1b240944ff85ba58a37e', class: this.counter && 'has-counter' }, h("slot", { key: 'eaa1a3e88f0d7517fc383d96fae3194522e4efb1' })), !!this.counter && this.counter !== '0' && (h("p-badge", { key: 'eb7b69d6235d7f1c72ca1045255d70764a9b179d' }, this.counter)), !!this.loading && h("p-loader", { key: '081c5f8b49dfb3a80429815de87f717cd70e39ae', class: 'ml-auto' }))));
55
56
  }
56
57
  };
57
58
  NavigationItem.style = PNavigationItemStyle0;
@@ -1 +1 @@
1
- {"file":"p-navigation-item.entry.js","mappings":";;;;;AAAA,MAAM,0BAA0B,GAAG,i/CAAi/C,CAAC;AACrhD,8BAAe,0BAA0B;;ACIzC,MAAM,cAAc,GAAG,GAAG,CACzB;IACC,iBAAiB;IACjB,yBAAyB;IACzB,+CAA+C;IAC/C,YAAY;IACZ,WAAW;IACX,qBAAqB;IACrB,gBAAgB;CAChB,EACD;IACC,QAAQ,EAAE;QACT,MAAM,EAAE;YACP,KAAK,EAAE,CAAC,oBAAoB,CAAC;YAC7B,IAAI,EAAE,CAAC,oDAAoD,CAAC;SAC5D;QACD,IAAI,EAAE;YACL,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,CAAC,MAAM,CAAC;SACd;KACD;CACD,CACD,CAAC;AAEF,MAAM,2BAA2B,GAAG,GAAG,CACtC,CAAC,mEAAmE,CAAC,EACrE;IACC,QAAQ,EAAE;QACT,MAAM,EAAE;YACP,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,CAAC,qBAAqB,CAAC;SAC7B;KACD;CACD,CACD,CAAC;MAOW,cAAc;;;;sBASA,KAAK;kBAKV,GAAG;;;;;;IAsBxB,MAAM;QACL,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC;QAExB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAE7D,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,EAAE,CAAC,gCAAgC,EAAE,IAAI,CAAC,KAAK,CAAC,IAC5D,EAAC,OAAO,qDACP,KAAK,EAAE,cAAc,CAAC;gBACrB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI;gBACjB,MAAM;aACN,CAAC,EACF,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,IAEnB,4DAAK,KAAK,EAAE,2BAA2B,CAAC,EAAE,MAAM,EAAE,CAAC,IAClD,+DAAQ,OAAO,EAAE,IAAI,CAAC,IAAI,GAAI,CACzB,EAEN,6DAAM,KAAK,EAAE,IAAI,CAAC,OAAO,IAAI,aAAa,IACzC,8DAAQ,CACF,EAEN,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,KAAK,GAAG,KACtC,kEAAU,IAAI,CAAC,OAAO,CAAW,CACjC,CACQ,CACJ,EACN;KACF;;;;;;","names":[],"sources":["src/components/molecules/navigation-item/navigation-item.component.scss?tag=p-navigation-item","src/components/molecules/navigation-item/navigation-item.component.tsx"],"sourcesContent":["// :host {\n// \t@apply mb-1 inline-block w-full;\n//\n// \t> a {\n// \t\t@apply h-8 w-full cursor-pointer rounded-lg px-2 no-underline;\n// \t\t@apply flex items-center gap-2;\n// \t\t@apply font-semibold text-storm;\n//\n// \t\t@apply hover:bg-indigo-light;\n//\n// \t\t> p-icon {\n// \t\t\t@apply text-storm;\n// \t\t}\n//\n// \t\t> span {\n// \t\t\t@apply mr-auto;\n// \t\t}\n// \t}\n// }\n//\n// :host(.active) {\n// \t> a {\n// \t\t@apply bg-indigo-light text-indigo;\n//\n// \t\t> p-icon {\n// \t\t\t@apply text-indigo;\n// \t\t}\n// \t}\n// }\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { IconVariant } from '../../atoms/icon/icon.component';\nimport { cn } from '../../../utils/cn';\n\nconst navigationItem = cva(\n\t[\n\t\t'h-8 w-[inherit]',\n\t\t'flex items-center gap-2',\n\t\t'text-black-teal-400 hover:text-black-teal-500',\n\t\t'rounded-lg',\n\t\t'py-1 px-2',\n\t\t'text-sm font-medium',\n\t\t'cursor-pointer',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tactive: {\n\t\t\t\tfalse: ['hover:bg-off-white'],\n\t\t\t\ttrue: ['bg-off-white-600 text-black-teal-500 font-semibold'],\n\t\t\t},\n\t\t\ticon: {\n\t\t\t\tfalse: false,\n\t\t\t\ttrue: ['pl-1'],\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst navigationItemIconContainer = cva(\n\t['flex h-6 aspect-branding items-center justify-center rounded-full'],\n\t{\n\t\tvariants: {\n\t\t\tactive: {\n\t\t\t\tfalse: false,\n\t\t\t\ttrue: ['bg-supportive-lilac'],\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-navigation-item',\n\tstyleUrl: './navigation-item.component.scss',\n\tshadow: false,\n})\nexport class NavigationItem {\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() icon!: IconVariant;\n\n\t/**\n\t * Wether the navigation item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * The element to use for the navigation item\n\t */\n\t@Prop() as: string = 'a';\n\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() counter: number | string;\n\n\t/**\n\t * The href of the navigation item\n\t */\n\t@Prop() href: string;\n\n\t/**\n\t * The target of the navigation item\n\t */\n\t@Prop() target: string;\n\n\t/**\n\t * The class of the container passed by parent\n\t */\n\t@Prop() class: string;\n\n\trender() {\n\t\tconst TagType = this.as;\n\n\t\tconst active = this.active || this.class?.includes('active');\n\n\t\treturn (\n\t\t\t<Host class={cn('p-navigation-item inline-block', this.class)}>\n\t\t\t\t<TagType\n\t\t\t\t\tclass={navigationItem({\n\t\t\t\t\t\ticon: !!this.icon,\n\t\t\t\t\t\tactive,\n\t\t\t\t\t})}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t>\n\t\t\t\t\t<div class={navigationItemIconContainer({ active })}>\n\t\t\t\t\t\t<p-icon variant={this.icon} />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<span class={this.counter && 'has-counter'}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</span>\n\n\t\t\t\t\t{!!this.counter && this.counter !== '0' && (\n\t\t\t\t\t\t<p-badge>{this.counter}</p-badge>\n\t\t\t\t\t)}\n\t\t\t\t</TagType>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"p-navigation-item.entry.js","mappings":";;;;;AAAA,MAAM,0BAA0B,GAAG,qhDAAqhD,CAAC;AACzjD,8BAAe,0BAA0B;;ACIzC,MAAM,cAAc,GAAG,GAAG,CACzB;IACC,iBAAiB;IACjB,yBAAyB;IACzB,+CAA+C;IAC/C,YAAY;IACZ,WAAW;IACX,qBAAqB;IACrB,gBAAgB;CAChB,EACD;IACC,QAAQ,EAAE;QACT,MAAM,EAAE;YACP,KAAK,EAAE,CAAC,oBAAoB,CAAC;YAC7B,IAAI,EAAE,CAAC,oDAAoD,CAAC;SAC5D;QACD,IAAI,EAAE;YACL,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,CAAC,MAAM,CAAC;SACd;KACD;CACD,CACD,CAAC;AAEF,MAAM,2BAA2B,GAAG,GAAG,CACtC,CAAC,mEAAmE,CAAC,EACrE;IACC,QAAQ,EAAE;QACT,MAAM,EAAE;YACP,KAAK,EAAE,KAAK;YACZ,IAAI,EAAE,CAAC,qBAAqB,CAAC;SAC7B;KACD;CACD,CACD,CAAC;MAOW,cAAc;;;;sBASA,KAAK;uBAKJ,KAAK;kBAKX,GAAG;;;;;;IAsBxB,MAAM;QACL,MAAM,OAAO,GAAG,IAAI,CAAC,EAAE,CAAC;QAExB,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;QAE7D,QACC,EAAC,IAAI,qDAAC,KAAK,EAAE,EAAE,CAAC,gCAAgC,EAAE,IAAI,CAAC,KAAK,CAAC,IAC5D,EAAC,OAAO,qDACP,KAAK,EAAE,cAAc,CAAC;gBACrB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI;gBACjB,MAAM;aACN,CAAC,EACF,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,MAAM,EAAE,IAAI,CAAC,MAAM,IAEnB,4DAAK,KAAK,EAAE,2BAA2B,CAAC,EAAE,MAAM,EAAE,CAAC,IAClD,+DAAQ,OAAO,EAAE,IAAI,CAAC,IAAI,GAAI,CACzB,EAEN,6DAAM,KAAK,EAAE,IAAI,CAAC,OAAO,IAAI,aAAa,IACzC,8DAAQ,CACF,EAEN,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,KAAK,GAAG,KACtC,kEAAU,IAAI,CAAC,OAAO,CAAW,CACjC,EAEA,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,iEAAU,KAAK,EAAC,SAAS,GAAG,CACtC,CACJ,EACN;KACF;;;;;;","names":[],"sources":["src/components/molecules/navigation-item/navigation-item.component.scss?tag=p-navigation-item","src/components/molecules/navigation-item/navigation-item.component.tsx"],"sourcesContent":["// :host {\n// \t@apply mb-1 inline-block w-full;\n//\n// \t> a {\n// \t\t@apply h-8 w-full cursor-pointer rounded-lg px-2 no-underline;\n// \t\t@apply flex items-center gap-2;\n// \t\t@apply font-semibold text-storm;\n//\n// \t\t@apply hover:bg-indigo-light;\n//\n// \t\t> p-icon {\n// \t\t\t@apply text-storm;\n// \t\t}\n//\n// \t\t> span {\n// \t\t\t@apply mr-auto;\n// \t\t}\n// \t}\n// }\n//\n// :host(.active) {\n// \t> a {\n// \t\t@apply bg-indigo-light text-indigo;\n//\n// \t\t> p-icon {\n// \t\t\t@apply text-indigo;\n// \t\t}\n// \t}\n// }\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { IconVariant } from '../../atoms/icon/icon.component';\nimport { cn } from '../../../utils/cn';\n\nconst navigationItem = cva(\n\t[\n\t\t'h-8 w-[inherit]',\n\t\t'flex items-center gap-2',\n\t\t'text-black-teal-400 hover:text-black-teal-500',\n\t\t'rounded-lg',\n\t\t'py-1 px-2',\n\t\t'text-sm font-medium',\n\t\t'cursor-pointer',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tactive: {\n\t\t\t\tfalse: ['hover:bg-off-white'],\n\t\t\t\ttrue: ['bg-off-white-600 text-black-teal-500 font-semibold'],\n\t\t\t},\n\t\t\ticon: {\n\t\t\t\tfalse: false,\n\t\t\t\ttrue: ['pl-1'],\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst navigationItemIconContainer = cva(\n\t['flex h-6 aspect-branding items-center justify-center rounded-full'],\n\t{\n\t\tvariants: {\n\t\t\tactive: {\n\t\t\t\tfalse: false,\n\t\t\t\ttrue: ['bg-supportive-lilac'],\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-navigation-item',\n\tstyleUrl: './navigation-item.component.scss',\n\tshadow: false,\n})\nexport class NavigationItem {\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() icon!: IconVariant;\n\n\t/**\n\t * Wether the navigation item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Wether the navigation item is loading\n\t */\n\t@Prop() loading: boolean = false;\n\n\t/**\n\t * The element to use for the navigation item\n\t */\n\t@Prop() as: string = 'a';\n\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() counter: number | string;\n\n\t/**\n\t * The href of the navigation item\n\t */\n\t@Prop() href: string;\n\n\t/**\n\t * The target of the navigation item\n\t */\n\t@Prop() target: string;\n\n\t/**\n\t * The class of the container passed by parent\n\t */\n\t@Prop() class: string;\n\n\trender() {\n\t\tconst TagType = this.as;\n\n\t\tconst active = this.active || this.class?.includes('active');\n\n\t\treturn (\n\t\t\t<Host class={cn('p-navigation-item inline-block', this.class)}>\n\t\t\t\t<TagType\n\t\t\t\t\tclass={navigationItem({\n\t\t\t\t\t\ticon: !!this.icon,\n\t\t\t\t\t\tactive,\n\t\t\t\t\t})}\n\t\t\t\t\thref={this.href}\n\t\t\t\t\ttarget={this.target}\n\t\t\t\t>\n\t\t\t\t\t<div class={navigationItemIconContainer({ active })}>\n\t\t\t\t\t\t<p-icon variant={this.icon} />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<span class={this.counter && 'has-counter'}>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</span>\n\n\t\t\t\t\t{!!this.counter && this.counter !== '0' && (\n\t\t\t\t\t\t<p-badge>{this.counter}</p-badge>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{!!this.loading && <p-loader class='ml-auto' />}\n\t\t\t\t</TagType>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -9,7 +9,7 @@ const NavigationSection = class {
9
9
  this.header = undefined;
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: 'a1288ee15877b06095300a26d2d49919b9d84810', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '24b733f6352c4d7421d8a70480ea97da3a82f7bd' }, this.header)), h("div", { key: '77f586a8bfe435186fafba63466f5975e2e2fe6d', class: 'flex flex-col' }, h("slot", { key: 'a472a5b3cdd52dbf016c0a3430039d74af8b1d8c' }))));
12
+ return (h(Host, { key: '796e5ed44de63dc1f59630dad492272b6451ed0e', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (h("p-navigation-title", { key: '09d6b3680a110b5cd88d5cc9b5265c4b604c8ab3' }, this.header)), h("div", { key: '646ea16ad875dcfdf40aeb12657d946c39f44b3b', class: 'flex flex-col' }, h("slot", { key: 'c11b12a07b3a65b5ca1e8d61910d8a5160e32ea7' }))));
13
13
  }
14
14
  };
15
15
  NavigationSection.style = PNavigationSectionStyle0;
@@ -8,7 +8,7 @@ const NavigationTitle = class {
8
8
  registerInstance(this, hostRef);
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: '80b8c50d719ca86ec4484e18a202748e4ae3df30', class: 'p-navigation-title text-xs font-medium text-black-teal-300' }, h("slot", { key: 'cbb2fb72878e218be1baf44764f6f954b2faca51' })));
11
+ return (h(Host, { key: '03f65d5a95070603d879ebb523bef42234c2b84c', class: 'p-navigation-title text-xs font-medium text-black-teal-300' }, h("slot", { key: '77812e71ced0173f0794306d312b8f93d3576aad' })));
12
12
  }
13
13
  };
14
14
  NavigationTitle.style = PNavigationTitleStyle0;
@@ -66,7 +66,7 @@ const Pagination = class {
66
66
  this._generate();
67
67
  }
68
68
  render() {
69
- return (h(Host, { key: '69fc6fbdb1e075358090556d764d51fe8c03953c', class: `p-pagination ${this.hideOnSinglePage && this._set?.length === 3 && 'hidden'}` }, this._set?.map(p => {
69
+ return (h(Host, { key: '81016401bd076834a83260a0a081fc738867c08e', class: `p-pagination ${this.hideOnSinglePage && this._set?.length === 3 && 'hidden'}` }, this._set?.map(p => {
70
70
  if (p.type === 'previous' || p.type === 'next') {
71
71
  return (h("p-pagination-item", { onClick: () => p.type === 'previous'
72
72
  ? this._previousClick()
@@ -216,7 +216,7 @@ const PaginationItem = class {
216
216
  this.active = false;
217
217
  }
218
218
  render() {
219
- return (h(Host, { key: '5df379f6f05c43ebfc4ab5445126f51d722f4a2e', class: `p-pagination-item ${this.active && 'active'}` }, h("slot", { key: '9b26d26a42d4766cc3050a851b106ad211787b30' })));
219
+ return (h(Host, { key: '6a4e7f7bf424e158a087b7ba5e165f0f79293157', class: `p-pagination-item ${this.active && 'active'}` }, h("slot", { key: '5fc864a64664a7ea8d45228c25b6c3fb909515ad' })));
220
220
  }
221
221
  };
222
222
  PaginationItem.style = PPaginationItemStyle0;
@@ -0,0 +1,228 @@
1
+ import { r as registerInstance, g as getElement, h, H as Host, c as createEvent } from './index-2ef94580.js';
2
+ import { a as autoUpdate, c as computePosition, o as offset, f as flip, s as shift } from './floating-ui.dom.esm-1ee67651.js';
3
+ import { c as cva } from './index-10317a74.js';
4
+ import './clsx-297c1ffe.js';
5
+
6
+ const Portal = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ }
10
+ get _el() { return getElement(this); }
11
+ _moved = false;
12
+ createPortal() {
13
+ document.body.append(this._el);
14
+ }
15
+ componentDidLoad() {
16
+ this.createPortal();
17
+ }
18
+ disconnectedCallback() {
19
+ this._moved ? this._el.remove() : (this._moved = true);
20
+ }
21
+ render() {
22
+ return (h(Host, { key: '04f9a6ddfe5756fff19f51575ed4869d85c756d5' }, h("slot", { key: 'ad0bd91e83e2b35f2bdb10ed17a1d77be095782d' })));
23
+ }
24
+ };
25
+
26
+ const tooltipComponentCss = "*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.pointer-events-auto{pointer-events:auto!important}.visible{visibility:visible!important}.static{position:static!important}.fixed{position:fixed!important}.absolute{position:absolute!important}.relative{position:relative!important}.z-tooltip{z-index:601!important}.inline-block{display:inline-block!important}.flex{display:flex!important}.h-inherit{height:inherit!important}.w-\\[2px\\]{width:2px!important}.w-full{width:100%!important}.w-inherit{width:inherit!important}.w-max{width:max-content!important}.max-w-\\[14\\.5rem\\]{max-width:14.5rem!important}.max-w-full{max-width:100%!important}.cursor-pointer{cursor:pointer!important}.gap-2{gap:.5rem!important}.rounded-lg{border-radius:.5rem!important}.bg-black-teal{--tw-bg-opacity:1!important;background-color:rgb(3 42 36/var(--tw-bg-opacity,1))!important}.bg-negative-red{background-color:rgb(230 30 30/var(--tw-bg-opacity,1))!important}.bg-negative-red,.bg-white{--tw-bg-opacity:1!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.py-2{padding-bottom:.5rem!important;padding-top:.5rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.opacity-0{opacity:0!important}.opacity-100{opacity:1!important}.blur{--tw-blur:blur(8px)!important}.blur,.drop-shadow-3{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)!important}.drop-shadow-3{--tw-drop-shadow:drop-shadow(0 1px 1px rgba(0,2,2,.08)) drop-shadow(0 2px 2px rgba(0,2,2,.08)) drop-shadow(0 4px 4px rgba(0,2,2,.08))!important}.transition-opacity{transition-duration:.15s!important;transition-property:opacity!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}";
27
+ const PTooltipStyle0 = tooltipComponentCss;
28
+
29
+ const popover = cva([
30
+ 'inline-block px-2',
31
+ 'text-xs',
32
+ 'opacity-0 drop-shadow-3 transition-opacity',
33
+ 'rounded-lg',
34
+ 'z-tooltip',
35
+ 'pointer-events-none',
36
+ ], {
37
+ variants: {
38
+ variant: {
39
+ hover: 'bg-black-teal text-white py-1',
40
+ click: null,
41
+ error: 'max-w-full w-full',
42
+ },
43
+ strategy: {
44
+ none: null,
45
+ fixed: 'fixed',
46
+ absolute: 'absolute',
47
+ },
48
+ },
49
+ compoundVariants: [
50
+ {
51
+ variant: ['hover', 'click'],
52
+ class: 'max-w-[14.5rem] w-max',
53
+ },
54
+ {
55
+ variant: ['click', 'error'],
56
+ class: 'bg-white text-black-teal-300 py-2',
57
+ },
58
+ ],
59
+ });
60
+ const portal = cva('', {
61
+ variants: {
62
+ strategy: {
63
+ fixed: 'fixed',
64
+ absolute: 'absolute',
65
+ },
66
+ },
67
+ });
68
+ const Tooltip = class {
69
+ constructor(hostRef) {
70
+ registerInstance(this, hostRef);
71
+ this.isOpen = createEvent(this, "isOpen", 3);
72
+ this.variant = 'hover';
73
+ this.content = null;
74
+ this.placement = undefined;
75
+ this.offset = 8;
76
+ this.strategy = 'absolute';
77
+ this.enableUserInput = true;
78
+ this.show = false;
79
+ this.usePortal = false;
80
+ this.canManuallyClose = true;
81
+ }
82
+ /**
83
+ * Open change event
84
+ */
85
+ isOpen;
86
+ get _el() { return getElement(this); }
87
+ _hasContentSlot = false;
88
+ _loaded = false;
89
+ _popover;
90
+ _cleanup;
91
+ componentWillLoad() {
92
+ this._hasContentSlot = !!this._el.querySelector(':scope > [slot="content"]');
93
+ }
94
+ componentShouldUpdate() {
95
+ this._update();
96
+ }
97
+ disconnectedCallback() {
98
+ if (this._cleanup) {
99
+ this._cleanup();
100
+ this._cleanup = null;
101
+ }
102
+ }
103
+ render() {
104
+ const tooltipProps = {
105
+ role: 'popover',
106
+ 'data-placement': this.placement,
107
+ ref: el => this._load(el),
108
+ };
109
+ let tooltip;
110
+ const tooltipElement = (h("div", { key: 'e773c573f879f37ca26e3efb0621a148150cc988', class: popover({
111
+ variant: this.variant,
112
+ strategy: this.usePortal ? 'none' : this.strategy,
113
+ }), ...(this.usePortal ? {} : tooltipProps) }, h("div", { key: 'beae5aa49190a54cb3852aed32989e4393a4577b', class: 'flex gap-2' }, this.variant === 'error' && (h("div", { key: '2df89a5828f590f1140e7b49d0fdbc0bbd342e76', class: 'w-[2px] bg-negative-red' })), this.content ? this.content : h("slot", { name: 'content' }))));
114
+ if (this.usePortal) {
115
+ tooltip = (h("p-portal", { key: 'b10a6efabbd222ac3f49ce1ed609225d43aef28c', class: portal({
116
+ strategy: this.strategy,
117
+ }), ...tooltipProps }, tooltipElement));
118
+ }
119
+ else {
120
+ tooltip = tooltipElement;
121
+ }
122
+ return (h(Host, { key: '49b2555dfde9308712f54352b71b6b3392237f92', class: 'p-popover flex cursor-pointer' }, h("div", { key: '75bfdc10b8af271be06fb857d3f08e040c05711a', class: 'relative h-inherit w-inherit' }, h("slot", { key: '9dae75ed3b6edb2384b8a5d5b573aad90278a875', name: 'trigger' }), tooltip)));
123
+ }
124
+ clickHandler() {
125
+ if (this.variant === 'hover' || !this.enableUserInput) {
126
+ return;
127
+ }
128
+ if (this._popover.hasAttribute('data-show')) {
129
+ return;
130
+ }
131
+ this._show();
132
+ }
133
+ documentClickHandler() {
134
+ if (this.variant === 'hover' || !this.canManuallyClose || this.show) {
135
+ return;
136
+ }
137
+ if (!this._popover.hasAttribute('data-show')) {
138
+ return;
139
+ }
140
+ this._hide();
141
+ }
142
+ mouseEnterHandler() {
143
+ if (this.variant !== 'hover' || !this.enableUserInput) {
144
+ return;
145
+ }
146
+ this._show();
147
+ }
148
+ mouseLeaveHandler() {
149
+ if (this.show || this.variant !== 'hover' || !this.enableUserInput) {
150
+ return;
151
+ }
152
+ this._hide();
153
+ }
154
+ onShowChange(show) {
155
+ if (show && !this._popover.hasAttribute('data-show')) {
156
+ return this._show();
157
+ }
158
+ return this._hide();
159
+ }
160
+ _show() {
161
+ if (!this._loaded) {
162
+ return;
163
+ }
164
+ if (!this.content?.length && !this._hasContentSlot) {
165
+ if (this._popover.hasAttribute('data-show')) {
166
+ this._hide();
167
+ }
168
+ return;
169
+ }
170
+ this._cleanup = autoUpdate(this._el, this._popover, () => this._update());
171
+ // Make the popover visible
172
+ this._popover.setAttribute('data-show', '');
173
+ this._popover.classList.remove('opacity-0', 'pointer-events-none');
174
+ this._popover.classList.add('opacity-100', 'pointer-events-auto');
175
+ // Update its position
176
+ this.isOpen.emit(true);
177
+ }
178
+ _hide() {
179
+ if (!this._loaded) {
180
+ return;
181
+ }
182
+ if (this._cleanup) {
183
+ this._cleanup();
184
+ this._cleanup = null;
185
+ }
186
+ // Hide the popover
187
+ this._popover.removeAttribute('data-show');
188
+ this._popover.classList.remove('opacity-100', 'pointer-events-auto');
189
+ this._popover.classList.add('opacity-0', 'pointer-events-none');
190
+ this.isOpen.emit(false);
191
+ }
192
+ _load(popover) {
193
+ this._popover = popover;
194
+ if (popover) {
195
+ this._update();
196
+ this._loaded = true;
197
+ if (this.show) {
198
+ setTimeout(() => this._show(), 100);
199
+ }
200
+ }
201
+ }
202
+ _update() {
203
+ if (!this._popover) {
204
+ return;
205
+ }
206
+ computePosition(this._el, this._popover, {
207
+ placement: this.variant === 'error' && !this.placement
208
+ ? 'bottom-start'
209
+ : this.placement ?? 'top',
210
+ strategy: this.strategy,
211
+ middleware: [offset(this.offset), flip(), shift()],
212
+ }).then(({ x, y, placement }) => {
213
+ this._popover.dataset.placement = placement;
214
+ Object.assign(this._popover.style, {
215
+ top: `${y}px`,
216
+ left: `${x}px`,
217
+ });
218
+ });
219
+ }
220
+ static get watchers() { return {
221
+ "show": ["onShowChange"]
222
+ }; }
223
+ };
224
+ Tooltip.style = PTooltipStyle0;
225
+
226
+ export { Portal as p_portal, Tooltip as p_tooltip };
227
+
228
+ //# sourceMappingURL=p-portal_2.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"p-portal.p-tooltip.entry.js","mappings":"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","names":[],"sources":["src/components/atoms/portal/portal.component.tsx","src/components/atoms/tooltip/tooltip.component.scss?tag=p-tooltip&encapsulation=shadow","src/components/atoms/tooltip/tooltip.component.tsx"],"sourcesContent":["import { Component, Element, h, Host } from '@stencil/core';\n\n@Component({\n\ttag: 'p-portal',\n})\nexport class Portal {\n\t/**\n\t * The host element\n\t */\n\t@Element() _el: HTMLElement;\n\n\tprivate _moved: boolean = false;\n\n\tprivate createPortal() {\n\t\tdocument.body.append(this._el);\n\t}\n\n\tcomponentDidLoad() {\n\t\tthis.createPortal();\n\t}\n\n\tdisconnectedCallback() {\n\t\tthis._moved ? this._el.remove() : (this._moved = true);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","// :host {\n// \t@apply flex cursor-pointer;\n//\n// \t.popover-container {\n// \t\t@apply relative h-0 w-0;\n// \t\t.popover {\n// \t\t\t@apply left-0 top-0 z-tooltip inline-block rounded bg-white px-3 py-2 text-xs font-medium opacity-0 drop-shadow-3 transition-opacity;\n// \t\t\t@apply pointer-events-none;\n// \t\t\twidth: max-content;\n// \t\t\tmax-width: 14.5rem;\n//\n// \t\t\t&.variant-hover,\n// \t\t\t&.variant-error,\n// \t\t\t&.variant-error-element {\n// \t\t\t\t@apply bg-storm py-1 text-white;\n// \t\t\t}\n//\n// \t\t\t&.variant-error,\n// \t\t\t&.variant-error-element {\n// \t\t\t\t@apply bg-negative uppercase tracking-wider;\n// \t\t\t}\n//\n// \t\t\t&[data-show] {\n// \t\t\t\t@apply pointer-events-auto opacity-100;\n// \t\t\t}\n//\n// \t\t\t.arrow,\n// \t\t\t.arrow::before {\n// \t\t\t\tbackground: inherit;\n// \t\t\t\t@apply absolute h-2 w-2;\n// \t\t\t}\n//\n// \t\t\t.arrow {\n// \t\t\t\tvisibility: hidden;\n//\n// \t\t\t\t&::before {\n// \t\t\t\t\t@apply visible rotate-45 transform;\n// \t\t\t\t\tcontent: '';\n// \t\t\t\t}\n// \t\t\t}\n//\n// \t\t\t&[data-strategy='fixed'] {\n// \t\t\t\t@apply fixed;\n// \t\t\t}\n//\n// \t\t\t&[data-strategy='absolute'] {\n// \t\t\t\t@apply absolute;\n// \t\t\t}\n//\n// \t\t\t&[data-placement^='top'] > .arrow {\n// \t\t\t\t@apply -bottom-1;\n// \t\t\t}\n//\n// \t\t\t&[data-placement^='bottom'] > .arrow {\n// \t\t\t\t@apply -top-1;\n// \t\t\t}\n//\n// \t\t\t&[data-placement^='left'] > .arrow {\n// \t\t\t\t@apply -right-1;\n// \t\t\t}\n//\n// \t\t\t&[data-placement^='right'] > .arrow {\n// \t\t\t\t@apply -left-1;\n// \t\t\t}\n// \t\t}\n// \t}\n// }\n","import {\n\tautoUpdate,\n\tcomputePosition,\n\tflip,\n\toffset,\n\tPlacement,\n\tshift,\n\tStrategy,\n} from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tWatch,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst popover = cva(\n\t[\n\t\t'inline-block px-2',\n\t\t'text-xs',\n\t\t'opacity-0 drop-shadow-3 transition-opacity',\n\t\t'rounded-lg',\n\n\t\t'z-tooltip',\n\t\t'pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\thover: 'bg-black-teal text-white py-1',\n\t\t\t\tclick: null,\n\t\t\t\terror: 'max-w-full w-full',\n\t\t\t},\n\t\t\tstrategy: {\n\t\t\t\tnone: null,\n\t\t\t\tfixed: 'fixed',\n\t\t\t\tabsolute: 'absolute',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: ['hover', 'click'],\n\t\t\t\tclass: 'max-w-[14.5rem] w-max',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: ['click', 'error'],\n\t\t\t\tclass: 'bg-white text-black-teal-300 py-2',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst portal = cva('', {\n\tvariants: {\n\t\tstrategy: {\n\t\t\tfixed: 'fixed',\n\t\t\tabsolute: 'absolute',\n\t\t},\n\t},\n});\n\n@Component({\n\ttag: 'p-tooltip',\n\tstyleUrl: 'tooltip.component.scss',\n\tshadow: true,\n})\nexport class Tooltip {\n\t/**\n\t * The variant of the popover\n\t */\n\t@Prop() variant: 'hover' | 'click' | 'error' = 'hover';\n\n\t/**\n\t * The content of the popover\n\t */\n\t@Prop() content: any = null;\n\n\t/**\n\t * The placement of the popover\n\t */\n\t@Prop() placement: Placement;\n\n\t/**\n\t * The offset of the popover\n\t */\n\t@Prop() offset: number = 8;\n\n\t/**\n\t * The strategy of the popover placement\n\t */\n\t@Prop() strategy: Strategy = 'absolute';\n\n\t/**\n\t * Wether the tooltip can be shown by user input\n\t */\n\t@Prop() enableUserInput: boolean = true;\n\n\t/**\n\t * Wether to show the popover\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to use a portal for the tooltip\n\t */\n\t@Prop() usePortal: boolean = false;\n\n\t/**\n\t * Wether to someone can manually close the popover\n\t */\n\t@Prop() canManuallyClose: boolean = true;\n\n\t/**\n\t * Open change event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tisOpen: EventEmitter<boolean>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasContentSlot = false;\n\n\tprivate _loaded = false;\n\tprivate _popover: HTMLElement;\n\tprivate _cleanup: () => void;\n\n\tcomponentWillLoad() {\n\t\tthis._hasContentSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"content\"]'\n\t\t);\n\t}\n\n\tcomponentShouldUpdate() {\n\t\tthis._update();\n\t}\n\n\tdisconnectedCallback() {\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\t}\n\n\trender() {\n\t\tconst tooltipProps = {\n\t\t\trole: 'popover',\n\t\t\t'data-placement': this.placement,\n\t\t\tref: el => this._load(el),\n\t\t};\n\n\t\tlet tooltip: HTMLElement;\n\n\t\tconst tooltipElement = (\n\t\t\t<div\n\t\t\t\tclass={popover({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tstrategy: this.usePortal ? 'none' : this.strategy,\n\t\t\t\t})}\n\t\t\t\t{...(this.usePortal ? {} : tooltipProps)}\n\t\t\t>\n\t\t\t\t<div class='flex gap-2'>\n\t\t\t\t\t{this.variant === 'error' && (\n\t\t\t\t\t\t<div class='w-[2px] bg-negative-red'></div>\n\t\t\t\t\t)}\n\t\t\t\t\t{this.content ? this.content : <slot name='content' />}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\n\t\tif (this.usePortal) {\n\t\t\ttooltip = (\n\t\t\t\t<p-portal\n\t\t\t\t\tclass={portal({\n\t\t\t\t\t\tstrategy: this.strategy,\n\t\t\t\t\t})}\n\t\t\t\t\t{...tooltipProps}\n\t\t\t\t>\n\t\t\t\t\t{tooltipElement}\n\t\t\t\t</p-portal>\n\t\t\t);\n\t\t} else {\n\t\t\ttooltip = tooltipElement;\n\t\t}\n\n\t\treturn (\n\t\t\t<Host class='p-popover flex cursor-pointer'>\n\t\t\t\t<div class='relative h-inherit w-inherit'>\n\t\t\t\t\t<slot name='trigger' />\n\t\t\t\t\t{tooltip}\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('click', { capture: true })\n\tprotected clickHandler() {\n\t\tif (this.variant === 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('click', { target: 'document', capture: true })\n\tprotected documentClickHandler() {\n\t\tif (this.variant === 'hover' || !this.canManuallyClose || this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this._popover.hasAttribute('data-show')) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Listen('mouseenter')\n\t@Listen('focus')\n\tprotected mouseEnterHandler() {\n\t\tif (this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._show();\n\t}\n\n\t@Listen('mouseleave')\n\t@Listen('blur')\n\tprotected mouseLeaveHandler() {\n\t\tif (this.show || this.variant !== 'hover' || !this.enableUserInput) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._hide();\n\t}\n\n\t@Watch('show')\n\tonShowChange(show: boolean) {\n\t\tif (show && !this._popover.hasAttribute('data-show')) {\n\t\t\treturn this._show();\n\t\t}\n\n\t\treturn this._hide();\n\t}\n\n\tprivate _show() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!this.content?.length && !this._hasContentSlot) {\n\t\t\tif (this._popover.hasAttribute('data-show')) {\n\t\t\t\tthis._hide();\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tthis._cleanup = autoUpdate(this._el, this._popover, () => this._update());\n\t\t// Make the popover visible\n\t\tthis._popover.setAttribute('data-show', '');\n\n\t\tthis._popover.classList.remove('opacity-0', 'pointer-events-none');\n\t\tthis._popover.classList.add('opacity-100', 'pointer-events-auto');\n\n\t\t// Update its position\n\t\tthis.isOpen.emit(true);\n\t}\n\n\tprivate _hide() {\n\t\tif (!this._loaded) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (this._cleanup) {\n\t\t\tthis._cleanup();\n\t\t\tthis._cleanup = null;\n\t\t}\n\n\t\t// Hide the popover\n\t\tthis._popover.removeAttribute('data-show');\n\n\t\tthis._popover.classList.remove('opacity-100', 'pointer-events-auto');\n\t\tthis._popover.classList.add('opacity-0', 'pointer-events-none');\n\n\t\tthis.isOpen.emit(false);\n\t}\n\n\tprivate _load(popover: HTMLElement) {\n\t\tthis._popover = popover;\n\n\t\tif (popover) {\n\t\t\tthis._update();\n\t\t\tthis._loaded = true;\n\n\t\t\tif (this.show) {\n\t\t\t\tsetTimeout(() => this._show(), 100);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate _update() {\n\t\tif (!this._popover) {\n\t\t\treturn;\n\t\t}\n\n\t\tcomputePosition(this._el, this._popover, {\n\t\t\tplacement:\n\t\t\t\tthis.variant === 'error' && !this.placement\n\t\t\t\t\t? 'bottom-start'\n\t\t\t\t\t: this.placement ?? 'top',\n\t\t\tstrategy: this.strategy,\n\n\t\t\tmiddleware: [offset(this.offset), flip(), shift()],\n\t\t}).then(({ x, y, placement }) => {\n\t\t\tthis._popover.dataset.placement = placement;\n\t\t\tObject.assign(this._popover.style, {\n\t\t\t\ttop: `${y}px`,\n\t\t\t\tleft: `${x}px`,\n\t\t\t});\n\t\t});\n\t}\n}\n"],"version":3}
@@ -29,7 +29,7 @@ const Profile = class {
29
29
  }
30
30
  render() {
31
31
  const content = this._getContent();
32
- return (h(Host, { key: '9873db1fac73ae3914b7d27caacfb0a8682909b4', class: 'p-profile inline-block w-inherit' }, this._hasDropdownSlot ? (h("p-dropdown", { class: 'block', strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
32
+ return (h(Host, { key: '1ff9fb75ed53f1e4c9e53dd942f150fae77484d4', class: 'p-profile inline-block w-inherit' }, this._hasDropdownSlot ? (h("p-dropdown", { class: 'block', strategy: 'absolute', placement: this.dropdownLocation, applyFullWidth: true, applyMaxWidth: false, onIsOpen: ev => (this._dropdownOpen = ev.detail) }, h("p-button", { variant: 'dropdown', chevron: this._dropdownOpen ? 'up' : 'down', active: this._dropdownOpen, slot: 'trigger', size: 'lg', class: 'w-full' }, content), h("div", { slot: 'items' }, h("slot", { name: 'dropdown', onSlotchange: () => this._checkDropdownSlot() })))) : (content)));
33
33
  }
34
34
  slotchange() {
35
35
  this._checkDropdownSlot();
@@ -1,20 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-2ef94580.js';
2
2
  import { c as cva } from './index-10317a74.js';
3
+ import { n as nonce } from './nonce-a9254eb4.js';
3
4
  import './clsx-297c1ffe.js';
4
5
 
5
- const nonce = (length) => {
6
- let result = '';
7
- const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
8
- const charactersLength = characters.length;
9
- let counter = 0;
10
- while (counter < length) {
11
- result += characters.charAt(Math.floor(Math.random() * charactersLength));
12
- counter += 1;
13
- }
14
- return result;
15
- };
16
-
17
- const radioComponentCss = ".block{display:block!important}*{box-sizing:border-box}:host{display:block}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-1\\/2{left:50%!important}.top-1\\/2{top:50%!important}.m-0{margin:0!important}.flex{display:flex!important}.h-2{height:.5rem!important}.h-3{height:.75rem!important}.h-4{height:1rem!important}.h-6{height:1.5rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-6{width:1.5rem!important}.flex-shrink-0{flex-shrink:0!important}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.-translate-x-1\\/2,.-translate-y-1\\/2{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))!important}.-translate-y-1\\/2{--tw-translate-y:-50%!important}.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))!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.appearance-none{appearance:none!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-black-teal-50{--tw-border-opacity:1!important;border-color:rgb(230 234 233/var(--tw-border-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.shadow-1{--tw-shadow:0 1px 1px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.after\\:h-2:after{content:var(--tw-content)!important;height:.5rem!important}.after\\:h-3:after{content:var(--tw-content)!important;height:.75rem!important}.after\\:w-2:after{content:var(--tw-content)!important;width:.5rem!important}.after\\:w-3:after{content:var(--tw-content)!important;width:.75rem!important}.checked\\:cursor-auto:checked{cursor:auto!important}.checked\\:border-black-teal\\/20:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:bg-supportive-lilac:checked{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.checked\\:ring-2:checked{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.checked\\:ring-supportive-lilac-100:checked{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.hover\\:border-black-teal-100:hover{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.hover\\:bg-supportive-lilac-100:hover{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-opacity,1))!important}.checked\\:hover\\:border-black-teal\\/20:hover:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:hover\\:bg-supportive-lilac:hover:checked{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.peer:checked~.peer-checked\\:bg-black-teal-200{--tw-bg-opacity:1!important;background-color:rgb(154 170 167/var(--tw-bg-opacity,1))!important}.peer:checked~.peer-checked\\:bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.peer:checked~.peer-checked\\:ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.peer:checked~.peer-checked\\:ring-black-teal\\/10{--tw-ring-color:rgba(3,42,36,.1)!important}";
6
+ const radioComponentCss = "*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-1\\/2{left:50%!important}.top-1\\/2{top:50%!important}.m-0{margin:0!important}.block{display:block!important}.flex{display:flex!important}.h-2{height:.5rem!important}.h-3{height:.75rem!important}.h-4{height:1rem!important}.h-6{height:1.5rem!important}.w-2{width:.5rem!important}.w-3{width:.75rem!important}.w-4{width:1rem!important}.w-6{width:1.5rem!important}.flex-shrink-0{flex-shrink:0!important}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.-translate-x-1\\/2,.-translate-y-1\\/2{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))!important}.-translate-y-1\\/2{--tw-translate-y:-50%!important}.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))!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.appearance-none{appearance:none!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-black-teal-50{--tw-border-opacity:1!important;border-color:rgb(230 234 233/var(--tw-border-opacity,1))!important}.bg-transparent{background-color:transparent!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.shadow-1{--tw-shadow:0 1px 1px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.checked\\:cursor-auto:checked{cursor:auto!important}.checked\\:border-black-teal\\/20:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:bg-supportive-lilac:checked{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.checked\\:ring-2:checked{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.checked\\:ring-supportive-lilac-100:checked{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.hover\\:border-black-teal-100:hover{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.hover\\:bg-supportive-lilac-100:hover{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-opacity,1))!important}.checked\\:hover\\:border-black-teal\\/20:hover:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:hover\\:bg-supportive-lilac:hover:checked{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.peer:checked~.peer-checked\\:bg-black-teal-200{--tw-bg-opacity:1!important;background-color:rgb(154 170 167/var(--tw-bg-opacity,1))!important}.peer:checked~.peer-checked\\:bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.peer:checked~.peer-checked\\:ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.peer:checked~.peer-checked\\:ring-black-teal\\/10{--tw-ring-color:rgba(3,42,36,.1)!important}";
18
7
  const PRadioStyle0 = radioComponentCss;
19
8
 
20
9
  const radio = cva([
@@ -23,8 +12,8 @@ const radio = cva([
23
12
  ], {
24
13
  variants: {
25
14
  size: {
26
- sm: 'w-4 h-4 after:w-2 after:h-2',
27
- base: 'w-6 h-6 after:w-3 after:h-3',
15
+ sm: 'w-4 h-4',
16
+ base: 'w-6 h-6',
28
17
  },
29
18
  disabled: {
30
19
  false: [
@@ -84,13 +73,13 @@ const Radio = class {
84
73
  */
85
74
  checkedChange;
86
75
  render() {
87
- return (h(Host, { key: '698efa40dc903fc7f62fbe6627118851b4674c0d', class: 'p-radio' }, h("label", { key: '601a7b79a63ef0914fef089c88e984029326fa8e', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, h("div", { key: 'e7e1df8384a3be709a09988ede46d1f7c7420ec5', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: '1d73f1ab4f24ef4f83ce18d49f62695a4b239780', class: radio({
76
+ return (h(Host, { key: 'cadcfb2a903a3a9f70796770dc47f22caf199b5e', class: 'p-radio' }, h("label", { key: 'bad70100ebbf0d8635fb9a50c274aac56b74735a', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, h("div", { key: '87c8c6b485b23beb305450bb18416936425e000e', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: '500655357e45b7ed47b651993b2a4e62aaae1818', class: radio({
88
77
  size: this.size,
89
78
  disabled: this.disabled,
90
- }), type: 'radio', id: this.id ?? this._nonce, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: this.disabled, onChange: ev => this._onChange(ev) }), h("div", { key: 'fa13b7db3606b24ab380695b4e111ae853ab4ac3', class: circle({
79
+ }), type: 'radio', id: this.id ?? this._nonce, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: this.disabled, onChange: ev => this._onChange(ev) }), h("div", { key: '23b0de0ff8913ed6bc66bddd50eea9117063b880', class: circle({
91
80
  size: this.size,
92
81
  disabled: this.disabled,
93
- }) })), h("slot", { key: 'aab4f0698c576a85fbda9e2f776aaea801d93bd8' }))));
82
+ }) })), h("slot", { key: 'bbf707984104b091871111ae1d1e79ea09f5e7b8' }))));
94
83
  }
95
84
  _onChange(ev) {
96
85
  if (this.disabled) {
@@ -1 +1 @@
1
- {"file":"p-radio.entry.js","mappings":";;;;AAAO,MAAM,KAAK,GAAG,CAAC,MAAc;IACnC,IAAI,MAAM,GAAG,EAAE,CAAC;IAEhB,MAAM,UAAU,GACf,gEAAgE,CAAC;IAClE,MAAM,gBAAgB,GAAG,UAAU,CAAC,MAAM,CAAC;IAE3C,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,OAAO,OAAO,GAAG,MAAM,EAAE;QACxB,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,gBAAgB,CAAC,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC,CAAC;KACb;IAED,OAAO,MAAM,CAAC;AACf,CAAC;;ACdD,MAAM,iBAAiB,GAAG,isJAAisJ,CAAC;AAC5tJ,qBAAe,iBAAiB;;ACWhC,MAAM,KAAK,GAAG,GAAG,CAChB;IACC,qDAAqD;IACrD,gDAAgD;CAChD,EACD;IACC,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,EAAE,EAAE,6BAA6B;YACjC,IAAI,EAAE,6BAA6B;SACnC;QACD,QAAQ,EAAE;YACT,KAAK,EAAE;gBACN,yBAAyB;gBACzB,gCAAgC;gBAChC,4DAA4D;gBAC5D,qBAAqB;gBACrB,0DAA0D;gBAC1D,kDAAkD;gBAClD,sEAAsE;aACtE;YACD,IAAI,EAAE,uDAAuD;SAC7D;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE;gBACN,yBAAyB;gBACzB,gCAAgC;gBAChC,2DAA2D;aAC3D;SACD;KACD;CACD,CACD,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG,CACjB;IACC,OAAO;IACP,6BAA6B;IAC7B,2FAA2F;CAC3F,EACD;IACC,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;SACf;QACD,QAAQ,EAAE;YACT,KAAK,EACJ,2EAA2E;YAC5E,IAAI,EAAE,gCAAgC;SACtC;KACD;CACD,CACD,CAAC;MAMW,KAAK;;;;;oBASa,MAAM;wBAKS,KAAK;wBAKL,IAAI;;;uBAeL,KAAK;sBAOvB,KAAK,CAAC,CAAC,CAAC;;;;;IAFzB,aAAa,CAAwB;IAI9C,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAC,SAAS,IACpB,8DACC,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,MAAM,EAC/B,KAAK,EAAC,uDAAuD,IAE7D,4DAAK,KAAK,EAAC,0CAA0C,IACpD,8DACC,KAAK,EAAE,KAAK,CAAC;gBACZ,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACvB,CAAC,EACF,IAAI,EAAC,OAAO,EACZ,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,MAAM,EAC1B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,EAAE,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,GACjC,EACF,4DACC,KAAK,EAAE,MAAM,CAAC;gBACb,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACvB,CAAC,GACD,CACG,EACN,8DAAa,CACN,CACF,EACN;KACF;IAEO,SAAS,CAAC,EAAS;QAC1B,IAAI,IAAI,CAAC,QAAQ,EAAE;YAClB,EAAE,CAAC,cAAc,EAAE,CAAC;YACpB,OAAO;SACP;QAED,MAAM,OAAO,GAAI,EAAE,CAAC,MAA2B,CAAC,OAAO,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACjC;;;;;;","names":[],"sources":["src/utils/nonce.ts","src/components/atoms/radio/radio.component.css?tag=p-radio","src/components/atoms/radio/radio.component.tsx"],"sourcesContent":["export const nonce = (length: number) => {\n\tlet result = '';\n\n\tconst characters =\n\t\t'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n\tconst charactersLength = characters.length;\n\n\tlet counter = 0;\n\twhile (counter < length) {\n\t\tresult += characters.charAt(Math.floor(Math.random() * charactersLength));\n\t\tcounter += 1;\n\t}\n\n\treturn result;\n};\n",":host {\n display: block;\n}\n","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\tHost,\n\tProp,\n\tState,\n\th,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { nonce } from '../../../utils/nonce';\n\nconst radio = cva(\n\t[\n\t\t'peer appearance-none m-0 outline-none flex-shrink-0',\n\t\t'rounded-full border border-inset border-solid ',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'w-4 h-4 after:w-2 after:h-2',\n\t\t\t\tbase: 'w-6 h-6 after:w-3 after:h-3',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: [\n\t\t\t\t\t'cursor-pointer shadow-1',\n\t\t\t\t\t'bg-white border-black-teal-100',\n\t\t\t\t\t'hover:bg-supportivce-lilac-100 hover:border-black-teal-100',\n\t\t\t\t\t'checked:cursor-auto',\n\t\t\t\t\t'checked:bg-supportive-lilac checked:border-black-teal/20',\n\t\t\t\t\t'checked:ring-2 checked:ring-supportive-lilac-100',\n\t\t\t\t\t'checked:hover:bg-supportive-lilac checked:hover:border-black-teal/20',\n\t\t\t\t],\n\t\t\t\ttrue: 'bg-white-600 border-black-teal-50 cursor-not-allowed ',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: [\n\t\t\t\t\t'cursor-pointer shadow-1',\n\t\t\t\t\t'bg-white border-black-teal-100',\n\t\t\t\t\t'hover:bg-supportive-lilac-100 hover:border-black-teal-100',\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst circle = cva(\n\t[\n\t\t'block',\n\t\t'rounded-full bg-transparent',\n\t\t'absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'w-2 h-2',\n\t\t\t\tbase: 'w-3 h-3',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse:\n\t\t\t\t\t'peer-checked:bg-white peer-checked:ring-1 peer-checked:ring-black-teal/10',\n\t\t\t\ttrue: 'peer-checked:bg-black-teal-200',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-radio',\n\tstyleUrl: 'radio.component.css',\n})\nexport class Radio {\n\t/**\n\t * The value of the radio button\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The size of the radio\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * Wether the radio is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the radio is required\n\t */\n\t@Prop({ reflect: true }) required: boolean = true;\n\n\t/**\n\t * The id of the radio button\n\t */\n\t@Prop({ reflect: true }) id: string;\n\n\t/**\n\t * The name of the radio button\n\t */\n\t@Prop({ reflect: true }) name: string;\n\n\t/**\n\t * Wether the radio is checked\n\t */\n\t@Prop({ reflect: true }) checked: boolean = false;\n\n\t/**\n\t * Event whenever the checked changes\n\t */\n\t@Event() checkedChange: EventEmitter<boolean>;\n\n\t@State() private _nonce = nonce(5);\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-radio'>\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={this.id ?? this._nonce}\n\t\t\t\t\tclass='flex items-center justify-start gap-2 text-black-teal'\n\t\t\t\t>\n\t\t\t\t\t<div class='relative flex flex-shrink-0 items-center'>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={radio({\n\t\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\ttype='radio'\n\t\t\t\t\t\t\tid={this.id ?? this._nonce}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tonChange={ev => this._onChange(ev)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={circle({\n\t\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</label>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _onChange(ev: Event) {\n\t\tif (this.disabled) {\n\t\t\tev.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tconst checked = (ev.target as HTMLInputElement).checked;\n\t\tthis.checked = checked;\n\t\tthis.checkedChange.emit(checked);\n\t}\n}\n"],"version":3}
1
+ {"file":"p-radio.entry.js","mappings":";;;;;AAAA,MAAM,iBAAiB,GAAG,q3IAAq3I,CAAC;AACh5I,qBAAe,iBAAiB;;ACWhC,MAAM,KAAK,GAAG,GAAG,CAChB;IACC,qDAAqD;IACrD,gDAAgD;CAChD,EACD;IACC,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;SACf;QACD,QAAQ,EAAE;YACT,KAAK,EAAE;gBACN,yBAAyB;gBACzB,gCAAgC;gBAChC,4DAA4D;gBAC5D,qBAAqB;gBACrB,0DAA0D;gBAC1D,kDAAkD;gBAClD,sEAAsE;aACtE;YACD,IAAI,EAAE,uDAAuD;SAC7D;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE;gBACN,yBAAyB;gBACzB,gCAAgC;gBAChC,2DAA2D;aAC3D;SACD;KACD;CACD,CACD,CAAC;AAEF,MAAM,MAAM,GAAG,GAAG,CACjB;IACC,OAAO;IACP,6BAA6B;IAC7B,2FAA2F;CAC3F,EACD;IACC,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,EAAE,EAAE,SAAS;YACb,IAAI,EAAE,SAAS;SACf;QACD,QAAQ,EAAE;YACT,KAAK,EACJ,2EAA2E;YAC5E,IAAI,EAAE,gCAAgC;SACtC;KACD;CACD,CACD,CAAC;MAMW,KAAK;;;;;oBASa,MAAM;wBAKS,KAAK;wBAKL,IAAI;;;uBAeL,KAAK;sBAOvB,KAAK,CAAC,CAAC,CAAC;;;;;IAFzB,aAAa,CAAwB;IAI9C,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAC,SAAS,IACpB,8DACC,OAAO,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,MAAM,EAC/B,KAAK,EAAC,uDAAuD,IAE7D,4DAAK,KAAK,EAAC,0CAA0C,IACpD,8DACC,KAAK,EAAE,KAAK,CAAC;gBACZ,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACvB,CAAC,EACF,IAAI,EAAC,OAAO,EACZ,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,MAAM,EAC1B,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,EAAE,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,GACjC,EACF,4DACC,KAAK,EAAE,MAAM,CAAC;gBACb,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACvB,CAAC,GACD,CACG,EACN,8DAAa,CACN,CACF,EACN;KACF;IAEO,SAAS,CAAC,EAAS;QAC1B,IAAI,IAAI,CAAC,QAAQ,EAAE;YAClB,EAAE,CAAC,cAAc,EAAE,CAAC;YACpB,OAAO;SACP;QAED,MAAM,OAAO,GAAI,EAAE,CAAC,MAA2B,CAAC,OAAO,CAAC;QACxD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACjC;;;;;;","names":[],"sources":["src/components/atoms/radio/radio.component.css?tag=p-radio","src/components/atoms/radio/radio.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\tHost,\n\tProp,\n\tState,\n\th,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { nonce } from '../../../utils/nonce';\n\nconst radio = cva(\n\t[\n\t\t'peer appearance-none m-0 outline-none flex-shrink-0',\n\t\t'rounded-full border border-inset border-solid ',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'w-4 h-4',\n\t\t\t\tbase: 'w-6 h-6',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: [\n\t\t\t\t\t'cursor-pointer shadow-1',\n\t\t\t\t\t'bg-white border-black-teal-100',\n\t\t\t\t\t'hover:bg-supportivce-lilac-100 hover:border-black-teal-100',\n\t\t\t\t\t'checked:cursor-auto',\n\t\t\t\t\t'checked:bg-supportive-lilac checked:border-black-teal/20',\n\t\t\t\t\t'checked:ring-2 checked:ring-supportive-lilac-100',\n\t\t\t\t\t'checked:hover:bg-supportive-lilac checked:hover:border-black-teal/20',\n\t\t\t\t],\n\t\t\t\ttrue: 'bg-white-600 border-black-teal-50 cursor-not-allowed ',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: [\n\t\t\t\t\t'cursor-pointer shadow-1',\n\t\t\t\t\t'bg-white border-black-teal-100',\n\t\t\t\t\t'hover:bg-supportive-lilac-100 hover:border-black-teal-100',\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst circle = cva(\n\t[\n\t\t'block',\n\t\t'rounded-full bg-transparent',\n\t\t'absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'w-2 h-2',\n\t\t\t\tbase: 'w-3 h-3',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse:\n\t\t\t\t\t'peer-checked:bg-white peer-checked:ring-1 peer-checked:ring-black-teal/10',\n\t\t\t\ttrue: 'peer-checked:bg-black-teal-200',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-radio',\n\tstyleUrl: 'radio.component.css',\n})\nexport class Radio {\n\t/**\n\t * The value of the radio button\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The size of the radio\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * Wether the radio is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the radio is required\n\t */\n\t@Prop({ reflect: true }) required: boolean = true;\n\n\t/**\n\t * The id of the radio button\n\t */\n\t@Prop({ reflect: true }) id: string;\n\n\t/**\n\t * The name of the radio button\n\t */\n\t@Prop({ reflect: true }) name: string;\n\n\t/**\n\t * Wether the radio is checked\n\t */\n\t@Prop({ reflect: true }) checked: boolean = false;\n\n\t/**\n\t * Event whenever the checked changes\n\t */\n\t@Event() checkedChange: EventEmitter<boolean>;\n\n\t@State() private _nonce = nonce(5);\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-radio'>\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={this.id ?? this._nonce}\n\t\t\t\t\tclass='flex items-center justify-start gap-2 text-black-teal'\n\t\t\t\t>\n\t\t\t\t\t<div class='relative flex flex-shrink-0 items-center'>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={radio({\n\t\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\ttype='radio'\n\t\t\t\t\t\t\tid={this.id ?? this._nonce}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\tvalue={this.value}\n\t\t\t\t\t\t\tchecked={this.checked}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tonChange={ev => this._onChange(ev)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={circle({\n\t\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</label>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _onChange(ev: Event) {\n\t\tif (this.disabled) {\n\t\t\tev.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tconst checked = (ev.target as HTMLInputElement).checked;\n\t\tthis.checked = checked;\n\t\tthis.checkedChange.emit(checked);\n\t}\n}\n"],"version":3}
@@ -182,7 +182,7 @@ const Select = class {
182
182
  }
183
183
  }
184
184
  render() {
185
- return (h(Host, { key: '3d62e70a5901677fb96a586ed0f065e16fd24256', class: 'p-select' }, h("p-dropdown", { key: 'ad83513056a1927d79fb18856fe75b65fb81c6be', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-field-container", { key: 'af3354916b5ef394694ad4d89a409abc5b71bd56', slot: 'trigger', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, h("p-button", { key: '24021e3f6e15cf3a7fd1819699e608f771fb660d', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, h("div", { key: '2c902461aadd75eccd5818679a419b0c50d75c43', class: 'relative flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem())));
185
+ return (h(Host, { key: '9090270a3b0048ffbe8e8c37cbbcca384daf5f4d', class: 'p-select' }, h("p-dropdown", { key: '6050a5d6358631b969c9675e5ae070def18b7f58', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev) }, h("p-field-container", { key: '074697f053f77cd31719f4b892cdd329061f8d9f', slot: 'trigger', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, h("p-button", { key: '0b5986bf4408654eba76d85a5d43988971af866b', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, h("div", { key: '6bb8b4780aca7a525377c55611fba654764deaf5', class: 'relative flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem())));
186
186
  }
187
187
  documentClickHandler({ target }) {
188
188
  if (!this._showDropdown || childOf(target, this._el)) {
@@ -9,7 +9,7 @@ const SliderIndicator = class {
9
9
  this.active = false;
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: '4525154d8a2fa45a67c9194601c038ce4d68d93c', class: `p-slider-indicator ${this.active && 'active'}` }));
12
+ return (h(Host, { key: 'b881e676d31e9db8b09093c2ad767467584194aa', class: `p-slider-indicator ${this.active && 'active'}` }));
13
13
  }
14
14
  };
15
15
  SliderIndicator.style = PSliderIndicatorStyle0;
@@ -12,8 +12,8 @@ const Status = class {
12
12
  this.iconRotate = undefined;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: 'c22a53f6a938b6b474cc0d3b48bafd1b86ac12ce', class: `p-status variant-${this.variant}
16
- }` }, this._getIcon(), h("slot", { key: '488fd658de93d5f4a7a32cfea4407df0953eb092' })));
15
+ return (h(Host, { key: '1d4fc08551aaa41e7b1e6f5cffe6bc6dce88b417', class: `p-status variant-${this.variant}
16
+ }` }, this._getIcon(), h("slot", { key: '4b2d7a3a670c335b42905de63fb8aa1c8b0e34e3' })));
17
17
  }
18
18
  _getIcon() {
19
19
  const icon = this.icon || this._getVariantIcon();
@@ -13,7 +13,7 @@ const StepperItem = class {
13
13
  this.active = false;
14
14
  }
15
15
  render() {
16
- return (h(Host, { key: '1920bc6191385c5b1bcb32ffecfded7f7c1a3f40', class: "p-stepper-item" }, h("div", { key: '743a51150e95b15bfd194498d9568821c50b4311', class: "circle" }, this.finished && h("p-icon", { key: '876d225ca1f3c974c4f5c0cebd8d7eabff7a8336', variant: "checkmark" })), h("div", { key: '42dfe103a364e5c8183bced9825f7d899fd7c01f', class: "content" }, h("slot", { key: 'a9db4797ad8649458649df53a4edb91c46a8199e', name: "content" }))));
16
+ return (h(Host, { key: '8da0538e191e3cbe2bc2ffd34235e29bf36c5c4b', class: "p-stepper-item" }, h("div", { key: '26ef593097c695a3944a7c50f941f566c2bada7b', class: "circle" }, this.finished && h("p-icon", { key: '648760041a32cd018e7e5a7b76d7cdb19220425e', variant: "checkmark" })), h("div", { key: 'fe3b931203de10909550032493c5d305187f9ef8', class: "content" }, h("slot", { key: '16627589013f17c494e482c98b7e96aaed2de5a4', name: "content" }))));
17
17
  }
18
18
  };
19
19
  StepperItem.style = PStepperItemStyle0;
@@ -10,7 +10,7 @@ const StepperLine = class {
10
10
  this.direction = 'horizontal';
11
11
  }
12
12
  render() {
13
- return h(Host, { key: '9c523b4c1c77f12e65b9e8e97e447682089c6259', class: "p-stepper-line" });
13
+ return h(Host, { key: 'a098b7140c582af2edc9cdd7b4f8c37f5396223f', class: "p-stepper-line" });
14
14
  }
15
15
  };
16
16
  StepperLine.style = PStepperLineStyle0;
@@ -93,7 +93,7 @@ const Stepper = class {
93
93
  this._generateSteps(true);
94
94
  }
95
95
  render() {
96
- return (h(Host, { key: 'bee777255a5677807f3766962e71de3d1844ad85', class: 'p-stepper' }, h("slot", { key: '1542d047cad7994574e97dab83ba09290fe2ca8d', onSlotchange: this._onSlotChange })));
96
+ return (h(Host, { key: '08618e878d073d704ee23f62df4c855d4a0cb86d', class: 'p-stepper' }, h("slot", { key: 'd8dd06cb1ee5d662ea3b8aa4379b0d1e8877dbbd', onSlotchange: this._onSlotChange })));
97
97
  }
98
98
  _onActiveStepChange() {
99
99
  this._generateSteps();