@paperless/core 0.1.0-alpha.7 → 0.1.0-alpha.72

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 (415) hide show
  1. package/CHANGELOG.md +646 -0
  2. package/README.md +1 -1
  3. package/dist/assets/icons/checklist.svg +17 -0
  4. package/dist/assets/icons/folder.svg +19 -0
  5. package/dist/assets/icons/integration.svg +17 -0
  6. package/dist/assets/icons/task.svg +17 -0
  7. package/dist/assets/icons/template.svg +17 -0
  8. package/dist/assets/images/avatar/company-default.svg +12 -0
  9. package/dist/assets/images/avatar/user-default.svg +12 -0
  10. package/dist/assets/images/{helper-hover.svg → helper/helper-hover.svg} +0 -0
  11. package/dist/assets/images/{helper.svg → helper/helper.svg} +0 -0
  12. package/dist/build/p-0100c1a2.js +2 -0
  13. package/dist/build/p-11d24001.entry.js +1 -0
  14. package/dist/build/p-19254809.entry.js +1 -0
  15. package/dist/build/p-2120a0b7.entry.js +1 -0
  16. package/dist/build/p-2a3dd70b.entry.js +1 -0
  17. package/dist/build/p-2c7eebe0.entry.js +1 -0
  18. package/dist/build/p-30026c58.entry.js +1 -0
  19. package/dist/build/p-3f6d3736.entry.js +1 -0
  20. package/dist/build/p-40f9ac13.entry.js +1 -0
  21. package/dist/build/p-41693695.entry.js +1 -0
  22. package/dist/build/p-4a85b858.entry.js +1 -0
  23. package/dist/build/p-62797992.entry.js +1 -0
  24. package/dist/build/p-6421cd2a.entry.js +1 -0
  25. package/dist/build/p-75c92a9d.entry.js +1 -0
  26. package/dist/build/p-7784ee14.entry.js +1 -0
  27. package/dist/build/p-7933cf7c.entry.js +1 -0
  28. package/dist/build/p-7e05bc4b.entry.js +1 -0
  29. package/dist/build/p-86283ebd.entry.js +1 -0
  30. package/dist/build/p-864ac423.entry.js +1 -0
  31. package/dist/build/p-a30a5f69.entry.js +1 -0
  32. package/dist/build/p-a5b0a5bd.entry.js +1 -0
  33. package/dist/build/p-a69581db.entry.js +1 -0
  34. package/dist/build/p-a7086ffa.js +1 -0
  35. package/dist/build/p-b68368f3.entry.js +1 -0
  36. package/dist/build/p-b9f5cac6.entry.js +1 -0
  37. package/dist/build/p-c64e2313.entry.js +1 -0
  38. package/dist/build/{p-f04c4de0.entry.js → p-d069673f.entry.js} +1 -1
  39. package/dist/build/p-df237d9a.entry.js +1 -0
  40. package/dist/build/p-e4930555.entry.js +1 -0
  41. package/dist/build/p-e8dfce4a.entry.js +1 -0
  42. package/dist/build/p-f8bb6e8d.entry.js +1 -0
  43. package/dist/build/p-fb1e33eb.entry.js +1 -0
  44. package/dist/build/p-fcd30824.entry.js +1 -0
  45. package/dist/build/p-ffeed7c6.entry.js +1 -0
  46. package/dist/build/paperless.css +186 -18
  47. package/dist/build/paperless.esm.js +1 -1
  48. package/dist/cjs/{index-a2da05ae.js → index-f9c302b6.js} +229 -3
  49. package/dist/cjs/loader.cjs.js +2 -2
  50. package/dist/cjs/p-accordion.cjs.entry.js +42 -0
  51. package/dist/cjs/p-avatar-group.cjs.entry.js +19 -0
  52. package/dist/cjs/p-avatar.cjs.entry.js +38 -0
  53. package/dist/cjs/p-button_3.cjs.entry.js +167 -17
  54. package/dist/cjs/p-card-body.cjs.entry.js +23 -0
  55. package/dist/cjs/p-card-container.cjs.entry.js +27 -0
  56. package/dist/cjs/p-card-header.cjs.entry.js +24 -0
  57. package/dist/cjs/p-counter.cjs.entry.js +19 -0
  58. package/dist/cjs/p-divider.cjs.entry.js +23 -0
  59. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +19 -0
  60. package/dist/cjs/p-dropdown-menu-item.cjs.entry.js +23 -0
  61. package/dist/cjs/p-dropdown.cjs.entry.js +141 -0
  62. package/dist/cjs/p-helper.cjs.entry.js +7 -3
  63. package/dist/cjs/p-illustration.cjs.entry.js +9 -12
  64. package/dist/cjs/p-info-panel.cjs.entry.js +31 -0
  65. package/dist/cjs/p-input-group.cjs.entry.js +41 -0
  66. package/dist/cjs/p-layout.cjs.entry.js +23 -0
  67. package/dist/cjs/p-modal-backdrop_5.cjs.entry.js +92 -0
  68. package/dist/cjs/p-modal.cjs.entry.js +39 -0
  69. package/dist/cjs/p-navigation-item.cjs.entry.js +23 -0
  70. package/dist/cjs/p-pagination-item.cjs.entry.js +23 -0
  71. package/dist/cjs/p-pagination.cjs.entry.js +171 -0
  72. package/dist/cjs/p-profile.cjs.entry.js +26 -0
  73. package/dist/cjs/p-segment-container.cjs.entry.js +19 -0
  74. package/dist/cjs/p-segment-item.cjs.entry.js +29 -0
  75. package/dist/cjs/p-status.cjs.entry.js +49 -0
  76. package/dist/cjs/p-stepper-item_2.cjs.entry.js +56 -0
  77. package/dist/cjs/p-stepper.cjs.entry.js +71 -0
  78. package/dist/cjs/p-tab-group.cjs.entry.js +19 -0
  79. package/dist/cjs/p-tab-item.cjs.entry.js +23 -0
  80. package/dist/cjs/p-tag.cjs.entry.js +27 -0
  81. package/dist/cjs/p-tooltip.cjs.entry.js +76 -1812
  82. package/dist/cjs/paperless.cjs.js +2 -2
  83. package/dist/cjs/popper-e0c4ed4c.js +1790 -0
  84. package/dist/collection/assets/icons/checklist.svg +17 -0
  85. package/dist/collection/assets/icons/folder.svg +19 -0
  86. package/dist/collection/assets/icons/integration.svg +17 -0
  87. package/dist/collection/assets/icons/task.svg +17 -0
  88. package/dist/collection/assets/icons/template.svg +17 -0
  89. package/dist/collection/assets/images/avatar/company-default.svg +12 -0
  90. package/dist/collection/assets/images/avatar/user-default.svg +12 -0
  91. package/dist/collection/assets/images/{helper-hover.svg → helper/helper-hover.svg} +0 -0
  92. package/dist/collection/assets/images/{helper.svg → helper/helper.svg} +0 -0
  93. package/dist/collection/collection-manifest.json +34 -1
  94. package/dist/collection/components/atoms/avatar/avatar.component.css +24 -0
  95. package/dist/collection/components/atoms/avatar/avatar.component.js +110 -0
  96. package/dist/collection/components/atoms/avatar-group/avatar-group.component.css +18 -0
  97. package/dist/collection/components/atoms/avatar-group/avatar-group.component.js +36 -0
  98. package/dist/collection/components/atoms/button/button.component.css +28 -2
  99. package/dist/collection/components/atoms/button/button.component.js +108 -10
  100. package/dist/collection/components/atoms/card-body/card-body.component.css +9 -0
  101. package/dist/collection/components/atoms/card-body/card-body.component.js +40 -0
  102. package/dist/collection/components/atoms/card-container/card-container.component.css +17 -0
  103. package/dist/collection/components/atoms/card-container/card-container.component.js +63 -0
  104. package/dist/collection/components/atoms/card-header/card-header.component.css +17 -0
  105. package/dist/collection/components/atoms/card-header/card-header.component.js +61 -0
  106. package/dist/collection/components/atoms/counter/counter.component.css +5 -0
  107. package/dist/collection/components/atoms/counter/counter.component.js +15 -0
  108. package/dist/collection/components/atoms/divider/divider.component.css +10 -0
  109. package/dist/collection/components/atoms/divider/divider.component.js +21 -0
  110. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.css +5 -0
  111. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +14 -0
  112. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +13 -0
  113. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +41 -0
  114. package/dist/collection/components/atoms/helper/helper.component.css +3 -3
  115. package/dist/collection/components/atoms/helper/helper.component.js +34 -3
  116. package/dist/collection/components/atoms/icon/icon.component.css +1 -0
  117. package/dist/collection/components/atoms/icon/icon.component.js +64 -20
  118. package/dist/collection/components/atoms/illustration/illustration.component.js +2 -9
  119. package/dist/collection/components/atoms/info-panel/info-panel.component.css +28 -0
  120. package/dist/collection/components/atoms/info-panel/info-panel.component.js +106 -0
  121. package/dist/collection/components/atoms/layout/layout.component.css +64 -0
  122. package/dist/collection/components/atoms/layout/layout.component.js +47 -0
  123. package/dist/collection/components/atoms/loader/loader.component.css +2 -2
  124. package/dist/collection/components/atoms/loader/loader.component.js +4 -3
  125. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.css +7 -0
  126. package/dist/collection/components/atoms/modal-backdrop/modal-backdrop.component.js +15 -0
  127. package/dist/collection/components/atoms/modal-body/modal-body.component.css +7 -0
  128. package/dist/collection/components/atoms/modal-body/modal-body.component.js +41 -0
  129. package/dist/collection/components/atoms/modal-container/modal-container.component.css +6 -0
  130. package/dist/collection/components/atoms/modal-container/modal-container.component.js +53 -0
  131. package/dist/collection/components/atoms/modal-footer/modal-footer.component.css +4 -0
  132. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +16 -0
  133. package/dist/collection/components/atoms/modal-header/modal-header.component.css +6 -0
  134. package/dist/collection/components/atoms/modal-header/modal-header.component.js +15 -0
  135. package/dist/collection/components/atoms/pagination-item/pagination-item.component.css +16 -0
  136. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +41 -0
  137. package/dist/collection/components/atoms/profile/profile.component.css +13 -0
  138. package/dist/collection/components/atoms/profile/profile.component.js +25 -0
  139. package/dist/collection/components/atoms/segment-container/segment-container.component.css +5 -0
  140. package/dist/collection/components/atoms/segment-container/segment-container.component.js +14 -0
  141. package/dist/collection/components/atoms/segment-item/segment-item.component.css +21 -0
  142. package/dist/collection/components/atoms/segment-item/segment-item.component.js +112 -0
  143. package/dist/collection/components/atoms/status/status.component.css +16 -0
  144. package/dist/collection/components/atoms/status/status.component.js +133 -0
  145. package/dist/collection/components/atoms/stepper-item/stepper-item.component.css +59 -0
  146. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +109 -0
  147. package/dist/collection/components/atoms/stepper-line/stepper-line.component.css +18 -0
  148. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +62 -0
  149. package/dist/collection/components/atoms/tab-group/tab-group.component.css +9 -0
  150. package/dist/collection/components/atoms/tab-group/tab-group.component.js +17 -0
  151. package/dist/collection/components/atoms/tab-item/tab-item.component.css +10 -0
  152. package/dist/collection/components/atoms/tab-item/tab-item.component.js +41 -0
  153. package/dist/collection/components/atoms/tag/tag.component.css +51 -0
  154. package/dist/collection/components/atoms/tag/tag.component.js +64 -0
  155. package/dist/collection/components/atoms/tooltip/tooltip.component.css +19 -13
  156. package/dist/collection/components/atoms/tooltip/tooltip.component.js +133 -35
  157. package/dist/collection/components/molecules/accordion/accordion.component.css +3 -0
  158. package/dist/collection/components/molecules/accordion/accordion.component.js +133 -0
  159. package/dist/collection/components/molecules/dropdown/dropdown.component.css +9 -0
  160. package/dist/collection/components/molecules/dropdown/dropdown.component.js +233 -0
  161. package/dist/collection/components/molecules/input-group/input-group.component.css +205 -0
  162. package/dist/collection/components/molecules/input-group/input-group.component.js +237 -0
  163. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +28 -0
  164. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +118 -0
  165. package/dist/collection/components/molecules/pagination/pagination.component.css +3 -0
  166. package/dist/collection/components/molecules/pagination/pagination.component.js +242 -0
  167. package/dist/collection/components/molecules/stepper/stepper.component.css +12 -0
  168. package/dist/collection/components/molecules/stepper/stepper.component.js +106 -0
  169. package/dist/collection/components/organisms/modal/modal.component.js +111 -0
  170. package/dist/collection/tailwind/animation.js +17 -0
  171. package/dist/collection/tailwind/backdrop-blur.js +3 -0
  172. package/dist/collection/tailwind/border-radius.js +8 -6
  173. package/dist/collection/tailwind/screens.js +8 -0
  174. package/dist/collection/tailwind/spacing.js +10 -0
  175. package/dist/collection/tailwind/typography.js +21 -0
  176. package/dist/collection/tailwind/width.js +18 -0
  177. package/dist/collection/tailwind/z-index.js +3 -0
  178. package/dist/collection/tailwind.config.js +26 -14
  179. package/dist/collection/utils/child-of.js +5 -0
  180. package/dist/collection/utils/icons.js +10 -0
  181. package/dist/collection/utils/types.js +1 -0
  182. package/dist/components/avatar.component.js +54 -0
  183. package/dist/components/counter.component.js +30 -0
  184. package/dist/components/divider.component.js +34 -0
  185. package/dist/components/dropdown-menu-container.component.js +29 -0
  186. package/dist/components/helper.component.js +42 -0
  187. package/dist/components/icon.component.js +138 -9
  188. package/dist/components/index.d.ts +33 -0
  189. package/dist/components/index.js +33 -0
  190. package/dist/components/loader.component.js +5 -4
  191. package/dist/components/modal-backdrop.component.js +30 -0
  192. package/dist/components/modal-body.component.js +36 -0
  193. package/dist/components/modal-container.component.js +48 -0
  194. package/dist/components/modal-footer.component.js +36 -0
  195. package/dist/components/modal-header.component.js +30 -0
  196. package/dist/components/p-accordion.d.ts +11 -0
  197. package/dist/components/p-accordion.js +73 -0
  198. package/dist/components/p-avatar-group.d.ts +11 -0
  199. package/dist/components/p-avatar-group.js +34 -0
  200. package/dist/components/p-avatar.d.ts +11 -0
  201. package/dist/components/p-avatar.js +6 -0
  202. package/dist/components/p-button.js +28 -4
  203. package/dist/components/p-card-body.d.ts +11 -0
  204. package/dist/components/p-card-body.js +38 -0
  205. package/dist/components/p-card-container.d.ts +11 -0
  206. package/dist/components/p-card-container.js +44 -0
  207. package/dist/components/p-card-header.d.ts +11 -0
  208. package/dist/components/p-card-header.js +46 -0
  209. package/dist/components/p-counter.d.ts +11 -0
  210. package/dist/components/p-counter.js +6 -0
  211. package/dist/components/p-divider.d.ts +11 -0
  212. package/dist/components/p-divider.js +6 -0
  213. package/dist/components/p-dropdown-menu-container.d.ts +11 -0
  214. package/dist/components/p-dropdown-menu-container.js +6 -0
  215. package/dist/components/p-dropdown-menu-item.d.ts +11 -0
  216. package/dist/components/p-dropdown-menu-item.js +39 -0
  217. package/dist/components/p-dropdown.d.ts +11 -0
  218. package/dist/components/p-dropdown.js +166 -0
  219. package/dist/components/p-helper.js +1 -34
  220. package/dist/components/p-illustration.js +0 -4
  221. package/dist/components/p-info-panel.d.ts +11 -0
  222. package/dist/components/p-info-panel.js +56 -0
  223. package/dist/components/p-input-group.d.ts +11 -0
  224. package/dist/components/p-input-group.js +84 -0
  225. package/dist/components/p-layout.d.ts +11 -0
  226. package/dist/components/p-layout.js +39 -0
  227. package/dist/components/p-modal-backdrop.d.ts +11 -0
  228. package/dist/components/p-modal-backdrop.js +6 -0
  229. package/dist/components/p-modal-body.d.ts +11 -0
  230. package/dist/components/p-modal-body.js +6 -0
  231. package/dist/components/p-modal-container.d.ts +11 -0
  232. package/dist/components/p-modal-container.js +6 -0
  233. package/dist/components/p-modal-footer.d.ts +11 -0
  234. package/dist/components/p-modal-footer.js +6 -0
  235. package/dist/components/p-modal-header.d.ts +11 -0
  236. package/dist/components/p-modal-header.js +6 -0
  237. package/dist/components/p-modal.d.ts +11 -0
  238. package/dist/components/p-modal.js +94 -0
  239. package/dist/components/p-navigation-item.d.ts +11 -0
  240. package/dist/components/p-navigation-item.js +55 -0
  241. package/dist/components/p-pagination-item.d.ts +11 -0
  242. package/dist/components/p-pagination-item.js +6 -0
  243. package/dist/components/p-pagination.d.ts +11 -0
  244. package/dist/components/p-pagination.js +200 -0
  245. package/dist/components/p-profile.d.ts +11 -0
  246. package/dist/components/p-profile.js +46 -0
  247. package/dist/components/p-segment-container.d.ts +11 -0
  248. package/dist/components/p-segment-container.js +32 -0
  249. package/dist/components/p-segment-item.d.ts +11 -0
  250. package/dist/components/p-segment-item.js +54 -0
  251. package/dist/components/p-status.d.ts +11 -0
  252. package/dist/components/p-status.js +73 -0
  253. package/dist/components/p-stepper-item.d.ts +11 -0
  254. package/dist/components/p-stepper-item.js +6 -0
  255. package/dist/components/p-stepper-line.d.ts +11 -0
  256. package/dist/components/p-stepper-line.js +6 -0
  257. package/dist/components/p-stepper.d.ts +11 -0
  258. package/dist/components/p-stepper.js +106 -0
  259. package/dist/components/p-tab-group.d.ts +11 -0
  260. package/dist/components/p-tab-group.js +39 -0
  261. package/dist/components/p-tab-item.d.ts +11 -0
  262. package/dist/components/p-tab-item.js +39 -0
  263. package/dist/components/p-tag.d.ts +11 -0
  264. package/dist/components/p-tag.js +44 -0
  265. package/dist/components/pagination-item.component.js +36 -0
  266. package/dist/components/popper.js +1788 -0
  267. package/dist/components/stepper-item.component.js +57 -0
  268. package/dist/components/stepper-line.component.js +41 -0
  269. package/dist/components/tooltip.component.js +82 -1816
  270. package/dist/esm/{index-d08bfe75.js → index-fff70567.js} +229 -3
  271. package/dist/esm/loader.js +2 -2
  272. package/dist/esm/p-accordion.entry.js +38 -0
  273. package/dist/esm/p-avatar-group.entry.js +15 -0
  274. package/dist/esm/p-avatar.entry.js +34 -0
  275. package/dist/esm/p-button_3.entry.js +167 -17
  276. package/dist/esm/p-card-body.entry.js +19 -0
  277. package/dist/esm/p-card-container.entry.js +23 -0
  278. package/dist/esm/p-card-header.entry.js +20 -0
  279. package/dist/esm/p-counter.entry.js +15 -0
  280. package/dist/esm/p-divider.entry.js +19 -0
  281. package/dist/esm/p-dropdown-menu-container.entry.js +15 -0
  282. package/dist/esm/p-dropdown-menu-item.entry.js +19 -0
  283. package/dist/esm/p-dropdown.entry.js +137 -0
  284. package/dist/esm/p-helper.entry.js +7 -3
  285. package/dist/esm/p-illustration.entry.js +9 -12
  286. package/dist/esm/p-info-panel.entry.js +27 -0
  287. package/dist/esm/p-input-group.entry.js +37 -0
  288. package/dist/esm/p-layout.entry.js +19 -0
  289. package/dist/esm/p-modal-backdrop_5.entry.js +84 -0
  290. package/dist/esm/p-modal.entry.js +35 -0
  291. package/dist/esm/p-navigation-item.entry.js +19 -0
  292. package/dist/esm/p-pagination-item.entry.js +19 -0
  293. package/dist/esm/p-pagination.entry.js +167 -0
  294. package/dist/esm/p-profile.entry.js +22 -0
  295. package/dist/esm/p-segment-container.entry.js +15 -0
  296. package/dist/esm/p-segment-item.entry.js +25 -0
  297. package/dist/esm/p-status.entry.js +45 -0
  298. package/dist/esm/p-stepper-item_2.entry.js +51 -0
  299. package/dist/esm/p-stepper.entry.js +67 -0
  300. package/dist/esm/p-tab-group.entry.js +15 -0
  301. package/dist/esm/p-tab-item.entry.js +19 -0
  302. package/dist/esm/p-tag.entry.js +23 -0
  303. package/dist/esm/p-tooltip.entry.js +76 -1812
  304. package/dist/esm/paperless.js +2 -2
  305. package/dist/esm/polyfills/core-js.js +0 -0
  306. package/dist/esm/polyfills/dom.js +0 -0
  307. package/dist/esm/polyfills/es5-html-element.js +0 -0
  308. package/dist/esm/polyfills/index.js +0 -0
  309. package/dist/esm/polyfills/system.js +0 -0
  310. package/dist/esm/popper-41c6f9cd.js +1788 -0
  311. package/dist/index.html +1 -1
  312. package/dist/paperless/p-0100c1a2.js +2 -0
  313. package/dist/paperless/p-11d24001.entry.js +1 -0
  314. package/dist/paperless/p-19254809.entry.js +1 -0
  315. package/dist/paperless/p-2120a0b7.entry.js +1 -0
  316. package/dist/paperless/p-2a3dd70b.entry.js +1 -0
  317. package/dist/paperless/p-2c7eebe0.entry.js +1 -0
  318. package/dist/paperless/p-30026c58.entry.js +1 -0
  319. package/dist/paperless/p-3f6d3736.entry.js +1 -0
  320. package/dist/paperless/p-40f9ac13.entry.js +1 -0
  321. package/dist/paperless/p-41693695.entry.js +1 -0
  322. package/dist/paperless/p-4a85b858.entry.js +1 -0
  323. package/dist/paperless/p-62797992.entry.js +1 -0
  324. package/dist/paperless/p-6421cd2a.entry.js +1 -0
  325. package/dist/paperless/p-75c92a9d.entry.js +1 -0
  326. package/dist/paperless/p-7784ee14.entry.js +1 -0
  327. package/dist/paperless/p-7933cf7c.entry.js +1 -0
  328. package/dist/paperless/p-7e05bc4b.entry.js +1 -0
  329. package/dist/paperless/p-86283ebd.entry.js +1 -0
  330. package/dist/paperless/p-864ac423.entry.js +1 -0
  331. package/dist/paperless/p-a30a5f69.entry.js +1 -0
  332. package/dist/paperless/p-a5b0a5bd.entry.js +1 -0
  333. package/dist/paperless/p-a69581db.entry.js +1 -0
  334. package/dist/paperless/p-a7086ffa.js +1 -0
  335. package/dist/paperless/p-b68368f3.entry.js +1 -0
  336. package/dist/paperless/p-b9f5cac6.entry.js +1 -0
  337. package/dist/paperless/p-c64e2313.entry.js +1 -0
  338. package/dist/paperless/{p-f04c4de0.entry.js → p-d069673f.entry.js} +1 -1
  339. package/dist/paperless/p-df237d9a.entry.js +1 -0
  340. package/dist/paperless/p-e4930555.entry.js +1 -0
  341. package/dist/paperless/p-e8dfce4a.entry.js +1 -0
  342. package/dist/paperless/p-f8bb6e8d.entry.js +1 -0
  343. package/dist/paperless/p-fb1e33eb.entry.js +1 -0
  344. package/dist/paperless/p-fcd30824.entry.js +1 -0
  345. package/dist/paperless/p-ffeed7c6.entry.js +1 -0
  346. package/dist/paperless/paperless.css +284 -26355
  347. package/dist/paperless/paperless.esm.js +1 -1
  348. package/dist/sw.js +2 -290
  349. package/dist/sw.js.map +1 -0
  350. package/dist/tailwind/animation.js +17 -0
  351. package/dist/tailwind/backdrop-blur.js +3 -0
  352. package/dist/tailwind/border-radius.js +10 -0
  353. package/dist/tailwind/colors.js +52 -0
  354. package/dist/tailwind/rotate.js +8 -0
  355. package/dist/tailwind/scale.js +3 -0
  356. package/dist/tailwind/screens.js +8 -0
  357. package/dist/tailwind/shadows.js +7 -0
  358. package/dist/tailwind/spacing.js +10 -0
  359. package/dist/tailwind/typography.js +21 -0
  360. package/dist/tailwind/width.js +18 -0
  361. package/dist/tailwind/z-index.js +3 -0
  362. package/dist/tailwind.config.js +26 -14
  363. package/dist/types/components/atoms/avatar/avatar.component.d.ts +21 -0
  364. package/dist/types/components/atoms/avatar-group/avatar-group.component.d.ts +7 -0
  365. package/dist/types/components/atoms/button/button.component.d.ts +18 -1
  366. package/dist/types/components/atoms/card-body/card-body.component.d.ts +7 -0
  367. package/dist/types/components/atoms/card-container/card-container.component.d.ts +11 -0
  368. package/dist/types/components/atoms/card-header/card-header.component.d.ts +11 -0
  369. package/dist/types/components/atoms/counter/counter.component.d.ts +3 -0
  370. package/dist/types/components/atoms/divider/divider.component.d.ts +7 -0
  371. package/dist/types/components/atoms/dropdown-menu-container/dropdown-menu-container.component.d.ts +3 -0
  372. package/dist/types/components/atoms/dropdown-menu-item/dropdown-menu-item.component.d.ts +7 -0
  373. package/dist/types/components/atoms/helper/helper.component.d.ts +5 -0
  374. package/dist/types/components/atoms/icon/icon.component.d.ts +3 -3
  375. package/dist/types/components/atoms/info-panel/info-panel.component.d.ts +24 -0
  376. package/dist/types/components/atoms/layout/layout.component.d.ts +7 -0
  377. package/dist/types/components/atoms/modal-backdrop/modal-backdrop.component.d.ts +3 -0
  378. package/dist/types/components/atoms/modal-body/modal-body.component.d.ts +7 -0
  379. package/dist/types/components/atoms/modal-container/modal-container.component.d.ts +7 -0
  380. package/dist/types/components/atoms/modal-footer/modal-footer.component.d.ts +3 -0
  381. package/dist/types/components/atoms/modal-header/modal-header.component.d.ts +3 -0
  382. package/dist/types/components/atoms/pagination-item/pagination-item.component.d.ts +7 -0
  383. package/dist/types/components/atoms/profile/profile.component.d.ts +8 -0
  384. package/dist/types/components/atoms/segment-container/segment-container.component.d.ts +3 -0
  385. package/dist/types/components/atoms/segment-item/segment-item.component.d.ts +22 -0
  386. package/dist/types/components/atoms/status/status.component.d.ts +23 -0
  387. package/dist/types/components/atoms/stepper-item/stepper-item.component.d.ts +19 -0
  388. package/dist/types/components/atoms/stepper-line/stepper-line.component.d.ts +11 -0
  389. package/dist/types/components/atoms/tab-group/tab-group.component.d.ts +3 -0
  390. package/dist/types/components/atoms/tab-item/tab-item.component.d.ts +7 -0
  391. package/dist/types/components/atoms/tag/tag.component.d.ts +11 -0
  392. package/dist/types/components/atoms/tooltip/tooltip.component.d.ts +20 -8
  393. package/dist/types/components/molecules/accordion/accordion.component.d.ts +25 -0
  394. package/dist/types/components/molecules/dropdown/dropdown.component.d.ts +42 -0
  395. package/dist/types/components/molecules/input-group/input-group.component.d.ts +49 -0
  396. package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +24 -0
  397. package/dist/types/components/molecules/pagination/pagination.component.d.ts +28 -0
  398. package/dist/types/components/molecules/stepper/stepper.component.d.ts +18 -0
  399. package/dist/types/components/organisms/modal/modal.component.d.ts +25 -0
  400. package/dist/types/components.d.ts +1078 -21
  401. package/dist/types/utils/child-of.d.ts +1 -0
  402. package/dist/types/utils/icons.d.ts +5 -0
  403. package/dist/types/utils/types.d.ts +2 -0
  404. package/dist/workbox-5fe694da.js +2 -0
  405. package/dist/workbox-5fe694da.js.map +1 -0
  406. package/package.json +61 -61
  407. package/dist/build/p-092ba1be.entry.js +0 -1
  408. package/dist/build/p-c04e9d44.entry.js +0 -1
  409. package/dist/build/p-f33e1285.js +0 -2
  410. package/dist/build/p-f64e0b3a.entry.js +0 -1
  411. package/dist/collection/tailwind/grid.js +0 -6
  412. package/dist/paperless/p-092ba1be.entry.js +0 -1
  413. package/dist/paperless/p-c04e9d44.entry.js +0 -1
  414. package/dist/paperless/p-f33e1285.js +0 -2
  415. package/dist/paperless/p-f64e0b3a.entry.js +0 -1
