@paperless/core 2.0.1-beta.112 → 2.0.1-beta.113

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 (550) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/build/{p-456a3099.entry.js → p-05791ffa.entry.js} +2 -2
  3. package/dist/build/{p-899f7d36.entry.js → p-0a0ef10d.entry.js} +2 -2
  4. package/dist/{paperless/p-9ef541e4.entry.js → build/p-0ffe0165.entry.js} +2 -2
  5. package/dist/build/p-11b1e718.entry.js +2 -0
  6. package/dist/{paperless/p-57acc6a7.entry.js.map → build/p-11b1e718.entry.js.map} +1 -1
  7. package/dist/build/{p-7b7366dc.entry.js → p-1bde15ae.entry.js} +2 -2
  8. package/dist/build/{p-4b6b1355.entry.js → p-1c9405d8.entry.js} +2 -2
  9. package/dist/build/{p-f82506c3.entry.js → p-21fb542a.entry.js} +2 -2
  10. package/dist/build/{p-0dc168c5.entry.js → p-26b75731.entry.js} +2 -2
  11. package/dist/build/p-3b14bbef.entry.js +2 -0
  12. package/dist/build/p-3cf73b2c.js +2 -0
  13. package/dist/{paperless/p-5dcdb2d0.entry.js → build/p-41949138.entry.js} +2 -2
  14. package/dist/build/{p-dae4a24d.entry.js → p-4205f7e2.entry.js} +2 -2
  15. package/dist/{paperless/p-26491670.entry.js → build/p-476985ba.entry.js} +2 -2
  16. package/dist/build/p-4c6e5337.entry.js +2 -0
  17. package/dist/build/p-505650b6.entry.js +2 -0
  18. package/dist/build/p-53e0b8a1.entry.js +2 -0
  19. package/dist/build/p-53e0b8a1.entry.js.map +1 -0
  20. package/dist/build/{p-4fb83e8d.entry.js → p-6620dc05.entry.js} +2 -2
  21. package/dist/{paperless/p-f4c0923b.entry.js → build/p-697c465d.entry.js} +2 -2
  22. package/dist/build/{p-58efc94c.entry.js → p-6cddddb7.entry.js} +2 -2
  23. package/dist/build/{p-74dba9db.entry.js → p-72eb70f4.entry.js} +2 -2
  24. package/dist/{paperless/p-a8f60c0c.entry.js → build/p-7c7e6f26.entry.js} +2 -2
  25. package/dist/build/{p-17ae0ec7.entry.js → p-7f4d26c4.entry.js} +2 -2
  26. package/dist/build/{p-4ac9e128.entry.js → p-8cc3f69f.entry.js} +2 -2
  27. package/dist/build/p-922fba03.entry.js +2 -0
  28. package/dist/{paperless/p-73bfb4b5.entry.js.map → build/p-922fba03.entry.js.map} +1 -1
  29. package/dist/build/p-929b47c9.entry.js +2 -0
  30. package/dist/build/{p-f932bde5.entry.js → p-96cb3e48.entry.js} +2 -2
  31. package/dist/build/p-96cd5cff.entry.js +2 -0
  32. package/dist/build/p-96cd5cff.entry.js.map +1 -0
  33. package/dist/{paperless/p-c7c3d389.entry.js → build/p-9da1d488.entry.js} +2 -2
  34. package/dist/{paperless/p-d5cba5af.entry.js → build/p-a3da31c4.entry.js} +2 -2
  35. package/dist/build/{p-d3102227.entry.js → p-adfddeb6.entry.js} +2 -2
  36. package/dist/build/p-b08f490b.entry.js +2 -0
  37. package/dist/build/p-b08f490b.entry.js.map +1 -0
  38. package/dist/build/p-b1b12e88.entry.js +2 -0
  39. package/dist/build/p-b1b12e88.entry.js.map +1 -0
  40. package/dist/build/{p-c62477c2.entry.js → p-bc366236.entry.js} +2 -2
  41. package/dist/build/p-bce08b0e.entry.js +2 -0
  42. package/dist/build/{p-c585d909.entry.js → p-c9c0ae8d.entry.js} +2 -2
  43. package/dist/build/{p-0a6e3e6f.entry.js → p-d37e0e66.entry.js} +2 -2
  44. package/dist/build/p-d4f4fe62.entry.js +2 -0
  45. package/dist/build/p-d4f4fe62.entry.js.map +1 -0
  46. package/dist/build/{p-f9efc1e5.entry.js → p-d894e0b1.entry.js} +2 -2
  47. package/dist/build/{p-222abd40.entry.js → p-df7f9328.entry.js} +2 -2
  48. package/dist/build/p-drawer-body.p-drawer-container.p-drawer-header.entry.esm.js.map +1 -1
  49. package/dist/build/{p-7435c88e.entry.js → p-e526cd42.entry.js} +2 -2
  50. package/dist/{paperless/p-b8797794.entry.js → build/p-e63adc0d.entry.js} +2 -2
  51. package/dist/build/p-ed2e7409.entry.js +2 -0
  52. package/dist/build/p-fd4a25eb.entry.js +2 -0
  53. package/dist/build/p-fd4a25eb.entry.js.map +1 -0
  54. package/dist/build/p-listing-item.entry.esm.js.map +1 -0
  55. package/dist/build/p-listing-line.entry.esm.js.map +1 -0
  56. package/dist/build/p-listing.entry.esm.js.map +1 -0
  57. package/dist/build/p-stepper-item.entry.esm.js.map +1 -1
  58. package/dist/build/p-stepper-line.entry.esm.js.map +1 -1
  59. package/dist/build/p-stepper.entry.esm.js.map +1 -1
  60. package/dist/build/paperless.esm.js +1 -1
  61. package/dist/cjs/index-BDuPp9vl.js +12 -0
  62. package/dist/cjs/loader.cjs.js +1 -1
  63. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  64. package/dist/cjs/p-attachment.cjs.entry.js +4 -4
  65. package/dist/cjs/p-badge_3.cjs.entry.js +3 -3
  66. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  67. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  68. package/dist/cjs/p-checkbox_4.cjs.entry.js +4 -4
  69. package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
  70. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  71. package/dist/cjs/p-cropper.cjs.entry.js +2 -2
  72. package/dist/cjs/p-datepicker.cjs.entry.js +2 -2
  73. package/dist/cjs/p-drawer-body.p-drawer-container.p-drawer-header.entry.cjs.js.map +1 -1
  74. package/dist/cjs/p-drawer-body_3.cjs.entry.js +3 -3
  75. package/dist/cjs/p-drawer-body_3.cjs.entry.js.map +1 -1
  76. package/dist/cjs/p-empty-state_9.cjs.entry.js +10 -10
  77. package/dist/cjs/p-field_2.cjs.entry.js +3 -3
  78. package/dist/cjs/p-helper_2.cjs.entry.js +4 -4
  79. package/dist/cjs/p-input-error.cjs.entry.js +1 -1
  80. package/dist/cjs/p-input-group.cjs.entry.js +3 -3
  81. package/dist/cjs/p-label.cjs.entry.js +3 -3
  82. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  83. package/dist/cjs/p-listing-item.cjs.entry.js +24 -0
  84. package/dist/cjs/p-listing-item.cjs.entry.js.map +1 -0
  85. package/dist/cjs/p-listing-item.entry.cjs.js.map +1 -0
  86. package/dist/cjs/p-listing-line.cjs.entry.js +20 -0
  87. package/dist/cjs/p-listing-line.cjs.entry.js.map +1 -0
  88. package/dist/cjs/p-listing-line.entry.cjs.js.map +1 -0
  89. package/dist/cjs/p-listing.cjs.entry.js +83 -0
  90. package/dist/cjs/p-listing.cjs.entry.js.map +1 -0
  91. package/dist/cjs/p-listing.entry.cjs.js.map +1 -0
  92. package/dist/cjs/p-modal-body_4.cjs.entry.js +6 -6
  93. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  94. package/dist/cjs/p-navigation-item.cjs.entry.js +2 -2
  95. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  96. package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
  97. package/dist/cjs/p-pagination-pages-item.cjs.entry.js +2 -2
  98. package/dist/cjs/p-pagination_3.cjs.entry.js +4 -4
  99. package/dist/cjs/p-portal.cjs.entry.js +1 -1
  100. package/dist/cjs/p-radio.cjs.entry.js +3 -3
  101. package/dist/cjs/p-select.cjs.entry.js +1 -1
  102. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  103. package/dist/cjs/p-smile.cjs.entry.js +1 -1
  104. package/dist/cjs/p-status.cjs.entry.js +2 -2
  105. package/dist/cjs/p-stepper-item.cjs.entry.js +89 -6
  106. package/dist/cjs/p-stepper-item.cjs.entry.js.map +1 -1
  107. package/dist/cjs/p-stepper-item.entry.cjs.js.map +1 -1
  108. package/dist/cjs/p-stepper-line.cjs.entry.js +2 -2
  109. package/dist/cjs/p-stepper-line.cjs.entry.js.map +1 -1
  110. package/dist/cjs/p-stepper-line.entry.cjs.js.map +1 -1
  111. package/dist/cjs/p-stepper.cjs.entry.js +53 -15
  112. package/dist/cjs/p-stepper.cjs.entry.js.map +1 -1
  113. package/dist/cjs/p-stepper.entry.cjs.js.map +1 -1
  114. package/dist/cjs/p-tab-container.cjs.entry.js +1 -1
  115. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  116. package/dist/cjs/p-toast-container.cjs.entry.js +2 -2
  117. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  118. package/dist/cjs/p-toggle.cjs.entry.js +3 -3
  119. package/dist/cjs/paperless.cjs.js +1 -1
  120. package/dist/collection/collection-manifest.json +7 -4
  121. package/dist/collection/components/atoms/drawer/body/drawer-body.component.css +1 -1
  122. package/dist/collection/components/atoms/drawer/container/drawer-container.component.css +1 -1
  123. package/dist/collection/components/atoms/drawer/header/drawer-header.component.css +1 -1
  124. package/dist/collection/components/atoms/listing/item/listing-item.component.css +1 -0
  125. package/dist/collection/components/atoms/listing/item/listing-item.component.js +53 -0
  126. package/dist/collection/components/atoms/listing/item/listing-item.component.js.map +1 -0
  127. package/dist/collection/components/atoms/listing/line/listing-line.component.css +1 -0
  128. package/dist/collection/components/atoms/listing/line/listing-line.component.js +19 -0
  129. package/dist/collection/components/atoms/listing/line/listing-line.component.js.map +1 -0
  130. package/dist/collection/components/atoms/modal/body/modal-body.component.js +2 -2
  131. package/dist/collection/components/atoms/modal/container/modal-container.component.js +2 -2
  132. package/dist/collection/components/atoms/modal/footer/modal-footer.component.js +1 -1
  133. package/dist/collection/components/atoms/modal/header/modal-header.component.js +1 -1
  134. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
  135. package/dist/collection/components/atoms/pagination/pages-item/pagination-pages-item.component.js +2 -2
  136. package/dist/collection/components/atoms/radio/radio.component.js +3 -3
  137. package/dist/collection/components/atoms/segment/container/segment-container.component.js +1 -1
  138. package/dist/collection/components/atoms/segment/item/segment-item.component.js +2 -2
  139. package/dist/collection/components/atoms/smile/smile.component.js +1 -1
  140. package/dist/collection/components/atoms/stepper/item/stepper-item.component.css +1 -0
  141. package/dist/collection/components/{deprecated/atoms → atoms}/stepper/item/stepper-item.component.js +107 -25
  142. package/dist/collection/components/atoms/stepper/item/stepper-item.component.js.map +1 -0
  143. package/dist/collection/components/atoms/stepper/line/stepper-line.component.css +1 -0
  144. package/dist/collection/components/{deprecated/atoms → atoms}/stepper/line/stepper-line.component.js +2 -2
  145. package/dist/collection/components/atoms/stepper/line/stepper-line.component.js.map +1 -0
  146. package/dist/collection/components/atoms/tab/container/tab-container.component.js +1 -1
  147. package/dist/collection/components/atoms/tab/item/tab-item.component.js +1 -1
  148. package/dist/collection/components/atoms/table/actions-container/table-container.component.js +1 -1
  149. package/dist/collection/components/atoms/table/container/table-row-actions-container.component.js +1 -1
  150. package/dist/collection/components/atoms/toast-container/toast-container.component.js +2 -2
  151. package/dist/collection/components/atoms/toggle/toggle.component.js +3 -3
  152. package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
  153. package/dist/collection/components/deprecated/atoms/counter/counter.component.js +1 -1
  154. package/dist/collection/components/deprecated/atoms/layout/layout.component.js +1 -1
  155. package/dist/collection/components/deprecated/atoms/slider-indicator/slider-indicator.component.js +1 -1
  156. package/dist/collection/components/deprecated/atoms/status/status.component.js +2 -2
  157. package/dist/collection/components/deprecated/molecules/accordion/accordion.component.js +1 -1
  158. package/dist/collection/components/deprecated/molecules/attachment/attachment.component.js +4 -4
  159. package/dist/collection/components/deprecated/molecules/content-slider/content-slider.component.js +2 -2
  160. package/dist/collection/components/deprecated/molecules/cropper/cropper.component.js +2 -2
  161. package/dist/collection/components/deprecated/molecules/input/error/input-error.component.js +1 -1
  162. package/dist/collection/components/deprecated/molecules/input/group/input-group.component.js +3 -3
  163. package/dist/collection/components/helpers/portal/portal.component.js +1 -1
  164. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  165. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  166. package/dist/collection/components/molecules/datepicker/datepicker.component.js +2 -2
  167. package/dist/collection/components/molecules/dropdown/dropdown.component.js +4 -4
  168. package/dist/collection/components/molecules/empty-state/empty-state.component.js +2 -2
  169. package/dist/collection/components/molecules/field/field/field.component.js +3 -3
  170. package/dist/collection/components/molecules/label/label.component.js +3 -3
  171. package/dist/collection/components/molecules/navigation/item/navigation-item.component.js +2 -2
  172. package/dist/collection/components/molecules/navigation/section/navigation-section.component.js +1 -1
  173. package/dist/collection/components/molecules/pagination/pages/pagination-pages.component.js +1 -1
  174. package/dist/collection/components/molecules/pagination/pagination/pagination.component.js +3 -3
  175. package/dist/collection/components/molecules/select/select.component.js +1 -1
  176. package/dist/collection/components/molecules/table/cell/table-cell.component.js +1 -1
  177. package/dist/collection/components/molecules/table/footer/table-footer.component.js +2 -2
  178. package/dist/collection/components/molecules/table/row/table-row.component.js +3 -3
  179. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  180. package/dist/collection/components/organisms/listing/listing.component.css +1 -0
  181. package/dist/collection/components/organisms/listing/listing.component.js +86 -0
  182. package/dist/collection/components/organisms/listing/listing.component.js.map +1 -0
  183. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  184. package/dist/collection/components/organisms/stepper/stepper.component.css +1 -0
  185. package/dist/collection/components/{deprecated/molecules → organisms}/stepper/stepper.component.js +79 -18
  186. package/dist/collection/components/organisms/stepper/stepper.component.js.map +1 -0
  187. package/dist/components/{p-CzS_7d0-.js → p-BELUs4d5.js} +10 -10
  188. package/dist/components/{p-CzS_7d0-.js.map → p-BELUs4d5.js.map} +1 -1
  189. package/dist/components/{p-DAKWnFmC.js → p-BIf14u2D.js} +4 -4
  190. package/dist/components/{p-DAKWnFmC.js.map → p-BIf14u2D.js.map} +1 -1
  191. package/dist/components/{p-DPhqMOrK.js → p-BPkSg0bc.js} +3 -3
  192. package/dist/components/{p-DPhqMOrK.js.map → p-BPkSg0bc.js.map} +1 -1
  193. package/dist/components/{p-BudlHU1j.js → p-BYnq9fQl.js} +3 -3
  194. package/dist/components/{p-BudlHU1j.js.map → p-BYnq9fQl.js.map} +1 -1
  195. package/dist/components/{p-BDTPyUsH.js → p-BmuXuYR6.js} +4 -4
  196. package/dist/components/{p-BDTPyUsH.js.map → p-BmuXuYR6.js.map} +1 -1
  197. package/dist/components/{p-D82K4OiU.js → p-C0yOzPit.js} +3 -3
  198. package/dist/components/{p-D82K4OiU.js.map → p-C0yOzPit.js.map} +1 -1
  199. package/dist/components/p-C1FkmkFJ.js +45 -0
  200. package/dist/components/p-C1FkmkFJ.js.map +1 -0
  201. package/dist/components/{p-Dk6UwJSA.js → p-C7OuWaSr.js} +3 -3
  202. package/dist/components/{p-Dk6UwJSA.js.map → p-C7OuWaSr.js.map} +1 -1
  203. package/dist/components/{p-CFdbv-t4.js → p-CKc3SL1J.js} +4 -4
  204. package/dist/components/{p-CFdbv-t4.js.map → p-CKc3SL1J.js.map} +1 -1
  205. package/dist/components/{p-BFBgml7D.js → p-CSIFLNsS.js} +3 -3
  206. package/dist/components/{p-BFBgml7D.js.map → p-CSIFLNsS.js.map} +1 -1
  207. package/dist/components/{p-Y_DTiNRB.js → p-CSMO4KRK.js} +9 -9
  208. package/dist/components/{p-Y_DTiNRB.js.map → p-CSMO4KRK.js.map} +1 -1
  209. package/dist/components/{p-BUxcWSGM.js → p-CUgIFdxM.js} +3 -3
  210. package/dist/components/{p-BUxcWSGM.js.map → p-CUgIFdxM.js.map} +1 -1
  211. package/dist/components/{p-Be33-vpq.js → p-CXH4yAMZ.js} +4 -4
  212. package/dist/components/{p-Be33-vpq.js.map → p-CXH4yAMZ.js.map} +1 -1
  213. package/dist/components/{p-BbqAQmy1.js → p-CYGYOpps.js} +5 -5
  214. package/dist/components/{p-BbqAQmy1.js.map → p-CYGYOpps.js.map} +1 -1
  215. package/dist/components/{p-kF4ExBgt.js → p-C_t2sBf3.js} +3 -3
  216. package/dist/components/{p-kF4ExBgt.js.map → p-C_t2sBf3.js.map} +1 -1
  217. package/dist/components/{p-DdhFjzWp.js → p-CxHSXAkq.js} +4 -4
  218. package/dist/components/{p-DdhFjzWp.js.map → p-CxHSXAkq.js.map} +1 -1
  219. package/dist/components/{p-DzrmryZi.js → p-CzmLJq-j.js} +9 -9
  220. package/dist/components/{p-DzrmryZi.js.map → p-CzmLJq-j.js.map} +1 -1
  221. package/dist/components/{p-DW90RovU.js → p-D2Em0Yy7.js} +7 -7
  222. package/dist/components/{p-DW90RovU.js.map → p-D2Em0Yy7.js.map} +1 -1
  223. package/dist/components/{p-BMeOy477.js → p-DH9lFbRX.js} +4 -4
  224. package/dist/components/{p-BMeOy477.js.map → p-DH9lFbRX.js.map} +1 -1
  225. package/dist/components/{p-CmfFRlg6.js → p-DNuBtBUG.js} +7 -7
  226. package/dist/components/{p-CmfFRlg6.js.map → p-DNuBtBUG.js.map} +1 -1
  227. package/dist/components/{p-CScTNJWS.js → p-DQsUJhL8.js} +4 -4
  228. package/dist/components/{p-CScTNJWS.js.map → p-DQsUJhL8.js.map} +1 -1
  229. package/dist/components/{p-CgZvkWTt.js → p-DdK27Obl.js} +3 -3
  230. package/dist/components/{p-CgZvkWTt.js.map → p-DdK27Obl.js.map} +1 -1
  231. package/dist/components/{p-RaBHKmcm.js → p-DeKgadpt.js} +5 -5
  232. package/dist/components/{p-RaBHKmcm.js.map → p-DeKgadpt.js.map} +1 -1
  233. package/dist/components/{p--HfTtLkP.js → p-DoBSOpu3.js} +3 -3
  234. package/dist/components/{p--HfTtLkP.js.map → p-DoBSOpu3.js.map} +1 -1
  235. package/dist/components/p-ElOvIDKN.js +34 -0
  236. package/dist/components/p-ElOvIDKN.js.map +1 -0
  237. package/dist/components/{p-BwFkgAPO.js → p-Ma26TfrN.js} +4 -4
  238. package/dist/components/{p-BwFkgAPO.js.map → p-Ma26TfrN.js.map} +1 -1
  239. package/dist/components/{p-8rB2Q4yP.js → p-ZBndlSp5.js} +4 -4
  240. package/dist/components/{p-8rB2Q4yP.js.map → p-ZBndlSp5.js.map} +1 -1
  241. package/dist/components/{p-OpZXFNRZ.js → p-abTHpIy3.js} +3 -3
  242. package/dist/components/{p-OpZXFNRZ.js.map → p-abTHpIy3.js.map} +1 -1
  243. package/dist/components/p-accordion.js +1 -1
  244. package/dist/components/p-attachment.js +7 -7
  245. package/dist/components/p-button-group.js +1 -1
  246. package/dist/components/p-calendar.js +1 -1
  247. package/dist/components/p-card-header.js +1 -1
  248. package/dist/components/p-content-slider.js +3 -3
  249. package/dist/components/p-counter.js +1 -1
  250. package/dist/components/p-cropper.js +2 -2
  251. package/dist/components/{p-Dhj0ynsI.js → p-dHqdW8fy.js} +4 -4
  252. package/dist/components/{p-Dhj0ynsI.js.map → p-dHqdW8fy.js.map} +1 -1
  253. package/dist/components/p-datepicker.js +9 -9
  254. package/dist/components/p-drawer-body.js +1 -1
  255. package/dist/components/p-drawer-container.js +1 -1
  256. package/dist/components/p-drawer-header.js +1 -1
  257. package/dist/components/p-drawer.js +4 -4
  258. package/dist/components/p-dropdown.js +1 -1
  259. package/dist/components/p-empty-state.js +1 -1
  260. package/dist/components/p-field-container.js +1 -1
  261. package/dist/components/p-field.js +1 -1
  262. package/dist/components/p-helper.js +1 -1
  263. package/dist/components/p-input-error.js +1 -1
  264. package/dist/components/p-input-group.js +7 -7
  265. package/dist/components/p-label.js +3 -3
  266. package/dist/components/p-layout.js +1 -1
  267. package/dist/components/p-listing-item.d.ts +11 -0
  268. package/dist/components/p-listing-item.js +49 -0
  269. package/dist/components/p-listing-item.js.map +1 -0
  270. package/dist/components/p-listing-line.d.ts +11 -0
  271. package/dist/components/p-listing-line.js +9 -0
  272. package/dist/components/p-listing-line.js.map +1 -0
  273. package/dist/components/p-listing.d.ts +11 -0
  274. package/dist/components/p-listing.js +106 -0
  275. package/dist/components/p-listing.js.map +1 -0
  276. package/dist/components/p-modal-body.js +1 -1
  277. package/dist/components/p-modal-container.js +1 -1
  278. package/dist/components/p-modal-footer.js +1 -1
  279. package/dist/components/p-modal-header.js +1 -1
  280. package/dist/components/p-modal.js +5 -5
  281. package/dist/components/p-navbar.js +1 -1
  282. package/dist/components/p-navigation-item.js +2 -2
  283. package/dist/components/p-navigation-section.js +2 -2
  284. package/dist/components/p-navigation-title.js +1 -1
  285. package/dist/components/{p-DPJZQYRZ.js → p-oN2NV1VP.js} +3 -3
  286. package/dist/components/{p-DPJZQYRZ.js.map → p-oN2NV1VP.js.map} +1 -1
  287. package/dist/components/{p-wcD-x4l2.js → p-olyt1_RK.js} +3 -3
  288. package/dist/components/{p-wcD-x4l2.js.map → p-olyt1_RK.js.map} +1 -1
  289. package/dist/components/{p-C1YLcCva.js → p-p2WG_YKz.js} +5 -5
  290. package/dist/components/{p-C1YLcCva.js.map → p-p2WG_YKz.js.map} +1 -1
  291. package/dist/components/p-pagination-pages-item.js +1 -1
  292. package/dist/components/p-pagination-pages.js +1 -1
  293. package/dist/components/p-pagination-size.js +1 -1
  294. package/dist/components/p-pagination.js +1 -1
  295. package/dist/components/p-portal.js +1 -1
  296. package/dist/components/p-profile.js +2 -2
  297. package/dist/components/p-radio.js +3 -3
  298. package/dist/components/p-segment-container.js +1 -1
  299. package/dist/components/p-segment-item.js +1 -1
  300. package/dist/components/p-select.js +7 -7
  301. package/dist/components/p-slider-indicator.js +1 -1
  302. package/dist/components/p-smile.js +1 -1
  303. package/dist/components/p-status.js +2 -2
  304. package/dist/components/p-stepper-item.js +95 -19
  305. package/dist/components/p-stepper-item.js.map +1 -1
  306. package/dist/components/p-stepper-line.js +1 -1
  307. package/dist/components/p-stepper.js +59 -19
  308. package/dist/components/p-stepper.js.map +1 -1
  309. package/dist/components/p-tab-container.js +1 -1
  310. package/dist/components/p-tab-item.js +1 -1
  311. package/dist/components/p-table-cell.js +1 -1
  312. package/dist/components/p-table-container.js +1 -1
  313. package/dist/components/p-table-footer.js +1 -1
  314. package/dist/components/p-table-header.js +1 -1
  315. package/dist/components/p-table-row-actions-container.js +1 -1
  316. package/dist/components/p-table-row.js +1 -1
  317. package/dist/components/p-table.js +19 -19
  318. package/dist/components/{p-DRQQENvx.js → p-tf3ZTq-9.js} +10 -10
  319. package/dist/components/{p-DRQQENvx.js.map → p-tf3ZTq-9.js.map} +1 -1
  320. package/dist/components/p-toast-container.js +2 -2
  321. package/dist/components/p-toast.js +1 -1
  322. package/dist/components/p-toggle.js +3 -3
  323. package/dist/components/p-tooltip.js +1 -1
  324. package/dist/esm/index-DhGo7hbh.js +12 -0
  325. package/dist/esm/loader.js +1 -1
  326. package/dist/esm/p-accordion.entry.js +1 -1
  327. package/dist/esm/p-attachment.entry.js +4 -4
  328. package/dist/esm/p-badge_3.entry.js +3 -3
  329. package/dist/esm/p-button-group.entry.js +1 -1
  330. package/dist/esm/p-calendar.entry.js +1 -1
  331. package/dist/esm/p-checkbox_4.entry.js +4 -4
  332. package/dist/esm/p-content-slider.entry.js +2 -2
  333. package/dist/esm/p-counter.entry.js +1 -1
  334. package/dist/esm/p-cropper.entry.js +2 -2
  335. package/dist/esm/p-datepicker.entry.js +2 -2
  336. package/dist/esm/p-drawer-body.p-drawer-container.p-drawer-header.entry.js.map +1 -1
  337. package/dist/esm/p-drawer-body_3.entry.js +3 -3
  338. package/dist/esm/p-drawer-body_3.entry.js.map +1 -1
  339. package/dist/esm/p-empty-state_9.entry.js +10 -10
  340. package/dist/esm/p-field_2.entry.js +3 -3
  341. package/dist/esm/p-helper_2.entry.js +4 -4
  342. package/dist/esm/p-input-error.entry.js +1 -1
  343. package/dist/esm/p-input-group.entry.js +3 -3
  344. package/dist/esm/p-label.entry.js +3 -3
  345. package/dist/esm/p-layout.entry.js +1 -1
  346. package/dist/esm/p-listing-item.entry.js +22 -0
  347. package/dist/esm/p-listing-item.entry.js.map +1 -0
  348. package/dist/esm/p-listing-line.entry.js +18 -0
  349. package/dist/esm/p-listing-line.entry.js.map +1 -0
  350. package/dist/esm/p-listing.entry.js +81 -0
  351. package/dist/esm/p-listing.entry.js.map +1 -0
  352. package/dist/esm/p-modal-body_4.entry.js +6 -6
  353. package/dist/esm/p-navbar.entry.js +1 -1
  354. package/dist/esm/p-navigation-item.entry.js +2 -2
  355. package/dist/esm/p-navigation-section.entry.js +1 -1
  356. package/dist/esm/p-navigation-title.entry.js +1 -1
  357. package/dist/esm/p-pagination-pages-item.entry.js +2 -2
  358. package/dist/esm/p-pagination_3.entry.js +4 -4
  359. package/dist/esm/p-portal.entry.js +1 -1
  360. package/dist/esm/p-radio.entry.js +3 -3
  361. package/dist/esm/p-select.entry.js +1 -1
  362. package/dist/esm/p-slider-indicator.entry.js +1 -1
  363. package/dist/esm/p-smile.entry.js +1 -1
  364. package/dist/esm/p-status.entry.js +2 -2
  365. package/dist/esm/p-stepper-item.entry.js +90 -7
  366. package/dist/esm/p-stepper-item.entry.js.map +1 -1
  367. package/dist/esm/p-stepper-line.entry.js +2 -2
  368. package/dist/esm/p-stepper-line.entry.js.map +1 -1
  369. package/dist/esm/p-stepper.entry.js +54 -16
  370. package/dist/esm/p-stepper.entry.js.map +1 -1
  371. package/dist/esm/p-tab-container.entry.js +1 -1
  372. package/dist/esm/p-tab-item.entry.js +1 -1
  373. package/dist/esm/p-toast-container.entry.js +2 -2
  374. package/dist/esm/p-toast.entry.js +1 -1
  375. package/dist/esm/p-toggle.entry.js +3 -3
  376. package/dist/esm/paperless.js +1 -1
  377. package/dist/index.html +1 -1
  378. package/dist/paperless/{p-456a3099.entry.js → p-05791ffa.entry.js} +2 -2
  379. package/dist/paperless/{p-899f7d36.entry.js → p-0a0ef10d.entry.js} +2 -2
  380. package/dist/{build/p-9ef541e4.entry.js → paperless/p-0ffe0165.entry.js} +2 -2
  381. package/dist/paperless/p-11b1e718.entry.js +2 -0
  382. package/dist/{build/p-57acc6a7.entry.js.map → paperless/p-11b1e718.entry.js.map} +1 -1
  383. package/dist/paperless/{p-7b7366dc.entry.js → p-1bde15ae.entry.js} +2 -2
  384. package/dist/paperless/{p-4b6b1355.entry.js → p-1c9405d8.entry.js} +2 -2
  385. package/dist/paperless/{p-f82506c3.entry.js → p-21fb542a.entry.js} +2 -2
  386. package/dist/paperless/{p-0dc168c5.entry.js → p-26b75731.entry.js} +2 -2
  387. package/dist/paperless/p-3b14bbef.entry.js +2 -0
  388. package/dist/{build/p-5dcdb2d0.entry.js → paperless/p-41949138.entry.js} +2 -2
  389. package/dist/paperless/{p-dae4a24d.entry.js → p-4205f7e2.entry.js} +2 -2
  390. package/dist/{build/p-26491670.entry.js → paperless/p-476985ba.entry.js} +2 -2
  391. package/dist/paperless/p-4c6e5337.entry.js +2 -0
  392. package/dist/paperless/p-505650b6.entry.js +2 -0
  393. package/dist/paperless/p-53e0b8a1.entry.js +2 -0
  394. package/dist/paperless/p-53e0b8a1.entry.js.map +1 -0
  395. package/dist/paperless/{p-4fb83e8d.entry.js → p-6620dc05.entry.js} +2 -2
  396. package/dist/{build/p-f4c0923b.entry.js → paperless/p-697c465d.entry.js} +2 -2
  397. package/dist/paperless/{p-58efc94c.entry.js → p-6cddddb7.entry.js} +2 -2
  398. package/dist/paperless/{p-74dba9db.entry.js → p-72eb70f4.entry.js} +2 -2
  399. package/dist/{build/p-a8f60c0c.entry.js → paperless/p-7c7e6f26.entry.js} +2 -2
  400. package/dist/paperless/{p-17ae0ec7.entry.js → p-7f4d26c4.entry.js} +2 -2
  401. package/dist/paperless/{p-4ac9e128.entry.js → p-8cc3f69f.entry.js} +2 -2
  402. package/dist/paperless/p-922fba03.entry.js +2 -0
  403. package/dist/{build/p-73bfb4b5.entry.js.map → paperless/p-922fba03.entry.js.map} +1 -1
  404. package/dist/paperless/p-929b47c9.entry.js +2 -0
  405. package/dist/paperless/{p-f932bde5.entry.js → p-96cb3e48.entry.js} +2 -2
  406. package/dist/paperless/p-96cd5cff.entry.js +2 -0
  407. package/dist/paperless/p-96cd5cff.entry.js.map +1 -0
  408. package/dist/{build/p-c7c3d389.entry.js → paperless/p-9da1d488.entry.js} +2 -2
  409. package/dist/{build/p-d5cba5af.entry.js → paperless/p-a3da31c4.entry.js} +2 -2
  410. package/dist/paperless/{p-d3102227.entry.js → p-adfddeb6.entry.js} +2 -2
  411. package/dist/paperless/p-b08f490b.entry.js +2 -0
  412. package/dist/paperless/p-b08f490b.entry.js.map +1 -0
  413. package/dist/paperless/p-b1b12e88.entry.js +2 -0
  414. package/dist/paperless/p-b1b12e88.entry.js.map +1 -0
  415. package/dist/paperless/{p-c62477c2.entry.js → p-bc366236.entry.js} +2 -2
  416. package/dist/paperless/p-bce08b0e.entry.js +2 -0
  417. package/dist/paperless/{p-c585d909.entry.js → p-c9c0ae8d.entry.js} +2 -2
  418. package/dist/paperless/{p-0a6e3e6f.entry.js → p-d37e0e66.entry.js} +2 -2
  419. package/dist/paperless/p-d4f4fe62.entry.js +2 -0
  420. package/dist/paperless/p-d4f4fe62.entry.js.map +1 -0
  421. package/dist/paperless/{p-f9efc1e5.entry.js → p-d894e0b1.entry.js} +2 -2
  422. package/dist/paperless/{p-222abd40.entry.js → p-df7f9328.entry.js} +2 -2
  423. package/dist/paperless/p-drawer-body.p-drawer-container.p-drawer-header.entry.esm.js.map +1 -1
  424. package/dist/paperless/{p-7435c88e.entry.js → p-e526cd42.entry.js} +2 -2
  425. package/dist/{build/p-b8797794.entry.js → paperless/p-e63adc0d.entry.js} +2 -2
  426. package/dist/paperless/p-ed2e7409.entry.js +2 -0
  427. package/dist/paperless/p-fd4a25eb.entry.js +2 -0
  428. package/dist/paperless/p-fd4a25eb.entry.js.map +1 -0
  429. package/dist/paperless/p-listing-item.entry.esm.js.map +1 -0
  430. package/dist/paperless/p-listing-line.entry.esm.js.map +1 -0
  431. package/dist/paperless/p-listing.entry.esm.js.map +1 -0
  432. package/dist/paperless/p-stepper-item.entry.esm.js.map +1 -1
  433. package/dist/paperless/p-stepper-line.entry.esm.js.map +1 -1
  434. package/dist/paperless/p-stepper.entry.esm.js.map +1 -1
  435. package/dist/paperless/paperless.esm.js +1 -1
  436. package/dist/sw.js +1 -1
  437. package/dist/sw.js.map +1 -1
  438. package/dist/types/components/atoms/listing/item/listing-item.component.d.ts +8 -0
  439. package/dist/types/components/atoms/listing/line/listing-line.component.d.ts +3 -0
  440. package/dist/types/components/{deprecated/atoms → atoms}/stepper/item/stepper-item.component.d.ts +4 -4
  441. package/dist/types/components/organisms/listing/listing.component.d.ts +14 -0
  442. package/dist/types/components/{deprecated/molecules → organisms}/stepper/stepper.component.d.ts +6 -0
  443. package/dist/types/components.d.ts +65 -10
  444. package/package.json +1 -1
  445. package/dist/build/p-0859bb42.entry.js +0 -2
  446. package/dist/build/p-0859bb42.entry.js.map +0 -1
  447. package/dist/build/p-0a6b03d0.entry.js +0 -2
  448. package/dist/build/p-0b6db18f.entry.js +0 -2
  449. package/dist/build/p-13b16981.entry.js +0 -2
  450. package/dist/build/p-13b16981.entry.js.map +0 -1
  451. package/dist/build/p-41f2eec6.entry.js +0 -2
  452. package/dist/build/p-41f2eec6.entry.js.map +0 -1
  453. package/dist/build/p-449cde91.js +0 -2
  454. package/dist/build/p-57acc6a7.entry.js +0 -2
  455. package/dist/build/p-70de0ecc.entry.js +0 -2
  456. package/dist/build/p-73bfb4b5.entry.js +0 -2
  457. package/dist/build/p-82751d58.entry.js +0 -2
  458. package/dist/build/p-d6e8bf36.entry.js +0 -2
  459. package/dist/build/p-e2ee74a9.entry.js +0 -2
  460. package/dist/collection/components/deprecated/atoms/stepper/item/stepper-item.component.css +0 -1
  461. package/dist/collection/components/deprecated/atoms/stepper/item/stepper-item.component.js.map +0 -1
  462. package/dist/collection/components/deprecated/atoms/stepper/line/stepper-line.component.css +0 -1
  463. package/dist/collection/components/deprecated/atoms/stepper/line/stepper-line.component.js.map +0 -1
  464. package/dist/collection/components/deprecated/molecules/stepper/stepper.component.css +0 -1
  465. package/dist/collection/components/deprecated/molecules/stepper/stepper.component.js.map +0 -1
  466. package/dist/components/p-RLs2w_87.js +0 -45
  467. package/dist/components/p-RLs2w_87.js.map +0 -1
  468. package/dist/paperless/p-0859bb42.entry.js +0 -2
  469. package/dist/paperless/p-0859bb42.entry.js.map +0 -1
  470. package/dist/paperless/p-0a6b03d0.entry.js +0 -2
  471. package/dist/paperless/p-0b6db18f.entry.js +0 -2
  472. package/dist/paperless/p-13b16981.entry.js +0 -2
  473. package/dist/paperless/p-13b16981.entry.js.map +0 -1
  474. package/dist/paperless/p-41f2eec6.entry.js +0 -2
  475. package/dist/paperless/p-41f2eec6.entry.js.map +0 -1
  476. package/dist/paperless/p-57acc6a7.entry.js +0 -2
  477. package/dist/paperless/p-70de0ecc.entry.js +0 -2
  478. package/dist/paperless/p-73bfb4b5.entry.js +0 -2
  479. package/dist/paperless/p-82751d58.entry.js +0 -2
  480. package/dist/paperless/p-d6e8bf36.entry.js +0 -2
  481. package/dist/paperless/p-e2ee74a9.entry.js +0 -2
  482. /package/dist/build/{p-456a3099.entry.js.map → p-05791ffa.entry.js.map} +0 -0
  483. /package/dist/build/{p-899f7d36.entry.js.map → p-0a0ef10d.entry.js.map} +0 -0
  484. /package/dist/build/{p-9ef541e4.entry.js.map → p-0ffe0165.entry.js.map} +0 -0
  485. /package/dist/build/{p-7b7366dc.entry.js.map → p-1bde15ae.entry.js.map} +0 -0
  486. /package/dist/build/{p-4b6b1355.entry.js.map → p-1c9405d8.entry.js.map} +0 -0
  487. /package/dist/build/{p-f82506c3.entry.js.map → p-21fb542a.entry.js.map} +0 -0
  488. /package/dist/build/{p-0dc168c5.entry.js.map → p-26b75731.entry.js.map} +0 -0
  489. /package/dist/build/{p-82751d58.entry.js.map → p-3b14bbef.entry.js.map} +0 -0
  490. /package/dist/build/{p-5dcdb2d0.entry.js.map → p-41949138.entry.js.map} +0 -0
  491. /package/dist/build/{p-dae4a24d.entry.js.map → p-4205f7e2.entry.js.map} +0 -0
  492. /package/dist/build/{p-26491670.entry.js.map → p-476985ba.entry.js.map} +0 -0
  493. /package/dist/build/{p-70de0ecc.entry.js.map → p-4c6e5337.entry.js.map} +0 -0
  494. /package/dist/build/{p-0a6b03d0.entry.js.map → p-505650b6.entry.js.map} +0 -0
  495. /package/dist/build/{p-4fb83e8d.entry.js.map → p-6620dc05.entry.js.map} +0 -0
  496. /package/dist/build/{p-f4c0923b.entry.js.map → p-697c465d.entry.js.map} +0 -0
  497. /package/dist/build/{p-58efc94c.entry.js.map → p-6cddddb7.entry.js.map} +0 -0
  498. /package/dist/build/{p-74dba9db.entry.js.map → p-72eb70f4.entry.js.map} +0 -0
  499. /package/dist/build/{p-a8f60c0c.entry.js.map → p-7c7e6f26.entry.js.map} +0 -0
  500. /package/dist/build/{p-17ae0ec7.entry.js.map → p-7f4d26c4.entry.js.map} +0 -0
  501. /package/dist/build/{p-4ac9e128.entry.js.map → p-8cc3f69f.entry.js.map} +0 -0
  502. /package/dist/build/{p-0b6db18f.entry.js.map → p-929b47c9.entry.js.map} +0 -0
  503. /package/dist/build/{p-f932bde5.entry.js.map → p-96cb3e48.entry.js.map} +0 -0
  504. /package/dist/build/{p-c7c3d389.entry.js.map → p-9da1d488.entry.js.map} +0 -0
  505. /package/dist/build/{p-d5cba5af.entry.js.map → p-a3da31c4.entry.js.map} +0 -0
  506. /package/dist/build/{p-d3102227.entry.js.map → p-adfddeb6.entry.js.map} +0 -0
  507. /package/dist/build/{p-c62477c2.entry.js.map → p-bc366236.entry.js.map} +0 -0
  508. /package/dist/build/{p-e2ee74a9.entry.js.map → p-bce08b0e.entry.js.map} +0 -0
  509. /package/dist/build/{p-c585d909.entry.js.map → p-c9c0ae8d.entry.js.map} +0 -0
  510. /package/dist/build/{p-0a6e3e6f.entry.js.map → p-d37e0e66.entry.js.map} +0 -0
  511. /package/dist/build/{p-f9efc1e5.entry.js.map → p-d894e0b1.entry.js.map} +0 -0
  512. /package/dist/build/{p-222abd40.entry.js.map → p-df7f9328.entry.js.map} +0 -0
  513. /package/dist/build/{p-7435c88e.entry.js.map → p-e526cd42.entry.js.map} +0 -0
  514. /package/dist/build/{p-b8797794.entry.js.map → p-e63adc0d.entry.js.map} +0 -0
  515. /package/dist/build/{p-d6e8bf36.entry.js.map → p-ed2e7409.entry.js.map} +0 -0
  516. /package/dist/paperless/{p-456a3099.entry.js.map → p-05791ffa.entry.js.map} +0 -0
  517. /package/dist/paperless/{p-899f7d36.entry.js.map → p-0a0ef10d.entry.js.map} +0 -0
  518. /package/dist/paperless/{p-9ef541e4.entry.js.map → p-0ffe0165.entry.js.map} +0 -0
  519. /package/dist/paperless/{p-7b7366dc.entry.js.map → p-1bde15ae.entry.js.map} +0 -0
  520. /package/dist/paperless/{p-4b6b1355.entry.js.map → p-1c9405d8.entry.js.map} +0 -0
  521. /package/dist/paperless/{p-f82506c3.entry.js.map → p-21fb542a.entry.js.map} +0 -0
  522. /package/dist/paperless/{p-0dc168c5.entry.js.map → p-26b75731.entry.js.map} +0 -0
  523. /package/dist/paperless/{p-82751d58.entry.js.map → p-3b14bbef.entry.js.map} +0 -0
  524. /package/dist/paperless/{p-5dcdb2d0.entry.js.map → p-41949138.entry.js.map} +0 -0
  525. /package/dist/paperless/{p-dae4a24d.entry.js.map → p-4205f7e2.entry.js.map} +0 -0
  526. /package/dist/paperless/{p-26491670.entry.js.map → p-476985ba.entry.js.map} +0 -0
  527. /package/dist/paperless/{p-70de0ecc.entry.js.map → p-4c6e5337.entry.js.map} +0 -0
  528. /package/dist/paperless/{p-0a6b03d0.entry.js.map → p-505650b6.entry.js.map} +0 -0
  529. /package/dist/paperless/{p-4fb83e8d.entry.js.map → p-6620dc05.entry.js.map} +0 -0
  530. /package/dist/paperless/{p-f4c0923b.entry.js.map → p-697c465d.entry.js.map} +0 -0
  531. /package/dist/paperless/{p-58efc94c.entry.js.map → p-6cddddb7.entry.js.map} +0 -0
  532. /package/dist/paperless/{p-74dba9db.entry.js.map → p-72eb70f4.entry.js.map} +0 -0
  533. /package/dist/paperless/{p-a8f60c0c.entry.js.map → p-7c7e6f26.entry.js.map} +0 -0
  534. /package/dist/paperless/{p-17ae0ec7.entry.js.map → p-7f4d26c4.entry.js.map} +0 -0
  535. /package/dist/paperless/{p-4ac9e128.entry.js.map → p-8cc3f69f.entry.js.map} +0 -0
  536. /package/dist/paperless/{p-0b6db18f.entry.js.map → p-929b47c9.entry.js.map} +0 -0
  537. /package/dist/paperless/{p-f932bde5.entry.js.map → p-96cb3e48.entry.js.map} +0 -0
  538. /package/dist/paperless/{p-c7c3d389.entry.js.map → p-9da1d488.entry.js.map} +0 -0
  539. /package/dist/paperless/{p-d5cba5af.entry.js.map → p-a3da31c4.entry.js.map} +0 -0
  540. /package/dist/paperless/{p-d3102227.entry.js.map → p-adfddeb6.entry.js.map} +0 -0
  541. /package/dist/paperless/{p-c62477c2.entry.js.map → p-bc366236.entry.js.map} +0 -0
  542. /package/dist/paperless/{p-e2ee74a9.entry.js.map → p-bce08b0e.entry.js.map} +0 -0
  543. /package/dist/paperless/{p-c585d909.entry.js.map → p-c9c0ae8d.entry.js.map} +0 -0
  544. /package/dist/paperless/{p-0a6e3e6f.entry.js.map → p-d37e0e66.entry.js.map} +0 -0
  545. /package/dist/paperless/{p-f9efc1e5.entry.js.map → p-d894e0b1.entry.js.map} +0 -0
  546. /package/dist/paperless/{p-222abd40.entry.js.map → p-df7f9328.entry.js.map} +0 -0
  547. /package/dist/paperless/{p-7435c88e.entry.js.map → p-e526cd42.entry.js.map} +0 -0
  548. /package/dist/paperless/{p-b8797794.entry.js.map → p-e63adc0d.entry.js.map} +0 -0
  549. /package/dist/paperless/{p-d6e8bf36.entry.js.map → p-ed2e7409.entry.js.map} +0 -0
  550. /package/dist/types/components/{deprecated/atoms → atoms}/stepper/line/stepper-line.component.d.ts +0 -0
