@paperless/core 1.17.5 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (536) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/assets/i18n/page-size-select.i18n.en.json +2 -2
  3. package/dist/assets/i18n/page-size-select.i18n.nl.json +2 -2
  4. package/dist/assets/i18n/table-footer.i18n.en.json +1 -1
  5. package/dist/assets/i18n/table-footer.i18n.nl.json +1 -1
  6. package/dist/assets/i18n/table-header.i18n.en.json +4 -4
  7. package/dist/assets/i18n/table-header.i18n.nl.json +4 -4
  8. package/dist/assets/i18n/table.i18n.en.json +15 -15
  9. package/dist/assets/i18n/table.i18n.nl.json +15 -15
  10. package/dist/assets/icons/company.svg +8 -0
  11. package/dist/build/p-03090f03.entry.js.map +1 -1
  12. package/dist/build/p-085e6ff4.entry.js.map +1 -1
  13. package/dist/build/p-2becd73c.entry.js.map +1 -1
  14. package/dist/build/p-2cb55f24.entry.js.map +1 -1
  15. package/dist/build/p-2cd5062f.entry.js.map +1 -1
  16. package/dist/build/p-35c563a7.entry.js.map +1 -1
  17. package/dist/build/p-415c5040.entry.js.map +1 -1
  18. package/dist/build/p-424d5c8a.entry.js.map +1 -1
  19. package/dist/build/p-46a939e2.entry.js.map +1 -1
  20. package/dist/build/p-4c30c74b.entry.js.map +1 -1
  21. package/dist/build/p-4dc5647e.entry.js.map +1 -1
  22. package/dist/build/p-4e9e4ce2.entry.js.map +1 -1
  23. package/dist/build/p-606ad811.entry.js.map +1 -1
  24. package/dist/build/p-682db916.entry.js.map +1 -1
  25. package/dist/build/p-699e0b35.entry.js.map +1 -1
  26. package/dist/build/p-6a5aeb90.entry.js.map +1 -1
  27. package/dist/build/p-7793ba3a.entry.js.map +1 -1
  28. package/dist/build/p-7d15ff9a.entry.js.map +1 -1
  29. package/dist/build/p-8426ca20.entry.js.map +1 -1
  30. package/dist/build/p-93052b42.entry.js.map +1 -1
  31. package/dist/build/p-97bcf0b5.entry.js.map +1 -1
  32. package/dist/build/p-9c914665.entry.js.map +1 -1
  33. package/dist/build/p-9d3d72fa.entry.js.map +1 -1
  34. package/dist/build/p-a2b552f9.entry.js.map +1 -1
  35. package/dist/build/p-a7344d53.entry.js +2 -0
  36. package/dist/build/p-a7344d53.entry.js.map +1 -0
  37. package/dist/build/p-af6b813e.entry.js.map +1 -1
  38. package/dist/build/p-b6f43309.entry.js.map +1 -1
  39. package/dist/build/p-b7c0f157.entry.js.map +1 -1
  40. package/dist/build/p-c9b840a7.entry.js.map +1 -1
  41. package/dist/build/p-cb2674b5.entry.js.map +1 -1
  42. package/dist/build/p-cf7bd354.entry.js.map +1 -1
  43. package/dist/build/p-d0796984.entry.js.map +1 -1
  44. package/dist/build/p-d23db949.entry.js.map +1 -1
  45. package/dist/build/p-dace47c5.entry.js.map +1 -1
  46. package/dist/build/p-daeadc69.entry.js +2 -0
  47. package/dist/build/p-daeadc69.entry.js.map +1 -0
  48. package/dist/build/p-dd20caf1.entry.js.map +1 -1
  49. package/dist/build/p-dfa8eae9.entry.js +2 -0
  50. package/dist/build/p-dfa8eae9.entry.js.map +1 -0
  51. package/dist/build/p-ec15ee73.entry.js.map +1 -1
  52. package/dist/build/p-ec29eed0.entry.js.map +1 -1
  53. package/dist/build/p-f0f1a46b.entry.js.map +1 -1
  54. package/dist/build/p-f34e08ec.entry.js.map +1 -1
  55. package/dist/build/p-f9e52ae3.entry.js.map +1 -1
  56. package/dist/build/p-fac13366.entry.js.map +1 -1
  57. package/dist/build/paperless.css +1 -1
  58. package/dist/build/paperless.esm.js +1 -1
  59. package/dist/build/paperless.esm.js.map +1 -1
  60. package/dist/cjs/index-1fde8b14.js +4 -4
  61. package/dist/cjs/loader.cjs.js +1 -1
  62. package/dist/cjs/p-accordion.cjs.entry.js.map +1 -1
  63. package/dist/cjs/p-attachment.cjs.entry.js.map +1 -1
  64. package/dist/cjs/p-avatar-group.cjs.entry.js.map +1 -1
  65. package/dist/cjs/p-avatar.cjs.entry.js.map +1 -1
  66. package/dist/cjs/p-backdrop.cjs.entry.js.map +1 -1
  67. package/dist/cjs/p-button_3.cjs.entry.js +10 -5
  68. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -1
  69. package/dist/cjs/p-calendar.cjs.entry.js +2 -2
  70. package/dist/cjs/p-calendar.cjs.entry.js.map +1 -1
  71. package/dist/cjs/p-card-body.cjs.entry.js.map +1 -1
  72. package/dist/cjs/p-card-container.cjs.entry.js.map +1 -1
  73. package/dist/cjs/p-card-header.cjs.entry.js.map +1 -1
  74. package/dist/cjs/p-content-slider.cjs.entry.js.map +1 -1
  75. package/dist/cjs/p-counter.cjs.entry.js.map +1 -1
  76. package/dist/cjs/p-cropper.cjs.entry.js.map +1 -1
  77. package/dist/cjs/p-datepicker.cjs.entry.js.map +1 -1
  78. package/dist/cjs/p-divider.cjs.entry.js.map +1 -1
  79. package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
  80. package/dist/cjs/p-drawer.cjs.entry.js.map +1 -1
  81. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js.map +1 -1
  82. package/dist/cjs/p-dropdown_2.cjs.entry.js +7 -2
  83. package/dist/cjs/p-dropdown_2.cjs.entry.js.map +1 -1
  84. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +40 -40
  85. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js.map +1 -1
  86. package/dist/cjs/p-helper_3.cjs.entry.js +4 -4
  87. package/dist/cjs/p-helper_3.cjs.entry.js.map +1 -1
  88. package/dist/cjs/p-info-panel.cjs.entry.js.map +1 -1
  89. package/dist/cjs/p-label_3.cjs.entry.js +1 -1
  90. package/dist/cjs/p-label_3.cjs.entry.js.map +1 -1
  91. package/dist/cjs/p-layout.cjs.entry.js.map +1 -1
  92. package/dist/cjs/p-modal-body_4.cjs.entry.js.map +1 -1
  93. package/dist/cjs/p-modal.cjs.entry.js.map +1 -1
  94. package/dist/cjs/p-navbar.cjs.entry.js.map +1 -1
  95. package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -1
  96. package/dist/cjs/p-page-size-select_3.cjs.entry.js.map +1 -1
  97. package/dist/cjs/p-profile.cjs.entry.js.map +1 -1
  98. package/dist/cjs/p-select.cjs.entry.js +136 -18
  99. package/dist/cjs/p-select.cjs.entry.js.map +1 -1
  100. package/dist/cjs/p-slider-indicator.cjs.entry.js.map +1 -1
  101. package/dist/cjs/p-status.cjs.entry.js.map +1 -1
  102. package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -1
  103. package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -1
  104. package/dist/cjs/p-stepper.cjs.entry.js.map +1 -1
  105. package/dist/cjs/p-tab-group.cjs.entry.js.map +1 -1
  106. package/dist/cjs/p-tab-item.cjs.entry.js.map +1 -1
  107. package/dist/cjs/p-table-column.cjs.entry.js.map +1 -1
  108. package/dist/cjs/p-table.cjs.entry.js.map +1 -1
  109. package/dist/cjs/p-toast-container.cjs.entry.js.map +1 -1
  110. package/dist/cjs/p-toast.cjs.entry.js.map +1 -1
  111. package/dist/cjs/p-tooltip.cjs.entry.js.map +1 -1
  112. package/dist/cjs/paperless.cjs.js +1 -1
  113. package/dist/collection/assets/icons/company.svg +8 -0
  114. package/dist/collection/components/atoms/avatar/avatar.component.js +1 -1
  115. package/dist/collection/components/atoms/avatar/avatar.component.js.map +1 -1
  116. package/dist/collection/components/atoms/avatar/test/avatar.component.e2e.js.map +1 -1
  117. package/dist/collection/components/atoms/avatar/test/avatar.component.spec.js.map +1 -1
  118. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js.map +1 -1
  119. package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.e2e.js.map +1 -1
  120. package/dist/collection/components/atoms/avatar-group/test/avatar-group.component.spec.js.map +1 -1
  121. package/dist/collection/components/atoms/backdrop/backdrop.component.js +1 -1
  122. package/dist/collection/components/atoms/backdrop/backdrop.component.js.map +1 -1
  123. package/dist/collection/components/atoms/backdrop/test/backdrop.component.e2e.js.map +1 -1
  124. package/dist/collection/components/atoms/backdrop/test/backdrop.component.spec.js.map +1 -1
  125. package/dist/collection/components/atoms/button/button.component.js +1 -1
  126. package/dist/collection/components/atoms/button/button.component.js.map +1 -1
  127. package/dist/collection/components/atoms/button/test/button.component.e2e.js.map +1 -1
  128. package/dist/collection/components/atoms/button/test/button.component.spec.js.map +1 -1
  129. package/dist/collection/components/atoms/card-body/card-body.component.js.map +1 -1
  130. package/dist/collection/components/atoms/card-body/test/card-body.component.e2e.js.map +1 -1
  131. package/dist/collection/components/atoms/card-body/test/card-body.component.spec.js.map +1 -1
  132. package/dist/collection/components/atoms/card-container/card-container.component.js.map +1 -1
  133. package/dist/collection/components/atoms/card-container/test/card-container.component.e2e.js.map +1 -1
  134. package/dist/collection/components/atoms/card-container/test/card-container.component.spec.js.map +1 -1
  135. package/dist/collection/components/atoms/card-header/card-header.component.js.map +1 -1
  136. package/dist/collection/components/atoms/card-header/test/card-header.component.e2e.js.map +1 -1
  137. package/dist/collection/components/atoms/card-header/test/card-header.component.spec.js.map +1 -1
  138. package/dist/collection/components/atoms/counter/counter.component.js.map +1 -1
  139. package/dist/collection/components/atoms/counter/test/counter.component.e2e.js.map +1 -1
  140. package/dist/collection/components/atoms/counter/test/counter.component.spec.js.map +1 -1
  141. package/dist/collection/components/atoms/divider/divider.component.js.map +1 -1
  142. package/dist/collection/components/atoms/divider/test/divider.component.e2e.js.map +1 -1
  143. package/dist/collection/components/atoms/divider/test/divider.component.spec.js.map +1 -1
  144. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js.map +1 -1
  145. package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.e2e.js.map +1 -1
  146. package/dist/collection/components/atoms/drawer-body/test/drawer-body.component.spec.js.map +1 -1
  147. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js.map +1 -1
  148. package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.e2e.js.map +1 -1
  149. package/dist/collection/components/atoms/drawer-container/test/drawer-container.component.spec.js.map +1 -1
  150. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js.map +1 -1
  151. package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.e2e.js.map +1 -1
  152. package/dist/collection/components/atoms/drawer-header/test/drawer-header.component.spec.js.map +1 -1
  153. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js.map +1 -1
  154. package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-container.component.e2e.js.map +1 -1
  155. package/dist/collection/components/atoms/dropdown-menu-container/test/dropdown-menu-item.component.spec.js.map +1 -1
  156. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  157. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +22 -3
  158. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
  159. package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.e2e.js.map +1 -1
  160. package/dist/collection/components/atoms/dropdown-menu-item/test/dropdown-menu-item.component.spec.js.map +1 -1
  161. package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js.map +1 -1
  162. package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.e2e.js.map +1 -1
  163. package/dist/collection/components/atoms/floating-menu-container/test/floating-menu-container.component.spec.js.map +1 -1
  164. package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js.map +1 -1
  165. package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.e2e.js.map +1 -1
  166. package/dist/collection/components/atoms/floating-menu-item/test/floating-menu-container.component.spec.js.map +1 -1
  167. package/dist/collection/components/atoms/helper/helper.component.js.map +1 -1
  168. package/dist/collection/components/atoms/helper/test/helper.component.e2e.js.map +1 -1
  169. package/dist/collection/components/atoms/helper/test/helper.component.spec.js.map +1 -1
  170. package/dist/collection/components/atoms/icon/icon.component.js +1 -1
  171. package/dist/collection/components/atoms/icon/icon.component.js.map +1 -1
  172. package/dist/collection/components/atoms/icon/test/icon.component.e2e.js.map +1 -1
  173. package/dist/collection/components/atoms/icon/test/icon.component.spec.js.map +1 -1
  174. package/dist/collection/components/atoms/illustration/illustration.component.js +1 -1
  175. package/dist/collection/components/atoms/illustration/illustration.component.js.map +1 -1
  176. package/dist/collection/components/atoms/illustration/test/illustration.component.e2e.js.map +1 -1
  177. package/dist/collection/components/atoms/illustration/test/illustration.component.spec.js.map +1 -1
  178. package/dist/collection/components/atoms/info-panel/info-panel.component.js.map +1 -1
  179. package/dist/collection/components/atoms/info-panel/test/info-panel.component.e2e.js.map +1 -1
  180. package/dist/collection/components/atoms/info-panel/test/info-panel.component.spec.js.map +1 -1
  181. package/dist/collection/components/atoms/label/label.component.js +3 -3
  182. package/dist/collection/components/atoms/label/label.component.js.map +1 -1
  183. package/dist/collection/components/atoms/label/test/label.component.e2e.js.map +1 -1
  184. package/dist/collection/components/atoms/label/test/label.component.spec.js.map +1 -1
  185. package/dist/collection/components/atoms/layout/layout.component.js.map +1 -1
  186. package/dist/collection/components/atoms/layout/test/layout.component.e2e.js.map +1 -1
  187. package/dist/collection/components/atoms/layout/test/layout.component.spec.js.map +1 -1
  188. package/dist/collection/components/atoms/loader/loader.component.js +1 -1
  189. package/dist/collection/components/atoms/loader/loader.component.js.map +1 -1
  190. package/dist/collection/components/atoms/loader/test/loader.component.e2e.js.map +1 -1
  191. package/dist/collection/components/atoms/loader/test/loader.component.spec.js.map +1 -1
  192. package/dist/collection/components/atoms/modal-body/modal-body.component.js.map +1 -1
  193. package/dist/collection/components/atoms/modal-body/test/modal-body.component.e2e.js.map +1 -1
  194. package/dist/collection/components/atoms/modal-body/test/modal-body.component.spec.js.map +1 -1
  195. package/dist/collection/components/atoms/modal-container/modal-container.component.js.map +1 -1
  196. package/dist/collection/components/atoms/modal-container/test/modal-container.component.e2e.js.map +1 -1
  197. package/dist/collection/components/atoms/modal-container/test/modal-container.component.spec.js.map +1 -1
  198. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js.map +1 -1
  199. package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.e2e.js.map +1 -1
  200. package/dist/collection/components/atoms/modal-footer/test/modal-footer.component.spec.js.map +1 -1
  201. package/dist/collection/components/atoms/modal-header/modal-header.component.js.map +1 -1
  202. package/dist/collection/components/atoms/modal-header/test/modal-header.component.e2e.js.map +1 -1
  203. package/dist/collection/components/atoms/modal-header/test/modal-header.component.spec.js.map +1 -1
  204. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js.map +1 -1
  205. package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.e2e.js.map +1 -1
  206. package/dist/collection/components/atoms/pagination-item/test/pagination-item.component.spec.js.map +1 -1
  207. package/dist/collection/components/atoms/segment-container/segment-container.component.js.map +1 -1
  208. package/dist/collection/components/atoms/segment-container/test/segment-container.component.e2e.js.map +1 -1
  209. package/dist/collection/components/atoms/segment-container/test/segment-container.component.spec.js.map +1 -1
  210. package/dist/collection/components/atoms/segment-item/segment-item.component.js +2 -2
  211. package/dist/collection/components/atoms/segment-item/segment-item.component.js.map +1 -1
  212. package/dist/collection/components/atoms/segment-item/test/segment-item.component.e2e.js.map +1 -1
  213. package/dist/collection/components/atoms/segment-item/test/segment-item.component.spec.js.map +1 -1
  214. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js.map +1 -1
  215. package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.e2e.js.map +1 -1
  216. package/dist/collection/components/atoms/slider-indicator/test/slider-indicator.component.spec.js.map +1 -1
  217. package/dist/collection/components/atoms/status/status.component.js +1 -1
  218. package/dist/collection/components/atoms/status/status.component.js.map +1 -1
  219. package/dist/collection/components/atoms/status/test/status.component.e2e.js.map +1 -1
  220. package/dist/collection/components/atoms/status/test/status.component.spec.js.map +1 -1
  221. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js.map +1 -1
  222. package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.e2e.js.map +1 -1
  223. package/dist/collection/components/atoms/stepper-item/test/stepper-item.component.spec.js.map +1 -1
  224. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js.map +1 -1
  225. package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.e2e.js.map +1 -1
  226. package/dist/collection/components/atoms/stepper-line/test/stepper-line.component.spec.js.map +1 -1
  227. package/dist/collection/components/atoms/tab-group/tab-group.component.js.map +1 -1
  228. package/dist/collection/components/atoms/tab-group/test/tab-group.component.e2e.js.map +1 -1
  229. package/dist/collection/components/atoms/tab-group/test/tab-group.component.spec.js.map +1 -1
  230. package/dist/collection/components/atoms/tab-item/tab-item.component.js.map +1 -1
  231. package/dist/collection/components/atoms/tab-item/test/tab-item.component.e2e.js.map +1 -1
  232. package/dist/collection/components/atoms/tab-item/test/tab-item.component.spec.js.map +1 -1
  233. package/dist/collection/components/atoms/table-container/table-container.component.js.map +1 -1
  234. package/dist/collection/components/atoms/table-container/test/table-container.component.e2e.js.map +1 -1
  235. package/dist/collection/components/atoms/table-container/test/table-container.component.spec.js.map +1 -1
  236. package/dist/collection/components/atoms/toast-container/test/toast-container.component.e2e.js.map +1 -1
  237. package/dist/collection/components/atoms/toast-container/test/toast-container.component.spec.js.map +1 -1
  238. package/dist/collection/components/atoms/toast-container/toast-container.component.js.map +1 -1
  239. package/dist/collection/components/atoms/tooltip/test/tooltip.component.e2e.js.map +1 -1
  240. package/dist/collection/components/atoms/tooltip/test/tooltip.component.spec.js.map +1 -1
  241. package/dist/collection/components/atoms/tooltip/tooltip.component.js.map +1 -1
  242. package/dist/collection/components/helpers/table-column/table-column.component.js +1 -1
  243. package/dist/collection/components/helpers/table-column/table-column.component.js.map +1 -1
  244. package/dist/collection/components/molecules/accordion/accordion.component.js.map +1 -1
  245. package/dist/collection/components/molecules/accordion/test/accordion.component.e2e.js.map +1 -1
  246. package/dist/collection/components/molecules/accordion/test/accordion.component.spec.js.map +1 -1
  247. package/dist/collection/components/molecules/attachment/attachment.component.js.map +1 -1
  248. package/dist/collection/components/molecules/attachment/test/attachment.component.e2e.js.map +1 -1
  249. package/dist/collection/components/molecules/attachment/test/attachment.component.spec.js.map +1 -1
  250. package/dist/collection/components/molecules/calendar/calendar.component.js +2 -2
  251. package/dist/collection/components/molecules/calendar/calendar.component.js.map +1 -1
  252. package/dist/collection/components/molecules/calendar/test/calendar.component.e2e.js.map +1 -1
  253. package/dist/collection/components/molecules/calendar/test/calendar.component.spec.js.map +1 -1
  254. package/dist/collection/components/molecules/content-slider/content-slider.component.js.map +1 -1
  255. package/dist/collection/components/molecules/content-slider/test/content-slider.component.e2e.js.map +1 -1
  256. package/dist/collection/components/molecules/content-slider/test/content-slider.component.spec.js.map +1 -1
  257. package/dist/collection/components/molecules/cropper/cropper.component.js.map +1 -1
  258. package/dist/collection/components/molecules/cropper/test/cropper.component.e2e.js.map +1 -1
  259. package/dist/collection/components/molecules/cropper/test/cropper.component.spec.js.map +1 -1
  260. package/dist/collection/components/molecules/datepicker/datepicker.component.js.map +1 -1
  261. package/dist/collection/components/molecules/datepicker/test/datepicker.component.e2e.js.map +1 -1
  262. package/dist/collection/components/molecules/datepicker/test/datepicker.component.spec.js.map +1 -1
  263. package/dist/collection/components/molecules/dropdown/dropdown.component.js +22 -0
  264. package/dist/collection/components/molecules/dropdown/dropdown.component.js.map +1 -1
  265. package/dist/collection/components/molecules/dropdown/test/dropdown.component.e2e.js.map +1 -1
  266. package/dist/collection/components/molecules/dropdown/test/dropdown.component.spec.js.map +1 -1
  267. package/dist/collection/components/molecules/input-error/input-error.component.js.map +1 -1
  268. package/dist/collection/components/molecules/input-error/test/input-error.component.e2e.js.map +1 -1
  269. package/dist/collection/components/molecules/input-error/test/input-error.component.spec.js.map +1 -1
  270. package/dist/collection/components/molecules/input-group/input-group.component.js +5 -5
  271. package/dist/collection/components/molecules/input-group/input-group.component.js.map +1 -1
  272. package/dist/collection/components/molecules/input-group/test/input-group.component.e2e.js.map +1 -1
  273. package/dist/collection/components/molecules/input-group/test/input-group.component.spec.js.map +1 -1
  274. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +1 -1
  275. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -1
  276. package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.e2e.js.map +1 -1
  277. package/dist/collection/components/molecules/navigation-item/test/navigation-item.component.spec.js.map +1 -1
  278. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js +2 -2
  279. package/dist/collection/components/molecules/page-size-select/page-size-select.component.js.map +1 -1
  280. package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.e2e.js.map +1 -1
  281. package/dist/collection/components/molecules/page-size-select/test/page-size-select.component.spec.js.map +1 -1
  282. package/dist/collection/components/molecules/pagination/pagination.component.js +1 -1
  283. package/dist/collection/components/molecules/pagination/pagination.component.js.map +1 -1
  284. package/dist/collection/components/molecules/pagination/test/pagination.component.e2e.js.map +1 -1
  285. package/dist/collection/components/molecules/pagination/test/pagination.component.spec.js.map +1 -1
  286. package/dist/collection/components/molecules/profile/profile.component.js.map +1 -1
  287. package/dist/collection/components/molecules/profile/test/profile.component.e2e.js.map +1 -1
  288. package/dist/collection/components/molecules/profile/test/profile.component.spec.js.map +1 -1
  289. package/dist/collection/components/molecules/select/select.component.css +1 -1
  290. package/dist/collection/components/molecules/select/select.component.js +239 -19
  291. package/dist/collection/components/molecules/select/select.component.js.map +1 -1
  292. package/dist/collection/components/molecules/select/test/select.component.e2e.js.map +1 -1
  293. package/dist/collection/components/molecules/select/test/select.component.spec.js.map +1 -1
  294. package/dist/collection/components/molecules/stepper/stepper.component.js.map +1 -1
  295. package/dist/collection/components/molecules/stepper/test/stepper.component.e2e.js.map +1 -1
  296. package/dist/collection/components/molecules/stepper/test/stepper.component.spec.js.map +1 -1
  297. package/dist/collection/components/molecules/table-cell/table-cell.component.js +40 -40
  298. package/dist/collection/components/molecules/table-cell/table-cell.component.js.map +1 -1
  299. package/dist/collection/components/molecules/table-cell/test/table-cell.component.e2e.js.map +1 -1
  300. package/dist/collection/components/molecules/table-cell/test/table-cell.component.spec.js.map +1 -1
  301. package/dist/collection/components/molecules/table-footer/table-footer.component.js +2 -2
  302. package/dist/collection/components/molecules/table-footer/table-footer.component.js.map +1 -1
  303. package/dist/collection/components/molecules/table-footer/test/table-footer.component.e2e.js.map +1 -1
  304. package/dist/collection/components/molecules/table-footer/test/table-footer.component.spec.js.map +1 -1
  305. package/dist/collection/components/molecules/table-header/table-header.component.js +1 -1
  306. package/dist/collection/components/molecules/table-header/table-header.component.js.map +1 -1
  307. package/dist/collection/components/molecules/table-header/test/table-header.component.e2e.js.map +1 -1
  308. package/dist/collection/components/molecules/table-header/test/table-header.component.spec.js.map +1 -1
  309. package/dist/collection/components/molecules/table-row/table-row.component.js.map +1 -1
  310. package/dist/collection/components/molecules/table-row/test/table-row.component.e2e.js.map +1 -1
  311. package/dist/collection/components/molecules/table-row/test/table-row.component.spec.js.map +1 -1
  312. package/dist/collection/components/molecules/toast/test/toast.component.e2e.js.map +1 -1
  313. package/dist/collection/components/molecules/toast/test/toast.component.spec.js.map +1 -1
  314. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  315. package/dist/collection/components/molecules/toast/toast.component.js.map +1 -1
  316. package/dist/collection/components/organisms/drawer/drawer.component.js +2 -2
  317. package/dist/collection/components/organisms/drawer/drawer.component.js.map +1 -1
  318. package/dist/collection/components/organisms/drawer/test/drawer.component.e2e.js.map +1 -1
  319. package/dist/collection/components/organisms/drawer/test/drawer.component.spec.js.map +1 -1
  320. package/dist/collection/components/organisms/modal/modal.component.js.map +1 -1
  321. package/dist/collection/components/organisms/modal/test/modal.component.e2e.js.map +1 -1
  322. package/dist/collection/components/organisms/modal/test/modal.component.spec.js.map +1 -1
  323. package/dist/collection/components/organisms/navbar/navbar.component.js.map +1 -1
  324. package/dist/collection/components/organisms/navbar/test/navbar.component.e2e.js.map +1 -1
  325. package/dist/collection/components/organisms/navbar/test/navbar.component.spec.js.map +1 -1
  326. package/dist/collection/components/organisms/table/table.component.js +7 -7
  327. package/dist/collection/components/organisms/table/table.component.js.map +1 -1
  328. package/dist/collection/components/organisms/table/test/table.component.e2e.js.map +1 -1
  329. package/dist/collection/components/organisms/table/test/table.component.spec.js.map +1 -1
  330. package/dist/collection/utils/icons.js +2 -2
  331. package/dist/collection/utils/icons.js.map +1 -1
  332. package/dist/components/avatar.component.js +70 -0
  333. package/dist/components/avatar.component.js.map +1 -0
  334. package/dist/components/backdrop.component.js.map +1 -1
  335. package/dist/components/button.component.js.map +1 -1
  336. package/dist/components/calendar.component.js +2 -2
  337. package/dist/components/calendar.component.js.map +1 -1
  338. package/dist/components/counter.component.js.map +1 -1
  339. package/dist/components/divider.component.js.map +1 -1
  340. package/dist/components/drawer-body.component.js.map +1 -1
  341. package/dist/components/drawer-container.component.js.map +1 -1
  342. package/dist/components/drawer-header.component.js.map +1 -1
  343. package/dist/components/dropdown-menu-container.component.js.map +1 -1
  344. package/dist/components/dropdown-menu-item.component.js +4 -2
  345. package/dist/components/dropdown-menu-item.component.js.map +1 -1
  346. package/dist/components/dropdown.component.js +5 -0
  347. package/dist/components/dropdown.component.js.map +1 -1
  348. package/dist/components/floating-menu-container.component.js.map +1 -1
  349. package/dist/components/floating-menu-item.component.js.map +1 -1
  350. package/dist/components/helper.component.js.map +1 -1
  351. package/dist/components/icon.component.js +10 -5
  352. package/dist/components/icon.component.js.map +1 -1
  353. package/dist/components/illustration.component.js +1 -1
  354. package/dist/components/illustration.component.js.map +1 -1
  355. package/dist/components/input-error.component.js.map +1 -1
  356. package/dist/components/input-group.component.js +4 -4
  357. package/dist/components/input-group.component.js.map +1 -1
  358. package/dist/components/label.component.js.map +1 -1
  359. package/dist/components/loader.component.js.map +1 -1
  360. package/dist/components/modal-body.component.js.map +1 -1
  361. package/dist/components/modal-container.component.js.map +1 -1
  362. package/dist/components/modal-footer.component.js.map +1 -1
  363. package/dist/components/modal-header.component.js.map +1 -1
  364. package/dist/components/p-accordion.js.map +1 -1
  365. package/dist/components/p-attachment.js.map +1 -1
  366. package/dist/components/p-avatar-group.js.map +1 -1
  367. package/dist/components/p-avatar.js +1 -66
  368. package/dist/components/p-avatar.js.map +1 -1
  369. package/dist/components/p-card-body.js.map +1 -1
  370. package/dist/components/p-card-container.js.map +1 -1
  371. package/dist/components/p-card-header.js.map +1 -1
  372. package/dist/components/p-content-slider.js.map +1 -1
  373. package/dist/components/p-cropper.js.map +1 -1
  374. package/dist/components/p-datepicker.js.map +1 -1
  375. package/dist/components/p-drawer.js.map +1 -1
  376. package/dist/components/p-info-panel.js.map +1 -1
  377. package/dist/components/p-layout.js.map +1 -1
  378. package/dist/components/p-modal.js.map +1 -1
  379. package/dist/components/p-navbar.js.map +1 -1
  380. package/dist/components/p-navigation-item.js.map +1 -1
  381. package/dist/components/p-profile.js.map +1 -1
  382. package/dist/components/p-select.js +150 -20
  383. package/dist/components/p-select.js.map +1 -1
  384. package/dist/components/p-status.js.map +1 -1
  385. package/dist/components/p-stepper-item.js.map +1 -1
  386. package/dist/components/p-stepper.js.map +1 -1
  387. package/dist/components/p-tab-group.js.map +1 -1
  388. package/dist/components/p-tab-item.js.map +1 -1
  389. package/dist/components/p-table-column.js.map +1 -1
  390. package/dist/components/p-table.js.map +1 -1
  391. package/dist/components/p-toast-container.js.map +1 -1
  392. package/dist/components/p-toast.js.map +1 -1
  393. package/dist/components/page-size-select.component.js.map +1 -1
  394. package/dist/components/pagination-item.component.js.map +1 -1
  395. package/dist/components/pagination.component.js.map +1 -1
  396. package/dist/components/segment-container.component.js.map +1 -1
  397. package/dist/components/segment-item.component.js +1 -1
  398. package/dist/components/segment-item.component.js.map +1 -1
  399. package/dist/components/slider-indicator.component.js.map +1 -1
  400. package/dist/components/stepper-line.component.js.map +1 -1
  401. package/dist/components/table-cell.component.js +39 -39
  402. package/dist/components/table-cell.component.js.map +1 -1
  403. package/dist/components/table-container.component.js.map +1 -1
  404. package/dist/components/table-footer.component.js.map +1 -1
  405. package/dist/components/table-header.component.js.map +1 -1
  406. package/dist/components/table-row.component.js.map +1 -1
  407. package/dist/components/tooltip.component.js.map +1 -1
  408. package/dist/esm/index-7b917f6b.js +4 -4
  409. package/dist/esm/loader.js +1 -1
  410. package/dist/esm/p-accordion.entry.js.map +1 -1
  411. package/dist/esm/p-attachment.entry.js.map +1 -1
  412. package/dist/esm/p-avatar-group.entry.js.map +1 -1
  413. package/dist/esm/p-avatar.entry.js.map +1 -1
  414. package/dist/esm/p-backdrop.entry.js.map +1 -1
  415. package/dist/esm/p-button_3.entry.js +10 -5
  416. package/dist/esm/p-button_3.entry.js.map +1 -1
  417. package/dist/esm/p-calendar.entry.js +2 -2
  418. package/dist/esm/p-calendar.entry.js.map +1 -1
  419. package/dist/esm/p-card-body.entry.js.map +1 -1
  420. package/dist/esm/p-card-container.entry.js.map +1 -1
  421. package/dist/esm/p-card-header.entry.js.map +1 -1
  422. package/dist/esm/p-content-slider.entry.js.map +1 -1
  423. package/dist/esm/p-counter.entry.js.map +1 -1
  424. package/dist/esm/p-cropper.entry.js.map +1 -1
  425. package/dist/esm/p-datepicker.entry.js.map +1 -1
  426. package/dist/esm/p-divider.entry.js.map +1 -1
  427. package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
  428. package/dist/esm/p-drawer.entry.js.map +1 -1
  429. package/dist/esm/p-dropdown-menu-container.entry.js.map +1 -1
  430. package/dist/esm/p-dropdown_2.entry.js +7 -2
  431. package/dist/esm/p-dropdown_2.entry.js.map +1 -1
  432. package/dist/esm/p-floating-menu-container_8.entry.js +40 -40
  433. package/dist/esm/p-floating-menu-container_8.entry.js.map +1 -1
  434. package/dist/esm/p-helper_3.entry.js +4 -4
  435. package/dist/esm/p-helper_3.entry.js.map +1 -1
  436. package/dist/esm/p-info-panel.entry.js.map +1 -1
  437. package/dist/esm/p-label_3.entry.js +1 -1
  438. package/dist/esm/p-label_3.entry.js.map +1 -1
  439. package/dist/esm/p-layout.entry.js.map +1 -1
  440. package/dist/esm/p-modal-body_4.entry.js.map +1 -1
  441. package/dist/esm/p-modal.entry.js.map +1 -1
  442. package/dist/esm/p-navbar.entry.js.map +1 -1
  443. package/dist/esm/p-navigation-item.entry.js.map +1 -1
  444. package/dist/esm/p-page-size-select_3.entry.js.map +1 -1
  445. package/dist/esm/p-profile.entry.js.map +1 -1
  446. package/dist/esm/p-select.entry.js +136 -18
  447. package/dist/esm/p-select.entry.js.map +1 -1
  448. package/dist/esm/p-slider-indicator.entry.js.map +1 -1
  449. package/dist/esm/p-status.entry.js.map +1 -1
  450. package/dist/esm/p-stepper-item.entry.js.map +1 -1
  451. package/dist/esm/p-stepper-line.entry.js.map +1 -1
  452. package/dist/esm/p-stepper.entry.js.map +1 -1
  453. package/dist/esm/p-tab-group.entry.js.map +1 -1
  454. package/dist/esm/p-tab-item.entry.js.map +1 -1
  455. package/dist/esm/p-table-column.entry.js.map +1 -1
  456. package/dist/esm/p-table.entry.js.map +1 -1
  457. package/dist/esm/p-toast-container.entry.js.map +1 -1
  458. package/dist/esm/p-toast.entry.js.map +1 -1
  459. package/dist/esm/p-tooltip.entry.js.map +1 -1
  460. package/dist/esm/paperless.js +1 -1
  461. package/dist/index.html +1 -1
  462. package/dist/paperless/p-03090f03.entry.js.map +1 -1
  463. package/dist/paperless/p-085e6ff4.entry.js.map +1 -1
  464. package/dist/paperless/p-2becd73c.entry.js.map +1 -1
  465. package/dist/paperless/p-2cb55f24.entry.js.map +1 -1
  466. package/dist/paperless/p-2cd5062f.entry.js.map +1 -1
  467. package/dist/paperless/p-35c563a7.entry.js.map +1 -1
  468. package/dist/paperless/p-415c5040.entry.js.map +1 -1
  469. package/dist/paperless/p-424d5c8a.entry.js.map +1 -1
  470. package/dist/paperless/p-46a939e2.entry.js.map +1 -1
  471. package/dist/paperless/p-4c30c74b.entry.js.map +1 -1
  472. package/dist/paperless/p-4dc5647e.entry.js.map +1 -1
  473. package/dist/paperless/p-4e9e4ce2.entry.js.map +1 -1
  474. package/dist/paperless/p-606ad811.entry.js.map +1 -1
  475. package/dist/paperless/p-682db916.entry.js.map +1 -1
  476. package/dist/paperless/p-699e0b35.entry.js.map +1 -1
  477. package/dist/paperless/p-6a5aeb90.entry.js.map +1 -1
  478. package/dist/paperless/p-7793ba3a.entry.js.map +1 -1
  479. package/dist/paperless/p-7d15ff9a.entry.js.map +1 -1
  480. package/dist/paperless/p-8426ca20.entry.js.map +1 -1
  481. package/dist/paperless/p-93052b42.entry.js.map +1 -1
  482. package/dist/paperless/p-97bcf0b5.entry.js.map +1 -1
  483. package/dist/paperless/p-9c914665.entry.js.map +1 -1
  484. package/dist/paperless/p-9d3d72fa.entry.js.map +1 -1
  485. package/dist/paperless/p-a2b552f9.entry.js.map +1 -1
  486. package/dist/paperless/p-a7344d53.entry.js +2 -0
  487. package/dist/paperless/p-a7344d53.entry.js.map +1 -0
  488. package/dist/paperless/p-af6b813e.entry.js.map +1 -1
  489. package/dist/paperless/p-b6f43309.entry.js.map +1 -1
  490. package/dist/paperless/p-b7c0f157.entry.js.map +1 -1
  491. package/dist/paperless/p-c9b840a7.entry.js.map +1 -1
  492. package/dist/paperless/p-cb2674b5.entry.js.map +1 -1
  493. package/dist/paperless/p-cf7bd354.entry.js.map +1 -1
  494. package/dist/paperless/p-d0796984.entry.js.map +1 -1
  495. package/dist/paperless/p-d23db949.entry.js.map +1 -1
  496. package/dist/paperless/p-dace47c5.entry.js.map +1 -1
  497. package/dist/paperless/p-daeadc69.entry.js +2 -0
  498. package/dist/paperless/p-daeadc69.entry.js.map +1 -0
  499. package/dist/paperless/p-dd20caf1.entry.js.map +1 -1
  500. package/dist/paperless/p-dfa8eae9.entry.js +2 -0
  501. package/dist/paperless/p-dfa8eae9.entry.js.map +1 -0
  502. package/dist/paperless/p-ec15ee73.entry.js.map +1 -1
  503. package/dist/paperless/p-ec29eed0.entry.js.map +1 -1
  504. package/dist/paperless/p-f0f1a46b.entry.js.map +1 -1
  505. package/dist/paperless/p-f34e08ec.entry.js.map +1 -1
  506. package/dist/paperless/p-f9e52ae3.entry.js.map +1 -1
  507. package/dist/paperless/p-fac13366.entry.js.map +1 -1
  508. package/dist/paperless/paperless.css +7 -0
  509. package/dist/paperless/paperless.esm.js +1 -1
  510. package/dist/paperless/paperless.esm.js.map +1 -1
  511. package/dist/style/form/_checkbox.scss +4 -0
  512. package/dist/sw.js +1 -1
  513. package/dist/sw.js.map +1 -1
  514. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +4 -0
  515. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +4 -0
  516. package/dist/types/components/molecules/select/select.component.d.ts +34 -0
  517. package/dist/types/components.d.ts +105 -45
  518. package/dist/types/utils/icons.d.ts +1 -1
  519. package/hydrate/index.js +211 -75
  520. package/package.json +1 -1
  521. package/dist/assets/icons/fa/building.svg +0 -3
  522. package/dist/assets/icons/fa/buildings.svg +0 -3
  523. package/dist/build/p-573648d0.entry.js +0 -2
  524. package/dist/build/p-573648d0.entry.js.map +0 -1
  525. package/dist/build/p-9c7cfd25.entry.js +0 -2
  526. package/dist/build/p-9c7cfd25.entry.js.map +0 -1
  527. package/dist/build/p-c644d1e3.entry.js +0 -2
  528. package/dist/build/p-c644d1e3.entry.js.map +0 -1
  529. package/dist/collection/assets/icons/fa/building.svg +0 -3
  530. package/dist/collection/assets/icons/fa/buildings.svg +0 -3
  531. package/dist/paperless/p-573648d0.entry.js +0 -2
  532. package/dist/paperless/p-573648d0.entry.js.map +0 -1
  533. package/dist/paperless/p-9c7cfd25.entry.js +0 -2
  534. package/dist/paperless/p-9c7cfd25.entry.js.map +0 -1
  535. package/dist/paperless/p-c644d1e3.entry.js +0 -2
  536. package/dist/paperless/p-c644d1e3.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"file":"p-helper.p-input-error.p-input-group.entry.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,whBAAwhB;;MCQtiB,MAAM;;;qBAIgB,KAAK;;EAEpC,MAAM;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAC,UAAU,IAClB,iBAAW,SAAS,EAAE,IAAI,CAAC,SAAS,IACh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BAA0B,CAC7B,CAAC;IACF,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC1C,0BAA0B,CAC7B,CAAC;IACF,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC1C,0BAA0B,CAC7B,CAAC;IAEF,MAAM,MAAM,GAAG,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;IACpE,MAAM,KAAK,GAAG,YAAY,GAAG,YAAM,IAAI,EAAC,OAAO,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;IAChE,MAAM,MAAM,GAAG,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;IACpE,MAAM,MAAM,GAAG,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC;IAEpE,MAAM,yBAAyB,GAC3B,IAAI,CAAC,KAAK;MACV,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ;MAC9B,IAAI,CAAC,KAAK,KAAK,MAAM,CAAC;IAE1B,OAAO;MACH,aAAa;MACb,YAAY;MACZ,aAAa;MACb,aAAa;MACb,aAAa;MACb,MAAM;MACN,KAAK;MACL,MAAM;MACN,MAAM;MACN,yBAAyB;MACzB,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,GAAG,SAAS,GAAG,MAAM;KAChE,CAAC;GACL;EAEO,WAAW;IACf,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC/D,KAAqB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;GAC9C;;;;;;;","names":[],"sources":["src/components/atoms/helper/helper.component.scss?tag=p-helper&encapsulation=shadow","src/components/atoms/helper/helper.component.tsx","src/components/molecules/input-error/input-error.component.tsx","src/components/molecules/input-group/input-group.component.scss?tag=p-input-group&encapsulation=shadow","src/components/molecules/input-group/input-group.component.tsx"],"sourcesContent":[":host {\n .helper {\n @apply inline-block cursor-pointer bg-no-repeat bg-center w-3 h-3;\n background-image: url(/assets/images/helper/helper.svg);\n\n &:hover {\n background-image: url(/assets/images/helper/helper-hover.svg);\n }\n }\n}\n","import { Placement } from '@floating-ui/dom';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'p-helper',\n styleUrl: 'helper.component.scss',\n shadow: true,\n})\nexport class Helper {\n /**\n * The placement of the helper popover\n */\n @Prop() placement: Placement = 'top';\n\n render() {\n return (\n <Host class=\"p-helper\">\n <p-tooltip placement={this.placement}>\n <div slot=\"content\">\n <slot />\n </div>\n\n <div slot=\"trigger\" class=\"helper\"></div>\n </p-tooltip>\n </Host>\n );\n }\n}\n","import { Component, h, Host, Prop, State } from '@stencil/core';\n\n@Component({\n tag: 'p-input-error',\n shadow: true,\n})\nexport class InputError {\n /**\n * The error to show\n */\n @Prop() error: string;\n\n /**\n * Wether to force show the tooltip\n */\n @Prop() forceShowTooltip = false;\n\n @State() private _showTooltip = false;\n\n render() {\n return (\n <Host class=\"p-input-error\">\n <p-tooltip\n variant=\"error\"\n content={this.error}\n show={this.forceShowTooltip}\n onIsOpen={(ev) => (this._showTooltip = ev.detail)}\n >\n <p-icon\n class={`${\n this._showTooltip\n ? 'text-negative'\n : 'text-negative-light'\n } hover:text-negative`}\n slot=\"trigger\"\n variant=\"explanation\"\n />\n </p-tooltip>\n </Host>\n );\n }\n}\n","@import '../../../style/form/mixins';\n\n@mixin slottedItems($prefix: false) {\n @include inputs($prefix, true) {\n @content;\n }\n}\n\n:host {\n @apply flex w-full flex-col;\n @apply outline-none #{!important};\n\n .input-label {\n @apply mb-[2px] text-xs font-semibold uppercase tracking-wider text-storm-vague;\n }\n\n .input-header {\n @apply mb-[2px] flex items-end gap-2;\n }\n\n .content {\n @apply flex w-full;\n\n .prefix,\n .suffix {\n @include inputDefaultState(false);\n @apply box-border flex-1 text-storm;\n @apply h-full;\n }\n\n .prefix {\n @apply rounded-br-none rounded-tr-none;\n @apply border-r-0 #{!important};\n @apply order-1;\n @apply pr-2;\n }\n\n .suffix {\n @apply rounded-bl-none rounded-tl-none;\n @apply order-3;\n @apply pl-2;\n @apply border-l-0 #{!important};\n }\n\n @include slottedItems() {\n @include inputDefaultState();\n @apply order-2;\n }\n\n @include slottedItems('.prefix') {\n @apply rounded-bl-none rounded-tl-none #{!important};\n @apply flex-auto;\n @apply border-l-0 pl-0 #{!important};\n }\n\n @include slottedItems('.suffix') {\n @apply rounded-br-none rounded-tr-none #{!important};\n @apply flex-auto;\n @apply border-r-0 pr-0 #{!important};\n }\n }\n}\n\n:host(.focused),\n:host([focused]),\n:host(:focus-within),\n:host(:focus) {\n @apply outline-none #{!important};\n\n .prefix,\n .suffix {\n @include inputFocusState();\n @apply text-indigo;\n }\n\n @include slottedItems() {\n @include inputFocusState();\n }\n}\n\n:host(.error),\n:host([error]) {\n .prefix,\n .suffix {\n @include inputErrorState();\n @apply text-negative;\n }\n\n .suffix {\n @apply items-start py-[calc(0.75rem-1px)];\n }\n\n @include slottedItems() {\n @include inputErrorState();\n\n &:focus,\n &:focus-within,\n &:focus-visible,\n &.focus,\n &[active],\n &.active {\n @include inputErrorState();\n }\n }\n}\n\n:host(.disabled),\n:host([disabled]) {\n .prefix,\n .suffix {\n @include inputDisabledState();\n }\n\n @include slottedItems() {\n @include inputDisabledState();\n pointer-events: none;\n }\n}\n\n:host(.size-small) {\n @include slottedItems() {\n @include inputSizeSmall();\n }\n}\n\n:host(.size-small.error),\n:host(.size-small[error]) {\n .suffix {\n @apply py-2;\n }\n}\n","import {\n Component,\n Element,\n h,\n Host,\n Listen,\n Prop,\n State,\n} from '@stencil/core';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\n\n@Component({\n tag: 'p-input-group',\n styleUrl: './input-group.component.scss',\n shadow: true,\n})\nexport class InputGroup {\n /**\n * The size of the input group\n */\n @Prop() size: 'small' | 'medium' = 'medium';\n\n /**\n * The prefix of the input group\n */\n @Prop() prefix: string;\n\n /**\n * The suffix of the input group\n */\n @Prop() suffix: string;\n\n /**\n * Icon of the input group\n */\n @Prop() icon: IconVariant;\n\n /**\n * Icon flip\n */\n @Prop() iconFlip: IconFlipOptions;\n\n /**\n * Icon rotate\n */\n @Prop() iconRotate: RotateOptions;\n\n /**\n * Icon position\n */\n @Prop() iconPosition: 'start' | 'end' = 'start';\n\n /**\n * The label of the input group\n */\n @Prop() label: string;\n\n /**\n * The helper of the input group\n */\n @Prop() helper: string;\n\n /**\n * Wether the field is required\n */\n @Prop({ reflect: true }) required: boolean;\n\n /**\n * The helper of the input group\n */\n @Prop({ reflect: true }) error: string;\n\n /**\n * Wether the input group is disabled\n */\n @Prop({ reflect: true }) disabled: boolean = false;\n\n /**\n * Wether the input group is focused\n */\n @Prop({ reflect: true }) focused: boolean = false;\n\n /**\n * The method to use when focusing the input\n */\n @Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n /**\n * The host element\n */\n @Element() private _el: HTMLElement;\n\n @State() private _forceShowTooltip = false;\n\n private _whitelistedTags = ['input', 'textarea'];\n\n componentWillRender() {\n this._setInputClasses();\n }\n\n render() {\n const {\n hasHeaderSlot,\n helper,\n label,\n prefix,\n suffix,\n errorAndErrorIsNotBoolean,\n errorVariant,\n } = this._getSlotInfo();\n\n return (\n <Host\n class={`p-input-group ${this.error?.length && 'error'} ${\n this.disabled && 'disabled'\n } ${this.focused && 'focused'} size-${this.size}`}\n >\n <div class=\"flex items-end justify-between\">\n {label && (\n <div\n class=\"input-label\"\n onClick={() => this._focusInput()}\n >\n {label}\n {this.required && (\n <span class=\"ml-1 text-negative\">*</span>\n )}\n </div>\n )}\n\n {(helper || hasHeaderSlot) && (\n <div class=\"input-header\">\n {hasHeaderSlot && <slot name=\"header\" />}\n {helper && (\n <p-helper\n class={`flex ${\n hasHeaderSlot ? 'ml-2' : ''\n }`}\n placement=\"top-end\"\n >\n {helper}\n </p-helper>\n )}\n </div>\n )}\n </div>\n <p-tooltip\n class=\"w-full\"\n variant=\"error-element\"\n content={this.error}\n show={\n errorAndErrorIsNotBoolean &&\n errorVariant === 'element' &&\n this._forceShowTooltip\n }\n enableUserInput={false}\n >\n <div class=\"content\" slot=\"trigger\">\n {(prefix ||\n (this.icon && this.iconPosition === 'start')) && (\n <div\n class={`prefix size-${this.size}`}\n onClick={() => this._focusInput()}\n >\n {this.icon && this.iconPosition === 'start' ? (\n <p-icon\n class=\"flex\"\n variant={this.icon}\n rotate={this.iconRotate}\n flip={this.iconFlip}\n />\n ) : (\n prefix\n )}\n </div>\n )}\n {(suffix ||\n (errorAndErrorIsNotBoolean &&\n errorVariant === 'icon') ||\n (this.icon && this.iconPosition === 'end')) && (\n <div\n class={`suffix size-${this.size}`}\n onClick={() => this._focusInput()}\n >\n {errorAndErrorIsNotBoolean &&\n errorVariant === 'icon' ? (\n <p-input-error\n error={this.error}\n forceShowTooltip={\n this._forceShowTooltip\n }\n />\n ) : this.icon && this.iconPosition === 'end' ? (\n <p-icon\n class=\"flex\"\n variant={this.icon}\n rotate={this.iconRotate}\n flip={this.iconFlip}\n />\n ) : (\n suffix\n )}\n </div>\n )}\n\n <slot name=\"input\" />\n </div>\n </p-tooltip>\n </Host>\n );\n }\n\n @Listen('focusin')\n handleFocusIn() {\n this._forceShowTooltip = true;\n }\n\n @Listen('focusout')\n handleFocusOut() {\n this._forceShowTooltip = false;\n }\n /* \n With this, we shall hack the system in ways no one would ever have thought.\n \n <div class=\"pl-0 pr-0 border-l-0 border-r-0 rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none\"></div>\n */\n private _setInputClasses() {\n const input = this._el.querySelector(':scope > [slot=\"input\"]');\n\n if (!input) {\n return;\n }\n\n const tagName = input.tagName.toLowerCase();\n if (this._whitelistedTags.indexOf(tagName) === -1) {\n return;\n }\n\n if (!input.classList.contains('p-input')) {\n input.classList.add('p-input');\n }\n\n const { prefix, suffix, errorAndErrorIsNotBoolean, errorVariant } =\n this._getSlotInfo();\n\n if (\n suffix ||\n (errorAndErrorIsNotBoolean && errorVariant === 'icon') ||\n (this.icon && this.iconPosition === 'end')\n ) {\n input.classList.add(\n 'border-r-0',\n 'rounded-tr-none',\n 'rounded-br-none',\n 'pr-0'\n );\n } else {\n input.classList.remove(\n 'border-r-0',\n 'rounded-tr-none',\n 'rounded-br-none',\n 'pr-0'\n );\n }\n\n if (prefix || (this.icon && this.iconPosition === 'start')) {\n input.classList.add(\n 'border-l-0',\n 'rounded-tl-none',\n 'rounded-bl-none',\n 'pl-0'\n );\n } else {\n input.classList.remove(\n 'border-l-0',\n 'rounded-tl-none',\n 'rounded-bl-none',\n 'pl-0'\n );\n }\n\n if (this.size === 'small' && !input.classList.contains('size-small')) {\n input.classList.add('size-small');\n }\n\n if (this.size !== 'small' && input.classList.contains('size-small')) {\n input.classList.remove('size-small');\n }\n }\n\n private _getSlotInfo() {\n const hasHelperSlot = !!this._el.querySelector(\n ':scope > [slot=\"helper\"]'\n );\n const hasLabelSlot = !!this._el.querySelector(\n ':scope > [slot=\"label\"]'\n );\n const hasPrefixSlot = !!this._el.querySelector(\n ':scope > [slot=\"prefix\"]'\n );\n const hasSuffixSlot = !!this._el.querySelector(\n ':scope > [slot=\"suffix\"]'\n );\n const hasHeaderSlot = !!this._el.querySelector(\n ':scope > [slot=\"header\"]'\n );\n\n const helper = hasHelperSlot ? <slot name=\"helper\" /> : this.helper;\n const label = hasLabelSlot ? <slot name=\"label\" /> : this.label;\n const prefix = hasPrefixSlot ? <slot name=\"prefix\" /> : this.prefix;\n const suffix = hasSuffixSlot ? <slot name=\"suffix\" /> : this.suffix;\n\n const errorAndErrorIsNotBoolean =\n this.error &&\n typeof this.error === 'string' &&\n this.error !== 'true';\n\n return {\n hasHelperSlot,\n hasLabelSlot,\n hasPrefixSlot,\n hasSuffixSlot,\n hasHeaderSlot,\n helper,\n label,\n prefix,\n suffix,\n errorAndErrorIsNotBoolean,\n errorVariant: this._el.offsetWidth <= 72 ? 'element' : 'icon',\n };\n }\n\n private _focusInput() {\n const input = this._el.querySelector(':scope > [slot=\"input\"]');\n (input as HTMLElement)[this.focusMethod]();\n }\n}\n"],"version":3}