@@ -0,0 +1,64 @@
1
+ import { Component, h, Host, Prop } from '@stencil/core';
2
+ export class Tag {
3
+ constructor() {
4
+ /**
5
+ * Variant of the tag
6
+ */
7
+ this.variant = 'info';
8
+ /**
9
+ * Wether to add the circle or not
10
+ */
11
+ this.circle = true;
12
+ }
13
+ render() {
14
+ return (h(Host, { class: "p-tag" },
15
+ h("div", { class: "circle" }),
16
+ h("slot", null)));
17
+ }
18
+ static get is() { return "p-tag"; }
19
+ static get encapsulation() { return "shadow"; }
20
+ static get originalStyleUrls() { return {
21
+ "$": ["tag.component.scss"]
22
+ }; }
23
+ static get styleUrls() { return {
24
+ "$": ["tag.component.css"]
25
+ }; }
26
+ static get properties() { return {
27
+ "variant": {
28
+ "type": "string",
29
+ "mutable": false,
30
+ "complexType": {
31
+ "original": "| 'positive'\n | 'unbiased'\n | 'negative'\n | 'info'",
32
+ "resolved": "\"info\" | \"negative\" | \"positive\" | \"unbiased\"",
33
+ "references": {}
34
+ },
35
+ "required": false,
36
+ "optional": false,
37
+ "docs": {
38
+ "tags": [],
39
+ "text": "Variant of the tag"
40
+ },
41
+ "attribute": "variant",
42
+ "reflect": true,
43
+ "defaultValue": "'info'"
44
+ },
45
+ "circle": {
46
+ "type": "boolean",
47
+ "mutable": false,
48
+ "complexType": {
49
+ "original": "boolean",
50
+ "resolved": "boolean",
51
+ "references": {}
52
+ },
53
+ "required": false,
54
+ "optional": false,
55
+ "docs": {
56
+ "tags": [],
57
+ "text": "Wether to add the circle or not"
58
+ },
59
+ "attribute": "circle",
60
+ "reflect": true,
61
+ "defaultValue": "true"
62
+ }
63
+ }; }
64
+ }
@@ -1,34 +1,40 @@
1
1
  :host {
2
- @apply cursor-pointer;
2
+ @apply flex cursor-pointer;
3
3
  }