@@ -75,10 +75,10 @@ const NavigationItem = class {
75
75
  render() {
76
76
  const TagType = this.as;
77
77
  const active = asBoolean.asBoolean(this.active) || this.class?.includes('active');
78
- return (index.h(index.Host, { key: '7ff5ea7bb9efd2e81050abf41b27d0be3794133b', class: cn.cn('p-navigation-item inline-block', this.class) }, index.h(TagType, { key: 'b6ce8c6b8d2a7e61bd37ad7fb94b4442c251afa0', class: navigationItem({
78
+ return (index.h(index.Host, { key: '79994e86292f09cfc75ff2f3975030ee9e9dce06', class: cn.cn('p-navigation-item inline-block', this.class) }, index.h(TagType, { key: 'bed91b063af5892b731a872fbb0949b539f4591c', class: navigationItem({
79
79
  icon: !!this.icon,
80
80
  active,
81
- }), href: this.href, target: this.target }, index.h("div", { key: '753aaf2cd3a0fc728557c296c54e154ab14f3059', class: navigationItemIconContainer({ active }) }, index.h("p-icon", { key: '58e57b38f913e95971b6fb56492e7a568bd69622', variant: this.icon })), index.h("span", { key: 'eccac44f523ad489977ee25bfad972fb19703bae', class: this.counter && 'has-counter' }, index.h("slot", { key: '2659769537c022e51aa3a223e1f57638dbe66274' })), !!this.counter && this.counter !== '0' && (index.h("p-badge", { key: '7077e0e0a9891e7f486231a97da2100e331d938e' }, this.counter)), !!this.loading && index.h("p-loader", { key: '14e7a7ddc195707cfd50a71f488938dd3a7e2a32', class: 'ml-auto' }))));
81
+ }), href: this.href, target: this.target }, index.h("div", { key: '207d64b0404e1bbd61c01ebbe48011e3c5bb4f92', class: navigationItemIconContainer({ active }) }, index.h("p-icon", { key: 'babf7766bd3e6c4abe920e080c36d2bf940ea480', variant: this.icon })), index.h("span", { key: '64bcff00187439b6d894682f3b3b77d4f34e5865', class: this.counter && 'has-counter' }, index.h("slot", { key: '7810eb410817292b67cb540bc406aca91c07c5b3' })), !!this.counter && this.counter !== '0' && (index.h("p-badge", { key: 'b1da55a598b0e7ee9af2d8f8b5814af7ee7fc1a9' }, this.counter)), !!this.loading && index.h("p-loader", { key: '0617f2cbd8a40642ec4fd992ca0daed95c44d0bf', class: 'ml-auto' }))));
82
82
  }
83
83
  };