1
+ {"file":"p-helper.p-input-error.p-input-group.entry.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,whBAAwhB;;MCQtiB,MAAM;;;qBAIa,KAAK;;EAEpC,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,UAAU,IACrB,iBAAW,SAAS,EAAE,IAAI,CAAC,SAAS,IACnC,WAAK,IAAI,EAAC,SAAS,IAClB,eAAQ,CACH,EAEN,WAAK,IAAI,EAAC,SAAS,EAAC,KAAK,EAAC,QAAQ,GAAO,CAC9B,CACN,EACN;GACF;;;;MCpBW,UAAU;;;;4BASK,KAAK;wBAEA,KAAK;;EAErC,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,eAAe,IAC1B,iBACC,OAAO,EAAC,OAAO,EACf,OAAO,EAAE,IAAI,CAAC,KAAK,EACnB,IAAI,EAAE,IAAI,CAAC,gBAAgB,EAC3B,QAAQ,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,YAAY,GAAG,EAAE,CAAC,MAAM,CAAC,IAEjD,cACC,KAAK,EAAE,GACN,IAAI,CAAC,YAAY;UACd,eAAe;UACf,qBACJ,sBAAsB,EACtB,IAAI,EAAC,SAAS,EACd,OAAO,EAAC,aAAa,GACpB,CACS,CACN,EACN;GACF;;;ACxCF,MAAM,sBAAsB,GAAG,gtlDAAgtlD;;MCiBlulD,UAAU;;;IA8Ed,qBAAgB,GAAG,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;gBA1Ed,QAAQ;;;;;;wBA8BH,OAAO;;;;;oBAyBF,KAAK;mBAKN,KAAK;uBAKR,OAAO;6BAOX,KAAK;;EAI1C,mBAAmB;IAClB,IAAI,CAAC,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MACL,MAAM;MACN,MAAM;MACN,yBAAyB;MACzB,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,GAAG,SAAS,GAAG,MAAM;KAC7D,CAAC;GACF;EAEO,WAAW;IAClB,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAC/D,KAAqB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;GAC3C;;;;;;;","names":[],"sources":["src/components/atoms/helper/helper.component.scss?tag=p-helper&encapsulation=shadow","src/components/atoms/helper/helper.component.tsx","src/components/molecules/input-error/input-error.component.tsx","src/components/molecules/input-group/input-group.component.scss?tag=p-input-group&encapsulation=shadow","src/components/molecules/input-group/input-group.component.tsx"],"sourcesContent":[":host {\n\t.helper {\n\t\t@apply inline-block cursor-pointer bg-no-repeat bg-center w-3 h-3;\n\t\tbackground-image: url(/assets/images/helper/helper.svg);\n\n\t\t&:hover {\n\t\t\tbackground-image: url(/assets/images/helper/helper-hover.svg);\n\t\t}\n\t}\n}\n","import { Placement } from '@floating-ui/dom';\nimport { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-helper',\n\tstyleUrl: 'helper.component.scss',\n\tshadow: true,\n})\nexport class Helper {\n\t/**\n\t * The placement of the helper popover\n\t */\n\t@Prop() placement: Placement = 'top';\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-helper\">\n\t\t\t\t<p-tooltip placement={this.placement}>\n\t\t\t\t\t<div slot=\"content\">\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div slot=\"trigger\" class=\"helper\"></div>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","import { Component, h, Host, Prop, State } from '@stencil/core';\n\n@Component({\n\ttag: 'p-input-error',\n\tshadow: true,\n})\nexport class InputError {\n\t/**\n\t * The error to show\n\t */\n\t@Prop() error: string;\n\n\t/**\n\t * Wether to force show the tooltip\n\t */\n\t@Prop() forceShowTooltip = false;\n\n\t@State() private _showTooltip = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-input-error\">\n\t\t\t\t<p-tooltip\n\t\t\t\t\tvariant=\"error\"\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={this.forceShowTooltip}\n\t\t\t\t\tonIsOpen={(ev) => (this._showTooltip = ev.detail)}\n\t\t\t\t>\n\t\t\t\t\t<p-icon\n\t\t\t\t\t\tclass={`${\n\t\t\t\t\t\t\tthis._showTooltip\n\t\t\t\t\t\t\t\t? 'text-negative'\n\t\t\t\t\t\t\t\t: 'text-negative-light'\n\t\t\t\t\t\t} hover:text-negative`}\n\t\t\t\t\t\tslot=\"trigger\"\n\t\t\t\t\t\tvariant=\"explanation\"\n\t\t\t\t\t/>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","@import '../../../style/form/mixins';\n\n@mixin slottedItems($prefix: false) {\n\t@include inputs($prefix, true) {\n\t\t@content;\n\t}\n}\n\n:host {\n\t@apply flex w-full flex-col;\n\t@apply outline-none #{!important};\n\n\t.input-label {\n\t\t@apply mb-[2px] text-xs font-semibold uppercase tracking-wider text-storm-vague;\n\t}\n\n\t.input-header {\n\t\t@apply mb-[2px] flex items-end gap-2;\n\t}\n\n\t.content {\n\t\t@apply flex w-full;\n\n\t\t.prefix,\n\t\t.suffix {\n\t\t\t@include inputDefaultState(false);\n\t\t\t@apply box-border flex-1 text-storm;\n\t\t\t@apply h-full;\n\t\t}\n\n\t\t.prefix {\n\t\t\t@apply rounded-br-none rounded-tr-none;\n\t\t\t@apply border-r-0 #{!important};\n\t\t\t@apply order-1;\n\t\t\t@apply pr-2;\n\t\t}\n\n\t\t.suffix {\n\t\t\t@apply rounded-bl-none rounded-tl-none;\n\t\t\t@apply order-3;\n\t\t\t@apply pl-2;\n\t\t\t@apply border-l-0 #{!important};\n\t\t}\n\n\t\t@include slottedItems() {\n\t\t\t@include inputDefaultState();\n\t\t\t@apply order-2;\n\t\t}\n\n\t\t@include slottedItems('.prefix') {\n\t\t\t@apply rounded-bl-none rounded-tl-none #{!important};\n\t\t\t@apply flex-auto;\n\t\t\t@apply border-l-0 pl-0 #{!important};\n\t\t}\n\n\t\t@include slottedItems('.suffix') {\n\t\t\t@apply rounded-br-none rounded-tr-none #{!important};\n\t\t\t@apply flex-auto;\n\t\t\t@apply border-r-0 pr-0 #{!important};\n\t\t}\n\t}\n}\n\n:host(.focused),\n:host([focused]),\n:host(:focus-within),\n:host(:focus) {\n\t@apply outline-none #{!important};\n\n\t.prefix,\n\t.suffix {\n\t\t@include inputFocusState();\n\t\t@apply text-indigo;\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputFocusState();\n\t}\n}\n\n:host(.error),\n:host([error]) {\n\t.prefix,\n\t.suffix {\n\t\t@include inputErrorState();\n\t\t@apply text-negative;\n\t}\n\n\t.suffix {\n\t\t@apply items-start py-[calc(0.75rem-1px)];\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputErrorState();\n\n\t\t&:focus,\n\t\t&:focus-within,\n\t\t&:focus-visible,\n\t\t&.focus,\n\t\t&[active],\n\t\t&.active {\n\t\t\t@include inputErrorState();\n\t\t}\n\t}\n}\n\n:host(.disabled),\n:host([disabled]) {\n\t.prefix,\n\t.suffix {\n\t\t@include inputDisabledState();\n\t}\n\n\t@include slottedItems() {\n\t\t@include inputDisabledState();\n\t\tpointer-events: none;\n\t}\n}\n\n:host(.size-small) {\n\t@include slottedItems() {\n\t\t@include inputSizeSmall();\n\t}\n}\n\n:host(.size-small.error),\n:host(.size-small[error]) {\n\t.suffix {\n\t\t@apply py-2;\n\t}\n}\n","import {\n\tComponent,\n\tElement,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\n\n@Component({\n\ttag: 'p-input-group',\n\tstyleUrl: './input-group.component.scss',\n\tshadow: true,\n})\nexport class InputGroup {\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() size: 'small' | 'medium' = 'medium';\n\n\t/**\n\t * The prefix of the input group\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the input group\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the input group\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * Wether the input group is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the input group is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _forceShowTooltip = false;\n\n\tprivate _whitelistedTags = ['input', 'textarea'];\n\n\tcomponentWillRender() {\n\t\tthis._setInputClasses();\n\t}\n\n\trender() {\n\t\tconst {\n\t\t\thasHeaderSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t\terrorVariant,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-input-group ${this.error?.length && 'error'} ${\n\t\t\t\t\tthis.disabled && 'disabled'\n\t\t\t\t} ${this.focused && 'focused'} size-${this.size}`}\n\t\t\t>\n\t\t\t\t<div class=\"flex items-end justify-between\">\n\t\t\t\t\t{label && (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass=\"input-label\"\n\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{label}\n\t\t\t\t\t\t\t{this.required && (\n\t\t\t\t\t\t\t\t<span class=\"ml-1 text-negative\">*</span>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{(helper || hasHeaderSlot) && (\n\t\t\t\t\t\t<div class=\"input-header\">\n\t\t\t\t\t\t\t{hasHeaderSlot && <slot name=\"header\" />}\n\t\t\t\t\t\t\t{helper && (\n\t\t\t\t\t\t\t\t<p-helper\n\t\t\t\t\t\t\t\t\tclass={`flex ${\n\t\t\t\t\t\t\t\t\t\thasHeaderSlot ? 'ml-2' : ''\n\t\t\t\t\t\t\t\t\t}`}\n\t\t\t\t\t\t\t\t\tplacement=\"top-end\"\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{helper}\n\t\t\t\t\t\t\t\t</p-helper>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t<p-tooltip\n\t\t\t\t\tclass=\"w-full\"\n\t\t\t\t\tvariant=\"error-element\"\n\t\t\t\t\tcontent={this.error}\n\t\t\t\t\tshow={\n\t\t\t\t\t\terrorAndErrorIsNotBoolean &&\n\t\t\t\t\t\terrorVariant === 'element' &&\n\t\t\t\t\t\tthis._forceShowTooltip\n\t\t\t\t\t}\n\t\t\t\t\tenableUserInput={false}\n\t\t\t\t>\n\t\t\t\t\t<div class=\"content\" slot=\"trigger\">\n\t\t\t\t\t\t{(prefix ||\n\t\t\t\t\t\t\t(this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={`prefix size-${this.size}`}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass=\"flex\"\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{(suffix ||\n\t\t\t\t\t\t\t(errorAndErrorIsNotBoolean &&\n\t\t\t\t\t\t\t\terrorVariant === 'icon') ||\n\t\t\t\t\t\t\t(this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={`suffix size-${this.size}`}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{errorAndErrorIsNotBoolean &&\n\t\t\t\t\t\t\t\terrorVariant === 'icon' ? (\n\t\t\t\t\t\t\t\t\t<p-input-error\n\t\t\t\t\t\t\t\t\t\terror={this.error}\n\t\t\t\t\t\t\t\t\t\tforceShowTooltip={\n\t\t\t\t\t\t\t\t\t\t\tthis._forceShowTooltip\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass=\"flex\"\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t<slot name=\"input\" />\n\t\t\t\t\t</div>\n\t\t\t\t</p-tooltip>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tthis._forceShowTooltip = true;\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tthis._forceShowTooltip = false;\n\t}\n\t/* \n With this, we shall hack the system in ways no one would ever have thought.\n \n <div class=\"pl-0 pr-0 border-l-0 border-r-0 rounded-tl-none rounded-bl-none rounded-tr-none rounded-br-none\"></div>\n */\n\tprivate _setInputClasses() {\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\n\t\tif (!input) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst tagName = input.tagName.toLowerCase();\n\t\tif (this._whitelistedTags.indexOf(tagName) === -1) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (!input.classList.contains('p-input')) {\n\t\t\tinput.classList.add('p-input');\n\t\t}\n\n\t\tconst { prefix, suffix, errorAndErrorIsNotBoolean, errorVariant } =\n\t\t\tthis._getSlotInfo();\n\n\t\tif (\n\t\t\tsuffix ||\n\t\t\t(errorAndErrorIsNotBoolean && errorVariant === 'icon') ||\n\t\t\t(this.icon && this.iconPosition === 'end')\n\t\t) {\n\t\t\tinput.classList.add(\n\t\t\t\t'border-r-0',\n\t\t\t\t'rounded-tr-none',\n\t\t\t\t'rounded-br-none',\n\t\t\t\t'pr-0'\n\t\t\t);\n\t\t} else {\n\t\t\tinput.classList.remove(\n\t\t\t\t'border-r-0',\n\t\t\t\t'rounded-tr-none',\n\t\t\t\t'rounded-br-none',\n\t\t\t\t'pr-0'\n\t\t\t);\n\t\t}\n\n\t\tif (prefix || (this.icon && this.iconPosition === 'start')) {\n\t\t\tinput.classList.add(\n\t\t\t\t'border-l-0',\n\t\t\t\t'rounded-tl-none',\n\t\t\t\t'rounded-bl-none',\n\t\t\t\t'pl-0'\n\t\t\t);\n\t\t} else {\n\t\t\tinput.classList.remove(\n\t\t\t\t'border-l-0',\n\t\t\t\t'rounded-tl-none',\n\t\t\t\t'rounded-bl-none',\n\t\t\t\t'pl-0'\n\t\t\t);\n\t\t}\n\n\t\tif (this.size === 'small' && !input.classList.contains('size-small')) {\n\t\t\tinput.classList.add('size-small');\n\t\t}\n\n\t\tif (this.size !== 'small' && input.classList.contains('size-small')) {\n\t\t\tinput.classList.remove('size-small');\n\t\t}\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"helper\"]'\n\t\t);\n\t\tconst hasLabelSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"label\"]'\n\t\t);\n\t\tconst hasPrefixSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"prefix\"]'\n\t\t);\n\t\tconst hasSuffixSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"suffix\"]'\n\t\t);\n\t\tconst hasHeaderSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"header\"]'\n\t\t);\n\n\t\tconst helper = hasHelperSlot ? <slot name=\"helper\" /> : this.helper;\n\t\tconst label = hasLabelSlot ? <slot name=\"label\" /> : this.label;\n\t\tconst prefix = hasPrefixSlot ? <slot name=\"prefix\" /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name=\"suffix\" /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error &&\n\t\t\ttypeof this.error === 'string' &&\n\t\t\tthis.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thelper,\n\t\t\tlabel,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t\terrorVariant: this._el.offsetWidth <= 72 ? 'element' : 'icon',\n\t\t};\n\t}\n\n\tprivate _focusInput() {\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"p-info-panel.entry.js","mappings":";;AAAA,MAAM,qBAAqB,GAAG,uxCAAuxC;;MCOxyC,SAAS;;;mBAI6C,MAAM;;;qBAe1C,KAAK;;EAOlC,MAAM;IACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,wBAAwB,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,IAAI,WAAW,EAAE,IAClF,WAAK,KAAK,EAAC,QAAQ,IACjB,YAAM,IAAI,EAAC,QAAQ,GAAG,CAClB,EACN,WAAK,KAAK,EAAC,SAAS,IAClB,YAAM,IAAI,EAAC,SAAS,GAAG,CACnB,EAEL,IAAI,CAAC,SAAS,KACb,WAAK,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,IAC7C,cAAQ,OAAO,EAAC,UAAU,GAAG,CACzB,CACP,CACI,EACP;GACH;EAEO,MAAM;IACZ,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;GACnB;;;;;;;","names":[],"sources":["src/components/atoms/info-panel/info-panel.component.scss?tag=p-info-panel&encapsulation=shadow","src/components/atoms/info-panel/info-panel.component.tsx"],"sourcesContent":[":host {\n @apply flex flex-col w-full relative p-4 bg-indigo-light rounded-large;\n\n .header {\n @apply font-semibold text-storm-dark;\n }\n\n .content {\n @apply text-sm;\n }\n\n .close {\n @apply absolute top-2 right-2 cursor-pointer text-storm-vague;\n }\n}\n\n:host(.variant-positive) {\n @apply bg-positive-light;\n}\n\n:host(.variant-unbiased) {\n @apply bg-unbiased-light;\n}\n\n:host(.variant-negative) {\n @apply bg-negative-light;\n}\n\n:host(.has-close) {\n @apply pr-8;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'p-info-panel',\n styleUrl: 'info-panel.component.scss',\n shadow: true,\n})\nexport class InfoPanel {\n /**\n * The variant of the info panel\n */\n @Prop() variant: 'info' | 'negative' | 'positive' | 'unbiased' = 'info';\n\n /**\n * The header of the info panel\n */\n @Prop() header: string;\n\n /**\n * The content of the info panel\n */\n @Prop() content: string;\n\n /**\n * Wether the panel can be closed\n */\n @Prop() closeable: boolean = false;\n\n /**\n * The host element\n */\n @Element() private _el: HTMLElement;\n\n render() {\n return (\n <Host class={`p-info-panel variant-${this.variant} ${this.closeable && 'has-close'}`}>\n <div class=\"header\">\n <slot name=\"header\" />\n </div>\n <div class=\"content\">\n <slot name=\"content\" />\n </div>\n\n {this.closeable && (\n <div class=\"close\" onClick={() => this._close()}>\n <p-icon variant=\"negative\" />\n </div>\n )}\n </Host>\n );\n }\n\n private _close() {\n this._el.remove();\n }\n}\n"],"version":3}
1
+ {"file":"p-info-panel.entry.js","mappings":";;AAAA,MAAM,qBAAqB,GAAG,uxCAAuxC;;MCOxyC,SAAS;;;mBAI4C,MAAM;;;qBAe1C,KAAK;;EAOlC,MAAM;IACL,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,wBAAwB,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,SAAS,IAAI,WAAW,EAAE,IAE9E,WAAK,KAAK,EAAC,QAAQ,IAClB,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,YAAM,IAAI,EAAC,SAAS,GAAG,CAClB,EAEL,IAAI,CAAC,SAAS,KACd,WAAK,KAAK,EAAC,OAAO,EAAC,OAAO,EAAE,MAAM,IAAI,CAAC,MAAM,EAAE,IAC9C,cAAQ,OAAO,EAAC,UAAU,GAAG,CACxB,CACN,CACK,EACN;GACF;EAEO,MAAM;IACb,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,CAAC;GAClB;;;;;;;","names":[],"sources":["src/components/atoms/info-panel/info-panel.component.scss?tag=p-info-panel&encapsulation=shadow","src/components/atoms/info-panel/info-panel.component.tsx"],"sourcesContent":[":host {\n\t@apply flex flex-col w-full relative p-4 bg-indigo-light rounded-large;\n\n\t.header {\n\t\t@apply font-semibold text-storm-dark;\n\t}\n\n\t.content {\n\t\t@apply text-sm;\n\t}\n\n\t.close {\n\t\t@apply absolute top-2 right-2 cursor-pointer text-storm-vague;\n\t}\n}\n\n:host(.variant-positive) {\n\t@apply bg-positive-light;\n}\n\n:host(.variant-unbiased) {\n\t@apply bg-unbiased-light;\n}\n\n:host(.variant-negative) {\n\t@apply bg-negative-light;\n}\n\n:host(.has-close) {\n\t@apply pr-8;\n}\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-info-panel',\n\tstyleUrl: 'info-panel.component.scss',\n\tshadow: true,\n})\nexport class InfoPanel {\n\t/**\n\t * The variant of the info panel\n\t */\n\t@Prop() variant: 'info' | 'negative' | 'positive' | 'unbiased' = 'info';\n\n\t/**\n\t * The header of the info panel\n\t */\n\t@Prop() header: string;\n\n\t/**\n\t * The content of the info panel\n\t */\n\t@Prop() content: string;\n\n\t/**\n\t * Wether the panel can be closed\n\t */\n\t@Prop() closeable: boolean = false;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-info-panel variant-${this.variant} ${this.closeable && 'has-close'}`}\n\t\t\t>\n\t\t\t\t<div class=\"header\">\n\t\t\t\t\t<slot name=\"header\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t</div>\n\n\t\t\t\t{this.closeable && (\n\t\t\t\t\t<div class=\"close\" onClick={() => this._close()}>\n\t\t\t\t\t\t<p-icon variant=\"negative\" />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _close() {\n\t\tthis._el.remove();\n\t}\n}\n"],"version":3}
@@ -50,7 +50,7 @@ const SegmentItem = class {
50
50
  this._hasDescriptionSlot = !!this._el.querySelector(':scope > [slot="description"]');
51
51
  }
52
52
  render() {
53
- return (h(Host, { class: `p-segment-item variant-${this.iconOnly ? 'icon' : 'default'} ${this.active && 'active'}` }, this.icon && this._getIcon(), h("slot", null), this.size === 'big' && this._hasDescriptionSlot && h("span", { class: "description" }, h("slot", { name: "description" }))));
53
+ return (h(Host, { class: `p-segment-item variant-${this.iconOnly ? 'icon' : 'default'} ${this.active && 'active'}` }, this.icon && this._getIcon(), h("slot", null), this.size === 'big' && this._hasDescriptionSlot && (h("span", { class: "description" }, h("slot", { name: "description" })))));
54
54
  }
55
55
  _getIcon() {
56
56
  if (!this.icon) {
@@ -1 +1 @@
1
- {"file":"p-label.p-segment-container.p-segment-item.entry.js","mappings":";;AAAA,MAAM,iBAAiB,GAAG,ugKAAugK;;MCSphK,KAAK;;;mBAUC,SAAS;oBAUJ,QAAQ;wBAKY,OAAO;;;;gBAoBM,SAAS;6BAKR,KAAK;;EAE3D,MAAM;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAC,SAAS,IAChB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,OAAO,KACvC,cACI,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,MAAM,EAAE,IAAI,CAAC,UAAU,GACzB,CACL,EACA,CAAC,IAAI,CAAC,QAAQ,KAAK,QAAQ;MACxB,IAAI,CAAC,QAAQ,KAAK,aAAa,MAC/B,WAAK,KAAK,EAAC,QAAQ,GAAO,CAC7B,EACD,WAAK,KAAK,EAAC,SAAS,IAChB,eAAQ,CACN,EACL,I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label/label.component.scss?tag=p-label&encapsulation=shadow","src/components/atoms/label/label.component.tsx","src/components/atoms/segment-container/segment-container.component.scss?tag=p-segment-container","src/components/atoms/segment-container/segment-container.component.tsx","src/components/atoms/segment-item/segment-item.component.scss?tag=p-segment-item&encapsulation=shadow","src/components/atoms/segment-item/segment-item.component.tsx"],"sourcesContent":[":host {\n @apply flex items-center justify-center gap-2 rounded px-2 desktop-xs:px-3;\n @apply h-[1.625rem];\n @apply text-sm font-semibold;\n\n .content {\n @apply hidden items-center desktop-xs:flex;\n }\n\n .circle {\n @apply hidden h-[0.625rem] w-[0.625rem] rounded-round;\n }\n\n p-icon {\n @apply hidden text-xs #{!important};\n }\n}\n\n:host([variant='neutral']) {\n @apply bg-mystic;\n @apply text-storm-vague;\n\n .circle {\n @apply bg-storm-vague;\n }\n}\n\n:host([variant='special']) {\n @apply bg-indigo-light;\n @apply text-indigo-dark;\n\n .circle {\n @apply bg-indigo;\n }\n}\n\n:host([variant='info']) {\n @apply bg-sky-light;\n @apply text-sky;\n\n .circle {\n @apply bg-sky;\n }\n}\n\n:host([variant='positive']) {\n @apply bg-positive-light;\n @apply text-positive;\n\n .circle {\n @apply bg-positive;\n }\n}\n\n:host([variant='unbiased']) {\n @apply bg-unbiased-light;\n @apply text-unbiased;\n\n .circle {\n @apply bg-unbiased;\n }\n}\n\n:host([variant='negative']) {\n @apply bg-negative-light;\n @apply text-negative;\n\n .circle {\n @apply bg-negative;\n }\n}\n\n:host([size='small']) {\n @apply h-4 min-w-[1rem] px-1 py-[1px];\n @apply justify-center text-xs;\n @apply leading-3;\n}\n\n:host([behavior='circle']) {\n .circle {\n @apply block desktop-xs:block;\n }\n}\n\n:host([behavior='icon']) {\n p-icon {\n @apply flex desktop-xs:flex #{!important};\n }\n}\n\n:host([behavior='text']) {\n p-icon {\n @apply hidden desktop-xs:hidden #{!important};\n }\n\n .circle {\n @apply hidden desktop-xs:hidden;\n }\n\n .content {\n @apply flex desktop-xs:flex;\n }\n}\n\n:host([behavior='combination']) {\n @apply px-0 desktop-xs:px-3;\n @apply w-[1.625rem] desktop-xs:w-auto;\n\n .circle {\n @apply hidden desktop-xs:block;\n }\n\n p-icon {\n @apply flex desktop-xs:hidden #{!important};\n }\n}\n\n:host([behavior='icon-only']) {\n @apply px-0 desktop-xs:px-0;\n @apply w-[1.625rem];\n\n .content {\n @apply hidden desktop-xs:hidden;\n }\n\n p-icon {\n @apply flex desktop-xs:flex #{!important};\n }\n}\n\n:host([behavior='icon-only'][size='small']) {\n @apply h-4 w-4;\n}\n\n:host([keep-mobile-content]),\n:host([keep-mobile-content='true']) {\n .content {\n @apply flex desktop-xs:flex;\n }\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { RotateOptions } from '../../../types';\nimport { IconFlipOptions, IconVariant } from '../icon/icon.component';\n\n@Component({\n tag: 'p-label',\n styleUrl: 'label.component.scss',\n shadow: true,\n})\nexport class Label {\n /**\n * Variant of the label\n */\n @Prop({ reflect: true }) variant:\n | 'neutral'\n | 'positive'\n | 'unbiased'\n | 'negative'\n | 'special'\n | 'info' = 'neutral';\n\n /**\n * Define the behavior of the label\n */\n @Prop({ reflect: true }) behavior:\n | 'icon'\n | 'circle'\n | 'combination'\n | 'text'\n | 'icon-only' = 'circle';\n\n /**\n * Icon position\n */\n @Prop() iconPosition: 'start' | 'end' = 'start';\n\n /**\n * Icon to show on the label\n */\n @Prop({ reflect: true }) icon: IconVariant;\n\n /**\n * Icon flip\n */\n @Prop() iconFlip: IconFlipOptions;\n\n /**\n * Icon rotate\n */\n @Prop() iconRotate: RotateOptions;\n\n /**\n * The size of the label\n */\n @Prop({ reflect: true }) size: 'small' | 'default' = 'default';\n\n /**\n * Wether to keep the content on mobile\n */\n @Prop({ reflect: true }) keepMobileContent: boolean = false;\n\n render() {\n return (\n <Host class=\"p-label\">\n {this.icon && this.iconPosition === 'start' && (\n <p-icon\n variant={this.icon}\n flip={this.iconFlip}\n rotate={this.iconRotate}\n />\n )}\n {(this.behavior === 'circle' ||\n this.behavior === 'combination') && (\n <div class=\"circle\"></div>\n )}\n <div class=\"content\">\n <slot />\n </div>\n {this.icon && this.iconPosition === 'end' && (\n <p-icon\n variant={this.icon}\n flip={this.iconFlip}\n rotate={this.iconRotate}\n />\n )}\n </Host>\n );\n }\n}\n","p-segment-container {\n @apply flex items-center gap-1;\n @apply bg-white rounded-large;\n @apply p-1;\n @apply border border-solid border-mystic-dark;\n}\n","import { Component, h, Host } from '@stencil/core';\n\n@Component({\n tag: 'p-segment-container',\n styleUrl: 'segment-container.component.scss',\n})\nexport class SegmentContainer {\n render() {\n return (\n <Host class=\"p-segment-container\">\n <slot />\n </Host>\n );\n }\n}\n",":host {\n @apply flex h-6 items-center gap-2 rounded-large px-2;\n @apply whitespace-nowrap text-sm font-semibold text-storm;\n @apply cursor-pointer;\n}\n\n:host([size='big']) {\n @apply h-auto max-w-[9rem] flex-col whitespace-normal p-4 text-center;\n\n .description {\n @apply -mt-2 text-xxs font-normal text-storm-medium;\n }\n}\n\n:host(.variant-icon) {\n @apply w-6 justify-center px-0;\n}\n\n:host(:hover) {\n @apply bg-indigo-light;\n}\n\n:host(.active) {\n @apply bg-indigo-light text-indigo;\n\n .description {\n @apply text-indigo;\n }\n}\n","import { Component, h, Host, Prop, Element } from '@stencil/core';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../icon/icon.component';\n\n@Component({\n tag: 'p-segment-item',\n styleUrl: 'segment-item.component.scss',\n shadow: true,\n})\nexport class SegmentItem {\n /**\n * Wether the segment item is active\n */\n @Prop() active: boolean = false;\n\n /**\n * Wether the segment item is icon only\n */\n @Prop() iconOnly: boolean = false;\n\n /**\n * Size of the segment item\n */\n @Prop({ reflect: true }) size: 'small' | 'big' = 'small';\n\n /**\n * Icon to show on the segment item\n */\n @Prop() icon: IconVariant;\n\n /**\n * Icon flip\n */\n @Prop() iconFlip: IconFlipOptions;\n\n /**\n * Icon rotate\n */\n @Prop() iconRotate: RotateOptions;\n\n /**\n * The host element\n */\n @Element() private _el: HTMLElement;\n\n private _hasDescriptionSlot = false;\n\n componentWillLoad() {\n this._hasDescriptionSlot = !!this._el.querySelector(\n ':scope > [slot=\"description\"]'\n );\n }\n\n render() {\n return (\n <Host\n class={`p-segment-item variant-${\n this.iconOnly ? 'icon' : 'default'\n } ${this.active && 'active'}`}\n >\n {this.icon && this._getIcon()}\n <slot />\n {this.size === 'big' && this._hasDescriptionSlot && <span class=\"description\"><slot name=\"description\" /></span>}\n </Host>\n );\n }\n\n private _getIcon() {\n if (!this.icon) {\n return;\n }\n\n return (\n <p-icon\n class=\"flex\"\n variant={this.icon}\n flip={this.iconFlip}\n rotate={this.iconRotate}\n />\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-label.p-segment-container.p-segment-item.entry.js","mappings":";;AAAA,MAAM,iBAAiB,GAAG,ugKAAugK;;MCSphK,KAAK;;;mBAUL,SAAS;oBAUJ,QAAQ;wBAKe,OAAO;;;;gBAoBM,SAAS;6BAKR,KAAK;;EAE3D,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,SAAS,IACnB,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,OAAO,KAC1C,cACC,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,MAAM,EAAE,IAAI,CAAC,UAAU,GACtB,CACF,EACA,CAAC,IAAI,CAAC,QAAQ,KAAK,QAAQ;MAC3B,IAAI,CAAC,QAAQ,KAAK,aAAa,MAC/B,WAAK,KAAK,EAAC,QAAQ,GAAO,CAC1B,EACD,WAAK,KAAK,EAAC,SAAS,IACnB,eAAQ,CACH,EACL,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,YAAY,KAAK,KAAK,KACxC,cACC,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,MAAM,EAAE,IAAI,CAAC,UAAU,GACtB,CACF,CACK,EACN;GACF;;;;ACvFF,MAAM,4BAA4B,GAAG,ulBAAulB;;MCM/mB,gBAAgB;;;;EAC5B,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,qBAAqB,IAChC,eAAQ,CACF,EACN;GACF;;;;ACbF,MAAM,uBAAuB,GAAG,qzDAAqzD;;MCSx0D,WAAW;;;IAoCf,wBAAmB,GAAG,KAAK,CAAC;kBAhCV,KAAK;oBAKH,KAAK;gBAKgB,OAAO;;;;;EAwBxD,iBAAiB;IAChB,IAAI,CAAC,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAClD,+BAA+B,CAC/B,CAAC;GACF;EAED,MAAM;IACL,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,0BACN,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,SAC1B,IAAI,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,IAE5B,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,EAAE,EAC7B,eAAQ,EACP,IAAI,CAAC,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,mBAAmB,KAC/C,YAAM,KAAK,EAAC,aAAa,IACxB,YAAM,IAAI,EAAC,aAAa,GAAG,CACrB,CACP,CACK,EACN;GACF;EAEO,QAAQ;IACf,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;MACf,OAAO;KACP;IAED,QACC,cACC,KAAK,EAAC,MAAM,EACZ,OAAO,EAAE,IAAI,CAAC,IAAI,EAClB,IAAI,EAAE,IAAI,CAAC,QAAQ,EACnB,MAAM,EAAE,IAAI,CAAC,UAAU,GACtB,EACD;GACF;;;;;;;","names":[],"sources":["src/components/atoms/label/label.component.scss?tag=p-label&encapsulation=shadow","src/components/atoms/label/label.component.tsx","src/components/atoms/segment-container/segment-container.component.scss?tag=p-segment-container","src/components/atoms/segment-container/segment-container.component.tsx","src/components/atoms/segment-item/segment-item.component.scss?tag=p-segment-item&encapsulation=shadow","src/components/atoms/segment-item/segment-item.component.tsx"],"sourcesContent":[":host {\n\t@apply flex items-center justify-center gap-2 rounded px-2 desktop-xs:px-3;\n\t@apply h-[1.625rem];\n\t@apply text-sm font-semibold;\n\n\t.content {\n\t\t@apply hidden items-center desktop-xs:flex;\n\t}\n\n\t.circle {\n\t\t@apply hidden h-[0.625rem] w-[0.625rem] rounded-round;\n\t}\n\n\tp-icon {\n\t\t@apply hidden text-xs #{!important};\n\t}\n}\n\n:host([variant='neutral']) {\n\t@apply bg-mystic;\n\t@apply text-storm-vague;\n\n\t.circle {\n\t\t@apply bg-storm-vague;\n\t}\n}\n\n:host([variant='special']) {\n\t@apply bg-indigo-light;\n\t@apply text-indigo-dark;\n\n\t.circle {\n\t\t@apply bg-indigo;\n\t}\n}\n\n:host([variant='info']) {\n\t@apply bg-sky-light;\n\t@apply text-sky;\n\n\t.circle {\n\t\t@apply bg-sky;\n\t}\n}\n\n:host([variant='positive']) {\n\t@apply bg-positive-light;\n\t@apply text-positive;\n\n\t.circle {\n\t\t@apply bg-positive;\n\t}\n}\n\n:host([variant='unbiased']) {\n\t@apply bg-unbiased-light;\n\t@apply text-unbiased;\n\n\t.circle {\n\t\t@apply bg-unbiased;\n\t}\n}\n\n:host([variant='negative']) {\n\t@apply bg-negative-light;\n\t@apply text-negative;\n\n\t.circle {\n\t\t@apply bg-negative;\n\t}\n}\n\n:host([size='small']) {\n\t@apply h-4 min-w-[1rem] px-1 py-[1px];\n\t@apply justify-center text-xs;\n\t@apply leading-3;\n}\n\n:host([behavior='circle']) {\n\t.circle {\n\t\t@apply block desktop-xs:block;\n\t}\n}\n\n:host([behavior='icon']) {\n\tp-icon {\n\t\t@apply flex desktop-xs:flex #{!important};\n\t}\n}\n\n:host([behavior='text']) {\n\tp-icon {\n\t\t@apply hidden desktop-xs:hidden #{!important};\n\t}\n\n\t.circle {\n\t\t@apply hidden desktop-xs:hidden;\n\t}\n\n\t.content {\n\t\t@apply flex desktop-xs:flex;\n\t}\n}\n\n:host([behavior='combination']) {\n\t@apply px-0 desktop-xs:px-3;\n\t@apply w-[1.625rem] desktop-xs:w-auto;\n\n\t.circle {\n\t\t@apply hidden desktop-xs:block;\n\t}\n\n\tp-icon {\n\t\t@apply flex desktop-xs:hidden #{!important};\n\t}\n}\n\n:host([behavior='icon-only']) {\n\t@apply px-0 desktop-xs:px-0;\n\t@apply w-[1.625rem];\n\n\t.content {\n\t\t@apply hidden desktop-xs:hidden;\n\t}\n\n\tp-icon {\n\t\t@apply flex desktop-xs:flex #{!important};\n\t}\n}\n\n:host([behavior='icon-only'][size='small']) {\n\t@apply h-4 w-4;\n}\n\n:host([keep-mobile-content]),\n:host([keep-mobile-content='true']) {\n\t.content {\n\t\t@apply flex desktop-xs:flex;\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { RotateOptions } from '../../../types';\nimport { IconFlipOptions, IconVariant } from '../icon/icon.component';\n\n@Component({\n\ttag: 'p-label',\n\tstyleUrl: 'label.component.scss',\n\tshadow: true,\n})\nexport class Label {\n\t/**\n\t * Variant of the label\n\t */\n\t@Prop({ reflect: true }) variant:\n\t\t| 'neutral'\n\t\t| 'positive'\n\t\t| 'unbiased'\n\t\t| 'negative'\n\t\t| 'special'\n\t\t| 'info' = 'neutral';\n\n\t/**\n\t * Define the behavior of the label\n\t */\n\t@Prop({ reflect: true }) behavior:\n\t\t| 'icon'\n\t\t| 'circle'\n\t\t| 'combination'\n\t\t| 'text'\n\t\t| 'icon-only' = 'circle';\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * Icon to show on the label\n\t */\n\t@Prop({ reflect: true }) icon: IconVariant;\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * The size of the label\n\t */\n\t@Prop({ reflect: true }) size: 'small' | 'default' = 'default';\n\n\t/**\n\t * Wether to keep the content on mobile\n\t */\n\t@Prop({ reflect: true }) keepMobileContent: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-label\">\n\t\t\t\t{this.icon && this.iconPosition === 'start' && (\n\t\t\t\t\t<p-icon\n\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t\t{(this.behavior === 'circle' ||\n\t\t\t\t\tthis.behavior === 'combination') && (\n\t\t\t\t\t<div class=\"circle\"></div>\n\t\t\t\t)}\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t\t{this.icon && this.iconPosition === 'end' && (\n\t\t\t\t\t<p-icon\n\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","p-segment-container {\n\t@apply flex items-center gap-1;\n\t@apply bg-white rounded-large;\n\t@apply p-1;\n\t@apply border border-solid border-mystic-dark;\n}\n","import { Component, h, Host } from '@stencil/core';\n\n@Component({\n\ttag: 'p-segment-container',\n\tstyleUrl: 'segment-container.component.scss',\n})\nexport class SegmentContainer {\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-segment-container\">\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n",":host {\n\t@apply flex h-6 items-center gap-2 rounded-large px-2;\n\t@apply whitespace-nowrap text-sm font-semibold text-storm;\n\t@apply cursor-pointer;\n}\n\n:host([size='big']) {\n\t@apply h-auto max-w-[9rem] flex-col whitespace-normal p-4 text-center;\n\n\t.description {\n\t\t@apply -mt-2 text-xxs font-normal text-storm-medium;\n\t}\n}\n\n:host(.variant-icon) {\n\t@apply w-6 justify-center px-0;\n}\n\n:host(:hover) {\n\t@apply bg-indigo-light;\n}\n\n:host(.active) {\n\t@apply bg-indigo-light text-indigo;\n\n\t.description {\n\t\t@apply text-indigo;\n\t}\n}\n","import { Component, h, Host, Prop, Element } from '@stencil/core';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../icon/icon.component';\n\n@Component({\n\ttag: 'p-segment-item',\n\tstyleUrl: 'segment-item.component.scss',\n\tshadow: true,\n})\nexport class SegmentItem {\n\t/**\n\t * Wether the segment item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Wether the segment item is icon only\n\t */\n\t@Prop() iconOnly: boolean = false;\n\n\t/**\n\t * Size of the segment item\n\t */\n\t@Prop({ reflect: true }) size: 'small' | 'big' = 'small';\n\n\t/**\n\t * Icon to show on the segment item\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip\n\t */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasDescriptionSlot = false;\n\n\tcomponentWillLoad() {\n\t\tthis._hasDescriptionSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"description\"]'\n\t\t);\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-segment-item variant-${\n\t\t\t\t\tthis.iconOnly ? 'icon' : 'default'\n\t\t\t\t} ${this.active && 'active'}`}\n\t\t\t>\n\t\t\t\t{this.icon && this._getIcon()}\n\t\t\t\t<slot />\n\t\t\t\t{this.size === 'big' && this._hasDescriptionSlot && (\n\t\t\t\t\t<span class=\"description\">\n\t\t\t\t\t\t<slot name=\"description\" />\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _getIcon() {\n\t\tif (!this.icon) {\n\t\t\treturn;\n\t\t}\n\n\t\treturn (\n\t\t\t<p-icon\n\t\t\t\tclass=\"flex\"\n\t\t\t\tvariant={this.icon}\n\t\t\t\tflip={this.iconFlip}\n\t\t\t\trotate={this.iconRotate}\n\t\t\t/>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"p-layout.entry.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,0oHAA0oH;;MCOxpH,MAAM;;;mBAImC,SAAS;;EAE3D,MAAM;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAE,oBAAoB,IAAI,CAAC,OAAO,EAAE,IAC3C,WAAK,KAAK,EAAC,QAAQ,IACf,YAAM,IAAI,EAAC,QAAQ,GAAG,CACpB,EACN,WAAK,KAAK,EAAC,SAAS,IAChB,YAAM,IAAI,EAAC,SAAS,GAAG,CACrB,EACN,WAAK,KAAK,EAAC,SAAS,IAChB,WAAK,KAAK,EAAC,eAAe,IACtB,YAAM,IAAI,EAAC,SAAS,GAAG,CACrB,CACJ,CACH,EACT;GACL;;;;;;","names":[],"sources":["src/components/atoms/layout/layout.component.scss?tag=p-layout&encapsulation=shadow","src/components/atoms/layout/layout.component.tsx"],"sourcesContent":[":host {\n @apply grid h-screen w-screen content-start overflow-hidden;\n\n grid-template-columns: 1fr;\n grid-template-rows: repeat(1fr, 3);\n gap: 0;\n grid-template-areas:\n 'sidebar'\n 'topbar'\n 'content';\n\n @screen desktop-xs {\n grid-template-columns: auto 1fr;\n grid-template-rows: auto 1fr;\n grid-template-areas:\n 'topbar topbar'\n 'sidebar content';\n }\n\n .topbar,\n .sidebar,\n .content {\n @apply self-start;\n }\n\n .topbar {\n grid-area: topbar;\n\n @apply sticky w-full;\n @apply order-2 desktop-sm:order-1;\n }\n\n .sidebar {\n grid-area: sidebar;\n\n @apply box-border flex h-full;\n @apply w-sidebar-mobile desktop-sm:w-sidebar-desktop;\n @apply order-1 desktop-sm:order-2;\n }\n\n .content {\n grid-area: content;\n\n @apply relative flex h-full flex-col overflow-y-auto overflow-x-hidden;\n @apply order-3;\n\n padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom)\n env(safe-area-inset-left);\n\n .inner-content {\n @apply relative pb-24;\n\n @apply px-content-mobile-x py-content-mobile-y;\n @apply desktop-xs:px-content-desktop-x desktop-xs:py-content-desktop-y;\n\n @apply desktop-xs:w-content-desktop-xs desktop-sm:w-content-desktop-sm desktop:w-content-desktop desktop-lg:w-content-desktop-lg desktop-xl:w-content-desktop-xl;\n }\n }\n}\n\n:host(.variant-default) {\n .content {\n @apply flex-1;\n }\n}\n\n:host(.variant-login) {\n grid-template-areas:\n 'topbar topbar'\n 'content content';\n\n @screen desktop-xs {\n grid-template-areas:\n 'topbar topbar'\n 'content sidebar';\n }\n\n .sidebar {\n @apply hidden w-unset desktop-xs:flex;\n @apply order-3 p-2;\n @apply flex-1 overflow-hidden;\n\n .inner-content {\n @apply p-2;\n }\n }\n\n .content {\n @apply order-3 desktop-xs:order-2;\n @apply items-center desktop-xs:justify-center;\n\n .inner-content {\n @apply box-border;\n @apply desktop-xs:px-18 desktop-xs:py-0;\n @apply w-full tablet:w-content-desktop-login;\n\n @apply px-content-mobile-x py-content-mobile-y;\n padding-top: calc(env(safe-area-inset-top) + 3.5rem);\n\n @screen desktop-xs {\n @apply pt-content-mobile-y;\n }\n }\n }\n}\n\n:host(.variant-office) {\n .sidebar {\n @apply desktop-sm:w-sidebar-office-desktop;\n }\n}","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'p-layout',\n styleUrl: 'layout.component.scss',\n shadow: true,\n})\nexport class Layout {\n /**\n * Variant of the layout\n */\n @Prop() variant: 'default' | 'login' | 'office' = 'default';\n\n render() {\n return (\n <Host class={`p-layout variant-${this.variant}`}>\n <div class=\"topbar\">\n <slot name=\"topbar\" />\n </div>\n <div class=\"sidebar\">\n <slot name=\"sidebar\" />\n </div>\n <div class=\"content\">\n <div class=\"inner-content\">\n <slot name=\"content\" />\n </div>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-layout.entry.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,0oHAA0oH;;MCOxpH,MAAM;;;mBAIgC,SAAS;;EAE3D,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,oBAAoB,IAAI,CAAC,OAAO,EAAE,IAC9C,WAAK,KAAK,EAAC,QAAQ,IAClB,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,YAAM,IAAI,EAAC,SAAS,GAAG,CAClB,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,WAAK,KAAK,EAAC,eAAe,IACzB,YAAM,IAAI,EAAC,SAAS,GAAG,CAClB,CACD,CACA,EACN;GACF;;;;;;","names":[],"sources":["src/components/atoms/layout/layout.component.scss?tag=p-layout&encapsulation=shadow","src/components/atoms/layout/layout.component.tsx"],"sourcesContent":[":host {\n\t@apply grid h-screen w-screen content-start overflow-hidden;\n\n\tgrid-template-columns: 1fr;\n\tgrid-template-rows: repeat(1fr, 3);\n\tgap: 0;\n\tgrid-template-areas:\n\t\t'sidebar'\n\t\t'topbar'\n\t\t'content';\n\n\t@screen desktop-xs {\n\t\tgrid-template-columns: auto 1fr;\n\t\tgrid-template-rows: auto 1fr;\n\t\tgrid-template-areas:\n\t\t\t'topbar topbar'\n\t\t\t'sidebar content';\n\t}\n\n\t.topbar,\n\t.sidebar,\n\t.content {\n\t\t@apply self-start;\n\t}\n\n\t.topbar {\n\t\tgrid-area: topbar;\n\n\t\t@apply sticky w-full;\n\t\t@apply order-2 desktop-sm:order-1;\n\t}\n\n\t.sidebar {\n\t\tgrid-area: sidebar;\n\n\t\t@apply box-border flex h-full;\n\t\t@apply w-sidebar-mobile desktop-sm:w-sidebar-desktop;\n\t\t@apply order-1 desktop-sm:order-2;\n\t}\n\n\t.content {\n\t\tgrid-area: content;\n\n\t\t@apply relative flex h-full flex-col overflow-y-auto overflow-x-hidden;\n\t\t@apply order-3;\n\n\t\tpadding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom)\n\t\t\tenv(safe-area-inset-left);\n\n\t\t.inner-content {\n\t\t\t@apply relative pb-24;\n\n\t\t\t@apply px-content-mobile-x py-content-mobile-y;\n\t\t\t@apply desktop-xs:px-content-desktop-x desktop-xs:py-content-desktop-y;\n\n\t\t\t@apply desktop-xs:w-content-desktop-xs desktop-sm:w-content-desktop-sm desktop:w-content-desktop desktop-lg:w-content-desktop-lg desktop-xl:w-content-desktop-xl;\n\t\t}\n\t}\n}\n\n:host(.variant-default) {\n\t.content {\n\t\t@apply flex-1;\n\t}\n}\n\n:host(.variant-login) {\n\tgrid-template-areas:\n\t\t'topbar topbar'\n\t\t'content content';\n\n\t@screen desktop-xs {\n\t\tgrid-template-areas:\n\t\t\t'topbar topbar'\n\t\t\t'content sidebar';\n\t}\n\n\t.sidebar {\n\t\t@apply hidden w-unset desktop-xs:flex;\n\t\t@apply order-3 p-2;\n\t\t@apply flex-1 overflow-hidden;\n\n\t\t.inner-content {\n\t\t\t@apply p-2;\n\t\t}\n\t}\n\n\t.content {\n\t\t@apply order-3 desktop-xs:order-2;\n\t\t@apply items-center desktop-xs:justify-center;\n\n\t\t.inner-content {\n\t\t\t@apply box-border;\n\t\t\t@apply desktop-xs:px-18 desktop-xs:py-0;\n\t\t\t@apply w-full tablet:w-content-desktop-login;\n\n\t\t\t@apply px-content-mobile-x py-content-mobile-y;\n\t\t\tpadding-top: calc(env(safe-area-inset-top) + 3.5rem);\n\n\t\t\t@screen desktop-xs {\n\t\t\t\t@apply pt-content-mobile-y;\n\t\t\t}\n\t\t}\n\t}\n}\n\n:host(.variant-office) {\n\t.sidebar {\n\t\t@apply desktop-sm:w-sidebar-office-desktop;\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-layout',\n\tstyleUrl: 'layout.component.scss',\n\tshadow: true,\n})\nexport class Layout {\n\t/**\n\t * Variant of the layout\n\t */\n\t@Prop() variant: 'default' | 'login' | 'office' = 'default';\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={`p-layout variant-${this.variant}`}>\n\t\t\t\t<div class=\"topbar\">\n\t\t\t\t\t<slot name=\"topbar\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"sidebar\">\n\t\t\t\t\t<slot name=\"sidebar\" />\n\t\t\t\t</div>\n\t\t\t\t<div class=\"content\">\n\t\t\t\t\t<div class=\"inner-content\">\n\t\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.js","mappings":";;AAAA,MAAM,qBAAqB,GAAG,s7BAAs7B;;MCOv8B,SAAS;;;mBAIqB,SAAS;mBAKrB,KAAK;mBAKL,IAAI;;EAE/B,MAAM;IACF,QACI,EAAC,IAAI,IACD,KAAK,EAAE,wBAAwB,IAAI,CAAC,OAAO,IACvC,IAAI,CAAC,OAAO,IAAI,YACpB,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,YAAY,EAAE,IAEnC,eAAQ,CACL,EACT;GACL;;;;ACjCL,MAAM,0BAA0B,GAAG,ygFAAygF;;ACE5iF;AACA;AACA;AACA;AACA;AAEA,MAAM,UAAU,GAAG;EACf,EAAE,EAAE,aAAa;EACjB,EAAE,EAAE,oBAAoB;EACxB,EAAE,EAAE,kBAAkB;EACtB,EAAE,EAAE,oBAAoB;EACxB,EAAE,EAAE,oBAAoB;CAC3B,CAAC;MAKW,cAAc;;;gBAImB,IAAI;mBAKnB,KAAK;;EAEhC,MAAM;IACF,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAExC,QACI,EAAC,IAAI,IACD,KAAK,EAAE,qBACH,IAAI,CAAC,OAAO,IAAI,SACpB,IAAI,SAAS,EAAE,IAEf,eAAQ,CACL,EACT;GACL;;;;AC1CL,MAAM,uBAAuB,GAAG,8sBAA8sB;;MCOjuB,WAAW;;;;EACpB,MAAM;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB,IACxB,iBAAW,KAAK,EAAC,kCAAkC,GAAG,EAEtD,eAAQ,CACL,EACT;GACL;;;;AChBL,MAAM,uBAAuB,GAAG,29BAA29B;;MCO9+B,WAAW;;;;qBAIA,IAAI;;EASxB,MAAM;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB,IACxB,gBACI,eAAQ,CACL,EAEN,IAAI,CAAC,SAAS,KACX,gBACI,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,EACpC,IAAI,EAAC,OAAO,GACJ,CACf,CACE,EACT;GACL;;;;;;","names":[],"sources":["src/components/atoms/modal-body/modal-body.component.scss?tag=p-modal-body&encapsulation=shadow","src/components/atoms/modal-body/modal-body.component.tsx","src/components/atoms/modal-container/modal-container.component.scss?tag=p-modal-container","src/components/atoms/modal-container/modal-container.component.tsx","src/components/atoms/modal-footer/modal-footer.component.scss?tag=p-modal-footer&encapsulation=shadow","src/components/atoms/modal-footer/modal-footer.component.tsx","src/components/atoms/modal-header/modal-header.component.scss?tag=p-modal-header&encapsulation=shadow","src/components/atoms/modal-header/modal-header.component.tsx"],"sourcesContent":[":host {\n @apply bg-white;\n @apply px-6 py-6 tablet:px-10 desktop-xs:px-14;\n}\n\n:host(.variant-table) {\n @apply px-6;\n}\n\n:host(.is-rounded) {\n @apply rounded-b-none desktop-xs:rounded-b-xxlarge;\n}\n\n:host(.no-padding) {\n @apply p-0;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'p-modal-body',\n styleUrl: 'modal-body.component.scss',\n shadow: true,\n})\nexport class ModalBody {\n /**\n * The variant of the modal body\n */\n @Prop() variant: 'default' | 'table' = 'default';\n\n /**\n * Wether the modal body should be rounded at the bottom\n */\n @Prop() rounded: boolean = false;\n\n /**\n * Wether the body should have padding\n */\n @Prop() padding: boolean = true;\n\n render() {\n return (\n <Host\n class={`p-modal-body variant-${this.variant} ${\n this.rounded && 'is-rounded'\n } ${!this.padding && 'no-padding'}`}\n >\n <slot />\n </Host>\n );\n }\n}\n","p-modal-container {\n @apply flex flex-col w-full tablet:w-auto z-modal;\n @apply rounded-b-none rounded-t-xxlarge desktop-xs:rounded-b-xxlarge;\n\n @apply animate-slide-in-bottom desktop-xs:animate-slide-in-bottom-small #{!important};\n\n @apply shadow-4 #{!important};\n\n &.closing {\n @apply animate-slide-out-bottom desktop-xs:animate-slide-out-bottom-small #{!important};\n }\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n// $modal-xs: 20rem;\n// $modal-sm: 33.5rem;\n// $modal-md: 38rem;\n// $modal-lg: 47.5rem;\n// $modal-xl: 57.5rem;\n\nconst modalSizes = {\n xs: 'tablet:w-80',\n sm: 'tablet:w-[33.5rem]',\n md: 'tablet:w-[38rem]',\n lg: 'tablet:w-[47.5rem]',\n xl: 'tablet:w-[57.5rem]',\n};\n@Component({\n tag: 'p-modal-container',\n styleUrl: 'modal-container.component.scss',\n})\nexport class ModalContainer {\n /**\n * The size of the modal container\n */\n @Prop() size: 'sm' | 'md' | 'lg' | 'xl' = 'md';\n\n /**\n * Wether the container is closing\n */\n @Prop() closing: boolean = false;\n\n render() {\n const sizeClass = modalSizes[this.size];\n\n return (\n <Host\n class={`p-modal-container ${\n this.closing && 'closing'\n } ${sizeClass}`}\n >\n <slot />\n </Host>\n );\n }\n}\n",":host {\n @apply bg-white;\n @apply flex flex-col;\n @apply pb-6 px-6;\n @apply rounded-b-none desktop-xs:rounded-b-xxlarge;\n}\n","import { Component, h, Host } from '@stencil/core';\n\n@Component({\n tag: 'p-modal-footer',\n styleUrl: 'modal-footer.component.scss',\n shadow: true,\n})\nexport class ModalFooter {\n render() {\n return (\n <Host class=\"p-modal-footer\">\n <p-divider class=\"mb-6 mt-0 hidden desktop-xs:flex\" />\n\n <slot />\n </Host>\n );\n }\n}\n",":host {\n @apply bg-mystic rounded-t-xxlarge;\n @apply flex justify-between items-center;\n @apply p-4 desktop-xs:p-6;\n\n @apply text-storm-dark text-xl font-semibold;\n @apply desktop-xs:text-3xl desktop-xs:font-bold;\n}\n","import { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'p-modal-header',\n styleUrl: 'modal-header.component.scss',\n shadow: true,\n})\nexport class ModalHeader {\n /**\n * Wether to show the close button on mobile\n */\n @Prop() showClose = true;\n\n /**\n * Close click event\n */\n @Event({\n bubbles: false\n }) close: EventEmitter<MouseEvent>;\n\n render() {\n return (\n <Host class=\"p-modal-header\">\n <span>\n <slot />\n </span>\n\n {this.showClose && (\n <p-button\n variant=\"secondary\"\n icon=\"negative\"\n iconOnly={true}\n onClick={(ev) => this.close.emit(ev)}\n size=\"small\"\n ></p-button>\n )}\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-modal-body.p-modal-container.p-modal-footer.p-modal-header.entry.js","mappings":";;AAAA,MAAM,qBAAqB,GAAG,s7BAAs7B;;MCOv8B,SAAS;;;mBAIkB,SAAS;mBAKrB,KAAK;mBAKL,IAAI;;EAE/B,MAAM;IACL,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,wBAAwB,IAAI,CAAC,OAAO,IAC1C,IAAI,CAAC,OAAO,IAAI,YACjB,IAAI,CAAC,IAAI,CAAC,OAAO,IAAI,YAAY,EAAE,IAEnC,eAAQ,CACF,EACN;GACF;;;;ACjCF,MAAM,0BAA0B,GAAG,ygFAAygF;;ACE5iF;AACA;AACA;AACA;AACA;AAEA,MAAM,UAAU,GAAG;EAClB,EAAE,EAAE,aAAa;EACjB,EAAE,EAAE,oBAAoB;EACxB,EAAE,EAAE,kBAAkB;EACtB,EAAE,EAAE,oBAAoB;EACxB,EAAE,EAAE,oBAAoB;CACxB,CAAC;MAKW,cAAc;;;gBAIgB,IAAI;mBAKnB,KAAK;;EAEhC,MAAM;IACL,MAAM,SAAS,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAExC,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,qBACN,IAAI,CAAC,OAAO,IAAI,SACjB,IAAI,SAAS,EAAE,IAEf,eAAQ,CACF,EACN;GACF;;;;AC1CF,MAAM,uBAAuB,GAAG,8sBAA8sB;;MCOjuB,WAAW;;;;EACvB,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB,IAC3B,iBAAW,KAAK,EAAC,kCAAkC,GAAG,EAEtD,eAAQ,CACF,EACN;GACF;;;;AChBF,MAAM,uBAAuB,GAAG,29BAA29B;;MCO9+B,WAAW;;;;qBAIH,IAAI;;EAUxB,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,gBAAgB,IAC3B,gBACC,eAAQ,CACF,EAEN,IAAI,CAAC,SAAS,KACd,gBACC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,IAAI,EACd,OAAO,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,EACpC,IAAI,EAAC,OAAO,GACD,CACZ,CACK,EACN;GACF;;;;;;","names":[],"sources":["src/components/atoms/modal-body/modal-body.component.scss?tag=p-modal-body&encapsulation=shadow","src/components/atoms/modal-body/modal-body.component.tsx","src/components/atoms/modal-container/modal-container.component.scss?tag=p-modal-container","src/components/atoms/modal-container/modal-container.component.tsx","src/components/atoms/modal-footer/modal-footer.component.scss?tag=p-modal-footer&encapsulation=shadow","src/components/atoms/modal-footer/modal-footer.component.tsx","src/components/atoms/modal-header/modal-header.component.scss?tag=p-modal-header&encapsulation=shadow","src/components/atoms/modal-header/modal-header.component.tsx"],"sourcesContent":[":host {\n\t@apply bg-white;\n\t@apply px-6 py-6 tablet:px-10 desktop-xs:px-14;\n}\n\n:host(.variant-table) {\n\t@apply px-6;\n}\n\n:host(.is-rounded) {\n\t@apply rounded-b-none desktop-xs:rounded-b-xxlarge;\n}\n\n:host(.no-padding) {\n\t@apply p-0;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-modal-body',\n\tstyleUrl: 'modal-body.component.scss',\n\tshadow: true,\n})\nexport class ModalBody {\n\t/**\n\t * The variant of the modal body\n\t */\n\t@Prop() variant: 'default' | 'table' = 'default';\n\n\t/**\n\t * Wether the modal body should be rounded at the bottom\n\t */\n\t@Prop() rounded: boolean = false;\n\n\t/**\n\t * Wether the body should have padding\n\t */\n\t@Prop() padding: boolean = true;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-modal-body variant-${this.variant} ${\n\t\t\t\t\tthis.rounded && 'is-rounded'\n\t\t\t\t} ${!this.padding && 'no-padding'}`}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n","p-modal-container {\n\t@apply flex flex-col w-full tablet:w-auto z-modal;\n\t@apply rounded-b-none rounded-t-xxlarge desktop-xs:rounded-b-xxlarge;\n\n\t@apply animate-slide-in-bottom desktop-xs:animate-slide-in-bottom-small #{!important};\n\n\t@apply shadow-4 #{!important};\n\n\t&.closing {\n\t\t@apply animate-slide-out-bottom desktop-xs:animate-slide-out-bottom-small #{!important};\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n// $modal-xs: 20rem;\n// $modal-sm: 33.5rem;\n// $modal-md: 38rem;\n// $modal-lg: 47.5rem;\n// $modal-xl: 57.5rem;\n\nconst modalSizes = {\n\txs: 'tablet:w-80',\n\tsm: 'tablet:w-[33.5rem]',\n\tmd: 'tablet:w-[38rem]',\n\tlg: 'tablet:w-[47.5rem]',\n\txl: 'tablet:w-[57.5rem]',\n};\n@Component({\n\ttag: 'p-modal-container',\n\tstyleUrl: 'modal-container.component.scss',\n})\nexport class ModalContainer {\n\t/**\n\t * The size of the modal container\n\t */\n\t@Prop() size: 'sm' | 'md' | 'lg' | 'xl' = 'md';\n\n\t/**\n\t * Wether the container is closing\n\t */\n\t@Prop() closing: boolean = false;\n\n\trender() {\n\t\tconst sizeClass = modalSizes[this.size];\n\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-modal-container ${\n\t\t\t\t\tthis.closing && 'closing'\n\t\t\t\t} ${sizeClass}`}\n\t\t\t>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n",":host {\n\t@apply bg-white;\n\t@apply flex flex-col;\n\t@apply pb-6 px-6;\n\t@apply rounded-b-none desktop-xs:rounded-b-xxlarge;\n}\n","import { Component, h, Host } from '@stencil/core';\n\n@Component({\n\ttag: 'p-modal-footer',\n\tstyleUrl: 'modal-footer.component.scss',\n\tshadow: true,\n})\nexport class ModalFooter {\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-modal-footer\">\n\t\t\t\t<p-divider class=\"mb-6 mt-0 hidden desktop-xs:flex\" />\n\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n",":host {\n\t@apply bg-mystic rounded-t-xxlarge;\n\t@apply flex justify-between items-center;\n\t@apply p-4 desktop-xs:p-6;\n\n\t@apply text-storm-dark text-xl font-semibold;\n\t@apply desktop-xs:text-3xl desktop-xs:font-bold;\n}\n","import { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-modal-header',\n\tstyleUrl: 'modal-header.component.scss',\n\tshadow: true,\n})\nexport class ModalHeader {\n\t/**\n\t * Wether to show the close button on mobile\n\t */\n\t@Prop() showClose = true;\n\n\t/**\n\t * Close click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tclose: EventEmitter<MouseEvent>;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-modal-header\">\n\t\t\t\t<span>\n\t\t\t\t\t<slot />\n\t\t\t\t</span>\n\n\t\t\t\t{this.showClose && (\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\ticon=\"negative\"\n\t\t\t\t\t\ticonOnly={true}\n\t\t\t\t\t\tonClick={(ev) => this.close.emit(ev)}\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t></p-button>\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"p-modal.entry.js","mappings":";;MAea,KAAK;;;;;IAwEN,mBAAc,GAAG,KAAK,CAAC;IACvB,mBAAc,GAAG,KAAK,CAAC;gBArEW,IAAI;mBAKP,SAAS;;gBAUxB,KAAK;qBAKA,KAAK;qBAKd,IAAI;4BAKG,KAAK;8BAKH,IAAI;sBAKH,IAAI;mBAKP,IAAI;oBA0BH,KAAK;;EAEjC,iBAAiB;IACb,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC1C,0BAA0B,CAC7B,CAAC;IACF,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC1C,0BAA0B,CAC7B,CAAC;GACL;EAED,MAAM;;IACF,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;MACZ,OAAO;KACV;IAED,MAAM,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,CAAC;IAC7C,MAAM,WAAW,GAAG,YAAM,IAAI,EAAC,SAAS,GAAG,CAAC;IAC5C,MAAM,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,CAAC;IAE7C,QACI,EAAC,IAAI,IAAC,KAAK,EAAC,SAAS,IACjB,kBACI,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,MAAM,CAAC,EACjD,OAAO,EAAE,IAAI,CAAC,QAAQ,EACtB,UAAU,EAAE,IAAI,CAAC,UAAU,IAE3B,yBAAmB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,QAAQ,IACrD,CAAC,CAAA,MAAA,IAAI,CAAC,MAAM,0CAAE,MAAM,KAAI,IAAI,CAAC,cAAc,MACxC,sBACI,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,OAAO,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,IAErC,IAAI,CAAC,cAAc;QACd,aAAa;QACb,IAAI,CAAC,MAAM,CACJ,CACpB,EACD,oBACI,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,OAAO,EAAE,CAAC,IAAI,CAAC,cAAc,EAC7B,OAAO,EAAE,IAAI,CAAC,OAAO,IAEpB,WAAW,CACD,EACd,IAAI,CAAC,cAAc,KAChB,0BAAiB,aAAa,CAAkB,CACnD,CACe,CACX,CACV,EACT;GACL;EAEO,cAAc,CAAC,EAAc;IACjC,IAAI,CAAC,IAAI,CAAC,kBAAkB,EAAE;MAC1B,OAAO;KACV;IAED,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;GAClB;EAEM,KAAK,CAAC,EAAc;IACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAE3B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;IAErB,UAAU,CAAC;MACP,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC;MAClB,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;MAEtB,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;KACtB,EAAE,GAAG,CAAC,CAAC;GACX;;;;;;","names":[],"sources":["src/components/organisms/modal/modal.component.tsx"],"sourcesContent":["import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n State,\n} from '@stencil/core';\n\n@Component({\n tag: 'p-modal',\n shadow: true,\n})\nexport class Modal {\n /**\n * The size of the modal container\n */\n @Prop() size: 'sm' | 'md' | 'lg' | 'xl' = 'md';\n\n /**\n * The variant of the modal body\n */\n @Prop() variant: 'default' | 'table' = 'default';\n\n /**\n * The Header of the modal\n */\n @Prop() header?: string;\n\n /**\n * Wether to show the modal or not\n */\n @Prop() show: boolean = false;\n\n /**\n * Wether to apply blur to the backdrop\n */\n @Prop() applyBlur: boolean = false;\n\n /**\n * Wether to show the close button in the header\n */\n @Prop() showClose = true;\n\n /**\n * Wether to show the footer on mobile\n */\n @Prop() showMobileFooter = false;\n\n /**\n * Wether to hide the modal when the backdrop is clicked\n */\n @Prop() backdropClickClose = true;\n\n /**\n * Wether we should scroll lock the body\n */\n @Prop() scrollLock: boolean = true;\n\n /**\n * Wether the body should have padding\n */\n @Prop() padding: boolean = true;\n\n /**\n * Close click event\n */\n @Event({\n bubbles: false,\n })\n closeClicked: EventEmitter<MouseEvent>;\n\n /**\n * Closed event\n */\n @Event({\n bubbles: false,\n })\n closed: EventEmitter<null>;\n\n /**\n * The host element\n */\n @Element() private _el: HTMLElement;\n\n private _hasFooterSlot = false;\n private _hasHeaderSlot = false;\n\n @State() private _closing = false;\n\n componentWillLoad() {\n this._hasFooterSlot = !!this._el.querySelector(\n ':scope > [slot=\"footer\"]'\n );\n this._hasHeaderSlot = !!this._el.querySelector(\n ':scope > [slot=\"header\"]'\n );\n }\n\n render() {\n if (!this.show) {\n return;\n }\n\n const headerContent = <slot name=\"header\" />;\n const bodyContent = <slot name=\"content\" />;\n const footerContent = <slot name=\"footer\" />;\n\n return (\n <Host class=\"p-modal\">\n <p-backdrop\n applyBlur={this.applyBlur}\n onClicked={(ev) => this._backdropClick(ev.detail)}\n closing={this._closing}\n scrollLock={this.scrollLock}\n >\n <p-modal-container size={this.size} closing={this._closing}>\n {(this.header?.length || this._hasHeaderSlot) && (\n <p-modal-header\n showClose={this.showClose}\n onClose={(ev) => this.close(ev.detail)}\n >\n {this._hasHeaderSlot\n ? headerContent\n : this.header}\n </p-modal-header>\n )}\n <p-modal-body\n variant={this.variant}\n rounded={!this._hasFooterSlot}\n padding={this.padding}\n >\n {bodyContent}\n </p-modal-body>\n {this._hasFooterSlot && (\n <p-modal-footer>{footerContent}</p-modal-footer>\n )}\n </p-modal-container>\n </p-backdrop>\n </Host>\n );\n }\n\n private _backdropClick(ev: MouseEvent) {\n if (!this.backdropClickClose) {\n return;\n }\n\n this.close(ev);\n }\n\n public close(ev: MouseEvent) {\n this.closeClicked.emit(ev);\n\n this._closing = true;\n\n setTimeout(() => {\n this.show = false;\n this._closing = false;\n\n this.closed.emit();\n }, 550);\n }\n}\n"],"version":3}
1
+ {"file":"p-modal.entry.js","mappings":";;MAea,KAAK;;;;;IAwET,mBAAc,GAAG,KAAK,CAAC;IACvB,mBAAc,GAAG,KAAK,CAAC;gBArEW,IAAI;mBAKP,SAAS;;gBAUxB,KAAK;qBAKA,KAAK;qBAKd,IAAI;4BAKG,KAAK;8BAKH,IAAI;sBAKH,IAAI;mBAKP,IAAI;oBA0BH,KAAK;;EAEjC,iBAAiB;IAChB,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC7C,0BAA0B,CAC1B,CAAC;IACF,IAAI,CAAC,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC7C,0BAA0B,CAC1B,CAAC;GACF;EAED,MAAM;;IACL,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;MACf,OAAO;KACP;IAED,MAAM,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,CAAC;IAC7C,MAAM,WAAW,GAAG,YAAM,IAAI,EAAC,SAAS,GAAG,CAAC;IAC5C,MAAM,aAAa,GAAG,YAAM,IAAI,EAAC,QAAQ,GAAG,CAAC;IAE7C,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,SAAS,IACpB,kBACC,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,SAAS,EAAE,CAA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Component,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tProp,\n\tState,\n} from '@stencil/core';\n\n@Component({\n\ttag: 'p-modal',\n\tshadow: true,\n})\nexport class Modal {\n\t/**\n\t * The size of the modal container\n\t */\n\t@Prop() size: 'sm' | 'md' | 'lg' | 'xl' = 'md';\n\n\t/**\n\t * The variant of the modal body\n\t */\n\t@Prop() variant: 'default' | 'table' = 'default';\n\n\t/**\n\t * The Header of the modal\n\t */\n\t@Prop() header?: string;\n\n\t/**\n\t * Wether to show the modal or not\n\t */\n\t@Prop() show: boolean = false;\n\n\t/**\n\t * Wether to apply blur to the backdrop\n\t */\n\t@Prop() applyBlur: boolean = false;\n\n\t/**\n\t * Wether to show the close button in the header\n\t */\n\t@Prop() showClose = true;\n\n\t/**\n\t * Wether to show the footer on mobile\n\t */\n\t@Prop() showMobileFooter = false;\n\n\t/**\n\t * Wether to hide the modal when the backdrop is clicked\n\t */\n\t@Prop() backdropClickClose = true;\n\n\t/**\n\t * Wether we should scroll lock the body\n\t */\n\t@Prop() scrollLock: boolean = true;\n\n\t/**\n\t * Wether the body should have padding\n\t */\n\t@Prop() padding: boolean = true;\n\n\t/**\n\t * Close click event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tcloseClicked: EventEmitter<MouseEvent>;\n\n\t/**\n\t * Closed event\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tclosed: EventEmitter<null>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _hasFooterSlot = false;\n\tprivate _hasHeaderSlot = false;\n\n\t@State() private _closing = false;\n\n\tcomponentWillLoad() {\n\t\tthis._hasFooterSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"footer\"]'\n\t\t);\n\t\tthis._hasHeaderSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"header\"]'\n\t\t);\n\t}\n\n\trender() {\n\t\tif (!this.show) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst headerContent = <slot name=\"header\" />;\n\t\tconst bodyContent = <slot name=\"content\" />;\n\t\tconst footerContent = <slot name=\"footer\" />;\n\n\t\treturn (\n\t\t\t<Host class=\"p-modal\">\n\t\t\t\t<p-backdrop\n\t\t\t\t\tapplyBlur={this.applyBlur}\n\t\t\t\t\tonClicked={(ev) => this._backdropClick(ev.detail)}\n\t\t\t\t\tclosing={this._closing}\n\t\t\t\t\tscrollLock={this.scrollLock}\n\t\t\t\t>\n\t\t\t\t\t<p-modal-container size={this.size} closing={this._closing}>\n\t\t\t\t\t\t{(this.header?.length || this._hasHeaderSlot) && (\n\t\t\t\t\t\t\t<p-modal-header\n\t\t\t\t\t\t\t\tshowClose={this.showClose}\n\t\t\t\t\t\t\t\tonClose={(ev) => this.close(ev.detail)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this._hasHeaderSlot\n\t\t\t\t\t\t\t\t\t? headerContent\n\t\t\t\t\t\t\t\t\t: this.header}\n\t\t\t\t\t\t\t</p-modal-header>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<p-modal-body\n\t\t\t\t\t\t\tvariant={this.variant}\n\t\t\t\t\t\t\trounded={!this._hasFooterSlot}\n\t\t\t\t\t\t\tpadding={this.padding}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{bodyContent}\n\t\t\t\t\t\t</p-modal-body>\n\t\t\t\t\t\t{this._hasFooterSlot && (\n\t\t\t\t\t\t\t<p-modal-footer>{footerContent}</p-modal-footer>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</p-modal-container>\n\t\t\t\t</p-backdrop>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _backdropClick(ev: MouseEvent) {\n\t\tif (!this.backdropClickClose) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.close(ev);\n\t}\n\n\tpublic close(ev: MouseEvent) {\n\t\tthis.closeClicked.emit(ev);\n\n\t\tthis._closing = true;\n\n\t\tsetTimeout(() => {\n\t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AI,EAAC,QAAQ,GAAG,CACpB,CACH,EACT;GACL;EAGD,iBAAiB;IACb,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;GAC1B;EAGD,gBAAgB;IACZ,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;GACzB;;;;;;","names":[],"sources":["src/components/organisms/navbar/navbar.component.scss?tag=p-navbar&encapsulation=shadow","src/components/organisms/navbar/navbar.component.tsx"],"sourcesContent":["@import '../../../style/mixins';\n\n:host {\n @apply w-full max-h-screen-safe;\n @apply desktop-xs:w-60;\n\n .sidebar,\n .sidebar .company,\n .sidebar .content,\n .sidebar .user,\n .userbar {\n @apply flex w-full flex-col;\n }\n\n .sidebar,\n .top-bar {\n @apply bg-white;\n @apply border-0 border-solid border-mystic-dark #{!important};\n }\n\n .sidebar {\n @apply fixed top-0 left-0 z-navbar h-screen w-60 bg-white;\n @apply desktop-xs:relative desktop-xs:h-full desktop-xs:w-full;\n @apply gap-6;\n\n @apply will-change-transform;\n @apply -translate-x-full transform-gpu desktop-xs:translate-x-0;\n\n @apply py-4;\n\n padding-top: calc(env(safe-area-inset-top, 0) + 1rem);\n\n @apply border-r #{!important};\n\n @apply transition-all;\n\n .company,\n .content,\n .user,\n .header {\n @apply px-4;\n }\n\n .header {\n @apply flex w-full items-center justify-between;\n @apply desktop-xs:hidden;\n }\n\n .content {\n @apply overflow-y-auto;\n\n @include scrollbarY();\n }\n\n .user {\n @apply mt-auto hidden;\n @apply desktop-xs:flex;\n }\n\n &.show {\n --tw-translate-x: env(safe-area-inset-left, 0);\n }\n }\n\n .top-bar {\n @apply flex w-full justify-between px-4 py-2;\n\n padding-top: calc(env(safe-area-inset-top, 0) + 0.5rem);\n height: calc(env(safe-area-inset-top, 0) + 3rem);\n\n @apply border-b #{!important};\n\n @apply desktop-xs:hidden;\n }\n\n p-backdrop {\n @apply hidden;\n\n &.show {\n @apply block;\n }\n }\n}\n","import { Component, h, Host, Listen, Prop, State } from '@stencil/core';\n\n@Component({\n tag: 'p-navbar',\n styleUrl: 'navbar.component.scss',\n shadow: true,\n})\nexport class Navbar {\n /**\n * The text to display for the close button\n */\n @Prop() closeText = 'Close';\n\n /**\n * The text to display for the menu button & sidebar title\n */\n @Prop() menuText = 'Menu';\n\n @State() private _showMenu = false;\n\n render() {\n return (\n <Host class=\"p-navbar\">\n <p-backdrop\n applyBlur={true}\n class={`z-navbar-backdrop desktop-xs:hidden ${\n this._showMenu && 'show'\n }`}\n onClicked={() => (this._showMenu = false)}\n ></p-backdrop>\n <div class={`sidebar ${this._showMenu && 'show'}`}>\n <div class=\"header\">\n <p class=\"text-xl m-0 font-semibold text-storm-dark\">\n {this.menuText}\n </p>\n\n <p-button\n variant=\"secondary\"\n icon=\"negative\"\n iconPosition=\"end\"\n size=\"small\"\n onClick={() => (this._showMenu = false)}\n >\n {this.closeText}\n </p-button>\n </div>\n <div class=\"company\">\n <slot name=\"company\" />\n </div>\n <div class=\"content\">\n <slot name=\"content\" />\n </div>\n\n <div class=\"user\">\n <slot name=\"user\" />\n </div>\n </div>\n\n <div class=\"top-bar\">\n <p-button\n variant=\"secondary\"\n icon=\"menu\"\n size=\"small\"\n onClick={() => (this._showMenu = true)}\n >\n {this.menuText}\n </p-button>\n\n <slot name=\"topbar\" />\n </div>\n </Host>\n );\n }\n\n @Listen('closeNavbar', { target: 'window' })\n handleCloseNavbar() {\n this._showMenu = false;\n }\n\n @Listen('openNavbar', { target: 'window' })\n handleOpenNavbar() {\n this._showMenu = true;\n }\n}\n"],"version":3}
1
+ {"file":"p-navbar.entry.js","mappings":";;AAAA,MAAM,kBAAkB,GAAG,w9IAAw9I;;MCOt+I,MAAM;;;qBAIE,OAAO;oBAKR,MAAM;qBAEI,KAAK;;EAElC,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAC,UAAU,IACrB,kBACC,SAAS,EAAE,IAAI,EACf,KAAK,EAAE,uCACN,IAAI,CAAC,SAAS,IAAI,MACnB,EAAE,EACF,SAAS,EAAE,OAAO,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,GAC5B,EACd,WAAK,KAAK,EAAE,WAAW,IAAI,CAAC,SAAS,IAAI,MAAM,EAAE,IAChD,WAAK,KAAK,EAAC,QAAQ,IAClB,SAAG,KAAK,EAAC,2CAA2C,IAClD,IAAI,CAAC,QAAQ,CACX,EAEJ,gBACC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,UAAU,EACf,YAAY,EAAC,KAAK,EAClB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,OAAO,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,IAEtC,IAAI,CAAC,SAAS,CACL,CACN,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,YAAM,IAAI,EAAC,SAAS,GAAG,CAClB,EACN,WAAK,KAAK,EAAC,SAAS,IACnB,YAAM,IAAI,EAAC,SAAS,GAAG,CAClB,EAEN,WAAK,KAAK,EAAC,MAAM,IAChB,YAAM,IAAI,EAAC,MAAM,GAAG,CACf,CACD,EAEN,WAAK,KAAK,EAAC,SAAS,IACnB,gBACC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,OAAO,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAErC,IAAI,CAAC,QAAQ,CACJ,EAEX,YAAM,IAAI,EAAC,QAAQ,GAAG,CACjB,CACA,EACN;GACF;EAGD,iBAAiB;IAChB,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;GACvB;EAGD,gBAAgB;IACf,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;GACtB;;;;;;","names":[],"sources":["src/components/organisms/navbar/navbar.component.scss?tag=p-navbar&encapsulation=shadow","src/components/organisms/navbar/navbar.component.tsx"],"sourcesContent":["@import '../../../style/mixins';\n\n:host {\n\t@apply w-full max-h-screen-safe;\n\t@apply desktop-xs:w-60;\n\n\t.sidebar,\n\t.sidebar .company,\n\t.sidebar .content,\n\t.sidebar .user,\n\t.userbar {\n\t\t@apply flex w-full flex-col;\n\t}\n\n\t.sidebar,\n\t.top-bar {\n\t\t@apply bg-white;\n\t\t@apply border-0 border-solid border-mystic-dark #{!important};\n\t}\n\n\t.sidebar {\n\t\t@apply fixed top-0 left-0 z-navbar h-screen w-60 bg-white;\n\t\t@apply desktop-xs:relative desktop-xs:h-full desktop-xs:w-full;\n\t\t@apply gap-6;\n\n\t\t@apply will-change-transform;\n\t\t@apply -translate-x-full transform-gpu desktop-xs:translate-x-0;\n\n\t\t@apply py-4;\n\n\t\tpadding-top: calc(env(safe-area-inset-top, 0) + 1rem);\n\n\t\t@apply border-r #{!important};\n\n\t\t@apply transition-all;\n\n\t\t.company,\n\t\t.content,\n\t\t.user,\n\t\t.header {\n\t\t\t@apply px-4;\n\t\t}\n\n\t\t.header {\n\t\t\t@apply flex w-full items-center justify-between;\n\t\t\t@apply desktop-xs:hidden;\n\t\t}\n\n\t\t.content {\n\t\t\t@apply overflow-y-auto;\n\n\t\t\t@include scrollbarY();\n\t\t}\n\n\t\t.user {\n\t\t\t@apply mt-auto hidden;\n\t\t\t@apply desktop-xs:flex;\n\t\t}\n\n\t\t&.show {\n\t\t\t--tw-translate-x: env(safe-area-inset-left, 0);\n\t\t}\n\t}\n\n\t.top-bar {\n\t\t@apply flex w-full justify-between px-4 py-2;\n\n\t\tpadding-top: calc(env(safe-area-inset-top, 0) + 0.5rem);\n\t\theight: calc(env(safe-area-inset-top, 0) + 3rem);\n\n\t\t@apply border-b #{!important};\n\n\t\t@apply desktop-xs:hidden;\n\t}\n\n\tp-backdrop {\n\t\t@apply hidden;\n\n\t\t&.show {\n\t\t\t@apply block;\n\t\t}\n\t}\n}\n","import { Component, h, Host, Listen, Prop, State } from '@stencil/core';\n\n@Component({\n\ttag: 'p-navbar',\n\tstyleUrl: 'navbar.component.scss',\n\tshadow: true,\n})\nexport class Navbar {\n\t/**\n\t * The text to display for the close button\n\t */\n\t@Prop() closeText = 'Close';\n\n\t/**\n\t * The text to display for the menu button & sidebar title\n\t */\n\t@Prop() menuText = 'Menu';\n\n\t@State() private _showMenu = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-navbar\">\n\t\t\t\t<p-backdrop\n\t\t\t\t\tapplyBlur={true}\n\t\t\t\t\tclass={`z-navbar-backdrop desktop-xs:hidden ${\n\t\t\t\t\t\tthis._showMenu && 'show'\n\t\t\t\t\t}`}\n\t\t\t\t\tonClicked={() => (this._showMenu = false)}\n\t\t\t\t></p-backdrop>\n\t\t\t\t<div class={`sidebar ${this._showMenu && 'show'}`}>\n\t\t\t\t\t<div class=\"header\">\n\t\t\t\t\t\t<p class=\"text-xl m-0 font-semibold text-storm-dark\">\n\t\t\t\t\t\t\t{this.menuText}\n\t\t\t\t\t\t</p>\n\n\t\t\t\t\t\t<p-button\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\ticon=\"negative\"\n\t\t\t\t\t\t\ticonPosition=\"end\"\n\t\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\t\tonClick={() => (this._showMenu = false)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{this.closeText}\n\t\t\t\t\t\t</p-button>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"company\">\n\t\t\t\t\t\t<slot name=\"company\" />\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"content\">\n\t\t\t\t\t\t<slot name=\"content\" />\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div class=\"user\">\n\t\t\t\t\t\t<slot name=\"user\" />\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\n\t\t\t\t<div class=\"top-bar\">\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\ticon=\"menu\"\n\t\t\t\t\t\tsize=\"small\"\n\t\t\t\t\t\tonClick={() => (this._showMenu = true)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.menuText}\n\t\t\t\t\t</p-button>\n\n\t\t\t\t\t<slot name=\"topbar\" />\n\t\t\t\t</div>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('closeNavbar', { target: 'window' })\n\thandleCloseNavbar() {\n\t\tthis._showMenu = false;\n\t}\n\n\t@Listen('openNavbar', { target: 'window' })\n\thandleOpenNavbar() {\n\t\tthis._showMenu = true;\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"p-navigation-item.entry.js","mappings":";;AAAA,MAAM,0BAA0B,GAAG,szCAAszC;;MCQ50C,cAAc;;;kBAIG,KAAK;;;;;;EAsB/B,MAAM;IACF,QACI,EAAC,IAAI,IAAC,KAAK,EAAE,qBAAqB,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,IACvD,SAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IAClC,IAAI,CAAC,IAAI,IAAI,cAAQ,OAAO,EAAE,IAAI,CAAC,IAAI,GAAI,EAC5C,YAAM,KAAK,EAAE,IAAI,CAAC,OAAO,IAAI,aAAa,IACtC,eAAQ,CACL,EACN,IAAI,CAAC,OAAO,KACT,iBAAW,OAAO,EAAC,UAAU,IAAE,IAAI,CAAC,OAAO,CAAa,CAC3D,CACD,CACD,EACT;GACL;;;;;;","names":[],"sources":["src/components/molecules/navigation-item/navigation-item.component.scss?tag=p-navigation-item&encapsulation=shadow","src/components/molecules/navigation-item/navigation-item.component.tsx"],"sourcesContent":[":host {\n @apply w-full inline-block mb-1;\n\n > a {\n @apply w-full h-8 px-2 cursor-pointer rounded-large no-underline;\n @apply flex items-center gap-2;\n @apply text-storm font-semibold;\n\n @apply hover:bg-indigo-light;\n\n > p-icon {\n @apply text-storm;\n }\n\n > p-counter {\n @apply ml-auto;\n }\n }\n}\n\n:host(.active) {\n > a {\n @apply text-indigo bg-indigo-light;\n\n > p-icon {\n @apply text-indigo;\n }\n }\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\nimport { IconVariant } from '../../atoms/icon/icon.component';\n\n@Component({\n tag: 'p-navigation-item',\n styleUrl: 'navigation-item.component.scss',\n shadow: true,\n})\nexport class NavigationItem {\n /**\n * Wether the navigation item is active\n */\n @Prop() active: boolean = false;\n\n /**\n * Icon of the navigation item\n */\n @Prop() icon: IconVariant;\n\n /**\n * Icon of the navigation item\n */\n @Prop() counter: number | string;\n\n /**\n * The href of the navigation item\n */\n @Prop() href: string;\n\n /**\n * The target of the navigation item\n */\n @Prop() target: string;\n\n render() {\n return (\n <Host class={`p-navigation-item ${this.active && 'active'}`}>\n <a href={this.href} target={this.target}>\n {this.icon && <p-icon variant={this.icon} />}\n <span class={this.counter && 'has-counter'}>\n <slot />\n </span>\n {this.counter && (\n <p-counter variant=\"negative\">{this.counter}</p-counter>\n )}\n </a>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-navigation-item.entry.js","mappings":";;AAAA,MAAM,0BAA0B,GAAG,szCAAszC;;MCQ50C,cAAc;;;kBAIA,KAAK;;;;;;EAsB/B,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,qBAAqB,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,IAC1D,SAAG,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,IACrC,IAAI,CAAC,IAAI,IAAI,cAAQ,OAAO,EAAE,IAAI,CAAC,IAAI,GAAI,EAC5C,YAAM,KAAK,EAAE,IAAI,CAAC,OAAO,IAAI,aAAa,IACzC,eAAQ,CACF,EACN,IAAI,CAAC,OAAO,KACZ,iBAAW,OAAO,EAAC,UAAU,IAAE,IAAI,CAAC,OAAO,CAAa,CACxD,CACE,CACE,EACN;GACF;;;;;;","names":[],"sources":["src/components/molecules/navigation-item/navigation-item.component.scss?tag=p-navigation-item&encapsulation=shadow","src/components/molecules/navigation-item/navigation-item.component.tsx"],"sourcesContent":[":host {\n\t@apply w-full inline-block mb-1;\n\n\t> a {\n\t\t@apply w-full h-8 px-2 cursor-pointer rounded-large no-underline;\n\t\t@apply flex items-center gap-2;\n\t\t@apply text-storm font-semibold;\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> p-counter {\n\t\t\t@apply ml-auto;\n\t\t}\n\t}\n}\n\n:host(.active) {\n\t> a {\n\t\t@apply text-indigo bg-indigo-light;\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 { IconVariant } from '../../atoms/icon/icon.component';\n\n@Component({\n\ttag: 'p-navigation-item',\n\tstyleUrl: 'navigation-item.component.scss',\n\tshadow: true,\n})\nexport class NavigationItem {\n\t/**\n\t * Wether the navigation item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() icon: IconVariant;\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\trender() {\n\t\treturn (\n\t\t\t<Host class={`p-navigation-item ${this.active && 'active'}`}>\n\t\t\t\t<a href={this.href} target={this.target}>\n\t\t\t\t\t{this.icon && <p-icon variant={this.icon} />}\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\t\t\t\t\t{this.counter && (\n\t\t\t\t\t\t<p-counter variant=\"negative\">{this.counter}</p-counter>\n\t\t\t\t\t)}\n\t\t\t\t</a>\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"p-page-size-select.p-pagination.p-pagination-item.entry.js","mappings":";;;;MAuBa,cAAc;;;;IACf,2BAAsB,GAAiB,CAAC,IAAI,KAChD,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,I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AC,CAAC;GAClC;EAaO,cAAc;IAClB,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAC/B,OAAO,EAAE,CAAC;KACb;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpD,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;GAChE;;;;;;;;;ACjJL,MAAM,0BAA0B,GAAG,s6BAAs6B;;MCO57B,cAAc;;;kBAIC,KAAK;;EAE/B,MAAM;IACJ,QACE,EAAC,IAAI,IAAC,KAAK,EAAE,qBAAqB,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,IACzD,eAAQ,CACH,EACP;GACH;;;;;;","names":[],"sources":["src/components/molecules/page-size-select/page-size-select.component.tsx","src/components/molecules/pagination/pagination.component.scss?tag=p-pagination","src/components/molecules/pagination/pagination.component.tsx","src/components/atoms/pagination-item/pagination-item.component.scss?tag=p-pagination-item&encapsulation=shadow","src/components/atoms/pagination-item/pagination-item.component.tsx"],"sourcesContent":["import {\n Component,\n Element,\n Event,\n EventEmitter,\n h,\n Host,\n Listen,\n Prop,\n State\n} from '@stencil/core';\nimport {\n formatTranslation,\n getLocaleComponentStrings\n} from '../../../utils/localization';\nimport { defaultSize, defaultSizeOptions } from './constants';\n\nexport type templateFunc = (value: number) => string;\n\n@Component({\n tag: 'p-page-size-select',\n shadow: true,\n})\nexport class PageSizeSelect {\n private _defaultButtonTemplate: templateFunc = (size) =>\n formatTranslation(this._locales.item, { size });\n private _defaultItemTemplate: templateFunc = (size) =>\n formatTranslation(this._locales.item, { size });\n /**\n * The current page\n */\n @Prop({ mutable: true, reflect: true }) size: number = defaultSize;\n\n /**\n * The available sizes\n */\n @Prop() sizeOptions: number[] = defaultSizeOptions;\n\n /**\n * Event whenever the size changes\n */\n @Event({\n bubbles: false\n }) sizeChange: EventEmitter<number>;\n\n /**\n * Chevron position\n */\n @Prop() chevronPosition: 'start' | 'end' = 'start';\n\n /**\n * The size of the button\n */\n @Prop() buttonSize: 'small' | 'medium' = 'small';\n\n /**\n * The template for the data view\n */\n @Prop() buttonTemplate: templateFunc = this._defaultButtonTemplate;\n\n /**\n * The template for the data view\n */\n @Prop() itemTemplate: templateFunc = this._defaultItemTemplate;\n\n /**\n * The host element\n */\n @Element() private _el: HTMLElement;\n\n /**\n * Wether to hide when there is only 1 page available\n */\n @Prop() hidden: boolean = false;\n\n /**\n * Locales used for this component\n */\n @State() private _locales: any = {};\n\n componentWillLoad() {\n this._setLocales();\n }\n\n render() {\n return (\n <Host class={`p-page-size-select ${this.hidden && 'hidden'}`}>\n <p-dropdown\n placement=\"top-start\"\n chevronPosition={this.chevronPosition}\n chevronDirection=\"down\"\n >\n <p-button\n variant=\"secondary\"\n slot=\"trigger\"\n size={this.buttonSize}\n >\n {this.buttonTemplate\n ? this.buttonTemplate(this.size)\n : this._defaultButtonTemplate(this.size)}\n </p-button>\n <slot slot=\"items\">\n {this.sizeOptions.map((option) => (\n <p-dropdown-menu-item\n active={option === this.size}\n onClick={() => this._changeSize(option)}\n >\n {this.itemTemplate\n ? this.itemTemplate(option)\n : this._defaultItemTemplate(option)}\n </p-dropdown-menu-item>\n ))}\n </slot>\n </p-dropdown>\n </Host>\n );\n }\n\n @Listen('localeChanged', { target: 'body' })\n private async _setLocales(): Promise<void> {\n this._locales = await getLocaleComponentStrings(this._el);\n }\n\n private _changeSize(s?: number) {\n if (!s) {\n return;\n }\n\n this.size = s;\n this.sizeChange.emit(this.size);\n }\n}\n","p-pagination {\n @apply flex;\n}\n","import {\n Component,\n Event,\n EventEmitter,\n h,\n Host,\n Prop,\n Watch\n} from '@stencil/core';\n\ntype PaginationSetItem = {\n type: string;\n value?: number | Element | JSX.Element | string;\n};\n\n@Component({\n tag: 'p-pagination',\n styleUrl: 'pagination.component.scss',\n})\nexport class Pagination {\n /**\n * The current page\n */\n @Prop({ mutable: true, reflect: true }) page: number = 1;\n\n /**\n * Event whenever the page changes\n */\n @Event({\n bubbles: false\n }) pageChange: EventEmitter<number>;\n\n /**\n * The amount of items per page\n */\n @Prop() pageSize: number = 12;\n\n /**\n * Wether to hide when there is only 1 page available\n */\n @Prop() hideOnSinglePage: boolean = false;\n\n /**\n * The total amount of items\n */\n @Prop() total!: number;\n\n private _pages: number[] = [];\n private _set: PaginationSetItem[] = [];\n\n componentWillRender() {\n this._generate();\n }\n\n render() {\n return (\n <Host\n class={`p-pagination ${\n this.hideOnSinglePage && this._set?.length === 3 && 'hidden'\n }`}\n >\n {this._set?.map((p) => {\n if (p.type === 'previous' || p.type === 'next') {\n return (\n <p-pagination-item\n onClick={() =>\n p.type === 'previous'\n ? this._previousClick()\n : this._nextClick()\n }\n >\n {p.value}\n </p-pagination-item>\n );\n }\n\n if (p.type === 'ellipsis') {\n return <p-pagination-item>...</p-pagination-item>;\n }\n\n return (\n <p-pagination-item\n active={p.value === this.page}\n onClick={() => this._pageClick(p.value as number)}\n >\n {p.value}\n </p-pagination-item>\n );\n })}\n </Host>\n );\n }\n\n @Watch('page')\n @Watch('pageSize')\n @Watch('total')\n protected pageChangeHandler() {\n this._generate();\n }\n\n private _generate() {\n this._pages = this._generatePages();\n this._set = this._generateSet();\n\n if (this.page > this._pages?.length) {\n this._changePage(this._pages.length);\n }\n }\n\n private _changePage(p?: number) {\n if (!p) {\n return;\n }\n\n this.page = p;\n this.pageChange.emit(this.page);\n }\n\n private _previousClick() {\n const previousPage = this.page - 1;\n if (previousPage < this._pages[0]) {\n return;\n }\n\n this._changePage(previousPage);\n }\n\n private _nextClick = () => {\n const nextPage = this.page + 1;\n if (nextPage > this._pages[this._pages.length - 1]) {\n return;\n }\n\n this._changePage(nextPage);\n };\n\n private _pageClick = (p?: number) => this._changePage(p);\n\n private _generatePages() {\n if (!this.total || !this.pageSize) {\n return [];\n }\n\n const pages = Math.ceil(this.total / this.pageSize);\n return new Array(pages).fill(undefined).map((_, i) => i + 1);\n }\n\n private _generateSet = (\n range: number = 1,\n enableBoundaries: boolean = true\n ): PaginationSetItem[] => {\n const totalPages = this._pages.length;\n\n if (!totalPages) {\n return [];\n }\n\n let start = this.page - range;\n let end = this.page + range;\n\n if (end > totalPages) {\n end = totalPages;\n start = totalPages - range * 2;\n start = start < 1 ? 1 : start;\n }\n\n if (start <= 1) {\n start = 1;\n end = Math.min(range * 2 + 1, totalPages);\n }\n\n const set = [];\n\n const previous = {\n type: 'previous',\n value: <p-icon variant=\"chevron\" rotate={90} />,\n };\n\n const next = {\n type: 'next',\n value: <p-icon variant=\"chevron\" rotate={-90} />,\n };\n\n // Disable page range, display all the pages\n if (range === null) {\n const p = this._pages.map((p) => ({\n type: 'page',\n value: p,\n }));\n\n return enableBoundaries ? [previous, ...p, next] : p;\n }\n\n if (enableBoundaries) {\n set.push(previous);\n }\n\n if (start <= 3) {\n for (let i = 1; i < start; i++) {\n set.push({\n type: 'page',\n value: this._pages[i - 1],\n });\n }\n } else {\n set.push({\n type: 'page',\n value: 1,\n });\n\n set.push({\n type: 'ellipsis',\n value: 'ellipsis',\n });\n }\n\n for (let i = start; i <= end; i++) {\n set.push({\n type: 'page',\n value: this._pages[i - 1],\n });\n }\n\n if (end >= totalPages - 2) {\n for (let i = end + 1; i <= totalPages; i++) {\n set.push({\n type: 'page',\n value: this._pages[i - 1],\n });\n }\n } else {\n set.push({\n type: 'ellipsis',\n });\n\n set.push({\n type: 'page',\n value: this._pages[this._pages.length - 1],\n });\n }\n\n if (enableBoundaries) {\n set.push(next);\n }\n\n return set;\n };\n}\n",":host {\n @apply h-8 w-8;\n @apply flex justify-center items-center;\n @apply font-semibold text-storm-medium text-sm;\n @apply rounded;\n @apply cursor-pointer;\n}\n\n:host(:hover),\n:host(:focus) {\n @apply text-storm;\n}\n\n:host(.active) {\n @apply text-indigo bg-indigo-light;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n tag: 'p-pagination-item',\n styleUrl: 'pagination-item.component.scss',\n shadow: true,\n})\nexport class PaginationItem {\n /**\n * Wether the pagination item is active\n */\n @Prop() active: boolean = false;\n\n render() {\n return (\n <Host class={`p-pagination-item ${this.active && 'active'}`}>\n <slot />\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-page-size-select.p-pagination.p-pagination-item.entry.js","mappings":";;;;MAuBa,cAAc;;;;IAClB,2BAAsB,GAAiB,CAAC,IAAI,KACnD,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IACzC,yBAAoB,GAAiB,CAAC,IAAI,KACjD,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;gBAIM,WAAW;uBAKlC,kBAAkB;2BAaP,OAAO;sBAKT,OAAO;0BAKT,IAAI,CAAC,sBAAsB;wBAK7B,IAAI,CAAC,oBAAoB;kBAUpC,KAAK;oBAKE,EAAE;;EAEnC,iBAAiB;IAChB,IAAI,CAAC,WAAW,EAAE,CAAC;GACnB;EAED,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,sBAAsB,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,IAC3D,kBACC,SAAS,EAAC,WAAW,EACrB,eAAe,EAAE,IAAI,CAAC,eAAe,EACrC,gBAAgB,EAAC,MAAM,IAEvB,gBACC,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,SAAS,EACd,IAAI,EAAE,IAAI,CAAC,UAAU,IAEpB,IAAI,CAAC,cAAc;QACjB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC;QAC9B,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAC/B,EACX,YAAM,IAAI,EAAC,OAAO,IAChB,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,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;KACrC;GACD;EAEO,WAAW,CAAC,CAAU;IAC7B,IAAI,CAAC,CAAC,EAAE;MACP,OAAO;KACP;IAED,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;IACd,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;GAChC;EAEO,cAAc;IACrB,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;IACnC,IAAI,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;MAClC,OAAO;KACP;IAED,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;GAC/B;EAaO,cAAc;IACrB,IAAI,CAAC,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;MAClC,OAAO,EAAE,CAAC;KACV;IAED,MAAM,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;IACpD,OAAO,IAAI,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;GAC7D;;;;;;;;;AClJF,MAAM,0BAA0B,GAAG,s6BAAs6B;;MCO57B,cAAc;;;kBAIA,KAAK;;EAE/B,MAAM;IACL,QACC,EAAC,IAAI,IAAC,KAAK,EAAE,qBAAqB,IAAI,CAAC,MAAM,IAAI,QAAQ,EAAE,IAC1D,eAAQ,CACF,EACN;GACF;;;;;;","names":[],"sources":["src/components/molecules/page-size-select/page-size-select.component.tsx","src/components/molecules/pagination/pagination.component.scss?tag=p-pagination","src/components/molecules/pagination/pagination.component.tsx","src/components/atoms/pagination-item/pagination-item.component.scss?tag=p-pagination-item&encapsulation=shadow","src/components/atoms/pagination-item/pagination-item.component.tsx"],"sourcesContent":["import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport {\n\tformatTranslation,\n\tgetLocaleComponentStrings,\n} from '../../../utils/localization';\nimport { defaultSize, defaultSizeOptions } from './constants';\n\nexport type templateFunc = (value: number) => string;\n\n@Component({\n\ttag: 'p-page-size-select',\n\tshadow: true,\n})\nexport class PageSizeSelect {\n\tprivate _defaultButtonTemplate: templateFunc = (size) =>\n\t\tformatTranslation(this._locales.item, { size });\n\tprivate _defaultItemTemplate: templateFunc = (size) =>\n\t\tformatTranslation(this._locales.item, { size });\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) size: number = defaultSize;\n\n\t/**\n\t * The available sizes\n\t */\n\t@Prop() sizeOptions: number[] = defaultSizeOptions;\n\n\t/**\n\t * Event whenever the size changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tsizeChange: EventEmitter<number>;\n\n\t/**\n\t * Chevron position\n\t */\n\t@Prop() chevronPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The size of the button\n\t */\n\t@Prop() buttonSize: 'small' | 'medium' = 'small';\n\n\t/**\n\t * The template for the data view\n\t */\n\t@Prop() buttonTemplate: templateFunc = this._defaultButtonTemplate;\n\n\t/**\n\t * The template for the data view\n\t */\n\t@Prop() itemTemplate: templateFunc = this._defaultItemTemplate;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hidden: boolean = false;\n\n\t/**\n\t * Locales used for this component\n\t */\n\t@State() private _locales: any = {};\n\n\tcomponentWillLoad() {\n\t\tthis._setLocales();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={`p-page-size-select ${this.hidden && 'hidden'}`}>\n\t\t\t\t<p-dropdown\n\t\t\t\t\tplacement=\"top-start\"\n\t\t\t\t\tchevronPosition={this.chevronPosition}\n\t\t\t\t\tchevronDirection=\"down\"\n\t\t\t\t>\n\t\t\t\t\t<p-button\n\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\tslot=\"trigger\"\n\t\t\t\t\t\tsize={this.buttonSize}\n\t\t\t\t\t>\n\t\t\t\t\t\t{this.buttonTemplate\n\t\t\t\t\t\t\t? this.buttonTemplate(this.size)\n\t\t\t\t\t\t\t: this._defaultButtonTemplate(this.size)}\n\t\t\t\t\t</p-button>\n\t\t\t\t\t<slot slot=\"items\">\n\t\t\t\t\t\t{this.sizeOptions.map((option) => (\n\t\t\t\t\t\t\t<p-dropdown-menu-item\n\t\t\t\t\t\t\t\tactive={option === this.size}\n\t\t\t\t\t\t\t\tonClick={() => this._changeSize(option)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.itemTemplate\n\t\t\t\t\t\t\t\t\t? this.itemTemplate(option)\n\t\t\t\t\t\t\t\t\t: this._defaultItemTemplate(option)}\n\t\t\t\t\t\t\t</p-dropdown-menu-item>\n\t\t\t\t\t\t))}\n\t\t\t\t\t</slot>\n\t\t\t\t</p-dropdown>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('localeChanged', { target: 'body' })\n\tprivate async _setLocales(): Promise<void> {\n\t\tthis._locales = await getLocaleComponentStrings(this._el);\n\t}\n\n\tprivate _changeSize(s?: number) {\n\t\tif (!s) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.size = s;\n\t\tthis.sizeChange.emit(this.size);\n\t}\n}\n","p-pagination {\n\t@apply flex;\n}\n","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tProp,\n\tWatch,\n} from '@stencil/core';\n\ntype PaginationSetItem = {\n\ttype: string;\n\tvalue?: number | Element | JSX.Element | string;\n};\n\n@Component({\n\ttag: 'p-pagination',\n\tstyleUrl: 'pagination.component.scss',\n})\nexport class Pagination {\n\t/**\n\t * The current page\n\t */\n\t@Prop({ mutable: true, reflect: true }) page: number = 1;\n\n\t/**\n\t * Event whenever the page changes\n\t */\n\t@Event({\n\t\tbubbles: false,\n\t})\n\tpageChange: EventEmitter<number>;\n\n\t/**\n\t * The amount of items per page\n\t */\n\t@Prop() pageSize: number = 12;\n\n\t/**\n\t * Wether to hide when there is only 1 page available\n\t */\n\t@Prop() hideOnSinglePage: boolean = false;\n\n\t/**\n\t * The total amount of items\n\t */\n\t@Prop() total!: number;\n\n\tprivate _pages: number[] = [];\n\tprivate _set: PaginationSetItem[] = [];\n\n\tcomponentWillRender() {\n\t\tthis._generate();\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-pagination ${\n\t\t\t\t\tthis.hideOnSinglePage && this._set?.length === 3 && 'hidden'\n\t\t\t\t}`}\n\t\t\t>\n\t\t\t\t{this._set?.map((p) => {\n\t\t\t\t\tif (p.type === 'previous' || p.type === 'next') {\n\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t<p-pagination-item\n\t\t\t\t\t\t\t\tonClick={() =>\n\t\t\t\t\t\t\t\t\tp.type === 'previous'\n\t\t\t\t\t\t\t\t\t\t? this._previousClick()\n\t\t\t\t\t\t\t\t\t\t: this._nextClick()\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{p.value}\n\t\t\t\t\t\t\t</p-pagination-item>\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (p.type === 'ellipsis') {\n\t\t\t\t\t\treturn <p-pagination-item>...</p-pagination-item>;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<p-pagination-item\n\t\t\t\t\t\t\tactive={p.value === this.page}\n\t\t\t\t\t\t\tonClick={() => this._pageClick(p.value as number)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{p.value}\n\t\t\t\t\t\t</p-pagination-item>\n\t\t\t\t\t);\n\t\t\t\t})}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Watch('page')\n\t@Watch('pageSize')\n\t@Watch('total')\n\tprotected pageChangeHandler() {\n\t\tthis._generate();\n\t}\n\n\tprivate _generate() {\n\t\tthis._pages = this._generatePages();\n\t\tthis._set = this._generateSet();\n\n\t\tif (this.page > this._pages?.length) {\n\t\t\tthis._changePage(this._pages.length);\n\t\t}\n\t}\n\n\tprivate _changePage(p?: number) {\n\t\tif (!p) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.page = p;\n\t\tthis.pageChange.emit(this.page);\n\t}\n\n\tprivate _previousClick() {\n\t\tconst previousPage = this.page - 1;\n\t\tif (previousPage < this._pages[0]) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._changePage(previousPage);\n\t}\n\n\tprivate _nextClick = () => {\n\t\tconst nextPage = this.page + 1;\n\t\tif (nextPage > this._pages[this._pages.length - 1]) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._changePage(nextPage);\n\t};\n\n\tprivate _pageClick = (p?: number) => this._changePage(p);\n\n\tprivate _generatePages() {\n\t\tif (!this.total || !this.pageSize) {\n\t\t\treturn [];\n\t\t}\n\n\t\tconst pages = Math.ceil(this.total / this.pageSize);\n\t\treturn new Array(pages).fill(undefined).map((_, i) => i + 1);\n\t}\n\n\tprivate _generateSet = (\n\t\trange: number = 1,\n\t\tenableBoundaries: boolean = true\n\t): PaginationSetItem[] => {\n\t\tconst totalPages = this._pages.length;\n\n\t\tif (!totalPages) {\n\t\t\treturn [];\n\t\t}\n\n\t\tlet start = this.page - range;\n\t\tlet end = this.page + range;\n\n\t\tif (end > totalPages) {\n\t\t\tend = totalPages;\n\t\t\tstart = totalPages - range * 2;\n\t\t\tstart = start < 1 ? 1 : start;\n\t\t}\n\n\t\tif (start <= 1) {\n\t\t\tstart = 1;\n\t\t\tend = Math.min(range * 2 + 1, totalPages);\n\t\t}\n\n\t\tconst set = [];\n\n\t\tconst previous = {\n\t\t\ttype: 'previous',\n\t\t\tvalue: <p-icon variant=\"chevron\" rotate={90} />,\n\t\t};\n\n\t\tconst next = {\n\t\t\ttype: 'next',\n\t\t\tvalue: <p-icon variant=\"chevron\" rotate={-90} />,\n\t\t};\n\n\t\t// Disable page range, display all the pages\n\t\tif (range === null) {\n\t\t\tconst p = this._pages.map((p) => ({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: p,\n\t\t\t}));\n\n\t\t\treturn enableBoundaries ? [previous, ...p, next] : p;\n\t\t}\n\n\t\tif (enableBoundaries) {\n\t\t\tset.push(previous);\n\t\t}\n\n\t\tif (start <= 3) {\n\t\t\tfor (let i = 1; i < start; i++) {\n\t\t\t\tset.push({\n\t\t\t\t\ttype: 'page',\n\t\t\t\t\tvalue: this._pages[i - 1],\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tset.push({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: 1,\n\t\t\t});\n\n\t\t\tset.push({\n\t\t\t\ttype: 'ellipsis',\n\t\t\t\tvalue: 'ellipsis',\n\t\t\t});\n\t\t}\n\n\t\tfor (let i = start; i <= end; i++) {\n\t\t\tset.push({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: this._pages[i - 1],\n\t\t\t});\n\t\t}\n\n\t\tif (end >= totalPages - 2) {\n\t\t\tfor (let i = end + 1; i <= totalPages; i++) {\n\t\t\t\tset.push({\n\t\t\t\t\ttype: 'page',\n\t\t\t\t\tvalue: this._pages[i - 1],\n\t\t\t\t});\n\t\t\t}\n\t\t} else {\n\t\t\tset.push({\n\t\t\t\ttype: 'ellipsis',\n\t\t\t});\n\n\t\t\tset.push({\n\t\t\t\ttype: 'page',\n\t\t\t\tvalue: this._pages[this._pages.length - 1],\n\t\t\t});\n\t\t}\n\n\t\tif (enableBoundaries) {\n\t\t\tset.push(next);\n\t\t}\n\n\t\treturn set;\n\t};\n}\n",":host {\n\t@apply h-8 w-8;\n\t@apply flex justify-center items-center;\n\t@apply font-semibold text-storm-medium text-sm;\n\t@apply rounded;\n\t@apply cursor-pointer;\n}\n\n:host(:hover),\n:host(:focus) {\n\t@apply text-storm;\n}\n\n:host(.active) {\n\t@apply text-indigo bg-indigo-light;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-pagination-item',\n\tstyleUrl: 'pagination-item.component.scss',\n\tshadow: true,\n})\nexport class PaginationItem {\n\t/**\n\t * Wether the pagination item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class={`p-pagination-item ${this.active && 'active'}`}>\n\t\t\t\t<slot />\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"p-profile.entry.js","mappings":";;AAAA,MAAM,mBAAmB,GAAG,82EAA82E;;MCO73E,OAAO;;;mBAIsB,MAAM;gBAKkB,OAAO;yBAOpC,KAAK;;EAEtC,mBAAmB;IACf,IAAI,CAAC,aAAa,EAAE,CAAC;GACxB;EAED,MAAM;IACF,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC5C,4BAA4B,CAC/B,CAAC;IACF,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAClD,QACI,EAAC,IAAI,IACD,KAAK,EAAE,aAAa,eAAe,IAAI,cAAc,IACjD,IAAI,CAAC,aAAa,IAAI,QAC1B,EAAE,IAED,eAAe,IACZ,kBACI,KAAK,EAAC,gBAAgB,EACtB,QAAQ,EAAC,UAAU,EACnB,SAAS,EACL,IAAI,CAAC,OAAO,KAAK,MAAM,GAAG,SAAS,GAAG,YAAY,EAEtD,cAAc,EAAE,IAAI,EACpB,aAAa,EAAE,KAAK,EACpB,QAAQ,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC,MAAM,CAAC,IAEjD,OAAO,EACR,WAAK,IAAI,EAAC,OAAO,IACb,YAAM,IAAI,EAAC,UAAU,GAAG,CACtB,CACG,KAEb,OAAO,CACV,CACE,EACT;GACL;EAEO,WAAW,CAAC,eAAe;IAC/B,QACI,WAAK,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,IAC/B,YAAM,IAAI,EAAC,QAAQ,GAAG,EACtB,WAAK,KAAK,EAAC,MAAM,IACb,YAAM,IAAI,EAAC,OAAO,GAAG,EACrB,YAAM,IAAI,EAAC,UAAU,GAAG,CACtB,EAEL,eAAe,IAAI,IAAI,CAAC,QAAQ,EAAE,CACjC,EACR;GACL;EAEO,aAAa;;IACjB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CACjC,yBAAyB,CACN,CAAC;IAExB,IAAI,CAAC,MAAM,EAAE;MACT,OAAO;KACV;IAED,MAAM,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,OAAO,mCAAI,MAAM,CAAC,OAAO,CAAC;IAChD,MAAM,CAAC,IAAI,GAAG,MAAA,IAAI,CAAC,IAAI,mCAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC;GAC3C;EAEO,QAAQ;IACZ,QACI,cACI,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS,GAAG,SAAS,GAAG,MAAM,GAC1D,EACJ;GACL;;;;;;;","names":[],"sources":["src/components/molecules/profile/profile.component.scss?tag=p-profile&encapsulation=shadow","src/components/molecules/profile/profile.component.tsx"],"sourcesContent":[":host {\n @apply flex;\n\n .content {\n @apply flex gap-3 items-center w-full;\n\n .name {\n @apply flex flex-col justify-center overflow-hidden;\n\n > *:nth-child(1) {\n @apply text-sm text-storm-dark;\n @apply font-semibold;\n }\n\n > *:nth-child(2) {\n @apply text-sm text-storm-vague;\n }\n\n ::slotted(*) {\n @apply text-ellipsis overflow-hidden whitespace-nowrap;\n }\n }\n }\n}\n\n:host([size='small']) {\n @apply h-8;\n}\n\n:host([size='medium']) {\n @apply h-[3.125rem];\n}\n\n:host([size='large']) {\n @apply h-16;\n}\n\n:host(.has-dropdown) {\n @apply cursor-pointer;\n\n .content {\n @apply p-2 rounded;\n @apply border border-solid border-mystic-dark #{!important};\n }\n}\n\n:host(.has-dropdown[size='small']) {\n @apply h-12;\n}\n\n:host(.has-dropdown[size='medium']) {\n @apply h-[4.125rem];\n}\n\n:host(.has-dropdown[size='large']) {\n @apply h-20;\n}\n\n:host(.has-dropdown:hover),\n:host(.active) {\n .content {\n @apply shadow-4;\n }\n}\n\n:host(.active) {\n .content {\n p-icon {\n @apply text-indigo;\n }\n }\n}\n","import { Component, Element, h, Host, Prop, State } from '@stencil/core';\n\n@Component({\n tag: 'p-profile',\n styleUrl: 'profile.component.scss',\n shadow: true,\n})\nexport class Profile {\n /**\n * The variant of the profile\n */\n @Prop() variant: 'company' | 'user' = 'user';\n\n /**\n * The size of the profile avatar\n */\n @Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'small';\n\n /**\n * The host element\n */\n @Element() private _el: HTMLElement;\n\n @State() private _dropdownOpen = false;\n\n componentWillRender() {\n this._updateAvatar();\n }\n\n render() {\n const hasDropdownSlot = !!this._el.querySelector(\n ':scope > [slot=\"dropdown\"]'\n );\n const content = this._getContent(hasDropdownSlot);\n return (\n <Host\n class={`p-profile ${hasDropdownSlot && 'has-dropdown'} ${\n this._dropdownOpen && 'active'\n }`}\n >\n {hasDropdownSlot ? (\n <p-dropdown\n class=\"w-full min-w-0\"\n strategy=\"absolute\"\n placement={\n this.variant === 'user' ? 'top-end' : 'bottom-end'\n }\n applyFullWidth={true}\n applyMaxWidth={false}\n onIsOpen={(ev) => (this._dropdownOpen = ev.detail)}\n >\n {content}\n <div slot=\"items\">\n <slot name=\"dropdown\" />\n </div>\n </p-dropdown>\n ) : (\n content\n )}\n </Host>\n );\n }\n\n private _getContent(hasDropdownSlot) {\n return (\n <div class=\"content\" slot=\"trigger\">\n <slot name=\"avatar\" />\n <div class=\"name\">\n <slot name=\"title\" />\n <slot name=\"subtitle\" />\n </div>\n\n {hasDropdownSlot && this._getIcon()}\n </div>\n );\n }\n\n private _updateAvatar() {\n const avatar = this._el.querySelector(\n 'p-avatar[slot=\"avatar\"]'\n ) as HTMLPAvatarElement;\n\n if (!avatar) {\n return;\n }\n\n avatar.variant = this.variant ?? avatar.variant;\n avatar.size = this.size ?? avatar?.size;\n }\n\n private _getIcon() {\n return (\n <p-icon\n class=\"ml-auto\"\n variant={this.variant === 'company' ? 'chevron' : 'more'}\n />\n );\n }\n}\n"],"version":3}
1
+ {"file":"p-profile.entry.js","mappings":";;AAAA,MAAM,mBAAmB,GAAG,82EAA82E;;MCO73E,OAAO;;;mBAImB,MAAM;gBAKkB,OAAO;yBAOpC,KAAK;;EAEtC,mBAAmB;IAClB,IAAI,CAAC,aAAa,EAAE,CAAC;GACrB;EAED,MAAM;IACL,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,aAAa,CAC/C,4BAA4B,CAC5B,CAAC;IACF,MAAM,OAAO,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAClD,QACC,EAAC,IAAI,IACJ,KAAK,EAAE,aAAa,eAAe,IAAI,cAAc,IACpD,IAAI,CAAC,aAAa,IAAI,QACvB,EAAE,IAED,eAAe,IACf,kBACC,KAAK,EAAC,gBAAgB,EACtB,QAAQ,EAAC,UAAU,EACnB,SAAS,EACR,IAAI,CAAC,OAAO,KAAK,MAAM,GAAG,SAAS,GAAG,YAAY,EAEnD,cAAc,EAAE,IAAI,EACpB,aAAa,EAAE,KAAK,EACpB,QAAQ,EAAE,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC,MAAM,CAAC,IAEjD,OAAO,EACR,WAAK,IAAI,EAAC,OAAO,IAChB,YAAM,IAAI,EAAC,UAAU,GAAG,CACnB,CACM,KAEb,OAAO,CACP,CACK,EACN;GACF;EAEO,WAAW,CAAC,eAAe;IAClC,QACC,WAAK,KAAK,EAAC,SAAS,EAAC,IAAI,EAAC,SAAS,IAClC,YAAM,IAAI,EAAC,QAAQ,GAAG,EACtB,WAAK,KAAK,EAAC,MAAM,IAChB,YAAM,IAAI,EAAC,OAAO,GAAG,EACrB,YAAM,IAAI,EAAC,UAAU,GAAG,CACnB,EAEL,eAAe,IAAI,IAAI,CAAC,QAAQ,EAAE,CAC9B,EACL;GACF;EAEO,aAAa;;IACpB,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CACpC,yBAAyB,CACH,CAAC;IAExB,IAAI,CAAC,MAAM,EAAE;MACZ,OAAO;KACP;IAED,MAAM,CAAC,OAAO,GAAG,MAAA,IAAI,CAAC,OAAO,mCAAI,MAAM,CAAC,OAAO,CAAC;IAChD,MAAM,CAAC,IAAI,GAAG,MAAA,IAAI,CAAC,IAAI,mCAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CAAC;GACxC;EAEO,QAAQ;IACf,QACC,cACC,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,IAAI,CAAC,OAAO,KAAK,SAAS,GAAG,SAAS,GAAG,MAAM,GACvD,EACD;GACF;;;;;;;","names":[],"sources":["src/components/molecules/profile/profile.component.scss?tag=p-profile&encapsulation=shadow","src/components/molecules/profile/profile.component.tsx"],"sourcesContent":[":host {\n\t@apply flex;\n\n\t.content {\n\t\t@apply flex gap-3 items-center w-full;\n\n\t\t.name {\n\t\t\t@apply flex flex-col justify-center overflow-hidden;\n\n\t\t\t> *:nth-child(1) {\n\t\t\t\t@apply text-sm text-storm-dark;\n\t\t\t\t@apply font-semibold;\n\t\t\t}\n\n\t\t\t> *:nth-child(2) {\n\t\t\t\t@apply text-sm text-storm-vague;\n\t\t\t}\n\n\t\t\t::slotted(*) {\n\t\t\t\t@apply text-ellipsis overflow-hidden whitespace-nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n\n:host([size='small']) {\n\t@apply h-8;\n}\n\n:host([size='medium']) {\n\t@apply h-[3.125rem];\n}\n\n:host([size='large']) {\n\t@apply h-16;\n}\n\n:host(.has-dropdown) {\n\t@apply cursor-pointer;\n\n\t.content {\n\t\t@apply p-2 rounded;\n\t\t@apply border border-solid border-mystic-dark #{!important};\n\t}\n}\n\n:host(.has-dropdown[size='small']) {\n\t@apply h-12;\n}\n\n:host(.has-dropdown[size='medium']) {\n\t@apply h-[4.125rem];\n}\n\n:host(.has-dropdown[size='large']) {\n\t@apply h-20;\n}\n\n:host(.has-dropdown:hover),\n:host(.active) {\n\t.content {\n\t\t@apply shadow-4;\n\t}\n}\n\n:host(.active) {\n\t.content {\n\t\tp-icon {\n\t\t\t@apply text-indigo;\n\t\t}\n\t}\n}\n","import { Component, Element, h, Host, Prop, State } from '@stencil/core';\n\n@Component({\n\ttag: 'p-profile',\n\tstyleUrl: 'profile.component.scss',\n\tshadow: true,\n})\nexport class Profile {\n\t/**\n\t * The variant of the profile\n\t */\n\t@Prop() variant: 'company' | 'user' = 'user';\n\n\t/**\n\t * The size of the profile avatar\n\t */\n\t@Prop({ reflect: true }) size: 'small' | 'medium' | 'large' = 'small';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _dropdownOpen = false;\n\n\tcomponentWillRender() {\n\t\tthis._updateAvatar();\n\t}\n\n\trender() {\n\t\tconst hasDropdownSlot = !!this._el.querySelector(\n\t\t\t':scope > [slot=\"dropdown\"]'\n\t\t);\n\t\tconst content = this._getContent(hasDropdownSlot);\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={`p-profile ${hasDropdownSlot && 'has-dropdown'} ${\n\t\t\t\t\tthis._dropdownOpen && 'active'\n\t\t\t\t}`}\n\t\t\t>\n\t\t\t\t{hasDropdownSlot ? (\n\t\t\t\t\t<p-dropdown\n\t\t\t\t\t\tclass=\"w-full min-w-0\"\n\t\t\t\t\t\tstrategy=\"absolute\"\n\t\t\t\t\t\tplacement={\n\t\t\t\t\t\t\tthis.variant === 'user' ? 'top-end' : 'bottom-end'\n\t\t\t\t\t\t}\n\t\t\t\t\t\tapplyFullWidth={true}\n\t\t\t\t\t\tapplyMaxWidth={false}\n\t\t\t\t\t\tonIsOpen={(ev) => (this._dropdownOpen = ev.detail)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{content}\n\t\t\t\t\t\t<div slot=\"items\">\n\t\t\t\t\t\t\t<slot name=\"dropdown\" />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</p-dropdown>\n\t\t\t\t) : (\n\t\t\t\t\tcontent\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _getContent(hasDropdownSlot) {\n\t\treturn (\n\t\t\t<div class=\"content\" slot=\"trigger\">\n\t\t\t\t<slot name=\"avatar\" />\n\t\t\t\t<div class=\"name\">\n\t\t\t\t\t<slot name=\"title\" />\n\t\t\t\t\t<slot name=\"subtitle\" />\n\t\t\t\t</div>\n\n\t\t\t\t{hasDropdownSlot && this._getIcon()}\n\t\t\t</div>\n\t\t);\n\t}\n\n\tprivate _updateAvatar() {\n\t\tconst avatar = this._el.querySelector(\n\t\t\t'p-avatar[slot=\"avatar\"]'\n\t\t) as HTMLPAvatarElement;\n\n\t\tif (!avatar) {\n\t\t\treturn;\n\t\t}\n\n\t\tavatar.variant = this.variant ?? avatar.variant;\n\t\tavatar.size = this.size ?? avatar?.size;\n\t}\n\n\tprivate _getIcon() {\n\t\treturn (\n\t\t\t<p-icon\n\t\t\t\tclass=\"ml-auto\"\n\t\t\t\tvariant={this.variant === 'company' ? 'chevron' : 'more'}\n\t\t\t/>\n\t\t);\n\t}\n}\n"],"version":3}