4
- :host .tooltip {
5
- @apply bg-storm hidden text-xs font-medium text-white py-1 px-3 rounded drop-shadow-1;
4
+ :host .popover {
5
+ @apply bg-white hidden text-xs font-medium py-2 px-3 rounded drop-shadow-4;
6
6
  max-width: 14.5rem;
7
7
  }
8
- :host .tooltip[data-show] {
8
+ :host .popover.variant-hover, :host .popover.variant-error {
9
+ @apply bg-storm text-white py-1;
10
+ }
11
+ :host .popover.variant-error {
12
+ @apply bg-negative uppercase tracking-wider;
13
+ }
14
+ :host .popover[data-show] {
9
15
  @apply block;
10
16
  }
11
- :host .tooltip .arrow,
12
- :host .tooltip .arrow::before {
17
+ :host .popover .arrow,
18
+ :host .popover .arrow::before {
13
19
  background: inherit;
14
20
  @apply absolute w-2 h-2;
15
21
  }
16
- :host .tooltip .arrow {
22
+ :host .popover .arrow {
17
23
  visibility: hidden;
18
24
  }
19
- :host .tooltip .arrow::before {
25
+ :host .popover .arrow::before {
20
26
  @apply visible transform rotate-45;
21
27
  content: "";
22
28
  }
23
- :host .tooltip[data-popper-placement^=top] > .arrow {
29
+ :host .popover[data-popper-placement^=top] > .arrow {
24
30
  @apply -bottom-1;
25
31
  }
26
- :host .tooltip[data-popper-placement^=bottom] > .arrow {
32
+ :host .popover[data-popper-placement^=bottom] > .arrow {
27
33
  @apply -top-1;
28
34
  }
29
- :host .tooltip[data-popper-placement^=left] > .arrow {
35
+ :host .popover[data-popper-placement^=left] > .arrow {
30
36
  @apply -right-1;
31
37
  }
32
- :host .tooltip[data-popper-placement^=right] > .arrow {
38
+ :host .popover[data-popper-placement^=right] > .arrow {
33
39
  @apply -left-1;
34
- }
40
+ } .static{position:static!important}.ml-2{margin-left:.5rem!important}.flex{display:flex!important}.items-end{align-items:flex-end!important}.justify-between{justify-content:space-between!important}.text-negative-light{--tw-text-opacity:1!important;color:rgb(255 204 211/var(--tw-text-opacity))!important}.hover\:text-negative:hover{--tw-text-opacity:1!important;color:rgb(185 30 40/var(--tw-text-opacity))!important}.visible{visibility:visible!important}.static{position:static!important}.blur{--tw-blur:blur(8px)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.visible{visibility:visible!important}.static{position:static!important}.blur{--tw-blur:blur(8px)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}.static{position:static!important}.visible{visibility:visible!important}.static{position:static!important}.blur{--tw-blur:blur(8px)!important;filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)!important}
@@ -3,60 +3,104 @@ import { Component, Element, h, Host, Listen, Prop } from '@stencil/core';
3
3
  export class Tooltip {
4
4
  constructor() {
5
5
  /**
6
- * The content of the tooltip
6
+ * The variant of the popover
7
7
  */
8
- this.content = null;
8
+ this.variant = 'hover';
9
9
  /**
10
- * The content of the tooltip
10
+ * The content of the popover
11
+ */
12
+ this.popover = null;
13
+ /**
14
+ * The placement of the popover
11
15
  */
12
16
  this.placement = 'top';
13
17
  /**
14
- * Wether to force show the tooltip
18
+ * Wether to show the popover
19
+ */
20
+ this.show = false;
21
+ /**
22
+ * Wether to someone can manually close the popover
15
23
  */
16
- this.forceShow = false;
24
+ this.canManuallyClose = true;
17
25
  this._loaded = false;
18
26
  }
19
27
  componentShouldUpdate() {
20
28
  this._setOptions();
21
- if (this.forceShow) {
29
+ if (this._loaded && this.show) {
22
30
  this._show();
23
31
  }
24
32
  }
25
33
  render() {
26
- return (h(Host, { class: "p-tooltip" },
34
+ return (h(Host, { class: "p-popover" },
27
35
  h("slot", { name: "content" }),
28
- h("div", { class: "tooltip", role: "tooltip", ref: el => this._load(el) },
29
- this.content ? this.content : h("slot", { name: "tooltip" }),
36
+ h("div", { class: `popover variant-${this.variant}`, role: "popover", ref: (el) => this._load(el) },
37
+ this.popover ? this.popover : h("slot", { name: "popover" }),
30
38
  h("div", { class: "arrow", "data-popper-arrow": true }))));
31
39
  }
40
+ clickHandler() {
41
+ if (this.variant !== 'click') {
42
+ return;
43
+ }
44
+ if (this._popover.hasAttribute('data-show')) {
45
+ return;
46
+ }
47
+ this._show();
48
+ }
49
+ documentClickHandler() {
50
+ if (this.variant !== 'click' || !this.canManuallyClose) {
51
+ return;
52
+ }
53
+ if (!this._popover.hasAttribute('data-show')) {
54
+ return;
55
+ }
56
+ this._hide();
57
+ }
58
+ mouseEnterHandler() {
59
+ if (this.variant === 'click') {
60
+ return;
61
+ }
62
+ this._show();
63
+ }
64
+ mouseLeaveHandler() {
65
+ if (this.show || this.variant === 'click') {
66
+ return;
67
+ }
68
+ this._hide();
69
+ }
32
70
  _show() {
33
71
  if (!this._loaded) {
34
72
  return;
35
73
  }
36
- // Make the tooltip visible
37
- this._tooltip.setAttribute('data-show', '');
74
+ // Make the popover visible
75
+ this._popover.setAttribute('data-show', '');
38
76
  // Enable the event listeners
39
- this._popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: true }] })));
77
+ this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
78
+ ...options.modifiers,
79
+ { name: 'eventListeners', enabled: true },
80
+ ] })));
40
81
  // Update its position
41
82
  this._popper.update();
42
83
  }
43
84
  _hide() {
44
- if (!this._loaded && !this.forceShow) {
85
+ if (!this._loaded) {
45
86
  return;
46
87
  }
47
- // Hide the tooltip
48
- this._tooltip.removeAttribute('data-show');
88
+ // Hide the popover
89
+ this._popover.removeAttribute('data-show');
49
90
  // Disable the event listeners
50
- this._popper.setOptions(options => (Object.assign(Object.assign({}, options), { modifiers: [...options.modifiers, { name: 'eventListeners', enabled: false }] })));
91
+ this._popper.setOptions((options) => (Object.assign(Object.assign({}, options), { modifiers: [
92
+ ...options.modifiers,
93
+ { name: 'eventListeners', enabled: false },
94
+ ] })));
51
95
  }
52
- _load(tooltip) {
53
- this._tooltip = tooltip;
54
- if (tooltip) {
55
- this._popper = createPopper(this._el, tooltip);
96
+ _load(popover) {
97
+ this._popover = popover;
98
+ if (popover) {
99
+ this._popper = createPopper(this._el, popover);
56
100
  this._setOptions();
57
101
  this._loaded = true;
58
- if (this.forceShow) {
59
- this._show();
102
+ if (this.show) {
103
+ setTimeout(() => this._show(), 100);
60
104
  }
61
105
  }
62
106
  }
@@ -65,12 +109,18 @@ export class Tooltip {
65
109
  return;
66
110
  }
67
111
  this._popper.setOptions({
68
- placement: this.placement,
112
+ placement: this.variant === 'error' ? 'top-end' : this.placement,
69
113
  modifiers: [
70
114
  {
71
115
  name: 'offset',
72
116
  options: {
73
- offset: [0, 8],
117
+ offset: this.variant === 'error' ? [8, 14] : [0, 8],
118
+ },
119
+ },
120
+ {
121
+ name: 'arrow',
122
+ options: {
123
+ padding: 4,
74
124
  },
75
125
  },
76
126
  ],
@@ -85,7 +135,25 @@ export class Tooltip {
85
135
  "$": ["tooltip.component.css"]
86
136
  }; }
87
137
  static get properties() { return {
88
- "content": {
138
+ "variant": {
139
+ "type": "string",
140
+ "mutable": false,
141
+ "complexType": {
142
+ "original": "'hover' | 'click' | 'error'",
143
+ "resolved": "\"click\" | \"error\" | \"hover\"",
144
+ "references": {}
145
+ },
146
+ "required": false,
147
+ "optional": false,
148
+ "docs": {
149
+ "tags": [],
150
+ "text": "The variant of the popover"
151
+ },
152
+ "attribute": "variant",
153
+ "reflect": false,
154
+ "defaultValue": "'hover'"
155
+ },
156
+ "popover": {
89
157
  "type": "any",
90
158
  "mutable": false,
91
159
  "complexType": {
@@ -97,9 +165,9 @@ export class Tooltip {
97
165
  "optional": false,
98
166
  "docs": {
99
167
  "tags": [],
100
- "text": "The content of the tooltip"
168
+ "text": "The content of the popover"
101
169
  },
102
- "attribute": "content",
170
+ "attribute": "popover",
103
171
  "reflect": false,
104
172
  "defaultValue": "null"
105
173
  },
@@ -120,13 +188,13 @@ export class Tooltip {
120
188
  "optional": false,
121
189
  "docs": {
122
190
  "tags": [],
123
- "text": "The content of the tooltip"
191
+ "text": "The placement of the popover"
124
192
  },
125
193
  "attribute": "placement",
126
194
  "reflect": false,
127
195
  "defaultValue": "'top'"
128
196
  },
129
- "forceShow": {
197
+ "show": {
130
198
  "type": "boolean",
131
199
  "mutable": false,
132
200
  "complexType": {
@@ -138,35 +206,65 @@ export class Tooltip {
138
206
  "optional": false,
139
207
  "docs": {
140
208
  "tags": [],
141
- "text": "Wether to force show the tooltip"
209
+ "text": "Wether to show the popover"
142
210
  },
143
- "attribute": "force-show",
211
+ "attribute": "show",
144
212
  "reflect": false,
145
213
  "defaultValue": "false"
214
+ },
215
+ "canManuallyClose": {
216
+ "type": "boolean",
217
+ "mutable": false,
218
+ "complexType": {
219
+ "original": "boolean",
220
+ "resolved": "boolean",
221
+ "references": {}
222
+ },
223
+ "required": false,
224
+ "optional": false,
225
+ "docs": {
226
+ "tags": [],
227
+ "text": "Wether to someone can manually close the popover"
228
+ },
229
+ "attribute": "can-manually-close",
230
+ "reflect": false,
231
+ "defaultValue": "true"
146
232
  }
147
233
  }; }
148
234
  static get elementRef() { return "_el"; }
149
235
  static get listeners() { return [{
236
+ "name": "click",
237
+ "method": "clickHandler",
238
+ "target": undefined,
239
+ "capture": true,
240
+ "passive": false
241
+ }, {
242
+ "name": "click",
243
+ "method": "documentClickHandler",
244
+ "target": "document",
245
+ "capture": true,
246
+ "passive": false
247
+ }, {
150
248
  "name": "mouseenter",
151
- "method": "_show",
249
+ "method": "mouseEnterHandler",
152
250
  "target": undefined,
153
251
  "capture": false,
154
252
  "passive": true
155
253
  }, {
156
254
  "name": "focus",
157
- "method": "_show",
255
+ "method": "mouseEnterHandler",
158
256
  "target": undefined,
159
257
  "capture": false,
160
258
  "passive": false
161
259
  }, {
162
260
  "name": "mouseleave",
163
- "method": "_hide",
261
+ "method": "mouseLeaveHandler",
164
262
  "target": undefined,
165
263
  "capture": false,
166
264
  "passive": true
167
265
  }, {
168
266
  "name": "blur",
169
- "method": "_hide",
267
+ "method": "mouseLeaveHandler",
170
268
  "target": undefined,
171
269
  "capture": false,
172
270
  "passive": false
@@ -0,0 +1,3 @@
1
+ :host {
2
+ @apply block mb-6;
3
+ } .static{position:static!important}.m-0{margin:0!important}.mt-6{margin-top:1.5rem!important}.flex{display:flex!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.gap-3{gap:.75rem!important}.whitespace-nowrap{white-space:nowrap!important}.text-lg{font-size:1.125rem!important;line-height:1.75rem!important}.font-medium{font-weight:500!important}.text-storm-vague{--tw-text-opacity:1!important;color:rgb(152 154 183/var(--tw-text-opacity))!important}.static{position:static!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:85.375rem){.container{max-width:85.375rem}}@media (min-width:90rem){.container{max-width:90rem}}@media (min-width:120rem){.container{max-width:120rem}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.static{position:static!important}.inline-block{display:inline-block!important}.rotate-0{--tw-rotate:0deg!important}.rotate-0,.rotate-25{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}.rotate-25{--tw-rotate:25deg!important}.rotate-45{--tw-rotate:45deg!important}.rotate-45,.rotate-90{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}.rotate-90{--tw-rotate:90deg!important}.rotate-135{--tw-rotate:135deg!important}.rotate-135,.rotate-180{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}.rotate-180{--tw-rotate:180deg!important}.rotate-225{--tw-rotate:225deg!important}.rotate-225,.rotate-270{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}.rotate-270{--tw-rotate:270deg!important}.rotate-315{--tw-rotate:315deg!important}.-rotate-0,.rotate-315{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}.-rotate-0{--tw-rotate:-0deg!important}.-rotate-25{--tw-rotate:-25deg!important}.-rotate-25,.-rotate-45{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}.-rotate-45{--tw-rotate:-45deg!important}.-rotate-90{--tw-rotate:-90deg!important}.-rotate-135,.-rotate-90{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}.-rotate-135{--tw-rotate:-135deg!important}.-rotate-180{--tw-rotate:-180deg!important}.-rotate-180,.-rotate-225{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}.-rotate-225{--tw-rotate:-225deg!important}.-rotate-270{--tw-rotate:-270deg!important}.-rotate-270,.-rotate-315{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}.-rotate-315{--tw-rotate:-315deg!important}.scale-x-flip{--tw-scale-x:-1!important}.scale-x-flip,.scale-y-flip{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}.scale-y-flip{--tw-scale-y:-1!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.text-xxs{font-size:.6875rem!important}.text-xs{font-size:.75rem!important;line-height:1rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-lg{font-size:1.125rem!important}.text-lg,.text-xl{line-height:1.75rem!important}.text-xl{font-size:1.25rem!important}.text-2xl{font-size:1.5rem!important;line-height:2rem!important}.text-3xl{font-size:1.875rem!important;line-height:2.25rem!important}.text-4xl{font-size:2.25rem!important;line-height:2.5rem!important}.text-5xl{font-size:3rem!important}.text-5xl,.text-6xl{line-height:1!important}.text-6xl{font-size:3.75rem!important}
@@ -0,0 +1,133 @@
1
+ import { Component, Event, h, Host, Prop } from '@stencil/core';
2
+ export class Accordion {
3
+ constructor() {
4
+ /**
5
+ * Wether the accordion is open
6
+ */
7
+ this.open = false;
8
+ /**
9
+ * Wether the accordion can be closed
10
+ */
11
+ this.closeable = true;
12
+ /**
13
+ * Wether the accordion can be opened
14
+ */
15
+ this.openable = true;
16
+ }
17
+ render() {
18
+ return (h(Host, { class: "p-accordion" },
19
+ h("div", { class: "flex items-center gap-3 text-storm-vague cursor-pointer", onClick: () => this._onClick() },
20
+ h("p-icon", { class: "flex", variant: "chevron", rotate: this.open ? 0 : -90 }),
21
+ h("p", { class: "m-0 font-medium text-lg whitespace-nowrap" }, this.header),
22
+ h("p-divider", null)),
23
+ this.open && (h("div", { class: "mt-6" },
24
+ h("slot", null)))));
25
+ }
26
+ _onClick() {
27
+ if (!this.closeable && this.open) {
28
+ return;
29
+ }
30
+ if (!this.openable && !this.open) {
31
+ return;
32
+ }
33
+ this.open = !this.open;
34
+ this.isOpen.emit(this.open);
35
+ }
36
+ static get is() { return "p-accordion"; }
37
+ static get encapsulation() { return "shadow"; }
38
+ static get originalStyleUrls() { return {
39
+ "$": ["accordion.component.scss"]
40
+ }; }
41
+ static get styleUrls() { return {
42
+ "$": ["accordion.component.css"]
43
+ }; }
44
+ static get properties() { return {
45
+ "header": {
46
+ "type": "string",
47
+ "mutable": false,
48
+ "complexType": {
49
+ "original": "string",
50
+ "resolved": "string",
51
+ "references": {}
52
+ },
53
+ "required": true,
54
+ "optional": false,
55
+ "docs": {
56
+ "tags": [],
57
+ "text": "Header of the accordion"
58
+ },
59
+ "attribute": "header",
60
+ "reflect": false
61
+ },
62
+ "open": {
63
+ "type": "boolean",
64
+ "mutable": false,
65
+ "complexType": {
66
+ "original": "boolean",
67
+ "resolved": "boolean",
68
+ "references": {}
69
+ },
70
+ "required": false,
71
+ "optional": false,
72
+ "docs": {
73
+ "tags": [],
74
+ "text": "Wether the accordion is open"
75
+ },
76
+ "attribute": "open",
77
+ "reflect": false,
78
+ "defaultValue": "false"
79
+ },
80
+ "closeable": {
81
+ "type": "boolean",
82
+ "mutable": false,
83
+ "complexType": {
84
+ "original": "boolean",
85
+ "resolved": "boolean",
86
+ "references": {}
87
+ },
88
+ "required": false,
89
+ "optional": false,
90
+ "docs": {
91
+ "tags": [],
92
+ "text": "Wether the accordion can be closed"
93
+ },
94
+ "attribute": "closeable",
95
+ "reflect": false,
96
+ "defaultValue": "true"
97
+ },
98
+ "openable": {
99
+ "type": "boolean",
100
+ "mutable": false,
101
+ "complexType": {
102
+ "original": "boolean",
103
+ "resolved": "boolean",
104
+ "references": {}
105
+ },
106
+ "required": false,
107
+ "optional": false,
108
+ "docs": {
109
+ "tags": [],
110
+ "text": "Wether the accordion can be opened"
111
+ },
112
+ "attribute": "openable",
113
+ "reflect": false,
114
+ "defaultValue": "true"
115
+ }
116
+ }; }
117
+ static get events() { return [{
118
+ "method": "isOpen",
119
+ "name": "isOpen",
120
+ "bubbles": true,
121
+ "cancelable": true,
122
+ "composed": true,
123
+ "docs": {
124
+ "tags": [],
125
+ "text": "Open change event"
126
+ },
127
+ "complexType": {
128
+ "original": "boolean",
129
+ "resolved": "boolean",
130
+ "references": {}
131
+ }
132
+ }]; }
133
+ }
@@ -0,0 +1,9 @@
1
+ :host .trigger {
2
+ @apply w-auto h-auto inline-block;
3
+ }
4
+ :host p-dropdown-menu-container {
5
+ @apply hidden;
6
+ }
7
+ :host p-dropdown-menu-container[data-show] {
8
+ @apply flex;
9
+ } .visible{visibility:visible!important}.static{position:static!important}.static{position:static!important}