84
84
  NavigationItem.style = navigationItemComponentCss;
@@ -13,7 +13,7 @@ const NavigationSection = class {
13
13
  */
14
14
  header;
15
15
  render() {
16
- return (index.h(index.Host, { key: '2d6be2c8ff3ded760dfa38814d41798e34e668bd', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (index.h("p-navigation-title", { key: '811de7004feeb785fb30bdff062e150c1733bc0f' }, this.header)), index.h("div", { key: '97c9e1701288c4a4e56205800eafc0638ef5252c', class: 'flex flex-col' }, index.h("slot", { key: '5a11e97a2c4c38393c625e626665572aea79d106' }))));
16
+ return (index.h(index.Host, { key: 'f4f2bcc2770ff5c35006c726fa8eaa766c0576c1', class: 'p-navigation-section flex flex-col gap-2' }, this.header?.length > 0 && (index.h("p-navigation-title", { key: '54a51bf17ffcc7ab14f254e22ab912d479ecf47e' }, this.header)), index.h("div", { key: '3f0d55eda9f0f0dcf6a5d12be309d9310a29d67d', class: 'flex flex-col' }, index.h("slot", { key: '47119d190320bf6e916ee65b53db59f0b7308e25' }))));
17
17
  }
18
18
  };
19
19
  NavigationSection.style = navigationSectionComponentCss;
@@ -9,7 +9,7 @@ const NavigationTitle = class {
9
9
  index.registerInstance(this, hostRef);
10
10
  }
11
11
  render() {
12
- return (index.h(index.Host, { key: 'eb18e6b6cb338e7a1492a2f1730760f065a497a9', class: 'p-navigation-title text-xs font-medium text-black-teal-300' }, index.h("slot", { key: 'e98dd025038ddf4c893eaca629c3cc5c5b20dfdc' })));
12
+ return (index.h(index.Host, { key: '677084de2fb9af41886fae8c566b44e90987ad0c', class: 'p-navigation-title text-xs font-medium text-black-teal-300' }, index.h("slot", { key: 'df6ff2eaf7d781f15d3291d430526e84e87cf0c4' })));
13
13
  }
14
14
  };
15
15
  NavigationTitle.style = navigationTitleComponentCss;
@@ -86,12 +86,12 @@ const PaginationPagesItem = class {
86
86
  */
87
87
  disabled = false;
88
88
  render() {
89
- return (index.h(index.Host, { key: '77b82a4a8328ec0d84b316f39f9c258934382301', class: item({
89
+ return (index.h(index.Host, { key: '370f6de694de331a35e2c773fd77dffd4a433449', class: item({
90
90
  variant: this.variant,
91
91
  active: this.active,
92
92
  hover: this.hover,
93
93
  disabled: this.disabled,
94
- }) }, index.h("slot", { key: 'eeb5bcc6752a18593f904a957be76de280f63388' })));
94
+ }) }, index.h("slot", { key: 'ba79922cdad66e08de077e59607abc05d4a6c262' })));
95
95
  }
96
96
  };
97
97
  PaginationPagesItem.style = paginationPagesItemComponentCss;
@@ -73,12 +73,12 @@ const Pagination = class {
73
73
  _hasPaginationPages = true;
74
74
  render() {
75
75
  const hidePageSizeSelect = this.hideOnSinglePage && this.total <= this.pageSizeOptions?.[0];
76
- return (index.h(index.Host, { key: '8fb151e74ca287270170b26ab6dbf4e7b82b8b55', class: pagination$1({
76
+ return (index.h(index.Host, { key: 'dad75f3cb1a1bb3ceb52371f3f9b336c55bd0968', class: pagination$1({
77
77
  hidden: (hidePageSizeSelect && !this._hasPaginationPages) ||
78
78
  (!this.enablePaginationSize && !this.enablePaginationPages),
79
- }) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: '9ca0d1e33dcd8b24754b232e52802a644a1b5b81' }, index.h("p-pagination-size", { key: '1117e9c5fe76898f0f2a81070ea46c7ac49049fe', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
79
+ }) }, this.enablePaginationPages && this.enablePaginationSize && (index.h(index.Fragment, { key: '84c04d7410f17ee51584a2a99c97269111f10925' }, index.h("p-pagination-size", { key: 'c6db1b39dca87fb29c03898bd9e0edde9a562566', hidden: hidePageSizeSelect, size: this.pageSize, sizeOptions: this.pageSizeOptions, onSizeChange: ({ detail }) => this._changePageSize(detail) }), !hidePageSizeSelect &&
80
80
  this.hideOnSinglePage &&
81
- this._hasPaginationPages && (index.h("p-divider", { key: 'af3262c8af7bf18f90358eafb22271675535e924', variant: 'vertical', class: 'mx-0 h-4 text-human-beige-700' })))), this.enablePaginationPages && (index.h("p-pagination-pages", { key: 'd95fb3064e3c7156d9ee515c37038359f68be37b', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
81
+ this._hasPaginationPages && (index.h("p-divider", { key: '1c4c340bcf7cae54f823ef9ac0a47e217adfb5e4', variant: 'vertical', class: 'mx-0 h-4 text-human-beige-700' })))), this.enablePaginationPages && (index.h("p-pagination-pages", { key: 'd484f11908581d0b0ed8cd1415766b37de97a886', pageSize: this.pageSize, total: this.total, page: this.page, hideOnSinglePage: this.hideOnSinglePage, onPageChange: ({ detail }) => this.pageChange.emit(detail), onPagesChange: ({ detail }) => {
82
82
  this._hasPaginationPages = detail > 1;
83
83
  this.pagesChange.emit(detail);
84
84
  } }))));
@@ -139,7 +139,7 @@ const PaginationPages = class {
139
139
  this._generate();
140
140
  }
141
141
  render() {
142
- return (index.h(index.Host, { key: 'aa9a4c8d7f790b4ff6ed8b662581e3202f2b1d71', class: pagination({
142
+ return (index.h(index.Host, { key: '00be81f328b6fc3b6c26e8071fc1c30e588a9c58', class: pagination({
143
143
  hidden: this.hideOnSinglePage && this._set?.length === 3,
144
144
  }) }, this._set?.map(p => {
145
145
  if (p.type === 'previous' || p.type === 'next') {
@@ -18,7 +18,7 @@ const Portal = class {
18
18
  this._moved ? this._el.remove() : (this._moved = true);
19
19
  }
20
20
  render() {
21
- return (index.h(index.Host, { key: '4dc8c030ff629d3b44072c6abd4767cc8cbe33af' }, index.h("slot", { key: 'adc1b43bc7454423ed39af107d87a5fda7501a11' })));
21
+ return (index.h(index.Host, { key: '7bb00af33aa3d9f2ce92c74b3ba8733b5aa207ca' }, index.h("slot", { key: '4ca5ee281205812eed199bb1dbeff4f4b9374f16' })));
22
22
  }
23
23
  };
24
24
 
@@ -104,11 +104,11 @@ const Radio = class {
104
104
  }
105
105
  render() {
106
106
  const id = this.id?.length ? this.id : this._nonce;
107
- return (index.h(index.Host, { key: '6d017e7ebcd090020cc0f3af4fff236b1ff4af2a', class: 'p-radio' }, index.h("label", { key: '8a4b729389670ab394e196028c0c84663d1fc4a1', htmlFor: id, class: 'flex items-center justify-start gap-2 text-black-teal' }, index.h("div", { key: '96ab595b9487a3cbba88807168812186fc163e49', class: 'relative flex flex-shrink-0 items-center' }, index.h("input", { key: '106c86f0896276fcaede0af9deaa4a354f666abe', class: radio({
107
+ return (index.h(index.Host, { key: 'cf7536ffc4b7ddf8d0e67571be7c062660c6dc36', class: 'p-radio' }, index.h("label", { key: 'f8c4a5cf6258f020eeac15c5ce14048579495c2c', htmlFor: id, class: 'flex items-center justify-start gap-2 text-black-teal' }, index.h("div", { key: 'c497684d3c4aff17a62a17682c39501c77b28c11', class: 'relative flex flex-shrink-0 items-center' }, index.h("input", { key: '4dca4f8cc1d7fbb1e3d4b2b09c7e326bf087d40e', class: radio({
108
108
  disabled: asBoolean.asBoolean(this.disabled),
109
- }), type: 'radio', id: id, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean.asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), index.h("div", { key: '6b3d72b31e2225f39b2f47a79feaf1006e291120', class: circle({
109
+ }), type: 'radio', id: id, name: this.name, required: this.required, value: this.value, checked: this.checked, disabled: asBoolean.asBoolean(this.disabled), onChange: ev => this._onChange(ev) }), index.h("div", { key: 'c33272fac792dfb69ddd315f1c423f8bfd429b33', class: circle({
110
110
  disabled: asBoolean.asBoolean(this.disabled),
111
- }) })), index.h("slot", { key: 'c2c9e252c9b10b5362ac9c98afb3f71323abf43f' }))));
111
+ }) })), index.h("slot", { key: 'fec5314d43c8bde9fd367c004f5e417a26cfe3ab' }))));
112
112
  }
113
113
  _onChange(ev) {
114
114
  if (asBoolean.asBoolean(this.disabled)) {
@@ -300,7 +300,7 @@ const Select = class {
300
300
  }
301
301
  }
302
302
  render() {
303
- return (index.h("p-dropdown", { key: 'd75c32e8830d0d2c33e3fee1835079b5b959485a', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev), usePortal: this.usePortal, strategy: this.strategy }, index.h("p-field-container", { key: '256fbe72c653fda4c890d39dbd2cdbfb5b3a1163', slot: 'trigger', variant: 'write', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, index.h("p-button", { key: '791f446440511f2768c5199c0853775e1baa17f8', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, index.h("div", { key: '96f3a59c66cbd21b82d18ac6ee471cd026da47b2', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()));
303
+ return (index.h("p-dropdown", { key: '08a2cd3461d8d9e7acaa6572ea27246766c01185', disableTriggerClick: true, calculateWidth: true, insideClick: true, scrollable: this.enableAutocomplete ? 'large' : true, show: this._showDropdown, onIsOpen: ev => this._onDropdownOpen(ev), usePortal: this.usePortal, strategy: this.strategy }, index.h("p-field-container", { key: '759513ea56860f6a309a3eecb789716fb235018b', slot: 'trigger', variant: 'write', prefix: this.prefix, label: this.label, helper: this.helper, required: this.required, error: this.error, errorPlacement: 'top-start', forceShowTooltip: this.error?.length && this._showDropdown }, index.h("p-button", { key: '4c9879f4f95b9c8e44cd433bd23d3130c28149f6', class: 'w-full', slot: 'content', variant: 'secondary', size: this.size, chevron: this.showChevron, disabled: this.disabled, active: this._showDropdown, icon: this.icon, onClick: ev => this._onClick(ev) }, index.h("div", { key: 'd5e7bdf3db55e67da2ff9756d5a2118d6b3c8f70', class: 'relative min-w-0 flex-1', ref: ref => (this._inputRef = ref) }, this._displayValue))), this.loading ? this._getLoadingItems() : this._getItems(), this.showAddItem && this._getAddItem()));
304
304
  }
305
305
  documentClickHandler(event) {
306
306
  if (!this._showDropdown || childOf.childOfComposed(event, this._el)) {
@@ -13,7 +13,7 @@ const SliderIndicator = class {
13
13
  */
14
14
  active = false;
15
15
  render() {
16
- return (index.h(index.Host, { key: '7c720a5583961de1bfbb98a45a9508f21f46d964', class: `p-slider-indicator ${this.active && 'active'}` }));
16
+ return (index.h(index.Host, { key: 'd9cc5d71cf33a58c8d43f6dab9a909c2d06f2d2f', class: `p-slider-indicator ${this.active && 'active'}` }));
17
17
  }
18
18
  };
19
19
  SliderIndicator.style = sliderIndicatorComponentCss;
@@ -29,7 +29,7 @@ const Smile = class {
29
29
  */
30
30
  variant = 'modal';
31
31
  render() {
32
- return (index.h(index.Host, { key: '3d2892748994e5ffe19911528c5a0015a9254c9e', class: smile({ variant: this.variant }) }, index.h("div", { key: 'd17cedb38bc1256692c087fc095346a7efca18f5', class: 'absolute bottom-0 left-0 h-full w-full text-off-white-500', innerHTML: smileSvg })));
32
+ return (index.h(index.Host, { key: 'ce399fe0541567baa86813a2d87815900c4e0ecf', class: smile({ variant: this.variant }) }, index.h("div", { key: '8779b1bcb694671d615164712511ce4e721b84ae', class: 'absolute bottom-0 left-0 h-full w-full text-off-white-500', innerHTML: smileSvg })));
33
33
  }
34
34
  };
35
35
  Smile.style = smileComponentCss;
@@ -25,8 +25,8 @@ const Status = class {
25
25
  */
26
26
  iconRotate;
27
27
  render() {
28
- return (index.h(index.Host, { key: '12747e2009650f7e5e52eb439b211f222bceb5ad', class: `p-status variant-${this.variant}
29
- }` }, this._getIcon(), index.h("slot", { key: 'ca582f23ee7e8368817bdd3b603e2c63e834e2d1' })));
28
+ return (index.h(index.Host, { key: 'be9bde36193a5cb33ef365ce5cf78637f9a9ad98', class: `p-status variant-${this.variant}
29
+ }` }, this._getIcon(), index.h("slot", { key: '847a22130404a065832c703aec9bcc171f20050b' })));
30
30
  }
31
31
  _getIcon() {
32
32
  const icon = this.icon || this._getVariantIcon();
@@ -1,21 +1,95 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-BDuPp9vl.js');
4
+ var index$1 = require('./index-mudu9vpz.js');
5
+ var asBoolean = require('./as-boolean-C1PzA22I.js');
6
+ require('./clsx-BtxeOLZW.js');
4
7
 
5
- const stepperItemComponentCss = ".absolute{position:absolute!important}.relative{position:relative!important}.left-1\\/2{left:50%!important}.top-0{top:0!important}.order-2{order:2!important}.ml-0{margin-left:0!important}.mr-4{margin-right:1rem!important}.flex{display:flex!important}.h-4{height:1rem!important}.min-h-\\[1rem\\]{min-height:1rem!important}.w-4{width:1rem!important}.w-full{width:100%!important}.min-w-\\[calc\\(100\\%-2rem\\)\\]{min-width:calc(100% - 2rem)!important}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.-translate-x-1\\/2,.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.bg-mystic-dark{--tw-bg-opacity:1!important;background-color:rgb(0 255 0/var(--tw-bg-opacity,1))!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}*{box-sizing:border-box}:host{align-items:flex-end;display:flex;justify-content:center;position:relative;width:100%}:host .content{--tw-text-opacity:1;color:rgb(0 255 255/var(--tw-text-opacity,1));font-size:.875rem;line-height:1.25rem;min-width:calc(100% - 2rem);white-space:nowrap}:host .circle{--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(0 255 0/var(--tw-bg-opacity,1));border-radius:9999px;color:rgb(255 255 255/var(--tw-text-opacity,1));display:flex;flex-shrink:0;height:1rem;justify-content:center;transition-duration:.5s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:1rem}:host .circle p-icon{display:flex!important;font-size:.625rem}:host([direction=horizontal]){flex:0;height:2.5rem}:host([direction=horizontal]) .content{min-width:0;order:1;position:absolute;top:0}:host([direction=horizontal]) .circle{order:2}:host([direction=vertical]){align-items:center;min-height:1rem}:host([direction=vertical]) .content{margin-left:1rem;order:2}:host([direction=vertical]) .circle{order:1}:host([active]) .content,:host([finished]) .content{--tw-text-opacity:1;color:rgb(255 192 203/var(--tw-text-opacity,1))}:host([active]) .circle,:host([finished]) .circle{--tw-bg-opacity:1;background-color:rgb(255 192 203/var(--tw-bg-opacity,1))}:host([direction=horizontal][align=start]) .content{left:0}:host([direction=horizontal][align=end]) .content{right:0}:host([direction=horizontal][align=center]) .content{--tw-translate-x:-50%;left:50%;text-align:center;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}:host([direction=vertical][content-position=start]){flex-direction:row-reverse}:host([direction=vertical][content-position=start]) .content{display:flex;justify-content:flex-end;margin-left:0;margin-right:1rem}.static{position:static!important}";
8
+ const stepperItemComponentCss = "*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-6{height:1.5rem!important}.w-6{width:1.5rem!important}.flex-row-reverse{flex-direction:row-reverse!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.justify-center{justify-content:center!important}.gap-2{gap:.5rem!important}.rounded-full{border-radius:9999px!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-dark-teal-400{--tw-border-opacity:1!important;border-color:rgb(51 116 109/var(--tw-border-opacity,1))!important}.bg-dark-teal-400{--tw-bg-opacity:1!important;background-color:rgb(51 116 109/var(--tw-bg-opacity,1))!important}.bg-dark-teal-50{--tw-bg-opacity:1!important;background-color:rgb(229 238 237/var(--tw-bg-opacity,1))!important}.text-center{text-align:center!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-medium{font-weight:500!important}.text-black-teal-400{--tw-text-opacity:1!important;color:rgb(53 85 80/var(--tw-text-opacity,1))!important}.text-black-teal-500{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-dark-teal-400{--tw-text-opacity:1!important;color:rgb(51 116 109/var(--tw-text-opacity,1))!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}";
6
9
 
10
+ const item = index$1.cva('flex gap-2', {
11
+ variants: {
12
+ align: {
13
+ start: 'items-start',
14
+ center: 'items-center',
15
+ end: 'items-end',
16
+ },
17
+ contentPosition: {
18
+ start: 'flex-row-reverse',
19
+ end: null
20
+ },
21
+ }
22
+ });
23
+ const circle = index$1.cva(['h-6 w-6 flex items-center justify-center', 'text-sm text-center font-medium', 'border border-solid border-dark-teal-400', 'rounded-full'], {
24
+ variants: {
25
+ finished: {
26
+ true: null,
27
+ false: null
28
+ },
29
+ active: {
30
+ true: null,
31
+ false: null
32
+ }
33
+ },
34
+ compoundVariants: [
35
+ {
36
+ finished: false,
37
+ active: false,
38
+ class: 'text-dark-teal-400 bg-dark-teal-50'
39
+ },
40
+ {
41
+ active: true,
42
+ finished: false,
43
+ class: 'text-white bg-dark-teal-400',
44
+ },
45
+ {
46
+ active: false,
47
+ finished: true,
48
+ class: 'text-white bg-dark-teal-400',
49
+ }
50
+ ]
51
+ });
52
+ const content = index$1.cva('text-sm font-medium', {
53
+ variants: {
54
+ finished: {
55
+ true: null,
56
+ false: null
57
+ },
58
+ active: {
59
+ true: null,
60
+ false: null
61
+ }
62
+ },
63
+ compoundVariants: [
64
+ {
65
+ finished: false,
66
+ active: false,
67
+ class: 'text-black-teal-400'
68
+ },
69
+ {
70
+ active: true,
71
+ finished: false,
72
+ class: 'text-black-teal-500',
73
+ },
74
+ {
75
+ active: false,
76
+ finished: true,
77
+ class: 'text-black-teal-500',
78
+ }
79
+ ]
80
+ });
7
81
  const StepperItem = class {
8
82
  constructor(hostRef) {
9
83
  index.registerInstance(this, hostRef);
10
84
  }
11
85
  /**
12
- * The alignment of the step content
86
+ * The number of the step
13
87
  */
14
- align = 'center';
88
+ number = 1;
15
89
  /**
16
- * The direction of the stepper step
90
+ * The alignment of the content in case of vertical direction
17
91
  */
18
- direction = 'horizontal';
92
+ align = 'center';
19
93
  /**
20
94
  * The position of the content in case of vertical direction
21
95
  */
@@ -29,7 +103,16 @@ const StepperItem = class {
29
103
  */
30
104
  active = false;
31
105
  render() {
32
- return (index.h(index.Host, { key: '00b12417594b4549a7cf81325c4cc96d8f0210c2', class: "p-stepper-item" }, index.h("div", { key: 'd0e45b771c701974859771fa1e785bd3ee70d4ea', class: "circle" }, this.finished && index.h("p-icon", { key: '7b911928983e885ad0cb8b589b50491f2c9bb917', variant: "checkmark" })), index.h("div", { key: 'e3be25a34e07e51c39d2a45e13a8678d32327c7c', class: "content" }, index.h("slot", { key: '684ab813c54847a46de04d0413af98b1c438b7ab', name: "content" }))));
106
+ return (index.h("div", { key: '31bdc65cb996e82942a2669150516d52c612a6de', class: item({
107
+ align: this.align,
108
+ contentPosition: this.contentPosition
109
+ }) }, index.h("div", { key: 'c8a00a2c7345508a154116f8a11fb1514b819328', class: circle({
110
+ active: asBoolean.asBoolean(this.active),
111
+ finished: asBoolean.asBoolean(this.finished)
112
+ }) }, this.number), index.h("div", { key: '30206086d8f9b97695071865897326bfd73cdf55', class: content({
113
+ active: asBoolean.asBoolean(this.active),
114
+ finished: asBoolean.asBoolean(this.finished)
115
+ }) }, index.h("slot", { key: '9235d3ad7efe5c8264177b653c713233e193eef1' }))));
33
116
  }
34
117
  };
35
118
  StepperItem.style = stepperItemComponentCss;
@@ -1 +1 @@
1
- {"file":"p-stepper-item.entry.cjs.js","mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,g2GAAg2G;;MCOn3G,WAAW,GAAA,MAAA;;;;AACvB;;AAEG;IACsB,KAAK,GAA+B,QAAQ;AAErE;;AAEG;IACsB,SAAS,GACjC,YAAY;AAEb;;AAEG;IACsB,eAAe,GAAoB,KAAK;AAEjE;;AAEG;IACsB,QAAQ,GAAY,KAAK;AAElD;;AAEG;IACsB,MAAM,GAAY,KAAK;IAEhD,MAAM,GAAA;AACL,QAAA,QACCA,OAAC,CAAAC,UAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,gBAAgB,EAAA,EAC3BD,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,QAAQ,EAAA,EACjB,IAAI,CAAC,QAAQ,IAAIA,OAAQ,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,OAAO,EAAC,WAAW,GAAG,CAC3C,EACNA,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EACnBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,GAAG,CAClB,CACA;;;;;;;","names":["h","Host"],"sources":["src/components/deprecated/atoms/stepper/item/stepper-item.component.scss?tag=p-stepper-item&encapsulation=shadow","src/components/deprecated/atoms/stepper/item/stepper-item.component.tsx"],"sourcesContent":[":host {\n\t@apply relative flex w-full items-end justify-center;\n\n\t.content {\n\t\t@apply min-w-[calc(100%-2rem)] whitespace-nowrap;\n\t\t@apply text-sm text-storm-light;\n\t}\n\n\t.circle {\n\t\t@apply transition duration-500 ease-in-out;\n\t\t@apply flex items-center justify-center flex-shrink-0;\n\t\t@apply h-4 w-4 rounded-full;\n\t\t@apply bg-mystic-dark text-white;\n\n\t\tp-icon {\n\t\t\t@apply flex #{!important};\n\t\t\tfont-size: 0.625rem;\n\t\t}\n\t}\n}\n\n:host([direction='horizontal']) {\n\tflex: 0;\n\t@apply h-10;\n\n\t.content {\n\t\t@apply absolute top-0 min-w-0;\n\t\t@apply order-1;\n\t}\n\n\t.circle {\n\t\t@apply order-2;\n\t}\n}\n\n:host([direction='vertical']) {\n\t@apply min-h-[1rem] items-center;\n\n\t.content {\n\t\t@apply order-2 ml-4;\n\t}\n\n\t.circle {\n\t\t@apply order-1;\n\t}\n}\n\n:host([active]),\n:host([finished]) {\n\t.content {\n\t\t@apply text-indigo;\n\t}\n\n\t.circle {\n\t\t@apply bg-indigo;\n\t}\n}\n\n:host([direction='horizontal'][align='start']) {\n\t.content {\n\t\t@apply left-0;\n\t}\n}\n\n:host([direction='horizontal'][align='end']) {\n\t.content {\n\t\t@apply right-0;\n\t}\n}\n\n:host([direction='horizontal'][align='center']) {\n\t.content {\n\t\t@apply left-1/2 -translate-x-1/2 transform text-center;\n\t}\n}\n\n:host([direction='vertical'][content-position='start']) {\n\t@apply flex-row-reverse;\n\n\t.content {\n\t\t@apply ml-0 mr-4 flex justify-end;\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-stepper-item',\n\tstyleUrl: 'stepper-item.component.scss',\n\tshadow: true,\n})\nexport class StepperItem {\n\t/**\n\t * The alignment of the step content\n\t */\n\t@Prop({ reflect: true }) align: 'start' | 'center' | 'end' = 'center';\n\n\t/**\n\t * The direction of the stepper step\n\t */\n\t@Prop({ reflect: true }) direction: 'horizontal' | 'vertical' =\n\t\t'horizontal';\n\n\t/**\n\t * The position of the content in case of vertical direction\n\t */\n\t@Prop({ reflect: true }) contentPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Wether the step is finished\n\t */\n\t@Prop({ reflect: true }) finished: boolean = false;\n\n\t/**\n\t * Wether the step is active\n\t */\n\t@Prop({ reflect: true }) active: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-stepper-item\">\n\t\t\t\t<div class=\"circle\">\n\t\t\t\t\t{this.finished && <p-icon variant=\"checkmark\" />}\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\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"p-stepper-item.entry.cjs.js","mappings":";;;;;;;AAAA,MAAM,uBAAuB,GAAG,g6CAAg6C;;ACIh8C,MAAM,IAAI,GAAGA,WAAG,CACf,YAAY,EACZ;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,KAAK,EAAE;AACN,YAAA,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,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAA,CACH,CACD;;;;;;;","names":["cva","h","asBoolean"],"sources":["src/components/atoms/stepper/item/stepper-item.component.css?tag=p-stepper-item&encapsulation=shadow","src/components/atoms/stepper/item/stepper-item.component.tsx"],"sourcesContent":["","import { Component, h, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst item = cva(\n\t'flex gap-2',\n\t{\n\t\tvariants: {\n\t\t\talign: {\n\t\t\t\tstart: 'items-start',\n\t\t\t\tcenter: 'items-center',\n\t\t\t\tend: 'items-end',\n\t\t\t},\n\t\t\tcontentPosition: {\n\t\t\t\tstart: 'flex-row-reverse',\n\t\t\t\tend: null\n\t\t\t},\n\t\t}\n\t}\n);\n\nconst circle = cva(['h-6 w-6 flex items-center justify-center', 'text-sm text-center font-medium', 'border border-solid border-dark-teal-400', 'rounded-full'], {\n\tvariants: {\n\t\tfinished: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfinished: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-dark-teal-400 bg-dark-teal-50'\n\t\t},\n\t\t{\n\t\t\tactive: true,\n\t\t\tfinished: false,\n\t\t\tclass: 'text-white bg-dark-teal-400',\n\t\t},\n\t\t{\n\t\t\tactive: false,\n\t\t\tfinished: true,\n\t\t\tclass: 'text-white bg-dark-teal-400',\n\n\t\t}\n\t]\n})\n\nconst content = cva('text-sm font-medium', {\n\tvariants: {\n\t\tfinished: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfinished: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-black-teal-400'\n\t\t},\n\t\t{\n\t\t\tactive: true,\n\t\t\tfinished: false,\n\t\t\tclass: 'text-black-teal-500',\n\t\t},\n\t\t{\n\t\t\tactive: false,\n\t\t\tfinished: true,\n\t\t\tclass: 'text-black-teal-500',\n\n\t\t}\n\t]\n})\n\n@Component({\n\ttag: 'p-stepper-item',\n\tstyleUrl: 'stepper-item.component.css',\n\tshadow: true,\n})\nexport class StepperItem {\n\t/**\n\t * The number of the step\n\t */\n\t@Prop() number: number = 1;\n\n\t/**\n\t * The alignment of the content in case of vertical direction\n\t */\n\t@Prop() align: 'start' | 'center' | 'end' = 'center';\n\n\t/**\n\t * The position of the content in case of vertical direction\n\t */\n\t@Prop() contentPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Wether the step is finished\n\t */\n\t@Prop() finished: boolean = false;\n\n\t/**\n\t * Wether the step is active\n\t */\n\t@Prop() active: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<div class={item({\n\t\t\t\talign: this.align,\n\t\t\t\tcontentPosition: this.contentPosition\n\t\t\t})}>\n\t\t\t\t<div class={circle({\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\tfinished: asBoolean(this.finished)\n\t\t\t\t})}>\n\t\t\t\t\t{this.number}\n\t\t\t\t</div>\n\t\t\t\t<div class={content({\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\tfinished: asBoolean(this.finished)\n\t\t\t\t})}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"p-stepper-item.entry.cjs.js","sources":["src/components/deprecated/atoms/stepper/item/stepper-item.component.scss?tag=p-stepper-item&encapsulation=shadow","src/components/deprecated/atoms/stepper/item/stepper-item.component.tsx"],"sourcesContent":[":host {\n\t@apply relative flex w-full items-end justify-center;\n\n\t.content {\n\t\t@apply min-w-[calc(100%-2rem)] whitespace-nowrap;\n\t\t@apply text-sm text-storm-light;\n\t}\n\n\t.circle {\n\t\t@apply transition duration-500 ease-in-out;\n\t\t@apply flex items-center justify-center flex-shrink-0;\n\t\t@apply h-4 w-4 rounded-full;\n\t\t@apply bg-mystic-dark text-white;\n\n\t\tp-icon {\n\t\t\t@apply flex #{!important};\n\t\t\tfont-size: 0.625rem;\n\t\t}\n\t}\n}\n\n:host([direction='horizontal']) {\n\tflex: 0;\n\t@apply h-10;\n\n\t.content {\n\t\t@apply absolute top-0 min-w-0;\n\t\t@apply order-1;\n\t}\n\n\t.circle {\n\t\t@apply order-2;\n\t}\n}\n\n:host([direction='vertical']) {\n\t@apply min-h-[1rem] items-center;\n\n\t.content {\n\t\t@apply order-2 ml-4;\n\t}\n\n\t.circle {\n\t\t@apply order-1;\n\t}\n}\n\n:host([active]),\n:host([finished]) {\n\t.content {\n\t\t@apply text-indigo;\n\t}\n\n\t.circle {\n\t\t@apply bg-indigo;\n\t}\n}\n\n:host([direction='horizontal'][align='start']) {\n\t.content {\n\t\t@apply left-0;\n\t}\n}\n\n:host([direction='horizontal'][align='end']) {\n\t.content {\n\t\t@apply right-0;\n\t}\n}\n\n:host([direction='horizontal'][align='center']) {\n\t.content {\n\t\t@apply left-1/2 -translate-x-1/2 transform text-center;\n\t}\n}\n\n:host([direction='vertical'][content-position='start']) {\n\t@apply flex-row-reverse;\n\n\t.content {\n\t\t@apply ml-0 mr-4 flex justify-end;\n\t}\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-stepper-item',\n\tstyleUrl: 'stepper-item.component.scss',\n\tshadow: true,\n})\nexport class StepperItem {\n\t/**\n\t * The alignment of the step content\n\t */\n\t@Prop({ reflect: true }) align: 'start' | 'center' | 'end' = 'center';\n\n\t/**\n\t * The direction of the stepper step\n\t */\n\t@Prop({ reflect: true }) direction: 'horizontal' | 'vertical' =\n\t\t'horizontal';\n\n\t/**\n\t * The position of the content in case of vertical direction\n\t */\n\t@Prop({ reflect: true }) contentPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Wether the step is finished\n\t */\n\t@Prop({ reflect: true }) finished: boolean = false;\n\n\t/**\n\t * Wether the step is active\n\t */\n\t@Prop({ reflect: true }) active: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class=\"p-stepper-item\">\n\t\t\t\t<div class=\"circle\">\n\t\t\t\t\t{this.finished && <p-icon variant=\"checkmark\" />}\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\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"names":["h","Host"],"mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,g2GAAg2G;;MCOn3G,WAAW,GAAA,MAAA;;;;AACvB;;AAEG;IACsB,KAAK,GAA+B,QAAQ;AAErE;;AAEG;IACsB,SAAS,GACjC,YAAY;AAEb;;AAEG;IACsB,eAAe,GAAoB,KAAK;AAEjE;;AAEG;IACsB,QAAQ,GAAY,KAAK;AAElD;;AAEG;IACsB,MAAM,GAAY,KAAK;IAEhD,MAAM,GAAA;AACL,QAAA,QACCA,OAAC,CAAAC,UAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,gBAAgB,EAAA,EAC3BD,OAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,QAAQ,EAAA,EACjB,IAAI,CAAC,QAAQ,IAAIA,OAAQ,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,OAAO,EAAC,WAAW,GAAG,CAC3C,EACNA,OAAK,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,SAAS,EAAA,EACnBA,OAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,GAAG,CAClB,CACA;;;;;;;"}
1
+ {"version":3,"file":"p-stepper-item.entry.cjs.js","sources":["src/components/atoms/stepper/item/stepper-item.component.css?tag=p-stepper-item&encapsulation=shadow","src/components/atoms/stepper/item/stepper-item.component.tsx"],"sourcesContent":["","import { Component, h, Prop } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { asBoolean } from '../../../../utils/as-boolean';\n\nconst item = cva(\n\t'flex gap-2',\n\t{\n\t\tvariants: {\n\t\t\talign: {\n\t\t\t\tstart: 'items-start',\n\t\t\t\tcenter: 'items-center',\n\t\t\t\tend: 'items-end',\n\t\t\t},\n\t\t\tcontentPosition: {\n\t\t\t\tstart: 'flex-row-reverse',\n\t\t\t\tend: null\n\t\t\t},\n\t\t}\n\t}\n);\n\nconst circle = cva(['h-6 w-6 flex items-center justify-center', 'text-sm text-center font-medium', 'border border-solid border-dark-teal-400', 'rounded-full'], {\n\tvariants: {\n\t\tfinished: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfinished: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-dark-teal-400 bg-dark-teal-50'\n\t\t},\n\t\t{\n\t\t\tactive: true,\n\t\t\tfinished: false,\n\t\t\tclass: 'text-white bg-dark-teal-400',\n\t\t},\n\t\t{\n\t\t\tactive: false,\n\t\t\tfinished: true,\n\t\t\tclass: 'text-white bg-dark-teal-400',\n\n\t\t}\n\t]\n})\n\nconst content = cva('text-sm font-medium', {\n\tvariants: {\n\t\tfinished: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t},\n\t\tactive: {\n\t\t\ttrue: null,\n\t\t\tfalse: null\n\t\t}\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tfinished: false,\n\t\t\tactive: false,\n\t\t\tclass: 'text-black-teal-400'\n\t\t},\n\t\t{\n\t\t\tactive: true,\n\t\t\tfinished: false,\n\t\t\tclass: 'text-black-teal-500',\n\t\t},\n\t\t{\n\t\t\tactive: false,\n\t\t\tfinished: true,\n\t\t\tclass: 'text-black-teal-500',\n\n\t\t}\n\t]\n})\n\n@Component({\n\ttag: 'p-stepper-item',\n\tstyleUrl: 'stepper-item.component.css',\n\tshadow: true,\n})\nexport class StepperItem {\n\t/**\n\t * The number of the step\n\t */\n\t@Prop() number: number = 1;\n\n\t/**\n\t * The alignment of the content in case of vertical direction\n\t */\n\t@Prop() align: 'start' | 'center' | 'end' = 'center';\n\n\t/**\n\t * The position of the content in case of vertical direction\n\t */\n\t@Prop() contentPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * Wether the step is finished\n\t */\n\t@Prop() finished: boolean = false;\n\n\t/**\n\t * Wether the step is active\n\t */\n\t@Prop() active: boolean = false;\n\n\trender() {\n\t\treturn (\n\t\t\t<div class={item({\n\t\t\t\talign: this.align,\n\t\t\t\tcontentPosition: this.contentPosition\n\t\t\t})}>\n\t\t\t\t<div class={circle({\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\tfinished: asBoolean(this.finished)\n\t\t\t\t})}>\n\t\t\t\t\t{this.number}\n\t\t\t\t</div>\n\t\t\t\t<div class={content({\n\t\t\t\t\tactive: asBoolean(this.active),\n\t\t\t\t\tfinished: asBoolean(this.finished)\n\t\t\t\t})}>\n\t\t\t\t\t<slot />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n}\n"],"names":["cva","h","asBoolean"],"mappings":";;;;;;;AAAA,MAAM,uBAAuB,GAAG,g6CAAg6C;;ACIh8C,MAAM,IAAI,GAAGA,WAAG,CACf,YAAY,EACZ;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,KAAK,EAAE;AACN,YAAA,KAAK,EAAE,aAAa;AACpB,YAAA,MAAM,EAAE,cAAc;AACtB,YAAA,GAAG,EAAE,WAAW;AAChB,SAAA;AACD,QAAA,eAAe,EAAE;AAChB,YAAA,KAAK,EAAE,kBAAkB;AACzB,YAAA,GAAG,EAAE;AACL,SAAA;AACD;AACD,CAAA,CACD;AAED,MAAM,MAAM,GAAGA,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1px\\)\\]{margin-left:calc(.5rem - 1px)!important}.mr-\\[calc\\(\\.5rem-1px\\)\\]{margin-right:calc(.5rem - 1px)!important}.block{display:block!important}.h-\\[2px\\]{height:2px!important}.min-h-\\[1rem\\]{min-height:1rem!important}.w-\\[2px\\]{width:2px!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(0 255 0/var(--tw-bg-opacity,1));display:block;flex:1 1 auto;transition-duration:.5s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([direction=horizontal]){height:2px;margin-bottom:calc(.5rem - 1px)}:host([direction=vertical]){margin-left:calc(.5rem - 1px);margin-right:calc(.5rem - 1px);min-height:1rem;width:2px}:host([active]){--tw-bg-opacity:1;background-color:rgb(255 192 203/var(--tw-bg-opacity,1))}.static{position:static!important}";
5
+ const stepperLineComponentCss = ".mx-\\[calc\\(0\\.75rem-1px\\)\\]{margin-left:calc(.75rem - 1px)!important;margin-right:calc(.75rem - 1px)!important}.block{display:block!important}.h-\\[1px\\]{height:1px!important}.min-h-\\[1rem\\]{min-height:1rem!important}.w-\\[1px\\]{width:1px!important}.transition{transition-duration:.15s!important;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter!important;transition-timing-function:cubic-bezier(.4,0,.2,1)!important}.duration-500{transition-duration:.5s!important}*{box-sizing:border-box}:host{--tw-bg-opacity:1;background-color:rgb(222 219 213/var(--tw-bg-opacity,1));display:block;flex:1 1 auto;transition-duration:.5s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([direction=horizontal]){height:1px}:host([direction=vertical]){margin-left:calc(.75rem - 1px);margin-right:calc(.75rem - 1px);min-height:1rem;width:1px}:host([active=true]),:host([active]:not([active=false])){--tw-bg-opacity:1;background-color:rgb(51 116 109/var(--tw-bg-opacity,1))}.static{position:static!important}";
6
6
 
7
7
  const StepperLine = class {
8
8
  constructor(hostRef) {
@@ -17,7 +17,7 @@ const StepperLine = class {
17
17
  */
18
18
  direction = 'horizontal';
19
19
  render() {
20
- return index.h(index.Host, { key: 'a74b22d5041bfeb398976db6279fab8418adf406', class: "p-stepper-line" });
20
+ return index.h(index.Host, { key: 'e7dba68dafe58d56327f1d66518882c68bcdba7f' });
21
21
  }
22
22
  };
23
23
  StepperLine.style = stepperLineComponentCss;
@@ -1 +1 @@
1
- {"file":"p-stepper-line.entry.cjs.js","mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,kzCAAkzC;;MCOr0C,WAAW,GAAA,MAAA;;;;AACvB;;AAEG;IACsB,MAAM,GAAY,KAAK;AAEhD;;AAEG;IACsB,SAAS,GACjC,YAAY;IAEb,MAAM,GAAA;AACL,QAAA,OAAOA,QAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAC,gBAAgB,GAAQ;;;;;;;","names":["h","Host"],"sources":["src/components/deprecated/atoms/stepper/line/stepper-line.component.scss?tag=p-stepper-line&encapsulation=shadow","src/components/deprecated/atoms/stepper/line/stepper-line.component.tsx"],"sourcesContent":[":host {\n\t@apply flex-auto;\n\t@apply transition duration-500 ease-in-out;\n\n\t@apply block;\n\n\t@apply bg-mystic-dark;\n}\n\n:host([direction='horizontal']) {\n\t@apply mb-[calc(.5rem-1px)] h-[2px];\n}\n\n:host([direction='vertical']) {\n\t@apply ml-[calc(.5rem-1px)] mr-[calc(.5rem-1px)] min-h-[1rem] w-[2px];\n}\n\n:host([active]) {\n\t@apply bg-indigo;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-stepper-line',\n\tstyleUrl: 'stepper-line.component.scss',\n\tshadow: true,\n})\nexport class StepperLine {\n\t/**\n\t * Wether the line is active\n\t */\n\t@Prop({ reflect: true }) active: boolean = false;\n\n\t/**\n\t * The direction of the stepper line\n\t */\n\t@Prop({ reflect: true }) direction: 'horizontal' | 'vertical' =\n\t\t'horizontal';\n\n\trender() {\n\t\treturn <Host class=\"p-stepper-line\"></Host>;\n\t}\n}\n"],"version":3}
1
+ {"file":"p-stepper-line.entry.cjs.js","mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,0tCAA0tC;;MCO7uC,WAAW,GAAA,MAAA;;;;AACvB;;AAEG;IACsB,MAAM,GAAY,KAAK;AAEhD;;AAEG;IACsB,SAAS,GACjC,YAAY;IAEb,MAAM,GAAA;QACL,OAAOA,OAAA,CAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAG;;;;;;;","names":["h","Host"],"sources":["src/components/atoms/stepper/line/stepper-line.component.css?tag=p-stepper-line&encapsulation=shadow","src/components/atoms/stepper/line/stepper-line.component.tsx"],"sourcesContent":[":host {\n\t@apply flex-auto;\n\t@apply transition duration-500 ease-in-out;\n\n\t@apply block;\n\n\t@apply bg-off-white-700;\n}\n\n:host([direction='horizontal']) {\n\t@apply h-[1px];\n}\n\n:host([direction='vertical']) {\n\t@apply min-h-[1rem] w-[1px] mx-[calc(0.75rem-1px)];\n}\n\n:host([active=\"true\"]), :host([active]:not([active=\"false\"])) {\n\t@apply bg-dark-teal-400;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-stepper-line',\n\tstyleUrl: 'stepper-line.component.css',\n\tshadow: true,\n})\nexport class StepperLine {\n\t/**\n\t * Wether the line is active\n\t */\n\t@Prop({ reflect: true }) active: boolean = false;\n\n\t/**\n\t * The direction of the stepper line\n\t */\n\t@Prop({ reflect: true }) direction: 'horizontal' | 'vertical' =\n\t\t'horizontal';\n\n\trender() {\n\t\treturn <Host />;\n\t}\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"p-stepper-line.entry.cjs.js","sources":["src/components/deprecated/atoms/stepper/line/stepper-line.component.scss?tag=p-stepper-line&encapsulation=shadow","src/components/deprecated/atoms/stepper/line/stepper-line.component.tsx"],"sourcesContent":[":host {\n\t@apply flex-auto;\n\t@apply transition duration-500 ease-in-out;\n\n\t@apply block;\n\n\t@apply bg-mystic-dark;\n}\n\n:host([direction='horizontal']) {\n\t@apply mb-[calc(.5rem-1px)] h-[2px];\n}\n\n:host([direction='vertical']) {\n\t@apply ml-[calc(.5rem-1px)] mr-[calc(.5rem-1px)] min-h-[1rem] w-[2px];\n}\n\n:host([active]) {\n\t@apply bg-indigo;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-stepper-line',\n\tstyleUrl: 'stepper-line.component.scss',\n\tshadow: true,\n})\nexport class StepperLine {\n\t/**\n\t * Wether the line is active\n\t */\n\t@Prop({ reflect: true }) active: boolean = false;\n\n\t/**\n\t * The direction of the stepper line\n\t */\n\t@Prop({ reflect: true }) direction: 'horizontal' | 'vertical' =\n\t\t'horizontal';\n\n\trender() {\n\t\treturn <Host class=\"p-stepper-line\"></Host>;\n\t}\n}\n"],"names":["h","Host"],"mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,kzCAAkzC;;MCOr0C,WAAW,GAAA,MAAA;;;;AACvB;;AAEG;IACsB,MAAM,GAAY,KAAK;AAEhD;;AAEG;IACsB,SAAS,GACjC,YAAY;IAEb,MAAM,GAAA;AACL,QAAA,OAAOA,QAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,KAAK,EAAC,gBAAgB,GAAQ;;;;;;;"}
1
+ {"version":3,"file":"p-stepper-line.entry.cjs.js","sources":["src/components/atoms/stepper/line/stepper-line.component.css?tag=p-stepper-line&encapsulation=shadow","src/components/atoms/stepper/line/stepper-line.component.tsx"],"sourcesContent":[":host {\n\t@apply flex-auto;\n\t@apply transition duration-500 ease-in-out;\n\n\t@apply block;\n\n\t@apply bg-off-white-700;\n}\n\n:host([direction='horizontal']) {\n\t@apply h-[1px];\n}\n\n:host([direction='vertical']) {\n\t@apply min-h-[1rem] w-[1px] mx-[calc(0.75rem-1px)];\n}\n\n:host([active=\"true\"]), :host([active]:not([active=\"false\"])) {\n\t@apply bg-dark-teal-400;\n}\n","import { Component, h, Host, Prop } from '@stencil/core';\n\n@Component({\n\ttag: 'p-stepper-line',\n\tstyleUrl: 'stepper-line.component.css',\n\tshadow: true,\n})\nexport class StepperLine {\n\t/**\n\t * Wether the line is active\n\t */\n\t@Prop({ reflect: true }) active: boolean = false;\n\n\t/**\n\t * The direction of the stepper line\n\t */\n\t@Prop({ reflect: true }) direction: 'horizontal' | 'vertical' =\n\t\t'horizontal';\n\n\trender() {\n\t\treturn <Host />;\n\t}\n}\n"],"names":["h","Host"],"mappings":";;;;AAAA,MAAM,uBAAuB,GAAG,0tCAA0tC;;MCO7uC,WAAW,GAAA,MAAA;;;;AACvB;;AAEG;IACsB,MAAM,GAAY,KAAK;AAEhD;;AAEG;IACsB,SAAS,GACjC,YAAY;IAEb,MAAM,GAAA;QACL,OAAOA,OAAA,CAACC,UAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAG;;;;;;;"}
@@ -1,9 +1,28 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-BDuPp9vl.js');
4
+ var index$1 = require('./index-mudu9vpz.js');
5
+ require('./clsx-BtxeOLZW.js');
4
6
 
5
- const stepperComponentCss = ".flex{display:flex!important}.h-auto{height:auto!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}*{box-sizing:border-box}:host{display:flex}:host([direction=horizontal]){align-items:flex-end;height:auto}:host([direction=vertical]){align-items:flex-start;flex-direction:column;flex-wrap:wrap;width:100%}:host([direction=vertical][content-position=start]){align-items:flex-end}.static{position:static!important}";
7
+ const stepperComponentCss = "*{box-sizing:border-box}.static{position:static!important}.flex{display:flex!important}.h-auto{height:auto!important}.w-full{width:100%!important}.flex-col{flex-direction:column!important}.flex-wrap{flex-wrap:wrap!important}.items-start{align-items:flex-start!important}.items-end{align-items:flex-end!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}";
6
8
 
9
+ const stepper = index$1.cva(['flex gap-2'], {
10
+ variants: {
11
+ direction: {
12
+ vertical: 'w-full flex-col flex-wrap items-start',
13
+ horizontal: 'h-auto items-center'
14
+ },
15
+ contentPosition: {
16
+ start: null,
17
+ end: null
18
+ }
19
+ },
20
+ compoundVariants: [{
21
+ direction: 'vertical',
22
+ contentPosition: 'start',
23
+ class: 'items-end'
24
+ }]
25
+ });
7
26
  const Stepper = class {
8
27
  constructor(hostRef) {
9
28
  index.registerInstance(this, hostRef);
@@ -20,6 +39,10 @@ const Stepper = class {
20
39
  * The direction of the stepper
21
40
  */
22
41
  direction = 'horizontal';
42
+ /**
43
+ * The alignment of the content in case of vertical direction
44
+ */
45
+ align = 'center';
23
46
  /**
24
47
  * The position of the content in case of vertical direction
25
48
  */
@@ -58,15 +81,9 @@ const Stepper = class {
58
81
  if (item.direction !== this.direction && !directionChanged) {
59
82
  directionChanged = true;
60
83
  }
84
+ item.number = i + 1;
61
85
  item.direction = this.direction;
62
- item.align =
63
- this.direction === 'vertical'
64
- ? 'start'
65
- : i === 0
66
- ? 'start'
67
- : i === items?.length - 1
68
- ? 'end'
69
- : 'center';
86
+ item.align = this.direction === 'vertical' ? this.align : 'start';
70
87
  item.contentPosition = this.contentPosition;
71
88
  }
72
89
  if (directionChanged) {
@@ -111,14 +128,27 @@ const Stepper = class {
111
128
  }
112
129
  };
113
130
  _setStepperLineData = (stepperLine, item, nextItem, i, activeStep) => {
114
- const heightDiff = item.clientHeight / 2;
115
- const heightDiffNext = nextItem.clientHeight / 2;
131
+ let heightDiff = item.clientHeight - 24;
132
+ let heightDiffNext = nextItem.clientHeight - 24;
133
+ if (this.align === 'center') {
134
+ heightDiff = heightDiff / 2;
135
+ heightDiffNext = heightDiffNext / 2;
136
+ }
116
137
  stepperLine.direction = this.direction;
117
138
  stepperLine.active = i < activeStep;
118
139
  if (heightDiff > 0 && this.direction === 'vertical') {
119
- stepperLine.style.marginTop = `-${heightDiff / 16}rem`;
120
- stepperLine.style.marginBottom = `-${heightDiffNext / 16}rem`;
121
- stepperLine.style.minHeight = `calc(1rem + ${(heightDiff + heightDiffNext) / 16}rem)`;
140
+ let totalHeight = 0;
141
+ stepperLine.style.marginTop = "0";
142
+ stepperLine.style.marginBottom = "0";
143
+ if (this.align === 'start' || this.align === 'center') {
144
+ stepperLine.style.marginTop = `-${heightDiff / 16}rem`;
145
+ totalHeight += heightDiff;
146
+ }
147
+ if (this.align === 'center' || this.align === "end") {
148
+ stepperLine.style.marginBottom = `-${heightDiffNext / 16}rem`;
149
+ totalHeight += heightDiffNext;
150
+ }
151
+ stepperLine.style.minHeight = `calc(${(totalHeight / 16)}rem)`;
122
152
  }
123
153
  };
124
154
  componentDidLoad() {
@@ -131,12 +161,20 @@ const Stepper = class {
131
161
  }
132
162
  }
133
163
  render() {
134
- return (index.h(index.Host, { key: 'b28e2468eadad29e85e2201f95c83a57e545821f', class: 'p-stepper' }, index.h("slot", { key: 'c6b310552a73de9351ea74ac406f876a91f3cf46', onSlotchange: () => this._generateStepsOnce() })));
164
+ return (index.h("div", { key: 'a1c7897dc9bc10124df448557ef5fdba732f6d7c', class: stepper({ direction: this.direction }) }, index.h("slot", { key: '92b8c3491be2d344f89cec56f35699ca2a9d42b8', onSlotchange: () => this._generateStepsOnce() })));
165
+ }
166
+ _onAlignChange() {
167
+ this._generateStepsOnce();
168
+ }
169
+ _onDirectionChange() {
170
+ this._generateStepsOnce();
135
171
  }
136
172
  _onActiveStepChange() {
137
173
  this._generateStepsOnce();
138
174
  }
139
175
  static get watchers() { return {
176
+ "align": ["_onAlignChange"],
177
+ "direction": ["_onDirectionChange"],
140
178
  "activeStep": ["_onActiveStepChange"]
141
179
  }; }
142
180
  };
@@ -1 +1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B,IAAI,CAAC,kBAAkB,EAAE;;;;;;;;;;","names":["h","Host"],"sources":["src/components/deprecated/molecules/stepper/stepper.component.scss?tag=p-stepper&encapsulation=shadow","src/components/deprecated/molecules/stepper/stepper.component.tsx"],"sourcesContent":[":host {\n\t@apply flex;\n}\n\n:host([direction='horizontal']) {\n\t@apply h-auto items-end;\n}\n\n:host([direction='vertical']) {\n\t@apply flex-col flex-wrap items-start;\n\t@apply w-full;\n}\n\n:host([direction='vertical'][content-position='start']) {\n\t@apply items-end;\n}\n","import { Component, Element, h, Host, Prop, Watch } from '@stencil/core';\n\n@Component({\n\ttag: 'p-stepper',\n\tstyleUrl: 'stepper.component.scss',\n\tshadow: true,\n})\nexport class Stepper {\n\t/**\n\t * The currently active step\n\t */\n\t@Prop() activeStep: number = 1;\n\n\t/**\n\t * Wether to automatically apply active & finished to items\n\t */\n\t@Prop() enableAutoStatus: boolean = true;\n\n\t/**\n\t * The direction of the stepper\n\t */\n\t@Prop({ reflect: true }) direction: 'horizontal' | 'vertical' = 'horizontal';\n\n\t/**\n\t * The position of the content in case of vertical direction\n\t */\n\t@Prop({ reflect: true }) contentPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _generateTimeout: NodeJS.Timeout | undefined;\n\tprivate _resizeObserver: ResizeObserver;\n\n\tprivate _generateStepsOnce = () => {\n\t\tif (this._generateTimeout) {\n\t\t\tclearTimeout(this._generateTimeout);\n\t\t\tthis._generateTimeout = null;\n\t\t}\n\n\t\tthis._generateTimeout = setTimeout(() => this._generateSteps(), 50);\n\t};\n\n\tprivate _generateSteps = async () => {\n\t\tif (!this._el) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet activeStep = this.activeStep - 1 || 0;\n\t\tconst items = this._el.querySelectorAll('p-stepper-item');\n\n\t\tlet directionChanged = false;\n\t\tfor (let i = 0; i < items?.length; i++) {\n\t\t\tconst item = items.item(i) as any;\n\n\t\t\tif (this.enableAutoStatus) {\n\t\t\t\titem.active = i === activeStep;\n\t\t\t\titem.finished = i < activeStep;\n\t\t\t}\n\n\t\t\tif (!this.activeStep || activeStep < 0) {\n\t\t\t\tif (item.active) {\n\t\t\t\t\tactiveStep = i;\n\t\t\t\t}\n\n\t\t\t\tif (activeStep < 0 && item.finished) {\n\t\t\t\t\tactiveStep = i + 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (item.direction !== this.direction && !directionChanged) {\n\t\t\t\tdirectionChanged = true;\n\t\t\t}\n\n\t\t\titem.direction = this.direction;\n\t\t\titem.align =\n\t\t\t\tthis.direction === 'vertical'\n\t\t\t\t\t? 'start'\n\t\t\t\t\t: i === 0\n\t\t\t\t\t? 'start'\n\t\t\t\t\t: i === items?.length - 1\n\t\t\t\t\t? 'end'\n\t\t\t\t\t: 'center';\n\t\t\titem.contentPosition = this.contentPosition;\n\t\t}\n\n\t\tif (directionChanged) {\n\t\t\t// super hacky way to ensure all elements that have a direction changed are re-rendered\n\t\t\tawait new Promise(resolve => setTimeout(resolve, 200));\n\t\t}\n\n\t\tfor (let i = 0; i < items?.length; i++) {\n\t\t\tconst item = items.item(i) as any;\n\n\t\t\tif (i < items.length - 1) {\n\t\t\t\tlet nextItem = item.nextElementSibling;\n\n\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-item') {\n\t\t\t\t\tconst stepperLine = document.createElement('p-stepper-line');\n\t\t\t\t\tthis._el.insertBefore(stepperLine, nextItem);\n\t\t\t\t\tthis._setStepperLineData(stepperLine, item, nextItem, i, activeStep);\n\n\t\t\t\t\tconst previous = stepperLine.previousElementSibling;\n\t\t\t\t\tif (previous && previous.tagName.toLowerCase() === 'p-stepper-line') {\n\t\t\t\t\t\tprevious.remove();\n\t\t\t\t\t}\n\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-line') {\n\t\t\t\t\tconst stepperLine = nextItem;\n\t\t\t\t\tnextItem = nextItem.nextElementSibling;\n\n\t\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-item') {\n\t\t\t\t\t\tthis._setStepperLineData(\n\t\t\t\t\t\t\tstepperLine,\n\t\t\t\t\t\t\titem,\n\t\t\t\t\t\t\tnextItem,\n\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\tactiveStep\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (i > 0) {\n\t\t\t\tconst previousItem = item.previousElementSibling;\n\t\t\t\tif (\n\t\t\t\t\tpreviousItem &&\n\t\t\t\t\tpreviousItem.tagName.toLowerCase() === 'p-stepper-line'\n\t\t\t\t) {\n\t\t\t\t\tpreviousItem.direction = this.direction;\n\t\t\t\t\tpreviousItem.active = item.active || item.finished;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tconst lines = this._el.querySelectorAll(\n\t\t\t'p-stepper-line:not(:has(+ p-stepper-item)), p-stepper-line:first-child'\n\t\t);\n\t\tfor (let j = lines.length - 1; j >= 0; j--) {\n\t\t\tconst line = lines.item(j);\n\t\t\tline.remove();\n\t\t}\n\t};\n\n\tprivate _setStepperLineData = (\n\t\tstepperLine: HTMLPStepperLineElement,\n\t\titem: HTMLPStepperItemElement,\n\t\tnextItem: HTMLPStepperItemElement,\n\t\ti: number,\n\t\tactiveStep: number\n\t) => {\n\t\tconst heightDiff = item.clientHeight / 2;\n\t\tconst heightDiffNext = nextItem.clientHeight / 2;\n\n\t\tstepperLine.direction = this.direction;\n\t\tstepperLine.active = i < activeStep;\n\n\t\tif (heightDiff > 0 && this.direction === 'vertical') {\n\t\t\tstepperLine.style.marginTop = `-${heightDiff / 16}rem`;\n\t\t\tstepperLine.style.marginBottom = `-${heightDiffNext / 16}rem`;\n\t\t\tstepperLine.style.minHeight = `calc(1rem + ${\n\t\t\t\t(heightDiff + heightDiffNext) / 16\n\t\t\t}rem)`;\n\t\t}\n\t};\n\n\tcomponentDidLoad() {\n\t\tthis._resizeObserver = new ResizeObserver(() => this._generateStepsOnce());\n\t\tthis._resizeObserver.observe(this._el);\n\t}\n\n\tdisconnectCallback() {\n\t\tif (this._resizeObserver) {\n\t\t\tthis._resizeObserver.disconnect();\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-stepper'>\n\t\t\t\t<slot onSlotchange={() => this._generateStepsOnce()} />\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Watch('activeStep')\n\tprotected _onActiveStepChange() {\n\t\tthis._generateStepsOnce();\n\t}\n}\n"],"version":3}
1
+ {"file":"p-stepper.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,mBAAmB,GAAG,gYAAgY;;ACG5Z,MAAM,OAAO,GAAGA,WAAG,CAClB,CAAC,YAAY,CAAC,EACd;AACC,IAAA,QAAQ,EAAE;AACT,QAAA,SAAS,EAAE;AACV,YAAA,QAAQ,EAAE,uCAAuC;AACjD,YAAA,UAAU,EAAE;AACZ,SAAA;AACD,QAAA,eAAe,EAAE;AAChB,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,GAAG,EAAE;AACL;AACD,KAAA;AACD,IAAA,gBAAgB,EAAE,CAAC;AAClB,YAAA,SAAS,EAAE,UAAU;AACrB,YAAA,eAAe,EAAE,OAAO;AACxB,YAAA,KAAK,EAAE;SACP;AACD,CAAA,CACD;MAOY,OAAO,GAAA,MAAA;;;;AACnB;;AAEG;IACK,UAAU,GAAW,CAAC;AAE9B;;AAEG;IACK,gBAAgB,GAAY,IAAI;AAExC;;AAEG;IACK,SAAS,GAA8B,YAAY;AAE3D;;AAEG;IACK,KAAK,GAA+B,QAAQ;AAEpD;;AAEG;IACK,eAAe,GAAoB,KAAK;;AAOxC,IAAA,gBAAgB;AAChB,IAAA,eAAe;IAEf,kBAAkB,GAAG,MAAK;AACjC,QAAA,IAAI,IAAI,CAAC,gBAAgB,EAAE;AAC1B,YAAA,YAAY,CAAC,IAAI,CAAC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AAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,YAAY,EAAE,MAAM,IAAI,CAAC,kBAAkB,EAAE,EAAA,CAAI,CAClD;;IAKE,cAAc,GAAA;QACvB,IAAI,CAAC,kBAAkB,EAAE;;IAIhB,kBAAkB,GAAA;QAC3B,IAAI,CAAC,kBAAkB,EAAE;;IAIhB,mBAAmB,GAAA;QAC5B,IAAI,CAAC,kBAAkB,EAAE;;;;;;;;;;;;","names":["cva","h"],"sources":["src/components/organisms/stepper/stepper.component.css?tag=p-stepper&encapsulation=shadow","src/components/organisms/stepper/stepper.component.tsx"],"sourcesContent":["","import { Component, Element, h, Prop, Watch } from '@stencil/core';\nimport { cva } from 'class-variance-authority';\n\nconst stepper = cva(\n\t['flex gap-2'],\n\t{\n\t\tvariants: {\n\t\t\tdirection: {\n\t\t\t\tvertical: 'w-full flex-col flex-wrap items-start',\n\t\t\t\thorizontal: 'h-auto items-center'\n\t\t\t},\n\t\t\tcontentPosition: {\n\t\t\t\tstart: null,\n\t\t\t\tend: null\n\t\t\t}\n\t\t},\n\t\tcompoundVariants: [{\n\t\t\tdirection: 'vertical',\n\t\t\tcontentPosition: 'start',\n\t\t\tclass: 'items-end'\n\t\t}]\n\t}\n);\n\n@Component({\n\ttag: 'p-stepper',\n\tstyleUrl: 'stepper.component.css',\n\tshadow: true,\n})\nexport class Stepper {\n\t/**\n\t * The currently active step\n\t */\n\t@Prop() activeStep: number = 1;\n\n\t/**\n\t * Wether to automatically apply active & finished to items\n\t */\n\t@Prop() enableAutoStatus: boolean = true;\n\n\t/**\n\t * The direction of the stepper\n\t */\n\t@Prop() direction: 'horizontal' | 'vertical' = 'horizontal';\n\n\t/**\n\t * The alignment of the content in case of vertical direction\n\t */\n\t@Prop() align: 'start' | 'center' | 'end' = 'center';\n\n\t/**\n\t * The position of the content in case of vertical direction\n\t */\n\t@Prop() contentPosition: 'start' | 'end' = 'end';\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\tprivate _generateTimeout: NodeJS.Timeout | undefined;\n\tprivate _resizeObserver: ResizeObserver;\n\n\tprivate _generateStepsOnce = () => {\n\t\tif (this._generateTimeout) {\n\t\t\tclearTimeout(this._generateTimeout);\n\t\t\tthis._generateTimeout = null;\n\t\t}\n\n\t\tthis._generateTimeout = setTimeout(() => this._generateSteps(), 50);\n\t};\n\n\tprivate _generateSteps = async () => {\n\t\tif (!this._el) {\n\t\t\treturn;\n\t\t}\n\n\t\tlet activeStep = this.activeStep - 1 || 0;\n\t\tconst items = this._el.querySelectorAll('p-stepper-item');\n\n\t\tlet directionChanged = false;\n\t\tfor (let i = 0; i < items?.length; i++) {\n\t\t\tconst item = items.item(i) as any;\n\n\t\t\tif (this.enableAutoStatus) {\n\t\t\t\titem.active = i === activeStep;\n\t\t\t\titem.finished = i < activeStep;\n\t\t\t}\n\n\t\t\tif (!this.activeStep || activeStep < 0) {\n\t\t\t\tif (item.active) {\n\t\t\t\t\tactiveStep = i;\n\t\t\t\t}\n\n\t\t\t\tif (activeStep < 0 && item.finished) {\n\t\t\t\t\tactiveStep = i + 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (item.direction !== this.direction && !directionChanged) {\n\t\t\t\tdirectionChanged = true;\n\t\t\t}\n\n\t\t\titem.number = i + 1;\n\t\t\titem.direction = this.direction;\n\t\t\titem.align = this.direction === 'vertical' ? this.align : 'start';\n\t\t\titem.contentPosition = this.contentPosition;\n\t\t}\n\n\t\tif (directionChanged) {\n\t\t\t// super hacky way to ensure all elements that have a direction changed are re-rendered\n\t\t\tawait new Promise(resolve => setTimeout(resolve, 200));\n\t\t}\n\n\t\tfor (let i = 0; i < items?.length; i++) {\n\t\t\tconst item = items.item(i) as any;\n\n\t\t\tif (i < items.length - 1) {\n\t\t\t\tlet nextItem = item.nextElementSibling;\n\n\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-item') {\n\t\t\t\t\tconst stepperLine = document.createElement('p-stepper-line');\n\t\t\t\t\tthis._el.insertBefore(stepperLine, nextItem);\n\t\t\t\t\tthis._setStepperLineData(stepperLine, item, nextItem, i, activeStep);\n\n\t\t\t\t\tconst previous = stepperLine.previousElementSibling;\n\t\t\t\t\tif (previous && previous.tagName.toLowerCase() === 'p-stepper-line') {\n\t\t\t\t\t\tprevious.remove();\n\t\t\t\t\t}\n\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-line') {\n\t\t\t\t\tconst stepperLine = nextItem;\n\t\t\t\t\tnextItem = nextItem.nextElementSibling;\n\n\t\t\t\t\tif (nextItem && nextItem.tagName.toLowerCase() === 'p-stepper-item') {\n\t\t\t\t\t\tthis._setStepperLineData(\n\t\t\t\t\t\t\tstepperLine,\n\t\t\t\t\t\t\titem,\n\t\t\t\t\t\t\tnextItem,\n\t\t\t\t\t\t\ti,\n\t\t\t\t\t\t\tactiveStep\n\t\t\t\t\t\t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (i > 0) {\n\t\t\t\tconst previousItem = item.previousElementSibling;\n\t\t\t\tif (\n\t\t\t\t\tpreviousItem &&\n\t\t\t\t\tpreviousItem.tagName.toLowerCase() === 'p-stepper-line'\n\t\t\t\t) {\n\t\t\t\t\tpreviousItem.direction = this.direction;\n\t\t\t\t\tpreviousItem.active = item.active || item.finished;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tconst lines = this._el.querySelectorAll(\n\t\t\t'p-stepper-line:not(:has(+ p-stepper-item)), p-stepper-line:first-child'\n\t\t);\n\t\tfor (let j = lines.length - 1; j >= 0; j--) {\n\t\t\tconst line = lines.item(j);\n\t\t\tline.remove();\n\t\t}\n\t};\n\n\tprivate _setStepperLineData = (\n\t\tstepperLine: HTMLPStepperLineElement,\n\t\titem: HTMLPStepperItemElement,\n\t\tnextItem: HTMLPStepperItemElement,\n\t\ti: number,\n\t\tactiveStep: number\n\t) => {\n\t\tlet heightDiff = item.clientHeight - 24;\n\t\tlet heightDiffNext = nextItem.clientHeight - 24;\n\n\t\tif(this.align === 'center') {\n\t\t\theightDiff = heightDiff / 2;\n\t\t\theightDiffNext = heightDiffNext / 2;\n\t\t}\n\n\t\tstepperLine.direction = this.direction;\n\t\tstepperLine.active = i < activeStep;\n\n\t\tif (heightDiff > 0 && this.direction === 'vertical') {\n\t\t\tlet totalHeight = 0;\n\n\t\t\tstepperLine.style.marginTop = \"0\";\n\t\t\tstepperLine.style.marginBottom= \"0\";\n\n\t\t\tif(this.align === 'start' || this.align === 'center') {\n\t\t\t\tstepperLine.style.marginTop = `-${heightDiff / 16}rem`;\n\t\t\t\ttotalHeight += heightDiff;\n\t\t\t}\n\n\t\t\tif(this.align === 'center' || this.align===\"end\") {\n\t\t\t\tstepperLine.style.marginBottom = `-${heightDiffNext / 16}rem`;\n\t\t\t\ttotalHeight += heightDiffNext;\n\t\t\t}\n\n\t\t\tstepperLine.style.minHeight = `calc(${\n\t\t\t\t(totalHeight / 16)\n\t\t\t}rem)`;\n\t\t}\n\t};\n\n\tcomponentDidLoad() {\n\t\tthis._resizeObserver = new ResizeObserver(() => this._generateStepsOnce());\n\t\tthis._resizeObserver.observe(this._el);\n\t}\n\n\tdisconnectCallback() {\n\t\tif (this._resizeObserver) {\n\t\t\tthis._resizeObserver.disconnect();\n\t\t}\n\t}\n\n\trender() {\n\t\treturn (\n\t\t\t<div class={stepper({ direction: this.direction })}>\n\t\t\t\t<slot onSlotchange={() => this._generateStepsOnce()} />\n\t\t\t</div>\n\t\t);\n\t}\n\n\t@Watch('align')\n\tprotected _onAlignChange() {\n\t\tthis._generateStepsOnce();\n\t}\n\n\t@Watch('direction')\n\tprotected _onDirectionChange() {\n\t\tthis._generateStepsOnce();\n\t}\n\n\t@Watch('activeStep')\n\tprotected _onActiveStepChange() {\n\t\tthis._generateStepsOnce();\n\t}\n}\n"],"version":3}